@orbs-network/spot-react 1.1.12 → 1.1.13

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.
@@ -3,8 +3,8 @@ var Ju = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var Mh = (e, t, n) => t in e ? Oh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var $a = (e, t, n) => Mh(e, typeof t != "symbol" ? t + "" : t, n), Mi = (e, t, n) => t.has(e) || Ju("Cannot " + n);
7
- var I = (e, t, n) => (Mi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Z = (e, t, n) => t.has(e) ? Ju("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), V = (e, t, n, r) => (Mi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), ne = (e, t, n) => (Mi(e, t, "access private method"), n);
6
+ var $a = (e, t, n) => Mh(e, typeof t != "symbol" ? t + "" : t, n), Oi = (e, t, n) => t.has(e) || Ju("Cannot " + n);
7
+ var I = (e, t, n) => (Oi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Z = (e, t, n) => t.has(e) ? Ju("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), V = (e, t, n, r) => (Oi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), ne = (e, t, n) => (Oi(e, t, "access private method"), n);
8
8
  var Ha = (e, t, n, r) => ({
9
9
  set _(s) {
10
10
  V(e, t, s, n);
@@ -15,7 +15,7 @@ var Ha = (e, t, n, r) => ({
15
15
  });
16
16
  import { jsx as Bt, jsxs as Rh, Fragment as Nh } from "react/jsx-runtime";
17
17
  import * as Re from "react";
18
- import Ga, { useMemo as W, useCallback as Te, createContext as kl, useContext as Gp, Component as _h, createElement as Yu, useEffect as Gn } from "react";
18
+ import Ga, { useMemo as W, useCallback as Te, createContext as El, useContext as Gp, Component as _h, createElement as Yu, useEffect as Gn } from "react";
19
19
  const zh = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0", lensAddress: "0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwap", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496", exchangeType: "ExchangeV2", pathfinderKey: "" }, Lh = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwapSonic", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3", exchangeType: "ExchangeV2", pathfinderKey: "" }, $h = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "QuickSwap,QuickSwapV3" }, Hh = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0xb7a3d74895bfd3aff6780525e36d79fcf26a895f", exchangeType: "ExchangeV2", pathfinderKey: "" }, Gh = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Thena", partner: "Orbs:TWAP:Thena", exchangeAddress: "0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1", exchangeType: "ExchangeV2", pathfinderKey: "43,47" }, jh = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0x1A2bb6B75D58b740d88413ef4840D6fa3F637940", exchangeType: "P2Exchange", pathfinderKey: "" }, Vh = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, qh = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, Kh = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, Wh = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "Lynex", partner: "Orbs:TWAP:Lynex", exchangeAddress: "0x04C06C96d7D19977156016DD408B5992af0570a2", exchangeType: "ExchangeV2", pathfinderKey: "19,18" }, Xh = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiArb", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Zh = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiBase", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Qh = { chainName: "eth", chainId: 1, twapVersion: 4, twapAddress: "0xb1ed8BCAD1EaC8a1DF0764700472391800D12946", lensAddress: "0x0967f448c4d4dbd14c355E635AE9CbF68cc44A60", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 200, name: "SushiEth", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Jh = { chainName: "katana", chainId: 747474, twapVersion: 4, twapAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", lensAddress: "0x1579EED0527781B1A748043AA1f59a3858Ace4a7", takers: ["0xF74437A3Fc45a518640828E5D6A3E8c9A9BbDC3a", "0x07A6C715063e94c0D95e809efefFCbF4EBEdfD55"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiKatana", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x92209481507e6B2d14C9b5b70Ed287024177220E", exchangeType: "ExchangeV2", pathfinderKey: "" }, Yh = { chainId: 1329, name: "DragonSwap" }, e1 = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SwapX", partner: "Orbs:TWAP:SwapX", exchangeAddress: "0xDA902994b7F7a1ecDd8De02E4a17dbFF2E6F67b7", exchangeType: "ExchangeV2", pathfinderKey: "" }, t1 = { chainName: "avax", chainId: 43114, twapVersion: 4, twapAddress: "0xf77Ad005aBF7e31f669ce89a6568B2f39Ca92cDe", lensAddress: "0x48466B82Ce1575c5c9eCa168ac1090048dD47fA3", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BlackholeAvax", partner: "Orbs:TWAP:BlackholeAvax", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2" }, ae = {
20
20
  SpookySwap: zh,
21
21
  SpookySwapSonic: Lh,
@@ -1184,14 +1184,14 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1184
1184
  explorer: "https://mantlescan.xyz",
1185
1185
  eip1559: !0
1186
1186
  }
1187
- }, u1 = "2.3.3", Cl = {
1187
+ }, u1 = "2.3.3", kl = {
1188
1188
  version: u1
1189
- }, d1 = "https://order-sink-dev.orbs.network", p1 = "https://order-sink.orbs.network", f1 = "https://order-sink-v2.orbs.network", vl = Cl.version.split(".")[0], jp = (e) => {
1190
- const t = Number(vl) >= 2;
1189
+ }, d1 = "https://order-sink-dev.orbs.network", p1 = "https://order-sink.orbs.network", f1 = "https://order-sink-v2.orbs.network", Cl = kl.version.split(".")[0], jp = (e) => {
1190
+ const t = Number(Cl) >= 2;
1191
1191
  return e ? d1 : t ? f1 : p1;
1192
- }, gc = 300 * 1e3, No = 365 * 24 * 60 * 60 * 1e3, ed = 300 * 1e3, m1 = new Date(
1193
- gc
1194
- ).getMinutes(), Ri = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, kt = "https://hub.orbs.network/api/apikey/subgraphs/id", h1 = {
1192
+ }, xc = 300 * 1e3, No = 365 * 24 * 60 * 60 * 1e3, ed = 300 * 1e3, m1 = new Date(
1193
+ xc
1194
+ ).getMinutes(), Mi = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, kt = "https://hub.orbs.network/api/apikey/subgraphs/id", h1 = {
1195
1195
  [He.eth.id]: `${kt}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1196
1196
  [He.bsc.id]: `${kt}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1197
1197
  [He.poly.id]: `${kt}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
@@ -1203,9 +1203,9 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1203
1203
  [He.ftm.id]: `${kt}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,
1204
1204
  [He.katana.id]: `${kt}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
1205
1205
  [He.avax.id]: `${kt}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
1206
- [He.bera.id]: Ri("berachain"),
1207
- [He.flare.id]: Ri("flare"),
1208
- [He.cronosZkEvm.id]: Ri("cronos-zkevm")
1206
+ [He.bera.id]: Mi("berachain"),
1207
+ [He.flare.id]: Mi("flare"),
1208
+ [He.cronosZkEvm.id]: Mi("cronos-zkevm")
1209
1209
  }, b1 = "0x0000000000000000000000000000000000000000", y1 = [
1210
1210
  b1,
1211
1211
  "0x0000000000000000000000000000000000001010",
@@ -1213,7 +1213,7 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1213
1213
  "0x000000000000000000000000000000000000dEaD",
1214
1214
  "0x000000000000000000000000000000000000800A",
1215
1215
  "0x000000000000000000000000000000000000800a"
1216
- ], Al = "115792089237316195423570985008687907853269984665640564039457584007913129639935", Ge = (e) => `${e.name}_${e.chainId}`, x1 = {
1216
+ ], vl = "115792089237316195423570985008687907853269984665640564039457584007913129639935", Ge = (e) => `${e.name}_${e.chainId}`, x1 = {
1217
1217
  [Ge(ae.SushiArb)]: [
1218
1218
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
1219
1219
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
@@ -1262,7 +1262,7 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1262
1262
  [Ge(ae.SwapX)]: [
1263
1263
  "0xE5012eBDe5e26EE3Ea41992154731a03023CF274"
1264
1264
  ]
1265
- }, wc = {
1265
+ }, gc = {
1266
1266
  unit: St.Minutes,
1267
1267
  value: m1
1268
1268
  }, Vp = "RePermitWitnessTransferFrom", g1 = {
@@ -1523,7 +1523,7 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1523
1523
  }, E1 = "https://www.orbs.com/dtwap-and-dlimit-faq/", VF = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", qF = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", KF = "https://www.orbs.com/", WF = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1524
1524
  var ga = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e.DURATION = "duration", e.IGNORE_ERRORS = "ignore-errors", e))(ga || {});
1525
1525
  const k1 = "-5", C1 = "10", v1 = "-10", A1 = "5";
1526
- var T1 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ni = Math.ceil, mt = Math.floor, Xe = "[BigNumber Error] ", td = Xe + "Number primitive has more than 15 significant digits: ", Ct = 1e14, ee = 14, _i = 9007199254740991, zi = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], gn = 1e7, Fe = 1e9;
1526
+ var T1 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ri = Math.ceil, mt = Math.floor, Xe = "[BigNumber Error] ", td = Xe + "Number primitive has more than 15 significant digits: ", Ct = 1e14, ee = 14, Ni = 9007199254740991, _i = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], gn = 1e7, Fe = 1e9;
1527
1527
  function qp(e) {
1528
1528
  var t, n, r, s = k.prototype = { constructor: k, toString: null, valueOf: null }, a = new k(1), o = 20, i = 4, c = -7, l = 21, d = -1e7, p = 1e7, f = !1, m = 1, y = 0, x = {
1529
1529
  prefix: "",
@@ -1583,7 +1583,7 @@ function qp(e) {
1583
1583
  for (D = 0; F.charCodeAt(D) === 48; D++) ;
1584
1584
  for (A = F.length; F.charCodeAt(--A) === 48; ) ;
1585
1585
  if (F = F.slice(D, ++A)) {
1586
- if (A -= D, w && k.DEBUG && A > 15 && (h > _i || h !== mt(h)))
1586
+ if (A -= D, w && k.DEBUG && A > 15 && (h > Ni || h !== mt(h)))
1587
1587
  throw Error(td + P.s * h);
1588
1588
  if ((T = T - D - 1) > p)
1589
1589
  P.c = P.e = null;
@@ -1676,7 +1676,7 @@ function qp(e) {
1676
1676
  };
1677
1677
  return function(g) {
1678
1678
  var v, E, T, D, w, A = 0, F = [], P = new k(a);
1679
- if (g == null ? g = o : ye(g, 0, Fe), D = Ni(g / ee), f)
1679
+ if (g == null ? g = o : ye(g, 0, Fe), D = Ri(g / ee), f)
1680
1680
  if (crypto.getRandomValues) {
1681
1681
  for (v = crypto.getRandomValues(new Uint32Array(D *= 2)); A < D; )
1682
1682
  w = v[A] * 131072 + (v[A + 1] >>> 11), w >= 9e15 ? (E = crypto.getRandomValues(new Uint32Array(2)), v[A] = E[0], v[A + 1] = E[1]) : (F.push(w % 1e14), A += 2);
@@ -1690,7 +1690,7 @@ function qp(e) {
1690
1690
  if (!f)
1691
1691
  for (; A < D; )
1692
1692
  w = b(), w < 9e15 && (F[A++] = w % 1e14);
1693
- for (D = F[--A], g %= ee, D && g && (w = zi[ee - g], F[A] = mt(D / w) * w); F[A] === 0; F.pop(), A--) ;
1693
+ for (D = F[--A], g %= ee, D && g && (w = _i[ee - g], F[A] = mt(D / w) * w); F[A] === 0; F.pop(), A--) ;
1694
1694
  if (A < 0)
1695
1695
  F = [T = 0];
1696
1696
  else {
@@ -1840,13 +1840,13 @@ function qp(e) {
1840
1840
  };
1841
1841
  })();
1842
1842
  function N(h, b, g, v) {
1843
- var E, T, D, w, A, F, P, M = h.c, L = zi;
1843
+ var E, T, D, w, A, F, P, M = h.c, L = _i;
1844
1844
  if (M) {
1845
1845
  e: {
1846
1846
  for (E = 1, w = M[0]; w >= 10; w /= 10, E++) ;
1847
1847
  if (T = b - E, T < 0)
1848
1848
  T += ee, D = b, A = M[F = 0], P = mt(A / L[E - D - 1] % 10);
1849
- else if (F = Ni((T + 1) / ee), F >= M.length)
1849
+ else if (F = Ri((T + 1) / ee), F >= M.length)
1850
1850
  if (v) {
1851
1851
  for (; M.length <= F; M.push(0)) ;
1852
1852
  A = P = 0, E = 1, T %= ee, D = T - ee + 1;
@@ -1911,7 +1911,7 @@ function qp(e) {
1911
1911
  } else {
1912
1912
  if (h.e > 9 && (M.e > 0 || M.e < -1 || (M.e == 0 ? M.c[0] > 1 || w && M.c[1] >= 24e7 : M.c[0] < 8e13 || w && M.c[0] <= 9999975e7)))
1913
1913
  return T = M.s < 0 && ja(h) ? -0 : 0, M.e > -1 && (T = 1 / T), new k(A ? 1 / T : T);
1914
- y && (T = Ni(y / ee + 2));
1914
+ y && (T = Ri(y / ee + 2));
1915
1915
  }
1916
1916
  for (w ? (g = new k(0.5), A && (h.s = 1), F = ja(h)) : (E = Math.abs(+R(h)), F = E % 2), P = new k(a); ; ) {
1917
1917
  if (F) {
@@ -2033,7 +2033,7 @@ function qp(e) {
2033
2033
  }
2034
2034
  return h && T.e + 1 > v && (v = T.e + 1), v;
2035
2035
  }, s.shiftedBy = function(h) {
2036
- return ye(h, -_i, _i), this.times("1e" + h);
2036
+ return ye(h, -Ni, Ni), this.times("1e" + h);
2037
2037
  }, s.squareRoot = s.sqrt = function() {
2038
2038
  var h, b, g, v, E, T = this, D = T.c, w = T.s, A = T.e, F = o + 4, P = new k("0.5");
2039
2039
  if (w !== 1 || !D || !D[0])
@@ -2080,7 +2080,7 @@ function qp(e) {
2080
2080
  if (h != null && (w = new k(h), !w.isInteger() && (w.c || w.s !== 1) || w.lt(a)))
2081
2081
  throw Error(Xe + "Argument " + (w.isInteger() ? "out of range: " : "not an integer: ") + R(w));
2082
2082
  if (!X) return new k(G);
2083
- for (b = new k(a), F = g = new k(a), v = A = new k(a), L = pt(X), T = b.e = L.length - G.e - 1, b.c[0] = zi[(D = T % ee) < 0 ? ee + D : D], h = !h || w.comparedTo(b) > 0 ? T > 0 ? b : F : w, D = p, p = 1 / 0, w = new k(L), A.c[0] = 0; P = t(w, b, 0, 1), E = g.plus(P.times(v)), E.comparedTo(h) != 1; )
2083
+ for (b = new k(a), F = g = new k(a), v = A = new k(a), L = pt(X), T = b.e = L.length - G.e - 1, b.c[0] = _i[(D = T % ee) < 0 ? ee + D : D], h = !h || w.comparedTo(b) > 0 ? T > 0 ? b : F : w, D = p, p = 1 / 0, w = new k(L), A.c[0] = 0; P = t(w, b, 0, 1), E = g.plus(P.times(v)), E.comparedTo(h) != 1; )
2084
2084
  g = v, v = E, F = A.plus(P.times(E = F)), A = E, b = w.minus(P.times(E = b)), w = E;
2085
2085
  return E = t(h.minus(g), v, 0, 1), A = A.plus(E.times(F)), g = g.plus(E.times(v)), A.s = F.s = G.s, T = T * 2, M = t(F, v, T, i).minus(G).abs().comparedTo(
2086
2086
  t(A, g, T, i).minus(G).abs()
@@ -2162,9 +2162,9 @@ const P1 = {
2162
2162
  747474: { dex: { sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2163
2163
  "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x000ECFa392ecDEfEE6e2a5C095d39B7A32f1E000", reactor: "0x000000b33fE4fB9d999Dd684F79b110731c3d000", executor: "0x000642A0966d9bd49870D9519f76b5cf823f3000", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x1117fe6f4e25c9380d10b2b3314a1e9b33e5f65ba0e55e0c63d0640db0dd60a2", reactor: "0xec73677f3a465a9755d4c9eab9509b59a24613fdb8b78719682930373e9876f5", executor: "0x9abc67d936f79e493f1f14050c2f6adb87ec208ff7aaae2e7ae788a7cb4796d7", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
2164
2164
  };
2165
- var Li, nd;
2165
+ var zi, nd;
2166
2166
  function B1() {
2167
- if (nd) return Li;
2167
+ if (nd) return zi;
2168
2168
  nd = 1;
2169
2169
  const e = P1, t = (s) => S1(`./out/${s}.sol/${s}.json`).abi, n = () => ({
2170
2170
  wm: t("WM"),
@@ -2186,7 +2186,7 @@ function B1() {
2186
2186
  if (p)
2187
2187
  return { ...i, ...d, ...p };
2188
2188
  }
2189
- return Li = { config: r, abis: n, raw: e }, Li;
2189
+ return zi = { config: r, abis: n, raw: e }, zi;
2190
2190
  }
2191
2191
  var Kp = B1();
2192
2192
  const es = (e, t) => {
@@ -2254,7 +2254,7 @@ const cr = (e) => e ? e.value * e.unit : 0, I1 = (e) => !e || e === "NaN" ? "0"
2254
2254
  const s = _(t).times(e).div(n).integerValue(_.ROUND_FLOOR).toNumber();
2255
2255
  return Math.max(1, s);
2256
2256
  }, H1 = (e, t) => e + cr(t) + 6e4, G1 = (e) => e.bidDelaySeconds * 1e3 * 2, j1 = (e = "", t = 0) => !e || !t ? "0" : _(e).div(t).integerValue(_.ROUND_FLOOR).toFixed(0), V1 = (e, t) => ({
2257
- isError: !(e.unit === wc.unit && e.value === wc.value) && cr(e) * t > No,
2257
+ isError: !(e.unit === gc.unit && e.value === gc.value) && cr(e) * t > No,
2258
2258
  value: Math.floor(No / t)
2259
2259
  }), q1 = (e = "", t = "", n) => {
2260
2260
  if (n === re.STOP_LOSS)
@@ -2291,8 +2291,8 @@ const cr = (e) => e ? e.value * e.unit : 0, I1 = (e) => !e || e === "NaN" ? "0"
2291
2291
  isError: cr(e) < ed,
2292
2292
  value: ed
2293
2293
  }), J1 = (e) => ({
2294
- isError: cr(e) < gc,
2295
- value: gc
2294
+ isError: cr(e) < xc,
2295
+ value: xc
2296
2296
  }), Y1 = (e, t, n) => ({
2297
2297
  isError: _(t || 0).multipliedBy(e || 0).isLessThan(n),
2298
2298
  value: n
@@ -2439,7 +2439,7 @@ const cr = (e) => e ? e.value * e.unit : 0, I1 = (e) => !e || e === "NaN" ? "0"
2439
2439
  const { nonce: m, epoch: y, deadline: x, freshness: S } = Qp(
2440
2440
  a,
2441
2441
  s
2442
- ), B = f === re.TAKE_PROFIT ? Al : d, k = f === re.TAKE_PROFIT ? d : l, U = {
2442
+ ), B = f === re.TAKE_PROFIT ? vl : d, k = f === re.TAKE_PROFIT ? d : l, U = {
2443
2443
  permitted: {
2444
2444
  token: t,
2445
2445
  amount: r
@@ -2557,19 +2557,19 @@ const cr = (e) => e ? e.value * e.unit : 0, I1 = (e) => !e || e === "NaN" ? "0"
2557
2557
  types: w1,
2558
2558
  primaryType: Vp
2559
2559
  };
2560
- }, ib = (e) => Number(vl) >= 2 ? ob(e) : ab(e), cb = 0.7, lb = `https://bi.orbs.network/putes/twap-ui-${cb}`;
2561
- let Ec = "unknown";
2560
+ }, ib = (e) => Number(Cl) >= 2 ? ob(e) : ab(e), cb = 0.7, lb = `https://bi.orbs.network/putes/twap-ui-${cb}`;
2561
+ let wc = "unknown";
2562
2562
  function ub(e) {
2563
- Ec = e;
2563
+ wc = e;
2564
2564
  }
2565
- function $i() {
2565
+ function Li() {
2566
2566
  const e = Math.random().toString(36).substring(2, 16), t = Math.random().toString(36).substring(2, 16), n = Date.now().toString(36);
2567
2567
  return `id_${e + t + n}`;
2568
2568
  }
2569
2569
  const db = (e, t, n) => {
2570
2570
  var r, s, a, o, i, c, l, d, p;
2571
2571
  return {
2572
- spotVersion: Cl.version,
2572
+ spotVersion: kl.version,
2573
2573
  partner: e.partner,
2574
2574
  adapter: e.adapter,
2575
2575
  cosigner: e.cosigner,
@@ -2612,7 +2612,7 @@ class pb {
2612
2612
  $a(this, "timeout");
2613
2613
  $a(this, "config");
2614
2614
  $a(this, "data", {
2615
- _id: $i()
2615
+ _id: Li()
2616
2616
  });
2617
2617
  }
2618
2618
  async updateAndSend(t = {}, n = !1, r) {
@@ -2735,9 +2735,9 @@ class pb {
2735
2735
  init(t, n, r) {
2736
2736
  var s;
2737
2737
  this.config = t, r !== ((s = this.data) == null ? void 0 : s.chainId) && (this.data = {
2738
- _id: $i(),
2738
+ _id: Li(),
2739
2739
  action: "module-import",
2740
- uiVersion: Ec,
2740
+ uiVersion: wc,
2741
2741
  ...db(t, n, r),
2742
2742
  origin: window.location.origin
2743
2743
  }, this.updateAndSend(this.data));
@@ -2759,11 +2759,11 @@ class pb {
2759
2759
  void 0,
2760
2760
  () => {
2761
2761
  this.data = {
2762
- _id: $i(),
2762
+ _id: Li(),
2763
2763
  action: "reset",
2764
- uiVersion: Ec,
2764
+ uiVersion: wc,
2765
2765
  origin: this.data.origin,
2766
- spotVersion: Cl.version,
2766
+ spotVersion: kl.version,
2767
2767
  partner: this.data.partner,
2768
2768
  adapter: this.data.adapter,
2769
2769
  cosigner: this.data.cosigner,
@@ -2799,7 +2799,7 @@ class pb {
2799
2799
  }
2800
2800
  const ve = new pb(), fb = (e) => {
2801
2801
  var i;
2802
- const t = _(e.order.witness.output.limit || 0).gt(1), n = e.order.witness.output.stop, r = e.order.witness.output.triggerUpper, s = _(n || 0).eq(Al) || _(r || 0).gt(0), a = _(n || 0).gt(0), o = ((i = e.metadata.chunks) == null ? void 0 : i.length) || _(e.order.witness.input.maxAmount).div(_(e.order.witness.input.amount)).toNumber();
2802
+ const t = _(e.order.witness.output.limit || 0).gt(1), n = e.order.witness.output.stop, r = e.order.witness.output.triggerUpper, s = _(n || 0).eq(vl) || _(r || 0).gt(0), a = _(n || 0).gt(0), o = ((i = e.metadata.chunks) == null ? void 0 : i.length) || _(e.order.witness.input.maxAmount).div(_(e.order.witness.input.amount)).toNumber();
2803
2803
  return s ? de.TAKE_PROFIT : a ? t ? de.STOP_LOSS_LIMIT : de.STOP_LOSS_MARKET : t ? o > 1 && t ? de.TWAP_LIMIT : t ? de.LIMIT : de.TWAP_MARKET : de.TWAP_MARKET;
2804
2804
  }, mb = (e) => {
2805
2805
  var s;
@@ -2817,25 +2817,25 @@ const ve = new pb(), fb = (e) => {
2817
2817
  var r;
2818
2818
  const n = e.length;
2819
2819
  return n >= t && ((r = e[n - 1]) == null ? void 0 : r.timestamp) || 0;
2820
- }, xb = (e) => _(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), Tl = (e) => Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, gb = (e) => {
2820
+ }, xb = (e) => _(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), Al = (e) => Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, gb = (e) => {
2821
2821
  const {
2822
2822
  triggerLower: t = "0",
2823
2823
  triggerUpper: n = "0"
2824
- } = e.order.witness.output, r = Tl(e), s = e.metadata.expectedChunks || 1, a = _(n || 0).gt(0);
2824
+ } = e.order.witness.output, r = Al(e), s = e.metadata.expectedChunks || 1, a = _(n || 0).gt(0);
2825
2825
  return {
2826
2826
  dstMinAmountPerTrade: r,
2827
2827
  triggerPricePerTrade: a ? n : t,
2828
2828
  dstMinAmountTotal: _(r).multipliedBy(s).toFixed()
2829
2829
  };
2830
2830
  }, wb = (e) => {
2831
- const t = Tl(e), n = _(e.order.witness.output.stop || 0).eq(Al), r = e.metadata.expectedChunks || 1;
2831
+ const t = Al(e), n = _(e.order.witness.output.stop || 0).eq(vl), r = e.metadata.expectedChunks || 1;
2832
2832
  return {
2833
2833
  dstMinAmountPerTrade: n ? "" : t,
2834
2834
  triggerPricePerTrade: n ? t : _(e.order.witness.output.stop || "").toFixed(),
2835
2835
  dstMinAmountTotal: n ? "" : _(t).multipliedBy(r).toFixed()
2836
2836
  };
2837
- }, Eb = (e) => Number(vl) >= 2 ? gb(e) : wb(e), Jp = (e) => {
2838
- const t = mb(e), n = Tl(e), r = e.metadata.expectedChunks || 1, s = bb(e), a = fb(e);
2837
+ }, Eb = (e) => Number(Cl) >= 2 ? gb(e) : wb(e), Jp = (e) => {
2838
+ const t = mb(e), n = Al(e), r = e.metadata.expectedChunks || 1, s = bb(e), a = fb(e);
2839
2839
  return {
2840
2840
  id: e.hash,
2841
2841
  hash: e.hash,
@@ -2908,7 +2908,7 @@ const ve = new pb(), fb = (e) => {
2908
2908
  }, Xt = (e, t) => e && e.length ? e.map(t || ((n) => `${n}`)) : void 0, vb = (e) => {
2909
2909
  if (e)
2910
2910
  return h1[e];
2911
- }, Sl = async ({
2911
+ }, Tl = async ({
2912
2912
  chainId: e,
2913
2913
  buildQuery: t,
2914
2914
  extractResults: n,
@@ -3068,7 +3068,7 @@ async function Sb({
3068
3068
  filters: s
3069
3069
  }) {
3070
3070
  const a = r || 1e3, o = Tb(s);
3071
- return await Sl({
3071
+ return await Tl({
3072
3072
  chainId: e,
3073
3073
  signal: t,
3074
3074
  limit: a,
@@ -3120,10 +3120,10 @@ const Pb = async ({
3120
3120
  signal: n
3121
3121
  }) => {
3122
3122
  if (t.length === 0) return [];
3123
- const r = kc(t.map((i) => i.Contract_id.toString()));
3123
+ const r = Ec(t.map((i) => i.Contract_id.toString()));
3124
3124
  if (!r.length) return [];
3125
3125
  const a = `where: { twapId_in: [${r.map((i) => `"${i}"`).join(", ")}]}`;
3126
- return await Sl({
3126
+ return await Tl({
3127
3127
  chainId: e,
3128
3128
  signal: n,
3129
3129
  limit: 1e3,
@@ -3146,7 +3146,7 @@ const Pb = async ({
3146
3146
  }
3147
3147
  });
3148
3148
  };
3149
- function kc(e) {
3149
+ function Ec(e) {
3150
3150
  return Array.from(new Set(e));
3151
3151
  }
3152
3152
  const Bb = async ({
@@ -3154,13 +3154,13 @@ const Bb = async ({
3154
3154
  orders: t,
3155
3155
  signal: n
3156
3156
  }) => {
3157
- const r = kc(t.map((p) => p.Contract_id)), s = kc(t.map((p) => p.twapAddress)).filter(Boolean);
3157
+ const r = Ec(t.map((p) => p.Contract_id)), s = Ec(t.map((p) => p.twapAddress)).filter(Boolean);
3158
3158
  if (r.length === 0) return [];
3159
3159
  const a = r.join(", "), o = s.map((p) => `"${p}"`).join(", "), i = s.length ? `twapAddress_in: [${o}]` : "", l = `where: { ${[
3160
3160
  `TWAP_id_in: [${a}]`,
3161
3161
  i
3162
3162
  ].filter(Boolean).join(", ")} }`;
3163
- return await Sl({
3163
+ return await Tl({
3164
3164
  chainId: e,
3165
3165
  signal: n,
3166
3166
  limit: 1e3,
@@ -3249,7 +3249,7 @@ const Ib = async ({
3249
3249
  }) => (await Promise.all([
3250
3250
  s ? Ib({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
3251
3251
  kb({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter, isDev: o })
3252
- ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Mb = "1.1.12", Rb = {
3252
+ ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Mb = "1.1.13", Rb = {
3253
3253
  version: Mb
3254
3254
  }, ad = (e) => {
3255
3255
  let t;
@@ -3306,10 +3306,10 @@ const od = (e) => {
3306
3306
  }));
3307
3307
  var Ht = /* @__PURE__ */ ((e) => (e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILED = 3] = "FAILED", e))(Ht || {}), jn = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.APPROVE = "approve", e.CREATE = "create", e))(jn || {});
3308
3308
  const $b = "1.2.3";
3309
- let rt = class Cc extends Error {
3309
+ let rt = class kc extends Error {
3310
3310
  constructor(t, n = {}) {
3311
3311
  var o;
3312
- const r = n.cause instanceof Cc ? n.cause.details : (o = n.cause) != null && o.message ? n.cause.message : n.details, s = n.cause instanceof Cc && n.cause.docsPath || n.docsPath, a = [
3312
+ const r = n.cause instanceof kc ? n.cause.details : (o = n.cause) != null && o.message ? n.cause.message : n.details, s = n.cause instanceof kc && n.cause.docsPath || n.docsPath, a = [
3313
3313
  t || "An error occurred.",
3314
3314
  "",
3315
3315
  ...n.metaMessages ? [...n.metaMessages, ""] : [],
@@ -3351,17 +3351,17 @@ function hn(e, t) {
3351
3351
  return n == null ? void 0 : n.groups;
3352
3352
  }
3353
3353
  const t0 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, n0 = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, r0 = /^\(.+?\).*?$/, cd = /^tuple(?<array>(\[(\d*)\])*)$/;
3354
- function vc(e) {
3354
+ function Cc(e) {
3355
3355
  let t = e.type;
3356
3356
  if (cd.test(e.type) && "components" in e) {
3357
3357
  t = "(";
3358
3358
  const n = e.components.length;
3359
3359
  for (let s = 0; s < n; s++) {
3360
3360
  const a = e.components[s];
3361
- t += vc(a), s < n - 1 && (t += ", ");
3361
+ t += Cc(a), s < n - 1 && (t += ", ");
3362
3362
  }
3363
3363
  const r = hn(cd, e.type);
3364
- return t += `)${(r == null ? void 0 : r.array) || ""}`, vc({
3364
+ return t += `)${(r == null ? void 0 : r.array) || ""}`, Cc({
3365
3365
  ...e,
3366
3366
  type: t
3367
3367
  });
@@ -3373,7 +3373,7 @@ function Dr(e) {
3373
3373
  const n = e.length;
3374
3374
  for (let r = 0; r < n; r++) {
3375
3375
  const s = e[r];
3376
- t += vc(s), r !== n - 1 && (t += ", ");
3376
+ t += Cc(s), r !== n - 1 && (t += ", ");
3377
3377
  }
3378
3378
  return t;
3379
3379
  }
@@ -3432,7 +3432,7 @@ const ld = /* @__PURE__ */ new Set([
3432
3432
  "indexed",
3433
3433
  "storage",
3434
3434
  "calldata"
3435
- ]), ty = /* @__PURE__ */ new Set(["indexed"]), Ac = /* @__PURE__ */ new Set([
3435
+ ]), ty = /* @__PURE__ */ new Set(["indexed"]), vc = /* @__PURE__ */ new Set([
3436
3436
  "calldata",
3437
3437
  "memory",
3438
3438
  "storage"
@@ -3637,7 +3637,7 @@ function hy(e, t, n) {
3637
3637
  }
3638
3638
  return t ? `${t}:${e}${r}` : `${e}${r}`;
3639
3639
  }
3640
- const Hi = /* @__PURE__ */ new Map([
3640
+ const $i = /* @__PURE__ */ new Map([
3641
3641
  // Unnamed
3642
3642
  ["address", { type: "address" }],
3643
3643
  ["bool", { type: "bool" }],
@@ -3691,7 +3691,7 @@ const Hi = /* @__PURE__ */ new Map([
3691
3691
  { type: "uint256", name: "tokenId", indexed: !0 }
3692
3692
  ]
3693
3693
  ]);
3694
- function Tc(e, t = {}) {
3694
+ function Ac(e, t = {}) {
3695
3695
  if (qb(e))
3696
3696
  return by(e, t);
3697
3697
  if (jb(e))
@@ -3716,7 +3716,7 @@ function by(e, t = {}) {
3716
3716
  const r = at(n.parameters), s = [], a = r.length;
3717
3717
  for (let i = 0; i < a; i++)
3718
3718
  s.push(fn(r[i], {
3719
- modifiers: Ac,
3719
+ modifiers: vc,
3720
3720
  structs: t,
3721
3721
  type: "function"
3722
3722
  }));
@@ -3725,7 +3725,7 @@ function by(e, t = {}) {
3725
3725
  const i = at(n.returns), c = i.length;
3726
3726
  for (let l = 0; l < c; l++)
3727
3727
  o.push(fn(i[l], {
3728
- modifiers: Ac,
3728
+ modifiers: vc,
3729
3729
  structs: t,
3730
3730
  type: "function"
3731
3731
  }));
@@ -3786,8 +3786,8 @@ const Ey = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\]
3786
3786
  function fn(e, t) {
3787
3787
  var p, f;
3788
3788
  const n = hy(e, t == null ? void 0 : t.type, t == null ? void 0 : t.structs);
3789
- if (Hi.has(n))
3790
- return Hi.get(n);
3789
+ if ($i.has(n))
3790
+ return $i.get(n);
3791
3791
  const r = r0.test(e), s = hn(r ? ky : Ey, e);
3792
3792
  if (!s)
3793
3793
  throw new oy({ param: e });
@@ -3816,7 +3816,7 @@ function fn(e, t) {
3816
3816
  type: t == null ? void 0 : t.type,
3817
3817
  modifier: s.modifier
3818
3818
  });
3819
- if (Ac.has(s.modifier) && !Ty(c, !!s.array))
3819
+ if (vc.has(s.modifier) && !Ty(c, !!s.array))
3820
3820
  throw new ly({
3821
3821
  param: e,
3822
3822
  type: t == null ? void 0 : t.type,
@@ -3829,7 +3829,7 @@ function fn(e, t) {
3829
3829
  ...o,
3830
3830
  ...l
3831
3831
  };
3832
- return Hi.set(n, d), d;
3832
+ return $i.set(n, d), d;
3833
3833
  }
3834
3834
  function at(e, t = [], n = "", r = 0) {
3835
3835
  const s = e.trim().length;
@@ -3862,7 +3862,7 @@ function Ay(e) {
3862
3862
  function Ty(e, t) {
3863
3863
  return t || e === "bytes" || e === "string" || e === "tuple";
3864
3864
  }
3865
- function Pl(e) {
3865
+ function Sl(e) {
3866
3866
  const t = {}, n = e.length;
3867
3867
  for (let o = 0; o < n; o++) {
3868
3868
  const i = e[o];
@@ -3921,23 +3921,23 @@ function d0(e = [], t = {}, n = /* @__PURE__ */ new Set()) {
3921
3921
  return r;
3922
3922
  }
3923
3923
  function p0(e) {
3924
- const t = Pl(e), n = [], r = e.length;
3924
+ const t = Sl(e), n = [], r = e.length;
3925
3925
  for (let s = 0; s < r; s++) {
3926
3926
  const a = e[s];
3927
- Yo(a) || n.push(Tc(a, t));
3927
+ Yo(a) || n.push(Ac(a, t));
3928
3928
  }
3929
3929
  return n;
3930
3930
  }
3931
3931
  function ud(e) {
3932
3932
  let t;
3933
3933
  if (typeof e == "string")
3934
- t = Tc(e);
3934
+ t = Ac(e);
3935
3935
  else {
3936
- const n = Pl(e), r = e.length;
3936
+ const n = Sl(e), r = e.length;
3937
3937
  for (let s = 0; s < r; s++) {
3938
3938
  const a = e[s];
3939
3939
  if (!Yo(a)) {
3940
- t = Tc(a, n);
3940
+ t = Ac(a, n);
3941
3941
  break;
3942
3942
  }
3943
3943
  }
@@ -3953,7 +3953,7 @@ function dd(e) {
3953
3953
  for (let s = 0; s < r; s++)
3954
3954
  t.push(fn(n[s], { modifiers: ld }));
3955
3955
  } else {
3956
- const n = Pl(e), r = e.length;
3956
+ const n = Sl(e), r = e.length;
3957
3957
  for (let s = 0; s < r; s++) {
3958
3958
  const a = e[s];
3959
3959
  if (Yo(a))
@@ -3995,13 +3995,13 @@ const f0 = "2.43.3";
3995
3995
  let Es = {
3996
3996
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: n }) => t ? `${e ?? "https://viem.sh"}${t}${n ? `#${n}` : ""}` : void 0,
3997
3997
  version: `viem@${f0}`
3998
- }, z = class Sc extends Error {
3998
+ }, z = class Tc extends Error {
3999
3999
  constructor(t, n = {}) {
4000
4000
  var i;
4001
4001
  const r = (() => {
4002
4002
  var c;
4003
- return n.cause instanceof Sc ? n.cause.details : (c = n.cause) != null && c.message ? n.cause.message : n.details;
4004
- })(), s = n.cause instanceof Sc && n.cause.docsPath || n.docsPath, a = (i = Es.getDocsUrl) == null ? void 0 : i.call(Es, { ...n, docsPath: s }), o = [
4003
+ return n.cause instanceof Tc ? n.cause.details : (c = n.cause) != null && c.message ? n.cause.message : n.details;
4004
+ })(), s = n.cause instanceof Tc && n.cause.docsPath || n.docsPath, a = (i = Es.getDocsUrl) == null ? void 0 : i.call(Es, { ...n, docsPath: s }), o = [
4005
4005
  t || "An error occurred.",
4006
4006
  "",
4007
4007
  ...n.metaMessages ? [...n.metaMessages, ""] : [],
@@ -4301,7 +4301,7 @@ class zo extends z {
4301
4301
  }), this.abiItem = t, this.data = n, this.params = r, this.size = s;
4302
4302
  }
4303
4303
  }
4304
- class Bl extends z {
4304
+ class Pl extends z {
4305
4305
  constructor({ abiItem: t, param: n }) {
4306
4306
  super([
4307
4307
  `Expected a topic for indexed event parameter${n.name ? ` "${n.name}"` : ""} on event "${Ut(t, { includeName: !0 })}".`
@@ -4596,7 +4596,7 @@ function Mn(...e) {
4596
4596
  for (let t = 0; t < e.length; t++)
4597
4597
  e[t].fill(0);
4598
4598
  }
4599
- function Gi(e) {
4599
+ function Hi(e) {
4600
4600
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
4601
4601
  }
4602
4602
  function Rt(e, t) {
@@ -4633,7 +4633,7 @@ function y6(...e) {
4633
4633
  }
4634
4634
  return n;
4635
4635
  }
4636
- class Ul {
4636
+ class Bl {
4637
4637
  }
4638
4638
  function ni(e) {
4639
4639
  const t = (r) => e().update(ti(r)).digest(), n = e();
@@ -4680,7 +4680,7 @@ function T6(e, t = 24) {
4680
4680
  }
4681
4681
  Mn(n);
4682
4682
  }
4683
- class Il extends Ul {
4683
+ class Ul extends Bl {
4684
4684
  // NOTE: we accept arguments in bytes instead of bits here.
4685
4685
  constructor(t, n, r, s = !1, a = 24) {
4686
4686
  if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = r, this.enableXOF = s, this.rounds = a, Ls(r), !(0 < t && t < 200))
@@ -4742,10 +4742,10 @@ class Il extends Ul {
4742
4742
  }
4743
4743
  _cloneInto(t) {
4744
4744
  const { blockLen: n, suffix: r, outputLen: s, rounds: a, enableXOF: o } = this;
4745
- return t || (t = new Il(n, r, s, o, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = r, t.outputLen = s, t.enableXOF = o, t.destroyed = this.destroyed, t;
4745
+ return t || (t = new Ul(n, r, s, o, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = r, t.outputLen = s, t.enableXOF = o, t.destroyed = this.destroyed, t;
4746
4746
  }
4747
4747
  }
4748
- const S6 = (e, t, n) => ni(() => new Il(t, e, n)), B0 = S6(1, 136, 256 / 8);
4748
+ const S6 = (e, t, n) => ni(() => new Ul(t, e, n)), B0 = S6(1, 136, 256 / 8);
4749
4749
  function Ne(e, t) {
4750
4750
  const n = t || "hex", r = B0(Gt(e, { strict: !1 }) ? ln(e) : e);
4751
4751
  return n === "bytes" ? r : le(r);
@@ -4818,28 +4818,28 @@ let Ue = class extends z {
4818
4818
  return this;
4819
4819
  }
4820
4820
  };
4821
- const ji = /* @__PURE__ */ new ds(8192);
4821
+ const Gi = /* @__PURE__ */ new ds(8192);
4822
4822
  function ka(e, t) {
4823
- if (ji.has(`${e}.${t}`))
4824
- return ji.get(`${e}.${t}`);
4823
+ if (Gi.has(`${e}.${t}`))
4824
+ return Gi.get(`${e}.${t}`);
4825
4825
  const n = e.substring(2).toLowerCase(), r = Ne(ar(n), "bytes"), s = n.split("");
4826
4826
  for (let o = 0; o < 40; o += 2)
4827
4827
  r[o >> 1] >> 4 >= 8 && s[o] && (s[o] = s[o].toUpperCase()), (r[o >> 1] & 15) >= 8 && s[o + 1] && (s[o + 1] = s[o + 1].toUpperCase());
4828
4828
  const a = `0x${s.join("")}`;
4829
- return ji.set(`${e}.${t}`, a), a;
4829
+ return Gi.set(`${e}.${t}`, a), a;
4830
4830
  }
4831
- function Fl(e, t) {
4831
+ function Il(e, t) {
4832
4832
  if (!be(e, { strict: !1 }))
4833
4833
  throw new Ue({ address: e });
4834
4834
  return ka(e, t);
4835
4835
  }
4836
- const F6 = /^0x[a-fA-F0-9]{40}$/, Vi = /* @__PURE__ */ new ds(8192);
4836
+ const F6 = /^0x[a-fA-F0-9]{40}$/, ji = /* @__PURE__ */ new ds(8192);
4837
4837
  function be(e, t) {
4838
4838
  const { strict: n = !0 } = t ?? {}, r = `${e}.${n}`;
4839
- if (Vi.has(r))
4840
- return Vi.get(r);
4839
+ if (ji.has(r))
4840
+ return ji.get(r);
4841
4841
  const s = F6.test(e) ? e.toLowerCase() === e ? !0 : n ? ka(e) === e : !0 : !1;
4842
- return Vi.set(r, s), s;
4842
+ return ji.set(r, s), s;
4843
4843
  }
4844
4844
  function gt(e) {
4845
4845
  return typeof e[0] == "string" ? ct(e) : D6(e);
@@ -4858,7 +4858,7 @@ function ct(e) {
4858
4858
  return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
4859
4859
  }
4860
4860
  function ur(e, t, n, { strict: r } = {}) {
4861
- return Gt(e, { strict: !1 }) ? Pc(e, t, n, {
4861
+ return Gt(e, { strict: !1 }) ? Sc(e, t, n, {
4862
4862
  strict: r
4863
4863
  }) : D0(e, t, n, {
4864
4864
  strict: r
@@ -4885,7 +4885,7 @@ function D0(e, t, n, { strict: r } = {}) {
4885
4885
  const s = e.slice(t, n);
4886
4886
  return r && F0(s, t, n), s;
4887
4887
  }
4888
- function Pc(e, t, n, { strict: r } = {}) {
4888
+ function Sc(e, t, n, { strict: r } = {}) {
4889
4889
  I0(e, t);
4890
4890
  const s = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
4891
4891
  return r && F0(s, t, n), s;
@@ -4900,17 +4900,17 @@ function wr(e, t) {
4900
4900
  const n = M6({
4901
4901
  params: e,
4902
4902
  values: t
4903
- }), r = Ol(n);
4903
+ }), r = Dl(n);
4904
4904
  return r.length === 0 ? "0x" : r;
4905
4905
  }
4906
4906
  function M6({ params: e, values: t }) {
4907
4907
  const n = [];
4908
4908
  for (let r = 0; r < e.length; r++)
4909
- n.push(Dl({ param: e[r], value: t[r] }));
4909
+ n.push(Fl({ param: e[r], value: t[r] }));
4910
4910
  return n;
4911
4911
  }
4912
- function Dl({ param: e, value: t }) {
4913
- const n = Ml(e.type);
4912
+ function Fl({ param: e, value: t }) {
4913
+ const n = Ol(e.type);
4914
4914
  if (n) {
4915
4915
  const [r, s] = n;
4916
4916
  return N6(t, { length: r, param: { ...e, type: s } });
@@ -4938,7 +4938,7 @@ function Dl({ param: e, value: t }) {
4938
4938
  docsPath: "/docs/contract/encodeAbiParameters"
4939
4939
  });
4940
4940
  }
4941
- function Ol(e) {
4941
+ function Dl(e) {
4942
4942
  let t = 0;
4943
4943
  for (let a = 0; a < e.length; a++) {
4944
4944
  const { dynamic: o, encoded: i } = e[a];
@@ -4970,11 +4970,11 @@ function N6(e, { length: t, param: n }) {
4970
4970
  let s = !1;
4971
4971
  const a = [];
4972
4972
  for (let o = 0; o < e.length; o++) {
4973
- const i = Dl({ param: n, value: e[o] });
4973
+ const i = Fl({ param: n, value: e[o] });
4974
4974
  i.dynamic && (s = !0), a.push(i);
4975
4975
  }
4976
4976
  if (r || s) {
4977
- const o = Ol(a);
4977
+ const o = Dl(a);
4978
4978
  if (r) {
4979
4979
  const i = H(a.length, { size: 32 });
4980
4980
  return {
@@ -5052,7 +5052,7 @@ function H6(e, { param: t }) {
5052
5052
  let n = !1;
5053
5053
  const r = [];
5054
5054
  for (let s = 0; s < t.components.length; s++) {
5055
- const a = t.components[s], o = Array.isArray(e) ? s : a.name, i = Dl({
5055
+ const a = t.components[s], o = Array.isArray(e) ? s : a.name, i = Fl({
5056
5056
  param: a,
5057
5057
  value: e[o]
5058
5058
  });
@@ -5060,10 +5060,10 @@ function H6(e, { param: t }) {
5060
5060
  }
5061
5061
  return {
5062
5062
  dynamic: n,
5063
- encoded: n ? Ol(r) : gt(r.map(({ encoded: s }) => s))
5063
+ encoded: n ? Dl(r) : gt(r.map(({ encoded: s }) => s))
5064
5064
  };
5065
5065
  }
5066
- function Ml(e) {
5066
+ function Ol(e) {
5067
5067
  const t = e.match(/^(.*)\[(\d+)?\]$/);
5068
5068
  return t ? (
5069
5069
  // Return `null` if the array is dynamic.
@@ -5090,7 +5090,7 @@ function Er(e) {
5090
5090
  continue;
5091
5091
  if (n.every((l, d) => {
5092
5092
  const p = "inputs" in i && i.inputs[d];
5093
- return p ? Bc(l, p) : !1;
5093
+ return p ? Pc(l, p) : !1;
5094
5094
  })) {
5095
5095
  if (o && "inputs" in o && o.inputs) {
5096
5096
  const l = M0(i.inputs, o.inputs, n);
@@ -5108,7 +5108,7 @@ function Er(e) {
5108
5108
  }
5109
5109
  return o || a[0];
5110
5110
  }
5111
- function Bc(e, t) {
5111
+ function Pc(e, t) {
5112
5112
  const n = typeof e, r = t.type;
5113
5113
  switch (r) {
5114
5114
  case "address":
@@ -5120,7 +5120,7 @@ function Bc(e, t) {
5120
5120
  case "string":
5121
5121
  return n === "string";
5122
5122
  default:
5123
- return r === "tuple" && "components" in t ? Object.values(t.components).every((s, a) => Bc(Object.values(e)[a], s)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r) ? Array.isArray(e) && e.every((s) => Bc(s, {
5123
+ return r === "tuple" && "components" in t ? Object.values(t.components).every((s, a) => Pc(Object.values(e)[a], s)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r) ? Array.isArray(e) && e.every((s) => Pc(s, {
5124
5124
  ...t,
5125
5125
  // Pop off `[]` or `[M]` from end of type
5126
5126
  type: r.replace(/(\[[0-9]{0,}\])$/, "")
@@ -5397,7 +5397,7 @@ const K6 = {
5397
5397
  this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
5398
5398
  }
5399
5399
  };
5400
- function Rl(e, { recursiveReadLimit: t = 8192 } = {}) {
5400
+ function Ml(e, { recursiveReadLimit: t = 8192 } = {}) {
5401
5401
  const n = Object.create(K6);
5402
5402
  return n.bytes = e, n.dataView = new DataView(e.buffer ?? e, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
5403
5403
  }
@@ -5422,7 +5422,7 @@ function Z6(e, t = {}) {
5422
5422
  return typeof t.size < "u" && (Dt(n, { size: t.size }), n = tt(n, { dir: "right" })), new TextDecoder().decode(n);
5423
5423
  }
5424
5424
  function Aa(e, t) {
5425
- const n = typeof t == "string" ? ot(t) : t, r = Rl(n);
5425
+ const n = typeof t == "string" ? ot(t) : t, r = Ml(n);
5426
5426
  if (xe(n) === 0 && e.length > 0)
5427
5427
  throw new Ea();
5428
5428
  if (xe(t) && xe(t) < 32)
@@ -5444,7 +5444,7 @@ function Aa(e, t) {
5444
5444
  return a;
5445
5445
  }
5446
5446
  function Nr(e, t, { staticPosition: n }) {
5447
- const r = Ml(t.type);
5447
+ const r = Ol(t.type);
5448
5448
  if (r) {
5449
5449
  const [s, a] = r;
5450
5450
  return J6(e, { ...t, type: a }, { length: s, staticPosition: n });
@@ -5465,14 +5465,14 @@ function Nr(e, t, { staticPosition: n }) {
5465
5465
  docsPath: "/docs/contract/decodeAbiParameters"
5466
5466
  });
5467
5467
  }
5468
- const Sd = 32, Uc = 32;
5468
+ const Sd = 32, Bc = 32;
5469
5469
  function Q6(e) {
5470
5470
  const t = e.readBytes(32);
5471
5471
  return [ka(Pe(D0(t, -20))), 32];
5472
5472
  }
5473
5473
  function J6(e, t, { length: n, staticPosition: r }) {
5474
5474
  if (!n) {
5475
- const o = un(e.readBytes(Uc)), i = r + o, c = i + Sd;
5475
+ const o = un(e.readBytes(Bc)), i = r + o, c = i + Sd;
5476
5476
  e.setPosition(i);
5477
5477
  const l = un(e.readBytes(Sd)), d = $s(t);
5478
5478
  let p = 0;
@@ -5487,7 +5487,7 @@ function J6(e, t, { length: n, staticPosition: r }) {
5487
5487
  return e.setPosition(r + 32), [f, 32];
5488
5488
  }
5489
5489
  if ($s(t)) {
5490
- const o = un(e.readBytes(Uc)), i = r + o, c = [];
5490
+ const o = un(e.readBytes(Bc)), i = r + o, c = [];
5491
5491
  for (let l = 0; l < n; ++l) {
5492
5492
  e.setPosition(i + l * 32);
5493
5493
  const [d] = Nr(e, t, {
@@ -5534,7 +5534,7 @@ function n2(e, t, { staticPosition: n }) {
5534
5534
  const r = t.components.length === 0 || t.components.some(({ name: o }) => !o), s = r ? [] : {};
5535
5535
  let a = 0;
5536
5536
  if ($s(t)) {
5537
- const o = un(e.readBytes(Uc)), i = n + o;
5537
+ const o = un(e.readBytes(Bc)), i = n + o;
5538
5538
  for (let c = 0; c < t.components.length; ++c) {
5539
5539
  const l = t.components[c];
5540
5540
  e.setPosition(i + a);
@@ -5569,7 +5569,7 @@ function $s(e) {
5569
5569
  return !0;
5570
5570
  if (t === "tuple")
5571
5571
  return (r = e.components) == null ? void 0 : r.some($s);
5572
- const n = Ml(e.type);
5572
+ const n = Ol(e.type);
5573
5573
  return !!(n && $s({ ...e, type: n[1] }));
5574
5574
  }
5575
5575
  function s2(e) {
@@ -5599,7 +5599,7 @@ const a2 = {
5599
5599
  ether: -9,
5600
5600
  wei: 9
5601
5601
  };
5602
- function Nl(e, t) {
5602
+ function Rl(e, t) {
5603
5603
  let n = e.toString();
5604
5604
  const r = n.startsWith("-");
5605
5605
  r && (n = n.slice(1)), n = n.padStart(t, "0");
@@ -5609,11 +5609,11 @@ function Nl(e, t) {
5609
5609
  ];
5610
5610
  return a = a.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${a ? `.${a}` : ""}`;
5611
5611
  }
5612
- function _l(e, t = "wei") {
5613
- return Nl(e, a2[t]);
5612
+ function Nl(e, t = "wei") {
5613
+ return Rl(e, a2[t]);
5614
5614
  }
5615
5615
  function nt(e, t = "wei") {
5616
- return Nl(e, o2[t]);
5616
+ return Rl(e, o2[t]);
5617
5617
  }
5618
5618
  class i2 extends z {
5619
5619
  constructor({ address: t }) {
@@ -5691,7 +5691,7 @@ class f2 extends z {
5691
5691
  chain: s && `${s == null ? void 0 : s.name} (id: ${s == null ? void 0 : s.id})`,
5692
5692
  from: n == null ? void 0 : n.address,
5693
5693
  to: p,
5694
- value: typeof f < "u" && `${_l(f)} ${((y = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : y.symbol) || "ETH"}`,
5694
+ value: typeof f < "u" && `${Nl(f)} ${((y = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : y.symbol) || "ETH"}`,
5695
5695
  data: a,
5696
5696
  gas: o,
5697
5697
  gasPrice: typeof i < "u" && `${nt(i)} gwei`,
@@ -5755,7 +5755,7 @@ class m2 extends z {
5755
5755
  super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
5756
5756
  }
5757
5757
  }
5758
- const h2 = (e) => e, zl = (e) => e;
5758
+ const h2 = (e) => e, _l = (e) => e;
5759
5759
  class G0 extends z {
5760
5760
  constructor(t, { account: n, docsPath: r, chain: s, data: a, gas: o, gasPrice: i, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: d, to: p, value: f, stateOverride: m }) {
5761
5761
  var S;
@@ -5763,7 +5763,7 @@ class G0 extends z {
5763
5763
  let x = Ta({
5764
5764
  from: y == null ? void 0 : y.address,
5765
5765
  to: p,
5766
- value: typeof f < "u" && `${_l(f)} ${((S = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : S.symbol) || "ETH"}`,
5766
+ value: typeof f < "u" && `${Nl(f)} ${((S = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : S.symbol) || "ETH"}`,
5767
5767
  data: a,
5768
5768
  gas: o,
5769
5769
  gasPrice: typeof i < "u" && `${nt(i)} gwei`,
@@ -5849,7 +5849,7 @@ class j0 extends z {
5849
5849
  }), this.abi = n, this.args = r, this.cause = t, this.contractAddress = s, this.functionName = o, this.sender = i;
5850
5850
  }
5851
5851
  }
5852
- class Ic extends z {
5852
+ class Uc extends z {
5853
5853
  constructor({ abi: t, data: n, functionName: r, message: s }) {
5854
5854
  let a, o, i, c;
5855
5855
  if (n && n !== "0x")
@@ -5960,7 +5960,7 @@ class _s extends z {
5960
5960
  details: r,
5961
5961
  metaMessages: [
5962
5962
  a && `Status: ${a}`,
5963
- `URL: ${zl(o)}`,
5963
+ `URL: ${_l(o)}`,
5964
5964
  t && `Request body: ${Ie(t)}`
5965
5965
  ].filter(Boolean),
5966
5966
  name: "HttpRequestError"
@@ -5987,12 +5987,12 @@ class _s extends z {
5987
5987
  }), this.body = t, this.headers = s, this.status = a, this.url = o;
5988
5988
  }
5989
5989
  }
5990
- class Ll extends z {
5990
+ class zl extends z {
5991
5991
  constructor({ body: t, error: n, url: r }) {
5992
5992
  super("RPC Request failed.", {
5993
5993
  cause: n,
5994
5994
  details: n.message,
5995
- metaMessages: [`URL: ${zl(r)}`, `Request body: ${Ie(t)}`],
5995
+ metaMessages: [`URL: ${_l(r)}`, `Request body: ${Ie(t)}`],
5996
5996
  name: "RpcRequestError"
5997
5997
  }), Object.defineProperty(this, "code", {
5998
5998
  enumerable: !0,
@@ -6016,7 +6016,7 @@ class Bd extends z {
6016
6016
  constructor({ body: t, url: n }) {
6017
6017
  super("The request took too long to respond.", {
6018
6018
  details: "The request timed out.",
6019
- metaMessages: [`URL: ${zl(n)}`, `Request body: ${Ie(t)}`],
6019
+ metaMessages: [`URL: ${_l(n)}`, `Request body: ${Ie(t)}`],
6020
6020
  name: "TimeoutError"
6021
6021
  }), Object.defineProperty(this, "url", {
6022
6022
  enumerable: !0,
@@ -6039,7 +6039,7 @@ class st extends z {
6039
6039
  configurable: !0,
6040
6040
  writable: !0,
6041
6041
  value: void 0
6042
- }), this.name = a || t.name, this.code = t instanceof Ll ? t.code : n ?? x2;
6042
+ }), this.name = a || t.name, this.code = t instanceof zl ? t.code : n ?? x2;
6043
6043
  }
6044
6044
  }
6045
6045
  class ut extends st {
@@ -6450,11 +6450,11 @@ class g2 extends st {
6450
6450
  }
6451
6451
  const w2 = 3;
6452
6452
  function pr(e, { abi: t, address: n, args: r, docsPath: s, functionName: a, sender: o }) {
6453
- const i = e instanceof ai ? e : e instanceof z ? e.walk((y) => "data" in y) || e.walk() : {}, { code: c, data: l, details: d, message: p, shortMessage: f } = i, m = e instanceof Ea ? new b2({ functionName: a }) : [w2, dr.code].includes(c) && (l || d || p || f) || c === Rn.code && d === "execution reverted" && l ? new Ic({
6453
+ const i = e instanceof ai ? e : e instanceof z ? e.walk((y) => "data" in y) || e.walk() : {}, { code: c, data: l, details: d, message: p, shortMessage: f } = i, m = e instanceof Ea ? new b2({ functionName: a }) : [w2, dr.code].includes(c) && (l || d || p || f) || c === Rn.code && d === "execution reverted" && l ? new Uc({
6454
6454
  abi: t,
6455
6455
  data: typeof l == "object" ? l.data : l,
6456
6456
  functionName: a,
6457
- message: i instanceof Ll ? d : f ?? p
6457
+ message: i instanceof zl ? d : f ?? p
6458
6458
  }) : e;
6459
6459
  return new j0(m, {
6460
6460
  abi: t,
@@ -6496,7 +6496,7 @@ async function V0({ hash: e, signature: t }) {
6496
6496
  return E2(await k2({ hash: e, signature: t }));
6497
6497
  }
6498
6498
  function jt(e, t = "hex") {
6499
- const n = q0(e), r = Rl(new Uint8Array(n.length));
6499
+ const n = q0(e), r = Ml(new Uint8Array(n.length));
6500
6500
  return n.encode(r), t === "hex" ? Pe(r.bytes) : r.bytes;
6501
6501
  }
6502
6502
  function q0(e) {
@@ -6557,7 +6557,7 @@ class T2 extends z {
6557
6557
  const m = Ta({
6558
6558
  from: n == null ? void 0 : n.address,
6559
6559
  to: p,
6560
- value: typeof f < "u" && `${_l(f)} ${((y = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : y.symbol) || "ETH"}`,
6560
+ value: typeof f < "u" && `${Nl(f)} ${((y = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : y.symbol) || "ETH"}`,
6561
6561
  data: a,
6562
6562
  gas: o,
6563
6563
  gasPrice: typeof i < "u" && `${nt(i)} gwei`,
@@ -6618,7 +6618,7 @@ Object.defineProperty(Nn, "nodeMessage", {
6618
6618
  writable: !0,
6619
6619
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
6620
6620
  });
6621
- class Fc extends z {
6621
+ class Ic extends z {
6622
6622
  constructor({ cause: t, maxFeePerGas: n } = {}) {
6623
6623
  super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${nt(n)}` : ""} gwei) cannot be lower than the block base fee.`, {
6624
6624
  cause: t,
@@ -6626,24 +6626,24 @@ class Fc extends z {
6626
6626
  });
6627
6627
  }
6628
6628
  }
6629
- Object.defineProperty(Fc, "nodeMessage", {
6629
+ Object.defineProperty(Ic, "nodeMessage", {
6630
6630
  enumerable: !0,
6631
6631
  configurable: !0,
6632
6632
  writable: !0,
6633
6633
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
6634
6634
  });
6635
- class Dc extends z {
6635
+ class Fc extends z {
6636
6636
  constructor({ cause: t, nonce: n } = {}) {
6637
6637
  super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
6638
6638
  }
6639
6639
  }
6640
- Object.defineProperty(Dc, "nodeMessage", {
6640
+ Object.defineProperty(Fc, "nodeMessage", {
6641
6641
  enumerable: !0,
6642
6642
  configurable: !0,
6643
6643
  writable: !0,
6644
6644
  value: /nonce too high/
6645
6645
  });
6646
- class Oc extends z {
6646
+ class Dc extends z {
6647
6647
  constructor({ cause: t, nonce: n } = {}) {
6648
6648
  super([
6649
6649
  `Nonce provided for the transaction ${n ? `(${n}) ` : ""}is lower than the current nonce of the account.`,
@@ -6652,24 +6652,24 @@ class Oc extends z {
6652
6652
  `), { cause: t, name: "NonceTooLowError" });
6653
6653
  }
6654
6654
  }
6655
- Object.defineProperty(Oc, "nodeMessage", {
6655
+ Object.defineProperty(Dc, "nodeMessage", {
6656
6656
  enumerable: !0,
6657
6657
  configurable: !0,
6658
6658
  writable: !0,
6659
6659
  value: /nonce too low|transaction already imported|already known/
6660
6660
  });
6661
- class Mc extends z {
6661
+ class Oc extends z {
6662
6662
  constructor({ cause: t, nonce: n } = {}) {
6663
6663
  super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
6664
6664
  }
6665
6665
  }
6666
- Object.defineProperty(Mc, "nodeMessage", {
6666
+ Object.defineProperty(Oc, "nodeMessage", {
6667
6667
  enumerable: !0,
6668
6668
  configurable: !0,
6669
6669
  writable: !0,
6670
6670
  value: /nonce has max value/
6671
6671
  });
6672
- class Rc extends z {
6672
+ class Mc extends z {
6673
6673
  constructor({ cause: t } = {}) {
6674
6674
  super([
6675
6675
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -6690,13 +6690,13 @@ class Rc extends z {
6690
6690
  });
6691
6691
  }
6692
6692
  }
6693
- Object.defineProperty(Rc, "nodeMessage", {
6693
+ Object.defineProperty(Mc, "nodeMessage", {
6694
6694
  enumerable: !0,
6695
6695
  configurable: !0,
6696
6696
  writable: !0,
6697
6697
  value: /insufficient funds|exceeds transaction sender account balance/
6698
6698
  });
6699
- class Nc extends z {
6699
+ class Rc extends z {
6700
6700
  constructor({ cause: t, gas: n } = {}) {
6701
6701
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
6702
6702
  cause: t,
@@ -6704,13 +6704,13 @@ class Nc extends z {
6704
6704
  });
6705
6705
  }
6706
6706
  }
6707
- Object.defineProperty(Nc, "nodeMessage", {
6707
+ Object.defineProperty(Rc, "nodeMessage", {
6708
6708
  enumerable: !0,
6709
6709
  configurable: !0,
6710
6710
  writable: !0,
6711
6711
  value: /intrinsic gas too high|gas limit reached/
6712
6712
  });
6713
- class _c extends z {
6713
+ class Nc extends z {
6714
6714
  constructor({ cause: t, gas: n } = {}) {
6715
6715
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction is too low.`, {
6716
6716
  cause: t,
@@ -6718,13 +6718,13 @@ class _c extends z {
6718
6718
  });
6719
6719
  }
6720
6720
  }
6721
- Object.defineProperty(_c, "nodeMessage", {
6721
+ Object.defineProperty(Nc, "nodeMessage", {
6722
6722
  enumerable: !0,
6723
6723
  configurable: !0,
6724
6724
  writable: !0,
6725
6725
  value: /intrinsic gas too low/
6726
6726
  });
6727
- class zc extends z {
6727
+ class _c extends z {
6728
6728
  constructor({ cause: t }) {
6729
6729
  super("The transaction type is not supported for this chain.", {
6730
6730
  cause: t,
@@ -6732,7 +6732,7 @@ class zc extends z {
6732
6732
  });
6733
6733
  }
6734
6734
  }
6735
- Object.defineProperty(zc, "nodeMessage", {
6735
+ Object.defineProperty(_c, "nodeMessage", {
6736
6736
  enumerable: !0,
6737
6737
  configurable: !0,
6738
6738
  writable: !0,
@@ -6774,10 +6774,10 @@ function ii(e, t) {
6774
6774
  }) : Nn.nodeMessage.test(n) ? new Nn({
6775
6775
  cause: e,
6776
6776
  maxFeePerGas: t == null ? void 0 : t.maxFeePerGas
6777
- }) : Fc.nodeMessage.test(n) ? new Fc({
6777
+ }) : Ic.nodeMessage.test(n) ? new Ic({
6778
6778
  cause: e,
6779
6779
  maxFeePerGas: t == null ? void 0 : t.maxFeePerGas
6780
- }) : Dc.nodeMessage.test(n) ? new Dc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Oc.nodeMessage.test(n) ? new Oc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Mc.nodeMessage.test(n) ? new Mc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Rc.nodeMessage.test(n) ? new Rc({ cause: e }) : Nc.nodeMessage.test(n) ? new Nc({ cause: e, gas: t == null ? void 0 : t.gas }) : _c.nodeMessage.test(n) ? new _c({ cause: e, gas: t == null ? void 0 : t.gas }) : zc.nodeMessage.test(n) ? new zc({ cause: e }) : cs.nodeMessage.test(n) ? new cs({
6780
+ }) : Fc.nodeMessage.test(n) ? new Fc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Dc.nodeMessage.test(n) ? new Dc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Oc.nodeMessage.test(n) ? new Oc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Mc.nodeMessage.test(n) ? new Mc({ cause: e }) : Rc.nodeMessage.test(n) ? new Rc({ cause: e, gas: t == null ? void 0 : t.gas }) : Nc.nodeMessage.test(n) ? new Nc({ cause: e, gas: t == null ? void 0 : t.gas }) : _c.nodeMessage.test(n) ? new _c({ cause: e }) : cs.nodeMessage.test(n) ? new cs({
6781
6781
  cause: e,
6782
6782
  maxFeePerGas: t == null ? void 0 : t.maxFeePerGas,
6783
6783
  maxPriorityFeePerGas: t == null ? void 0 : t.maxPriorityFeePerGas
@@ -6834,7 +6834,7 @@ function Ot(e, t) {
6834
6834
  const n = {};
6835
6835
  return typeof e.authorizationList < "u" && (n.authorizationList = B2(e.authorizationList)), typeof e.accessList < "u" && (n.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (n.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? n.blobs = e.blobs.map((r) => Pe(r)) : n.blobs = e.blobs), typeof e.data < "u" && (n.data = e.data), e.account && (n.from = e.account.address), typeof e.from < "u" && (n.from = e.from), typeof e.gas < "u" && (n.gas = H(e.gas)), typeof e.gasPrice < "u" && (n.gasPrice = H(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (n.maxFeePerBlobGas = H(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (n.maxFeePerGas = H(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (n.maxPriorityFeePerGas = H(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (n.nonce = H(e.nonce)), typeof e.to < "u" && (n.to = e.to), typeof e.type < "u" && (n.type = P2[e.type]), typeof e.value < "u" && (n.value = H(e.value)), n;
6836
6836
  }
6837
- const $l = /* @__PURE__ */ ci("transactionRequest", Ot);
6837
+ const Ll = /* @__PURE__ */ ci("transactionRequest", Ot);
6838
6838
  function B2(e) {
6839
6839
  return e.map((t) => ({
6840
6840
  address: t.address,
@@ -6873,7 +6873,7 @@ function U2(e) {
6873
6873
  }
6874
6874
  return o;
6875
6875
  }
6876
- function Hl(e) {
6876
+ function $l(e) {
6877
6877
  if (!e)
6878
6878
  return;
6879
6879
  const t = {};
@@ -6905,7 +6905,7 @@ class W0 extends z {
6905
6905
  });
6906
6906
  }
6907
6907
  }
6908
- class Gl extends z {
6908
+ class Hl extends z {
6909
6909
  constructor() {
6910
6910
  super("Chain does not support EIP-1559 fees.", {
6911
6911
  name: "Eip1559FeesNotSupportedError"
@@ -6973,7 +6973,7 @@ function D2(e) {
6973
6973
  yParity: Number(t.yParity)
6974
6974
  }));
6975
6975
  }
6976
- function jl(e, t) {
6976
+ function Gl(e, t) {
6977
6977
  const n = (e.transactions ?? []).map((r) => typeof r == "string" ? r : Cr(r));
6978
6978
  return {
6979
6979
  ...e,
@@ -6993,7 +6993,7 @@ function jl(e, t) {
6993
6993
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
6994
6994
  };
6995
6995
  }
6996
- const Vl = /* @__PURE__ */ ci("block", jl);
6996
+ const jl = /* @__PURE__ */ ci("block", Gl);
6997
6997
  async function Pt(e, { blockHash: t, blockNumber: n, blockTag: r = e.experimental_blockTag ?? "latest", includeTransactions: s } = {}) {
6998
6998
  var l, d, p;
6999
6999
  const a = s ?? !1, o = n !== void 0 ? H(n) : void 0;
@@ -7006,9 +7006,9 @@ async function Pt(e, { blockHash: t, blockNumber: n, blockTag: r = e.experimenta
7006
7006
  params: [o || r, a]
7007
7007
  }, { dedupe: !!o }), !i)
7008
7008
  throw new X0({ blockHash: t, blockNumber: n });
7009
- return (((p = (d = (l = e.chain) == null ? void 0 : l.formatters) == null ? void 0 : d.block) == null ? void 0 : p.format) || jl)(i, "getBlock");
7009
+ return (((p = (d = (l = e.chain) == null ? void 0 : l.formatters) == null ? void 0 : d.block) == null ? void 0 : p.format) || Gl)(i, "getBlock");
7010
7010
  }
7011
- async function ql(e) {
7011
+ async function Vl(e) {
7012
7012
  const t = await e.request({
7013
7013
  method: "eth_gasPrice"
7014
7014
  });
@@ -7041,18 +7041,18 @@ async function Q0(e, t) {
7041
7041
  } catch {
7042
7042
  const [i, c] = await Promise.all([
7043
7043
  n ? Promise.resolve(n) : q(e, Pt, "getBlock")({}),
7044
- q(e, ql, "getGasPrice")({})
7044
+ q(e, Vl, "getGasPrice")({})
7045
7045
  ]);
7046
7046
  if (typeof i.baseFeePerGas != "bigint")
7047
- throw new Gl();
7047
+ throw new Hl();
7048
7048
  const l = c - i.baseFeePerGas;
7049
7049
  return l < 0n ? 0n : l;
7050
7050
  }
7051
7051
  }
7052
7052
  async function M2(e, t) {
7053
- return Lc(e, t);
7053
+ return zc(e, t);
7054
7054
  }
7055
- async function Lc(e, t) {
7055
+ async function zc(e, t) {
7056
7056
  var f, m;
7057
7057
  const { block: n, chain: r = e.chain, request: s, type: a = "eip1559" } = t || {}, o = await (async () => {
7058
7058
  var y, x;
@@ -7078,7 +7078,7 @@ async function Lc(e, t) {
7078
7078
  }
7079
7079
  if (a === "eip1559") {
7080
7080
  if (typeof d.baseFeePerGas != "bigint")
7081
- throw new Gl();
7081
+ throw new Hl();
7082
7082
  const y = typeof (s == null ? void 0 : s.maxPriorityFeePerGas) == "bigint" ? s.maxPriorityFeePerGas : await Q0(e, {
7083
7083
  block: d,
7084
7084
  chain: r,
@@ -7090,10 +7090,10 @@ async function Lc(e, t) {
7090
7090
  };
7091
7091
  }
7092
7092
  return {
7093
- gasPrice: (s == null ? void 0 : s.gasPrice) ?? l(await q(e, ql, "getGasPrice")({}))
7093
+ gasPrice: (s == null ? void 0 : s.gasPrice) ?? l(await q(e, Vl, "getGasPrice")({}))
7094
7094
  };
7095
7095
  }
7096
- async function Kl(e, { address: t, blockTag: n = "latest", blockNumber: r }) {
7096
+ async function ql(e, { address: t, blockTag: n = "latest", blockNumber: r }) {
7097
7097
  const s = await e.request({
7098
7098
  method: "eth_getTransactionCount",
7099
7099
  params: [
@@ -7105,13 +7105,13 @@ async function Kl(e, { address: t, blockTag: n = "latest", blockNumber: r }) {
7105
7105
  });
7106
7106
  return it(s);
7107
7107
  }
7108
- function Wl(e) {
7108
+ function Kl(e) {
7109
7109
  const { kzg: t } = e, n = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), r = typeof e.blobs[0] == "string" ? e.blobs.map((a) => ot(a)) : e.blobs, s = [];
7110
7110
  for (const a of r)
7111
7111
  s.push(Uint8Array.from(t.blobToKzgCommitment(a)));
7112
7112
  return n === "bytes" ? s : s.map((a) => Pe(a));
7113
7113
  }
7114
- function Xl(e) {
7114
+ function Wl(e) {
7115
7115
  const { kzg: t } = e, n = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), r = typeof e.blobs[0] == "string" ? e.blobs.map((o) => ot(o)) : e.blobs, s = typeof e.commitments[0] == "string" ? e.commitments.map((o) => ot(o)) : e.commitments, a = [];
7116
7116
  for (let o = 0; o < r.length; o++) {
7117
7117
  const i = r[o], c = s[o];
@@ -7131,9 +7131,9 @@ function N2(e, t, n) {
7131
7131
  function _2(e, t, n) {
7132
7132
  return e & t ^ e & n ^ t & n;
7133
7133
  }
7134
- class J0 extends Ul {
7134
+ class J0 extends Bl {
7135
7135
  constructor(t, n, r, s) {
7136
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(t), this.view = Gi(this.buffer);
7136
+ super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(t), this.view = Hi(this.buffer);
7137
7137
  }
7138
7138
  update(t) {
7139
7139
  ss(this), t = ti(t), lr(t);
@@ -7141,7 +7141,7 @@ class J0 extends Ul {
7141
7141
  for (let o = 0; o < a; ) {
7142
7142
  const i = Math.min(s - this.pos, a - o);
7143
7143
  if (i === s) {
7144
- const c = Gi(t);
7144
+ const c = Hi(t);
7145
7145
  for (; s <= a - o; o += s)
7146
7146
  this.process(c, o);
7147
7147
  continue;
@@ -7158,7 +7158,7 @@ class J0 extends Ul {
7158
7158
  for (let p = o; p < s; p++)
7159
7159
  n[p] = 0;
7160
7160
  R2(r, s - 8, BigInt(this.length * 8), a), this.process(r, 0);
7161
- const i = Gi(t), c = this.outputLen;
7161
+ const i = Hi(t), c = this.outputLen;
7162
7162
  if (c % 4)
7163
7163
  throw new Error("_sha2: outputLen should be aligned to 32bit");
7164
7164
  const l = c / 4, d = this.get();
@@ -7447,7 +7447,7 @@ class G2 extends ef {
7447
7447
  super(48), this.Ah = _e[0] | 0, this.Al = _e[1] | 0, this.Bh = _e[2] | 0, this.Bl = _e[3] | 0, this.Ch = _e[4] | 0, this.Cl = _e[5] | 0, this.Dh = _e[6] | 0, this.Dl = _e[7] | 0, this.Eh = _e[8] | 0, this.El = _e[9] | 0, this.Fh = _e[10] | 0, this.Fl = _e[11] | 0, this.Gh = _e[12] | 0, this.Gl = _e[13] | 0, this.Hh = _e[14] | 0, this.Hl = _e[15] | 0;
7448
7448
  }
7449
7449
  }
7450
- const Zl = /* @__PURE__ */ ni(() => new L2()), j2 = /* @__PURE__ */ ni(() => new ef()), V2 = /* @__PURE__ */ ni(() => new G2()), tf = Zl;
7450
+ const Xl = /* @__PURE__ */ ni(() => new L2()), j2 = /* @__PURE__ */ ni(() => new ef()), V2 = /* @__PURE__ */ ni(() => new G2()), tf = Xl;
7451
7451
  function nf(e, t) {
7452
7452
  const n = t || "hex", r = tf(Gt(e, { strict: !1 }) ? ln(e) : e);
7453
7453
  return n === "bytes" ? r : le(r);
@@ -7466,9 +7466,9 @@ function rf(e) {
7466
7466
  }));
7467
7467
  return s;
7468
7468
  }
7469
- const Fd = 6, sf = 32, Ql = 4096, af = sf * Ql, Dd = af * Fd - // terminator byte (0x80).
7469
+ const Fd = 6, sf = 32, Zl = 4096, af = sf * Zl, Dd = af * Fd - // terminator byte (0x80).
7470
7470
  1 - // zero byte (0x00) appended to each field element.
7471
- 1 * Ql * Fd, of = 1;
7471
+ 1 * Zl * Fd, of = 1;
7472
7472
  class K2 extends z {
7473
7473
  constructor({ maxSize: t, size: n }) {
7474
7474
  super("Blob size is too large.", {
@@ -7513,9 +7513,9 @@ function Z2(e) {
7513
7513
  const s = [];
7514
7514
  let a = !0, o = 0;
7515
7515
  for (; a; ) {
7516
- const i = Rl(new Uint8Array(af));
7516
+ const i = Ml(new Uint8Array(af));
7517
7517
  let c = 0;
7518
- for (; c < Ql; ) {
7518
+ for (; c < Zl; ) {
7519
7519
  const l = n.slice(o, o + (sf - 1));
7520
7520
  if (i.pushByte(0), i.pushBytes(l), l.length < 31) {
7521
7521
  i.pushByte(128), a = !1;
@@ -7528,7 +7528,7 @@ function Z2(e) {
7528
7528
  return t === "bytes" ? s.map((i) => i.bytes) : s.map((i) => Pe(i.bytes));
7529
7529
  }
7530
7530
  function lf(e) {
7531
- const { data: t, kzg: n, to: r } = e, s = e.blobs ?? Z2({ data: t, to: r }), a = e.commitments ?? Wl({ blobs: s, kzg: n, to: r }), o = e.proofs ?? Xl({ blobs: s, commitments: a, kzg: n, to: r }), i = [];
7531
+ const { data: t, kzg: n, to: r } = e, s = e.blobs ?? Z2({ data: t, to: r }), a = e.commitments ?? Kl({ blobs: s, kzg: n, to: r }), o = e.proofs ?? Wl({ blobs: s, commitments: a, kzg: n, to: r }), i = [];
7532
7532
  for (let c = 0; c < s.length; c++)
7533
7533
  i.push({
7534
7534
  blob: s[c],
@@ -7537,7 +7537,7 @@ function lf(e) {
7537
7537
  });
7538
7538
  return i;
7539
7539
  }
7540
- function Jl(e) {
7540
+ function Ql(e) {
7541
7541
  if (e.type)
7542
7542
  return e.type;
7543
7543
  if (typeof e.authorizationList < "u")
@@ -7566,7 +7566,7 @@ async function zn(e) {
7566
7566
  }, { dedupe: !0 });
7567
7567
  return it(t);
7568
7568
  }
7569
- async function Yl(e, t) {
7569
+ async function Jl(e, t) {
7570
7570
  var h, b, g, v, E;
7571
7571
  const { account: n = e.account, accessList: r, authorizationList: s, chain: a = e.chain, blobVersionedHashes: o, blobs: i, data: c, gas: l, gasPrice: d, maxFeePerBlobGas: p, maxFeePerGas: f, maxPriorityFeePerGas: m, nonce: y, nonceManager: x, to: S, type: B, value: k, ...U } = t, C = await (async () => {
7572
7572
  if (!n || !x || typeof y < "u")
@@ -7633,18 +7633,18 @@ async function Yl(e, t) {
7633
7633
  });
7634
7634
  }
7635
7635
  }
7636
- const eu = [
7636
+ const Yl = [
7637
7637
  "blobVersionedHashes",
7638
7638
  "chainId",
7639
7639
  "fees",
7640
7640
  "gas",
7641
7641
  "nonce",
7642
7642
  "type"
7643
- ], Od = /* @__PURE__ */ new Map(), qi = /* @__PURE__ */ new ds(128);
7643
+ ], Od = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new ds(128);
7644
7644
  async function Pa(e, t) {
7645
7645
  var C, O, N;
7646
7646
  let n = t;
7647
- n.account ?? (n.account = e.account), n.parameters ?? (n.parameters = eu);
7647
+ n.account ?? (n.account = e.account), n.parameters ?? (n.parameters = Yl);
7648
7648
  const { account: r, chain: s = e.chain, nonceManager: a, parameters: o } = n, i = (() => {
7649
7649
  if (typeof (s == null ? void 0 : s.prepareTransactionRequest) == "function")
7650
7650
  return {
@@ -7674,9 +7674,9 @@ async function Pa(e, t) {
7674
7674
  i != null && i.fn && ((C = i.runAt) != null && C.includes("beforeFillTransaction")) && (n = await i.fn({ ...n, chain: s }, {
7675
7675
  phase: "beforeFillTransaction"
7676
7676
  }), p ?? (p = n.nonce));
7677
- const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && n.kzg && n.blobs || qi.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof n.chainId != "number" || o.includes("nonce") && typeof p != "number" || o.includes("fees") && typeof n.gasPrice != "bigint" && (typeof n.maxFeePerGas != "bigint" || typeof n.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof n.gas != "bigint")) ? await q(e, Yl, "fillTransaction")({ ...n, nonce: p }).then((R) => {
7677
+ const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && n.kzg && n.blobs || Vi.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof n.chainId != "number" || o.includes("nonce") && typeof p != "number" || o.includes("fees") && typeof n.gasPrice != "bigint" && (typeof n.maxFeePerGas != "bigint" || typeof n.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof n.gas != "bigint")) ? await q(e, Jl, "fillTransaction")({ ...n, nonce: p }).then((R) => {
7678
7678
  const { chainId: h, from: b, gas: g, gasPrice: v, nonce: E, maxFeePerBlobGas: T, maxFeePerGas: D, maxPriorityFeePerGas: w, type: A, ...F } = R.transaction;
7679
- return qi.set(e.uid, !0), {
7679
+ return Vi.set(e.uid, !0), {
7680
7680
  ...n,
7681
7681
  ...b ? { from: b } : {},
7682
7682
  ...A ? { type: A } : {},
@@ -7695,7 +7695,7 @@ async function Pa(e, t) {
7695
7695
  return h.name !== "TransactionExecutionError" || ((g = h.walk) == null ? void 0 : g.call(h, (v) => {
7696
7696
  const E = v;
7697
7697
  return E.name === "MethodNotFoundRpcError" || E.name === "MethodNotSupportedRpcError";
7698
- })) && qi.set(e.uid, !1), n;
7698
+ })) && Vi.set(e.uid, !1), n;
7699
7699
  }) : n;
7700
7700
  p ?? (p = m.nonce), n = {
7701
7701
  ...m,
@@ -7710,11 +7710,11 @@ async function Pa(e, t) {
7710
7710
  async function U() {
7711
7711
  return k || (k = await q(e, Pt, "getBlock")({ blockTag: "latest" }), k);
7712
7712
  }
7713
- if (o.includes("nonce") && typeof p > "u" && d && !a && (n.nonce = await q(e, Kl, "getTransactionCount")({
7713
+ if (o.includes("nonce") && typeof p > "u" && d && !a && (n.nonce = await q(e, ql, "getTransactionCount")({
7714
7714
  address: d.address,
7715
7715
  blockTag: "pending"
7716
7716
  })), (o.includes("blobVersionedHashes") || o.includes("sidecars")) && y && S) {
7717
- const R = Wl({ blobs: y, kzg: S });
7717
+ const R = Kl({ blobs: y, kzg: S });
7718
7718
  if (o.includes("blobVersionedHashes")) {
7719
7719
  const h = rf({
7720
7720
  commitments: R,
@@ -7723,7 +7723,7 @@ async function Pa(e, t) {
7723
7723
  n.blobVersionedHashes = h;
7724
7724
  }
7725
7725
  if (o.includes("sidecars")) {
7726
- const h = Xl({ blobs: y, commitments: R, kzg: S }), b = lf({
7726
+ const h = Wl({ blobs: y, commitments: R, kzg: S }), b = lf({
7727
7727
  blobs: y,
7728
7728
  commitments: R,
7729
7729
  proofs: h,
@@ -7734,7 +7734,7 @@ async function Pa(e, t) {
7734
7734
  }
7735
7735
  if (o.includes("chainId") && (n.chainId = await l()), (o.includes("fees") || o.includes("type")) && typeof B > "u")
7736
7736
  try {
7737
- n.type = Jl(n);
7737
+ n.type = Ql(n);
7738
7738
  } catch {
7739
7739
  let R = Od.get(e.uid);
7740
7740
  if (typeof R > "u") {
@@ -7746,7 +7746,7 @@ async function Pa(e, t) {
7746
7746
  if (o.includes("fees"))
7747
7747
  if (n.type !== "legacy" && n.type !== "eip2930") {
7748
7748
  if (typeof n.maxFeePerGas > "u" || typeof n.maxPriorityFeePerGas > "u") {
7749
- const R = await U(), { maxFeePerGas: h, maxPriorityFeePerGas: b } = await Lc(e, {
7749
+ const R = await U(), { maxFeePerGas: h, maxPriorityFeePerGas: b } = await zc(e, {
7750
7750
  block: R,
7751
7751
  chain: s,
7752
7752
  request: n
@@ -7759,9 +7759,9 @@ async function Pa(e, t) {
7759
7759
  }
7760
7760
  } else {
7761
7761
  if (typeof n.maxFeePerGas < "u" || typeof n.maxPriorityFeePerGas < "u")
7762
- throw new Gl();
7762
+ throw new Hl();
7763
7763
  if (typeof n.gasPrice > "u") {
7764
- const R = await U(), { gasPrice: h } = await Lc(e, {
7764
+ const R = await U(), { gasPrice: h } = await zc(e, {
7765
7765
  block: R,
7766
7766
  chain: s,
7767
7767
  request: n,
@@ -7770,7 +7770,7 @@ async function Pa(e, t) {
7770
7770
  n.gasPrice = h;
7771
7771
  }
7772
7772
  }
7773
- return o.includes("gas") && typeof x > "u" && (n.gas = await q(e, tu, "estimateGas")({
7773
+ return o.includes("gas") && typeof x > "u" && (n.gas = await q(e, eu, "estimateGas")({
7774
7774
  ...n,
7775
7775
  account: d,
7776
7776
  prepare: (d == null ? void 0 : d.type) === "local" ? [] : ["blobVersionedHashes"]
@@ -7778,7 +7778,7 @@ async function Pa(e, t) {
7778
7778
  phase: "afterFillParameters"
7779
7779
  })), Kt(n), delete n.parameters, n;
7780
7780
  }
7781
- async function tu(e, t) {
7781
+ async function eu(e, t) {
7782
7782
  var o, i, c;
7783
7783
  const { account: n = e.account, prepare: r = !0 } = t, s = n ? me(n) : void 0, a = (() => {
7784
7784
  if (Array.isArray(r))
@@ -7803,7 +7803,7 @@ async function tu(e, t) {
7803
7803
  }) : t;
7804
7804
  if (B && t.gas !== B)
7805
7805
  return B;
7806
- const v = (typeof y == "bigint" ? H(y) : void 0) || x, E = Hl(h);
7806
+ const v = (typeof y == "bigint" ? H(y) : void 0) || x, E = $l(h);
7807
7807
  Kt(t);
7808
7808
  const T = (c = (i = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : i.transactionRequest) == null ? void 0 : c.format, w = (T || Ot)({
7809
7809
  // Pick out extra data that might exist on the chain's transaction request type.
@@ -7845,7 +7845,7 @@ async function Q2(e, t) {
7845
7845
  functionName: a
7846
7846
  });
7847
7847
  try {
7848
- return await q(e, tu, "estimateGas")({
7848
+ return await q(e, eu, "estimateGas")({
7849
7849
  data: `${c}${o ? o.replace("0x", "") : ""}`,
7850
7850
  to: r,
7851
7851
  ...i
@@ -7881,7 +7881,7 @@ function Lo(e) {
7881
7881
  for (let x = 0; x < m.length; x++) {
7882
7882
  const [S, B] = m[x], k = i[x];
7883
7883
  if (!k)
7884
- throw new Bl({
7884
+ throw new Pl({
7885
7885
  abiItem: c,
7886
7886
  param: S
7887
7887
  });
@@ -7927,7 +7927,7 @@ function Lo(e) {
7927
7927
  function J2({ param: e, value: t }) {
7928
7928
  return e.type === "string" || e.type === "bytes" || e.type === "tuple" || e.type.match(/^(.*)\[(\d+)?\]$/) ? t : (Aa([e], t) || [])[0];
7929
7929
  }
7930
- function nu(e) {
7930
+ function tu(e) {
7931
7931
  const { abi: t, args: n, logs: r, strict: s = !0 } = e, a = (() => {
7932
7932
  if (e.eventName)
7933
7933
  return Array.isArray(e.eventName) ? e.eventName : [e.eventName];
@@ -8009,7 +8009,7 @@ function Vt(e, { args: t, eventName: n } = {}) {
8009
8009
  ...n ? { args: t, eventName: n } : {}
8010
8010
  };
8011
8011
  }
8012
- async function ru(e, { address: t, blockHash: n, fromBlock: r, toBlock: s, event: a, events: o, args: i, strict: c } = {}) {
8012
+ async function nu(e, { address: t, blockHash: n, fromBlock: r, toBlock: s, event: a, events: o, args: i, strict: c } = {}) {
8013
8013
  const l = c ?? !1, d = o ?? (a ? [a] : void 0);
8014
8014
  let p = [];
8015
8015
  d && (p = [d.flatMap((x) => va({
@@ -8033,7 +8033,7 @@ async function ru(e, { address: t, blockHash: n, fromBlock: r, toBlock: s, event
8033
8033
  ]
8034
8034
  });
8035
8035
  const m = f.map((y) => Vt(y));
8036
- return d ? nu({
8036
+ return d ? tu({
8037
8037
  abi: d,
8038
8038
  args: i,
8039
8039
  logs: m,
@@ -8042,7 +8042,7 @@ async function ru(e, { address: t, blockHash: n, fromBlock: r, toBlock: s, event
8042
8042
  }
8043
8043
  async function uf(e, t) {
8044
8044
  const { abi: n, address: r, args: s, blockHash: a, eventName: o, fromBlock: i, toBlock: c, strict: l } = t, d = o ? Er({ abi: n, name: o }) : void 0, p = d ? void 0 : n.filter((f) => f.type === "event");
8045
- return q(e, ru, "getLogs")({
8045
+ return q(e, nu, "getLogs")({
8046
8046
  address: r,
8047
8047
  args: s,
8048
8048
  blockHash: a,
@@ -8053,20 +8053,20 @@ async function uf(e, t) {
8053
8053
  strict: l
8054
8054
  });
8055
8055
  }
8056
- const Ki = "/docs/contract/decodeFunctionResult";
8056
+ const qi = "/docs/contract/decodeFunctionResult";
8057
8057
  function vr(e) {
8058
8058
  const { abi: t, args: n, functionName: r, data: s } = e;
8059
8059
  let a = t[0];
8060
8060
  if (r) {
8061
8061
  const i = Er({ abi: t, args: n, name: r });
8062
8062
  if (!i)
8063
- throw new ns(r, { docsPath: Ki });
8063
+ throw new ns(r, { docsPath: qi });
8064
8064
  a = i;
8065
8065
  }
8066
8066
  if (a.type !== "function")
8067
- throw new ns(void 0, { docsPath: Ki });
8067
+ throw new ns(void 0, { docsPath: qi });
8068
8068
  if (!a.outputs)
8069
- throw new y0(a.name, { docsPath: Ki });
8069
+ throw new y0(a.name, { docsPath: qi });
8070
8070
  const o = Aa(a.outputs, s);
8071
8071
  if (o && o.length > 1)
8072
8072
  return o;
@@ -8074,11 +8074,11 @@ function vr(e) {
8074
8074
  return o[0];
8075
8075
  }
8076
8076
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
8077
- const su = /* @__PURE__ */ BigInt(0), $c = /* @__PURE__ */ BigInt(1);
8077
+ const ru = /* @__PURE__ */ BigInt(0), Lc = /* @__PURE__ */ BigInt(1);
8078
8078
  function Ua(e) {
8079
8079
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
8080
8080
  }
8081
- function au(e) {
8081
+ function su(e) {
8082
8082
  if (!Ua(e))
8083
8083
  throw new Error("Uint8Array expected");
8084
8084
  }
@@ -8093,14 +8093,14 @@ function Xa(e) {
8093
8093
  function df(e) {
8094
8094
  if (typeof e != "string")
8095
8095
  throw new Error("hex string expected, got " + typeof e);
8096
- return e === "" ? su : BigInt("0x" + e);
8096
+ return e === "" ? ru : BigInt("0x" + e);
8097
8097
  }
8098
8098
  const pf = (
8099
8099
  // @ts-ignore
8100
8100
  typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function"
8101
8101
  ), e5 = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
8102
8102
  function ia(e) {
8103
- if (au(e), pf)
8103
+ if (su(e), pf)
8104
8104
  return e.toHex();
8105
8105
  let t = "";
8106
8106
  for (let n = 0; n < e.length; n++)
@@ -8139,7 +8139,7 @@ function or(e) {
8139
8139
  return df(ia(e));
8140
8140
  }
8141
8141
  function ff(e) {
8142
- return au(e), df(ia(Uint8Array.from(e).reverse()));
8142
+ return su(e), df(ia(Uint8Array.from(e).reverse()));
8143
8143
  }
8144
8144
  function Ia(e, t) {
8145
8145
  return $o(e.toString(16).padStart(t * 2, "0"));
@@ -8168,7 +8168,7 @@ function Ho(...e) {
8168
8168
  let t = 0;
8169
8169
  for (let r = 0; r < e.length; r++) {
8170
8170
  const s = e[r];
8171
- au(s), t += s.length;
8171
+ su(s), t += s.length;
8172
8172
  }
8173
8173
  const n = new Uint8Array(t);
8174
8174
  for (let r = 0, s = 0; r < e.length; r++) {
@@ -8177,21 +8177,21 @@ function Ho(...e) {
8177
8177
  }
8178
8178
  return n;
8179
8179
  }
8180
- const Wi = (e) => typeof e == "bigint" && su <= e;
8181
- function ou(e, t, n) {
8182
- return Wi(e) && Wi(t) && Wi(n) && t <= e && e < n;
8180
+ const Ki = (e) => typeof e == "bigint" && ru <= e;
8181
+ function au(e, t, n) {
8182
+ return Ki(e) && Ki(t) && Ki(n) && t <= e && e < n;
8183
8183
  }
8184
8184
  function zr(e, t, n, r) {
8185
- if (!ou(t, n, r))
8185
+ if (!au(t, n, r))
8186
8186
  throw new Error("expected valid " + e + ": " + n + " <= n < " + r + ", got " + t);
8187
8187
  }
8188
8188
  function t5(e) {
8189
8189
  let t;
8190
- for (t = 0; e > su; e >>= $c, t += 1)
8190
+ for (t = 0; e > ru; e >>= Lc, t += 1)
8191
8191
  ;
8192
8192
  return t;
8193
8193
  }
8194
- const di = (e) => ($c << BigInt(e)) - $c, Xi = (e) => new Uint8Array(e), Nd = (e) => Uint8Array.from(e);
8194
+ const di = (e) => (Lc << BigInt(e)) - Lc, Wi = (e) => new Uint8Array(e), Nd = (e) => Uint8Array.from(e);
8195
8195
  function n5(e, t, n) {
8196
8196
  if (typeof e != "number" || e < 2)
8197
8197
  throw new Error("hashLen must be a number");
@@ -8199,10 +8199,10 @@ function n5(e, t, n) {
8199
8199
  throw new Error("qByteLen must be a number");
8200
8200
  if (typeof n != "function")
8201
8201
  throw new Error("hmacFn must be a function");
8202
- let r = Xi(e), s = Xi(e), a = 0;
8202
+ let r = Wi(e), s = Wi(e), a = 0;
8203
8203
  const o = () => {
8204
8204
  r.fill(1), s.fill(0), a = 0;
8205
- }, i = (...p) => n(s, r, ...p), c = (p = Xi(0)) => {
8205
+ }, i = (...p) => n(s, r, ...p), c = (p = Wi(0)) => {
8206
8206
  s = i(Nd([0]), p), r = i(), p.length !== 0 && (s = i(Nd([1]), p), r = i());
8207
8207
  }, l = () => {
8208
8208
  if (a++ >= 1e3)
@@ -8472,7 +8472,7 @@ function m5(...e) {
8472
8472
  }
8473
8473
  return n;
8474
8474
  }
8475
- function iu(e) {
8475
+ function ou(e) {
8476
8476
  return e instanceof Uint8Array ? e : typeof e == "string" ? Ln(e) : h5(e);
8477
8477
  }
8478
8478
  function h5(e) {
@@ -8660,7 +8660,7 @@ function oe(e, t, n, r = {}) {
8660
8660
  function Ae(e) {
8661
8661
  return Math.ceil((e.length - 2) / 2);
8662
8662
  }
8663
- function Hc(e) {
8663
+ function $c(e) {
8664
8664
  return l5(e, { dir: "left" });
8665
8665
  }
8666
8666
  function Ce(e, t = {}) {
@@ -8858,7 +8858,7 @@ const Go = [
8858
8858
  stateMutability: "view",
8859
8859
  type: "function"
8860
8860
  }
8861
- ], Gc = [
8861
+ ], Hc = [
8862
8862
  {
8863
8863
  name: "query",
8864
8864
  type: "function",
@@ -9315,8 +9315,8 @@ const Go = [
9315
9315
  }
9316
9316
  ]
9317
9317
  }
9318
- ], O5 = "0x82ad56cb", If = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe", M5 = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe", R5 = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572", cu = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
9319
- class jc extends z {
9318
+ ], O5 = "0x82ad56cb", If = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe", M5 = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe", R5 = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572", iu = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
9319
+ class Gc extends z {
9320
9320
  constructor({ blockNumber: t, chain: n, contract: r }) {
9321
9321
  super(`Chain "${n.name}" does not support contract "${r.name}".`, {
9322
9322
  metaMessages: [
@@ -9365,18 +9365,18 @@ let fs = class extends z {
9365
9365
  super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
9366
9366
  }
9367
9367
  };
9368
- const Zi = "/docs/contract/encodeDeployData";
9368
+ const Xi = "/docs/contract/encodeDeployData";
9369
9369
  function hi(e) {
9370
9370
  const { abi: t, args: n, bytecode: r } = e;
9371
9371
  if (!n || n.length === 0)
9372
9372
  return r;
9373
9373
  const s = t.find((o) => "type" in o && o.type === "constructor");
9374
9374
  if (!s)
9375
- throw new By({ docsPath: Zi });
9375
+ throw new By({ docsPath: Xi });
9376
9376
  if (!("inputs" in s))
9377
- throw new pd({ docsPath: Zi });
9377
+ throw new pd({ docsPath: Xi });
9378
9378
  if (!s.inputs || s.inputs.length === 0)
9379
- throw new pd({ docsPath: Zi });
9379
+ throw new pd({ docsPath: Xi });
9380
9380
  const a = wr(s.inputs, n);
9381
9381
  return ct([r, a]);
9382
9382
  }
@@ -9384,12 +9384,12 @@ function ms({ blockNumber: e, chain: t, contract: n }) {
9384
9384
  var s;
9385
9385
  const r = (s = t == null ? void 0 : t.contracts) == null ? void 0 : s[n];
9386
9386
  if (!r)
9387
- throw new jc({
9387
+ throw new Gc({
9388
9388
  chain: t,
9389
9389
  contract: { name: n }
9390
9390
  });
9391
9391
  if (e && r.blockCreated && r.blockCreated > e)
9392
- throw new jc({
9392
+ throw new Gc({
9393
9393
  blockNumber: e,
9394
9394
  chain: t,
9395
9395
  contract: {
@@ -9399,7 +9399,7 @@ function ms({ blockNumber: e, chain: t, contract: n }) {
9399
9399
  });
9400
9400
  return r.address;
9401
9401
  }
9402
- function lu(e, { docsPath: t, ...n }) {
9402
+ function cu(e, { docsPath: t, ...n }) {
9403
9403
  const r = (() => {
9404
9404
  const s = ii(e, n);
9405
9405
  return s instanceof Sa ? e : s;
@@ -9409,7 +9409,7 @@ function lu(e, { docsPath: t, ...n }) {
9409
9409
  ...n
9410
9410
  });
9411
9411
  }
9412
- function uu() {
9412
+ function lu() {
9413
9413
  let e = () => {
9414
9414
  }, t = () => {
9415
9415
  };
@@ -9417,7 +9417,7 @@ function uu() {
9417
9417
  e = r, t = s;
9418
9418
  }), resolve: e, reject: t };
9419
9419
  }
9420
- const Qi = /* @__PURE__ */ new Map();
9420
+ const Zi = /* @__PURE__ */ new Map();
9421
9421
  function Df({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
9422
9422
  const a = async () => {
9423
9423
  const d = c();
@@ -9435,11 +9435,11 @@ function Df({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
9435
9435
  y == null || y(f);
9436
9436
  }
9437
9437
  });
9438
- }, o = () => Qi.delete(t), i = () => c().map(({ args: d }) => d), c = () => Qi.get(t) || [], l = (d) => Qi.set(t, [...c(), d]);
9438
+ }, o = () => Zi.delete(t), i = () => c().map(({ args: d }) => d), c = () => Zi.get(t) || [], l = (d) => Zi.set(t, [...c(), d]);
9439
9439
  return {
9440
9440
  flush: o,
9441
9441
  async schedule(d) {
9442
- const { promise: p, resolve: f, reject: m } = uu();
9442
+ const { promise: p, resolve: f, reject: m } = lu();
9443
9443
  return (n == null ? void 0 : n([...i(), d])) && a(), c().length > 0 ? (l({ args: d, resolve: f, reject: m }), p) : (l({ args: d, resolve: f, reject: m }), setTimeout(a, r), p);
9444
9444
  }
9445
9445
  };
@@ -9462,7 +9462,7 @@ async function bi(e, t) {
9462
9462
  }) : p;
9463
9463
  try {
9464
9464
  Kt(t);
9465
- const P = (typeof a == "bigint" ? H(a) : void 0) || o, M = l ? Tf(l) : void 0, L = Hl(N), G = (A = (w = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : w.transactionRequest) == null ? void 0 : A.format, se = (G || Ot)({
9465
+ const P = (typeof a == "bigint" ? H(a) : void 0) || o, M = l ? Tf(l) : void 0, L = $l(N), G = (A = (w = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : w.transactionRequest) == null ? void 0 : A.format, se = (G || Ot)({
9466
9466
  // Pick out extra data that might exist on the chain's transaction request type.
9467
9467
  ...kr(R, { format: G }),
9468
9468
  accessList: i,
@@ -9487,7 +9487,7 @@ async function bi(e, t) {
9487
9487
  blockTag: o
9488
9488
  });
9489
9489
  } catch (Y) {
9490
- if (!(Y instanceof Ff) && !(Y instanceof jc))
9490
+ if (!(Y instanceof Ff) && !(Y instanceof Gc))
9491
9491
  throw Y;
9492
9492
  }
9493
9493
  const ie = (() => {
@@ -9502,10 +9502,10 @@ async function bi(e, t) {
9502
9502
  });
9503
9503
  return Q === "0x" ? { data: void 0 } : { data: Q };
9504
9504
  } catch (F) {
9505
- const P = H5(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-Dot5nDzd.js");
9505
+ const P = H5(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-BFWceBrS.js");
9506
9506
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === L && C)
9507
9507
  return { data: await M(e, { data: P, to: C }) };
9508
- throw v && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new y2({ factory: f }) : lu(F, {
9508
+ throw v && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new y2({ factory: f }) : cu(F, {
9509
9509
  ...t,
9510
9510
  account: h,
9511
9511
  chain: e.chain
@@ -9551,7 +9551,7 @@ async function L5(e, t) {
9551
9551
  {
9552
9552
  ...l === null ? {
9553
9553
  data: Of({
9554
- code: cu,
9554
+ code: iu,
9555
9555
  data: k
9556
9556
  })
9557
9557
  } : { to: l, data: k }
@@ -9660,12 +9660,12 @@ async function G5(e, t) {
9660
9660
  });
9661
9661
  }
9662
9662
  }
9663
- const Ji = /* @__PURE__ */ new Map(), Vd = /* @__PURE__ */ new Map();
9663
+ const Qi = /* @__PURE__ */ new Map(), Vd = /* @__PURE__ */ new Map();
9664
9664
  let j5 = 0;
9665
9665
  function mn(e, t, n) {
9666
- const r = ++j5, s = () => Ji.get(e) || [], a = () => {
9666
+ const r = ++j5, s = () => Qi.get(e) || [], a = () => {
9667
9667
  const d = s();
9668
- Ji.set(e, d.filter((p) => p.id !== r));
9668
+ Qi.set(e, d.filter((p) => p.id !== r));
9669
9669
  }, o = () => {
9670
9670
  const d = s();
9671
9671
  if (!d.some((f) => f.id === r))
@@ -9678,7 +9678,7 @@ function mn(e, t, n) {
9678
9678
  }
9679
9679
  a();
9680
9680
  }, i = s();
9681
- if (Ji.set(e, [
9681
+ if (Qi.set(e, [
9682
9682
  ...i,
9683
9683
  { id: r, fns: t }
9684
9684
  ]), i && i.length > 0)
@@ -9695,7 +9695,7 @@ function mn(e, t, n) {
9695
9695
  const l = n(c);
9696
9696
  return typeof l == "function" && Vd.set(e, l), o;
9697
9697
  }
9698
- async function Vc(e) {
9698
+ async function jc(e) {
9699
9699
  return new Promise((t) => setTimeout(t, e));
9700
9700
  }
9701
9701
  function hs(e, { emitOnBegin: t, initialWaitTime: n, interval: r }) {
@@ -9705,9 +9705,9 @@ function hs(e, { emitOnBegin: t, initialWaitTime: n, interval: r }) {
9705
9705
  let i;
9706
9706
  t && (i = await e({ unpoll: a }));
9707
9707
  const c = await (n == null ? void 0 : n(i)) ?? r;
9708
- await Vc(c);
9708
+ await jc(c);
9709
9709
  const l = async () => {
9710
- s && (await e({ unpoll: a }), await Vc(r), l());
9710
+ s && (await e({ unpoll: a }), await jc(r), l());
9711
9711
  };
9712
9712
  l();
9713
9713
  })(), a;
@@ -9755,7 +9755,7 @@ async function yi(e, { filter: t }) {
9755
9755
  if (typeof r[0] == "string")
9756
9756
  return r;
9757
9757
  const s = r.map((a) => Vt(a));
9758
- return !("abi" in t) || !t.abi ? s : nu({
9758
+ return !("abi" in t) || !t.abi ? s : tu({
9759
9759
  abi: t.abi,
9760
9760
  logs: s,
9761
9761
  strict: n
@@ -9880,7 +9880,7 @@ function Z5(e, t) {
9880
9880
  C.onLogs([T]);
9881
9881
  } catch (v) {
9882
9882
  let E, T;
9883
- if (v instanceof zo || v instanceof Bl) {
9883
+ if (v instanceof zo || v instanceof Pl) {
9884
9884
  if (f)
9885
9885
  return;
9886
9886
  E = v.abiItem.name, T = (g = v.abiItem.inputs) == null ? void 0 : g.some((w) => !("name" in w && w.name));
@@ -9926,19 +9926,19 @@ class ir extends z {
9926
9926
  });
9927
9927
  }
9928
9928
  }
9929
- function du({ chain: e, currentChainId: t }) {
9929
+ function uu({ chain: e, currentChainId: t }) {
9930
9930
  if (!e)
9931
9931
  throw new _5();
9932
9932
  if (t !== e.id)
9933
9933
  throw new N5({ chain: e, currentChainId: t });
9934
9934
  }
9935
- async function pu(e, { serializedTransaction: t }) {
9935
+ async function du(e, { serializedTransaction: t }) {
9936
9936
  return e.request({
9937
9937
  method: "eth_sendRawTransaction",
9938
9938
  params: [t]
9939
9939
  }, { retryCount: 0 });
9940
9940
  }
9941
- const Yi = new ds(128);
9941
+ const Ji = new ds(128);
9942
9942
  async function gi(e, t) {
9943
9943
  var k, U, C, O;
9944
9944
  const { account: n = e.account, chain: r = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: d, maxFeePerGas: p, maxPriorityFeePerGas: f, nonce: m, type: y, value: x, ...S } = t;
@@ -9961,7 +9961,7 @@ async function gi(e, t) {
9961
9961
  })();
9962
9962
  if ((B == null ? void 0 : B.type) === "json-rpc" || B === null) {
9963
9963
  let R;
9964
- r !== null && (R = await q(e, zn, "getChainId")({}), du({
9964
+ r !== null && (R = await q(e, zn, "getChainId")({}), uu({
9965
9965
  currentChainId: R,
9966
9966
  chain: r
9967
9967
  }));
@@ -9983,7 +9983,7 @@ async function gi(e, t) {
9983
9983
  to: N,
9984
9984
  type: y,
9985
9985
  value: x
9986
- }, "sendTransaction"), v = Yi.get(e.uid), E = v ? "wallet_sendTransaction" : "eth_sendTransaction";
9986
+ }, "sendTransaction"), v = Ji.get(e.uid), E = v ? "wallet_sendTransaction" : "eth_sendTransaction";
9987
9987
  try {
9988
9988
  return await e.request({
9989
9989
  method: E,
@@ -9997,9 +9997,9 @@ async function gi(e, t) {
9997
9997
  return await e.request({
9998
9998
  method: "wallet_sendTransaction",
9999
9999
  params: [g]
10000
- }, { retryCount: 0 }).then((w) => (Yi.set(e.uid, !0), w)).catch((w) => {
10000
+ }, { retryCount: 0 }).then((w) => (Ji.set(e.uid, !0), w)).catch((w) => {
10001
10001
  const A = w;
10002
- throw A.name === "MethodNotFoundRpcError" || A.name === "MethodNotSupportedRpcError" ? (Yi.set(e.uid, !1), D) : A;
10002
+ throw A.name === "MethodNotFoundRpcError" || A.name === "MethodNotSupportedRpcError" ? (Ji.set(e.uid, !1), D) : A;
10003
10003
  });
10004
10004
  throw D;
10005
10005
  }
@@ -10019,7 +10019,7 @@ async function gi(e, t) {
10019
10019
  maxPriorityFeePerGas: f,
10020
10020
  nonce: m,
10021
10021
  nonceManager: B.nonceManager,
10022
- parameters: [...eu, "sidecars"],
10022
+ parameters: [...Yl, "sidecars"],
10023
10023
  type: y,
10024
10024
  value: x,
10025
10025
  ...S,
@@ -10027,7 +10027,7 @@ async function gi(e, t) {
10027
10027
  }), h = (O = r == null ? void 0 : r.serializers) == null ? void 0 : O.transaction, b = await B.signTransaction(R, {
10028
10028
  serializer: h
10029
10029
  });
10030
- return await q(e, pu, "sendRawTransaction")({
10030
+ return await q(e, du, "sendRawTransaction")({
10031
10031
  serializedTransaction: b
10032
10032
  });
10033
10033
  }
@@ -10101,7 +10101,7 @@ function jo(e, { delay: t = 100, retryCount: n = 2, shouldRetry: r = () => !0 }
10101
10101
  const o = async ({ count: i = 0 } = {}) => {
10102
10102
  const c = async ({ error: l }) => {
10103
10103
  const d = typeof t == "function" ? t({ count: i, error: l }) : t;
10104
- d && await Vc(d), o({ count: i + 1 });
10104
+ d && await jc(d), o({ count: i + 1 });
10105
10105
  };
10106
10106
  try {
10107
10107
  const l = await e();
@@ -10135,7 +10135,7 @@ function wi(e, t) {
10135
10135
  };
10136
10136
  return e.blobGasPrice && (n.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (n.blobGasUsed = BigInt(e.blobGasUsed)), n;
10137
10137
  }
10138
- const fu = /* @__PURE__ */ ci("transactionReceipt", wi), Rf = "0x5792579257925792579257925792579257925792579257925792579257925792", Nf = H(0, {
10138
+ const pu = /* @__PURE__ */ ci("transactionReceipt", wi), Rf = "0x5792579257925792579257925792579257925792579257925792579257925792", Nf = H(0, {
10139
10139
  size: 32
10140
10140
  });
10141
10141
  async function _f(e, t) {
@@ -10217,7 +10217,7 @@ async function _f(e, t) {
10217
10217
  async function zf(e, t) {
10218
10218
  async function n(d) {
10219
10219
  if (d.endsWith(Rf.slice(2))) {
10220
- const f = tt(Pc(d, -64, -32)), m = Pc(d, 0, -64).slice(2).match(/.{1,64}/g), y = await Promise.all(m.map((S) => Nf.slice(2) !== S ? e.request({
10220
+ const f = tt(Sc(d, -64, -32)), m = Sc(d, 0, -64).slice(2).match(/.{1,64}/g), y = await Promise.all(m.map((S) => Nf.slice(2) !== S ? e.request({
10221
10221
  method: "eth_getTransactionReceipt",
10222
10222
  params: [`0x${S}`]
10223
10223
  }, { dedupe: !0 }) : void 0)), x = y.some((S) => S === null) ? 100 : y.every((S) => (S == null ? void 0 : S.status) === "0x1") ? 200 : y.every((S) => (S == null ? void 0 : S.status) === "0x0") ? 500 : 600;
@@ -10264,7 +10264,7 @@ async function Lf(e, t) {
10264
10264
  // exponential backoff
10265
10265
  timeout: i = 6e4,
10266
10266
  throwOnFailure: c = !1
10267
- } = t, l = Ie(["waitForCallsStatus", e.uid, n]), { promise: d, resolve: p, reject: f } = uu();
10267
+ } = t, l = Ie(["waitForCallsStatus", e.uid, n]), { promise: d, resolve: p, reject: f } = lu();
10268
10268
  let m;
10269
10269
  const y = mn(l, { resolve: p, reject: f }, (x) => {
10270
10270
  const S = hs(async () => {
@@ -10302,12 +10302,12 @@ class J5 extends z {
10302
10302
  super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`, { name: "WaitForCallsStatusTimeoutError" });
10303
10303
  }
10304
10304
  }
10305
- const qc = 256;
10306
- let Qa = qc, Ja;
10305
+ const Vc = 256;
10306
+ let Qa = Vc, Ja;
10307
10307
  function $f(e = 11) {
10308
- if (!Ja || Qa + e > qc * 2) {
10308
+ if (!Ja || Qa + e > Vc * 2) {
10309
10309
  Ja = "", Qa = 0;
10310
- for (let t = 0; t < qc; t++)
10310
+ for (let t = 0; t < Vc; t++)
10311
10311
  Ja += (256 + Math.random() * 256 | 0).toString(16).substring(1);
10312
10312
  }
10313
10313
  return Ja.substring(Qa, Qa++ + e);
@@ -10343,12 +10343,12 @@ function Hf(e) {
10343
10343
  }
10344
10344
  return Object.assign(B, { extend: k(B) });
10345
10345
  }
10346
- function mu(e) {
10346
+ function fu(e) {
10347
10347
  var n, r, s, a, o, i;
10348
10348
  if (!(e instanceof z))
10349
10349
  return !1;
10350
- const t = e.walk((c) => c instanceof Ic);
10351
- return t instanceof Ic ? ((n = t.data) == null ? void 0 : n.errorName) === "HttpError" || ((r = t.data) == null ? void 0 : r.errorName) === "ResolverError" || ((s = t.data) == null ? void 0 : s.errorName) === "ResolverNotContract" || ((a = t.data) == null ? void 0 : a.errorName) === "ResolverNotFound" || ((o = t.data) == null ? void 0 : o.errorName) === "ReverseAddressMismatch" || ((i = t.data) == null ? void 0 : i.errorName) === "UnsupportedResolverProfile" : !1;
10350
+ const t = e.walk((c) => c instanceof Uc);
10351
+ return t instanceof Uc ? ((n = t.data) == null ? void 0 : n.errorName) === "HttpError" || ((r = t.data) == null ? void 0 : r.errorName) === "ResolverError" || ((s = t.data) == null ? void 0 : s.errorName) === "ResolverNotContract" || ((a = t.data) == null ? void 0 : a.errorName) === "ResolverNotFound" || ((o = t.data) == null ? void 0 : o.errorName) === "ReverseAddressMismatch" || ((i = t.data) == null ? void 0 : i.errorName) === "UnsupportedResolverProfile" : !1;
10352
10352
  }
10353
10353
  function Y5(e) {
10354
10354
  const { abi: t, data: n } = e, r = ur(n, 0, 4), s = t.find((a) => a.type === "function" && r === Ca(Ut(a)));
@@ -10361,41 +10361,41 @@ function Y5(e) {
10361
10361
  args: "inputs" in s && s.inputs && s.inputs.length > 0 ? Aa(s.inputs, ur(n, 4)) : void 0
10362
10362
  };
10363
10363
  }
10364
- const ec = "/docs/contract/encodeErrorResult";
10364
+ const Yi = "/docs/contract/encodeErrorResult";
10365
10365
  function qd(e) {
10366
10366
  const { abi: t, errorName: n, args: r } = e;
10367
10367
  let s = t[0];
10368
10368
  if (n) {
10369
10369
  const c = Er({ abi: t, args: r, name: n });
10370
10370
  if (!c)
10371
- throw new fd(n, { docsPath: ec });
10371
+ throw new fd(n, { docsPath: Yi });
10372
10372
  s = c;
10373
10373
  }
10374
10374
  if (s.type !== "error")
10375
- throw new fd(void 0, { docsPath: ec });
10375
+ throw new fd(void 0, { docsPath: Yi });
10376
10376
  const a = Ut(s), o = Ca(a);
10377
10377
  let i = "0x";
10378
10378
  if (r && r.length > 0) {
10379
10379
  if (!s.inputs)
10380
- throw new Dy(s.name, { docsPath: ec });
10380
+ throw new Dy(s.name, { docsPath: Yi });
10381
10381
  i = wr(s.inputs, r);
10382
10382
  }
10383
10383
  return ct([o, i]);
10384
10384
  }
10385
- const tc = "/docs/contract/encodeFunctionResult";
10385
+ const ec = "/docs/contract/encodeFunctionResult";
10386
10386
  function ex(e) {
10387
10387
  const { abi: t, functionName: n, result: r } = e;
10388
10388
  let s = t[0];
10389
10389
  if (n) {
10390
10390
  const o = Er({ abi: t, name: n });
10391
10391
  if (!o)
10392
- throw new ns(n, { docsPath: tc });
10392
+ throw new ns(n, { docsPath: ec });
10393
10393
  s = o;
10394
10394
  }
10395
10395
  if (s.type !== "function")
10396
- throw new ns(void 0, { docsPath: tc });
10396
+ throw new ns(void 0, { docsPath: ec });
10397
10397
  if (!s.outputs)
10398
- throw new y0(s.name, { docsPath: tc });
10398
+ throw new y0(s.name, { docsPath: ec });
10399
10399
  const a = (() => {
10400
10400
  if (s.outputs.length === 0)
10401
10401
  return [];
@@ -10409,7 +10409,7 @@ function ex(e) {
10409
10409
  }
10410
10410
  const Ei = "x-batch-gateway:true";
10411
10411
  async function tx(e) {
10412
- const { data: t, ccipRequest: n } = e, { args: [r] } = Y5({ abi: Gc, data: t }), s = [], a = [];
10412
+ const { data: t, ccipRequest: n } = e, { args: [r] } = Y5({ abi: Hc, data: t }), s = [], a = [];
10413
10413
  return await Promise.all(r.map(async (o, i) => {
10414
10414
  try {
10415
10415
  a[i] = o.urls.includes(Ei) ? await tx({ data: o.data, ccipRequest: n }) : await n(o), s[i] = !1;
@@ -10417,14 +10417,14 @@ async function tx(e) {
10417
10417
  s[i] = !0, a[i] = nx(c);
10418
10418
  }
10419
10419
  })), ex({
10420
- abi: Gc,
10420
+ abi: Hc,
10421
10421
  functionName: "query",
10422
10422
  result: [s, a]
10423
10423
  });
10424
10424
  }
10425
10425
  function nx(e) {
10426
10426
  return e.name === "HttpRequestError" && e.status ? qd({
10427
- abi: Gc,
10427
+ abi: Hc,
10428
10428
  errorName: "HttpError",
10429
10429
  args: [e.status, e.shortMessage]
10430
10430
  }) : qd({
@@ -10439,7 +10439,7 @@ function Gf(e) {
10439
10439
  const t = `0x${e.slice(1, 65)}`;
10440
10440
  return Gt(t) ? t : null;
10441
10441
  }
10442
- function Kc(e) {
10442
+ function qc(e) {
10443
10443
  let t = new Uint8Array(32).fill(0);
10444
10444
  if (!e)
10445
10445
  return Pe(t);
@@ -10457,7 +10457,7 @@ function sx(e) {
10457
10457
  const t = new Uint8Array(32).fill(0);
10458
10458
  return e ? Gf(e) || Ne(ar(e)) : Pe(t);
10459
10459
  }
10460
- function hu(e) {
10460
+ function mu(e) {
10461
10461
  const t = e.replace(/^\.|\.$/gm, "");
10462
10462
  if (t.length === 0)
10463
10463
  return new Uint8Array(1);
@@ -10484,7 +10484,7 @@ async function ax(e, t) {
10484
10484
  })(), d = c == null ? void 0 : c.ensTlds;
10485
10485
  if (d && !d.some((f) => a.endsWith(f)))
10486
10486
  return null;
10487
- const p = s != null ? [Kc(a), BigInt(s)] : [Kc(a)];
10487
+ const p = s != null ? [qc(a), BigInt(s)] : [qc(a)];
10488
10488
  try {
10489
10489
  const f = lt({
10490
10490
  abi: Gd,
@@ -10495,7 +10495,7 @@ async function ax(e, t) {
10495
10495
  abi: Pf,
10496
10496
  functionName: "resolveWithGateways",
10497
10497
  args: [
10498
- le(hu(a)),
10498
+ le(mu(a)),
10499
10499
  f,
10500
10500
  o ?? [Ei]
10501
10501
  ],
@@ -10514,7 +10514,7 @@ async function ax(e, t) {
10514
10514
  } catch (f) {
10515
10515
  if (i)
10516
10516
  throw f;
10517
- if (mu(f))
10517
+ if (fu(f))
10518
10518
  return null;
10519
10519
  throw f;
10520
10520
  }
@@ -10538,7 +10538,7 @@ class Cs extends z {
10538
10538
  });
10539
10539
  }
10540
10540
  }
10541
- class bu extends z {
10541
+ class hu extends z {
10542
10542
  constructor({ uri: t }) {
10543
10543
  super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`, { name: "EnsAvatarUriResolutionError" });
10544
10544
  }
@@ -10599,7 +10599,7 @@ function jf({ uri: e, gatewayUrls: t }) {
10599
10599
  isOnChain: !0,
10600
10600
  isEncoded: !1
10601
10601
  };
10602
- throw new bu({ uri: e });
10602
+ throw new hu({ uri: e });
10603
10603
  }
10604
10604
  function Vf(e) {
10605
10605
  if (typeof e != "object" || !("image" in e) && !("image_url" in e) && !("image_data" in e))
@@ -10609,19 +10609,19 @@ function Vf(e) {
10609
10609
  async function fx({ gatewayUrls: e, uri: t }) {
10610
10610
  try {
10611
10611
  const n = await fetch(t).then((s) => s.json());
10612
- return await yu({
10612
+ return await bu({
10613
10613
  gatewayUrls: e,
10614
10614
  uri: Vf(n)
10615
10615
  });
10616
10616
  } catch {
10617
- throw new bu({ uri: t });
10617
+ throw new hu({ uri: t });
10618
10618
  }
10619
10619
  }
10620
- async function yu({ gatewayUrls: e, uri: t }) {
10620
+ async function bu({ gatewayUrls: e, uri: t }) {
10621
10621
  const { uri: n, isOnChain: r } = jf({ uri: t, gatewayUrls: e });
10622
10622
  if (r || await px(n))
10623
10623
  return n;
10624
- throw new bu({ uri: t });
10624
+ throw new hu({ uri: t });
10625
10625
  }
10626
10626
  function mx(e) {
10627
10627
  let t = e;
@@ -10680,7 +10680,7 @@ async function hx(e, { nft: t }) {
10680
10680
  throw new ix({ namespace: t.namespace });
10681
10681
  }
10682
10682
  async function bx(e, { gatewayUrls: t, record: n }) {
10683
- return /eip155:/i.test(n) ? yx(e, { gatewayUrls: t, record: n }) : yu({ uri: n, gatewayUrls: t });
10683
+ return /eip155:/i.test(n) ? yx(e, { gatewayUrls: t, record: n }) : bu({ uri: n, gatewayUrls: t });
10684
10684
  }
10685
10685
  async function yx(e, { gatewayUrls: t, record: n }) {
10686
10686
  const r = mx(n), s = await hx(e, { nft: r }), { uri: a, isOnChain: o, isEncoded: i } = jf({ uri: s, gatewayUrls: t });
@@ -10692,7 +10692,7 @@ async function yx(e, { gatewayUrls: t, record: n }) {
10692
10692
  // if it isn't encoded assume it is a JSON string, but it could be anything (it will error if it is)
10693
10693
  a
10694
10694
  ), d = JSON.parse(l);
10695
- return yu({ uri: Vf(d), gatewayUrls: t });
10695
+ return bu({ uri: Vf(d), gatewayUrls: t });
10696
10696
  }
10697
10697
  let c = r.tokenID;
10698
10698
  return r.namespace === "erc1155" && (c = c.replace("0x", "").padStart(64, "0")), fx({
@@ -10719,11 +10719,11 @@ async function qf(e, t) {
10719
10719
  address: l,
10720
10720
  abi: Pf,
10721
10721
  args: [
10722
- le(hu(a)),
10722
+ le(mu(a)),
10723
10723
  lt({
10724
10724
  abi: Hd,
10725
10725
  functionName: "text",
10726
- args: [Kc(a), s]
10726
+ args: [qc(a), s]
10727
10727
  }),
10728
10728
  o ?? [Ei]
10729
10729
  ],
@@ -10742,7 +10742,7 @@ async function qf(e, t) {
10742
10742
  } catch (p) {
10743
10743
  if (i)
10744
10744
  throw p;
10745
- if (mu(p))
10745
+ if (fu(p))
10746
10746
  return null;
10747
10747
  throw p;
10748
10748
  }
@@ -10793,7 +10793,7 @@ async function gx(e, t) {
10793
10793
  } catch (d) {
10794
10794
  if (i)
10795
10795
  throw d;
10796
- if (mu(d))
10796
+ if (fu(d))
10797
10797
  return null;
10798
10798
  throw d;
10799
10799
  }
@@ -10828,7 +10828,7 @@ async function wx(e, t) {
10828
10828
  }
10829
10829
  ],
10830
10830
  functionName: "findResolver",
10831
- args: [le(hu(s))],
10831
+ args: [le(mu(s))],
10832
10832
  blockNumber: n,
10833
10833
  blockTag: r
10834
10834
  });
@@ -10861,7 +10861,7 @@ async function Kf(e, t) {
10861
10861
  gasUsed: BigInt(h.gasUsed)
10862
10862
  };
10863
10863
  } catch (U) {
10864
- throw lu(U, {
10864
+ throw cu(U, {
10865
10865
  ...t,
10866
10866
  account: x,
10867
10867
  chain: e.chain
@@ -11030,7 +11030,7 @@ async function Ux(e, { filter: t }) {
11030
11030
  method: "eth_getFilterLogs",
11031
11031
  params: [t.id]
11032
11032
  })).map((a) => Vt(a));
11033
- return t.abi ? nu({
11033
+ return t.abi ? tu({
11034
11034
  abi: t.abi,
11035
11035
  logs: s,
11036
11036
  strict: n
@@ -11046,7 +11046,7 @@ function Ix(e) {
11046
11046
  if (r < 0)
11047
11047
  throw new fs({ chainId: r });
11048
11048
  }
11049
- xu(e);
11049
+ yu(e);
11050
11050
  }
11051
11051
  function Fx(e) {
11052
11052
  const { blobVersionedHashes: t } = e;
@@ -11064,9 +11064,9 @@ function Fx(e) {
11064
11064
  });
11065
11065
  }
11066
11066
  }
11067
- xu(e);
11067
+ yu(e);
11068
11068
  }
11069
- function xu(e) {
11069
+ function yu(e) {
11070
11070
  const { chainId: t, maxPriorityFeePerGas: n, maxFeePerGas: r, to: s } = e;
11071
11071
  if (t <= 0)
11072
11072
  throw new fs({ chainId: t });
@@ -11115,7 +11115,7 @@ function Ma(e) {
11115
11115
  return t;
11116
11116
  }
11117
11117
  function qo(e, t) {
11118
- const n = Jl(e);
11118
+ const n = Ql(e);
11119
11119
  return n === "eip1559" ? Nx(e, t) : n === "eip2930" ? _x(e, t) : n === "eip4844" ? Rx(e, t) : n === "eip7702" ? Mx(e, t) : zx(e, t);
11120
11120
  }
11121
11121
  function Mx(e, t) {
@@ -11144,14 +11144,14 @@ function Rx(e, t) {
11144
11144
  Fx(e);
11145
11145
  let f = e.blobVersionedHashes, m = e.sidecars;
11146
11146
  if (e.blobs && (typeof f > "u" || typeof m > "u")) {
11147
- const U = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((N) => Pe(N)), C = e.kzg, O = Wl({
11147
+ const U = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((N) => Pe(N)), C = e.kzg, O = Kl({
11148
11148
  blobs: U,
11149
11149
  kzg: C
11150
11150
  });
11151
11151
  if (typeof f > "u" && (f = rf({
11152
11152
  commitments: O
11153
11153
  })), typeof m > "u") {
11154
- const N = Xl({ blobs: U, commitments: O, kzg: C });
11154
+ const N = Wl({ blobs: U, commitments: O, kzg: C });
11155
11155
  m = lf({ blobs: U, commitments: O, proofs: N });
11156
11156
  }
11157
11157
  }
@@ -11182,7 +11182,7 @@ function Rx(e, t) {
11182
11182
  }
11183
11183
  function Nx(e, t) {
11184
11184
  const { chainId: n, gas: r, nonce: s, to: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, accessList: l, data: d } = e;
11185
- xu(e);
11185
+ yu(e);
11186
11186
  const p = Ma(l), f = [
11187
11187
  H(n),
11188
11188
  s ? H(s) : "0x",
@@ -11282,7 +11282,7 @@ function Lx(e) {
11282
11282
  return t;
11283
11283
  }
11284
11284
  async function $x({ address: e, authorization: t, signature: n }) {
11285
- return Ba(Fl(e), await oi({
11285
+ return Ba(Il(e), await oi({
11286
11286
  authorization: t,
11287
11287
  signature: n
11288
11288
  }));
@@ -11757,13 +11757,13 @@ class o8 extends Map {
11757
11757
  }
11758
11758
  const i8 = {
11759
11759
  checksum: /* @__PURE__ */ new o8(8192)
11760
- }, nc = i8.checksum;
11760
+ }, tc = i8.checksum;
11761
11761
  function Ra(e, t = {}) {
11762
- const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = B0(iu(e));
11762
+ const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = B0(ou(e));
11763
11763
  return n === "Bytes" ? r : Me(r);
11764
11764
  }
11765
11765
  function c8(e, t = {}) {
11766
- const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = tf(iu(e));
11766
+ const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = tf(ou(e));
11767
11767
  return n === "Bytes" ? r : Me(r);
11768
11768
  }
11769
11769
  function l8(e) {
@@ -11829,9 +11829,9 @@ function sm(e) {
11829
11829
  };
11830
11830
  }
11831
11831
  function p8(e, t = {}) {
11832
- return Ln(gu(e, t));
11832
+ return Ln(xu(e, t));
11833
11833
  }
11834
- function gu(e, t = {}) {
11834
+ function xu(e, t = {}) {
11835
11835
  rm(e);
11836
11836
  const { prefix: n, x: r, y: s } = e, { includePrefix: a = !0 } = t;
11837
11837
  return Ee(
@@ -11915,32 +11915,32 @@ function Ft(e, t = {}) {
11915
11915
  if (n) {
11916
11916
  if (e.toLowerCase() === e)
11917
11917
  return;
11918
- if (wu(e) !== e)
11918
+ if (gu(e) !== e)
11919
11919
  throw new Zd({
11920
11920
  address: e,
11921
11921
  cause: new w8()
11922
11922
  });
11923
11923
  }
11924
11924
  }
11925
- function wu(e) {
11926
- if (nc.has(e))
11927
- return nc.get(e);
11925
+ function gu(e) {
11926
+ if (tc.has(e))
11927
+ return tc.get(e);
11928
11928
  Ft(e, { strict: !1 });
11929
11929
  const t = e.substring(2).toLowerCase(), n = Ra(xf(t), { as: "Bytes" }), r = t.split("");
11930
11930
  for (let a = 0; a < 40; a += 2)
11931
11931
  n[a >> 1] >> 4 >= 8 && r[a] && (r[a] = r[a].toUpperCase()), (n[a >> 1] & 15) >= 8 && r[a + 1] && (r[a + 1] = r[a + 1].toUpperCase());
11932
11932
  const s = `0x${r.join("")}`;
11933
- return nc.set(e, s), s;
11933
+ return tc.set(e, s), s;
11934
11934
  }
11935
11935
  function x8(e, t = {}) {
11936
11936
  const { checksum: n = !1 } = t;
11937
- return Ft(e), n ? wu(e) : e;
11937
+ return Ft(e), n ? gu(e) : e;
11938
11938
  }
11939
11939
  function Oo(e, t = {}) {
11940
- const n = Ra(`0x${gu(e).slice(4)}`).substring(26);
11940
+ const n = Ra(`0x${xu(e).slice(4)}`).substring(26);
11941
11941
  return x8(`0x${n}`, t);
11942
11942
  }
11943
- function Wc(e, t) {
11943
+ function Kc(e, t) {
11944
11944
  return Ft(e, { strict: !1 }), Ft(t, { strict: !1 }), e.toLowerCase() === t.toLowerCase();
11945
11945
  }
11946
11946
  function Ko(e, t = {}) {
@@ -11985,7 +11985,7 @@ class w8 extends K {
11985
11985
  }
11986
11986
  const E8 = /^(.*)\[([0-9]*)\]$/, k8 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, am = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, Qd = 2n ** 256n - 1n;
11987
11987
  function Lr(e, t, n) {
11988
- const { checksumAddress: r, staticPosition: s } = n, a = Cu(t.type);
11988
+ const { checksumAddress: r, staticPosition: s } = n, a = ku(t.type);
11989
11989
  if (a) {
11990
11990
  const [o, i] = a;
11991
11991
  return v8(e, { ...t, type: i }, { checksumAddress: r, length: o, staticPosition: s });
@@ -12005,17 +12005,17 @@ function Lr(e, t, n) {
12005
12005
  return S8(e, t);
12006
12006
  if (t.type === "string")
12007
12007
  return B8(e, { staticPosition: s });
12008
- throw new Tu(t.type);
12008
+ throw new Au(t.type);
12009
12009
  }
12010
- const Jd = 32, Xc = 32;
12010
+ const Jd = 32, Wc = 32;
12011
12011
  function C8(e, t = {}) {
12012
12012
  const { checksum: n = !1 } = t, r = e.readBytes(32);
12013
- return [((a) => n ? wu(a) : a)(Me(x5(r, -20))), 32];
12013
+ return [((a) => n ? gu(a) : a)(Me(x5(r, -20))), 32];
12014
12014
  }
12015
12015
  function v8(e, t, n) {
12016
12016
  const { checksumAddress: r, length: s, staticPosition: a } = n;
12017
12017
  if (!s) {
12018
- const c = dn(e.readBytes(Xc)), l = a + c, d = l + Jd;
12018
+ const c = dn(e.readBytes(Wc)), l = a + c, d = l + Jd;
12019
12019
  e.setPosition(l);
12020
12020
  const p = dn(e.readBytes(Jd)), f = ua(t);
12021
12021
  let m = 0;
@@ -12031,7 +12031,7 @@ function v8(e, t, n) {
12031
12031
  return e.setPosition(a + 32), [y, 32];
12032
12032
  }
12033
12033
  if (ua(t)) {
12034
- const c = dn(e.readBytes(Xc)), l = a + c, d = [];
12034
+ const c = dn(e.readBytes(Wc)), l = a + c, d = [];
12035
12035
  for (let p = 0; p < s; ++p) {
12036
12036
  e.setPosition(l + p * 32);
12037
12037
  const [f] = Lr(e, t, {
@@ -12080,7 +12080,7 @@ function P8(e, t, n) {
12080
12080
  const { checksumAddress: r, staticPosition: s } = n, a = t.components.length === 0 || t.components.some(({ name: c }) => !c), o = a ? [] : {};
12081
12081
  let i = 0;
12082
12082
  if (ua(t)) {
12083
- const c = dn(e.readBytes(Xc)), l = s + c;
12083
+ const c = dn(e.readBytes(Wc)), l = s + c;
12084
12084
  for (let d = 0; d < t.components.length; ++d) {
12085
12085
  const p = t.components[d];
12086
12086
  e.setPosition(l + i);
@@ -12113,15 +12113,15 @@ function B8(e, { staticPosition: t }) {
12113
12113
  function U8({ checksumAddress: e, parameters: t, values: n }) {
12114
12114
  const r = [];
12115
12115
  for (let s = 0; s < t.length; s++)
12116
- r.push(Eu({
12116
+ r.push(wu({
12117
12117
  checksumAddress: e,
12118
12118
  parameter: t[s],
12119
12119
  value: n[s]
12120
12120
  }));
12121
12121
  return r;
12122
12122
  }
12123
- function Eu({ checksumAddress: e = !1, parameter: t, value: n }) {
12124
- const r = t, s = Cu(r.type);
12123
+ function wu({ checksumAddress: e = !1, parameter: t, value: n }) {
12124
+ const r = t, s = ku(r.type);
12125
12125
  if (s) {
12126
12126
  const [a, o] = s;
12127
12127
  return F8(n, {
@@ -12155,9 +12155,9 @@ function Eu({ checksumAddress: e = !1, parameter: t, value: n }) {
12155
12155
  return D8(n, { type: r.type });
12156
12156
  if (r.type === "string")
12157
12157
  return R8(n);
12158
- throw new Tu(r.type);
12158
+ throw new Au(r.type);
12159
12159
  }
12160
- function ku(e) {
12160
+ function Eu(e) {
12161
12161
  let t = 0;
12162
12162
  for (let a = 0; a < e.length; a++) {
12163
12163
  const { dynamic: o, encoded: i } = e[a];
@@ -12191,7 +12191,7 @@ function F8(e, t) {
12191
12191
  let o = !1;
12192
12192
  const i = [];
12193
12193
  for (let c = 0; c < e.length; c++) {
12194
- const l = Eu({
12194
+ const l = wu({
12195
12195
  checksumAddress: n,
12196
12196
  parameter: s,
12197
12197
  value: e[c]
@@ -12199,7 +12199,7 @@ function F8(e, t) {
12199
12199
  l.dynamic && (o = !0), i.push(l);
12200
12200
  }
12201
12201
  if (a || o) {
12202
- const c = ku(i);
12202
+ const c = Eu(i);
12203
12203
  if (a) {
12204
12204
  const l = j(i.length, { size: 32 });
12205
12205
  return {
@@ -12270,7 +12270,7 @@ function N8(e, t) {
12270
12270
  let s = !1;
12271
12271
  const a = [];
12272
12272
  for (let o = 0; o < r.components.length; o++) {
12273
- const i = r.components[o], c = Array.isArray(e) ? o : i.name, l = Eu({
12273
+ const i = r.components[o], c = Array.isArray(e) ? o : i.name, l = wu({
12274
12274
  checksumAddress: n,
12275
12275
  parameter: i,
12276
12276
  value: e[c]
@@ -12279,10 +12279,10 @@ function N8(e, t) {
12279
12279
  }
12280
12280
  return {
12281
12281
  dynamic: s,
12282
- encoded: s ? ku(a) : Ee(...a.map(({ encoded: o }) => o))
12282
+ encoded: s ? Eu(a) : Ee(...a.map(({ encoded: o }) => o))
12283
12283
  };
12284
12284
  }
12285
- function Cu(e) {
12285
+ function ku(e) {
12286
12286
  const t = e.match(/^(.*)\[(\d+)?\]$/);
12287
12287
  return t ? (
12288
12288
  // Return `null` if the array is dynamic.
@@ -12296,7 +12296,7 @@ function ua(e) {
12296
12296
  return !0;
12297
12297
  if (t === "tuple")
12298
12298
  return (r = e.components) == null ? void 0 : r.some(ua);
12299
- const n = Cu(e.type);
12299
+ const n = ku(e.type);
12300
12300
  return !!(n && ua({
12301
12301
  ...e,
12302
12302
  type: n[1]
@@ -12424,7 +12424,7 @@ const _8 = {
12424
12424
  this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
12425
12425
  }
12426
12426
  };
12427
- function vu(e, { recursiveReadLimit: t = 8192 } = {}) {
12427
+ function Cu(e, { recursiveReadLimit: t = 8192 } = {}) {
12428
12428
  const n = Object.create(_8);
12429
12429
  return n.bytes = e, n.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
12430
12430
  }
@@ -12459,7 +12459,7 @@ class L8 extends K {
12459
12459
  }
12460
12460
  }
12461
12461
  function $8(e, t, n = {}) {
12462
- const { as: r = "Array", checksumAddress: s = !1 } = n, a = typeof t == "string" ? Ln(t) : t, o = vu(a);
12462
+ const { as: r = "Array", checksumAddress: s = !1 } = n, a = typeof t == "string" ? Ln(t) : t, o = Cu(a);
12463
12463
  if (Mr(a) === 0 && e.length > 0)
12464
12464
  throw new G8();
12465
12465
  if (Mr(a) && Mr(a) < 32)
@@ -12481,7 +12481,7 @@ function $8(e, t, n = {}) {
12481
12481
  }
12482
12482
  return c;
12483
12483
  }
12484
- function Au(e, t, n) {
12484
+ function vu(e, t, n) {
12485
12485
  const { checksumAddress: r = !1 } = {};
12486
12486
  if (e.length !== t.length)
12487
12487
  throw new cm({
@@ -12492,10 +12492,10 @@ function Au(e, t, n) {
12492
12492
  checksumAddress: r,
12493
12493
  parameters: e,
12494
12494
  values: t
12495
- }), a = ku(s);
12495
+ }), a = Eu(s);
12496
12496
  return a.length === 0 ? "0x" : a;
12497
12497
  }
12498
- function Zc(e, t) {
12498
+ function Xc(e, t) {
12499
12499
  if (e.length !== t.length)
12500
12500
  throw new cm({
12501
12501
  expectedLength: e.length,
@@ -12504,7 +12504,7 @@ function Zc(e, t) {
12504
12504
  const n = [];
12505
12505
  for (let r = 0; r < e.length; r++) {
12506
12506
  const s = e[r], a = t[r];
12507
- n.push(Zc.encode(s, a));
12507
+ n.push(Xc.encode(s, a));
12508
12508
  }
12509
12509
  return Ee(...n);
12510
12510
  }
@@ -12545,10 +12545,10 @@ function Zc(e, t) {
12545
12545
  d.push(t(l, r[p], !0));
12546
12546
  return d.length === 0 ? "0x" : Ee(...d);
12547
12547
  }
12548
- throw new Tu(n);
12548
+ throw new Au(n);
12549
12549
  }
12550
12550
  e.encode = t;
12551
- })(Zc || (Zc = {}));
12551
+ })(Xc || (Xc = {}));
12552
12552
  function om(e) {
12553
12553
  return Array.isArray(e) && typeof e[0] == "string" || typeof e == "string" ? dd(e) : e;
12554
12554
  }
@@ -12622,7 +12622,7 @@ class V8 extends K {
12622
12622
  });
12623
12623
  }
12624
12624
  }
12625
- class Tu extends K {
12625
+ class Au extends K {
12626
12626
  constructor(t) {
12627
12627
  super(`Type \`${t}\` is not a valid ABI Type.`), Object.defineProperty(this, "name", {
12628
12628
  enumerable: !0,
@@ -12643,7 +12643,7 @@ function K8(e, t) {
12643
12643
  return Ln(e);
12644
12644
  }
12645
12645
  return e;
12646
- })(), s = vu(r, {
12646
+ })(), s = Cu(r, {
12647
12647
  recursiveReadLimit: Number.POSITIVE_INFINITY
12648
12648
  });
12649
12649
  return lm(s, n);
@@ -12681,7 +12681,7 @@ function W8(e, t, n) {
12681
12681
  return s;
12682
12682
  }
12683
12683
  function X8(e, t) {
12684
- const { as: n } = t, r = um(e), s = vu(new Uint8Array(r.length));
12684
+ const { as: n } = t, r = um(e), s = Cu(new Uint8Array(r.length));
12685
12685
  return r.encode(s), n === "Hex" ? Me(s.bytes) : s.bytes;
12686
12686
  }
12687
12687
  function Z8(e, t = {}) {
@@ -12722,7 +12722,7 @@ function dm(e) {
12722
12722
  return 4;
12723
12723
  throw new K("Length is too large.");
12724
12724
  }
12725
- class pm extends Ul {
12725
+ class pm extends Bl {
12726
12726
  constructor(t, n) {
12727
12727
  super(), this.finished = !1, this.destroyed = !1, d6(t);
12728
12728
  const r = ti(n);
@@ -12774,7 +12774,7 @@ function ft(e, t, n) {
12774
12774
  r *= r, r %= n;
12775
12775
  return r;
12776
12776
  }
12777
- function Qc(e, t) {
12777
+ function Zc(e, t) {
12778
12778
  if (e === et)
12779
12779
  throw new Error("invert: expected non-zero number");
12780
12780
  if (t <= et)
@@ -12922,13 +12922,13 @@ function ys(e, t, n = !1, r = {}) {
12922
12922
  sub: (c, l) => Je(c - l, e),
12923
12923
  mul: (c, l) => Je(c * l, e),
12924
12924
  pow: (c, l) => a3(i, c, l),
12925
- div: (c, l) => Je(c * Qc(l, e), e),
12925
+ div: (c, l) => Je(c * Zc(l, e), e),
12926
12926
  // Same as above, but doesn't normalize
12927
12927
  sqrN: (c) => c * c,
12928
12928
  addN: (c, l) => c + l,
12929
12929
  subN: (c, l) => c - l,
12930
12930
  mulN: (c, l) => c * l,
12931
- inv: (c) => Qc(c, e),
12931
+ inv: (c) => Zc(c, e),
12932
12932
  sqrt: r.sqrt || ((c) => (o || (o = n3(e)), o(i, c))),
12933
12933
  toBytes: (c) => n ? mf(c, a) : Ia(c, a),
12934
12934
  fromBytes: (c) => {
@@ -12962,8 +12962,8 @@ function o3(e, t, n = !1) {
12962
12962
  return n ? mf(i, s) : Ia(i, s);
12963
12963
  }
12964
12964
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
12965
- const np = BigInt(0), Jc = BigInt(1);
12966
- function rc(e, t) {
12965
+ const np = BigInt(0), Qc = BigInt(1);
12966
+ function nc(e, t) {
12967
12967
  const n = t.negate();
12968
12968
  return e ? n : t;
12969
12969
  }
@@ -12971,7 +12971,7 @@ function km(e, t) {
12971
12971
  if (!Number.isSafeInteger(e) || e <= 0 || e > t)
12972
12972
  throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
12973
12973
  }
12974
- function sc(e, t) {
12974
+ function rc(e, t) {
12975
12975
  km(e, t);
12976
12976
  const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), s = 2 ** e, a = di(e), o = BigInt(e);
12977
12977
  return { windows: n, windowSize: r, mask: a, maxNumber: s, shiftBy: o };
@@ -12979,7 +12979,7 @@ function sc(e, t) {
12979
12979
  function rp(e, t, n) {
12980
12980
  const { windowSize: r, mask: s, maxNumber: a, shiftBy: o } = n;
12981
12981
  let i = Number(e & s), c = e >> o;
12982
- i > r && (i -= a, c += Jc);
12982
+ i > r && (i -= a, c += Qc);
12983
12983
  const l = t * r, d = l + Math.abs(i) - 1, p = i === 0, f = i < 0, m = t % 2 !== 0;
12984
12984
  return { nextN: c, offset: d, isZero: p, isNeg: f, isNegF: m, offsetF: l };
12985
12985
  }
@@ -12999,21 +12999,21 @@ function c3(e, t) {
12999
12999
  throw new Error("invalid scalar at index " + r);
13000
13000
  });
13001
13001
  }
13002
- const ac = /* @__PURE__ */ new WeakMap(), Cm = /* @__PURE__ */ new WeakMap();
13003
- function oc(e) {
13002
+ const sc = /* @__PURE__ */ new WeakMap(), Cm = /* @__PURE__ */ new WeakMap();
13003
+ function ac(e) {
13004
13004
  return Cm.get(e) || 1;
13005
13005
  }
13006
13006
  function l3(e, t) {
13007
13007
  return {
13008
- constTimeNegate: rc,
13008
+ constTimeNegate: nc,
13009
13009
  hasPrecomputes(n) {
13010
- return oc(n) !== 1;
13010
+ return ac(n) !== 1;
13011
13011
  },
13012
13012
  // non-const time multiplication ladder
13013
13013
  unsafeLadder(n, r, s = e.ZERO) {
13014
13014
  let a = n;
13015
13015
  for (; r > np; )
13016
- r & Jc && (s = s.add(a)), a = a.double(), r >>= Jc;
13016
+ r & Qc && (s = s.add(a)), a = a.double(), r >>= Qc;
13017
13017
  return s;
13018
13018
  },
13019
13019
  /**
@@ -13029,7 +13029,7 @@ function l3(e, t) {
13029
13029
  * @returns precomputed point tables flattened to a single array
13030
13030
  */
13031
13031
  precomputeWindow(n, r) {
13032
- const { windows: s, windowSize: a } = sc(r, t), o = [];
13032
+ const { windows: s, windowSize: a } = rc(r, t), o = [];
13033
13033
  let i = n, c = i;
13034
13034
  for (let l = 0; l < s; l++) {
13035
13035
  c = i, o.push(c);
@@ -13048,10 +13048,10 @@ function l3(e, t) {
13048
13048
  */
13049
13049
  wNAF(n, r, s) {
13050
13050
  let a = e.ZERO, o = e.BASE;
13051
- const i = sc(n, t);
13051
+ const i = rc(n, t);
13052
13052
  for (let c = 0; c < i.windows; c++) {
13053
13053
  const { nextN: l, offset: d, isZero: p, isNeg: f, isNegF: m, offsetF: y } = rp(s, c, i);
13054
- s = l, p ? o = o.add(rc(m, r[y])) : a = a.add(rc(f, r[d]));
13054
+ s = l, p ? o = o.add(nc(m, r[y])) : a = a.add(nc(f, r[d]));
13055
13055
  }
13056
13056
  return { p: a, f: o };
13057
13057
  },
@@ -13064,7 +13064,7 @@ function l3(e, t) {
13064
13064
  * @returns point
13065
13065
  */
13066
13066
  wNAFUnsafe(n, r, s, a = e.ZERO) {
13067
- const o = sc(n, t);
13067
+ const o = rc(n, t);
13068
13068
  for (let i = 0; i < o.windows && s !== np; i++) {
13069
13069
  const { nextN: c, offset: l, isZero: d, isNeg: p } = rp(s, i, o);
13070
13070
  if (s = c, !d) {
@@ -13075,22 +13075,22 @@ function l3(e, t) {
13075
13075
  return a;
13076
13076
  },
13077
13077
  getPrecomputes(n, r, s) {
13078
- let a = ac.get(r);
13079
- return a || (a = this.precomputeWindow(r, n), n !== 1 && ac.set(r, s(a))), a;
13078
+ let a = sc.get(r);
13079
+ return a || (a = this.precomputeWindow(r, n), n !== 1 && sc.set(r, s(a))), a;
13080
13080
  },
13081
13081
  wNAFCached(n, r, s) {
13082
- const a = oc(n);
13082
+ const a = ac(n);
13083
13083
  return this.wNAF(a, this.getPrecomputes(a, n, s), r);
13084
13084
  },
13085
13085
  wNAFCachedUnsafe(n, r, s, a) {
13086
- const o = oc(n);
13086
+ const o = ac(n);
13087
13087
  return o === 1 ? this.unsafeLadder(n, r, a) : this.wNAFUnsafe(o, this.getPrecomputes(o, n, s), r, a);
13088
13088
  },
13089
13089
  // We calculate precomputes for elliptic curve point multiplication
13090
13090
  // using windowed method. This specifies window size and
13091
13091
  // stores precomputed values. Usually only base point would be precomputed.
13092
13092
  setWindowSize(n, r) {
13093
- km(r, t), Cm.set(n, r), ac.delete(n);
13093
+ km(r, t), Cm.set(n, r), sc.delete(n);
13094
13094
  }
13095
13095
  };
13096
13096
  }
@@ -13254,12 +13254,12 @@ const nn = {
13254
13254
  return t.encode(48, a);
13255
13255
  }
13256
13256
  };
13257
- function ic(e, t) {
13257
+ function oc(e, t) {
13258
13258
  return ia(Ia(e, t));
13259
13259
  }
13260
13260
  const cn = BigInt(0), Oe = BigInt(1);
13261
13261
  BigInt(2);
13262
- const cc = BigInt(3), f3 = BigInt(4);
13262
+ const ic = BigInt(3), f3 = BigInt(4);
13263
13263
  function m3(e) {
13264
13264
  const t = d3(e), { Fp: n } = t, r = ys(t.n, t.nBitLength), s = t.toBytes || ((U, C, O) => {
13265
13265
  const N = C.toAffine();
@@ -13278,11 +13278,11 @@ function m3(e) {
13278
13278
  }
13279
13279
  if (!i(t.Gx, t.Gy))
13280
13280
  throw new Error("bad curve params: generator point");
13281
- const c = n.mul(n.pow(t.a, cc), f3), l = n.mul(n.sqr(t.b), BigInt(27));
13281
+ const c = n.mul(n.pow(t.a, ic), f3), l = n.mul(n.sqr(t.b), BigInt(27));
13282
13282
  if (n.is0(n.add(c, l)))
13283
13283
  throw new Error("bad curve params: a or b");
13284
13284
  function d(U) {
13285
- return ou(U, Oe, t.n);
13285
+ return au(U, Oe, t.n);
13286
13286
  }
13287
13287
  function p(U) {
13288
13288
  const { allowedPrivateKeyLengths: C, nByteLength: O, wrapPrivateKey: N, n: R } = t;
@@ -13416,7 +13416,7 @@ function m3(e) {
13416
13416
  // https://eprint.iacr.org/2015/1060, algorithm 3
13417
13417
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
13418
13418
  double() {
13419
- const { a: C, b: O } = t, N = n.mul(O, cc), { px: R, py: h, pz: b } = this;
13419
+ const { a: C, b: O } = t, N = n.mul(O, ic), { px: R, py: h, pz: b } = this;
13420
13420
  let g = n.ZERO, v = n.ZERO, E = n.ZERO, T = n.mul(R, R), D = n.mul(h, h), w = n.mul(b, b), A = n.mul(R, h);
13421
13421
  return A = n.add(A, A), E = n.mul(R, b), E = n.add(E, E), g = n.mul(C, E), v = n.mul(N, w), v = n.add(g, v), g = n.sub(D, v), v = n.add(D, v), v = n.mul(g, v), g = n.mul(A, g), E = n.mul(N, E), w = n.mul(C, w), A = n.sub(T, w), A = n.mul(C, A), A = n.add(A, E), E = n.add(T, T), T = n.add(E, T), T = n.add(T, w), T = n.mul(T, A), v = n.add(v, T), w = n.mul(h, b), w = n.add(w, w), T = n.mul(w, A), g = n.sub(g, T), E = n.mul(w, D), E = n.add(E, E), E = n.add(E, E), new x(g, v, E);
13422
13422
  }
@@ -13428,7 +13428,7 @@ function m3(e) {
13428
13428
  f(C);
13429
13429
  const { px: O, py: N, pz: R } = this, { px: h, py: b, pz: g } = C;
13430
13430
  let v = n.ZERO, E = n.ZERO, T = n.ZERO;
13431
- const D = t.a, w = n.mul(t.b, cc);
13431
+ const D = t.a, w = n.mul(t.b, ic);
13432
13432
  let A = n.mul(O, h), F = n.mul(N, b), P = n.mul(R, g), M = n.add(O, N), L = n.add(h, b);
13433
13433
  M = n.mul(M, L), L = n.add(A, F), M = n.sub(M, L), L = n.add(O, R);
13434
13434
  let G = n.add(h, g);
@@ -13549,7 +13549,7 @@ function b3(e) {
13549
13549
  return Je(w, r);
13550
13550
  }
13551
13551
  function l(w) {
13552
- return Qc(w, r);
13552
+ return Zc(w, r);
13553
13553
  }
13554
13554
  const { ProjectivePoint: d, normPrivateKeyToScalar: p, weierstrassEquation: f, isWithinCurveOrder: m } = m3({
13555
13555
  ...t,
@@ -13561,7 +13561,7 @@ function b3(e) {
13561
13561
  const A = w.length, F = w[0], P = w.subarray(1);
13562
13562
  if (A === o && (F === 2 || F === 3)) {
13563
13563
  const M = or(P);
13564
- if (!ou(M, Oe, n.ORDER))
13564
+ if (!au(M, Oe, n.ORDER))
13565
13565
  throw new Error("Point is not on curve");
13566
13566
  const L = f(M);
13567
13567
  let G;
@@ -13621,7 +13621,7 @@ function b3(e) {
13621
13621
  const G = M === 2 || M === 3 ? F + t.n : F;
13622
13622
  if (G >= n.ORDER)
13623
13623
  throw new Error("recovery id 2 or 3 invalid");
13624
- const X = (M & 1) === 0 ? "02" : "03", se = d.fromHex(X + ic(G, n.BYTES)), ie = l(G), Q = c(-L * ie), Y = c(P * ie), he = d.BASE.multiplyAndAddUnsafe(se, Q, Y);
13624
+ const X = (M & 1) === 0 ? "02" : "03", se = d.fromHex(X + oc(G, n.BYTES)), ie = l(G), Q = c(-L * ie), Y = c(P * ie), he = d.BASE.multiplyAndAddUnsafe(se, Q, Y);
13625
13625
  if (!he)
13626
13626
  throw new Error("point at infinify");
13627
13627
  return he.assertValidity(), he;
@@ -13646,7 +13646,7 @@ function b3(e) {
13646
13646
  }
13647
13647
  toCompactHex() {
13648
13648
  const A = s;
13649
- return ic(this.r, A) + ic(this.s, A);
13649
+ return oc(this.r, A) + oc(this.s, A);
13650
13650
  }
13651
13651
  }
13652
13652
  const k = {
@@ -13798,17 +13798,17 @@ function ki(e, t) {
13798
13798
  return { ...n(t), create: n };
13799
13799
  }
13800
13800
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
13801
- const Am = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), ap = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), x3 = BigInt(0), g3 = BigInt(1), Yc = BigInt(2), op = (e, t) => (e + t / Yc) / t;
13801
+ const Am = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), ap = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), x3 = BigInt(0), g3 = BigInt(1), Jc = BigInt(2), op = (e, t) => (e + t / Jc) / t;
13802
13802
  function w3(e) {
13803
- const t = Am, n = BigInt(3), r = BigInt(6), s = BigInt(11), a = BigInt(22), o = BigInt(23), i = BigInt(44), c = BigInt(88), l = e * e * e % t, d = l * l * e % t, p = ft(d, n, t) * d % t, f = ft(p, n, t) * d % t, m = ft(f, Yc, t) * l % t, y = ft(m, s, t) * m % t, x = ft(y, a, t) * y % t, S = ft(x, i, t) * x % t, B = ft(S, c, t) * S % t, k = ft(B, i, t) * x % t, U = ft(k, n, t) * d % t, C = ft(U, o, t) * y % t, O = ft(C, r, t) * l % t, N = ft(O, Yc, t);
13804
- if (!el.eql(el.sqr(N), e))
13803
+ const t = Am, n = BigInt(3), r = BigInt(6), s = BigInt(11), a = BigInt(22), o = BigInt(23), i = BigInt(44), c = BigInt(88), l = e * e * e % t, d = l * l * e % t, p = ft(d, n, t) * d % t, f = ft(p, n, t) * d % t, m = ft(f, Jc, t) * l % t, y = ft(m, s, t) * m % t, x = ft(y, a, t) * y % t, S = ft(x, i, t) * x % t, B = ft(S, c, t) * S % t, k = ft(B, i, t) * x % t, U = ft(k, n, t) * d % t, C = ft(U, o, t) * y % t, O = ft(C, r, t) * l % t, N = ft(O, Jc, t);
13804
+ if (!Yc.eql(Yc.sqr(N), e))
13805
13805
  throw new Error("Cannot find square root");
13806
13806
  return N;
13807
13807
  }
13808
- const el = ys(Am, void 0, void 0, { sqrt: w3 }), Na = ki({
13808
+ const Yc = ys(Am, void 0, void 0, { sqrt: w3 }), Na = ki({
13809
13809
  a: x3,
13810
13810
  b: BigInt(7),
13811
- Fp: el,
13811
+ Fp: Yc,
13812
13812
  n: ap,
13813
13813
  Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
13814
13814
  Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
@@ -13827,18 +13827,18 @@ const el = ys(Am, void 0, void 0, { sqrt: w3 }), Na = ki({
13827
13827
  return { k1neg: p, k1: l, k2neg: f, k2: d };
13828
13828
  }
13829
13829
  }
13830
- }, Zl), E3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13830
+ }, Xl), E3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13831
13831
  __proto__: null,
13832
13832
  secp256k1: Na
13833
13833
  }, Symbol.toStringTag, { value: "Module" }));
13834
13834
  function Ci(e, t = {}) {
13835
13835
  const { recovered: n } = t;
13836
13836
  if (typeof e.r > "u")
13837
- throw new lc({ signature: e });
13837
+ throw new cc({ signature: e });
13838
13838
  if (typeof e.s > "u")
13839
- throw new lc({ signature: e });
13839
+ throw new cc({ signature: e });
13840
13840
  if (n && typeof e.yParity > "u")
13841
- throw new lc({ signature: e });
13841
+ throw new cc({ signature: e });
13842
13842
  if (e.r < 0n || e.r > Qd)
13843
13843
  throw new P3({ value: e.r });
13844
13844
  if (e.s < 0n || e.s > Qd)
@@ -13847,16 +13847,16 @@ function Ci(e, t = {}) {
13847
13847
  throw new Ai({ value: e.yParity });
13848
13848
  }
13849
13849
  function k3(e) {
13850
- return Su(Me(e));
13850
+ return Tu(Me(e));
13851
13851
  }
13852
- function Su(e) {
13852
+ function Tu(e) {
13853
13853
  if (e.length !== 130 && e.length !== 132)
13854
13854
  throw new S3({ signature: e });
13855
13855
  const t = BigInt(oe(e, 0, 32)), n = BigInt(oe(e, 32, 64)), r = (() => {
13856
13856
  const s = +`0x${e.slice(130)}`;
13857
13857
  if (!Number.isNaN(s))
13858
13858
  try {
13859
- return Bu(s);
13859
+ return Pu(s);
13860
13860
  } catch {
13861
13861
  throw new Ai({ value: s });
13862
13862
  }
@@ -13875,7 +13875,7 @@ function Tm(e) {
13875
13875
  return vi(e);
13876
13876
  }
13877
13877
  function vi(e) {
13878
- const t = typeof e == "string" ? Su(e) : e instanceof Uint8Array ? k3(e) : typeof e.r == "string" ? Pu(e) : e.v ? C3(e) : {
13878
+ const t = typeof e == "string" ? Tu(e) : e instanceof Uint8Array ? k3(e) : typeof e.r == "string" ? Su(e) : e.v ? C3(e) : {
13879
13879
  r: e.r,
13880
13880
  s: e.s,
13881
13881
  ...typeof e.yParity < "u" ? { yParity: e.yParity } : {}
@@ -13886,14 +13886,14 @@ function C3(e) {
13886
13886
  return {
13887
13887
  r: e.r,
13888
13888
  s: e.s,
13889
- yParity: Bu(e.v)
13889
+ yParity: Pu(e.v)
13890
13890
  };
13891
13891
  }
13892
- function Pu(e) {
13892
+ function Su(e) {
13893
13893
  const t = (() => {
13894
13894
  const n = e.v ? Number(e.v) : void 0;
13895
13895
  let r = e.yParity ? Number(e.yParity) : void 0;
13896
- if (typeof n == "number" && typeof r != "number" && (r = Bu(n)), typeof r != "number")
13896
+ if (typeof n == "number" && typeof r != "number" && (r = Pu(n)), typeof r != "number")
13897
13897
  throw new Ai({ value: e.yParity });
13898
13898
  return r;
13899
13899
  })();
@@ -13918,7 +13918,7 @@ function A3(e) {
13918
13918
  j(t, { size: 32 }),
13919
13919
  j(n, { size: 32 }),
13920
13920
  // If the signature is recovered, add the recovery byte to the signature.
13921
- typeof e.yParity == "number" ? j(Uu(e.yParity), { size: 1 }) : "0x"
13921
+ typeof e.yParity == "number" ? j(Bu(e.yParity), { size: 1 }) : "0x"
13922
13922
  );
13923
13923
  }
13924
13924
  function Sm(e) {
@@ -13933,11 +13933,11 @@ function T3(e) {
13933
13933
  const { r: t, s: n, yParity: r } = e;
13934
13934
  return [
13935
13935
  r ? "0x01" : "0x",
13936
- t === 0n ? "0x" : Hc(j(t)),
13937
- n === 0n ? "0x" : Hc(j(n))
13936
+ t === 0n ? "0x" : $c(j(t)),
13937
+ n === 0n ? "0x" : $c(j(n))
13938
13938
  ];
13939
13939
  }
13940
- function Bu(e) {
13940
+ function Pu(e) {
13941
13941
  if (e === 0 || e === 27)
13942
13942
  return 0;
13943
13943
  if (e === 1 || e === 28)
@@ -13946,7 +13946,7 @@ function Bu(e) {
13946
13946
  return e % 2 === 0 ? 1 : 0;
13947
13947
  throw new U3({ value: e });
13948
13948
  }
13949
- function Uu(e) {
13949
+ function Bu(e) {
13950
13950
  if (e === 0)
13951
13951
  return 27;
13952
13952
  if (e === 1)
@@ -13968,7 +13968,7 @@ class S3 extends K {
13968
13968
  });
13969
13969
  }
13970
13970
  }
13971
- class lc extends K {
13971
+ class cc extends K {
13972
13972
  constructor({ signature: t }) {
13973
13973
  super(`Signature \`${Fa(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`), Object.defineProperty(this, "name", {
13974
13974
  enumerable: !0,
@@ -14054,7 +14054,7 @@ function M3(e) {
14054
14054
  }
14055
14055
  function R3(e) {
14056
14056
  const { address: t, hash: n, payload: r, publicKey: s, signature: a } = e;
14057
- return t ? Wc(t, Bm({ payload: r, signature: a })) : Na.verify(a, iu(r), p8(s), ...n ? [{ prehash: !0, lowS: !0 }] : []);
14057
+ return t ? Kc(t, Bm({ payload: r, signature: a })) : Na.verify(a, ou(r), p8(s), ...n ? [{ prehash: !0, lowS: !0 }] : []);
14058
14058
  }
14059
14059
  const N3 = "0x8010801080108010801080108010801080108010801080108010801080108010", _3 = om("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");
14060
14060
  function Um(e) {
@@ -14150,7 +14150,7 @@ async function K3(e, { address: t, blockNumber: n, blockTag: r = "latest", slot:
14150
14150
  params: [t, s, a || r]
14151
14151
  });
14152
14152
  }
14153
- async function Iu(e, { blockHash: t, blockNumber: n, blockTag: r, hash: s, index: a, sender: o, nonce: i }) {
14153
+ async function Uu(e, { blockHash: t, blockNumber: n, blockTag: r, hash: s, index: a, sender: o, nonce: i }) {
14154
14154
  var f, m, y;
14155
14155
  const c = r || "latest", l = n !== void 0 ? H(n) : void 0;
14156
14156
  let d = null;
@@ -14179,7 +14179,7 @@ async function Iu(e, { blockHash: t, blockNumber: n, blockTag: r, hash: s, index
14179
14179
  async function W3(e, { hash: t, transactionReceipt: n }) {
14180
14180
  const [r, s] = await Promise.all([
14181
14181
  q(e, Oa, "getBlockNumber")({}),
14182
- t ? q(e, Iu, "getTransaction")({ hash: t }) : void 0
14182
+ t ? q(e, Uu, "getTransaction")({ hash: t }) : void 0
14183
14183
  ]), a = (n == null ? void 0 : n.blockNumber) || (s == null ? void 0 : s.blockNumber);
14184
14184
  return a ? r - a + 1n : 0n;
14185
14185
  }
@@ -14246,7 +14246,7 @@ async function X3(e, t) {
14246
14246
  }
14247
14247
  }
14248
14248
  const S = await Promise.allSettled(m.map((U) => q(e, It, "readContract")({
14249
- ...f === null ? { code: cu } : { address: f },
14249
+ ...f === null ? { code: iu } : { address: f },
14250
14250
  abi: Go,
14251
14251
  account: n,
14252
14252
  args: [U],
@@ -14303,7 +14303,7 @@ async function X3(e, t) {
14303
14303
  throw new z("multicall results mismatch");
14304
14304
  return B;
14305
14305
  }
14306
- async function tl(e, t) {
14306
+ async function el(e, t) {
14307
14307
  const { blockNumber: n, blockTag: r = e.experimental_blockTag ?? "latest", blocks: s, returnFullTransactions: a, traceTransfers: o, validation: i } = t;
14308
14308
  try {
14309
14309
  const c = [];
@@ -14316,7 +14316,7 @@ async function tl(e, t) {
14316
14316
  from: B.from ?? (k == null ? void 0 : k.address)
14317
14317
  };
14318
14318
  return Kt(C), Ot(C);
14319
- }), x = f.stateOverrides ? Hl(f.stateOverrides) : void 0;
14319
+ }), x = f.stateOverrides ? $l(f.stateOverrides) : void 0;
14320
14320
  c.push({
14321
14321
  blockOverrides: m,
14322
14322
  calls: y,
@@ -14331,7 +14331,7 @@ async function tl(e, t) {
14331
14331
  d
14332
14332
  ]
14333
14333
  })).map((f, m) => ({
14334
- ...jl(f),
14334
+ ...Gl(f),
14335
14335
  calls: f.calls.map((y, x) => {
14336
14336
  var g, v;
14337
14337
  const { abi: S, args: B, functionName: k, to: U } = s[m].calls[x], C = ((g = y.error) == null ? void 0 : g.data) ?? y.returnData, O = BigInt(y.gasUsed), N = (v = y.logs) == null ? void 0 : v.map((E) => Vt(E)), R = y.status === "0x1" ? "success" : "failure", h = S && R === "success" && C !== "0x" ? vr({
@@ -14369,7 +14369,7 @@ async function tl(e, t) {
14369
14369
  throw d instanceof Sa ? l : d;
14370
14370
  }
14371
14371
  }
14372
- function nl(e) {
14372
+ function tl(e) {
14373
14373
  let t = !0, n = "", r = 0, s = "", a = !1;
14374
14374
  for (let o = 0; o < e.length; o++) {
14375
14375
  const i = e[o];
@@ -14394,7 +14394,7 @@ function nl(e) {
14394
14394
  throw new K("Unable to normalize signature.");
14395
14395
  return s;
14396
14396
  }
14397
- function rl(e, t) {
14397
+ function nl(e, t) {
14398
14398
  const n = typeof e, r = t.type;
14399
14399
  switch (r) {
14400
14400
  case "address":
@@ -14406,7 +14406,7 @@ function rl(e, t) {
14406
14406
  case "string":
14407
14407
  return n === "string";
14408
14408
  default:
14409
- return r === "tuple" && "components" in t ? Object.values(t.components).every((s, a) => rl(Object.values(e)[a], s)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r) ? Array.isArray(e) && e.every((s) => rl(s, {
14409
+ return r === "tuple" && "components" in t ? Object.values(t.components).every((s, a) => nl(Object.values(e)[a], s)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r) ? Array.isArray(e) && e.every((s) => nl(s, {
14410
14410
  ...t,
14411
14411
  // Pop off `[]` or `[M]` from end of type
14412
14412
  type: r.replace(/(\[[0-9]{0,}\])$/, "")
@@ -14459,7 +14459,7 @@ function Ti(e, t, n) {
14459
14459
  continue;
14460
14460
  if (r.every((p, f) => {
14461
14461
  const m = "inputs" in l && l.inputs[f];
14462
- return m ? rl(p, m) : !1;
14462
+ return m ? nl(p, m) : !1;
14463
14463
  })) {
14464
14464
  if (i && "inputs" in i && i.inputs) {
14465
14465
  const p = Im(l.inputs, i.inputs, r);
@@ -14506,7 +14506,7 @@ function Z3(...e) {
14506
14506
  }
14507
14507
  return e[0];
14508
14508
  })(), n = typeof t == "string" ? t : _o(t);
14509
- return nl(n);
14509
+ return tl(n);
14510
14510
  }
14511
14511
  function Rr(...e) {
14512
14512
  const t = (() => {
@@ -14523,8 +14523,8 @@ class Q3 extends K {
14523
14523
  super("Found ambiguous types in overloaded ABI Items.", {
14524
14524
  metaMessages: [
14525
14525
  // TODO: abitype to add support for signature-formatted ABI items.
14526
- `\`${t.type}\` in \`${nl(_o(t.abiItem))}\`, and`,
14527
- `\`${n.type}\` in \`${nl(_o(n.abiItem))}\``,
14526
+ `\`${t.type}\` in \`${tl(_o(t.abiItem))}\`, and`,
14527
+ `\`${n.type}\` in \`${tl(_o(n.abiItem))}\``,
14528
14528
  "",
14529
14529
  "These types encode differently and cannot be distinguished at runtime.",
14530
14530
  "Remove one of the ambiguous items in the ABI."
@@ -14557,7 +14557,7 @@ function J3(...e) {
14557
14557
  }
14558
14558
  return e;
14559
14559
  })(), { bytecode: r, args: s } = n;
14560
- return Ee(r, (a = t.inputs) != null && a.length && (s != null && s.length) ? Au(t.inputs, s) : "0x");
14560
+ return Ee(r, (a = t.inputs) != null && a.length && (s != null && s.length) ? vu(t.inputs, s) : "0x");
14561
14561
  }
14562
14562
  function Y3(e) {
14563
14563
  return Fm(e);
@@ -14578,7 +14578,7 @@ function tg(...e) {
14578
14578
  return [i, c];
14579
14579
  })(), { overloads: r } = t, s = r ? ip([t, ...r], t.name, {
14580
14580
  args: n
14581
- }) : t, a = ng(s), o = n.length > 0 ? Au(s.inputs, n) : void 0;
14581
+ }) : t, a = ng(s), o = n.length > 0 ? vu(s.inputs, n) : void 0;
14582
14582
  return o ? Ee(a, o) : a;
14583
14583
  }
14584
14584
  function Ur(e, t = {}) {
@@ -14613,7 +14613,7 @@ async function ag(e, t) {
14613
14613
  data: P.abi ? lt(P) : P.data
14614
14614
  });
14615
14615
  return M.map(({ address: L, storageKeys: G }) => G.length > 0 ? L : null);
14616
- })).then((P) => P.flat().filter(Boolean)) : [], f = await tl(e, {
14616
+ })).then((P) => P.flat().filter(Boolean)) : [], f = await el(e, {
14617
14617
  blockNumber: n,
14618
14618
  blockTag: r,
14619
14619
  blocks: [
@@ -14767,7 +14767,7 @@ function og(e) {
14767
14767
  }
14768
14768
  function ig(e) {
14769
14769
  const { data: t, signature: n, to: r } = e;
14770
- return Ee(Au(om("address, bytes, bytes"), [
14770
+ return Ee(vu(om("address, bytes, bytes"), [
14771
14771
  r,
14772
14772
  t,
14773
14773
  n
@@ -14821,7 +14821,7 @@ async function _a(e, t) {
14821
14821
  });
14822
14822
  } catch (f) {
14823
14823
  try {
14824
- if (Ba(Fl(n), await V0({ hash: s, signature: i })))
14824
+ if (Ba(Il(n), await V0({ hash: s, signature: i })))
14825
14825
  return !0;
14826
14826
  } catch {
14827
14827
  }
@@ -14859,7 +14859,7 @@ async function dg(e, t) {
14859
14859
  }))
14860
14860
  throw new br();
14861
14861
  const y = await q(e, It, "readContract")({
14862
- ...o ? { address: o } : { code: cu },
14862
+ ...o ? { address: o } : { code: iu },
14863
14863
  authorizationList: [f],
14864
14864
  abi: Go,
14865
14865
  blockNumber: r,
@@ -15040,7 +15040,7 @@ async function Rm(e, t) {
15040
15040
  return t.pollingInterval ? t.pollingInterval : (O = e.chain) != null && O.experimental_preconfirmationTime ? e.chain.experimental_preconfirmationTime : e.pollingInterval;
15041
15041
  })();
15042
15042
  let p, f, m, y = !1, x, S;
15043
- const { promise: B, resolve: k, reject: U } = uu(), C = c ? setTimeout(() => {
15043
+ const { promise: B, resolve: k, reject: U } = lu(), C = c ? setTimeout(() => {
15044
15044
  S == null || S(), x == null || x(), U(new m2({ hash: s }));
15045
15045
  }, c) : void 0;
15046
15046
  return x = mn(l, { onReplaced: a, resolve: k, reject: U }, async (O) => {
@@ -15068,7 +15068,7 @@ async function Rm(e, t) {
15068
15068
  return;
15069
15069
  }
15070
15070
  if (n && !p && (y = !0, await jo(async () => {
15071
- p = await q(e, Iu, "getTransaction")({ hash: s }), p.blockNumber && (h = p.blockNumber);
15071
+ p = await q(e, Uu, "getTransaction")({ hash: s }), p.blockNumber && (h = p.blockNumber);
15072
15072
  }, {
15073
15073
  delay: i,
15074
15074
  retryCount: o
@@ -15241,7 +15241,7 @@ function yg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
15241
15241
  R = await q(e, yi, "getFilterChanges")({ filter: U });
15242
15242
  else {
15243
15243
  const h = await q(e, Oa, "getBlockNumber")({});
15244
- k && k !== h ? R = await q(e, ru, "getLogs")({
15244
+ k && k !== h ? R = await q(e, nu, "getLogs")({
15245
15245
  address: t,
15246
15246
  args: n,
15247
15247
  event: s,
@@ -15302,7 +15302,7 @@ function yg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
15302
15302
  c([v]);
15303
15303
  } catch (b) {
15304
15304
  let g, v;
15305
- if (b instanceof zo || b instanceof Bl) {
15305
+ if (b instanceof zo || b instanceof Pl) {
15306
15306
  if (p)
15307
15307
  return;
15308
15308
  g = b.abiItem.name, v = (h = b.abiItem.inputs) == null ? void 0 : h.some((T) => !("name" in T && T.name));
@@ -15436,7 +15436,7 @@ async function Cg(e, t) {
15436
15436
  ...l
15437
15437
  });
15438
15438
  }
15439
- async function Fu(e, { serializedTransaction: t, throwOnReceiptRevert: n, timeout: r }) {
15439
+ async function Iu(e, { serializedTransaction: t, throwOnReceiptRevert: n, timeout: r }) {
15440
15440
  var i, c, l;
15441
15441
  const s = await e.request({
15442
15442
  method: "eth_sendRawTransactionSync",
@@ -15455,7 +15455,7 @@ function vg(e) {
15455
15455
  createEventFilter: (t) => Wf(e, t),
15456
15456
  createPendingTransactionFilter: () => Xf(e),
15457
15457
  estimateContractGas: (t) => Q2(e, t),
15458
- estimateGas: (t) => tu(e, t),
15458
+ estimateGas: (t) => eu(e, t),
15459
15459
  getBalance: (t) => kx(e, t),
15460
15460
  getBlobBaseFee: () => Cx(e),
15461
15461
  getBlock: (t) => Pt(e, t),
@@ -15475,23 +15475,23 @@ function vg(e) {
15475
15475
  estimateFeesPerGas: (t) => M2(e, t),
15476
15476
  getFilterChanges: (t) => yi(e, t),
15477
15477
  getFilterLogs: (t) => Ux(e, t),
15478
- getGasPrice: () => ql(e),
15479
- getLogs: (t) => ru(e, t),
15478
+ getGasPrice: () => Vl(e),
15479
+ getLogs: (t) => nu(e, t),
15480
15480
  getProof: (t) => q3(e, t),
15481
15481
  estimateMaxPriorityFeePerGas: (t) => O2(e, t),
15482
- fillTransaction: (t) => Yl(e, t),
15482
+ fillTransaction: (t) => Jl(e, t),
15483
15483
  getStorageAt: (t) => K3(e, t),
15484
- getTransaction: (t) => Iu(e, t),
15484
+ getTransaction: (t) => Uu(e, t),
15485
15485
  getTransactionConfirmations: (t) => W3(e, t),
15486
- getTransactionCount: (t) => Kl(e, t),
15486
+ getTransactionCount: (t) => ql(e, t),
15487
15487
  getTransactionReceipt: (t) => Mo(e, t),
15488
15488
  multicall: (t) => X3(e, t),
15489
15489
  prepareTransactionRequest: (t) => Pa(e, t),
15490
15490
  readContract: (t) => It(e, t),
15491
- sendRawTransaction: (t) => pu(e, t),
15492
- sendRawTransactionSync: (t) => Fu(e, t),
15493
- simulate: (t) => tl(e, t),
15494
- simulateBlocks: (t) => tl(e, t),
15491
+ sendRawTransaction: (t) => du(e, t),
15492
+ sendRawTransactionSync: (t) => Iu(e, t),
15493
+ simulate: (t) => el(e, t),
15494
+ simulateBlocks: (t) => el(e, t),
15495
15495
  simulateCalls: (t) => ag(e, t),
15496
15496
  simulateContract: (t) => G5(e, t),
15497
15497
  verifyHash: (t) => _a(e, t),
@@ -15573,13 +15573,13 @@ async function Nm(e, t) {
15573
15573
  chainId: r,
15574
15574
  nonce: s
15575
15575
  };
15576
- return typeof i.chainId > "u" && (i.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await q(e, zn, "getChainId")({})), typeof i.nonce > "u" && (i.nonce = await q(e, Kl, "getTransactionCount")({
15576
+ return typeof i.chainId > "u" && (i.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await q(e, zn, "getChainId")({})), typeof i.nonce > "u" && (i.nonce = await q(e, ql, "getTransactionCount")({
15577
15577
  address: a.address,
15578
15578
  blockTag: "pending"
15579
15579
  }), (o === "self" || o != null && o.address && Ba(o.address, a.address)) && (i.nonce += 1)), i;
15580
15580
  }
15581
15581
  async function Ig(e) {
15582
- return (await e.request({ method: "eth_requestAccounts" }, { dedupe: !0, retryCount: 0 })).map((n) => Fl(n));
15582
+ return (await e.request({ method: "eth_requestAccounts" }, { dedupe: !0, retryCount: 0 })).map((n) => Il(n));
15583
15583
  }
15584
15584
  async function Fg(e, t) {
15585
15585
  return e.request({
@@ -15595,7 +15595,7 @@ async function Dg(e, t) {
15595
15595
  timeout: r
15596
15596
  });
15597
15597
  }
15598
- const uc = new ds(128);
15598
+ const lc = new ds(128);
15599
15599
  async function _m(e, t) {
15600
15600
  var O, N, R, h;
15601
15601
  const { account: n = e.account, chain: r = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: d, maxFeePerGas: p, maxPriorityFeePerGas: f, nonce: m, pollingInterval: y, throwOnReceiptRevert: x, type: S, value: B, ...k } = t, U = t.timeout ?? Math.max(((r == null ? void 0 : r.blockTime) ?? 0) * 3, 5e3);
@@ -15618,7 +15618,7 @@ async function _m(e, t) {
15618
15618
  })();
15619
15619
  if ((C == null ? void 0 : C.type) === "json-rpc" || C === null) {
15620
15620
  let g;
15621
- r !== null && (g = await q(e, zn, "getChainId")({}), du({
15621
+ r !== null && (g = await q(e, zn, "getChainId")({}), uu({
15622
15622
  currentChainId: g,
15623
15623
  chain: r
15624
15624
  }));
@@ -15640,7 +15640,7 @@ async function _m(e, t) {
15640
15640
  to: b,
15641
15641
  type: S,
15642
15642
  value: B
15643
- }, "sendTransaction"), D = uc.get(e.uid), w = D ? "wallet_sendTransaction" : "eth_sendTransaction", A = await (async () => {
15643
+ }, "sendTransaction"), D = lc.get(e.uid), w = D ? "wallet_sendTransaction" : "eth_sendTransaction", A = await (async () => {
15644
15644
  try {
15645
15645
  return await e.request({
15646
15646
  method: w,
@@ -15654,9 +15654,9 @@ async function _m(e, t) {
15654
15654
  return await e.request({
15655
15655
  method: "wallet_sendTransaction",
15656
15656
  params: [T]
15657
- }, { retryCount: 0 }).then((L) => (uc.set(e.uid, !0), L)).catch((L) => {
15657
+ }, { retryCount: 0 }).then((L) => (lc.set(e.uid, !0), L)).catch((L) => {
15658
15658
  const G = L;
15659
- throw G.name === "MethodNotFoundRpcError" || G.name === "MethodNotSupportedRpcError" ? (uc.set(e.uid, !1), M) : G;
15659
+ throw G.name === "MethodNotFoundRpcError" || G.name === "MethodNotSupportedRpcError" ? (lc.set(e.uid, !1), M) : G;
15660
15660
  });
15661
15661
  throw M;
15662
15662
  }
@@ -15685,7 +15685,7 @@ async function _m(e, t) {
15685
15685
  maxPriorityFeePerGas: f,
15686
15686
  nonce: m,
15687
15687
  nonceManager: C.nonceManager,
15688
- parameters: [...eu, "sidecars"],
15688
+ parameters: [...Yl, "sidecars"],
15689
15689
  type: S,
15690
15690
  value: B,
15691
15691
  ...k,
@@ -15693,7 +15693,7 @@ async function _m(e, t) {
15693
15693
  }), v = (h = r == null ? void 0 : r.serializers) == null ? void 0 : h.transaction, E = await C.signTransaction(g, {
15694
15694
  serializer: v
15695
15695
  });
15696
- return await q(e, Fu, "sendRawTransactionSync")({
15696
+ return await q(e, Iu, "sendRawTransactionSync")({
15697
15697
  serializedTransaction: E,
15698
15698
  throwOnReceiptRevert: x
15699
15699
  });
@@ -15768,7 +15768,7 @@ async function Ng(e, t) {
15768
15768
  ...t
15769
15769
  });
15770
15770
  const o = await q(e, zn, "getChainId")({});
15771
- r !== null && du({
15771
+ r !== null && uu({
15772
15772
  currentChainId: o,
15773
15773
  chain: r
15774
15774
  });
@@ -15831,7 +15831,7 @@ function Hg(e) {
15831
15831
  return {
15832
15832
  addChain: (t) => Tg(e, t),
15833
15833
  deployContract: (t) => Sg(e, t),
15834
- fillTransaction: (t) => Yl(e, t),
15834
+ fillTransaction: (t) => Jl(e, t),
15835
15835
  getAddresses: () => Pg(e),
15836
15836
  getCallsStatus: (t) => zf(e, t),
15837
15837
  getCapabilities: (t) => Bg(e, t),
@@ -15843,8 +15843,8 @@ function Hg(e) {
15843
15843
  requestPermissions: (t) => Fg(e, t),
15844
15844
  sendCalls: (t) => _f(e, t),
15845
15845
  sendCallsSync: (t) => Dg(e, t),
15846
- sendRawTransaction: (t) => pu(e, t),
15847
- sendRawTransactionSync: (t) => Fu(e, t),
15846
+ sendRawTransaction: (t) => du(e, t),
15847
+ sendRawTransactionSync: (t) => Iu(e, t),
15848
15848
  sendTransaction: (t) => gi(e, t),
15849
15849
  sendTransactionSync: (t) => _m(e, t),
15850
15850
  showCallsStatus: (t) => Og(e, t),
@@ -15942,7 +15942,7 @@ function qg(e, t = {}) {
15942
15942
  if (p)
15943
15943
  return { error: g, result: v };
15944
15944
  if (g)
15945
- throw new Ll({
15945
+ throw new zl({
15946
15946
  body: R,
15947
15947
  error: g,
15948
15948
  url: U
@@ -15984,7 +15984,7 @@ const $r = (e, t) => !t || !e || _(e).isNaN() ? "" : G3(e, t).toString(), Ye = (
15984
15984
  try {
15985
15985
  if (!t || !e || _(e).isNaN()) return "";
15986
15986
  const n = _(e).toFixed();
15987
- return Nl(BigInt(n), t);
15987
+ return Rl(BigInt(n), t);
15988
15988
  } catch (n) {
15989
15989
  return console.error(n), "";
15990
15990
  }
@@ -16020,11 +16020,11 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16020
16020
  if (!t) return "";
16021
16021
  const n = ls(t);
16022
16022
  return `${n == null ? void 0 : n.explorer}/tx/${e}`;
16023
- }, Du = (e, t) => W(() => $r(t, e), [e, t]), Si = (e, t) => W(() => Ye(t, e), [e, t]), Ou = () => {
16023
+ }, Fu = (e, t) => W(() => $r(t, e), [e, t]), Si = (e, t) => W(() => Ye(t, e), [e, t]), Du = () => {
16024
16024
  const { chainId: e } = J();
16025
16025
  return W(() => ls(e), [e]);
16026
16026
  }, xD = (e) => {
16027
- const t = Ou();
16027
+ const t = Du();
16028
16028
  return W(() => {
16029
16029
  if (!(!e || !t))
16030
16030
  return za(e, t.id);
@@ -16041,7 +16041,7 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16041
16041
  }, $n = () => {
16042
16042
  const { srcToken: e, typedInputAmount: t } = J();
16043
16043
  return {
16044
- amount: Du(e == null ? void 0 : e.decimals, t),
16044
+ amount: Fu(e == null ? void 0 : e.decimals, t),
16045
16045
  amountUI: t,
16046
16046
  error: _(t || 0).isZero() ? "enterAmount" : void 0
16047
16047
  };
@@ -16120,7 +16120,7 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16120
16120
  }, [e, r, n, t]);
16121
16121
  return s || a;
16122
16122
  }, xs = () => {
16123
- const { callbacks: e } = J(), t = te((a) => a.state.typedFillDelay), n = te((a) => a.updateState), r = W(() => t || wc, [t]), s = nw(r);
16123
+ const { callbacks: e } = J(), t = te((a) => a.state.typedFillDelay), n = te((a) => a.updateState), r = W(() => t || gc, [t]), s = nw(r);
16124
16124
  return {
16125
16125
  fillDelay: r,
16126
16126
  onChange: Te((a) => {
@@ -16159,7 +16159,7 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16159
16159
  };
16160
16160
  }
16161
16161
  }, [e, t, n]);
16162
- }, Mu = () => {
16162
+ }, Ou = () => {
16163
16163
  const { module: e, callbacks: t } = J(), n = te((c) => c.state.typedDuration), r = te((c) => c.updateState), s = qt().totalTrades, a = xs().fillDelay, o = W(() => z1(e, s, a, n), [s, a, n, e]), i = sw(o);
16164
16164
  return {
16165
16165
  duration: o,
@@ -16170,7 +16170,7 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16170
16170
  error: i
16171
16171
  };
16172
16172
  }, aw = () => {
16173
- const { duration: e, setDuration: t, error: n } = Mu(), r = Te(
16173
+ const { duration: e, setDuration: t, error: n } = Ou(), r = Te(
16174
16174
  (a) => {
16175
16175
  t({ unit: e.unit, value: Number(a) });
16176
16176
  },
@@ -16192,7 +16192,7 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16192
16192
  }, ow = () => {
16193
16193
  const { module: e } = J();
16194
16194
  return W(() => e === re.STOP_LOSS ? k1 : C1, [e]);
16195
- }, Ru = () => {
16195
+ }, Mu = () => {
16196
16196
  const { module: e } = J(), t = te((n) => n.state.isMarketOrder);
16197
16197
  return W(() => e !== re.STOP_LOSS && e !== re.TAKE_PROFIT || t ? void 0 : e === re.STOP_LOSS ? v1 : A1, [e, t]);
16198
16198
  }, Pi = () => {
@@ -16341,7 +16341,7 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16341
16341
  };
16342
16342
  }, [e, s, t, a, r, n]);
16343
16343
  }, Bi = () => {
16344
- const { dstToken: e, marketPrice: t, callbacks: n } = J(), r = te((l) => l.updateState), s = Ru(), a = te((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = Gm({
16344
+ const { dstToken: e, marketPrice: t, callbacks: n } = J(), r = te((l) => l.updateState), s = Mu(), a = te((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = Gm({
16345
16345
  typedValue: te((l) => l.state.typedLimitPrice),
16346
16346
  percentage: o,
16347
16347
  tokenDecimals: (e == null ? void 0 : e.decimals) || 18,
@@ -16363,7 +16363,7 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16363
16363
  error: c
16364
16364
  }), [i, c]);
16365
16365
  }, uw = () => {
16366
- const { module: e } = J(), t = te((i) => i.updateState), n = te((i) => i.state.isMarketOrder), r = Ru(), s = te((i) => i.state.triggerPricePercent) || 0, a = e === re.LIMIT, o = Te(() => {
16366
+ const { module: e } = J(), t = te((i) => i.updateState), n = te((i) => i.state.isMarketOrder), r = Mu(), s = te((i) => i.state.triggerPricePercent) || 0, a = e === re.LIMIT, o = Te(() => {
16367
16367
  !n && e === re.STOP_LOSS && t({ limitPricePercent: r }), t({ isMarketOrder: !n });
16368
16368
  }, [t, s, e, n, r]);
16369
16369
  return {
@@ -16371,49 +16371,26 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16371
16371
  toggleLimitPrice: o,
16372
16372
  hide: a
16373
16373
  };
16374
- }, jm = () => {
16375
- const { module: e, marketPrice: t } = J(), n = Bi().amount, r = Ar().amount, s = te((a) => a.state.isMarketOrder);
16376
- return e === re.LIMIT || !s ? n || "" : e === re.STOP_LOSS || e === re.TAKE_PROFIT ? r || "" : t || "";
16377
- }, Ui = () => {
16378
- const { srcToken: e, dstToken: t, dstUsd1Token: n } = J(), r = jm(), s = $n().amount, a = W(() => R1(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = Si(t == null ? void 0 : t.decimals, a);
16379
- return {
16380
- amount: a,
16381
- amountUI: o,
16382
- usd: _n(o, n)
16383
- };
16384
- }, Ii = () => {
16385
- const { srcToken: e, dstToken: t, dstUsd1Token: n } = J(), r = jm(), s = qt().amountPerTrade, a = te((c) => c.state.isMarketOrder), o = W(
16386
- () => N1(s, r, !!a, (e == null ? void 0 : e.decimals) || 0),
16387
- [s, r, a, e == null ? void 0 : e.decimals]
16388
- ), i = Si(t == null ? void 0 : t.decimals, o);
16389
- return {
16390
- amount: o,
16391
- amountUI: i,
16392
- usd: _n(i, n)
16393
- };
16394
16374
  }, dw = () => {
16395
- const { module: e, marketPriceLoading: t, srcToken: n, dstToken: r } = J(), { amount: s, amountUI: a, onChange: o, onPercentageChange: i, usd: c, selectedPercentage: l, error: d, isTypedValue: p } = Bi(), { amount: f, amountUI: m, usd: y } = Ii(), x = te((N) => N.updateState), S = Ru(), { isLimitPrice: B, toggleLimitPrice: k } = uw(), { fromToken: U, toToken: C } = Pi(), O = Te(() => {
16396
- x({ typedLimitPrice: void 0 }), x({ limitPricePercent: S });
16397
- }, [x, e, S]);
16375
+ const { module: e, marketPriceLoading: t, srcToken: n, dstToken: r } = J(), { amount: s, amountUI: a, onChange: o, onPercentageChange: i, usd: c, selectedPercentage: l, error: d, isTypedValue: p } = Bi(), f = te((U) => U.updateState), m = Mu(), { isLimitPrice: y, toggleLimitPrice: x } = uw(), { fromToken: S, toToken: B } = Pi(), k = Te(() => {
16376
+ f({ typedLimitPrice: void 0 }), f({ limitPricePercent: m });
16377
+ }, [f, e, m]);
16398
16378
  return {
16399
16379
  price: s,
16400
16380
  priceUI: a,
16401
- amountPerChunk: f,
16402
- amountPerChunkUI: m,
16403
- amountPerChunkUsd: y,
16404
16381
  error: d,
16405
16382
  onInputChange: o,
16406
16383
  onPercentageChange: i,
16407
- onReset: O,
16384
+ onReset: k,
16408
16385
  usd: c,
16409
16386
  srcToken: n,
16410
16387
  dstToken: r,
16411
- invertedSrcToken: U,
16412
- invertedDstToken: C,
16388
+ invertedSrcToken: S,
16389
+ invertedDstToken: B,
16413
16390
  percentage: l,
16414
16391
  isLoading: t,
16415
- isLimitPrice: B,
16416
- toggleLimitPrice: k,
16392
+ isLimitPrice: y,
16393
+ toggleLimitPrice: x,
16417
16394
  isTypedValue: p
16418
16395
  };
16419
16396
  }, pw = () => {
@@ -16439,8 +16416,28 @@ const yD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, $m
16439
16416
  isLoading: t || !e,
16440
16417
  isTypedValue: y
16441
16418
  };
16419
+ }, jm = () => {
16420
+ const { module: e, marketPrice: t } = J(), n = Bi().amount, r = Ar().amount, s = te((a) => a.state.isMarketOrder);
16421
+ return e === re.LIMIT || !s ? n || "" : e === re.STOP_LOSS || e === re.TAKE_PROFIT ? r || "" : t || "";
16422
+ }, Ui = () => {
16423
+ const { srcToken: e, dstToken: t, dstUsd1Token: n } = J(), r = jm(), s = $n().amount, a = W(() => R1(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = Si(t == null ? void 0 : t.decimals, a);
16424
+ return {
16425
+ amount: a,
16426
+ amountUI: o,
16427
+ usd: _n(o, n)
16428
+ };
16429
+ }, Ru = () => {
16430
+ const { srcToken: e, dstToken: t, dstUsd1Token: n } = J(), r = jm(), s = qt().amountPerTrade, a = te((c) => c.state.isMarketOrder), o = W(
16431
+ () => N1(s, r, !!a, (e == null ? void 0 : e.decimals) || 0),
16432
+ [s, r, a, e == null ? void 0 : e.decimals]
16433
+ ), i = Si(t == null ? void 0 : t.decimals, o);
16434
+ return {
16435
+ amount: o,
16436
+ amountUI: i,
16437
+ usd: _n(i, n)
16438
+ };
16442
16439
  }, fw = () => {
16443
- const { typedInputAmount: e, marketPriceLoading: t, dstToken: n } = J(), { amountUI: r, usd: s } = Ui(), o = Yg() ? e : r, i = Du(n == null ? void 0 : n.decimals, o);
16440
+ const { typedInputAmount: e, marketPriceLoading: t, dstToken: n } = J(), { amountUI: r, usd: s } = Ui(), o = Yg() ? e : r, i = Fu(n == null ? void 0 : n.decimals, o);
16444
16441
  return {
16445
16442
  value: o,
16446
16443
  valueWei: i,
@@ -16477,7 +16474,7 @@ function Vm() {
16477
16474
  srcUsd1Token: r,
16478
16475
  srcBalance: s,
16479
16476
  chainId: a
16480
- } = J(), { error: o } = Ar(), { error: i } = Bi(), { error: c } = qt(), { error: l } = xs(), { error: d } = Mu(), p = hw(), f = $n().amount, m = W(() => {
16477
+ } = J(), { error: o } = Ar(), { error: i } = Bi(), { error: c } = qt(), { error: l } = xs(), { error: d } = Ou(), p = hw(), f = $n().amount, m = W(() => {
16481
16478
  if (s && _(f).gt(s))
16482
16479
  return {
16483
16480
  type: $e.INSUFFICIENT_BALANCE,
@@ -16580,7 +16577,7 @@ function qe() {
16580
16577
  function gw(e, t) {
16581
16578
  return typeof e == "function" ? e(t) : e;
16582
16579
  }
16583
- function sl(e) {
16580
+ function rl(e) {
16584
16581
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
16585
16582
  }
16586
16583
  function qm(e, t) {
@@ -16634,18 +16631,18 @@ function Nu(e, t) {
16634
16631
  function xr(e) {
16635
16632
  return JSON.stringify(
16636
16633
  e,
16637
- (t, n) => ol(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
16634
+ (t, n) => al(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
16638
16635
  );
16639
16636
  }
16640
16637
  function da(e, t) {
16641
16638
  return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => da(e[n], t[n])) : !1;
16642
16639
  }
16643
16640
  var ww = Object.prototype.hasOwnProperty;
16644
- function al(e, t) {
16641
+ function sl(e, t) {
16645
16642
  if (e === t)
16646
16643
  return e;
16647
16644
  const n = up(e) && up(t);
16648
- if (!n && !(ol(e) && ol(t))) return t;
16645
+ if (!n && !(al(e) && al(t))) return t;
16649
16646
  const s = (n ? e : Object.keys(e)).length, a = n ? t : Object.keys(t), o = a.length, i = n ? new Array(o) : {};
16650
16647
  let c = 0;
16651
16648
  for (let l = 0; l < o; l++) {
@@ -16658,7 +16655,7 @@ function al(e, t) {
16658
16655
  i[d] = f;
16659
16656
  continue;
16660
16657
  }
16661
- const m = al(p, f);
16658
+ const m = sl(p, f);
16662
16659
  i[d] = m, m === p && c++;
16663
16660
  }
16664
16661
  return s === o && c === s ? e : i;
@@ -16674,7 +16671,7 @@ function Xo(e, t) {
16674
16671
  function up(e) {
16675
16672
  return Array.isArray(e) && e.length === Object.keys(e).length;
16676
16673
  }
16677
- function ol(e) {
16674
+ function al(e) {
16678
16675
  if (!dp(e))
16679
16676
  return !1;
16680
16677
  const t = e.constructor;
@@ -16691,19 +16688,19 @@ function Ew(e) {
16691
16688
  Kn.setTimeout(t, e);
16692
16689
  });
16693
16690
  }
16694
- function il(e, t, n) {
16691
+ function ol(e, t, n) {
16695
16692
  if (typeof n.structuralSharing == "function")
16696
16693
  return n.structuralSharing(e, t);
16697
16694
  if (n.structuralSharing !== !1) {
16698
16695
  if (process.env.NODE_ENV !== "production")
16699
16696
  try {
16700
- return al(e, t);
16697
+ return sl(e, t);
16701
16698
  } catch (r) {
16702
16699
  throw console.error(
16703
16700
  `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
16704
16701
  ), r;
16705
16702
  }
16706
- return al(e, t);
16703
+ return sl(e, t);
16707
16704
  }
16708
16705
  return t;
16709
16706
  }
@@ -16766,7 +16763,7 @@ var Zn, An, Hr, Dp, vw = (Dp = class extends gs {
16766
16763
  return typeof I(this, Zn) == "boolean" ? I(this, Zn) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
16767
16764
  }
16768
16765
  }, Zn = new WeakMap(), An = new WeakMap(), Hr = new WeakMap(), Dp), _u = new vw();
16769
- function cl() {
16766
+ function il() {
16770
16767
  let e, t;
16771
16768
  const n = new Promise((s, a) => {
16772
16769
  e = s, t = a;
@@ -16889,17 +16886,17 @@ function Pw(e) {
16889
16886
  function Xm(e) {
16890
16887
  return (e ?? "online") === "online" ? Qo.isOnline() : !0;
16891
16888
  }
16892
- var ll = class extends Error {
16889
+ var cl = class extends Error {
16893
16890
  constructor(e) {
16894
16891
  super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
16895
16892
  }
16896
16893
  };
16897
16894
  function Zm(e) {
16898
16895
  let t = !1, n = 0, r;
16899
- const s = cl(), a = () => s.status !== "pending", o = (x) => {
16896
+ const s = il(), a = () => s.status !== "pending", o = (x) => {
16900
16897
  var S;
16901
16898
  if (!a()) {
16902
- const B = new ll(x);
16899
+ const B = new cl(x);
16903
16900
  f(B), (S = e.onCancel) == null || S.call(e, B);
16904
16901
  }
16905
16902
  }, i = () => {
@@ -16961,7 +16958,7 @@ var Qn, Mp, Qm = (Mp = class {
16961
16958
  this.clearGcTimeout();
16962
16959
  }
16963
16960
  scheduleGc() {
16964
- this.clearGcTimeout(), sl(this.gcTime) && V(this, Qn, Kn.setTimeout(() => {
16961
+ this.clearGcTimeout(), rl(this.gcTime) && V(this, Qn, Kn.setTimeout(() => {
16965
16962
  this.optionalRemove();
16966
16963
  }, this.gcTime));
16967
16964
  }
@@ -17006,7 +17003,7 @@ var Qn, Mp, Qm = (Mp = class {
17006
17003
  !this.observers.length && this.state.fetchStatus === "idle" && I(this, yt).remove(this);
17007
17004
  }
17008
17005
  setData(t, n) {
17009
- const r = il(this.state.data, t, this.options);
17006
+ const r = ol(this.state.data, t, this.options);
17010
17007
  return ne(this, At, tn).call(this, {
17011
17008
  data: r,
17012
17009
  type: "success",
@@ -17123,7 +17120,7 @@ var Qn, Mp, Qm = (Mp = class {
17123
17120
  initialPromise: n == null ? void 0 : n.initialPromise,
17124
17121
  fn: i.fetchFn,
17125
17122
  onCancel: (C) => {
17126
- C instanceof ll && C.revert && this.setState({
17123
+ C instanceof cl && C.revert && this.setState({
17127
17124
  ...I(this, Vr),
17128
17125
  fetchStatus: "idle"
17129
17126
  }), r.abort();
@@ -17155,7 +17152,7 @@ var Qn, Mp, Qm = (Mp = class {
17155
17152
  this
17156
17153
  ), C;
17157
17154
  } catch (C) {
17158
- if (C instanceof ll) {
17155
+ if (C instanceof cl) {
17159
17156
  if (C.silent)
17160
17157
  return I(this, De).promise;
17161
17158
  if (C.revert) {
@@ -17285,7 +17282,7 @@ function fp(e) {
17285
17282
  fetchStatus: "idle"
17286
17283
  };
17287
17284
  }
17288
- var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl, pl, fl, ml, hl, bl, Ym, Np, Uw = (Np = class extends gs {
17285
+ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ll, ul, dl, pl, fl, ml, hl, Ym, Np, Uw = (Np = class extends gs {
17289
17286
  constructor(t, n) {
17290
17287
  super();
17291
17288
  Z(this, pe);
@@ -17306,33 +17303,33 @@ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl,
17306
17303
  Z(this, rr);
17307
17304
  Z(this, Pn);
17308
17305
  Z(this, Xr, /* @__PURE__ */ new Set());
17309
- this.options = n, V(this, Ze, t), V(this, Sn, null), V(this, rn, cl()), this.bindMethods(), this.setOptions(n);
17306
+ this.options = n, V(this, Ze, t), V(this, Sn, null), V(this, rn, il()), this.bindMethods(), this.setOptions(n);
17310
17307
  }
17311
17308
  bindMethods() {
17312
17309
  this.refetch = this.refetch.bind(this);
17313
17310
  }
17314
17311
  onSubscribe() {
17315
- this.listeners.size === 1 && (I(this, ce).addObserver(this), mp(I(this, ce), this.options) ? ne(this, pe, Ms).call(this) : this.updateResult(), ne(this, pe, fl).call(this));
17312
+ this.listeners.size === 1 && (I(this, ce).addObserver(this), mp(I(this, ce), this.options) ? ne(this, pe, Ms).call(this) : this.updateResult(), ne(this, pe, pl).call(this));
17316
17313
  }
17317
17314
  onUnsubscribe() {
17318
17315
  this.hasListeners() || this.destroy();
17319
17316
  }
17320
17317
  shouldFetchOnReconnect() {
17321
- return yl(
17318
+ return bl(
17322
17319
  I(this, ce),
17323
17320
  this.options,
17324
17321
  this.options.refetchOnReconnect
17325
17322
  );
17326
17323
  }
17327
17324
  shouldFetchOnWindowFocus() {
17328
- return yl(
17325
+ return bl(
17329
17326
  I(this, ce),
17330
17327
  this.options,
17331
17328
  this.options.refetchOnWindowFocus
17332
17329
  );
17333
17330
  }
17334
17331
  destroy() {
17335
- this.listeners = /* @__PURE__ */ new Set(), ne(this, pe, ml).call(this), ne(this, pe, hl).call(this), I(this, ce).removeObserver(this);
17332
+ this.listeners = /* @__PURE__ */ new Set(), ne(this, pe, fl).call(this), ne(this, pe, ml).call(this), I(this, ce).removeObserver(this);
17336
17333
  }
17337
17334
  setOptions(t) {
17338
17335
  const n = this.options, r = I(this, ce);
@@ -17340,7 +17337,7 @@ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl,
17340
17337
  throw new Error(
17341
17338
  "Expected enabled to be a boolean or a callback that returns a boolean"
17342
17339
  );
17343
- ne(this, pe, bl).call(this), I(this, ce).setOptions(this.options), n._defaulted && !Xo(this.options, n) && I(this, Ze).getQueryCache().notify({
17340
+ ne(this, pe, hl).call(this), I(this, ce).setOptions(this.options), n._defaulted && !Xo(this.options, n) && I(this, Ze).getQueryCache().notify({
17344
17341
  type: "observerOptionsUpdated",
17345
17342
  query: I(this, ce),
17346
17343
  observer: this
@@ -17351,9 +17348,9 @@ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl,
17351
17348
  r,
17352
17349
  this.options,
17353
17350
  n
17354
- ) && ne(this, pe, Ms).call(this), this.updateResult(), s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || On(this.options.staleTime, I(this, ce)) !== On(n.staleTime, I(this, ce))) && ne(this, pe, ul).call(this);
17355
- const a = ne(this, pe, dl).call(this);
17356
- s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || a !== I(this, Pn)) && ne(this, pe, pl).call(this, a);
17351
+ ) && ne(this, pe, Ms).call(this), this.updateResult(), s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || On(this.options.staleTime, I(this, ce)) !== On(n.staleTime, I(this, ce))) && ne(this, pe, ll).call(this);
17352
+ const a = ne(this, pe, ul).call(this);
17353
+ s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || a !== I(this, Pn)) && ne(this, pe, dl).call(this, a);
17357
17354
  }
17358
17355
  getOptimisticResult(t) {
17359
17356
  const n = I(this, Ze).getQueryCache().build(I(this, Ze), t), r = this.createResult(n, t);
@@ -17411,7 +17408,7 @@ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl,
17411
17408
  a != null && a.isPlaceholderData && n.placeholderData === (i == null ? void 0 : i.placeholderData) ? (g = a.data, B = !0) : g = typeof n.placeholderData == "function" ? n.placeholderData(
17412
17409
  (b = I(this, Wr)) == null ? void 0 : b.state.data,
17413
17410
  I(this, Wr)
17414
- ) : n.placeholderData, g !== void 0 && (S = "success", m = il(
17411
+ ) : n.placeholderData, g !== void 0 && (S = "success", m = ol(
17415
17412
  a == null ? void 0 : a.data,
17416
17413
  g,
17417
17414
  n
@@ -17422,7 +17419,7 @@ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl,
17422
17419
  m = I(this, Kr);
17423
17420
  else
17424
17421
  try {
17425
- V(this, ba, n.select), m = n.select(m), m = il(a == null ? void 0 : a.data, m, n), V(this, Kr, m), V(this, Sn, null);
17422
+ V(this, ba, n.select), m = n.select(m), m = ol(a == null ? void 0 : a.data, m, n), V(this, Kr, m), V(this, Sn, null);
17426
17423
  } catch (g) {
17427
17424
  V(this, Sn, g);
17428
17425
  }
@@ -17459,7 +17456,7 @@ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl,
17459
17456
  const g = (T) => {
17460
17457
  h.status === "error" ? T.reject(h.error) : h.data !== void 0 && T.resolve(h.data);
17461
17458
  }, v = () => {
17462
- const T = V(this, rn, h.promise = cl());
17459
+ const T = V(this, rn, h.promise = il());
17463
17460
  g(T);
17464
17461
  }, E = I(this, rn);
17465
17462
  switch (E.status) {
@@ -17498,40 +17495,40 @@ var Ze, ce, ha, je, tr, qr, rn, Sn, ba, Kr, Wr, nr, rr, Pn, Xr, pe, Ms, ul, dl,
17498
17495
  ne(this, pe, Ym).call(this, { listeners: r() });
17499
17496
  }
17500
17497
  onQueryUpdate() {
17501
- this.updateResult(), this.hasListeners() && ne(this, pe, fl).call(this);
17498
+ this.updateResult(), this.hasListeners() && ne(this, pe, pl).call(this);
17502
17499
  }
17503
17500
  }, Ze = new WeakMap(), ce = new WeakMap(), ha = new WeakMap(), je = new WeakMap(), tr = new WeakMap(), qr = new WeakMap(), rn = new WeakMap(), Sn = new WeakMap(), ba = new WeakMap(), Kr = new WeakMap(), Wr = new WeakMap(), nr = new WeakMap(), rr = new WeakMap(), Pn = new WeakMap(), Xr = new WeakMap(), pe = new WeakSet(), Ms = function(t) {
17504
- ne(this, pe, bl).call(this);
17501
+ ne(this, pe, hl).call(this);
17505
17502
  let n = I(this, ce).fetch(
17506
17503
  this.options,
17507
17504
  t
17508
17505
  );
17509
17506
  return t != null && t.throwOnError || (n = n.catch(qe)), n;
17510
- }, ul = function() {
17511
- ne(this, pe, ml).call(this);
17507
+ }, ll = function() {
17508
+ ne(this, pe, fl).call(this);
17512
17509
  const t = On(
17513
17510
  this.options.staleTime,
17514
17511
  I(this, ce)
17515
17512
  );
17516
- if (yr || I(this, je).isStale || !sl(t))
17513
+ if (yr || I(this, je).isStale || !rl(t))
17517
17514
  return;
17518
17515
  const r = qm(I(this, je).dataUpdatedAt, t) + 1;
17519
17516
  V(this, nr, Kn.setTimeout(() => {
17520
17517
  I(this, je).isStale || this.updateResult();
17521
17518
  }, r));
17522
- }, dl = function() {
17519
+ }, ul = function() {
17523
17520
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(I(this, ce)) : this.options.refetchInterval) ?? !1;
17524
- }, pl = function(t) {
17525
- ne(this, pe, hl).call(this), V(this, Pn, t), !(yr || xt(this.options.enabled, I(this, ce)) === !1 || !sl(I(this, Pn)) || I(this, Pn) === 0) && V(this, rr, Kn.setInterval(() => {
17521
+ }, dl = function(t) {
17522
+ ne(this, pe, ml).call(this), V(this, Pn, t), !(yr || xt(this.options.enabled, I(this, ce)) === !1 || !rl(I(this, Pn)) || I(this, Pn) === 0) && V(this, rr, Kn.setInterval(() => {
17526
17523
  (this.options.refetchIntervalInBackground || _u.isFocused()) && ne(this, pe, Ms).call(this);
17527
17524
  }, I(this, Pn)));
17525
+ }, pl = function() {
17526
+ ne(this, pe, ll).call(this), ne(this, pe, dl).call(this, ne(this, pe, ul).call(this));
17528
17527
  }, fl = function() {
17529
- ne(this, pe, ul).call(this), ne(this, pe, pl).call(this, ne(this, pe, dl).call(this));
17530
- }, ml = function() {
17531
17528
  I(this, nr) && (Kn.clearTimeout(I(this, nr)), V(this, nr, void 0));
17532
- }, hl = function() {
17529
+ }, ml = function() {
17533
17530
  I(this, rr) && (Kn.clearInterval(I(this, rr)), V(this, rr, void 0));
17534
- }, bl = function() {
17531
+ }, hl = function() {
17535
17532
  const t = I(this, Ze).getQueryCache().build(I(this, Ze), this.options);
17536
17533
  if (t === I(this, ce))
17537
17534
  return;
@@ -17551,9 +17548,9 @@ function Iw(e, t) {
17551
17548
  return xt(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
17552
17549
  }
17553
17550
  function mp(e, t) {
17554
- return Iw(e, t) || e.state.data !== void 0 && yl(e, t, t.refetchOnMount);
17551
+ return Iw(e, t) || e.state.data !== void 0 && bl(e, t, t.refetchOnMount);
17555
17552
  }
17556
- function yl(e, t, n) {
17553
+ function bl(e, t, n) {
17557
17554
  if (xt(t.enabled, e) !== !1 && On(t.staleTime, e) !== "static") {
17558
17555
  const r = typeof n == "function" ? n(e) : n;
17559
17556
  return r === "always" || r !== !1 && zu(e, t);
@@ -17979,7 +17976,7 @@ function eo(e) {
17979
17976
  var t;
17980
17977
  return (t = e.options.scope) == null ? void 0 : t.id;
17981
17978
  }
17982
- var an, Bn, Qe, on, pn, Ro, xl, Lp, Rw = (Lp = class extends gs {
17979
+ var an, Bn, Qe, on, pn, Ro, yl, Lp, Rw = (Lp = class extends gs {
17983
17980
  constructor(t, n) {
17984
17981
  super();
17985
17982
  Z(this, pn);
@@ -18006,14 +18003,14 @@ var an, Bn, Qe, on, pn, Ro, xl, Lp, Rw = (Lp = class extends gs {
18006
18003
  this.hasListeners() || (t = I(this, Qe)) == null || t.removeObserver(this);
18007
18004
  }
18008
18005
  onMutationUpdate(t) {
18009
- ne(this, pn, Ro).call(this), ne(this, pn, xl).call(this, t);
18006
+ ne(this, pn, Ro).call(this), ne(this, pn, yl).call(this, t);
18010
18007
  }
18011
18008
  getCurrentResult() {
18012
18009
  return I(this, Bn);
18013
18010
  }
18014
18011
  reset() {
18015
18012
  var t;
18016
- (t = I(this, Qe)) == null || t.removeObserver(this), V(this, Qe, void 0), ne(this, pn, Ro).call(this), ne(this, pn, xl).call(this);
18013
+ (t = I(this, Qe)) == null || t.removeObserver(this), V(this, Qe, void 0), ne(this, pn, Ro).call(this), ne(this, pn, yl).call(this);
18017
18014
  }
18018
18015
  mutate(t, n) {
18019
18016
  var r;
@@ -18031,7 +18028,7 @@ var an, Bn, Qe, on, pn, Ro, xl, Lp, Rw = (Lp = class extends gs {
18031
18028
  mutate: this.mutate,
18032
18029
  reset: this.reset
18033
18030
  });
18034
- }, xl = function(t) {
18031
+ }, yl = function(t) {
18035
18032
  Be.batch(() => {
18036
18033
  var n, r, s, a, o, i, c, l;
18037
18034
  if (I(this, on) && this.hasListeners()) {
@@ -18488,7 +18485,7 @@ function yn(e, t) {
18488
18485
  throw s.error;
18489
18486
  return { ...s, mutate: a, mutateAsync: s.mutate };
18490
18487
  }
18491
- const Fi = () => {
18488
+ const Ii = () => {
18492
18489
  const e = te((a) => a.state.swapExecutionIndex), t = te(
18493
18490
  (a) => a.state.swapExecutions[a.state.swapExecutionIndex] ?? {}
18494
18491
  ), n = te((a) => a.updateSwapExecutionAtIndex), r = te((a) => a.resetSwapExecutionAtIndex), s = Te(
@@ -18607,10 +18604,10 @@ const Fi = () => {
18607
18604
  }
18608
18605
  }).mutateAsync;
18609
18606
  }, Gu = () => {
18610
- const e = te((n) => n.state.currentTime), t = Mu().duration;
18607
+ const e = te((n) => n.state.currentTime), t = Ou().duration;
18611
18608
  return W(() => H1(e, t), [e, t]);
18612
18609
  }, sh = () => {
18613
- const { srcToken: e, dstToken: t, account: n, chainId: r, slippage: s, config: a, module: o, fees: i } = J(), { amount: c } = $n(), { amountPerTrade: l, totalTrades: d } = qt(), p = Gu(), { amount: f } = Ii(), { pricePerChunk: m } = Ar(), { milliseconds: y } = xs();
18610
+ const { srcToken: e, dstToken: t, account: n, chainId: r, slippage: s, config: a, module: o, fees: i } = J(), { amount: c } = $n(), { amountPerTrade: l, totalTrades: d } = qt(), p = Gu(), { amount: f } = Ru(), { pricePerChunk: m } = Ar(), { milliseconds: y } = xs();
18614
18611
  return W(() => {
18615
18612
  var x;
18616
18613
  return ib({
@@ -18652,7 +18649,7 @@ const Fi = () => {
18652
18649
  overrides: n,
18653
18650
  callbacks: r,
18654
18651
  chainId: s
18655
- } = J(), a = (i = Ou()) == null ? void 0 : i.wToken, o = Hu();
18652
+ } = J(), a = (i = Du()) == null ? void 0 : i.wToken, o = Hu();
18656
18653
  return yn({
18657
18654
  mutationFn: async ({
18658
18655
  onHash: c,
@@ -18813,7 +18810,7 @@ const Fi = () => {
18813
18810
  }
18814
18811
  });
18815
18812
  }, iE = () => {
18816
- const { account: e, chainId: t, srcToken: n, dstToken: r, module: s, slippage: a } = J(), o = Ar(), i = $n().amount, c = qt().amountPerTrade, l = Gu(), d = qt().totalTrades, p = xs().fillDelay, f = Ii().amount, m = te((y) => y.state.isMarketOrder);
18813
+ const { account: e, chainId: t, srcToken: n, dstToken: r, module: s, slippage: a } = J(), o = Ar(), i = $n().amount, c = qt().amountPerTrade, l = Gu(), d = qt().totalTrades, p = xs().fillDelay, f = Ru().amount, m = te((y) => y.state.isMarketOrder);
18817
18814
  return yn({
18818
18815
  mutationFn: async () => {
18819
18816
  ve.onRequestOrder({
@@ -18843,7 +18840,7 @@ function cE(e) {
18843
18840
  };
18844
18841
  }
18845
18842
  const ih = () => {
18846
- const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = J(), a = oE().mutateAsync, o = aE().mutateAsync, i = ah().mutateAsync, { mutateAsync: c } = oh(), { update: l } = Fi(), { amount: d } = $n(), p = iE().mutate;
18843
+ const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = J(), a = oE().mutateAsync, o = aE().mutateAsync, i = ah().mutateAsync, { mutateAsync: c } = oh(), { update: l } = Ii(), { amount: d } = $n(), p = iE().mutate;
18847
18844
  return yn({
18848
18845
  mutationFn: async () => {
18849
18846
  var m, y;
@@ -18910,7 +18907,7 @@ const ih = () => {
18910
18907
  }
18911
18908
  });
18912
18909
  }, lE = () => {
18913
- const e = Fi(), { srcToken: t, dstToken: n } = J(), r = ih(), s = te((l) => l.resetState), a = Te(
18910
+ const e = Ii(), { srcToken: t, dstToken: n } = J(), r = ih(), s = te((l) => l.resetState), a = Te(
18914
18911
  () => r.mutateAsync(),
18915
18912
  [r]
18916
18913
  ), { update: o, resetSwap: i, ...c } = e;
@@ -18953,7 +18950,7 @@ const ih = () => {
18953
18950
  const { srcUsd1Token: e, dstUsd1Token: t } = J(), n = $n().amountUI, r = Ui().amountUI, s = _n(n, e), a = _n(r, t);
18954
18951
  return { srcAmountUsd: s, dstAmountUsd: a };
18955
18952
  }, pE = () => {
18956
- const { fees: e, dstToken: t, dstUsd1Token: n } = J(), { amountUI: r } = Ui(), s = W(() => !e || !r ? "" : _(r).multipliedBy(e).dividedBy(100).toFixed(), [r, e]), a = Du((t == null ? void 0 : t.decimals) || 0, s);
18953
+ const { fees: e, dstToken: t, dstUsd1Token: n } = J(), { amountUI: r } = Ui(), s = W(() => !e || !r ? "" : _(r).multipliedBy(e).dividedBy(100).toFixed(), [r, e]), a = Fu((t == null ? void 0 : t.decimals) || 0, s);
18957
18954
  return {
18958
18955
  amountUI: s,
18959
18956
  amount: a,
@@ -19042,11 +19039,11 @@ const ih = () => {
19042
19039
  amount: y,
19043
19040
  amountUI: x,
19044
19041
  usd: S
19045
- } = Ii(), {
19042
+ } = Ru(), {
19046
19043
  amountUI: B,
19047
19044
  amount: k,
19048
19045
  usd: U
19049
- } = Ar(), { milliseconds: C } = xs(), { amount: O, amountUI: N } = Ui(), { srcAmountUsd: R, dstAmountUsd: h } = dE(), { amount: b, amountUI: g, percent: v, usd: E } = pE(), T = sh(), D = te((X) => X.state.isMarketOrder), w = te((X) => X.state.currentTime), A = Fi(), F = Yw(), P = A.acceptedSrcAmount || a, M = Ye(r, (t == null ? void 0 : t.decimals) || 0), L = W(() => F === de.TAKE_PROFIT || F === de.STOP_LOSS_LIMIT || F === de.STOP_LOSS_MARKET, [F]), G = fE({
19046
+ } = Ar(), { milliseconds: C } = xs(), { amount: O, amountUI: N } = Ui(), { srcAmountUsd: R, dstAmountUsd: h } = dE(), { amount: b, amountUI: g, percent: v, usd: E } = pE(), T = sh(), D = te((X) => X.state.isMarketOrder), w = te((X) => X.state.currentTime), A = Ii(), F = Yw(), P = A.acceptedSrcAmount || a, M = Ye(r, (t == null ? void 0 : t.decimals) || 0), L = W(() => F === de.TAKE_PROFIT || F === de.STOP_LOSS_LIMIT || F === de.STOP_LOSS_MARKET, [F]), G = fE({
19050
19047
  srcToken: e,
19051
19048
  dstToken: t,
19052
19049
  account: n,
@@ -19193,14 +19190,14 @@ const ih = () => {
19193
19190
  }
19194
19191
  }
19195
19192
  });
19196
- }, lh = kl(null), gE = ({
19193
+ }, lh = El(null), gE = ({
19197
19194
  children: e
19198
19195
  }) => {
19199
19196
  const t = tw(), n = aw(), r = rw(), s = dw(), a = pw(), o = Pi(), i = fw(), c = mw(), l = Vm(), d = uE(), p = hE(), f = sE(), m = lE(), y = bE(), x = xE(), S = ah(), B = ih(), k = ch(), U = W(
19200
19197
  () => ({ cancelOrder: x, signOrder: S, submitOrder: B, refetchUntilStatusSynced: k }),
19201
19198
  [x, S, B, k]
19202
19199
  ), C = {
19203
- tradesPanel: t,
19200
+ tradesAmountPanel: t,
19204
19201
  durationPanel: n,
19205
19202
  fillDelayPanel: r,
19206
19203
  limitPricePanel: s,
@@ -19222,13 +19219,13 @@ const ih = () => {
19222
19219
  if (e === null)
19223
19220
  throw new Error("useSpot must be used within SpotProvider");
19224
19221
  return e;
19225
- }, wE = kl(null), dc = {
19222
+ }, wE = El(null), uc = {
19226
19223
  didCatch: !1,
19227
19224
  error: null
19228
19225
  };
19229
19226
  class EE extends _h {
19230
19227
  constructor(t) {
19231
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = dc;
19228
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = uc;
19232
19229
  }
19233
19230
  static getDerivedStateFromError(t) {
19234
19231
  return {
@@ -19246,7 +19243,7 @@ class EE extends _h {
19246
19243
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
19247
19244
  args: a,
19248
19245
  reason: "imperative-api"
19249
- }), this.setState(dc);
19246
+ }), this.setState(uc);
19250
19247
  }
19251
19248
  }
19252
19249
  componentDidCatch(t, n) {
@@ -19265,7 +19262,7 @@ class EE extends _h {
19265
19262
  next: s,
19266
19263
  prev: t.resetKeys,
19267
19264
  reason: "keys"
19268
- }), this.setState(dc);
19265
+ }), this.setState(uc);
19269
19266
  }
19270
19267
  }
19271
19268
  render() {
@@ -19403,7 +19400,7 @@ const CE = /* @__PURE__ */ u({
19403
19400
  },
19404
19401
  testnet: !1
19405
19402
  }), ju = 50000n, gp = I2 * 32n, uh = {
19406
- block: /* @__PURE__ */ Vl({
19403
+ block: /* @__PURE__ */ jl({
19407
19404
  format(e) {
19408
19405
  var n;
19409
19406
  const t = (n = e.transactions) == null ? void 0 : n.map((r) => {
@@ -19430,7 +19427,7 @@ const CE = /* @__PURE__ */ u({
19430
19427
  };
19431
19428
  }
19432
19429
  }),
19433
- transactionReceipt: /* @__PURE__ */ fu({
19430
+ transactionReceipt: /* @__PURE__ */ pu({
19434
19431
  format(e) {
19435
19432
  return {
19436
19433
  l1BatchNumber: e.l1BatchNumber ? ue(e.l1BatchNumber) : null,
@@ -19457,7 +19454,7 @@ const CE = /* @__PURE__ */ u({
19457
19454
  };
19458
19455
  }
19459
19456
  }),
19460
- transactionRequest: /* @__PURE__ */ $l({
19457
+ transactionRequest: /* @__PURE__ */ Ll({
19461
19458
  exclude: [
19462
19459
  "customSignature",
19463
19460
  "factoryDeps",
@@ -19897,7 +19894,7 @@ const dt = {
19897
19894
  address: "0x4200000000000000000000000000000000000016"
19898
19895
  }
19899
19896
  }, Vu = {
19900
- block: /* @__PURE__ */ Vl({
19897
+ block: /* @__PURE__ */ jl({
19901
19898
  format(e) {
19902
19899
  var n;
19903
19900
  return {
@@ -19917,7 +19914,7 @@ const dt = {
19917
19914
  return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? ue(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
19918
19915
  }
19919
19916
  }),
19920
- transactionReceipt: /* @__PURE__ */ fu({
19917
+ transactionReceipt: /* @__PURE__ */ pu({
19921
19918
  format(e) {
19922
19919
  return {
19923
19920
  l1GasPrice: e.l1GasPrice ? ue(e.l1GasPrice) : null,
@@ -21424,7 +21421,7 @@ const $ = {
21424
21421
  },
21425
21422
  testnet: !0,
21426
21423
  sourceId: o9
21427
- }), pc = 1, c9 = /* @__PURE__ */ u({
21424
+ }), dc = 1, c9 = /* @__PURE__ */ u({
21428
21425
  ...$,
21429
21426
  id: 60808,
21430
21427
  name: "BOB",
@@ -21452,19 +21449,19 @@ const $ = {
21452
21449
  blockCreated: 23131
21453
21450
  },
21454
21451
  l2OutputOracle: {
21455
- [pc]: {
21452
+ [dc]: {
21456
21453
  address: "0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",
21457
21454
  blockCreated: 4462615
21458
21455
  }
21459
21456
  },
21460
21457
  portal: {
21461
- [pc]: {
21458
+ [dc]: {
21462
21459
  address: "0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",
21463
21460
  blockCreated: 4462615
21464
21461
  }
21465
21462
  }
21466
21463
  },
21467
- sourceId: pc
21464
+ sourceId: dc
21468
21465
  }), l9 = /* @__PURE__ */ u({
21469
21466
  id: 288,
21470
21467
  name: "Boba Network",
@@ -21506,7 +21503,7 @@ const $ = {
21506
21503
  }
21507
21504
  },
21508
21505
  testnet: !0
21509
- }), fc = 11155111, d9 = /* @__PURE__ */ u({
21506
+ }), pc = 11155111, d9 = /* @__PURE__ */ u({
21510
21507
  ...$,
21511
21508
  id: 808813,
21512
21509
  name: "BOB Sepolia",
@@ -21534,20 +21531,20 @@ const $ = {
21534
21531
  blockCreated: 35677
21535
21532
  },
21536
21533
  l2OutputOracle: {
21537
- [fc]: {
21534
+ [pc]: {
21538
21535
  address: "0x14D0069452b4AE2b250B395b8adAb771E4267d2f",
21539
21536
  blockCreated: 4462615
21540
21537
  }
21541
21538
  },
21542
21539
  portal: {
21543
- [fc]: {
21540
+ [pc]: {
21544
21541
  address: "0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",
21545
21542
  blockCreated: 4462615
21546
21543
  }
21547
21544
  }
21548
21545
  },
21549
21546
  testnet: !0,
21550
- sourceId: fc
21547
+ sourceId: pc
21551
21548
  }), p9 = /* @__PURE__ */ u({
21552
21549
  id: 11100,
21553
21550
  name: "Bool Beta Mainnet",
@@ -21934,7 +21931,7 @@ function xh(e) {
21934
21931
  return e.type === "cip64" ? !0 : D9(e) && Rs(e.feeCurrency);
21935
21932
  }
21936
21933
  const O9 = {
21937
- block: /* @__PURE__ */ Vl({
21934
+ block: /* @__PURE__ */ jl({
21938
21935
  format(e) {
21939
21936
  var n;
21940
21937
  return {
@@ -21962,7 +21959,7 @@ const O9 = {
21962
21959
  return e.type === "0x7b" ? t.type = "cip64" : (e.type === "0x7c" && (t.type = "cip42"), t.gatewayFee = e.gatewayFee ? ue(e.gatewayFee) : null, t.gatewayFeeRecipient = e.gatewayFeeRecipient), t;
21963
21960
  }
21964
21961
  }),
21965
- transactionRequest: /* @__PURE__ */ $l({
21962
+ transactionRequest: /* @__PURE__ */ Ll({
21966
21963
  format(e) {
21967
21964
  const t = {};
21968
21965
  return e.feeCurrency && (t.feeCurrency = e.feeCurrency), xh(e) && (t.type = "0x7b"), t;
@@ -22098,7 +22095,7 @@ const pa = {
22098
22095
  }
22099
22096
  },
22100
22097
  testnet: !0
22101
- }), mc = 11155111, H9 = /* @__PURE__ */ u({
22098
+ }), fc = 11155111, H9 = /* @__PURE__ */ u({
22102
22099
  ...pa,
22103
22100
  id: 11142220,
22104
22101
  name: "Celo Sepolia Testnet",
@@ -22126,19 +22123,19 @@ const pa = {
22126
22123
  blockCreated: 1
22127
22124
  },
22128
22125
  portal: {
22129
- [mc]: {
22126
+ [fc]: {
22130
22127
  address: "0x44ae3d41a335a7d05eb533029917aad35662dcc2",
22131
22128
  blockCreated: 8825790
22132
22129
  }
22133
22130
  },
22134
22131
  disputeGameFactory: {
22135
- [mc]: {
22132
+ [fc]: {
22136
22133
  address: "0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",
22137
22134
  blockCreated: 8825790
22138
22135
  }
22139
22136
  },
22140
22137
  l1StandardBridge: {
22141
- [mc]: {
22138
+ [fc]: {
22142
22139
  address: "0xec18a3c30131a0db4246e785355fbc16e2eaf408",
22143
22140
  blockCreated: 8825790
22144
22141
  }
@@ -27140,7 +27137,7 @@ async function iA(e, t) {
27140
27137
  priorityFeePerGas: BigInt(g)
27141
27138
  };
27142
27139
  } catch (i) {
27143
- throw lu(i, {
27140
+ throw cu(i, {
27144
27141
  ...t,
27145
27142
  account: r,
27146
27143
  chain: e.chain
@@ -32617,7 +32614,7 @@ const cA = /* @__PURE__ */ u({
32617
32614
  }
32618
32615
  },
32619
32616
  sourceId: Fs
32620
- }), hc = 11155111, AB = /* @__PURE__ */ u({
32617
+ }), mc = 11155111, AB = /* @__PURE__ */ u({
32621
32618
  ...$,
32622
32619
  id: 53302,
32623
32620
  name: "Superseed Sepolia",
@@ -32644,20 +32641,20 @@ const cA = /* @__PURE__ */ u({
32644
32641
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
32645
32642
  },
32646
32643
  portal: {
32647
- [hc]: {
32644
+ [mc]: {
32648
32645
  address: "0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",
32649
32646
  blockCreated: 5523438
32650
32647
  }
32651
32648
  },
32652
32649
  l1StandardBridge: {
32653
- [hc]: {
32650
+ [mc]: {
32654
32651
  address: "0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",
32655
32652
  blockCreated: 5523442
32656
32653
  }
32657
32654
  }
32658
32655
  },
32659
32656
  testnet: !0,
32660
- sourceId: hc
32657
+ sourceId: mc
32661
32658
  }), TB = /* @__PURE__ */ u({
32662
32659
  id: 763375,
32663
32660
  name: "Surge Testnet",
@@ -33131,7 +33128,7 @@ const wh = ys(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffff
33131
33128
  Gy: BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),
33132
33129
  h: BigInt(1),
33133
33130
  lowS: !1
33134
- }, Zl), Eh = ys(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")), JB = Eh.create(BigInt("-3")), YB = BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");
33131
+ }, Xl), Eh = ys(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")), JB = Eh.create(BigInt("-3")), YB = BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");
33135
33132
  ki({
33136
33133
  a: JB,
33137
33134
  b: YB,
@@ -33159,7 +33156,7 @@ ki({
33159
33156
  const nU = QB;
33160
33157
  function Ch(e) {
33161
33158
  const { hash: t, payload: n, publicKey: r, signature: s } = e;
33162
- return nU.verify(s, n instanceof Uint8Array ? n : Ln(n), gu(r).substring(2), ...t ? [{ prehash: !0, lowS: !0 }] : []);
33159
+ return nU.verify(s, n instanceof Uint8Array ? n : Ln(n), xu(r).substring(2), ...t ? [{ prehash: !0, lowS: !0 }] : []);
33163
33160
  }
33164
33161
  const rU = /* @__PURE__ */ new TextEncoder();
33165
33162
  Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e, t) => [t, e.charCodeAt(0)]);
@@ -33225,15 +33222,15 @@ function aU(e) {
33225
33222
  signature: a
33226
33223
  });
33227
33224
  }
33228
- const gl = "0x01", wl = "0x02", vh = "0x03", Wn = "0x7777777777777777777777777777777777777777777777777777777777777777";
33225
+ const xl = "0x01", gl = "0x02", vh = "0x03", Wn = "0x7777777777777777777777777777777777777777777777777777777777777777";
33229
33226
  function ws(e) {
33230
33227
  const t = e.endsWith(Wn.slice(2)) ? oe(e, 0, -Ae(Wn)) : e;
33231
33228
  if (Ae(t) === 65) {
33232
- const o = Su(t);
33229
+ const o = Tu(t);
33233
33230
  return Ci(o), { signature: o, type: "secp256k1" };
33234
33231
  }
33235
33232
  const r = oe(t, 0, 1), s = oe(t, 1), a = Ae(s);
33236
- if (r === gl) {
33233
+ if (r === xl) {
33237
33234
  if (a !== 129)
33238
33235
  throw new Ns({
33239
33236
  reason: `Invalid P256 signature envelope size: expected 129 bytes, got ${a} bytes`,
@@ -33253,7 +33250,7 @@ function ws(e) {
33253
33250
  type: "p256"
33254
33251
  };
33255
33252
  }
33256
- if (r === wl) {
33253
+ if (r === gl) {
33257
33254
  if (a < 128)
33258
33255
  throw new Ns({
33259
33256
  reason: `Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${a} bytes`,
@@ -33301,7 +33298,7 @@ function ws(e) {
33301
33298
  };
33302
33299
  }
33303
33300
  throw new Ns({
33304
- reason: `Unknown signature type identifier: ${r}. Expected ${gl} (P256) or ${wl} (WebAuthn)`,
33301
+ reason: `Unknown signature type identifier: ${r}. Expected ${xl} (P256) or ${gl} (WebAuthn)`,
33305
33302
  serialized: t
33306
33303
  });
33307
33304
  }
@@ -33317,10 +33314,10 @@ function La(e) {
33317
33314
  type: t
33318
33315
  };
33319
33316
  }
33320
- function Di(e) {
33317
+ function Fi(e) {
33321
33318
  if (e.type === "secp256k1")
33322
33319
  return {
33323
- signature: Pu(e),
33320
+ signature: Su(e),
33324
33321
  type: "secp256k1"
33325
33322
  };
33326
33323
  if (e.type === "p256")
@@ -33375,7 +33372,7 @@ function Di(e) {
33375
33372
  return {
33376
33373
  type: "keychain",
33377
33374
  userAddress: e.userAddress,
33378
- inner: Di(e.signature)
33375
+ inner: Fi(e.signature)
33379
33376
  };
33380
33377
  throw new fa({ envelope: e });
33381
33378
  }
@@ -33396,21 +33393,21 @@ function Ku(e) {
33396
33393
  envelope: e
33397
33394
  });
33398
33395
  }
33399
- function Oi(e, t = {}) {
33396
+ function Di(e, t = {}) {
33400
33397
  const n = Ku(e);
33401
33398
  if (n === "secp256k1")
33402
33399
  return Ee(A3(e.signature), t.magic ? Wn : "0x");
33403
33400
  if (n === "p256") {
33404
33401
  const r = e;
33405
- return Ee(gl, j(r.signature.r, { size: 32 }), j(r.signature.s, { size: 32 }), j(r.publicKey.x, { size: 32 }), j(r.publicKey.y, { size: 32 }), j(r.prehash ? 1 : 0, { size: 1 }), t.magic ? Wn : "0x");
33402
+ return Ee(xl, j(r.signature.r, { size: 32 }), j(r.signature.s, { size: 32 }), j(r.publicKey.x, { size: 32 }), j(r.publicKey.y, { size: 32 }), j(r.prehash ? 1 : 0, { size: 1 }), t.magic ? Wn : "0x");
33406
33403
  }
33407
33404
  if (n === "webAuthn") {
33408
33405
  const r = e, s = Ee(r.metadata.authenticatorData, Da(r.metadata.clientDataJSON));
33409
- return Ee(wl, s, j(r.signature.r, { size: 32 }), j(r.signature.s, { size: 32 }), j(r.publicKey.x, { size: 32 }), j(r.publicKey.y, { size: 32 }), t.magic ? Wn : "0x");
33406
+ return Ee(gl, s, j(r.signature.r, { size: 32 }), j(r.signature.s, { size: 32 }), j(r.publicKey.x, { size: 32 }), j(r.publicKey.y, { size: 32 }), t.magic ? Wn : "0x");
33410
33407
  }
33411
33408
  if (n === "keychain") {
33412
33409
  const r = e;
33413
- return Ee(vh, r.userAddress, Oi(r.inner), t.magic ? Wn : "0x");
33410
+ return Ee(vh, r.userAddress, Di(r.inner), t.magic ? Wn : "0x");
33414
33411
  }
33415
33412
  throw new fa({ envelope: e });
33416
33413
  }
@@ -33471,7 +33468,7 @@ function oU(e, t) {
33471
33468
  }) : !1;
33472
33469
  if (s.type === "p256") {
33473
33470
  const a = Oo(s.publicKey);
33474
- return Wc(a, r) ? Ch({
33471
+ return Kc(a, r) ? Ch({
33475
33472
  hash: s.prehash,
33476
33473
  publicKey: s.publicKey,
33477
33474
  payload: n,
@@ -33480,7 +33477,7 @@ function oU(e, t) {
33480
33477
  }
33481
33478
  if (s.type === "webAuthn") {
33482
33479
  const a = Oo(s.publicKey);
33483
- return Wc(a, r) ? aU({
33480
+ return Kc(a, r) ? aU({
33484
33481
  challenge: mi(n),
33485
33482
  metadata: s.metadata,
33486
33483
  publicKey: s.publicKey,
@@ -33525,7 +33522,7 @@ function cU(e, t = {}) {
33525
33522
  return typeof e.chainId == "string" ? Ah(e) : t.signature ? { ...e, signature: t.signature } : e;
33526
33523
  }
33527
33524
  function Ah(e) {
33528
- const { address: t, chainId: n, nonce: r } = e, s = Di(e.signature);
33525
+ const { address: t, chainId: n, nonce: r } = e, s = Fi(e.signature);
33529
33526
  return {
33530
33527
  address: t,
33531
33528
  chainId: Number(n),
@@ -33563,7 +33560,7 @@ function fU(e) {
33563
33560
  return e.map((t) => pU(t));
33564
33561
  }
33565
33562
  function mU(e) {
33566
- const { address: t, chainId: n, nonce: r } = e, s = e.signature ? Oi(e.signature) : void 0;
33563
+ const { address: t, chainId: n, nonce: r } = e, s = e.signature ? Di(e.signature) : void 0;
33567
33564
  return [
33568
33565
  n ? j(n) : "0x",
33569
33566
  t,
@@ -33586,7 +33583,7 @@ function bU(e, t = {}) {
33586
33583
  } : e;
33587
33584
  }
33588
33585
  function Th(e) {
33589
- const { chainId: t = "0x0", keyId: n, expiry: r = 0, limits: s, keyType: a } = e, o = Di(e.signature);
33586
+ const { chainId: t = "0x0", keyId: n, expiry: r = 0, limits: s, keyType: a } = e, o = Fi(e.signature);
33590
33587
  return {
33591
33588
  address: n,
33592
33589
  chainId: t === "0x" ? 0n : Ce(t),
@@ -33642,7 +33639,7 @@ function xU(e) {
33642
33639
  };
33643
33640
  }
33644
33641
  function gU(e) {
33645
- const { address: t, chainId: n = 0n, expiry: r, limits: s } = e, a = e.signature ? Oi(e.signature) : void 0, o = (() => {
33642
+ const { address: t, chainId: n = 0n, expiry: r, limits: s } = e, a = e.signature ? Di(e.signature) : void 0, o = (() => {
33646
33643
  switch (e.type) {
33647
33644
  case "secp256k1":
33648
33645
  return "0x";
@@ -33689,7 +33686,7 @@ function EU(e, t = {}) {
33689
33686
  ...e,
33690
33687
  ...n
33691
33688
  };
33692
- return r.blockNumber = e.blockNumber ? BigInt(e.blockNumber) : null, r.data = e.input, r.gas = BigInt(e.gas ?? 0n), r.nonce = BigInt(e.nonce ?? 0n), r.transactionIndex = e.transactionIndex ? Number(e.transactionIndex) : null, r.value = BigInt(e.value ?? 0n), e.authorizationList && (r.authorizationList = F3(e.authorizationList)), e.chainId && (r.chainId = Number(e.chainId)), e.gasPrice && (r.gasPrice = BigInt(e.gasPrice)), e.maxFeePerBlobGas && (r.maxFeePerBlobGas = BigInt(e.maxFeePerBlobGas)), e.maxFeePerGas && (r.maxFeePerGas = BigInt(e.maxFeePerGas)), e.maxPriorityFeePerGas && (r.maxPriorityFeePerGas = BigInt(e.maxPriorityFeePerGas)), e.type && (r.type = Bh[e.type] ?? e.type), n && (r.v = Uu(n.yParity)), r;
33689
+ return r.blockNumber = e.blockNumber ? BigInt(e.blockNumber) : null, r.data = e.input, r.gas = BigInt(e.gas ?? 0n), r.nonce = BigInt(e.nonce ?? 0n), r.transactionIndex = e.transactionIndex ? Number(e.transactionIndex) : null, r.value = BigInt(e.value ?? 0n), e.authorizationList && (r.authorizationList = F3(e.authorizationList)), e.chainId && (r.chainId = Number(e.chainId)), e.gasPrice && (r.gasPrice = BigInt(e.gasPrice)), e.maxFeePerBlobGas && (r.maxFeePerBlobGas = BigInt(e.maxFeePerBlobGas)), e.maxFeePerGas && (r.maxFeePerGas = BigInt(e.maxFeePerGas)), e.maxPriorityFeePerGas && (r.maxPriorityFeePerGas = BigInt(e.maxPriorityFeePerGas)), e.type && (r.type = Bh[e.type] ?? e.type), n && (r.v = Bu(n.yParity)), r;
33693
33690
  }
33694
33691
  const Uh = {
33695
33692
  ...Ph,
@@ -33707,7 +33704,7 @@ function CU(e, t = {}) {
33707
33704
  value: r.value && r.value !== "0x" ? BigInt(r.value) : void 0,
33708
33705
  // @ts-expect-error
33709
33706
  data: r.input || r.data || "0x"
33710
- }))), e.feeToken && (n.feeToken = e.feeToken), e.nonceKey && (n.nonceKey = BigInt(e.nonceKey)), e.signature && (n.signature = Di(e.signature)), e.validAfter && (n.validAfter = Number(e.validAfter)), e.validBefore && (n.validBefore = Number(e.validBefore)), e.keyAuthorization && (n.keyAuthorization = Th(e.keyAuthorization)), e.feePayerSignature && (n.feePayerSignature = Pu(e.feePayerSignature), n.feePayerSignature.v = Uu(n.feePayerSignature.yParity)), n;
33707
+ }))), e.feeToken && (n.feeToken = e.feeToken), e.nonceKey && (n.nonceKey = BigInt(e.nonceKey)), e.signature && (n.signature = Fi(e.signature)), e.validAfter && (n.validAfter = Number(e.validAfter)), e.validBefore && (n.validBefore = Number(e.validBefore)), e.keyAuthorization && (n.keyAuthorization = Th(e.keyAuthorization)), e.feePayerSignature && (n.feePayerSignature = Su(e.feePayerSignature), n.feePayerSignature.v = Bu(n.feePayerSignature.yParity)), n;
33711
33708
  }
33712
33709
  function vU(e) {
33713
33710
  const t = {};
@@ -33737,7 +33734,7 @@ function TU(e) {
33737
33734
  const [r, s] = e[n];
33738
33735
  r && Ft(r, { strict: !1 }), t.push({
33739
33736
  address: r,
33740
- storageKeys: s.map((a) => l8(a) ? a : Hc(a))
33737
+ storageKeys: s.map((a) => l8(a) ? a : $c(a))
33741
33738
  });
33742
33739
  }
33743
33740
  return t;
@@ -33783,12 +33780,12 @@ function BU(e, t = 0) {
33783
33780
  ];
33784
33781
  return a = a.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${a ? `.${a}` : ""}`;
33785
33782
  }
33786
- function El(e, t = "wei") {
33783
+ function wl(e, t = "wei") {
33787
33784
  return BU(e, vp.gwei - vp[t]);
33788
33785
  }
33789
33786
  class UU extends K {
33790
33787
  constructor({ feeCap: t } = {}) {
33791
- super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${t ? ` = ${El(t)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`), Object.defineProperty(this, "name", {
33788
+ super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${t ? ` = ${wl(t)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`), Object.defineProperty(this, "name", {
33792
33789
  enumerable: !0,
33793
33790
  configurable: !0,
33794
33791
  writable: !0,
@@ -33825,7 +33822,7 @@ class FU extends K {
33825
33822
  class DU extends K {
33826
33823
  constructor({ maxPriorityFeePerGas: t, maxFeePerGas: n } = {}) {
33827
33824
  super([
33828
- `The provided tip (\`maxPriorityFeePerGas\`${t ? ` = ${El(t)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${El(n)} gwei` : ""}).`
33825
+ `The provided tip (\`maxPriorityFeePerGas\`${t ? ` = ${wl(t)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${wl(n)} gwei` : ""}).`
33829
33826
  ].join(`
33830
33827
  `)), Object.defineProperty(this, "name", {
33831
33828
  enumerable: !0,
@@ -33940,7 +33937,7 @@ function zs(e, t = {}) {
33940
33937
  U,
33941
33938
  B,
33942
33939
  ...c ? [gU(c)] : [],
33943
- ...S ? [Oi(La(S))] : []
33940
+ ...S ? [Di(La(S))] : []
33944
33941
  ];
33945
33942
  return Ee(t.format === "feePayer" ? OU : MU, Z8(C));
33946
33943
  }
@@ -33985,7 +33982,7 @@ class HU extends K {
33985
33982
  }
33986
33983
  function Ih(e) {
33987
33984
  const t = e.account;
33988
- return t != null && t.keyType && t.keyType !== "secp256k1" || typeof e.calls < "u" || typeof e.feePayer < "u" || typeof e.feeToken < "u" || typeof e.keyAuthorization < "u" || typeof e.nonceKey < "u" || typeof e.signature < "u" || typeof e.validBefore < "u" || typeof e.validAfter < "u" ? "tempo" : e.type ? e.type : Jl(e);
33985
+ return t != null && t.keyType && t.keyType !== "secp256k1" || typeof e.calls < "u" || typeof e.feePayer < "u" || typeof e.feeToken < "u" || typeof e.keyAuthorization < "u" || typeof e.nonceKey < "u" || typeof e.signature < "u" || typeof e.validBefore < "u" || typeof e.validAfter < "u" ? "tempo" : e.type ? e.type : Ql(e);
33989
33986
  }
33990
33987
  function Zu(e) {
33991
33988
  try {
@@ -34162,10 +34159,10 @@ const Qu = {
34162
34159
  exclude: ["aaAuthorizationList"],
34163
34160
  format: VU
34164
34161
  }),
34165
- transactionReceipt: fu({
34162
+ transactionReceipt: pu({
34166
34163
  format: qU
34167
34164
  }),
34168
- transactionRequest: $l({
34165
+ transactionRequest: Ll({
34169
34166
  format: KU
34170
34167
  })
34171
34168
  },
@@ -35790,7 +35787,7 @@ const Qu = {
35790
35787
  }
35791
35788
  },
35792
35789
  testnet: !0
35793
- }), bc = 1, gF = /* @__PURE__ */ u({
35790
+ }), hc = 1, gF = /* @__PURE__ */ u({
35794
35791
  ...$,
35795
35792
  id: 48900,
35796
35793
  name: "Zircuit Mainnet",
@@ -35820,23 +35817,23 @@ const Qu = {
35820
35817
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
35821
35818
  },
35822
35819
  l2OutputOracle: {
35823
- [bc]: {
35820
+ [hc]: {
35824
35821
  address: "0x92Ef6Af472b39F1b363da45E35530c24619245A4"
35825
35822
  }
35826
35823
  },
35827
35824
  portal: {
35828
- [bc]: {
35825
+ [hc]: {
35829
35826
  address: "0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"
35830
35827
  }
35831
35828
  },
35832
35829
  l1StandardBridge: {
35833
- [bc]: {
35830
+ [hc]: {
35834
35831
  address: "0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"
35835
35832
  }
35836
35833
  }
35837
35834
  },
35838
35835
  testnet: !1
35839
- }), yc = 11155111, wF = /* @__PURE__ */ u({
35836
+ }), bc = 11155111, wF = /* @__PURE__ */ u({
35840
35837
  ...$,
35841
35838
  id: 48898,
35842
35839
  name: "Zircuit Garfield Testnet",
@@ -35857,23 +35854,23 @@ const Qu = {
35857
35854
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
35858
35855
  },
35859
35856
  l2OutputOracle: {
35860
- [yc]: {
35857
+ [bc]: {
35861
35858
  address: "0xd69D3AC5CA686cCF94b258291772bc520FEAf211"
35862
35859
  }
35863
35860
  },
35864
35861
  portal: {
35865
- [yc]: {
35862
+ [bc]: {
35866
35863
  address: "0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"
35867
35864
  }
35868
35865
  },
35869
35866
  l1StandardBridge: {
35870
- [yc]: {
35867
+ [bc]: {
35871
35868
  address: "0x87a7E2bCA9E35BA49282E832a28A6023904460D8"
35872
35869
  }
35873
35870
  }
35874
35871
  },
35875
35872
  testnet: !0
35876
- }), xc = 11155111, EF = /* @__PURE__ */ u({
35873
+ }), yc = 11155111, EF = /* @__PURE__ */ u({
35877
35874
  ...$,
35878
35875
  id: 48899,
35879
35876
  name: "Zircuit Testnet",
@@ -35899,17 +35896,17 @@ const Qu = {
35899
35896
  blockCreated: 6040287
35900
35897
  },
35901
35898
  l2OutputOracle: {
35902
- [xc]: {
35899
+ [yc]: {
35903
35900
  address: "0x740C2dac453aEf7140809F80b72bf0e647af8148"
35904
35901
  }
35905
35902
  },
35906
35903
  portal: {
35907
- [xc]: {
35904
+ [yc]: {
35908
35905
  address: "0x787f1C8c5924178689E0560a43D848bF8E54b23e"
35909
35906
  }
35910
35907
  },
35911
35908
  l1StandardBridge: {
35912
- [xc]: {
35909
+ [yc]: {
35913
35910
  address: "0x0545c5fe980098C16fcD0eCB5E79753afa6d9af9"
35914
35911
  }
35915
35912
  }
@@ -37001,7 +36998,7 @@ function MF({ children: e }) {
37001
36998
  }
37002
36999
  );
37003
37000
  }
37004
- const Dh = kl(null), RF = new _w({
37001
+ const Dh = El(null), RF = new _w({
37005
37002
  defaultOptions: {
37006
37003
  queries: {
37007
37004
  refetchOnWindowFocus: !1
@@ -37016,7 +37013,7 @@ const Dh = kl(null), RF = new _w({
37016
37013
  }, 6e4);
37017
37014
  return () => clearInterval(o);
37018
37015
  }, [t]), Gn(() => {
37019
- var i, c, l, d, p, f, m, y, x, S, B, k;
37016
+ var i, c, l, d, p, f, m, y, x, S, B, k, U, C, O, N;
37020
37017
  const o = (c = (i = e.overrides) == null ? void 0 : i.state) == null ? void 0 : c.isMarketOrder;
37021
37018
  o !== void 0 && t({ isMarketOrder: o }), t({
37022
37019
  typedChunks: (d = (l = e.overrides) == null ? void 0 : l.state) == null ? void 0 : d.chunks,
@@ -37024,8 +37021,8 @@ const Dh = kl(null), RF = new _w({
37024
37021
  typedDuration: (y = (m = e.overrides) == null ? void 0 : m.state) == null ? void 0 : y.duration,
37025
37022
  typedLimitPrice: (S = (x = e.overrides) == null ? void 0 : x.state) == null ? void 0 : S.limitPrice,
37026
37023
  typedTriggerPrice: (k = (B = e.overrides) == null ? void 0 : B.state) == null ? void 0 : k.triggerPrice,
37027
- triggerPricePercent: void 0,
37028
- limitPricePercent: void 0
37024
+ triggerPricePercent: (C = (U = e.overrides) == null ? void 0 : U.state) == null ? void 0 : C.triggerPricePercent,
37025
+ limitPricePercent: (N = (O = e.overrides) == null ? void 0 : O.state) == null ? void 0 : N.limitPricePercent
37029
37026
  });
37030
37027
  }, [(r = e.overrides) == null ? void 0 : r.state, e.module]), Gn(() => {
37031
37028
  var o, i, c, l;
@@ -37063,7 +37060,7 @@ const Dh = kl(null), RF = new _w({
37063
37060
  value: a
37064
37061
  };
37065
37062
  }, [e, s, t, n, r]), zF = (e) => {
37066
- const t = Fi(), { walletClient: n, publicClient: r } = W(
37063
+ const t = Ii(), { walletClient: n, publicClient: r } = W(
37067
37064
  () => DF(e.chainId, e.provider),
37068
37065
  [e.chainId, e.provider]
37069
37066
  ), s = W(
@@ -37122,7 +37119,7 @@ const Dh = kl(null), RF = new _w({
37122
37119
  throw new Error("useSpotContext must be used within SpotProvider");
37123
37120
  return e;
37124
37121
  }, LF = (e, t, n) => {
37125
- const r = Ou();
37122
+ const r = Du();
37126
37123
  return W(() => e == null ? void 0 : e.map((s) => ({
37127
37124
  srcToken: t,
37128
37125
  dstToken: n,
@@ -37200,7 +37197,7 @@ export {
37200
37197
  O1 as D,
37201
37198
  Wp as E,
37202
37199
  M1 as F,
37203
- vl as G,
37200
+ Cl as G,
37204
37201
  _s as H,
37205
37202
  $e as I,
37206
37203
  WF as J,
@@ -37236,14 +37233,14 @@ export {
37236
37233
  s2 as d,
37237
37234
  wr as e,
37238
37235
  Gt as f,
37239
- zl as g,
37236
+ _l as g,
37240
37237
  kD as h,
37241
37238
  Ba as i,
37242
37239
  Si as j,
37243
37240
  xD as k,
37244
37241
  Ei as l,
37245
- Ou as m,
37246
- Fi as n,
37242
+ Du as m,
37243
+ Ii as n,
37247
37244
  l1 as o,
37248
37245
  de as p,
37249
37246
  Zp as q,