@edgex-web/components 1.0.0-beta.5 → 1.0.0-beta.6

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.
@@ -2,7 +2,7 @@ var ib = Object.defineProperty;
2
2
  var ab = (e, t, n) => t in e ? ib(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Xr = (e, t, n) => ab(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as j from "react";
5
- import Z, { createContext as He, useContext as Ne, useMemo as J, useCallback as ee, forwardRef as zc, createElement as As, useRef as de, useEffect as Te, useState as ie, useLayoutEffect as Zs, Fragment as Ft, isValidElement as Uc, cloneElement as fd, useId as ur, useSyncExternalStore as cb, useImperativeHandle as dd } from "react";
5
+ import Z, { createContext as He, useContext as Ne, useMemo as J, useCallback as te, forwardRef as zc, createElement as As, useRef as de, useEffect as Te, useState as ie, useLayoutEffect as Zs, Fragment as Ft, isValidElement as Uc, cloneElement as fd, useId as ur, useSyncExternalStore as cb, useImperativeHandle as dd } from "react";
6
6
  import * as po from "react-dom";
7
7
  import pd, { flushSync as Ns, createPortal as hd } from "react-dom";
8
8
  function lb(e) {
@@ -138,7 +138,7 @@ function fb() {
138
138
  function H() {
139
139
  }
140
140
  H.__reactDisabledLog = !0;
141
- function Q() {
141
+ function ee() {
142
142
  {
143
143
  if (v === 0) {
144
144
  R = console.log, C = console.info, E = console.warn, D = console.error, F = console.group, z = console.groupCollapsed, U = console.groupEnd;
@@ -228,7 +228,7 @@ function fb() {
228
228
  var Pe = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var Se;
231
- Se = _.current, _.current = null, Q();
231
+ Se = _.current, _.current = null, ee();
232
232
  try {
233
233
  if (V) {
234
234
  var ge = function() {
@@ -286,7 +286,7 @@ function fb() {
286
286
  var yr = L ? L.displayName || L.name : "", qn = yr ? xe(yr) : "";
287
287
  return typeof L == "function" && ae.set(L, qn), qn;
288
288
  }
289
- function te(L, V, X) {
289
+ function Q(L, V, X) {
290
290
  return K(L, !1);
291
291
  }
292
292
  function le(L) {
@@ -309,7 +309,7 @@ function fb() {
309
309
  if (typeof L == "object")
310
310
  switch (L.$$typeof) {
311
311
  case a:
312
- return te(L.render);
312
+ return Q(L.render);
313
313
  case f:
314
314
  return se(L.type, V, X);
315
315
  case p: {
@@ -1632,7 +1632,7 @@ function gd(e) {
1632
1632
  return v.reverse();
1633
1633
  }
1634
1634
  return function(x, S, O, I, k) {
1635
- var v, R, C, E, D, F, z, U, H = x.indexOf("."), Q = i, G = c;
1635
+ var v, R, C, E, D, F, z, U, H = x.indexOf("."), ee = i, G = c;
1636
1636
  for (H >= 0 && (E = h, h = 0, x = x.replace(".", ""), U = new w(S), F = U.pow(x.length - H), h = E, U.c = y(
1637
1637
  cn(yt(F.c), F.e, "0"),
1638
1638
  10,
@@ -1640,8 +1640,8 @@ function gd(e) {
1640
1640
  b
1641
1641
  ), U.e = U.c.length), z = y(x, S, O, k ? (v = g, b) : (v = b, g)), C = E = z.length; z[--E] == 0; z.pop()) ;
1642
1642
  if (!z[0]) return v.charAt(0);
1643
- if (H < 0 ? --C : (F.c = z, F.e = C, F.s = I, F = t(F, U, Q, G, O), z = F.c, D = F.r, C = F.e), R = C + Q + 1, H = z[R], E = O / 2, D = D || R < 0 || z[R + 1] != null, D = G < 4 ? (H != null || D) && (G == 0 || G == (F.s < 0 ? 3 : 2)) : H > E || H == E && (G == 4 || D || G == 6 && z[R - 1] & 1 || G == (F.s < 0 ? 8 : 7)), R < 1 || !z[0])
1644
- x = D ? cn(v.charAt(1), -Q, v.charAt(0)) : v.charAt(0);
1643
+ if (H < 0 ? --C : (F.c = z, F.e = C, F.s = I, F = t(F, U, ee, G, O), z = F.c, D = F.r, C = F.e), R = C + ee + 1, H = z[R], E = O / 2, D = D || R < 0 || z[R + 1] != null, D = G < 4 ? (H != null || D) && (G == 0 || G == (F.s < 0 ? 3 : 2)) : H > E || H == E && (G == 4 || D || G == 6 && z[R - 1] & 1 || G == (F.s < 0 ? 8 : 7)), R < 1 || !z[0])
1644
+ x = D ? cn(v.charAt(1), -ee, v.charAt(0)) : v.charAt(0);
1645
1645
  else {
1646
1646
  if (z.length = R, D)
1647
1647
  for (--O; ++z[--R] > O; )
@@ -1677,20 +1677,20 @@ function gd(e) {
1677
1677
  for (; !S[0] && S.length > 1; S.splice(0, 1)) ;
1678
1678
  }
1679
1679
  return function(S, O, I, k, v) {
1680
- var R, C, E, D, F, z, U, H, Q, G, _, ne, xe, q, ae, ce, K, te = S.s == O.s ? 1 : -1, le = S.c, se = O.c;
1680
+ var R, C, E, D, F, z, U, H, ee, G, _, ne, xe, q, ae, ce, K, Q = S.s == O.s ? 1 : -1, le = S.c, se = O.c;
1681
1681
  if (!le || !le[0] || !se || !se[0])
1682
1682
  return new w(
1683
1683
  // Return NaN if either NaN, or both Infinity or 0.
1684
1684
  !S.s || !O.s || (le ? se && le[0] == se[0] : !se) ? NaN : (
1685
1685
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1686
- le && le[0] == 0 || !se ? te * 0 : te / 0
1686
+ le && le[0] == 0 || !se ? Q * 0 : Q / 0
1687
1687
  )
1688
1688
  );
1689
- for (H = new w(te), Q = H.c = [], C = S.e - O.e, te = I + C + 1, v || (v = kt, C = Et(S.e / fe) - Et(O.e / fe), te = te / fe | 0), E = 0; se[E] == (le[E] || 0); E++) ;
1690
- if (se[E] > (le[E] || 0) && C--, te < 0)
1691
- Q.push(1), D = !0;
1689
+ for (H = new w(Q), ee = H.c = [], C = S.e - O.e, Q = I + C + 1, v || (v = kt, C = Et(S.e / fe) - Et(O.e / fe), Q = Q / fe | 0), E = 0; se[E] == (le[E] || 0); E++) ;
1690
+ if (se[E] > (le[E] || 0) && C--, Q < 0)
1691
+ ee.push(1), D = !0;
1692
1692
  else {
1693
- for (q = le.length, ce = se.length, E = 0, te += 2, F = xt(v / (se[0] + 1)), F > 1 && (se = b(se, F, v), le = b(le, F, v), ce = se.length, q = le.length), xe = ce, G = le.slice(0, ce), _ = G.length; _ < ce; G[_++] = 0) ;
1693
+ for (q = le.length, ce = se.length, E = 0, Q += 2, F = xt(v / (se[0] + 1)), F > 1 && (se = b(se, F, v), le = b(le, F, v), ce = se.length, q = le.length), xe = ce, G = le.slice(0, ce), _ = G.length; _ < ce; G[_++] = 0) ;
1694
1694
  K = se.slice(), K = [0].concat(K), ae = se[0], se[1] >= v / 2 && ae++;
1695
1695
  do {
1696
1696
  if (F = 0, R = y(se, G, ce, _), R < 0) {
@@ -1703,12 +1703,12 @@ function gd(e) {
1703
1703
  for (; y(se, G, ce, _) < 1; )
1704
1704
  F++, x(G, ce < _ ? K : se, _, v), _ = G.length;
1705
1705
  } else R === 0 && (F++, G = [0]);
1706
- Q[E++] = F, G[0] ? G[_++] = le[xe] || 0 : (G = [le[xe]], _ = 1);
1707
- } while ((xe++ < q || G[0] != null) && te--);
1708
- D = G[0] != null, Q[0] || Q.splice(0, 1);
1706
+ ee[E++] = F, G[0] ? G[_++] = le[xe] || 0 : (G = [le[xe]], _ = 1);
1707
+ } while ((xe++ < q || G[0] != null) && Q--);
1708
+ D = G[0] != null, ee[0] || ee.splice(0, 1);
1709
1709
  }
1710
1710
  if (v == kt) {
1711
- for (E = 1, te = Q[0]; te >= 10; te /= 10, E++) ;
1711
+ for (E = 1, Q = ee[0]; Q >= 10; Q /= 10, E++) ;
1712
1712
  B(H, I + (H.e = E + C * fe - 1) + 1, k, D);
1713
1713
  } else
1714
1714
  H.e = C, H.r = +D;
@@ -1910,13 +1910,13 @@ function gd(e) {
1910
1910
  var x, S, O = this;
1911
1911
  return b = new w(b, y), !O.c || !b.s || b.c && !b.c[0] ? new w(NaN) : !b.c || O.c && !O.c[0] ? new w(O) : (d == 9 ? (S = b.s, b.s = 1, x = t(O, b, 0, 3), b.s = S, x.s *= S) : x = t(O, b, 0, d), b = O.minus(x.times(b)), !b.c[0] && d == 1 && (b.s = O.s), b);
1912
1912
  }, o.multipliedBy = o.times = function(b, y) {
1913
- var x, S, O, I, k, v, R, C, E, D, F, z, U, H, Q, G = this, _ = G.c, ne = (b = new w(b, y)).c;
1913
+ var x, S, O, I, k, v, R, C, E, D, F, z, U, H, ee, G = this, _ = G.c, ne = (b = new w(b, y)).c;
1914
1914
  if (!_ || !ne || !_[0] || !ne[0])
1915
1915
  return !G.s || !b.s || _ && !_[0] && !ne || ne && !ne[0] && !_ ? b.c = b.e = b.s = null : (b.s *= G.s, !_ || !ne ? b.c = b.e = null : (b.c = [0], b.e = 0)), b;
1916
1916
  for (S = Et(G.e / fe) + Et(b.e / fe), b.s *= G.s, R = _.length, D = ne.length, R < D && (U = _, _ = ne, ne = U, O = R, R = D, D = O), O = R + D, U = []; O--; U.push(0)) ;
1917
- for (H = kt, Q = On, O = D; --O >= 0; ) {
1918
- for (x = 0, F = ne[O] % Q, z = ne[O] / Q | 0, k = R, I = O + k; I > O; )
1919
- C = _[--k] % Q, E = _[k] / Q | 0, v = z * C + E * F, C = F * C + v % Q * Q + U[I] + x, x = (C / H | 0) + (v / Q | 0) + z * E, U[I--] = C % H;
1917
+ for (H = kt, ee = On, O = D; --O >= 0; ) {
1918
+ for (x = 0, F = ne[O] % ee, z = ne[O] / ee | 0, k = R, I = O + k; I > O; )
1919
+ C = _[--k] % ee, E = _[k] / ee | 0, v = z * C + E * F, C = F * C + v % ee * ee + U[I] + x, x = (C / H | 0) + (v / ee | 0) + z * E, U[I--] = C % H;
1920
1920
  U[I] = x;
1921
1921
  }
1922
1922
  return x ? ++S : U.splice(0, 1), $(b, U, S);
@@ -7972,7 +7972,7 @@ async function ui(e, t) {
7972
7972
  if (!(_ instanceof G0) && !(_ instanceof qa))
7973
7973
  throw _;
7974
7974
  }
7975
- const Q = (() => {
7975
+ const ee = (() => {
7976
7976
  const _ = [
7977
7977
  H,
7978
7978
  E
@@ -7980,11 +7980,11 @@ async function ui(e, t) {
7980
7980
  return F && D ? [..._, F, D] : F ? [..._, F] : D ? [..._, {}, D] : _;
7981
7981
  })(), G = await e.request({
7982
7982
  method: "eth_call",
7983
- params: Q
7983
+ params: ee
7984
7984
  });
7985
7985
  return G === "0x" ? { data: void 0 } : { data: G };
7986
7986
  } catch (C) {
7987
- const E = wv(C), { offchainLookup: D, offchainLookupSignature: F } = await import("./ccip-D0TZjRwQ.mjs");
7987
+ const E = wv(C), { offchainLookup: D, offchainLookupSignature: F } = await import("./ccip-sLjM_hEM.mjs");
7988
7988
  if (e.ccipRead !== !1 && (E == null ? void 0 : E.slice(0, 10)) === F && N)
7989
7989
  return { data: await D(e, { data: E, to: N }) };
7990
7990
  throw S && (E == null ? void 0 : E.slice(0, 10)) === "0x101bb98d" ? new Yg({ factory: p }) : q0(C, {
@@ -11155,8 +11155,8 @@ function S6(e) {
11155
11155
  let z;
11156
11156
  try {
11157
11157
  z = n.sqrt(F);
11158
- } catch (Q) {
11159
- const G = Q instanceof Error ? ": " + Q.message : "";
11158
+ } catch (ee) {
11159
+ const G = ee instanceof Error ? ": " + ee.message : "";
11160
11160
  throw new Error("Point is not on curve" + G);
11161
11161
  }
11162
11162
  const U = (z & je) === je;
@@ -11209,7 +11209,7 @@ function S6(e) {
11209
11209
  const z = D === 2 || D === 3 ? C + t.n : C;
11210
11210
  if (z >= n.ORDER)
11211
11211
  throw new Error("recovery id 2 or 3 invalid");
11212
- const U = D & 1 ? "03" : "02", H = u.fromHex(U + oa(z, n.BYTES)), Q = l(z), G = a(-F * Q), _ = a(E * Q), ne = u.BASE.multiplyAndAddUnsafe(H, G, _);
11212
+ const U = D & 1 ? "03" : "02", H = u.fromHex(U + oa(z, n.BYTES)), ee = l(z), G = a(-F * ee), _ = a(E * ee), ne = u.BASE.multiplyAndAddUnsafe(H, G, _);
11213
11213
  if (!ne)
11214
11214
  throw new Error("point at infinify");
11215
11215
  return ne.assertValidity(), ne;
@@ -11302,7 +11302,7 @@ function S6(e) {
11302
11302
  const { hash: E, randomBytes: D } = t;
11303
11303
  let { lowS: F, prehash: z, extraEntropy: U } = C;
11304
11304
  F == null && (F = !0), v = St("msgHash", v), of(C), z && (v = St("prehashed msgHash", E(v)));
11305
- const H = M(v), Q = f(R), G = [y(Q), y(H)];
11305
+ const H = M(v), ee = f(R), G = [y(ee), y(H)];
11306
11306
  if (U != null && U !== !1) {
11307
11307
  const q = U === !0 ? D(n.BYTES) : U;
11308
11308
  G.push(St("extraEntropy", q));
@@ -11312,14 +11312,14 @@ function S6(e) {
11312
11312
  const ae = B(q);
11313
11313
  if (!d(ae))
11314
11314
  return;
11315
- const ce = l(ae), K = u.BASE.multiply(ae).toAffine(), te = a(K.x);
11316
- if (te === hn)
11315
+ const ce = l(ae), K = u.BASE.multiply(ae).toAffine(), Q = a(K.x);
11316
+ if (Q === hn)
11317
11317
  return;
11318
- const le = a(ce * a(ne + te * Q));
11318
+ const le = a(ce * a(ne + Q * ee));
11319
11319
  if (le === hn)
11320
11320
  return;
11321
- let se = (K.x === te ? 0 : 2) | Number(K.y & je), ye = le;
11322
- return F && h(le) && (ye = m(le), se ^= 1), new A(te, ye, se);
11321
+ let se = (K.x === Q ? 0 : 2) | Number(K.y & je), ye = le;
11322
+ return F && h(le) && (ye = m(le), se ^= 1), new A(Q, ye, se);
11323
11323
  }
11324
11324
  return { seed: _, k2sig: xe };
11325
11325
  }
@@ -11338,12 +11338,12 @@ function S6(e) {
11338
11338
  throw new Error("options.strict was renamed to lowS");
11339
11339
  if (U !== void 0 && U !== "compact" && U !== "der")
11340
11340
  throw new Error("format must be compact or der");
11341
- const H = typeof D == "string" || Jo(D), Q = !H && !U && typeof D == "object" && D !== null && typeof D.r == "bigint" && typeof D.s == "bigint";
11342
- if (!H && !Q)
11341
+ const H = typeof D == "string" || Jo(D), ee = !H && !U && typeof D == "object" && D !== null && typeof D.r == "bigint" && typeof D.s == "bigint";
11342
+ if (!H && !ee)
11343
11343
  throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");
11344
11344
  let G, _;
11345
11345
  try {
11346
- if (Q && (G = new A(D.r, D.s)), H) {
11346
+ if (ee && (G = new A(D.r, D.s)), H) {
11347
11347
  try {
11348
11348
  U !== "compact" && (G = A.fromDER(D));
11349
11349
  } catch (ye) {
@@ -11359,8 +11359,8 @@ function S6(e) {
11359
11359
  if (!G || F && G.hasHighS())
11360
11360
  return !1;
11361
11361
  z && (R = t.hash(R));
11362
- const { r: ne, s: xe } = G, q = M(R), ae = l(xe), ce = a(q * ae), K = a(ne * ae), te = (se = u.BASE.multiplyAndAddUnsafe(_, ce, K)) == null ? void 0 : se.toAffine();
11363
- return te ? a(te.x) === ne : !1;
11362
+ const { r: ne, s: xe } = G, q = M(R), ae = l(xe), ce = a(q * ae), K = a(ne * ae), Q = (se = u.BASE.multiplyAndAddUnsafe(_, ce, K)) == null ? void 0 : se.toAffine();
11363
+ return Q ? a(Q.x) === ne : !1;
11364
11364
  }
11365
11365
  return {
11366
11366
  CURVE: t,
@@ -12257,7 +12257,7 @@ async function u5(e, t) {
12257
12257
  const F = x[E];
12258
12258
  if (typeof D != "bigint" || typeof F != "bigint")
12259
12259
  continue;
12260
- const z = k[E - 1], U = v[E - 1], H = R[E - 1], Q = E === 0 ? {
12260
+ const z = k[E - 1], U = v[E - 1], H = R[E - 1], ee = E === 0 ? {
12261
12261
  address: c5,
12262
12262
  decimals: 18,
12263
12263
  symbol: "ETH"
@@ -12266,8 +12266,8 @@ async function u5(e, t) {
12266
12266
  decimals: H || z ? Number(z ?? 1) : void 0,
12267
12267
  symbol: U ?? void 0
12268
12268
  };
12269
- C.some((G) => G.token.address === Q.address) || C.push({
12270
- token: Q,
12269
+ C.some((G) => G.token.address === ee.address) || C.push({
12270
+ token: ee,
12271
12271
  value: {
12272
12272
  pre: F,
12273
12273
  post: D,
@@ -13197,8 +13197,8 @@ function L5({
13197
13197
  s
13198
13198
  ]), { value: i, formatted: a };
13199
13199
  }
13200
- const qP = () => ({ openDeposit: ee((t) => {
13201
- }, []) }), KP = () => ({ openWithdraw: ee((t) => {
13200
+ const qP = () => ({ openDeposit: te((t) => {
13201
+ }, []) }), KP = () => ({ openWithdraw: te((t) => {
13202
13202
  }, []) }), yn = "MPC", gi = "EVM";
13203
13203
  var Ue = /* @__PURE__ */ ((e) => (e.SPOT = "spot", e.PERPETUAL = "perpetual", e.PERPETUALV2 = "perpetual_v2", e))(Ue || {});
13204
13204
  const F5 = "spot", j5 = "perpetual";
@@ -13311,7 +13311,7 @@ function K5(e) {
13311
13311
  t.current = e;
13312
13312
  }, [
13313
13313
  e
13314
- ]), ee((...n) => {
13314
+ ]), te((...n) => {
13315
13315
  const r = t.current;
13316
13316
  return r == null ? void 0 : r(...n);
13317
13317
  }, []);
@@ -13390,7 +13390,7 @@ An(function() {
13390
13390
  return yi(/Firefox/i);
13391
13391
  });
13392
13392
  function Hp() {
13393
- let e = de(/* @__PURE__ */ new Map()), t = ee((o, s, i, c) => {
13393
+ let e = de(/* @__PURE__ */ new Map()), t = te((o, s, i, c) => {
13394
13394
  let a = c != null && c.once ? (...l) => {
13395
13395
  e.current.delete(i), i(...l);
13396
13396
  } : i;
@@ -13400,11 +13400,11 @@ function Hp() {
13400
13400
  fn: a,
13401
13401
  options: c
13402
13402
  }), o.addEventListener(s, a, c);
13403
- }, []), n = ee((o, s, i, c) => {
13403
+ }, []), n = te((o, s, i, c) => {
13404
13404
  var a;
13405
13405
  let l = ((a = e.current.get(i)) === null || a === void 0 ? void 0 : a.fn) || i;
13406
13406
  o.removeEventListener(s, l, c), e.current.delete(i);
13407
- }, []), r = ee(() => {
13407
+ }, []), r = te(() => {
13408
13408
  e.current.forEach((o, s) => {
13409
13409
  n(o.eventTarget, o.type, s, o.options);
13410
13410
  });
@@ -13448,7 +13448,7 @@ function qp(e) {
13448
13448
  let n = K5((r) => {
13449
13449
  e == null || e(r);
13450
13450
  });
13451
- return ee((r) => {
13451
+ return te((r) => {
13452
13452
  if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
13453
13453
  t.current.isFocused = !0;
13454
13454
  let o = r.target, s = (i) => {
@@ -13566,13 +13566,13 @@ function fx(e, t, n) {
13566
13566
  }
13567
13567
  function dx(e) {
13568
13568
  let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
13569
- const s = ee((a) => {
13569
+ const s = te((a) => {
13570
13570
  if (a.target === a.currentTarget)
13571
13571
  return r && r(a), o && o(!1), !0;
13572
13572
  }, [
13573
13573
  r,
13574
13574
  o
13575
- ]), i = qp(s), c = ee((a) => {
13575
+ ]), i = qp(s), c = te((a) => {
13576
13576
  const l = Hn(a.target), u = l ? lc(l) : lc();
13577
13577
  a.target === a.currentTarget && u === Vp(a.nativeEvent) && (n && n(a), o && o(!0), i(a));
13578
13578
  }, [
@@ -13590,14 +13590,14 @@ function dx(e) {
13590
13590
  function px(e) {
13591
13591
  let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, s = de({
13592
13592
  isFocusWithin: !1
13593
- }), { addGlobalListener: i, removeAllGlobalListeners: c } = Hp(), a = ee((f) => {
13593
+ }), { addGlobalListener: i, removeAllGlobalListeners: c } = Hp(), a = te((f) => {
13594
13594
  f.currentTarget.contains(f.target) && s.current.isFocusWithin && !f.currentTarget.contains(f.relatedTarget) && (s.current.isFocusWithin = !1, c(), n && n(f), o && o(!1));
13595
13595
  }, [
13596
13596
  n,
13597
13597
  o,
13598
13598
  s,
13599
13599
  c
13600
- ]), l = qp(a), u = ee((f) => {
13600
+ ]), l = qp(a), u = te((f) => {
13601
13601
  if (!f.currentTarget.contains(f.target)) return;
13602
13602
  const p = Hn(f.target), d = lc(p);
13603
13603
  if (!s.current.isFocusWithin && d === Vp(f.nativeEvent)) {
@@ -13719,7 +13719,7 @@ function bx(e = {}) {
13719
13719
  let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = de({
13720
13720
  isFocused: !1,
13721
13721
  isFocusVisible: t || Jp()
13722
- }), [s, i] = ie(!1), [c, a] = ie(() => o.current.isFocused && o.current.isFocusVisible), l = ee(() => a(o.current.isFocused && o.current.isFocusVisible), []), u = ee((d) => {
13722
+ }), [s, i] = ie(!1), [c, a] = ie(() => o.current.isFocused && o.current.isFocusVisible), l = te(() => a(o.current.isFocused && o.current.isFocusVisible), []), u = te((d) => {
13723
13723
  o.current.isFocused = d, i(d), l();
13724
13724
  }, [
13725
13725
  l
@@ -13892,7 +13892,7 @@ function Rt(e, t, ...n) {
13892
13892
  var zs = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(zs || {}), kn = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(kn || {});
13893
13893
  function bt() {
13894
13894
  let e = Ax();
13895
- return ee((t) => Tx({ mergeRefs: e, ...t }), [e]);
13895
+ return te((t) => Tx({ mergeRefs: e, ...t }), [e]);
13896
13896
  }
13897
13897
  function Tx({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: s = !0, name: i, mergeRefs: c }) {
13898
13898
  c = c ?? Nx;
@@ -13938,7 +13938,7 @@ function ms(e, t = {}, n, r, o) {
13938
13938
  return As(s, Object.assign({}, la(a, ["ref"]), !co(s) && l, !co(s) && f), u);
13939
13939
  }
13940
13940
  function Ax() {
13941
- let e = de([]), t = ee((n) => {
13941
+ let e = de([]), t = te((n) => {
13942
13942
  for (let r of e.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
13943
13943
  }, []);
13944
13944
  return (...n) => {
@@ -14209,7 +14209,7 @@ function n2(e, t) {
14209
14209
  return e !== null && t !== null && typeof e == "object" && typeof t == "object" && "id" in e && "id" in t ? e.id === t.id : e === t;
14210
14210
  }
14211
14211
  function r2(e = n2) {
14212
- return ee((t, n) => {
14212
+ return te((t, n) => {
14213
14213
  if (typeof e == "string") {
14214
14214
  let r = e;
14215
14215
  return (t == null ? void 0 : t[r]) === (n == null ? void 0 : n[r]);
@@ -14478,7 +14478,7 @@ function b2(e) {
14478
14478
  return e;
14479
14479
  }
14480
14480
  function Eh(e, t) {
14481
- let n = ur(), r = Bl.get(t), [o, s] = nt(r, ee((i) => [r.selectors.isTop(i, n), r.selectors.inStack(i, n)], [r, n]));
14481
+ let n = ur(), r = Bl.get(t), [o, s] = nt(r, te((i) => [r.selectors.isTop(i, n), r.selectors.inStack(i, n)], [r, n]));
14482
14482
  return ke(() => {
14483
14483
  if (e) return r.actions.push(n), () => r.actions.pop(n);
14484
14484
  }, [r, e, n]), e ? s ? o : !0 : !1;
@@ -14639,7 +14639,7 @@ function O2(e, t, n, r) {
14639
14639
  }
14640
14640
  const Ef = 30;
14641
14641
  function I2(e, t, n) {
14642
- let r = mr(n), o = ee(function(c, a) {
14642
+ let r = mr(n), o = te(function(c, a) {
14643
14643
  if (c.defaultPrevented) return;
14644
14644
  let l = a(c);
14645
14645
  if (l === null || !l.getRootNode().contains(l) || !l.isConnected) return;
@@ -14833,7 +14833,7 @@ function _2() {
14833
14833
  } };
14834
14834
  }
14835
14835
  function W2(e = 0) {
14836
- let [t, n] = ie(e), r = ee((a) => n(a), []), o = ee((a) => n((l) => l | a), []), s = ee((a) => (t & a) === a, [t]), i = ee((a) => n((l) => l & ~a), []), c = ee((a) => n((l) => l ^ a), []);
14836
+ let [t, n] = ie(e), r = te((a) => n(a), []), o = te((a) => n((l) => l | a), []), s = te((a) => (t & a) === a, [t]), i = te((a) => n((l) => l & ~a), []), c = te((a) => n((l) => l ^ a), []);
14837
14837
  return { flags: t, setFlag: r, addFlag: o, hasFlag: s, removeFlag: i, toggleFlag: c };
14838
14838
  }
14839
14839
  var Af, Nf;
@@ -16667,7 +16667,7 @@ function $8() {
16667
16667
  }
16668
16668
  function k8() {
16669
16669
  let { getFloatingProps: e, slot: t } = Ne(Yr);
16670
- return ee((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
16670
+ return te((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
16671
16671
  }
16672
16672
  function D8(e = null) {
16673
16673
  e === !1 && (e = null), typeof e == "string" && (e = { to: e });
@@ -17007,10 +17007,10 @@ function r3(e, t) {
17007
17007
  Te(() => {
17008
17008
  N && o || (F(M), z(M));
17009
17009
  }, [M, N, o]);
17010
- let U = !(!o || !N || !v || R), [, H] = Rh(U, A, M, { start: F, end: z }), Q = $n({ ref: $, className: ((r = hc(g.className, C && l, C && u, H.enter && l, H.enter && H.closed && u, H.enter && !H.closed && f, H.leave && d, H.leave && !H.closed && h, H.leave && H.closed && m, !H.transition && M && p)) == null ? void 0 : r.trim()) || void 0, ...Nh(H) }), G = 0;
17010
+ let U = !(!o || !N || !v || R), [, H] = Rh(U, A, M, { start: F, end: z }), ee = $n({ ref: $, className: ((r = hc(g.className, C && l, C && u, H.enter && l, H.enter && H.closed && u, H.enter && !H.closed && f, H.leave && d, H.leave && !H.closed && h, H.leave && H.closed && m, !H.transition && M && p)) == null ? void 0 : r.trim()) || void 0, ...Nh(H) }), G = 0;
17011
17011
  x === "visible" && (G |= Mt.Open), x === "hidden" && (G |= Mt.Closed), M && x === "hidden" && (G |= Mt.Opening), !M && x === "visible" && (G |= Mt.Closing);
17012
17012
  let _ = bt();
17013
- return Z.createElement(Oi.Provider, { value: D }, Z.createElement(Qh, { value: G }, _({ ourProps: Q, theirProps: g, defaultTag: am, features: cm, visible: x === "visible", name: "Transition.Child" })));
17013
+ return Z.createElement(Oi.Provider, { value: D }, Z.createElement(Qh, { value: G }, _({ ourProps: ee, theirProps: g, defaultTag: am, features: cm, visible: x === "visible", name: "Transition.Child" })));
17014
17014
  }
17015
17015
  function o3(e, t) {
17016
17016
  let { show: n, appear: r = !1, unmount: o = !0, ...s } = e, i = de(null), c = sm(e), a = It(...c ? [i, t] : t === null ? [] : [t]);
@@ -17263,15 +17263,15 @@ let d3 = Ft;
17263
17263
  function p3(e, t) {
17264
17264
  let n = ur(), r = $l(), { value: o, defaultValue: s, form: i, name: c, onChange: a, by: l, invalid: u = !1, disabled: f = r || !1, horizontal: p = !1, multiple: d = !1, __demoMode: h = !1, ...m } = e;
17265
17265
  const g = p ? "horizontal" : "vertical";
17266
- let A = It(t), w = Cx(s), [P = d ? [] : void 0, N] = Ix(o, a, w), $ = dm({ id: n, __demoMode: h }), B = de({ static: !1, hold: !1 }), M = de(/* @__PURE__ */ new Map()), b = r2(l), y = ee((U) => Rt(x.mode, { [Dn.Multi]: () => P.some((H) => b(H, U)), [Dn.Single]: () => b(P, U) }), [P]), x = Wn({ value: P, disabled: f, invalid: u, mode: d ? Dn.Multi : Dn.Single, orientation: g, onChange: N, compare: b, isSelected: y, optionsPropsRef: B, listRef: M });
17266
+ let A = It(t), w = Cx(s), [P = d ? [] : void 0, N] = Ix(o, a, w), $ = dm({ id: n, __demoMode: h }), B = de({ static: !1, hold: !1 }), M = de(/* @__PURE__ */ new Map()), b = r2(l), y = te((U) => Rt(x.mode, { [Dn.Multi]: () => P.some((H) => b(H, U)), [Dn.Single]: () => b(P, U) }), [P]), x = Wn({ value: P, disabled: f, invalid: u, mode: d ? Dn.Multi : Dn.Single, orientation: g, onChange: N, compare: b, isSelected: y, optionsPropsRef: B, listRef: M });
17267
17267
  ke(() => {
17268
17268
  $.state.dataRef.current = x;
17269
17269
  }, [x]);
17270
- let S = nt($, (U) => U.listboxState), O = Bl.get(null), I = nt(O, ee((U) => O.selectors.isTop(U, n), [O, n])), [k, v] = nt($, (U) => [U.buttonElement, U.optionsElement]);
17270
+ let S = nt($, (U) => U.listboxState), O = Bl.get(null), I = nt(O, te((U) => O.selectors.isTop(U, n), [O, n])), [k, v] = nt($, (U) => [U.buttonElement, U.optionsElement]);
17271
17271
  I2(I, [k, v], (U, H) => {
17272
17272
  $.send({ type: um.CloseListbox }), Sh(H, Ml.Loose) || (U.preventDefault(), k == null || k.focus());
17273
17273
  });
17274
- let R = Wn({ open: S === qe.Open, disabled: f, invalid: u, value: P }), [C, E] = Xx({ inherit: !0 }), D = { ref: A }, F = ee(() => {
17274
+ let R = Wn({ open: S === qe.Open, disabled: f, invalid: u, value: P }), [C, E] = Xx({ inherit: !0 }), D = { ref: A }, F = te(() => {
17275
17275
  if (w !== void 0) return N == null ? void 0 : N(w);
17276
17276
  }, [N, w]), z = bt();
17277
17277
  return Z.createElement(E, { value: C, props: { htmlFor: k == null ? void 0 : k.id }, slot: { open: S === qe.Open, disabled: f } }, Z.createElement(B8, null, Z.createElement(fm.Provider, { value: $ }, Z.createElement(Ci.Provider, { value: x }, Z.createElement(Qh, { value: Rt(S, { [qe.Open]: Mt.Open, [qe.Closed]: Mt.Closed }) }, c != null && P != null && Z.createElement(Fx, { disabled: f, data: { [c]: P }, form: i, onReset: F }), z({ ourProps: D, theirProps: m, slot: R, defaultTag: d3, name: "Listbox" }))))));
@@ -17279,7 +17279,7 @@ function p3(e, t) {
17279
17279
  let h3 = "button";
17280
17280
  function m3(e, t) {
17281
17281
  let n = ur(), r = ah(), o = ss("Listbox.Button"), s = Kl("Listbox.Button"), { id: i = r || `headlessui-listbox-button-${n}`, disabled: c = o.disabled || !1, autoFocus: a = !1, ...l } = e, u = It(t, C8(), s.actions.setButtonElement), f = $8(), [p, d, h] = nt(s, (v) => [v.listboxState, v.buttonElement, v.optionsElement]), m = p === qe.Open;
17282
- k2(m, { trigger: d, action: ee((v) => {
17282
+ k2(m, { trigger: d, action: te((v) => {
17283
17283
  if (d != null && d.contains(v.target)) return bs.Ignore;
17284
17284
  let R = v.target.closest('[role="option"]:not([data-disabled])');
17285
17285
  return Nn(R) ? bs.Select(R) : h != null && h.contains(v.target) ? bs.Ignore : bs.Close;
@@ -17318,8 +17318,8 @@ function y3(e, t) {
17318
17318
  let M = A ? !1 : i && h === qe.Open;
17319
17319
  U2(M, P);
17320
17320
  let b = A ? !1 : i && h === qe.Open;
17321
- g2(b, { allowed: ee(() => [m, g], [m, g]) });
17322
- let y = nt(d, d.selectors.didButtonMove) ? !1 : $, x = nt(d, d.selectors.hasFrozenValue) && !e.static, S = Jh(x, p.value), O = ee((_) => p.compare(S, _), [p.compare, S]), I = nt(d, (_) => {
17321
+ g2(b, { allowed: te(() => [m, g], [m, g]) });
17322
+ let y = nt(d, d.selectors.didButtonMove) ? !1 : $, x = nt(d, d.selectors.hasFrozenValue) && !e.static, S = Jh(x, p.value), O = te((_) => p.compare(S, _), [p.compare, S]), I = nt(d, (_) => {
17323
17323
  var ne;
17324
17324
  if (l == null || !((ne = l == null ? void 0 : l.to) != null && ne.includes("selection"))) return null;
17325
17325
  let xe = _.options.findIndex((q) => O(q.dataRef.current.value));
@@ -17365,8 +17365,8 @@ function y3(e, t) {
17365
17365
  }), z = nt(d, (_) => {
17366
17366
  var ne;
17367
17367
  return (ne = _.buttonElement) == null ? void 0 : ne.id;
17368
- }), U = Wn({ open: h === qe.Open }), H = nh(l ? C() : {}, { id: r, ref: E, "aria-activedescendant": nt(d, d.selectors.activeDescendantId), "aria-multiselectable": p.mode === Dn.Multi ? !0 : void 0, "aria-labelledby": z, "aria-orientation": p.orientation, onKeyDown: F, role: "listbox", tabIndex: h === qe.Open ? 0 : void 0, style: { ...a.style, ...R, "--button-width": o2($, m, !0).width }, ...Nh(B) }), Q = bt(), G = J(() => p.mode === Dn.Multi ? p : { ...p, isSelected: O }, [p, O]);
17369
- return Z.createElement(Y8, { enabled: s ? e.static || $ : !1, ownerDocument: w }, Z.createElement(Ci.Provider, { value: G }, Q({ ourProps: H, theirProps: a, slot: U, defaultTag: b3, features: g3, visible: y, name: "Listbox.Options" })));
17368
+ }), U = Wn({ open: h === qe.Open }), H = nh(l ? C() : {}, { id: r, ref: E, "aria-activedescendant": nt(d, d.selectors.activeDescendantId), "aria-multiselectable": p.mode === Dn.Multi ? !0 : void 0, "aria-labelledby": z, "aria-orientation": p.orientation, onKeyDown: F, role: "listbox", tabIndex: h === qe.Open ? 0 : void 0, style: { ...a.style, ...R, "--button-width": o2($, m, !0).width }, ...Nh(B) }), ee = bt(), G = J(() => p.mode === Dn.Multi ? p : { ...p, isSelected: O }, [p, O]);
17369
+ return Z.createElement(Y8, { enabled: s ? e.static || $ : !1, ownerDocument: w }, Z.createElement(Ci.Provider, { value: G }, ee({ ourProps: H, theirProps: a, slot: U, defaultTag: b3, features: g3, visible: y, name: "Listbox.Options" })));
17370
17370
  }
17371
17371
  let v3 = "div";
17372
17372
  function w3(e, t) {
@@ -17752,7 +17752,7 @@ const C3 = {
17752
17752
  // 默认为充值场景
17753
17753
  accountType: c
17754
17754
  }) => {
17755
- const a = ee(
17755
+ const a = te(
17756
17756
  (g) => i === "withdraw" ? s === yn ? g.allowAaWithdraw !== !1 : g.allowWithdraw !== !1 : s === yn ? g.allowAaDeposit !== !1 : g.allowDeposit !== !1,
17757
17757
  [i, s]
17758
17758
  ), l = J(() => {
@@ -18888,8 +18888,8 @@ var u4 = function() {
18888
18888
  k.height = k.width = s * D;
18889
18889
  const F = s / x * D;
18890
18890
  v.scale(F, F), v.fillStyle = c, v.fillRect(0, 0, x, x), v.fillStyle = a, u4 ? v.fill(new Path2D(Rm(R, b))) : y.forEach(function(z, U) {
18891
- z.forEach(function(H, Q) {
18892
- H && v.fillRect(Q + b, U + b, 1, 1);
18891
+ z.forEach(function(H, ee) {
18892
+ H && v.fillRect(ee + b, U + b, 1, 1);
18893
18893
  });
18894
18894
  }), S && (v.globalAlpha = S.opacity), E && v.drawImage(
18895
18895
  C,
@@ -19646,8 +19646,8 @@ function G4(e, t) {
19646
19646
  Array.from(F).every((G) => !Ur(z, G)))
19647
19647
  return;
19648
19648
  if (Je(E) && I) {
19649
- const G = vn(E), _ = Ot(E), ne = /auto|scroll/, xe = G || ne.test(_.overflowX), q = G || ne.test(_.overflowY), ae = xe && E.clientWidth > 0 && E.scrollWidth > E.clientWidth, ce = q && E.clientHeight > 0 && E.scrollHeight > E.clientHeight, K = _.direction === "rtl", te = ce && (K ? k.offsetX <= E.offsetWidth - E.clientWidth : k.offsetX > E.clientWidth), le = ae && k.offsetY > E.clientHeight;
19650
- if (te || le)
19649
+ const G = vn(E), _ = Ot(E), ne = /auto|scroll/, xe = G || ne.test(_.overflowX), q = G || ne.test(_.overflowY), ae = xe && E.clientWidth > 0 && E.scrollWidth > E.clientWidth, ce = q && E.clientHeight > 0 && E.scrollHeight > E.clientHeight, K = _.direction === "rtl", Q = ce && (K ? k.offsetX <= E.offsetWidth - E.clientWidth : k.offsetX > E.clientWidth), le = ae && k.offsetY > E.clientHeight;
19650
+ if (Q || le)
19651
19651
  return;
19652
19652
  }
19653
19653
  const U = (v = s.current.floatingContext) == null ? void 0 : v.nodeId, H = m && Ts(m.nodesRef.current, U).some((G) => {
@@ -19656,10 +19656,10 @@ function G4(e, t) {
19656
19656
  });
19657
19657
  if (wa(k, o.floating) || wa(k, o.domReference) || H)
19658
19658
  return;
19659
- const Q = m ? Ts(m.nodesRef.current, U) : [];
19660
- if (Q.length > 0) {
19659
+ const ee = m ? Ts(m.nodesRef.current, U) : [];
19660
+ if (ee.length > 0) {
19661
19661
  let G = !0;
19662
- if (Q.forEach((_) => {
19662
+ if (ee.forEach((_) => {
19663
19663
  var ne;
19664
19664
  if ((ne = _.context) != null && ne.open && !_.context.dataRef.current.__outsidePressBubbles) {
19665
19665
  G = !1;
@@ -20483,18 +20483,18 @@ const Fn = ({
20483
20483
  };
20484
20484
  let it = null;
20485
20485
  const sP = Z.forwardRef((e, t) => {
20486
- const [n, r] = ie(!1), [o, s] = ie(!1), [i, c] = ie(jm), a = ee((h) => {
20486
+ const [n, r] = ie(!1), [o, s] = ie(!1), [i, c] = ie(jm), a = te((h) => {
20487
20487
  c(h), r(!0);
20488
- }, []), l = ee(
20488
+ }, []), l = te(
20489
20489
  (h) => {
20490
20490
  c((m) => ({ ...m, ...h }));
20491
20491
  },
20492
20492
  []
20493
- ), u = ee(() => {
20493
+ ), u = te(() => {
20494
20494
  r(!1), s(!1), i.onClose && i.onClose();
20495
- }, [i.onClose]), f = ee((h) => {
20495
+ }, [i.onClose]), f = te((h) => {
20496
20496
  s(h);
20497
- }, []), p = ee(() => n, [n]), d = ee(() => o, [o]);
20497
+ }, []), p = te(() => n, [n]), d = te(() => o, [o]);
20498
20498
  return dd(
20499
20499
  t,
20500
20500
  () => ({
@@ -20662,7 +20662,7 @@ function dP(e) {
20662
20662
  } catch {
20663
20663
  return !1;
20664
20664
  }
20665
- }, [d, A.isSuccess, w, s, f]), N = ee(async () => {
20665
+ }, [d, A.isSuccess, w, s, f]), N = te(async () => {
20666
20666
  try {
20667
20667
  if (r && n && +n != +r && await h({ chainId: +r }), !m || !g || !u || !p)
20668
20668
  return;
@@ -20734,7 +20734,7 @@ const pP = ({
20734
20734
  const M = B.toLowerCase();
20735
20735
  return !(B === P || M === N);
20736
20736
  });
20737
- }, [r]), [c, a] = ie({}), l = ee(
20737
+ }, [r]), [c, a] = ie({}), l = te(
20738
20738
  (P, N) => {
20739
20739
  a(($) => ({
20740
20740
  ...$,
@@ -20799,7 +20799,7 @@ const pP = ({
20799
20799
  baseTokenBalance: P,
20800
20800
  combinedData: $
20801
20801
  };
20802
- }, [u, c, i]), m = ee(async () => h, [h]), g = J(() => {
20802
+ }, [u, c, i]), m = te(async () => h, [h]), g = J(() => {
20803
20803
  const P = (u == null ? void 0 : u.isLoading) || !1, N = Object.values(c).some(
20804
20804
  ($) => {
20805
20805
  var B;
@@ -20807,7 +20807,7 @@ const pP = ({
20807
20807
  }
20808
20808
  );
20809
20809
  return P || N;
20810
- }, [u == null ? void 0 : u.isLoading, c]), A = ee(() => p((P) => P + 1), []);
20810
+ }, [u == null ? void 0 : u.isLoading, c]), A = te(() => p((P) => P + 1), []);
20811
20811
  return {
20812
20812
  multicallRun: m,
20813
20813
  multicallRefresh: A,
@@ -20833,16 +20833,17 @@ const pP = ({
20833
20833
  const { t: f } = sn(), p = a.useAccount(), d = t.tokenList.find(
20834
20834
  (K) => K.token === n || K.symbol === n
20835
20835
  ), h = t.chainId, m = J(() => {
20836
- const K = Number((t == null ? void 0 : t.cctpResolvedMaxFee) ?? 0);
20837
- return Number.isFinite(K) ? K !== 0 : !1;
20838
- }, [t == null ? void 0 : t.cctpResolvedMaxFee]), [g, A] = ie(""), [w, P] = ie(
20836
+ if (!((n || "").toUpperCase() === "USDC")) return !1;
20837
+ const Q = Number((t == null ? void 0 : t.cctpResolvedMaxFee) ?? 0);
20838
+ return Number.isFinite(Q) ? Q !== 0 : !1;
20839
+ }, [t == null ? void 0 : t.cctpResolvedMaxFee, n]), [g, A] = ie(""), [w, P] = ie(
20839
20840
  () => m ? "fast" : "standard"
20840
20841
  );
20841
20842
  Te(() => {
20842
20843
  A("");
20843
20844
  }, [n, t.chainId]), Te(() => {
20844
- !m && w === "fast" && P("standard");
20845
- }, [m, w]);
20845
+ P(m ? "fast" : "standard");
20846
+ }, [t.chainId, m]);
20846
20847
  const { multicallResult: N, queryComponents: $ } = hP({
20847
20848
  account: e,
20848
20849
  chainId: t.chainId,
@@ -20850,19 +20851,19 @@ const pP = ({
20850
20851
  tokens: (t == null ? void 0 : t.tokenList) || [],
20851
20852
  wagmiHooks: a
20852
20853
  }), B = J(() => {
20853
- var te;
20854
+ var Q;
20854
20855
  if (!d) return "0";
20855
20856
  if (!d.tokenAddress || d.tokenAddress.toLowerCase() === "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
20856
20857
  return N.baseTokenBalance.formatted;
20857
20858
  const K = N.combinedData[d.tokenAddress];
20858
- return ((te = K == null ? void 0 : K.balance) == null ? void 0 : te.formatted) || "0";
20859
+ return ((Q = K == null ? void 0 : K.balance) == null ? void 0 : Q.formatted) || "0";
20859
20860
  }, [d, N]), M = "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9", b = "0xceeed84620e5eb9ab1d6dfc316867d2cda332e41", y = J(
20860
20861
  () => {
20861
- var K, te;
20862
+ var K, Q;
20862
20863
  return $5({
20863
20864
  chain: M5,
20864
20865
  transport: B5(
20865
- t.rpcUrl || ((K = window == null ? void 0 : window.ENV) == null ? void 0 : K.CHAIN_RPC_URL_42161) || ((te = window == null ? void 0 : window.ENV) == null ? void 0 : te.CHAIN_RPC_URL_421614)
20866
+ t.rpcUrl || ((K = window == null ? void 0 : window.ENV) == null ? void 0 : K.CHAIN_RPC_URL_42161) || ((Q = window == null ? void 0 : window.ENV) == null ? void 0 : Q.CHAIN_RPC_URL_421614)
20866
20867
  )
20867
20868
  });
20868
20869
  },
@@ -20881,7 +20882,7 @@ const pP = ({
20881
20882
  tokenInfo: d,
20882
20883
  amount: g,
20883
20884
  wagmiHooks: a
20884
- }), R = ee(async () => {
20885
+ }), R = te(async () => {
20885
20886
  if (!O)
20886
20887
  try {
20887
20888
  I(!0), await v();
@@ -20890,16 +20891,16 @@ const pP = ({
20890
20891
  } finally {
20891
20892
  I(!1);
20892
20893
  }
20893
- }, [O, v]), C = J(() => +p.chainId != +t.chainId, [p.chainId, t.chainId]), E = ee(async () => {
20894
+ }, [O, v]), C = J(() => +p.chainId != +t.chainId, [p.chainId, t.chainId]), E = te(async () => {
20894
20895
  l && l(h);
20895
20896
  }, [l, h]);
20896
20897
  Te(() => {
20897
20898
  C && E();
20898
20899
  }, [C, E]);
20899
20900
  const { showLayerZeroTip: D, layerZeroTipKey: F } = J(() => {
20900
- const K = +t.chainId == 42161 || +t.chainId == 421614, te = (n == null ? void 0 : n.toUpperCase()) === "USDT", le = new _e(g || "0"), se = new _e("200000");
20901
+ const K = +t.chainId == 42161 || +t.chainId == 421614, Q = (n == null ? void 0 : n.toUpperCase()) === "USDT", le = new _e(g || "0"), se = new _e("200000");
20901
20902
  let ye = !1, Y;
20902
- if (K && te && g)
20903
+ if (K && Q && g)
20903
20904
  if (le.gte(se))
20904
20905
  ye = !0, Y = "deposit.layerZeroDepositTipGte200k";
20905
20906
  else {
@@ -20915,7 +20916,7 @@ const pP = ({
20915
20916
  n,
20916
20917
  g,
20917
20918
  S
20918
- ]), z = ee(() => oP(
20919
+ ]), z = te(() => oP(
20919
20920
  +t.chainId,
20920
20921
  B || "0",
20921
20922
  n,
@@ -20932,14 +20933,14 @@ const pP = ({
20932
20933
  n
20933
20934
  ),
20934
20935
  [r, t == null ? void 0 : t.chainId, g, n]
20935
- ), H = J(() => "deposit.maxDepositSplitTip", []), Q = J(() => {
20936
- const K = Number((t == null ? void 0 : t.blockTime) ?? 0), te = Number((t == null ? void 0 : t.txConfirm) ?? 0);
20937
- return !Number.isFinite(K) || !Number.isFinite(te) ? 0 : K * te / 60;
20938
- }, [t == null ? void 0 : t.blockTime, t == null ? void 0 : t.txConfirm]), G = m && w === "standard", _ = G ? 20 : Q, ne = J(() => {
20936
+ ), H = J(() => "deposit.maxDepositSplitTip", []), ee = J(() => {
20937
+ const K = Number((t == null ? void 0 : t.blockTime) ?? 0), Q = Number((t == null ? void 0 : t.txConfirm) ?? 0);
20938
+ return !Number.isFinite(K) || !Number.isFinite(Q) ? 0 : K * Q / 60;
20939
+ }, [t == null ? void 0 : t.blockTime, t == null ? void 0 : t.txConfirm]), G = m && w === "standard", _ = G ? 20 : ee, ne = J(() => {
20939
20940
  const K = d == null ? void 0 : d.depositFeeRate;
20940
20941
  if (K == null) return "";
20941
- const te = String(K).trim();
20942
- return te ? `${te}%` : "";
20942
+ const Q = String(K).trim();
20943
+ return Q ? `${Q}%` : "";
20943
20944
  }, [d == null ? void 0 : d.depositFeeRate]), xe = m && w === "fast" && !!ne, q = fP({
20944
20945
  isNetworkMismatch: C,
20945
20946
  depositAmount: g,
@@ -20949,12 +20950,12 @@ const pP = ({
20949
20950
  showLayerZeroTip: D,
20950
20951
  minDeposit: d != null && d.minDepositSize ? parseFloat(d.minDepositSize) : 10
20951
20952
  }), ae = (K) => {
20952
- const te = K.target.value, le = z(), se = qs(te, le);
20953
+ const Q = K.target.value, le = z(), se = qs(Q, le);
20953
20954
  if (se.isValid)
20954
20955
  A(se.formattedValue), se.errorType;
20955
20956
  else
20956
20957
  return se.errorType === "exceed_balance", void 0;
20957
- }, ce = ee(async () => {
20958
+ }, ce = te(async () => {
20958
20959
  Mc(!0);
20959
20960
  try {
20960
20961
  u && u({
@@ -21085,7 +21086,7 @@ const pP = ({
21085
21086
  {
21086
21087
  content: /* @__PURE__ */ T.jsxs("div", { className: "grid grow max-w-[300px] min-w-[80px] rounded-2xl flex-col gap-[10px]", children: [
21087
21088
  /* @__PURE__ */ T.jsx("p", { children: f("deposit.arrivaltimeTooltip1", {
21088
- v: Q,
21089
+ v: ee,
21089
21090
  v1: t == null ? void 0 : t.txConfirm
21090
21091
  }) }),
21091
21092
  /* @__PURE__ */ T.jsx("p", { children: f("deposit.arrivaltimeTooltip2") })
@@ -21164,7 +21165,7 @@ const pP = ({
21164
21165
  (ce) => ce.key === m
21165
21166
  );
21166
21167
  return (q == null ? void 0 : q.key) || ((ae = h[0]) == null ? void 0 : ae.key) || m;
21167
- }, [h, m]), [w, P] = ie(A), N = ee(
21168
+ }, [h, m]), [w, P] = ie(A), N = te(
21168
21169
  (q) => {
21169
21170
  var ae;
21170
21171
  return ((ae = h.find((ce) => ce.key === q)) == null ? void 0 : ae.chains) || [];
@@ -21196,9 +21197,9 @@ const pP = ({
21196
21197
  token: pe.token || pe.symbol || ""
21197
21198
  };
21198
21199
  }
21199
- const te = ce.length > 0 ? ae : $.find((ye) => (ye.tokenList || []).length > 0) || ae, le = ((te == null ? void 0 : te.tokenList) || [])[0];
21200
+ const Q = ce.length > 0 ? ae : $.find((ye) => (ye.tokenList || []).length > 0) || ae, le = ((Q == null ? void 0 : Q.tokenList) || [])[0];
21200
21201
  return {
21201
- chainId: (te == null ? void 0 : te.chainId) || ae.chainId || 1,
21202
+ chainId: (Q == null ? void 0 : Q.chainId) || ae.chainId || 1,
21202
21203
  token: (le == null ? void 0 : le.token) || (le == null ? void 0 : le.symbol) || ""
21203
21204
  };
21204
21205
  }, [{ chainId: M, token: b }] = ie(
@@ -21210,11 +21211,11 @@ const pP = ({
21210
21211
  () => (S == null ? void 0 : S.chains) || [],
21211
21212
  [S]
21212
21213
  ), I = J(() => {
21213
- var te, le;
21214
+ var Q, le;
21214
21215
  if (!S || !Lc(S.account) || !(w === Ue.SPOT || w === Ue.PERPETUALV2)) return !1;
21215
- const ce = !!((te = S.walletOptions) != null && te.evm), K = !!((le = S.walletOptions) != null && le.mpc);
21216
+ const ce = !!((Q = S.walletOptions) != null && Q.evm), K = !!((le = S.walletOptions) != null && le.mpc);
21216
21217
  return ce && K;
21217
- }, [S, w]), k = ee(() => {
21218
+ }, [S, w]), k = te(() => {
21218
21219
  var q, ae;
21219
21220
  return (q = S == null ? void 0 : S.walletOptions) != null && q.evm ? "evm" : (ae = S == null ? void 0 : S.walletOptions) != null && ae.mpc || S != null && S.account && fo(S.account) ? "mpc" : "evm";
21220
21221
  }, [S]), [v, R] = ie(
@@ -21233,17 +21234,17 @@ const pP = ({
21233
21234
  }, [S, v, I]), E = J(
21234
21235
  () => C && fo(C) ? yn : gi,
21235
21236
  [C]
21236
- ), D = O.find((q) => q.chainId === y) || O[0], [F, z] = ie(b), U = ee(
21237
+ ), D = O.find((q) => q.chainId === y) || O[0], [F, z] = ie(b), U = te(
21237
21238
  (q) => {
21238
21239
  x(q), f == null || f(q);
21239
21240
  },
21240
21241
  [f]
21241
- ), H = ee(
21242
+ ), H = te(
21242
21243
  (q) => {
21243
21244
  z(q), p == null || p(q);
21244
21245
  },
21245
21246
  [p]
21246
- ), Q = J(() => {
21247
+ ), ee = J(() => {
21247
21248
  const q = (F || "").toLowerCase();
21248
21249
  if (!q) return "0";
21249
21250
  const ae = (c == null ? void 0 : c[w]) || (w === Ue.PERPETUAL ? c == null ? void 0 : c.perp : void 0), ce = ae == null ? void 0 : ae[q];
@@ -21309,10 +21310,10 @@ const pP = ({
21309
21310
  if (!ce || ce.length === 0) return;
21310
21311
  const K = ce.find(
21311
21312
  (De) => De.chainId === y
21312
- ), te = K ? K.chainId : ce[0].chainId;
21313
- x(te), f == null || f(te);
21313
+ ), Q = K ? K.chainId : ce[0].chainId;
21314
+ x(Q), f == null || f(Q);
21314
21315
  const le = ce.find(
21315
- (De) => De.chainId === te
21316
+ (De) => De.chainId === Q
21316
21317
  ), se = (le == null ? void 0 : le.tokenList) || [], Y = se.some(
21317
21318
  (De) => (De.symbol || De.token) === F
21318
21319
  ) ? F : ((pe = se[0]) == null ? void 0 : pe.symbol) || ((we = se[0]) == null ? void 0 : we.token) || "";
@@ -21395,7 +21396,7 @@ const pP = ({
21395
21396
  accountType: w,
21396
21397
  accountId: C.accountId,
21397
21398
  accountKey: S == null ? void 0 : S.key,
21398
- platformBalance: Q,
21399
+ platformBalance: ee,
21399
21400
  isLoading: t,
21400
21401
  wagmiHooks: a,
21401
21402
  onChainChange: U,
@@ -21610,18 +21611,18 @@ const Fc = {
21610
21611
  accountChains: [],
21611
21612
  defaultAccountType: ""
21612
21613
  }, yP = Z.forwardRef((e, t) => {
21613
- const [n, r] = ie(!1), [o, s] = ie(!1), [i, c] = ie(Fc), a = ee((h) => {
21614
+ const [n, r] = ie(!1), [o, s] = ie(!1), [i, c] = ie(Fc), a = te((h) => {
21614
21615
  c(h || Fc), r(!0);
21615
- }, []), l = ee(
21616
+ }, []), l = te(
21616
21617
  (h) => {
21617
21618
  c((m) => ({ ...m, ...h }));
21618
21619
  },
21619
21620
  []
21620
- ), u = ee(() => {
21621
+ ), u = te(() => {
21621
21622
  r(!1), s(!1), i.onClose && i.onClose();
21622
- }, [i.onClose]), f = ee((h) => {
21623
+ }, [i.onClose]), f = te((h) => {
21623
21624
  s(h);
21624
- }, []), p = ee(() => n, [n]), d = ee(() => o, [o]);
21625
+ }, []), p = te(() => n, [n]), d = te(() => o, [o]);
21625
21626
  return dd(
21626
21627
  t,
21627
21628
  () => ({
@@ -21782,7 +21783,7 @@ const vP = (e) => {
21782
21783
  if (!b || !Lc(b.account) || !($ === Ue.SPOT || $ === Ue.PERPETUALV2)) return !1;
21783
21784
  const we = !!((Ht = b.walletOptions) != null && Ht.evm), De = !!((Ce = b.walletOptions) != null && Ce.mpc);
21784
21785
  return we && De;
21785
- }, [b, $]), S = ee(() => {
21786
+ }, [b, $]), S = te(() => {
21786
21787
  var Y, pe;
21787
21788
  return (Y = b == null ? void 0 : b.walletOptions) != null && Y.evm ? "evm" : (pe = b == null ? void 0 : b.walletOptions) != null && pe.mpc || b != null && b.account && fo(b.account) ? "mpc" : "evm";
21788
21789
  }, [b]), [O, I] = ie(
@@ -21837,12 +21838,12 @@ const vP = (e) => {
21837
21838
  () => C.chainId
21838
21839
  ), [F, z] = ie(
21839
21840
  () => C.tokenSymbol
21840
- ), [U, H] = ie(r), [Q, G] = ie(""), _ = ee(
21841
+ ), [U, H] = ie(r), [ee, G] = ie(""), _ = te(
21841
21842
  (Y) => {
21842
21843
  D(Y), p == null || p(Y);
21843
21844
  },
21844
21845
  [p]
21845
- ), ne = ee(
21846
+ ), ne = te(
21846
21847
  (Y) => {
21847
21848
  z(Y), d == null || d(Y);
21848
21849
  },
@@ -21857,7 +21858,7 @@ const vP = (e) => {
21857
21858
  }, [F, E]);
21858
21859
  const ce = y && y.length > 0 ? y.find((Y) => Y.chainId === E) || y[0] : null, K = (ye = ce == null ? void 0 : ce.tokenList) == null ? void 0 : ye.find(
21859
21860
  (Y) => Y.token === F
21860
- ), te = J(() => {
21861
+ ), Q = J(() => {
21861
21862
  const Y = new _e(U || "0"), pe = new _e(a || "0"), we = pn(E);
21862
21863
  return K != null && K.minWithdrawSize && Y.lt(K.minWithdrawSize) ? {
21863
21864
  text: g("withdraw.minWithdrawParsed", {
@@ -21868,7 +21869,7 @@ const vP = (e) => {
21868
21869
  } : !U || Y.isZero() || !we && Y.isLessThan(pe) ? {
21869
21870
  text: g("withdraw.confirmWithdraw"),
21870
21871
  disabled: !0
21871
- } : v === "mpc" && (!we || $ === "spot") && !Q.trim() ? {
21872
+ } : v === "mpc" && (!we || $ === "spot") && !ee.trim() ? {
21872
21873
  text: g("withdraw.invalidReceiverAddress"),
21873
21874
  disabled: !0
21874
21875
  } : {
@@ -21880,7 +21881,7 @@ const vP = (e) => {
21880
21881
  E,
21881
21882
  U,
21882
21883
  v,
21883
- Q,
21884
+ ee,
21884
21885
  a,
21885
21886
  $,
21886
21887
  K
@@ -21889,7 +21890,7 @@ const vP = (e) => {
21889
21890
  if (!Y) return i || "0";
21890
21891
  const pe = (c == null ? void 0 : c[$]) || ($ === Ue.PERPETUAL ? c == null ? void 0 : c.perp : void 0), we = pe == null ? void 0 : pe[Y];
21891
21892
  return typeof we == "string" && we.length > 0 ? we : i || "0";
21892
- }, [c, $, F, i]), se = ee(async () => {
21893
+ }, [c, $, F, i]), se = te(async () => {
21893
21894
  jc(!0);
21894
21895
  try {
21895
21896
  if (u) {
@@ -21902,7 +21903,7 @@ const vP = (e) => {
21902
21903
  accountType: $,
21903
21904
  selectedToken: K
21904
21905
  };
21905
- v === "mpc" && (!pn(E) || $ === "spot") && (pe.receiverAddress = Q), u(pe);
21906
+ v === "mpc" && (!pn(E) || $ === "spot") && (pe.receiverAddress = ee), u(pe);
21906
21907
  }
21907
21908
  } catch {
21908
21909
  jc(!1);
@@ -21915,7 +21916,7 @@ const vP = (e) => {
21915
21916
  E,
21916
21917
  F,
21917
21918
  v,
21918
- Q
21919
+ ee
21919
21920
  ]);
21920
21921
  return !y || y.length === 0 ? /* @__PURE__ */ T.jsx("div", { className: "text-center py-8", children: /* @__PURE__ */ T.jsx("p", { className: "text-gray-400", children: "No chains available" }) }) : ce ? /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
21921
21922
  /* @__PURE__ */ T.jsx(
@@ -22012,7 +22013,7 @@ const vP = (e) => {
22012
22013
  fee: a,
22013
22014
  walletType: v,
22014
22015
  accountType: $,
22015
- receiverAddress: Q,
22016
+ receiverAddress: ee,
22016
22017
  onWithdrawAmountChange: H,
22017
22018
  onReceiverAddressChange: G,
22018
22019
  onAmountChanged: h
@@ -22021,12 +22022,12 @@ const vP = (e) => {
22021
22022
  /* @__PURE__ */ T.jsxs(
22022
22023
  "button",
22023
22024
  {
22024
- className: `w-full h-[38px] text-sm rounded-xl font-medium transition-colors flex items-center justify-center gap-2 ${te.disabled || l ? "bg-text-disabled text-text-secondary cursor-not-allowed" : "bg-fill-btn-primary text-text-on-sec-btn"}`,
22025
+ className: `w-full h-[38px] text-sm rounded-xl font-medium transition-colors flex items-center justify-center gap-2 ${Q.disabled || l ? "bg-text-disabled text-text-secondary cursor-not-allowed" : "bg-fill-btn-primary text-text-on-sec-btn"}`,
22025
22026
  onClick: se,
22026
- disabled: te.disabled || l,
22027
+ disabled: Q.disabled || l,
22027
22028
  children: [
22028
22029
  l && /* @__PURE__ */ T.jsx(Bc, { size: "xs" }),
22029
- te.text
22030
+ Q.text
22030
22031
  ]
22031
22032
  }
22032
22033
  )
@@ -22172,4 +22173,4 @@ export {
22172
22173
  yP as y,
22173
22174
  vP as z
22174
22175
  };
22175
- //# sourceMappingURL=index-C9NAf6QZ.mjs.map
22176
+ //# sourceMappingURL=index-VjAiP2Y6.mjs.map