const m = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
let s = (t) => crypto.getRandomValues(new Uint8Array(t)), d = (t, e, l) => {
  let r = (2 << Math.log2(t.length - 1)) - 1, o = -~(1.6 * r * e / t.length);
  return (u = e) => {
    let n = "";
    for (; ; ) {
      let h = l(o), a = o | 0;
      for (; a--; )
        if (n += t[h[a] & r] || "", n.length >= u) return n;
    }
  };
}, g = (t, e = 21) => d(t, e | 0, s), i = (t = 21) => {
  let e = "", l = crypto.getRandomValues(new Uint8Array(t |= 0));
  for (; t--; )
    e += m[l[t] & 63];
  return e;
};
export {
  g as customAlphabet,
  d as customRandom,
  i as nanoid,
  s as random,
  m as urlAlphabet
};
