@use-glyph/sdk-react 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as c, jsxs as S, Fragment as ve } from "react/jsx-runtime";
2
2
  import * as B from "react";
3
- import q, { createContext as Ao, useContext as Cr, useState as re, useEffect as xe, memo as gt, forwardRef as Dt, createElement as al, useLayoutEffect as Cp, useMemo as Fe, useCallback as rt, useRef as So, lazy as xp } from "react";
4
- import { useChainId as Mt, injected as f0, useChains as Ep, useSwitchChain as Yl, useConfig as To, deepEqual as g0, useConnect as w0, useDisconnect as b0, useAccount as y0, createConfig as C0, WagmiProvider as x0, useReconnect as E0 } from "wagmi";
5
- import { parseSignature as v0, encodeFunctionData as vp, custom as hs, createPublicClient as wn, http as Et, hexToBigInt as Ir, fallback as sl, createWalletClient as k0, zeroAddress as Nt, formatUnits as _r, parseUnits as Xl, isAddress as ol, checksumAddress as qa, erc20Abi as hi, parseEther as A0, publicActions as S0, extractChain as T0, ProviderRpcError as fi, getAddress as pd, SwitchChainError as U0, fromHex as I0, isHex as N0, hexToNumber as B0, webSocket as R0 } from "viem";
3
+ import q, { createContext as Ao, useContext as Cr, useState as re, useEffect as xe, memo as gt, forwardRef as Dt, createElement as sl, useLayoutEffect as Cp, useMemo as Fe, useCallback as rt, useRef as So, lazy as xp } from "react";
4
+ import { useChainId as Mt, injected as f0, useChains as Ep, useSwitchChain as Xl, useConfig as To, deepEqual as g0, useConnect as w0, useDisconnect as b0, useAccount as y0, createConfig as C0, WagmiProvider as x0, useReconnect as E0 } from "wagmi";
5
+ import { parseSignature as v0, encodeFunctionData as vp, custom as hs, createPublicClient as wn, http as Et, hexToBigInt as Ir, fallback as ol, createWalletClient as k0, zeroAddress as vt, formatUnits as _r, parseUnits as Hl, isAddress as il, checksumAddress as qa, erc20Abi as hi, parseEther as A0, publicActions as S0, extractChain as T0, ProviderRpcError as fi, getAddress as md, SwitchChainError as U0, fromHex as I0, isHex as N0, hexToNumber as B0, webSocket as R0 } from "viem";
6
6
  import * as kp from "react-dom";
7
7
  import Ap from "react-dom";
8
8
  import { useMutation as F0, useQuery as Da, QueryClientProvider as Sp, QueryClient as Tp } from "@tanstack/react-query";
@@ -28,7 +28,7 @@ const q0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
28
  get getSolverCapacity() {
29
29
  return Fk;
30
30
  }
31
- }, Symbol.toStringTag, { value: "Module" })), Uo = Ao(void 0), Hl = Ao(null);
31
+ }, Symbol.toStringTag, { value: "Module" })), Uo = Ao(void 0), jl = Ao(null);
32
32
  function pM(e, t, r) {
33
33
  return async (n, a) => {
34
34
  const s = {
@@ -135,9 +135,9 @@ const K0 = /* @__PURE__ */ m({
135
135
  let gi = {
136
136
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: r }) => t ? `${e ?? "https://viem.sh"}${t}${r ? `#${r}` : ""}` : void 0,
137
137
  version: `viem@${Up}`
138
- }, ge = class il extends Error {
138
+ }, ge = class ll extends Error {
139
139
  constructor(t, r = {}) {
140
- const n = r.cause instanceof il ? r.cause.details : r.cause?.message ? r.cause.message : r.details, a = r.cause instanceof il && r.cause.docsPath || r.docsPath, s = gi.getDocsUrl?.({ ...r, docsPath: a }), o = [
140
+ const n = r.cause instanceof ll ? r.cause.details : r.cause?.message ? r.cause.message : r.details, a = r.cause instanceof ll && r.cause.docsPath || r.docsPath, s = gi.getDocsUrl?.({ ...r, docsPath: a }), o = [
141
141
  t || "An error occurred.",
142
142
  "",
143
143
  ...r.metaMessages ? [...r.metaMessages, ""] : [],
@@ -302,7 +302,7 @@ const Ar = {
302
302
  a: 97,
303
303
  f: 102
304
304
  };
305
- function md(e) {
305
+ function hd(e) {
306
306
  if (e >= Ar.zero && e <= Ar.nine)
307
307
  return e - Ar.zero;
308
308
  if (e >= Ar.A && e <= Ar.F)
@@ -317,7 +317,7 @@ function fr(e, t = {}) {
317
317
  n.length % 2 && (n = `0${n}`);
318
318
  const a = n.length / 2, s = new Uint8Array(a);
319
319
  for (let o = 0, i = 0; o < a; o++) {
320
- const l = md(n.charCodeAt(i++)), u = md(n.charCodeAt(i++));
320
+ const l = hd(n.charCodeAt(i++)), u = hd(n.charCodeAt(i++));
321
321
  if (l === void 0 || u === void 0)
322
322
  throw new ge(`Invalid byte sequence ("${n[i - 2]}${n[i - 1]}" in "${n}").`);
323
323
  s[o] = l * 16 + u;
@@ -406,7 +406,7 @@ function Bo(e) {
406
406
  }
407
407
  })(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
408
408
  }
409
- const jl = /* @__PURE__ */ No("transaction", Bo);
409
+ const _l = /* @__PURE__ */ No("transaction", Bo);
410
410
  function ng(e) {
411
411
  return e.map((t) => ({
412
412
  address: t.address,
@@ -437,7 +437,7 @@ function ag(e) {
437
437
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
438
438
  };
439
439
  }
440
- const _l = /* @__PURE__ */ No("block", ag);
440
+ const $l = /* @__PURE__ */ No("block", ag);
441
441
  function Fp(e, { args: t, eventName: r } = {}) {
442
442
  return {
443
443
  ...e,
@@ -492,8 +492,8 @@ function lg(e) {
492
492
  ...typeof t.v < "u" && typeof t.yParity > "u" ? { v: he(t.v) } : {}
493
493
  }));
494
494
  }
495
- const cg = 2n ** 16n - 1n, rs = 2n ** 256n - 1n, $l = 50000n, hd = cg * 32n, Lp = {
496
- block: /* @__PURE__ */ _l({
495
+ const cg = 2n ** 16n - 1n, rs = 2n ** 256n - 1n, ec = 50000n, fd = cg * 32n, Lp = {
496
+ block: /* @__PURE__ */ $l({
497
497
  format(e) {
498
498
  const t = e.transactions?.map((r) => {
499
499
  if (typeof r == "string")
@@ -508,7 +508,7 @@ const cg = 2n ** 16n - 1n, rs = 2n ** 256n - 1n, $l = 50000n, hd = cg * 32n, Lp
508
508
  };
509
509
  }
510
510
  }),
511
- transaction: /* @__PURE__ */ jl({
511
+ transaction: /* @__PURE__ */ _l({
512
512
  format(e) {
513
513
  const t = {};
514
514
  return e.type === "0x71" ? t.type = "eip712" : e.type === "0xff" && (t.type = "priority"), {
@@ -556,7 +556,7 @@ const cg = 2n ** 16n - 1n, rs = 2n ** 256n - 1n, $l = 50000n, hd = cg * 32n, Lp
556
556
  format(e) {
557
557
  return e.gasPerPubdata || e.paymaster && e.paymasterInput || e.factoryDeps || e.customSignature ? {
558
558
  eip712Meta: {
559
- ...e.gasPerPubdata ? { gasPerPubdata: De(e.gasPerPubdata) } : { gasPerPubdata: De($l) },
559
+ ...e.gasPerPubdata ? { gasPerPubdata: De(e.gasPerPubdata) } : { gasPerPubdata: De(ec) },
560
560
  ...e.paymaster && e.paymasterInput ? {
561
561
  paymasterParams: {
562
562
  paymaster: e.paymaster,
@@ -578,7 +578,7 @@ const cg = 2n ** 16n - 1n, rs = 2n ** 256n - 1n, $l = 50000n, hd = cg * 32n, Lp
578
578
  function An(e) {
579
579
  return `0x${e.reduce((t, r) => t + r.replace("0x", ""), "")}`;
580
580
  }
581
- class fd extends ge {
581
+ class gd extends ge {
582
582
  constructor({ offset: t }) {
583
583
  super(`Offset \`${t}\` cannot be negative.`, {
584
584
  name: "NegativeOffsetError"
@@ -618,7 +618,7 @@ const pg = {
618
618
  },
619
619
  decrementPosition(e) {
620
620
  if (e < 0)
621
- throw new fd({ offset: e });
621
+ throw new gd({ offset: e });
622
622
  const t = this.position - e;
623
623
  this.assertPosition(t), this.position = t;
624
624
  },
@@ -627,7 +627,7 @@ const pg = {
627
627
  },
628
628
  incrementPosition(e) {
629
629
  if (e < 0)
630
- throw new fd({ offset: e });
630
+ throw new gd({ offset: e });
631
631
  const t = this.position + e;
632
632
  this.assertPosition(t), this.position = t;
633
633
  },
@@ -912,7 +912,7 @@ function Sg(e) {
912
912
  e[t] = Ag(e[t]);
913
913
  return e;
914
914
  }
915
- const gd = kg ? (e) => e : Sg, Pp = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", Tg = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
915
+ const wd = kg ? (e) => e : Sg, Pp = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", Tg = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
916
916
  function qn(e) {
917
917
  if (Wr(e), Pp)
918
918
  return e.toHex();
@@ -922,7 +922,7 @@ function qn(e) {
922
922
  return t;
923
923
  }
924
924
  const Sr = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
925
- function wd(e) {
925
+ function bd(e) {
926
926
  if (e >= Sr._0 && e <= Sr._9)
927
927
  return e - Sr._0;
928
928
  if (e >= Sr.A && e <= Sr.F)
@@ -940,7 +940,7 @@ function uo(e) {
940
940
  throw new Error("hex string expected, got unpadded hex of length " + t);
941
941
  const n = new Uint8Array(r);
942
942
  for (let a = 0, s = 0; a < r; a++, s += 2) {
943
- const o = wd(e.charCodeAt(s)), i = wd(e.charCodeAt(s + 1));
943
+ const o = bd(e.charCodeAt(s)), i = bd(e.charCodeAt(s + 1));
944
944
  if (o === void 0 || i === void 0) {
945
945
  const l = e[s] + e[s + 1];
946
946
  throw new Error('hex string expected, got non-hex character "' + l + '" at index ' + s);
@@ -970,7 +970,7 @@ function jr(...e) {
970
970
  }
971
971
  return r;
972
972
  }
973
- class ec {
973
+ class tc {
974
974
  }
975
975
  function Yp(e) {
976
976
  const t = (n) => e().update(Fo(n)).digest(), r = e();
@@ -995,7 +995,7 @@ function Ng(e, t, r) {
995
995
  function Bg(e, t, r) {
996
996
  return e & t ^ e & r ^ t & r;
997
997
  }
998
- class Rg extends ec {
998
+ class Rg extends tc {
999
999
  constructor(t, r, n, a) {
1000
1000
  super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = a, this.buffer = new Uint8Array(t), this.view = wi(this.buffer);
1001
1001
  }
@@ -1055,9 +1055,9 @@ const Zr = /* @__PURE__ */ Uint32Array.from([
1055
1055
  2600822924,
1056
1056
  528734635,
1057
1057
  1541459225
1058
- ]), fs = /* @__PURE__ */ BigInt(2 ** 32 - 1), bd = /* @__PURE__ */ BigInt(32);
1058
+ ]), fs = /* @__PURE__ */ BigInt(2 ** 32 - 1), yd = /* @__PURE__ */ BigInt(32);
1059
1059
  function Fg(e, t = !1) {
1060
- return t ? { h: Number(e & fs), l: Number(e >> bd & fs) } : { h: Number(e >> bd & fs) | 0, l: Number(e & fs) | 0 };
1060
+ return t ? { h: Number(e & fs), l: Number(e >> yd & fs) } : { h: Number(e >> yd & fs) | 0, l: Number(e & fs) | 0 };
1061
1061
  }
1062
1062
  function Mg(e, t = !1) {
1063
1063
  const r = e.length;
@@ -1186,9 +1186,9 @@ function Gg(e) {
1186
1186
  }));
1187
1187
  return a;
1188
1188
  }
1189
- const yd = 6, _p = 32, tc = 4096, $p = _p * tc, Cd = $p * yd - // terminator byte (0x80).
1189
+ const Cd = 6, _p = 32, rc = 4096, $p = _p * rc, xd = $p * Cd - // terminator byte (0x80).
1190
1190
  1 - // zero byte (0x00) appended to each field element.
1191
- 1 * tc * yd, e1 = 1;
1191
+ 1 * rc * Cd, e1 = 1;
1192
1192
  class Zg extends ge {
1193
1193
  constructor({ maxSize: t, size: r }) {
1194
1194
  super("Blob size is too large.", {
@@ -1225,9 +1225,9 @@ function Pg(e) {
1225
1225
  const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), r = typeof e.data == "string" ? fr(e.data) : e.data, n = Qn(r);
1226
1226
  if (!n)
1227
1227
  throw new t1();
1228
- if (n > Cd)
1228
+ if (n > xd)
1229
1229
  throw new Zg({
1230
- maxSize: Cd,
1230
+ maxSize: xd,
1231
1231
  size: n
1232
1232
  });
1233
1233
  const a = [];
@@ -1235,7 +1235,7 @@ function Pg(e) {
1235
1235
  for (; s; ) {
1236
1236
  const i = Op(new Uint8Array($p));
1237
1237
  let l = 0;
1238
- for (; l < tc; ) {
1238
+ for (; l < rc; ) {
1239
1239
  const u = r.slice(o, o + (_p - 1));
1240
1240
  if (i.pushByte(0), i.pushBytes(u), u.length < 31) {
1241
1241
  i.pushByte(128), s = !1;
@@ -1308,7 +1308,7 @@ Object.defineProperty(en, "nodeMessage", {
1308
1308
  writable: !0,
1309
1309
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
1310
1310
  });
1311
- class ll extends ge {
1311
+ class cl extends ge {
1312
1312
  constructor({ cause: t, maxFeePerGas: r } = {}) {
1313
1313
  super(`The fee cap (\`maxFeePerGas\`${r ? ` = ${hn(r)}` : ""} gwei) cannot be lower than the block base fee.`, {
1314
1314
  cause: t,
@@ -1316,24 +1316,24 @@ class ll extends ge {
1316
1316
  });
1317
1317
  }
1318
1318
  }
1319
- Object.defineProperty(ll, "nodeMessage", {
1319
+ Object.defineProperty(cl, "nodeMessage", {
1320
1320
  enumerable: !0,
1321
1321
  configurable: !0,
1322
1322
  writable: !0,
1323
1323
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
1324
1324
  });
1325
- class cl extends ge {
1325
+ class dl extends ge {
1326
1326
  constructor({ cause: t, nonce: r } = {}) {
1327
1327
  super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
1328
1328
  }
1329
1329
  }
1330
- Object.defineProperty(cl, "nodeMessage", {
1330
+ Object.defineProperty(dl, "nodeMessage", {
1331
1331
  enumerable: !0,
1332
1332
  configurable: !0,
1333
1333
  writable: !0,
1334
1334
  value: /nonce too high/
1335
1335
  });
1336
- class dl extends ge {
1336
+ class ul extends ge {
1337
1337
  constructor({ cause: t, nonce: r } = {}) {
1338
1338
  super([
1339
1339
  `Nonce provided for the transaction ${r ? `(${r}) ` : ""}is lower than the current nonce of the account.`,
@@ -1342,24 +1342,24 @@ class dl extends ge {
1342
1342
  `), { cause: t, name: "NonceTooLowError" });
1343
1343
  }
1344
1344
  }
1345
- Object.defineProperty(dl, "nodeMessage", {
1345
+ Object.defineProperty(ul, "nodeMessage", {
1346
1346
  enumerable: !0,
1347
1347
  configurable: !0,
1348
1348
  writable: !0,
1349
1349
  value: /nonce too low|transaction already imported|already known/
1350
1350
  });
1351
- class ul extends ge {
1351
+ class pl extends ge {
1352
1352
  constructor({ cause: t, nonce: r } = {}) {
1353
1353
  super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
1354
1354
  }
1355
1355
  }
1356
- Object.defineProperty(ul, "nodeMessage", {
1356
+ Object.defineProperty(pl, "nodeMessage", {
1357
1357
  enumerable: !0,
1358
1358
  configurable: !0,
1359
1359
  writable: !0,
1360
1360
  value: /nonce has max value/
1361
1361
  });
1362
- class pl extends ge {
1362
+ class ml extends ge {
1363
1363
  constructor({ cause: t } = {}) {
1364
1364
  super([
1365
1365
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -1380,13 +1380,13 @@ class pl extends ge {
1380
1380
  });
1381
1381
  }
1382
1382
  }
1383
- Object.defineProperty(pl, "nodeMessage", {
1383
+ Object.defineProperty(ml, "nodeMessage", {
1384
1384
  enumerable: !0,
1385
1385
  configurable: !0,
1386
1386
  writable: !0,
1387
1387
  value: /insufficient funds|exceeds transaction sender account balance/
1388
1388
  });
1389
- class ml extends ge {
1389
+ class hl extends ge {
1390
1390
  constructor({ cause: t, gas: r } = {}) {
1391
1391
  super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
1392
1392
  cause: t,
@@ -1394,13 +1394,13 @@ class ml extends ge {
1394
1394
  });
1395
1395
  }
1396
1396
  }
1397
- Object.defineProperty(ml, "nodeMessage", {
1397
+ Object.defineProperty(hl, "nodeMessage", {
1398
1398
  enumerable: !0,
1399
1399
  configurable: !0,
1400
1400
  writable: !0,
1401
1401
  value: /intrinsic gas too high|gas limit reached/
1402
1402
  });
1403
- class hl extends ge {
1403
+ class fl extends ge {
1404
1404
  constructor({ cause: t, gas: r } = {}) {
1405
1405
  super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction is too low.`, {
1406
1406
  cause: t,
@@ -1408,13 +1408,13 @@ class hl extends ge {
1408
1408
  });
1409
1409
  }
1410
1410
  }
1411
- Object.defineProperty(hl, "nodeMessage", {
1411
+ Object.defineProperty(fl, "nodeMessage", {
1412
1412
  enumerable: !0,
1413
1413
  configurable: !0,
1414
1414
  writable: !0,
1415
1415
  value: /intrinsic gas too low/
1416
1416
  });
1417
- class fl extends ge {
1417
+ class gl extends ge {
1418
1418
  constructor({ cause: t }) {
1419
1419
  super("The transaction type is not supported for this chain.", {
1420
1420
  cause: t,
@@ -1422,7 +1422,7 @@ class fl extends ge {
1422
1422
  });
1423
1423
  }
1424
1424
  }
1425
- Object.defineProperty(fl, "nodeMessage", {
1425
+ Object.defineProperty(gl, "nodeMessage", {
1426
1426
  enumerable: !0,
1427
1427
  configurable: !0,
1428
1428
  writable: !0,
@@ -1482,20 +1482,20 @@ for (let e = 0, t = ha, r = 1, n = 0; e < 24; e++) {
1482
1482
  t = (t << ha ^ (t >> jg) * $g) % _g, t & Hg && (a ^= ha << (ha << /* @__PURE__ */ BigInt(s)) - ha);
1483
1483
  o1.push(a);
1484
1484
  }
1485
- const i1 = Mg(o1, !0), e2 = i1[0], t2 = i1[1], xd = (e, t, r) => r > 32 ? Lg(e, t, r) : Vg(e, t, r), Ed = (e, t, r) => r > 32 ? Og(e, t, r) : Wg(e, t, r);
1485
+ const i1 = Mg(o1, !0), e2 = i1[0], t2 = i1[1], Ed = (e, t, r) => r > 32 ? Lg(e, t, r) : Vg(e, t, r), vd = (e, t, r) => r > 32 ? Og(e, t, r) : Wg(e, t, r);
1486
1486
  function r2(e, t = 24) {
1487
1487
  const r = new Uint32Array(10);
1488
1488
  for (let n = 24 - t; n < 24; n++) {
1489
1489
  for (let o = 0; o < 10; o++)
1490
1490
  r[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
1491
1491
  for (let o = 0; o < 10; o += 2) {
1492
- const i = (o + 8) % 10, l = (o + 2) % 10, u = r[l], p = r[l + 1], d = xd(u, p, 1) ^ r[i], h = Ed(u, p, 1) ^ r[i + 1];
1492
+ const i = (o + 8) % 10, l = (o + 2) % 10, u = r[l], p = r[l + 1], d = Ed(u, p, 1) ^ r[i], h = vd(u, p, 1) ^ r[i + 1];
1493
1493
  for (let f = 0; f < 50; f += 10)
1494
1494
  e[o + f] ^= d, e[o + f + 1] ^= h;
1495
1495
  }
1496
1496
  let a = e[2], s = e[3];
1497
1497
  for (let o = 0; o < 24; o++) {
1498
- const i = s1[o], l = xd(a, s, i), u = Ed(a, s, i), p = a1[o];
1498
+ const i = s1[o], l = Ed(a, s, i), u = vd(a, s, i), p = a1[o];
1499
1499
  a = e[p], s = e[p + 1], e[p] = l, e[p + 1] = u;
1500
1500
  }
1501
1501
  for (let o = 0; o < 50; o += 10) {
@@ -1508,7 +1508,7 @@ function r2(e, t = 24) {
1508
1508
  }
1509
1509
  Yn(r);
1510
1510
  }
1511
- class rc extends ec {
1511
+ class nc extends tc {
1512
1512
  // NOTE: we accept arguments in bytes instead of bits here.
1513
1513
  constructor(t, r, n, a = !1, s = 24) {
1514
1514
  if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = a, this.rounds = s, Za(n), !(0 < t && t < 200))
@@ -1519,7 +1519,7 @@ class rc extends ec {
1519
1519
  return this._cloneInto();
1520
1520
  }
1521
1521
  keccak() {
1522
- gd(this.state32), r2(this.state32, this.rounds), gd(this.state32), this.posOut = 0, this.pos = 0;
1522
+ wd(this.state32), r2(this.state32, this.rounds), wd(this.state32), this.posOut = 0, this.pos = 0;
1523
1523
  }
1524
1524
  update(t) {
1525
1525
  Pn(this), t = Fo(t), Wr(t);
@@ -1570,10 +1570,10 @@ class rc extends ec {
1570
1570
  }
1571
1571
  _cloneInto(t) {
1572
1572
  const { blockLen: r, suffix: n, outputLen: a, rounds: s, enableXOF: o } = this;
1573
- return t || (t = new rc(r, n, a, o, s)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = s, t.suffix = n, t.outputLen = a, t.enableXOF = o, t.destroyed = this.destroyed, t;
1573
+ return t || (t = new nc(r, n, a, o, s)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = s, t.suffix = n, t.outputLen = a, t.enableXOF = o, t.destroyed = this.destroyed, t;
1574
1574
  }
1575
1575
  }
1576
- const n2 = (e, t, r) => Yp(() => new rc(t, e, r)), a2 = n2(1, 136, 256 / 8);
1576
+ const n2 = (e, t, r) => Yp(() => new nc(t, e, r)), a2 = n2(1, 136, 256 / 8);
1577
1577
  function s2(e, t) {
1578
1578
  return a2(ts(e, { strict: !1 }) ? Ka(e) : e);
1579
1579
  }
@@ -1628,7 +1628,7 @@ function u2(e) {
1628
1628
  if (n < 0)
1629
1629
  throw new aa({ chainId: n });
1630
1630
  }
1631
- nc(e);
1631
+ ac(e);
1632
1632
  }
1633
1633
  function p2(e) {
1634
1634
  const { blobVersionedHashes: t } = e;
@@ -1646,9 +1646,9 @@ function p2(e) {
1646
1646
  });
1647
1647
  }
1648
1648
  }
1649
- nc(e);
1649
+ ac(e);
1650
1650
  }
1651
- function nc(e) {
1651
+ function ac(e) {
1652
1652
  const { chainId: t, maxPriorityFeePerGas: r, maxFeePerGas: n, to: a } = e;
1653
1653
  if (t <= 0)
1654
1654
  throw new aa({ chainId: t });
@@ -1777,7 +1777,7 @@ function w2(e, t) {
1777
1777
  }
1778
1778
  function b2(e, t) {
1779
1779
  const { chainId: r, gas: n, nonce: a, to: s, value: o, maxFeePerGas: i, maxPriorityFeePerGas: l, accessList: u, data: p } = e;
1780
- nc(e);
1780
+ ac(e);
1781
1781
  const d = ns(u), h = [
1782
1782
  he(r),
1783
1783
  a ? he(a) : "0x",
@@ -1915,7 +1915,7 @@ function k2(e) {
1915
1915
  De(""),
1916
1916
  De(t),
1917
1917
  s ?? "0x",
1918
- De(f || $l),
1918
+ De(f || ec),
1919
1919
  p ?? [],
1920
1920
  u ?? "0x",
1921
1921
  // EIP712 signature
@@ -1947,10 +1947,10 @@ function U2(e) {
1947
1947
  throw new T2({
1948
1948
  givenLength: t.length
1949
1949
  });
1950
- if (t.length > hd)
1950
+ if (t.length > fd)
1951
1951
  throw new A2({
1952
1952
  givenLength: t.length,
1953
- maxBytecodeSize: hd
1953
+ maxBytecodeSize: fd
1954
1954
  });
1955
1955
  const r = jp(t), n = Ka(r), a = t.length / 32;
1956
1956
  if (a % 2 === 0)
@@ -1997,7 +1997,7 @@ function N2(e) {
1997
1997
  from: BigInt(a),
1998
1998
  to: n ? BigInt(n) : 0n,
1999
1999
  gasLimit: t ?? 0n,
2000
- gasPerPubdataByteLimit: d ?? $l,
2000
+ gasPerPubdataByteLimit: d ?? ec,
2001
2001
  maxFeePerGas: o ?? 0n,
2002
2002
  maxPriorityFeePerGas: i ?? 0n,
2003
2003
  paymaster: u ? BigInt(u) : 0n,
@@ -2268,8 +2268,8 @@ const Gt = {
2268
2268
  l2ToL1MessagePasser: {
2269
2269
  address: "0x4200000000000000000000000000000000000016"
2270
2270
  }
2271
- }, ac = {
2272
- block: /* @__PURE__ */ _l({
2271
+ }, sc = {
2272
+ block: /* @__PURE__ */ $l({
2273
2273
  format(e) {
2274
2274
  return {
2275
2275
  transactions: e.transactions?.map((r) => {
@@ -2282,7 +2282,7 @@ const Gt = {
2282
2282
  };
2283
2283
  }
2284
2284
  }),
2285
- transaction: /* @__PURE__ */ jl({
2285
+ transaction: /* @__PURE__ */ _l({
2286
2286
  format(e) {
2287
2287
  const t = {};
2288
2288
  return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? at(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
@@ -2335,7 +2335,7 @@ function Q2(e) {
2335
2335
  const $ = {
2336
2336
  blockTime: 2e3,
2337
2337
  contracts: p1,
2338
- formatters: ac,
2338
+ formatters: sc,
2339
2339
  serializers: D2
2340
2340
  }, gs = 1, J2 = /* @__PURE__ */ m({
2341
2341
  ...$,
@@ -3081,7 +3081,7 @@ const $ = {
3081
3081
  apiUrl: "https://www.ftnscan.com/api"
3082
3082
  }
3083
3083
  }
3084
- }), fa = 1, sc = /* @__PURE__ */ m({
3084
+ }), fa = 1, oc = /* @__PURE__ */ m({
3085
3085
  ...$,
3086
3086
  id: 8453,
3087
3087
  name: "Base",
@@ -3129,7 +3129,7 @@ const $ = {
3129
3129
  },
3130
3130
  sourceId: fa
3131
3131
  }), vw = /* @__PURE__ */ m({
3132
- ...sc,
3132
+ ...oc,
3133
3133
  experimental_preconfirmationTime: 200,
3134
3134
  rpcUrls: {
3135
3135
  default: {
@@ -4250,7 +4250,7 @@ function y1(e) {
4250
4250
  return e.type === "cip64" ? !0 : yb(e) && Wa(e.feeCurrency);
4251
4251
  }
4252
4252
  const Cb = {
4253
- block: /* @__PURE__ */ _l({
4253
+ block: /* @__PURE__ */ $l({
4254
4254
  format(e) {
4255
4255
  return {
4256
4256
  transactions: e.transactions?.map((r) => typeof r == "string" ? r : {
@@ -4264,7 +4264,7 @@ const Cb = {
4264
4264
  };
4265
4265
  }
4266
4266
  }),
4267
- transaction: /* @__PURE__ */ jl({
4267
+ transaction: /* @__PURE__ */ _l({
4268
4268
  format(e) {
4269
4269
  if (e.type === "0x7e")
4270
4270
  return {
@@ -9078,7 +9078,7 @@ const Qa = {
9078
9078
  },
9079
9079
  testnet: !1
9080
9080
  });
9081
- function oc(e) {
9081
+ function ic(e) {
9082
9082
  return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
9083
9083
  }
9084
9084
  class B7 extends ge {
@@ -9094,7 +9094,7 @@ class B7 extends ge {
9094
9094
  });
9095
9095
  }
9096
9096
  }
9097
- function vd(e) {
9097
+ function kd(e) {
9098
9098
  return e.reduce((t, { slot: r, value: n }) => `${t} ${r}: ${n}
9099
9099
  `, "");
9100
9100
  }
@@ -9106,14 +9106,14 @@ function R7(e) {
9106
9106
  `), n.balance && (a += ` balance: ${n.balance}
9107
9107
  `), n.code && (a += ` code: ${n.code}
9108
9108
  `), n.state && (a += ` state:
9109
- `, a += vd(n.state)), n.stateDiff && (a += ` stateDiff:
9110
- `, a += vd(n.stateDiff)), a;
9109
+ `, a += kd(n.state)), n.stateDiff && (a += ` stateDiff:
9110
+ `, a += kd(n.stateDiff)), a;
9111
9111
  }, ` State Override:
9112
9112
  `).slice(0, -1);
9113
9113
  }
9114
9114
  class F7 extends ge {
9115
9115
  constructor(t, { account: r, docsPath: n, chain: a, data: s, gas: o, gasPrice: i, maxFeePerGas: l, maxPriorityFeePerGas: u, nonce: p, to: d, value: h, stateOverride: f }) {
9116
- const y = r ? oc(r) : void 0;
9116
+ const y = r ? ic(r) : void 0;
9117
9117
  let C = Dp({
9118
9118
  from: y?.address,
9119
9119
  to: d,
@@ -9154,10 +9154,10 @@ function M7(e, t) {
9154
9154
  }) : en.nodeMessage.test(r) ? new en({
9155
9155
  cause: e,
9156
9156
  maxFeePerGas: t?.maxFeePerGas
9157
- }) : ll.nodeMessage.test(r) ? new ll({
9157
+ }) : cl.nodeMessage.test(r) ? new cl({
9158
9158
  cause: e,
9159
9159
  maxFeePerGas: t?.maxFeePerGas
9160
- }) : cl.nodeMessage.test(r) ? new cl({ cause: e, nonce: t?.nonce }) : dl.nodeMessage.test(r) ? new dl({ cause: e, nonce: t?.nonce }) : ul.nodeMessage.test(r) ? new ul({ cause: e, nonce: t?.nonce }) : pl.nodeMessage.test(r) ? new pl({ cause: e }) : ml.nodeMessage.test(r) ? new ml({ cause: e, gas: t?.gas }) : hl.nodeMessage.test(r) ? new hl({ cause: e, gas: t?.gas }) : fl.nodeMessage.test(r) ? new fl({ cause: e }) : Xn.nodeMessage.test(r) ? new Xn({
9160
+ }) : dl.nodeMessage.test(r) ? new dl({ cause: e, nonce: t?.nonce }) : ul.nodeMessage.test(r) ? new ul({ cause: e, nonce: t?.nonce }) : pl.nodeMessage.test(r) ? new pl({ cause: e, nonce: t?.nonce }) : ml.nodeMessage.test(r) ? new ml({ cause: e }) : hl.nodeMessage.test(r) ? new hl({ cause: e, gas: t?.gas }) : fl.nodeMessage.test(r) ? new fl({ cause: e, gas: t?.gas }) : gl.nodeMessage.test(r) ? new gl({ cause: e }) : Xn.nodeMessage.test(r) ? new Xn({
9161
9161
  cause: e,
9162
9162
  maxFeePerGas: t?.maxFeePerGas,
9163
9163
  maxPriorityFeePerGas: t?.maxPriorityFeePerGas
@@ -9188,7 +9188,7 @@ function W7(e, { format: t }) {
9188
9188
  return n(a), r;
9189
9189
  }
9190
9190
  function L7(e) {
9191
- const { account: t, gasPrice: r, maxFeePerGas: n, maxPriorityFeePerGas: a, to: s } = e, o = t ? oc(t) : void 0;
9191
+ const { account: t, gasPrice: r, maxFeePerGas: n, maxPriorityFeePerGas: a, to: s } = e, o = t ? ic(t) : void 0;
9192
9192
  if (o && !Bt(o.address))
9193
9193
  throw new Kt({ address: o.address });
9194
9194
  if (s && !Bt(s))
@@ -9204,7 +9204,7 @@ async function O7(e, t) {
9204
9204
  const { account: r = e.account } = t;
9205
9205
  if (!r)
9206
9206
  throw new B7();
9207
- const n = oc(r);
9207
+ const n = ic(r);
9208
9208
  try {
9209
9209
  const { accessList: a, blockNumber: s, blockTag: o, data: i, gas: l, gasPrice: u, maxFeePerGas: p, maxPriorityFeePerGas: d, nonce: h, to: f, value: y, ...C } = t, E = (typeof s == "bigint" ? he(s) : void 0) || o;
9210
9210
  L7(t);
@@ -9238,11 +9238,11 @@ async function O7(e, t) {
9238
9238
  });
9239
9239
  }
9240
9240
  }
9241
- const ic = {
9241
+ const lc = {
9242
9242
  fees: {
9243
- estimateFeesPerGas: kd,
9243
+ estimateFeesPerGas: Ad,
9244
9244
  async maxPriorityFeePerGas({ block: e, client: t, request: r }) {
9245
- const n = await kd({
9245
+ const n = await Ad({
9246
9246
  block: e,
9247
9247
  client: t,
9248
9248
  multiply: (a) => a,
@@ -9253,7 +9253,7 @@ const ic = {
9253
9253
  }
9254
9254
  }
9255
9255
  };
9256
- async function kd({ client: e, multiply: t, request: r, type: n }) {
9256
+ async function Ad({ client: e, multiply: t, request: r, type: n }) {
9257
9257
  try {
9258
9258
  const a = await O7(e, {
9259
9259
  ...r,
@@ -9268,7 +9268,7 @@ async function kd({ client: e, multiply: t, request: r, type: n }) {
9268
9268
  }
9269
9269
  }
9270
9270
  const q7 = /* @__PURE__ */ m({
9271
- ...ic,
9271
+ ...lc,
9272
9272
  id: 59144,
9273
9273
  name: "Linea Mainnet",
9274
9274
  nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
@@ -9326,7 +9326,7 @@ const q7 = /* @__PURE__ */ m({
9326
9326
  },
9327
9327
  testnet: !0
9328
9328
  }), z7 = /* @__PURE__ */ m({
9329
- ...ic,
9329
+ ...lc,
9330
9330
  id: 59141,
9331
9331
  name: "Linea Sepolia Testnet",
9332
9332
  nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
@@ -11589,7 +11589,7 @@ const q7 = /* @__PURE__ */ m({
11589
11589
  }
11590
11590
  }
11591
11591
  },
11592
- formatters: ac,
11592
+ formatters: sc,
11593
11593
  sourceId: Ms
11594
11594
  }), Vs = 11155111, S8 = /* @__PURE__ */ m({
11595
11595
  id: 58008,
@@ -11629,7 +11629,7 @@ const q7 = /* @__PURE__ */ m({
11629
11629
  blockCreated: 3754925
11630
11630
  }
11631
11631
  },
11632
- formatters: ac,
11632
+ formatters: sc,
11633
11633
  sourceId: Vs,
11634
11634
  testnet: !0
11635
11635
  }), T8 = /* @__PURE__ */ m({
@@ -12229,12 +12229,12 @@ const q7 = /* @__PURE__ */ m({
12229
12229
  }
12230
12230
  },
12231
12231
  testnet: !0
12232
- }), Ad = 11155111, n9 = m({
12232
+ }), Sd = 11155111, n9 = m({
12233
12233
  ...$,
12234
12234
  name: "Pyrope Testnet",
12235
12235
  testnet: !0,
12236
12236
  id: 695569,
12237
- sourceId: Ad,
12237
+ sourceId: Sd,
12238
12238
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
12239
12239
  rpcUrls: {
12240
12240
  default: {
@@ -12251,7 +12251,7 @@ const q7 = /* @__PURE__ */ m({
12251
12251
  contracts: {
12252
12252
  ...$.contracts,
12253
12253
  l1StandardBridge: {
12254
- [Ad]: {
12254
+ [Sd]: {
12255
12255
  address: "0xC24932c31D9621aE9e792576152B7ef010cFC2F8"
12256
12256
  }
12257
12257
  }
@@ -14156,8 +14156,8 @@ const q7 = /* @__PURE__ */ m({
14156
14156
  }
14157
14157
  },
14158
14158
  testnet: !0
14159
- }), Sd = /* @__PURE__ */ m({
14160
- ...ic,
14159
+ }), Td = /* @__PURE__ */ m({
14160
+ ...lc,
14161
14161
  id: 1660990954,
14162
14162
  name: "Status Network Sepolia",
14163
14163
  nativeCurrency: {
@@ -15913,7 +15913,7 @@ const q7 = /* @__PURE__ */ m({
15913
15913
  blockCreated: 47416
15914
15914
  }
15915
15915
  }
15916
- }), Td = /* @__PURE__ */ m({
15916
+ }), Ud = /* @__PURE__ */ m({
15917
15917
  id: 195,
15918
15918
  name: "X1 Testnet",
15919
15919
  nativeCurrency: {
@@ -16470,7 +16470,7 @@ const q7 = /* @__PURE__ */ m({
16470
16470
  url: "https://sepolia.explorer.zklink.io"
16471
16471
  }
16472
16472
  }
16473
- }), Ud = /* @__PURE__ */ m({
16473
+ }), Id = /* @__PURE__ */ m({
16474
16474
  ...Gt,
16475
16475
  id: 324,
16476
16476
  name: "ZKsync Era",
@@ -16507,7 +16507,7 @@ const q7 = /* @__PURE__ */ m({
16507
16507
  blockCreated: 45659388
16508
16508
  }
16509
16509
  }
16510
- }), Id = /* @__PURE__ */ m({
16510
+ }), Nd = /* @__PURE__ */ m({
16511
16511
  ...Gt,
16512
16512
  id: 260,
16513
16513
  name: "ZKsync InMemory Node",
@@ -16574,7 +16574,7 @@ const q7 = /* @__PURE__ */ m({
16574
16574
  }
16575
16575
  },
16576
16576
  testnet: !0
16577
- }), Nd = /* @__PURE__ */ m({
16577
+ }), Bd = /* @__PURE__ */ m({
16578
16578
  ...Gt,
16579
16579
  id: 270,
16580
16580
  name: "ZKsync CLI Local Node",
@@ -16586,7 +16586,7 @@ const q7 = /* @__PURE__ */ m({
16586
16586
  }
16587
16587
  },
16588
16588
  testnet: !0
16589
- }), Bd = /* @__PURE__ */ m({
16589
+ }), Rd = /* @__PURE__ */ m({
16590
16590
  ...Gt,
16591
16591
  id: 300,
16592
16592
  name: "ZKsync Sepolia Testnet",
@@ -16712,7 +16712,7 @@ const q7 = /* @__PURE__ */ m({
16712
16712
  },
16713
16713
  sourceId: Gs,
16714
16714
  testnet: !0
16715
- }), Rd = 5, Ix = /* @__PURE__ */ m({
16715
+ }), Fd = 5, Ix = /* @__PURE__ */ m({
16716
16716
  ...$,
16717
16717
  id: 999,
16718
16718
  name: "Zora Goerli Testnet",
@@ -16741,12 +16741,12 @@ const q7 = /* @__PURE__ */ m({
16741
16741
  blockCreated: 189123
16742
16742
  },
16743
16743
  portal: {
16744
- [Rd]: {
16744
+ [Fd]: {
16745
16745
  address: "0xDb9F51790365e7dc196e7D072728df39Be958ACe"
16746
16746
  }
16747
16747
  }
16748
16748
  },
16749
- sourceId: Rd,
16749
+ sourceId: Fd,
16750
16750
  testnet: !0
16751
16751
  }), Nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16752
16752
  __proto__: null,
@@ -16793,7 +16793,7 @@ const q7 = /* @__PURE__ */ m({
16793
16793
  b3: yw,
16794
16794
  b3Sepolia: xw,
16795
16795
  bahamut: Ew,
16796
- base: sc,
16796
+ base: oc,
16797
16797
  baseGoerli: g1,
16798
16798
  basePreconf: vw,
16799
16799
  baseSepolia: w1,
@@ -17262,8 +17262,8 @@ const q7 = /* @__PURE__ */ m({
17262
17262
  sova: T4,
17263
17263
  sovaSepolia: U4,
17264
17264
  spicy: I4,
17265
- statusNetworkSepolia: Sd,
17266
- statusSepolia: Sd,
17265
+ statusNetworkSepolia: Td,
17266
+ statusSepolia: Td,
17267
17267
  step: N4,
17268
17268
  story: B4,
17269
17269
  storyAeneid: R4,
@@ -17339,9 +17339,9 @@ const q7 = /* @__PURE__ */ m({
17339
17339
  worldLand: HC,
17340
17340
  worldchain: YC,
17341
17341
  worldchainSepolia: XC,
17342
- x1Testnet: Td,
17342
+ x1Testnet: Ud,
17343
17343
  xLayer: tx,
17344
- xLayerTestnet: Td,
17344
+ xLayerTestnet: Ud,
17345
17345
  xai: jC,
17346
17346
  xaiTestnet: _C,
17347
17347
  xdc: $C,
@@ -17372,22 +17372,22 @@ const q7 = /* @__PURE__ */ m({
17372
17372
  zkFairTestnet: Ex,
17373
17373
  zkLinkNova: vx,
17374
17374
  zkLinkNovaSepoliaTestnet: kx,
17375
- zkSync: Ud,
17376
- zkSyncInMemoryNode: Id,
17377
- zkSyncLocalNode: Nd,
17378
- zkSyncSepoliaTestnet: Bd,
17379
- zksync: Ud,
17380
- zksyncInMemoryNode: Id,
17375
+ zkSync: Id,
17376
+ zkSyncInMemoryNode: Nd,
17377
+ zkSyncLocalNode: Bd,
17378
+ zkSyncSepoliaTestnet: Rd,
17379
+ zksync: Id,
17380
+ zksyncInMemoryNode: Nd,
17381
17381
  zksyncLocalCustomHyperchain: Ax,
17382
17382
  zksyncLocalHyperchain: Sx,
17383
17383
  zksyncLocalHyperchainL1: Tx,
17384
- zksyncLocalNode: Nd,
17385
- zksyncSepoliaTestnet: Bd,
17384
+ zksyncLocalNode: Bd,
17385
+ zksyncSepoliaTestnet: Rd,
17386
17386
  zora: v1,
17387
17387
  zoraSepolia: Ux,
17388
17388
  zoraTestnet: Ix
17389
17389
  }, Symbol.toStringTag, { value: "Module" })), Bx = "https://useglyph.io", Rr = "cly38x0w10ac945q9yg9sm71i", Fr = "clxt9p8e601al6tgmsyhu7j3t", Rx = "https://useglyph.io", Fx = "https://i.ibb.co/TxcwPQyr/Group-12489-1.png", Mx = 60 * 1e3, Vx = 60 * 1e3, Wx = "0x3c7fb61850cCD1490B820D317f565358D6f1Fb87", k1 = 80, mt = 6;
17390
- var rr = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SUCCESS = "success", e.ERROR = "error", e))(rr || {}), Ue = /* @__PURE__ */ ((e) => (e.MAIN = "main", e.FUND = "fund", e.SEND = "send", e.RECEIVE = "receive", e.PROFILE = "profile", e.SWAP = "swap", e))(Ue || {}), Le = /* @__PURE__ */ ((e) => (e.HOME = "home", e.ACTIVITY = "activity", e.TOKENS = "tokens", e.NFTS = "nfts", e.LINKED_ACCOUNTS = "linked-accounts", e))(Le || {}), Nr = /* @__PURE__ */ ((e) => (e.BUY = "fund-buy", e.WAIT = "fund-wait", e.END = "fund-end", e))(Nr || {}), St = /* @__PURE__ */ ((e) => (e.ENTER_ADDRESS = "send-enter-address", e.ENTER_AMOUNT = "send-enter-amount", e.WAIT = "send-wait", e.END = "send-end", e))(St || {}), Wt = /* @__PURE__ */ ((e) => (e.START = "swap-start", e.WAIT = "swap-wait", e.END = "swap-end", e))(Wt || {});
17390
+ var rr = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SUCCESS = "success", e.ERROR = "error", e))(rr || {}), Ue = /* @__PURE__ */ ((e) => (e.MAIN = "main", e.FUND = "fund", e.SEND = "send", e.RECEIVE = "receive", e.PROFILE = "profile", e.SWAP = "swap", e))(Ue || {}), Le = /* @__PURE__ */ ((e) => (e.HOME = "home", e.ACTIVITY = "activity", e.TOKENS = "tokens", e.NFTS = "nfts", e.LINKED_ACCOUNTS = "linked-accounts", e))(Le || {}), Nr = /* @__PURE__ */ ((e) => (e.BUY = "fund-buy", e.WAIT = "fund-wait", e.END = "fund-end", e))(Nr || {}), Tt = /* @__PURE__ */ ((e) => (e.ENTER_ADDRESS = "send-enter-address", e.ENTER_AMOUNT = "send-enter-amount", e.WAIT = "send-wait", e.END = "send-end", e))(Tt || {}), Wt = /* @__PURE__ */ ((e) => (e.START = "swap-start", e.WAIT = "swap-wait", e.END = "swap-end", e))(Wt || {});
17391
17391
  const er = {
17392
17392
  [Mo.id]: "ApeChain"
17393
17393
  // Remove after https://github.com/wevm/viem/pull/4080 is merged and viem is updated to that version
@@ -17399,7 +17399,7 @@ const er = {
17399
17399
  shortName: "Glyph",
17400
17400
  type: "injected"
17401
17401
  }, Me = () => {
17402
- const e = Cr(Hl);
17402
+ const e = Cr(jl);
17403
17403
  if (!e) throw new Error("useGlyph must be used within GlyphProvider");
17404
17404
  const t = Cr(Io);
17405
17405
  if (!t) throw new Error("useGlyph must be used within GlyphUserDataProvider");
@@ -17452,7 +17452,7 @@ const er = {
17452
17452
  }, [t, e]), t;
17453
17453
  };
17454
17454
  var Kn = /* @__PURE__ */ ((e) => (e.PRIVY = "privy", e.EIP1193 = "eip1193", e))(Kn || {});
17455
- const Fd = "privy";
17455
+ const Md = "privy";
17456
17456
  var A1 = /* @__PURE__ */ ((e) => (e.RAINBOWKIT = "rainbowkit", e.CONNECTKIT = "connectkit", e.THIRDWEB = "thirdweb", e.WAGMI = "wagmi", e.DYNAMIC = "dynamic", e))(A1 || {});
17457
17457
  const Xe = {
17458
17458
  CLOSED: "closed",
@@ -17501,7 +17501,7 @@ const Ox = (e) => /* @__PURE__ */ S("svg", { width: "24", height: "24", viewBox:
17501
17501
  currency: n === "decimal" ? void 0 : t || "USD"
17502
17502
  }).format(Number(s || 0));
17503
17503
  return a ? `< ${o}` : o;
17504
- }, Md = (e) => Ge(0, e).replace(/[.\d]/g, "").trim();
17504
+ }, Vd = (e) => Ge(0, e).replace(/[.\d]/g, "").trim();
17505
17505
  function S1(e) {
17506
17506
  var t, r, n = "";
17507
17507
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -17515,14 +17515,14 @@ function T1() {
17515
17515
  for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = S1(e)) && (n && (n += " "), n += t);
17516
17516
  return n;
17517
17517
  }
17518
- const lc = "-", qx = (e) => {
17518
+ const cc = "-", qx = (e) => {
17519
17519
  const t = zx(e), {
17520
17520
  conflictingClassGroups: r,
17521
17521
  conflictingClassGroupModifiers: n
17522
17522
  } = e;
17523
17523
  return {
17524
17524
  getClassGroupId: (o) => {
17525
- const i = o.split(lc);
17525
+ const i = o.split(cc);
17526
17526
  return i[0] === "" && i.length !== 1 && i.shift(), U1(i, t) || Kx(o);
17527
17527
  },
17528
17528
  getConflictingClassGroupIds: (o, i) => {
@@ -17538,13 +17538,13 @@ const lc = "-", qx = (e) => {
17538
17538
  return a;
17539
17539
  if (t.validators.length === 0)
17540
17540
  return;
17541
- const s = e.join(lc);
17541
+ const s = e.join(cc);
17542
17542
  return t.validators.find(({
17543
17543
  validator: o
17544
17544
  }) => o(s))?.classGroupId;
17545
- }, Vd = /^\[(.+)\]$/, Kx = (e) => {
17546
- if (Vd.test(e)) {
17547
- const t = Vd.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
17545
+ }, Wd = /^\[(.+)\]$/, Kx = (e) => {
17546
+ if (Wd.test(e)) {
17547
+ const t = Wd.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
17548
17548
  if (r)
17549
17549
  return "arbitrary.." + r;
17550
17550
  }
@@ -17557,18 +17557,18 @@ const lc = "-", qx = (e) => {
17557
17557
  validators: []
17558
17558
  };
17559
17559
  return Gx(Object.entries(e.classGroups), r).forEach(([s, o]) => {
17560
- gl(o, n, s, t);
17560
+ wl(o, n, s, t);
17561
17561
  }), n;
17562
- }, gl = (e, t, r, n) => {
17562
+ }, wl = (e, t, r, n) => {
17563
17563
  e.forEach((a) => {
17564
17564
  if (typeof a == "string") {
17565
- const s = a === "" ? t : Wd(t, a);
17565
+ const s = a === "" ? t : Ld(t, a);
17566
17566
  s.classGroupId = r;
17567
17567
  return;
17568
17568
  }
17569
17569
  if (typeof a == "function") {
17570
17570
  if (Dx(a)) {
17571
- gl(a(n), t, r, n);
17571
+ wl(a(n), t, r, n);
17572
17572
  return;
17573
17573
  }
17574
17574
  t.validators.push({
@@ -17578,12 +17578,12 @@ const lc = "-", qx = (e) => {
17578
17578
  return;
17579
17579
  }
17580
17580
  Object.entries(a).forEach(([s, o]) => {
17581
- gl(o, Wd(t, s), r, n);
17581
+ wl(o, Ld(t, s), r, n);
17582
17582
  });
17583
17583
  });
17584
- }, Wd = (e, t) => {
17584
+ }, Ld = (e, t) => {
17585
17585
  let r = e;
17586
- return t.split(lc).forEach((n) => {
17586
+ return t.split(cc).forEach((n) => {
17587
17587
  r.nextPart.has(n) || r.nextPart.set(n, {
17588
17588
  nextPart: /* @__PURE__ */ new Map(),
17589
17589
  validators: []
@@ -17714,7 +17714,7 @@ const N1 = (e) => {
17714
17714
  e[n] && (t = N1(e[n])) && (r && (r += " "), r += t);
17715
17715
  return r;
17716
17716
  };
17717
- function Ld(e, ...t) {
17717
+ function Od(e, ...t) {
17718
17718
  let r, n, a, s = o;
17719
17719
  function o(l) {
17720
17720
  const u = t.reduce((p, d) => d(p), e());
@@ -17742,7 +17742,7 @@ const Ye = (e) => {
17742
17742
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
17743
17743
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
17744
17744
  eE.test(e) && !tE.test(e)
17745
- ), R1 = () => !1, pE = (e) => rE.test(e), mE = (e) => nE.test(e), Od = () => {
17745
+ ), R1 = () => !1, pE = (e) => rE.test(e), mE = (e) => nE.test(e), qd = () => {
17746
17746
  const e = Ye("colors"), t = Ye("spacing"), r = Ye("blur"), n = Ye("brightness"), a = Ye("borderColor"), s = Ye("borderRadius"), o = Ye("borderSpacing"), i = Ye("borderWidth"), l = Ye("contrast"), u = Ye("grayscale"), p = Ye("hueRotate"), d = Ye("invert"), h = Ye("gap"), f = Ye("gradientColorStops"), y = Ye("gradientColorStopPositions"), C = Ye("inset"), b = Ye("margin"), E = Ye("opacity"), k = Ye("padding"), A = Ye("saturate"), v = Ye("scale"), N = Ye("sepia"), R = Ye("skew"), U = Ye("space"), W = Ye("translate"), V = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", ye, t], Z = () => [ye, t], T = () => ["", Tr, Jr], M = () => ["auto", zn, ye], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["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"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], P = () => ["", "0", ye], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [zn, ye];
17747
17747
  return {
17748
17748
  cacheSize: 500,
@@ -19797,12 +19797,12 @@ const Ye = (e) => {
19797
19797
  const n = t[r];
19798
19798
  n !== void 0 && (e[r] = (e[r] || []).concat(n));
19799
19799
  }
19800
- }, wE = (e, ...t) => typeof e == "function" ? Ld(Od, e, ...t) : Ld(() => hE(Od(), e), ...t);
19800
+ }, wE = (e, ...t) => typeof e == "function" ? Od(qd, e, ...t) : Od(() => hE(qd(), e), ...t);
19801
19801
  var le;
19802
19802
  (function(e) {
19803
19803
  e[e.Verbose = 4] = "Verbose", e[e.Info = 3] = "Info", e[e.Warn = 2] = "Warn", e[e.Error = 1] = "Error", e[e.None = 0] = "None";
19804
19804
  })(le || (le = {}));
19805
- const wl = (e, t, r) => {
19805
+ const bl = (e, t, r) => {
19806
19806
  if (r >= t) {
19807
19807
  const n = e.reduce((a, s, o) => ((o + 1) % 2 && a.push(`
19808
19808
  `), a.push(s), a), []);
@@ -19845,7 +19845,7 @@ function F1(e, t) {
19845
19845
  return e.apply(t, arguments);
19846
19846
  };
19847
19847
  }
19848
- const { toString: CE } = Object.prototype, { getPrototypeOf: cc } = Object, { iterator: Vo, toStringTag: M1 } = Symbol, Wo = /* @__PURE__ */ ((e) => (t) => {
19848
+ const { toString: CE } = Object.prototype, { getPrototypeOf: dc } = Object, { iterator: Vo, toStringTag: M1 } = Symbol, Wo = /* @__PURE__ */ ((e) => (t) => {
19849
19849
  const r = CE.call(t);
19850
19850
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
19851
19851
  })(/* @__PURE__ */ Object.create(null)), or = (e) => (e = e.toLowerCase(), (t) => Wo(t) === e), Lo = (e) => (t) => typeof t === e, { isArray: ia } = Array, Ja = Lo("undefined");
@@ -19860,7 +19860,7 @@ function EE(e) {
19860
19860
  const vE = Lo("string"), Rt = Lo("function"), W1 = Lo("number"), Oo = (e) => e !== null && typeof e == "object", kE = (e) => e === !0 || e === !1, no = (e) => {
19861
19861
  if (Wo(e) !== "object")
19862
19862
  return !1;
19863
- const t = cc(e);
19863
+ const t = dc(e);
19864
19864
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(M1 in e) && !(Vo in e);
19865
19865
  }, AE = or("Date"), SE = or("File"), TE = or("Blob"), UE = or("FileList"), IE = (e) => Oo(e) && Rt(e.pipe), NE = (e) => {
19866
19866
  let t;
@@ -19891,10 +19891,10 @@ function L1(e, t) {
19891
19891
  return null;
19892
19892
  }
19893
19893
  const dn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, O1 = (e) => !Ja(e) && e !== dn;
19894
- function bl() {
19894
+ function yl() {
19895
19895
  const { caseless: e } = O1(this) && this || {}, t = {}, r = (n, a) => {
19896
19896
  const s = e && L1(t, a) || a;
19897
- no(t[s]) && no(n) ? t[s] = bl(t[s], n) : no(n) ? t[s] = bl({}, n) : ia(n) ? t[s] = n.slice() : t[s] = n;
19897
+ no(t[s]) && no(n) ? t[s] = yl(t[s], n) : no(n) ? t[s] = yl({}, n) : ia(n) ? t[s] = n.slice() : t[s] = n;
19898
19898
  };
19899
19899
  for (let n = 0, a = arguments.length; n < a; n++)
19900
19900
  arguments[n] && as(arguments[n], r);
@@ -19913,7 +19913,7 @@ const LE = (e, t, r, { allOwnKeys: n } = {}) => (as(t, (a, s) => {
19913
19913
  do {
19914
19914
  for (a = Object.getOwnPropertyNames(e), s = a.length; s-- > 0; )
19915
19915
  o = a[s], (!n || n(o, e, t)) && !i[o] && (t[o] = e[o], i[o] = !0);
19916
- e = r !== !1 && cc(e);
19916
+ e = r !== !1 && dc(e);
19917
19917
  } while (e && (!r || r(e, t)) && e !== Object.prototype);
19918
19918
  return t;
19919
19919
  }, zE = (e, t, r) => {
@@ -19929,7 +19929,7 @@ const LE = (e, t, r, { allOwnKeys: n } = {}) => (as(t, (a, s) => {
19929
19929
  for (; t-- > 0; )
19930
19930
  r[t] = e[t];
19931
19931
  return r;
19932
- }, GE = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && cc(Uint8Array)), ZE = (e, t) => {
19932
+ }, GE = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && dc(Uint8Array)), ZE = (e, t) => {
19933
19933
  const n = (e && e[Vo]).call(e);
19934
19934
  let a;
19935
19935
  for (; (a = n.next()) && !a.done; ) {
@@ -19947,7 +19947,7 @@ const LE = (e, t, r, { allOwnKeys: n } = {}) => (as(t, (a, s) => {
19947
19947
  function(r, n, a) {
19948
19948
  return n.toUpperCase() + a;
19949
19949
  }
19950
- ), qd = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), YE = or("RegExp"), q1 = (e, t) => {
19950
+ ), Kd = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), YE = or("RegExp"), q1 = (e, t) => {
19951
19951
  const r = Object.getOwnPropertyDescriptors(e), n = {};
19952
19952
  as(r, (a, s) => {
19953
19953
  let o;
@@ -20030,7 +20030,7 @@ const ev = (e) => {
20030
20030
  isTypedArray: GE,
20031
20031
  isFileList: UE,
20032
20032
  forEach: as,
20033
- merge: bl,
20033
+ merge: yl,
20034
20034
  extend: LE,
20035
20035
  trim: WE,
20036
20036
  stripBOM: OE,
@@ -20043,8 +20043,8 @@ const ev = (e) => {
20043
20043
  forEachEntry: ZE,
20044
20044
  matchAll: QE,
20045
20045
  isHTMLForm: JE,
20046
- hasOwnProperty: qd,
20047
- hasOwnProp: qd,
20046
+ hasOwnProperty: Kd,
20047
+ hasOwnProp: Kd,
20048
20048
  // an alias to avoid ESLint no-prototype-builtins detection
20049
20049
  reduceDescriptors: q1,
20050
20050
  freezeMethods: XE,
@@ -20114,19 +20114,19 @@ we.from = (e, t, r, n, a, s) => {
20114
20114
  }, (i) => i !== "isAxiosError"), we.call(o, e.message, t, r, n, a), o.cause = e, o.name = e.name, s && Object.assign(o, s), o;
20115
20115
  };
20116
20116
  const sv = null;
20117
- function yl(e) {
20117
+ function Cl(e) {
20118
20118
  return D.isPlainObject(e) || D.isArray(e);
20119
20119
  }
20120
20120
  function G1(e) {
20121
20121
  return D.endsWith(e, "[]") ? e.slice(0, -2) : e;
20122
20122
  }
20123
- function Kd(e, t, r) {
20123
+ function zd(e, t, r) {
20124
20124
  return e ? e.concat(t).map(function(a, s) {
20125
20125
  return a = G1(a), !r && s ? "[" + a + "]" : a;
20126
20126
  }).join(r ? "." : "") : t;
20127
20127
  }
20128
20128
  function ov(e) {
20129
- return D.isArray(e) && !e.some(yl);
20129
+ return D.isArray(e) && !e.some(Cl);
20130
20130
  }
20131
20131
  const iv = D.toFlatObject(D, {}, null, function(t) {
20132
20132
  return /^is[A-Z]/.test(t);
@@ -20161,17 +20161,17 @@ function qo(e, t, r) {
20161
20161
  return C = G1(C), E.forEach(function(A, v) {
20162
20162
  !(D.isUndefined(A) || A === null) && t.append(
20163
20163
  // eslint-disable-next-line no-nested-ternary
20164
- o === !0 ? Kd([C], v, s) : o === null ? C : C + "[]",
20164
+ o === !0 ? zd([C], v, s) : o === null ? C : C + "[]",
20165
20165
  u(A)
20166
20166
  );
20167
20167
  }), !1;
20168
20168
  }
20169
- return yl(y) ? !0 : (t.append(Kd(b, C, s), u(y)), !1);
20169
+ return Cl(y) ? !0 : (t.append(zd(b, C, s), u(y)), !1);
20170
20170
  }
20171
20171
  const d = [], h = Object.assign(iv, {
20172
20172
  defaultVisitor: p,
20173
20173
  convertValue: u,
20174
- isVisitable: yl
20174
+ isVisitable: Cl
20175
20175
  });
20176
20176
  function f(y, C) {
20177
20177
  if (!D.isUndefined(y)) {
@@ -20192,7 +20192,7 @@ function qo(e, t, r) {
20192
20192
  throw new TypeError("data must be an object");
20193
20193
  return f(e), t;
20194
20194
  }
20195
- function zd(e) {
20195
+ function Dd(e) {
20196
20196
  const t = {
20197
20197
  "!": "%21",
20198
20198
  "'": "%27",
@@ -20206,17 +20206,17 @@ function zd(e) {
20206
20206
  return t[n];
20207
20207
  });
20208
20208
  }
20209
- function dc(e, t) {
20209
+ function uc(e, t) {
20210
20210
  this._pairs = [], e && qo(e, this, t);
20211
20211
  }
20212
- const Z1 = dc.prototype;
20212
+ const Z1 = uc.prototype;
20213
20213
  Z1.append = function(t, r) {
20214
20214
  this._pairs.push([t, r]);
20215
20215
  };
20216
20216
  Z1.toString = function(t) {
20217
20217
  const r = t ? function(n) {
20218
- return t.call(this, n, zd);
20219
- } : zd;
20218
+ return t.call(this, n, Dd);
20219
+ } : Dd;
20220
20220
  return this._pairs.map(function(a) {
20221
20221
  return r(a[0]) + "=" + r(a[1]);
20222
20222
  }, "").join("&");
@@ -20233,13 +20233,13 @@ function Q1(e, t, r) {
20233
20233
  });
20234
20234
  const a = r && r.serialize;
20235
20235
  let s;
20236
- if (a ? s = a(t, r) : s = D.isURLSearchParams(t) ? t.toString() : new dc(t, r).toString(n), s) {
20236
+ if (a ? s = a(t, r) : s = D.isURLSearchParams(t) ? t.toString() : new uc(t, r).toString(n), s) {
20237
20237
  const o = e.indexOf("#");
20238
20238
  o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
20239
20239
  }
20240
20240
  return e;
20241
20241
  }
20242
- class Dd {
20242
+ class Gd {
20243
20243
  constructor() {
20244
20244
  this.handlers = [];
20245
20245
  }
@@ -20297,7 +20297,7 @@ const J1 = {
20297
20297
  silentJSONParsing: !0,
20298
20298
  forcedJSONParsing: !0,
20299
20299
  clarifyTimeoutError: !1
20300
- }, cv = typeof URLSearchParams < "u" ? URLSearchParams : dc, dv = typeof FormData < "u" ? FormData : null, uv = typeof Blob < "u" ? Blob : null, pv = {
20300
+ }, cv = typeof URLSearchParams < "u" ? URLSearchParams : uc, dv = typeof FormData < "u" ? FormData : null, uv = typeof Blob < "u" ? Blob : null, pv = {
20301
20301
  isBrowser: !0,
20302
20302
  classes: {
20303
20303
  URLSearchParams: cv,
@@ -20305,13 +20305,13 @@ const J1 = {
20305
20305
  Blob: uv
20306
20306
  },
20307
20307
  protocols: ["http", "https", "file", "blob", "url", "data"]
20308
- }, uc = typeof window < "u" && typeof document < "u", Cl = typeof navigator == "object" && navigator || void 0, mv = uc && (!Cl || ["ReactNative", "NativeScript", "NS"].indexOf(Cl.product) < 0), hv = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
20309
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", fv = uc && window.location.href || "http://localhost", gv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20308
+ }, pc = typeof window < "u" && typeof document < "u", xl = typeof navigator == "object" && navigator || void 0, mv = pc && (!xl || ["ReactNative", "NativeScript", "NS"].indexOf(xl.product) < 0), hv = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
20309
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", fv = pc && window.location.href || "http://localhost", gv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20310
20310
  __proto__: null,
20311
- hasBrowserEnv: uc,
20311
+ hasBrowserEnv: pc,
20312
20312
  hasStandardBrowserEnv: mv,
20313
20313
  hasStandardBrowserWebWorkerEnv: hv,
20314
- navigator: Cl,
20314
+ navigator: xl,
20315
20315
  origin: fv
20316
20316
  }, Symbol.toStringTag, { value: "Module" })), wt = {
20317
20317
  ...gv,
@@ -20455,7 +20455,7 @@ const xv = D.toObjectSet([
20455
20455
  `).forEach(function(o) {
20456
20456
  a = o.indexOf(":"), r = o.substring(0, a).trim().toLowerCase(), n = o.substring(a + 1).trim(), !(!r || t[r] && xv[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
20457
20457
  }), t;
20458
- }, Gd = Symbol("internals");
20458
+ }, Zd = Symbol("internals");
20459
20459
  function Ua(e) {
20460
20460
  return e && String(e).trim().toLowerCase();
20461
20461
  }
@@ -20610,7 +20610,7 @@ let Ft = class {
20610
20610
  return r.forEach((a) => n.set(a)), n;
20611
20611
  }
20612
20612
  static accessor(t) {
20613
- const n = (this[Gd] = this[Gd] = {
20613
+ const n = (this[Zd] = this[Zd] = {
20614
20614
  accessors: {}
20615
20615
  }).accessors, a = this.prototype;
20616
20616
  function s(o) {
@@ -20708,14 +20708,14 @@ const po = (e, t, r = 3) => {
20708
20708
  };
20709
20709
  e(d);
20710
20710
  }, r);
20711
- }, Zd = (e, t) => {
20711
+ }, Qd = (e, t) => {
20712
20712
  const r = e != null;
20713
20713
  return [(n) => t[0]({
20714
20714
  lengthComputable: r,
20715
20715
  total: e,
20716
20716
  loaded: n
20717
20717
  }), t[1]];
20718
- }, Qd = (e) => (...t) => D.asap(() => e(...t)), Nv = wt.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, wt.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
20718
+ }, Jd = (e) => (...t) => D.asap(() => e(...t)), Nv = wt.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, wt.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
20719
20719
  new URL(wt.origin),
20720
20720
  wt.navigator && /(msie|trident)/i.test(wt.navigator.userAgent)
20721
20721
  ) : () => !0, Bv = wt.hasStandardBrowserEnv ? (
@@ -20755,7 +20755,7 @@ function H1(e, t, r) {
20755
20755
  let n = !Rv(t);
20756
20756
  return e && (n || r == !1) ? Fv(e, t) : t;
20757
20757
  }
20758
- const Jd = (e) => e instanceof Ft ? { ...e } : e;
20758
+ const Pd = (e) => e instanceof Ft ? { ...e } : e;
20759
20759
  function yn(e, t) {
20760
20760
  t = t || {};
20761
20761
  const r = {};
@@ -20813,7 +20813,7 @@ function yn(e, t) {
20813
20813
  socketPath: o,
20814
20814
  responseEncoding: o,
20815
20815
  validateStatus: i,
20816
- headers: (u, p, d) => a(Jd(u), Jd(p), d, !0)
20816
+ headers: (u, p, d) => a(Pd(u), Pd(p), d, !0)
20817
20817
  };
20818
20818
  return D.forEach(Object.keys(Object.assign({}, e, t)), function(p) {
20819
20819
  const d = l[p] || a, h = d(e[p], t[p], p);
@@ -20949,7 +20949,7 @@ const j1 = (e) => {
20949
20949
  } finally {
20950
20950
  await t.cancel();
20951
20951
  }
20952
- }, Pd = (e, t, r, n) => {
20952
+ }, Yd = (e, t, r, n) => {
20953
20953
  const a = Ov(e, t);
20954
20954
  let s = 0, o, i = (l) => {
20955
20955
  o || (o = !0, n && n(l));
@@ -20994,8 +20994,8 @@ const j1 = (e) => {
20994
20994
  }
20995
20995
  }).headers.has("Content-Type");
20996
20996
  return e && !t;
20997
- }), Yd = 64 * 1024, xl = _1 && $1(() => D.isReadableStream(new Response("").body)), mo = {
20998
- stream: xl && ((e) => e.body)
20997
+ }), Xd = 64 * 1024, El = _1 && $1(() => D.isReadableStream(new Response("").body)), mo = {
20998
+ stream: El && ((e) => e.body)
20999
20999
  };
21000
21000
  Ko && ((e) => {
21001
21001
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
@@ -21050,11 +21050,11 @@ const Dv = async (e) => {
21050
21050
  duplex: "half"
21051
21051
  }), R;
21052
21052
  if (D.isFormData(n) && (R = N.headers.get("content-type")) && p.setContentType(R), N.body) {
21053
- const [U, W] = Zd(
21053
+ const [U, W] = Qd(
21054
21054
  b,
21055
- po(Qd(l))
21055
+ po(Jd(l))
21056
21056
  );
21057
- n = Pd(N.body, Yd, U, W);
21057
+ n = Yd(N.body, Xd, U, W);
21058
21058
  }
21059
21059
  }
21060
21060
  D.isString(d) || (d = d ? "include" : "omit");
@@ -21069,18 +21069,18 @@ const Dv = async (e) => {
21069
21069
  credentials: E ? d : void 0
21070
21070
  });
21071
21071
  let k = await fetch(y);
21072
- const A = xl && (u === "stream" || u === "response");
21073
- if (xl && (i || A && C)) {
21072
+ const A = El && (u === "stream" || u === "response");
21073
+ if (El && (i || A && C)) {
21074
21074
  const N = {};
21075
21075
  ["status", "statusText", "headers"].forEach((V) => {
21076
21076
  N[V] = k[V];
21077
21077
  });
21078
- const R = D.toFiniteNumber(k.headers.get("content-length")), [U, W] = i && Zd(
21078
+ const R = D.toFiniteNumber(k.headers.get("content-length")), [U, W] = i && Qd(
21079
21079
  R,
21080
- po(Qd(i), !0)
21080
+ po(Jd(i), !0)
21081
21081
  ) || [];
21082
21082
  k = new Response(
21083
- Pd(k.body, Yd, U, () => {
21083
+ Yd(k.body, Xd, U, () => {
21084
21084
  W && W(), C && C();
21085
21085
  }),
21086
21086
  N
@@ -21106,12 +21106,12 @@ const Dv = async (e) => {
21106
21106
  }
21107
21107
  ) : we.from(E, E && E.code, e, y);
21108
21108
  }
21109
- }), El = {
21109
+ }), vl = {
21110
21110
  http: sv,
21111
21111
  xhr: Vv,
21112
21112
  fetch: Zv
21113
21113
  };
21114
- D.forEach(El, (e, t) => {
21114
+ D.forEach(vl, (e, t) => {
21115
21115
  if (e) {
21116
21116
  try {
21117
21117
  Object.defineProperty(e, "name", { value: t });
@@ -21120,7 +21120,7 @@ D.forEach(El, (e, t) => {
21120
21120
  Object.defineProperty(e, "adapterName", { value: t });
21121
21121
  }
21122
21122
  });
21123
- const Xd = (e) => `- ${e}`, Qv = (e) => D.isFunction(e) || e === null || e === !1, em = {
21123
+ const Hd = (e) => `- ${e}`, Qv = (e) => D.isFunction(e) || e === null || e === !1, em = {
21124
21124
  getAdapter: (e) => {
21125
21125
  e = D.isArray(e) ? e : [e];
21126
21126
  const { length: t } = e;
@@ -21129,7 +21129,7 @@ const Xd = (e) => `- ${e}`, Qv = (e) => D.isFunction(e) || e === null || e === !
21129
21129
  for (let s = 0; s < t; s++) {
21130
21130
  r = e[s];
21131
21131
  let o;
21132
- if (n = r, !Qv(r) && (n = El[(o = String(r)).toLowerCase()], n === void 0))
21132
+ if (n = r, !Qv(r) && (n = vl[(o = String(r)).toLowerCase()], n === void 0))
21133
21133
  throw new we(`Unknown adapter '${o}'`);
21134
21134
  if (n)
21135
21135
  break;
@@ -21140,8 +21140,8 @@ const Xd = (e) => `- ${e}`, Qv = (e) => D.isFunction(e) || e === null || e === !
21140
21140
  ([i, l]) => `adapter ${i} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
21141
21141
  );
21142
21142
  let o = t ? s.length > 1 ? `since :
21143
- ` + s.map(Xd).join(`
21144
- `) : " " + Xd(s[0]) : "as no adapter specified";
21143
+ ` + s.map(Hd).join(`
21144
+ `) : " " + Hd(s[0]) : "as no adapter specified";
21145
21145
  throw new we(
21146
21146
  "There is no suitable adapter to dispatch the request " + o,
21147
21147
  "ERR_NOT_SUPPORT"
@@ -21149,13 +21149,13 @@ const Xd = (e) => `- ${e}`, Qv = (e) => D.isFunction(e) || e === null || e === !
21149
21149
  }
21150
21150
  return n;
21151
21151
  },
21152
- adapters: El
21152
+ adapters: vl
21153
21153
  };
21154
21154
  function Ni(e) {
21155
21155
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
21156
21156
  throw new la(null, e);
21157
21157
  }
21158
- function Hd(e) {
21158
+ function jd(e) {
21159
21159
  return Ni(e), e.headers = Ft.from(e.headers), e.data = Ii.call(
21160
21160
  e,
21161
21161
  e.transformRequest
@@ -21179,7 +21179,7 @@ const tm = "1.9.0", zo = {};
21179
21179
  return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
21180
21180
  };
21181
21181
  });
21182
- const jd = {};
21182
+ const _d = {};
21183
21183
  zo.transitional = function(t, r, n) {
21184
21184
  function a(s, o) {
21185
21185
  return "[Axios v" + tm + "] Transitional option '" + s + "'" + o + (n ? ". " + n : "");
@@ -21190,7 +21190,7 @@ zo.transitional = function(t, r, n) {
21190
21190
  a(o, " has been removed" + (r ? " in " + r : "")),
21191
21191
  we.ERR_DEPRECATED
21192
21192
  );
21193
- return r && !jd[o] && (jd[o] = !0, console.warn(
21193
+ return r && !_d[o] && (_d[o] = !0, console.warn(
21194
21194
  a(
21195
21195
  o,
21196
21196
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -21225,8 +21225,8 @@ const so = {
21225
21225
  let fn = class {
21226
21226
  constructor(t) {
21227
21227
  this.defaults = t || {}, this.interceptors = {
21228
- request: new Dd(),
21229
- response: new Dd()
21228
+ request: new Gd(),
21229
+ response: new Gd()
21230
21230
  };
21231
21231
  }
21232
21232
  /**
@@ -21291,7 +21291,7 @@ let fn = class {
21291
21291
  });
21292
21292
  let p, d = 0, h;
21293
21293
  if (!l) {
21294
- const y = [Hd.bind(this), void 0];
21294
+ const y = [jd.bind(this), void 0];
21295
21295
  for (y.unshift.apply(y, i), y.push.apply(y, u), h = y.length, p = Promise.resolve(r); d < h; )
21296
21296
  p = p.then(y[d++], y[d++]);
21297
21297
  return p;
@@ -21308,7 +21308,7 @@ let fn = class {
21308
21308
  }
21309
21309
  }
21310
21310
  try {
21311
- p = Hd.call(this, f);
21311
+ p = jd.call(this, f);
21312
21312
  } catch (y) {
21313
21313
  return Promise.reject(y);
21314
21314
  }
@@ -21427,7 +21427,7 @@ function Yv(e) {
21427
21427
  function Xv(e) {
21428
21428
  return D.isObject(e) && e.isAxiosError === !0;
21429
21429
  }
21430
- const vl = {
21430
+ const kl = {
21431
21431
  Continue: 100,
21432
21432
  SwitchingProtocols: 101,
21433
21433
  Processing: 102,
@@ -21492,8 +21492,8 @@ const vl = {
21492
21492
  NotExtended: 510,
21493
21493
  NetworkAuthenticationRequired: 511
21494
21494
  };
21495
- Object.entries(vl).forEach(([e, t]) => {
21496
- vl[t] = e;
21495
+ Object.entries(kl).forEach(([e, t]) => {
21496
+ kl[t] = e;
21497
21497
  });
21498
21498
  function nm(e) {
21499
21499
  const t = new fn(e), r = F1(fn.prototype.request, t);
@@ -21519,7 +21519,7 @@ nt.mergeConfig = yn;
21519
21519
  nt.AxiosHeaders = Ft;
21520
21520
  nt.formToJSON = (e) => P1(D.isHTMLForm(e) ? new FormData(e) : e);
21521
21521
  nt.getAdapter = em.getAdapter;
21522
- nt.HttpStatusCode = vl;
21522
+ nt.HttpStatusCode = kl;
21523
21523
  nt.default = nt;
21524
21524
  const {
21525
21525
  Axios: fM,
@@ -21832,12 +21832,12 @@ class rk extends Error {
21832
21832
  }), this.name = "TransactionConfirmationError", this.receipt = r, this.tenderlyError = n ?? void 0;
21833
21833
  }
21834
21834
  }
21835
- async function pc(e, t = 15, r = 0, n = 5e3) {
21835
+ async function mc(e, t = 15, r = 0, n = 5e3) {
21836
21836
  if (r >= t)
21837
21837
  throw `Failed to get an ok response after ${r} attempt(s), aborting`;
21838
21838
  if (await e())
21839
21839
  return !0;
21840
- await new Promise((s) => setTimeout(s, n)), r++, await pc(e, t, r, n);
21840
+ await new Promise((s) => setTimeout(s, n)), r++, await mc(e, t, r, n);
21841
21841
  }
21842
21842
  const nk = (e, t) => new Promise((r) => {
21843
21843
  yt.get(`https://api.tenderly.co/api/v1/public-contract/${e}/trace/${t}`, {
@@ -21888,7 +21888,7 @@ const nk = (e, t) => new Promise((r) => {
21888
21888
  async function ak(e, t, r, n, a, s, o, i, l, u, p, d, h, f, y) {
21889
21889
  const C = Oe();
21890
21890
  try {
21891
- await pc(async () => await n.getChainId() === e, 10, void 0, 250);
21891
+ await mc(async () => await n.getChainId() === e, 10, void 0, 250);
21892
21892
  } catch {
21893
21893
  throw `Current chain id: ${await n.getChainId()} does not match expected chain id: ${e} `;
21894
21894
  }
@@ -21899,14 +21899,14 @@ async function ak(e, t, r, n, a, s, o, i, l, u, p, d, h, f, y) {
21899
21899
  if (W ? U = await n.handleBatchTransactionStep?.(e, t) : U = await n.handleSendTransactionStep(e, Array.isArray(t) ? t[0] : t, r), U === "null")
21900
21900
  throw "User rejected the request";
21901
21901
  const V = Array.isArray(t) ? t.find((T) => T.check)?.check : t.check;
21902
- if ($d({
21902
+ if (eu({
21903
21903
  txHash: U,
21904
21904
  chainId: e,
21905
21905
  step: r,
21906
21906
  request: i,
21907
21907
  headers: l,
21908
21908
  source: C.source
21909
- }), U && !W && !Array.isArray(t) && e === d?.currencyOut?.currency?.chainId && _d({
21909
+ }), U && !W && !Array.isArray(t) && e === d?.currencyOut?.currency?.chainId && $d({
21910
21910
  calldata: JSON.stringify({ ...t.data, txHash: U }),
21911
21911
  chainId: e,
21912
21912
  step: r,
@@ -22021,14 +22021,14 @@ async function ak(e, t, r, n, a, s, o, i, l, u, p, d, h, f, y) {
22021
22021
  const T = new AbortController(), M = T.signal;
22022
22022
  return {
22023
22023
  promise: n.handleConfirmTransactionStep(U, e, (F) => {
22024
- M.aborted || (a([{ txHash: F, chainId: e }]), U = F, R = 0, Oe()?.log(["Transaction replaced", F], le.Verbose), $d({
22024
+ M.aborted || (a([{ txHash: F, chainId: e }]), U = F, R = 0, Oe()?.log(["Transaction replaced", F], le.Verbose), eu({
22025
22025
  txHash: F,
22026
22026
  chainId: e,
22027
22027
  step: r,
22028
22028
  request: i,
22029
22029
  headers: l,
22030
22030
  source: C.source
22031
- }), !W && !Array.isArray(t) && e === d?.currencyOut?.currency?.chainId && _d({
22031
+ }), !W && !Array.isArray(t) && e === d?.currencyOut?.currency?.chainId && $d({
22032
22032
  calldata: JSON.stringify({ ...t.data, replacementTxHash: F }),
22033
22033
  chainId: e,
22034
22034
  step: r,
@@ -22077,7 +22077,7 @@ async function ak(e, t, r, n, a, s, o, i, l, u, p, d, h, f, y) {
22077
22077
  }
22078
22078
  return !0;
22079
22079
  }
22080
- const _d = async ({ calldata: e, chainId: t, request: r, headers: n, step: a, source: s }) => {
22080
+ const $d = async ({ calldata: e, chainId: t, request: r, headers: n, step: a, source: s }) => {
22081
22081
  if (e && a.requestId && t) {
22082
22082
  Oe()?.log(["Posting same chain transaction to notify the solver"], le.Verbose);
22083
22083
  try {
@@ -22099,7 +22099,7 @@ const _d = async ({ calldata: e, chainId: t, request: r, headers: n, step: a, so
22099
22099
  Oe()?.log(["Failed to post same chain transaction to solver", o], le.Warn);
22100
22100
  }
22101
22101
  }
22102
- }, $d = async ({ txHash: e, chainId: t, request: r, headers: n, step: a, source: s }) => {
22102
+ }, eu = async ({ txHash: e, chainId: t, request: r, headers: n, step: a, source: s }) => {
22103
22103
  if (a.id === "deposit" && e) {
22104
22104
  Oe()?.log(["Posting transaction to notify the solver"], le.Verbose);
22105
22105
  try {
@@ -22520,7 +22520,7 @@ async function lm(e, t, r = 15, n = 0, a = 5e3) {
22520
22520
  return !0;
22521
22521
  await new Promise((o) => setTimeout(o, a)), n++, await lm(e, t, r, n, a);
22522
22522
  }
22523
- function mc(e) {
22523
+ function hc(e) {
22524
22524
  const { abi: t, functionName: r, args: n } = e, a = vp({ abi: t, functionName: r, args: n });
22525
22525
  return {
22526
22526
  to: e.address,
@@ -22528,7 +22528,7 @@ function mc(e) {
22528
22528
  data: a
22529
22529
  };
22530
22530
  }
22531
- function hc(e) {
22531
+ function fc(e) {
22532
22532
  return e.extend !== void 0 && e.getPermissions !== void 0;
22533
22533
  }
22534
22534
  const Zo = (e) => ({
@@ -22596,7 +22596,7 @@ const Zo = (e) => ({
22596
22596
  const s = Oe(), o = s.chains.find((p) => p.id === r), i = o?.httpRpcUrl;
22597
22597
  return await wn({
22598
22598
  chain: o?.viemChain,
22599
- transport: e.transport ? sl(i ? [Et(i), hs(e.transport), Et()] : [hs(e.transport), Et()]) : sl([Et(i), Et()]),
22599
+ transport: e.transport ? ol(i ? [Et(i), hs(e.transport), Et()] : [hs(e.transport), Et()]) : ol([Et(i), Et()]),
22600
22600
  pollingInterval: s.confirmationPollingInterval
22601
22601
  }).waitForTransactionReceipt({
22602
22602
  hash: t,
@@ -22754,7 +22754,7 @@ const Zo = (e) => ({
22754
22754
  squaredLight: `${$r}/icons/square/${e.id}/light.png`
22755
22755
  }
22756
22756
  };
22757
- }, fc = (e) => ({
22757
+ }, gc = (e) => ({
22758
22758
  id: e.id,
22759
22759
  name: e.name.replace(" ", "-"),
22760
22760
  displayName: e.name,
@@ -22767,7 +22767,7 @@ const Zo = (e) => ({
22767
22767
  squaredLight: `${$r}/icons/square/${e.id}/light.png`
22768
22768
  },
22769
22769
  currency: {
22770
- address: Nt,
22770
+ address: vt,
22771
22771
  ...e.nativeCurrency
22772
22772
  },
22773
22773
  explorerUrl: e.blockExplorers?.default.url ?? "",
@@ -22797,10 +22797,10 @@ const Zo = (e) => ({
22797
22797
  }
22798
22798
  return { currentStep: t, currentStepItem: r, txHashes: n };
22799
22799
  };
22800
- function gc(e) {
22800
+ function wc(e) {
22801
22801
  return e.abi !== void 0;
22802
22802
  }
22803
- function wc(e) {
22803
+ function bc(e) {
22804
22804
  return typeof structuredClone == "function" ? structuredClone(e) : JSON.parse(JSON.stringify(e));
22805
22805
  }
22806
22806
  const yk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -22812,34 +22812,34 @@ const yk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22812
22812
  adaptViemWallet: Zo,
22813
22813
  axios: yt,
22814
22814
  configureViemChain: Qo,
22815
- convertViemChainToRelayChain: fc,
22815
+ convertViemChainToRelayChain: gc,
22816
22816
  executeSteps: Go,
22817
22817
  fetchChainConfigs: bk,
22818
22818
  getCurrentStepData: cm,
22819
22819
  isAPIError: $v,
22820
- isSimulateContractRequest: gc,
22821
- log: wl,
22820
+ isSimulateContractRequest: wc,
22821
+ log: bl,
22822
22822
  pollUntilHasData: im,
22823
22823
  pollUntilOk: lm,
22824
- prepareCallTransaction: mc,
22824
+ prepareCallTransaction: hc,
22825
22825
  prepareHyperliquidSignatureStep: am,
22826
- repeatUntilOk: pc,
22826
+ repeatUntilOk: mc,
22827
22827
  request: _v,
22828
- safeStructuredClone: wc,
22828
+ safeStructuredClone: bc,
22829
22829
  setParams: gk
22830
22830
  }, Symbol.toStringTag, { value: "Module" })), Ck = "3.1.0";
22831
22831
  let Oa;
22832
22832
  const xk = [
22833
22833
  C1,
22834
- sc,
22834
+ oc,
22835
22835
  v1,
22836
22836
  x1,
22837
22837
  h1,
22838
22838
  f1
22839
- ].map((e) => fc(e)), Ek = [E1, g1].map((e) => fc(e));
22839
+ ].map((e) => gc(e)), Ek = [E1, g1].map((e) => gc(e));
22840
22840
  class vk {
22841
22841
  log(t, r = le.Info) {
22842
- return wl(t, r, this.logLevel);
22842
+ return bl(t, r, this.logLevel);
22843
22843
  }
22844
22844
  constructor(t) {
22845
22845
  if (Object.defineProperty(this, "version", {
@@ -22921,7 +22921,7 @@ class vk {
22921
22921
  }
22922
22922
  configure(t) {
22923
22923
  this.baseApiUrl = t.baseApiUrl ? t.baseApiUrl : this.baseApiUrl, this.source = t.source ? t.source : this.source, this.logLevel = t.logLevel !== void 0 ? t.logLevel : le.None, this.pollingInterval = t.pollingInterval ? t.pollingInterval : this.pollingInterval, this.confirmationPollingInterval = t.confirmationPollingInterval ? t.confirmationPollingInterval : this.confirmationPollingInterval, this.maxPollingAttemptsBeforeTimeout = t.maxPollingAttemptsBeforeTimeout ? t.maxPollingAttemptsBeforeTimeout : this.maxPollingAttemptsBeforeTimeout, this.useGasFeeEstimations = t.useGasFeeEstimations !== void 0 ? t.useGasFeeEstimations : this.useGasFeeEstimations, this.websocketEnabled = t.websocket?.enabled !== void 0 ? t.websocket.enabled : this.websocketEnabled, this.websocketUrl = t.websocket?.url || this.websocketUrl, t.logger ? this.log = t.logger : this.log = (r, n = le.Info) => {
22924
- wl(r, n, this.logLevel);
22924
+ bl(r, n, this.logLevel);
22925
22925
  }, t.chains && (this.chains = t.chains);
22926
22926
  }
22927
22927
  }
@@ -22931,24 +22931,24 @@ function Oe() {
22931
22931
  function kk(e) {
22932
22932
  return Oa ? Oa.configure(e) : Oa = new vk({ ...e }), Oa;
22933
22933
  }
22934
- const dm = "0x000000000000000000000000000000000000dead", um = "CbKGgVKLJFb8bBrf58DnAkdryX6ubewVytn7X957YwNr", pm = "CrfbABN2sSvmoZLu9eDDfXpaC2nHg42R7AXbHs9eg4S9", mm = "bc1q4vxn43l44h30nkluqfxd9eckf45vr2awz38lwa", Ak = "THa7BwoPfacfiELa63pbmm3g5PGKYmtJyt", Sk = "0x00000000000000000000000000000000000dead0", hm = "0x000000000000000000000000000000000000000000000000000000000000dead", Tk = 9286185, Uk = 543210, kl = (e, t) => e === "svm" ? t === Tk ? pm : um : e === "bvm" ? mm : t === Uk ? Sk : e === "tvm" ? Ak : e === "suivm" ? hm : dm, eu = (e) => e ? e === pm || e === um || e === mm || e === dm || e === hm : !1;
22934
+ const dm = "0x000000000000000000000000000000000000dead", um = "CbKGgVKLJFb8bBrf58DnAkdryX6ubewVytn7X957YwNr", pm = "CrfbABN2sSvmoZLu9eDDfXpaC2nHg42R7AXbHs9eg4S9", mm = "bc1q4vxn43l44h30nkluqfxd9eckf45vr2awz38lwa", Ak = "THa7BwoPfacfiELa63pbmm3g5PGKYmtJyt", Sk = "0x00000000000000000000000000000000000dead0", hm = "0x000000000000000000000000000000000000000000000000000000000000dead", Tk = 9286185, Uk = 543210, Al = (e, t) => e === "svm" ? t === Tk ? pm : um : e === "bvm" ? mm : t === Uk ? Sk : e === "tvm" ? Ak : e === "suivm" ? hm : dm, tu = (e) => e ? e === pm || e === um || e === mm || e === dm || e === hm : !1;
22935
22935
  function Ik(e) {
22936
22936
  const { quote: t, wallet: r, depositGasLimit: n, onProgress: a } = e, s = Oe();
22937
22937
  if (!s.baseApiUrl || !s.baseApiUrl.length)
22938
22938
  throw new ReferenceError("RelayClient missing api url configuration");
22939
22939
  let o;
22940
- r && (o = hc(r) ? Zo(r) : r);
22940
+ r && (o = fc(r) ? Zo(r) : r);
22941
22941
  try {
22942
22942
  if (!o)
22943
22943
  throw new Error("AdaptedWallet is required to execute steps");
22944
22944
  const i = new AbortController(), l = t.details?.currencyIn?.currency?.chainId;
22945
22945
  if (l === void 0)
22946
22946
  throw new Error("Missing chainId from quote");
22947
- if (eu(t?.details?.recipient))
22947
+ if (tu(t?.details?.recipient))
22948
22948
  throw new Error("Recipient should never be burn address");
22949
- if (eu(t?.details?.sender))
22949
+ if (tu(t?.details?.sender))
22950
22950
  throw new Error("Sender should never be burn address");
22951
- const { request: u, ...p } = t, d = wc(p), h = new Promise((f, y) => {
22951
+ const { request: u, ...p } = t, d = bc(p), h = new Promise((f, y) => {
22952
22952
  Go(l, u, o, ({ steps: C, fees: b, breakdown: E, details: k, refunded: A, error: v }) => {
22953
22953
  if (i.signal.aborted) {
22954
22954
  console.log("Relay SDK: Execution aborted, skipping progress callback");
@@ -22980,11 +22980,11 @@ function Ik(e) {
22980
22980
  }
22981
22981
  }
22982
22982
  const Nk = async (e, t, r, n, a) => {
22983
- const s = e.chains.find((p) => p.id === r), o = e.chains.find((p) => p.id === t), i = s ? kl(s.vmType, s.id) : void 0, l = o ? kl(o.vmType, o.id) : void 0;
22983
+ const s = e.chains.find((p) => p.id === r), o = e.chains.find((p) => p.id === t), i = s ? Al(s.vmType, s.id) : void 0, l = o ? Al(o.vmType, o.id) : void 0;
22984
22984
  let u;
22985
22985
  return a && (u = await a.address()), {
22986
- user: u || i || Nt,
22987
- recipient: n || u || l || Nt
22986
+ user: u || i || vt,
22987
+ recipient: n || u || l || vt
22988
22988
  };
22989
22989
  };
22990
22990
  async function Bk(e, t, r) {
@@ -22992,9 +22992,9 @@ async function Bk(e, t, r) {
22992
22992
  if (!y.baseApiUrl || !y.baseApiUrl.length)
22993
22993
  throw new ReferenceError("RelayClient missing api url configuration");
22994
22994
  let C;
22995
- s && (C = hc(s) ? Zo(s) : s);
22995
+ s && (C = fc(s) ? Zo(s) : s);
22996
22996
  let b;
22997
- h && h.length > 0 && (b = h.map((N) => gc(N) ? mc(N) : N));
22997
+ h && h.length > 0 && (b = h.map((N) => wc(N) ? hc(N) : N));
22998
22998
  let E;
22999
22999
  if (t && (E = await Nk(y, n, o, p, C)), !f && !E?.user)
23000
23000
  throw new Error("User is required");
@@ -23027,8 +23027,8 @@ async function Rk(e) {
23027
23027
  if (!d.baseApiUrl || !d.baseApiUrl.length)
23028
23028
  throw new ReferenceError("RelayClient missing api url configuration");
23029
23029
  let h;
23030
- p && p.length > 0 && (h = p.map((k) => gc(k) ? mc(k) : k));
23031
- const f = d.chains.find((k) => k.id === n), y = kl(f?.vmType, f?.id), C = {
23030
+ p && p.length > 0 && (h = p.map((k) => wc(k) ? hc(k) : k));
23031
+ const f = d.chains.find((k) => k.id === n), y = Al(f?.vmType, f?.id), C = {
23032
23032
  user: i ?? y,
23033
23033
  destinationCurrency: r,
23034
23034
  destinationChainId: t,
@@ -23053,7 +23053,7 @@ async function Fk(e, t = yt) {
23053
23053
  const r = Oe();
23054
23054
  if (!r)
23055
23055
  throw new Error("Client not initialized");
23056
- e.user = e.user || Nt, e.currency = e.currency;
23056
+ e.user = e.user || vt, e.currency = e.currency;
23057
23057
  const n = await t.get(`${r.baseApiUrl}/config/v2`, { params: e });
23058
23058
  if (n.data)
23059
23059
  return n.data;
@@ -23076,7 +23076,7 @@ async function Vk(e) {
23076
23076
  if (!o.baseApiUrl || !o.baseApiUrl.length)
23077
23077
  throw new ReferenceError("RelayClient missing api url configuration");
23078
23078
  let i;
23079
- if (t && (i = hc(t) ? Zo(t) : t), !i)
23079
+ if (t && (i = fc(t) ? Zo(t) : t), !i)
23080
23080
  throw new Error("AdaptedWallet is required to execute claim steps");
23081
23081
  const l = await i.address(), u = new AbortController(), p = {
23082
23082
  url: `${o.baseApiUrl}/app-fees/${l}/claim`,
@@ -23088,7 +23088,7 @@ async function Vk(e) {
23088
23088
  const d = await o.utils.axios.request(p);
23089
23089
  if (d.status !== 200)
23090
23090
  throw new ca(d?.data?.message, d.status, d.data);
23091
- const h = d.data.steps || [], f = wc({
23091
+ const h = d.data.steps || [], f = bc({
23092
23092
  steps: h
23093
23093
  });
23094
23094
  return { data: await Go(r, p, i, (C) => {
@@ -23098,7 +23098,7 @@ async function Vk(e) {
23098
23098
  throw console.error(d), d;
23099
23099
  }
23100
23100
  }
23101
- const Al = 792703809, ut = kk({
23101
+ const Sl = 792703809, ut = kk({
23102
23102
  baseApiUrl: Do,
23103
23103
  source: "useglyph.io"
23104
23104
  }), BM = (e) => {
@@ -23135,8 +23135,8 @@ const Kk = "GlyphWidget", os = (e) => {
23135
23135
  }
23136
23136
  };
23137
23137
  };
23138
- function tu(e, t) {
23139
- return BigInt(Xl(e.toString(), t));
23138
+ function Bi(e, t) {
23139
+ return BigInt(Hl(e.toString(), t));
23140
23140
  }
23141
23141
  const Ya = (e, t = 2) => Number(
23142
23142
  e?.toLocaleString?.("en-US", {
@@ -23188,7 +23188,7 @@ function Gk() {
23188
23188
  }), { chains: e, iconMap: t };
23189
23189
  }
23190
23190
  const Zk = (e) => ut?.chains?.find((t) => t.id === e) || null, au = (e, t) => {
23191
- if (!e || !t || e?.chainId !== t?.chainId || ![e?.address?.toLowerCase?.(), t?.address?.toLowerCase?.()].includes(Nt))
23191
+ if (!e || !t || e?.chainId !== t?.chainId || ![e?.address?.toLowerCase?.(), t?.address?.toLowerCase?.()].includes(vt))
23192
23192
  return !1;
23193
23193
  const n = (ut?.chains || []).find((a) => a.id === e.chainId)?.wrappedTokenAddress;
23194
23194
  return !![e?.address?.toLowerCase?.(), t?.address?.toLowerCase?.()].includes(
@@ -23317,7 +23317,7 @@ const Hk = Dt(
23317
23317
  children: s,
23318
23318
  iconNode: o,
23319
23319
  ...i
23320
- }, l) => al(
23320
+ }, l) => sl(
23321
23321
  "svg",
23322
23322
  {
23323
23323
  ref: l,
@@ -23331,7 +23331,7 @@ const Hk = Dt(
23331
23331
  ...i
23332
23332
  },
23333
23333
  [
23334
- ...o.map(([u, p]) => al(u, p)),
23334
+ ...o.map(([u, p]) => sl(u, p)),
23335
23335
  ...Array.isArray(s) ? s : [s]
23336
23336
  ]
23337
23337
  )
@@ -23344,7 +23344,7 @@ const Hk = Dt(
23344
23344
  */
23345
23345
  const ir = (e, t) => {
23346
23346
  const r = Dt(
23347
- ({ className: n, ...a }, s) => al(Hk, {
23347
+ ({ className: n, ...a }, s) => sl(Hk, {
23348
23348
  ref: s,
23349
23349
  iconNode: t,
23350
23350
  className: fm(
@@ -23392,7 +23392,7 @@ const eA = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], tA = ir("check",
23392
23392
  * This source code is licensed under the ISC license.
23393
23393
  * See the LICENSE file in the root directory of this source tree.
23394
23394
  */
23395
- const rA = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], bc = ir("chevron-down", rA);
23395
+ const rA = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], yc = ir("chevron-down", rA);
23396
23396
  /**
23397
23397
  * @license lucide-react v0.542.0 - ISC
23398
23398
  *
@@ -23809,7 +23809,7 @@ function IA(e, t = globalThis?.document) {
23809
23809
  return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
23810
23810
  }, [r, t]);
23811
23811
  }
23812
- var NA = "DismissableLayer", Sl = "dismissableLayer.update", BA = "dismissableLayer.pointerDownOutside", RA = "dismissableLayer.focusOutside", uu, xm = B.createContext({
23812
+ var NA = "DismissableLayer", Tl = "dismissableLayer.update", BA = "dismissableLayer.pointerDownOutside", RA = "dismissableLayer.focusOutside", uu, xm = B.createContext({
23813
23813
  layers: /* @__PURE__ */ new Set(),
23814
23814
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
23815
23815
  branches: /* @__PURE__ */ new Set()
@@ -23841,7 +23841,7 @@ var NA = "DismissableLayer", Sl = "dismissableLayer.update", BA = "dismissableLa
23841
23841
  p && (u.layers.delete(p), u.layersWithOutsidePointerEventsDisabled.delete(p), pu());
23842
23842
  }, [p, u]), B.useEffect(() => {
23843
23843
  const U = () => f({});
23844
- return document.addEventListener(Sl, U), () => document.removeEventListener(Sl, U);
23844
+ return document.addEventListener(Tl, U), () => document.removeEventListener(Tl, U);
23845
23845
  }, []), /* @__PURE__ */ c(
23846
23846
  ot.div,
23847
23847
  {
@@ -23918,14 +23918,14 @@ function WA(e, t = globalThis?.document) {
23918
23918
  };
23919
23919
  }
23920
23920
  function pu() {
23921
- const e = new CustomEvent(Sl);
23921
+ const e = new CustomEvent(Tl);
23922
23922
  document.dispatchEvent(e);
23923
23923
  }
23924
23924
  function Em(e, t, r, { discrete: n }) {
23925
23925
  const a = r.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
23926
23926
  t && a.addEventListener(e, t, { once: !0 }), n ? UA(a, s) : a.dispatchEvent(s);
23927
23927
  }
23928
- var Bi = "focusScope.autoFocusOnMount", Ri = "focusScope.autoFocusOnUnmount", mu = { bubbles: !1, cancelable: !0 }, LA = "FocusScope", yc = B.forwardRef((e, t) => {
23928
+ var Ri = "focusScope.autoFocusOnMount", Fi = "focusScope.autoFocusOnUnmount", mu = { bubbles: !1, cancelable: !0 }, LA = "FocusScope", Cc = B.forwardRef((e, t) => {
23929
23929
  const {
23930
23930
  loop: r = !1,
23931
23931
  trapped: n = !1,
@@ -23967,13 +23967,13 @@ var Bi = "focusScope.autoFocusOnMount", Ri = "focusScope.autoFocusOnUnmount", mu
23967
23967
  fu.add(f);
23968
23968
  const C = document.activeElement;
23969
23969
  if (!i.contains(C)) {
23970
- const E = new CustomEvent(Bi, mu);
23971
- i.addEventListener(Bi, u), i.dispatchEvent(E), E.defaultPrevented || (OA(GA(vm(i)), { select: !0 }), document.activeElement === C && Xr(i));
23970
+ const E = new CustomEvent(Ri, mu);
23971
+ i.addEventListener(Ri, u), i.dispatchEvent(E), E.defaultPrevented || (OA(GA(vm(i)), { select: !0 }), document.activeElement === C && Xr(i));
23972
23972
  }
23973
23973
  return () => {
23974
- i.removeEventListener(Bi, u), setTimeout(() => {
23975
- const E = new CustomEvent(Ri, mu);
23976
- i.addEventListener(Ri, p), i.dispatchEvent(E), E.defaultPrevented || Xr(C ?? document.body, { select: !0 }), i.removeEventListener(Ri, p), fu.remove(f);
23974
+ i.removeEventListener(Ri, u), setTimeout(() => {
23975
+ const E = new CustomEvent(Fi, mu);
23976
+ i.addEventListener(Fi, p), i.dispatchEvent(E), E.defaultPrevented || Xr(C ?? document.body, { select: !0 }), i.removeEventListener(Fi, p), fu.remove(f);
23977
23977
  }, 0);
23978
23978
  };
23979
23979
  }
@@ -23991,7 +23991,7 @@ var Bi = "focusScope.autoFocusOnMount", Ri = "focusScope.autoFocusOnUnmount", mu
23991
23991
  );
23992
23992
  return /* @__PURE__ */ c(ot.div, { tabIndex: -1, ...o, ref: h, onKeyDown: y });
23993
23993
  });
23994
- yc.displayName = LA;
23994
+ Cc.displayName = LA;
23995
23995
  function OA(e, { select: t = !1 } = {}) {
23996
23996
  const r = document.activeElement;
23997
23997
  for (const n of e)
@@ -24053,13 +24053,13 @@ function gu(e, t) {
24053
24053
  function GA(e) {
24054
24054
  return e.filter((t) => t.tagName !== "A");
24055
24055
  }
24056
- var ZA = "Portal", Cc = B.forwardRef((e, t) => {
24056
+ var ZA = "Portal", xc = B.forwardRef((e, t) => {
24057
24057
  const { container: r, ...n } = e, [a, s] = B.useState(!1);
24058
24058
  Lr(() => s(!0), []);
24059
24059
  const o = r || a && globalThis?.document?.body;
24060
24060
  return o ? Ap.createPortal(/* @__PURE__ */ c(ot.div, { ...n, ref: t }), o) : null;
24061
24061
  });
24062
- Cc.displayName = ZA;
24062
+ xc.displayName = ZA;
24063
24063
  function QA(e, t) {
24064
24064
  return B.useReducer((r, n) => t[r][n] ?? r, e);
24065
24065
  }
@@ -24124,12 +24124,12 @@ function PA(e) {
24124
24124
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
24125
24125
  return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
24126
24126
  }
24127
- var Fi = 0;
24127
+ var Mi = 0;
24128
24128
  function km() {
24129
24129
  B.useEffect(() => {
24130
24130
  const e = document.querySelectorAll("[data-radix-focus-guard]");
24131
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? wu()), document.body.insertAdjacentElement("beforeend", e[1] ?? wu()), Fi++, () => {
24132
- Fi === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Fi--;
24131
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? wu()), document.body.insertAdjacentElement("beforeend", e[1] ?? wu()), Mi++, () => {
24132
+ Mi === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Mi--;
24133
24133
  };
24134
24134
  }, []);
24135
24135
  }
@@ -24160,7 +24160,7 @@ function YA(e, t, r) {
24160
24160
  return e.concat(s || Array.prototype.slice.call(t));
24161
24161
  }
24162
24162
  var oo = "right-scroll-bar-position", io = "width-before-scroll-bar", XA = "with-scroll-bars-hidden", HA = "--removed-body-scroll-bar-size";
24163
- function Mi(e, t) {
24163
+ function Vi(e, t) {
24164
24164
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
24165
24165
  }
24166
24166
  function jA(e, t) {
@@ -24188,7 +24188,7 @@ var _A = typeof window < "u" ? B.useLayoutEffect : B.useEffect, bu = /* @__PURE_
24188
24188
  function $A(e, t) {
24189
24189
  var r = jA(null, function(n) {
24190
24190
  return e.forEach(function(a) {
24191
- return Mi(a, n);
24191
+ return Vi(a, n);
24192
24192
  });
24193
24193
  });
24194
24194
  return _A(function() {
@@ -24196,9 +24196,9 @@ function $A(e, t) {
24196
24196
  if (n) {
24197
24197
  var a = new Set(n), s = new Set(e), o = r.current;
24198
24198
  a.forEach(function(i) {
24199
- s.has(i) || Mi(i, null);
24199
+ s.has(i) || Vi(i, null);
24200
24200
  }), s.forEach(function(i) {
24201
- a.has(i) || Mi(i, o);
24201
+ a.has(i) || Vi(i, o);
24202
24202
  });
24203
24203
  }
24204
24204
  bu.set(r, e);
@@ -24280,12 +24280,12 @@ Sm.isSideCarExport = !0;
24280
24280
  function nS(e, t) {
24281
24281
  return e.useMedium(t), Sm;
24282
24282
  }
24283
- var Tm = rS(), Vi = function() {
24283
+ var Tm = rS(), Wi = function() {
24284
24284
  }, Yo = B.forwardRef(function(e, t) {
24285
24285
  var r = B.useRef(null), n = B.useState({
24286
- onScrollCapture: Vi,
24287
- onWheelCapture: Vi,
24288
- onTouchMoveCapture: Vi
24286
+ onScrollCapture: Wi,
24287
+ onWheelCapture: Wi,
24288
+ onTouchMoveCapture: Wi
24289
24289
  }), a = n[0], s = n[1], o = e.forwardProps, i = e.children, l = e.className, u = e.removeScrollBar, p = e.enabled, d = e.shards, h = e.sideCar, f = e.noRelative, y = e.noIsolation, C = e.inert, b = e.allowPinchZoom, E = e.as, k = E === void 0 ? "div" : E, A = e.gapMode, v = Am(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = h, R = $A([r, t]), U = mr(mr({}, v), a);
24290
24290
  return B.createElement(
24291
24291
  B.Fragment,
@@ -24352,11 +24352,11 @@ var lS = function() {
24352
24352
  top: 0,
24353
24353
  right: 0,
24354
24354
  gap: 0
24355
- }, Wi = function(e) {
24355
+ }, Li = function(e) {
24356
24356
  return parseInt(e || "", 10) || 0;
24357
24357
  }, uS = function(e) {
24358
24358
  var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
24359
- return [Wi(r), Wi(n), Wi(a)];
24359
+ return [Li(r), Li(n), Li(a)];
24360
24360
  }, pS = function(e) {
24361
24361
  if (e === void 0 && (e = "margin"), typeof window > "u")
24362
24362
  return dS;
@@ -24428,19 +24428,19 @@ var lS = function() {
24428
24428
  return pS(a);
24429
24429
  }, [a]);
24430
24430
  return B.createElement(mS, { styles: hS(s, !t, a, r ? "" : "!important") });
24431
- }, Tl = !1;
24431
+ }, Ul = !1;
24432
24432
  if (typeof window < "u")
24433
24433
  try {
24434
24434
  var Qs = Object.defineProperty({}, "passive", {
24435
24435
  get: function() {
24436
- return Tl = !0, !0;
24436
+ return Ul = !0, !0;
24437
24437
  }
24438
24438
  });
24439
24439
  window.addEventListener("test", Qs, Qs), window.removeEventListener("test", Qs, Qs);
24440
24440
  } catch {
24441
- Tl = !1;
24441
+ Ul = !1;
24442
24442
  }
24443
- var Nn = Tl ? { passive: !1 } : !1, wS = function(e) {
24443
+ var Nn = Ul ? { passive: !1 } : !1, wS = function(e) {
24444
24444
  return e.tagName === "TEXTAREA";
24445
24445
  }, Im = function(e, t) {
24446
24446
  if (!(e instanceof Element))
@@ -24605,16 +24605,16 @@ function US(e) {
24605
24605
  return t;
24606
24606
  }
24607
24607
  const IS = nS(Tm, TS);
24608
- var xc = B.forwardRef(function(e, t) {
24608
+ var Ec = B.forwardRef(function(e, t) {
24609
24609
  return B.createElement(Yo, mr({}, e, { ref: t, sideCar: IS }));
24610
24610
  });
24611
- xc.classNames = Yo.classNames;
24611
+ Ec.classNames = Yo.classNames;
24612
24612
  var NS = function(e) {
24613
24613
  if (typeof document > "u")
24614
24614
  return null;
24615
24615
  var t = Array.isArray(e) ? e[0] : e;
24616
24616
  return t.ownerDocument.body;
24617
- }, Rn = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Ys = {}, Li = 0, Rm = function(e) {
24617
+ }, Rn = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Ys = {}, Oi = 0, Rm = function(e) {
24618
24618
  return e && (e.host || Rm(e.parentNode));
24619
24619
  }, BS = function(e, t) {
24620
24620
  return t.map(function(r) {
@@ -24645,11 +24645,11 @@ var NS = function(e) {
24645
24645
  }
24646
24646
  });
24647
24647
  };
24648
- return p(t), i.clear(), Li++, function() {
24648
+ return p(t), i.clear(), Oi++, function() {
24649
24649
  o.forEach(function(d) {
24650
24650
  var h = Rn.get(d) - 1, f = s.get(d) - 1;
24651
24651
  Rn.set(d, h), s.set(d, f), h || (Ps.has(d) || d.removeAttribute(n), Ps.delete(d)), f || d.removeAttribute(r);
24652
- }), Li--, Li || (Rn = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Ys = {});
24652
+ }), Oi--, Oi || (Rn = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Ys = {});
24653
24653
  };
24654
24654
  }, Fm = function(e, t, r) {
24655
24655
  r === void 0 && (r = "data-aria-hidden");
@@ -24699,7 +24699,7 @@ var Wm = "DialogTrigger", Lm = B.forwardRef(
24699
24699
  "aria-haspopup": "dialog",
24700
24700
  "aria-expanded": a.open,
24701
24701
  "aria-controls": a.contentId,
24702
- "data-state": kc(a.open),
24702
+ "data-state": Ac(a.open),
24703
24703
  ...n,
24704
24704
  ref: s,
24705
24705
  onClick: st(e.onClick, a.onOpenToggle)
@@ -24708,13 +24708,13 @@ var Wm = "DialogTrigger", Lm = B.forwardRef(
24708
24708
  }
24709
24709
  );
24710
24710
  Lm.displayName = Wm;
24711
- var Ec = "DialogPortal", [MS, Om] = Mm(Ec, {
24711
+ var vc = "DialogPortal", [MS, Om] = Mm(vc, {
24712
24712
  forceMount: void 0
24713
24713
  }), qm = (e) => {
24714
- const { __scopeDialog: t, forceMount: r, children: n, container: a } = e, s = lr(Ec, t);
24715
- return /* @__PURE__ */ c(MS, { scope: t, forceMount: r, children: B.Children.map(n, (o) => /* @__PURE__ */ c(an, { present: r || s.open, children: /* @__PURE__ */ c(Cc, { asChild: !0, container: a, children: o }) })) });
24714
+ const { __scopeDialog: t, forceMount: r, children: n, container: a } = e, s = lr(vc, t);
24715
+ return /* @__PURE__ */ c(MS, { scope: t, forceMount: r, children: B.Children.map(n, (o) => /* @__PURE__ */ c(an, { present: r || s.open, children: /* @__PURE__ */ c(xc, { asChild: !0, container: a, children: o }) })) });
24716
24716
  };
24717
- qm.displayName = Ec;
24717
+ qm.displayName = vc;
24718
24718
  var ho = "DialogOverlay", Km = B.forwardRef(
24719
24719
  (e, t) => {
24720
24720
  const r = Om(ho, e.__scopeDialog), { forceMount: n = r.forceMount, ...a } = e, s = lr(ho, e.__scopeDialog);
@@ -24728,10 +24728,10 @@ var VS = /* @__PURE__ */ jn("DialogOverlay.RemoveScroll"), WS = B.forwardRef(
24728
24728
  return (
24729
24729
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
24730
24730
  // ie. when `Overlay` and `Content` are siblings
24731
- /* @__PURE__ */ c(xc, { as: VS, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ c(
24731
+ /* @__PURE__ */ c(Ec, { as: VS, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ c(
24732
24732
  ot.div,
24733
24733
  {
24734
- "data-state": kc(a.open),
24734
+ "data-state": Ac(a.open),
24735
24735
  ...n,
24736
24736
  ref: t,
24737
24737
  style: { pointerEvents: "auto", ...n.style }
@@ -24799,7 +24799,7 @@ var LS = B.forwardRef(
24799
24799
  const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: a, onCloseAutoFocus: s, ...o } = e, i = lr(Cn, r), l = B.useRef(null), u = ft(t, l);
24800
24800
  return km(), /* @__PURE__ */ S(ve, { children: [
24801
24801
  /* @__PURE__ */ c(
24802
- yc,
24802
+ Cc,
24803
24803
  {
24804
24804
  asChild: !0,
24805
24805
  loop: !0,
@@ -24813,7 +24813,7 @@ var LS = B.forwardRef(
24813
24813
  id: i.contentId,
24814
24814
  "aria-describedby": i.descriptionId,
24815
24815
  "aria-labelledby": i.titleId,
24816
- "data-state": kc(i.open),
24816
+ "data-state": Ac(i.open),
24817
24817
  ...o,
24818
24818
  ref: u,
24819
24819
  onDismiss: () => i.onOpenChange(!1)
@@ -24827,13 +24827,13 @@ var LS = B.forwardRef(
24827
24827
  ] })
24828
24828
  ] });
24829
24829
  }
24830
- ), vc = "DialogTitle", Gm = B.forwardRef(
24830
+ ), kc = "DialogTitle", Gm = B.forwardRef(
24831
24831
  (e, t) => {
24832
- const { __scopeDialog: r, ...n } = e, a = lr(vc, r);
24832
+ const { __scopeDialog: r, ...n } = e, a = lr(kc, r);
24833
24833
  return /* @__PURE__ */ c(ot.h2, { id: a.titleId, ...n, ref: t });
24834
24834
  }
24835
24835
  );
24836
- Gm.displayName = vc;
24836
+ Gm.displayName = kc;
24837
24837
  var Zm = "DialogDescription", Qm = B.forwardRef(
24838
24838
  (e, t) => {
24839
24839
  const { __scopeDialog: r, ...n } = e, a = lr(Zm, r);
@@ -24856,12 +24856,12 @@ var Jm = "DialogClose", Pm = B.forwardRef(
24856
24856
  }
24857
24857
  );
24858
24858
  Pm.displayName = Jm;
24859
- function kc(e) {
24859
+ function Ac(e) {
24860
24860
  return e ? "open" : "closed";
24861
24861
  }
24862
24862
  var Ym = "DialogTitleWarning", [FM, Xm] = CA(Ym, {
24863
24863
  contentName: Cn,
24864
- titleName: vc,
24864
+ titleName: kc,
24865
24865
  docsSlug: "dialog"
24866
24866
  }), qS = ({ titleId: e }) => {
24867
24867
  const t = Xm(Ym), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
@@ -24878,7 +24878,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
24878
24878
  const a = e.current?.getAttribute("aria-describedby");
24879
24879
  t && a && (document.getElementById(t) || console.warn(n));
24880
24880
  }, [n, e, t]), null;
24881
- }, Hm = Vm, jm = Lm, _m = qm, Ac = Km, Sc = zm, Tc = Gm, Uc = Qm, DS = Pm;
24881
+ }, Hm = Vm, jm = Lm, _m = qm, Sc = Km, Tc = zm, Uc = Gm, Ic = Qm, DS = Pm;
24882
24882
  function GS(e) {
24883
24883
  if (typeof document > "u") return;
24884
24884
  let t = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
@@ -24946,22 +24946,22 @@ function ZS() {
24946
24946
  /FxiOS/.test(e));
24947
24947
  }
24948
24948
  function QS() {
24949
- return Ic(/^Mac/);
24949
+ return Nc(/^Mac/);
24950
24950
  }
24951
24951
  function JS() {
24952
- return Ic(/^iPhone/);
24952
+ return Nc(/^iPhone/);
24953
24953
  }
24954
24954
  function vu() {
24955
24955
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
24956
24956
  }
24957
24957
  function PS() {
24958
- return Ic(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
24958
+ return Nc(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
24959
24959
  QS() && navigator.maxTouchPoints > 1;
24960
24960
  }
24961
24961
  function eh() {
24962
24962
  return JS() || PS();
24963
24963
  }
24964
- function Ic(e) {
24964
+ function Nc(e) {
24965
24965
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
24966
24966
  }
24967
24967
  const YS = 24, XS = typeof window < "u" ? Cp : xe;
@@ -24971,7 +24971,7 @@ function ku(...e) {
24971
24971
  typeof r == "function" && r(...t);
24972
24972
  };
24973
24973
  }
24974
- const Oi = typeof document < "u" && window.visualViewport;
24974
+ const qi = typeof document < "u" && window.visualViewport;
24975
24975
  function Au(e) {
24976
24976
  let t = window.getComputedStyle(e);
24977
24977
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
@@ -24992,13 +24992,13 @@ const HS = /* @__PURE__ */ new Set([
24992
24992
  "submit",
24993
24993
  "reset"
24994
24994
  ]);
24995
- let Xs = 0, qi;
24995
+ let Xs = 0, Ki;
24996
24996
  function jS(e = {}) {
24997
24997
  let { isDisabled: t } = e;
24998
24998
  XS(() => {
24999
24999
  if (!t)
25000
- return Xs++, Xs === 1 && eh() && (qi = _S()), () => {
25001
- Xs--, Xs === 0 && qi?.();
25000
+ return Xs++, Xs === 1 && eh() && (Ki = _S()), () => {
25001
+ Xs--, Xs === 0 && Ki?.();
25002
25002
  };
25003
25003
  }, [
25004
25004
  t
@@ -25016,15 +25016,15 @@ function _S() {
25016
25016
  y !== 0 && ((f <= 0 && h > t || f >= y && h < t) && d.preventDefault(), t = h);
25017
25017
  }, a = (d) => {
25018
25018
  let h = d.target;
25019
- Ul(h) && h !== document.activeElement && (d.preventDefault(), h.style.transform = "translateY(-2000px)", h.focus(), requestAnimationFrame(() => {
25019
+ Il(h) && h !== document.activeElement && (d.preventDefault(), h.style.transform = "translateY(-2000px)", h.focus(), requestAnimationFrame(() => {
25020
25020
  h.style.transform = "";
25021
25021
  }));
25022
25022
  }, s = (d) => {
25023
25023
  let h = d.target;
25024
- Ul(h) && (h.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
25025
- h.style.transform = "", Oi && (Oi.height < window.innerHeight ? requestAnimationFrame(() => {
25024
+ Il(h) && (h.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
25025
+ h.style.transform = "", qi && (qi.height < window.innerHeight ? requestAnimationFrame(() => {
25026
25026
  Su(h);
25027
- }) : Oi.addEventListener("resize", () => Su(h), {
25027
+ }) : qi.addEventListener("resize", () => Su(h), {
25028
25028
  once: !0
25029
25029
  }));
25030
25030
  }));
@@ -25069,7 +25069,7 @@ function Su(e) {
25069
25069
  e = r.parentElement;
25070
25070
  }
25071
25071
  }
25072
- function Ul(e) {
25072
+ function Il(e) {
25073
25073
  return e instanceof HTMLInputElement && !HS.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
25074
25074
  }
25075
25075
  function eT(e, t) {
@@ -25123,7 +25123,7 @@ function Hs(e, t) {
25123
25123
  function nT(e) {
25124
25124
  return 8 * (Math.log(e + 1) - 2);
25125
25125
  }
25126
- function Ki(e, t) {
25126
+ function zi(e, t) {
25127
25127
  if (!e) return () => {
25128
25128
  };
25129
25129
  const r = e.style.cssText;
@@ -25145,7 +25145,7 @@ const et = {
25145
25145
  0,
25146
25146
  1
25147
25147
  ]
25148
- }, ah = 0.4, sT = 0.25, oT = 100, sh = 8, cn = 16, Il = 26, zi = "vaul-dragging";
25148
+ }, ah = 0.4, sT = 0.25, oT = 100, sh = 8, cn = 16, Nl = 26, Di = "vaul-dragging";
25149
25149
  function oh(e) {
25150
25150
  const t = q.useRef(e);
25151
25151
  return q.useEffect(() => {
@@ -25334,22 +25334,22 @@ const cT = () => () => {
25334
25334
  function dT() {
25335
25335
  const { direction: e, isOpen: t, shouldScaleBackground: r, setBackgroundColorOnScale: n, noBodyStyles: a } = ls(), s = q.useRef(null), o = Fe(() => document.body.style.backgroundColor, []);
25336
25336
  function i() {
25337
- return (window.innerWidth - Il) / window.innerWidth;
25337
+ return (window.innerWidth - Nl) / window.innerWidth;
25338
25338
  }
25339
25339
  q.useEffect(() => {
25340
25340
  if (t && r) {
25341
25341
  s.current && clearTimeout(s.current);
25342
25342
  const l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
25343
25343
  if (!l) return;
25344
- aT(n && !a ? Ki(document.body, {
25344
+ aT(n && !a ? zi(document.body, {
25345
25345
  background: "black"
25346
- }) : cT, Ki(l, {
25346
+ }) : cT, zi(l, {
25347
25347
  transformOrigin: it(e) ? "top" : "left",
25348
25348
  transitionProperty: "transform, border-radius",
25349
25349
  transitionDuration: `${et.DURATION}s`,
25350
25350
  transitionTimingFunction: `cubic-bezier(${et.EASE.join(",")})`
25351
25351
  }));
25352
- const u = Ki(l, {
25352
+ const u = zi(l, {
25353
25353
  borderRadius: `${sh}px`,
25354
25354
  overflow: "hidden",
25355
25355
  ...it(e) ? {
@@ -25477,7 +25477,7 @@ function pT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25477
25477
  noBodyStyles: A
25478
25478
  });
25479
25479
  function g() {
25480
- return (window.innerWidth - Il) / window.innerWidth;
25480
+ return (window.innerWidth - Nl) / window.innerWidth;
25481
25481
  }
25482
25482
  function w(ue) {
25483
25483
  var Be, We;
@@ -25520,7 +25520,7 @@ function pT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25520
25520
  let Pe = pe / Je;
25521
25521
  const Qt = ae(pe, Se);
25522
25522
  if (Qt !== null && (Pe = Qt), je && Pe >= 1 || !se.current && !I(ue.target, Se)) return;
25523
- if (de.current.classList.add(zi), se.current = !0, ct(de.current, {
25523
+ if (de.current.classList.add(Di), se.current = !0, ct(de.current, {
25524
25524
  transition: "none"
25525
25525
  }), ct(ee.current, {
25526
25526
  transition: "none"
@@ -25538,10 +25538,10 @@ function pT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25538
25538
  opacity: `${ze}`,
25539
25539
  transition: "none"
25540
25540
  }, !0)), Te && ee.current && o) {
25541
- const $e = Math.min(g() + Pe * (1 - g()), 1), kr = 8 - Pe * 8, At = Math.max(0, 14 - Pe * 14);
25541
+ const $e = Math.min(g() + Pe * (1 - g()), 1), kr = 8 - Pe * 8, St = Math.max(0, 14 - Pe * 14);
25542
25542
  ct(Te, {
25543
25543
  borderRadius: `${kr}px`,
25544
- transform: it(v) ? `scale(${$e}) translate3d(0, ${At}px, 0)` : `scale(${$e}) translate3d(${At}px, 0, 0)`,
25544
+ transform: it(v) ? `scale(${$e}) translate3d(0, ${St}px, 0)` : `scale(${$e}) translate3d(${St}px, 0, 0)`,
25545
25545
  transition: "none"
25546
25546
  }, !0);
25547
25547
  }
@@ -25562,7 +25562,7 @@ function pT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25562
25562
  function Be() {
25563
25563
  if (!de.current || !V) return;
25564
25564
  const We = document.activeElement;
25565
- if (Ul(We) || Ne.current) {
25565
+ if (Il(We) || Ne.current) {
25566
25566
  var Se;
25567
25567
  const je = ((Se = window.visualViewport) == null ? void 0 : Se.height) || 0, pe = window.innerHeight;
25568
25568
  let Te = pe - je;
@@ -25576,7 +25576,7 @@ function pT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25576
25576
  if (Ae.current = Te, Je > je || Ne.current) {
25577
25577
  const ze = de.current.getBoundingClientRect().height;
25578
25578
  let $e = ze;
25579
- ze > je && ($e = je - (Pe ? Qt : Il)), C ? de.current.style.height = `${ze - Math.max(Te, 0)}px` : de.current.style.height = `${Math.max($e, je - Qt)}px`;
25579
+ ze > je && ($e = je - (Pe ? Qt : Nl)), C ? de.current.style.height = `${ze - Math.max(Te, 0)}px` : de.current.style.height = `${Math.max($e, je - Qt)}px`;
25580
25580
  } else ZS() || (de.current.style.height = `${pt.current}px`);
25581
25581
  s && s.length > 0 && !Ne.current ? de.current.style.bottom = "0px" : de.current.style.bottom = `${Math.max(Te, 0)}px`;
25582
25582
  }
@@ -25620,11 +25620,11 @@ function pT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25620
25620
  }, !0);
25621
25621
  }
25622
25622
  function be() {
25623
- !P || !de.current || (de.current.classList.remove(zi), se.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date());
25623
+ !P || !de.current || (de.current.classList.remove(Di), se.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date());
25624
25624
  }
25625
25625
  function qe(ue) {
25626
25626
  if (!P || !de.current) return;
25627
- de.current.classList.remove(zi), se.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date();
25627
+ de.current.classList.remove(Di), se.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date();
25628
25628
  const Be = Hs(de.current, v);
25629
25629
  if (!ue || !I(ue.target, !1) || !Be || Number.isNaN(Be) || J.current === null) return;
25630
25630
  const We = ie.current.getTime() - J.current.getTime(), Se = Ce.current - (it(v) ? ue.pageY : ue.pageX), je = Math.abs(Se) / We;
@@ -25745,7 +25745,7 @@ const lh = /* @__PURE__ */ q.forwardRef(function({ ...e }, t) {
25745
25745
  const d = q.useCallback((h) => a(h), [
25746
25746
  a
25747
25747
  ]);
25748
- return /* @__PURE__ */ q.createElement(Ac, {
25748
+ return /* @__PURE__ */ q.createElement(Sc, {
25749
25749
  onMouseUp: d,
25750
25750
  ref: u,
25751
25751
  "data-vaul-overlay": "",
@@ -25780,7 +25780,7 @@ const ch = /* @__PURE__ */ q.forwardRef(function({ onPointerDownOutside: e, styl
25780
25780
  function Z(T) {
25781
25781
  U.current = null, V.current = !1, i(T);
25782
25782
  }
25783
- return /* @__PURE__ */ q.createElement(Sc, {
25783
+ return /* @__PURE__ */ q.createElement(Tc, {
25784
25784
  "data-vaul-drawer-direction": y,
25785
25785
  "data-vaul-drawer": "",
25786
25786
  "data-vaul-delayed-snap-points": v ? "true" : "false",
@@ -25907,8 +25907,8 @@ const sn = {
25907
25907
  Trigger: jm,
25908
25908
  Portal: fT,
25909
25909
  Handle: dh,
25910
- Title: Tc,
25911
- Description: Uc
25910
+ Title: Uc,
25911
+ Description: Ic
25912
25912
  }, gT = ({
25913
25913
  shouldScaleBackground: e = !1,
25914
25914
  repositionInputs: t = !1,
@@ -25976,7 +25976,7 @@ const sn = {
25976
25976
  start: "end",
25977
25977
  end: "start"
25978
25978
  };
25979
- function Nl(e, t, r) {
25979
+ function Bl(e, t, r) {
25980
25980
  return Lt(e, tn(t, r));
25981
25981
  }
25982
25982
  function Or(e, t) {
@@ -25988,30 +25988,30 @@ function qr(e) {
25988
25988
  function ua(e) {
25989
25989
  return e.split("-")[1];
25990
25990
  }
25991
- function Nc(e) {
25991
+ function Bc(e) {
25992
25992
  return e === "x" ? "y" : "x";
25993
25993
  }
25994
- function Bc(e) {
25994
+ function Rc(e) {
25995
25995
  return e === "y" ? "height" : "width";
25996
25996
  }
25997
25997
  const TT = /* @__PURE__ */ new Set(["top", "bottom"]);
25998
25998
  function hr(e) {
25999
25999
  return TT.has(qr(e)) ? "y" : "x";
26000
26000
  }
26001
- function Rc(e) {
26002
- return Nc(hr(e));
26001
+ function Fc(e) {
26002
+ return Bc(hr(e));
26003
26003
  }
26004
26004
  function UT(e, t, r) {
26005
26005
  r === void 0 && (r = !1);
26006
- const n = ua(e), a = Rc(e), s = Bc(a);
26006
+ const n = ua(e), a = Fc(e), s = Rc(a);
26007
26007
  let o = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
26008
26008
  return t.reference[s] > t.floating[s] && (o = go(o)), [o, go(o)];
26009
26009
  }
26010
26010
  function IT(e) {
26011
26011
  const t = go(e);
26012
- return [Bl(e), t, Bl(t)];
26012
+ return [Rl(e), t, Rl(t)];
26013
26013
  }
26014
- function Bl(e) {
26014
+ function Rl(e) {
26015
26015
  return e.replace(/start|end/g, (t) => ST[t]);
26016
26016
  }
26017
26017
  const Tu = ["left", "right"], Uu = ["right", "left"], NT = ["top", "bottom"], BT = ["bottom", "top"];
@@ -26030,7 +26030,7 @@ function RT(e, t, r) {
26030
26030
  function FT(e, t, r, n) {
26031
26031
  const a = ua(e);
26032
26032
  let s = RT(qr(e), r === "start", n);
26033
- return a && (s = s.map((o) => o + "-" + a), t && (s = s.concat(s.map(Bl)))), s;
26033
+ return a && (s = s.map((o) => o + "-" + a), t && (s = s.concat(s.map(Rl)))), s;
26034
26034
  }
26035
26035
  function go(e) {
26036
26036
  return e.replace(/left|right|bottom|top/g, (t) => AT[t]);
@@ -26075,7 +26075,7 @@ function Iu(e, t, r) {
26075
26075
  reference: n,
26076
26076
  floating: a
26077
26077
  } = e;
26078
- const s = hr(t), o = Rc(t), i = Bc(o), l = qr(t), u = s === "y", p = n.x + n.width / 2 - a.width / 2, d = n.y + n.height / 2 - a.height / 2, h = n[i] / 2 - a[i] / 2;
26078
+ const s = hr(t), o = Fc(t), i = Rc(o), l = qr(t), u = s === "y", p = n.x + n.width / 2 - a.width / 2, d = n.y + n.height / 2 - a.height / 2, h = n[i] / 2 - a[i] / 2;
26079
26079
  let f;
26080
26080
  switch (l) {
26081
26081
  case "top":
@@ -26245,10 +26245,10 @@ const WT = (e) => ({
26245
26245
  const d = uh(p), h = {
26246
26246
  x: r,
26247
26247
  y: n
26248
- }, f = Rc(a), y = Bc(f), C = await o.getDimensions(u), b = f === "y", E = b ? "top" : "left", k = b ? "bottom" : "right", A = b ? "clientHeight" : "clientWidth", v = s.reference[y] + s.reference[f] - h[f] - s.floating[y], N = h[f] - s.reference[f], R = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
26248
+ }, f = Fc(a), y = Rc(f), C = await o.getDimensions(u), b = f === "y", E = b ? "top" : "left", k = b ? "bottom" : "right", A = b ? "clientHeight" : "clientWidth", v = s.reference[y] + s.reference[f] - h[f] - s.floating[y], N = h[f] - s.reference[f], R = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
26249
26249
  let U = R ? R[A] : 0;
26250
26250
  (!U || !await (o.isElement == null ? void 0 : o.isElement(R))) && (U = i.floating[A] || s.floating[y]);
26251
- const W = v / 2 - N / 2, V = U / 2 - C[y] / 2 - 1, X = tn(d[E], V), Q = tn(d[k], V), Z = X, T = U - C[y] - Q, M = U / 2 - C[y] / 2 + W, F = Nl(Z, M, T), O = !l.arrow && ua(a) != null && M !== F && s.reference[y] / 2 - (M < Z ? X : Q) - C[y] / 2 < 0, K = O ? M < Z ? M - Z : M - T : 0;
26251
+ const W = v / 2 - N / 2, V = U / 2 - C[y] / 2 - 1, X = tn(d[E], V), Q = tn(d[k], V), Z = X, T = U - C[y] - Q, M = U / 2 - C[y] / 2 + W, F = Bl(Z, M, T), O = !l.arrow && ua(a) != null && M !== F && s.reference[y] / 2 - (M < Z ? X : Q) - C[y] / 2 < 0, K = O ? M < Z ? M - Z : M - T : 0;
26252
26252
  return {
26253
26253
  [f]: h[f] + K,
26254
26254
  data: {
@@ -26473,15 +26473,15 @@ const KT = function(e) {
26473
26473
  } = Or(e, t), u = {
26474
26474
  x: r,
26475
26475
  y: n
26476
- }, p = await Xa(t, l), d = hr(qr(a)), h = Nc(d);
26476
+ }, p = await Xa(t, l), d = hr(qr(a)), h = Bc(d);
26477
26477
  let f = u[h], y = u[d];
26478
26478
  if (s) {
26479
26479
  const b = h === "y" ? "top" : "left", E = h === "y" ? "bottom" : "right", k = f + p[b], A = f - p[E];
26480
- f = Nl(k, f, A);
26480
+ f = Bl(k, f, A);
26481
26481
  }
26482
26482
  if (o) {
26483
26483
  const b = d === "y" ? "top" : "left", E = d === "y" ? "bottom" : "right", k = y + p[b], A = y - p[E];
26484
- y = Nl(k, y, A);
26484
+ y = Bl(k, y, A);
26485
26485
  }
26486
26486
  const C = i.fn({
26487
26487
  ...t,
@@ -26518,7 +26518,7 @@ const KT = function(e) {
26518
26518
  } = Or(e, t), p = {
26519
26519
  x: r,
26520
26520
  y: n
26521
- }, d = hr(a), h = Nc(d);
26521
+ }, d = hr(a), h = Bc(d);
26522
26522
  let f = p[h], y = p[d];
26523
26523
  const C = Or(i, t), b = typeof C == "number" ? {
26524
26524
  mainAxis: C,
@@ -26635,14 +26635,14 @@ function jo(e) {
26635
26635
  });
26636
26636
  }
26637
26637
  const YT = ["transform", "translate", "scale", "rotate", "perspective"], XT = ["transform", "translate", "scale", "rotate", "perspective", "filter"], HT = ["paint", "layout", "strict", "content"];
26638
- function Fc(e) {
26639
- const t = Mc(), r = ar(e) ? sr(e) : e;
26638
+ function Mc(e) {
26639
+ const t = Vc(), r = ar(e) ? sr(e) : e;
26640
26640
  return YT.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || XT.some((n) => (r.willChange || "").includes(n)) || HT.some((n) => (r.contain || "").includes(n));
26641
26641
  }
26642
26642
  function jT(e) {
26643
26643
  let t = rn(e);
26644
26644
  for (; xr(t) && !$n(t); ) {
26645
- if (Fc(t))
26645
+ if (Mc(t))
26646
26646
  return t;
26647
26647
  if (jo(t))
26648
26648
  return null;
@@ -26650,7 +26650,7 @@ function jT(e) {
26650
26650
  }
26651
26651
  return null;
26652
26652
  }
26653
- function Mc() {
26653
+ function Vc() {
26654
26654
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
26655
26655
  }
26656
26656
  const _T = /* @__PURE__ */ new Set(["html", "body", "#document"]);
@@ -26690,12 +26690,12 @@ function Ha(e, t, r) {
26690
26690
  t === void 0 && (t = []), r === void 0 && (r = !0);
26691
26691
  const a = hh(e), s = a === ((n = e.ownerDocument) == null ? void 0 : n.body), o = zt(a);
26692
26692
  if (s) {
26693
- const i = Rl(o);
26693
+ const i = Fl(o);
26694
26694
  return t.concat(o, o.visualViewport || [], cs(a) ? a : [], i && r ? Ha(i) : []);
26695
26695
  }
26696
26696
  return t.concat(a, Ha(a, [], r));
26697
26697
  }
26698
- function Rl(e) {
26698
+ function Fl(e) {
26699
26699
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
26700
26700
  }
26701
26701
  function fh(e) {
@@ -26708,11 +26708,11 @@ function fh(e) {
26708
26708
  $: i
26709
26709
  };
26710
26710
  }
26711
- function Vc(e) {
26711
+ function Wc(e) {
26712
26712
  return ar(e) ? e : e.contextElement;
26713
26713
  }
26714
26714
  function Gn(e) {
26715
- const t = Vc(e);
26715
+ const t = Wc(e);
26716
26716
  if (!xr(t))
26717
26717
  return wr(1);
26718
26718
  const r = t.getBoundingClientRect(), {
@@ -26729,7 +26729,7 @@ function Gn(e) {
26729
26729
  const $T = /* @__PURE__ */ wr(0);
26730
26730
  function gh(e) {
26731
26731
  const t = zt(e);
26732
- return !Mc() || !t.visualViewport ? $T : {
26732
+ return !Vc() || !t.visualViewport ? $T : {
26733
26733
  x: t.visualViewport.offsetLeft,
26734
26734
  y: t.visualViewport.offsetTop
26735
26735
  };
@@ -26739,17 +26739,17 @@ function eU(e, t, r) {
26739
26739
  }
26740
26740
  function xn(e, t, r, n) {
26741
26741
  t === void 0 && (t = !1), r === void 0 && (r = !1);
26742
- const a = e.getBoundingClientRect(), s = Vc(e);
26742
+ const a = e.getBoundingClientRect(), s = Wc(e);
26743
26743
  let o = wr(1);
26744
26744
  t && (n ? ar(n) && (o = Gn(n)) : o = Gn(e));
26745
26745
  const i = eU(s, r, n) ? gh(s) : wr(0);
26746
26746
  let l = (a.left + i.x) / o.x, u = (a.top + i.y) / o.y, p = a.width / o.x, d = a.height / o.y;
26747
26747
  if (s) {
26748
26748
  const h = zt(s), f = n && ar(n) ? zt(n) : n;
26749
- let y = h, C = Rl(y);
26749
+ let y = h, C = Fl(y);
26750
26750
  for (; C && n && f !== y; ) {
26751
26751
  const b = Gn(C), E = C.getBoundingClientRect(), k = sr(C), A = E.left + (C.clientLeft + parseFloat(k.paddingLeft)) * b.x, v = E.top + (C.clientTop + parseFloat(k.paddingTop)) * b.y;
26752
- l *= b.x, u *= b.y, p *= b.x, d *= b.y, l += A, u += v, y = zt(C), C = Rl(y);
26752
+ l *= b.x, u *= b.y, p *= b.x, d *= b.y, l += A, u += v, y = zt(C), C = Fl(y);
26753
26753
  }
26754
26754
  }
26755
26755
  return wo({
@@ -26817,7 +26817,7 @@ function aU(e, t) {
26817
26817
  let s = n.clientWidth, o = n.clientHeight, i = 0, l = 0;
26818
26818
  if (a) {
26819
26819
  s = a.width, o = a.height;
26820
- const p = Mc();
26820
+ const p = Vc();
26821
26821
  (!p || p && t === "fixed") && (i = a.offsetLeft, l = a.offsetTop);
26822
26822
  }
26823
26823
  const u = $o(n);
@@ -26873,7 +26873,7 @@ function iU(e, t) {
26873
26873
  const s = sr(e).position === "fixed";
26874
26874
  let o = s ? rn(e) : e;
26875
26875
  for (; ar(o) && !$n(o); ) {
26876
- const i = sr(o), l = Fc(o);
26876
+ const i = sr(o), l = Mc(o);
26877
26877
  !l && i.position === "fixed" && (a = null), (s ? !l && !a : !l && i.position === "static" && !!a && sU.has(a.position) || cs(o) && !l && bh(e, o)) ? n = n.filter((p) => p !== o) : a = i, o = rn(o);
26878
26878
  }
26879
26879
  return t.set(e, n), n;
@@ -26930,7 +26930,7 @@ function dU(e, t, r) {
26930
26930
  height: o.height
26931
26931
  };
26932
26932
  }
26933
- function Di(e) {
26933
+ function Gi(e) {
26934
26934
  return sr(e).position === "static";
26935
26935
  }
26936
26936
  function Vu(e, t) {
@@ -26948,16 +26948,16 @@ function yh(e, t) {
26948
26948
  if (!xr(e)) {
26949
26949
  let a = rn(e);
26950
26950
  for (; a && !$n(a); ) {
26951
- if (ar(a) && !Di(a))
26951
+ if (ar(a) && !Gi(a))
26952
26952
  return a;
26953
26953
  a = rn(a);
26954
26954
  }
26955
26955
  return r;
26956
26956
  }
26957
26957
  let n = Vu(e, t);
26958
- for (; n && JT(n) && Di(n); )
26958
+ for (; n && JT(n) && Gi(n); )
26959
26959
  n = Vu(n, t);
26960
- return n && $n(n) && Di(n) && !Fc(n) ? r : n || jT(e) || r;
26960
+ return n && $n(n) && Gi(n) && !Mc(n) ? r : n || jT(e) || r;
26961
26961
  }
26962
26962
  const uU = async function(e) {
26963
26963
  const t = this.getOffsetParent || yh, r = this.getDimensions, n = await r(e.floating);
@@ -27043,7 +27043,7 @@ function fU(e, t, r, n) {
27043
27043
  elementResize: o = typeof ResizeObserver == "function",
27044
27044
  layoutShift: i = typeof IntersectionObserver == "function",
27045
27045
  animationFrame: l = !1
27046
- } = n, u = Vc(e), p = a || s ? [...u ? Ha(u) : [], ...Ha(t)] : [];
27046
+ } = n, u = Wc(e), p = a || s ? [...u ? Ha(u) : [], ...Ha(t)] : [];
27047
27047
  p.forEach((E) => {
27048
27048
  a && E.addEventListener("scroll", r, {
27049
27049
  passive: !0
@@ -27123,7 +27123,7 @@ function Lu(e, t) {
27123
27123
  const r = xh(e);
27124
27124
  return Math.round(t * r) / r;
27125
27125
  }
27126
- function Gi(e) {
27126
+ function Zi(e) {
27127
27127
  const t = B.useRef(e);
27128
27128
  return lo(() => {
27129
27129
  t.current = e;
@@ -27156,7 +27156,7 @@ function AU(e) {
27156
27156
  G !== R.current && (R.current = G, C(G));
27157
27157
  }, []), A = B.useCallback((G) => {
27158
27158
  G !== U.current && (U.current = G, E(G));
27159
- }, []), v = s || y, N = o || b, R = B.useRef(null), U = B.useRef(null), W = B.useRef(p), V = l != null, X = Gi(l), Q = Gi(a), Z = Gi(u), T = B.useCallback(() => {
27159
+ }, []), v = s || y, N = o || b, R = B.useRef(null), U = B.useRef(null), W = B.useRef(p), V = l != null, X = Zi(l), Q = Zi(a), Z = Zi(u), T = B.useCallback(() => {
27160
27160
  if (!R.current || !U.current)
27161
27161
  return;
27162
27162
  const G = {
@@ -27313,11 +27313,11 @@ function WU(e) {
27313
27313
  r(void 0);
27314
27314
  }, [e]), t;
27315
27315
  }
27316
- var Wc = "Popper", [vh, ei] = Sn(Wc), [LU, kh] = vh(Wc), Ah = (e) => {
27316
+ var Lc = "Popper", [vh, ei] = Sn(Lc), [LU, kh] = vh(Lc), Ah = (e) => {
27317
27317
  const { __scopePopper: t, children: r } = e, [n, a] = B.useState(null);
27318
27318
  return /* @__PURE__ */ c(LU, { scope: t, anchor: n, onAnchorChange: a, children: r });
27319
27319
  };
27320
- Ah.displayName = Wc;
27320
+ Ah.displayName = Lc;
27321
27321
  var Sh = "PopperAnchor", Th = B.forwardRef(
27322
27322
  (e, t) => {
27323
27323
  const { __scopePopper: r, virtualRef: n, ...a } = e, s = kh(Sh, r), o = B.useRef(null), i = ft(t, o), l = B.useRef(null);
@@ -27328,7 +27328,7 @@ var Sh = "PopperAnchor", Th = B.forwardRef(
27328
27328
  }
27329
27329
  );
27330
27330
  Th.displayName = Sh;
27331
- var Lc = "PopperContent", [OU, qU] = vh(Lc), Uh = B.forwardRef(
27331
+ var Oc = "PopperContent", [OU, qU] = vh(Oc), Uh = B.forwardRef(
27332
27332
  (e, t) => {
27333
27333
  const {
27334
27334
  __scopePopper: r,
@@ -27345,7 +27345,7 @@ var Lc = "PopperContent", [OU, qU] = vh(Lc), Uh = B.forwardRef(
27345
27345
  updatePositionStrategy: f = "optimized",
27346
27346
  onPlaced: y,
27347
27347
  ...C
27348
- } = e, b = kh(Lc, r), [E, k] = B.useState(null), A = ft(t, (ce) => k(ce)), [v, N] = B.useState(null), R = WU(v), U = R?.width ?? 0, W = R?.height ?? 0, V = n + (s !== "center" ? "-" + s : ""), X = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, Q = Array.isArray(u) ? u : [u], Z = Q.length > 0, T = {
27348
+ } = e, b = kh(Oc, r), [E, k] = B.useState(null), A = ft(t, (ce) => k(ce)), [v, N] = B.useState(null), R = WU(v), U = R?.width ?? 0, W = R?.height ?? 0, V = n + (s !== "center" ? "-" + s : ""), X = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, Q = Array.isArray(u) ? u : [u], Z = Q.length > 0, T = {
27349
27349
  padding: X,
27350
27350
  boundary: Q.filter(zU),
27351
27351
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -27441,7 +27441,7 @@ var Lc = "PopperContent", [OU, qU] = vh(Lc), Uh = B.forwardRef(
27441
27441
  );
27442
27442
  }
27443
27443
  );
27444
- Uh.displayName = Lc;
27444
+ Uh.displayName = Oc;
27445
27445
  var Ih = "PopperArrow", KU = {
27446
27446
  top: "bottom",
27447
27447
  right: "left",
@@ -27509,7 +27509,7 @@ function Bh(e) {
27509
27509
  const [t, r = "center"] = e.split("-");
27510
27510
  return [t, r];
27511
27511
  }
27512
- var Rh = Ah, Oc = Th, Fh = Uh, Mh = Nh, ti = "Popover", [Vh] = Sn(ti, [
27512
+ var Rh = Ah, qc = Th, Fh = Uh, Mh = Nh, ti = "Popover", [Vh] = Sn(ti, [
27513
27513
  ei
27514
27514
  ]), ds = ei(), [GU, on] = Vh(ti), Wh = (e) => {
27515
27515
  const {
@@ -27546,7 +27546,7 @@ Wh.displayName = ti;
27546
27546
  var Lh = "PopoverAnchor", ZU = B.forwardRef(
27547
27547
  (e, t) => {
27548
27548
  const { __scopePopover: r, ...n } = e, a = on(Lh, r), s = ds(r), { onCustomAnchorAdd: o, onCustomAnchorRemove: i } = a;
27549
- return B.useEffect(() => (o(), () => i()), [o, i]), /* @__PURE__ */ c(Oc, { ...s, ...n, ref: t });
27549
+ return B.useEffect(() => (o(), () => i()), [o, i]), /* @__PURE__ */ c(qc, { ...s, ...n, ref: t });
27550
27550
  }
27551
27551
  );
27552
27552
  ZU.displayName = Lh;
@@ -27565,17 +27565,17 @@ var Oh = "PopoverTrigger", qh = B.forwardRef(
27565
27565
  onClick: st(e.onClick, a.onOpenToggle)
27566
27566
  }
27567
27567
  );
27568
- return a.hasCustomAnchor ? i : /* @__PURE__ */ c(Oc, { asChild: !0, ...s, children: i });
27568
+ return a.hasCustomAnchor ? i : /* @__PURE__ */ c(qc, { asChild: !0, ...s, children: i });
27569
27569
  }
27570
27570
  );
27571
27571
  qh.displayName = Oh;
27572
- var qc = "PopoverPortal", [QU, JU] = Vh(qc, {
27572
+ var Kc = "PopoverPortal", [QU, JU] = Vh(Kc, {
27573
27573
  forceMount: void 0
27574
27574
  }), Kh = (e) => {
27575
- const { __scopePopover: t, forceMount: r, children: n, container: a } = e, s = on(qc, t);
27576
- return /* @__PURE__ */ c(QU, { scope: t, forceMount: r, children: /* @__PURE__ */ c(an, { present: r || s.open, children: /* @__PURE__ */ c(Cc, { asChild: !0, container: a, children: n }) }) });
27575
+ const { __scopePopover: t, forceMount: r, children: n, container: a } = e, s = on(Kc, t);
27576
+ return /* @__PURE__ */ c(QU, { scope: t, forceMount: r, children: /* @__PURE__ */ c(an, { present: r || s.open, children: /* @__PURE__ */ c(xc, { asChild: !0, container: a, children: n }) }) });
27577
27577
  };
27578
- Kh.displayName = qc;
27578
+ Kh.displayName = Kc;
27579
27579
  var ea = "PopoverContent", zh = B.forwardRef(
27580
27580
  (e, t) => {
27581
27581
  const r = JU(ea, e.__scopePopover), { forceMount: n = r.forceMount, ...a } = e, s = on(ea, e.__scopePopover);
@@ -27589,7 +27589,7 @@ var PU = /* @__PURE__ */ jn("PopoverContent.RemoveScroll"), YU = B.forwardRef(
27589
27589
  return B.useEffect(() => {
27590
27590
  const o = n.current;
27591
27591
  if (o) return Fm(o);
27592
- }, []), /* @__PURE__ */ c(xc, { as: PU, allowPinchZoom: !0, children: /* @__PURE__ */ c(
27592
+ }, []), /* @__PURE__ */ c(Ec, { as: PU, allowPinchZoom: !0, children: /* @__PURE__ */ c(
27593
27593
  Dh,
27594
27594
  {
27595
27595
  ...e,
@@ -27651,7 +27651,7 @@ var PU = /* @__PURE__ */ jn("PopoverContent.RemoveScroll"), YU = B.forwardRef(
27651
27651
  ...d
27652
27652
  } = e, h = on(ea, r), f = ds(r);
27653
27653
  return km(), /* @__PURE__ */ c(
27654
- yc,
27654
+ Cc,
27655
27655
  {
27656
27656
  asChild: !0,
27657
27657
  loop: !0,
@@ -27829,7 +27829,7 @@ const iI = (e) => {
27829
27829
  return document.addEventListener("visibilitychange", r), () => window.removeEventListener("visibilitychange", r);
27830
27830
  }, []), e;
27831
27831
  };
27832
- let Fl = 1;
27832
+ let Ml = 1;
27833
27833
  class gI {
27834
27834
  constructor() {
27835
27835
  this.subscribe = (t) => (this.subscribers.push(t), () => {
@@ -27844,7 +27844,7 @@ class gI {
27844
27844
  ];
27845
27845
  }, this.create = (t) => {
27846
27846
  var r;
27847
- const { message: n, ...a } = t, s = typeof t?.id == "number" || ((r = t.id) == null ? void 0 : r.length) > 0 ? t.id : Fl++, o = this.toasts.find((l) => l.id === s), i = t.dismissible === void 0 ? !0 : t.dismissible;
27847
+ const { message: n, ...a } = t, s = typeof t?.id == "number" || ((r = t.id) == null ? void 0 : r.length) > 0 ? t.id : Ml++, o = this.toasts.find((l) => l.id === s), i = t.dismissible === void 0 ? !0 : t.dismissible;
27848
27848
  return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), o ? this.toasts = this.toasts.map((l) => l.id === s ? (this.publish({
27849
27849
  ...l,
27850
27850
  ...t,
@@ -27975,7 +27975,7 @@ class gI {
27975
27975
  unwrap: l
27976
27976
  });
27977
27977
  }, this.custom = (t, r) => {
27978
- const n = r?.id || Fl++;
27978
+ const n = r?.id || Ml++;
27979
27979
  return this.create({
27980
27980
  jsx: t(n),
27981
27981
  id: n,
@@ -27984,23 +27984,23 @@ class gI {
27984
27984
  }, this.getActiveToasts = () => this.toasts.filter((t) => !this.dismissedToasts.has(t.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
27985
27985
  }
27986
27986
  }
27987
- const Ut = new gI(), wI = (e, t) => {
27988
- const r = t?.id || Fl++;
27989
- return Ut.addToast({
27987
+ const It = new gI(), wI = (e, t) => {
27988
+ const r = t?.id || Ml++;
27989
+ return It.addToast({
27990
27990
  title: e,
27991
27991
  ...t,
27992
27992
  id: r
27993
27993
  }), r;
27994
- }, bI = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", yI = wI, CI = () => Ut.toasts, xI = () => Ut.getActiveToasts(), tr = Object.assign(yI, {
27995
- success: Ut.success,
27996
- info: Ut.info,
27997
- warning: Ut.warning,
27998
- error: Ut.error,
27999
- custom: Ut.custom,
28000
- message: Ut.message,
28001
- promise: Ut.promise,
28002
- dismiss: Ut.dismiss,
28003
- loading: Ut.loading
27994
+ }, bI = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", yI = wI, CI = () => It.toasts, xI = () => It.getActiveToasts(), tr = Object.assign(yI, {
27995
+ success: It.success,
27996
+ info: It.info,
27997
+ warning: It.warning,
27998
+ error: It.error,
27999
+ custom: It.custom,
28000
+ message: It.message,
28001
+ promise: It.promise,
28002
+ dismiss: It.dismiss,
28003
+ loading: It.loading
28004
28004
  }, {
28005
28005
  getHistory: CI,
28006
28006
  getToasts: xI
@@ -28190,8 +28190,8 @@ const NI = (e) => {
28190
28190
  de(I.current), d.onDismiss == null || d.onDismiss.call(d, d), te(P === "x" ? Pe > 0 ? "right" : "left" : Qt > 0 ? "down" : "up"), ue(), Ce(!0);
28191
28191
  return;
28192
28192
  } else {
28193
- var At, Xt;
28194
- (At = ht.current) == null || At.style.setProperty("--swipe-amount-x", "0px"), (Xt = ht.current) == null || Xt.style.setProperty("--swipe-amount-y", "0px");
28193
+ var St, Xt;
28194
+ (St = ht.current) == null || St.style.setProperty("--swipe-amount-x", "0px"), (Xt = ht.current) == null || Xt.style.setProperty("--swipe-amount-y", "0px");
28195
28195
  }
28196
28196
  Ve(!1), se(!1), _(null);
28197
28197
  },
@@ -28200,26 +28200,26 @@ const NI = (e) => {
28200
28200
  if (!z.current || !fe || ((Te = window.getSelection()) == null ? void 0 : Te.toString().length) > 0) return;
28201
28201
  const ze = pe.clientY - z.current.y, $e = pe.clientX - z.current.x;
28202
28202
  var kr;
28203
- const At = (kr = e.swipeDirections) != null ? kr : II(T);
28203
+ const St = (kr = e.swipeDirections) != null ? kr : II(T);
28204
28204
  !P && (Math.abs($e) > 1 || Math.abs(ze) > 1) && _(Math.abs($e) > Math.abs(ze) ? "x" : "y");
28205
28205
  let Xt = {
28206
28206
  x: 0,
28207
28207
  y: 0
28208
28208
  };
28209
- const ud = (ln) => 1 / (1.5 + Math.abs(ln) / 20);
28209
+ const pd = (ln) => 1 / (1.5 + Math.abs(ln) / 20);
28210
28210
  if (P === "y") {
28211
- if (At.includes("top") || At.includes("bottom"))
28212
- if (At.includes("top") && ze < 0 || At.includes("bottom") && ze > 0)
28211
+ if (St.includes("top") || St.includes("bottom"))
28212
+ if (St.includes("top") && ze < 0 || St.includes("bottom") && ze > 0)
28213
28213
  Xt.y = ze;
28214
28214
  else {
28215
- const ln = ze * ud(ze);
28215
+ const ln = ze * pd(ze);
28216
28216
  Xt.y = Math.abs(ln) < Math.abs(ze) ? ln : ze;
28217
28217
  }
28218
- } else if (P === "x" && (At.includes("left") || At.includes("right")))
28219
- if (At.includes("left") && $e < 0 || At.includes("right") && $e > 0)
28218
+ } else if (P === "x" && (St.includes("left") || St.includes("right")))
28219
+ if (St.includes("left") && $e < 0 || St.includes("right") && $e > 0)
28220
28220
  Xt.x = $e;
28221
28221
  else {
28222
- const ln = $e * ud($e);
28222
+ const ln = $e * pd($e);
28223
28223
  Xt.x = Math.abs(ln) < Math.abs($e) ? ln : $e;
28224
28224
  }
28225
28225
  (Math.abs(Xt.x) > 0 || Math.abs(Xt.y) > 0) && Ve(!0), (Je = ht.current) == null || Je.style.setProperty("--swipe-amount-x", `${Xt.x}px`), (Pe = ht.current) == null || Pe.style.setProperty("--swipe-amount-y", `${Xt.y}px`);
@@ -28310,10 +28310,10 @@ const RI = /* @__PURE__ */ q.forwardRef(function(t, r) {
28310
28310
  ]), [X, Q] = q.useState([]), [Z, T] = q.useState(!1), [M, F] = q.useState(!1), [O, K] = q.useState(h !== "system" ? h : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), G = q.useRef(null), P = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), _ = q.useRef(null), H = q.useRef(!1), te = q.useCallback((ee) => {
28311
28311
  U((j) => {
28312
28312
  var J;
28313
- return (J = j.find((ie) => ie.id === ee.id)) != null && J.delete || Ut.dismiss(ee.id), j.filter(({ id: ie }) => ie !== ee.id);
28313
+ return (J = j.find((ie) => ie.id === ee.id)) != null && J.delete || It.dismiss(ee.id), j.filter(({ id: ie }) => ie !== ee.id);
28314
28314
  });
28315
28315
  }, []);
28316
- return q.useEffect(() => Ut.subscribe((ee) => {
28316
+ return q.useEffect(() => It.subscribe((ee) => {
28317
28317
  if (ee.dismiss) {
28318
28318
  requestAnimationFrame(() => {
28319
28319
  U((j) => j.map((J) => J.id === ee.id ? {
@@ -28551,11 +28551,11 @@ function WI({ url: e, target: t, height: r, width: n }) {
28551
28551
  return window.open(e, t, o);
28552
28552
  }
28553
28553
  function Gr() {
28554
- const e = Cr(Hl);
28554
+ const e = Cr(jl);
28555
28555
  if (!e) throw new Error("glyph hooks must be used within GlyphProvider");
28556
28556
  return { glyphApiFetch: e.apiFetch };
28557
28557
  }
28558
- let Zi = null;
28558
+ let Qi = null;
28559
28559
  function LI() {
28560
28560
  const { glyphApiFetch: e } = Gr(), t = Mt(), r = rt(
28561
28561
  async (o) => {
@@ -28571,9 +28571,9 @@ function LI() {
28571
28571
  [e]
28572
28572
  ), n = rt(
28573
28573
  async (o, i, l, u, p) => {
28574
- if (p && Zi?.abort?.(), !e) return { quote: null, ok: !1, error: "Glyph API not ready" };
28575
- Zi = new AbortController();
28576
- const d = Zi.signal, h = await e("/api/widget/onramp/quote", {
28574
+ if (p && Qi?.abort?.(), !e) return { quote: null, ok: !1, error: "Glyph API not ready" };
28575
+ Qi = new AbortController();
28576
+ const d = Qi.signal, h = await e("/api/widget/onramp/quote", {
28577
28577
  method: "POST",
28578
28578
  body: JSON.stringify({ chainId: t, amount: o, currency: i, country: l, subdivision: u }),
28579
28579
  headers: { "Content-Type": "application/json" },
@@ -28859,7 +28859,7 @@ function ZI() {
28859
28859
  return $s.default = t, $s;
28860
28860
  }
28861
28861
  var QI = ZI();
28862
- const vt = /* @__PURE__ */ GI(QI);
28862
+ const kt = /* @__PURE__ */ GI(QI);
28863
28863
  function JI(e) {
28864
28864
  return /* @__PURE__ */ c("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ c("path", { d: "M15.41 16.59L10.83 12L15.41 7.41L14 6L8 12L14 18L15.41 16.59Z", fill: "currentColor" }) });
28865
28865
  }
@@ -28910,8 +28910,8 @@ const YI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28910
28910
  ]
28911
28911
  }
28912
28912
  );
28913
- }, En = gt(YI), Qi = ({ className: e }) => /* @__PURE__ */ c(sA, { className: oe("gw-size-6 gw-text-brand-gray-700", e) }), XI = ({ fullScreenHeader: e, onProfileClick: t }) => {
28914
- const { user: r, setFetchForAllNetworks: n, fetchForAllNetworks: a } = Me(), { iconMap: s } = Gk(), o = Ep(), i = Mt(), { switchChainAsync: l } = Yl(), [u, p] = re([]), [d, h] = re(!1), f = So(null), y = Fe(() => a ? /* @__PURE__ */ c(Qi, {}) : /* @__PURE__ */ c("img", { src: s.get(i), className: "gw-size-6 gw-rounded-full gw-object-cover" }), [s, i, a]);
28913
+ }, En = gt(YI), Ji = ({ className: e }) => /* @__PURE__ */ c(sA, { className: oe("gw-size-6 gw-text-brand-gray-700", e) }), XI = ({ fullScreenHeader: e, onProfileClick: t }) => {
28914
+ const { user: r, setFetchForAllNetworks: n, fetchForAllNetworks: a } = Me(), { iconMap: s } = Gk(), o = Ep(), i = Mt(), { switchChainAsync: l } = Xl(), [u, p] = re([]), [d, h] = re(!1), f = So(null), y = Fe(() => a ? /* @__PURE__ */ c(Ji, {}) : /* @__PURE__ */ c("img", { src: s.get(i), className: "gw-size-6 gw-rounded-full gw-object-cover" }), [s, i, a]);
28915
28915
  return xe(() => {
28916
28916
  p(o.slice().sort((C, b) => (C.id === i ? -1 : 1) - (b.id === i ? -1 : 1)));
28917
28917
  }, [o, i]), xe(() => {
@@ -28946,7 +28946,7 @@ const YI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28946
28946
  En,
28947
28947
  {
28948
28948
  textClassName: "gw-max-w-56 gw-break-all gw-typography-body2",
28949
- text: vt(r.evmWallet),
28949
+ text: kt(r.evmWallet),
28950
28950
  textToCopy: r.evmWallet
28951
28951
  }
28952
28952
  ) })
@@ -28960,7 +28960,7 @@ const YI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28960
28960
  className: "gw-rounded-full gw-shadow-buttonMd gw-px-0.5 gw-py-0.5 gw-h-auto gw-w-auto gw-min-w-0 !gw-ring-0 gw-flex gw-items-center gw-space-x-1 gw-bg-white",
28961
28961
  children: [
28962
28962
  /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: y ?? /* @__PURE__ */ c(Ze, { className: "gw-size-6 gw-rounded-full" }) }),
28963
- /* @__PURE__ */ c(bc, { className: "gw-size-4 gw-text-gray-500" })
28963
+ /* @__PURE__ */ c(yc, { className: "gw-size-4 gw-text-gray-500" })
28964
28964
  ]
28965
28965
  }
28966
28966
  ),
@@ -28976,7 +28976,7 @@ const YI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28976
28976
  a ? "gw-bg-green-500/15" : "hover:gw-bg-gray-50"
28977
28977
  ),
28978
28978
  children: [
28979
- /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: /* @__PURE__ */ c(Qi, {}) }),
28979
+ /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: /* @__PURE__ */ c(Ji, {}) }),
28980
28980
  /* @__PURE__ */ c("span", { className: oe("gw-text-sm", a && "!gw-font-bold"), children: "All Supported Chains" })
28981
28981
  ]
28982
28982
  },
@@ -28990,7 +28990,7 @@ const YI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28990
28990
  alt: C.name,
28991
28991
  className: "gw-size-6 gw-rounded-full gw-object-cover"
28992
28992
  }
28993
- ) : /* @__PURE__ */ c(Qi, {});
28993
+ ) : /* @__PURE__ */ c(Ji, {});
28994
28994
  return /* @__PURE__ */ S(
28995
28995
  "button",
28996
28996
  {
@@ -29068,7 +29068,7 @@ var jI = Object.freeze({
29068
29068
  Qh.displayName = _I;
29069
29069
  var $I = Qh, [ai] = Sn("Tooltip", [
29070
29070
  ei
29071
- ]), si = ei(), Jh = "TooltipProvider", eN = 700, Ml = "tooltip.open", [tN, Kc] = ai(Jh), Ph = (e) => {
29071
+ ]), si = ei(), Jh = "TooltipProvider", eN = 700, Vl = "tooltip.open", [tN, zc] = ai(Jh), Ph = (e) => {
29072
29072
  const {
29073
29073
  __scopeTooltip: t,
29074
29074
  delayDuration: r = eN,
@@ -29113,11 +29113,11 @@ var _a = "Tooltip", [rN, oi] = ai(_a), Yh = (e) => {
29113
29113
  onOpenChange: s,
29114
29114
  disableHoverableContent: o,
29115
29115
  delayDuration: i
29116
- } = e, l = Kc(_a, e.__scopeTooltip), u = si(t), [p, d] = B.useState(null), h = gn(), f = B.useRef(0), y = o ?? l.disableHoverableContent, C = i ?? l.delayDuration, b = B.useRef(!1), [E, k] = da({
29116
+ } = e, l = zc(_a, e.__scopeTooltip), u = si(t), [p, d] = B.useState(null), h = gn(), f = B.useRef(0), y = o ?? l.disableHoverableContent, C = i ?? l.delayDuration, b = B.useRef(!1), [E, k] = da({
29117
29117
  prop: n,
29118
29118
  defaultProp: a ?? !1,
29119
29119
  onChange: (U) => {
29120
- U ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Ml))) : l.onClose(), s?.(U);
29120
+ U ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Vl))) : l.onClose(), s?.(U);
29121
29121
  },
29122
29122
  caller: _a
29123
29123
  }), A = B.useMemo(() => E ? b.current ? "delayed-open" : "instant-open" : "closed", [E]), v = B.useCallback(() => {
@@ -29154,10 +29154,10 @@ var _a = "Tooltip", [rN, oi] = ai(_a), Yh = (e) => {
29154
29154
  ) });
29155
29155
  };
29156
29156
  Yh.displayName = _a;
29157
- var Vl = "TooltipTrigger", Xh = B.forwardRef(
29157
+ var Wl = "TooltipTrigger", Xh = B.forwardRef(
29158
29158
  (e, t) => {
29159
- const { __scopeTooltip: r, ...n } = e, a = oi(Vl, r), s = Kc(Vl, r), o = si(r), i = B.useRef(null), l = ft(t, i, a.onTriggerChange), u = B.useRef(!1), p = B.useRef(!1), d = B.useCallback(() => u.current = !1, []);
29160
- return B.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ c(Oc, { asChild: !0, ...o, children: /* @__PURE__ */ c(
29159
+ const { __scopeTooltip: r, ...n } = e, a = oi(Wl, r), s = zc(Wl, r), o = si(r), i = B.useRef(null), l = ft(t, i, a.onTriggerChange), u = B.useRef(!1), p = B.useRef(!1), d = B.useCallback(() => u.current = !1, []);
29160
+ return B.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ c(qc, { asChild: !0, ...o, children: /* @__PURE__ */ c(
29161
29161
  ot.button,
29162
29162
  {
29163
29163
  "aria-describedby": a.open ? a.contentId : void 0,
@@ -29182,7 +29182,7 @@ var Vl = "TooltipTrigger", Xh = B.forwardRef(
29182
29182
  ) });
29183
29183
  }
29184
29184
  );
29185
- Xh.displayName = Vl;
29185
+ Xh.displayName = Wl;
29186
29186
  var nN = "TooltipPortal", [MM, aN] = ai(nN, {
29187
29187
  forceMount: void 0
29188
29188
  }), ta = "TooltipContent", Hh = B.forwardRef(
@@ -29191,7 +29191,7 @@ var nN = "TooltipPortal", [MM, aN] = ai(nN, {
29191
29191
  return /* @__PURE__ */ c(an, { present: n || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ c(jh, { side: a, ...s, ref: t }) : /* @__PURE__ */ c(sN, { side: a, ...s, ref: t }) });
29192
29192
  }
29193
29193
  ), sN = B.forwardRef((e, t) => {
29194
- const r = oi(ta, e.__scopeTooltip), n = Kc(ta, e.__scopeTooltip), a = B.useRef(null), s = ft(t, a), [o, i] = B.useState(null), { trigger: l, onClose: u } = r, p = a.current, { onPointerInTransitChange: d } = n, h = B.useCallback(() => {
29194
+ const r = oi(ta, e.__scopeTooltip), n = zc(ta, e.__scopeTooltip), a = B.useRef(null), s = ft(t, a), [o, i] = B.useState(null), { trigger: l, onClose: u } = r, p = a.current, { onPointerInTransitChange: d } = n, h = B.useCallback(() => {
29195
29195
  i(null), d(!1);
29196
29196
  }, [d]), f = B.useCallback(
29197
29197
  (y, C) => {
@@ -29226,7 +29226,7 @@ var nN = "TooltipPortal", [MM, aN] = ai(nN, {
29226
29226
  onPointerDownOutside: o,
29227
29227
  ...i
29228
29228
  } = e, l = oi(ta, r), u = si(r), { onClose: p } = l;
29229
- return B.useEffect(() => (document.addEventListener(Ml, p), () => document.removeEventListener(Ml, p)), [p]), B.useEffect(() => {
29229
+ return B.useEffect(() => (document.addEventListener(Vl, p), () => document.removeEventListener(Vl, p)), [p]), B.useEffect(() => {
29230
29230
  if (l.trigger) {
29231
29231
  const d = (h) => {
29232
29232
  h.target?.contains(l.trigger) && p();
@@ -29419,7 +29419,7 @@ function Kr({
29419
29419
  }
29420
29420
  );
29421
29421
  }
29422
- function zc(e) {
29422
+ function Dc(e) {
29423
29423
  return /* @__PURE__ */ S("svg", { width: "105", height: "105", viewBox: "0 0 105 105", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
29424
29424
  /* @__PURE__ */ c(
29425
29425
  "path",
@@ -29468,7 +29468,7 @@ const kN = ({ onEnd: e, onShowActivity: t, id: r }) => /* @__PURE__ */ c(
29468
29468
  }
29469
29469
  ) }) }),
29470
29470
  /* @__PURE__ */ c("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__ */ S("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
29471
- /* @__PURE__ */ c(zc, { className: "gw-size-24" }),
29471
+ /* @__PURE__ */ c(Dc, { className: "gw-size-24" }),
29472
29472
  /* @__PURE__ */ S("span", { className: "gw-mt-7 gw-typography-h4-nr gw-text-center", children: [
29473
29473
  "Transaction",
29474
29474
  /* @__PURE__ */ c("br", {}),
@@ -29503,7 +29503,7 @@ function dt(e) {
29503
29503
  }
29504
29504
  ) });
29505
29505
  }
29506
- function Dc(e) {
29506
+ function Gc(e) {
29507
29507
  return /* @__PURE__ */ S("svg", { width: "255", height: "254", viewBox: "0 0 255 254", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
29508
29508
  /* @__PURE__ */ c(
29509
29509
  "path",
@@ -29550,7 +29550,7 @@ const SN = ({ onBack: e, id: t, value: r }) => {
29550
29550
  /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: "1-5 mins" })
29551
29551
  ] }),
29552
29552
  /* @__PURE__ */ c("div", { className: "gw-mt-4 gw-flex gw-justify-center gw-items-center", children: /* @__PURE__ */ S("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: [
29553
- /* @__PURE__ */ c(Dc, { className: "gw-absolute gw-inset-0 gw-animate-spin gw-size-64 gw-z-0" }),
29553
+ /* @__PURE__ */ c(Gc, { className: "gw-absolute gw-inset-0 gw-animate-spin gw-size-64 gw-z-0" }),
29554
29554
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-justify-center gw-relative gw-z-10", children: [
29555
29555
  /* @__PURE__ */ c(ja, { className: "gw-size-8" }),
29556
29556
  /* @__PURE__ */ S("div", { className: "gw-typography-h6 gw-ml-3", children: [
@@ -29568,7 +29568,7 @@ const SN = ({ onBack: e, id: t, value: r }) => {
29568
29568
  /* @__PURE__ */ c(Pt, { className: "gw-size-8" }),
29569
29569
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-typography-body2", children: [
29570
29570
  /* @__PURE__ */ c("div", { className: "", children: n?.name }),
29571
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-600", children: vt(n.evmWallet) })
29571
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-600", children: kt(n.evmWallet) })
29572
29572
  ] })
29573
29573
  ] })
29574
29574
  ] }) })
@@ -29585,7 +29585,7 @@ const SN = ({ onBack: e, id: t, value: r }) => {
29585
29585
  }
29586
29586
  );
29587
29587
  }, TN = gt(SN);
29588
- function Gc(e) {
29588
+ function Zc(e) {
29589
29589
  return /* @__PURE__ */ S("svg", { width: "105", height: "105", viewBox: "0 0 105 105", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
29590
29590
  /* @__PURE__ */ c(
29591
29591
  "path",
@@ -29662,7 +29662,7 @@ const UN = ({ onEnd: e, onShowActivity: t, value: r }) => {
29662
29662
  }
29663
29663
  ) }) }),
29664
29664
  /* @__PURE__ */ c("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__ */ S("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
29665
- /* @__PURE__ */ c(Gc, { className: "gw-size-24" }),
29665
+ /* @__PURE__ */ c(Zc, { className: "gw-size-24" }),
29666
29666
  /* @__PURE__ */ c("span", { className: "gw-mt-7 gw-typography-h4-nr", children: "Success" }),
29667
29667
  /* @__PURE__ */ c("span", { className: "gw-mt-3 gw-text-center gw-whitespace-pre-wrap !gw-leading-tight", children: `Your account has been
29668
29668
  successfully funded!` }),
@@ -29678,7 +29678,7 @@ successfully funded!` }),
29678
29678
  /* @__PURE__ */ c(dt, { className: "gw-w-3 -gw-ml-1 -gw-rotate-90" })
29679
29679
  ] }),
29680
29680
  /* @__PURE__ */ c(Pt, { className: "gw-size-6 gw-flex-shrink-0" }),
29681
- /* @__PURE__ */ c("span", { className: "gw-break-all gw-typography-body2", children: vt(n.evmWallet) })
29681
+ /* @__PURE__ */ c("span", { className: "gw-break-all gw-typography-body2", children: kt(n.evmWallet) })
29682
29682
  ] }),
29683
29683
  /* @__PURE__ */ c(ke, { variant: "tertiary", className: "gw-w-full", onClick: t, children: "View Transaction" })
29684
29684
  ] }) })
@@ -29749,7 +29749,7 @@ function BN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29749
29749
  {
29750
29750
  className: "gw-w-full gw-text-center gw-border-b-2 gw-border-border focus-within:gw-border-foreground gw-pb-1 gw-flex gw-justify-between gw-items-center gw-typography-h3-nr",
29751
29751
  children: [
29752
- /* @__PURE__ */ c("span", { children: Md(s) }),
29752
+ /* @__PURE__ */ c("span", { children: Vd(s) }),
29753
29753
  /* @__PURE__ */ c("div", { className: "gw-flex-1 gw-overflow-hidden", children: /* @__PURE__ */ c(
29754
29754
  "input",
29755
29755
  {
@@ -29927,7 +29927,7 @@ function BN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29927
29927
  children: /* @__PURE__ */ S("span", { children: [
29928
29928
  "*",
29929
29929
  " ",
29930
- d || (X ? "Your order will be fulfilled via Coinbase" : `You pay in ${Md(s)} (${s})`)
29930
+ d || (X ? "Your order will be fulfilled via Coinbase" : `You pay in ${Vd(s)} (${s})`)
29931
29931
  ] })
29932
29932
  }
29933
29933
  )
@@ -30178,7 +30178,7 @@ function zN(e = 10, t) {
30178
30178
  isLoading: p
30179
30179
  };
30180
30180
  }
30181
- function Wl(e) {
30181
+ function Ll(e) {
30182
30182
  return /* @__PURE__ */ c("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ c(
30183
30183
  "path",
30184
30184
  {
@@ -30208,7 +30208,7 @@ function GN({ data: e }) {
30208
30208
  "gw-rounded-full gw-size-10 gw-flex-shrink-0 gw-flex gw-justify-center gw-items-center",
30209
30209
  e.status === "Confirmed" ? e.type === "swap" ? "gw-bg-brand-swapsuccess" : "gw-bg-brand-success" : e.status === "Failed" ? "gw-bg-destructive" : "gw-bg-brand-warning"
30210
30210
  ),
30211
- children: e.type === "swap" ? /* @__PURE__ */ c(DN, {}) : e.type === "receive" ? /* @__PURE__ */ c(Wl, { className: "gw-size-3 gw-rotate-180" }) : /* @__PURE__ */ c(Wl, {})
30211
+ children: e.type === "swap" ? /* @__PURE__ */ c(DN, {}) : e.type === "receive" ? /* @__PURE__ */ c(Ll, { className: "gw-size-3 gw-rotate-180" }) : /* @__PURE__ */ c(Ll, {})
30212
30212
  }
30213
30213
  ),
30214
30214
  t?.iconUrl && /* @__PURE__ */ c(
@@ -30267,7 +30267,7 @@ function ma({ text: e, url: t }) {
30267
30267
  e,
30268
30268
  " "
30269
30269
  ] }),
30270
- /* @__PURE__ */ c(Wl, { className: "!gw-size-2.5 gw-text-primary" })
30270
+ /* @__PURE__ */ c(Ll, { className: "!gw-size-2.5 gw-text-primary" })
30271
30271
  ] })
30272
30272
  }
30273
30273
  );
@@ -30335,7 +30335,7 @@ function QN(e) {
30335
30335
  n
30336
30336
  ];
30337
30337
  }
30338
- var ii = "Collapsible", [JN, $h] = Sn(ii), [PN, Zc] = JN(ii), ef = B.forwardRef(
30338
+ var ii = "Collapsible", [JN, $h] = Sn(ii), [PN, Qc] = JN(ii), ef = B.forwardRef(
30339
30339
  (e, t) => {
30340
30340
  const {
30341
30341
  __scopeCollapsible: r,
@@ -30361,7 +30361,7 @@ var ii = "Collapsible", [JN, $h] = Sn(ii), [PN, Zc] = JN(ii), ef = B.forwardRef(
30361
30361
  children: /* @__PURE__ */ c(
30362
30362
  ot.div,
30363
30363
  {
30364
- "data-state": Jc(l),
30364
+ "data-state": Pc(l),
30365
30365
  "data-disabled": s ? "" : void 0,
30366
30366
  ...i,
30367
30367
  ref: t
@@ -30374,14 +30374,14 @@ var ii = "Collapsible", [JN, $h] = Sn(ii), [PN, Zc] = JN(ii), ef = B.forwardRef(
30374
30374
  ef.displayName = ii;
30375
30375
  var tf = "CollapsibleTrigger", rf = B.forwardRef(
30376
30376
  (e, t) => {
30377
- const { __scopeCollapsible: r, ...n } = e, a = Zc(tf, r);
30377
+ const { __scopeCollapsible: r, ...n } = e, a = Qc(tf, r);
30378
30378
  return /* @__PURE__ */ c(
30379
30379
  ot.button,
30380
30380
  {
30381
30381
  type: "button",
30382
30382
  "aria-controls": a.contentId,
30383
30383
  "aria-expanded": a.open || !1,
30384
- "data-state": Jc(a.open),
30384
+ "data-state": Pc(a.open),
30385
30385
  "data-disabled": a.disabled ? "" : void 0,
30386
30386
  disabled: a.disabled,
30387
30387
  ...n,
@@ -30392,15 +30392,15 @@ var tf = "CollapsibleTrigger", rf = B.forwardRef(
30392
30392
  }
30393
30393
  );
30394
30394
  rf.displayName = tf;
30395
- var Qc = "CollapsibleContent", nf = B.forwardRef(
30395
+ var Jc = "CollapsibleContent", nf = B.forwardRef(
30396
30396
  (e, t) => {
30397
- const { forceMount: r, ...n } = e, a = Zc(Qc, e.__scopeCollapsible);
30397
+ const { forceMount: r, ...n } = e, a = Qc(Jc, e.__scopeCollapsible);
30398
30398
  return /* @__PURE__ */ c(an, { present: r || a.open, children: ({ present: s }) => /* @__PURE__ */ c(YN, { ...n, ref: t, present: s }) });
30399
30399
  }
30400
30400
  );
30401
- nf.displayName = Qc;
30401
+ nf.displayName = Jc;
30402
30402
  var YN = B.forwardRef((e, t) => {
30403
- const { __scopeCollapsible: r, present: n, children: a, ...s } = e, o = Zc(Qc, r), [i, l] = B.useState(n), u = B.useRef(null), p = ft(t, u), d = B.useRef(0), h = d.current, f = B.useRef(0), y = f.current, C = o.open || i, b = B.useRef(C), E = B.useRef(void 0);
30403
+ const { __scopeCollapsible: r, present: n, children: a, ...s } = e, o = Qc(Jc, r), [i, l] = B.useState(n), u = B.useRef(null), p = ft(t, u), d = B.useRef(0), h = d.current, f = B.useRef(0), y = f.current, C = o.open || i, b = B.useRef(C), E = B.useRef(void 0);
30404
30404
  return B.useEffect(() => {
30405
30405
  const k = requestAnimationFrame(() => b.current = !1);
30406
30406
  return () => cancelAnimationFrame(k);
@@ -30417,7 +30417,7 @@ var YN = B.forwardRef((e, t) => {
30417
30417
  }, [o.open, n]), /* @__PURE__ */ c(
30418
30418
  ot.div,
30419
30419
  {
30420
- "data-state": Jc(o.open),
30420
+ "data-state": Pc(o.open),
30421
30421
  "data-disabled": o.disabled ? "" : void 0,
30422
30422
  id: o.contentId,
30423
30423
  hidden: !C,
@@ -30432,7 +30432,7 @@ var YN = B.forwardRef((e, t) => {
30432
30432
  }
30433
30433
  );
30434
30434
  });
30435
- function Jc(e) {
30435
+ function Pc(e) {
30436
30436
  return e ? "open" : "closed";
30437
30437
  }
30438
30438
  var XN = ef, HN = rf, jN = nf, _N = B.createContext(void 0);
@@ -30440,16 +30440,16 @@ function $N(e) {
30440
30440
  const t = B.useContext(_N);
30441
30441
  return e || t || "ltr";
30442
30442
  }
30443
- var cr = "Accordion", eB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Pc, tB, rB] = QN(cr), [li] = Sn(cr, [
30443
+ var cr = "Accordion", eB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Yc, tB, rB] = QN(cr), [li] = Sn(cr, [
30444
30444
  rB,
30445
30445
  $h
30446
- ]), Yc = $h(), Xc = q.forwardRef(
30446
+ ]), Xc = $h(), Hc = q.forwardRef(
30447
30447
  (e, t) => {
30448
30448
  const { type: r, ...n } = e, a = n, s = n;
30449
- return /* @__PURE__ */ c(Pc.Provider, { scope: e.__scopeAccordion, children: r === "multiple" ? /* @__PURE__ */ c(oB, { ...s, ref: t }) : /* @__PURE__ */ c(sB, { ...a, ref: t }) });
30449
+ return /* @__PURE__ */ c(Yc.Provider, { scope: e.__scopeAccordion, children: r === "multiple" ? /* @__PURE__ */ c(oB, { ...s, ref: t }) : /* @__PURE__ */ c(sB, { ...a, ref: t }) });
30450
30450
  }
30451
30451
  );
30452
- Xc.displayName = cr;
30452
+ Hc.displayName = cr;
30453
30453
  var [af, nB] = li(cr), [sf, aB] = li(
30454
30454
  cr,
30455
30455
  { collapsible: !1 }
@@ -30551,7 +30551,7 @@ var [af, nB] = li(cr), [sf, aB] = li(
30551
30551
  disabled: n,
30552
30552
  direction: a,
30553
30553
  orientation: s,
30554
- children: /* @__PURE__ */ c(Pc.Slot, { scope: r, children: /* @__PURE__ */ c(
30554
+ children: /* @__PURE__ */ c(Yc.Slot, { scope: r, children: /* @__PURE__ */ c(
30555
30555
  ot.div,
30556
30556
  {
30557
30557
  ...o,
@@ -30563,9 +30563,9 @@ var [af, nB] = li(cr), [sf, aB] = li(
30563
30563
  }
30564
30564
  );
30565
30565
  }
30566
- ), yo = "AccordionItem", [lB, Hc] = li(yo), jc = q.forwardRef(
30566
+ ), yo = "AccordionItem", [lB, jc] = li(yo), _c = q.forwardRef(
30567
30567
  (e, t) => {
30568
- const { __scopeAccordion: r, value: n, ...a } = e, s = ci(yo, r), o = nB(yo, r), i = Yc(r), l = gn(), u = n && o.value.includes(n) || !1, p = s.disabled || e.disabled;
30568
+ const { __scopeAccordion: r, value: n, ...a } = e, s = ci(yo, r), o = nB(yo, r), i = Xc(r), l = gn(), u = n && o.value.includes(n) || !1, p = s.disabled || e.disabled;
30569
30569
  return /* @__PURE__ */ c(
30570
30570
  lB,
30571
30571
  {
@@ -30592,10 +30592,10 @@ var [af, nB] = li(cr), [sf, aB] = li(
30592
30592
  );
30593
30593
  }
30594
30594
  );
30595
- jc.displayName = yo;
30595
+ _c.displayName = yo;
30596
30596
  var lf = "AccordionHeader", cf = q.forwardRef(
30597
30597
  (e, t) => {
30598
- const { __scopeAccordion: r, ...n } = e, a = ci(cr, r), s = Hc(lf, r);
30598
+ const { __scopeAccordion: r, ...n } = e, a = ci(cr, r), s = jc(lf, r);
30599
30599
  return /* @__PURE__ */ c(
30600
30600
  ot.h3,
30601
30601
  {
@@ -30609,10 +30609,10 @@ var lf = "AccordionHeader", cf = q.forwardRef(
30609
30609
  }
30610
30610
  );
30611
30611
  cf.displayName = lf;
30612
- var Ll = "AccordionTrigger", _c = q.forwardRef(
30612
+ var Ol = "AccordionTrigger", $c = q.forwardRef(
30613
30613
  (e, t) => {
30614
- const { __scopeAccordion: r, ...n } = e, a = ci(cr, r), s = Hc(Ll, r), o = aB(Ll, r), i = Yc(r);
30615
- return /* @__PURE__ */ c(Pc.ItemSlot, { scope: r, children: /* @__PURE__ */ c(
30614
+ const { __scopeAccordion: r, ...n } = e, a = ci(cr, r), s = jc(Ol, r), o = aB(Ol, r), i = Xc(r);
30615
+ return /* @__PURE__ */ c(Yc.ItemSlot, { scope: r, children: /* @__PURE__ */ c(
30616
30616
  HN,
30617
30617
  {
30618
30618
  "aria-disabled": s.open && !o.collapsible || void 0,
@@ -30625,10 +30625,10 @@ var Ll = "AccordionTrigger", _c = q.forwardRef(
30625
30625
  ) });
30626
30626
  }
30627
30627
  );
30628
- _c.displayName = Ll;
30629
- var df = "AccordionContent", $c = q.forwardRef(
30628
+ $c.displayName = Ol;
30629
+ var df = "AccordionContent", ed = q.forwardRef(
30630
30630
  (e, t) => {
30631
- const { __scopeAccordion: r, ...n } = e, a = ci(cr, r), s = Hc(df, r), o = Yc(r);
30631
+ const { __scopeAccordion: r, ...n } = e, a = ci(cr, r), s = jc(df, r), o = Xc(r);
30632
30632
  return /* @__PURE__ */ c(
30633
30633
  jN,
30634
30634
  {
@@ -30647,11 +30647,11 @@ var df = "AccordionContent", $c = q.forwardRef(
30647
30647
  );
30648
30648
  }
30649
30649
  );
30650
- $c.displayName = df;
30650
+ ed.displayName = df;
30651
30651
  function uf(e) {
30652
30652
  return e ? "open" : "closed";
30653
30653
  }
30654
- var cB = Xc, dB = jc, uB = cf, pB = _c, mB = $c;
30654
+ var cB = Hc, dB = _c, uB = cf, pB = $c, mB = ed;
30655
30655
  const hB = cB, fB = Dt(({ className: e, ...t }, r) => /* @__PURE__ */ c(dB, { ref: r, className: oe(e), ...t })), gB = Dt(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ c(uB, { className: "gw-flex", children: /* @__PURE__ */ c(
30656
30656
  pB,
30657
30657
  {
@@ -30921,7 +30921,7 @@ function xB() {
30921
30921
  e?.hasProfile && /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-w-full", children: [
30922
30922
  /* @__PURE__ */ c("div", { className: "gw-flex gw-items-start", children: /* @__PURE__ */ S("div", { className: "gw-typography-body1", children: [
30923
30923
  /* @__PURE__ */ c("div", { className: "gw-font-medium", children: "Main Wallet" }),
30924
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-typography-caption", children: vt(e.evmWallet) })
30924
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-typography-caption", children: kt(e.evmWallet) })
30925
30925
  ] }) }),
30926
30926
  /* @__PURE__ */ c(
30927
30927
  En,
@@ -30949,7 +30949,7 @@ function xB() {
30949
30949
  e?.linkedWallets?.length ? e?.linkedWallets?.map?.((n) => /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-w-full gw-mt-2", children: [
30950
30950
  /* @__PURE__ */ c("div", { className: "gw-flex gw-items-center", children: /* @__PURE__ */ c("div", { className: "gw-flex gw-items-start", children: /* @__PURE__ */ S("div", { className: "gw-typography-body1", children: [
30951
30951
  /* @__PURE__ */ c("div", { className: "gw-font-medium gw-capitalize", children: n.walletClientType?.split?.("_")?.join?.(" ") || "External Wallet" }),
30952
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-typography-caption", children: vt(n.address) })
30952
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-typography-caption", children: kt(n.address) })
30953
30953
  ] }) }) }),
30954
30954
  /* @__PURE__ */ c(
30955
30955
  En,
@@ -31077,15 +31077,15 @@ function AB() {
31077
31077
  ] }),
31078
31078
  r && s?.length ? /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-flex-1 gw-min-h-0", children: [
31079
31079
  /* @__PURE__ */ c("div", { className: "gw-flex-1 gw-min-h-0 gw-overflow-auto", children: /* @__PURE__ */ c(
31080
- Xc,
31080
+ Hc,
31081
31081
  {
31082
31082
  className: "gw-w-full",
31083
31083
  type: "single",
31084
31084
  collapsible: !0,
31085
31085
  value: n,
31086
31086
  onValueChange: a,
31087
- children: s.map((l, u) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ S(jc, { value: u.toString(), className: "gw-pr-4", children: [
31088
- /* @__PURE__ */ c(_c, { asChild: !0, children: /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2 gw-cursor-pointer", children: [
31087
+ children: s.map((l, u) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ S(_c, { value: u.toString(), className: "gw-pr-4", children: [
31088
+ /* @__PURE__ */ c($c, { asChild: !0, children: /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2 gw-cursor-pointer", children: [
31089
31089
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-space-x-3 gw-min-w-0 gw-flex-1", children: [
31090
31090
  /* @__PURE__ */ c("div", { className: "gw-flex-shrink-0", children: /* @__PURE__ */ c(
31091
31091
  Gu,
@@ -31106,7 +31106,7 @@ function AB() {
31106
31106
  }
31107
31107
  ) })
31108
31108
  ] }) }),
31109
- /* @__PURE__ */ c($c, { children: /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-my-2", children: l.items.map((p) => /* @__PURE__ */ S("div", { className: "gw-relative", children: [
31109
+ /* @__PURE__ */ c(ed, { children: /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-my-2", children: l.items.map((p) => /* @__PURE__ */ S("div", { className: "gw-relative", children: [
31110
31110
  p.fromLinked && /* @__PURE__ */ c("div", { className: "gw-absolute gw-top-1 gw-right-1 gw-z-10", children: /* @__PURE__ */ c(vB, {}) }),
31111
31111
  p.fromDelegated && /* @__PURE__ */ c("div", { className: "gw-absolute gw-bottom-0 gw-left-0 gw-right-0 gw-z-10", children: /* @__PURE__ */ c("div", { className: "gw-bg-black gw-bg-opacity-50 gw-text-white gw-text-center gw-text-[10px] gw-py-0.5 gw-px-1", children: "Delegate" }) }),
31112
31112
  /* @__PURE__ */ c(
@@ -31214,8 +31214,8 @@ function SB() {
31214
31214
  }
31215
31215
  ) : l,
31216
31216
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end", children: [
31217
- /* @__PURE__ */ c("span", { className: "gw-font-medium", children: o.name }),
31218
- Number.isFinite(o.priceChangePct) && /* @__PURE__ */ S(
31217
+ /* @__PURE__ */ c("span", { className: "gw-font-medium gw-max-w-36 gw-truncate", children: o.symbol || o.name }),
31218
+ Number.isFinite(o.priceChangePct) && o.priceChangePct !== 0 && /* @__PURE__ */ S(
31219
31219
  "span",
31220
31220
  {
31221
31221
  className: `gw-typography-caption
@@ -31231,10 +31231,12 @@ function SB() {
31231
31231
  ] }),
31232
31232
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-text-end", children: [
31233
31233
  /* @__PURE__ */ c("span", { className: "gw-font-medium", children: Ge(o.amount, o.currency, BigInt(o.valueInWei) !== 0n) }),
31234
- /* @__PURE__ */ S("span", { className: "gw-typography-caption gw-text-brand-gray-500", children: [
31235
- Hn(o.valueInWei, o.decimals, o.displayDecimals),
31236
- " ",
31237
- o.symbol
31234
+ /* @__PURE__ */ S("span", { className: "gw-typography-caption gw-text-brand-gray-500 gw-flex gw-items-center gw-justify-end gw-gap-0.5", children: [
31235
+ /* @__PURE__ */ S("span", { children: [
31236
+ Hn(o.valueInWei, o.decimals, o.displayDecimals),
31237
+ " "
31238
+ ] }),
31239
+ /* @__PURE__ */ c("span", { className: "gw-max-w-28 gw-truncate gw-inline-block", children: o.symbol })
31238
31240
  ] })
31239
31241
  ] })
31240
31242
  ] }),
@@ -31418,14 +31420,14 @@ function BB({ onBack: e }) {
31418
31420
  }
31419
31421
  );
31420
31422
  }
31421
- var RB = Object.defineProperty, Co = Object.getOwnPropertySymbols, mf = Object.prototype.hasOwnProperty, hf = Object.prototype.propertyIsEnumerable, Zu = (e, t, r) => t in e ? RB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ol = (e, t) => {
31423
+ var RB = Object.defineProperty, Co = Object.getOwnPropertySymbols, mf = Object.prototype.hasOwnProperty, hf = Object.prototype.propertyIsEnumerable, Zu = (e, t, r) => t in e ? RB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ql = (e, t) => {
31422
31424
  for (var r in t || (t = {}))
31423
31425
  mf.call(t, r) && Zu(e, r, t[r]);
31424
31426
  if (Co)
31425
31427
  for (var r of Co(t))
31426
31428
  hf.call(t, r) && Zu(e, r, t[r]);
31427
31429
  return e;
31428
- }, ql = (e, t) => {
31430
+ }, Kl = (e, t) => {
31429
31431
  var r = {};
31430
31432
  for (var n in e)
31431
31433
  mf.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -32091,7 +32093,7 @@ var qB = (function() {
32091
32093
  boostLevel: d,
32092
32094
  marginSize: h,
32093
32095
  imageSettings: f
32094
- } = n, C = ql(n, [
32096
+ } = n, C = Kl(n, [
32095
32097
  "value",
32096
32098
  "size",
32097
32099
  "level",
@@ -32102,7 +32104,7 @@ var qB = (function() {
32102
32104
  "boostLevel",
32103
32105
  "marginSize",
32104
32106
  "imageSettings"
32105
- ]), { style: b } = C, E = ql(C, ["style"]), k = f?.src, A = q.useRef(null), v = q.useRef(null), N = q.useCallback(
32107
+ ]), { style: b } = C, E = Kl(C, ["style"]), k = f?.src, A = q.useRef(null), v = q.useRef(null), N = q.useCallback(
32106
32108
  (M) => {
32107
32109
  A.current = M, typeof r == "function" ? r(M) : r && (r.current = M);
32108
32110
  },
@@ -32146,7 +32148,7 @@ var qB = (function() {
32146
32148
  }), q.useEffect(() => {
32147
32149
  U(!1);
32148
32150
  }, [k]);
32149
- const Z = Ol({ height: s, width: s }, b);
32151
+ const Z = ql({ height: s, width: s }, b);
32150
32152
  let T = null;
32151
32153
  return k != null && (T = /* @__PURE__ */ q.createElement(
32152
32154
  "img",
@@ -32162,7 +32164,7 @@ var qB = (function() {
32162
32164
  }
32163
32165
  )), /* @__PURE__ */ q.createElement(q.Fragment, null, /* @__PURE__ */ q.createElement(
32164
32166
  "canvas",
32165
- Ol({
32167
+ ql({
32166
32168
  style: Z,
32167
32169
  height: s,
32168
32170
  width: s,
@@ -32187,7 +32189,7 @@ var kf = q.forwardRef(
32187
32189
  title: h,
32188
32190
  marginSize: f,
32189
32191
  imageSettings: y
32190
- } = n, C = ql(n, [
32192
+ } = n, C = Kl(n, [
32191
32193
  "value",
32192
32194
  "size",
32193
32195
  "level",
@@ -32229,7 +32231,7 @@ var kf = q.forwardRef(
32229
32231
  const R = xf(v, b);
32230
32232
  return /* @__PURE__ */ q.createElement(
32231
32233
  "svg",
32232
- Ol({
32234
+ ql({
32233
32235
  height: s,
32234
32236
  width: s,
32235
32237
  viewBox: `0 0 ${k} ${k}`,
@@ -32302,7 +32304,7 @@ function GB({ onBack: e }) {
32302
32304
  ) }),
32303
32305
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-center gw-space-y-2 gw-justify-center", children: [
32304
32306
  /* @__PURE__ */ c("h6", { children: r?.name }),
32305
- /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: vt(r.evmWallet) })
32307
+ /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: kt(r.evmWallet) })
32306
32308
  ] }),
32307
32309
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-w-full", children: [
32308
32310
  /* @__PURE__ */ c("div", { className: "gw-h-0 gw-border-b gw-w-full gw-flex-1 gw-border-brand-gray-500 gw-mr-4" }),
@@ -32327,7 +32329,7 @@ function GB({ onBack: e }) {
32327
32329
  );
32328
32330
  }
32329
32331
  const Af = Hm, Sf = jm, ZB = _m, Tf = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
32330
- Ac,
32332
+ Sc,
32331
32333
  {
32332
32334
  ref: r,
32333
32335
  className: oe(
@@ -32337,11 +32339,11 @@ const Af = Hm, Sf = jm, ZB = _m, Tf = B.forwardRef(({ className: e, ...t }, r) =
32337
32339
  ...t
32338
32340
  }
32339
32341
  ));
32340
- Tf.displayName = Ac.displayName;
32341
- const ed = B.forwardRef(({ className: e, children: t, container: r, ...n }, a) => /* @__PURE__ */ S(ZB, { container: r, children: [
32342
+ Tf.displayName = Sc.displayName;
32343
+ const td = B.forwardRef(({ className: e, children: t, container: r, ...n }, a) => /* @__PURE__ */ S(ZB, { container: r, children: [
32342
32344
  /* @__PURE__ */ c(Tf, {}),
32343
32345
  /* @__PURE__ */ S(
32344
- Sc,
32346
+ Tc,
32345
32347
  {
32346
32348
  ref: a,
32347
32349
  className: oe(
@@ -32359,11 +32361,11 @@ const ed = B.forwardRef(({ className: e, children: t, container: r, ...n }, a) =
32359
32361
  }
32360
32362
  )
32361
32363
  ] }));
32362
- ed.displayName = Sc.displayName;
32363
- const td = ({ className: e, ...t }) => /* @__PURE__ */ c("div", { className: oe("gw-flex gw-flex-col gw-space-y-1.5 gw-text-center", e), ...t });
32364
- td.displayName = "DialogHeader";
32365
- const rd = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
32366
- Tc,
32364
+ td.displayName = Tc.displayName;
32365
+ const rd = ({ className: e, ...t }) => /* @__PURE__ */ c("div", { className: oe("gw-flex gw-flex-col gw-space-y-1.5 gw-text-center", e), ...t });
32366
+ rd.displayName = "DialogHeader";
32367
+ const nd = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
32368
+ Uc,
32367
32369
  {
32368
32370
  ref: r,
32369
32371
  className: oe(
@@ -32373,21 +32375,21 @@ const rd = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
32373
32375
  ...t
32374
32376
  }
32375
32377
  ));
32376
- rd.displayName = Tc.displayName;
32377
- const nd = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
32378
- Uc,
32378
+ nd.displayName = Uc.displayName;
32379
+ const ad = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
32380
+ Ic,
32379
32381
  {
32380
32382
  ref: r,
32381
32383
  className: oe("gw-typography-body2 gw-text-muted-foreground", e),
32382
32384
  ...t
32383
32385
  }
32384
32386
  ));
32385
- nd.displayName = Uc.displayName;
32387
+ ad.displayName = Ic.displayName;
32386
32388
  const QB = ({
32387
32389
  onTokenSelect: e,
32388
32390
  selectedToken: t
32389
32391
  }) => {
32390
- const r = ut.chains || [], [n, a] = re(!1), s = Mt(), { switchChainAsync: o } = Yl(), { balances: i, hasBalances: l, fetchForAllNetworks: u, setFetchForAllNetworks: p } = di(), d = u ? "all" : s, h = Fe(() => t?.chainId ? r.find((b) => b.id === t.chainId) : null, [t?.chainId]), [f] = Fe(() => d === "all" ? [null] : [r.find((E) => E.id === d)], [d]), y = So(null);
32392
+ const r = ut.chains || [], [n, a] = re(!1), s = Mt(), { switchChainAsync: o } = Xl(), { balances: i, hasBalances: l, fetchForAllNetworks: u, setFetchForAllNetworks: p } = di(), d = u ? "all" : s, h = Fe(() => t?.chainId ? r.find((b) => b.id === t.chainId) : null, [t?.chainId]), [f] = Fe(() => d === "all" ? [null] : [r.find((E) => E.id === d)], [d]), y = So(null);
32391
32393
  xe(() => {
32392
32394
  y.current = document.querySelector(".gw-wallet-container");
32393
32395
  }, []);
@@ -32423,14 +32425,14 @@ const QB = ({
32423
32425
  /* @__PURE__ */ c("span", { className: "gw-typography-caption !gw-leading-none gw-text-brand-gray-500", children: er[h.id] || h.displayName })
32424
32426
  ] })
32425
32427
  ] }) : /* @__PURE__ */ c("div", { className: "gw-h-8 gw-rounded-full gw-typography-caption gw-flex gw-items-center gw-justify-center gw-text-brand-gray-500 gw-pl-3", children: "Select Token" }),
32426
- /* @__PURE__ */ c(bc, { className: "gw-size-4 gw-flex-shrink-0 gw-text-gray-500" })
32428
+ /* @__PURE__ */ c(yc, { className: "gw-size-4 gw-flex-shrink-0 gw-text-gray-500" })
32427
32429
  ]
32428
32430
  }
32429
32431
  ) }),
32430
- /* @__PURE__ */ S(ed, { container: y.current, className: "gw-max-h-[calc(100%-1rem)]", children: [
32431
- /* @__PURE__ */ S(td, { children: [
32432
- /* @__PURE__ */ c(rd, { children: "Select Token" }),
32433
- /* @__PURE__ */ c(nd, { className: "gw-sr-only", children: "Select a token to transfer" })
32432
+ /* @__PURE__ */ S(td, { container: y.current, className: "gw-max-h-[calc(100%-1rem)]", children: [
32433
+ /* @__PURE__ */ S(rd, { children: [
32434
+ /* @__PURE__ */ c(nd, { children: "Select Token" }),
32435
+ /* @__PURE__ */ c(ad, { className: "gw-sr-only", children: "Select a token to transfer" })
32434
32436
  ] }),
32435
32437
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-gap-4", children: [
32436
32438
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-gap-2", children: [
@@ -32518,7 +32520,7 @@ const QB = ({
32518
32520
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end", children: [
32519
32521
  /* @__PURE__ */ S("span", { className: "gw-font-medium gw-flex gw-gap-1 gw-items-center", children: [
32520
32522
  /* @__PURE__ */ c("span", { className: "gw-font-medium", children: b.symbol }),
32521
- b.address === Nt && /* @__PURE__ */ c(
32523
+ b.address === vt && /* @__PURE__ */ c(
32522
32524
  Kr,
32523
32525
  {
32524
32526
  side: "bottom",
@@ -32699,7 +32701,7 @@ const QB = ({
32699
32701
  }) => {
32700
32702
  const { user: o } = Me();
32701
32703
  return xe(() => {
32702
- s || a && (ol(a, { strict: !1 }) || n("Please enter a valid recipient wallet address"));
32704
+ s || a && (il(a, { strict: !1 }) || n("Please enter a valid recipient wallet address"));
32703
32705
  }, [a, s, n]), /* @__PURE__ */ c(
32704
32706
  Ct,
32705
32707
  {
@@ -32719,7 +32721,7 @@ const QB = ({
32719
32721
  /* @__PURE__ */ c(Pt, { className: "gw-size-11" }),
32720
32722
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col", children: [
32721
32723
  /* @__PURE__ */ c("div", { className: "gw-mt-1.5 gw-typography-subtitle1 gw-text-left", children: o?.name }),
32722
- /* @__PURE__ */ c("div", { className: "gw-typography-body2 gw-text-brand-gray-500", children: vt(o?.evmWallet || "") })
32724
+ /* @__PURE__ */ c("div", { className: "gw-typography-body2 gw-text-brand-gray-500", children: kt(o?.evmWallet || "") })
32723
32725
  ] }),
32724
32726
  /* @__PURE__ */ c("div", {})
32725
32727
  ] }) })
@@ -32741,7 +32743,7 @@ const QB = ({
32741
32743
  value: a,
32742
32744
  onChange: (i) => {
32743
32745
  if (r(i.target.value), !i.target.value) return n("");
32744
- if (!ol(i.target.value, { strict: !1 }))
32746
+ if (!il(i.target.value, { strict: !1 }))
32745
32747
  return n("Please enter a valid wallet address");
32746
32748
  if (o?.evmWallet && qa(i.target.value) === qa(o?.evmWallet))
32747
32749
  return n("You cannot send funds to your own wallet");
@@ -32762,7 +32764,7 @@ const QB = ({
32762
32764
  className: "gw-w-full gw-mt-4",
32763
32765
  disabled: !a || !!s,
32764
32766
  onClick: () => {
32765
- r(qa(a)), t(St.ENTER_AMOUNT);
32767
+ r(qa(a)), t(Tt.ENTER_AMOUNT);
32766
32768
  },
32767
32769
  children: "Continue"
32768
32770
  }
@@ -32790,7 +32792,7 @@ const QB = ({
32790
32792
  }
32791
32793
  ) }) }),
32792
32794
  /* @__PURE__ */ c("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__ */ S("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
32793
- /* @__PURE__ */ c(zc, { className: "gw-size-24" }),
32795
+ /* @__PURE__ */ c(Dc, { className: "gw-size-24" }),
32794
32796
  /* @__PURE__ */ S("span", { className: "gw-mt-7 gw-typography-h4-nr gw-text-center", children: [
32795
32797
  "Transaction",
32796
32798
  /* @__PURE__ */ c("br", {}),
@@ -32839,12 +32841,12 @@ Please try again.` }),
32839
32841
  /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: "1 min" })
32840
32842
  ] }),
32841
32843
  /* @__PURE__ */ c("div", { className: "gw-mt-4 gw-flex gw-justify-center gw-items-center", children: /* @__PURE__ */ S("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: [
32842
- /* @__PURE__ */ c(Dc, { className: "gw-absolute gw-inset-0 gw-animate-spin gw-size-64 gw-z-0" }),
32844
+ /* @__PURE__ */ c(Gc, { className: "gw-absolute gw-inset-0 gw-animate-spin gw-size-64 gw-z-0" }),
32843
32845
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-space-x-3 gw-justify-between gw-relative gw-z-10", children: [
32844
32846
  /* @__PURE__ */ c(Pt, { className: "gw-size-8" }),
32845
32847
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-typography-body2", children: [
32846
32848
  /* @__PURE__ */ c("div", { className: "", children: "From" }),
32847
- /* @__PURE__ */ c("div", { children: vt(i.evmWallet) })
32849
+ /* @__PURE__ */ c("div", { children: kt(i.evmWallet) })
32848
32850
  ] })
32849
32851
  ] }),
32850
32852
  /* @__PURE__ */ S("div", { className: "gw-flex gw-gap-3 gw-items-center", children: [
@@ -32873,7 +32875,7 @@ Please try again.` }),
32873
32875
  ),
32874
32876
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-typography-body2", children: [
32875
32877
  /* @__PURE__ */ c("div", { className: "", children: "To" }),
32876
- /* @__PURE__ */ c("div", { children: vt(a?.receiver_address) })
32878
+ /* @__PURE__ */ c("div", { children: kt(a?.receiver_address) })
32877
32879
  ] })
32878
32880
  ] })
32879
32881
  ] }) })
@@ -32913,16 +32915,16 @@ Please try again.` }),
32913
32915
  }
32914
32916
  ) }) }),
32915
32917
  /* @__PURE__ */ c("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__ */ S("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
32916
- /* @__PURE__ */ c(Gc, { className: "gw-size-24" }),
32918
+ /* @__PURE__ */ c(Zc, { className: "gw-size-24" }),
32917
32919
  /* @__PURE__ */ c("span", { className: "gw-mt-7 gw-typography-h4-nr", children: "Success" }),
32918
32920
  /* @__PURE__ */ c("span", { className: "gw-mt-3 gw-text-center gw-whitespace-pre-wrap !gw-leading-tight", children: `${r.receivable_amount_in_token} ${n} have been successfully
32919
- sent to ${vt(r.receiver_address)}` }),
32921
+ sent to ${kt(r.receiver_address)}` }),
32920
32922
  /* @__PURE__ */ S("div", { className: "gw-my-10 gw-rounded-2xl gw-bg-brand-white dark:gw-bg-brand-black gw-drop-shadow-buttonLg gw-flex gw-p-4 gw-items-center gw-space-x-2 gw-w-full gw-justify-between", children: [
32921
32923
  /* @__PURE__ */ S("div", { className: "gw-flex gw-gap-2 gw-items-center", children: [
32922
32924
  /* @__PURE__ */ c(Pt, { className: "gw-size-6 gw-flex-shrink-0" }),
32923
32925
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-typography-caption", children: [
32924
32926
  /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: "From" }),
32925
- /* @__PURE__ */ c("span", { className: "gw-break-all", children: a?.name || vt(a?.evmWallet || "") })
32927
+ /* @__PURE__ */ c("span", { className: "gw-break-all", children: a?.name || kt(a?.evmWallet || "") })
32926
32928
  ] })
32927
32929
  ] }),
32928
32930
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-justify-center gw-text-brand-success gw-relative gw-z-10", children: [
@@ -32940,7 +32942,7 @@ sent to ${vt(r.receiver_address)}` }),
32940
32942
  ),
32941
32943
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-typography-caption", children: [
32942
32944
  /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: "To" }),
32943
- /* @__PURE__ */ c("span", { className: "gw-break-all", children: vt(r.receiver_address) })
32945
+ /* @__PURE__ */ c("span", { className: "gw-break-all", children: kt(r.receiver_address) })
32944
32946
  ] })
32945
32947
  ] })
32946
32948
  ] }),
@@ -32951,7 +32953,7 @@ sent to ${vt(r.receiver_address)}` }),
32951
32953
  );
32952
32954
  }, tR = gt(eR), rR = 10 * 1e3, nR = "Not enough balance", Qu = "Balance not enough to transfer";
32953
32955
  function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
32954
- const { user: a, sendTransaction: s, refreshBalances: o, hasBalances: i, balances: l } = Me(), { glyphApiFetch: u } = Gr(), p = Mt(), d = Ep(), h = Fe(() => d.find((ne) => ne.id === p), [p, d]), [f, y] = re(""), [C, b] = re(null), [E, k] = re(St.ENTER_ADDRESS), A = Fe(
32956
+ const { user: a, sendTransaction: s, refreshBalances: o, hasBalances: i, balances: l } = Me(), { glyphApiFetch: u } = Gr(), p = Mt(), d = Ep(), h = Fe(() => d.find((ne) => ne.id === p), [p, d]), [f, y] = re(""), [C, b] = re(null), [E, k] = re(Tt.ENTER_ADDRESS), A = Fe(
32955
32957
  () => l?.tokens?.find((ne) => ne.native && ne.chainId === p),
32956
32958
  [l?.tokens, p]
32957
32959
  ), [v, N] = re(), R = Fe(() => wn({ chain: h, transport: Et() }), [h]);
@@ -32963,13 +32965,14 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
32963
32965
  !Number(v?.value || "0") && !ee ? (O(!1), j(Qu)) : v?.value && Number(v?.value) > 0 && ee === Qu && (O(!1), j(null));
32964
32966
  }, [v?.value, ee, j, O]), xe(() => {
32965
32967
  const ne = async () => {
32966
- if (!(E !== St.ENTER_AMOUNT || K || J || !R) && v && V && f && v?.address && (Q || V <= Number(v?.value || 0))) {
32968
+ if (!(E !== Tt.ENTER_AMOUNT || K || J || !R) && v && V && f && v?.address && (Q || V <= Number(v?.value || 0))) {
32967
32969
  M(null), O(!0), j(null);
32968
32970
  const { maxFeePerGas: _e } = await R.estimateFeesPerGas();
32969
32971
  let Qe;
32972
+ console.debug("Send - reached checkpoint 1");
32970
32973
  try {
32971
- const I = (Q || V === Number(v.value || 0)) && v.valueInWei ? BigInt(v.valueInWei || 0) : A0(`${V}`);
32972
- v?.address === Nt ? Qe = await R.estimateGas({
32974
+ const I = (Q || V === Number(v.value || 0)) && v.valueInWei ? BigInt(v.valueInWei || 0) : v?.address === vt ? A0(`${V}`) : Bi(V, v.decimals || 18);
32975
+ v?.address === vt ? Qe = await R.estimateGas({
32973
32976
  account: a?.evmWallet,
32974
32977
  to: f,
32975
32978
  value: I
@@ -32983,20 +32986,22 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
32983
32986
  maxPriorityFeePerGas: _e / 2n
32984
32987
  });
32985
32988
  } catch (I) {
32986
- j(I?.shortMessage || "Failed to estimate gas"), O(!1);
32989
+ console.debug(I), j(I?.shortMessage || "Failed to estimate gas"), O(!1);
32987
32990
  return;
32988
32991
  }
32992
+ console.debug("Send - reached checkpoint 2");
32989
32993
  const ae = _e * Qe;
32990
32994
  let x;
32991
- if (v?.address === Nt && (Q || V === Number(v.value || 0)))
32995
+ if (v?.address === vt && (Q || V === Number(v.value || 0)))
32992
32996
  x = BigInt(v.valueInWei || 0) - ae;
32993
32997
  else {
32994
32998
  if (ae > BigInt(A?.valueInWei || 0)) {
32995
32999
  j("Insufficient gas balance"), O(!1);
32996
33000
  return;
32997
33001
  }
32998
- x = Q ? BigInt(v.valueInWei || 0) : tu(V, v.decimals || 18);
33002
+ x = Q || V === Number(v.value || 0) ? BigInt(v.valueInWei || 0) : Bi(V, v.decimals || 18);
32999
33003
  }
33004
+ console.debug("Send - reached checkpoint 3");
33000
33005
  const g = _e / 2n, w = Ya(
33001
33006
  +_r(x, v.decimals || 18),
33002
33007
  v.displayDecimals
@@ -33040,7 +33045,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33040
33045
  a,
33041
33046
  E
33042
33047
  ]), xe(() => {
33043
- E === St.WAIT && _(!0);
33048
+ E === Tt.WAIT && _(!0);
33044
33049
  }, [E]), xe(() => {
33045
33050
  if (!P) return te(0);
33046
33051
  }, [P]);
@@ -33053,7 +33058,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33053
33058
  if (!ne.ok) throw new Error("Cannot fetch tx status");
33054
33059
  const fe = await ne.json();
33055
33060
  if (de(fe.status), Ce(fe.blockExplorerUrl), Ve(fe.blockExplorerName), fe.status === "PENDING") return;
33056
- await o(!0), _(!1), k(St.END);
33061
+ await o(!0), _(!1), k(Tt.END);
33057
33062
  } catch (ne) {
33058
33063
  tr.error(ne?.message);
33059
33064
  return;
@@ -33070,16 +33075,16 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33070
33075
  }),
33071
33076
  []
33072
33077
  );
33073
- xe(() => (E === St.END && Ae === "SUCCESS" && n(rr.SUCCESS), E === St.END && Ae === "FAILED" && n(rr.ERROR), () => {
33078
+ xe(() => (E === Tt.END && Ae === "SUCCESS" && n(rr.SUCCESS), E === Tt.END && Ae === "FAILED" && n(rr.ERROR), () => {
33074
33079
  n(void 0);
33075
33080
  }), [n, Ae, E]);
33076
- const Yt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-2" }) : /* @__PURE__ */ c(ni, {}), lt = v ? Hn(v?.valueInWei, v?.decimals, v?.displayDecimals) : void 0, xt = v ? v?.rateInCurrency ? Ge(
33081
+ const Yt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-1 gw-rounded-full" }) : /* @__PURE__ */ c(ni, {}), lt = v ? Hn(v?.valueInWei, v?.decimals, v?.displayDecimals) : void 0, xt = v ? v?.rateInCurrency ? Ge(
33077
33082
  parseFloat(_r(BigInt(v?.valueInWei || 0), v?.decimals)) * parseFloat(v?.rateInCurrency),
33078
33083
  v?.currency,
33079
33084
  BigInt(v?.valueInWei) > 0n
33080
33085
  ) : Ge(v?.amount || 0, v?.currency, BigInt(v?.valueInWei) !== 0n) : void 0;
33081
33086
  return /* @__PURE__ */ S(ve, { children: [
33082
- E === St.ENTER_ADDRESS && /* @__PURE__ */ c(
33087
+ E === Tt.ENTER_ADDRESS && /* @__PURE__ */ c(
33083
33088
  XB,
33084
33089
  {
33085
33090
  onBack: e,
@@ -33090,7 +33095,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33090
33095
  recipientAddressError: C
33091
33096
  }
33092
33097
  ),
33093
- E === St.ENTER_AMOUNT && /* @__PURE__ */ c(
33098
+ E === Tt.ENTER_AMOUNT && /* @__PURE__ */ c(
33094
33099
  Ct,
33095
33100
  {
33096
33101
  header: /* @__PURE__ */ c(
@@ -33099,7 +33104,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33099
33104
  fullScreenHeader: {
33100
33105
  title: "Send Funds",
33101
33106
  onBackClick: () => {
33102
- k(St.ENTER_ADDRESS);
33107
+ k(Tt.ENTER_ADDRESS);
33103
33108
  }
33104
33109
  }
33105
33110
  }
@@ -33228,7 +33233,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33228
33233
  ] }),
33229
33234
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
33230
33235
  /* @__PURE__ */ c("span", { children: "Network Fees" }),
33231
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${Hn(tu(T?.estimated_fees_amount || 0, A?.decimals || 18), A?.decimals || 18, A?.displayDecimals)} ${A?.symbol} (${T?.estimated_fees_amount_in_currency})` })
33236
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${Hn(Bi(T?.estimated_fees_amount || 0, A?.decimals || 18), A?.decimals || 18, A?.displayDecimals)} ${A?.symbol} (${T?.estimated_fees_amount_in_currency})` })
33232
33237
  ] }),
33233
33238
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
33234
33239
  /* @__PURE__ */ c("span", { children: "Expected receivable amount" }),
@@ -33244,7 +33249,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33244
33249
  /* @__PURE__ */ c(Pt, { className: "gw-size-6 gw-flex-shrink-0" }),
33245
33250
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-typography-caption", children: [
33246
33251
  /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: "From" }),
33247
- /* @__PURE__ */ c("span", { className: "gw-break-all", children: a?.name || vt(a?.evmWallet || "") })
33252
+ /* @__PURE__ */ c("span", { className: "gw-break-all", children: a?.name || kt(a?.evmWallet || "") })
33248
33253
  ] })
33249
33254
  ] }),
33250
33255
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-justify-center gw-text-primary gw-relative gw-z-10", children: [
@@ -33262,7 +33267,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33262
33267
  ),
33263
33268
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-typography-caption", children: [
33264
33269
  /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: "To" }),
33265
- /* @__PURE__ */ c("span", { className: "gw-break-all", children: vt(f) })
33270
+ /* @__PURE__ */ c("span", { className: "gw-break-all", children: kt(f) })
33266
33271
  ] })
33267
33272
  ] })
33268
33273
  ] }),
@@ -33283,7 +33288,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33283
33288
  if (!R)
33284
33289
  throw new Error("Missing publicClient");
33285
33290
  let fe;
33286
- if (v?.address === Nt)
33291
+ if (v?.address === vt)
33287
33292
  ne = await s({
33288
33293
  transaction: {
33289
33294
  to: f,
@@ -33326,7 +33331,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33326
33331
  (await u(`/api/widget/transactions/${fe}`, {
33327
33332
  method: "POST",
33328
33333
  body: JSON.stringify({ chainId: p })
33329
- })).ok ? (se(fe), j(null), k(St.WAIT), await o(!0)) : j("Failed to send transaction");
33334
+ })).ok ? (se(fe), j(null), k(Tt.WAIT), await o(!0)) : j("Failed to send transaction");
33330
33335
  } catch (fe) {
33331
33336
  Vt.error("error sending txn", fe), j("Request rejected or failed"), tr.error("Request rejected or failed");
33332
33337
  } finally {
@@ -33344,7 +33349,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33344
33349
  footerCols: !0
33345
33350
  }
33346
33351
  ),
33347
- E === St.WAIT && /* @__PURE__ */ c(
33352
+ E === Tt.WAIT && /* @__PURE__ */ c(
33348
33353
  $B,
33349
33354
  {
33350
33355
  onBack: e,
@@ -33356,7 +33361,7 @@ function aR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33356
33361
  TokenIcon: ht
33357
33362
  }
33358
33363
  ),
33359
- E === St.END && (Ae === "SUCCESS" ? /* @__PURE__ */ c(
33364
+ E === Tt.END && (Ae === "SUCCESS" ? /* @__PURE__ */ c(
33360
33365
  tR,
33361
33366
  {
33362
33367
  onEnd: () => o(!0).catch().finally(() => t()),
@@ -33381,7 +33386,7 @@ const If = Ao(void 0), us = () => {
33381
33386
  if (!e) throw new Error("useGlyphSwap must be used within GlyphSwapProvider");
33382
33387
  return e;
33383
33388
  };
33384
- class Nf extends ec {
33389
+ class Nf extends tc {
33385
33390
  constructor(t, r) {
33386
33391
  super(), this.finished = !1, this.destroyed = !1, Qp(t);
33387
33392
  const n = Fo(r);
@@ -33442,7 +33447,7 @@ function lR(e) {
33442
33447
  });
33443
33448
  }
33444
33449
  const cR = (e) => {
33445
- const { user: t, signMessage: r, signTypedData: n, sendTransaction: a } = Me(), { switchChainAsync: s } = Yl();
33450
+ const { user: t, signMessage: r, signTypedData: n, sendTransaction: a } = Me(), { switchChainAsync: s } = Xl();
33446
33451
  return Fe(() => !t?.evmWallet || !s || !e ? null : {
33447
33452
  vmType: "evm",
33448
33453
  address: () => Promise.resolve(t?.evmWallet),
@@ -33512,7 +33517,7 @@ const cR = (e) => {
33512
33517
  "wallet not ready, please refresh and try again"
33513
33518
  );
33514
33519
  const i = s.details?.currencyIn?.currency?.chainId;
33515
- if (i === Al)
33520
+ if (i === Sl)
33516
33521
  throw Mn(Hr, "solana wallet not implemented");
33517
33522
  if (!t)
33518
33523
  throw Mn(
@@ -33599,7 +33604,7 @@ const cR = (e) => {
33599
33604
  error: i,
33600
33605
  txDetails: s
33601
33606
  };
33602
- }, pR = 3e4, Ju = 115n, Pu = (e, t, r, n, a) => n != null && t && (e !== t?.address ? BigInt(n) * 100n > BigInt(r || 0) * Ju : (BigInt(n) - Xl(a || "0", t.decimals)) * 100n > BigInt(r || 0) * Ju), mR = (e) => {
33607
+ }, pR = 3e4, Ju = 115n, Pu = (e, t, r, n, a) => n != null && t && (e !== t?.address ? BigInt(n) * 100n > BigInt(r || 0) * Ju : (BigInt(n) - Hl(a || "0", t.decimals)) * 100n > BigInt(r || 0) * Ju), mR = (e) => {
33603
33608
  const t = us(), { fromCurrency: r, toCurrency: n, tradeType: a, amount: s, topupGas: o, topupGasAmount: i } = t, { user: l } = Me(), u = l?.evmWallet, p = l?.solanaWallet;
33604
33609
  let d = !0;
33605
33610
  try {
@@ -33607,19 +33612,19 @@ const cR = (e) => {
33607
33612
  } catch {
33608
33613
  d = !1;
33609
33614
  }
33610
- const h = !!u && !!p && !!r && !!n && d && (e !== void 0 ? e : !0), f = au(r, n), y = f ? r?.address === Nt ? "wrap" : "unwrap" : "swap";
33615
+ const h = !!u && !!p && !!r && !!n && d && (e !== void 0 ? e : !0), f = au(r, n), y = f ? r?.address === vt ? "wrap" : "unwrap" : "swap";
33611
33616
  return { ...Da({
33612
33617
  queryKey: ["relayQuote", u, p, t],
33613
33618
  queryFn: async () => {
33614
33619
  Na(u), Na(p), Na(r), Na(n), Na(s);
33615
- const b = r.chainId === Al ? p : u, E = n.chainId === Al ? p : u;
33620
+ const b = r.chainId === Sl ? p : u, E = n.chainId === Sl ? p : u;
33616
33621
  return ut.actions.getQuote({
33617
33622
  tradeType: a,
33618
33623
  chainId: r.chainId,
33619
33624
  currency: r.address,
33620
33625
  toChainId: n.chainId,
33621
33626
  toCurrency: n.address,
33622
- amount: Xl(s, r.decimals).toString(),
33627
+ amount: Hl(s, r.decimals).toString(),
33623
33628
  user: b,
33624
33629
  recipient: E,
33625
33630
  options: {
@@ -33697,7 +33702,7 @@ const gR = ({
33697
33702
  f(U);
33698
33703
  }),
33699
33704
  []
33700
- ), C = ol(h), [b, E] = Fe(() => {
33705
+ ), C = il(h), [b, E] = Fe(() => {
33701
33706
  if (!i) return [null, []];
33702
33707
  const U = n.find((V) => V.id === i), W = U?.featuredTokens || [];
33703
33708
  return [U, W];
@@ -33753,14 +33758,14 @@ const gR = ({
33753
33758
  /* @__PURE__ */ c("span", { className: "gw-typography-caption !gw-leading-none gw-text-brand-gray-500", children: er[u.id] || u.displayName })
33754
33759
  ] })
33755
33760
  ] }) : /* @__PURE__ */ c("div", { className: "gw-h-8 gw-rounded-full gw-typography-caption gw-flex gw-items-center gw-justify-center gw-text-brand-gray-500 gw-pl-3", children: "Select Token" }),
33756
- /* @__PURE__ */ c(bc, { className: "gw-size-4 gw-flex-shrink-0 gw-text-gray-500" })
33761
+ /* @__PURE__ */ c(yc, { className: "gw-size-4 gw-flex-shrink-0 gw-text-gray-500" })
33757
33762
  ]
33758
33763
  }
33759
33764
  ) }),
33760
- /* @__PURE__ */ S(ed, { container: k.current, className: "gw-max-h-[calc(100%-1rem)]", children: [
33761
- /* @__PURE__ */ S(td, { children: [
33762
- /* @__PURE__ */ c(rd, { children: "Select Token" }),
33763
- /* @__PURE__ */ c(nd, { className: "gw-sr-only", children: "Select a token to swap" })
33765
+ /* @__PURE__ */ S(td, { container: k.current, className: "gw-max-h-[calc(100%-1rem)]", children: [
33766
+ /* @__PURE__ */ S(rd, { children: [
33767
+ /* @__PURE__ */ c(nd, { children: "Select Token" }),
33768
+ /* @__PURE__ */ c(ad, { className: "gw-sr-only", children: "Select a token to swap" })
33764
33769
  ] }),
33765
33770
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-gap-4", children: [
33766
33771
  /* @__PURE__ */ c(
@@ -33910,7 +33915,7 @@ const gR = ({
33910
33915
  children: /* @__PURE__ */ c("span", { className: "gw-size-[18px] gw-bg-brand-warning gw-rounded-full gw-flex gw-items-center gw-justify-center gw-p-1 gw-text-background", children: /* @__PURE__ */ c(iu, {}) })
33911
33916
  }
33912
33917
  ),
33913
- i && U.address === Nt && /* @__PURE__ */ c(
33918
+ i && U.address === vt && /* @__PURE__ */ c(
33914
33919
  Kr,
33915
33920
  {
33916
33921
  side: "bottom",
@@ -33932,7 +33937,7 @@ const gR = ({
33932
33937
  ] }),
33933
33938
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-h-full", children: [
33934
33939
  /* @__PURE__ */ c("span", { className: "gw-h-5" }),
33935
- /* @__PURE__ */ c("span", { className: "gw-typography-caption gw-text-brand-gray-500", children: vt(U.address) })
33940
+ /* @__PURE__ */ c("span", { className: "gw-typography-caption gw-text-brand-gray-500", children: kt(U.address) })
33936
33941
  ] })
33937
33942
  ]
33938
33943
  }
@@ -33954,7 +33959,7 @@ const gR = ({
33954
33959
  topUpDetails: n,
33955
33960
  quoteReady: a
33956
33961
  }) => {
33957
- const { balance: s } = co(Nt, e), o = Ya(
33962
+ const { balance: s } = co(vt, e), o = Ya(
33958
33963
  parseFloat(n?.amountFormatted || "0"),
33959
33964
  Math.min(n?.currency?.decimals || mt, mt)
33960
33965
  ), i = Number(n?.amountUsd || "0"), l = n?.currency;
@@ -34024,7 +34029,7 @@ const gR = ({
34024
34029
  }
34025
34030
  ) }) }),
34026
34031
  /* @__PURE__ */ c("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__ */ S("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
34027
- /* @__PURE__ */ c(zc, { className: "gw-size-24" }),
34032
+ /* @__PURE__ */ c(Dc, { className: "gw-size-24" }),
34028
34033
  /* @__PURE__ */ S("span", { className: "gw-mt-7 gw-typography-h4-nr gw-text-center", children: [
34029
34034
  "Transaction",
34030
34035
  /* @__PURE__ */ c("br", {}),
@@ -34077,7 +34082,7 @@ Please try again.` }),
34077
34082
  /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500", children: t?.estimatedTime ? `${t?.estimatedTime} secs` : "<15 secs" })
34078
34083
  ] }),
34079
34084
  /* @__PURE__ */ c("div", { className: "gw-mt-4 gw-flex gw-justify-center gw-items-center", children: /* @__PURE__ */ S("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: [
34080
- /* @__PURE__ */ c(Dc, { className: "gw-absolute gw-inset-0 gw-animate-spin gw-size-64 gw-z-0" }),
34085
+ /* @__PURE__ */ c(Gc, { className: "gw-absolute gw-inset-0 gw-animate-spin gw-size-64 gw-z-0" }),
34081
34086
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-justify-between gw-relative gw-z-10", children: [
34082
34087
  /* @__PURE__ */ c(
34083
34088
  br,
@@ -34168,7 +34173,7 @@ Please try again.` }),
34168
34173
  }
34169
34174
  ) }) }),
34170
34175
  /* @__PURE__ */ c("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__ */ S("div", { className: "gw-flex gw-flex-col gw-items-center gw-w-full", children: [
34171
- /* @__PURE__ */ c(Gc, { className: "gw-size-24" }),
34176
+ /* @__PURE__ */ c(Zc, { className: "gw-size-24" }),
34172
34177
  /* @__PURE__ */ c("span", { className: "gw-mt-7 gw-typography-h4-nr", children: "Success" }),
34173
34178
  /* @__PURE__ */ c("span", { className: "gw-mt-3 gw-text-center gw-whitespace-pre-wrap !gw-leading-tight", children: o?.symbol && i?.symbol && `You have successfully swapped
34174
34179
  ${o.symbol} for ${i.symbol}` }),
@@ -34296,7 +34301,7 @@ function kR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34296
34301
  balance: me,
34297
34302
  isLoading: Ce,
34298
34303
  error: Ne
34299
- } = co(E?.address, E?.chainId), Ve = U?.fees?.gas, Ae = Ve?.currency?.address || Nt, {
34304
+ } = co(E?.address, E?.chainId), Ve = U?.fees?.gas, Ae = Ve?.currency?.address || vt, {
34300
34305
  balance: de,
34301
34306
  isLoading: Vt,
34302
34307
  error: Zt
@@ -34493,7 +34498,7 @@ function kR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34493
34498
  E?.symbol
34494
34499
  ] }) : /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) })
34495
34500
  ] }),
34496
- /* @__PURE__ */ c("div", { className: "gw-h-5 gw-mt-1 gw-flex gw-items-center", children: E?.address !== Nt ? /* @__PURE__ */ c(
34501
+ /* @__PURE__ */ c("div", { className: "gw-h-5 gw-mt-1 gw-flex gw-items-center", children: E?.address !== vt ? /* @__PURE__ */ c(
34497
34502
  wR,
34498
34503
  {
34499
34504
  destinationChainId: E?.chainId,
@@ -34788,9 +34793,9 @@ function SR({ children: e }) {
34788
34793
  return /* @__PURE__ */ c(If.Provider, { value: { ...r, update: a, reportSwapFailed: s }, children: e });
34789
34794
  }
34790
34795
  const Ht = os("GlyphData");
34791
- let Ji = null;
34796
+ let Pi = null;
34792
34797
  const TR = ({ children: e }) => {
34793
- const t = Cr(Hl);
34798
+ const t = Cr(jl);
34794
34799
  if (!t) throw new Error("GlyphUserDataProvider must be used within GlyphProvider");
34795
34800
  const { ready: r, authenticated: n } = t, { glyphApiFetch: a } = Gr(), s = Mt(), [o, i] = re(!1), l = o ? "all" : s, {
34796
34801
  data: u,
@@ -34835,10 +34840,10 @@ const TR = ({ children: e }) => {
34835
34840
  enabled: r && n && !!a && !!u,
34836
34841
  refetchInterval: Vx,
34837
34842
  queryFn: async () => {
34838
- if (Ji?.abort?.(), !a)
34843
+ if (Pi?.abort?.(), !a)
34839
34844
  return Ht.warn("widget balances fetch not available"), null;
34840
- Ji = new AbortController();
34841
- const k = Ji.signal;
34845
+ Pi = new AbortController();
34846
+ const k = Pi.signal;
34842
34847
  try {
34843
34848
  const A = await a(`/api/widget/balances?chainId=${l}`, {
34844
34849
  signal: k
@@ -34965,7 +34970,7 @@ const TR = ({ children: e }) => {
34965
34970
  );
34966
34971
  }, IR = xp(() => import("./PrivyStrategy.js")), NR = xp(() => import("./EIP1193Strategy.js")), Rf = ({
34967
34972
  children: e,
34968
- strategy: t = Fd,
34973
+ strategy: t = Md,
34969
34974
  glyphUrl: r,
34970
34975
  useStagingTenant: n,
34971
34976
  ...a
@@ -34989,7 +34994,7 @@ const TR = ({ children: e }) => {
34989
34994
  []
34990
34995
  ), [i, l] = re(t);
34991
34996
  xe(() => {
34992
- t && Object.values(Kn).includes(t) ? l(t) : l(Fd);
34997
+ t && Object.values(Kn).includes(t) ? l(t) : l(Md);
34993
34998
  }, [t]);
34994
34999
  const u = Fe(() => o[i], [i, o]);
34995
35000
  return /* @__PURE__ */ c(u, { glyphUrl: r?.trim?.(), ...a, children: /* @__PURE__ */ c(TR, { children: /* @__PURE__ */ c(SR, { children: /* @__PURE__ */ c(UR, { children: /* @__PURE__ */ c(CN, { children: e }) }) }) }) });
@@ -35145,7 +35150,7 @@ class MR extends $a {
35145
35150
  });
35146
35151
  }
35147
35152
  }
35148
- class Pi extends $a {
35153
+ class Yi extends $a {
35149
35154
  constructor() {
35150
35155
  super("Provider not found."), Object.defineProperty(this, "name", {
35151
35156
  enumerable: !0,
@@ -35160,7 +35165,7 @@ async function VR({ providerAppId: e, apiUrl: t }) {
35160
35165
  return { url: s, customConnectUrl: n, customTransactUrl: a, name: i, iconUrl: o };
35161
35166
  }
35162
35167
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35163
- const ad = /* @__PURE__ */ BigInt(0), Kl = /* @__PURE__ */ BigInt(1);
35168
+ const sd = /* @__PURE__ */ BigInt(0), zl = /* @__PURE__ */ BigInt(1);
35164
35169
  function Eo(e, t = "") {
35165
35170
  if (typeof e != "boolean") {
35166
35171
  const r = t && `"${t}"`;
@@ -35183,7 +35188,7 @@ function eo(e) {
35183
35188
  function Wf(e) {
35184
35189
  if (typeof e != "string")
35185
35190
  throw new Error("hex string expected, got " + typeof e);
35186
- return e === "" ? ad : BigInt("0x" + e);
35191
+ return e === "" ? sd : BigInt("0x" + e);
35187
35192
  }
35188
35193
  function ui(e) {
35189
35194
  return Wf(qn(e));
@@ -35191,13 +35196,13 @@ function ui(e) {
35191
35196
  function Lf(e) {
35192
35197
  return Wr(e), Wf(qn(Uint8Array.from(e).reverse()));
35193
35198
  }
35194
- function sd(e, t) {
35199
+ function od(e, t) {
35195
35200
  return uo(e.toString(16).padStart(t * 2, "0"));
35196
35201
  }
35197
35202
  function Of(e, t) {
35198
- return sd(e, t).reverse();
35203
+ return od(e, t).reverse();
35199
35204
  }
35200
- function Tt(e, t, r) {
35205
+ function Ut(e, t, r) {
35201
35206
  let n;
35202
35207
  if (typeof t == "string")
35203
35208
  try {
@@ -35211,9 +35216,9 @@ function Tt(e, t, r) {
35211
35216
  throw new Error(e + " must be hex string or Uint8Array");
35212
35217
  return n.length, n;
35213
35218
  }
35214
- const Yi = (e) => typeof e == "bigint" && ad <= e;
35219
+ const Xi = (e) => typeof e == "bigint" && sd <= e;
35215
35220
  function WR(e, t, r) {
35216
- return Yi(e) && Yi(t) && Yi(r) && t <= e && e < r;
35221
+ return Xi(e) && Xi(t) && Xi(r) && t <= e && e < r;
35217
35222
  }
35218
35223
  function LR(e, t, r, n) {
35219
35224
  if (!WR(t, r, n))
@@ -35221,11 +35226,11 @@ function LR(e, t, r, n) {
35221
35226
  }
35222
35227
  function qf(e) {
35223
35228
  let t;
35224
- for (t = 0; e > ad; e >>= Kl, t += 1)
35229
+ for (t = 0; e > sd; e >>= zl, t += 1)
35225
35230
  ;
35226
35231
  return t;
35227
35232
  }
35228
- const ps = (e) => (Kl << BigInt(e)) - Kl;
35233
+ const ps = (e) => (zl << BigInt(e)) - zl;
35229
35234
  function OR(e, t, r) {
35230
35235
  if (typeof e != "number" || e < 2)
35231
35236
  throw new Error("hashLen must be a number");
@@ -35259,7 +35264,7 @@ function OR(e, t, r) {
35259
35264
  return l(), C;
35260
35265
  };
35261
35266
  }
35262
- function od(e, t, r = {}) {
35267
+ function id(e, t, r = {}) {
35263
35268
  if (!e || typeof e != "object")
35264
35269
  throw new Error("expected valid options object");
35265
35270
  function n(a, s, o) {
@@ -35283,42 +35288,42 @@ function tp(e) {
35283
35288
  };
35284
35289
  }
35285
35290
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35286
- const It = BigInt(0), kt = BigInt(1), pn = /* @__PURE__ */ BigInt(2), Kf = /* @__PURE__ */ BigInt(3), zf = /* @__PURE__ */ BigInt(4), Df = /* @__PURE__ */ BigInt(5), qR = /* @__PURE__ */ BigInt(7), Gf = /* @__PURE__ */ BigInt(8), KR = /* @__PURE__ */ BigInt(9), Zf = /* @__PURE__ */ BigInt(16);
35291
+ const Nt = BigInt(0), At = BigInt(1), pn = /* @__PURE__ */ BigInt(2), Kf = /* @__PURE__ */ BigInt(3), zf = /* @__PURE__ */ BigInt(4), Df = /* @__PURE__ */ BigInt(5), qR = /* @__PURE__ */ BigInt(7), Gf = /* @__PURE__ */ BigInt(8), KR = /* @__PURE__ */ BigInt(9), Zf = /* @__PURE__ */ BigInt(16);
35287
35292
  function _t(e, t) {
35288
35293
  const r = e % t;
35289
- return r >= It ? r : t + r;
35294
+ return r >= Nt ? r : t + r;
35290
35295
  }
35291
35296
  function Jt(e, t, r) {
35292
35297
  let n = e;
35293
- for (; t-- > It; )
35298
+ for (; t-- > Nt; )
35294
35299
  n *= n, n %= r;
35295
35300
  return n;
35296
35301
  }
35297
35302
  function rp(e, t) {
35298
- if (e === It)
35303
+ if (e === Nt)
35299
35304
  throw new Error("invert: expected non-zero number");
35300
- if (t <= It)
35305
+ if (t <= Nt)
35301
35306
  throw new Error("invert: expected positive modulus, got " + t);
35302
- let r = _t(e, t), n = t, a = It, s = kt;
35303
- for (; r !== It; ) {
35307
+ let r = _t(e, t), n = t, a = Nt, s = At;
35308
+ for (; r !== Nt; ) {
35304
35309
  const i = n / r, l = n % r, u = a - s * i;
35305
35310
  n = r, r = l, a = s, s = u;
35306
35311
  }
35307
- if (n !== kt)
35312
+ if (n !== At)
35308
35313
  throw new Error("invert: does not exist");
35309
35314
  return _t(a, t);
35310
35315
  }
35311
- function id(e, t, r) {
35316
+ function ld(e, t, r) {
35312
35317
  if (!e.eql(e.sqr(t), r))
35313
35318
  throw new Error("Cannot find square root");
35314
35319
  }
35315
35320
  function Qf(e, t) {
35316
- const r = (e.ORDER + kt) / zf, n = e.pow(t, r);
35317
- return id(e, n, t), n;
35321
+ const r = (e.ORDER + At) / zf, n = e.pow(t, r);
35322
+ return ld(e, n, t), n;
35318
35323
  }
35319
35324
  function zR(e, t) {
35320
35325
  const r = (e.ORDER - Df) / Gf, n = e.mul(t, pn), a = e.pow(n, r), s = e.mul(t, a), o = e.mul(e.mul(s, pn), a), i = e.mul(s, e.sub(o, e.ONE));
35321
- return id(e, i, t), i;
35326
+ return ld(e, i, t), i;
35322
35327
  }
35323
35328
  function DR(e) {
35324
35329
  const t = ms(e), r = Jf(e), n = r(t, t.neg(t.ONE)), a = r(t, n), s = r(t, t.neg(n)), o = (e + qR) / Zf;
@@ -35327,14 +35332,14 @@ function DR(e) {
35327
35332
  const d = i.mul(u, a), h = i.mul(u, s), f = i.eql(i.sqr(p), l), y = i.eql(i.sqr(d), l);
35328
35333
  u = i.cmov(u, p, f), p = i.cmov(h, d, y);
35329
35334
  const C = i.eql(i.sqr(p), l), b = i.cmov(u, p, C);
35330
- return id(i, b, l), b;
35335
+ return ld(i, b, l), b;
35331
35336
  };
35332
35337
  }
35333
35338
  function Jf(e) {
35334
35339
  if (e < Kf)
35335
35340
  throw new Error("sqrt is not defined for small field");
35336
- let t = e - kt, r = 0;
35337
- for (; t % pn === It; )
35341
+ let t = e - At, r = 0;
35342
+ for (; t % pn === Nt; )
35338
35343
  t /= pn, r++;
35339
35344
  let n = pn;
35340
35345
  const a = ms(e);
@@ -35344,7 +35349,7 @@ function Jf(e) {
35344
35349
  if (r === 1)
35345
35350
  return Qf;
35346
35351
  let s = a.pow(n, t);
35347
- const o = (t + kt) / pn;
35352
+ const o = (t + At) / pn;
35348
35353
  return function(l, u) {
35349
35354
  if (l.is0(u))
35350
35355
  return u;
@@ -35358,7 +35363,7 @@ function Jf(e) {
35358
35363
  for (; !l.eql(C, l.ONE); )
35359
35364
  if (y++, C = l.sqr(C), y === p)
35360
35365
  throw new Error("Cannot find square root");
35361
- const b = kt << BigInt(p - y - 1), E = l.pow(d, b);
35366
+ const b = At << BigInt(p - y - 1), E = l.pow(d, b);
35362
35367
  p = y, d = l.sqr(E), h = l.mul(h, d), f = l.mul(f, E);
35363
35368
  }
35364
35369
  return f;
@@ -35393,18 +35398,18 @@ function QR(e) {
35393
35398
  BYTES: "number",
35394
35399
  BITS: "number"
35395
35400
  }, r = ZR.reduce((n, a) => (n[a] = "function", n), t);
35396
- return od(e, r), e;
35401
+ return id(e, r), e;
35397
35402
  }
35398
35403
  function JR(e, t, r) {
35399
- if (r < It)
35404
+ if (r < Nt)
35400
35405
  throw new Error("invalid exponent, negatives unsupported");
35401
- if (r === It)
35406
+ if (r === Nt)
35402
35407
  return e.ONE;
35403
- if (r === kt)
35408
+ if (r === At)
35404
35409
  return t;
35405
35410
  let n = e.ONE, a = t;
35406
- for (; r > It; )
35407
- r & kt && (n = e.mul(n, a)), a = e.sqr(a), r >>= kt;
35411
+ for (; r > Nt; )
35412
+ r & At && (n = e.mul(n, a)), a = e.sqr(a), r >>= At;
35408
35413
  return n;
35409
35414
  }
35410
35415
  function Pf(e, t, r = !1) {
@@ -35412,7 +35417,7 @@ function Pf(e, t, r = !1) {
35412
35417
  return t.reduceRight((o, i, l) => e.is0(i) ? o : (n[l] = e.mul(o, n[l]), e.mul(o, i)), s), n;
35413
35418
  }
35414
35419
  function np(e, t) {
35415
- const r = (e.ORDER - kt) / pn, n = e.pow(t, r), a = e.eql(n, e.ONE), s = e.eql(n, e.ZERO), o = e.eql(n, e.neg(e.ONE));
35420
+ const r = (e.ORDER - At) / pn, n = e.pow(t, r), a = e.eql(n, e.ONE), s = e.eql(n, e.ZERO), o = e.eql(n, e.neg(e.ONE));
35416
35421
  if (!a && !s && !o)
35417
35422
  throw new Error("invalid Legendre symbol result");
35418
35423
  return a ? 1 : s ? 0 : -1;
@@ -35423,7 +35428,7 @@ function Yf(e, t) {
35423
35428
  return { nBitLength: r, nByteLength: n };
35424
35429
  }
35425
35430
  function ms(e, t, r = !1, n = {}) {
35426
- if (e <= It)
35431
+ if (e <= Nt)
35427
35432
  throw new Error("invalid field: expected ORDER > 0, got " + e);
35428
35433
  let a, s, o = !1, i;
35429
35434
  if (typeof t == "object" && t != null) {
@@ -35443,19 +35448,19 @@ function ms(e, t, r = !1, n = {}) {
35443
35448
  BITS: l,
35444
35449
  BYTES: u,
35445
35450
  MASK: ps(l),
35446
- ZERO: It,
35447
- ONE: kt,
35451
+ ZERO: Nt,
35452
+ ONE: At,
35448
35453
  allowedLengths: i,
35449
35454
  create: (h) => _t(h, e),
35450
35455
  isValid: (h) => {
35451
35456
  if (typeof h != "bigint")
35452
35457
  throw new Error("invalid field element: expected bigint, got " + typeof h);
35453
- return It <= h && h < e;
35458
+ return Nt <= h && h < e;
35454
35459
  },
35455
- is0: (h) => h === It,
35460
+ is0: (h) => h === Nt,
35456
35461
  // is valid and invertible
35457
35462
  isValidNot0: (h) => !d.is0(h) && d.isValid(h),
35458
- isOdd: (h) => (h & kt) === kt,
35463
+ isOdd: (h) => (h & At) === At,
35459
35464
  neg: (h) => _t(-h, e),
35460
35465
  eql: (h, f) => h === f,
35461
35466
  sqr: (h) => _t(h * h, e),
@@ -35471,7 +35476,7 @@ function ms(e, t, r = !1, n = {}) {
35471
35476
  mulN: (h, f) => h * f,
35472
35477
  inv: (h) => rp(h, e),
35473
35478
  sqrt: s || ((h) => (p || (p = GR(e)), p(d, h))),
35474
- toBytes: (h) => r ? Of(h, u) : sd(h, u),
35479
+ toBytes: (h) => r ? Of(h, u) : od(h, u),
35475
35480
  fromBytes: (h, f = !0) => {
35476
35481
  if (i) {
35477
35482
  if (!i.includes(h.length) || h.length > u)
@@ -35508,8 +35513,8 @@ function PR(e, t, r = !1) {
35508
35513
  const n = e.length, a = Xf(t), s = Hf(t);
35509
35514
  if (n < 16 || n < s || n > 1024)
35510
35515
  throw new Error("expected " + s + "-1024 bytes of input, got " + n);
35511
- const o = r ? Lf(e) : ui(e), i = _t(o, t - kt) + kt;
35512
- return r ? Of(i, a) : sd(i, a);
35516
+ const o = r ? Lf(e) : ui(e), i = _t(o, t - At) + At;
35517
+ return r ? Of(i, a) : od(i, a);
35513
35518
  }
35514
35519
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35515
35520
  const ra = BigInt(0), mn = BigInt(1);
@@ -35517,7 +35522,7 @@ function vo(e, t) {
35517
35522
  const r = t.negate();
35518
35523
  return e ? r : t;
35519
35524
  }
35520
- function Xi(e, t) {
35525
+ function Hi(e, t) {
35521
35526
  const r = Pf(e.Fp, t.map((n) => n.Z));
35522
35527
  return t.map((n, a) => e.fromAffine(n.toAffine(r[a])));
35523
35528
  }
@@ -35525,7 +35530,7 @@ function jf(e, t) {
35525
35530
  if (!Number.isSafeInteger(e) || e <= 0 || e > t)
35526
35531
  throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
35527
35532
  }
35528
- function Hi(e, t) {
35533
+ function ji(e, t) {
35529
35534
  jf(e, t);
35530
35535
  const r = Math.ceil(t / e) + 1, n = 2 ** (e - 1), a = 2 ** e, s = ps(e), o = BigInt(e);
35531
35536
  return { windows: r, windowSize: n, mask: s, maxNumber: a, shiftBy: o };
@@ -35553,8 +35558,8 @@ function XR(e, t) {
35553
35558
  throw new Error("invalid scalar at index " + n);
35554
35559
  });
35555
35560
  }
35556
- const ji = /* @__PURE__ */ new WeakMap(), _f = /* @__PURE__ */ new WeakMap();
35557
- function _i(e) {
35561
+ const _i = /* @__PURE__ */ new WeakMap(), _f = /* @__PURE__ */ new WeakMap();
35562
+ function $i(e) {
35558
35563
  return _f.get(e) || 1;
35559
35564
  }
35560
35565
  function sp(e) {
@@ -35586,7 +35591,7 @@ class HR {
35586
35591
  * @returns precomputed point tables flattened to a single array
35587
35592
  */
35588
35593
  precomputeWindow(t, r) {
35589
- const { windows: n, windowSize: a } = Hi(r, this.bits), s = [];
35594
+ const { windows: n, windowSize: a } = ji(r, this.bits), s = [];
35590
35595
  let o = t, i = o;
35591
35596
  for (let l = 0; l < n; l++) {
35592
35597
  i = o, s.push(i);
@@ -35606,7 +35611,7 @@ class HR {
35606
35611
  if (!this.Fn.isValid(n))
35607
35612
  throw new Error("invalid scalar");
35608
35613
  let a = this.ZERO, s = this.BASE;
35609
- const o = Hi(t, this.bits);
35614
+ const o = ji(t, this.bits);
35610
35615
  for (let i = 0; i < o.windows; i++) {
35611
35616
  const { nextN: l, offset: u, isZero: p, isNeg: d, isNegF: h, offsetF: f } = ap(n, i, o);
35612
35617
  n = l, p ? s = s.add(vo(h, r[f])) : a = a.add(vo(d, r[u]));
@@ -35619,7 +35624,7 @@ class HR {
35619
35624
  * @returns point
35620
35625
  */
35621
35626
  wNAFUnsafe(t, r, n, a = this.ZERO) {
35622
- const s = Hi(t, this.bits);
35627
+ const s = ji(t, this.bits);
35623
35628
  for (let o = 0; o < s.windows && n !== ra; o++) {
35624
35629
  const { nextN: i, offset: l, isZero: u, isNeg: p } = ap(n, o, s);
35625
35630
  if (n = i, !u) {
@@ -35630,25 +35635,25 @@ class HR {
35630
35635
  return sp(n), a;
35631
35636
  }
35632
35637
  getPrecomputes(t, r, n) {
35633
- let a = ji.get(r);
35634
- return a || (a = this.precomputeWindow(r, t), t !== 1 && (typeof n == "function" && (a = n(a)), ji.set(r, a))), a;
35638
+ let a = _i.get(r);
35639
+ return a || (a = this.precomputeWindow(r, t), t !== 1 && (typeof n == "function" && (a = n(a)), _i.set(r, a))), a;
35635
35640
  }
35636
35641
  cached(t, r, n) {
35637
- const a = _i(t);
35642
+ const a = $i(t);
35638
35643
  return this.wNAF(a, this.getPrecomputes(a, t, n), r);
35639
35644
  }
35640
35645
  unsafe(t, r, n, a) {
35641
- const s = _i(t);
35646
+ const s = $i(t);
35642
35647
  return s === 1 ? this._unsafeLadder(t, r, a) : this.wNAFUnsafe(s, this.getPrecomputes(s, t, n), r, a);
35643
35648
  }
35644
35649
  // We calculate precomputes for elliptic curve point multiplication
35645
35650
  // using windowed method. This specifies window size and
35646
35651
  // stores precomputed values. Usually only base point would be precomputed.
35647
35652
  createCache(t, r) {
35648
- jf(r, this.bits), _f.set(t, r), ji.delete(t);
35653
+ jf(r, this.bits), _f.set(t, r), _i.delete(t);
35649
35654
  }
35650
35655
  hasCache(t) {
35651
- return _i(t) !== 1;
35656
+ return $i(t) !== 1;
35652
35657
  }
35653
35658
  }
35654
35659
  function jR(e, t, r, n) {
@@ -35716,16 +35721,16 @@ function eF(e, t, r) {
35716
35721
  throw new Error("splitScalar (endomorphism): failed, k=" + e);
35717
35722
  return { k1neg: d, k1: u, k2neg: h, k2: p };
35718
35723
  }
35719
- function zl(e) {
35724
+ function Dl(e) {
35720
35725
  if (!["compact", "recovered", "der"].includes(e))
35721
35726
  throw new Error('Signature format must be "compact", "recovered", or "der"');
35722
35727
  return e;
35723
35728
  }
35724
- function $i(e, t) {
35729
+ function el(e, t) {
35725
35730
  const r = {};
35726
35731
  for (let n of Object.keys(t))
35727
35732
  r[n] = e[n] === void 0 ? t[n] : e[n];
35728
- return Eo(r.lowS, "lowS"), Eo(r.prehash, "prehash"), r.format !== void 0 && zl(r.format), r;
35733
+ return Eo(r.lowS, "lowS"), Eo(r.prehash, "prehash"), r.format !== void 0 && Dl(r.format), r;
35729
35734
  }
35730
35735
  class tF extends Error {
35731
35736
  constructor(t = "") {
@@ -35807,7 +35812,7 @@ const Br = {
35807
35812
  }
35808
35813
  },
35809
35814
  toSig(e) {
35810
- const { Err: t, _int: r, _tlv: n } = Br, a = Tt("signature", e), { v: s, l: o } = n.decode(48, a);
35815
+ const { Err: t, _int: r, _tlv: n } = Br, a = Ut("signature", e), { v: s, l: o } = n.decode(48, a);
35811
35816
  if (o.length)
35812
35817
  throw new t("invalid signature: left bytes after parsing");
35813
35818
  const { v: i, l } = n.decode(2, s), { v: u, l: p } = n.decode(2, l);
@@ -35826,7 +35831,7 @@ function On(e, t) {
35826
35831
  if (typeof t == "bigint")
35827
35832
  n = t;
35828
35833
  else {
35829
- let a = Tt("private key", t);
35834
+ let a = Ut("private key", t);
35830
35835
  try {
35831
35836
  n = e.fromBytes(a);
35832
35837
  } catch {
@@ -35841,7 +35846,7 @@ function nF(e, t = {}) {
35841
35846
  const r = $R("weierstrass", e, t), { Fp: n, Fn: a } = r;
35842
35847
  let s = r.CURVE;
35843
35848
  const { h: o, n: i } = s;
35844
- od(t, {}, {
35849
+ id(t, {}, {
35845
35850
  allowInfinityPoint: "boolean",
35846
35851
  clearCofactor: "function",
35847
35852
  isTorsionFree: "function",
@@ -35973,7 +35978,7 @@ function nF(e, t = {}) {
35973
35978
  return M.assertValidity(), M;
35974
35979
  }
35975
35980
  static fromHex(T) {
35976
- return V.fromBytes(Tt("pointHex", T));
35981
+ return V.fromBytes(Ut("pointHex", T));
35977
35982
  }
35978
35983
  get x() {
35979
35984
  return this.toAffine().x;
@@ -36054,7 +36059,7 @@ function nF(e, t = {}) {
36054
36059
  if (!a.isValidNot0(T))
36055
36060
  throw new Error("invalid scalar: out of range");
36056
36061
  let F, O;
36057
- const K = (G) => Q.cached(this, G, (P) => Xi(V, P));
36062
+ const K = (G) => Q.cached(this, G, (P) => Hi(V, P));
36058
36063
  if (M) {
36059
36064
  const { k1neg: G, k1: P, k2neg: _, k2: H } = N(T), { p: te, f: ee } = K(P), { p: j, f: J } = K(H);
36060
36065
  O = ee.add(J), F = W(M.beta, te, j, G, _);
@@ -36062,7 +36067,7 @@ function nF(e, t = {}) {
36062
36067
  const { p: G, f: P } = K(T);
36063
36068
  F = G, O = P;
36064
36069
  }
36065
- return Xi(V, [F, O])[0];
36070
+ return Hi(V, [F, O])[0];
36066
36071
  }
36067
36072
  /**
36068
36073
  * Non-constant-time multiplication. Uses double-and-add algorithm.
@@ -36137,7 +36142,7 @@ function nF(e, t = {}) {
36137
36142
  this.precompute(T);
36138
36143
  }
36139
36144
  static normalizeZ(T) {
36140
- return Xi(V, T);
36145
+ return Hi(V, T);
36141
36146
  }
36142
36147
  static msm(T, M) {
36143
36148
  return _R(V, a, T, M);
@@ -36198,7 +36203,7 @@ function aF(e, t = {}) {
36198
36203
  const { secretKey: y, publicKey: C, publicKeyUncompressed: b } = a;
36199
36204
  if (r.allowedLengths || y === C)
36200
36205
  return;
36201
- const E = Tt("key", f).length;
36206
+ const E = Ut("key", f).length;
36202
36207
  return E === C || E === b;
36203
36208
  }
36204
36209
  function d(f, y, C = !0) {
@@ -36223,7 +36228,7 @@ function aF(e, t = {}) {
36223
36228
  }, lengths: a });
36224
36229
  }
36225
36230
  function sF(e, t, r = {}) {
36226
- Qp(t), od(r, {}, {
36231
+ Qp(t), id(r, {}, {
36227
36232
  hmac: "function",
36228
36233
  lowS: "boolean",
36229
36234
  randomBytes: "function",
@@ -36247,7 +36252,7 @@ function sF(e, t, r = {}) {
36247
36252
  return F;
36248
36253
  }
36249
36254
  function k(M, F) {
36250
- zl(F);
36255
+ Dl(F);
36251
36256
  const O = f.signature, K = F === "compact" ? O : F === "recovered" ? O + 1 : void 0;
36252
36257
  return un(M, K, `${F} signature`);
36253
36258
  }
@@ -36281,7 +36286,7 @@ function sF(e, t, r = {}) {
36281
36286
  const H = P === 2 || P === 3 ? K + i : K;
36282
36287
  if (!s.isValid(H))
36283
36288
  throw new Error("recovery id 2 or 3 invalid");
36284
- const te = s.toBytes(H), ee = e.fromBytes(jr(e0((P & 1) === 0), te)), j = o.inv(H), J = N(Tt("msgHash", F)), ie = o.create(-J * j), ce = o.create(G * j), se = e.BASE.multiplyUnsafe(ie).add(ee.multiplyUnsafe(ce));
36289
+ const te = s.toBytes(H), ee = e.fromBytes(jr(e0((P & 1) === 0), te)), j = o.inv(H), J = N(Ut("msgHash", F)), ie = o.create(-J * j), ce = o.create(G * j), se = e.BASE.multiplyUnsafe(ie).add(ee.multiplyUnsafe(ce));
36285
36290
  if (se.is0())
36286
36291
  throw new Error("point at infinify");
36287
36292
  return se.assertValidity(), se;
@@ -36291,7 +36296,7 @@ function sF(e, t, r = {}) {
36291
36296
  return b(this.s);
36292
36297
  }
36293
36298
  toBytes(F = C) {
36294
- if (zl(F), F === "der")
36299
+ if (Dl(F), F === "der")
36295
36300
  return uo(Br.hexFromSig(this));
36296
36301
  const O = o.toBytes(this.r), K = o.toBytes(this.s);
36297
36302
  if (F === "recovered") {
@@ -36308,10 +36313,10 @@ function sF(e, t, r = {}) {
36308
36313
  assertValidity() {
36309
36314
  }
36310
36315
  static fromCompact(F) {
36311
- return A.fromBytes(Tt("sig", F), "compact");
36316
+ return A.fromBytes(Ut("sig", F), "compact");
36312
36317
  }
36313
36318
  static fromDER(F) {
36314
- return A.fromBytes(Tt("sig", F), "der");
36319
+ return A.fromBytes(Ut("sig", F), "der");
36315
36320
  }
36316
36321
  normalizeS() {
36317
36322
  return this.hasHighS() ? new A(this.r, o.neg(this.s), this.recovery) : this;
@@ -36346,12 +36351,12 @@ function sF(e, t, r = {}) {
36346
36351
  function V(M, F, O) {
36347
36352
  if (["recovered", "canonical"].some((ie) => ie in O))
36348
36353
  throw new Error("sign() legacy options not supported");
36349
- const { lowS: K, prehash: G, extraEntropy: P } = $i(O, y);
36354
+ const { lowS: K, prehash: G, extraEntropy: P } = el(O, y);
36350
36355
  M = W(M, G);
36351
36356
  const _ = N(M), H = On(o, F), te = [U(H), U(_)];
36352
36357
  if (P != null && P !== !1) {
36353
36358
  const ie = P === !0 ? n(f.secretKey) : P;
36354
- te.push(Tt("extraEntropy", ie));
36359
+ te.push(Ut("extraEntropy", ie));
36355
36360
  }
36356
36361
  const ee = jr(...te), j = _;
36357
36362
  function J(ie) {
@@ -36370,7 +36375,7 @@ function sF(e, t, r = {}) {
36370
36375
  return { seed: ee, k2sig: J };
36371
36376
  }
36372
36377
  function X(M, F, O = {}) {
36373
- M = Tt("message", M);
36378
+ M = Ut("message", M);
36374
36379
  const { seed: K, k2sig: G } = V(M, F, O);
36375
36380
  return OR(t.outputLen, o.BYTES, a)(K, G);
36376
36381
  }
@@ -36383,14 +36388,14 @@ function sF(e, t, r = {}) {
36383
36388
  F = new A(M.r, M.s);
36384
36389
  else if (O) {
36385
36390
  try {
36386
- F = A.fromBytes(Tt("sig", M), "der");
36391
+ F = A.fromBytes(Ut("sig", M), "der");
36387
36392
  } catch (G) {
36388
36393
  if (!(G instanceof Br.Err))
36389
36394
  throw G;
36390
36395
  }
36391
36396
  if (!F)
36392
36397
  try {
36393
- F = A.fromBytes(Tt("sig", M), "compact");
36398
+ F = A.fromBytes(Ut("sig", M), "compact");
36394
36399
  } catch {
36395
36400
  return !1;
36396
36401
  }
@@ -36398,10 +36403,10 @@ function sF(e, t, r = {}) {
36398
36403
  return F || !1;
36399
36404
  }
36400
36405
  function Z(M, F, O, K = {}) {
36401
- const { lowS: G, prehash: P, format: _ } = $i(K, y);
36402
- if (O = Tt("publicKey", O), F = W(Tt("message", F), P), "strict" in K)
36406
+ const { lowS: G, prehash: P, format: _ } = el(K, y);
36407
+ if (O = Ut("publicKey", O), F = W(Ut("message", F), P), "strict" in K)
36403
36408
  throw new Error("options.strict was renamed to lowS");
36404
- const H = _ === void 0 ? Q(M) : A.fromBytes(Tt("sig", M), _);
36409
+ const H = _ === void 0 ? Q(M) : A.fromBytes(Ut("sig", M), _);
36405
36410
  if (H === !1)
36406
36411
  return !1;
36407
36412
  try {
@@ -36415,7 +36420,7 @@ function sF(e, t, r = {}) {
36415
36420
  }
36416
36421
  }
36417
36422
  function T(M, F, O = {}) {
36418
- const { prehash: K } = $i(O, y);
36423
+ const { prehash: K } = el(O, y);
36419
36424
  return F = W(F, K), A.fromBytes(M, "recovered").recoverPublicKey(F).toBytes();
36420
36425
  }
36421
36426
  return Object.freeze({
@@ -36486,7 +36491,7 @@ function dF(e, t) {
36486
36491
  return { ...r(t), create: r };
36487
36492
  }
36488
36493
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
36489
- const ld = {
36494
+ const cd = {
36490
36495
  p: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
36491
36496
  n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),
36492
36497
  h: BigInt(1),
@@ -36502,12 +36507,12 @@ const ld = {
36502
36507
  ]
36503
36508
  }, lp = /* @__PURE__ */ BigInt(2);
36504
36509
  function pF(e) {
36505
- const t = ld.p, r = BigInt(3), n = BigInt(6), a = BigInt(11), s = BigInt(22), o = BigInt(23), i = BigInt(44), l = BigInt(88), u = e * e * e % t, p = u * u * e % t, d = Jt(p, r, t) * p % t, h = Jt(d, r, t) * p % t, f = Jt(h, lp, t) * u % t, y = Jt(f, a, t) * f % t, C = Jt(y, s, t) * y % t, b = Jt(C, i, t) * C % t, E = Jt(b, l, t) * b % t, k = Jt(E, i, t) * C % t, A = Jt(k, r, t) * p % t, v = Jt(A, o, t) * y % t, N = Jt(v, n, t) * u % t, R = Jt(N, lp, t);
36506
- if (!Dl.eql(Dl.sqr(R), e))
36510
+ const t = cd.p, r = BigInt(3), n = BigInt(6), a = BigInt(11), s = BigInt(22), o = BigInt(23), i = BigInt(44), l = BigInt(88), u = e * e * e % t, p = u * u * e % t, d = Jt(p, r, t) * p % t, h = Jt(d, r, t) * p % t, f = Jt(h, lp, t) * u % t, y = Jt(f, a, t) * f % t, C = Jt(y, s, t) * y % t, b = Jt(C, i, t) * C % t, E = Jt(b, l, t) * b % t, k = Jt(E, i, t) * C % t, A = Jt(k, r, t) * p % t, v = Jt(A, o, t) * y % t, N = Jt(v, n, t) * u % t, R = Jt(N, lp, t);
36511
+ if (!Gl.eql(Gl.sqr(R), e))
36507
36512
  throw new Error("Cannot find square root");
36508
36513
  return R;
36509
36514
  }
36510
- const Dl = ms(ld.p, { sqrt: pF }), Gl = dF({ ...ld, Fp: Dl, lowS: !0, endo: uF }, Hp);
36515
+ const Gl = ms(cd.p, { sqrt: pF }), Zl = dF({ ...cd, Fp: Gl, lowS: !0, endo: uF }, Hp);
36511
36516
  /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
36512
36517
  function mF(e) {
36513
36518
  return e instanceof Uint8Array || e != null && typeof e == "object" && e.constructor.name === "Uint8Array";
@@ -36642,7 +36647,7 @@ function bF(e, t = !1) {
36642
36647
  };
36643
36648
  }
36644
36649
  const nr = /* @__PURE__ */ hF(/* @__PURE__ */ bF(6), /* @__PURE__ */ fF("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ wF(6), /* @__PURE__ */ gF(""));
36645
- var el = {}, Fa = {}, dp;
36650
+ var tl = {}, Fa = {}, dp;
36646
36651
  function yF() {
36647
36652
  if (dp) return Fa;
36648
36653
  dp = 1, Fa.byteLength = i, Fa.toByteArray = u, Fa.fromByteArray = h;
@@ -37662,9 +37667,9 @@ function xF() {
37662
37667
  function ae() {
37663
37668
  throw new Error("BigInt not supported");
37664
37669
  }
37665
- })(el)), el;
37670
+ })(tl)), tl;
37666
37671
  }
37667
- var EF = xF(), bt = Uint8Array, qt = Uint16Array, cd = Int32Array, pi = new bt([
37672
+ var EF = xF(), bt = Uint8Array, qt = Uint16Array, dd = Int32Array, pi = new bt([
37668
37673
  0,
37669
37674
  0,
37670
37675
  0,
@@ -37733,19 +37738,19 @@ var EF = xF(), bt = Uint8Array, qt = Uint16Array, cd = Int32Array, pi = new bt([
37733
37738
  /* unused */
37734
37739
  0,
37735
37740
  0
37736
- ]), Zl = new bt([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), n0 = function(e, t) {
37741
+ ]), Ql = new bt([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), n0 = function(e, t) {
37737
37742
  for (var r = new qt(31), n = 0; n < 31; ++n)
37738
37743
  r[n] = t += 1 << e[n - 1];
37739
- for (var a = new cd(r[30]), n = 1; n < 30; ++n)
37744
+ for (var a = new dd(r[30]), n = 1; n < 30; ++n)
37740
37745
  for (var s = r[n]; s < r[n + 1]; ++s)
37741
37746
  a[s] = s - r[n] << 5 | n;
37742
37747
  return { b: r, r: a };
37743
- }, a0 = n0(pi, 2), s0 = a0.b, Ql = a0.r;
37744
- s0[28] = 258, Ql[258] = 28;
37745
- var o0 = n0(mi, 0), vF = o0.b, mp = o0.r, Jl = new qt(32768);
37748
+ }, a0 = n0(pi, 2), s0 = a0.b, Jl = a0.r;
37749
+ s0[28] = 258, Jl[258] = 28;
37750
+ var o0 = n0(mi, 0), vF = o0.b, mp = o0.r, Pl = new qt(32768);
37746
37751
  for (var He = 0; He < 32768; ++He) {
37747
37752
  var Yr = (He & 43690) >> 1 | (He & 21845) << 1;
37748
- Yr = (Yr & 52428) >> 2 | (Yr & 13107) << 2, Yr = (Yr & 61680) >> 4 | (Yr & 3855) << 4, Jl[He] = ((Yr & 65280) >> 8 | (Yr & 255) << 8) >> 1;
37753
+ Yr = (Yr & 52428) >> 2 | (Yr & 13107) << 2, Yr = (Yr & 61680) >> 4 | (Yr & 3855) << 4, Pl[He] = ((Yr & 65280) >> 8 | (Yr & 255) << 8) >> 1;
37749
37754
  }
37750
37755
  var yr = (function(e, t, r) {
37751
37756
  for (var n = e.length, a = 0, s = new qt(t); a < n; ++a)
@@ -37760,10 +37765,10 @@ var yr = (function(e, t, r) {
37760
37765
  for (a = 0; a < n; ++a)
37761
37766
  if (e[a])
37762
37767
  for (var u = a << 4 | e[a], p = t - e[a], d = o[e[a] - 1]++ << p, h = d | (1 << p) - 1; d <= h; ++d)
37763
- i[Jl[d] >> l] = u;
37768
+ i[Pl[d] >> l] = u;
37764
37769
  } else
37765
37770
  for (i = new qt(n), a = 0; a < n; ++a)
37766
- e[a] && (i[a] = Jl[o[e[a] - 1]++] >> 15 - e[a]);
37771
+ e[a] && (i[a] = Pl[o[e[a] - 1]++] >> 15 - e[a]);
37767
37772
  return i;
37768
37773
  }), nn = new bt(288);
37769
37774
  for (var He = 0; He < 144; ++He)
@@ -37777,17 +37782,17 @@ for (var He = 280; He < 288; ++He)
37777
37782
  var es = new bt(32);
37778
37783
  for (var He = 0; He < 32; ++He)
37779
37784
  es[He] = 5;
37780
- var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /* @__PURE__ */ yr(es, 5, 0), TF = /* @__PURE__ */ yr(es, 5, 1), tl = function(e) {
37785
+ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /* @__PURE__ */ yr(es, 5, 0), TF = /* @__PURE__ */ yr(es, 5, 1), rl = function(e) {
37781
37786
  for (var t = e[0], r = 1; r < e.length; ++r)
37782
37787
  e[r] > t && (t = e[r]);
37783
37788
  return t;
37784
37789
  }, jt = function(e, t, r) {
37785
37790
  var n = t / 8 | 0;
37786
37791
  return (e[n] | e[n + 1] << 8) >> (t & 7) & r;
37787
- }, rl = function(e, t) {
37792
+ }, nl = function(e, t) {
37788
37793
  var r = t / 8 | 0;
37789
37794
  return (e[r] | e[r + 1] << 8 | e[r + 2] << 16) >> (t & 7);
37790
- }, dd = function(e) {
37795
+ }, ud = function(e) {
37791
37796
  return (e + 7) / 8 | 0;
37792
37797
  }, i0 = function(e, t, r) {
37793
37798
  return (r == null || r > e.length) && (r = e.length), new bt(e.subarray(t, r));
@@ -37836,9 +37841,9 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37836
37841
  var R = jt(e, d, 31) + 257, U = jt(e, d + 10, 15) + 4, W = R + jt(e, d + 5, 31) + 1;
37837
37842
  d += 14;
37838
37843
  for (var V = new bt(W), X = new bt(19), Q = 0; Q < U; ++Q)
37839
- X[Zl[Q]] = jt(e, d + Q * 3, 7);
37844
+ X[Ql[Q]] = jt(e, d + Q * 3, 7);
37840
37845
  d += U * 3;
37841
- for (var Z = tl(X), T = (1 << Z) - 1, M = yr(X, Z, 1), Q = 0; Q < W; ) {
37846
+ for (var Z = rl(X), T = (1 << Z) - 1, M = yr(X, Z, 1), Q = 0; Q < W; ) {
37842
37847
  var F = M[jt(e, d, T)];
37843
37848
  d += F & 15;
37844
37849
  var A = F >> 4;
@@ -37851,11 +37856,11 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37851
37856
  }
37852
37857
  }
37853
37858
  var G = V.subarray(0, R), P = V.subarray(R);
37854
- C = tl(G), b = tl(P), f = yr(G, C, 1), y = yr(P, b, 1);
37859
+ C = rl(G), b = rl(P), f = yr(G, C, 1), y = yr(P, b, 1);
37855
37860
  } else
37856
37861
  $t(1);
37857
37862
  else {
37858
- var A = dd(d) + 4, v = e[A - 4] | e[A - 3] << 8, N = A + v;
37863
+ var A = ud(d) + 4, v = e[A - 4] | e[A - 3] << 8, N = A + v;
37859
37864
  if (N > a) {
37860
37865
  l && $t(0);
37861
37866
  break;
@@ -37870,7 +37875,7 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37870
37875
  }
37871
37876
  i && u(h + 131072);
37872
37877
  for (var _ = (1 << C) - 1, H = (1 << b) - 1, te = d; ; te = d) {
37873
- var O = f[rl(e, d) & _], ee = O >> 4;
37878
+ var O = f[nl(e, d) & _], ee = O >> 4;
37874
37879
  if (d += O & 15, d > E) {
37875
37880
  l && $t(0);
37876
37881
  break;
@@ -37886,12 +37891,12 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37886
37891
  var Q = ee - 257, J = pi[Q];
37887
37892
  j = jt(e, d, (1 << J) - 1) + s0[Q], d += J;
37888
37893
  }
37889
- var ie = y[rl(e, d) & H], ce = ie >> 4;
37894
+ var ie = y[nl(e, d) & H], ce = ie >> 4;
37890
37895
  ie || $t(3), d += ie & 15;
37891
37896
  var P = vF[ce];
37892
37897
  if (ce > 3) {
37893
37898
  var J = mi[ce];
37894
- P += rl(e, d) & (1 << J) - 1, d += J;
37899
+ P += nl(e, d) & (1 << J) - 1, d += J;
37895
37900
  }
37896
37901
  if (d > E) {
37897
37902
  l && $t(0);
@@ -37919,7 +37924,7 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37919
37924
  r <<= t & 7;
37920
37925
  var n = t / 8 | 0;
37921
37926
  e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
37922
- }, nl = function(e, t) {
37927
+ }, al = function(e, t) {
37923
37928
  for (var r = [], n = 0; n < e.length; ++n)
37924
37929
  e[n] && r.push({ s: n, f: e[n] });
37925
37930
  var a = r.length, s = r.slice();
@@ -37937,7 +37942,7 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37937
37942
  i = r[r[u].f < r[d].f ? u++ : d++], l = r[u != p && r[u].f < r[d].f ? u++ : d++], r[p++] = { s: -1, f: i.f + l.f, l: i, r: l };
37938
37943
  for (var h = s[0].s, n = 1; n < a; ++n)
37939
37944
  s[n].s > h && (h = s[n].s);
37940
- var f = new qt(h + 1), y = Pl(r[p - 1], f, 0);
37945
+ var f = new qt(h + 1), y = Yl(r[p - 1], f, 0);
37941
37946
  if (y > t) {
37942
37947
  var n = 0, C = 0, b = y - t, E = 1 << b;
37943
37948
  for (s.sort(function(R, U) {
@@ -37960,8 +37965,8 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37960
37965
  y = t;
37961
37966
  }
37962
37967
  return { t: new bt(f), l: y };
37963
- }, Pl = function(e, t, r) {
37964
- return e.s == -1 ? Math.max(Pl(e.l, t, r + 1), Pl(e.r, t, r + 1)) : t[e.s] = r;
37968
+ }, Yl = function(e, t, r) {
37969
+ return e.s == -1 ? Math.max(Yl(e.l, t, r + 1), Yl(e.r, t, r + 1)) : t[e.s] = r;
37965
37970
  }, hp = function(e) {
37966
37971
  for (var t = e.length; t && !e[--t]; )
37967
37972
  ;
@@ -37990,18 +37995,18 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
37990
37995
  r += e[n] * t[n];
37991
37996
  return r;
37992
37997
  }, l0 = function(e, t, r) {
37993
- var n = r.length, a = dd(t + 2);
37998
+ var n = r.length, a = ud(t + 2);
37994
37999
  e[a] = n & 255, e[a + 1] = n >> 8, e[a + 2] = e[a] ^ 255, e[a + 3] = e[a + 1] ^ 255;
37995
38000
  for (var s = 0; s < n; ++s)
37996
38001
  e[a + s + 4] = r[s];
37997
38002
  return (a + 4 + n) * 8;
37998
38003
  }, fp = function(e, t, r, n, a, s, o, i, l, u, p) {
37999
38004
  Ur(t, p++, r), ++a[256];
38000
- for (var d = nl(a, 15), h = d.t, f = d.l, y = nl(s, 15), C = y.t, b = y.l, E = hp(h), k = E.c, A = E.n, v = hp(C), N = v.c, R = v.n, U = new qt(19), W = 0; W < k.length; ++W)
38005
+ for (var d = al(a, 15), h = d.t, f = d.l, y = al(s, 15), C = y.t, b = y.l, E = hp(h), k = E.c, A = E.n, v = hp(C), N = v.c, R = v.n, U = new qt(19), W = 0; W < k.length; ++W)
38001
38006
  ++U[k[W] & 31];
38002
38007
  for (var W = 0; W < N.length; ++W)
38003
38008
  ++U[N[W] & 31];
38004
- for (var V = nl(U, 7), X = V.t, Q = V.l, Z = 19; Z > 4 && !X[Zl[Z - 1]]; --Z)
38009
+ for (var V = al(U, 7), X = V.t, Q = V.l, Z = 19; Z > 4 && !X[Ql[Z - 1]]; --Z)
38005
38010
  ;
38006
38011
  var T = u + 5 << 3, M = Va(a, nn) + Va(s, es) + o, F = Va(a, h) + Va(s, C) + o + 14 + 3 * Z + Va(U, X) + 2 * U[16] + 3 * U[17] + 7 * U[18];
38007
38012
  if (l >= 0 && T <= M && T <= F)
@@ -38012,7 +38017,7 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
38012
38017
  var _ = yr(X, Q, 0);
38013
38018
  Ur(t, p, A - 257), Ur(t, p + 5, R - 1), Ur(t, p + 10, Z - 4), p += 14;
38014
38019
  for (var W = 0; W < Z; ++W)
38015
- Ur(t, p + 3 * W, X[Zl[W]]);
38020
+ Ur(t, p + 3 * W, X[Ql[W]]);
38016
38021
  p += 3 * Z;
38017
38022
  for (var H = [k, N], te = 0; te < 2; ++te)
38018
38023
  for (var ee = H[te], W = 0; W < ee.length; ++W) {
@@ -38032,13 +38037,13 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
38032
38037
  Ma(t, p, O[J]), p += K[J];
38033
38038
  }
38034
38039
  return Ma(t, p, O[256]), p + K[256];
38035
- }, NF = /* @__PURE__ */ new cd([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), c0 = /* @__PURE__ */ new bt(0), BF = function(e, t, r, n, a, s) {
38040
+ }, NF = /* @__PURE__ */ new dd([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), c0 = /* @__PURE__ */ new bt(0), BF = function(e, t, r, n, a, s) {
38036
38041
  var o = s.z || e.length, i = new bt(n + o + 5 * (1 + Math.ceil(o / 7e3)) + a), l = i.subarray(n, i.length - a), u = s.l, p = (s.r || 0) & 7;
38037
38042
  if (t) {
38038
38043
  p && (l[0] = s.r >> 3);
38039
38044
  for (var d = NF[t - 1], h = d >> 13, f = d & 8191, y = (1 << r) - 1, C = s.p || new qt(32768), b = s.h || new qt(y + 1), E = Math.ceil(r / 3), k = 2 * E, A = function(de) {
38040
38045
  return (e[de] ^ e[de + 1] << E ^ e[de + 2] << k) & y;
38041
- }, v = new cd(25e3), N = new qt(288), R = new qt(32), U = 0, W = 0, V = s.i || 0, X = 0, Q = s.w || 0, Z = 0; V + 2 < o; ++V) {
38046
+ }, v = new dd(25e3), N = new qt(288), R = new qt(32), U = 0, W = 0, V = s.i || 0, X = 0, Q = s.w || 0, Z = 0; V + 2 < o; ++V) {
38042
38047
  var T = A(V), M = V & 32767, F = b[T];
38043
38048
  if (C[M] = F, b[T] = M, Q <= V) {
38044
38049
  var O = o - V;
@@ -38067,8 +38072,8 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
38067
38072
  M = F, F = C[M], H += M - F & 32767;
38068
38073
  }
38069
38074
  if (P) {
38070
- v[X++] = 268435456 | Ql[G] << 18 | mp[P];
38071
- var Ne = Ql[G] & 31, Ve = mp[P] & 31;
38075
+ v[X++] = 268435456 | Jl[G] << 18 | mp[P];
38076
+ var Ne = Jl[G] & 31, Ve = mp[P] & 31;
38072
38077
  W += pi[Ne] + mi[Ve], ++N[257 + Ne], ++R[Ve], Q = V + G, ++U;
38073
38078
  } else
38074
38079
  v[X++] = e[V], ++N[e[V]];
@@ -38084,7 +38089,7 @@ var kF = /* @__PURE__ */ yr(nn, 9, 0), AF = /* @__PURE__ */ yr(nn, 9, 1), SF = /
38084
38089
  }
38085
38090
  s.i = o;
38086
38091
  }
38087
- return i0(i, 0, n + dd(p) + a);
38092
+ return i0(i, 0, n + ud(p) + a);
38088
38093
  }, d0 = function() {
38089
38094
  var e = 1, t = 0;
38090
38095
  return {
@@ -38134,11 +38139,11 @@ try {
38134
38139
  } catch {
38135
38140
  }
38136
38141
  function qF() {
38137
- let e = Gl.utils.randomPrivateKey(), t = Gl.getPublicKey(e);
38142
+ let e = Zl.utils.randomPrivateKey(), t = Zl.getPublicKey(e);
38138
38143
  return { privateKey: nr.encode(e), publicKey: nr.encode(t) };
38139
38144
  }
38140
38145
  function KF({ privateKey: e, publicKey: t }) {
38141
- let r = Gl.getSharedSecret(nr.decode(e), nr.decode(t)).slice(1);
38146
+ let r = Zl.getSharedSecret(nr.decode(e), nr.decode(t)).slice(1);
38142
38147
  return nr.encode(r);
38143
38148
  }
38144
38149
  async function zF(e, t) {
@@ -38350,11 +38355,11 @@ function m0(e, t) {
38350
38355
  n && (l.removeListener("chainChanged", n), n = void 0), s && (l.removeListener("disconnect", s), s = void 0), a || (a = this.onConnect.bind(this), l.on("connect", a)), await l.request({ method: "wallet_revokePermissions", params: [{ eth_accounts: {} }] }), this.onDisconnect();
38351
38356
  }, async getAccounts() {
38352
38357
  let l = await this.getProvider();
38353
- if (!l) throw new Pi();
38354
- return (await l.request({ method: "eth_accounts" })).map(((u) => pd(u)));
38358
+ if (!l) throw new Yi();
38359
+ return (await l.request({ method: "eth_accounts" })).map(((u) => md(u)));
38355
38360
  }, async getChainId() {
38356
38361
  let l = await this.getProvider();
38357
- if (!l) throw new Pi();
38362
+ if (!l) throw new Yi();
38358
38363
  return Number(await l.request({ method: "eth_chainId" }));
38359
38364
  }, getProvider: async () => (o || (o = HF({ chains: i.chains, transports: i.transports, providerAppId: e.id, apiUrl: e.apiUrl, smartWalletMode: e.smartWalletMode })), o), async isAuthorized() {
38360
38365
  try {
@@ -38364,7 +38369,7 @@ function m0(e, t) {
38364
38369
  }
38365
38370
  }, async switchChain({ chainId: l }) {
38366
38371
  let u = await this.getProvider();
38367
- if (!u) throw new Pi();
38372
+ if (!u) throw new Yi();
38368
38373
  let p = i.chains.find(((d) => d.id === l));
38369
38374
  if (!p) throw new U0(new MR());
38370
38375
  return l === Number(await u.request({ method: "eth_chainId" })) || (await u.request({ method: "wallet_switchEthereumChain", params: [{ chainId: `0x${l.toString(16)}` }] }), i.emitter.emit("change", { chainId: l })), p;
@@ -38372,7 +38377,7 @@ function m0(e, t) {
38372
38377
  if (l.length !== 0) if (i.emitter.listenerCount("connect")) {
38373
38378
  let u = (await this.getChainId()).toString();
38374
38379
  this.onConnect?.({ chainId: u });
38375
- } else i.emitter.emit("change", { accounts: l.map(((u) => pd(u))) });
38380
+ } else i.emitter.emit("change", { accounts: l.map(((u) => md(u))) });
38376
38381
  else this.onDisconnect();
38377
38382
  }, onChainChanged(l) {
38378
38383
  let u = Number(l);
@@ -38661,7 +38666,7 @@ const eM = new Tp(), PM = ({
38661
38666
  transports: i.reduce(
38662
38667
  (p, d) => {
38663
38668
  const h = d.rpcUrls?.default?.webSocket?.[0], f = d.rpcUrls?.default?.http?.[0], y = [h && R0(h), f && Et(f)].filter((C) => !!C);
38664
- return p[d.id] = y.length ? sl(y) : Et(), p;
38669
+ return p[d.id] = y.length ? ol(y) : Et(), p;
38665
38670
  },
38666
38671
  {}
38667
38672
  ),
@@ -38707,7 +38712,7 @@ export {
38707
38712
  GM as N,
38708
38713
  Fr as S,
38709
38714
  Rx as W,
38710
- Hl as a,
38715
+ jl as a,
38711
38716
  pM as b,
38712
38717
  os as c,
38713
38718
  Rf as d,