@use-glyph/sdk-react 1.0.19 → 1.0.21

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
@@ -1,9 +1,9 @@
1
1
  import * as w from "react";
2
- import S, { createContext as us, useContext as wr, useState as fe, useEffect as Ue, memo as Kr, forwardRef as B2, createElement as Oa, useLayoutEffect as A2, useMemo as wt, useCallback as bt, useRef as _2, lazy as $2, Suspense as p5 } from "react";
2
+ import S, { createContext as ds, useContext as wr, useState as fe, useEffect as Ue, memo as Kr, forwardRef as B2, createElement as Fa, useLayoutEffect as A2, useMemo as wt, useCallback as bt, useRef as _2, lazy as $2, Suspense as p5 } from "react";
3
3
  import { injected as h5, useSwitchChain as m5, useChainId as Qt, deepEqual as v5, useConnect as b5, useDisconnect as y5, useAccount as x5, createConfig as N5, WagmiProvider as w5, useConfig as g5, useReconnect as X5 } from "wagmi";
4
- import { parseUnits as L5, webSocket as el, http as jr, createPublicClient as Q1, fallback as tl, isAddress as ui, checksumAddress as Do, zeroAddress as Hn, erc20Abi as Eo, encodeFunctionData as W5, parseEther as q5, formatUnits as Mo, ProviderRpcError as Io, getAddress as di, SwitchChainError as V5, fromHex as O5, isHex as F5, hexToNumber as T5 } from "viem";
4
+ import { parseUnits as L5, webSocket as el, http as jr, createPublicClient as Q1, fallback as tl, isAddress as ui, checksumAddress as Eo, zeroAddress as Hn, erc20Abi as Mo, encodeFunctionData as W5, parseEther as q5, formatUnits as Io, ProviderRpcError as Qo, getAddress as di, SwitchChainError as V5, fromHex as O5, isHex as F5, hexToNumber as T5 } from "viem";
5
5
  import * as p1 from "react-dom";
6
- import ds from "react-dom";
6
+ import fs from "react-dom";
7
7
  import { useQuery as S5, QueryClientProvider as rl, QueryClient as nl } from "@tanstack/react-query";
8
8
  import { useCrossAppAccounts as U5, usePrivy as C5, PrivyProvider as j5 } from "@privy-io/react-auth";
9
9
  import { createConfig as R5, WagmiProvider as z5 } from "@privy-io/wagmi";
@@ -610,15 +610,15 @@ Check the top-level render call using <` + oe + ">.");
610
610
  if (Ce.call(B, "key")) {
611
611
  var Mr = H(T), Xt = Object.keys(B).filter(function(f5) {
612
612
  return f5 !== "key";
613
- }), Jo = Xt.length > 0 ? "{key: someKey, " + Xt.join(": ..., ") + ": ...}" : "{key: someKey}";
614
- if (!zt[Mr + Jo]) {
613
+ }), Do = Xt.length > 0 ? "{key: someKey, " + Xt.join(": ..., ") + ": ...}" : "{key: someKey}";
614
+ if (!zt[Mr + Do]) {
615
615
  var d5 = Xt.length > 0 ? "{" + Xt.join(": ..., ") + ": ...}" : "{}";
616
616
  L(`A props object containing a "key" prop is being spread into JSX:
617
617
  let props = %s;
618
618
  <%s {...props} />
619
619
  React keys must be passed directly to JSX without using spread:
620
620
  let props = %s;
621
- <%s key={someKey} {...props} />`, Jo, Mr, d5, Mr), zt[Mr + Jo] = !0;
621
+ <%s key={someKey} {...props} />`, Do, Mr, d5, Mr), zt[Mr + Do] = !0;
622
622
  }
623
623
  }
624
624
  return T === n ? Ie(it) : Ke(it), it;
@@ -639,7 +639,7 @@ function K5() {
639
639
  return hi || (hi = 1, process.env.NODE_ENV === "production" ? T1.exports = H5() : T1.exports = Z5()), T1.exports;
640
640
  }
641
641
  var s = K5();
642
- const h1 = us(void 0);
642
+ const h1 = ds(void 0);
643
643
  h1.displayName = "GlyphViewContext";
644
644
  function ol(e) {
645
645
  var t, r, n = "";
@@ -654,14 +654,14 @@ function al() {
654
654
  for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = ol(e)) && (n && (n += " "), n += t);
655
655
  return n;
656
656
  }
657
- const fs = "-", k5 = (e) => {
657
+ const ps = "-", k5 = (e) => {
658
658
  const t = G5(e), {
659
659
  conflictingClassGroups: r,
660
660
  conflictingClassGroupModifiers: n
661
661
  } = e;
662
662
  return {
663
663
  getClassGroupId: (l) => {
664
- const i = l.split(fs);
664
+ const i = l.split(ps);
665
665
  return i[0] === "" && i.length !== 1 && i.shift(), sl(i, t) || Y5(l);
666
666
  },
667
667
  getConflictingClassGroupIds: (l, i) => {
@@ -678,7 +678,7 @@ const fs = "-", k5 = (e) => {
678
678
  return o;
679
679
  if (t.validators.length === 0)
680
680
  return;
681
- const a = e.join(fs);
681
+ const a = e.join(ps);
682
682
  return (l = t.validators.find(({
683
683
  validator: i
684
684
  }) => i(a))) == null ? void 0 : l.classGroupId;
@@ -697,9 +697,9 @@ const fs = "-", k5 = (e) => {
697
697
  validators: []
698
698
  };
699
699
  return D5(Object.entries(e.classGroups), r).forEach(([a, l]) => {
700
- Fa(l, n, a, t);
700
+ Ta(l, n, a, t);
701
701
  }), n;
702
- }, Fa = (e, t, r, n) => {
702
+ }, Ta = (e, t, r, n) => {
703
703
  e.forEach((o) => {
704
704
  if (typeof o == "string") {
705
705
  const a = o === "" ? t : vi(t, o);
@@ -708,7 +708,7 @@ const fs = "-", k5 = (e) => {
708
708
  }
709
709
  if (typeof o == "function") {
710
710
  if (J5(o)) {
711
- Fa(o(n), t, r, n);
711
+ Ta(o(n), t, r, n);
712
712
  return;
713
713
  }
714
714
  t.validators.push({
@@ -718,12 +718,12 @@ const fs = "-", k5 = (e) => {
718
718
  return;
719
719
  }
720
720
  Object.entries(o).forEach(([a, l]) => {
721
- Fa(l, vi(t, a), r, n);
721
+ Ta(l, vi(t, a), r, n);
722
722
  });
723
723
  });
724
724
  }, vi = (e, t) => {
725
725
  let r = e;
726
- return t.split(fs).forEach((n) => {
726
+ return t.split(ps).forEach((n) => {
727
727
  r.nextPart.has(n) || r.nextPart.set(n, {
728
728
  nextPart: /* @__PURE__ */ new Map(),
729
729
  validators: []
@@ -874,7 +874,7 @@ function bi(e, ...t) {
874
874
  const Qe = (e) => {
875
875
  const t = (r) => r[e] || [];
876
876
  return t.isThemeGetter = !0, t;
877
- }, cl = /^\[(?:([a-z-]+):)?(.+)\]$/i, $5 = /^\d+\/\d+$/, e7 = /* @__PURE__ */ new Set(["px", "full", "screen"]), t7 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, r7 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, n7 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, o7 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, a7 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ur = (e) => wn(e) || e7.has(e) || $5.test(e), Lr = (e) => Sn(e, "length", p7), wn = (e) => !!e && !Number.isNaN(Number(e)), Qo = (e) => Sn(e, "number", wn), kn = (e) => !!e && Number.isInteger(Number(e)), s7 = (e) => e.endsWith("%") && wn(e.slice(0, -1)), ye = (e) => cl.test(e), Wr = (e) => t7.test(e), i7 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), l7 = (e) => Sn(e, i7, ul), c7 = (e) => Sn(e, "position", ul), u7 = /* @__PURE__ */ new Set(["image", "url"]), d7 = (e) => Sn(e, u7, m7), f7 = (e) => Sn(e, "", h7), Yn = () => !0, Sn = (e, t, r) => {
877
+ }, cl = /^\[(?:([a-z-]+):)?(.+)\]$/i, $5 = /^\d+\/\d+$/, e7 = /* @__PURE__ */ new Set(["px", "full", "screen"]), t7 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, r7 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, n7 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, o7 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, a7 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ur = (e) => wn(e) || e7.has(e) || $5.test(e), Lr = (e) => Sn(e, "length", p7), wn = (e) => !!e && !Number.isNaN(Number(e)), Bo = (e) => Sn(e, "number", wn), kn = (e) => !!e && Number.isInteger(Number(e)), s7 = (e) => e.endsWith("%") && wn(e.slice(0, -1)), ye = (e) => cl.test(e), Wr = (e) => t7.test(e), i7 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), l7 = (e) => Sn(e, i7, ul), c7 = (e) => Sn(e, "position", ul), u7 = /* @__PURE__ */ new Set(["image", "url"]), d7 = (e) => Sn(e, u7, m7), f7 = (e) => Sn(e, "", h7), Yn = () => !0, Sn = (e, t, r) => {
878
878
  const n = cl.exec(e);
879
879
  return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
880
880
  }, p7 = (e) => (
@@ -1571,7 +1571,7 @@ const Qe = (e) => {
1571
1571
  * @see https://tailwindcss.com/docs/font-weight
1572
1572
  */
1573
1573
  "font-weight": [{
1574
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Qo]
1574
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Bo]
1575
1575
  }],
1576
1576
  /**
1577
1577
  * Font Family
@@ -1622,7 +1622,7 @@ const Qe = (e) => {
1622
1622
  * @see https://tailwindcss.com/docs/line-clamp
1623
1623
  */
1624
1624
  "line-clamp": [{
1625
- "line-clamp": ["none", wn, Qo]
1625
+ "line-clamp": ["none", wn, Bo]
1626
1626
  }],
1627
1627
  /**
1628
1628
  * Line Height
@@ -2836,7 +2836,7 @@ const Qe = (e) => {
2836
2836
  * @see https://tailwindcss.com/docs/stroke-width
2837
2837
  */
2838
2838
  "stroke-w": [{
2839
- stroke: [ur, Lr, Qo]
2839
+ stroke: [ur, Lr, Bo]
2840
2840
  }],
2841
2841
  /**
2842
2842
  * Stroke
@@ -2950,13 +2950,13 @@ const dl = "2.29.2";
2950
2950
  let Gn = {
2951
2951
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: r }) => t ? `${e ?? "https://viem.sh"}${t}${r ? `#${r}` : ""}` : void 0,
2952
2952
  version: `viem@${dl}`
2953
- }, ot = class Ta extends Error {
2953
+ }, ot = class Sa extends Error {
2954
2954
  constructor(t, r = {}) {
2955
2955
  var i;
2956
2956
  const n = (() => {
2957
2957
  var c;
2958
- return r.cause instanceof Ta ? r.cause.details : (c = r.cause) != null && c.message ? r.cause.message : r.details;
2959
- })(), o = r.cause instanceof Ta && r.cause.docsPath || r.docsPath, a = (i = Gn.getDocsUrl) == null ? void 0 : i.call(Gn, { ...r, docsPath: o }), l = [
2958
+ return r.cause instanceof Sa ? r.cause.details : (c = r.cause) != null && c.message ? r.cause.message : r.details;
2959
+ })(), o = r.cause instanceof Sa && r.cause.docsPath || r.docsPath, a = (i = Gn.getDocsUrl) == null ? void 0 : i.call(Gn, { ...r, docsPath: o }), l = [
2960
2960
  t || "An error occurred.",
2961
2961
  "",
2962
2962
  ...r.metaMessages ? [...r.metaMessages, ""] : [],
@@ -3170,7 +3170,7 @@ function xn(e, t = {}) {
3170
3170
  function A1(e, t = {}) {
3171
3171
  return Number(xn(e, t));
3172
3172
  }
3173
- function ps(e, t) {
3173
+ function hs(e, t) {
3174
3174
  return ({ exclude: r, format: n }) => ({
3175
3175
  exclude: r,
3176
3176
  format: (o) => {
@@ -3193,7 +3193,7 @@ const bl = {
3193
3193
  "0x3": "eip4844",
3194
3194
  "0x4": "eip7702"
3195
3195
  };
3196
- function hs(e) {
3196
+ function ms(e) {
3197
3197
  const t = {
3198
3198
  ...e,
3199
3199
  blockHash: e.blockHash ? e.blockHash : null,
@@ -3225,7 +3225,7 @@ function hs(e) {
3225
3225
  }
3226
3226
  })(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
3227
3227
  }
3228
- const U7 = /* @__PURE__ */ ps("transaction", hs);
3228
+ const U7 = /* @__PURE__ */ hs("transaction", ms);
3229
3229
  function C7(e) {
3230
3230
  return e.map((t) => ({
3231
3231
  address: t.address,
@@ -3237,7 +3237,7 @@ function C7(e) {
3237
3237
  }));
3238
3238
  }
3239
3239
  function j7(e) {
3240
- const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : hs(r));
3240
+ const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : ms(r));
3241
3241
  return {
3242
3242
  ...e,
3243
3243
  baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
@@ -3256,7 +3256,7 @@ function j7(e) {
3256
3256
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
3257
3257
  };
3258
3258
  }
3259
- const R7 = /* @__PURE__ */ ps("block", j7);
3259
+ const R7 = /* @__PURE__ */ hs("block", j7);
3260
3260
  function z7(e, { args: t, eventName: r } = {}) {
3261
3261
  return {
3262
3262
  ...e,
@@ -3288,7 +3288,7 @@ function H7(e) {
3288
3288
  };
3289
3289
  return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
3290
3290
  }
3291
- const Z7 = /* @__PURE__ */ ps("transactionReceipt", H7), ms = 2n ** 256n - 1n;
3291
+ const Z7 = /* @__PURE__ */ hs("transactionReceipt", H7), vs = 2n ** 256n - 1n;
3292
3292
  function v1(e) {
3293
3293
  return `0x${e.reduce((t, r) => t + r.replace("0x", ""), "")}`;
3294
3294
  }
@@ -3487,7 +3487,7 @@ function E7(e, t) {
3487
3487
  ];
3488
3488
  return a = a.replace(/(0+)$/, ""), `${n ? "-" : ""}${o || "0"}${a ? `.${a}` : ""}`;
3489
3489
  }
3490
- function Sa(e, t = "wei") {
3490
+ function Ua(e, t = "wei") {
3491
3491
  return E7(e, D7[t]);
3492
3492
  }
3493
3493
  function M7(e) {
@@ -3564,7 +3564,7 @@ function wi(e) {
3564
3564
  function _7(e) {
3565
3565
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
3566
3566
  }
3567
- function vs(e, ...t) {
3567
+ function bs(e, ...t) {
3568
3568
  if (!_7(e))
3569
3569
  throw new Error("Uint8Array expected");
3570
3570
  if (t.length > 0 && !t.includes(e.length))
@@ -3577,7 +3577,7 @@ function _1(e, t = !0) {
3577
3577
  throw new Error("Hash#digest() has already been called");
3578
3578
  }
3579
3579
  function Xl(e, t) {
3580
- vs(e);
3580
+ bs(e);
3581
3581
  const r = t.outputLen;
3582
3582
  if (e.length < r)
3583
3583
  throw new Error("digestInto() expects output buffer of length at least " + r);
@@ -3586,7 +3586,7 @@ function Xl(e, t) {
3586
3586
  function $7(e) {
3587
3587
  return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
3588
3588
  }
3589
- function Bo(e) {
3589
+ function Ao(e) {
3590
3590
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
3591
3591
  }
3592
3592
  function $t(e, t) {
@@ -3606,8 +3606,8 @@ function tu(e) {
3606
3606
  throw new Error("utf8ToBytes expected string, got " + typeof e);
3607
3607
  return new Uint8Array(new TextEncoder().encode(e));
3608
3608
  }
3609
- function bs(e) {
3610
- return typeof e == "string" && (e = tu(e)), vs(e), e;
3609
+ function ys(e) {
3610
+ return typeof e == "string" && (e = tu(e)), bs(e), e;
3611
3611
  }
3612
3612
  let Ll = class {
3613
3613
  // Safe version that clones internal state
@@ -3616,7 +3616,7 @@ let Ll = class {
3616
3616
  }
3617
3617
  };
3618
3618
  function Wl(e) {
3619
- const t = (n) => e().update(bs(n)).digest(), r = e();
3619
+ const t = (n) => e().update(ys(n)).digest(), r = e();
3620
3620
  return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
3621
3621
  }
3622
3622
  function ru(e, t, r, n) {
@@ -3633,17 +3633,17 @@ function ou(e, t, r) {
3633
3633
  }
3634
3634
  let au = class extends Ll {
3635
3635
  constructor(t, r, n, o) {
3636
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = o, this.buffer = new Uint8Array(t), this.view = Bo(this.buffer);
3636
+ super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = o, this.buffer = new Uint8Array(t), this.view = Ao(this.buffer);
3637
3637
  }
3638
3638
  update(t) {
3639
3639
  _1(this);
3640
3640
  const { view: r, buffer: n, blockLen: o } = this;
3641
- t = bs(t);
3641
+ t = ys(t);
3642
3642
  const a = t.length;
3643
3643
  for (let l = 0; l < a; ) {
3644
3644
  const i = Math.min(o - this.pos, a - l);
3645
3645
  if (i === o) {
3646
- const c = Bo(t);
3646
+ const c = Ao(t);
3647
3647
  for (; o <= a - l; l += o)
3648
3648
  this.process(c, l);
3649
3649
  continue;
@@ -3660,7 +3660,7 @@ let au = class extends Ll {
3660
3660
  for (let d = l; d < o; d++)
3661
3661
  r[d] = 0;
3662
3662
  ru(n, o - 8, BigInt(this.length * 8), a), this.process(n, 0);
3663
- const i = Bo(t), c = this.outputLen;
3663
+ const i = Ao(t), c = this.outputLen;
3664
3664
  if (c % 4)
3665
3665
  throw new Error("_sha2: outputLen should be aligned to 32bit");
3666
3666
  const u = c / 4, f = this.get();
@@ -3807,9 +3807,9 @@ function du(e) {
3807
3807
  }));
3808
3808
  return o;
3809
3809
  }
3810
- const Li = 6, ql = 32, ys = 4096, Vl = ql * ys, Wi = Vl * Li - // terminator byte (0x80).
3810
+ const Li = 6, ql = 32, xs = 4096, Vl = ql * xs, Wi = Vl * Li - // terminator byte (0x80).
3811
3811
  1 - // zero byte (0x00) appended to each field element.
3812
- 1 * ys * Li, Ol = 1;
3812
+ 1 * xs * Li, Ol = 1;
3813
3813
  class fu extends ot {
3814
3814
  constructor({ maxSize: t, size: r }) {
3815
3815
  super("Blob size is too large.", {
@@ -3856,7 +3856,7 @@ function mu(e) {
3856
3856
  for (; a; ) {
3857
3857
  const i = yl(new Uint8Array(Vl));
3858
3858
  let c = 0;
3859
- for (; c < ys; ) {
3859
+ for (; c < xs; ) {
3860
3860
  const u = r.slice(l, l + (ql - 1));
3861
3861
  if (i.pushByte(0), i.pushBytes(u), u.length < 31) {
3862
3862
  i.pushByte(128), a = !1;
@@ -3896,7 +3896,7 @@ class yo extends ot {
3896
3896
  }
3897
3897
  class xo extends ot {
3898
3898
  constructor({ cause: t, maxFeePerGas: r } = {}) {
3899
- super(`The fee cap (\`maxFeePerGas\`${r ? ` = ${Sa(r)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
3899
+ super(`The fee cap (\`maxFeePerGas\`${r ? ` = ${Ua(r)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
3900
3900
  cause: t,
3901
3901
  name: "FeeCapTooHighError"
3902
3902
  });
@@ -3911,7 +3911,7 @@ Object.defineProperty(xo, "nodeMessage", {
3911
3911
  class Tl extends ot {
3912
3912
  constructor({ cause: t, maxPriorityFeePerGas: r, maxFeePerGas: n } = {}) {
3913
3913
  super([
3914
- `The provided tip (\`maxPriorityFeePerGas\`${r ? ` = ${Sa(r)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${Sa(n)} gwei` : ""}).`
3914
+ `The provided tip (\`maxPriorityFeePerGas\`${r ? ` = ${Ua(r)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${Ua(n)} gwei` : ""}).`
3915
3915
  ].join(`
3916
3916
  `), {
3917
3917
  cause: t,
@@ -3992,7 +3992,7 @@ function Tu(e, t = 24) {
3992
3992
  }
3993
3993
  r.fill(0);
3994
3994
  }
3995
- class xs extends Ll {
3995
+ class Ns extends Ll {
3996
3996
  // NOTE: we accept arguments in bytes instead of bits here.
3997
3997
  constructor(t, r, n, o = !1, a = 24) {
3998
3998
  if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = o, this.rounds = a, wi(n), 0 >= this.blockLen || this.blockLen >= 200)
@@ -4005,7 +4005,7 @@ class xs extends Ll {
4005
4005
  update(t) {
4006
4006
  _1(this);
4007
4007
  const { blockLen: r, state: n } = this;
4008
- t = bs(t);
4008
+ t = ys(t);
4009
4009
  const o = t.length;
4010
4010
  for (let a = 0; a < o; ) {
4011
4011
  const l = Math.min(r - this.pos, o - a);
@@ -4023,7 +4023,7 @@ class xs extends Ll {
4023
4023
  t[n] ^= r, r & 128 && n === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
4024
4024
  }
4025
4025
  writeInto(t) {
4026
- _1(this, !1), vs(t), this.finish();
4026
+ _1(this, !1), bs(t), this.finish();
4027
4027
  const r = this.state, { blockLen: n } = this;
4028
4028
  for (let o = 0, a = t.length; o < a; ) {
4029
4029
  this.posOut >= n && this.keccak();
@@ -4053,30 +4053,30 @@ class xs extends Ll {
4053
4053
  }
4054
4054
  _cloneInto(t) {
4055
4055
  const { blockLen: r, suffix: n, outputLen: o, rounds: a, enableXOF: l } = this;
4056
- return t || (t = new xs(r, n, o, l, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = n, t.outputLen = o, t.enableXOF = l, t.destroyed = this.destroyed, t;
4056
+ return t || (t = new Ns(r, n, o, l, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = n, t.outputLen = o, t.enableXOF = l, t.destroyed = this.destroyed, t;
4057
4057
  }
4058
4058
  }
4059
- const Su = (e, t, r) => Wl(() => new xs(t, e, r)), Uu = /* @__PURE__ */ Su(1, 136, 256 / 8);
4059
+ const Su = (e, t, r) => Wl(() => new Ns(t, e, r)), Uu = /* @__PURE__ */ Su(1, 136, 256 / 8);
4060
4060
  function Cu(e, t) {
4061
4061
  return Uu(m1(e, { strict: !1 }) ? ml(e) : e);
4062
4062
  }
4063
- const Ao = /* @__PURE__ */ new Sl(8192);
4063
+ const _o = /* @__PURE__ */ new Sl(8192);
4064
4064
  function ju(e, t) {
4065
- if (Ao.has(`${e}.${t}`))
4066
- return Ao.get(`${e}.${t}`);
4065
+ if (_o.has(`${e}.${t}`))
4066
+ return _o.get(`${e}.${t}`);
4067
4067
  const r = e.substring(2).toLowerCase(), n = Cu(vl(r)), o = r.split("");
4068
4068
  for (let l = 0; l < 40; l += 2)
4069
4069
  n[l >> 1] >> 4 >= 8 && o[l] && (o[l] = o[l].toUpperCase()), (n[l >> 1] & 15) >= 8 && o[l + 1] && (o[l + 1] = o[l + 1].toUpperCase());
4070
4070
  const a = `0x${o.join("")}`;
4071
- return Ao.set(`${e}.${t}`, a), a;
4071
+ return _o.set(`${e}.${t}`, a), a;
4072
4072
  }
4073
- const Ru = /^0x[a-fA-F0-9]{40}$/, _o = /* @__PURE__ */ new Sl(8192);
4073
+ const Ru = /^0x[a-fA-F0-9]{40}$/, $o = /* @__PURE__ */ new Sl(8192);
4074
4074
  function tn(e, t) {
4075
4075
  const { strict: r = !0 } = t ?? {}, n = `${e}.${r}`;
4076
- if (_o.has(n))
4077
- return _o.get(n);
4076
+ if ($o.has(n))
4077
+ return $o.get(n);
4078
4078
  const o = Ru.test(e) ? e.toLowerCase() === e ? !0 : r ? ju(e) === e : !0 : !1;
4079
- return _o.set(n, o), o;
4079
+ return $o.set(n, o), o;
4080
4080
  }
4081
4081
  function zu(e, t, r, { strict: n } = {}) {
4082
4082
  return m1(e, { strict: !1 }) ? Hu(e, t, r, {
@@ -4111,7 +4111,7 @@ function Zu(e) {
4111
4111
  if (n < 0)
4112
4112
  throw new yo({ chainId: n });
4113
4113
  }
4114
- Ns(e);
4114
+ ws(e);
4115
4115
  }
4116
4116
  function Ku(e) {
4117
4117
  const { blobVersionedHashes: t } = e;
@@ -4129,15 +4129,15 @@ function Ku(e) {
4129
4129
  });
4130
4130
  }
4131
4131
  }
4132
- Ns(e);
4132
+ ws(e);
4133
4133
  }
4134
- function Ns(e) {
4134
+ function ws(e) {
4135
4135
  const { chainId: t, maxPriorityFeePerGas: r, maxFeePerGas: n, to: o } = e;
4136
4136
  if (t <= 0)
4137
4137
  throw new yo({ chainId: t });
4138
4138
  if (o && !tn(o))
4139
4139
  throw new en({ address: o });
4140
- if (n && n > ms)
4140
+ if (n && n > vs)
4141
4141
  throw new xo({ maxFeePerGas: n });
4142
4142
  if (r && n && r > n)
4143
4143
  throw new Tl({ maxFeePerGas: n, maxPriorityFeePerGas: r });
@@ -4150,7 +4150,7 @@ function ku(e) {
4150
4150
  throw new en({ address: a });
4151
4151
  if (r || o)
4152
4152
  throw new ot("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
4153
- if (n && n > ms)
4153
+ if (n && n > vs)
4154
4154
  throw new xo({ maxFeePerGas: n });
4155
4155
  }
4156
4156
  function Yu(e) {
@@ -4161,7 +4161,7 @@ function Yu(e) {
4161
4161
  throw new yo({ chainId: t });
4162
4162
  if (r || o)
4163
4163
  throw new ot("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
4164
- if (n && n > ms)
4164
+ if (n && n > vs)
4165
4165
  throw new xo({ maxFeePerGas: n });
4166
4166
  }
4167
4167
  function Gu(e) {
@@ -4260,7 +4260,7 @@ function Eu(e, t) {
4260
4260
  }
4261
4261
  function Mu(e, t) {
4262
4262
  const { chainId: r, gas: n, nonce: o, to: a, value: l, maxFeePerGas: i, maxPriorityFeePerGas: c, accessList: u, data: f } = e;
4263
- Ns(e);
4263
+ ws(e);
4264
4264
  const d = No(u), v = [
4265
4265
  ge(r),
4266
4266
  o ? ge(o) : "0x",
@@ -4363,7 +4363,7 @@ const Bu = {
4363
4363
  transactions: (r = e.transactions) == null ? void 0 : r.map((n) => {
4364
4364
  if (typeof n == "string")
4365
4365
  return n;
4366
- const o = hs(n);
4366
+ const o = ms(n);
4367
4367
  return o.typeHex === "0x7e" && (o.isSystemTx = n.isSystemTx, o.mint = n.mint ? xn(n.mint) : void 0, o.sourceHash = n.sourceHash, o.type = "deposit"), o;
4368
4368
  }),
4369
4369
  stateRoot: e.stateRoot
@@ -5159,7 +5159,7 @@ const Pl = {
5159
5159
  [Rr.id]: eo,
5160
5160
  [r1.id]: eo,
5161
5161
  [$1.id]: zl
5162
- }, Ua = {
5162
+ }, Ca = {
5163
5163
  APE: Vn,
5164
5164
  ApeETH: ad,
5165
5165
  ApeUSD: sd,
@@ -5244,7 +5244,7 @@ const U1 = (e, t = 2) => {
5244
5244
  signMessage: () => (console.error("Glyph context not ready"), Promise.reject(new Error("Glyph context not ready"))),
5245
5245
  sendTransaction: () => (console.error("Glyph context not ready"), Promise.reject(new Error("Glyph context not ready"))),
5246
5246
  apiFetch: () => Promise.reject(new Error("Glyph context not ready"))
5247
- }, y1 = us(null);
5247
+ }, y1 = ds(null);
5248
5248
  y1.displayName = "GlyphContext";
5249
5249
  function ly(e, t, r) {
5250
5250
  let n = "";
@@ -5262,7 +5262,7 @@ function ly(e, t, r) {
5262
5262
  });
5263
5263
  };
5264
5264
  }
5265
- const x1 = us(void 0);
5265
+ const x1 = ds(void 0);
5266
5266
  x1.displayName = "GlyphUserDataContext";
5267
5267
  const st = () => {
5268
5268
  const e = wr(y1);
@@ -5298,7 +5298,7 @@ const st = () => {
5298
5298
  window.removeEventListener("resize", o);
5299
5299
  };
5300
5300
  }, [t, e]), t;
5301
- }, wd = dn("providers"), ws = [Rr, $1, r1, od], Ui = ws.map((e) => e.id), $n = ws.find((e) => e.id === Rr.id), Hl = ws.reduce(
5301
+ }, wd = dn("providers"), gs = [Rr, $1, r1, od], Ui = gs.map((e) => e.id), $n = gs.find((e) => e.id === Rr.id), Hl = gs.reduce(
5302
5302
  (e, t) => {
5303
5303
  var l, i, c, u, f, d;
5304
5304
  const r = (c = (i = (l = t.rpcUrls) == null ? void 0 : l.default) == null ? void 0 : i.webSocket) == null ? void 0 : c[0], n = (d = (f = (u = t.rpcUrls) == null ? void 0 : u.default) == null ? void 0 : f.http) == null ? void 0 : d[0], o = [r && el(r), n && jr(n)].filter((v) => !!v), a = Q1({
@@ -5467,7 +5467,7 @@ const Fd = B2(
5467
5467
  children: a,
5468
5468
  iconNode: l,
5469
5469
  ...i
5470
- }, c) => Oa(
5470
+ }, c) => Fa(
5471
5471
  "svg",
5472
5472
  {
5473
5473
  ref: c,
@@ -5481,7 +5481,7 @@ const Fd = B2(
5481
5481
  ...i
5482
5482
  },
5483
5483
  [
5484
- ...l.map(([u, f]) => Oa(u, f)),
5484
+ ...l.map(([u, f]) => Fa(u, f)),
5485
5485
  ...Array.isArray(a) ? a : [a]
5486
5486
  ]
5487
5487
  )
@@ -5494,7 +5494,7 @@ const Fd = B2(
5494
5494
  */
5495
5495
  const fn = (e, t) => {
5496
5496
  const r = B2(
5497
- ({ className: n, ...o }, a) => Oa(Fd, {
5497
+ ({ className: n, ...o }, a) => Fa(Fd, {
5498
5498
  ref: a,
5499
5499
  iconNode: t,
5500
5500
  className: kl(
@@ -5669,7 +5669,7 @@ const Pi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Hi = al, M
5669
5669
  ] : u;
5670
5670
  }, []);
5671
5671
  return Hi(e, l, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
5672
- }, gs = Md(
5672
+ }, wo = Md(
5673
5673
  "gw-inline-flex gw-font-display gw-items-center gw-justify-center gw-ease-in-out gw-gap-2 gw-whitespace-nowrap gw-rounded-full gw-font-medium gw-ring-offset-background gw-transition focus-visible:gw-outline-none focus-visible:gw-ring-2 focus-visible:gw-ring-ring focus-visible:gw-ring-offset-2 disabled:gw-pointer-events-none disabled:gw-opacity-50 [&_svg]:gw-pointer-events-none [&_svg]:gw-size-4 [&_svg]:gw-shrink-0",
5674
5674
  {
5675
5675
  variants: {
@@ -5681,11 +5681,13 @@ const Pi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Hi = al, M
5681
5681
  tertiary: "gw-bg-brand-deep-moss hover:gw-bg-brand-deep-moss-light active:gw-bg-brand-deep-moss-dark gw-text-background",
5682
5682
  ghost: "gw-text-primary hover:gw-bg-accent hover:gw-text-accent-foreground",
5683
5683
  link: "gw-text-secondary hover:gw-text-secondary-light active:gw-text-secondary-dark gw-underline-offset-4 hover:gw-underline",
5684
+ "link-inline": "gw-text-secondary hover:gw-text-secondary-light active:gw-text-secondary-dark gw-underline-offset-4 gw-underline",
5684
5685
  cube: "gw-bg-brand-white gw-text-brand-gray-black [&_svg]:gw-text-secondary [&_svg]:hover:gw-text-secondary-light [&_svg]:active:gw-text-secondary-dark"
5685
5686
  },
5686
5687
  size: {
5687
5688
  default: "gw-h-12 gw-px-4 gw-py-3 gw-typography-body1",
5688
- xsm: "gw-h-7 gw-px-2 gw-text-xs",
5689
+ xs: "gw-h-7 gw-px-2 gw-typography-body2",
5690
+ "xs-inline": "gw-h-7 gw-px-1 gw-typography-body2",
5689
5691
  sm: "gw-h-10 gw-px-3 gw-typography-body1",
5690
5692
  lg: "gw-h-14 gw-px-8 gw-typography-body1",
5691
5693
  icon: "gw-h-12 gw-w-10 gw-typography-body1",
@@ -5706,26 +5708,26 @@ const Pi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Hi = al, M
5706
5708
  scale: !1
5707
5709
  }
5708
5710
  }
5709
- ), Ee = w.forwardRef(
5711
+ ), Me = w.forwardRef(
5710
5712
  ({ className: e, variant: t, size: r, shadow: n, scale: o, asChild: a = !1, ...l }, i) => {
5711
5713
  const c = a ? kd : "button";
5712
5714
  return /* @__PURE__ */ s.jsx(
5713
5715
  c,
5714
5716
  {
5715
- className: pe(gs({ variant: t, size: r, className: e, shadow: n, scale: o })),
5717
+ className: pe(wo({ variant: t, size: r, className: e, shadow: n, scale: o })),
5716
5718
  ref: i,
5717
5719
  ...l
5718
5720
  }
5719
5721
  );
5720
5722
  }
5721
5723
  );
5722
- Ee.displayName = "Button";
5724
+ Me.displayName = "Button";
5723
5725
  const Jl = () => {
5724
5726
  const { login: e, authenticated: t, ready: r } = st();
5725
- return !r || t ? /* @__PURE__ */ s.jsx(Ee, { variant: "default", size: "login", disabled: !0, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
5727
+ return !r || t ? /* @__PURE__ */ s.jsx(Me, { variant: "default", size: "login", disabled: !0, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
5726
5728
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
5727
5729
  /* @__PURE__ */ s.jsx(N1, { className: "gw-size-4 gw-animate-spin" })
5728
- ] }) }) : /* @__PURE__ */ s.jsx(Ee, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
5730
+ ] }) }) : /* @__PURE__ */ s.jsx(Me, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
5729
5731
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
5730
5732
  /* @__PURE__ */ s.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Sign in with Glyph" })
5731
5733
  ] }) });
@@ -5927,7 +5929,7 @@ var s9 = [
5927
5929
  "span",
5928
5930
  "svg",
5929
5931
  "ul"
5930
- ], Me = s9.reduce((e, t) => {
5932
+ ], Ee = s9.reduce((e, t) => {
5931
5933
  const r = /* @__PURE__ */ a1(`Primitive.${t}`), n = w.forwardRef((o, a) => {
5932
5934
  const { asChild: l, ...i } = o, c = l ? r : t;
5933
5935
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s.jsx(c, { ...i, ref: a });
@@ -5955,11 +5957,11 @@ function Ml(e, t = globalThis == null ? void 0 : globalThis.document) {
5955
5957
  return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
5956
5958
  }, [r, t]);
5957
5959
  }
5958
- var l9 = "DismissableLayer", Ca = "dismissableLayer.update", c9 = "dismissableLayer.pointerDownOutside", u9 = "dismissableLayer.focusOutside", Zi, Il = w.createContext({
5960
+ var l9 = "DismissableLayer", ja = "dismissableLayer.update", c9 = "dismissableLayer.pointerDownOutside", u9 = "dismissableLayer.focusOutside", Zi, Il = w.createContext({
5959
5961
  layers: /* @__PURE__ */ new Set(),
5960
5962
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
5961
5963
  branches: /* @__PURE__ */ new Set()
5962
- }), wo = w.forwardRef(
5964
+ }), go = w.forwardRef(
5963
5965
  (e, t) => {
5964
5966
  const {
5965
5967
  disableOutsidePointerEvents: r = !1,
@@ -5987,9 +5989,9 @@ var l9 = "DismissableLayer", Ca = "dismissableLayer.update", c9 = "dismissableLa
5987
5989
  f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Ki());
5988
5990
  }, [f, u]), w.useEffect(() => {
5989
5991
  const O = () => m({});
5990
- return document.addEventListener(Ca, O), () => document.removeEventListener(Ca, O);
5992
+ return document.addEventListener(ja, O), () => document.removeEventListener(ja, O);
5991
5993
  }, []), /* @__PURE__ */ s.jsx(
5992
- Me.div,
5994
+ Ee.div,
5993
5995
  {
5994
5996
  ...c,
5995
5997
  ref: x,
@@ -6007,7 +6009,7 @@ var l9 = "DismissableLayer", Ca = "dismissableLayer.update", c9 = "dismissableLa
6007
6009
  );
6008
6010
  }
6009
6011
  );
6010
- wo.displayName = l9;
6012
+ go.displayName = l9;
6011
6013
  var d9 = "DismissableLayerBranch", f9 = w.forwardRef((e, t) => {
6012
6014
  const r = w.useContext(Il), n = w.useRef(null), o = Ve(t, n);
6013
6015
  return w.useEffect(() => {
@@ -6016,7 +6018,7 @@ var d9 = "DismissableLayerBranch", f9 = w.forwardRef((e, t) => {
6016
6018
  return r.branches.add(a), () => {
6017
6019
  r.branches.delete(a);
6018
6020
  };
6019
- }, [r.branches]), /* @__PURE__ */ s.jsx(Me.div, { ...e, ref: o });
6021
+ }, [r.branches]), /* @__PURE__ */ s.jsx(Ee.div, { ...e, ref: o });
6020
6022
  });
6021
6023
  f9.displayName = d9;
6022
6024
  function p9(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -6064,14 +6066,14 @@ function h9(e, t = globalThis == null ? void 0 : globalThis.document) {
6064
6066
  };
6065
6067
  }
6066
6068
  function Ki() {
6067
- const e = new CustomEvent(Ca);
6069
+ const e = new CustomEvent(ja);
6068
6070
  document.dispatchEvent(e);
6069
6071
  }
6070
6072
  function Ql(e, t, r, { discrete: n }) {
6071
6073
  const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
6072
6074
  t && o.addEventListener(e, t, { once: !0 }), n ? i9(o, a) : o.dispatchEvent(a);
6073
6075
  }
6074
- var $o = "focusScope.autoFocusOnMount", ea = "focusScope.autoFocusOnUnmount", ki = { bubbles: !1, cancelable: !0 }, m9 = "FocusScope", Xs = w.forwardRef((e, t) => {
6076
+ var ea = "focusScope.autoFocusOnMount", ta = "focusScope.autoFocusOnUnmount", ki = { bubbles: !1, cancelable: !0 }, m9 = "FocusScope", Xs = w.forwardRef((e, t) => {
6075
6077
  const {
6076
6078
  loop: r = !1,
6077
6079
  trapped: n = !1,
@@ -6113,13 +6115,13 @@ var $o = "focusScope.autoFocusOnMount", ea = "focusScope.autoFocusOnUnmount", ki
6113
6115
  Gi.add(m);
6114
6116
  const b = document.activeElement;
6115
6117
  if (!i.contains(b)) {
6116
- const W = new CustomEvent($o, ki);
6117
- i.addEventListener($o, u), i.dispatchEvent(W), W.defaultPrevented || (v9(w9(Bl(i)), { select: !0 }), document.activeElement === b && Sr(i));
6118
+ const W = new CustomEvent(ea, ki);
6119
+ i.addEventListener(ea, u), i.dispatchEvent(W), W.defaultPrevented || (v9(w9(Bl(i)), { select: !0 }), document.activeElement === b && Sr(i));
6118
6120
  }
6119
6121
  return () => {
6120
- i.removeEventListener($o, u), setTimeout(() => {
6121
- const W = new CustomEvent(ea, ki);
6122
- i.addEventListener(ea, f), i.dispatchEvent(W), W.defaultPrevented || Sr(b ?? document.body, { select: !0 }), i.removeEventListener(ea, f), Gi.remove(m);
6122
+ i.removeEventListener(ea, u), setTimeout(() => {
6123
+ const W = new CustomEvent(ta, ki);
6124
+ i.addEventListener(ta, f), i.dispatchEvent(W), W.defaultPrevented || Sr(b ?? document.body, { select: !0 }), i.removeEventListener(ta, f), Gi.remove(m);
6123
6125
  }, 0);
6124
6126
  };
6125
6127
  }
@@ -6135,7 +6137,7 @@ var $o = "focusScope.autoFocusOnMount", ea = "focusScope.autoFocusOnUnmount", ki
6135
6137
  },
6136
6138
  [r, n, m.paused]
6137
6139
  );
6138
- return /* @__PURE__ */ s.jsx(Me.div, { tabIndex: -1, ...l, ref: v, onKeyDown: x });
6140
+ return /* @__PURE__ */ s.jsx(Ee.div, { tabIndex: -1, ...l, ref: v, onKeyDown: x });
6139
6141
  });
6140
6142
  Xs.displayName = m9;
6141
6143
  function v9(e, { select: t = !1 } = {}) {
@@ -6205,7 +6207,7 @@ var g9 = "Portal", Ls = w.forwardRef((e, t) => {
6205
6207
  const { container: r, ...n } = e, [o, a] = w.useState(!1);
6206
6208
  ct(() => a(!0), []);
6207
6209
  const l = r || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
6208
- return l ? ds.createPortal(/* @__PURE__ */ s.jsx(Me.div, { ...n, ref: t }), l) : null;
6210
+ return l ? fs.createPortal(/* @__PURE__ */ s.jsx(Ee.div, { ...n, ref: t }), l) : null;
6209
6211
  });
6210
6212
  Ls.displayName = g9;
6211
6213
  function X9(e, t) {
@@ -6273,12 +6275,12 @@ function W9(e) {
6273
6275
  let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
6274
6276
  return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
6275
6277
  }
6276
- var ta = 0;
6278
+ var ra = 0;
6277
6279
  function Ws() {
6278
6280
  w.useEffect(() => {
6279
6281
  const e = document.querySelectorAll("[data-radix-focus-guard]");
6280
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Di()), document.body.insertAdjacentElement("beforeend", e[1] ?? Di()), ta++, () => {
6281
- ta === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ta--;
6282
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Di()), document.body.insertAdjacentElement("beforeend", e[1] ?? Di()), ra++, () => {
6283
+ ra === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ra--;
6282
6284
  };
6283
6285
  }, []);
6284
6286
  }
@@ -6309,7 +6311,7 @@ function q9(e, t, r) {
6309
6311
  return e.concat(a || Array.prototype.slice.call(t));
6310
6312
  }
6311
6313
  var E1 = "right-scroll-bar-position", M1 = "width-before-scroll-bar", V9 = "with-scroll-bars-hidden", O9 = "--removed-body-scroll-bar-size";
6312
- function ra(e, t) {
6314
+ function na(e, t) {
6313
6315
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
6314
6316
  }
6315
6317
  function F9(e, t) {
@@ -6337,7 +6339,7 @@ var T9 = typeof window < "u" ? w.useLayoutEffect : w.useEffect, Ei = /* @__PURE_
6337
6339
  function S9(e, t) {
6338
6340
  var r = F9(null, function(n) {
6339
6341
  return e.forEach(function(o) {
6340
- return ra(o, n);
6342
+ return na(o, n);
6341
6343
  });
6342
6344
  });
6343
6345
  return T9(function() {
@@ -6345,9 +6347,9 @@ function S9(e, t) {
6345
6347
  if (n) {
6346
6348
  var o = new Set(n), a = new Set(e), l = r.current;
6347
6349
  o.forEach(function(i) {
6348
- a.has(i) || ra(i, null);
6350
+ a.has(i) || na(i, null);
6349
6351
  }), a.forEach(function(i) {
6350
- o.has(i) || ra(i, l);
6352
+ o.has(i) || na(i, l);
6351
6353
  });
6352
6354
  }
6353
6355
  Ei.set(r, e);
@@ -6429,12 +6431,12 @@ _l.isSideCarExport = !0;
6429
6431
  function R9(e, t) {
6430
6432
  return e.useMedium(t), _l;
6431
6433
  }
6432
- var $l = j9(), na = function() {
6433
- }, go = w.forwardRef(function(e, t) {
6434
+ var $l = j9(), oa = function() {
6435
+ }, Xo = w.forwardRef(function(e, t) {
6434
6436
  var r = w.useRef(null), n = w.useState({
6435
- onScrollCapture: na,
6436
- onWheelCapture: na,
6437
- onTouchMoveCapture: na
6437
+ onScrollCapture: oa,
6438
+ onWheelCapture: oa,
6439
+ onTouchMoveCapture: oa
6438
6440
  }), o = n[0], a = n[1], l = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, f = e.enabled, d = e.shards, v = e.sideCar, m = e.noRelative, x = e.noIsolation, b = e.inert, N = e.allowPinchZoom, W = e.as, L = W === void 0 ? "div" : W, g = e.gapMode, y = Al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), q = v, F = S9([r, t]), O = rr(rr({}, y), o);
6439
6441
  return w.createElement(
6440
6442
  w.Fragment,
@@ -6443,12 +6445,12 @@ var $l = j9(), na = function() {
6443
6445
  l ? w.cloneElement(w.Children.only(i), rr(rr({}, O), { ref: F })) : w.createElement(L, rr({}, O, { className: c, ref: F }), i)
6444
6446
  );
6445
6447
  });
6446
- go.defaultProps = {
6448
+ Xo.defaultProps = {
6447
6449
  enabled: !0,
6448
6450
  removeScrollBar: !0,
6449
6451
  inert: !1
6450
6452
  };
6451
- go.classNames = {
6453
+ Xo.classNames = {
6452
6454
  fullWidth: M1,
6453
6455
  zeroRight: E1
6454
6456
  };
@@ -6501,11 +6503,11 @@ var K9 = function() {
6501
6503
  top: 0,
6502
6504
  right: 0,
6503
6505
  gap: 0
6504
- }, oa = function(e) {
6506
+ }, aa = function(e) {
6505
6507
  return parseInt(e || "", 10) || 0;
6506
6508
  }, G9 = function(e) {
6507
6509
  var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
6508
- return [oa(r), oa(n), oa(o)];
6510
+ return [aa(r), aa(n), aa(o)];
6509
6511
  }, J9 = function(e) {
6510
6512
  if (e === void 0 && (e = "margin"), typeof window > "u")
6511
6513
  return Y9;
@@ -6577,19 +6579,19 @@ var K9 = function() {
6577
6579
  return J9(o);
6578
6580
  }, [o]);
6579
6581
  return w.createElement(D9, { styles: E9(a, !t, o, r ? "" : "!important") });
6580
- }, ja = !1;
6582
+ }, Ra = !1;
6581
6583
  if (typeof window < "u")
6582
6584
  try {
6583
6585
  var j1 = Object.defineProperty({}, "passive", {
6584
6586
  get: function() {
6585
- return ja = !0, !0;
6587
+ return Ra = !0, !0;
6586
6588
  }
6587
6589
  });
6588
6590
  window.addEventListener("test", j1, j1), window.removeEventListener("test", j1, j1);
6589
6591
  } catch {
6590
- ja = !1;
6592
+ Ra = !1;
6591
6593
  }
6592
- var hn = ja ? { passive: !1 } : !1, Q9 = function(e) {
6594
+ var hn = Ra ? { passive: !1 } : !1, Q9 = function(e) {
6593
6595
  return e.tagName === "TEXTAREA";
6594
6596
  }, t3 = function(e, t) {
6595
6597
  if (!(e instanceof Element))
@@ -6750,16 +6752,16 @@ function s8(e) {
6750
6752
  return t;
6751
6753
  }
6752
6754
  const i8 = R9($l, a8);
6753
- var Xo = w.forwardRef(function(e, t) {
6754
- return w.createElement(go, rr({}, e, { ref: t, sideCar: i8 }));
6755
+ var Lo = w.forwardRef(function(e, t) {
6756
+ return w.createElement(Xo, rr({}, e, { ref: t, sideCar: i8 }));
6755
6757
  });
6756
- Xo.classNames = go.classNames;
6758
+ Lo.classNames = Xo.classNames;
6757
6759
  var l8 = function(e) {
6758
6760
  if (typeof document > "u")
6759
6761
  return null;
6760
6762
  var t = Array.isArray(e) ? e[0] : e;
6761
6763
  return t.ownerDocument.body;
6762
- }, vn = /* @__PURE__ */ new WeakMap(), z1 = /* @__PURE__ */ new WeakMap(), P1 = {}, aa = 0, o3 = function(e) {
6764
+ }, vn = /* @__PURE__ */ new WeakMap(), z1 = /* @__PURE__ */ new WeakMap(), P1 = {}, sa = 0, o3 = function(e) {
6763
6765
  return e && (e.host || o3(e.parentNode));
6764
6766
  }, c8 = function(e, t) {
6765
6767
  return t.map(function(r) {
@@ -6790,11 +6792,11 @@ var l8 = function(e) {
6790
6792
  }
6791
6793
  });
6792
6794
  };
6793
- return f(t), i.clear(), aa++, function() {
6795
+ return f(t), i.clear(), sa++, function() {
6794
6796
  l.forEach(function(d) {
6795
6797
  var v = vn.get(d) - 1, m = a.get(d) - 1;
6796
6798
  vn.set(d, v), a.set(d, m), v || (z1.has(d) || d.removeAttribute(n), z1.delete(d)), m || d.removeAttribute(r);
6797
- }), aa--, aa || (vn = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), z1 = /* @__PURE__ */ new WeakMap(), P1 = {});
6799
+ }), sa--, sa || (vn = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), z1 = /* @__PURE__ */ new WeakMap(), P1 = {});
6798
6800
  };
6799
6801
  }, qs = function(e, t, r) {
6800
6802
  r === void 0 && (r = "data-aria-hidden");
@@ -6802,7 +6804,7 @@ var l8 = function(e) {
6802
6804
  return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))), u8(n, o, r, "aria-hidden")) : function() {
6803
6805
  return null;
6804
6806
  };
6805
- }, Lo = "Dialog", [a3, cy] = ir(Lo), [d8, Bt] = a3(Lo), s3 = (e) => {
6807
+ }, Wo = "Dialog", [a3, cy] = ir(Wo), [d8, Bt] = a3(Wo), s3 = (e) => {
6806
6808
  const {
6807
6809
  __scopeDialog: t,
6808
6810
  children: r,
@@ -6814,7 +6816,7 @@ var l8 = function(e) {
6814
6816
  prop: n,
6815
6817
  defaultProp: o ?? !1,
6816
6818
  onChange: a,
6817
- caller: Lo
6819
+ caller: Wo
6818
6820
  });
6819
6821
  return /* @__PURE__ */ s.jsx(
6820
6822
  d8,
@@ -6833,12 +6835,12 @@ var l8 = function(e) {
6833
6835
  }
6834
6836
  );
6835
6837
  };
6836
- s3.displayName = Lo;
6838
+ s3.displayName = Wo;
6837
6839
  var i3 = "DialogTrigger", l3 = w.forwardRef(
6838
6840
  (e, t) => {
6839
6841
  const { __scopeDialog: r, ...n } = e, o = Bt(i3, r), a = Ve(t, o.triggerRef);
6840
6842
  return /* @__PURE__ */ s.jsx(
6841
- Me.button,
6843
+ Ee.button,
6842
6844
  {
6843
6845
  type: "button",
6844
6846
  "aria-haspopup": "dialog",
@@ -6873,8 +6875,8 @@ var p8 = /* @__PURE__ */ a1("DialogOverlay.RemoveScroll"), h8 = w.forwardRef(
6873
6875
  return (
6874
6876
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
6875
6877
  // ie. when `Overlay` and `Content` are siblings
6876
- /* @__PURE__ */ s.jsx(Xo, { as: p8, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s.jsx(
6877
- Me.div,
6878
+ /* @__PURE__ */ s.jsx(Lo, { as: p8, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s.jsx(
6879
+ Ee.div,
6878
6880
  {
6879
6881
  "data-state": Fs(o.open),
6880
6882
  ...n,
@@ -6955,7 +6957,7 @@ var m8 = w.forwardRef(
6955
6957
  onMountAutoFocus: o,
6956
6958
  onUnmountAutoFocus: a,
6957
6959
  children: /* @__PURE__ */ s.jsx(
6958
- wo,
6960
+ go,
6959
6961
  {
6960
6962
  role: "dialog",
6961
6963
  id: i.contentId,
@@ -6978,14 +6980,14 @@ var m8 = w.forwardRef(
6978
6980
  ), Os = "DialogTitle", h3 = w.forwardRef(
6979
6981
  (e, t) => {
6980
6982
  const { __scopeDialog: r, ...n } = e, o = Bt(Os, r);
6981
- return /* @__PURE__ */ s.jsx(Me.h2, { id: o.titleId, ...n, ref: t });
6983
+ return /* @__PURE__ */ s.jsx(Ee.h2, { id: o.titleId, ...n, ref: t });
6982
6984
  }
6983
6985
  );
6984
6986
  h3.displayName = Os;
6985
6987
  var m3 = "DialogDescription", v3 = w.forwardRef(
6986
6988
  (e, t) => {
6987
6989
  const { __scopeDialog: r, ...n } = e, o = Bt(m3, r);
6988
- return /* @__PURE__ */ s.jsx(Me.p, { id: o.descriptionId, ...n, ref: t });
6990
+ return /* @__PURE__ */ s.jsx(Ee.p, { id: o.descriptionId, ...n, ref: t });
6989
6991
  }
6990
6992
  );
6991
6993
  v3.displayName = m3;
@@ -6993,7 +6995,7 @@ var b3 = "DialogClose", b8 = w.forwardRef(
6993
6995
  (e, t) => {
6994
6996
  const { __scopeDialog: r, ...n } = e, o = Bt(b3, r);
6995
6997
  return /* @__PURE__ */ s.jsx(
6996
- Me.button,
6998
+ Ee.button,
6997
6999
  {
6998
7000
  type: "button",
6999
7001
  ...n,
@@ -7120,7 +7122,7 @@ function _i(...e) {
7120
7122
  typeof r == "function" && r(...t);
7121
7123
  };
7122
7124
  }
7123
- const sa = typeof document < "u" && window.visualViewport;
7125
+ const ia = typeof document < "u" && window.visualViewport;
7124
7126
  function $i(e) {
7125
7127
  let t = window.getComputedStyle(e);
7126
7128
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
@@ -7141,13 +7143,13 @@ const R8 = /* @__PURE__ */ new Set([
7141
7143
  "submit",
7142
7144
  "reset"
7143
7145
  ]);
7144
- let H1 = 0, ia;
7146
+ let H1 = 0, la;
7145
7147
  function z8(e = {}) {
7146
7148
  let { isDisabled: t } = e;
7147
7149
  j8(() => {
7148
7150
  if (!t)
7149
- return H1++, H1 === 1 && w3() && (ia = P8()), () => {
7150
- H1--, H1 === 0 && (ia == null || ia());
7151
+ return H1++, H1 === 1 && w3() && (la = P8()), () => {
7152
+ H1--, H1 === 0 && (la == null || la());
7151
7153
  };
7152
7154
  }, [
7153
7155
  t
@@ -7165,15 +7167,15 @@ function P8() {
7165
7167
  x !== 0 && ((m <= 0 && v > t || m >= x && v < t) && d.preventDefault(), t = v);
7166
7168
  }, o = (d) => {
7167
7169
  let v = d.target;
7168
- Ra(v) && v !== document.activeElement && (d.preventDefault(), v.style.transform = "translateY(-2000px)", v.focus(), requestAnimationFrame(() => {
7170
+ za(v) && v !== document.activeElement && (d.preventDefault(), v.style.transform = "translateY(-2000px)", v.focus(), requestAnimationFrame(() => {
7169
7171
  v.style.transform = "";
7170
7172
  }));
7171
7173
  }, a = (d) => {
7172
7174
  let v = d.target;
7173
- Ra(v) && (v.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
7174
- v.style.transform = "", sa && (sa.height < window.innerHeight ? requestAnimationFrame(() => {
7175
+ za(v) && (v.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
7176
+ v.style.transform = "", ia && (ia.height < window.innerHeight ? requestAnimationFrame(() => {
7175
7177
  e2(v);
7176
- }) : sa.addEventListener("resize", () => e2(v), {
7178
+ }) : ia.addEventListener("resize", () => e2(v), {
7177
7179
  once: !0
7178
7180
  }));
7179
7181
  }));
@@ -7218,7 +7220,7 @@ function e2(e) {
7218
7220
  e = r.parentElement;
7219
7221
  }
7220
7222
  }
7221
- function Ra(e) {
7223
+ function za(e) {
7222
7224
  return e instanceof HTMLInputElement && !R8.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
7223
7225
  }
7224
7226
  function Z8(e, t) {
@@ -7272,7 +7274,7 @@ function Z1(e, t) {
7272
7274
  function Y8(e) {
7273
7275
  return 8 * (Math.log(e + 1) - 2);
7274
7276
  }
7275
- function la(e, t) {
7277
+ function ca(e, t) {
7276
7278
  if (!e) return () => {
7277
7279
  };
7278
7280
  const r = e.style.cssText;
@@ -7294,7 +7296,7 @@ const et = {
7294
7296
  0,
7295
7297
  1
7296
7298
  ]
7297
- }, W3 = 0.4, J8 = 0.25, D8 = 100, q3 = 8, K1 = 16, za = 26, ca = "vaul-dragging";
7299
+ }, W3 = 0.4, J8 = 0.25, D8 = 100, q3 = 8, K1 = 16, Pa = 26, ua = "vaul-dragging";
7298
7300
  function V3(e) {
7299
7301
  const t = S.useRef(e);
7300
7302
  return S.useEffect(() => {
@@ -7483,22 +7485,22 @@ const I8 = () => () => {
7483
7485
  function Q8() {
7484
7486
  const { direction: e, isOpen: t, shouldScaleBackground: r, setBackgroundColorOnScale: n, noBodyStyles: o } = g1(), a = S.useRef(null), l = wt(() => document.body.style.backgroundColor, []);
7485
7487
  function i() {
7486
- return (window.innerWidth - za) / window.innerWidth;
7488
+ return (window.innerWidth - Pa) / window.innerWidth;
7487
7489
  }
7488
7490
  S.useEffect(() => {
7489
7491
  if (t && r) {
7490
7492
  a.current && clearTimeout(a.current);
7491
7493
  const c = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
7492
7494
  if (!c) return;
7493
- G8(n && !o ? la(document.body, {
7495
+ G8(n && !o ? ca(document.body, {
7494
7496
  background: "black"
7495
- }) : I8, la(c, {
7497
+ }) : I8, ca(c, {
7496
7498
  transformOrigin: lt(e) ? "top" : "left",
7497
7499
  transitionProperty: "transform, border-radius",
7498
7500
  transitionDuration: `${et.DURATION}s`,
7499
7501
  transitionTimingFunction: `cubic-bezier(${et.EASE.join(",")})`
7500
7502
  }));
7501
- const u = la(c, {
7503
+ const u = ca(c, {
7502
7504
  borderRadius: `${q3}px`,
7503
7505
  overflow: "hidden",
7504
7506
  ...lt(e) ? {
@@ -7626,7 +7628,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7626
7628
  noBodyStyles: g
7627
7629
  });
7628
7630
  function p() {
7629
- return (window.innerWidth - za) / window.innerWidth;
7631
+ return (window.innerWidth - Pa) / window.innerWidth;
7630
7632
  }
7631
7633
  function h(ce) {
7632
7634
  var we, Se;
@@ -7669,7 +7671,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7669
7671
  let Ze = de / Je;
7670
7672
  const yt = _e(de, Ne);
7671
7673
  if (yt !== null && (Ze = yt), Ge && Ze >= 1 || !ae.current && !V(ce.target, Ne)) return;
7672
- if (te.current.classList.add(ca), ae.current = !0, ut(te.current, {
7674
+ if (te.current.classList.add(ua), ae.current = !0, ut(te.current, {
7673
7675
  transition: "none"
7674
7676
  }), ut(_.current, {
7675
7677
  transition: "none"
@@ -7711,7 +7713,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7711
7713
  function we() {
7712
7714
  if (!te.current || !j) return;
7713
7715
  const Se = document.activeElement;
7714
- if (Ra(Se) || ie.current) {
7716
+ if (za(Se) || ie.current) {
7715
7717
  var Ne;
7716
7718
  const Ge = ((Ne = window.visualViewport) == null ? void 0 : Ne.height) || 0, de = window.innerHeight;
7717
7719
  let Le = de - Ge;
@@ -7725,7 +7727,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7725
7727
  if (me.current = Le, Je > Ge || ie.current) {
7726
7728
  const Ke = te.current.getBoundingClientRect().height;
7727
7729
  let Ie = Ke;
7728
- Ke > Ge && (Ie = Ge - (Ze ? yt : za)), b ? te.current.style.height = `${Ke - Math.max(Le, 0)}px` : te.current.style.height = `${Math.max(Ie, Ge - yt)}px`;
7730
+ Ke > Ge && (Ie = Ge - (Ze ? yt : Pa)), b ? te.current.style.height = `${Ke - Math.max(Le, 0)}px` : te.current.style.height = `${Math.max(Ie, Ge - yt)}px`;
7729
7731
  } else F8() || (te.current.style.height = `${Ye.current}px`);
7730
7732
  a && a.length > 0 && !ie.current ? te.current.style.bottom = "0px" : te.current.style.bottom = `${Math.max(Le, 0)}px`;
7731
7733
  }
@@ -7769,11 +7771,11 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7769
7771
  }, !0);
7770
7772
  }
7771
7773
  function be() {
7772
- !J || !te.current || (te.current.classList.remove(ca), ae.current = !1, Q(!1), ne.current = /* @__PURE__ */ new Date());
7774
+ !J || !te.current || (te.current.classList.remove(ua), ae.current = !1, Q(!1), ne.current = /* @__PURE__ */ new Date());
7773
7775
  }
7774
7776
  function ze(ce) {
7775
7777
  if (!J || !te.current) return;
7776
- te.current.classList.remove(ca), ae.current = !1, Q(!1), ne.current = /* @__PURE__ */ new Date();
7778
+ te.current.classList.remove(ua), ae.current = !1, Q(!1), ne.current = /* @__PURE__ */ new Date();
7777
7779
  const we = Z1(te.current, y);
7778
7780
  if (!ce || !V(ce.target, !1) || !we || Number.isNaN(we) || I.current === null) return;
7779
7781
  const Se = ne.current.getTime() - I.current.getTime(), Ne = se.current - (lt(y) ? ce.pageY : ce.pageX), Ge = Math.abs(Ne) / Se;
@@ -8151,7 +8153,7 @@ var o4 = [
8151
8153
  function a4(e, t) {
8152
8154
  e && p1.flushSync(() => e.dispatchEvent(t));
8153
8155
  }
8154
- var s4 = "DismissableLayer", Pa = "dismissableLayer.update", i4 = "dismissableLayer.pointerDownOutside", l4 = "dismissableLayer.focusOutside", t2, P3 = w.createContext({
8156
+ var s4 = "DismissableLayer", Ha = "dismissableLayer.update", i4 = "dismissableLayer.pointerDownOutside", l4 = "dismissableLayer.focusOutside", t2, P3 = w.createContext({
8155
8157
  layers: /* @__PURE__ */ new Set(),
8156
8158
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
8157
8159
  branches: /* @__PURE__ */ new Set()
@@ -8183,7 +8185,7 @@ var s4 = "DismissableLayer", Pa = "dismissableLayer.update", i4 = "dismissableLa
8183
8185
  f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), r2());
8184
8186
  }, [f, u]), w.useEffect(() => {
8185
8187
  const O = () => m({});
8186
- return document.addEventListener(Pa, O), () => document.removeEventListener(Pa, O);
8188
+ return document.addEventListener(Ha, O), () => document.removeEventListener(Ha, O);
8187
8189
  }, []), /* @__PURE__ */ s.jsx(
8188
8190
  Tt.div,
8189
8191
  {
@@ -8260,14 +8262,14 @@ function f4(e, t = globalThis == null ? void 0 : globalThis.document) {
8260
8262
  };
8261
8263
  }
8262
8264
  function r2() {
8263
- const e = new CustomEvent(Pa);
8265
+ const e = new CustomEvent(Ha);
8264
8266
  document.dispatchEvent(e);
8265
8267
  }
8266
8268
  function Z3(e, t, r, { discrete: n }) {
8267
8269
  const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
8268
8270
  t && o.addEventListener(e, t, { once: !0 }), n ? a4(o, a) : o.dispatchEvent(a);
8269
8271
  }
8270
- var ua = "focusScope.autoFocusOnMount", da = "focusScope.autoFocusOnUnmount", n2 = { bubbles: !1, cancelable: !0 }, p4 = "FocusScope", K3 = w.forwardRef((e, t) => {
8272
+ var da = "focusScope.autoFocusOnMount", fa = "focusScope.autoFocusOnUnmount", n2 = { bubbles: !1, cancelable: !0 }, p4 = "FocusScope", K3 = w.forwardRef((e, t) => {
8271
8273
  const {
8272
8274
  loop: r = !1,
8273
8275
  trapped: n = !1,
@@ -8309,13 +8311,13 @@ var ua = "focusScope.autoFocusOnMount", da = "focusScope.autoFocusOnUnmount", n2
8309
8311
  a2.add(m);
8310
8312
  const b = document.activeElement;
8311
8313
  if (!i.contains(b)) {
8312
- const W = new CustomEvent(ua, n2);
8313
- i.addEventListener(ua, u), i.dispatchEvent(W), W.defaultPrevented || (h4(x4(k3(i)), { select: !0 }), document.activeElement === b && Ur(i));
8314
+ const W = new CustomEvent(da, n2);
8315
+ i.addEventListener(da, u), i.dispatchEvent(W), W.defaultPrevented || (h4(x4(k3(i)), { select: !0 }), document.activeElement === b && Ur(i));
8314
8316
  }
8315
8317
  return () => {
8316
- i.removeEventListener(ua, u), setTimeout(() => {
8317
- const W = new CustomEvent(da, n2);
8318
- i.addEventListener(da, f), i.dispatchEvent(W), W.defaultPrevented || Ur(b ?? document.body, { select: !0 }), i.removeEventListener(da, f), a2.remove(m);
8318
+ i.removeEventListener(da, u), setTimeout(() => {
8319
+ const W = new CustomEvent(fa, n2);
8320
+ i.addEventListener(fa, f), i.dispatchEvent(W), W.defaultPrevented || Ur(b ?? document.body, { select: !0 }), i.removeEventListener(fa, f), a2.remove(m);
8319
8321
  }, 0);
8320
8322
  };
8321
8323
  }
@@ -8408,7 +8410,7 @@ const N4 = ["top", "right", "bottom", "left"], Pr = Math.min, Ut = Math.max, ro
8408
8410
  start: "end",
8409
8411
  end: "start"
8410
8412
  };
8411
- function Ha(e, t, r) {
8413
+ function Za(e, t, r) {
8412
8414
  return Ut(e, Pr(t, r));
8413
8415
  }
8414
8416
  function gr(e, t) {
@@ -8440,9 +8442,9 @@ function X4(e, t, r) {
8440
8442
  }
8441
8443
  function L4(e) {
8442
8444
  const t = no(e);
8443
- return [Za(e), t, Za(t)];
8445
+ return [Ka(e), t, Ka(t)];
8444
8446
  }
8445
- function Za(e) {
8447
+ function Ka(e) {
8446
8448
  return e.replace(/start|end/g, (t) => g4[t]);
8447
8449
  }
8448
8450
  function W4(e, t, r) {
@@ -8461,7 +8463,7 @@ function W4(e, t, r) {
8461
8463
  function q4(e, t, r, n) {
8462
8464
  const o = Rn(e);
8463
8465
  let a = W4(Xr(e), r === "start", n);
8464
- return o && (a = a.map((l) => l + "-" + o), t && (a = a.concat(a.map(Za)))), a;
8466
+ return o && (a = a.map((l) => l + "-" + o), t && (a = a.concat(a.map(Ka)))), a;
8465
8467
  }
8466
8468
  function no(e) {
8467
8469
  return e.replace(/left|right|bottom|top/g, (t) => w4[t]);
@@ -8679,7 +8681,7 @@ const F4 = (e) => ({
8679
8681
  }, m = Cs(o), x = Us(m), b = await l.getDimensions(u), N = m === "y", W = N ? "top" : "left", L = N ? "bottom" : "right", g = N ? "clientHeight" : "clientWidth", y = a.reference[x] + a.reference[m] - v[m] - a.floating[x], q = v[m] - a.reference[m], F = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(u));
8680
8682
  let O = F ? F[g] : 0;
8681
8683
  (!O || !await (l.isElement == null ? void 0 : l.isElement(F))) && (O = i.floating[g] || a.floating[x]);
8682
- const R = y / 2 - q / 2, j = O / 2 - b[x] / 2 - 1, Y = Pr(d[W], j), U = Pr(d[L], j), K = Y, H = O - b[x] - U, E = O / 2 - b[x] / 2 + R, P = Ha(K, E, H), C = !c.arrow && Rn(o) != null && E !== P && a.reference[x] / 2 - (E < K ? Y : U) - b[x] / 2 < 0, Z = C ? E < K ? E - K : E - H : 0;
8684
+ const R = y / 2 - q / 2, j = O / 2 - b[x] / 2 - 1, Y = Pr(d[W], j), U = Pr(d[L], j), K = Y, H = O - b[x] - U, E = O / 2 - b[x] / 2 + R, P = Za(K, E, H), C = !c.arrow && Rn(o) != null && E !== P && a.reference[x] / 2 - (E < K ? Y : U) - b[x] / 2 < 0, Z = C ? E < K ? E - K : E - H : 0;
8683
8685
  return {
8684
8686
  [m]: v[m] + Z,
8685
8687
  data: {
@@ -8910,11 +8912,11 @@ const C4 = function(e) {
8910
8912
  let m = u[v], x = u[d];
8911
8913
  if (a) {
8912
8914
  const N = v === "y" ? "top" : "left", W = v === "y" ? "bottom" : "right", L = m + f[N], g = m - f[W];
8913
- m = Ha(L, m, g);
8915
+ m = Za(L, m, g);
8914
8916
  }
8915
8917
  if (l) {
8916
8918
  const N = d === "y" ? "top" : "left", W = d === "y" ? "bottom" : "right", L = x + f[N], g = x - f[W];
8917
- x = Ha(L, x, g);
8919
+ x = Za(L, x, g);
8918
8920
  }
8919
8921
  const b = i.fn({
8920
8922
  ...t,
@@ -9017,7 +9019,7 @@ const C4 = function(e) {
9017
9019
  }
9018
9020
  };
9019
9021
  };
9020
- function Wo() {
9022
+ function qo() {
9021
9023
  return typeof window < "u";
9022
9024
  }
9023
9025
  function zn(e) {
@@ -9032,16 +9034,16 @@ function lr(e) {
9032
9034
  return (t = (G3(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
9033
9035
  }
9034
9036
  function G3(e) {
9035
- return Wo() ? e instanceof Node || e instanceof Rt(e).Node : !1;
9037
+ return qo() ? e instanceof Node || e instanceof Rt(e).Node : !1;
9036
9038
  }
9037
9039
  function Mt(e) {
9038
- return Wo() ? e instanceof Element || e instanceof Rt(e).Element : !1;
9040
+ return qo() ? e instanceof Element || e instanceof Rt(e).Element : !1;
9039
9041
  }
9040
9042
  function sr(e) {
9041
- return Wo() ? e instanceof HTMLElement || e instanceof Rt(e).HTMLElement : !1;
9043
+ return qo() ? e instanceof HTMLElement || e instanceof Rt(e).HTMLElement : !1;
9042
9044
  }
9043
9045
  function u2(e) {
9044
- return !Wo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Rt(e).ShadowRoot;
9046
+ return !qo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Rt(e).ShadowRoot;
9045
9047
  }
9046
9048
  function X1(e) {
9047
9049
  const {
@@ -9055,7 +9057,7 @@ function X1(e) {
9055
9057
  function P4(e) {
9056
9058
  return ["table", "td", "th"].includes(zn(e));
9057
9059
  }
9058
- function qo(e) {
9060
+ function Vo(e) {
9059
9061
  return [":popover-open", ":modal"].some((t) => {
9060
9062
  try {
9061
9063
  return e.matches(t);
@@ -9073,7 +9075,7 @@ function H4(e) {
9073
9075
  for (; sr(t) && !On(t); ) {
9074
9076
  if (js(t))
9075
9077
  return t;
9076
- if (qo(t))
9078
+ if (Vo(t))
9077
9079
  return null;
9078
9080
  t = Hr(t);
9079
9081
  }
@@ -9088,7 +9090,7 @@ function On(e) {
9088
9090
  function It(e) {
9089
9091
  return Rt(e).getComputedStyle(e);
9090
9092
  }
9091
- function Vo(e) {
9093
+ function Oo(e) {
9092
9094
  return Mt(e) ? {
9093
9095
  scrollLeft: e.scrollLeft,
9094
9096
  scrollTop: e.scrollTop
@@ -9118,12 +9120,12 @@ function i1(e, t, r) {
9118
9120
  t === void 0 && (t = []), r === void 0 && (r = !0);
9119
9121
  const o = J3(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), l = Rt(o);
9120
9122
  if (a) {
9121
- const i = Ka(l);
9123
+ const i = ka(l);
9122
9124
  return t.concat(l, l.visualViewport || [], X1(o) ? o : [], i && r ? i1(i) : []);
9123
9125
  }
9124
9126
  return t.concat(o, i1(o, [], r));
9125
9127
  }
9126
- function Ka(e) {
9128
+ function ka(e) {
9127
9129
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
9128
9130
  }
9129
9131
  function D3(e) {
@@ -9174,10 +9176,10 @@ function an(e, t, r, n) {
9174
9176
  let c = (o.left + i.x) / l.x, u = (o.top + i.y) / l.y, f = o.width / l.x, d = o.height / l.y;
9175
9177
  if (a) {
9176
9178
  const v = Rt(a), m = n && Mt(n) ? Rt(n) : n;
9177
- let x = v, b = Ka(x);
9179
+ let x = v, b = ka(x);
9178
9180
  for (; b && n && m !== x; ) {
9179
9181
  const N = Ln(b), W = b.getBoundingClientRect(), L = It(b), g = W.left + (b.clientLeft + parseFloat(L.paddingLeft)) * N.x, y = W.top + (b.clientTop + parseFloat(L.paddingTop)) * N.y;
9180
- c *= N.x, u *= N.y, f *= N.x, d *= N.y, c += g, u += y, x = Rt(b), b = Ka(x);
9182
+ c *= N.x, u *= N.y, f *= N.x, d *= N.y, c += g, u += y, x = Rt(b), b = ka(x);
9181
9183
  }
9182
9184
  }
9183
9185
  return oo({
@@ -9188,7 +9190,7 @@ function an(e, t, r, n) {
9188
9190
  });
9189
9191
  }
9190
9192
  function Ps(e, t) {
9191
- const r = Vo(e).scrollLeft;
9193
+ const r = Oo(e).scrollLeft;
9192
9194
  return t ? t.left + r : an(lr(e)).left + r;
9193
9195
  }
9194
9196
  function M3(e, t, r) {
@@ -9209,7 +9211,7 @@ function k4(e) {
9209
9211
  offsetParent: n,
9210
9212
  strategy: o
9211
9213
  } = e;
9212
- const a = o === "fixed", l = lr(n), i = t ? qo(t.floating) : !1;
9214
+ const a = o === "fixed", l = lr(n), i = t ? Vo(t.floating) : !1;
9213
9215
  if (n === l || i && a)
9214
9216
  return r;
9215
9217
  let c = {
@@ -9217,7 +9219,7 @@ function k4(e) {
9217
9219
  scrollTop: 0
9218
9220
  }, u = or(1);
9219
9221
  const f = or(0), d = sr(n);
9220
- if ((d || !d && !a) && ((zn(n) !== "body" || X1(l)) && (c = Vo(n)), sr(n))) {
9222
+ if ((d || !d && !a) && ((zn(n) !== "body" || X1(l)) && (c = Oo(n)), sr(n))) {
9221
9223
  const m = an(n);
9222
9224
  u = Ln(n), f.x = m.x + n.clientLeft, f.y = m.y + n.clientTop;
9223
9225
  }
@@ -9233,7 +9235,7 @@ function Y4(e) {
9233
9235
  return Array.from(e.getClientRects());
9234
9236
  }
9235
9237
  function G4(e) {
9236
- const t = lr(e), r = Vo(e), n = e.ownerDocument.body, o = Ut(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = Ut(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
9238
+ const t = lr(e), r = Oo(e), n = e.ownerDocument.body, o = Ut(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = Ut(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
9237
9239
  let l = -r.scrollLeft + Ps(e);
9238
9240
  const i = -r.scrollTop;
9239
9241
  return It(n).direction === "rtl" && (l += Ut(t.clientWidth, n.clientWidth) - o), {
@@ -9310,7 +9312,7 @@ function M4(e) {
9310
9312
  rootBoundary: n,
9311
9313
  strategy: o
9312
9314
  } = e;
9313
- const l = [...r === "clippingAncestors" ? qo(t) ? [] : E4(t, this._c) : [].concat(r), n], i = l[0], c = l.reduce((u, f) => {
9315
+ const l = [...r === "clippingAncestors" ? Vo(t) ? [] : E4(t, this._c) : [].concat(r), n], i = l[0], c = l.reduce((u, f) => {
9314
9316
  const d = d2(t, f, o);
9315
9317
  return u.top = Ut(d.top, u.top), u.right = Pr(d.right, u.right), u.bottom = Pr(d.bottom, u.bottom), u.left = Ut(d.left, u.left), u;
9316
9318
  }, d2(t, i, o));
@@ -9342,7 +9344,7 @@ function Q4(e, t, r) {
9342
9344
  c.x = Ps(o);
9343
9345
  }
9344
9346
  if (n || !n && !a)
9345
- if ((zn(t) !== "body" || X1(o)) && (i = Vo(t)), n) {
9347
+ if ((zn(t) !== "body" || X1(o)) && (i = Oo(t)), n) {
9346
9348
  const m = an(t, !0, a, t);
9347
9349
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
9348
9350
  } else o && u();
@@ -9355,7 +9357,7 @@ function Q4(e, t, r) {
9355
9357
  height: l.height
9356
9358
  };
9357
9359
  }
9358
- function fa(e) {
9360
+ function pa(e) {
9359
9361
  return It(e).position === "static";
9360
9362
  }
9361
9363
  function f2(e, t) {
@@ -9368,21 +9370,21 @@ function f2(e, t) {
9368
9370
  }
9369
9371
  function Q3(e, t) {
9370
9372
  const r = Rt(e);
9371
- if (qo(e))
9373
+ if (Vo(e))
9372
9374
  return r;
9373
9375
  if (!sr(e)) {
9374
9376
  let o = Hr(e);
9375
9377
  for (; o && !On(o); ) {
9376
- if (Mt(o) && !fa(o))
9378
+ if (Mt(o) && !pa(o))
9377
9379
  return o;
9378
9380
  o = Hr(o);
9379
9381
  }
9380
9382
  return r;
9381
9383
  }
9382
9384
  let n = f2(e, t);
9383
- for (; n && P4(n) && fa(n); )
9385
+ for (; n && P4(n) && pa(n); )
9384
9386
  n = f2(n, t);
9385
- return n && On(n) && fa(n) && !js(n) ? r : n || H4(e) || r;
9387
+ return n && On(n) && pa(n) && !js(n) ? r : n || H4(e) || r;
9386
9388
  }
9387
9389
  const B4 = async function(e) {
9388
9390
  const t = this.getOffsetParent || Q3, r = this.getDimensions, n = await r(e.floating);
@@ -9547,7 +9549,7 @@ function h2(e, t) {
9547
9549
  const r = _3(e);
9548
9550
  return Math.round(t * r) / r;
9549
9551
  }
9550
- function pa(e) {
9552
+ function ha(e) {
9551
9553
  const t = w.useRef(e);
9552
9554
  return I1(() => {
9553
9555
  t.current = e;
@@ -9580,7 +9582,7 @@ function $3(e) {
9580
9582
  G !== F.current && (F.current = G, b(G));
9581
9583
  }, []), g = w.useCallback((G) => {
9582
9584
  G !== O.current && (O.current = G, W(G));
9583
- }, []), y = a || x, q = l || N, F = w.useRef(null), O = w.useRef(null), R = w.useRef(f), j = c != null, Y = pa(c), U = pa(o), K = pa(u), H = w.useCallback(() => {
9585
+ }, []), y = a || x, q = l || N, F = w.useRef(null), O = w.useRef(null), R = w.useRef(f), j = c != null, Y = ha(c), U = ha(o), K = ha(u), H = w.useCallback(() => {
9584
9586
  if (!F.current || !O.current)
9585
9587
  return;
9586
9588
  const G = {
@@ -9939,12 +9941,12 @@ var bf = fc, xc = hc, yf = mc, xf = bc, Nf = "Portal", Nc = w.forwardRef((e, t)
9939
9941
  const { container: r, ...n } = e, [o, a] = w.useState(!1);
9940
9942
  ct(() => a(!0), []);
9941
9943
  const l = r || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
9942
- return l ? ds.createPortal(/* @__PURE__ */ s.jsx(Tt.div, { ...n, ref: t }), l) : null;
9944
+ return l ? fs.createPortal(/* @__PURE__ */ s.jsx(Tt.div, { ...n, ref: t }), l) : null;
9943
9945
  });
9944
9946
  Nc.displayName = Nf;
9945
- var Oo = "Popover", [wc, dy] = ir(Oo, [
9947
+ var Fo = "Popover", [wc, dy] = ir(Fo, [
9946
9948
  uc
9947
- ]), L1 = uc(), [wf, Gr] = wc(Oo), gc = (e) => {
9949
+ ]), L1 = uc(), [wf, Gr] = wc(Fo), gc = (e) => {
9948
9950
  const {
9949
9951
  __scopePopover: t,
9950
9952
  children: r,
@@ -9956,7 +9958,7 @@ var Oo = "Popover", [wc, dy] = ir(Oo, [
9956
9958
  prop: n,
9957
9959
  defaultProp: o ?? !1,
9958
9960
  onChange: a,
9959
- caller: Oo
9961
+ caller: Fo
9960
9962
  });
9961
9963
  return /* @__PURE__ */ s.jsx(bf, { ...i, children: /* @__PURE__ */ s.jsx(
9962
9964
  wf,
@@ -9975,7 +9977,7 @@ var Oo = "Popover", [wc, dy] = ir(Oo, [
9975
9977
  }
9976
9978
  ) });
9977
9979
  };
9978
- gc.displayName = Oo;
9980
+ gc.displayName = Fo;
9979
9981
  var Xc = "PopoverAnchor", gf = w.forwardRef(
9980
9982
  (e, t) => {
9981
9983
  const { __scopePopover: r, ...n } = e, o = Gr(Xc, r), a = L1(r), { onCustomAnchorAdd: l, onCustomAnchorRemove: i } = o;
@@ -10022,7 +10024,7 @@ var Wf = /* @__PURE__ */ o1("PopoverContent.RemoveScroll"), qf = w.forwardRef(
10022
10024
  return w.useEffect(() => {
10023
10025
  const l = n.current;
10024
10026
  if (l) return qs(l);
10025
- }, []), /* @__PURE__ */ s.jsx(Xo, { as: Wf, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
10027
+ }, []), /* @__PURE__ */ s.jsx(Lo, { as: Wf, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
10026
10028
  Oc,
10027
10029
  {
10028
10030
  ...e,
@@ -10266,7 +10268,7 @@ const Pf = (e) => {
10266
10268
  return document.addEventListener("visibilitychange", r), () => window.removeEventListener("visibilitychange", r);
10267
10269
  }, []), e;
10268
10270
  };
10269
- let ka = 1;
10271
+ let Ya = 1;
10270
10272
  class Ef {
10271
10273
  constructor() {
10272
10274
  this.subscribe = (t) => (this.subscribers.push(t), () => {
@@ -10281,7 +10283,7 @@ class Ef {
10281
10283
  ];
10282
10284
  }, this.create = (t) => {
10283
10285
  var r;
10284
- const { message: n, ...o } = t, a = typeof (t == null ? void 0 : t.id) == "number" || ((r = t.id) == null ? void 0 : r.length) > 0 ? t.id : ka++, l = this.toasts.find((c) => c.id === a), i = t.dismissible === void 0 ? !0 : t.dismissible;
10286
+ const { message: n, ...o } = t, a = typeof (t == null ? void 0 : t.id) == "number" || ((r = t.id) == null ? void 0 : r.length) > 0 ? t.id : Ya++, l = this.toasts.find((c) => c.id === a), i = t.dismissible === void 0 ? !0 : t.dismissible;
10285
10287
  return this.dismissedToasts.has(a) && this.dismissedToasts.delete(a), l ? this.toasts = this.toasts.map((c) => c.id === a ? (this.publish({
10286
10288
  ...c,
10287
10289
  ...t,
@@ -10412,7 +10414,7 @@ class Ef {
10412
10414
  unwrap: c
10413
10415
  });
10414
10416
  }, this.custom = (t, r) => {
10415
- const n = (r == null ? void 0 : r.id) || ka++;
10417
+ const n = (r == null ? void 0 : r.id) || Ya++;
10416
10418
  return this.create({
10417
10419
  jsx: t(n),
10418
10420
  id: n,
@@ -10422,7 +10424,7 @@ class Ef {
10422
10424
  }
10423
10425
  }
10424
10426
  const Wt = new Ef(), Mf = (e, t) => {
10425
- const r = (t == null ? void 0 : t.id) || ka++;
10427
+ const r = (t == null ? void 0 : t.id) || Ya++;
10426
10428
  return Wt.addToast({
10427
10429
  title: e,
10428
10430
  ...t,
@@ -10754,7 +10756,7 @@ const lp = /* @__PURE__ */ S.forwardRef(function(t, r) {
10754
10756
  return;
10755
10757
  }
10756
10758
  setTimeout(() => {
10757
- ds.flushSync(() => {
10759
+ fs.flushSync(() => {
10758
10760
  F((A) => {
10759
10761
  const _ = A.findIndex(($) => $.id === D.id);
10760
10762
  return _ !== -1 ? [
@@ -10939,7 +10941,7 @@ function y2({ className: e }) {
10939
10941
  " network to continue"
10940
10942
  ] }),
10941
10943
  /* @__PURE__ */ s.jsx(
10942
- Ee,
10944
+ Me,
10943
10945
  {
10944
10946
  variant: "tertiary",
10945
10947
  className: "!gw-px-10 gw-mt-4",
@@ -11022,14 +11024,14 @@ function W1() {
11022
11024
  const { balances: t, refreshBalances: r } = e;
11023
11025
  return { balances: t, refreshBalances: r };
11024
11026
  }
11025
- function Fo() {
11027
+ function To() {
11026
11028
  const e = wr(y1);
11027
11029
  if (!e) throw new Error("glyph hooks must be used within GlyphProvider");
11028
11030
  return { glyphApiFetch: e.apiFetch };
11029
11031
  }
11030
11032
  let Ir = null;
11031
11033
  function pp() {
11032
- const { glyphApiFetch: e } = Fo(), t = Qt(), r = bt(
11034
+ const { glyphApiFetch: e } = To(), t = Qt(), r = bt(
11033
11035
  async (l) => {
11034
11036
  if (e && (l != null && l.id)) {
11035
11037
  const i = await e(`/api/widget/onramp/quote/${l.id}/buy`, {
@@ -11350,7 +11352,7 @@ function qp(e) {
11350
11352
  var Vp = "Arrow", Rc = w.forwardRef((e, t) => {
11351
11353
  const { children: r, width: n = 10, height: o = 5, ...a } = e;
11352
11354
  return /* @__PURE__ */ s.jsx(
11353
- Me.svg,
11355
+ Ee.svg,
11354
11356
  {
11355
11357
  ...a,
11356
11358
  ref: t,
@@ -11363,7 +11365,7 @@ var Vp = "Arrow", Rc = w.forwardRef((e, t) => {
11363
11365
  );
11364
11366
  });
11365
11367
  Rc.displayName = Vp;
11366
- var Op = Rc, ks = "Popper", [zc, To] = ir(ks), [Fp, Pc] = zc(ks), Hc = (e) => {
11368
+ var Op = Rc, ks = "Popper", [zc, So] = ir(ks), [Fp, Pc] = zc(ks), Hc = (e) => {
11367
11369
  const { __scopePopper: t, children: r } = e, [n, o] = w.useState(null);
11368
11370
  return /* @__PURE__ */ s.jsx(Fp, { scope: t, anchor: n, onAnchorChange: o, children: r });
11369
11371
  };
@@ -11373,7 +11375,7 @@ var Zc = "PopperAnchor", Kc = w.forwardRef(
11373
11375
  const { __scopePopper: r, virtualRef: n, ...o } = e, a = Pc(Zc, r), l = w.useRef(null), i = Ve(t, l);
11374
11376
  return w.useEffect(() => {
11375
11377
  a.onAnchorChange((n == null ? void 0 : n.current) || l.current);
11376
- }), n ? null : /* @__PURE__ */ s.jsx(Me.div, { ...o, ref: i });
11378
+ }), n ? null : /* @__PURE__ */ s.jsx(Ee.div, { ...o, ref: i });
11377
11379
  }
11378
11380
  );
11379
11381
  Kc.displayName = Zc;
@@ -11471,7 +11473,7 @@ var Ys = "PopperContent", [Tp, Sp] = zc(Ys), kc = w.forwardRef(
11471
11473
  arrowY: _,
11472
11474
  shouldHideArrow: $,
11473
11475
  children: /* @__PURE__ */ s.jsx(
11474
- Me.div,
11476
+ Ee.div,
11475
11477
  {
11476
11478
  "data-side": J,
11477
11479
  "data-align": Q,
@@ -11574,7 +11576,7 @@ var Dc = Hc, Ec = Kc, Mc = kc, Ic = Gc, Qc = Object.freeze({
11574
11576
  wordWrap: "normal"
11575
11577
  }), Rp = "VisuallyHidden", Bc = w.forwardRef(
11576
11578
  (e, t) => /* @__PURE__ */ s.jsx(
11577
- Me.span,
11579
+ Ee.span,
11578
11580
  {
11579
11581
  ...e,
11580
11582
  ref: t,
@@ -11583,9 +11585,9 @@ var Dc = Hc, Ec = Kc, Mc = kc, Ic = Gc, Qc = Object.freeze({
11583
11585
  )
11584
11586
  );
11585
11587
  Bc.displayName = Rp;
11586
- var zp = Bc, [So, fy] = ir("Tooltip", [
11587
- To
11588
- ]), Uo = To(), Ac = "TooltipProvider", Pp = 700, Ya = "tooltip.open", [Hp, Gs] = So(Ac), _c = (e) => {
11588
+ var zp = Bc, [Uo, fy] = ir("Tooltip", [
11589
+ So
11590
+ ]), Co = So(), Ac = "TooltipProvider", Pp = 700, Ga = "tooltip.open", [Hp, Gs] = Uo(Ac), _c = (e) => {
11589
11591
  const {
11590
11592
  __scopeTooltip: t,
11591
11593
  delayDuration: r = Pp,
@@ -11621,7 +11623,7 @@ var zp = Bc, [So, fy] = ir("Tooltip", [
11621
11623
  );
11622
11624
  };
11623
11625
  _c.displayName = Ac;
11624
- var l1 = "Tooltip", [Zp, Co] = So(l1), $c = (e) => {
11626
+ var l1 = "Tooltip", [Zp, jo] = Uo(l1), $c = (e) => {
11625
11627
  const {
11626
11628
  __scopeTooltip: t,
11627
11629
  children: r,
@@ -11630,11 +11632,11 @@ var l1 = "Tooltip", [Zp, Co] = So(l1), $c = (e) => {
11630
11632
  onOpenChange: a,
11631
11633
  disableHoverableContent: l,
11632
11634
  delayDuration: i
11633
- } = e, c = Gs(l1, e.__scopeTooltip), u = Uo(t), [f, d] = w.useState(null), v = nr(), m = w.useRef(0), x = l ?? c.disableHoverableContent, b = i ?? c.delayDuration, N = w.useRef(!1), [W, L] = zr({
11635
+ } = e, c = Gs(l1, e.__scopeTooltip), u = Co(t), [f, d] = w.useState(null), v = nr(), m = w.useRef(0), x = l ?? c.disableHoverableContent, b = i ?? c.delayDuration, N = w.useRef(!1), [W, L] = zr({
11634
11636
  prop: n,
11635
11637
  defaultProp: o ?? !1,
11636
11638
  onChange: (O) => {
11637
- O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ya))) : c.onClose(), a == null || a(O);
11639
+ O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ga))) : c.onClose(), a == null || a(O);
11638
11640
  },
11639
11641
  caller: l1
11640
11642
  }), g = w.useMemo(() => W ? N.current ? "delayed-open" : "instant-open" : "closed", [W]), y = w.useCallback(() => {
@@ -11671,11 +11673,11 @@ var l1 = "Tooltip", [Zp, Co] = So(l1), $c = (e) => {
11671
11673
  ) });
11672
11674
  };
11673
11675
  $c.displayName = l1;
11674
- var Ga = "TooltipTrigger", e6 = w.forwardRef(
11676
+ var Ja = "TooltipTrigger", e6 = w.forwardRef(
11675
11677
  (e, t) => {
11676
- const { __scopeTooltip: r, ...n } = e, o = Co(Ga, r), a = Gs(Ga, r), l = Uo(r), i = w.useRef(null), c = Ve(t, i, o.onTriggerChange), u = w.useRef(!1), f = w.useRef(!1), d = w.useCallback(() => u.current = !1, []);
11678
+ const { __scopeTooltip: r, ...n } = e, o = jo(Ja, r), a = Gs(Ja, r), l = Co(r), i = w.useRef(null), c = Ve(t, i, o.onTriggerChange), u = w.useRef(!1), f = w.useRef(!1), d = w.useCallback(() => u.current = !1, []);
11677
11679
  return w.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ s.jsx(Ec, { asChild: !0, ...l, children: /* @__PURE__ */ s.jsx(
11678
- Me.button,
11680
+ Ee.button,
11679
11681
  {
11680
11682
  "aria-describedby": o.open ? o.contentId : void 0,
11681
11683
  "data-state": o.stateAttribute,
@@ -11699,16 +11701,16 @@ var Ga = "TooltipTrigger", e6 = w.forwardRef(
11699
11701
  ) });
11700
11702
  }
11701
11703
  );
11702
- e6.displayName = Ga;
11703
- var Kp = "TooltipPortal", [py, kp] = So(Kp, {
11704
+ e6.displayName = Ja;
11705
+ var Kp = "TooltipPortal", [py, kp] = Uo(Kp, {
11704
11706
  forceMount: void 0
11705
11707
  }), Tn = "TooltipContent", t6 = w.forwardRef(
11706
11708
  (e, t) => {
11707
- const r = kp(Tn, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, l = Co(Tn, e.__scopeTooltip);
11709
+ const r = kp(Tn, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, l = jo(Tn, e.__scopeTooltip);
11708
11710
  return /* @__PURE__ */ s.jsx(Yr, { present: n || l.open, children: l.disableHoverableContent ? /* @__PURE__ */ s.jsx(r6, { side: o, ...a, ref: t }) : /* @__PURE__ */ s.jsx(Yp, { side: o, ...a, ref: t }) });
11709
11711
  }
11710
11712
  ), Yp = w.forwardRef((e, t) => {
11711
- const r = Co(Tn, e.__scopeTooltip), n = Gs(Tn, e.__scopeTooltip), o = w.useRef(null), a = Ve(t, o), [l, i] = w.useState(null), { trigger: c, onClose: u } = r, f = o.current, { onPointerInTransitChange: d } = n, v = w.useCallback(() => {
11713
+ const r = jo(Tn, e.__scopeTooltip), n = Gs(Tn, e.__scopeTooltip), o = w.useRef(null), a = Ve(t, o), [l, i] = w.useState(null), { trigger: c, onClose: u } = r, f = o.current, { onPointerInTransitChange: d } = n, v = w.useCallback(() => {
11712
11714
  i(null), d(!1);
11713
11715
  }, [d]), m = w.useCallback(
11714
11716
  (x, b) => {
@@ -11733,7 +11735,7 @@ var Kp = "TooltipPortal", [py, kp] = So(Kp, {
11733
11735
  return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x);
11734
11736
  }
11735
11737
  }, [c, f, l, u, v]), /* @__PURE__ */ s.jsx(r6, { ...e, ref: a });
11736
- }), [Gp, Jp] = So(l1, { isInside: !1 }), Dp = /* @__PURE__ */ r9("TooltipContent"), r6 = w.forwardRef(
11738
+ }), [Gp, Jp] = Uo(l1, { isInside: !1 }), Dp = /* @__PURE__ */ r9("TooltipContent"), r6 = w.forwardRef(
11737
11739
  (e, t) => {
11738
11740
  const {
11739
11741
  __scopeTooltip: r,
@@ -11742,8 +11744,8 @@ var Kp = "TooltipPortal", [py, kp] = So(Kp, {
11742
11744
  onEscapeKeyDown: a,
11743
11745
  onPointerDownOutside: l,
11744
11746
  ...i
11745
- } = e, c = Co(Tn, r), u = Uo(r), { onClose: f } = c;
11746
- return w.useEffect(() => (document.addEventListener(Ya, f), () => document.removeEventListener(Ya, f)), [f]), w.useEffect(() => {
11747
+ } = e, c = jo(Tn, r), u = Co(r), { onClose: f } = c;
11748
+ return w.useEffect(() => (document.addEventListener(Ga, f), () => document.removeEventListener(Ga, f)), [f]), w.useEffect(() => {
11747
11749
  if (c.trigger) {
11748
11750
  const d = (v) => {
11749
11751
  const m = v.target;
@@ -11752,7 +11754,7 @@ var Kp = "TooltipPortal", [py, kp] = So(Kp, {
11752
11754
  return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
11753
11755
  }
11754
11756
  }, [c.trigger, f]), /* @__PURE__ */ s.jsx(
11755
- wo,
11757
+ go,
11756
11758
  {
11757
11759
  asChild: !0,
11758
11760
  disableOutsidePointerEvents: !1,
@@ -11788,7 +11790,7 @@ var Kp = "TooltipPortal", [py, kp] = So(Kp, {
11788
11790
  t6.displayName = Tn;
11789
11791
  var n6 = "TooltipArrow", Ep = w.forwardRef(
11790
11792
  (e, t) => {
11791
- const { __scopeTooltip: r, ...n } = e, o = Uo(r);
11793
+ const { __scopeTooltip: r, ...n } = e, o = Co(r);
11792
11794
  return Jp(
11793
11795
  n6,
11794
11796
  r
@@ -12006,7 +12008,7 @@ Please try again.` }),
12006
12008
  }
12007
12009
  )
12008
12010
  ] }),
12009
- /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
12011
+ /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
12010
12012
  ] }) })
12011
12013
  ] })
12012
12014
  }
@@ -12097,7 +12099,7 @@ const ih = ({ onBack: e, id: t, value: r }) => {
12097
12099
  /* @__PURE__ */ s.jsx("span", { children: "Transaction ID: " }),
12098
12100
  /* @__PURE__ */ s.jsx(sn, { textToCopy: t, text: t.slice(0, 20) + "..." })
12099
12101
  ] }),
12100
- /* @__PURE__ */ s.jsx(Ee, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
12102
+ /* @__PURE__ */ s.jsx(Me, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
12101
12103
  ] }),
12102
12104
  footerCols: !0,
12103
12105
  mainFooter: !1
@@ -12198,7 +12200,7 @@ successfully funded!` }),
12198
12200
  /* @__PURE__ */ s.jsx(Kt, { className: "gw-size-6 gw-flex-shrink-0" }),
12199
12201
  /* @__PURE__ */ s.jsx("span", { className: "gw-break-all gw-typography-body2", children: Ot(n.evmWallet) })
12200
12202
  ] }),
12201
- /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
12203
+ /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
12202
12204
  ] }) })
12203
12205
  ] })
12204
12206
  }
@@ -12385,7 +12387,7 @@ function fh({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
12385
12387
  ] }),
12386
12388
  footer: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
12387
12389
  /* @__PURE__ */ s.jsx(
12388
- Ee,
12390
+ Me,
12389
12391
  {
12390
12392
  variant: "tertiary",
12391
12393
  className: "gw-w-full gw-mb-3",
@@ -12618,7 +12620,7 @@ const wh = ({ tab: e, setTab: t }) => {
12618
12620
  ] });
12619
12621
  }, gh = S.memo(wh);
12620
12622
  function Xh(e = 10) {
12621
- const { glyphApiFetch: t } = Fo(), r = Qt(), [n, o] = fe(0), [a, l] = fe(!0), [i, c] = fe(!1), [u, f] = fe([]), d = async (b = !1) => {
12623
+ const { glyphApiFetch: t } = To(), r = Qt(), [n, o] = fe(0), [a, l] = fe(!0), [i, c] = fe(!1), [u, f] = fe([]), d = async (b = !1) => {
12622
12624
  try {
12623
12625
  c(!0);
12624
12626
  const N = b ? 0 : n;
@@ -12676,7 +12678,7 @@ function Xh(e = 10) {
12676
12678
  isLoading: i
12677
12679
  };
12678
12680
  }
12679
- function Ja(e) {
12681
+ function Da(e) {
12680
12682
  return /* @__PURE__ */ s.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ s.jsx(
12681
12683
  "path",
12682
12684
  {
@@ -12696,7 +12698,7 @@ function Lh({ data: e }) {
12696
12698
  "gw-rounded-full gw-size-10 gw-flex-shrink-0 gw-flex gw-justify-center gw-items-center",
12697
12699
  e.status === "Confirmed" ? "gw-bg-brand-success" : e.status === "Failed" ? "gw-bg-destructive" : "gw-bg-brand-warning"
12698
12700
  ),
12699
- children: e.type === "receive" ? /* @__PURE__ */ s.jsx(Ja, { className: "gw-size-3 gw-rotate-180" }) : /* @__PURE__ */ s.jsx(Ja, {})
12701
+ children: e.type === "receive" ? /* @__PURE__ */ s.jsx(Da, { className: "gw-size-3 gw-rotate-180" }) : /* @__PURE__ */ s.jsx(Da, {})
12700
12702
  }
12701
12703
  ),
12702
12704
  /* @__PURE__ */ s.jsxs("div", { className: "gw-w-full gw-flex gw-justify-between gw-items-center gw-flex-1", children: [
@@ -12727,7 +12729,7 @@ function Js({ text: e, url: t }) {
12727
12729
  href: t,
12728
12730
  target: "_blank",
12729
12731
  rel: "noopener noreferrer",
12730
- className: gs({
12732
+ className: wo({
12731
12733
  variant: "link",
12732
12734
  size: "sm",
12733
12735
  className: "gw-py-0 gw-h-auto",
@@ -12738,7 +12740,7 @@ function Js({ text: e, url: t }) {
12738
12740
  e,
12739
12741
  " "
12740
12742
  ] }),
12741
- /* @__PURE__ */ s.jsx(Ja, { className: "!gw-size-2.5 gw-text-primary" })
12743
+ /* @__PURE__ */ s.jsx(Da, { className: "!gw-size-2.5 gw-text-primary" })
12742
12744
  ] })
12743
12745
  }
12744
12746
  );
@@ -12806,7 +12808,7 @@ function qh(e) {
12806
12808
  n
12807
12809
  ];
12808
12810
  }
12809
- var jo = "Collapsible", [Vh, c6] = ir(jo), [Oh, Ds] = Vh(jo), u6 = w.forwardRef(
12811
+ var Ro = "Collapsible", [Vh, c6] = ir(Ro), [Oh, Ds] = Vh(Ro), u6 = w.forwardRef(
12810
12812
  (e, t) => {
12811
12813
  const {
12812
12814
  __scopeCollapsible: r,
@@ -12819,7 +12821,7 @@ var jo = "Collapsible", [Vh, c6] = ir(jo), [Oh, Ds] = Vh(jo), u6 = w.forwardRef(
12819
12821
  prop: n,
12820
12822
  defaultProp: o ?? !1,
12821
12823
  onChange: l,
12822
- caller: jo
12824
+ caller: Ro
12823
12825
  });
12824
12826
  return /* @__PURE__ */ s.jsx(
12825
12827
  Oh,
@@ -12842,7 +12844,7 @@ var jo = "Collapsible", [Vh, c6] = ir(jo), [Oh, Ds] = Vh(jo), u6 = w.forwardRef(
12842
12844
  );
12843
12845
  }
12844
12846
  );
12845
- u6.displayName = jo;
12847
+ u6.displayName = Ro;
12846
12848
  var d6 = "CollapsibleTrigger", f6 = w.forwardRef(
12847
12849
  (e, t) => {
12848
12850
  const { __scopeCollapsible: r, ...n } = e, o = Ds(d6, r);
@@ -12911,7 +12913,7 @@ function h6(e) {
12911
12913
  const t = w.useContext(Ch);
12912
12914
  return e || t || "ltr";
12913
12915
  }
12914
- var _t = "Accordion", jh = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Is, Rh, zh] = qh(_t), [Ro, hy] = ir(_t, [
12916
+ var _t = "Accordion", jh = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Is, Rh, zh] = qh(_t), [zo, hy] = ir(_t, [
12915
12917
  zh,
12916
12918
  c6
12917
12919
  ]), Qs = c6(), Bs = S.forwardRef(
@@ -12921,7 +12923,7 @@ var _t = "Accordion", jh = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft",
12921
12923
  }
12922
12924
  );
12923
12925
  Bs.displayName = _t;
12924
- var [m6, Ph] = Ro(_t), [v6, Hh] = Ro(
12926
+ var [m6, Ph] = zo(_t), [v6, Hh] = zo(
12925
12927
  _t,
12926
12928
  { collapsible: !1 }
12927
12929
  ), Zh = S.forwardRef(
@@ -12979,7 +12981,7 @@ var [m6, Ph] = Ro(_t), [v6, Hh] = Ro(
12979
12981
  children: /* @__PURE__ */ s.jsx(v6, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ s.jsx(b6, { ...a, ref: t }) })
12980
12982
  }
12981
12983
  );
12982
- }), [kh, zo] = Ro(_t), b6 = S.forwardRef(
12984
+ }), [kh, Po] = zo(_t), b6 = S.forwardRef(
12983
12985
  (e, t) => {
12984
12986
  const { __scopeAccordion: r, disabled: n, dir: o, orientation: a = "vertical", ...l } = e, i = S.useRef(null), c = Ve(i, t), u = Rh(r), d = h6(o) === "ltr", v = xe(e.onKeyDown, (m) => {
12985
12987
  var R;
@@ -13038,9 +13040,9 @@ var [m6, Ph] = Ro(_t), [v6, Hh] = Ro(
13038
13040
  }
13039
13041
  );
13040
13042
  }
13041
- ), io = "AccordionItem", [Yh, As] = Ro(io), _s = S.forwardRef(
13043
+ ), io = "AccordionItem", [Yh, As] = zo(io), _s = S.forwardRef(
13042
13044
  (e, t) => {
13043
- const { __scopeAccordion: r, value: n, ...o } = e, a = zo(io, r), l = Ph(io, r), i = Qs(r), c = nr(), u = n && l.value.includes(n) || !1, f = a.disabled || e.disabled;
13045
+ const { __scopeAccordion: r, value: n, ...o } = e, a = Po(io, r), l = Ph(io, r), i = Qs(r), c = nr(), u = n && l.value.includes(n) || !1, f = a.disabled || e.disabled;
13044
13046
  return /* @__PURE__ */ s.jsx(
13045
13047
  Yh,
13046
13048
  {
@@ -13070,7 +13072,7 @@ var [m6, Ph] = Ro(_t), [v6, Hh] = Ro(
13070
13072
  _s.displayName = io;
13071
13073
  var y6 = "AccordionHeader", x6 = S.forwardRef(
13072
13074
  (e, t) => {
13073
- const { __scopeAccordion: r, ...n } = e, o = zo(_t, r), a = As(y6, r);
13075
+ const { __scopeAccordion: r, ...n } = e, o = Po(_t, r), a = As(y6, r);
13074
13076
  return /* @__PURE__ */ s.jsx(
13075
13077
  Tt.h3,
13076
13078
  {
@@ -13084,9 +13086,9 @@ var y6 = "AccordionHeader", x6 = S.forwardRef(
13084
13086
  }
13085
13087
  );
13086
13088
  x6.displayName = y6;
13087
- var Da = "AccordionTrigger", $s = S.forwardRef(
13089
+ var Ea = "AccordionTrigger", $s = S.forwardRef(
13088
13090
  (e, t) => {
13089
- const { __scopeAccordion: r, ...n } = e, o = zo(_t, r), a = As(Da, r), l = Hh(Da, r), i = Qs(r);
13091
+ const { __scopeAccordion: r, ...n } = e, o = Po(_t, r), a = As(Ea, r), l = Hh(Ea, r), i = Qs(r);
13090
13092
  return /* @__PURE__ */ s.jsx(Is.ItemSlot, { scope: r, children: /* @__PURE__ */ s.jsx(
13091
13093
  Sh,
13092
13094
  {
@@ -13100,10 +13102,10 @@ var Da = "AccordionTrigger", $s = S.forwardRef(
13100
13102
  ) });
13101
13103
  }
13102
13104
  );
13103
- $s.displayName = Da;
13105
+ $s.displayName = Ea;
13104
13106
  var N6 = "AccordionContent", ei = S.forwardRef(
13105
13107
  (e, t) => {
13106
- const { __scopeAccordion: r, ...n } = e, o = zo(_t, r), a = As(N6, r), l = Qs(r);
13108
+ const { __scopeAccordion: r, ...n } = e, o = Po(_t, r), a = As(N6, r), l = Qs(r);
13107
13109
  return /* @__PURE__ */ s.jsx(
13108
13110
  Uh,
13109
13111
  {
@@ -13173,7 +13175,7 @@ function Mh({ expandFirst: e = !1 }) {
13173
13175
  return m && v.observe(m), () => {
13174
13176
  m && v.unobserve(m);
13175
13177
  };
13176
- }, [d]), /* @__PURE__ */ s.jsxs("div", { className: "gw-p-4", children: [
13178
+ }, [d]), /* @__PURE__ */ s.jsxs("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full", children: [
13177
13179
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-items-center gw-justify-between", children: [
13178
13180
  /* @__PURE__ */ s.jsx(
13179
13181
  "a",
@@ -13197,7 +13199,7 @@ function Mh({ expandFirst: e = !1 }) {
13197
13199
  }
13198
13200
  )
13199
13201
  ] }),
13200
- /* @__PURE__ */ s.jsx("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2", children: l && f === 0 ? (
13202
+ /* @__PURE__ */ s.jsx("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2 gw-flex-1 gw-overflow-auto gw-pr-4 gw-min-h-0", children: l && f === 0 ? (
13201
13203
  // initial loading state
13202
13204
  new Array(3).fill(null).map((v, m) => /* @__PURE__ */ s.jsxs("div", { children: [
13203
13205
  /* @__PURE__ */ s.jsx(Wh, {}),
@@ -13266,7 +13268,7 @@ function Mh({ expandFirst: e = !1 }) {
13266
13268
  /* @__PURE__ */ s.jsx("div", { className: "gw-h-2 gw-w-2 gw-bg-primary gw-rounded-full" }),
13267
13269
  /* @__PURE__ */ s.jsx("div", { className: "gw-h-2 gw-w-2 gw-bg-primary gw-rounded-full" })
13268
13270
  ] }) : /* @__PURE__ */ s.jsx("div", { ref: i, className: "gw-h-4" }) })
13269
- ] }) : /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-items-center gw-w-full gw-mt-2 gw-text-brand-gray-500 gw-typography-body2", children: "No transactions" }) })
13271
+ ] }) : /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-1 gw-text-brand-gray-500 gw-typography-body2", children: "No transactions" }) })
13270
13272
  ] });
13271
13273
  }
13272
13274
  function V6(e) {
@@ -13318,15 +13320,15 @@ function Qh({ onAddFunds: e, onReceive: t, onSend: r }) {
13318
13320
  ] })
13319
13321
  ] }),
13320
13322
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-space-x-3 gw-w-fit gw-pb-2", children: [
13321
- /* @__PURE__ */ s.jsx(Ee, { shadow: !0, variant: "cube", size: "cube", onClick: e, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
13323
+ /* @__PURE__ */ s.jsx(Me, { shadow: !0, variant: "cube", size: "cube", onClick: e, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
13322
13324
  /* @__PURE__ */ s.jsx(V6, {}),
13323
13325
  /* @__PURE__ */ s.jsx("span", { children: "Fund" })
13324
13326
  ] }) }),
13325
- /* @__PURE__ */ s.jsx(Ee, { shadow: !0, variant: "cube", size: "cube", onClick: t, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
13327
+ /* @__PURE__ */ s.jsx(Me, { shadow: !0, variant: "cube", size: "cube", onClick: t, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
13326
13328
  /* @__PURE__ */ s.jsx(Ih, {}),
13327
13329
  /* @__PURE__ */ s.jsx("span", { children: "Receive" })
13328
13330
  ] }) }),
13329
- /* @__PURE__ */ s.jsx(Ee, { shadow: !0, variant: "cube", size: "cube", onClick: r, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
13331
+ /* @__PURE__ */ s.jsx(Me, { shadow: !0, variant: "cube", size: "cube", onClick: r, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
13330
13332
  /* @__PURE__ */ s.jsx(Zd, {}),
13331
13333
  /* @__PURE__ */ s.jsx("span", { children: "Send" })
13332
13334
  ] }) })
@@ -13404,7 +13406,7 @@ function Bh() {
13404
13406
  ] })
13405
13407
  ] }),
13406
13408
  /* @__PURE__ */ s.jsxs(
13407
- Ee,
13409
+ Me,
13408
13410
  {
13409
13411
  className: "gw-w-full gw-mt-5",
13410
13412
  onClick: () => {
@@ -13604,14 +13606,14 @@ function e1(e) {
13604
13606
  function Ah() {
13605
13607
  var a;
13606
13608
  const { balances: e } = W1(), t = Qt(), r = jn.get(t) || !1, n = (e == null ? void 0 : e.tokens) || [], o = n.reduce((l, i) => l + +(i.amount || 0), 0);
13607
- return /* @__PURE__ */ s.jsxs("div", { className: "gw-p-4", children: [
13608
- /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full", children: [
13609
+ return /* @__PURE__ */ s.jsxs("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full", children: [
13610
+ /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-pr-4", children: [
13609
13611
  /* @__PURE__ */ s.jsx("h6", { children: "Tokens" }),
13610
13612
  /* @__PURE__ */ s.jsx("div", { className: "gw-typography-body2", children: /* @__PURE__ */ s.jsx("span", { className: "amount", children: mt(o, (a = n[0]) == null ? void 0 : a.currency) }) })
13611
13613
  ] }),
13612
- /* @__PURE__ */ s.jsx("div", { className: "gw-grid gw-grid-cols-1 gw-mt-6", children: n.map((l, i) => {
13614
+ /* @__PURE__ */ s.jsx("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2 gw-max-h-100 gw-min-h-0 gw-overflow-auto gw-pr-4 gw-min-h-0", children: n.map((l, i) => {
13613
13615
  if (l != null && l.hide) return null;
13614
- const c = Ua[l.symbol] || e1;
13616
+ const c = Ca[l.symbol] || e1;
13615
13617
  return /* @__PURE__ */ s.jsxs("div", { className: "gw-w-full", children: [
13616
13618
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2", children: [
13617
13619
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-3", children: [
@@ -13641,7 +13643,7 @@ function Ah() {
13641
13643
  ] })
13642
13644
  ] })
13643
13645
  ] }),
13644
- i < n.length - 1 && /* @__PURE__ */ s.jsx("hr", { className: "gw-my-3 gw-border-muted" })
13646
+ i < n.length - 1 && /* @__PURE__ */ s.jsx("hr", { className: "gw-my-2 gw-border-muted" })
13645
13647
  ] }, l.symbol);
13646
13648
  }) })
13647
13649
  ] });
@@ -13651,27 +13653,13 @@ function _h(e) {
13651
13653
  }
13652
13654
  function $h() {
13653
13655
  const { glyphUrl: e } = st(), { balances: t } = W1(), [r, n] = fe(void 0), o = (t == null ? void 0 : t.nfts) || [], a = new URL("/nfts", e).toString();
13654
- return /* @__PURE__ */ s.jsxs("div", { className: "gw-p-4", children: [
13655
- /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-flex-row gw-justify-between gw-items-center gw-w-full", children: [
13656
- /* @__PURE__ */ s.jsx("h6", { children: "My NFTs" }),
13657
- /* @__PURE__ */ s.jsx(
13658
- Ee,
13659
- {
13660
- variant: "default",
13661
- size: "xsm",
13662
- className: "gw-brand-forest !gw-justify-start",
13663
- onClick: () => {
13664
- window.open(a, "_blank");
13665
- },
13666
- children: /* @__PURE__ */ s.jsx("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: /* @__PURE__ */ s.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Dashboard" }) })
13667
- }
13668
- )
13669
- ] }),
13670
- /* @__PURE__ */ s.jsxs("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2", children: [
13671
- o.length > 0 && /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-justify-center gw-w-full gw-mb-2 gw-text-brand-gray-500 gw-typography-body2", children: "Need to transfer? Go to Glyph Dashboard" }),
13672
- o.length > 0 && /* @__PURE__ */ s.jsx(
13656
+ return /* @__PURE__ */ s.jsxs("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full", children: [
13657
+ /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-mb-2 gw-flex-row gw-justify-between gw-items-center gw-w-full gw-flex-shrink-0", children: /* @__PURE__ */ s.jsx("h6", { children: "My NFTs" }) }),
13658
+ o != null && o.length ? /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-flex-col gw-flex-1 gw-min-h-0", children: [
13659
+ /* @__PURE__ */ s.jsx("div", { className: "gw-flex-1 gw-min-h-0 gw-overflow-auto", children: /* @__PURE__ */ s.jsx(
13673
13660
  Bs,
13674
13661
  {
13662
+ className: "gw-w-full",
13675
13663
  type: "single",
13676
13664
  collapsible: !0,
13677
13665
  value: r,
@@ -13682,10 +13670,14 @@ function $h() {
13682
13670
  {
13683
13671
  src: l.image,
13684
13672
  alt: l.name,
13685
- className: "gw-w-10 gw-h-10 gw-object-cover gw-rounded-md gw-block"
13673
+ className: "gw-w-10 gw-h-10 gw-object-cover gw-rounded-md gw-block",
13674
+ onError: (u) => {
13675
+ var f;
13676
+ u.currentTarget.src = ((f = l.items[0].image) == null ? void 0 : f.thumbnailUrl) || "";
13677
+ }
13686
13678
  }
13687
13679
  ) : /* @__PURE__ */ s.jsx(e1, { width: "40", height: "40", className: "border-radius: 5px;" });
13688
- return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(_s, { value: i.toString(), children: [
13680
+ return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(_s, { value: i.toString(), className: "gw-pr-4", children: [
13689
13681
  /* @__PURE__ */ s.jsx($s, { asChild: !0, children: /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2 gw-cursor-pointer", children: [
13690
13682
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-3 gw-min-w-0 gw-flex-1", children: [
13691
13683
  /* @__PURE__ */ s.jsx("div", { className: "gw-flex-shrink-0", children: c }),
@@ -13693,7 +13685,7 @@ function $h() {
13693
13685
  ] }),
13694
13686
  /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-text-end gw-flex-shrink-0", children: /* @__PURE__ */ s.jsx(_h, { className: `${r === i.toString() ? "gw-rotate-180" : ""}` }) })
13695
13687
  ] }) }),
13696
- /* @__PURE__ */ s.jsx(ei, { children: /* @__PURE__ */ s.jsx("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-mt-2", children: l.items.map((u) => {
13688
+ /* @__PURE__ */ s.jsx(ei, { children: /* @__PURE__ */ s.jsx("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-my-2", children: l.items.map((u) => {
13697
13689
  var f;
13698
13690
  return /* @__PURE__ */ s.jsx(
13699
13691
  "img",
@@ -13709,9 +13701,16 @@ function $h() {
13709
13701
  ] }) }, i.toString());
13710
13702
  })
13711
13703
  }
13712
- ),
13713
- o.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-justify-center gw-w-full gw-mt-2 gw-text-brand-gray-500 gw-typography-body2", children: "No NFTs found" })
13714
- ] })
13704
+ ) }),
13705
+ /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-center gw-items-center gw-w-full gw-text-brand-gray-500 gw-typography-body2 gw-flex-shrink-0 gw-mt-2", children: [
13706
+ "Need to transfer? Go to",
13707
+ /* @__PURE__ */ s.jsx("a", { href: a, target: "_blank", rel: "noopener noreferrer", className: wo({
13708
+ variant: "link-inline",
13709
+ size: "xs-inline",
13710
+ scale: !1
13711
+ }), children: "Glyph Dashboard" })
13712
+ ] })
13713
+ ] }) : /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-1 gw-text-brand-gray-500 gw-typography-body2 gw-pr-4", children: "No NFTs found" })
13715
13714
  ] });
13716
13715
  }
13717
13716
  function em({
@@ -13732,10 +13731,10 @@ function em({
13732
13731
  header: /* @__PURE__ */ s.jsx(Jr, { onProfileClick: n }),
13733
13732
  content: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
13734
13733
  o === nt.HOME && /* @__PURE__ */ s.jsx(Qh, { onAddFunds: e, onReceive: r, onSend: t }),
13735
- o === nt.ACTIVITY && /* @__PURE__ */ s.jsx(Mh, { expandFirst: l }),
13736
- o === nt.LINKED_ACCOUNTS && /* @__PURE__ */ s.jsx(Bh, {}),
13737
13734
  o === nt.TOKENS && /* @__PURE__ */ s.jsx(Ah, {}),
13738
- o === nt.NFTS && /* @__PURE__ */ s.jsx($h, {})
13735
+ o === nt.NFTS && /* @__PURE__ */ s.jsx($h, {}),
13736
+ o === nt.LINKED_ACCOUNTS && /* @__PURE__ */ s.jsx(Bh, {}),
13737
+ o === nt.ACTIVITY && /* @__PURE__ */ s.jsx(Mh, { expandFirst: l })
13739
13738
  ] }),
13740
13739
  footer: /* @__PURE__ */ s.jsx(gh, { tab: o, setTab: a })
13741
13740
  }
@@ -13786,7 +13785,7 @@ function nm({ onBack: e }) {
13786
13785
  content: /* @__PURE__ */ s.jsxs("div", { className: "gw-w-full gw-flex gw-flex-col gw-h-full", children: [
13787
13786
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-flex-col gw-relative gw-justify-center gw-items-center gw-p-4 gw-overflow-hidden gw-h-32", children: [
13788
13787
  /* @__PURE__ */ s.jsxs(
13789
- Ee,
13788
+ Me,
13790
13789
  {
13791
13790
  variant: "tertiary",
13792
13791
  shadow: !0,
@@ -13823,7 +13822,7 @@ function nm({ onBack: e }) {
13823
13822
  ] }),
13824
13823
  /* @__PURE__ */ s.jsx("div", { className: "gw-p-4 gw-flex-1 gw-flex gw-flex-col gw-justify-end gw-items-center gw-w-full", children: /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-flex-col gw-space-y-3 gw-w-full", children: [
13825
13824
  /* @__PURE__ */ s.jsx(
13826
- Ee,
13825
+ Me,
13827
13826
  {
13828
13827
  variant: "tertiary",
13829
13828
  className: "gw-w-full",
@@ -13833,20 +13832,20 @@ function nm({ onBack: e }) {
13833
13832
  children: "Edit Profile on Glyph Dashboard"
13834
13833
  }
13835
13834
  ),
13836
- /* @__PURE__ */ s.jsx(Ee, { variant: "outline", className: "gw-w-full", onClick: r, children: "Log Out" })
13835
+ /* @__PURE__ */ s.jsx(Me, { variant: "outline", className: "gw-w-full", onClick: r, children: "Log Out" })
13837
13836
  ] }) })
13838
13837
  ] })
13839
13838
  }
13840
13839
  );
13841
13840
  }
13842
- var om = Object.defineProperty, lo = Object.getOwnPropertySymbols, O6 = Object.prototype.hasOwnProperty, F6 = Object.prototype.propertyIsEnumerable, g2 = (e, t, r) => t in e ? om(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ea = (e, t) => {
13841
+ var om = Object.defineProperty, lo = Object.getOwnPropertySymbols, O6 = Object.prototype.hasOwnProperty, F6 = Object.prototype.propertyIsEnumerable, g2 = (e, t, r) => t in e ? om(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ma = (e, t) => {
13843
13842
  for (var r in t || (t = {}))
13844
13843
  O6.call(t, r) && g2(e, r, t[r]);
13845
13844
  if (lo)
13846
13845
  for (var r of lo(t))
13847
13846
  F6.call(t, r) && g2(e, r, t[r]);
13848
13847
  return e;
13849
- }, Ma = (e, t) => {
13848
+ }, Ia = (e, t) => {
13850
13849
  var r = {};
13851
13850
  for (var n in e)
13852
13851
  O6.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -14512,7 +14511,7 @@ var dm = function() {
14512
14511
  boostLevel: d,
14513
14512
  marginSize: v,
14514
14513
  imageSettings: m
14515
- } = n, b = Ma(n, [
14514
+ } = n, b = Ia(n, [
14516
14515
  "value",
14517
14516
  "size",
14518
14517
  "level",
@@ -14523,7 +14522,7 @@ var dm = function() {
14523
14522
  "boostLevel",
14524
14523
  "marginSize",
14525
14524
  "imageSettings"
14526
- ]), { style: N } = b, W = Ma(b, ["style"]), L = m == null ? void 0 : m.src, g = S.useRef(null), y = S.useRef(null), q = S.useCallback(
14525
+ ]), { style: N } = b, W = Ia(b, ["style"]), L = m == null ? void 0 : m.src, g = S.useRef(null), y = S.useRef(null), q = S.useCallback(
14527
14526
  (E) => {
14528
14527
  g.current = E, typeof r == "function" ? r(E) : r && (r.current = E);
14529
14528
  },
@@ -14567,7 +14566,7 @@ var dm = function() {
14567
14566
  }), S.useEffect(() => {
14568
14567
  O(!1);
14569
14568
  }, [L]);
14570
- const K = Ea({ height: a, width: a }, N);
14569
+ const K = Ma({ height: a, width: a }, N);
14571
14570
  let H = null;
14572
14571
  return L != null && (H = /* @__PURE__ */ S.createElement(
14573
14572
  "img",
@@ -14583,7 +14582,7 @@ var dm = function() {
14583
14582
  }
14584
14583
  )), /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(
14585
14584
  "canvas",
14586
- Ea({
14585
+ Ma({
14587
14586
  style: K,
14588
14587
  height: a,
14589
14588
  width: a,
@@ -14608,7 +14607,7 @@ var Z6 = S.forwardRef(
14608
14607
  title: v,
14609
14608
  marginSize: m,
14610
14609
  imageSettings: x
14611
- } = n, b = Ma(n, [
14610
+ } = n, b = Ia(n, [
14612
14611
  "value",
14613
14612
  "size",
14614
14613
  "level",
@@ -14650,7 +14649,7 @@ var Z6 = S.forwardRef(
14650
14649
  const F = z6(y, N);
14651
14650
  return /* @__PURE__ */ S.createElement(
14652
14651
  "svg",
14653
- Ea({
14652
+ Ma({
14654
14653
  height: a,
14655
14654
  width: a,
14656
14655
  viewBox: `0 0 ${L} ${L}`,
@@ -14733,7 +14732,7 @@ function mm({ onBack: e }) {
14733
14732
  {
14734
14733
  text: "Copy Wallet Address",
14735
14734
  textToCopy: r == null ? void 0 : r.evmWallet,
14736
- className: gs({
14735
+ className: wo({
14737
14736
  variant: "default",
14738
14737
  size: "default",
14739
14738
  className: "gw-w-full"
@@ -14792,10 +14791,10 @@ function bm(e) {
14792
14791
  const t = w.useRef({ value: e, previous: e });
14793
14792
  return w.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
14794
14793
  }
14795
- var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Select", [Po, Ho, Nm] = vm(cn), [Pn, by] = ir(cn, [
14794
+ var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Select", [Ho, Zo, Nm] = vm(cn), [Pn, by] = ir(cn, [
14796
14795
  Nm,
14797
- To
14798
- ]), Zo = To(), [wm, Dr] = Pn(cn), [gm, Xm] = Pn(cn), K6 = (e) => {
14796
+ So
14797
+ ]), Ko = So(), [wm, Dr] = Pn(cn), [gm, Xm] = Pn(cn), K6 = (e) => {
14799
14798
  const {
14800
14799
  __scopeSelect: t,
14801
14800
  children: r,
@@ -14811,7 +14810,7 @@ var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Sele
14811
14810
  disabled: v,
14812
14811
  required: m,
14813
14812
  form: x
14814
- } = e, b = Zo(t), [N, W] = w.useState(null), [L, g] = w.useState(null), [y, q] = w.useState(!1), F = h6(u), [O, R] = zr({
14813
+ } = e, b = Ko(t), [N, W] = w.useState(null), [L, g] = w.useState(null), [y, q] = w.useState(!1), F = h6(u), [O, R] = zr({
14815
14814
  prop: n,
14816
14815
  defaultProp: o ?? !1,
14817
14816
  onChange: a,
@@ -14842,7 +14841,7 @@ var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Sele
14842
14841
  triggerPointerDownPosRef: U,
14843
14842
  disabled: v,
14844
14843
  children: [
14845
- /* @__PURE__ */ s.jsx(Po.Provider, { scope: t, children: /* @__PURE__ */ s.jsx(
14844
+ /* @__PURE__ */ s.jsx(Ho.Provider, { scope: t, children: /* @__PURE__ */ s.jsx(
14846
14845
  gm,
14847
14846
  {
14848
14847
  scope: e.__scopeSelect,
@@ -14884,7 +14883,7 @@ var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Sele
14884
14883
  K6.displayName = cn;
14885
14884
  var k6 = "SelectTrigger", Y6 = w.forwardRef(
14886
14885
  (e, t) => {
14887
- const { __scopeSelect: r, disabled: n = !1, ...o } = e, a = Zo(r), l = Dr(k6, r), i = l.disabled || n, c = Ve(t, l.onTriggerChange), u = Ho(r), f = w.useRef("touch"), [d, v, m] = u0((b) => {
14886
+ const { __scopeSelect: r, disabled: n = !1, ...o } = e, a = Ko(r), l = Dr(k6, r), i = l.disabled || n, c = Ve(t, l.onTriggerChange), u = Zo(r), f = w.useRef("touch"), [d, v, m] = u0((b) => {
14888
14887
  const N = u().filter((g) => !g.disabled), W = N.find((g) => g.value === l.value), L = d0(N, b, W);
14889
14888
  L !== void 0 && l.onValueChange(L.value);
14890
14889
  }), x = (b) => {
@@ -14894,7 +14893,7 @@ var k6 = "SelectTrigger", Y6 = w.forwardRef(
14894
14893
  });
14895
14894
  };
14896
14895
  return /* @__PURE__ */ s.jsx(Ec, { asChild: !0, ...a, children: /* @__PURE__ */ s.jsx(
14897
- Me.button,
14896
+ Ee.button,
14898
14897
  {
14899
14898
  type: "button",
14900
14899
  role: "combobox",
@@ -14932,7 +14931,7 @@ var G6 = "SelectValue", Lm = w.forwardRef(
14932
14931
  return ct(() => {
14933
14932
  u(f);
14934
14933
  }, [u, f]), /* @__PURE__ */ s.jsx(
14935
- Me.span,
14934
+ Ee.span,
14936
14935
  {
14937
14936
  ...i,
14938
14937
  ref: d,
@@ -14946,7 +14945,7 @@ Lm.displayName = G6;
14946
14945
  var Wm = "SelectIcon", J6 = w.forwardRef(
14947
14946
  (e, t) => {
14948
14947
  const { __scopeSelect: r, children: n, ...o } = e;
14949
- return /* @__PURE__ */ s.jsx(Me.span, { "aria-hidden": !0, ...o, ref: t, children: n || "▼" });
14948
+ return /* @__PURE__ */ s.jsx(Ee.span, { "aria-hidden": !0, ...o, ref: t, children: n || "▼" });
14950
14949
  }
14951
14950
  );
14952
14951
  J6.displayName = Wm;
@@ -14960,7 +14959,7 @@ var un = "SelectContent", E6 = w.forwardRef(
14960
14959
  }, []), !r.open) {
14961
14960
  const a = n;
14962
14961
  return a ? p1.createPortal(
14963
- /* @__PURE__ */ s.jsx(M6, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx(Po.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx("div", { children: e.children }) }) }),
14962
+ /* @__PURE__ */ s.jsx(M6, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx(Ho.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx("div", { children: e.children }) }) }),
14964
14963
  a
14965
14964
  ) : null;
14966
14965
  }
@@ -14992,7 +14991,7 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
14992
14991
  ...W
14993
14992
  } = e, L = Dr(un, r), [g, y] = w.useState(null), [q, F] = w.useState(null), O = Ve(t, (ee) => y(ee)), [R, j] = w.useState(null), [Y, U] = w.useState(
14994
14993
  null
14995
- ), K = Ho(r), [H, E] = w.useState(!1), P = w.useRef(!1);
14994
+ ), K = Zo(r), [H, E] = w.useState(!1), P = w.useRef(!1);
14996
14995
  w.useEffect(() => {
14997
14996
  if (g) return qs(g);
14998
14997
  }, [g]), Ws();
@@ -15048,7 +15047,7 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15048
15047
  (L.value !== void 0 && L.value === ae || se) && U(ee);
15049
15048
  },
15050
15049
  [L.value]
15051
- ), I = n === "popper" ? Ia : Q6, ne = I === Ia ? {
15050
+ ), I = n === "popper" ? Qa : Q6, ne = I === Qa ? {
15052
15051
  side: i,
15053
15052
  sideOffset: c,
15054
15053
  align: u,
@@ -15076,7 +15075,7 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15076
15075
  position: n,
15077
15076
  isPositioned: H,
15078
15077
  searchRef: Q,
15079
- children: /* @__PURE__ */ s.jsx(Xo, { as: Om, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
15078
+ children: /* @__PURE__ */ s.jsx(Lo, { as: Om, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
15080
15079
  Xs,
15081
15080
  {
15082
15081
  asChild: !0,
@@ -15089,7 +15088,7 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15089
15088
  (ae = L.trigger) == null || ae.focus({ preventScroll: !0 }), ee.preventDefault();
15090
15089
  }),
15091
15090
  children: /* @__PURE__ */ s.jsx(
15092
- wo,
15091
+ go,
15093
15092
  {
15094
15093
  asChild: !0,
15095
15094
  disableOutsidePointerEvents: !0,
@@ -15140,7 +15139,7 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15140
15139
  );
15141
15140
  I6.displayName = Vm;
15142
15141
  var Fm = "SelectItemAlignedPosition", Q6 = w.forwardRef((e, t) => {
15143
- const { __scopeSelect: r, onPlaced: n, ...o } = e, a = Dr(un, r), l = Er(un, r), [i, c] = w.useState(null), [u, f] = w.useState(null), d = Ve(t, (O) => f(O)), v = Ho(r), m = w.useRef(!1), x = w.useRef(!0), { viewport: b, selectedItem: N, selectedItemText: W, focusSelectedItem: L } = l, g = w.useCallback(() => {
15142
+ const { __scopeSelect: r, onPlaced: n, ...o } = e, a = Dr(un, r), l = Er(un, r), [i, c] = w.useState(null), [u, f] = w.useState(null), d = Ve(t, (O) => f(O)), v = Zo(r), m = w.useRef(!1), x = w.useRef(!0), { viewport: b, selectedItem: N, selectedItemText: W, focusSelectedItem: L } = l, g = w.useCallback(() => {
15144
15143
  if (a.trigger && a.valueNode && i && u && b && N && W) {
15145
15144
  const O = a.trigger.getBoundingClientRect(), R = u.getBoundingClientRect(), j = a.valueNode.getBoundingClientRect(), Y = W.getBoundingClientRect();
15146
15145
  if (a.dir !== "rtl") {
@@ -15224,7 +15223,7 @@ var Fm = "SelectItemAlignedPosition", Q6 = w.forwardRef((e, t) => {
15224
15223
  zIndex: y
15225
15224
  },
15226
15225
  children: /* @__PURE__ */ s.jsx(
15227
- Me.div,
15226
+ Ee.div,
15228
15227
  {
15229
15228
  ...o,
15230
15229
  ref: d,
@@ -15244,13 +15243,13 @@ var Fm = "SelectItemAlignedPosition", Q6 = w.forwardRef((e, t) => {
15244
15243
  );
15245
15244
  });
15246
15245
  Q6.displayName = Fm;
15247
- var Tm = "SelectPopperPosition", Ia = w.forwardRef((e, t) => {
15246
+ var Tm = "SelectPopperPosition", Qa = w.forwardRef((e, t) => {
15248
15247
  const {
15249
15248
  __scopeSelect: r,
15250
15249
  align: n = "start",
15251
15250
  collisionPadding: o = Jt,
15252
15251
  ...a
15253
- } = e, l = Zo(r);
15252
+ } = e, l = Ko(r);
15254
15253
  return /* @__PURE__ */ s.jsx(
15255
15254
  Mc,
15256
15255
  {
@@ -15272,10 +15271,10 @@ var Tm = "SelectPopperPosition", Ia = w.forwardRef((e, t) => {
15272
15271
  }
15273
15272
  );
15274
15273
  });
15275
- Ia.displayName = Tm;
15276
- var [Sm, ti] = Pn(un, {}), Qa = "SelectViewport", B6 = w.forwardRef(
15274
+ Qa.displayName = Tm;
15275
+ var [Sm, ti] = Pn(un, {}), Ba = "SelectViewport", B6 = w.forwardRef(
15277
15276
  (e, t) => {
15278
- const { __scopeSelect: r, nonce: n, ...o } = e, a = Er(Qa, r), l = ti(Qa, r), i = Ve(t, a.onViewportChange), c = w.useRef(0);
15277
+ const { __scopeSelect: r, nonce: n, ...o } = e, a = Er(Ba, r), l = ti(Ba, r), i = Ve(t, a.onViewportChange), c = w.useRef(0);
15279
15278
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
15280
15279
  /* @__PURE__ */ s.jsx(
15281
15280
  "style",
@@ -15286,8 +15285,8 @@ var [Sm, ti] = Pn(un, {}), Qa = "SelectViewport", B6 = w.forwardRef(
15286
15285
  nonce: n
15287
15286
  }
15288
15287
  ),
15289
- /* @__PURE__ */ s.jsx(Po.Slot, { scope: r, children: /* @__PURE__ */ s.jsx(
15290
- Me.div,
15288
+ /* @__PURE__ */ s.jsx(Ho.Slot, { scope: r, children: /* @__PURE__ */ s.jsx(
15289
+ Ee.div,
15291
15290
  {
15292
15291
  "data-radix-select-viewport": "",
15293
15292
  role: "presentation",
@@ -15325,18 +15324,18 @@ var [Sm, ti] = Pn(un, {}), Qa = "SelectViewport", B6 = w.forwardRef(
15325
15324
  ] });
15326
15325
  }
15327
15326
  );
15328
- B6.displayName = Qa;
15327
+ B6.displayName = Ba;
15329
15328
  var A6 = "SelectGroup", [Um, Cm] = Pn(A6), jm = w.forwardRef(
15330
15329
  (e, t) => {
15331
15330
  const { __scopeSelect: r, ...n } = e, o = nr();
15332
- return /* @__PURE__ */ s.jsx(Um, { scope: r, id: o, children: /* @__PURE__ */ s.jsx(Me.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
15331
+ return /* @__PURE__ */ s.jsx(Um, { scope: r, id: o, children: /* @__PURE__ */ s.jsx(Ee.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
15333
15332
  }
15334
15333
  );
15335
15334
  jm.displayName = A6;
15336
15335
  var _6 = "SelectLabel", $6 = w.forwardRef(
15337
15336
  (e, t) => {
15338
15337
  const { __scopeSelect: r, ...n } = e, o = Cm(_6, r);
15339
- return /* @__PURE__ */ s.jsx(Me.div, { id: o.id, ...n, ref: t });
15338
+ return /* @__PURE__ */ s.jsx(Ee.div, { id: o.id, ...n, ref: t });
15340
15339
  }
15341
15340
  );
15342
15341
  $6.displayName = _6;
@@ -15373,14 +15372,14 @@ var co = "SelectItem", [Rm, e0] = Pn(co), t0 = w.forwardRef(
15373
15372
  d((g) => g || ((L == null ? void 0 : L.textContent) ?? "").trim());
15374
15373
  }, []),
15375
15374
  children: /* @__PURE__ */ s.jsx(
15376
- Po.ItemSlot,
15375
+ Ho.ItemSlot,
15377
15376
  {
15378
15377
  scope: r,
15379
15378
  value: n,
15380
15379
  disabled: o,
15381
15380
  textValue: f,
15382
15381
  children: /* @__PURE__ */ s.jsx(
15383
- Me.div,
15382
+ Ee.div,
15384
15383
  {
15385
15384
  role: "option",
15386
15385
  "aria-labelledby": b,
@@ -15439,7 +15438,7 @@ var _n = "SelectItemText", zm = w.forwardRef(
15439
15438
  [c.disabled, c.value, m]
15440
15439
  ), { onNativeOptionAdd: b, onNativeOptionRemove: N } = u;
15441
15440
  return ct(() => (b(x), () => N(x)), [b, N, x]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
15442
- /* @__PURE__ */ s.jsx(Me.span, { id: c.textId, ...a, ref: v }),
15441
+ /* @__PURE__ */ s.jsx(Ee.span, { id: c.textId, ...a, ref: v }),
15443
15442
  c.isSelected && l.valueNode && !l.valueNodeHasChildren ? p1.createPortal(a.children, l.valueNode) : null
15444
15443
  ] });
15445
15444
  }
@@ -15448,12 +15447,12 @@ zm.displayName = _n;
15448
15447
  var r0 = "SelectItemIndicator", n0 = w.forwardRef(
15449
15448
  (e, t) => {
15450
15449
  const { __scopeSelect: r, ...n } = e;
15451
- return e0(r0, r).isSelected ? /* @__PURE__ */ s.jsx(Me.span, { "aria-hidden": !0, ...n, ref: t }) : null;
15450
+ return e0(r0, r).isSelected ? /* @__PURE__ */ s.jsx(Ee.span, { "aria-hidden": !0, ...n, ref: t }) : null;
15452
15451
  }
15453
15452
  );
15454
15453
  n0.displayName = r0;
15455
- var Ba = "SelectScrollUpButton", o0 = w.forwardRef((e, t) => {
15456
- const r = Er(Ba, e.__scopeSelect), n = ti(Ba, e.__scopeSelect), [o, a] = w.useState(!1), l = Ve(t, n.onScrollButtonChange);
15454
+ var Aa = "SelectScrollUpButton", o0 = w.forwardRef((e, t) => {
15455
+ const r = Er(Aa, e.__scopeSelect), n = ti(Aa, e.__scopeSelect), [o, a] = w.useState(!1), l = Ve(t, n.onScrollButtonChange);
15457
15456
  return ct(() => {
15458
15457
  if (r.viewport && r.isPositioned) {
15459
15458
  let i = function() {
@@ -15475,9 +15474,9 @@ var Ba = "SelectScrollUpButton", o0 = w.forwardRef((e, t) => {
15475
15474
  }
15476
15475
  ) : null;
15477
15476
  });
15478
- o0.displayName = Ba;
15479
- var Aa = "SelectScrollDownButton", a0 = w.forwardRef((e, t) => {
15480
- const r = Er(Aa, e.__scopeSelect), n = ti(Aa, e.__scopeSelect), [o, a] = w.useState(!1), l = Ve(t, n.onScrollButtonChange);
15477
+ o0.displayName = Aa;
15478
+ var _a = "SelectScrollDownButton", a0 = w.forwardRef((e, t) => {
15479
+ const r = Er(_a, e.__scopeSelect), n = ti(_a, e.__scopeSelect), [o, a] = w.useState(!1), l = Ve(t, n.onScrollButtonChange);
15481
15480
  return ct(() => {
15482
15481
  if (r.viewport && r.isPositioned) {
15483
15482
  let i = function() {
@@ -15499,9 +15498,9 @@ var Aa = "SelectScrollDownButton", a0 = w.forwardRef((e, t) => {
15499
15498
  }
15500
15499
  ) : null;
15501
15500
  });
15502
- a0.displayName = Aa;
15501
+ a0.displayName = _a;
15503
15502
  var s0 = w.forwardRef((e, t) => {
15504
- const { __scopeSelect: r, onAutoScroll: n, ...o } = e, a = Er("SelectScrollButton", r), l = w.useRef(null), i = Ho(r), c = w.useCallback(() => {
15503
+ const { __scopeSelect: r, onAutoScroll: n, ...o } = e, a = Er("SelectScrollButton", r), l = w.useRef(null), i = Zo(r), c = w.useCallback(() => {
15505
15504
  l.current !== null && (window.clearInterval(l.current), l.current = null);
15506
15505
  }, []);
15507
15506
  return w.useEffect(() => () => c(), [c]), ct(() => {
@@ -15509,7 +15508,7 @@ var s0 = w.forwardRef((e, t) => {
15509
15508
  const u = i().find((d) => d.ref.current === document.activeElement);
15510
15509
  (f = u == null ? void 0 : u.ref.current) == null || f.scrollIntoView({ block: "nearest" });
15511
15510
  }, [i]), /* @__PURE__ */ s.jsx(
15512
- Me.div,
15511
+ Ee.div,
15513
15512
  {
15514
15513
  "aria-hidden": !0,
15515
15514
  ...o,
@@ -15530,17 +15529,17 @@ var s0 = w.forwardRef((e, t) => {
15530
15529
  }), Pm = "SelectSeparator", i0 = w.forwardRef(
15531
15530
  (e, t) => {
15532
15531
  const { __scopeSelect: r, ...n } = e;
15533
- return /* @__PURE__ */ s.jsx(Me.div, { "aria-hidden": !0, ...n, ref: t });
15532
+ return /* @__PURE__ */ s.jsx(Ee.div, { "aria-hidden": !0, ...n, ref: t });
15534
15533
  }
15535
15534
  );
15536
15535
  i0.displayName = Pm;
15537
- var _a = "SelectArrow", Hm = w.forwardRef(
15536
+ var $a = "SelectArrow", Hm = w.forwardRef(
15538
15537
  (e, t) => {
15539
- const { __scopeSelect: r, ...n } = e, o = Zo(r), a = Dr(_a, r), l = Er(_a, r);
15538
+ const { __scopeSelect: r, ...n } = e, o = Ko(r), a = Dr($a, r), l = Er($a, r);
15540
15539
  return a.open && l.position === "popper" ? /* @__PURE__ */ s.jsx(Ic, { ...o, ...n, ref: t }) : null;
15541
15540
  }
15542
15541
  );
15543
- Hm.displayName = _a;
15542
+ Hm.displayName = $a;
15544
15543
  var Zm = "SelectBubbleInput", l0 = w.forwardRef(
15545
15544
  ({ __scopeSelect: e, value: t, ...r }, n) => {
15546
15545
  const o = w.useRef(null), a = Ve(n, o), l = bm(t);
@@ -15556,7 +15555,7 @@ var Zm = "SelectBubbleInput", l0 = w.forwardRef(
15556
15555
  f.call(i, t), i.dispatchEvent(d);
15557
15556
  }
15558
15557
  }, [l, t]), /* @__PURE__ */ s.jsx(
15559
- Me.select,
15558
+ Ee.select,
15560
15559
  {
15561
15560
  ...r,
15562
15561
  style: { ...Qc, ...r.style },
@@ -15863,7 +15862,7 @@ const Qm = ({
15863
15862
  if (r(i.target.value), !i.target.value) return n("");
15864
15863
  if (!ui(i.target.value, { strict: !1 }))
15865
15864
  return n("Please enter a valid wallet address");
15866
- if (l != null && l.evmWallet && Do(i.target.value) === Do(l == null ? void 0 : l.evmWallet))
15865
+ if (l != null && l.evmWallet && Eo(i.target.value) === Eo(l == null ? void 0 : l.evmWallet))
15867
15866
  return n("You cannot send funds to your own wallet");
15868
15867
  n("");
15869
15868
  },
@@ -15876,13 +15875,13 @@ const Qm = ({
15876
15875
  ) })
15877
15876
  ] }),
15878
15877
  footer: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
15879
- Ee,
15878
+ Me,
15880
15879
  {
15881
15880
  variant: "tertiary",
15882
15881
  className: "gw-w-full gw-mt-4",
15883
15882
  disabled: !o || !!a,
15884
15883
  onClick: () => {
15885
- r(Do(o)), t(Lt.ENTER_AMOUNT);
15884
+ r(Eo(o)), t(Lt.ENTER_AMOUNT);
15886
15885
  },
15887
15886
  children: "Continue"
15888
15887
  }
@@ -15926,7 +15925,7 @@ Please try again.` }),
15926
15925
  },
15927
15926
  r
15928
15927
  ) : null }),
15929
- /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
15928
+ /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
15930
15929
  ] }) })
15931
15930
  ] })
15932
15931
  }
@@ -16007,7 +16006,7 @@ Please try again.` }),
16007
16006
  },
16008
16007
  t
16009
16008
  ) }),
16010
- /* @__PURE__ */ s.jsx(Ee, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
16009
+ /* @__PURE__ */ s.jsx(Me, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
16011
16010
  ] }),
16012
16011
  footerCols: !0,
16013
16012
  mainFooter: !1
@@ -16064,7 +16063,7 @@ sent to ${Ot(r.receiver_address)}` }),
16064
16063
  ] })
16065
16064
  ] })
16066
16065
  ] }),
16067
- /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
16066
+ /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
16068
16067
  ] }) })
16069
16068
  ] })
16070
16069
  }
@@ -16076,7 +16075,7 @@ sent to ${Ot(r.receiver_address)}` }),
16076
16075
  };
16077
16076
  function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16078
16077
  var Fe, ht;
16079
- const { user: o, sendTransaction: a } = st(), { glyphApiFetch: l } = Fo(), i = Qt(), [c, u] = fe(""), [f, d] = fe(null), { refreshBalances: v, balances: m } = W1(), x = wt(() => gd(i || $n.id), [i]), [b, N] = fe(Lt.ENTER_ADDRESS), [W, L] = fe(Hn), g = wt(
16078
+ const { user: o, sendTransaction: a } = st(), { glyphApiFetch: l } = To(), i = Qt(), [c, u] = fe(""), [f, d] = fe(null), { refreshBalances: v, balances: m } = W1(), x = wt(() => gd(i || $n.id), [i]), [b, N] = fe(Lt.ENTER_ADDRESS), [W, L] = fe(Hn), g = wt(
16080
16079
  () => {
16081
16080
  var re;
16082
16081
  return (re = m == null ? void 0 : m.tokens) == null ? void 0 : re.find((le) => le.address === Hn);
@@ -16105,7 +16104,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16105
16104
  to: c,
16106
16105
  value: h
16107
16106
  }) : Ae = await x.estimateContractGas({
16108
- abi: Eo,
16107
+ abi: Mo,
16109
16108
  functionName: "transfer",
16110
16109
  args: [c, h],
16111
16110
  account: o == null ? void 0 : o.evmWallet,
@@ -16129,7 +16128,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16129
16128
  _e = j ? BigInt(y.valueInWei || 0) : bd(O, y.decimals || 18);
16130
16129
  }
16131
16130
  const X = Te / 2n, p = U1(
16132
- +Mo(_e, y.decimals || 18),
16131
+ +Io(_e, y.decimals || 18),
16133
16132
  y.displayDecimals
16134
16133
  );
16135
16134
  K({
@@ -16142,9 +16141,9 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16142
16141
  receivable_amount_in_currency: U1(
16143
16142
  p * +(y.rateInCurrency || 0)
16144
16143
  ),
16145
- estimated_fees_amount: Mo(tt, (g == null ? void 0 : g.decimals) || 18),
16144
+ estimated_fees_amount: Io(tt, (g == null ? void 0 : g.decimals) || 18),
16146
16145
  estimated_fees_amount_in_currency: U1(
16147
- +Mo(tt, (g == null ? void 0 : g.decimals) || 18) * +((g == null ? void 0 : g.rateInCurrency) || 0)
16146
+ +Io(tt, (g == null ? void 0 : g.decimals) || 18) * +((g == null ? void 0 : g.rateInCurrency) || 0)
16148
16147
  ),
16149
16148
  currency: (g == null ? void 0 : g.currency) || "",
16150
16149
  in_amount: O.toString(),
@@ -16201,7 +16200,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16201
16200
  Ue(() => (b === Lt.END && ie === "SUCCESS" && n(xr.SUCCESS), b === Lt.END && ie === "FAILED" && n(xr.ERROR), () => {
16202
16201
  n(void 0);
16203
16202
  }), [n, ie, b]);
16204
- const Ye = O > 0 && O <= Number((y == null ? void 0 : y.value) || "0"), pt = y != null && y.symbol && Ua[y.symbol] || e1;
16203
+ const Ye = O > 0 && O <= Number((y == null ? void 0 : y.value) || "0"), pt = y != null && y.symbol && Ca[y.symbol] || e1;
16205
16204
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
16206
16205
  b === Lt.ENTER_ADDRESS && /* @__PURE__ */ s.jsx(
16207
16206
  Bm,
@@ -16250,7 +16249,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16250
16249
  /* @__PURE__ */ s.jsx(g0, { children: (ht = (Fe = m == null ? void 0 : m.tokens) == null ? void 0 : Fe.map) == null ? void 0 : ht.call(Fe, (re, le) => {
16251
16250
  var Ae;
16252
16251
  if (re != null && re.hide) return null;
16253
- const Te = Ua[re.symbol] || e1;
16252
+ const Te = Ca[re.symbol] || e1;
16254
16253
  return /* @__PURE__ */ s.jsxs("div", { children: [
16255
16254
  /* @__PURE__ */ s.jsx(X0, { value: re.address, className: "gw-w-full", children: /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-p-1 gw-gap-4", children: [
16256
16255
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-3", children: [
@@ -16343,7 +16342,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16343
16342
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-center gw-items-center gw-mt-4 gw-gap-4", children: [
16344
16343
  (y == null ? void 0 : y.rateInCurrency) && /* @__PURE__ */ s.jsx("div", { className: "gw-text-brand-gray-600", children: mt(+(y == null ? void 0 : y.rateInCurrency) * +q, y == null ? void 0 : y.currency) }),
16345
16344
  /* @__PURE__ */ s.jsx(
16346
- Ee,
16345
+ Me,
16347
16346
  {
16348
16347
  variant: "tertiary",
16349
16348
  size: "sm",
@@ -16407,7 +16406,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16407
16406
  ] }),
16408
16407
  /* @__PURE__ */ s.jsx("div", { className: "gw-text-destructive gw-typography-caption gw-text-center gw-mt-1 gw-h-3", children: D || null }),
16409
16408
  /* @__PURE__ */ s.jsxs(
16410
- Ee,
16409
+ Me,
16411
16410
  {
16412
16411
  variant: "default",
16413
16412
  className: "gw-w-full gw-mt-2",
@@ -16431,7 +16430,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16431
16430
  }), Ae = typeof re == "object" ? re.hash : re;
16432
16431
  else {
16433
16432
  const _e = await x.simulateContract({
16434
- abi: Eo,
16433
+ abi: Mo,
16435
16434
  functionName: "transfer",
16436
16435
  account: o == null ? void 0 : o.evmWallet,
16437
16436
  address: W,
@@ -16443,7 +16442,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16443
16442
  });
16444
16443
  try {
16445
16444
  const X = W5({
16446
- abi: Eo,
16445
+ abi: Mo,
16447
16446
  functionName: "transfer",
16448
16447
  args: [c, U == null ? void 0 : U.receivable_amount]
16449
16448
  });
@@ -16632,13 +16631,13 @@ const L2 = Kr(
16632
16631
  q0.displayName = "GlyphWidget";
16633
16632
  const yy = Kr(q0), V0 = () => {
16634
16633
  const { logout: e } = st();
16635
- return /* @__PURE__ */ s.jsx(Ee, { className: "gw-w-full", variant: "outline", onClick: e, children: "Logout" });
16634
+ return /* @__PURE__ */ s.jsx(Me, { className: "gw-w-full", variant: "outline", onClick: e, children: "Logout" });
16636
16635
  };
16637
16636
  V0.displayName = "LogoutButton";
16638
16637
  const xy = Kr(V0), O0 = () => {
16639
16638
  const { glyphUrl: e } = st(), t = new URL("/", e).toString();
16640
16639
  return e ? /* @__PURE__ */ s.jsx(
16641
- Ee,
16640
+ Me,
16642
16641
  {
16643
16642
  variant: "outline",
16644
16643
  size: "login",
@@ -16651,7 +16650,7 @@ const xy = Kr(V0), O0 = () => {
16651
16650
  /* @__PURE__ */ s.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Visit Glyph Portal" })
16652
16651
  ] })
16653
16652
  }
16654
- ) : /* @__PURE__ */ s.jsx(Ee, { variant: "outline", size: "login", disabled: !0, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
16653
+ ) : /* @__PURE__ */ s.jsx(Me, { variant: "outline", size: "login", disabled: !0, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
16655
16654
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
16656
16655
  /* @__PURE__ */ s.jsx(N1, { className: "gw-size-4 gw-animate-spin" })
16657
16656
  ] }) });
@@ -16660,7 +16659,7 @@ O0.displayName = "SignUpButton";
16660
16659
  const Ny = Kr(O0), Qr = dn("GlyphData"), cv = ({ children: e }) => {
16661
16660
  const t = wr(y1);
16662
16661
  if (!t) throw new Error("GlyphUserDataProvider must be used within GlyphProvider");
16663
- const { ready: r, authenticated: n } = t, { glyphApiFetch: o } = Fo(), a = Qt(), l = _2(a), [i, c] = fe(null), [u, f] = fe(!1), [d, v] = fe(0), {
16662
+ const { ready: r, authenticated: n } = t, { glyphApiFetch: o } = To(), a = Qt(), l = _2(a), [i, c] = fe(null), [u, f] = fe(!1), [d, v] = fe(0), {
16664
16663
  data: m,
16665
16664
  refetch: x,
16666
16665
  error: b
@@ -16847,10 +16846,10 @@ const dv = dn("GlyphProvider"), fv = $2(() => import("./PrivyStrategy.js")), pv
16847
16846
  };
16848
16847
  }, gy = Kr(() => {
16849
16848
  const { connect: e } = hv(), { isConnected: t, isConnecting: r } = x5();
16850
- return t ? /* @__PURE__ */ s.jsx(Dl, {}) : r ? /* @__PURE__ */ s.jsx(Ee, { variant: "default", size: "login", disabled: !0, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
16849
+ return t ? /* @__PURE__ */ s.jsx(Dl, {}) : r ? /* @__PURE__ */ s.jsx(Me, { variant: "default", size: "login", disabled: !0, children: /* @__PURE__ */ s.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
16851
16850
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
16852
16851
  /* @__PURE__ */ s.jsx(N1, { className: "gw-size-4 gw-animate-spin" })
16853
- ] }) }) : /* @__PURE__ */ s.jsx(Ee, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
16852
+ ] }) }) : /* @__PURE__ */ s.jsx(Me, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ s.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
16854
16853
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
16855
16854
  /* @__PURE__ */ s.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Connect to Glyph" })
16856
16855
  ] }) });
@@ -16925,7 +16924,7 @@ class bv extends c1 {
16925
16924
  });
16926
16925
  }
16927
16926
  }
16928
- class ha extends c1 {
16927
+ class ma extends c1 {
16929
16928
  constructor() {
16930
16929
  super("Provider not found."), Object.defineProperty(this, "name", {
16931
16930
  enumerable: !0,
@@ -16944,7 +16943,7 @@ const bn = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.
16944
16943
  function xv(e) {
16945
16944
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
16946
16945
  }
16947
- function $a(e) {
16946
+ function es(e) {
16948
16947
  if (!Number.isSafeInteger(e) || e < 0)
16949
16948
  throw new Error("positive integer expected, got " + e);
16950
16949
  }
@@ -16957,7 +16956,7 @@ function q1(e, ...t) {
16957
16956
  function Nv(e) {
16958
16957
  if (typeof e != "function" || typeof e.create != "function")
16959
16958
  throw new Error("Hash should be wrapped by utils.createHasher");
16960
- $a(e.outputLen), $a(e.blockLen);
16959
+ es(e.outputLen), es(e.blockLen);
16961
16960
  }
16962
16961
  function fo(e, t = !0) {
16963
16962
  if (e.destroyed)
@@ -16975,7 +16974,7 @@ function po(...e) {
16975
16974
  for (let t = 0; t < e.length; t++)
16976
16975
  e[t].fill(0);
16977
16976
  }
16978
- function ma(e) {
16977
+ function va(e) {
16979
16978
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
16980
16979
  }
16981
16980
  function tr(e, t) {
@@ -17029,7 +17028,7 @@ function Ov(e, t, r) {
17029
17028
  }
17030
17029
  class Fv extends C0 {
17031
17030
  constructor(t, r, n, o) {
17032
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = o, this.buffer = new Uint8Array(t), this.view = ma(this.buffer);
17031
+ super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = o, this.buffer = new Uint8Array(t), this.view = va(this.buffer);
17033
17032
  }
17034
17033
  update(t) {
17035
17034
  fo(this), t = ri(t), q1(t);
@@ -17037,7 +17036,7 @@ class Fv extends C0 {
17037
17036
  for (let l = 0; l < a; ) {
17038
17037
  const i = Math.min(o - this.pos, a - l);
17039
17038
  if (i === o) {
17040
- const c = ma(t);
17039
+ const c = va(t);
17041
17040
  for (; o <= a - l; l += o)
17042
17041
  this.process(c, l);
17043
17042
  continue;
@@ -17054,7 +17053,7 @@ class Fv extends C0 {
17054
17053
  for (let d = l; d < o; d++)
17055
17054
  r[d] = 0;
17056
17055
  qv(n, o - 8, BigInt(this.length * 8), a), this.process(n, 0);
17057
- const i = ma(t), c = this.outputLen;
17056
+ const i = va(t), c = this.outputLen;
17058
17057
  if (c % 4)
17059
17058
  throw new Error("_sha2: outputLen should be aligned to 32bit");
17060
17059
  const u = c / 4, f = this.get();
@@ -17228,7 +17227,7 @@ class j0 extends C0 {
17228
17227
  const R0 = (e, t, r) => new j0(e, t).update(r).digest();
17229
17228
  R0.create = (e, t) => new j0(e, t);
17230
17229
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
17231
- const ni = /* @__PURE__ */ BigInt(0), es = /* @__PURE__ */ BigInt(1);
17230
+ const ni = /* @__PURE__ */ BigInt(0), ts = /* @__PURE__ */ BigInt(1);
17232
17231
  function V1(e) {
17233
17232
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
17234
17233
  }
@@ -17331,9 +17330,9 @@ function mo(...e) {
17331
17330
  }
17332
17331
  return r;
17333
17332
  }
17334
- const va = (e) => typeof e == "bigint" && ni <= e;
17333
+ const ba = (e) => typeof e == "bigint" && ni <= e;
17335
17334
  function ai(e, t, r) {
17336
- return va(e) && va(t) && va(r) && t <= e && e < r;
17335
+ return ba(e) && ba(t) && ba(r) && t <= e && e < r;
17337
17336
  }
17338
17337
  function Wn(e, t, r, n) {
17339
17338
  if (!ai(t, r, n))
@@ -17341,11 +17340,11 @@ function Wn(e, t, r, n) {
17341
17340
  }
17342
17341
  function jv(e) {
17343
17342
  let t;
17344
- for (t = 0; e > ni; e >>= es, t += 1)
17343
+ for (t = 0; e > ni; e >>= ts, t += 1)
17345
17344
  ;
17346
17345
  return t;
17347
17346
  }
17348
- const Ko = (e) => (es << BigInt(e)) - es, ba = (e) => new Uint8Array(e), S2 = (e) => Uint8Array.from(e);
17347
+ const ko = (e) => (ts << BigInt(e)) - ts, ya = (e) => new Uint8Array(e), S2 = (e) => Uint8Array.from(e);
17349
17348
  function Rv(e, t, r) {
17350
17349
  if (typeof e != "number" || e < 2)
17351
17350
  throw new Error("hashLen must be a number");
@@ -17353,10 +17352,10 @@ function Rv(e, t, r) {
17353
17352
  throw new Error("qByteLen must be a number");
17354
17353
  if (typeof r != "function")
17355
17354
  throw new Error("hmacFn must be a function");
17356
- let n = ba(e), o = ba(e), a = 0;
17355
+ let n = ya(e), o = ya(e), a = 0;
17357
17356
  const l = () => {
17358
17357
  n.fill(1), o.fill(0), a = 0;
17359
- }, i = (...d) => r(o, n, ...d), c = (d = ba(0)) => {
17358
+ }, i = (...d) => r(o, n, ...d), c = (d = ya(0)) => {
17360
17359
  o = i(S2([0]), d), n = i(), d.length !== 0 && (o = i(S2([1]), d), n = i());
17361
17360
  }, u = () => {
17362
17361
  if (a++ >= 1e3)
@@ -17389,7 +17388,7 @@ const zv = {
17389
17388
  field: (e, t) => t.Fp.isValid(e),
17390
17389
  hash: (e) => typeof e == "function" && Number.isSafeInteger(e.outputLen)
17391
17390
  };
17392
- function ko(e, t, r = {}) {
17391
+ function Yo(e, t, r = {}) {
17393
17392
  const n = (o, a, l) => {
17394
17393
  const i = zv[a];
17395
17394
  if (typeof i != "function")
@@ -17426,7 +17425,7 @@ function Ht(e, t, r) {
17426
17425
  n *= n, n %= r;
17427
17426
  return n;
17428
17427
  }
17429
- function ts(e, t) {
17428
+ function rs(e, t) {
17430
17429
  if (e === Vt)
17431
17430
  throw new Error("invert: expected non-zero number");
17432
17431
  if (t <= Vt)
@@ -17515,7 +17514,7 @@ function Yv(e) {
17515
17514
  BYTES: "isSafeInteger",
17516
17515
  BITS: "isSafeInteger"
17517
17516
  }, r = kv.reduce((n, o) => (n[o] = "function", n), t);
17518
- return ko(e, r);
17517
+ return Yo(e, r);
17519
17518
  }
17520
17519
  function Gv(e, t, r) {
17521
17520
  if (r < Vt)
@@ -17540,7 +17539,7 @@ function C2(e, t) {
17540
17539
  return o ? 1 : a ? 0 : -1;
17541
17540
  }
17542
17541
  function D0(e, t) {
17543
- t !== void 0 && $a(t);
17542
+ t !== void 0 && es(t);
17544
17543
  const r = t !== void 0 ? t : e.toString(2).length, n = Math.ceil(r / 8);
17545
17544
  return { nBitLength: r, nByteLength: n };
17546
17545
  }
@@ -17556,7 +17555,7 @@ function si(e, t, r = !1, n = {}) {
17556
17555
  isLE: r,
17557
17556
  BITS: o,
17558
17557
  BYTES: a,
17559
- MASK: Ko(o),
17558
+ MASK: ko(o),
17560
17559
  ZERO: Vt,
17561
17560
  ONE: gt,
17562
17561
  create: (c) => qt(c, e),
@@ -17574,13 +17573,13 @@ function si(e, t, r = !1, n = {}) {
17574
17573
  sub: (c, u) => qt(c - u, e),
17575
17574
  mul: (c, u) => qt(c * u, e),
17576
17575
  pow: (c, u) => Gv(i, c, u),
17577
- div: (c, u) => qt(c * ts(u, e), e),
17576
+ div: (c, u) => qt(c * rs(u, e), e),
17578
17577
  // Same as above, but doesn't normalize
17579
17578
  sqrN: (c) => c * c,
17580
17579
  addN: (c, u) => c + u,
17581
17580
  subN: (c, u) => c - u,
17582
17581
  mulN: (c, u) => c * u,
17583
- inv: (c) => ts(c, e),
17582
+ inv: (c) => rs(c, e),
17584
17583
  sqrt: n.sqrt || ((c) => (l || (l = Kv(e)), l(i, c))),
17585
17584
  toBytes: (c) => r ? Z0(c, a) : O1(c, a),
17586
17585
  fromBytes: (c) => {
@@ -17614,8 +17613,8 @@ function Jv(e, t, r = !1) {
17614
17613
  return r ? Z0(i, o) : O1(i, o);
17615
17614
  }
17616
17615
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
17617
- const j2 = BigInt(0), rs = BigInt(1);
17618
- function ya(e, t) {
17616
+ const j2 = BigInt(0), ns = BigInt(1);
17617
+ function xa(e, t) {
17619
17618
  const r = t.negate();
17620
17619
  return e ? r : t;
17621
17620
  }
@@ -17623,15 +17622,15 @@ function I0(e, t) {
17623
17622
  if (!Number.isSafeInteger(e) || e <= 0 || e > t)
17624
17623
  throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
17625
17624
  }
17626
- function xa(e, t) {
17625
+ function Na(e, t) {
17627
17626
  I0(e, t);
17628
- const r = Math.ceil(t / e) + 1, n = 2 ** (e - 1), o = 2 ** e, a = Ko(e), l = BigInt(e);
17627
+ const r = Math.ceil(t / e) + 1, n = 2 ** (e - 1), o = 2 ** e, a = ko(e), l = BigInt(e);
17629
17628
  return { windows: r, windowSize: n, mask: a, maxNumber: o, shiftBy: l };
17630
17629
  }
17631
17630
  function R2(e, t, r) {
17632
17631
  const { windowSize: n, mask: o, maxNumber: a, shiftBy: l } = r;
17633
17632
  let i = Number(e & o), c = e >> l;
17634
- i > n && (i -= a, c += rs);
17633
+ i > n && (i -= a, c += ns);
17635
17634
  const u = t * n, f = u + Math.abs(i) - 1, d = i === 0, v = i < 0, m = t % 2 !== 0;
17636
17635
  return { nextN: c, offset: f, isZero: d, isNeg: v, isNegF: m, offsetF: u };
17637
17636
  }
@@ -17651,21 +17650,21 @@ function Ev(e, t) {
17651
17650
  throw new Error("invalid scalar at index " + n);
17652
17651
  });
17653
17652
  }
17654
- const Na = /* @__PURE__ */ new WeakMap(), Q0 = /* @__PURE__ */ new WeakMap();
17655
- function wa(e) {
17653
+ const wa = /* @__PURE__ */ new WeakMap(), Q0 = /* @__PURE__ */ new WeakMap();
17654
+ function ga(e) {
17656
17655
  return Q0.get(e) || 1;
17657
17656
  }
17658
17657
  function Mv(e, t) {
17659
17658
  return {
17660
- constTimeNegate: ya,
17659
+ constTimeNegate: xa,
17661
17660
  hasPrecomputes(r) {
17662
- return wa(r) !== 1;
17661
+ return ga(r) !== 1;
17663
17662
  },
17664
17663
  // non-const time multiplication ladder
17665
17664
  unsafeLadder(r, n, o = e.ZERO) {
17666
17665
  let a = r;
17667
17666
  for (; n > j2; )
17668
- n & rs && (o = o.add(a)), a = a.double(), n >>= rs;
17667
+ n & ns && (o = o.add(a)), a = a.double(), n >>= ns;
17669
17668
  return o;
17670
17669
  },
17671
17670
  /**
@@ -17681,7 +17680,7 @@ function Mv(e, t) {
17681
17680
  * @returns precomputed point tables flattened to a single array
17682
17681
  */
17683
17682
  precomputeWindow(r, n) {
17684
- const { windows: o, windowSize: a } = xa(n, t), l = [];
17683
+ const { windows: o, windowSize: a } = Na(n, t), l = [];
17685
17684
  let i = r, c = i;
17686
17685
  for (let u = 0; u < o; u++) {
17687
17686
  c = i, l.push(c);
@@ -17700,10 +17699,10 @@ function Mv(e, t) {
17700
17699
  */
17701
17700
  wNAF(r, n, o) {
17702
17701
  let a = e.ZERO, l = e.BASE;
17703
- const i = xa(r, t);
17702
+ const i = Na(r, t);
17704
17703
  for (let c = 0; c < i.windows; c++) {
17705
17704
  const { nextN: u, offset: f, isZero: d, isNeg: v, isNegF: m, offsetF: x } = R2(o, c, i);
17706
- o = u, d ? l = l.add(ya(m, n[x])) : a = a.add(ya(v, n[f]));
17705
+ o = u, d ? l = l.add(xa(m, n[x])) : a = a.add(xa(v, n[f]));
17707
17706
  }
17708
17707
  return { p: a, f: l };
17709
17708
  },
@@ -17716,7 +17715,7 @@ function Mv(e, t) {
17716
17715
  * @returns point
17717
17716
  */
17718
17717
  wNAFUnsafe(r, n, o, a = e.ZERO) {
17719
- const l = xa(r, t);
17718
+ const l = Na(r, t);
17720
17719
  for (let i = 0; i < l.windows && o !== j2; i++) {
17721
17720
  const { nextN: c, offset: u, isZero: f, isNeg: d } = R2(o, i, l);
17722
17721
  if (o = c, !f) {
@@ -17727,22 +17726,22 @@ function Mv(e, t) {
17727
17726
  return a;
17728
17727
  },
17729
17728
  getPrecomputes(r, n, o) {
17730
- let a = Na.get(n);
17731
- return a || (a = this.precomputeWindow(n, r), r !== 1 && Na.set(n, o(a))), a;
17729
+ let a = wa.get(n);
17730
+ return a || (a = this.precomputeWindow(n, r), r !== 1 && wa.set(n, o(a))), a;
17732
17731
  },
17733
17732
  wNAFCached(r, n, o) {
17734
- const a = wa(r);
17733
+ const a = ga(r);
17735
17734
  return this.wNAF(a, this.getPrecomputes(a, r, o), n);
17736
17735
  },
17737
17736
  wNAFCachedUnsafe(r, n, o, a) {
17738
- const l = wa(r);
17737
+ const l = ga(r);
17739
17738
  return l === 1 ? this.unsafeLadder(r, n, a) : this.wNAFUnsafe(l, this.getPrecomputes(l, r, o), n, a);
17740
17739
  },
17741
17740
  // We calculate precomputes for elliptic curve point multiplication
17742
17741
  // using windowed method. This specifies window size and
17743
17742
  // stores precomputed values. Usually only base point would be precomputed.
17744
17743
  setWindowSize(r, n) {
17745
- I0(n, t), Q0.set(r, n), Na.delete(r);
17744
+ I0(n, t), Q0.set(r, n), wa.delete(r);
17746
17745
  }
17747
17746
  };
17748
17747
  }
@@ -17754,7 +17753,7 @@ function Iv(e, t, r, n) {
17754
17753
  const l = e.ZERO, i = jv(BigInt(o));
17755
17754
  let c = 1;
17756
17755
  i > 12 ? c = i - 3 : i > 4 ? c = i - 2 : i > 0 && (c = 2);
17757
- const u = Ko(c), f = new Array(Number(u) + 1).fill(l), d = Math.floor((t.BITS - 1) / c) * c;
17756
+ const u = ko(c), f = new Array(Number(u) + 1).fill(l), d = Math.floor((t.BITS - 1) / c) * c;
17758
17757
  let v = l;
17759
17758
  for (let m = d; m >= 0; m -= c) {
17760
17759
  f.fill(l);
@@ -17772,7 +17771,7 @@ function Iv(e, t, r, n) {
17772
17771
  return v;
17773
17772
  }
17774
17773
  function B0(e) {
17775
- return Yv(e.Fp), ko(e, {
17774
+ return Yv(e.Fp), Yo(e, {
17776
17775
  n: "bigint",
17777
17776
  h: "bigint",
17778
17777
  Gx: "field",
@@ -17792,7 +17791,7 @@ function z2(e) {
17792
17791
  }
17793
17792
  function Qv(e) {
17794
17793
  const t = B0(e);
17795
- ko(t, {
17794
+ Yo(t, {
17796
17795
  a: "field",
17797
17796
  b: "field"
17798
17797
  }, {
@@ -17906,12 +17905,12 @@ const mr = {
17906
17905
  return t.encode(48, a);
17907
17906
  }
17908
17907
  };
17909
- function ga(e, t) {
17908
+ function Xa(e, t) {
17910
17909
  return d1(O1(e, t));
17911
17910
  }
17912
17911
  const yr = BigInt(0), dt = BigInt(1);
17913
17912
  BigInt(2);
17914
- const Xa = BigInt(3), Av = BigInt(4);
17913
+ const La = BigInt(3), Av = BigInt(4);
17915
17914
  function _v(e) {
17916
17915
  const t = Qv(e), { Fp: r } = t, n = si(t.n, t.nBitLength), o = t.toBytes || ((g, y, q) => {
17917
17916
  const F = y.toAffine();
@@ -17930,7 +17929,7 @@ function _v(e) {
17930
17929
  }
17931
17930
  if (!i(t.Gx, t.Gy))
17932
17931
  throw new Error("bad curve params: generator point");
17933
- const c = r.mul(r.pow(t.a, Xa), Av), u = r.mul(r.sqr(t.b), BigInt(27));
17932
+ const c = r.mul(r.pow(t.a, La), Av), u = r.mul(r.sqr(t.b), BigInt(27));
17934
17933
  if (r.is0(r.add(c, u)))
17935
17934
  throw new Error("bad curve params: a or b");
17936
17935
  function f(g) {
@@ -18068,7 +18067,7 @@ function _v(e) {
18068
18067
  // https://eprint.iacr.org/2015/1060, algorithm 3
18069
18068
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
18070
18069
  double() {
18071
- const { a: y, b: q } = t, F = r.mul(q, Xa), { px: O, py: R, pz: j } = this;
18070
+ const { a: y, b: q } = t, F = r.mul(q, La), { px: O, py: R, pz: j } = this;
18072
18071
  let Y = r.ZERO, U = r.ZERO, K = r.ZERO, H = r.mul(O, O), E = r.mul(R, R), P = r.mul(j, j), C = r.mul(O, R);
18073
18072
  return C = r.add(C, C), K = r.mul(O, j), K = r.add(K, K), Y = r.mul(y, K), U = r.mul(F, P), U = r.add(Y, U), Y = r.sub(E, U), U = r.add(E, U), U = r.mul(Y, U), Y = r.mul(C, Y), K = r.mul(F, K), P = r.mul(y, P), C = r.sub(H, P), C = r.mul(y, C), C = r.add(C, K), K = r.add(H, H), H = r.add(K, H), H = r.add(H, P), H = r.mul(H, C), U = r.add(U, H), P = r.mul(R, j), P = r.add(P, P), H = r.mul(P, C), Y = r.sub(Y, H), K = r.mul(P, E), K = r.add(K, K), K = r.add(K, K), new b(Y, U, K);
18074
18073
  }
@@ -18080,7 +18079,7 @@ function _v(e) {
18080
18079
  v(y);
18081
18080
  const { px: q, py: F, pz: O } = this, { px: R, py: j, pz: Y } = y;
18082
18081
  let U = r.ZERO, K = r.ZERO, H = r.ZERO;
18083
- const E = t.a, P = r.mul(t.b, Xa);
18082
+ const E = t.a, P = r.mul(t.b, La);
18084
18083
  let C = r.mul(q, R), Z = r.mul(F, j), G = r.mul(O, Y), J = r.add(q, F), Q = r.add(R, j);
18085
18084
  J = r.mul(J, Q), Q = r.add(C, Z), J = r.sub(J, Q), Q = r.add(q, O);
18086
18085
  let D = r.add(R, Y);
@@ -18185,7 +18184,7 @@ function _v(e) {
18185
18184
  }
18186
18185
  function $v(e) {
18187
18186
  const t = B0(e);
18188
- return ko(t, {
18187
+ return Yo(t, {
18189
18188
  hash: "hash",
18190
18189
  hmac: "function",
18191
18190
  randomBytes: "function"
@@ -18201,7 +18200,7 @@ function eb(e) {
18201
18200
  return qt(P, n);
18202
18201
  }
18203
18202
  function u(P) {
18204
- return ts(P, n);
18203
+ return rs(P, n);
18205
18204
  }
18206
18205
  const { ProjectivePoint: f, normPrivateKeyToScalar: d, weierstrassEquation: v, isWithinCurveOrder: m } = _v({
18207
18206
  ...t,
@@ -18273,7 +18272,7 @@ function eb(e) {
18273
18272
  const D = J === 2 || J === 3 ? Z + t.n : Z;
18274
18273
  if (D >= r.ORDER)
18275
18274
  throw new Error("recovery id 2 or 3 invalid");
18276
- const A = J & 1 ? "03" : "02", _ = f.fromHex(A + ga(D, r.BYTES)), $ = u(D), I = c(-Q * $), ne = c(G * $), ee = f.BASE.multiplyAndAddUnsafe(_, I, ne);
18275
+ const A = J & 1 ? "03" : "02", _ = f.fromHex(A + Xa(D, r.BYTES)), $ = u(D), I = c(-Q * $), ne = c(G * $), ee = f.BASE.multiplyAndAddUnsafe(_, I, ne);
18277
18276
  if (!ee)
18278
18277
  throw new Error("point at infinify");
18279
18278
  return ee.assertValidity(), ee;
@@ -18298,7 +18297,7 @@ function eb(e) {
18298
18297
  }
18299
18298
  toCompactHex() {
18300
18299
  const C = o;
18301
- return ga(this.r, C) + ga(this.s, C);
18300
+ return Xa(this.r, C) + Xa(this.s, C);
18302
18301
  }
18303
18302
  }
18304
18303
  const L = {
@@ -18356,7 +18355,7 @@ function eb(e) {
18356
18355
  return Z > 0 ? C >> BigInt(Z) : C;
18357
18356
  }, O = t.bits2int_modN || function(P) {
18358
18357
  return c(F(P));
18359
- }, R = Ko(a);
18358
+ }, R = ko(a);
18360
18359
  function j(P) {
18361
18360
  return Wn("num < 2^" + a, P, yr, R), O1(P, o);
18362
18361
  }
@@ -18450,17 +18449,17 @@ function rb(e, t) {
18450
18449
  return { ...r(t), create: r };
18451
18450
  }
18452
18451
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
18453
- const A0 = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), P2 = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), nb = BigInt(0), ob = BigInt(1), ns = BigInt(2), H2 = (e, t) => (e + t / ns) / t;
18452
+ const A0 = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), P2 = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), nb = BigInt(0), ob = BigInt(1), os = BigInt(2), H2 = (e, t) => (e + t / os) / t;
18454
18453
  function ab(e) {
18455
- const t = A0, r = BigInt(3), n = BigInt(6), o = BigInt(11), a = BigInt(22), l = BigInt(23), i = BigInt(44), c = BigInt(88), u = e * e * e % t, f = u * u * e % t, d = Ht(f, r, t) * f % t, v = Ht(d, r, t) * f % t, m = Ht(v, ns, t) * u % t, x = Ht(m, o, t) * m % t, b = Ht(x, a, t) * x % t, N = Ht(b, i, t) * b % t, W = Ht(N, c, t) * N % t, L = Ht(W, i, t) * b % t, g = Ht(L, r, t) * f % t, y = Ht(g, l, t) * x % t, q = Ht(y, n, t) * u % t, F = Ht(q, ns, t);
18456
- if (!os.eql(os.sqr(F), e))
18454
+ const t = A0, r = BigInt(3), n = BigInt(6), o = BigInt(11), a = BigInt(22), l = BigInt(23), i = BigInt(44), c = BigInt(88), u = e * e * e % t, f = u * u * e % t, d = Ht(f, r, t) * f % t, v = Ht(d, r, t) * f % t, m = Ht(v, os, t) * u % t, x = Ht(m, o, t) * m % t, b = Ht(x, a, t) * x % t, N = Ht(b, i, t) * b % t, W = Ht(N, c, t) * N % t, L = Ht(W, i, t) * b % t, g = Ht(L, r, t) * f % t, y = Ht(g, l, t) * x % t, q = Ht(y, n, t) * u % t, F = Ht(q, os, t);
18455
+ if (!as.eql(as.sqr(F), e))
18457
18456
  throw new Error("Cannot find square root");
18458
18457
  return F;
18459
18458
  }
18460
- const os = si(A0, void 0, void 0, { sqrt: ab }), as = rb({
18459
+ const as = si(A0, void 0, void 0, { sqrt: ab }), ss = rb({
18461
18460
  a: nb,
18462
18461
  b: BigInt(7),
18463
- Fp: os,
18462
+ Fp: as,
18464
18463
  n: P2,
18465
18464
  Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
18466
18465
  Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
@@ -18614,7 +18613,7 @@ function db(e, t = !1) {
18614
18613
  };
18615
18614
  }
18616
18615
  const Et = /* @__PURE__ */ ib(/* @__PURE__ */ db(6), /* @__PURE__ */ lb("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ ub(6), /* @__PURE__ */ cb(""));
18617
- var La = {}, In = {}, K2;
18616
+ var Wa = {}, In = {}, K2;
18618
18617
  function fb() {
18619
18618
  if (K2) return In;
18620
18619
  K2 = 1, In.byteLength = i, In.toByteArray = u, In.fromByteArray = v;
@@ -19634,9 +19633,9 @@ function hb() {
19634
19633
  function _e() {
19635
19634
  throw new Error("BigInt not supported");
19636
19635
  }
19637
- }(La)), La;
19636
+ }(Wa)), Wa;
19638
19637
  }
19639
- var mb = hb(), vt = Uint8Array, jt = Uint16Array, ii = Int32Array, Yo = new vt([
19638
+ var mb = hb(), vt = Uint8Array, jt = Uint16Array, ii = Int32Array, Go = new vt([
19640
19639
  0,
19641
19640
  0,
19642
19641
  0,
@@ -19671,7 +19670,7 @@ var mb = hb(), vt = Uint8Array, jt = Uint16Array, ii = Int32Array, Yo = new vt([
19671
19670
  0,
19672
19671
  /* impossible */
19673
19672
  0
19674
- ]), Go = new vt([
19673
+ ]), Jo = new vt([
19675
19674
  0,
19676
19675
  0,
19677
19676
  0,
@@ -19705,19 +19704,19 @@ var mb = hb(), vt = Uint8Array, jt = Uint16Array, ii = Int32Array, Yo = new vt([
19705
19704
  /* unused */
19706
19705
  0,
19707
19706
  0
19708
- ]), ss = new vt([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), $0 = function(e, t) {
19707
+ ]), is = new vt([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), $0 = function(e, t) {
19709
19708
  for (var r = new jt(31), n = 0; n < 31; ++n)
19710
19709
  r[n] = t += 1 << e[n - 1];
19711
19710
  for (var o = new ii(r[30]), n = 1; n < 30; ++n)
19712
19711
  for (var a = r[n]; a < r[n + 1]; ++a)
19713
19712
  o[a] = a - r[n] << 5 | n;
19714
19713
  return { b: r, r: o };
19715
- }, e5 = $0(Yo, 2), t5 = e5.b, is = e5.r;
19716
- t5[28] = 258, is[258] = 28;
19717
- var r5 = $0(Go, 0), vb = r5.b, G2 = r5.r, ls = new jt(32768);
19714
+ }, e5 = $0(Go, 2), t5 = e5.b, ls = e5.r;
19715
+ t5[28] = 258, ls[258] = 28;
19716
+ var r5 = $0(Jo, 0), vb = r5.b, G2 = r5.r, cs = new jt(32768);
19718
19717
  for (var Be = 0; Be < 32768; ++Be) {
19719
19718
  var Tr = (Be & 43690) >> 1 | (Be & 21845) << 1;
19720
- Tr = (Tr & 52428) >> 2 | (Tr & 13107) << 2, Tr = (Tr & 61680) >> 4 | (Tr & 3855) << 4, ls[Be] = ((Tr & 65280) >> 8 | (Tr & 255) << 8) >> 1;
19719
+ Tr = (Tr & 52428) >> 2 | (Tr & 13107) << 2, Tr = (Tr & 61680) >> 4 | (Tr & 3855) << 4, cs[Be] = ((Tr & 65280) >> 8 | (Tr & 255) << 8) >> 1;
19721
19720
  }
19722
19721
  var ar = function(e, t, r) {
19723
19722
  for (var n = e.length, o = 0, a = new jt(t); o < n; ++o)
@@ -19732,10 +19731,10 @@ var ar = function(e, t, r) {
19732
19731
  for (o = 0; o < n; ++o)
19733
19732
  if (e[o])
19734
19733
  for (var u = o << 4 | e[o], f = t - e[o], d = l[e[o] - 1]++ << f, v = d | (1 << f) - 1; d <= v; ++d)
19735
- i[ls[d] >> c] = u;
19734
+ i[cs[d] >> c] = u;
19736
19735
  } else
19737
19736
  for (i = new jt(n), o = 0; o < n; ++o)
19738
- e[o] && (i[o] = ls[l[e[o] - 1]++] >> 15 - e[o]);
19737
+ e[o] && (i[o] = cs[l[e[o] - 1]++] >> 15 - e[o]);
19739
19738
  return i;
19740
19739
  }, Zr = new vt(288);
19741
19740
  for (var Be = 0; Be < 144; ++Be)
@@ -19749,14 +19748,14 @@ for (var Be = 280; Be < 288; ++Be)
19749
19748
  var f1 = new vt(32);
19750
19749
  for (var Be = 0; Be < 32; ++Be)
19751
19750
  f1[Be] = 5;
19752
- var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /* @__PURE__ */ ar(f1, 5, 0), Nb = /* @__PURE__ */ ar(f1, 5, 1), Wa = function(e) {
19751
+ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /* @__PURE__ */ ar(f1, 5, 0), Nb = /* @__PURE__ */ ar(f1, 5, 1), qa = function(e) {
19753
19752
  for (var t = e[0], r = 1; r < e.length; ++r)
19754
19753
  e[r] > t && (t = e[r]);
19755
19754
  return t;
19756
19755
  }, Gt = function(e, t, r) {
19757
19756
  var n = t / 8 | 0;
19758
19757
  return (e[n] | e[n + 1] << 8) >> (t & 7) & r;
19759
- }, qa = function(e, t) {
19758
+ }, Va = function(e, t) {
19760
19759
  var r = t / 8 | 0;
19761
19760
  return (e[r] | e[r + 1] << 8 | e[r + 2] << 16) >> (t & 7);
19762
19761
  }, li = function(e) {
@@ -19808,9 +19807,9 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19808
19807
  var F = Gt(e, d, 31) + 257, O = Gt(e, d + 10, 15) + 4, R = F + Gt(e, d + 5, 31) + 1;
19809
19808
  d += 14;
19810
19809
  for (var j = new vt(R), Y = new vt(19), U = 0; U < O; ++U)
19811
- Y[ss[U]] = Gt(e, d + U * 3, 7);
19810
+ Y[is[U]] = Gt(e, d + U * 3, 7);
19812
19811
  d += O * 3;
19813
- for (var K = Wa(Y), H = (1 << K) - 1, E = ar(Y, K, 1), U = 0; U < R; ) {
19812
+ for (var K = qa(Y), H = (1 << K) - 1, E = ar(Y, K, 1), U = 0; U < R; ) {
19814
19813
  var P = E[Gt(e, d, H)];
19815
19814
  d += P & 15;
19816
19815
  var g = P >> 4;
@@ -19823,7 +19822,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19823
19822
  }
19824
19823
  }
19825
19824
  var G = j.subarray(0, F), J = j.subarray(F);
19826
- b = Wa(G), N = Wa(J), m = ar(G, b, 1), x = ar(J, N, 1);
19825
+ b = qa(G), N = qa(J), m = ar(G, b, 1), x = ar(J, N, 1);
19827
19826
  } else
19828
19827
  Dt(1);
19829
19828
  else {
@@ -19842,7 +19841,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19842
19841
  }
19843
19842
  i && u(v + 131072);
19844
19843
  for (var Q = (1 << b) - 1, D = (1 << N) - 1, A = d; ; A = d) {
19845
- var C = m[qa(e, d) & Q], _ = C >> 4;
19844
+ var C = m[Va(e, d) & Q], _ = C >> 4;
19846
19845
  if (d += C & 15, d > W) {
19847
19846
  c && Dt(0);
19848
19847
  break;
@@ -19855,15 +19854,15 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19855
19854
  } else {
19856
19855
  var $ = _ - 254;
19857
19856
  if (_ > 264) {
19858
- var U = _ - 257, I = Yo[U];
19857
+ var U = _ - 257, I = Go[U];
19859
19858
  $ = Gt(e, d, (1 << I) - 1) + t5[U], d += I;
19860
19859
  }
19861
- var ne = x[qa(e, d) & D], ee = ne >> 4;
19860
+ var ne = x[Va(e, d) & D], ee = ne >> 4;
19862
19861
  ne || Dt(3), d += ne & 15;
19863
19862
  var J = vb[ee];
19864
19863
  if (ee > 3) {
19865
- var I = Go[ee];
19866
- J += qa(e, d) & (1 << I) - 1, d += I;
19864
+ var I = Jo[ee];
19865
+ J += Va(e, d) & (1 << I) - 1, d += I;
19867
19866
  }
19868
19867
  if (d > W) {
19869
19868
  c && Dt(0);
@@ -19891,7 +19890,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19891
19890
  r <<= t & 7;
19892
19891
  var n = t / 8 | 0;
19893
19892
  e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
19894
- }, Va = function(e, t) {
19893
+ }, Oa = function(e, t) {
19895
19894
  for (var r = [], n = 0; n < e.length; ++n)
19896
19895
  e[n] && r.push({ s: n, f: e[n] });
19897
19896
  var o = r.length, a = r.slice();
@@ -19909,7 +19908,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19909
19908
  i = r[r[u].f < r[d].f ? u++ : d++], c = r[u != f && r[u].f < r[d].f ? u++ : d++], r[f++] = { s: -1, f: i.f + c.f, l: i, r: c };
19910
19909
  for (var v = a[0].s, n = 1; n < o; ++n)
19911
19910
  a[n].s > v && (v = a[n].s);
19912
- var m = new jt(v + 1), x = cs(r[f - 1], m, 0);
19911
+ var m = new jt(v + 1), x = us(r[f - 1], m, 0);
19913
19912
  if (x > t) {
19914
19913
  var n = 0, b = 0, N = x - t, W = 1 << N;
19915
19914
  for (a.sort(function(F, O) {
@@ -19932,8 +19931,8 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19932
19931
  x = t;
19933
19932
  }
19934
19933
  return { t: new vt(m), l: x };
19935
- }, cs = function(e, t, r) {
19936
- return e.s == -1 ? Math.max(cs(e.l, t, r + 1), cs(e.r, t, r + 1)) : t[e.s] = r;
19934
+ }, us = function(e, t, r) {
19935
+ return e.s == -1 ? Math.max(us(e.l, t, r + 1), us(e.r, t, r + 1)) : t[e.s] = r;
19937
19936
  }, J2 = function(e) {
19938
19937
  for (var t = e.length; t && !e[--t]; )
19939
19938
  ;
@@ -19969,11 +19968,11 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19969
19968
  return (o + 4 + n) * 8;
19970
19969
  }, D2 = function(e, t, r, n, o, a, l, i, c, u, f) {
19971
19970
  pr(t, f++, r), ++o[256];
19972
- for (var d = Va(o, 15), v = d.t, m = d.l, x = Va(a, 15), b = x.t, N = x.l, W = J2(v), L = W.c, g = W.n, y = J2(b), q = y.c, F = y.n, O = new jt(19), R = 0; R < L.length; ++R)
19971
+ for (var d = Oa(o, 15), v = d.t, m = d.l, x = Oa(a, 15), b = x.t, N = x.l, W = J2(v), L = W.c, g = W.n, y = J2(b), q = y.c, F = y.n, O = new jt(19), R = 0; R < L.length; ++R)
19973
19972
  ++O[L[R] & 31];
19974
19973
  for (var R = 0; R < q.length; ++R)
19975
19974
  ++O[q[R] & 31];
19976
- for (var j = Va(O, 7), Y = j.t, U = j.l, K = 19; K > 4 && !Y[ss[K - 1]]; --K)
19975
+ for (var j = Oa(O, 7), Y = j.t, U = j.l, K = 19; K > 4 && !Y[is[K - 1]]; --K)
19977
19976
  ;
19978
19977
  var H = u + 5 << 3, E = Bn(o, Zr) + Bn(a, f1) + l, P = Bn(o, v) + Bn(a, b) + l + 14 + 3 * K + Bn(O, Y) + 2 * O[16] + 3 * O[17] + 7 * O[18];
19979
19978
  if (c >= 0 && H <= E && H <= P)
@@ -19984,7 +19983,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19984
19983
  var Q = ar(Y, U, 0);
19985
19984
  pr(t, f, g - 257), pr(t, f + 5, F - 1), pr(t, f + 10, K - 4), f += 14;
19986
19985
  for (var R = 0; R < K; ++R)
19987
- pr(t, f + 3 * R, Y[ss[R]]);
19986
+ pr(t, f + 3 * R, Y[is[R]]);
19988
19987
  f += 3 * K;
19989
19988
  for (var D = [L, q], A = 0; A < 2; ++A)
19990
19989
  for (var _ = D[A], R = 0; R < _.length; ++R) {
@@ -19997,9 +19996,9 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19997
19996
  var I = n[R];
19998
19997
  if (I > 255) {
19999
19998
  var $ = I >> 18 & 31;
20000
- Qn(t, f, C[$ + 257]), f += Z[$ + 257], $ > 7 && (pr(t, f, I >> 23 & 31), f += Yo[$]);
19999
+ Qn(t, f, C[$ + 257]), f += Z[$ + 257], $ > 7 && (pr(t, f, I >> 23 & 31), f += Go[$]);
20001
20000
  var ne = I & 31;
20002
- Qn(t, f, G[ne]), f += J[ne], ne > 3 && (Qn(t, f, I >> 5 & 8191), f += Go[ne]);
20001
+ Qn(t, f, G[ne]), f += J[ne], ne > 3 && (Qn(t, f, I >> 5 & 8191), f += Jo[ne]);
20003
20002
  } else
20004
20003
  Qn(t, f, C[I]), f += Z[I];
20005
20004
  }
@@ -20039,9 +20038,9 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
20039
20038
  E = P, P = b[E], D += E - P & 32767;
20040
20039
  }
20041
20040
  if (J) {
20042
- y[Y++] = 268435456 | is[G] << 18 | G2[J];
20043
- var ie = is[G] & 31, ue = G2[J] & 31;
20044
- R += Yo[ie] + Go[ue], ++q[257 + ie], ++F[ue], U = j + G, ++O;
20041
+ y[Y++] = 268435456 | ls[G] << 18 | G2[J];
20042
+ var ie = ls[G] & 31, ue = G2[J] & 31;
20043
+ R += Go[ie] + Jo[ue], ++q[257 + ie], ++F[ue], U = j + G, ++O;
20045
20044
  } else
20046
20045
  y[Y++] = e[j], ++q[e[j]];
20047
20046
  }
@@ -20106,11 +20105,11 @@ try {
20106
20105
  } catch {
20107
20106
  }
20108
20107
  function Ub() {
20109
- let e = as.utils.randomPrivateKey(), t = as.getPublicKey(e);
20108
+ let e = ss.utils.randomPrivateKey(), t = ss.getPublicKey(e);
20110
20109
  return { privateKey: Et.encode(e), publicKey: Et.encode(t) };
20111
20110
  }
20112
20111
  function Cb({ privateKey: e, publicKey: t }) {
20113
- let r = as.getSharedSecret(Et.decode(e), Et.decode(t)).slice(1);
20112
+ let r = ss.getSharedSecret(Et.decode(e), Et.decode(t)).slice(1);
20114
20113
  return Et.encode(r);
20115
20114
  }
20116
20115
  async function jb(e, t) {
@@ -20294,10 +20293,10 @@ const Gb = (e) => {
20294
20293
  try {
20295
20294
  return await t.sendRequest(i, c);
20296
20295
  } catch (m) {
20297
- throw m instanceof t1 && (m.action === "clear" && o(), m.code === void 0 && m.message === "User rejected request") ? new Io(Error("User rejected request"), { code: 4001, shortMessage: "User rejected request" }) : new Io(m, { code: m.code ?? -1, shortMessage: m.message });
20296
+ throw m instanceof t1 && (m.action === "clear" && o(), m.code === void 0 && m.message === "User rejected request") ? new Qo(Error("User rejected request"), { code: 4001, shortMessage: "User rejected request" }) : new Qo(m, { code: m.code ?? -1, shortMessage: m.message });
20298
20297
  }
20299
20298
  default:
20300
- throw new Io(Error("Unsupported method"), { code: 4200, shortMessage: `Unsupported method: ${i}` });
20299
+ throw new Qo(Error("Unsupported method"), { code: 4200, shortMessage: `Unsupported method: ${i}` });
20301
20300
  }
20302
20301
  } };
20303
20302
  };
@@ -20322,11 +20321,11 @@ function c5(e, t) {
20322
20321
  n && (c.removeListener("chainChanged", n), n = void 0), a && (c.removeListener("disconnect", a), a = void 0), o || (o = this.onConnect.bind(this), c.on("connect", o)), await c.request({ method: "wallet_revokePermissions", params: [{ eth_accounts: {} }] }), this.onDisconnect();
20323
20322
  }, async getAccounts() {
20324
20323
  let c = await this.getProvider();
20325
- if (!c) throw new ha();
20324
+ if (!c) throw new ma();
20326
20325
  return (await c.request({ method: "eth_accounts" })).map((u) => di(u));
20327
20326
  }, async getChainId() {
20328
20327
  let c = await this.getProvider();
20329
- if (!c) throw new ha();
20328
+ if (!c) throw new ma();
20330
20329
  return Number(await c.request({ method: "eth_chainId" }));
20331
20330
  }, getProvider: async () => (l || (l = Gb({ chains: i.chains, transports: i.transports, providerAppId: e.id, apiUrl: e.apiUrl, smartWalletMode: e.smartWalletMode })), l), async isAuthorized() {
20332
20331
  try {
@@ -20336,7 +20335,7 @@ function c5(e, t) {
20336
20335
  }
20337
20336
  }, async switchChain({ chainId: c }) {
20338
20337
  let u = await this.getProvider();
20339
- if (!u) throw new ha();
20338
+ if (!u) throw new ma();
20340
20339
  let f = i.chains.find((d) => d.id === c);
20341
20340
  if (!f) throw new V5(new bv());
20342
20341
  return c === Number(await u.request({ method: "eth_chainId" })) || (await u.request({ method: "wallet_switchEthereumChain", params: [{ chainId: `0x${c.toString(16)}` }] }), i.emitter.emit("change", { chainId: c })), f;