@orbs-network/spot-react 1.1.2 → 1.1.4

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,9 +3,9 @@ var Zu = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var Bh = (e, t, n) => t in e ? Ph(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var $a = (e, t, n) => Bh(e, typeof t != "symbol" ? t + "" : t, n), Di = (e, t, n) => t.has(e) || Zu("Cannot " + n);
6
+ var Ha = (e, t, n) => Bh(e, typeof t != "symbol" ? t + "" : t, n), Di = (e, t, n) => t.has(e) || Zu("Cannot " + n);
7
7
  var I = (e, t, n) => (Di(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Z = (e, t, n) => t.has(e) ? Zu("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), V = (e, t, n, r) => (Di(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), re = (e, t, n) => (Di(e, t, "access private method"), n);
8
- var Ha = (e, t, n, r) => ({
8
+ var Ga = (e, t, n, r) => ({
9
9
  set _(s) {
10
10
  V(e, t, s, n);
11
11
  },
@@ -15,7 +15,7 @@ var Ha = (e, t, n, r) => ({
15
15
  });
16
16
  import { jsx as pn, jsxs as Uh, Fragment as Ih } from "react/jsx-runtime";
17
17
  import * as Re from "react";
18
- import Ga, { Component as Fh, createElement as Xu, createContext as $p, useCallback as ke, useMemo as W, useEffect as Fr, useContext as Dh } from "react";
18
+ import ja, { Component as Fh, createElement as Xu, createContext as $p, useCallback as ke, useMemo as W, useEffect as Fr, useContext as Dh } from "react";
19
19
  const Oh = { 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: "" }, Mh = { 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: "" }, Rh = { 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" }, Nh = { 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: "" }, _h = { 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" }, zh = { 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: "" }, Lh = { 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: "" }, $h = { 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: "" }, Hh = { 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: "" }, Gh = { 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" }, jh = { 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: "" }, Vh = { 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: "" }, Kh = { 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: "" }, Wh = { chainId: 1329, name: "DragonSwap" }, Zh = { 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: "" }, Xh = { 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: Oh,
21
21
  SpookySwapSonic: Mh,
@@ -692,7 +692,7 @@ const Oh = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
692
692
  ]
693
693
  }
694
694
  ], t1 = Qh, IF = Jh, n1 = e1, r1 = Yh;
695
- var te = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(te || {}), Le = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(Le || {}), s1 = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(s1 || {}), Je = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(Je || {}), fe = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(fe || {}), Yt = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e.Agent = "agent", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.EMPTY_LIMIT_PRICE = "emptyLimitPrice", e.MAX_CHUNKS = "maxChunksError", e.MIN_CHUNKS = "minChunksError", e.MIN_TRADE_SIZE = "minTradeSizeError", e.MAX_FILL_DELAY = "maxFillDelayError", e.MIN_FILL_DELAY = "minFillDelayError", e.MAX_ORDER_DURATION = "maxDurationError", e.MIN_ORDER_DURATION = "minDurationError", e.MISSING_LIMIT_PRICE = "missingLimitPrice", e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = "StopLossTriggerPriceError", e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = "triggerLimitPriceError", e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = "TakeProfitTriggerPriceError", e.EMPTY_TRIGGER_PRICE = "emptyTriggerPrice", e.INSUFFICIENT_BALANCE = "insufficientFunds", e.MAX_ORDER_SIZE = "maxOrderSize", e.MIN_TRADE_SIZE_ERROR = "minTradeSizeError", e))(qe || {});
695
+ var te = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(te || {}), Le = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(Le || {}), s1 = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(s1 || {}), Je = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(Je || {}), de = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(de || {}), Yt = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e.Agent = "agent", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.EMPTY_LIMIT_PRICE = "emptyLimitPrice", e.MAX_CHUNKS = "maxChunksError", e.MIN_CHUNKS = "minChunksError", e.MIN_TRADE_SIZE = "minTradeSizeError", e.MAX_FILL_DELAY = "maxFillDelayError", e.MIN_FILL_DELAY = "minFillDelayError", e.MAX_ORDER_DURATION = "maxDurationError", e.MIN_ORDER_DURATION = "minDurationError", e.MISSING_LIMIT_PRICE = "missingLimitPrice", e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = "StopLossTriggerPriceError", e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = "triggerLimitPriceError", e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = "TakeProfitTriggerPriceError", e.EMPTY_TRIGGER_PRICE = "emptyTriggerPrice", e.INSUFFICIENT_BALANCE = "insufficientFunds", e.MAX_ORDER_SIZE = "maxOrderSize", e.MIN_TRADE_SIZE_ERROR = "minTradeSizeError", e))(qe || {});
696
696
  const ge = "0x0000000000000000000000000000000000000000", $e = {
697
697
  eth: {
698
698
  id: 1,
@@ -1186,8 +1186,8 @@ const ge = "0x0000000000000000000000000000000000000000", $e = {
1186
1186
  }
1187
1187
  }, a1 = "2.3.3", El = {
1188
1188
  version: a1
1189
- }, o1 = "https://order-sink-dev.orbs.network", i1 = "https://order-sink.orbs.network", c1 = "https://order-sink-v2.orbs.network", Qo = El.version.split(".")[0], Hp = (e) => {
1190
- const t = Number(Qo) >= 2;
1189
+ }, o1 = "https://order-sink-dev.orbs.network", i1 = "https://order-sink.orbs.network", c1 = "https://order-sink-v2.orbs.network", Jo = El.version.split(".")[0], Hp = (e) => {
1190
+ const t = Number(Jo) >= 2;
1191
1191
  return e ? o1 : t ? c1 : i1;
1192
1192
  }, yc = 300 * 1e3, xc = 365 * 24 * 60 * 60 * 1e3, Qu = 300 * 1e3, l1 = new Date(
1193
1193
  yc
@@ -1759,31 +1759,31 @@ function jp(e) {
1759
1759
  for (; !C[0] && C.length > 1; C.splice(0, 1)) ;
1760
1760
  }
1761
1761
  return function(C, E, T, D, w) {
1762
- var A, F, S, M, L, G, Q, se, ie, J, Y, he, gn, Et, Mt, We, kt, Se = C.s == E.s ? 1 : -1, Ce = C.c, pe = E.c;
1763
- if (!Ce || !Ce[0] || !pe || !pe[0])
1762
+ var A, F, S, M, L, G, Q, se, ie, J, Y, he, gn, Et, Mt, We, kt, Se = C.s == E.s ? 1 : -1, Ce = C.c, fe = E.c;
1763
+ if (!Ce || !Ce[0] || !fe || !fe[0])
1764
1764
  return new v(
1765
1765
  // Return NaN if either NaN, or both Infinity or 0.
1766
- !C.s || !E.s || (Ce ? pe && Ce[0] == pe[0] : !pe) ? NaN : (
1766
+ !C.s || !E.s || (Ce ? fe && Ce[0] == fe[0] : !fe) ? NaN : (
1767
1767
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1768
- Ce && Ce[0] == 0 || !pe ? Se * 0 : Se / 0
1768
+ Ce && Ce[0] == 0 || !fe ? Se * 0 : Se / 0
1769
1769
  )
1770
1770
  );
1771
- for (se = new v(Se), ie = se.c = [], F = C.e - E.e, Se = T + F + 1, w || (w = vt, F = ht(C.e / ee) - ht(E.e / ee), Se = Se / ee | 0), S = 0; pe[S] == (Ce[S] || 0); S++) ;
1772
- if (pe[S] > (Ce[S] || 0) && F--, Se < 0)
1771
+ for (se = new v(Se), ie = se.c = [], F = C.e - E.e, Se = T + F + 1, w || (w = vt, F = ht(C.e / ee) - ht(E.e / ee), Se = Se / ee | 0), S = 0; fe[S] == (Ce[S] || 0); S++) ;
1772
+ if (fe[S] > (Ce[S] || 0) && F--, Se < 0)
1773
1773
  ie.push(1), M = !0;
1774
1774
  else {
1775
- for (Et = Ce.length, We = pe.length, S = 0, Se += 2, L = mt(w / (pe[0] + 1)), L > 1 && (pe = h(pe, L, w), Ce = h(Ce, L, w), We = pe.length, Et = Ce.length), gn = We, J = Ce.slice(0, We), Y = J.length; Y < We; J[Y++] = 0) ;
1776
- kt = pe.slice(), kt = [0].concat(kt), Mt = pe[0], pe[1] >= w / 2 && Mt++;
1775
+ for (Et = Ce.length, We = fe.length, S = 0, Se += 2, L = mt(w / (fe[0] + 1)), L > 1 && (fe = h(fe, L, w), Ce = h(Ce, L, w), We = fe.length, Et = Ce.length), gn = We, J = Ce.slice(0, We), Y = J.length; Y < We; J[Y++] = 0) ;
1776
+ kt = fe.slice(), kt = [0].concat(kt), Mt = fe[0], fe[1] >= w / 2 && Mt++;
1777
1777
  do {
1778
- if (L = 0, A = b(pe, J, We, Y), A < 0) {
1778
+ if (L = 0, A = b(fe, J, We, Y), A < 0) {
1779
1779
  if (he = J[0], We != Y && (he = he * w + (J[1] || 0)), L = mt(he / Mt), L > 1)
1780
- for (L >= w && (L = w - 1), G = h(pe, L, w), Q = G.length, Y = J.length; b(G, J, Q, Y) == 1; )
1781
- L--, x(G, We < Q ? kt : pe, Q, w), Q = G.length, A = 1;
1780
+ for (L >= w && (L = w - 1), G = h(fe, L, w), Q = G.length, Y = J.length; b(G, J, Q, Y) == 1; )
1781
+ L--, x(G, We < Q ? kt : fe, Q, w), Q = G.length, A = 1;
1782
1782
  else
1783
- L == 0 && (A = L = 1), G = pe.slice(), Q = G.length;
1783
+ L == 0 && (A = L = 1), G = fe.slice(), Q = G.length;
1784
1784
  if (Q < Y && (G = [0].concat(G)), x(J, G, Y, w), Y = J.length, A == -1)
1785
- for (; b(pe, J, We, Y) < 1; )
1786
- L++, x(J, We < Y ? kt : pe, Y, w), Y = J.length;
1785
+ for (; b(fe, J, We, Y) < 1; )
1786
+ L++, x(J, We < Y ? kt : fe, Y, w), Y = J.length;
1787
1787
  } else A === 0 && (L++, J = [0]);
1788
1788
  ie[S++] = L, J[0] ? J[Y++] = Ce[gn] || 0 : (J = [Ce[gn]], Y = 1);
1789
1789
  } while ((gn++ < Et || J[0] != null) && Se--);
@@ -1801,10 +1801,10 @@ function jp(e) {
1801
1801
  var E, T, D, w, A;
1802
1802
  if (x == null ? x = i : ye(x, 0, 8), !h.c) return h.toString();
1803
1803
  if (E = h.c[0], D = h.e, b == null)
1804
- A = pt(h.c), A = C == 1 || C == 2 && (D <= c || D >= l) ? Va(A, D) : Kt(A, D, "0");
1804
+ A = pt(h.c), A = C == 1 || C == 2 && (D <= c || D >= l) ? qa(A, D) : Kt(A, D, "0");
1805
1805
  else if (h = N(new v(h), b, x), T = h.e, A = pt(h.c), w = A.length, C == 1 || C == 2 && (b <= T || T <= c)) {
1806
1806
  for (; w < b; A += "0", w++) ;
1807
- A = Va(A, T);
1807
+ A = qa(A, T);
1808
1808
  } else if (b -= D + (C === 2 && T > D), A = Kt(A, T, "0"), T + 1 > w) {
1809
1809
  if (--b > 0) for (A += "."; b--; A += "0") ;
1810
1810
  } else if (b += T - w, b > 0)
@@ -1881,7 +1881,7 @@ function jp(e) {
1881
1881
  }
1882
1882
  function R(h) {
1883
1883
  var b, x = h.e;
1884
- return x === null ? h.toString() : (b = pt(h.c), b = x <= c || x >= l ? Va(b, x) : Kt(b, x, "0"), h.s < 0 ? "-" + b : b);
1884
+ return x === null ? h.toString() : (b = pt(h.c), b = x <= c || x >= l ? qa(b, x) : Kt(b, x, "0"), h.s < 0 ? "-" + b : b);
1885
1885
  }
1886
1886
  return s.absoluteValue = s.abs = function() {
1887
1887
  var h = new v(this);
@@ -1904,16 +1904,16 @@ function jp(e) {
1904
1904
  if (h = new v(h), h.c && !h.isInteger())
1905
1905
  throw Error(Ze + "Exponent not an integer: " + R(h));
1906
1906
  if (b != null && (b = new v(b)), w = h.e > 14, !M.c || !M.c[0] || M.c[0] == 1 && !M.e && M.c.length == 1 || !h.c || !h.c[0])
1907
- return S = new v(Math.pow(+R(M), w ? h.s * (2 - ja(h)) : +R(h))), b ? S.mod(b) : S;
1907
+ return S = new v(Math.pow(+R(M), w ? h.s * (2 - Va(h)) : +R(h))), b ? S.mod(b) : S;
1908
1908
  if (A = h.s < 0, b) {
1909
1909
  if (b.c ? !b.c[0] : !b.s) return new v(NaN);
1910
1910
  C = !A && M.isInteger() && b.isInteger(), C && (M = M.mod(b));
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
- return T = M.s < 0 && ja(h) ? -0 : 0, M.e > -1 && (T = 1 / T), new v(A ? 1 / T : T);
1913
+ return T = M.s < 0 && Va(h) ? -0 : 0, M.e > -1 && (T = 1 / T), new v(A ? 1 / T : T);
1914
1914
  y && (T = Mi(y / ee + 2));
1915
1915
  }
1916
- for (w ? (x = new v(0.5), A && (h.s = 1), F = ja(h)) : (E = Math.abs(+R(h)), F = E % 2), S = new v(a); ; ) {
1916
+ for (w ? (x = new v(0.5), A && (h.s = 1), F = Va(h)) : (E = Math.abs(+R(h)), F = E % 2), S = new v(a); ; ) {
1917
1917
  if (F) {
1918
1918
  if (S = S.times(M), !S.c) break;
1919
1919
  T ? S.c.length > T && (S.c.length = T) : C && (S = S.mod(b));
@@ -1922,7 +1922,7 @@ function jp(e) {
1922
1922
  if (E = mt(E / 2), E === 0) break;
1923
1923
  F = E % 2;
1924
1924
  } else if (h = h.times(x), N(h, h.e + 1, 1), h.e > 14)
1925
- F = ja(h);
1925
+ F = Va(h);
1926
1926
  else {
1927
1927
  if (E = +R(h), E === 0) break;
1928
1928
  F = E % 2;
@@ -2091,7 +2091,7 @@ function jp(e) {
2091
2091
  return h != null && ye(h, 1, Fe), U(this, h, b, 2);
2092
2092
  }, s.toString = function(h) {
2093
2093
  var b, x = this, C = x.s, E = x.e;
2094
- return E === null ? C ? (b = "Infinity", C < 0 && (b = "-" + b)) : b = "NaN" : (h == null ? b = E <= c || E >= l ? Va(pt(x.c), E) : Kt(pt(x.c), E, "0") : h === 10 && B ? (x = N(new v(x), o + E + 1, i), b = Kt(pt(x.c), x.e, "0")) : (ye(h, 2, P.length, "Base"), b = n(Kt(pt(x.c), E, "0"), 10, h, C, !0)), C < 0 && x.c[0] && (b = "-" + b)), b;
2094
+ return E === null ? C ? (b = "Infinity", C < 0 && (b = "-" + b)) : b = "NaN" : (h == null ? b = E <= c || E >= l ? qa(pt(x.c), E) : Kt(pt(x.c), E, "0") : h === 10 && B ? (x = N(new v(x), o + E + 1, i), b = Kt(pt(x.c), x.e, "0")) : (ye(h, 2, P.length, "Base"), b = n(Kt(pt(x.c), E, "0"), 10, h, C, !0)), C < 0 && x.c[0] && (b = "-" + b)), b;
2095
2095
  }, s.valueOf = s.toJSON = function() {
2096
2096
  return R(this);
2097
2097
  }, s._isBigNumber = !0, s[Symbol.toStringTag] = "BigNumber", s[Symbol.for("nodejs.util.inspect.custom")] = s.valueOf, e != null && v.set(e), v;
@@ -2122,11 +2122,11 @@ function ye(e, t, n, r) {
2122
2122
  if (e < t || e > n || e !== mt(e))
2123
2123
  throw Error(Ze + (r || "Argument") + (typeof e == "number" ? e < t || e > n ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
2124
2124
  }
2125
- function ja(e) {
2125
+ function Va(e) {
2126
2126
  var t = e.c.length - 1;
2127
2127
  return ht(e.e / ee) == t && e.c[t] % 2 != 0;
2128
2128
  }
2129
- function Va(e, t) {
2129
+ function qa(e, t) {
2130
2130
  return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (t < 0 ? "e" : "e+") + t;
2131
2131
  }
2132
2132
  function Kt(e, t, n) {
@@ -2218,17 +2218,17 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
2218
2218
  [...r, ...n].map((a) => a.toLowerCase())
2219
2219
  );
2220
2220
  return Array.from(s);
2221
- }, qp = (e, t) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + z1(t) : (e.fillDelay || 0) * 1e3, Jo = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), B1 = (e) => Q1().filter((t) => t.name === e).map((t) => t.chainId), Kp = (e = "", t = "", n = 18, r = 18) => {
2221
+ }, qp = (e, t) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + z1(t) : (e.fillDelay || 0) * 1e3, Yo = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), B1 = (e) => Q1().filter((t) => t.name === e).map((t) => t.chainId), Kp = (e = "", t = "", n = 18, r = 18) => {
2222
2222
  if (!_(e || 0).gt(0) || !_(t || 0).gt(0))
2223
2223
  return "";
2224
2224
  const s = es(n, e), a = es(r, t);
2225
2225
  return _(a).div(s).toFixed();
2226
2226
  }, U1 = (e, t, n) => {
2227
- if (e.type === fe.TWAP_MARKET) return "";
2227
+ if (e.type === de.TWAP_MARKET) return "";
2228
2228
  const r = es(t, e.srcAmountPerTrade), s = es(n, e.dstMinAmountPerTrade);
2229
2229
  return _(s).div(r).toFixed();
2230
2230
  }, I1 = (e, t, n) => {
2231
- if (e.type === fe.TWAP_MARKET) return "";
2231
+ if (e.type === de.TWAP_MARKET) return "";
2232
2232
  const r = es(t, e.srcAmountPerTrade), s = es(n, e.triggerPricePerTrade);
2233
2233
  return _(s).div(r).toFixed();
2234
2234
  }, F1 = (e, t, n) => {
@@ -2247,7 +2247,7 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
2247
2247
  const s = _(t).times(_(n)), a = _(10).pow(r), o = s.div(a);
2248
2248
  return _.max(1, o).integerValue(_.ROUND_FLOOR).toFixed(0) || "0";
2249
2249
  }, M1 = (e, t, n, r) => {
2250
- const s = or(n) * 2 * t, a = Jo(ga.DURATION), o = T1(a ? Number(a) : s);
2250
+ const s = or(n) * 2 * t, a = Yo(ga.DURATION), o = T1(a ? Number(a) : s);
2251
2251
  return a ? { unit: o, value: Number(_(Number(a) / o).toFixed(2)) } : r || (e === te.LIMIT ? { unit: Je.Days, value: 7 } : e === te.STOP_LOSS || e === te.TAKE_PROFIT ? { unit: Je.Days, value: 1 } : { unit: o, value: Number(_(s / o).toFixed(2)) });
2252
2252
  }, R1 = (e, t, n) => t !== te.TWAP ? 1 : n !== void 0 ? n : e, N1 = (e, t, n, r) => {
2253
2253
  if (!t || !n || !r) return 1;
@@ -2393,7 +2393,7 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
2393
2393
  }));
2394
2394
  }).sort((t, n) => t.name.localeCompare(n.name));
2395
2395
  }, J1 = (e) => {
2396
- const t = Jo(
2396
+ const t = Yo(
2397
2397
  ga.MIN_CHUNK_SIZE_USD
2398
2398
  );
2399
2399
  return t ? parseInt(t) : e;
@@ -2410,10 +2410,10 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
2410
2410
  balanceError: l,
2411
2411
  minTradeSizeError: d
2412
2412
  }) => {
2413
- if (!Jo(ga.IGNORE_ERRORS) && !(_(e || 0).isZero() || _(t || 0).isZero() || _(n || "0").isZero() || r))
2413
+ if (!Yo(ga.IGNORE_ERRORS) && !(_(e || 0).isZero() || _(t || 0).isZero() || _(n || "0").isZero() || r))
2414
2414
  return d || s || a || o || i || c || l;
2415
2415
  }, Zp = (e, t) => {
2416
- const n = Date.now().toString(), r = parseInt((e / 1e3).toFixed(0)), s = S1(t / 1e3), a = Jo(ga.FRESHNESS), o = a ? parseInt(a) : 60;
2416
+ const n = Date.now().toString(), r = parseInt((e / 1e3).toFixed(0)), s = S1(t / 1e3), a = Yo(ga.FRESHNESS), o = a ? parseInt(a) : 60;
2417
2417
  return {
2418
2418
  nonce: n,
2419
2419
  epoch: r,
@@ -2556,7 +2556,7 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
2556
2556
  types: b1,
2557
2557
  primaryType: Gp
2558
2558
  };
2559
- }, nb = (e) => Number(Qo) >= 2 ? tb(e) : eb(e), rb = 0.7, sb = `https://bi.orbs.network/putes/twap-ui-${rb}`;
2559
+ }, nb = (e) => Number(Jo) >= 2 ? tb(e) : eb(e), rb = 0.7, sb = `https://bi.orbs.network/putes/twap-ui-${rb}`;
2560
2560
  let gc = "unknown";
2561
2561
  function ab(e) {
2562
2562
  gc = e;
@@ -2608,9 +2608,9 @@ const ob = (e, t, n) => {
2608
2608
  };
2609
2609
  class ib {
2610
2610
  constructor() {
2611
- $a(this, "timeout");
2612
- $a(this, "config");
2613
- $a(this, "data", {
2611
+ Ha(this, "timeout");
2612
+ Ha(this, "config");
2613
+ Ha(this, "data", {
2614
2614
  _id: zi()
2615
2615
  });
2616
2616
  }
@@ -2799,7 +2799,7 @@ class ib {
2799
2799
  const Ae = new ib(), cb = (e) => {
2800
2800
  var i;
2801
2801
  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(kl) || _(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
- return s ? fe.TAKE_PROFIT : a ? t ? fe.STOP_LOSS_LIMIT : fe.STOP_LOSS_MARKET : t ? o > 1 && t ? fe.TWAP_LIMIT : t ? fe.LIMIT : fe.TWAP_MARKET : fe.TWAP_MARKET;
2802
+ 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;
2803
2803
  }, lb = (e) => {
2804
2804
  var s;
2805
2805
  const t = ((s = e.metadata.chunks) == null ? void 0 : s.filter((a) => a.status === "success").length) || 0, n = e.metadata.expectedChunks || 0, r = _(t).dividedBy(n).toNumber();
@@ -2833,7 +2833,7 @@ const Ae = new ib(), cb = (e) => {
2833
2833
  triggerPricePerTrade: n ? t : _(e.order.witness.output.stop || "").toFixed(),
2834
2834
  dstMinAmountTotal: n ? "" : _(t).multipliedBy(r).toFixed()
2835
2835
  };
2836
- }, bb = (e) => Number(Qo) >= 2 ? mb(e) : hb(e), Xp = (e) => {
2836
+ }, bb = (e) => Number(Jo) >= 2 ? mb(e) : hb(e), Xp = (e) => {
2837
2837
  const t = lb(e), n = Cl(e), r = e.metadata.expectedChunks || 1, s = db(e), a = cb(e);
2838
2838
  return {
2839
2839
  id: e.hash,
@@ -2858,7 +2858,7 @@ const Ae = new ib(), cb = (e) => {
2858
2858
  chainId: e.order.witness.chainid,
2859
2859
  filledOrderTimestamp: pb(s, r),
2860
2860
  status: ub(e, t),
2861
- isTriggerPrice: a === fe.TAKE_PROFIT || a === fe.STOP_LOSS_LIMIT || a === fe.STOP_LOSS_MARKET,
2861
+ isTriggerPrice: a === de.TAKE_PROFIT || a === de.STOP_LOSS_LIMIT || a === de.STOP_LOSS_MARKET,
2862
2862
  rawOrder: e,
2863
2863
  ...bb(e)
2864
2864
  };
@@ -2978,7 +2978,7 @@ const Ae = new ib(), cb = (e) => {
2978
2978
  txHash: t.transactionHash
2979
2979
  })), td = (e, t) => {
2980
2980
  const n = _(e || 0).gt(1);
2981
- return !n && t === 1 ? fe.TWAP_MARKET : t > 1 && n ? fe.TWAP_LIMIT : n ? fe.LIMIT : fe.TWAP_MARKET;
2981
+ return !n && t === 1 ? de.TWAP_MARKET : t > 1 && n ? de.TWAP_LIMIT : n ? de.LIMIT : de.TWAP_MARKET;
2982
2982
  }, wb = (e, t, n, r) => {
2983
2983
  var f;
2984
2984
  const s = Qp(n || []), a = new _(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(_.ROUND_FLOOR).toNumber(), i = (n == null ? void 0 : n.length) === a ? (f = n == null ? void 0 : n[(n == null ? void 0 : n.length) - 1]) == null ? void 0 : f.timestamp : void 0, c = s.reduce((m, y) => m.plus(y.inAmount), new _(0)).toFixed(), l = s.reduce((m, y) => m.plus(y.outAmount), new _(0)).toFixed(), d = Jp(e.ask_srcAmount, c), p = td(e.ask_dstMinAmount, a);
@@ -3008,7 +3008,7 @@ const Ae = new ib(), cb = (e) => {
3008
3008
  srcAmountPerTrade: e.ask_srcBidAmount,
3009
3009
  txHash: e.transactionHash,
3010
3010
  totalTradesAmount: a,
3011
- isMarketPrice: [fe.TWAP_MARKET].includes(p),
3011
+ isMarketPrice: [de.TWAP_MARKET].includes(p),
3012
3012
  chainId: t,
3013
3013
  filledOrderTimestamp: i || 0,
3014
3014
  status: r,
@@ -3248,7 +3248,7 @@ const Tb = async ({
3248
3248
  }) => (await Promise.all([
3249
3249
  s ? Tb({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
3250
3250
  yb({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter, isDev: o })
3251
- ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.2", Ib = {
3251
+ ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.4", Ib = {
3252
3252
  version: Ub
3253
3253
  };
3254
3254
  var us = class {
@@ -3404,7 +3404,7 @@ function kc(e, t) {
3404
3404
  }
3405
3405
  return s === o && c === s ? e : i;
3406
3406
  }
3407
- function No(e, t) {
3407
+ function _o(e, t) {
3408
3408
  if (!t || Object.keys(e).length !== Object.keys(t).length)
3409
3409
  return !1;
3410
3410
  for (const n in e)
@@ -3456,11 +3456,11 @@ function zb(e, t, n = 0) {
3456
3456
  const r = [t, ...e];
3457
3457
  return n && r.length > n ? r.slice(0, -1) : r;
3458
3458
  }
3459
- var _o = Symbol();
3459
+ var zo = Symbol();
3460
3460
  function e0(e, t) {
3461
- return process.env.NODE_ENV !== "production" && e.queryFn === _o && console.error(
3461
+ return process.env.NODE_ENV !== "production" && e.queryFn === zo && console.error(
3462
3462
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
3463
- ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === _o ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
3463
+ ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === zo ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
3464
3464
  }
3465
3465
  function t0(e, t) {
3466
3466
  return typeof e == "function" ? e(...t) : !!e;
@@ -3623,12 +3623,12 @@ var Be = Hb(), Gr, Sn, jr, Fp, Gb = (Fp = class extends us {
3623
3623
  isOnline() {
3624
3624
  return I(this, Gr);
3625
3625
  }
3626
- }, Gr = new WeakMap(), Sn = new WeakMap(), jr = new WeakMap(), Fp), zo = new Gb();
3626
+ }, Gr = new WeakMap(), Sn = new WeakMap(), jr = new WeakMap(), Fp), Lo = new Gb();
3627
3627
  function jb(e) {
3628
3628
  return Math.min(1e3 * 2 ** e, 3e4);
3629
3629
  }
3630
3630
  function n0(e) {
3631
- return (e ?? "online") === "online" ? zo.isOnline() : !0;
3631
+ return (e ?? "online") === "online" ? Lo.isOnline() : !0;
3632
3632
  }
3633
3633
  var Tc = class extends Error {
3634
3634
  constructor(e) {
@@ -3647,7 +3647,7 @@ function r0(e) {
3647
3647
  t = !0;
3648
3648
  }, c = () => {
3649
3649
  t = !1;
3650
- }, l = () => Tl.isFocused() && (e.networkMode === "always" || zo.isOnline()) && e.canRun(), d = () => n0(e.networkMode) && e.canRun(), p = (g) => {
3650
+ }, l = () => Tl.isFocused() && (e.networkMode === "always" || Lo.isOnline()) && e.canRun(), d = () => n0(e.networkMode) && e.canRun(), p = (g) => {
3651
3651
  a() || (r == null || r(), s.resolve(g));
3652
3652
  }, f = (g) => {
3653
3653
  a() || (r == null || r(), s.reject(g));
@@ -3775,7 +3775,7 @@ var Zn, Dp, s0 = (Dp = class {
3775
3775
  );
3776
3776
  }
3777
3777
  isDisabled() {
3778
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _o || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
3778
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === zo || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
3779
3779
  }
3780
3780
  isStatic() {
3781
3781
  return this.getObserversCount() > 0 ? this.observers.some(
@@ -4026,10 +4026,10 @@ function id(e) {
4026
4026
  fetchStatus: "idle"
4027
4027
  };
4028
4028
  }
4029
- var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc, Bc, Uc, Ic, Fc, Dc, o0, Mp, qb = (Mp = class extends us {
4029
+ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, pe, Ms, Sc, Pc, Bc, Uc, Ic, Fc, Dc, o0, Mp, qb = (Mp = class extends us {
4030
4030
  constructor(t, n) {
4031
4031
  super();
4032
- Z(this, de);
4032
+ Z(this, pe);
4033
4033
  Z(this, Xe);
4034
4034
  Z(this, ce);
4035
4035
  Z(this, ha);
@@ -4053,7 +4053,7 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4053
4053
  this.refetch = this.refetch.bind(this);
4054
4054
  }
4055
4055
  onSubscribe() {
4056
- this.listeners.size === 1 && (I(this, ce).addObserver(this), cd(I(this, ce), this.options) ? re(this, de, Ms).call(this) : this.updateResult(), re(this, de, Uc).call(this));
4056
+ this.listeners.size === 1 && (I(this, ce).addObserver(this), cd(I(this, ce), this.options) ? re(this, pe, Ms).call(this) : this.updateResult(), re(this, pe, Uc).call(this));
4057
4057
  }
4058
4058
  onUnsubscribe() {
4059
4059
  this.hasListeners() || this.destroy();
@@ -4073,7 +4073,7 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4073
4073
  );
4074
4074
  }
4075
4075
  destroy() {
4076
- this.listeners = /* @__PURE__ */ new Set(), re(this, de, Ic).call(this), re(this, de, Fc).call(this), I(this, ce).removeObserver(this);
4076
+ this.listeners = /* @__PURE__ */ new Set(), re(this, pe, Ic).call(this), re(this, pe, Fc).call(this), I(this, ce).removeObserver(this);
4077
4077
  }
4078
4078
  setOptions(t) {
4079
4079
  const n = this.options, r = I(this, ce);
@@ -4081,7 +4081,7 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4081
4081
  throw new Error(
4082
4082
  "Expected enabled to be a boolean or a callback that returns a boolean"
4083
4083
  );
4084
- re(this, de, Dc).call(this), I(this, ce).setOptions(this.options), n._defaulted && !No(this.options, n) && I(this, Xe).getQueryCache().notify({
4084
+ re(this, pe, Dc).call(this), I(this, ce).setOptions(this.options), n._defaulted && !_o(this.options, n) && I(this, Xe).getQueryCache().notify({
4085
4085
  type: "observerOptionsUpdated",
4086
4086
  query: I(this, ce),
4087
4087
  observer: this
@@ -4092,9 +4092,9 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4092
4092
  r,
4093
4093
  this.options,
4094
4094
  n
4095
- ) && re(this, de, 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))) && re(this, de, Sc).call(this);
4096
- const a = re(this, de, Pc).call(this);
4097
- s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || a !== I(this, Bn)) && re(this, de, Bc).call(this, a);
4095
+ ) && re(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))) && re(this, pe, Sc).call(this);
4096
+ const a = re(this, pe, Pc).call(this);
4097
+ s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || a !== I(this, Bn)) && re(this, pe, Bc).call(this, a);
4098
4098
  }
4099
4099
  getOptimisticResult(t) {
4100
4100
  const n = I(this, Xe).getQueryCache().build(I(this, Xe), t), r = this.createResult(n, t);
@@ -4128,7 +4128,7 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4128
4128
  return r.fetch().then(() => this.createResult(r, n));
4129
4129
  }
4130
4130
  fetch(t) {
4131
- return re(this, de, Ms).call(this, {
4131
+ return re(this, pe, Ms).call(this, {
4132
4132
  ...t,
4133
4133
  cancelRefetch: t.cancelRefetch ?? !0
4134
4134
  }).then(() => (this.updateResult(), I(this, Ge)));
@@ -4219,7 +4219,7 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4219
4219
  }
4220
4220
  updateResult() {
4221
4221
  const t = I(this, Ge), n = this.createResult(I(this, ce), this.options);
4222
- if (V(this, Yn, I(this, ce).state), V(this, qr, this.options), I(this, Yn).data !== void 0 && V(this, Wr, I(this, ce)), No(n, t))
4222
+ if (V(this, Yn, I(this, ce).state), V(this, qr, this.options), I(this, Yn).data !== void 0 && V(this, Wr, I(this, ce)), _o(n, t))
4223
4223
  return;
4224
4224
  V(this, Ge, n);
4225
4225
  const r = () => {
@@ -4236,20 +4236,20 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4236
4236
  return I(this, Ge)[c] !== t[c] && o.has(c);
4237
4237
  });
4238
4238
  };
4239
- re(this, de, o0).call(this, { listeners: r() });
4239
+ re(this, pe, o0).call(this, { listeners: r() });
4240
4240
  }
4241
4241
  onQueryUpdate() {
4242
- this.updateResult(), this.hasListeners() && re(this, de, Uc).call(this);
4242
+ this.updateResult(), this.hasListeners() && re(this, pe, Uc).call(this);
4243
4243
  }
4244
- }, Xe = new WeakMap(), ce = new WeakMap(), ha = new WeakMap(), Ge = new WeakMap(), Yn = new WeakMap(), qr = new WeakMap(), nn = new WeakMap(), Pn = new WeakMap(), ba = new WeakMap(), Kr = new WeakMap(), Wr = new WeakMap(), er = new WeakMap(), tr = new WeakMap(), Bn = new WeakMap(), Zr = new WeakMap(), de = new WeakSet(), Ms = function(t) {
4245
- re(this, de, Dc).call(this);
4244
+ }, Xe = new WeakMap(), ce = new WeakMap(), ha = new WeakMap(), Ge = new WeakMap(), Yn = new WeakMap(), qr = new WeakMap(), nn = new WeakMap(), Pn = new WeakMap(), ba = new WeakMap(), Kr = new WeakMap(), Wr = new WeakMap(), er = new WeakMap(), tr = new WeakMap(), Bn = new WeakMap(), Zr = new WeakMap(), pe = new WeakSet(), Ms = function(t) {
4245
+ re(this, pe, Dc).call(this);
4246
4246
  let n = I(this, ce).fetch(
4247
4247
  this.options,
4248
4248
  t
4249
4249
  );
4250
4250
  return t != null && t.throwOnError || (n = n.catch(Ve)), n;
4251
4251
  }, Sc = function() {
4252
- re(this, de, Ic).call(this);
4252
+ re(this, pe, Ic).call(this);
4253
4253
  const t = On(
4254
4254
  this.options.staleTime,
4255
4255
  I(this, ce)
@@ -4263,11 +4263,11 @@ var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc,
4263
4263
  }, Pc = function() {
4264
4264
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(I(this, ce)) : this.options.refetchInterval) ?? !1;
4265
4265
  }, Bc = function(t) {
4266
- re(this, de, Fc).call(this), V(this, Bn, t), !(ir || xt(this.options.enabled, I(this, ce)) === !1 || !Ec(I(this, Bn)) || I(this, Bn) === 0) && V(this, tr, Gn.setInterval(() => {
4267
- (this.options.refetchIntervalInBackground || Tl.isFocused()) && re(this, de, Ms).call(this);
4266
+ re(this, pe, Fc).call(this), V(this, Bn, t), !(ir || xt(this.options.enabled, I(this, ce)) === !1 || !Ec(I(this, Bn)) || I(this, Bn) === 0) && V(this, tr, Gn.setInterval(() => {
4267
+ (this.options.refetchIntervalInBackground || Tl.isFocused()) && re(this, pe, Ms).call(this);
4268
4268
  }, I(this, Bn)));
4269
4269
  }, Uc = function() {
4270
- re(this, de, Sc).call(this), re(this, de, Bc).call(this, re(this, de, Pc).call(this));
4270
+ re(this, pe, Sc).call(this), re(this, pe, Bc).call(this, re(this, pe, Pc).call(this));
4271
4271
  }, Ic = function() {
4272
4272
  I(this, er) && (Gn.clearTimeout(I(this, er)), V(this, er, void 0));
4273
4273
  }, Fc = function() {
@@ -4308,7 +4308,7 @@ function Sl(e, t) {
4308
4308
  return xt(t.enabled, e) !== !1 && e.isStaleByTime(On(t.staleTime, e));
4309
4309
  }
4310
4310
  function Wb(e, t) {
4311
- return !No(e.getCurrentResult(), t);
4311
+ return !_o(e.getCurrentResult(), t);
4312
4312
  }
4313
4313
  function ud(e) {
4314
4314
  return {
@@ -4633,7 +4633,7 @@ var rn, St, xa, Np, Qb = (Np = class extends us {
4633
4633
  const s = new Xb({
4634
4634
  client: t,
4635
4635
  mutationCache: this,
4636
- mutationId: ++Ha(this, xa)._,
4636
+ mutationId: ++Ga(this, xa)._,
4637
4637
  options: t.defaultMutationOptions(n),
4638
4638
  state: r
4639
4639
  });
@@ -4641,7 +4641,7 @@ var rn, St, xa, Np, Qb = (Np = class extends us {
4641
4641
  }
4642
4642
  add(t) {
4643
4643
  I(this, rn).add(t);
4644
- const n = qa(t);
4644
+ const n = Ka(t);
4645
4645
  if (typeof n == "string") {
4646
4646
  const r = I(this, St).get(n);
4647
4647
  r ? r.push(t) : I(this, St).set(n, [t]);
@@ -4650,7 +4650,7 @@ var rn, St, xa, Np, Qb = (Np = class extends us {
4650
4650
  }
4651
4651
  remove(t) {
4652
4652
  if (I(this, rn).delete(t)) {
4653
- const n = qa(t);
4653
+ const n = Ka(t);
4654
4654
  if (typeof n == "string") {
4655
4655
  const r = I(this, St).get(n);
4656
4656
  if (r)
@@ -4663,7 +4663,7 @@ var rn, St, xa, Np, Qb = (Np = class extends us {
4663
4663
  this.notify({ type: "removed", mutation: t });
4664
4664
  }
4665
4665
  canRun(t) {
4666
- const n = qa(t);
4666
+ const n = Ka(t);
4667
4667
  if (typeof n == "string") {
4668
4668
  const r = I(this, St).get(n), s = r == null ? void 0 : r.find(
4669
4669
  (a) => a.state.status === "pending"
@@ -4674,7 +4674,7 @@ var rn, St, xa, Np, Qb = (Np = class extends us {
4674
4674
  }
4675
4675
  runNext(t) {
4676
4676
  var r;
4677
- const n = qa(t);
4677
+ const n = Ka(t);
4678
4678
  if (typeof n == "string") {
4679
4679
  const s = (r = I(this, St).get(n)) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
4680
4680
  return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
@@ -4716,11 +4716,11 @@ var rn, St, xa, Np, Qb = (Np = class extends us {
4716
4716
  );
4717
4717
  }
4718
4718
  }, rn = new WeakMap(), St = new WeakMap(), xa = new WeakMap(), Np);
4719
- function qa(e) {
4719
+ function Ka(e) {
4720
4720
  var t;
4721
4721
  return (t = e.options.scope) == null ? void 0 : t.id;
4722
4722
  }
4723
- var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
4723
+ var sn, Un, Qe, an, dn, Oo, Mc, _p, Jb = (_p = class extends us {
4724
4724
  constructor(t, n) {
4725
4725
  super();
4726
4726
  Z(this, dn);
@@ -4728,7 +4728,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
4728
4728
  Z(this, Un);
4729
4729
  Z(this, Qe);
4730
4730
  Z(this, an);
4731
- V(this, sn, t), this.setOptions(n), this.bindMethods(), re(this, dn, Do).call(this);
4731
+ V(this, sn, t), this.setOptions(n), this.bindMethods(), re(this, dn, Oo).call(this);
4732
4732
  }
4733
4733
  bindMethods() {
4734
4734
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -4736,7 +4736,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
4736
4736
  setOptions(t) {
4737
4737
  var r;
4738
4738
  const n = this.options;
4739
- this.options = I(this, sn).defaultMutationOptions(t), No(this.options, n) || I(this, sn).getMutationCache().notify({
4739
+ this.options = I(this, sn).defaultMutationOptions(t), _o(this.options, n) || I(this, sn).getMutationCache().notify({
4740
4740
  type: "observerOptionsUpdated",
4741
4741
  mutation: I(this, Qe),
4742
4742
  observer: this
@@ -4747,20 +4747,20 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
4747
4747
  this.hasListeners() || (t = I(this, Qe)) == null || t.removeObserver(this);
4748
4748
  }
4749
4749
  onMutationUpdate(t) {
4750
- re(this, dn, Do).call(this), re(this, dn, Mc).call(this, t);
4750
+ re(this, dn, Oo).call(this), re(this, dn, Mc).call(this, t);
4751
4751
  }
4752
4752
  getCurrentResult() {
4753
4753
  return I(this, Un);
4754
4754
  }
4755
4755
  reset() {
4756
4756
  var t;
4757
- (t = I(this, Qe)) == null || t.removeObserver(this), V(this, Qe, void 0), re(this, dn, Do).call(this), re(this, dn, Mc).call(this);
4757
+ (t = I(this, Qe)) == null || t.removeObserver(this), V(this, Qe, void 0), re(this, dn, Oo).call(this), re(this, dn, Mc).call(this);
4758
4758
  }
4759
4759
  mutate(t, n) {
4760
4760
  var r;
4761
4761
  return V(this, an, n), (r = I(this, Qe)) == null || r.removeObserver(this), V(this, Qe, I(this, sn).getMutationCache().build(I(this, sn), this.options)), I(this, Qe).addObserver(this), I(this, Qe).execute(t);
4762
4762
  }
4763
- }, sn = new WeakMap(), Un = new WeakMap(), Qe = new WeakMap(), an = new WeakMap(), dn = new WeakSet(), Do = function() {
4763
+ }, sn = new WeakMap(), Un = new WeakMap(), Qe = new WeakMap(), an = new WeakMap(), dn = new WeakSet(), Oo = function() {
4764
4764
  var n;
4765
4765
  const t = ((n = I(this, Qe)) == null ? void 0 : n.state) ?? i0();
4766
4766
  V(this, Un, {
@@ -4898,15 +4898,15 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
4898
4898
  V(this, we, e.queryCache || new Yb()), V(this, In, e.mutationCache || new Qb()), V(this, Fn, e.defaultOptions || {}), V(this, Xr, /* @__PURE__ */ new Map()), V(this, Qr, /* @__PURE__ */ new Map()), V(this, Dn, 0);
4899
4899
  }
4900
4900
  mount() {
4901
- Ha(this, Dn)._++, I(this, Dn) === 1 && (V(this, Jr, Tl.subscribe(async (e) => {
4901
+ Ga(this, Dn)._++, I(this, Dn) === 1 && (V(this, Jr, Tl.subscribe(async (e) => {
4902
4902
  e && (await this.resumePausedMutations(), I(this, we).onFocus());
4903
- })), V(this, Yr, zo.subscribe(async (e) => {
4903
+ })), V(this, Yr, Lo.subscribe(async (e) => {
4904
4904
  e && (await this.resumePausedMutations(), I(this, we).onOnline());
4905
4905
  })));
4906
4906
  }
4907
4907
  unmount() {
4908
4908
  var e, t;
4909
- Ha(this, Dn)._--, I(this, Dn) === 0 && ((e = I(this, Jr)) == null || e.call(this), V(this, Jr, void 0), (t = I(this, Yr)) == null || t.call(this), V(this, Yr, void 0));
4909
+ Ga(this, Dn)._--, I(this, Dn) === 0 && ((e = I(this, Jr)) == null || e.call(this), V(this, Jr, void 0), (t = I(this, Yr)) == null || t.call(this), V(this, Yr, void 0));
4910
4910
  }
4911
4911
  isFetching(e) {
4912
4912
  return I(this, we).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -5028,7 +5028,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
5028
5028
  return e.behavior = ud(e.pages), this.ensureQueryData(e);
5029
5029
  }
5030
5030
  resumePausedMutations() {
5031
- return zo.isOnline() ? I(this, In).resumePausedMutations() : Promise.resolve();
5031
+ return Lo.isOnline() ? I(this, In).resumePausedMutations() : Promise.resolve();
5032
5032
  }
5033
5033
  getQueryCache() {
5034
5034
  return I(this, we);
@@ -5078,7 +5078,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
5078
5078
  return t.queryHash || (t.queryHash = Al(
5079
5079
  t.queryKey,
5080
5080
  t
5081
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === _o && (t.enabled = !1), t;
5081
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === zo && (t.enabled = !1), t;
5082
5082
  }
5083
5083
  defaultMutationOptions(e) {
5084
5084
  return e != null && e._defaulted ? e : {
@@ -5325,12 +5325,12 @@ const fd = (e) => {
5325
5325
  return i;
5326
5326
  }, yy = ((e) => e ? fd(e) : fd), xy = (e) => e;
5327
5327
  function gy(e, t = xy) {
5328
- const n = Ga.useSyncExternalStore(
5328
+ const n = ja.useSyncExternalStore(
5329
5329
  e.subscribe,
5330
- Ga.useCallback(() => t(e.getState()), [e, t]),
5331
- Ga.useCallback(() => t(e.getInitialState()), [e, t])
5330
+ ja.useCallback(() => t(e.getState()), [e, t]),
5331
+ ja.useCallback(() => t(e.getInitialState()), [e, t])
5332
5332
  );
5333
- return Ga.useDebugValue(n), n;
5333
+ return ja.useDebugValue(n), n;
5334
5334
  }
5335
5335
  const md = (e) => {
5336
5336
  const t = yy(e), n = (r) => gy(t, r);
@@ -5361,7 +5361,7 @@ const md = (e) => {
5361
5361
  }
5362
5362
  });
5363
5363
  }
5364
- })), Yo = () => {
5364
+ })), ei = () => {
5365
5365
  const e = ne((s) => s.state.swapExecutionIndex), t = ne(
5366
5366
  (s) => s.state.swapExecutions[s.state.swapExecutionIndex] ?? {}
5367
5367
  ), n = ne((s) => s.updateSwapExecutionAtIndex), r = ke(
@@ -5370,7 +5370,7 @@ const md = (e) => {
5370
5370
  );
5371
5371
  return W(() => ({ ...t, update: r }), [t, r]);
5372
5372
  };
5373
- var Ht = /* @__PURE__ */ ((e) => (e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILED = 3] = "FAILED", e))(Ht || {}), Oo = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.APPROVE = "approve", e.CREATE = "create", e))(Oo || {});
5373
+ var Ht = /* @__PURE__ */ ((e) => (e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILED = 3] = "FAILED", e))(Ht || {}), Mo = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.APPROVE = "approve", e.CREATE = "create", e))(Mo || {});
5374
5374
  const Ey = "1.2.3";
5375
5375
  let rt = class Nc extends Error {
5376
5376
  constructor(t, n = {}) {
@@ -5443,7 +5443,7 @@ function Dr(e) {
5443
5443
  }
5444
5444
  return t;
5445
5445
  }
5446
- function Lo(e) {
5446
+ function $o(e) {
5447
5447
  var t;
5448
5448
  return e.type === "function" ? `function ${e.name}(${Dr(e.inputs)})${e.stateMutability && e.stateMutability !== "nonpayable" ? ` ${e.stateMutability}` : ""}${(t = e.outputs) != null && t.length ? ` returns (${Dr(e.outputs)})` : ""}` : e.type === "event" ? `event ${e.name}(${Dr(e.inputs)})` : e.type === "error" ? `error ${e.name}(${Dr(e.inputs)})` : e.type === "constructor" ? `constructor(${Dr(e.inputs)})${e.stateMutability === "payable" ? " payable" : ""}` : e.type === "fallback" ? `fallback() external${e.stateMutability === "payable" ? " payable" : ""}` : "receive() external payable";
5449
5449
  }
@@ -5469,7 +5469,7 @@ function Sy(e) {
5469
5469
  return bn(h0, e);
5470
5470
  }
5471
5471
  const b0 = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
5472
- function ei(e) {
5472
+ function ti(e) {
5473
5473
  return b0.test(e);
5474
5474
  }
5475
5475
  function Py(e) {
@@ -5932,7 +5932,7 @@ function Bl(e) {
5932
5932
  const t = {}, n = e.length;
5933
5933
  for (let o = 0; o < n; o++) {
5934
5934
  const i = e[o];
5935
- if (!ei(i))
5935
+ if (!ti(i))
5936
5936
  continue;
5937
5937
  const c = Py(i);
5938
5938
  if (!c)
@@ -5990,7 +5990,7 @@ function E0(e) {
5990
5990
  const t = Bl(e), n = [], r = e.length;
5991
5991
  for (let s = 0; s < r; s++) {
5992
5992
  const a = e[s];
5993
- ei(a) || n.push(Lc(a, t));
5993
+ ti(a) || n.push(Lc(a, t));
5994
5994
  }
5995
5995
  return n;
5996
5996
  }
@@ -6002,7 +6002,7 @@ function xd(e) {
6002
6002
  const n = Bl(e), r = e.length;
6003
6003
  for (let s = 0; s < r; s++) {
6004
6004
  const a = e[s];
6005
- if (!ei(a)) {
6005
+ if (!ti(a)) {
6006
6006
  t = Lc(a, n);
6007
6007
  break;
6008
6008
  }
@@ -6022,7 +6022,7 @@ function gd(e) {
6022
6022
  const n = Bl(e), r = e.length;
6023
6023
  for (let s = 0; s < r; s++) {
6024
6024
  const a = e[s];
6025
- if (ei(a))
6025
+ if (ti(a))
6026
6026
  continue;
6027
6027
  const o = at(a), i = o.length;
6028
6028
  for (let c = 0; c < i; c++)
@@ -6043,13 +6043,13 @@ function q(e, t, n) {
6043
6043
  function Bt(e, { includeName: t = !1 } = {}) {
6044
6044
  if (e.type !== "function" && e.type !== "event" && e.type !== "error")
6045
6045
  throw new E6(e.type);
6046
- return `${e.name}(${ti(e.inputs, { includeName: t })})`;
6046
+ return `${e.name}(${ni(e.inputs, { includeName: t })})`;
6047
6047
  }
6048
- function ti(e, { includeName: t = !1 } = {}) {
6048
+ function ni(e, { includeName: t = !1 } = {}) {
6049
6049
  return e ? e.map((n) => c6(n, { includeName: t })).join(t ? ", " : ",") : "";
6050
6050
  }
6051
6051
  function c6(e, { includeName: t }) {
6052
- return e.type.startsWith("tuple") ? `(${ti(e.components, { includeName: t })})${e.type.slice(5)}` : e.type + (t && e.name ? ` ${e.name}` : "");
6052
+ return e.type.startsWith("tuple") ? `(${ni(e.components, { includeName: t })})${e.type.slice(5)}` : e.type + (t && e.name ? ` ${e.name}` : "");
6053
6053
  }
6054
6054
  function Gt(e, { strict: t = !0 } = {}) {
6055
6055
  return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
@@ -6144,7 +6144,7 @@ class v0 extends z {
6144
6144
  super([`Data size of ${r} bytes is too small for given parameters.`].join(`
6145
6145
  `), {
6146
6146
  metaMessages: [
6147
- `Params: (${ti(n, { includeName: !0 })})`,
6147
+ `Params: (${ni(n, { includeName: !0 })})`,
6148
6148
  `Data: ${t} (${r} bytes)`
6149
6149
  ],
6150
6150
  name: "AbiDecodingDataSizeTooSmallError"
@@ -6333,14 +6333,14 @@ let x6 = class extends z {
6333
6333
  });
6334
6334
  }
6335
6335
  };
6336
- class $o extends z {
6336
+ class Ho extends z {
6337
6337
  constructor({ abiItem: t, data: n, params: r, size: s }) {
6338
6338
  super([
6339
6339
  `Data size of ${s} bytes is too small for non-indexed event parameters.`
6340
6340
  ].join(`
6341
6341
  `), {
6342
6342
  metaMessages: [
6343
- `Params: (${ti(r, { includeName: !0 })})`,
6343
+ `Params: (${ni(r, { includeName: !0 })})`,
6344
6344
  `Data: ${n} (${s} bytes)`
6345
6345
  ],
6346
6346
  name: "DecodeLogDataMismatch"
@@ -6605,9 +6605,9 @@ function rr(e, t = {}) {
6605
6605
  const n = U6.encode(e);
6606
6606
  return typeof t.size == "number" ? (Dt(n, { size: t.size }), yr(n, { dir: "right", size: t.size })) : n;
6607
6607
  }
6608
- const Ka = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ad = /* @__PURE__ */ BigInt(32);
6608
+ const Wa = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ad = /* @__PURE__ */ BigInt(32);
6609
6609
  function D6(e, t = !1) {
6610
- return t ? { h: Number(e & Ka), l: Number(e >> Ad & Ka) } : { h: Number(e >> Ad & Ka) | 0, l: Number(e & Ka) | 0 };
6610
+ return t ? { h: Number(e & Wa), l: Number(e >> Ad & Wa) } : { h: Number(e >> Ad & Wa) | 0, l: Number(e & Wa) | 0 };
6611
6611
  }
6612
6612
  function F0(e, t = !1) {
6613
6613
  const n = e.length;
@@ -6618,7 +6618,7 @@ function F0(e, t = !1) {
6618
6618
  }
6619
6619
  return [r, s];
6620
6620
  }
6621
- const Td = (e, t, n) => e >>> n, Sd = (e, t, n) => e << 32 - n | t >>> n, Tr = (e, t, n) => e >>> n | t << 32 - n, Sr = (e, t, n) => e << 32 - n | t >>> n, Wa = (e, t, n) => e << 64 - n | t >>> n - 32, Za = (e, t, n) => e >>> n - 32 | t << 64 - n, O6 = (e, t, n) => e << n | t >>> 32 - n, M6 = (e, t, n) => t << n | e >>> 32 - n, R6 = (e, t, n) => t << n - 32 | e >>> 64 - n, N6 = (e, t, n) => e << n - 32 | t >>> 64 - n;
6621
+ const Td = (e, t, n) => e >>> n, Sd = (e, t, n) => e << 32 - n | t >>> n, Tr = (e, t, n) => e >>> n | t << 32 - n, Sr = (e, t, n) => e << 32 - n | t >>> n, Za = (e, t, n) => e << 64 - n | t >>> n - 32, Xa = (e, t, n) => e >>> n - 32 | t << 64 - n, O6 = (e, t, n) => e << n | t >>> 32 - n, M6 = (e, t, n) => t << n | e >>> 32 - n, R6 = (e, t, n) => t << n - 32 | e >>> 64 - n, N6 = (e, t, n) => e << n - 32 | t >>> 64 - n;
6622
6622
  function Xt(e, t, n, r) {
6623
6623
  const s = (t >>> 0) + (r >>> 0);
6624
6624
  return { h: e + n + (s / 2 ** 32 | 0) | 0, l: s | 0 };
@@ -6683,7 +6683,7 @@ function X6(e) {
6683
6683
  throw new Error("string expected");
6684
6684
  return new Uint8Array(new TextEncoder().encode(e));
6685
6685
  }
6686
- function ni(e) {
6686
+ function ri(e) {
6687
6687
  return typeof e == "string" && (e = X6(e)), lr(e), e;
6688
6688
  }
6689
6689
  function Q6(...e) {
@@ -6701,8 +6701,8 @@ function Q6(...e) {
6701
6701
  }
6702
6702
  class Il {
6703
6703
  }
6704
- function ri(e) {
6705
- const t = (r) => e().update(ni(r)).digest(), n = e();
6704
+ function si(e) {
6705
+ const t = (r) => e().update(ri(r)).digest(), n = e();
6706
6706
  return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
6707
6707
  }
6708
6708
  function J6(e = 32) {
@@ -6760,7 +6760,7 @@ class Fl extends Il {
6760
6760
  Pd(this.state32), o2(this.state32, this.rounds), Pd(this.state32), this.posOut = 0, this.pos = 0;
6761
6761
  }
6762
6762
  update(t) {
6763
- ss(this), t = ni(t), lr(t);
6763
+ ss(this), t = ri(t), lr(t);
6764
6764
  const { blockLen: n, state: r } = this, s = t.length;
6765
6765
  for (let a = 0; a < s; ) {
6766
6766
  const o = Math.min(n - this.pos, s - a);
@@ -6811,7 +6811,7 @@ class Fl extends Il {
6811
6811
  return t || (t = new Fl(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;
6812
6812
  }
6813
6813
  }
6814
- const i2 = (e, t, n) => ri(() => new Fl(t, e, n)), _0 = i2(1, 136, 256 / 8);
6814
+ const i2 = (e, t, n) => si(() => new Fl(t, e, n)), _0 = i2(1, 136, 256 / 8);
6815
6815
  function Ne(e, t) {
6816
6816
  const n = t || "hex", r = _0(Gt(e, { strict: !1 }) ? cn(e) : e);
6817
6817
  return n === "bytes" ? r : le(r);
@@ -6846,13 +6846,13 @@ function u2(e) {
6846
6846
  return s;
6847
6847
  }
6848
6848
  const d2 = (e) => {
6849
- const t = typeof e == "string" ? e : Lo(e);
6849
+ const t = typeof e == "string" ? e : $o(e);
6850
6850
  return u2(t);
6851
6851
  };
6852
6852
  function z0(e) {
6853
6853
  return l2(d2(e));
6854
6854
  }
6855
- const si = z0;
6855
+ const ai = z0;
6856
6856
  let Ue = class extends z {
6857
6857
  constructor({ address: t }) {
6858
6858
  super(`Address "${t}" is invalid.`, {
@@ -7138,7 +7138,7 @@ function Rl(e) {
7138
7138
  }
7139
7139
  const Ca = (e) => ur(z0(e), 0, 4);
7140
7140
  function gr(e) {
7141
- const { abi: t, args: n = [], name: r } = e, s = Gt(r, { strict: !1 }), a = t.filter((i) => s ? i.type === "function" ? Ca(i) === r : i.type === "event" ? si(i) === r : !1 : "name" in i && i.name === r);
7141
+ const { abi: t, args: n = [], name: r } = e, s = Gt(r, { strict: !1 }), a = t.filter((i) => s ? i.type === "function" ? Ca(i) === r : i.type === "event" ? ai(i) === r : !1 : "name" in i && i.name === r);
7142
7142
  if (a.length === 0)
7143
7143
  return;
7144
7144
  if (a.length === 1)
@@ -7216,7 +7216,7 @@ function va(e) {
7216
7216
  }
7217
7217
  if (s.type !== "event")
7218
7218
  throw new kd(void 0, { docsPath: Id });
7219
- const a = Bt(s), o = si(a);
7219
+ const a = Bt(s), o = ai(a);
7220
7220
  let i = [];
7221
7221
  if (r && "inputs" in s) {
7222
7222
  const l = (c = s.inputs) == null ? void 0 : c.filter((p) => "indexed" in p && p.indexed), d = Array.isArray(r) ? r : Object.values(r).length > 0 ? (l == null ? void 0 : l.map((p) => r[p.name])) ?? [] : [];
@@ -7231,7 +7231,7 @@ function Fd({ param: e, value: t }) {
7231
7231
  throw new k6(e.type);
7232
7232
  return xr([e], [t]);
7233
7233
  }
7234
- function ai(e, { method: t }) {
7234
+ function oi(e, { method: t }) {
7235
7235
  var r, s;
7236
7236
  const n = {};
7237
7237
  return e.transport.type === "fallback" && ((s = (r = e.transport).onResponse) == null || s.call(r, ({ method: a, response: o, status: i, transport: c }) => {
@@ -7239,7 +7239,7 @@ function ai(e, { method: t }) {
7239
7239
  })), ((a) => n[a] || e.request);
7240
7240
  }
7241
7241
  async function V0(e, t) {
7242
- const { address: n, abi: r, args: s, eventName: a, fromBlock: o, strict: i, toBlock: c } = t, l = ai(e, {
7242
+ const { address: n, abi: r, args: s, eventName: a, fromBlock: o, strict: i, toBlock: c } = t, l = oi(e, {
7243
7243
  method: "eth_newFilter"
7244
7244
  }), d = a ? va({
7245
7245
  abi: r,
@@ -8004,7 +8004,7 @@ class Q2 extends z {
8004
8004
  });
8005
8005
  }
8006
8006
  }
8007
- class oi extends z {
8007
+ class ii extends z {
8008
8008
  constructor({ data: t, message: n }) {
8009
8009
  super(n || "", { name: "RawContractError" }), Object.defineProperty(this, "code", {
8010
8010
  enumerable: !0,
@@ -8516,7 +8516,7 @@ class Y2 extends st {
8516
8516
  }
8517
8517
  const e5 = 3;
8518
8518
  function pr(e, { abi: t, address: n, args: r, docsPath: s, functionName: a, sender: o }) {
8519
- const i = e instanceof oi ? 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 X2({ functionName: a }) : [e5, dr.code].includes(c) && (l || d || p || f) || c === Nn.code && d === "execution reverted" && l ? new Vc({
8519
+ const i = e instanceof ii ? 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 X2({ functionName: a }) : [e5, dr.code].includes(c) && (l || d || p || f) || c === Nn.code && d === "execution reverted" && l ? new Vc({
8520
8520
  abi: t,
8521
8521
  data: typeof l == "object" ? l.data : l,
8522
8522
  functionName: a,
@@ -8610,7 +8610,7 @@ function a5(e) {
8610
8610
  ]));
8611
8611
  return r === "bytes" ? ot(a) : a;
8612
8612
  }
8613
- async function ii(e) {
8613
+ async function ci(e) {
8614
8614
  const { authorization: t, signature: n } = e;
8615
8615
  return ef({
8616
8616
  hash: a5(t),
@@ -8829,7 +8829,7 @@ class Sa extends z {
8829
8829
  });
8830
8830
  }
8831
8831
  }
8832
- function ci(e, t) {
8832
+ function li(e, t) {
8833
8833
  const n = (e.details || "").toLowerCase(), r = e instanceof z ? e.walk((s) => (s == null ? void 0 : s.code) === Or.code) : e;
8834
8834
  return r instanceof z ? new Or({
8835
8835
  cause: e,
@@ -8853,7 +8853,7 @@ function ci(e, t) {
8853
8853
  }
8854
8854
  function i5(e, { docsPath: t, ...n }) {
8855
8855
  const r = (() => {
8856
- const s = ci(e, n);
8856
+ const s = li(e, n);
8857
8857
  return s instanceof Sa ? e : s;
8858
8858
  })();
8859
8859
  return new o5(r, {
@@ -8873,7 +8873,7 @@ function wr(e, { format: t }) {
8873
8873
  const s = t(e || {});
8874
8874
  return r(s), n;
8875
8875
  }
8876
- function li(e, t) {
8876
+ function ui(e, t) {
8877
8877
  return ({ exclude: n, format: r }) => ({
8878
8878
  exclude: n,
8879
8879
  format: (s, a) => {
@@ -8900,7 +8900,7 @@ function Ot(e, t) {
8900
8900
  const n = {};
8901
8901
  return typeof e.authorizationList < "u" && (n.authorizationList = l5(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 = c5[e.type]), typeof e.value < "u" && (n.value = H(e.value)), n;
8902
8902
  }
8903
- const Hl = /* @__PURE__ */ li("transactionRequest", Ot);
8903
+ const Hl = /* @__PURE__ */ ui("transactionRequest", Ot);
8904
8904
  function l5(e) {
8905
8905
  return e.map((t) => ({
8906
8906
  address: t.address,
@@ -9028,7 +9028,7 @@ function Er(e, t) {
9028
9028
  }
9029
9029
  })(), n.type === "legacy" && (delete n.accessList, delete n.maxFeePerBlobGas, delete n.maxFeePerGas, delete n.maxPriorityFeePerGas, delete n.yParity), n.type === "eip2930" && (delete n.maxFeePerBlobGas, delete n.maxFeePerGas, delete n.maxPriorityFeePerGas), n.type === "eip1559" && delete n.maxFeePerBlobGas, n;
9030
9030
  }
9031
- const ui = /* @__PURE__ */ li("transaction", Er);
9031
+ const di = /* @__PURE__ */ ui("transaction", Er);
9032
9032
  function f5(e) {
9033
9033
  return e.map((t) => ({
9034
9034
  address: t.address,
@@ -9059,7 +9059,7 @@ function Vl(e, t) {
9059
9059
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
9060
9060
  };
9061
9061
  }
9062
- const ql = /* @__PURE__ */ li("block", Vl);
9062
+ const ql = /* @__PURE__ */ ui("block", Vl);
9063
9063
  async function Pt(e, { blockHash: t, blockNumber: n, blockTag: r = e.experimental_blockTag ?? "latest", includeTransactions: s } = {}) {
9064
9064
  var l, d, p;
9065
9065
  const a = s ?? !1, o = n !== void 0 ? H(n) : void 0;
@@ -9202,7 +9202,7 @@ class cf extends Il {
9202
9202
  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);
9203
9203
  }
9204
9204
  update(t) {
9205
- ss(this), t = ni(t), lr(t);
9205
+ ss(this), t = ri(t), lr(t);
9206
9206
  const { view: n, buffer: r, blockLen: s } = this, a = t.length;
9207
9207
  for (let o = 0; o < a; ) {
9208
9208
  const i = Math.min(s - this.pos, a - o);
@@ -9489,12 +9489,12 @@ class uf extends cf {
9489
9489
  for (let U = 0; U < 16; U++, n += 4)
9490
9490
  Cn[U] = t.getUint32(n), vn[U] = t.getUint32(n += 4);
9491
9491
  for (let U = 16; U < 80; U++) {
9492
- const k = Cn[U - 15] | 0, O = vn[U - 15] | 0, N = Tr(k, O, 1) ^ Tr(k, O, 8) ^ Td(k, O, 7), R = Sr(k, O, 1) ^ Sr(k, O, 8) ^ Sd(k, O, 7), h = Cn[U - 2] | 0, b = vn[U - 2] | 0, x = Tr(h, b, 19) ^ Wa(h, b, 61) ^ Td(h, b, 6), C = Sr(h, b, 19) ^ Za(h, b, 61) ^ Sd(h, b, 6), E = L6(R, C, vn[U - 7], vn[U - 16]), T = $6(E, N, x, Cn[U - 7], Cn[U - 16]);
9492
+ const k = Cn[U - 15] | 0, O = vn[U - 15] | 0, N = Tr(k, O, 1) ^ Tr(k, O, 8) ^ Td(k, O, 7), R = Sr(k, O, 1) ^ Sr(k, O, 8) ^ Sd(k, O, 7), h = Cn[U - 2] | 0, b = vn[U - 2] | 0, x = Tr(h, b, 19) ^ Za(h, b, 61) ^ Td(h, b, 6), C = Sr(h, b, 19) ^ Xa(h, b, 61) ^ Sd(h, b, 6), E = L6(R, C, vn[U - 7], vn[U - 16]), T = $6(E, N, x, Cn[U - 7], Cn[U - 16]);
9493
9493
  Cn[U] = T | 0, vn[U] = E | 0;
9494
9494
  }
9495
9495
  let { Ah: r, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: d, Eh: p, El: f, Fh: m, Fl: y, Gh: g, Gl: P, Hh: B, Hl: v } = this;
9496
9496
  for (let U = 0; U < 80; U++) {
9497
- const k = Tr(p, f, 14) ^ Tr(p, f, 18) ^ Wa(p, f, 41), O = Sr(p, f, 14) ^ Sr(p, f, 18) ^ Za(p, f, 41), N = p & m ^ ~p & g, R = f & y ^ ~f & P, h = H6(v, O, R, k5[U], vn[U]), b = G6(h, B, k, N, E5[U], Cn[U]), x = h | 0, C = Tr(r, s, 28) ^ Wa(r, s, 34) ^ Wa(r, s, 39), E = Sr(r, s, 28) ^ Za(r, s, 34) ^ Za(r, s, 39), T = r & a ^ r & i ^ a & i, D = s & o ^ s & c ^ o & c;
9497
+ const k = Tr(p, f, 14) ^ Tr(p, f, 18) ^ Za(p, f, 41), O = Sr(p, f, 14) ^ Sr(p, f, 18) ^ Xa(p, f, 41), N = p & m ^ ~p & g, R = f & y ^ ~f & P, h = H6(v, O, R, k5[U], vn[U]), b = G6(h, B, k, N, E5[U], Cn[U]), x = h | 0, C = Tr(r, s, 28) ^ Za(r, s, 34) ^ Za(r, s, 39), E = Sr(r, s, 28) ^ Xa(r, s, 34) ^ Xa(r, s, 39), T = r & a ^ r & i ^ a & i, D = s & o ^ s & c ^ o & c;
9498
9498
  B = g | 0, v = P | 0, g = m | 0, P = y | 0, m = p | 0, y = f | 0, { h: p, l: f } = Xt(l | 0, d | 0, b | 0, x | 0), l = i | 0, d = c | 0, i = a | 0, c = o | 0, a = r | 0, o = s | 0;
9499
9499
  const w = _6(x, E, D);
9500
9500
  r = z6(w, b, C, T), s = w | 0;
@@ -9513,7 +9513,7 @@ class C5 extends uf {
9513
9513
  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;
9514
9514
  }
9515
9515
  }
9516
- const Ql = /* @__PURE__ */ ri(() => new w5()), v5 = /* @__PURE__ */ ri(() => new uf()), A5 = /* @__PURE__ */ ri(() => new C5()), df = Ql;
9516
+ const Ql = /* @__PURE__ */ si(() => new w5()), v5 = /* @__PURE__ */ si(() => new uf()), A5 = /* @__PURE__ */ si(() => new C5()), df = Ql;
9517
9517
  function pf(e, t) {
9518
9518
  const n = t || "hex", r = df(Gt(e, { strict: !1 }) ? cn(e) : e);
9519
9519
  return n === "bytes" ? r : le(r);
@@ -9616,9 +9616,9 @@ function Yl(e) {
9616
9616
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
9617
9617
  throw new V2({ transaction: e });
9618
9618
  }
9619
- function di(e, { docsPath: t, ...n }) {
9619
+ function pi(e, { docsPath: t, ...n }) {
9620
9620
  const r = (() => {
9621
- const s = ci(e, n);
9621
+ const s = li(e, n);
9622
9622
  return s instanceof Sa ? e : s;
9623
9623
  })();
9624
9624
  return new K2(r, {
@@ -9693,7 +9693,7 @@ async function eu(e, t) {
9693
9693
  }
9694
9694
  };
9695
9695
  } catch (T) {
9696
- throw di(T, {
9696
+ throw pi(T, {
9697
9697
  ...t,
9698
9698
  chain: e.chain
9699
9699
  });
@@ -9857,7 +9857,7 @@ async function nu(e, t) {
9857
9857
  if (t.to)
9858
9858
  return t.to;
9859
9859
  if (t.authorizationList && t.authorizationList.length > 0)
9860
- return await ii({
9860
+ return await ci({
9861
9861
  authorization: t.authorizationList[0]
9862
9862
  }).catch(() => {
9863
9863
  throw new z("`to` is required. Could not infer from `authorizationList`");
@@ -9936,11 +9936,11 @@ function Ba(e, t) {
9936
9936
  return e.toLowerCase() === t.toLowerCase();
9937
9937
  }
9938
9938
  const Gd = "/docs/contract/decodeEventLog";
9939
- function Ho(e) {
9939
+ function Go(e) {
9940
9940
  const { abi: t, data: n, strict: r, topics: s } = e, a = r ?? !0, [o, ...i] = s;
9941
9941
  if (!o)
9942
9942
  throw new m6({ docsPath: Gd });
9943
- const c = t.find((g) => g.type === "event" && o === si(Bt(g)));
9943
+ const c = t.find((g) => g.type === "event" && o === ai(Bt(g)));
9944
9944
  if (!(c && "name" in c) || c.type !== "event")
9945
9945
  throw new h6(o, { docsPath: Gd });
9946
9946
  const { name: l, inputs: d } = c, p = d == null ? void 0 : d.some((g) => !("name" in g && g.name)), f = p ? [] : {}, m = d.map((g, P) => [g, P]).filter(([g]) => "indexed" in g && g.indexed);
@@ -9970,7 +9970,7 @@ function Ho(e) {
9970
9970
  f[y[P].name] = g[P];
9971
9971
  } catch (g) {
9972
9972
  if (a)
9973
- throw g instanceof v0 || g instanceof K0 ? new $o({
9973
+ throw g instanceof v0 || g instanceof K0 ? new Ho({
9974
9974
  abiItem: c,
9975
9975
  data: n,
9976
9976
  params: y,
@@ -9978,7 +9978,7 @@ function Ho(e) {
9978
9978
  }) : g;
9979
9979
  }
9980
9980
  else if (a)
9981
- throw new $o({
9981
+ throw new Ho({
9982
9982
  abiItem: c,
9983
9983
  data: "0x",
9984
9984
  params: y,
@@ -10000,13 +10000,13 @@ function ru(e) {
10000
10000
  })();
10001
10001
  return r.map((o) => {
10002
10002
  var d;
10003
- const i = t.filter((p) => p.type === "event" && o.topics[0] === si(p));
10003
+ const i = t.filter((p) => p.type === "event" && o.topics[0] === ai(p));
10004
10004
  if (i.length === 0)
10005
10005
  return null;
10006
10006
  let c, l;
10007
10007
  for (const p of i)
10008
10008
  try {
10009
- c = Ho({
10009
+ c = Go({
10010
10010
  ...o,
10011
10011
  abi: [p],
10012
10012
  strict: !0
@@ -10017,7 +10017,7 @@ function ru(e) {
10017
10017
  if (!c && !s) {
10018
10018
  l = i[0];
10019
10019
  try {
10020
- c = Ho({
10020
+ c = Go({
10021
10021
  ...o,
10022
10022
  abi: [l],
10023
10023
  strict: !1
@@ -10152,7 +10152,7 @@ function ia(e, t) {
10152
10152
  if (typeof t != "boolean")
10153
10153
  throw new Error(e + " boolean expected, got " + t);
10154
10154
  }
10155
- function Xa(e) {
10155
+ function Qa(e) {
10156
10156
  const t = e.toString(16);
10157
10157
  return t.length & 1 ? "0" + t : t;
10158
10158
  }
@@ -10182,7 +10182,7 @@ function jd(e) {
10182
10182
  if (e >= Qt.a && e <= Qt.f)
10183
10183
  return e - (Qt.a - 10);
10184
10184
  }
10185
- function Go(e) {
10185
+ function jo(e) {
10186
10186
  if (typeof e != "string")
10187
10187
  throw new Error("hex string expected, got " + typeof e);
10188
10188
  if (Ef)
@@ -10208,7 +10208,7 @@ function kf(e) {
10208
10208
  return ou(e), wf(ca(Uint8Array.from(e).reverse()));
10209
10209
  }
10210
10210
  function Ia(e, t) {
10211
- return Go(e.toString(16).padStart(t * 2, "0"));
10211
+ return jo(e.toString(16).padStart(t * 2, "0"));
10212
10212
  }
10213
10213
  function Cf(e, t) {
10214
10214
  return Ia(e, t).reverse();
@@ -10217,7 +10217,7 @@ function bt(e, t, n) {
10217
10217
  let r;
10218
10218
  if (typeof t == "string")
10219
10219
  try {
10220
- r = Go(t);
10220
+ r = jo(t);
10221
10221
  } catch (a) {
10222
10222
  throw new Error(e + " must be hex string or Uint8Array, cause: " + a);
10223
10223
  }
@@ -10230,7 +10230,7 @@ function bt(e, t, n) {
10230
10230
  throw new Error(e + " of length " + n + " expected, got " + s);
10231
10231
  return r;
10232
10232
  }
10233
- function jo(...e) {
10233
+ function Vo(...e) {
10234
10234
  let t = 0;
10235
10235
  for (let r = 0; r < e.length; r++) {
10236
10236
  const s = e[r];
@@ -10257,7 +10257,7 @@ function M5(e) {
10257
10257
  ;
10258
10258
  return t;
10259
10259
  }
10260
- const pi = (e) => (tl << BigInt(e)) - tl, Wi = (e) => new Uint8Array(e), Vd = (e) => Uint8Array.from(e);
10260
+ const fi = (e) => (tl << BigInt(e)) - tl, Wi = (e) => new Uint8Array(e), Vd = (e) => Uint8Array.from(e);
10261
10261
  function R5(e, t, n) {
10262
10262
  if (typeof e != "number" || e < 2)
10263
10263
  throw new Error("hashLen must be a number");
@@ -10280,7 +10280,7 @@ function R5(e, t, n) {
10280
10280
  const m = r.slice();
10281
10281
  f.push(m), p += r.length;
10282
10282
  }
10283
- return jo(...f);
10283
+ return Vo(...f);
10284
10284
  };
10285
10285
  return (p, f) => {
10286
10286
  o(), c(p);
@@ -10301,7 +10301,7 @@ const N5 = {
10301
10301
  field: (e, t) => t.Fp.isValid(e),
10302
10302
  hash: (e) => typeof e == "function" && Number.isSafeInteger(e.outputLen)
10303
10303
  };
10304
- function fi(e, t, n = {}) {
10304
+ function mi(e, t, n = {}) {
10305
10305
  const r = (s, a, o) => {
10306
10306
  const i = N5[a];
10307
10307
  if (typeof i != "function")
@@ -10467,7 +10467,7 @@ function Af(e, t = {}) {
10467
10467
  s++;
10468
10468
  return r = n === "left" ? r.slice(s) : r.slice(0, r.length - s), r;
10469
10469
  }
10470
- function mi(e, t) {
10470
+ function hi(e, t) {
10471
10471
  if (Te(e) > t)
10472
10472
  throw new ux({
10473
10473
  givenSize: Te(e),
@@ -10518,13 +10518,13 @@ const V5 = /* @__PURE__ */ new TextDecoder(), q5 = /* @__PURE__ */ new TextEncod
10518
10518
  function K5(e) {
10519
10519
  if (!(e instanceof Uint8Array)) {
10520
10520
  if (!e)
10521
- throw new Qa(e);
10521
+ throw new Ja(e);
10522
10522
  if (typeof e != "object")
10523
- throw new Qa(e);
10523
+ throw new Ja(e);
10524
10524
  if (!("BYTES_PER_ELEMENT" in e))
10525
- throw new Qa(e);
10525
+ throw new Ja(e);
10526
10526
  if (e.BYTES_PER_ELEMENT !== 1 || e.constructor.name !== "Uint8Array")
10527
- throw new Qa(e);
10527
+ throw new Ja(e);
10528
10528
  }
10529
10529
  }
10530
10530
  function W5(...e) {
@@ -10547,7 +10547,7 @@ function Z5(e) {
10547
10547
  function $n(e, t = {}) {
10548
10548
  const { size: n } = t;
10549
10549
  let r = e;
10550
- n && (mi(e, n), r = hr(e, n));
10550
+ n && (hi(e, n), r = hr(e, n));
10551
10551
  let s = r.slice(2);
10552
10552
  s.length % 2 && (s = `0${s}`);
10553
10553
  const a = s.length / 2, o = new Uint8Array(a);
@@ -10627,7 +10627,7 @@ class rx extends K {
10627
10627
  });
10628
10628
  }
10629
10629
  }
10630
- class Qa extends K {
10630
+ class Ja extends K {
10631
10631
  constructor(t) {
10632
10632
  super(`Value \`${typeof t == "object" ? Fa(t) : t}\` of type \`${typeof t}\` is an invalid Bytes value.`, {
10633
10633
  metaMessages: ["Bytes values must be of type `Bytes`."]
@@ -10673,19 +10673,19 @@ function cx(e, t = {}) {
10673
10673
  function Ee(...e) {
10674
10674
  return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
10675
10675
  }
10676
- function hi(e) {
10676
+ function bi(e) {
10677
10677
  return e instanceof Uint8Array ? Me(e) : Array.isArray(e) ? Me(new Uint8Array(e)) : e;
10678
10678
  }
10679
10679
  function Uf(e, t = {}) {
10680
10680
  const n = `0x${Number(e)}`;
10681
- return typeof t.size == "number" ? (mi(n, t.size), mr(n, t.size)) : n;
10681
+ return typeof t.size == "number" ? (hi(n, t.size), mr(n, t.size)) : n;
10682
10682
  }
10683
10683
  function Me(e, t = {}) {
10684
10684
  let n = "";
10685
10685
  for (let s = 0; s < e.length; s++)
10686
10686
  n += ix[e[s]];
10687
10687
  const r = `0x${n}`;
10688
- return typeof t.size == "number" ? (mi(r, t.size), hr(r, t.size)) : r;
10688
+ return typeof t.size == "number" ? (hi(r, t.size), hr(r, t.size)) : r;
10689
10689
  }
10690
10690
  function j(e, t = {}) {
10691
10691
  const { signed: n, size: r } = t, s = BigInt(e);
@@ -10731,7 +10731,7 @@ function nl(e) {
10731
10731
  }
10732
10732
  function ve(e, t = {}) {
10733
10733
  const { signed: n } = t;
10734
- t.size && mi(e, t.size);
10734
+ t.size && hi(e, t.size);
10735
10735
  const r = BigInt(e);
10736
10736
  if (!n)
10737
10737
  return r;
@@ -10869,7 +10869,7 @@ function Mf(e) {
10869
10869
  }
10870
10870
  };
10871
10871
  }
10872
- const Vo = [
10872
+ const qo = [
10873
10873
  {
10874
10874
  inputs: [
10875
10875
  {
@@ -11432,7 +11432,7 @@ let ms = class extends z {
11432
11432
  }
11433
11433
  };
11434
11434
  const Zi = "/docs/contract/encodeDeployData";
11435
- function bi(e) {
11435
+ function yi(e) {
11436
11436
  const { abi: t, args: n, bytecode: r } = e;
11437
11437
  if (!n || n.length === 0)
11438
11438
  return r;
@@ -11467,7 +11467,7 @@ function hs({ blockNumber: e, chain: t, contract: n }) {
11467
11467
  }
11468
11468
  function uu(e, { docsPath: t, ...n }) {
11469
11469
  const r = (() => {
11470
- const s = ci(e, n);
11470
+ const s = li(e, n);
11471
11471
  return s instanceof Sa ? e : s;
11472
11472
  })();
11473
11473
  return new J0(r, {
@@ -11510,7 +11510,7 @@ function Hf({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
11510
11510
  }
11511
11511
  };
11512
11512
  }
11513
- async function yi(e, t) {
11513
+ async function xi(e, t) {
11514
11514
  var T, D, w, A;
11515
11515
  const { account: n = e.account, authorizationList: r, batch: s = !!((T = e.batch) != null && T.multicall), blockNumber: a, blockTag: o = e.experimental_blockTag ?? "latest", accessList: i, blobs: c, blockOverrides: l, code: d, data: p, factory: f, factoryData: m, gas: y, gasPrice: g, maxFeePerBlobGas: P, maxFeePerGas: B, maxPriorityFeePerGas: v, nonce: U, to: k, value: O, stateOverride: N, ...R } = t, h = n ? me(n) : void 0;
11516
11516
  if (d && (f || m))
@@ -11568,7 +11568,7 @@ async function yi(e, t) {
11568
11568
  });
11569
11569
  return J === "0x" ? { data: void 0 } : { data: J };
11570
11570
  } catch (F) {
11571
- const S = kx(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-PeTmGDEY.js");
11571
+ const S = kx(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-Bt3q5bGo.js");
11572
11572
  if (e.ccipRead !== !1 && (S == null ? void 0 : S.slice(0, 10)) === L && k)
11573
11573
  return { data: await M(e, { data: S, to: k }) };
11574
11574
  throw C && (S == null ? void 0 : S.slice(0, 10)) === "0x101bb98d" ? new Q2({ factory: f }) : uu(F, {
@@ -11608,7 +11608,7 @@ async function wx(e, t) {
11608
11608
  callData: k.data,
11609
11609
  target: k.to
11610
11610
  })), v = lt({
11611
- abi: Vo,
11611
+ abi: qo,
11612
11612
  args: [B],
11613
11613
  functionName: "aggregate3"
11614
11614
  }), U = await e.request({
@@ -11626,7 +11626,7 @@ async function wx(e, t) {
11626
11626
  ]
11627
11627
  });
11628
11628
  return kr({
11629
- abi: Vo,
11629
+ abi: qo,
11630
11630
  args: [B],
11631
11631
  functionName: "aggregate3",
11632
11632
  data: U || "0x"
@@ -11634,12 +11634,12 @@ async function wx(e, t) {
11634
11634
  }
11635
11635
  }), [{ returnData: m, success: y }] = await f({ data: i, to: c });
11636
11636
  if (!y)
11637
- throw new oi({ data: m });
11637
+ throw new ii({ data: m });
11638
11638
  return m === "0x" ? { data: void 0 } : { data: m };
11639
11639
  }
11640
11640
  function Gf(e) {
11641
11641
  const { code: t, data: n } = e;
11642
- return bi({
11642
+ return yi({
11643
11643
  abi: E0(["constructor(bytes, bytes)"]),
11644
11644
  bytecode: Lf,
11645
11645
  args: [t, n]
@@ -11647,7 +11647,7 @@ function Gf(e) {
11647
11647
  }
11648
11648
  function Ex(e) {
11649
11649
  const { data: t, factory: n, factoryData: r, to: s } = e;
11650
- return bi({
11650
+ return yi({
11651
11651
  abi: E0(["constructor(address, bytes, address, bytes)"]),
11652
11652
  bytecode: hx,
11653
11653
  args: [s, t, n, r]
@@ -11667,7 +11667,7 @@ async function Ut(e, t) {
11667
11667
  functionName: a
11668
11668
  });
11669
11669
  try {
11670
- const { data: c } = await q(e, yi, "call")({
11670
+ const { data: c } = await q(e, xi, "call")({
11671
11671
  ...o,
11672
11672
  data: i,
11673
11673
  to: r
@@ -11691,7 +11691,7 @@ async function Ut(e, t) {
11691
11691
  async function Cx(e, t) {
11692
11692
  const { abi: n, address: r, args: s, dataSuffix: a, functionName: o, ...i } = t, c = i.account ? me(i.account) : e.account, l = lt({ abi: n, args: s, functionName: o });
11693
11693
  try {
11694
- const { data: d } = await q(e, yi, "call")({
11694
+ const { data: d } = await q(e, xi, "call")({
11695
11695
  batch: !1,
11696
11696
  data: `${l}${a ? a.replace("0x", "") : ""}`,
11697
11697
  to: r,
@@ -11813,7 +11813,7 @@ async function Oa(e, { cacheTime: t = e.cacheTime } = {}) {
11813
11813
  }), { cacheKey: Bx(e.uid), cacheTime: t });
11814
11814
  return BigInt(n);
11815
11815
  }
11816
- async function xi(e, { filter: t }) {
11816
+ async function gi(e, { filter: t }) {
11817
11817
  const n = "strict" in t && t.strict, r = await t.request({
11818
11818
  method: "eth_getFilterChanges",
11819
11819
  params: [t.id]
@@ -11827,7 +11827,7 @@ async function xi(e, { filter: t }) {
11827
11827
  strict: n
11828
11828
  });
11829
11829
  }
11830
- async function gi(e, { filter: t }) {
11830
+ async function wi(e, { filter: t }) {
11831
11831
  return t.request({
11832
11832
  method: "eth_uninstallFilter",
11833
11833
  params: [t.id]
@@ -11871,7 +11871,7 @@ function Ux(e, t) {
11871
11871
  try {
11872
11872
  let h;
11873
11873
  if (k)
11874
- h = await q(e, xi, "getFilterChanges")({ filter: k });
11874
+ h = await q(e, gi, "getFilterChanges")({ filter: k });
11875
11875
  else {
11876
11876
  const b = await q(e, Oa, "getBlockNumber")({});
11877
11877
  U && U < b ? h = await q(e, gf, "getContractEvents")({
@@ -11899,7 +11899,7 @@ function Ux(e, t) {
11899
11899
  interval: p
11900
11900
  });
11901
11901
  return async () => {
11902
- k && await q(e, gi, "uninstallFilter")({ filter: k }), N();
11902
+ k && await q(e, wi, "uninstallFilter")({ filter: k }), N();
11903
11903
  };
11904
11904
  });
11905
11905
  })() : (() => {
@@ -11934,7 +11934,7 @@ function Ux(e, t) {
11934
11934
  return;
11935
11935
  const b = h.result;
11936
11936
  try {
11937
- const { eventName: C, args: E } = Ho({
11937
+ const { eventName: C, args: E } = Go({
11938
11938
  abi: n,
11939
11939
  data: b.data,
11940
11940
  topics: b.topics,
@@ -11946,7 +11946,7 @@ function Ux(e, t) {
11946
11946
  k.onLogs([T]);
11947
11947
  } catch (C) {
11948
11948
  let E, T;
11949
- if (C instanceof $o || C instanceof Ul) {
11949
+ if (C instanceof Ho || C instanceof Ul) {
11950
11950
  if (f)
11951
11951
  return;
11952
11952
  E = C.abiItem.name, T = (x = C.abiItem.inputs) == null ? void 0 : x.some((w) => !("name" in w && w.name));
@@ -12005,7 +12005,7 @@ async function fu(e, { serializedTransaction: t }) {
12005
12005
  }, { retryCount: 0 });
12006
12006
  }
12007
12007
  const Ji = new ps(128);
12008
- async function wi(e, t) {
12008
+ async function Ei(e, t) {
12009
12009
  var v, U, k, O;
12010
12010
  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: g, ...P } = t;
12011
12011
  if (typeof n > "u")
@@ -12019,7 +12019,7 @@ async function wi(e, t) {
12019
12019
  if (t.to)
12020
12020
  return t.to;
12021
12021
  if (t.to !== null && a && a.length > 0)
12022
- return await ii({
12022
+ return await ci({
12023
12023
  authorization: a[0]
12024
12024
  }).catch(() => {
12025
12025
  throw new z("`to` is required. Could not infer from `authorizationList`.");
@@ -12108,7 +12108,7 @@ async function wi(e, t) {
12108
12108
  type: B == null ? void 0 : B.type
12109
12109
  });
12110
12110
  } catch (N) {
12111
- throw N instanceof ar ? N : di(N, {
12111
+ throw N instanceof ar ? N : pi(N, {
12112
12112
  ...t,
12113
12113
  account: B,
12114
12114
  chain: t.chain || void 0
@@ -12116,7 +12116,7 @@ async function wi(e, t) {
12116
12116
  }
12117
12117
  }
12118
12118
  async function ua(e, t) {
12119
- return ua.internal(e, wi, "sendTransaction", t);
12119
+ return ua.internal(e, Ei, "sendTransaction", t);
12120
12120
  }
12121
12121
  (function(e) {
12122
12122
  async function t(n, r, s, a) {
@@ -12162,7 +12162,7 @@ class Ix extends z {
12162
12162
  }), this.result = t;
12163
12163
  }
12164
12164
  }
12165
- function qo(e, { delay: t = 100, retryCount: n = 2, shouldRetry: r = () => !0 } = {}) {
12165
+ function Ko(e, { delay: t = 100, retryCount: n = 2, shouldRetry: r = () => !0 } = {}) {
12166
12166
  return new Promise((s, a) => {
12167
12167
  const o = async ({ count: i = 0 } = {}) => {
12168
12168
  const c = async ({ error: l }) => {
@@ -12185,7 +12185,7 @@ const jf = {
12185
12185
  "0x0": "reverted",
12186
12186
  "0x1": "success"
12187
12187
  };
12188
- function Ei(e, t) {
12188
+ function ki(e, t) {
12189
12189
  const n = {
12190
12190
  ...e,
12191
12191
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
@@ -12201,7 +12201,7 @@ function Ei(e, t) {
12201
12201
  };
12202
12202
  return e.blobGasPrice && (n.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (n.blobGasUsed = BigInt(e.blobGasUsed)), n;
12203
12203
  }
12204
- const mu = /* @__PURE__ */ li("transactionReceipt", Ei), Vf = "0x5792579257925792579257925792579257925792579257925792579257925792", qf = H(0, {
12204
+ const mu = /* @__PURE__ */ ui("transactionReceipt", ki), Vf = "0x5792579257925792579257925792579257925792579257925792579257925792", qf = H(0, {
12205
12205
  size: 32
12206
12206
  });
12207
12207
  async function Kf(e, t) {
@@ -12252,7 +12252,7 @@ async function Kf(e, t) {
12252
12252
  }
12253
12253
  const y = [];
12254
12254
  for (const B of p) {
12255
- const v = wi(e, {
12255
+ const v = Ei(e, {
12256
12256
  account: d,
12257
12257
  chain: s,
12258
12258
  data: B.data,
@@ -12273,7 +12273,7 @@ async function Kf(e, t) {
12273
12273
  ])
12274
12274
  };
12275
12275
  }
12276
- throw di(f, {
12276
+ throw pi(f, {
12277
12277
  ...t,
12278
12278
  account: d,
12279
12279
  chain: t.chain
@@ -12338,7 +12338,7 @@ async function Zf(e, t) {
12338
12338
  clearTimeout(m), P(), v(), y();
12339
12339
  };
12340
12340
  try {
12341
- const v = await qo(async () => {
12341
+ const v = await Ko(async () => {
12342
12342
  const U = await q(e, Wf, "getCallsStatus")({ id: n });
12343
12343
  if (c && U.status === "failure")
12344
12344
  throw new Ix(U);
@@ -12369,14 +12369,14 @@ class Fx extends z {
12369
12369
  }
12370
12370
  }
12371
12371
  const ol = 256;
12372
- let Ja = ol, Ya;
12372
+ let Ya = ol, eo;
12373
12373
  function Xf(e = 11) {
12374
- if (!Ya || Ja + e > ol * 2) {
12375
- Ya = "", Ja = 0;
12374
+ if (!eo || Ya + e > ol * 2) {
12375
+ eo = "", Ya = 0;
12376
12376
  for (let t = 0; t < ol; t++)
12377
- Ya += (256 + Math.random() * 256 | 0).toString(16).substring(1);
12377
+ eo += (256 + Math.random() * 256 | 0).toString(16).substring(1);
12378
12378
  }
12379
- return Ya.substring(Ja, Ja++ + e);
12379
+ return eo.substring(Ya, Ya++ + e);
12380
12380
  }
12381
12381
  function Qf(e) {
12382
12382
  const { batch: t, chain: n, ccipRead: r, key: s = "base", name: a = "Base Client", type: o = "base" } = e, i = e.experimental_blockTag ?? (typeof (n == null ? void 0 : n.experimental_preconfirmationTime) == "number" ? "pending" : void 0), c = (n == null ? void 0 : n.blockTime) ?? 12e3, l = Math.min(Math.max(Math.floor(c / 2), 500), 4e3), d = e.pollingInterval ?? l, p = e.cacheTime ?? d, f = e.account ? me(e.account) : void 0, { config: m, request: y, value: g } = e.transport({
@@ -12473,12 +12473,12 @@ function Ox(e) {
12473
12473
  })();
12474
12474
  return xr(s.outputs, a);
12475
12475
  }
12476
- const ki = "x-batch-gateway:true";
12476
+ const Ci = "x-batch-gateway:true";
12477
12477
  async function Mx(e) {
12478
12478
  const { data: t, ccipRequest: n } = e, { args: [r] } = Dx({ abi: rl, data: t }), s = [], a = [];
12479
12479
  return await Promise.all(r.map(async (o, i) => {
12480
12480
  try {
12481
- a[i] = o.urls.includes(ki) ? await Mx({ data: o.data, ccipRequest: n }) : await n(o), s[i] = !1;
12481
+ a[i] = o.urls.includes(Ci) ? await Mx({ data: o.data, ccipRequest: n }) : await n(o), s[i] = !1;
12482
12482
  } catch (c) {
12483
12483
  s[i] = !0, a[i] = Rx(c);
12484
12484
  }
@@ -12563,7 +12563,7 @@ async function zx(e, t) {
12563
12563
  args: [
12564
12564
  le(bu(a)),
12565
12565
  f,
12566
- o ?? [ki]
12566
+ o ?? [Ci]
12567
12567
  ],
12568
12568
  blockNumber: n,
12569
12569
  blockTag: r
@@ -12791,7 +12791,7 @@ async function tm(e, t) {
12791
12791
  functionName: "text",
12792
12792
  args: [il(a), s]
12793
12793
  }),
12794
- o ?? [ki]
12794
+ o ?? [Ci]
12795
12795
  ],
12796
12796
  functionName: "resolveWithGateways",
12797
12797
  blockNumber: n,
@@ -12850,7 +12850,7 @@ async function Yx(e, t) {
12850
12850
  const d = {
12851
12851
  address: l,
12852
12852
  abi: fx,
12853
- args: [n, a, o ?? [ki]],
12853
+ args: [n, a, o ?? [Ci]],
12854
12854
  functionName: "reverseWithGateways",
12855
12855
  blockNumber: r,
12856
12856
  blockTag: s
@@ -12935,7 +12935,7 @@ async function nm(e, t) {
12935
12935
  }
12936
12936
  }
12937
12937
  async function t8(e) {
12938
- const t = ai(e, {
12938
+ const t = oi(e, {
12939
12939
  method: "eth_newBlockFilter"
12940
12940
  }), n = await e.request({
12941
12941
  method: "eth_newBlockFilter"
@@ -12943,7 +12943,7 @@ async function t8(e) {
12943
12943
  return { id: n, request: t(n), type: "block" };
12944
12944
  }
12945
12945
  async function rm(e, { address: t, args: n, event: r, events: s, fromBlock: a, strict: o, toBlock: i } = {}) {
12946
- const c = s ?? (r ? [r] : void 0), l = ai(e, {
12946
+ const c = s ?? (r ? [r] : void 0), l = oi(e, {
12947
12947
  method: "eth_newFilter"
12948
12948
  });
12949
12949
  let d = [];
@@ -12976,7 +12976,7 @@ async function rm(e, { address: t, args: n, event: r, events: s, fromBlock: a, s
12976
12976
  };
12977
12977
  }
12978
12978
  async function sm(e) {
12979
- const t = ai(e, {
12979
+ const t = oi(e, {
12980
12980
  method: "eth_newPendingTransactionFilter"
12981
12981
  }), n = await e.request({
12982
12982
  method: "eth_newPendingTransactionFilter"
@@ -13007,7 +13007,7 @@ async function s8(e, { blockHash: t, blockNumber: n, blockTag: r = "latest" } =
13007
13007
  params: [s || r]
13008
13008
  }, { dedupe: !!s }), it(a);
13009
13009
  }
13010
- async function Ko(e, { address: t, blockNumber: n, blockTag: r = "latest" }) {
13010
+ async function Wo(e, { address: t, blockNumber: n, blockTag: r = "latest" }) {
13011
13011
  const s = n !== void 0 ? H(n) : void 0, a = await e.request({
13012
13012
  method: "eth_getCode",
13013
13013
  params: [t, s || r]
@@ -13180,7 +13180,7 @@ function Ma(e) {
13180
13180
  }
13181
13181
  return t;
13182
13182
  }
13183
- function Wo(e, t) {
13183
+ function Zo(e, t) {
13184
13184
  const n = Yl(e);
13185
13185
  return n === "eip1559" ? y8(e, t) : n === "eip2930" ? x8(e, t) : n === "eip4844" ? b8(e, t) : n === "eip7702" ? h8(e, t) : g8(e, t);
13186
13186
  }
@@ -13348,19 +13348,19 @@ function w8(e) {
13348
13348
  return t;
13349
13349
  }
13350
13350
  async function E8({ address: e, authorization: t, signature: n }) {
13351
- return Ba(Dl(e), await ii({
13351
+ return Ba(Dl(e), await ci({
13352
13352
  authorization: t,
13353
13353
  signature: n
13354
13354
  }));
13355
13355
  }
13356
- const eo = /* @__PURE__ */ new ps(8192);
13356
+ const to = /* @__PURE__ */ new ps(8192);
13357
13357
  function k8(e, { enabled: t = !0, id: n }) {
13358
13358
  if (!t || !n)
13359
13359
  return e();
13360
- if (eo.get(n))
13361
- return eo.get(n);
13362
- const r = e().finally(() => eo.delete(n));
13363
- return eo.set(n, r), r;
13360
+ if (to.get(n))
13361
+ return to.get(n);
13362
+ const r = e().finally(() => to.delete(n));
13363
+ return to.set(n, r), r;
13364
13364
  }
13365
13365
  function C8(e, t = {}) {
13366
13366
  return async (n, r = {}) => {
@@ -13378,7 +13378,7 @@ function C8(e, t = {}) {
13378
13378
  method: l
13379
13379
  });
13380
13380
  const d = s ? rs(`${c}.${Ie(n)}`) : void 0;
13381
- return k8(() => qo(async () => {
13381
+ return k8(() => Ko(async () => {
13382
13382
  try {
13383
13383
  return await e(n);
13384
13384
  } catch (f) {
@@ -13960,7 +13960,7 @@ let X8 = class extends K {
13960
13960
  super(`Value \`${t}\` is an invalid public key size.`, {
13961
13961
  metaMessages: [
13962
13962
  "Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",
13963
- `Received ${Te(hi(t))} bytes.`
13963
+ `Received ${Te(bi(t))} bytes.`
13964
13964
  ]
13965
13965
  }), Object.defineProperty(this, "name", {
13966
13966
  enumerable: !0,
@@ -14002,14 +14002,14 @@ function J8(e, t = {}) {
14002
14002
  const { checksum: n = !1 } = t;
14003
14003
  return It(e), n ? Eu(e) : e;
14004
14004
  }
14005
- function Mo(e, t = {}) {
14005
+ function Ro(e, t = {}) {
14006
14006
  const n = Ra(`0x${wu(e).slice(4)}`).substring(26);
14007
14007
  return J8(`0x${n}`, t);
14008
14008
  }
14009
14009
  function cl(e, t) {
14010
14010
  return It(e, { strict: !1 }), It(t, { strict: !1 }), e.toLowerCase() === t.toLowerCase();
14011
14011
  }
14012
- function Zo(e, t = {}) {
14012
+ function Xo(e, t = {}) {
14013
14013
  const { strict: n = !0 } = t ?? {};
14014
14014
  try {
14015
14015
  return It(e, { strict: n }), !0;
@@ -14791,7 +14791,7 @@ function wm(e) {
14791
14791
  class Em extends Il {
14792
14792
  constructor(t, n) {
14793
14793
  super(), this.finished = !1, this.destroyed = !1, V6(t);
14794
- const r = ni(n);
14794
+ const r = ri(n);
14795
14795
  if (this.iHash = t.create(), typeof this.iHash.update != "function")
14796
14796
  throw new Error("Expected instance of class which extends utils.Hash");
14797
14797
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
@@ -14929,7 +14929,7 @@ function _3(e) {
14929
14929
  BYTES: "isSafeInteger",
14930
14930
  BITS: "isSafeInteger"
14931
14931
  }, n = N3.reduce((r, s) => (r[s] = "function", r), t);
14932
- return fi(e, n);
14932
+ return mi(e, n);
14933
14933
  }
14934
14934
  function z3(e, t, n) {
14935
14935
  if (n < et)
@@ -14970,7 +14970,7 @@ function xs(e, t, n = !1, r = {}) {
14970
14970
  isLE: n,
14971
14971
  BITS: s,
14972
14972
  BYTES: a,
14973
- MASK: pi(s),
14973
+ MASK: fi(s),
14974
14974
  ZERO: et,
14975
14975
  ONE: Ke,
14976
14976
  create: (c) => Ye(c, e),
@@ -15039,7 +15039,7 @@ function Im(e, t) {
15039
15039
  }
15040
15040
  function rc(e, t) {
15041
15041
  Im(e, t);
15042
- const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), s = 2 ** e, a = pi(e), o = BigInt(e);
15042
+ const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), s = 2 ** e, a = fi(e), o = BigInt(e);
15043
15043
  return { windows: n, windowSize: r, mask: a, maxNumber: s, shiftBy: o };
15044
15044
  }
15045
15045
  function dp(e, t, n) {
@@ -15168,7 +15168,7 @@ function j3(e, t, n, r) {
15168
15168
  const o = e.ZERO, i = M5(BigInt(s));
15169
15169
  let c = 1;
15170
15170
  i > 12 ? c = i - 3 : i > 4 ? c = i - 2 : i > 0 && (c = 2);
15171
- const l = pi(c), d = new Array(Number(l) + 1).fill(o), p = Math.floor((t.BITS - 1) / c) * c;
15171
+ const l = fi(c), d = new Array(Number(l) + 1).fill(o), p = Math.floor((t.BITS - 1) / c) * c;
15172
15172
  let f = o;
15173
15173
  for (let m = p; m >= 0; m -= c) {
15174
15174
  d.fill(o);
@@ -15186,7 +15186,7 @@ function j3(e, t, n, r) {
15186
15186
  return f;
15187
15187
  }
15188
15188
  function Dm(e) {
15189
- return _3(e.Fp), fi(e, {
15189
+ return _3(e.Fp), mi(e, {
15190
15190
  n: "bigint",
15191
15191
  h: "bigint",
15192
15192
  Gx: "field",
@@ -15206,7 +15206,7 @@ function pp(e) {
15206
15206
  }
15207
15207
  function V3(e) {
15208
15208
  const t = Dm(e);
15209
- fi(t, {
15209
+ mi(t, {
15210
15210
  a: "field",
15211
15211
  b: "field"
15212
15212
  }, {
@@ -15243,11 +15243,11 @@ const tn = {
15243
15243
  throw new n("tlv.encode: wrong tag");
15244
15244
  if (t.length & 1)
15245
15245
  throw new n("tlv.encode: unpadded data");
15246
- const r = t.length / 2, s = Xa(r);
15246
+ const r = t.length / 2, s = Qa(r);
15247
15247
  if (s.length / 2 & 128)
15248
15248
  throw new n("tlv.encode: long form length too big");
15249
- const a = r > 127 ? Xa(s.length / 2 | 128) : "";
15250
- return Xa(e) + a + s + t;
15249
+ const a = r > 127 ? Qa(s.length / 2 | 128) : "";
15250
+ return Qa(e) + a + s + t;
15251
15251
  },
15252
15252
  // v - value, l - left bytes (unparsed)
15253
15253
  decode(e, t) {
@@ -15292,7 +15292,7 @@ const tn = {
15292
15292
  const { Err: t } = tn;
15293
15293
  if (e < on)
15294
15294
  throw new t("integer: negative integers are not allowed");
15295
- let n = Xa(e);
15295
+ let n = Qa(e);
15296
15296
  if (Number.parseInt(n[0], 16) & 8 && (n = "00" + n), n.length & 1)
15297
15297
  throw new t("unexpected DER parsing assertion: unpadded hex");
15298
15298
  return n;
@@ -15329,7 +15329,7 @@ const ic = BigInt(3), K3 = BigInt(4);
15329
15329
  function W3(e) {
15330
15330
  const t = V3(e), { Fp: n } = t, r = xs(t.n, t.nBitLength), s = t.toBytes || ((U, k, O) => {
15331
15331
  const N = k.toAffine();
15332
- return jo(Uint8Array.from([4]), n.toBytes(N.x), n.toBytes(N.y));
15332
+ return Vo(Uint8Array.from([4]), n.toBytes(N.x), n.toBytes(N.y));
15333
15333
  }), a = t.fromBytes || ((U) => {
15334
15334
  const k = U.subarray(1), O = n.fromBytes(k.subarray(0, n.BYTES)), N = n.fromBytes(k.subarray(n.BYTES, 2 * n.BYTES));
15335
15335
  return { x: O, y: N };
@@ -15599,7 +15599,7 @@ function W3(e) {
15599
15599
  }
15600
15600
  function Z3(e) {
15601
15601
  const t = Dm(e);
15602
- return fi(t, {
15602
+ return mi(t, {
15603
15603
  hash: "hash",
15604
15604
  hmac: "function",
15605
15605
  randomBytes: "function"
@@ -15620,7 +15620,7 @@ function X3(e) {
15620
15620
  const { ProjectivePoint: d, normPrivateKeyToScalar: p, weierstrassEquation: f, isWithinCurveOrder: m } = W3({
15621
15621
  ...t,
15622
15622
  toBytes(w, A, F) {
15623
- const S = A.toAffine(), M = n.toBytes(S.x), L = jo;
15623
+ const S = A.toAffine(), M = n.toBytes(S.x), L = Vo;
15624
15624
  return ia("isCompressed", F), F ? L(Uint8Array.from([A.hasEvenY() ? 2 : 3]), M) : L(Uint8Array.from([4]), M, n.toBytes(S.y));
15625
15625
  },
15626
15626
  fromBytes(w) {
@@ -15701,14 +15701,14 @@ function X3(e) {
15701
15701
  }
15702
15702
  // DER-encoded
15703
15703
  toDERRawBytes() {
15704
- return Go(this.toDERHex());
15704
+ return jo(this.toDERHex());
15705
15705
  }
15706
15706
  toDERHex() {
15707
15707
  return tn.hexFromSig(this);
15708
15708
  }
15709
15709
  // padded bytes of r, then padded bytes of s
15710
15710
  toCompactRawBytes() {
15711
- return Go(this.toCompactHex());
15711
+ return jo(this.toCompactHex());
15712
15712
  }
15713
15713
  toCompactHex() {
15714
15714
  const A = s;
@@ -15770,7 +15770,7 @@ function X3(e) {
15770
15770
  return F > 0 ? A >> BigInt(F) : A;
15771
15771
  }, R = t.bits2int_modN || function(w) {
15772
15772
  return c(N(w));
15773
- }, h = pi(a);
15773
+ }, h = fi(a);
15774
15774
  function b(w) {
15775
15775
  return zr("num < 2^" + a, w, on, h), Ia(w, s);
15776
15776
  }
@@ -15785,7 +15785,7 @@ function X3(e) {
15785
15785
  const Et = Q === !0 ? M(n.BYTES) : Q;
15786
15786
  J.push(bt("extraEntropy", Et));
15787
15787
  }
15788
- const Y = jo(...J), he = se;
15788
+ const Y = Vo(...J), he = se;
15789
15789
  function gn(Et) {
15790
15790
  const Mt = N(Et);
15791
15791
  if (!m(Mt))
@@ -15796,8 +15796,8 @@ function X3(e) {
15796
15796
  const Ce = c(We * c(he + Se * ie));
15797
15797
  if (Ce === on)
15798
15798
  return;
15799
- let pe = (kt.x === Se ? 0 : 2) | Number(kt.y & Oe), Ar = Ce;
15800
- return L && y(Ce) && (Ar = g(Ce), pe ^= 1), new B(Se, Ar, pe);
15799
+ let fe = (kt.x === Se ? 0 : 2) | Number(kt.y & Oe), Ar = Ce;
15800
+ return L && y(Ce) && (Ar = g(Ce), fe ^= 1), new B(Se, Ar, fe);
15801
15801
  }
15802
15802
  return { seed: Y, k2sig: gn };
15803
15803
  }
@@ -15808,7 +15808,7 @@ function X3(e) {
15808
15808
  }
15809
15809
  d.BASE._setWindowSize(8);
15810
15810
  function D(w, A, F, S = E) {
15811
- var pe;
15811
+ var fe;
15812
15812
  const M = w;
15813
15813
  A = bt("msgHash", A), F = bt("publicKey", F);
15814
15814
  const { lowS: L, prehash: G, format: Q } = S;
@@ -15837,7 +15837,7 @@ function X3(e) {
15837
15837
  if (!J || L && J.hasHighS())
15838
15838
  return !1;
15839
15839
  G && (A = t.hash(A));
15840
- const { r: he, s: gn } = J, Et = R(A), Mt = l(gn), We = c(Et * Mt), kt = c(he * Mt), Se = (pe = d.BASE.multiplyAndAddUnsafe(Y, We, kt)) == null ? void 0 : pe.toAffine();
15840
+ const { r: he, s: gn } = J, Et = R(A), Mt = l(gn), We = c(Et * Mt), kt = c(he * Mt), Se = (fe = d.BASE.multiplyAndAddUnsafe(Y, We, kt)) == null ? void 0 : fe.toAffine();
15841
15841
  return Se ? c(Se.x) === he : !1;
15842
15842
  }
15843
15843
  return {
@@ -15859,7 +15859,7 @@ function Q3(e) {
15859
15859
  randomBytes: J6
15860
15860
  };
15861
15861
  }
15862
- function Ci(e, t) {
15862
+ function vi(e, t) {
15863
15863
  const n = (r) => X3({ ...e, ...Q3(r) });
15864
15864
  return { ...n(t), create: n };
15865
15865
  }
@@ -15871,7 +15871,7 @@ function eg(e) {
15871
15871
  throw new Error("Cannot find square root");
15872
15872
  return N;
15873
15873
  }
15874
- const ml = xs(Om, void 0, void 0, { sqrt: eg }), Na = Ci({
15874
+ const ml = xs(Om, void 0, void 0, { sqrt: eg }), Na = vi({
15875
15875
  a: J3,
15876
15876
  b: BigInt(7),
15877
15877
  Fp: ml,
@@ -15897,7 +15897,7 @@ const ml = xs(Om, void 0, void 0, { sqrt: eg }), Na = Ci({
15897
15897
  __proto__: null,
15898
15898
  secp256k1: Na
15899
15899
  }, Symbol.toStringTag, { value: "Module" }));
15900
- function vi(e, t = {}) {
15900
+ function Ai(e, t = {}) {
15901
15901
  const { recovered: n } = t;
15902
15902
  if (typeof e.r > "u")
15903
15903
  throw new cc({ signature: e });
@@ -15910,7 +15910,7 @@ function vi(e, t = {}) {
15910
15910
  if (e.s < 0n || e.s > ap)
15911
15911
  throw new lg({ value: e.s });
15912
15912
  if (typeof e.yParity == "number" && e.yParity !== 0 && e.yParity !== 1)
15913
- throw new Ti({ value: e.yParity });
15913
+ throw new Si({ value: e.yParity });
15914
15914
  }
15915
15915
  function ng(e) {
15916
15916
  return Pu(Me(e));
@@ -15924,7 +15924,7 @@ function Pu(e) {
15924
15924
  try {
15925
15925
  return Uu(s);
15926
15926
  } catch {
15927
- throw new Ti({ value: s });
15927
+ throw new Si({ value: s });
15928
15928
  }
15929
15929
  })();
15930
15930
  return typeof r > "u" ? {
@@ -15938,15 +15938,15 @@ function Pu(e) {
15938
15938
  }
15939
15939
  function Mm(e) {
15940
15940
  if (!(typeof e.r > "u") && !(typeof e.s > "u"))
15941
- return Ai(e);
15941
+ return Ti(e);
15942
15942
  }
15943
- function Ai(e) {
15943
+ function Ti(e) {
15944
15944
  const t = typeof e == "string" ? Pu(e) : e instanceof Uint8Array ? ng(e) : typeof e.r == "string" ? Bu(e) : e.v ? rg(e) : {
15945
15945
  r: e.r,
15946
15946
  s: e.s,
15947
15947
  ...typeof e.yParity < "u" ? { yParity: e.yParity } : {}
15948
15948
  };
15949
- return vi(t), t;
15949
+ return Ai(t), t;
15950
15950
  }
15951
15951
  function rg(e) {
15952
15952
  return {
@@ -15960,7 +15960,7 @@ function Bu(e) {
15960
15960
  const n = e.v ? Number(e.v) : void 0;
15961
15961
  let r = e.yParity ? Number(e.yParity) : void 0;
15962
15962
  if (typeof n == "number" && typeof r != "number" && (r = Uu(n)), typeof r != "number")
15963
- throw new Ti({ value: e.yParity });
15963
+ throw new Si({ value: e.yParity });
15964
15964
  return r;
15965
15965
  })();
15966
15966
  return {
@@ -15971,14 +15971,14 @@ function Bu(e) {
15971
15971
  }
15972
15972
  function sg(e) {
15973
15973
  const [t, n, r] = e;
15974
- return Ai({
15974
+ return Ti({
15975
15975
  r: n === "0x" ? 0n : BigInt(n),
15976
15976
  s: r === "0x" ? 0n : BigInt(r),
15977
15977
  yParity: t === "0x" ? 0 : Number(t)
15978
15978
  });
15979
15979
  }
15980
15980
  function ag(e) {
15981
- vi(e);
15981
+ Ai(e);
15982
15982
  const t = e.r, n = e.s;
15983
15983
  return Ee(
15984
15984
  j(t, { size: 32 }),
@@ -16017,14 +16017,14 @@ function Iu(e) {
16017
16017
  return 27;
16018
16018
  if (e === 1)
16019
16019
  return 28;
16020
- throw new Ti({ value: e });
16020
+ throw new Si({ value: e });
16021
16021
  }
16022
16022
  class ig extends K {
16023
16023
  constructor({ signature: t }) {
16024
16024
  super(`Value \`${t}\` is an invalid signature size.`, {
16025
16025
  metaMessages: [
16026
16026
  "Expected: 64 bytes or 65 bytes.",
16027
- `Received ${Te(hi(t))} bytes.`
16027
+ `Received ${Te(bi(t))} bytes.`
16028
16028
  ]
16029
16029
  }), Object.defineProperty(this, "name", {
16030
16030
  enumerable: !0,
@@ -16064,7 +16064,7 @@ class lg extends K {
16064
16064
  });
16065
16065
  }
16066
16066
  }
16067
- class Ti extends K {
16067
+ class Si extends K {
16068
16068
  constructor({ value: t }) {
16069
16069
  super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`), Object.defineProperty(this, "name", {
16070
16070
  enumerable: !0,
@@ -16112,10 +16112,10 @@ function mg(e) {
16112
16112
  return e.map(fg);
16113
16113
  }
16114
16114
  function _m(e) {
16115
- return Mo(hg(e));
16115
+ return Ro(hg(e));
16116
16116
  }
16117
16117
  function hg(e) {
16118
- const { payload: t, signature: n } = e, { r, s, yParity: a } = n, i = new Na.Signature(BigInt(r), BigInt(s)).addRecoveryBit(a).recoverPublicKey(hi(t).substring(2));
16118
+ const { payload: t, signature: n } = e, { r, s, yParity: a } = n, i = new Na.Signature(BigInt(r), BigInt(s)).addRecoveryBit(a).recoverPublicKey(bi(t).substring(2));
16119
16119
  return j8(i);
16120
16120
  }
16121
16121
  function bg(e) {
@@ -16128,7 +16128,7 @@ function zm(e) {
16128
16128
  if (oe(e, -32) !== yg)
16129
16129
  throw new Eg(e);
16130
16130
  } else
16131
- vi(e.authorization);
16131
+ Ai(e.authorization);
16132
16132
  }
16133
16133
  function gg(e) {
16134
16134
  zm(e);
@@ -16249,7 +16249,7 @@ async function Pg(e, { hash: t, transactionReceipt: n }) {
16249
16249
  ]), a = (n == null ? void 0 : n.blockNumber) || (s == null ? void 0 : s.blockNumber);
16250
16250
  return a ? r - a + 1n : 0n;
16251
16251
  }
16252
- async function Ro(e, { hash: t }) {
16252
+ async function No(e, { hash: t }) {
16253
16253
  var s, a, o;
16254
16254
  const n = await e.request({
16255
16255
  method: "eth_getTransactionReceipt",
@@ -16257,7 +16257,7 @@ async function Ro(e, { hash: t }) {
16257
16257
  }, { dedupe: !0 });
16258
16258
  if (!n)
16259
16259
  throw new X0({ hash: t });
16260
- return (((o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionReceipt) == null ? void 0 : o.format) || Ei)(n, "getTransactionReceipt");
16260
+ return (((o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionReceipt) == null ? void 0 : o.format) || ki)(n, "getTransactionReceipt");
16261
16261
  }
16262
16262
  async function Bg(e, t) {
16263
16263
  var v;
@@ -16313,7 +16313,7 @@ async function Bg(e, t) {
16313
16313
  }
16314
16314
  const P = await Promise.allSettled(m.map((U) => q(e, Ut, "readContract")({
16315
16315
  ...f === null ? { code: lu } : { address: f },
16316
- abi: Vo,
16316
+ abi: qo,
16317
16317
  account: n,
16318
16318
  args: [U],
16319
16319
  authorizationList: r,
@@ -16343,7 +16343,7 @@ async function Bg(e, t) {
16343
16343
  if (b === "0x")
16344
16344
  throw new Ea();
16345
16345
  if (!h)
16346
- throw new oi({ data: R });
16346
+ throw new ii({ data: R });
16347
16347
  const D = kr({
16348
16348
  abi: x,
16349
16349
  args: T,
@@ -16409,7 +16409,7 @@ async function hl(e, t) {
16409
16409
  if (R === "success")
16410
16410
  return;
16411
16411
  let E;
16412
- if (((T = y.error) == null ? void 0 : T.data) === "0x" ? E = new Ea() : y.error && (E = new oi(y.error)), !!E)
16412
+ if (((T = y.error) == null ? void 0 : T.data) === "0x" ? E = new Ea() : y.error && (E = new ii(y.error)), !!E)
16413
16413
  return pr(E, {
16414
16414
  abi: P ?? [],
16415
16415
  address: U ?? "0x",
@@ -16431,7 +16431,7 @@ async function hl(e, t) {
16431
16431
  })
16432
16432
  }));
16433
16433
  } catch (c) {
16434
- const l = c, d = ci(l, {});
16434
+ const l = c, d = li(l, {});
16435
16435
  throw d instanceof Sa ? l : d;
16436
16436
  }
16437
16437
  }
@@ -16464,7 +16464,7 @@ function yl(e, t) {
16464
16464
  const n = typeof e, r = t.type;
16465
16465
  switch (r) {
16466
16466
  case "address":
16467
- return Zo(e, { strict: !1 });
16467
+ return Xo(e, { strict: !1 });
16468
16468
  case "bool":
16469
16469
  return n === "boolean";
16470
16470
  case "function":
@@ -16485,9 +16485,9 @@ function Lm(e, t, n) {
16485
16485
  if (s.type === "tuple" && a.type === "tuple" && "components" in s && "components" in a)
16486
16486
  return Lm(s.components, a.components, n[r]);
16487
16487
  const o = [s.type, a.type];
16488
- if (o.includes("address") && o.includes("bytes20") ? !0 : o.includes("address") && o.includes("string") ? Zo(n[r], {
16488
+ if (o.includes("address") && o.includes("bytes20") ? !0 : o.includes("address") && o.includes("string") ? Xo(n[r], {
16489
16489
  strict: !1
16490
- }) : o.includes("address") && o.includes("bytes") ? Zo(n[r], {
16490
+ }) : o.includes("address") && o.includes("bytes") ? Xo(n[r], {
16491
16491
  strict: !1
16492
16492
  }) : !1)
16493
16493
  return o;
@@ -16500,10 +16500,10 @@ function $m(e, t = {}) {
16500
16500
  ...n ? { hash: Rr(r) } : {}
16501
16501
  };
16502
16502
  }
16503
- function Si(e, t, n) {
16503
+ function Pi(e, t, n) {
16504
16504
  const { args: r = [], prepare: s = !0 } = n ?? {}, a = At(t, { strict: !1 }), o = e.filter((l) => a ? l.type === "function" || l.type === "error" ? Hm(l) === oe(t, 0, 4) : l.type === "event" ? Rr(l) === t : !1 : "name" in l && l.name === t);
16505
16505
  if (o.length === 0)
16506
- throw new Xo({ name: t });
16506
+ throw new Qo({ name: t });
16507
16507
  if (o.length === 1)
16508
16508
  return {
16509
16509
  ...o[0],
@@ -16548,7 +16548,7 @@ function Si(e, t, n) {
16548
16548
  return { ...l, overloads: d };
16549
16549
  })();
16550
16550
  if (!c)
16551
- throw new Xo({ name: t });
16551
+ throw new Qo({ name: t });
16552
16552
  return {
16553
16553
  ...c,
16554
16554
  ...s ? { hash: Rr(c) } : {}
@@ -16558,7 +16558,7 @@ function Hm(...e) {
16558
16558
  const t = (() => {
16559
16559
  if (Array.isArray(e[0])) {
16560
16560
  const [n, r] = e;
16561
- return Si(n, r);
16561
+ return Pi(n, r);
16562
16562
  }
16563
16563
  return e[0];
16564
16564
  })();
@@ -16568,17 +16568,17 @@ function Ug(...e) {
16568
16568
  const t = (() => {
16569
16569
  if (Array.isArray(e[0])) {
16570
16570
  const [r, s] = e;
16571
- return Si(r, s);
16571
+ return Pi(r, s);
16572
16572
  }
16573
16573
  return e[0];
16574
- })(), n = typeof t == "string" ? t : Lo(t);
16574
+ })(), n = typeof t == "string" ? t : $o(t);
16575
16575
  return bl(n);
16576
16576
  }
16577
16577
  function Rr(...e) {
16578
16578
  const t = (() => {
16579
16579
  if (Array.isArray(e[0])) {
16580
16580
  const [n, r] = e;
16581
- return Si(n, r);
16581
+ return Pi(n, r);
16582
16582
  }
16583
16583
  return e[0];
16584
16584
  })();
@@ -16589,8 +16589,8 @@ class Ig extends K {
16589
16589
  super("Found ambiguous types in overloaded ABI Items.", {
16590
16590
  metaMessages: [
16591
16591
  // TODO: abitype to add support for signature-formatted ABI items.
16592
- `\`${t.type}\` in \`${bl(Lo(t.abiItem))}\`, and`,
16593
- `\`${n.type}\` in \`${bl(Lo(n.abiItem))}\``,
16592
+ `\`${t.type}\` in \`${bl($o(t.abiItem))}\`, and`,
16593
+ `\`${n.type}\` in \`${bl($o(n.abiItem))}\``,
16594
16594
  "",
16595
16595
  "These types encode differently and cannot be distinguished at runtime.",
16596
16596
  "Remove one of the ambiguous items in the ABI."
@@ -16603,7 +16603,7 @@ class Ig extends K {
16603
16603
  });
16604
16604
  }
16605
16605
  }
16606
- class Xo extends K {
16606
+ class Qo extends K {
16607
16607
  constructor({ name: t, data: n, type: r = "item" }) {
16608
16608
  const s = t ? ` with name "${t}"` : n ? ` with data "${n}"` : "";
16609
16609
  super(`ABI ${r}${s} not found.`), Object.defineProperty(this, "name", {
@@ -16631,7 +16631,7 @@ function Dg(e) {
16631
16631
  function Og(e) {
16632
16632
  const t = e.find((n) => n.type === "constructor");
16633
16633
  if (!t)
16634
- throw new Xo({ name: "constructor" });
16634
+ throw new Qo({ name: "constructor" });
16635
16635
  return t;
16636
16636
  }
16637
16637
  function Mg(...e) {
@@ -16651,9 +16651,9 @@ function Br(e, t = {}) {
16651
16651
  return $m(e, t);
16652
16652
  }
16653
16653
  function hp(e, t, n) {
16654
- const r = Si(e, t, n);
16654
+ const r = Pi(e, t, n);
16655
16655
  if (r.type !== "function")
16656
- throw new Xo({ name: t, type: "function" });
16656
+ throw new Qo({ name: t, type: "function" });
16657
16657
  return r;
16658
16658
  }
16659
16659
  function Rg(e) {
@@ -16899,7 +16899,7 @@ async function _a(e, t) {
16899
16899
  async function Vg(e, t) {
16900
16900
  var P;
16901
16901
  const { address: n, blockNumber: r, blockTag: s, hash: a, multicallAddress: o } = t, { authorization: i, data: c, signature: l, to: d } = gg(t.signature);
16902
- if (await Ko(e, {
16902
+ if (await Wo(e, {
16903
16903
  address: n,
16904
16904
  blockNumber: r,
16905
16905
  blockTag: s
@@ -16927,7 +16927,7 @@ async function Vg(e, t) {
16927
16927
  const y = await q(e, Ut, "readContract")({
16928
16928
  ...o ? { address: o } : { code: lu },
16929
16929
  authorizationList: [f],
16930
- abi: Vo,
16930
+ abi: qo,
16931
16931
  blockNumber: r,
16932
16932
  blockTag: "pending",
16933
16933
  functionName: "aggregate3",
@@ -16970,13 +16970,13 @@ async function qg(e, t) {
16970
16970
  }),
16971
16971
  ...c
16972
16972
  } : {
16973
- data: bi({
16973
+ data: yi({
16974
16974
  abi: Jd,
16975
16975
  args: [n, a, l],
16976
16976
  bytecode: bx
16977
16977
  }),
16978
16978
  ...c
16979
- }, { data: p } = await q(e, yi, "call")(d).catch((f) => {
16979
+ }, { data: p } = await q(e, xi, "call")(d).catch((f) => {
16980
16980
  throw f instanceof J0 ? new br() : f;
16981
16981
  });
16982
16982
  if (S6(p ?? "0x0"))
@@ -17110,7 +17110,7 @@ async function Vm(e, t) {
17110
17110
  P == null || P(), g == null || g(), U(new W2({ hash: s }));
17111
17111
  }, c) : void 0;
17112
17112
  return g = mn(l, { onReplaced: a, resolve: v, reject: U }, async (O) => {
17113
- if (m = await q(e, Ro, "getTransactionReceipt")({ hash: s }).catch(() => {
17113
+ if (m = await q(e, No, "getTransactionReceipt")({ hash: s }).catch(() => {
17114
17114
  }), m && r <= 1) {
17115
17115
  clearTimeout(k), O.resolve(m), g == null || g();
17116
17116
  return;
@@ -17133,12 +17133,12 @@ async function Vm(e, t) {
17133
17133
  R(() => O.resolve(m));
17134
17134
  return;
17135
17135
  }
17136
- if (n && !p && (y = !0, await qo(async () => {
17136
+ if (n && !p && (y = !0, await Ko(async () => {
17137
17137
  p = await q(e, Fu, "getTransaction")({ hash: s }), p.blockNumber && (h = p.blockNumber);
17138
17138
  }, {
17139
17139
  delay: i,
17140
17140
  retryCount: o
17141
- }), y = !1), m = await q(e, Ro, "getTransactionReceipt")({ hash: s }), r > 1 && (!m.blockNumber || h - m.blockNumber + 1n < r))
17141
+ }), y = !1), m = await q(e, No, "getTransactionReceipt")({ hash: s }), r > 1 && (!m.blockNumber || h - m.blockNumber + 1n < r))
17142
17142
  return;
17143
17143
  R(() => O.resolve(m));
17144
17144
  } catch (b) {
@@ -17149,7 +17149,7 @@ async function Vm(e, t) {
17149
17149
  }
17150
17150
  try {
17151
17151
  f = p, y = !0;
17152
- const x = await qo(() => q(e, Pt, "getBlock")({
17152
+ const x = await Ko(() => q(e, Pt, "getBlock")({
17153
17153
  blockNumber: h,
17154
17154
  includeTransactions: !0
17155
17155
  }), {
@@ -17159,7 +17159,7 @@ async function Vm(e, t) {
17159
17159
  });
17160
17160
  y = !1;
17161
17161
  const C = x.transactions.find(({ from: T, nonce: D }) => T === f.from && D === f.nonce);
17162
- if (!C || (m = await q(e, Ro, "getTransactionReceipt")({
17162
+ if (!C || (m = await q(e, No, "getTransactionReceipt")({
17163
17163
  hash: C.hash
17164
17164
  }), r > 1 && (!m.blockNumber || h - m.blockNumber + 1n < r)))
17165
17165
  return;
@@ -17304,7 +17304,7 @@ function Qg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17304
17304
  try {
17305
17305
  let R;
17306
17306
  if (U)
17307
- R = await q(e, xi, "getFilterChanges")({ filter: U });
17307
+ R = await q(e, gi, "getFilterChanges")({ filter: U });
17308
17308
  else {
17309
17309
  const h = await q(e, Oa, "getBlockNumber")({});
17310
17310
  v && v !== h ? R = await q(e, su, "getLogs")({
@@ -17331,7 +17331,7 @@ function Qg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17331
17331
  interval: d
17332
17332
  });
17333
17333
  return async () => {
17334
- U && await q(e, gi, "uninstallFilter")({ filter: U }), O();
17334
+ U && await q(e, wi, "uninstallFilter")({ filter: U }), O();
17335
17335
  };
17336
17336
  });
17337
17337
  })() : (() => {
@@ -17359,7 +17359,7 @@ function Qg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17359
17359
  return;
17360
17360
  const R = N.result;
17361
17361
  try {
17362
- const { eventName: b, args: x } = Ho({
17362
+ const { eventName: b, args: x } = Go({
17363
17363
  abi: U ?? [],
17364
17364
  data: R.data,
17365
17365
  topics: R.topics,
@@ -17368,7 +17368,7 @@ function Qg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17368
17368
  c([C]);
17369
17369
  } catch (b) {
17370
17370
  let x, C;
17371
- if (b instanceof $o || b instanceof Ul) {
17371
+ if (b instanceof Ho || b instanceof Ul) {
17372
17372
  if (p)
17373
17373
  return;
17374
17374
  x = b.abiItem.name, C = (h = b.abiItem.inputs) == null ? void 0 : h.some((T) => !("name" in T && T.name));
@@ -17411,7 +17411,7 @@ function Jg(e, { batch: t = !0, onError: n, onTransactions: r, poll: s, pollingI
17411
17411
  } catch (g) {
17412
17412
  throw f(), g;
17413
17413
  }
17414
- const y = await q(e, xi, "getFilterChanges")({ filter: p });
17414
+ const y = await q(e, gi, "getFilterChanges")({ filter: p });
17415
17415
  if (y.length === 0)
17416
17416
  return;
17417
17417
  if (t)
@@ -17427,7 +17427,7 @@ function Jg(e, { batch: t = !0, onError: n, onTransactions: r, poll: s, pollingI
17427
17427
  interval: a
17428
17428
  });
17429
17429
  return async () => {
17430
- p && await q(e, gi, "uninstallFilter")({ filter: p }), f();
17430
+ p && await q(e, wi, "uninstallFilter")({ filter: p }), f();
17431
17431
  };
17432
17432
  });
17433
17433
  })() : (() => {
@@ -17507,14 +17507,14 @@ async function Du(e, { serializedTransaction: t, throwOnReceiptRevert: n, timeou
17507
17507
  const s = await e.request({
17508
17508
  method: "eth_sendRawTransactionSync",
17509
17509
  params: r ? [t, H(r)] : [t]
17510
- }, { retryCount: 0 }), o = (((l = (c = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : c.transactionReceipt) == null ? void 0 : l.format) || Ei)(s);
17510
+ }, { retryCount: 0 }), o = (((l = (c = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : c.transactionReceipt) == null ? void 0 : l.format) || ki)(s);
17511
17511
  if (o.status === "reverted" && n)
17512
17512
  throw new Q0({ receipt: o });
17513
17513
  return o;
17514
17514
  }
17515
17515
  function sw(e) {
17516
17516
  return {
17517
- call: (t) => yi(e, t),
17517
+ call: (t) => xi(e, t),
17518
17518
  createAccessList: (t) => nm(e, t),
17519
17519
  createBlockFilter: () => t8(e),
17520
17520
  createContractEventFilter: (t) => V0(e, t),
@@ -17527,9 +17527,9 @@ function sw(e) {
17527
17527
  getBlock: (t) => Pt(e, t),
17528
17528
  getBlockNumber: (t) => Oa(e, t),
17529
17529
  getBlockTransactionCount: (t) => s8(e, t),
17530
- getBytecode: (t) => Ko(e, t),
17530
+ getBytecode: (t) => Wo(e, t),
17531
17531
  getChainId: () => Ln(e),
17532
- getCode: (t) => Ko(e, t),
17532
+ getCode: (t) => Wo(e, t),
17533
17533
  getContractEvents: (t) => gf(e, t),
17534
17534
  getEip712Domain: (t) => o8(e, t),
17535
17535
  getEnsAddress: (t) => zx(e, t),
@@ -17539,7 +17539,7 @@ function sw(e) {
17539
17539
  getEnsText: (t) => tm(e, t),
17540
17540
  getFeeHistory: (t) => l8(e, t),
17541
17541
  estimateFeesPerGas: (t) => h5(e, t),
17542
- getFilterChanges: (t) => xi(e, t),
17542
+ getFilterChanges: (t) => gi(e, t),
17543
17543
  getFilterLogs: (t) => u8(e, t),
17544
17544
  getGasPrice: () => Kl(e),
17545
17545
  getLogs: (t) => su(e, t),
@@ -17550,7 +17550,7 @@ function sw(e) {
17550
17550
  getTransaction: (t) => Fu(e, t),
17551
17551
  getTransactionConfirmations: (t) => Pg(e, t),
17552
17552
  getTransactionCount: (t) => Wl(e, t),
17553
- getTransactionReceipt: (t) => Ro(e, t),
17553
+ getTransactionReceipt: (t) => No(e, t),
17554
17554
  multicall: (t) => Bg(e, t),
17555
17555
  prepareTransactionRequest: (t) => Pa(e, t),
17556
17556
  readContract: (t) => Ut(e, t),
@@ -17564,7 +17564,7 @@ function sw(e) {
17564
17564
  verifyMessage: (t) => Wg(e, t),
17565
17565
  verifySiweMessage: (t) => rw(e, t),
17566
17566
  verifyTypedData: (t) => Zg(e, t),
17567
- uninstallFilter: (t) => gi(e, t),
17567
+ uninstallFilter: (t) => wi(e, t),
17568
17568
  waitForTransactionReceipt: (t) => Vm(e, t),
17569
17569
  watchBlocks: (t) => Xg(e, t),
17570
17570
  watchBlockNumber: (t) => jm(e, t),
@@ -17598,8 +17598,8 @@ async function ow(e, { chain: t }) {
17598
17598
  }, { dedupe: !0, retryCount: 0 });
17599
17599
  }
17600
17600
  function iw(e, t) {
17601
- const { abi: n, args: r, bytecode: s, ...a } = t, o = bi({ abi: n, args: r, bytecode: s });
17602
- return wi(e, {
17601
+ const { abi: n, args: r, bytecode: s, ...a } = t, o = yi({ abi: n, args: r, bytecode: s });
17602
+ return Ei(e, {
17603
17603
  ...a,
17604
17604
  ...a.authorizationList ? { to: null } : {},
17605
17605
  data: o
@@ -17676,7 +17676,7 @@ async function Km(e, t) {
17676
17676
  if (t.to)
17677
17677
  return t.to;
17678
17678
  if (t.to !== null && a && a.length > 0)
17679
- return await ii({
17679
+ return await ci({
17680
17680
  authorization: a[0]
17681
17681
  }).catch(() => {
17682
17682
  throw new z("`to` is required. Could not infer from `authorizationList`.");
@@ -17775,7 +17775,7 @@ async function Km(e, t) {
17775
17775
  type: k == null ? void 0 : k.type
17776
17776
  });
17777
17777
  } catch (b) {
17778
- throw b instanceof ar ? b : di(b, {
17778
+ throw b instanceof ar ? b : pi(b, {
17779
17779
  ...t,
17780
17780
  account: k,
17781
17781
  chain: t.chain || void 0
@@ -17911,7 +17911,7 @@ function kw(e) {
17911
17911
  sendCallsSync: (t) => fw(e, t),
17912
17912
  sendRawTransaction: (t) => fu(e, t),
17913
17913
  sendRawTransactionSync: (t) => Du(e, t),
17914
- sendTransaction: (t) => wi(e, t),
17914
+ sendTransaction: (t) => Ei(e, t),
17915
17915
  sendTransactionSync: (t) => Km(e, t),
17916
17916
  showCallsStatus: (t) => mw(e, t),
17917
17917
  signAuthorization: (t) => hw(e, t),
@@ -18076,7 +18076,7 @@ function Bw(e) {
18076
18076
  function Xm(e) {
18077
18077
  return e ? e / 6e4 : 0;
18078
18078
  }
18079
- const sD = (e, t) => e ? fe.TWAP_MARKET : t === 1 ? fe.LIMIT : fe.TWAP_LIMIT, Qm = (e, t, n) => {
18079
+ const sD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, Qm = (e, t, n) => {
18080
18080
  const r = ls(n);
18081
18081
  return wa((e == null ? void 0 : e.address) || "") && ts((t == null ? void 0 : t.address) || "", (r == null ? void 0 : r.wToken.address) || "");
18082
18082
  }, Jm = (e, t, n) => {
@@ -18200,7 +18200,7 @@ const sD = (e, t) => e ? fe.TWAP_MARKET : t === 1 ? fe.LIMIT : fe.TWAP_LIMIT, Qm
18200
18200
  };
18201
18201
  }
18202
18202
  }),
18203
- transaction: /* @__PURE__ */ ui({
18203
+ transaction: /* @__PURE__ */ di({
18204
18204
  format(e) {
18205
18205
  const t = {};
18206
18206
  return e.type === "0x71" ? t.type = "eip712" : e.type === "0xff" && (t.type = "priority"), {
@@ -18300,7 +18300,7 @@ function th(e) {
18300
18300
  throw new z("`paymaster` must be provided when `paymasterInput` is defined");
18301
18301
  }
18302
18302
  function Nw(e, t) {
18303
- return eh(e) ? zw(e) : Wo(e, t);
18303
+ return eh(e) ? zw(e) : Zo(e, t);
18304
18304
  }
18305
18305
  const _w = {
18306
18306
  transaction: Nw
@@ -18691,7 +18691,7 @@ const dt = {
18691
18691
  };
18692
18692
  }
18693
18693
  }),
18694
- transaction: /* @__PURE__ */ ui({
18694
+ transaction: /* @__PURE__ */ di({
18695
18695
  format(e) {
18696
18696
  const t = {};
18697
18697
  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;
@@ -18709,7 +18709,7 @@ const dt = {
18709
18709
  })
18710
18710
  };
18711
18711
  function rh(e, t) {
18712
- return aE(e) ? sE(e) : Wo(e, t);
18712
+ return aE(e) ? sE(e) : Zo(e, t);
18713
18713
  }
18714
18714
  const rE = {
18715
18715
  transaction: rh
@@ -18746,7 +18746,7 @@ const $ = {
18746
18746
  contracts: nh,
18747
18747
  formatters: Mu,
18748
18748
  serializers: rE
18749
- }, to = 1, iE = /* @__PURE__ */ u({
18749
+ }, no = 1, iE = /* @__PURE__ */ u({
18750
18750
  ...$,
18751
18751
  id: 888888888,
18752
18752
  name: "Ancient8",
@@ -18766,25 +18766,25 @@ const $ = {
18766
18766
  contracts: {
18767
18767
  ...$.contracts,
18768
18768
  l2OutputOracle: {
18769
- [to]: {
18769
+ [no]: {
18770
18770
  address: "0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"
18771
18771
  }
18772
18772
  },
18773
18773
  portal: {
18774
- [to]: {
18774
+ [no]: {
18775
18775
  address: "0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",
18776
18776
  blockCreated: 19070571
18777
18777
  }
18778
18778
  },
18779
18779
  l1StandardBridge: {
18780
- [to]: {
18780
+ [no]: {
18781
18781
  address: "0xd5e3eDf5b68135D559D572E26bF863FBC1950033",
18782
18782
  blockCreated: 19070571
18783
18783
  }
18784
18784
  }
18785
18785
  },
18786
- sourceId: to
18787
- }), no = 11155111, cE = /* @__PURE__ */ u({
18786
+ sourceId: no
18787
+ }), ro = 11155111, cE = /* @__PURE__ */ u({
18788
18788
  ...$,
18789
18789
  id: 28122024,
18790
18790
  name: "Ancient8 Testnet",
@@ -18804,24 +18804,24 @@ const $ = {
18804
18804
  contracts: {
18805
18805
  ...$.contracts,
18806
18806
  l2OutputOracle: {
18807
- [no]: {
18807
+ [ro]: {
18808
18808
  address: "0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"
18809
18809
  }
18810
18810
  },
18811
18811
  portal: {
18812
- [no]: {
18812
+ [ro]: {
18813
18813
  address: "0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",
18814
18814
  blockCreated: 4972908
18815
18815
  }
18816
18816
  },
18817
18817
  l1StandardBridge: {
18818
- [no]: {
18818
+ [ro]: {
18819
18819
  address: "0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",
18820
18820
  blockCreated: 4972908
18821
18821
  }
18822
18822
  }
18823
18823
  },
18824
- sourceId: no
18824
+ sourceId: ro
18825
18825
  }), lE = /* @__PURE__ */ u({
18826
18826
  id: 31337,
18827
18827
  name: "Anvil",
@@ -19617,7 +19617,7 @@ const $ = {
19617
19617
  }
19618
19618
  },
19619
19619
  testnet: !0
19620
- }), ro = 5, VE = /* @__PURE__ */ u({
19620
+ }), so = 5, VE = /* @__PURE__ */ u({
19621
19621
  ...$,
19622
19622
  id: 84531,
19623
19623
  name: "Base Goerli",
@@ -19635,7 +19635,7 @@ const $ = {
19635
19635
  contracts: {
19636
19636
  ...$.contracts,
19637
19637
  l2OutputOracle: {
19638
- [ro]: {
19638
+ [so]: {
19639
19639
  address: "0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"
19640
19640
  }
19641
19641
  },
@@ -19644,18 +19644,18 @@ const $ = {
19644
19644
  blockCreated: 1376988
19645
19645
  },
19646
19646
  portal: {
19647
- [ro]: {
19647
+ [so]: {
19648
19648
  address: "0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"
19649
19649
  }
19650
19650
  },
19651
19651
  l1StandardBridge: {
19652
- [ro]: {
19652
+ [so]: {
19653
19653
  address: "0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"
19654
19654
  }
19655
19655
  }
19656
19656
  },
19657
19657
  testnet: !0,
19658
- sourceId: ro
19658
+ sourceId: so
19659
19659
  }), As = 11155111, ah = /* @__PURE__ */ u({
19660
19660
  ...$,
19661
19661
  id: 84532,
@@ -20131,7 +20131,7 @@ const $ = {
20131
20131
  }
20132
20132
  },
20133
20133
  testnet: !0
20134
- }), so = 1, p7 = /* @__PURE__ */ u({
20134
+ }), ao = 1, p7 = /* @__PURE__ */ u({
20135
20135
  ...$,
20136
20136
  id: 81457,
20137
20137
  name: "Blast",
@@ -20157,25 +20157,25 @@ const $ = {
20157
20157
  blockCreated: 212929
20158
20158
  },
20159
20159
  l2OutputOracle: {
20160
- [so]: {
20160
+ [ao]: {
20161
20161
  address: "0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",
20162
20162
  blockCreated: 19300358
20163
20163
  }
20164
20164
  },
20165
20165
  portal: {
20166
- [so]: {
20166
+ [ao]: {
20167
20167
  address: "0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",
20168
20168
  blockCreated: 19300357
20169
20169
  }
20170
20170
  },
20171
20171
  l1StandardBridge: {
20172
- [so]: {
20172
+ [ao]: {
20173
20173
  address: "0x697402166Fbf2F22E970df8a6486Ef171dbfc524",
20174
20174
  blockCreated: 19300360
20175
20175
  }
20176
20176
  }
20177
20177
  },
20178
- sourceId: so
20178
+ sourceId: ao
20179
20179
  }), f7 = 11155111, m7 = /* @__PURE__ */ u({
20180
20180
  id: 168587773,
20181
20181
  name: "Blast Sepolia",
@@ -20729,7 +20729,7 @@ const $7 = {
20729
20729
  };
20730
20730
  }
20731
20731
  }),
20732
- transaction: /* @__PURE__ */ ui({
20732
+ transaction: /* @__PURE__ */ di({
20733
20733
  format(e) {
20734
20734
  if (e.type === "0x7e")
20735
20735
  return {
@@ -20825,7 +20825,7 @@ const pa = {
20825
20825
  }
20826
20826
  },
20827
20827
  testnet: !1
20828
- }), ao = 17e3, W7 = /* @__PURE__ */ u({
20828
+ }), oo = 17e3, W7 = /* @__PURE__ */ u({
20829
20829
  ...pa,
20830
20830
  id: 44787,
20831
20831
  name: "Alfajores",
@@ -20853,25 +20853,25 @@ const pa = {
20853
20853
  blockCreated: 14569001
20854
20854
  },
20855
20855
  portal: {
20856
- [ao]: {
20856
+ [oo]: {
20857
20857
  address: "0x82527353927d8D069b3B452904c942dA149BA381",
20858
20858
  blockCreated: 2411324
20859
20859
  }
20860
20860
  },
20861
20861
  disputeGameFactory: {
20862
- [ao]: {
20862
+ [oo]: {
20863
20863
  address: "0xE28AAdcd9883746c0e5068F58f9ea06027b214cb",
20864
20864
  blockCreated: 2411324
20865
20865
  }
20866
20866
  },
20867
20867
  l2OutputOracle: {
20868
- [ao]: {
20868
+ [oo]: {
20869
20869
  address: "0x4a2635e9e4f6e45817b1D402ac4904c1d1752438",
20870
20870
  blockCreated: 2411324
20871
20871
  }
20872
20872
  },
20873
20873
  l1StandardBridge: {
20874
- [ao]: {
20874
+ [oo]: {
20875
20875
  address: "0xD1B0E0581973c9eB7f886967A606b9441A897037",
20876
20876
  blockCreated: 2411324
20877
20877
  }
@@ -23213,7 +23213,7 @@ const pa = {
23213
23213
  webSocket: ["ws://127.0.0.1:8545"]
23214
23214
  }
23215
23215
  }
23216
- }), oo = 1, Qk = /* @__PURE__ */ u({
23216
+ }), io = 1, Qk = /* @__PURE__ */ u({
23217
23217
  ...$,
23218
23218
  id: 252,
23219
23219
  name: "Fraxtal",
@@ -23233,7 +23233,7 @@ const pa = {
23233
23233
  contracts: {
23234
23234
  ...$.contracts,
23235
23235
  l2OutputOracle: {
23236
- [oo]: {
23236
+ [io]: {
23237
23237
  address: "0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"
23238
23238
  }
23239
23239
  },
@@ -23241,20 +23241,20 @@ const pa = {
23241
23241
  address: "0xca11bde05977b3631167028862be2a173976ca11"
23242
23242
  },
23243
23243
  portal: {
23244
- [oo]: {
23244
+ [io]: {
23245
23245
  address: "0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",
23246
23246
  blockCreated: 19135323
23247
23247
  }
23248
23248
  },
23249
23249
  l1StandardBridge: {
23250
- [oo]: {
23250
+ [io]: {
23251
23251
  address: "0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",
23252
23252
  blockCreated: 19135323
23253
23253
  }
23254
23254
  }
23255
23255
  },
23256
- sourceId: oo
23257
- }), io = 17e3, Jk = /* @__PURE__ */ u({
23256
+ sourceId: io
23257
+ }), co = 17e3, Jk = /* @__PURE__ */ u({
23258
23258
  ...$,
23259
23259
  id: 2522,
23260
23260
  name: "Fraxtal Testnet",
@@ -23274,7 +23274,7 @@ const pa = {
23274
23274
  contracts: {
23275
23275
  ...$.contracts,
23276
23276
  l2OutputOracle: {
23277
- [io]: {
23277
+ [co]: {
23278
23278
  address: "0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"
23279
23279
  }
23280
23280
  },
@@ -23282,19 +23282,19 @@ const pa = {
23282
23282
  address: "0xca11bde05977b3631167028862be2a173976ca11"
23283
23283
  },
23284
23284
  portal: {
23285
- [io]: {
23285
+ [co]: {
23286
23286
  address: "0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",
23287
23287
  blockCreated: 318416
23288
23288
  }
23289
23289
  },
23290
23290
  l1StandardBridge: {
23291
- [io]: {
23291
+ [co]: {
23292
23292
  address: "0x0BaafC217162f64930909aD9f2B27125121d6332",
23293
23293
  blockCreated: 318416
23294
23294
  }
23295
23295
  }
23296
23296
  },
23297
- sourceId: io
23297
+ sourceId: co
23298
23298
  }), Yk = 1, eC = /* @__PURE__ */ u({
23299
23299
  ...$,
23300
23300
  id: 33979,
@@ -23421,12 +23421,12 @@ const pa = {
23421
23421
  }
23422
23422
  },
23423
23423
  testnet: !0
23424
- }), co = 17e3, iC = /* @__PURE__ */ u({
23424
+ }), lo = 17e3, iC = /* @__PURE__ */ u({
23425
23425
  ...$,
23426
23426
  name: "Garnet Testnet",
23427
23427
  testnet: !0,
23428
23428
  id: 17069,
23429
- sourceId: co,
23429
+ sourceId: lo,
23430
23430
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
23431
23431
  rpcUrls: {
23432
23432
  default: {
@@ -23446,19 +23446,19 @@ const pa = {
23446
23446
  address: "0xca11bde05977b3631167028862be2a173976ca11"
23447
23447
  },
23448
23448
  portal: {
23449
- [co]: {
23449
+ [lo]: {
23450
23450
  address: "0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",
23451
23451
  blockCreated: 1274684
23452
23452
  }
23453
23453
  },
23454
23454
  l2OutputOracle: {
23455
- [co]: {
23455
+ [lo]: {
23456
23456
  address: "0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",
23457
23457
  blockCreated: 1274684
23458
23458
  }
23459
23459
  },
23460
23460
  l1StandardBridge: {
23461
- [co]: {
23461
+ [lo]: {
23462
23462
  address: "0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",
23463
23463
  blockCreated: 1274684
23464
23464
  }
@@ -23525,7 +23525,7 @@ const pa = {
23525
23525
  }
23526
23526
  },
23527
23527
  testnet: !1
23528
- }), lo = 11155111, ch = /* @__PURE__ */ u({
23528
+ }), uo = 11155111, ch = /* @__PURE__ */ u({
23529
23529
  ...$,
23530
23530
  id: 91342,
23531
23531
  network: "giwa-sepolia",
@@ -23551,23 +23551,23 @@ const pa = {
23551
23551
  blockCreated: 0
23552
23552
  },
23553
23553
  disputeGameFactory: {
23554
- [lo]: {
23554
+ [uo]: {
23555
23555
  address: "0x37347caB2afaa49B776372279143D71ad1f354F6"
23556
23556
  }
23557
23557
  },
23558
23558
  portal: {
23559
- [lo]: {
23559
+ [uo]: {
23560
23560
  address: "0x956962C34687A954e611A83619ABaA37Ce6bC78A"
23561
23561
  }
23562
23562
  },
23563
23563
  l1StandardBridge: {
23564
- [lo]: {
23564
+ [uo]: {
23565
23565
  address: "0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7"
23566
23566
  }
23567
23567
  }
23568
23568
  },
23569
23569
  testnet: !0,
23570
- sourceId: lo
23570
+ sourceId: uo
23571
23571
  }), dC = u({
23572
23572
  ...ch,
23573
23573
  experimental_preconfirmationTime: 200,
@@ -24746,7 +24746,7 @@ const pa = {
24746
24746
  }
24747
24747
  },
24748
24748
  testnet: !0
24749
- }), uo = 1, hv = /* @__PURE__ */ u({
24749
+ }), po = 1, hv = /* @__PURE__ */ u({
24750
24750
  ...$,
24751
24751
  id: 57073,
24752
24752
  name: "Ink",
@@ -24777,24 +24777,24 @@ const pa = {
24777
24777
  },
24778
24778
  ...$.contracts,
24779
24779
  disputeGameFactory: {
24780
- [uo]: {
24780
+ [po]: {
24781
24781
  address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd"
24782
24782
  }
24783
24783
  },
24784
24784
  portal: {
24785
- [uo]: {
24785
+ [po]: {
24786
24786
  address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f"
24787
24787
  }
24788
24788
  },
24789
24789
  l1StandardBridge: {
24790
- [uo]: {
24790
+ [po]: {
24791
24791
  address: "0x88ff1e5b602916615391f55854588efcbb7663f0"
24792
24792
  }
24793
24793
  }
24794
24794
  },
24795
24795
  testnet: !1,
24796
- sourceId: uo
24797
- }), po = 11155111, bv = /* @__PURE__ */ u({
24796
+ sourceId: po
24797
+ }), fo = 11155111, bv = /* @__PURE__ */ u({
24798
24798
  ...$,
24799
24799
  id: 763373,
24800
24800
  name: "Ink Sepolia",
@@ -24818,23 +24818,23 @@ const pa = {
24818
24818
  blockCreated: 0
24819
24819
  },
24820
24820
  disputeGameFactory: {
24821
- [po]: {
24821
+ [fo]: {
24822
24822
  address: "0x860e626c700af381133d9f4af31412a2d1db3d5d"
24823
24823
  }
24824
24824
  },
24825
24825
  portal: {
24826
- [po]: {
24826
+ [fo]: {
24827
24827
  address: "0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"
24828
24828
  }
24829
24829
  },
24830
24830
  l1StandardBridge: {
24831
- [po]: {
24831
+ [fo]: {
24832
24832
  address: "0x33f60714bbd74d62b66d79213c348614de51901c"
24833
24833
  }
24834
24834
  }
24835
24835
  },
24836
24836
  testnet: !0,
24837
- sourceId: po
24837
+ sourceId: fo
24838
24838
  }), yv = /* @__PURE__ */ u({
24839
24839
  id: 8822,
24840
24840
  name: "IOTA EVM",
@@ -26073,7 +26073,7 @@ const h4 = /* @__PURE__ */ u({
26073
26073
  }
26074
26074
  },
26075
26075
  testnet: !0
26076
- }), fo = 1, g4 = /* @__PURE__ */ u({
26076
+ }), mo = 1, g4 = /* @__PURE__ */ u({
26077
26077
  ...$,
26078
26078
  id: 1135,
26079
26079
  name: "Lisk",
@@ -26101,23 +26101,23 @@ const h4 = /* @__PURE__ */ u({
26101
26101
  address: "0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"
26102
26102
  },
26103
26103
  l2OutputOracle: {
26104
- [fo]: {
26104
+ [mo]: {
26105
26105
  address: "0x113cB99283AF242Da0A0C54347667edF531Aa7d6"
26106
26106
  }
26107
26107
  },
26108
26108
  portal: {
26109
- [fo]: {
26109
+ [mo]: {
26110
26110
  address: "0x26dB93F8b8b4f7016240af62F7730979d353f9A7"
26111
26111
  }
26112
26112
  },
26113
26113
  l1StandardBridge: {
26114
- [fo]: {
26114
+ [mo]: {
26115
26115
  address: "0x2658723Bf70c7667De6B25F99fcce13A16D25d08"
26116
26116
  }
26117
26117
  }
26118
26118
  },
26119
- sourceId: fo
26120
- }), mo = 11155111, w4 = /* @__PURE__ */ u({
26119
+ sourceId: mo
26120
+ }), ho = 11155111, w4 = /* @__PURE__ */ u({
26121
26121
  ...$,
26122
26122
  id: 4202,
26123
26123
  network: "lisk-sepolia",
@@ -26138,7 +26138,7 @@ const h4 = /* @__PURE__ */ u({
26138
26138
  contracts: {
26139
26139
  ...$.contracts,
26140
26140
  l2OutputOracle: {
26141
- [mo]: {
26141
+ [ho]: {
26142
26142
  address: "0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"
26143
26143
  }
26144
26144
  },
@@ -26146,18 +26146,18 @@ const h4 = /* @__PURE__ */ u({
26146
26146
  address: "0xca11bde05977b3631167028862be2a173976ca11"
26147
26147
  },
26148
26148
  portal: {
26149
- [mo]: {
26149
+ [ho]: {
26150
26150
  address: "0xe3d90F21490686Ec7eF37BE788E02dfC12787264"
26151
26151
  }
26152
26152
  },
26153
26153
  l1StandardBridge: {
26154
- [mo]: {
26154
+ [ho]: {
26155
26155
  address: "0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"
26156
26156
  }
26157
26157
  }
26158
26158
  },
26159
26159
  testnet: !0,
26160
- sourceId: mo
26160
+ sourceId: ho
26161
26161
  }), E4 = /* @__PURE__ */ u({
26162
26162
  id: 9496,
26163
26163
  name: "Load Alphanet",
@@ -26931,7 +26931,7 @@ const h4 = /* @__PURE__ */ u({
26931
26931
  }
26932
26932
  },
26933
26933
  testnet: !1
26934
- }), ho = 1, nA = /* @__PURE__ */ u({
26934
+ }), bo = 1, nA = /* @__PURE__ */ u({
26935
26935
  ...$,
26936
26936
  id: 1750,
26937
26937
  name: "Metal L2",
@@ -26956,7 +26956,7 @@ const h4 = /* @__PURE__ */ u({
26956
26956
  contracts: {
26957
26957
  ...$.contracts,
26958
26958
  l2OutputOracle: {
26959
- [ho]: {
26959
+ [bo]: {
26960
26960
  address: "0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"
26961
26961
  }
26962
26962
  },
@@ -26965,17 +26965,17 @@ const h4 = /* @__PURE__ */ u({
26965
26965
  blockCreated: 0
26966
26966
  },
26967
26967
  portal: {
26968
- [ho]: {
26968
+ [bo]: {
26969
26969
  address: "0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"
26970
26970
  }
26971
26971
  },
26972
26972
  l1StandardBridge: {
26973
- [ho]: {
26973
+ [bo]: {
26974
26974
  address: "0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"
26975
26975
  }
26976
26976
  }
26977
26977
  },
26978
- sourceId: ho
26978
+ sourceId: bo
26979
26979
  }), rA = /* @__PURE__ */ u({
26980
26980
  id: 82,
26981
26981
  name: "Meter",
@@ -27200,7 +27200,7 @@ const h4 = /* @__PURE__ */ u({
27200
27200
  }
27201
27201
  },
27202
27202
  testnet: !0
27203
- }), bo = 1, fA = /* @__PURE__ */ u({
27203
+ }), yo = 1, fA = /* @__PURE__ */ u({
27204
27204
  ...$,
27205
27205
  id: 34443,
27206
27206
  name: "Mode Mainnet",
@@ -27223,23 +27223,23 @@ const h4 = /* @__PURE__ */ u({
27223
27223
  blockCreated: 2465882
27224
27224
  },
27225
27225
  l2OutputOracle: {
27226
- [bo]: {
27226
+ [yo]: {
27227
27227
  address: "0x4317ba146D4933D889518a3e5E11Fe7a53199b04"
27228
27228
  }
27229
27229
  },
27230
27230
  portal: {
27231
- [bo]: {
27231
+ [yo]: {
27232
27232
  address: "0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"
27233
27233
  }
27234
27234
  },
27235
27235
  l1StandardBridge: {
27236
- [bo]: {
27236
+ [yo]: {
27237
27237
  address: "0x735aDBbE72226BD52e818E7181953f42E3b0FF21"
27238
27238
  }
27239
27239
  }
27240
27240
  },
27241
- sourceId: bo
27242
- }), yo = 11155111, mA = /* @__PURE__ */ u({
27241
+ sourceId: yo
27242
+ }), xo = 11155111, mA = /* @__PURE__ */ u({
27243
27243
  ...$,
27244
27244
  id: 919,
27245
27245
  name: "Mode Testnet",
@@ -27259,19 +27259,19 @@ const h4 = /* @__PURE__ */ u({
27259
27259
  contracts: {
27260
27260
  ...$.contracts,
27261
27261
  l2OutputOracle: {
27262
- [yo]: {
27262
+ [xo]: {
27263
27263
  address: "0x2634BD65ba27AB63811c74A63118ACb312701Bfa",
27264
27264
  blockCreated: 3778393
27265
27265
  }
27266
27266
  },
27267
27267
  portal: {
27268
- [yo]: {
27268
+ [xo]: {
27269
27269
  address: "0x320e1580effF37E008F1C92700d1eBa47c1B23fD",
27270
27270
  blockCreated: 3778395
27271
27271
  }
27272
27272
  },
27273
27273
  l1StandardBridge: {
27274
- [yo]: {
27274
+ [xo]: {
27275
27275
  address: "0xbC5C679879B2965296756CD959C3C739769995E2",
27276
27276
  blockCreated: 3778392
27277
27277
  }
@@ -27282,7 +27282,7 @@ const h4 = /* @__PURE__ */ u({
27282
27282
  }
27283
27283
  },
27284
27284
  testnet: !0,
27285
- sourceId: yo
27285
+ sourceId: xo
27286
27286
  }), hA = /* @__PURE__ */ u({
27287
27287
  id: 143,
27288
27288
  name: "Monad",
@@ -27938,7 +27938,7 @@ const h4 = /* @__PURE__ */ u({
27938
27938
  url: "https://dev-scan.oortech.com"
27939
27939
  }
27940
27940
  }
27941
- }), xo = 56, KA = /* @__PURE__ */ u({
27941
+ }), go = 56, KA = /* @__PURE__ */ u({
27942
27942
  id: 204,
27943
27943
  name: "opBNB",
27944
27944
  nativeCurrency: {
@@ -27963,23 +27963,23 @@ const h4 = /* @__PURE__ */ u({
27963
27963
  blockCreated: 512881
27964
27964
  },
27965
27965
  l2OutputOracle: {
27966
- [xo]: {
27966
+ [go]: {
27967
27967
  address: "0x153CAB79f4767E2ff862C94aa49573294B13D169"
27968
27968
  }
27969
27969
  },
27970
27970
  portal: {
27971
- [xo]: {
27971
+ [go]: {
27972
27972
  address: "0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"
27973
27973
  }
27974
27974
  },
27975
27975
  l1StandardBridge: {
27976
- [xo]: {
27976
+ [go]: {
27977
27977
  address: "0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"
27978
27978
  }
27979
27979
  }
27980
27980
  },
27981
- sourceId: xo
27982
- }), go = 97, WA = /* @__PURE__ */ u({
27981
+ sourceId: go
27982
+ }), wo = 97, WA = /* @__PURE__ */ u({
27983
27983
  id: 5611,
27984
27984
  name: "opBNB Testnet",
27985
27985
  nativeCurrency: {
@@ -28003,23 +28003,23 @@ const h4 = /* @__PURE__ */ u({
28003
28003
  blockCreated: 3705108
28004
28004
  },
28005
28005
  l2OutputOracle: {
28006
- [go]: {
28006
+ [wo]: {
28007
28007
  address: "0xFf2394Bb843012562f4349C6632a0EcB92fC8810"
28008
28008
  }
28009
28009
  },
28010
28010
  portal: {
28011
- [go]: {
28011
+ [wo]: {
28012
28012
  address: "0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"
28013
28013
  }
28014
28014
  },
28015
28015
  l1StandardBridge: {
28016
- [go]: {
28016
+ [wo]: {
28017
28017
  address: "0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"
28018
28018
  }
28019
28019
  }
28020
28020
  },
28021
28021
  testnet: !0,
28022
- sourceId: go
28022
+ sourceId: wo
28023
28023
  }), ZA = /* @__PURE__ */ u({
28024
28024
  id: 1612,
28025
28025
  name: "OpenLedger",
@@ -28079,7 +28079,7 @@ const h4 = /* @__PURE__ */ u({
28079
28079
  }
28080
28080
  },
28081
28081
  sourceId: Ts
28082
- }), wo = 5, QA = /* @__PURE__ */ u({
28082
+ }), Eo = 5, QA = /* @__PURE__ */ u({
28083
28083
  ...$,
28084
28084
  id: 420,
28085
28085
  name: "Optimism Goerli",
@@ -28099,7 +28099,7 @@ const h4 = /* @__PURE__ */ u({
28099
28099
  contracts: {
28100
28100
  ...$.contracts,
28101
28101
  l2OutputOracle: {
28102
- [wo]: {
28102
+ [Eo]: {
28103
28103
  address: "0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"
28104
28104
  }
28105
28105
  },
@@ -28108,18 +28108,18 @@ const h4 = /* @__PURE__ */ u({
28108
28108
  blockCreated: 49461
28109
28109
  },
28110
28110
  portal: {
28111
- [wo]: {
28111
+ [Eo]: {
28112
28112
  address: "0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"
28113
28113
  }
28114
28114
  },
28115
28115
  l1StandardBridge: {
28116
- [wo]: {
28116
+ [Eo]: {
28117
28117
  address: "0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"
28118
28118
  }
28119
28119
  }
28120
28120
  },
28121
28121
  testnet: !0,
28122
- sourceId: wo
28122
+ sourceId: Eo
28123
28123
  }), Ss = 11155111, JA = /* @__PURE__ */ u({
28124
28124
  ...$,
28125
28125
  id: 11155420,
@@ -28329,7 +28329,7 @@ const h4 = /* @__PURE__ */ u({
28329
28329
  blockCreated: 3566354
28330
28330
  }
28331
28331
  }
28332
- }), Eo = 1, iT = /* @__PURE__ */ u({
28332
+ }), ko = 1, iT = /* @__PURE__ */ u({
28333
28333
  id: 424,
28334
28334
  network: "pgn",
28335
28335
  name: "PGN",
@@ -28348,7 +28348,7 @@ const h4 = /* @__PURE__ */ u({
28348
28348
  },
28349
28349
  contracts: {
28350
28350
  l2OutputOracle: {
28351
- [Eo]: {
28351
+ [ko]: {
28352
28352
  address: "0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"
28353
28353
  }
28354
28354
  },
@@ -28357,19 +28357,19 @@ const h4 = /* @__PURE__ */ u({
28357
28357
  blockCreated: 3380209
28358
28358
  },
28359
28359
  portal: {
28360
- [Eo]: {
28360
+ [ko]: {
28361
28361
  address: "0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"
28362
28362
  }
28363
28363
  },
28364
28364
  l1StandardBridge: {
28365
- [Eo]: {
28365
+ [ko]: {
28366
28366
  address: "0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"
28367
28367
  }
28368
28368
  }
28369
28369
  },
28370
28370
  formatters: Mu,
28371
- sourceId: Eo
28372
- }), ko = 11155111, cT = /* @__PURE__ */ u({
28371
+ sourceId: ko
28372
+ }), Co = 11155111, cT = /* @__PURE__ */ u({
28373
28373
  id: 58008,
28374
28374
  network: "pgn-testnet",
28375
28375
  name: "PGN",
@@ -28388,17 +28388,17 @@ const h4 = /* @__PURE__ */ u({
28388
28388
  },
28389
28389
  contracts: {
28390
28390
  l2OutputOracle: {
28391
- [ko]: {
28391
+ [Co]: {
28392
28392
  address: "0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"
28393
28393
  }
28394
28394
  },
28395
28395
  portal: {
28396
- [ko]: {
28396
+ [Co]: {
28397
28397
  address: "0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"
28398
28398
  }
28399
28399
  },
28400
28400
  l1StandardBridge: {
28401
- [ko]: {
28401
+ [Co]: {
28402
28402
  address: "0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"
28403
28403
  }
28404
28404
  },
@@ -28408,7 +28408,7 @@ const h4 = /* @__PURE__ */ u({
28408
28408
  }
28409
28409
  },
28410
28410
  formatters: Mu,
28411
- sourceId: ko,
28411
+ sourceId: Co,
28412
28412
  testnet: !0
28413
28413
  }), lT = /* @__PURE__ */ u({
28414
28414
  id: 13381,
@@ -29318,11 +29318,11 @@ const h4 = /* @__PURE__ */ u({
29318
29318
  }
29319
29319
  },
29320
29320
  testnet: !0
29321
- }), Co = 1, YT = /* @__PURE__ */ u({
29321
+ }), vo = 1, YT = /* @__PURE__ */ u({
29322
29322
  ...$,
29323
29323
  name: "Redstone",
29324
29324
  id: 690,
29325
- sourceId: Co,
29325
+ sourceId: vo,
29326
29326
  nativeCurrency: { decimals: 18, name: "Ether", symbol: "ETH" },
29327
29327
  rpcUrls: {
29328
29328
  default: {
@@ -29342,19 +29342,19 @@ const h4 = /* @__PURE__ */ u({
29342
29342
  address: "0xca11bde05977b3631167028862be2a173976ca11"
29343
29343
  },
29344
29344
  portal: {
29345
- [Co]: {
29345
+ [vo]: {
29346
29346
  address: "0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",
29347
29347
  blockCreated: 19578329
29348
29348
  }
29349
29349
  },
29350
29350
  l2OutputOracle: {
29351
- [Co]: {
29351
+ [vo]: {
29352
29352
  address: "0xa426A052f657AEEefc298b3B5c35a470e4739d69",
29353
29353
  blockCreated: 19578337
29354
29354
  }
29355
29355
  },
29356
29356
  l1StandardBridge: {
29357
- [Co]: {
29357
+ [vo]: {
29358
29358
  address: "0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",
29359
29359
  blockCreated: 19578331
29360
29360
  }
@@ -29614,7 +29614,7 @@ const h4 = /* @__PURE__ */ u({
29614
29614
  }
29615
29615
  },
29616
29616
  testnet: !0
29617
- }), vo = 1, dS = /* @__PURE__ */ u({
29617
+ }), Ao = 1, dS = /* @__PURE__ */ u({
29618
29618
  ...$,
29619
29619
  id: 12553,
29620
29620
  name: "RSS3 VSL Mainnet",
@@ -29634,7 +29634,7 @@ const h4 = /* @__PURE__ */ u({
29634
29634
  contracts: {
29635
29635
  ...$.contracts,
29636
29636
  l2OutputOracle: {
29637
- [vo]: {
29637
+ [Ao]: {
29638
29638
  address: "0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"
29639
29639
  }
29640
29640
  },
@@ -29643,19 +29643,19 @@ const h4 = /* @__PURE__ */ u({
29643
29643
  blockCreated: 14193
29644
29644
  },
29645
29645
  portal: {
29646
- [vo]: {
29646
+ [Ao]: {
29647
29647
  address: "0x6A12432491bbbE8d3babf75F759766774C778Db4",
29648
29648
  blockCreated: 19387057
29649
29649
  }
29650
29650
  },
29651
29651
  l1StandardBridge: {
29652
- [vo]: {
29652
+ [Ao]: {
29653
29653
  address: "0x4cbab69108Aa72151EDa5A3c164eA86845f18438"
29654
29654
  }
29655
29655
  }
29656
29656
  },
29657
- sourceId: vo
29658
- }), Ao = 11155111, pS = /* @__PURE__ */ u({
29657
+ sourceId: Ao
29658
+ }), To = 11155111, pS = /* @__PURE__ */ u({
29659
29659
  ...$,
29660
29660
  id: 2331,
29661
29661
  name: "RSS3 VSL Sepolia Testnet",
@@ -29675,7 +29675,7 @@ const h4 = /* @__PURE__ */ u({
29675
29675
  contracts: {
29676
29676
  ...$.contracts,
29677
29677
  l2OutputOracle: {
29678
- [Ao]: {
29678
+ [To]: {
29679
29679
  address: "0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"
29680
29680
  }
29681
29681
  },
@@ -29684,19 +29684,19 @@ const h4 = /* @__PURE__ */ u({
29684
29684
  blockCreated: 55697
29685
29685
  },
29686
29686
  portal: {
29687
- [Ao]: {
29687
+ [To]: {
29688
29688
  address: "0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",
29689
29689
  blockCreated: 5345035
29690
29690
  }
29691
29691
  },
29692
29692
  l1StandardBridge: {
29693
- [Ao]: {
29693
+ [To]: {
29694
29694
  address: "0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"
29695
29695
  }
29696
29696
  }
29697
29697
  },
29698
29698
  testnet: !0,
29699
- sourceId: Ao
29699
+ sourceId: To
29700
29700
  }), fS = /* @__PURE__ */ u({
29701
29701
  id: 7225878,
29702
29702
  name: "Saakuru Mainnet",
@@ -30011,7 +30011,7 @@ const h4 = /* @__PURE__ */ u({
30011
30011
  }
30012
30012
  },
30013
30013
  testnet: !0
30014
- }), To = 1, PS = /* @__PURE__ */ u({
30014
+ }), So = 1, PS = /* @__PURE__ */ u({
30015
30015
  ...$,
30016
30016
  id: 360,
30017
30017
  name: "Shape",
@@ -30031,7 +30031,7 @@ const h4 = /* @__PURE__ */ u({
30031
30031
  contracts: {
30032
30032
  ...$.contracts,
30033
30033
  l2OutputOracle: {
30034
- [To]: {
30034
+ [So]: {
30035
30035
  address: "0x6Ef8c69CfE4635d866e3E02732068022c06e724D",
30036
30036
  blockCreated: 20369940
30037
30037
  }
@@ -30041,19 +30041,19 @@ const h4 = /* @__PURE__ */ u({
30041
30041
  blockCreated: 1
30042
30042
  },
30043
30043
  portal: {
30044
- [To]: {
30044
+ [So]: {
30045
30045
  address: "0xEB06fFa16011B5628BaB98E29776361c83741dd3",
30046
30046
  blockCreated: 20369933
30047
30047
  }
30048
30048
  },
30049
30049
  l1StandardBridge: {
30050
- [To]: {
30050
+ [So]: {
30051
30051
  address: "0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",
30052
30052
  blockCreated: 20369935
30053
30053
  }
30054
30054
  }
30055
30055
  },
30056
- sourceId: To
30056
+ sourceId: So
30057
30057
  }), BS = 11155111, US = /* @__PURE__ */ u({
30058
30058
  ...$,
30059
30059
  id: 11011,
@@ -31902,7 +31902,7 @@ const h4 = /* @__PURE__ */ u({
31902
31902
  testnet: !0
31903
31903
  });
31904
31904
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
31905
- const lh = xs(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")), nB = lh.create(BigInt("-3")), rB = BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"), sB = Ci({
31905
+ const lh = xs(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")), nB = lh.create(BigInt("-3")), rB = BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"), sB = vi({
31906
31906
  a: nB,
31907
31907
  b: rB,
31908
31908
  Fp: lh,
@@ -31912,7 +31912,7 @@ const lh = xs(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffff
31912
31912
  h: BigInt(1),
31913
31913
  lowS: !1
31914
31914
  }, Ql), uh = xs(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")), aB = uh.create(BigInt("-3")), oB = BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");
31915
- Ci({
31915
+ vi({
31916
31916
  a: aB,
31917
31917
  b: oB,
31918
31918
  Fp: uh,
@@ -31923,7 +31923,7 @@ Ci({
31923
31923
  lowS: !1
31924
31924
  }, A5);
31925
31925
  const dh = xs(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")), iB = dh.create(BigInt("-3")), cB = BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");
31926
- Ci({
31926
+ vi({
31927
31927
  a: iB,
31928
31928
  b: cB,
31929
31929
  Fp: dh,
@@ -31943,7 +31943,7 @@ function ph(e) {
31943
31943
  }
31944
31944
  const uB = /* @__PURE__ */ new TextEncoder();
31945
31945
  Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e, t) => [t, e.charCodeAt(0)]);
31946
- const So = {
31946
+ const Po = {
31947
31947
  ...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e, t) => [e.charCodeAt(0), t])),
31948
31948
  61: 0,
31949
31949
  45: 62,
@@ -31953,7 +31953,7 @@ function dB(e) {
31953
31953
  const t = e.replace(/=+$/, ""), n = t.length, r = new Uint8Array(n + 3);
31954
31954
  uB.encodeInto(t + "===", r);
31955
31955
  for (let a = 0, o = 0; a < t.length; a += 4, o += 3) {
31956
- const i = (So[r[a]] << 18) + (So[r[a + 1]] << 12) + (So[r[a + 2]] << 6) + So[r[a + 3]];
31956
+ const i = (Po[r[a]] << 18) + (Po[r[a + 1]] << 12) + (Po[r[a + 2]] << 6) + Po[r[a + 3]];
31957
31957
  r[o] = i >> 16, r[o + 1] = i >> 8 & 255, r[o + 2] = i & 255;
31958
31958
  }
31959
31959
  const s = (n >> 2) * 3 + (n % 4 && n % 4 - 1);
@@ -32010,7 +32010,7 @@ function gs(e) {
32010
32010
  const t = e.endsWith(qn.slice(2)) ? oe(e, 0, -Te(qn)) : e;
32011
32011
  if (Te(t) === 65) {
32012
32012
  const o = Pu(t);
32013
- return vi(o), { signature: o, type: "secp256k1" };
32013
+ return Ai(o), { signature: o, type: "secp256k1" };
32014
32014
  }
32015
32015
  const r = oe(t, 0, 1), s = oe(t, 1), a = Te(s);
32016
32016
  if (r === xl) {
@@ -32097,7 +32097,7 @@ function La(e) {
32097
32097
  type: t
32098
32098
  };
32099
32099
  }
32100
- function Pi(e) {
32100
+ function Bi(e) {
32101
32101
  if (e.type === "secp256k1")
32102
32102
  return {
32103
32103
  signature: Bu(e),
@@ -32155,7 +32155,7 @@ function Pi(e) {
32155
32155
  return {
32156
32156
  type: "keychain",
32157
32157
  userAddress: e.userAddress,
32158
- inner: Pi(e.signature)
32158
+ inner: Bi(e.signature)
32159
32159
  };
32160
32160
  throw new fa({ envelope: e });
32161
32161
  }
@@ -32176,7 +32176,7 @@ function Nu(e) {
32176
32176
  envelope: e
32177
32177
  });
32178
32178
  }
32179
- function Bi(e, t = {}) {
32179
+ function Ui(e, t = {}) {
32180
32180
  const n = Nu(e);
32181
32181
  if (n === "secp256k1")
32182
32182
  return Ee(ag(e.signature), t.magic ? qn : "0x");
@@ -32190,7 +32190,7 @@ function Bi(e, t = {}) {
32190
32190
  }
32191
32191
  if (n === "keychain") {
32192
32192
  const r = e;
32193
- return Ee(fh, r.userAddress, Bi(r.inner), t.magic ? qn : "0x");
32193
+ return Ee(fh, r.userAddress, Ui(r.inner), t.magic ? qn : "0x");
32194
32194
  }
32195
32195
  throw new fa({ envelope: e });
32196
32196
  }
@@ -32238,7 +32238,7 @@ function fB(e, t) {
32238
32238
  if (t.address)
32239
32239
  return t.address;
32240
32240
  if (t.publicKey)
32241
- return Mo(t.publicKey);
32241
+ return Ro(t.publicKey);
32242
32242
  })();
32243
32243
  if (!r)
32244
32244
  return !1;
@@ -32250,7 +32250,7 @@ function fB(e, t) {
32250
32250
  signature: s.signature
32251
32251
  }) : !1;
32252
32252
  if (s.type === "p256") {
32253
- const a = Mo(s.publicKey);
32253
+ const a = Ro(s.publicKey);
32254
32254
  return cl(a, r) ? ph({
32255
32255
  hash: s.prehash,
32256
32256
  publicKey: s.publicKey,
@@ -32259,9 +32259,9 @@ function fB(e, t) {
32259
32259
  }) : !1;
32260
32260
  }
32261
32261
  if (s.type === "webAuthn") {
32262
- const a = Mo(s.publicKey);
32262
+ const a = Ro(s.publicKey);
32263
32263
  return cl(a, r) ? pB({
32264
- challenge: hi(n),
32264
+ challenge: bi(n),
32265
32265
  metadata: s.metadata,
32266
32266
  publicKey: s.publicKey,
32267
32267
  signature: s.signature
@@ -32305,7 +32305,7 @@ function hB(e, t = {}) {
32305
32305
  return typeof e.chainId == "string" ? mh(e) : t.signature ? { ...e, signature: t.signature } : e;
32306
32306
  }
32307
32307
  function mh(e) {
32308
- const { address: t, chainId: n, nonce: r } = e, s = Pi(e.signature);
32308
+ const { address: t, chainId: n, nonce: r } = e, s = Bi(e.signature);
32309
32309
  return {
32310
32310
  address: t,
32311
32311
  chainId: Number(n),
@@ -32343,7 +32343,7 @@ function wB(e) {
32343
32343
  return e.map((t) => gB(t));
32344
32344
  }
32345
32345
  function EB(e) {
32346
- const { address: t, chainId: n, nonce: r } = e, s = e.signature ? Bi(e.signature) : void 0;
32346
+ const { address: t, chainId: n, nonce: r } = e, s = e.signature ? Ui(e.signature) : void 0;
32347
32347
  return [
32348
32348
  n ? j(n) : "0x",
32349
32349
  t,
@@ -32366,7 +32366,7 @@ function CB(e, t = {}) {
32366
32366
  } : e;
32367
32367
  }
32368
32368
  function hh(e) {
32369
- const { chainId: t = "0x0", keyId: n, expiry: r = 0, limits: s, keyType: a } = e, o = Pi(e.signature);
32369
+ const { chainId: t = "0x0", keyId: n, expiry: r = 0, limits: s, keyType: a } = e, o = Bi(e.signature);
32370
32370
  return {
32371
32371
  address: n,
32372
32372
  chainId: t === "0x" ? 0n : ve(t),
@@ -32422,7 +32422,7 @@ function AB(e) {
32422
32422
  };
32423
32423
  }
32424
32424
  function TB(e) {
32425
- const { address: t, chainId: n = 0n, expiry: r, limits: s } = e, a = e.signature ? Bi(e.signature) : void 0, o = (() => {
32425
+ const { address: t, chainId: n = 0n, expiry: r, limits: s } = e, a = e.signature ? Ui(e.signature) : void 0, o = (() => {
32426
32426
  switch (e.type) {
32427
32427
  case "secp256k1":
32428
32428
  return "0x";
@@ -32487,7 +32487,7 @@ function UB(e, t = {}) {
32487
32487
  value: r.value && r.value !== "0x" ? BigInt(r.value) : void 0,
32488
32488
  // @ts-expect-error
32489
32489
  data: r.input || r.data || "0x"
32490
- }))), e.feeToken && (n.feeToken = e.feeToken), e.nonceKey && (n.nonceKey = BigInt(e.nonceKey)), e.signature && (n.signature = Pi(e.signature)), e.validAfter && (n.validAfter = Number(e.validAfter)), e.validBefore && (n.validBefore = Number(e.validBefore)), e.keyAuthorization && (n.keyAuthorization = hh(e.keyAuthorization)), e.feePayerSignature && (n.feePayerSignature = Bu(e.feePayerSignature), n.feePayerSignature.v = Iu(n.feePayerSignature.yParity)), n;
32490
+ }))), e.feeToken && (n.feeToken = e.feeToken), e.nonceKey && (n.nonceKey = BigInt(e.nonceKey)), e.signature && (n.signature = Bi(e.signature)), e.validAfter && (n.validAfter = Number(e.validAfter)), e.validBefore && (n.validBefore = Number(e.validBefore)), e.keyAuthorization && (n.keyAuthorization = hh(e.keyAuthorization)), e.feePayerSignature && (n.feePayerSignature = Bu(e.feePayerSignature), n.feePayerSignature.v = Iu(n.feePayerSignature.yParity)), n;
32491
32491
  }
32492
32492
  function IB(e) {
32493
32493
  const t = {};
@@ -32677,7 +32677,7 @@ function GB(e) {
32677
32677
  return R && R !== "0x" && (x.to = R), h && h !== "0x" && (x.value = BigInt(h)), b && b !== "0x" && (x.data = b), x;
32678
32678
  });
32679
32679
  }
32680
- (i == null ? void 0 : i.length) !== 0 && i !== "0x" && (U.accessList = DB(i)), (y == null ? void 0 : y.length) !== 0 && y !== "0x" && (U.authorizationList = xB(y)), m !== "0x" && m !== void 0 && (m === "0x00" || Zo(m) ? U.feePayerSignature = null : U.feePayerSignature = sg(m)), B && (U.keyAuthorization = vB(B));
32680
+ (i == null ? void 0 : i.length) !== 0 && i !== "0x" && (U.accessList = DB(i)), (y == null ? void 0 : y.length) !== 0 && y !== "0x" && (U.authorizationList = xB(y)), m !== "0x" && m !== void 0 && (m === "0x00" || Xo(m) ? U.feePayerSignature = null : U.feePayerSignature = sg(m)), B && (U.keyAuthorization = vB(B));
32681
32681
  const k = v ? gs(v) : void 0;
32682
32682
  return k && (U = {
32683
32683
  ...U,
@@ -32689,7 +32689,7 @@ function jB(e, t = {}) {
32689
32689
  return zu(s), {
32690
32690
  ...s,
32691
32691
  ...r ? { signature: La(r) } : {},
32692
- ...n ? { feePayerSignature: Ai(n) } : {},
32692
+ ...n ? { feePayerSignature: Ti(n) } : {},
32693
32693
  type: "tempo"
32694
32694
  };
32695
32695
  }
@@ -32720,7 +32720,7 @@ function zs(e, t = {}) {
32720
32720
  U,
32721
32721
  B,
32722
32722
  ...c ? [TB(c)] : [],
32723
- ...P ? [Bi(La(P))] : []
32723
+ ...P ? [Ui(La(P))] : []
32724
32724
  ];
32725
32725
  return Ee(t.format === "feePayer" ? $B : HB, U3(k));
32726
32726
  }
@@ -32780,13 +32780,13 @@ async function XB(e, t) {
32780
32780
  throw new Error("Unsupported signature type. Expected `secp256k1` but got `" + t.type + "`.");
32781
32781
  if (t && "type" in t) {
32782
32782
  const { r, s, yParity: a } = t == null ? void 0 : t.signature;
32783
- return Wo(e, {
32783
+ return Zo(e, {
32784
32784
  r: j(r, { size: 32 }),
32785
32785
  s: j(s, { size: 32 }),
32786
32786
  yParity: a
32787
32787
  });
32788
32788
  }
32789
- return Wo(e, t);
32789
+ return Zo(e, t);
32790
32790
  }
32791
32791
  if (wh(e) === "tempo")
32792
32792
  return QB(e, t);
@@ -32841,7 +32841,7 @@ async function QB(e, t) {
32841
32841
  hash: f
32842
32842
  });
32843
32843
  return zs(d, {
32844
- feePayerSignature: Ai(m)
32844
+ feePayerSignature: Ti(m)
32845
32845
  });
32846
32846
  }
32847
32847
  if (s === !0) {
@@ -32880,7 +32880,7 @@ function JB(e) {
32880
32880
  };
32881
32881
  }
32882
32882
  function YB(e) {
32883
- return Ei(e);
32883
+ return ki(e);
32884
32884
  }
32885
32885
  function eU(e, t) {
32886
32886
  const n = e, r = n.account ? me(n.account) : void 0;
@@ -32938,7 +32938,7 @@ const $u = {
32938
32938
  blockTime: 1e3,
32939
32939
  extendSchema: A8(),
32940
32940
  formatters: {
32941
- transaction: ui({
32941
+ transaction: di({
32942
32942
  exclude: ["aaAuthorizationList"],
32943
32943
  format: JB
32944
32944
  }),
@@ -32984,7 +32984,7 @@ const $u = {
32984
32984
  if (typeof s == "string" && s.endsWith(qn.slice(2))) {
32985
32985
  const a = gs(s);
32986
32986
  if (a.type !== "keychain") {
32987
- const o = await Ko(e, {
32987
+ const o = await Wo(e, {
32988
32988
  address: n,
32989
32989
  blockNumber: t.blockNumber,
32990
32990
  blockTag: t.blockTag
@@ -33418,7 +33418,7 @@ const $u = {
33418
33418
  }
33419
33419
  },
33420
33420
  testnet: !0
33421
- }), Po = 1, BU = /* @__PURE__ */ u({
33421
+ }), Bo = 1, BU = /* @__PURE__ */ u({
33422
33422
  ...$,
33423
33423
  id: 130,
33424
33424
  name: "Unichain",
@@ -33443,23 +33443,23 @@ const $u = {
33443
33443
  blockCreated: 0
33444
33444
  },
33445
33445
  disputeGameFactory: {
33446
- [Po]: {
33446
+ [Bo]: {
33447
33447
  address: "0x2F12d621a16e2d3285929C9996f478508951dFe4"
33448
33448
  }
33449
33449
  },
33450
33450
  portal: {
33451
- [Po]: {
33451
+ [Bo]: {
33452
33452
  address: "0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"
33453
33453
  }
33454
33454
  },
33455
33455
  l1StandardBridge: {
33456
- [Po]: {
33456
+ [Bo]: {
33457
33457
  address: "0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"
33458
33458
  }
33459
33459
  }
33460
33460
  },
33461
- sourceId: Po
33462
- }), Bo = 11155111, UU = /* @__PURE__ */ u({
33461
+ sourceId: Bo
33462
+ }), Uo = 11155111, UU = /* @__PURE__ */ u({
33463
33463
  ...$,
33464
33464
  id: 1301,
33465
33465
  name: "Unichain Sepolia",
@@ -33488,23 +33488,23 @@ const $u = {
33488
33488
  blockCreated: 0
33489
33489
  },
33490
33490
  portal: {
33491
- [Bo]: {
33491
+ [Uo]: {
33492
33492
  address: "0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD"
33493
33493
  }
33494
33494
  },
33495
33495
  l1StandardBridge: {
33496
- [Bo]: {
33496
+ [Uo]: {
33497
33497
  address: "0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2"
33498
33498
  }
33499
33499
  },
33500
33500
  disputeGameFactory: {
33501
- [Bo]: {
33501
+ [Uo]: {
33502
33502
  address: "0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b"
33503
33503
  }
33504
33504
  }
33505
33505
  },
33506
33506
  testnet: !0,
33507
- sourceId: Bo
33507
+ sourceId: Uo
33508
33508
  }), IU = /* @__PURE__ */ u({
33509
33509
  id: 8880,
33510
33510
  name: "Unique Mainnet",
@@ -34930,7 +34930,7 @@ const $u = {
34930
34930
  }
34931
34931
  },
34932
34932
  testnet: !0
34933
- }), Uo = 1, RI = /* @__PURE__ */ u({
34933
+ }), Io = 1, RI = /* @__PURE__ */ u({
34934
34934
  ...$,
34935
34935
  id: 7777777,
34936
34936
  name: "Zora",
@@ -34955,7 +34955,7 @@ const $u = {
34955
34955
  contracts: {
34956
34956
  ...$.contracts,
34957
34957
  l2OutputOracle: {
34958
- [Uo]: {
34958
+ [Io]: {
34959
34959
  address: "0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"
34960
34960
  }
34961
34961
  },
@@ -34964,18 +34964,18 @@ const $u = {
34964
34964
  blockCreated: 5882
34965
34965
  },
34966
34966
  portal: {
34967
- [Uo]: {
34967
+ [Io]: {
34968
34968
  address: "0x1a0ad011913A150f69f6A19DF447A0CfD9551054"
34969
34969
  }
34970
34970
  },
34971
34971
  l1StandardBridge: {
34972
- [Uo]: {
34972
+ [Io]: {
34973
34973
  address: "0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"
34974
34974
  }
34975
34975
  }
34976
34976
  },
34977
- sourceId: Uo
34978
- }), Io = 11155111, NI = /* @__PURE__ */ u({
34977
+ sourceId: Io
34978
+ }), Fo = 11155111, NI = /* @__PURE__ */ u({
34979
34979
  ...$,
34980
34980
  id: 999999999,
34981
34981
  name: "Zora Sepolia",
@@ -35001,7 +35001,7 @@ const $u = {
35001
35001
  contracts: {
35002
35002
  ...$.contracts,
35003
35003
  l2OutputOracle: {
35004
- [Io]: {
35004
+ [Fo]: {
35005
35005
  address: "0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"
35006
35006
  }
35007
35007
  },
@@ -35010,17 +35010,17 @@ const $u = {
35010
35010
  blockCreated: 83160
35011
35011
  },
35012
35012
  portal: {
35013
- [Io]: {
35013
+ [Fo]: {
35014
35014
  address: "0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"
35015
35015
  }
35016
35016
  },
35017
35017
  l1StandardBridge: {
35018
- [Io]: {
35018
+ [Fo]: {
35019
35019
  address: "0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"
35020
35020
  }
35021
35021
  }
35022
35022
  },
35023
- sourceId: Io,
35023
+ sourceId: Fo,
35024
35024
  testnet: !0
35025
35025
  }), Pp = 5, _I = /* @__PURE__ */ u({
35026
35026
  ...$,
@@ -35816,7 +35816,7 @@ const kh = $p(null), GI = new ey({
35816
35816
  limitPricePercent: void 0
35817
35817
  });
35818
35818
  }, [(s = e.srcToken) == null ? void 0 : s.address, (a = e.dstToken) == null ? void 0 : a.address]), Fr(() => {
35819
- e.module === te.LIMIT && t({ isMarketOrder: !1 }), Number(Qo) <= 2 && e.module === te.TAKE_PROFIT && t({ isMarketOrder: !0 });
35819
+ e.module === te.LIMIT && t({ isMarketOrder: !1 }), Number(Jo) <= 2 && e.module === te.TAKE_PROFIT && t({ isMarketOrder: !0 });
35820
35820
  }, [e.module]), Fr(() => {
35821
35821
  n && t({ isInvertedTrade: !1 });
35822
35822
  }, [n]), null;
@@ -35835,13 +35835,13 @@ const kh = $p(null), GI = new ey({
35835
35835
  };
35836
35836
  if (_(e.value || 0).isZero() || _(s || 0).isZero())
35837
35837
  return e;
35838
- const a = _(e.value || 0).dividedBy(s || 0).toFixed();
35838
+ const a = _(e.value || 0).dividedBy(s || 0).decimalPlaces(0).toFixed();
35839
35839
  return {
35840
35840
  ...e,
35841
35841
  value: a
35842
35842
  };
35843
35843
  }, [e, s, t, n, r]), qI = (e) => {
35844
- const t = Yo(), { walletClient: n, publicClient: r } = W(
35844
+ const t = ei(), { walletClient: n, publicClient: r } = W(
35845
35845
  () => LI(e.chainId, e.provider),
35846
35846
  [e.chainId, e.provider]
35847
35847
  ), s = W(
@@ -35962,7 +35962,7 @@ function ZI(e, t = 6, n = 8) {
35962
35962
  return e || "";
35963
35963
  }
35964
35964
  }
35965
- const Ch = (e, t) => W(() => $r(t, e), [e, t]), Ui = (e, t) => W(() => gt(t, e), [e, t]), Hu = () => {
35965
+ const Ch = (e, t) => W(() => $r(t, e), [e, t]), $a = (e, t) => W(() => gt(t, e), [e, t]), Hu = () => {
35966
35966
  const { chainId: e } = X();
35967
35967
  return W(() => ls(e), [e]);
35968
35968
  }, lD = (e) => {
@@ -36053,7 +36053,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36053
36053
  typedChunks: g
36054
36054
  }),
36055
36055
  [o]
36056
- ), f = W(() => L1(i || "", d), [i, d]), m = Ui(e == null ? void 0 : e.decimals, f), y = W(() => t ? _(m || "0").times(t || 0).toString() : "0", [m, t]);
36056
+ ), f = W(() => L1(i || "", d), [i, d]), m = $a(e == null ? void 0 : e.decimals, f), y = W(() => t ? _(m || "0").times(t || 0).toString() : "0", [m, t]);
36057
36057
  return {
36058
36058
  totalTrades: d,
36059
36059
  maxTrades: l,
@@ -36239,7 +36239,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36239
36239
  };
36240
36240
  }, [n, e, t, r]);
36241
36241
  }, sF = (e) => {
36242
- const { srcToken: t, dstToken: n, module: r, dstUsd1Token: s } = X(), a = Ft().amountPerTradeWei, o = ne((l) => l.state.isMarketOrder), i = W(() => O1(r, a, e, (t == null ? void 0 : t.decimals) || 0), [e, a, o, t == null ? void 0 : t.decimals, r]), c = Ui((n == null ? void 0 : n.decimals) || 0, i);
36242
+ const { srcToken: t, dstToken: n, module: r, dstUsd1Token: s } = X(), a = Ft().amountPerTradeWei, o = ne((l) => l.state.isMarketOrder), i = W(() => O1(r, a, e, (t == null ? void 0 : t.decimals) || 0), [e, a, o, t == null ? void 0 : t.decimals, r]), c = $a((n == null ? void 0 : n.decimals) || 0, i);
36243
36243
  return {
36244
36244
  amountWei: i,
36245
36245
  amountUI: c,
@@ -36297,7 +36297,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36297
36297
  };
36298
36298
  }, aF = () => {
36299
36299
  const { module: e } = X(), t = ne((n) => n.state.isMarketOrder);
36300
- return W(() => e === te.TWAP ? t ? fe.TWAP_MARKET : fe.TWAP_LIMIT : e === te.LIMIT ? fe.LIMIT : e === te.STOP_LOSS ? t ? fe.STOP_LOSS_MARKET : fe.STOP_LOSS_LIMIT : e === te.TAKE_PROFIT ? fe.TAKE_PROFIT : fe.TWAP_MARKET, [e, t]);
36300
+ return W(() => e === te.TWAP ? t ? de.TWAP_MARKET : de.TWAP_LIMIT : e === te.LIMIT ? de.LIMIT : e === te.STOP_LOSS ? t ? de.STOP_LOSS_MARKET : de.STOP_LOSS_LIMIT : e === te.TAKE_PROFIT ? de.TAKE_PROFIT : de.TWAP_MARKET, [e, t]);
36301
36301
  }, Ah = () => {
36302
36302
  const { account: e, config: t, chainId: n, isDev: r } = X();
36303
36303
  return W(
@@ -36367,7 +36367,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36367
36367
  e.decimals,
36368
36368
  t.decimals
36369
36369
  );
36370
- }, [n, e, t]), Fo = (e, t) => [...e.filter((r) => r.status === t)].sort((r, s) => s.createdAt - r.createdAt), bD = () => {
36370
+ }, [n, e, t]), Do = (e, t) => [...e.filter((r) => r.status === t)].sort((r, s) => s.createdAt - r.createdAt), bD = () => {
36371
36371
  const { data: e, isLoading: t, refetch: n, isRefetching: r } = qu(), s = ke(
36372
36372
  () => n().then((a) => a.data),
36373
36373
  [n]
@@ -36375,10 +36375,10 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36375
36375
  return W(() => ({
36376
36376
  orders: {
36377
36377
  all: e ?? [],
36378
- open: Fo(e ?? [], Le.Open),
36379
- completed: Fo(e ?? [], Le.Completed),
36380
- cancelled: Fo(e ?? [], Le.Cancelled),
36381
- expired: Fo(e ?? [], Le.Expired)
36378
+ open: Do(e ?? [], Le.Open),
36379
+ completed: Do(e ?? [], Le.Completed),
36380
+ cancelled: Do(e ?? [], Le.Cancelled),
36381
+ expired: Do(e ?? [], Le.Expired)
36382
36382
  },
36383
36383
  isLoading: t,
36384
36384
  isRefetching: r,
@@ -36509,7 +36509,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36509
36509
  const { module: e, marketPrice: t } = X(), n = Ii().amountWei, r = vr().amountWei, s = ne((a) => a.state.isMarketOrder);
36510
36510
  return e === te.LIMIT || !s ? n || "" : e === te.STOP_LOSS || e === te.TAKE_PROFIT ? r || "" : t || "";
36511
36511
  }, ws = () => {
36512
- const { srcToken: e, dstToken: t, dstUsd1Token: n } = X(), r = Th(), s = xn().amountWei, a = W(() => F1(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = Ui(t == null ? void 0 : t.decimals, a);
36512
+ const { srcToken: e, dstToken: t, dstUsd1Token: n } = X(), r = Th(), s = xn().amountWei, a = W(() => F1(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = $a(t == null ? void 0 : t.decimals, a);
36513
36513
  return {
36514
36514
  amountWei: a,
36515
36515
  amountUI: o,
@@ -36519,7 +36519,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36519
36519
  const { srcToken: e, dstToken: t, dstUsd1Token: n } = X(), r = Th(), s = Ft().amountPerTradeWei, a = ne((c) => c.state.isMarketOrder), o = W(
36520
36520
  () => D1(s, r, !!a, (e == null ? void 0 : e.decimals) || 0),
36521
36521
  [s, r, a, e == null ? void 0 : e.decimals]
36522
- ), i = Ui(t == null ? void 0 : t.decimals, o);
36522
+ ), i = $a(t == null ? void 0 : t.decimals, o);
36523
36523
  return {
36524
36524
  amountWei: o,
36525
36525
  amountUI: i,
@@ -36746,58 +36746,72 @@ const wD = () => {
36746
36746
  i
36747
36747
  ]);
36748
36748
  }, gF = () => {
36749
- const { srcToken: e, dstToken: t, account: n } = X(), { amountWei: r, amountUI: s } = xn(), { amountWei: a, amountUI: o, usd: i } = Ii(), {
36750
- amountPerTradeWei: c,
36751
- amountPerTradeUI: l,
36752
- amountPerTradeUsd: d,
36753
- totalTrades: p
36754
- } = Ft(), f = Wu(), {
36755
- amountWei: m,
36756
- amountUI: y,
36757
- usd: g
36749
+ const { srcToken: e, dstToken: t, account: n, marketPrice: r } = X(), { amountWei: s, amountUI: a } = xn(), {
36750
+ amountWei: o,
36751
+ amountUI: i,
36752
+ usd: c
36753
+ } = Ii(), {
36754
+ amountPerTradeWei: l,
36755
+ amountPerTradeUI: d,
36756
+ amountPerTradeUsd: p,
36757
+ totalTrades: f
36758
+ } = Ft(), m = Wu(), {
36759
+ amountWei: y,
36760
+ amountUI: g,
36761
+ usd: P
36758
36762
  } = Fi(), {
36759
- pricePerChunkWei: P,
36760
36763
  amountUI: B,
36761
- usd: v
36762
- } = vr(), { milliseconds: U } = Cr(), { amountWei: k, amountUI: O } = ws(), { srcAmountUsd: N, dstAmountUsd: R } = hF(), {
36763
- amount: h,
36764
- percent: b,
36765
- usd: x
36766
- } = bF(), C = xF(), E = ne((A) => A.state.isMarketOrder), T = ne((A) => A.state.currentTime), D = Yo(), w = yF({
36767
- srcToken: D.srcToken || e,
36768
- dstToken: D.dstToken || t,
36764
+ amountWei: v,
36765
+ usd: U
36766
+ } = vr(), { milliseconds: k } = Cr(), { amountWei: O, amountUI: N } = ws(), { srcAmountUsd: R, dstAmountUsd: h } = hF(), { amount: b, percent: x, usd: C } = bF(), E = xF(), T = ne((L) => L.state.isMarketOrder), D = ne((L) => L.state.currentTime), w = ei(), A = aF(), F = $a((t == null ? void 0 : t.decimals) || 0, r), S = W(() => A === de.TAKE_PROFIT || A === de.STOP_LOSS_LIMIT || A === de.STOP_LOSS_MARKET, [A]), M = yF({
36767
+ srcToken: w.srcToken || e,
36768
+ dstToken: w.dstToken || t,
36769
36769
  account: n,
36770
- orderType: aF(),
36771
- createdAt: T,
36772
- deadline: f,
36773
- totalTrades: p,
36774
- tradeInterval: U,
36775
- srcAmount: r,
36776
- srcAmountUI: s,
36777
- srcAmountUsd: N,
36778
- dstAmount: k,
36779
- dstAmountUI: O,
36780
- dstAmountUsd: R,
36781
- limitPrice: E ? void 0 : a,
36782
- limitPriceUI: E ? void 0 : o,
36783
- limitPriceUsd: E ? void 0 : i,
36784
- srcAmountPerTrade: c,
36785
- srcAmountPerTradeUI: l,
36786
- srcAmountPerTradeUsd: d,
36787
- minDestAmountPerTrade: m,
36788
- minDestAmountPerTradeUI: y,
36789
- minDestAmountPerTradeUsd: g,
36790
- triggerPrice: P,
36770
+ orderType: A,
36771
+ createdAt: D,
36772
+ deadline: m,
36773
+ totalTrades: f,
36774
+ tradeInterval: k,
36775
+ srcAmount: s,
36776
+ srcAmountUI: a,
36777
+ srcAmountUsd: R,
36778
+ dstAmount: O,
36779
+ dstAmountUI: N,
36780
+ dstAmountUsd: h,
36781
+ limitPrice: T ? void 0 : o,
36782
+ limitPriceUI: T ? void 0 : i,
36783
+ limitPriceUsd: T ? void 0 : c,
36784
+ srcAmountPerTrade: l,
36785
+ srcAmountPerTradeUI: d,
36786
+ srcAmountPerTradeUsd: p,
36787
+ minDestAmountPerTrade: y,
36788
+ minDestAmountPerTradeUI: g,
36789
+ minDestAmountPerTradeUsd: P,
36790
+ triggerPrice: v,
36791
36791
  triggerPriceUI: B,
36792
- triggerPriceUsd: v
36792
+ triggerPriceUsd: U
36793
36793
  });
36794
36794
  return W(() => ({
36795
- ...w,
36796
- feesAmount: h,
36797
- feesUsd: x || "",
36798
- feesPercentage: b,
36799
- rePermitData: C
36800
- }), [w, C, h, x, b]);
36795
+ ...M,
36796
+ feesAmount: b,
36797
+ feesUsd: C || "",
36798
+ feesPercentage: x,
36799
+ rePermitData: E,
36800
+ isTriggerPrice: S,
36801
+ isMarketOrder: T,
36802
+ marketPrice: r,
36803
+ marketPriceUi: F
36804
+ }), [
36805
+ M,
36806
+ E,
36807
+ b,
36808
+ C,
36809
+ x,
36810
+ S,
36811
+ T,
36812
+ r,
36813
+ F
36814
+ ]);
36801
36815
  }, wF = () => {
36802
36816
  var i;
36803
36817
  const {
@@ -36997,7 +37011,7 @@ function vF(e) {
36997
37011
  };
36998
37012
  }
36999
37013
  const AF = () => {
37000
- const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = X(), a = kF().mutateAsync, o = wF().mutateAsync, i = EF().mutateAsync, { mutateAsync: c } = Sh(), { update: l } = Yo(), { amountWei: d, amountUI: p } = xn(), { amountUI: f } = ws(), m = CF().mutate;
37014
+ const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = X(), a = kF().mutateAsync, o = wF().mutateAsync, i = EF().mutateAsync, { mutateAsync: c } = Sh(), { update: l } = ei(), { amountWei: d, amountUI: p } = xn(), { amountUI: f } = ws(), m = CF().mutate;
37001
37015
  return hn({
37002
37016
  mutationFn: async () => {
37003
37017
  var g, P;
@@ -37031,14 +37045,14 @@ const AF = () => {
37031
37045
  allowanceLoading: !1,
37032
37046
  hasApproval: !v,
37033
37047
  status: Ht.LOADING
37034
- }), m(), y && (l({ step: Oo.WRAP }), await o({
37048
+ }), m(), y && (l({ step: Mo.WRAP }), await o({
37035
37049
  onHash: (N) => l({ wrapTxHash: N }),
37036
37050
  srcAmountWei: d
37037
- }), U++, l({ stepIndex: U })), v && (l({ step: Oo.APPROVE }), await a({
37051
+ }), U++, l({ stepIndex: U })), v && (l({ step: Mo.APPROVE }), await a({
37038
37052
  token: B,
37039
37053
  onHash: (N) => l({ approveTxHash: N }),
37040
37054
  srcAmountWei: d
37041
- }), U++, l({ stepIndex: U })), l({ step: Oo.CREATE });
37055
+ }), U++, l({ stepIndex: U })), l({ step: Mo.CREATE });
37042
37056
  const O = await i();
37043
37057
  return l({ status: Ht.SUCCESS, orderId: O.id }), O;
37044
37058
  } catch (B) {
@@ -37062,7 +37076,7 @@ const AF = () => {
37062
37076
  }
37063
37077
  });
37064
37078
  }, kD = () => {
37065
- const e = Yo(), { amountUI: t } = xn(), { amountUI: n } = ws(), { srcToken: r, dstToken: s } = X(), a = AF(), o = ne((c) => c.resetState), i = ke(
37079
+ const e = ei(), { amountUI: t } = xn(), { amountUI: n } = ws(), { srcToken: r, dstToken: s } = X(), a = AF(), o = ne((c) => c.resetState), i = ke(
37066
37080
  () => a.mutateAsync(),
37067
37081
  [a]
37068
37082
  );
@@ -37196,16 +37210,16 @@ export {
37196
37210
  EF as F,
37197
37211
  Bp as G,
37198
37212
  _s as H,
37199
- Ui as I,
37213
+ $a as I,
37200
37214
  uD as J,
37201
37215
  lD as K,
37202
37216
  dD as L,
37203
37217
  Hu as M,
37204
- Yo as N,
37218
+ ei as N,
37205
37219
  te as O,
37206
37220
  Le as P,
37207
37221
  s1 as Q,
37208
- fe as R,
37222
+ de as R,
37209
37223
  oD as S,
37210
37224
  Je as T,
37211
37225
  Yt as U,
@@ -37223,7 +37237,7 @@ export {
37223
37237
  U1 as a4,
37224
37238
  qp as a5,
37225
37239
  I1 as a6,
37226
- Qo as a7,
37240
+ Jo as a7,
37227
37241
  MF as a8,
37228
37242
  y1 as a9,
37229
37243
  FF as aa,
@@ -37235,7 +37249,7 @@ export {
37235
37249
  n1 as ag,
37236
37250
  r1 as ah,
37237
37251
  Ht as ai,
37238
- Oo as aj,
37252
+ Mo as aj,
37239
37253
  $r as ak,
37240
37254
  gt as al,
37241
37255
  rD as am,
@@ -37248,7 +37262,7 @@ export {
37248
37262
  Jm as at,
37249
37263
  za as au,
37250
37264
  wt as b,
37251
- yi as c,
37265
+ xi as c,
37252
37266
  _2 as d,
37253
37267
  xr as e,
37254
37268
  Gt as f,
@@ -37257,7 +37271,7 @@ export {
37257
37271
  Ba as i,
37258
37272
  cD as j,
37259
37273
  gD as k,
37260
- ki as l,
37274
+ Ci as l,
37261
37275
  xD as m,
37262
37276
  hD as n,
37263
37277
  bD as o,