@use-glyph/sdk-react 1.0.0 → 1.0.2

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,7 +1,7 @@
1
1
  import * as X from "react";
2
2
  import S, { createContext as Fa, useContext as br, useState as fe, useEffect as Se, memo as jr, forwardRef as Ei, createElement as Qo, useLayoutEffect as Mi, useMemo as wt, useCallback as pt, useRef as Qi, lazy as Ii, Suspense as K6 } from "react";
3
3
  import { injected as k6, useSwitchChain as Y6, useChainId as Mt, useWriteContract as J6, deepEqual as G6, useConnect as D6, useDisconnect as E6, useAccount as M6, createConfig as Q6, WagmiProvider as I6, useConfig as B6, useReconnect as A6 } from "wagmi";
4
- import { parseUnits as _6, createPublicClient as Wn, fallback as $6, webSocket as e5, http as u1, isAddress as vs, checksumAddress as mo, zeroAddress as w1, erc20Abi as ho, parseEther as t5, formatUnits as vo, ProviderRpcError as bo, getAddress as bs, SwitchChainError as r5, fromHex as n5, isHex as o5, hexToNumber as a5 } from "viem";
4
+ import { parseUnits as _6, createPublicClient as qn, fallback as $6, webSocket as e5, http as d1, isAddress as vs, checksumAddress as mo, zeroAddress as w1, erc20Abi as ho, parseEther as t5, formatUnits as vo, ProviderRpcError as bo, getAddress as bs, SwitchChainError as r5, fromHex as n5, isHex as o5, hexToNumber as a5 } from "viem";
5
5
  import * as D1 from "react-dom";
6
6
  import Ta from "react-dom";
7
7
  import { useQuery as s5, QueryClientProvider as Bi, QueryClient as Ai } from "@tanstack/react-query";
@@ -10,7 +10,7 @@ import { createConfig as u5, WagmiProvider as d5 } from "@privy-io/wagmi";
10
10
  function f5(e) {
11
11
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
12
12
  }
13
- var nn = { exports: {} }, g1 = {};
13
+ var on = { exports: {} }, g1 = {};
14
14
  /**
15
15
  * @license React
16
16
  * react-jsx-runtime.production.min.js
@@ -285,7 +285,7 @@ function m5() {
285
285
  } finally {
286
286
  pe = !1, ne.current = Ee, I(), Error.prepareStackTrace = Re;
287
287
  }
288
- var _r = T ? T.displayName || T.name : "", Hr = _r ? ae(_r) : "";
288
+ var $r = T ? T.displayName || T.name : "", Hr = $r ? ae($r) : "";
289
289
  return typeof T == "function" && se.set(T, Hr), Hr;
290
290
  }
291
291
  function me(T, B, oe) {
@@ -567,7 +567,7 @@ Check the top-level render call using <` + oe + ">.");
567
567
  typeof B.getDefaultProps == "function" && !B.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
568
568
  }
569
569
  }
570
- function Qe(T) {
570
+ function Ie(T) {
571
571
  {
572
572
  for (var B = Object.keys(T.props), oe = 0; oe < B.length; oe++) {
573
573
  var he = B[oe];
@@ -599,8 +599,8 @@ Check the top-level render call using <` + oe + ">.");
599
599
  if (Rt !== void 0)
600
600
  if (he)
601
601
  if (ve(Rt)) {
602
- for (var _r = 0; _r < Rt.length; _r++)
603
- mt(Rt[_r], T);
602
+ for (var $r = 0; $r < Rt.length; $r++)
603
+ mt(Rt[$r], T);
604
604
  Object.freeze && Object.freeze(Rt);
605
605
  } else
606
606
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -621,22 +621,22 @@ React keys must be passed directly to JSX without using spread:
621
621
  <%s key={someKey} {...props} />`, po, Hr, Z6, Hr), Ct[Hr + po] = !0;
622
622
  }
623
623
  }
624
- return T === n ? Qe(rt) : ke(rt), rt;
624
+ return T === n ? Ie(rt) : ke(rt), rt;
625
625
  }
626
626
  }
627
627
  function Ft(T, B, oe) {
628
628
  return ct(T, B, oe, !0);
629
629
  }
630
- function rn(T, B, oe) {
630
+ function nn(T, B, oe) {
631
631
  return ct(T, B, oe, !1);
632
632
  }
633
- var sr = rn, hs = Ft;
633
+ var sr = nn, hs = Ft;
634
634
  W1.Fragment = n, W1.jsx = sr, W1.jsxs = hs;
635
635
  }()), W1;
636
636
  }
637
637
  var Ns;
638
638
  function h5() {
639
- return Ns || (Ns = 1, process.env.NODE_ENV === "production" ? nn.exports = p5() : nn.exports = m5()), nn.exports;
639
+ return Ns || (Ns = 1, process.env.NODE_ENV === "production" ? on.exports = p5() : on.exports = m5()), on.exports;
640
640
  }
641
641
  var a = h5();
642
642
  const E1 = Fa(void 0);
@@ -871,10 +871,10 @@ function gs(e, ...t) {
871
871
  return s(V5.apply(null, arguments));
872
872
  };
873
873
  }
874
- const Ie = (e) => {
874
+ const Be = (e) => {
875
875
  const t = (r) => r[e] || [];
876
876
  return t.isThemeGetter = !0, t;
877
- }, n2 = /^\[(?:([a-z-]+):)?(.+)\]$/i, O5 = /^\d+\/\d+$/, F5 = /* @__PURE__ */ new Set(["px", "full", "screen"]), T5 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, S5 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, U5 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, j5 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, C5 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ir = (e) => a1(e) || F5.has(e) || O5.test(e), Nr = (e) => v1(e, "length", Y5), a1 = (e) => !!e && !Number.isNaN(Number(e)), yo = (e) => v1(e, "number", a1), q1 = (e) => !!e && Number.isInteger(Number(e)), R5 = (e) => e.endsWith("%") && a1(e.slice(0, -1)), ye = (e) => n2.test(e), Xr = (e) => T5.test(e), z5 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), P5 = (e) => v1(e, z5, o2), Z5 = (e) => v1(e, "position", o2), H5 = /* @__PURE__ */ new Set(["image", "url"]), K5 = (e) => v1(e, H5, G5), k5 = (e) => v1(e, "", J5), L1 = () => !0, v1 = (e, t, r) => {
877
+ }, n2 = /^\[(?:([a-z-]+):)?(.+)\]$/i, O5 = /^\d+\/\d+$/, F5 = /* @__PURE__ */ new Set(["px", "full", "screen"]), T5 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, S5 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, U5 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, j5 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, C5 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ir = (e) => s1(e) || F5.has(e) || O5.test(e), Nr = (e) => v1(e, "length", Y5), s1 = (e) => !!e && !Number.isNaN(Number(e)), yo = (e) => v1(e, "number", s1), q1 = (e) => !!e && Number.isInteger(Number(e)), R5 = (e) => e.endsWith("%") && s1(e.slice(0, -1)), ye = (e) => n2.test(e), Xr = (e) => T5.test(e), z5 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), P5 = (e) => v1(e, z5, o2), Z5 = (e) => v1(e, "position", o2), H5 = /* @__PURE__ */ new Set(["image", "url"]), K5 = (e) => v1(e, H5, G5), k5 = (e) => v1(e, "", J5), L1 = () => !0, v1 = (e, t, r) => {
878
878
  const n = n2.exec(e);
879
879
  return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
880
880
  }, Y5 = (e) => (
@@ -883,7 +883,7 @@ const Ie = (e) => {
883
883
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
884
884
  S5.test(e) && !U5.test(e)
885
885
  ), o2 = () => !1, J5 = (e) => j5.test(e), G5 = (e) => C5.test(e), Ws = () => {
886
- const e = Ie("colors"), t = Ie("spacing"), r = Ie("blur"), n = Ie("brightness"), o = Ie("borderColor"), s = Ie("borderRadius"), l = Ie("borderSpacing"), i = Ie("borderWidth"), c = Ie("contrast"), u = Ie("grayscale"), f = Ie("hueRotate"), d = Ie("invert"), b = Ie("gap"), h = Ie("gradientColorStops"), x = Ie("gradientColorStopPositions"), v = Ie("inset"), N = Ie("margin"), q = Ie("opacity"), w = Ie("padding"), y = Ie("saturate"), W = Ie("scale"), V = Ie("sepia"), F = Ie("skew"), O = Ie("space"), C = Ie("translate"), R = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", ye, t], k = () => [ye, t], Z = () => ["", ir, Nr], E = () => ["auto", a1, ye], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", ye], Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [a1, ye];
886
+ const e = Be("colors"), t = Be("spacing"), r = Be("blur"), n = Be("brightness"), o = Be("borderColor"), s = Be("borderRadius"), l = Be("borderSpacing"), i = Be("borderWidth"), c = Be("contrast"), u = Be("grayscale"), f = Be("hueRotate"), d = Be("invert"), b = Be("gap"), h = Be("gradientColorStops"), x = Be("gradientColorStopPositions"), v = Be("inset"), N = Be("margin"), q = Be("opacity"), w = Be("padding"), y = Be("saturate"), W = Be("scale"), V = Be("sepia"), F = Be("skew"), O = Be("space"), C = Be("translate"), R = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", ye, t], k = () => [ye, t], Z = () => ["", ir, Nr], E = () => ["auto", s1, ye], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", ye], Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [s1, ye];
887
887
  return {
888
888
  cacheSize: 500,
889
889
  separator: ":",
@@ -1622,7 +1622,7 @@ const Ie = (e) => {
1622
1622
  * @see https://tailwindcss.com/docs/line-clamp
1623
1623
  */
1624
1624
  "line-clamp": [{
1625
- "line-clamp": ["none", a1, yo]
1625
+ "line-clamp": ["none", s1, yo]
1626
1626
  }],
1627
1627
  /**
1628
1628
  * Line Height
@@ -2974,7 +2974,7 @@ const I5 = 42161, Or = /* @__PURE__ */ a2({
2974
2974
  }
2975
2975
  },
2976
2976
  sourceId: I5
2977
- }), qn = /* @__PURE__ */ a2({
2977
+ }), Ln = /* @__PURE__ */ a2({
2978
2978
  id: 33111,
2979
2979
  name: "Curtis",
2980
2980
  nativeCurrency: { name: "ApeCoin", symbol: "APE", decimals: 18 },
@@ -3527,7 +3527,7 @@ function qs(e) {
3527
3527
  ] })
3528
3528
  ] });
3529
3529
  }
3530
- function d1(e) {
3530
+ function f1(e) {
3531
3531
  return /* @__PURE__ */ a.jsxs("svg", { id: "Layer_1", "data-name": "Layer 1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: "0 0 394.59 392.94", ...e, children: [
3532
3532
  /* @__PURE__ */ a.jsx("defs", { children: /* @__PURE__ */ a.jsxs("radialGradient", { id: "radial-gradient", cx: "17", cy: "378.76", fx: "17", fy: "378.76", r: ".97", gradientTransform: "translate(-86395.6 -3598.28) rotate(90) scale(224.44 -228.64)", gradientUnits: "userSpaceOnUse", children: [
3533
3533
  /* @__PURE__ */ a.jsx("stop", { offset: ".17", stopColor: "#073183" }),
@@ -3552,12 +3552,12 @@ function d1(e) {
3552
3552
  const _5 = void 0, fr = void 0, pr = "clxt9p8e601al6tgmsyhu7j3t", Km = void 0, $5 = "https://i.ibb.co/TxcwPQyr/Group-12489-1.png", e0 = 60 * 1e3, Ls = 60 * 1e3;
3553
3553
  var hr = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SUCCESS = "success", e.ERROR = "error", e))(hr || {}), Ye = /* @__PURE__ */ ((e) => (e.MAIN = "main", e.FUND = "fund", e.SEND = "send", e.RECEIVE = "receive", e.PROFILE = "profile", e))(Ye || {}), it = /* @__PURE__ */ ((e) => (e.HOME = "home", e.ACTIVITY = "activity", e.TOKENS = "tokens", e.LINKED_ACCOUNTS = "linked-accounts", e))(it || {}), ur = /* @__PURE__ */ ((e) => (e.BUY = "fund-buy", e.WAIT = "fund-wait", e.END = "fund-end", e))(ur || {}), xt = /* @__PURE__ */ ((e) => (e.ENTER_ADDRESS = "send-enter-address", e.ENTER_AMOUNT = "send-enter-amount", e.WAIT = "send-wait", e.END = "send-end", e))(xt || {});
3554
3554
  const Bo = {
3555
- APE: d1,
3555
+ APE: f1,
3556
3556
  ApeETH: B5,
3557
3557
  ApeUSD: A5,
3558
3558
  WAPE: qs,
3559
3559
  wAPE: qs
3560
- }, Gr = "gw-grayscale", b1 = /* @__PURE__ */ new Map([[qn.id, !0]]), St = {
3560
+ }, Gr = "gw-grayscale", b1 = /* @__PURE__ */ new Map([[Ln.id, !0]]), St = {
3561
3561
  id: "io.useglyph.privy",
3562
3562
  name: "Glyph",
3563
3563
  iconUrl: $5,
@@ -3604,7 +3604,7 @@ const s0 = "GlyphWidget", y1 = (e) => {
3604
3604
  function i0(e, t) {
3605
3605
  return BigInt(_6(e.toString(), t));
3606
3606
  }
3607
- const on = (e, t = 2) => {
3607
+ const an = (e, t = 2) => {
3608
3608
  var r, n;
3609
3609
  return Number(
3610
3610
  ((n = (r = e == null ? void 0 : e.toLocaleString) == null ? void 0 : r.call(e, "en-US", {
@@ -3688,11 +3688,11 @@ const at = () => {
3688
3688
  window.removeEventListener("resize", o);
3689
3689
  };
3690
3690
  }, [t, e]), t;
3691
- }, s2 = [qn, Or], Vs = s2.map((e) => e.id), Nn = s2.find((e) => e.id === Or.id), d0 = Wn({
3692
- chain: Nn,
3693
- transport: $6([e5(), u1()])
3694
- }), an = d0;
3695
- var s1 = /* @__PURE__ */ ((e) => (e.PRIVY = "privy", e.EIP1193 = "eip1193", e))(s1 || {});
3691
+ }, s2 = [Ln, Or], Vs = s2.map((e) => e.id), Xn = s2.find((e) => e.id === Or.id), d0 = qn({
3692
+ chain: Xn,
3693
+ transport: $6([e5(), d1()])
3694
+ }), sn = d0;
3695
+ var i1 = /* @__PURE__ */ ((e) => (e.PRIVY = "privy", e.EIP1193 = "eip1193", e))(i1 || {});
3696
3696
  const Os = "privy";
3697
3697
  var i2 = /* @__PURE__ */ ((e) => (e.RAINBOWKIT = "rainbowkit", e.CONNECTKIT = "connectkit", e.THIRDWEB = "thirdweb", e.WAGMI = "wagmi", e.DYNAMIC = "dynamic", e))(i2 || {});
3698
3698
  const _e = {
@@ -3701,7 +3701,7 @@ const _e = {
3701
3701
  ...Ye,
3702
3702
  ...it
3703
3703
  };
3704
- function f1(e) {
3704
+ function Dr(e) {
3705
3705
  return /* @__PURE__ */ a.jsx("svg", { width: "259", height: "259", viewBox: "0 0 259 259", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ a.jsx(
3706
3706
  "path",
3707
3707
  {
@@ -3787,7 +3787,7 @@ const p0 = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
3787
3787
  ] }),
3788
3788
  e && /* @__PURE__ */ a.jsx("div", { className: "gw-flex-shrink-0", children: /* @__PURE__ */ a.jsx(Zt, { className: "gw-size-9" }) }),
3789
3789
  r && /* @__PURE__ */ a.jsx("div", { className: "gw-px-2", children: (n == null ? void 0 : n.name) || "" }),
3790
- !t && !e && !r && /* @__PURE__ */ a.jsx(f1, { className: "gw-size-7" })
3790
+ !t && !e && !r && /* @__PURE__ */ a.jsx(Dr, { className: "gw-size-7" })
3791
3791
  ]
3792
3792
  }
3793
3793
  );
@@ -3869,7 +3869,7 @@ const y0 = Ei(
3869
3869
  * This source code is licensed under the ISC license.
3870
3870
  * See the LICENSE file in the root directory of this source tree.
3871
3871
  */
3872
- const Ar = (e, t) => {
3872
+ const _r = (e, t) => {
3873
3873
  const r = Ei(
3874
3874
  ({ className: n, ...o }, s) => Qo(y0, {
3875
3875
  ref: s,
@@ -3893,35 +3893,35 @@ const Ar = (e, t) => {
3893
3893
  const x0 = [
3894
3894
  ["path", { d: "M7 7h10v10", key: "1tivn9" }],
3895
3895
  ["path", { d: "M7 17 17 7", key: "1vkiza" }]
3896
- ], N0 = Ar("arrow-up-right", x0);
3896
+ ], N0 = _r("arrow-up-right", x0);
3897
3897
  /**
3898
3898
  * @license lucide-react v0.510.0 - ISC
3899
3899
  *
3900
3900
  * This source code is licensed under the ISC license.
3901
3901
  * See the LICENSE file in the root directory of this source tree.
3902
3902
  */
3903
- const X0 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], w0 = Ar("check", X0);
3903
+ const X0 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], w0 = _r("check", X0);
3904
3904
  /**
3905
3905
  * @license lucide-react v0.510.0 - ISC
3906
3906
  *
3907
3907
  * This source code is licensed under the ISC license.
3908
3908
  * See the LICENSE file in the root directory of this source tree.
3909
3909
  */
3910
- const g0 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], u2 = Ar("chevron-down", g0);
3910
+ const g0 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], u2 = _r("chevron-down", g0);
3911
3911
  /**
3912
3912
  * @license lucide-react v0.510.0 - ISC
3913
3913
  *
3914
3914
  * This source code is licensed under the ISC license.
3915
3915
  * See the LICENSE file in the root directory of this source tree.
3916
3916
  */
3917
- const W0 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], q0 = Ar("chevron-up", W0);
3917
+ const W0 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], q0 = _r("chevron-up", W0);
3918
3918
  /**
3919
3919
  * @license lucide-react v0.510.0 - ISC
3920
3920
  *
3921
3921
  * This source code is licensed under the ISC license.
3922
3922
  * See the LICENSE file in the root directory of this source tree.
3923
3923
  */
3924
- const L0 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], kn = Ar("loader-circle", L0);
3924
+ const L0 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], I1 = _r("loader-circle", L0);
3925
3925
  /**
3926
3926
  * @license lucide-react v0.510.0 - ISC
3927
3927
  *
@@ -3937,7 +3937,7 @@ const V0 = [
3937
3937
  }
3938
3938
  ],
3939
3939
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
3940
- ], O0 = Ar("send", V0);
3940
+ ], O0 = _r("send", V0);
3941
3941
  /**
3942
3942
  * @license lucide-react v0.510.0 - ISC
3943
3943
  *
@@ -3947,7 +3947,7 @@ const V0 = [
3947
3947
  const F0 = [
3948
3948
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3949
3949
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3950
- ], I1 = Ar("x", F0);
3950
+ ], B1 = _r("x", F0);
3951
3951
  function Ss(e, t) {
3952
3952
  if (typeof e == "function")
3953
3953
  return e(t);
@@ -4082,7 +4082,7 @@ const Us = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, js = $i, z
4082
4082
  scale: !1
4083
4083
  }
4084
4084
  }
4085
- ), Ae = X.forwardRef(
4085
+ ), Qe = X.forwardRef(
4086
4086
  ({ className: e, variant: t, size: r, shadow: n, scale: o, asChild: s = !1, ...l }, i) => {
4087
4087
  const c = s ? T0 : "button";
4088
4088
  return /* @__PURE__ */ a.jsx(
@@ -4095,14 +4095,14 @@ const Us = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, js = $i, z
4095
4095
  );
4096
4096
  }
4097
4097
  );
4098
- Ae.displayName = "Button";
4098
+ Qe.displayName = "Button";
4099
4099
  const f2 = () => {
4100
4100
  const { login: e, authenticated: t, ready: r } = at();
4101
- return !r || t ? /* @__PURE__ */ a.jsx(Ae, { variant: "default", size: "login", disabled: !0, children: /* @__PURE__ */ a.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
4102
- /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(f1, { className: "!gw-size-5" }) }),
4103
- /* @__PURE__ */ a.jsx(kn, { className: "gw-size-4 gw-animate-spin" })
4104
- ] }) }) : /* @__PURE__ */ a.jsx(Ae, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
4105
- /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(f1, { className: "!gw-size-5" }) }),
4101
+ return !r || t ? /* @__PURE__ */ a.jsx(Qe, { variant: "default", size: "login", disabled: !0, children: /* @__PURE__ */ a.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
4102
+ /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(Dr, { className: "!gw-size-5" }) }),
4103
+ /* @__PURE__ */ a.jsx(I1, { className: "gw-size-4 gw-animate-spin" })
4104
+ ] }) }) : /* @__PURE__ */ a.jsx(Qe, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
4105
+ /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(Dr, { className: "!gw-size-5" }) }),
4106
4106
  /* @__PURE__ */ a.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Sign in with Glyph" })
4107
4107
  ] }) });
4108
4108
  };
@@ -4607,19 +4607,19 @@ function p7(e) {
4607
4607
  }
4608
4608
  });
4609
4609
  return X.useEffect(() => {
4610
- const u = sn(n.current);
4610
+ const u = ln(n.current);
4611
4611
  s.current = i === "mounted" ? u : "none";
4612
4612
  }, [i]), ot(() => {
4613
4613
  const u = n.current, f = o.current;
4614
4614
  if (f !== e) {
4615
- const b = s.current, h = sn(u);
4615
+ const b = s.current, h = ln(u);
4616
4616
  e ? c("MOUNT") : h === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(f && b !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
4617
4617
  }
4618
4618
  }, [e, c]), ot(() => {
4619
4619
  if (t) {
4620
4620
  let u;
4621
4621
  const f = t.ownerDocument.defaultView ?? window, d = (h) => {
4622
- const v = sn(n.current).includes(h.animationName);
4622
+ const v = ln(n.current).includes(h.animationName);
4623
4623
  if (h.target === t && v && (c("ANIMATION_END"), !o.current)) {
4624
4624
  const N = t.style.animationFillMode;
4625
4625
  t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
@@ -4627,7 +4627,7 @@ function p7(e) {
4627
4627
  });
4628
4628
  }
4629
4629
  }, b = (h) => {
4630
- h.target === t && (s.current = sn(n.current));
4630
+ h.target === t && (s.current = ln(n.current));
4631
4631
  };
4632
4632
  return t.addEventListener("animationstart", b), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
4633
4633
  f.clearTimeout(u), t.removeEventListener("animationstart", b), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
@@ -4641,7 +4641,7 @@ function p7(e) {
4641
4641
  }, [])
4642
4642
  };
4643
4643
  }
4644
- function sn(e) {
4644
+ function ln(e) {
4645
4645
  return (e == null ? void 0 : e.animationName) || "none";
4646
4646
  }
4647
4647
  function m7(e) {
@@ -4684,7 +4684,7 @@ function h7(e, t, r) {
4684
4684
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
4685
4685
  return e.concat(s || Array.prototype.slice.call(t));
4686
4686
  }
4687
- var Xn = "right-scroll-bar-position", wn = "width-before-scroll-bar", v7 = "with-scroll-bars-hidden", b7 = "--removed-body-scroll-bar-size";
4687
+ var wn = "right-scroll-bar-position", gn = "width-before-scroll-bar", v7 = "with-scroll-bars-hidden", b7 = "--removed-body-scroll-bar-size";
4688
4688
  function wo(e, t) {
4689
4689
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
4690
4690
  }
@@ -4825,8 +4825,8 @@ Jn.defaultProps = {
4825
4825
  inert: !1
4826
4826
  };
4827
4827
  Jn.classNames = {
4828
- fullWidth: wn,
4829
- zeroRight: Xn
4828
+ fullWidth: gn,
4829
+ zeroRight: wn
4830
4830
  };
4831
4831
  var q7 = function() {
4832
4832
  if (typeof __webpack_nonce__ < "u")
@@ -4892,14 +4892,14 @@ var F7 = function() {
4892
4892
  right: t[2],
4893
4893
  gap: Math.max(0, n - r + t[2] - t[0])
4894
4894
  };
4895
- }, C7 = w2(), i1 = "data-scroll-locked", R7 = function(e, t, r, n) {
4895
+ }, C7 = w2(), l1 = "data-scroll-locked", R7 = function(e, t, r, n) {
4896
4896
  var o = e.left, s = e.top, l = e.right, i = e.gap;
4897
4897
  return r === void 0 && (r = "margin"), `
4898
4898
  .`.concat(v7, ` {
4899
4899
  overflow: hidden `).concat(n, `;
4900
4900
  padding-right: `).concat(i, "px ").concat(n, `;
4901
4901
  }
4902
- body[`).concat(i1, `] {
4902
+ body[`).concat(l1, `] {
4903
4903
  overflow: hidden `).concat(n, `;
4904
4904
  overscroll-behavior: contain;
4905
4905
  `).concat([
@@ -4916,34 +4916,34 @@ var F7 = function() {
4916
4916
  ].filter(Boolean).join(""), `
4917
4917
  }
4918
4918
 
4919
- .`).concat(Xn, ` {
4919
+ .`).concat(wn, ` {
4920
4920
  right: `).concat(i, "px ").concat(n, `;
4921
4921
  }
4922
4922
 
4923
- .`).concat(wn, ` {
4923
+ .`).concat(gn, ` {
4924
4924
  margin-right: `).concat(i, "px ").concat(n, `;
4925
4925
  }
4926
4926
 
4927
- .`).concat(Xn, " .").concat(Xn, ` {
4927
+ .`).concat(wn, " .").concat(wn, ` {
4928
4928
  right: 0 `).concat(n, `;
4929
4929
  }
4930
4930
 
4931
- .`).concat(wn, " .").concat(wn, ` {
4931
+ .`).concat(gn, " .").concat(gn, ` {
4932
4932
  margin-right: 0 `).concat(n, `;
4933
4933
  }
4934
4934
 
4935
- body[`).concat(i1, `] {
4935
+ body[`).concat(l1, `] {
4936
4936
  `).concat(b7, ": ").concat(i, `px;
4937
4937
  }
4938
4938
  `);
4939
4939
  }, Ys = function() {
4940
- var e = parseInt(document.body.getAttribute(i1) || "0", 10);
4940
+ var e = parseInt(document.body.getAttribute(l1) || "0", 10);
4941
4941
  return isFinite(e) ? e : 0;
4942
4942
  }, z7 = function() {
4943
4943
  X.useEffect(function() {
4944
- return document.body.setAttribute(i1, (Ys() + 1).toString()), function() {
4944
+ return document.body.setAttribute(l1, (Ys() + 1).toString()), function() {
4945
4945
  var e = Ys() - 1;
4946
- e <= 0 ? document.body.removeAttribute(i1) : document.body.setAttribute(i1, e.toString());
4946
+ e <= 0 ? document.body.removeAttribute(l1) : document.body.setAttribute(l1, e.toString());
4947
4947
  };
4948
4948
  }, []);
4949
4949
  }, P7 = function(e) {
@@ -4956,16 +4956,16 @@ var F7 = function() {
4956
4956
  }, _o = !1;
4957
4957
  if (typeof window < "u")
4958
4958
  try {
4959
- var ln = Object.defineProperty({}, "passive", {
4959
+ var cn = Object.defineProperty({}, "passive", {
4960
4960
  get: function() {
4961
4961
  return _o = !0, !0;
4962
4962
  }
4963
4963
  });
4964
- window.addEventListener("test", ln, ln), window.removeEventListener("test", ln, ln);
4964
+ window.addEventListener("test", cn, cn), window.removeEventListener("test", cn, cn);
4965
4965
  } catch {
4966
4966
  _o = !1;
4967
4967
  }
4968
- var $r = _o ? { passive: !1 } : !1, Z7 = function(e) {
4968
+ var e1 = _o ? { passive: !1 } : !1, Z7 = function(e) {
4969
4969
  return e.tagName === "TEXTAREA";
4970
4970
  }, g2 = function(e, t) {
4971
4971
  if (!(e instanceof Element))
@@ -5024,7 +5024,7 @@ var $r = _o ? { passive: !1 } : !1, Z7 = function(e) {
5024
5024
  c && (t.contains(i) || t === i)
5025
5025
  );
5026
5026
  return (f && Math.abs(d) < 1 || !f && Math.abs(b) < 1) && (u = !0), u;
5027
- }, cn = function(e) {
5027
+ }, un = function(e) {
5028
5028
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
5029
5029
  }, Gs = function(e) {
5030
5030
  return [e.deltaX, e.deltaY];
@@ -5037,7 +5037,7 @@ var $r = _o ? { passive: !1 } : !1, Z7 = function(e) {
5037
5037
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
5038
5038
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
5039
5039
  `);
5040
- }, M7 = 0, e1 = [];
5040
+ }, M7 = 0, t1 = [];
5041
5041
  function Q7(e) {
5042
5042
  var t = X.useRef([]), r = X.useRef([0, 0]), n = X.useRef(), o = X.useState(M7++)[0], s = X.useState(w2)[0], l = X.useRef(e);
5043
5043
  X.useEffect(function() {
@@ -5058,7 +5058,7 @@ function Q7(e) {
5058
5058
  var i = X.useCallback(function(v, N) {
5059
5059
  if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
5060
5060
  return !l.current.allowPinchZoom;
5061
- var q = cn(v), w = r.current, y = "deltaX" in v ? v.deltaX : w[0] - q[0], W = "deltaY" in v ? v.deltaY : w[1] - q[1], V, F = v.target, O = Math.abs(y) > Math.abs(W) ? "h" : "v";
5061
+ var q = un(v), w = r.current, y = "deltaX" in v ? v.deltaX : w[0] - q[0], W = "deltaY" in v ? v.deltaY : w[1] - q[1], V, F = v.target, O = Math.abs(y) > Math.abs(W) ? "h" : "v";
5062
5062
  if ("touches" in v && O === "h" && F.type === "range")
5063
5063
  return !1;
5064
5064
  var C = Js(O, F);
@@ -5072,8 +5072,8 @@ function Q7(e) {
5072
5072
  return G7(R, N, v, R === "h" ? y : W);
5073
5073
  }, []), c = X.useCallback(function(v) {
5074
5074
  var N = v;
5075
- if (!(!e1.length || e1[e1.length - 1] !== s)) {
5076
- var q = "deltaY" in N ? Gs(N) : cn(N), w = t.current.filter(function(V) {
5075
+ if (!(!t1.length || t1[t1.length - 1] !== s)) {
5076
+ var q = "deltaY" in N ? Gs(N) : un(N), w = t.current.filter(function(V) {
5077
5077
  return V.name === N.type && (V.target === N.target || N.target === V.shadowParent) && D7(V.delta, q);
5078
5078
  })[0];
5079
5079
  if (w && w.should) {
@@ -5095,21 +5095,21 @@ function Q7(e) {
5095
5095
  });
5096
5096
  }, 1);
5097
5097
  }, []), f = X.useCallback(function(v) {
5098
- r.current = cn(v), n.current = void 0;
5098
+ r.current = un(v), n.current = void 0;
5099
5099
  }, []), d = X.useCallback(function(v) {
5100
5100
  u(v.type, Gs(v), v.target, i(v, e.lockRef.current));
5101
5101
  }, []), b = X.useCallback(function(v) {
5102
- u(v.type, cn(v), v.target, i(v, e.lockRef.current));
5102
+ u(v.type, un(v), v.target, i(v, e.lockRef.current));
5103
5103
  }, []);
5104
5104
  X.useEffect(function() {
5105
- return e1.push(s), e.setCallbacks({
5105
+ return t1.push(s), e.setCallbacks({
5106
5106
  onScrollCapture: d,
5107
5107
  onWheelCapture: d,
5108
5108
  onTouchMoveCapture: b
5109
- }), document.addEventListener("wheel", c, $r), document.addEventListener("touchmove", c, $r), document.addEventListener("touchstart", f, $r), function() {
5110
- e1 = e1.filter(function(v) {
5109
+ }), document.addEventListener("wheel", c, e1), document.addEventListener("touchmove", c, e1), document.addEventListener("touchstart", f, e1), function() {
5110
+ t1 = t1.filter(function(v) {
5111
5111
  return v !== s;
5112
- }), document.removeEventListener("wheel", c, $r), document.removeEventListener("touchmove", c, $r), document.removeEventListener("touchstart", f, $r);
5112
+ }), document.removeEventListener("wheel", c, e1), document.removeEventListener("touchmove", c, e1), document.removeEventListener("touchstart", f, e1);
5113
5113
  };
5114
5114
  }, []);
5115
5115
  var h = e.removeScrollBar, x = e.inert;
@@ -5135,7 +5135,7 @@ var A7 = function(e) {
5135
5135
  return null;
5136
5136
  var t = Array.isArray(e) ? e[0] : e;
5137
5137
  return t.ownerDocument.body;
5138
- }, t1 = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), dn = {}, qo = 0, L2 = function(e) {
5138
+ }, r1 = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), fn = {}, qo = 0, L2 = function(e) {
5139
5139
  return e && (e.host || L2(e.parentNode));
5140
5140
  }, _7 = function(e, t) {
5141
5141
  return t.map(function(r) {
@@ -5148,8 +5148,8 @@ var A7 = function(e) {
5148
5148
  });
5149
5149
  }, $7 = function(e, t, r, n) {
5150
5150
  var o = _7(t, Array.isArray(e) ? e : [e]);
5151
- dn[r] || (dn[r] = /* @__PURE__ */ new WeakMap());
5152
- var s = dn[r], l = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(d) {
5151
+ fn[r] || (fn[r] = /* @__PURE__ */ new WeakMap());
5152
+ var s = fn[r], l = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(d) {
5153
5153
  !d || i.has(d) || (i.add(d), u(d.parentNode));
5154
5154
  };
5155
5155
  o.forEach(u);
@@ -5159,8 +5159,8 @@ var A7 = function(e) {
5159
5159
  f(b);
5160
5160
  else
5161
5161
  try {
5162
- var h = b.getAttribute(n), x = h !== null && h !== "false", v = (t1.get(b) || 0) + 1, N = (s.get(b) || 0) + 1;
5163
- t1.set(b, v), s.set(b, N), l.push(b), v === 1 && x && un.set(b, !0), N === 1 && b.setAttribute(r, "true"), x || b.setAttribute(n, "true");
5162
+ var h = b.getAttribute(n), x = h !== null && h !== "false", v = (r1.get(b) || 0) + 1, N = (s.get(b) || 0) + 1;
5163
+ r1.set(b, v), s.set(b, N), l.push(b), v === 1 && x && dn.set(b, !0), N === 1 && b.setAttribute(r, "true"), x || b.setAttribute(n, "true");
5164
5164
  } catch (q) {
5165
5165
  console.error("aria-hidden: cannot operate on ", b, q);
5166
5166
  }
@@ -5168,9 +5168,9 @@ var A7 = function(e) {
5168
5168
  };
5169
5169
  return f(t), i.clear(), qo++, function() {
5170
5170
  l.forEach(function(d) {
5171
- var b = t1.get(d) - 1, h = s.get(d) - 1;
5172
- t1.set(d, b), s.set(d, h), b || (un.has(d) || d.removeAttribute(n), un.delete(d)), h || d.removeAttribute(r);
5173
- }), qo--, qo || (t1 = /* @__PURE__ */ new WeakMap(), t1 = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), dn = {});
5171
+ var b = r1.get(d) - 1, h = s.get(d) - 1;
5172
+ r1.set(d, b), s.set(d, h), b || (dn.has(d) || d.removeAttribute(n), dn.delete(d)), h || d.removeAttribute(r);
5173
+ }), qo--, qo || (r1 = /* @__PURE__ */ new WeakMap(), r1 = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), fn = {});
5174
5174
  };
5175
5175
  }, za = function(e, t, r) {
5176
5176
  r === void 0 && (r = "data-aria-hidden");
@@ -5236,16 +5236,16 @@ var Pa = "DialogPortal", [tu, S2] = V2(Pa, {
5236
5236
  return /* @__PURE__ */ a.jsx(tu, { scope: t, forceMount: r, children: X.Children.map(n, (l) => /* @__PURE__ */ a.jsx(Cr, { present: r || s.open, children: /* @__PURE__ */ a.jsx(Ca, { asChild: !0, container: o, children: l }) })) });
5237
5237
  };
5238
5238
  U2.displayName = Pa;
5239
- var Ln = "DialogOverlay", j2 = X.forwardRef(
5239
+ var Vn = "DialogOverlay", j2 = X.forwardRef(
5240
5240
  (e, t) => {
5241
- const r = S2(Ln, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = Qt(Ln, e.__scopeDialog);
5241
+ const r = S2(Vn, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = Qt(Vn, e.__scopeDialog);
5242
5242
  return s.modal ? /* @__PURE__ */ a.jsx(Cr, { present: n || s.open, children: /* @__PURE__ */ a.jsx(nu, { ...o, ref: t }) }) : null;
5243
5243
  }
5244
5244
  );
5245
- j2.displayName = Ln;
5245
+ j2.displayName = Vn;
5246
5246
  var ru = /* @__PURE__ */ P1("DialogOverlay.RemoveScroll"), nu = X.forwardRef(
5247
5247
  (e, t) => {
5248
- const { __scopeDialog: r, ...n } = e, o = Qt(Ln, r);
5248
+ const { __scopeDialog: r, ...n } = e, o = Qt(Vn, r);
5249
5249
  return (
5250
5250
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
5251
5251
  // ie. when `Overlay` and `Content` are siblings
@@ -5260,16 +5260,16 @@ var ru = /* @__PURE__ */ P1("DialogOverlay.RemoveScroll"), nu = X.forwardRef(
5260
5260
  ) })
5261
5261
  );
5262
5262
  }
5263
- ), Dr = "DialogContent", C2 = X.forwardRef(
5263
+ ), Er = "DialogContent", C2 = X.forwardRef(
5264
5264
  (e, t) => {
5265
- const r = S2(Dr, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = Qt(Dr, e.__scopeDialog);
5265
+ const r = S2(Er, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = Qt(Er, e.__scopeDialog);
5266
5266
  return /* @__PURE__ */ a.jsx(Cr, { present: n || s.open, children: s.modal ? /* @__PURE__ */ a.jsx(ou, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(au, { ...o, ref: t }) });
5267
5267
  }
5268
5268
  );
5269
- C2.displayName = Dr;
5269
+ C2.displayName = Er;
5270
5270
  var ou = X.forwardRef(
5271
5271
  (e, t) => {
5272
- const r = Qt(Dr, e.__scopeDialog), n = X.useRef(null), o = Ve(t, r.contentRef, n);
5272
+ const r = Qt(Er, e.__scopeDialog), n = X.useRef(null), o = Ve(t, r.contentRef, n);
5273
5273
  return X.useEffect(() => {
5274
5274
  const s = n.current;
5275
5275
  if (s) return za(s);
@@ -5297,7 +5297,7 @@ var ou = X.forwardRef(
5297
5297
  }
5298
5298
  ), au = X.forwardRef(
5299
5299
  (e, t) => {
5300
- const r = Qt(Dr, e.__scopeDialog), n = X.useRef(!1), o = X.useRef(!1);
5300
+ const r = Qt(Er, e.__scopeDialog), n = X.useRef(!1), o = X.useRef(!1);
5301
5301
  return /* @__PURE__ */ a.jsx(
5302
5302
  R2,
5303
5303
  {
@@ -5320,7 +5320,7 @@ var ou = X.forwardRef(
5320
5320
  }
5321
5321
  ), R2 = X.forwardRef(
5322
5322
  (e, t) => {
5323
- const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: s, ...l } = e, i = Qt(Dr, r), c = X.useRef(null), u = Ve(t, c);
5323
+ const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: s, ...l } = e, i = Qt(Er, r), c = X.useRef(null), u = Ve(t, c);
5324
5324
  return Ra(), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5325
5325
  /* @__PURE__ */ a.jsx(
5326
5326
  ja,
@@ -5384,7 +5384,7 @@ function Ha(e) {
5384
5384
  return e ? "open" : "closed";
5385
5385
  }
5386
5386
  var K2 = "DialogTitleWarning", [Gm, k2] = P0(K2, {
5387
- contentName: Dr,
5387
+ contentName: Er,
5388
5388
  titleName: Za,
5389
5389
  docsSlug: "dialog"
5390
5390
  }), iu = ({ titleId: e }) => {
@@ -5456,7 +5456,7 @@ const Y2 = S.createContext({
5456
5456
  noBodyStyles: !1,
5457
5457
  container: null,
5458
5458
  autoFocus: !1
5459
- }), B1 = () => {
5459
+ }), A1 = () => {
5460
5460
  const e = S.useContext(Y2);
5461
5461
  if (!e)
5462
5462
  throw new Error("useDrawerContext must be used within a Drawer.Root");
@@ -5517,13 +5517,13 @@ const Wu = /* @__PURE__ */ new Set([
5517
5517
  "submit",
5518
5518
  "reset"
5519
5519
  ]);
5520
- let fn = 0, Vo;
5520
+ let pn = 0, Vo;
5521
5521
  function qu(e = {}) {
5522
5522
  let { isDisabled: t } = e;
5523
5523
  gu(() => {
5524
5524
  if (!t)
5525
- return fn++, fn === 1 && J2() && (Vo = Lu()), () => {
5526
- fn--, fn === 0 && (Vo == null || Vo());
5525
+ return pn++, pn === 1 && J2() && (Vo = Lu()), () => {
5526
+ pn--, pn === 0 && (Vo == null || Vo());
5527
5527
  };
5528
5528
  }, [
5529
5529
  t
@@ -5635,7 +5635,7 @@ const nt = (e) => {
5635
5635
  return e;
5636
5636
  }
5637
5637
  };
5638
- function pn(e, t) {
5638
+ function mn(e, t) {
5639
5639
  if (!e)
5640
5640
  return null;
5641
5641
  const r = window.getComputedStyle(e), n = (
@@ -5670,7 +5670,7 @@ const $e = {
5670
5670
  0,
5671
5671
  1
5672
5672
  ]
5673
- }, M2 = 0.4, ju = 0.25, Cu = 100, Q2 = 8, mn = 16, ea = 26, Fo = "vaul-dragging";
5673
+ }, M2 = 0.4, ju = 0.25, Cu = 100, Q2 = 8, hn = 16, ea = 26, Fo = "vaul-dragging";
5674
5674
  function I2(e) {
5675
5675
  const t = S.useRef(e);
5676
5676
  return S.useEffect(() => {
@@ -5857,7 +5857,7 @@ function zu({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: r,
5857
5857
  const Pu = () => () => {
5858
5858
  };
5859
5859
  function Zu() {
5860
- const { direction: e, isOpen: t, shouldScaleBackground: r, setBackgroundColorOnScale: n, noBodyStyles: o } = B1(), s = S.useRef(null), l = wt(() => document.body.style.backgroundColor, []);
5860
+ const { direction: e, isOpen: t, shouldScaleBackground: r, setBackgroundColorOnScale: n, noBodyStyles: o } = A1(), s = S.useRef(null), l = wt(() => document.body.style.backgroundColor, []);
5861
5861
  function i() {
5862
5862
  return (window.innerWidth - ea) / window.innerWidth;
5863
5863
  }
@@ -6013,7 +6013,7 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6013
6013
  function L(ie, we) {
6014
6014
  var Te;
6015
6015
  let Xe = ie;
6016
- const Ge = (Te = window.getSelection()) == null ? void 0 : Te.toString(), ce = te.current ? pn(te.current, W) : null, We = /* @__PURE__ */ new Date();
6016
+ const Ge = (Te = window.getSelection()) == null ? void 0 : Te.toString(), ce = te.current ? mn(te.current, W) : null, We = /* @__PURE__ */ new Date();
6017
6017
  if (Xe.tagName === "SELECT" || Xe.hasAttribute("data-vaul-no-drag") || Xe.closest("[data-vaul-no-drag]"))
6018
6018
  return !1;
6019
6019
  if (W === "right" || W === "left")
@@ -6052,7 +6052,7 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6052
6052
  }), s && Vt({
6053
6053
  draggedDistance: Te
6054
6054
  }), Xe && !s) {
6055
- const Qe = Su(Te), Ct = Math.min(Qe * -1, 0) * we;
6055
+ const Ie = Su(Te), Ct = Math.min(Ie * -1, 0) * we;
6056
6056
  st(te.current, {
6057
6057
  transform: nt(W) ? `translate3d(0, ${Ct}px, 0)` : `translate3d(${Ct}px, 0, 0)`
6058
6058
  });
@@ -6063,17 +6063,17 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6063
6063
  opacity: `${ke}`,
6064
6064
  transition: "none"
6065
6065
  }, !0)), We && _.current && l) {
6066
- const Qe = Math.min(p() + Ke * (1 - p()), 1), Ct = 8 - Ke * 8, ct = Math.max(0, 14 - Ke * 14);
6066
+ const Ie = Math.min(p() + Ke * (1 - p()), 1), Ct = 8 - Ke * 8, ct = Math.max(0, 14 - Ke * 14);
6067
6067
  st(We, {
6068
6068
  borderRadius: `${Ct}px`,
6069
- transform: nt(W) ? `scale(${Qe}) translate3d(0, ${ct}px, 0)` : `scale(${Qe}) translate3d(${ct}px, 0, 0)`,
6069
+ transform: nt(W) ? `scale(${Ie}) translate3d(0, ${ct}px, 0)` : `scale(${Ie}) translate3d(${ct}px, 0, 0)`,
6070
6070
  transition: "none"
6071
6071
  }, !0);
6072
6072
  }
6073
6073
  if (!s) {
6074
- const Qe = ce * we;
6074
+ const Ie = ce * we;
6075
6075
  st(te.current, {
6076
- transform: nt(W) ? `translate3d(0, ${Qe}px, 0)` : `translate3d(${Qe}px, 0, 0)`
6076
+ transform: nt(W) ? `translate3d(0, ${Ie}px, 0)` : `translate3d(${Ie}px, 0, 0)`
6077
6077
  });
6078
6078
  }
6079
6079
  }
@@ -6100,8 +6100,8 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6100
6100
  }
6101
6101
  if (me.current = We, De > Ge || ue.current) {
6102
6102
  const ke = te.current.getBoundingClientRect().height;
6103
- let Qe = ke;
6104
- ke > Ge && (Qe = Ge - (Ke ? mt : ea)), v ? te.current.style.height = `${ke - Math.max(We, 0)}px` : te.current.style.height = `${Math.max(Qe, Ge - mt)}px`;
6103
+ let Ie = ke;
6104
+ ke > Ge && (Ie = Ge - (Ke ? mt : ea)), v ? te.current.style.height = `${ke - Math.max(We, 0)}px` : te.current.style.height = `${Math.max(Ie, Ge - mt)}px`;
6105
6105
  } else yu() || (te.current.style.height = `${Je.current}px`);
6106
6106
  s && s.length > 0 && !ue.current ? te.current.style.bottom = "0px" : te.current.style.bottom = `${Math.max(We, 0)}px`;
6107
6107
  }
@@ -6122,7 +6122,7 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6122
6122
  }
6123
6123
  function M() {
6124
6124
  if (!te.current) return;
6125
- const ie = document.querySelector("[data-vaul-drawer-wrapper]"), we = pn(te.current, W);
6125
+ const ie = document.querySelector("[data-vaul-drawer-wrapper]"), we = mn(te.current, W);
6126
6126
  st(te.current, {
6127
6127
  transform: "translate3d(0, 0, 0)",
6128
6128
  transition: `transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`
@@ -6150,7 +6150,7 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6150
6150
  function ze(ie) {
6151
6151
  if (!D || !te.current) return;
6152
6152
  te.current.classList.remove(Fo), ae.current = !1, Q(!1), ne.current = /* @__PURE__ */ new Date();
6153
- const we = pn(te.current, W);
6153
+ const we = mn(te.current, W);
6154
6154
  if (!ie || !L(ie.target, !1) || !we || Number.isNaN(we) || I.current === null) return;
6155
6155
  const Te = ne.current.getTime() - I.current.getTime(), Xe = se.current - (nt(W) ? ie.pageY : ie.pageX), Ge = Math.abs(Xe) / Te;
6156
6156
  if (Ge > 0.05 && ($(!0), setTimeout(() => {
@@ -6190,12 +6190,12 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6190
6190
  P
6191
6191
  ]);
6192
6192
  function Ce(ie) {
6193
- const we = ie ? (window.innerWidth - mn) / window.innerWidth : 1, Te = ie ? -16 : 0;
6193
+ const we = ie ? (window.innerWidth - hn) / window.innerWidth : 1, Te = ie ? -16 : 0;
6194
6194
  pe.current && window.clearTimeout(pe.current), st(te.current, {
6195
6195
  transition: `transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,
6196
6196
  transform: nt(W) ? `scale(${we}) translate3d(0, ${Te}px, 0)` : `scale(${we}) translate3d(${Te}px, 0, 0)`
6197
6197
  }), !ie && te.current && (pe.current = setTimeout(() => {
6198
- const Xe = pn(te.current, W);
6198
+ const Xe = mn(te.current, W);
6199
6199
  st(te.current, {
6200
6200
  transition: "none",
6201
6201
  transform: nt(W) ? `translate3d(0, ${Xe}px, 0)` : `translate3d(${Xe}px, 0, 0)`
@@ -6204,14 +6204,14 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6204
6204
  }
6205
6205
  function He(ie, we) {
6206
6206
  if (we < 0) return;
6207
- const Te = (window.innerWidth - mn) / window.innerWidth, Xe = Te + we * (1 - Te), Ge = -16 + we * mn;
6207
+ const Te = (window.innerWidth - hn) / window.innerWidth, Xe = Te + we * (1 - Te), Ge = -16 + we * hn;
6208
6208
  st(te.current, {
6209
6209
  transform: nt(W) ? `scale(${Xe}) translate3d(0, ${Ge}px, 0)` : `scale(${Xe}) translate3d(${Ge}px, 0, 0)`,
6210
6210
  transition: "none"
6211
6211
  });
6212
6212
  }
6213
6213
  function ge(ie, we) {
6214
- const Te = nt(W) ? window.innerHeight : window.innerWidth, Xe = we ? (Te - mn) / Te : 1, Ge = we ? -16 : 0;
6214
+ const Te = nt(W) ? window.innerHeight : window.innerWidth, Xe = we ? (Te - hn) / Te : 1, Ge = we ? -16 : 0;
6215
6215
  we && st(te.current, {
6216
6216
  transition: `transform ${$e.DURATION}s cubic-bezier(${$e.EASE.join(",")})`,
6217
6217
  transform: nt(W) ? `scale(${Xe}) translate3d(0, ${Ge}px, 0)` : `scale(${Xe}) translate3d(${Ge}px, 0, 0)`
@@ -6264,7 +6264,7 @@ function Ku({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: o, sn
6264
6264
  }, r));
6265
6265
  }
6266
6266
  const A2 = /* @__PURE__ */ S.forwardRef(function({ ...e }, t) {
6267
- const { overlayRef: r, snapPoints: n, onRelease: o, shouldFade: s, isOpen: l, modal: i, shouldAnimate: c } = B1(), u = D2(t, r), f = n && n.length > 0;
6267
+ const { overlayRef: r, snapPoints: n, onRelease: o, shouldFade: s, isOpen: l, modal: i, shouldAnimate: c } = A1(), u = D2(t, r), f = n && n.length > 0;
6268
6268
  if (!i)
6269
6269
  return null;
6270
6270
  const d = S.useCallback((b) => o(b), [
@@ -6282,7 +6282,7 @@ const A2 = /* @__PURE__ */ S.forwardRef(function({ ...e }, t) {
6282
6282
  });
6283
6283
  A2.displayName = "Drawer.Overlay";
6284
6284
  const _2 = /* @__PURE__ */ S.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: r, ...n }, o) {
6285
- const { drawerRef: s, onPress: l, onRelease: i, onDrag: c, keyboardIsOpen: u, snapPointsOffset: f, activeSnapPointIndex: d, modal: b, isOpen: h, direction: x, snapPoints: v, container: N, handleOnly: q, shouldAnimate: w, autoFocus: y } = B1(), [W, V] = S.useState(!1), F = D2(o, s), O = S.useRef(null), C = S.useRef(null), R = S.useRef(!1), j = v && v.length > 0;
6285
+ const { drawerRef: s, onPress: l, onRelease: i, onDrag: c, keyboardIsOpen: u, snapPointsOffset: f, activeSnapPointIndex: d, modal: b, isOpen: h, direction: x, snapPoints: v, container: N, handleOnly: q, shouldAnimate: w, autoFocus: y } = A1(), [W, V] = S.useState(!1), F = D2(o, s), O = S.useRef(null), C = S.useRef(null), R = S.useRef(!1), j = v && v.length > 0;
6286
6286
  Zu();
6287
6287
  const H = (Z, E, P = 0) => {
6288
6288
  if (R.current) return !0;
@@ -6361,7 +6361,7 @@ const _2 = /* @__PURE__ */ S.forwardRef(function({ onPointerDownOutside: e, styl
6361
6361
  });
6362
6362
  _2.displayName = "Drawer.Content";
6363
6363
  const ku = 250, Yu = 120, $2 = /* @__PURE__ */ S.forwardRef(function({ preventCycle: e = !1, children: t, ...r }, n) {
6364
- const { closeDrawer: o, isDragging: s, snapPoints: l, activeSnapPoint: i, setActiveSnapPoint: c, dismissible: u, handleOnly: f, isOpen: d, onPress: b, onDrag: h } = B1(), x = S.useRef(null), v = S.useRef(!1);
6364
+ const { closeDrawer: o, isDragging: s, snapPoints: l, activeSnapPoint: i, setActiveSnapPoint: c, dismissible: u, handleOnly: f, isOpen: d, onPress: b, onDrag: h } = A1(), x = S.useRef(null), v = S.useRef(!1);
6365
6365
  function N() {
6366
6366
  if (v.current) {
6367
6367
  y();
@@ -6419,7 +6419,7 @@ const ku = 250, Yu = 120, $2 = /* @__PURE__ */ S.forwardRef(function({ preventCy
6419
6419
  });
6420
6420
  $2.displayName = "Drawer.Handle";
6421
6421
  function Ju(e) {
6422
- const t = B1(), { container: r = t.container, ...n } = e;
6422
+ const t = A1(), { container: r = t.container, ...n } = e;
6423
6423
  return /* @__PURE__ */ S.createElement(fu, {
6424
6424
  container: r,
6425
6425
  ...n
@@ -6772,7 +6772,7 @@ function ti(e, t) {
6772
6772
  function ld(e) {
6773
6773
  return e.filter((t) => t.tagName !== "A");
6774
6774
  }
6775
- const cd = ["top", "right", "bottom", "left"], Tr = Math.min, Tt = Math.max, Vn = Math.round, hn = Math.floor, tr = (e) => ({
6775
+ const cd = ["top", "right", "bottom", "left"], Tr = Math.min, Tt = Math.max, On = Math.round, vn = Math.floor, tr = (e) => ({
6776
6776
  x: e,
6777
6777
  y: e
6778
6778
  }), ud = {
@@ -6812,10 +6812,10 @@ function fd(e, t, r) {
6812
6812
  r === void 0 && (r = !1);
6813
6813
  const n = x1(e), o = Ja(e), s = Ya(o);
6814
6814
  let l = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
6815
- return t.reference[s] > t.floating[s] && (l = On(l)), [l, On(l)];
6815
+ return t.reference[s] > t.floating[s] && (l = Fn(l)), [l, Fn(l)];
6816
6816
  }
6817
6817
  function pd(e) {
6818
- const t = On(e);
6818
+ const t = Fn(e);
6819
6819
  return [na(e), t, na(t)];
6820
6820
  }
6821
6821
  function na(e) {
@@ -6839,7 +6839,7 @@ function hd(e, t, r, n) {
6839
6839
  let s = md(xr(e), r === "start", n);
6840
6840
  return o && (s = s.map((l) => l + "-" + o), t && (s = s.concat(s.map(na)))), s;
6841
6841
  }
6842
- function On(e) {
6842
+ function Fn(e) {
6843
6843
  return e.replace(/left|right|bottom|top/g, (t) => ud[t]);
6844
6844
  }
6845
6845
  function vd(e) {
@@ -6859,7 +6859,7 @@ function ul(e) {
6859
6859
  left: e
6860
6860
  };
6861
6861
  }
6862
- function Fn(e) {
6862
+ function Tn(e) {
6863
6863
  const {
6864
6864
  x: t,
6865
6865
  y: r,
@@ -7002,7 +7002,7 @@ async function Z1(e, t) {
7002
7002
  elementContext: d = "floating",
7003
7003
  altBoundary: b = !1,
7004
7004
  padding: h = 0
7005
- } = yr(t, e), x = ul(h), N = i[b ? d === "floating" ? "reference" : "floating" : d], q = Fn(await s.getClippingRect({
7005
+ } = yr(t, e), x = ul(h), N = i[b ? d === "floating" ? "reference" : "floating" : d], q = Tn(await s.getClippingRect({
7006
7006
  element: (r = await (s.isElement == null ? void 0 : s.isElement(N))) == null || r ? N : N.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
7007
7007
  boundary: u,
7008
7008
  rootBoundary: f,
@@ -7018,7 +7018,7 @@ async function Z1(e, t) {
7018
7018
  } : {
7019
7019
  x: 1,
7020
7020
  y: 1
7021
- }, V = Fn(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
7021
+ }, V = Tn(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
7022
7022
  elements: i,
7023
7023
  rect: w,
7024
7024
  offsetParent: y,
@@ -7092,7 +7092,7 @@ const yd = (e) => ({
7092
7092
  } = yr(e, t);
7093
7093
  if ((r = s.arrow) != null && r.alignmentOffset)
7094
7094
  return {};
7095
- const q = xr(o), w = vr(i), y = xr(i) === i, W = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), V = b || (y || !v ? [On(i)] : pd(i)), F = x !== "none";
7095
+ const q = xr(o), w = vr(i), y = xr(i) === i, W = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), V = b || (y || !v ? [Fn(i)] : pd(i)), F = x !== "none";
7096
7096
  !b && F && V.push(...hd(i, v, x, W));
7097
7097
  const O = [i, ...V], C = await Z1(t, N), R = [];
7098
7098
  let j = ((n = s.flip) == null ? void 0 : n.overflows) || [];
@@ -7419,7 +7419,7 @@ function nr(e) {
7419
7419
  function ai(e) {
7420
7420
  return !En() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof jt(e).ShadowRoot;
7421
7421
  }
7422
- function A1(e) {
7422
+ function _1(e) {
7423
7423
  const {
7424
7424
  overflow: t,
7425
7425
  overflowX: r,
@@ -7487,7 +7487,7 @@ function Sr(e) {
7487
7487
  }
7488
7488
  function fl(e) {
7489
7489
  const t = Sr(e);
7490
- return p1(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : nr(t) && A1(t) ? t : fl(t);
7490
+ return p1(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : nr(t) && _1(t) ? t : fl(t);
7491
7491
  }
7492
7492
  function H1(e, t, r) {
7493
7493
  var n;
@@ -7495,7 +7495,7 @@ function H1(e, t, r) {
7495
7495
  const o = fl(e), s = o === ((n = e.ownerDocument) == null ? void 0 : n.body), l = jt(o);
7496
7496
  if (s) {
7497
7497
  const i = oa(l);
7498
- return t.concat(l, l.visualViewport || [], A1(o) ? o : [], i && r ? H1(i) : []);
7498
+ return t.concat(l, l.visualViewport || [], _1(o) ? o : [], i && r ? H1(i) : []);
7499
7499
  }
7500
7500
  return t.concat(o, H1(o, [], r));
7501
7501
  }
@@ -7505,7 +7505,7 @@ function oa(e) {
7505
7505
  function pl(e) {
7506
7506
  const t = Et(e);
7507
7507
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
7508
- const o = nr(e), s = o ? e.offsetWidth : r, l = o ? e.offsetHeight : n, i = Vn(r) !== s || Vn(n) !== l;
7508
+ const o = nr(e), s = o ? e.offsetWidth : r, l = o ? e.offsetHeight : n, i = On(r) !== s || On(n) !== l;
7509
7509
  return i && (r = s, n = l), {
7510
7510
  width: r,
7511
7511
  height: n,
@@ -7515,7 +7515,7 @@ function pl(e) {
7515
7515
  function Ea(e) {
7516
7516
  return Dt(e) ? e : e.contextElement;
7517
7517
  }
7518
- function l1(e) {
7518
+ function c1(e) {
7519
7519
  const t = Ea(e);
7520
7520
  if (!nr(t))
7521
7521
  return tr(1);
@@ -7524,7 +7524,7 @@ function l1(e) {
7524
7524
  height: o,
7525
7525
  $: s
7526
7526
  } = pl(t);
7527
- let l = (s ? Vn(r.width) : r.width) / n, i = (s ? Vn(r.height) : r.height) / o;
7527
+ let l = (s ? On(r.width) : r.width) / n, i = (s ? On(r.height) : r.height) / o;
7528
7528
  return (!l || !Number.isFinite(l)) && (l = 1), (!i || !Number.isFinite(i)) && (i = 1), {
7529
7529
  x: l,
7530
7530
  y: i
@@ -7541,22 +7541,22 @@ function ml(e) {
7541
7541
  function Fd(e, t, r) {
7542
7542
  return t === void 0 && (t = !1), !r || t && r !== jt(e) ? !1 : t;
7543
7543
  }
7544
- function Er(e, t, r, n) {
7544
+ function Mr(e, t, r, n) {
7545
7545
  t === void 0 && (t = !1), r === void 0 && (r = !1);
7546
7546
  const o = e.getBoundingClientRect(), s = Ea(e);
7547
7547
  let l = tr(1);
7548
- t && (n ? Dt(n) && (l = l1(n)) : l = l1(e));
7548
+ t && (n ? Dt(n) && (l = c1(n)) : l = c1(e));
7549
7549
  const i = Fd(s, r, n) ? ml(s) : tr(0);
7550
7550
  let c = (o.left + i.x) / l.x, u = (o.top + i.y) / l.y, f = o.width / l.x, d = o.height / l.y;
7551
7551
  if (s) {
7552
7552
  const b = jt(s), h = n && Dt(n) ? jt(n) : n;
7553
7553
  let x = b, v = oa(x);
7554
7554
  for (; v && n && h !== x; ) {
7555
- const N = l1(v), q = v.getBoundingClientRect(), w = Et(v), y = q.left + (v.clientLeft + parseFloat(w.paddingLeft)) * N.x, W = q.top + (v.clientTop + parseFloat(w.paddingTop)) * N.y;
7555
+ const N = c1(v), q = v.getBoundingClientRect(), w = Et(v), y = q.left + (v.clientLeft + parseFloat(w.paddingLeft)) * N.x, W = q.top + (v.clientTop + parseFloat(w.paddingTop)) * N.y;
7556
7556
  c *= N.x, u *= N.y, f *= N.x, d *= N.y, c += y, u += W, x = jt(v), v = oa(x);
7557
7557
  }
7558
7558
  }
7559
- return Fn({
7559
+ return Tn({
7560
7560
  width: f,
7561
7561
  height: d,
7562
7562
  x: c,
@@ -7565,7 +7565,7 @@ function Er(e, t, r, n) {
7565
7565
  }
7566
7566
  function Ma(e, t) {
7567
7567
  const r = Qn(e).scrollLeft;
7568
- return t ? t.left + r : Er(ar(e)).left + r;
7568
+ return t ? t.left + r : Mr(ar(e)).left + r;
7569
7569
  }
7570
7570
  function hl(e, t, r) {
7571
7571
  r === void 0 && (r = !1);
@@ -7593,9 +7593,9 @@ function Td(e) {
7593
7593
  scrollTop: 0
7594
7594
  }, u = tr(1);
7595
7595
  const f = tr(0), d = nr(n);
7596
- if ((d || !d && !s) && ((N1(n) !== "body" || A1(l)) && (c = Qn(n)), nr(n))) {
7597
- const h = Er(n);
7598
- u = l1(n), f.x = h.x + n.clientLeft, f.y = h.y + n.clientTop;
7596
+ if ((d || !d && !s) && ((N1(n) !== "body" || _1(l)) && (c = Qn(n)), nr(n))) {
7597
+ const h = Mr(n);
7598
+ u = c1(n), f.x = h.x + n.clientLeft, f.y = h.y + n.clientTop;
7599
7599
  }
7600
7600
  const b = l && !d && !s ? hl(l, c, !0) : tr(0);
7601
7601
  return {
@@ -7635,7 +7635,7 @@ function jd(e, t) {
7635
7635
  };
7636
7636
  }
7637
7637
  function Cd(e, t) {
7638
- const r = Er(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, s = nr(e) ? l1(e) : tr(1), l = e.clientWidth * s.x, i = e.clientHeight * s.y, c = o * s.x, u = n * s.y;
7638
+ const r = Mr(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, s = nr(e) ? c1(e) : tr(1), l = e.clientWidth * s.x, i = e.clientHeight * s.y, c = o * s.x, u = n * s.y;
7639
7639
  return {
7640
7640
  width: l,
7641
7641
  height: i,
@@ -7660,7 +7660,7 @@ function si(e, t, r) {
7660
7660
  height: t.height
7661
7661
  };
7662
7662
  }
7663
- return Fn(n);
7663
+ return Tn(n);
7664
7664
  }
7665
7665
  function vl(e, t) {
7666
7666
  const r = Sr(e);
@@ -7675,7 +7675,7 @@ function Rd(e, t) {
7675
7675
  let l = s ? Sr(e) : e;
7676
7676
  for (; Dt(l) && !p1(l); ) {
7677
7677
  const i = Et(l), c = Ga(l);
7678
- !c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || A1(l) && !c && vl(e, l)) ? n = n.filter((f) => f !== l) : o = i, l = Sr(l);
7678
+ !c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _1(l) && !c && vl(e, l)) ? n = n.filter((f) => f !== l) : o = i, l = Sr(l);
7679
7679
  }
7680
7680
  return t.set(e, n), n;
7681
7681
  }
@@ -7708,7 +7708,7 @@ function Pd(e) {
7708
7708
  };
7709
7709
  }
7710
7710
  function Zd(e, t, r) {
7711
- const n = nr(t), o = ar(t), s = r === "fixed", l = Er(e, !0, s, t);
7711
+ const n = nr(t), o = ar(t), s = r === "fixed", l = Mr(e, !0, s, t);
7712
7712
  let i = {
7713
7713
  scrollLeft: 0,
7714
7714
  scrollTop: 0
@@ -7718,8 +7718,8 @@ function Zd(e, t, r) {
7718
7718
  c.x = Ma(o);
7719
7719
  }
7720
7720
  if (n || !n && !s)
7721
- if ((N1(t) !== "body" || A1(o)) && (i = Qn(t)), n) {
7722
- const h = Er(t, !0, s, t);
7721
+ if ((N1(t) !== "body" || _1(o)) && (i = Qn(t)), n) {
7722
+ const h = Mr(t, !0, s, t);
7723
7723
  c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
7724
7724
  } else o && u();
7725
7725
  s && !n && o && u();
@@ -7783,7 +7783,7 @@ const kd = {
7783
7783
  getElementRects: Hd,
7784
7784
  getClientRects: Sd,
7785
7785
  getDimensions: Pd,
7786
- getScale: l1,
7786
+ getScale: c1,
7787
7787
  isElement: Dt,
7788
7788
  isRTL: Kd
7789
7789
  };
@@ -7807,7 +7807,7 @@ function Yd(e, t) {
7807
7807
  } = u;
7808
7808
  if (i || t(), !b || !h)
7809
7809
  return;
7810
- const x = hn(d), v = hn(o.clientWidth - (f + b)), N = hn(o.clientHeight - (d + h)), q = hn(f), y = {
7810
+ const x = vn(d), v = vn(o.clientWidth - (f + b)), N = vn(o.clientHeight - (d + h)), q = vn(f), y = {
7811
7811
  rootMargin: -x + "px " + -v + "px " + -N + "px " + -q + "px",
7812
7812
  threshold: Tt(0, Tr(1, c)) || 1
7813
7813
  };
@@ -7859,10 +7859,10 @@ function xl(e, t, r, n) {
7859
7859
  (y = h) == null || y.observe(t);
7860
7860
  })), r();
7861
7861
  }), u && !c && h.observe(u), h.observe(t));
7862
- let x, v = c ? Er(e) : null;
7862
+ let x, v = c ? Mr(e) : null;
7863
7863
  c && N();
7864
7864
  function N() {
7865
- const q = Er(e);
7865
+ const q = Mr(e);
7866
7866
  v && !yl(v, q) && r(), v = q, x = requestAnimationFrame(N);
7867
7867
  }
7868
7868
  return r(), () => {
@@ -7885,8 +7885,8 @@ const Jd = wd, Gd = gd, Dd = xd, Ed = qd, Md = Nd, li = yd, Qd = Wd, Id = (e, t,
7885
7885
  platform: s
7886
7886
  });
7887
7887
  };
7888
- var gn = typeof document < "u" ? Mi : Se;
7889
- function Tn(e, t) {
7888
+ var Wn = typeof document < "u" ? Mi : Se;
7889
+ function Sn(e, t) {
7890
7890
  if (e === t)
7891
7891
  return !0;
7892
7892
  if (typeof e != typeof t)
@@ -7898,7 +7898,7 @@ function Tn(e, t) {
7898
7898
  if (Array.isArray(e)) {
7899
7899
  if (r = e.length, r !== t.length) return !1;
7900
7900
  for (n = r; n-- !== 0; )
7901
- if (!Tn(e[n], t[n]))
7901
+ if (!Sn(e[n], t[n]))
7902
7902
  return !1;
7903
7903
  return !0;
7904
7904
  }
@@ -7909,7 +7909,7 @@ function Tn(e, t) {
7909
7909
  return !1;
7910
7910
  for (n = r; n-- !== 0; ) {
7911
7911
  const s = o[n];
7912
- if (!(s === "_owner" && e.$$typeof) && !Tn(e[s], t[s]))
7912
+ if (!(s === "_owner" && e.$$typeof) && !Sn(e[s], t[s]))
7913
7913
  return !1;
7914
7914
  }
7915
7915
  return !0;
@@ -7925,7 +7925,7 @@ function ci(e, t) {
7925
7925
  }
7926
7926
  function jo(e) {
7927
7927
  const t = X.useRef(e);
7928
- return gn(() => {
7928
+ return Wn(() => {
7929
7929
  t.current = e;
7930
7930
  }), t;
7931
7931
  }
@@ -7951,7 +7951,7 @@ function Xl(e) {
7951
7951
  middlewareData: {},
7952
7952
  isPositioned: !1
7953
7953
  }), [b, h] = X.useState(n);
7954
- Tn(b, n) || h(n);
7954
+ Sn(b, n) || h(n);
7955
7955
  const [x, v] = X.useState(null), [N, q] = X.useState(null), w = X.useCallback((J) => {
7956
7956
  J !== F.current && (F.current = J, v(J));
7957
7957
  }, []), y = X.useCallback((J) => {
@@ -7973,21 +7973,21 @@ function Xl(e) {
7973
7973
  // setting it to `true` when `open === false` (must be specified).
7974
7974
  isPositioned: k.current !== !1
7975
7975
  };
7976
- E.current && !Tn(C.current, Q) && (C.current = Q, D1.flushSync(() => {
7976
+ E.current && !Sn(C.current, Q) && (C.current = Q, D1.flushSync(() => {
7977
7977
  d(Q);
7978
7978
  }));
7979
7979
  });
7980
7980
  }, [b, t, r, H, k]);
7981
- gn(() => {
7981
+ Wn(() => {
7982
7982
  u === !1 && C.current.isPositioned && (C.current.isPositioned = !1, d((J) => ({
7983
7983
  ...J,
7984
7984
  isPositioned: !1
7985
7985
  })));
7986
7986
  }, [u]);
7987
7987
  const E = X.useRef(!1);
7988
- gn(() => (E.current = !0, () => {
7988
+ Wn(() => (E.current = !0, () => {
7989
7989
  E.current = !1;
7990
- }), []), gn(() => {
7990
+ }), []), Wn(() => {
7991
7991
  if (W && (F.current = W), V && (O.current = V), W && V) {
7992
7992
  if (j.current)
7993
7993
  return j.current(W, V, Z);
@@ -8320,7 +8320,7 @@ var a9 = Cl, kl = zl, s9 = Pl, i9 = Hl, l9 = "Portal", Yl = X.forwardRef((e, t)
8320
8320
  Yl.displayName = l9;
8321
8321
  var In = "Popover", [Jl, Dm] = or(In, [
8322
8322
  Ul
8323
- ]), _1 = Ul(), [c9, Rr] = Jl(In), Gl = (e) => {
8323
+ ]), $1 = Ul(), [c9, Rr] = Jl(In), Gl = (e) => {
8324
8324
  const {
8325
8325
  __scopePopover: t,
8326
8326
  children: r,
@@ -8328,7 +8328,7 @@ var In = "Popover", [Jl, Dm] = or(In, [
8328
8328
  defaultOpen: o,
8329
8329
  onOpenChange: s,
8330
8330
  modal: l = !1
8331
- } = e, i = _1(t), c = X.useRef(null), [u, f] = X.useState(!1), [d, b] = Fr({
8331
+ } = e, i = $1(t), c = X.useRef(null), [u, f] = X.useState(!1), [d, b] = Fr({
8332
8332
  prop: n,
8333
8333
  defaultProp: o ?? !1,
8334
8334
  onChange: s,
@@ -8354,14 +8354,14 @@ var In = "Popover", [Jl, Dm] = or(In, [
8354
8354
  Gl.displayName = In;
8355
8355
  var Dl = "PopoverAnchor", u9 = X.forwardRef(
8356
8356
  (e, t) => {
8357
- const { __scopePopover: r, ...n } = e, o = Rr(Dl, r), s = _1(r), { onCustomAnchorAdd: l, onCustomAnchorRemove: i } = o;
8357
+ const { __scopePopover: r, ...n } = e, o = Rr(Dl, r), s = $1(r), { onCustomAnchorAdd: l, onCustomAnchorRemove: i } = o;
8358
8358
  return X.useEffect(() => (l(), () => i()), [l, i]), /* @__PURE__ */ a.jsx(kl, { ...s, ...n, ref: t });
8359
8359
  }
8360
8360
  );
8361
8361
  u9.displayName = Dl;
8362
8362
  var El = "PopoverTrigger", Ml = X.forwardRef(
8363
8363
  (e, t) => {
8364
- const { __scopePopover: r, ...n } = e, o = Rr(El, r), s = _1(r), l = Ve(t, o.triggerRef), i = /* @__PURE__ */ a.jsx(
8364
+ const { __scopePopover: r, ...n } = e, o = Rr(El, r), s = $1(r), l = Ve(t, o.triggerRef), i = /* @__PURE__ */ a.jsx(
8365
8365
  Lt.button,
8366
8366
  {
8367
8367
  type: "button",
@@ -8461,7 +8461,7 @@ var p9 = /* @__PURE__ */ z1("PopoverContent.RemoveScroll"), m9 = X.forwardRef(
8461
8461
  onFocusOutside: u,
8462
8462
  onInteractOutside: f,
8463
8463
  ...d
8464
- } = e, b = Rr(m1, r), h = _1(r);
8464
+ } = e, b = Rr(m1, r), h = $1(r);
8465
8465
  return Ra(), /* @__PURE__ */ a.jsx(
8466
8466
  ll,
8467
8467
  {
@@ -8521,7 +8521,7 @@ var p9 = /* @__PURE__ */ z1("PopoverContent.RemoveScroll"), m9 = X.forwardRef(
8521
8521
  v9.displayName = Al;
8522
8522
  var b9 = "PopoverArrow", y9 = X.forwardRef(
8523
8523
  (e, t) => {
8524
- const { __scopePopover: r, ...n } = e, o = _1(r);
8524
+ const { __scopePopover: r, ...n } = e, o = $1(r);
8525
8525
  return /* @__PURE__ */ a.jsx(i9, { ...o, ...n, ref: t });
8526
8526
  }
8527
8527
  );
@@ -8819,7 +8819,7 @@ const Nt = new C9(), R9 = (e, t) => {
8819
8819
  getToasts: H9
8820
8820
  });
8821
8821
  W9("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
8822
- function vn(e) {
8822
+ function bn(e) {
8823
8823
  return e.label !== void 0;
8824
8824
  }
8825
8825
  const K9 = 3, k9 = "24px", Y9 = "16px", ui = 4e3, J9 = 356, G9 = 14, D9 = 45, E9 = 200;
@@ -8994,8 +8994,8 @@ const Q9 = (e) => {
8994
8994
  var ce, We, De;
8995
8995
  if (pe || !Fe) return;
8996
8996
  Y.current = null;
8997
- const Ke = Number(((ce = je.current) == null ? void 0 : ce.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), mt = Number(((We = je.current) == null ? void 0 : We.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ke = (/* @__PURE__ */ new Date()).getTime() - ((De = ut.current) == null ? void 0 : De.getTime()), Qe = D === "x" ? Ke : mt, Ct = Math.abs(Qe) / ke;
8998
- if (Math.abs(Qe) >= D9 || Ct > 0.11) {
8997
+ const Ke = Number(((ce = je.current) == null ? void 0 : ce.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), mt = Number(((We = je.current) == null ? void 0 : We.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ke = (/* @__PURE__ */ new Date()).getTime() - ((De = ut.current) == null ? void 0 : De.getTime()), Ie = D === "x" ? Ke : mt, Ct = Math.abs(Ie) / ke;
8998
+ if (Math.abs(Ie) >= D9 || Ct > 0.11) {
8999
8999
  te(L.current), d.onDismiss == null || d.onDismiss.call(d, d), $(D === "x" ? Ke > 0 ? "right" : "left" : mt > 0 ? "down" : "up"), ie(), se(!0);
9000
9000
  return;
9001
9001
  } else {
@@ -9007,29 +9007,29 @@ const Q9 = (e) => {
9007
9007
  onPointerMove: (ce) => {
9008
9008
  var We, De, Ke;
9009
9009
  if (!Y.current || !Fe || ((We = window.getSelection()) == null ? void 0 : We.toString().length) > 0) return;
9010
- const ke = ce.clientY - Y.current.y, Qe = ce.clientX - Y.current.x;
9010
+ const ke = ce.clientY - Y.current.y, Ie = ce.clientX - Y.current.x;
9011
9011
  var Ct;
9012
9012
  const ct = (Ct = e.swipeDirections) != null ? Ct : M9(Z);
9013
- !D && (Math.abs(Qe) > 1 || Math.abs(ke) > 1) && Q(Math.abs(Qe) > Math.abs(ke) ? "x" : "y");
9013
+ !D && (Math.abs(Ie) > 1 || Math.abs(ke) > 1) && Q(Math.abs(Ie) > Math.abs(ke) ? "x" : "y");
9014
9014
  let Ft = {
9015
9015
  x: 0,
9016
9016
  y: 0
9017
9017
  };
9018
- const rn = (sr) => 1 / (1.5 + Math.abs(sr) / 20);
9018
+ const nn = (sr) => 1 / (1.5 + Math.abs(sr) / 20);
9019
9019
  if (D === "y") {
9020
9020
  if (ct.includes("top") || ct.includes("bottom"))
9021
9021
  if (ct.includes("top") && ke < 0 || ct.includes("bottom") && ke > 0)
9022
9022
  Ft.y = ke;
9023
9023
  else {
9024
- const sr = ke * rn(ke);
9024
+ const sr = ke * nn(ke);
9025
9025
  Ft.y = Math.abs(sr) < Math.abs(ke) ? sr : ke;
9026
9026
  }
9027
9027
  } else if (D === "x" && (ct.includes("left") || ct.includes("right")))
9028
- if (ct.includes("left") && Qe < 0 || ct.includes("right") && Qe > 0)
9029
- Ft.x = Qe;
9028
+ if (ct.includes("left") && Ie < 0 || ct.includes("right") && Ie > 0)
9029
+ Ft.x = Ie;
9030
9030
  else {
9031
- const sr = Qe * rn(Qe);
9032
- Ft.x = Math.abs(sr) < Math.abs(Qe) ? sr : Qe;
9031
+ const sr = Ie * nn(Ie);
9032
+ Ft.x = Math.abs(sr) < Math.abs(Ie) ? sr : Ie;
9033
9033
  }
9034
9034
  (Math.abs(Ft.x) > 0 || Math.abs(Ft.y) > 0) && le(!0), (De = je.current) == null || De.style.setProperty("--swipe-amount-x", `${Ft.x}px`), (Ke = je.current) == null || Ke.style.setProperty("--swipe-amount-y", `${Ft.y}px`);
9035
9035
  }
@@ -9054,20 +9054,20 @@ const Q9 = (e) => {
9054
9054
  }, d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title), d.description ? /* @__PURE__ */ S.createElement("div", {
9055
9055
  "data-description": "",
9056
9056
  className: At(H, Ze, U == null ? void 0 : U.description, d == null || (i = d.classNames) == null ? void 0 : i.description)
9057
- }, typeof d.description == "function" ? d.description() : d.description) : null), /* @__PURE__ */ S.isValidElement(d.cancel) ? d.cancel : d.cancel && vn(d.cancel) ? /* @__PURE__ */ S.createElement("button", {
9057
+ }, typeof d.description == "function" ? d.description() : d.description) : null), /* @__PURE__ */ S.isValidElement(d.cancel) ? d.cancel : d.cancel && bn(d.cancel) ? /* @__PURE__ */ S.createElement("button", {
9058
9058
  "data-button": !0,
9059
9059
  "data-cancel": !0,
9060
9060
  style: d.cancelButtonStyle || C,
9061
9061
  onClick: (ce) => {
9062
- vn(d.cancel) && Fe && (d.cancel.onClick == null || d.cancel.onClick.call(d.cancel, ce), ie());
9062
+ bn(d.cancel) && Fe && (d.cancel.onClick == null || d.cancel.onClick.call(d.cancel, ce), ie());
9063
9063
  },
9064
9064
  className: At(U == null ? void 0 : U.cancelButton, d == null || (c = d.classNames) == null ? void 0 : c.cancelButton)
9065
- }, d.cancel.label) : null, /* @__PURE__ */ S.isValidElement(d.action) ? d.action : d.action && vn(d.action) ? /* @__PURE__ */ S.createElement("button", {
9065
+ }, d.cancel.label) : null, /* @__PURE__ */ S.isValidElement(d.action) ? d.action : d.action && bn(d.action) ? /* @__PURE__ */ S.createElement("button", {
9066
9066
  "data-button": !0,
9067
9067
  "data-action": !0,
9068
9068
  style: d.actionButtonStyle || R,
9069
9069
  onClick: (ce) => {
9070
- vn(d.action) && (d.action.onClick == null || d.action.onClick.call(d.action, ce), !ce.defaultPrevented && ie());
9070
+ bn(d.action) && (d.action.onClick == null || d.action.onClick.call(d.action, ce), !ce.defaultPrevented && ie());
9071
9071
  },
9072
9072
  className: At(U == null ? void 0 : U.actionButton, d == null || (u = d.classNames) == null ? void 0 : u.actionButton)
9073
9073
  }, d.action.label) : null);
@@ -9322,16 +9322,16 @@ function pi({ className: e }) {
9322
9322
  /* @__PURE__ */ a.jsx(t3, { className: de("gw-size-20", n && Gr) }),
9323
9323
  /* @__PURE__ */ a.jsxs("h6", { className: "gw-text-center", children: [
9324
9324
  "Switch to ",
9325
- Nn.id === Or.id ? "ApeChain" : Nn.name,
9325
+ Xn.id === Or.id ? "ApeChain" : Xn.name,
9326
9326
  /* @__PURE__ */ a.jsx("br", {}),
9327
9327
  " network to continue"
9328
9328
  ] }),
9329
9329
  /* @__PURE__ */ a.jsx(
9330
- Ae,
9330
+ Qe,
9331
9331
  {
9332
9332
  variant: "tertiary",
9333
9333
  className: "!gw-px-10 gw-mt-4",
9334
- onClick: async () => await t({ chainId: Nn.id }),
9334
+ onClick: async () => await t({ chainId: Xn.id }),
9335
9335
  children: "Switch"
9336
9336
  }
9337
9337
  )
@@ -9608,15 +9608,15 @@ function n3(e, t) {
9608
9608
  let r = e;
9609
9609
  return r.match(/^0+[.,]/) && (r = r.replace(/^0+/, "0")), r.match(/^0[0-9]+/) && (r = r.replace(/^0+/, "")), r = hi(r, ".", t), r = hi(r, ",", t), r;
9610
9610
  }
9611
- var bn = {}, vi;
9611
+ var yn = {}, vi;
9612
9612
  function l8() {
9613
- if (vi) return bn;
9614
- vi = 1, Object.defineProperty(bn, "__esModule", { value: !0 });
9613
+ if (vi) return yn;
9614
+ vi = 1, Object.defineProperty(yn, "__esModule", { value: !0 });
9615
9615
  var e = /^(0x[a-zA-Z0-9]{4})[a-zA-Z0-9]+([a-zA-Z0-9]{4})$/, t = function(r) {
9616
9616
  var n = r.match(e);
9617
9617
  return n ? n[1] + "…" + n[2] : r;
9618
9618
  };
9619
- return bn.default = t, bn;
9619
+ return yn.default = t, yn;
9620
9620
  }
9621
9621
  var c8 = l8();
9622
9622
  const Wt = /* @__PURE__ */ f5(c8);
@@ -9670,7 +9670,7 @@ const f8 = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
9670
9670
  ]
9671
9671
  }
9672
9672
  );
9673
- }, Mr = S.memo(f8), p8 = ({ fullScreenHeader: e, onProfileClick: t }) => {
9673
+ }, Qr = S.memo(f8), p8 = ({ fullScreenHeader: e, onProfileClick: t }) => {
9674
9674
  const { user: r } = at(), n = Mt(), o = b1.get(n) || !1;
9675
9675
  return e && (e != null && e.title) ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-4 gw-justify-between gw-w-full", children: [
9676
9676
  /* @__PURE__ */ a.jsx("div", { className: "gw-size-12", children: e != null && e.onBackClick ? /* @__PURE__ */ a.jsx(
@@ -9687,7 +9687,7 @@ const f8 = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
9687
9687
  {
9688
9688
  className: "gw-size-full gw-inline-flex gw-justify-center gw-items-center",
9689
9689
  onClick: e == null ? void 0 : e.onCloseClick,
9690
- children: /* @__PURE__ */ a.jsx(I1, { className: "gw-size-6" })
9690
+ children: /* @__PURE__ */ a.jsx(B1, { className: "gw-size-6" })
9691
9691
  }
9692
9692
  ) : null })
9693
9693
  ] }) }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-items-center gw-space-x-4 gw-justify-between gw-w-full", children: [
@@ -9696,7 +9696,7 @@ const f8 = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
9696
9696
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-flex-col", children: [
9697
9697
  /* @__PURE__ */ a.jsx("button", { onClick: t, disabled: !(r != null && r.hasProfile), children: /* @__PURE__ */ a.jsx("div", { className: "gw-mt-1.5 gw-typography-subtitle1 gw-text-left", children: r == null ? void 0 : r.name }) }),
9698
9698
  /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
9699
- Mr,
9699
+ Qr,
9700
9700
  {
9701
9701
  textClassName: "gw-max-w-56 gw-break-all gw-typography-body2",
9702
9702
  text: Wt(r.evmWallet),
@@ -10290,7 +10290,7 @@ const G8 = k8, D8 = Y8, E8 = J8, O3 = X.forwardRef(({ className: e, sideOffset:
10290
10290
  }
10291
10291
  ));
10292
10292
  O3.displayName = V3.displayName;
10293
- function Sn({
10293
+ function Un({
10294
10294
  contentClassName: e,
10295
10295
  triggerClassName: t,
10296
10296
  description: r,
@@ -10371,7 +10371,7 @@ const M8 = ({ onEnd: e, onShowActivity: t, id: r }) => /* @__PURE__ */ a.jsx(
10371
10371
  {
10372
10372
  className: "gw-size-full gw-inline-flex gw-justify-center gw-items-center",
10373
10373
  onClick: e,
10374
- children: /* @__PURE__ */ a.jsx(I1, { className: "gw-size-6" })
10374
+ children: /* @__PURE__ */ a.jsx(B1, { className: "gw-size-6" })
10375
10375
  }
10376
10376
  ) }) }),
10377
10377
  /* @__PURE__ */ a.jsx("div", { className: "gw-w-full gw-p-4 gw-relative gw-z-10 gw-flex-1 gw-flex-col gw-flex gw-justify-end", children: /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
@@ -10386,7 +10386,7 @@ Please try again.` }),
10386
10386
  /* @__PURE__ */ a.jsxs("div", { className: "gw-my-10 gw-flex gw-p-4 gw-items-center gw-w-full gw-justify-center gw-space-x-2 gw-typography-caption", children: [
10387
10387
  /* @__PURE__ */ a.jsx("span", { children: "Transaction ID: " }),
10388
10388
  /* @__PURE__ */ a.jsx(
10389
- Mr,
10389
+ Qr,
10390
10390
  {
10391
10391
  className: "!gw-text-foreground",
10392
10392
  textToCopy: r,
@@ -10394,7 +10394,7 @@ Please try again.` }),
10394
10394
  }
10395
10395
  )
10396
10396
  ] }),
10397
- /* @__PURE__ */ a.jsx(Ae, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
10397
+ /* @__PURE__ */ a.jsx(Qe, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
10398
10398
  ] }) })
10399
10399
  ] })
10400
10400
  }
@@ -10459,7 +10459,7 @@ const I8 = ({ onBack: e, id: t, value: r }) => {
10459
10459
  /* @__PURE__ */ a.jsx("div", { className: "gw-mt-4 gw-flex gw-justify-center gw-items-center", children: /* @__PURE__ */ a.jsxs("div", { className: "gw-rounded-full gw-flex gw-flex-col gw-items-center gw-justify-center gw-p-10 gw-relative gw-size-64 gw-overflow-hidden gw-bg-white dark:gw-bg-black", children: [
10460
10460
  /* @__PURE__ */ a.jsx(T3, { className: "gw-absolute gw-inset-0 gw-animate-spin gw-size-64 gw-z-0" }),
10461
10461
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-items-center gw-justify-center gw-relative gw-z-10", children: [
10462
- /* @__PURE__ */ a.jsx(d1, { className: "gw-size-8" }),
10462
+ /* @__PURE__ */ a.jsx(f1, { className: "gw-size-8" }),
10463
10463
  /* @__PURE__ */ a.jsxs("div", { className: "gw-typography-h6 gw-ml-3", children: [
10464
10464
  /* @__PURE__ */ a.jsx("span", { children: r }),
10465
10465
  " ",
@@ -10483,9 +10483,9 @@ const I8 = ({ onBack: e, id: t, value: r }) => {
10483
10483
  footer: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10484
10484
  /* @__PURE__ */ a.jsxs("span", { className: "gw-inline-flex gw-items-center gw-space-x-2 gw-typography-caption gw-text-brand-gray-500", children: [
10485
10485
  /* @__PURE__ */ a.jsx("span", { children: "Transaction ID: " }),
10486
- /* @__PURE__ */ a.jsx(Mr, { textToCopy: t, text: t.slice(0, 20) + "..." })
10486
+ /* @__PURE__ */ a.jsx(Qr, { textToCopy: t, text: t.slice(0, 20) + "..." })
10487
10487
  ] }),
10488
- /* @__PURE__ */ a.jsx(Ae, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
10488
+ /* @__PURE__ */ a.jsx(Qe, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
10489
10489
  ] }),
10490
10490
  footerCols: !0,
10491
10491
  mainFooter: !1
@@ -10565,7 +10565,7 @@ const A8 = ({ onEnd: e, onShowActivity: t, value: r }) => {
10565
10565
  {
10566
10566
  className: "gw-size-full gw-inline-flex gw-justify-center gw-items-center",
10567
10567
  onClick: e,
10568
- children: /* @__PURE__ */ a.jsx(I1, { className: "gw-size-6" })
10568
+ children: /* @__PURE__ */ a.jsx(B1, { className: "gw-size-6" })
10569
10569
  }
10570
10570
  ) }) }),
10571
10571
  /* @__PURE__ */ a.jsx("div", { className: "gw-w-full gw-p-4 gw-relative gw-z-10 gw-flex-1 gw-flex-col gw-flex gw-justify-end", children: /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
@@ -10574,7 +10574,7 @@ const A8 = ({ onEnd: e, onShowActivity: t, value: r }) => {
10574
10574
  /* @__PURE__ */ a.jsx("span", { className: "gw-mt-3 gw-text-center gw-whitespace-pre-wrap !gw-leading-tight", children: `Your account has been
10575
10575
  successfully funded!` }),
10576
10576
  /* @__PURE__ */ a.jsxs("div", { className: "gw-my-10 gw-rounded-2xl gw-bg-background gw-drop-shadow-buttonLg gw-flex gw-p-4 gw-items-center gw-space-x-3 gw-w-full gw-justify-center", children: [
10577
- /* @__PURE__ */ a.jsx(d1, { className: "gw-size-6 gw-flex-shrink-0" }),
10577
+ /* @__PURE__ */ a.jsx(f1, { className: "gw-size-6 gw-flex-shrink-0" }),
10578
10578
  /* @__PURE__ */ a.jsx("div", { className: "gw-typography-body2", children: /* @__PURE__ */ a.jsxs("span", { children: [
10579
10579
  r,
10580
10580
  " APE"
@@ -10586,7 +10586,7 @@ successfully funded!` }),
10586
10586
  /* @__PURE__ */ a.jsx(Zt, { className: "gw-size-6 gw-flex-shrink-0" }),
10587
10587
  /* @__PURE__ */ a.jsx("span", { className: "gw-break-all gw-typography-body2", children: Wt(n.evmWallet) })
10588
10588
  ] }),
10589
- /* @__PURE__ */ a.jsx(Ae, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
10589
+ /* @__PURE__ */ a.jsx(Qe, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
10590
10590
  ] }) })
10591
10591
  ] })
10592
10592
  }
@@ -10685,7 +10685,7 @@ function e4({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
10685
10685
  /* @__PURE__ */ a.jsx("div", { className: "gw-mt-2 gw-text-brand-gray-500 gw-text-center", children: b || `${dt(i ?? 0, s)} min - ${dt(c ?? 999999, s)} max` }),
10686
10686
  !R && /* @__PURE__ */ a.jsxs("div", { className: "gw-mt-4 gw-flex gw-space-x-2 gw-text-brand-gray-500 gw-items-center gw-justify-center", children: [
10687
10687
  /* @__PURE__ */ a.jsx("span", { children: "You will receive APE" }),
10688
- /* @__PURE__ */ a.jsx(d1, { className: "gw-size-6" })
10688
+ /* @__PURE__ */ a.jsx(f1, { className: "gw-size-6" })
10689
10689
  ] })
10690
10690
  ] })
10691
10691
  ]
@@ -10696,7 +10696,7 @@ function e4({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
10696
10696
  /* @__PURE__ */ a.jsx("div", { className: "gw-typography-body2 gw-text-brand-gray-500", children: "Receive" }),
10697
10697
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-1", children: [
10698
10698
  /* @__PURE__ */ a.jsx("div", { className: "gw-typography-h3-nr", children: v ? /* @__PURE__ */ a.jsx(vt, { className: "gw-w-20 gw-h-10" }) : h == null ? void 0 : h.out_tokens_amount }),
10699
- /* @__PURE__ */ a.jsx(d1, { className: "gw-size-10 gw-rounded-full" })
10699
+ /* @__PURE__ */ a.jsx(f1, { className: "gw-size-10 gw-rounded-full" })
10700
10700
  ] }),
10701
10701
  /* @__PURE__ */ a.jsxs("div", { className: "gw-typography-caption gw-text-brand-gray-500 gw-mt-1 gw-text-center gw-flex gw-items-center gw-justify-center gw-gap-0.5", children: [
10702
10702
  /* @__PURE__ */ a.jsx("span", { children: "1 APE = " }),
@@ -10709,7 +10709,7 @@ function e4({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
10709
10709
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-justify-between gw-py-4 gw-border-b gw-border-muted", children: [
10710
10710
  /* @__PURE__ */ a.jsx("span", { className: "gw-typography-caption", children: "How this transaction works" }),
10711
10711
  /* @__PURE__ */ a.jsx(
10712
- Sn,
10712
+ Un,
10713
10713
  {
10714
10714
  stopPropagation: !0,
10715
10715
  description: /* @__PURE__ */ a.jsxs("div", { className: "gw-p-3 gw-max-w-xs", children: [
@@ -10773,7 +10773,7 @@ function e4({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
10773
10773
  ] }),
10774
10774
  footer: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10775
10775
  /* @__PURE__ */ a.jsx(
10776
- Ae,
10776
+ Qe,
10777
10777
  {
10778
10778
  variant: "tertiary",
10779
10779
  className: "gw-w-full gw-mb-3",
@@ -10784,7 +10784,7 @@ function e4({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
10784
10784
  "Continue to Coinbase ",
10785
10785
  /* @__PURE__ */ a.jsx(_9, { className: "gw-size-4" })
10786
10786
  ] }) : "Continue",
10787
- (v && R || F) && /* @__PURE__ */ a.jsx(kn, { className: "gw-size-4 gw-animate-spin" })
10787
+ (v && R || F) && /* @__PURE__ */ a.jsx(I1, { className: "gw-size-4 gw-animate-spin" })
10788
10788
  ] }) : y || "Onramp disabled"
10789
10789
  }
10790
10790
  ),
@@ -11404,9 +11404,9 @@ var [H3, w4] = no(Bt), [K3, g4] = no(
11404
11404
  }
11405
11405
  );
11406
11406
  }
11407
- ), Un = "AccordionItem", [V4, ss] = no(Un), Y3 = S.forwardRef(
11407
+ ), jn = "AccordionItem", [V4, ss] = no(jn), Y3 = S.forwardRef(
11408
11408
  (e, t) => {
11409
- const { __scopeAccordion: r, value: n, ...o } = e, s = oo(Un, r), l = w4(Un, r), i = as(r), c = er(), u = n && l.value.includes(n) || !1, f = s.disabled || e.disabled;
11409
+ const { __scopeAccordion: r, value: n, ...o } = e, s = oo(jn, r), l = w4(jn, r), i = as(r), c = er(), u = n && l.value.includes(n) || !1, f = s.disabled || e.disabled;
11410
11410
  return /* @__PURE__ */ a.jsx(
11411
11411
  V4,
11412
11412
  {
@@ -11433,7 +11433,7 @@ var [H3, w4] = no(Bt), [K3, g4] = no(
11433
11433
  );
11434
11434
  }
11435
11435
  );
11436
- Y3.displayName = Un;
11436
+ Y3.displayName = jn;
11437
11437
  var J3 = "AccordionHeader", G3 = S.forwardRef(
11438
11438
  (e, t) => {
11439
11439
  const { __scopeAccordion: r, ...n } = e, o = oo(Bt, r), s = ss(J3, r);
@@ -11554,7 +11554,7 @@ function U4({ expandFirst: e = !1 }) {
11554
11554
  }
11555
11555
  ),
11556
11556
  /* @__PURE__ */ a.jsx(
11557
- Sn,
11557
+ Un,
11558
11558
  {
11559
11559
  description: "Activity keeps track of your transactions and their status. Click any transaction to see details.",
11560
11560
  stopPropagation: !0,
@@ -11608,7 +11608,7 @@ function U4({ expandFirst: e = !1 }) {
11608
11608
  /* @__PURE__ */ a.jsx("span", { children: "Transaction ID: " }),
11609
11609
  " ",
11610
11610
  /* @__PURE__ */ a.jsx(
11611
- Mr,
11611
+ Qr,
11612
11612
  {
11613
11613
  textToCopy: x == null ? void 0 : x.id,
11614
11614
  text: (x == null ? void 0 : x.id.slice(0, 20)) + "..."
@@ -11676,20 +11676,20 @@ function C4({ onAddFunds: e, onReceive: t, onSend: r }) {
11676
11676
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-col", children: [
11677
11677
  /* @__PURE__ */ a.jsx("span", { className: "gw-typography-h1-nr", children: (i == null ? void 0 : i.value) === void 0 ? /* @__PURE__ */ a.jsx(vt, { className: "gw-w-20 gw-h-10" }) : `${i == null ? void 0 : i.value}` }),
11678
11678
  /* @__PURE__ */ a.jsxs("div", { className: "gw-inline-flex gw-items-center gw-space-x-2 gw-mt-2", children: [
11679
- /* @__PURE__ */ a.jsx(d1, { className: de("gw-size-6", l && Gr) }),
11679
+ /* @__PURE__ */ a.jsx(f1, { className: de("gw-size-6", l && Gr) }),
11680
11680
  /* @__PURE__ */ a.jsx("span", { className: "gw-typography-subtitle1 gw-text-brand-gray-600", children: (i == null ? void 0 : i.symbol) || "" })
11681
11681
  ] })
11682
11682
  ] }),
11683
11683
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-space-x-3 gw-w-fit gw-pb-2", children: [
11684
- /* @__PURE__ */ a.jsx(Ae, { shadow: !0, variant: "cube", size: "cube", onClick: e, children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
11684
+ /* @__PURE__ */ a.jsx(Qe, { shadow: !0, variant: "cube", size: "cube", onClick: e, children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
11685
11685
  /* @__PURE__ */ a.jsx(ec, {}),
11686
11686
  /* @__PURE__ */ a.jsx("span", { children: "Fund" })
11687
11687
  ] }) }),
11688
- /* @__PURE__ */ a.jsx(Ae, { shadow: !0, variant: "cube", size: "cube", onClick: t, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
11688
+ /* @__PURE__ */ a.jsx(Qe, { shadow: !0, variant: "cube", size: "cube", onClick: t, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
11689
11689
  /* @__PURE__ */ a.jsx(j4, {}),
11690
11690
  /* @__PURE__ */ a.jsx("span", { children: "Receive" })
11691
11691
  ] }) }),
11692
- /* @__PURE__ */ a.jsx(Ae, { shadow: !0, variant: "cube", size: "cube", onClick: r, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
11692
+ /* @__PURE__ */ a.jsx(Qe, { shadow: !0, variant: "cube", size: "cube", onClick: r, disabled: !(n != null && n.evmWallet), children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-flex-col gw-items-center gw-justify-center gw-space-y-2 gw-mt-2", children: [
11693
11693
  /* @__PURE__ */ a.jsx(O0, {}),
11694
11694
  /* @__PURE__ */ a.jsx("span", { children: "Send" })
11695
11695
  ] }) })
@@ -11704,7 +11704,7 @@ function R4() {
11704
11704
  /* @__PURE__ */ a.jsxs("div", { className: "gw-mb-6 gw-flex gw-items-center gw-justify-between", children: [
11705
11705
  /* @__PURE__ */ a.jsx("h6", { children: "Wallets" }),
11706
11706
  /* @__PURE__ */ a.jsx(
11707
- Sn,
11707
+ Un,
11708
11708
  {
11709
11709
  stopPropagation: !0,
11710
11710
  description: "Your standard crypto wallet for storing assets, sending, and receiving funds.",
@@ -11719,7 +11719,7 @@ function R4() {
11719
11719
  /* @__PURE__ */ a.jsx("div", { className: "gw-text-brand-gray-500 gw-typography-caption", children: Wt(e.evmWallet) })
11720
11720
  ] }) }),
11721
11721
  /* @__PURE__ */ a.jsx(
11722
- Mr,
11722
+ Qr,
11723
11723
  {
11724
11724
  text: "",
11725
11725
  textToCopy: e.evmWallet,
@@ -11732,7 +11732,7 @@ function R4() {
11732
11732
  /* @__PURE__ */ a.jsxs("div", { className: "gw-mb-6 gw-flex gw-items-center gw-justify-between", children: [
11733
11733
  /* @__PURE__ */ a.jsx("span", { children: "Linked Wallets" }),
11734
11734
  /* @__PURE__ */ a.jsx(
11735
- Sn,
11735
+ Un,
11736
11736
  {
11737
11737
  stopPropagation: !0,
11738
11738
  description: "Prove token ownership across multiple wallets, access gated content, and manage assets without transfers.",
@@ -11749,7 +11749,7 @@ function R4() {
11749
11749
  /* @__PURE__ */ a.jsx("div", { className: "gw-text-brand-gray-500 gw-typography-caption", children: Wt(l.address) })
11750
11750
  ] }) }) }),
11751
11751
  /* @__PURE__ */ a.jsx(
11752
- Mr,
11752
+ Qr,
11753
11753
  {
11754
11754
  text: "",
11755
11755
  textToCopy: l.address,
@@ -11767,7 +11767,7 @@ function R4() {
11767
11767
  ] })
11768
11768
  ] }),
11769
11769
  /* @__PURE__ */ a.jsxs(
11770
- Ae,
11770
+ Qe,
11771
11771
  {
11772
11772
  className: "gw-w-full gw-mt-5",
11773
11773
  onClick: () => {
@@ -12080,7 +12080,7 @@ function K4({ onBack: e }) {
12080
12080
  content: /* @__PURE__ */ a.jsxs("div", { className: "gw-w-full gw-flex gw-flex-col gw-h-full", children: [
12081
12081
  /* @__PURE__ */ a.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: [
12082
12082
  /* @__PURE__ */ a.jsxs(
12083
- Ae,
12083
+ Qe,
12084
12084
  {
12085
12085
  variant: "tertiary",
12086
12086
  shadow: !0,
@@ -12117,7 +12117,7 @@ function K4({ onBack: e }) {
12117
12117
  ] }),
12118
12118
  /* @__PURE__ */ a.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__ */ a.jsxs("div", { className: "gw-flex gw-flex-col gw-space-y-3 gw-w-full", children: [
12119
12119
  /* @__PURE__ */ a.jsx(
12120
- Ae,
12120
+ Qe,
12121
12121
  {
12122
12122
  variant: "tertiary",
12123
12123
  className: "gw-w-full",
@@ -12127,25 +12127,25 @@ function K4({ onBack: e }) {
12127
12127
  children: "Edit Profile on Glyph Dashboard"
12128
12128
  }
12129
12129
  ),
12130
- /* @__PURE__ */ a.jsx(Ae, { variant: "outline", className: "gw-w-full", onClick: r, children: "Log Out" })
12130
+ /* @__PURE__ */ a.jsx(Qe, { variant: "outline", className: "gw-w-full", onClick: r, children: "Log Out" })
12131
12131
  ] }) })
12132
12132
  ] })
12133
12133
  }
12134
12134
  );
12135
12135
  }
12136
- var k4 = Object.defineProperty, jn = Object.getOwnPropertySymbols, tc = Object.prototype.hasOwnProperty, rc = Object.prototype.propertyIsEnumerable, bi = (e, t, r) => t in e ? k4(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, da = (e, t) => {
12136
+ var k4 = Object.defineProperty, Cn = Object.getOwnPropertySymbols, tc = Object.prototype.hasOwnProperty, rc = Object.prototype.propertyIsEnumerable, bi = (e, t, r) => t in e ? k4(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, da = (e, t) => {
12137
12137
  for (var r in t || (t = {}))
12138
12138
  tc.call(t, r) && bi(e, r, t[r]);
12139
- if (jn)
12140
- for (var r of jn(t))
12139
+ if (Cn)
12140
+ for (var r of Cn(t))
12141
12141
  rc.call(t, r) && bi(e, r, t[r]);
12142
12142
  return e;
12143
12143
  }, fa = (e, t) => {
12144
12144
  var r = {};
12145
12145
  for (var n in e)
12146
12146
  tc.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
12147
- if (e != null && jn)
12148
- for (var n of jn(e))
12147
+ if (e != null && Cn)
12148
+ for (var n of Cn(e))
12149
12149
  t.indexOf(n) < 0 && rc.call(e, n) && (r[n] = e[n]);
12150
12150
  return r;
12151
12151
  };
@@ -12154,7 +12154,7 @@ var k4 = Object.defineProperty, jn = Object.getOwnPropertySymbols, tc = Object.p
12154
12154
  * Copyright (c) Project Nayuki.
12155
12155
  * SPDX-License-Identifier: MIT
12156
12156
  */
12157
- var Qr;
12157
+ var Ir;
12158
12158
  ((e) => {
12159
12159
  const t = class qe {
12160
12160
  /*-- Constructor (low level) and fields --*/
@@ -12659,7 +12659,7 @@ var Qr;
12659
12659
  s.NUMERIC_REGEX = /^[0-9]*$/, s.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, s.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
12660
12660
  let l = s;
12661
12661
  e.QrSegment = s;
12662
- })(Qr || (Qr = {}));
12662
+ })(Ir || (Ir = {}));
12663
12663
  ((e) => {
12664
12664
  ((t) => {
12665
12665
  const r = class {
@@ -12671,7 +12671,7 @@ var Qr;
12671
12671
  };
12672
12672
  r.LOW = new r(0, 1), r.MEDIUM = new r(1, 0), r.QUARTILE = new r(2, 3), r.HIGH = new r(3, 2), t.Ecc = r;
12673
12673
  })(e.QrCode || (e.QrCode = {}));
12674
- })(Qr || (Qr = {}));
12674
+ })(Ir || (Ir = {}));
12675
12675
  ((e) => {
12676
12676
  ((t) => {
12677
12677
  const r = class {
@@ -12688,18 +12688,18 @@ var Qr;
12688
12688
  };
12689
12689
  r.NUMERIC = new r(1, [10, 12, 14]), r.ALPHANUMERIC = new r(2, [9, 11, 13]), r.BYTE = new r(4, [8, 16, 16]), r.KANJI = new r(8, [8, 10, 12]), r.ECI = new r(7, [0, 0, 0]), t.Mode = r;
12690
12690
  })(e.QrSegment || (e.QrSegment = {}));
12691
- })(Qr || (Qr = {}));
12692
- var o1 = Qr;
12691
+ })(Ir || (Ir = {}));
12692
+ var a1 = Ir;
12693
12693
  /**
12694
12694
  * @license qrcode.react
12695
12695
  * Copyright (c) Paul O'Shannessy
12696
12696
  * SPDX-License-Identifier: ISC
12697
12697
  */
12698
12698
  var Y4 = {
12699
- L: o1.QrCode.Ecc.LOW,
12700
- M: o1.QrCode.Ecc.MEDIUM,
12701
- Q: o1.QrCode.Ecc.QUARTILE,
12702
- H: o1.QrCode.Ecc.HIGH
12699
+ L: a1.QrCode.Ecc.LOW,
12700
+ M: a1.QrCode.Ecc.MEDIUM,
12701
+ Q: a1.QrCode.Ecc.QUARTILE,
12702
+ H: a1.QrCode.Ecc.HIGH
12703
12703
  }, nc = 128, oc = "L", ac = "#FFFFFF", sc = "#000000", ic = !1, lc = 1, J4 = 4, G4 = 0, D4 = 0.1;
12704
12704
  function cc(e, t = 0) {
12705
12705
  const r = [];
@@ -12753,8 +12753,8 @@ function dc({
12753
12753
  boostLevel: i
12754
12754
  }) {
12755
12755
  let c = S.useMemo(() => {
12756
- const x = (Array.isArray(e) ? e : [e]).reduce((v, N) => (v.push(...o1.QrSegment.makeSegments(N)), v), []);
12757
- return o1.QrCode.encodeSegments(
12756
+ const x = (Array.isArray(e) ? e : [e]).reduce((v, N) => (v.push(...a1.QrSegment.makeSegments(N)), v), []);
12757
+ return a1.QrCode.encodeSegments(
12758
12758
  x,
12759
12759
  Y4[t],
12760
12760
  r,
@@ -13023,7 +13023,7 @@ function _4({ onBack: e }) {
13023
13023
  /* @__PURE__ */ a.jsx("div", { className: "gw-h-0 gw-border-b gw-w-full gw-flex-1 gw-border-brand-gray-500 gw-ml-4" })
13024
13024
  ] }),
13025
13025
  /* @__PURE__ */ a.jsx(
13026
- Mr,
13026
+ Qr,
13027
13027
  {
13028
13028
  text: "Copy Wallet Address",
13029
13029
  textToCopy: r == null ? void 0 : r.evmWallet,
@@ -13086,10 +13086,10 @@ function ef(e) {
13086
13086
  const t = X.useRef({ value: e, previous: e });
13087
13087
  return X.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
13088
13088
  }
13089
- var tf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], Ir = "Select", [ao, so, nf] = $4(Ir), [X1, Am] = or(Ir, [
13089
+ var tf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], Br = "Select", [ao, so, nf] = $4(Br), [X1, Am] = or(Br, [
13090
13090
  nf,
13091
13091
  _n
13092
- ]), io = _n(), [of, Pr] = X1(Ir), [af, sf] = X1(Ir), pc = (e) => {
13092
+ ]), io = _n(), [of, Pr] = X1(Br), [af, sf] = X1(Br), pc = (e) => {
13093
13093
  const {
13094
13094
  __scopeSelect: t,
13095
13095
  children: r,
@@ -13109,12 +13109,12 @@ var tf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], Ir = "Sele
13109
13109
  prop: n,
13110
13110
  defaultProp: o ?? !1,
13111
13111
  onChange: s,
13112
- caller: Ir
13112
+ caller: Br
13113
13113
  }), [R, j] = Fr({
13114
13114
  prop: l,
13115
13115
  defaultProp: i,
13116
13116
  onChange: c,
13117
- caller: Ir
13117
+ caller: Br
13118
13118
  }), H = X.useRef(null), k = N ? x || !!N.closest("form") : !0, [Z, E] = X.useState(/* @__PURE__ */ new Set()), P = Array.from(Z).map((U) => U.props.value).join(";");
13119
13119
  return /* @__PURE__ */ a.jsx(m3, { ...v, children: /* @__PURE__ */ a.jsxs(
13120
13120
  of,
@@ -13175,7 +13175,7 @@ var tf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], Ir = "Sele
13175
13175
  }
13176
13176
  ) });
13177
13177
  };
13178
- pc.displayName = Ir;
13178
+ pc.displayName = Br;
13179
13179
  var mc = "SelectTrigger", hc = X.forwardRef(
13180
13180
  (e, t) => {
13181
13181
  const { __scopeSelect: r, disabled: n = !1, ...o } = e, s = io(r), l = Pr(mc, r), i = l.disabled || n, c = Ve(t, l.onTriggerChange), u = so(r), f = X.useRef("touch"), [d, b, h] = Pc((v) => {
@@ -13246,9 +13246,9 @@ var cf = "SelectIcon", bc = X.forwardRef(
13246
13246
  bc.displayName = cf;
13247
13247
  var uf = "SelectPortal", yc = (e) => /* @__PURE__ */ a.jsx(Ca, { asChild: !0, ...e });
13248
13248
  yc.displayName = uf;
13249
- var Br = "SelectContent", xc = X.forwardRef(
13249
+ var Ar = "SelectContent", xc = X.forwardRef(
13250
13250
  (e, t) => {
13251
- const r = Pr(Br, e.__scopeSelect), [n, o] = X.useState();
13251
+ const r = Pr(Ar, e.__scopeSelect), [n, o] = X.useState();
13252
13252
  if (ot(() => {
13253
13253
  o(new DocumentFragment());
13254
13254
  }, []), !r.open) {
@@ -13261,8 +13261,8 @@ var Br = "SelectContent", xc = X.forwardRef(
13261
13261
  return /* @__PURE__ */ a.jsx(Xc, { ...e, ref: t });
13262
13262
  }
13263
13263
  );
13264
- xc.displayName = Br;
13265
- var Yt = 10, [Nc, Zr] = X1(Br), df = "SelectContentImpl", ff = /* @__PURE__ */ P1("SelectContent.RemoveScroll"), Xc = X.forwardRef(
13264
+ xc.displayName = Ar;
13265
+ var Yt = 10, [Nc, Zr] = X1(Ar), df = "SelectContentImpl", ff = /* @__PURE__ */ P1("SelectContent.RemoveScroll"), Xc = X.forwardRef(
13266
13266
  (e, t) => {
13267
13267
  const {
13268
13268
  __scopeSelect: r,
@@ -13284,7 +13284,7 @@ var Yt = 10, [Nc, Zr] = X1(Br), df = "SelectContentImpl", ff = /* @__PURE__ */ P
13284
13284
  avoidCollisions: N,
13285
13285
  //
13286
13286
  ...q
13287
- } = e, w = Pr(Br, r), [y, W] = X.useState(null), [V, F] = X.useState(null), O = Ve(t, (ee) => W(ee)), [C, R] = X.useState(null), [j, H] = X.useState(
13287
+ } = e, w = Pr(Ar, r), [y, W] = X.useState(null), [V, F] = X.useState(null), O = Ve(t, (ee) => W(ee)), [C, R] = X.useState(null), [j, H] = X.useState(
13288
13288
  null
13289
13289
  ), k = so(r), [Z, E] = X.useState(!1), P = X.useRef(!1);
13290
13290
  X.useEffect(() => {
@@ -13434,7 +13434,7 @@ var Yt = 10, [Nc, Zr] = X1(Br), df = "SelectContentImpl", ff = /* @__PURE__ */ P
13434
13434
  );
13435
13435
  Xc.displayName = df;
13436
13436
  var pf = "SelectItemAlignedPosition", wc = X.forwardRef((e, t) => {
13437
- const { __scopeSelect: r, onPlaced: n, ...o } = e, s = Pr(Br, r), l = Zr(Br, r), [i, c] = X.useState(null), [u, f] = X.useState(null), d = Ve(t, (O) => f(O)), b = so(r), h = X.useRef(!1), x = X.useRef(!0), { viewport: v, selectedItem: N, selectedItemText: q, focusSelectedItem: w } = l, y = X.useCallback(() => {
13437
+ const { __scopeSelect: r, onPlaced: n, ...o } = e, s = Pr(Ar, r), l = Zr(Ar, r), [i, c] = X.useState(null), [u, f] = X.useState(null), d = Ve(t, (O) => f(O)), b = so(r), h = X.useRef(!1), x = X.useRef(!0), { viewport: v, selectedItem: N, selectedItemText: q, focusSelectedItem: w } = l, y = X.useCallback(() => {
13438
13438
  if (s.trigger && s.valueNode && i && u && v && N && q) {
13439
13439
  const O = s.trigger.getBoundingClientRect(), C = u.getBoundingClientRect(), R = s.valueNode.getBoundingClientRect(), j = q.getBoundingClientRect();
13440
13440
  if (s.dir !== "rtl") {
@@ -13567,7 +13567,7 @@ var mf = "SelectPopperPosition", pa = X.forwardRef((e, t) => {
13567
13567
  );
13568
13568
  });
13569
13569
  pa.displayName = mf;
13570
- var [hf, is] = X1(Br, {}), ma = "SelectViewport", gc = X.forwardRef(
13570
+ var [hf, is] = X1(Ar, {}), ma = "SelectViewport", gc = X.forwardRef(
13571
13571
  (e, t) => {
13572
13572
  const { __scopeSelect: r, nonce: n, ...o } = e, s = Zr(ma, r), l = is(ma, r), i = Ve(t, s.onViewportChange), c = X.useRef(0);
13573
13573
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -13634,7 +13634,7 @@ var qc = "SelectLabel", Lc = X.forwardRef(
13634
13634
  }
13635
13635
  );
13636
13636
  Lc.displayName = qc;
13637
- var Cn = "SelectItem", [xf, Vc] = X1(Cn), Oc = X.forwardRef(
13637
+ var Rn = "SelectItem", [xf, Vc] = X1(Rn), Oc = X.forwardRef(
13638
13638
  (e, t) => {
13639
13639
  const {
13640
13640
  __scopeSelect: r,
@@ -13642,7 +13642,7 @@ var Cn = "SelectItem", [xf, Vc] = X1(Cn), Oc = X.forwardRef(
13642
13642
  disabled: o = !1,
13643
13643
  textValue: s,
13644
13644
  ...l
13645
- } = e, i = Pr(Cn, r), c = Zr(Cn, r), u = i.value === n, [f, d] = X.useState(s ?? ""), [b, h] = X.useState(!1), x = Ve(
13645
+ } = e, i = Pr(Rn, r), c = Zr(Rn, r), u = i.value === n, [f, d] = X.useState(s ?? ""), [b, h] = X.useState(!1), x = Ve(
13646
13646
  t,
13647
13647
  (w) => {
13648
13648
  var y;
@@ -13717,7 +13717,7 @@ var Cn = "SelectItem", [xf, Vc] = X1(Cn), Oc = X.forwardRef(
13717
13717
  );
13718
13718
  }
13719
13719
  );
13720
- Oc.displayName = Cn;
13720
+ Oc.displayName = Rn;
13721
13721
  var j1 = "SelectItemText", Nf = X.forwardRef(
13722
13722
  (e, t) => {
13723
13723
  const { __scopeSelect: r, className: n, style: o, ...s } = e, l = Pr(j1, r), i = Zr(j1, r), c = Vc(j1, r), u = sf(j1, r), [f, d] = X.useState(null), b = Ve(
@@ -14170,7 +14170,7 @@ const jf = ({
14170
14170
  ) })
14171
14171
  ] }),
14172
14172
  footer: /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
14173
- Ae,
14173
+ Qe,
14174
14174
  {
14175
14175
  variant: "tertiary",
14176
14176
  className: "gw-w-full gw-mt-4",
@@ -14200,7 +14200,7 @@ const jf = ({
14200
14200
  {
14201
14201
  className: "gw-size-full gw-inline-flex gw-justify-center gw-items-center",
14202
14202
  onClick: e,
14203
- children: /* @__PURE__ */ a.jsx(I1, { className: "gw-size-6" })
14203
+ children: /* @__PURE__ */ a.jsx(B1, { className: "gw-size-6" })
14204
14204
  }
14205
14205
  ) }) }),
14206
14206
  /* @__PURE__ */ a.jsx("div", { className: "gw-w-full gw-p-4 gw-relative gw-z-10 gw-flex-1 gw-flex-col gw-flex gw-justify-end", children: /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
@@ -14220,7 +14220,7 @@ Please try again.` }),
14220
14220
  },
14221
14221
  r
14222
14222
  ) : null }),
14223
- /* @__PURE__ */ a.jsx(Ae, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
14223
+ /* @__PURE__ */ a.jsx(Qe, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Activity" })
14224
14224
  ] }) })
14225
14225
  ] })
14226
14226
  }
@@ -14301,7 +14301,7 @@ Please try again.` }),
14301
14301
  },
14302
14302
  t
14303
14303
  ) }),
14304
- /* @__PURE__ */ a.jsx(Ae, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
14304
+ /* @__PURE__ */ a.jsx(Qe, { variant: "outline", className: "gw-w-full gw-mt-4", onClick: e, children: "Back to Home" })
14305
14305
  ] }),
14306
14306
  footerCols: !0,
14307
14307
  mainFooter: !1
@@ -14323,7 +14323,7 @@ Please try again.` }),
14323
14323
  {
14324
14324
  className: "gw-size-full gw-inline-flex gw-justify-center gw-items-center",
14325
14325
  onClick: e,
14326
- children: /* @__PURE__ */ a.jsx(I1, { className: "gw-size-6" })
14326
+ children: /* @__PURE__ */ a.jsx(B1, { className: "gw-size-6" })
14327
14327
  }
14328
14328
  ) }) }),
14329
14329
  /* @__PURE__ */ a.jsx("div", { className: "gw-w-full gw-p-4 gw-relative gw-z-10 gw-flex-1 gw-flex-col gw-flex gw-justify-end", children: /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
@@ -14358,14 +14358,14 @@ sent to ${Wt(r.receiver_address)}` }),
14358
14358
  ] })
14359
14359
  ] })
14360
14360
  ] }),
14361
- /* @__PURE__ */ a.jsx(Ae, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
14361
+ /* @__PURE__ */ a.jsx(Qe, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
14362
14362
  ] }) })
14363
14363
  ] })
14364
14364
  }
14365
14365
  );
14366
14366
  }, Kf = S.memo(Hf), kf = 6, Yf = 10 * 1e3, Jf = "Not enough balance", xi = {
14367
14367
  [Or.id]: Or,
14368
- [qn.id]: qn
14368
+ [Ln.id]: Ln
14369
14369
  };
14370
14370
  function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14371
14371
  var je;
@@ -14389,15 +14389,15 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14389
14389
  const re = async () => {
14390
14390
  if (!(x !== xt.ENTER_AMOUNT || E || $) && F && c && N && (C || F <= Number((y == null ? void 0 : y.value) || 0))) {
14391
14391
  H(null), Z(!0), G(null);
14392
- const { maxFeePerGas: ve } = await an.estimateFeesPerGas();
14392
+ const { maxFeePerGas: ve } = await sn.estimateFeesPerGas();
14393
14393
  let Fe;
14394
14394
  try {
14395
14395
  const p = (C || F === Number((y == null ? void 0 : y.value) || 0)) && (y != null && y.valueInWei) ? BigInt(y == null ? void 0 : y.valueInWei) : t5(`${F}`);
14396
- N === w1 ? Fe = await an.estimateGas({
14396
+ N === w1 ? Fe = await sn.estimateGas({
14397
14397
  account: o == null ? void 0 : o.evmWallet,
14398
14398
  to: c,
14399
14399
  value: p
14400
- }) : Fe = await an.estimateContractGas({
14400
+ }) : Fe = await sn.estimateContractGas({
14401
14401
  abi: ho,
14402
14402
  functionName: "transfer",
14403
14403
  args: [c, p],
@@ -14421,7 +14421,7 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14421
14421
  }
14422
14422
  Ze = i0(F, (y == null ? void 0 : y.decimals) || 18);
14423
14423
  }
14424
- const Ot = ve / 2n, g = on(
14424
+ const Ot = ve / 2n, g = an(
14425
14425
  +vo(Ze, (y == null ? void 0 : y.decimals) || 18),
14426
14426
  y == null ? void 0 : y.displayDecimals
14427
14427
  );
@@ -14432,11 +14432,11 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14432
14432
  maxFeePerGas: ve,
14433
14433
  receivable_amount: Ze,
14434
14434
  receivable_amount_in_token: g,
14435
- receivable_amount_in_currency: on(
14435
+ receivable_amount_in_currency: an(
14436
14436
  g * +((y == null ? void 0 : y.rateInCurrency) || 0)
14437
14437
  ),
14438
14438
  estimated_fees_amount: vo(Vt, (w == null ? void 0 : w.decimals) || 18),
14439
- estimated_fees_amount_in_currency: on(
14439
+ estimated_fees_amount_in_currency: an(
14440
14440
  +vo(Vt, (w == null ? void 0 : w.decimals) || 18) * +((w == null ? void 0 : w.rateInCurrency) || 0)
14441
14441
  ),
14442
14442
  currency: (w == null ? void 0 : w.currency) || "",
@@ -14635,7 +14635,7 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14635
14635
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-justify-center gw-items-center gw-mt-4 gw-gap-4", children: [
14636
14636
  (y == null ? void 0 : y.rateInCurrency) && /* @__PURE__ */ a.jsx("div", { className: "gw-text-brand-gray-600", children: dt(+(y == null ? void 0 : y.rateInCurrency) * +W, y == null ? void 0 : y.currency) }),
14637
14637
  /* @__PURE__ */ a.jsx(
14638
- Ae,
14638
+ Qe,
14639
14639
  {
14640
14640
  variant: "tertiary",
14641
14641
  size: "sm",
@@ -14659,7 +14659,7 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14659
14659
  ] }),
14660
14660
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
14661
14661
  /* @__PURE__ */ a.jsx("span", { children: "Network Fees" }),
14662
- /* @__PURE__ */ a.jsx("div", { className: "gw-text-brand-gray-500 gw-text-right", children: k || !j ? /* @__PURE__ */ a.jsx(vt, { className: "gw-w-20 gw-h-4" }) : `${on(j == null ? void 0 : j.estimated_fees_amount_in_currency, w == null ? void 0 : w.displayDecimals)} ${w == null ? void 0 : w.symbol} (${dt(j == null ? void 0 : j.estimated_fees_amount_in_currency, j == null ? void 0 : j.currency)})` })
14662
+ /* @__PURE__ */ a.jsx("div", { className: "gw-text-brand-gray-500 gw-text-right", children: k || !j ? /* @__PURE__ */ a.jsx(vt, { className: "gw-w-20 gw-h-4" }) : `${an(j == null ? void 0 : j.estimated_fees_amount_in_currency, w == null ? void 0 : w.displayDecimals)} ${w == null ? void 0 : w.symbol} (${dt(j == null ? void 0 : j.estimated_fees_amount_in_currency, j == null ? void 0 : j.currency)})` })
14663
14663
  ] }),
14664
14664
  /* @__PURE__ */ a.jsxs("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
14665
14665
  /* @__PURE__ */ a.jsx("span", { children: "Expected receivable amount" }),
@@ -14699,7 +14699,7 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14699
14699
  ] }),
14700
14700
  /* @__PURE__ */ a.jsx("div", { className: "gw-text-destructive gw-typography-caption gw-text-center gw-mt-1 gw-h-3", children: Q || null }),
14701
14701
  /* @__PURE__ */ a.jsxs(
14702
- Ae,
14702
+ Qe,
14703
14703
  {
14704
14704
  variant: "default",
14705
14705
  className: "gw-w-full gw-mt-2",
@@ -14722,7 +14722,7 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14722
14722
  }
14723
14723
  }), Fe = typeof re == "object" ? re.hash : re;
14724
14724
  else {
14725
- const Ze = await an.simulateContract({
14725
+ const Ze = await sn.simulateContract({
14726
14726
  abi: ho,
14727
14727
  functionName: "transfer",
14728
14728
  account: o == null ? void 0 : o.evmWallet,
@@ -14758,7 +14758,7 @@ function Gf({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
14758
14758
  },
14759
14759
  children: [
14760
14760
  "Send",
14761
- E && /* @__PURE__ */ a.jsx(kn, { className: "gw-size-4 gw-animate-spin" })
14761
+ E && /* @__PURE__ */ a.jsx(I1, { className: "gw-size-4 gw-animate-spin" })
14762
14762
  ]
14763
14763
  }
14764
14764
  )
@@ -14918,13 +14918,13 @@ const Ni = jr(
14918
14918
  $c.displayName = "GlyphWidget";
14919
14919
  const _m = jr($c), e6 = () => {
14920
14920
  const { logout: e } = at();
14921
- return /* @__PURE__ */ a.jsx(Ae, { className: "gw-w-full", variant: "outline", onClick: e, children: "Logout" });
14921
+ return /* @__PURE__ */ a.jsx(Qe, { className: "gw-w-full", variant: "outline", onClick: e, children: "Logout" });
14922
14922
  };
14923
14923
  e6.displayName = "LogoutButton";
14924
14924
  const $m = jr(e6), t6 = () => {
14925
14925
  const { glyphUrl: e } = at(), t = new URL("/", e).toString();
14926
14926
  return e ? /* @__PURE__ */ a.jsx(
14927
- Ae,
14927
+ Qe,
14928
14928
  {
14929
14929
  variant: "outline",
14930
14930
  size: "login",
@@ -14933,13 +14933,13 @@ const $m = jr(e6), t6 = () => {
14933
14933
  },
14934
14934
  className: "gw-w-52 !gw-justify-start",
14935
14935
  children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
14936
- /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(f1, { className: "!gw-size-5" }) }),
14936
+ /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(Dr, { className: "!gw-size-5" }) }),
14937
14937
  /* @__PURE__ */ a.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Visit Glyph Portal" })
14938
14938
  ] })
14939
14939
  }
14940
- ) : /* @__PURE__ */ a.jsx(Ae, { variant: "outline", size: "login", disabled: !0, children: /* @__PURE__ */ a.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
14941
- /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(f1, { className: "!gw-size-5" }) }),
14942
- /* @__PURE__ */ a.jsx(kn, { className: "gw-size-4 gw-animate-spin" })
14940
+ ) : /* @__PURE__ */ a.jsx(Qe, { variant: "outline", size: "login", disabled: !0, children: /* @__PURE__ */ a.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
14941
+ /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(Dr, { className: "!gw-size-5" }) }),
14942
+ /* @__PURE__ */ a.jsx(I1, { className: "gw-size-4 gw-animate-spin" })
14943
14943
  ] }) });
14944
14944
  };
14945
14945
  t6.displayName = "SignUpButton";
@@ -15098,14 +15098,14 @@ const Qf = y1("GlyphProvider"), If = Ii(() => import("./PrivyStrategy.js")), Bf
15098
15098
  var u;
15099
15099
  const s = wt(
15100
15100
  () => ({
15101
- [s1.EIP1193]: Bf,
15102
- [s1.PRIVY]: If
15101
+ [i1.EIP1193]: Bf,
15102
+ [i1.PRIVY]: If
15103
15103
  // default strategy
15104
15104
  }),
15105
15105
  []
15106
15106
  ), [l, i] = fe(t);
15107
15107
  Qf.debug("strategy", l), Se(() => {
15108
- t && Object.values(s1).includes(t) ? i(t) : i(Os);
15108
+ t && Object.values(i1).includes(t) ? i(t) : i(Os);
15109
15109
  }, [t]);
15110
15110
  const c = wt(
15111
15111
  () => s[l],
@@ -15132,9 +15132,12 @@ const Qf = y1("GlyphProvider"), If = Ii(() => import("./PrivyStrategy.js")), Bf
15132
15132
  disconnect: r
15133
15133
  };
15134
15134
  }, rh = jr(() => {
15135
- const { connect: e } = Af(), { isConnected: t } = M6();
15136
- return t ? /* @__PURE__ */ a.jsx(p2, {}) : /* @__PURE__ */ a.jsx(Ae, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
15137
- /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(f1, { className: "!gw-size-5" }) }),
15135
+ const { connect: e } = Af(), { isConnected: t, isConnecting: r } = M6();
15136
+ return t ? /* @__PURE__ */ a.jsx(p2, {}) : r ? /* @__PURE__ */ a.jsx(Qe, { variant: "default", size: "login", disabled: !0, children: /* @__PURE__ */ a.jsxs("span", { className: "gw-inline-flex gw-items-center gw-w-full gw-gap-1", children: [
15137
+ /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(Dr, { className: "!gw-size-5" }) }),
15138
+ /* @__PURE__ */ a.jsx(I1, { className: "gw-size-4 gw-animate-spin" })
15139
+ ] }) }) : /* @__PURE__ */ a.jsx(Qe, { variant: "default", size: "login", onClick: e, className: "gw-w-52 !gw-justify-start", children: /* @__PURE__ */ a.jsxs("span", { className: "gw-flex gw-items-center gw-gap-1 gw-w-full", children: [
15140
+ /* @__PURE__ */ a.jsx("span", { className: "gw-p-2 gw-rounded-full", children: /* @__PURE__ */ a.jsx(Dr, { className: "!gw-size-5" }) }),
15138
15141
  /* @__PURE__ */ a.jsx("span", { className: "gw-flex-1 gw-text-center", children: "Connect to Glyph" })
15139
15142
  ] }) });
15140
15143
  }), _f = "2.17.2", $f = () => `@wagmi/core@${_f}`;
@@ -15142,7 +15145,7 @@ var o6 = function(e, t, r, n) {
15142
15145
  if (r === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
15143
15146
  if (typeof t == "function" ? e !== t || !n : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
15144
15147
  return r === "m" ? n : r === "a" ? n.call(e) : n ? n.value : t.get(e);
15145
- }, Rn, a6;
15148
+ }, zn, a6;
15146
15149
  class k1 extends Error {
15147
15150
  get docsBaseUrl() {
15148
15151
  return "https://wagmi.sh/core";
@@ -15152,7 +15155,7 @@ class k1 extends Error {
15152
15155
  }
15153
15156
  constructor(t, r = {}) {
15154
15157
  var s;
15155
- super(), Rn.add(this), Object.defineProperty(this, "details", {
15158
+ super(), zn.add(this), Object.defineProperty(this, "details", {
15156
15159
  enumerable: !0,
15157
15160
  configurable: !0,
15158
15161
  writable: !0,
@@ -15192,11 +15195,11 @@ class k1 extends Error {
15192
15195
  `), r.cause && (this.cause = r.cause), this.details = n, this.docsPath = o, this.metaMessages = r.metaMessages, this.shortMessage = t;
15193
15196
  }
15194
15197
  walk(t) {
15195
- return o6(this, Rn, "m", a6).call(this, this, t);
15198
+ return o6(this, zn, "m", a6).call(this, this, t);
15196
15199
  }
15197
15200
  }
15198
- Rn = /* @__PURE__ */ new WeakSet(), a6 = function e(t, r) {
15199
- return r != null && r(t) ? t : t.cause ? o6(this, Rn, "m", e).call(this, t.cause, r) : t;
15201
+ zn = /* @__PURE__ */ new WeakSet(), a6 = function e(t, r) {
15202
+ return r != null && r(t) ? t : t.cause ? o6(this, zn, "m", e).call(this, t.cause, r) : t;
15200
15203
  };
15201
15204
  class ep extends k1 {
15202
15205
  constructor() {
@@ -15222,7 +15225,7 @@ async function tp({ providerAppId: e, apiUrl: t }) {
15222
15225
  let r = await fetch(`${t}/api/v1/apps/${e}/cross-app/details`, { method: "GET", headers: { "Content-Type": "application/json" } }), { custom_api_url: n, icon_url: o, name: s } = await r.json();
15223
15226
  return { url: n, name: s, iconUrl: o };
15224
15227
  }
15225
- const r1 = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
15228
+ const n1 = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
15226
15229
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
15227
15230
  function rp(e) {
15228
15231
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
@@ -15231,7 +15234,7 @@ function ya(e) {
15231
15234
  if (!Number.isSafeInteger(e) || e < 0)
15232
15235
  throw new Error("positive integer expected, got " + e);
15233
15236
  }
15234
- function $1(e, ...t) {
15237
+ function en(e, ...t) {
15235
15238
  if (!rp(e))
15236
15239
  throw new Error("Uint8Array expected");
15237
15240
  if (t.length > 0 && !t.includes(e.length))
@@ -15242,19 +15245,19 @@ function np(e) {
15242
15245
  throw new Error("Hash should be wrapped by utils.createHasher");
15243
15246
  ya(e.outputLen), ya(e.blockLen);
15244
15247
  }
15245
- function zn(e, t = !0) {
15248
+ function Pn(e, t = !0) {
15246
15249
  if (e.destroyed)
15247
15250
  throw new Error("Hash instance has been destroyed");
15248
15251
  if (t && e.finished)
15249
15252
  throw new Error("Hash#digest() has already been called");
15250
15253
  }
15251
15254
  function op(e, t) {
15252
- $1(e);
15255
+ en(e);
15253
15256
  const r = t.outputLen;
15254
15257
  if (e.length < r)
15255
15258
  throw new Error("digestInto() expects output buffer of length at least " + r);
15256
15259
  }
15257
- function Pn(...e) {
15260
+ function Zn(...e) {
15258
15261
  for (let t = 0; t < e.length; t++)
15259
15262
  e[t].fill(0);
15260
15263
  }
@@ -15270,13 +15273,13 @@ function ap(e) {
15270
15273
  return new Uint8Array(new TextEncoder().encode(e));
15271
15274
  }
15272
15275
  function ls(e) {
15273
- return typeof e == "string" && (e = ap(e)), $1(e), e;
15276
+ return typeof e == "string" && (e = ap(e)), en(e), e;
15274
15277
  }
15275
15278
  function sp(...e) {
15276
15279
  let t = 0;
15277
15280
  for (let n = 0; n < e.length; n++) {
15278
15281
  const o = e[n];
15279
- $1(o), t += o.length;
15282
+ en(o), t += o.length;
15280
15283
  }
15281
15284
  const r = new Uint8Array(t);
15282
15285
  for (let n = 0, o = 0; n < e.length; n++) {
@@ -15292,10 +15295,10 @@ function ip(e) {
15292
15295
  return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
15293
15296
  }
15294
15297
  function lp(e = 32) {
15295
- if (r1 && typeof r1.getRandomValues == "function")
15296
- return r1.getRandomValues(new Uint8Array(e));
15297
- if (r1 && typeof r1.randomBytes == "function")
15298
- return Uint8Array.from(r1.randomBytes(e));
15298
+ if (n1 && typeof n1.getRandomValues == "function")
15299
+ return n1.getRandomValues(new Uint8Array(e));
15300
+ if (n1 && typeof n1.randomBytes == "function")
15301
+ return Uint8Array.from(n1.randomBytes(e));
15299
15302
  throw new Error("crypto.getRandomValues must be defined");
15300
15303
  }
15301
15304
  function cp(e, t, r, n) {
@@ -15315,7 +15318,7 @@ class fp extends s6 {
15315
15318
  super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = o, this.buffer = new Uint8Array(t), this.view = Ro(this.buffer);
15316
15319
  }
15317
15320
  update(t) {
15318
- zn(this), t = ls(t), $1(t);
15321
+ Pn(this), t = ls(t), en(t);
15319
15322
  const { view: r, buffer: n, blockLen: o } = this, s = t.length;
15320
15323
  for (let l = 0; l < s; ) {
15321
15324
  const i = Math.min(o - this.pos, s - l);
@@ -15330,10 +15333,10 @@ class fp extends s6 {
15330
15333
  return this.length += t.length, this.roundClean(), this;
15331
15334
  }
15332
15335
  digestInto(t) {
15333
- zn(this), op(t, this), this.finished = !0;
15336
+ Pn(this), op(t, this), this.finished = !0;
15334
15337
  const { buffer: r, view: n, blockLen: o, isLE: s } = this;
15335
15338
  let { pos: l } = this;
15336
- r[l++] = 128, Pn(this.buffer.subarray(l)), this.padOffset > o - l && (this.process(n, 0), l = 0);
15339
+ r[l++] = 128, Zn(this.buffer.subarray(l)), this.padOffset > o - l && (this.process(n, 0), l = 0);
15337
15340
  for (let d = l; d < o; d++)
15338
15341
  r[d] = 0;
15339
15342
  cp(n, o - 8, BigInt(this.length * 8), s), this.process(n, 0);
@@ -15463,10 +15466,10 @@ class mp extends fp {
15463
15466
  n = n + this.A | 0, o = o + this.B | 0, s = s + this.C | 0, l = l + this.D | 0, i = i + this.E | 0, c = c + this.F | 0, u = u + this.G | 0, f = f + this.H | 0, this.set(n, o, s, l, i, c, u, f);
15464
15467
  }
15465
15468
  roundClean() {
15466
- Pn(gr);
15469
+ Zn(gr);
15467
15470
  }
15468
15471
  destroy() {
15469
- this.set(0, 0, 0, 0, 0, 0, 0, 0), Pn(this.buffer);
15472
+ this.set(0, 0, 0, 0, 0, 0, 0, 0), Zn(this.buffer);
15470
15473
  }
15471
15474
  }
15472
15475
  const hp = /* @__PURE__ */ ip(() => new mp());
@@ -15484,13 +15487,13 @@ class i6 extends s6 {
15484
15487
  this.iHash.update(s), this.oHash = t.create();
15485
15488
  for (let l = 0; l < s.length; l++)
15486
15489
  s[l] ^= 106;
15487
- this.oHash.update(s), Pn(s);
15490
+ this.oHash.update(s), Zn(s);
15488
15491
  }
15489
15492
  update(t) {
15490
- return zn(this), this.iHash.update(t), this;
15493
+ return Pn(this), this.iHash.update(t), this;
15491
15494
  }
15492
15495
  digestInto(t) {
15493
- zn(this), $1(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
15496
+ Pn(this), en(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
15494
15497
  }
15495
15498
  digest() {
15496
15499
  const t = new Uint8Array(this.oHash.outputLen);
@@ -15512,18 +15515,18 @@ const l6 = (e, t, r) => new i6(e, t).update(r).digest();
15512
15515
  l6.create = (e, t) => new i6(e, t);
15513
15516
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
15514
15517
  const cs = /* @__PURE__ */ BigInt(0), xa = /* @__PURE__ */ BigInt(1);
15515
- function en(e) {
15518
+ function tn(e) {
15516
15519
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
15517
15520
  }
15518
15521
  function us(e) {
15519
- if (!en(e))
15522
+ if (!tn(e))
15520
15523
  throw new Error("Uint8Array expected");
15521
15524
  }
15522
15525
  function Y1(e, t) {
15523
15526
  if (typeof t != "boolean")
15524
15527
  throw new Error(e + " boolean expected, got " + t);
15525
15528
  }
15526
- function yn(e) {
15529
+ function xn(e) {
15527
15530
  const t = e.toString(16);
15528
15531
  return t.length & 1 ? "0" + t : t;
15529
15532
  }
@@ -15553,7 +15556,7 @@ function Li(e) {
15553
15556
  if (e >= lr.a && e <= lr.f)
15554
15557
  return e - (lr.a - 10);
15555
15558
  }
15556
- function Zn(e) {
15559
+ function Hn(e) {
15557
15560
  if (typeof e != "string")
15558
15561
  throw new Error("hex string expected, got " + typeof e);
15559
15562
  if (u6)
@@ -15578,21 +15581,21 @@ function Jr(e) {
15578
15581
  function d6(e) {
15579
15582
  return us(e), c6(J1(Uint8Array.from(e).reverse()));
15580
15583
  }
15581
- function tn(e, t) {
15582
- return Zn(e.toString(16).padStart(t * 2, "0"));
15584
+ function rn(e, t) {
15585
+ return Hn(e.toString(16).padStart(t * 2, "0"));
15583
15586
  }
15584
15587
  function f6(e, t) {
15585
- return tn(e, t).reverse();
15588
+ return rn(e, t).reverse();
15586
15589
  }
15587
15590
  function Pt(e, t, r) {
15588
15591
  let n;
15589
15592
  if (typeof t == "string")
15590
15593
  try {
15591
- n = Zn(t);
15594
+ n = Hn(t);
15592
15595
  } catch (s) {
15593
15596
  throw new Error(e + " must be hex string or Uint8Array, cause: " + s);
15594
15597
  }
15595
- else if (en(t))
15598
+ else if (tn(t))
15596
15599
  n = Uint8Array.from(t);
15597
15600
  else
15598
15601
  throw new Error(e + " must be hex string or Uint8Array");
@@ -15601,7 +15604,7 @@ function Pt(e, t, r) {
15601
15604
  throw new Error(e + " of length " + r + " expected, got " + o);
15602
15605
  return n;
15603
15606
  }
15604
- function Hn(...e) {
15607
+ function Kn(...e) {
15605
15608
  let t = 0;
15606
15609
  for (let n = 0; n < e.length; n++) {
15607
15610
  const o = e[n];
@@ -15618,7 +15621,7 @@ const zo = (e) => typeof e == "bigint" && cs <= e;
15618
15621
  function ds(e, t, r) {
15619
15622
  return zo(e) && zo(t) && zo(r) && t <= e && e < r;
15620
15623
  }
15621
- function c1(e, t, r, n) {
15624
+ function u1(e, t, r, n) {
15622
15625
  if (!ds(t, r, n))
15623
15626
  throw new Error("expected valid " + e + ": " + r + " <= n < " + n + ", got " + t);
15624
15627
  }
@@ -15651,7 +15654,7 @@ function yp(e, t, r) {
15651
15654
  const h = n.slice();
15652
15655
  b.push(h), d += n.length;
15653
15656
  }
15654
- return Hn(...b);
15657
+ return Kn(...b);
15655
15658
  };
15656
15659
  return (d, b) => {
15657
15660
  l(), c(d);
@@ -15666,7 +15669,7 @@ const xp = {
15666
15669
  function: (e) => typeof e == "function",
15667
15670
  boolean: (e) => typeof e == "boolean",
15668
15671
  string: (e) => typeof e == "string",
15669
- stringOrUint8Array: (e) => typeof e == "string" || en(e),
15672
+ stringOrUint8Array: (e) => typeof e == "string" || tn(e),
15670
15673
  isSafeInteger: (e) => Number.isSafeInteger(e),
15671
15674
  array: (e) => Array.isArray(e),
15672
15675
  field: (e, t) => t.Fp.isValid(e),
@@ -15865,7 +15868,7 @@ function fs(e, t, r = !1, n = {}) {
15865
15868
  mulN: (c, u) => c * u,
15866
15869
  inv: (c) => Na(c, e),
15867
15870
  sqrt: n.sqrt || ((c) => (l || (l = gp(e)), l(i, c))),
15868
- toBytes: (c) => r ? f6(c, s) : tn(c, s),
15871
+ toBytes: (c) => r ? f6(c, s) : rn(c, s),
15869
15872
  fromBytes: (c) => {
15870
15873
  if (c.length !== s)
15871
15874
  throw new Error("Field.fromBytes: expected " + s + " bytes, got " + c.length);
@@ -15894,7 +15897,7 @@ function Vp(e, t, r = !1) {
15894
15897
  if (n < 16 || n < s || n > 1024)
15895
15898
  throw new Error("expected " + s + "-1024 bytes of input, got " + n);
15896
15899
  const l = r ? d6(e) : Jr(e), i = Xt(l, t - bt) + bt;
15897
- return r ? f6(i, o) : tn(i, o);
15900
+ return r ? f6(i, o) : rn(i, o);
15898
15901
  }
15899
15902
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
15900
15903
  const Ti = BigInt(0), Xa = BigInt(1);
@@ -16112,11 +16115,11 @@ const dr = {
16112
16115
  throw new r("tlv.encode: wrong tag");
16113
16116
  if (t.length & 1)
16114
16117
  throw new r("tlv.encode: unpadded data");
16115
- const n = t.length / 2, o = yn(n);
16118
+ const n = t.length / 2, o = xn(n);
16116
16119
  if (o.length / 2 & 128)
16117
16120
  throw new r("tlv.encode: long form length too big");
16118
- const s = n > 127 ? yn(o.length / 2 | 128) : "";
16119
- return yn(e) + s + o + t;
16121
+ const s = n > 127 ? xn(o.length / 2 | 128) : "";
16122
+ return xn(e) + s + o + t;
16120
16123
  },
16121
16124
  // v - value, l - left bytes (unparsed)
16122
16125
  decode(e, t) {
@@ -16161,7 +16164,7 @@ const dr = {
16161
16164
  const { Err: t } = dr;
16162
16165
  if (e < mr)
16163
16166
  throw new t("integer: negative integers are not allowed");
16164
- let r = yn(e);
16167
+ let r = xn(e);
16165
16168
  if (Number.parseInt(r[0], 16) & 8 && (r = "00" + r), r.length & 1)
16166
16169
  throw new t("unexpected DER parsing assertion: unpadded hex");
16167
16170
  return r;
@@ -16190,7 +16193,7 @@ const dr = {
16190
16193
  }
16191
16194
  };
16192
16195
  function Yo(e, t) {
16193
- return J1(tn(e, t));
16196
+ return J1(rn(e, t));
16194
16197
  }
16195
16198
  const mr = BigInt(0), lt = BigInt(1);
16196
16199
  BigInt(2);
@@ -16198,7 +16201,7 @@ const Jo = BigInt(3), Cp = BigInt(4);
16198
16201
  function Rp(e) {
16199
16202
  const t = Up(e), { Fp: r } = t, n = fs(t.n, t.nBitLength), o = t.toBytes || ((y, W, V) => {
16200
16203
  const F = W.toAffine();
16201
- return Hn(Uint8Array.from([4]), r.toBytes(F.x), r.toBytes(F.y));
16204
+ return Kn(Uint8Array.from([4]), r.toBytes(F.x), r.toBytes(F.y));
16202
16205
  }), s = t.fromBytes || ((y) => {
16203
16206
  const W = y.subarray(1), V = r.fromBytes(W.subarray(0, r.BYTES)), F = r.fromBytes(W.subarray(r.BYTES, 2 * r.BYTES));
16204
16207
  return { x: V, y: F };
@@ -16222,7 +16225,7 @@ function Rp(e) {
16222
16225
  function d(y) {
16223
16226
  const { allowedPrivateKeyLengths: W, nByteLength: V, wrapPrivateKey: F, n: O } = t;
16224
16227
  if (W && typeof y != "bigint") {
16225
- if (en(y) && (y = J1(y)), typeof y != "string" || !W.includes(y.length))
16228
+ if (tn(y) && (y = J1(y)), typeof y != "string" || !W.includes(y.length))
16226
16229
  throw new Error("invalid private key");
16227
16230
  y = y.padStart(V * 2, "0");
16228
16231
  }
@@ -16232,7 +16235,7 @@ function Rp(e) {
16232
16235
  } catch {
16233
16236
  throw new Error("invalid private key, expected hex or " + V + " bytes, got " + typeof y);
16234
16237
  }
16235
- return F && (C = Xt(C, O)), c1("private key", C, lt, O), C;
16238
+ return F && (C = Xt(C, O)), u1("private key", C, lt, O), C;
16236
16239
  }
16237
16240
  function b(y) {
16238
16241
  if (!(y instanceof v))
@@ -16385,7 +16388,7 @@ function Rp(e) {
16385
16388
  */
16386
16389
  multiplyUnsafe(W) {
16387
16390
  const { endo: V, n: F } = t;
16388
- c1("scalar", W, mr, F);
16391
+ u1("scalar", W, mr, F);
16389
16392
  const O = v.ZERO;
16390
16393
  if (W === mr)
16391
16394
  return O;
@@ -16409,7 +16412,7 @@ function Rp(e) {
16409
16412
  */
16410
16413
  multiply(W) {
16411
16414
  const { endo: V, n: F } = t;
16412
- c1("scalar", W, lt, F);
16415
+ u1("scalar", W, lt, F);
16413
16416
  let O, C;
16414
16417
  if (V) {
16415
16418
  const { k1neg: R, k1: j, k2neg: H, k2: k } = V.splitScalar(W);
@@ -16489,7 +16492,7 @@ function Pp(e) {
16489
16492
  const { ProjectivePoint: f, normPrivateKeyToScalar: d, weierstrassEquation: b, isWithinCurveOrder: h } = Rp({
16490
16493
  ...t,
16491
16494
  toBytes(P, U, K) {
16492
- const J = U.toAffine(), D = r.toBytes(J.x), Q = Hn;
16495
+ const J = U.toAffine(), D = r.toBytes(J.x), Q = Kn;
16493
16496
  return Y1("isCompressed", K), K ? Q(Uint8Array.from([U.hasEvenY() ? 2 : 3]), D) : Q(Uint8Array.from([4]), D, r.toBytes(J.y));
16494
16497
  },
16495
16498
  fromBytes(P) {
@@ -16527,7 +16530,7 @@ function Pp(e) {
16527
16530
  const N = (P, U, K) => Jr(P.slice(U, K));
16528
16531
  class q {
16529
16532
  constructor(U, K, J) {
16530
- c1("r", U, lt, n), c1("s", K, lt, n), this.r = U, this.s = K, J != null && (this.recovery = J), Object.freeze(this);
16533
+ u1("r", U, lt, n), u1("s", K, lt, n), this.r = U, this.s = K, J != null && (this.recovery = J), Object.freeze(this);
16531
16534
  }
16532
16535
  // pair (bytes of r, bytes of s)
16533
16536
  static fromCompact(U) {
@@ -16570,14 +16573,14 @@ function Pp(e) {
16570
16573
  }
16571
16574
  // DER-encoded
16572
16575
  toDERRawBytes() {
16573
- return Zn(this.toDERHex());
16576
+ return Hn(this.toDERHex());
16574
16577
  }
16575
16578
  toDERHex() {
16576
16579
  return dr.hexFromSig(this);
16577
16580
  }
16578
16581
  // padded bytes of r, then padded bytes of s
16579
16582
  toCompactRawBytes() {
16580
- return Zn(this.toCompactHex());
16583
+ return Hn(this.toCompactHex());
16581
16584
  }
16582
16585
  toCompactHex() {
16583
16586
  const U = o;
@@ -16641,7 +16644,7 @@ function Pp(e) {
16641
16644
  return c(F(P));
16642
16645
  }, C = lo(s);
16643
16646
  function R(P) {
16644
- return c1("num < 2^" + s, P, mr, C), tn(P, o);
16647
+ return u1("num < 2^" + s, P, mr, C), rn(P, o);
16645
16648
  }
16646
16649
  function j(P, U, K = H) {
16647
16650
  if (["recovered", "canonical"].some((pe) => pe in K))
@@ -16654,7 +16657,7 @@ function Pp(e) {
16654
16657
  const pe = $ === !0 ? D(r.BYTES) : $;
16655
16658
  I.push(Pt("extraEntropy", pe));
16656
16659
  }
16657
- const ne = Hn(...I), ee = _;
16660
+ const ne = Kn(...I), ee = _;
16658
16661
  function ae(pe) {
16659
16662
  const se = F(pe);
16660
16663
  if (!h(se))
@@ -16685,7 +16688,7 @@ function Pp(e) {
16685
16688
  throw new Error("options.strict was renamed to lowS");
16686
16689
  if ($ !== void 0 && $ !== "compact" && $ !== "der")
16687
16690
  throw new Error("format must be compact or der");
16688
- const _ = typeof D == "string" || en(D), A = !_ && !$ && typeof D == "object" && D !== null && typeof D.r == "bigint" && typeof D.s == "bigint";
16691
+ const _ = typeof D == "string" || tn(D), A = !_ && !$ && typeof D == "object" && D !== null && typeof D.r == "bigint" && typeof D.s == "bigint";
16689
16692
  if (!_ && !A)
16690
16693
  throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");
16691
16694
  let I, ne;
@@ -16849,7 +16852,7 @@ function Mp(e, t = "=") {
16849
16852
  }
16850
16853
  };
16851
16854
  }
16852
- const q6 = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? /* @__PURE__ */ q6(t, e % t) : e, Kn = /* @__NO_SIDE_EFFECTS__ */ (e, t) => e + (t - /* @__PURE__ */ q6(e, t));
16855
+ const q6 = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? /* @__PURE__ */ q6(t, e % t) : e, kn = /* @__NO_SIDE_EFFECTS__ */ (e, t) => e + (t - /* @__PURE__ */ q6(e, t));
16853
16856
  // @__NO_SIDE_EFFECTS__
16854
16857
  function Ri(e, t, r, n) {
16855
16858
  if (!Array.isArray(e))
@@ -16858,8 +16861,8 @@ function Ri(e, t, r, n) {
16858
16861
  throw new Error(`convertRadix2: wrong from=${t}`);
16859
16862
  if (r <= 0 || r > 32)
16860
16863
  throw new Error(`convertRadix2: wrong to=${r}`);
16861
- if (/* @__PURE__ */ Kn(t, r) > 32)
16862
- throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${/* @__PURE__ */ Kn(t, r)}`);
16864
+ if (/* @__PURE__ */ kn(t, r) > 32)
16865
+ throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${/* @__PURE__ */ kn(t, r)}`);
16863
16866
  let o = 0, s = 0;
16864
16867
  const l = 2 ** r - 1, i = [];
16865
16868
  for (const c of e) {
@@ -16881,7 +16884,7 @@ function Ri(e, t, r, n) {
16881
16884
  function Qp(e, t = !1) {
16882
16885
  if (e <= 0 || e > 32)
16883
16886
  throw new Error("radix2: bits should be in (0..32]");
16884
- if (/* @__PURE__ */ Kn(8, e) > 32 || /* @__PURE__ */ Kn(e, 8) > 32)
16887
+ if (/* @__PURE__ */ kn(8, e) > 32 || /* @__PURE__ */ kn(e, 8) > 32)
16885
16888
  throw new Error("radix2: carry overflow");
16886
16889
  return {
16887
16890
  encode: (r) => {
@@ -16945,11 +16948,11 @@ function Ip() {
16945
16948
  }
16946
16949
  return F1;
16947
16950
  }
16948
- var xn = {};
16951
+ var Nn = {};
16949
16952
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
16950
16953
  var Pi;
16951
16954
  function Bp() {
16952
- return Pi || (Pi = 1, xn.read = function(e, t, r, n, o) {
16955
+ return Pi || (Pi = 1, Nn.read = function(e, t, r, n, o) {
16953
16956
  var s, l, i = o * 8 - n - 1, c = (1 << i) - 1, u = c >> 1, f = -7, d = r ? o - 1 : 0, b = r ? -1 : 1, h = e[t + d];
16954
16957
  for (d += b, s = h & (1 << -f) - 1, h >>= -f, f += i; f > 0; s = s * 256 + e[t + d], d += b, f -= 8)
16955
16958
  ;
@@ -16963,14 +16966,14 @@ function Bp() {
16963
16966
  l = l + Math.pow(2, n), s = s - u;
16964
16967
  }
16965
16968
  return (h ? -1 : 1) * l * Math.pow(2, s - n);
16966
- }, xn.write = function(e, t, r, n, o, s) {
16969
+ }, Nn.write = function(e, t, r, n, o, s) {
16967
16970
  var l, i, c, u = s * 8 - o - 1, f = (1 << u) - 1, d = f >> 1, b = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = n ? 0 : s - 1, x = n ? 1 : -1, v = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
16968
16971
  for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (i = isNaN(t) ? 1 : 0, l = f) : (l = Math.floor(Math.log(t) / Math.LN2), t * (c = Math.pow(2, -l)) < 1 && (l--, c *= 2), l + d >= 1 ? t += b / c : t += b * Math.pow(2, 1 - d), t * c >= 2 && (l++, c /= 2), l + d >= f ? (i = 0, l = f) : l + d >= 1 ? (i = (t * c - 1) * Math.pow(2, o), l = l + d) : (i = t * Math.pow(2, d - 1) * Math.pow(2, o), l = 0)); o >= 8; e[r + h] = i & 255, h += x, i /= 256, o -= 8)
16969
16972
  ;
16970
16973
  for (l = l << o | i, u += o; u > 0; e[r + h] = l & 255, h += x, l /= 256, u -= 8)
16971
16974
  ;
16972
16975
  e[r + h - x] |= v * 128;
16973
- }), xn;
16976
+ }), Nn;
16974
16977
  }
16975
16978
  /*!
16976
16979
  * The buffer module from node.js, for the browser.
@@ -17998,9 +18001,9 @@ var _p = Ap(), ft = Uint8Array, Ut = Uint16Array, ps = Int32Array, uo = new ft([
17998
18001
  }, V6 = L6(uo, 2), O6 = V6.b, La = V6.r;
17999
18002
  O6[28] = 258, La[258] = 28;
18000
18003
  var F6 = L6(fo, 0), $p = F6.b, Hi = F6.r, Va = new Ut(32768);
18001
- for (var Be = 0; Be < 32768; ++Be) {
18002
- var Wr = (Be & 43690) >> 1 | (Be & 21845) << 1;
18003
- Wr = (Wr & 52428) >> 2 | (Wr & 13107) << 2, Wr = (Wr & 61680) >> 4 | (Wr & 3855) << 4, Va[Be] = ((Wr & 65280) >> 8 | (Wr & 255) << 8) >> 1;
18004
+ for (var Ae = 0; Ae < 32768; ++Ae) {
18005
+ var Wr = (Ae & 43690) >> 1 | (Ae & 21845) << 1;
18006
+ Wr = (Wr & 52428) >> 2 | (Wr & 13107) << 2, Wr = (Wr & 61680) >> 4 | (Wr & 3855) << 4, Va[Ae] = ((Wr & 65280) >> 8 | (Wr & 255) << 8) >> 1;
18004
18007
  }
18005
18008
  var rr = function(e, t, r) {
18006
18009
  for (var n = e.length, o = 0, s = new Ut(t); o < n; ++o)
@@ -18021,17 +18024,17 @@ var rr = function(e, t, r) {
18021
18024
  e[o] && (i[o] = Va[l[e[o] - 1]++] >> 15 - e[o]);
18022
18025
  return i;
18023
18026
  }, Ur = new ft(288);
18024
- for (var Be = 0; Be < 144; ++Be)
18025
- Ur[Be] = 8;
18026
- for (var Be = 144; Be < 256; ++Be)
18027
- Ur[Be] = 9;
18028
- for (var Be = 256; Be < 280; ++Be)
18029
- Ur[Be] = 7;
18030
- for (var Be = 280; Be < 288; ++Be)
18031
- Ur[Be] = 8;
18027
+ for (var Ae = 0; Ae < 144; ++Ae)
18028
+ Ur[Ae] = 8;
18029
+ for (var Ae = 144; Ae < 256; ++Ae)
18030
+ Ur[Ae] = 9;
18031
+ for (var Ae = 256; Ae < 280; ++Ae)
18032
+ Ur[Ae] = 7;
18033
+ for (var Ae = 280; Ae < 288; ++Ae)
18034
+ Ur[Ae] = 8;
18032
18035
  var G1 = new ft(32);
18033
- for (var Be = 0; Be < 32; ++Be)
18034
- G1[Be] = 5;
18036
+ for (var Ae = 0; Ae < 32; ++Ae)
18037
+ G1[Ae] = 5;
18035
18038
  var em = /* @__PURE__ */ rr(Ur, 9, 0), tm = /* @__PURE__ */ rr(Ur, 9, 1), rm = /* @__PURE__ */ rr(G1, 5, 0), nm = /* @__PURE__ */ rr(G1, 5, 1), Do = function(e) {
18036
18039
  for (var t = e[0], r = 1; r < e.length; ++r)
18037
18040
  e[r] > t && (t = e[r]);
@@ -18490,7 +18493,7 @@ class gm {
18490
18493
  return Object.entries(localStorage).map(([t]) => t);
18491
18494
  }
18492
18495
  }
18493
- var n1 = typeof window < "u" && window.localStorage ? new gm() : new wm();
18496
+ var o1 = typeof window < "u" && window.localStorage ? new gm() : new wm();
18494
18497
  const Wm = ({ providerAppId: e, chains: t, chainId: r, apiUrl: n, connectionOpts: o }) => new qm(e, t, r, n, o);
18495
18498
  class qm {
18496
18499
  get STORAGE_CONNECTION_KEY() {
@@ -18509,7 +18512,7 @@ class qm {
18509
18512
  return this._providerUrl;
18510
18513
  }
18511
18514
  clearConnection() {
18512
- this._sharedSecret = void 0, this._publicKey = void 0, this._address = void 0, n1.del(this.STORAGE_CONNECTION_KEY), n1.del(this.STORAGE_CHAIN_ID_KEY);
18515
+ this._sharedSecret = void 0, this._publicKey = void 0, this._address = void 0, o1.del(this.STORAGE_CONNECTION_KEY), o1.del(this.STORAGE_CHAIN_ID_KEY);
18513
18516
  }
18514
18517
  get chain() {
18515
18518
  return this.chains.find(({ id: t }) => t === this.chainId);
@@ -18519,10 +18522,10 @@ class qm {
18519
18522
  }
18520
18523
  async requestConnection() {
18521
18524
  let { address: t, sharedSecret: r, publicKey: n, exp: o } = await Xm({ providerAppId: this.providerAppId, providerUrl: await this.getProviderUrl(), connectionOpts: this._connectionOpts });
18522
- n1.put(this.STORAGE_CONNECTION_KEY, { address: t, sharedSecret: r, publicKey: n, exp: o }), this._address = t, this._sharedSecret = r, this._publicKey = n;
18525
+ o1.put(this.STORAGE_CONNECTION_KEY, { address: t, sharedSecret: r, publicKey: n, exp: o }), this._address = t, this._sharedSecret = r, this._publicKey = n;
18523
18526
  }
18524
18527
  switchChain({ id: t }) {
18525
- this.chainId = t, n1.put(this.STORAGE_CHAIN_ID_KEY, this.chainId);
18528
+ this.chainId = t, o1.put(this.STORAGE_CHAIN_ID_KEY, this.chainId);
18526
18529
  }
18527
18530
  async sendRequest(t, r) {
18528
18531
  if (!this._sharedSecret || !this._publicKey) throw Error(`Must call 'eth_requestAccounts' before ${t}`);
@@ -18534,13 +18537,13 @@ class qm {
18534
18537
  }
18535
18538
  constructor(t, r, n, o, s) {
18536
18539
  this.providerAppId = t, this.chains = r, this._apiUrl = o ?? "https://auth.privy.io", this._connectionOpts = s;
18537
- let l = n1.get(this.STORAGE_CONNECTION_KEY), i = l && l.exp > (/* @__PURE__ */ new Date()).getTime(), c = n1.get(this.STORAGE_CHAIN_ID_KEY);
18540
+ let l = o1.get(this.STORAGE_CONNECTION_KEY), i = l && l.exp > (/* @__PURE__ */ new Date()).getTime(), c = o1.get(this.STORAGE_CHAIN_ID_KEY);
18538
18541
  this.chainId = n ?? c ?? r[0].id, i ? (this._sharedSecret = l.sharedSecret, this._publicKey = l.publicKey, this._address = l.address) : this.clearConnection(), this.getProviderUrl();
18539
18542
  }
18540
18543
  }
18541
18544
  const Lm = (e) => {
18542
18545
  var s;
18543
- let t = Wm({ providerAppId: e.providerAppId, chains: e.chains, chainId: e.chainId, apiUrl: e.apiUrl, connectionOpts: { smartWalletMode: e.smartWalletMode } }), r = Wn({ chain: t.chain, transport: ((s = e.transports) == null ? void 0 : s[t.chain.id]) ?? u1() }), n = { accountsChanged: [], connect: [], chainChanged: [], disconnect: [], message: [] }, o = () => {
18546
+ let t = Wm({ providerAppId: e.providerAppId, chains: e.chains, chainId: e.chainId, apiUrl: e.apiUrl, connectionOpts: { smartWalletMode: e.smartWalletMode } }), r = qn({ chain: t.chain, transport: ((s = e.transports) == null ? void 0 : s[t.chain.id]) ?? d1() }), n = { accountsChanged: [], connect: [], chainChanged: [], disconnect: [], message: [] }, o = () => {
18544
18547
  var l;
18545
18548
  t.clearConnection(), (l = n.accountsChanged) == null || l.forEach((i) => i([]));
18546
18549
  };
@@ -18561,7 +18564,7 @@ const Lm = (e) => {
18561
18564
  case "eth_accounts":
18562
18565
  return t.address ? [t.address] : [];
18563
18566
  case "wallet_switchEthereumChain":
18564
- return t.switchChain({ id: Number(c[0].chainId) }), r = Wn({ chain: t.chain, transport: ((d = e.transports) == null ? void 0 : d[t.chain.id]) ?? u1() }), n.chainChanged.forEach((h) => h(Yi(t.chain.id))), null;
18567
+ return t.switchChain({ id: Number(c[0].chainId) }), r = qn({ chain: t.chain, transport: ((d = e.transports) == null ? void 0 : d[t.chain.id]) ?? d1() }), n.chainChanged.forEach((h) => h(Yi(t.chain.id))), null;
18565
18568
  case "wallet_revokePermissions":
18566
18569
  return void o();
18567
18570
  case "eth_sendTransaction":
@@ -18680,7 +18683,7 @@ const Tm = new Ai(), ah = ({
18680
18683
  }) => {
18681
18684
  const l = wt(
18682
18685
  () => e.reduce(
18683
- (c, u) => (c[u.id] = u1(), c),
18686
+ (c, u) => (c[u.id] = d1(), c),
18684
18687
  {}
18685
18688
  ),
18686
18689
  [e]
@@ -18692,12 +18695,12 @@ const Tm = new Ai(), ah = ({
18692
18695
  transports: t ?? l,
18693
18696
  multiInjectedProviderDiscovery: !1
18694
18697
  }),
18695
- [e, t, l, s.useStagingTenant]
18698
+ [e, t, l, s.useStagingTenant, o]
18696
18699
  );
18697
18700
  return /* @__PURE__ */ a.jsx(I6, { config: i, children: /* @__PURE__ */ a.jsx(Bi, { client: r, children: /* @__PURE__ */ a.jsx(
18698
18701
  n6,
18699
18702
  {
18700
- strategy: s1.EIP1193,
18703
+ strategy: i1.EIP1193,
18701
18704
  walletClientType: i2.WAGMI,
18702
18705
  ...s,
18703
18706
  children: n
@@ -18761,9 +18764,9 @@ const Tm = new Ai(), ah = ({
18761
18764
  }, h = (F) => !!b[F], x = wt(() => Object.fromEntries(
18762
18765
  e.map((F) => [
18763
18766
  F.id,
18764
- Wn({
18767
+ qn({
18765
18768
  chain: F,
18766
- transport: u1(F.rpcUrls.default.http[0])
18769
+ transport: d1(F.rpcUrls.default.http[0])
18767
18770
  })
18768
18771
  ])
18769
18772
  ), [e]), v = (F) => {
@@ -18922,34 +18925,38 @@ const Tm = new Ai(), ah = ({
18922
18925
  glyphUrl: n,
18923
18926
  useStagingTenant: o,
18924
18927
  ssr: s,
18925
- ...l
18928
+ onLogin: l,
18929
+ onLogout: i,
18930
+ ...c
18926
18931
  }) => {
18927
- const i = wt(
18932
+ const u = wt(
18928
18933
  () => u5({
18929
18934
  chains: e,
18930
18935
  ssr: s,
18931
18936
  connectors: [],
18932
18937
  transports: t ?? e.reduce(
18933
- (c, u) => (c[u.id] = u1(), c),
18938
+ (f, d) => (f[d.id] = d1(), f),
18934
18939
  {}
18935
18940
  ),
18936
18941
  multiInjectedProviderDiscovery: !1
18937
18942
  }),
18938
18943
  [e, t]
18939
18944
  );
18940
- return l.config ? l.config.loginMethodsAndOrder || (l.config.loginMethodsAndOrder = {
18945
+ return c.config ? c.config.loginMethodsAndOrder || (c.config.loginMethodsAndOrder = {
18941
18946
  primary: [o ? Di : Gi]
18942
- }) : l.config = {
18947
+ }) : c.config = {
18943
18948
  loginMethodsAndOrder: {
18944
18949
  primary: [o ? Di : Gi]
18945
18950
  }
18946
- }, /* @__PURE__ */ a.jsx(c5, { ...l, children: /* @__PURE__ */ a.jsx(Bi, { client: r, children: /* @__PURE__ */ a.jsx(d5, { config: i, children: /* @__PURE__ */ a.jsx(Um, { useStagingTenant: o, children: /* @__PURE__ */ a.jsx(
18951
+ }, /* @__PURE__ */ a.jsx(c5, { ...c, children: /* @__PURE__ */ a.jsx(Bi, { client: r, children: /* @__PURE__ */ a.jsx(d5, { config: u, children: /* @__PURE__ */ a.jsx(Um, { useStagingTenant: o, children: /* @__PURE__ */ a.jsx(
18947
18952
  n6,
18948
18953
  {
18949
- strategy: s1.PRIVY,
18954
+ strategy: i1.PRIVY,
18950
18955
  glyphUrl: n,
18951
18956
  useStagingTenant: o,
18952
- children: l.children
18957
+ onLogin: l,
18958
+ onLogout: i,
18959
+ children: c.children
18953
18960
  }
18954
18961
  ) }) }) }) });
18955
18962
  }
@@ -18978,7 +18985,7 @@ export {
18978
18985
  th as m,
18979
18986
  St as n,
18980
18987
  _e as o,
18981
- s1 as p,
18988
+ i1 as p,
18982
18989
  i2 as q,
18983
18990
  Af as r,
18984
18991
  Fm as s,