@omnity/ree-client-ts-sdk 0.4.7 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,10 +32,10 @@ function U1(e, t) {
32
32
  function Hy(e) {
33
33
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
34
34
  }
35
- var Bu = {}, Zs = {}, Dh;
35
+ var Bu = {}, Js = {}, Dh;
36
36
  function C1() {
37
- if (Dh) return Zs;
38
- Dh = 1, Zs.byteLength = c, Zs.toByteArray = u, Zs.fromByteArray = d;
37
+ if (Dh) return Js;
38
+ Dh = 1, Js.byteLength = c, Js.toByteArray = u, Js.fromByteArray = d;
39
39
  for (var e = [], t = [], n = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, s = r.length; i < s; ++i)
40
40
  e[i] = r[i], t[r.charCodeAt(i)] = i;
41
41
  t[45] = 62, t[95] = 63;
@@ -78,13 +78,13 @@ function C1() {
78
78
  e[g >> 10] + e[g >> 4 & 63] + e[g << 2 & 63] + "="
79
79
  )), _.join("");
80
80
  }
81
- return Zs;
81
+ return Js;
82
82
  }
83
- var xc = {};
83
+ var Ac = {};
84
84
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
85
85
  var jh;
86
86
  function H1() {
87
- return jh || (jh = 1, xc.read = function(e, t, n, r, i) {
87
+ return jh || (jh = 1, Ac.read = function(e, t, n, r, i) {
88
88
  var s, o, c = i * 8 - r - 1, a = (1 << c) - 1, u = a >> 1, f = -7, l = n ? i - 1 : 0, d = n ? -1 : 1, y = e[t + l];
89
89
  for (l += d, s = y & (1 << -f) - 1, y >>= -f, f += c; f > 0; s = s * 256 + e[t + l], l += d, f -= 8)
90
90
  ;
@@ -98,14 +98,14 @@ function H1() {
98
98
  o = o + Math.pow(2, r), s = s - u;
99
99
  }
100
100
  return (y ? -1 : 1) * o * Math.pow(2, s - r);
101
- }, xc.write = function(e, t, n, r, i, s) {
101
+ }, Ac.write = function(e, t, n, r, i, s) {
102
102
  var o, c, a, u = s * 8 - i - 1, f = (1 << u) - 1, l = f >> 1, d = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, y = r ? 0 : s - 1, g = r ? 1 : -1, m = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
103
103
  for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (c = isNaN(t) ? 1 : 0, o = f) : (o = Math.floor(Math.log(t) / Math.LN2), t * (a = Math.pow(2, -o)) < 1 && (o--, a *= 2), o + l >= 1 ? t += d / a : t += d * Math.pow(2, 1 - l), t * a >= 2 && (o++, a /= 2), o + l >= f ? (c = 0, o = f) : o + l >= 1 ? (c = (t * a - 1) * Math.pow(2, i), o = o + l) : (c = t * Math.pow(2, l - 1) * Math.pow(2, i), o = 0)); i >= 8; e[n + y] = c & 255, y += g, c /= 256, i -= 8)
104
104
  ;
105
105
  for (o = o << i | c, u += i; u > 0; e[n + y] = o & 255, y += g, o /= 256, u -= 8)
106
106
  ;
107
107
  e[n + y - g] |= m * 128;
108
- }), xc;
108
+ }), Ac;
109
109
  }
110
110
  /*!
111
111
  * The buffer module from node.js, for the browser.
@@ -114,7 +114,7 @@ function H1() {
114
114
  * @license MIT
115
115
  */
116
116
  var Kh;
117
- function rc() {
117
+ function ic() {
118
118
  return Kh || (Kh = 1, (function(e) {
119
119
  const t = C1(), n = H1(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
120
120
  e.Buffer = c, e.SlowBuffer = S, e.INSPECT_MAX_BYTES = 50;
@@ -1054,7 +1054,7 @@ function rc() {
1054
1054
  }
1055
1055
  })(Bu)), Bu;
1056
1056
  }
1057
- var F1 = rc(), Nu = { exports: {} }, Gh;
1057
+ var F1 = ic(), Nu = { exports: {} }, Gh;
1058
1058
  function M1() {
1059
1059
  if (Gh) return Nu.exports;
1060
1060
  Gh = 1;
@@ -1155,9 +1155,9 @@ const L1 = /* @__PURE__ */ Hy(q1);
1155
1155
  typeof globalThis > "u" && (globalThis.global = globalThis);
1156
1156
  typeof globalThis.Buffer > "u" && (globalThis.Buffer = F1.Buffer);
1157
1157
  typeof globalThis.process > "u" && (globalThis.process = L1);
1158
- var ot = {}, ku = {}, We = {}, Lt = {}, Pu = {}, Js = {}, Wh;
1158
+ var ot = {}, ku = {}, We = {}, Lt = {}, Pu = {}, Qs = {}, Wh;
1159
1159
  function V1() {
1160
- return Wh || (Wh = 1, Object.defineProperty(Js, "__esModule", { value: !0 }), Js.crypto = void 0, Js.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0), Js;
1160
+ return Wh || (Wh = 1, Object.defineProperty(Qs, "__esModule", { value: !0 }), Qs.crypto = void 0, Qs.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0), Qs;
1161
1161
  }
1162
1162
  var Xh;
1163
1163
  function fi() {
@@ -1820,7 +1820,7 @@ function My() {
1820
1820
  }
1821
1821
  return We.SHA512_256 = _, We.sha256 = (0, n.createHasher)(() => new s()), We.sha224 = (0, n.createHasher)(() => new o()), We.sha512 = (0, n.createHasher)(() => new d()), We.sha384 = (0, n.createHasher)(() => new y()), We.sha512_256 = (0, n.createHasher)(() => new _()), We.sha512_224 = (0, n.createHasher)(() => new E()), We;
1822
1822
  }
1823
- var Qs = {}, Ru = {}, Uu = {}, Jh;
1823
+ var eo = {}, Ru = {}, Uu = {}, Jh;
1824
1824
  function D1() {
1825
1825
  return Jh || (Jh = 1, (function(e) {
1826
1826
  Object.defineProperty(e, "__esModule", { value: !0 }), e.hmac = e.HMAC = void 0;
@@ -1869,7 +1869,7 @@ function D1() {
1869
1869
  })(Uu)), Uu;
1870
1870
  }
1871
1871
  var Cu = {}, Qh;
1872
- function Ls() {
1872
+ function Vs() {
1873
1873
  return Qh || (Qh = 1, (function(e) {
1874
1874
  Object.defineProperty(e, "__esModule", { value: !0 }), e.notImplemented = e.bitMask = e.utf8ToBytes = e.randomBytes = e.isBytes = e.hexToBytes = e.concatBytes = e.bytesToUtf8 = e.bytesToHex = e.anumber = e.abytes = void 0, e.abool = s, e._abool2 = o, e._abytes2 = c, e.numberToHexUnpadded = a, e.hexToNumber = u, e.bytesToNumberBE = f, e.bytesToNumberLE = l, e.numberToBytesBE = d, e.numberToBytesLE = y, e.numberToVarBytesBE = g, e.ensureBytes = m, e.equalBytes = E, e.copyBytes = _, e.asciiToBytes = S, e.inRange = T, e.aInRange = O, e.bitLen = A, e.bitGet = R, e.bitSet = M, e.createHmacDrbg = U, e.validateObject = K, e.isHash = H, e._validateObject = $, e.memoized = D;
1875
1875
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -2088,11 +2088,11 @@ function Ls() {
2088
2088
  })(Cu)), Cu;
2089
2089
  }
2090
2090
  var Tn = {}, Je = {}, ed;
2091
- function ic() {
2091
+ function sc() {
2092
2092
  if (ed) return Je;
2093
2093
  ed = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.isNegativeLE = void 0, Je.mod = l, Je.pow = d, Je.pow2 = y, Je.invert = g, Je.tonelliShanks = w, Je.FpSqrt = T, Je.validateField = R, Je.FpPow = M, Je.FpInvertBatch = v, Je.FpDiv = U, Je.FpLegendre = L, Je.FpIsSquare = K, Je.nLength = H, Je.Field = $, Je.FpSqrtOdd = P, Je.FpSqrtEven = D, Je.hashToPrivateScalar = F, Je.getFieldBytesLength = x, Je.getMinHashLength = B, Je.mapHashToField = q;
2094
2094
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2095
- const e = /* @__PURE__ */ Ls(), t = BigInt(0), n = BigInt(1), r = /* @__PURE__ */ BigInt(2), i = /* @__PURE__ */ BigInt(3), s = /* @__PURE__ */ BigInt(4), o = /* @__PURE__ */ BigInt(5), c = /* @__PURE__ */ BigInt(7), a = /* @__PURE__ */ BigInt(8), u = /* @__PURE__ */ BigInt(9), f = /* @__PURE__ */ BigInt(16);
2095
+ const e = /* @__PURE__ */ Vs(), t = BigInt(0), n = BigInt(1), r = /* @__PURE__ */ BigInt(2), i = /* @__PURE__ */ BigInt(3), s = /* @__PURE__ */ BigInt(4), o = /* @__PURE__ */ BigInt(5), c = /* @__PURE__ */ BigInt(7), a = /* @__PURE__ */ BigInt(8), u = /* @__PURE__ */ BigInt(9), f = /* @__PURE__ */ BigInt(16);
2096
2096
  function l(N, V) {
2097
2097
  const G = N % V;
2098
2098
  return G >= t ? G : V + G;
@@ -2358,7 +2358,7 @@ function j1() {
2358
2358
  if (td) return Tn;
2359
2359
  td = 1, Object.defineProperty(Tn, "__esModule", { value: !0 }), Tn.wNAF = void 0, Tn.negateCt = i, Tn.normalizeZ = s, Tn.mulEndoUnsafe = E, Tn.pippenger = _, Tn.precomputeMSMUnsafe = S, Tn.validateBasic = w, Tn._createCurveFields = O;
2360
2360
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2361
- const e = /* @__PURE__ */ Ls(), t = /* @__PURE__ */ ic(), n = BigInt(0), r = BigInt(1);
2361
+ const e = /* @__PURE__ */ Vs(), t = /* @__PURE__ */ sc(), n = BigInt(0), r = BigInt(1);
2362
2362
  function i(A, R) {
2363
2363
  const M = R.negate();
2364
2364
  return A ? M : R;
@@ -2598,7 +2598,7 @@ function qy() {
2598
2598
  return nd || (nd = 1, (function(e) {
2599
2599
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DER = e.DERErr = void 0, e._splitEndoScalar = c, e._normFnElement = E, e.weierstrassN = _, e.SWUFpSqrtRatio = w, e.mapToCurveSimpleSWU = T, e.ecdh = A, e.ecdsa = R, e.weierstrassPoints = M, e._legacyHelperEquat = L, e.weierstrass = $;
2600
2600
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2601
- const t = /* @__PURE__ */ D1(), n = /* @__PURE__ */ fi(), r = /* @__PURE__ */ Ls(), i = /* @__PURE__ */ j1(), s = /* @__PURE__ */ ic(), o = (P, D) => (P + (P >= 0 ? D : -D) / y) / D;
2601
+ const t = /* @__PURE__ */ D1(), n = /* @__PURE__ */ fi(), r = /* @__PURE__ */ Vs(), i = /* @__PURE__ */ j1(), s = /* @__PURE__ */ sc(), o = (P, D) => (P + (P >= 0 ? D : -D) / y) / D;
2602
2602
  function c(P, D, F) {
2603
2603
  const [[x, B], [q, N]] = D, V = o(N * P, F), G = o(-B * P, F);
2604
2604
  let X = P - V * x - G * q, Y = -V * B - G * N;
@@ -3462,8 +3462,8 @@ function qy() {
3462
3462
  }
3463
3463
  var rd;
3464
3464
  function K1() {
3465
- if (rd) return Qs;
3466
- rd = 1, Object.defineProperty(Qs, "__esModule", { value: !0 }), Qs.getHash = t, Qs.createCurve = n;
3465
+ if (rd) return eo;
3466
+ rd = 1, Object.defineProperty(eo, "__esModule", { value: !0 }), eo.getHash = t, eo.createCurve = n;
3467
3467
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3468
3468
  const e = /* @__PURE__ */ qy();
3469
3469
  function t(r) {
@@ -3473,13 +3473,13 @@ function K1() {
3473
3473
  const s = (o) => (0, e.weierstrass)({ ...r, hash: o });
3474
3474
  return { ...s(i), create: s };
3475
3475
  }
3476
- return Qs;
3476
+ return eo;
3477
3477
  }
3478
3478
  var Hu = {}, id;
3479
3479
  function G1() {
3480
3480
  return id || (id = 1, (function(e) {
3481
3481
  Object.defineProperty(e, "__esModule", { value: !0 }), e._DST_scalar = void 0, e.expand_message_xmd = a, e.expand_message_xof = u, e.hash_to_field = f, e.isogenyMap = l, e.createHasher = d;
3482
- const t = /* @__PURE__ */ Ls(), n = /* @__PURE__ */ ic(), r = t.bytesToNumberBE;
3482
+ const t = /* @__PURE__ */ Vs(), n = /* @__PURE__ */ sc(), r = t.bytesToNumberBE;
3483
3483
  function i(y, g) {
3484
3484
  if (o(y), o(g), y < 0 || y >= 1 << 8 * g)
3485
3485
  throw new Error("invalid I2OSP input: " + y);
@@ -3609,7 +3609,7 @@ function W1() {
3609
3609
  return sd || (sd = 1, (function(e) {
3610
3610
  Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeToCurve = e.hashToCurve = e.secp256k1_hasher = e.schnorr = e.secp256k1 = void 0;
3611
3611
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3612
- const t = /* @__PURE__ */ My(), n = /* @__PURE__ */ fi(), r = /* @__PURE__ */ K1(), i = /* @__PURE__ */ G1(), s = /* @__PURE__ */ ic(), o = /* @__PURE__ */ qy(), c = /* @__PURE__ */ Ls(), a = {
3612
+ const t = /* @__PURE__ */ My(), n = /* @__PURE__ */ fi(), r = /* @__PURE__ */ K1(), i = /* @__PURE__ */ G1(), s = /* @__PURE__ */ sc(), o = /* @__PURE__ */ qy(), c = /* @__PURE__ */ Vs(), a = {
3613
3613
  p: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
3614
3614
  n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),
3615
3615
  h: BigInt(1),
@@ -3770,14 +3770,14 @@ var pe = {}, od;
3770
3770
  function X1() {
3771
3771
  if (od) return pe;
3772
3772
  od = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.isHash = pe.validateObject = pe.memoized = pe.notImplemented = pe.createHmacDrbg = pe.bitMask = pe.bitSet = pe.bitGet = pe.bitLen = pe.aInRange = pe.inRange = pe.asciiToBytes = pe.copyBytes = pe.equalBytes = pe.ensureBytes = pe.numberToVarBytesBE = pe.numberToBytesLE = pe.numberToBytesBE = pe.bytesToNumberLE = pe.bytesToNumberBE = pe.hexToNumber = pe.numberToHexUnpadded = pe.abool = pe.utf8ToBytes = pe.randomBytes = pe.isBytes = pe.hexToBytes = pe.concatBytes = pe.bytesToUtf8 = pe.bytesToHex = pe.anumber = pe.abytes = void 0;
3773
- const e = /* @__PURE__ */ Ls();
3773
+ const e = /* @__PURE__ */ Vs();
3774
3774
  return pe.abytes = e.abytes, pe.anumber = e.anumber, pe.bytesToHex = e.bytesToHex, pe.bytesToUtf8 = e.bytesToUtf8, pe.concatBytes = e.concatBytes, pe.hexToBytes = e.hexToBytes, pe.isBytes = e.isBytes, pe.randomBytes = e.randomBytes, pe.utf8ToBytes = e.utf8ToBytes, pe.abool = e.abool, pe.numberToHexUnpadded = e.numberToHexUnpadded, pe.hexToNumber = e.hexToNumber, pe.bytesToNumberBE = e.bytesToNumberBE, pe.bytesToNumberLE = e.bytesToNumberLE, pe.numberToBytesBE = e.numberToBytesBE, pe.numberToBytesLE = e.numberToBytesLE, pe.numberToVarBytesBE = e.numberToVarBytesBE, pe.ensureBytes = e.ensureBytes, pe.equalBytes = e.equalBytes, pe.copyBytes = e.copyBytes, pe.asciiToBytes = e.asciiToBytes, pe.inRange = e.inRange, pe.aInRange = e.aInRange, pe.bitLen = e.bitLen, pe.bitGet = e.bitGet, pe.bitSet = e.bitSet, pe.bitMask = e.bitMask, pe.createHmacDrbg = e.createHmacDrbg, pe.notImplemented = e.notImplemented, pe.memoized = e.memoized, pe.validateObject = e.validateObject, pe.isHash = e.isHash, pe;
3775
3775
  }
3776
3776
  var cd;
3777
3777
  function z1() {
3778
3778
  if (cd) return ot;
3779
3779
  cd = 1;
3780
- var e = /* @__PURE__ */ W1(), t = /* @__PURE__ */ ic(), n = /* @__PURE__ */ X1();
3780
+ var e = /* @__PURE__ */ W1(), t = /* @__PURE__ */ sc(), n = /* @__PURE__ */ X1();
3781
3781
  function r(p) {
3782
3782
  var h = /* @__PURE__ */ Object.create(null);
3783
3783
  return p && Object.keys(p).forEach(function(b) {
@@ -4418,7 +4418,7 @@ function cb(e, t, n, r) {
4418
4418
  throw new Error(`The value of "value" is out of range. It must be >= 0 and <= 65535. Received ${n}`);
4419
4419
  return r === "LE" ? (e[t] = n & 255, e[t + 1] = n >> 8 & 255) : (e[t] = n >> 8 & 255, e[t + 1] = n & 255), t + 2;
4420
4420
  }
4421
- function sc(e, t, n, r) {
4421
+ function oc(e, t, n, r) {
4422
4422
  if (t + 4 > e.length)
4423
4423
  throw new Error("Offset is outside the bounds of Uint8Array");
4424
4424
  if (r = r.toUpperCase(), n > 4294967295)
@@ -4448,7 +4448,7 @@ function ub(e, t, n) {
4448
4448
  return r = (r << 8) + e[t], r = (r << 8) + e[t + 1], r;
4449
4449
  }
4450
4450
  }
4451
- function Vs(e, t, n) {
4451
+ function $s(e, t, n) {
4452
4452
  if (t + 4 > e.length)
4453
4453
  throw new Error("Offset is outside the bounds of Uint8Array");
4454
4454
  if (n = n.toUpperCase(), n === "LE") {
@@ -4501,7 +4501,7 @@ function zy(e) {
4501
4501
  }
4502
4502
  function lb(e, t, n) {
4503
4503
  const r = zy(t);
4504
- return r === 1 ? En(e, n, t) : r === 2 ? (En(e, n, Ge.OP_PUSHDATA1), En(e, n + 1, t)) : r === 3 ? (En(e, n, Ge.OP_PUSHDATA2), cb(e, n + 1, t, "LE")) : (En(e, n, Ge.OP_PUSHDATA4), sc(e, n + 1, t, "LE")), r;
4504
+ return r === 1 ? En(e, n, t) : r === 2 ? (En(e, n, Ge.OP_PUSHDATA1), En(e, n + 1, t)) : r === 3 ? (En(e, n, Ge.OP_PUSHDATA2), cb(e, n + 1, t, "LE")) : (En(e, n, Ge.OP_PUSHDATA4), oc(e, n + 1, t, "LE")), r;
4505
4505
  }
4506
4506
  function hb(e, t) {
4507
4507
  const n = Br(e, t);
@@ -4517,7 +4517,7 @@ function hb(e, t) {
4517
4517
  } else {
4518
4518
  if (t + 5 > e.length) return null;
4519
4519
  if (n !== Ge.OP_PUSHDATA4) throw new Error("Unexpected opcode");
4520
- r = Vs(e, t + 1, "LE"), i = 5;
4520
+ r = $s(e, t + 1, "LE"), i = 5;
4521
4521
  }
4522
4522
  return {
4523
4523
  opcode: n,
@@ -4556,12 +4556,12 @@ var Eb;
4556
4556
  function _b(e, t) {
4557
4557
  return Eb?.get(e)?.get(t);
4558
4558
  }
4559
- function Io(e) {
4559
+ function Oo(e) {
4560
4560
  const t = typeof e;
4561
4561
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
4562
4562
  }
4563
4563
  function Wt(e, t, n, r, i) {
4564
- const s = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, c = i?.received ?? Io(s), a = {
4564
+ const s = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, c = i?.received ?? Oo(s), a = {
4565
4565
  kind: e.kind,
4566
4566
  type: e.type,
4567
4567
  input: s,
@@ -4647,12 +4647,12 @@ function Ka(e, t) {
4647
4647
  type: "max_value",
4648
4648
  reference: Ka,
4649
4649
  async: !1,
4650
- expects: `<=${e instanceof Date ? e.toJSON() : Io(e)}`,
4650
+ expects: `<=${e instanceof Date ? e.toJSON() : Oo(e)}`,
4651
4651
  requirement: e,
4652
4652
  message: t,
4653
4653
  _run(n, r) {
4654
4654
  return n.typed && n.value > this.requirement && Wt(this, "value", n, r, {
4655
- received: n.value instanceof Date ? n.value.toJSON() : Io(n.value)
4655
+ received: n.value instanceof Date ? n.value.toJSON() : Oo(n.value)
4656
4656
  }), n;
4657
4657
  }
4658
4658
  };
@@ -4663,12 +4663,12 @@ function Ga(e, t) {
4663
4663
  type: "min_value",
4664
4664
  reference: Ga,
4665
4665
  async: !1,
4666
- expects: `>=${e instanceof Date ? e.toJSON() : Io(e)}`,
4666
+ expects: `>=${e instanceof Date ? e.toJSON() : Oo(e)}`,
4667
4667
  requirement: e,
4668
4668
  message: t,
4669
4669
  _run(n, r) {
4670
4670
  return n.typed && n.value < this.requirement && Wt(this, "value", n, r, {
4671
- received: n.value instanceof Date ? n.value.toJSON() : Io(n.value)
4671
+ received: n.value instanceof Date ? n.value.toJSON() : Oo(n.value)
4672
4672
  }), n;
4673
4673
  }
4674
4674
  };
@@ -5022,7 +5022,7 @@ function li(e, t) {
5022
5022
  n[r] = pa(e.entries[r]);
5023
5023
  return { ...e, entries: n };
5024
5024
  }
5025
- function $s(...e) {
5025
+ function Ds(...e) {
5026
5026
  return {
5027
5027
  ...e[0],
5028
5028
  pipe: e,
@@ -5041,8 +5041,8 @@ function $s(...e) {
5041
5041
  }
5042
5042
  const ud = new Uint8Array(32), fd = Ur(
5043
5043
  "fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"
5044
- ), vt = (e) => $s(Xa(Uint8Array), Zy(e));
5045
- function Oo(e, t) {
5044
+ ), vt = (e) => Ds(Xa(Uint8Array), Zy(e));
5045
+ function Bo(e, t) {
5046
5046
  return e.length !== t.length ? !1 : e.every((n, r) => de(n, t[r]) === 0);
5047
5047
  }
5048
5048
  function Kn(e) {
@@ -5062,18 +5062,18 @@ function ng(e) {
5062
5062
  return Array.isArray(e) ? e.length !== 2 ? !1 : e.every((t) => ng(t)) : Bl(e);
5063
5063
  }
5064
5064
  const xb = vt(32), Ab = vt(20), ld = vt(32), De = Xa(Uint8Array);
5065
- $s(Ji(), Jy(/^([0-9a-f]{2})+$/i));
5066
- const vb = $s(
5065
+ Ds(Ji(), Jy(/^([0-9a-f]{2})+$/i));
5066
+ const vb = Ds(
5067
5067
  ln(),
5068
5068
  vl(),
5069
5069
  Ga(0),
5070
5070
  Ka(255)
5071
- ), wr = $s(
5071
+ ), wr = Ds(
5072
5072
  ln(),
5073
5073
  vl(),
5074
5074
  Ga(0),
5075
5075
  Ka(4294967295)
5076
- ), Mu = $s(
5076
+ ), Mu = Ds(
5077
5077
  eg(),
5078
5078
  Ga(0n),
5079
5079
  Ka(0x7fffffffffffffffn)
@@ -5126,7 +5126,7 @@ function sg(e) {
5126
5126
  return Wa(De, e) || Nb(e);
5127
5127
  }
5128
5128
  function Nl(e) {
5129
- return Wa($s(Qy(), Yy(sg)), e);
5129
+ return Wa(Ds(Qy(), Yy(sg)), e);
5130
5130
  }
5131
5131
  function og(e) {
5132
5132
  return e.length - e.filter(sg).length;
@@ -5209,7 +5209,7 @@ function kl(e) {
5209
5209
  function Nr(e) {
5210
5210
  return !(e instanceof Uint8Array) || !kl(e[e.length - 1]) ? !1 : Q1(e.slice(0, -1));
5211
5211
  }
5212
- const To = Bb;
5212
+ const xo = Bb;
5213
5213
  function Te(e, t, n) {
5214
5214
  Object.defineProperty(e, t, {
5215
5215
  configurable: !0,
@@ -5232,13 +5232,13 @@ function On(e) {
5232
5232
  let t;
5233
5233
  return () => (t !== void 0 || (t = e()), t);
5234
5234
  }
5235
- const ys = Ge, Ac = ys.OP_RESERVED;
5235
+ const gs = Ge, vc = gs.OP_RESERVED;
5236
5236
  function za(e, t) {
5237
5237
  if (!e.input && !e.output && !(e.pubkeys && e.m !== void 0) && !e.signatures)
5238
5238
  throw new TypeError("Not enough data");
5239
5239
  t = Object.assign({ validate: !0 }, t || {});
5240
5240
  function n(a) {
5241
- return Nr(a) || (t.allowIncomplete && a === ys.OP_0) !== void 0;
5241
+ return Nr(a) || (t.allowIncomplete && a === gs.OP_0) !== void 0;
5242
5242
  }
5243
5243
  at(
5244
5244
  li(
@@ -5260,16 +5260,16 @@ function za(e, t) {
5260
5260
  const i = { network: e.network || Un };
5261
5261
  let s = [], o = !1;
5262
5262
  function c(a) {
5263
- o || (o = !0, s = ht(a), i.m = s[0] - Ac, i.n = s[s.length - 2] - Ac, i.pubkeys = s.slice(1, -2));
5263
+ o || (o = !0, s = ht(a), i.m = s[0] - vc, i.n = s[s.length - 2] - vc, i.pubkeys = s.slice(1, -2));
5264
5264
  }
5265
5265
  if (Te(i, "output", () => {
5266
5266
  if (e.m && i.n && e.pubkeys)
5267
5267
  return nn(
5268
5268
  [].concat(
5269
- Ac + e.m,
5269
+ vc + e.m,
5270
5270
  e.pubkeys,
5271
- Ac + i.n,
5272
- ys.OP_CHECKMULTISIG
5271
+ vc + i.n,
5272
+ gs.OP_CHECKMULTISIG
5273
5273
  )
5274
5274
  );
5275
5275
  }), Te(i, "m", () => {
@@ -5286,7 +5286,7 @@ function za(e, t) {
5286
5286
  return ht(e.input).slice(1);
5287
5287
  }), Te(i, "input", () => {
5288
5288
  if (e.signatures)
5289
- return nn([ys.OP_0].concat(e.signatures));
5289
+ return nn([gs.OP_0].concat(e.signatures));
5290
5290
  }), Te(i, "witness", () => {
5291
5291
  if (i.input)
5292
5292
  return [];
@@ -5297,7 +5297,7 @@ function za(e, t) {
5297
5297
  if (e.output) {
5298
5298
  if (c(e.output), at(ln(), s[0], { message: "Output is invalid" }), at(ln(), s[s.length - 2], {
5299
5299
  message: "Output is invalid"
5300
- }), s[s.length - 1] !== ys.OP_CHECKMULTISIG)
5300
+ }), s[s.length - 1] !== gs.OP_CHECKMULTISIG)
5301
5301
  throw new TypeError("Output is invalid");
5302
5302
  if (i.m <= 0 || i.n > 16 || i.m > i.n || i.n !== s.length - 3)
5303
5303
  throw new TypeError("Output is invalid");
@@ -5305,7 +5305,7 @@ function za(e, t) {
5305
5305
  throw new TypeError("Output is invalid");
5306
5306
  if (e.m !== void 0 && e.m !== i.m) throw new TypeError("m mismatch");
5307
5307
  if (e.n !== void 0 && e.n !== i.n) throw new TypeError("n mismatch");
5308
- if (e.pubkeys && !Oo(e.pubkeys, i.pubkeys))
5308
+ if (e.pubkeys && !Bo(e.pubkeys, i.pubkeys))
5309
5309
  throw new TypeError("Pubkeys mismatch");
5310
5310
  }
5311
5311
  if (e.pubkeys) {
@@ -5320,10 +5320,10 @@ function za(e, t) {
5320
5320
  throw new TypeError("Too many signatures provided");
5321
5321
  }
5322
5322
  if (e.input) {
5323
- if (e.input[0] !== ys.OP_0) throw new TypeError("Input is invalid");
5323
+ if (e.input[0] !== gs.OP_0) throw new TypeError("Input is invalid");
5324
5324
  if (i.signatures.length === 0 || !i.signatures.every(n))
5325
5325
  throw new TypeError("Input has invalid signature(s)");
5326
- if (e.signatures && !Oo(e.signatures, i.signatures))
5326
+ if (e.signatures && !Bo(e.signatures, i.signatures))
5327
5327
  throw new TypeError("Signature mismatch");
5328
5328
  if (e.m !== void 0 && e.m !== e.signatures.length)
5329
5329
  throw new TypeError("Signature count mismatch");
@@ -5386,7 +5386,7 @@ function ag(e, t) {
5386
5386
  }
5387
5387
  const ss = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
5388
5388
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
5389
- function oc(e) {
5389
+ function cc(e) {
5390
5390
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
5391
5391
  }
5392
5392
  function Cb(e) {
@@ -5394,7 +5394,7 @@ function Cb(e) {
5394
5394
  throw new Error("positive integer expected, got " + e);
5395
5395
  }
5396
5396
  function Nn(e, ...t) {
5397
- if (!oc(e))
5397
+ if (!cc(e))
5398
5398
  throw new Error("Uint8Array expected");
5399
5399
  if (t.length > 0 && !t.includes(e.length))
5400
5400
  throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
@@ -5421,7 +5421,7 @@ function qu(e) {
5421
5421
  function Jn(e, t) {
5422
5422
  return e << 32 - t | e >>> t;
5423
5423
  }
5424
- function vc(e, t) {
5424
+ function Ic(e, t) {
5425
5425
  return e << t | e >>> 32 - t >>> 0;
5426
5426
  }
5427
5427
  const ug = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", Fb = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
@@ -5442,7 +5442,7 @@ function wd(e) {
5442
5442
  if (e >= ar.a && e <= ar.f)
5443
5443
  return e - (ar.a - 10);
5444
5444
  }
5445
- function cc(e) {
5445
+ function ac(e) {
5446
5446
  if (typeof e != "string")
5447
5447
  throw new Error("hex string expected, got " + typeof e);
5448
5448
  if (ug)
@@ -5638,7 +5638,7 @@ const Fr = /* @__PURE__ */ Uint32Array.from([
5638
5638
  function bd(e, t, n, r) {
5639
5639
  return e === 0 ? t ^ n ^ r : e === 1 ? t & n | ~t & r : e === 2 ? (t | ~n) ^ r : e === 3 ? t & r | n & ~r : t ^ (n | ~r);
5640
5640
  }
5641
- const Ic = /* @__PURE__ */ new Uint32Array(16);
5641
+ const Oc = /* @__PURE__ */ new Uint32Array(16);
5642
5642
  class Xb extends Pl {
5643
5643
  constructor() {
5644
5644
  super(64, 20, 8, !0), this.h0 = 1732584193, this.h1 = -271733879, this.h2 = -1732584194, this.h3 = 271733878, this.h4 = -1009589776;
@@ -5652,31 +5652,31 @@ class Xb extends Pl {
5652
5652
  }
5653
5653
  process(t, n) {
5654
5654
  for (let y = 0; y < 16; y++, n += 4)
5655
- Ic[y] = t.getUint32(n, !0);
5655
+ Oc[y] = t.getUint32(n, !0);
5656
5656
  let r = this.h0 | 0, i = r, s = this.h1 | 0, o = s, c = this.h2 | 0, a = c, u = this.h3 | 0, f = u, l = this.h4 | 0, d = l;
5657
5657
  for (let y = 0; y < 5; y++) {
5658
5658
  const g = 4 - y, m = Gb[y], E = Wb[y], _ = pg[y], S = yg[y], w = jb[y], T = Kb[y];
5659
5659
  for (let O = 0; O < 16; O++) {
5660
- const A = vc(r + bd(y, s, c, u) + Ic[_[O]] + m, w[O]) + l | 0;
5661
- r = l, l = u, u = vc(c, 10) | 0, c = s, s = A;
5660
+ const A = Ic(r + bd(y, s, c, u) + Oc[_[O]] + m, w[O]) + l | 0;
5661
+ r = l, l = u, u = Ic(c, 10) | 0, c = s, s = A;
5662
5662
  }
5663
5663
  for (let O = 0; O < 16; O++) {
5664
- const A = vc(i + bd(g, o, a, f) + Ic[S[O]] + E, T[O]) + d | 0;
5665
- i = d, d = f, f = vc(a, 10) | 0, a = o, o = A;
5664
+ const A = Ic(i + bd(g, o, a, f) + Oc[S[O]] + E, T[O]) + d | 0;
5665
+ i = d, d = f, f = Ic(a, 10) | 0, a = o, o = A;
5666
5666
  }
5667
5667
  }
5668
5668
  this.set(this.h1 + c + f | 0, this.h2 + u + d | 0, this.h3 + l + i | 0, this.h4 + r + o | 0, this.h0 + s + a | 0);
5669
5669
  }
5670
5670
  roundClean() {
5671
- ji(Ic);
5671
+ ji(Oc);
5672
5672
  }
5673
5673
  destroy() {
5674
5674
  this.destroyed = !0, ji(this.buffer), this.set(0, 0, 0, 0, 0);
5675
5675
  }
5676
5676
  }
5677
- const zb = /* @__PURE__ */ Ya(() => new Xb()), Yb = zb, Oc = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ed = /* @__PURE__ */ BigInt(32);
5677
+ const zb = /* @__PURE__ */ Ya(() => new Xb()), Yb = zb, Bc = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ed = /* @__PURE__ */ BigInt(32);
5678
5678
  function Zb(e, t = !1) {
5679
- return t ? { h: Number(e & Oc), l: Number(e >> Ed & Oc) } : { h: Number(e >> Ed & Oc) | 0, l: Number(e & Oc) | 0 };
5679
+ return t ? { h: Number(e & Bc), l: Number(e >> Ed & Bc) } : { h: Number(e >> Ed & Bc) | 0, l: Number(e & Bc) | 0 };
5680
5680
  }
5681
5681
  function Jb(e, t = !1) {
5682
5682
  const n = e.length;
@@ -5687,7 +5687,7 @@ function Jb(e, t = !1) {
5687
5687
  }
5688
5688
  return [r, i];
5689
5689
  }
5690
- const _d = (e, t, n) => e >>> n, Sd = (e, t, n) => e << 32 - n | t >>> n, os = (e, t, n) => e >>> n | t << 32 - n, cs = (e, t, n) => e << 32 - n | t >>> n, Bc = (e, t, n) => e << 64 - n | t >>> n - 32, Nc = (e, t, n) => e >>> n - 32 | t << 64 - n;
5690
+ const _d = (e, t, n) => e >>> n, Sd = (e, t, n) => e << 32 - n | t >>> n, os = (e, t, n) => e >>> n | t << 32 - n, cs = (e, t, n) => e << 32 - n | t >>> n, Nc = (e, t, n) => e << 64 - n | t >>> n - 32, kc = (e, t, n) => e >>> n - 32 | t << 64 - n;
5691
5691
  function ur(e, t, n, r) {
5692
5692
  const i = (t >>> 0) + (r >>> 0);
5693
5693
  return { h: e + n + (i / 2 ** 32 | 0) | 0, l: i | 0 };
@@ -5895,12 +5895,12 @@ class uE extends Pl {
5895
5895
  for (let w = 0; w < 16; w++, n += 4)
5896
5896
  Lr[w] = t.getUint32(n), Vr[w] = t.getUint32(n += 4);
5897
5897
  for (let w = 16; w < 80; w++) {
5898
- const T = Lr[w - 15] | 0, O = Vr[w - 15] | 0, A = os(T, O, 1) ^ os(T, O, 8) ^ _d(T, O, 7), R = cs(T, O, 1) ^ cs(T, O, 8) ^ Sd(T, O, 7), M = Lr[w - 2] | 0, v = Vr[w - 2] | 0, U = os(M, v, 19) ^ Bc(M, v, 61) ^ _d(M, v, 6), L = cs(M, v, 19) ^ Nc(M, v, 61) ^ Sd(M, v, 6), K = tE(R, L, Vr[w - 7], Vr[w - 16]), H = nE(K, A, U, Lr[w - 7], Lr[w - 16]);
5898
+ const T = Lr[w - 15] | 0, O = Vr[w - 15] | 0, A = os(T, O, 1) ^ os(T, O, 8) ^ _d(T, O, 7), R = cs(T, O, 1) ^ cs(T, O, 8) ^ Sd(T, O, 7), M = Lr[w - 2] | 0, v = Vr[w - 2] | 0, U = os(M, v, 19) ^ Nc(M, v, 61) ^ _d(M, v, 6), L = cs(M, v, 19) ^ kc(M, v, 61) ^ Sd(M, v, 6), K = tE(R, L, Vr[w - 7], Vr[w - 16]), H = nE(K, A, U, Lr[w - 7], Lr[w - 16]);
5899
5899
  Lr[w] = H | 0, Vr[w] = K | 0;
5900
5900
  }
5901
5901
  let { Ah: r, Al: i, Bh: s, Bl: o, Ch: c, Cl: a, Dh: u, Dl: f, Eh: l, El: d, Fh: y, Fl: g, Gh: m, Gl: E, Hh: _, Hl: S } = this;
5902
5902
  for (let w = 0; w < 80; w++) {
5903
- const T = os(l, d, 14) ^ os(l, d, 18) ^ Bc(l, d, 41), O = cs(l, d, 14) ^ cs(l, d, 18) ^ Nc(l, d, 41), A = l & y ^ ~l & m, R = d & g ^ ~d & E, M = rE(S, O, R, aE[w], Vr[w]), v = iE(M, _, T, A, cE[w], Lr[w]), U = M | 0, L = os(r, i, 28) ^ Bc(r, i, 34) ^ Bc(r, i, 39), K = cs(r, i, 28) ^ Nc(r, i, 34) ^ Nc(r, i, 39), H = r & s ^ r & c ^ s & c, $ = i & o ^ i & a ^ o & a;
5903
+ const T = os(l, d, 14) ^ os(l, d, 18) ^ Nc(l, d, 41), O = cs(l, d, 14) ^ cs(l, d, 18) ^ kc(l, d, 41), A = l & y ^ ~l & m, R = d & g ^ ~d & E, M = rE(S, O, R, aE[w], Vr[w]), v = iE(M, _, T, A, cE[w], Lr[w]), U = M | 0, L = os(r, i, 28) ^ Nc(r, i, 34) ^ Nc(r, i, 39), K = cs(r, i, 28) ^ kc(r, i, 34) ^ kc(r, i, 39), H = r & s ^ r & c ^ s & c, $ = i & o ^ i & a ^ o & a;
5904
5904
  _ = m | 0, S = E | 0, m = y | 0, E = g | 0, y = l | 0, g = d | 0, { h: l, l: d } = ur(u | 0, f | 0, v | 0, U | 0), u = c | 0, f = a | 0, c = s | 0, a = o | 0, s = r | 0, o = i | 0;
5905
5905
  const P = Qb(U, K, $);
5906
5906
  r = eE(P, v, L, H), i = P | 0;
@@ -6635,8 +6635,8 @@ function yE(e) {
6635
6635
  function gE(e) {
6636
6636
  return en(en(e));
6637
6637
  }
6638
- const Bo = yE(gE), $r = Ge;
6639
- function ac(e, t) {
6638
+ const No = yE(gE), $r = Ge;
6639
+ function uc(e, t) {
6640
6640
  if (!e.address && !e.hash && !e.output && !e.pubkey && !e.input)
6641
6641
  throw new TypeError("Not enough data");
6642
6642
  t = Object.assign({ validate: !0 }, t || {}), at(
@@ -6654,13 +6654,13 @@ function ac(e, t) {
6654
6654
  e
6655
6655
  );
6656
6656
  const n = On(() => {
6657
- const o = Bo.decode(e.address), c = Br(o, 0), a = o.slice(1);
6657
+ const o = No.decode(e.address), c = Br(o, 0), a = o.slice(1);
6658
6658
  return { version: c, hash: a };
6659
6659
  }), r = On(() => ht(e.input)), i = e.network || Un, s = { name: "p2pkh", network: i };
6660
6660
  if (Te(s, "address", () => {
6661
6661
  if (!s.hash) return;
6662
6662
  const o = new Uint8Array(21);
6663
- return En(o, 0, i.pubKeyHash), o.set(s.hash, 1), Bo.encode(o);
6663
+ return En(o, 0, i.pubKeyHash), o.set(s.hash, 1), No.encode(o);
6664
6664
  }), Te(s, "hash", () => {
6665
6665
  if (e.output) return e.output.slice(3, 23);
6666
6666
  if (e.address) return n().hash;
@@ -6730,8 +6730,8 @@ function ac(e, t) {
6730
6730
  }
6731
6731
  return Object.assign(s, e);
6732
6732
  }
6733
- const eo = Ge;
6734
- function uc(e, t) {
6733
+ const to = Ge;
6734
+ function fc(e, t) {
6735
6735
  if (!e.address && !e.hash && !e.output && !e.redeem && !e.input)
6736
6736
  throw new TypeError("Not enough data");
6737
6737
  t = Object.assign({ validate: !0 }, t || {}), at(
@@ -6758,13 +6758,13 @@ function uc(e, t) {
6758
6758
  let n = e.network;
6759
6759
  n || (n = e.redeem && e.redeem.network || Un);
6760
6760
  const r = { network: n }, i = On(() => {
6761
- const c = Bo.decode(e.address), a = Br(c, 0), u = c.slice(1);
6761
+ const c = No.decode(e.address), a = Br(c, 0), u = c.slice(1);
6762
6762
  return { version: a, hash: u };
6763
6763
  }), s = On(() => ht(e.input)), o = On(() => {
6764
6764
  const c = s(), a = c[c.length - 1];
6765
6765
  return {
6766
6766
  network: n,
6767
- output: a === eo.OP_FALSE ? Uint8Array.from([]) : a,
6767
+ output: a === to.OP_FALSE ? Uint8Array.from([]) : a,
6768
6768
  input: nn(c.slice(0, -1)),
6769
6769
  witness: e.witness || []
6770
6770
  };
@@ -6772,14 +6772,14 @@ function uc(e, t) {
6772
6772
  if (Te(r, "address", () => {
6773
6773
  if (!r.hash) return;
6774
6774
  const c = new Uint8Array(21);
6775
- return En(c, 0, r.network.scriptHash), c.set(r.hash, 1), Bo.encode(c);
6775
+ return En(c, 0, r.network.scriptHash), c.set(r.hash, 1), No.encode(c);
6776
6776
  }), Te(r, "hash", () => {
6777
6777
  if (e.output) return e.output.slice(2, 22);
6778
6778
  if (e.address) return i().hash;
6779
6779
  if (r.redeem && r.redeem.output) return Or(r.redeem.output);
6780
6780
  }), Te(r, "output", () => {
6781
6781
  if (r.hash)
6782
- return nn([eo.OP_HASH160, r.hash, eo.OP_EQUAL]);
6782
+ return nn([to.OP_HASH160, r.hash, to.OP_EQUAL]);
6783
6783
  }), Te(r, "redeem", () => {
6784
6784
  if (e.input)
6785
6785
  return o();
@@ -6808,7 +6808,7 @@ function uc(e, t) {
6808
6808
  c = e.hash;
6809
6809
  }
6810
6810
  if (e.output) {
6811
- if (e.output.length !== 23 || e.output[0] !== eo.OP_HASH160 || e.output[1] !== 20 || e.output[22] !== eo.OP_EQUAL)
6811
+ if (e.output.length !== 23 || e.output[0] !== to.OP_HASH160 || e.output[1] !== 20 || e.output[22] !== to.OP_EQUAL)
6812
6812
  throw new TypeError("Output is invalid");
6813
6813
  const u = e.output.slice(2, 22);
6814
6814
  if (c.length > 0 && de(c, u) !== 0)
@@ -6864,13 +6864,13 @@ function uc(e, t) {
6864
6864
  }
6865
6865
  a(e.redeem);
6866
6866
  }
6867
- if (e.witness && e.redeem && e.redeem.witness && !Oo(e.redeem.witness, e.witness))
6867
+ if (e.witness && e.redeem && e.redeem.witness && !Bo(e.redeem.witness, e.witness))
6868
6868
  throw new TypeError("Witness and redeem.witness mismatch");
6869
6869
  }
6870
6870
  return Object.assign(r, e);
6871
6871
  }
6872
6872
  var Ei = {}, Td;
6873
- function fc() {
6873
+ function lc() {
6874
6874
  if (Td) return Ei;
6875
6875
  Td = 1, Object.defineProperty(Ei, "__esModule", { value: !0 }), Ei.bech32m = Ei.bech32 = void 0;
6876
6876
  const e = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", t = {};
@@ -7004,7 +7004,7 @@ function fc() {
7004
7004
  }
7005
7005
  return Ei.bech32 = a("bech32"), Ei.bech32m = a("bech32m"), Ei;
7006
7006
  }
7007
- var Gt = fc();
7007
+ var Gt = lc();
7008
7008
  const xd = Ge, mE = new Uint8Array(0);
7009
7009
  function Ja(e, t) {
7010
7010
  if (!e.address && !e.hash && !e.output && !e.pubkey && !e.witness)
@@ -7104,10 +7104,10 @@ function Ja(e, t) {
7104
7104
  return Object.assign(i, e);
7105
7105
  }
7106
7106
  const Ad = Ge, Vu = new Uint8Array(0);
7107
- function kc(e) {
7107
+ function Pc(e) {
7108
7108
  return !!(e instanceof Uint8Array && e.length === 65 && e[0] === 4 && Kn(e));
7109
7109
  }
7110
- function lc(e, t) {
7110
+ function hc(e, t) {
7111
7111
  if (!e.address && !e.hash && !e.output && !e.redeem && !e.witness)
7112
7112
  throw new TypeError("Not enough data");
7113
7113
  t = Object.assign({ validate: !0 }, t || {}), at(
@@ -7217,10 +7217,10 @@ function lc(e, t) {
7217
7217
  }
7218
7218
  if (e.redeem.input && !Nl(r()))
7219
7219
  throw new TypeError("Non push-only scriptSig");
7220
- if (e.witness && e.redeem.witness && !Oo(e.witness, e.redeem.witness))
7220
+ if (e.witness && e.redeem.witness && !Bo(e.witness, e.redeem.witness))
7221
7221
  throw new TypeError("Witness and redeem.witness mismatch");
7222
- if (e.redeem.input && r().some(kc) || e.redeem.output && (ht(e.redeem.output) || []).some(
7223
- kc
7222
+ if (e.redeem.input && r().some(Pc) || e.redeem.output && (ht(e.redeem.output) || []).some(
7223
+ Pc
7224
7224
  ))
7225
7225
  throw new TypeError(
7226
7226
  "redeem.input or redeem.output contains uncompressed pubkey"
@@ -7230,22 +7230,22 @@ function lc(e, t) {
7230
7230
  const c = e.witness[e.witness.length - 1];
7231
7231
  if (e.redeem && e.redeem.output && de(e.redeem.output, c) !== 0)
7232
7232
  throw new TypeError("Witness and redeem.output mismatch");
7233
- if (e.witness.some(kc) || (ht(c) || []).some(kc))
7233
+ if (e.witness.some(Pc) || (ht(c) || []).some(Pc))
7234
7234
  throw new TypeError("Witness contains uncompressed pubkey");
7235
7235
  }
7236
7236
  }
7237
7237
  return Object.assign(s, e);
7238
7238
  }
7239
- const xo = {};
7239
+ const Ao = {};
7240
7240
  function wE(e) {
7241
- e ? e !== xo.eccLib && (bE(e), xo.eccLib = e) : xo.eccLib = e;
7241
+ e ? e !== Ao.eccLib && (bE(e), Ao.eccLib = e) : Ao.eccLib = e;
7242
7242
  }
7243
7243
  function $f() {
7244
- if (!xo.eccLib)
7244
+ if (!Ao.eccLib)
7245
7245
  throw new Error(
7246
7246
  "No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance"
7247
7247
  );
7248
- return xo.eccLib;
7248
+ return Ao.eccLib;
7249
7249
  }
7250
7250
  const fr = (e) => Ur(e);
7251
7251
  function bE(e) {
@@ -7378,7 +7378,7 @@ function hi(e, t, n) {
7378
7378
  let r = 0;
7379
7379
  return e < 253 ? (t.set([Number(e)], n), r = 1) : e <= 65535 ? (t.set([253], n), _E(t, n + 1, Number(e), "LE"), r = 3) : e <= 4294967295 ? (t.set([254], n), SE(t, n + 1, Number(e), "LE"), r = 5) : (t.set([255], n), TE(t, n + 1, BigInt(e), "LE"), r = 9), { buffer: t, bytes: r };
7380
7380
  }
7381
- function Ds(e, t) {
7381
+ function js(e, t) {
7382
7382
  t === void 0 && (t = 0);
7383
7383
  const n = e.at(t);
7384
7384
  if (n === void 0)
@@ -7451,7 +7451,7 @@ class Dt {
7451
7451
  this.offset = Wy(this.buffer, this.offset, BigInt(t), "LE");
7452
7452
  }
7453
7453
  writeUInt32(t) {
7454
- this.offset = sc(this.buffer, this.offset, t, "LE");
7454
+ this.offset = oc(this.buffer, this.offset, t, "LE");
7455
7455
  }
7456
7456
  writeUInt64(t) {
7457
7457
  this.offset = ab(this.buffer, this.offset, BigInt(t), "LE");
@@ -7495,7 +7495,7 @@ class kE {
7495
7495
  return this.offset += 4, t;
7496
7496
  }
7497
7497
  readUInt32() {
7498
- const t = Vs(this.buffer, this.offset, "LE");
7498
+ const t = $s(this.buffer, this.offset, "LE");
7499
7499
  return this.offset += 4, t;
7500
7500
  }
7501
7501
  readInt64() {
@@ -7503,7 +7503,7 @@ class kE {
7503
7503
  return this.offset += 8, t;
7504
7504
  }
7505
7505
  readVarInt() {
7506
- const { bigintValue: t, bytes: n } = Ds(this.buffer, this.offset);
7506
+ const { bigintValue: t, bytes: n } = js(this.buffer, this.offset);
7507
7507
  return this.offset += n, t;
7508
7508
  }
7509
7509
  readSlice(t) {
@@ -7570,7 +7570,7 @@ function UE(e, t) {
7570
7570
  ut(t ? [e, t] : [e])
7571
7571
  );
7572
7572
  }
7573
- function Pc(e, t) {
7573
+ function Rc(e, t) {
7574
7574
  if (!(e instanceof Uint8Array) || e.length !== 32 || t && t.length !== 32) return null;
7575
7575
  const n = UE(e, t), r = $f().xOnlyPointAddTweak(e, n);
7576
7576
  return !r || r.xOnlyPubkey === null ? null : {
@@ -7586,7 +7586,7 @@ function CE(e) {
7586
7586
  return hi(e.length, n), ut([n, e]);
7587
7587
  }
7588
7588
  const Id = Ge, Od = 1, HE = 80;
7589
- function hc(e, t) {
7589
+ function dc(e, t) {
7590
7590
  if (!e.address && !e.output && !e.pubkey && !e.internalPubkey && !(e.witness && e.witness.length > 1))
7591
7591
  throw new TypeError("Not enough data");
7592
7592
  t = Object.assign({ validate: !0 }, t || {}), at(
@@ -7657,7 +7657,7 @@ function hc(e, t) {
7657
7657
  if (e.output) return e.output.slice(2);
7658
7658
  if (e.address) return n().data;
7659
7659
  if (o.internalPubkey) {
7660
- const c = Pc(o.internalPubkey, o.hash);
7660
+ const c = Rc(o.internalPubkey, o.hash);
7661
7661
  if (c) return c.x;
7662
7662
  }
7663
7663
  }), Te(o, "internalPubkey", () => {
@@ -7679,7 +7679,7 @@ function hc(e, t) {
7679
7679
  version: o.redeemVersion
7680
7680
  }), u = ma(c, a);
7681
7681
  if (!u) return;
7682
- const f = Pc(e.internalPubkey, c.hash);
7682
+ const f = Rc(e.internalPubkey, c.hash);
7683
7683
  if (!f) return;
7684
7684
  const l = ut(
7685
7685
  [
@@ -7714,7 +7714,7 @@ function hc(e, t) {
7714
7714
  c = e.output.slice(2);
7715
7715
  }
7716
7716
  if (e.internalPubkey) {
7717
- const f = Pc(e.internalPubkey, o.hash);
7717
+ const f = Rc(e.internalPubkey, o.hash);
7718
7718
  if (c.length > 0 && de(c, f.x) !== 0)
7719
7719
  throw new TypeError("Pubkey mismatch");
7720
7720
  c = f.x;
@@ -7742,7 +7742,7 @@ function hc(e, t) {
7742
7742
  if (o.redeem.output && de(e.redeem.output, o.redeem.output) !== 0)
7743
7743
  throw new TypeError("Redeem.output and witness mismatch");
7744
7744
  }
7745
- if (e.redeem.witness && o.redeem.witness && !Oo(e.redeem.witness, o.redeem.witness))
7745
+ if (e.redeem.witness && o.redeem.witness && !Bo(e.redeem.witness, o.redeem.witness))
7746
7746
  throw new TypeError("Redeem.witness and witness mismatch");
7747
7747
  }
7748
7748
  if (u && u.length)
@@ -7769,7 +7769,7 @@ function hc(e, t) {
7769
7769
  throw new TypeError("Internal pubkey mismatch");
7770
7770
  if (!$f().isXOnlyPoint(d))
7771
7771
  throw new TypeError("Invalid internalPubkey for p2tr witness");
7772
- const y = f[0] & Zc, g = u[u.length - 2], m = Tr({ output: g, version: y }), E = Df(f, m), _ = Pc(d, E);
7772
+ const y = f[0] & Zc, g = u[u.length - 2], m = Tr({ output: g, version: y }), E = Df(f, m), _ = Rc(d, E);
7773
7773
  if (!_)
7774
7774
  throw new TypeError("Invalid outputKey for p2tr witness");
7775
7775
  if (c.length && de(c, _.x) !== 0)
@@ -7793,7 +7793,7 @@ function FE(e, t) {
7793
7793
  return console.warn(Ig), ME(n, r, t.bech32);
7794
7794
  }
7795
7795
  function Og(e) {
7796
- const t = Bo.decode(e);
7796
+ const t = No.decode(e);
7797
7797
  if (t.length < 21) throw new TypeError(e + " is too short");
7798
7798
  if (t.length > 21) throw new TypeError(e + " is too long");
7799
7799
  const n = Br(t, 0), r = t.slice(1);
@@ -7822,11 +7822,11 @@ function ME(e, t, n) {
7822
7822
  function qE(e, t) {
7823
7823
  t = t || Un;
7824
7824
  try {
7825
- return ac({ output: e, network: t }).address;
7825
+ return uc({ output: e, network: t }).address;
7826
7826
  } catch {
7827
7827
  }
7828
7828
  try {
7829
- return uc({ output: e, network: t }).address;
7829
+ return fc({ output: e, network: t }).address;
7830
7830
  } catch {
7831
7831
  }
7832
7832
  try {
@@ -7834,11 +7834,11 @@ function qE(e, t) {
7834
7834
  } catch {
7835
7835
  }
7836
7836
  try {
7837
- return lc({ output: e, network: t }).address;
7837
+ return hc({ output: e, network: t }).address;
7838
7838
  } catch {
7839
7839
  }
7840
7840
  try {
7841
- return hc({ output: e, network: t }).address;
7841
+ return dc({ output: e, network: t }).address;
7842
7842
  } catch {
7843
7843
  }
7844
7844
  try {
@@ -7856,9 +7856,9 @@ function Bg(e, t) {
7856
7856
  }
7857
7857
  if (n) {
7858
7858
  if (n.version === t.pubKeyHash)
7859
- return ac({ hash: n.hash }).output;
7860
- if (n.version === t.scriptHash)
7861
7859
  return uc({ hash: n.hash }).output;
7860
+ if (n.version === t.scriptHash)
7861
+ return fc({ hash: n.hash }).output;
7862
7862
  } else {
7863
7863
  try {
7864
7864
  r = Ul(e);
@@ -7871,10 +7871,10 @@ function Bg(e, t) {
7871
7871
  if (r.data.length === 20)
7872
7872
  return Ja({ hash: r.data }).output;
7873
7873
  if (r.data.length === 32)
7874
- return lc({ hash: r.data }).output;
7874
+ return hc({ hash: r.data }).output;
7875
7875
  } else if (r.version === 1) {
7876
7876
  if (r.data.length === 32)
7877
- return hc({ pubkey: r.data }).output;
7877
+ return dc({ pubkey: r.data }).output;
7878
7878
  } else if (r.version >= Ag && r.version <= xg && r.data.length >= Tg && r.data.length <= Sg)
7879
7879
  return console.warn(Ig), nn([
7880
7880
  r.version + vg,
@@ -8199,7 +8199,7 @@ function KE(e) {
8199
8199
  path: "m"
8200
8200
  };
8201
8201
  for (const r of jE(e.value.length / 4 - 1)) {
8202
- const i = Vs(e.value, r * 4 + 4, "LE"), s = !!(i & 2147483648), o = i & 2147483647;
8202
+ const i = $s(e.value, r * 4 + 4, "LE"), s = !!(i & 2147483648), o = i & 2147483647;
8203
8203
  n.path += "/" + o.toString(10) + (s ? "'" : "");
8204
8204
  }
8205
8205
  return n;
@@ -8211,7 +8211,7 @@ function GE(e) {
8211
8211
  return r.slice(1).forEach((o) => {
8212
8212
  const c = o.slice(-1) === "'";
8213
8213
  let a = 2147483647 & parseInt(c ? o.slice(0, -1) : o, 10);
8214
- c && (a += 2147483648), sc(i, s, a, "LE"), s += 4;
8214
+ c && (a += 2147483648), oc(i, s, a, "LE"), s += 4;
8215
8215
  }), {
8216
8216
  key: n,
8217
8217
  value: i
@@ -8405,11 +8405,11 @@ function N2(e) {
8405
8405
  throw new Error(
8406
8406
  "Decode Error: could not decode sighashType with key 0x" + xe(e.key)
8407
8407
  );
8408
- return Number(Vs(e.value, 0, "LE"));
8408
+ return Number($s(e.value, 0, "LE"));
8409
8409
  }
8410
8410
  function k2(e) {
8411
8411
  const t = Uint8Array.from([me.SIGHASH_TYPE]), n = new Uint8Array(4);
8412
- return sc(n, 0, e, "LE"), {
8412
+ return oc(n, 0, e, "LE"), {
8413
8413
  key: t,
8414
8414
  value: n
8415
8415
  };
@@ -8577,7 +8577,7 @@ function i_(e) {
8577
8577
  );
8578
8578
  const t = Xy(e.value, 0, "LE");
8579
8579
  let n = 8;
8580
- const { numberValue: r, bytes: i } = Ds(
8580
+ const { numberValue: r, bytes: i } = js(
8581
8581
  e.value,
8582
8582
  n
8583
8583
  );
@@ -8620,7 +8620,7 @@ function f_(e) {
8620
8620
  let t = 0;
8621
8621
  const n = [];
8622
8622
  for (; t < e.value.length; ) {
8623
- const r = e.value[t++], i = e.value[t++], { numberValue: s, bytes: o } = Ds(
8623
+ const r = e.value[t++], i = e.value[t++], { numberValue: s, bytes: o } = js(
8624
8624
  e.value,
8625
8625
  t
8626
8626
  );
@@ -8683,7 +8683,7 @@ function Cl(e, t = m_) {
8683
8683
  path: "m"
8684
8684
  };
8685
8685
  for (const f of g_(c.value.length / 4 - 1)) {
8686
- const l = Vs(c.value, f * 4 + 4, "LE"), d = !!(l & 2147483648), y = l & 2147483647;
8686
+ const l = $s(c.value, f * 4 + 4, "LE"), d = !!(l & 2147483648), y = l & 2147483647;
8687
8687
  u.path += "/" + y.toString(10) + (d ? "'" : "");
8688
8688
  }
8689
8689
  return u;
@@ -8695,7 +8695,7 @@ function Cl(e, t = m_) {
8695
8695
  return f.slice(1).forEach((y) => {
8696
8696
  const g = y.slice(-1) === "'";
8697
8697
  let m = 2147483647 & parseInt(g ? y.slice(0, -1) : y, 10);
8698
- g && (m += 2147483648), sc(l, d, m, "LE"), d += 4;
8698
+ g && (m += 2147483648), oc(l, d, m, "LE"), d += 4;
8699
8699
  }), {
8700
8700
  key: u,
8701
8701
  value: l
@@ -8761,7 +8761,7 @@ const w_ = (e) => e.length === 32;
8761
8761
  function Rg(e) {
8762
8762
  const t = Cl(e, w_);
8763
8763
  function n(o) {
8764
- const { numberValue: c, bytes: a } = Ds(
8764
+ const { numberValue: c, bytes: a } = js(
8765
8765
  o.value
8766
8766
  ), u = t.decode({
8767
8767
  key: o.key,
@@ -8905,13 +8905,13 @@ function E_(e) {
8905
8905
  function __(e, t) {
8906
8906
  let n = 0;
8907
8907
  function r() {
8908
- const { numberValue: E, bytes: _ } = Ds(e, n);
8908
+ const { numberValue: E, bytes: _ } = js(e, n);
8909
8909
  n += _;
8910
8910
  const S = e.slice(n, n + Number(E));
8911
8911
  return n += Number(E), S;
8912
8912
  }
8913
8913
  function i() {
8914
- const E = Vs(e, n, "BE");
8914
+ const E = $s(e, n, "BE");
8915
8915
  return n += 4, E;
8916
8916
  }
8917
8917
  function s() {
@@ -9222,7 +9222,7 @@ function Ut(e, t) {
9222
9222
  if (n === void 0) throw new Error(`No input #${t}`);
9223
9223
  return n;
9224
9224
  }
9225
- function No(e, t) {
9225
+ function ko(e, t) {
9226
9226
  const n = e[t];
9227
9227
  if (n === void 0) throw new Error(`No output #${t}`);
9228
9228
  return n;
@@ -9288,7 +9288,7 @@ function I_(e, t) {
9288
9288
  Fg(t, r);
9289
9289
  }
9290
9290
  function O_(e, t) {
9291
- const n = e.length - 1, r = No(e, n);
9291
+ const n = e.length - 1, r = ko(e, n);
9292
9292
  Mg(t, r);
9293
9293
  }
9294
9294
  let Ud = class {
@@ -9328,7 +9328,7 @@ let Ud = class {
9328
9328
  return Fg(n, r), this;
9329
9329
  }
9330
9330
  updateOutput(t, n) {
9331
- const r = No(this.outputs, t);
9331
+ const r = ko(this.outputs, t);
9332
9332
  return Mg(n, r), this;
9333
9333
  }
9334
9334
  addUnknownKeyValToGlobal(t) {
@@ -9343,7 +9343,7 @@ let Ud = class {
9343
9343
  return Ku(n, r.unknownKeyVals, Gu(me)), r.unknownKeyVals || (r.unknownKeyVals = []), r.unknownKeyVals.push(n), this;
9344
9344
  }
9345
9345
  addUnknownKeyValToOutput(t, n) {
9346
- const r = No(this.outputs, t);
9346
+ const r = ko(this.outputs, t);
9347
9347
  return Ku(n, r.unknownKeyVals, Gu(yt)), r.unknownKeyVals || (r.unknownKeyVals = []), r.unknownKeyVals.push(n), this;
9348
9348
  }
9349
9349
  addInput(t) {
@@ -9398,7 +9398,7 @@ function Qi(e) {
9398
9398
  }
9399
9399
  };
9400
9400
  }
9401
- const B_ = Qi(za), N_ = Qi(ag), k_ = Qi(ac), Qa = Qi(Ja), Cd = Qi(lc), qg = Qi(uc), Lg = Qi(hc);
9401
+ const B_ = Qi(za), N_ = Qi(ag), k_ = Qi(uc), Qa = Qi(Ja), Cd = Qi(hc), qg = Qi(fc), Lg = Qi(dc);
9402
9402
  function ba(e) {
9403
9403
  let t = new Uint8Array(0);
9404
9404
  function n(o) {
@@ -9426,7 +9426,7 @@ function eu(e, t) {
9426
9426
  }
9427
9427
  function P_(e, t) {
9428
9428
  return R_(e).some(
9429
- (r) => $g(r, To.decode, t)
9429
+ (r) => $g(r, xo.decode, t)
9430
9430
  );
9431
9431
  }
9432
9432
  function $g(e, t, n) {
@@ -9468,7 +9468,7 @@ function Hd(e, t, n) {
9468
9468
  throw new Error(`Can not finalize taproot input #${e}: ${i}`);
9469
9469
  }
9470
9470
  }
9471
- function Rc(e, t) {
9471
+ function Uc(e, t) {
9472
9472
  const n = t ? Uint8Array.from([t]) : Uint8Array.from([]);
9473
9473
  return ut([e, n]);
9474
9474
  }
@@ -9494,7 +9494,7 @@ function C_(e, t) {
9494
9494
  }
9495
9495
  }
9496
9496
  function H_(e, t) {
9497
- const n = t && F_(t.leaves), { output: r } = hc({
9497
+ const n = t && F_(t.leaves), { output: r } = dc({
9498
9498
  internalPubkey: e,
9499
9499
  scriptTree: n
9500
9500
  });
@@ -9550,14 +9550,14 @@ function Wf(e, t, n = 0) {
9550
9550
  if (i) return [t && t[0], i];
9551
9551
  }
9552
9552
  function D_(e, t, n) {
9553
- const r = Ln(e) && Ss(t), i = Ss(e) && Ln(t), s = e === t && Ln(t) && Ss(t);
9553
+ const r = Ln(e) && Ts(t), i = Ts(e) && Ln(t), s = e === t && Ln(t) && Ts(t);
9554
9554
  if (r || i || s)
9555
9555
  throw new Error(
9556
9556
  `Invalid arguments for Psbt.${n}. Cannot use both taproot and non-taproot fields.`
9557
9557
  );
9558
9558
  }
9559
9559
  function j_(e, t, n) {
9560
- const r = Wu(e) && Ss(t), i = Ss(e) && Wu(t), s = e === t && Wu(t) && Ss(t);
9560
+ const r = Wu(e) && Ts(t), i = Ts(e) && Wu(t), s = e === t && Wu(t) && Ts(t);
9561
9561
  if (r || i || s)
9562
9562
  throw new Error(
9563
9563
  `Invalid arguments for Psbt.${n}. Cannot use both taproot and non-taproot fields.`
@@ -9625,7 +9625,7 @@ function z_(e, t, n) {
9625
9625
  });
9626
9626
  return (!n || de(r, n) === 0) && t.find((s) => de(s.leafHash, r) === 0) !== void 0;
9627
9627
  }
9628
- function Ss(e) {
9628
+ function Ts(e) {
9629
9629
  return e && !!(e.redeemScript || e.witnessScript || e.bip32Derivation && e.bip32Derivation.length);
9630
9630
  }
9631
9631
  const Y_ = {
@@ -9724,20 +9724,20 @@ class Ea {
9724
9724
  return t.opts = JSON.parse(JSON.stringify(this.opts)), t;
9725
9725
  }
9726
9726
  setMaximumFeeRate(t) {
9727
- Uc(t), this.opts.maximumFeeRate = t;
9727
+ Cc(t), this.opts.maximumFeeRate = t;
9728
9728
  }
9729
9729
  setVersion(t) {
9730
- Uc(t), to(this.data.inputs, "setVersion");
9730
+ Cc(t), no(this.data.inputs, "setVersion");
9731
9731
  const n = this.__CACHE;
9732
9732
  return n.__TX.version = t, n.__EXTRACTED_TX = void 0, this;
9733
9733
  }
9734
9734
  setLocktime(t) {
9735
- Uc(t), to(this.data.inputs, "setLocktime");
9735
+ Cc(t), no(this.data.inputs, "setLocktime");
9736
9736
  const n = this.__CACHE;
9737
9737
  return n.__TX.locktime = t, n.__EXTRACTED_TX = void 0, this;
9738
9738
  }
9739
9739
  setInputSequence(t, n) {
9740
- Uc(n), to(this.data.inputs, "setInputSequence");
9740
+ Cc(n), no(this.data.inputs, "setInputSequence");
9741
9741
  const r = this.__CACHE;
9742
9742
  if (r.__TX.ins.length <= t)
9743
9743
  throw new Error("Input index too high");
@@ -9751,7 +9751,7 @@ class Ea {
9751
9751
  throw new Error(
9752
9752
  "Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]"
9753
9753
  );
9754
- Fd(t, t, "addInput"), to(this.data.inputs, "addInput"), t.witnessScript && _a(t.witnessScript);
9754
+ Fd(t, t, "addInput"), no(this.data.inputs, "addInput"), t.witnessScript && _a(t.witnessScript);
9755
9755
  const n = this.__CACHE;
9756
9756
  this.data.addInput(t);
9757
9757
  const r = n.__TX.ins[n.__TX.ins.length - 1];
@@ -9767,7 +9767,7 @@ class Ea {
9767
9767
  throw new Error(
9768
9768
  "Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]"
9769
9769
  );
9770
- to(this.data.inputs, "addOutput");
9770
+ no(this.data.inputs, "addOutput");
9771
9771
  const { address: n } = t;
9772
9772
  if (typeof n == "string") {
9773
9773
  const { network: i } = this.opts, s = Bg(n, i);
@@ -9796,7 +9796,7 @@ class Ea {
9796
9796
  return Dd("__FEE", "fee", this.data.inputs, this.__CACHE);
9797
9797
  }
9798
9798
  finalizeAllInputs() {
9799
- return Ut(this.data.inputs, 0), no(this.data.inputs.length).forEach((t) => this.finalizeInput(t)), this;
9799
+ return Ut(this.data.inputs, 0), ro(this.data.inputs.length).forEach((t) => this.finalizeInput(t)), this;
9800
9800
  }
9801
9801
  finalizeInput(t, n) {
9802
9802
  const r = Ut(this.data.inputs, t);
@@ -9844,7 +9844,7 @@ class Ea {
9844
9844
  `Cannot finalize input #${t}. Missing withness utxo.`
9845
9845
  );
9846
9846
  if (n.tapKeySig) {
9847
- const s = hc({
9847
+ const s = dc({
9848
9848
  output: n.witnessUtxo.script,
9849
9849
  signature: n.tapKeySig
9850
9850
  }), o = ba(s.witness);
@@ -9878,15 +9878,15 @@ class Ea {
9878
9878
  return !!r.bip32Derivation && r.bip32Derivation.some(i);
9879
9879
  }
9880
9880
  outputHasPubkey(t, n) {
9881
- const r = No(this.data.outputs, t);
9881
+ const r = ko(this.data.outputs, t);
9882
9882
  return lS(n, r, t, this.__CACHE);
9883
9883
  }
9884
9884
  outputHasHDKey(t, n) {
9885
- const r = No(this.data.outputs, t), i = Ld(n);
9885
+ const r = ko(this.data.outputs, t), i = Ld(n);
9886
9886
  return !!r.bip32Derivation && r.bip32Derivation.some(i);
9887
9887
  }
9888
9888
  validateSignaturesOfAllInputs(t) {
9889
- return Ut(this.data.inputs, 0), no(this.data.inputs.length).map(
9889
+ return Ut(this.data.inputs, 0), ro(this.data.inputs.length).map(
9890
9890
  (r) => this.validateSignaturesOfInput(r, t)
9891
9891
  ).reduce((r, i) => i === !0 && r, !0);
9892
9892
  }
@@ -9909,7 +9909,7 @@ class Ea {
9909
9909
  const c = [];
9910
9910
  let a, u, f;
9911
9911
  for (const l of o) {
9912
- const d = To.decode(l.signature), { hash: y, script: g } = f !== d.hashType ? Xg(
9912
+ const d = xo.decode(l.signature), { hash: y, script: g } = f !== d.hashType ? Xg(
9913
9913
  t,
9914
9914
  Object.assign({}, i, { sighashType: d.hashType }),
9915
9915
  this.__CACHE,
@@ -9969,7 +9969,7 @@ class Ea {
9969
9969
  if (!t || !t.publicKey || !t.fingerprint)
9970
9970
  throw new Error("Need HDSigner to sign input");
9971
9971
  const r = [];
9972
- for (const i of no(this.data.inputs.length))
9972
+ for (const i of ro(this.data.inputs.length))
9973
9973
  try {
9974
9974
  this.signInputHD(i, t, n), r.push(!0);
9975
9975
  } catch {
@@ -9984,7 +9984,7 @@ class Ea {
9984
9984
  if (!t || !t.publicKey || !t.fingerprint)
9985
9985
  return i(new Error("Need HDSigner to sign input"));
9986
9986
  const s = [], o = [];
9987
- for (const c of no(this.data.inputs.length))
9987
+ for (const c of ro(this.data.inputs.length))
9988
9988
  o.push(
9989
9989
  this.signInputHDAsync(c, t, n).then(
9990
9990
  () => {
@@ -10023,7 +10023,7 @@ class Ea {
10023
10023
  if (!t || !t.publicKey)
10024
10024
  throw new Error("Need Signer to sign input");
10025
10025
  const r = [];
10026
- for (const i of no(this.data.inputs.length))
10026
+ for (const i of ro(this.data.inputs.length))
10027
10027
  try {
10028
10028
  this.signInput(i, t, n), r.push(!0);
10029
10029
  } catch {
@@ -10092,7 +10092,7 @@ class Ea {
10092
10092
  ), o = [
10093
10093
  {
10094
10094
  pubkey: n.publicKey,
10095
- signature: To.encode(n.sign(i), s)
10095
+ signature: xo.encode(n.sign(i), s)
10096
10096
  }
10097
10097
  ];
10098
10098
  return this.data.updateInput(t, { partialSig: o }), this;
@@ -10105,13 +10105,13 @@ class Ea {
10105
10105
  i,
10106
10106
  s
10107
10107
  ), c = o.filter((u) => !u.leafHash).map(
10108
- (u) => Rc(
10108
+ (u) => Uc(
10109
10109
  r.signSchnorr(u.hash),
10110
10110
  n.sighashType
10111
10111
  )
10112
10112
  )[0], a = o.filter((u) => !!u.leafHash).map((u) => ({
10113
10113
  pubkey: Jc(r.publicKey),
10114
- signature: Rc(
10114
+ signature: Uc(
10115
10115
  r.signSchnorr(u.hash),
10116
10116
  n.sighashType
10117
10117
  ),
@@ -10161,7 +10161,7 @@ class Ea {
10161
10161
  const c = [
10162
10162
  {
10163
10163
  pubkey: n.publicKey,
10164
- signature: To.encode(o, s)
10164
+ signature: xo.encode(o, s)
10165
10165
  }
10166
10166
  ];
10167
10167
  this.data.updateInput(t, { partialSig: c });
@@ -10178,7 +10178,7 @@ class Ea {
10178
10178
  if (a) {
10179
10179
  const f = Promise.resolve(
10180
10180
  r.signSchnorr(a.hash)
10181
- ).then((l) => ({ tapKeySig: Rc(l, n.sighashType) }));
10181
+ ).then((l) => ({ tapKeySig: Uc(l, n.sighashType) }));
10182
10182
  c.push(f);
10183
10183
  }
10184
10184
  const u = o.filter((f) => !!f.leafHash);
@@ -10187,7 +10187,7 @@ class Ea {
10187
10187
  (d) => ({ tapScriptSig: [
10188
10188
  {
10189
10189
  pubkey: Jc(r.publicKey),
10190
- signature: Rc(
10190
+ signature: Uc(
10191
10191
  d,
10192
10192
  n.sighashType
10193
10193
  ),
@@ -10325,7 +10325,7 @@ function jg(e) {
10325
10325
  function Ld(e) {
10326
10326
  return (t) => !(de(e.fingerprint, t.masterFingerprint) || de(e.derivePath(t.path).publicKey, t.pubkey));
10327
10327
  }
10328
- function Uc(e) {
10328
+ function Cc(e) {
10329
10329
  if (typeof e != "number" || e !== Math.floor(e) || e > 4294967295 || e < 0)
10330
10330
  throw new Error("Invalid 32 bit integer");
10331
10331
  }
@@ -10336,7 +10336,7 @@ function Q_(e, t, n) {
10336
10336
  `Warning: You are paying around ${(s / 1e8).toFixed(8)} in fees, which is ${r} satoshi per byte for a transaction with a VSize of ${i} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`
10337
10337
  );
10338
10338
  }
10339
- function to(e, t) {
10339
+ function no(e, t) {
10340
10340
  e.forEach((n) => {
10341
10341
  if (Ln(n) ? M_(n, t) : P_(n, t))
10342
10342
  throw new Error("Can not modify transaction, signatures exist.");
@@ -10346,7 +10346,7 @@ function eS(e) {
10346
10346
  if (!e.sighashType || !e.partialSig) return;
10347
10347
  const { partialSig: t, sighashType: n } = e;
10348
10348
  t.forEach((r) => {
10349
- const { hashType: i } = To.decode(r.signature);
10349
+ const { hashType: i } = xo.decode(r.signature);
10350
10350
  if (n !== i)
10351
10351
  throw new Error("Signature sighash does not match input sighash type");
10352
10352
  });
@@ -10384,8 +10384,8 @@ function Wg(e, t) {
10384
10384
  );
10385
10385
  };
10386
10386
  }
10387
- const Vd = Wg(uc, "Redeem script"), $d = Wg(
10388
- lc,
10387
+ const Vd = Wg(fc, "Redeem script"), $d = Wg(
10388
+ hc,
10389
10389
  "Witness script"
10390
10390
  );
10391
10391
  function Dd(e, t, n, r) {
@@ -10412,7 +10412,7 @@ function rS(e, t, n, r, i, s) {
10412
10412
  }
10413
10413
  function iS(e, t, n, r, i, s) {
10414
10414
  let o, c;
10415
- const a = oS(e, t, n), u = s ? lc({ redeem: a }) : null, f = i ? uc({ redeem: u || a }) : null;
10415
+ const a = oS(e, t, n), u = s ? hc({ redeem: a }) : null, f = i ? fc({ redeem: u || a }) : null;
10416
10416
  return r ? (u ? c = ba(u.witness) : c = ba(a.witness), f && (o = f.input)) : f ? o = f.input : o = a.input, {
10417
10417
  finalScriptSig: o,
10418
10418
  finalScriptWitness: c
@@ -10466,7 +10466,7 @@ function Xg(e, t, n, r, i) {
10466
10466
  o
10467
10467
  );
10468
10468
  else if (Qa(u)) {
10469
- const l = ac({
10469
+ const l = uc({
10470
10470
  hash: u.slice(2)
10471
10471
  }).output;
10472
10472
  c = s.hashForWitnessV0(
@@ -10585,7 +10585,7 @@ function oS(e, t, n) {
10585
10585
  });
10586
10586
  break;
10587
10587
  case "pubkeyhash":
10588
- r = ac({
10588
+ r = uc({
10589
10589
  output: e,
10590
10590
  pubkey: n[0].pubkey,
10591
10591
  signature: n[0].signature
@@ -10650,7 +10650,7 @@ function Zg(e) {
10650
10650
  return t += o, e.slice(t - o, t);
10651
10651
  }
10652
10652
  function r() {
10653
- const o = Ds(e, t);
10653
+ const o = js(e, t);
10654
10654
  return t += kn(o.bigintValue), o.numberValue;
10655
10655
  }
10656
10656
  function i() {
@@ -10809,18 +10809,18 @@ function _a(e) {
10809
10809
  function tm(e) {
10810
10810
  return Qa(e) ? "witnesspubkeyhash" : k_(e) ? "pubkeyhash" : B_(e) ? "multisig" : N_(e) ? "pubkey" : "nonstandard";
10811
10811
  }
10812
- function no(e) {
10812
+ function ro(e) {
10813
10813
  return [...Array(e).keys()];
10814
10814
  }
10815
10815
  wE(Z1);
10816
- const ko = {
10816
+ const Po = {
10817
10817
  Mainnet: "mainnet",
10818
10818
  Testnet: "testnet"
10819
- }, Sa = "abcdefghijklmnopqrstuvwxyz234567", Rs = /* @__PURE__ */ Object.create(null);
10819
+ }, Sa = "abcdefghijklmnopqrstuvwxyz234567", Us = /* @__PURE__ */ Object.create(null);
10820
10820
  for (let e = 0; e < Sa.length; e++)
10821
- Rs[Sa[e]] = e;
10822
- Rs[0] = Rs.o;
10823
- Rs[1] = Rs.i;
10821
+ Us[Sa[e]] = e;
10822
+ Us[0] = Us.o;
10823
+ Us[1] = Us.i;
10824
10824
  function gS(e) {
10825
10825
  let t = 0, n = 0, r = "";
10826
10826
  function i(s) {
@@ -10835,7 +10835,7 @@ function mS(e) {
10835
10835
  const r = new Uint8Array(e.length * 4 / 3 | 0);
10836
10836
  let i = 0;
10837
10837
  function s(o) {
10838
- let c = Rs[o.toLowerCase()];
10838
+ let c = Us[o.toLowerCase()];
10839
10839
  if (c === void 0)
10840
10840
  throw new Error(`Invalid character: ${JSON.stringify(o)}`);
10841
10841
  c <<= 3, n |= c >>> t, t += 5, t >= 8 && (r[i++] = n, t -= 8, t > 0 ? n = c << 5 - t & 255 : n = 0);
@@ -11110,8 +11110,8 @@ function bS(e) {
11110
11110
  }
11111
11111
  return (t ^ -1) >>> 0;
11112
11112
  }
11113
- const Cc = "__principal__", ES = 2, Wd = 4, _S = "aaaaa-aa";
11114
- let Ke = class gs {
11113
+ const Hc = "__principal__", ES = 2, Wd = 4, _S = "aaaaa-aa";
11114
+ let Ke = class ms {
11115
11115
  static anonymous() {
11116
11116
  return new this(new Uint8Array([Wd]));
11117
11117
  }
@@ -11128,21 +11128,21 @@ let Ke = class gs {
11128
11128
  }
11129
11129
  static from(t) {
11130
11130
  if (typeof t == "string")
11131
- return gs.fromText(t);
11131
+ return ms.fromText(t);
11132
11132
  if (Object.getPrototypeOf(t) === Uint8Array.prototype)
11133
- return new gs(t);
11134
- if (gs.isPrincipal(t))
11135
- return new gs(t._arr);
11133
+ return new ms(t);
11134
+ if (ms.isPrincipal(t))
11135
+ return new ms(t._arr);
11136
11136
  throw new Error(`Impossible to convert ${JSON.stringify(t)} to Principal.`);
11137
11137
  }
11138
11138
  static fromHex(t) {
11139
- return new this(cc(t));
11139
+ return new this(ac(t));
11140
11140
  }
11141
11141
  static fromText(t) {
11142
11142
  let n = t;
11143
- if (t.includes(Cc)) {
11143
+ if (t.includes(Hc)) {
11144
11144
  const o = JSON.parse(t);
11145
- Cc in o && (n = o[Cc]);
11145
+ Hc in o && (n = o[Hc]);
11146
11146
  }
11147
11147
  const r = n.toLowerCase().replace(/-/g, "");
11148
11148
  let i = mS(r);
@@ -11156,7 +11156,7 @@ let Ke = class gs {
11156
11156
  return new this(t);
11157
11157
  }
11158
11158
  static isPrincipal(t) {
11159
- return t instanceof gs || typeof t == "object" && t !== null && "_isPrincipal" in t && t._isPrincipal === !0 && "_arr" in t && t._arr instanceof Uint8Array;
11159
+ return t instanceof ms || typeof t == "object" && t !== null && "_isPrincipal" in t && t._isPrincipal === !0 && "_arr" in t && t._arr instanceof Uint8Array;
11160
11160
  }
11161
11161
  constructor(t) {
11162
11162
  this._arr = t, this._isPrincipal = !0;
@@ -11186,7 +11186,7 @@ let Ke = class gs {
11186
11186
  * @returns {JsonnablePrincipal} a JSON object with a single key, {@link JSON_KEY_PRINCIPAL}, whose value is the principal as a string
11187
11187
  */
11188
11188
  toJSON() {
11189
- return { [Cc]: this.toText() };
11189
+ return { [Hc]: this.toText() };
11190
11190
  }
11191
11191
  /**
11192
11192
  * Utility method taking a Principal to compare against. Used for determining canister ranges in certificate verification
@@ -11228,7 +11228,7 @@ function Ve(...e) {
11228
11228
  t.set(r, n), n += r.byteLength;
11229
11229
  return t;
11230
11230
  }
11231
- class js {
11231
+ class Ks {
11232
11232
  /**
11233
11233
  * Save a checkpoint of the reading view (for backtracking)
11234
11234
  */
@@ -11367,7 +11367,7 @@ function Gi(e) {
11367
11367
  function lt(e) {
11368
11368
  if (typeof e == "number" && (e = BigInt(e)), e < BigInt(0))
11369
11369
  throw new Error("Cannot leb encode negative values.");
11370
- const t = (e === BigInt(0) ? 0 : rm(e)) + 1, n = new js(new Uint8Array(t), 0);
11370
+ const t = (e === BigInt(0) ? 0 : rm(e)) + 1, n = new Ks(new Uint8Array(t), 0);
11371
11371
  for (; ; ) {
11372
11372
  const r = Number(e & BigInt(127));
11373
11373
  if (e /= BigInt(128), e === BigInt(0)) {
@@ -11389,7 +11389,7 @@ function It(e) {
11389
11389
  typeof e == "number" && (e = BigInt(e));
11390
11390
  const t = e < BigInt(0);
11391
11391
  t && (e = -e - BigInt(1));
11392
- const n = (e === BigInt(0) ? 0 : rm(e)) + 1, r = new js(new Uint8Array(n), 0);
11392
+ const n = (e === BigInt(0) ? 0 : rm(e)) + 1, r = new Ks(new Uint8Array(n), 0);
11393
11393
  for (; ; ) {
11394
11394
  const s = i(e);
11395
11395
  if (e /= BigInt(128), t && e === BigInt(0) && (s & 64) !== 0 || !t && e === BigInt(0) && (s & 64) === 0) {
@@ -11426,7 +11426,7 @@ function AS(e, t) {
11426
11426
  }
11427
11427
  function sm(e, t) {
11428
11428
  e = BigInt(e);
11429
- const n = new js(new Uint8Array(Math.min(1, t)), 0);
11429
+ const n = new Ks(new Uint8Array(Math.min(1, t)), 0);
11430
11430
  let r = 0, i = BigInt(256), s = BigInt(0), o = Number(e % i);
11431
11431
  for (n.write(new Uint8Array([o])); ++r < t; )
11432
11432
  e < 0 && s === BigInt(0) && o !== 0 && (s = BigInt(1)), o = Number((e / i - s) % BigInt(256)), n.write(new Uint8Array([o])), i *= BigInt(256);
@@ -11455,7 +11455,7 @@ var Le;
11455
11455
  e[e.Null = -1] = "Null", e[e.Bool = -2] = "Bool", e[e.Nat = -3] = "Nat", e[e.Int = -4] = "Int", e[e.Float32 = -13] = "Float32", e[e.Float64 = -14] = "Float64", e[e.Text = -15] = "Text", e[e.Reserved = -16] = "Reserved", e[e.Empty = -17] = "Empty", e[e.Opt = -18] = "Opt", e[e.Vector = -19] = "Vector", e[e.Record = -20] = "Record", e[e.Variant = -21] = "Variant", e[e.Func = -22] = "Func", e[e.Service = -23] = "Service", e[e.Principal = -24] = "Principal";
11456
11456
  })(Le || (Le = {}));
11457
11457
  const Qc = "DIDL", Xd = 400;
11458
- function Po(e, t, n) {
11458
+ function Ro(e, t, n) {
11459
11459
  return e.map((r, i) => n(r, t[i]));
11460
11460
  }
11461
11461
  class IS {
@@ -11719,7 +11719,7 @@ class am extends Cn {
11719
11719
  return "bool";
11720
11720
  }
11721
11721
  }
11722
- class Ro extends Cn {
11722
+ class Uo extends Cn {
11723
11723
  get typeName() {
11724
11724
  return Be.NullClass;
11725
11725
  }
@@ -11993,7 +11993,7 @@ class ui extends Cn {
11993
11993
  return t.toString();
11994
11994
  }
11995
11995
  }
11996
- class Us extends yi {
11996
+ class Cs extends yi {
11997
11997
  get typeName() {
11998
11998
  return Be.VecClass;
11999
11999
  }
@@ -12042,7 +12042,7 @@ index ${i} -> ${s.message}`);
12042
12042
  return Ve(n, new Uint8Array(i.buffer));
12043
12043
  } else
12044
12044
  return Ve(n, new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
12045
- const r = new js(new Uint8Array(n.byteLength + t.length), 0);
12045
+ const r = new Ks(new Uint8Array(n.byteLength + t.length), 0);
12046
12046
  r.write(n);
12047
12047
  for (const i of t) {
12048
12048
  const s = this._type.encodeValue(i);
@@ -12057,7 +12057,7 @@ index ${i} -> ${s.message}`);
12057
12057
  }
12058
12058
  decodeValue(t, n) {
12059
12059
  const r = this.checkType(n);
12060
- if (!(r instanceof Us))
12060
+ if (!(r instanceof Cs))
12061
12061
  throw new Error("Not a vector type");
12062
12062
  const i = Number(Nt(t));
12063
12063
  if (this._type instanceof ui) {
@@ -12144,7 +12144,7 @@ class kr extends yi {
12144
12144
  t.add(this, Ve(n, r));
12145
12145
  }
12146
12146
  decodeValue(t, n) {
12147
- if (n instanceof Ro)
12147
+ if (n instanceof Uo)
12148
12148
  return [];
12149
12149
  if (n instanceof di)
12150
12150
  return [];
@@ -12173,7 +12173,7 @@ class kr extends yi {
12173
12173
  else {
12174
12174
  if (
12175
12175
  // this check corresponds to `not (null <: <t>)` in the spec
12176
- this._type instanceof Ro || this._type instanceof kr || this._type instanceof di
12176
+ this._type instanceof Uo || this._type instanceof kr || this._type instanceof di
12177
12177
  )
12178
12178
  return r.decodeValue(t, r), [];
12179
12179
  {
@@ -12235,7 +12235,7 @@ field ${n} -> ${i.message}`);
12235
12235
  throw new Error(`Invalid ${this.display()} argument: ${bt(t)}`);
12236
12236
  }
12237
12237
  encodeValue(t) {
12238
- const n = this._fields.map(([i]) => t[i]), r = Po(this._fields, n, ([, i], s) => i.encodeValue(s));
12238
+ const n = this._fields.map(([i]) => t[i]), r = Ro(this._fields, n, ([, i], s) => i.encodeValue(s));
12239
12239
  return Ve(...r);
12240
12240
  }
12241
12241
  _buildTypeTableImpl(t) {
@@ -12287,7 +12287,7 @@ field ${n} -> ${i.message}`);
12287
12287
  }
12288
12288
  valueToString(t) {
12289
12289
  const n = this._fields.map(([i]) => t[i]);
12290
- return `record {${Po(this._fields, n, ([i, s], o) => i + "=" + s.valueToString(o)).join("; ")}}`;
12290
+ return `record {${Ro(this._fields, n, ([i, s], o) => i + "=" + s.valueToString(o)).join("; ")}}`;
12291
12291
  }
12292
12292
  }
12293
12293
  class iu extends Xi {
@@ -12318,7 +12318,7 @@ index ${r} -> ${i.message}`);
12318
12318
  throw new Error(`Invalid ${this.display()} argument: ${bt(t)}`);
12319
12319
  }
12320
12320
  encodeValue(t) {
12321
- const n = Po(this._components, t, (r, i) => r.encodeValue(i));
12321
+ const n = Ro(this._components, t, (r, i) => r.encodeValue(i));
12322
12322
  return Ve(...n);
12323
12323
  }
12324
12324
  decodeValue(t, n) {
@@ -12336,10 +12336,10 @@ index ${r} -> ${i.message}`);
12336
12336
  return `record {${this._components.map((n) => n.display()).join("; ")}}`;
12337
12337
  }
12338
12338
  valueToString(t) {
12339
- return `record {${Po(this._components, t, (r, i) => r.valueToString(i)).join("; ")}}`;
12339
+ return `record {${Ro(this._components, t, (r, i) => r.valueToString(i)).join("; ")}}`;
12340
12340
  }
12341
12341
  }
12342
- class Cs extends yi {
12342
+ class Hs extends yi {
12343
12343
  get typeName() {
12344
12344
  return Be.VariantClass;
12345
12345
  }
@@ -12384,7 +12384,7 @@ variant ${n} -> ${i.message}`);
12384
12384
  }
12385
12385
  decodeValue(t, n) {
12386
12386
  const r = this.checkType(n);
12387
- if (!(r instanceof Cs))
12387
+ if (!(r instanceof Hs))
12388
12388
  throw new Error("Not a variant type");
12389
12389
  const i = Number(Nt(t));
12390
12390
  if (i >= r._fields.length)
@@ -12513,7 +12513,7 @@ class fm extends Cn {
12513
12513
  return `${this.name} "${t.toText()}"`;
12514
12514
  }
12515
12515
  }
12516
- class Uo extends yi {
12516
+ class Co extends yi {
12517
12517
  get typeName() {
12518
12518
  return Be.FuncClass;
12519
12519
  }
@@ -12633,7 +12633,7 @@ function Zf(e, t) {
12633
12633
  throw Error("Wrong number of message arguments");
12634
12634
  const n = new IS();
12635
12635
  e.forEach((a) => a.buildTypeTable(n));
12636
- const r = new TextEncoder().encode(Qc), i = n.encode(), s = lt(t.length), o = Ve(...e.map((a) => a.encodeType(n))), c = Ve(...Po(e, t, (a, u) => {
12636
+ const r = new TextEncoder().encode(Qc), i = n.encode(), s = lt(t.length), o = Ve(...e.map((a) => a.encodeType(n))), c = Ve(...Ro(e, t, (a, u) => {
12637
12637
  try {
12638
12638
  a.covariant(u);
12639
12639
  } catch (f) {
@@ -12646,7 +12646,7 @@ function Zf(e, t) {
12646
12646
  return Ve(r, i, s, o, c);
12647
12647
  }
12648
12648
  function lm(e, t) {
12649
- const n = new js(t);
12649
+ const n = new Ks(t);
12650
12650
  if (t.byteLength < Qc.length)
12651
12651
  throw new Error("Message length smaller than magic number");
12652
12652
  const r = Ki(n, Qc.length), i = new TextDecoder().decode(r);
@@ -12817,7 +12817,7 @@ function lm(e, t) {
12817
12817
  const y = {}, g = d[1];
12818
12818
  for (const [m, E] of g) {
12819
12819
  let _ = u(E);
12820
- if (_ instanceof Pn && (_ = _.getType()), !(_ instanceof Uo))
12820
+ if (_ instanceof Pn && (_ = _.getType()), !(_ instanceof Co))
12821
12821
  throw new Error("Illegal service definition: services can only contain functions");
12822
12822
  y[m] = _;
12823
12823
  }
@@ -12850,12 +12850,12 @@ function lm(e, t) {
12850
12850
  Jf();
12851
12851
  }
12852
12852
  }
12853
- const hm = new Ll(), dm = new di(), BS = new cm(), pm = new am(), ym = new Ro(), gm = new um(), mm = new Vl(), wm = new $l(), bm = new Dl(32), Em = new Dl(64), _m = new Wi(8), Sm = new Wi(16), Tm = new Wi(32), xm = new Wi(64), Am = new ui(8), vm = new ui(16), Im = new ui(32), Om = new ui(64), Bm = new fm();
12853
+ const hm = new Ll(), dm = new di(), BS = new cm(), pm = new am(), ym = new Uo(), gm = new um(), mm = new Vl(), wm = new $l(), bm = new Dl(32), Em = new Dl(64), _m = new Wi(8), Sm = new Wi(16), Tm = new Wi(32), xm = new Wi(64), Am = new ui(8), vm = new ui(16), Im = new ui(32), Om = new ui(64), Bm = new fm();
12854
12854
  function Nm(...e) {
12855
12855
  return new iu(e);
12856
12856
  }
12857
12857
  function km(e) {
12858
- return new Us(e);
12858
+ return new Cs(e);
12859
12859
  }
12860
12860
  function Pm(e) {
12861
12861
  return new kr(e);
@@ -12864,13 +12864,13 @@ function Rm(e) {
12864
12864
  return new Xi(e);
12865
12865
  }
12866
12866
  function Um(e) {
12867
- return new Cs(e);
12867
+ return new Hs(e);
12868
12868
  }
12869
12869
  function Cm() {
12870
12870
  return new Pn();
12871
12871
  }
12872
12872
  function Hm(e, t, n = []) {
12873
- return new Uo(e, t, n);
12873
+ return new Co(e, t, n);
12874
12874
  }
12875
12875
  function Fm(e) {
12876
12876
  return new Ta(e);
@@ -12929,7 +12929,7 @@ function NS(e, t) {
12929
12929
  return !0;
12930
12930
  }
12931
12931
  function Yu(e) {
12932
- return e instanceof kr || e instanceof Ro || e instanceof di;
12932
+ return e instanceof kr || e instanceof Uo || e instanceof di;
12933
12933
  }
12934
12934
  function Kl(e, t) {
12935
12935
  const n = ea.copy(), r = gr(n, e, t);
@@ -12943,7 +12943,7 @@ function gr(e, t, n) {
12943
12943
  return r;
12944
12944
  if (e.add(t, n), n instanceof di || t instanceof Ll || t instanceof $l && n instanceof Vl)
12945
12945
  return !0;
12946
- if (t instanceof Us && n instanceof Us)
12946
+ if (t instanceof Cs && n instanceof Cs)
12947
12947
  return gr(e, t._type, n._type);
12948
12948
  if (n instanceof kr)
12949
12949
  return !0;
@@ -12959,7 +12959,7 @@ function gr(e, t, n) {
12959
12959
  }
12960
12960
  return !0;
12961
12961
  }
12962
- if (t instanceof Uo && n instanceof Uo) {
12962
+ if (t instanceof Co && n instanceof Co) {
12963
12963
  if (!NS(t, n))
12964
12964
  return !1;
12965
12965
  for (let i = 0; i < t.argTypes.length; i++) {
@@ -12980,7 +12980,7 @@ function gr(e, t, n) {
12980
12980
  }
12981
12981
  return !0;
12982
12982
  }
12983
- if (t instanceof Cs && n instanceof Cs) {
12983
+ if (t instanceof Hs && n instanceof Hs) {
12984
12984
  const i = n.alternativesAsObject;
12985
12985
  for (const [s, o] of t._fields) {
12986
12986
  const c = i[an(s)];
@@ -13013,7 +13013,7 @@ const kS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13013
13013
  Float64: Em,
13014
13014
  FloatClass: Dl,
13015
13015
  Func: Hm,
13016
- FuncClass: Uo,
13016
+ FuncClass: Co,
13017
13017
  Int: mm,
13018
13018
  Int16: Sm,
13019
13019
  Int32: Tm,
@@ -13027,7 +13027,7 @@ const kS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13027
13027
  Nat8: Am,
13028
13028
  NatClass: $l,
13029
13029
  Null: ym,
13030
- NullClass: Ro,
13030
+ NullClass: Uo,
13031
13031
  Opt: Pm,
13032
13032
  OptClass: kr,
13033
13033
  PrimitiveType: Cn,
@@ -13049,9 +13049,9 @@ const kS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13049
13049
  Unknown: BS,
13050
13050
  UnknownClass: cm,
13051
13051
  Variant: Um,
13052
- VariantClass: Cs,
13052
+ VariantClass: Hs,
13053
13053
  Vec: km,
13054
- VecClass: Us,
13054
+ VecClass: Cs,
13055
13055
  Visitor: OS,
13056
13056
  decode: lm,
13057
13057
  encode: Zf,
@@ -13066,42 +13066,42 @@ function Mm(e, t) {
13066
13066
  const { toString: PS } = Object.prototype, { getPrototypeOf: Gl } = Object, { iterator: ou, toStringTag: qm } = Symbol, cu = /* @__PURE__ */ ((e) => (t) => {
13067
13067
  const n = PS.call(t);
13068
13068
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
13069
- })(/* @__PURE__ */ Object.create(null)), zn = (e) => (e = e.toLowerCase(), (t) => cu(t) === e), au = (e) => (t) => typeof t === e, { isArray: Ks } = Array, Co = au("undefined");
13070
- function dc(e) {
13071
- return e !== null && !Co(e) && e.constructor !== null && !Co(e.constructor) && pn(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13069
+ })(/* @__PURE__ */ Object.create(null)), zn = (e) => (e = e.toLowerCase(), (t) => cu(t) === e), au = (e) => (t) => typeof t === e, { isArray: Gs } = Array, Ho = au("undefined");
13070
+ function pc(e) {
13071
+ return e !== null && !Ho(e) && e.constructor !== null && !Ho(e.constructor) && pn(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13072
13072
  }
13073
13073
  const Lm = zn("ArrayBuffer");
13074
13074
  function RS(e) {
13075
13075
  let t;
13076
13076
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lm(e.buffer), t;
13077
13077
  }
13078
- const US = au("string"), pn = au("function"), Vm = au("number"), pc = (e) => e !== null && typeof e == "object", CS = (e) => e === !0 || e === !1, ta = (e) => {
13078
+ const US = au("string"), pn = au("function"), Vm = au("number"), yc = (e) => e !== null && typeof e == "object", CS = (e) => e === !0 || e === !1, ta = (e) => {
13079
13079
  if (cu(e) !== "object")
13080
13080
  return !1;
13081
13081
  const t = Gl(e);
13082
13082
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(qm in e) && !(ou in e);
13083
13083
  }, HS = (e) => {
13084
- if (!pc(e) || dc(e))
13084
+ if (!yc(e) || pc(e))
13085
13085
  return !1;
13086
13086
  try {
13087
13087
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
13088
13088
  } catch {
13089
13089
  return !1;
13090
13090
  }
13091
- }, FS = zn("Date"), MS = zn("File"), qS = zn("Blob"), LS = zn("FileList"), VS = (e) => pc(e) && pn(e.pipe), $S = (e) => {
13091
+ }, FS = zn("Date"), MS = zn("File"), qS = zn("Blob"), LS = zn("FileList"), VS = (e) => yc(e) && pn(e.pipe), $S = (e) => {
13092
13092
  let t;
13093
13093
  return e && (typeof FormData == "function" && e instanceof FormData || pn(e.append) && ((t = cu(e)) === "formdata" || // detect form-data instance
13094
13094
  t === "object" && pn(e.toString) && e.toString() === "[object FormData]"));
13095
13095
  }, DS = zn("URLSearchParams"), [jS, KS, GS, WS] = ["ReadableStream", "Request", "Response", "Headers"].map(zn), XS = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
13096
- function yc(e, t, { allOwnKeys: n = !1 } = {}) {
13096
+ function gc(e, t, { allOwnKeys: n = !1 } = {}) {
13097
13097
  if (e === null || typeof e > "u")
13098
13098
  return;
13099
13099
  let r, i;
13100
- if (typeof e != "object" && (e = [e]), Ks(e))
13100
+ if (typeof e != "object" && (e = [e]), Gs(e))
13101
13101
  for (r = 0, i = e.length; r < i; r++)
13102
13102
  t.call(null, e[r], r, e);
13103
13103
  else {
13104
- if (dc(e))
13104
+ if (pc(e))
13105
13105
  return;
13106
13106
  const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = s.length;
13107
13107
  let c;
@@ -13110,7 +13110,7 @@ function yc(e, t, { allOwnKeys: n = !1 } = {}) {
13110
13110
  }
13111
13111
  }
13112
13112
  function $m(e, t) {
13113
- if (dc(e))
13113
+ if (pc(e))
13114
13114
  return null;
13115
13115
  t = t.toLowerCase();
13116
13116
  const n = Object.keys(e);
@@ -13120,17 +13120,17 @@ function $m(e, t) {
13120
13120
  return i;
13121
13121
  return null;
13122
13122
  }
13123
- const Ci = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : globalThis, Dm = (e) => !Co(e) && e !== Ci;
13123
+ const Ci = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : globalThis, Dm = (e) => !Ho(e) && e !== Ci;
13124
13124
  function Qf() {
13125
13125
  const { caseless: e } = Dm(this) && this || {}, t = {}, n = (r, i) => {
13126
13126
  const s = e && $m(t, i) || i;
13127
- ta(t[s]) && ta(r) ? t[s] = Qf(t[s], r) : ta(r) ? t[s] = Qf({}, r) : Ks(r) ? t[s] = r.slice() : t[s] = r;
13127
+ ta(t[s]) && ta(r) ? t[s] = Qf(t[s], r) : ta(r) ? t[s] = Qf({}, r) : Gs(r) ? t[s] = r.slice() : t[s] = r;
13128
13128
  };
13129
13129
  for (let r = 0, i = arguments.length; r < i; r++)
13130
- arguments[r] && yc(arguments[r], n);
13130
+ arguments[r] && gc(arguments[r], n);
13131
13131
  return t;
13132
13132
  }
13133
- const zS = (e, t, n, { allOwnKeys: r } = {}) => (yc(t, (i, s) => {
13133
+ const zS = (e, t, n, { allOwnKeys: r } = {}) => (gc(t, (i, s) => {
13134
13134
  n && pn(i) ? e[s] = Mm(i, n) : e[s] = i;
13135
13135
  }, { allOwnKeys: r }), e), YS = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ZS = (e, t, n, r) => {
13136
13136
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
@@ -13152,7 +13152,7 @@ const zS = (e, t, n, { allOwnKeys: r } = {}) => (yc(t, (i, s) => {
13152
13152
  return r !== -1 && r === n;
13153
13153
  }, eT = (e) => {
13154
13154
  if (!e) return null;
13155
- if (Ks(e)) return e;
13155
+ if (Gs(e)) return e;
13156
13156
  let t = e.length;
13157
13157
  if (!Vm(t)) return null;
13158
13158
  const n = new Array(t);
@@ -13179,7 +13179,7 @@ const zS = (e, t, n, { allOwnKeys: r } = {}) => (yc(t, (i, s) => {
13179
13179
  }
13180
13180
  ), zd = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), oT = zn("RegExp"), jm = (e, t) => {
13181
13181
  const n = Object.getOwnPropertyDescriptors(e), r = {};
13182
- yc(n, (i, s) => {
13182
+ gc(n, (i, s) => {
13183
13183
  let o;
13184
13184
  (o = t(i, s, e)) !== !1 && (r[s] = o || i);
13185
13185
  }), Object.defineProperties(e, r);
@@ -13204,7 +13204,7 @@ const zS = (e, t, n, { allOwnKeys: r } = {}) => (yc(t, (i, s) => {
13204
13204
  n[s] = !0;
13205
13205
  });
13206
13206
  };
13207
- return Ks(e) ? r(e) : r(String(e).split(t)), n;
13207
+ return Gs(e) ? r(e) : r(String(e).split(t)), n;
13208
13208
  }, uT = () => {
13209
13209
  }, fT = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
13210
13210
  function lT(e) {
@@ -13212,24 +13212,24 @@ function lT(e) {
13212
13212
  }
13213
13213
  const hT = (e) => {
13214
13214
  const t = new Array(10), n = (r, i) => {
13215
- if (pc(r)) {
13215
+ if (yc(r)) {
13216
13216
  if (t.indexOf(r) >= 0)
13217
13217
  return;
13218
- if (dc(r))
13218
+ if (pc(r))
13219
13219
  return r;
13220
13220
  if (!("toJSON" in r)) {
13221
13221
  t[i] = r;
13222
- const s = Ks(r) ? [] : {};
13223
- return yc(r, (o, c) => {
13222
+ const s = Gs(r) ? [] : {};
13223
+ return gc(r, (o, c) => {
13224
13224
  const a = n(o, i + 1);
13225
- !Co(a) && (s[c] = a);
13225
+ !Ho(a) && (s[c] = a);
13226
13226
  }), t[i] = void 0, s;
13227
13227
  }
13228
13228
  }
13229
13229
  return r;
13230
13230
  };
13231
13231
  return n(e, 0);
13232
- }, dT = zn("AsyncFunction"), pT = (e) => e && (pc(e) || pn(e)) && pn(e.then) && pn(e.catch), Km = ((e, t) => e ? setImmediate : t ? ((n, r) => (Ci.addEventListener("message", ({ source: i, data: s }) => {
13232
+ }, dT = zn("AsyncFunction"), pT = (e) => e && (yc(e) || pn(e)) && pn(e.then) && pn(e.catch), Km = ((e, t) => e ? setImmediate : t ? ((n, r) => (Ci.addEventListener("message", ({ source: i, data: s }) => {
13233
13233
  i === Ci && s === n && r.length && r.shift()();
13234
13234
  }, !1), (i) => {
13235
13235
  r.push(i), Ci.postMessage(n, "*");
@@ -13237,22 +13237,22 @@ const hT = (e) => {
13237
13237
  typeof setImmediate == "function",
13238
13238
  pn(Ci.postMessage)
13239
13239
  ), yT = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ci) : typeof process < "u" && process.nextTick || Km, gT = (e) => e != null && pn(e[ou]), z = {
13240
- isArray: Ks,
13240
+ isArray: Gs,
13241
13241
  isArrayBuffer: Lm,
13242
- isBuffer: dc,
13242
+ isBuffer: pc,
13243
13243
  isFormData: $S,
13244
13244
  isArrayBufferView: RS,
13245
13245
  isString: US,
13246
13246
  isNumber: Vm,
13247
13247
  isBoolean: CS,
13248
- isObject: pc,
13248
+ isObject: yc,
13249
13249
  isPlainObject: ta,
13250
13250
  isEmptyObject: HS,
13251
13251
  isReadableStream: jS,
13252
13252
  isRequest: KS,
13253
13253
  isResponse: GS,
13254
13254
  isHeaders: WS,
13255
- isUndefined: Co,
13255
+ isUndefined: Ho,
13256
13256
  isDate: FS,
13257
13257
  isFile: MS,
13258
13258
  isBlob: qS,
@@ -13262,7 +13262,7 @@ const hT = (e) => {
13262
13262
  isURLSearchParams: DS,
13263
13263
  isTypedArray: tT,
13264
13264
  isFileList: LS,
13265
- forEach: yc,
13265
+ forEach: gc,
13266
13266
  merge: Qf,
13267
13267
  extend: zS,
13268
13268
  trim: XS,
@@ -13597,7 +13597,7 @@ function PT(e, t, n) {
13597
13597
  }
13598
13598
  return (n || JSON.stringify)(e);
13599
13599
  }
13600
- const gc = {
13600
+ const mc = {
13601
13601
  transitional: Zm,
13602
13602
  adapter: ["xhr", "http", "fetch"],
13603
13603
  transformRequest: [function(t, n) {
@@ -13626,7 +13626,7 @@ const gc = {
13626
13626
  return s || i ? (n.setContentType("application/json", !1), PT(t)) : t;
13627
13627
  }],
13628
13628
  transformResponse: [function(t) {
13629
- const n = this.transitional || gc.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
13629
+ const n = this.transitional || mc.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
13630
13630
  if (z.isResponse(t) || z.isReadableStream(t))
13631
13631
  return t;
13632
13632
  if (t && z.isString(t) && (r && !this.responseType || i)) {
@@ -13664,7 +13664,7 @@ const gc = {
13664
13664
  }
13665
13665
  };
13666
13666
  z.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
13667
- gc.headers[e] = {};
13667
+ mc.headers[e] = {};
13668
13668
  });
13669
13669
  const RT = z.toObjectSet([
13670
13670
  "age",
@@ -13692,7 +13692,7 @@ const RT = z.toObjectSet([
13692
13692
  i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!n || t[n] && RT[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
13693
13693
  }), t;
13694
13694
  }, Qd = Symbol("internals");
13695
- function ro(e) {
13695
+ function io(e) {
13696
13696
  return e && String(e).trim().toLowerCase();
13697
13697
  }
13698
13698
  function na(e) {
@@ -13737,7 +13737,7 @@ let yn = class {
13737
13737
  set(t, n, r) {
13738
13738
  const i = this;
13739
13739
  function s(c, a, u) {
13740
- const f = ro(a);
13740
+ const f = io(a);
13741
13741
  if (!f)
13742
13742
  throw new Error("header name must be a non-empty string");
13743
13743
  const l = z.findKey(i, f);
@@ -13761,7 +13761,7 @@ let yn = class {
13761
13761
  return this;
13762
13762
  }
13763
13763
  get(t, n) {
13764
- if (t = ro(t), t) {
13764
+ if (t = io(t), t) {
13765
13765
  const r = z.findKey(this, t);
13766
13766
  if (r) {
13767
13767
  const i = this[r];
@@ -13778,7 +13778,7 @@ let yn = class {
13778
13778
  }
13779
13779
  }
13780
13780
  has(t, n) {
13781
- if (t = ro(t), t) {
13781
+ if (t = io(t), t) {
13782
13782
  const r = z.findKey(this, t);
13783
13783
  return !!(r && this[r] !== void 0 && (!n || Zu(this, this[r], r, n)));
13784
13784
  }
@@ -13788,7 +13788,7 @@ let yn = class {
13788
13788
  const r = this;
13789
13789
  let i = !1;
13790
13790
  function s(o) {
13791
- if (o = ro(o), o) {
13791
+ if (o = io(o), o) {
13792
13792
  const c = z.findKey(r, o);
13793
13793
  c && (!n || Zu(r, r[c], c, n)) && (delete r[c], i = !0);
13794
13794
  }
@@ -13850,7 +13850,7 @@ let yn = class {
13850
13850
  accessors: {}
13851
13851
  }).accessors, i = this.prototype;
13852
13852
  function s(o) {
13853
- const c = ro(o);
13853
+ const c = io(o);
13854
13854
  r[c] || (MT(i, o), r[c] = !0);
13855
13855
  }
13856
13856
  return z.isArray(t) ? t.forEach(s) : s(t), this;
@@ -13868,7 +13868,7 @@ z.reduceDescriptors(yn.prototype, ({ value: e }, t) => {
13868
13868
  });
13869
13869
  z.freezeMethods(yn);
13870
13870
  function Ju(e, t) {
13871
- const n = this || gc, r = t || n, i = yn.from(r.headers);
13871
+ const n = this || mc, r = t || n, i = yn.from(r.headers);
13872
13872
  let s = r.data;
13873
13873
  return z.forEach(e, function(c) {
13874
13874
  s = c.call(n, s, i.normalize(), t ? t.status : void 0);
@@ -13877,10 +13877,10 @@ function Ju(e, t) {
13877
13877
  function Qm(e) {
13878
13878
  return !!(e && e.__CANCEL__);
13879
13879
  }
13880
- function Gs(e, t, n) {
13880
+ function Ws(e, t, n) {
13881
13881
  ke.call(this, e ?? "canceled", ke.ERR_CANCELED, t, n), this.name = "CanceledError";
13882
13882
  }
13883
- z.inherits(Gs, ke, {
13883
+ z.inherits(Ws, ke, {
13884
13884
  __CANCEL__: !0
13885
13885
  });
13886
13886
  function ew(e, t, n) {
@@ -14125,7 +14125,7 @@ const nw = (e) => {
14125
14125
  }, s === void 0 && o.setContentType(null), "setRequestHeader" in E && z.forEach(o.toJSON(), function(T, O) {
14126
14126
  E.setRequestHeader(O, T);
14127
14127
  }), z.isUndefined(i.withCredentials) || (E.withCredentials = !!i.withCredentials), c && c !== "json" && (E.responseType = i.responseType), u && ([d, g] = xa(u, !0), E.addEventListener("progress", d)), a && E.upload && ([l, y] = xa(a), E.upload.addEventListener("progress", l), E.upload.addEventListener("loadend", y)), (i.cancelToken || i.signal) && (f = (w) => {
14128
- E && (r(!w || w.type ? new Gs(null, e, E) : w), E.abort(), E = null);
14128
+ E && (r(!w || w.type ? new Ws(null, e, E) : w), E.abort(), E = null);
14129
14129
  }, i.cancelToken && i.cancelToken.subscribe(f), i.signal && (i.signal.aborted ? f() : i.signal.addEventListener("abort", f)));
14130
14130
  const S = qT(i.url);
14131
14131
  if (S && jt.protocols.indexOf(S) === -1) {
@@ -14142,7 +14142,7 @@ const nw = (e) => {
14142
14142
  if (!i) {
14143
14143
  i = !0, c();
14144
14144
  const f = u instanceof Error ? u : this.reason;
14145
- r.abort(f instanceof ke ? f : new Gs(f instanceof Error ? f.message : f));
14145
+ r.abort(f instanceof ke ? f : new Ws(f instanceof Error ? f.message : f));
14146
14146
  }
14147
14147
  };
14148
14148
  let o = t && setTimeout(() => {
@@ -14389,13 +14389,13 @@ const s0 = (e) => `- ${e}`, rx = (e) => z.isFunction(e) || e === null || e === !
14389
14389
  };
14390
14390
  function Qu(e) {
14391
14391
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
14392
- throw new Gs(null, e);
14392
+ throw new Ws(null, e);
14393
14393
  }
14394
14394
  function o0(e) {
14395
14395
  return Qu(e), e.headers = yn.from(e.headers), e.data = Ju.call(
14396
14396
  e,
14397
14397
  e.transformRequest
14398
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), sw.getAdapter(e.adapter || gc.adapter)(e).then(function(r) {
14398
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), sw.getAdapter(e.adapter || mc.adapter)(e).then(function(r) {
14399
14399
  return Qu(e), r.data = Ju.call(
14400
14400
  e,
14401
14401
  e.transformResponse,
@@ -14606,7 +14606,7 @@ let sx = class cw {
14606
14606
  r.unsubscribe(s);
14607
14607
  }, o;
14608
14608
  }, t(function(s, o, c) {
14609
- r.reason || (r.reason = new Gs(s, o, c), n(r.reason));
14609
+ r.reason || (r.reason = new Ws(s, o, c), n(r.reason));
14610
14610
  });
14611
14611
  }
14612
14612
  /**
@@ -14737,9 +14737,9 @@ function aw(e) {
14737
14737
  return aw(zi(e, i));
14738
14738
  }, n;
14739
14739
  }
14740
- const dt = aw(gc);
14740
+ const dt = aw(mc);
14741
14741
  dt.Axios = Vi;
14742
- dt.CanceledError = Gs;
14742
+ dt.CanceledError = Ws;
14743
14743
  dt.CancelToken = sx;
14744
14744
  dt.isCancel = Qm;
14745
14745
  dt.VERSION = ow;
@@ -14792,6 +14792,11 @@ class ax {
14792
14792
  `/addresses/${t}/utxos?filter_dust=true&filter_dust_threshold=547&exclude_metaprotocols=${r}&ignore_used_brc20=true&order=asc&count=100${n ? `&cursor=${n}` : ""}`
14793
14793
  ).then((s) => s.data);
14794
14794
  }
14795
+ async utxosByAddressMempoolAware(t, n, r = !0) {
14796
+ return await this.axios.get(
14797
+ `/mempool/addresses/${t}/utxos?filter_dust=true&exclude_metaprotocols=${r}&filter_dust_threshold=547&order=asc&count=100${n ? `&cursor=${n}` : ""}`
14798
+ ).then((s) => s.data);
14799
+ }
14795
14800
  async inscriptionIdsByCollectionSymbol(t, n) {
14796
14801
  return await this.axios.get(
14797
14802
  `/assets/collections/${t}/inscriptions?count=100${n ? `&cursor=${n}` : ""}`
@@ -14810,10 +14815,10 @@ var a0;
14810
14815
  (function(e) {
14811
14816
  e[e.SysFatal = 1] = "SysFatal", e[e.SysTransient = 2] = "SysTransient", e[e.DestinationInvalid = 3] = "DestinationInvalid", e[e.CanisterReject = 4] = "CanisterReject", e[e.CanisterError = 5] = "CanisterError";
14812
14817
  })(a0 || (a0 = {}));
14813
- var Hs;
14818
+ var Fs;
14814
14819
  (function(e) {
14815
14820
  e.Replied = "replied", e.Rejected = "rejected";
14816
- })(Hs || (Hs = {}));
14821
+ })(Fs || (Fs = {}));
14817
14822
  function ux(e) {
14818
14823
  return e != null && "reject_code" in e;
14819
14824
  }
@@ -14887,9 +14892,9 @@ class gt extends es {
14887
14892
  super(t, Pr.Protocol), this.name = "ProtocolError", Object.setPrototypeOf(this, gt.prototype);
14888
14893
  }
14889
14894
  }
14890
- class Ts extends es {
14895
+ class xs extends es {
14891
14896
  constructor(t) {
14892
- super(t, Pr.Reject), this.name = "RejectError", Object.setPrototypeOf(this, Ts.prototype);
14897
+ super(t, Pr.Reject), this.name = "RejectError", Object.setPrototypeOf(this, xs.prototype);
14893
14898
  }
14894
14899
  }
14895
14900
  class va extends es {
@@ -14912,18 +14917,18 @@ class fn extends es {
14912
14917
  super(t, Pr.Unknown), this.name = "UnknownError", Object.setPrototypeOf(this, fn.prototype);
14913
14918
  }
14914
14919
  }
14915
- class xs extends Ue {
14920
+ class As extends Ue {
14916
14921
  constructor(t, n) {
14917
- super(), this.reason = t, this.error = n, this.name = "CertificateVerificationErrorCode", Object.setPrototypeOf(this, xs.prototype);
14922
+ super(), this.reason = t, this.error = n, this.name = "CertificateVerificationErrorCode", Object.setPrototypeOf(this, As.prototype);
14918
14923
  }
14919
14924
  toErrorMessage() {
14920
14925
  let t = this.reason;
14921
- return this.error && (t += `: ${wc(this.error)}`), `Certificate verification error: "${t}"`;
14926
+ return this.error && (t += `: ${bc(this.error)}`), `Certificate verification error: "${t}"`;
14922
14927
  }
14923
14928
  }
14924
- class Ho extends Ue {
14929
+ class Fo extends Ue {
14925
14930
  constructor(t, n, r, i, s) {
14926
- super(), this.maxAgeInMinutes = t, this.certificateTime = n, this.currentTime = r, this.timeDiffMsecs = i, this.ageType = s, this.name = "CertificateTimeErrorCode", Object.setPrototypeOf(this, Ho.prototype);
14931
+ super(), this.maxAgeInMinutes = t, this.certificateTime = n, this.currentTime = r, this.timeDiffMsecs = i, this.ageType = s, this.name = "CertificateTimeErrorCode", Object.setPrototypeOf(this, Fo.prototype);
14927
14932
  }
14928
14933
  toErrorMessage() {
14929
14934
  return `Certificate is signed more than ${this.maxAgeInMinutes} minutes in the ${this.ageType}. Certificate time: ${this.certificateTime.toISOString()} Current time: ${this.currentTime.toISOString()} Clock drift: ${this.timeDiffMsecs}ms`;
@@ -14945,9 +14950,9 @@ class hu extends Ue {
14945
14950
  return `The certificate contains a delegation that does not include the canister ${this.canisterId.toText()} in the canister_ranges field. Subnet ID: ${this.subnetId.toText()}`;
14946
14951
  }
14947
14952
  }
14948
- class Fs extends Ue {
14953
+ class Ms extends Ue {
14949
14954
  constructor(t, n) {
14950
- super(), this.message = t, this.lookupStatus = n, this.name = "LookupErrorCode", Object.setPrototypeOf(this, Fs.prototype);
14955
+ super(), this.message = t, this.lookupStatus = n, this.name = "LookupErrorCode", Object.setPrototypeOf(this, Ms.prototype);
14951
14956
  }
14952
14957
  toErrorMessage() {
14953
14958
  return `${this.message}. Lookup status: ${this.lookupStatus}`;
@@ -15014,7 +15019,7 @@ class Ql extends Ue {
15014
15019
  super(), this.error = t, this.input = n, this.name = "CborDecodeErrorCode", Object.setPrototypeOf(this, Ql.prototype);
15015
15020
  }
15016
15021
  toErrorMessage() {
15017
- return `Failed to decode CBOR: ${wc(this.error)}, input: ${it(this.input)}`;
15022
+ return `Failed to decode CBOR: ${bc(this.error)}, input: ${it(this.input)}`;
15018
15023
  }
15019
15024
  }
15020
15025
  class eh extends Ue {
@@ -15022,12 +15027,12 @@ class eh extends Ue {
15022
15027
  super(), this.error = t, this.value = n, this.name = "CborEncodeErrorCode", Object.setPrototypeOf(this, eh.prototype);
15023
15028
  }
15024
15029
  toErrorMessage() {
15025
- return `Failed to encode CBOR: ${wc(this.error)}, input: ${this.value}`;
15030
+ return `Failed to encode CBOR: ${bc(this.error)}, input: ${this.value}`;
15026
15031
  }
15027
15032
  }
15028
- class Fo extends Ue {
15033
+ class Mo extends Ue {
15029
15034
  constructor(t, n, r) {
15030
- super(), this.message = t, this.requestId = n, this.status = r, this.name = "TimeoutWaitingForResponseErrorCode", Object.setPrototypeOf(this, Fo.prototype);
15035
+ super(), this.message = t, this.requestId = n, this.status = r, this.name = "TimeoutWaitingForResponseErrorCode", Object.setPrototypeOf(this, Mo.prototype);
15031
15036
  }
15032
15037
  toErrorMessage() {
15033
15038
  let t = `${this.message}
@@ -15097,9 +15102,9 @@ class ih extends Ue {
15097
15102
  `;
15098
15103
  }
15099
15104
  }
15100
- class Ws extends Ue {
15105
+ class Xs extends Ue {
15101
15106
  constructor(t) {
15102
- super(), this.shouldFetchRootKey = t, this.name = "MissingRootKeyErrorCode", Object.setPrototypeOf(this, Ws.prototype);
15107
+ super(), this.shouldFetchRootKey = t, this.name = "MissingRootKeyErrorCode", Object.setPrototypeOf(this, Xs.prototype);
15103
15108
  }
15104
15109
  toErrorMessage() {
15105
15110
  return this.shouldFetchRootKey === void 0 ? "Agent is missing root key" : `Agent is missing root key and the shouldFetchRootKey value is set to ${this.shouldFetchRootKey}. The root key should only be unknown if you are in local development. Otherwise you should avoid fetching and use the default IC Root Key or the known root key of your environment.`;
@@ -15113,9 +15118,9 @@ class sh extends Ue {
15113
15118
  return `Attempt to hash a value of unsupported type: ${this.value}`;
15114
15119
  }
15115
15120
  }
15116
- class Ao extends Ue {
15121
+ class vo extends Ue {
15117
15122
  constructor(t) {
15118
- super(), this.error = t, this.name = "HttpDefaultFetchErrorCode", Object.setPrototypeOf(this, Ao.prototype);
15123
+ super(), this.error = t, this.name = "HttpDefaultFetchErrorCode", Object.setPrototypeOf(this, vo.prototype);
15119
15124
  }
15120
15125
  toErrorMessage() {
15121
15126
  return this.error;
@@ -15129,9 +15134,9 @@ class Pi extends Ue {
15129
15134
  return "This identity has expired due this application's security policy. Please refresh your authentication.";
15130
15135
  }
15131
15136
  }
15132
- class ms extends Ue {
15137
+ class ws extends Ue {
15133
15138
  constructor(t, n) {
15134
- super(), this.message = t, this.providedIngressExpiryInMinutes = n, this.name = "IngressExpiryInvalidErrorCode", Object.setPrototypeOf(this, ms.prototype);
15139
+ super(), this.message = t, this.providedIngressExpiryInMinutes = n, this.name = "IngressExpiryInvalidErrorCode", Object.setPrototypeOf(this, ws.prototype);
15135
15140
  }
15136
15141
  toErrorMessage() {
15137
15142
  return `${this.message}. Provided ingress expiry time is ${this.providedIngressExpiryInMinutes} minutes.`;
@@ -15182,12 +15187,12 @@ class $n extends Ue {
15182
15187
  super(), this.error = t, this.name = "UnexpectedErrorCode", Object.setPrototypeOf(this, $n.prototype);
15183
15188
  }
15184
15189
  toErrorMessage() {
15185
- return `Unexpected error: ${wc(this.error)}`;
15190
+ return `Unexpected error: ${bc(this.error)}`;
15186
15191
  }
15187
15192
  }
15188
- class mc extends Ue {
15193
+ class wc extends Ue {
15189
15194
  constructor(t) {
15190
- super(), this.error = t, this.name = "HashTreeDecodeErrorCode", Object.setPrototypeOf(this, mc.prototype);
15195
+ super(), this.error = t, this.name = "HashTreeDecodeErrorCode", Object.setPrototypeOf(this, wc.prototype);
15191
15196
  }
15192
15197
  toErrorMessage() {
15193
15198
  return `Failed to decode certificate: ${this.error}`;
@@ -15219,7 +15224,7 @@ class Ba extends Ue {
15219
15224
  super(), this.error = t, this.name = "HttpFetchErrorCode", Object.setPrototypeOf(this, Ba.prototype);
15220
15225
  }
15221
15226
  toErrorMessage() {
15222
- return `Failed to fetch HTTP request: ${wc(this.error)}`;
15227
+ return `Failed to fetch HTTP request: ${bc(this.error)}`;
15223
15228
  }
15224
15229
  }
15225
15230
  class Na extends Ue {
@@ -15246,7 +15251,7 @@ class ka extends Ue {
15246
15251
  return `Failed to deserialize expiry: ${this.error}`;
15247
15252
  }
15248
15253
  }
15249
- function wc(e) {
15254
+ function bc(e) {
15250
15255
  if (e instanceof Error)
15251
15256
  return e.stack ?? e.message;
15252
15257
  try {
@@ -15255,7 +15260,7 @@ function wc(e) {
15255
15260
  return String(e);
15256
15261
  }
15257
15262
  }
15258
- const As = new Error("unreachable");
15263
+ const vs = new Error("unreachable");
15259
15264
  function Pa(e) {
15260
15265
  if (!e)
15261
15266
  throw new Error("Input cannot be null or undefined");
@@ -15329,7 +15334,7 @@ const fw = 55799, lw = Symbol("CBOR_STOP_CODE");
15329
15334
  var Dn = /* @__PURE__ */ ((e) => (e[e.False = 20] = "False", e[e.True = 21] = "True", e[e.Null = 22] = "Null", e[e.Undefined = 23] = "Undefined", e[e.Break = 31] = "Break", e))(Dn || {}), xt = /* @__PURE__ */ ((e) => (e[e.UnsignedInteger = 0] = "UnsignedInteger", e[e.NegativeInteger = 1] = "NegativeInteger", e[e.ByteString = 2] = "ByteString", e[e.TextString = 3] = "TextString", e[e.Array = 4] = "Array", e[e.Map = 5] = "Map", e[e.Tag = 6] = "Tag", e[e.Simple = 7] = "Simple", e))(xt || {});
15330
15335
  const hx = 23, dx = 255, px = 65535, yx = 4294967295, gx = BigInt("0xffffffffffffffff");
15331
15336
  var Vn = /* @__PURE__ */ ((e) => (e[e.Value = 23] = "Value", e[e.OneByte = 24] = "OneByte", e[e.TwoBytes = 25] = "TwoBytes", e[e.FourBytes = 26] = "FourBytes", e[e.EightBytes = 27] = "EightBytes", e[e.Indefinite = 31] = "Indefinite", e))(Vn || {});
15332
- const vs = !1;
15337
+ const Is = !1;
15333
15338
  function mx(e) {
15334
15339
  return e == null;
15335
15340
  }
@@ -15344,9 +15349,9 @@ function bx(e) {
15344
15349
  function Ex(e) {
15345
15350
  return e & 31;
15346
15351
  }
15347
- let Mo = new Uint8Array(), io, jn = 0;
15352
+ let qo = new Uint8Array(), so, jn = 0;
15348
15353
  function _x(e, t) {
15349
- Mo = e, jn = 0;
15354
+ qo = e, jn = 0;
15350
15355
  const n = $i();
15351
15356
  return t?.(n) ?? n;
15352
15357
  }
@@ -15354,7 +15359,7 @@ function $i(e) {
15354
15359
  const [t, n] = ia();
15355
15360
  switch (t) {
15356
15361
  case xt.UnsignedInteger:
15357
- return Xs(n);
15362
+ return zs(n);
15358
15363
  case xt.NegativeInteger:
15359
15364
  return Ax(n);
15360
15365
  case xt.ByteString:
@@ -15373,14 +15378,14 @@ function $i(e) {
15373
15378
  throw new ts(`Unsupported major type: ${t}`);
15374
15379
  }
15375
15380
  function ia() {
15376
- const e = Mo.at(jn);
15381
+ const e = qo.at(jn);
15377
15382
  if (mx(e))
15378
15383
  throw new ts("Provided CBOR data is empty");
15379
15384
  const t = bx(e), n = Ex(e);
15380
15385
  return jn++, [t, n];
15381
15386
  }
15382
15387
  function Sx(e, t) {
15383
- const n = Xs(e);
15388
+ const n = zs(e);
15384
15389
  if (n === 1 / 0) {
15385
15390
  const i = [];
15386
15391
  let s = $i();
@@ -15411,7 +15416,7 @@ function Tx(e) {
15411
15416
  throw new ts(`Unrecognized simple type: ${e.toString(2)}`);
15412
15417
  }
15413
15418
  function xx(e, t) {
15414
- const n = Xs(e), r = {};
15419
+ const n = zs(e), r = {};
15415
15420
  if (n === 1 / 0) {
15416
15421
  let [i, s] = ia();
15417
15422
  for (; i !== xt.Simple && s !== Dn.Break; ) {
@@ -15429,18 +15434,18 @@ function xx(e, t) {
15429
15434
  }
15430
15435
  return r;
15431
15436
  }
15432
- function Xs(e) {
15437
+ function zs(e) {
15433
15438
  if (e <= Vn.Value)
15434
15439
  return e;
15435
- switch (io = new DataView(Mo.buffer, Mo.byteOffset + jn), e) {
15440
+ switch (so = new DataView(qo.buffer, qo.byteOffset + jn), e) {
15436
15441
  case Vn.OneByte:
15437
- return jn++, io.getUint8(0);
15442
+ return jn++, so.getUint8(0);
15438
15443
  case Vn.TwoBytes:
15439
- return jn += 2, io.getUint16(0, vs);
15444
+ return jn += 2, so.getUint16(0, Is);
15440
15445
  case Vn.FourBytes:
15441
- return jn += 4, io.getUint32(0, vs);
15446
+ return jn += 4, so.getUint32(0, Is);
15442
15447
  case Vn.EightBytes:
15443
- return jn += 8, io.getBigUint64(0, vs);
15448
+ return jn += 8, so.getBigUint64(0, Is);
15444
15449
  case Vn.Indefinite:
15445
15450
  return 1 / 0;
15446
15451
  default:
@@ -15448,22 +15453,22 @@ function Xs(e) {
15448
15453
  }
15449
15454
  }
15450
15455
  function Ax(e) {
15451
- const t = Xs(e);
15456
+ const t = zs(e);
15452
15457
  return typeof t == "number" ? -1 - t : -1n - t;
15453
15458
  }
15454
15459
  function dw(e) {
15455
- const t = Xs(e);
15460
+ const t = zs(e);
15456
15461
  if (t > Number.MAX_SAFE_INTEGER)
15457
15462
  throw new ts("Byte length is too large");
15458
15463
  const n = Number(t);
15459
- return jn += n, Mo.slice(jn - n, jn);
15464
+ return jn += n, qo.slice(jn - n, jn);
15460
15465
  }
15461
15466
  function ol(e) {
15462
15467
  const t = dw(e);
15463
15468
  return wx.decode(t);
15464
15469
  }
15465
15470
  function vx(e, t) {
15466
- const n = Xs(e);
15471
+ const n = zs(e);
15467
15472
  if (n === fw)
15468
15473
  return $i();
15469
15474
  throw new ts(`Unsupported tag: ${n}.`);
@@ -15474,7 +15479,7 @@ class hh extends Error {
15474
15479
  }
15475
15480
  }
15476
15481
  const Ix = 2 * 1024, Ox = 100, Bx = new TextEncoder();
15477
- function so(e) {
15482
+ function oo(e) {
15478
15483
  return e << 5;
15479
15484
  }
15480
15485
  let bn = new Uint8Array(Ix), Mn = new DataView(bn.buffer), Tt = 0, tf = [];
@@ -15515,55 +15520,55 @@ function dh(e, t) {
15515
15520
  throw new hh(`Unsupported type: ${typeof e}`);
15516
15521
  }
15517
15522
  function kx(e, t) {
15518
- zs(xt.Array, e.length), e.forEach((n, r) => {
15523
+ Ys(xt.Array, e.length), e.forEach((n, r) => {
15519
15524
  dh(t?.(n, r.toString()) ?? n, t);
15520
15525
  });
15521
15526
  }
15522
15527
  function Px(e, t) {
15523
- tf = Object.entries(e), zs(xt.Map, tf.length), tf.forEach(([n, r]) => {
15528
+ tf = Object.entries(e), Ys(xt.Map, tf.length), tf.forEach(([n, r]) => {
15524
15529
  gw(n), dh(t?.(r, n) ?? r, t);
15525
15530
  });
15526
15531
  }
15527
- function zs(e, t) {
15532
+ function Ys(e, t) {
15528
15533
  if (t <= hx) {
15529
15534
  Mn.setUint8(
15530
15535
  Tt++,
15531
- so(e) | Number(t)
15536
+ oo(e) | Number(t)
15532
15537
  );
15533
15538
  return;
15534
15539
  }
15535
15540
  if (t <= dx) {
15536
15541
  Mn.setUint8(
15537
15542
  Tt++,
15538
- so(e) | Vn.OneByte
15543
+ oo(e) | Vn.OneByte
15539
15544
  ), Mn.setUint8(Tt, Number(t)), Tt += 1;
15540
15545
  return;
15541
15546
  }
15542
15547
  if (t <= px) {
15543
15548
  Mn.setUint8(
15544
15549
  Tt++,
15545
- so(e) | Vn.TwoBytes
15546
- ), Mn.setUint16(Tt, Number(t), vs), Tt += 2;
15550
+ oo(e) | Vn.TwoBytes
15551
+ ), Mn.setUint16(Tt, Number(t), Is), Tt += 2;
15547
15552
  return;
15548
15553
  }
15549
15554
  if (t <= yx) {
15550
15555
  Mn.setUint8(
15551
15556
  Tt++,
15552
- so(e) | Vn.FourBytes
15553
- ), Mn.setUint32(Tt, Number(t), vs), Tt += 4;
15557
+ oo(e) | Vn.FourBytes
15558
+ ), Mn.setUint32(Tt, Number(t), Is), Tt += 4;
15554
15559
  return;
15555
15560
  }
15556
15561
  if (t <= gx) {
15557
15562
  Mn.setUint8(
15558
15563
  Tt++,
15559
- so(e) | Vn.EightBytes
15560
- ), Mn.setBigUint64(Tt, BigInt(t), vs), Tt += 8;
15564
+ oo(e) | Vn.EightBytes
15565
+ ), Mn.setBigUint64(Tt, BigInt(t), Is), Tt += 8;
15561
15566
  return;
15562
15567
  }
15563
15568
  throw new hh(`Value too large to encode: ${t}`);
15564
15569
  }
15565
15570
  function Rx(e) {
15566
- zs(xt.Simple, Ux(e));
15571
+ Ys(xt.Simple, Ux(e));
15567
15572
  }
15568
15573
  function Ux(e) {
15569
15574
  if (e === !1)
@@ -15577,10 +15582,10 @@ function Ux(e) {
15577
15582
  throw new hh(`Unrecognized simple value: ${e.toString()}`);
15578
15583
  }
15579
15584
  function pw(e, t) {
15580
- zs(e, t.length), Tt > bn.length - t.length && (bn = hw(bn, bn.length + t.length), Mn = new DataView(bn.buffer)), bn.set(t, Tt), Tt += t.length;
15585
+ Ys(e, t.length), Tt > bn.length - t.length && (bn = hw(bn, bn.length + t.length), Mn = new DataView(bn.buffer)), bn.set(t, Tt), Tt += t.length;
15581
15586
  }
15582
15587
  function yw(e, t) {
15583
- zs(e, t);
15588
+ Ys(e, t);
15584
15589
  }
15585
15590
  function Cx(e) {
15586
15591
  yw(xt.UnsignedInteger, e);
@@ -15601,14 +15606,14 @@ function f0(e) {
15601
15606
  pw(xt.ByteString, e);
15602
15607
  }
15603
15608
  function Mx(e, t, n) {
15604
- zs(xt.Tag, e), dh(t, n);
15609
+ Ys(xt.Tag, e), dh(t, n);
15605
15610
  }
15606
15611
  function qx(e) {
15607
15612
  return typeof e == "object" && e !== null && "toCborValue" in e;
15608
15613
  }
15609
15614
  function nf(e) {
15610
15615
  try {
15611
- return Nx(e, (t) => Ke.isPrincipal(t) ? t.toUint8Array() : Is.isExpiry(t) ? t.toBigInt() : qx(t) ? t.toCborValue() : t);
15616
+ return Nx(e, (t) => Ke.isPrincipal(t) ? t.toUint8Array() : Os.isExpiry(t) ? t.toBigInt() : qx(t) ? t.toCborValue() : t);
15612
15617
  } catch (t) {
15613
15618
  throw et.fromCode(new eh(t, e));
15614
15619
  }
@@ -15620,7 +15625,7 @@ function rr(e) {
15620
15625
  throw et.fromCode(new Ql(t, e));
15621
15626
  }
15622
15627
  }
15623
- const Hc = () => {
15628
+ const Fc = () => {
15624
15629
  if (typeof window < "u" && window.crypto && window.crypto.getRandomValues) {
15625
15630
  const e = new Uint32Array(1);
15626
15631
  return window.crypto.getRandomValues(e), e[0];
@@ -15639,22 +15644,22 @@ var cl;
15639
15644
  (function(e) {
15640
15645
  e.Call = "call";
15641
15646
  })(cl || (cl = {}));
15642
- var qo;
15647
+ var Lo;
15643
15648
  (function(e) {
15644
15649
  e.Query = "query", e.ReadState = "read_state";
15645
- })(qo || (qo = {}));
15650
+ })(Lo || (Lo = {}));
15646
15651
  function al() {
15647
- const e = new ArrayBuffer(16), t = new DataView(e), n = Hc(), r = Hc(), i = Hc(), s = Hc();
15652
+ const e = new ArrayBuffer(16), t = new DataView(e), n = Fc(), r = Fc(), i = Fc(), s = Fc();
15648
15653
  return t.setUint32(0, n), t.setUint32(4, r), t.setUint32(8, i), t.setUint32(12, s), Object.assign(new Uint8Array(e), { __nonce__: void 0 });
15649
15654
  }
15650
- const Fc = "__expiry__", ph = BigInt(1e3), Lx = BigInt(1e6), mw = BigInt(60), Vx = BigInt(90) * ph;
15655
+ const Mc = "__expiry__", ph = BigInt(1e3), Lx = BigInt(1e6), mw = BigInt(60), Vx = BigInt(90) * ph;
15651
15656
  function ww(e) {
15652
15657
  return e / ph;
15653
15658
  }
15654
15659
  function $x(e) {
15655
15660
  return ww(e) / mw;
15656
15661
  }
15657
- class Is {
15662
+ class Os {
15658
15663
  constructor(t) {
15659
15664
  this.__expiry__ = t, this._isExpiry = !0;
15660
15665
  }
@@ -15669,7 +15674,7 @@ class Is {
15669
15674
  static fromDeltaInMilliseconds(t, n = 0) {
15670
15675
  const r = BigInt(t), i = BigInt(Date.now()) + r + BigInt(n);
15671
15676
  let s;
15672
- return r < Vx ? s = ww(i) : s = $x(i) * mw, new Is(s * ph * Lx);
15677
+ return r < Vx ? s = ww(i) : s = $x(i) * mw, new Os(s * ph * Lx);
15673
15678
  }
15674
15679
  toBigInt() {
15675
15680
  return this.__expiry__;
@@ -15685,7 +15690,7 @@ class Is {
15685
15690
  * @returns {JsonnableExpiry} a JSON object with a single key, {@link JSON_KEY_EXPIRY}, whose value is the expiry as a string
15686
15691
  */
15687
15692
  toJSON() {
15688
- return { [Fc]: this.toString() };
15693
+ return { [Mc]: this.toString() };
15689
15694
  }
15690
15695
  /**
15691
15696
  * Deserializes a {@link JsonnableExpiry} object from a JSON string.
@@ -15694,17 +15699,17 @@ class Is {
15694
15699
  */
15695
15700
  static fromJSON(t) {
15696
15701
  const n = JSON.parse(t);
15697
- if (n[Fc])
15702
+ if (n[Mc])
15698
15703
  try {
15699
- const r = BigInt(n[Fc]);
15700
- return new Is(r);
15704
+ const r = BigInt(n[Mc]);
15705
+ return new Os(r);
15701
15706
  } catch (r) {
15702
15707
  throw new et(new ka(`Not a valid BigInt: ${r}`));
15703
15708
  }
15704
- throw new et(new ka(`The input does not contain the key ${Fc}`));
15709
+ throw new et(new ka(`The input does not contain the key ${Mc}`));
15705
15710
  }
15706
15711
  static isExpiry(t) {
15707
- return t instanceof Is || typeof t == "object" && t !== null && "_isExpiry" in t && t._isExpiry === !0 && "__expiry__" in t && typeof t.__expiry__ == "bigint";
15712
+ return t instanceof Os || typeof t == "object" && t !== null && "_isExpiry" in t && t._isExpiry === !0 && "__expiry__" in t && typeof t.__expiry__ == "bigint";
15708
15713
  }
15709
15714
  }
15710
15715
  function l0(e = al) {
@@ -15721,15 +15726,15 @@ function rf(e) {
15721
15726
  }
15722
15727
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
15723
15728
  const yh = /* @__PURE__ */ BigInt(0), Ua = /* @__PURE__ */ BigInt(1);
15724
- function Lo(e, t = "") {
15729
+ function Vo(e, t = "") {
15725
15730
  if (typeof e != "boolean") {
15726
15731
  const n = t && `"${t}"`;
15727
15732
  throw new Error(n + "expected boolean, got type=" + typeof e);
15728
15733
  }
15729
15734
  return e;
15730
15735
  }
15731
- function Os(e, t, n = "") {
15732
- const r = oc(e), i = e?.length, s = t !== void 0;
15736
+ function Bs(e, t, n = "") {
15737
+ const r = cc(e), i = e?.length, s = t !== void 0;
15733
15738
  if (!r || s && i !== t) {
15734
15739
  const o = n && `"${n}" `, c = s ? ` of length ${t}` : "", a = r ? `length=${i}` : `type=${typeof e}`;
15735
15740
  throw new Error(o + "expected Uint8Array" + c + ", got " + a);
@@ -15744,11 +15749,11 @@ function bw(e) {
15744
15749
  function or(e) {
15745
15750
  return bw(it(e));
15746
15751
  }
15747
- function Vo(e) {
15752
+ function $o(e) {
15748
15753
  return Nn(e), bw(it(Uint8Array.from(e).reverse()));
15749
15754
  }
15750
15755
  function Ct(e, t) {
15751
- return cc(e.toString(16).padStart(t * 2, "0"));
15756
+ return ac(e.toString(16).padStart(t * 2, "0"));
15752
15757
  }
15753
15758
  function Ew(e, t) {
15754
15759
  return Ct(e, t).reverse();
@@ -15757,11 +15762,11 @@ function cn(e, t, n) {
15757
15762
  let r;
15758
15763
  if (typeof t == "string")
15759
15764
  try {
15760
- r = cc(t);
15765
+ r = ac(t);
15761
15766
  } catch (s) {
15762
15767
  throw new Error(e + " must be hex string or Uint8Array, cause: " + s);
15763
15768
  }
15764
- else if (oc(t))
15769
+ else if (cc(t))
15765
15770
  r = Uint8Array.from(t);
15766
15771
  else
15767
15772
  throw new Error(e + " must be hex string or Uint8Array");
@@ -15781,7 +15786,7 @@ function d0(e, t, n, r) {
15781
15786
  if (!_w(t, n, r))
15782
15787
  throw new Error("expected valid " + e + ": " + n + " <= n < " + r + ", got " + t);
15783
15788
  }
15784
- function $o(e) {
15789
+ function Do(e) {
15785
15790
  let t;
15786
15791
  for (t = 0; e > yh; e >>= Ua, t += 1)
15787
15792
  ;
@@ -15794,7 +15799,7 @@ const ns = (e) => (Ua << BigInt(e)) - Ua;
15794
15799
  function jx(e) {
15795
15800
  return typeof e == "function" && Number.isSafeInteger(e.outputLen);
15796
15801
  }
15797
- function bc(e, t, n = {}) {
15802
+ function Ec(e, t, n = {}) {
15798
15803
  if (!e || typeof e != "object")
15799
15804
  throw new Error("expected valid options object");
15800
15805
  function r(i, s, o) {
@@ -15810,7 +15815,7 @@ function bc(e, t, n = {}) {
15810
15815
  const Sw = () => {
15811
15816
  throw new Error("not implemented");
15812
15817
  };
15813
- function Do(e) {
15818
+ function jo(e) {
15814
15819
  const t = /* @__PURE__ */ new WeakMap();
15815
15820
  return (n, ...r) => {
15816
15821
  const i = t.get(n);
@@ -15931,7 +15936,7 @@ function Nw(e) {
15931
15936
  BYTES: "number",
15932
15937
  BITS: "number"
15933
15938
  }, n = Zx.reduce((r, i) => (r[i] = "function", r), t);
15934
- return bc(e, n), e;
15939
+ return Ec(e, n), e;
15935
15940
  }
15936
15941
  function wu(e, t, n) {
15937
15942
  if (n < hn)
@@ -16019,7 +16024,7 @@ function gi(e, t, n = !1, r = {}) {
16019
16024
  }
16020
16025
  if (d.length !== u)
16021
16026
  throw new Error("Field.fromBytes: expected " + u + " bytes, got " + d.length);
16022
- let g = n ? Vo(d) : or(d);
16027
+ let g = n ? $o(d) : or(d);
16023
16028
  if (o && (g = wt(g, e)), !y && !l.isValid(g))
16024
16029
  throw new Error("invalid field element: outside of range 0..ORDER");
16025
16030
  return g;
@@ -16046,11 +16051,11 @@ function Qx(e, t, n = !1) {
16046
16051
  const r = e.length, i = kw(t), s = Pw(t);
16047
16052
  if (r < 16 || r < s || r > 1024)
16048
16053
  throw new Error("expected " + s + "-1024 bytes of input, got " + r);
16049
- const o = n ? Vo(e) : or(e), c = wt(o, t - Mt) + Mt;
16054
+ const o = n ? $o(e) : or(e), c = wt(o, t - Mt) + Mt;
16050
16055
  return n ? Ew(c, i) : Ct(c, i);
16051
16056
  }
16052
16057
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
16053
- const Ms = BigInt(0), Mi = BigInt(1);
16058
+ const qs = BigInt(0), Mi = BigInt(1);
16054
16059
  function Ha(e, t) {
16055
16060
  const n = t.negate();
16056
16061
  return e ? n : t;
@@ -16096,7 +16101,7 @@ function af(e) {
16096
16101
  return Uw.get(e) || 1;
16097
16102
  }
16098
16103
  function g0(e) {
16099
- if (e !== Ms)
16104
+ if (e !== qs)
16100
16105
  throw new Error("invalid wNAF");
16101
16106
  }
16102
16107
  class Cw {
@@ -16107,7 +16112,7 @@ class Cw {
16107
16112
  // non-const time multiplication ladder
16108
16113
  _unsafeLadder(t, n, r = this.ZERO) {
16109
16114
  let i = t;
16110
- for (; n > Ms; )
16115
+ for (; n > qs; )
16111
16116
  n & Mi && (r = r.add(i)), i = i.double(), n >>= Mi;
16112
16117
  return r;
16113
16118
  }
@@ -16158,7 +16163,7 @@ class Cw {
16158
16163
  */
16159
16164
  wNAFUnsafe(t, n, r, i = this.ZERO) {
16160
16165
  const s = of(t, this.bits);
16161
- for (let o = 0; o < s.windows && r !== Ms; o++) {
16166
+ for (let o = 0; o < s.windows && r !== qs; o++) {
16162
16167
  const { nextN: c, offset: a, isZero: u, isNeg: f } = y0(r, o, s);
16163
16168
  if (r = c, !u) {
16164
16169
  const l = n[a];
@@ -16191,7 +16196,7 @@ class Cw {
16191
16196
  }
16192
16197
  function n3(e, t, n, r) {
16193
16198
  let i = t, s = e.ZERO, o = e.ZERO;
16194
- for (; n > Ms || r > Ms; )
16199
+ for (; n > qs || r > qs; )
16195
16200
  n & Mi && (s = s.add(i)), r & Mi && (o = o.add(i)), i = i.double(), n >>= Mi, r >>= Mi;
16196
16201
  return { p1: s, p2: o };
16197
16202
  }
@@ -16200,7 +16205,7 @@ function Hw(e, t, n, r) {
16200
16205
  const i = n.length, s = r.length;
16201
16206
  if (i !== s)
16202
16207
  throw new Error("arrays of points and scalars must have equal length");
16203
- const o = e.ZERO, c = $o(BigInt(i));
16208
+ const o = e.ZERO, c = Do(BigInt(i));
16204
16209
  let a = 1;
16205
16210
  c > 12 ? a = c - 3 : c > 4 ? a = c - 2 : c > 0 && (a = 2);
16206
16211
  const u = ns(a), f = new Array(Number(u) + 1).fill(o), l = Math.floor((t.BITS - 1) / a) * a;
@@ -16233,7 +16238,7 @@ function Fw(e, t, n = {}, r) {
16233
16238
  throw new Error(`expected valid ${e} CURVE object`);
16234
16239
  for (const a of ["p", "n", "h"]) {
16235
16240
  const u = t[a];
16236
- if (!(typeof u == "bigint" && u > Ms))
16241
+ if (!(typeof u == "bigint" && u > qs))
16237
16242
  throw new Error(`CURVE.${a} must be positive bigint`);
16238
16243
  }
16239
16244
  const i = m0(t.p, n.Fp, r), s = m0(t.n, n.Fn, r), c = ["Gx", "Gy", "a", e === "weierstrass" ? "b" : "d"];
@@ -16244,7 +16249,7 @@ function Fw(e, t, n = {}, r) {
16244
16249
  }
16245
16250
  const r3 = or;
16246
16251
  function si(e, t) {
16247
- if (jo(e), jo(t), e < 0 || e >= 1 << 8 * t)
16252
+ if (Ko(e), Ko(t), e < 0 || e >= 1 << 8 * t)
16248
16253
  throw new Error("invalid I2OSP input: " + e);
16249
16254
  const n = Array.from({ length: t }).fill(0);
16250
16255
  for (let r = t - 1; r >= 0; r--)
@@ -16257,17 +16262,17 @@ function i3(e, t) {
16257
16262
  n[r] = e[r] ^ t[r];
16258
16263
  return n;
16259
16264
  }
16260
- function jo(e) {
16265
+ function Ko(e) {
16261
16266
  if (!Number.isSafeInteger(e))
16262
16267
  throw new Error("number expected");
16263
16268
  }
16264
16269
  function Mw(e) {
16265
- if (!oc(e) && typeof e != "string")
16270
+ if (!cc(e) && typeof e != "string")
16266
16271
  throw new Error("DST must be Uint8Array or string");
16267
16272
  return typeof e == "string" ? pt(e) : e;
16268
16273
  }
16269
16274
  function s3(e, t, n, r) {
16270
- Nn(e), jo(n), t = Mw(t), t.length > 255 && (t = r($e(pt("H2C-OVERSIZE-DST-"), t)));
16275
+ Nn(e), Ko(n), t = Mw(t), t.length > 255 && (t = r($e(pt("H2C-OVERSIZE-DST-"), t)));
16271
16276
  const { outputLen: i, blockLen: s } = r, o = Math.ceil(n / i);
16272
16277
  if (n > 65535 || o > 255)
16273
16278
  throw new Error("expand_message_xmd: invalid lenInBytes");
@@ -16280,7 +16285,7 @@ function s3(e, t, n, r) {
16280
16285
  return $e(...f).slice(0, n);
16281
16286
  }
16282
16287
  function o3(e, t, n, r, i) {
16283
- if (Nn(e), jo(n), t = Mw(t), t.length > 255) {
16288
+ if (Nn(e), Ko(n), t = Mw(t), t.length > 255) {
16284
16289
  const s = Math.ceil(2 * r / 8);
16285
16290
  t = i.create({ dkLen: s }).update(pt("H2C-OVERSIZE-DST-")).update(t).digest();
16286
16291
  }
@@ -16289,7 +16294,7 @@ function o3(e, t, n, r, i) {
16289
16294
  return i.create({ dkLen: n }).update(e).update(si(n, 2)).update(t).update(si(t.length, 1)).digest();
16290
16295
  }
16291
16296
  function uf(e, t, n) {
16292
- bc(n, {
16297
+ Ec(n, {
16293
16298
  p: "bigint",
16294
16299
  m: "number",
16295
16300
  k: "number",
@@ -16298,7 +16303,7 @@ function uf(e, t, n) {
16298
16303
  const { p: r, k: i, m: s, hash: o, expand: c, DST: a } = n;
16299
16304
  if (!jx(n.hash))
16300
16305
  throw new Error("expected valid hash");
16301
- Nn(e), jo(t);
16306
+ Nn(e), Ko(t);
16302
16307
  const u = r.toString(2).length, f = Math.ceil((u + i) / 8), l = t * s * f;
16303
16308
  let d;
16304
16309
  if (c === "xmd")
@@ -16372,12 +16377,12 @@ function a3(e, t, n) {
16372
16377
  let u = e - c * r - a * s, f = -c * i - a * o;
16373
16378
  const l = u < qi, d = f < qi;
16374
16379
  l && (u = -u), d && (f = -f);
16375
- const y = ns(Math.ceil($o(n) / 2)) + Qt;
16380
+ const y = ns(Math.ceil(Do(n) / 2)) + Qt;
16376
16381
  if (u < qi || u >= y || f < qi || f >= y)
16377
16382
  throw new Error("splitScalar (endomorphism): failed, k=" + e);
16378
16383
  return { k1neg: l, k1: u, k2neg: d, k2: f };
16379
16384
  }
16380
- const qi = BigInt(0), Qt = BigInt(1), mr = BigInt(2), ws = BigInt(3), ul = BigInt(4);
16385
+ const qi = BigInt(0), Qt = BigInt(1), mr = BigInt(2), bs = BigInt(3), ul = BigInt(4);
16381
16386
  function Fa(e, t) {
16382
16387
  const { BYTES: n } = e;
16383
16388
  let r;
@@ -16399,7 +16404,7 @@ function u3(e, t = {}) {
16399
16404
  const n = Fw("weierstrass", e, t), { Fp: r, Fn: i } = n;
16400
16405
  let s = n.CURVE;
16401
16406
  const { h: o, n: c } = s;
16402
- bc(t, {}, {
16407
+ Ec(t, {}, {
16403
16408
  allowInfinityPoint: "boolean",
16404
16409
  clearCofactor: "function",
16405
16410
  isTorsionFree: "function",
@@ -16418,7 +16423,7 @@ function u3(e, t = {}) {
16418
16423
  }
16419
16424
  function l(K, H, $) {
16420
16425
  const { x: P, y: D } = H.toAffine(), F = r.toBytes(P);
16421
- if (Lo($, "isCompressed"), $) {
16426
+ if (Vo($, "isCompressed"), $) {
16422
16427
  f();
16423
16428
  const x = !r.isOdd(D);
16424
16429
  return $e(f3(x), F);
@@ -16426,7 +16431,7 @@ function u3(e, t = {}) {
16426
16431
  return $e(Uint8Array.of(4), F, r.toBytes(D));
16427
16432
  }
16428
16433
  function d(K) {
16429
- Os(K, void 0, "Point");
16434
+ Bs(K, void 0, "Point");
16430
16435
  const { publicKey: H, publicKeyUncompressed: $ } = u, P = K.length, D = K[0], F = K.subarray(1);
16431
16436
  if (P === H && (D === 2 || D === 3)) {
16432
16437
  const x = r.fromBytes(F);
@@ -16462,7 +16467,7 @@ function u3(e, t = {}) {
16462
16467
  }
16463
16468
  if (!E(s.Gx, s.Gy))
16464
16469
  throw new Error("bad curve params: generator point");
16465
- const _ = r.mul(r.pow(s.a, ws), ul), S = r.mul(r.sqr(s.b), BigInt(27));
16470
+ const _ = r.mul(r.pow(s.a, bs), ul), S = r.mul(r.sqr(s.b), BigInt(27));
16466
16471
  if (r.is0(r.add(_, S)))
16467
16472
  throw new Error("bad curve params: a or b");
16468
16473
  function w(K, H, $ = !1) {
@@ -16479,7 +16484,7 @@ function u3(e, t = {}) {
16479
16484
  throw new Error("no endo");
16480
16485
  return a3(K, a.basises, i.ORDER);
16481
16486
  }
16482
- const A = Do((K, H) => {
16487
+ const A = jo((K, H) => {
16483
16488
  const { X: $, Y: P, Z: D } = K;
16484
16489
  if (r.eql(D, r.ONE))
16485
16490
  return { x: $, y: P };
@@ -16491,7 +16496,7 @@ function u3(e, t = {}) {
16491
16496
  if (!r.eql(q, r.ONE))
16492
16497
  throw new Error("invZ was invalid");
16493
16498
  return { x, y: B };
16494
- }), R = Do((K) => {
16499
+ }), R = jo((K) => {
16495
16500
  if (K.is0()) {
16496
16501
  if (t.allowInfinityPoint && !r.is0(K.Y))
16497
16502
  return;
@@ -16527,7 +16532,7 @@ function u3(e, t = {}) {
16527
16532
  return r.is0($) && r.is0(P) ? v.ZERO : new v($, P, r.ONE);
16528
16533
  }
16529
16534
  static fromBytes(H) {
16530
- const $ = v.fromAffine(g(Os(H, void 0, "point")));
16535
+ const $ = v.fromAffine(g(Bs(H, void 0, "point")));
16531
16536
  return $.assertValidity(), $;
16532
16537
  }
16533
16538
  static fromHex(H) {
@@ -16546,7 +16551,7 @@ function u3(e, t = {}) {
16546
16551
  * @returns
16547
16552
  */
16548
16553
  precompute(H = 8, $ = !0) {
16549
- return L.createCache(this, H), $ || this.multiply(ws), this;
16554
+ return L.createCache(this, H), $ || this.multiply(bs), this;
16550
16555
  }
16551
16556
  // TODO: return `this`
16552
16557
  /** A point on curve is valid if it conforms to equation. */
@@ -16574,7 +16579,7 @@ function u3(e, t = {}) {
16574
16579
  // https://eprint.iacr.org/2015/1060, algorithm 3
16575
16580
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
16576
16581
  double() {
16577
- const { a: H, b: $ } = s, P = r.mul($, ws), { X: D, Y: F, Z: x } = this;
16582
+ const { a: H, b: $ } = s, P = r.mul($, bs), { X: D, Y: F, Z: x } = this;
16578
16583
  let B = r.ZERO, q = r.ZERO, N = r.ZERO, V = r.mul(D, D), G = r.mul(F, F), X = r.mul(x, x), Y = r.mul(D, F);
16579
16584
  return Y = r.add(Y, Y), N = r.mul(D, x), N = r.add(N, N), B = r.mul(H, N), q = r.mul(P, X), q = r.add(B, q), B = r.sub(G, q), q = r.add(G, q), q = r.mul(B, q), B = r.mul(Y, B), N = r.mul(P, N), X = r.mul(H, X), Y = r.sub(V, X), Y = r.mul(H, Y), Y = r.add(Y, N), N = r.add(V, V), V = r.add(N, V), V = r.add(V, X), V = r.mul(V, Y), q = r.add(q, V), X = r.mul(F, x), X = r.add(X, X), V = r.mul(X, Y), B = r.sub(B, V), N = r.mul(X, G), N = r.add(N, N), N = r.add(N, N), new v(B, q, N);
16580
16585
  }
@@ -16586,7 +16591,7 @@ function u3(e, t = {}) {
16586
16591
  T(H);
16587
16592
  const { X: $, Y: P, Z: D } = this, { X: F, Y: x, Z: B } = H;
16588
16593
  let q = r.ZERO, N = r.ZERO, V = r.ZERO;
16589
- const G = s.a, X = r.mul(s.b, ws);
16594
+ const G = s.a, X = r.mul(s.b, bs);
16590
16595
  let Y = r.mul($, F), ce = r.mul(P, x), ue = r.mul(D, B), te = r.add($, P), Z = r.add(F, x);
16591
16596
  te = r.mul(te, Z), Z = r.add(Y, ce), te = r.sub(te, Z), Z = r.add($, D);
16592
16597
  let ae = r.add(F, B);
@@ -16670,7 +16675,7 @@ function u3(e, t = {}) {
16670
16675
  return this.multiplyUnsafe(o).is0();
16671
16676
  }
16672
16677
  toBytes(H = !0) {
16673
- return Lo(H, "isCompressed"), this.assertValidity(), y(v, this, H);
16678
+ return Vo(H, "isCompressed"), this.assertValidity(), y(v, this, H);
16674
16679
  }
16675
16680
  toHex(H = !0) {
16676
16681
  return it(this.toBytes(H));
@@ -16735,8 +16740,8 @@ function l3(e, t) {
16735
16740
  }
16736
16741
  return { isValid: O, value: S };
16737
16742
  };
16738
- if (e.ORDER % ul === ws) {
16739
- const g = (e.ORDER - ws) / ul, m = e.sqrt(e.neg(t));
16743
+ if (e.ORDER % ul === bs) {
16744
+ const g = (e.ORDER - bs) / ul, m = e.sqrt(e.neg(t));
16740
16745
  y = (E, _) => {
16741
16746
  let S = e.sqr(_);
16742
16747
  const w = e.mul(E, _);
@@ -16832,11 +16837,11 @@ function y3(e, t) {
16832
16837
  });
16833
16838
  }
16834
16839
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
16835
- const g3 = BigInt(0), Mc = BigInt(1), _0 = BigInt(2), bs = BigInt(3);
16840
+ const g3 = BigInt(0), qc = BigInt(1), _0 = BigInt(2), Es = BigInt(3);
16836
16841
  function m3(e) {
16837
16842
  const t = [];
16838
- for (; e > Mc; e >>= Mc)
16839
- (e & Mc) === g3 ? t.unshift(0) : (e & bs) === bs ? (t.unshift(-1), e += Mc) : t.unshift(1);
16843
+ for (; e > qc; e >>= qc)
16844
+ (e & qc) === g3 ? t.unshift(0) : (e & Es) === Es ? (t.unshift(-1), e += qc) : t.unshift(1);
16840
16845
  return t;
16841
16846
  }
16842
16847
  function ff(e) {
@@ -16854,8 +16859,8 @@ function w3(e, t, n, r) {
16854
16859
  throw new Error("bls: unknown twist type");
16855
16860
  const l = i.div(i.ONE, i.mul(i.ONE, _0));
16856
16861
  function d(w, T, O, A) {
16857
- const R = i.sqr(O), M = i.sqr(A), v = i.mulByB(i.mul(M, bs)), U = i.mul(v, bs), L = i.sub(i.sub(i.sqr(i.add(O, A)), M), R), K = i.sub(v, R), H = i.mul(i.sqr(T), bs), $ = i.neg(L);
16858
- return w.push([K, H, $]), T = i.mul(i.mul(i.mul(i.sub(R, U), T), O), l), O = i.sub(i.sqr(i.mul(i.add(R, U), l)), i.mul(i.sqr(v), bs)), A = i.mul(R, L), { Rx: T, Ry: O, Rz: A };
16862
+ const R = i.sqr(O), M = i.sqr(A), v = i.mulByB(i.mul(M, Es)), U = i.mul(v, Es), L = i.sub(i.sub(i.sqr(i.add(O, A)), M), R), K = i.sub(v, R), H = i.mul(i.sqr(T), Es), $ = i.neg(L);
16863
+ return w.push([K, H, $]), T = i.mul(i.mul(i.mul(i.sub(R, U), T), O), l), O = i.sub(i.sqr(i.mul(i.add(R, U), l)), i.mul(i.sqr(v), Es)), A = i.mul(R, L), { Rx: T, Ry: O, Rz: A };
16859
16864
  }
16860
16865
  function y(w, T, O, A, R, M) {
16861
16866
  const v = i.sub(O, i.mul(M, A)), U = i.sub(T, i.mul(R, A)), L = i.sub(i.mul(v, R), i.mul(U, M)), K = i.neg(v), H = U;
@@ -16863,7 +16868,7 @@ function w3(e, t, n, r) {
16863
16868
  const $ = i.sqr(U), P = i.mul($, U), D = i.mul($, T), F = i.add(i.sub(P, i.mul(D, _0)), i.mul(i.sqr(v), A));
16864
16869
  return T = i.mul(U, F), O = i.sub(i.mul(i.sub(D, F), v), i.mul(P, O)), A = i.mul(A, P), { Rx: T, Ry: O, Rz: A };
16865
16870
  }
16866
- const g = m3(c), m = Do((w) => {
16871
+ const g = m3(c), m = jo((w) => {
16867
16872
  const T = w, { x: O, y: A } = T.toAffine(), R = O, M = A, v = i.neg(A);
16868
16873
  let U = R, L = M, K = i.ONE;
16869
16874
  const H = [];
@@ -17139,7 +17144,7 @@ class _3 {
17139
17144
  constructor(t, n = {}) {
17140
17145
  this.MASK = Ar;
17141
17146
  const r = t.ORDER, i = r * r;
17142
- this.Fp = t, this.ORDER = i, this.BITS = $o(i), this.BYTES = Math.ceil($o(i) / 8), this.isLE = t.isLE, this.ZERO = { c0: t.ZERO, c1: t.ZERO }, this.ONE = { c0: t.ONE, c1: t.ZERO }, this.Fp_NONRESIDUE = t.create(n.NONRESIDUE || BigInt(-1)), this.Fp_div2 = t.div(t.ONE, tn), this.NONRESIDUE = A0(t, n.FP2_NONRESIDUE), this.FROBENIUS_COEFFICIENTS = mh(t, this.Fp_NONRESIDUE, t.ORDER, 2)[0], this.mulByB = n.Fp2mulByB, Object.seal(this);
17147
+ this.Fp = t, this.ORDER = i, this.BITS = Do(i), this.BYTES = Math.ceil(Do(i) / 8), this.isLE = t.isLE, this.ZERO = { c0: t.ZERO, c1: t.ZERO }, this.ONE = { c0: t.ONE, c1: t.ZERO }, this.Fp_NONRESIDUE = t.create(n.NONRESIDUE || BigInt(-1)), this.Fp_div2 = t.div(t.ONE, tn), this.NONRESIDUE = A0(t, n.FP2_NONRESIDUE), this.FROBENIUS_COEFFICIENTS = mh(t, this.Fp_NONRESIDUE, t.ORDER, 2)[0], this.mulByB = n.Fp2mulByB, Object.seal(this);
17143
17148
  }
17144
17149
  fromBigTuple(t) {
17145
17150
  return A0(this.Fp, t);
@@ -17671,12 +17676,12 @@ function x3(e) {
17671
17676
  return { Fp: t, Fp2: n, Fp6: r, Fp12: i };
17672
17677
  }
17673
17678
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
17674
- const Kt = BigInt(0), Ma = BigInt(1), Rn = BigInt(2), bu = BigInt(3), Ko = BigInt(4), oi = BigInt("0xd201000000010000"), A3 = $o(oi), Yi = {
17679
+ const Kt = BigInt(0), Ma = BigInt(1), Rn = BigInt(2), bu = BigInt(3), Go = BigInt(4), oi = BigInt("0xd201000000010000"), A3 = Do(oi), Yi = {
17675
17680
  p: BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab"),
17676
17681
  n: BigInt("0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001"),
17677
17682
  h: BigInt("0x396c8c005555e1568c00aaab0000aaab"),
17678
17683
  a: Kt,
17679
- b: Ko,
17684
+ b: Go,
17680
17685
  Gx: BigInt("0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb"),
17681
17686
  Gy: BigInt("0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1")
17682
17687
  }, v3 = gi(Yi.n, {
@@ -17689,7 +17694,7 @@ const Kt = BigInt(0), Ma = BigInt(1), Rn = BigInt(2), bu = BigInt(3), Ko = BigIn
17689
17694
  // Fp(u) / (u² - β) where β = -1
17690
17695
  FP2_NONRESIDUE: [Ma, Ma],
17691
17696
  Fp2mulByB: ({ c0: e, c1: t }) => {
17692
- const n = Ee.mul(e, Ko), r = Ee.mul(t, Ko);
17697
+ const n = Ee.mul(e, Go), r = Ee.mul(t, Go);
17693
17698
  return { c0: Ee.sub(n, r), c1: Ee.add(n, r) };
17694
17699
  },
17695
17700
  Fp12finalExponentiate: (e) => {
@@ -17709,7 +17714,7 @@ const Kt = BigInt(0), Ma = BigInt(1), Rn = BigInt(2), bu = BigInt(3), Ko = BigIn
17709
17714
  n: Yi.n,
17710
17715
  h: BigInt("0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5"),
17711
17716
  a: Re.ZERO,
17712
- b: Re.fromBigTuple([Ko, Ko]),
17717
+ b: Re.fromBigTuple([Go, Go]),
17713
17718
  Gx: Re.fromBigTuple([
17714
17719
  BigInt("0x024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8"),
17715
17720
  BigInt("0x13e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf11213945d57e5ac7d055d042b7e")
@@ -17718,13 +17723,13 @@ const Kt = BigInt(0), Ma = BigInt(1), Rn = BigInt(2), bu = BigInt(3), Ko = BigIn
17718
17723
  BigInt("0x0ce5d527727d6e118cc9cdc6da2e351aadfd9baa8cbdd3a76d429a695160d12c923ac9cc3baca289e193548608b82801"),
17719
17724
  BigInt("0x0606c4a02ea734cc32acd2b02bc28b99cb3e287e85a763af267492ab572e99ab3f370d275cec1da1aaa9075ff05f79be")
17720
17725
  ])
17721
- }, Eu = Ec(Ee.toBytes(Kt), { infinity: !0, compressed: !0 });
17726
+ }, Eu = _c(Ee.toBytes(Kt), { infinity: !0, compressed: !0 });
17722
17727
  function _u(e) {
17723
17728
  e = e.slice();
17724
17729
  const t = e[0] & 224, n = !!(t >> 7 & 1), r = !!(t >> 6 & 1), i = !!(t >> 5 & 1);
17725
17730
  return e[0] &= 31, { compressed: n, infinity: r, sort: i, value: e };
17726
17731
  }
17727
- function Ec(e, t) {
17732
+ function _c(e, t) {
17728
17733
  if (e[0] & 224)
17729
17734
  throw new Error("setMask: non-empty mask");
17730
17735
  return t.compressed && (e[0] |= 128), t.infinity && (e[0] |= 64), t.sort && (e[0] |= 32), e;
@@ -17735,7 +17740,7 @@ function B3(e, t, n) {
17735
17740
  if (s)
17736
17741
  return Eu.slice();
17737
17742
  const a = !!(c * Rn / i);
17738
- return Ec(Ct(o, r), { compressed: !0, sort: a });
17743
+ return _c(Ct(o, r), { compressed: !0, sort: a });
17739
17744
  } else
17740
17745
  return s ? $e(Uint8Array.of(64), new Uint8Array(2 * r - 1)) : $e(Ct(o, r), Ct(c, r));
17741
17746
  }
@@ -17745,7 +17750,7 @@ function hf(e) {
17745
17750
  if (e.is0())
17746
17751
  return Eu.slice();
17747
17752
  const s = !!(i * Rn / n);
17748
- return Ec(Ct(r, t), { compressed: !0, sort: s });
17753
+ return _c(Ct(r, t), { compressed: !0, sort: s });
17749
17754
  }
17750
17755
  function N3(e) {
17751
17756
  const { compressed: t, infinity: n, sort: r, value: i } = _u(e), { BYTES: s, ORDER: o } = Ee;
@@ -17791,7 +17796,7 @@ function k3(e, t, n) {
17791
17796
  if (s)
17792
17797
  return $e(Eu, Ct(Kt, r));
17793
17798
  const a = !!(c.c1 === Kt ? c.c0 * Rn / i : c.c1 * Rn / i);
17794
- return $e(Ec(Ct(o.c1, r), { compressed: !0, sort: a }), Ct(o.c0, r));
17799
+ return $e(_c(Ct(o.c1, r), { compressed: !0, sort: a }), Ct(o.c0, r));
17795
17800
  } else {
17796
17801
  if (s)
17797
17802
  return $e(Uint8Array.of(64), new Uint8Array(4 * r - 1));
@@ -17805,7 +17810,7 @@ function df(e) {
17805
17810
  if (e.is0())
17806
17811
  return $e(Eu, Ct(Kt, t));
17807
17812
  const { x: n, y: r } = e.toAffine(), { re: i, im: s } = Re.reim(n), { re: o, im: c } = Re.reim(r), u = !!((c > Kt ? c * Rn : o * Rn) / Ee.ORDER & Ma), f = i;
17808
- return $e(Ec(Ct(s, t), { sort: u, compressed: !0 }), Ct(f, t));
17813
+ return $e(_c(Ct(s, t), { sort: u, compressed: !0 }), Ct(f, t));
17809
17814
  }
17810
17815
  function P3(e) {
17811
17816
  const { BYTES: t, ORDER: n } = Ee, { compressed: r, infinity: i, sort: s, value: o } = _u(e);
@@ -18116,7 +18121,7 @@ function q3(e, t, n) {
18116
18121
  const r = typeof e == "string" ? e : it(e), i = typeof t == "string" ? t : it(t), s = typeof n == "string" ? n : it(n);
18117
18122
  return Su.verifyShortSignature(i, s, r);
18118
18123
  }
18119
- const L3 = BigInt(1e6), Vw = (e) => Nt(new js(e)), bh = (e) => {
18124
+ const L3 = BigInt(1e6), Vw = (e) => Nt(new Ks(e)), bh = (e) => {
18120
18125
  const n = Vw(e) / L3;
18121
18126
  return new Date(Number(n));
18122
18127
  }, B0 = 60 * 1e3, V3 = 60, $3 = 24, D3 = $3 * V3, j3 = 5, K3 = 5, G3 = 30 * D3;
@@ -18154,7 +18159,7 @@ class Di {
18154
18159
  * @returns The result of the lookup.
18155
18160
  */
18156
18161
  lookup_path(t) {
18157
- return _c(t, this.cert.tree);
18162
+ return Sc(t, this.cert.tree);
18158
18163
  }
18159
18164
  /**
18160
18165
  * Lookup a subtree in the certificate tree, using {@link lookup_subtree}.
@@ -18165,23 +18170,23 @@ class Di {
18165
18170
  return Eh(t, this.cert.tree);
18166
18171
  }
18167
18172
  async verify() {
18168
- const t = await sa(this.cert.tree), n = await this._checkDelegationAndGetKey(this.cert.delegation), r = this.cert.signature, i = z3(n), s = $e(_o("ic-state-root"), t), o = Sn(this.lookup_path(["time"]));
18173
+ const t = await sa(this.cert.tree), n = await this._checkDelegationAndGetKey(this.cert.delegation), r = this.cert.signature, i = z3(n), s = $e(So("ic-state-root"), t), o = Sn(this.lookup_path(["time"]));
18169
18174
  if (!o)
18170
- throw gt.fromCode(new xs("Certificate does not contain a time"));
18175
+ throw gt.fromCode(new As("Certificate does not contain a time"));
18171
18176
  if (!this.#t) {
18172
18177
  const c = this.#e?.getTimeDiffMsecs() ?? 0, a = this._maxAgeInMinutes * B0, u = /* @__PURE__ */ new Date(), f = u.getTime() + c, l = f - a, d = f + K3 * B0, y = bh(o), g = y.getTime() < l, m = y.getTime() > d;
18173
18178
  if ((g || m) && this.#e && !this.#e.hasSyncedTime())
18174
18179
  return await this.#e.syncTime(this._canisterId), await this.verify();
18175
18180
  if (g)
18176
- throw vn.fromCode(new Ho(this._maxAgeInMinutes, y, u, c, "past"));
18181
+ throw vn.fromCode(new Fo(this._maxAgeInMinutes, y, u, c, "past"));
18177
18182
  if (m)
18178
- throw this.#e?.hasSyncedTime() ? fn.fromCode(new $n("System time has been synced with the IC network, but certificate is still too far in the future.")) : vn.fromCode(new Ho(5, y, u, c, "future"));
18183
+ throw this.#e?.hasSyncedTime() ? fn.fromCode(new $n("System time has been synced with the IC network, but certificate is still too far in the future.")) : vn.fromCode(new Fo(5, y, u, c, "future"));
18179
18184
  }
18180
18185
  try {
18181
18186
  if (!await this._blsVerify(i, r, s))
18182
- throw vn.fromCode(new xs("Invalid signature"));
18187
+ throw vn.fromCode(new As("Invalid signature"));
18183
18188
  } catch (c) {
18184
- throw vn.fromCode(new xs("Signature verification failed", c));
18189
+ throw vn.fromCode(new As("Signature verification failed", c));
18185
18190
  }
18186
18191
  }
18187
18192
  async _checkDelegationAndGetKey(t) {
@@ -18212,15 +18217,15 @@ class Di {
18212
18217
  return o;
18213
18218
  }
18214
18219
  }
18215
- const oo = cc("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"), X3 = 96;
18220
+ const co = ac("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"), X3 = 96;
18216
18221
  function z3(e) {
18217
- const t = oo.byteLength + X3;
18222
+ const t = co.byteLength + X3;
18218
18223
  if (e.byteLength !== t)
18219
18224
  throw gt.fromCode(new pu(t, e.byteLength));
18220
- const n = e.slice(0, oo.byteLength);
18221
- if (!mu(n, oo))
18222
- throw gt.fromCode(new Zl(oo, n));
18223
- return e.slice(oo.byteLength);
18225
+ const n = e.slice(0, co.byteLength);
18226
+ if (!mu(n, co))
18227
+ throw gt.fromCode(new Zl(co, n));
18228
+ return e.slice(co.byteLength);
18224
18229
  }
18225
18230
  function Sn(e) {
18226
18231
  if (e.status === In.Found && e.value instanceof Uint8Array)
@@ -18229,20 +18234,20 @@ function Sn(e) {
18229
18234
  async function sa(e) {
18230
18235
  switch (e[0]) {
18231
18236
  case Ht.Empty:
18232
- return _n(_o("ic-hashtree-empty"));
18237
+ return _n(So("ic-hashtree-empty"));
18233
18238
  case Ht.Pruned:
18234
18239
  return e[1];
18235
18240
  case Ht.Leaf:
18236
- return _n($e(_o("ic-hashtree-leaf"), e[1]));
18241
+ return _n($e(So("ic-hashtree-leaf"), e[1]));
18237
18242
  case Ht.Labeled:
18238
- return _n($e(_o("ic-hashtree-labeled"), e[1], await sa(e[2])));
18243
+ return _n($e(So("ic-hashtree-labeled"), e[1], await sa(e[2])));
18239
18244
  case Ht.Fork:
18240
- return _n($e(_o("ic-hashtree-fork"), await sa(e[1]), await sa(e[2])));
18245
+ return _n($e(So("ic-hashtree-fork"), await sa(e[1]), await sa(e[2])));
18241
18246
  default:
18242
- throw As;
18247
+ throw vs;
18243
18248
  }
18244
18249
  }
18245
- function _o(e) {
18250
+ function So(e) {
18246
18251
  const t = new Uint8Array([e.length]), n = new TextEncoder().encode(e);
18247
18252
  return $e(t, n);
18248
18253
  }
@@ -18253,15 +18258,15 @@ var In;
18253
18258
  (function(e) {
18254
18259
  e.Unknown = "Unknown", e.Absent = "Absent", e.Found = "Found", e.Error = "Error";
18255
18260
  })(In || (In = {}));
18256
- var Bs;
18261
+ var Ns;
18257
18262
  (function(e) {
18258
18263
  e.Absent = "Absent", e.Unknown = "Unknown", e.Found = "Found";
18259
- })(Bs || (Bs = {}));
18264
+ })(Ns || (Ns = {}));
18260
18265
  var ct;
18261
18266
  (function(e) {
18262
18267
  e.Absent = "Absent", e.Unknown = "Unknown", e.Found = "Found", e.Less = "Less", e.Greater = "Greater";
18263
18268
  })(ct || (ct = {}));
18264
- function _c(e, t) {
18269
+ function Sc(e, t) {
18265
18270
  if (e.length === 0)
18266
18271
  switch (t[0]) {
18267
18272
  case Ht.Empty:
@@ -18270,13 +18275,13 @@ function _c(e, t) {
18270
18275
  };
18271
18276
  case Ht.Leaf: {
18272
18277
  if (!t[1])
18273
- throw fn.fromCode(new mc("Invalid tree structure for leaf"));
18278
+ throw fn.fromCode(new wc("Invalid tree structure for leaf"));
18274
18279
  if (t[1] instanceof Uint8Array)
18275
18280
  return {
18276
18281
  status: In.Found,
18277
18282
  value: t[1].slice(t[1].byteOffset, t[1].byteLength + t[1].byteOffset)
18278
18283
  };
18279
- throw As;
18284
+ throw vs;
18280
18285
  }
18281
18286
  case Ht.Pruned:
18282
18287
  return {
@@ -18288,12 +18293,12 @@ function _c(e, t) {
18288
18293
  status: In.Error
18289
18294
  };
18290
18295
  default:
18291
- throw As;
18296
+ throw vs;
18292
18297
  }
18293
- const n = $w(e), r = vo(n, t);
18298
+ const n = $w(e), r = Io(n, t);
18294
18299
  switch (r.status) {
18295
18300
  case ct.Found:
18296
- return _c(e.slice(1), r.value);
18301
+ return Sc(e.slice(1), r.value);
18297
18302
  case ct.Absent:
18298
18303
  case ct.Greater:
18299
18304
  case ct.Less:
@@ -18305,31 +18310,31 @@ function _c(e, t) {
18305
18310
  status: In.Unknown
18306
18311
  };
18307
18312
  default:
18308
- throw As;
18313
+ throw vs;
18309
18314
  }
18310
18315
  }
18311
18316
  function Eh(e, t) {
18312
18317
  if (e.length === 0)
18313
18318
  return {
18314
- status: Bs.Found,
18319
+ status: Ns.Found,
18315
18320
  value: t
18316
18321
  };
18317
- const n = $w(e), r = vo(n, t);
18322
+ const n = $w(e), r = Io(n, t);
18318
18323
  switch (r.status) {
18319
18324
  case ct.Found:
18320
18325
  return Eh(e.slice(1), r.value);
18321
18326
  case ct.Unknown:
18322
18327
  return {
18323
- status: Bs.Unknown
18328
+ status: Ns.Unknown
18324
18329
  };
18325
18330
  case ct.Absent:
18326
18331
  case ct.Greater:
18327
18332
  case ct.Less:
18328
18333
  return {
18329
- status: Bs.Absent
18334
+ status: Ns.Absent
18330
18335
  };
18331
18336
  default:
18332
- throw As;
18337
+ throw vs;
18333
18338
  }
18334
18339
  }
18335
18340
  function fl(e) {
@@ -18342,7 +18347,7 @@ function fl(e) {
18342
18347
  return [e];
18343
18348
  }
18344
18349
  }
18345
- function vo(e, t) {
18350
+ function Io(e, t) {
18346
18351
  switch (t[0]) {
18347
18352
  // if we have a labelled node, compare the node's label to the one we are
18348
18353
  // looking for
@@ -18357,12 +18362,12 @@ function vo(e, t) {
18357
18362
  };
18358
18363
  // if we have a fork node, we need to search both sides, starting with the left
18359
18364
  case Ht.Fork: {
18360
- const n = vo(e, t[1]);
18365
+ const n = Io(e, t[1]);
18361
18366
  switch (n.status) {
18362
18367
  // if the label we're searching for is greater than the left node lookup,
18363
18368
  // we need to search the right node
18364
18369
  case ct.Greater: {
18365
- const r = vo(e, t[2]);
18370
+ const r = Io(e, t[2]);
18366
18371
  return r.status === ct.Less ? {
18367
18372
  status: ct.Absent
18368
18373
  } : r;
@@ -18370,7 +18375,7 @@ function vo(e, t) {
18370
18375
  // if the left node returns an uncertain result, we need to search the
18371
18376
  // right node
18372
18377
  case ct.Unknown: {
18373
- const r = vo(e, t[2]);
18378
+ const r = Io(e, t[2]);
18374
18379
  return r.status === ct.Less ? {
18375
18380
  status: ct.Unknown
18376
18381
  } : r;
@@ -18398,9 +18403,9 @@ function vo(e, t) {
18398
18403
  }
18399
18404
  }
18400
18405
  function Dw(e) {
18401
- const { canisterId: t, subnetId: n, tree: r } = e, i = _c(["subnet", n.toUint8Array(), "canister_ranges"], r);
18406
+ const { canisterId: t, subnetId: n, tree: r } = e, i = Sc(["subnet", n.toUint8Array(), "canister_ranges"], r);
18402
18407
  if (i.status !== In.Found)
18403
- throw gt.fromCode(new Fs(`Could not find canister ranges for subnet ${n.toText()}`, i.status));
18408
+ throw gt.fromCode(new Ms(`Could not find canister ranges for subnet ${n.toText()}`, i.status));
18404
18409
  if (!(i.value instanceof Uint8Array))
18405
18410
  throw gt.fromCode(new du(`Could not find canister ranges for subnet ${n.toText()}`));
18406
18411
  return rr(i.value).map((a) => [
@@ -18414,7 +18419,7 @@ const N0 = async (e) => {
18414
18419
  return (async () => {
18415
18420
  try {
18416
18421
  if (t.rootKey === null)
18417
- throw un.fromCode(new Ws());
18422
+ throw un.fromCode(new Xs());
18418
18423
  const l = t.rootKey, d = await t.readState(i, {
18419
18424
  paths: [f]
18420
18425
  }), y = await Di.create({
@@ -18483,7 +18488,7 @@ const N0 = async (e) => {
18483
18488
  }
18484
18489
  }
18485
18490
  } catch (l) {
18486
- if (l instanceof _r && (l.hasCode(xs) || l.hasCode(Ho)))
18491
+ if (l instanceof _r && (l.hasCode(As) || l.hasCode(Fo)))
18487
18492
  throw l;
18488
18493
  typeof a != "string" && "key" in a && "path" in a ? o.set(a.key, null) : o.set(a, null), console.group(), console.warn(`Expected to find result for path ${a}, but instead found nothing.`), console.warn(l), console.groupEnd();
18489
18494
  }
@@ -18504,15 +18509,15 @@ const N0 = async (e) => {
18504
18509
  }), !Dw({ canisterId: t, subnetId: o, tree: i }))
18505
18510
  throw vn.fromCode(new hu(t, o));
18506
18511
  const a = Eh(["subnet", s.subnet_id, "node"], i);
18507
- if (a.status !== Bs.Found)
18508
- throw gt.fromCode(new Fs("Node not found", a.status));
18512
+ if (a.status !== Ns.Found)
18513
+ throw gt.fromCode(new Ms("Node not found", a.status));
18509
18514
  if (a.value instanceof Uint8Array)
18510
- throw fn.fromCode(new mc("Invalid node tree"));
18515
+ throw fn.fromCode(new wc("Invalid node tree"));
18511
18516
  const u = fl(a.value), f = /* @__PURE__ */ new Map();
18512
18517
  return u.forEach((l) => {
18513
- const d = Ke.from(l[1]).toText(), y = _c(["public_key"], l[2]);
18518
+ const d = Ke.from(l[1]).toText(), y = Sc(["public_key"], l[2]);
18514
18519
  if (y.status !== In.Found)
18515
- throw gt.fromCode(new Fs("Public key not found", y.status));
18520
+ throw gt.fromCode(new Ms("Public key not found", y.status));
18516
18521
  const g = y.value;
18517
18522
  if (g.byteLength !== 44)
18518
18523
  throw gt.fromCode(new pu(44, g.byteLength));
@@ -18559,7 +18564,7 @@ function t8(e, t = {}) {
18559
18564
  const n = Fw("edwards", e, t, t.FpFnLE), { Fp: r, Fn: i } = n;
18560
18565
  let s = n.CURVE;
18561
18566
  const { h: o } = s;
18562
- bc(t, {}, { uvRatio: "function" });
18567
+ Ec(t, {}, { uvRatio: "function" });
18563
18568
  const c = pf << BigInt(i.BYTES * 8) - Bt, a = (E) => r.create(E), u = t.uvRatio || ((E, _) => {
18564
18569
  try {
18565
18570
  return { isValid: !0, value: r.sqrt(r.div(E, _)) };
@@ -18577,7 +18582,7 @@ function t8(e, t = {}) {
18577
18582
  if (!(E instanceof g))
18578
18583
  throw new Error("ExtendedPoint expected");
18579
18584
  }
18580
- const d = Do((E, _) => {
18585
+ const d = jo((E, _) => {
18581
18586
  const { X: S, Y: w, Z: T } = E, O = E.is0();
18582
18587
  _ == null && (_ = O ? Q3 : r.inv(T));
18583
18588
  const A = a(S * _), R = a(w * _), M = r.mul(T, _);
@@ -18586,7 +18591,7 @@ function t8(e, t = {}) {
18586
18591
  if (M !== Bt)
18587
18592
  throw new Error("invZ was invalid");
18588
18593
  return { x: A, y: R };
18589
- }), y = Do((E) => {
18594
+ }), y = jo((E) => {
18590
18595
  const { a: _, d: S } = s;
18591
18596
  if (E.is0())
18592
18597
  throw new Error("bad point: ZERO");
@@ -18614,10 +18619,10 @@ function t8(e, t = {}) {
18614
18619
  // Uses algo from RFC8032 5.1.3.
18615
18620
  static fromBytes(_, S = !1) {
18616
18621
  const w = r.BYTES, { a: T, d: O } = s;
18617
- _ = h0(Os(_, w, "point")), Lo(S, "zip215");
18622
+ _ = h0(Bs(_, w, "point")), Vo(S, "zip215");
18618
18623
  const A = h0(_), R = _[w - 1];
18619
18624
  A[w - 1] = R & -129;
18620
- const M = Vo(A), v = S ? c : r.ORDER;
18625
+ const M = $o(A), v = S ? c : r.ORDER;
18621
18626
  d0("point.y", M, Dr, v);
18622
18627
  const U = a(M * M), L = a(U - Bt), K = a(O * U - T);
18623
18628
  let { isValid: H, value: $ } = u(L, K);
@@ -18754,7 +18759,7 @@ function t8(e, t = {}) {
18754
18759
  function n8(e, t, n = {}) {
18755
18760
  if (typeof t != "function")
18756
18761
  throw new Error('"hash" function param is required');
18757
- bc(n, {}, {
18762
+ Ec(n, {}, {
18758
18763
  adjustScalarBytes: "function",
18759
18764
  randomBytes: "function",
18760
18765
  domain: "function",
@@ -18762,12 +18767,12 @@ function n8(e, t, n = {}) {
18762
18767
  mapToCurve: "function"
18763
18768
  });
18764
18769
  const { prehash: r } = n, { BASE: i, Fp: s, Fn: o } = e, c = n.randomBytes || lg, a = n.adjustScalarBytes || ((v) => v), u = n.domain || ((v, U, L) => {
18765
- if (Lo(L, "phflag"), U.length || L)
18770
+ if (Vo(L, "phflag"), U.length || L)
18766
18771
  throw new Error("Contexts/pre-hash are not supported");
18767
18772
  return v;
18768
18773
  });
18769
18774
  function f(v) {
18770
- return o.create(Vo(v));
18775
+ return o.create($o(v));
18771
18776
  }
18772
18777
  function l(v) {
18773
18778
  const U = w.secretKey;
@@ -18792,13 +18797,13 @@ function n8(e, t, n = {}) {
18792
18797
  if (!o.isValid(x))
18793
18798
  throw new Error("sign failed: invalid s");
18794
18799
  const B = $e(D, o.toBytes(x));
18795
- return Os(B, w.signature, "result");
18800
+ return Bs(B, w.signature, "result");
18796
18801
  }
18797
18802
  const E = { zip215: !0 };
18798
18803
  function _(v, U, L, K = E) {
18799
18804
  const { context: H, zip215: $ } = K, P = w.signature;
18800
- v = cn("signature", v, P), U = cn("message", U), L = cn("publicKey", L, w.publicKey), $ !== void 0 && Lo($, "zip215"), r && (U = r(U));
18801
- const D = P / 2, F = v.subarray(0, D), x = Vo(v.subarray(D, P));
18805
+ v = cn("signature", v, P), U = cn("message", U), L = cn("publicKey", L, w.publicKey), $ !== void 0 && Vo($, "zip215"), r && (U = r(U));
18806
+ const D = P / 2, F = v.subarray(0, D), x = $o(v.subarray(D, P));
18802
18807
  let B, q, N;
18803
18808
  try {
18804
18809
  B = e.fromBytes(L, $), q = e.fromBytes(F, $), N = i.multiplyUnsafe(x);
@@ -18817,14 +18822,14 @@ function n8(e, t, n = {}) {
18817
18822
  seed: S
18818
18823
  };
18819
18824
  function T(v = c(w.seed)) {
18820
- return Os(v, w.seed, "seed");
18825
+ return Bs(v, w.seed, "seed");
18821
18826
  }
18822
18827
  function O(v) {
18823
18828
  const U = M.randomSecretKey(v);
18824
18829
  return { secretKey: U, publicKey: y(U) };
18825
18830
  }
18826
18831
  function A(v) {
18827
- return oc(v) && v.length === o.BYTES;
18832
+ return cc(v) && v.length === o.BYTES;
18828
18833
  }
18829
18834
  function R(v, U) {
18830
18835
  try {
@@ -18856,7 +18861,7 @@ function n8(e, t, n = {}) {
18856
18861
  },
18857
18862
  toMontgomerySecret(v) {
18858
18863
  const U = w.secretKey;
18859
- Os(v, U);
18864
+ Bs(v, U);
18860
18865
  const L = t(v.subarray(0, U));
18861
18866
  return a(L).subarray(0, U);
18862
18867
  },
@@ -18944,7 +18949,7 @@ const h8 = gi(jw.p, { isLE: !0 }), d8 = {
18944
18949
  // Constant-time, u/√v
18945
18950
  uvRatio: l8
18946
18951
  }, p8 = s8(d8);
18947
- var R0, U0, Rt, ks;
18952
+ var R0, U0, Rt, Ps;
18948
18953
  class y8 {
18949
18954
  /**
18950
18955
  * Create a new ExpirableMap.
@@ -18955,10 +18960,10 @@ class y8 {
18955
18960
  constructor(t = {}) {
18956
18961
  // Internals
18957
18962
  sn(this, Rt);
18958
- sn(this, ks);
18963
+ sn(this, Ps);
18959
18964
  this[R0] = this.entries.bind(this), this[U0] = "ExpirableMap";
18960
18965
  const { source: n = [], expirationTime: r = 600 * 1e3 } = t, i = Date.now();
18961
- Yt(this, Rt, new Map([...n].map(([s, o]) => [s, { value: o, timestamp: i }]))), Yt(this, ks, r);
18966
+ Yt(this, Rt, new Map([...n].map(([s, o]) => [s, { value: o, timestamp: i }]))), Yt(this, Ps, r);
18962
18967
  }
18963
18968
  /**
18964
18969
  * Prune removes all expired entries.
@@ -18966,7 +18971,7 @@ class y8 {
18966
18971
  prune() {
18967
18972
  const t = Date.now();
18968
18973
  for (const [n, r] of Fe(this, Rt).entries())
18969
- t - r.timestamp > Fe(this, ks) && Fe(this, Rt).delete(n);
18974
+ t - r.timestamp > Fe(this, Ps) && Fe(this, Rt).delete(n);
18970
18975
  return this;
18971
18976
  }
18972
18977
  // Implementing the Map interface
@@ -18992,7 +18997,7 @@ class y8 {
18992
18997
  get(t) {
18993
18998
  const n = Fe(this, Rt).get(t);
18994
18999
  if (n !== void 0) {
18995
- if (Date.now() - n.timestamp > Fe(this, ks)) {
19000
+ if (Date.now() - n.timestamp > Fe(this, Ps)) {
18996
19001
  Fe(this, Rt).delete(t);
18997
19002
  return;
18998
19003
  }
@@ -19067,7 +19072,7 @@ class y8 {
19067
19072
  return Fe(this, Rt).size;
19068
19073
  }
19069
19074
  }
19070
- Rt = new WeakMap(), ks = new WeakMap(), R0 = Symbol.iterator, U0 = Symbol.toStringTag;
19075
+ Rt = new WeakMap(), Ps = new WeakMap(), R0 = Symbol.iterator, U0 = Symbol.toStringTag;
19071
19076
  const C0 = (e) => {
19072
19077
  if (e <= 127)
19073
19078
  return 1;
@@ -19215,15 +19220,15 @@ const w8 = (e, t) => {
19215
19220
  throw et.fromCode(new Jl(s, o.length));
19216
19221
  return o;
19217
19222
  };
19218
- var Xo, zo;
19223
+ var zo, Yo;
19219
19224
  const Ui = class Ui {
19220
19225
  // `fromRaw` and `fromDer` should be used for instantiation, not this constructor.
19221
19226
  constructor(t) {
19222
- sn(this, Xo);
19223
19227
  sn(this, zo);
19228
+ sn(this, Yo);
19224
19229
  if (t.byteLength !== Ui.RAW_KEY_LENGTH)
19225
19230
  throw et.fromCode(new Rr("An Ed25519 public key must be exactly 32 bytes long"));
19226
- Yt(this, Xo, t), Yt(this, zo, Ui.derEncode(t));
19231
+ Yt(this, zo, t), Yt(this, Yo, Ui.derEncode(t));
19227
19232
  }
19228
19233
  static from(t) {
19229
19234
  return this.fromDer(t.toDer());
@@ -19244,10 +19249,10 @@ const Ui = class Ui {
19244
19249
  return n;
19245
19250
  }
19246
19251
  get rawKey() {
19247
- return Fe(this, Xo);
19252
+ return Fe(this, zo);
19248
19253
  }
19249
19254
  get derKey() {
19250
- return Fe(this, zo);
19255
+ return Fe(this, Yo);
19251
19256
  }
19252
19257
  toDer() {
19253
19258
  return this.derKey;
@@ -19256,7 +19261,7 @@ const Ui = class Ui {
19256
19261
  return this.rawKey;
19257
19262
  }
19258
19263
  };
19259
- Xo = new WeakMap(), zo = new WeakMap(), Ui.RAW_KEY_LENGTH = 32;
19264
+ zo = new WeakMap(), Yo = new WeakMap(), Ui.RAW_KEY_LENGTH = 32;
19260
19265
  let hl = Ui;
19261
19266
  class b8 {
19262
19267
  constructor() {
@@ -19287,42 +19292,42 @@ class E8 extends b8 {
19287
19292
  }
19288
19293
  }
19289
19294
  const M0 = 0.5, q0 = 1.5, L0 = 500, V0 = 6e4, $0 = 9e5, D0 = 10;
19290
- var qn, Yo, Zo, Jo, Qo, ec, tc, nc, Ps;
19295
+ var qn, Zo, Jo, Qo, ec, tc, nc, rc, Rs;
19291
19296
  const ja = class ja {
19292
19297
  constructor(t = ja.default) {
19293
19298
  sn(this, qn);
19294
- sn(this, Yo);
19295
19299
  sn(this, Zo);
19296
19300
  sn(this, Jo);
19297
19301
  sn(this, Qo);
19298
19302
  sn(this, ec);
19299
19303
  sn(this, tc);
19300
19304
  sn(this, nc);
19301
- sn(this, Ps, 0);
19305
+ sn(this, rc);
19306
+ sn(this, Rs, 0);
19302
19307
  const { initialInterval: n = L0, randomizationFactor: r = M0, multiplier: i = q0, maxInterval: s = V0, maxElapsedTime: o = $0, maxIterations: c = D0, date: a = Date } = t;
19303
- Yt(this, qn, n), Yt(this, Yo, r), Yt(this, Zo, i), Yt(this, Jo, s), Yt(this, nc, a), Yt(this, Qo, a.now()), Yt(this, ec, o), Yt(this, tc, c);
19308
+ Yt(this, qn, n), Yt(this, Zo, r), Yt(this, Jo, i), Yt(this, Qo, s), Yt(this, rc, a), Yt(this, ec, a.now()), Yt(this, tc, o), Yt(this, nc, c);
19304
19309
  }
19305
19310
  get ellapsedTimeInMsec() {
19306
- return Fe(this, nc).now() - Fe(this, Qo);
19311
+ return Fe(this, rc).now() - Fe(this, ec);
19307
19312
  }
19308
19313
  get currentInterval() {
19309
19314
  return Fe(this, qn);
19310
19315
  }
19311
19316
  get count() {
19312
- return Fe(this, Ps);
19317
+ return Fe(this, Rs);
19313
19318
  }
19314
19319
  get randomValueFromInterval() {
19315
- const t = Fe(this, Yo) * Fe(this, qn), n = Fe(this, qn) - t, r = Fe(this, qn) + t;
19320
+ const t = Fe(this, Zo) * Fe(this, qn), n = Fe(this, qn) - t, r = Fe(this, qn) + t;
19316
19321
  return Math.random() * (r - n) + n;
19317
19322
  }
19318
19323
  incrementCurrentInterval() {
19319
- return Yt(this, qn, Math.min(Fe(this, qn) * Fe(this, Zo), Fe(this, Jo))), Vh(this, Ps)._++, Fe(this, qn);
19324
+ return Yt(this, qn, Math.min(Fe(this, qn) * Fe(this, Jo), Fe(this, Qo))), Vh(this, Rs)._++, Fe(this, qn);
19320
19325
  }
19321
19326
  next() {
19322
- return this.ellapsedTimeInMsec >= Fe(this, ec) || Fe(this, Ps) >= Fe(this, tc) ? null : (this.incrementCurrentInterval(), this.randomValueFromInterval);
19327
+ return this.ellapsedTimeInMsec >= Fe(this, tc) || Fe(this, Rs) >= Fe(this, nc) ? null : (this.incrementCurrentInterval(), this.randomValueFromInterval);
19323
19328
  }
19324
19329
  };
19325
- qn = new WeakMap(), Yo = new WeakMap(), Zo = new WeakMap(), Jo = new WeakMap(), Qo = new WeakMap(), ec = new WeakMap(), tc = new WeakMap(), nc = new WeakMap(), Ps = new WeakMap(), ja.default = {
19330
+ qn = new WeakMap(), Zo = new WeakMap(), Jo = new WeakMap(), Qo = new WeakMap(), ec = new WeakMap(), tc = new WeakMap(), nc = new WeakMap(), rc = new WeakMap(), Rs = new WeakMap(), ja.default = {
19326
19331
  initialInterval: L0,
19327
19332
  randomizationFactor: M0,
19328
19333
  multiplier: q0,
@@ -19344,16 +19349,16 @@ function P8() {
19344
19349
  if (window.fetch)
19345
19350
  e = window.fetch.bind(window);
19346
19351
  else
19347
- throw un.fromCode(new Ao("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present."));
19352
+ throw un.fromCode(new vo("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present."));
19348
19353
  else if (typeof globalThis < "u")
19349
19354
  if (globalThis.fetch)
19350
19355
  e = globalThis.fetch.bind(globalThis);
19351
19356
  else
19352
- throw un.fromCode(new Ao("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available."));
19357
+ throw un.fromCode(new vo("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available."));
19353
19358
  else typeof self < "u" && self.fetch && (e = self.fetch.bind(self));
19354
19359
  if (e)
19355
19360
  return e;
19356
- throw un.fromCode(new Ao("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context."));
19361
+ throw un.fromCode(new vo("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context."));
19357
19362
  }
19358
19363
  function R8(e) {
19359
19364
  let t;
@@ -19403,7 +19408,7 @@ class vr {
19403
19408
  for (const u of c) {
19404
19409
  const { timestamp: f, identity: l } = u, d = Ke.fromUint8Array(l).toText();
19405
19410
  let y;
19406
- if (o === Hs.Replied) {
19411
+ if (o === Fs.Replied) {
19407
19412
  const { reply: S } = i;
19408
19413
  y = Ra({
19409
19414
  status: o,
@@ -19411,7 +19416,7 @@ class vr {
19411
19416
  timestamp: BigInt(f),
19412
19417
  request_id: a
19413
19418
  });
19414
- } else if (o === Hs.Rejected) {
19419
+ } else if (o === Fs.Rejected) {
19415
19420
  const { reject_code: S, reject_message: w, error_code: T } = i;
19416
19421
  y = Ra({
19417
19422
  status: o,
@@ -19432,7 +19437,7 @@ class vr {
19432
19437
  throw vn.fromCode(new fh(d));
19433
19438
  }
19434
19439
  return i;
19435
- }, this.config = t, this.#s = t.fetch || P8() || fetch.bind(globalThis), this.#m = t.fetchOptions, this.#b = t.callOptions, this.#e = t.shouldFetchRootKey ?? !1, this.#w = t.shouldSyncTime ?? !1, t.rootKey ? this.rootKey = t.rootKey : this.#e ? this.rootKey = null : this.rootKey = cc(T8);
19440
+ }, this.config = t, this.#s = t.fetch || P8() || fetch.bind(globalThis), this.#m = t.fetchOptions, this.#b = t.callOptions, this.#e = t.shouldFetchRootKey ?? !1, this.#w = t.shouldSyncTime ?? !1, t.rootKey ? this.rootKey = t.rootKey : this.#e ? this.rootKey = null : this.rootKey = ac(T8);
19436
19441
  const n = R8(t.host);
19437
19442
  this.host = new URL(n), t.verifyQuerySignatures !== void 0 && (this.#d = t.verifyQuerySignatures), this.#c = t.retryTimes ?? 3;
19438
19443
  const r = () => new dl({
@@ -19443,9 +19448,9 @@ class vr {
19443
19448
  this.#r = `${i}${s ? ":" + s : ""}`;
19444
19449
  }
19445
19450
  if (this.#n = Promise.resolve(t.identity || new u0()), t.ingressExpiryInMinutes && t.ingressExpiryInMinutes > 5)
19446
- throw et.fromCode(new ms("The maximum ingress expiry time is 5 minutes.", t.ingressExpiryInMinutes));
19451
+ throw et.fromCode(new ws("The maximum ingress expiry time is 5 minutes.", t.ingressExpiryInMinutes));
19447
19452
  if (t.ingressExpiryInMinutes && t.ingressExpiryInMinutes <= 0)
19448
- throw et.fromCode(new ms("Ingress expiry time must be greater than 0.", t.ingressExpiryInMinutes));
19453
+ throw et.fromCode(new ws("Ingress expiry time must be greater than 0.", t.ingressExpiryInMinutes));
19449
19454
  this.#o = t.ingressExpiryInMinutes || 5, this.addTransform("update", l0(al)), t.useQueryNonces && this.addTransform("query", l0(al)), t.logToConsole && this.log.subscribe((i) => {
19450
19455
  i.level === "error" ? console.error(i.message) : i.level === "warn" ? console.warn(i.message) : console.log(i.message);
19451
19456
  });
@@ -19563,7 +19568,7 @@ class vr {
19563
19568
  // disable v3 api
19564
19569
  callSync: !1
19565
19570
  }, r);
19566
- if (_.hasCode(ms) && !this.#g)
19571
+ if (_.hasCode(ws) && !this.#g)
19567
19572
  return await this.syncTime(o), this.call(o, n, r);
19568
19573
  _.code.requestContext = {
19569
19574
  requestId: E,
@@ -19583,7 +19588,7 @@ class vr {
19583
19588
  backoff: o,
19584
19589
  delay: a
19585
19590
  }), a === null)
19586
- throw fn.fromCode(new Fo(`Backoff strategy exhausted after ${c} attempts.`, s));
19591
+ throw fn.fromCode(new Mo(`Backoff strategy exhausted after ${c} attempts.`, s));
19587
19592
  a > 0 && await new Promise((y) => setTimeout(y, a));
19588
19593
  let u;
19589
19594
  try {
@@ -19643,7 +19648,7 @@ class vr {
19643
19648
  async #p(t) {
19644
19649
  const { requestFn: n, backoff: r, tries: i } = t, s = i === 0 ? 0 : r.next();
19645
19650
  if (s === null)
19646
- throw gt.fromCode(new Fo(`Retry strategy exhausted after ${i} attempts.`));
19651
+ throw gt.fromCode(new Mo(`Retry strategy exhausted after ${i} attempts.`));
19647
19652
  s > 0 && await new Promise((f) => setTimeout(f, s));
19648
19653
  let o, c = new Uint8Array();
19649
19654
  try {
@@ -19669,7 +19674,7 @@ class vr {
19669
19674
  if (o.status === k8 && o.url.includes("api/v3"))
19670
19675
  throw gt.fromCode(new Oa());
19671
19676
  if (u.startsWith("Invalid request expiry: "))
19672
- throw et.fromCode(new ms(u, this.#o));
19677
+ throw et.fromCode(new ws(u, this.#o));
19673
19678
  if (i < this.#c)
19674
19679
  return await this.#p({ requestFn: n, backoff: r, tries: i + 1 });
19675
19680
  throw gt.fromCode(new Ia(o.status, o.statusText, a, u));
@@ -19682,7 +19687,7 @@ class vr {
19682
19687
  if (!c)
19683
19688
  throw un.fromCode(new Pi());
19684
19689
  const a = Ke.from(t), u = c.getPrincipal(), f = gf(this.#o, this.#i), l = {
19685
- request_type: qo.Query,
19690
+ request_type: Lo.Query,
19686
19691
  canister_id: a,
19687
19692
  method_name: n.methodName,
19688
19693
  arg: n.arg,
@@ -19767,7 +19772,7 @@ class vr {
19767
19772
  },
19768
19773
  endpoint: Hi.ReadState,
19769
19774
  body: {
19770
- request_type: qo.ReadState,
19775
+ request_type: Lo.ReadState,
19771
19776
  paths: t.paths,
19772
19777
  sender: i,
19773
19778
  ingress_expiry: gf(this.#o, this.#i)
@@ -19825,10 +19830,10 @@ class vr {
19825
19830
  if (r && "tree" in r)
19826
19831
  n = r.tree;
19827
19832
  else
19828
- throw gt.fromCode(new mc("Could not decode time from response"));
19829
- const i = _c(["time"], n);
19833
+ throw gt.fromCode(new wc("Could not decode time from response"));
19834
+ const i = Sc(["time"], n);
19830
19835
  if (i.status !== In.Found)
19831
- throw gt.fromCode(new Fs("Time was not found in the response or was not in its expected format.", i.status));
19836
+ throw gt.fromCode(new Ms("Time was not found in the response or was not in its expected format.", i.status));
19832
19837
  if (!(i.value instanceof Uint8Array) && !ArrayBuffer.isView(i))
19833
19838
  throw gt.fromCode(new du("Time was not in its expected format."));
19834
19839
  const s = bh(i.value);
@@ -19905,7 +19910,7 @@ class vr {
19905
19910
  if (this.rootKey === null && this.host.toString() !== "https://icp-api.io" && this.#e)
19906
19911
  await this.fetchRootKey();
19907
19912
  else
19908
- throw un.fromCode(new Ws(this.#e));
19913
+ throw un.fromCode(new Xs(this.#e));
19909
19914
  }
19910
19915
  async #x(t) {
19911
19916
  this.#w && !this.hasSyncedTime() && await this.syncTime(t);
@@ -19955,7 +19960,7 @@ class vr {
19955
19960
  }
19956
19961
  function gf(e, t) {
19957
19962
  const n = e * pl;
19958
- return Is.fromDeltaInMilliseconds(n, t);
19963
+ return Os.fromDeltaInMilliseconds(n, t);
19959
19964
  }
19960
19965
  const U8 = 300 * 1e3;
19961
19966
  function C8() {
@@ -19975,7 +19980,7 @@ function M8(e) {
19975
19980
  const t = Date.now() + e;
19976
19981
  return async (n, r, i) => {
19977
19982
  if (Date.now() > t)
19978
- throw gt.fromCode(new Fo(`Request timed out after ${e} msec`, r, i));
19983
+ throw gt.fromCode(new Mo(`Request timed out after ${e} msec`, r, i));
19979
19984
  };
19980
19985
  }
19981
19986
  function q8(e, t) {
@@ -20003,7 +20008,7 @@ function $8(e, t) {
20003
20008
  return Kw(e, t) && typeof e[t] == "function";
20004
20009
  }
20005
20010
  function j0(e) {
20006
- return mf(e, "body") && mf(e.body, "content") && e.body.content.request_type === qo.ReadState && mf(e.body.content, "ingress_expiry") && typeof e.body.content.ingress_expiry == "object" && e.body.content.ingress_expiry !== null && $8(e.body.content.ingress_expiry, "toHash");
20011
+ return mf(e, "body") && mf(e.body, "content") && e.body.content.request_type === Lo.ReadState && mf(e.body.content, "ingress_expiry") && typeof e.body.content.ingress_expiry == "object" && e.body.content.ingress_expiry !== null && $8(e.body.content.ingress_expiry, "toHash");
20007
20012
  }
20008
20013
  async function Gw(e, t, n, r = {}) {
20009
20014
  const i = [pt("request_status"), n];
@@ -20013,7 +20018,7 @@ async function Gw(e, t, n, r = {}) {
20013
20018
  agent: e,
20014
20019
  pollingOptions: r
20015
20020
  }), s = await e.readState(t, { paths: [i] }, void 0, o)) : s = await e.readState(t, { paths: [i] }), e.rootKey == null)
20016
- throw un.fromCode(new Ws());
20021
+ throw un.fromCode(new Xs());
20017
20022
  const a = await Di.create({
20018
20023
  certificate: s.certificate,
20019
20024
  rootKey: e.rootKey,
@@ -20041,12 +20046,12 @@ async function Gw(e, t, n, r = {}) {
20041
20046
  }
20042
20047
  case Er.Rejected: {
20043
20048
  const l = new Uint8Array(Sn(a.lookup_path([...i, "reject_code"])))[0], d = new TextDecoder().decode(Sn(a.lookup_path([...i, "reject_message"]))), y = Sn(a.lookup_path([...i, "error_code"])), g = y ? new TextDecoder().decode(y) : void 0;
20044
- throw Ts.fromCode(new gu(n, l, d, g));
20049
+ throw xs.fromCode(new gu(n, l, d, g));
20045
20050
  }
20046
20051
  case Er.Done:
20047
20052
  throw fn.fromCode(new ih(n));
20048
20053
  }
20049
- throw As;
20054
+ throw vs;
20050
20055
  }
20051
20056
  async function D8(e) {
20052
20057
  const { paths: t, agent: n, pollingOptions: r } = e;
@@ -20163,15 +20168,15 @@ function j8(e, t, n, r) {
20163
20168
  requestDetails: l.requestDetails
20164
20169
  };
20165
20170
  switch (l.status) {
20166
- case Hs.Rejected: {
20171
+ case Fs.Rejected: {
20167
20172
  const y = new nh(l.requestId, l.reject_code, l.reject_message, l.error_code, l.signatures);
20168
20173
  throw y.callContext = {
20169
20174
  canisterId: u,
20170
20175
  methodName: t,
20171
20176
  httpDetails: d
20172
- }, Ts.fromCode(y);
20177
+ }, xs.fromCode(y);
20173
20178
  }
20174
- case Hs.Replied:
20179
+ case Fs.Replied:
20175
20180
  return n.annotations.includes(yl) ? {
20176
20181
  httpDetails: d,
20177
20182
  result: us(n.retTypes, l.reply.arg)
@@ -20198,7 +20203,7 @@ function j8(e, t, n, r) {
20198
20203
  let S, w;
20199
20204
  if (fx(E.body)) {
20200
20205
  if (a.rootKey == null)
20201
- throw un.fromCode(new Ws());
20206
+ throw un.fromCode(new Xs());
20202
20207
  const R = E.body.certificate;
20203
20208
  w = await Di.create({
20204
20209
  certificate: R,
@@ -20218,7 +20223,7 @@ function j8(e, t, n, r) {
20218
20223
  canisterId: d,
20219
20224
  methodName: t,
20220
20225
  httpDetails: E
20221
- }, Ts.fromCode($);
20226
+ }, xs.fromCode($);
20222
20227
  }
20223
20228
  }
20224
20229
  } else if (ux(E.body)) {
@@ -20227,7 +20232,7 @@ function j8(e, t, n, r) {
20227
20232
  canisterId: d,
20228
20233
  methodName: t,
20229
20234
  httpDetails: E
20230
- }, Ts.fromCode(U);
20235
+ }, xs.fromCode(U);
20231
20236
  }
20232
20237
  if (E.status === 202) {
20233
20238
  const R = {
@@ -20331,7 +20336,7 @@ function Yn() {
20331
20336
  wif: 239
20332
20337
  }), lr;
20333
20338
  }
20334
- var bf = {}, co = {}, Ef = {}, hr = {}, G0;
20339
+ var bf = {}, ao = {}, Ef = {}, hr = {}, G0;
20335
20340
  function zw() {
20336
20341
  if (G0) return hr;
20337
20342
  G0 = 1, Object.defineProperty(hr, "__esModule", { value: !0 }), hr.encode = hr.decode = hr.check = void 0;
@@ -20952,7 +20957,7 @@ var ep;
20952
20957
  function zt() {
20953
20958
  return ep || (ep = 1, (function(e) {
20954
20959
  Object.defineProperty(e, "__esModule", { value: !0 }), e.oneOf = e.Null = e.BufferN = e.Function = e.UInt32 = e.UInt8 = e.tuple = e.maybe = e.Hex = e.Buffer = e.String = e.Boolean = e.Array = e.Number = e.Hash256bit = e.Hash160bit = e.Buffer256bit = e.isTaptree = e.isTapleaf = e.TAPLEAF_VERSION_MASK = e.Satoshi = e.isPoint = e.stacksEqual = e.typeforce = void 0;
20955
- const t = rc();
20960
+ const t = ic();
20956
20961
  e.typeforce = X8();
20957
20962
  const n = t.Buffer.alloc(32, 0), r = t.Buffer.from(
20958
20963
  "fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",
@@ -21176,8 +21181,8 @@ function mi() {
21176
21181
  }
21177
21182
  var ip;
21178
21183
  function Y8() {
21179
- if (ip) return co;
21180
- ip = 1, Object.defineProperty(co, "__esModule", { value: !0 }), co.p2data = void 0;
21184
+ if (ip) return ao;
21185
+ ip = 1, Object.defineProperty(ao, "__esModule", { value: !0 }), ao.p2data = void 0;
21181
21186
  const e = Yn(), t = rn(), n = zt(), r = mi(), i = t.OPS;
21182
21187
  function s(o, c) {
21183
21188
  if (!o.data && !o.output) throw new TypeError("Not enough data");
@@ -21208,12 +21213,12 @@ function Y8() {
21208
21213
  }
21209
21214
  return Object.assign(u, o);
21210
21215
  }
21211
- return co.p2data = s, co;
21216
+ return ao.p2data = s, ao;
21212
21217
  }
21213
- var ao = {}, sp;
21218
+ var uo = {}, sp;
21214
21219
  function Z8() {
21215
- if (sp) return ao;
21216
- sp = 1, Object.defineProperty(ao, "__esModule", { value: !0 }), ao.p2ms = void 0;
21220
+ if (sp) return uo;
21221
+ sp = 1, Object.defineProperty(uo, "__esModule", { value: !0 }), uo.p2ms = void 0;
21217
21222
  const e = Yn(), t = rn(), n = zt(), r = mi(), i = t.OPS, s = i.OP_RESERVED;
21218
21223
  function o(c, a) {
21219
21224
  if (!c.input && !c.output && !(c.pubkeys && c.m !== void 0) && !c.signatures)
@@ -21314,12 +21319,12 @@ function Z8() {
21314
21319
  }
21315
21320
  return Object.assign(l, c);
21316
21321
  }
21317
- return ao.p2ms = o, ao;
21322
+ return uo.p2ms = o, uo;
21318
21323
  }
21319
- var uo = {}, op;
21324
+ var fo = {}, op;
21320
21325
  function J8() {
21321
- if (op) return uo;
21322
- op = 1, Object.defineProperty(uo, "__esModule", { value: !0 }), uo.p2pk = void 0;
21326
+ if (op) return fo;
21327
+ op = 1, Object.defineProperty(fo, "__esModule", { value: !0 }), fo.p2pk = void 0;
21323
21328
  const e = Yn(), t = rn(), n = zt(), r = mi(), i = t.OPS;
21324
21329
  function s(o, c) {
21325
21330
  if (!o.input && !o.output && !o.pubkey && !o.input && !o.signature)
@@ -21369,9 +21374,9 @@ function J8() {
21369
21374
  }
21370
21375
  return Object.assign(f, o);
21371
21376
  }
21372
- return uo.p2pk = s, uo;
21377
+ return fo.p2pk = s, fo;
21373
21378
  }
21374
- var fo = {}, vf = {}, vi = {}, Jt = {}, cp;
21379
+ var lo = {}, vf = {}, vi = {}, Jt = {}, cp;
21375
21380
  function Zw() {
21376
21381
  if (cp) return Jt;
21377
21382
  cp = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.ripemd160 = Jt.RIPEMD160 = Jt.md5 = Jt.MD5 = Jt.sha1 = Jt.SHA1 = void 0;
@@ -22313,8 +22318,8 @@ function xh() {
22313
22318
  }
22314
22319
  var gp;
22315
22320
  function iA() {
22316
- if (gp) return fo;
22317
- gp = 1, Object.defineProperty(fo, "__esModule", { value: !0 }), fo.p2pkh = void 0;
22321
+ if (gp) return lo;
22322
+ gp = 1, Object.defineProperty(lo, "__esModule", { value: !0 }), lo.p2pkh = void 0;
22318
22323
  const e = Cr(), t = Yn(), n = rn(), r = zt(), i = mi(), s = xh(), o = n.OPS;
22319
22324
  function c(a, u) {
22320
22325
  if (!a.address && !a.hash && !a.output && !a.pubkey && !a.input)
@@ -22409,12 +22414,12 @@ function iA() {
22409
22414
  }
22410
22415
  return Object.assign(y, a);
22411
22416
  }
22412
- return fo.p2pkh = c, fo;
22417
+ return lo.p2pkh = c, lo;
22413
22418
  }
22414
- var lo = {}, mp;
22419
+ var ho = {}, mp;
22415
22420
  function sA() {
22416
- if (mp) return lo;
22417
- mp = 1, Object.defineProperty(lo, "__esModule", { value: !0 }), lo.p2sh = void 0;
22421
+ if (mp) return ho;
22422
+ mp = 1, Object.defineProperty(ho, "__esModule", { value: !0 }), ho.p2sh = void 0;
22418
22423
  const e = Cr(), t = Yn(), n = rn(), r = zt(), i = mi(), s = xh(), o = n.OPS;
22419
22424
  function c(a, u) {
22420
22425
  if (!a.address && !a.hash && !a.output && !a.redeem && !a.input)
@@ -22554,13 +22559,13 @@ function sA() {
22554
22559
  }
22555
22560
  return Object.assign(l, a);
22556
22561
  }
22557
- return lo.p2sh = c, lo;
22562
+ return ho.p2sh = c, ho;
22558
22563
  }
22559
- var ho = {}, wp;
22564
+ var po = {}, wp;
22560
22565
  function oA() {
22561
- if (wp) return ho;
22562
- wp = 1, Object.defineProperty(ho, "__esModule", { value: !0 }), ho.p2wpkh = void 0;
22563
- const e = Cr(), t = Yn(), n = rn(), r = zt(), i = mi(), s = fc(), o = n.OPS, c = Buffer.alloc(0);
22566
+ if (wp) return po;
22567
+ wp = 1, Object.defineProperty(po, "__esModule", { value: !0 }), po.p2wpkh = void 0;
22568
+ const e = Cr(), t = Yn(), n = rn(), r = zt(), i = mi(), s = lc(), o = n.OPS, c = Buffer.alloc(0);
22564
22569
  function a(u, f) {
22565
22570
  if (!u.address && !u.hash && !u.output && !u.pubkey && !u.witness)
22566
22571
  throw new TypeError("Not enough data");
@@ -22658,13 +22663,13 @@ function oA() {
22658
22663
  }
22659
22664
  return Object.assign(y, u);
22660
22665
  }
22661
- return ho.p2wpkh = a, ho;
22666
+ return po.p2wpkh = a, po;
22662
22667
  }
22663
- var po = {}, bp;
22668
+ var yo = {}, bp;
22664
22669
  function cA() {
22665
- if (bp) return po;
22666
- bp = 1, Object.defineProperty(po, "__esModule", { value: !0 }), po.p2wsh = void 0;
22667
- const e = Cr(), t = Yn(), n = rn(), r = zt(), i = mi(), s = fc(), o = n.OPS, c = Buffer.alloc(0);
22670
+ if (bp) return yo;
22671
+ bp = 1, Object.defineProperty(yo, "__esModule", { value: !0 }), yo.p2wsh = void 0;
22672
+ const e = Cr(), t = Yn(), n = rn(), r = zt(), i = mi(), s = lc(), o = n.OPS, c = Buffer.alloc(0);
22668
22673
  function a(f) {
22669
22674
  return !!(Buffer.isBuffer(f) && f.length === 65 && f[0] === 4 && (0, r.isPoint)(f));
22670
22675
  }
@@ -22801,9 +22806,9 @@ function cA() {
22801
22806
  }
22802
22807
  return Object.assign(m, f);
22803
22808
  }
22804
- return po.p2wsh = u, po;
22809
+ return yo.p2wsh = u, yo;
22805
22810
  }
22806
- var yo = {}, Oi = {}, Ep;
22811
+ var go = {}, Oi = {}, Ep;
22807
22812
  function Ah() {
22808
22813
  if (Ep) return Oi;
22809
22814
  Ep = 1, Object.defineProperty(Oi, "__esModule", { value: !0 }), Oi.getEccLib = Oi.initEccLib = void 0;
@@ -22876,12 +22881,12 @@ function Ah() {
22876
22881
  ];
22877
22882
  return Oi;
22878
22883
  }
22879
- var kf = {}, Pt = {}, qc = { exports: {} };
22884
+ var kf = {}, Pt = {}, Lc = { exports: {} };
22880
22885
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
22881
22886
  var _p;
22882
22887
  function aA() {
22883
22888
  return _p || (_p = 1, (function(e, t) {
22884
- var n = rc(), r = n.Buffer;
22889
+ var n = ic(), r = n.Buffer;
22885
22890
  function i(o, c) {
22886
22891
  for (var a in o)
22887
22892
  c[a] = o[a];
@@ -22908,7 +22913,7 @@ function aA() {
22908
22913
  throw new TypeError("Argument must be a number");
22909
22914
  return n.SlowBuffer(o);
22910
22915
  };
22911
- })(qc, qc.exports)), qc.exports;
22916
+ })(Lc, Lc.exports)), Lc.exports;
22912
22917
  }
22913
22918
  var Pf, Sp;
22914
22919
  function uA() {
@@ -23064,7 +23069,7 @@ var xp;
23064
23069
  function vh() {
23065
23070
  return xp || (xp = 1, (function(e) {
23066
23071
  Object.defineProperty(e, "__esModule", { value: !0 }), e.tweakKey = e.tapTweakHash = e.tapleafHash = e.findScriptPath = e.toHashTree = e.rootHashFromPath = e.MAX_TAPTREE_DEPTH = e.LEAF_VERSION_TAPSCRIPT = void 0;
23067
- const t = rc(), n = Ah(), r = Cr(), i = Tu(), s = zt();
23072
+ const t = ic(), n = Ah(), r = Cr(), i = Tu(), s = zt();
23068
23073
  e.LEAF_VERSION_TAPSCRIPT = 192, e.MAX_TAPTREE_DEPTH = 128;
23069
23074
  const o = (m) => "left" in m && "right" in m;
23070
23075
  function c(m, E) {
@@ -23142,9 +23147,9 @@ function vh() {
23142
23147
  }
23143
23148
  var Ap;
23144
23149
  function fA() {
23145
- if (Ap) return yo;
23146
- Ap = 1, Object.defineProperty(yo, "__esModule", { value: !0 }), yo.p2tr = void 0;
23147
- const e = rc(), t = Yn(), n = rn(), r = zt(), i = Ah(), s = vh(), o = mi(), c = fc(), a = Ih(), u = n.OPS, f = 1, l = 80;
23150
+ if (Ap) return go;
23151
+ Ap = 1, Object.defineProperty(go, "__esModule", { value: !0 }), go.p2tr = void 0;
23152
+ const e = ic(), t = Yn(), n = rn(), r = zt(), i = Ah(), s = vh(), o = mi(), c = lc(), a = Ih(), u = n.OPS, f = 1, l = 80;
23148
23153
  function d(y, g) {
23149
23154
  if (!y.address && !y.output && !y.pubkey && !y.internalPubkey && !(y.witness && y.witness.length > 1))
23150
23155
  throw new TypeError("Not enough data");
@@ -23343,10 +23348,10 @@ function fA() {
23343
23348
  }
23344
23349
  return Object.assign(w, y);
23345
23350
  }
23346
- return yo.p2tr = d, yo;
23351
+ return go.p2tr = d, go;
23347
23352
  }
23348
23353
  var vp;
23349
- function Sc() {
23354
+ function Tc() {
23350
23355
  return vp || (vp = 1, (function(e) {
23351
23356
  Object.defineProperty(e, "__esModule", { value: !0 }), e.p2tr = e.p2wsh = e.p2wpkh = e.p2sh = e.p2pkh = e.p2pk = e.p2ms = e.embed = void 0;
23352
23357
  const t = Y8();
@@ -23411,7 +23416,7 @@ var Ip;
23411
23416
  function Ih() {
23412
23417
  if (Ip) return Zt;
23413
23418
  Ip = 1, Object.defineProperty(Zt, "__esModule", { value: !0 }), Zt.toOutputScript = Zt.fromOutputScript = Zt.toBech32 = Zt.toBase58Check = Zt.fromBech32 = Zt.fromBase58Check = void 0;
23414
- const e = Yn(), t = Sc(), n = rn(), r = zt(), i = fc(), s = xh(), o = 40, c = 2, a = 16, u = 2, f = 80, l = "WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";
23419
+ const e = Yn(), t = Tc(), n = rn(), r = zt(), i = lc(), s = xh(), o = 40, c = 2, a = 16, u = 2, f = 80, l = "WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";
23415
23420
  function d(w, T) {
23416
23421
  const O = w.slice(2);
23417
23422
  if (O.length < c || O.length > o)
@@ -23530,10 +23535,10 @@ function Ih() {
23530
23535
  }
23531
23536
  return Zt.toOutputScript = S, Zt;
23532
23537
  }
23533
- var go = {}, mo = {}, Op;
23538
+ var mo = {}, wo = {}, Op;
23534
23539
  function lA() {
23535
- if (Op) return mo;
23536
- Op = 1, Object.defineProperty(mo, "__esModule", { value: !0 }), mo.fastMerkleRoot = void 0;
23540
+ if (Op) return wo;
23541
+ Op = 1, Object.defineProperty(wo, "__esModule", { value: !0 }), wo.fastMerkleRoot = void 0;
23537
23542
  function e(t, n) {
23538
23543
  if (!Array.isArray(t)) throw TypeError("Expected values Array");
23539
23544
  if (typeof n != "function")
@@ -23550,12 +23555,12 @@ function lA() {
23550
23555
  }
23551
23556
  return i[0];
23552
23557
  }
23553
- return mo.fastMerkleRoot = e, mo;
23558
+ return wo.fastMerkleRoot = e, wo;
23554
23559
  }
23555
- var wo = {}, Bp;
23556
- function Tc() {
23557
- if (Bp) return wo;
23558
- Bp = 1, Object.defineProperty(wo, "__esModule", { value: !0 }), wo.Transaction = void 0;
23560
+ var bo = {}, Bp;
23561
+ function xc() {
23562
+ if (Bp) return bo;
23563
+ Bp = 1, Object.defineProperty(bo, "__esModule", { value: !0 }), bo.Transaction = void 0;
23559
23564
  const e = Tu(), t = Cr(), n = rn(), r = rn(), i = zt(), { typeforce: s } = i;
23560
23565
  function o(E) {
23561
23566
  const _ = E.length;
@@ -23840,13 +23845,13 @@ function Tc() {
23840
23845
  }), T.writeUInt32(this.locktime), S !== void 0 ? _.slice(S, T.offset) : _;
23841
23846
  }
23842
23847
  }
23843
- return wo.Transaction = m, m.DEFAULT_SEQUENCE = 4294967295, m.SIGHASH_DEFAULT = 0, m.SIGHASH_ALL = 1, m.SIGHASH_NONE = 2, m.SIGHASH_SINGLE = 3, m.SIGHASH_ANYONECANPAY = 128, m.SIGHASH_OUTPUT_MASK = 3, m.SIGHASH_INPUT_MASK = 128, m.ADVANCED_TRANSACTION_MARKER = 0, m.ADVANCED_TRANSACTION_FLAG = 1, wo;
23848
+ return bo.Transaction = m, m.DEFAULT_SEQUENCE = 4294967295, m.SIGHASH_DEFAULT = 0, m.SIGHASH_ALL = 1, m.SIGHASH_NONE = 2, m.SIGHASH_SINGLE = 3, m.SIGHASH_ANYONECANPAY = 128, m.SIGHASH_OUTPUT_MASK = 3, m.SIGHASH_INPUT_MASK = 128, m.ADVANCED_TRANSACTION_MARKER = 0, m.ADVANCED_TRANSACTION_FLAG = 1, bo;
23844
23849
  }
23845
23850
  var Np;
23846
23851
  function hA() {
23847
- if (Np) return go;
23848
- Np = 1, Object.defineProperty(go, "__esModule", { value: !0 }), go.Block = void 0;
23849
- const e = Tu(), t = Cr(), n = lA(), r = Tc(), i = zt(), { typeforce: s } = i, o = new TypeError(
23852
+ if (Np) return mo;
23853
+ Np = 1, Object.defineProperty(mo, "__esModule", { value: !0 }), mo.Block = void 0;
23854
+ const e = Tu(), t = Cr(), n = lA(), r = xc(), i = zt(), { typeforce: s } = i, o = new TypeError(
23850
23855
  "Cannot compute merkle root for zero transactions"
23851
23856
  ), c = new TypeError(
23852
23857
  "Cannot compute witness commit for non-segwit block"
@@ -23962,7 +23967,7 @@ function hA() {
23962
23967
  return this.witnessCommit.compare(d) === 0;
23963
23968
  }
23964
23969
  }
23965
- go.Block = a;
23970
+ mo.Block = a;
23966
23971
  function u(l) {
23967
23972
  return l instanceof Array && l[0] && l[0].ins && l[0].ins instanceof Array && l[0].ins[0] && l[0].ins[0].witness && l[0].ins[0].witness instanceof Array && l[0].ins[0].witness.length > 0;
23968
23973
  }
@@ -23973,9 +23978,9 @@ function hA() {
23973
23978
  )
23974
23979
  );
23975
23980
  }
23976
- return go;
23981
+ return mo;
23977
23982
  }
23978
- var bo = {}, Lc = {}, Vc = {}, Rf = {}, fs = {}, ls = {}, Uf = {}, kp;
23983
+ var Eo = {}, Vc = {}, $c = {}, Rf = {}, fs = {}, ls = {}, Uf = {}, kp;
23979
23984
  function qt() {
23980
23985
  return kp || (kp = 1, (function(e) {
23981
23986
  Object.defineProperty(e, "__esModule", { value: !0 }), (function(t) {
@@ -24066,10 +24071,10 @@ function dA() {
24066
24071
  }
24067
24072
  return jr.canAddToArray = s, jr;
24068
24073
  }
24069
- var $c = {}, Rp;
24074
+ var Dc = {}, Rp;
24070
24075
  function pA() {
24071
- if (Rp) return $c;
24072
- Rp = 1, Object.defineProperty($c, "__esModule", { value: !0 });
24076
+ if (Rp) return Dc;
24077
+ Rp = 1, Object.defineProperty(Dc, "__esModule", { value: !0 });
24073
24078
  const e = qt();
24074
24079
  function t(n) {
24075
24080
  return {
@@ -24077,7 +24082,7 @@ function pA() {
24077
24082
  value: n.toBuffer()
24078
24083
  };
24079
24084
  }
24080
- return $c.encode = t, $c;
24085
+ return Dc.encode = t, Dc;
24081
24086
  }
24082
24087
  var Kr = {}, Up;
24083
24088
  function yA() {
@@ -24587,10 +24592,10 @@ function vA() {
24587
24592
  }
24588
24593
  return ni.canAdd = s, ni;
24589
24594
  }
24590
- var Dc = {}, Xp;
24595
+ var jc = {}, Xp;
24591
24596
  function Qw() {
24592
- if (Xp) return Dc;
24593
- Xp = 1, Object.defineProperty(Dc, "__esModule", { value: !0 });
24597
+ if (Xp) return jc;
24598
+ Xp = 1, Object.defineProperty(jc, "__esModule", { value: !0 });
24594
24599
  const e = (r) => [...Array(r).keys()], t = (r) => r.length === 33 && [2, 3].includes(r[0]) || r.length === 65 && r[0] === 4;
24595
24600
  function n(r, i = t) {
24596
24601
  function s(f) {
@@ -24647,12 +24652,12 @@ function Qw() {
24647
24652
  canAddToArray: u
24648
24653
  };
24649
24654
  }
24650
- return Dc.makeConverter = n, Dc;
24655
+ return jc.makeConverter = n, jc;
24651
24656
  }
24652
- var jc = {}, zp;
24657
+ var Kc = {}, zp;
24653
24658
  function IA() {
24654
- if (zp) return jc;
24655
- zp = 1, Object.defineProperty(jc, "__esModule", { value: !0 });
24659
+ if (zp) return Kc;
24660
+ zp = 1, Object.defineProperty(Kc, "__esModule", { value: !0 });
24656
24661
  function e(t) {
24657
24662
  return n;
24658
24663
  function n(r) {
@@ -24664,12 +24669,12 @@ function IA() {
24664
24669
  return i;
24665
24670
  }
24666
24671
  }
24667
- return jc.makeChecker = e, jc;
24672
+ return Kc.makeChecker = e, Kc;
24668
24673
  }
24669
- var Kc = {}, Yp;
24674
+ var Gc = {}, Yp;
24670
24675
  function OA() {
24671
- if (Yp) return Kc;
24672
- Yp = 1, Object.defineProperty(Kc, "__esModule", { value: !0 });
24676
+ if (Yp) return Gc;
24677
+ Yp = 1, Object.defineProperty(Gc, "__esModule", { value: !0 });
24673
24678
  function e(t) {
24674
24679
  function n(c) {
24675
24680
  if (c.key[0] !== t)
@@ -24699,12 +24704,12 @@ function OA() {
24699
24704
  canAdd: o
24700
24705
  };
24701
24706
  }
24702
- return Kc.makeConverter = e, Kc;
24707
+ return Gc.makeConverter = e, Gc;
24703
24708
  }
24704
- var Gc = {}, Zp;
24709
+ var Wc = {}, Zp;
24705
24710
  function BA() {
24706
- if (Zp) return Gc;
24707
- Zp = 1, Object.defineProperty(Gc, "__esModule", { value: !0 });
24711
+ if (Zp) return Wc;
24712
+ Zp = 1, Object.defineProperty(Wc, "__esModule", { value: !0 });
24708
24713
  const e = is(), t = Qw(), n = (i) => i.length === 32;
24709
24714
  function r(i) {
24710
24715
  const s = t.makeConverter(i, n);
@@ -24737,12 +24742,12 @@ function BA() {
24737
24742
  canAddToArray: s.canAddToArray
24738
24743
  };
24739
24744
  }
24740
- return Gc.makeConverter = r, Gc;
24745
+ return Wc.makeConverter = r, Wc;
24741
24746
  }
24742
- var Wc = {}, Jp;
24747
+ var Xc = {}, Jp;
24743
24748
  function NA() {
24744
- if (Jp) return Wc;
24745
- Jp = 1, Object.defineProperty(Wc, "__esModule", { value: !0 });
24749
+ if (Jp) return Xc;
24750
+ Jp = 1, Object.defineProperty(Xc, "__esModule", { value: !0 });
24746
24751
  function e(t) {
24747
24752
  function n(c) {
24748
24753
  if (c.key[0] !== t || c.key.length !== 1)
@@ -24773,12 +24778,12 @@ function NA() {
24773
24778
  canAdd: o
24774
24779
  };
24775
24780
  }
24776
- return Wc.makeConverter = e, Wc;
24781
+ return Xc.makeConverter = e, Xc;
24777
24782
  }
24778
- var Xc = {}, Qp;
24783
+ var zc = {}, Qp;
24779
24784
  function kA() {
24780
- if (Qp) return Xc;
24781
- Qp = 1, Object.defineProperty(Xc, "__esModule", { value: !0 });
24785
+ if (Qp) return zc;
24786
+ Qp = 1, Object.defineProperty(zc, "__esModule", { value: !0 });
24782
24787
  function e(t) {
24783
24788
  function n(c) {
24784
24789
  if (c.key[0] !== t)
@@ -24808,7 +24813,7 @@ function kA() {
24808
24813
  canAdd: o
24809
24814
  };
24810
24815
  }
24811
- return Xc.makeConverter = e, Xc;
24816
+ return zc.makeConverter = e, zc;
24812
24817
  }
24813
24818
  var ey;
24814
24819
  function Bh() {
@@ -25167,10 +25172,10 @@ function PA() {
25167
25172
  }
25168
25173
  return fs.psbtFromKeyVals = o, fs;
25169
25174
  }
25170
- var Eo = {}, ny;
25175
+ var _o = {}, ny;
25171
25176
  function RA() {
25172
- if (ny) return Eo;
25173
- ny = 1, Object.defineProperty(Eo, "__esModule", { value: !0 });
25177
+ if (ny) return _o;
25178
+ ny = 1, Object.defineProperty(_o, "__esModule", { value: !0 });
25174
25179
  const e = Bh(), t = Oh();
25175
25180
  function n({ globalMap: o, inputs: c, outputs: a }) {
25176
25181
  const { globalKeyVals: u, inputKeyVals: f, outputKeyVals: l } = s({
@@ -25182,7 +25187,7 @@ function RA() {
25182
25187
  [E, d].concat(g, m)
25183
25188
  );
25184
25189
  }
25185
- Eo.psbtToBuffer = n;
25190
+ _o.psbtToBuffer = n;
25186
25191
  const r = (o, c) => o.key.compare(c.key);
25187
25192
  function i(o, c) {
25188
25193
  const a = /* @__PURE__ */ new Set(), u = Object.entries(o).reduce((l, [d, y]) => {
@@ -25207,7 +25212,7 @@ function RA() {
25207
25212
  outputKeyVals: a.map((u) => i(u, e.outputs))
25208
25213
  };
25209
25214
  }
25210
- return Eo.psbtToKeyVals = s, Eo;
25215
+ return _o.psbtToKeyVals = s, _o;
25211
25216
  }
25212
25217
  var ry;
25213
25218
  function e1() {
@@ -25220,8 +25225,8 @@ function e1() {
25220
25225
  }
25221
25226
  var iy;
25222
25227
  function UA() {
25223
- if (iy) return Vc;
25224
- iy = 1, Object.defineProperty(Vc, "__esModule", { value: !0 });
25228
+ if (iy) return $c;
25229
+ iy = 1, Object.defineProperty($c, "__esModule", { value: !0 });
25225
25230
  const e = e1();
25226
25231
  function t(s) {
25227
25232
  const o = s[0], c = e.psbtToKeyVals(o), a = s.slice(1);
@@ -25267,7 +25272,7 @@ function UA() {
25267
25272
  outputKeyVals: c.outputKeyVals
25268
25273
  });
25269
25274
  }
25270
- Vc.combine = t;
25275
+ $c.combine = t;
25271
25276
  function n(s, o, c) {
25272
25277
  return (a) => {
25273
25278
  if (s.has(a)) return;
@@ -25287,7 +25292,7 @@ function UA() {
25287
25292
  o.add(a);
25288
25293
  }), o;
25289
25294
  }
25290
- return Vc;
25295
+ return $c;
25291
25296
  }
25292
25297
  var Cf = {}, sy;
25293
25298
  function t1() {
@@ -25391,8 +25396,8 @@ function t1() {
25391
25396
  }
25392
25397
  var oy;
25393
25398
  function CA() {
25394
- if (oy) return Lc;
25395
- oy = 1, Object.defineProperty(Lc, "__esModule", { value: !0 });
25399
+ if (oy) return Vc;
25400
+ oy = 1, Object.defineProperty(Vc, "__esModule", { value: !0 });
25396
25401
  const e = UA(), t = e1(), n = qt(), r = t1();
25397
25402
  class i {
25398
25403
  constructor(o) {
@@ -25498,13 +25503,13 @@ function CA() {
25498
25503
  return this.globalMap.unsignedTx.toBuffer();
25499
25504
  }
25500
25505
  }
25501
- return Lc.Psbt = i, Lc;
25506
+ return Vc.Psbt = i, Vc;
25502
25507
  }
25503
25508
  var Qe = {}, ze = {}, cy;
25504
25509
  function gl() {
25505
25510
  if (cy) return ze;
25506
25511
  cy = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.signatureBlocksAction = ze.checkInputForSig = ze.pubkeyInScript = ze.pubkeyPositionInScript = ze.witnessStackToScriptWitness = ze.isP2TR = ze.isP2SHScript = ze.isP2WSHScript = ze.isP2WPKH = ze.isP2PKH = ze.isP2PK = ze.isP2MS = void 0;
25507
- const e = is(), t = rn(), n = Tc(), r = Cr(), i = Sc();
25512
+ const e = is(), t = rn(), n = xc(), r = Cr(), i = Tc();
25508
25513
  function s(y) {
25509
25514
  return (g) => {
25510
25515
  try {
@@ -25581,7 +25586,7 @@ var ay;
25581
25586
  function HA() {
25582
25587
  if (ay) return Qe;
25583
25588
  ay = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.checkTaprootInputForSigs = Qe.tapTreeFromList = Qe.tapTreeToList = Qe.tweakInternalPubKey = Qe.checkTaprootOutputFields = Qe.checkTaprootInputFields = Qe.isTaprootOutput = Qe.isTaprootInput = Qe.serializeTaprootSignature = Qe.tapScriptFinalizer = Qe.toXOnly = void 0;
25584
- const e = zt(), t = Tc(), n = gl(), r = vh(), i = Sc(), s = gl(), o = (x) => x.length === 32 ? x : x.slice(1, 33);
25589
+ const e = zt(), t = xc(), n = gl(), r = vh(), i = Tc(), s = gl(), o = (x) => x.length === 32 ? x : x.slice(1, 33);
25585
25590
  Qe.toXOnly = o;
25586
25591
  function c(x, B, q) {
25587
25592
  const N = P(
@@ -25803,9 +25808,9 @@ function HA() {
25803
25808
  }
25804
25809
  var uy;
25805
25810
  function FA() {
25806
- if (uy) return bo;
25807
- uy = 1, Object.defineProperty(bo, "__esModule", { value: !0 }), bo.Psbt = void 0;
25808
- const e = CA(), t = is(), n = t1(), r = Ih(), i = Tu(), s = Yn(), o = Sc(), c = vh(), a = rn(), u = Tc(), f = HA(), l = gl(), d = {
25811
+ if (uy) return Eo;
25812
+ uy = 1, Object.defineProperty(Eo, "__esModule", { value: !0 }), Eo.Psbt = void 0;
25813
+ const e = CA(), t = is(), n = t1(), r = Ih(), i = Tu(), s = Yn(), o = Tc(), c = vh(), a = rn(), u = xc(), f = HA(), l = gl(), d = {
25809
25814
  /**
25810
25815
  * A bitcoinjs Network object. This is only used if you pass an `address`
25811
25816
  * parameter to addOutput. Otherwise it is not needed and can be left default.
@@ -26449,7 +26454,7 @@ function FA() {
26449
26454
  return this.data.clearFinalizedInput(h), this;
26450
26455
  }
26451
26456
  }
26452
- bo.Psbt = y;
26457
+ Eo.Psbt = y;
26453
26458
  const g = (p) => new m(p);
26454
26459
  class m {
26455
26460
  constructor(h = Buffer.from([2, 0, 0, 0, 0, 0, 0, 0, 0, 0])) {
@@ -27002,7 +27007,7 @@ PROCEED WITH CAUTION!
27002
27007
  function k(p) {
27003
27008
  return [...Array(p).keys()];
27004
27009
  }
27005
- return bo;
27010
+ return Eo;
27006
27011
  }
27007
27012
  var fy;
27008
27013
  function MA() {
@@ -27014,7 +27019,7 @@ function MA() {
27014
27019
  e.crypto = n;
27015
27020
  const r = Yn();
27016
27021
  e.networks = r;
27017
- const i = Sc();
27022
+ const i = Tc();
27018
27023
  e.payments = i;
27019
27024
  const s = rn();
27020
27025
  e.script = s;
@@ -27039,7 +27044,7 @@ function MA() {
27039
27044
  return a.OPS;
27040
27045
  }
27041
27046
  });
27042
- var u = Tc();
27047
+ var u = xc();
27043
27048
  Object.defineProperty(e, "Transaction", {
27044
27049
  enumerable: !0,
27045
27050
  get: function() {
@@ -27711,9 +27716,9 @@ function Nh(e) {
27711
27716
  return Array.from(e).map((t) => t.toString(16).padStart(2, "0")).join("");
27712
27717
  }
27713
27718
  function kh(e) {
27714
- return e === ko.Mainnet ? Un : Vy;
27719
+ return e === Po.Mainnet ? Un : Vy;
27715
27720
  }
27716
- function Ph(e, t = ko.Testnet) {
27721
+ function Ph(e, t = Po.Testnet) {
27717
27722
  const n = kh(t);
27718
27723
  return Bg(e, n);
27719
27724
  }
@@ -27752,7 +27757,7 @@ function jA(e, t, n) {
27752
27757
  }
27753
27758
  async function s1(e, t) {
27754
27759
  try {
27755
- const n = t === ko.Mainnet ? "https://mpc.omnity.network/utxo-status" : "https://mpc.omnity.network/testnet4/utxo-status", r = await dt.post(n, e).then((c) => c.data);
27760
+ const n = t === Po.Mainnet ? "https://mpc.omnity.network/utxo-status" : "https://mpc.omnity.network/testnet4/utxo-status", r = await dt.post(n, e).then((c) => c.data);
27756
27761
  if (!r)
27757
27762
  return null;
27758
27763
  const i = JSON.stringify(r), o = new TextEncoder().encode(i);
@@ -27770,7 +27775,7 @@ const EI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27770
27775
  getUtxoProof: s1,
27771
27776
  hexToBytes: i1,
27772
27777
  toBitcoinNetwork: kh
27773
- }, Symbol.toStringTag, { value: "Module" })), KA = "kqs64-paaaa-aaaar-qamza-cai", GA = "hvyp5-5yaaa-aaaao-qjxha-cai", zc = BigInt(546), on = "0:0", WA = "https://runescan-hasura-mainnet.omnity.network/v1/graphql", XA = "https://runescan-hasura-testnet.omnity.network/v1/graphql", wy = {
27778
+ }, Symbol.toStringTag, { value: "Module" })), KA = "kqs64-paaaa-aaaar-qamza-cai", GA = "hvyp5-5yaaa-aaaao-qjxha-cai", ps = BigInt(546), on = "0:0", WA = "https://runescan-hasura-mainnet.omnity.network/v1/graphql", XA = "https://runescan-hasura-testnet.omnity.network/v1/graphql", wy = {
27774
27779
  P2PKH: 148,
27775
27780
  P2SH_P2WPKH: 91,
27776
27781
  P2WPKH: 68,
@@ -27937,7 +27942,7 @@ class Ri {
27937
27942
  (w, T) => w + BigInt(T.satoshis),
27938
27943
  BigInt(0)
27939
27944
  );
27940
- S - d > 0 && S - d > zc || (this.outputAddressTypes.pop(), a = !1), l = _;
27945
+ S - d > 0 && S - d > ps || (this.outputAddressTypes.pop(), a = !1), l = _;
27941
27946
  }
27942
27947
  } while (f > u && d > 0);
27943
27948
  this.inputAddressTypes = [...g], a && this.outputAddressTypes.pop();
@@ -27948,7 +27953,7 @@ class Ri {
27948
27953
  const E = m - d;
27949
27954
  if (E < 0)
27950
27955
  throw new Error("Insufficient UTXO(s)");
27951
- E > zc ? this.addOutput(r, E) : E > BigInt(0) && (y = E), this.txFee = y + f;
27956
+ E > ps ? this.addOutput(r, E) : E > BigInt(0) && (y = E), this.txFee = y + f;
27952
27957
  }
27953
27958
  /**
27954
27959
  * Resolve and fetch all UTXOs required by the current intention set, grouped by address.
@@ -28199,8 +28204,8 @@ class Ri {
28199
28204
  });
28200
28205
  const a = new ds.Runestone(s, ds.none(), ds.none(), ds.none());
28201
28206
  this.addScriptOutput(new Uint8Array(a.encipher())), o.forEach((u) => {
28202
- const f = t[u]?.[on] ?? BigInt(0), l = u === this.config.address, d = f > BigInt(0) && (!l || n), y = d ? f : zc;
28203
- this.addOutput(u, y), d ? delete t[u][on] : this.additionalDustNeeded += zc;
28207
+ const f = t[u]?.[on] ?? BigInt(0), l = u === this.config.address, d = f > BigInt(0) && (!l || n), y = d && f > ps ? f : ps;
28208
+ this.addOutput(u, y), d ? delete t[u][on] : this.additionalDustNeeded += ps;
28204
28209
  });
28205
28210
  }
28206
28211
  for (const [s, o] of Object.entries(
@@ -28400,21 +28405,21 @@ class Ri {
28400
28405
  });
28401
28406
  }
28402
28407
  }
28403
- class Ns extends Error {
28408
+ class ks extends Error {
28404
28409
  response;
28405
28410
  request;
28406
28411
  constructor(t, n) {
28407
- const r = `${Ns.extractMessage(t)}: ${JSON.stringify({
28412
+ const r = `${ks.extractMessage(t)}: ${JSON.stringify({
28408
28413
  response: t,
28409
28414
  request: n
28410
28415
  })}`;
28411
- super(r), Object.setPrototypeOf(this, Ns.prototype), this.response = t, this.request = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Ns);
28416
+ super(r), Object.setPrototypeOf(this, ks.prototype), this.response = t, this.request = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, ks);
28412
28417
  }
28413
28418
  static extractMessage(t) {
28414
28419
  return t.errors?.[0]?.message ?? `GraphQL Error (Code: ${String(t.status)})`;
28415
28420
  }
28416
28421
  }
28417
- const Ey = (e) => e.toUpperCase(), Ff = (e) => typeof e == "function" ? e() : e, o1 = (e, t) => e.map((n, r) => [n, t[r]]), ps = (e) => {
28422
+ const Ey = (e) => e.toUpperCase(), Ff = (e) => typeof e == "function" ? e() : e, o1 = (e, t) => e.map((n, r) => [n, t[r]]), ys = (e) => {
28418
28423
  let t = {};
28419
28424
  return e instanceof Headers ? t = ZA(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
28420
28425
  n && r !== void 0 && (t[n] = r);
@@ -28778,10 +28783,10 @@ function xy(e) {
28778
28783
  const t = e?.kind;
28779
28784
  return typeof t == "string" && av.has(t);
28780
28785
  }
28781
- var Es;
28786
+ var _s;
28782
28787
  (function(e) {
28783
28788
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
28784
- })(Es || (Es = {}));
28789
+ })(_s || (_s = {}));
28785
28790
  var wl;
28786
28791
  (function(e) {
28787
28792
  e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
@@ -28793,7 +28798,7 @@ var Se;
28793
28798
  function bl(e) {
28794
28799
  return e === 9 || e === 32;
28795
28800
  }
28796
- function Go(e) {
28801
+ function Wo(e) {
28797
28802
  return e >= 48 && e <= 57;
28798
28803
  }
28799
28804
  function f1(e) {
@@ -28804,7 +28809,7 @@ function l1(e) {
28804
28809
  return f1(e) || e === 95;
28805
28810
  }
28806
28811
  function uv(e) {
28807
- return f1(e) || Go(e) || e === 95;
28812
+ return f1(e) || Wo(e) || e === 95;
28808
28813
  }
28809
28814
  function fv(e) {
28810
28815
  var t;
@@ -28887,7 +28892,7 @@ class dv {
28887
28892
  function pv(e) {
28888
28893
  return e === ee.BANG || e === ee.DOLLAR || e === ee.AMP || e === ee.PAREN_L || e === ee.PAREN_R || e === ee.SPREAD || e === ee.COLON || e === ee.EQUALS || e === ee.AT || e === ee.BRACKET_L || e === ee.BRACKET_R || e === ee.BRACE_L || e === ee.PIPE || e === ee.BRACE_R;
28889
28894
  }
28890
- function Ys(e) {
28895
+ function Zs(e) {
28891
28896
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
28892
28897
  }
28893
28898
  function xu(e, t) {
@@ -28997,14 +29002,14 @@ function yv(e, t) {
28997
29002
  case 34:
28998
29003
  return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Sv(e, i) : wv(e, i);
28999
29004
  }
29000
- if (Go(s) || s === 45)
29005
+ if (Wo(s) || s === 45)
29001
29006
  return mv(e, i, s);
29002
29007
  if (l1(s))
29003
29008
  return Tv(e, i);
29004
29009
  throw kt(
29005
29010
  e.source,
29006
29011
  i,
29007
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Ys(s) || xu(n, i) ? `Unexpected character: ${Zi(e, i)}.` : `Invalid character: ${Zi(e, i)}.`
29012
+ s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Zs(s) || xu(n, i) ? `Unexpected character: ${Zi(e, i)}.` : `Invalid character: ${Zi(e, i)}.`
29008
29013
  );
29009
29014
  }
29010
29015
  return Et(e, ee.EOF, r, r);
@@ -29016,7 +29021,7 @@ function gv(e, t) {
29016
29021
  const s = n.charCodeAt(i);
29017
29022
  if (s === 10 || s === 13)
29018
29023
  break;
29019
- if (Ys(s))
29024
+ if (Zs(s))
29020
29025
  ++i;
29021
29026
  else if (xu(n, i))
29022
29027
  i += 2;
@@ -29035,7 +29040,7 @@ function mv(e, t, n) {
29035
29040
  const r = e.source.body;
29036
29041
  let i = t, s = n, o = !1;
29037
29042
  if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
29038
- if (s = r.charCodeAt(++i), Go(s))
29043
+ if (s = r.charCodeAt(++i), Wo(s))
29039
29044
  throw kt(
29040
29045
  e.source,
29041
29046
  i,
@@ -29064,7 +29069,7 @@ function mv(e, t, n) {
29064
29069
  );
29065
29070
  }
29066
29071
  function Mf(e, t, n) {
29067
- if (!Go(n))
29072
+ if (!Wo(n))
29068
29073
  throw kt(
29069
29074
  e.source,
29070
29075
  t,
@@ -29075,7 +29080,7 @@ function Mf(e, t, n) {
29075
29080
  );
29076
29081
  const r = e.source.body;
29077
29082
  let i = t + 1;
29078
- for (; Go(r.charCodeAt(i)); )
29083
+ for (; Wo(r.charCodeAt(i)); )
29079
29084
  ++i;
29080
29085
  return i;
29081
29086
  }
@@ -29094,7 +29099,7 @@ function wv(e, t) {
29094
29099
  }
29095
29100
  if (c === 10 || c === 13)
29096
29101
  break;
29097
- if (Ys(c))
29102
+ if (Zs(c))
29098
29103
  ++i;
29099
29104
  else if (xu(n, i))
29100
29105
  i += 2;
@@ -29116,14 +29121,14 @@ function bv(e, t) {
29116
29121
  for (; i < 12; ) {
29117
29122
  const s = n.charCodeAt(t + i++);
29118
29123
  if (s === 125) {
29119
- if (i < 5 || !Ys(r))
29124
+ if (i < 5 || !Zs(r))
29120
29125
  break;
29121
29126
  return {
29122
29127
  value: String.fromCodePoint(r),
29123
29128
  size: i
29124
29129
  };
29125
29130
  }
29126
- if (r = r << 4 | So(s), r < 0)
29131
+ if (r = r << 4 | To(s), r < 0)
29127
29132
  break;
29128
29133
  }
29129
29134
  throw kt(
@@ -29137,7 +29142,7 @@ function bv(e, t) {
29137
29142
  }
29138
29143
  function Ev(e, t) {
29139
29144
  const n = e.source.body, r = Ay(n, t + 2);
29140
- if (Ys(r))
29145
+ if (Zs(r))
29141
29146
  return {
29142
29147
  value: String.fromCodePoint(r),
29143
29148
  size: 6
@@ -29157,9 +29162,9 @@ function Ev(e, t) {
29157
29162
  );
29158
29163
  }
29159
29164
  function Ay(e, t) {
29160
- return So(e.charCodeAt(t)) << 12 | So(e.charCodeAt(t + 1)) << 8 | So(e.charCodeAt(t + 2)) << 4 | So(e.charCodeAt(t + 3));
29165
+ return To(e.charCodeAt(t)) << 12 | To(e.charCodeAt(t + 1)) << 8 | To(e.charCodeAt(t + 2)) << 4 | To(e.charCodeAt(t + 3));
29161
29166
  }
29162
- function So(e) {
29167
+ function To(e) {
29163
29168
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
29164
29169
  }
29165
29170
  function _v(e, t) {
@@ -29243,7 +29248,7 @@ function Sv(e, t) {
29243
29248
  c += n.slice(o, s), a.push(c), u === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, c = "", o = s, i = s;
29244
29249
  continue;
29245
29250
  }
29246
- if (Ys(u))
29251
+ if (Zs(u))
29247
29252
  ++s;
29248
29253
  else if (xu(n, s))
29249
29254
  s += 2;
@@ -29504,7 +29509,7 @@ class Uv {
29504
29509
  if (this.peek(ee.BRACE_L))
29505
29510
  return this.node(t, {
29506
29511
  kind: Se.OPERATION_DEFINITION,
29507
- operation: Es.QUERY,
29512
+ operation: _s.QUERY,
29508
29513
  name: void 0,
29509
29514
  variableDefinitions: [],
29510
29515
  directives: [],
@@ -29528,11 +29533,11 @@ class Uv {
29528
29533
  const t = this.expectToken(ee.NAME);
29529
29534
  switch (t.value) {
29530
29535
  case "query":
29531
- return Es.QUERY;
29536
+ return _s.QUERY;
29532
29537
  case "mutation":
29533
- return Es.MUTATION;
29538
+ return _s.MUTATION;
29534
29539
  case "subscription":
29535
- return Es.SUBSCRIPTION;
29540
+ return _s.SUBSCRIPTION;
29536
29541
  }
29537
29542
  throw this.unexpected(t);
29538
29543
  }
@@ -31087,7 +31092,7 @@ ${String(e)}`);
31087
31092
  }
31088
31093
  }, r = await Yv(t.method)(t);
31089
31094
  if (!r.ok)
31090
- return new Ns({ status: r.status, headers: r.headers }, {
31095
+ return new ks({ status: r.status, headers: r.headers }, {
31091
31096
  query: e.request._tag === "Single" ? e.request.document.expression : e.request.query,
31092
31097
  variables: e.request.variables
31093
31098
  });
@@ -31103,7 +31108,7 @@ ${String(e)}`);
31103
31108
  ...i.executionResult,
31104
31109
  ...s
31105
31110
  };
31106
- return new Ns(o, {
31111
+ return new ks(o, {
31107
31112
  query: e.request._tag === "Single" ? e.request.document.expression : e.request.query,
31108
31113
  variables: e.request.variables
31109
31114
  });
@@ -31199,8 +31204,8 @@ class Qv {
31199
31204
  variables: s.variables
31200
31205
  },
31201
31206
  headers: {
31202
- ...ps(Ff(o)),
31203
- ...ps(s.requestHeaders)
31207
+ ...ys(Ff(o)),
31208
+ ...ys(s.requestHeaders)
31204
31209
  },
31205
31210
  fetch: c,
31206
31211
  method: a,
@@ -31226,8 +31231,8 @@ class Qv {
31226
31231
  variables: s.variables
31227
31232
  },
31228
31233
  headers: {
31229
- ...ps(Ff(o)),
31230
- ...ps(s.requestHeaders)
31234
+ ...ys(Ff(o)),
31235
+ ...ys(s.requestHeaders)
31231
31236
  },
31232
31237
  fetch: c,
31233
31238
  method: a,
@@ -31255,8 +31260,8 @@ class Qv {
31255
31260
  variables: f
31256
31261
  },
31257
31262
  headers: {
31258
- ...ps(Ff(i)),
31259
- ...ps(r.requestHeaders)
31263
+ ...ys(Ff(i)),
31264
+ ...ys(r.requestHeaders)
31260
31265
  },
31261
31266
  fetch: this.requestConfig.fetch ?? globalThis.fetch,
31262
31267
  method: this.requestConfig.method || "POST",
@@ -31301,7 +31306,7 @@ const e6 = (e, t, n) => e.document ? e : {
31301
31306
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
31302
31307
  * MIT Licence
31303
31308
  */
31304
- var _s = 9e15, wi = 1e9, Sl = "0123456789abcdef", La = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Va = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", Tl = {
31309
+ var Ss = 9e15, wi = 1e9, Sl = "0123456789abcdef", La = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Va = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", Tl = {
31305
31310
  // These values must be integers within the stated ranges (inclusive).
31306
31311
  // Most of these values can be changed at run-time using the `Decimal.config` method.
31307
31312
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -31350,11 +31355,11 @@ var _s = 9e15, wi = 1e9, Sl = "0123456789abcdef", La = "2.3025850929940456840179
31350
31355
  // 0 to EXP_LIMIT
31351
31356
  // The minimum exponent value, beneath which underflow to zero occurs.
31352
31357
  // JavaScript numbers: -324 (5e-324)
31353
- minE: -_s,
31358
+ minE: -Ss,
31354
31359
  // -1 to -EXP_LIMIT
31355
31360
  // The maximum exponent value, above which overflow to Infinity occurs.
31356
31361
  // JavaScript numbers: 308 (1.7976931348623157e+308)
31357
- maxE: _s,
31362
+ maxE: Ss,
31358
31363
  // 1 to EXP_LIMIT
31359
31364
  // Whether to use cryptographically-secure random number generation, if available.
31360
31365
  crypto: !1
@@ -31437,7 +31442,7 @@ se.hyperbolicCosine = se.cosh = function() {
31437
31442
  var e, t, n, r, i, s = this, o = s.constructor, c = new o(1);
31438
31443
  if (!s.isFinite()) return new o(s.s ? 1 / 0 : NaN);
31439
31444
  if (s.isZero()) return c;
31440
- n = o.precision, r = o.rounding, o.precision = n + Math.max(s.e, s.sd()) + 4, o.rounding = 1, i = s.d.length, i < 32 ? (e = Math.ceil(i / 3), t = (1 / Ou(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), s = qs(o, 1, s.times(t), new o(1), !0);
31445
+ n = o.precision, r = o.rounding, o.precision = n + Math.max(s.e, s.sd()) + 4, o.rounding = 1, i = s.d.length, i < 32 ? (e = Math.ceil(i / 3), t = (1 / Ou(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), s = Ls(o, 1, s.times(t), new o(1), !0);
31441
31446
  for (var a, u = e, f = new o(8); u--; )
31442
31447
  a = s.times(s), s = c.minus(a.times(f.minus(a.times(f))));
31443
31448
  return be(s, o.precision = n, o.rounding = r, !0);
@@ -31446,9 +31451,9 @@ se.hyperbolicSine = se.sinh = function() {
31446
31451
  var e, t, n, r, i = this, s = i.constructor;
31447
31452
  if (!i.isFinite() || i.isZero()) return new s(i);
31448
31453
  if (t = s.precision, n = s.rounding, s.precision = t + Math.max(i.e, i.sd()) + 4, s.rounding = 1, r = i.d.length, r < 3)
31449
- i = qs(s, 2, i, i, !0);
31454
+ i = Ls(s, 2, i, i, !0);
31450
31455
  else {
31451
- e = 1.4 * Math.sqrt(r), e = e > 16 ? 16 : e | 0, i = i.times(1 / Ou(5, e)), i = qs(s, 2, i, i, !0);
31456
+ e = 1.4 * Math.sqrt(r), e = e > 16 ? 16 : e | 0, i = i.times(1 / Ou(5, e)), i = Ls(s, 2, i, i, !0);
31452
31457
  for (var o, c = new s(5), a = new s(16), u = new s(20); e--; )
31453
31458
  o = i.times(i), i = i.times(c.plus(o.times(a.times(o).plus(u))));
31454
31459
  }
@@ -31536,13 +31541,13 @@ se.logarithm = se.log = function(e) {
31536
31541
  for (i = n[0]; i % 10 === 0; ) i /= 10;
31537
31542
  s = i !== 1;
31538
31543
  }
31539
- if (ve = !1, c = l + y, o = ai(u, c), r = t ? $a(f, c + 10) : ai(e, c), a = Ze(o, r, c, 1), Wo(a.d, i = l, d))
31544
+ if (ve = !1, c = l + y, o = ai(u, c), r = t ? $a(f, c + 10) : ai(e, c), a = Ze(o, r, c, 1), Xo(a.d, i = l, d))
31540
31545
  do
31541
31546
  if (c += 10, o = ai(u, c), r = t ? $a(f, c + 10) : ai(e, c), a = Ze(o, r, c, 1), !s) {
31542
31547
  +Ft(a.d).slice(i + 1, i + 15) + 1 == 1e14 && (a = be(a, l + 1, 0));
31543
31548
  break;
31544
31549
  }
31545
- while (Wo(a.d, i += 10, d));
31550
+ while (Xo(a.d, i += 10, d));
31546
31551
  return ve = !0, be(a, l, d);
31547
31552
  };
31548
31553
  se.minus = se.sub = function(e) {
@@ -31720,7 +31725,7 @@ se.toPower = se.pow = function(e) {
31720
31725
  if ((e.d[t] & 1) == 0 && (o = 1), c.e == 0 && c.d[0] == 1 && c.d.length == 1)
31721
31726
  return c.s = o, c;
31722
31727
  }
31723
- return n = At(+c, u), t = n == 0 || !isFinite(n) ? Xt(u * (Math.log("0." + Ft(c.d)) / Math.LN10 + c.e + 1)) : new a(n + "").e, t > a.maxE + 1 || t < a.minE - 1 ? new a(t > 0 ? o / 0 : 0) : (ve = !1, a.rounding = c.s = 1, n = Math.min(12, (t + "").length), i = Al(e.times(ai(c, r + n)), r), i.d && (i = be(i, r + 5, 1), Wo(i.d, r, s) && (t = r + 10, i = be(Al(e.times(ai(c, t + n)), t), t + 5, 1), +Ft(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = be(i, r + 1, 0)))), i.s = o, ve = !0, a.rounding = s, be(i, r, s));
31728
+ return n = At(+c, u), t = n == 0 || !isFinite(n) ? Xt(u * (Math.log("0." + Ft(c.d)) / Math.LN10 + c.e + 1)) : new a(n + "").e, t > a.maxE + 1 || t < a.minE - 1 ? new a(t > 0 ? o / 0 : 0) : (ve = !1, a.rounding = c.s = 1, n = Math.min(12, (t + "").length), i = Al(e.times(ai(c, r + n)), r), i.d && (i = be(i, r + 5, 1), Xo(i.d, r, s) && (t = r + 10, i = be(Al(e.times(ai(c, t + n)), t), t + 5, 1), +Ft(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = be(i, r + 1, 0)))), i.s = o, ve = !0, a.rounding = s, be(i, r, s));
31724
31729
  };
31725
31730
  se.toPrecision = function(e, t) {
31726
31731
  var n, r = this, i = r.constructor;
@@ -31756,7 +31761,7 @@ function gn(e, t, n) {
31756
31761
  if (e !== ~~e || e < t || e > n)
31757
31762
  throw Error(pi + e);
31758
31763
  }
31759
- function Wo(e, t, n, r) {
31764
+ function Xo(e, t, n, r) {
31760
31765
  var i, s, o, c;
31761
31766
  for (s = e[0]; s >= 10; s /= 10) --t;
31762
31767
  return --t < 0 ? (t += _e, i = 0) : (i = Math.ceil((t + 1) / _e), t %= _e), s = At(10, _e - t), c = e[i] % s | 0, r == null ? t < 3 ? (t == 0 ? c = c / 100 | 0 : t == 1 && (c = c / 10 | 0), o = n < 4 && c == 99999 || n > 3 && c == 49999 || c == 5e4 || c == 0) : o = (n < 4 && c + 1 == s || n > 3 && c + 1 == s / 2) && (e[i + 1] / s / 100 | 0) == At(10, t - 2) - 1 || (c == s / 2 || c == 0) && (e[i + 1] / s / 100 | 0) == 0 : t < 4 ? (t == 0 ? c = c / 1e3 | 0 : t == 1 ? c = c / 100 | 0 : t == 2 && (c = c / 10 | 0), o = (r || n < 4) && c == 9999 || !r && n > 3 && c == 4999) : o = ((r || n < 4) && c + 1 == s || !r && n > 3 && c + 1 == s / 2) && (e[i + 1] / s / 1e3 | 0) == At(10, t - 3) - 1, o;
@@ -31772,7 +31777,7 @@ function ua(e, t, n) {
31772
31777
  function c6(e, t) {
31773
31778
  var n, r, i;
31774
31779
  if (t.isZero()) return t;
31775
- r = t.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / Ou(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), e.precision += n, t = qs(e, 1, t.times(i), new e(1));
31780
+ r = t.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / Ou(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), e.precision += n, t = Ls(e, 1, t.times(i), new e(1));
31776
31781
  for (var s = n; s--; ) {
31777
31782
  var o = t.times(t);
31778
31783
  t = o.times(o).minus(o).times(8).plus(1);
@@ -31940,7 +31945,7 @@ function Al(e, t) {
31940
31945
  if (s = be(s.times(e), a, 1), n = n.times(++f), c = o.plus(Ze(s, n, a, 1)), Ft(c.d).slice(0, a) === Ft(o.d).slice(0, a)) {
31941
31946
  for (i = l; i--; ) o = be(o.times(o), a, 1);
31942
31947
  if (t == null)
31943
- if (u < 3 && Wo(o.d, a - r, y, u))
31948
+ if (u < 3 && Xo(o.d, a - r, y, u))
31944
31949
  d.precision = a += 10, n = s = c = new d(1), f = 0, u++;
31945
31950
  else
31946
31951
  return be(o, d.precision = g, y, ve = !0);
@@ -31963,7 +31968,7 @@ function ai(e, t) {
31963
31968
  for (l = m, a = o = m = Ze(m.minus(1), m.plus(1), f, 1), d = be(m.times(m), f, 1), i = 3; ; ) {
31964
31969
  if (o = be(o.times(d), f, 1), u = a.plus(Ze(o, new _(i), f, 1)), Ft(u.d).slice(0, f) === Ft(a.d).slice(0, f))
31965
31970
  if (a = a.times(2), s !== 0 && (a = a.plus($a(_, f + 2, w).times(s + ""))), a = Ze(a, new _(y), f, 1), t == null)
31966
- if (Wo(a.d, f - g, S, c))
31971
+ if (Xo(a.d, f - g, S, c))
31967
31972
  _.precision = f += g, u = o = m = Ze(l.minus(1), l.plus(1), f, 1), d = be(m.times(m), f, 1), i = c = 1;
31968
31973
  else
31969
31974
  return be(a, _.precision = w, S, ve = !0);
@@ -32011,13 +32016,13 @@ function a6(e, t) {
32011
32016
  function u6(e, t) {
32012
32017
  var n, r = t.d.length;
32013
32018
  if (r < 3)
32014
- return t.isZero() ? t : qs(e, 2, t, t);
32015
- n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, t = t.times(1 / Ou(5, n)), t = qs(e, 2, t, t);
32019
+ return t.isZero() ? t : Ls(e, 2, t, t);
32020
+ n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, t = t.times(1 / Ou(5, n)), t = Ls(e, 2, t, t);
32016
32021
  for (var i, s = new e(5), o = new e(16), c = new e(20); n--; )
32017
32022
  i = t.times(t), t = t.times(s.plus(i.times(o.times(i).minus(c))));
32018
32023
  return t;
32019
32024
  }
32020
- function qs(e, t, n, r, i) {
32025
+ function Ls(e, t, n, r, i) {
32021
32026
  var s, o, c, a, u = e.precision, f = Math.ceil(u / _e);
32022
32027
  for (ve = !1, a = n.times(n), c = new e(r); ; ) {
32023
32028
  if (o = Ze(c.times(a), new e(t++ * t++), u, 1), c = i ? r.plus(o) : r.minus(o), r = Ze(o.times(a), new e(t++ * t++), u, 1), o = c.plus(r), o.d[f] !== void 0) {
@@ -32130,16 +32135,16 @@ function S6(e) {
32130
32135
  0,
32131
32136
  8,
32132
32137
  "toExpNeg",
32133
- -_s,
32138
+ -Ss,
32134
32139
  0,
32135
32140
  "toExpPos",
32136
32141
  0,
32137
- _s,
32142
+ Ss,
32138
32143
  "maxE",
32139
32144
  0,
32140
- _s,
32145
+ Ss,
32141
32146
  "minE",
32142
- -_s,
32147
+ -Ss,
32143
32148
  0,
32144
32149
  "modulo",
32145
32150
  0,
@@ -32694,7 +32699,7 @@ class Y6 {
32694
32699
  */
32695
32700
  constructor(t) {
32696
32701
  this.config = t;
32697
- const n = t.network === ko.Testnet, r = n ? "https://xbt-testnet.gomaestro-api.org/v0" : "https://xbt-mainnet.gomaestro-api.org/v0";
32702
+ const n = t.network === Po.Testnet, r = n ? "https://xbt-testnet.gomaestro-api.org/v0" : "https://xbt-mainnet.gomaestro-api.org/v0";
32698
32703
  this.maestro = new ax({
32699
32704
  baseUrl: r,
32700
32705
  apiKey: t.maestroApiKey
@@ -32795,7 +32800,7 @@ class Y6 {
32795
32800
  let r = null;
32796
32801
  const i = [], s = await this.getPendingBtcUtxos(t);
32797
32802
  do {
32798
- const c = await this.maestro.utxosByAddress(
32803
+ const c = await this.maestro.utxosByAddressMempoolAware(
32799
32804
  t,
32800
32805
  r,
32801
32806
  n
@@ -32862,7 +32867,7 @@ class Y6 {
32862
32867
  * @returns Array of matching rune information
32863
32868
  */
32864
32869
  async searchRunes(t) {
32865
- const n = this.config.network === ko.Testnet ? XA : WA, r = t6`
32870
+ const n = this.config.network === Po.Testnet ? XA : WA, r = t6`
32866
32871
  query GetRunes($keyword: String!, $regex: String!) {
32867
32872
  runes(
32868
32873
  where: {
@@ -33299,7 +33304,7 @@ function NI(e = {}) {
33299
33304
  };
33300
33305
  }
33301
33306
  export {
33302
- ko as Network,
33307
+ Po as Network,
33303
33308
  Y6 as ReeClient,
33304
33309
  _I as ReeProvider,
33305
33310
  Ri as Transaction,