@use-glyph/sdk-react 1.0.18 → 1.0.19

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,6 +1,6 @@
1
1
  import * as w from "react";
2
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";
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 X5, useReconnect as g5 } from "wagmi";
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
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";
5
5
  import * as p1 from "react-dom";
6
6
  import ds from "react-dom";
@@ -59,10 +59,10 @@ function Z5() {
59
59
  {
60
60
  for (var B = arguments.length, oe = new Array(B > 1 ? B - 1 : 0), ve = 1; ve < B; ve++)
61
61
  oe[ve - 1] = arguments[ve];
62
- X("error", T, oe);
62
+ g("error", T, oe);
63
63
  }
64
64
  }
65
- function X(T, B, oe) {
65
+ function g(T, B, oe) {
66
66
  {
67
67
  var ve = W.ReactDebugCurrentFrame, Re = ve.getStackAddendum();
68
68
  Re !== "" && (B += "%s", oe = oe.concat([Re]));
@@ -243,42 +243,42 @@ function Z5() {
243
243
  }), typeof Reflect == "object" && Reflect.construct) {
244
244
  try {
245
245
  Reflect.construct(Oe, []);
246
- } catch (gt) {
247
- ve = gt;
246
+ } catch (Xt) {
247
+ ve = Xt;
248
248
  }
249
249
  Reflect.construct(T, [], Oe);
250
250
  } else {
251
251
  try {
252
252
  Oe.call();
253
- } catch (gt) {
254
- ve = gt;
253
+ } catch (Xt) {
254
+ ve = Xt;
255
255
  }
256
256
  T.call(Oe.prototype);
257
257
  }
258
258
  } else {
259
259
  try {
260
260
  throw Error();
261
- } catch (gt) {
262
- ve = gt;
261
+ } catch (Xt) {
262
+ ve = Xt;
263
263
  }
264
264
  T();
265
265
  }
266
- } catch (gt) {
267
- if (gt && ve && typeof gt.stack == "string") {
268
- for (var qe = gt.stack.split(`
266
+ } catch (Xt) {
267
+ if (Xt && ve && typeof Xt.stack == "string") {
268
+ for (var qe = Xt.stack.split(`
269
269
  `), xt = ve.stack.split(`
270
- `), at = qe.length - 1, st = xt.length - 1; at >= 1 && st >= 0 && qe[at] !== xt[st]; )
271
- st--;
272
- for (; at >= 1 && st >= 0; at--, st--)
273
- if (qe[at] !== xt[st]) {
274
- if (at !== 1 || st !== 1)
270
+ `), at = qe.length - 1, it = xt.length - 1; at >= 1 && it >= 0 && qe[at] !== xt[it]; )
271
+ it--;
272
+ for (; at >= 1 && it >= 0; at--, it--)
273
+ if (qe[at] !== xt[it]) {
274
+ if (at !== 1 || it !== 1)
275
275
  do
276
- if (at--, st--, st < 0 || qe[at] !== xt[st]) {
276
+ if (at--, it--, it < 0 || qe[at] !== xt[it]) {
277
277
  var Pt = `
278
278
  ` + qe[at].replace(" at new ", " at ");
279
279
  return T.displayName && Pt.includes("<anonymous>") && (Pt = Pt.replace("<anonymous>", T.displayName)), typeof T == "function" && se.set(T, Pt), Pt;
280
280
  }
281
- while (at >= 1 && st >= 0);
281
+ while (at >= 1 && it >= 0);
282
282
  break;
283
283
  }
284
284
  }
@@ -375,7 +375,7 @@ function Z5() {
375
375
  if (Ae(T))
376
376
  return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Te(T)), tt(T);
377
377
  }
378
- var g = W.ReactCurrentOwner, p = {
378
+ var X = W.ReactCurrentOwner, p = {
379
379
  key: !0,
380
380
  ref: !0,
381
381
  __self: !0,
@@ -398,7 +398,7 @@ function Z5() {
398
398
  return T.key !== void 0;
399
399
  }
400
400
  function M(T, B) {
401
- typeof T.ref == "string" && g.current;
401
+ typeof T.ref == "string" && X.current;
402
402
  }
403
403
  function be(T, B) {
404
404
  {
@@ -463,13 +463,13 @@ function Z5() {
463
463
  Oe[De] === void 0 && (Oe[De] = at[De]);
464
464
  }
465
465
  if (qe || xt) {
466
- var st = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
467
- qe && be(Oe, st), xt && ze(Oe, st);
466
+ var it = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
467
+ qe && be(Oe, it), xt && ze(Oe, it);
468
468
  }
469
- return je(T, qe, xt, Re, ve, g.current, Oe);
469
+ return je(T, qe, xt, Re, ve, X.current, Oe);
470
470
  }
471
471
  }
472
- var ge = W.ReactCurrentOwner, ce = W.ReactDebugCurrentFrame;
472
+ var Xe = W.ReactCurrentOwner, ce = W.ReactDebugCurrentFrame;
473
473
  function we(T) {
474
474
  if (T) {
475
475
  var B = T._owner, oe = Pe(T.type, T._source, B ? B.type : null);
@@ -484,8 +484,8 @@ function Z5() {
484
484
  }
485
485
  function Ge() {
486
486
  {
487
- if (ge.current) {
488
- var T = H(ge.current.type);
487
+ if (Xe.current) {
488
+ var T = H(Xe.current.type);
489
489
  if (T)
490
490
  return `
491
491
 
@@ -520,7 +520,7 @@ Check the top-level render call using <` + oe + ">.");
520
520
  return;
521
521
  Le[oe] = !0;
522
522
  var ve = "";
523
- T && T._owner && T._owner !== ge.current && (ve = " It was passed a child from " + H(T._owner.type) + "."), we(T), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', oe, ve), we(null);
523
+ T && T._owner && T._owner !== Xe.current && (ve = " It was passed a child from " + H(T._owner.type) + "."), we(T), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', oe, ve), we(null);
524
524
  }
525
525
  }
526
526
  function yt(T, B) {
@@ -591,9 +591,9 @@ Check the top-level render call using <` + oe + ">.");
591
591
  var at;
592
592
  T === null ? at = "null" : le(T) ? at = "array" : T !== void 0 && T.$$typeof === t ? (at = "<" + (H(T.type) || "Unknown") + " />", qe = " Did you accidentally export a JSX literal instead of a component?") : at = typeof T, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", at, qe);
593
593
  }
594
- var st = He(T, B, oe, Re, De);
595
- if (st == null)
596
- return st;
594
+ var it = He(T, B, oe, Re, De);
595
+ if (it == null)
596
+ return it;
597
597
  if (Oe) {
598
598
  var Pt = B.children;
599
599
  if (Pt !== void 0)
@@ -608,11 +608,11 @@ Check the top-level render call using <` + oe + ">.");
608
608
  yt(Pt, T);
609
609
  }
610
610
  if (Ce.call(B, "key")) {
611
- var Mr = H(T), gt = Object.keys(B).filter(function(f5) {
611
+ var Mr = H(T), Xt = Object.keys(B).filter(function(f5) {
612
612
  return f5 !== "key";
613
- }), Jo = gt.length > 0 ? "{key: someKey, " + gt.join(": ..., ") + ": ...}" : "{key: someKey}";
613
+ }), Jo = Xt.length > 0 ? "{key: someKey, " + Xt.join(": ..., ") + ": ...}" : "{key: someKey}";
614
614
  if (!zt[Mr + Jo]) {
615
- var d5 = gt.length > 0 ? "{" + gt.join(": ..., ") + ": ...}" : "{}";
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} />
@@ -621,7 +621,7 @@ React keys must be passed directly to JSX without using spread:
621
621
  <%s key={someKey} {...props} />`, Jo, Mr, d5, Mr), zt[Mr + Jo] = !0;
622
622
  }
623
623
  }
624
- return T === n ? Ie(st) : Ke(st), st;
624
+ return T === n ? Ie(it) : Ke(it), it;
625
625
  }
626
626
  }
627
627
  function St(T, B, oe) {
@@ -831,9 +831,9 @@ const fs = "-", k5 = (e) => {
831
831
  if (a.includes(L))
832
832
  continue;
833
833
  a.push(L);
834
- const X = o(b, x);
835
- for (let y = 0; y < X.length; ++y) {
836
- const q = X[y];
834
+ const g = o(b, x);
835
+ for (let y = 0; y < g.length; ++y) {
836
+ const q = g[y];
837
837
  a.push(W + q);
838
838
  }
839
839
  i = u + (i.length > 0 ? " " + i : i);
@@ -883,7 +883,7 @@ const Qe = (e) => {
883
883
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
884
884
  r7.test(e) && !n7.test(e)
885
885
  ), ul = () => !1, h7 = (e) => o7.test(e), m7 = (e) => a7.test(e), yi = () => {
886
- const e = Qe("colors"), t = Qe("spacing"), r = Qe("blur"), n = Qe("brightness"), o = Qe("borderColor"), a = Qe("borderRadius"), l = Qe("borderSpacing"), i = Qe("borderWidth"), c = Qe("contrast"), u = Qe("grayscale"), f = Qe("hueRotate"), d = Qe("invert"), v = Qe("gap"), m = Qe("gradientColorStops"), x = Qe("gradientColorStopPositions"), b = Qe("inset"), N = Qe("margin"), W = Qe("opacity"), L = Qe("padding"), X = Qe("saturate"), y = Qe("scale"), q = Qe("sepia"), F = Qe("skew"), O = Qe("space"), R = Qe("translate"), j = () => ["auto", "contain", "none"], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", ye, t], K = () => [ye, t], H = () => ["", ur, Lr], E = () => ["auto", wn, ye], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], C = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", ye], Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [wn, ye];
886
+ const e = Qe("colors"), t = Qe("spacing"), r = Qe("blur"), n = Qe("brightness"), o = Qe("borderColor"), a = Qe("borderRadius"), l = Qe("borderSpacing"), i = Qe("borderWidth"), c = Qe("contrast"), u = Qe("grayscale"), f = Qe("hueRotate"), d = Qe("invert"), v = Qe("gap"), m = Qe("gradientColorStops"), x = Qe("gradientColorStopPositions"), b = Qe("inset"), N = Qe("margin"), W = Qe("opacity"), L = Qe("padding"), g = Qe("saturate"), y = Qe("scale"), q = Qe("sepia"), F = Qe("skew"), O = Qe("space"), R = Qe("translate"), j = () => ["auto", "contain", "none"], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", ye, t], K = () => [ye, t], H = () => ["", ur, Lr], E = () => ["auto", wn, ye], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], C = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", ye], Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [wn, ye];
887
887
  return {
888
888
  cacheSize: 500,
889
889
  separator: ":",
@@ -2349,7 +2349,7 @@ const Qe = (e) => {
2349
2349
  * @see https://tailwindcss.com/docs/saturate
2350
2350
  */
2351
2351
  saturate: [{
2352
- saturate: [X]
2352
+ saturate: [g]
2353
2353
  }],
2354
2354
  /**
2355
2355
  * Sepia
@@ -2420,7 +2420,7 @@ const Qe = (e) => {
2420
2420
  * @see https://tailwindcss.com/docs/backdrop-saturate
2421
2421
  */
2422
2422
  "backdrop-saturate": [{
2423
- "backdrop-saturate": [X]
2423
+ "backdrop-saturate": [g]
2424
2424
  }],
2425
2425
  /**
2426
2426
  * Backdrop Sepia
@@ -3026,7 +3026,7 @@ function B1(e, { dir: t = "left" } = {}) {
3026
3026
  n++;
3027
3027
  return r = t === "left" ? r.slice(n) : r.slice(0, r.length - n), typeof e == "string" ? (r.length === 1 && t === "right" && (r = `${r}0`), `0x${r.length % 2 === 1 ? `0${r}` : r}`) : r;
3028
3028
  }
3029
- class X7 extends ot {
3029
+ class g7 extends ot {
3030
3030
  constructor({ offset: t, position: r, size: n }) {
3031
3031
  super(`Slice ${r === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${n}).`, { name: "SliceOffsetOutOfBoundsError" });
3032
3032
  }
@@ -3037,9 +3037,9 @@ class pl extends ot {
3037
3037
  }
3038
3038
  }
3039
3039
  function Un(e, { dir: t, size: r = 32 } = {}) {
3040
- return typeof e == "string" ? g7(e, { dir: t, size: r }) : L7(e, { dir: t, size: r });
3040
+ return typeof e == "string" ? X7(e, { dir: t, size: r }) : L7(e, { dir: t, size: r });
3041
3041
  }
3042
- function g7(e, { dir: t, size: r = 32 } = {}) {
3042
+ function X7(e, { dir: t, size: r = 32 } = {}) {
3043
3043
  if (r === null)
3044
3044
  return e;
3045
3045
  const n = e.replace("0x", "");
@@ -3068,7 +3068,7 @@ function L7(e, { dir: t, size: r = 32 } = {}) {
3068
3068
  return n;
3069
3069
  }
3070
3070
  const W7 = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
3071
- function Xe(e, t = {}) {
3071
+ function ge(e, t = {}) {
3072
3072
  return typeof e == "number" || typeof e == "bigint" ? hl(e, t) : typeof e == "string" ? O7(e, t) : typeof e == "boolean" ? q7(e, t) : kr(e, t);
3073
3073
  }
3074
3074
  function q7(e, t = {}) {
@@ -3535,9 +3535,9 @@ function A7(e) {
3535
3535
  for (const r of e) {
3536
3536
  const { chainId: n, nonce: o, ...a } = r, l = r.address;
3537
3537
  t.push([
3538
- n ? Xe(n) : "0x",
3538
+ n ? ge(n) : "0x",
3539
3539
  l,
3540
- o ? Xe(o) : "0x",
3540
+ o ? ge(o) : "0x",
3541
3541
  ...b1({}, a)
3542
3542
  ]);
3543
3543
  }
@@ -3549,7 +3549,7 @@ function wl(e) {
3549
3549
  o.push(Uint8Array.from(t.blobToKzgCommitment(a)));
3550
3550
  return r === "bytes" ? o : o.map((a) => kr(a));
3551
3551
  }
3552
- function Xl(e) {
3552
+ function gl(e) {
3553
3553
  const { kzg: t } = e, r = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((l) => _r(l)) : e.blobs, o = typeof e.commitments[0] == "string" ? e.commitments.map((l) => _r(l)) : e.commitments, a = [];
3554
3554
  for (let l = 0; l < n.length; l++) {
3555
3555
  const i = n[l], c = o[l];
@@ -3576,7 +3576,7 @@ function _1(e, t = !0) {
3576
3576
  if (t && e.finished)
3577
3577
  throw new Error("Hash#digest() has already been called");
3578
3578
  }
3579
- function gl(e, t) {
3579
+ function Xl(e, t) {
3580
3580
  vs(e);
3581
3581
  const r = t.outputLen;
3582
3582
  if (e.length < r)
@@ -3592,11 +3592,11 @@ function Bo(e) {
3592
3592
  function $t(e, t) {
3593
3593
  return e << 32 - t | e >>> t;
3594
3594
  }
3595
- const Xi = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
3595
+ const gi = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
3596
3596
  function eu(e) {
3597
3597
  return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
3598
3598
  }
3599
- function gi(e) {
3599
+ function Xi(e) {
3600
3600
  for (let t = 0; t < e.length; t++)
3601
3601
  e[t] = eu(e[t]);
3602
3602
  }
@@ -3653,7 +3653,7 @@ let au = class extends Ll {
3653
3653
  return this.length += t.length, this.roundClean(), this;
3654
3654
  }
3655
3655
  digestInto(t) {
3656
- _1(this), gl(t, this), this.finished = !0;
3656
+ _1(this), Xl(t, this), this.finished = !0;
3657
3657
  const { buffer: r, view: n, blockLen: o, isLE: a } = this;
3658
3658
  let { pos: l } = this;
3659
3659
  r[l++] = 128, this.buffer.subarray(l).fill(0), this.padOffset > o - l && (this.process(n, 0), l = 0);
@@ -3869,7 +3869,7 @@ function mu(e) {
3869
3869
  return t === "bytes" ? o.map((i) => i.bytes) : o.map((i) => kr(i.bytes));
3870
3870
  }
3871
3871
  function vu(e) {
3872
- const { data: t, kzg: r, to: n } = e, o = e.blobs ?? mu({ data: t, to: n }), a = e.commitments ?? wl({ blobs: o, kzg: r, to: n }), l = e.proofs ?? Xl({ blobs: o, commitments: a, kzg: r, to: n }), i = [];
3872
+ const { data: t, kzg: r, to: n } = e, o = e.blobs ?? mu({ data: t, to: n }), a = e.commitments ?? wl({ blobs: o, kzg: r, to: n }), l = e.proofs ?? gl({ blobs: o, commitments: a, kzg: r, to: n }), i = [];
3873
3873
  for (let c = 0; c < o.length; c++)
3874
3874
  i.push({
3875
3875
  blob: o[c],
@@ -3958,15 +3958,15 @@ function yu(e, t = !1) {
3958
3958
  }
3959
3959
  return [r, n];
3960
3960
  }
3961
- const xu = (e, t, r) => e << r | t >>> 32 - r, Nu = (e, t, r) => t << r | e >>> 32 - r, wu = (e, t, r) => t << r - 32 | e >>> 64 - r, Xu = (e, t, r) => e << r - 32 | t >>> 64 - r, Ul = [], Cl = [], jl = [], gu = /* @__PURE__ */ BigInt(0), Jn = /* @__PURE__ */ BigInt(1), Lu = /* @__PURE__ */ BigInt(2), Wu = /* @__PURE__ */ BigInt(7), qu = /* @__PURE__ */ BigInt(256), Vu = /* @__PURE__ */ BigInt(113);
3961
+ const xu = (e, t, r) => e << r | t >>> 32 - r, Nu = (e, t, r) => t << r | e >>> 32 - r, wu = (e, t, r) => t << r - 32 | e >>> 64 - r, gu = (e, t, r) => e << r - 32 | t >>> 64 - r, Ul = [], Cl = [], jl = [], Xu = /* @__PURE__ */ BigInt(0), Jn = /* @__PURE__ */ BigInt(1), Lu = /* @__PURE__ */ BigInt(2), Wu = /* @__PURE__ */ BigInt(7), qu = /* @__PURE__ */ BigInt(256), Vu = /* @__PURE__ */ BigInt(113);
3962
3962
  for (let e = 0, t = Jn, r = 1, n = 0; e < 24; e++) {
3963
3963
  [r, n] = [n, (2 * r + 3 * n) % 5], Ul.push(2 * (5 * n + r)), Cl.push((e + 1) * (e + 2) / 2 % 64);
3964
- let o = gu;
3964
+ let o = Xu;
3965
3965
  for (let a = 0; a < 7; a++)
3966
3966
  t = (t << Jn ^ (t >> Wu) * Vu) % qu, t & Lu && (o ^= Jn << (Jn << /* @__PURE__ */ BigInt(a)) - Jn);
3967
3967
  jl.push(o);
3968
3968
  }
3969
- const [Ou, Fu] = /* @__PURE__ */ yu(jl, !0), Vi = (e, t, r) => r > 32 ? wu(e, t, r) : xu(e, t, r), Oi = (e, t, r) => r > 32 ? Xu(e, t, r) : Nu(e, t, r);
3969
+ const [Ou, Fu] = /* @__PURE__ */ yu(jl, !0), Vi = (e, t, r) => r > 32 ? wu(e, t, r) : xu(e, t, r), Oi = (e, t, r) => r > 32 ? gu(e, t, r) : Nu(e, t, r);
3970
3970
  function Tu(e, t = 24) {
3971
3971
  const r = new Uint32Array(10);
3972
3972
  for (let n = 24 - t; n < 24; n++) {
@@ -4000,7 +4000,7 @@ class xs extends Ll {
4000
4000
  this.state = new Uint8Array(200), this.state32 = $7(this.state);
4001
4001
  }
4002
4002
  keccak() {
4003
- Xi || gi(this.state32), Tu(this.state32, this.rounds), Xi || gi(this.state32), this.posOut = 0, this.pos = 0;
4003
+ gi || Xi(this.state32), Tu(this.state32, this.rounds), gi || Xi(this.state32), this.posOut = 0, this.pos = 0;
4004
4004
  }
4005
4005
  update(t) {
4006
4006
  _1(this);
@@ -4041,7 +4041,7 @@ class xs extends Ll {
4041
4041
  return wi(t), this.xofInto(new Uint8Array(t));
4042
4042
  }
4043
4043
  digestInto(t) {
4044
- if (gl(t, this), this.finished)
4044
+ if (Xl(t, this), this.finished)
4045
4045
  throw new Error("digest() was already called");
4046
4046
  return this.writeInto(t), this.destroy(), t;
4047
4047
  }
@@ -4087,7 +4087,7 @@ function zu(e, t, r, { strict: n } = {}) {
4087
4087
  }
4088
4088
  function Rl(e, t, r) {
4089
4089
  if (qn(e) !== r - t)
4090
- throw new X7({
4090
+ throw new g7({
4091
4091
  offset: r,
4092
4092
  position: "end",
4093
4093
  size: qn(e)
@@ -4203,13 +4203,13 @@ function Du(e, t) {
4203
4203
  return v1([
4204
4204
  "0x04",
4205
4205
  $r([
4206
- Xe(n),
4207
- a ? Xe(a) : "0x",
4208
- u ? Xe(u) : "0x",
4209
- c ? Xe(c) : "0x",
4210
- o ? Xe(o) : "0x",
4206
+ ge(n),
4207
+ a ? ge(a) : "0x",
4208
+ u ? ge(u) : "0x",
4209
+ c ? ge(c) : "0x",
4210
+ o ? ge(o) : "0x",
4211
4211
  l ?? "0x",
4212
- i ? Xe(i) : "0x",
4212
+ i ? ge(i) : "0x",
4213
4213
  d ?? "0x",
4214
4214
  v,
4215
4215
  m,
@@ -4222,34 +4222,34 @@ function Eu(e, t) {
4222
4222
  Ku(e);
4223
4223
  let v = e.blobVersionedHashes, m = e.sidecars;
4224
4224
  if (e.blobs && (typeof v > "u" || typeof m > "u")) {
4225
- const X = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((F) => kr(F)), y = e.kzg, q = wl({
4226
- blobs: X,
4225
+ const g = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((F) => kr(F)), y = e.kzg, q = wl({
4226
+ blobs: g,
4227
4227
  kzg: y
4228
4228
  });
4229
4229
  if (typeof v > "u" && (v = du({
4230
4230
  commitments: q
4231
4231
  })), typeof m > "u") {
4232
- const F = Xl({ blobs: X, commitments: q, kzg: y });
4233
- m = vu({ blobs: X, commitments: q, proofs: F });
4232
+ const F = gl({ blobs: g, commitments: q, kzg: y });
4233
+ m = vu({ blobs: g, commitments: q, proofs: F });
4234
4234
  }
4235
4235
  }
4236
4236
  const x = No(f), b = [
4237
- Xe(r),
4238
- o ? Xe(o) : "0x",
4239
- u ? Xe(u) : "0x",
4240
- c ? Xe(c) : "0x",
4241
- n ? Xe(n) : "0x",
4237
+ ge(r),
4238
+ o ? ge(o) : "0x",
4239
+ u ? ge(u) : "0x",
4240
+ c ? ge(c) : "0x",
4241
+ n ? ge(n) : "0x",
4242
4242
  a ?? "0x",
4243
- l ? Xe(l) : "0x",
4243
+ l ? ge(l) : "0x",
4244
4244
  d ?? "0x",
4245
4245
  x,
4246
- i ? Xe(i) : "0x",
4246
+ i ? ge(i) : "0x",
4247
4247
  v ?? [],
4248
4248
  ...b1(e, t)
4249
4249
  ], N = [], W = [], L = [];
4250
4250
  if (m)
4251
- for (let X = 0; X < m.length; X++) {
4252
- const { blob: y, commitment: q, proof: F } = m[X];
4251
+ for (let g = 0; g < m.length; g++) {
4252
+ const { blob: y, commitment: q, proof: F } = m[g];
4253
4253
  N.push(y), W.push(q), L.push(F);
4254
4254
  }
4255
4255
  return v1([
@@ -4262,13 +4262,13 @@ 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
4263
  Ns(e);
4264
4264
  const d = No(u), v = [
4265
- Xe(r),
4266
- o ? Xe(o) : "0x",
4267
- c ? Xe(c) : "0x",
4268
- i ? Xe(i) : "0x",
4269
- n ? Xe(n) : "0x",
4265
+ ge(r),
4266
+ o ? ge(o) : "0x",
4267
+ c ? ge(c) : "0x",
4268
+ i ? ge(i) : "0x",
4269
+ n ? ge(n) : "0x",
4270
4270
  a ?? "0x",
4271
- l ? Xe(l) : "0x",
4271
+ l ? ge(l) : "0x",
4272
4272
  f ?? "0x",
4273
4273
  d,
4274
4274
  ...b1(e, t)
@@ -4282,12 +4282,12 @@ function Iu(e, t) {
4282
4282
  const { chainId: r, gas: n, data: o, nonce: a, to: l, value: i, accessList: c, gasPrice: u } = e;
4283
4283
  ku(e);
4284
4284
  const f = No(c), d = [
4285
- Xe(r),
4286
- a ? Xe(a) : "0x",
4287
- u ? Xe(u) : "0x",
4288
- n ? Xe(n) : "0x",
4285
+ ge(r),
4286
+ a ? ge(a) : "0x",
4287
+ u ? ge(u) : "0x",
4288
+ n ? ge(n) : "0x",
4289
4289
  l ?? "0x",
4290
- i ? Xe(i) : "0x",
4290
+ i ? ge(i) : "0x",
4291
4291
  o ?? "0x",
4292
4292
  f,
4293
4293
  ...b1(e, t)
@@ -4301,11 +4301,11 @@ function Qu(e, t) {
4301
4301
  const { chainId: r = 0, gas: n, data: o, nonce: a, to: l, value: i, gasPrice: c } = e;
4302
4302
  Yu(e);
4303
4303
  let u = [
4304
- a ? Xe(a) : "0x",
4305
- c ? Xe(c) : "0x",
4306
- n ? Xe(n) : "0x",
4304
+ a ? ge(a) : "0x",
4305
+ c ? ge(c) : "0x",
4306
+ n ? ge(n) : "0x",
4307
4307
  l ?? "0x",
4308
- i ? Xe(i) : "0x",
4308
+ i ? ge(i) : "0x",
4309
4309
  o ?? "0x"
4310
4310
  ];
4311
4311
  if (t) {
@@ -4321,13 +4321,13 @@ function Qu(e, t) {
4321
4321
  })(), d = B1(t.r), v = B1(t.s);
4322
4322
  u = [
4323
4323
  ...u,
4324
- Xe(f),
4324
+ ge(f),
4325
4325
  d === "0x00" ? "0x" : d,
4326
4326
  v === "0x00" ? "0x" : v
4327
4327
  ];
4328
4328
  } else r > 0 && (u = [
4329
4329
  ...u,
4330
- Xe(r),
4330
+ ge(r),
4331
4331
  "0x",
4332
4332
  "0x"
4333
4333
  ]);
@@ -4342,7 +4342,7 @@ function b1(e, t) {
4342
4342
  if (typeof n > "u" && typeof o > "u")
4343
4343
  return [];
4344
4344
  const a = B1(r.r), l = B1(r.s);
4345
- return [typeof o == "number" ? o ? Xe(1) : "0x" : n === 0n ? "0x" : n === 1n ? Xe(1) : n === 27n ? "0x" : Xe(1), a === "0x00" ? "0x" : a, l === "0x00" ? "0x" : l];
4345
+ return [typeof o == "number" ? o ? ge(1) : "0x" : n === 0n ? "0x" : n === 1n ? ge(1) : n === 27n ? "0x" : ge(1), a === "0x00" ? "0x" : a, l === "0x00" ? "0x" : l];
4346
4346
  }
4347
4347
  const Bu = {
4348
4348
  gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
@@ -4399,9 +4399,9 @@ function ed(e) {
4399
4399
  t,
4400
4400
  n,
4401
4401
  i ?? "0x",
4402
- l ? Xe(l) : "0x",
4403
- c ? Xe(c) : "0x",
4404
- o ? Xe(o) : "0x",
4402
+ l ? ge(l) : "0x",
4403
+ c ? ge(c) : "0x",
4404
+ o ? ge(o) : "0x",
4405
4405
  a ? "0x1" : "0x",
4406
4406
  r ?? "0x"
4407
4407
  ];
@@ -5264,7 +5264,7 @@ function ly(e, t, r) {
5264
5264
  }
5265
5265
  const x1 = us(void 0);
5266
5266
  x1.displayName = "GlyphUserDataContext";
5267
- const ct = () => {
5267
+ const st = () => {
5268
5268
  const e = wr(y1);
5269
5269
  if (!e) throw new Error("useGlyph must be used within GlyphProvider");
5270
5270
  const t = wr(x1);
@@ -5308,14 +5308,14 @@ const ct = () => {
5308
5308
  return e[t.id] = a, e;
5309
5309
  },
5310
5310
  {}
5311
- ), Xd = (e) => {
5311
+ ), gd = (e) => {
5312
5312
  const t = Hl[e];
5313
5313
  if (!t)
5314
5314
  throw wd.error("unsupported chain id", { chainId: e }), new Error(`No client configured for chain ID: ${e}`);
5315
5315
  return t;
5316
5316
  };
5317
5317
  Hl[$n.id];
5318
- var Xn = /* @__PURE__ */ ((e) => (e.PRIVY = "privy", e.EIP1193 = "eip1193", e))(Xn || {});
5318
+ var gn = /* @__PURE__ */ ((e) => (e.PRIVY = "privy", e.EIP1193 = "eip1193", e))(gn || {});
5319
5319
  const Ci = "privy";
5320
5320
  var Zl = /* @__PURE__ */ ((e) => (e.RAINBOWKIT = "rainbowkit", e.CONNECTKIT = "connectkit", e.THIRDWEB = "thirdweb", e.WAGMI = "wagmi", e.DYNAMIC = "dynamic", e))(Zl || {});
5321
5321
  const $e = {
@@ -5333,7 +5333,7 @@ function nn(e) {
5333
5333
  }
5334
5334
  ) });
5335
5335
  }
5336
- const gd = (e) => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
5336
+ const Xd = (e) => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
5337
5337
  /* @__PURE__ */ s.jsx(
5338
5338
  "path",
5339
5339
  {
@@ -5364,7 +5364,7 @@ function Nt({ className: e, ...t }) {
5364
5364
  return /* @__PURE__ */ s.jsx("div", { className: pe("gw-animate-pulse gw-rounded-md gw-bg-muted", e), ...t });
5365
5365
  }
5366
5366
  const Ld = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
5367
- const { user: n, ready: o, authenticated: a } = ct();
5367
+ const { user: n, ready: o, authenticated: a } = st();
5368
5368
  if (!o || !a)
5369
5369
  return /* @__PURE__ */ s.jsx(Nt, { className: pe("gw-size-10 gw-rounded-full", e) });
5370
5370
  let l = t || (n == null ? void 0 : n.picture) || n1(n == null ? void 0 : n.evmWallet);
@@ -5385,14 +5385,14 @@ const Ld = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
5385
5385
  showUsername: r = !0
5386
5386
  }) => {
5387
5387
  var i, c;
5388
- const { user: n, balances: o } = ct(), a = (c = (i = o == null ? void 0 : o.tokens) == null ? void 0 : i.find) == null ? void 0 : c.call(i, (u) => u.native), l = e && t && r;
5388
+ const { user: n, balances: o } = st(), a = (c = (i = o == null ? void 0 : o.tokens) == null ? void 0 : i.find) == null ? void 0 : c.call(i, (u) => u.native), l = e && t && r;
5389
5389
  return /* @__PURE__ */ s.jsxs(
5390
5390
  "div",
5391
5391
  {
5392
5392
  className: `gw-inline-flex gw-items-center gw-bg-background gw-rounded-full gw-h-[3.25rem] gw-text-foreground gw-font-display gw-font-medium gw-shadow-buttonMd ${e && !(t || r) ? "gw-px-2" : "gw-px-3"}`,
5393
5393
  children: [
5394
5394
  t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
5395
- /* @__PURE__ */ s.jsx("div", { className: pe(l && "max-sm:gw-hidden", "gw-pl-1"), children: /* @__PURE__ */ s.jsx(gd, { className: "gw-size-6" }) }),
5395
+ /* @__PURE__ */ s.jsx("div", { className: pe(l && "max-sm:gw-hidden", "gw-pl-1"), children: /* @__PURE__ */ s.jsx(Xd, { className: "gw-size-6" }) }),
5396
5396
  (a == null ? void 0 : a.value) === void 0 ? /* @__PURE__ */ s.jsx(
5397
5397
  "div",
5398
5398
  {
@@ -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
- }, Xs = Md(
5672
+ }, gs = 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: {
@@ -5685,6 +5685,7 @@ const Pi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Hi = al, M
5685
5685
  },
5686
5686
  size: {
5687
5687
  default: "gw-h-12 gw-px-4 gw-py-3 gw-typography-body1",
5688
+ xsm: "gw-h-7 gw-px-2 gw-text-xs",
5688
5689
  sm: "gw-h-10 gw-px-3 gw-typography-body1",
5689
5690
  lg: "gw-h-14 gw-px-8 gw-typography-body1",
5690
5691
  icon: "gw-h-12 gw-w-10 gw-typography-body1",
@@ -5705,26 +5706,26 @@ const Pi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Hi = al, M
5705
5706
  scale: !1
5706
5707
  }
5707
5708
  }
5708
- ), Me = w.forwardRef(
5709
+ ), Ee = w.forwardRef(
5709
5710
  ({ className: e, variant: t, size: r, shadow: n, scale: o, asChild: a = !1, ...l }, i) => {
5710
5711
  const c = a ? kd : "button";
5711
5712
  return /* @__PURE__ */ s.jsx(
5712
5713
  c,
5713
5714
  {
5714
- className: pe(Xs({ variant: t, size: r, className: e, shadow: n, scale: o })),
5715
+ className: pe(gs({ variant: t, size: r, className: e, shadow: n, scale: o })),
5715
5716
  ref: i,
5716
5717
  ...l
5717
5718
  }
5718
5719
  );
5719
5720
  }
5720
5721
  );
5721
- Me.displayName = "Button";
5722
+ Ee.displayName = "Button";
5722
5723
  const Jl = () => {
5723
- const { login: e, authenticated: t, ready: r } = ct();
5724
- 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: [
5724
+ 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: [
5725
5726
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
5726
5727
  /* @__PURE__ */ s.jsx(N1, { className: "gw-size-4 gw-animate-spin" })
5727
- ] }) }) : /* @__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: [
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: [
5728
5729
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
5729
5730
  /* @__PURE__ */ s.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Sign in with Glyph" })
5730
5731
  ] }) });
@@ -5801,16 +5802,16 @@ function Qd(...e) {
5801
5802
  };
5802
5803
  return r.scopeName = t.scopeName, r;
5803
5804
  }
5804
- var lt = globalThis != null && globalThis.document ? w.useLayoutEffect : () => {
5805
+ var ct = globalThis != null && globalThis.document ? w.useLayoutEffect : () => {
5805
5806
  }, Bd = w[" useId ".trim().toString()] || (() => {
5806
5807
  }), Ad = 0;
5807
5808
  function nr(e) {
5808
5809
  const [t, r] = w.useState(Bd());
5809
- return lt(() => {
5810
+ return ct(() => {
5810
5811
  r((n) => n ?? String(Ad++));
5811
5812
  }, [e]), e || (t ? `radix-${t}` : "");
5812
5813
  }
5813
- var _d = w[" useInsertionEffect ".trim().toString()] || lt;
5814
+ var _d = w[" useInsertionEffect ".trim().toString()] || ct;
5814
5815
  function zr({
5815
5816
  prop: e,
5816
5817
  defaultProp: t,
@@ -5926,7 +5927,7 @@ var s9 = [
5926
5927
  "span",
5927
5928
  "svg",
5928
5929
  "ul"
5929
- ], Ee = s9.reduce((e, t) => {
5930
+ ], Me = s9.reduce((e, t) => {
5930
5931
  const r = /* @__PURE__ */ a1(`Primitive.${t}`), n = w.forwardRef((o, a) => {
5931
5932
  const { asChild: l, ...i } = o, c = l ? r : t;
5932
5933
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s.jsx(c, { ...i, ref: a });
@@ -5968,7 +5969,7 @@ var l9 = "DismissableLayer", Ca = "dismissableLayer.update", c9 = "dismissableLa
5968
5969
  onInteractOutside: l,
5969
5970
  onDismiss: i,
5970
5971
  ...c
5971
- } = e, u = w.useContext(Il), [f, d] = w.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = w.useState({}), x = Ve(t, (O) => d(O)), b = Array.from(u.layers), [N] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), W = b.indexOf(N), L = f ? b.indexOf(f) : -1, X = u.layersWithOutsidePointerEventsDisabled.size > 0, y = L >= W, q = p9((O) => {
5972
+ } = e, u = w.useContext(Il), [f, d] = w.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = w.useState({}), x = Ve(t, (O) => d(O)), b = Array.from(u.layers), [N] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), W = b.indexOf(N), L = f ? b.indexOf(f) : -1, g = u.layersWithOutsidePointerEventsDisabled.size > 0, y = L >= W, q = p9((O) => {
5972
5973
  const R = O.target, j = [...u.branches].some((Y) => Y.contains(R));
5973
5974
  !y || j || (o == null || o(O), l == null || l(O), O.defaultPrevented || i == null || i());
5974
5975
  }, v), F = h9((O) => {
@@ -5988,12 +5989,12 @@ var l9 = "DismissableLayer", Ca = "dismissableLayer.update", c9 = "dismissableLa
5988
5989
  const O = () => m({});
5989
5990
  return document.addEventListener(Ca, O), () => document.removeEventListener(Ca, O);
5990
5991
  }, []), /* @__PURE__ */ s.jsx(
5991
- Ee.div,
5992
+ Me.div,
5992
5993
  {
5993
5994
  ...c,
5994
5995
  ref: x,
5995
5996
  style: {
5996
- pointerEvents: X ? y ? "auto" : "none" : void 0,
5997
+ pointerEvents: g ? y ? "auto" : "none" : void 0,
5997
5998
  ...e.style
5998
5999
  },
5999
6000
  onFocusCapture: xe(e.onFocusCapture, F.onFocusCapture),
@@ -6015,7 +6016,7 @@ var d9 = "DismissableLayerBranch", f9 = w.forwardRef((e, t) => {
6015
6016
  return r.branches.add(a), () => {
6016
6017
  r.branches.delete(a);
6017
6018
  };
6018
- }, [r.branches]), /* @__PURE__ */ s.jsx(Ee.div, { ...e, ref: o });
6019
+ }, [r.branches]), /* @__PURE__ */ s.jsx(Me.div, { ...e, ref: o });
6019
6020
  });
6020
6021
  f9.displayName = d9;
6021
6022
  function p9(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -6070,7 +6071,7 @@ function Ql(e, t, r, { discrete: n }) {
6070
6071
  const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
6071
6072
  t && o.addEventListener(e, t, { once: !0 }), n ? i9(o, a) : o.dispatchEvent(a);
6072
6073
  }
6073
- var $o = "focusScope.autoFocusOnMount", ea = "focusScope.autoFocusOnUnmount", ki = { bubbles: !1, cancelable: !0 }, m9 = "FocusScope", gs = w.forwardRef((e, t) => {
6074
+ var $o = "focusScope.autoFocusOnMount", ea = "focusScope.autoFocusOnUnmount", ki = { bubbles: !1, cancelable: !0 }, m9 = "FocusScope", Xs = w.forwardRef((e, t) => {
6074
6075
  const {
6075
6076
  loop: r = !1,
6076
6077
  trapped: n = !1,
@@ -6088,17 +6089,17 @@ var $o = "focusScope.autoFocusOnMount", ea = "focusScope.autoFocusOnUnmount", ki
6088
6089
  }).current;
6089
6090
  w.useEffect(() => {
6090
6091
  if (n) {
6091
- let b = function(X) {
6092
+ let b = function(g) {
6092
6093
  if (m.paused || !i) return;
6093
- const y = X.target;
6094
+ const y = g.target;
6094
6095
  i.contains(y) ? d.current = y : Sr(d.current, { select: !0 });
6095
- }, N = function(X) {
6096
+ }, N = function(g) {
6096
6097
  if (m.paused || !i) return;
6097
- const y = X.relatedTarget;
6098
+ const y = g.relatedTarget;
6098
6099
  y !== null && (i.contains(y) || Sr(d.current, { select: !0 }));
6099
- }, W = function(X) {
6100
+ }, W = function(g) {
6100
6101
  if (document.activeElement === document.body)
6101
- for (const q of X)
6102
+ for (const q of g)
6102
6103
  q.removedNodes.length > 0 && Sr(i);
6103
6104
  };
6104
6105
  document.addEventListener("focusin", b), document.addEventListener("focusout", N);
@@ -6128,15 +6129,15 @@ var $o = "focusScope.autoFocusOnMount", ea = "focusScope.autoFocusOnUnmount", ki
6128
6129
  if (!r && !n || m.paused) return;
6129
6130
  const N = b.key === "Tab" && !b.altKey && !b.ctrlKey && !b.metaKey, W = document.activeElement;
6130
6131
  if (N && W) {
6131
- const L = b.currentTarget, [X, y] = b9(L);
6132
- X && y ? !b.shiftKey && W === y ? (b.preventDefault(), r && Sr(X, { select: !0 })) : b.shiftKey && W === X && (b.preventDefault(), r && Sr(y, { select: !0 })) : W === L && b.preventDefault();
6132
+ const L = b.currentTarget, [g, y] = b9(L);
6133
+ g && y ? !b.shiftKey && W === y ? (b.preventDefault(), r && Sr(g, { select: !0 })) : b.shiftKey && W === g && (b.preventDefault(), r && Sr(y, { select: !0 })) : W === L && b.preventDefault();
6133
6134
  }
6134
6135
  },
6135
6136
  [r, n, m.paused]
6136
6137
  );
6137
- return /* @__PURE__ */ s.jsx(Ee.div, { tabIndex: -1, ...l, ref: v, onKeyDown: x });
6138
+ return /* @__PURE__ */ s.jsx(Me.div, { tabIndex: -1, ...l, ref: v, onKeyDown: x });
6138
6139
  });
6139
- gs.displayName = m9;
6140
+ Xs.displayName = m9;
6140
6141
  function v9(e, { select: t = !1 } = {}) {
6141
6142
  const r = document.activeElement;
6142
6143
  for (const n of e)
@@ -6199,15 +6200,15 @@ function Ji(e, t) {
6199
6200
  function w9(e) {
6200
6201
  return e.filter((t) => t.tagName !== "A");
6201
6202
  }
6202
- var X9 = "Portal", Ls = w.forwardRef((e, t) => {
6203
+ var g9 = "Portal", Ls = w.forwardRef((e, t) => {
6203
6204
  var i;
6204
6205
  const { container: r, ...n } = e, [o, a] = w.useState(!1);
6205
- lt(() => a(!0), []);
6206
+ ct(() => a(!0), []);
6206
6207
  const l = r || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
6207
- return l ? ds.createPortal(/* @__PURE__ */ s.jsx(Ee.div, { ...n, ref: t }), l) : null;
6208
+ return l ? ds.createPortal(/* @__PURE__ */ s.jsx(Me.div, { ...n, ref: t }), l) : null;
6208
6209
  });
6209
- Ls.displayName = X9;
6210
- function g9(e, t) {
6210
+ Ls.displayName = g9;
6211
+ function X9(e, t) {
6211
6212
  return w.useReducer((r, n) => t[r][n] ?? r, e);
6212
6213
  }
6213
6214
  var Yr = (e) => {
@@ -6216,7 +6217,7 @@ var Yr = (e) => {
6216
6217
  };
6217
6218
  Yr.displayName = "Presence";
6218
6219
  function L9(e) {
6219
- const [t, r] = w.useState(), n = w.useRef(null), o = w.useRef(e), a = w.useRef("none"), l = e ? "mounted" : "unmounted", [i, c] = g9(l, {
6220
+ const [t, r] = w.useState(), n = w.useRef(null), o = w.useRef(e), a = w.useRef("none"), l = e ? "mounted" : "unmounted", [i, c] = X9(l, {
6220
6221
  mounted: {
6221
6222
  UNMOUNT: "unmounted",
6222
6223
  ANIMATION_OUT: "unmountSuspended"
@@ -6232,13 +6233,13 @@ function L9(e) {
6232
6233
  return w.useEffect(() => {
6233
6234
  const u = C1(n.current);
6234
6235
  a.current = i === "mounted" ? u : "none";
6235
- }, [i]), lt(() => {
6236
+ }, [i]), ct(() => {
6236
6237
  const u = n.current, f = o.current;
6237
6238
  if (f !== e) {
6238
6239
  const v = a.current, m = C1(u);
6239
6240
  e ? c("MOUNT") : m === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(f && v !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
6240
6241
  }
6241
- }, [e, c]), lt(() => {
6242
+ }, [e, c]), ct(() => {
6242
6243
  if (t) {
6243
6244
  let u;
6244
6245
  const f = t.ownerDocument.defaultView ?? window, d = (m) => {
@@ -6429,25 +6430,25 @@ function R9(e, t) {
6429
6430
  return e.useMedium(t), _l;
6430
6431
  }
6431
6432
  var $l = j9(), na = function() {
6432
- }, Xo = w.forwardRef(function(e, t) {
6433
+ }, go = w.forwardRef(function(e, t) {
6433
6434
  var r = w.useRef(null), n = w.useState({
6434
6435
  onScrollCapture: na,
6435
6436
  onWheelCapture: na,
6436
6437
  onTouchMoveCapture: na
6437
- }), 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, X = 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);
6438
+ }), 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);
6438
6439
  return w.createElement(
6439
6440
  w.Fragment,
6440
6441
  null,
6441
- f && w.createElement(q, { sideCar: $l, removeScrollBar: u, shards: d, noRelative: m, noIsolation: x, inert: b, setCallbacks: a, allowPinchZoom: !!N, lockRef: r, gapMode: X }),
6442
+ f && w.createElement(q, { sideCar: $l, removeScrollBar: u, shards: d, noRelative: m, noIsolation: x, inert: b, setCallbacks: a, allowPinchZoom: !!N, lockRef: r, gapMode: g }),
6442
6443
  l ? w.cloneElement(w.Children.only(i), rr(rr({}, O), { ref: F })) : w.createElement(L, rr({}, O, { className: c, ref: F }), i)
6443
6444
  );
6444
6445
  });
6445
- Xo.defaultProps = {
6446
+ go.defaultProps = {
6446
6447
  enabled: !0,
6447
6448
  removeScrollBar: !0,
6448
6449
  inert: !1
6449
6450
  };
6450
- Xo.classNames = {
6451
+ go.classNames = {
6451
6452
  fullWidth: M1,
6452
6453
  zeroRight: E1
6453
6454
  };
@@ -6515,14 +6516,14 @@ var K9 = function() {
6515
6516
  right: t[2],
6516
6517
  gap: Math.max(0, n - r + t[2] - t[0])
6517
6518
  };
6518
- }, D9 = e3(), gn = "data-scroll-locked", E9 = function(e, t, r, n) {
6519
+ }, D9 = e3(), Xn = "data-scroll-locked", E9 = function(e, t, r, n) {
6519
6520
  var o = e.left, a = e.top, l = e.right, i = e.gap;
6520
6521
  return r === void 0 && (r = "margin"), `
6521
6522
  .`.concat(V9, ` {
6522
6523
  overflow: hidden `).concat(n, `;
6523
6524
  padding-right: `).concat(i, "px ").concat(n, `;
6524
6525
  }
6525
- body[`).concat(gn, `] {
6526
+ body[`).concat(Xn, `] {
6526
6527
  overflow: hidden `).concat(n, `;
6527
6528
  overscroll-behavior: contain;
6528
6529
  `).concat([
@@ -6555,18 +6556,18 @@ var K9 = function() {
6555
6556
  margin-right: 0 `).concat(n, `;
6556
6557
  }
6557
6558
 
6558
- body[`).concat(gn, `] {
6559
+ body[`).concat(Xn, `] {
6559
6560
  `).concat(O9, ": ").concat(i, `px;
6560
6561
  }
6561
6562
  `);
6562
6563
  }, Mi = function() {
6563
- var e = parseInt(document.body.getAttribute(gn) || "0", 10);
6564
+ var e = parseInt(document.body.getAttribute(Xn) || "0", 10);
6564
6565
  return isFinite(e) ? e : 0;
6565
6566
  }, M9 = function() {
6566
6567
  w.useEffect(function() {
6567
- return document.body.setAttribute(gn, (Mi() + 1).toString()), function() {
6568
+ return document.body.setAttribute(Xn, (Mi() + 1).toString()), function() {
6568
6569
  var e = Mi() - 1;
6569
- e <= 0 ? document.body.removeAttribute(gn) : document.body.setAttribute(gn, e.toString());
6570
+ e <= 0 ? document.body.removeAttribute(Xn) : document.body.setAttribute(Xn, e.toString());
6570
6571
  };
6571
6572
  }, []);
6572
6573
  }, I9 = function(e) {
@@ -6681,7 +6682,7 @@ function a8(e) {
6681
6682
  var i = w.useCallback(function(b, N) {
6682
6683
  if ("touches" in b && b.touches.length === 2 || b.type === "wheel" && b.ctrlKey)
6683
6684
  return !l.current.allowPinchZoom;
6684
- var W = R1(b), L = r.current, X = "deltaX" in b ? b.deltaX : L[0] - W[0], y = "deltaY" in b ? b.deltaY : L[1] - W[1], q, F = b.target, O = Math.abs(X) > Math.abs(y) ? "h" : "v";
6685
+ var W = R1(b), L = r.current, g = "deltaX" in b ? b.deltaX : L[0] - W[0], y = "deltaY" in b ? b.deltaY : L[1] - W[1], q, F = b.target, O = Math.abs(g) > Math.abs(y) ? "h" : "v";
6685
6686
  if ("touches" in b && O === "h" && F.type === "range")
6686
6687
  return !1;
6687
6688
  var R = Ii(O, F);
@@ -6689,10 +6690,10 @@ function a8(e) {
6689
6690
  return !0;
6690
6691
  if (R ? q = O : (q = O === "v" ? "h" : "v", R = Ii(O, F)), !R)
6691
6692
  return !1;
6692
- if (!n.current && "changedTouches" in b && (X || y) && (n.current = q), !q)
6693
+ if (!n.current && "changedTouches" in b && (g || y) && (n.current = q), !q)
6693
6694
  return !0;
6694
6695
  var j = n.current || q;
6695
- return t8(j, N, b, j === "h" ? X : y);
6696
+ return t8(j, N, b, j === "h" ? g : y);
6696
6697
  }, []), c = w.useCallback(function(b) {
6697
6698
  var N = b;
6698
6699
  if (!(!mn.length || mn[mn.length - 1] !== a)) {
@@ -6704,17 +6705,17 @@ function a8(e) {
6704
6705
  return;
6705
6706
  }
6706
6707
  if (!L) {
6707
- var X = (l.current.shards || []).map(Bi).filter(Boolean).filter(function(q) {
6708
+ var g = (l.current.shards || []).map(Bi).filter(Boolean).filter(function(q) {
6708
6709
  return q.contains(N.target);
6709
- }), y = X.length > 0 ? i(N, X[0]) : !l.current.noIsolation;
6710
+ }), y = g.length > 0 ? i(N, g[0]) : !l.current.noIsolation;
6710
6711
  y && N.cancelable && N.preventDefault();
6711
6712
  }
6712
6713
  }
6713
6714
  }, []), u = w.useCallback(function(b, N, W, L) {
6714
- var X = { name: b, delta: N, target: W, should: L, shadowParent: s8(W) };
6715
- t.current.push(X), setTimeout(function() {
6715
+ var g = { name: b, delta: N, target: W, should: L, shadowParent: s8(W) };
6716
+ t.current.push(g), setTimeout(function() {
6716
6717
  t.current = t.current.filter(function(y) {
6717
- return y !== X;
6718
+ return y !== g;
6718
6719
  });
6719
6720
  }, 1);
6720
6721
  }, []), f = w.useCallback(function(b) {
@@ -6749,10 +6750,10 @@ function s8(e) {
6749
6750
  return t;
6750
6751
  }
6751
6752
  const i8 = R9($l, a8);
6752
- var go = w.forwardRef(function(e, t) {
6753
- return w.createElement(Xo, rr({}, e, { ref: t, sideCar: i8 }));
6753
+ var Xo = w.forwardRef(function(e, t) {
6754
+ return w.createElement(go, rr({}, e, { ref: t, sideCar: i8 }));
6754
6755
  });
6755
- go.classNames = Xo.classNames;
6756
+ Xo.classNames = go.classNames;
6756
6757
  var l8 = function(e) {
6757
6758
  if (typeof document > "u")
6758
6759
  return null;
@@ -6837,7 +6838,7 @@ var i3 = "DialogTrigger", l3 = w.forwardRef(
6837
6838
  (e, t) => {
6838
6839
  const { __scopeDialog: r, ...n } = e, o = Bt(i3, r), a = Ve(t, o.triggerRef);
6839
6840
  return /* @__PURE__ */ s.jsx(
6840
- Ee.button,
6841
+ Me.button,
6841
6842
  {
6842
6843
  type: "button",
6843
6844
  "aria-haspopup": "dialog",
@@ -6872,8 +6873,8 @@ var p8 = /* @__PURE__ */ a1("DialogOverlay.RemoveScroll"), h8 = w.forwardRef(
6872
6873
  return (
6873
6874
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
6874
6875
  // ie. when `Overlay` and `Content` are siblings
6875
- /* @__PURE__ */ s.jsx(go, { as: p8, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s.jsx(
6876
- Ee.div,
6876
+ /* @__PURE__ */ s.jsx(Xo, { as: p8, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s.jsx(
6877
+ Me.div,
6877
6878
  {
6878
6879
  "data-state": Fs(o.open),
6879
6880
  ...n,
@@ -6946,7 +6947,7 @@ var m8 = w.forwardRef(
6946
6947
  const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: a, ...l } = e, i = Bt(on, r), c = w.useRef(null), u = Ve(t, c);
6947
6948
  return Ws(), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6948
6949
  /* @__PURE__ */ s.jsx(
6949
- gs,
6950
+ Xs,
6950
6951
  {
6951
6952
  asChild: !0,
6952
6953
  loop: !0,
@@ -6977,14 +6978,14 @@ var m8 = w.forwardRef(
6977
6978
  ), Os = "DialogTitle", h3 = w.forwardRef(
6978
6979
  (e, t) => {
6979
6980
  const { __scopeDialog: r, ...n } = e, o = Bt(Os, r);
6980
- return /* @__PURE__ */ s.jsx(Ee.h2, { id: o.titleId, ...n, ref: t });
6981
+ return /* @__PURE__ */ s.jsx(Me.h2, { id: o.titleId, ...n, ref: t });
6981
6982
  }
6982
6983
  );
6983
6984
  h3.displayName = Os;
6984
6985
  var m3 = "DialogDescription", v3 = w.forwardRef(
6985
6986
  (e, t) => {
6986
6987
  const { __scopeDialog: r, ...n } = e, o = Bt(m3, r);
6987
- return /* @__PURE__ */ s.jsx(Ee.p, { id: o.descriptionId, ...n, ref: t });
6988
+ return /* @__PURE__ */ s.jsx(Me.p, { id: o.descriptionId, ...n, ref: t });
6988
6989
  }
6989
6990
  );
6990
6991
  v3.displayName = m3;
@@ -6992,7 +6993,7 @@ var b3 = "DialogClose", b8 = w.forwardRef(
6992
6993
  (e, t) => {
6993
6994
  const { __scopeDialog: r, ...n } = e, o = Bt(b3, r);
6994
6995
  return /* @__PURE__ */ s.jsx(
6995
- Ee.button,
6996
+ Me.button,
6996
6997
  {
6997
6998
  type: "button",
6998
6999
  ...n,
@@ -7026,7 +7027,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
7026
7027
  const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
7027
7028
  t && o && (document.getElementById(t) || console.warn(n));
7028
7029
  }, [n, e, t]), null;
7029
- }, w8 = s3, X8 = l3, g8 = u3, L8 = d3, W8 = f3, q8 = h3, V8 = v3;
7030
+ }, w8 = s3, g8 = l3, X8 = u3, L8 = d3, W8 = f3, q8 = h3, V8 = v3;
7030
7031
  function O8(e) {
7031
7032
  if (typeof document > "u") return;
7032
7033
  let t = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
@@ -7079,7 +7080,7 @@ const N3 = S.createContext({
7079
7080
  noBodyStyles: !1,
7080
7081
  container: null,
7081
7082
  autoFocus: !1
7082
- }), X1 = () => {
7083
+ }), g1 = () => {
7083
7084
  const e = S.useContext(N3);
7084
7085
  if (!e)
7085
7086
  throw new Error("useDrawerContext must be used within a Drawer.Root");
@@ -7124,7 +7125,7 @@ function $i(e) {
7124
7125
  let t = window.getComputedStyle(e);
7125
7126
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
7126
7127
  }
7127
- function X3(e) {
7128
+ function g3(e) {
7128
7129
  for ($i(e) && (e = e.parentElement); e && !$i(e); )
7129
7130
  e = e.parentElement;
7130
7131
  return e || document.scrollingElement || document.documentElement;
@@ -7154,7 +7155,7 @@ function z8(e = {}) {
7154
7155
  }
7155
7156
  function P8() {
7156
7157
  let e, t = 0, r = (d) => {
7157
- e = X3(d.target), !(e === document.documentElement && e === document.body) && (t = d.changedTouches[0].pageY);
7158
+ e = g3(d.target), !(e === document.documentElement && e === document.body) && (t = d.changedTouches[0].pageY);
7158
7159
  }, n = (d) => {
7159
7160
  if (!e || e === document.documentElement || e === document.body) {
7160
7161
  d.preventDefault();
@@ -7208,7 +7209,7 @@ function En(e, t, r, n) {
7208
7209
  function e2(e) {
7209
7210
  let t = document.scrollingElement || document.documentElement;
7210
7211
  for (; e && e !== t; ) {
7211
- let r = X3(e);
7212
+ let r = g3(e);
7212
7213
  if (r !== document.documentElement && r !== document.body && r !== e) {
7213
7214
  let n = r.getBoundingClientRect().top, o = e.getBoundingClientRect().top, a = e.getBoundingClientRect().bottom;
7214
7215
  const l = r.getBoundingClientRect().bottom + C8;
@@ -7226,7 +7227,7 @@ function Z8(e, t) {
7226
7227
  function K8(...e) {
7227
7228
  return (t) => e.forEach((r) => Z8(r, t));
7228
7229
  }
7229
- function g3(...e) {
7230
+ function X3(...e) {
7230
7231
  return w.useCallback(K8(...e), e);
7231
7232
  }
7232
7233
  const L3 = /* @__PURE__ */ new WeakMap();
@@ -7246,7 +7247,7 @@ function k8(e, t) {
7246
7247
  let r = L3.get(e);
7247
7248
  r && (e.style[t] = r[t]);
7248
7249
  }
7249
- const it = (e) => {
7250
+ const lt = (e) => {
7250
7251
  switch (e) {
7251
7252
  case "top":
7252
7253
  case "bottom":
@@ -7266,7 +7267,7 @@ function Z1(e, t) {
7266
7267
  r.transform || r.webkitTransform || r.mozTransform
7267
7268
  );
7268
7269
  let o = n.match(/^matrix3d\((.+)\)$/);
7269
- return o ? parseFloat(o[1].split(", ")[it(t) ? 13 : 12]) : (o = n.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[it(t) ? 5 : 4]) : null);
7270
+ return o ? parseFloat(o[1].split(", ")[lt(t) ? 13 : 12]) : (o = n.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[lt(t) ? 5 : 4]) : null);
7270
7271
  }
7271
7272
  function Y8(e) {
7272
7273
  return 8 * (Math.log(e + 1) - 2);
@@ -7374,7 +7375,7 @@ function M8({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: r,
7374
7375
  return (R = r == null ? void 0 : r.map((j) => {
7375
7376
  const Y = typeof j == "string";
7376
7377
  let U = 0;
7377
- if (Y && (U = parseInt(j, 10)), it(i)) {
7378
+ if (Y && (U = parseInt(j, 10)), lt(i)) {
7378
7379
  const H = Y ? U : v ? j * O.height : 0;
7379
7380
  return v ? i === "bottom" ? O.height - H : -O.height + H : H;
7380
7381
  }
@@ -7388,12 +7389,12 @@ function M8({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: r,
7388
7389
  ]), L = S.useMemo(() => b !== null ? W == null ? void 0 : W[b] : null, [
7389
7390
  W,
7390
7391
  b
7391
- ]), X = S.useCallback((O) => {
7392
+ ]), g = S.useCallback((O) => {
7392
7393
  var R;
7393
7394
  const j = (R = W == null ? void 0 : W.findIndex((Y) => Y === O)) != null ? R : null;
7394
7395
  l(j), ut(n.current, {
7395
7396
  transition: `transform ${et.DURATION}s cubic-bezier(${et.EASE.join(",")})`,
7396
- transform: it(i) ? `translate3d(0, ${O}px, 0)` : `translate3d(${O}px, 0, 0)`
7397
+ transform: lt(i) ? `translate3d(0, ${O}px, 0)` : `translate3d(${O}px, 0, 0)`
7397
7398
  }), W && j !== W.length - 1 && a !== void 0 && j !== a && j < a ? ut(o.current, {
7398
7399
  transition: `opacity ${et.DURATION}s cubic-bezier(${et.EASE.join(",")})`,
7399
7400
  opacity: "0"
@@ -7413,14 +7414,14 @@ function M8({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: r,
7413
7414
  if (f || e) {
7414
7415
  var O;
7415
7416
  const R = (O = r == null ? void 0 : r.findIndex((j) => j === e || j === f)) != null ? O : -1;
7416
- W && R !== -1 && typeof W[R] == "number" && X(W[R]);
7417
+ W && R !== -1 && typeof W[R] == "number" && g(W[R]);
7417
7418
  }
7418
7419
  }, [
7419
7420
  f,
7420
7421
  e,
7421
7422
  r,
7422
7423
  W,
7423
- X
7424
+ g
7424
7425
  ]);
7425
7426
  function y({ draggedDistance: O, closeDrawer: R, velocity: j, dismissible: Y }) {
7426
7427
  if (a === void 0) return;
@@ -7428,31 +7429,31 @@ function M8({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: r,
7428
7429
  if (K && ut(o.current, {
7429
7430
  transition: `opacity ${et.DURATION}s cubic-bezier(${et.EASE.join(",")})`
7430
7431
  }), !u && j > 2 && !E) {
7431
- Y ? R() : X(W[0]);
7432
+ Y ? R() : g(W[0]);
7432
7433
  return;
7433
7434
  }
7434
7435
  if (!u && j > 2 && E && W && r) {
7435
- X(W[r.length - 1]);
7436
+ g(W[r.length - 1]);
7436
7437
  return;
7437
7438
  }
7438
- const P = W == null ? void 0 : W.reduce((Z, G) => typeof Z != "number" || typeof G != "number" ? Z : Math.abs(G - U) < Math.abs(Z - U) ? G : Z), C = it(i) ? window.innerHeight : window.innerWidth;
7439
+ const P = W == null ? void 0 : W.reduce((Z, G) => typeof Z != "number" || typeof G != "number" ? Z : Math.abs(G - U) < Math.abs(Z - U) ? G : Z), C = lt(i) ? window.innerHeight : window.innerWidth;
7439
7440
  if (j > W3 && Math.abs(O) < C * 0.4) {
7440
7441
  const Z = E ? 1 : -1;
7441
7442
  if (Z > 0 && x && r) {
7442
- X(W[r.length - 1]);
7443
+ g(W[r.length - 1]);
7443
7444
  return;
7444
7445
  }
7445
7446
  if (H && Z < 0 && Y && R(), b === null) return;
7446
- X(W[b + Z]);
7447
+ g(W[b + Z]);
7447
7448
  return;
7448
7449
  }
7449
- X(P);
7450
+ g(P);
7450
7451
  }
7451
7452
  function q({ draggedDistance: O }) {
7452
7453
  if (L === null) return;
7453
7454
  const R = i === "bottom" || i === "right" ? L - O : L + O;
7454
7455
  (i === "bottom" || i === "right") && R < W[W.length - 1] || (i === "top" || i === "left") && R > W[W.length - 1] || ut(n.current, {
7455
- transform: it(i) ? `translate3d(0, ${R}px, 0)` : `translate3d(${R}px, 0, 0)`
7456
+ transform: lt(i) ? `translate3d(0, ${R}px, 0)` : `translate3d(${R}px, 0, 0)`
7456
7457
  });
7457
7458
  }
7458
7459
  function F(O, R) {
@@ -7480,7 +7481,7 @@ function M8({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: r,
7480
7481
  const I8 = () => () => {
7481
7482
  };
7482
7483
  function Q8() {
7483
- const { direction: e, isOpen: t, shouldScaleBackground: r, setBackgroundColorOnScale: n, noBodyStyles: o } = X1(), a = S.useRef(null), l = wt(() => document.body.style.backgroundColor, []);
7484
+ const { direction: e, isOpen: t, shouldScaleBackground: r, setBackgroundColorOnScale: n, noBodyStyles: o } = g1(), a = S.useRef(null), l = wt(() => document.body.style.backgroundColor, []);
7484
7485
  function i() {
7485
7486
  return (window.innerWidth - za) / window.innerWidth;
7486
7487
  }
@@ -7492,7 +7493,7 @@ function Q8() {
7492
7493
  G8(n && !o ? la(document.body, {
7493
7494
  background: "black"
7494
7495
  }) : I8, la(c, {
7495
- transformOrigin: it(e) ? "top" : "left",
7496
+ transformOrigin: lt(e) ? "top" : "left",
7496
7497
  transitionProperty: "transform, border-radius",
7497
7498
  transitionDuration: `${et.DURATION}s`,
7498
7499
  transitionTimingFunction: `cubic-bezier(${et.EASE.join(",")})`
@@ -7500,7 +7501,7 @@ function Q8() {
7500
7501
  const u = la(c, {
7501
7502
  borderRadius: `${q3}px`,
7502
7503
  overflow: "hidden",
7503
- ...it(e) ? {
7504
+ ...lt(e) ? {
7504
7505
  transform: `scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
7505
7506
  } : {
7506
7507
  transform: `scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
@@ -7587,13 +7588,13 @@ function B8({ isOpen: e, modal: t, nested: r, hasBeenOpened: n, preventScrollRes
7587
7588
  restorePositionSetting: f
7588
7589
  };
7589
7590
  }
7590
- function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, snapPoints: a, shouldScaleBackground: l = !1, setBackgroundColorOnScale: i = !0, closeThreshold: c = J8, scrollLockTimeout: u = D8, dismissible: f = !0, handleOnly: d = !1, fadeFromIndex: v = a && a.length - 1, activeSnapPoint: m, setActiveSnapPoint: x, fixed: b, modal: N = !0, onClose: W, nested: L, noBodyStyles: X = !1, direction: y = "bottom", defaultOpen: q = !1, disablePreventScroll: F = !0, snapToSequentialPoint: O = !1, preventScrollRestoration: R = !1, repositionInputs: j = !0, onAnimationEnd: Y, container: U, autoFocus: K = !1 }) {
7591
+ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, snapPoints: a, shouldScaleBackground: l = !1, setBackgroundColorOnScale: i = !0, closeThreshold: c = J8, scrollLockTimeout: u = D8, dismissible: f = !0, handleOnly: d = !1, fadeFromIndex: v = a && a.length - 1, activeSnapPoint: m, setActiveSnapPoint: x, fixed: b, modal: N = !0, onClose: W, nested: L, noBodyStyles: g = !1, direction: y = "bottom", defaultOpen: q = !1, disablePreventScroll: F = !0, snapToSequentialPoint: O = !1, preventScrollRestoration: R = !1, repositionInputs: j = !0, onAnimationEnd: Y, container: U, autoFocus: K = !1 }) {
7591
7592
  var H, E;
7592
7593
  const [P = !1, C] = O3({
7593
7594
  defaultProp: q,
7594
7595
  prop: e,
7595
7596
  onChange: (ce) => {
7596
- t == null || t(ce), !ce && !L && g(), setTimeout(() => {
7597
+ t == null || t(ce), !ce && !L && X(), setTimeout(() => {
7597
7598
  Y == null || Y(ce);
7598
7599
  }, et.DURATION * 1e3), ce && !N && typeof window < "u" && window.requestAnimationFrame(() => {
7599
7600
  document.body.style.pointerEvents = "auto";
@@ -7616,13 +7617,13 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7616
7617
  z8({
7617
7618
  isDisabled: !P || J || !N || D || !Z || !j || !F
7618
7619
  });
7619
- const { restorePositionSetting: g } = B8({
7620
+ const { restorePositionSetting: X } = B8({
7620
7621
  isOpen: P,
7621
7622
  modal: N,
7622
7623
  nested: L ?? !1,
7623
7624
  hasBeenOpened: Z,
7624
7625
  preventScrollRestoration: R,
7625
- noBodyStyles: X
7626
+ noBodyStyles: g
7626
7627
  });
7627
7628
  function p() {
7628
7629
  return (window.innerWidth - za) / window.innerWidth;
@@ -7631,7 +7632,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7631
7632
  var we, Se;
7632
7633
  !f && !a || te.current && !te.current.contains(ce.target) || (Pe.current = ((we = te.current) == null ? void 0 : we.getBoundingClientRect().height) || 0, Ce.current = ((Se = te.current) == null ? void 0 : Se.getBoundingClientRect().width) || 0, Q(!0), I.current = /* @__PURE__ */ new Date(), w3() && window.addEventListener("touchend", () => ae.current = !1, {
7633
7634
  once: !0
7634
- }), ce.target.setPointerCapture(ce.pointerId), se.current = it(y) ? ce.pageY : ce.pageX);
7635
+ }), ce.target.setPointerCapture(ce.pointerId), se.current = lt(y) ? ce.pageY : ce.pageX);
7635
7636
  }
7636
7637
  function V(ce, we) {
7637
7638
  var Se;
@@ -7662,7 +7663,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7662
7663
  }
7663
7664
  function z(ce) {
7664
7665
  if (te.current && J) {
7665
- const we = y === "bottom" || y === "right" ? 1 : -1, Se = (se.current - (it(y) ? ce.pageY : ce.pageX)) * we, Ne = Se > 0, Ge = a && !f && !Ne;
7666
+ const we = y === "bottom" || y === "right" ? 1 : -1, Se = (se.current - (lt(y) ? ce.pageY : ce.pageX)) * we, Ne = Se > 0, Ge = a && !f && !Ne;
7666
7667
  if (Ge && ht === 0) return;
7667
7668
  const de = Math.abs(Se), Le = document.querySelector("[data-vaul-drawer-wrapper]"), Je = y === "bottom" || y === "top" ? Pe.current : Ce.current;
7668
7669
  let Ze = de / Je;
@@ -7677,7 +7678,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7677
7678
  }), Ne && !a) {
7678
7679
  const Ie = Y8(Se), zt = Math.min(Ie * -1, 0) * we;
7679
7680
  ut(te.current, {
7680
- transform: it(y) ? `translate3d(0, ${zt}px, 0)` : `translate3d(${zt}px, 0, 0)`
7681
+ transform: lt(y) ? `translate3d(0, ${zt}px, 0)` : `translate3d(${zt}px, 0, 0)`
7681
7682
  });
7682
7683
  return;
7683
7684
  }
@@ -7689,14 +7690,14 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7689
7690
  const Ie = Math.min(p() + Ze * (1 - p()), 1), zt = 8 - Ze * 8, ft = Math.max(0, 14 - Ze * 14);
7690
7691
  ut(Le, {
7691
7692
  borderRadius: `${zt}px`,
7692
- transform: it(y) ? `scale(${Ie}) translate3d(0, ${ft}px, 0)` : `scale(${Ie}) translate3d(${ft}px, 0, 0)`,
7693
+ transform: lt(y) ? `scale(${Ie}) translate3d(0, ${ft}px, 0)` : `scale(${Ie}) translate3d(${ft}px, 0, 0)`,
7693
7694
  transition: "none"
7694
7695
  }, !0);
7695
7696
  }
7696
7697
  if (!a) {
7697
7698
  const Ie = de * we;
7698
7699
  ut(te.current, {
7699
- transform: it(y) ? `translate3d(0, ${Ie}px, 0)` : `translate3d(${Ie}px, 0, 0)`
7700
+ transform: lt(y) ? `translate3d(0, ${Ie}px, 0)` : `translate3d(${Ie}px, 0, 0)`
7700
7701
  });
7701
7702
  }
7702
7703
  }
@@ -7755,7 +7756,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7755
7756
  }), l && we && we > 0 && P && ut(ce, {
7756
7757
  borderRadius: `${q3}px`,
7757
7758
  overflow: "hidden",
7758
- ...it(y) ? {
7759
+ ...lt(y) ? {
7759
7760
  transform: `scale(${p()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
7760
7761
  transformOrigin: "top"
7761
7762
  } : {
@@ -7775,7 +7776,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7775
7776
  te.current.classList.remove(ca), ae.current = !1, Q(!1), ne.current = /* @__PURE__ */ new Date();
7776
7777
  const we = Z1(te.current, y);
7777
7778
  if (!ce || !V(ce.target, !1) || !we || Number.isNaN(we) || I.current === null) return;
7778
- const Se = ne.current.getTime() - I.current.getTime(), Ne = se.current - (it(y) ? ce.pageY : ce.pageX), Ge = Math.abs(Ne) / Se;
7779
+ const Se = ne.current.getTime() - I.current.getTime(), Ne = se.current - (lt(y) ? ce.pageY : ce.pageX), Ge = Math.abs(Ne) / Se;
7779
7780
  if (Ge > 0.05 && (A(!0), setTimeout(() => {
7780
7781
  A(!1);
7781
7782
  }, 200)), a) {
@@ -7816,12 +7817,12 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7816
7817
  const we = ce ? (window.innerWidth - K1) / window.innerWidth : 1, Se = ce ? -16 : 0;
7817
7818
  he.current && window.clearTimeout(he.current), ut(te.current, {
7818
7819
  transition: `transform ${et.DURATION}s cubic-bezier(${et.EASE.join(",")})`,
7819
- transform: it(y) ? `scale(${we}) translate3d(0, ${Se}px, 0)` : `scale(${we}) translate3d(${Se}px, 0, 0)`
7820
+ transform: lt(y) ? `scale(${we}) translate3d(0, ${Se}px, 0)` : `scale(${we}) translate3d(${Se}px, 0, 0)`
7820
7821
  }), !ce && te.current && (he.current = setTimeout(() => {
7821
7822
  const Ne = Z1(te.current, y);
7822
7823
  ut(te.current, {
7823
7824
  transition: "none",
7824
- transform: it(y) ? `translate3d(0, ${Ne}px, 0)` : `translate3d(${Ne}px, 0, 0)`
7825
+ transform: lt(y) ? `translate3d(0, ${Ne}px, 0)` : `translate3d(${Ne}px, 0, 0)`
7825
7826
  });
7826
7827
  }, 500));
7827
7828
  }
@@ -7829,15 +7830,15 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7829
7830
  if (we < 0) return;
7830
7831
  const Se = (window.innerWidth - K1) / window.innerWidth, Ne = Se + we * (1 - Se), Ge = -16 + we * K1;
7831
7832
  ut(te.current, {
7832
- transform: it(y) ? `scale(${Ne}) translate3d(0, ${Ge}px, 0)` : `scale(${Ne}) translate3d(${Ge}px, 0, 0)`,
7833
+ transform: lt(y) ? `scale(${Ne}) translate3d(0, ${Ge}px, 0)` : `scale(${Ne}) translate3d(${Ge}px, 0, 0)`,
7833
7834
  transition: "none"
7834
7835
  });
7835
7836
  }
7836
- function ge(ce, we) {
7837
- const Se = it(y) ? window.innerHeight : window.innerWidth, Ne = we ? (Se - K1) / Se : 1, Ge = we ? -16 : 0;
7837
+ function Xe(ce, we) {
7838
+ const Se = lt(y) ? window.innerHeight : window.innerWidth, Ne = we ? (Se - K1) / Se : 1, Ge = we ? -16 : 0;
7838
7839
  we && ut(te.current, {
7839
7840
  transition: `transform ${et.DURATION}s cubic-bezier(${et.EASE.join(",")})`,
7840
- transform: it(y) ? `scale(${Ne}) translate3d(0, ${Ge}px, 0)` : `scale(${Ne}) translate3d(${Ge}px, 0, 0)`
7841
+ transform: lt(y) ? `scale(${Ne}) translate3d(0, ${Ge}px, 0)` : `scale(${Ne}) translate3d(${Ge}px, 0, 0)`
7841
7842
  });
7842
7843
  }
7843
7844
  return S.useEffect(() => {
@@ -7872,7 +7873,7 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7872
7873
  closeDrawer: k,
7873
7874
  onNestedDrag: He,
7874
7875
  onNestedOpenChange: je,
7875
- onNestedRelease: ge,
7876
+ onNestedRelease: Xe,
7876
7877
  keyboardIsOpen: ie,
7877
7878
  modal: N,
7878
7879
  snapPointsOffset: Te,
@@ -7880,14 +7881,14 @@ function A8({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
7880
7881
  direction: y,
7881
7882
  shouldScaleBackground: l,
7882
7883
  setBackgroundColorOnScale: i,
7883
- noBodyStyles: X,
7884
+ noBodyStyles: g,
7884
7885
  container: U,
7885
7886
  autoFocus: K
7886
7887
  }
7887
7888
  }, r));
7888
7889
  }
7889
7890
  const F3 = /* @__PURE__ */ S.forwardRef(function({ ...e }, t) {
7890
- const { overlayRef: r, snapPoints: n, onRelease: o, shouldFade: a, isOpen: l, modal: i, shouldAnimate: c } = X1(), u = g3(t, r), f = n && n.length > 0;
7891
+ const { overlayRef: r, snapPoints: n, onRelease: o, shouldFade: a, isOpen: l, modal: i, shouldAnimate: c } = g1(), u = X3(t, r), f = n && n.length > 0;
7891
7892
  if (!i)
7892
7893
  return null;
7893
7894
  const d = S.useCallback((v) => o(v), [
@@ -7905,7 +7906,7 @@ const F3 = /* @__PURE__ */ S.forwardRef(function({ ...e }, t) {
7905
7906
  });
7906
7907
  F3.displayName = "Drawer.Overlay";
7907
7908
  const T3 = /* @__PURE__ */ S.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: r, ...n }, o) {
7908
- const { drawerRef: a, onPress: l, onRelease: i, onDrag: c, keyboardIsOpen: u, snapPointsOffset: f, activeSnapPointIndex: d, modal: v, isOpen: m, direction: x, snapPoints: b, container: N, handleOnly: W, shouldAnimate: L, autoFocus: X } = X1(), [y, q] = S.useState(!1), F = g3(o, a), O = S.useRef(null), R = S.useRef(null), j = S.useRef(!1), Y = b && b.length > 0;
7909
+ const { drawerRef: a, onPress: l, onRelease: i, onDrag: c, keyboardIsOpen: u, snapPointsOffset: f, activeSnapPointIndex: d, modal: v, isOpen: m, direction: x, snapPoints: b, container: N, handleOnly: W, shouldAnimate: L, autoFocus: g } = g1(), [y, q] = S.useState(!1), F = X3(o, a), O = S.useRef(null), R = S.useRef(null), j = S.useRef(!1), Y = b && b.length > 0;
7909
7910
  Q8();
7910
7911
  const U = (H, E, P = 0) => {
7911
7912
  if (j.current) return !0;
@@ -7948,7 +7949,7 @@ const T3 = /* @__PURE__ */ S.forwardRef(function({ onPointerDownOutside: e, styl
7948
7949
  }, l(H));
7949
7950
  },
7950
7951
  onOpenAutoFocus: (H) => {
7951
- r == null || r(H), X || H.preventDefault();
7952
+ r == null || r(H), g || H.preventDefault();
7952
7953
  },
7953
7954
  onPointerDownOutside: (H) => {
7954
7955
  if (e == null || e(H), !v || H.defaultPrevented) {
@@ -7984,10 +7985,10 @@ const T3 = /* @__PURE__ */ S.forwardRef(function({ onPointerDownOutside: e, styl
7984
7985
  });
7985
7986
  T3.displayName = "Drawer.Content";
7986
7987
  const _8 = 250, $8 = 120, S3 = /* @__PURE__ */ S.forwardRef(function({ preventCycle: e = !1, children: t, ...r }, n) {
7987
- const { closeDrawer: o, isDragging: a, snapPoints: l, activeSnapPoint: i, setActiveSnapPoint: c, dismissible: u, handleOnly: f, isOpen: d, onPress: v, onDrag: m } = X1(), x = S.useRef(null), b = S.useRef(!1);
7988
+ const { closeDrawer: o, isDragging: a, snapPoints: l, activeSnapPoint: i, setActiveSnapPoint: c, dismissible: u, handleOnly: f, isOpen: d, onPress: v, onDrag: m } = g1(), x = S.useRef(null), b = S.useRef(!1);
7988
7989
  function N() {
7989
7990
  if (b.current) {
7990
- X();
7991
+ g();
7991
7992
  return;
7992
7993
  }
7993
7994
  window.setTimeout(() => {
@@ -7996,10 +7997,10 @@ const _8 = 250, $8 = 120, S3 = /* @__PURE__ */ S.forwardRef(function({ preventCy
7996
7997
  }
7997
7998
  function W() {
7998
7999
  if (a || e || b.current) {
7999
- X();
8000
+ g();
8000
8001
  return;
8001
8002
  }
8002
- if (X(), !l || l.length === 0) {
8003
+ if (g(), !l || l.length === 0) {
8003
8004
  u || o();
8004
8005
  return;
8005
8006
  }
@@ -8017,12 +8018,12 @@ const _8 = 250, $8 = 120, S3 = /* @__PURE__ */ S.forwardRef(function({ preventCy
8017
8018
  b.current = !0;
8018
8019
  }, _8);
8019
8020
  }
8020
- function X() {
8021
+ function g() {
8021
8022
  x.current && window.clearTimeout(x.current), b.current = !1;
8022
8023
  }
8023
8024
  return /* @__PURE__ */ S.createElement("div", {
8024
8025
  onClick: N,
8025
- onPointerCancel: X,
8026
+ onPointerCancel: g,
8026
8027
  onPointerDown: (y) => {
8027
8028
  f && v(y), L();
8028
8029
  },
@@ -8042,8 +8043,8 @@ const _8 = 250, $8 = 120, S3 = /* @__PURE__ */ S.forwardRef(function({ preventCy
8042
8043
  });
8043
8044
  S3.displayName = "Drawer.Handle";
8044
8045
  function e4(e) {
8045
- const t = X1(), { container: r = t.container, ...n } = e;
8046
- return /* @__PURE__ */ S.createElement(g8, {
8046
+ const t = g1(), { container: r = t.container, ...n } = e;
8047
+ return /* @__PURE__ */ S.createElement(X8, {
8047
8048
  container: r,
8048
8049
  ...n
8049
8050
  });
@@ -8052,7 +8053,7 @@ const At = {
8052
8053
  Root: A8,
8053
8054
  Content: T3,
8054
8055
  Overlay: F3,
8055
- Trigger: X8,
8056
+ Trigger: g8,
8056
8057
  Portal: e4,
8057
8058
  Handle: S3,
8058
8059
  Title: q8,
@@ -8164,7 +8165,7 @@ var s4 = "DismissableLayer", Pa = "dismissableLayer.update", i4 = "dismissableLa
8164
8165
  onInteractOutside: l,
8165
8166
  onDismiss: i,
8166
8167
  ...c
8167
- } = e, u = w.useContext(P3), [f, d] = w.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = w.useState({}), x = Ve(t, (O) => d(O)), b = Array.from(u.layers), [N] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), W = b.indexOf(N), L = f ? b.indexOf(f) : -1, X = u.layersWithOutsidePointerEventsDisabled.size > 0, y = L >= W, q = d4((O) => {
8168
+ } = e, u = w.useContext(P3), [f, d] = w.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = w.useState({}), x = Ve(t, (O) => d(O)), b = Array.from(u.layers), [N] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), W = b.indexOf(N), L = f ? b.indexOf(f) : -1, g = u.layersWithOutsidePointerEventsDisabled.size > 0, y = L >= W, q = d4((O) => {
8168
8169
  const R = O.target, j = [...u.branches].some((Y) => Y.contains(R));
8169
8170
  !y || j || (o == null || o(O), l == null || l(O), O.defaultPrevented || i == null || i());
8170
8171
  }, v), F = f4((O) => {
@@ -8189,7 +8190,7 @@ var s4 = "DismissableLayer", Pa = "dismissableLayer.update", i4 = "dismissableLa
8189
8190
  ...c,
8190
8191
  ref: x,
8191
8192
  style: {
8192
- pointerEvents: X ? y ? "auto" : "none" : void 0,
8193
+ pointerEvents: g ? y ? "auto" : "none" : void 0,
8193
8194
  ...e.style
8194
8195
  },
8195
8196
  onFocusCapture: xe(e.onFocusCapture, F.onFocusCapture),
@@ -8284,17 +8285,17 @@ var ua = "focusScope.autoFocusOnMount", da = "focusScope.autoFocusOnUnmount", n2
8284
8285
  }).current;
8285
8286
  w.useEffect(() => {
8286
8287
  if (n) {
8287
- let b = function(X) {
8288
+ let b = function(g) {
8288
8289
  if (m.paused || !i) return;
8289
- const y = X.target;
8290
+ const y = g.target;
8290
8291
  i.contains(y) ? d.current = y : Ur(d.current, { select: !0 });
8291
- }, N = function(X) {
8292
+ }, N = function(g) {
8292
8293
  if (m.paused || !i) return;
8293
- const y = X.relatedTarget;
8294
+ const y = g.relatedTarget;
8294
8295
  y !== null && (i.contains(y) || Ur(d.current, { select: !0 }));
8295
- }, W = function(X) {
8296
+ }, W = function(g) {
8296
8297
  if (document.activeElement === document.body)
8297
- for (const q of X)
8298
+ for (const q of g)
8298
8299
  q.removedNodes.length > 0 && Ur(i);
8299
8300
  };
8300
8301
  document.addEventListener("focusin", b), document.addEventListener("focusout", N);
@@ -8324,8 +8325,8 @@ var ua = "focusScope.autoFocusOnMount", da = "focusScope.autoFocusOnUnmount", n2
8324
8325
  if (!r && !n || m.paused) return;
8325
8326
  const N = b.key === "Tab" && !b.altKey && !b.ctrlKey && !b.metaKey, W = document.activeElement;
8326
8327
  if (N && W) {
8327
- const L = b.currentTarget, [X, y] = m4(L);
8328
- X && y ? !b.shiftKey && W === y ? (b.preventDefault(), r && Ur(X, { select: !0 })) : b.shiftKey && W === X && (b.preventDefault(), r && Ur(y, { select: !0 })) : W === L && b.preventDefault();
8328
+ const L = b.currentTarget, [g, y] = m4(L);
8329
+ g && y ? !b.shiftKey && W === y ? (b.preventDefault(), r && Ur(g, { select: !0 })) : b.shiftKey && W === g && (b.preventDefault(), r && Ur(y, { select: !0 })) : W === L && b.preventDefault();
8329
8330
  }
8330
8331
  },
8331
8332
  [r, n, m.paused]
@@ -8403,17 +8404,17 @@ const N4 = ["top", "right", "bottom", "left"], Pr = Math.min, Ut = Math.max, ro
8403
8404
  right: "left",
8404
8405
  bottom: "top",
8405
8406
  top: "bottom"
8406
- }, X4 = {
8407
+ }, g4 = {
8407
8408
  start: "end",
8408
8409
  end: "start"
8409
8410
  };
8410
8411
  function Ha(e, t, r) {
8411
8412
  return Ut(e, Pr(t, r));
8412
8413
  }
8413
- function Xr(e, t) {
8414
+ function gr(e, t) {
8414
8415
  return typeof e == "function" ? e(t) : e;
8415
8416
  }
8416
- function gr(e) {
8417
+ function Xr(e) {
8417
8418
  return e.split("-")[0];
8418
8419
  }
8419
8420
  function Rn(e) {
@@ -8426,12 +8427,12 @@ function Us(e) {
8426
8427
  return e === "y" ? "height" : "width";
8427
8428
  }
8428
8429
  function Nr(e) {
8429
- return ["top", "bottom"].includes(gr(e)) ? "y" : "x";
8430
+ return ["top", "bottom"].includes(Xr(e)) ? "y" : "x";
8430
8431
  }
8431
8432
  function Cs(e) {
8432
8433
  return Ss(Nr(e));
8433
8434
  }
8434
- function g4(e, t, r) {
8435
+ function X4(e, t, r) {
8435
8436
  r === void 0 && (r = !1);
8436
8437
  const n = Rn(e), o = Cs(e), a = Us(o);
8437
8438
  let l = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
@@ -8442,7 +8443,7 @@ function L4(e) {
8442
8443
  return [Za(e), t, Za(t)];
8443
8444
  }
8444
8445
  function Za(e) {
8445
- return e.replace(/start|end/g, (t) => X4[t]);
8446
+ return e.replace(/start|end/g, (t) => g4[t]);
8446
8447
  }
8447
8448
  function W4(e, t, r) {
8448
8449
  const n = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], l = ["bottom", "top"];
@@ -8459,7 +8460,7 @@ function W4(e, t, r) {
8459
8460
  }
8460
8461
  function q4(e, t, r, n) {
8461
8462
  const o = Rn(e);
8462
- let a = W4(gr(e), r === "start", n);
8463
+ let a = W4(Xr(e), r === "start", n);
8463
8464
  return o && (a = a.map((l) => l + "-" + o), t && (a = a.concat(a.map(Za)))), a;
8464
8465
  }
8465
8466
  function no(e) {
@@ -8505,7 +8506,7 @@ function i2(e, t, r) {
8505
8506
  reference: n,
8506
8507
  floating: o
8507
8508
  } = e;
8508
- const a = Nr(t), l = Cs(t), i = Us(l), c = gr(t), u = a === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, v = n[i] / 2 - o[i] / 2;
8509
+ const a = Nr(t), l = Cs(t), i = Us(l), c = Xr(t), u = a === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, v = n[i] / 2 - o[i] / 2;
8509
8510
  let m;
8510
8511
  switch (c) {
8511
8512
  case "top":
@@ -8569,7 +8570,7 @@ const O4 = async (e, t, r) => {
8569
8570
  fn: W
8570
8571
  } = i[b], {
8571
8572
  x: L,
8572
- y: X,
8573
+ y: g,
8573
8574
  data: y,
8574
8575
  reset: q
8575
8576
  } = await W({
@@ -8586,7 +8587,7 @@ const O4 = async (e, t, r) => {
8586
8587
  floating: t
8587
8588
  }
8588
8589
  });
8589
- f = L ?? f, d = X ?? d, m = {
8590
+ f = L ?? f, d = g ?? d, m = {
8590
8591
  ...m,
8591
8592
  [N]: {
8592
8593
  ...m[N],
@@ -8625,7 +8626,7 @@ async function s1(e, t) {
8625
8626
  elementContext: d = "floating",
8626
8627
  altBoundary: v = !1,
8627
8628
  padding: m = 0
8628
- } = Xr(t, e), x = Y3(m), N = i[v ? d === "floating" ? "reference" : "floating" : d], W = oo(await a.getClippingRect({
8629
+ } = gr(t, e), x = Y3(m), N = i[v ? d === "floating" ? "reference" : "floating" : d], W = oo(await a.getClippingRect({
8629
8630
  element: (r = await (a.isElement == null ? void 0 : a.isElement(N))) == null || r ? N : N.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
8630
8631
  boundary: u,
8631
8632
  rootBoundary: f,
@@ -8635,7 +8636,7 @@ async function s1(e, t) {
8635
8636
  y: o,
8636
8637
  width: l.floating.width,
8637
8638
  height: l.floating.height
8638
- } : l.reference, X = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), y = await (a.isElement == null ? void 0 : a.isElement(X)) ? await (a.getScale == null ? void 0 : a.getScale(X)) || {
8639
+ } : l.reference, g = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), y = await (a.isElement == null ? void 0 : a.isElement(g)) ? await (a.getScale == null ? void 0 : a.getScale(g)) || {
8639
8640
  x: 1,
8640
8641
  y: 1
8641
8642
  } : {
@@ -8644,7 +8645,7 @@ async function s1(e, t) {
8644
8645
  }, q = oo(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
8645
8646
  elements: i,
8646
8647
  rect: L,
8647
- offsetParent: X,
8648
+ offsetParent: g,
8648
8649
  strategy: c
8649
8650
  }) : L);
8650
8651
  return {
@@ -8669,15 +8670,15 @@ const F4 = (e) => ({
8669
8670
  } = t, {
8670
8671
  element: u,
8671
8672
  padding: f = 0
8672
- } = Xr(e, t) || {};
8673
+ } = gr(e, t) || {};
8673
8674
  if (u == null)
8674
8675
  return {};
8675
8676
  const d = Y3(f), v = {
8676
8677
  x: r,
8677
8678
  y: n
8678
- }, m = Cs(o), x = Us(m), b = await l.getDimensions(u), N = m === "y", W = N ? "top" : "left", L = N ? "bottom" : "right", X = 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));
8679
- let O = F ? F[X] : 0;
8680
- (!O || !await (l.isElement == null ? void 0 : l.isElement(F))) && (O = i.floating[X] || a.floating[x]);
8679
+ }, 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
+ let O = F ? F[g] : 0;
8681
+ (!O || !await (l.isElement == null ? void 0 : l.isElement(F))) && (O = i.floating[g] || a.floating[x]);
8681
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;
8682
8683
  return {
8683
8684
  [m]: v[m] + Z,
@@ -8712,15 +8713,15 @@ const F4 = (e) => ({
8712
8713
  fallbackAxisSideDirection: x = "none",
8713
8714
  flipAlignment: b = !0,
8714
8715
  ...N
8715
- } = Xr(e, t);
8716
+ } = gr(e, t);
8716
8717
  if ((r = a.arrow) != null && r.alignmentOffset)
8717
8718
  return {};
8718
- const W = gr(o), L = Nr(i), X = gr(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), q = v || (X || !b ? [no(i)] : L4(i)), F = x !== "none";
8719
+ const W = Xr(o), L = Nr(i), g = Xr(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), q = v || (g || !b ? [no(i)] : L4(i)), F = x !== "none";
8719
8720
  !v && F && q.push(...q4(i, b, x, y));
8720
8721
  const O = [i, ...q], R = await s1(t, N), j = [];
8721
8722
  let Y = ((n = a.flip) == null ? void 0 : n.overflows) || [];
8722
8723
  if (f && j.push(R[W]), d) {
8723
- const P = g4(o, l, y);
8724
+ const P = X4(o, l, y);
8724
8725
  j.push(R[P[0]], R[P[1]]);
8725
8726
  }
8726
8727
  if (Y = [...Y, {
@@ -8796,7 +8797,7 @@ const S4 = function(e) {
8796
8797
  } = t, {
8797
8798
  strategy: n = "referenceHidden",
8798
8799
  ...o
8799
- } = Xr(e, t);
8800
+ } = gr(e, t);
8800
8801
  switch (n) {
8801
8802
  case "referenceHidden": {
8802
8803
  const a = await s1(t, {
@@ -8833,7 +8834,7 @@ async function U4(e, t) {
8833
8834
  placement: r,
8834
8835
  platform: n,
8835
8836
  elements: o
8836
- } = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), l = gr(r), i = Rn(r), c = Nr(r) === "y", u = ["left", "top"].includes(l) ? -1 : 1, f = a && c ? -1 : 1, d = Xr(t, e);
8837
+ } = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), l = Xr(r), i = Rn(r), c = Nr(r) === "y", u = ["left", "top"].includes(l) ? -1 : 1, f = a && c ? -1 : 1, d = gr(t, e);
8837
8838
  let {
8838
8839
  mainAxis: v,
8839
8840
  crossAxis: m,
@@ -8902,18 +8903,18 @@ const C4 = function(e) {
8902
8903
  }
8903
8904
  },
8904
8905
  ...c
8905
- } = Xr(e, t), u = {
8906
+ } = gr(e, t), u = {
8906
8907
  x: r,
8907
8908
  y: n
8908
- }, f = await s1(t, c), d = Nr(gr(o)), v = Ss(d);
8909
+ }, f = await s1(t, c), d = Nr(Xr(o)), v = Ss(d);
8909
8910
  let m = u[v], x = u[d];
8910
8911
  if (a) {
8911
- const N = v === "y" ? "top" : "left", W = v === "y" ? "bottom" : "right", L = m + f[N], X = m - f[W];
8912
- m = Ha(L, m, X);
8912
+ 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);
8913
8914
  }
8914
8915
  if (l) {
8915
- const N = d === "y" ? "top" : "left", W = d === "y" ? "bottom" : "right", L = x + f[N], X = x - f[W];
8916
- x = Ha(L, x, X);
8916
+ 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);
8917
8918
  }
8918
8919
  const b = i.fn({
8919
8920
  ...t,
@@ -8947,12 +8948,12 @@ const C4 = function(e) {
8947
8948
  offset: i = 0,
8948
8949
  mainAxis: c = !0,
8949
8950
  crossAxis: u = !0
8950
- } = Xr(e, t), f = {
8951
+ } = gr(e, t), f = {
8951
8952
  x: r,
8952
8953
  y: n
8953
8954
  }, d = Nr(o), v = Ss(d);
8954
8955
  let m = f[v], x = f[d];
8955
- const b = Xr(i, t), N = typeof b == "number" ? {
8956
+ const b = gr(i, t), N = typeof b == "number" ? {
8956
8957
  mainAxis: b,
8957
8958
  crossAxis: 0
8958
8959
  } : {
@@ -8961,12 +8962,12 @@ const C4 = function(e) {
8961
8962
  ...b
8962
8963
  };
8963
8964
  if (c) {
8964
- const X = v === "y" ? "height" : "width", y = a.reference[v] - a.floating[X] + N.mainAxis, q = a.reference[v] + a.reference[X] - N.mainAxis;
8965
+ const g = v === "y" ? "height" : "width", y = a.reference[v] - a.floating[g] + N.mainAxis, q = a.reference[v] + a.reference[g] - N.mainAxis;
8965
8966
  m < y ? m = y : m > q && (m = q);
8966
8967
  }
8967
8968
  if (u) {
8968
8969
  var W, L;
8969
- const X = v === "y" ? "width" : "height", y = ["top", "left"].includes(gr(o)), q = a.reference[d] - a.floating[X] + (y && ((W = l.offset) == null ? void 0 : W[d]) || 0) + (y ? 0 : N.crossAxis), F = a.reference[d] + a.reference[X] + (y ? 0 : ((L = l.offset) == null ? void 0 : L[d]) || 0) - (y ? N.crossAxis : 0);
8970
+ const g = v === "y" ? "width" : "height", y = ["top", "left"].includes(Xr(o)), q = a.reference[d] - a.floating[g] + (y && ((W = l.offset) == null ? void 0 : W[d]) || 0) + (y ? 0 : N.crossAxis), F = a.reference[d] + a.reference[g] + (y ? 0 : ((L = l.offset) == null ? void 0 : L[d]) || 0) - (y ? N.crossAxis : 0);
8970
8971
  x < q ? x = q : x > F && (x = F);
8971
8972
  }
8972
8973
  return {
@@ -8990,15 +8991,15 @@ const C4 = function(e) {
8990
8991
  apply: c = () => {
8991
8992
  },
8992
8993
  ...u
8993
- } = Xr(e, t), f = await s1(t, u), d = gr(o), v = Rn(o), m = Nr(o) === "y", {
8994
+ } = gr(e, t), f = await s1(t, u), d = Xr(o), v = Rn(o), m = Nr(o) === "y", {
8994
8995
  width: x,
8995
8996
  height: b
8996
8997
  } = a.floating;
8997
8998
  let N, W;
8998
8999
  d === "top" || d === "bottom" ? (N = d, W = v === (await (l.isRTL == null ? void 0 : l.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (W = d, N = v === "end" ? "top" : "bottom");
8999
- const L = b - f.top - f.bottom, X = x - f.left - f.right, y = Pr(b - f[N], L), q = Pr(x - f[W], X), F = !t.middlewareData.shift;
9000
+ const L = b - f.top - f.bottom, g = x - f.left - f.right, y = Pr(b - f[N], L), q = Pr(x - f[W], g), F = !t.middlewareData.shift;
9000
9001
  let O = y, R = q;
9001
- if ((r = t.middlewareData.shift) != null && r.enabled.x && (R = X), (n = t.middlewareData.shift) != null && n.enabled.y && (O = L), F && !v) {
9002
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (R = g), (n = t.middlewareData.shift) != null && n.enabled.y && (O = L), F && !v) {
9002
9003
  const Y = Ut(f.left, 0), U = Ut(f.right, 0), K = Ut(f.top, 0), H = Ut(f.bottom, 0);
9003
9004
  m ? R = x - 2 * (Y !== 0 || U !== 0 ? Y + U : Ut(f.left, f.right)) : O = b - 2 * (K !== 0 || H !== 0 ? K + H : Ut(f.top, f.bottom));
9004
9005
  }
@@ -9042,7 +9043,7 @@ function sr(e) {
9042
9043
  function u2(e) {
9043
9044
  return !Wo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Rt(e).ShadowRoot;
9044
9045
  }
9045
- function g1(e) {
9046
+ function X1(e) {
9046
9047
  const {
9047
9048
  overflow: t,
9048
9049
  overflowX: r,
@@ -9110,7 +9111,7 @@ function Hr(e) {
9110
9111
  }
9111
9112
  function J3(e) {
9112
9113
  const t = Hr(e);
9113
- return On(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : sr(t) && g1(t) ? t : J3(t);
9114
+ return On(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : sr(t) && X1(t) ? t : J3(t);
9114
9115
  }
9115
9116
  function i1(e, t, r) {
9116
9117
  var n;
@@ -9118,7 +9119,7 @@ function i1(e, t, r) {
9118
9119
  const o = J3(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), l = Rt(o);
9119
9120
  if (a) {
9120
9121
  const i = Ka(l);
9121
- return t.concat(l, l.visualViewport || [], g1(o) ? o : [], i && r ? i1(i) : []);
9122
+ return t.concat(l, l.visualViewport || [], X1(o) ? o : [], i && r ? i1(i) : []);
9122
9123
  }
9123
9124
  return t.concat(o, i1(o, [], r));
9124
9125
  }
@@ -9175,8 +9176,8 @@ function an(e, t, r, n) {
9175
9176
  const v = Rt(a), m = n && Mt(n) ? Rt(n) : n;
9176
9177
  let x = v, b = Ka(x);
9177
9178
  for (; b && n && m !== x; ) {
9178
- const N = Ln(b), W = b.getBoundingClientRect(), L = It(b), X = W.left + (b.clientLeft + parseFloat(L.paddingLeft)) * N.x, y = W.top + (b.clientTop + parseFloat(L.paddingTop)) * N.y;
9179
- c *= N.x, u *= N.y, f *= N.x, d *= N.y, c += X, u += y, x = Rt(b), b = Ka(x);
9179
+ 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);
9180
9181
  }
9181
9182
  }
9182
9183
  return oo({
@@ -9216,7 +9217,7 @@ function k4(e) {
9216
9217
  scrollTop: 0
9217
9218
  }, u = or(1);
9218
9219
  const f = or(0), d = sr(n);
9219
- if ((d || !d && !a) && ((zn(n) !== "body" || g1(l)) && (c = Vo(n)), sr(n))) {
9220
+ if ((d || !d && !a) && ((zn(n) !== "body" || X1(l)) && (c = Vo(n)), sr(n))) {
9220
9221
  const m = an(n);
9221
9222
  u = Ln(n), f.x = m.x + n.clientLeft, f.y = m.y + n.clientTop;
9222
9223
  }
@@ -9298,7 +9299,7 @@ function E4(e, t) {
9298
9299
  let l = a ? Hr(e) : e;
9299
9300
  for (; Mt(l) && !On(l); ) {
9300
9301
  const i = It(l), c = js(l);
9301
- !c && i.position === "fixed" && (o = null), (a ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || g1(l) && !c && I3(e, l)) ? n = n.filter((f) => f !== l) : o = i, l = Hr(l);
9302
+ !c && i.position === "fixed" && (o = null), (a ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || X1(l) && !c && I3(e, l)) ? n = n.filter((f) => f !== l) : o = i, l = Hr(l);
9302
9303
  }
9303
9304
  return t.set(e, n), n;
9304
9305
  }
@@ -9341,7 +9342,7 @@ function Q4(e, t, r) {
9341
9342
  c.x = Ps(o);
9342
9343
  }
9343
9344
  if (n || !n && !a)
9344
- if ((zn(t) !== "body" || g1(o)) && (i = Vo(t)), n) {
9345
+ if ((zn(t) !== "body" || X1(o)) && (i = Vo(t)), n) {
9345
9346
  const m = an(t, !0, a, t);
9346
9347
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
9347
9348
  } else o && u();
@@ -9430,7 +9431,7 @@ function $4(e, t) {
9430
9431
  } = u;
9431
9432
  if (i || t(), !v || !m)
9432
9433
  return;
9433
- const x = k1(d), b = k1(o.clientWidth - (f + v)), N = k1(o.clientHeight - (d + m)), W = k1(f), X = {
9434
+ const x = k1(d), b = k1(o.clientWidth - (f + v)), N = k1(o.clientHeight - (d + m)), W = k1(f), g = {
9434
9435
  rootMargin: -x + "px " + -b + "px " + -N + "px " + -W + "px",
9435
9436
  threshold: Ut(0, Pr(1, c)) || 1
9436
9437
  };
@@ -9448,12 +9449,12 @@ function $4(e, t) {
9448
9449
  }
9449
9450
  try {
9450
9451
  r = new IntersectionObserver(q, {
9451
- ...X,
9452
+ ...g,
9452
9453
  // Handle <iframe>s
9453
9454
  root: o.ownerDocument
9454
9455
  });
9455
9456
  } catch {
9456
- r = new IntersectionObserver(q, X);
9457
+ r = new IntersectionObserver(q, g);
9457
9458
  }
9458
9459
  r.observe(e);
9459
9460
  }
@@ -9478,8 +9479,8 @@ function A3(e, t, r, n) {
9478
9479
  l && (m = new ResizeObserver((W) => {
9479
9480
  let [L] = W;
9480
9481
  L && L.target === u && m && (m.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
9481
- var X;
9482
- (X = m) == null || X.observe(t);
9482
+ var g;
9483
+ (g = m) == null || g.observe(t);
9483
9484
  })), r();
9484
9485
  }), u && !c && m.observe(u), m.observe(t));
9485
9486
  let x, b = c ? an(e) : null;
@@ -9577,7 +9578,7 @@ function $3(e) {
9577
9578
  ao(v, n) || m(n);
9578
9579
  const [x, b] = w.useState(null), [N, W] = w.useState(null), L = w.useCallback((G) => {
9579
9580
  G !== F.current && (F.current = G, b(G));
9580
- }, []), X = w.useCallback((G) => {
9581
+ }, []), g = w.useCallback((G) => {
9581
9582
  G !== O.current && (O.current = G, W(G));
9582
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(() => {
9583
9584
  if (!F.current || !O.current)
@@ -9621,8 +9622,8 @@ function $3(e) {
9621
9622
  reference: F,
9622
9623
  floating: O,
9623
9624
  setReference: L,
9624
- setFloating: X
9625
- }), [L, X]), C = w.useMemo(() => ({
9625
+ setFloating: g
9626
+ }), [L, g]), C = w.useMemo(() => ({
9626
9627
  reference: y,
9627
9628
  floating: q
9628
9629
  }), [y, q]), Z = w.useMemo(() => {
@@ -9716,7 +9717,7 @@ ic.displayName = cf;
9716
9717
  var uf = ic;
9717
9718
  function lc(e) {
9718
9719
  const [t, r] = w.useState(void 0);
9719
- return lt(() => {
9720
+ return ct(() => {
9720
9721
  if (e) {
9721
9722
  r({ width: e.offsetWidth, height: e.offsetHeight });
9722
9723
  const n = new ResizeObserver((o) => {
@@ -9768,7 +9769,7 @@ var Zs = "PopperContent", [ff, pf] = cc(Zs), mc = w.forwardRef(
9768
9769
  updatePositionStrategy: m = "optimized",
9769
9770
  onPlaced: x,
9770
9771
  ...b
9771
- } = e, N = dc(Zs, r), [W, L] = w.useState(null), X = Ve(t, (me) => L(me)), [y, q] = w.useState(null), F = lc(y), O = (F == null ? void 0 : F.width) ?? 0, R = (F == null ? void 0 : F.height) ?? 0, j = n + (a !== "center" ? "-" + a : ""), Y = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, U = Array.isArray(u) ? u : [u], K = U.length > 0, H = {
9772
+ } = e, N = dc(Zs, r), [W, L] = w.useState(null), g = Ve(t, (me) => L(me)), [y, q] = w.useState(null), F = lc(y), O = (F == null ? void 0 : F.width) ?? 0, R = (F == null ? void 0 : F.height) ?? 0, j = n + (a !== "center" ? "-" + a : ""), Y = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, U = Array.isArray(u) ? u : [u], K = U.length > 0, H = {
9772
9773
  padding: Y,
9773
9774
  boundary: U.filter(mf),
9774
9775
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -9804,11 +9805,11 @@ var Zs = "PopperContent", [ff, pf] = cc(Zs), mc = w.forwardRef(
9804
9805
  v && ac({ strategy: "referenceHidden", ...H })
9805
9806
  ]
9806
9807
  }), [J, Q] = yc(C), D = kt(x);
9807
- lt(() => {
9808
+ ct(() => {
9808
9809
  Z && (D == null || D());
9809
9810
  }, [Z, D]);
9810
9811
  const A = (ee = G.arrow) == null ? void 0 : ee.x, _ = (ae = G.arrow) == null ? void 0 : ae.y, $ = ((he = G.arrow) == null ? void 0 : he.centerOffset) !== 0, [I, ne] = w.useState();
9811
- return lt(() => {
9812
+ return ct(() => {
9812
9813
  W && ne(window.getComputedStyle(W).zIndex);
9813
9814
  }, [W]), /* @__PURE__ */ s.jsx(
9814
9815
  "div",
@@ -9849,7 +9850,7 @@ var Zs = "PopperContent", [ff, pf] = cc(Zs), mc = w.forwardRef(
9849
9850
  "data-side": J,
9850
9851
  "data-align": Q,
9851
9852
  ...b,
9852
- ref: X,
9853
+ ref: g,
9853
9854
  style: {
9854
9855
  ...b.style,
9855
9856
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -9936,14 +9937,14 @@ function yc(e) {
9936
9937
  var bf = fc, xc = hc, yf = mc, xf = bc, Nf = "Portal", Nc = w.forwardRef((e, t) => {
9937
9938
  var i;
9938
9939
  const { container: r, ...n } = e, [o, a] = w.useState(!1);
9939
- lt(() => a(!0), []);
9940
+ ct(() => a(!0), []);
9940
9941
  const l = r || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
9941
9942
  return l ? ds.createPortal(/* @__PURE__ */ s.jsx(Tt.div, { ...n, ref: t }), l) : null;
9942
9943
  });
9943
9944
  Nc.displayName = Nf;
9944
9945
  var Oo = "Popover", [wc, dy] = ir(Oo, [
9945
9946
  uc
9946
- ]), L1 = uc(), [wf, Gr] = wc(Oo), Xc = (e) => {
9947
+ ]), L1 = uc(), [wf, Gr] = wc(Oo), gc = (e) => {
9947
9948
  const {
9948
9949
  __scopePopover: t,
9949
9950
  children: r,
@@ -9974,14 +9975,14 @@ var Oo = "Popover", [wc, dy] = ir(Oo, [
9974
9975
  }
9975
9976
  ) });
9976
9977
  };
9977
- Xc.displayName = Oo;
9978
- var gc = "PopoverAnchor", Xf = w.forwardRef(
9978
+ gc.displayName = Oo;
9979
+ var Xc = "PopoverAnchor", gf = w.forwardRef(
9979
9980
  (e, t) => {
9980
- const { __scopePopover: r, ...n } = e, o = Gr(gc, r), a = L1(r), { onCustomAnchorAdd: l, onCustomAnchorRemove: i } = o;
9981
+ const { __scopePopover: r, ...n } = e, o = Gr(Xc, r), a = L1(r), { onCustomAnchorAdd: l, onCustomAnchorRemove: i } = o;
9981
9982
  return w.useEffect(() => (l(), () => i()), [l, i]), /* @__PURE__ */ s.jsx(xc, { ...a, ...n, ref: t });
9982
9983
  }
9983
9984
  );
9984
- Xf.displayName = gc;
9985
+ gf.displayName = Xc;
9985
9986
  var Lc = "PopoverTrigger", Wc = w.forwardRef(
9986
9987
  (e, t) => {
9987
9988
  const { __scopePopover: r, ...n } = e, o = Gr(Lc, r), a = L1(r), l = Ve(t, o.triggerRef), i = /* @__PURE__ */ s.jsx(
@@ -10001,11 +10002,11 @@ var Lc = "PopoverTrigger", Wc = w.forwardRef(
10001
10002
  }
10002
10003
  );
10003
10004
  Wc.displayName = Lc;
10004
- var Ks = "PopoverPortal", [gf, Lf] = wc(Ks, {
10005
+ var Ks = "PopoverPortal", [Xf, Lf] = wc(Ks, {
10005
10006
  forceMount: void 0
10006
10007
  }), qc = (e) => {
10007
10008
  const { __scopePopover: t, forceMount: r, children: n, container: o } = e, a = Gr(Ks, t);
10008
- return /* @__PURE__ */ s.jsx(gf, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(Yr, { present: r || a.open, children: /* @__PURE__ */ s.jsx(Nc, { asChild: !0, container: o, children: n }) }) });
10009
+ return /* @__PURE__ */ s.jsx(Xf, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(Yr, { present: r || a.open, children: /* @__PURE__ */ s.jsx(Nc, { asChild: !0, container: o, children: n }) }) });
10009
10010
  };
10010
10011
  qc.displayName = Ks;
10011
10012
  var Fn = "PopoverContent", Vc = w.forwardRef(
@@ -10021,7 +10022,7 @@ var Wf = /* @__PURE__ */ o1("PopoverContent.RemoveScroll"), qf = w.forwardRef(
10021
10022
  return w.useEffect(() => {
10022
10023
  const l = n.current;
10023
10024
  if (l) return qs(l);
10024
- }, []), /* @__PURE__ */ s.jsx(go, { as: Wf, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
10025
+ }, []), /* @__PURE__ */ s.jsx(Xo, { as: Wf, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
10025
10026
  Oc,
10026
10027
  {
10027
10028
  ...e,
@@ -10152,7 +10153,7 @@ Tf.displayName = Ff;
10152
10153
  function Tc(e) {
10153
10154
  return e ? "open" : "closed";
10154
10155
  }
10155
- var Sf = Xc, Uf = Wc, Cf = qc, Sc = Vc;
10156
+ var Sf = gc, Uf = Wc, Cf = qc, Sc = Vc;
10156
10157
  const jf = Sf, Rf = Uf, Uc = w.forwardRef(({ className: e, align: t = "center", sideOffset: r = 4, ...n }, o) => /* @__PURE__ */ s.jsx(Cf, { children: /* @__PURE__ */ s.jsx(
10157
10158
  Sc,
10158
10159
  {
@@ -10455,10 +10456,10 @@ function ap(e) {
10455
10456
  }
10456
10457
  const sp = (e) => {
10457
10458
  var t, r, n, o, a, l, i, c, u;
10458
- const { invert: f, toast: d, unstyled: v, interacting: m, setHeights: x, visibleToasts: b, heights: N, index: W, toasts: L, expanded: X, removeToast: y, defaultRichColors: q, closeButton: F, style: O, cancelButtonStyle: R, actionButtonStyle: j, className: Y = "", descriptionClassName: U = "", duration: K, position: H, gap: E, expandByDefault: P, classNames: C, icons: Z, closeButtonAriaLabel: G = "Close toast" } = e, [J, Q] = S.useState(null), [D, A] = S.useState(null), [_, $] = S.useState(!1), [I, ne] = S.useState(!1), [ee, ae] = S.useState(!1), [he, se] = S.useState(!1), [ie, ue] = S.useState(!1), [me, te] = S.useState(0), [Pe, Ce] = S.useState(0), Ye = S.useRef(d.duration || K || m2), pt = S.useRef(null), Fe = S.useRef(null), ht = W === 0, re = W + 1 <= b, le = d.type, Te = d.dismissible !== !1, Ae = d.className || "", tt = d.descriptionClassName || "", _e = S.useMemo(() => N.findIndex((de) => de.toastId === d.id) || 0, [
10459
+ const { invert: f, toast: d, unstyled: v, interacting: m, setHeights: x, visibleToasts: b, heights: N, index: W, toasts: L, expanded: g, removeToast: y, defaultRichColors: q, closeButton: F, style: O, cancelButtonStyle: R, actionButtonStyle: j, className: Y = "", descriptionClassName: U = "", duration: K, position: H, gap: E, expandByDefault: P, classNames: C, icons: Z, closeButtonAriaLabel: G = "Close toast" } = e, [J, Q] = S.useState(null), [D, A] = S.useState(null), [_, $] = S.useState(!1), [I, ne] = S.useState(!1), [ee, ae] = S.useState(!1), [he, se] = S.useState(!1), [ie, ue] = S.useState(!1), [me, te] = S.useState(0), [Pe, Ce] = S.useState(0), Ye = S.useRef(d.duration || K || m2), pt = S.useRef(null), Fe = S.useRef(null), ht = W === 0, re = W + 1 <= b, le = d.type, Te = d.dismissible !== !1, Ae = d.className || "", tt = d.descriptionClassName || "", _e = S.useMemo(() => N.findIndex((de) => de.toastId === d.id) || 0, [
10459
10460
  N,
10460
10461
  d.id
10461
- ]), g = S.useMemo(() => {
10462
+ ]), X = S.useMemo(() => {
10462
10463
  var de;
10463
10464
  return (de = d.closeButton) != null ? de : F;
10464
10465
  }, [
@@ -10470,7 +10471,7 @@ const sp = (e) => {
10470
10471
  ]), h = S.useRef(0), V = S.useRef(0), z = S.useRef(0), k = S.useRef(null), [M, be] = H.split("-"), ze = S.useMemo(() => N.reduce((de, Le, Je) => Je >= _e ? de : de + Le.height, 0), [
10471
10472
  N,
10472
10473
  _e
10473
- ]), je = Df(), He = d.invert || f, ge = le === "loading";
10474
+ ]), je = Df(), He = d.invert || f, Xe = le === "loading";
10474
10475
  V.current = S.useMemo(() => _e * E + ze, [
10475
10476
  _e,
10476
10477
  ze
@@ -10532,7 +10533,7 @@ const sp = (e) => {
10532
10533
  S.useEffect(() => {
10533
10534
  if (d.promise && le === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
10534
10535
  let de;
10535
- return X || m || je ? (() => {
10536
+ return g || m || je ? (() => {
10536
10537
  if (z.current < h.current) {
10537
10538
  const Ze = (/* @__PURE__ */ new Date()).getTime() - h.current;
10538
10539
  Ye.current = Ye.current - Ze;
@@ -10544,7 +10545,7 @@ const sp = (e) => {
10544
10545
  }, Ye.current));
10545
10546
  })(), () => clearTimeout(de);
10546
10547
  }, [
10547
- X,
10548
+ g,
10548
10549
  m,
10549
10550
  d,
10550
10551
  le,
@@ -10594,7 +10595,7 @@ const sp = (e) => {
10594
10595
  "data-invert": He,
10595
10596
  "data-swipe-out": he,
10596
10597
  "data-swipe-direction": D,
10597
- "data-expanded": !!(X || P && _),
10598
+ "data-expanded": !!(g || P && _),
10598
10599
  style: {
10599
10600
  "--index": W,
10600
10601
  "--toasts-before": W,
@@ -10608,7 +10609,7 @@ const sp = (e) => {
10608
10609
  ae(!1), Q(null), k.current = null;
10609
10610
  },
10610
10611
  onPointerDown: (de) => {
10611
- ge || !Te || (pt.current = /* @__PURE__ */ new Date(), te(V.current), de.target.setPointerCapture(de.pointerId), de.target.tagName !== "BUTTON" && (ae(!0), k.current = {
10612
+ Xe || !Te || (pt.current = /* @__PURE__ */ new Date(), te(V.current), de.target.setPointerCapture(de.pointerId), de.target.tagName !== "BUTTON" && (ae(!0), k.current = {
10612
10613
  x: de.clientX,
10613
10614
  y: de.clientY
10614
10615
  }));
@@ -10656,11 +10657,11 @@ const sp = (e) => {
10656
10657
  }
10657
10658
  (Math.abs(St.x) > 0 || Math.abs(St.y) > 0) && ue(!0), (Je = Fe.current) == null || Je.style.setProperty("--swipe-amount-x", `${St.x}px`), (Ze = Fe.current) == null || Ze.style.setProperty("--swipe-amount-y", `${St.y}px`);
10658
10659
  }
10659
- }, g && !d.jsx && le !== "loading" ? /* @__PURE__ */ S.createElement("button", {
10660
+ }, X && !d.jsx && le !== "loading" ? /* @__PURE__ */ S.createElement("button", {
10660
10661
  "aria-label": G,
10661
- "data-disabled": ge,
10662
+ "data-disabled": Xe,
10662
10663
  "data-close-button": !0,
10663
- onClick: ge || !Te ? () => {
10664
+ onClick: Xe || !Te ? () => {
10664
10665
  } : () => {
10665
10666
  ce(), d.onDismiss == null || d.onDismiss.call(d, d);
10666
10667
  },
@@ -10731,7 +10732,7 @@ const lp = /* @__PURE__ */ S.forwardRef(function(t, r) {
10731
10732
  const { invert: n, position: o = "bottom-right", hotkey: a = [
10732
10733
  "altKey",
10733
10734
  "KeyT"
10734
- ], expand: l, closeButton: i, className: c, offset: u, mobileOffset: f, theme: d = "light", richColors: v, duration: m, style: x, visibleToasts: b = _f, toastOptions: N, dir: W = v2(), gap: L = rp, icons: X, containerAriaLabel: y = "Notifications" } = t, [q, F] = S.useState([]), O = S.useMemo(() => Array.from(new Set([
10735
+ ], expand: l, closeButton: i, className: c, offset: u, mobileOffset: f, theme: d = "light", richColors: v, duration: m, style: x, visibleToasts: b = _f, toastOptions: N, dir: W = v2(), gap: L = rp, icons: g, containerAriaLabel: y = "Notifications" } = t, [q, F] = S.useState([]), O = S.useMemo(() => Array.from(new Set([
10735
10736
  o
10736
10737
  ].concat(q.filter((D) => D.position).map((D) => D.position)))), [
10737
10738
  q,
@@ -10871,7 +10872,7 @@ const lp = /* @__PURE__ */ S.forwardRef(function(t, r) {
10871
10872
  var ae, he;
10872
10873
  return /* @__PURE__ */ S.createElement(sp, {
10873
10874
  key: ne.id,
10874
- icons: X,
10875
+ icons: g,
10875
10876
  index: ee,
10876
10877
  toast: ne,
10877
10878
  defaultRichColors: v,
@@ -10938,7 +10939,7 @@ function y2({ className: e }) {
10938
10939
  " network to continue"
10939
10940
  ] }),
10940
10941
  /* @__PURE__ */ s.jsx(
10941
- Me,
10942
+ Ee,
10942
10943
  {
10943
10944
  variant: "tertiary",
10944
10945
  className: "!gw-px-10 gw-mt-4",
@@ -10982,17 +10983,17 @@ function dp(e, t, r) {
10982
10983
  f && clearTimeout(f);
10983
10984
  }
10984
10985
  function x(N) {
10985
- var W = N || {}, L = W.upcomingOnly, X = L === void 0 ? !1 : L;
10986
- m(), d = !X;
10986
+ var W = N || {}, L = W.upcomingOnly, g = L === void 0 ? !1 : L;
10987
+ m(), d = !g;
10987
10988
  }
10988
10989
  function b() {
10989
10990
  for (var N = arguments.length, W = new Array(N), L = 0; L < N; L++)
10990
10991
  W[L] = arguments[L];
10991
- var X = this, y = Date.now() - v;
10992
+ var g = this, y = Date.now() - v;
10992
10993
  if (d)
10993
10994
  return;
10994
10995
  function q() {
10995
- v = Date.now(), t.apply(X, W);
10996
+ v = Date.now(), t.apply(g, W);
10996
10997
  }
10997
10998
  function F() {
10998
10999
  f = void 0;
@@ -11082,7 +11083,7 @@ function pp() {
11082
11083
  }
11083
11084
  const hp = 720, mp = 460, vp = 10 * 1e3, bp = "Region not supported", yp = "Chain not supported";
11084
11085
  function xp() {
11085
- const { user: e } = ct(), { refreshBalances: t } = W1(), r = Qt(), { getPaymentLink: n, createQuote: o, getQuoteStatus: a, refreshQuote: l } = pp(), [i, c] = fe(""), [u, f] = fe(""), [d, v] = fe(2), [m, x] = fe(999999), [b, N] = fe(null), [W, L] = fe("STARTED"), [X, y] = fe(!1), [q, F] = fe(!1), [O, R] = fe(0), [j, Y] = fe(null), [U, K] = fe(null), [H, E] = fe(!1);
11086
+ const { user: e } = st(), { refreshBalances: t } = W1(), r = Qt(), { getPaymentLink: n, createQuote: o, getQuoteStatus: a, refreshQuote: l } = pp(), [i, c] = fe(""), [u, f] = fe(""), [d, v] = fe(2), [m, x] = fe(999999), [b, N] = fe(null), [W, L] = fe("STARTED"), [g, y] = fe(!1), [q, F] = fe(!1), [O, R] = fe(0), [j, Y] = fe(null), [U, K] = fe(null), [H, E] = fe(!1);
11086
11087
  Ue(() => {
11087
11088
  e && (f(e.currency ?? "USD"), v(e.minFundingAmount ?? 2), x(e.maxFundingAmount ?? 999999));
11088
11089
  }, [e]);
@@ -11202,7 +11203,7 @@ function xp() {
11202
11203
  fundStatus: W,
11203
11204
  isOnrampEnabled: !(Q || D),
11204
11205
  onramppDisabledError: A,
11205
- quoteLoading: X,
11206
+ quoteLoading: g,
11206
11207
  doFunding: G,
11207
11208
  setFundAmount: P
11208
11209
  };
@@ -11231,10 +11232,10 @@ function Np() {
11231
11232
  }
11232
11233
  var wp = Np();
11233
11234
  const Ot = /* @__PURE__ */ P5(wp);
11234
- function Xp(e) {
11235
+ function gp(e) {
11235
11236
  return /* @__PURE__ */ s.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ s.jsx("path", { d: "M15.41 16.59L10.83 12L15.41 7.41L14 6L8 12L14 18L15.41 16.59Z", fill: "currentColor" }) });
11236
11237
  }
11237
- function gp(e) {
11238
+ function Xp(e) {
11238
11239
  const { isCopied: t, ...r } = e;
11239
11240
  return t ? /* @__PURE__ */ s.jsx("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ s.jsx(
11240
11241
  "path",
@@ -11277,19 +11278,19 @@ const Lp = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
11277
11278
  className: pe("gw-inline-flex gw-items-center gw-justify-end gw-text-brand-gray-500 gw-gap-1", r),
11278
11279
  children: [
11279
11280
  /* @__PURE__ */ s.jsx("span", { className: n, children: e }),
11280
- /* @__PURE__ */ s.jsx("span", { children: /* @__PURE__ */ s.jsx(gp, { isCopied: a, className: pe("gw-text-secondary gw-size-4", o) }) })
11281
+ /* @__PURE__ */ s.jsx("span", { children: /* @__PURE__ */ s.jsx(Xp, { isCopied: a, className: pe("gw-text-secondary gw-size-4", o) }) })
11281
11282
  ]
11282
11283
  }
11283
11284
  );
11284
11285
  }, sn = S.memo(Lp), Wp = ({ fullScreenHeader: e, onProfileClick: t }) => {
11285
- const { user: r } = ct(), n = Qt(), o = jn.get(n) || !1, a = Pl[n] || eo;
11286
+ const { user: r } = st(), n = Qt(), o = jn.get(n) || !1, a = Pl[n] || eo;
11286
11287
  return e && (e != null && e.title) ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-4 gw-justify-between gw-w-full", children: [
11287
11288
  /* @__PURE__ */ s.jsx("div", { className: "gw-size-12", children: e != null && e.onBackClick ? /* @__PURE__ */ s.jsx(
11288
11289
  "button",
11289
11290
  {
11290
11291
  className: "gw-size-full gw-inline-flex gw-justify-center gw-items-center",
11291
11292
  onClick: e == null ? void 0 : e.onBackClick,
11292
- children: /* @__PURE__ */ s.jsx(Xp, { className: "gw-size-6" })
11293
+ children: /* @__PURE__ */ s.jsx(gp, { className: "gw-size-6" })
11293
11294
  }
11294
11295
  ) : null }),
11295
11296
  /* @__PURE__ */ s.jsx("div", { className: "gw-typography-subtitle1", children: e.title }),
@@ -11349,7 +11350,7 @@ function qp(e) {
11349
11350
  var Vp = "Arrow", Rc = w.forwardRef((e, t) => {
11350
11351
  const { children: r, width: n = 10, height: o = 5, ...a } = e;
11351
11352
  return /* @__PURE__ */ s.jsx(
11352
- Ee.svg,
11353
+ Me.svg,
11353
11354
  {
11354
11355
  ...a,
11355
11356
  ref: t,
@@ -11372,7 +11373,7 @@ var Zc = "PopperAnchor", Kc = w.forwardRef(
11372
11373
  const { __scopePopper: r, virtualRef: n, ...o } = e, a = Pc(Zc, r), l = w.useRef(null), i = Ve(t, l);
11373
11374
  return w.useEffect(() => {
11374
11375
  a.onAnchorChange((n == null ? void 0 : n.current) || l.current);
11375
- }), n ? null : /* @__PURE__ */ s.jsx(Ee.div, { ...o, ref: i });
11376
+ }), n ? null : /* @__PURE__ */ s.jsx(Me.div, { ...o, ref: i });
11376
11377
  }
11377
11378
  );
11378
11379
  Kc.displayName = Zc;
@@ -11394,7 +11395,7 @@ var Ys = "PopperContent", [Tp, Sp] = zc(Ys), kc = w.forwardRef(
11394
11395
  updatePositionStrategy: m = "optimized",
11395
11396
  onPlaced: x,
11396
11397
  ...b
11397
- } = e, N = Pc(Ys, r), [W, L] = w.useState(null), X = Ve(t, (me) => L(me)), [y, q] = w.useState(null), F = lc(y), O = (F == null ? void 0 : F.width) ?? 0, R = (F == null ? void 0 : F.height) ?? 0, j = n + (a !== "center" ? "-" + a : ""), Y = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, U = Array.isArray(u) ? u : [u], K = U.length > 0, H = {
11398
+ } = e, N = Pc(Ys, r), [W, L] = w.useState(null), g = Ve(t, (me) => L(me)), [y, q] = w.useState(null), F = lc(y), O = (F == null ? void 0 : F.width) ?? 0, R = (F == null ? void 0 : F.height) ?? 0, j = n + (a !== "center" ? "-" + a : ""), Y = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, U = Array.isArray(u) ? u : [u], K = U.length > 0, H = {
11398
11399
  padding: Y,
11399
11400
  boundary: U.filter(Cp),
11400
11401
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -11430,11 +11431,11 @@ var Ys = "PopperContent", [Tp, Sp] = zc(Ys), kc = w.forwardRef(
11430
11431
  v && ac({ strategy: "referenceHidden", ...H })
11431
11432
  ]
11432
11433
  }), [J, Q] = Jc(C), D = kt(x);
11433
- lt(() => {
11434
+ ct(() => {
11434
11435
  Z && (D == null || D());
11435
11436
  }, [Z, D]);
11436
11437
  const A = (ee = G.arrow) == null ? void 0 : ee.x, _ = (ae = G.arrow) == null ? void 0 : ae.y, $ = ((he = G.arrow) == null ? void 0 : he.centerOffset) !== 0, [I, ne] = w.useState();
11437
- return lt(() => {
11438
+ return ct(() => {
11438
11439
  W && ne(window.getComputedStyle(W).zIndex);
11439
11440
  }, [W]), /* @__PURE__ */ s.jsx(
11440
11441
  "div",
@@ -11470,12 +11471,12 @@ var Ys = "PopperContent", [Tp, Sp] = zc(Ys), kc = w.forwardRef(
11470
11471
  arrowY: _,
11471
11472
  shouldHideArrow: $,
11472
11473
  children: /* @__PURE__ */ s.jsx(
11473
- Ee.div,
11474
+ Me.div,
11474
11475
  {
11475
11476
  "data-side": J,
11476
11477
  "data-align": Q,
11477
11478
  ...b,
11478
- ref: X,
11479
+ ref: g,
11479
11480
  style: {
11480
11481
  ...b.style,
11481
11482
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -11573,7 +11574,7 @@ var Dc = Hc, Ec = Kc, Mc = kc, Ic = Gc, Qc = Object.freeze({
11573
11574
  wordWrap: "normal"
11574
11575
  }), Rp = "VisuallyHidden", Bc = w.forwardRef(
11575
11576
  (e, t) => /* @__PURE__ */ s.jsx(
11576
- Ee.span,
11577
+ Me.span,
11577
11578
  {
11578
11579
  ...e,
11579
11580
  ref: t,
@@ -11636,7 +11637,7 @@ var l1 = "Tooltip", [Zp, Co] = So(l1), $c = (e) => {
11636
11637
  O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ya))) : c.onClose(), a == null || a(O);
11637
11638
  },
11638
11639
  caller: l1
11639
- }), X = w.useMemo(() => W ? N.current ? "delayed-open" : "instant-open" : "closed", [W]), y = w.useCallback(() => {
11640
+ }), g = w.useMemo(() => W ? N.current ? "delayed-open" : "instant-open" : "closed", [W]), y = w.useCallback(() => {
11640
11641
  window.clearTimeout(m.current), m.current = 0, N.current = !1, L(!0);
11641
11642
  }, [L]), q = w.useCallback(() => {
11642
11643
  window.clearTimeout(m.current), m.current = 0, L(!1);
@@ -11653,7 +11654,7 @@ var l1 = "Tooltip", [Zp, Co] = So(l1), $c = (e) => {
11653
11654
  scope: t,
11654
11655
  contentId: v,
11655
11656
  open: W,
11656
- stateAttribute: X,
11657
+ stateAttribute: g,
11657
11658
  trigger: f,
11658
11659
  onTriggerChange: d,
11659
11660
  onTriggerEnter: w.useCallback(() => {
@@ -11674,7 +11675,7 @@ var Ga = "TooltipTrigger", e6 = w.forwardRef(
11674
11675
  (e, t) => {
11675
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, []);
11676
11677
  return w.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ s.jsx(Ec, { asChild: !0, ...l, children: /* @__PURE__ */ s.jsx(
11677
- Ee.button,
11678
+ Me.button,
11678
11679
  {
11679
11680
  "aria-describedby": o.open ? o.contentId : void 0,
11680
11681
  "data-state": o.stateAttribute,
@@ -11711,7 +11712,7 @@ var Kp = "TooltipPortal", [py, kp] = So(Kp, {
11711
11712
  i(null), d(!1);
11712
11713
  }, [d]), m = w.useCallback(
11713
11714
  (x, b) => {
11714
- const N = x.currentTarget, W = { x: x.clientX, y: x.clientY }, L = Mp(W, N.getBoundingClientRect()), X = Ip(W, L), y = Qp(b.getBoundingClientRect()), q = Ap([...X, ...y]);
11715
+ const N = x.currentTarget, W = { x: x.clientX, y: x.clientY }, L = Mp(W, N.getBoundingClientRect()), g = Ip(W, L), y = Qp(b.getBoundingClientRect()), q = Ap([...g, ...y]);
11715
11716
  i(q), d(!0);
11716
11717
  },
11717
11718
  [d]
@@ -11726,8 +11727,8 @@ var Kp = "TooltipPortal", [py, kp] = So(Kp, {
11726
11727
  }, [c, f, m, v]), w.useEffect(() => {
11727
11728
  if (l) {
11728
11729
  const x = (b) => {
11729
- const N = b.target, W = { x: b.clientX, y: b.clientY }, L = (c == null ? void 0 : c.contains(N)) || (f == null ? void 0 : f.contains(N)), X = !Bp(W, l);
11730
- L ? v() : X && (v(), u());
11730
+ const N = b.target, W = { x: b.clientX, y: b.clientY }, L = (c == null ? void 0 : c.contains(N)) || (f == null ? void 0 : f.contains(N)), g = !Bp(W, l);
11731
+ L ? v() : g && (v(), u());
11731
11732
  };
11732
11733
  return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x);
11733
11734
  }
@@ -12005,7 +12006,7 @@ Please try again.` }),
12005
12006
  }
12006
12007
  )
12007
12008
  ] }),
12008
- /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
12009
+ /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
12009
12010
  ] }) })
12010
12011
  ] })
12011
12012
  }
@@ -12048,7 +12049,7 @@ function i6(e) {
12048
12049
  ] });
12049
12050
  }
12050
12051
  const ih = ({ onBack: e, id: t, value: r }) => {
12051
- const { user: n } = ct();
12052
+ const { user: n } = st();
12052
12053
  return /* @__PURE__ */ s.jsx(
12053
12054
  Yt,
12054
12055
  {
@@ -12096,7 +12097,7 @@ const ih = ({ onBack: e, id: t, value: r }) => {
12096
12097
  /* @__PURE__ */ s.jsx("span", { children: "Transaction ID: " }),
12097
12098
  /* @__PURE__ */ s.jsx(sn, { textToCopy: t, text: t.slice(0, 20) + "..." })
12098
12099
  ] }),
12099
- /* @__PURE__ */ s.jsx(Me, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
12100
+ /* @__PURE__ */ s.jsx(Ee, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
12100
12101
  ] }),
12101
12102
  footerCols: !0,
12102
12103
  mainFooter: !1
@@ -12166,7 +12167,7 @@ function l6(e) {
12166
12167
  ] });
12167
12168
  }
12168
12169
  const ch = ({ onEnd: e, onShowActivity: t, value: r }) => {
12169
- const { user: n } = ct();
12170
+ const { user: n } = st();
12170
12171
  return /* @__PURE__ */ s.jsx(
12171
12172
  Yt,
12172
12173
  {
@@ -12197,7 +12198,7 @@ successfully funded!` }),
12197
12198
  /* @__PURE__ */ s.jsx(Kt, { className: "gw-size-6 gw-flex-shrink-0" }),
12198
12199
  /* @__PURE__ */ s.jsx("span", { className: "gw-break-all gw-typography-body2", children: Ot(n.evmWallet) })
12199
12200
  ] }),
12200
- /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
12201
+ /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
12201
12202
  ] }) })
12202
12203
  ] })
12203
12204
  }
@@ -12219,7 +12220,7 @@ function fh({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
12219
12220
  doFunding: N,
12220
12221
  setFundAmount: W,
12221
12222
  isOnrampEnabled: L,
12222
- onramppDisabledError: X
12223
+ onramppDisabledError: g
12223
12224
  } = xp(), [y, q] = fe(hr.BUY), [F, O] = fe(!1), R = async () => {
12224
12225
  L && (O(!0), N(
12225
12226
  () => {
@@ -12384,7 +12385,7 @@ function fh({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
12384
12385
  ] }),
12385
12386
  footer: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
12386
12387
  /* @__PURE__ */ s.jsx(
12387
- Me,
12388
+ Ee,
12388
12389
  {
12389
12390
  variant: "tertiary",
12390
12391
  className: "gw-w-full gw-mb-3",
@@ -12396,7 +12397,7 @@ function fh({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
12396
12397
  /* @__PURE__ */ s.jsx(up, { className: "gw-size-4" })
12397
12398
  ] }) : "Continue",
12398
12399
  (b && j || F) && /* @__PURE__ */ s.jsx(N1, { className: "gw-size-4 gw-animate-spin" })
12399
- ] }) : X || "Onramp disabled"
12400
+ ] }) : g || "Onramp disabled"
12400
12401
  }
12401
12402
  ),
12402
12403
  /* @__PURE__ */ s.jsx(
@@ -12567,7 +12568,7 @@ function Nh({ selected: e = !1, ...t }) {
12567
12568
  return e ? xh(t) : yh(t);
12568
12569
  }
12569
12570
  const wh = ({ tab: e, setTab: t }) => {
12570
- const { user: r } = ct();
12571
+ const { user: r } = st();
12571
12572
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
12572
12573
  /* @__PURE__ */ s.jsxs("button", { className: "tab", onClick: () => t(nt.HOME), children: [
12573
12574
  /* @__PURE__ */ s.jsx(
@@ -12615,8 +12616,8 @@ const wh = ({ tab: e, setTab: t }) => {
12615
12616
  /* @__PURE__ */ s.jsx("span", { className: "gw-sr-only", children: "Activity" })
12616
12617
  ] })
12617
12618
  ] });
12618
- }, Xh = S.memo(wh);
12619
- function gh(e = 10) {
12619
+ }, gh = S.memo(wh);
12620
+ function Xh(e = 10) {
12620
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) => {
12621
12622
  try {
12622
12623
  c(!0);
@@ -12627,20 +12628,20 @@ function gh(e = 10) {
12627
12628
  );
12628
12629
  if (!W.ok) throw new Error("Failed to fetch transactions");
12629
12630
  const L = await W.json();
12630
- let X = [];
12631
- if (L.groups ? X = L.groups : L.transactions && (X = [
12631
+ let g = [];
12632
+ if (L.groups ? g = L.groups : L.transactions && (g = [
12632
12633
  {
12633
12634
  label: "",
12634
12635
  transactions: L.transactions
12635
12636
  }
12636
12637
  ]), b)
12637
- f(X), o(X.reduce((q, F) => q + F.transactions.length, 0));
12638
+ f(g), o(g.reduce((q, F) => q + F.transactions.length, 0));
12638
12639
  else {
12639
- const q = x(u, X);
12640
+ const q = x(u, g);
12640
12641
  f(q), o(N + e);
12641
12642
  }
12642
- const y = X.reduce((q, F) => q + F.transactions.length, 0);
12643
- return l(y === e), X;
12643
+ const y = g.reduce((q, F) => q + F.transactions.length, 0);
12644
+ return l(y === e), g;
12644
12645
  } catch {
12645
12646
  return Cr.error("Failed to fetch transactions"), null;
12646
12647
  } finally {
@@ -12650,19 +12651,19 @@ function gh(e = 10) {
12650
12651
  o(0), l(!0), await d(!0);
12651
12652
  }, x = (b, N) => {
12652
12653
  const W = {};
12653
- b.forEach((X) => {
12654
- W[X.label] = [...W[X.label] || [], ...X.transactions];
12655
- }), N.forEach((X) => {
12656
- W[X.label] = [...W[X.label] || [], ...X.transactions];
12654
+ b.forEach((g) => {
12655
+ W[g.label] = [...W[g.label] || [], ...g.transactions];
12656
+ }), N.forEach((g) => {
12657
+ W[g.label] = [...W[g.label] || [], ...g.transactions];
12657
12658
  });
12658
- const L = Object.entries(W).map(([X, y]) => ({
12659
- label: X,
12659
+ const L = Object.entries(W).map(([g, y]) => ({
12660
+ label: g,
12660
12661
  transactions: y
12661
12662
  }));
12662
- return L.sort((X, y) => {
12663
- if (!X.label) return -1;
12663
+ return L.sort((g, y) => {
12664
+ if (!g.label) return -1;
12664
12665
  if (!y.label) return 1;
12665
- const q = new Date(X.label);
12666
+ const q = new Date(g.label);
12666
12667
  return new Date(y.label).getTime() - q.getTime();
12667
12668
  }), L;
12668
12669
  };
@@ -12726,7 +12727,7 @@ function Js({ text: e, url: t }) {
12726
12727
  href: t,
12727
12728
  target: "_blank",
12728
12729
  rel: "noopener noreferrer",
12729
- className: Xs({
12730
+ className: gs({
12730
12731
  variant: "link",
12731
12732
  size: "sm",
12732
12733
  className: "gw-py-0 gw-h-auto",
@@ -12770,21 +12771,21 @@ function qh(e) {
12770
12771
  t,
12771
12772
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
12772
12773
  ), l = (b) => {
12773
- const { scope: N, children: W } = b, L = S.useRef(null), X = S.useRef(/* @__PURE__ */ new Map()).current;
12774
- return /* @__PURE__ */ s.jsx(o, { scope: N, itemMap: X, collectionRef: L, children: W });
12774
+ const { scope: N, children: W } = b, L = S.useRef(null), g = S.useRef(/* @__PURE__ */ new Map()).current;
12775
+ return /* @__PURE__ */ s.jsx(o, { scope: N, itemMap: g, collectionRef: L, children: W });
12775
12776
  };
12776
12777
  l.displayName = t;
12777
12778
  const i = e + "CollectionSlot", c = /* @__PURE__ */ o1(i), u = S.forwardRef(
12778
12779
  (b, N) => {
12779
- const { scope: W, children: L } = b, X = a(i, W), y = Ve(N, X.collectionRef);
12780
+ const { scope: W, children: L } = b, g = a(i, W), y = Ve(N, g.collectionRef);
12780
12781
  return /* @__PURE__ */ s.jsx(c, { ref: y, children: L });
12781
12782
  }
12782
12783
  );
12783
12784
  u.displayName = i;
12784
12785
  const f = e + "CollectionItemSlot", d = "data-radix-collection-item", v = /* @__PURE__ */ o1(f), m = S.forwardRef(
12785
12786
  (b, N) => {
12786
- const { scope: W, children: L, ...X } = b, y = S.useRef(null), q = Ve(N, y), F = a(f, W);
12787
- return S.useEffect(() => (F.itemMap.set(y, { ref: y, ...X }), () => void F.itemMap.delete(y))), /* @__PURE__ */ s.jsx(v, { [d]: "", ref: q, children: L });
12787
+ const { scope: W, children: L, ...g } = b, y = S.useRef(null), q = Ve(N, y), F = a(f, W);
12788
+ return S.useEffect(() => (F.itemMap.set(y, { ref: y, ...g }), () => void F.itemMap.delete(y))), /* @__PURE__ */ s.jsx(v, { [d]: "", ref: q, children: L });
12788
12789
  }
12789
12790
  );
12790
12791
  m.displayName = f;
@@ -12793,9 +12794,9 @@ function qh(e) {
12793
12794
  return S.useCallback(() => {
12794
12795
  const L = N.collectionRef.current;
12795
12796
  if (!L) return [];
12796
- const X = Array.from(L.querySelectorAll(`[${d}]`));
12797
+ const g = Array.from(L.querySelectorAll(`[${d}]`));
12797
12798
  return Array.from(N.itemMap.values()).sort(
12798
- (F, O) => X.indexOf(F.ref.current) - X.indexOf(O.ref.current)
12799
+ (F, O) => g.indexOf(F.ref.current) - g.indexOf(O.ref.current)
12799
12800
  );
12800
12801
  }, [N.collectionRef, N.itemMap]);
12801
12802
  }
@@ -12874,15 +12875,15 @@ var Fh = w.forwardRef((e, t) => {
12874
12875
  return w.useEffect(() => {
12875
12876
  const L = requestAnimationFrame(() => N.current = !1);
12876
12877
  return () => cancelAnimationFrame(L);
12877
- }, []), lt(() => {
12878
+ }, []), ct(() => {
12878
12879
  const L = u.current;
12879
12880
  if (L) {
12880
12881
  W.current = W.current || {
12881
12882
  transitionDuration: L.style.transitionDuration,
12882
12883
  animationName: L.style.animationName
12883
12884
  }, L.style.transitionDuration = "0s", L.style.animationName = "none";
12884
- const X = L.getBoundingClientRect();
12885
- d.current = X.height, m.current = X.width, N.current || (L.style.transitionDuration = W.current.transitionDuration, L.style.animationName = W.current.animationName), c(n);
12885
+ const g = L.getBoundingClientRect();
12886
+ d.current = g.height, m.current = g.width, N.current || (L.style.transitionDuration = W.current.transitionDuration, L.style.animationName = W.current.animationName), c(n);
12886
12887
  }
12887
12888
  }, [l.open, n]), /* @__PURE__ */ s.jsx(
12888
12889
  Tt.div,
@@ -12990,14 +12991,14 @@ var [m6, Ph] = Ro(_t), [v6, Hh] = Ro(
12990
12991
  if (N === -1) return;
12991
12992
  m.preventDefault();
12992
12993
  let L = N;
12993
- const X = 0, y = W - 1, q = () => {
12994
- L = N + 1, L > y && (L = X);
12994
+ const g = 0, y = W - 1, q = () => {
12995
+ L = N + 1, L > y && (L = g);
12995
12996
  }, F = () => {
12996
- L = N - 1, L < X && (L = y);
12997
+ L = N - 1, L < g && (L = y);
12997
12998
  };
12998
12999
  switch (m.key) {
12999
13000
  case "Home":
13000
- L = X;
13001
+ L = g;
13001
13002
  break;
13002
13003
  case "End":
13003
13004
  L = y;
@@ -13125,11 +13126,11 @@ ei.displayName = N6;
13125
13126
  function w6(e) {
13126
13127
  return e ? "open" : "closed";
13127
13128
  }
13128
- var Gh = Bs, Jh = _s, Dh = x6, X6 = $s, g6 = ei;
13129
+ var Gh = Bs, Jh = _s, Dh = x6, g6 = $s, X6 = ei;
13129
13130
  const Eh = Gh, L6 = w.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(Jh, { ref: r, className: pe(e), ...t }));
13130
13131
  L6.displayName = "AccordionItem";
13131
13132
  const W6 = w.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ s.jsx(Dh, { className: "gw-flex", children: /* @__PURE__ */ s.jsx(
13132
- X6,
13133
+ g6,
13133
13134
  {
13134
13135
  ref: n,
13135
13136
  className: pe("gw-flex gw-flex-1 gw-items-center gw-justify-between gw-py-3 gw-transition-all", e),
@@ -13137,9 +13138,9 @@ const W6 = w.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
13137
13138
  children: t
13138
13139
  }
13139
13140
  ) }));
13140
- W6.displayName = X6.displayName;
13141
+ W6.displayName = g6.displayName;
13141
13142
  const q6 = w.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ s.jsx(
13142
- g6,
13143
+ X6,
13143
13144
  {
13144
13145
  ref: n,
13145
13146
  className: "gw-overflow-hidden gw-text-sm gw-transition-all data-[state=closed]:gw-animate-accordion-up data-[state=open]:gw-animate-accordion-down",
@@ -13147,9 +13148,9 @@ const q6 = w.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
13147
13148
  children: /* @__PURE__ */ s.jsx("div", { className: pe("gw-pb-2 gw-pt-0", e), children: t })
13148
13149
  }
13149
13150
  ));
13150
- q6.displayName = g6.displayName;
13151
+ q6.displayName = X6.displayName;
13151
13152
  function Mh({ expandFirst: e = !1 }) {
13152
- const { user: t } = ct(), { transactionGroups: r, fetchTransactions: n, loadMore: o, hasMore: a, isLoading: l } = gh(), i = _2(null), [c, u] = fe(void 0), f = r.reduce((v, m) => v + m.transactions.length, 0);
13153
+ const { user: t } = st(), { transactionGroups: r, fetchTransactions: n, loadMore: o, hasMore: a, isLoading: l } = Xh(), i = _2(null), [c, u] = fe(void 0), f = r.reduce((v, m) => v + m.transactions.length, 0);
13153
13154
  Ue(() => {
13154
13155
  n(!0);
13155
13156
  }, []), Ue(() => {
@@ -13213,7 +13214,7 @@ function Mh({ expandFirst: e = !1 }) {
13213
13214
  value: c,
13214
13215
  onValueChange: u,
13215
13216
  children: v.transactions.map((x, b) => {
13216
- var N, W, L, X, y, q;
13217
+ var N, W, L, g, y, q;
13217
13218
  return /* @__PURE__ */ s.jsxs("div", { children: [
13218
13219
  /* @__PURE__ */ s.jsxs(L6, { value: x.id, children: [
13219
13220
  /* @__PURE__ */ s.jsx(W6, { children: /* @__PURE__ */ s.jsx(
@@ -13232,7 +13233,7 @@ function Mh({ expandFirst: e = !1 }) {
13232
13233
  ) }),
13233
13234
  /* @__PURE__ */ s.jsxs(q6, { children: [
13234
13235
  (N = x.detail_rows) != null && N.length ? /* @__PURE__ */ s.jsx("div", { className: "gw-w-[50%] gw-flex gw-flex-col gw-space-y-1 gw-px-3 gw-text-brand-gray-500", children: (L = (W = x.detail_rows) == null ? void 0 : W.map) == null ? void 0 : L.call(W, (F) => /* @__PURE__ */ s.jsx("div", { className: "gw-line-clamp-1 gw-truncate", children: F.toUpperCase() })) }) : null,
13235
- (X = x.blockExplorerTxns) != null && X.length ? /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-flex-col gw-items-start gw-space-y-1 gw-mb-2", children: (q = (y = x.blockExplorerTxns) == null ? void 0 : y.map) == null ? void 0 : q.call(y, (F) => /* @__PURE__ */ s.jsx(
13236
+ (g = x.blockExplorerTxns) != null && g.length ? /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-flex-col gw-items-start gw-space-y-1 gw-mb-2", children: (q = (y = x.blockExplorerTxns) == null ? void 0 : y.map) == null ? void 0 : q.call(y, (F) => /* @__PURE__ */ s.jsx(
13236
13237
  Js,
13237
13238
  {
13238
13239
  text: F.text,
@@ -13298,7 +13299,7 @@ function Ih(e) {
13298
13299
  }
13299
13300
  function Qh({ onAddFunds: e, onReceive: t, onSend: r }) {
13300
13301
  var c, u;
13301
- const { user: n, balances: o } = ct(), a = Qt(), l = jn.get(a) || !1, i = (u = (c = o == null ? void 0 : o.tokens) == null ? void 0 : c.find) == null ? void 0 : u.call(c, (f) => f.native);
13302
+ const { user: n, balances: o } = st(), a = Qt(), l = jn.get(a) || !1, i = (u = (c = o == null ? void 0 : o.tokens) == null ? void 0 : c.find) == null ? void 0 : u.call(c, (f) => f.native);
13302
13303
  return /* @__PURE__ */ s.jsxs("div", { className: "gw-w-full gw-h-full gw-p-4 gw-flex gw-flex-col gw-justify-between gw-gap-10 gw-items-center", children: [
13303
13304
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full", children: [
13304
13305
  /* @__PURE__ */ s.jsx("h6", { children: "My Balance" }),
@@ -13317,15 +13318,15 @@ function Qh({ onAddFunds: e, onReceive: t, onSend: r }) {
13317
13318
  ] })
13318
13319
  ] }),
13319
13320
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-space-x-3 gw-w-fit gw-pb-2", children: [
13320
- /* @__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: [
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: [
13321
13322
  /* @__PURE__ */ s.jsx(V6, {}),
13322
13323
  /* @__PURE__ */ s.jsx("span", { children: "Fund" })
13323
13324
  ] }) }),
13324
- /* @__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: [
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: [
13325
13326
  /* @__PURE__ */ s.jsx(Ih, {}),
13326
13327
  /* @__PURE__ */ s.jsx("span", { children: "Receive" })
13327
13328
  ] }) }),
13328
- /* @__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: [
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: [
13329
13330
  /* @__PURE__ */ s.jsx(Zd, {}),
13330
13331
  /* @__PURE__ */ s.jsx("span", { children: "Send" })
13331
13332
  ] }) })
@@ -13334,7 +13335,7 @@ function Qh({ onAddFunds: e, onReceive: t, onSend: r }) {
13334
13335
  }
13335
13336
  function Bh() {
13336
13337
  var n, o, a;
13337
- const { user: e, glyphUrl: t } = ct(), r = new URL("/profile", t).toString();
13338
+ const { user: e, glyphUrl: t } = st(), r = new URL("/profile", t).toString();
13338
13339
  return /* @__PURE__ */ s.jsxs("div", { className: "gw-p-4 gw-flex gw-flex-col gw-justify-between gw-min-h-full", children: [
13339
13340
  /* @__PURE__ */ s.jsxs("div", { children: [
13340
13341
  /* @__PURE__ */ s.jsxs("div", { className: "gw-mb-6 gw-flex gw-items-center gw-justify-between", children: [
@@ -13403,7 +13404,7 @@ function Bh() {
13403
13404
  ] })
13404
13405
  ] }),
13405
13406
  /* @__PURE__ */ s.jsxs(
13406
- Me,
13407
+ Ee,
13407
13408
  {
13408
13409
  className: "gw-w-full gw-mt-5",
13409
13410
  onClick: () => {
@@ -13649,52 +13650,67 @@ function _h(e) {
13649
13650
  return /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "6", viewBox: "0 0 10 6", fill: "none", ...e, children: /* @__PURE__ */ s.jsx("path", { d: "M9.02588 4.85156L5 0.825684L0.974121 4.85156", stroke: "#095546", strokeWidth: "1.34196", strokeLinecap: "round", strokeLinejoin: "round" }) });
13650
13651
  }
13651
13652
  function $h() {
13652
- const { balances: e } = W1(), [t, r] = fe(void 0), n = (e == null ? void 0 : e.nfts) || [];
13653
+ 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();
13653
13654
  return /* @__PURE__ */ s.jsxs("div", { className: "gw-p-4", children: [
13654
- /* @__PURE__ */ s.jsx("div", { className: "gw-flex gw-items-center gw-justify-between", children: /* @__PURE__ */ s.jsx("h6", { children: "My NFTs" }) }),
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
+ ] }),
13655
13670
  /* @__PURE__ */ s.jsxs("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2", children: [
13656
- n.length > 0 && /* @__PURE__ */ s.jsx(
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(
13657
13673
  Bs,
13658
13674
  {
13659
13675
  type: "single",
13660
13676
  collapsible: !0,
13661
- value: t,
13662
- onValueChange: r,
13663
- children: n.map((o, a) => {
13664
- const l = o.image ? /* @__PURE__ */ s.jsx(
13677
+ value: r,
13678
+ onValueChange: n,
13679
+ children: o.map((l, i) => {
13680
+ const c = l.image ? /* @__PURE__ */ s.jsx(
13665
13681
  "img",
13666
13682
  {
13667
- src: o.image,
13668
- alt: o.name,
13683
+ src: l.image,
13684
+ alt: l.name,
13669
13685
  className: "gw-w-10 gw-h-10 gw-object-cover gw-rounded-md gw-block"
13670
13686
  }
13671
13687
  ) : /* @__PURE__ */ s.jsx(e1, { width: "40", height: "40", className: "border-radius: 5px;" });
13672
- return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(_s, { value: a.toString(), children: [
13688
+ return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(_s, { value: i.toString(), children: [
13673
13689
  /* @__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: [
13674
13690
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-3 gw-min-w-0 gw-flex-1", children: [
13675
- /* @__PURE__ */ s.jsx("div", { className: "gw-flex-shrink-0", children: l }),
13676
- /* @__PURE__ */ s.jsx("span", { className: "gw-text-sm gw-line-clamp-1 gw-truncate gw-letter-spacing-0.12 gw-min-w-0 gw-max-w-[75%]", children: o.name.toLocaleUpperCase() })
13691
+ /* @__PURE__ */ s.jsx("div", { className: "gw-flex-shrink-0", children: c }),
13692
+ /* @__PURE__ */ s.jsx("span", { className: "gw-text-sm gw-line-clamp-1 gw-truncate gw-letter-spacing-0.12 gw-min-w-0 gw-max-w-[75%]", children: l.name.toLocaleUpperCase() })
13677
13693
  ] }),
13678
- /* @__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: `${t === a.toString() ? "gw-rotate-180" : ""}` }) })
13694
+ /* @__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" : ""}` }) })
13679
13695
  ] }) }),
13680
- /* @__PURE__ */ s.jsx(ei, { children: /* @__PURE__ */ s.jsx("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-mt-2", children: o.items.map((i) => {
13681
- var c;
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) => {
13697
+ var f;
13682
13698
  return /* @__PURE__ */ s.jsx(
13683
13699
  "img",
13684
13700
  {
13685
- title: i.name || i.tokenId,
13686
- src: (c = i.image) == null ? void 0 : c.thumbnailUrl,
13687
- alt: i.tokenId,
13701
+ title: u.name || u.tokenId,
13702
+ src: (f = u.image) == null ? void 0 : f.thumbnailUrl,
13703
+ alt: u.tokenId,
13688
13704
  className: "gw-w-16 gw-h-16 gw-object-cover gw-rounded-md gw-block"
13689
13705
  },
13690
- i.tokenId
13706
+ u.tokenId
13691
13707
  );
13692
13708
  }) }) })
13693
- ] }) }, a.toString());
13709
+ ] }) }, i.toString());
13694
13710
  })
13695
13711
  }
13696
13712
  ),
13697
- n.length === 0 && /* @__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 NFTs found" })
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" })
13698
13714
  ] })
13699
13715
  ] });
13700
13716
  }
@@ -13721,7 +13737,7 @@ function em({
13721
13737
  o === nt.TOKENS && /* @__PURE__ */ s.jsx(Ah, {}),
13722
13738
  o === nt.NFTS && /* @__PURE__ */ s.jsx($h, {})
13723
13739
  ] }),
13724
- footer: /* @__PURE__ */ s.jsx(Xh, { tab: o, setTab: a })
13740
+ footer: /* @__PURE__ */ s.jsx(gh, { tab: o, setTab: a })
13725
13741
  }
13726
13742
  );
13727
13743
  }
@@ -13754,7 +13770,7 @@ function rm(e) {
13754
13770
  ] });
13755
13771
  }
13756
13772
  function nm({ onBack: e }) {
13757
- const { user: t, logout: r, glyphUrl: n } = ct(), o = new URL("/profile/edit", n).toString();
13773
+ const { user: t, logout: r, glyphUrl: n } = st(), o = new URL("/profile/edit", n).toString();
13758
13774
  return /* @__PURE__ */ s.jsx(
13759
13775
  Yt,
13760
13776
  {
@@ -13770,7 +13786,7 @@ function nm({ onBack: e }) {
13770
13786
  content: /* @__PURE__ */ s.jsxs("div", { className: "gw-w-full gw-flex gw-flex-col gw-h-full", children: [
13771
13787
  /* @__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: [
13772
13788
  /* @__PURE__ */ s.jsxs(
13773
- Me,
13789
+ Ee,
13774
13790
  {
13775
13791
  variant: "tertiary",
13776
13792
  shadow: !0,
@@ -13807,7 +13823,7 @@ function nm({ onBack: e }) {
13807
13823
  ] }),
13808
13824
  /* @__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: [
13809
13825
  /* @__PURE__ */ s.jsx(
13810
- Me,
13826
+ Ee,
13811
13827
  {
13812
13828
  variant: "tertiary",
13813
13829
  className: "gw-w-full",
@@ -13817,18 +13833,18 @@ function nm({ onBack: e }) {
13817
13833
  children: "Edit Profile on Glyph Dashboard"
13818
13834
  }
13819
13835
  ),
13820
- /* @__PURE__ */ s.jsx(Me, { variant: "outline", className: "gw-w-full", onClick: r, children: "Log Out" })
13836
+ /* @__PURE__ */ s.jsx(Ee, { variant: "outline", className: "gw-w-full", onClick: r, children: "Log Out" })
13821
13837
  ] }) })
13822
13838
  ] })
13823
13839
  }
13824
13840
  );
13825
13841
  }
13826
- var om = Object.defineProperty, lo = Object.getOwnPropertySymbols, O6 = Object.prototype.hasOwnProperty, F6 = Object.prototype.propertyIsEnumerable, X2 = (e, t, r) => t in e ? om(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ea = (e, t) => {
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) => {
13827
13843
  for (var r in t || (t = {}))
13828
- O6.call(t, r) && X2(e, r, t[r]);
13844
+ O6.call(t, r) && g2(e, r, t[r]);
13829
13845
  if (lo)
13830
13846
  for (var r of lo(t))
13831
- F6.call(t, r) && X2(e, r, t[r]);
13847
+ F6.call(t, r) && g2(e, r, t[r]);
13832
13848
  return e;
13833
13849
  }, Ma = (e, t) => {
13834
13850
  var r = {};
@@ -13908,31 +13924,31 @@ var ln;
13908
13924
  throw new RangeError("Invalid value");
13909
13925
  let x, b;
13910
13926
  for (x = f; ; x++) {
13911
- const X = We.getNumDataCodewords(x, u) * 8, y = l.getTotalBits(c, x);
13912
- if (y <= X) {
13927
+ const g = We.getNumDataCodewords(x, u) * 8, y = l.getTotalBits(c, x);
13928
+ if (y <= g) {
13913
13929
  b = y;
13914
13930
  break;
13915
13931
  }
13916
13932
  if (x >= d)
13917
13933
  throw new RangeError("Data too long");
13918
13934
  }
13919
- for (const X of [We.Ecc.MEDIUM, We.Ecc.QUARTILE, We.Ecc.HIGH])
13920
- m && b <= We.getNumDataCodewords(x, X) * 8 && (u = X);
13935
+ for (const g of [We.Ecc.MEDIUM, We.Ecc.QUARTILE, We.Ecc.HIGH])
13936
+ m && b <= We.getNumDataCodewords(x, g) * 8 && (u = g);
13921
13937
  let N = [];
13922
- for (const X of c) {
13923
- r(X.mode.modeBits, 4, N), r(X.numChars, X.mode.numCharCountBits(x), N);
13924
- for (const y of X.getData())
13938
+ for (const g of c) {
13939
+ r(g.mode.modeBits, 4, N), r(g.numChars, g.mode.numCharCountBits(x), N);
13940
+ for (const y of g.getData())
13925
13941
  N.push(y);
13926
13942
  }
13927
13943
  o(N.length == b);
13928
13944
  const W = We.getNumDataCodewords(x, u) * 8;
13929
13945
  o(N.length <= W), r(0, Math.min(4, W - N.length), N), r(0, (8 - N.length % 8) % 8, N), o(N.length % 8 == 0);
13930
- for (let X = 236; N.length < W; X ^= 253)
13931
- r(X, 8, N);
13946
+ for (let g = 236; N.length < W; g ^= 253)
13947
+ r(g, 8, N);
13932
13948
  let L = [];
13933
13949
  for (; L.length * 8 < N.length; )
13934
13950
  L.push(0);
13935
- return N.forEach((X, y) => L[y >>> 3] |= X << 7 - (y & 7)), new We(x, u, L, v);
13951
+ return N.forEach((g, y) => L[y >>> 3] |= g << 7 - (y & 7)), new We(x, u, L, v);
13936
13952
  }
13937
13953
  /*-- Accessor methods --*/
13938
13954
  // Returns the color of the module (pixel) at the given coordinates, which is false
@@ -14023,16 +14039,16 @@ var ln;
14023
14039
  const d = We.NUM_ERROR_CORRECTION_BLOCKS[f.ordinal][u], v = We.ECC_CODEWORDS_PER_BLOCK[f.ordinal][u], m = Math.floor(We.getNumRawDataModules(u) / 8), x = d - m % d, b = Math.floor(m / d);
14024
14040
  let N = [];
14025
14041
  const W = We.reedSolomonComputeDivisor(v);
14026
- for (let X = 0, y = 0; X < d; X++) {
14027
- let q = c.slice(y, y + b - v + (X < x ? 0 : 1));
14042
+ for (let g = 0, y = 0; g < d; g++) {
14043
+ let q = c.slice(y, y + b - v + (g < x ? 0 : 1));
14028
14044
  y += q.length;
14029
14045
  const F = We.reedSolomonComputeRemainder(q, W);
14030
- X < x && q.push(0), N.push(q.concat(F));
14046
+ g < x && q.push(0), N.push(q.concat(F));
14031
14047
  }
14032
14048
  let L = [];
14033
- for (let X = 0; X < N[0].length; X++)
14049
+ for (let g = 0; g < N[0].length; g++)
14034
14050
  N.forEach((y, q) => {
14035
- (X != b - v || q >= x) && L.push(y[X]);
14051
+ (g != b - v || q >= x) && L.push(y[g]);
14036
14052
  });
14037
14053
  return o(L.length == m), L;
14038
14054
  }
@@ -14507,9 +14523,9 @@ var dm = function() {
14507
14523
  "boostLevel",
14508
14524
  "marginSize",
14509
14525
  "imageSettings"
14510
- ]), { style: N } = b, W = Ma(b, ["style"]), L = m == null ? void 0 : m.src, X = S.useRef(null), y = S.useRef(null), q = S.useCallback(
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(
14511
14527
  (E) => {
14512
- X.current = E, typeof r == "function" ? r(E) : r && (r.current = E);
14528
+ g.current = E, typeof r == "function" ? r(E) : r && (r.current = E);
14513
14529
  },
14514
14530
  [r]
14515
14531
  ), [F, O] = S.useState(!1), { margin: R, cells: j, numCells: Y, calculatedImageSettings: U } = H6({
@@ -14523,8 +14539,8 @@ var dm = function() {
14523
14539
  size: a
14524
14540
  });
14525
14541
  S.useEffect(() => {
14526
- if (X.current != null) {
14527
- const E = X.current, P = E.getContext("2d");
14542
+ if (g.current != null) {
14543
+ const E = g.current, P = E.getContext("2d");
14528
14544
  if (!P)
14529
14545
  return;
14530
14546
  let C = j;
@@ -14604,7 +14620,7 @@ var Z6 = S.forwardRef(
14604
14620
  "title",
14605
14621
  "marginSize",
14606
14622
  "imageSettings"
14607
- ]), { margin: N, cells: W, numCells: L, calculatedImageSettings: X } = H6({
14623
+ ]), { margin: N, cells: W, numCells: L, calculatedImageSettings: g } = H6({
14608
14624
  value: o,
14609
14625
  level: l,
14610
14626
  minVersion: f,
@@ -14615,20 +14631,20 @@ var Z6 = S.forwardRef(
14615
14631
  size: a
14616
14632
  });
14617
14633
  let y = W, q = null;
14618
- x != null && X != null && (X.excavation != null && (y = P6(
14634
+ x != null && g != null && (g.excavation != null && (y = P6(
14619
14635
  W,
14620
- X.excavation
14636
+ g.excavation
14621
14637
  )), q = /* @__PURE__ */ S.createElement(
14622
14638
  "image",
14623
14639
  {
14624
14640
  href: x.src,
14625
- height: X.h,
14626
- width: X.w,
14627
- x: X.x + N,
14628
- y: X.y + N,
14641
+ height: g.h,
14642
+ width: g.w,
14643
+ x: g.x + N,
14644
+ y: g.y + N,
14629
14645
  preserveAspectRatio: "none",
14630
- opacity: X.opacity,
14631
- crossOrigin: X.crossOrigin
14646
+ opacity: g.opacity,
14647
+ crossOrigin: g.crossOrigin
14632
14648
  }
14633
14649
  ));
14634
14650
  const F = z6(y, N);
@@ -14658,7 +14674,7 @@ var Z6 = S.forwardRef(
14658
14674
  Z6.displayName = "QRCodeSVG";
14659
14675
  const pm = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQMAAAEDCAYAAAAx0WHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAB3kSURBVHgB7Z3LchNZk8czT0nqnlWrn6BFfA/QYjHrFth42LV5Aszii6CBCMwTYJazahNhuzviW2CeALOjfUPsZjERiP0XgXiCUe9AUp2ck1UlLIzBF+rUuVT+OkDGmMZIqn/983IyEYSo6a322vAe2gCNjlLYyT87e6SfZl+HgG1Aah//80QwPPoVvis+O0TSo5RwBDAd9v/sD0EIHgQhePILvtEtLvauubB/Mhd2p7jo21ANRhhoAEYgCOANUjpIp2rY/9feAIQgEDEIjN7tnrnDN3vw8aIH/riqC/6CZCIxJMJX2ohE/8/9PgjeIWLgOb1/XuuqhuoB6p8RcRm8v/DPCvVNCPJGa9oRcfADEQPPYMuvxk2+6H+J6+I/DSMOWj3X9GFHchBuEDHwgN7txZ5S2cXfMy9JD2pOnrSk5+IaqkXEwBFHAqBWzC87IJzIkTBM1sUx2EXEoELyEKBxXxzARcnyDE8Pt/a2QSgdEYMKYBeQJPhQBKAcCrfwSEShXEQMLHHkAtQq1CYJWC0iCuUiYlAyRgQ6phqwakKBmyAiUAkiCuUgYlASEgq4h4i2TaLxkSQaL4aIwTciIuAbNCJtXMIf++sgnAsRgwsiIuA34hLOj4jBOeGcQDJpPhER8B/OJWg9viKCcDZEDM5IVh2YtB6aJ2wVhICgkSK4srclpydPQ4FwKld/W1xNJq23IgQhgm2N+Hrh7tJNEL6KOIOvcO3Ota5G+F1CgjhQRJfFIXwZEYMTkJAgVmiUppPLkkM4GRGDY2QHiBL1BOXwUJRkScXW+HJ/vT8C4RMaIGSIG6gHiNDh19l8+ACETxBnAHluIEV8Jm6gPkj+4HNqX03gSoHJNr8UIagXeWJYmKe2zoDDgmTcemKegWUQaknaHP8ouYMjaukMOCwwceNrEYJ6o8YtyQ/NUTsxWLi7cFPCAoFBpF9A+EitxGDxzqLJIifbIHMGhJwuCB+pRc4gyw9MmtxJuAKCMEeaqkv9P18MQYjfGRSnDF+KEAgn0pBwcUbUTUfZCLJJywiBvOCCcBrROoOiYiCJQuHrTOe3TNebKHMG+WlDZEcgiULhqxxs7koXbkF0zqAoHb4GEQLhFIwKSDvyHFGJAQtBUToUhFPRRK9A+Eg0YiBCIJyXBGAbhI9EIQYiBMJ54RBBTi1+SvBiwMlCEQLhvJgQ4TEInxC0GMxVDQTh7BBuyyq2zwlWDLihiAeSgFQNhPNAMGxqfATCZwRZY511FkpDkXAuMiFQV17IWYQTCU4MilmFr0UIhHMhQnAqwYUJPJ1IhEA4HzQQITidoA4q8TwCkulEwtkZIcLj/Y29NRBOJZgw4eqdayuI+AQE4SyYigEnCsUNnJ0gxCCfSdCS8wbnBt8B0UBTdoccmqhwyJ9V6usn9Qh0m7Rqmz/bBjQ/gNoI2CHz/BtB7phf/wRegu8QaXvaGK/LoNPz470YSMLwbJgL9Y25ePsmqzJIILXeXcevS3Pc7JBK2jqlLouGeY26FQvGyPzDXxFhP0Hdl47Cb8N7Mbhy99q2ApQNup+B74j0jlLJzrTxfuDjnbB3+3qn0YBO5jRS7LBgEEFHIbRZNMy7jx0HO48f4ETXZ5wN8Eo0GvJaNHPXNxe/GmJCw3SqBjKurFy8FgNecIJKybKLIwbG7j9HTTtyFxTKxlsxKPIEb0EYmTvjU3YA+xsv+iAIlvC2tFjMLqwzA9L4VH/3YVuSYUIVeCkGWT9BTROGJjZ+pZRaExcgVI13YUJdwwMRAcE13jmD2oUHnCVX6tbBpoiA4BavxKBm4UHWKjttSoOM4AfehAl1Cg84JGhptSKtsoJPeOMMahIejBD0o4Ot/XUQBM/wQgyyQ0iRhwdHbmB3CILgIc7DhDpMLTJu4MH+prgBwW+cOwOcNNeiFYKiUrC/sdsHQfAcp84g7qQhDZppckOShEIoOB17xq4A4uRp2pzImC0hKJw5g1hdASE8OtzYXQNBCAxnziCZNKMbYSZCIISMEzFYvL3YM6akBxEhQiCEjhMxoAQfQkSIEAgxULkYxOYKRAiEWKhcDFKlViESRAiEmKi0mhBTBUGEQIiNSjsQo+krINg53BQhEOKisjAhO4MQw8hzgmHaGt8CQYiMysRAjZs9CJ1ik68MIxFipLoEIkZQTlTpA2kxFmKlkpzBwr2lZXNX7UDA5AnDgx0QhEipxBloorDXqJvwQCoHQuxYF4MYEoecJwBBiBzrYhB64pDDA8kTCHXAes4AEcJ1BRweSD+BUBOsOgMOEUI+hyDhgVAnrIpB0CEC4baEB0KdsCoGAYcIo6bGRyAINcJazsCECG2YhBkimKThY3EF5dG7zeFio6MUdoBUG5Da5lk2P+CHL/8pfJc/0hBJj1LCEcB02P+zPwTBCtbEwIQIy/7teD4DJmnYStU2COeGbwDJh6RHmHTNS/+zef27cHwMPtLsAzgb5uswgST7uAULd5eAJ08bxR6a/9MbpHSQTtWw/6+9AQjfhDUxMHfXXpBaoODpiy1xBWeBL/5M9AG6iPgrTMyFr6o4F49dFhrz9yxnQtECFokRiwQRvtJa9+H76UDOkJwPa6/b1btLb4NbjlIcRJIQ4ctkAvDhuxVU+lf/K0XUJ62e66nui3M4HSti0LtzrZsgvobQMBWEg62/5HjyCfRuL/aSbHZloHkgI/Tm5+d6AtsiDCdjJUwwTrELASIVhE+ZuQBQdD/0FXimstUxP983IcX9q3eWhkYYHmk96UtC8ggrzuDKnaUdhfArhIS4go/kuYDGfcRsXmUbIoaItrWmp/0/9/tQc6z0GRgV/hkCI1X4FARYuLewrCat10YI1iByIWBM4nMlSdRL4xbeXr1zbQVqTOnOICsvTVr/ByFh4smDrd1LUGPyYbW85Squ5TbnpcgtPDrc2tuGmlG6M2i8bwSXLyCTWIIac/W3xVUj4K/rLgQM5xaMW3hSR6dQegJRKxVcf0ECsA01JHNx49YT4w/DHj5jgSLhyKLwEAkeHPyxG/2Uq9KdAYVWSTC2cG+rfqWmbOgMuwERgq+SiYKCZ8YlPMnbquOldDEwVYSfICiwDzUj6xngJGHg5cIqyRONzddX7yxGtSd0HhvVhKCcQd2qCAt3F25y9hxqUCkoH2xzlYXzCTG6hFLD+xA7Dw82d0M8QnEhrpnXR4fYGeopRHrtcGs/mka1Up1BQ1NQdxtTRnoFNYFzBCniMxBKg13Cwp2lZ7G4hFLFQGMSWFmRapM4NMnCl5IjsIBJwCrVehmDIJRbWsSwnAFSPZKHiybpRR4JAc8hIA0Dk6kfGpka8ueUguH812htvl8y7yfUHT6yXHS1evn+4opDkrTeXv1t8cHhH/vrECilikFemw0HhTSEyOHwgCZZa7FLRkT0VKlkZ9p4f+E5A9dXr3cmU901asLl0F/AM6eDSv1uqg0/hJpHKDV5tnD32stwuthodLC59yNEjsu5EpyTQQXrBxt2GnYW713vmSTeivmQD8V55BpoO21OHoQ2XKW6xaueQYRvIHK4ndaREIwQ9IPDrd2eLSFg9jde9E01aCVtji8Z58EnTofgBbiSTJovszmgAVG2GARz2MdcJPGPxHKx+ZqnRaXq8v5mdbEz34H5YJERBo9EAbtq3HodUmKxvs4AIOpKghNX4MHYOJ9EgXNoIVUaShYDDKcVmXTUzgAR70OVeDY/kkWh2cw2YjntMA1JEGrrDMyrFK0YcCcoVNwWTkDeLah9sf5iyDkFRM2iMARH5KXH5jPfcwi1FQOtkiFEinnzrUKV8IJaj4eB7G/s9927BOz6nlSsrzOIGAT8BSrE5F/egeccuQRw2AOQCcLv4CkiBpHBIUL15UR8C4Gwv7G7VoQNjsJEXPH1GLSIQWS4GFOvkII6k1KEDZfBUR4hO+B0d8m7pcQiBvFR+YXJ061CO6jDYUORRxiCE2j9Wp7o9QYRg8hwNaZeqWZwE4DcCgK2U0CvKgwliwF5n0iKH3Ty5uKxYLxzAQLDpSBkJUceSOsJtXUGSaojHftF7g5fkXrim/U9C3OCUH1SEWGZR9WDB5TdgRjM8hQKbPZCGGBbI7zs3VvsQWCwICiiK+AAVPjQh5xLuZOOyP968xHYgShxLcjYTojXlYU3RZhH5hPoB1A55jlLms7DhVLFQGFIJwEDOkdxPrw4mh3qfMBDPm2J9BgqB3uuw4VSxSDfUxcG6DK2tghp9Oc0ZjEfMLQ1ZWljsgYOTrW6DhfKriYMIRBMbTy4TdFnQSWpV0ez53cX8vIWCACej2ASijeg8oSiCRdUy1m7cqliYJQtmDCB36ShTaI5C9xdBx4ObslP7nEuIYw1ZZxQNPmD6s8xGDflKgFbqhikUxXUwJDmuNmBCEECBzHv2cjXlLXehiAKh/m0psrf0wmhE3dQqhj08/PswbiDlKgHETJtjflN7PXrEIooIDqpLnRd5FlsNB0NIRQwiTJvwDGvz+5gnk9Fwb+cQhF2VT4HwYRVv1cdxtoQg4CmDsfpDJj9rd018+/rQyDkoqBe8rh930TBJBPXwEEyUY1blZYaSxcDr0pbp5AlEW9f70CkNJuJR+PDzwr28kTj0ltfSpKcTHThtBDpfpXuoHQx0Kj7EBAKp8Edrjkrcz33wU2Cni9JLvy25Pw1cpOHqdYdlB8mtCZDCCiJaMqhv0LEFOO+Lrsd93VxspV9Cp657mZ0mIepbAhK6WKQr5QKabsx9mLsNzgOj/syLoGX3AwhREz9PU80ujvz0GipbaiYLJStqO/AyhFmopCSiOZJ+NBYgRpQuIRswQjvQYQA4TMPeTdj9S6Bnz8XSdmEqtmMZUUMlKIdCIjYQ4Xj8Fhz3oOoiHgOIJfNhhAQH1egO3AJJqnnINwy7rUCd1DqFuYZbLuTSYsn5gZjv1PUV/p5TbmW8EZjrdNl827vYUjnNgh20tb4VpUbjxfuLvEx8Urf28bNPTYibjWZaMUZhJc3ME+ExmirCmeBNxrzm+1wc7ebNsc/mtvEDX4Deh9O8MnIihecuikzwk3buS0rzoC5+tt/raIibxdGfA6N0ubkUpV3mJDInENKXfOadnkasm/ugY/Paz2+0v+zPwTLcG9KkujKd0XYdq/WxKAIFYIZg8aYN9Sjw6xzTzgLHwUCqQf5VOYOOKRKQeBOSY7loVKof7C5Z200mzUxYNw8Yd+CcQfp5HIVb6YY4WGoKSkjDLRsbG2lK96OoIFxeFdsO7zFO0trhFBxAtOue7U6HZm0eg5Bge0Q5//7As8QPPzjr3WuVHBPQ9HoNIRKwa6atOy/hspFpy13JDat5basOoMQQwWm7pWFslm8Z+6iVPFdFNMbBxsHVkvcbqoKaMrCf90CC1h1BkVVoQ+BobTyZrFFDHD3Y9HTUF1yltQT29l37aDSgqitOQPrS1TCCxXyppard5cCqoT4D4cQ5o18AyrD/iEfJOxD5WDbVgOSdTHQ333YhoAOLs0w8dNqiMtAfCYfFFKdU7R9BNjV8FnjXHtgAetiwKECEVU+KaYMOFyowyGmSkGssGHHrjuYNqZOxMCInJVKTSW7FkM7qzAj64GfNJ+BUBpVD8216Q6KnJiLLWJdG/+mSsSgantYLtiT/EGJqLRip2W3HGf+/32oHGwbW9KFkqlsC7Ob017lwPmDEHcH+kiisAMVw339YAlXW8RUCuGKQdjuYHaOXgThW9FELg6ElX7hHOFoi5iFyd6ViQFjVDTIROIMEYRvw8S5HQVY2RivI7DNrdJgAe1svmT5k70rFQMeqgGhjt0qEEG4ODhproEjUlvuQCdOyubZbMiSqVQMGFNmDDZ3MEME4fzw2HM3ruAjVsSg2CLmhLLH/FcuBrk7CDd3MIMFIZvYK30Ip8LhgXnCHIun+gGs4aS8aEr2aQ9KpHIxYEKuLHyCgyk7oZHlCSatl+h41oG5YC9BbBCVeiNyIgahVxbmyYdzNl/7sv3HJ/wRAutUPvUoA7EDJeJEDJhi9VckYDvf/uP/mvGqqJEQOKTc0MeZGGQz6JGC2BR8Vnh5qFKtl3V3Cbw4NZm0XosQ2Kbc0MeZGDBpY7IGgZcajzPbEZhvE66XS+BkKrdu8+JU8G5MPrqx8hZRCHE4AybbX4c6onBhHt4mzIs+6hE6sBtQuRuwOkPg4rjJ+NtEE4SfQJwnSyZGFi7Mw6FDzKLAIsAuiN2Az2EBUnibqKvGuRgwMYYLx/lEFP55zWKvfDXMi0AIE7AVOjpDYBFToi/VGVgdiHoeFu8t9oiyWLMm0IAIHuvWZCeUxS2cE+DjwPkpwIBG4BMMD7Z2rfUZuFwJcLC5W9o13ABP4HBh4d61x0B4H2oBds1F9cRk3bkkuY2kn6ffpX0fhSHLByhcxgneNLePADsubc8cwCi6UL0RA+ZgY2914e4Sj3QK3kafBw4hAJOVZJLwXabPpzv1BAb9f+05iXOzEfcfkh6h6pnvjc8TBP1mJ9CWpxjTjx6Z7AvjlRgwzaa6MZno1xD4G/DioLkAoZe0srn8I/NONuKArzSlA/h+OrDhHDixqVSzB7xDkdekTYzlVTG8vRkaFadlLYI/QQR4+XrXL39wLvIN14QjAnjDjwjTYWoes99NzWMyOSYYjQ7/rHjKEKk2oOZf/2AufOPAkD+OV3gJtw8sLR1hXC4K4ilLhyXmQrxzBgznD67eXXyAoGT24Oe0s2QVZkq+zDUzgMT8V5B90Pryn86+Po57/llQoO2WrcfNTixPpxelxZM43Nxfj7n/QLCPuXO+4uUtYJGGJmeuSmG5+0i8FQOGE4qxnG4UqseYoHWwjMbEWbJbE/wNJeK1GDBpc8IruaR7TDgvg4M/dnfANnn+xQkINXIGDGfPucIAkXcoCuWiiCo585JVXxxBJU9m9l4MGD7ubAThCoggCGfBVBBs5wqOQIc9MVgvZzBDBEE4E6bc1tRYyVi9bLajw7Js2YevghEDRgRBOA1jnR+9qGhicTJtOe2UTRNVT2cwQwRB+CImPLDfbTj312nHbfON9/V1BjNEEITPMOFB2vrwACrE1mr0s0GjslvTgxQDhgUhbY4vmzeB/fKR4DujplZXqj/x6S55SIRvoGSCFQOGX/yDrd0b0qlYczC99aLizUaLtxd74PRMB5VeLQlaDGZwp6Kp91aSQRb8AkE/ONg4qNwduuw8LBAx+BL7G7triFryCDWCzA1gn8+wOACV/hUcklgQg+iOr11fvd6ZTDQff+6AEC0sBIfmBgAOcHlsOYdGB5t7P0LJROMMZnBi8WBz95KEDfHCoYErIWB4DiQ4xEbykIlODGZw2EB5f/oQhFgYmWThDVehwQwCdCoGhj5YIFoxYLgBpehHeApC2HCbcaouu0gWzpNNiEZwmi/QSvXBAlGLAVOEDSviEsKFh5SkrfHlqsuHJ+E6RMiajTZe9MEC0YvBDHEJYZLlB7Z2e76MkM93RjiE0Nqk59qIASMuISRooIguu84PzJOfUnS7PIaArIVJXg5EtU1xmGV78d6SSTJmSt8BwRdG5u77eH9jbw08AyfNNXBMSyd9sEStnMFxuOIgoYM/cG6Ak4T7DsuGXwMBHR5Myp8fm3mT+szMPoWiWWnNfOg2JqwjplKASt3at5QYK4Ord66tIOITcAiHtzaPaIsYHENEoUKMCPAwkipnEFyUq3eX3rpeOZ82xz/aTKSKGHwBEQWLBCQCjA+uwPZmKKaWCcSzwJUH87BiRGFtPKFlBOLt0B0QLgzHvEqptf1Nf8OBE0F8CK4heg6WEWdwDvgOYZ4yc5cAp4mkwBiZWPepUsmOzzmBL+GHK4DhQYk7Fb+EOINzMCtJcggxHqer5k3CbakdED6DXYCxtjv6uw/bvjQMXQgfXAFgHypAnME3snjveo9Ir5gP2S10oMbkYQD0p1O13fegdfhb8cIVGEy59VIVrdgiBiXCwqB1umzuJj3zxDrbtFMhJgTI1sLvaPMjBgGYwd2GatJ66bqCYEKE5yZEqOQ8hIQJJVLExPwDilDCiAIacciEoQMRQMAXP/U5BzBtvB8EHQJ8hca4cZPQ/WuWKlVZO7Y4g4q4dudaNwXoGtvZI34MwzmMzNX/igj7KsFBzBf/POwKkknrLbimosThDHEGFVHs/uMf2/xrPhffmH7f1Sl1802+yEJhHuknqBx8Z+r+I9IwME5mgAkN08a4X4cL/yQ4PAAP4F4MqBBxBh7CLoJU0taabSoLBbXNRdqhYjR3LhoM/QAnj+s2FzH+nX2FucjNTxzbD/M/y49qiEqP0qkawPfvR3W96E/i6m+Lq6jU7+Cail0BI2IgCAVFePAanO5DyLF9DuEkan1qURDmKcID50LArsBFq7aIgSAYFu8sPnReRiyoOlcwQ8IEofYs3FtYBkqegQ84yBXMEGcg1BrOExAl7hOGBa5cASPOQKgt2dhzkzD0JTxw6QoYcQZCbTFC4E2egEmVsjqv4DSk6UioJZwwJIBV8AXC7b7jOQ/iDITawY1FhGoN/GHU1OgsVzBDnIFQKxbuLtw090BvEoYMITz2YVuUJBCF2sBt3hrxNfiE46ThPBImCLWgEAIvDiDN09TZ3g4vEDEQomdOCNy3Gs9hwoNHPoQHMyRMEKKm6C7k0WVeCYFP4cEMSSAK0ZIlCynZBg/xKTyYIWGCECXcRwDgpxD4Fh7MkDBBiI6rd5d+R58aiuYh2DHhwQ3wEAkThGjgswbJpMmnD3vgIyZPYMKDB+Ap4gyEKMgGziI+8+mswXEU0eViFqaXSM5ACB5uL+ZmIp+FgPMEPgsBI85ACJYsLBi3nph3cSVLRi4KET0+3NrzM4cxh4iBECS924s9lagnPruBHBocbO5dhgCQBKIQFMVAkofeVgvmyRKGiZeVg5MQZyAEQ7EIlU8c+tVNeDKjZqou+9hP8CVEDATvyc8WgBEB7EEg+F45OAkJEwRvmYUEOoSQYA5egBKaEDAiBoJ3ZCIwbtzHiWIRCCEk+AiXEA83q1+AUgYSJgje8FEEMDwRYDIh2Nhdg0ARMRCcE7oIMKELASNiIDgj6xVQuGwqBDchUBFgYhACRsRAqJTMBXz4bgWV/jWk6sCXiEUIGBEDwTosAPC+0TUu4KZxAdw6HKwLmCcmIWBEDAQr5HmAJl/4v8QkADO4fOhibbpNRAyEUsgODX1IeoSqhwi/mLdWF+JkZBKdN/Y33G4/soGIgXBuerd7nQSTLkGjA6h/Nnf+Hnh/YKgECIYK6EaIDUVnQcTAIXxRgbmgTCzdyT8ze5xBQ/5Za/OY4giSyaj/Z38IlXxfANkFj6qdf1/0k7njd4vvMSrLfzZo0EyTGyGdNTgvIgYVMZdEWy7JRg/zBxrOPkEEw2Nf87f5e0bF7/IF/MP8byJgG5CKCxs7xac7IBznadocr/bX+yOIGBEDy8TQUFNnYqsYfA0RA4vwOC5U6iGICIRItInCLyFiYIGjKb3hN9XUk/jzAychpxYtUMzl64EQHKHMK7SBiEHJ8CYf8nxAp3ACJvlqQrpbB5v1CQuOI2JQMhrVisRegUGwk7bGt2KvFpyGiEGJLNxbWjZvrA4IoTACTI0bONgBQZaolAlpiLUFNz7YDTTHlw42RAhmiDMQ6kWRG9ivcW7gS4gYlAp3A0rGwFNGiPB42hyv1z038CVEDEpEtyY7yaQVylz/+mBCAt5+XLe+gfOSgFAaw/8Zvv/Hf/7jP6THwA+I4JXKyoV//fe///ff4gZOQZxByUxb43XjDnimXwcEJxQisFbnnoGLIAGuBfINQPgSJFyoFpMcJKBHsU0gqgoRA0uIIFTHzAnU6VCRDUQMLFIIwjOQkMEKIgLlImJgmeur1zuTSfpETjCWxoiInprM93as48dcIWJQEcU6cZ5t0AHh3LALAMId/d2HbekTsIOIQYXkLkGvmQ9vgnAWMhegVLIjoYB9RAwcMCcKv4A4heOIADhCxMAhR4tGcCUfklpX8B2R3hEBcIuIgSewWxiP0x4CLkMuDDGXJEdaw3Pzbx1okwfoS5uwF4gYeMrives9nVIXkHi0+s8QtDjgO62pLxe/34gYBELWs6CwQ5p6vHPBT4Fgu88nN2kApIYqwcG08X4g2f8wEDEIGM45NKbfdwl0Ox+swgtR8uUspozZ4S1IUA7mYsa/CWiEBENN2XHgIYAaotKjdKoG8P37kVz0YSNiUAN6t693+LGp0jap5FQ3MZ0ebWYSS18f/h+9HnSxEc3lCQAAAABJRU5ErkJggg==", hm = 5 * 1e3;
14660
14676
  function mm({ onBack: e }) {
14661
- const { ready: t, user: r } = ct(), { refreshBalances: n, balances: o } = W1();
14677
+ const { ready: t, user: r } = st(), { refreshBalances: n, balances: o } = W1();
14662
14678
  return Ue(() => {
14663
14679
  if (!t) return;
14664
14680
  const a = setInterval(
@@ -14717,7 +14733,7 @@ function mm({ onBack: e }) {
14717
14733
  {
14718
14734
  text: "Copy Wallet Address",
14719
14735
  textToCopy: r == null ? void 0 : r.evmWallet,
14720
- className: Xs({
14736
+ className: gs({
14721
14737
  variant: "default",
14722
14738
  size: "default",
14723
14739
  className: "gw-w-full"
@@ -14729,7 +14745,7 @@ function mm({ onBack: e }) {
14729
14745
  }
14730
14746
  );
14731
14747
  }
14732
- function g2(e, [t, r]) {
14748
+ function X2(e, [t, r]) {
14733
14749
  return Math.min(r, Math.max(t, e));
14734
14750
  }
14735
14751
  function vm(e) {
@@ -14737,21 +14753,21 @@ function vm(e) {
14737
14753
  t,
14738
14754
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
14739
14755
  ), l = (b) => {
14740
- const { scope: N, children: W } = b, L = S.useRef(null), X = S.useRef(/* @__PURE__ */ new Map()).current;
14741
- return /* @__PURE__ */ s.jsx(o, { scope: N, itemMap: X, collectionRef: L, children: W });
14756
+ const { scope: N, children: W } = b, L = S.useRef(null), g = S.useRef(/* @__PURE__ */ new Map()).current;
14757
+ return /* @__PURE__ */ s.jsx(o, { scope: N, itemMap: g, collectionRef: L, children: W });
14742
14758
  };
14743
14759
  l.displayName = t;
14744
14760
  const i = e + "CollectionSlot", c = /* @__PURE__ */ a1(i), u = S.forwardRef(
14745
14761
  (b, N) => {
14746
- const { scope: W, children: L } = b, X = a(i, W), y = Ve(N, X.collectionRef);
14762
+ const { scope: W, children: L } = b, g = a(i, W), y = Ve(N, g.collectionRef);
14747
14763
  return /* @__PURE__ */ s.jsx(c, { ref: y, children: L });
14748
14764
  }
14749
14765
  );
14750
14766
  u.displayName = i;
14751
14767
  const f = e + "CollectionItemSlot", d = "data-radix-collection-item", v = /* @__PURE__ */ a1(f), m = S.forwardRef(
14752
14768
  (b, N) => {
14753
- const { scope: W, children: L, ...X } = b, y = S.useRef(null), q = Ve(N, y), F = a(f, W);
14754
- return S.useEffect(() => (F.itemMap.set(y, { ref: y, ...X }), () => void F.itemMap.delete(y))), /* @__PURE__ */ s.jsx(v, { [d]: "", ref: q, children: L });
14769
+ const { scope: W, children: L, ...g } = b, y = S.useRef(null), q = Ve(N, y), F = a(f, W);
14770
+ return S.useEffect(() => (F.itemMap.set(y, { ref: y, ...g }), () => void F.itemMap.delete(y))), /* @__PURE__ */ s.jsx(v, { [d]: "", ref: q, children: L });
14755
14771
  }
14756
14772
  );
14757
14773
  m.displayName = f;
@@ -14760,9 +14776,9 @@ function vm(e) {
14760
14776
  return S.useCallback(() => {
14761
14777
  const L = N.collectionRef.current;
14762
14778
  if (!L) return [];
14763
- const X = Array.from(L.querySelectorAll(`[${d}]`));
14779
+ const g = Array.from(L.querySelectorAll(`[${d}]`));
14764
14780
  return Array.from(N.itemMap.values()).sort(
14765
- (F, O) => X.indexOf(F.ref.current) - X.indexOf(O.ref.current)
14781
+ (F, O) => g.indexOf(F.ref.current) - g.indexOf(O.ref.current)
14766
14782
  );
14767
14783
  }, [N.collectionRef, N.itemMap]);
14768
14784
  }
@@ -14779,7 +14795,7 @@ function bm(e) {
14779
14795
  var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Select", [Po, Ho, Nm] = vm(cn), [Pn, by] = ir(cn, [
14780
14796
  Nm,
14781
14797
  To
14782
- ]), Zo = To(), [wm, Dr] = Pn(cn), [Xm, gm] = Pn(cn), K6 = (e) => {
14798
+ ]), Zo = To(), [wm, Dr] = Pn(cn), [gm, Xm] = Pn(cn), K6 = (e) => {
14783
14799
  const {
14784
14800
  __scopeSelect: t,
14785
14801
  children: r,
@@ -14795,7 +14811,7 @@ var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Sele
14795
14811
  disabled: v,
14796
14812
  required: m,
14797
14813
  form: x
14798
- } = e, b = Zo(t), [N, W] = w.useState(null), [L, X] = w.useState(null), [y, q] = w.useState(!1), F = h6(u), [O, R] = zr({
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({
14799
14815
  prop: n,
14800
14816
  defaultProp: o ?? !1,
14801
14817
  onChange: a,
@@ -14814,7 +14830,7 @@ var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Sele
14814
14830
  trigger: N,
14815
14831
  onTriggerChange: W,
14816
14832
  valueNode: L,
14817
- onValueNodeChange: X,
14833
+ onValueNodeChange: g,
14818
14834
  valueNodeHasChildren: y,
14819
14835
  onValueNodeHasChildrenChange: q,
14820
14836
  contentId: nr(),
@@ -14827,7 +14843,7 @@ var ym = [" ", "Enter", "ArrowUp", "ArrowDown"], xm = [" ", "Enter"], cn = "Sele
14827
14843
  disabled: v,
14828
14844
  children: [
14829
14845
  /* @__PURE__ */ s.jsx(Po.Provider, { scope: t, children: /* @__PURE__ */ s.jsx(
14830
- Xm,
14846
+ gm,
14831
14847
  {
14832
14848
  scope: e.__scopeSelect,
14833
14849
  onNativeOptionAdd: w.useCallback((C) => {
@@ -14869,7 +14885,7 @@ K6.displayName = cn;
14869
14885
  var k6 = "SelectTrigger", Y6 = w.forwardRef(
14870
14886
  (e, t) => {
14871
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) => {
14872
- const N = u().filter((X) => !X.disabled), W = N.find((X) => X.value === l.value), L = d0(N, b, W);
14888
+ const N = u().filter((g) => !g.disabled), W = N.find((g) => g.value === l.value), L = d0(N, b, W);
14873
14889
  L !== void 0 && l.onValueChange(L.value);
14874
14890
  }), x = (b) => {
14875
14891
  i || (l.onOpenChange(!0), m()), b && (l.triggerPointerDownPosRef.current = {
@@ -14878,7 +14894,7 @@ var k6 = "SelectTrigger", Y6 = w.forwardRef(
14878
14894
  });
14879
14895
  };
14880
14896
  return /* @__PURE__ */ s.jsx(Ec, { asChild: !0, ...a, children: /* @__PURE__ */ s.jsx(
14881
- Ee.button,
14897
+ Me.button,
14882
14898
  {
14883
14899
  type: "button",
14884
14900
  role: "combobox",
@@ -14913,10 +14929,10 @@ Y6.displayName = k6;
14913
14929
  var G6 = "SelectValue", Lm = w.forwardRef(
14914
14930
  (e, t) => {
14915
14931
  const { __scopeSelect: r, className: n, style: o, children: a, placeholder: l = "", ...i } = e, c = Dr(G6, r), { onValueNodeHasChildrenChange: u } = c, f = a !== void 0, d = Ve(t, c.onValueNodeChange);
14916
- return lt(() => {
14932
+ return ct(() => {
14917
14933
  u(f);
14918
14934
  }, [u, f]), /* @__PURE__ */ s.jsx(
14919
- Ee.span,
14935
+ Me.span,
14920
14936
  {
14921
14937
  ...i,
14922
14938
  ref: d,
@@ -14930,7 +14946,7 @@ Lm.displayName = G6;
14930
14946
  var Wm = "SelectIcon", J6 = w.forwardRef(
14931
14947
  (e, t) => {
14932
14948
  const { __scopeSelect: r, children: n, ...o } = e;
14933
- return /* @__PURE__ */ s.jsx(Ee.span, { "aria-hidden": !0, ...o, ref: t, children: n || "▼" });
14949
+ return /* @__PURE__ */ s.jsx(Me.span, { "aria-hidden": !0, ...o, ref: t, children: n || "▼" });
14934
14950
  }
14935
14951
  );
14936
14952
  J6.displayName = Wm;
@@ -14939,7 +14955,7 @@ D6.displayName = qm;
14939
14955
  var un = "SelectContent", E6 = w.forwardRef(
14940
14956
  (e, t) => {
14941
14957
  const r = Dr(un, e.__scopeSelect), [n, o] = w.useState();
14942
- if (lt(() => {
14958
+ if (ct(() => {
14943
14959
  o(new DocumentFragment());
14944
14960
  }, []), !r.open) {
14945
14961
  const a = n;
@@ -14974,12 +14990,12 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
14974
14990
  avoidCollisions: N,
14975
14991
  //
14976
14992
  ...W
14977
- } = e, L = Dr(un, r), [X, y] = w.useState(null), [q, F] = w.useState(null), O = Ve(t, (ee) => y(ee)), [R, j] = w.useState(null), [Y, U] = w.useState(
14993
+ } = 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(
14978
14994
  null
14979
14995
  ), K = Ho(r), [H, E] = w.useState(!1), P = w.useRef(!1);
14980
14996
  w.useEffect(() => {
14981
- if (X) return qs(X);
14982
- }, [X]), Ws();
14997
+ if (g) return qs(g);
14998
+ }, [g]), Ws();
14983
14999
  const C = w.useCallback(
14984
15000
  (ee) => {
14985
15001
  const [ae, ...he] = K().map((ue) => ue.ref.current), [se] = he.slice(-1), ie = document.activeElement;
@@ -14988,15 +15004,15 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
14988
15004
  },
14989
15005
  [K, q]
14990
15006
  ), Z = w.useCallback(
14991
- () => C([R, X]),
14992
- [C, R, X]
15007
+ () => C([R, g]),
15008
+ [C, R, g]
14993
15009
  );
14994
15010
  w.useEffect(() => {
14995
15011
  H && Z();
14996
15012
  }, [H, Z]);
14997
15013
  const { onOpenChange: G, triggerPointerDownPosRef: J } = L;
14998
15014
  w.useEffect(() => {
14999
- if (X) {
15015
+ if (g) {
15000
15016
  let ee = { x: 0, y: 0 };
15001
15017
  const ae = (se) => {
15002
15018
  var ie, ue;
@@ -15005,13 +15021,13 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15005
15021
  y: Math.abs(Math.round(se.pageY) - (((ue = J.current) == null ? void 0 : ue.y) ?? 0))
15006
15022
  };
15007
15023
  }, he = (se) => {
15008
- ee.x <= 10 && ee.y <= 10 ? se.preventDefault() : X.contains(se.target) || G(!1), document.removeEventListener("pointermove", ae), J.current = null;
15024
+ ee.x <= 10 && ee.y <= 10 ? se.preventDefault() : g.contains(se.target) || G(!1), document.removeEventListener("pointermove", ae), J.current = null;
15009
15025
  };
15010
15026
  return J.current !== null && (document.addEventListener("pointermove", ae), document.addEventListener("pointerup", he, { capture: !0, once: !0 })), () => {
15011
15027
  document.removeEventListener("pointermove", ae), document.removeEventListener("pointerup", he, { capture: !0 });
15012
15028
  };
15013
15029
  }
15014
- }, [X, G, J]), w.useEffect(() => {
15030
+ }, [g, G, J]), w.useEffect(() => {
15015
15031
  const ee = () => G(!1);
15016
15032
  return window.addEventListener("blur", ee), window.addEventListener("resize", ee), () => {
15017
15033
  window.removeEventListener("blur", ee), window.removeEventListener("resize", ee);
@@ -15026,7 +15042,7 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15026
15042
  (L.value !== void 0 && L.value === ae || se) && (j(ee), se && (P.current = !0));
15027
15043
  },
15028
15044
  [L.value]
15029
- ), _ = w.useCallback(() => X == null ? void 0 : X.focus(), [X]), $ = w.useCallback(
15045
+ ), _ = w.useCallback(() => g == null ? void 0 : g.focus(), [g]), $ = w.useCallback(
15030
15046
  (ee, ae, he) => {
15031
15047
  const se = !P.current && !he;
15032
15048
  (L.value !== void 0 && L.value === ae || se) && U(ee);
@@ -15048,7 +15064,7 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15048
15064
  M6,
15049
15065
  {
15050
15066
  scope: r,
15051
- content: X,
15067
+ content: g,
15052
15068
  viewport: q,
15053
15069
  onViewportChange: F,
15054
15070
  itemRefCallback: A,
@@ -15060,8 +15076,8 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15060
15076
  position: n,
15061
15077
  isPositioned: H,
15062
15078
  searchRef: Q,
15063
- children: /* @__PURE__ */ s.jsx(go, { as: Om, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
15064
- gs,
15079
+ children: /* @__PURE__ */ s.jsx(Xo, { as: Om, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
15080
+ Xs,
15065
15081
  {
15066
15082
  asChild: !0,
15067
15083
  trapped: L.open,
@@ -15124,11 +15140,11 @@ var Jt = 10, [M6, Er] = Pn(un), Vm = "SelectContentImpl", Om = /* @__PURE__ */ a
15124
15140
  );
15125
15141
  I6.displayName = Vm;
15126
15142
  var Fm = "SelectItemAlignedPosition", Q6 = w.forwardRef((e, t) => {
15127
- 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, X = w.useCallback(() => {
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(() => {
15128
15144
  if (a.trigger && a.valueNode && i && u && b && N && W) {
15129
15145
  const O = a.trigger.getBoundingClientRect(), R = u.getBoundingClientRect(), j = a.valueNode.getBoundingClientRect(), Y = W.getBoundingClientRect();
15130
15146
  if (a.dir !== "rtl") {
15131
- const ie = Y.left - R.left, ue = j.left - ie, me = O.left - ue, te = O.width + me, Pe = Math.max(te, R.width), Ce = window.innerWidth - Jt, Ye = g2(ue, [
15147
+ const ie = Y.left - R.left, ue = j.left - ie, me = O.left - ue, te = O.width + me, Pe = Math.max(te, R.width), Ce = window.innerWidth - Jt, Ye = X2(ue, [
15132
15148
  Jt,
15133
15149
  // Prevents the content from going off the starting edge of the
15134
15150
  // viewport. It may still go off the ending edge, but this can be
@@ -15139,7 +15155,7 @@ var Fm = "SelectItemAlignedPosition", Q6 = w.forwardRef((e, t) => {
15139
15155
  ]);
15140
15156
  i.style.minWidth = te + "px", i.style.left = Ye + "px";
15141
15157
  } else {
15142
- const ie = R.right - Y.right, ue = window.innerWidth - j.right - ie, me = window.innerWidth - O.right - ue, te = O.width + me, Pe = Math.max(te, R.width), Ce = window.innerWidth - Jt, Ye = g2(ue, [
15158
+ const ie = R.right - Y.right, ue = window.innerWidth - j.right - ie, me = window.innerWidth - O.right - ue, te = O.width + me, Pe = Math.max(te, R.width), Ce = window.innerWidth - Jt, Ye = X2(ue, [
15143
15159
  Jt,
15144
15160
  Math.max(Jt, Ce - Pe)
15145
15161
  ]);
@@ -15179,16 +15195,16 @@ var Fm = "SelectItemAlignedPosition", Q6 = w.forwardRef((e, t) => {
15179
15195
  a.dir,
15180
15196
  n
15181
15197
  ]);
15182
- lt(() => X(), [X]);
15198
+ ct(() => g(), [g]);
15183
15199
  const [y, q] = w.useState();
15184
- lt(() => {
15200
+ ct(() => {
15185
15201
  u && q(window.getComputedStyle(u).zIndex);
15186
15202
  }, [u]);
15187
15203
  const F = w.useCallback(
15188
15204
  (O) => {
15189
- O && x.current === !0 && (X(), L == null || L(), x.current = !1);
15205
+ O && x.current === !0 && (g(), L == null || L(), x.current = !1);
15190
15206
  },
15191
- [X, L]
15207
+ [g, L]
15192
15208
  );
15193
15209
  return /* @__PURE__ */ s.jsx(
15194
15210
  Sm,
@@ -15208,7 +15224,7 @@ var Fm = "SelectItemAlignedPosition", Q6 = w.forwardRef((e, t) => {
15208
15224
  zIndex: y
15209
15225
  },
15210
15226
  children: /* @__PURE__ */ s.jsx(
15211
- Ee.div,
15227
+ Me.div,
15212
15228
  {
15213
15229
  ...o,
15214
15230
  ref: d,
@@ -15271,7 +15287,7 @@ var [Sm, ti] = Pn(un, {}), Qa = "SelectViewport", B6 = w.forwardRef(
15271
15287
  }
15272
15288
  ),
15273
15289
  /* @__PURE__ */ s.jsx(Po.Slot, { scope: r, children: /* @__PURE__ */ s.jsx(
15274
- Ee.div,
15290
+ Me.div,
15275
15291
  {
15276
15292
  "data-radix-select-viewport": "",
15277
15293
  role: "presentation",
@@ -15297,8 +15313,8 @@ var [Sm, ti] = Pn(un, {}), Qa = "SelectViewport", B6 = w.forwardRef(
15297
15313
  if (m > 0) {
15298
15314
  const x = window.innerHeight - Jt * 2, b = parseFloat(d.style.minHeight), N = parseFloat(d.style.height), W = Math.max(b, N);
15299
15315
  if (W < x) {
15300
- const L = W + m, X = Math.min(x, L), y = L - X;
15301
- d.style.height = X + "px", d.style.bottom === "0px" && (f.scrollTop = y > 0 ? y : 0, d.style.justifyContent = "flex-end");
15316
+ const L = W + m, g = Math.min(x, L), y = L - g;
15317
+ d.style.height = g + "px", d.style.bottom === "0px" && (f.scrollTop = y > 0 ? y : 0, d.style.justifyContent = "flex-end");
15302
15318
  }
15303
15319
  }
15304
15320
  }
@@ -15313,14 +15329,14 @@ B6.displayName = Qa;
15313
15329
  var A6 = "SelectGroup", [Um, Cm] = Pn(A6), jm = w.forwardRef(
15314
15330
  (e, t) => {
15315
15331
  const { __scopeSelect: r, ...n } = e, o = nr();
15316
- return /* @__PURE__ */ s.jsx(Um, { scope: r, id: o, children: /* @__PURE__ */ s.jsx(Ee.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
15332
+ return /* @__PURE__ */ s.jsx(Um, { scope: r, id: o, children: /* @__PURE__ */ s.jsx(Me.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
15317
15333
  }
15318
15334
  );
15319
15335
  jm.displayName = A6;
15320
15336
  var _6 = "SelectLabel", $6 = w.forwardRef(
15321
15337
  (e, t) => {
15322
15338
  const { __scopeSelect: r, ...n } = e, o = Cm(_6, r);
15323
- return /* @__PURE__ */ s.jsx(Ee.div, { id: o.id, ...n, ref: t });
15339
+ return /* @__PURE__ */ s.jsx(Me.div, { id: o.id, ...n, ref: t });
15324
15340
  }
15325
15341
  );
15326
15342
  $6.displayName = _6;
@@ -15335,8 +15351,8 @@ var co = "SelectItem", [Rm, e0] = Pn(co), t0 = w.forwardRef(
15335
15351
  } = e, i = Dr(co, r), c = Er(co, r), u = i.value === n, [f, d] = w.useState(a ?? ""), [v, m] = w.useState(!1), x = Ve(
15336
15352
  t,
15337
15353
  (L) => {
15338
- var X;
15339
- return (X = c.itemRefCallback) == null ? void 0 : X.call(c, L, n, o);
15354
+ var g;
15355
+ return (g = c.itemRefCallback) == null ? void 0 : g.call(c, L, n, o);
15340
15356
  }
15341
15357
  ), b = nr(), N = w.useRef("touch"), W = () => {
15342
15358
  o || (i.onValueChange(n), i.onOpenChange(!1));
@@ -15354,7 +15370,7 @@ var co = "SelectItem", [Rm, e0] = Pn(co), t0 = w.forwardRef(
15354
15370
  textId: b,
15355
15371
  isSelected: u,
15356
15372
  onItemTextChange: w.useCallback((L) => {
15357
- d((X) => X || ((L == null ? void 0 : L.textContent) ?? "").trim());
15373
+ d((g) => g || ((L == null ? void 0 : L.textContent) ?? "").trim());
15358
15374
  }, []),
15359
15375
  children: /* @__PURE__ */ s.jsx(
15360
15376
  Po.ItemSlot,
@@ -15364,7 +15380,7 @@ var co = "SelectItem", [Rm, e0] = Pn(co), t0 = w.forwardRef(
15364
15380
  disabled: o,
15365
15381
  textValue: f,
15366
15382
  children: /* @__PURE__ */ s.jsx(
15367
- Ee.div,
15383
+ Me.div,
15368
15384
  {
15369
15385
  role: "option",
15370
15386
  "aria-labelledby": b,
@@ -15388,12 +15404,12 @@ var co = "SelectItem", [Rm, e0] = Pn(co), t0 = w.forwardRef(
15388
15404
  N.current = L.pointerType;
15389
15405
  }),
15390
15406
  onPointerMove: xe(l.onPointerMove, (L) => {
15391
- var X;
15392
- N.current = L.pointerType, o ? (X = c.onItemLeave) == null || X.call(c) : N.current === "mouse" && L.currentTarget.focus({ preventScroll: !0 });
15407
+ var g;
15408
+ N.current = L.pointerType, o ? (g = c.onItemLeave) == null || g.call(c) : N.current === "mouse" && L.currentTarget.focus({ preventScroll: !0 });
15393
15409
  }),
15394
15410
  onPointerLeave: xe(l.onPointerLeave, (L) => {
15395
- var X;
15396
- L.currentTarget === document.activeElement && ((X = c.onItemLeave) == null || X.call(c));
15411
+ var g;
15412
+ L.currentTarget === document.activeElement && ((g = c.onItemLeave) == null || g.call(c));
15397
15413
  }),
15398
15414
  onKeyDown: xe(l.onKeyDown, (L) => {
15399
15415
  var y;
@@ -15410,7 +15426,7 @@ var co = "SelectItem", [Rm, e0] = Pn(co), t0 = w.forwardRef(
15410
15426
  t0.displayName = co;
15411
15427
  var _n = "SelectItemText", zm = w.forwardRef(
15412
15428
  (e, t) => {
15413
- const { __scopeSelect: r, className: n, style: o, ...a } = e, l = Dr(_n, r), i = Er(_n, r), c = e0(_n, r), u = gm(_n, r), [f, d] = w.useState(null), v = Ve(
15429
+ const { __scopeSelect: r, className: n, style: o, ...a } = e, l = Dr(_n, r), i = Er(_n, r), c = e0(_n, r), u = Xm(_n, r), [f, d] = w.useState(null), v = Ve(
15414
15430
  t,
15415
15431
  (W) => d(W),
15416
15432
  c.onItemTextChange,
@@ -15422,8 +15438,8 @@ var _n = "SelectItemText", zm = w.forwardRef(
15422
15438
  () => /* @__PURE__ */ s.jsx("option", { value: c.value, disabled: c.disabled, children: m }, c.value),
15423
15439
  [c.disabled, c.value, m]
15424
15440
  ), { onNativeOptionAdd: b, onNativeOptionRemove: N } = u;
15425
- return lt(() => (b(x), () => N(x)), [b, N, x]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
15426
- /* @__PURE__ */ s.jsx(Ee.span, { id: c.textId, ...a, ref: v }),
15441
+ 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 }),
15427
15443
  c.isSelected && l.valueNode && !l.valueNodeHasChildren ? p1.createPortal(a.children, l.valueNode) : null
15428
15444
  ] });
15429
15445
  }
@@ -15432,13 +15448,13 @@ zm.displayName = _n;
15432
15448
  var r0 = "SelectItemIndicator", n0 = w.forwardRef(
15433
15449
  (e, t) => {
15434
15450
  const { __scopeSelect: r, ...n } = e;
15435
- return e0(r0, r).isSelected ? /* @__PURE__ */ s.jsx(Ee.span, { "aria-hidden": !0, ...n, ref: t }) : null;
15451
+ return e0(r0, r).isSelected ? /* @__PURE__ */ s.jsx(Me.span, { "aria-hidden": !0, ...n, ref: t }) : null;
15436
15452
  }
15437
15453
  );
15438
15454
  n0.displayName = r0;
15439
15455
  var Ba = "SelectScrollUpButton", o0 = w.forwardRef((e, t) => {
15440
15456
  const r = Er(Ba, e.__scopeSelect), n = ti(Ba, e.__scopeSelect), [o, a] = w.useState(!1), l = Ve(t, n.onScrollButtonChange);
15441
- return lt(() => {
15457
+ return ct(() => {
15442
15458
  if (r.viewport && r.isPositioned) {
15443
15459
  let i = function() {
15444
15460
  const u = c.scrollTop > 0;
@@ -15462,7 +15478,7 @@ var Ba = "SelectScrollUpButton", o0 = w.forwardRef((e, t) => {
15462
15478
  o0.displayName = Ba;
15463
15479
  var Aa = "SelectScrollDownButton", a0 = w.forwardRef((e, t) => {
15464
15480
  const r = Er(Aa, e.__scopeSelect), n = ti(Aa, e.__scopeSelect), [o, a] = w.useState(!1), l = Ve(t, n.onScrollButtonChange);
15465
- return lt(() => {
15481
+ return ct(() => {
15466
15482
  if (r.viewport && r.isPositioned) {
15467
15483
  let i = function() {
15468
15484
  const u = c.scrollHeight - c.clientHeight, f = Math.ceil(c.scrollTop) < u;
@@ -15488,12 +15504,12 @@ var s0 = w.forwardRef((e, t) => {
15488
15504
  const { __scopeSelect: r, onAutoScroll: n, ...o } = e, a = Er("SelectScrollButton", r), l = w.useRef(null), i = Ho(r), c = w.useCallback(() => {
15489
15505
  l.current !== null && (window.clearInterval(l.current), l.current = null);
15490
15506
  }, []);
15491
- return w.useEffect(() => () => c(), [c]), lt(() => {
15507
+ return w.useEffect(() => () => c(), [c]), ct(() => {
15492
15508
  var f;
15493
15509
  const u = i().find((d) => d.ref.current === document.activeElement);
15494
15510
  (f = u == null ? void 0 : u.ref.current) == null || f.scrollIntoView({ block: "nearest" });
15495
15511
  }, [i]), /* @__PURE__ */ s.jsx(
15496
- Ee.div,
15512
+ Me.div,
15497
15513
  {
15498
15514
  "aria-hidden": !0,
15499
15515
  ...o,
@@ -15514,7 +15530,7 @@ var s0 = w.forwardRef((e, t) => {
15514
15530
  }), Pm = "SelectSeparator", i0 = w.forwardRef(
15515
15531
  (e, t) => {
15516
15532
  const { __scopeSelect: r, ...n } = e;
15517
- return /* @__PURE__ */ s.jsx(Ee.div, { "aria-hidden": !0, ...n, ref: t });
15533
+ return /* @__PURE__ */ s.jsx(Me.div, { "aria-hidden": !0, ...n, ref: t });
15518
15534
  }
15519
15535
  );
15520
15536
  i0.displayName = Pm;
@@ -15540,7 +15556,7 @@ var Zm = "SelectBubbleInput", l0 = w.forwardRef(
15540
15556
  f.call(i, t), i.dispatchEvent(d);
15541
15557
  }
15542
15558
  }, [l, t]), /* @__PURE__ */ s.jsx(
15543
- Ee.select,
15559
+ Me.select,
15544
15560
  {
15545
15561
  ...r,
15546
15562
  style: { ...Qc, ...r.style },
@@ -15617,7 +15633,7 @@ const w0 = w.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
15617
15633
  }
15618
15634
  ));
15619
15635
  w0.displayName = b0.displayName;
15620
- const X0 = w.forwardRef(({ className: e, children: t, position: r = "popper", ...n }, o) => /* @__PURE__ */ s.jsx(Gm, { children: /* @__PURE__ */ s.jsxs(
15636
+ const g0 = w.forwardRef(({ className: e, children: t, position: r = "popper", ...n }, o) => /* @__PURE__ */ s.jsx(Gm, { children: /* @__PURE__ */ s.jsxs(
15621
15637
  p0,
15622
15638
  {
15623
15639
  ref: o,
@@ -15644,7 +15660,7 @@ const X0 = w.forwardRef(({ className: e, children: t, position: r = "popper", ..
15644
15660
  ]
15645
15661
  }
15646
15662
  ) }));
15647
- X0.displayName = p0.displayName;
15663
+ g0.displayName = p0.displayName;
15648
15664
  const Mm = w.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
15649
15665
  h0,
15650
15666
  {
@@ -15654,7 +15670,7 @@ const Mm = w.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
15654
15670
  }
15655
15671
  ));
15656
15672
  Mm.displayName = h0.displayName;
15657
- const g0 = w.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ s.jsxs(
15673
+ const X0 = w.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ s.jsxs(
15658
15674
  m0,
15659
15675
  {
15660
15676
  ref: n,
@@ -15669,7 +15685,7 @@ const g0 = w.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
15669
15685
  ]
15670
15686
  }
15671
15687
  ));
15672
- g0.displayName = m0.displayName;
15688
+ X0.displayName = m0.displayName;
15673
15689
  const L0 = w.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(y0, { ref: r, className: pe("gw-mx-1 gw-my-1 gw-h-px gw-bg-muted", e), ...t }));
15674
15690
  L0.displayName = y0.displayName;
15675
15691
  const Im = ({ text: e, type: t, className: r }) => /* @__PURE__ */ s.jsx("div", { className: "gw-relative gw-w-full", children: e ? /* @__PURE__ */ s.jsx(
@@ -15801,7 +15817,7 @@ const Qm = ({
15801
15817
  recipientAddress: o,
15802
15818
  recipientAddressError: a
15803
15819
  }) => {
15804
- const { user: l } = ct();
15820
+ const { user: l } = st();
15805
15821
  return Ue(() => {
15806
15822
  a || o && (ui(o, { strict: !1 }) || n("Please enter a valid recipient wallet address"));
15807
15823
  }, [o, a, n]), /* @__PURE__ */ s.jsx(
@@ -15860,7 +15876,7 @@ const Qm = ({
15860
15876
  ) })
15861
15877
  ] }),
15862
15878
  footer: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
15863
- Me,
15879
+ Ee,
15864
15880
  {
15865
15881
  variant: "tertiary",
15866
15882
  className: "gw-w-full gw-mt-4",
@@ -15910,7 +15926,7 @@ Please try again.` }),
15910
15926
  },
15911
15927
  r
15912
15928
  ) : null }),
15913
- /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
15929
+ /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
15914
15930
  ] }) })
15915
15931
  ] })
15916
15932
  }
@@ -15923,7 +15939,7 @@ Please try again.` }),
15923
15939
  tokenSymbol: a,
15924
15940
  TokenIcon: l
15925
15941
  }) => {
15926
- const { user: i } = ct(), c = Qt(), u = jn.get(c) || !1;
15942
+ const { user: i } = st(), c = Qt(), u = jn.get(c) || !1;
15927
15943
  return /* @__PURE__ */ s.jsx(
15928
15944
  Yt,
15929
15945
  {
@@ -15991,7 +16007,7 @@ Please try again.` }),
15991
16007
  },
15992
16008
  t
15993
16009
  ) }),
15994
- /* @__PURE__ */ s.jsx(Me, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
16010
+ /* @__PURE__ */ s.jsx(Ee, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
15995
16011
  ] }),
15996
16012
  footerCols: !0,
15997
16013
  mainFooter: !1
@@ -16003,7 +16019,7 @@ Please try again.` }),
16003
16019
  quote: r,
16004
16020
  tokenSymbol: n
16005
16021
  }) => {
16006
- const { user: o } = ct();
16022
+ const { user: o } = st();
16007
16023
  return /* @__PURE__ */ s.jsx(
16008
16024
  Yt,
16009
16025
  {
@@ -16048,7 +16064,7 @@ sent to ${Ot(r.receiver_address)}` }),
16048
16064
  ] })
16049
16065
  ] })
16050
16066
  ] }),
16051
- /* @__PURE__ */ s.jsx(Me, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
16067
+ /* @__PURE__ */ s.jsx(Ee, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
16052
16068
  ] }) })
16053
16069
  ] })
16054
16070
  }
@@ -16060,7 +16076,7 @@ sent to ${Ot(r.receiver_address)}` }),
16060
16076
  };
16061
16077
  function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16062
16078
  var Fe, ht;
16063
- const { user: o, sendTransaction: a } = ct(), { glyphApiFetch: l } = Fo(), i = Qt(), [c, u] = fe(""), [f, d] = fe(null), { refreshBalances: v, balances: m } = W1(), x = wt(() => Xd(i || $n.id), [i]), [b, N] = fe(Lt.ENTER_ADDRESS), [W, L] = fe(Hn), X = wt(
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(
16064
16080
  () => {
16065
16081
  var re;
16066
16082
  return (re = m == null ? void 0 : m.tokens) == null ? void 0 : re.find((le) => le.address === Hn);
@@ -16106,31 +16122,31 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16106
16122
  if (W === Hn && (j || O === Number(y.value || 0)))
16107
16123
  _e = BigInt(y.valueInWei || 0) - tt;
16108
16124
  else {
16109
- if (tt > BigInt((X == null ? void 0 : X.valueInWei) || 0)) {
16125
+ if (tt > BigInt((g == null ? void 0 : g.valueInWei) || 0)) {
16110
16126
  A("Insufficient gas balance"), E(!1);
16111
16127
  return;
16112
16128
  }
16113
16129
  _e = j ? BigInt(y.valueInWei || 0) : bd(O, y.decimals || 18);
16114
16130
  }
16115
- const g = Te / 2n, p = U1(
16131
+ const X = Te / 2n, p = U1(
16116
16132
  +Mo(_e, y.decimals || 18),
16117
16133
  y.displayDecimals
16118
16134
  );
16119
16135
  K({
16120
16136
  tokenAddress: W,
16121
16137
  receiver_address: c,
16122
- maxPriorityFeePerGas: g,
16138
+ maxPriorityFeePerGas: X,
16123
16139
  maxFeePerGas: Te,
16124
16140
  receivable_amount: _e,
16125
16141
  receivable_amount_in_token: p,
16126
16142
  receivable_amount_in_currency: U1(
16127
16143
  p * +(y.rateInCurrency || 0)
16128
16144
  ),
16129
- estimated_fees_amount: Mo(tt, (X == null ? void 0 : X.decimals) || 18),
16145
+ estimated_fees_amount: Mo(tt, (g == null ? void 0 : g.decimals) || 18),
16130
16146
  estimated_fees_amount_in_currency: U1(
16131
- +Mo(tt, (X == null ? void 0 : X.decimals) || 18) * +((X == null ? void 0 : X.rateInCurrency) || 0)
16147
+ +Mo(tt, (g == null ? void 0 : g.decimals) || 18) * +((g == null ? void 0 : g.rateInCurrency) || 0)
16132
16148
  ),
16133
- currency: (X == null ? void 0 : X.currency) || "",
16149
+ currency: (g == null ? void 0 : g.currency) || "",
16134
16150
  in_amount: O.toString(),
16135
16151
  gasLimit: Ae
16136
16152
  }), E(!1);
@@ -16143,7 +16159,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16143
16159
  O,
16144
16160
  P,
16145
16161
  _,
16146
- X,
16162
+ g,
16147
16163
  x,
16148
16164
  c,
16149
16165
  W,
@@ -16231,12 +16247,12 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16231
16247
  },
16232
16248
  children: [
16233
16249
  /* @__PURE__ */ s.jsx(x0, { className: "gw-h-auto gw-p-1", children: /* @__PURE__ */ s.jsx(pt, { className: pe("gw-w-6 gw-h-6 gw-mr-2", te && rn) }) }),
16234
- /* @__PURE__ */ s.jsx(X0, { children: (ht = (Fe = m == null ? void 0 : m.tokens) == null ? void 0 : Fe.map) == null ? void 0 : ht.call(Fe, (re, le) => {
16250
+ /* @__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) => {
16235
16251
  var Ae;
16236
16252
  if (re != null && re.hide) return null;
16237
16253
  const Te = Ua[re.symbol] || e1;
16238
16254
  return /* @__PURE__ */ s.jsxs("div", { children: [
16239
- /* @__PURE__ */ s.jsx(g0, { 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: [
16255
+ /* @__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: [
16240
16256
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-3", children: [
16241
16257
  /* @__PURE__ */ s.jsx(Te, { className: pe("gw-w-8 gw-h-8", te && rn) }),
16242
16258
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end", children: [
@@ -16327,7 +16343,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16327
16343
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-center gw-items-center gw-mt-4 gw-gap-4", children: [
16328
16344
  (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) }),
16329
16345
  /* @__PURE__ */ s.jsx(
16330
- Me,
16346
+ Ee,
16331
16347
  {
16332
16348
  variant: "tertiary",
16333
16349
  size: "sm",
@@ -16351,7 +16367,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16351
16367
  ] }),
16352
16368
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
16353
16369
  /* @__PURE__ */ s.jsx("span", { children: "Network Fees" }),
16354
- /* @__PURE__ */ s.jsx("div", { className: "gw-text-brand-gray-500 gw-text-right", children: H || !U ? /* @__PURE__ */ s.jsx(Nt, { className: "gw-w-20 gw-h-4" }) : `${U1(U == null ? void 0 : U.estimated_fees_amount_in_currency, X == null ? void 0 : X.displayDecimals)} ${X == null ? void 0 : X.symbol} (${mt(U == null ? void 0 : U.estimated_fees_amount_in_currency, U == null ? void 0 : U.currency)})` })
16370
+ /* @__PURE__ */ s.jsx("div", { className: "gw-text-brand-gray-500 gw-text-right", children: H || !U ? /* @__PURE__ */ s.jsx(Nt, { className: "gw-w-20 gw-h-4" }) : `${U1(U == null ? void 0 : U.estimated_fees_amount_in_currency, g == null ? void 0 : g.displayDecimals)} ${g == null ? void 0 : g.symbol} (${mt(U == null ? void 0 : U.estimated_fees_amount_in_currency, U == null ? void 0 : U.currency)})` })
16355
16371
  ] }),
16356
16372
  /* @__PURE__ */ s.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
16357
16373
  /* @__PURE__ */ s.jsx("span", { children: "Expected receivable amount" }),
@@ -16391,7 +16407,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16391
16407
  ] }),
16392
16408
  /* @__PURE__ */ s.jsx("div", { className: "gw-text-destructive gw-typography-caption gw-text-center gw-mt-1 gw-h-3", children: D || null }),
16393
16409
  /* @__PURE__ */ s.jsxs(
16394
- Me,
16410
+ Ee,
16395
16411
  {
16396
16412
  variant: "default",
16397
16413
  className: "gw-w-full gw-mt-2",
@@ -16426,7 +16442,7 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16426
16442
  maxPriorityFeePerGas: U == null ? void 0 : U.maxPriorityFeePerGas
16427
16443
  });
16428
16444
  try {
16429
- const g = W5({
16445
+ const X = W5({
16430
16446
  abi: Eo,
16431
16447
  functionName: "transfer",
16432
16448
  args: [c, U == null ? void 0 : U.receivable_amount]
@@ -16434,13 +16450,13 @@ function iv({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
16434
16450
  re = await a({
16435
16451
  transaction: {
16436
16452
  to: W,
16437
- data: g,
16453
+ data: X,
16438
16454
  maxFeePerGas: (le = _e == null ? void 0 : _e.request) == null ? void 0 : le.maxFeePerGas,
16439
16455
  maxPriorityFeePerGas: (Te = _e == null ? void 0 : _e.request) == null ? void 0 : Te.maxPriorityFeePerGas
16440
16456
  }
16441
16457
  }), Ae = typeof re == "object" ? re.hash : re;
16442
- } catch (g) {
16443
- throw me.error("error sending txn", g), g;
16458
+ } catch (X) {
16459
+ throw me.error("error sending txn", X), X;
16444
16460
  }
16445
16461
  }
16446
16462
  if (me.debug("using tx", Ae), !l) return Cr.error("Glyph API not ready");
@@ -16570,7 +16586,7 @@ const L2 = Kr(
16570
16586
  ) : null, q0 = ({ buttonProps: e }) => {
16571
16587
  const t = "light", r = Nd("(min-width: 768px)"), n = Qt(), o = wr(h1);
16572
16588
  if (!o) throw new Error("GlyphWidget must be used within a GlyphViewProvider");
16573
- const { glyphView: a, setGlyphView: l } = o, { ready: i, authenticated: c, user: u, hideWidget: f } = ct();
16589
+ const { glyphView: a, setGlyphView: l } = o, { ready: i, authenticated: c, user: u, hideWidget: f } = st();
16574
16590
  Ue(() => {
16575
16591
  (!i || !c) && l($e.CLOSED);
16576
16592
  }, [i, c, l]);
@@ -16615,14 +16631,14 @@ const L2 = Kr(
16615
16631
  };
16616
16632
  q0.displayName = "GlyphWidget";
16617
16633
  const yy = Kr(q0), V0 = () => {
16618
- const { logout: e } = ct();
16619
- return /* @__PURE__ */ s.jsx(Me, { className: "gw-w-full", variant: "outline", onClick: e, children: "Logout" });
16634
+ const { logout: e } = st();
16635
+ return /* @__PURE__ */ s.jsx(Ee, { className: "gw-w-full", variant: "outline", onClick: e, children: "Logout" });
16620
16636
  };
16621
16637
  V0.displayName = "LogoutButton";
16622
16638
  const xy = Kr(V0), O0 = () => {
16623
- const { glyphUrl: e } = ct(), t = new URL("/", e).toString();
16639
+ const { glyphUrl: e } = st(), t = new URL("/", e).toString();
16624
16640
  return e ? /* @__PURE__ */ s.jsx(
16625
- Me,
16641
+ Ee,
16626
16642
  {
16627
16643
  variant: "outline",
16628
16644
  size: "login",
@@ -16635,7 +16651,7 @@ const xy = Kr(V0), O0 = () => {
16635
16651
  /* @__PURE__ */ s.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Visit Glyph Portal" })
16636
16652
  ] })
16637
16653
  }
16638
- ) : /* @__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: [
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: [
16639
16655
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
16640
16656
  /* @__PURE__ */ s.jsx(N1, { className: "gw-size-4 gw-animate-spin" })
16641
16657
  ] }) });
@@ -16673,13 +16689,13 @@ const Ny = Kr(O0), Qr = dn("GlyphData"), cv = ({ children: e }) => {
16673
16689
  enabled: r && n && !!o,
16674
16690
  refetchInterval: ud,
16675
16691
  retry: (L) => {
16676
- const X = L < 5;
16677
- return X && Qr.debug(`Retrying user fetch (attempt ${L + 1})...`), X;
16692
+ const g = L < 5;
16693
+ return g && Qr.debug(`Retrying user fetch (attempt ${L + 1})...`), g;
16678
16694
  },
16679
16695
  retryDelay: (L) => Math.min(1e3 * 2 ** L, 3e4)
16680
16696
  // Exponential backoff
16681
16697
  }), N = bt(
16682
- async (L = !1, X) => {
16698
+ async (L = !1, g) => {
16683
16699
  if (!r || !n || !o || !m || u) return;
16684
16700
  const y = Date.now();
16685
16701
  if (!(!L && y - d < Si))
@@ -16689,7 +16705,7 @@ const Ny = Kr(O0), Qr = dn("GlyphData"), cv = ({ children: e }) => {
16689
16705
  if (q.ok) {
16690
16706
  const F = await q.json();
16691
16707
  if (v5(i, F)) return;
16692
- Object.entries(X || {}).forEach(([O, R]) => {
16708
+ Object.entries(g || {}).forEach(([O, R]) => {
16693
16709
  var U, K, H, E, P, C;
16694
16710
  const j = ((H = (K = (U = F == null ? void 0 : F.tokens) == null ? void 0 : U.find) == null ? void 0 : K.call(U, (Z) => Z.symbol === O)) == null ? void 0 : H.value) || "0", Y = ((C = (P = (E = i == null ? void 0 : i.tokens) == null ? void 0 : E.find) == null ? void 0 : P.call(E, (Z) => Z.symbol === O)) == null ? void 0 : C.value) || "0";
16695
16711
  j && j !== Y && R(Number(j) - Number(Y));
@@ -16796,14 +16812,14 @@ const dv = dn("GlyphProvider"), fv = $2(() => import("./PrivyStrategy.js")), pv
16796
16812
  var u;
16797
16813
  const a = wt(
16798
16814
  () => ({
16799
- [Xn.EIP1193]: pv,
16800
- [Xn.PRIVY]: fv
16815
+ [gn.EIP1193]: pv,
16816
+ [gn.PRIVY]: fv
16801
16817
  // default strategy
16802
16818
  }),
16803
16819
  []
16804
16820
  ), [l, i] = fe(t);
16805
16821
  dv.debug("strategy", l), Ue(() => {
16806
- t && Object.values(Xn).includes(t) ? i(t) : i(Ci);
16822
+ t && Object.values(gn).includes(t) ? i(t) : i(Ci);
16807
16823
  }, [t]);
16808
16824
  const c = wt(
16809
16825
  () => a[l],
@@ -16829,12 +16845,12 @@ const dv = dn("GlyphProvider"), fv = $2(() => import("./PrivyStrategy.js")), pv
16829
16845
  }, [e, t]),
16830
16846
  disconnect: r
16831
16847
  };
16832
- }, Xy = Kr(() => {
16848
+ }, gy = Kr(() => {
16833
16849
  const { connect: e } = hv(), { isConnected: t, isConnecting: r } = x5();
16834
- 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: [
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: [
16835
16851
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
16836
16852
  /* @__PURE__ */ s.jsx(N1, { className: "gw-size-4 gw-animate-spin" })
16837
- ] }) }) : /* @__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: [
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: [
16838
16854
  /* @__PURE__ */ s.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ s.jsx(nn, { className: "!gw-size-5" }) }),
16839
16855
  /* @__PURE__ */ s.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Connect to Glyph" })
16840
16856
  ] }) });
@@ -16965,15 +16981,15 @@ function ma(e) {
16965
16981
  function tr(e, t) {
16966
16982
  return e << 32 - t | e >>> t;
16967
16983
  }
16968
- function Xv(e) {
16984
+ function gv(e) {
16969
16985
  if (typeof e != "string")
16970
16986
  throw new Error("string expected");
16971
16987
  return new Uint8Array(new TextEncoder().encode(e));
16972
16988
  }
16973
16989
  function ri(e) {
16974
- return typeof e == "string" && (e = Xv(e)), q1(e), e;
16990
+ return typeof e == "string" && (e = gv(e)), q1(e), e;
16975
16991
  }
16976
- function gv(...e) {
16992
+ function Xv(...e) {
16977
16993
  let t = 0;
16978
16994
  for (let n = 0; n < e.length; n++) {
16979
16995
  const o = e[n];
@@ -17399,7 +17415,7 @@ function U2(e) {
17399
17415
  };
17400
17416
  }
17401
17417
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
17402
- const Vt = BigInt(0), Xt = BigInt(1), Br = /* @__PURE__ */ BigInt(2), Pv = /* @__PURE__ */ BigInt(3), K0 = /* @__PURE__ */ BigInt(4), k0 = /* @__PURE__ */ BigInt(5), Y0 = /* @__PURE__ */ BigInt(8);
17418
+ const Vt = BigInt(0), gt = BigInt(1), Br = /* @__PURE__ */ BigInt(2), Pv = /* @__PURE__ */ BigInt(3), K0 = /* @__PURE__ */ BigInt(4), k0 = /* @__PURE__ */ BigInt(5), Y0 = /* @__PURE__ */ BigInt(8);
17403
17419
  function qt(e, t) {
17404
17420
  const r = e % t;
17405
17421
  return r >= Vt ? r : t + r;
@@ -17415,17 +17431,17 @@ function ts(e, t) {
17415
17431
  throw new Error("invert: expected non-zero number");
17416
17432
  if (t <= Vt)
17417
17433
  throw new Error("invert: expected positive modulus, got " + t);
17418
- let r = qt(e, t), n = t, o = Vt, a = Xt;
17434
+ let r = qt(e, t), n = t, o = Vt, a = gt;
17419
17435
  for (; r !== Vt; ) {
17420
17436
  const i = n / r, c = n % r, u = o - a * i;
17421
17437
  n = r, r = c, o = a, a = u;
17422
17438
  }
17423
- if (n !== Xt)
17439
+ if (n !== gt)
17424
17440
  throw new Error("invert: does not exist");
17425
17441
  return qt(o, t);
17426
17442
  }
17427
17443
  function G0(e, t) {
17428
- const r = (e.ORDER + Xt) / K0, n = e.pow(t, r);
17444
+ const r = (e.ORDER + gt) / K0, n = e.pow(t, r);
17429
17445
  if (!e.eql(e.sqr(n), t))
17430
17446
  throw new Error("Cannot find square root");
17431
17447
  return n;
@@ -17439,7 +17455,7 @@ function Hv(e, t) {
17439
17455
  function Zv(e) {
17440
17456
  if (e < BigInt(3))
17441
17457
  throw new Error("sqrt is not defined for small field");
17442
- let t = e - Xt, r = 0;
17458
+ let t = e - gt, r = 0;
17443
17459
  for (; t % Br === Vt; )
17444
17460
  t /= Br, r++;
17445
17461
  let n = Br;
@@ -17450,7 +17466,7 @@ function Zv(e) {
17450
17466
  if (r === 1)
17451
17467
  return G0;
17452
17468
  let a = o.pow(n, t);
17453
- const l = (t + Xt) / Br;
17469
+ const l = (t + gt) / Br;
17454
17470
  return function(c, u) {
17455
17471
  if (c.is0(u))
17456
17472
  return u;
@@ -17464,7 +17480,7 @@ function Zv(e) {
17464
17480
  for (; !c.eql(b, c.ONE); )
17465
17481
  if (x++, b = c.sqr(b), x === f)
17466
17482
  throw new Error("Cannot find square root");
17467
- const N = Xt << BigInt(f - x - 1), W = c.pow(d, N);
17483
+ const N = gt << BigInt(f - x - 1), W = c.pow(d, N);
17468
17484
  f = x, d = c.sqr(W), v = c.mul(v, d), m = c.mul(m, W);
17469
17485
  }
17470
17486
  return m;
@@ -17506,11 +17522,11 @@ function Gv(e, t, r) {
17506
17522
  throw new Error("invalid exponent, negatives unsupported");
17507
17523
  if (r === Vt)
17508
17524
  return e.ONE;
17509
- if (r === Xt)
17525
+ if (r === gt)
17510
17526
  return t;
17511
17527
  let n = e.ONE, o = t;
17512
17528
  for (; r > Vt; )
17513
- r & Xt && (n = e.mul(n, o)), o = e.sqr(o), r >>= Xt;
17529
+ r & gt && (n = e.mul(n, o)), o = e.sqr(o), r >>= gt;
17514
17530
  return n;
17515
17531
  }
17516
17532
  function J0(e, t, r = !1) {
@@ -17518,7 +17534,7 @@ function J0(e, t, r = !1) {
17518
17534
  return t.reduceRight((l, i, c) => e.is0(i) ? l : (n[c] = e.mul(l, n[c]), e.mul(l, i)), a), n;
17519
17535
  }
17520
17536
  function C2(e, t) {
17521
- const r = (e.ORDER - Xt) / Br, n = e.pow(t, r), o = e.eql(n, e.ONE), a = e.eql(n, e.ZERO), l = e.eql(n, e.neg(e.ONE));
17537
+ const r = (e.ORDER - gt) / Br, n = e.pow(t, r), o = e.eql(n, e.ONE), a = e.eql(n, e.ZERO), l = e.eql(n, e.neg(e.ONE));
17522
17538
  if (!o && !a && !l)
17523
17539
  throw new Error("invalid Legendre symbol result");
17524
17540
  return o ? 1 : a ? 0 : -1;
@@ -17542,7 +17558,7 @@ function si(e, t, r = !1, n = {}) {
17542
17558
  BYTES: a,
17543
17559
  MASK: Ko(o),
17544
17560
  ZERO: Vt,
17545
- ONE: Xt,
17561
+ ONE: gt,
17546
17562
  create: (c) => qt(c, e),
17547
17563
  isValid: (c) => {
17548
17564
  if (typeof c != "bigint")
@@ -17550,7 +17566,7 @@ function si(e, t, r = !1, n = {}) {
17550
17566
  return Vt <= c && c < e;
17551
17567
  },
17552
17568
  is0: (c) => c === Vt,
17553
- isOdd: (c) => (c & Xt) === Xt,
17569
+ isOdd: (c) => (c & gt) === gt,
17554
17570
  neg: (c) => qt(-c, e),
17555
17571
  eql: (c, u) => c === u,
17556
17572
  sqr: (c) => qt(c * c, e),
@@ -17594,7 +17610,7 @@ function Jv(e, t, r = !1) {
17594
17610
  const n = e.length, o = E0(t), a = M0(t);
17595
17611
  if (n < 16 || n < a || n > 1024)
17596
17612
  throw new Error("expected " + a + "-1024 bytes of input, got " + n);
17597
- const l = r ? H0(e) : Ar(e), i = qt(l, t - Xt) + Xt;
17613
+ const l = r ? H0(e) : Ar(e), i = qt(l, t - gt) + gt;
17598
17614
  return r ? Z0(i, o) : O1(i, o);
17599
17615
  }
17600
17616
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -17890,60 +17906,60 @@ const mr = {
17890
17906
  return t.encode(48, a);
17891
17907
  }
17892
17908
  };
17893
- function Xa(e, t) {
17909
+ function ga(e, t) {
17894
17910
  return d1(O1(e, t));
17895
17911
  }
17896
17912
  const yr = BigInt(0), dt = BigInt(1);
17897
17913
  BigInt(2);
17898
- const ga = BigInt(3), Av = BigInt(4);
17914
+ const Xa = BigInt(3), Av = BigInt(4);
17899
17915
  function _v(e) {
17900
- const t = Qv(e), { Fp: r } = t, n = si(t.n, t.nBitLength), o = t.toBytes || ((X, y, q) => {
17916
+ const t = Qv(e), { Fp: r } = t, n = si(t.n, t.nBitLength), o = t.toBytes || ((g, y, q) => {
17901
17917
  const F = y.toAffine();
17902
17918
  return mo(Uint8Array.from([4]), r.toBytes(F.x), r.toBytes(F.y));
17903
- }), a = t.fromBytes || ((X) => {
17904
- const y = X.subarray(1), q = r.fromBytes(y.subarray(0, r.BYTES)), F = r.fromBytes(y.subarray(r.BYTES, 2 * r.BYTES));
17919
+ }), a = t.fromBytes || ((g) => {
17920
+ const y = g.subarray(1), q = r.fromBytes(y.subarray(0, r.BYTES)), F = r.fromBytes(y.subarray(r.BYTES, 2 * r.BYTES));
17905
17921
  return { x: q, y: F };
17906
17922
  });
17907
- function l(X) {
17908
- const { a: y, b: q } = t, F = r.sqr(X), O = r.mul(F, X);
17909
- return r.add(r.add(O, r.mul(X, y)), q);
17923
+ function l(g) {
17924
+ const { a: y, b: q } = t, F = r.sqr(g), O = r.mul(F, g);
17925
+ return r.add(r.add(O, r.mul(g, y)), q);
17910
17926
  }
17911
- function i(X, y) {
17912
- const q = r.sqr(y), F = l(X);
17927
+ function i(g, y) {
17928
+ const q = r.sqr(y), F = l(g);
17913
17929
  return r.eql(q, F);
17914
17930
  }
17915
17931
  if (!i(t.Gx, t.Gy))
17916
17932
  throw new Error("bad curve params: generator point");
17917
- const c = r.mul(r.pow(t.a, ga), Av), u = r.mul(r.sqr(t.b), BigInt(27));
17933
+ const c = r.mul(r.pow(t.a, Xa), Av), u = r.mul(r.sqr(t.b), BigInt(27));
17918
17934
  if (r.is0(r.add(c, u)))
17919
17935
  throw new Error("bad curve params: a or b");
17920
- function f(X) {
17921
- return ai(X, dt, t.n);
17936
+ function f(g) {
17937
+ return ai(g, dt, t.n);
17922
17938
  }
17923
- function d(X) {
17939
+ function d(g) {
17924
17940
  const { allowedPrivateKeyLengths: y, nByteLength: q, wrapPrivateKey: F, n: O } = t;
17925
- if (y && typeof X != "bigint") {
17926
- if (V1(X) && (X = d1(X)), typeof X != "string" || !y.includes(X.length))
17941
+ if (y && typeof g != "bigint") {
17942
+ if (V1(g) && (g = d1(g)), typeof g != "string" || !y.includes(g.length))
17927
17943
  throw new Error("invalid private key");
17928
- X = X.padStart(q * 2, "0");
17944
+ g = g.padStart(q * 2, "0");
17929
17945
  }
17930
17946
  let R;
17931
17947
  try {
17932
- R = typeof X == "bigint" ? X : Ar(Zt("private key", X, q));
17948
+ R = typeof g == "bigint" ? g : Ar(Zt("private key", g, q));
17933
17949
  } catch {
17934
- throw new Error("invalid private key, expected hex or " + q + " bytes, got " + typeof X);
17950
+ throw new Error("invalid private key, expected hex or " + q + " bytes, got " + typeof g);
17935
17951
  }
17936
17952
  return F && (R = qt(R, O)), Wn("private key", R, dt, O), R;
17937
17953
  }
17938
- function v(X) {
17939
- if (!(X instanceof b))
17954
+ function v(g) {
17955
+ if (!(g instanceof b))
17940
17956
  throw new Error("ProjectivePoint expected");
17941
17957
  }
17942
- const m = U2((X, y) => {
17943
- const { px: q, py: F, pz: O } = X;
17958
+ const m = U2((g, y) => {
17959
+ const { px: q, py: F, pz: O } = g;
17944
17960
  if (r.eql(O, r.ONE))
17945
17961
  return { x: q, y: F };
17946
- const R = X.is0();
17962
+ const R = g.is0();
17947
17963
  y == null && (y = R ? r.ONE : r.inv(O));
17948
17964
  const j = r.mul(q, y), Y = r.mul(F, y), U = r.mul(O, y);
17949
17965
  if (R)
@@ -17951,18 +17967,18 @@ function _v(e) {
17951
17967
  if (!r.eql(U, r.ONE))
17952
17968
  throw new Error("invZ was invalid");
17953
17969
  return { x: j, y: Y };
17954
- }), x = U2((X) => {
17955
- if (X.is0()) {
17956
- if (t.allowInfinityPoint && !r.is0(X.py))
17970
+ }), x = U2((g) => {
17971
+ if (g.is0()) {
17972
+ if (t.allowInfinityPoint && !r.is0(g.py))
17957
17973
  return;
17958
17974
  throw new Error("bad point: ZERO");
17959
17975
  }
17960
- const { x: y, y: q } = X.toAffine();
17976
+ const { x: y, y: q } = g.toAffine();
17961
17977
  if (!r.isValid(y) || !r.isValid(q))
17962
17978
  throw new Error("bad point: x or y not FE");
17963
17979
  if (!i(y, q))
17964
17980
  throw new Error("bad point: equation left != right");
17965
- if (!X.isTorsionFree())
17981
+ if (!g.isTorsionFree())
17966
17982
  throw new Error("bad point: not in prime-order subgroup");
17967
17983
  return !0;
17968
17984
  });
@@ -18052,7 +18068,7 @@ function _v(e) {
18052
18068
  // https://eprint.iacr.org/2015/1060, algorithm 3
18053
18069
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
18054
18070
  double() {
18055
- const { a: y, b: q } = t, F = r.mul(q, ga), { px: O, py: R, pz: j } = this;
18071
+ const { a: y, b: q } = t, F = r.mul(q, Xa), { px: O, py: R, pz: j } = this;
18056
18072
  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);
18057
18073
  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);
18058
18074
  }
@@ -18064,7 +18080,7 @@ function _v(e) {
18064
18080
  v(y);
18065
18081
  const { px: q, py: F, pz: O } = this, { px: R, py: j, pz: Y } = y;
18066
18082
  let U = r.ZERO, K = r.ZERO, H = r.ZERO;
18067
- const E = t.a, P = r.mul(t.b, ga);
18083
+ const E = t.a, P = r.mul(t.b, Xa);
18068
18084
  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);
18069
18085
  J = r.mul(J, Q), Q = r.add(C, Z), J = r.sub(J, Q), Q = r.add(q, O);
18070
18086
  let D = r.add(R, Y);
@@ -18257,7 +18273,7 @@ function eb(e) {
18257
18273
  const D = J === 2 || J === 3 ? Z + t.n : Z;
18258
18274
  if (D >= r.ORDER)
18259
18275
  throw new Error("recovery id 2 or 3 invalid");
18260
- 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);
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);
18261
18277
  if (!ee)
18262
18278
  throw new Error("point at infinify");
18263
18279
  return ee.assertValidity(), ee;
@@ -18282,7 +18298,7 @@ function eb(e) {
18282
18298
  }
18283
18299
  toCompactHex() {
18284
18300
  const C = o;
18285
- return Xa(this.r, C) + Xa(this.s, C);
18301
+ return ga(this.r, C) + ga(this.s, C);
18286
18302
  }
18287
18303
  }
18288
18304
  const L = {
@@ -18314,7 +18330,7 @@ function eb(e) {
18314
18330
  return C._setWindowSize(P), C.multiply(BigInt(3)), C;
18315
18331
  }
18316
18332
  };
18317
- function X(P, C = !0) {
18333
+ function g(P, C = !0) {
18318
18334
  return f.fromPrivateKey(P).toRawBytes(C);
18319
18335
  }
18320
18336
  function y(P) {
@@ -18412,7 +18428,7 @@ function eb(e) {
18412
18428
  }
18413
18429
  return {
18414
18430
  CURVE: t,
18415
- getPublicKey: X,
18431
+ getPublicKey: g,
18416
18432
  getSharedSecret: q,
18417
18433
  sign: H,
18418
18434
  verify: E,
@@ -18425,7 +18441,7 @@ function eb(e) {
18425
18441
  function tb(e) {
18426
18442
  return {
18427
18443
  hash: e,
18428
- hmac: (t, ...r) => R0(e, t, gv(...r)),
18444
+ hmac: (t, ...r) => R0(e, t, Xv(...r)),
18429
18445
  randomBytes: Wv
18430
18446
  };
18431
18447
  }
@@ -18436,7 +18452,7 @@ function rb(e, t) {
18436
18452
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
18437
18453
  const A0 = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), P2 = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), nb = BigInt(0), ob = BigInt(1), ns = BigInt(2), H2 = (e, t) => (e + t / ns) / t;
18438
18454
  function ab(e) {
18439
- 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, X = Ht(L, r, t) * f % t, y = Ht(X, l, t) * x % t, q = Ht(y, n, t) * u % t, F = Ht(q, ns, t);
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);
18440
18456
  if (!os.eql(os.sqr(F), e))
18441
18457
  throw new Error("Cannot find square root");
18442
18458
  return F;
@@ -18622,10 +18638,10 @@ function fb() {
18622
18638
  return (x + b) * 3 / 4 - b;
18623
18639
  }
18624
18640
  function u(m) {
18625
- var x, b = l(m), N = b[0], W = b[1], L = new r(c(m, N, W)), X = 0, y = W > 0 ? N - 4 : N, q;
18641
+ var x, b = l(m), N = b[0], W = b[1], L = new r(c(m, N, W)), g = 0, y = W > 0 ? N - 4 : N, q;
18626
18642
  for (q = 0; q < y; q += 4)
18627
- x = t[m.charCodeAt(q)] << 18 | t[m.charCodeAt(q + 1)] << 12 | t[m.charCodeAt(q + 2)] << 6 | t[m.charCodeAt(q + 3)], L[X++] = x >> 16 & 255, L[X++] = x >> 8 & 255, L[X++] = x & 255;
18628
- return W === 2 && (x = t[m.charCodeAt(q)] << 2 | t[m.charCodeAt(q + 1)] >> 4, L[X++] = x & 255), W === 1 && (x = t[m.charCodeAt(q)] << 10 | t[m.charCodeAt(q + 1)] << 4 | t[m.charCodeAt(q + 2)] >> 2, L[X++] = x >> 8 & 255, L[X++] = x & 255), L;
18643
+ x = t[m.charCodeAt(q)] << 18 | t[m.charCodeAt(q + 1)] << 12 | t[m.charCodeAt(q + 2)] << 6 | t[m.charCodeAt(q + 3)], L[g++] = x >> 16 & 255, L[g++] = x >> 8 & 255, L[g++] = x & 255;
18644
+ return W === 2 && (x = t[m.charCodeAt(q)] << 2 | t[m.charCodeAt(q + 1)] >> 4, L[g++] = x & 255), W === 1 && (x = t[m.charCodeAt(q)] << 10 | t[m.charCodeAt(q + 1)] << 4 | t[m.charCodeAt(q + 2)] >> 2, L[g++] = x >> 8 & 255, L[g++] = x & 255), L;
18629
18645
  }
18630
18646
  function f(m) {
18631
18647
  return e[m >> 18 & 63] + e[m >> 12 & 63] + e[m >> 6 & 63] + e[m & 63];
@@ -18636,8 +18652,8 @@ function fb() {
18636
18652
  return W.join("");
18637
18653
  }
18638
18654
  function v(m) {
18639
- for (var x, b = m.length, N = b % 3, W = [], L = 16383, X = 0, y = b - N; X < y; X += L)
18640
- W.push(d(m, X, X + L > y ? y : X + L));
18655
+ for (var x, b = m.length, N = b % 3, W = [], L = 16383, g = 0, y = b - N; g < y; g += L)
18656
+ W.push(d(m, g, g + L > y ? y : g + L));
18641
18657
  return N === 1 ? (x = m[b - 1], W.push(
18642
18658
  e[x >> 2] + e[x << 4 & 63] + "=="
18643
18659
  )) : N === 2 && (x = (m[b - 2] << 8) + m[b - 1], W.push(
@@ -18690,10 +18706,10 @@ function hb() {
18690
18706
  );
18691
18707
  function a() {
18692
18708
  try {
18693
- const g = new Uint8Array(1), p = { foo: function() {
18709
+ const X = new Uint8Array(1), p = { foo: function() {
18694
18710
  return 42;
18695
18711
  } };
18696
- return Object.setPrototypeOf(p, Uint8Array.prototype), Object.setPrototypeOf(g, p), g.foo() === 42;
18712
+ return Object.setPrototypeOf(p, Uint8Array.prototype), Object.setPrototypeOf(X, p), X.foo() === 42;
18697
18713
  } catch {
18698
18714
  return !1;
18699
18715
  }
@@ -18711,118 +18727,118 @@ function hb() {
18711
18727
  return this.byteOffset;
18712
18728
  }
18713
18729
  });
18714
- function l(g) {
18715
- if (g > o)
18716
- throw new RangeError('The value "' + g + '" is invalid for option "size"');
18717
- const p = new Uint8Array(g);
18730
+ function l(X) {
18731
+ if (X > o)
18732
+ throw new RangeError('The value "' + X + '" is invalid for option "size"');
18733
+ const p = new Uint8Array(X);
18718
18734
  return Object.setPrototypeOf(p, i.prototype), p;
18719
18735
  }
18720
- function i(g, p, h) {
18721
- if (typeof g == "number") {
18736
+ function i(X, p, h) {
18737
+ if (typeof X == "number") {
18722
18738
  if (typeof p == "string")
18723
18739
  throw new TypeError(
18724
18740
  'The "string" argument must be of type string. Received type number'
18725
18741
  );
18726
- return d(g);
18742
+ return d(X);
18727
18743
  }
18728
- return c(g, p, h);
18744
+ return c(X, p, h);
18729
18745
  }
18730
18746
  i.poolSize = 8192;
18731
- function c(g, p, h) {
18732
- if (typeof g == "string")
18733
- return v(g, p);
18734
- if (ArrayBuffer.isView(g))
18735
- return x(g);
18736
- if (g == null)
18747
+ function c(X, p, h) {
18748
+ if (typeof X == "string")
18749
+ return v(X, p);
18750
+ if (ArrayBuffer.isView(X))
18751
+ return x(X);
18752
+ if (X == null)
18737
18753
  throw new TypeError(
18738
- "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof g
18754
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof X
18739
18755
  );
18740
- if (le(g, ArrayBuffer) || g && le(g.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (le(g, SharedArrayBuffer) || g && le(g.buffer, SharedArrayBuffer)))
18741
- return b(g, p, h);
18742
- if (typeof g == "number")
18756
+ if (le(X, ArrayBuffer) || X && le(X.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (le(X, SharedArrayBuffer) || X && le(X.buffer, SharedArrayBuffer)))
18757
+ return b(X, p, h);
18758
+ if (typeof X == "number")
18743
18759
  throw new TypeError(
18744
18760
  'The "value" argument must not be of type number. Received type number'
18745
18761
  );
18746
- const V = g.valueOf && g.valueOf();
18747
- if (V != null && V !== g)
18762
+ const V = X.valueOf && X.valueOf();
18763
+ if (V != null && V !== X)
18748
18764
  return i.from(V, p, h);
18749
- const z = N(g);
18765
+ const z = N(X);
18750
18766
  if (z) return z;
18751
- if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof g[Symbol.toPrimitive] == "function")
18752
- return i.from(g[Symbol.toPrimitive]("string"), p, h);
18767
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof X[Symbol.toPrimitive] == "function")
18768
+ return i.from(X[Symbol.toPrimitive]("string"), p, h);
18753
18769
  throw new TypeError(
18754
- "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof g
18770
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof X
18755
18771
  );
18756
18772
  }
18757
- i.from = function(g, p, h) {
18758
- return c(g, p, h);
18773
+ i.from = function(X, p, h) {
18774
+ return c(X, p, h);
18759
18775
  }, Object.setPrototypeOf(i.prototype, Uint8Array.prototype), Object.setPrototypeOf(i, Uint8Array);
18760
- function u(g) {
18761
- if (typeof g != "number")
18776
+ function u(X) {
18777
+ if (typeof X != "number")
18762
18778
  throw new TypeError('"size" argument must be of type number');
18763
- if (g < 0)
18764
- throw new RangeError('The value "' + g + '" is invalid for option "size"');
18779
+ if (X < 0)
18780
+ throw new RangeError('The value "' + X + '" is invalid for option "size"');
18765
18781
  }
18766
- function f(g, p, h) {
18767
- return u(g), g <= 0 ? l(g) : p !== void 0 ? typeof h == "string" ? l(g).fill(p, h) : l(g).fill(p) : l(g);
18782
+ function f(X, p, h) {
18783
+ return u(X), X <= 0 ? l(X) : p !== void 0 ? typeof h == "string" ? l(X).fill(p, h) : l(X).fill(p) : l(X);
18768
18784
  }
18769
- i.alloc = function(g, p, h) {
18770
- return f(g, p, h);
18785
+ i.alloc = function(X, p, h) {
18786
+ return f(X, p, h);
18771
18787
  };
18772
- function d(g) {
18773
- return u(g), l(g < 0 ? 0 : W(g) | 0);
18788
+ function d(X) {
18789
+ return u(X), l(X < 0 ? 0 : W(X) | 0);
18774
18790
  }
18775
- i.allocUnsafe = function(g) {
18776
- return d(g);
18777
- }, i.allocUnsafeSlow = function(g) {
18778
- return d(g);
18791
+ i.allocUnsafe = function(X) {
18792
+ return d(X);
18793
+ }, i.allocUnsafeSlow = function(X) {
18794
+ return d(X);
18779
18795
  };
18780
- function v(g, p) {
18796
+ function v(X, p) {
18781
18797
  if ((typeof p != "string" || p === "") && (p = "utf8"), !i.isEncoding(p))
18782
18798
  throw new TypeError("Unknown encoding: " + p);
18783
- const h = X(g, p) | 0;
18799
+ const h = g(X, p) | 0;
18784
18800
  let V = l(h);
18785
- const z = V.write(g, p);
18801
+ const z = V.write(X, p);
18786
18802
  return z !== h && (V = V.slice(0, z)), V;
18787
18803
  }
18788
- function m(g) {
18789
- const p = g.length < 0 ? 0 : W(g.length) | 0, h = l(p);
18804
+ function m(X) {
18805
+ const p = X.length < 0 ? 0 : W(X.length) | 0, h = l(p);
18790
18806
  for (let V = 0; V < p; V += 1)
18791
- h[V] = g[V] & 255;
18807
+ h[V] = X[V] & 255;
18792
18808
  return h;
18793
18809
  }
18794
- function x(g) {
18795
- if (le(g, Uint8Array)) {
18796
- const p = new Uint8Array(g);
18810
+ function x(X) {
18811
+ if (le(X, Uint8Array)) {
18812
+ const p = new Uint8Array(X);
18797
18813
  return b(p.buffer, p.byteOffset, p.byteLength);
18798
18814
  }
18799
- return m(g);
18815
+ return m(X);
18800
18816
  }
18801
- function b(g, p, h) {
18802
- if (p < 0 || g.byteLength < p)
18817
+ function b(X, p, h) {
18818
+ if (p < 0 || X.byteLength < p)
18803
18819
  throw new RangeError('"offset" is outside of buffer bounds');
18804
- if (g.byteLength < p + (h || 0))
18820
+ if (X.byteLength < p + (h || 0))
18805
18821
  throw new RangeError('"length" is outside of buffer bounds');
18806
18822
  let V;
18807
- return p === void 0 && h === void 0 ? V = new Uint8Array(g) : h === void 0 ? V = new Uint8Array(g, p) : V = new Uint8Array(g, p, h), Object.setPrototypeOf(V, i.prototype), V;
18823
+ return p === void 0 && h === void 0 ? V = new Uint8Array(X) : h === void 0 ? V = new Uint8Array(X, p) : V = new Uint8Array(X, p, h), Object.setPrototypeOf(V, i.prototype), V;
18808
18824
  }
18809
- function N(g) {
18810
- if (i.isBuffer(g)) {
18811
- const p = W(g.length) | 0, h = l(p);
18812
- return h.length === 0 || g.copy(h, 0, 0, p), h;
18825
+ function N(X) {
18826
+ if (i.isBuffer(X)) {
18827
+ const p = W(X.length) | 0, h = l(p);
18828
+ return h.length === 0 || X.copy(h, 0, 0, p), h;
18813
18829
  }
18814
- if (g.length !== void 0)
18815
- return typeof g.length != "number" || Te(g.length) ? l(0) : m(g);
18816
- if (g.type === "Buffer" && Array.isArray(g.data))
18817
- return m(g.data);
18830
+ if (X.length !== void 0)
18831
+ return typeof X.length != "number" || Te(X.length) ? l(0) : m(X);
18832
+ if (X.type === "Buffer" && Array.isArray(X.data))
18833
+ return m(X.data);
18818
18834
  }
18819
- function W(g) {
18820
- if (g >= o)
18835
+ function W(X) {
18836
+ if (X >= o)
18821
18837
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o.toString(16) + " bytes");
18822
- return g | 0;
18838
+ return X | 0;
18823
18839
  }
18824
- function L(g) {
18825
- return +g != g && (g = 0), i.alloc(+g);
18840
+ function L(X) {
18841
+ return +X != X && (X = 0), i.alloc(+X);
18826
18842
  }
18827
18843
  i.isBuffer = function(p) {
18828
18844
  return p != null && p._isBuffer === !0 && p !== i.prototype;
@@ -18883,16 +18899,16 @@ function hb() {
18883
18899
  }
18884
18900
  return z;
18885
18901
  };
18886
- function X(g, p) {
18887
- if (i.isBuffer(g))
18888
- return g.length;
18889
- if (ArrayBuffer.isView(g) || le(g, ArrayBuffer))
18890
- return g.byteLength;
18891
- if (typeof g != "string")
18902
+ function g(X, p) {
18903
+ if (i.isBuffer(X))
18904
+ return X.length;
18905
+ if (ArrayBuffer.isView(X) || le(X, ArrayBuffer))
18906
+ return X.byteLength;
18907
+ if (typeof X != "string")
18892
18908
  throw new TypeError(
18893
- 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof g
18909
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof X
18894
18910
  );
18895
- const h = g.length, V = arguments.length > 2 && arguments[2] === !0;
18911
+ const h = X.length, V = arguments.length > 2 && arguments[2] === !0;
18896
18912
  if (!V && h === 0) return 0;
18897
18913
  let z = !1;
18898
18914
  for (; ; )
@@ -18903,7 +18919,7 @@ function hb() {
18903
18919
  return h;
18904
18920
  case "utf8":
18905
18921
  case "utf-8":
18906
- return Ye(g).length;
18922
+ return Ye(X).length;
18907
18923
  case "ucs2":
18908
18924
  case "ucs-2":
18909
18925
  case "utf16le":
@@ -18912,20 +18928,20 @@ function hb() {
18912
18928
  case "hex":
18913
18929
  return h >>> 1;
18914
18930
  case "base64":
18915
- return ht(g).length;
18931
+ return ht(X).length;
18916
18932
  default:
18917
18933
  if (z)
18918
- return V ? -1 : Ye(g).length;
18934
+ return V ? -1 : Ye(X).length;
18919
18935
  p = ("" + p).toLowerCase(), z = !0;
18920
18936
  }
18921
18937
  }
18922
- i.byteLength = X;
18923
- function y(g, p, h) {
18938
+ i.byteLength = g;
18939
+ function y(X, p, h) {
18924
18940
  let V = !1;
18925
18941
  if ((p === void 0 || p < 0) && (p = 0), p > this.length || ((h === void 0 || h > this.length) && (h = this.length), h <= 0) || (h >>>= 0, p >>>= 0, h <= p))
18926
18942
  return "";
18927
- for (g || (g = "utf8"); ; )
18928
- switch (g) {
18943
+ for (X || (X = "utf8"); ; )
18944
+ switch (X) {
18929
18945
  case "hex":
18930
18946
  return J(this, p, h);
18931
18947
  case "utf8":
@@ -18944,14 +18960,14 @@ function hb() {
18944
18960
  case "utf-16le":
18945
18961
  return Q(this, p, h);
18946
18962
  default:
18947
- if (V) throw new TypeError("Unknown encoding: " + g);
18948
- g = (g + "").toLowerCase(), V = !0;
18963
+ if (V) throw new TypeError("Unknown encoding: " + X);
18964
+ X = (X + "").toLowerCase(), V = !0;
18949
18965
  }
18950
18966
  }
18951
18967
  i.prototype._isBuffer = !0;
18952
- function q(g, p, h) {
18953
- const V = g[p];
18954
- g[p] = g[h], g[h] = V;
18968
+ function q(X, p, h) {
18969
+ const V = X[p];
18970
+ X[p] = X[h], X[h] = V;
18955
18971
  }
18956
18972
  i.prototype.swap16 = function() {
18957
18973
  const p = this.length;
@@ -19000,50 +19016,50 @@ function hb() {
19000
19016
  if (h >>>= 0, V >>>= 0, z >>>= 0, k >>>= 0, this === p) return 0;
19001
19017
  let M = k - z, be = V - h;
19002
19018
  const ze = Math.min(M, be), je = this.slice(z, k), He = p.slice(h, V);
19003
- for (let ge = 0; ge < ze; ++ge)
19004
- if (je[ge] !== He[ge]) {
19005
- M = je[ge], be = He[ge];
19019
+ for (let Xe = 0; Xe < ze; ++Xe)
19020
+ if (je[Xe] !== He[Xe]) {
19021
+ M = je[Xe], be = He[Xe];
19006
19022
  break;
19007
19023
  }
19008
19024
  return M < be ? -1 : be < M ? 1 : 0;
19009
19025
  };
19010
- function F(g, p, h, V, z) {
19011
- if (g.length === 0) return -1;
19012
- if (typeof h == "string" ? (V = h, h = 0) : h > 2147483647 ? h = 2147483647 : h < -2147483648 && (h = -2147483648), h = +h, Te(h) && (h = z ? 0 : g.length - 1), h < 0 && (h = g.length + h), h >= g.length) {
19026
+ function F(X, p, h, V, z) {
19027
+ if (X.length === 0) return -1;
19028
+ if (typeof h == "string" ? (V = h, h = 0) : h > 2147483647 ? h = 2147483647 : h < -2147483648 && (h = -2147483648), h = +h, Te(h) && (h = z ? 0 : X.length - 1), h < 0 && (h = X.length + h), h >= X.length) {
19013
19029
  if (z) return -1;
19014
- h = g.length - 1;
19030
+ h = X.length - 1;
19015
19031
  } else if (h < 0)
19016
19032
  if (z) h = 0;
19017
19033
  else return -1;
19018
19034
  if (typeof p == "string" && (p = i.from(p, V)), i.isBuffer(p))
19019
- return p.length === 0 ? -1 : O(g, p, h, V, z);
19035
+ return p.length === 0 ? -1 : O(X, p, h, V, z);
19020
19036
  if (typeof p == "number")
19021
- return p = p & 255, typeof Uint8Array.prototype.indexOf == "function" ? z ? Uint8Array.prototype.indexOf.call(g, p, h) : Uint8Array.prototype.lastIndexOf.call(g, p, h) : O(g, [p], h, V, z);
19037
+ return p = p & 255, typeof Uint8Array.prototype.indexOf == "function" ? z ? Uint8Array.prototype.indexOf.call(X, p, h) : Uint8Array.prototype.lastIndexOf.call(X, p, h) : O(X, [p], h, V, z);
19022
19038
  throw new TypeError("val must be string, number or Buffer");
19023
19039
  }
19024
- function O(g, p, h, V, z) {
19025
- let k = 1, M = g.length, be = p.length;
19040
+ function O(X, p, h, V, z) {
19041
+ let k = 1, M = X.length, be = p.length;
19026
19042
  if (V !== void 0 && (V = String(V).toLowerCase(), V === "ucs2" || V === "ucs-2" || V === "utf16le" || V === "utf-16le")) {
19027
- if (g.length < 2 || p.length < 2)
19043
+ if (X.length < 2 || p.length < 2)
19028
19044
  return -1;
19029
19045
  k = 2, M /= 2, be /= 2, h /= 2;
19030
19046
  }
19031
- function ze(He, ge) {
19032
- return k === 1 ? He[ge] : He.readUInt16BE(ge * k);
19047
+ function ze(He, Xe) {
19048
+ return k === 1 ? He[Xe] : He.readUInt16BE(Xe * k);
19033
19049
  }
19034
19050
  let je;
19035
19051
  if (z) {
19036
19052
  let He = -1;
19037
19053
  for (je = h; je < M; je++)
19038
- if (ze(g, je) === ze(p, He === -1 ? 0 : je - He)) {
19054
+ if (ze(X, je) === ze(p, He === -1 ? 0 : je - He)) {
19039
19055
  if (He === -1 && (He = je), je - He + 1 === be) return He * k;
19040
19056
  } else
19041
19057
  He !== -1 && (je -= je - He), He = -1;
19042
19058
  } else
19043
19059
  for (h + be > M && (h = M - be), je = h; je >= 0; je--) {
19044
19060
  let He = !0;
19045
- for (let ge = 0; ge < be; ge++)
19046
- if (ze(g, je + ge) !== ze(p, ge)) {
19061
+ for (let Xe = 0; Xe < be; Xe++)
19062
+ if (ze(X, je + Xe) !== ze(p, Xe)) {
19047
19063
  He = !1;
19048
19064
  break;
19049
19065
  }
@@ -19058,9 +19074,9 @@ function hb() {
19058
19074
  }, i.prototype.lastIndexOf = function(p, h, V) {
19059
19075
  return F(this, p, h, V, !1);
19060
19076
  };
19061
- function R(g, p, h, V) {
19077
+ function R(X, p, h, V) {
19062
19078
  h = Number(h) || 0;
19063
- const z = g.length - h;
19079
+ const z = X.length - h;
19064
19080
  V ? (V = Number(V), V > z && (V = z)) : V = z;
19065
19081
  const k = p.length;
19066
19082
  V > k / 2 && (V = k / 2);
@@ -19068,21 +19084,21 @@ function hb() {
19068
19084
  for (M = 0; M < V; ++M) {
19069
19085
  const be = parseInt(p.substr(M * 2, 2), 16);
19070
19086
  if (Te(be)) return M;
19071
- g[h + M] = be;
19087
+ X[h + M] = be;
19072
19088
  }
19073
19089
  return M;
19074
19090
  }
19075
- function j(g, p, h, V) {
19076
- return re(Ye(p, g.length - h), g, h, V);
19091
+ function j(X, p, h, V) {
19092
+ return re(Ye(p, X.length - h), X, h, V);
19077
19093
  }
19078
- function Y(g, p, h, V) {
19079
- return re(pt(p), g, h, V);
19094
+ function Y(X, p, h, V) {
19095
+ return re(pt(p), X, h, V);
19080
19096
  }
19081
- function U(g, p, h, V) {
19082
- return re(ht(p), g, h, V);
19097
+ function U(X, p, h, V) {
19098
+ return re(ht(p), X, h, V);
19083
19099
  }
19084
- function K(g, p, h, V) {
19085
- return re(Fe(p, g.length - h), g, h, V);
19100
+ function K(X, p, h, V) {
19101
+ return re(Fe(p, X.length - h), X, h, V);
19086
19102
  }
19087
19103
  i.prototype.write = function(p, h, V, z) {
19088
19104
  if (h === void 0)
@@ -19128,30 +19144,30 @@ function hb() {
19128
19144
  data: Array.prototype.slice.call(this._arr || this, 0)
19129
19145
  };
19130
19146
  };
19131
- function H(g, p, h) {
19132
- return p === 0 && h === g.length ? t.fromByteArray(g) : t.fromByteArray(g.slice(p, h));
19147
+ function H(X, p, h) {
19148
+ return p === 0 && h === X.length ? t.fromByteArray(X) : t.fromByteArray(X.slice(p, h));
19133
19149
  }
19134
- function E(g, p, h) {
19135
- h = Math.min(g.length, h);
19150
+ function E(X, p, h) {
19151
+ h = Math.min(X.length, h);
19136
19152
  const V = [];
19137
19153
  let z = p;
19138
19154
  for (; z < h; ) {
19139
- const k = g[z];
19155
+ const k = X[z];
19140
19156
  let M = null, be = k > 239 ? 4 : k > 223 ? 3 : k > 191 ? 2 : 1;
19141
19157
  if (z + be <= h) {
19142
- let ze, je, He, ge;
19158
+ let ze, je, He, Xe;
19143
19159
  switch (be) {
19144
19160
  case 1:
19145
19161
  k < 128 && (M = k);
19146
19162
  break;
19147
19163
  case 2:
19148
- ze = g[z + 1], (ze & 192) === 128 && (ge = (k & 31) << 6 | ze & 63, ge > 127 && (M = ge));
19164
+ ze = X[z + 1], (ze & 192) === 128 && (Xe = (k & 31) << 6 | ze & 63, Xe > 127 && (M = Xe));
19149
19165
  break;
19150
19166
  case 3:
19151
- ze = g[z + 1], je = g[z + 2], (ze & 192) === 128 && (je & 192) === 128 && (ge = (k & 15) << 12 | (ze & 63) << 6 | je & 63, ge > 2047 && (ge < 55296 || ge > 57343) && (M = ge));
19167
+ ze = X[z + 1], je = X[z + 2], (ze & 192) === 128 && (je & 192) === 128 && (Xe = (k & 15) << 12 | (ze & 63) << 6 | je & 63, Xe > 2047 && (Xe < 55296 || Xe > 57343) && (M = Xe));
19152
19168
  break;
19153
19169
  case 4:
19154
- ze = g[z + 1], je = g[z + 2], He = g[z + 3], (ze & 192) === 128 && (je & 192) === 128 && (He & 192) === 128 && (ge = (k & 15) << 18 | (ze & 63) << 12 | (je & 63) << 6 | He & 63, ge > 65535 && ge < 1114112 && (M = ge));
19170
+ ze = X[z + 1], je = X[z + 2], He = X[z + 3], (ze & 192) === 128 && (je & 192) === 128 && (He & 192) === 128 && (Xe = (k & 15) << 18 | (ze & 63) << 12 | (je & 63) << 6 | He & 63, Xe > 65535 && Xe < 1114112 && (M = Xe));
19155
19171
  }
19156
19172
  }
19157
19173
  M === null ? (M = 65533, be = 1) : M > 65535 && (M -= 65536, V.push(M >>> 10 & 1023 | 55296), M = 56320 | M & 1023), V.push(M), z += be;
@@ -19159,42 +19175,42 @@ function hb() {
19159
19175
  return C(V);
19160
19176
  }
19161
19177
  const P = 4096;
19162
- function C(g) {
19163
- const p = g.length;
19178
+ function C(X) {
19179
+ const p = X.length;
19164
19180
  if (p <= P)
19165
- return String.fromCharCode.apply(String, g);
19181
+ return String.fromCharCode.apply(String, X);
19166
19182
  let h = "", V = 0;
19167
19183
  for (; V < p; )
19168
19184
  h += String.fromCharCode.apply(
19169
19185
  String,
19170
- g.slice(V, V += P)
19186
+ X.slice(V, V += P)
19171
19187
  );
19172
19188
  return h;
19173
19189
  }
19174
- function Z(g, p, h) {
19190
+ function Z(X, p, h) {
19175
19191
  let V = "";
19176
- h = Math.min(g.length, h);
19192
+ h = Math.min(X.length, h);
19177
19193
  for (let z = p; z < h; ++z)
19178
- V += String.fromCharCode(g[z] & 127);
19194
+ V += String.fromCharCode(X[z] & 127);
19179
19195
  return V;
19180
19196
  }
19181
- function G(g, p, h) {
19197
+ function G(X, p, h) {
19182
19198
  let V = "";
19183
- h = Math.min(g.length, h);
19199
+ h = Math.min(X.length, h);
19184
19200
  for (let z = p; z < h; ++z)
19185
- V += String.fromCharCode(g[z]);
19201
+ V += String.fromCharCode(X[z]);
19186
19202
  return V;
19187
19203
  }
19188
- function J(g, p, h) {
19189
- const V = g.length;
19204
+ function J(X, p, h) {
19205
+ const V = X.length;
19190
19206
  (!p || p < 0) && (p = 0), (!h || h < 0 || h > V) && (h = V);
19191
19207
  let z = "";
19192
19208
  for (let k = p; k < h; ++k)
19193
- z += Ae[g[k]];
19209
+ z += Ae[X[k]];
19194
19210
  return z;
19195
19211
  }
19196
- function Q(g, p, h) {
19197
- const V = g.slice(p, h);
19212
+ function Q(X, p, h) {
19213
+ const V = X.slice(p, h);
19198
19214
  let z = "";
19199
19215
  for (let k = 0; k < V.length - 1; k += 2)
19200
19216
  z += String.fromCharCode(V[k] + V[k + 1] * 256);
@@ -19206,9 +19222,9 @@ function hb() {
19206
19222
  const z = this.subarray(p, h);
19207
19223
  return Object.setPrototypeOf(z, i.prototype), z;
19208
19224
  };
19209
- function D(g, p, h) {
19210
- if (g % 1 !== 0 || g < 0) throw new RangeError("offset is not uint");
19211
- if (g + p > h) throw new RangeError("Trying to access beyond buffer length");
19225
+ function D(X, p, h) {
19226
+ if (X % 1 !== 0 || X < 0) throw new RangeError("offset is not uint");
19227
+ if (X + p > h) throw new RangeError("Trying to access beyond buffer length");
19212
19228
  }
19213
19229
  i.prototype.readUintLE = i.prototype.readUIntLE = function(p, h, V) {
19214
19230
  p = p >>> 0, h = h >>> 0, V || D(p, h, this.length);
@@ -19292,10 +19308,10 @@ function hb() {
19292
19308
  }, i.prototype.readDoubleBE = function(p, h) {
19293
19309
  return p = p >>> 0, h || D(p, 8, this.length), r.read(this, p, !1, 52, 8);
19294
19310
  };
19295
- function A(g, p, h, V, z, k) {
19296
- if (!i.isBuffer(g)) throw new TypeError('"buffer" argument must be a Buffer instance');
19311
+ function A(X, p, h, V, z, k) {
19312
+ if (!i.isBuffer(X)) throw new TypeError('"buffer" argument must be a Buffer instance');
19297
19313
  if (p > z || p < k) throw new RangeError('"value" argument is out of bounds');
19298
- if (h + V > g.length) throw new RangeError("Index out of range");
19314
+ if (h + V > X.length) throw new RangeError("Index out of range");
19299
19315
  }
19300
19316
  i.prototype.writeUintLE = i.prototype.writeUIntLE = function(p, h, V, z) {
19301
19317
  if (p = +p, h = h >>> 0, V = V >>> 0, !z) {
@@ -19326,19 +19342,19 @@ function hb() {
19326
19342
  }, i.prototype.writeUint32BE = i.prototype.writeUInt32BE = function(p, h, V) {
19327
19343
  return p = +p, h = h >>> 0, V || A(this, p, h, 4, 4294967295, 0), this[h] = p >>> 24, this[h + 1] = p >>> 16, this[h + 2] = p >>> 8, this[h + 3] = p & 255, h + 4;
19328
19344
  };
19329
- function _(g, p, h, V, z) {
19330
- ue(p, V, z, g, h, 7);
19345
+ function _(X, p, h, V, z) {
19346
+ ue(p, V, z, X, h, 7);
19331
19347
  let k = Number(p & BigInt(4294967295));
19332
- g[h++] = k, k = k >> 8, g[h++] = k, k = k >> 8, g[h++] = k, k = k >> 8, g[h++] = k;
19348
+ X[h++] = k, k = k >> 8, X[h++] = k, k = k >> 8, X[h++] = k, k = k >> 8, X[h++] = k;
19333
19349
  let M = Number(p >> BigInt(32) & BigInt(4294967295));
19334
- return g[h++] = M, M = M >> 8, g[h++] = M, M = M >> 8, g[h++] = M, M = M >> 8, g[h++] = M, h;
19350
+ return X[h++] = M, M = M >> 8, X[h++] = M, M = M >> 8, X[h++] = M, M = M >> 8, X[h++] = M, h;
19335
19351
  }
19336
- function $(g, p, h, V, z) {
19337
- ue(p, V, z, g, h, 7);
19352
+ function $(X, p, h, V, z) {
19353
+ ue(p, V, z, X, h, 7);
19338
19354
  let k = Number(p & BigInt(4294967295));
19339
- g[h + 7] = k, k = k >> 8, g[h + 6] = k, k = k >> 8, g[h + 5] = k, k = k >> 8, g[h + 4] = k;
19355
+ X[h + 7] = k, k = k >> 8, X[h + 6] = k, k = k >> 8, X[h + 5] = k, k = k >> 8, X[h + 4] = k;
19340
19356
  let M = Number(p >> BigInt(32) & BigInt(4294967295));
19341
- return g[h + 3] = M, M = M >> 8, g[h + 2] = M, M = M >> 8, g[h + 1] = M, M = M >> 8, g[h] = M, h + 8;
19357
+ return X[h + 3] = M, M = M >> 8, X[h + 2] = M, M = M >> 8, X[h + 1] = M, M = M >> 8, X[h] = M, h + 8;
19342
19358
  }
19343
19359
  i.prototype.writeBigUInt64LE = tt(function(p, h = 0) {
19344
19360
  return _(this, p, h, BigInt(0), BigInt("0xffffffffffffffff"));
@@ -19377,20 +19393,20 @@ function hb() {
19377
19393
  }), i.prototype.writeBigInt64BE = tt(function(p, h = 0) {
19378
19394
  return $(this, p, h, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
19379
19395
  });
19380
- function I(g, p, h, V, z, k) {
19381
- if (h + V > g.length) throw new RangeError("Index out of range");
19396
+ function I(X, p, h, V, z, k) {
19397
+ if (h + V > X.length) throw new RangeError("Index out of range");
19382
19398
  if (h < 0) throw new RangeError("Index out of range");
19383
19399
  }
19384
- function ne(g, p, h, V, z) {
19385
- return p = +p, h = h >>> 0, z || I(g, p, h, 4), r.write(g, p, h, V, 23, 4), h + 4;
19400
+ function ne(X, p, h, V, z) {
19401
+ return p = +p, h = h >>> 0, z || I(X, p, h, 4), r.write(X, p, h, V, 23, 4), h + 4;
19386
19402
  }
19387
19403
  i.prototype.writeFloatLE = function(p, h, V) {
19388
19404
  return ne(this, p, h, !0, V);
19389
19405
  }, i.prototype.writeFloatBE = function(p, h, V) {
19390
19406
  return ne(this, p, h, !1, V);
19391
19407
  };
19392
- function ee(g, p, h, V, z) {
19393
- return p = +p, h = h >>> 0, z || I(g, p, h, 8), r.write(g, p, h, V, 52, 8), h + 8;
19408
+ function ee(X, p, h, V, z) {
19409
+ return p = +p, h = h >>> 0, z || I(X, p, h, 8), r.write(X, p, h, V, 52, 8), h + 8;
19394
19410
  }
19395
19411
  i.prototype.writeDoubleLE = function(p, h, V) {
19396
19412
  return ee(this, p, h, !0, V);
@@ -19440,17 +19456,17 @@ function hb() {
19440
19456
  return this;
19441
19457
  };
19442
19458
  const ae = {};
19443
- function he(g, p, h) {
19444
- ae[g] = class extends h {
19459
+ function he(X, p, h) {
19460
+ ae[X] = class extends h {
19445
19461
  constructor() {
19446
19462
  super(), Object.defineProperty(this, "message", {
19447
19463
  value: p.apply(this, arguments),
19448
19464
  writable: !0,
19449
19465
  configurable: !0
19450
- }), this.name = `${this.name} [${g}]`, this.stack, delete this.name;
19466
+ }), this.name = `${this.name} [${X}]`, this.stack, delete this.name;
19451
19467
  }
19452
19468
  get code() {
19453
- return g;
19469
+ return X;
19454
19470
  }
19455
19471
  set code(z) {
19456
19472
  Object.defineProperty(this, "code", {
@@ -19461,74 +19477,74 @@ function hb() {
19461
19477
  });
19462
19478
  }
19463
19479
  toString() {
19464
- return `${this.name} [${g}]: ${this.message}`;
19480
+ return `${this.name} [${X}]: ${this.message}`;
19465
19481
  }
19466
19482
  };
19467
19483
  }
19468
19484
  he(
19469
19485
  "ERR_BUFFER_OUT_OF_BOUNDS",
19470
- function(g) {
19471
- return g ? `${g} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
19486
+ function(X) {
19487
+ return X ? `${X} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
19472
19488
  },
19473
19489
  RangeError
19474
19490
  ), he(
19475
19491
  "ERR_INVALID_ARG_TYPE",
19476
- function(g, p) {
19477
- return `The "${g}" argument must be of type number. Received type ${typeof p}`;
19492
+ function(X, p) {
19493
+ return `The "${X}" argument must be of type number. Received type ${typeof p}`;
19478
19494
  },
19479
19495
  TypeError
19480
19496
  ), he(
19481
19497
  "ERR_OUT_OF_RANGE",
19482
- function(g, p, h) {
19483
- let V = `The value of "${g}" is out of range.`, z = h;
19498
+ function(X, p, h) {
19499
+ let V = `The value of "${X}" is out of range.`, z = h;
19484
19500
  return Number.isInteger(h) && Math.abs(h) > 2 ** 32 ? z = se(String(h)) : typeof h == "bigint" && (z = String(h), (h > BigInt(2) ** BigInt(32) || h < -(BigInt(2) ** BigInt(32))) && (z = se(z)), z += "n"), V += ` It must be ${p}. Received ${z}`, V;
19485
19501
  },
19486
19502
  RangeError
19487
19503
  );
19488
- function se(g) {
19489
- let p = "", h = g.length;
19490
- const V = g[0] === "-" ? 1 : 0;
19504
+ function se(X) {
19505
+ let p = "", h = X.length;
19506
+ const V = X[0] === "-" ? 1 : 0;
19491
19507
  for (; h >= V + 4; h -= 3)
19492
- p = `_${g.slice(h - 3, h)}${p}`;
19493
- return `${g.slice(0, h)}${p}`;
19508
+ p = `_${X.slice(h - 3, h)}${p}`;
19509
+ return `${X.slice(0, h)}${p}`;
19494
19510
  }
19495
- function ie(g, p, h) {
19496
- me(p, "offset"), (g[p] === void 0 || g[p + h] === void 0) && te(p, g.length - (h + 1));
19511
+ function ie(X, p, h) {
19512
+ me(p, "offset"), (X[p] === void 0 || X[p + h] === void 0) && te(p, X.length - (h + 1));
19497
19513
  }
19498
- function ue(g, p, h, V, z, k) {
19499
- if (g > h || g < p) {
19514
+ function ue(X, p, h, V, z, k) {
19515
+ if (X > h || X < p) {
19500
19516
  const M = typeof p == "bigint" ? "n" : "";
19501
19517
  let be;
19502
- throw p === 0 || p === BigInt(0) ? be = `>= 0${M} and < 2${M} ** ${(k + 1) * 8}${M}` : be = `>= -(2${M} ** ${(k + 1) * 8 - 1}${M}) and < 2 ** ${(k + 1) * 8 - 1}${M}`, new ae.ERR_OUT_OF_RANGE("value", be, g);
19518
+ throw p === 0 || p === BigInt(0) ? be = `>= 0${M} and < 2${M} ** ${(k + 1) * 8}${M}` : be = `>= -(2${M} ** ${(k + 1) * 8 - 1}${M}) and < 2 ** ${(k + 1) * 8 - 1}${M}`, new ae.ERR_OUT_OF_RANGE("value", be, X);
19503
19519
  }
19504
19520
  ie(V, z, k);
19505
19521
  }
19506
- function me(g, p) {
19507
- if (typeof g != "number")
19508
- throw new ae.ERR_INVALID_ARG_TYPE(p, "number", g);
19522
+ function me(X, p) {
19523
+ if (typeof X != "number")
19524
+ throw new ae.ERR_INVALID_ARG_TYPE(p, "number", X);
19509
19525
  }
19510
- function te(g, p, h) {
19511
- throw Math.floor(g) !== g ? (me(g, h), new ae.ERR_OUT_OF_RANGE("offset", "an integer", g)) : p < 0 ? new ae.ERR_BUFFER_OUT_OF_BOUNDS() : new ae.ERR_OUT_OF_RANGE(
19526
+ function te(X, p, h) {
19527
+ throw Math.floor(X) !== X ? (me(X, h), new ae.ERR_OUT_OF_RANGE("offset", "an integer", X)) : p < 0 ? new ae.ERR_BUFFER_OUT_OF_BOUNDS() : new ae.ERR_OUT_OF_RANGE(
19512
19528
  "offset",
19513
19529
  `>= 0 and <= ${p}`,
19514
- g
19530
+ X
19515
19531
  );
19516
19532
  }
19517
19533
  const Pe = /[^+/0-9A-Za-z-_]/g;
19518
- function Ce(g) {
19519
- if (g = g.split("=")[0], g = g.trim().replace(Pe, ""), g.length < 2) return "";
19520
- for (; g.length % 4 !== 0; )
19521
- g = g + "=";
19522
- return g;
19534
+ function Ce(X) {
19535
+ if (X = X.split("=")[0], X = X.trim().replace(Pe, ""), X.length < 2) return "";
19536
+ for (; X.length % 4 !== 0; )
19537
+ X = X + "=";
19538
+ return X;
19523
19539
  }
19524
- function Ye(g, p) {
19540
+ function Ye(X, p) {
19525
19541
  p = p || 1 / 0;
19526
19542
  let h;
19527
- const V = g.length;
19543
+ const V = X.length;
19528
19544
  let z = null;
19529
19545
  const k = [];
19530
19546
  for (let M = 0; M < V; ++M) {
19531
- if (h = g.charCodeAt(M), h > 55295 && h < 57344) {
19547
+ if (h = X.charCodeAt(M), h > 55295 && h < 57344) {
19532
19548
  if (!z) {
19533
19549
  if (h > 56319) {
19534
19550
  (p -= 3) > -1 && k.push(239, 191, 189);
@@ -19575,45 +19591,45 @@ function hb() {
19575
19591
  }
19576
19592
  return k;
19577
19593
  }
19578
- function pt(g) {
19594
+ function pt(X) {
19579
19595
  const p = [];
19580
- for (let h = 0; h < g.length; ++h)
19581
- p.push(g.charCodeAt(h) & 255);
19596
+ for (let h = 0; h < X.length; ++h)
19597
+ p.push(X.charCodeAt(h) & 255);
19582
19598
  return p;
19583
19599
  }
19584
- function Fe(g, p) {
19600
+ function Fe(X, p) {
19585
19601
  let h, V, z;
19586
19602
  const k = [];
19587
- for (let M = 0; M < g.length && !((p -= 2) < 0); ++M)
19588
- h = g.charCodeAt(M), V = h >> 8, z = h % 256, k.push(z), k.push(V);
19603
+ for (let M = 0; M < X.length && !((p -= 2) < 0); ++M)
19604
+ h = X.charCodeAt(M), V = h >> 8, z = h % 256, k.push(z), k.push(V);
19589
19605
  return k;
19590
19606
  }
19591
- function ht(g) {
19592
- return t.toByteArray(Ce(g));
19607
+ function ht(X) {
19608
+ return t.toByteArray(Ce(X));
19593
19609
  }
19594
- function re(g, p, h, V) {
19610
+ function re(X, p, h, V) {
19595
19611
  let z;
19596
- for (z = 0; z < V && !(z + h >= p.length || z >= g.length); ++z)
19597
- p[z + h] = g[z];
19612
+ for (z = 0; z < V && !(z + h >= p.length || z >= X.length); ++z)
19613
+ p[z + h] = X[z];
19598
19614
  return z;
19599
19615
  }
19600
- function le(g, p) {
19601
- return g instanceof p || g != null && g.constructor != null && g.constructor.name != null && g.constructor.name === p.name;
19616
+ function le(X, p) {
19617
+ return X instanceof p || X != null && X.constructor != null && X.constructor.name != null && X.constructor.name === p.name;
19602
19618
  }
19603
- function Te(g) {
19604
- return g !== g;
19619
+ function Te(X) {
19620
+ return X !== X;
19605
19621
  }
19606
19622
  const Ae = function() {
19607
- const g = "0123456789abcdef", p = new Array(256);
19623
+ const X = "0123456789abcdef", p = new Array(256);
19608
19624
  for (let h = 0; h < 16; ++h) {
19609
19625
  const V = h * 16;
19610
19626
  for (let z = 0; z < 16; ++z)
19611
- p[V + z] = g[h] + g[z];
19627
+ p[V + z] = X[h] + X[z];
19612
19628
  }
19613
19629
  return p;
19614
19630
  }();
19615
- function tt(g) {
19616
- return typeof BigInt > "u" ? _e : g;
19631
+ function tt(X) {
19632
+ return typeof BigInt > "u" ? _e : X;
19617
19633
  }
19618
19634
  function _e() {
19619
19635
  throw new Error("BigInt not supported");
@@ -19768,7 +19784,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19768
19784
  if (n.code = e, Error.captureStackTrace && Error.captureStackTrace(n, Dt), !r)
19769
19785
  throw n;
19770
19786
  return n;
19771
- }, Xb = function(e, t, r, n) {
19787
+ }, gb = function(e, t, r, n) {
19772
19788
  var o = e.length, a = 0;
19773
19789
  if (!o || t.f && !t.l)
19774
19790
  return r || new vt(0);
@@ -19797,12 +19813,12 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19797
19813
  for (var K = Wa(Y), H = (1 << K) - 1, E = ar(Y, K, 1), U = 0; U < R; ) {
19798
19814
  var P = E[Gt(e, d, H)];
19799
19815
  d += P & 15;
19800
- var X = P >> 4;
19801
- if (X < 16)
19802
- j[U++] = X;
19816
+ var g = P >> 4;
19817
+ if (g < 16)
19818
+ j[U++] = g;
19803
19819
  else {
19804
19820
  var C = 0, Z = 0;
19805
- for (X == 16 ? (Z = 3 + Gt(e, d, 3), d += 2, C = j[U - 1]) : X == 17 ? (Z = 3 + Gt(e, d, 7), d += 3) : X == 18 && (Z = 11 + Gt(e, d, 127), d += 7); Z--; )
19821
+ for (g == 16 ? (Z = 3 + Gt(e, d, 3), d += 2, C = j[U - 1]) : g == 17 ? (Z = 3 + Gt(e, d, 7), d += 3) : g == 18 && (Z = 11 + Gt(e, d, 127), d += 7); Z--; )
19806
19822
  j[U++] = C;
19807
19823
  }
19808
19824
  }
@@ -19811,12 +19827,12 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19811
19827
  } else
19812
19828
  Dt(1);
19813
19829
  else {
19814
- var X = li(d) + 4, y = e[X - 4] | e[X - 3] << 8, q = X + y;
19830
+ var g = li(d) + 4, y = e[g - 4] | e[g - 3] << 8, q = g + y;
19815
19831
  if (q > o) {
19816
19832
  c && Dt(0);
19817
19833
  break;
19818
19834
  }
19819
- i && u(v + y), r.set(e.subarray(X, q), v), t.b = v += y, t.p = d = q * 8, t.f = f;
19835
+ i && u(v + y), r.set(e.subarray(g, q), v), t.b = v += y, t.p = d = q * 8, t.f = f;
19820
19836
  continue;
19821
19837
  }
19822
19838
  if (d > W) {
@@ -19906,8 +19922,8 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19906
19922
  break;
19907
19923
  }
19908
19924
  for (b >>= N; b > 0; ) {
19909
- var X = a[n].s;
19910
- m[X] < t ? b -= 1 << t - m[X]++ - 1 : ++n;
19925
+ var g = a[n].s;
19926
+ m[g] < t ? b -= 1 << t - m[g]++ - 1 : ++n;
19911
19927
  }
19912
19928
  for (; n >= 0 && b; --n) {
19913
19929
  var y = a[n].s;
@@ -19953,7 +19969,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19953
19969
  return (o + 4 + n) * 8;
19954
19970
  }, D2 = function(e, t, r, n, o, a, l, i, c, u, f) {
19955
19971
  pr(t, f++, r), ++o[256];
19956
- 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, X = W.n, y = J2(b), q = y.c, F = y.n, O = new jt(19), R = 0; R < L.length; ++R)
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)
19957
19973
  ++O[L[R] & 31];
19958
19974
  for (var R = 0; R < q.length; ++R)
19959
19975
  ++O[q[R] & 31];
@@ -19966,7 +19982,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19966
19982
  if (pr(t, f, 1 + (P < E)), f += 2, P < E) {
19967
19983
  C = ar(v, m, 0), Z = v, G = ar(b, N, 0), J = b;
19968
19984
  var Q = ar(Y, U, 0);
19969
- pr(t, f, X - 257), pr(t, f + 5, F - 1), pr(t, f + 10, K - 4), f += 14;
19985
+ pr(t, f, g - 257), pr(t, f + 5, F - 1), pr(t, f + 10, K - 4), f += 14;
19970
19986
  for (var R = 0; R < K; ++R)
19971
19987
  pr(t, f + 3 * R, Y[ss[R]]);
19972
19988
  f += 3 * K;
@@ -19988,14 +20004,14 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
19988
20004
  Qn(t, f, C[I]), f += Z[I];
19989
20005
  }
19990
20006
  return Qn(t, f, C[256]), f + Z[256];
19991
- }, gb = /* @__PURE__ */ new ii([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), a5 = /* @__PURE__ */ new vt(0), Lb = function(e, t, r, n, o, a) {
20007
+ }, Xb = /* @__PURE__ */ new ii([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), a5 = /* @__PURE__ */ new vt(0), Lb = function(e, t, r, n, o, a) {
19992
20008
  var l = a.z || e.length, i = new vt(n + l + 5 * (1 + Math.ceil(l / 7e3)) + o), c = i.subarray(n, i.length - o), u = a.l, f = (a.r || 0) & 7;
19993
20009
  if (t) {
19994
20010
  f && (c[0] = a.r >> 3);
19995
- for (var d = gb[t - 1], v = d >> 13, m = d & 8191, x = (1 << r) - 1, b = a.p || new jt(32768), N = a.h || new jt(x + 1), W = Math.ceil(r / 3), L = 2 * W, X = function(te) {
20011
+ for (var d = Xb[t - 1], v = d >> 13, m = d & 8191, x = (1 << r) - 1, b = a.p || new jt(32768), N = a.h || new jt(x + 1), W = Math.ceil(r / 3), L = 2 * W, g = function(te) {
19996
20012
  return (e[te] ^ e[te + 1] << W ^ e[te + 2] << L) & x;
19997
20013
  }, y = new ii(25e3), q = new jt(288), F = new jt(32), O = 0, R = 0, j = a.i || 0, Y = 0, U = a.w || 0, K = 0; j + 2 < l; ++j) {
19998
- var H = X(j), E = j & 32767, P = N[H];
20014
+ var H = g(j), E = j & 32767, P = N[H];
19999
20015
  if (b[E] = P, N[H] = E, U <= j) {
20000
20016
  var C = l - j;
20001
20017
  if ((O > 7e3 || Y > 24576) && (C > 423 || !u)) {
@@ -20006,7 +20022,7 @@ var bb = /* @__PURE__ */ ar(Zr, 9, 0), yb = /* @__PURE__ */ ar(Zr, 9, 1), xb = /
20006
20022
  F[Z] = 0;
20007
20023
  }
20008
20024
  var G = 2, J = 0, Q = m, D = E - P & 32767;
20009
- if (C > 2 && H == X(j - D))
20025
+ if (C > 2 && H == g(j - D))
20010
20026
  for (var A = Math.min(v, C) - 1, _ = Math.min(32767, j), $ = Math.min(258, C); D <= _ && --Q && E != P; ) {
20011
20027
  if (e[j + G] == e[j + G - D]) {
20012
20028
  for (var I = 0; I < $ && e[j + I] == e[j + I - D]; ++I)
@@ -20082,7 +20098,7 @@ function Ob(e, t) {
20082
20098
  return qb(n, t), i5(n, n.length - 4, r.d()), n;
20083
20099
  }
20084
20100
  function Fb(e, t) {
20085
- return Xb(e.subarray(Vb(e), -4), { i: 2 }, t, t);
20101
+ return gb(e.subarray(Vb(e), -4), { i: 2 }, t, t);
20086
20102
  }
20087
20103
  var Tb = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Sb = 0;
20088
20104
  try {
@@ -20398,7 +20414,7 @@ const Mb = new nl(), Wy = ({
20398
20414
  return /* @__PURE__ */ s.jsx(w5, { config: i, children: /* @__PURE__ */ s.jsx(rl, { client: r, children: /* @__PURE__ */ s.jsx(
20399
20415
  T0,
20400
20416
  {
20401
- strategy: Xn.EIP1193,
20417
+ strategy: gn.EIP1193,
20402
20418
  walletClientType: Zl.WAGMI,
20403
20419
  ...a,
20404
20420
  children: n
@@ -20504,7 +20520,7 @@ const Mb = new nl(), Wy = ({
20504
20520
  F !== f && (d(F), (W.get("chainChanged") || []).forEach((R) => R(F)));
20505
20521
  },
20506
20522
  [f, W]
20507
- ), X = bt(
20523
+ ), g = bt(
20508
20524
  async (F) => {
20509
20525
  var U;
20510
20526
  const { method: O, params: R } = F;
@@ -20571,8 +20587,8 @@ const Mb = new nl(), Wy = ({
20571
20587
  (W.get(F) ?? []).filter((R) => R !== O)
20572
20588
  );
20573
20589
  },
20574
- request: X
20575
- }), [X, W]);
20590
+ request: g
20591
+ }), [g, W]);
20576
20592
  return {
20577
20593
  ready: wt(() => u && i && c && i.linkedAccounts.some(
20578
20594
  (F) => F.type === "cross_app" && F.providerApp.id === (t ? br : vr)
@@ -20584,7 +20600,7 @@ const Mb = new nl(), Wy = ({
20584
20600
  children: e,
20585
20601
  useStagingTenant: t
20586
20602
  }) => {
20587
- const r = X5(), { reconnect: n } = g5(), { ready: o, provider: a } = Ib({
20603
+ const r = g5(), { reconnect: n } = X5(), { ready: o, provider: a } = Ib({
20588
20604
  chains: r.chains,
20589
20605
  useStagingTenant: t
20590
20606
  }), [l, i] = fe(!1), [c, u] = fe(null), f = dn("InjectWagmiConnector"), d = bt(
@@ -20634,8 +20650,8 @@ const Mb = new nl(), Wy = ({
20634
20650
  connectors: [],
20635
20651
  transports: t ?? e.reduce(
20636
20652
  (f, d) => {
20637
- var b, N, W, L, X, y;
20638
- const v = (W = (N = (b = d.rpcUrls) == null ? void 0 : b.default) == null ? void 0 : N.webSocket) == null ? void 0 : W[0], m = (y = (X = (L = d.rpcUrls) == null ? void 0 : L.default) == null ? void 0 : X.http) == null ? void 0 : y[0], x = [v && el(v), m && jr(m)].filter((q) => !!q);
20653
+ var b, N, W, L, g, y;
20654
+ const v = (W = (N = (b = d.rpcUrls) == null ? void 0 : b.default) == null ? void 0 : N.webSocket) == null ? void 0 : W[0], m = (y = (g = (L = d.rpcUrls) == null ? void 0 : L.default) == null ? void 0 : g.http) == null ? void 0 : y[0], x = [v && el(v), m && jr(m)].filter((q) => !!q);
20639
20655
  return f[d.id] = x.length ? tl(x) : jr(), f;
20640
20656
  },
20641
20657
  {}
@@ -20653,7 +20669,7 @@ const Mb = new nl(), Wy = ({
20653
20669
  }, /* @__PURE__ */ s.jsx(j5, { ...c, children: /* @__PURE__ */ s.jsx(rl, { client: r, children: /* @__PURE__ */ s.jsx(z5, { config: u, children: /* @__PURE__ */ s.jsx(Qb, { useStagingTenant: o, children: /* @__PURE__ */ s.jsx(
20654
20670
  T0,
20655
20671
  {
20656
- strategy: Xn.PRIVY,
20672
+ strategy: gn.PRIVY,
20657
20673
  glyphUrl: n,
20658
20674
  useStagingTenant: o,
20659
20675
  onLogin: l,
@@ -20669,7 +20685,7 @@ export {
20669
20685
  vr as G,
20670
20686
  Qb as I,
20671
20687
  Dl as L,
20672
- Xy as N,
20688
+ gy as N,
20673
20689
  br as S,
20674
20690
  sy as W,
20675
20691
  y1 as a,
@@ -20682,12 +20698,12 @@ export {
20682
20698
  Ny as h,
20683
20699
  iy as i,
20684
20700
  s as j,
20685
- ct as k,
20701
+ st as k,
20686
20702
  xp as l,
20687
20703
  wy as m,
20688
20704
  Ct as n,
20689
20705
  $e as o,
20690
- Xn as p,
20706
+ gn as p,
20691
20707
  Zl as q,
20692
20708
  hv as r,
20693
20709
  Eb as s,