@orbs-network/spot-react 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,8 @@ var Qu = (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 Ga = (e, t, n) => Bh(e, typeof t != "symbol" ? t + "" : t, n), Di = (e, t, n) => t.has(e) || Qu("Cannot " + n);
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) ? Qu("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);
6
+ var Ga = (e, t, n) => Bh(e, typeof t != "symbol" ? t + "" : t, n), Oi = (e, t, n) => t.has(e) || Qu("Cannot " + n);
7
+ var I = (e, t, n) => (Oi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Z = (e, t, n) => t.has(e) ? Qu("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), V = (e, t, n, r) => (Oi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), re = (e, t, n) => (Oi(e, t, "access private method"), n);
8
8
  var ja = (e, t, n, r) => ({
9
9
  set _(s) {
10
10
  V(e, t, s, n);
@@ -1189,9 +1189,9 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1189
1189
  }, o1 = "https://order-sink-dev.orbs.network", i1 = "https://order-sink.orbs.network", c1 = "https://order-sink-v2.orbs.network", kl = El.version.split(".")[0], jp = (e) => {
1190
1190
  const t = Number(kl) >= 2;
1191
1191
  return e ? o1 : t ? c1 : i1;
1192
- }, yc = 300 * 1e3, _o = 365 * 24 * 60 * 60 * 1e3, Yu = 300 * 1e3, l1 = new Date(
1193
- yc
1194
- ).getMinutes(), Oi = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, vt = "https://hub.orbs.network/api/apikey/subgraphs/id", u1 = {
1192
+ }, xc = 300 * 1e3, zo = 365 * 24 * 60 * 60 * 1e3, Yu = 300 * 1e3, l1 = new Date(
1193
+ xc
1194
+ ).getMinutes(), Mi = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, vt = "https://hub.orbs.network/api/apikey/subgraphs/id", u1 = {
1195
1195
  [He.eth.id]: `${vt}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1196
1196
  [He.bsc.id]: `${vt}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1197
1197
  [He.poly.id]: `${vt}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
@@ -1203,9 +1203,9 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1203
1203
  [He.ftm.id]: `${vt}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,
1204
1204
  [He.katana.id]: `${vt}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
1205
1205
  [He.avax.id]: `${vt}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
1206
- [He.bera.id]: Oi("berachain"),
1207
- [He.flare.id]: Oi("flare"),
1208
- [He.cronosZkEvm.id]: Oi("cronos-zkevm")
1206
+ [He.bera.id]: Mi("berachain"),
1207
+ [He.flare.id]: Mi("flare"),
1208
+ [He.cronosZkEvm.id]: Mi("cronos-zkevm")
1209
1209
  }, d1 = "0x0000000000000000000000000000000000000000", p1 = [
1210
1210
  d1,
1211
1211
  "0x0000000000000000000000000000000000001010",
@@ -1262,7 +1262,7 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1262
1262
  [Ge(ae.SwapX)]: [
1263
1263
  "0xE5012eBDe5e26EE3Ea41992154731a03023CF274"
1264
1264
  ]
1265
- }, xc = {
1265
+ }, gc = {
1266
1266
  unit: Je.Minutes,
1267
1267
  value: l1
1268
1268
  }, Vp = "RePermitWitnessTransferFrom", m1 = {
@@ -1523,7 +1523,7 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1523
1523
  }, b1 = "https://www.orbs.com/dtwap-and-dlimit-faq/", DF = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", OF = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", MF = "https://www.orbs.com/", RF = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1524
1524
  var wa = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e.DURATION = "duration", e.IGNORE_ERRORS = "ignore-errors", e))(wa || {});
1525
1525
  const y1 = "-5", x1 = "10", g1 = "-10", w1 = "5";
1526
- var E1 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Mi = Math.ceil, mt = Math.floor, Ze = "[BigNumber Error] ", ed = Ze + "Number primitive has more than 15 significant digits: ", At = 1e14, ee = 14, Ri = 9007199254740991, Ni = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], wn = 1e7, Fe = 1e9;
1526
+ var E1 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ri = Math.ceil, mt = Math.floor, Ze = "[BigNumber Error] ", ed = Ze + "Number primitive has more than 15 significant digits: ", At = 1e14, ee = 14, Ni = 9007199254740991, _i = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], wn = 1e7, Fe = 1e9;
1527
1527
  function qp(e) {
1528
1528
  var t, n, r, s = C.prototype = { constructor: C, toString: null, valueOf: null }, a = new C(1), o = 20, i = 4, c = -7, l = 21, d = -1e7, p = 1e7, f = !1, m = 1, y = 0, g = {
1529
1529
  prefix: "",
@@ -1583,7 +1583,7 @@ function qp(e) {
1583
1583
  for (D = 0; F.charCodeAt(D) === 48; D++) ;
1584
1584
  for (A = F.length; F.charCodeAt(--A) === 48; ) ;
1585
1585
  if (F = F.slice(D, ++A)) {
1586
- if (A -= D, w && C.DEBUG && A > 15 && (h > Ri || h !== mt(h)))
1586
+ if (A -= D, w && C.DEBUG && A > 15 && (h > Ni || h !== mt(h)))
1587
1587
  throw Error(ed + S.s * h);
1588
1588
  if ((T = T - D - 1) > p)
1589
1589
  S.c = S.e = null;
@@ -1676,7 +1676,7 @@ function qp(e) {
1676
1676
  };
1677
1677
  return function(x) {
1678
1678
  var v, E, T, D, w, A = 0, F = [], S = new C(a);
1679
- if (x == null ? x = o : ye(x, 0, Fe), D = Mi(x / ee), f)
1679
+ if (x == null ? x = o : ye(x, 0, Fe), D = Ri(x / ee), f)
1680
1680
  if (crypto.getRandomValues) {
1681
1681
  for (v = crypto.getRandomValues(new Uint32Array(D *= 2)); A < D; )
1682
1682
  w = v[A] * 131072 + (v[A + 1] >>> 11), w >= 9e15 ? (E = crypto.getRandomValues(new Uint32Array(2)), v[A] = E[0], v[A + 1] = E[1]) : (F.push(w % 1e14), A += 2);
@@ -1690,7 +1690,7 @@ function qp(e) {
1690
1690
  if (!f)
1691
1691
  for (; A < D; )
1692
1692
  w = b(), w < 9e15 && (F[A++] = w % 1e14);
1693
- for (D = F[--A], x %= ee, D && x && (w = Ni[ee - x], F[A] = mt(D / w) * w); F[A] === 0; F.pop(), A--) ;
1693
+ for (D = F[--A], x %= ee, D && x && (w = _i[ee - x], F[A] = mt(D / w) * w); F[A] === 0; F.pop(), A--) ;
1694
1694
  if (A < 0)
1695
1695
  F = [T = 0];
1696
1696
  else {
@@ -1840,13 +1840,13 @@ function qp(e) {
1840
1840
  };
1841
1841
  })();
1842
1842
  function N(h, b, x, v) {
1843
- var E, T, D, w, A, F, S, M = h.c, L = Ni;
1843
+ var E, T, D, w, A, F, S, M = h.c, L = _i;
1844
1844
  if (M) {
1845
1845
  e: {
1846
1846
  for (E = 1, w = M[0]; w >= 10; w /= 10, E++) ;
1847
1847
  if (T = b - E, T < 0)
1848
1848
  T += ee, D = b, A = M[F = 0], S = mt(A / L[E - D - 1] % 10);
1849
- else if (F = Mi((T + 1) / ee), F >= M.length)
1849
+ else if (F = Ri((T + 1) / ee), F >= M.length)
1850
1850
  if (v) {
1851
1851
  for (; M.length <= F; M.push(0)) ;
1852
1852
  A = S = 0, E = 1, T %= ee, D = T - ee + 1;
@@ -1911,7 +1911,7 @@ function qp(e) {
1911
1911
  } else {
1912
1912
  if (h.e > 9 && (M.e > 0 || M.e < -1 || (M.e == 0 ? M.c[0] > 1 || w && M.c[1] >= 24e7 : M.c[0] < 8e13 || w && M.c[0] <= 9999975e7)))
1913
1913
  return T = M.s < 0 && qa(h) ? -0 : 0, M.e > -1 && (T = 1 / T), new C(A ? 1 / T : T);
1914
- y && (T = Mi(y / ee + 2));
1914
+ y && (T = Ri(y / ee + 2));
1915
1915
  }
1916
1916
  for (w ? (x = new C(0.5), A && (h.s = 1), F = qa(h)) : (E = Math.abs(+R(h)), F = E % 2), S = new C(a); ; ) {
1917
1917
  if (F) {
@@ -2033,7 +2033,7 @@ function qp(e) {
2033
2033
  }
2034
2034
  return h && T.e + 1 > v && (v = T.e + 1), v;
2035
2035
  }, s.shiftedBy = function(h) {
2036
- return ye(h, -Ri, Ri), this.times("1e" + h);
2036
+ return ye(h, -Ni, Ni), this.times("1e" + h);
2037
2037
  }, s.squareRoot = s.sqrt = function() {
2038
2038
  var h, b, x, v, E, T = this, D = T.c, w = T.s, A = T.e, F = o + 4, S = new C("0.5");
2039
2039
  if (w !== 1 || !D || !D[0])
@@ -2080,7 +2080,7 @@ function qp(e) {
2080
2080
  if (h != null && (w = new C(h), !w.isInteger() && (w.c || w.s !== 1) || w.lt(a)))
2081
2081
  throw Error(Ze + "Argument " + (w.isInteger() ? "out of range: " : "not an integer: ") + R(w));
2082
2082
  if (!Q) return new C(G);
2083
- for (b = new C(a), F = x = new C(a), v = A = new C(a), L = pt(Q), T = b.e = L.length - G.e - 1, b.c[0] = Ni[(D = T % ee) < 0 ? ee + D : D], h = !h || w.comparedTo(b) > 0 ? T > 0 ? b : F : w, D = p, p = 1 / 0, w = new C(L), A.c[0] = 0; S = t(w, b, 0, 1), E = x.plus(S.times(v)), E.comparedTo(h) != 1; )
2083
+ for (b = new C(a), F = x = new C(a), v = A = new C(a), L = pt(Q), T = b.e = L.length - G.e - 1, b.c[0] = _i[(D = T % ee) < 0 ? ee + D : D], h = !h || w.comparedTo(b) > 0 ? T > 0 ? b : F : w, D = p, p = 1 / 0, w = new C(L), A.c[0] = 0; S = t(w, b, 0, 1), E = x.plus(S.times(v)), E.comparedTo(h) != 1; )
2084
2084
  x = v, v = E, F = A.plus(S.times(E = F)), A = E, b = w.minus(S.times(E = b)), w = E;
2085
2085
  return E = t(h.minus(x), v, 0, 1), A = A.plus(E.times(F)), x = x.plus(E.times(v)), A.s = F.s = G.s, T = T * 2, M = t(F, v, T, i).minus(G).abs().comparedTo(
2086
2086
  t(A, x, T, i).minus(G).abs()
@@ -2162,9 +2162,9 @@ const C1 = {
2162
2162
  747474: { dex: { sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2163
2163
  "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x000ECFa392ecDEfEE6e2a5C095d39B7A32f1E000", reactor: "0x000000b33fE4fB9d999Dd684F79b110731c3d000", executor: "0x000642A0966d9bd49870D9519f76b5cf823f3000", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x1117fe6f4e25c9380d10b2b3314a1e9b33e5f65ba0e55e0c63d0640db0dd60a2", reactor: "0xec73677f3a465a9755d4c9eab9509b59a24613fdb8b78719682930373e9876f5", executor: "0x9abc67d936f79e493f1f14050c2f6adb87ec208ff7aaae2e7ae788a7cb4796d7", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
2164
2164
  };
2165
- var _i, td;
2165
+ var zi, td;
2166
2166
  function v1() {
2167
- if (td) return _i;
2167
+ if (td) return zi;
2168
2168
  td = 1;
2169
2169
  const e = C1, t = (s) => k1(`./out/${s}.sol/${s}.json`).abi, n = () => ({
2170
2170
  wm: t("WM"),
@@ -2186,7 +2186,7 @@ function v1() {
2186
2186
  if (p)
2187
2187
  return { ...i, ...d, ...p };
2188
2188
  }
2189
- return _i = { config: r, abis: n, raw: e }, _i;
2189
+ return zi = { config: r, abis: n, raw: e }, zi;
2190
2190
  }
2191
2191
  var Kp = v1();
2192
2192
  const es = (e, t) => {
@@ -2218,7 +2218,7 @@ const cr = (e) => e ? e.value * e.unit : 0, T1 = (e) => !e || e === "NaN" ? "0"
2218
2218
  [...r, ...n].map((a) => a.toLowerCase())
2219
2219
  );
2220
2220
  return Array.from(s);
2221
- }, Wp = (e, t) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + _1(t) : (e.fillDelay || 0) * 1e3, Yo = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), P1 = (e) => Q1().filter((t) => t.name === e).map((t) => t.chainId), Zp = (e = "", t = "", n = 18, r = 18) => {
2221
+ }, Wp = (e, t) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + _1(t) : (e.fillDelay || 0) * 1e3, ei = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), P1 = (e) => Q1().filter((t) => t.name === e).map((t) => t.chainId), Zp = (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);
@@ -2247,15 +2247,15 @@ const cr = (e) => e ? e.value * e.unit : 0, T1 = (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
  }, O1 = (e, t, n, r) => {
2250
- const s = cr(n) * 2 * t, a = Yo(wa.DURATION), o = A1(a ? Number(a) : s);
2250
+ const s = cr(n) * 2 * t, a = ei(wa.DURATION), o = A1(a ? Number(a) : s);
2251
2251
  return a ? { unit: o, value: Number(_(Number(a) / o).toFixed(2)) } : r || (e === ne.LIMIT ? { unit: Je.Days, value: 7 } : e === ne.STOP_LOSS || e === ne.TAKE_PROFIT ? { unit: Je.Days, value: 1 } : { unit: o, value: Number(_(s / o).toFixed(2)) });
2252
2252
  }, M1 = (e, t, n) => t !== ne.TWAP ? 1 : n !== void 0 ? n : Math.max(1, Math.ceil(e / 2)), R1 = (e, t, n) => {
2253
2253
  if (!e || !t || !n) return 1;
2254
2254
  const s = _(t).times(e).div(n).integerValue(_.ROUND_FLOOR).toNumber();
2255
2255
  return Math.max(1, s);
2256
2256
  }, N1 = (e, t) => e + cr(t) + 6e4, _1 = (e) => e.bidDelaySeconds * 1e3 * 2, z1 = (e = "", t = 0) => !e || !t ? "0" : _(e).div(t).integerValue(_.ROUND_FLOOR).toFixed(0), L1 = (e, t) => ({
2257
- isError: !(e.unit === xc.unit && e.value === xc.value) && cr(e) * t > _o,
2258
- value: Math.floor(_o / t)
2257
+ isError: !(e.unit === gc.unit && e.value === gc.value) && cr(e) * t > zo,
2258
+ value: Math.floor(zo / t)
2259
2259
  }), $1 = (e = "", t = "", n) => {
2260
2260
  if (n === ne.STOP_LOSS)
2261
2261
  return {
@@ -2284,15 +2284,15 @@ const cr = (e) => e ? e.value * e.unit : 0, T1 = (e) => !e || e === "NaN" ? "0"
2284
2284
  isError: cr(t) > 5184e6,
2285
2285
  value: 5184e6
2286
2286
  } : {
2287
- isError: cr(t) > _o,
2287
+ isError: cr(t) > zo,
2288
2288
  // 365 days
2289
- value: _o
2289
+ value: zo
2290
2290
  }, q1 = (e) => ({
2291
2291
  isError: cr(e) < Yu,
2292
2292
  value: Yu
2293
2293
  }), K1 = (e) => ({
2294
- isError: cr(e) < yc,
2295
- value: yc
2294
+ isError: cr(e) < xc,
2295
+ value: xc
2296
2296
  }), W1 = (e, t, n) => ({
2297
2297
  isError: _(t || 0).multipliedBy(e || 0).isLessThan(n),
2298
2298
  value: n
@@ -2394,7 +2394,7 @@ const cr = (e) => e ? e.value * e.unit : 0, T1 = (e) => !e || e === "NaN" ? "0"
2394
2394
  }));
2395
2395
  }).sort((t, n) => t.name.localeCompare(n.name));
2396
2396
  }, J1 = (e) => {
2397
- const t = Yo(
2397
+ const t = ei(
2398
2398
  wa.MIN_CHUNK_SIZE_USD
2399
2399
  );
2400
2400
  return t ? parseInt(t) : e;
@@ -2411,10 +2411,10 @@ const cr = (e) => e ? e.value * e.unit : 0, T1 = (e) => !e || e === "NaN" ? "0"
2411
2411
  balanceError: l,
2412
2412
  minTradeSizeError: d
2413
2413
  }) => {
2414
- if (!Yo(wa.IGNORE_ERRORS) && !(_(e || 0).isZero() || _(t || 0).isZero() || _(n || "0").isZero() || r))
2414
+ if (!ei(wa.IGNORE_ERRORS) && !(_(e || 0).isZero() || _(t || 0).isZero() || _(n || "0").isZero() || r))
2415
2415
  return d || s || a || o || i || c || l;
2416
2416
  }, Qp = (e, t) => {
2417
- const n = Date.now().toString(), r = parseInt((e / 1e3).toFixed(0)), s = T1(t / 1e3), a = Yo(wa.FRESHNESS), o = a ? parseInt(a) : 60;
2417
+ const n = Date.now().toString(), r = parseInt((e / 1e3).toFixed(0)), s = T1(t / 1e3), a = ei(wa.FRESHNESS), o = a ? parseInt(a) : 60;
2418
2418
  return {
2419
2419
  nonce: n,
2420
2420
  epoch: r,
@@ -2558,11 +2558,11 @@ const cr = (e) => e ? e.value * e.unit : 0, T1 = (e) => !e || e === "NaN" ? "0"
2558
2558
  primaryType: Vp
2559
2559
  };
2560
2560
  }, nb = (e) => Number(kl) >= 2 ? tb(e) : eb(e), rb = 0.7, sb = `https://bi.orbs.network/putes/twap-ui-${rb}`;
2561
- let gc = "unknown";
2561
+ let wc = "unknown";
2562
2562
  function ab(e) {
2563
- gc = e;
2563
+ wc = e;
2564
2564
  }
2565
- function zi() {
2565
+ function Li() {
2566
2566
  const e = Math.random().toString(36).substring(2, 16), t = Math.random().toString(36).substring(2, 16), n = Date.now().toString(36);
2567
2567
  return `id_${e + t + n}`;
2568
2568
  }
@@ -2612,7 +2612,7 @@ class ib {
2612
2612
  Ga(this, "timeout");
2613
2613
  Ga(this, "config");
2614
2614
  Ga(this, "data", {
2615
- _id: zi()
2615
+ _id: Li()
2616
2616
  });
2617
2617
  }
2618
2618
  async updateAndSend(t = {}, n = !1, r) {
@@ -2735,9 +2735,9 @@ class ib {
2735
2735
  init(t, n, r) {
2736
2736
  var s;
2737
2737
  this.config = t, r !== ((s = this.data) == null ? void 0 : s.chainId) && (this.data = {
2738
- _id: zi(),
2738
+ _id: Li(),
2739
2739
  action: "module-import",
2740
- uiVersion: gc,
2740
+ uiVersion: wc,
2741
2741
  ...ob(t, n, r),
2742
2742
  origin: window.location.origin
2743
2743
  }, this.updateAndSend(this.data));
@@ -2759,9 +2759,9 @@ class ib {
2759
2759
  void 0,
2760
2760
  () => {
2761
2761
  this.data = {
2762
- _id: zi(),
2762
+ _id: Li(),
2763
2763
  action: "reset",
2764
- uiVersion: gc,
2764
+ uiVersion: wc,
2765
2765
  origin: this.data.origin,
2766
2766
  spotVersion: El.version,
2767
2767
  partner: this.data.partner,
@@ -3120,7 +3120,7 @@ const Cb = async ({
3120
3120
  signal: n
3121
3121
  }) => {
3122
3122
  if (t.length === 0) return [];
3123
- const r = wc(t.map((i) => i.Contract_id.toString()));
3123
+ const r = Ec(t.map((i) => i.Contract_id.toString()));
3124
3124
  if (!r.length) return [];
3125
3125
  const a = `where: { twapId_in: [${r.map((i) => `"${i}"`).join(", ")}]}`;
3126
3126
  return await Al({
@@ -3146,7 +3146,7 @@ const Cb = async ({
3146
3146
  }
3147
3147
  });
3148
3148
  };
3149
- function wc(e) {
3149
+ function Ec(e) {
3150
3150
  return Array.from(new Set(e));
3151
3151
  }
3152
3152
  const vb = async ({
@@ -3154,7 +3154,7 @@ const vb = async ({
3154
3154
  orders: t,
3155
3155
  signal: n
3156
3156
  }) => {
3157
- const r = wc(t.map((p) => p.Contract_id)), s = wc(t.map((p) => p.twapAddress)).filter(Boolean);
3157
+ const r = Ec(t.map((p) => p.Contract_id)), s = Ec(t.map((p) => p.twapAddress)).filter(Boolean);
3158
3158
  if (r.length === 0) return [];
3159
3159
  const a = r.join(", "), o = s.map((p) => `"${p}"`).join(", "), i = s.length ? `twapAddress_in: [${o}]` : "", l = `where: { ${[
3160
3160
  `TWAP_id_in: [${a}]`,
@@ -3249,7 +3249,7 @@ const Tb = async ({
3249
3249
  }) => (await Promise.all([
3250
3250
  s ? Tb({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
3251
3251
  yb({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter, isDev: o })
3252
- ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.7", Ib = {
3252
+ ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.9", Ib = {
3253
3253
  version: Ub
3254
3254
  };
3255
3255
  var us = class {
@@ -3322,7 +3322,7 @@ function qe() {
3322
3322
  function Mb(e, t) {
3323
3323
  return typeof e == "function" ? e(t) : e;
3324
3324
  }
3325
- function Ec(e) {
3325
+ function kc(e) {
3326
3326
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
3327
3327
  }
3328
3328
  function t0(e, t) {
@@ -3376,18 +3376,18 @@ function Tl(e, t) {
3376
3376
  function ur(e) {
3377
3377
  return JSON.stringify(
3378
3378
  e,
3379
- (t, n) => Cc(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
3379
+ (t, n) => vc(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
3380
3380
  );
3381
3381
  }
3382
3382
  function $s(e, t) {
3383
3383
  return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => $s(e[n], t[n])) : !1;
3384
3384
  }
3385
3385
  var Rb = Object.prototype.hasOwnProperty;
3386
- function kc(e, t) {
3386
+ function Cc(e, t) {
3387
3387
  if (e === t)
3388
3388
  return e;
3389
3389
  const n = od(e) && od(t);
3390
- if (!n && !(Cc(e) && Cc(t))) return t;
3390
+ if (!n && !(vc(e) && vc(t))) return t;
3391
3391
  const s = (n ? e : Object.keys(e)).length, a = n ? t : Object.keys(t), o = a.length, i = n ? new Array(o) : {};
3392
3392
  let c = 0;
3393
3393
  for (let l = 0; l < o; l++) {
@@ -3400,12 +3400,12 @@ function kc(e, t) {
3400
3400
  i[d] = f;
3401
3401
  continue;
3402
3402
  }
3403
- const m = kc(p, f);
3403
+ const m = Cc(p, f);
3404
3404
  i[d] = m, m === p && c++;
3405
3405
  }
3406
3406
  return s === o && c === s ? e : i;
3407
3407
  }
3408
- function zo(e, t) {
3408
+ function Lo(e, t) {
3409
3409
  if (!t || Object.keys(e).length !== Object.keys(t).length)
3410
3410
  return !1;
3411
3411
  for (const n in e)
@@ -3416,7 +3416,7 @@ function zo(e, t) {
3416
3416
  function od(e) {
3417
3417
  return Array.isArray(e) && e.length === Object.keys(e).length;
3418
3418
  }
3419
- function Cc(e) {
3419
+ function vc(e) {
3420
3420
  if (!id(e))
3421
3421
  return !1;
3422
3422
  const t = e.constructor;
@@ -3433,19 +3433,19 @@ function Nb(e) {
3433
3433
  Vn.setTimeout(t, e);
3434
3434
  });
3435
3435
  }
3436
- function vc(e, t, n) {
3436
+ function Ac(e, t, n) {
3437
3437
  if (typeof n.structuralSharing == "function")
3438
3438
  return n.structuralSharing(e, t);
3439
3439
  if (n.structuralSharing !== !1) {
3440
3440
  if (process.env.NODE_ENV !== "production")
3441
3441
  try {
3442
- return kc(e, t);
3442
+ return Cc(e, t);
3443
3443
  } catch (r) {
3444
3444
  throw console.error(
3445
3445
  `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
3446
3446
  ), r;
3447
3447
  }
3448
- return kc(e, t);
3448
+ return Cc(e, t);
3449
3449
  }
3450
3450
  return t;
3451
3451
  }
@@ -3457,11 +3457,11 @@ function zb(e, t, n = 0) {
3457
3457
  const r = [t, ...e];
3458
3458
  return n && r.length > n ? r.slice(0, -1) : r;
3459
3459
  }
3460
- var Lo = Symbol();
3460
+ var $o = Symbol();
3461
3461
  function n0(e, t) {
3462
- return process.env.NODE_ENV !== "production" && e.queryFn === Lo && console.error(
3462
+ return process.env.NODE_ENV !== "production" && e.queryFn === $o && console.error(
3463
3463
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
3464
- ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === Lo ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
3464
+ ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === $o ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
3465
3465
  }
3466
3466
  function r0(e, t) {
3467
3467
  return typeof e == "function" ? e(...t) : !!e;
@@ -3508,7 +3508,7 @@ var Xn, Tn, Hr, Dp, Lb = (Dp = class extends us {
3508
3508
  return typeof I(this, Xn) == "boolean" ? I(this, Xn) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
3509
3509
  }
3510
3510
  }, Xn = new WeakMap(), Tn = new WeakMap(), Hr = new WeakMap(), Dp), Sl = new Lb();
3511
- function Ac() {
3511
+ function Tc() {
3512
3512
  let e, t;
3513
3513
  const n = new Promise((s, a) => {
3514
3514
  e = s, t = a;
@@ -3624,31 +3624,31 @@ var Be = Hb(), Gr, Sn, jr, Op, Gb = (Op = class extends us {
3624
3624
  isOnline() {
3625
3625
  return I(this, Gr);
3626
3626
  }
3627
- }, Gr = new WeakMap(), Sn = new WeakMap(), jr = new WeakMap(), Op), $o = new Gb();
3627
+ }, Gr = new WeakMap(), Sn = new WeakMap(), jr = new WeakMap(), Op), Ho = new Gb();
3628
3628
  function jb(e) {
3629
3629
  return Math.min(1e3 * 2 ** e, 3e4);
3630
3630
  }
3631
3631
  function s0(e) {
3632
- return (e ?? "online") === "online" ? $o.isOnline() : !0;
3632
+ return (e ?? "online") === "online" ? Ho.isOnline() : !0;
3633
3633
  }
3634
- var Tc = class extends Error {
3634
+ var Sc = class extends Error {
3635
3635
  constructor(e) {
3636
3636
  super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
3637
3637
  }
3638
3638
  };
3639
3639
  function a0(e) {
3640
3640
  let t = !1, n = 0, r;
3641
- const s = Ac(), a = () => s.status !== "pending", o = (g) => {
3641
+ const s = Tc(), a = () => s.status !== "pending", o = (g) => {
3642
3642
  var P;
3643
3643
  if (!a()) {
3644
- const B = new Tc(g);
3644
+ const B = new Sc(g);
3645
3645
  f(B), (P = e.onCancel) == null || P.call(e, B);
3646
3646
  }
3647
3647
  }, i = () => {
3648
3648
  t = !0;
3649
3649
  }, c = () => {
3650
3650
  t = !1;
3651
- }, l = () => Sl.isFocused() && (e.networkMode === "always" || $o.isOnline()) && e.canRun(), d = () => s0(e.networkMode) && e.canRun(), p = (g) => {
3651
+ }, l = () => Sl.isFocused() && (e.networkMode === "always" || Ho.isOnline()) && e.canRun(), d = () => s0(e.networkMode) && e.canRun(), p = (g) => {
3652
3652
  a() || (r == null || r(), s.resolve(g));
3653
3653
  }, f = (g) => {
3654
3654
  a() || (r == null || r(), s.reject(g));
@@ -3703,7 +3703,7 @@ var Qn, Mp, o0 = (Mp = class {
3703
3703
  this.clearGcTimeout();
3704
3704
  }
3705
3705
  scheduleGc() {
3706
- this.clearGcTimeout(), Ec(this.gcTime) && V(this, Qn, Vn.setTimeout(() => {
3706
+ this.clearGcTimeout(), kc(this.gcTime) && V(this, Qn, Vn.setTimeout(() => {
3707
3707
  this.optionalRemove();
3708
3708
  }, this.gcTime));
3709
3709
  }
@@ -3748,7 +3748,7 @@ var Qn, Mp, o0 = (Mp = class {
3748
3748
  !this.observers.length && this.state.fetchStatus === "idle" && I(this, yt).remove(this);
3749
3749
  }
3750
3750
  setData(t, n) {
3751
- const r = vc(this.state.data, t, this.options);
3751
+ const r = Ac(this.state.data, t, this.options);
3752
3752
  return re(this, St, en).call(this, {
3753
3753
  data: r,
3754
3754
  type: "success",
@@ -3776,7 +3776,7 @@ var Qn, Mp, o0 = (Mp = class {
3776
3776
  );
3777
3777
  }
3778
3778
  isDisabled() {
3779
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Lo || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
3779
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $o || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
3780
3780
  }
3781
3781
  isStatic() {
3782
3782
  return this.getObserversCount() > 0 ? this.observers.some(
@@ -3865,7 +3865,7 @@ var Qn, Mp, o0 = (Mp = class {
3865
3865
  initialPromise: n == null ? void 0 : n.initialPromise,
3866
3866
  fn: i.fetchFn,
3867
3867
  onCancel: (k) => {
3868
- k instanceof Tc && k.revert && this.setState({
3868
+ k instanceof Sc && k.revert && this.setState({
3869
3869
  ...I(this, Vr),
3870
3870
  fetchStatus: "idle"
3871
3871
  }), r.abort();
@@ -3897,7 +3897,7 @@ var Qn, Mp, o0 = (Mp = class {
3897
3897
  this
3898
3898
  ), k;
3899
3899
  } catch (k) {
3900
- if (k instanceof Tc) {
3900
+ if (k instanceof Sc) {
3901
3901
  if (k.silent)
3902
3902
  return I(this, De).promise;
3903
3903
  if (k.revert) {
@@ -4027,7 +4027,7 @@ function ld(e) {
4027
4027
  fetchStatus: "idle"
4028
4028
  };
4029
4029
  }
4030
- var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc, Bc, Uc, Ic, Fc, Dc, c0, Np, qb = (Np = class extends us {
4030
+ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Pc, Bc, Uc, Ic, Fc, Dc, Oc, c0, Np, qb = (Np = class extends us {
4031
4031
  constructor(t, n) {
4032
4032
  super();
4033
4033
  Z(this, pe);
@@ -4048,33 +4048,33 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4048
4048
  Z(this, rr);
4049
4049
  Z(this, Bn);
4050
4050
  Z(this, Zr, /* @__PURE__ */ new Set());
4051
- this.options = n, V(this, Xe, t), V(this, Pn, null), V(this, nn, Ac()), this.bindMethods(), this.setOptions(n);
4051
+ this.options = n, V(this, Xe, t), V(this, Pn, null), V(this, nn, Tc()), this.bindMethods(), this.setOptions(n);
4052
4052
  }
4053
4053
  bindMethods() {
4054
4054
  this.refetch = this.refetch.bind(this);
4055
4055
  }
4056
4056
  onSubscribe() {
4057
- this.listeners.size === 1 && (I(this, ce).addObserver(this), ud(I(this, ce), this.options) ? re(this, pe, Rs).call(this) : this.updateResult(), re(this, pe, Uc).call(this));
4057
+ this.listeners.size === 1 && (I(this, ce).addObserver(this), ud(I(this, ce), this.options) ? re(this, pe, Rs).call(this) : this.updateResult(), re(this, pe, Ic).call(this));
4058
4058
  }
4059
4059
  onUnsubscribe() {
4060
4060
  this.hasListeners() || this.destroy();
4061
4061
  }
4062
4062
  shouldFetchOnReconnect() {
4063
- return Oc(
4063
+ return Mc(
4064
4064
  I(this, ce),
4065
4065
  this.options,
4066
4066
  this.options.refetchOnReconnect
4067
4067
  );
4068
4068
  }
4069
4069
  shouldFetchOnWindowFocus() {
4070
- return Oc(
4070
+ return Mc(
4071
4071
  I(this, ce),
4072
4072
  this.options,
4073
4073
  this.options.refetchOnWindowFocus
4074
4074
  );
4075
4075
  }
4076
4076
  destroy() {
4077
- this.listeners = /* @__PURE__ */ new Set(), re(this, pe, Ic).call(this), re(this, pe, Fc).call(this), I(this, ce).removeObserver(this);
4077
+ this.listeners = /* @__PURE__ */ new Set(), re(this, pe, Fc).call(this), re(this, pe, Dc).call(this), I(this, ce).removeObserver(this);
4078
4078
  }
4079
4079
  setOptions(t) {
4080
4080
  const n = this.options, r = I(this, ce);
@@ -4082,7 +4082,7 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4082
4082
  throw new Error(
4083
4083
  "Expected enabled to be a boolean or a callback that returns a boolean"
4084
4084
  );
4085
- re(this, pe, Dc).call(this), I(this, ce).setOptions(this.options), n._defaulted && !zo(this.options, n) && I(this, Xe).getQueryCache().notify({
4085
+ re(this, pe, Oc).call(this), I(this, ce).setOptions(this.options), n._defaulted && !Lo(this.options, n) && I(this, Xe).getQueryCache().notify({
4086
4086
  type: "observerOptionsUpdated",
4087
4087
  query: I(this, ce),
4088
4088
  observer: this
@@ -4093,9 +4093,9 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4093
4093
  r,
4094
4094
  this.options,
4095
4095
  n
4096
- ) && re(this, pe, Rs).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);
4097
- const a = re(this, pe, Pc).call(this);
4098
- 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);
4096
+ ) && re(this, pe, Rs).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, Pc).call(this);
4097
+ const a = re(this, pe, Bc).call(this);
4098
+ 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, Uc).call(this, a);
4099
4099
  }
4100
4100
  getOptimisticResult(t) {
4101
4101
  const n = I(this, Xe).getQueryCache().build(I(this, Xe), t), r = this.createResult(n, t);
@@ -4153,7 +4153,7 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4153
4153
  a != null && a.isPlaceholderData && n.placeholderData === (i == null ? void 0 : i.placeholderData) ? (x = a.data, B = !0) : x = typeof n.placeholderData == "function" ? n.placeholderData(
4154
4154
  (b = I(this, Wr)) == null ? void 0 : b.state.data,
4155
4155
  I(this, Wr)
4156
- ) : n.placeholderData, x !== void 0 && (P = "success", m = vc(
4156
+ ) : n.placeholderData, x !== void 0 && (P = "success", m = Ac(
4157
4157
  a == null ? void 0 : a.data,
4158
4158
  x,
4159
4159
  n
@@ -4164,7 +4164,7 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4164
4164
  m = I(this, Kr);
4165
4165
  else
4166
4166
  try {
4167
- V(this, ya, n.select), m = n.select(m), m = vc(a == null ? void 0 : a.data, m, n), V(this, Kr, m), V(this, Pn, null);
4167
+ V(this, ya, n.select), m = n.select(m), m = Ac(a == null ? void 0 : a.data, m, n), V(this, Kr, m), V(this, Pn, null);
4168
4168
  } catch (x) {
4169
4169
  V(this, Pn, x);
4170
4170
  }
@@ -4201,7 +4201,7 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4201
4201
  const x = (T) => {
4202
4202
  h.status === "error" ? T.reject(h.error) : h.data !== void 0 && T.resolve(h.data);
4203
4203
  }, v = () => {
4204
- const T = V(this, nn, h.promise = Ac());
4204
+ const T = V(this, nn, h.promise = Tc());
4205
4205
  x(T);
4206
4206
  }, E = I(this, nn);
4207
4207
  switch (E.status) {
@@ -4220,7 +4220,7 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4220
4220
  }
4221
4221
  updateResult() {
4222
4222
  const t = I(this, je), n = this.createResult(I(this, ce), this.options);
4223
- if (V(this, tr, I(this, ce).state), V(this, qr, this.options), I(this, tr).data !== void 0 && V(this, Wr, I(this, ce)), zo(n, t))
4223
+ if (V(this, tr, I(this, ce).state), V(this, qr, this.options), I(this, tr).data !== void 0 && V(this, Wr, I(this, ce)), Lo(n, t))
4224
4224
  return;
4225
4225
  V(this, je, n);
4226
4226
  const r = () => {
@@ -4240,40 +4240,40 @@ var Xe, ce, ba, je, tr, qr, nn, Pn, ya, Kr, Wr, nr, rr, Bn, Zr, pe, Rs, Sc, Pc,
4240
4240
  re(this, pe, c0).call(this, { listeners: r() });
4241
4241
  }
4242
4242
  onQueryUpdate() {
4243
- this.updateResult(), this.hasListeners() && re(this, pe, Uc).call(this);
4243
+ this.updateResult(), this.hasListeners() && re(this, pe, Ic).call(this);
4244
4244
  }
4245
4245
  }, Xe = new WeakMap(), ce = new WeakMap(), ba = new WeakMap(), je = new WeakMap(), tr = new WeakMap(), qr = new WeakMap(), nn = new WeakMap(), Pn = new WeakMap(), ya = new WeakMap(), Kr = new WeakMap(), Wr = new WeakMap(), nr = new WeakMap(), rr = new WeakMap(), Bn = new WeakMap(), Zr = new WeakMap(), pe = new WeakSet(), Rs = function(t) {
4246
- re(this, pe, Dc).call(this);
4246
+ re(this, pe, Oc).call(this);
4247
4247
  let n = I(this, ce).fetch(
4248
4248
  this.options,
4249
4249
  t
4250
4250
  );
4251
4251
  return t != null && t.throwOnError || (n = n.catch(qe)), n;
4252
- }, Sc = function() {
4253
- re(this, pe, Ic).call(this);
4252
+ }, Pc = function() {
4253
+ re(this, pe, Fc).call(this);
4254
4254
  const t = On(
4255
4255
  this.options.staleTime,
4256
4256
  I(this, ce)
4257
4257
  );
4258
- if (lr || I(this, je).isStale || !Ec(t))
4258
+ if (lr || I(this, je).isStale || !kc(t))
4259
4259
  return;
4260
4260
  const r = t0(I(this, je).dataUpdatedAt, t) + 1;
4261
4261
  V(this, nr, Vn.setTimeout(() => {
4262
4262
  I(this, je).isStale || this.updateResult();
4263
4263
  }, r));
4264
- }, Pc = function() {
4264
+ }, Bc = function() {
4265
4265
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(I(this, ce)) : this.options.refetchInterval) ?? !1;
4266
- }, Bc = function(t) {
4267
- re(this, pe, Fc).call(this), V(this, Bn, t), !(lr || xt(this.options.enabled, I(this, ce)) === !1 || !Ec(I(this, Bn)) || I(this, Bn) === 0) && V(this, rr, Vn.setInterval(() => {
4266
+ }, Uc = function(t) {
4267
+ re(this, pe, Dc).call(this), V(this, Bn, t), !(lr || xt(this.options.enabled, I(this, ce)) === !1 || !kc(I(this, Bn)) || I(this, Bn) === 0) && V(this, rr, Vn.setInterval(() => {
4268
4268
  (this.options.refetchIntervalInBackground || Sl.isFocused()) && re(this, pe, Rs).call(this);
4269
4269
  }, I(this, Bn)));
4270
- }, Uc = function() {
4271
- re(this, pe, Sc).call(this), re(this, pe, Bc).call(this, re(this, pe, Pc).call(this));
4272
4270
  }, Ic = function() {
4273
- I(this, nr) && (Vn.clearTimeout(I(this, nr)), V(this, nr, void 0));
4271
+ re(this, pe, Pc).call(this), re(this, pe, Uc).call(this, re(this, pe, Bc).call(this));
4274
4272
  }, Fc = function() {
4275
- I(this, rr) && (Vn.clearInterval(I(this, rr)), V(this, rr, void 0));
4273
+ I(this, nr) && (Vn.clearTimeout(I(this, nr)), V(this, nr, void 0));
4276
4274
  }, Dc = function() {
4275
+ I(this, rr) && (Vn.clearInterval(I(this, rr)), V(this, rr, void 0));
4276
+ }, Oc = function() {
4277
4277
  const t = I(this, Xe).getQueryCache().build(I(this, Xe), this.options);
4278
4278
  if (t === I(this, ce))
4279
4279
  return;
@@ -4293,9 +4293,9 @@ function Kb(e, t) {
4293
4293
  return xt(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
4294
4294
  }
4295
4295
  function ud(e, t) {
4296
- return Kb(e, t) || e.state.data !== void 0 && Oc(e, t, t.refetchOnMount);
4296
+ return Kb(e, t) || e.state.data !== void 0 && Mc(e, t, t.refetchOnMount);
4297
4297
  }
4298
- function Oc(e, t, n) {
4298
+ function Mc(e, t, n) {
4299
4299
  if (xt(t.enabled, e) !== !1 && On(t.staleTime, e) !== "static") {
4300
4300
  const r = typeof n == "function" ? n(e) : n;
4301
4301
  return r === "always" || r !== !1 && Pl(e, t);
@@ -4309,7 +4309,7 @@ function Pl(e, t) {
4309
4309
  return xt(t.enabled, e) !== !1 && e.isStaleByTime(On(t.staleTime, e));
4310
4310
  }
4311
4311
  function Wb(e, t) {
4312
- return !zo(e.getCurrentResult(), t);
4312
+ return !Lo(e.getCurrentResult(), t);
4313
4313
  }
4314
4314
  function pd(e) {
4315
4315
  return {
@@ -4721,7 +4721,7 @@ function Wa(e) {
4721
4721
  var t;
4722
4722
  return (t = e.options.scope) == null ? void 0 : t.id;
4723
4723
  }
4724
- var sn, Un, Qe, an, dn, Mo, Mc, Lp, Jb = (Lp = class extends us {
4724
+ var sn, Un, Qe, an, dn, Mo, Rc, Lp, Jb = (Lp = class extends us {
4725
4725
  constructor(t, n) {
4726
4726
  super();
4727
4727
  Z(this, dn);
@@ -4737,7 +4737,7 @@ var sn, Un, Qe, an, dn, Mo, Mc, Lp, Jb = (Lp = class extends us {
4737
4737
  setOptions(t) {
4738
4738
  var r;
4739
4739
  const n = this.options;
4740
- this.options = I(this, sn).defaultMutationOptions(t), zo(this.options, n) || I(this, sn).getMutationCache().notify({
4740
+ this.options = I(this, sn).defaultMutationOptions(t), Lo(this.options, n) || I(this, sn).getMutationCache().notify({
4741
4741
  type: "observerOptionsUpdated",
4742
4742
  mutation: I(this, Qe),
4743
4743
  observer: this
@@ -4748,14 +4748,14 @@ var sn, Un, Qe, an, dn, Mo, Mc, Lp, Jb = (Lp = class extends us {
4748
4748
  this.hasListeners() || (t = I(this, Qe)) == null || t.removeObserver(this);
4749
4749
  }
4750
4750
  onMutationUpdate(t) {
4751
- re(this, dn, Mo).call(this), re(this, dn, Mc).call(this, t);
4751
+ re(this, dn, Mo).call(this), re(this, dn, Rc).call(this, t);
4752
4752
  }
4753
4753
  getCurrentResult() {
4754
4754
  return I(this, Un);
4755
4755
  }
4756
4756
  reset() {
4757
4757
  var t;
4758
- (t = I(this, Qe)) == null || t.removeObserver(this), V(this, Qe, void 0), re(this, dn, Mo).call(this), re(this, dn, Mc).call(this);
4758
+ (t = I(this, Qe)) == null || t.removeObserver(this), V(this, Qe, void 0), re(this, dn, Mo).call(this), re(this, dn, Rc).call(this);
4759
4759
  }
4760
4760
  mutate(t, n) {
4761
4761
  var r;
@@ -4773,7 +4773,7 @@ var sn, Un, Qe, an, dn, Mo, Mc, Lp, Jb = (Lp = class extends us {
4773
4773
  mutate: this.mutate,
4774
4774
  reset: this.reset
4775
4775
  });
4776
- }, Mc = function(t) {
4776
+ }, Rc = function(t) {
4777
4777
  Be.batch(() => {
4778
4778
  var n, r, s, a, o, i, c, l;
4779
4779
  if (I(this, an) && this.hasListeners()) {
@@ -4901,7 +4901,7 @@ var sn, Un, Qe, an, dn, Mo, Mc, Lp, Jb = (Lp = class extends us {
4901
4901
  mount() {
4902
4902
  ja(this, Dn)._++, I(this, Dn) === 1 && (V(this, Jr, Sl.subscribe(async (e) => {
4903
4903
  e && (await this.resumePausedMutations(), I(this, we).onFocus());
4904
- })), V(this, Yr, $o.subscribe(async (e) => {
4904
+ })), V(this, Yr, Ho.subscribe(async (e) => {
4905
4905
  e && (await this.resumePausedMutations(), I(this, we).onOnline());
4906
4906
  })));
4907
4907
  }
@@ -5029,7 +5029,7 @@ var sn, Un, Qe, an, dn, Mo, Mc, Lp, Jb = (Lp = class extends us {
5029
5029
  return e.behavior = pd(e.pages), this.ensureQueryData(e);
5030
5030
  }
5031
5031
  resumePausedMutations() {
5032
- return $o.isOnline() ? I(this, In).resumePausedMutations() : Promise.resolve();
5032
+ return Ho.isOnline() ? I(this, In).resumePausedMutations() : Promise.resolve();
5033
5033
  }
5034
5034
  getQueryCache() {
5035
5035
  return I(this, we);
@@ -5079,7 +5079,7 @@ var sn, Un, Qe, an, dn, Mo, Mc, Lp, Jb = (Lp = class extends us {
5079
5079
  return t.queryHash || (t.queryHash = Tl(
5080
5080
  t.queryKey,
5081
5081
  t
5082
- )), 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 === Lo && (t.enabled = !1), t;
5082
+ )), 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;
5083
5083
  }
5084
5084
  defaultMutationOptions(e) {
5085
5085
  return e != null && e._defaulted ? e : {
@@ -5230,13 +5230,13 @@ function hn(e, t) {
5230
5230
  throw s.error;
5231
5231
  return { ...s, mutate: a, mutateAsync: s.mutate };
5232
5232
  }
5233
- const my = Gp(null), Li = {
5233
+ const my = Gp(null), $i = {
5234
5234
  didCatch: !1,
5235
5235
  error: null
5236
5236
  };
5237
5237
  class hy extends Fh {
5238
5238
  constructor(t) {
5239
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Li;
5239
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = $i;
5240
5240
  }
5241
5241
  static getDerivedStateFromError(t) {
5242
5242
  return {
@@ -5254,7 +5254,7 @@ class hy extends Fh {
5254
5254
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
5255
5255
  args: a,
5256
5256
  reason: "imperative-api"
5257
- }), this.setState(Li);
5257
+ }), this.setState($i);
5258
5258
  }
5259
5259
  }
5260
5260
  componentDidCatch(t, n) {
@@ -5273,7 +5273,7 @@ class hy extends Fh {
5273
5273
  next: s,
5274
5274
  prev: t.resetKeys,
5275
5275
  reason: "keys"
5276
- }), this.setState(Li);
5276
+ }), this.setState($i);
5277
5277
  }
5278
5278
  }
5279
5279
  render() {
@@ -5336,9 +5336,9 @@ function gy(e, t = xy) {
5336
5336
  const bd = (e) => {
5337
5337
  const t = yy(e), n = (r) => gy(t, r);
5338
5338
  return Object.assign(n, t), n;
5339
- }, wy = ((e) => e ? bd(e) : bd), Rc = {}, yd = {
5339
+ }, wy = ((e) => e ? bd(e) : bd), Ro = {}, yd = {
5340
5340
  currentTime: Date.now(),
5341
- swapExecutions: [Rc],
5341
+ swapExecutions: [Ro],
5342
5342
  swapExecutionIndex: 0
5343
5343
  }, te = wy((e, t) => ({
5344
5344
  state: yd,
@@ -5346,10 +5346,14 @@ const bd = (e) => {
5346
5346
  updateSwapExecutionAtIndex: (n, r) => e((s) => {
5347
5347
  const a = [...s.state.swapExecutions];
5348
5348
  return a[n] = {
5349
- ...a[n] ?? Rc,
5349
+ ...a[n] ?? Ro,
5350
5350
  ...r
5351
5351
  }, { state: { ...s.state, swapExecutions: a } };
5352
5352
  }),
5353
+ resetSwapExecutionAtIndex: (n) => e((r) => {
5354
+ const s = [...r.state.swapExecutions];
5355
+ return s[n] = Ro, { state: { ...r.state, swapExecutions: s } };
5356
+ }),
5353
5357
  resetState: () => {
5354
5358
  const n = t().state;
5355
5359
  e({
@@ -5357,19 +5361,19 @@ const bd = (e) => {
5357
5361
  ...yd,
5358
5362
  currentTime: Date.now(),
5359
5363
  isMarketOrder: n.isMarketOrder,
5360
- swapExecutions: [...n.swapExecutions, Rc],
5364
+ swapExecutions: [...n.swapExecutions, Ro],
5361
5365
  swapExecutionIndex: n.swapExecutionIndex + 1
5362
5366
  }
5363
5367
  });
5364
5368
  }
5365
- })), ei = () => {
5366
- const e = te((s) => s.state.swapExecutionIndex), t = te(
5367
- (s) => s.state.swapExecutions[s.state.swapExecutionIndex] ?? {}
5368
- ), n = te((s) => s.updateSwapExecutionAtIndex), r = ke(
5369
- (s) => n(e, s),
5369
+ })), ti = () => {
5370
+ const e = te((a) => a.state.swapExecutionIndex), t = te(
5371
+ (a) => a.state.swapExecutions[a.state.swapExecutionIndex] ?? {}
5372
+ ), n = te((a) => a.updateSwapExecutionAtIndex), r = te((a) => a.resetSwapExecutionAtIndex), s = ke(
5373
+ (a) => n(e, a),
5370
5374
  [n, e]
5371
5375
  );
5372
- return W(() => ({ ...t, update: r }), [t, r]);
5376
+ return W(() => ({ ...t, update: s, resetSwap: r }), [t, s, r]);
5373
5377
  };
5374
5378
  var Ht = /* @__PURE__ */ ((e) => (e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILED = 3] = "FAILED", e))(Ht || {}), jn = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.APPROVE = "approve", e.CREATE = "create", e))(jn || {});
5375
5379
  const Ey = "1.2.3";
@@ -5444,7 +5448,7 @@ function Dr(e) {
5444
5448
  }
5445
5449
  return t;
5446
5450
  }
5447
- function Ho(e) {
5451
+ function Go(e) {
5448
5452
  var t;
5449
5453
  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";
5450
5454
  }
@@ -5470,7 +5474,7 @@ function Sy(e) {
5470
5474
  return bn(y0, e);
5471
5475
  }
5472
5476
  const x0 = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
5473
- function ti(e) {
5477
+ function ni(e) {
5474
5478
  return x0.test(e);
5475
5479
  }
5476
5480
  function Py(e) {
@@ -5704,7 +5708,7 @@ function Zy(e, t, n) {
5704
5708
  }
5705
5709
  return t ? `${t}:${e}${r}` : `${e}${r}`;
5706
5710
  }
5707
- const $i = /* @__PURE__ */ new Map([
5711
+ const Hi = /* @__PURE__ */ new Map([
5708
5712
  // Unnamed
5709
5713
  ["address", { type: "address" }],
5710
5714
  ["bool", { type: "bool" }],
@@ -5853,8 +5857,8 @@ const t6 = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\]
5853
5857
  function fn(e, t) {
5854
5858
  var p, f;
5855
5859
  const n = Zy(e, t == null ? void 0 : t.type, t == null ? void 0 : t.structs);
5856
- if ($i.has(n))
5857
- return $i.get(n);
5860
+ if (Hi.has(n))
5861
+ return Hi.get(n);
5858
5862
  const r = m0.test(e), s = bn(r ? n6 : t6, e);
5859
5863
  if (!s)
5860
5864
  throw new Ly({ param: e });
@@ -5896,7 +5900,7 @@ function fn(e, t) {
5896
5900
  ...o,
5897
5901
  ...l
5898
5902
  };
5899
- return $i.set(n, d), d;
5903
+ return Hi.set(n, d), d;
5900
5904
  }
5901
5905
  function at(e, t = [], n = "", r = 0) {
5902
5906
  const s = e.trim().length;
@@ -5933,7 +5937,7 @@ function Ul(e) {
5933
5937
  const t = {}, n = e.length;
5934
5938
  for (let o = 0; o < n; o++) {
5935
5939
  const i = e[o];
5936
- if (!ti(i))
5940
+ if (!ni(i))
5937
5941
  continue;
5938
5942
  const c = Py(i);
5939
5943
  if (!c)
@@ -5991,7 +5995,7 @@ function C0(e) {
5991
5995
  const t = Ul(e), n = [], r = e.length;
5992
5996
  for (let s = 0; s < r; s++) {
5993
5997
  const a = e[s];
5994
- ti(a) || n.push(Lc(a, t));
5998
+ ni(a) || n.push(Lc(a, t));
5995
5999
  }
5996
6000
  return n;
5997
6001
  }
@@ -6003,7 +6007,7 @@ function wd(e) {
6003
6007
  const n = Ul(e), r = e.length;
6004
6008
  for (let s = 0; s < r; s++) {
6005
6009
  const a = e[s];
6006
- if (!ti(a)) {
6010
+ if (!ni(a)) {
6007
6011
  t = Lc(a, n);
6008
6012
  break;
6009
6013
  }
@@ -6023,7 +6027,7 @@ function Ed(e) {
6023
6027
  const n = Ul(e), r = e.length;
6024
6028
  for (let s = 0; s < r; s++) {
6025
6029
  const a = e[s];
6026
- if (ti(a))
6030
+ if (ni(a))
6027
6031
  continue;
6028
6032
  const o = at(a), i = o.length;
6029
6033
  for (let c = 0; c < i; c++)
@@ -6044,13 +6048,13 @@ function q(e, t, n) {
6044
6048
  function Ut(e, { includeName: t = !1 } = {}) {
6045
6049
  if (e.type !== "function" && e.type !== "event" && e.type !== "error")
6046
6050
  throw new E6(e.type);
6047
- return `${e.name}(${ni(e.inputs, { includeName: t })})`;
6051
+ return `${e.name}(${ri(e.inputs, { includeName: t })})`;
6048
6052
  }
6049
- function ni(e, { includeName: t = !1 } = {}) {
6053
+ function ri(e, { includeName: t = !1 } = {}) {
6050
6054
  return e ? e.map((n) => c6(n, { includeName: t })).join(t ? ", " : ",") : "";
6051
6055
  }
6052
6056
  function c6(e, { includeName: t }) {
6053
- return e.type.startsWith("tuple") ? `(${ni(e.components, { includeName: t })})${e.type.slice(5)}` : e.type + (t && e.name ? ` ${e.name}` : "");
6057
+ return e.type.startsWith("tuple") ? `(${ri(e.components, { includeName: t })})${e.type.slice(5)}` : e.type + (t && e.name ? ` ${e.name}` : "");
6054
6058
  }
6055
6059
  function Gt(e, { strict: t = !0 } = {}) {
6056
6060
  return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
@@ -6145,7 +6149,7 @@ class T0 extends z {
6145
6149
  super([`Data size of ${r} bytes is too small for given parameters.`].join(`
6146
6150
  `), {
6147
6151
  metaMessages: [
6148
- `Params: (${ni(n, { includeName: !0 })})`,
6152
+ `Params: (${ri(n, { includeName: !0 })})`,
6149
6153
  `Data: ${t} (${r} bytes)`
6150
6154
  ],
6151
6155
  name: "AbiDecodingDataSizeTooSmallError"
@@ -6334,14 +6338,14 @@ let x6 = class extends z {
6334
6338
  });
6335
6339
  }
6336
6340
  };
6337
- class Go extends z {
6341
+ class jo extends z {
6338
6342
  constructor({ abiItem: t, data: n, params: r, size: s }) {
6339
6343
  super([
6340
6344
  `Data size of ${s} bytes is too small for non-indexed event parameters.`
6341
6345
  ].join(`
6342
6346
  `), {
6343
6347
  metaMessages: [
6344
- `Params: (${ni(r, { includeName: !0 })})`,
6348
+ `Params: (${ri(r, { includeName: !0 })})`,
6345
6349
  `Data: ${n} (${s} bytes)`
6346
6350
  ],
6347
6351
  name: "DecodeLogDataMismatch"
@@ -6663,7 +6667,7 @@ function Rn(...e) {
6663
6667
  for (let t = 0; t < e.length; t++)
6664
6668
  e[t].fill(0);
6665
6669
  }
6666
- function Hi(e) {
6670
+ function Gi(e) {
6667
6671
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
6668
6672
  }
6669
6673
  function Rt(e, t) {
@@ -6684,7 +6688,7 @@ function X6(e) {
6684
6688
  throw new Error("string expected");
6685
6689
  return new Uint8Array(new TextEncoder().encode(e));
6686
6690
  }
6687
- function ri(e) {
6691
+ function si(e) {
6688
6692
  return typeof e == "string" && (e = X6(e)), dr(e), e;
6689
6693
  }
6690
6694
  function Q6(...e) {
@@ -6702,8 +6706,8 @@ function Q6(...e) {
6702
6706
  }
6703
6707
  class Fl {
6704
6708
  }
6705
- function si(e) {
6706
- const t = (r) => e().update(ri(r)).digest(), n = e();
6709
+ function ai(e) {
6710
+ const t = (r) => e().update(si(r)).digest(), n = e();
6707
6711
  return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
6708
6712
  }
6709
6713
  function J6(e = 32) {
@@ -6761,7 +6765,7 @@ class Dl extends Fl {
6761
6765
  Ud(this.state32), o2(this.state32, this.rounds), Ud(this.state32), this.posOut = 0, this.pos = 0;
6762
6766
  }
6763
6767
  update(t) {
6764
- ss(this), t = ri(t), dr(t);
6768
+ ss(this), t = si(t), dr(t);
6765
6769
  const { blockLen: n, state: r } = this, s = t.length;
6766
6770
  for (let a = 0; a < s; ) {
6767
6771
  const o = Math.min(n - this.pos, s - a);
@@ -6812,7 +6816,7 @@ class Dl extends Fl {
6812
6816
  return t || (t = new Dl(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;
6813
6817
  }
6814
6818
  }
6815
- const i2 = (e, t, n) => si(() => new Dl(t, e, n)), L0 = i2(1, 136, 256 / 8);
6819
+ const i2 = (e, t, n) => ai(() => new Dl(t, e, n)), L0 = i2(1, 136, 256 / 8);
6816
6820
  function Ne(e, t) {
6817
6821
  const n = t || "hex", r = L0(Gt(e, { strict: !1 }) ? cn(e) : e);
6818
6822
  return n === "bytes" ? r : le(r);
@@ -6847,13 +6851,13 @@ function u2(e) {
6847
6851
  return s;
6848
6852
  }
6849
6853
  const d2 = (e) => {
6850
- const t = typeof e == "string" ? e : Ho(e);
6854
+ const t = typeof e == "string" ? e : Go(e);
6851
6855
  return u2(t);
6852
6856
  };
6853
6857
  function $0(e) {
6854
6858
  return l2(d2(e));
6855
6859
  }
6856
- const ai = $0;
6860
+ const oi = $0;
6857
6861
  let Ue = class extends z {
6858
6862
  constructor({ address: t }) {
6859
6863
  super(`Address "${t}" is invalid.`, {
@@ -6885,28 +6889,28 @@ let Ue = class extends z {
6885
6889
  return this;
6886
6890
  }
6887
6891
  };
6888
- const Gi = /* @__PURE__ */ new ps(8192);
6892
+ const ji = /* @__PURE__ */ new ps(8192);
6889
6893
  function Ca(e, t) {
6890
- if (Gi.has(`${e}.${t}`))
6891
- return Gi.get(`${e}.${t}`);
6894
+ if (ji.has(`${e}.${t}`))
6895
+ return ji.get(`${e}.${t}`);
6892
6896
  const n = e.substring(2).toLowerCase(), r = Ne(ar(n), "bytes"), s = n.split("");
6893
6897
  for (let o = 0; o < 40; o += 2)
6894
6898
  r[o >> 1] >> 4 >= 8 && s[o] && (s[o] = s[o].toUpperCase()), (r[o >> 1] & 15) >= 8 && s[o + 1] && (s[o + 1] = s[o + 1].toUpperCase());
6895
6899
  const a = `0x${s.join("")}`;
6896
- return Gi.set(`${e}.${t}`, a), a;
6900
+ return ji.set(`${e}.${t}`, a), a;
6897
6901
  }
6898
6902
  function Ol(e, t) {
6899
6903
  if (!be(e, { strict: !1 }))
6900
6904
  throw new Ue({ address: e });
6901
6905
  return Ca(e, t);
6902
6906
  }
6903
- const p2 = /^0x[a-fA-F0-9]{40}$/, ji = /* @__PURE__ */ new ps(8192);
6907
+ const p2 = /^0x[a-fA-F0-9]{40}$/, Vi = /* @__PURE__ */ new ps(8192);
6904
6908
  function be(e, t) {
6905
6909
  const { strict: n = !0 } = t ?? {}, r = `${e}.${n}`;
6906
- if (ji.has(r))
6907
- return ji.get(r);
6910
+ if (Vi.has(r))
6911
+ return Vi.get(r);
6908
6912
  const s = p2.test(e) ? e.toLowerCase() === e ? !0 : n ? Ca(e) === e : !0 : !1;
6909
- return ji.set(r, s), s;
6913
+ return Vi.set(r, s), s;
6910
6914
  }
6911
6915
  function wt(e) {
6912
6916
  return typeof e[0] == "string" ? ct(e) : f2(e);
@@ -7139,7 +7143,7 @@ function Nl(e) {
7139
7143
  }
7140
7144
  const va = (e) => pr($0(e), 0, 4);
7141
7145
  function Er(e) {
7142
- const { abi: t, args: n = [], name: r } = e, s = Gt(r, { strict: !1 }), a = t.filter((i) => s ? i.type === "function" ? va(i) === r : i.type === "event" ? ai(i) === r : !1 : "name" in i && i.name === r);
7146
+ const { abi: t, args: n = [], name: r } = e, s = Gt(r, { strict: !1 }), a = t.filter((i) => s ? i.type === "function" ? va(i) === r : i.type === "event" ? oi(i) === r : !1 : "name" in i && i.name === r);
7143
7147
  if (a.length === 0)
7144
7148
  return;
7145
7149
  if (a.length === 1)
@@ -7217,7 +7221,7 @@ function Aa(e) {
7217
7221
  }
7218
7222
  if (s.type !== "event")
7219
7223
  throw new vd(void 0, { docsPath: Dd });
7220
- const a = Ut(s), o = ai(a);
7224
+ const a = Ut(s), o = oi(a);
7221
7225
  let i = [];
7222
7226
  if (r && "inputs" in s) {
7223
7227
  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])) ?? [] : [];
@@ -7232,7 +7236,7 @@ function Od({ param: e, value: t }) {
7232
7236
  throw new k6(e.type);
7233
7237
  return wr([e], [t]);
7234
7238
  }
7235
- function oi(e, { method: t }) {
7239
+ function ii(e, { method: t }) {
7236
7240
  var r, s;
7237
7241
  const n = {};
7238
7242
  return e.transport.type === "fallback" && ((s = (r = e.transport).onResponse) == null || s.call(r, ({ method: a, response: o, status: i, transport: c }) => {
@@ -7240,7 +7244,7 @@ function oi(e, { method: t }) {
7240
7244
  })), ((a) => n[a] || e.request);
7241
7245
  }
7242
7246
  async function K0(e, t) {
7243
- const { address: n, abi: r, args: s, eventName: a, fromBlock: o, strict: i, toBlock: c } = t, l = oi(e, {
7247
+ const { address: n, abi: r, args: s, eventName: a, fromBlock: o, strict: i, toBlock: c } = t, l = ii(e, {
7244
7248
  method: "eth_newFilter"
7245
7249
  }), d = a ? Aa({
7246
7250
  abi: r,
@@ -8005,7 +8009,7 @@ class Q2 extends z {
8005
8009
  });
8006
8010
  }
8007
8011
  }
8008
- class ii extends z {
8012
+ class ci extends z {
8009
8013
  constructor({ data: t, message: n }) {
8010
8014
  super(n || "", { name: "RawContractError" }), Object.defineProperty(this, "code", {
8011
8015
  enumerable: !0,
@@ -8517,7 +8521,7 @@ class Y2 extends st {
8517
8521
  }
8518
8522
  const e5 = 3;
8519
8523
  function mr(e, { abi: t, address: n, args: r, docsPath: s, functionName: a, sender: o }) {
8520
- 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 ka ? new X2({ functionName: a }) : [e5, fr.code].includes(c) && (l || d || p || f) || c === Nn.code && d === "execution reverted" && l ? new Vc({
8524
+ const i = e instanceof ci ? 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 ka ? new X2({ functionName: a }) : [e5, fr.code].includes(c) && (l || d || p || f) || c === Nn.code && d === "execution reverted" && l ? new Vc({
8521
8525
  abi: t,
8522
8526
  data: typeof l == "object" ? l.data : l,
8523
8527
  functionName: a,
@@ -8611,7 +8615,7 @@ function a5(e) {
8611
8615
  ]));
8612
8616
  return r === "bytes" ? ot(a) : a;
8613
8617
  }
8614
- async function ci(e) {
8618
+ async function li(e) {
8615
8619
  const { authorization: t, signature: n } = e;
8616
8620
  return nf({
8617
8621
  hash: a5(t),
@@ -8830,7 +8834,7 @@ class Pa extends z {
8830
8834
  });
8831
8835
  }
8832
8836
  }
8833
- function li(e, t) {
8837
+ function ui(e, t) {
8834
8838
  const n = (e.details || "").toLowerCase(), r = e instanceof z ? e.walk((s) => (s == null ? void 0 : s.code) === Or.code) : e;
8835
8839
  return r instanceof z ? new Or({
8836
8840
  cause: e,
@@ -8854,7 +8858,7 @@ function li(e, t) {
8854
8858
  }
8855
8859
  function i5(e, { docsPath: t, ...n }) {
8856
8860
  const r = (() => {
8857
- const s = li(e, n);
8861
+ const s = ui(e, n);
8858
8862
  return s instanceof Pa ? e : s;
8859
8863
  })();
8860
8864
  return new o5(r, {
@@ -8874,7 +8878,7 @@ function kr(e, { format: t }) {
8874
8878
  const s = t(e || {});
8875
8879
  return r(s), n;
8876
8880
  }
8877
- function ui(e, t) {
8881
+ function di(e, t) {
8878
8882
  return ({ exclude: n, format: r }) => ({
8879
8883
  exclude: n,
8880
8884
  format: (s, a) => {
@@ -8901,7 +8905,7 @@ function Ot(e, t) {
8901
8905
  const n = {};
8902
8906
  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;
8903
8907
  }
8904
- const Gl = /* @__PURE__ */ ui("transactionRequest", Ot);
8908
+ const Gl = /* @__PURE__ */ di("transactionRequest", Ot);
8905
8909
  function l5(e) {
8906
8910
  return e.map((t) => ({
8907
8911
  address: t.address,
@@ -9029,7 +9033,7 @@ function Cr(e, t) {
9029
9033
  }
9030
9034
  })(), 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;
9031
9035
  }
9032
- const di = /* @__PURE__ */ ui("transaction", Cr);
9036
+ const pi = /* @__PURE__ */ di("transaction", Cr);
9033
9037
  function f5(e) {
9034
9038
  return e.map((t) => ({
9035
9039
  address: t.address,
@@ -9060,7 +9064,7 @@ function ql(e, t) {
9060
9064
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
9061
9065
  };
9062
9066
  }
9063
- const Kl = /* @__PURE__ */ ui("block", ql);
9067
+ const Kl = /* @__PURE__ */ di("block", ql);
9064
9068
  async function Bt(e, { blockHash: t, blockNumber: n, blockTag: r = e.experimental_blockTag ?? "latest", includeTransactions: s } = {}) {
9065
9069
  var l, d, p;
9066
9070
  const a = s ?? !1, o = n !== void 0 ? H(n) : void 0;
@@ -9200,15 +9204,15 @@ function x5(e, t, n) {
9200
9204
  }
9201
9205
  class uf extends Fl {
9202
9206
  constructor(t, n, r, s) {
9203
- 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);
9207
+ super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(t), this.view = Gi(this.buffer);
9204
9208
  }
9205
9209
  update(t) {
9206
- ss(this), t = ri(t), dr(t);
9210
+ ss(this), t = si(t), dr(t);
9207
9211
  const { view: n, buffer: r, blockLen: s } = this, a = t.length;
9208
9212
  for (let o = 0; o < a; ) {
9209
9213
  const i = Math.min(s - this.pos, a - o);
9210
9214
  if (i === s) {
9211
- const c = Hi(t);
9215
+ const c = Gi(t);
9212
9216
  for (; s <= a - o; o += s)
9213
9217
  this.process(c, o);
9214
9218
  continue;
@@ -9225,7 +9229,7 @@ class uf extends Fl {
9225
9229
  for (let p = o; p < s; p++)
9226
9230
  n[p] = 0;
9227
9231
  b5(r, s - 8, BigInt(this.length * 8), a), this.process(r, 0);
9228
- const i = Hi(t), c = this.outputLen;
9232
+ const i = Gi(t), c = this.outputLen;
9229
9233
  if (c % 4)
9230
9234
  throw new Error("_sha2: outputLen should be aligned to 32bit");
9231
9235
  const l = c / 4, d = this.get();
@@ -9514,7 +9518,7 @@ class C5 extends pf {
9514
9518
  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;
9515
9519
  }
9516
9520
  }
9517
- const Jl = /* @__PURE__ */ si(() => new w5()), v5 = /* @__PURE__ */ si(() => new pf()), A5 = /* @__PURE__ */ si(() => new C5()), ff = Jl;
9521
+ const Jl = /* @__PURE__ */ ai(() => new w5()), v5 = /* @__PURE__ */ ai(() => new pf()), A5 = /* @__PURE__ */ ai(() => new C5()), ff = Jl;
9518
9522
  function mf(e, t) {
9519
9523
  const n = t || "hex", r = ff(Gt(e, { strict: !1 }) ? cn(e) : e);
9520
9524
  return n === "bytes" ? r : le(r);
@@ -9617,9 +9621,9 @@ function eu(e) {
9617
9621
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
9618
9622
  throw new V2({ transaction: e });
9619
9623
  }
9620
- function pi(e, { docsPath: t, ...n }) {
9624
+ function fi(e, { docsPath: t, ...n }) {
9621
9625
  const r = (() => {
9622
- const s = li(e, n);
9626
+ const s = ui(e, n);
9623
9627
  return s instanceof Pa ? e : s;
9624
9628
  })();
9625
9629
  return new K2(r, {
@@ -9694,7 +9698,7 @@ async function tu(e, t) {
9694
9698
  }
9695
9699
  };
9696
9700
  } catch (T) {
9697
- throw pi(T, {
9701
+ throw fi(T, {
9698
9702
  ...t,
9699
9703
  chain: e.chain
9700
9704
  });
@@ -9707,7 +9711,7 @@ const nu = [
9707
9711
  "gas",
9708
9712
  "nonce",
9709
9713
  "type"
9710
- ], jd = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new ps(128);
9714
+ ], jd = /* @__PURE__ */ new Map(), qi = /* @__PURE__ */ new ps(128);
9711
9715
  async function Ba(e, t) {
9712
9716
  var k, O, N;
9713
9717
  let n = t;
@@ -9741,9 +9745,9 @@ async function Ba(e, t) {
9741
9745
  i != null && i.fn && ((k = i.runAt) != null && k.includes("beforeFillTransaction")) && (n = await i.fn({ ...n, chain: s }, {
9742
9746
  phase: "beforeFillTransaction"
9743
9747
  }), p ?? (p = n.nonce));
9744
- const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && n.kzg && n.blobs || Vi.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof n.chainId != "number" || o.includes("nonce") && typeof p != "number" || o.includes("fees") && typeof n.gasPrice != "bigint" && (typeof n.maxFeePerGas != "bigint" || typeof n.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof n.gas != "bigint")) ? await q(e, tu, "fillTransaction")({ ...n, nonce: p }).then((R) => {
9748
+ const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && n.kzg && n.blobs || qi.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof n.chainId != "number" || o.includes("nonce") && typeof p != "number" || o.includes("fees") && typeof n.gasPrice != "bigint" && (typeof n.maxFeePerGas != "bigint" || typeof n.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof n.gas != "bigint")) ? await q(e, tu, "fillTransaction")({ ...n, nonce: p }).then((R) => {
9745
9749
  const { chainId: h, from: b, gas: x, gasPrice: v, nonce: E, maxFeePerBlobGas: T, maxFeePerGas: D, maxPriorityFeePerGas: w, type: A, ...F } = R.transaction;
9746
- return Vi.set(e.uid, !0), {
9750
+ return qi.set(e.uid, !0), {
9747
9751
  ...n,
9748
9752
  ...b ? { from: b } : {},
9749
9753
  ...A ? { type: A } : {},
@@ -9762,7 +9766,7 @@ async function Ba(e, t) {
9762
9766
  return h.name !== "TransactionExecutionError" || ((x = h.walk) == null ? void 0 : x.call(h, (v) => {
9763
9767
  const E = v;
9764
9768
  return E.name === "MethodNotFoundRpcError" || E.name === "MethodNotSupportedRpcError";
9765
- })) && Vi.set(e.uid, !1), n;
9769
+ })) && qi.set(e.uid, !1), n;
9766
9770
  }) : n;
9767
9771
  p ?? (p = m.nonce), n = {
9768
9772
  ...m,
@@ -9858,7 +9862,7 @@ async function ru(e, t) {
9858
9862
  if (t.to)
9859
9863
  return t.to;
9860
9864
  if (t.authorizationList && t.authorizationList.length > 0)
9861
- return await ci({
9865
+ return await li({
9862
9866
  authorization: t.authorizationList[0]
9863
9867
  }).catch(() => {
9864
9868
  throw new z("`to` is required. Could not infer from `authorizationList`");
@@ -9937,11 +9941,11 @@ function Ua(e, t) {
9937
9941
  return e.toLowerCase() === t.toLowerCase();
9938
9942
  }
9939
9943
  const Vd = "/docs/contract/decodeEventLog";
9940
- function jo(e) {
9944
+ function Vo(e) {
9941
9945
  const { abi: t, data: n, strict: r, topics: s } = e, a = r ?? !0, [o, ...i] = s;
9942
9946
  if (!o)
9943
9947
  throw new m6({ docsPath: Vd });
9944
- const c = t.find((g) => g.type === "event" && o === ai(Ut(g)));
9948
+ const c = t.find((g) => g.type === "event" && o === oi(Ut(g)));
9945
9949
  if (!(c && "name" in c) || c.type !== "event")
9946
9950
  throw new h6(o, { docsPath: Vd });
9947
9951
  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);
@@ -9971,7 +9975,7 @@ function jo(e) {
9971
9975
  f[y[P].name] = g[P];
9972
9976
  } catch (g) {
9973
9977
  if (a)
9974
- throw g instanceof T0 || g instanceof Z0 ? new Go({
9978
+ throw g instanceof T0 || g instanceof Z0 ? new jo({
9975
9979
  abiItem: c,
9976
9980
  data: n,
9977
9981
  params: y,
@@ -9979,7 +9983,7 @@ function jo(e) {
9979
9983
  }) : g;
9980
9984
  }
9981
9985
  else if (a)
9982
- throw new Go({
9986
+ throw new jo({
9983
9987
  abiItem: c,
9984
9988
  data: "0x",
9985
9989
  params: y,
@@ -10001,13 +10005,13 @@ function su(e) {
10001
10005
  })();
10002
10006
  return r.map((o) => {
10003
10007
  var d;
10004
- const i = t.filter((p) => p.type === "event" && o.topics[0] === ai(p));
10008
+ const i = t.filter((p) => p.type === "event" && o.topics[0] === oi(p));
10005
10009
  if (i.length === 0)
10006
10010
  return null;
10007
10011
  let c, l;
10008
10012
  for (const p of i)
10009
10013
  try {
10010
- c = jo({
10014
+ c = Vo({
10011
10015
  ...o,
10012
10016
  abi: [p],
10013
10017
  strict: !0
@@ -10018,7 +10022,7 @@ function su(e) {
10018
10022
  if (!c && !s) {
10019
10023
  l = i[0];
10020
10024
  try {
10021
- c = jo({
10025
+ c = Vo({
10022
10026
  ...o,
10023
10027
  abi: [l],
10024
10028
  strict: !1
@@ -10120,20 +10124,20 @@ async function Ef(e, t) {
10120
10124
  strict: l
10121
10125
  });
10122
10126
  }
10123
- const qi = "/docs/contract/decodeFunctionResult";
10127
+ const Ki = "/docs/contract/decodeFunctionResult";
10124
10128
  function vr(e) {
10125
10129
  const { abi: t, args: n, functionName: r, data: s } = e;
10126
10130
  let a = t[0];
10127
10131
  if (r) {
10128
10132
  const i = Er({ abi: t, args: n, name: r });
10129
10133
  if (!i)
10130
- throw new ns(r, { docsPath: qi });
10134
+ throw new ns(r, { docsPath: Ki });
10131
10135
  a = i;
10132
10136
  }
10133
10137
  if (a.type !== "function")
10134
- throw new ns(void 0, { docsPath: qi });
10138
+ throw new ns(void 0, { docsPath: Ki });
10135
10139
  if (!a.outputs)
10136
- throw new P0(a.name, { docsPath: qi });
10140
+ throw new P0(a.name, { docsPath: Ki });
10137
10141
  const o = Ta(a.outputs, s);
10138
10142
  if (o && o.length > 1)
10139
10143
  return o;
@@ -10183,7 +10187,7 @@ function qd(e) {
10183
10187
  if (e >= Qt.a && e <= Qt.f)
10184
10188
  return e - (Qt.a - 10);
10185
10189
  }
10186
- function Vo(e) {
10190
+ function qo(e) {
10187
10191
  if (typeof e != "string")
10188
10192
  throw new Error("hex string expected, got " + typeof e);
10189
10193
  if (Cf)
@@ -10209,7 +10213,7 @@ function vf(e) {
10209
10213
  return iu(e), kf(la(Uint8Array.from(e).reverse()));
10210
10214
  }
10211
10215
  function Fa(e, t) {
10212
- return Vo(e.toString(16).padStart(t * 2, "0"));
10216
+ return qo(e.toString(16).padStart(t * 2, "0"));
10213
10217
  }
10214
10218
  function Af(e, t) {
10215
10219
  return Fa(e, t).reverse();
@@ -10218,7 +10222,7 @@ function bt(e, t, n) {
10218
10222
  let r;
10219
10223
  if (typeof t == "string")
10220
10224
  try {
10221
- r = Vo(t);
10225
+ r = qo(t);
10222
10226
  } catch (a) {
10223
10227
  throw new Error(e + " must be hex string or Uint8Array, cause: " + a);
10224
10228
  }
@@ -10231,7 +10235,7 @@ function bt(e, t, n) {
10231
10235
  throw new Error(e + " of length " + n + " expected, got " + s);
10232
10236
  return r;
10233
10237
  }
10234
- function qo(...e) {
10238
+ function Ko(...e) {
10235
10239
  let t = 0;
10236
10240
  for (let r = 0; r < e.length; r++) {
10237
10241
  const s = e[r];
@@ -10244,9 +10248,9 @@ function qo(...e) {
10244
10248
  }
10245
10249
  return n;
10246
10250
  }
10247
- const Ki = (e) => typeof e == "bigint" && ou <= e;
10251
+ const Wi = (e) => typeof e == "bigint" && ou <= e;
10248
10252
  function cu(e, t, n) {
10249
- return Ki(e) && Ki(t) && Ki(n) && t <= e && e < n;
10253
+ return Wi(e) && Wi(t) && Wi(n) && t <= e && e < n;
10250
10254
  }
10251
10255
  function zr(e, t, n, r) {
10252
10256
  if (!cu(t, n, r))
@@ -10258,7 +10262,7 @@ function M5(e) {
10258
10262
  ;
10259
10263
  return t;
10260
10264
  }
10261
- const fi = (e) => (tl << BigInt(e)) - tl, Wi = (e) => new Uint8Array(e), Kd = (e) => Uint8Array.from(e);
10265
+ const mi = (e) => (tl << BigInt(e)) - tl, Zi = (e) => new Uint8Array(e), Kd = (e) => Uint8Array.from(e);
10262
10266
  function R5(e, t, n) {
10263
10267
  if (typeof e != "number" || e < 2)
10264
10268
  throw new Error("hashLen must be a number");
@@ -10266,10 +10270,10 @@ function R5(e, t, n) {
10266
10270
  throw new Error("qByteLen must be a number");
10267
10271
  if (typeof n != "function")
10268
10272
  throw new Error("hmacFn must be a function");
10269
- let r = Wi(e), s = Wi(e), a = 0;
10273
+ let r = Zi(e), s = Zi(e), a = 0;
10270
10274
  const o = () => {
10271
10275
  r.fill(1), s.fill(0), a = 0;
10272
- }, i = (...p) => n(s, r, ...p), c = (p = Wi(0)) => {
10276
+ }, i = (...p) => n(s, r, ...p), c = (p = Zi(0)) => {
10273
10277
  s = i(Kd([0]), p), r = i(), p.length !== 0 && (s = i(Kd([1]), p), r = i());
10274
10278
  }, l = () => {
10275
10279
  if (a++ >= 1e3)
@@ -10281,7 +10285,7 @@ function R5(e, t, n) {
10281
10285
  const m = r.slice();
10282
10286
  f.push(m), p += r.length;
10283
10287
  }
10284
- return qo(...f);
10288
+ return Ko(...f);
10285
10289
  };
10286
10290
  return (p, f) => {
10287
10291
  o(), c(p);
@@ -10302,7 +10306,7 @@ const N5 = {
10302
10306
  field: (e, t) => t.Fp.isValid(e),
10303
10307
  hash: (e) => typeof e == "function" && Number.isSafeInteger(e.outputLen)
10304
10308
  };
10305
- function mi(e, t, n = {}) {
10309
+ function hi(e, t, n = {}) {
10306
10310
  const r = (s, a, o) => {
10307
10311
  const i = N5[a];
10308
10312
  if (typeof i != "function")
@@ -10468,7 +10472,7 @@ function Sf(e, t = {}) {
10468
10472
  s++;
10469
10473
  return r = n === "left" ? r.slice(s) : r.slice(0, r.length - s), r;
10470
10474
  }
10471
- function hi(e, t) {
10475
+ function bi(e, t) {
10472
10476
  if (Te(e) > t)
10473
10477
  throw new ux({
10474
10478
  givenSize: Te(e),
@@ -10548,7 +10552,7 @@ function Z5(e) {
10548
10552
  function $n(e, t = {}) {
10549
10553
  const { size: n } = t;
10550
10554
  let r = e;
10551
- n && (hi(e, n), r = yr(e, n));
10555
+ n && (bi(e, n), r = yr(e, n));
10552
10556
  let s = r.slice(2);
10553
10557
  s.length % 2 && (s = `0${s}`);
10554
10558
  const a = s.length / 2, o = new Uint8Array(a);
@@ -10674,19 +10678,19 @@ function cx(e, t = {}) {
10674
10678
  function Ee(...e) {
10675
10679
  return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
10676
10680
  }
10677
- function bi(e) {
10681
+ function yi(e) {
10678
10682
  return e instanceof Uint8Array ? Me(e) : Array.isArray(e) ? Me(new Uint8Array(e)) : e;
10679
10683
  }
10680
10684
  function Ff(e, t = {}) {
10681
10685
  const n = `0x${Number(e)}`;
10682
- return typeof t.size == "number" ? (hi(n, t.size), br(n, t.size)) : n;
10686
+ return typeof t.size == "number" ? (bi(n, t.size), br(n, t.size)) : n;
10683
10687
  }
10684
10688
  function Me(e, t = {}) {
10685
10689
  let n = "";
10686
10690
  for (let s = 0; s < e.length; s++)
10687
10691
  n += ix[e[s]];
10688
10692
  const r = `0x${n}`;
10689
- return typeof t.size == "number" ? (hi(r, t.size), yr(r, t.size)) : r;
10693
+ return typeof t.size == "number" ? (bi(r, t.size), yr(r, t.size)) : r;
10690
10694
  }
10691
10695
  function j(e, t = {}) {
10692
10696
  const { signed: n, size: r } = t, s = BigInt(e);
@@ -10732,7 +10736,7 @@ function nl(e) {
10732
10736
  }
10733
10737
  function ve(e, t = {}) {
10734
10738
  const { signed: n } = t;
10735
- t.size && hi(e, t.size);
10739
+ t.size && bi(e, t.size);
10736
10740
  const r = BigInt(e);
10737
10741
  if (!n)
10738
10742
  return r;
@@ -10870,7 +10874,7 @@ function Nf(e) {
10870
10874
  }
10871
10875
  };
10872
10876
  }
10873
- const Ko = [
10877
+ const Wo = [
10874
10878
  {
10875
10879
  inputs: [
10876
10880
  {
@@ -11432,18 +11436,18 @@ let ms = class extends z {
11432
11436
  super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
11433
11437
  }
11434
11438
  };
11435
- const Zi = "/docs/contract/encodeDeployData";
11436
- function yi(e) {
11439
+ const Xi = "/docs/contract/encodeDeployData";
11440
+ function xi(e) {
11437
11441
  const { abi: t, args: n, bytecode: r } = e;
11438
11442
  if (!n || n.length === 0)
11439
11443
  return r;
11440
11444
  const s = t.find((o) => "type" in o && o.type === "constructor");
11441
11445
  if (!s)
11442
- throw new l6({ docsPath: Zi });
11446
+ throw new l6({ docsPath: Xi });
11443
11447
  if (!("inputs" in s))
11444
- throw new kd({ docsPath: Zi });
11448
+ throw new kd({ docsPath: Xi });
11445
11449
  if (!s.inputs || s.inputs.length === 0)
11446
- throw new kd({ docsPath: Zi });
11450
+ throw new kd({ docsPath: Xi });
11447
11451
  const a = wr(s.inputs, n);
11448
11452
  return ct([r, a]);
11449
11453
  }
@@ -11468,7 +11472,7 @@ function hs({ blockNumber: e, chain: t, contract: n }) {
11468
11472
  }
11469
11473
  function du(e, { docsPath: t, ...n }) {
11470
11474
  const r = (() => {
11471
- const s = li(e, n);
11475
+ const s = ui(e, n);
11472
11476
  return s instanceof Pa ? e : s;
11473
11477
  })();
11474
11478
  return new ef(r, {
@@ -11484,7 +11488,7 @@ function pu() {
11484
11488
  e = r, t = s;
11485
11489
  }), resolve: e, reject: t };
11486
11490
  }
11487
- const Xi = /* @__PURE__ */ new Map();
11491
+ const Qi = /* @__PURE__ */ new Map();
11488
11492
  function jf({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
11489
11493
  const a = async () => {
11490
11494
  const d = c();
@@ -11502,7 +11506,7 @@ function jf({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
11502
11506
  y == null || y(f);
11503
11507
  }
11504
11508
  });
11505
- }, o = () => Xi.delete(t), i = () => c().map(({ args: d }) => d), c = () => Xi.get(t) || [], l = (d) => Xi.set(t, [...c(), d]);
11509
+ }, o = () => Qi.delete(t), i = () => c().map(({ args: d }) => d), c = () => Qi.get(t) || [], l = (d) => Qi.set(t, [...c(), d]);
11506
11510
  return {
11507
11511
  flush: o,
11508
11512
  async schedule(d) {
@@ -11511,7 +11515,7 @@ function jf({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
11511
11515
  }
11512
11516
  };
11513
11517
  }
11514
- async function xi(e, t) {
11518
+ async function gi(e, t) {
11515
11519
  var T, D, w, A;
11516
11520
  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: C, nonce: U, to: k, value: O, stateOverride: N, ...R } = t, h = n ? me(n) : void 0;
11517
11521
  if (d && (f || m))
@@ -11569,7 +11573,7 @@ async function xi(e, t) {
11569
11573
  });
11570
11574
  return J === "0x" ? { data: void 0 } : { data: J };
11571
11575
  } catch (F) {
11572
- const S = kx(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-CdQrdE_M.js");
11576
+ const S = kx(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-C721gG5U.js");
11573
11577
  if (e.ccipRead !== !1 && (S == null ? void 0 : S.slice(0, 10)) === L && k)
11574
11578
  return { data: await M(e, { data: S, to: k }) };
11575
11579
  throw v && (S == null ? void 0 : S.slice(0, 10)) === "0x101bb98d" ? new Q2({ factory: f }) : du(F, {
@@ -11609,7 +11613,7 @@ async function wx(e, t) {
11609
11613
  callData: k.data,
11610
11614
  target: k.to
11611
11615
  })), C = lt({
11612
- abi: Ko,
11616
+ abi: Wo,
11613
11617
  args: [B],
11614
11618
  functionName: "aggregate3"
11615
11619
  }), U = await e.request({
@@ -11627,7 +11631,7 @@ async function wx(e, t) {
11627
11631
  ]
11628
11632
  });
11629
11633
  return vr({
11630
- abi: Ko,
11634
+ abi: Wo,
11631
11635
  args: [B],
11632
11636
  functionName: "aggregate3",
11633
11637
  data: U || "0x"
@@ -11635,12 +11639,12 @@ async function wx(e, t) {
11635
11639
  }
11636
11640
  }), [{ returnData: m, success: y }] = await f({ data: i, to: c });
11637
11641
  if (!y)
11638
- throw new ii({ data: m });
11642
+ throw new ci({ data: m });
11639
11643
  return m === "0x" ? { data: void 0 } : { data: m };
11640
11644
  }
11641
11645
  function Vf(e) {
11642
11646
  const { code: t, data: n } = e;
11643
- return yi({
11647
+ return xi({
11644
11648
  abi: C0(["constructor(bytes, bytes)"]),
11645
11649
  bytecode: Hf,
11646
11650
  args: [t, n]
@@ -11648,7 +11652,7 @@ function Vf(e) {
11648
11652
  }
11649
11653
  function Ex(e) {
11650
11654
  const { data: t, factory: n, factoryData: r, to: s } = e;
11651
- return yi({
11655
+ return xi({
11652
11656
  abi: C0(["constructor(address, bytes, address, bytes)"]),
11653
11657
  bytecode: hx,
11654
11658
  args: [s, t, n, r]
@@ -11668,7 +11672,7 @@ async function It(e, t) {
11668
11672
  functionName: a
11669
11673
  });
11670
11674
  try {
11671
- const { data: c } = await q(e, xi, "call")({
11675
+ const { data: c } = await q(e, gi, "call")({
11672
11676
  ...o,
11673
11677
  data: i,
11674
11678
  to: r
@@ -11692,7 +11696,7 @@ async function It(e, t) {
11692
11696
  async function Cx(e, t) {
11693
11697
  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 });
11694
11698
  try {
11695
- const { data: d } = await q(e, xi, "call")({
11699
+ const { data: d } = await q(e, gi, "call")({
11696
11700
  batch: !1,
11697
11701
  data: `${l}${a ? a.replace("0x", "") : ""}`,
11698
11702
  to: r,
@@ -11727,12 +11731,12 @@ async function Cx(e, t) {
11727
11731
  });
11728
11732
  }
11729
11733
  }
11730
- const Qi = /* @__PURE__ */ new Map(), tp = /* @__PURE__ */ new Map();
11734
+ const Ji = /* @__PURE__ */ new Map(), tp = /* @__PURE__ */ new Map();
11731
11735
  let vx = 0;
11732
11736
  function mn(e, t, n) {
11733
- const r = ++vx, s = () => Qi.get(e) || [], a = () => {
11737
+ const r = ++vx, s = () => Ji.get(e) || [], a = () => {
11734
11738
  const d = s();
11735
- Qi.set(e, d.filter((p) => p.id !== r));
11739
+ Ji.set(e, d.filter((p) => p.id !== r));
11736
11740
  }, o = () => {
11737
11741
  const d = s();
11738
11742
  if (!d.some((f) => f.id === r))
@@ -11745,7 +11749,7 @@ function mn(e, t, n) {
11745
11749
  }
11746
11750
  a();
11747
11751
  }, i = s();
11748
- if (Qi.set(e, [
11752
+ if (Ji.set(e, [
11749
11753
  ...i,
11750
11754
  { id: r, fns: t }
11751
11755
  ]), i && i.length > 0)
@@ -11814,7 +11818,7 @@ async function Ma(e, { cacheTime: t = e.cacheTime } = {}) {
11814
11818
  }), { cacheKey: Bx(e.uid), cacheTime: t });
11815
11819
  return BigInt(n);
11816
11820
  }
11817
- async function gi(e, { filter: t }) {
11821
+ async function wi(e, { filter: t }) {
11818
11822
  const n = "strict" in t && t.strict, r = await t.request({
11819
11823
  method: "eth_getFilterChanges",
11820
11824
  params: [t.id]
@@ -11828,7 +11832,7 @@ async function gi(e, { filter: t }) {
11828
11832
  strict: n
11829
11833
  });
11830
11834
  }
11831
- async function wi(e, { filter: t }) {
11835
+ async function Ei(e, { filter: t }) {
11832
11836
  return t.request({
11833
11837
  method: "eth_uninstallFilter",
11834
11838
  params: [t.id]
@@ -11872,7 +11876,7 @@ function Ux(e, t) {
11872
11876
  try {
11873
11877
  let h;
11874
11878
  if (k)
11875
- h = await q(e, gi, "getFilterChanges")({ filter: k });
11879
+ h = await q(e, wi, "getFilterChanges")({ filter: k });
11876
11880
  else {
11877
11881
  const b = await q(e, Ma, "getBlockNumber")({});
11878
11882
  U && U < b ? h = await q(e, Ef, "getContractEvents")({
@@ -11900,7 +11904,7 @@ function Ux(e, t) {
11900
11904
  interval: p
11901
11905
  });
11902
11906
  return async () => {
11903
- k && await q(e, wi, "uninstallFilter")({ filter: k }), N();
11907
+ k && await q(e, Ei, "uninstallFilter")({ filter: k }), N();
11904
11908
  };
11905
11909
  });
11906
11910
  })() : (() => {
@@ -11935,7 +11939,7 @@ function Ux(e, t) {
11935
11939
  return;
11936
11940
  const b = h.result;
11937
11941
  try {
11938
- const { eventName: v, args: E } = jo({
11942
+ const { eventName: v, args: E } = Vo({
11939
11943
  abi: n,
11940
11944
  data: b.data,
11941
11945
  topics: b.topics,
@@ -11947,7 +11951,7 @@ function Ux(e, t) {
11947
11951
  k.onLogs([T]);
11948
11952
  } catch (v) {
11949
11953
  let E, T;
11950
- if (v instanceof Go || v instanceof Il) {
11954
+ if (v instanceof jo || v instanceof Il) {
11951
11955
  if (f)
11952
11956
  return;
11953
11957
  E = v.abiItem.name, T = (x = v.abiItem.inputs) == null ? void 0 : x.some((w) => !("name" in w && w.name));
@@ -12005,8 +12009,8 @@ async function mu(e, { serializedTransaction: t }) {
12005
12009
  params: [t]
12006
12010
  }, { retryCount: 0 });
12007
12011
  }
12008
- const Ji = new ps(128);
12009
- async function Ei(e, t) {
12012
+ const Yi = new ps(128);
12013
+ async function ki(e, t) {
12010
12014
  var C, U, k, O;
12011
12015
  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;
12012
12016
  if (typeof n > "u")
@@ -12020,7 +12024,7 @@ async function Ei(e, t) {
12020
12024
  if (t.to)
12021
12025
  return t.to;
12022
12026
  if (t.to !== null && a && a.length > 0)
12023
- return await ci({
12027
+ return await li({
12024
12028
  authorization: a[0]
12025
12029
  }).catch(() => {
12026
12030
  throw new z("`to` is required. Could not infer from `authorizationList`.");
@@ -12050,7 +12054,7 @@ async function Ei(e, t) {
12050
12054
  to: N,
12051
12055
  type: y,
12052
12056
  value: g
12053
- }, "sendTransaction"), v = Ji.get(e.uid), E = v ? "wallet_sendTransaction" : "eth_sendTransaction";
12057
+ }, "sendTransaction"), v = Yi.get(e.uid), E = v ? "wallet_sendTransaction" : "eth_sendTransaction";
12054
12058
  try {
12055
12059
  return await e.request({
12056
12060
  method: E,
@@ -12064,9 +12068,9 @@ async function Ei(e, t) {
12064
12068
  return await e.request({
12065
12069
  method: "wallet_sendTransaction",
12066
12070
  params: [x]
12067
- }, { retryCount: 0 }).then((w) => (Ji.set(e.uid, !0), w)).catch((w) => {
12071
+ }, { retryCount: 0 }).then((w) => (Yi.set(e.uid, !0), w)).catch((w) => {
12068
12072
  const A = w;
12069
- throw A.name === "MethodNotFoundRpcError" || A.name === "MethodNotSupportedRpcError" ? (Ji.set(e.uid, !1), D) : A;
12073
+ throw A.name === "MethodNotFoundRpcError" || A.name === "MethodNotSupportedRpcError" ? (Yi.set(e.uid, !1), D) : A;
12070
12074
  });
12071
12075
  throw D;
12072
12076
  }
@@ -12109,7 +12113,7 @@ async function Ei(e, t) {
12109
12113
  type: B == null ? void 0 : B.type
12110
12114
  });
12111
12115
  } catch (N) {
12112
- throw N instanceof ir ? N : pi(N, {
12116
+ throw N instanceof ir ? N : fi(N, {
12113
12117
  ...t,
12114
12118
  account: B,
12115
12119
  chain: t.chain || void 0
@@ -12117,7 +12121,7 @@ async function Ei(e, t) {
12117
12121
  }
12118
12122
  }
12119
12123
  async function da(e, t) {
12120
- return da.internal(e, Ei, "sendTransaction", t);
12124
+ return da.internal(e, ki, "sendTransaction", t);
12121
12125
  }
12122
12126
  (function(e) {
12123
12127
  async function t(n, r, s, a) {
@@ -12163,7 +12167,7 @@ class Ix extends z {
12163
12167
  }), this.result = t;
12164
12168
  }
12165
12169
  }
12166
- function Wo(e, { delay: t = 100, retryCount: n = 2, shouldRetry: r = () => !0 } = {}) {
12170
+ function Zo(e, { delay: t = 100, retryCount: n = 2, shouldRetry: r = () => !0 } = {}) {
12167
12171
  return new Promise((s, a) => {
12168
12172
  const o = async ({ count: i = 0 } = {}) => {
12169
12173
  const c = async ({ error: l }) => {
@@ -12186,7 +12190,7 @@ const qf = {
12186
12190
  "0x0": "reverted",
12187
12191
  "0x1": "success"
12188
12192
  };
12189
- function ki(e, t) {
12193
+ function Ci(e, t) {
12190
12194
  const n = {
12191
12195
  ...e,
12192
12196
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
@@ -12202,7 +12206,7 @@ function ki(e, t) {
12202
12206
  };
12203
12207
  return e.blobGasPrice && (n.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (n.blobGasUsed = BigInt(e.blobGasUsed)), n;
12204
12208
  }
12205
- const hu = /* @__PURE__ */ ui("transactionReceipt", ki), Kf = "0x5792579257925792579257925792579257925792579257925792579257925792", Wf = H(0, {
12209
+ const hu = /* @__PURE__ */ di("transactionReceipt", Ci), Kf = "0x5792579257925792579257925792579257925792579257925792579257925792", Wf = H(0, {
12206
12210
  size: 32
12207
12211
  });
12208
12212
  async function Zf(e, t) {
@@ -12253,7 +12257,7 @@ async function Zf(e, t) {
12253
12257
  }
12254
12258
  const y = [];
12255
12259
  for (const B of p) {
12256
- const C = Ei(e, {
12260
+ const C = ki(e, {
12257
12261
  account: d,
12258
12262
  chain: s,
12259
12263
  data: B.data,
@@ -12274,7 +12278,7 @@ async function Zf(e, t) {
12274
12278
  ])
12275
12279
  };
12276
12280
  }
12277
- throw pi(f, {
12281
+ throw fi(f, {
12278
12282
  ...t,
12279
12283
  account: d,
12280
12284
  chain: t.chain
@@ -12339,7 +12343,7 @@ async function Qf(e, t) {
12339
12343
  clearTimeout(m), P(), C(), y();
12340
12344
  };
12341
12345
  try {
12342
- const C = await Wo(async () => {
12346
+ const C = await Zo(async () => {
12343
12347
  const U = await q(e, Xf, "getCallsStatus")({ id: n });
12344
12348
  if (c && U.status === "failure")
12345
12349
  throw new Ix(U);
@@ -12428,41 +12432,41 @@ function Dx(e) {
12428
12432
  args: "inputs" in s && s.inputs && s.inputs.length > 0 ? Ta(s.inputs, pr(n, 4)) : void 0
12429
12433
  };
12430
12434
  }
12431
- const Yi = "/docs/contract/encodeErrorResult";
12435
+ const ec = "/docs/contract/encodeErrorResult";
12432
12436
  function np(e) {
12433
12437
  const { abi: t, errorName: n, args: r } = e;
12434
12438
  let s = t[0];
12435
12439
  if (n) {
12436
12440
  const c = Er({ abi: t, args: r, name: n });
12437
12441
  if (!c)
12438
- throw new Cd(n, { docsPath: Yi });
12442
+ throw new Cd(n, { docsPath: ec });
12439
12443
  s = c;
12440
12444
  }
12441
12445
  if (s.type !== "error")
12442
- throw new Cd(void 0, { docsPath: Yi });
12446
+ throw new Cd(void 0, { docsPath: ec });
12443
12447
  const a = Ut(s), o = va(a);
12444
12448
  let i = "0x";
12445
12449
  if (r && r.length > 0) {
12446
12450
  if (!s.inputs)
12447
- throw new f6(s.name, { docsPath: Yi });
12451
+ throw new f6(s.name, { docsPath: ec });
12448
12452
  i = wr(s.inputs, r);
12449
12453
  }
12450
12454
  return ct([o, i]);
12451
12455
  }
12452
- const ec = "/docs/contract/encodeFunctionResult";
12456
+ const tc = "/docs/contract/encodeFunctionResult";
12453
12457
  function Ox(e) {
12454
12458
  const { abi: t, functionName: n, result: r } = e;
12455
12459
  let s = t[0];
12456
12460
  if (n) {
12457
12461
  const o = Er({ abi: t, name: n });
12458
12462
  if (!o)
12459
- throw new ns(n, { docsPath: ec });
12463
+ throw new ns(n, { docsPath: tc });
12460
12464
  s = o;
12461
12465
  }
12462
12466
  if (s.type !== "function")
12463
- throw new ns(void 0, { docsPath: ec });
12467
+ throw new ns(void 0, { docsPath: tc });
12464
12468
  if (!s.outputs)
12465
- throw new P0(s.name, { docsPath: ec });
12469
+ throw new P0(s.name, { docsPath: tc });
12466
12470
  const a = (() => {
12467
12471
  if (s.outputs.length === 0)
12468
12472
  return [];
@@ -12474,12 +12478,12 @@ function Ox(e) {
12474
12478
  })();
12475
12479
  return wr(s.outputs, a);
12476
12480
  }
12477
- const Ci = "x-batch-gateway:true";
12481
+ const vi = "x-batch-gateway:true";
12478
12482
  async function Mx(e) {
12479
12483
  const { data: t, ccipRequest: n } = e, { args: [r] } = Dx({ abi: rl, data: t }), s = [], a = [];
12480
12484
  return await Promise.all(r.map(async (o, i) => {
12481
12485
  try {
12482
- a[i] = o.urls.includes(Ci) ? await Mx({ data: o.data, ccipRequest: n }) : await n(o), s[i] = !1;
12486
+ a[i] = o.urls.includes(vi) ? await Mx({ data: o.data, ccipRequest: n }) : await n(o), s[i] = !1;
12483
12487
  } catch (c) {
12484
12488
  s[i] = !0, a[i] = Rx(c);
12485
12489
  }
@@ -12564,7 +12568,7 @@ async function zx(e, t) {
12564
12568
  args: [
12565
12569
  le(yu(a)),
12566
12570
  f,
12567
- o ?? [Ci]
12571
+ o ?? [vi]
12568
12572
  ],
12569
12573
  blockNumber: n,
12570
12574
  blockTag: r
@@ -12792,7 +12796,7 @@ async function rm(e, t) {
12792
12796
  functionName: "text",
12793
12797
  args: [il(a), s]
12794
12798
  }),
12795
- o ?? [Ci]
12799
+ o ?? [vi]
12796
12800
  ],
12797
12801
  functionName: "resolveWithGateways",
12798
12802
  blockNumber: n,
@@ -12851,7 +12855,7 @@ async function Yx(e, t) {
12851
12855
  const d = {
12852
12856
  address: l,
12853
12857
  abi: fx,
12854
- args: [n, a, o ?? [Ci]],
12858
+ args: [n, a, o ?? [vi]],
12855
12859
  functionName: "reverseWithGateways",
12856
12860
  blockNumber: r,
12857
12861
  blockTag: s
@@ -12936,7 +12940,7 @@ async function sm(e, t) {
12936
12940
  }
12937
12941
  }
12938
12942
  async function t8(e) {
12939
- const t = oi(e, {
12943
+ const t = ii(e, {
12940
12944
  method: "eth_newBlockFilter"
12941
12945
  }), n = await e.request({
12942
12946
  method: "eth_newBlockFilter"
@@ -12944,7 +12948,7 @@ async function t8(e) {
12944
12948
  return { id: n, request: t(n), type: "block" };
12945
12949
  }
12946
12950
  async function am(e, { address: t, args: n, event: r, events: s, fromBlock: a, strict: o, toBlock: i } = {}) {
12947
- const c = s ?? (r ? [r] : void 0), l = oi(e, {
12951
+ const c = s ?? (r ? [r] : void 0), l = ii(e, {
12948
12952
  method: "eth_newFilter"
12949
12953
  });
12950
12954
  let d = [];
@@ -12977,7 +12981,7 @@ async function am(e, { address: t, args: n, event: r, events: s, fromBlock: a, s
12977
12981
  };
12978
12982
  }
12979
12983
  async function om(e) {
12980
- const t = oi(e, {
12984
+ const t = ii(e, {
12981
12985
  method: "eth_newPendingTransactionFilter"
12982
12986
  }), n = await e.request({
12983
12987
  method: "eth_newPendingTransactionFilter"
@@ -13008,7 +13012,7 @@ async function s8(e, { blockHash: t, blockNumber: n, blockTag: r = "latest" } =
13008
13012
  params: [s || r]
13009
13013
  }, { dedupe: !!s }), it(a);
13010
13014
  }
13011
- async function Zo(e, { address: t, blockNumber: n, blockTag: r = "latest" }) {
13015
+ async function Xo(e, { address: t, blockNumber: n, blockTag: r = "latest" }) {
13012
13016
  const s = n !== void 0 ? H(n) : void 0, a = await e.request({
13013
13017
  method: "eth_getCode",
13014
13018
  params: [t, s || r]
@@ -13181,7 +13185,7 @@ function Ra(e) {
13181
13185
  }
13182
13186
  return t;
13183
13187
  }
13184
- function Xo(e, t) {
13188
+ function Qo(e, t) {
13185
13189
  const n = eu(e);
13186
13190
  return n === "eip1559" ? y8(e, t) : n === "eip2930" ? x8(e, t) : n === "eip4844" ? b8(e, t) : n === "eip7702" ? h8(e, t) : g8(e, t);
13187
13191
  }
@@ -13349,7 +13353,7 @@ function w8(e) {
13349
13353
  return t;
13350
13354
  }
13351
13355
  async function E8({ address: e, authorization: t, signature: n }) {
13352
- return Ua(Ol(e), await ci({
13356
+ return Ua(Ol(e), await li({
13353
13357
  authorization: t,
13354
13358
  signature: n
13355
13359
  }));
@@ -13379,7 +13383,7 @@ function C8(e, t = {}) {
13379
13383
  method: l
13380
13384
  });
13381
13385
  const d = s ? rs(`${c}.${Ie(n)}`) : void 0;
13382
- return k8(() => Wo(async () => {
13386
+ return k8(() => Zo(async () => {
13383
13387
  try {
13384
13388
  return await e(n);
13385
13389
  } catch (f) {
@@ -13824,7 +13828,7 @@ class L8 extends Map {
13824
13828
  }
13825
13829
  const $8 = {
13826
13830
  checksum: /* @__PURE__ */ new L8(8192)
13827
- }, tc = $8.checksum;
13831
+ }, nc = $8.checksum;
13828
13832
  function Na(e, t = {}) {
13829
13833
  const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = L0(lu(e));
13830
13834
  return n === "Bytes" ? r : Me(r);
@@ -13961,7 +13965,7 @@ let X8 = class extends K {
13961
13965
  super(`Value \`${t}\` is an invalid public key size.`, {
13962
13966
  metaMessages: [
13963
13967
  "Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",
13964
- `Received ${Te(bi(t))} bytes.`
13968
+ `Received ${Te(yi(t))} bytes.`
13965
13969
  ]
13966
13970
  }), Object.defineProperty(this, "name", {
13967
13971
  enumerable: !0,
@@ -13990,27 +13994,27 @@ function Ft(e, t = {}) {
13990
13994
  }
13991
13995
  }
13992
13996
  function ku(e) {
13993
- if (tc.has(e))
13994
- return tc.get(e);
13997
+ if (nc.has(e))
13998
+ return nc.get(e);
13995
13999
  Ft(e, { strict: !1 });
13996
14000
  const t = e.substring(2).toLowerCase(), n = Na(Bf(t), { as: "Bytes" }), r = t.split("");
13997
14001
  for (let a = 0; a < 40; a += 2)
13998
14002
  n[a >> 1] >> 4 >= 8 && r[a] && (r[a] = r[a].toUpperCase()), (n[a >> 1] & 15) >= 8 && r[a + 1] && (r[a + 1] = r[a + 1].toUpperCase());
13999
14003
  const s = `0x${r.join("")}`;
14000
- return tc.set(e, s), s;
14004
+ return nc.set(e, s), s;
14001
14005
  }
14002
14006
  function J8(e, t = {}) {
14003
14007
  const { checksum: n = !1 } = t;
14004
14008
  return Ft(e), n ? ku(e) : e;
14005
14009
  }
14006
- function Ro(e, t = {}) {
14010
+ function No(e, t = {}) {
14007
14011
  const n = Na(`0x${Eu(e).slice(4)}`).substring(26);
14008
14012
  return J8(`0x${n}`, t);
14009
14013
  }
14010
14014
  function cl(e, t) {
14011
14015
  return Ft(e, { strict: !1 }), Ft(t, { strict: !1 }), e.toLowerCase() === t.toLowerCase();
14012
14016
  }
14013
- function Qo(e, t = {}) {
14017
+ function Jo(e, t = {}) {
14014
14018
  const { strict: n = !0 } = t ?? {};
14015
14019
  try {
14016
14020
  return Ft(e, { strict: n }), !0;
@@ -14792,7 +14796,7 @@ function km(e) {
14792
14796
  class Cm extends Fl {
14793
14797
  constructor(t, n) {
14794
14798
  super(), this.finished = !1, this.destroyed = !1, V6(t);
14795
- const r = ri(n);
14799
+ const r = si(n);
14796
14800
  if (this.iHash = t.create(), typeof this.iHash.update != "function")
14797
14801
  throw new Error("Expected instance of class which extends utils.Hash");
14798
14802
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
@@ -14930,7 +14934,7 @@ function _g(e) {
14930
14934
  BYTES: "isSafeInteger",
14931
14935
  BITS: "isSafeInteger"
14932
14936
  }, n = Ng.reduce((r, s) => (r[s] = "function", r), t);
14933
- return mi(e, n);
14937
+ return hi(e, n);
14934
14938
  }
14935
14939
  function zg(e, t, n) {
14936
14940
  if (n < et)
@@ -14971,7 +14975,7 @@ function xs(e, t, n = !1, r = {}) {
14971
14975
  isLE: n,
14972
14976
  BITS: s,
14973
14977
  BYTES: a,
14974
- MASK: fi(s),
14978
+ MASK: mi(s),
14975
14979
  ZERO: et,
14976
14980
  ONE: Ke,
14977
14981
  create: (c) => Ye(c, e),
@@ -15030,7 +15034,7 @@ function Lg(e, t, n = !1) {
15030
15034
  }
15031
15035
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
15032
15036
  const pp = BigInt(0), pl = BigInt(1);
15033
- function nc(e, t) {
15037
+ function rc(e, t) {
15034
15038
  const n = t.negate();
15035
15039
  return e ? n : t;
15036
15040
  }
@@ -15038,9 +15042,9 @@ function Dm(e, t) {
15038
15042
  if (!Number.isSafeInteger(e) || e <= 0 || e > t)
15039
15043
  throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
15040
15044
  }
15041
- function rc(e, t) {
15045
+ function sc(e, t) {
15042
15046
  Dm(e, t);
15043
- const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), s = 2 ** e, a = fi(e), o = BigInt(e);
15047
+ const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), s = 2 ** e, a = mi(e), o = BigInt(e);
15044
15048
  return { windows: n, windowSize: r, mask: a, maxNumber: s, shiftBy: o };
15045
15049
  }
15046
15050
  function fp(e, t, n) {
@@ -15066,15 +15070,15 @@ function Hg(e, t) {
15066
15070
  throw new Error("invalid scalar at index " + r);
15067
15071
  });
15068
15072
  }
15069
- const sc = /* @__PURE__ */ new WeakMap(), Om = /* @__PURE__ */ new WeakMap();
15070
- function ac(e) {
15073
+ const ac = /* @__PURE__ */ new WeakMap(), Om = /* @__PURE__ */ new WeakMap();
15074
+ function oc(e) {
15071
15075
  return Om.get(e) || 1;
15072
15076
  }
15073
15077
  function Gg(e, t) {
15074
15078
  return {
15075
- constTimeNegate: nc,
15079
+ constTimeNegate: rc,
15076
15080
  hasPrecomputes(n) {
15077
- return ac(n) !== 1;
15081
+ return oc(n) !== 1;
15078
15082
  },
15079
15083
  // non-const time multiplication ladder
15080
15084
  unsafeLadder(n, r, s = e.ZERO) {
@@ -15096,7 +15100,7 @@ function Gg(e, t) {
15096
15100
  * @returns precomputed point tables flattened to a single array
15097
15101
  */
15098
15102
  precomputeWindow(n, r) {
15099
- const { windows: s, windowSize: a } = rc(r, t), o = [];
15103
+ const { windows: s, windowSize: a } = sc(r, t), o = [];
15100
15104
  let i = n, c = i;
15101
15105
  for (let l = 0; l < s; l++) {
15102
15106
  c = i, o.push(c);
@@ -15115,10 +15119,10 @@ function Gg(e, t) {
15115
15119
  */
15116
15120
  wNAF(n, r, s) {
15117
15121
  let a = e.ZERO, o = e.BASE;
15118
- const i = rc(n, t);
15122
+ const i = sc(n, t);
15119
15123
  for (let c = 0; c < i.windows; c++) {
15120
15124
  const { nextN: l, offset: d, isZero: p, isNeg: f, isNegF: m, offsetF: y } = fp(s, c, i);
15121
- s = l, p ? o = o.add(nc(m, r[y])) : a = a.add(nc(f, r[d]));
15125
+ s = l, p ? o = o.add(rc(m, r[y])) : a = a.add(rc(f, r[d]));
15122
15126
  }
15123
15127
  return { p: a, f: o };
15124
15128
  },
@@ -15131,7 +15135,7 @@ function Gg(e, t) {
15131
15135
  * @returns point
15132
15136
  */
15133
15137
  wNAFUnsafe(n, r, s, a = e.ZERO) {
15134
- const o = rc(n, t);
15138
+ const o = sc(n, t);
15135
15139
  for (let i = 0; i < o.windows && s !== pp; i++) {
15136
15140
  const { nextN: c, offset: l, isZero: d, isNeg: p } = fp(s, i, o);
15137
15141
  if (s = c, !d) {
@@ -15142,22 +15146,22 @@ function Gg(e, t) {
15142
15146
  return a;
15143
15147
  },
15144
15148
  getPrecomputes(n, r, s) {
15145
- let a = sc.get(r);
15146
- return a || (a = this.precomputeWindow(r, n), n !== 1 && sc.set(r, s(a))), a;
15149
+ let a = ac.get(r);
15150
+ return a || (a = this.precomputeWindow(r, n), n !== 1 && ac.set(r, s(a))), a;
15147
15151
  },
15148
15152
  wNAFCached(n, r, s) {
15149
- const a = ac(n);
15153
+ const a = oc(n);
15150
15154
  return this.wNAF(a, this.getPrecomputes(a, n, s), r);
15151
15155
  },
15152
15156
  wNAFCachedUnsafe(n, r, s, a) {
15153
- const o = ac(n);
15157
+ const o = oc(n);
15154
15158
  return o === 1 ? this.unsafeLadder(n, r, a) : this.wNAFUnsafe(o, this.getPrecomputes(o, n, s), r, a);
15155
15159
  },
15156
15160
  // We calculate precomputes for elliptic curve point multiplication
15157
15161
  // using windowed method. This specifies window size and
15158
15162
  // stores precomputed values. Usually only base point would be precomputed.
15159
15163
  setWindowSize(n, r) {
15160
- Dm(r, t), Om.set(n, r), sc.delete(n);
15164
+ Dm(r, t), Om.set(n, r), ac.delete(n);
15161
15165
  }
15162
15166
  };
15163
15167
  }
@@ -15169,7 +15173,7 @@ function jg(e, t, n, r) {
15169
15173
  const o = e.ZERO, i = M5(BigInt(s));
15170
15174
  let c = 1;
15171
15175
  i > 12 ? c = i - 3 : i > 4 ? c = i - 2 : i > 0 && (c = 2);
15172
- const l = fi(c), d = new Array(Number(l) + 1).fill(o), p = Math.floor((t.BITS - 1) / c) * c;
15176
+ const l = mi(c), d = new Array(Number(l) + 1).fill(o), p = Math.floor((t.BITS - 1) / c) * c;
15173
15177
  let f = o;
15174
15178
  for (let m = p; m >= 0; m -= c) {
15175
15179
  d.fill(o);
@@ -15187,7 +15191,7 @@ function jg(e, t, n, r) {
15187
15191
  return f;
15188
15192
  }
15189
15193
  function Mm(e) {
15190
- return _g(e.Fp), mi(e, {
15194
+ return _g(e.Fp), hi(e, {
15191
15195
  n: "bigint",
15192
15196
  h: "bigint",
15193
15197
  Gx: "field",
@@ -15207,7 +15211,7 @@ function mp(e) {
15207
15211
  }
15208
15212
  function Vg(e) {
15209
15213
  const t = Mm(e);
15210
- mi(t, {
15214
+ hi(t, {
15211
15215
  a: "field",
15212
15216
  b: "field"
15213
15217
  }, {
@@ -15321,16 +15325,16 @@ const tn = {
15321
15325
  return t.encode(48, a);
15322
15326
  }
15323
15327
  };
15324
- function oc(e, t) {
15328
+ function ic(e, t) {
15325
15329
  return la(Fa(e, t));
15326
15330
  }
15327
15331
  const on = BigInt(0), Oe = BigInt(1);
15328
15332
  BigInt(2);
15329
- const ic = BigInt(3), Kg = BigInt(4);
15333
+ const cc = BigInt(3), Kg = BigInt(4);
15330
15334
  function Wg(e) {
15331
15335
  const t = Vg(e), { Fp: n } = t, r = xs(t.n, t.nBitLength), s = t.toBytes || ((U, k, O) => {
15332
15336
  const N = k.toAffine();
15333
- return qo(Uint8Array.from([4]), n.toBytes(N.x), n.toBytes(N.y));
15337
+ return Ko(Uint8Array.from([4]), n.toBytes(N.x), n.toBytes(N.y));
15334
15338
  }), a = t.fromBytes || ((U) => {
15335
15339
  const k = U.subarray(1), O = n.fromBytes(k.subarray(0, n.BYTES)), N = n.fromBytes(k.subarray(n.BYTES, 2 * n.BYTES));
15336
15340
  return { x: O, y: N };
@@ -15345,7 +15349,7 @@ function Wg(e) {
15345
15349
  }
15346
15350
  if (!i(t.Gx, t.Gy))
15347
15351
  throw new Error("bad curve params: generator point");
15348
- const c = n.mul(n.pow(t.a, ic), Kg), l = n.mul(n.sqr(t.b), BigInt(27));
15352
+ const c = n.mul(n.pow(t.a, cc), Kg), l = n.mul(n.sqr(t.b), BigInt(27));
15349
15353
  if (n.is0(n.add(c, l)))
15350
15354
  throw new Error("bad curve params: a or b");
15351
15355
  function d(U) {
@@ -15483,7 +15487,7 @@ function Wg(e) {
15483
15487
  // https://eprint.iacr.org/2015/1060, algorithm 3
15484
15488
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
15485
15489
  double() {
15486
- const { a: k, b: O } = t, N = n.mul(O, ic), { px: R, py: h, pz: b } = this;
15490
+ const { a: k, b: O } = t, N = n.mul(O, cc), { px: R, py: h, pz: b } = this;
15487
15491
  let x = n.ZERO, v = n.ZERO, E = n.ZERO, T = n.mul(R, R), D = n.mul(h, h), w = n.mul(b, b), A = n.mul(R, h);
15488
15492
  return A = n.add(A, A), E = n.mul(R, b), E = n.add(E, E), x = n.mul(k, E), v = n.mul(N, w), v = n.add(x, v), x = n.sub(D, v), v = n.add(D, v), v = n.mul(x, v), x = n.mul(A, x), E = n.mul(N, E), w = n.mul(k, w), A = n.sub(T, w), A = n.mul(k, A), A = n.add(A, E), E = n.add(T, T), T = n.add(E, T), T = n.add(T, w), T = n.mul(T, A), v = n.add(v, T), w = n.mul(h, b), w = n.add(w, w), T = n.mul(w, A), x = n.sub(x, T), E = n.mul(w, D), E = n.add(E, E), E = n.add(E, E), new g(x, v, E);
15489
15493
  }
@@ -15495,7 +15499,7 @@ function Wg(e) {
15495
15499
  f(k);
15496
15500
  const { px: O, py: N, pz: R } = this, { px: h, py: b, pz: x } = k;
15497
15501
  let v = n.ZERO, E = n.ZERO, T = n.ZERO;
15498
- const D = t.a, w = n.mul(t.b, ic);
15502
+ const D = t.a, w = n.mul(t.b, cc);
15499
15503
  let A = n.mul(O, h), F = n.mul(N, b), S = n.mul(R, x), M = n.add(O, N), L = n.add(h, b);
15500
15504
  M = n.mul(M, L), L = n.add(A, F), M = n.sub(M, L), L = n.add(O, R);
15501
15505
  let G = n.add(h, x);
@@ -15600,7 +15604,7 @@ function Wg(e) {
15600
15604
  }
15601
15605
  function Zg(e) {
15602
15606
  const t = Mm(e);
15603
- return mi(t, {
15607
+ return hi(t, {
15604
15608
  hash: "hash",
15605
15609
  hmac: "function",
15606
15610
  randomBytes: "function"
@@ -15621,7 +15625,7 @@ function Xg(e) {
15621
15625
  const { ProjectivePoint: d, normPrivateKeyToScalar: p, weierstrassEquation: f, isWithinCurveOrder: m } = Wg({
15622
15626
  ...t,
15623
15627
  toBytes(w, A, F) {
15624
- const S = A.toAffine(), M = n.toBytes(S.x), L = qo;
15628
+ const S = A.toAffine(), M = n.toBytes(S.x), L = Ko;
15625
15629
  return ca("isCompressed", F), F ? L(Uint8Array.from([A.hasEvenY() ? 2 : 3]), M) : L(Uint8Array.from([4]), M, n.toBytes(S.y));
15626
15630
  },
15627
15631
  fromBytes(w) {
@@ -15688,7 +15692,7 @@ function Xg(e) {
15688
15692
  const G = M === 2 || M === 3 ? F + t.n : F;
15689
15693
  if (G >= n.ORDER)
15690
15694
  throw new Error("recovery id 2 or 3 invalid");
15691
- const Q = (M & 1) === 0 ? "02" : "03", se = d.fromHex(Q + oc(G, n.BYTES)), ie = l(G), J = c(-L * ie), Y = c(S * ie), he = d.BASE.multiplyAndAddUnsafe(se, J, Y);
15695
+ const Q = (M & 1) === 0 ? "02" : "03", se = d.fromHex(Q + ic(G, n.BYTES)), ie = l(G), J = c(-L * ie), Y = c(S * ie), he = d.BASE.multiplyAndAddUnsafe(se, J, Y);
15692
15696
  if (!he)
15693
15697
  throw new Error("point at infinify");
15694
15698
  return he.assertValidity(), he;
@@ -15702,18 +15706,18 @@ function Xg(e) {
15702
15706
  }
15703
15707
  // DER-encoded
15704
15708
  toDERRawBytes() {
15705
- return Vo(this.toDERHex());
15709
+ return qo(this.toDERHex());
15706
15710
  }
15707
15711
  toDERHex() {
15708
15712
  return tn.hexFromSig(this);
15709
15713
  }
15710
15714
  // padded bytes of r, then padded bytes of s
15711
15715
  toCompactRawBytes() {
15712
- return Vo(this.toCompactHex());
15716
+ return qo(this.toCompactHex());
15713
15717
  }
15714
15718
  toCompactHex() {
15715
15719
  const A = s;
15716
- return oc(this.r, A) + oc(this.s, A);
15720
+ return ic(this.r, A) + ic(this.s, A);
15717
15721
  }
15718
15722
  }
15719
15723
  const C = {
@@ -15771,7 +15775,7 @@ function Xg(e) {
15771
15775
  return F > 0 ? A >> BigInt(F) : A;
15772
15776
  }, R = t.bits2int_modN || function(w) {
15773
15777
  return c(N(w));
15774
- }, h = fi(a);
15778
+ }, h = mi(a);
15775
15779
  function b(w) {
15776
15780
  return zr("num < 2^" + a, w, on, h), Fa(w, s);
15777
15781
  }
@@ -15786,7 +15790,7 @@ function Xg(e) {
15786
15790
  const kt = Q === !0 ? M(n.BYTES) : Q;
15787
15791
  J.push(bt("extraEntropy", kt));
15788
15792
  }
15789
- const Y = qo(...J), he = se;
15793
+ const Y = Ko(...J), he = se;
15790
15794
  function gn(kt) {
15791
15795
  const Mt = N(kt);
15792
15796
  if (!m(Mt))
@@ -15860,7 +15864,7 @@ function Qg(e) {
15860
15864
  randomBytes: J6
15861
15865
  };
15862
15866
  }
15863
- function vi(e, t) {
15867
+ function Ai(e, t) {
15864
15868
  const n = (r) => Xg({ ...e, ...Qg(r) });
15865
15869
  return { ...n(t), create: n };
15866
15870
  }
@@ -15872,7 +15876,7 @@ function e3(e) {
15872
15876
  throw new Error("Cannot find square root");
15873
15877
  return N;
15874
15878
  }
15875
- const ml = xs(Rm, void 0, void 0, { sqrt: e3 }), _a = vi({
15879
+ const ml = xs(Rm, void 0, void 0, { sqrt: e3 }), _a = Ai({
15876
15880
  a: Jg,
15877
15881
  b: BigInt(7),
15878
15882
  Fp: ml,
@@ -15898,20 +15902,20 @@ const ml = xs(Rm, void 0, void 0, { sqrt: e3 }), _a = vi({
15898
15902
  __proto__: null,
15899
15903
  secp256k1: _a
15900
15904
  }, Symbol.toStringTag, { value: "Module" }));
15901
- function Ai(e, t = {}) {
15905
+ function Ti(e, t = {}) {
15902
15906
  const { recovered: n } = t;
15903
15907
  if (typeof e.r > "u")
15904
- throw new cc({ signature: e });
15908
+ throw new lc({ signature: e });
15905
15909
  if (typeof e.s > "u")
15906
- throw new cc({ signature: e });
15910
+ throw new lc({ signature: e });
15907
15911
  if (n && typeof e.yParity > "u")
15908
- throw new cc({ signature: e });
15912
+ throw new lc({ signature: e });
15909
15913
  if (e.r < 0n || e.r > ip)
15910
15914
  throw new c3({ value: e.r });
15911
15915
  if (e.s < 0n || e.s > ip)
15912
15916
  throw new l3({ value: e.s });
15913
15917
  if (typeof e.yParity == "number" && e.yParity !== 0 && e.yParity !== 1)
15914
- throw new Si({ value: e.yParity });
15918
+ throw new Pi({ value: e.yParity });
15915
15919
  }
15916
15920
  function n3(e) {
15917
15921
  return Bu(Me(e));
@@ -15925,7 +15929,7 @@ function Bu(e) {
15925
15929
  try {
15926
15930
  return Iu(s);
15927
15931
  } catch {
15928
- throw new Si({ value: s });
15932
+ throw new Pi({ value: s });
15929
15933
  }
15930
15934
  })();
15931
15935
  return typeof r > "u" ? {
@@ -15939,15 +15943,15 @@ function Bu(e) {
15939
15943
  }
15940
15944
  function Nm(e) {
15941
15945
  if (!(typeof e.r > "u") && !(typeof e.s > "u"))
15942
- return Ti(e);
15946
+ return Si(e);
15943
15947
  }
15944
- function Ti(e) {
15948
+ function Si(e) {
15945
15949
  const t = typeof e == "string" ? Bu(e) : e instanceof Uint8Array ? n3(e) : typeof e.r == "string" ? Uu(e) : e.v ? r3(e) : {
15946
15950
  r: e.r,
15947
15951
  s: e.s,
15948
15952
  ...typeof e.yParity < "u" ? { yParity: e.yParity } : {}
15949
15953
  };
15950
- return Ai(t), t;
15954
+ return Ti(t), t;
15951
15955
  }
15952
15956
  function r3(e) {
15953
15957
  return {
@@ -15961,7 +15965,7 @@ function Uu(e) {
15961
15965
  const n = e.v ? Number(e.v) : void 0;
15962
15966
  let r = e.yParity ? Number(e.yParity) : void 0;
15963
15967
  if (typeof n == "number" && typeof r != "number" && (r = Iu(n)), typeof r != "number")
15964
- throw new Si({ value: e.yParity });
15968
+ throw new Pi({ value: e.yParity });
15965
15969
  return r;
15966
15970
  })();
15967
15971
  return {
@@ -15972,14 +15976,14 @@ function Uu(e) {
15972
15976
  }
15973
15977
  function s3(e) {
15974
15978
  const [t, n, r] = e;
15975
- return Ti({
15979
+ return Si({
15976
15980
  r: n === "0x" ? 0n : BigInt(n),
15977
15981
  s: r === "0x" ? 0n : BigInt(r),
15978
15982
  yParity: t === "0x" ? 0 : Number(t)
15979
15983
  });
15980
15984
  }
15981
15985
  function a3(e) {
15982
- Ai(e);
15986
+ Ti(e);
15983
15987
  const t = e.r, n = e.s;
15984
15988
  return Ee(
15985
15989
  j(t, { size: 32 }),
@@ -16018,14 +16022,14 @@ function Fu(e) {
16018
16022
  return 27;
16019
16023
  if (e === 1)
16020
16024
  return 28;
16021
- throw new Si({ value: e });
16025
+ throw new Pi({ value: e });
16022
16026
  }
16023
16027
  class i3 extends K {
16024
16028
  constructor({ signature: t }) {
16025
16029
  super(`Value \`${t}\` is an invalid signature size.`, {
16026
16030
  metaMessages: [
16027
16031
  "Expected: 64 bytes or 65 bytes.",
16028
- `Received ${Te(bi(t))} bytes.`
16032
+ `Received ${Te(yi(t))} bytes.`
16029
16033
  ]
16030
16034
  }), Object.defineProperty(this, "name", {
16031
16035
  enumerable: !0,
@@ -16035,7 +16039,7 @@ class i3 extends K {
16035
16039
  });
16036
16040
  }
16037
16041
  }
16038
- class cc extends K {
16042
+ class lc extends K {
16039
16043
  constructor({ signature: t }) {
16040
16044
  super(`Signature \`${Da(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`), Object.defineProperty(this, "name", {
16041
16045
  enumerable: !0,
@@ -16065,7 +16069,7 @@ class l3 extends K {
16065
16069
  });
16066
16070
  }
16067
16071
  }
16068
- class Si extends K {
16072
+ class Pi extends K {
16069
16073
  constructor({ value: t }) {
16070
16074
  super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`), Object.defineProperty(this, "name", {
16071
16075
  enumerable: !0,
@@ -16113,10 +16117,10 @@ function m3(e) {
16113
16117
  return e.map(f3);
16114
16118
  }
16115
16119
  function Lm(e) {
16116
- return Ro(h3(e));
16120
+ return No(h3(e));
16117
16121
  }
16118
16122
  function h3(e) {
16119
- const { payload: t, signature: n } = e, { r, s, yParity: a } = n, i = new _a.Signature(BigInt(r), BigInt(s)).addRecoveryBit(a).recoverPublicKey(bi(t).substring(2));
16123
+ const { payload: t, signature: n } = e, { r, s, yParity: a } = n, i = new _a.Signature(BigInt(r), BigInt(s)).addRecoveryBit(a).recoverPublicKey(yi(t).substring(2));
16120
16124
  return j8(i);
16121
16125
  }
16122
16126
  function b3(e) {
@@ -16129,7 +16133,7 @@ function $m(e) {
16129
16133
  if (oe(e, -32) !== y3)
16130
16134
  throw new E3(e);
16131
16135
  } else
16132
- Ai(e.authorization);
16136
+ Ti(e.authorization);
16133
16137
  }
16134
16138
  function g3(e) {
16135
16139
  $m(e);
@@ -16250,7 +16254,7 @@ async function P3(e, { hash: t, transactionReceipt: n }) {
16250
16254
  ]), a = (n == null ? void 0 : n.blockNumber) || (s == null ? void 0 : s.blockNumber);
16251
16255
  return a ? r - a + 1n : 0n;
16252
16256
  }
16253
- async function No(e, { hash: t }) {
16257
+ async function _o(e, { hash: t }) {
16254
16258
  var s, a, o;
16255
16259
  const n = await e.request({
16256
16260
  method: "eth_getTransactionReceipt",
@@ -16258,7 +16262,7 @@ async function No(e, { hash: t }) {
16258
16262
  }, { dedupe: !0 });
16259
16263
  if (!n)
16260
16264
  throw new J0({ hash: t });
16261
- return (((o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionReceipt) == null ? void 0 : o.format) || ki)(n, "getTransactionReceipt");
16265
+ return (((o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionReceipt) == null ? void 0 : o.format) || Ci)(n, "getTransactionReceipt");
16262
16266
  }
16263
16267
  async function B3(e, t) {
16264
16268
  var C;
@@ -16314,7 +16318,7 @@ async function B3(e, t) {
16314
16318
  }
16315
16319
  const P = await Promise.allSettled(m.map((U) => q(e, It, "readContract")({
16316
16320
  ...f === null ? { code: uu } : { address: f },
16317
- abi: Ko,
16321
+ abi: Wo,
16318
16322
  account: n,
16319
16323
  args: [U],
16320
16324
  authorizationList: r,
@@ -16344,7 +16348,7 @@ async function B3(e, t) {
16344
16348
  if (b === "0x")
16345
16349
  throw new ka();
16346
16350
  if (!h)
16347
- throw new ii({ data: R });
16351
+ throw new ci({ data: R });
16348
16352
  const D = vr({
16349
16353
  abi: x,
16350
16354
  args: T,
@@ -16410,7 +16414,7 @@ async function hl(e, t) {
16410
16414
  if (R === "success")
16411
16415
  return;
16412
16416
  let E;
16413
- if (((T = y.error) == null ? void 0 : T.data) === "0x" ? E = new ka() : y.error && (E = new ii(y.error)), !!E)
16417
+ if (((T = y.error) == null ? void 0 : T.data) === "0x" ? E = new ka() : y.error && (E = new ci(y.error)), !!E)
16414
16418
  return mr(E, {
16415
16419
  abi: P ?? [],
16416
16420
  address: U ?? "0x",
@@ -16432,7 +16436,7 @@ async function hl(e, t) {
16432
16436
  })
16433
16437
  }));
16434
16438
  } catch (c) {
16435
- const l = c, d = li(l, {});
16439
+ const l = c, d = ui(l, {});
16436
16440
  throw d instanceof Pa ? l : d;
16437
16441
  }
16438
16442
  }
@@ -16465,7 +16469,7 @@ function yl(e, t) {
16465
16469
  const n = typeof e, r = t.type;
16466
16470
  switch (r) {
16467
16471
  case "address":
16468
- return Qo(e, { strict: !1 });
16472
+ return Jo(e, { strict: !1 });
16469
16473
  case "bool":
16470
16474
  return n === "boolean";
16471
16475
  case "function":
@@ -16486,9 +16490,9 @@ function Hm(e, t, n) {
16486
16490
  if (s.type === "tuple" && a.type === "tuple" && "components" in s && "components" in a)
16487
16491
  return Hm(s.components, a.components, n[r]);
16488
16492
  const o = [s.type, a.type];
16489
- if (o.includes("address") && o.includes("bytes20") ? !0 : o.includes("address") && o.includes("string") ? Qo(n[r], {
16493
+ if (o.includes("address") && o.includes("bytes20") ? !0 : o.includes("address") && o.includes("string") ? Jo(n[r], {
16490
16494
  strict: !1
16491
- }) : o.includes("address") && o.includes("bytes") ? Qo(n[r], {
16495
+ }) : o.includes("address") && o.includes("bytes") ? Jo(n[r], {
16492
16496
  strict: !1
16493
16497
  }) : !1)
16494
16498
  return o;
@@ -16501,10 +16505,10 @@ function Gm(e, t = {}) {
16501
16505
  ...n ? { hash: Rr(r) } : {}
16502
16506
  };
16503
16507
  }
16504
- function Pi(e, t, n) {
16508
+ function Bi(e, t, n) {
16505
16509
  const { args: r = [], prepare: s = !0 } = n ?? {}, a = Tt(t, { strict: !1 }), o = e.filter((l) => a ? l.type === "function" || l.type === "error" ? jm(l) === oe(t, 0, 4) : l.type === "event" ? Rr(l) === t : !1 : "name" in l && l.name === t);
16506
16510
  if (o.length === 0)
16507
- throw new Jo({ name: t });
16511
+ throw new Yo({ name: t });
16508
16512
  if (o.length === 1)
16509
16513
  return {
16510
16514
  ...o[0],
@@ -16549,7 +16553,7 @@ function Pi(e, t, n) {
16549
16553
  return { ...l, overloads: d };
16550
16554
  })();
16551
16555
  if (!c)
16552
- throw new Jo({ name: t });
16556
+ throw new Yo({ name: t });
16553
16557
  return {
16554
16558
  ...c,
16555
16559
  ...s ? { hash: Rr(c) } : {}
@@ -16559,7 +16563,7 @@ function jm(...e) {
16559
16563
  const t = (() => {
16560
16564
  if (Array.isArray(e[0])) {
16561
16565
  const [n, r] = e;
16562
- return Pi(n, r);
16566
+ return Bi(n, r);
16563
16567
  }
16564
16568
  return e[0];
16565
16569
  })();
@@ -16569,17 +16573,17 @@ function U3(...e) {
16569
16573
  const t = (() => {
16570
16574
  if (Array.isArray(e[0])) {
16571
16575
  const [r, s] = e;
16572
- return Pi(r, s);
16576
+ return Bi(r, s);
16573
16577
  }
16574
16578
  return e[0];
16575
- })(), n = typeof t == "string" ? t : Ho(t);
16579
+ })(), n = typeof t == "string" ? t : Go(t);
16576
16580
  return bl(n);
16577
16581
  }
16578
16582
  function Rr(...e) {
16579
16583
  const t = (() => {
16580
16584
  if (Array.isArray(e[0])) {
16581
16585
  const [n, r] = e;
16582
- return Pi(n, r);
16586
+ return Bi(n, r);
16583
16587
  }
16584
16588
  return e[0];
16585
16589
  })();
@@ -16590,8 +16594,8 @@ class I3 extends K {
16590
16594
  super("Found ambiguous types in overloaded ABI Items.", {
16591
16595
  metaMessages: [
16592
16596
  // TODO: abitype to add support for signature-formatted ABI items.
16593
- `\`${t.type}\` in \`${bl(Ho(t.abiItem))}\`, and`,
16594
- `\`${n.type}\` in \`${bl(Ho(n.abiItem))}\``,
16597
+ `\`${t.type}\` in \`${bl(Go(t.abiItem))}\`, and`,
16598
+ `\`${n.type}\` in \`${bl(Go(n.abiItem))}\``,
16595
16599
  "",
16596
16600
  "These types encode differently and cannot be distinguished at runtime.",
16597
16601
  "Remove one of the ambiguous items in the ABI."
@@ -16604,7 +16608,7 @@ class I3 extends K {
16604
16608
  });
16605
16609
  }
16606
16610
  }
16607
- class Jo extends K {
16611
+ class Yo extends K {
16608
16612
  constructor({ name: t, data: n, type: r = "item" }) {
16609
16613
  const s = t ? ` with name "${t}"` : n ? ` with data "${n}"` : "";
16610
16614
  super(`ABI ${r}${s} not found.`), Object.defineProperty(this, "name", {
@@ -16632,7 +16636,7 @@ function D3(e) {
16632
16636
  function O3(e) {
16633
16637
  const t = e.find((n) => n.type === "constructor");
16634
16638
  if (!t)
16635
- throw new Jo({ name: "constructor" });
16639
+ throw new Yo({ name: "constructor" });
16636
16640
  return t;
16637
16641
  }
16638
16642
  function M3(...e) {
@@ -16652,9 +16656,9 @@ function Ur(e, t = {}) {
16652
16656
  return Gm(e, t);
16653
16657
  }
16654
16658
  function yp(e, t, n) {
16655
- const r = Pi(e, t, n);
16659
+ const r = Bi(e, t, n);
16656
16660
  if (r.type !== "function")
16657
- throw new Jo({ name: t, type: "function" });
16661
+ throw new Yo({ name: t, type: "function" });
16658
16662
  return r;
16659
16663
  }
16660
16664
  function R3(e) {
@@ -16900,7 +16904,7 @@ async function za(e, t) {
16900
16904
  async function V3(e, t) {
16901
16905
  var P;
16902
16906
  const { address: n, blockNumber: r, blockTag: s, hash: a, multicallAddress: o } = t, { authorization: i, data: c, signature: l, to: d } = g3(t.signature);
16903
- if (await Zo(e, {
16907
+ if (await Xo(e, {
16904
16908
  address: n,
16905
16909
  blockNumber: r,
16906
16910
  blockTag: s
@@ -16928,7 +16932,7 @@ async function V3(e, t) {
16928
16932
  const y = await q(e, It, "readContract")({
16929
16933
  ...o ? { address: o } : { code: uu },
16930
16934
  authorizationList: [f],
16931
- abi: Ko,
16935
+ abi: Wo,
16932
16936
  blockNumber: r,
16933
16937
  blockTag: "pending",
16934
16938
  functionName: "aggregate3",
@@ -16971,13 +16975,13 @@ async function q3(e, t) {
16971
16975
  }),
16972
16976
  ...c
16973
16977
  } : {
16974
- data: yi({
16978
+ data: xi({
16975
16979
  abi: ep,
16976
16980
  args: [n, a, l],
16977
16981
  bytecode: bx
16978
16982
  }),
16979
16983
  ...c
16980
- }, { data: p } = await q(e, xi, "call")(d).catch((f) => {
16984
+ }, { data: p } = await q(e, gi, "call")(d).catch((f) => {
16981
16985
  throw f instanceof ef ? new xr() : f;
16982
16986
  });
16983
16987
  if (S6(p ?? "0x0"))
@@ -17111,7 +17115,7 @@ async function Km(e, t) {
17111
17115
  P == null || P(), g == null || g(), U(new W2({ hash: s }));
17112
17116
  }, c) : void 0;
17113
17117
  return g = mn(l, { onReplaced: a, resolve: C, reject: U }, async (O) => {
17114
- if (m = await q(e, No, "getTransactionReceipt")({ hash: s }).catch(() => {
17118
+ if (m = await q(e, _o, "getTransactionReceipt")({ hash: s }).catch(() => {
17115
17119
  }), m && r <= 1) {
17116
17120
  clearTimeout(k), O.resolve(m), g == null || g();
17117
17121
  return;
@@ -17134,12 +17138,12 @@ async function Km(e, t) {
17134
17138
  R(() => O.resolve(m));
17135
17139
  return;
17136
17140
  }
17137
- if (n && !p && (y = !0, await Wo(async () => {
17141
+ if (n && !p && (y = !0, await Zo(async () => {
17138
17142
  p = await q(e, Du, "getTransaction")({ hash: s }), p.blockNumber && (h = p.blockNumber);
17139
17143
  }, {
17140
17144
  delay: i,
17141
17145
  retryCount: o
17142
- }), y = !1), m = await q(e, No, "getTransactionReceipt")({ hash: s }), r > 1 && (!m.blockNumber || h - m.blockNumber + 1n < r))
17146
+ }), y = !1), m = await q(e, _o, "getTransactionReceipt")({ hash: s }), r > 1 && (!m.blockNumber || h - m.blockNumber + 1n < r))
17143
17147
  return;
17144
17148
  R(() => O.resolve(m));
17145
17149
  } catch (b) {
@@ -17150,7 +17154,7 @@ async function Km(e, t) {
17150
17154
  }
17151
17155
  try {
17152
17156
  f = p, y = !0;
17153
- const x = await Wo(() => q(e, Bt, "getBlock")({
17157
+ const x = await Zo(() => q(e, Bt, "getBlock")({
17154
17158
  blockNumber: h,
17155
17159
  includeTransactions: !0
17156
17160
  }), {
@@ -17160,7 +17164,7 @@ async function Km(e, t) {
17160
17164
  });
17161
17165
  y = !1;
17162
17166
  const v = x.transactions.find(({ from: T, nonce: D }) => T === f.from && D === f.nonce);
17163
- if (!v || (m = await q(e, No, "getTransactionReceipt")({
17167
+ if (!v || (m = await q(e, _o, "getTransactionReceipt")({
17164
17168
  hash: v.hash
17165
17169
  }), r > 1 && (!m.blockNumber || h - m.blockNumber + 1n < r)))
17166
17170
  return;
@@ -17305,7 +17309,7 @@ function Q3(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17305
17309
  try {
17306
17310
  let R;
17307
17311
  if (U)
17308
- R = await q(e, gi, "getFilterChanges")({ filter: U });
17312
+ R = await q(e, wi, "getFilterChanges")({ filter: U });
17309
17313
  else {
17310
17314
  const h = await q(e, Ma, "getBlockNumber")({});
17311
17315
  C && C !== h ? R = await q(e, au, "getLogs")({
@@ -17332,7 +17336,7 @@ function Q3(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17332
17336
  interval: d
17333
17337
  });
17334
17338
  return async () => {
17335
- U && await q(e, wi, "uninstallFilter")({ filter: U }), O();
17339
+ U && await q(e, Ei, "uninstallFilter")({ filter: U }), O();
17336
17340
  };
17337
17341
  });
17338
17342
  })() : (() => {
@@ -17360,7 +17364,7 @@ function Q3(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17360
17364
  return;
17361
17365
  const R = N.result;
17362
17366
  try {
17363
- const { eventName: b, args: x } = jo({
17367
+ const { eventName: b, args: x } = Vo({
17364
17368
  abi: U ?? [],
17365
17369
  data: R.data,
17366
17370
  topics: R.topics,
@@ -17369,7 +17373,7 @@ function Q3(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
17369
17373
  c([v]);
17370
17374
  } catch (b) {
17371
17375
  let x, v;
17372
- if (b instanceof Go || b instanceof Il) {
17376
+ if (b instanceof jo || b instanceof Il) {
17373
17377
  if (p)
17374
17378
  return;
17375
17379
  x = b.abiItem.name, v = (h = b.abiItem.inputs) == null ? void 0 : h.some((T) => !("name" in T && T.name));
@@ -17412,7 +17416,7 @@ function J3(e, { batch: t = !0, onError: n, onTransactions: r, poll: s, pollingI
17412
17416
  } catch (g) {
17413
17417
  throw f(), g;
17414
17418
  }
17415
- const y = await q(e, gi, "getFilterChanges")({ filter: p });
17419
+ const y = await q(e, wi, "getFilterChanges")({ filter: p });
17416
17420
  if (y.length === 0)
17417
17421
  return;
17418
17422
  if (t)
@@ -17428,7 +17432,7 @@ function J3(e, { batch: t = !0, onError: n, onTransactions: r, poll: s, pollingI
17428
17432
  interval: a
17429
17433
  });
17430
17434
  return async () => {
17431
- p && await q(e, wi, "uninstallFilter")({ filter: p }), f();
17435
+ p && await q(e, Ei, "uninstallFilter")({ filter: p }), f();
17432
17436
  };
17433
17437
  });
17434
17438
  })() : (() => {
@@ -17508,14 +17512,14 @@ async function Ou(e, { serializedTransaction: t, throwOnReceiptRevert: n, timeou
17508
17512
  const s = await e.request({
17509
17513
  method: "eth_sendRawTransactionSync",
17510
17514
  params: r ? [t, H(r)] : [t]
17511
- }, { 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);
17515
+ }, { retryCount: 0 }), o = (((l = (c = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : c.transactionReceipt) == null ? void 0 : l.format) || Ci)(s);
17512
17516
  if (o.status === "reverted" && n)
17513
17517
  throw new Y0({ receipt: o });
17514
17518
  return o;
17515
17519
  }
17516
17520
  function sw(e) {
17517
17521
  return {
17518
- call: (t) => xi(e, t),
17522
+ call: (t) => gi(e, t),
17519
17523
  createAccessList: (t) => sm(e, t),
17520
17524
  createBlockFilter: () => t8(e),
17521
17525
  createContractEventFilter: (t) => K0(e, t),
@@ -17528,9 +17532,9 @@ function sw(e) {
17528
17532
  getBlock: (t) => Bt(e, t),
17529
17533
  getBlockNumber: (t) => Ma(e, t),
17530
17534
  getBlockTransactionCount: (t) => s8(e, t),
17531
- getBytecode: (t) => Zo(e, t),
17535
+ getBytecode: (t) => Xo(e, t),
17532
17536
  getChainId: () => Ln(e),
17533
- getCode: (t) => Zo(e, t),
17537
+ getCode: (t) => Xo(e, t),
17534
17538
  getContractEvents: (t) => Ef(e, t),
17535
17539
  getEip712Domain: (t) => o8(e, t),
17536
17540
  getEnsAddress: (t) => zx(e, t),
@@ -17540,7 +17544,7 @@ function sw(e) {
17540
17544
  getEnsText: (t) => rm(e, t),
17541
17545
  getFeeHistory: (t) => l8(e, t),
17542
17546
  estimateFeesPerGas: (t) => h5(e, t),
17543
- getFilterChanges: (t) => gi(e, t),
17547
+ getFilterChanges: (t) => wi(e, t),
17544
17548
  getFilterLogs: (t) => u8(e, t),
17545
17549
  getGasPrice: () => Wl(e),
17546
17550
  getLogs: (t) => au(e, t),
@@ -17551,7 +17555,7 @@ function sw(e) {
17551
17555
  getTransaction: (t) => Du(e, t),
17552
17556
  getTransactionConfirmations: (t) => P3(e, t),
17553
17557
  getTransactionCount: (t) => Zl(e, t),
17554
- getTransactionReceipt: (t) => No(e, t),
17558
+ getTransactionReceipt: (t) => _o(e, t),
17555
17559
  multicall: (t) => B3(e, t),
17556
17560
  prepareTransactionRequest: (t) => Ba(e, t),
17557
17561
  readContract: (t) => It(e, t),
@@ -17565,7 +17569,7 @@ function sw(e) {
17565
17569
  verifyMessage: (t) => W3(e, t),
17566
17570
  verifySiweMessage: (t) => rw(e, t),
17567
17571
  verifyTypedData: (t) => Z3(e, t),
17568
- uninstallFilter: (t) => wi(e, t),
17572
+ uninstallFilter: (t) => Ei(e, t),
17569
17573
  waitForTransactionReceipt: (t) => Km(e, t),
17570
17574
  watchBlocks: (t) => X3(e, t),
17571
17575
  watchBlockNumber: (t) => qm(e, t),
@@ -17599,8 +17603,8 @@ async function ow(e, { chain: t }) {
17599
17603
  }, { dedupe: !0, retryCount: 0 });
17600
17604
  }
17601
17605
  function iw(e, t) {
17602
- const { abi: n, args: r, bytecode: s, ...a } = t, o = yi({ abi: n, args: r, bytecode: s });
17603
- return Ei(e, {
17606
+ const { abi: n, args: r, bytecode: s, ...a } = t, o = xi({ abi: n, args: r, bytecode: s });
17607
+ return ki(e, {
17604
17608
  ...a,
17605
17609
  ...a.authorizationList ? { to: null } : {},
17606
17610
  data: o
@@ -17662,7 +17666,7 @@ async function fw(e, t) {
17662
17666
  timeout: r
17663
17667
  });
17664
17668
  }
17665
- const lc = new ps(128);
17669
+ const uc = new ps(128);
17666
17670
  async function Zm(e, t) {
17667
17671
  var O, N, R, h;
17668
17672
  const { account: n = e.account, chain: r = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: d, maxFeePerGas: p, maxPriorityFeePerGas: f, nonce: m, pollingInterval: y, throwOnReceiptRevert: g, type: P, value: B, ...C } = t, U = t.timeout ?? Math.max(((r == null ? void 0 : r.blockTime) ?? 0) * 3, 5e3);
@@ -17677,7 +17681,7 @@ async function Zm(e, t) {
17677
17681
  if (t.to)
17678
17682
  return t.to;
17679
17683
  if (t.to !== null && a && a.length > 0)
17680
- return await ci({
17684
+ return await li({
17681
17685
  authorization: a[0]
17682
17686
  }).catch(() => {
17683
17687
  throw new z("`to` is required. Could not infer from `authorizationList`.");
@@ -17707,7 +17711,7 @@ async function Zm(e, t) {
17707
17711
  to: b,
17708
17712
  type: P,
17709
17713
  value: B
17710
- }, "sendTransaction"), D = lc.get(e.uid), w = D ? "wallet_sendTransaction" : "eth_sendTransaction", A = await (async () => {
17714
+ }, "sendTransaction"), D = uc.get(e.uid), w = D ? "wallet_sendTransaction" : "eth_sendTransaction", A = await (async () => {
17711
17715
  try {
17712
17716
  return await e.request({
17713
17717
  method: w,
@@ -17721,9 +17725,9 @@ async function Zm(e, t) {
17721
17725
  return await e.request({
17722
17726
  method: "wallet_sendTransaction",
17723
17727
  params: [T]
17724
- }, { retryCount: 0 }).then((L) => (lc.set(e.uid, !0), L)).catch((L) => {
17728
+ }, { retryCount: 0 }).then((L) => (uc.set(e.uid, !0), L)).catch((L) => {
17725
17729
  const G = L;
17726
- throw G.name === "MethodNotFoundRpcError" || G.name === "MethodNotSupportedRpcError" ? (lc.set(e.uid, !1), M) : G;
17730
+ throw G.name === "MethodNotFoundRpcError" || G.name === "MethodNotSupportedRpcError" ? (uc.set(e.uid, !1), M) : G;
17727
17731
  });
17728
17732
  throw M;
17729
17733
  }
@@ -17776,7 +17780,7 @@ async function Zm(e, t) {
17776
17780
  type: k == null ? void 0 : k.type
17777
17781
  });
17778
17782
  } catch (b) {
17779
- throw b instanceof ir ? b : pi(b, {
17783
+ throw b instanceof ir ? b : fi(b, {
17780
17784
  ...t,
17781
17785
  account: k,
17782
17786
  chain: t.chain || void 0
@@ -17912,7 +17916,7 @@ function kw(e) {
17912
17916
  sendCallsSync: (t) => fw(e, t),
17913
17917
  sendRawTransaction: (t) => mu(e, t),
17914
17918
  sendRawTransactionSync: (t) => Ou(e, t),
17915
- sendTransaction: (t) => Ei(e, t),
17919
+ sendTransaction: (t) => ki(e, t),
17916
17920
  sendTransactionSync: (t) => Zm(e, t),
17917
17921
  showCallsStatus: (t) => mw(e, t),
17918
17922
  signAuthorization: (t) => hw(e, t),
@@ -18201,7 +18205,7 @@ const aD = (e, t) => e ? de.TWAP_MARKET : t === 1 ? de.LIMIT : de.TWAP_LIMIT, Jm
18201
18205
  };
18202
18206
  }
18203
18207
  }),
18204
- transaction: /* @__PURE__ */ di({
18208
+ transaction: /* @__PURE__ */ pi({
18205
18209
  format(e) {
18206
18210
  const t = {};
18207
18211
  return e.type === "0x71" ? t.type = "eip712" : e.type === "0xff" && (t.type = "priority"), {
@@ -18301,7 +18305,7 @@ function nh(e) {
18301
18305
  throw new z("`paymaster` must be provided when `paymasterInput` is defined");
18302
18306
  }
18303
18307
  function _w(e, t) {
18304
- return th(e) ? Lw(e) : Xo(e, t);
18308
+ return th(e) ? Lw(e) : Qo(e, t);
18305
18309
  }
18306
18310
  const zw = {
18307
18311
  transaction: _w
@@ -18692,7 +18696,7 @@ const dt = {
18692
18696
  };
18693
18697
  }
18694
18698
  }),
18695
- transaction: /* @__PURE__ */ di({
18699
+ transaction: /* @__PURE__ */ pi({
18696
18700
  format(e) {
18697
18701
  const t = {};
18698
18702
  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;
@@ -18710,7 +18714,7 @@ const dt = {
18710
18714
  })
18711
18715
  };
18712
18716
  function sh(e, t) {
18713
- return oE(e) ? aE(e) : Xo(e, t);
18717
+ return oE(e) ? aE(e) : Qo(e, t);
18714
18718
  }
18715
18719
  const sE = {
18716
18720
  transaction: sh
@@ -20205,7 +20209,7 @@ const $ = {
20205
20209
  },
20206
20210
  testnet: !0,
20207
20211
  sourceId: m7
20208
- }), uc = 1, b7 = /* @__PURE__ */ u({
20212
+ }), dc = 1, b7 = /* @__PURE__ */ u({
20209
20213
  ...$,
20210
20214
  id: 60808,
20211
20215
  name: "BOB",
@@ -20233,19 +20237,19 @@ const $ = {
20233
20237
  blockCreated: 23131
20234
20238
  },
20235
20239
  l2OutputOracle: {
20236
- [uc]: {
20240
+ [dc]: {
20237
20241
  address: "0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",
20238
20242
  blockCreated: 4462615
20239
20243
  }
20240
20244
  },
20241
20245
  portal: {
20242
- [uc]: {
20246
+ [dc]: {
20243
20247
  address: "0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",
20244
20248
  blockCreated: 4462615
20245
20249
  }
20246
20250
  }
20247
20251
  },
20248
- sourceId: uc
20252
+ sourceId: dc
20249
20253
  }), y7 = /* @__PURE__ */ u({
20250
20254
  id: 288,
20251
20255
  name: "Boba Network",
@@ -20287,7 +20291,7 @@ const $ = {
20287
20291
  }
20288
20292
  },
20289
20293
  testnet: !0
20290
- }), dc = 11155111, g7 = /* @__PURE__ */ u({
20294
+ }), pc = 11155111, g7 = /* @__PURE__ */ u({
20291
20295
  ...$,
20292
20296
  id: 808813,
20293
20297
  name: "BOB Sepolia",
@@ -20315,20 +20319,20 @@ const $ = {
20315
20319
  blockCreated: 35677
20316
20320
  },
20317
20321
  l2OutputOracle: {
20318
- [dc]: {
20322
+ [pc]: {
20319
20323
  address: "0x14D0069452b4AE2b250B395b8adAb771E4267d2f",
20320
20324
  blockCreated: 4462615
20321
20325
  }
20322
20326
  },
20323
20327
  portal: {
20324
- [dc]: {
20328
+ [pc]: {
20325
20329
  address: "0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",
20326
20330
  blockCreated: 4462615
20327
20331
  }
20328
20332
  }
20329
20333
  },
20330
20334
  testnet: !0,
20331
- sourceId: dc
20335
+ sourceId: pc
20332
20336
  }), w7 = /* @__PURE__ */ u({
20333
20337
  id: 11100,
20334
20338
  name: "Bool Beta Mainnet",
@@ -20730,7 +20734,7 @@ const H7 = {
20730
20734
  };
20731
20735
  }
20732
20736
  }),
20733
- transaction: /* @__PURE__ */ di({
20737
+ transaction: /* @__PURE__ */ pi({
20734
20738
  format(e) {
20735
20739
  if (e.type === "0x7e")
20736
20740
  return {
@@ -20879,7 +20883,7 @@ const fa = {
20879
20883
  }
20880
20884
  },
20881
20885
  testnet: !0
20882
- }), pc = 11155111, X7 = /* @__PURE__ */ u({
20886
+ }), fc = 11155111, X7 = /* @__PURE__ */ u({
20883
20887
  ...fa,
20884
20888
  id: 11142220,
20885
20889
  name: "Celo Sepolia Testnet",
@@ -20907,19 +20911,19 @@ const fa = {
20907
20911
  blockCreated: 1
20908
20912
  },
20909
20913
  portal: {
20910
- [pc]: {
20914
+ [fc]: {
20911
20915
  address: "0x44ae3d41a335a7d05eb533029917aad35662dcc2",
20912
20916
  blockCreated: 8825790
20913
20917
  }
20914
20918
  },
20915
20919
  disputeGameFactory: {
20916
- [pc]: {
20920
+ [fc]: {
20917
20921
  address: "0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",
20918
20922
  blockCreated: 8825790
20919
20923
  }
20920
20924
  },
20921
20925
  l1StandardBridge: {
20922
- [pc]: {
20926
+ [fc]: {
20923
20927
  address: "0xec18a3c30131a0db4246e785355fbc16e2eaf408",
20924
20928
  blockCreated: 8825790
20925
20929
  }
@@ -31398,7 +31402,7 @@ const b4 = /* @__PURE__ */ u({
31398
31402
  }
31399
31403
  },
31400
31404
  sourceId: Ds
31401
- }), fc = 11155111, DP = /* @__PURE__ */ u({
31405
+ }), mc = 11155111, DP = /* @__PURE__ */ u({
31402
31406
  ...$,
31403
31407
  id: 53302,
31404
31408
  name: "Superseed Sepolia",
@@ -31425,20 +31429,20 @@ const b4 = /* @__PURE__ */ u({
31425
31429
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
31426
31430
  },
31427
31431
  portal: {
31428
- [fc]: {
31432
+ [mc]: {
31429
31433
  address: "0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",
31430
31434
  blockCreated: 5523438
31431
31435
  }
31432
31436
  },
31433
31437
  l1StandardBridge: {
31434
- [fc]: {
31438
+ [mc]: {
31435
31439
  address: "0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",
31436
31440
  blockCreated: 5523442
31437
31441
  }
31438
31442
  }
31439
31443
  },
31440
31444
  testnet: !0,
31441
- sourceId: fc
31445
+ sourceId: mc
31442
31446
  }), OP = /* @__PURE__ */ u({
31443
31447
  id: 763375,
31444
31448
  name: "Surge Testnet",
@@ -31903,7 +31907,7 @@ const b4 = /* @__PURE__ */ u({
31903
31907
  testnet: !0
31904
31908
  });
31905
31909
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
31906
- const uh = xs(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")), rB = uh.create(BigInt("-3")), sB = BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"), aB = vi({
31910
+ const uh = xs(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")), rB = uh.create(BigInt("-3")), sB = BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"), aB = Ai({
31907
31911
  a: rB,
31908
31912
  b: sB,
31909
31913
  Fp: uh,
@@ -31913,7 +31917,7 @@ const uh = xs(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffff
31913
31917
  h: BigInt(1),
31914
31918
  lowS: !1
31915
31919
  }, Jl), dh = xs(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")), oB = dh.create(BigInt("-3")), iB = BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");
31916
- vi({
31920
+ Ai({
31917
31921
  a: oB,
31918
31922
  b: iB,
31919
31923
  Fp: dh,
@@ -31924,7 +31928,7 @@ vi({
31924
31928
  lowS: !1
31925
31929
  }, A5);
31926
31930
  const ph = xs(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")), cB = ph.create(BigInt("-3")), lB = BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");
31927
- vi({
31931
+ Ai({
31928
31932
  a: cB,
31929
31933
  b: lB,
31930
31934
  Fp: ph,
@@ -32011,7 +32015,7 @@ function gs(e) {
32011
32015
  const t = e.endsWith(Wn.slice(2)) ? oe(e, 0, -Te(Wn)) : e;
32012
32016
  if (Te(t) === 65) {
32013
32017
  const o = Bu(t);
32014
- return Ai(o), { signature: o, type: "secp256k1" };
32018
+ return Ti(o), { signature: o, type: "secp256k1" };
32015
32019
  }
32016
32020
  const r = oe(t, 0, 1), s = oe(t, 1), a = Te(s);
32017
32021
  if (r === xl) {
@@ -32098,7 +32102,7 @@ function $a(e) {
32098
32102
  type: t
32099
32103
  };
32100
32104
  }
32101
- function Bi(e) {
32105
+ function Ui(e) {
32102
32106
  if (e.type === "secp256k1")
32103
32107
  return {
32104
32108
  signature: Uu(e),
@@ -32156,7 +32160,7 @@ function Bi(e) {
32156
32160
  return {
32157
32161
  type: "keychain",
32158
32162
  userAddress: e.userAddress,
32159
- inner: Bi(e.signature)
32163
+ inner: Ui(e.signature)
32160
32164
  };
32161
32165
  throw new ma({ envelope: e });
32162
32166
  }
@@ -32177,7 +32181,7 @@ function _u(e) {
32177
32181
  envelope: e
32178
32182
  });
32179
32183
  }
32180
- function Ui(e, t = {}) {
32184
+ function Ii(e, t = {}) {
32181
32185
  const n = _u(e);
32182
32186
  if (n === "secp256k1")
32183
32187
  return Ee(a3(e.signature), t.magic ? Wn : "0x");
@@ -32191,7 +32195,7 @@ function Ui(e, t = {}) {
32191
32195
  }
32192
32196
  if (n === "keychain") {
32193
32197
  const r = e;
32194
- return Ee(mh, r.userAddress, Ui(r.inner), t.magic ? Wn : "0x");
32198
+ return Ee(mh, r.userAddress, Ii(r.inner), t.magic ? Wn : "0x");
32195
32199
  }
32196
32200
  throw new ma({ envelope: e });
32197
32201
  }
@@ -32239,7 +32243,7 @@ function mB(e, t) {
32239
32243
  if (t.address)
32240
32244
  return t.address;
32241
32245
  if (t.publicKey)
32242
- return Ro(t.publicKey);
32246
+ return No(t.publicKey);
32243
32247
  })();
32244
32248
  if (!r)
32245
32249
  return !1;
@@ -32251,7 +32255,7 @@ function mB(e, t) {
32251
32255
  signature: s.signature
32252
32256
  }) : !1;
32253
32257
  if (s.type === "p256") {
32254
- const a = Ro(s.publicKey);
32258
+ const a = No(s.publicKey);
32255
32259
  return cl(a, r) ? fh({
32256
32260
  hash: s.prehash,
32257
32261
  publicKey: s.publicKey,
@@ -32260,9 +32264,9 @@ function mB(e, t) {
32260
32264
  }) : !1;
32261
32265
  }
32262
32266
  if (s.type === "webAuthn") {
32263
- const a = Ro(s.publicKey);
32267
+ const a = No(s.publicKey);
32264
32268
  return cl(a, r) ? fB({
32265
- challenge: bi(n),
32269
+ challenge: yi(n),
32266
32270
  metadata: s.metadata,
32267
32271
  publicKey: s.publicKey,
32268
32272
  signature: s.signature
@@ -32306,7 +32310,7 @@ function bB(e, t = {}) {
32306
32310
  return typeof e.chainId == "string" ? hh(e) : t.signature ? { ...e, signature: t.signature } : e;
32307
32311
  }
32308
32312
  function hh(e) {
32309
- const { address: t, chainId: n, nonce: r } = e, s = Bi(e.signature);
32313
+ const { address: t, chainId: n, nonce: r } = e, s = Ui(e.signature);
32310
32314
  return {
32311
32315
  address: t,
32312
32316
  chainId: Number(n),
@@ -32344,7 +32348,7 @@ function EB(e) {
32344
32348
  return e.map((t) => wB(t));
32345
32349
  }
32346
32350
  function kB(e) {
32347
- const { address: t, chainId: n, nonce: r } = e, s = e.signature ? Ui(e.signature) : void 0;
32351
+ const { address: t, chainId: n, nonce: r } = e, s = e.signature ? Ii(e.signature) : void 0;
32348
32352
  return [
32349
32353
  n ? j(n) : "0x",
32350
32354
  t,
@@ -32367,7 +32371,7 @@ function vB(e, t = {}) {
32367
32371
  } : e;
32368
32372
  }
32369
32373
  function bh(e) {
32370
- const { chainId: t = "0x0", keyId: n, expiry: r = 0, limits: s, keyType: a } = e, o = Bi(e.signature);
32374
+ const { chainId: t = "0x0", keyId: n, expiry: r = 0, limits: s, keyType: a } = e, o = Ui(e.signature);
32371
32375
  return {
32372
32376
  address: n,
32373
32377
  chainId: t === "0x" ? 0n : ve(t),
@@ -32423,7 +32427,7 @@ function TB(e) {
32423
32427
  };
32424
32428
  }
32425
32429
  function SB(e) {
32426
- const { address: t, chainId: n = 0n, expiry: r, limits: s } = e, a = e.signature ? Ui(e.signature) : void 0, o = (() => {
32430
+ const { address: t, chainId: n = 0n, expiry: r, limits: s } = e, a = e.signature ? Ii(e.signature) : void 0, o = (() => {
32427
32431
  switch (e.type) {
32428
32432
  case "secp256k1":
32429
32433
  return "0x";
@@ -32488,7 +32492,7 @@ function IB(e, t = {}) {
32488
32492
  value: r.value && r.value !== "0x" ? BigInt(r.value) : void 0,
32489
32493
  // @ts-expect-error
32490
32494
  data: r.input || r.data || "0x"
32491
- }))), 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 = bh(e.keyAuthorization)), e.feePayerSignature && (n.feePayerSignature = Uu(e.feePayerSignature), n.feePayerSignature.v = Fu(n.feePayerSignature.yParity)), n;
32495
+ }))), e.feeToken && (n.feeToken = e.feeToken), e.nonceKey && (n.nonceKey = BigInt(e.nonceKey)), e.signature && (n.signature = Ui(e.signature)), e.validAfter && (n.validAfter = Number(e.validAfter)), e.validBefore && (n.validBefore = Number(e.validBefore)), e.keyAuthorization && (n.keyAuthorization = bh(e.keyAuthorization)), e.feePayerSignature && (n.feePayerSignature = Uu(e.feePayerSignature), n.feePayerSignature.v = Fu(n.feePayerSignature.yParity)), n;
32492
32496
  }
32493
32497
  function FB(e) {
32494
32498
  const t = {};
@@ -32678,7 +32682,7 @@ function jB(e) {
32678
32682
  return R && R !== "0x" && (x.to = R), h && h !== "0x" && (x.value = BigInt(h)), b && b !== "0x" && (x.data = b), x;
32679
32683
  });
32680
32684
  }
32681
- (i == null ? void 0 : i.length) !== 0 && i !== "0x" && (U.accessList = OB(i)), (y == null ? void 0 : y.length) !== 0 && y !== "0x" && (U.authorizationList = gB(y)), m !== "0x" && m !== void 0 && (m === "0x00" || Qo(m) ? U.feePayerSignature = null : U.feePayerSignature = s3(m)), B && (U.keyAuthorization = AB(B));
32685
+ (i == null ? void 0 : i.length) !== 0 && i !== "0x" && (U.accessList = OB(i)), (y == null ? void 0 : y.length) !== 0 && y !== "0x" && (U.authorizationList = gB(y)), m !== "0x" && m !== void 0 && (m === "0x00" || Jo(m) ? U.feePayerSignature = null : U.feePayerSignature = s3(m)), B && (U.keyAuthorization = AB(B));
32682
32686
  const k = C ? gs(C) : void 0;
32683
32687
  return k && (U = {
32684
32688
  ...U,
@@ -32690,7 +32694,7 @@ function VB(e, t = {}) {
32690
32694
  return Lu(s), {
32691
32695
  ...s,
32692
32696
  ...r ? { signature: $a(r) } : {},
32693
- ...n ? { feePayerSignature: Ti(n) } : {},
32697
+ ...n ? { feePayerSignature: Si(n) } : {},
32694
32698
  type: "tempo"
32695
32699
  };
32696
32700
  }
@@ -32721,7 +32725,7 @@ function Ls(e, t = {}) {
32721
32725
  U,
32722
32726
  B,
32723
32727
  ...c ? [SB(c)] : [],
32724
- ...P ? [Ui($a(P))] : []
32728
+ ...P ? [Ii($a(P))] : []
32725
32729
  ];
32726
32730
  return Ee(t.format === "feePayer" ? HB : GB, Ug(k));
32727
32731
  }
@@ -32781,13 +32785,13 @@ async function QB(e, t) {
32781
32785
  throw new Error("Unsupported signature type. Expected `secp256k1` but got `" + t.type + "`.");
32782
32786
  if (t && "type" in t) {
32783
32787
  const { r, s, yParity: a } = t == null ? void 0 : t.signature;
32784
- return Xo(e, {
32788
+ return Qo(e, {
32785
32789
  r: j(r, { size: 32 }),
32786
32790
  s: j(s, { size: 32 }),
32787
32791
  yParity: a
32788
32792
  });
32789
32793
  }
32790
- return Xo(e, t);
32794
+ return Qo(e, t);
32791
32795
  }
32792
32796
  if (Eh(e) === "tempo")
32793
32797
  return JB(e, t);
@@ -32842,7 +32846,7 @@ async function JB(e, t) {
32842
32846
  hash: f
32843
32847
  });
32844
32848
  return Ls(d, {
32845
- feePayerSignature: Ti(m)
32849
+ feePayerSignature: Si(m)
32846
32850
  });
32847
32851
  }
32848
32852
  if (s === !0) {
@@ -32881,7 +32885,7 @@ function YB(e) {
32881
32885
  };
32882
32886
  }
32883
32887
  function eU(e) {
32884
- return ki(e);
32888
+ return Ci(e);
32885
32889
  }
32886
32890
  function tU(e, t) {
32887
32891
  const n = e, r = n.account ? me(n.account) : void 0;
@@ -32939,7 +32943,7 @@ const Hu = {
32939
32943
  blockTime: 1e3,
32940
32944
  extendSchema: A8(),
32941
32945
  formatters: {
32942
- transaction: di({
32946
+ transaction: pi({
32943
32947
  exclude: ["aaAuthorizationList"],
32944
32948
  format: YB
32945
32949
  }),
@@ -32985,7 +32989,7 @@ const Hu = {
32985
32989
  if (typeof s == "string" && s.endsWith(Wn.slice(2))) {
32986
32990
  const a = gs(s);
32987
32991
  if (a.type !== "keychain") {
32988
- const o = await Zo(e, {
32992
+ const o = await Xo(e, {
32989
32993
  address: n,
32990
32994
  blockNumber: t.blockNumber,
32991
32995
  blockTag: t.blockTag
@@ -34571,7 +34575,7 @@ const Hu = {
34571
34575
  }
34572
34576
  },
34573
34577
  testnet: !0
34574
- }), mc = 1, SI = /* @__PURE__ */ u({
34578
+ }), hc = 1, SI = /* @__PURE__ */ u({
34575
34579
  ...$,
34576
34580
  id: 48900,
34577
34581
  name: "Zircuit Mainnet",
@@ -34601,23 +34605,23 @@ const Hu = {
34601
34605
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
34602
34606
  },
34603
34607
  l2OutputOracle: {
34604
- [mc]: {
34608
+ [hc]: {
34605
34609
  address: "0x92Ef6Af472b39F1b363da45E35530c24619245A4"
34606
34610
  }
34607
34611
  },
34608
34612
  portal: {
34609
- [mc]: {
34613
+ [hc]: {
34610
34614
  address: "0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"
34611
34615
  }
34612
34616
  },
34613
34617
  l1StandardBridge: {
34614
- [mc]: {
34618
+ [hc]: {
34615
34619
  address: "0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"
34616
34620
  }
34617
34621
  }
34618
34622
  },
34619
34623
  testnet: !1
34620
- }), hc = 11155111, PI = /* @__PURE__ */ u({
34624
+ }), bc = 11155111, PI = /* @__PURE__ */ u({
34621
34625
  ...$,
34622
34626
  id: 48898,
34623
34627
  name: "Zircuit Garfield Testnet",
@@ -34638,23 +34642,23 @@ const Hu = {
34638
34642
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
34639
34643
  },
34640
34644
  l2OutputOracle: {
34641
- [hc]: {
34645
+ [bc]: {
34642
34646
  address: "0xd69D3AC5CA686cCF94b258291772bc520FEAf211"
34643
34647
  }
34644
34648
  },
34645
34649
  portal: {
34646
- [hc]: {
34650
+ [bc]: {
34647
34651
  address: "0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"
34648
34652
  }
34649
34653
  },
34650
34654
  l1StandardBridge: {
34651
- [hc]: {
34655
+ [bc]: {
34652
34656
  address: "0x87a7E2bCA9E35BA49282E832a28A6023904460D8"
34653
34657
  }
34654
34658
  }
34655
34659
  },
34656
34660
  testnet: !0
34657
- }), bc = 11155111, BI = /* @__PURE__ */ u({
34661
+ }), yc = 11155111, BI = /* @__PURE__ */ u({
34658
34662
  ...$,
34659
34663
  id: 48899,
34660
34664
  name: "Zircuit Testnet",
@@ -34680,17 +34684,17 @@ const Hu = {
34680
34684
  blockCreated: 6040287
34681
34685
  },
34682
34686
  l2OutputOracle: {
34683
- [bc]: {
34687
+ [yc]: {
34684
34688
  address: "0x740C2dac453aEf7140809F80b72bf0e647af8148"
34685
34689
  }
34686
34690
  },
34687
34691
  portal: {
34688
- [bc]: {
34692
+ [yc]: {
34689
34693
  address: "0x787f1C8c5924178689E0560a43D848bF8E54b23e"
34690
34694
  }
34691
34695
  },
34692
34696
  l1StandardBridge: {
34693
- [bc]: {
34697
+ [yc]: {
34694
34698
  address: "0x0545c5fe980098C16fcD0eCB5E79753afa6d9af9"
34695
34699
  }
34696
34700
  }
@@ -35844,7 +35848,7 @@ const Ch = Gp(null), jI = new ey({
35844
35848
  value: a
35845
35849
  };
35846
35850
  }, [e, s, t, n, r]), KI = (e) => {
35847
- const t = ei(), { walletClient: n, publicClient: r } = W(
35851
+ const t = ti(), { walletClient: n, publicClient: r } = W(
35848
35852
  () => $I(e.chainId, e.provider),
35849
35853
  [e.chainId, e.provider]
35850
35854
  ), s = W(
@@ -36065,7 +36069,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36065
36069
  }, [e, r, n, t]);
36066
36070
  return s || a;
36067
36071
  }, ws = () => {
36068
- const { callbacks: e } = X(), t = te((a) => a.state.typedFillDelay), n = te((a) => a.updateState), r = W(() => t || xc, [t]), s = tF(r);
36072
+ const { callbacks: e } = X(), t = te((a) => a.state.typedFillDelay), n = te((a) => a.updateState), r = W(() => t || gc, [t]), s = tF(r);
36069
36073
  return {
36070
36074
  fillDelay: r,
36071
36075
  onChange: ke((a) => {
@@ -36483,7 +36487,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36483
36487
  value: e || ""
36484
36488
  };
36485
36489
  }, [e, s, t, a, r, n]);
36486
- }, Ii = () => {
36490
+ }, Fi = () => {
36487
36491
  const { dstToken: e, marketPrice: t, callbacks: n } = X(), r = te((l) => l.updateState), s = Ku(), a = te((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = vh({
36488
36492
  typedValue: te((l) => l.state.typedLimitPrice),
36489
36493
  percentage: o,
@@ -36515,7 +36519,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36515
36519
  hide: a
36516
36520
  };
36517
36521
  }, Th = () => {
36518
- const { module: e, marketPrice: t } = X(), n = Ii().amountWei, r = Ar().amountWei, s = te((a) => a.state.isMarketOrder);
36522
+ const { module: e, marketPrice: t } = X(), n = Fi().amountWei, r = Ar().amountWei, s = te((a) => a.state.isMarketOrder);
36519
36523
  return e === ne.LIMIT || !s ? n || "" : e === ne.STOP_LOSS || e === ne.TAKE_PROFIT ? r || "" : t || "";
36520
36524
  }, Es = () => {
36521
36525
  const { srcToken: e, dstToken: t, dstUsd1Token: n } = X(), r = Th(), s = xn().amountWei, a = W(() => I1(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = Ha(t == null ? void 0 : t.decimals, a);
@@ -36524,7 +36528,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36524
36528
  amountUI: o,
36525
36529
  usd: zn(o, n)
36526
36530
  };
36527
- }, Fi = () => {
36531
+ }, Di = () => {
36528
36532
  const { srcToken: e, dstToken: t, dstUsd1Token: n } = X(), r = Th(), s = Et().amountPerTradeWei, a = te((c) => c.state.isMarketOrder), o = W(
36529
36533
  () => F1(s, r, !!a, (e == null ? void 0 : e.decimals) || 0),
36530
36534
  [s, r, a, e == null ? void 0 : e.decimals]
@@ -36543,7 +36547,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
36543
36547
  usd: s
36544
36548
  };
36545
36549
  }, wD = () => {
36546
- const { module: e, marketPriceLoading: t } = X(), { amountUI: n, onChange: r, onPercentageChange: s, usd: a, selectedPercentage: o, error: i, isTypedValue: c } = Ii(), { amountUI: l, usd: d } = Fi(), p = te((k) => k.updateState), f = Ku(), { isLimitPrice: m, toggleLimitPrice: y } = fF(), { isInverted: g, onInvert: P, fromToken: B, toToken: C } = qu(), U = ke(() => {
36550
+ const { module: e, marketPriceLoading: t } = X(), { amountUI: n, onChange: r, onPercentageChange: s, usd: a, selectedPercentage: o, error: i, isTypedValue: c } = Fi(), { amountUI: l, usd: d } = Di(), p = te((k) => k.updateState), f = Ku(), { isLimitPrice: m, toggleLimitPrice: y } = fF(), { isInverted: g, onInvert: P, fromToken: B, toToken: C } = qu(), U = ke(() => {
36547
36551
  p({ typedLimitPrice: void 0 }), p({ limitPricePercent: f });
36548
36552
  }, [p, e, f]);
36549
36553
  return {
@@ -36581,7 +36585,7 @@ function hF() {
36581
36585
  srcUsd1Token: r,
36582
36586
  srcBalance: s,
36583
36587
  chainId: a
36584
- } = X(), { error: o } = Ar(), { error: i } = Ii(), { error: c } = Et(), { error: l } = ws(), { error: d } = Vu(), p = mF(), f = xn().amountWei, m = W(() => {
36588
+ } = X(), { error: o } = Ar(), { error: i } = Fi(), { error: c } = Et(), { error: l } = ws(), { error: d } = Vu(), p = mF(), f = xn().amountWei, m = W(() => {
36585
36589
  if (s && _(f).gt(s))
36586
36590
  return {
36587
36591
  type: $e.INSUFFICIENT_BALANCE,
@@ -36720,7 +36724,7 @@ const ED = () => {
36720
36724
  e.triggerPriceUsd
36721
36725
  ]);
36722
36726
  }, gF = () => {
36723
- const { srcToken: e, dstToken: t, account: n, chainId: r, slippage: s, config: a, module: o, fees: i } = X(), { amountWei: c } = xn(), { amountPerTradeWei: l, totalTrades: d } = Et(), p = Xu(), { amountWei: f } = Fi(), { pricePerChunkWei: m } = Ar(), { milliseconds: y } = ws();
36727
+ const { srcToken: e, dstToken: t, account: n, chainId: r, slippage: s, config: a, module: o, fees: i } = X(), { amountWei: c } = xn(), { amountPerTradeWei: l, totalTrades: d } = Et(), p = Xu(), { amountWei: f } = Di(), { pricePerChunkWei: m } = Ar(), { milliseconds: y } = ws();
36724
36728
  return W(() => {
36725
36729
  var g;
36726
36730
  return nb({
@@ -36759,7 +36763,7 @@ const ED = () => {
36759
36763
  amountWei: o,
36760
36764
  amountUI: i,
36761
36765
  usd: c
36762
- } = Ii(), {
36766
+ } = Fi(), {
36763
36767
  amountPerTradeWei: l,
36764
36768
  amountPerTradeUI: d,
36765
36769
  amountPerTradeUsd: p,
@@ -36768,11 +36772,11 @@ const ED = () => {
36768
36772
  amountWei: y,
36769
36773
  amountUI: g,
36770
36774
  usd: P
36771
- } = Fi(), {
36775
+ } = Di(), {
36772
36776
  amountUI: B,
36773
36777
  amountWei: C,
36774
36778
  usd: U
36775
- } = Ar(), { milliseconds: k } = ws(), { amountWei: O, amountUI: N } = Es(), { srcAmountUsd: R, dstAmountUsd: h } = bF(), { amount: b, percent: x, usd: v } = yF(), E = gF(), T = te((G) => G.state.isMarketOrder), D = te((G) => G.state.currentTime), w = ei(), A = oF(), F = Gu((t == null ? void 0 : t.decimals) || 0, b), S = Ha((t == null ? void 0 : t.decimals) || 0, r), M = W(() => A === de.TAKE_PROFIT || A === de.STOP_LOSS_LIMIT || A === de.STOP_LOSS_MARKET, [A]), L = xF({
36779
+ } = Ar(), { milliseconds: k } = ws(), { amountWei: O, amountUI: N } = Es(), { srcAmountUsd: R, dstAmountUsd: h } = bF(), { amount: b, percent: x, usd: v } = yF(), E = gF(), T = te((G) => G.state.isMarketOrder), D = te((G) => G.state.currentTime), w = ti(), A = oF(), F = Gu((t == null ? void 0 : t.decimals) || 0, b), S = Ha((t == null ? void 0 : t.decimals) || 0, r), M = W(() => A === de.TAKE_PROFIT || A === de.STOP_LOSS_LIMIT || A === de.STOP_LOSS_MARKET, [A]), L = xF({
36776
36780
  srcToken: w.srcToken || e,
36777
36781
  dstToken: w.dstToken || t,
36778
36782
  account: n,
@@ -36992,7 +36996,7 @@ const ED = () => {
36992
36996
  }
36993
36997
  });
36994
36998
  }, vF = () => {
36995
- const { account: e, chainId: t, srcToken: n, dstToken: r, module: s, slippage: a } = X(), o = Ar(), i = xn().amountWei, c = Et().amountPerTradeWei, l = Xu(), d = Et().totalTrades, p = ws().fillDelay, f = Fi().amountWei, m = te((y) => y.state.isMarketOrder);
36999
+ const { account: e, chainId: t, srcToken: n, dstToken: r, module: s, slippage: a } = X(), o = Ar(), i = xn().amountWei, c = Et().amountPerTradeWei, l = Xu(), d = Et().totalTrades, p = ws().fillDelay, f = Di().amountWei, m = te((y) => y.state.isMarketOrder);
36996
37000
  return hn({
36997
37001
  mutationFn: async () => {
36998
37002
  Ae.onRequestOrder({
@@ -37022,7 +37026,7 @@ function AF(e) {
37022
37026
  };
37023
37027
  }
37024
37028
  const TF = () => {
37025
- const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = X(), a = CF().mutateAsync, o = EF().mutateAsync, i = kF().mutateAsync, { mutateAsync: c } = Sh(), { update: l } = ei(), { amountWei: d, amountUI: p } = xn(), { amountUI: f } = Es(), m = vF().mutate;
37029
+ const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = X(), a = CF().mutateAsync, o = EF().mutateAsync, i = kF().mutateAsync, { mutateAsync: c } = Sh(), { update: l } = ti(), { amountWei: d, amountUI: p } = xn(), { amountUI: f } = Es(), m = vF().mutate;
37026
37030
  return hn({
37027
37031
  mutationFn: async () => {
37028
37032
  var g, P;
@@ -37090,22 +37094,24 @@ const TF = () => {
37090
37094
  }
37091
37095
  });
37092
37096
  }, CD = () => {
37093
- const e = ei(), { amountUI: t } = xn(), { amountUI: n } = Es(), { srcToken: r, dstToken: s } = X(), a = TF(), o = te((c) => c.resetState), i = ke(
37097
+ const e = ti(), { amountUI: t } = xn(), { amountUI: n } = Es(), { srcToken: r, dstToken: s } = X(), a = TF(), o = te((p) => p.resetState), i = ke(
37094
37098
  () => a.mutateAsync(),
37095
37099
  [a]
37096
- );
37100
+ ), { update: c, resetSwap: l, ...d } = e;
37097
37101
  return W(() => ({
37098
- ...e,
37102
+ ...d,
37099
37103
  srcToken: r,
37100
37104
  dstToken: s,
37101
37105
  srcAmount: e.srcAmount || t,
37102
37106
  dstAmount: e.dstAmount || n,
37103
37107
  onSubmit: i,
37104
- resetState: o,
37108
+ onSwapSuccess: o,
37109
+ onSwapFailed: l,
37105
37110
  isLoading: (e == null ? void 0 : e.status) === Ht.LOADING,
37106
37111
  isSuccess: (e == null ? void 0 : e.status) === Ht.SUCCESS,
37107
- isFailed: (e == null ? void 0 : e.status) === Ht.FAILED
37108
- }), [i, e, r, s, o]);
37112
+ isFailed: (e == null ? void 0 : e.status) === Ht.FAILED,
37113
+ confirmButtonLoading: d.allowanceLoading
37114
+ }), [i, d, r, s, o, l]);
37109
37115
  }, vD = () => {
37110
37116
  const {
37111
37117
  marketPrice: e,
@@ -37229,7 +37235,7 @@ export {
37229
37235
  lD as K,
37230
37236
  dD as L,
37231
37237
  ju as M,
37232
- ei as N,
37238
+ ti as N,
37233
37239
  ne as O,
37234
37240
  Le as P,
37235
37241
  s1 as Q,
@@ -37276,7 +37282,7 @@ export {
37276
37282
  Ym as at,
37277
37283
  La as au,
37278
37284
  wt as b,
37279
- xi as c,
37285
+ gi as c,
37280
37286
  _2 as d,
37281
37287
  wr as e,
37282
37288
  Gt as f,
@@ -37285,7 +37291,7 @@ export {
37285
37291
  Ua as i,
37286
37292
  fD as j,
37287
37293
  wD as k,
37288
- Ci as l,
37294
+ vi as l,
37289
37295
  gD as m,
37290
37296
  bD as n,
37291
37297
  yD as o,