var d = {}, nt;
function dt() {
  if (nt) return d;
  nt = 1, Object.defineProperty(d, "__esModule", { value: !0 }), d.toBig = d.shrSL = d.shrSH = d.rotrSL = d.rotrSH = d.rotrBL = d.rotrBH = d.rotr32L = d.rotr32H = d.rotlSL = d.rotlSH = d.rotlBL = d.rotlBH = d.add5L = d.add5H = d.add4L = d.add4H = d.add3L = d.add3H = void 0, d.add = K, d.fromBig = H, d.split = j;
  const e = /* @__PURE__ */ BigInt(2 ** 32 - 1), i = /* @__PURE__ */ BigInt(32);
  function H(s, n = !1) {
    return n ? { h: Number(s & e), l: Number(s >> i & e) } : { h: Number(s >> i & e) | 0, l: Number(s & e) | 0 };
  }
  function j(s, n = !1) {
    const r = s.length;
    let y = new Uint32Array(r), f = new Uint32Array(r);
    for (let _ = 0; _ < r; _++) {
      const { h: C, l: v } = H(s[_], n);
      [y[_], f[_]] = [C, v];
    }
    return [y, f];
  }
  const E = (s, n) => BigInt(s >>> 0) << i | BigInt(n >>> 0);
  d.toBig = E;
  const a = (s, n, r) => s >>> r;
  d.shrSH = a;
  const o = (s, n, r) => s << 32 - r | n >>> r;
  d.shrSL = o;
  const A = (s, n, r) => s >>> r | n << 32 - r;
  d.rotrSH = A;
  const p = (s, n, r) => s << 32 - r | n >>> r;
  d.rotrSL = p;
  const b = (s, n, r) => s << 64 - r | n >>> r - 32;
  d.rotrBH = b;
  const l = (s, n, r) => s >>> r - 32 | n << 64 - r;
  d.rotrBL = l;
  const x = (s, n) => n;
  d.rotr32H = x;
  const D = (s, n) => s;
  d.rotr32L = D;
  const G = (s, n, r) => s << r | n >>> 32 - r;
  d.rotlSH = G;
  const w = (s, n, r) => n << r | s >>> 32 - r;
  d.rotlSL = w;
  const U = (s, n, r) => n << r - 32 | s >>> 64 - r;
  d.rotlBH = U;
  const O = (s, n, r) => s << r - 32 | n >>> 64 - r;
  d.rotlBL = O;
  function K(s, n, r, y) {
    const f = (n >>> 0) + (y >>> 0);
    return { h: s + r + (f / 2 ** 32 | 0) | 0, l: f | 0 };
  }
  const q = (s, n, r) => (s >>> 0) + (n >>> 0) + (r >>> 0);
  d.add3L = q;
  const I = (s, n, r, y) => n + r + y + (s / 2 ** 32 | 0) | 0;
  d.add3H = I;
  const F = (s, n, r, y) => (s >>> 0) + (n >>> 0) + (r >>> 0) + (y >>> 0);
  d.add4L = F;
  const u = (s, n, r, y, f) => n + r + y + f + (s / 2 ** 32 | 0) | 0;
  d.add4H = u;
  const S = (s, n, r, y, f) => (s >>> 0) + (n >>> 0) + (r >>> 0) + (y >>> 0) + (f >>> 0);
  d.add5L = S;
  const B = (s, n, r, y, f, _) => n + r + y + f + _ + (s / 2 ** 32 | 0) | 0;
  d.add5H = B;
  const L = {
    fromBig: H,
    split: j,
    toBig: E,
    shrSH: a,
    shrSL: o,
    rotrSH: A,
    rotrSL: p,
    rotrBH: b,
    rotrBL: l,
    rotr32H: x,
    rotr32L: D,
    rotlSH: G,
    rotlSL: w,
    rotlBH: U,
    rotlBL: O,
    add: K,
    add3L: q,
    add3H: I,
    add4L: F,
    add4H: u,
    add5H: B,
    add5L: S
  };
  return d.default = L, d;
}
var $ = {}, J = {}, rt;
function ut() {
  return rt || (rt = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.crypto = void 0, J.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0), J;
}
var it;
function et() {
  return it || (it = 1, function(e) {
    /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
    Object.defineProperty(e, "__esModule", { value: !0 }), e.wrapXOFConstructorWithOpts = e.wrapConstructorWithOpts = e.wrapConstructor = e.Hash = e.nextTick = e.swap32IfBE = e.byteSwapIfBE = e.swap8IfBE = e.isLE = void 0, e.isBytes = H, e.anumber = j, e.abytes = E, e.ahash = a, e.aexists = o, e.aoutput = A, e.u8 = p, e.u32 = b, e.clean = l, e.createView = x, e.rotr = D, e.rotl = G, e.byteSwap = w, e.byteSwap32 = U, e.bytesToHex = q, e.hexToBytes = u, e.asyncLoop = B, e.utf8ToBytes = L, e.bytesToUtf8 = s, e.toBytes = n, e.kdfInputToBytes = r, e.concatBytes = y, e.checkOpts = f, e.createHasher = C, e.createOptHasher = v, e.createXOFer = T, e.randomBytes = W;
    const i = /* @__PURE__ */ ut();
    function H(t) {
      return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
    }
    function j(t) {
      if (!Number.isSafeInteger(t) || t < 0)
        throw new Error("positive integer expected, got " + t);
    }
    function E(t, ...c) {
      if (!H(t))
        throw new Error("Uint8Array expected");
      if (c.length > 0 && !c.includes(t.length))
        throw new Error("Uint8Array expected of length " + c + ", got length=" + t.length);
    }
    function a(t) {
      if (typeof t != "function" || typeof t.create != "function")
        throw new Error("Hash should be wrapped by utils.createHasher");
      j(t.outputLen), j(t.blockLen);
    }
    function o(t, c = !0) {
      if (t.destroyed)
        throw new Error("Hash instance has been destroyed");
      if (c && t.finished)
        throw new Error("Hash#digest() has already been called");
    }
    function A(t, c) {
      E(t);
      const h = c.outputLen;
      if (t.length < h)
        throw new Error("digestInto() expects output buffer of length at least " + h);
    }
    function p(t) {
      return new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
    }
    function b(t) {
      return new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
    }
    function l(...t) {
      for (let c = 0; c < t.length; c++)
        t[c].fill(0);
    }
    function x(t) {
      return new DataView(t.buffer, t.byteOffset, t.byteLength);
    }
    function D(t, c) {
      return t << 32 - c | t >>> c;
    }
    function G(t, c) {
      return t << c | t >>> 32 - c >>> 0;
    }
    e.isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
    function w(t) {
      return t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255;
    }
    e.swap8IfBE = e.isLE ? (t) => t : (t) => w(t), e.byteSwapIfBE = e.swap8IfBE;
    function U(t) {
      for (let c = 0; c < t.length; c++)
        t[c] = w(t[c]);
      return t;
    }
    e.swap32IfBE = e.isLE ? (t) => t : U;
    const O = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", K = /* @__PURE__ */ Array.from({ length: 256 }, (t, c) => c.toString(16).padStart(2, "0"));
    function q(t) {
      if (E(t), O)
        return t.toHex();
      let c = "";
      for (let h = 0; h < t.length; h++)
        c += K[t[h]];
      return c;
    }
    const I = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
    function F(t) {
      if (t >= I._0 && t <= I._9)
        return t - I._0;
      if (t >= I.A && t <= I.F)
        return t - (I.A - 10);
      if (t >= I.a && t <= I.f)
        return t - (I.a - 10);
    }
    function u(t) {
      if (typeof t != "string")
        throw new Error("hex string expected, got " + typeof t);
      if (O)
        return Uint8Array.fromHex(t);
      const c = t.length, h = c / 2;
      if (c % 2)
        throw new Error("hex string expected, got unpadded hex of length " + c);
      const g = new Uint8Array(h);
      for (let m = 0, k = 0; m < h; m++, k += 2) {
        const X = F(t.charCodeAt(k)), R = F(t.charCodeAt(k + 1));
        if (X === void 0 || R === void 0) {
          const P = t[k] + t[k + 1];
          throw new Error('hex string expected, got non-hex character "' + P + '" at index ' + k);
        }
        g[m] = X * 16 + R;
      }
      return g;
    }
    const S = async () => {
    };
    e.nextTick = S;
    async function B(t, c, h) {
      let g = Date.now();
      for (let m = 0; m < t; m++) {
        h(m);
        const k = Date.now() - g;
        k >= 0 && k < c || (await (0, e.nextTick)(), g += k);
      }
    }
    function L(t) {
      if (typeof t != "string")
        throw new Error("string expected");
      return new Uint8Array(new TextEncoder().encode(t));
    }
    function s(t) {
      return new TextDecoder().decode(t);
    }
    function n(t) {
      return typeof t == "string" && (t = L(t)), E(t), t;
    }
    function r(t) {
      return typeof t == "string" && (t = L(t)), E(t), t;
    }
    function y(...t) {
      let c = 0;
      for (let g = 0; g < t.length; g++) {
        const m = t[g];
        E(m), c += m.length;
      }
      const h = new Uint8Array(c);
      for (let g = 0, m = 0; g < t.length; g++) {
        const k = t[g];
        h.set(k, m), m += k.length;
      }
      return h;
    }
    function f(t, c) {
      if (c !== void 0 && {}.toString.call(c) !== "[object Object]")
        throw new Error("options should be object or undefined");
      return Object.assign(t, c);
    }
    class _ {
    }
    e.Hash = _;
    function C(t) {
      const c = (g) => t().update(n(g)).digest(), h = t();
      return c.outputLen = h.outputLen, c.blockLen = h.blockLen, c.create = () => t(), c;
    }
    function v(t) {
      const c = (g, m) => t(m).update(n(g)).digest(), h = t({});
      return c.outputLen = h.outputLen, c.blockLen = h.blockLen, c.create = (g) => t(g), c;
    }
    function T(t) {
      const c = (g, m) => t(m).update(n(g)).digest(), h = t({});
      return c.outputLen = h.outputLen, c.blockLen = h.blockLen, c.create = (g) => t(g), c;
    }
    e.wrapConstructor = C, e.wrapConstructorWithOpts = v, e.wrapXOFConstructorWithOpts = T;
    function W(t = 32) {
      if (i.crypto && typeof i.crypto.getRandomValues == "function")
        return i.crypto.getRandomValues(new Uint8Array(t));
      if (i.crypto && typeof i.crypto.randomBytes == "function")
        return Uint8Array.from(i.crypto.randomBytes(t));
      throw new Error("crypto.getRandomValues must be defined");
    }
  }($)), $;
}
var V = {}, M = {}, ct;
function lt() {
  if (ct) return M;
  ct = 1, Object.defineProperty(M, "__esModule", { value: !0 }), M.SHA512_IV = M.SHA384_IV = M.SHA224_IV = M.SHA256_IV = M.HashMD = void 0, M.setBigUint64 = i, M.Chi = H, M.Maj = j;
  const e = /* @__PURE__ */ et();
  function i(a, o, A, p) {
    if (typeof a.setBigUint64 == "function")
      return a.setBigUint64(o, A, p);
    const b = BigInt(32), l = BigInt(4294967295), x = Number(A >> b & l), D = Number(A & l), G = p ? 4 : 0, w = p ? 0 : 4;
    a.setUint32(o + G, x, p), a.setUint32(o + w, D, p);
  }
  function H(a, o, A) {
    return a & o ^ ~a & A;
  }
  function j(a, o, A) {
    return a & o ^ a & A ^ o & A;
  }
  class E extends e.Hash {
    constructor(o, A, p, b) {
      super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = o, this.outputLen = A, this.padOffset = p, this.isLE = b, this.buffer = new Uint8Array(o), this.view = (0, e.createView)(this.buffer);
    }
    update(o) {
      (0, e.aexists)(this), o = (0, e.toBytes)(o), (0, e.abytes)(o);
      const { view: A, buffer: p, blockLen: b } = this, l = o.length;
      for (let x = 0; x < l; ) {
        const D = Math.min(b - this.pos, l - x);
        if (D === b) {
          const G = (0, e.createView)(o);
          for (; b <= l - x; x += b)
            this.process(G, x);
          continue;
        }
        p.set(o.subarray(x, x + D), this.pos), this.pos += D, x += D, this.pos === b && (this.process(A, 0), this.pos = 0);
      }
      return this.length += o.length, this.roundClean(), this;
    }
    digestInto(o) {
      (0, e.aexists)(this), (0, e.aoutput)(o, this), this.finished = !0;
      const { buffer: A, view: p, blockLen: b, isLE: l } = this;
      let { pos: x } = this;
      A[x++] = 128, (0, e.clean)(this.buffer.subarray(x)), this.padOffset > b - x && (this.process(p, 0), x = 0);
      for (let O = x; O < b; O++)
        A[O] = 0;
      i(p, b - 8, BigInt(this.length * 8), l), this.process(p, 0);
      const D = (0, e.createView)(o), G = this.outputLen;
      if (G % 4)
        throw new Error("_sha2: outputLen should be aligned to 32bit");
      const w = G / 4, U = this.get();
      if (w > U.length)
        throw new Error("_sha2: outputLen bigger than state");
      for (let O = 0; O < w; O++)
        D.setUint32(4 * O, U[O], l);
    }
    digest() {
      const { buffer: o, outputLen: A } = this;
      this.digestInto(o);
      const p = o.slice(0, A);
      return this.destroy(), p;
    }
    _cloneInto(o) {
      o || (o = new this.constructor()), o.set(...this.get());
      const { blockLen: A, buffer: p, length: b, finished: l, destroyed: x, pos: D } = this;
      return o.destroyed = x, o.finished = l, o.length = b, o.pos = D, b % A && o.buffer.set(p), o;
    }
    clone() {
      return this._cloneInto();
    }
  }
  return M.HashMD = E, M.SHA256_IV = Uint32Array.from([
    1779033703,
    3144134277,
    1013904242,
    2773480762,
    1359893119,
    2600822924,
    528734635,
    1541459225
  ]), M.SHA224_IV = Uint32Array.from([
    3238371032,
    914150663,
    812702999,
    4144912697,
    4290775857,
    1750603025,
    1694076839,
    3204075428
  ]), M.SHA384_IV = Uint32Array.from([
    3418070365,
    3238371032,
    1654270250,
    914150663,
    2438529370,
    812702999,
    355462360,
    4144912697,
    1731405415,
    4290775857,
    2394180231,
    1750603025,
    3675008525,
    1694076839,
    1203062813,
    3204075428
  ]), M.SHA512_IV = Uint32Array.from([
    1779033703,
    4089235720,
    3144134277,
    2227873595,
    1013904242,
    4271175723,
    2773480762,
    1595750129,
    1359893119,
    2917565137,
    2600822924,
    725511199,
    528734635,
    4215389547,
    1541459225,
    327033209
  ]), M;
}
var at;
function bt() {
  if (at) return V;
  at = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.sha512_224 = V.sha512_256 = V.sha384 = V.sha512 = V.sha224 = V.sha256 = V.SHA512_256 = V.SHA512_224 = V.SHA384 = V.SHA512 = V.SHA224 = V.SHA256 = void 0;
  const e = /* @__PURE__ */ lt(), i = /* @__PURE__ */ dt(), H = /* @__PURE__ */ et(), j = /* @__PURE__ */ Uint32Array.from([
    1116352408,
    1899447441,
    3049323471,
    3921009573,
    961987163,
    1508970993,
    2453635748,
    2870763221,
    3624381080,
    310598401,
    607225278,
    1426881987,
    1925078388,
    2162078206,
    2614888103,
    3248222580,
    3835390401,
    4022224774,
    264347078,
    604807628,
    770255983,
    1249150122,
    1555081692,
    1996064986,
    2554220882,
    2821834349,
    2952996808,
    3210313671,
    3336571891,
    3584528711,
    113926993,
    338241895,
    666307205,
    773529912,
    1294757372,
    1396182291,
    1695183700,
    1986661051,
    2177026350,
    2456956037,
    2730485921,
    2820302411,
    3259730800,
    3345764771,
    3516065817,
    3600352804,
    4094571909,
    275423344,
    430227734,
    506948616,
    659060556,
    883997877,
    958139571,
    1322822218,
    1537002063,
    1747873779,
    1955562222,
    2024104815,
    2227730452,
    2361852424,
    2428436474,
    2756734187,
    3204031479,
    3329325298
  ]), E = /* @__PURE__ */ new Uint32Array(64);
  class a extends e.HashMD {
    constructor(I = 32) {
      super(64, I, 8, !1), this.A = e.SHA256_IV[0] | 0, this.B = e.SHA256_IV[1] | 0, this.C = e.SHA256_IV[2] | 0, this.D = e.SHA256_IV[3] | 0, this.E = e.SHA256_IV[4] | 0, this.F = e.SHA256_IV[5] | 0, this.G = e.SHA256_IV[6] | 0, this.H = e.SHA256_IV[7] | 0;
    }
    get() {
      const { A: I, B: F, C: u, D: S, E: B, F: L, G: s, H: n } = this;
      return [I, F, u, S, B, L, s, n];
    }
    // prettier-ignore
    set(I, F, u, S, B, L, s, n) {
      this.A = I | 0, this.B = F | 0, this.C = u | 0, this.D = S | 0, this.E = B | 0, this.F = L | 0, this.G = s | 0, this.H = n | 0;
    }
    process(I, F) {
      for (let f = 0; f < 16; f++, F += 4)
        E[f] = I.getUint32(F, !1);
      for (let f = 16; f < 64; f++) {
        const _ = E[f - 15], C = E[f - 2], v = (0, H.rotr)(_, 7) ^ (0, H.rotr)(_, 18) ^ _ >>> 3, T = (0, H.rotr)(C, 17) ^ (0, H.rotr)(C, 19) ^ C >>> 10;
        E[f] = T + E[f - 7] + v + E[f - 16] | 0;
      }
      let { A: u, B: S, C: B, D: L, E: s, F: n, G: r, H: y } = this;
      for (let f = 0; f < 64; f++) {
        const _ = (0, H.rotr)(s, 6) ^ (0, H.rotr)(s, 11) ^ (0, H.rotr)(s, 25), C = y + _ + (0, e.Chi)(s, n, r) + j[f] + E[f] | 0, T = ((0, H.rotr)(u, 2) ^ (0, H.rotr)(u, 13) ^ (0, H.rotr)(u, 22)) + (0, e.Maj)(u, S, B) | 0;
        y = r, r = n, n = s, s = L + C | 0, L = B, B = S, S = u, u = C + T | 0;
      }
      u = u + this.A | 0, S = S + this.B | 0, B = B + this.C | 0, L = L + this.D | 0, s = s + this.E | 0, n = n + this.F | 0, r = r + this.G | 0, y = y + this.H | 0, this.set(u, S, B, L, s, n, r, y);
    }
    roundClean() {
      (0, H.clean)(E);
    }
    destroy() {
      this.set(0, 0, 0, 0, 0, 0, 0, 0), (0, H.clean)(this.buffer);
    }
  }
  V.SHA256 = a;
  class o extends a {
    constructor() {
      super(28), this.A = e.SHA224_IV[0] | 0, this.B = e.SHA224_IV[1] | 0, this.C = e.SHA224_IV[2] | 0, this.D = e.SHA224_IV[3] | 0, this.E = e.SHA224_IV[4] | 0, this.F = e.SHA224_IV[5] | 0, this.G = e.SHA224_IV[6] | 0, this.H = e.SHA224_IV[7] | 0;
    }
  }
  V.SHA224 = o;
  const A = i.split([
    "0x428a2f98d728ae22",
    "0x7137449123ef65cd",
    "0xb5c0fbcfec4d3b2f",
    "0xe9b5dba58189dbbc",
    "0x3956c25bf348b538",
    "0x59f111f1b605d019",
    "0x923f82a4af194f9b",
    "0xab1c5ed5da6d8118",
    "0xd807aa98a3030242",
    "0x12835b0145706fbe",
    "0x243185be4ee4b28c",
    "0x550c7dc3d5ffb4e2",
    "0x72be5d74f27b896f",
    "0x80deb1fe3b1696b1",
    "0x9bdc06a725c71235",
    "0xc19bf174cf692694",
    "0xe49b69c19ef14ad2",
    "0xefbe4786384f25e3",
    "0x0fc19dc68b8cd5b5",
    "0x240ca1cc77ac9c65",
    "0x2de92c6f592b0275",
    "0x4a7484aa6ea6e483",
    "0x5cb0a9dcbd41fbd4",
    "0x76f988da831153b5",
    "0x983e5152ee66dfab",
    "0xa831c66d2db43210",
    "0xb00327c898fb213f",
    "0xbf597fc7beef0ee4",
    "0xc6e00bf33da88fc2",
    "0xd5a79147930aa725",
    "0x06ca6351e003826f",
    "0x142929670a0e6e70",
    "0x27b70a8546d22ffc",
    "0x2e1b21385c26c926",
    "0x4d2c6dfc5ac42aed",
    "0x53380d139d95b3df",
    "0x650a73548baf63de",
    "0x766a0abb3c77b2a8",
    "0x81c2c92e47edaee6",
    "0x92722c851482353b",
    "0xa2bfe8a14cf10364",
    "0xa81a664bbc423001",
    "0xc24b8b70d0f89791",
    "0xc76c51a30654be30",
    "0xd192e819d6ef5218",
    "0xd69906245565a910",
    "0xf40e35855771202a",
    "0x106aa07032bbd1b8",
    "0x19a4c116b8d2d0c8",
    "0x1e376c085141ab53",
    "0x2748774cdf8eeb99",
    "0x34b0bcb5e19b48a8",
    "0x391c0cb3c5c95a63",
    "0x4ed8aa4ae3418acb",
    "0x5b9cca4f7763e373",
    "0x682e6ff3d6b2b8a3",
    "0x748f82ee5defb2fc",
    "0x78a5636f43172f60",
    "0x84c87814a1f0ab72",
    "0x8cc702081a6439ec",
    "0x90befffa23631e28",
    "0xa4506cebde82bde9",
    "0xbef9a3f7b2c67915",
    "0xc67178f2e372532b",
    "0xca273eceea26619c",
    "0xd186b8c721c0c207",
    "0xeada7dd6cde0eb1e",
    "0xf57d4f7fee6ed178",
    "0x06f067aa72176fba",
    "0x0a637dc5a2c898a6",
    "0x113f9804bef90dae",
    "0x1b710b35131c471b",
    "0x28db77f523047d84",
    "0x32caab7b40c72493",
    "0x3c9ebe0a15c9bebc",
    "0x431d67c49c100d4c",
    "0x4cc5d4becb3e42b6",
    "0x597f299cfc657e2a",
    "0x5fcb6fab3ad6faec",
    "0x6c44198c4a475817"
  ].map((q) => BigInt(q))), p = A[0], b = A[1], l = /* @__PURE__ */ new Uint32Array(80), x = /* @__PURE__ */ new Uint32Array(80);
  class D extends e.HashMD {
    constructor(I = 64) {
      super(128, I, 16, !1), this.Ah = e.SHA512_IV[0] | 0, this.Al = e.SHA512_IV[1] | 0, this.Bh = e.SHA512_IV[2] | 0, this.Bl = e.SHA512_IV[3] | 0, this.Ch = e.SHA512_IV[4] | 0, this.Cl = e.SHA512_IV[5] | 0, this.Dh = e.SHA512_IV[6] | 0, this.Dl = e.SHA512_IV[7] | 0, this.Eh = e.SHA512_IV[8] | 0, this.El = e.SHA512_IV[9] | 0, this.Fh = e.SHA512_IV[10] | 0, this.Fl = e.SHA512_IV[11] | 0, this.Gh = e.SHA512_IV[12] | 0, this.Gl = e.SHA512_IV[13] | 0, this.Hh = e.SHA512_IV[14] | 0, this.Hl = e.SHA512_IV[15] | 0;
    }
    // prettier-ignore
    get() {
      const { Ah: I, Al: F, Bh: u, Bl: S, Ch: B, Cl: L, Dh: s, Dl: n, Eh: r, El: y, Fh: f, Fl: _, Gh: C, Gl: v, Hh: T, Hl: W } = this;
      return [I, F, u, S, B, L, s, n, r, y, f, _, C, v, T, W];
    }
    // prettier-ignore
    set(I, F, u, S, B, L, s, n, r, y, f, _, C, v, T, W) {
      this.Ah = I | 0, this.Al = F | 0, this.Bh = u | 0, this.Bl = S | 0, this.Ch = B | 0, this.Cl = L | 0, this.Dh = s | 0, this.Dl = n | 0, this.Eh = r | 0, this.El = y | 0, this.Fh = f | 0, this.Fl = _ | 0, this.Gh = C | 0, this.Gl = v | 0, this.Hh = T | 0, this.Hl = W | 0;
    }
    process(I, F) {
      for (let h = 0; h < 16; h++, F += 4)
        l[h] = I.getUint32(F), x[h] = I.getUint32(F += 4);
      for (let h = 16; h < 80; h++) {
        const g = l[h - 15] | 0, m = x[h - 15] | 0, k = i.rotrSH(g, m, 1) ^ i.rotrSH(g, m, 8) ^ i.shrSH(g, m, 7), X = i.rotrSL(g, m, 1) ^ i.rotrSL(g, m, 8) ^ i.shrSL(g, m, 7), R = l[h - 2] | 0, P = x[h - 2] | 0, z = i.rotrSH(R, P, 19) ^ i.rotrBH(R, P, 61) ^ i.shrSH(R, P, 6), Y = i.rotrSL(R, P, 19) ^ i.rotrBL(R, P, 61) ^ i.shrSL(R, P, 6), Q = i.add4L(X, Y, x[h - 7], x[h - 16]), Z = i.add4H(Q, k, z, l[h - 7], l[h - 16]);
        l[h] = Z | 0, x[h] = Q | 0;
      }
      let { Ah: u, Al: S, Bh: B, Bl: L, Ch: s, Cl: n, Dh: r, Dl: y, Eh: f, El: _, Fh: C, Fl: v, Gh: T, Gl: W, Hh: t, Hl: c } = this;
      for (let h = 0; h < 80; h++) {
        const g = i.rotrSH(f, _, 14) ^ i.rotrSH(f, _, 18) ^ i.rotrBH(f, _, 41), m = i.rotrSL(f, _, 14) ^ i.rotrSL(f, _, 18) ^ i.rotrBL(f, _, 41), k = f & C ^ ~f & T, X = _ & v ^ ~_ & W, R = i.add5L(c, m, X, b[h], x[h]), P = i.add5H(R, t, g, k, p[h], l[h]), z = R | 0, Y = i.rotrSH(u, S, 28) ^ i.rotrBH(u, S, 34) ^ i.rotrBH(u, S, 39), Q = i.rotrSL(u, S, 28) ^ i.rotrBL(u, S, 34) ^ i.rotrBL(u, S, 39), Z = u & B ^ u & s ^ B & s, ft = S & L ^ S & n ^ L & n;
        t = T | 0, c = W | 0, T = C | 0, W = v | 0, C = f | 0, v = _ | 0, { h: f, l: _ } = i.add(r | 0, y | 0, P | 0, z | 0), r = s | 0, y = n | 0, s = B | 0, n = L | 0, B = u | 0, L = S | 0;
        const st = i.add3L(z, Q, ft);
        u = i.add3H(st, P, Y, Z), S = st | 0;
      }
      ({ h: u, l: S } = i.add(this.Ah | 0, this.Al | 0, u | 0, S | 0)), { h: B, l: L } = i.add(this.Bh | 0, this.Bl | 0, B | 0, L | 0), { h: s, l: n } = i.add(this.Ch | 0, this.Cl | 0, s | 0, n | 0), { h: r, l: y } = i.add(this.Dh | 0, this.Dl | 0, r | 0, y | 0), { h: f, l: _ } = i.add(this.Eh | 0, this.El | 0, f | 0, _ | 0), { h: C, l: v } = i.add(this.Fh | 0, this.Fl | 0, C | 0, v | 0), { h: T, l: W } = i.add(this.Gh | 0, this.Gl | 0, T | 0, W | 0), { h: t, l: c } = i.add(this.Hh | 0, this.Hl | 0, t | 0, c | 0), this.set(u, S, B, L, s, n, r, y, f, _, C, v, T, W, t, c);
    }
    roundClean() {
      (0, H.clean)(l, x);
    }
    destroy() {
      (0, H.clean)(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    }
  }
  V.SHA512 = D;
  class G extends D {
    constructor() {
      super(48), this.Ah = e.SHA384_IV[0] | 0, this.Al = e.SHA384_IV[1] | 0, this.Bh = e.SHA384_IV[2] | 0, this.Bl = e.SHA384_IV[3] | 0, this.Ch = e.SHA384_IV[4] | 0, this.Cl = e.SHA384_IV[5] | 0, this.Dh = e.SHA384_IV[6] | 0, this.Dl = e.SHA384_IV[7] | 0, this.Eh = e.SHA384_IV[8] | 0, this.El = e.SHA384_IV[9] | 0, this.Fh = e.SHA384_IV[10] | 0, this.Fl = e.SHA384_IV[11] | 0, this.Gh = e.SHA384_IV[12] | 0, this.Gl = e.SHA384_IV[13] | 0, this.Hh = e.SHA384_IV[14] | 0, this.Hl = e.SHA384_IV[15] | 0;
    }
  }
  V.SHA384 = G;
  const w = /* @__PURE__ */ Uint32Array.from([
    2352822216,
    424955298,
    1944164710,
    2312950998,
    502970286,
    855612546,
    1738396948,
    1479516111,
    258812777,
    2077511080,
    2011393907,
    79989058,
    1067287976,
    1780299464,
    286451373,
    2446758561
  ]), U = /* @__PURE__ */ Uint32Array.from([
    573645204,
    4230739756,
    2673172387,
    3360449730,
    596883563,
    1867755857,
    2520282905,
    1497426621,
    2519219938,
    2827943907,
    3193839141,
    1401305490,
    721525244,
    746961066,
    246885852,
    2177182882
  ]);
  class O extends D {
    constructor() {
      super(28), this.Ah = w[0] | 0, this.Al = w[1] | 0, this.Bh = w[2] | 0, this.Bl = w[3] | 0, this.Ch = w[4] | 0, this.Cl = w[5] | 0, this.Dh = w[6] | 0, this.Dl = w[7] | 0, this.Eh = w[8] | 0, this.El = w[9] | 0, this.Fh = w[10] | 0, this.Fl = w[11] | 0, this.Gh = w[12] | 0, this.Gl = w[13] | 0, this.Hh = w[14] | 0, this.Hl = w[15] | 0;
    }
  }
  V.SHA512_224 = O;
  class K extends D {
    constructor() {
      super(32), this.Ah = U[0] | 0, this.Al = U[1] | 0, this.Bh = U[2] | 0, this.Bl = U[3] | 0, this.Ch = U[4] | 0, this.Cl = U[5] | 0, this.Dh = U[6] | 0, this.Dl = U[7] | 0, this.Eh = U[8] | 0, this.El = U[9] | 0, this.Fh = U[10] | 0, this.Fl = U[11] | 0, this.Gh = U[12] | 0, this.Gl = U[13] | 0, this.Hh = U[14] | 0, this.Hl = U[15] | 0;
    }
  }
  return V.SHA512_256 = K, V.sha256 = (0, H.createHasher)(() => new a()), V.sha224 = (0, H.createHasher)(() => new o()), V.sha512 = (0, H.createHasher)(() => new D()), V.sha384 = (0, H.createHasher)(() => new G()), V.sha512_256 = (0, H.createHasher)(() => new K()), V.sha512_224 = (0, H.createHasher)(() => new O()), V;
}
var tt = {}, ot;
function xt() {
  return ot || (ot = 1, function(e) {
    Object.defineProperty(e, "__esModule", { value: !0 }), e.hmac = e.HMAC = void 0;
    const i = /* @__PURE__ */ et();
    class H extends i.Hash {
      constructor(a, o) {
        super(), this.finished = !1, this.destroyed = !1, (0, i.ahash)(a);
        const A = (0, i.toBytes)(o);
        if (this.iHash = a.create(), typeof this.iHash.update != "function")
          throw new Error("Expected instance of class which extends utils.Hash");
        this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
        const p = this.blockLen, b = new Uint8Array(p);
        b.set(A.length > p ? a.create().update(A).digest() : A);
        for (let l = 0; l < b.length; l++)
          b[l] ^= 54;
        this.iHash.update(b), this.oHash = a.create();
        for (let l = 0; l < b.length; l++)
          b[l] ^= 106;
        this.oHash.update(b), (0, i.clean)(b);
      }
      update(a) {
        return (0, i.aexists)(this), this.iHash.update(a), this;
      }
      digestInto(a) {
        (0, i.aexists)(this), (0, i.abytes)(a, this.outputLen), this.finished = !0, this.iHash.digestInto(a), this.oHash.update(a), this.oHash.digestInto(a), this.destroy();
      }
      digest() {
        const a = new Uint8Array(this.oHash.outputLen);
        return this.digestInto(a), a;
      }
      _cloneInto(a) {
        a || (a = Object.create(Object.getPrototypeOf(this), {}));
        const { oHash: o, iHash: A, finished: p, destroyed: b, blockLen: l, outputLen: x } = this;
        return a = a, a.finished = p, a.destroyed = b, a.blockLen = l, a.outputLen = x, a.oHash = o._cloneInto(a.oHash), a.iHash = A._cloneInto(a.iHash), a;
      }
      clone() {
        return this._cloneInto();
      }
      destroy() {
        this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
      }
    }
    e.HMAC = H;
    const j = (E, a, o) => new H(E, a).update(o).digest();
    e.hmac = j, e.hmac.create = (E, a) => new H(E, a);
  }(tt)), tt;
}
var N = {}, ht;
function Ht() {
  if (ht) return N;
  ht = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.sha224 = N.SHA224 = N.sha256 = N.SHA256 = void 0;
  const e = /* @__PURE__ */ bt();
  return N.SHA256 = e.SHA256, N.sha256 = e.sha256, N.SHA224 = e.SHA224, N.sha224 = e.sha224, N;
}
export {
  et as a,
  lt as b,
  bt as c,
  xt as d,
  Ht as e,
  dt as r
};
//# sourceMappingURL=sha256-DoenZ4is.js.map
