function e(r) {
  if ([...r].length !== 1) throw new Error(`Expected "${r}" to be a single code point`);
  return r.codePointAt(0);
}
function i(r, t, n) {
  return r.has(t) || r.set(t, n), r.get(t);
}
const o = /* @__PURE__ */ new Set(["alnum", "alpha", "ascii", "blank", "cntrl", "digit", "graph", "lower", "print", "punct", "space", "upper", "word", "xdigit"]), a = String.raw;
function s(r, t) {
  if (r == null) throw new Error(t ?? "Value expected");
  return r;
}
export {
  o as PosixClassNames,
  e as cpOf,
  i as getOrInsert,
  a as r,
  s as throwIfNullish
};
