@antigane/wallet-adapters 0.1.0 → 0.1.1

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.
package/dist/index.js CHANGED
@@ -304,7 +304,7 @@ function Mm(t, e) {
304
304
  const n = t.indexOf(e);
305
305
  n > -1 && t.splice(n, 1);
306
306
  }
307
- const as = (t, e, n) => n > e ? e : n < t ? t : n;
307
+ const cs = (t, e, n) => n > e ? e : n < t ? t : n;
308
308
  function z0(t, e) {
309
309
  return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
310
310
  }
@@ -356,7 +356,7 @@ class Dm {
356
356
  this.subscriptions.length = 0;
357
357
  }
358
358
  }
359
- const ts = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, vi = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
359
+ const ns = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, vi = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
360
360
  function SS(t, e) {
361
361
  return e ? t * (1e3 / e) : 0;
362
362
  }
@@ -495,7 +495,7 @@ const Lc = {
495
495
  transform: (t) => t
496
496
  }, $l = {
497
497
  ...Lc,
498
- transform: (t) => as(0, 1, t)
498
+ transform: (t) => cs(0, 1, t)
499
499
  }, $u = {
500
500
  ...Lc,
501
501
  default: 1
@@ -513,7 +513,7 @@ const FO = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
513
513
  [n]: parseFloat(o),
514
514
  alpha: a !== void 0 ? parseFloat(a) : 1
515
515
  };
516
- }, KO = (t) => as(0, 255, t), Vh = {
516
+ }, KO = (t) => cs(0, 255, t), Vh = {
517
517
  ...Lc,
518
518
  transform: (t) => Math.round(KO(t))
519
519
  }, Jo = {
@@ -538,14 +538,14 @@ const q0 = {
538
538
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
539
539
  parse: parseFloat,
540
540
  transform: (e) => `${e}${t}`
541
- }), ao = /* @__PURE__ */ hu("deg"), ns = /* @__PURE__ */ hu("%"), rt = /* @__PURE__ */ hu("px"), VO = /* @__PURE__ */ hu("vh"), HO = /* @__PURE__ */ hu("vw"), Vw = {
542
- ...ns,
543
- parse: (t) => ns.parse(t) / 100,
544
- transform: (t) => ns.transform(t * 100)
541
+ }), ao = /* @__PURE__ */ hu("deg"), rs = /* @__PURE__ */ hu("%"), rt = /* @__PURE__ */ hu("px"), VO = /* @__PURE__ */ hu("vh"), HO = /* @__PURE__ */ hu("vw"), Vw = {
542
+ ...rs,
543
+ parse: (t) => rs.parse(t) / 100,
544
+ transform: (t) => rs.transform(t * 100)
545
545
  }, za = {
546
546
  test: /* @__PURE__ */ jm("hsl", "hue"),
547
547
  parse: /* @__PURE__ */ LS("hue", "saturation", "lightness"),
548
- transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + ns.transform(Al(e)) + ", " + ns.transform(Al(n)) + ", " + Al($l.transform(r)) + ")"
548
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + rs.transform(Al(e)) + ", " + rs.transform(Al(n)) + ", " + Al($l.transform(r)) + ")"
549
549
  }, Ln = {
550
550
  test: (t) => Jo.test(t) || q0.test(t) || za.test(t),
551
551
  parse: (t) => Jo.test(t) ? Jo.parse(t) : za.test(t) ? za.parse(t) : q0.parse(t),
@@ -747,9 +747,9 @@ const mn = {
747
747
  }, qh = 1e-3;
748
748
  function l3({ duration: t = mn.duration, bounce: e = mn.bounce, velocity: n = mn.velocity, mass: r = mn.mass }) {
749
749
  let i, s;
750
- Dc(t <= /* @__PURE__ */ ts(mn.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
750
+ Dc(t <= /* @__PURE__ */ ns(mn.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
751
751
  let o = 1 - e;
752
- o = as(mn.minDamping, mn.maxDamping, o), t = as(mn.minDuration, mn.maxDuration, /* @__PURE__ */ vi(t)), o < 1 ? (i = (l) => {
752
+ o = cs(mn.minDamping, mn.maxDamping, o), t = cs(mn.minDuration, mn.maxDuration, /* @__PURE__ */ vi(t)), o < 1 ? (i = (l) => {
753
753
  const u = l * o, d = u * t, f = u - n, g = G0(l, o), y = Math.exp(-d);
754
754
  return qh - f / g * y;
755
755
  }, s = (l) => {
@@ -763,7 +763,7 @@ function l3({ duration: t = mn.duration, bounce: e = mn.bounce, velocity: n = mn
763
763
  return u * d;
764
764
  });
765
765
  const a = 5 / t, c = d3(i, s, a);
766
- if (t = /* @__PURE__ */ ts(t), isNaN(c))
766
+ if (t = /* @__PURE__ */ ns(t), isNaN(c))
767
767
  return {
768
768
  stiffness: mn.stiffness,
769
769
  damping: mn.damping,
@@ -803,7 +803,7 @@ function p3(t) {
803
803
  };
804
804
  if (!Ww(t, h3) && Ww(t, f3))
805
805
  if (t.visualDuration) {
806
- const n = t.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * as(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
806
+ const n = t.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * cs(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
807
807
  e = {
808
808
  ...e,
809
809
  mass: mn.mass,
@@ -856,7 +856,7 @@ function cf(t = mn.visualDuration, e = mn.bounce) {
856
856
  a.done = B >= d;
857
857
  else {
858
858
  let X = B === 0 ? y : 0;
859
- w < 1 && (X = B === 0 ? /* @__PURE__ */ ts(y) : zS(S, B, z));
859
+ w < 1 && (X = B === 0 ? /* @__PURE__ */ ns(y) : zS(S, B, z));
860
860
  const Y = Math.abs(X) <= r, U = Math.abs(o - z) <= i;
861
861
  a.done = Y && U;
862
862
  }
@@ -873,7 +873,7 @@ function cf(t = mn.visualDuration, e = mn.bounce) {
873
873
  }
874
874
  cf.applyToOptions = (t) => {
875
875
  const e = a3(t, 100, cf);
876
- return t.ease = e.ease, t.duration = /* @__PURE__ */ ts(e.duration), t.type = "keyframes", t;
876
+ return t.ease = e.ease, t.duration = /* @__PURE__ */ ns(e.duration), t.type = "keyframes", t;
877
877
  };
878
878
  function Y0({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: s = 500, modifyTarget: o, min: a, max: c, restDelta: l = 0.5, restSpeed: u }) {
879
879
  const d = t[0], f = {
@@ -937,7 +937,7 @@ function m3(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
937
937
  const f = /* @__PURE__ */ Ul(t[d], t[d + 1], u);
938
938
  return a[d](f);
939
939
  };
940
- return n ? (u) => l(as(t[0], t[s - 1], u)) : l;
940
+ return n ? (u) => l(cs(t[0], t[s - 1], u)) : l;
941
941
  }
942
942
  function y3(t, e) {
943
943
  const n = t[t.length - 1];
@@ -1052,7 +1052,7 @@ class Wm extends qm {
1052
1052
  if (d) {
1053
1053
  const Y = Math.min(this.currentTime, i) / a;
1054
1054
  let U = Math.floor(Y), L = Y % 1;
1055
- !L && Y >= 1 && (L = 1), L === 1 && U--, U = Math.min(U, d + 1), U % 2 && (f === "reverse" ? (L = 1 - L, g && (L -= g / a)) : f === "mirror" && (F = o)), S = as(0, 1, L) * a;
1055
+ !L && Y >= 1 && (L = 1), L === 1 && U--, U = Math.min(U, d + 1), U % 2 && (f === "reverse" ? (L = 1 - L, g && (L -= g / a)) : f === "mirror" && (F = o)), S = cs(0, 1, L) * a;
1056
1056
  }
1057
1057
  const B = k ? { done: !1, value: u[0] } : F.next(S);
1058
1058
  s && (B.value = s(B.value));
@@ -1080,7 +1080,7 @@ class Wm extends qm {
1080
1080
  return /* @__PURE__ */ vi(this.currentTime);
1081
1081
  }
1082
1082
  set time(e) {
1083
- e = /* @__PURE__ */ ts(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
1083
+ e = /* @__PURE__ */ ns(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
1084
1084
  }
1085
1085
  get speed() {
1086
1086
  return this.playbackSpeed;
@@ -1412,7 +1412,7 @@ class F3 extends qm {
1412
1412
  return /* @__PURE__ */ vi(Number(this.animation.currentTime) || 0);
1413
1413
  }
1414
1414
  set time(e) {
1415
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ ts(e);
1415
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ ns(e);
1416
1416
  }
1417
1417
  /**
1418
1418
  * The playback speed of the animation.
@@ -1475,7 +1475,7 @@ class V3 extends F3 {
1475
1475
  const a = new Wm({
1476
1476
  ...o,
1477
1477
  autoplay: !1
1478
- }), c = Math.max(Wh, Nr.now() - this.startTime), l = as(0, Wh, c - Wh);
1478
+ }), c = Math.max(Wh, Nr.now() - this.startTime), l = cs(0, Wh, c - Wh);
1479
1479
  n.setWithVelocity(a.sample(Math.max(0, c - l)).value, a.sample(c).value, l), a.stop();
1480
1480
  }
1481
1481
  }
@@ -1644,7 +1644,7 @@ const ex = /* @__PURE__ */ new Set([
1644
1644
  ]), eP = {
1645
1645
  test: (t) => t === "auto",
1646
1646
  parse: (t) => t
1647
- }, tx = (t) => (e) => e.test(t), nx = [Lc, rt, ns, ao, HO, VO, eP], ev = (t) => nx.find(tx(t));
1647
+ }, tx = (t) => (e) => e.test(t), nx = [Lc, rt, rs, ao, HO, VO, eP], ev = (t) => nx.find(tx(t));
1648
1648
  function tP(t) {
1649
1649
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || _S(t) : !0;
1650
1650
  }
@@ -3391,7 +3391,7 @@ function PN({ when: t, delay: e, delayChildren: n, staggerChildren: r, staggerDi
3391
3391
  const cy = (t, e, n, r = {}, i, s) => (o) => {
3392
3392
  const a = Ym(r, t) || {}, c = a.delay || r.delay || 0;
3393
3393
  let { elapsed: l = 0 } = r;
3394
- l = l - /* @__PURE__ */ ts(c);
3394
+ l = l - /* @__PURE__ */ ns(c);
3395
3395
  const u = {
3396
3396
  keyframes: Array.isArray(n) ? n : [null, n],
3397
3397
  ease: "easeOut",
@@ -3408,7 +3408,7 @@ const cy = (t, e, n, r = {}, i, s) => (o) => {
3408
3408
  motionValue: e,
3409
3409
  element: s ? void 0 : i
3410
3410
  };
3411
- PN(a) || Object.assign(u, ON(t, u)), u.duration && (u.duration = /* @__PURE__ */ ts(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ ts(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
3411
+ PN(a) || Object.assign(u, ON(t, u)), u.duration && (u.duration = /* @__PURE__ */ ns(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ ns(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
3412
3412
  let d = !1;
3413
3413
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (rg(u), u.delay === 0 && (d = !0)), (Ks.instantAnimations || Ks.skipAnimations) && (d = !0, rg(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !s && e.get() !== void 0) {
3414
3414
  const f = AN(u.keyframes, a);
@@ -3870,7 +3870,7 @@ function e6(t, e) {
3870
3870
  return { x: 0, y: 0 };
3871
3871
  let n = t.length - 1, r = null;
3872
3872
  const i = Vx(t);
3873
- for (; n >= 0 && (r = t[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ ts(e))); )
3873
+ for (; n >= 0 && (r = t[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ ns(e))); )
3874
3874
  n--;
3875
3875
  if (!r)
3876
3876
  return { x: 0, y: 0 };
@@ -3911,7 +3911,7 @@ function r6(t, e) {
3911
3911
  function i6(t, e) {
3912
3912
  let n = 0.5;
3913
3913
  const r = kr(t), i = kr(e);
3914
- return i > r ? n = /* @__PURE__ */ Ul(e.min, e.max - r, t.min) : r > i && (n = /* @__PURE__ */ Ul(t.min, t.max - i, e.min)), as(0, 1, n);
3914
+ return i > r ? n = /* @__PURE__ */ Ul(e.min, e.max - r, t.min) : r > i && (n = /* @__PURE__ */ Ul(t.min, t.max - i, e.min)), cs(0, 1, n);
3915
3915
  }
3916
3916
  function s6(t, e) {
3917
3917
  const n = {};
@@ -3951,7 +3951,7 @@ class c6 {
3951
3951
  return;
3952
3952
  this.latestPointerEvent = d, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), di((b) => {
3953
3953
  let k = this.getAxisMotionValue(b).get() || 0;
3954
- if (ns.test(k)) {
3954
+ if (rs.test(k)) {
3955
3955
  const { projection: S } = this.visualElement;
3956
3956
  if (S && S.layout) {
3957
3957
  const F = S.layout.layoutBox[b];
@@ -4310,7 +4310,7 @@ function w6(t, e, n, r, i, s) {
4310
4310
  let c = Mv(e, a), l = Mv(n, a);
4311
4311
  if (c === void 0 && l === void 0)
4312
4312
  continue;
4313
- c || (c = 0), l || (l = 0), c === 0 || l === 0 || kv(c) === kv(l) ? (t[a] = Math.max(vn(Nv(c), Nv(l), r), 0), (ns.test(l) || ns.test(c)) && (t[a] += "%")) : t[a] = l;
4313
+ c || (c = 0), l || (l = 0), c === 0 || l === 0 || kv(c) === kv(l) ? (t[a] = Math.max(vn(Nv(c), Nv(l), r), 0), (rs.test(l) || rs.test(c)) && (t[a] += "%")) : t[a] = l;
4314
4314
  }
4315
4315
  (e.rotate || n.rotate) && (t.rotate = vn(e.rotate || 0, n.rotate || 0, r));
4316
4316
  }
@@ -4334,7 +4334,7 @@ function Lv(t, e, n, r, i) {
4334
4334
  return t -= e, t = uf(t, 1 / n, r), i !== void 0 && (t = uf(t, 1 / i, r)), t;
4335
4335
  }
4336
4336
  function E6(t, e = 0, n = 1, r = 0.5, i, s = t, o = t) {
4337
- if (ns.test(e) && (e = parseFloat(e), e = vn(o.min, o.max, e / 100) - o.min), typeof e != "number")
4337
+ if (rs.test(e) && (e = parseFloat(e), e = vn(o.min, o.max, e / 100) - o.min), typeof e != "number")
4338
4338
  return;
4339
4339
  let a = vn(s.min, s.max, r);
4340
4340
  t === s && (a -= e), t.min = Lv(t.min, e, n, a, i), t.max = Lv(t.max, e, n, a, i);
@@ -4568,7 +4568,7 @@ function Jx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4568
4568
  }
4569
4569
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(M6), this.nodes.forEach(C6), this.nodes.forEach(O6)) : this.nodes.forEach(qv), this.clearAllSnapshots();
4570
4570
  const a = Nr.now();
4571
- er.delta = as(0, 1e3 / 60, a - er.timestamp), er.timestamp = a, er.isProcessing = !0, jh.update.process(er), jh.preRender.process(er), jh.render.process(er), er.isProcessing = !1;
4571
+ er.delta = cs(0, 1e3 / 60, a - er.timestamp), er.timestamp = a, er.isProcessing = !0, jh.update.process(er), jh.preRender.process(er), jh.render.process(er), er.isProcessing = !1;
4572
4572
  }
4573
4573
  didUpdate() {
4574
4574
  this.updateScheduled || (this.updateScheduled = !0, Zm.read(this.scheduleUpdate));
@@ -7161,7 +7161,7 @@ function pr(t, e, n, r, i, s, o) {
7161
7161
  return uh(n ^ (e | ~r), t, e, i, s, o);
7162
7162
  }
7163
7163
  var Rk = rA("v3", 48, Ek);
7164
- function Rs(t, e, n) {
7164
+ function Is(t, e, n) {
7165
7165
  t = t || {};
7166
7166
  var r = t.random || (t.rng || tA)();
7167
7167
  if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
@@ -7229,23 +7229,23 @@ const Nk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7229
7229
  stringify: lh,
7230
7230
  v1: yk,
7231
7231
  v3: Rk,
7232
- v4: Rs,
7232
+ v4: Is,
7233
7233
  v5: Ck,
7234
7234
  validate: bc,
7235
7235
  version: Pk
7236
- }, Symbol.toStringTag, { value: "Module" })), cs = /* @__PURE__ */ Object.create(null);
7237
- cs.open = "0";
7238
- cs.close = "1";
7239
- cs.ping = "2";
7240
- cs.pong = "3";
7241
- cs.message = "4";
7242
- cs.upgrade = "5";
7243
- cs.noop = "6";
7236
+ }, Symbol.toStringTag, { value: "Module" })), ls = /* @__PURE__ */ Object.create(null);
7237
+ ls.open = "0";
7238
+ ls.close = "1";
7239
+ ls.ping = "2";
7240
+ ls.pong = "3";
7241
+ ls.message = "4";
7242
+ ls.upgrade = "5";
7243
+ ls.noop = "6";
7244
7244
  const Nd = /* @__PURE__ */ Object.create(null);
7245
- Object.keys(cs).forEach((t) => {
7246
- Nd[cs[t]] = t;
7245
+ Object.keys(ls).forEach((t) => {
7246
+ Nd[ls[t]] = t;
7247
7247
  });
7248
- const pg = { type: "error", data: "parser error" }, sA = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", oA = typeof ArrayBuffer == "function", aA = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t && t.buffer instanceof ArrayBuffer, ly = ({ type: t, data: e }, n, r) => sA && e instanceof Blob ? n ? r(e) : ub(e, r) : oA && (e instanceof ArrayBuffer || aA(e)) ? n ? r(e) : ub(new Blob([e]), r) : r(cs[t] + (e || "")), ub = (t, e) => {
7248
+ const pg = { type: "error", data: "parser error" }, sA = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", oA = typeof ArrayBuffer == "function", aA = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t && t.buffer instanceof ArrayBuffer, ly = ({ type: t, data: e }, n, r) => sA && e instanceof Blob ? n ? r(e) : ub(e, r) : oA && (e instanceof ArrayBuffer || aA(e)) ? n ? r(e) : ub(new Blob([e]), r) : r(ls[t] + (e || "")), ub = (t, e) => {
7249
7249
  const n = new FileReader();
7250
7250
  return n.onload = function() {
7251
7251
  const r = n.result.split(",")[1];
@@ -7719,7 +7719,7 @@ class e5 extends Zk {
7719
7719
  }), this.pollXhr = e;
7720
7720
  }
7721
7721
  }
7722
- class rs extends Fn {
7722
+ class is extends Fn {
7723
7723
  /**
7724
7724
  * Request constructor
7725
7725
  *
@@ -7773,7 +7773,7 @@ class rs extends Fn {
7773
7773
  }, 0);
7774
7774
  return;
7775
7775
  }
7776
- typeof document < "u" && (this._index = rs.requestsCount++, rs.requests[this._index] = this);
7776
+ typeof document < "u" && (this._index = is.requestsCount++, is.requests[this._index] = this);
7777
7777
  }
7778
7778
  /**
7779
7779
  * Called upon error.
@@ -7795,7 +7795,7 @@ class rs extends Fn {
7795
7795
  this._xhr.abort();
7796
7796
  } catch {
7797
7797
  }
7798
- typeof document < "u" && delete rs.requests[this._index], this._xhr = null;
7798
+ typeof document < "u" && delete is.requests[this._index], this._xhr = null;
7799
7799
  }
7800
7800
  }
7801
7801
  /**
@@ -7816,8 +7816,8 @@ class rs extends Fn {
7816
7816
  this._cleanup();
7817
7817
  }
7818
7818
  }
7819
- rs.requestsCount = 0;
7820
- rs.requests = {};
7819
+ is.requestsCount = 0;
7820
+ is.requests = {};
7821
7821
  if (typeof document < "u") {
7822
7822
  if (typeof attachEvent == "function")
7823
7823
  attachEvent("onunload", hb);
@@ -7827,8 +7827,8 @@ if (typeof document < "u") {
7827
7827
  }
7828
7828
  }
7829
7829
  function hb() {
7830
- for (let t in rs.requests)
7831
- rs.requests.hasOwnProperty(t) && rs.requests[t].abort();
7830
+ for (let t in is.requests)
7831
+ is.requests.hasOwnProperty(t) && is.requests[t].abort();
7832
7832
  }
7833
7833
  const t5 = (function() {
7834
7834
  const t = pA({
@@ -7843,7 +7843,7 @@ class n5 extends e5 {
7843
7843
  this.supportsBinary = t5 && !n;
7844
7844
  }
7845
7845
  request(e = {}) {
7846
- return Object.assign(e, { xd: this.xd }, this.opts), new rs(pA, this.uri(), e);
7846
+ return Object.assign(e, { xd: this.xd }, this.opts), new is(pA, this.uri(), e);
7847
7847
  }
7848
7848
  }
7849
7849
  function pA(t) {
@@ -9575,21 +9575,21 @@ function _e(t, e, n, r) {
9575
9575
  c((r = r.apply(t, e || [])).next());
9576
9576
  }));
9577
9577
  }
9578
- var Br = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {}, Wi = [], pi = [], O5 = typeof Uint8Array < "u" ? Uint8Array : Array, py = !1;
9578
+ var Br = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {}, Gi = [], pi = [], O5 = typeof Uint8Array < "u" ? Uint8Array : Array, py = !1;
9579
9579
  function vA() {
9580
9580
  py = !0;
9581
- for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = 0; e < 64; ++e) Wi[e] = t[e], pi[t.charCodeAt(e)] = e;
9581
+ for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = 0; e < 64; ++e) Gi[e] = t[e], pi[t.charCodeAt(e)] = e;
9582
9582
  pi[45] = 62, pi[95] = 63;
9583
9583
  }
9584
9584
  function P5(t, e, n) {
9585
- for (var r, i, s = [], o = e; o < n; o += 3) r = (t[o] << 16) + (t[o + 1] << 8) + t[o + 2], s.push(Wi[(i = r) >> 18 & 63] + Wi[i >> 12 & 63] + Wi[i >> 6 & 63] + Wi[63 & i]);
9585
+ for (var r, i, s = [], o = e; o < n; o += 3) r = (t[o] << 16) + (t[o + 1] << 8) + t[o + 2], s.push(Gi[(i = r) >> 18 & 63] + Gi[i >> 12 & 63] + Gi[i >> 6 & 63] + Gi[63 & i]);
9586
9586
  return s.join("");
9587
9587
  }
9588
9588
  function pb(t) {
9589
9589
  var e;
9590
9590
  py || vA();
9591
9591
  for (var n = t.length, r = n % 3, i = "", s = [], o = 16383, a = 0, c = n - r; a < c; a += o) s.push(P5(t, a, a + o > c ? c : a + o));
9592
- return r === 1 ? (e = t[n - 1], i += Wi[e >> 2], i += Wi[e << 4 & 63], i += "==") : r === 2 && (e = (t[n - 2] << 8) + t[n - 1], i += Wi[e >> 10], i += Wi[e >> 4 & 63], i += Wi[e << 2 & 63], i += "="), s.push(i), s.join("");
9592
+ return r === 1 ? (e = t[n - 1], i += Gi[e >> 2], i += Gi[e << 4 & 63], i += "==") : r === 2 && (e = (t[n - 2] << 8) + t[n - 1], i += Gi[e >> 10], i += Gi[e >> 4 & 63], i += Gi[e << 2 & 63], i += "="), s.push(i), s.join("");
9593
9593
  }
9594
9594
  function Wu(t, e, n, r, i) {
9595
9595
  var s, o, a = 8 * i - r - 1, c = (1 << a) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, g = t[e + d];
@@ -9616,7 +9616,7 @@ var k5 = hf();
9616
9616
  function hf() {
9617
9617
  return Se.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
9618
9618
  }
9619
- function Ps(t, e) {
9619
+ function Ns(t, e) {
9620
9620
  if (hf() < e) throw new RangeError("Invalid typed array length");
9621
9621
  return Se.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e)).__proto__ = Se.prototype : (t === null && (t = new Se(e)), t.length = e), t;
9622
9622
  }
@@ -9637,16 +9637,16 @@ function _A(t, e, n, r) {
9637
9637
  })(t, e, n, r) : typeof e == "string" ? (function(i, s, o) {
9638
9638
  if (typeof o == "string" && o !== "" || (o = "utf8"), !Se.isEncoding(o)) throw new TypeError('"encoding" must be a valid string encoding');
9639
9639
  var a = 0 | xA(s, o);
9640
- i = Ps(i, a);
9640
+ i = Ns(i, a);
9641
9641
  var c = i.write(s, o);
9642
9642
  return c !== a && (i = i.slice(0, c)), i;
9643
9643
  })(t, e, n) : (function(i, s) {
9644
- if (Gi(s)) {
9644
+ if (Yi(s)) {
9645
9645
  var o = 0 | gy(s.length);
9646
- return (i = Ps(i, o)).length === 0 || s.copy(i, 0, 0, o), i;
9646
+ return (i = Ns(i, o)).length === 0 || s.copy(i, 0, 0, o), i;
9647
9647
  }
9648
9648
  if (s) {
9649
- if (typeof ArrayBuffer < "u" && s.buffer instanceof ArrayBuffer || "length" in s) return typeof s.length != "number" || (a = s.length) != a ? Ps(i, 0) : yp(i, s);
9649
+ if (typeof ArrayBuffer < "u" && s.buffer instanceof ArrayBuffer || "length" in s) return typeof s.length != "number" || (a = s.length) != a ? Ns(i, 0) : yp(i, s);
9650
9650
  if (s.type === "Buffer" && EA(s.data)) return yp(i, s.data);
9651
9651
  }
9652
9652
  var a;
@@ -9658,12 +9658,12 @@ function SA(t) {
9658
9658
  if (t < 0) throw new RangeError('"size" argument must not be negative');
9659
9659
  }
9660
9660
  function bg(t, e) {
9661
- if (SA(e), t = Ps(t, e < 0 ? 0 : 0 | gy(e)), !Se.TYPED_ARRAY_SUPPORT) for (var n = 0; n < e; ++n) t[n] = 0;
9661
+ if (SA(e), t = Ns(t, e < 0 ? 0 : 0 | gy(e)), !Se.TYPED_ARRAY_SUPPORT) for (var n = 0; n < e; ++n) t[n] = 0;
9662
9662
  return t;
9663
9663
  }
9664
9664
  function yp(t, e) {
9665
9665
  var n = e.length < 0 ? 0 : 0 | gy(e.length);
9666
- t = Ps(t, n);
9666
+ t = Ns(t, n);
9667
9667
  for (var r = 0; r < n; r += 1) t[r] = 255 & e[r];
9668
9668
  return t;
9669
9669
  }
@@ -9671,11 +9671,11 @@ function gy(t) {
9671
9671
  if (t >= hf()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + hf().toString(16) + " bytes");
9672
9672
  return 0 | t;
9673
9673
  }
9674
- function Gi(t) {
9674
+ function Yi(t) {
9675
9675
  return !(t == null || !t._isBuffer);
9676
9676
  }
9677
9677
  function xA(t, e) {
9678
- if (Gi(t)) return t.length;
9678
+ if (Yi(t)) return t.length;
9679
9679
  if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) return t.byteLength;
9680
9680
  typeof t != "string" && (t = "" + t);
9681
9681
  var n = t.length;
@@ -9742,7 +9742,7 @@ function gb(t, e, n, r, i) {
9742
9742
  if (!i) return -1;
9743
9743
  n = 0;
9744
9744
  }
9745
- if (typeof e == "string" && (e = Se.from(e, r)), Gi(e)) return e.length === 0 ? -1 : mb(t, e, n, r, i);
9745
+ if (typeof e == "string" && (e = Se.from(e, r)), Yi(e)) return e.length === 0 ? -1 : mb(t, e, n, r, i);
9746
9746
  if (typeof e == "number") return e &= 255, Se.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(t, e, n) : Uint8Array.prototype.lastIndexOf.call(t, e, n) : mb(t, [e], n, r, i);
9747
9747
  throw new TypeError("val must be string, number or Buffer");
9748
9748
  }
@@ -9839,14 +9839,14 @@ Se.poolSize = 8192, Se._augment = function(t) {
9839
9839
  return _A(null, t, e, n);
9840
9840
  }, Se.TYPED_ARRAY_SUPPORT && (Se.prototype.__proto__ = Uint8Array.prototype, Se.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && Se[Symbol.species]), Se.alloc = function(t, e, n) {
9841
9841
  return (function(r, i, s, o) {
9842
- return SA(i), i <= 0 ? Ps(r, i) : s !== void 0 ? typeof o == "string" ? Ps(r, i).fill(s, o) : Ps(r, i).fill(s) : Ps(r, i);
9842
+ return SA(i), i <= 0 ? Ns(r, i) : s !== void 0 ? typeof o == "string" ? Ns(r, i).fill(s, o) : Ns(r, i).fill(s) : Ns(r, i);
9843
9843
  })(null, t, e, n);
9844
9844
  }, Se.allocUnsafe = function(t) {
9845
9845
  return bg(null, t);
9846
9846
  }, Se.allocUnsafeSlow = function(t) {
9847
9847
  return bg(null, t);
9848
9848
  }, Se.isBuffer = CA, Se.compare = function(t, e) {
9849
- if (!Gi(t) || !Gi(e)) throw new TypeError("Arguments must be Buffers");
9849
+ if (!Yi(t) || !Yi(e)) throw new TypeError("Arguments must be Buffers");
9850
9850
  if (t === e) return 0;
9851
9851
  for (var n = t.length, r = e.length, i = 0, s = Math.min(n, r); i < s; ++i) if (t[i] !== e[i]) {
9852
9852
  n = t[i], r = e[i];
@@ -9878,7 +9878,7 @@ Se.poolSize = 8192, Se._augment = function(t) {
9878
9878
  var r = Se.allocUnsafe(e), i = 0;
9879
9879
  for (n = 0; n < t.length; ++n) {
9880
9880
  var s = t[n];
9881
- if (!Gi(s)) throw new TypeError('"list" argument must be an Array of Buffers');
9881
+ if (!Yi(s)) throw new TypeError('"list" argument must be an Array of Buffers');
9882
9882
  s.copy(r, i), i += s.length;
9883
9883
  }
9884
9884
  return r;
@@ -9901,13 +9901,13 @@ Se.poolSize = 8192, Se._augment = function(t) {
9901
9901
  var t = 0 | this.length;
9902
9902
  return t === 0 ? "" : arguments.length === 0 ? RA(this, 0, t) : M5.apply(this, arguments);
9903
9903
  }, Se.prototype.equals = function(t) {
9904
- if (!Gi(t)) throw new TypeError("Argument must be a Buffer");
9904
+ if (!Yi(t)) throw new TypeError("Argument must be a Buffer");
9905
9905
  return this === t || Se.compare(this, t) === 0;
9906
9906
  }, Se.prototype.inspect = function() {
9907
9907
  var t = "";
9908
9908
  return this.length > 0 && (t = this.toString("hex", 0, 50).match(/.{2}/g).join(" "), this.length > 50 && (t += " ... ")), "<Buffer " + t + ">";
9909
9909
  }, Se.prototype.compare = function(t, e, n, r, i) {
9910
- if (!Gi(t)) throw new TypeError("Argument must be a Buffer");
9910
+ if (!Yi(t)) throw new TypeError("Argument must be a Buffer");
9911
9911
  if (e === void 0 && (e = 0), n === void 0 && (n = t ? t.length : 0), r === void 0 && (r = 0), i === void 0 && (i = this.length), e < 0 || n > t.length || r < 0 || i > this.length) throw new RangeError("out of range index");
9912
9912
  if (r >= i && e >= n) return 0;
9913
9913
  if (r >= i) return -1;
@@ -9987,7 +9987,7 @@ function zn(t, e, n) {
9987
9987
  if (t + e > n) throw new RangeError("Trying to access beyond buffer length");
9988
9988
  }
9989
9989
  function Lr(t, e, n, r, i, s) {
9990
- if (!Gi(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
9990
+ if (!Yi(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
9991
9991
  if (e > i || e < s) throw new RangeError('"value" argument is out of bounds');
9992
9992
  if (n + r > t.length) throw new RangeError("Index out of range");
9993
9993
  }
@@ -10145,7 +10145,7 @@ Se.prototype.slice = function(t, e) {
10145
10145
  var s;
10146
10146
  if (e >>>= 0, n = n === void 0 ? this.length : n >>> 0, t || (t = 0), typeof t == "number") for (s = e; s < n; ++s) this[s] = t;
10147
10147
  else {
10148
- var o = Gi(t) ? t : pf(new Se(t, r).toString()), a = o.length;
10148
+ var o = Yi(t) ? t : pf(new Se(t, r).toString()), a = o.length;
10149
10149
  for (s = 0; s < n - e; ++s) this[s + e] = o[s % a];
10150
10150
  }
10151
10151
  return this;
@@ -10438,7 +10438,7 @@ Object.defineProperty(Ju, "__esModule", { value: !0 }), Ju.crypto = void 0, Ju.c
10438
10438
  }
10439
10439
  t.cbc = a(o.CBC), t.ctr = a(o.CTR), t.gcm = a(o.GCM);
10440
10440
  })(yy);
10441
- var DA = {}, Gn = {}, Ns = {}, Qr = {};
10441
+ var DA = {}, Gn = {}, ks = {}, Qr = {};
10442
10442
  function yf(t) {
10443
10443
  if (!Number.isSafeInteger(t) || t < 0) throw new Error(`positive integer expected, not ${t}`);
10444
10444
  }
@@ -10549,11 +10549,11 @@ Object.defineProperty(Zu, "__esModule", { value: !0 }), Zu.crypto = void 0, Zu.c
10549
10549
  }
10550
10550
  };
10551
10551
  const c = {}.toString;
10552
- })(zs), Object.defineProperty(Ns, "__esModule", { value: !0 }), Ns.HashMD = Ns.Maj = Ns.Chi = void 0;
10552
+ })(zs), Object.defineProperty(ks, "__esModule", { value: !0 }), ks.HashMD = ks.Maj = ks.Chi = void 0;
10553
10553
  const vp = Qr, rl = zs;
10554
- Ns.Chi = (t, e, n) => t & e ^ ~t & n;
10555
- Ns.Maj = (t, e, n) => t & e ^ t & n ^ e & n;
10556
- Ns.HashMD = class extends rl.Hash {
10554
+ ks.Chi = (t, e, n) => t & e ^ ~t & n;
10555
+ ks.Maj = (t, e, n) => t & e ^ t & n ^ e & n;
10556
+ ks.HashMD = class extends rl.Hash {
10557
10557
  constructor(t, e, n, r) {
10558
10558
  super(), this.blockLen = t, this.outputLen = e, this.padOffset = n, this.isLE = r, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = (0, rl.createView)(this.buffer);
10559
10559
  }
@@ -10657,7 +10657,7 @@ const c2 = (t, e, n, r, i, s) => e + n + r + i + s + (t / 2 ** 32 | 0) | 0;
10657
10657
  Rt.add5H = c2;
10658
10658
  const J5 = { fromBig: vy, split: jA, toBig: VA, shrSH: HA, shrSL: zA, rotrSH: qA, rotrSL: WA, rotrBH: GA, rotrBL: YA, rotr32H: JA, rotr32L: ZA, rotlSH: XA, rotlSL: QA, rotlBH: e2, rotlBL: t2, add: n2, add3L: r2, add3H: i2, add4L: s2, add4H: o2, add5H: c2, add5L: a2 };
10659
10659
  Rt.default = J5, Object.defineProperty(Gn, "__esModule", { value: !0 }), Gn.sha384 = Gn.sha512_256 = Gn.sha512_224 = Gn.sha512 = Gn.SHA384 = Gn.SHA512_256 = Gn.SHA512_224 = Gn.SHA512 = void 0;
10660
- const Z5 = Ns, Nt = Rt, Qu = zs, [X5, Q5] = Nt.default.split(["0x428a2f98d728ae22", "0x7137449123ef65cd", "0xb5c0fbcfec4d3b2f", "0xe9b5dba58189dbbc", "0x3956c25bf348b538", "0x59f111f1b605d019", "0x923f82a4af194f9b", "0xab1c5ed5da6d8118", "0xd807aa98a3030242", "0x12835b0145706fbe", "0x243185be4ee4b28c", "0x550c7dc3d5ffb4e2", "0x72be5d74f27b896f", "0x80deb1fe3b1696b1", "0x9bdc06a725c71235", "0xc19bf174cf692694", "0xe49b69c19ef14ad2", "0xefbe4786384f25e3", "0x0fc19dc68b8cd5b5", "0x240ca1cc77ac9c65", "0x2de92c6f592b0275", "0x4a7484aa6ea6e483", "0x5cb0a9dcbd41fbd4", "0x76f988da831153b5", "0x983e5152ee66dfab", "0xa831c66d2db43210", "0xb00327c898fb213f", "0xbf597fc7beef0ee4", "0xc6e00bf33da88fc2", "0xd5a79147930aa725", "0x06ca6351e003826f", "0x142929670a0e6e70", "0x27b70a8546d22ffc", "0x2e1b21385c26c926", "0x4d2c6dfc5ac42aed", "0x53380d139d95b3df", "0x650a73548baf63de", "0x766a0abb3c77b2a8", "0x81c2c92e47edaee6", "0x92722c851482353b", "0xa2bfe8a14cf10364", "0xa81a664bbc423001", "0xc24b8b70d0f89791", "0xc76c51a30654be30", "0xd192e819d6ef5218", "0xd69906245565a910", "0xf40e35855771202a", "0x106aa07032bbd1b8", "0x19a4c116b8d2d0c8", "0x1e376c085141ab53", "0x2748774cdf8eeb99", "0x34b0bcb5e19b48a8", "0x391c0cb3c5c95a63", "0x4ed8aa4ae3418acb", "0x5b9cca4f7763e373", "0x682e6ff3d6b2b8a3", "0x748f82ee5defb2fc", "0x78a5636f43172f60", "0x84c87814a1f0ab72", "0x8cc702081a6439ec", "0x90befffa23631e28", "0xa4506cebde82bde9", "0xbef9a3f7b2c67915", "0xc67178f2e372532b", "0xca273eceea26619c", "0xd186b8c721c0c207", "0xeada7dd6cde0eb1e", "0xf57d4f7fee6ed178", "0x06f067aa72176fba", "0x0a637dc5a2c898a6", "0x113f9804bef90dae", "0x1b710b35131c471b", "0x28db77f523047d84", "0x32caab7b40c72493", "0x3c9ebe0a15c9bebc", "0x431d67c49c100d4c", "0x4cc5d4becb3e42b6", "0x597f299cfc657e2a", "0x5fcb6fab3ad6faec", "0x6c44198c4a475817"].map(((t) => BigInt(t)))), qs = new Uint32Array(80), Ws = new Uint32Array(80);
10660
+ const Z5 = ks, Nt = Rt, Qu = zs, [X5, Q5] = Nt.default.split(["0x428a2f98d728ae22", "0x7137449123ef65cd", "0xb5c0fbcfec4d3b2f", "0xe9b5dba58189dbbc", "0x3956c25bf348b538", "0x59f111f1b605d019", "0x923f82a4af194f9b", "0xab1c5ed5da6d8118", "0xd807aa98a3030242", "0x12835b0145706fbe", "0x243185be4ee4b28c", "0x550c7dc3d5ffb4e2", "0x72be5d74f27b896f", "0x80deb1fe3b1696b1", "0x9bdc06a725c71235", "0xc19bf174cf692694", "0xe49b69c19ef14ad2", "0xefbe4786384f25e3", "0x0fc19dc68b8cd5b5", "0x240ca1cc77ac9c65", "0x2de92c6f592b0275", "0x4a7484aa6ea6e483", "0x5cb0a9dcbd41fbd4", "0x76f988da831153b5", "0x983e5152ee66dfab", "0xa831c66d2db43210", "0xb00327c898fb213f", "0xbf597fc7beef0ee4", "0xc6e00bf33da88fc2", "0xd5a79147930aa725", "0x06ca6351e003826f", "0x142929670a0e6e70", "0x27b70a8546d22ffc", "0x2e1b21385c26c926", "0x4d2c6dfc5ac42aed", "0x53380d139d95b3df", "0x650a73548baf63de", "0x766a0abb3c77b2a8", "0x81c2c92e47edaee6", "0x92722c851482353b", "0xa2bfe8a14cf10364", "0xa81a664bbc423001", "0xc24b8b70d0f89791", "0xc76c51a30654be30", "0xd192e819d6ef5218", "0xd69906245565a910", "0xf40e35855771202a", "0x106aa07032bbd1b8", "0x19a4c116b8d2d0c8", "0x1e376c085141ab53", "0x2748774cdf8eeb99", "0x34b0bcb5e19b48a8", "0x391c0cb3c5c95a63", "0x4ed8aa4ae3418acb", "0x5b9cca4f7763e373", "0x682e6ff3d6b2b8a3", "0x748f82ee5defb2fc", "0x78a5636f43172f60", "0x84c87814a1f0ab72", "0x8cc702081a6439ec", "0x90befffa23631e28", "0xa4506cebde82bde9", "0xbef9a3f7b2c67915", "0xc67178f2e372532b", "0xca273eceea26619c", "0xd186b8c721c0c207", "0xeada7dd6cde0eb1e", "0xf57d4f7fee6ed178", "0x06f067aa72176fba", "0x0a637dc5a2c898a6", "0x113f9804bef90dae", "0x1b710b35131c471b", "0x28db77f523047d84", "0x32caab7b40c72493", "0x3c9ebe0a15c9bebc", "0x431d67c49c100d4c", "0x4cc5d4becb3e42b6", "0x597f299cfc657e2a", "0x5fcb6fab3ad6faec", "0x6c44198c4a475817"].map(((t) => BigInt(t)))), qs = new Uint32Array(80), Ws = new Uint32Array(80);
10661
10661
  class mu extends Z5.HashMD {
10662
10662
  constructor() {
10663
10663
  super(128, 64, 16, !1), this.Ah = 1779033703, this.Al = -205731576, this.Bh = -1150833019, this.Bl = -2067093701, this.Ch = 1013904242, this.Cl = -23791573, this.Dh = -1521486534, this.Dl = 1595750129, this.Eh = 1359893119, this.El = -1377402159, this.Fh = -1694144372, this.Fl = 725511199, this.Gh = 528734635, this.Gl = -79577749, this.Hh = 1541459225, this.Hl = 327033209;
@@ -10819,9 +10819,9 @@ function Ep(t) {
10819
10819
  if (typeof t != "string") throw new Error("hex string expected, got " + typeof t);
10820
10820
  return BigInt(t === "" ? "0" : `0x${t}`);
10821
10821
  }
10822
- const ps = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
10822
+ const gs = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
10823
10823
  function Sb(t) {
10824
- return t >= ps._0 && t <= ps._9 ? t - ps._0 : t >= ps._A && t <= ps._F ? t - (ps._A - 10) : t >= ps._a && t <= ps._f ? t - (ps._a - 10) : void 0;
10824
+ return t >= gs._0 && t <= gs._9 ? t - gs._0 : t >= gs._A && t <= gs._F ? t - (gs._A - 10) : t >= gs._a && t <= gs._f ? t - (gs._a - 10) : void 0;
10825
10825
  }
10826
10826
  function Ld(t) {
10827
10827
  if (typeof t != "string") throw new Error("hex string expected, got " + typeof t);
@@ -11532,9 +11532,9 @@ const $b = en, Gs = $t, ka = BigInt(0), Cp = BigInt(1);
11532
11532
  return m.hashToCurve(Z);
11533
11533
  }, t.hash_to_ristretto255 = t.hashToRistretto255;
11534
11534
  })(DA);
11535
- var g2 = {}, ks = {};
11536
- Object.defineProperty(ks, "__esModule", { value: !0 }), ks.sha224 = ks.sha256 = ks.SHA256 = void 0;
11537
- const Op = Ns, fi = zs, dM = new Uint32Array([1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]), Ys = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]), Js = new Uint32Array(64);
11535
+ var g2 = {}, Ms = {};
11536
+ Object.defineProperty(Ms, "__esModule", { value: !0 }), Ms.sha224 = Ms.sha256 = Ms.SHA256 = void 0;
11537
+ const Op = ks, fi = zs, dM = new Uint32Array([1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]), Ys = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]), Js = new Uint32Array(64);
11538
11538
  class by extends Op.HashMD {
11539
11539
  constructor() {
11540
11540
  super(64, 32, 8, !1), this.A = 0 | Ys[0], this.B = 0 | Ys[1], this.C = 0 | Ys[2], this.D = 0 | Ys[3], this.E = 0 | Ys[4], this.F = 0 | Ys[5], this.G = 0 | Ys[6], this.H = 0 | Ys[7];
@@ -11566,13 +11566,13 @@ class by extends Op.HashMD {
11566
11566
  this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
11567
11567
  }
11568
11568
  }
11569
- ks.SHA256 = by;
11569
+ Ms.SHA256 = by;
11570
11570
  class fM extends by {
11571
11571
  constructor() {
11572
11572
  super(), this.A = -1056596264, this.B = 914150663, this.C = 812702999, this.D = -150054599, this.E = -4191439, this.F = 1750603025, this.G = 1694076839, this.H = -1090891868, this.outputLen = 28;
11573
11573
  }
11574
11574
  }
11575
- ks.sha256 = (0, fi.wrapConstructor)((() => new by())), ks.sha224 = (0, fi.wrapConstructor)((() => new fM()));
11575
+ Ms.sha256 = (0, fi.wrapConstructor)((() => new by())), Ms.sha224 = (0, fi.wrapConstructor)((() => new fM()));
11576
11576
  var Ud = {}, Ey = {};
11577
11577
  (function(t) {
11578
11578
  Object.defineProperty(t, "__esModule", { value: !0 }), t.hmac = t.HMAC = void 0;
@@ -12097,7 +12097,7 @@ function Kb(t) {
12097
12097
  }
12098
12098
  (function(t) {
12099
12099
  Object.defineProperty(t, "__esModule", { value: !0 }), t.encodeToCurve = t.hashToCurve = t.schnorr = t.secp256k1 = void 0;
12100
- const e = ks, n = zs, r = Ud, i = po, s = en, o = $t, a = _y, c = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), l = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), u = BigInt(1), d = BigInt(2), f = (_, I) => (_ + I / d) / I;
12100
+ const e = Ms, n = zs, r = Ud, i = po, s = en, o = $t, a = _y, c = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), l = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), u = BigInt(1), d = BigInt(2), f = (_, I) => (_ + I / d) / I;
12101
12101
  function g(_) {
12102
12102
  const I = c, P = BigInt(3), x = BigInt(6), h = BigInt(11), m = BigInt(22), A = BigInt(23), C = BigInt(44), $ = BigInt(88), V = _ * _ * _ % I, Z = V * V * _ % I, ne = (0, s.pow2)(Z, P, I) * Z % I, se = (0, s.pow2)(ne, P, I) * Z % I, ue = (0, s.pow2)(se, d, I) * V % I, fe = (0, s.pow2)(ue, h, I) * ue % I, Ae = (0, s.pow2)(fe, m, I) * fe % I, Ce = (0, s.pow2)(Ae, C, I) * Ae % I, Ue = (0, s.pow2)(Ce, $, I) * Ce % I, Le = (0, s.pow2)(Ue, C, I) * Ae % I, Oe = (0, s.pow2)(Le, P, I) * Z % I, De = (0, s.pow2)(Oe, A, I) * fe % I, Ve = (0, s.pow2)(De, x, I) * V % I, Fe = (0, s.pow2)(Ve, d, I);
12103
12103
  if (!y.eql(y.sqr(Fe), _)) throw new Error("Cannot find square root");
@@ -12262,7 +12262,7 @@ function v2(t, e, n, r = 32) {
12262
12262
  }
12263
12263
  Za.hkdf = (t, e, n, r, i) => v2(t, w2(t, e, n), r, i), (function(t) {
12264
12264
  Object.defineProperty(t, "__esModule", { value: !0 }), t.getSharedKey = t.deriveKey = void 0;
12265
- var e = ii, n = Za, r = ks;
12265
+ var e = ii, n = Za, r = Ms;
12266
12266
  t.deriveKey = function(i, s, o) {
12267
12267
  return (0, n.hkdf)(r.sha256, i, s, o, 32);
12268
12268
  }, t.getSharedKey = function() {
@@ -12272,7 +12272,7 @@ Za.hkdf = (t, e, n, r, i) => v2(t, w2(t, e, n), r, i), (function(t) {
12272
12272
  })(m2);
12273
12273
  var Hb = {}, lc = {}, Tn = {}, Xo = {};
12274
12274
  Object.defineProperty(Xo, "__esModule", { value: !0 }), Xo.polyval = Xo.ghash = void 0, Xo._toGHASHKey = b2;
12275
- const Qo = Er, Cr = ii, Es = 16, Sy = new Uint8Array(16), Yi = (0, Cr.u32)(Sy), gi = (t) => (t >>> 0 & 255) << 24 | (t >>> 8 & 255) << 16 | (t >>> 16 & 255) << 8 | t >>> 24 & 255 | 0;
12275
+ const Qo = Er, Cr = ii, _s = 16, Sy = new Uint8Array(16), Ji = (0, Cr.u32)(Sy), gi = (t) => (t >>> 0 & 255) << 24 | (t >>> 8 & 255) << 16 | (t >>> 16 & 255) << 8 | t >>> 24 & 255 | 0;
12276
12276
  function b2(t) {
12277
12277
  t.reverse();
12278
12278
  const e = 1 & t[15];
@@ -12285,7 +12285,7 @@ function b2(t) {
12285
12285
  }
12286
12286
  class E2 {
12287
12287
  constructor(e, n) {
12288
- this.blockLen = Es, this.outputLen = Es, this.s0 = 0, this.s1 = 0, this.s2 = 0, this.s3 = 0, this.finished = !1, e = (0, Cr.toBytes)(e), (0, Qo.bytes)(e, 16);
12288
+ this.blockLen = _s, this.outputLen = _s, this.s0 = 0, this.s1 = 0, this.s2 = 0, this.s3 = 0, this.finished = !1, e = (0, Cr.toBytes)(e), (0, Qo.bytes)(e, 16);
12289
12289
  const r = (0, Cr.createView)(e);
12290
12290
  let i = r.getUint32(0, !1), s = r.getUint32(4, !1), o = r.getUint32(8, !1), a = r.getUint32(12, !1);
12291
12291
  const c = [];
@@ -12323,9 +12323,9 @@ class E2 {
12323
12323
  }
12324
12324
  update(e) {
12325
12325
  e = (0, Cr.toBytes)(e), (0, Qo.exists)(this);
12326
- const n = (0, Cr.u32)(e), r = Math.floor(e.length / Es), i = e.length % Es;
12326
+ const n = (0, Cr.u32)(e), r = Math.floor(e.length / _s), i = e.length % _s;
12327
12327
  for (let s = 0; s < r; s++) this._updateBlock(n[4 * s + 0], n[4 * s + 1], n[4 * s + 2], n[4 * s + 3]);
12328
- return i && (Sy.set(e.subarray(r * Es)), this._updateBlock(Yi[0], Yi[1], Yi[2], Yi[3]), (0, Cr.clean)(Yi)), this;
12328
+ return i && (Sy.set(e.subarray(r * _s)), this._updateBlock(Ji[0], Ji[1], Ji[2], Ji[3]), (0, Cr.clean)(Ji)), this;
12329
12329
  }
12330
12330
  destroy() {
12331
12331
  const { t: e } = this;
@@ -12337,7 +12337,7 @@ class E2 {
12337
12337
  return o[0] = n, o[1] = r, o[2] = i, o[3] = s, e;
12338
12338
  }
12339
12339
  digest() {
12340
- const e = new Uint8Array(Es);
12340
+ const e = new Uint8Array(_s);
12341
12341
  return this.digestInto(e), this.destroy(), e;
12342
12342
  }
12343
12343
  }
@@ -12349,9 +12349,9 @@ class gM extends E2 {
12349
12349
  }
12350
12350
  update(e) {
12351
12351
  e = (0, Cr.toBytes)(e), (0, Qo.exists)(this);
12352
- const n = (0, Cr.u32)(e), r = e.length % Es, i = Math.floor(e.length / Es);
12352
+ const n = (0, Cr.u32)(e), r = e.length % _s, i = Math.floor(e.length / _s);
12353
12353
  for (let s = 0; s < i; s++) this._updateBlock(gi(n[4 * s + 3]), gi(n[4 * s + 2]), gi(n[4 * s + 1]), gi(n[4 * s + 0]));
12354
- return r && (Sy.set(e.subarray(i * Es)), this._updateBlock(gi(Yi[3]), gi(Yi[2]), gi(Yi[1]), gi(Yi[0])), (0, Cr.clean)(Yi)), this;
12354
+ return r && (Sy.set(e.subarray(i * _s)), this._updateBlock(gi(Ji[3]), gi(Ji[2]), gi(Ji[1]), gi(Ji[0])), (0, Cr.clean)(Ji)), this;
12355
12355
  }
12356
12356
  digestInto(e) {
12357
12357
  (0, Qo.exists)(this), (0, Qo.output)(e, this), this.finished = !0;
@@ -12404,7 +12404,7 @@ function Ni(t) {
12404
12404
  if (![16, 24, 32].includes(e)) throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${e}`);
12405
12405
  const { sbox2: n } = Ay, r = [];
12406
12406
  (0, Te.isAligned32)(t) || r.push(t = (0, Te.copyBytes)(t));
12407
- const i = (0, Te.u32)(t), s = i.length, o = (c) => Xi(n, c, c, c, c), a = new Uint32Array(e + 28);
12407
+ const i = (0, Te.u32)(t), s = i.length, o = (c) => Qi(n, c, c, c, c), a = new Uint32Array(e + 28);
12408
12408
  a.set(i);
12409
12409
  for (let c = s; c < a.length; c++) {
12410
12410
  let l = a[c - 1];
@@ -12417,7 +12417,7 @@ function zl(t) {
12417
12417
  for (let l = 0; l < r; l += 4) for (let u = 0; u < 4; u++) n[l + u] = e[r - l - 4 + u];
12418
12418
  (0, Te.clean)(e);
12419
12419
  for (let l = 4; l < r - 4; l++) {
12420
- const u = n[l], d = Xi(i, u, u, u, u);
12420
+ const u = n[l], d = Qi(i, u, u, u, u);
12421
12421
  n[l] = s[255 & d] ^ o[d >>> 8 & 255] ^ a[d >>> 16 & 255] ^ c[d >>> 24];
12422
12422
  }
12423
12423
  return n;
@@ -12425,7 +12425,7 @@ function zl(t) {
12425
12425
  function So(t, e, n, r, i, s) {
12426
12426
  return t[n << 8 & 65280 | r >>> 8 & 255] ^ e[i >>> 8 & 65280 | s >>> 24 & 255];
12427
12427
  }
12428
- function Xi(t, e, n, r, i) {
12428
+ function Qi(t, e, n, r, i) {
12429
12429
  return t[255 & e | 65280 & n] | t[r >>> 16 & 255 | i >>> 16 & 65280] << 16;
12430
12430
  }
12431
12431
  function Pr(t, e, n, r, i) {
@@ -12437,7 +12437,7 @@ function Pr(t, e, n, r, i) {
12437
12437
  const d = t[c++] ^ So(o, a, e, n, r, i), f = t[c++] ^ So(o, a, n, r, i, e), g = t[c++] ^ So(o, a, r, i, e, n), y = t[c++] ^ So(o, a, i, e, n, r);
12438
12438
  e = d, n = f, r = g, i = y;
12439
12439
  }
12440
- return { s0: t[c++] ^ Xi(s, e, n, r, i), s1: t[c++] ^ Xi(s, n, r, i, e), s2: t[c++] ^ Xi(s, r, i, e, n), s3: t[c++] ^ Xi(s, i, e, n, r) };
12440
+ return { s0: t[c++] ^ Qi(s, e, n, r, i), s1: t[c++] ^ Qi(s, n, r, i, e), s2: t[c++] ^ Qi(s, r, i, e, n), s3: t[c++] ^ Qi(s, i, e, n, r) };
12441
12441
  }
12442
12442
  function ql(t, e, n, r, i) {
12443
12443
  const { sbox2: s, T01: o, T23: a } = S2;
@@ -12448,7 +12448,7 @@ function ql(t, e, n, r, i) {
12448
12448
  const d = t[c++] ^ So(o, a, e, i, r, n), f = t[c++] ^ So(o, a, n, e, i, r), g = t[c++] ^ So(o, a, r, n, e, i), y = t[c++] ^ So(o, a, i, r, n, e);
12449
12449
  e = d, n = f, r = g, i = y;
12450
12450
  }
12451
- return { s0: t[c++] ^ Xi(s, e, i, r, n), s1: t[c++] ^ Xi(s, n, e, i, r), s2: t[c++] ^ Xi(s, r, n, e, i), s3: t[c++] ^ Xi(s, i, r, n, e) };
12451
+ return { s0: t[c++] ^ Qi(s, e, i, r, n), s1: t[c++] ^ Qi(s, n, e, i, r), s2: t[c++] ^ Qi(s, r, n, e, i), s3: t[c++] ^ Qi(s, i, r, n, e) };
12452
12452
  }
12453
12453
  function uc(t, e) {
12454
12454
  if (e === void 0) return new Uint8Array(t);
@@ -12796,10 +12796,10 @@ Object.defineProperty(ec, "__esModule", { value: !0 }), ec.sigma = void 0, ec.ro
12796
12796
  }, ec.createCipher = function(t, e) {
12797
12797
  const { allowShortKeys: n, extendNonceFn: r, counterLength: i, counterRight: s, rounds: o } = (0, hi.checkOpts)({ allowShortKeys: !1, counterLength: 8, counterRight: !1, rounds: 20 }, e);
12798
12798
  if (typeof t != "function") throw new Error("core must be a function");
12799
- return (0, gs.number)(i), (0, gs.number)(o), (0, gs.bool)(s), (0, gs.bool)(n), (a, c, l, u, d = 0) => {
12800
- (0, gs.bytes)(a), (0, gs.bytes)(c), (0, gs.bytes)(l);
12799
+ return (0, ms.number)(i), (0, ms.number)(o), (0, ms.bool)(s), (0, ms.bool)(n), (a, c, l, u, d = 0) => {
12800
+ (0, ms.bytes)(a), (0, ms.bytes)(c), (0, ms.bytes)(l);
12801
12801
  const f = l.length;
12802
- if (u === void 0 && (u = new Uint8Array(f)), (0, gs.bytes)(u), (0, gs.number)(d), d < 0 || d >= Xb) throw new Error("arx: counter overflow");
12802
+ if (u === void 0 && (u = new Uint8Array(f)), (0, ms.bytes)(u), (0, ms.number)(d), d < 0 || d >= Xb) throw new Error("arx: counter overflow");
12803
12803
  if (u.length < f) throw new Error(`arx: output (${u.length}) is shorter than data (${f})`);
12804
12804
  const g = [];
12805
12805
  let y, w, E = a.length;
@@ -12839,7 +12839,7 @@ Object.defineProperty(ec, "__esModule", { value: !0 }), ec.sigma = void 0, ec.ro
12839
12839
  })(t, w, b, S, l, u, d, o), (0, hi.clean)(...g), u;
12840
12840
  };
12841
12841
  };
12842
- const gs = Er, hi = ii, P2 = (t) => Uint8Array.from(t.split("").map(((e) => e.charCodeAt(0)))), bM = P2("expand 16-byte k"), EM = P2("expand 32-byte k"), _M = (0, hi.u32)(bM), N2 = (0, hi.u32)(EM);
12842
+ const ms = Er, hi = ii, P2 = (t) => Uint8Array.from(t.split("").map(((e) => e.charCodeAt(0)))), bM = P2("expand 16-byte k"), EM = P2("expand 32-byte k"), _M = (0, hi.u32)(bM), N2 = (0, hi.u32)(EM);
12843
12843
  function kp(t) {
12844
12844
  return t.byteOffset % 4 == 0;
12845
12845
  }
@@ -13473,7 +13473,7 @@ class BM extends ch.EventEmitter2 {
13473
13473
  var n, r, i;
13474
13474
  if (pe.SocketService(`[SocketService: createChannel()] context=${e.state.context}`), e.state.socket || e.initSocket(), (n = e.state.socket) === null || n === void 0 ? void 0 : n.connected) throw new Error("socket already connected");
13475
13475
  (r = e.state.socket) === null || r === void 0 || r.connect(), e.state.manualDisconnect = !1, e.state.isOriginator = !0;
13476
- const s = Rs();
13476
+ const s = Is();
13477
13477
  e.state.channelId = s, iE(e, s), yield new Promise(((a, c) => {
13478
13478
  var l;
13479
13479
  (l = e.state.socket) === null || l === void 0 || l.emit(Pe.JOIN_CHANNEL, { channelId: s, context: `${e.state.context}createChannel`, clientType: "dapp" }, ((u, d) => _e(this, void 0, void 0, (function* () {
@@ -13804,7 +13804,7 @@ function K2(t) {
13804
13804
  i(!0);
13805
13805
  })).catch(((f) => {
13806
13806
  s(f);
13807
- })) : i(!0), r.authorized = !1, r.relayPersistence = !1, r.channelId = Rs(), e.channelId = r.channelId, r.channelConfig = void 0, r.originatorConnectStarted = !1, (u = r.communicationLayer) === null || u === void 0 || u.disconnect(e), n.setConnectionStatus(sr.TERMINATED)) : ((d = r.communicationLayer) === null || d === void 0 || d.disconnect(e), n.setConnectionStatus(sr.DISCONNECTED), i(!0));
13807
+ })) : i(!0), r.authorized = !1, r.relayPersistence = !1, r.channelId = Is(), e.channelId = r.channelId, r.channelConfig = void 0, r.originatorConnectStarted = !1, (u = r.communicationLayer) === null || u === void 0 || u.disconnect(e), n.setConnectionStatus(sr.TERMINATED)) : ((d = r.communicationLayer) === null || d === void 0 || d.disconnect(e), n.setConnectionStatus(sr.DISCONNECTED), i(!0));
13808
13808
  }));
13809
13809
  }));
13810
13810
  }
@@ -14104,21 +14104,21 @@ class ZM extends TypeError {
14104
14104
  super(s ?? c), s != null && (this.cause = c), Object.assign(this, o), this.name = this.constructor.name, this.failures = () => r ?? (r = [e, ...n()]);
14105
14105
  }
14106
14106
  }
14107
- function Ls(t) {
14107
+ function Us(t) {
14108
14108
  return typeof t == "object" && t != null;
14109
14109
  }
14110
- function ls(t) {
14110
+ function us(t) {
14111
14111
  return typeof t == "symbol" ? t.toString() : typeof t == "string" ? JSON.stringify(t) : `${t}`;
14112
14112
  }
14113
14113
  function XM(t, e, n, r) {
14114
14114
  if (t === !0) return;
14115
14115
  t === !1 ? t = {} : typeof t == "string" && (t = { message: t });
14116
- const { path: i, branch: s } = e, { type: o } = n, { refinement: a, message: c = `Expected a value of type \`${o}\`${a ? ` with refinement \`${a}\`` : ""}, but received: \`${ls(r)}\`` } = t;
14116
+ const { path: i, branch: s } = e, { type: o } = n, { refinement: a, message: c = `Expected a value of type \`${o}\`${a ? ` with refinement \`${a}\`` : ""}, but received: \`${us(r)}\`` } = t;
14117
14117
  return { value: r, type: o, refinement: a, key: i[i.length - 1], path: i, branch: s, ...t, message: c };
14118
14118
  }
14119
14119
  function* uE(t, e, n, r) {
14120
14120
  (function(i) {
14121
- return Ls(i) && typeof i[Symbol.iterator] == "function";
14121
+ return Us(i) && typeof i[Symbol.iterator] == "function";
14122
14122
  })(t) || (t = [t]);
14123
14123
  for (const i of t) {
14124
14124
  const s = XM(i, e, n, r);
@@ -14127,17 +14127,17 @@ function* uE(t, e, n, r) {
14127
14127
  }
14128
14128
  function* Iy(t, e, n = {}) {
14129
14129
  const { path: r = [], branch: i = [t], coerce: s = !1, mask: o = !1 } = n, a = { path: r, branch: i };
14130
- if (s && (t = e.coercer(t, a), o && e.type !== "type" && Ls(e.schema) && Ls(t) && !Array.isArray(t))) for (const l in t) e.schema[l] === void 0 && delete t[l];
14130
+ if (s && (t = e.coercer(t, a), o && e.type !== "type" && Us(e.schema) && Us(t) && !Array.isArray(t))) for (const l in t) e.schema[l] === void 0 && delete t[l];
14131
14131
  let c = "valid";
14132
14132
  for (const l of e.validator(t, a)) l.explanation = n.message, c = "not_valid", yield [l, void 0];
14133
14133
  for (let [l, u, d] of e.entries(t, a)) {
14134
14134
  const f = Iy(u, d, { path: l === void 0 ? r : [...r, l], branch: l === void 0 ? i : [...i, u], coerce: s, mask: o, message: n.message });
14135
- for (const g of f) g[0] ? (c = g[0].refinement != null ? "not_refined" : "not_valid", yield [g[0], void 0]) : s && (u = g[1], l === void 0 ? t = u : t instanceof Map ? t.set(l, u) : t instanceof Set ? t.add(u) : Ls(t) && (u !== void 0 || l in t) && (t[l] = u));
14135
+ for (const g of f) g[0] ? (c = g[0].refinement != null ? "not_refined" : "not_valid", yield [g[0], void 0]) : s && (u = g[1], l === void 0 ? t = u : t instanceof Map ? t.set(l, u) : t instanceof Set ? t.add(u) : Us(t) && (u !== void 0 || l in t) && (t[l] = u));
14136
14136
  }
14137
14137
  if (c !== "not_valid") for (const l of e.refiner(t, a)) l.explanation = n.message, c = "not_refined", yield [l, void 0];
14138
14138
  c === "valid" && (yield [void 0, t]);
14139
14139
  }
14140
- class Ui {
14140
+ class $i {
14141
14141
  constructor(e) {
14142
14142
  const { type: n, schema: r, validator: i, refiner: s, coercer: o = ((c) => c), entries: a = function* () {
14143
14143
  } } = e;
@@ -14185,53 +14185,53 @@ function Gl(t, e, n = {}) {
14185
14185
  })), void 0] : [void 0, i[1]];
14186
14186
  }
14187
14187
  function Bo(t, e) {
14188
- return new Ui({ type: t, schema: null, validator: e });
14188
+ return new $i({ type: t, schema: null, validator: e });
14189
14189
  }
14190
14190
  function dE(t) {
14191
14191
  let e;
14192
- return new Ui({ type: "lazy", schema: null, *entries(n, r) {
14192
+ return new $i({ type: "lazy", schema: null, *entries(n, r) {
14193
14193
  e ?? (e = t()), yield* e.entries(n, r);
14194
14194
  }, validator: (n, r) => (e ?? (e = t()), e.validator(n, r)), coercer: (n, r) => (e ?? (e = t()), e.coercer(n, r)), refiner: (n, r) => (e ?? (e = t()), e.refiner(n, r)) });
14195
14195
  }
14196
14196
  function z2(t) {
14197
- return new Ui({ type: "array", schema: t, *entries(e) {
14197
+ return new $i({ type: "array", schema: t, *entries(e) {
14198
14198
  if (t && Array.isArray(e)) for (const [n, r] of e.entries()) yield [n, r, t];
14199
- }, coercer: (e) => Array.isArray(e) ? e.slice() : e, validator: (e) => Array.isArray(e) || `Expected an array value, but received: ${ls(e)}` });
14199
+ }, coercer: (e) => Array.isArray(e) ? e.slice() : e, validator: (e) => Array.isArray(e) || `Expected an array value, but received: ${us(e)}` });
14200
14200
  }
14201
14201
  function q2(t) {
14202
- const e = ls(t), n = typeof t;
14203
- return new Ui({ type: "literal", schema: n === "string" || n === "number" || n === "boolean" ? t : null, validator: (r) => r === t || `Expected the literal \`${e}\`, but received: ${ls(r)}` });
14202
+ const e = us(t), n = typeof t;
14203
+ return new $i({ type: "literal", schema: n === "string" || n === "number" || n === "boolean" ? t : null, validator: (r) => r === t || `Expected the literal \`${e}\`, but received: ${us(r)}` });
14204
14204
  }
14205
14205
  function W2() {
14206
- return Bo("number", ((t) => typeof t == "number" && !isNaN(t) || `Expected a number, but received: ${ls(t)}`));
14206
+ return Bo("number", ((t) => typeof t == "number" && !isNaN(t) || `Expected a number, but received: ${us(t)}`));
14207
14207
  }
14208
14208
  function G2(t) {
14209
14209
  const e = t ? Object.keys(t) : [], n = Bo("never", (() => !1));
14210
- return new Ui({ type: "object", schema: t || null, *entries(r) {
14211
- if (t && Ls(r)) {
14210
+ return new $i({ type: "object", schema: t || null, *entries(r) {
14211
+ if (t && Us(r)) {
14212
14212
  const i = new Set(Object.keys(r));
14213
14213
  for (const s of e) i.delete(s), yield [s, r[s], t[s]];
14214
14214
  for (const s of i) yield [s, r[s], n];
14215
14215
  }
14216
- }, validator: (r) => Ls(r) || `Expected an object, but received: ${ls(r)}`, coercer: (r) => Ls(r) ? { ...r } : r });
14216
+ }, validator: (r) => Us(r) || `Expected an object, but received: ${us(r)}`, coercer: (r) => Us(r) ? { ...r } : r });
14217
14217
  }
14218
14218
  function fE(t) {
14219
- return new Ui({ ...t, validator: (e, n) => e === void 0 || t.validator(e, n), refiner: (e, n) => e === void 0 || t.refiner(e, n) });
14219
+ return new $i({ ...t, validator: (e, n) => e === void 0 || t.validator(e, n), refiner: (e, n) => e === void 0 || t.refiner(e, n) });
14220
14220
  }
14221
14221
  function Y2(t, e) {
14222
- return new Ui({ type: "record", schema: null, *entries(n) {
14223
- if (Ls(n)) for (const r in n) {
14222
+ return new $i({ type: "record", schema: null, *entries(n) {
14223
+ if (Us(n)) for (const r in n) {
14224
14224
  const i = n[r];
14225
14225
  yield [r, r, t], yield [r, i, e];
14226
14226
  }
14227
- }, validator: (n) => Ls(n) || `Expected an object, but received: ${ls(n)}` });
14227
+ }, validator: (n) => Us(n) || `Expected an object, but received: ${us(n)}` });
14228
14228
  }
14229
14229
  function Do() {
14230
- return Bo("string", ((t) => typeof t == "string" || `Expected a string, but received: ${ls(t)}`));
14230
+ return Bo("string", ((t) => typeof t == "string" || `Expected a string, but received: ${us(t)}`));
14231
14231
  }
14232
14232
  function mh(t) {
14233
14233
  const e = t.map(((n) => n.type)).join(" | ");
14234
- return new Ui({ type: "union", schema: null, coercer(n) {
14234
+ return new $i({ type: "union", schema: null, coercer(n) {
14235
14235
  for (const r of t) {
14236
14236
  const [i, s] = r.validate(n, { coerce: !0 });
14237
14237
  if (!i) return s;
@@ -14244,7 +14244,7 @@ function mh(t) {
14244
14244
  if (!a[0]) return [];
14245
14245
  for (const [c] of o) c && i.push(c);
14246
14246
  }
14247
- return [`Expected the value to satisfy a union of \`${e}\`, but received: ${ls(n)}`, ...i];
14247
+ return [`Expected the value to satisfy a union of \`${e}\`, but received: ${us(n)}`, ...i];
14248
14248
  } });
14249
14249
  }
14250
14250
  function QM(t) {
@@ -14284,17 +14284,17 @@ function X2(t) {
14284
14284
  }
14285
14285
  }
14286
14286
  typeof Br.setTimeout == "function" && (co = setTimeout), typeof Br.clearTimeout == "function" && (lo = clearTimeout);
14287
- var ea, Ms = [], fc = !1, Fd = -1;
14287
+ var ea, Bs = [], fc = !1, Fd = -1;
14288
14288
  function n8() {
14289
- fc && ea && (fc = !1, ea.length ? Ms = ea.concat(Ms) : Fd = -1, Ms.length && Q2());
14289
+ fc && ea && (fc = !1, ea.length ? Bs = ea.concat(Bs) : Fd = -1, Bs.length && Q2());
14290
14290
  }
14291
14291
  function Q2() {
14292
14292
  if (!fc) {
14293
14293
  var t = X2(n8);
14294
14294
  fc = !0;
14295
- for (var e = Ms.length; e; ) {
14296
- for (ea = Ms, Ms = []; ++Fd < e; ) ea && ea[Fd].run();
14297
- Fd = -1, e = Ms.length;
14295
+ for (var e = Bs.length; e; ) {
14296
+ for (ea = Bs, Bs = []; ++Fd < e; ) ea && ea[Fd].run();
14297
+ Fd = -1, e = Bs.length;
14298
14298
  }
14299
14299
  ea = null, fc = !1, (function(n) {
14300
14300
  if (lo === clearTimeout) return clearTimeout(n);
@@ -14324,7 +14324,7 @@ var r8 = _a, i8 = _a, s8 = _a, o8 = _a, a8 = _a, c8 = _a, l8 = _a, Va = Br.perfo
14324
14324
  }, d8 = /* @__PURE__ */ new Date(), Yt = { nextTick: function(t) {
14325
14325
  var e = new Array(arguments.length - 1);
14326
14326
  if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
14327
- Ms.push(new eR(t, e)), Ms.length !== 1 || fc || X2(Q2);
14327
+ Bs.push(new eR(t, e)), Bs.length !== 1 || fc || X2(Q2);
14328
14328
  }, title: "browser", browser: !0, env: {}, argv: [], version: "", versions: {}, on: r8, addListener: i8, once: s8, off: o8, removeListener: a8, removeAllListeners: c8, emit: l8, binding: function(t) {
14329
14329
  throw new Error("process.binding is not supported");
14330
14330
  }, cwd: function() {
@@ -14344,7 +14344,7 @@ function hE({ path: t, branch: e }) {
14344
14344
  return xf(e[e.length - 2], n);
14345
14345
  }
14346
14346
  function Af(t) {
14347
- return new Ui({ ...t, type: `optional ${t.type}`, validator: (e, n) => !hE(n) || t.validator(e, n), refiner: (e, n) => !hE(n) || t.refiner(e, n) });
14347
+ return new $i({ ...t, type: `optional ${t.type}`, validator: (e, n) => !hE(n) || t.validator(e, n), refiner: (e, n) => !hE(n) || t.refiner(e, n) });
14348
14348
  }
14349
14349
  var ld, pE, gE, Rf = mh([q2(null), Bo("boolean", ((t) => typeof t == "boolean")), Bo("finite number", ((t) => Kc(t, W2()) && Number.isFinite(t))), Do(), z2(dE((() => Rf))), Y2(Do(), dE((() => Rf)))]), Jl = (ld = Rf, pE = Bo("any", (() => !0)), gE = (t) => ((function(e, n, r = "Assertion failed", i = t8) {
14350
14350
  try {
@@ -14354,7 +14354,7 @@ var ld, pE, gE, Rf = mh([q2(null), Bo("boolean", ((t) => typeof t == "boolean"))
14354
14354
  }
14355
14355
  })(t, Rf), JSON.parse(JSON.stringify(t, ((e, n) => {
14356
14356
  if (e !== "__proto__" && e !== "constructor") return n;
14357
- })))), new Ui({ ...ld, coercer: (t, e) => Kc(t, pE) ? ld.coercer(gE(t, e), e) : ld.coercer(t, e) }));
14357
+ })))), new $i({ ...ld, coercer: (t, e) => Kc(t, pE) ? ld.coercer(gE(t, e), e) : ld.coercer(t, e) }));
14358
14358
  function Ng(t) {
14359
14359
  try {
14360
14360
  return (function(e) {
@@ -14365,8 +14365,8 @@ function Ng(t) {
14365
14365
  }
14366
14366
  }
14367
14367
  var Cl = q2("2.0"), Kd = (function(t) {
14368
- return new Ui({ ...t, validator: (e, n) => e === null || t.validator(e, n), refiner: (e, n) => e === null || t.refiner(e, n) });
14369
- })(mh([W2(), Do()])), kg = Yl({ code: Bo("integer", ((t) => typeof t == "number" && !isNaN(t) && Number.isInteger(t) || `Expected an integer, but received: ${ls(t)}`)), message: Do(), data: Af(Jl), stack: Af(Do()) }), tR = mh([Y2(Do(), Jl), z2(Jl)]), f8 = Yl({ id: Kd, jsonrpc: Cl, method: Do(), params: Af(tR) }), h8 = Yl({ jsonrpc: Cl, method: Do(), params: Af(tR) });
14368
+ return new $i({ ...t, validator: (e, n) => e === null || t.validator(e, n), refiner: (e, n) => e === null || t.refiner(e, n) });
14369
+ })(mh([W2(), Do()])), kg = Yl({ code: Bo("integer", ((t) => typeof t == "number" && !isNaN(t) && Number.isInteger(t) || `Expected an integer, but received: ${us(t)}`)), message: Do(), data: Af(Jl), stack: Af(Do()) }), tR = mh([Y2(Do(), Jl), z2(Jl)]), f8 = Yl({ id: Kd, jsonrpc: Cl, method: Do(), params: Af(tR) }), h8 = Yl({ jsonrpc: Cl, method: Do(), params: Af(tR) });
14370
14370
  function mE(t) {
14371
14371
  return Kc(t, f8);
14372
14372
  }
@@ -14502,7 +14502,7 @@ function aR(t) {
14502
14502
  return t.call(this, e, n);
14503
14503
  };
14504
14504
  }
14505
- var w8 = ph(iR), _s = class extends Error {
14505
+ var w8 = ph(iR), Ss = class extends Error {
14506
14506
  constructor(t, e, n) {
14507
14507
  if (!Number.isInteger(t)) throw new Error('"code" must be an integer.');
14508
14508
  if (!e || typeof e != "string") throw new Error('"message" must be a non-empty string.');
@@ -14541,7 +14541,7 @@ function b8(t, e) {
14541
14541
  }
14542
14542
  return [];
14543
14543
  })(e);
14544
- return new _s(t, n ?? nR(t), r);
14544
+ return new Ss(t, n ?? nR(t), r);
14545
14545
  }
14546
14546
  var cR = {};
14547
14547
  function uo() {
@@ -14784,7 +14784,7 @@ Tf = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), nc = /*
14784
14784
  }, Vd = /* @__PURE__ */ new WeakSet(), Dg = async function(t, e) {
14785
14785
  try {
14786
14786
  if (t.length === 0) {
14787
- const r = [{ id: null, jsonrpc: "2.0", error: new _s(mo.invalidRequest, "Request batch must contain plain objects. Received an empty array") }];
14787
+ const r = [{ id: null, jsonrpc: "2.0", error: new Ss(mo.invalidRequest, "Request batch must contain plain objects. Received an empty array") }];
14788
14788
  return e ? e(null, r) : r;
14789
14789
  }
14790
14790
  const n = (await Promise.all(t.map(this._promiseHandle.bind(this)))).filter(((r) => r !== void 0));
@@ -14796,11 +14796,11 @@ Tf = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), nc = /*
14796
14796
  }, Hd = /* @__PURE__ */ new WeakSet(), Lg = async function(t, e) {
14797
14797
  var n;
14798
14798
  if (!t || Array.isArray(t) || typeof t != "object") {
14799
- const o = new _s(mo.invalidRequest, "Requests must be plain objects. Received: " + typeof t, { request: t });
14799
+ const o = new Ss(mo.invalidRequest, "Requests must be plain objects. Received: " + typeof t, { request: t });
14800
14800
  return e(o, { id: null, jsonrpc: "2.0", error: o });
14801
14801
  }
14802
14802
  if (typeof t.method != "string") {
14803
- const o = new _s(mo.invalidRequest, "Must specify a string method. Received: " + typeof t.method, { request: t });
14803
+ const o = new Ss(mo.invalidRequest, "Must specify a string method. Received: " + typeof t.method, { request: t });
14804
14804
  return bo(this, nc) && !mE(t) ? e(null) : e(o, { id: t.id ?? null, jsonrpc: "2.0", error: o });
14805
14805
  }
14806
14806
  if (bo(this, nc) && Kc(t, h8) && !mE(t)) {
@@ -14835,7 +14835,7 @@ Tf = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), nc = /*
14835
14835
  const c = a || e.error;
14836
14836
  c && (e.error = vE(c)), i([c, !0]);
14837
14837
  }, o = (a) => {
14838
- e.error ? s(e.error) : (a && (typeof a != "function" && s(new _s(mo.internal, `JsonRpcEngine: "next" return handlers must be functions. Received "${typeof a}" for request:
14838
+ e.error ? s(e.error) : (a && (typeof a != "function" && s(new Ss(mo.internal, `JsonRpcEngine: "next" return handlers must be functions. Received "${typeof a}" for request:
14839
14839
  ${$p(t)}`, { request: t })), r.push(a)), i([null, !1]));
14840
14840
  };
14841
14841
  try {
@@ -14849,9 +14849,9 @@ ${$p(t)}`, { request: t })), r.push(a)), i([null, !1]));
14849
14849
  e(((i) => i ? r(i) : n()));
14850
14850
  }));
14851
14851
  }, Up = /* @__PURE__ */ new WeakSet(), TE = function(t, e, n) {
14852
- if (!xf(e, "result") && !xf(e, "error")) throw new _s(mo.internal, `JsonRpcEngine: Response has no error or result for request:
14852
+ if (!xf(e, "result") && !xf(e, "error")) throw new Ss(mo.internal, `JsonRpcEngine: Response has no error or result for request:
14853
14853
  ${$p(t)}`, { request: t });
14854
- if (!n) throw new _s(mo.internal, `JsonRpcEngine: Nothing ended request:
14854
+ if (!n) throw new Ss(mo.internal, `JsonRpcEngine: Nothing ended request:
14855
14855
  ${$p(t)}`, { request: t });
14856
14856
  }, Pi(Ai, Dp), Pi(Ai, zd), Pi(Ai, Lp), Pi(Ai, Pl), Pi(Ai, Up);
14857
14857
  var S8 = Ai;
@@ -14904,10 +14904,10 @@ async function T8(t) {
14904
14904
  }
14905
14905
  var pR = (t, e, n) => {
14906
14906
  if (!e.has(t)) throw TypeError("Cannot " + n);
14907
- }, Ji = (t, e, n) => (pR(t, e, "read from private field"), n ? n.call(t) : e.get(t)), $g = (t, e, n) => {
14907
+ }, Zi = (t, e, n) => (pR(t, e, "read from private field"), n ? n.call(t) : e.get(t)), $g = (t, e, n) => {
14908
14908
  if (e.has(t)) throw TypeError("Cannot add the same private member more than once");
14909
14909
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
14910
- }, Ss = (t, e, n, r) => (pR(t, e, "write to private field"), e.set(t, n), n);
14910
+ }, xs = (t, e, n, r) => (pR(t, e, "write to private field"), e.set(t, n), n);
14911
14911
  function OE(t, e, n) {
14912
14912
  try {
14913
14913
  Reflect.apply(t, e, n);
@@ -14967,15 +14967,15 @@ var fo, Wo, O8 = function t(e, n) {
14967
14967
  return e != e && n != n;
14968
14968
  }, P8 = ph(O8), gR = class mR extends C8 {
14969
14969
  constructor({ logger: e = console, maxEventListeners: n = 100, rpcMiddleware: r = [] } = {}) {
14970
- super(), $g(this, fo, void 0), $g(this, Wo, void 0), this._log = e, this.setMaxListeners(n), this._state = { ...mR._defaultState }, Ss(this, Wo, null), Ss(this, fo, null), this._handleAccountsChanged = this._handleAccountsChanged.bind(this), this._handleConnect = this._handleConnect.bind(this), this._handleChainChanged = this._handleChainChanged.bind(this), this._handleDisconnect = this._handleDisconnect.bind(this), this._handleUnlockStateChanged = this._handleUnlockStateChanged.bind(this), this._rpcRequest = this._rpcRequest.bind(this), this.request = this.request.bind(this);
14970
+ super(), $g(this, fo, void 0), $g(this, Wo, void 0), this._log = e, this.setMaxListeners(n), this._state = { ...mR._defaultState }, xs(this, Wo, null), xs(this, fo, null), this._handleAccountsChanged = this._handleAccountsChanged.bind(this), this._handleConnect = this._handleConnect.bind(this), this._handleChainChanged = this._handleChainChanged.bind(this), this._handleDisconnect = this._handleDisconnect.bind(this), this._handleUnlockStateChanged = this._handleUnlockStateChanged.bind(this), this._rpcRequest = this._rpcRequest.bind(this), this.request = this.request.bind(this);
14971
14971
  const i = new S8();
14972
14972
  r.forEach(((s) => i.push(s))), this._rpcEngine = i;
14973
14973
  }
14974
14974
  get chainId() {
14975
- return Ji(this, fo);
14975
+ return Zi(this, fo);
14976
14976
  }
14977
14977
  get selectedAddress() {
14978
- return Ji(this, Wo);
14978
+ return Zi(this, Wo);
14979
14979
  }
14980
14980
  isConnected() {
14981
14981
  return this._state.isConnected;
@@ -15010,11 +15010,11 @@ var fo, Wo, O8 = function t(e, n) {
15010
15010
  _handleDisconnect(e, n) {
15011
15011
  if (this._state.isConnected || !this._state.isPermanentlyDisconnected && !e) {
15012
15012
  let r;
15013
- this._state.isConnected = !1, e ? (r = new _s(1013, n ?? Pn.errors.disconnected()), this._log.debug(r)) : (r = new _s(1011, n ?? Pn.errors.permanentlyDisconnected()), this._log.error(r), Ss(this, fo, null), this._state.accounts = null, Ss(this, Wo, null), this._state.isUnlocked = !1, this._state.isPermanentlyDisconnected = !0), this.emit("disconnect", r);
15013
+ this._state.isConnected = !1, e ? (r = new Ss(1013, n ?? Pn.errors.disconnected()), this._log.debug(r)) : (r = new Ss(1011, n ?? Pn.errors.permanentlyDisconnected()), this._log.error(r), xs(this, fo, null), this._state.accounts = null, xs(this, Wo, null), this._state.isUnlocked = !1, this._state.isPermanentlyDisconnected = !0), this.emit("disconnect", r);
15014
15014
  }
15015
15015
  }
15016
15016
  _handleChainChanged({ chainId: e } = {}) {
15017
- fR(e) ? (this._handleConnect(e), e !== Ji(this, fo) && (Ss(this, fo, e), this._state.initialized && this.emit("chainChanged", Ji(this, fo)))) : this._log.error(Pn.errors.invalidNetworkParams(), { chainId: e });
15017
+ fR(e) ? (this._handleConnect(e), e !== Zi(this, fo) && (xs(this, fo, e), this._state.initialized && this.emit("chainChanged", Zi(this, fo)))) : this._log.error(Pn.errors.invalidNetworkParams(), { chainId: e });
15018
15018
  }
15019
15019
  _handleAccountsChanged(e, n = !1) {
15020
15020
  let r = e;
@@ -15023,7 +15023,7 @@ var fo, Wo, O8 = function t(e, n) {
15023
15023
  this._log.error("MetaMask: Received non-string account. Please report this bug.", e), r = [];
15024
15024
  break;
15025
15025
  }
15026
- if (!P8(this._state.accounts, r) && (n && this._state.accounts !== null && this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.", r), this._state.accounts = r, Ji(this, Wo) !== r[0] && Ss(this, Wo, r[0] || null), this._state.initialized)) {
15026
+ if (!P8(this._state.accounts, r) && (n && this._state.accounts !== null && this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.", r), this._state.accounts = r, Zi(this, Wo) !== r[0] && xs(this, Wo, r[0] || null), this._state.initialized)) {
15027
15027
  const i = [...r];
15028
15028
  this.emit("accountsChanged", i);
15029
15029
  }
@@ -15048,7 +15048,7 @@ var wR = Object.getOwnPropertyDescriptors || function(t) {
15048
15048
  }, k8 = /%[sdj%]/g;
15049
15049
  function yh(t) {
15050
15050
  if (!Zl(t)) {
15051
- for (var e = [], n = 0; n < arguments.length; n++) e.push(is(arguments[n]));
15051
+ for (var e = [], n = 0; n < arguments.length; n++) e.push(ss(arguments[n]));
15052
15052
  return e.join(" ");
15053
15053
  }
15054
15054
  n = 1;
@@ -15069,11 +15069,11 @@ function yh(t) {
15069
15069
  default:
15070
15070
  return a;
15071
15071
  }
15072
- })), o = r[n]; n < i; o = r[++n]) wu(o) || !Sa(o) ? s += " " + o : s += " " + is(o);
15072
+ })), o = r[n]; n < i; o = r[++n]) wu(o) || !Sa(o) ? s += " " + o : s += " " + ss(o);
15073
15073
  return s;
15074
15074
  }
15075
15075
  function Py(t, e) {
15076
- if (Qi(Br.process)) return function() {
15076
+ if (es(Br.process)) return function() {
15077
15077
  return Py(t, e).apply(this, arguments);
15078
15078
  };
15079
15079
  if (Yt.noDeprecation === !0) return t;
@@ -15088,30 +15088,30 @@ function Py(t, e) {
15088
15088
  }
15089
15089
  var Fp, ud = {};
15090
15090
  function vR(t) {
15091
- return Qi(Fp) && (Fp = Yt.env.NODE_DEBUG || ""), t = t.toUpperCase(), !ud[t] && (new RegExp("\\b" + t + "\\b", "i").test(Fp) ? ud[t] = function() {
15091
+ return es(Fp) && (Fp = Yt.env.NODE_DEBUG || ""), t = t.toUpperCase(), !ud[t] && (new RegExp("\\b" + t + "\\b", "i").test(Fp) ? ud[t] = function() {
15092
15092
  var e = yh.apply(null, arguments);
15093
15093
  console.error("%s %d: %s", t, 0, e);
15094
15094
  } : ud[t] = function() {
15095
15095
  }), ud[t];
15096
15096
  }
15097
- function is(t, e) {
15097
+ function ss(t, e) {
15098
15098
  var n = { seen: [], stylize: B8 };
15099
- return arguments.length >= 3 && (n.depth = arguments[2]), arguments.length >= 4 && (n.colors = arguments[3]), wh(e) ? n.showHidden = e : e && By(n, e), Qi(n.showHidden) && (n.showHidden = !1), Qi(n.depth) && (n.depth = 2), Qi(n.colors) && (n.colors = !1), Qi(n.customInspect) && (n.customInspect = !0), n.colors && (n.stylize = M8), Of(n, t, n.depth);
15099
+ return arguments.length >= 3 && (n.depth = arguments[2]), arguments.length >= 4 && (n.colors = arguments[3]), wh(e) ? n.showHidden = e : e && By(n, e), es(n.showHidden) && (n.showHidden = !1), es(n.depth) && (n.depth = 2), es(n.colors) && (n.colors = !1), es(n.customInspect) && (n.customInspect = !0), n.colors && (n.stylize = M8), Of(n, t, n.depth);
15100
15100
  }
15101
15101
  function M8(t, e) {
15102
- var n = is.styles[e];
15103
- return n ? "\x1B[" + is.colors[n][0] + "m" + t + "\x1B[" + is.colors[n][1] + "m" : t;
15102
+ var n = ss.styles[e];
15103
+ return n ? "\x1B[" + ss.colors[n][0] + "m" + t + "\x1B[" + ss.colors[n][1] + "m" : t;
15104
15104
  }
15105
15105
  function B8(t, e) {
15106
15106
  return t;
15107
15107
  }
15108
15108
  function Of(t, e, n) {
15109
- if (t.customInspect && e && Ml(e.inspect) && e.inspect !== is && (!e.constructor || e.constructor.prototype !== e)) {
15109
+ if (t.customInspect && e && Ml(e.inspect) && e.inspect !== ss && (!e.constructor || e.constructor.prototype !== e)) {
15110
15110
  var r = e.inspect(n, t);
15111
15111
  return Zl(r) || (r = Of(t, r, n)), r;
15112
15112
  }
15113
15113
  var i = (function(f, g) {
15114
- if (Qi(g)) return f.stylize("undefined", "undefined");
15114
+ if (es(g)) return f.stylize("undefined", "undefined");
15115
15115
  if (Zl(g)) {
15116
15116
  var y = "'" + JSON.stringify(g).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
15117
15117
  return f.stylize(y, "string");
@@ -15170,7 +15170,7 @@ function jp(t, e, n, r, i, s) {
15170
15170
  `).map((function(l) {
15171
15171
  return " " + l;
15172
15172
  })).join(`
15173
- `)) : a = t.stylize("[Circular]", "special")), Qi(o)) {
15173
+ `)) : a = t.stylize("[Circular]", "special")), es(o)) {
15174
15174
  if (s && i.match(/^\d+$/)) return a;
15175
15175
  (o = JSON.stringify("" + i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (o = o.substr(1, o.length - 2), o = t.stylize(o, "name")) : (o = o.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), o = t.stylize(o, "string"));
15176
15176
  }
@@ -15197,7 +15197,7 @@ function Zl(t) {
15197
15197
  function ER(t) {
15198
15198
  return typeof t == "symbol";
15199
15199
  }
15200
- function Qi(t) {
15200
+ function es(t) {
15201
15201
  return t === void 0;
15202
15202
  }
15203
15203
  function Nl(t) {
@@ -15227,7 +15227,7 @@ function My(t) {
15227
15227
  function Vp(t) {
15228
15228
  return t < 10 ? "0" + t.toString(10) : t.toString(10);
15229
15229
  }
15230
- is.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }, is.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" };
15230
+ ss.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }, ss.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" };
15231
15231
  var D8 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
15232
15232
  function xR() {
15233
15233
  var t, e;
@@ -15290,7 +15290,7 @@ function RR(t) {
15290
15290
  return Object.setPrototypeOf(e, Object.getPrototypeOf(t)), Object.defineProperties(e, wR(t)), e;
15291
15291
  }
15292
15292
  Dy.custom = Go;
15293
- var Hp, PE, U8 = { inherits: Cy, _extend: By, log: xR, isBuffer: SR, isPrimitive: _R, isFunction: Ml, isError: kl, isDate: Pf, isObject: Sa, isRegExp: Nl, isUndefined: Qi, isSymbol: ER, isString: Zl, isNumber: ky, isNullOrUndefined: bR, isNull: wu, isBoolean: wh, isArray: Ny, inspect: is, deprecate: Py, format: yh, debuglog: vR, promisify: Dy, callbackify: RR }, IR = gu(Object.freeze({ __proto__: null, _extend: By, callbackify: RR, debuglog: vR, default: U8, deprecate: Py, format: yh, inherits: Cy, inspect: is, isArray: Ny, isBoolean: wh, isBuffer: SR, isDate: Pf, isError: kl, isFunction: Ml, isNull: wu, isNullOrUndefined: bR, isNumber: ky, isObject: Sa, isPrimitive: _R, isRegExp: Nl, isString: Zl, isSymbol: ER, isUndefined: Qi, log: xR, promisify: Dy }));
15293
+ var Hp, PE, U8 = { inherits: Cy, _extend: By, log: xR, isBuffer: SR, isPrimitive: _R, isFunction: Ml, isError: kl, isDate: Pf, isObject: Sa, isRegExp: Nl, isUndefined: es, isSymbol: ER, isString: Zl, isNumber: ky, isNullOrUndefined: bR, isNull: wu, isBoolean: wh, isArray: Ny, inspect: ss, deprecate: Py, format: yh, debuglog: vR, promisify: Dy, callbackify: RR }, IR = gu(Object.freeze({ __proto__: null, _extend: By, callbackify: RR, debuglog: vR, default: U8, deprecate: Py, format: yh, inherits: Cy, inspect: ss, isArray: Ny, isBoolean: wh, isBuffer: SR, isDate: Pf, isError: kl, isFunction: Ml, isNull: wu, isNullOrUndefined: bR, isNumber: ky, isObject: Sa, isPrimitive: _R, isRegExp: Nl, isString: Zl, isSymbol: ER, isUndefined: es, log: xR, promisify: Dy }));
15294
15294
  function $8() {
15295
15295
  if (PE) return Hp;
15296
15296
  function t(c, l) {
@@ -16156,7 +16156,7 @@ function NR() {
16156
16156
  })), l(B, h, m);
16157
16157
  }), Yp;
16158
16158
  }
16159
- var kR = xs, vh = xa.codes, Y8 = vh.ERR_METHOD_NOT_IMPLEMENTED, J8 = vh.ERR_MULTIPLE_CALLBACK, Z8 = vh.ERR_TRANSFORM_ALREADY_TRANSFORMING, X8 = vh.ERR_TRANSFORM_WITH_LENGTH_0, Jd = Sc();
16159
+ var kR = As, vh = xa.codes, Y8 = vh.ERR_METHOD_NOT_IMPLEMENTED, J8 = vh.ERR_MULTIPLE_CALLBACK, Z8 = vh.ERR_TRANSFORM_ALREADY_TRANSFORMING, X8 = vh.ERR_TRANSFORM_WITH_LENGTH_0, Jd = Sc();
16160
16160
  function Q8(t, e) {
16161
16161
  var n = this._transformState;
16162
16162
  n.transforming = !1;
@@ -16166,8 +16166,8 @@ function Q8(t, e) {
16166
16166
  var i = this._readableState;
16167
16167
  i.reading = !1, (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
16168
16168
  }
16169
- function xs(t) {
16170
- if (!(this instanceof xs)) return new xs(t);
16169
+ function As(t) {
16170
+ if (!(this instanceof As)) return new As(t);
16171
16171
  Jd.call(this, t), this._transformState = { afterTransform: Q8.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish", e4);
16172
16172
  }
16173
16173
  function e4() {
@@ -16182,20 +16182,20 @@ function jE(t, e, n) {
16182
16182
  if (t._transformState.transforming) throw new Z8();
16183
16183
  return t.push(null);
16184
16184
  }
16185
- vu(xs, Jd), xs.prototype.push = function(t, e) {
16185
+ vu(As, Jd), As.prototype.push = function(t, e) {
16186
16186
  return this._transformState.needTransform = !1, Jd.prototype.push.call(this, t, e);
16187
- }, xs.prototype._transform = function(t, e, n) {
16187
+ }, As.prototype._transform = function(t, e, n) {
16188
16188
  n(new Y8("_transform()"));
16189
- }, xs.prototype._write = function(t, e, n) {
16189
+ }, As.prototype._write = function(t, e, n) {
16190
16190
  var r = this._transformState;
16191
16191
  if (r.writecb = n, r.writechunk = t, r.writeencoding = e, !r.transforming) {
16192
16192
  var i = this._readableState;
16193
16193
  (r.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
16194
16194
  }
16195
- }, xs.prototype._read = function(t) {
16195
+ }, As.prototype._read = function(t) {
16196
16196
  var e = this._transformState;
16197
16197
  e.writechunk === null || e.transforming ? e.needTransform = !0 : (e.transforming = !0, this._transform(e.writechunk, e.writeencoding, e.afterTransform));
16198
- }, xs.prototype._destroy = function(t, e) {
16198
+ }, As.prototype._destroy = function(t, e) {
16199
16199
  Jd.prototype._destroy.call(this, t, (function(n) {
16200
16200
  e(n);
16201
16201
  }));
@@ -16371,9 +16371,9 @@ let p4 = class extends Zp.Duplex {
16371
16371
  };
16372
16372
  Nf.ObjectMultiplex = p4;
16373
16373
  var g4 = ph(Nf.ObjectMultiplex);
16374
- const zi = (t) => t !== null && typeof t == "object" && typeof t.pipe == "function";
16375
- zi.writable = (t) => zi(t) && t.writable !== !1 && typeof t._write == "function" && typeof t._writableState == "object", zi.readable = (t) => zi(t) && t.readable !== !1 && typeof t._read == "function" && typeof t._readableState == "object", zi.duplex = (t) => zi.writable(t) && zi.readable(t), zi.transform = (t) => zi.duplex(t) && typeof t._transform == "function";
16376
- var qi, m4 = zi, y4 = class extends N8 {
16374
+ const qi = (t) => t !== null && typeof t == "object" && typeof t.pipe == "function";
16375
+ qi.writable = (t) => qi(t) && t.writable !== !1 && typeof t._write == "function" && typeof t._writableState == "object", qi.readable = (t) => qi(t) && t.readable !== !1 && typeof t._read == "function" && typeof t._readableState == "object", qi.duplex = (t) => qi.writable(t) && qi.readable(t), qi.transform = (t) => qi.duplex(t) && typeof t._transform == "function";
16376
+ var Wi, m4 = qi, y4 = class extends N8 {
16377
16377
  constructor(t, { jsonRpcStreamName: e, logger: n = console, maxEventListeners: r = 100, rpcMiddleware: i = [] }) {
16378
16378
  if (super({ logger: n, maxEventListeners: r, rpcMiddleware: i }), !m4.duplex(t)) throw new Error(Pn.errors.invalidDuplexStream());
16379
16379
  this._handleStreamDisconnect = this._handleStreamDisconnect.bind(this);
@@ -16402,7 +16402,7 @@ ${e.stack}`), this._log.warn(n), this.listenerCount("error") > 0 && this.emit("e
16402
16402
  }
16403
16403
  }, w4 = class extends y4 {
16404
16404
  constructor(t, { jsonRpcStreamName: e = "metamask-provider", logger: n = console, maxEventListeners: r = 100, shouldSendMetadata: i } = {}) {
16405
- if (super(t, { jsonRpcStreamName: e, logger: n, maxEventListeners: r, rpcMiddleware: x8(n) }), this._sentWarnings = { chainId: !1, networkVersion: !1, selectedAddress: !1, enable: !1, experimentalMethods: !1, send: !1, events: { close: !1, data: !1, networkChanged: !1, notification: !1 } }, $g(this, qi, void 0), this._initializeStateAsync(), Ss(this, qi, null), this.isMetaMask = !0, this._sendSync = this._sendSync.bind(this), this.enable = this.enable.bind(this), this.send = this.send.bind(this), this.sendAsync = this.sendAsync.bind(this), this._warnOfDeprecation = this._warnOfDeprecation.bind(this), this._metamask = this._getExperimentalApi(), this._jsonRpcConnection.events.on("notification", ((s) => {
16405
+ if (super(t, { jsonRpcStreamName: e, logger: n, maxEventListeners: r, rpcMiddleware: x8(n) }), this._sentWarnings = { chainId: !1, networkVersion: !1, selectedAddress: !1, enable: !1, experimentalMethods: !1, send: !1, events: { close: !1, data: !1, networkChanged: !1, notification: !1 } }, $g(this, Wi, void 0), this._initializeStateAsync(), xs(this, Wi, null), this.isMetaMask = !0, this._sendSync = this._sendSync.bind(this), this.enable = this.enable.bind(this), this.send = this.send.bind(this), this.sendAsync = this.sendAsync.bind(this), this._warnOfDeprecation = this._warnOfDeprecation.bind(this), this._metamask = this._getExperimentalApi(), this._jsonRpcConnection.events.on("notification", ((s) => {
16406
16406
  const { method: o } = s;
16407
16407
  dR.includes(o) && (this.emit("data", s), this.emit("notification", s.params.result));
16408
16408
  })), i) if (document.readyState === "complete") CE(this._rpcEngine, this._log);
@@ -16417,7 +16417,7 @@ ${e.stack}`), this._log.warn(n), this.listenerCount("error") > 0 && this.emit("e
16417
16417
  return this._sentWarnings.chainId || (this._log.warn(Pn.warnings.chainIdDeprecation), this._sentWarnings.chainId = !0), super.chainId;
16418
16418
  }
16419
16419
  get networkVersion() {
16420
- return this._sentWarnings.networkVersion || (this._log.warn(Pn.warnings.networkVersionDeprecation), this._sentWarnings.networkVersion = !0), Ji(this, qi);
16420
+ return this._sentWarnings.networkVersion || (this._log.warn(Pn.warnings.networkVersionDeprecation), this._sentWarnings.networkVersion = !0), Zi(this, Wi);
16421
16421
  }
16422
16422
  get selectedAddress() {
16423
16423
  return this._sentWarnings.selectedAddress || (this._log.warn(Pn.warnings.selectedAddressDeprecation), this._sentWarnings.selectedAddress = !0), super.selectedAddress;
@@ -16441,7 +16441,7 @@ ${e.stack}`), this._log.warn(n), this.listenerCount("error") > 0 && this.emit("e
16441
16441
  return this._warnOfDeprecation(t), super.prependOnceListener(t, e);
16442
16442
  }
16443
16443
  _handleDisconnect(t, e) {
16444
- super._handleDisconnect(t, e), Ji(this, qi) && !t && Ss(this, qi, null);
16444
+ super._handleDisconnect(t, e), Zi(this, Wi) && !t && xs(this, Wi, null);
16445
16445
  }
16446
16446
  _warnOfDeprecation(t) {
16447
16447
  this._sentWarnings?.events[t] === !1 && (this._log.warn(Pn.warnings.events[t]), this._sentWarnings.events[t] = !0);
@@ -16477,7 +16477,7 @@ ${e.stack}`), this._log.warn(n), this.listenerCount("error") > 0 && this.emit("e
16477
16477
  this._rpcRequest(t, hR), e = !0;
16478
16478
  break;
16479
16479
  case "net_version":
16480
- e = Ji(this, qi) ?? null;
16480
+ e = Zi(this, Wi) ?? null;
16481
16481
  break;
16482
16482
  default:
16483
16483
  throw new Error(Pn.errors.unsupportedSync(t.method));
@@ -16495,10 +16495,10 @@ ${e.stack}`), this._log.warn(n), this.listenerCount("error") > 0 && this.emit("e
16495
16495
  } }, { get: (t, e, ...n) => (this._sentWarnings.experimentalMethods || (this._log.warn(Pn.warnings.experimentalMethods), this._sentWarnings.experimentalMethods = !0), Reflect.get(t, e, ...n)) });
16496
16496
  }
16497
16497
  _handleChainChanged({ chainId: t, networkVersion: e } = {}) {
16498
- super._handleChainChanged({ chainId: t, networkVersion: e }), this._state.isConnected && e !== Ji(this, qi) && (Ss(this, qi, e), this._state.initialized && this.emit("networkChanged", Ji(this, qi)));
16498
+ super._handleChainChanged({ chainId: t, networkVersion: e }), this._state.isConnected && e !== Zi(this, Wi) && (xs(this, Wi, e), this._state.initialized && this.emit("networkChanged", Zi(this, Wi)));
16499
16499
  }
16500
16500
  };
16501
- qi = /* @__PURE__ */ new WeakMap();
16501
+ Wi = /* @__PURE__ */ new WeakMap();
16502
16502
  const ve = Mr("MM_SDK");
16503
16503
  let GE;
16504
16504
  ve.color = "#FFAC1C";
@@ -17466,11 +17466,11 @@ var eu, Aa = { name: "@metamask/sdk", version: "0.34.0", description: "", homepa
17466
17466
  (function(t) {
17467
17467
  t.INPAGE = "metamask-inpage", t.CONTENT_SCRIPT = "metamask-contentscript", t.PROVIDER = "metamask-provider";
17468
17468
  })(eu || (eu = {}));
17469
- const tu = "https://metamask.app.link/connect", nu = "metamask://connect", YE = { NAME: "MetaMask", RDNS: ["io.metamask", "io.metamask.flask"] }, _4 = /(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u, lt = { METAMASK_GETPROVIDERSTATE: "metamask_getProviderState", METAMASK_CONNECTSIGN: "metamask_connectSign", METAMASK_CONNECTWITH: "metamask_connectWith", METAMASK_OPEN: "metamask_open", METAMASK_BATCH: "metamask_batch", PERSONAL_SIGN: "personal_sign", WALLET_REQUESTPERMISSIONS: "wallet_requestPermissions", WALLET_REVOKEPERMISSIONS: "wallet_revokePermissions", WALLET_GETPERMISSIONS: "wallet_getPermissions", WALLET_WATCHASSET: "wallet_watchAsset", WALLET_ADDETHEREUMCHAIN: "wallet_addEthereumChain", WALLET_SWITCHETHETHEREUMCHAIN: "wallet_switchEthereumChain", ETH_REQUESTACCOUNTS: "eth_requestAccounts", ETH_ACCOUNTS: "eth_accounts", ETH_CHAINID: "eth_chainId", ETH_SENDTRANSACTION: "eth_sendTransaction", ETH_SIGNTYPEDDATA: "eth_signTypedData", ETH_SIGNTYPEDDATA_V3: "eth_signTypedData_v3", ETH_SIGNTYPEDDATA_V4: "eth_signTypedData_v4", ETH_SIGNTRANSACTION: "eth_signTransaction", ETH_SIGN: "eth_sign", PERSONAL_EC_RECOVER: "personal_ecRecover" }, ru = { [lt.ETH_REQUESTACCOUNTS]: !0, [lt.ETH_SENDTRANSACTION]: !0, [lt.ETH_SIGNTRANSACTION]: !0, [lt.ETH_SIGN]: !0, [lt.PERSONAL_SIGN]: !0, [lt.ETH_ACCOUNTS]: !1, [lt.ETH_CHAINID]: !1, [lt.PERSONAL_SIGN]: !0, [lt.ETH_SIGNTYPEDDATA]: !0, [lt.ETH_SIGNTYPEDDATA_V3]: !0, [lt.ETH_SIGNTYPEDDATA_V4]: !0, [lt.WALLET_REQUESTPERMISSIONS]: !0, [lt.WALLET_GETPERMISSIONS]: !0, [lt.WALLET_WATCHASSET]: !0, [lt.WALLET_ADDETHEREUMCHAIN]: !0, [lt.WALLET_SWITCHETHETHEREUMCHAIN]: !0, [lt.METAMASK_CONNECTSIGN]: !0, [lt.METAMASK_CONNECTWITH]: !0, [lt.PERSONAL_EC_RECOVER]: !0, [lt.METAMASK_BATCH]: !0, [lt.METAMASK_OPEN]: !0 }, S4 = Object.keys(ru).filter(((t) => ru[t] === !0)).map(((t) => t.toLowerCase())), VR = ["eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sign"].map(((t) => t.toLowerCase())), Xp = ".sdk-comm", Bf = "providerType", Vg = ".MMSDK_cached_address", Hg = ".MMSDK_cached_chainId", Fi = { CHAIN_CHANGED: "chainChanged", ACCOUNTS_CHANGED: "accountsChanged", DISCONNECT: "disconnect", CONNECT: "connect", CONNECTED: "connected" }, x4 = 1e6;
17470
- var ss;
17469
+ const tu = "https://metamask.app.link/connect", nu = "metamask://connect", YE = { NAME: "MetaMask", RDNS: ["io.metamask", "io.metamask.flask"] }, _4 = /(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u, lt = { METAMASK_GETPROVIDERSTATE: "metamask_getProviderState", METAMASK_CONNECTSIGN: "metamask_connectSign", METAMASK_CONNECTWITH: "metamask_connectWith", METAMASK_OPEN: "metamask_open", METAMASK_BATCH: "metamask_batch", PERSONAL_SIGN: "personal_sign", WALLET_REQUESTPERMISSIONS: "wallet_requestPermissions", WALLET_REVOKEPERMISSIONS: "wallet_revokePermissions", WALLET_GETPERMISSIONS: "wallet_getPermissions", WALLET_WATCHASSET: "wallet_watchAsset", WALLET_ADDETHEREUMCHAIN: "wallet_addEthereumChain", WALLET_SWITCHETHETHEREUMCHAIN: "wallet_switchEthereumChain", ETH_REQUESTACCOUNTS: "eth_requestAccounts", ETH_ACCOUNTS: "eth_accounts", ETH_CHAINID: "eth_chainId", ETH_SENDTRANSACTION: "eth_sendTransaction", ETH_SIGNTYPEDDATA: "eth_signTypedData", ETH_SIGNTYPEDDATA_V3: "eth_signTypedData_v3", ETH_SIGNTYPEDDATA_V4: "eth_signTypedData_v4", ETH_SIGNTRANSACTION: "eth_signTransaction", ETH_SIGN: "eth_sign", PERSONAL_EC_RECOVER: "personal_ecRecover" }, ru = { [lt.ETH_REQUESTACCOUNTS]: !0, [lt.ETH_SENDTRANSACTION]: !0, [lt.ETH_SIGNTRANSACTION]: !0, [lt.ETH_SIGN]: !0, [lt.PERSONAL_SIGN]: !0, [lt.ETH_ACCOUNTS]: !1, [lt.ETH_CHAINID]: !1, [lt.PERSONAL_SIGN]: !0, [lt.ETH_SIGNTYPEDDATA]: !0, [lt.ETH_SIGNTYPEDDATA_V3]: !0, [lt.ETH_SIGNTYPEDDATA_V4]: !0, [lt.WALLET_REQUESTPERMISSIONS]: !0, [lt.WALLET_GETPERMISSIONS]: !0, [lt.WALLET_WATCHASSET]: !0, [lt.WALLET_ADDETHEREUMCHAIN]: !0, [lt.WALLET_SWITCHETHETHEREUMCHAIN]: !0, [lt.METAMASK_CONNECTSIGN]: !0, [lt.METAMASK_CONNECTWITH]: !0, [lt.PERSONAL_EC_RECOVER]: !0, [lt.METAMASK_BATCH]: !0, [lt.METAMASK_OPEN]: !0 }, S4 = Object.keys(ru).filter(((t) => ru[t] === !0)).map(((t) => t.toLowerCase())), VR = ["eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sign"].map(((t) => t.toLowerCase())), Xp = ".sdk-comm", Bf = "providerType", Vg = ".MMSDK_cached_address", Hg = ".MMSDK_cached_chainId", Ki = { CHAIN_CHANGED: "chainChanged", ACCOUNTS_CHANGED: "accountsChanged", DISCONNECT: "disconnect", CONNECT: "connect", CONNECTED: "connected" }, x4 = 1e6;
17470
+ var os;
17471
17471
  (function(t) {
17472
17472
  t.TERMINATE = "terminate", t.EXTENSION = "extension", t.INITIALIZED = "initialized";
17473
- })(ss || (ss = {}));
17473
+ })(os || (os = {}));
17474
17474
  const A4 = typeof window < "u" && window.localStorage;
17475
17475
  function R4({ instance: t, msg: e }) {
17476
17476
  return _e(this, void 0, void 0, (function* () {
@@ -17500,7 +17500,7 @@ function JE(t) {
17500
17500
  } catch (r) {
17501
17501
  return void console.warn("[MetaMaskSDK: connectWithExtensionProvider()] can't request accounts error", r);
17502
17502
  }
17503
- localStorage.setItem(Bf, "extension"), t.extensionActive = !0, t.emit(Vr.ProviderUpdate, ss.EXTENSION), t.options.enableAnalytics && ((n = t.analytics) === null || n === void 0 || n.send({ event: Dn.SDK_USE_EXTENSION }));
17503
+ localStorage.setItem(Bf, "extension"), t.extensionActive = !0, t.emit(Vr.ProviderUpdate, os.EXTENSION), t.options.enableAnalytics && ((n = t.analytics) === null || n === void 0 || n.send({ event: Dn.SDK_USE_EXTENSION }));
17504
17504
  }));
17505
17505
  }
17506
17506
  function Df(t) {
@@ -17663,11 +17663,11 @@ const HR = (t) => new Promise(((e) => {
17663
17663
  a?.isAuthorized() && (ve("[initializeMobileProvider: sendRequest()] already authorized"), Ue(!0)), a?.getConnector().once(Pe.AUTHORIZED, (() => {
17664
17664
  Ue(!0);
17665
17665
  })), o.once(Pe.PROVIDER_UPDATE, ((Oe) => {
17666
- ve(`[initializeMobileProvider: sendRequest()] PROVIDER_UPDATE --- remote provider request interupted type=${Oe}`), Oe === ss.EXTENSION ? Le(Pe.PROVIDER_UPDATE) : Le(new Error("Connection Terminated"));
17666
+ ve(`[initializeMobileProvider: sendRequest()] PROVIDER_UPDATE --- remote provider request interupted type=${Oe}`), Oe === os.EXTENSION ? Le(Pe.PROVIDER_UPDATE) : Le(new Error("Connection Terminated"));
17667
17667
  }));
17668
17668
  }));
17669
17669
  } catch (Ue) {
17670
- if (ss.EXTENSION === Ue) {
17670
+ if (os.EXTENSION === Ue) {
17671
17671
  if (ve(`[initializeMobileProvider: sendRequest()] extension provider detect: re-create ${L} on the active provider`), L.toLowerCase() === lt.METAMASK_CONNECTSIGN.toLowerCase()) {
17672
17672
  const Le = yield (_ = o.getProvider()) === null || _ === void 0 ? void 0 : _.request({ method: lt.ETH_REQUESTACCOUNTS, params: [] });
17673
17673
  if (!Le.length) throw new Error("SDK state invalid -- undefined accounts");
@@ -17795,7 +17795,7 @@ function XE(t) {
17795
17795
  if (!localStorage) return "";
17796
17796
  let w = (f = localStorage.getItem(y)) !== null && f !== void 0 ? f : "";
17797
17797
  if (!w) {
17798
- w = Rs();
17798
+ w = Is();
17799
17799
  try {
17800
17800
  localStorage.setItem(y, w);
17801
17801
  } catch {
@@ -18255,7 +18255,7 @@ function z4(t, e, n) {
18255
18255
  (k = a.analytics) === null || k === void 0 || k.send({ event: y, params: S });
18256
18256
  } }), (g = (f = a.installModal) === null || f === void 0 ? void 0 : f.mount) === null || g === void 0 || g.call(f, l);
18257
18257
  })(t, e, o), e.sdk.once(Pe.PROVIDER_UPDATE, ((a) => _e(this, void 0, void 0, (function* () {
18258
- if (ve("[RemoteConnection: connectWithModalInstaller()] once provider_update -- resolving startConnection promise"), a === ss.TERMINATE) {
18258
+ if (ve("[RemoteConnection: connectWithModalInstaller()] once provider_update -- resolving startConnection promise"), a === os.TERMINATE) {
18259
18259
  const c = { code: 4001, message: "User rejected the request." };
18260
18260
  return clearTimeout(r), void s(c);
18261
18261
  }
@@ -18485,23 +18485,23 @@ function G4(t) {
18485
18485
  if (typeof window < "u" && window.ethereum && !(!((F = S.platformManager) === null || F === void 0) && F.isMetaMaskMobileWebView())) {
18486
18486
  L = localStorage.getItem(Bf) === "extension";
18487
18487
  try {
18488
- U = yield B4({ mustBeMetaMask: !0, sdkInstance: S }), window.extension = U, U.on(Fi.CHAIN_CHANGED, ((j) => {
18489
- ve(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE chainChanged chainId=${j}`), S.sdkProvider && S.getMobileProvider().emit(Fi.CHAIN_CHANGED, j);
18490
- })), U.on(Fi.ACCOUNTS_CHANGED, ((j) => _e(this, void 0, void 0, (function* () {
18488
+ U = yield B4({ mustBeMetaMask: !0, sdkInstance: S }), window.extension = U, U.on(Ki.CHAIN_CHANGED, ((j) => {
18489
+ ve(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE chainChanged chainId=${j}`), S.sdkProvider && S.getMobileProvider().emit(Ki.CHAIN_CHANGED, j);
18490
+ })), U.on(Ki.ACCOUNTS_CHANGED, ((j) => _e(this, void 0, void 0, (function* () {
18491
18491
  var T;
18492
18492
  ve(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE accountsChanged accounts=${j}`);
18493
18493
  const p = !!S.sdkProvider, v = !!S.extensionActive;
18494
- if (p && S.getMobileProvider().emit(Fi.ACCOUNTS_CHANGED, j), v && j?.length === 0 && (yield (T = S.getProvider()) === null || T === void 0 ? void 0 : T.request({ method: lt.WALLET_GETPERMISSIONS, params: [] })).length === 0) try {
18494
+ if (p && S.getMobileProvider().emit(Ki.ACCOUNTS_CHANGED, j), v && j?.length === 0 && (yield (T = S.getProvider()) === null || T === void 0 ? void 0 : T.request({ method: lt.WALLET_GETPERMISSIONS, params: [] })).length === 0) try {
18495
18495
  yield S.terminate();
18496
18496
  } catch (R) {
18497
18497
  ve("[MetaMaskSDK: setupExtensionPreferences()] error terminating on permissions revoked", R);
18498
18498
  }
18499
- })))), U.on(Fi.DISCONNECT, ((j) => {
18500
- ve(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE disconnect error=${j}`), S.sdkProvider && S.getMobileProvider().emit(Fi.DISCONNECT, j);
18501
- })), U.on(Fi.CONNECT, ((j) => {
18502
- ve(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connect args=${j}`), S.sdkProvider && S.getMobileProvider().emit(Fi.CONNECT, j);
18503
- })), U.on(Fi.CONNECTED, ((j) => {
18504
- ve("[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connected", j), S.sdkProvider && S.getMobileProvider().emit(Fi.CONNECTED, j);
18499
+ })))), U.on(Ki.DISCONNECT, ((j) => {
18500
+ ve(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE disconnect error=${j}`), S.sdkProvider && S.getMobileProvider().emit(Ki.DISCONNECT, j);
18501
+ })), U.on(Ki.CONNECT, ((j) => {
18502
+ ve(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connect args=${j}`), S.sdkProvider && S.getMobileProvider().emit(Ki.CONNECT, j);
18503
+ })), U.on(Ki.CONNECTED, ((j) => {
18504
+ ve("[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connected", j), S.sdkProvider && S.getMobileProvider().emit(Ki.CONNECTED, j);
18505
18505
  }));
18506
18506
  } catch {
18507
18507
  window.extension = void 0;
@@ -18537,7 +18537,7 @@ function G4(t) {
18537
18537
  } catch (S) {
18538
18538
  console.error("[MetaMaskSDK: setupRemoteConnectionAndInstaller()] Error while checking installation", S);
18539
18539
  }
18540
- t.emit(Vr.ProviderUpdate, ss.INITIALIZED);
18540
+ t.emit(Vr.ProviderUpdate, os.INITIALIZED);
18541
18541
  }
18542
18542
  }));
18543
18543
  }
@@ -18635,9 +18635,9 @@ class J4 extends pk {
18635
18635
  } catch (s) {
18636
18636
  ve("[MetaMaskSDK: terminate()] error revoking permissions", s);
18637
18637
  }
18638
- return e.options.extensionOnly ? (e.emit(Vr.ProviderUpdate, ss.TERMINATE), void ve("[MetaMaskSDK: terminate()] extensionOnly --- prevent switching providers")) : (e.activeProvider = e.sdkProvider, window.ethereum = e.activeProvider, e.extensionActive = !1, void e.emit(Vr.ProviderUpdate, ss.TERMINATE));
18638
+ return e.options.extensionOnly ? (e.emit(Vr.ProviderUpdate, os.TERMINATE), void ve("[MetaMaskSDK: terminate()] extensionOnly --- prevent switching providers")) : (e.activeProvider = e.sdkProvider, window.ethereum = e.activeProvider, e.extensionActive = !1, void e.emit(Vr.ProviderUpdate, os.TERMINATE));
18639
18639
  }
18640
- e.emit(Vr.ProviderUpdate, ss.TERMINATE), ve(`[MetaMaskSDK: terminate()] remoteConnection=${e.remoteConnection}`), (i = e.remoteConnection) === null || i === void 0 || i.disconnect({ terminate: !0, sendMessage: !0 });
18640
+ e.emit(Vr.ProviderUpdate, os.TERMINATE), ve(`[MetaMaskSDK: terminate()] remoteConnection=${e.remoteConnection}`), (i = e.remoteConnection) === null || i === void 0 || i.disconnect({ terminate: !0, sendMessage: !0 });
18641
18641
  }
18642
18642
  }));
18643
18643
  })(this);
@@ -18685,7 +18685,7 @@ class J4 extends pk {
18685
18685
  return _e(this, void 0, void 0, (function* () {
18686
18686
  if (this._anonId) return this._anonId;
18687
18687
  let r;
18688
- return r = !((e = this.platformManager) === null || e === void 0) && e.isBrowser() ? this.getBrowserAnonId() : !((n = this.platformManager) === null || n === void 0) && n.isReactNative() ? yield this.getReactNativeAnonId() : Rs(), this._anonId = r, r;
18688
+ return r = !((e = this.platformManager) === null || e === void 0) && e.isBrowser() ? this.getBrowserAnonId() : !((n = this.platformManager) === null || n === void 0) && n.isReactNative() ? yield this.getReactNativeAnonId() : Is(), this._anonId = r, r;
18689
18689
  }));
18690
18690
  }
18691
18691
  getBrowserAnonId() {
@@ -18693,10 +18693,10 @@ class J4 extends pk {
18693
18693
  try {
18694
18694
  const n = localStorage.getItem(e);
18695
18695
  if (n) return n;
18696
- const r = Rs();
18696
+ const r = Is();
18697
18697
  return localStorage.setItem(e, r), r;
18698
18698
  } catch (n) {
18699
- return console.error("[MetaMaskSDK: getBrowserAnonId()] LocalStorage access error:", n), Rs();
18699
+ return console.error("[MetaMaskSDK: getBrowserAnonId()] LocalStorage access error:", n), Is();
18700
18700
  }
18701
18701
  }
18702
18702
  getReactNativeAnonId() {
@@ -18705,10 +18705,10 @@ class J4 extends pk {
18705
18705
  try {
18706
18706
  const n = require("@react-native-async-storage/async-storage").default, r = yield n.getItem(e);
18707
18707
  if (r) return r;
18708
- const i = Rs();
18708
+ const i = Is();
18709
18709
  return yield n.setItem(e, i), i;
18710
18710
  } catch (n) {
18711
- return console.error("[MetaMaskSDK: getReactNativeAnonId()] Error accessing AsyncStorage:", n), Rs();
18711
+ return console.error("[MetaMaskSDK: getReactNativeAnonId()] Error accessing AsyncStorage:", n), Is();
18712
18712
  }
18713
18713
  }));
18714
18714
  }
@@ -18817,7 +18817,7 @@ var Z4 = Object.freeze({ __proto__: null, StorageManagerWeb: class {
18817
18817
  }
18818
18818
  } });
18819
18819
  const X4 = "hydrated", Q4 = !1, eB = !0;
18820
- var tB = Object.defineProperty, Fy = /* @__PURE__ */ new WeakMap(), xo = (t) => Fy.get(t), Ky = (t, e) => Fy.set(e.$lazyInstance$ = t, e), o1 = (t, e) => e in t, ua = (t, e) => (0, console.error)(t, e), Qp = /* @__PURE__ */ new Map(), Zd = /* @__PURE__ */ new Map(), YR = "slot-fb{display:contents}slot-fb[hidden]{display:none}", bh = typeof window < "u" ? window : {}, es = bh.document || { head: {} }, nr = { $flags$: 0, $resourcesUrl$: "", jmp: (t) => t(), raf: (t) => requestAnimationFrame(t), ael: (t, e, n, r) => t.addEventListener(e, n, r), rel: (t, e, n, r) => t.removeEventListener(e, n, r), ce: (t, e) => new CustomEvent(t, e) }, JR = (() => {
18820
+ var tB = Object.defineProperty, Fy = /* @__PURE__ */ new WeakMap(), xo = (t) => Fy.get(t), Ky = (t, e) => Fy.set(e.$lazyInstance$ = t, e), o1 = (t, e) => e in t, ua = (t, e) => (0, console.error)(t, e), Qp = /* @__PURE__ */ new Map(), Zd = /* @__PURE__ */ new Map(), YR = "slot-fb{display:contents}slot-fb[hidden]{display:none}", bh = typeof window < "u" ? window : {}, ts = bh.document || { head: {} }, nr = { $flags$: 0, $resourcesUrl$: "", jmp: (t) => t(), raf: (t) => requestAnimationFrame(t), ael: (t, e, n, r) => t.addEventListener(e, n, r), rel: (t, e, n, r) => t.removeEventListener(e, n, r), ce: (t, e) => new CustomEvent(t, e) }, JR = (() => {
18821
18821
  try {
18822
18822
  return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
18823
18823
  } catch {
@@ -18891,13 +18891,13 @@ var Hy, sB = (t) => {
18891
18891
  const i = ((s, o, a) => {
18892
18892
  var c;
18893
18893
  const l = tI(o), u = Zd.get(l);
18894
- if (s = s.nodeType === 11 ? s : es, u) if (typeof u == "string") {
18894
+ if (s = s.nodeType === 11 ? s : ts, u) if (typeof u == "string") {
18895
18895
  s = s.head || s;
18896
18896
  let d, f = d1.get(s);
18897
18897
  if (f || d1.set(s, f = /* @__PURE__ */ new Set()), !f.has(l)) {
18898
18898
  {
18899
- d = es.createElement("style"), d.innerHTML = u;
18900
- const g = (c = nr.$nonce$) != null ? c : XR(es);
18899
+ d = ts.createElement("style"), d.innerHTML = u;
18900
+ const g = (c = nr.$nonce$) != null ? c : XR(ts);
18901
18901
  if (g != null && d.setAttribute("nonce", g), !(1 & o.$flags$)) if (s.nodeName === "HEAD") {
18902
18902
  const y = s.querySelectorAll("link[rel=preconnect]"), w = y.length > 0 ? y[y.length - 1].nextSibling : s.querySelector("style");
18903
18903
  s.insertBefore(d, w);
@@ -18953,9 +18953,9 @@ function p1(t) {
18953
18953
  var mi = !1, zy = (t, e, n, r) => {
18954
18954
  const i = e.$children$[n];
18955
18955
  let s, o, a = 0;
18956
- if (i.$text$ !== null) s = i.$elm$ = es.createTextNode(i.$text$);
18956
+ if (i.$text$ !== null) s = i.$elm$ = ts.createTextNode(i.$text$);
18957
18957
  else {
18958
- if (mi || (mi = i.$tag$ === "svg"), s = i.$elm$ = es.createElementNS(mi ? "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", i.$tag$), mi && i.$tag$ === "foreignObject" && (mi = !1), rI(null, i, mi), s.getRootNode().querySelector("body"), i.$children$) for (a = 0; a < i.$children$.length; ++a) o = zy(t, i, a), o && s.appendChild(o);
18958
+ if (mi || (mi = i.$tag$ === "svg"), s = i.$elm$ = ts.createElementNS(mi ? "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", i.$tag$), mi && i.$tag$ === "foreignObject" && (mi = !1), rI(null, i, mi), s.getRootNode().querySelector("body"), i.$children$) for (a = 0; a < i.$children$.length; ++a) o = zy(t, i, a), o && s.appendChild(o);
18959
18959
  i.$tag$ === "svg" ? mi = !1 : s.tagName === "foreignObject" && (mi = !0);
18960
18960
  }
18961
18961
  return s["s-hn"] = Hy, s;
@@ -19015,7 +19015,7 @@ var mi = !1, zy = (t, e, n, r) => {
19015
19015
  }, r = t.$lazyInstance$, i = t.$ancestorComponent$;
19016
19016
  64 & t.$flags$ ? n() : (t.$flags$ |= 64, oI(e), Wy(r, "componentDidLoad"), t.$onReadyResolve$(e), i || sI()), t.$onRenderResolve$ && (t.$onRenderResolve$(), t.$onRenderResolve$ = void 0), 512 & t.$flags$ && jy((() => qy(t, !1))), t.$flags$ &= -517;
19017
19017
  }, sI = (t) => {
19018
- oI(es.documentElement), jy((() => eI(bh, "appload", { detail: { namespace: "sdk-install-modal-web" } })));
19018
+ oI(ts.documentElement), jy((() => eI(bh, "appload", { detail: { namespace: "sdk-install-modal-web" } })));
19019
19019
  }, Wy = (t, e, n) => {
19020
19020
  if (t && t[e]) try {
19021
19021
  return t[e](n);
@@ -19142,9 +19142,9 @@ var mi = !1, zy = (t, e, n, r) => {
19142
19142
  Wy(t, "disconnectedCallback");
19143
19143
  }, _B = (t, e = {}) => {
19144
19144
  var n;
19145
- const r = [], i = e.exclude || [], s = bh.customElements, o = es.head, a = o.querySelector("meta[charset]"), c = es.createElement("style"), l = [];
19145
+ const r = [], i = e.exclude || [], s = bh.customElements, o = ts.head, a = o.querySelector("meta[charset]"), c = ts.createElement("style"), l = [];
19146
19146
  let u, d = !0;
19147
- Object.assign(nr, e), nr.$resourcesUrl$ = new URL(e.resourcesUrl || "./", es.baseURI).href;
19147
+ Object.assign(nr, e), nr.$resourcesUrl$ = new URL(e.resourcesUrl || "./", ts.baseURI).href;
19148
19148
  let f = !1;
19149
19149
  if (t.map(((g) => {
19150
19150
  g[1].map(((y) => {
@@ -19200,7 +19200,7 @@ var mi = !1, zy = (t, e, n, r) => {
19200
19200
  }));
19201
19201
  })), r.length > 0 && (f && (c.textContent += YR), c.textContent += r.sort() + "{visibility:hidden}.hydrated{visibility:inherit}", c.innerHTML.length)) {
19202
19202
  c.setAttribute("data-styles", "");
19203
- const g = (n = nr.$nonce$) != null ? n : XR(es);
19203
+ const g = (n = nr.$nonce$) != null ? n : XR(ts);
19204
19204
  g != null && c.setAttribute("nonce", g), o.insertBefore(c, a ? a.nextSibling : o.firstChild);
19205
19205
  }
19206
19206
  d = !1, l.length ? l.map(((g) => g.connectedCallback())) : nr.jmp((() => u = setTimeout(sI, 30)));
@@ -20639,7 +20639,7 @@ function QB(t, e = {}) {
20639
20639
  const n = new Uint8Array(1);
20640
20640
  return n[0] = Number(t), typeof e.size == "number" ? (Eu(n, { size: e.size }), jc(n, { size: e.size })) : n;
20641
20641
  }
20642
- const ms = {
20642
+ const ys = {
20643
20643
  zero: 48,
20644
20644
  nine: 57,
20645
20645
  A: 65,
@@ -20648,12 +20648,12 @@ const ms = {
20648
20648
  f: 102
20649
20649
  };
20650
20650
  function T1(t) {
20651
- if (t >= ms.zero && t <= ms.nine)
20652
- return t - ms.zero;
20653
- if (t >= ms.A && t <= ms.F)
20654
- return t - (ms.A - 10);
20655
- if (t >= ms.a && t <= ms.f)
20656
- return t - (ms.a - 10);
20651
+ if (t >= ys.zero && t <= ys.nine)
20652
+ return t - ys.zero;
20653
+ if (t >= ys.A && t <= ys.F)
20654
+ return t - (ys.A - 10);
20655
+ if (t >= ys.a && t <= ys.f)
20656
+ return t - (ys.a - 10);
20657
20657
  }
20658
20658
  function _I(t, e = {}) {
20659
20659
  let n = t;
@@ -20691,7 +20691,7 @@ function xI(t, e = !1) {
20691
20691
  return [r, i];
20692
20692
  }
20693
20693
  const O1 = (t, e, n) => t >>> n, P1 = (t, e, n) => t << 32 - n | e >>> n, La = (t, e, n) => t >>> n | e << 32 - n, Ua = (t, e, n) => t << 32 - n | e >>> n, md = (t, e, n) => t << 64 - n | e >>> n - 32, yd = (t, e, n) => t >>> n - 32 | e << 64 - n, nD = (t, e, n) => t << n | e >>> 32 - n, rD = (t, e, n) => e << n | t >>> 32 - n, iD = (t, e, n) => e << n - 32 | t >>> 64 - n, sD = (t, e, n) => t << n - 32 | e >>> 64 - n;
20694
- function ys(t, e, n, r) {
20694
+ function ws(t, e, n, r) {
20695
20695
  const i = (e >>> 0) + (r >>> 0);
20696
20696
  return { h: t + n + (i / 2 ** 32 | 0) | 0, l: i | 0 };
20697
20697
  }
@@ -20736,7 +20736,7 @@ function Lo(...t) {
20736
20736
  function r0(t) {
20737
20737
  return new DataView(t.buffer, t.byteOffset, t.byteLength);
20738
20738
  }
20739
- function Ki(t, e) {
20739
+ function ji(t, e) {
20740
20740
  return t << 32 - e | t >>> e;
20741
20741
  }
20742
20742
  const hD = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
@@ -20757,14 +20757,14 @@ function da(t) {
20757
20757
  e += mD[t[n]];
20758
20758
  return e;
20759
20759
  }
20760
- const ws = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
20760
+ const vs = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
20761
20761
  function k1(t) {
20762
- if (t >= ws._0 && t <= ws._9)
20763
- return t - ws._0;
20764
- if (t >= ws.A && t <= ws.F)
20765
- return t - (ws.A - 10);
20766
- if (t >= ws.a && t <= ws.f)
20767
- return t - (ws.a - 10);
20762
+ if (t >= vs._0 && t <= vs._9)
20763
+ return t - vs._0;
20764
+ if (t >= vs.A && t <= vs.F)
20765
+ return t - (vs.A - 10);
20766
+ if (t >= vs.a && t <= vs.f)
20767
+ return t - (vs.a - 10);
20768
20768
  }
20769
20769
  function $f(t) {
20770
20770
  if (typeof t != "string")
@@ -20793,7 +20793,7 @@ function yD(t) {
20793
20793
  function _h(t) {
20794
20794
  return typeof t == "string" && (t = yD(t)), Vs(t), t;
20795
20795
  }
20796
- function Zi(...t) {
20796
+ function Xi(...t) {
20797
20797
  let e = 0;
20798
20798
  for (let r = 0; r < t.length; r++) {
20799
20799
  const i = t[r];
@@ -21502,12 +21502,12 @@ let iL = class extends jI {
21502
21502
  for (let d = 0; d < 16; d++, n += 4)
21503
21503
  Xs[d] = e.getUint32(n, !1);
21504
21504
  for (let d = 16; d < 64; d++) {
21505
- const f = Xs[d - 15], g = Xs[d - 2], y = Ki(f, 7) ^ Ki(f, 18) ^ f >>> 3, w = Ki(g, 17) ^ Ki(g, 19) ^ g >>> 10;
21505
+ const f = Xs[d - 15], g = Xs[d - 2], y = ji(f, 7) ^ ji(f, 18) ^ f >>> 3, w = ji(g, 17) ^ ji(g, 19) ^ g >>> 10;
21506
21506
  Xs[d] = w + Xs[d - 7] + y + Xs[d - 16] | 0;
21507
21507
  }
21508
21508
  let { A: r, B: i, C: s, D: o, E: a, F: c, G: l, H: u } = this;
21509
21509
  for (let d = 0; d < 64; d++) {
21510
- const f = Ki(a, 6) ^ Ki(a, 11) ^ Ki(a, 25), g = u + f + tL(a, c, l) + rL[d] + Xs[d] | 0, w = (Ki(r, 2) ^ Ki(r, 13) ^ Ki(r, 22)) + nL(r, i, s) | 0;
21510
+ const f = ji(a, 6) ^ ji(a, 11) ^ ji(a, 25), g = u + f + tL(a, c, l) + rL[d] + Xs[d] | 0, w = (ji(r, 2) ^ ji(r, 13) ^ ji(r, 22)) + nL(r, i, s) | 0;
21511
21511
  u = l, l = c, c = a, a = o + g | 0, o = s, s = i, i = r, r = g + w | 0;
21512
21512
  }
21513
21513
  r = r + this.A | 0, i = i + this.B | 0, s = s + this.C | 0, o = o + this.D | 0, a = a + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, u = u + this.H | 0, this.set(r, i, s, o, a, c, l, u);
@@ -21624,11 +21624,11 @@ let aL = class extends jI {
21624
21624
  let { Ah: r, Al: i, Bh: s, Bl: o, Ch: a, Cl: c, Dh: l, Dl: u, Eh: d, El: f, Fh: g, Fl: y, Gh: w, Gl: E, Hh: b, Hl: k } = this;
21625
21625
  for (let S = 0; S < 80; S++) {
21626
21626
  const F = La(d, f, 14) ^ La(d, f, 18) ^ md(d, f, 41), B = Ua(d, f, 14) ^ Ua(d, f, 18) ^ yd(d, f, 41), z = d & g ^ ~d & w, X = f & y ^ ~f & E, Y = uD(k, B, X, oL[S], eo[S]), U = dD(Y, b, F, z, sL[S], Qs[S]), L = Y | 0, H = La(r, i, 28) ^ md(r, i, 34) ^ md(r, i, 39), j = Ua(r, i, 28) ^ yd(r, i, 34) ^ yd(r, i, 39), T = r & s ^ r & a ^ s & a, p = i & o ^ i & c ^ o & c;
21627
- b = w | 0, k = E | 0, w = g | 0, E = y | 0, g = d | 0, y = f | 0, { h: d, l: f } = ys(l | 0, u | 0, U | 0, L | 0), l = a | 0, u = c | 0, a = s | 0, c = o | 0, s = r | 0, o = i | 0;
21627
+ b = w | 0, k = E | 0, w = g | 0, E = y | 0, g = d | 0, y = f | 0, { h: d, l: f } = ws(l | 0, u | 0, U | 0, L | 0), l = a | 0, u = c | 0, a = s | 0, c = o | 0, s = r | 0, o = i | 0;
21628
21628
  const v = oD(L, j, p);
21629
21629
  r = aD(v, U, H, T), i = v | 0;
21630
21630
  }
21631
- ({ h: r, l: i } = ys(this.Ah | 0, this.Al | 0, r | 0, i | 0)), { h: s, l: o } = ys(this.Bh | 0, this.Bl | 0, s | 0, o | 0), { h: a, l: c } = ys(this.Ch | 0, this.Cl | 0, a | 0, c | 0), { h: l, l: u } = ys(this.Dh | 0, this.Dl | 0, l | 0, u | 0), { h: d, l: f } = ys(this.Eh | 0, this.El | 0, d | 0, f | 0), { h: g, l: y } = ys(this.Fh | 0, this.Fl | 0, g | 0, y | 0), { h: w, l: E } = ys(this.Gh | 0, this.Gl | 0, w | 0, E | 0), { h: b, l: k } = ys(this.Hh | 0, this.Hl | 0, b | 0, k | 0), this.set(r, i, s, o, a, c, l, u, d, f, g, y, w, E, b, k);
21631
+ ({ h: r, l: i } = ws(this.Ah | 0, this.Al | 0, r | 0, i | 0)), { h: s, l: o } = ws(this.Bh | 0, this.Bl | 0, s | 0, o | 0), { h: a, l: c } = ws(this.Ch | 0, this.Cl | 0, a | 0, c | 0), { h: l, l: u } = ws(this.Dh | 0, this.Dl | 0, l | 0, u | 0), { h: d, l: f } = ws(this.Eh | 0, this.El | 0, d | 0, f | 0), { h: g, l: y } = ws(this.Fh | 0, this.Fl | 0, g | 0, y | 0), { h: w, l: E } = ws(this.Gh | 0, this.Gl | 0, w | 0, E | 0), { h: b, l: k } = ws(this.Hh | 0, this.Hl | 0, b | 0, k | 0), this.set(r, i, s, o, a, c, l, u, d, f, g, y, w, E, b, k);
21632
21632
  }
21633
21633
  roundClean() {
21634
21634
  Lo(Qs, eo);
@@ -21798,11 +21798,11 @@ function WI(t, e) {
21798
21798
  const { toString: uL } = Object.prototype, { getPrototypeOf: iw } = Object, { iterator: Sh, toStringTag: GI } = Symbol, xh = /* @__PURE__ */ ((t) => (e) => {
21799
21799
  const n = uL.call(e);
21800
21800
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
21801
- })(/* @__PURE__ */ Object.create(null)), $i = (t) => (t = t.toLowerCase(), (e) => xh(e) === t), Ah = (t) => (e) => typeof e === t, { isArray: Vc } = Array, Ic = Ah("undefined");
21801
+ })(/* @__PURE__ */ Object.create(null)), Fi = (t) => (t = t.toLowerCase(), (e) => xh(e) === t), Ah = (t) => (e) => typeof e === t, { isArray: Vc } = Array, Ic = Ah("undefined");
21802
21802
  function Su(t) {
21803
21803
  return t !== null && !Ic(t) && t.constructor !== null && !Ic(t.constructor) && qr(t.constructor.isBuffer) && t.constructor.isBuffer(t);
21804
21804
  }
21805
- const YI = $i("ArrayBuffer");
21805
+ const YI = Fi("ArrayBuffer");
21806
21806
  function dL(t) {
21807
21807
  let e;
21808
21808
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && YI(t.buffer), e;
@@ -21820,11 +21820,11 @@ const fL = Ah("string"), qr = Ah("function"), JI = Ah("number"), xu = (t) => t !
21820
21820
  } catch {
21821
21821
  return !1;
21822
21822
  }
21823
- }, gL = $i("Date"), mL = $i("File"), yL = $i("Blob"), wL = $i("FileList"), vL = (t) => xu(t) && qr(t.pipe), bL = (t) => {
21823
+ }, gL = Fi("Date"), mL = Fi("File"), yL = Fi("Blob"), wL = Fi("FileList"), vL = (t) => xu(t) && qr(t.pipe), bL = (t) => {
21824
21824
  let e;
21825
21825
  return t && (typeof FormData == "function" && t instanceof FormData || qr(t.append) && ((e = xh(t)) === "formdata" || // detect form-data instance
21826
21826
  e === "object" && qr(t.toString) && t.toString() === "[object FormData]"));
21827
- }, EL = $i("URLSearchParams"), [_L, SL, xL, AL] = ["ReadableStream", "Request", "Response", "Headers"].map($i), RL = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
21827
+ }, EL = Fi("URLSearchParams"), [_L, SL, xL, AL] = ["ReadableStream", "Request", "Response", "Headers"].map(Fi), RL = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
21828
21828
  function Au(t, e, { allOwnKeys: n = !1 } = {}) {
21829
21829
  if (t === null || typeof t > "u")
21830
21830
  return;
@@ -21904,12 +21904,12 @@ const IL = (t, e, n, { allOwnKeys: r } = {}) => (Au(e, (i, s) => {
21904
21904
  for (; (n = t.exec(e)) !== null; )
21905
21905
  r.push(n);
21906
21906
  return r;
21907
- }, DL = $i("HTMLFormElement"), LL = (t) => t.toLowerCase().replace(
21907
+ }, DL = Fi("HTMLFormElement"), LL = (t) => t.toLowerCase().replace(
21908
21908
  /[-_\s]([a-z\d])(\w*)/g,
21909
21909
  function(n, r, i) {
21910
21910
  return r.toUpperCase() + i;
21911
21911
  }
21912
- ), U1 = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), UL = $i("RegExp"), QI = (t, e) => {
21912
+ ), U1 = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), UL = Fi("RegExp"), QI = (t, e) => {
21913
21913
  const n = Object.getOwnPropertyDescriptors(t), r = {};
21914
21914
  Au(n, (i, s) => {
21915
21915
  let o;
@@ -21961,7 +21961,7 @@ const HL = (t) => {
21961
21961
  return r;
21962
21962
  };
21963
21963
  return n(t, 0);
21964
- }, zL = $i("AsyncFunction"), qL = (t) => t && (xu(t) || qr(t)) && qr(t.then) && qr(t.catch), eT = ((t, e) => t ? setImmediate : e ? ((n, r) => (na.addEventListener("message", ({ source: i, data: s }) => {
21964
+ }, zL = Fi("AsyncFunction"), qL = (t) => t && (xu(t) || qr(t)) && qr(t.then) && qr(t.catch), eT = ((t, e) => t ? setImmediate : e ? ((n, r) => (na.addEventListener("message", ({ source: i, data: s }) => {
21965
21965
  i === na && s === n && r.length && r.shift()();
21966
21966
  }, !1), (i) => {
21967
21967
  r.push(i), na.postMessage(n, "*");
@@ -22002,7 +22002,7 @@ const HL = (t) => {
22002
22002
  inherits: CL,
22003
22003
  toFlatObject: OL,
22004
22004
  kindOf: xh,
22005
- kindOfTest: $i,
22005
+ kindOfTest: Fi,
22006
22006
  endsWith: PL,
22007
22007
  toArray: NL,
22008
22008
  forEachEntry: ML,
@@ -23235,7 +23235,7 @@ function BU(t, e, n) {
23235
23235
  const tf = {
23236
23236
  assertOptions: BU,
23237
23237
  validators: Ih
23238
- }, ji = tf.validators;
23238
+ }, Vi = tf.validators;
23239
23239
  let fa = class {
23240
23240
  constructor(e) {
23241
23241
  this.defaults = e || {}, this.interceptors = {
@@ -23272,17 +23272,17 @@ let fa = class {
23272
23272
  typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ya(this.defaults, n);
23273
23273
  const { transitional: r, paramsSerializer: i, headers: s } = n;
23274
23274
  r !== void 0 && tf.assertOptions(r, {
23275
- silentJSONParsing: ji.transitional(ji.boolean),
23276
- forcedJSONParsing: ji.transitional(ji.boolean),
23277
- clarifyTimeoutError: ji.transitional(ji.boolean)
23275
+ silentJSONParsing: Vi.transitional(Vi.boolean),
23276
+ forcedJSONParsing: Vi.transitional(Vi.boolean),
23277
+ clarifyTimeoutError: Vi.transitional(Vi.boolean)
23278
23278
  }, !1), i != null && (ye.isFunction(i) ? n.paramsSerializer = {
23279
23279
  serialize: i
23280
23280
  } : tf.assertOptions(i, {
23281
- encode: ji.function,
23282
- serialize: ji.function
23281
+ encode: Vi.function,
23282
+ serialize: Vi.function
23283
23283
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), tf.assertOptions(n, {
23284
- baseUrl: ji.spelling("baseURL"),
23285
- withXsrfToken: ji.spelling("withXSRFToken")
23284
+ baseUrl: Vi.spelling("baseURL"),
23285
+ withXsrfToken: Vi.spelling("withXSRFToken")
23286
23286
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
23287
23287
  let o = s && ye.merge(
23288
23288
  s.common,
@@ -25607,7 +25607,7 @@ function u9() {
25607
25607
  for (J = 0; J < G; J++) K[J] = W[J + 64];
25608
25608
  return G;
25609
25609
  }
25610
- var le = 32, we = 24, Et = 32, dt = 16, ct = 32, Jt = 32, ot = 32, rn = 32, Na = 32, gn = we, _n = Et, Bu = dt, Zt = 64, sn = 32, hs = 64, fn = 32, hn = 64;
25610
+ var le = 32, we = 24, Et = 32, dt = 16, ct = 32, Jt = 32, ot = 32, rn = 32, Na = 32, gn = we, _n = Et, Bu = dt, Zt = 64, sn = 32, ps = 64, fn = 32, hn = 64;
25611
25611
  e.lowlevel = {
25612
25612
  crypto_core_hsalsa20: B,
25613
25613
  crypto_stream_xor: L,
@@ -25645,7 +25645,7 @@ function u9() {
25645
25645
  crypto_box_BOXZEROBYTES: Bu,
25646
25646
  crypto_sign_BYTES: Zt,
25647
25647
  crypto_sign_PUBLICKEYBYTES: sn,
25648
- crypto_sign_SECRETKEYBYTES: hs,
25648
+ crypto_sign_SECRETKEYBYTES: ps,
25649
25649
  crypto_sign_SEEDBYTES: fn,
25650
25650
  crypto_hash_BYTES: hn,
25651
25651
  gf: n,
@@ -25719,7 +25719,7 @@ function u9() {
25719
25719
  var W = new Uint8Array(ot);
25720
25720
  return se(W, K), { publicKey: W, secretKey: new Uint8Array(K) };
25721
25721
  }, e.box.publicKeyLength = ot, e.box.secretKeyLength = rn, e.box.sharedKeyLength = Na, e.box.nonceLength = gn, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(K, W) {
25722
- if (Vt(K, W), W.length !== hs)
25722
+ if (Vt(K, W), W.length !== ps)
25723
25723
  throw new Error("bad secret key size");
25724
25724
  var G = new Uint8Array(Zt + K.length);
25725
25725
  return D(G, K, K.length, W), G;
@@ -25743,19 +25743,19 @@ function u9() {
25743
25743
  for (ce = 0; ce < K.length; ce++) O[ce + Zt] = K[ce];
25744
25744
  return oe(J, O, O.length, G) >= 0;
25745
25745
  }, e.sign.keyPair = function() {
25746
- var K = new Uint8Array(sn), W = new Uint8Array(hs);
25746
+ var K = new Uint8Array(sn), W = new Uint8Array(ps);
25747
25747
  return Lt(K, W), { publicKey: K, secretKey: W };
25748
25748
  }, e.sign.keyPair.fromSecretKey = function(K) {
25749
- if (Vt(K), K.length !== hs)
25749
+ if (Vt(K), K.length !== ps)
25750
25750
  throw new Error("bad secret key size");
25751
25751
  for (var W = new Uint8Array(sn), G = 0; G < W.length; G++) W[G] = K[32 + G];
25752
25752
  return { publicKey: W, secretKey: new Uint8Array(K) };
25753
25753
  }, e.sign.keyPair.fromSeed = function(K) {
25754
25754
  if (Vt(K), K.length !== fn)
25755
25755
  throw new Error("bad seed size");
25756
- for (var W = new Uint8Array(sn), G = new Uint8Array(hs), O = 0; O < 32; O++) G[O] = K[O];
25756
+ for (var W = new Uint8Array(sn), G = new Uint8Array(ps), O = 0; O < 32; O++) G[O] = K[O];
25757
25757
  return Lt(W, G, !0), { publicKey: W, secretKey: G };
25758
- }, e.sign.publicKeyLength = sn, e.sign.secretKeyLength = hs, e.sign.seedLength = fn, e.sign.signatureLength = Zt, e.hash = function(K) {
25758
+ }, e.sign.publicKeyLength = sn, e.sign.secretKeyLength = ps, e.sign.seedLength = fn, e.sign.signatureLength = Zt, e.hash = function(K) {
25759
25759
  Vt(K);
25760
25760
  var W = new Uint8Array(hn);
25761
25761
  return Ve(W, K, K.length), W;
@@ -26951,7 +26951,7 @@ Jr = function() {
26951
26951
  if (!(typeof window > "u"))
26952
26952
  return window?.phantom?.solana;
26953
26953
  };
26954
- async function ds(t = "injected") {
26954
+ async function fs(t = "injected") {
26955
26955
  if (t === "injected") {
26956
26956
  const e = new K9();
26957
26957
  try {
@@ -26962,22 +26962,22 @@ async function ds(t = "injected") {
26962
26962
  } else
26963
26963
  throw new Error("Invalid provider type.");
26964
26964
  }
26965
- var Bs = /* @__PURE__ */ new Map();
26965
+ var Ds = /* @__PURE__ */ new Map();
26966
26966
  function j9(t, e) {
26967
- return Bs.has(t) || Bs.set(t, /* @__PURE__ */ new Set()), Bs.get(t).add(e), () => {
26967
+ return Ds.has(t) || Ds.set(t, /* @__PURE__ */ new Set()), Ds.get(t).add(e), () => {
26968
26968
  CT(t, e);
26969
26969
  };
26970
26970
  }
26971
26971
  function CT(t, e) {
26972
- Bs.has(t) && (Bs.get(t).delete(e), Bs.get(t).size === 0 && Bs.delete(t));
26972
+ Ds.has(t) && (Ds.get(t).delete(e), Ds.get(t).size === 0 && Ds.delete(t));
26973
26973
  }
26974
26974
  function ha(t, ...e) {
26975
- Bs.has(t) && Bs.get(t).forEach((n) => {
26975
+ Ds.has(t) && Ds.get(t).forEach((n) => {
26976
26976
  t === "connect" && e[0] && typeof e[0] == "string" ? n(e[0]) : t === "disconnect" ? n() : t === "accountChanged" && e[0] && typeof e[0] == "string" && n(e[0]);
26977
26977
  });
26978
26978
  }
26979
26979
  async function V9({ onlyIfTrusted: t = !1 } = {}) {
26980
- const e = await ds();
26980
+ const e = await fs();
26981
26981
  if (!e)
26982
26982
  throw new Error("Provider not found.");
26983
26983
  if (e.isConnected)
@@ -26999,47 +26999,47 @@ async function V9({ onlyIfTrusted: t = !1 } = {}) {
26999
26999
  throw new Error("Failed to connect to Phantom.");
27000
27000
  }
27001
27001
  async function H9() {
27002
- const t = await ds();
27002
+ const t = await fs();
27003
27003
  if (!t)
27004
27004
  throw new Error("Provider not found.");
27005
27005
  await t.disconnect(), ha("disconnect");
27006
27006
  }
27007
27007
  async function z9() {
27008
- return (await ds()).getAccount();
27008
+ return (await fs()).getAccount();
27009
27009
  }
27010
27010
  async function q9(t) {
27011
- const e = await ds();
27011
+ const e = await fs();
27012
27012
  if (!e)
27013
27013
  throw new Error("Provider not found.");
27014
27014
  return e.isConnected || await e.connect({ onlyIfTrusted: !1 }), e.signAndSendTransaction(t);
27015
27015
  }
27016
27016
  async function W9(t) {
27017
- const e = await ds();
27017
+ const e = await fs();
27018
27018
  if (!e)
27019
27019
  throw new Error("Provider not found.");
27020
27020
  return e.isConnected || await e.connect({ onlyIfTrusted: !1 }), e.signAndSendAllTransactions(t);
27021
27021
  }
27022
27022
  async function G9(t) {
27023
- const e = await ds();
27023
+ const e = await fs();
27024
27024
  if (!e)
27025
27025
  throw new Error("Provider not found.");
27026
27026
  return e.isConnected || await e.connect({ onlyIfTrusted: !1 }), e.signTransaction(t);
27027
27027
  }
27028
27028
  async function Y9(t) {
27029
- const e = await ds();
27029
+ const e = await fs();
27030
27030
  if (!e)
27031
27031
  throw new Error("Provider not found.");
27032
27032
  return e.isConnected || await e.connect({ onlyIfTrusted: !1 }), e.signAllTransactions(t);
27033
27033
  }
27034
27034
  async function J9(t) {
27035
- const e = await ds();
27035
+ const e = await fs();
27036
27036
  if (!e)
27037
27037
  throw new Error("Provider not found.");
27038
27038
  const n = await e.signIn(t);
27039
27039
  return n.address && ha("connect", n.address), n;
27040
27040
  }
27041
27041
  async function Z9(t, e) {
27042
- const n = await ds();
27042
+ const n = await fs();
27043
27043
  if (!n)
27044
27044
  throw new Error("Provider not found.");
27045
27045
  return n.isConnected || await n.connect({ onlyIfTrusted: !1 }), n.signMessage(t, e);
@@ -27059,7 +27059,7 @@ var X9 = {
27059
27059
  };
27060
27060
  async function Q9() {
27061
27061
  try {
27062
- const e = (await ds()).getProvider();
27062
+ const e = (await fs()).getProvider();
27063
27063
  e && (e.on("connect", (n) => {
27064
27064
  n && ha("connect", n.toString());
27065
27065
  }), e.on("disconnect", () => ha("disconnect")), e.on("accountChanged", (n) => {
@@ -27527,65 +27527,65 @@ For a list of runtimes that currently support Ed25519 operations, visit https://
27527
27527
  [ZF]: "The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",
27528
27528
  [VF]: "Transaction is missing signatures for addresses: $addresses.",
27529
27529
  [UF]: "Transaction version must be in the range [0, 127]. `$actualVersion` given"
27530
- }, vs = "i", Vi = "t";
27530
+ }, bs = "i", Hi = "t";
27531
27531
  function wj(t, e = {}) {
27532
27532
  const n = yj[t];
27533
27533
  if (n.length === 0)
27534
27534
  return "";
27535
27535
  let r;
27536
27536
  function i(o) {
27537
- if (r[Vi] === 2) {
27538
- const a = n.slice(r[vs] + 1, o);
27537
+ if (r[Hi] === 2) {
27538
+ const a = n.slice(r[bs] + 1, o);
27539
27539
  s.push(
27540
27540
  a in e ? (
27541
27541
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
27542
27542
  `${e[a]}`
27543
27543
  ) : `$${a}`
27544
27544
  );
27545
- } else r[Vi] === 1 && s.push(n.slice(r[vs], o));
27545
+ } else r[Hi] === 1 && s.push(n.slice(r[bs], o));
27546
27546
  }
27547
27547
  const s = [];
27548
27548
  return n.split("").forEach((o, a) => {
27549
27549
  if (a === 0) {
27550
27550
  r = {
27551
- [vs]: 0,
27552
- [Vi]: n[0] === "\\" ? 0 : n[0] === "$" ? 2 : 1
27551
+ [bs]: 0,
27552
+ [Hi]: n[0] === "\\" ? 0 : n[0] === "$" ? 2 : 1
27553
27553
  /* Text */
27554
27554
  };
27555
27555
  return;
27556
27556
  }
27557
27557
  let c;
27558
- switch (r[Vi]) {
27558
+ switch (r[Hi]) {
27559
27559
  case 0:
27560
27560
  c = {
27561
- [vs]: a,
27562
- [Vi]: 1
27561
+ [bs]: a,
27562
+ [Hi]: 1
27563
27563
  /* Text */
27564
27564
  };
27565
27565
  break;
27566
27566
  case 1:
27567
27567
  o === "\\" ? c = {
27568
- [vs]: a,
27569
- [Vi]: 0
27568
+ [bs]: a,
27569
+ [Hi]: 0
27570
27570
  /* EscapeSequence */
27571
27571
  } : o === "$" && (c = {
27572
- [vs]: a,
27573
- [Vi]: 2
27572
+ [bs]: a,
27573
+ [Hi]: 2
27574
27574
  /* Variable */
27575
27575
  });
27576
27576
  break;
27577
27577
  case 2:
27578
27578
  o === "\\" ? c = {
27579
- [vs]: a,
27580
- [Vi]: 0
27579
+ [bs]: a,
27580
+ [Hi]: 0
27581
27581
  /* EscapeSequence */
27582
27582
  } : o === "$" ? c = {
27583
- [vs]: a,
27584
- [Vi]: 2
27583
+ [bs]: a,
27584
+ [Hi]: 2
27585
27585
  /* Variable */
27586
27586
  } : o.match(/\w/) || (c = {
27587
- [vs]: a,
27588
- [Vi]: 1
27587
+ [bs]: a,
27588
+ [Hi]: 1
27589
27589
  /* Text */
27590
27590
  });
27591
27591
  break;
@@ -27864,7 +27864,7 @@ function Dt(t) {
27864
27864
  }
27865
27865
  return n;
27866
27866
  }
27867
- function os(t) {
27867
+ function as(t) {
27868
27868
  return "0x" + t.map((e) => Dt(e).substring(2)).join("");
27869
27869
  }
27870
27870
  function Ll(t) {
@@ -28080,7 +28080,7 @@ function jT(t, e) {
28080
28080
  throw new Error(`digestInto() expects output buffer of length at least ${n}`);
28081
28081
  }
28082
28082
  const m0 = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
28083
- const VT = (t) => t instanceof Uint8Array, Fj = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), y0 = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), Hi = (t, e) => t << 32 - e | t >>> e, Kj = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
28083
+ const VT = (t) => t instanceof Uint8Array, Fj = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), y0 = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), zi = (t, e) => t << 32 - e | t >>> e, Kj = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
28084
28084
  if (!Kj)
28085
28085
  throw new Error("Non little-endian hardware is not supported");
28086
28086
  function jj(t) {
@@ -28301,12 +28301,12 @@ class Yj extends qT {
28301
28301
  for (let d = 0; d < 16; d++, n += 4)
28302
28302
  no[d] = e.getUint32(n, !1);
28303
28303
  for (let d = 16; d < 64; d++) {
28304
- const f = no[d - 15], g = no[d - 2], y = Hi(f, 7) ^ Hi(f, 18) ^ f >>> 3, w = Hi(g, 17) ^ Hi(g, 19) ^ g >>> 10;
28304
+ const f = no[d - 15], g = no[d - 2], y = zi(f, 7) ^ zi(f, 18) ^ f >>> 3, w = zi(g, 17) ^ zi(g, 19) ^ g >>> 10;
28305
28305
  no[d] = w + no[d - 7] + y + no[d - 16] | 0;
28306
28306
  }
28307
28307
  let { A: r, B: i, C: s, D: o, E: a, F: c, G: l, H: u } = this;
28308
28308
  for (let d = 0; d < 64; d++) {
28309
- const f = Hi(a, 6) ^ Hi(a, 11) ^ Hi(a, 25), g = u + f + qj(a, c, l) + Gj[d] + no[d] | 0, w = (Hi(r, 2) ^ Hi(r, 13) ^ Hi(r, 22)) + Wj(r, i, s) | 0;
28309
+ const f = zi(a, 6) ^ zi(a, 11) ^ zi(a, 25), g = u + f + qj(a, c, l) + Gj[d] + no[d] | 0, w = (zi(r, 2) ^ zi(r, 13) ^ zi(r, 22)) + Wj(r, i, s) | 0;
28310
28310
  u = l, l = c, c = a, a = o + g | 0, o = s, s = i, i = r, r = g + w | 0;
28311
28311
  }
28312
28312
  r = r + this.A | 0, i = i + this.B | 0, s = s + this.C | 0, o = o + this.D | 0, a = a + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, u = u + this.H | 0, this.set(r, i, s, o, a, c, l, u);
@@ -29161,7 +29161,7 @@ const { bytesToNumberBE: ZV, hexToBytes: XV } = LV, sa = {
29161
29161
  }, r = e(n(t.s)), i = e(n(t.r)), s = r.length / 2, o = i.length / 2, a = n(s), c = n(o);
29162
29162
  return `30${n(o + s + 4)}02${c}${i}02${a}${r}`;
29163
29163
  }
29164
- }, Is = BigInt(0), yi = BigInt(1);
29164
+ }, Ts = BigInt(0), yi = BigInt(1);
29165
29165
  BigInt(2);
29166
29166
  const E_ = BigInt(3);
29167
29167
  BigInt(4);
@@ -29180,7 +29180,7 @@ function QV(t) {
29180
29180
  if (!n.eql(n.sqr(e.Gy), s(e.Gx)))
29181
29181
  throw new Error("bad generator point: equation left != right");
29182
29182
  function o(y) {
29183
- return typeof y == "bigint" && Is < y && y < e.n;
29183
+ return typeof y == "bigint" && Ts < y && y < e.n;
29184
29184
  }
29185
29185
  function a(y) {
29186
29186
  if (!o(y))
@@ -29336,7 +29336,7 @@ function QV(t) {
29336
29336
  */
29337
29337
  multiplyUnsafe(w) {
29338
29338
  const E = d.ZERO;
29339
- if (w === Is)
29339
+ if (w === Ts)
29340
29340
  return E;
29341
29341
  if (a(w), w === yi)
29342
29342
  return this;
@@ -29344,7 +29344,7 @@ function QV(t) {
29344
29344
  if (!b)
29345
29345
  return g.unsafeLadder(this, w);
29346
29346
  let { k1neg: k, k1: S, k2neg: F, k2: B } = b.splitScalar(w), z = E, X = E, Y = this;
29347
- for (; S > Is || B > Is; )
29347
+ for (; S > Ts || B > Ts; )
29348
29348
  S & yi && (z = z.add(Y)), B & yi && (X = X.add(Y)), Y = Y.double(), S >>= yi, B >>= yi;
29349
29349
  return k && (z = z.negate()), F && (X = X.negate()), X = new d(n.mul(X.px, b.beta), X.py, X.pz), z.add(X);
29350
29350
  }
@@ -29378,7 +29378,7 @@ function QV(t) {
29378
29378
  * @returns non-zero affine point
29379
29379
  */
29380
29380
  multiplyAndAddUnsafe(w, E, b) {
29381
- const k = d.BASE, S = (B, z) => z === Is || z === yi || !B.equals(k) ? B.multiplyUnsafe(z) : B.multiply(z), F = S(this, E).add(S(w, b));
29381
+ const k = d.BASE, S = (B, z) => z === Ts || z === yi || !B.equals(k) ? B.multiplyUnsafe(z) : B.multiply(z), F = S(this, E).add(S(w, b));
29382
29382
  return F.is0() ? void 0 : F;
29383
29383
  }
29384
29384
  // Converts Projective point to affine (x, y) coordinates.
@@ -29438,7 +29438,7 @@ function eH(t) {
29438
29438
  function tH(t) {
29439
29439
  const e = eH(t), { Fp: n, n: r } = e, i = n.BYTES + 1, s = 2 * n.BYTES + 1;
29440
29440
  function o(v) {
29441
- return Is < v && v < n.ORDER;
29441
+ return Ts < v && v < n.ORDER;
29442
29442
  }
29443
29443
  function a(v) {
29444
29444
  return jr(v, r);
@@ -29587,7 +29587,7 @@ function tH(t) {
29587
29587
  function U(v) {
29588
29588
  if (typeof v != "bigint")
29589
29589
  throw new Error("bigint expected");
29590
- if (!(Is <= v && v < Y))
29590
+ if (!(Ts <= v && v < Y))
29591
29591
  throw new Error(`bigint expected < 2^${e.nBitLength}`);
29592
29592
  return Pc(v, e.nByteLength);
29593
29593
  }
@@ -29608,10 +29608,10 @@ function tH(t) {
29608
29608
  if (!f(se))
29609
29609
  return;
29610
29610
  const ue = c(se), fe = l.BASE.multiply(se).toAffine(), Ae = a(fe.x);
29611
- if (Ae === Is)
29611
+ if (Ae === Ts)
29612
29612
  return;
29613
29613
  const Ce = a(ue * a(V + Ae * A));
29614
- if (Ce === Is)
29614
+ if (Ce === Ts)
29615
29615
  return;
29616
29616
  let Ue = (fe.x === Ae ? 0 : 2) | Number(fe.y & yi), Le = Ce;
29617
29617
  return P && y(Ce) && (Le = w(Ce), Ue ^= 1), new b(Ae, Le, Ue);
@@ -29814,13 +29814,13 @@ class Un {
29814
29814
  * The [[link-eip-2098]] compact representation.
29815
29815
  */
29816
29816
  get compactSerialized() {
29817
- return os([this.r, this.yParityAndS]);
29817
+ return as([this.r, this.yParityAndS]);
29818
29818
  }
29819
29819
  /**
29820
29820
  * The serialized representation.
29821
29821
  */
29822
29822
  get serialized() {
29823
- return os([this.r, this.s, this.yParity ? "0x1c" : "0x1b"]);
29823
+ return as([this.r, this.s, this.yParity ? "0x1c" : "0x1b"]);
29824
29824
  }
29825
29825
  /**
29826
29826
  * @private
@@ -29986,7 +29986,7 @@ class Un {
29986
29986
  return o && (c.#n = o), n(e.yParity == null || Co(e.yParity, "sig.yParity") === c.yParity, "yParity mismatch"), n(e.yParityAndS == null || e.yParityAndS === c.yParityAndS, "yParityAndS mismatch"), c;
29987
29987
  }
29988
29988
  }
29989
- class Ts {
29989
+ class Cs {
29990
29990
  #e;
29991
29991
  /**
29992
29992
  * Creates a new **SigningKey** for %%privateKey%%.
@@ -30007,7 +30007,7 @@ class Ts {
30007
30007
  * characters long (the ``0x`` prefix and 130 hexadecimal nibbles).
30008
30008
  */
30009
30009
  get publicKey() {
30010
- return Ts.computePublicKey(this.#e);
30010
+ return Cs.computePublicKey(this.#e);
30011
30011
  }
30012
30012
  /**
30013
30013
  * The compressed public key.
@@ -30017,7 +30017,7 @@ class Ts {
30017
30017
  * nibbles)
30018
30018
  */
30019
30019
  get compressedPublicKey() {
30020
- return Ts.computePublicKey(this.#e, !0);
30020
+ return Cs.computePublicKey(this.#e, !0);
30021
30021
  }
30022
30022
  /**
30023
30023
  * Return the signature of the signed %%digest%%.
@@ -30056,7 +30056,7 @@ class Ts {
30056
30056
  * //_result:
30057
30057
  */
30058
30058
  computeSharedSecret(e) {
30059
- const n = Ts.computePublicKey(e);
30059
+ const n = Cs.computePublicKey(e);
30060
30060
  return Dt(ho.getSharedSecret(fl(this.#e), un(n), !1));
30061
30061
  }
30062
30062
  /**
@@ -30118,7 +30118,7 @@ class Ts {
30118
30118
  static recoverPublicKey(e, n) {
30119
30119
  Xe(Ll(e) === 32, "invalid digest length", "digest", e);
30120
30120
  const r = Un.from(n);
30121
- let i = ho.Signature.fromCompact(fl(os([r.r, r.s])));
30121
+ let i = ho.Signature.fromCompact(fl(as([r.r, r.s])));
30122
30122
  i = i.addRecoveryBit(r.yParity);
30123
30123
  const s = i.recoverPublicKey(fl(e));
30124
30124
  return Xe(s != null, "invalid signature for digest", "signature", n), "0x" + s.toHex(!1);
@@ -30134,7 +30134,7 @@ class Ts {
30134
30134
  * addresses from parent public keys and chain codes.
30135
30135
  */
30136
30136
  static addPoints(e, n, r) {
30137
- const i = ho.ProjectivePoint.fromHex(Ts.computePublicKey(e).substring(2)), s = ho.ProjectivePoint.fromHex(Ts.computePublicKey(n).substring(2));
30137
+ const i = ho.ProjectivePoint.fromHex(Cs.computePublicKey(e).substring(2)), s = ho.ProjectivePoint.fromHex(Cs.computePublicKey(n).substring(2));
30138
30138
  return "0x" + i.add(s).toHex(!!r);
30139
30139
  }
30140
30140
  }
@@ -30223,10 +30223,10 @@ function hH(t) {
30223
30223
  }
30224
30224
  function pH(t) {
30225
30225
  let e;
30226
- return typeof t == "string" ? e = Ts.computePublicKey(t, !1) : e = t.publicKey, Wc($o("0x" + e.substring(4)).substring(26));
30226
+ return typeof t == "string" ? e = Cs.computePublicKey(t, !1) : e = t.publicKey, Wc($o("0x" + e.substring(4)).substring(26));
30227
30227
  }
30228
30228
  function gH(t, e) {
30229
- return pH(Ts.recoverPublicKey(t, e));
30229
+ return pH(Cs.recoverPublicKey(t, e));
30230
30230
  }
30231
30231
  const Yn = BigInt(0), mH = BigInt(2), yH = BigInt(27), wH = BigInt(28), vH = BigInt(35), bH = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), EH = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), _0 = 4096 * 32, nf = 128;
30232
30232
  function _H(t) {
@@ -30416,7 +30416,7 @@ function CH(t, e) {
30416
30416
  t.data,
30417
30417
  Bh(t.accessList || [])
30418
30418
  ];
30419
- return e && (n.push(jt(e.yParity, "yParity")), n.push(or(e.r)), n.push(or(e.s))), os(["0x02", Oo(n)]);
30419
+ return e && (n.push(jt(e.yParity, "yParity")), n.push(or(e.r)), n.push(or(e.s))), as(["0x02", Oo(n)]);
30420
30420
  }
30421
30421
  function OH(t) {
30422
30422
  const e = Iu(un(t).slice(1));
@@ -30445,7 +30445,7 @@ function PH(t, e) {
30445
30445
  t.data,
30446
30446
  Bh(t.accessList || [])
30447
30447
  ];
30448
- return e && (n.push(jt(e.yParity, "recoveryParam")), n.push(or(e.r)), n.push(or(e.s))), os(["0x01", Oo(n)]);
30448
+ return e && (n.push(jt(e.yParity, "recoveryParam")), n.push(or(e.r)), n.push(or(e.s))), as(["0x01", Oo(n)]);
30449
30449
  }
30450
30450
  function NH(t) {
30451
30451
  let e = Iu(un(t).slice(1)), n = "3", r = null, i = null;
@@ -30471,7 +30471,7 @@ function NH(t) {
30471
30471
  i.push({
30472
30472
  data: o[l],
30473
30473
  commitment: a[l],
30474
- proof: os(u)
30474
+ proof: as(u)
30475
30475
  });
30476
30476
  }
30477
30477
  e = e[0];
@@ -30520,7 +30520,7 @@ function kH(t, e, n) {
30520
30520
  for (let l = 0; l < a.length; l += c)
30521
30521
  s.push(a.subarray(l, l + c));
30522
30522
  }
30523
- return os([
30523
+ return as([
30524
30524
  "0x03",
30525
30525
  Oo([
30526
30526
  r,
@@ -30531,7 +30531,7 @@ function kH(t, e, n) {
30531
30531
  ])
30532
30532
  ]);
30533
30533
  }
30534
- return os([
30534
+ return as([
30535
30535
  "0x03",
30536
30536
  Oo([
30537
30537
  r,
@@ -30541,7 +30541,7 @@ function kH(t, e, n) {
30541
30541
  ])
30542
30542
  ]);
30543
30543
  }
30544
- return os(["0x03", Oo(r)]);
30544
+ return as(["0x03", Oo(r)]);
30545
30545
  }
30546
30546
  function MH(t) {
30547
30547
  const e = Iu(un(t).slice(1));
@@ -30575,9 +30575,9 @@ function BH(t, e) {
30575
30575
  Bh(t.accessList || []),
30576
30576
  xH(t.authorizationList || [])
30577
30577
  ];
30578
- return e && (n.push(jt(e.yParity, "yParity")), n.push(or(e.r)), n.push(or(e.s))), os(["0x04", Oo(n)]);
30578
+ return e && (n.push(jt(e.yParity, "yParity")), n.push(or(e.r)), n.push(or(e.s))), as(["0x04", Oo(n)]);
30579
30579
  }
30580
- let DH = class bs {
30580
+ let DH = class Es {
30581
30581
  #e;
30582
30582
  #t;
30583
30583
  #r;
@@ -30918,7 +30918,7 @@ let DH = class bs {
30918
30918
  * The public key of the sender, if signed. Otherwise, ``null``.
30919
30919
  */
30920
30920
  get fromPublicKey() {
30921
- return this.signature == null ? null : Ts.recoverPublicKey(this.unsignedHash, this.signature.getCanonical());
30921
+ return this.signature == null ? null : Cs.recoverPublicKey(this.unsignedHash, this.signature.getCanonical());
30922
30922
  }
30923
30923
  /**
30924
30924
  * Returns true if signed.
@@ -31026,7 +31026,7 @@ let DH = class bs {
31026
31026
  * Create a copy of this transaciton.
31027
31027
  */
31028
31028
  clone() {
31029
- return bs.from(this);
31029
+ return Es.from(this);
31030
31030
  }
31031
31031
  /**
31032
31032
  * Return a JSON-friendly object.
@@ -31075,24 +31075,24 @@ let DH = class bs {
31075
31075
  */
31076
31076
  static from(e) {
31077
31077
  if (e == null)
31078
- return new bs();
31078
+ return new Es();
31079
31079
  if (typeof e == "string") {
31080
31080
  const r = un(e);
31081
31081
  if (r[0] >= 127)
31082
- return bs.from(RH(r));
31082
+ return Es.from(RH(r));
31083
31083
  switch (r[0]) {
31084
31084
  case 1:
31085
- return bs.from(OH(r));
31085
+ return Es.from(OH(r));
31086
31086
  case 2:
31087
- return bs.from(TH(r));
31087
+ return Es.from(TH(r));
31088
31088
  case 3:
31089
- return bs.from(NH(r));
31089
+ return Es.from(NH(r));
31090
31090
  case 4:
31091
- return bs.from(MH(r));
31091
+ return Es.from(MH(r));
31092
31092
  }
31093
31093
  Or(!1, "unsupported transaction type", "UNSUPPORTED_OPERATION", { operation: "from" });
31094
31094
  }
31095
- const n = new bs();
31095
+ const n = new Es();
31096
31096
  return e.type != null && (n.type = e.type), e.to != null && (n.to = e.to), e.nonce != null && (n.nonce = e.nonce), e.gasLimit != null && (n.gasLimit = e.gasLimit), e.gasPrice != null && (n.gasPrice = e.gasPrice), e.maxPriorityFeePerGas != null && (n.maxPriorityFeePerGas = e.maxPriorityFeePerGas), e.maxFeePerGas != null && (n.maxFeePerGas = e.maxFeePerGas), e.maxFeePerBlobGas != null && (n.maxFeePerBlobGas = e.maxFeePerBlobGas), e.data != null && (n.data = e.data), e.value != null && (n.value = e.value), e.chainId != null && (n.chainId = e.chainId), e.signature != null && (n.signature = Un.from(e.signature)), e.accessList != null && (n.accessList = e.accessList), e.authorizationList != null && (n.authorizationList = e.authorizationList), e.blobVersionedHashes != null && (n.blobVersionedHashes = e.blobVersionedHashes), e.kzg != null && (n.kzg = e.kzg), e.blobWrapperVersion != null && (n.blobWrapperVersion = e.blobWrapperVersion), e.blobs != null && (n.blobs = e.blobs), e.hash != null && (Xe(n.isSigned(), "unsigned transaction cannot define '.hash'", "tx", e), Xe(n.hash === e.hash, "hash mismatch", "tx", e)), e.from != null && (Xe(n.isSigned(), "unsigned transaction cannot define '.from'", "tx", e), Xe(n.from.toLowerCase() === (e.from || "").toLowerCase(), "from mismatch", "tx", e)), n;
31097
31097
  }
31098
31098
  };
@@ -31191,7 +31191,7 @@ function UH(t, e, n) {
31191
31191
  const w = s.slice();
31192
31192
  y.push(w), g += s.length;
31193
31193
  }
31194
- return Zi(...y);
31194
+ return Xi(...y);
31195
31195
  };
31196
31196
  return (g, y) => {
31197
31197
  c(), u(g);
@@ -31877,7 +31877,7 @@ function tz(t, e, n = {}) {
31877
31877
  return f(U).pointBytes;
31878
31878
  }
31879
31879
  function y(U = Uint8Array.of(), ...L) {
31880
- const H = Zi(...L);
31880
+ const H = Xi(...L);
31881
31881
  return u(e(l(H, On("context", U), !!r)));
31882
31882
  }
31883
31883
  function w(U, L, H = {}) {
@@ -31885,7 +31885,7 @@ function tz(t, e, n = {}) {
31885
31885
  const { prefix: j, scalar: T, pointBytes: p } = f(L), v = y(H.context, j, U), R = i.multiply(v).toBytes(), N = y(H.context, R, p, U), _ = o.create(v + N * T);
31886
31886
  if (!o.isValid(_))
31887
31887
  throw new Error("sign failed: invalid s");
31888
- const I = Zi(R, o.toBytes(_));
31888
+ const I = Xi(R, o.toBytes(_));
31889
31889
  return Mi(I, S.signature, "result");
31890
31890
  }
31891
31891
  const E = { zip215: !0 };
@@ -32500,7 +32500,7 @@ function $C() {
32500
32500
  return x !== 0 ? v.words[h] = x | 0 : v.length--, v._strip();
32501
32501
  }
32502
32502
  var k = function(p, v, R) {
32503
- var N = p.words, _ = v.words, I = R.words, P = 0, x, h, m, A = N[0] | 0, C = A & 8191, $ = A >>> 13, V = N[1] | 0, Z = V & 8191, ne = V >>> 13, se = N[2] | 0, ue = se & 8191, fe = se >>> 13, Ae = N[3] | 0, Ce = Ae & 8191, Ue = Ae >>> 13, Le = N[4] | 0, Oe = Le & 8191, De = Le >>> 13, Ve = N[5] | 0, Fe = Ve & 8191, Qe = Ve >>> 13, ze = N[6] | 0, Ke = ze & 8191, Ze = ze >>> 13, Lt = N[7] | 0, xt = Lt & 8191, q = Lt >>> 13, M = N[8] | 0, D = M & 8191, Q = M >>> 13, oe = N[9] | 0, le = oe & 8191, we = oe >>> 13, Et = _[0] | 0, dt = Et & 8191, ct = Et >>> 13, Jt = _[1] | 0, ot = Jt & 8191, rn = Jt >>> 13, Na = _[2] | 0, gn = Na & 8191, _n = Na >>> 13, Bu = _[3] | 0, Zt = Bu & 8191, sn = Bu >>> 13, hs = _[4] | 0, fn = hs & 8191, hn = hs >>> 13, Zc = _[5] | 0, Sn = Zc & 8191, Vt = Zc >>> 13, Xc = _[6] | 0, K = Xc & 8191, W = Xc >>> 13, G = _[7] | 0, O = G & 8191, J = G >>> 13, ce = _[8] | 0, ae = ce & 8191, be = ce >>> 13, Me = _[9] | 0, je = Me & 8191, Be = Me >>> 13;
32503
+ var N = p.words, _ = v.words, I = R.words, P = 0, x, h, m, A = N[0] | 0, C = A & 8191, $ = A >>> 13, V = N[1] | 0, Z = V & 8191, ne = V >>> 13, se = N[2] | 0, ue = se & 8191, fe = se >>> 13, Ae = N[3] | 0, Ce = Ae & 8191, Ue = Ae >>> 13, Le = N[4] | 0, Oe = Le & 8191, De = Le >>> 13, Ve = N[5] | 0, Fe = Ve & 8191, Qe = Ve >>> 13, ze = N[6] | 0, Ke = ze & 8191, Ze = ze >>> 13, Lt = N[7] | 0, xt = Lt & 8191, q = Lt >>> 13, M = N[8] | 0, D = M & 8191, Q = M >>> 13, oe = N[9] | 0, le = oe & 8191, we = oe >>> 13, Et = _[0] | 0, dt = Et & 8191, ct = Et >>> 13, Jt = _[1] | 0, ot = Jt & 8191, rn = Jt >>> 13, Na = _[2] | 0, gn = Na & 8191, _n = Na >>> 13, Bu = _[3] | 0, Zt = Bu & 8191, sn = Bu >>> 13, ps = _[4] | 0, fn = ps & 8191, hn = ps >>> 13, Zc = _[5] | 0, Sn = Zc & 8191, Vt = Zc >>> 13, Xc = _[6] | 0, K = Xc & 8191, W = Xc >>> 13, G = _[7] | 0, O = G & 8191, J = G >>> 13, ce = _[8] | 0, ae = ce & 8191, be = ce >>> 13, Me = _[9] | 0, je = Me & 8191, Be = Me >>> 13;
32504
32504
  R.negative = p.negative ^ v.negative, R.length = 19, x = Math.imul(C, dt), h = Math.imul(C, ct), h = h + Math.imul($, dt) | 0, m = Math.imul($, ct);
32505
32505
  var Ft = (P + x | 0) + ((h & 8191) << 13) | 0;
32506
32506
  P = (m + (h >>> 13) | 0) + (Ft >>> 26) | 0, Ft &= 67108863, x = Math.imul(Z, dt), h = Math.imul(Z, ct), h = h + Math.imul(ne, dt) | 0, m = Math.imul(ne, ct), x = x + Math.imul(C, ot) | 0, h = h + Math.imul(C, rn) | 0, h = h + Math.imul($, ot) | 0, m = m + Math.imul($, rn) | 0;
@@ -33289,7 +33289,7 @@ function FC() {
33289
33289
  var yz = FC();
33290
33290
  const ir = /* @__PURE__ */ Ea(yz);
33291
33291
  var nn = {};
33292
- function Cs(t, e, n) {
33292
+ function Os(t, e, n) {
33293
33293
  return e <= t && t <= n;
33294
33294
  }
33295
33295
  function Uh(t) {
@@ -33475,19 +33475,19 @@ function bz(t) {
33475
33475
  if (c === Wf)
33476
33476
  return kc;
33477
33477
  if (i === 0) {
33478
- if (Cs(c, 0, 127))
33478
+ if (Os(c, 0, 127))
33479
33479
  return c;
33480
- if (Cs(c, 194, 223))
33480
+ if (Os(c, 194, 223))
33481
33481
  i = 1, n = c - 192;
33482
- else if (Cs(c, 224, 239))
33482
+ else if (Os(c, 224, 239))
33483
33483
  c === 224 && (s = 160), c === 237 && (o = 159), i = 2, n = c - 224;
33484
- else if (Cs(c, 240, 244))
33484
+ else if (Os(c, 240, 244))
33485
33485
  c === 240 && (s = 144), c === 244 && (o = 143), i = 3, n = c - 240;
33486
33486
  else
33487
33487
  return O0(e);
33488
33488
  return n = n << 6 * i, null;
33489
33489
  }
33490
- if (!Cs(c, s, o))
33490
+ if (!Os(c, s, o))
33491
33491
  return n = i = r = 0, s = 128, o = 191, a.prepend(c), O0(e);
33492
33492
  if (s = 128, o = 191, r += 1, n += c - 128 << 6 * (i - r), r !== i)
33493
33493
  return null;
@@ -33499,10 +33499,10 @@ function Ez(t) {
33499
33499
  t.fatal, this.handler = function(e, n) {
33500
33500
  if (n === Wf)
33501
33501
  return kc;
33502
- if (Cs(n, 0, 127))
33502
+ if (Os(n, 0, 127))
33503
33503
  return n;
33504
33504
  var r, i;
33505
- Cs(n, 128, 2047) ? (r = 1, i = 192) : Cs(n, 2048, 65535) ? (r = 2, i = 224) : Cs(n, 65536, 1114111) && (r = 3, i = 240);
33505
+ Os(n, 128, 2047) ? (r = 1, i = 192) : Os(n, 2048, 65535) ? (r = 2, i = 224) : Os(n, 65536, 1114111) && (r = 3, i = 240);
33506
33506
  for (var s = [(n >> 6 * r) + i]; r > 0; ) {
33507
33507
  var o = n >> 6 * (r - 1);
33508
33508
  s.push(128 | o & 63), r -= 1;
@@ -34861,7 +34861,7 @@ function Nu(t) {
34861
34861
  function Zf(t) {
34862
34862
  return Nu(t) && !Array.isArray(t);
34863
34863
  }
34864
- function Li(t) {
34864
+ function Ui(t) {
34865
34865
  return typeof t == "symbol" ? t.toString() : typeof t == "string" ? JSON.stringify(t) : `${t}`;
34866
34866
  }
34867
34867
  function Tz(t) {
@@ -34872,7 +34872,7 @@ function Cz(t, e, n, r) {
34872
34872
  if (t === !0)
34873
34873
  return;
34874
34874
  t === !1 ? t = {} : typeof t == "string" && (t = { message: t });
34875
- const { path: i, branch: s } = e, { type: o } = n, { refinement: a, message: c = `Expected a value of type \`${o}\`${a ? ` with refinement \`${a}\`` : ""}, but received: \`${Li(r)}\`` } = t;
34875
+ const { path: i, branch: s } = e, { type: o } = n, { refinement: a, message: c = `Expected a value of type \`${o}\`${a ? ` with refinement \`${a}\`` : ""}, but received: \`${Ui(r)}\`` } = t;
34876
34876
  return {
34877
34877
  value: r,
34878
34878
  type: o,
@@ -34913,7 +34913,7 @@ function* Aw(t, e, n = {}) {
34913
34913
  l.explanation = n.message, c = "not_refined", yield [l, void 0];
34914
34914
  c === "valid" && (yield [void 0, t]);
34915
34915
  }
34916
- let fs = class {
34916
+ let hs = class {
34917
34917
  constructor(e) {
34918
34918
  const { type: n, schema: r, validator: i, refiner: s, coercer: o = (c) => c, entries: a = function* () {
34919
34919
  } } = e;
@@ -34992,13 +34992,13 @@ function ku(t, e, n = {}) {
34992
34992
  }), void 0] : [void 0, i[1]];
34993
34993
  }
34994
34994
  function Ca(t, e) {
34995
- return new fs({ type: t, schema: null, validator: e });
34995
+ return new hs({ type: t, schema: null, validator: e });
34996
34996
  }
34997
34997
  function Nz() {
34998
34998
  return Ca("any", () => !0);
34999
34999
  }
35000
35000
  function We(t) {
35001
- return new fs({
35001
+ return new hs({
35002
35002
  type: "array",
35003
35003
  schema: t,
35004
35004
  *entries(e) {
@@ -35010,23 +35010,23 @@ function We(t) {
35010
35010
  return Array.isArray(e) ? e.slice() : e;
35011
35011
  },
35012
35012
  validator(e) {
35013
- return Array.isArray(e) || `Expected an array value, but received: ${Li(e)}`;
35013
+ return Array.isArray(e) || `Expected an array value, but received: ${Ui(e)}`;
35014
35014
  }
35015
35015
  });
35016
35016
  }
35017
- function us() {
35017
+ function ds() {
35018
35018
  return Ca("boolean", (t) => typeof t == "boolean");
35019
35019
  }
35020
35020
  function Rw(t) {
35021
- return Ca("instance", (e) => e instanceof t || `Expected a \`${t.name}\` instance, but received: ${Li(e)}`);
35021
+ return Ca("instance", (e) => e instanceof t || `Expected a \`${t.name}\` instance, but received: ${Ui(e)}`);
35022
35022
  }
35023
35023
  function wn(t) {
35024
- const e = Li(t), n = typeof t;
35025
- return new fs({
35024
+ const e = Ui(t), n = typeof t;
35025
+ return new hs({
35026
35026
  type: "literal",
35027
35027
  schema: n === "string" || n === "number" || n === "boolean" ? t : null,
35028
35028
  validator(r) {
35029
- return r === t || `Expected the literal \`${e}\`, but received: ${Li(r)}`;
35029
+ return r === t || `Expected the literal \`${e}\`, but received: ${Ui(r)}`;
35030
35030
  }
35031
35031
  });
35032
35032
  }
@@ -35034,24 +35034,24 @@ function kz() {
35034
35034
  return Ca("never", () => !1);
35035
35035
  }
35036
35036
  function Ye(t) {
35037
- return new fs({
35037
+ return new hs({
35038
35038
  ...t,
35039
35039
  validator: (e, n) => e === null || t.validator(e, n),
35040
35040
  refiner: (e, n) => e === null || t.refiner(e, n)
35041
35041
  });
35042
35042
  }
35043
35043
  function de() {
35044
- return Ca("number", (t) => typeof t == "number" && !isNaN(t) || `Expected a number, but received: ${Li(t)}`);
35044
+ return Ca("number", (t) => typeof t == "number" && !isNaN(t) || `Expected a number, but received: ${Ui(t)}`);
35045
35045
  }
35046
35046
  function ut(t) {
35047
- return new fs({
35047
+ return new hs({
35048
35048
  ...t,
35049
35049
  validator: (e, n) => e === void 0 || t.validator(e, n),
35050
35050
  refiner: (e, n) => e === void 0 || t.refiner(e, n)
35051
35051
  });
35052
35052
  }
35053
35053
  function jC(t, e) {
35054
- return new fs({
35054
+ return new hs({
35055
35055
  type: "record",
35056
35056
  schema: null,
35057
35057
  *entries(n) {
@@ -35062,7 +35062,7 @@ function jC(t, e) {
35062
35062
  }
35063
35063
  },
35064
35064
  validator(n) {
35065
- return Zf(n) || `Expected an object, but received: ${Li(n)}`;
35065
+ return Zf(n) || `Expected an object, but received: ${Ui(n)}`;
35066
35066
  },
35067
35067
  coercer(n) {
35068
35068
  return Zf(n) ? { ...n } : n;
@@ -35070,11 +35070,11 @@ function jC(t, e) {
35070
35070
  });
35071
35071
  }
35072
35072
  function $e() {
35073
- return Ca("string", (t) => typeof t == "string" || `Expected a string, but received: ${Li(t)}`);
35073
+ return Ca("string", (t) => typeof t == "string" || `Expected a string, but received: ${Ui(t)}`);
35074
35074
  }
35075
35075
  function Iw(t) {
35076
35076
  const e = kz();
35077
- return new fs({
35077
+ return new hs({
35078
35078
  type: "tuple",
35079
35079
  schema: null,
35080
35080
  *entries(n) {
@@ -35085,7 +35085,7 @@ function Iw(t) {
35085
35085
  }
35086
35086
  },
35087
35087
  validator(n) {
35088
- return Array.isArray(n) || `Expected an array, but received: ${Li(n)}`;
35088
+ return Array.isArray(n) || `Expected an array, but received: ${Ui(n)}`;
35089
35089
  },
35090
35090
  coercer(n) {
35091
35091
  return Array.isArray(n) ? n.slice() : n;
@@ -35094,7 +35094,7 @@ function Iw(t) {
35094
35094
  }
35095
35095
  function Ne(t) {
35096
35096
  const e = Object.keys(t);
35097
- return new fs({
35097
+ return new hs({
35098
35098
  type: "type",
35099
35099
  schema: t,
35100
35100
  *entries(n) {
@@ -35103,7 +35103,7 @@ function Ne(t) {
35103
35103
  yield [r, n[r], t[r]];
35104
35104
  },
35105
35105
  validator(n) {
35106
- return Zf(n) || `Expected an object, but received: ${Li(n)}`;
35106
+ return Zf(n) || `Expected an object, but received: ${Ui(n)}`;
35107
35107
  },
35108
35108
  coercer(n) {
35109
35109
  return Zf(n) ? { ...n } : n;
@@ -35112,7 +35112,7 @@ function Ne(t) {
35112
35112
  }
35113
35113
  function Dr(t) {
35114
35114
  const e = t.map((n) => n.type).join(" | ");
35115
- return new fs({
35115
+ return new hs({
35116
35116
  type: "union",
35117
35117
  schema: null,
35118
35118
  coercer(n, r) {
@@ -35137,7 +35137,7 @@ function Dr(t) {
35137
35137
  return [];
35138
35138
  }
35139
35139
  return [
35140
- `Expected the value to satisfy a union of \`${e}\`, but received: ${Li(n)}`,
35140
+ `Expected the value to satisfy a union of \`${e}\`, but received: ${Ui(n)}`,
35141
35141
  ...i
35142
35142
  ];
35143
35143
  }
@@ -35147,7 +35147,7 @@ function Yc() {
35147
35147
  return Ca("unknown", () => !0);
35148
35148
  }
35149
35149
  function Mu(t, e, n) {
35150
- return new fs({
35150
+ return new hs({
35151
35151
  ...t,
35152
35152
  coercer: (r, i) => KC(r, e) ? t.coercer(n(r, i), i) : t.coercer(r, i)
35153
35153
  });
@@ -35596,10 +35596,10 @@ const J_ = (t, e) => (t + (t >= 0 ? e : -e) / HC) / e;
35596
35596
  function jz(t, e, n) {
35597
35597
  const [[r, i], [s, o]] = e, a = J_(o * t, n), c = J_(-i * t, n);
35598
35598
  let l = t - a * r - c * s, u = -a * i - c * o;
35599
- const d = l < Ds, f = u < Ds;
35599
+ const d = l < Ls, f = u < Ls;
35600
35600
  d && (l = -l), f && (u = -u);
35601
35601
  const g = Cu(Math.ceil(EC(n) / 2)) + gc;
35602
- if (l < Ds || l >= g || u < Ds || u >= g)
35602
+ if (l < Ls || l >= g || u < Ls || u >= g)
35603
35603
  throw new Error("splitScalar (endomorphism): failed, k=" + t);
35604
35604
  return { k1neg: d, k1: l, k2neg: f, k2: u };
35605
35605
  }
@@ -35619,13 +35619,13 @@ class Vz extends Error {
35619
35619
  super(e);
35620
35620
  }
35621
35621
  }
35622
- const As = {
35622
+ const Rs = {
35623
35623
  // asn.1 DER encoding utils
35624
35624
  Err: Vz,
35625
35625
  // Basic building block is TLV (Tag-Length-Value)
35626
35626
  _tlv: {
35627
35627
  encode: (t, e) => {
35628
- const { Err: n } = As;
35628
+ const { Err: n } = Rs;
35629
35629
  if (t < 0 || t > 256)
35630
35630
  throw new n("tlv.encode: wrong tag");
35631
35631
  if (e.length & 1)
@@ -35638,7 +35638,7 @@ const As = {
35638
35638
  },
35639
35639
  // v - value, l - left bytes (unparsed)
35640
35640
  decode(t, e) {
35641
- const { Err: n } = As;
35641
+ const { Err: n } = Rs;
35642
35642
  let r = 0;
35643
35643
  if (t < 0 || t > 256)
35644
35644
  throw new n("tlv.encode: wrong tag");
@@ -35676,8 +35676,8 @@ const As = {
35676
35676
  // - if next byte doesn't have a flag, leading zero is not allowed (minimal encoding)
35677
35677
  _int: {
35678
35678
  encode(t) {
35679
- const { Err: e } = As;
35680
- if (t < Ds)
35679
+ const { Err: e } = Rs;
35680
+ if (t < Ls)
35681
35681
  throw new e("integer: negative integers are not allowed");
35682
35682
  let n = xd(t);
35683
35683
  if (Number.parseInt(n[0], 16) & 8 && (n = "00" + n), n.length & 1)
@@ -35685,7 +35685,7 @@ const As = {
35685
35685
  return n;
35686
35686
  },
35687
35687
  decode(t) {
35688
- const { Err: e } = As;
35688
+ const { Err: e } = Rs;
35689
35689
  if (t[0] & 128)
35690
35690
  throw new e("invalid signature integer: negative");
35691
35691
  if (t[0] === 0 && !(t[1] & 128))
@@ -35694,7 +35694,7 @@ const As = {
35694
35694
  }
35695
35695
  },
35696
35696
  toSig(t) {
35697
- const { Err: e, _int: n, _tlv: r } = As, i = On("signature", t), { v: s, l: o } = r.decode(48, i);
35697
+ const { Err: e, _int: n, _tlv: r } = Rs, i = On("signature", t), { v: s, l: o } = r.decode(48, i);
35698
35698
  if (o.length)
35699
35699
  throw new e("invalid signature: left bytes after parsing");
35700
35700
  const { v: a, l: c } = r.decode(2, s), { v: l, l: u } = r.decode(2, c);
@@ -35703,10 +35703,10 @@ const As = {
35703
35703
  return { r: n.decode(a), s: n.decode(l) };
35704
35704
  },
35705
35705
  hexFromSig(t) {
35706
- const { _tlv: e, _int: n } = As, r = e.encode(2, n.encode(t.r)), i = e.encode(2, n.encode(t.s)), s = r + i;
35706
+ const { _tlv: e, _int: n } = Rs, r = e.encode(2, n.encode(t.r)), i = e.encode(2, n.encode(t.s)), s = r + i;
35707
35707
  return e.encode(48, s);
35708
35708
  }
35709
- }, Ds = BigInt(0), gc = BigInt(1), HC = BigInt(2), Rd = BigInt(3), Hz = BigInt(4);
35709
+ }, Ls = BigInt(0), gc = BigInt(1), HC = BigInt(2), Rd = BigInt(3), Hz = BigInt(4);
35710
35710
  function oc(t, e) {
35711
35711
  const { BYTES: n } = t;
35712
35712
  let r;
@@ -35750,9 +35750,9 @@ function zz(t, e = {}) {
35750
35750
  if (ba(p, "isCompressed"), p) {
35751
35751
  u();
35752
35752
  const _ = !r.isOdd(R);
35753
- return Zi(zC(_), N);
35753
+ return Xi(zC(_), N);
35754
35754
  } else
35755
- return Zi(Uint8Array.of(4), N, r.toBytes(R));
35755
+ return Xi(Uint8Array.of(4), N, r.toBytes(R));
35756
35756
  }
35757
35757
  function f(j) {
35758
35758
  Mi(j, void 0, "Point");
@@ -35960,7 +35960,7 @@ function zz(t, e = {}) {
35960
35960
  const { endo: p } = e, v = this;
35961
35961
  if (!i.isValid(T))
35962
35962
  throw new Error("invalid scalar: out of range");
35963
- if (T === Ds || v.is0())
35963
+ if (T === Ls || v.is0())
35964
35964
  return U.ZERO;
35965
35965
  if (T === gc)
35966
35966
  return v;
@@ -36117,7 +36117,7 @@ function Wz(t, e, n = {}) {
36117
36117
  bits2int: "function",
36118
36118
  bits2int_modN: "function"
36119
36119
  });
36120
- const r = n.randomBytes || tw, i = n.hmac || ((p, ...v) => qI(e, p, Zi(...v))), { Fp: s, Fn: o } = t, { ORDER: a, BITS: c } = o, { keygen: l, getPublicKey: u, getSharedSecret: d, utils: f, lengths: g } = qz(t, n), y = {
36120
+ const r = n.randomBytes || tw, i = n.hmac || ((p, ...v) => qI(e, p, Xi(...v))), { Fp: s, Fn: o } = t, { ORDER: a, BITS: c } = o, { keygen: l, getPublicKey: u, getSharedSecret: d, utils: f, lengths: g } = qz(t, n), y = {
36121
36121
  prehash: !1,
36122
36122
  lowS: typeof n.lowS == "boolean" ? n.lowS : !1,
36123
36123
  format: void 0,
@@ -36146,7 +36146,7 @@ function Wz(t, e, n = {}) {
36146
36146
  k(v, R);
36147
36147
  let N;
36148
36148
  if (R === "der") {
36149
- const { r: x, s: h } = As.toSig(Mi(v));
36149
+ const { r: x, s: h } = Rs.toSig(Mi(v));
36150
36150
  return new S(x, h);
36151
36151
  }
36152
36152
  R === "recovered" && (N = v[0], R = "compact", v = v.subarray(1));
@@ -36168,7 +36168,7 @@ function Wz(t, e, n = {}) {
36168
36168
  const x = I === 2 || I === 3 ? N + a : N;
36169
36169
  if (!s.isValid(x))
36170
36170
  throw new Error("recovery id 2 or 3 invalid");
36171
- const h = s.toBytes(x), m = t.fromBytes(Zi(zC((I & 1) === 0), h)), A = o.inv(x), C = B(On("msgHash", v)), $ = o.create(-C * A), V = o.create(_ * A), Z = t.BASE.multiplyUnsafe($).add(m.multiplyUnsafe(V));
36171
+ const h = s.toBytes(x), m = t.fromBytes(Xi(zC((I & 1) === 0), h)), A = o.inv(x), C = B(On("msgHash", v)), $ = o.create(-C * A), V = o.create(_ * A), Z = t.BASE.multiplyUnsafe($).add(m.multiplyUnsafe(V));
36172
36172
  if (Z.is0())
36173
36173
  throw new Error("point at infinify");
36174
36174
  return Z.assertValidity(), Z;
@@ -36179,14 +36179,14 @@ function Wz(t, e, n = {}) {
36179
36179
  }
36180
36180
  toBytes(v = w) {
36181
36181
  if (_m(v), v === "der")
36182
- return $f(As.hexFromSig(this));
36182
+ return $f(Rs.hexFromSig(this));
36183
36183
  const R = o.toBytes(this.r), N = o.toBytes(this.s);
36184
36184
  if (v === "recovered") {
36185
36185
  if (this.recovery == null)
36186
36186
  throw new Error("recovery bit must be present");
36187
- return Zi(Uint8Array.of(this.recovery), R, N);
36187
+ return Xi(Uint8Array.of(this.recovery), R, N);
36188
36188
  }
36189
- return Zi(R, N);
36189
+ return Xi(R, N);
36190
36190
  }
36191
36191
  toHex(v) {
36192
36192
  return da(this.toBytes(v));
@@ -36225,7 +36225,7 @@ function Wz(t, e, n = {}) {
36225
36225
  return o.create(F(v));
36226
36226
  }, z = Cu(c);
36227
36227
  function X(p) {
36228
- return Em("num < 2^" + c, p, Ds, z), o.toBytes(p);
36228
+ return Em("num < 2^" + c, p, Ls, z), o.toBytes(p);
36229
36229
  }
36230
36230
  function Y(p, v) {
36231
36231
  return Mi(p, void 0, "message"), v ? Mi(e(p), void 0, "prehashed message") : p;
@@ -36240,16 +36240,16 @@ function Wz(t, e, n = {}) {
36240
36240
  const $ = I === !0 ? r(g.secretKey) : I;
36241
36241
  h.push(On("extraEntropy", $));
36242
36242
  }
36243
- const m = Zi(...h), A = P;
36243
+ const m = Xi(...h), A = P;
36244
36244
  function C($) {
36245
36245
  const V = F($);
36246
36246
  if (!o.isValidNot0(V))
36247
36247
  return;
36248
36248
  const Z = o.inv(V), ne = t.BASE.multiply(V).toAffine(), se = o.create(ne.x);
36249
- if (se === Ds)
36249
+ if (se === Ls)
36250
36250
  return;
36251
36251
  const ue = o.create(Z * o.create(A + se * x));
36252
- if (ue === Ds)
36252
+ if (ue === Ls)
36253
36253
  return;
36254
36254
  let fe = (ne.x === se ? 0 : 2) | Number(ne.y & gc), Ae = ue;
36255
36255
  return N && E(ue) && (Ae = o.neg(ue), fe ^= 1), new S(se, Ae, fe);
@@ -36272,7 +36272,7 @@ function Wz(t, e, n = {}) {
36272
36272
  try {
36273
36273
  v = S.fromBytes(On("sig", p), "der");
36274
36274
  } catch (_) {
36275
- if (!(_ instanceof As.Err))
36275
+ if (!(_ instanceof Rs.Err))
36276
36276
  throw _;
36277
36277
  }
36278
36278
  if (!v)
@@ -36759,7 +36759,7 @@ class $h {
36759
36759
  }
36760
36760
  }
36761
36761
  const XC = "Reached end of buffer unexpectedly";
36762
- function Os(t) {
36762
+ function Ps(t) {
36763
36763
  if (t.length === 0)
36764
36764
  throw new Error(XC);
36765
36765
  return t.shift();
@@ -36874,10 +36874,10 @@ class Hs {
36874
36874
  */
36875
36875
  static from(e) {
36876
36876
  let n = [...e];
36877
- const r = Os(n);
36877
+ const r = Ps(n);
36878
36878
  if (r !== (r & Cw))
36879
36879
  throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");
36880
- const i = Os(n), s = Os(n), o = ti(n);
36880
+ const i = Ps(n), s = Ps(n), o = ti(n);
36881
36881
  let a = [];
36882
36882
  for (let f = 0; f < o; f++) {
36883
36883
  const g = ri(n, 0, Po);
@@ -36886,7 +36886,7 @@ class Hs {
36886
36886
  const c = ri(n, 0, Po), l = ti(n);
36887
36887
  let u = [];
36888
36888
  for (let f = 0; f < l; f++) {
36889
- const g = Os(n), y = ti(n), w = ri(n, 0, y), E = ti(n), b = ri(n, 0, E), k = ir.encode(pt.Buffer.from(b));
36889
+ const g = Ps(n), y = ti(n), w = ri(n, 0, y), E = ti(n), b = ri(n, 0, E), k = ir.encode(pt.Buffer.from(b));
36890
36890
  u.push({
36891
36891
  programIdIndex: g,
36892
36892
  accounts: w,
@@ -37053,20 +37053,20 @@ class cu {
37053
37053
  }
37054
37054
  static deserialize(e) {
37055
37055
  let n = [...e];
37056
- const r = Os(n), i = r & Cw;
37056
+ const r = Ps(n), i = r & Cw;
37057
37057
  pn(r !== i, "Expected versioned message but received legacy message");
37058
37058
  const s = i;
37059
37059
  pn(s === 0, `Expected versioned message with version 0 but found version ${s}`);
37060
37060
  const o = {
37061
- numRequiredSignatures: Os(n),
37062
- numReadonlySignedAccounts: Os(n),
37063
- numReadonlyUnsignedAccounts: Os(n)
37061
+ numRequiredSignatures: Ps(n),
37062
+ numReadonlySignedAccounts: Ps(n),
37063
+ numReadonlyUnsignedAccounts: Ps(n)
37064
37064
  }, a = [], c = ti(n);
37065
37065
  for (let y = 0; y < c; y++)
37066
37066
  a.push(new wt(ri(n, 0, Po)));
37067
37067
  const l = ir.encode(ri(n, 0, Po)), u = ti(n), d = [];
37068
37068
  for (let y = 0; y < u; y++) {
37069
- const w = Os(n), E = ti(n), b = ri(n, 0, E), k = ti(n), S = new Uint8Array(ri(n, 0, k));
37069
+ const w = Ps(n), E = ti(n), b = ri(n, 0, E), k = ti(n), S = new Uint8Array(ri(n, 0, k));
37070
37070
  d.push({
37071
37071
  programIdIndex: w,
37072
37072
  accountKeyIndexes: b,
@@ -38385,7 +38385,7 @@ const Pq = Ne({
38385
38385
  }), Dq = Ne({
38386
38386
  slotsPerEpoch: de(),
38387
38387
  leaderScheduleSlotOffset: de(),
38388
- warmup: us(),
38388
+ warmup: ds(),
38389
38389
  firstNormalEpoch: de(),
38390
38390
  firstNormalSlot: de()
38391
38391
  }), Lq = jC($e(), We(de())), Oa = Ye(Dr([Ne({}), $e()])), Uq = Ne({
@@ -38405,7 +38405,7 @@ const Pq = Ne({
38405
38405
  err: Ye(Dr([Ne({}), $e()])),
38406
38406
  logs: Ye(We($e())),
38407
38407
  accounts: ut(Ye(We(Ye(Ne({
38408
- executable: us(),
38408
+ executable: ds(),
38409
38409
  owner: $e(),
38410
38410
  lamports: de(),
38411
38411
  data: We($e()),
@@ -38504,7 +38504,7 @@ const Wq = Bt(Pq), Gq = Bt(Mq), Yq = Bt(kq), Jq = Bt(Bq), Zq = Bt(Dq), Xq = Bt(L
38504
38504
  }))), nW = kn(We(Ne({
38505
38505
  pubkey: En,
38506
38506
  account: Ne({
38507
- executable: us(),
38507
+ executable: ds(),
38508
38508
  owner: En,
38509
38509
  lamports: de(),
38510
38510
  data: Nw,
@@ -38517,7 +38517,7 @@ const Wq = Bt(Pq), Gq = Bt(Mq), Yq = Bt(kq), Jq = Bt(Bq), Zq = Bt(Dq), Xq = Bt(L
38517
38517
  }), rW = kn(We(Ne({
38518
38518
  pubkey: En,
38519
38519
  account: Ne({
38520
- executable: us(),
38520
+ executable: ds(),
38521
38521
  owner: En,
38522
38522
  lamports: de(),
38523
38523
  data: Am,
@@ -38527,7 +38527,7 @@ const Wq = Bt(Pq), Gq = Bt(Mq), Yq = Bt(kq), Jq = Bt(Bq), Zq = Bt(Dq), Xq = Bt(L
38527
38527
  lamports: de(),
38528
38528
  address: En
38529
38529
  }))), uu = Ne({
38530
- executable: us(),
38530
+ executable: ds(),
38531
38531
  owner: En,
38532
38532
  lamports: de(),
38533
38533
  data: Nw,
@@ -38536,7 +38536,7 @@ const Wq = Bt(Pq), Gq = Bt(Mq), Yq = Bt(kq), Jq = Bt(Bq), Zq = Bt(Dq), Xq = Bt(L
38536
38536
  pubkey: En,
38537
38537
  account: uu
38538
38538
  }), oW = Mu(Dr([Rw(pt.Buffer), Am]), Dr([tO, Am]), (t) => Array.isArray(t) ? He(t, Nw) : t), Rm = Ne({
38539
- executable: us(),
38539
+ executable: ds(),
38540
38540
  owner: En,
38541
38541
  lamports: de(),
38542
38542
  data: oW,
@@ -38619,7 +38619,7 @@ const Wq = Bt(Pq), Gq = Bt(Mq), Yq = Bt(kq), Jq = Bt(Bq), Zq = Bt(Dq), Xq = Bt(L
38619
38619
  votePubkey: $e(),
38620
38620
  nodePubkey: $e(),
38621
38621
  activatedStake: de(),
38622
- epochVoteAccount: us(),
38622
+ epochVoteAccount: ds(),
38623
38623
  epochCredits: We(Iw([de(), de(), de()])),
38624
38624
  commission: de(),
38625
38625
  lastVote: de(),
@@ -38655,8 +38655,8 @@ const Wq = Bt(Pq), Gq = Bt(Mq), Yq = Bt(kq), Jq = Bt(Bq), Zq = Bt(Dq), Xq = Bt(L
38655
38655
  })
38656
38656
  }), iO = Ne({
38657
38657
  pubkey: En,
38658
- signer: us(),
38659
- writable: us(),
38658
+ signer: ds(),
38659
+ writable: ds(),
38660
38660
  source: ut(Dr([wn("transaction"), wn("lookupTable")]))
38661
38661
  }), sO = Ne({
38662
38662
  accountKeys: We(iO),
@@ -38827,7 +38827,7 @@ const Wq = Bt(Pq), Gq = Bt(Mq), Yq = Bt(kq), Jq = Bt(Bq), Zq = Bt(Dq), Xq = Bt(L
38827
38827
  }))), BW = kn(Ne({
38828
38828
  blockhash: $e(),
38829
38829
  lastValidBlockHeight: de()
38830
- })), DW = kn(us()), LW = Ne({
38830
+ })), DW = kn(ds()), LW = Ne({
38831
38831
  slot: de(),
38832
38832
  numTransactions: de(),
38833
38833
  numSlots: de(),
@@ -41226,7 +41226,7 @@ function qW(t) {
41226
41226
  };
41227
41227
  }
41228
41228
  var WW = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
41229
- const Us = qW(WW);
41229
+ const Li = qW(WW);
41230
41230
  function F0(t, e) {
41231
41231
  switch (e.split(":")[0].toLowerCase()) {
41232
41232
  case "solana":
@@ -41267,7 +41267,7 @@ function GW(t) {
41267
41267
  try {
41268
41268
  const e = zc(t);
41269
41269
  return {
41270
- signature: Us.encode(e),
41270
+ signature: Li.encode(e),
41271
41271
  rawSignature: t
41272
41272
  };
41273
41273
  } catch {
@@ -41497,7 +41497,7 @@ var hS = 10080 * 60 * 1e3, th = ["google", "apple", "phantom"], rG = class {
41497
41497
  networkId: this.currentNetworkId
41498
41498
  });
41499
41499
  return {
41500
- signature: typeof n.signature == "string" ? new Uint8Array(Us.decode(n.signature)) : n.signature,
41500
+ signature: typeof n.signature == "string" ? new Uint8Array(Li.decode(n.signature)) : n.signature,
41501
41501
  publicKey: this._publicKey || ""
41502
41502
  };
41503
41503
  }
@@ -42014,7 +42014,7 @@ var oG = class {
42014
42014
  publicKey: e.publicKey,
42015
42015
  platform: i
42016
42016
  });
42017
- const a = Vn(Us.decode(e.publicKey)), c = `user-${ET()}`, { organizationId: l } = await r.createOrganization(o, [
42017
+ const a = Vn(Li.decode(e.publicKey)), c = `user-${ET()}`, { organizationId: l } = await r.createOrganization(o, [
42018
42018
  {
42019
42019
  username: c,
42020
42020
  role: "ADMIN",
@@ -42493,14 +42493,14 @@ var oG = class {
42493
42493
  n
42494
42494
  ), i = Vn(new Uint8Array(r)), s = t.type || this.type, o = t.type === "OIDC" ? t.idToken : this.idToken, a = t.type === "OIDC" ? t.salt : this.salt, c = s === "PKI" ? {
42495
42495
  // Decode base58 public key to bytes, then encode as base64url (consistent with ApiKeyStamper)
42496
- publicKey: Vn(Us.decode(this.activeKeyPairRecord.keyInfo.publicKey)),
42496
+ publicKey: Vn(Li.decode(this.activeKeyPairRecord.keyInfo.publicKey)),
42497
42497
  signature: i,
42498
42498
  kind: "PKI",
42499
42499
  algorithm: this.algorithm
42500
42500
  } : {
42501
42501
  kind: "OIDC",
42502
42502
  idToken: o,
42503
- publicKey: Vn(Us.decode(this.activeKeyPairRecord.keyInfo.publicKey)),
42503
+ publicKey: Vn(Li.decode(this.activeKeyPairRecord.keyInfo.publicKey)),
42504
42504
  salt: a,
42505
42505
  algorithm: this.algorithm,
42506
42506
  signature: i
@@ -42562,7 +42562,7 @@ var oG = class {
42562
42562
  !1,
42563
42563
  // non-extractable - private key can never be exported
42564
42564
  ["sign", "verify"]
42565
- ), n = await crypto.subtle.exportKey("raw", e.publicKey), r = Us.encode(new Uint8Array(n)), i = await crypto.subtle.digest("SHA-256", n), s = Vn(new Uint8Array(i)).substring(0, 16), o = Date.now(), c = {
42565
+ ), n = await crypto.subtle.exportKey("raw", e.publicKey), r = Li.encode(new Uint8Array(n)), i = await crypto.subtle.digest("SHA-256", n), s = Vn(new Uint8Array(i)).substring(0, 16), o = Date.now(), c = {
42566
42566
  keyPair: e,
42567
42567
  keyInfo: {
42568
42568
  keyId: s,
@@ -43268,7 +43268,7 @@ var gG = class {
43268
43268
  if (!o.signature)
43269
43269
  throw new Error("No signature found in signAndSendTransaction result");
43270
43270
  const a = this.parseUint8Array(o.signature);
43271
- return { signature: Us.encode(a) };
43271
+ return { signature: Li.encode(a) };
43272
43272
  } catch (e) {
43273
43273
  throw ee.error(te.INJECTED_PROVIDER, "Wallet Standard Solana signAndSendTransaction failed", {
43274
43274
  walletId: this.walletId,
@@ -45526,7 +45526,7 @@ class LG {
45526
45526
  if (!i) throw new Error("No account returned from Phantom.");
45527
45527
  const s = new TextEncoder().encode(e), o = await n.solana.signMessage(s);
45528
45528
  return {
45529
- signature: Us.encode(o.signature),
45529
+ signature: Li.encode(o.signature),
45530
45530
  message: e,
45531
45531
  accountId: i.address,
45532
45532
  accountType: "svm"
@@ -45537,7 +45537,7 @@ class LG {
45537
45537
  */
45538
45538
  async signMessage(e) {
45539
45539
  const n = this.getSdk(), r = new TextEncoder().encode(e), i = await n.solana.signMessage(r);
45540
- return Us.encode(i.signature);
45540
+ return Li.encode(i.signature);
45541
45541
  }
45542
45542
  /**
45543
45543
  * SIGN TRANSACTION
@@ -45775,8 +45775,45 @@ function yY({
45775
45775
  )
45776
45776
  ] });
45777
45777
  }
45778
+ class wY {
45779
+ getProvider() {
45780
+ return typeof window > "u" ? null : window.solana;
45781
+ }
45782
+ isPeridotWallet() {
45783
+ const e = this.getProvider();
45784
+ return !!(e && e.isPeridotWallet);
45785
+ }
45786
+ async login(e) {
45787
+ const n = this.getProvider();
45788
+ if (!n) throw new Error("PeridotWallet not found");
45789
+ const { publicKey: r } = await n.connect(), i = new TextEncoder().encode(e), s = await n.signMessage(i);
45790
+ return {
45791
+ signature: typeof s.signature == "string" ? s.signature : Li.encode(s.signature),
45792
+ message: e,
45793
+ accountId: r.toString(),
45794
+ accountType: "svm"
45795
+ };
45796
+ }
45797
+ async signMessage(e) {
45798
+ const n = this.getProvider();
45799
+ if (!n) throw new Error("PeridotWallet not found");
45800
+ const r = new TextEncoder().encode(e), i = await n.signMessage(r);
45801
+ return typeof i.signature == "string" ? i.signature : Li.encode(i.signature);
45802
+ }
45803
+ async sendTransaction(e) {
45804
+ const n = this.getProvider();
45805
+ if (!n || !n.isPeridotWallet)
45806
+ throw new Error("PeridotWallet not found or not active");
45807
+ const r = e.serialize({
45808
+ requireAllSignatures: !1,
45809
+ verifySignatures: !1
45810
+ }).toString("base64");
45811
+ return { signature: await n.sendTransaction(r) };
45812
+ }
45813
+ }
45778
45814
  export {
45779
45815
  yY as ConnectButton,
45780
45816
  lL as Metamask,
45817
+ wY as PeridotWallet,
45781
45818
  LG as Phantom
45782
45819
  };