@edgex-web/components 0.1.0-beta.41 → 0.1.0-beta.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ccip-BA6oBn1O.mjs → ccip-QG9Dq841.mjs} +2 -2
- package/dist/{ccip-BA6oBn1O.mjs.map → ccip-QG9Dq841.mjs.map} +1 -1
- package/dist/components/Withdraw/src/evm/index.d.ts.map +1 -1
- package/dist/{index-BYcXlDcy.mjs → index-D1cRHogg.mjs} +266 -267
- package/dist/{index-BYcXlDcy.mjs.map → index-D1cRHogg.mjs.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +20 -20
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -241,29 +241,29 @@ function Sm() {
|
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
243
|
Reflect.construct(le, []);
|
|
244
|
-
} catch (
|
|
245
|
-
te =
|
|
244
|
+
} catch (Ue) {
|
|
245
|
+
te = Ue;
|
|
246
246
|
}
|
|
247
247
|
Reflect.construct(M, [], le);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
le.call();
|
|
251
|
-
} catch (
|
|
252
|
-
te =
|
|
251
|
+
} catch (Ue) {
|
|
252
|
+
te = Ue;
|
|
253
253
|
}
|
|
254
254
|
M.call(le.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
258
258
|
throw Error();
|
|
259
|
-
} catch (
|
|
260
|
-
te =
|
|
259
|
+
} catch (Ue) {
|
|
260
|
+
te = Ue;
|
|
261
261
|
}
|
|
262
262
|
M();
|
|
263
263
|
}
|
|
264
|
-
} catch (
|
|
265
|
-
if (
|
|
266
|
-
for (var ce =
|
|
264
|
+
} catch (Ue) {
|
|
265
|
+
if (Ue && te && typeof Ue.stack == "string") {
|
|
266
|
+
for (var ce = Ue.stack.split(`
|
|
267
267
|
`), Fe = te.stack.split(`
|
|
268
268
|
`), Pe = ce.length - 1, $e = Fe.length - 1; Pe >= 1 && $e >= 0 && ce[Pe] !== Fe[$e]; )
|
|
269
269
|
$e--;
|
|
@@ -606,11 +606,11 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
606
606
|
$u(tt, M);
|
|
607
607
|
}
|
|
608
608
|
if (Ir.call(V, "key")) {
|
|
609
|
-
var $n = S(M),
|
|
609
|
+
var $n = S(M), Ue = Object.keys(V).filter(function(hm) {
|
|
610
610
|
return hm !== "key";
|
|
611
|
-
}), ii =
|
|
611
|
+
}), ii = Ue.length > 0 ? "{key: someKey, " + Ue.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!Au[$n + ii]) {
|
|
613
|
-
var pm =
|
|
613
|
+
var pm = Ue.length > 0 ? "{" + Ue.join(": ..., ") + ": ...}" : "{}";
|
|
614
614
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
@@ -921,7 +921,7 @@ const Pm = {
|
|
|
921
921
|
throw new Error("useComponentConfig must be used within ComponentProvider");
|
|
922
922
|
return e;
|
|
923
923
|
};
|
|
924
|
-
var Cm = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ai = Math.ceil, st = Math.floor,
|
|
924
|
+
var Cm = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ai = Math.ceil, st = Math.floor, ze = "[BigNumber Error] ", Nu = ze + "Number primitive has more than 15 significant digits: ", gt = 1e14, oe = 14, ci = 9007199254740991, ui = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], fn = 1e7, Ie = 1e9;
|
|
925
925
|
function Of(e) {
|
|
926
926
|
var t, n, r, o = b.prototype = { constructor: b, toString: null, valueOf: null }, s = new b(1), i = 20, c = 4, a = -7, u = 21, l = -1e7, d = 1e7, f = !1, p = 1, h = 0, m = {
|
|
927
927
|
prefix: "",
|
|
@@ -1010,28 +1010,28 @@ function Of(e) {
|
|
|
1010
1010
|
else if (ye(P, -Ie, Ie, w), P)
|
|
1011
1011
|
l = -(d = P < 0 ? -P : P);
|
|
1012
1012
|
else
|
|
1013
|
-
throw Error(
|
|
1013
|
+
throw Error(ze + w + " cannot be zero: " + P);
|
|
1014
1014
|
if (g.hasOwnProperty(w = "CRYPTO"))
|
|
1015
1015
|
if (P = g[w], P === !!P)
|
|
1016
1016
|
if (P)
|
|
1017
1017
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
1018
1018
|
f = P;
|
|
1019
1019
|
else
|
|
1020
|
-
throw f = !P, Error(
|
|
1020
|
+
throw f = !P, Error(ze + "crypto unavailable");
|
|
1021
1021
|
else
|
|
1022
1022
|
f = P;
|
|
1023
1023
|
else
|
|
1024
|
-
throw Error(
|
|
1024
|
+
throw Error(ze + w + " not true or false: " + P);
|
|
1025
1025
|
if (g.hasOwnProperty(w = "MODULO_MODE") && (P = g[w], ye(P, 0, 9, w), p = P), g.hasOwnProperty(w = "POW_PRECISION") && (P = g[w], ye(P, 0, Ie, w), h = P), g.hasOwnProperty(w = "FORMAT"))
|
|
1026
1026
|
if (P = g[w], typeof P == "object") m = P;
|
|
1027
|
-
else throw Error(
|
|
1027
|
+
else throw Error(ze + w + " not an object: " + P);
|
|
1028
1028
|
if (g.hasOwnProperty(w = "ALPHABET"))
|
|
1029
1029
|
if (P = g[w], typeof P == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(P))
|
|
1030
1030
|
T = P.slice(0, 10) == "0123456789", v = P;
|
|
1031
1031
|
else
|
|
1032
|
-
throw Error(
|
|
1032
|
+
throw Error(ze + w + " invalid: " + P);
|
|
1033
1033
|
} else
|
|
1034
|
-
throw Error(
|
|
1034
|
+
throw Error(ze + "Object expected: " + g);
|
|
1035
1035
|
return {
|
|
1036
1036
|
DECIMAL_PLACES: i,
|
|
1037
1037
|
ROUNDING_MODE: c,
|
|
@@ -1061,7 +1061,7 @@ function Of(e) {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
} else if (I === null && O === null && (S === null || S === 1 || S === -1))
|
|
1063
1063
|
return !0;
|
|
1064
|
-
throw Error(
|
|
1064
|
+
throw Error(ze + "Invalid BigNumber: " + g);
|
|
1065
1065
|
}, b.maximum = b.max = function() {
|
|
1066
1066
|
return C(arguments, -1);
|
|
1067
1067
|
}, b.minimum = b.min = function() {
|
|
@@ -1084,7 +1084,7 @@ function Of(e) {
|
|
|
1084
1084
|
x = (I[A] & 31) * 281474976710656 + I[A + 1] * 1099511627776 + I[A + 2] * 4294967296 + I[A + 3] * 16777216 + (I[A + 4] << 16) + (I[A + 5] << 8) + I[A + 6], x >= 9e15 ? crypto.randomBytes(7).copy(I, A) : (R.push(x % 1e14), A += 7);
|
|
1085
1085
|
A = E / 7;
|
|
1086
1086
|
} else
|
|
1087
|
-
throw f = !1, Error(
|
|
1087
|
+
throw f = !1, Error(ze + "crypto unavailable");
|
|
1088
1088
|
if (!f)
|
|
1089
1089
|
for (; A < E; )
|
|
1090
1090
|
x = w(), x < 9e15 && (R[A++] = x % 1e14);
|
|
@@ -1114,21 +1114,21 @@ function Of(e) {
|
|
|
1114
1114
|
return function(P, I, O, S, E) {
|
|
1115
1115
|
var x, A, R, y, N, L, j, U, z = P.indexOf("."), Z = i, H = c;
|
|
1116
1116
|
for (z >= 0 && (y = h, h = 0, P = P.replace(".", ""), U = new b(I), L = U.pow(P.length - z), h = y, U.c = w(
|
|
1117
|
-
|
|
1117
|
+
Wt(nt(L.c), L.e, "0"),
|
|
1118
1118
|
10,
|
|
1119
1119
|
O,
|
|
1120
1120
|
g
|
|
1121
1121
|
), U.e = U.c.length), j = w(P, I, O, E ? (x = v, g) : (x = g, v)), R = y = j.length; j[--y] == 0; j.pop()) ;
|
|
1122
1122
|
if (!j[0]) return x.charAt(0);
|
|
1123
1123
|
if (z < 0 ? --R : (L.c = j, L.e = R, L.s = S, L = t(L, U, Z, H, O), j = L.c, N = L.r, R = L.e), A = R + Z + 1, z = j[A], y = O / 2, N = N || A < 0 || j[A + 1] != null, N = H < 4 ? (z != null || N) && (H == 0 || H == (L.s < 0 ? 3 : 2)) : z > y || z == y && (H == 4 || N || H == 6 && j[A - 1] & 1 || H == (L.s < 0 ? 8 : 7)), A < 1 || !j[0])
|
|
1124
|
-
P = N ?
|
|
1124
|
+
P = N ? Wt(x.charAt(1), -Z, x.charAt(0)) : x.charAt(0);
|
|
1125
1125
|
else {
|
|
1126
1126
|
if (j.length = A, N)
|
|
1127
1127
|
for (--O; ++j[--A] > O; )
|
|
1128
1128
|
j[A] = 0, A || (++R, j = [1].concat(j));
|
|
1129
1129
|
for (y = j.length; !j[--y]; ) ;
|
|
1130
1130
|
for (z = 0, P = ""; z <= y; P += x.charAt(j[z++])) ;
|
|
1131
|
-
P =
|
|
1131
|
+
P = Wt(P, R, x.charAt(0));
|
|
1132
1132
|
}
|
|
1133
1133
|
return P;
|
|
1134
1134
|
};
|
|
@@ -1199,11 +1199,11 @@ function Of(e) {
|
|
|
1199
1199
|
var O, S, E, x, A;
|
|
1200
1200
|
if (P == null ? P = c : ye(P, 0, 8), !g.c) return g.toString();
|
|
1201
1201
|
if (O = g.c[0], E = g.e, w == null)
|
|
1202
|
-
A = nt(g.c), A = I == 1 || I == 2 && (E <= a || E >= u) ? Do(A, E) :
|
|
1202
|
+
A = nt(g.c), A = I == 1 || I == 2 && (E <= a || E >= u) ? Do(A, E) : Wt(A, E, "0");
|
|
1203
1203
|
else if (g = F(new b(g), w, P), S = g.e, A = nt(g.c), x = A.length, I == 1 || I == 2 && (w <= S || S <= a)) {
|
|
1204
1204
|
for (; x < w; A += "0", x++) ;
|
|
1205
1205
|
A = Do(A, S);
|
|
1206
|
-
} else if (w -= E + (I === 2 && S > E), A =
|
|
1206
|
+
} else if (w -= E + (I === 2 && S > E), A = Wt(A, S, "0"), S + 1 > x) {
|
|
1207
1207
|
if (--w > 0) for (A += "."; w--; A += "0") ;
|
|
1208
1208
|
} else if (w += S - x, w > 0)
|
|
1209
1209
|
for (S + 1 == x && (A += "."); w--; A += "0") ;
|
|
@@ -1231,7 +1231,7 @@ function Of(e) {
|
|
|
1231
1231
|
}), A && (R = A, y = y.replace(w, "$1").replace(P, "0.$1")), E != y))
|
|
1232
1232
|
return new b(y, R);
|
|
1233
1233
|
if (b.DEBUG)
|
|
1234
|
-
throw Error(
|
|
1234
|
+
throw Error(ze + "Not a" + (A ? " base " + A : "") + " number: " + E);
|
|
1235
1235
|
S.s = null;
|
|
1236
1236
|
}
|
|
1237
1237
|
S.c = S.e = null;
|
|
@@ -1279,7 +1279,7 @@ function Of(e) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
function D(g) {
|
|
1281
1281
|
var w, P = g.e;
|
|
1282
|
-
return P === null ? g.toString() : (w = nt(g.c), w = P <= a || P >= u ? Do(w, P) :
|
|
1282
|
+
return P === null ? g.toString() : (w = nt(g.c), w = P <= a || P >= u ? Do(w, P) : Wt(w, P, "0"), g.s < 0 ? "-" + w : w);
|
|
1283
1283
|
}
|
|
1284
1284
|
return o.absoluteValue = o.abs = function() {
|
|
1285
1285
|
var g = new b(this);
|
|
@@ -1300,7 +1300,7 @@ function Of(e) {
|
|
|
1300
1300
|
}, o.exponentiatedBy = o.pow = function(g, w) {
|
|
1301
1301
|
var P, I, O, S, E, x, A, R, y, N = this;
|
|
1302
1302
|
if (g = new b(g), g.c && !g.isInteger())
|
|
1303
|
-
throw Error(
|
|
1303
|
+
throw Error(ze + "Exponent not an integer: " + D(g));
|
|
1304
1304
|
if (w != null && (w = new b(w)), x = g.e > 14, !N.c || !N.c[0] || N.c[0] == 1 && !N.e && N.c.length == 1 || !g.c || !g.c[0])
|
|
1305
1305
|
return y = new b(Math.pow(+D(N), x ? g.s * (2 - Fo(g)) : +D(g))), w ? y.mod(w) : y;
|
|
1306
1306
|
if (A = g.s < 0, w) {
|
|
@@ -1460,7 +1460,7 @@ function Of(e) {
|
|
|
1460
1460
|
if (P == null)
|
|
1461
1461
|
g != null && w && typeof w == "object" ? (P = w, w = null) : g && typeof g == "object" ? (P = g, g = w = null) : P = m;
|
|
1462
1462
|
else if (typeof P != "object")
|
|
1463
|
-
throw Error(
|
|
1463
|
+
throw Error(ze + "Argument not an object: " + P);
|
|
1464
1464
|
if (I = O.toFixed(g, w), O.c) {
|
|
1465
1465
|
var S, E = I.split("."), x = +P.groupSize, A = +P.secondaryGroupSize, R = P.groupSeparator || "", y = E[0], N = E[1], L = O.s < 0, j = L ? y.slice(1) : y, U = j.length;
|
|
1466
1466
|
if (A && (S = x, x = A, A = S, U -= S), x > 0 && U > 0) {
|
|
@@ -1476,7 +1476,7 @@ function Of(e) {
|
|
|
1476
1476
|
}, o.toFraction = function(g) {
|
|
1477
1477
|
var w, P, I, O, S, E, x, A, R, y, N, L, j = this, U = j.c;
|
|
1478
1478
|
if (g != null && (x = new b(g), !x.isInteger() && (x.c || x.s !== 1) || x.lt(s)))
|
|
1479
|
-
throw Error(
|
|
1479
|
+
throw Error(ze + "Argument " + (x.isInteger() ? "out of range: " : "not an integer: ") + D(x));
|
|
1480
1480
|
if (!U) return new b(j);
|
|
1481
1481
|
for (w = new b(s), R = P = new b(s), I = A = new b(s), L = nt(U), S = w.e = L.length - j.e - 1, w.c[0] = ui[(E = S % oe) < 0 ? oe + E : E], g = !g || x.comparedTo(w) > 0 ? S > 0 ? w : R : x, E = d, d = 1 / 0, x = new b(L), A.c[0] = 0; y = t(x, w, 0, 1), O = P.plus(y.times(I)), O.comparedTo(g) != 1; )
|
|
1482
1482
|
P = I, I = O, R = A.plus(y.times(O = R)), A = O, w = x.minus(y.times(O = w)), x = O;
|
|
@@ -1489,7 +1489,7 @@ function Of(e) {
|
|
|
1489
1489
|
return g != null && ye(g, 1, Ie), $(this, g, w, 2);
|
|
1490
1490
|
}, o.toString = function(g) {
|
|
1491
1491
|
var w, P = this, I = P.s, O = P.e;
|
|
1492
|
-
return O === null ? I ? (w = "Infinity", I < 0 && (w = "-" + w)) : w = "NaN" : (g == null ? w = O <= a || O >= u ? Do(nt(P.c), O) :
|
|
1492
|
+
return O === null ? I ? (w = "Infinity", I < 0 && (w = "-" + w)) : w = "NaN" : (g == null ? w = O <= a || O >= u ? Do(nt(P.c), O) : Wt(nt(P.c), O, "0") : g === 10 && T ? (P = F(new b(P), i + O + 1, c), w = Wt(nt(P.c), P.e, "0")) : (ye(g, 2, v.length, "Base"), w = n(Wt(nt(P.c), O, "0"), 10, g, I, !0)), I < 0 && P.c[0] && (w = "-" + w)), w;
|
|
1493
1493
|
}, o.valueOf = o.toJSON = function() {
|
|
1494
1494
|
return D(this);
|
|
1495
1495
|
}, o._isBigNumber = !0, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null && b.set(e), b;
|
|
@@ -1518,7 +1518,7 @@ function An(e, t) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
function ye(e, t, n, r) {
|
|
1520
1520
|
if (e < t || e > n || e !== st(e))
|
|
1521
|
-
throw Error(
|
|
1521
|
+
throw Error(ze + (r || "Argument") + (typeof e == "number" ? e < t || e > n ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
|
|
1522
1522
|
}
|
|
1523
1523
|
function Fo(e) {
|
|
1524
1524
|
var t = e.c.length - 1;
|
|
@@ -1527,7 +1527,7 @@ function Fo(e) {
|
|
|
1527
1527
|
function Do(e, t) {
|
|
1528
1528
|
return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (t < 0 ? "e" : "e+") + t;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function Wt(e, t, n) {
|
|
1531
1531
|
var r, o;
|
|
1532
1532
|
if (t < 0) {
|
|
1533
1533
|
for (o = n + "."; ++t; o += n) ;
|
|
@@ -1538,13 +1538,13 @@ function Vt(e, t, n) {
|
|
|
1538
1538
|
} else t < r && (e = e.slice(0, t) + "." + e.slice(t));
|
|
1539
1539
|
return e;
|
|
1540
1540
|
}
|
|
1541
|
-
var
|
|
1541
|
+
var Ve = Of();
|
|
1542
1542
|
const t$ = (e, t = 6) => {
|
|
1543
1543
|
try {
|
|
1544
|
-
const n = new
|
|
1544
|
+
const n = new Ve(e || "0");
|
|
1545
1545
|
if (n.isNaN())
|
|
1546
1546
|
return "0";
|
|
1547
|
-
const r = n.decimalPlaces(t,
|
|
1547
|
+
const r = n.decimalPlaces(t, Ve.ROUND_DOWN), [o, s = ""] = r.toString().split("."), i = o.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1548
1548
|
if (t > 0) {
|
|
1549
1549
|
const c = (s || "").padEnd(t, "0");
|
|
1550
1550
|
return `${i}.${c}`;
|
|
@@ -2202,10 +2202,10 @@ let pg = class {
|
|
|
2202
2202
|
get isHandoffComplete() {
|
|
2203
2203
|
return this.handoffState === "complete";
|
|
2204
2204
|
}
|
|
2205
|
-
},
|
|
2205
|
+
}, kt = new pg();
|
|
2206
2206
|
function So(e) {
|
|
2207
2207
|
var t, n;
|
|
2208
|
-
return
|
|
2208
|
+
return kt.isServer ? null : e ? "ownerDocument" in e ? e.ownerDocument : "current" in e ? (n = (t = e.current) == null ? void 0 : t.ownerDocument) != null ? n : document : null : document;
|
|
2209
2209
|
}
|
|
2210
2210
|
function Hf(e) {
|
|
2211
2211
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
@@ -2253,7 +2253,7 @@ function xr() {
|
|
|
2253
2253
|
return xe(() => () => e.dispose(), [e]), e;
|
|
2254
2254
|
}
|
|
2255
2255
|
let ge = (e, t) => {
|
|
2256
|
-
|
|
2256
|
+
kt.isServer ? xe(e, t) : Ps(e, t);
|
|
2257
2257
|
};
|
|
2258
2258
|
function Gn(e) {
|
|
2259
2259
|
let t = se(e);
|
|
@@ -2655,7 +2655,7 @@ var Qg = Object.defineProperty, Jg = (e, t, n) => t in e ? Qg(e, t, { enumerable
|
|
|
2655
2655
|
}, ku = (e, t, n, r) => (od(e, t, "write to private field"), t.set(e, n), n), It, Dr, jr;
|
|
2656
2656
|
let sd = class {
|
|
2657
2657
|
constructor(t) {
|
|
2658
|
-
pi(this, It, {}), pi(this, Dr, new rd(() => /* @__PURE__ */ new Set())), pi(this, jr, /* @__PURE__ */ new Set()), eb(this, "disposables", $t()), ku(this, It, t),
|
|
2658
|
+
pi(this, It, {}), pi(this, Dr, new rd(() => /* @__PURE__ */ new Set())), pi(this, jr, /* @__PURE__ */ new Set()), eb(this, "disposables", $t()), ku(this, It, t), kt.isServer && this.disposables.microTask(() => {
|
|
2659
2659
|
this.dispose();
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
@@ -2666,7 +2666,7 @@ let sd = class {
|
|
|
2666
2666
|
return rt(this, It);
|
|
2667
2667
|
}
|
|
2668
2668
|
subscribe(t, n) {
|
|
2669
|
-
if (
|
|
2669
|
+
if (kt.isServer) return () => {
|
|
2670
2670
|
};
|
|
2671
2671
|
let r = { selector: t, callback: n, current: t(rt(this, It)) };
|
|
2672
2672
|
return rt(this, jr).add(r), this.disposables.add(() => {
|
|
@@ -2674,7 +2674,7 @@ let sd = class {
|
|
|
2674
2674
|
});
|
|
2675
2675
|
}
|
|
2676
2676
|
on(t, n) {
|
|
2677
|
-
return
|
|
2677
|
+
return kt.isServer ? () => {
|
|
2678
2678
|
} : (rt(this, Dr).get(t).add(n), this.disposables.add(() => {
|
|
2679
2679
|
rt(this, Dr).get(t).delete(n);
|
|
2680
2680
|
}));
|
|
@@ -3293,7 +3293,7 @@ function Ge(e) {
|
|
|
3293
3293
|
var t;
|
|
3294
3294
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
3295
3295
|
}
|
|
3296
|
-
function
|
|
3296
|
+
function zt(e) {
|
|
3297
3297
|
var t;
|
|
3298
3298
|
return (t = (dc(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
3299
3299
|
}
|
|
@@ -3303,7 +3303,7 @@ function dc(e) {
|
|
|
3303
3303
|
function de(e) {
|
|
3304
3304
|
return Rs() ? e instanceof Element || e instanceof Ge(e).Element : !1;
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function _e(e) {
|
|
3307
3307
|
return Rs() ? e instanceof HTMLElement || e instanceof Ge(e).HTMLElement : !1;
|
|
3308
3308
|
}
|
|
3309
3309
|
function sa(e) {
|
|
@@ -3340,7 +3340,7 @@ function pc(e) {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
function Zb(e) {
|
|
3342
3342
|
let t = en(e);
|
|
3343
|
-
for (;
|
|
3343
|
+
for (; _e(t) && !Qt(t); ) {
|
|
3344
3344
|
if (pc(t))
|
|
3345
3345
|
return t;
|
|
3346
3346
|
if (Os(t))
|
|
@@ -3376,13 +3376,13 @@ function en(e) {
|
|
|
3376
3376
|
e.assignedSlot || // DOM Element detected.
|
|
3377
3377
|
e.parentNode || // ShadowRoot detected.
|
|
3378
3378
|
sa(e) && e.host || // Fallback.
|
|
3379
|
-
|
|
3379
|
+
zt(e)
|
|
3380
3380
|
);
|
|
3381
3381
|
return sa(t) ? t.host : t;
|
|
3382
3382
|
}
|
|
3383
3383
|
function gd(e) {
|
|
3384
3384
|
const t = en(e);
|
|
3385
|
-
return Qt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
3385
|
+
return Qt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : _e(t) && Po(t) ? t : gd(t);
|
|
3386
3386
|
}
|
|
3387
3387
|
function bn(e, t, n) {
|
|
3388
3388
|
var r;
|
|
@@ -3407,7 +3407,7 @@ function Yb() {
|
|
|
3407
3407
|
return n + "/" + r;
|
|
3408
3408
|
}).join(" ") : navigator.userAgent;
|
|
3409
3409
|
}
|
|
3410
|
-
const tn = Math.min, Le = Math.max, Gr = Math.round, zo = Math.floor,
|
|
3410
|
+
const tn = Math.min, Le = Math.max, Gr = Math.round, zo = Math.floor, Lt = (e) => ({
|
|
3411
3411
|
x: e,
|
|
3412
3412
|
y: e
|
|
3413
3413
|
}), Xb = {
|
|
@@ -4114,7 +4114,7 @@ const Iy = function(e) {
|
|
|
4114
4114
|
function Pd(e) {
|
|
4115
4115
|
const t = dt(e);
|
|
4116
4116
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
4117
|
-
const o =
|
|
4117
|
+
const o = _e(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, c = Gr(n) !== s || Gr(r) !== i;
|
|
4118
4118
|
return c && (n = s, r = i), {
|
|
4119
4119
|
width: n,
|
|
4120
4120
|
height: r,
|
|
@@ -4126,8 +4126,8 @@ function gc(e) {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
function ar(e) {
|
|
4128
4128
|
const t = gc(e);
|
|
4129
|
-
if (!
|
|
4130
|
-
return
|
|
4129
|
+
if (!_e(t))
|
|
4130
|
+
return Lt(1);
|
|
4131
4131
|
const n = t.getBoundingClientRect(), {
|
|
4132
4132
|
width: r,
|
|
4133
4133
|
height: o,
|
|
@@ -4139,7 +4139,7 @@ function ar(e) {
|
|
|
4139
4139
|
y: c
|
|
4140
4140
|
};
|
|
4141
4141
|
}
|
|
4142
|
-
const By = /* @__PURE__ */
|
|
4142
|
+
const By = /* @__PURE__ */ Lt(0);
|
|
4143
4143
|
function $d(e) {
|
|
4144
4144
|
const t = Ge(e);
|
|
4145
4145
|
return !Is() || !t.visualViewport ? By : {
|
|
@@ -4153,9 +4153,9 @@ function My(e, t, n) {
|
|
|
4153
4153
|
function Dn(e, t, n, r) {
|
|
4154
4154
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4155
4155
|
const o = e.getBoundingClientRect(), s = gc(e);
|
|
4156
|
-
let i =
|
|
4156
|
+
let i = Lt(1);
|
|
4157
4157
|
t && (r ? de(r) && (i = ar(r)) : i = ar(e));
|
|
4158
|
-
const c = My(s, n, r) ? $d(s) :
|
|
4158
|
+
const c = My(s, n, r) ? $d(s) : Lt(0);
|
|
4159
4159
|
let a = (o.left + c.x) / i.x, u = (o.top + c.y) / i.y, l = o.width / i.x, d = o.height / i.y;
|
|
4160
4160
|
if (s) {
|
|
4161
4161
|
const f = Ge(s), p = r && de(r) ? Ge(r) : r;
|
|
@@ -4174,7 +4174,7 @@ function Dn(e, t, n, r) {
|
|
|
4174
4174
|
}
|
|
4175
4175
|
function Bs(e, t) {
|
|
4176
4176
|
const n = Ns(e).scrollLeft;
|
|
4177
|
-
return t ? t.left + n : Dn(
|
|
4177
|
+
return t ? t.left + n : Dn(zt(e)).left + n;
|
|
4178
4178
|
}
|
|
4179
4179
|
function Ad(e, t) {
|
|
4180
4180
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Bs(e, n), o = n.top + t.scrollTop;
|
|
@@ -4190,19 +4190,19 @@ function ky(e) {
|
|
|
4190
4190
|
offsetParent: r,
|
|
4191
4191
|
strategy: o
|
|
4192
4192
|
} = e;
|
|
4193
|
-
const s = o === "fixed", i =
|
|
4193
|
+
const s = o === "fixed", i = zt(r), c = t ? Os(t.floating) : !1;
|
|
4194
4194
|
if (r === i || c && s)
|
|
4195
4195
|
return n;
|
|
4196
4196
|
let a = {
|
|
4197
4197
|
scrollLeft: 0,
|
|
4198
4198
|
scrollTop: 0
|
|
4199
|
-
}, u =
|
|
4200
|
-
const l =
|
|
4201
|
-
if ((d || !d && !s) && ((Er(r) !== "body" || Po(i)) && (a = Ns(r)),
|
|
4199
|
+
}, u = Lt(1);
|
|
4200
|
+
const l = Lt(0), d = _e(r);
|
|
4201
|
+
if ((d || !d && !s) && ((Er(r) !== "body" || Po(i)) && (a = Ns(r)), _e(r))) {
|
|
4202
4202
|
const p = Dn(r);
|
|
4203
4203
|
u = ar(r), l.x = p.x + r.clientLeft, l.y = p.y + r.clientTop;
|
|
4204
4204
|
}
|
|
4205
|
-
const f = i && !d && !s ? Ad(i, a) :
|
|
4205
|
+
const f = i && !d && !s ? Ad(i, a) : Lt(0);
|
|
4206
4206
|
return {
|
|
4207
4207
|
width: n.width * u.x,
|
|
4208
4208
|
height: n.height * u.y,
|
|
@@ -4214,7 +4214,7 @@ function Ly(e) {
|
|
|
4214
4214
|
return Array.from(e.getClientRects());
|
|
4215
4215
|
}
|
|
4216
4216
|
function Fy(e) {
|
|
4217
|
-
const t =
|
|
4217
|
+
const t = zt(e), n = Ns(e), r = e.ownerDocument.body, o = Le(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Le(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
4218
4218
|
let i = -n.scrollLeft + Bs(e);
|
|
4219
4219
|
const c = -n.scrollTop;
|
|
4220
4220
|
return dt(r).direction === "rtl" && (i += Le(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -4226,7 +4226,7 @@ function Fy(e) {
|
|
|
4226
4226
|
}
|
|
4227
4227
|
const Ju = 25;
|
|
4228
4228
|
function Dy(e, t) {
|
|
4229
|
-
const n = Ge(e), r =
|
|
4229
|
+
const n = Ge(e), r = zt(e), o = n.visualViewport;
|
|
4230
4230
|
let s = r.clientWidth, i = r.clientHeight, c = 0, a = 0;
|
|
4231
4231
|
if (o) {
|
|
4232
4232
|
s = o.width, i = o.height;
|
|
@@ -4247,7 +4247,7 @@ function Dy(e, t) {
|
|
|
4247
4247
|
}
|
|
4248
4248
|
const jy = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4249
4249
|
function _y(e, t) {
|
|
4250
|
-
const n = Dn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s =
|
|
4250
|
+
const n = Dn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = _e(e) ? ar(e) : Lt(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, a = o * s.x, u = r * s.y;
|
|
4251
4251
|
return {
|
|
4252
4252
|
width: i,
|
|
4253
4253
|
height: c,
|
|
@@ -4260,7 +4260,7 @@ function el(e, t, n) {
|
|
|
4260
4260
|
if (t === "viewport")
|
|
4261
4261
|
r = Dy(e, n);
|
|
4262
4262
|
else if (t === "document")
|
|
4263
|
-
r = Fy(
|
|
4263
|
+
r = Fy(zt(e));
|
|
4264
4264
|
else if (de(t))
|
|
4265
4265
|
r = _y(t, n);
|
|
4266
4266
|
else {
|
|
@@ -4320,12 +4320,12 @@ function Hy(e) {
|
|
|
4320
4320
|
};
|
|
4321
4321
|
}
|
|
4322
4322
|
function Wy(e, t, n) {
|
|
4323
|
-
const r =
|
|
4323
|
+
const r = _e(t), o = zt(t), s = n === "fixed", i = Dn(e, !0, s, t);
|
|
4324
4324
|
let c = {
|
|
4325
4325
|
scrollLeft: 0,
|
|
4326
4326
|
scrollTop: 0
|
|
4327
4327
|
};
|
|
4328
|
-
const a =
|
|
4328
|
+
const a = Lt(0);
|
|
4329
4329
|
function u() {
|
|
4330
4330
|
a.x = Bs(o);
|
|
4331
4331
|
}
|
|
@@ -4335,7 +4335,7 @@ function Wy(e, t, n) {
|
|
|
4335
4335
|
a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
|
|
4336
4336
|
} else o && u();
|
|
4337
4337
|
s && !r && o && u();
|
|
4338
|
-
const l = o && !r && !s ? Ad(o, c) :
|
|
4338
|
+
const l = o && !r && !s ? Ad(o, c) : Lt(0), d = i.left + c.scrollLeft - a.x - l.x, f = i.top + c.scrollTop - a.y - l.y;
|
|
4339
4339
|
return {
|
|
4340
4340
|
x: d,
|
|
4341
4341
|
y: f,
|
|
@@ -4347,18 +4347,18 @@ function yi(e) {
|
|
|
4347
4347
|
return dt(e).position === "static";
|
|
4348
4348
|
}
|
|
4349
4349
|
function tl(e, t) {
|
|
4350
|
-
if (!
|
|
4350
|
+
if (!_e(e) || dt(e).position === "fixed")
|
|
4351
4351
|
return null;
|
|
4352
4352
|
if (t)
|
|
4353
4353
|
return t(e);
|
|
4354
4354
|
let n = e.offsetParent;
|
|
4355
|
-
return
|
|
4355
|
+
return zt(e) === n && (n = n.ownerDocument.body), n;
|
|
4356
4356
|
}
|
|
4357
4357
|
function Rd(e, t) {
|
|
4358
4358
|
const n = Ge(e);
|
|
4359
4359
|
if (Os(e))
|
|
4360
4360
|
return n;
|
|
4361
|
-
if (!
|
|
4361
|
+
if (!_e(e)) {
|
|
4362
4362
|
let o = en(e);
|
|
4363
4363
|
for (; o && !Qt(o); ) {
|
|
4364
4364
|
if (de(o) && !yi(o))
|
|
@@ -4389,7 +4389,7 @@ function Gy(e) {
|
|
|
4389
4389
|
}
|
|
4390
4390
|
const qy = {
|
|
4391
4391
|
convertOffsetParentRelativeRectToViewportRelativeRect: ky,
|
|
4392
|
-
getDocumentElement:
|
|
4392
|
+
getDocumentElement: zt,
|
|
4393
4393
|
getClippingRect: zy,
|
|
4394
4394
|
getOffsetParent: Rd,
|
|
4395
4395
|
getElementRects: Vy,
|
|
@@ -4404,7 +4404,7 @@ function Od(e, t) {
|
|
|
4404
4404
|
}
|
|
4405
4405
|
function Zy(e, t) {
|
|
4406
4406
|
let n = null, r;
|
|
4407
|
-
const o =
|
|
4407
|
+
const o = zt(e);
|
|
4408
4408
|
function s() {
|
|
4409
4409
|
var c;
|
|
4410
4410
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -5216,10 +5216,10 @@ function M1() {
|
|
|
5216
5216
|
}, () => !1, () => !e) : !1;
|
|
5217
5217
|
}
|
|
5218
5218
|
function xc() {
|
|
5219
|
-
let e = M1(), [t, n] = _.useState(
|
|
5220
|
-
return t &&
|
|
5219
|
+
let e = M1(), [t, n] = _.useState(kt.isHandoffComplete);
|
|
5220
|
+
return t && kt.isHandoffComplete === !1 && n(!1), _.useEffect(() => {
|
|
5221
5221
|
t !== !0 && n(!0);
|
|
5222
|
-
}, [t]), _.useEffect(() =>
|
|
5222
|
+
}, [t]), _.useEffect(() => kt.handoff(), []), e ? !1 : t;
|
|
5223
5223
|
}
|
|
5224
5224
|
let k1 = ke(!1);
|
|
5225
5225
|
function L1() {
|
|
@@ -5229,7 +5229,7 @@ function F1(e) {
|
|
|
5229
5229
|
let t = L1(), n = we(zd), [r, o] = ie(() => {
|
|
5230
5230
|
var s;
|
|
5231
5231
|
if (!t && n !== null) return (s = n.current) != null ? s : null;
|
|
5232
|
-
if (
|
|
5232
|
+
if (kt.isServer) return null;
|
|
5233
5233
|
let i = e == null ? void 0 : e.getElementById("headlessui-portal-root");
|
|
5234
5234
|
if (i) return i;
|
|
5235
5235
|
if (e === null) return null;
|
|
@@ -5247,7 +5247,7 @@ let Ud = lt, D1 = Ke(function(e, t) {
|
|
|
5247
5247
|
o.current = p;
|
|
5248
5248
|
}), t), i = oa(o), c = n ?? i, a = F1(c), [u] = ie(() => {
|
|
5249
5249
|
var p;
|
|
5250
|
-
return
|
|
5250
|
+
return kt.isServer ? null : (p = c == null ? void 0 : c.createElement("div")) != null ? p : null;
|
|
5251
5251
|
}), l = we(z1), d = xc();
|
|
5252
5252
|
ge(() => {
|
|
5253
5253
|
!a || !u || a.contains(u) || (u.setAttribute("data-headlessui-portal", ""), a.appendChild(u));
|
|
@@ -5442,7 +5442,7 @@ function rv(e) {
|
|
|
5442
5442
|
return t.current = o, n.current = s, s;
|
|
5443
5443
|
});
|
|
5444
5444
|
}
|
|
5445
|
-
var ov = Object.defineProperty, sv = (e, t, n) => t in e ? ov(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pl = (e, t, n) => (sv(e, typeof t != "symbol" ? t + "" : t, n), n), Ce = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ce || {}),
|
|
5445
|
+
var ov = Object.defineProperty, sv = (e, t, n) => t in e ? ov(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pl = (e, t, n) => (sv(e, typeof t != "symbol" ? t + "" : t, n), n), Ce = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ce || {}), Ct = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Ct || {}), ts = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(ts || {}), Zd = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterOptions = 5] = "RegisterOptions", e[e.UnregisterOptions = 6] = "UnregisterOptions", e[e.SetButtonElement = 7] = "SetButtonElement", e[e.SetOptionsElement = 8] = "SetOptionsElement", e[e.SortOptions = 9] = "SortOptions", e))(Zd || {});
|
|
5446
5446
|
function hl(e, t = (n) => n) {
|
|
5447
5447
|
let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = dd(t(e.options.slice()), (s) => s.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
|
|
5448
5448
|
return o === -1 && (o = null), { options: r, activeOptionIndex: o };
|
|
@@ -5607,7 +5607,7 @@ let av = lt;
|
|
|
5607
5607
|
function cv(e, t) {
|
|
5608
5608
|
let n = Vn(), r = ic(), { value: o, defaultValue: s, form: i, name: c, onChange: a, by: u, invalid: l = !1, disabled: d = r || !1, horizontal: f = !1, multiple: p = !1, __demoMode: h = !1, ...m } = e;
|
|
5609
5609
|
const v = f ? "horizontal" : "vertical";
|
|
5610
|
-
let T = mt(t), b = Sg(s), [$ = p ? [] : void 0, C] = Eg(o, a, b), k = Yd({ id: n, __demoMode: h }), F = se({ static: !1, hold: !1 }), D = se(/* @__PURE__ */ new Map()), g = Kg(u), w = X((U) => ft(P.mode, { [
|
|
5610
|
+
let T = mt(t), b = Sg(s), [$ = p ? [] : void 0, C] = Eg(o, a, b), k = Yd({ id: n, __demoMode: h }), F = se({ static: !1, hold: !1 }), D = se(/* @__PURE__ */ new Map()), g = Kg(u), w = X((U) => ft(P.mode, { [Ct.Multi]: () => $.some((z) => g(z, U)), [Ct.Single]: () => g($, U) }), [$]), P = re(() => ({ value: $, disabled: d, invalid: l, mode: p ? Ct.Multi : Ct.Single, orientation: v, onChange: C, compare: g, isSelected: w, optionsPropsRef: F, listRef: D }), [$, d, l, p, v, C, g, w, F, D]);
|
|
5611
5611
|
ge(() => {
|
|
5612
5612
|
k.state.dataRef.current = P;
|
|
5613
5613
|
}, [P]);
|
|
@@ -5696,7 +5696,7 @@ function pv(e, t) {
|
|
|
5696
5696
|
let { dataRef: fe } = p.state.options[p.state.activeOptionIndex];
|
|
5697
5697
|
p.actions.onChange(fe.current.value);
|
|
5698
5698
|
}
|
|
5699
|
-
f.mode ===
|
|
5699
|
+
f.mode === Ct.Single && (Ur(() => p.actions.closeListbox()), (Q = p.state.buttonElement) == null || Q.focus({ preventScroll: !0 }));
|
|
5700
5700
|
break;
|
|
5701
5701
|
case ft(f.orientation, { vertical: Ne.ArrowDown, horizontal: Ne.ArrowRight }):
|
|
5702
5702
|
return G.preventDefault(), G.stopPropagation(), p.actions.goToOption({ focus: ve.Next });
|
|
@@ -5721,7 +5721,7 @@ function pv(e, t) {
|
|
|
5721
5721
|
}), U = ut(p, (G) => {
|
|
5722
5722
|
var Q;
|
|
5723
5723
|
return (Q = G.buttonElement) == null ? void 0 : Q.id;
|
|
5724
|
-
}), z = re(() => ({ open: h === Ce.Open }), [h]), Z = Vf(u ? y() : {}, { id: r, ref: N, "aria-activedescendant": ut(p, p.selectors.activeDescendantId), "aria-multiselectable": f.mode ===
|
|
5724
|
+
}), z = re(() => ({ open: h === Ce.Open }), [h]), Z = Vf(u ? y() : {}, { id: r, ref: N, "aria-activedescendant": ut(p, p.selectors.activeDescendantId), "aria-multiselectable": f.mode === Ct.Multi ? !0 : void 0, "aria-labelledby": U, "aria-orientation": f.orientation, onKeyDown: j, role: "listbox", tabIndex: h === Ce.Open ? 0 : void 0, style: { ...a.style, ...R, "--button-width": Xg(m, !0).width }, ...hd(F) }), H = Qe(), q = re(() => f.mode === Ct.Multi ? f : { ...f, isSelected: S }, [f, S]);
|
|
5725
5725
|
return K.createElement(V1, { enabled: s ? e.static || k : !1, ownerDocument: b }, K.createElement(Fs.Provider, { value: q }, H({ ourProps: Z, theirProps: a, slot: z, defaultTag: fv, features: dv, visible: P, name: "Listbox.Options" })));
|
|
5726
5726
|
}
|
|
5727
5727
|
let hv = "div";
|
|
@@ -5742,7 +5742,7 @@ function mv(e, t) {
|
|
|
5742
5742
|
let T = ue((P) => {
|
|
5743
5743
|
var I;
|
|
5744
5744
|
if (o) return P.preventDefault();
|
|
5745
|
-
u.actions.onChange(s), a.mode ===
|
|
5745
|
+
u.actions.onChange(s), a.mode === Ct.Single && (Ur(() => u.actions.closeListbox()), (I = u.state.buttonElement) == null || I.focus({ preventScroll: !0 }));
|
|
5746
5746
|
}), b = ue(() => {
|
|
5747
5747
|
if (o) return u.actions.goToOption({ focus: ve.Nothing });
|
|
5748
5748
|
u.actions.goToOption({ focus: ve.Specific, id: r });
|
|
@@ -5755,7 +5755,7 @@ function mv(e, t) {
|
|
|
5755
5755
|
}
|
|
5756
5756
|
let gv = lt;
|
|
5757
5757
|
function bv(e, t) {
|
|
5758
|
-
let { options: n, placeholder: r, ...o } = e, s = { ref: mt(t) }, i = $o("ListboxSelectedOption"), c = re(() => ({}), []), a = i.value === void 0 || i.value === null || i.mode ===
|
|
5758
|
+
let { options: n, placeholder: r, ...o } = e, s = { ref: mt(t) }, i = $o("ListboxSelectedOption"), c = re(() => ({}), []), a = i.value === void 0 || i.value === null || i.mode === Ct.Multi && Array.isArray(i.value) && i.value.length === 0, u = Qe();
|
|
5759
5759
|
return K.createElement(Xd.Provider, { value: !0 }, u({ ourProps: s, theirProps: { ...o, children: K.createElement(K.Fragment, null, r && a ? r : n) }, slot: c, defaultTag: gv, name: "ListboxSelectedOption" }));
|
|
5760
5760
|
}
|
|
5761
5761
|
let yv = Ke(cv), vv = Ke(lv), wv = qg, xv = Ke(pv), Ev = Ke(mv), Sv = Ke(bv), Wo = Object.assign(yv, { Button: vv, Label: wv, Options: xv, Option: Ev, SelectedOption: Sv });
|
|
@@ -5829,7 +5829,7 @@ const Av = {
|
|
|
5829
5829
|
// ETH 主网
|
|
5830
5830
|
SEPOLIA: 11155111
|
|
5831
5831
|
// Sepolia 测试网
|
|
5832
|
-
}, Tv = Object.values(Av),
|
|
5832
|
+
}, Tv = Object.values(Av), Zt = (e) => {
|
|
5833
5833
|
const t = typeof e == "string" ? parseInt(e, 10) : e;
|
|
5834
5834
|
return Tv.includes(
|
|
5835
5835
|
t
|
|
@@ -5957,7 +5957,7 @@ const Av = {
|
|
|
5957
5957
|
_r,
|
|
5958
5958
|
{
|
|
5959
5959
|
className: "w-full justify-between",
|
|
5960
|
-
selectedLevel:
|
|
5960
|
+
selectedLevel: Zt(a.chainId) ? yt.SLOW : yt.FAST,
|
|
5961
5961
|
maxLevel: 3
|
|
5962
5962
|
}
|
|
5963
5963
|
) })
|
|
@@ -7193,11 +7193,11 @@ function Si(e, t) {
|
|
|
7193
7193
|
function lw(e) {
|
|
7194
7194
|
return e.matches("html,body");
|
|
7195
7195
|
}
|
|
7196
|
-
function
|
|
7196
|
+
function Bt(e) {
|
|
7197
7197
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
7198
7198
|
}
|
|
7199
7199
|
function gp(e) {
|
|
7200
|
-
return
|
|
7200
|
+
return _e(e) && e.matches(uw);
|
|
7201
7201
|
}
|
|
7202
7202
|
function fw(e) {
|
|
7203
7203
|
if (!e || cw()) return !0;
|
|
@@ -7224,18 +7224,18 @@ function Kr(e, t) {
|
|
|
7224
7224
|
return t || n.push("", void 0), n.includes(e);
|
|
7225
7225
|
}
|
|
7226
7226
|
var hw = typeof document < "u", mw = function() {
|
|
7227
|
-
},
|
|
7227
|
+
}, Ft = hw ? Ps : mw;
|
|
7228
7228
|
const gw = {
|
|
7229
7229
|
..._
|
|
7230
7230
|
};
|
|
7231
7231
|
function Go(e) {
|
|
7232
7232
|
const t = _.useRef(e);
|
|
7233
|
-
return
|
|
7233
|
+
return Ft(() => {
|
|
7234
7234
|
t.current = e;
|
|
7235
7235
|
}), t;
|
|
7236
7236
|
}
|
|
7237
7237
|
const bw = gw.useInsertionEffect, yw = bw || ((e) => e());
|
|
7238
|
-
function
|
|
7238
|
+
function Nt(e) {
|
|
7239
7239
|
const t = _.useRef(() => {
|
|
7240
7240
|
if (process.env.NODE_ENV !== "production")
|
|
7241
7241
|
throw new Error("Cannot call an event handler while rendering.");
|
|
@@ -7260,14 +7260,14 @@ const bp = () => ({
|
|
|
7260
7260
|
function yp(e, t) {
|
|
7261
7261
|
const n = Sd(e, bp()), r = n.length;
|
|
7262
7262
|
if (r === 0) return;
|
|
7263
|
-
const o = ba(
|
|
7263
|
+
const o = ba(Bt(e)), s = n.indexOf(o), i = s === -1 ? t === 1 ? 0 : r - 1 : s + t;
|
|
7264
7264
|
return n[i];
|
|
7265
7265
|
}
|
|
7266
7266
|
function vw(e) {
|
|
7267
|
-
return yp(
|
|
7267
|
+
return yp(Bt(e).body, 1) || e;
|
|
7268
7268
|
}
|
|
7269
7269
|
function ww(e) {
|
|
7270
|
-
return yp(
|
|
7270
|
+
return yp(Bt(e).body, -1) || e;
|
|
7271
7271
|
}
|
|
7272
7272
|
function Pi(e, t) {
|
|
7273
7273
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
@@ -7295,7 +7295,7 @@ const Pl = () => (
|
|
|
7295
7295
|
);
|
|
7296
7296
|
function $w() {
|
|
7297
7297
|
const [e, t] = _.useState(() => Sl ? Pl() : void 0);
|
|
7298
|
-
return
|
|
7298
|
+
return Ft(() => {
|
|
7299
7299
|
e == null && t(Pl());
|
|
7300
7300
|
}, []), _.useEffect(() => {
|
|
7301
7301
|
Sl = !0;
|
|
@@ -7370,7 +7370,7 @@ function Nw(e, t) {
|
|
|
7370
7370
|
restMs: d = 0,
|
|
7371
7371
|
move: f = !0
|
|
7372
7372
|
} = t, p = Tc(), h = Ac(), m = Go(u), v = Go(a), T = Go(n), b = Go(d), $ = _.useRef(), C = _.useRef(-1), k = _.useRef(), F = _.useRef(-1), D = _.useRef(!0), g = _.useRef(!1), w = _.useRef(() => {
|
|
7373
|
-
}), P = _.useRef(!1), I =
|
|
7373
|
+
}), P = _.useRef(!1), I = Nt(() => {
|
|
7374
7374
|
var R;
|
|
7375
7375
|
const y = (R = o.current.openEvent) == null ? void 0 : R.type;
|
|
7376
7376
|
return (y == null ? void 0 : y.includes("mouse")) && y !== "mousedown";
|
|
@@ -7391,7 +7391,7 @@ function Nw(e, t) {
|
|
|
7391
7391
|
function R(N) {
|
|
7392
7392
|
I() && r(!1, N, "hover");
|
|
7393
7393
|
}
|
|
7394
|
-
const y =
|
|
7394
|
+
const y = Bt(i.floating).documentElement;
|
|
7395
7395
|
return y.addEventListener("mouseleave", R), () => {
|
|
7396
7396
|
y.removeEventListener("mouseleave", R);
|
|
7397
7397
|
};
|
|
@@ -7400,14 +7400,14 @@ function Nw(e, t) {
|
|
|
7400
7400
|
y === void 0 && (y = !0), N === void 0 && (N = "hover");
|
|
7401
7401
|
const L = $i(v.current, "close", $.current);
|
|
7402
7402
|
L && !k.current ? (at(C), C.current = window.setTimeout(() => r(!1, R, N), L)) : y && (at(C), r(!1, R, N));
|
|
7403
|
-
}, [v, r]), S =
|
|
7403
|
+
}, [v, r]), S = Nt(() => {
|
|
7404
7404
|
w.current(), k.current = void 0;
|
|
7405
|
-
}), E =
|
|
7405
|
+
}), E = Nt(() => {
|
|
7406
7406
|
if (g.current) {
|
|
7407
|
-
const R =
|
|
7407
|
+
const R = Bt(i.floating).body;
|
|
7408
7408
|
R.style.pointerEvents = "", R.removeAttribute($l), g.current = !1;
|
|
7409
7409
|
}
|
|
7410
|
-
}), x =
|
|
7410
|
+
}), x = Nt(() => o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1);
|
|
7411
7411
|
_.useEffect(() => {
|
|
7412
7412
|
if (!c) return;
|
|
7413
7413
|
function R(U) {
|
|
@@ -7424,7 +7424,7 @@ function Nw(e, t) {
|
|
|
7424
7424
|
return;
|
|
7425
7425
|
}
|
|
7426
7426
|
w.current();
|
|
7427
|
-
const z =
|
|
7427
|
+
const z = Bt(i.floating);
|
|
7428
7428
|
if (at(F), P.current = !1, m.current && o.current.floatingContext) {
|
|
7429
7429
|
n || at(C), k.current = m.current({
|
|
7430
7430
|
...o.current.floatingContext,
|
|
@@ -7468,14 +7468,14 @@ function Nw(e, t) {
|
|
|
7468
7468
|
n && U.removeEventListener("mouseleave", N), f && U.removeEventListener("mousemove", R), U.removeEventListener("mouseenter", R), U.removeEventListener("mouseleave", y), z && (z.removeEventListener("mouseleave", N), z.removeEventListener("mouseenter", L), z.removeEventListener("mouseleave", j));
|
|
7469
7469
|
};
|
|
7470
7470
|
}
|
|
7471
|
-
}, [i, c, e, l, f, O, S, E, r, n, T, p, v, m, o, x, b]),
|
|
7471
|
+
}, [i, c, e, l, f, O, S, E, r, n, T, p, v, m, o, x, b]), Ft(() => {
|
|
7472
7472
|
var R;
|
|
7473
7473
|
if (c && n && (R = m.current) != null && (R = R.__options) != null && R.blockPointerEvents && I()) {
|
|
7474
7474
|
g.current = !0;
|
|
7475
7475
|
const N = i.floating;
|
|
7476
7476
|
if (de(i.domReference) && N) {
|
|
7477
7477
|
var y;
|
|
7478
|
-
const L =
|
|
7478
|
+
const L = Bt(i.floating).body;
|
|
7479
7479
|
L.setAttribute($l, "");
|
|
7480
7480
|
const j = i.domReference, U = p == null || (y = p.nodesRef.current.find((z) => z.id === h)) == null || (y = y.context) == null ? void 0 : y.elements.floating;
|
|
7481
7481
|
return U && (U.style.pointerEvents = ""), L.style.pointerEvents = "none", j.style.pointerEvents = "auto", N.style.pointerEvents = "auto", () => {
|
|
@@ -7483,7 +7483,7 @@ function Nw(e, t) {
|
|
|
7483
7483
|
};
|
|
7484
7484
|
}
|
|
7485
7485
|
}
|
|
7486
|
-
}, [c, n, h, i, p, m, I]),
|
|
7486
|
+
}, [c, n, h, i, p, m, I]), Ft(() => {
|
|
7487
7487
|
n || ($.current = void 0, P.current = !1, S(), E());
|
|
7488
7488
|
}, [n, S, E]), _.useEffect(() => () => {
|
|
7489
7489
|
S(), at(C), at(F), E();
|
|
@@ -7524,7 +7524,7 @@ const vp = {
|
|
|
7524
7524
|
left: 0
|
|
7525
7525
|
}, Al = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
7526
7526
|
const [r, o] = _.useState();
|
|
7527
|
-
|
|
7527
|
+
Ft(() => {
|
|
7528
7528
|
mp() && o("button");
|
|
7529
7529
|
}, []);
|
|
7530
7530
|
const s = {
|
|
@@ -7547,17 +7547,17 @@ function Cw(e) {
|
|
|
7547
7547
|
id: t,
|
|
7548
7548
|
root: n
|
|
7549
7549
|
} = e, r = $c(), o = Mw(), [s, i] = _.useState(null), c = _.useRef(null);
|
|
7550
|
-
return
|
|
7550
|
+
return Ft(() => () => {
|
|
7551
7551
|
s == null || s.remove(), queueMicrotask(() => {
|
|
7552
7552
|
c.current = null;
|
|
7553
7553
|
});
|
|
7554
|
-
}, [s]),
|
|
7554
|
+
}, [s]), Ft(() => {
|
|
7555
7555
|
if (!r || c.current) return;
|
|
7556
7556
|
const a = t ? document.getElementById(t) : null;
|
|
7557
7557
|
if (!a) return;
|
|
7558
7558
|
const u = document.createElement("div");
|
|
7559
7559
|
u.id = r, u.setAttribute(Tl, ""), a.appendChild(u), c.current = u, i(u);
|
|
7560
|
-
}, [t, r]),
|
|
7560
|
+
}, [t, r]), Ft(() => {
|
|
7561
7561
|
if (n === null || !r || c.current) return;
|
|
7562
7562
|
let a = n || (o == null ? void 0 : o.portalNode);
|
|
7563
7563
|
a && !dc(a) && (a = a.current), a = a || document.body;
|
|
@@ -7636,10 +7636,10 @@ function Bw(e) {
|
|
|
7636
7636
|
}
|
|
7637
7637
|
const Mw = () => _.useContext(wp);
|
|
7638
7638
|
function Rl(e) {
|
|
7639
|
-
return
|
|
7639
|
+
return _e(e.target) && e.target.tagName === "BUTTON";
|
|
7640
7640
|
}
|
|
7641
7641
|
function kw(e) {
|
|
7642
|
-
return
|
|
7642
|
+
return _e(e.target) && e.target.tagName === "A";
|
|
7643
7643
|
}
|
|
7644
7644
|
function Ol(e) {
|
|
7645
7645
|
return gp(e);
|
|
@@ -7719,13 +7719,13 @@ function jw(e, t) {
|
|
|
7719
7719
|
ancestorScroll: f = !1,
|
|
7720
7720
|
bubbles: p,
|
|
7721
7721
|
capture: h
|
|
7722
|
-
} = t, m = Tc(), v =
|
|
7722
|
+
} = t, m = Tc(), v = Nt(typeof a == "function" ? a : () => !1), T = typeof a == "function" ? v : a, b = _.useRef(!1), {
|
|
7723
7723
|
escapeKey: $,
|
|
7724
7724
|
outsidePress: C
|
|
7725
7725
|
} = Il(p), {
|
|
7726
7726
|
escapeKey: k,
|
|
7727
7727
|
outsidePress: F
|
|
7728
|
-
} = Il(h), D = _.useRef(!1), g =
|
|
7728
|
+
} = Il(h), D = _.useRef(!1), g = Nt((E) => {
|
|
7729
7729
|
var x;
|
|
7730
7730
|
if (!n || !i || !c || E.key !== "Escape" || D.current)
|
|
7731
7731
|
return;
|
|
@@ -7742,21 +7742,21 @@ function jw(e, t) {
|
|
|
7742
7742
|
return;
|
|
7743
7743
|
}
|
|
7744
7744
|
r(!1, pw(E) ? E.nativeEvent : E, "escape-key");
|
|
7745
|
-
}), w =
|
|
7745
|
+
}), w = Nt((E) => {
|
|
7746
7746
|
var x;
|
|
7747
7747
|
const A = () => {
|
|
7748
7748
|
var R;
|
|
7749
7749
|
g(E), (R = er(E)) == null || R.removeEventListener("keydown", A);
|
|
7750
7750
|
};
|
|
7751
7751
|
(x = er(E)) == null || x.addEventListener("keydown", A);
|
|
7752
|
-
}), P =
|
|
7752
|
+
}), P = Nt((E) => {
|
|
7753
7753
|
var x;
|
|
7754
7754
|
const A = s.current.insideReactTree;
|
|
7755
7755
|
s.current.insideReactTree = !1;
|
|
7756
7756
|
const R = b.current;
|
|
7757
7757
|
if (b.current = !1, u === "click" && R || A || typeof T == "function" && !T(E))
|
|
7758
7758
|
return;
|
|
7759
|
-
const y = er(E), N = "[" + Ao("inert") + "]", L =
|
|
7759
|
+
const y = er(E), N = "[" + Ao("inert") + "]", L = Bt(o.floating).querySelectorAll(N);
|
|
7760
7760
|
let j = de(y) ? y : null;
|
|
7761
7761
|
for (; j && !Qt(j); ) {
|
|
7762
7762
|
const H = en(j);
|
|
@@ -7769,7 +7769,7 @@ function jw(e, t) {
|
|
|
7769
7769
|
// element was injected after the floating element rendered.
|
|
7770
7770
|
Array.from(L).every((H) => !pr(j, H)))
|
|
7771
7771
|
return;
|
|
7772
|
-
if (
|
|
7772
|
+
if (_e(y) && S) {
|
|
7773
7773
|
const H = Qt(y), q = dt(y), G = /auto|scroll/, Q = H || G.test(q.overflowX), ne = H || G.test(q.overflowY), fe = Q && y.clientWidth > 0 && y.scrollWidth > y.clientWidth, Ae = ne && y.clientHeight > 0 && y.scrollHeight > y.clientHeight, Xe = q.direction === "rtl", Te = Ae && (Xe ? E.offsetX <= y.offsetWidth - y.clientWidth : E.offsetX > y.clientWidth), Re = fe && E.offsetY > y.clientHeight;
|
|
7774
7774
|
if (Te || Re)
|
|
7775
7775
|
return;
|
|
@@ -7793,7 +7793,7 @@ function jw(e, t) {
|
|
|
7793
7793
|
return;
|
|
7794
7794
|
}
|
|
7795
7795
|
r(!1, E, "outside-press");
|
|
7796
|
-
}), I =
|
|
7796
|
+
}), I = Nt((E) => {
|
|
7797
7797
|
var x;
|
|
7798
7798
|
const A = () => {
|
|
7799
7799
|
var R;
|
|
@@ -7822,7 +7822,7 @@ function jw(e, t) {
|
|
|
7822
7822
|
Is() ? 5 : 0
|
|
7823
7823
|
);
|
|
7824
7824
|
}
|
|
7825
|
-
const y =
|
|
7825
|
+
const y = Bt(o.floating);
|
|
7826
7826
|
c && (y.addEventListener("keydown", k ? w : g, k), y.addEventListener("compositionstart", A), y.addEventListener("compositionend", R)), T && y.addEventListener(u, F ? I : P, F);
|
|
7827
7827
|
let N = [];
|
|
7828
7828
|
return f && (de(o.domReference) && (N = bn(o.domReference)), de(o.floating) && (N = N.concat(bn(o.floating))), !de(o.reference) && o.reference && o.reference.contextElement && (N = N.concat(bn(o.reference.contextElement)))), N = N.filter((L) => {
|
|
@@ -7879,7 +7879,7 @@ function _w(e) {
|
|
|
7879
7879
|
const p = r.reference;
|
|
7880
7880
|
p && !de(p) && Tw("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
7881
7881
|
}
|
|
7882
|
-
const [a, u] = _.useState(r.reference), l =
|
|
7882
|
+
const [a, u] = _.useState(r.reference), l = Nt((p, h, m) => {
|
|
7883
7883
|
s.current.openEvent = p ? h : void 0, i.emit("openchange", {
|
|
7884
7884
|
open: p,
|
|
7885
7885
|
event: h,
|
|
@@ -7915,7 +7915,7 @@ function Uw(e) {
|
|
|
7915
7915
|
...e.elements
|
|
7916
7916
|
}
|
|
7917
7917
|
}), r = e.rootContext || n, o = r.elements, [s, i] = _.useState(null), [c, a] = _.useState(null), l = (o == null ? void 0 : o.domReference) || s, d = _.useRef(null), f = Tc();
|
|
7918
|
-
|
|
7918
|
+
Ft(() => {
|
|
7919
7919
|
l && (d.current = l);
|
|
7920
7920
|
}, [l]);
|
|
7921
7921
|
const p = Cd({
|
|
@@ -7953,7 +7953,7 @@ function Uw(e) {
|
|
|
7953
7953
|
elements: T,
|
|
7954
7954
|
nodeId: t
|
|
7955
7955
|
}), [p, v, T, t, r]);
|
|
7956
|
-
return
|
|
7956
|
+
return Ft(() => {
|
|
7957
7957
|
r.dataRef.current.floatingContext = b;
|
|
7958
7958
|
const $ = f == null ? void 0 : f.nodesRef.current.find((C) => C.id === t);
|
|
7959
7959
|
$ && ($.context = b);
|
|
@@ -7983,7 +7983,7 @@ function zw(e, t) {
|
|
|
7983
7983
|
if (!c) return;
|
|
7984
7984
|
const p = Ge(i.domReference);
|
|
7985
7985
|
function h() {
|
|
7986
|
-
!n &&
|
|
7986
|
+
!n && _e(i.domReference) && i.domReference === ba(Bt(i.domReference)) && (u.current = !0);
|
|
7987
7987
|
}
|
|
7988
7988
|
function m() {
|
|
7989
7989
|
d.current = !0;
|
|
@@ -9129,11 +9129,11 @@ function js(e, { includeName: t = !1 } = {}) {
|
|
|
9129
9129
|
function Lx(e, { includeName: t }) {
|
|
9130
9130
|
return e.type.startsWith("tuple") ? `(${js(e.components, { includeName: t })})${e.type.slice(5)}` : e.type + (t && e.name ? ` ${e.name}` : "");
|
|
9131
9131
|
}
|
|
9132
|
-
function
|
|
9132
|
+
function Dt(e, { strict: t = !0 } = {}) {
|
|
9133
9133
|
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
9134
9134
|
}
|
|
9135
9135
|
function Se(e) {
|
|
9136
|
-
return
|
|
9136
|
+
return Dt(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
9137
9137
|
}
|
|
9138
9138
|
const kp = "2.34.0";
|
|
9139
9139
|
let kr = {
|
|
@@ -9580,7 +9580,7 @@ function At(e, { size: t }) {
|
|
|
9580
9580
|
maxSize: t
|
|
9581
9581
|
});
|
|
9582
9582
|
}
|
|
9583
|
-
function
|
|
9583
|
+
function jt(e, t = {}) {
|
|
9584
9584
|
const { signed: n } = t;
|
|
9585
9585
|
t.size && At(e, { size: t.size });
|
|
9586
9586
|
const r = BigInt(e);
|
|
@@ -9598,7 +9598,7 @@ function eE(e, t = {}) {
|
|
|
9598
9598
|
throw new Qx(n);
|
|
9599
9599
|
}
|
|
9600
9600
|
function nn(e, t = {}) {
|
|
9601
|
-
return Number(
|
|
9601
|
+
return Number(jt(e, t));
|
|
9602
9602
|
}
|
|
9603
9603
|
const tE = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
9604
9604
|
function rn(e, t = {}) {
|
|
@@ -9640,13 +9640,13 @@ function Qr(e, t = {}) {
|
|
|
9640
9640
|
}
|
|
9641
9641
|
const rE = /* @__PURE__ */ new TextEncoder();
|
|
9642
9642
|
function Tr(e, t = {}) {
|
|
9643
|
-
return typeof e == "number" || typeof e == "bigint" ? sE(e, t) : typeof e == "boolean" ? oE(e, t) :
|
|
9643
|
+
return typeof e == "number" || typeof e == "bigint" ? sE(e, t) : typeof e == "boolean" ? oE(e, t) : Dt(e) ? Pt(e, t) : kn(e, t);
|
|
9644
9644
|
}
|
|
9645
9645
|
function oE(e, t = {}) {
|
|
9646
9646
|
const n = new Uint8Array(1);
|
|
9647
9647
|
return n[0] = Number(e), typeof t.size == "number" ? (At(n, { size: t.size }), Ar(n, { size: t.size })) : n;
|
|
9648
9648
|
}
|
|
9649
|
-
const
|
|
9649
|
+
const Vt = {
|
|
9650
9650
|
zero: 48,
|
|
9651
9651
|
nine: 57,
|
|
9652
9652
|
A: 65,
|
|
@@ -9655,12 +9655,12 @@ const Gt = {
|
|
|
9655
9655
|
f: 102
|
|
9656
9656
|
};
|
|
9657
9657
|
function Fl(e) {
|
|
9658
|
-
if (e >=
|
|
9659
|
-
return e -
|
|
9660
|
-
if (e >=
|
|
9661
|
-
return e - (
|
|
9662
|
-
if (e >=
|
|
9663
|
-
return e - (
|
|
9658
|
+
if (e >= Vt.zero && e <= Vt.nine)
|
|
9659
|
+
return e - Vt.zero;
|
|
9660
|
+
if (e >= Vt.A && e <= Vt.F)
|
|
9661
|
+
return e - (Vt.A - 10);
|
|
9662
|
+
if (e >= Vt.a && e <= Vt.f)
|
|
9663
|
+
return e - (Vt.a - 10);
|
|
9664
9664
|
}
|
|
9665
9665
|
function Pt(e, t = {}) {
|
|
9666
9666
|
let n = e;
|
|
@@ -9760,14 +9760,14 @@ function cr(e) {
|
|
|
9760
9760
|
t += gE[e[n]];
|
|
9761
9761
|
return t;
|
|
9762
9762
|
}
|
|
9763
|
-
const
|
|
9763
|
+
const Gt = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
9764
9764
|
function _l(e) {
|
|
9765
|
-
if (e >=
|
|
9766
|
-
return e -
|
|
9767
|
-
if (e >=
|
|
9768
|
-
return e - (
|
|
9769
|
-
if (e >=
|
|
9770
|
-
return e - (
|
|
9765
|
+
if (e >= Gt._0 && e <= Gt._9)
|
|
9766
|
+
return e - Gt._0;
|
|
9767
|
+
if (e >= Gt.A && e <= Gt.F)
|
|
9768
|
+
return e - (Gt.A - 10);
|
|
9769
|
+
if (e >= Gt.a && e <= Gt.f)
|
|
9770
|
+
return e - (Gt.a - 10);
|
|
9771
9771
|
}
|
|
9772
9772
|
function ys(e) {
|
|
9773
9773
|
if (typeof e != "string")
|
|
@@ -9923,7 +9923,7 @@ class Nc extends Ic {
|
|
|
9923
9923
|
}
|
|
9924
9924
|
const AE = (e, t, n) => Kp(() => new Nc(t, e, n)), th = AE(1, 136, 256 / 8);
|
|
9925
9925
|
function Be(e, t) {
|
|
9926
|
-
const n = t || "hex", r = th(
|
|
9926
|
+
const n = t || "hex", r = th(Dt(e, { strict: !1 }) ? Tr(e) : e);
|
|
9927
9927
|
return n === "bytes" ? r : rn(r);
|
|
9928
9928
|
}
|
|
9929
9929
|
const TE = (e) => Be(Tr(e));
|
|
@@ -10017,7 +10017,7 @@ function pt(e, t) {
|
|
|
10017
10017
|
const o = NE.test(e) ? e.toLowerCase() === e ? !0 : n ? Ws(e) === e : !0 : !1;
|
|
10018
10018
|
return Ci.set(r, o), o;
|
|
10019
10019
|
}
|
|
10020
|
-
function
|
|
10020
|
+
function _t(e) {
|
|
10021
10021
|
return typeof e[0] == "string" ? Rr(e) : CE(e);
|
|
10022
10022
|
}
|
|
10023
10023
|
function CE(e) {
|
|
@@ -10034,7 +10034,7 @@ function Rr(e) {
|
|
|
10034
10034
|
return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
|
|
10035
10035
|
}
|
|
10036
10036
|
function br(e, t, n, { strict: r } = {}) {
|
|
10037
|
-
return
|
|
10037
|
+
return Dt(e, { strict: !1 }) ? ih(e, t, n, {
|
|
10038
10038
|
strict: r
|
|
10039
10039
|
}) : sh(e, t, n, {
|
|
10040
10040
|
strict: r
|
|
@@ -10126,7 +10126,7 @@ function Mc(e) {
|
|
|
10126
10126
|
const { dynamic: i, encoded: c } = e[s];
|
|
10127
10127
|
i ? (n.push(J(t + o, { size: 32 })), r.push(c), o += Se(c)) : n.push(c);
|
|
10128
10128
|
}
|
|
10129
|
-
return
|
|
10129
|
+
return _t([...n, ...r]);
|
|
10130
10130
|
}
|
|
10131
10131
|
function kE(e) {
|
|
10132
10132
|
if (!pt(e))
|
|
@@ -10155,7 +10155,7 @@ function LE(e, { length: t, param: n }) {
|
|
|
10155
10155
|
const c = J(s.length, { size: 32 });
|
|
10156
10156
|
return {
|
|
10157
10157
|
dynamic: !0,
|
|
10158
|
-
encoded: s.length > 0 ?
|
|
10158
|
+
encoded: s.length > 0 ? _t([c, i]) : c
|
|
10159
10159
|
};
|
|
10160
10160
|
}
|
|
10161
10161
|
if (o)
|
|
@@ -10163,7 +10163,7 @@ function LE(e, { length: t, param: n }) {
|
|
|
10163
10163
|
}
|
|
10164
10164
|
return {
|
|
10165
10165
|
dynamic: !1,
|
|
10166
|
-
encoded:
|
|
10166
|
+
encoded: _t(s.map(({ encoded: i }) => i))
|
|
10167
10167
|
};
|
|
10168
10168
|
}
|
|
10169
10169
|
function FE(e, { param: t }) {
|
|
@@ -10175,7 +10175,7 @@ function FE(e, { param: t }) {
|
|
|
10175
10175
|
size: Math.ceil((e.length - 2) / 2 / 32) * 32
|
|
10176
10176
|
})), {
|
|
10177
10177
|
dynamic: !0,
|
|
10178
|
-
encoded:
|
|
10178
|
+
encoded: _t([yn(J(r, { size: 32 })), o])
|
|
10179
10179
|
};
|
|
10180
10180
|
}
|
|
10181
10181
|
if (r !== Number.parseInt(n))
|
|
@@ -10218,7 +10218,7 @@ function _E(e) {
|
|
|
10218
10218
|
}));
|
|
10219
10219
|
return {
|
|
10220
10220
|
dynamic: !0,
|
|
10221
|
-
encoded:
|
|
10221
|
+
encoded: _t([
|
|
10222
10222
|
yn(J(Se(t), { size: 32 })),
|
|
10223
10223
|
...r
|
|
10224
10224
|
])
|
|
@@ -10236,7 +10236,7 @@ function UE(e, { param: t }) {
|
|
|
10236
10236
|
}
|
|
10237
10237
|
return {
|
|
10238
10238
|
dynamic: n,
|
|
10239
|
-
encoded: n ? Mc(r) :
|
|
10239
|
+
encoded: n ? Mc(r) : _t(r.map(({ encoded: o }) => o))
|
|
10240
10240
|
};
|
|
10241
10241
|
}
|
|
10242
10242
|
function kc(e) {
|
|
@@ -10248,7 +10248,7 @@ function kc(e) {
|
|
|
10248
10248
|
}
|
|
10249
10249
|
const Ro = (e) => br(nh(e), 0, 4);
|
|
10250
10250
|
function Zn(e) {
|
|
10251
|
-
const { abi: t, args: n = [], name: r } = e, o =
|
|
10251
|
+
const { abi: t, args: n = [], name: r } = e, o = Dt(r, { strict: !1 }), s = t.filter((c) => o ? c.type === "function" ? Ro(c) === r : c.type === "event" ? Hs(c) === r : !1 : "name" in c && c.name === r);
|
|
10252
10252
|
if (s.length === 0)
|
|
10253
10253
|
return;
|
|
10254
10254
|
if (s.length === 1)
|
|
@@ -10400,7 +10400,7 @@ function zE(e) {
|
|
|
10400
10400
|
functionName: Ro(St(o))
|
|
10401
10401
|
};
|
|
10402
10402
|
}
|
|
10403
|
-
function
|
|
10403
|
+
function Ht(e) {
|
|
10404
10404
|
const { args: t } = e, { abi: n, functionName: r } = (() => {
|
|
10405
10405
|
var c;
|
|
10406
10406
|
return e.abi.length === 1 && ((c = e.functionName) != null && c.startsWith("0x")) ? e : zE(e);
|
|
@@ -10582,7 +10582,7 @@ function Lc(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
|
10582
10582
|
function GE(e, t = {}) {
|
|
10583
10583
|
typeof t.size < "u" && At(e, { size: t.size });
|
|
10584
10584
|
const n = Oe(e, t);
|
|
10585
|
-
return
|
|
10585
|
+
return jt(n, t);
|
|
10586
10586
|
}
|
|
10587
10587
|
function qE(e, t = {}) {
|
|
10588
10588
|
let n = e;
|
|
@@ -11584,13 +11584,13 @@ function y2(e) {
|
|
|
11584
11584
|
return Ws(`0x${t}`);
|
|
11585
11585
|
}
|
|
11586
11586
|
async function v2({ hash: e, signature: t }) {
|
|
11587
|
-
const n =
|
|
11587
|
+
const n = Dt(e) ? e : rn(e), { secp256k1: r } = await Promise.resolve().then(() => iP);
|
|
11588
11588
|
return `0x${(() => {
|
|
11589
11589
|
if (typeof t == "object" && "r" in t && "s" in t) {
|
|
11590
11590
|
const { r: u, s: l, v: d, yParity: f } = t, p = Number(f ?? d), h = Yl(p);
|
|
11591
|
-
return new r.Signature(
|
|
11591
|
+
return new r.Signature(jt(u), jt(l)).addRecoveryBit(h);
|
|
11592
11592
|
}
|
|
11593
|
-
const i =
|
|
11593
|
+
const i = Dt(t) ? t : rn(t);
|
|
11594
11594
|
if (Se(i) !== 65)
|
|
11595
11595
|
throw new Error("invalid signature length");
|
|
11596
11596
|
const c = nn(`0x${i.slice(130)}`), a = Yl(c);
|
|
@@ -12091,7 +12091,7 @@ function $h(e) {
|
|
|
12091
12091
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
12092
12092
|
};
|
|
12093
12093
|
}
|
|
12094
|
-
async function
|
|
12094
|
+
async function Mt(e, { blockHash: t, blockNumber: n, blockTag: r = e.experimental_blockTag ?? "latest", includeTransactions: o } = {}) {
|
|
12095
12095
|
var u, l, d;
|
|
12096
12096
|
const s = o ?? !1, i = n !== void 0 ? J(n) : void 0;
|
|
12097
12097
|
let c = null;
|
|
@@ -12120,7 +12120,7 @@ async function Ah(e, t) {
|
|
|
12120
12120
|
try {
|
|
12121
12121
|
const c = ((s = r == null ? void 0 : r.fees) == null ? void 0 : s.maxPriorityFeePerGas) ?? ((i = r == null ? void 0 : r.fees) == null ? void 0 : i.defaultPriorityFee);
|
|
12122
12122
|
if (typeof c == "function") {
|
|
12123
|
-
const u = n || await ee(e,
|
|
12123
|
+
const u = n || await ee(e, Mt, "getBlock")({}), l = await c({
|
|
12124
12124
|
block: u,
|
|
12125
12125
|
client: e,
|
|
12126
12126
|
request: o
|
|
@@ -12134,10 +12134,10 @@ async function Ah(e, t) {
|
|
|
12134
12134
|
const a = await e.request({
|
|
12135
12135
|
method: "eth_maxPriorityFeePerGas"
|
|
12136
12136
|
});
|
|
12137
|
-
return
|
|
12137
|
+
return jt(a);
|
|
12138
12138
|
} catch {
|
|
12139
12139
|
const [c, a] = await Promise.all([
|
|
12140
|
-
n ? Promise.resolve(n) : ee(e,
|
|
12140
|
+
n ? Promise.resolve(n) : ee(e, Mt, "getBlock")({}),
|
|
12141
12141
|
ee(e, Wc, "getGasPrice")({})
|
|
12142
12142
|
]);
|
|
12143
12143
|
if (typeof c.baseFeePerGas != "bigint")
|
|
@@ -12161,7 +12161,7 @@ async function ka(e, t) {
|
|
|
12161
12161
|
})();
|
|
12162
12162
|
if (i < 1)
|
|
12163
12163
|
throw new I2();
|
|
12164
|
-
const a = 10 ** (((f = i.toString().split(".")[1]) == null ? void 0 : f.length) ?? 0), u = (h) => h * BigInt(Math.ceil(i * a)) / BigInt(a), l = n || await ee(e,
|
|
12164
|
+
const a = 10 ** (((f = i.toString().split(".")[1]) == null ? void 0 : f.length) ?? 0), u = (h) => h * BigInt(Math.ceil(i * a)) / BigInt(a), l = n || await ee(e, Mt, "getBlock")({});
|
|
12165
12165
|
if (typeof ((p = r == null ? void 0 : r.fees) == null ? void 0 : p.estimateFeesPerGas) == "function") {
|
|
12166
12166
|
const h = await r.fees.estimateFeesPerGas({
|
|
12167
12167
|
block: n,
|
|
@@ -12389,7 +12389,7 @@ class _2 extends D2 {
|
|
|
12389
12389
|
}
|
|
12390
12390
|
const Ih = /* @__PURE__ */ Kp(() => new _2()), U2 = Ih;
|
|
12391
12391
|
function z2(e, t) {
|
|
12392
|
-
return U2(
|
|
12392
|
+
return U2(Dt(e, { strict: !1 }) ? Tr(e) : e);
|
|
12393
12393
|
}
|
|
12394
12394
|
function H2(e) {
|
|
12395
12395
|
const { commitment: t, version: n = 1 } = e, r = e.to ?? (typeof t == "string" ? "hex" : "bytes"), o = z2(t);
|
|
@@ -12488,7 +12488,7 @@ async function Mh(e, t) {
|
|
|
12488
12488
|
const { account: n = e.account, blobs: r, chain: o, gas: s, kzg: i, nonce: c, nonceManager: a, parameters: u = Y2, type: l } = t, d = n && Tt(n), f = { ...t, ...d ? { from: d == null ? void 0 : d.address } : {} };
|
|
12489
12489
|
let p;
|
|
12490
12490
|
async function h() {
|
|
12491
|
-
return p || (p = await ee(e,
|
|
12491
|
+
return p || (p = await ee(e, Mt, "getBlock")({ blockTag: "latest" }), p);
|
|
12492
12492
|
}
|
|
12493
12493
|
let m;
|
|
12494
12494
|
async function v() {
|
|
@@ -12655,7 +12655,7 @@ async function Gc(e, t) {
|
|
|
12655
12655
|
}
|
|
12656
12656
|
}
|
|
12657
12657
|
async function X2(e, t) {
|
|
12658
|
-
const { abi: n, address: r, args: o, functionName: s, dataSuffix: i, ...c } = t, a =
|
|
12658
|
+
const { abi: n, address: r, args: o, functionName: s, dataSuffix: i, ...c } = t, a = Ht({
|
|
12659
12659
|
abi: n,
|
|
12660
12660
|
args: o,
|
|
12661
12661
|
functionName: s
|
|
@@ -12915,7 +12915,7 @@ function Qc(e, t) {
|
|
|
12915
12915
|
function jh(e, t) {
|
|
12916
12916
|
return Qc(e, t).reverse();
|
|
12917
12917
|
}
|
|
12918
|
-
function
|
|
12918
|
+
function He(e, t, n) {
|
|
12919
12919
|
let r;
|
|
12920
12920
|
if (typeof t == "string")
|
|
12921
12921
|
try {
|
|
@@ -13080,7 +13080,7 @@ function a6(e, t) {
|
|
|
13080
13080
|
maxSize: t
|
|
13081
13081
|
});
|
|
13082
13082
|
}
|
|
13083
|
-
const
|
|
13083
|
+
const qt = {
|
|
13084
13084
|
zero: 48,
|
|
13085
13085
|
nine: 57,
|
|
13086
13086
|
A: 65,
|
|
@@ -13089,12 +13089,12 @@ const Zt = {
|
|
|
13089
13089
|
f: 102
|
|
13090
13090
|
};
|
|
13091
13091
|
function rf(e) {
|
|
13092
|
-
if (e >=
|
|
13093
|
-
return e -
|
|
13094
|
-
if (e >=
|
|
13095
|
-
return e - (
|
|
13096
|
-
if (e >=
|
|
13097
|
-
return e - (
|
|
13092
|
+
if (e >= qt.zero && e <= qt.nine)
|
|
13093
|
+
return e - qt.zero;
|
|
13094
|
+
if (e >= qt.A && e <= qt.F)
|
|
13095
|
+
return e - (qt.A - 10);
|
|
13096
|
+
if (e >= qt.a && e <= qt.f)
|
|
13097
|
+
return e - (qt.a - 10);
|
|
13098
13098
|
}
|
|
13099
13099
|
function c6(e, t = {}) {
|
|
13100
13100
|
const { dir: n, size: r = 32 } = t;
|
|
@@ -13212,7 +13212,7 @@ function x6(e, t = {}) {
|
|
|
13212
13212
|
if (!e.startsWith("0x"))
|
|
13213
13213
|
throw new af(e);
|
|
13214
13214
|
}
|
|
13215
|
-
function
|
|
13215
|
+
function Ut(...e) {
|
|
13216
13216
|
return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
|
|
13217
13217
|
}
|
|
13218
13218
|
function Hh(e, t = {}) {
|
|
@@ -13987,7 +13987,7 @@ async function Xs(e, t) {
|
|
|
13987
13987
|
});
|
|
13988
13988
|
return H === "0x" ? { data: void 0 } : { data: H };
|
|
13989
13989
|
} catch (R) {
|
|
13990
|
-
const y = M6(R), { offchainLookup: N, offchainLookupSignature: L } = await import("./ccip-
|
|
13990
|
+
const y = M6(R), { offchainLookup: N, offchainLookupSignature: L } = await import("./ccip-QG9Dq841.mjs");
|
|
13991
13991
|
if (e.ccipRead !== !1 && (y == null ? void 0 : y.slice(0, 10)) === L && C)
|
|
13992
13992
|
return { data: await N(e, { data: y, to: C }) };
|
|
13993
13993
|
throw I && (y == null ? void 0 : y.slice(0, 10)) === "0x101bb98d" ? new h2({ factory: f }) : Qh(R, {
|
|
@@ -14025,7 +14025,7 @@ async function N6(e, t) {
|
|
|
14025
14025
|
allowFailure: !0,
|
|
14026
14026
|
callData: C.data,
|
|
14027
14027
|
target: C.to
|
|
14028
|
-
})), b =
|
|
14028
|
+
})), b = Ht({
|
|
14029
14029
|
abi: Fa,
|
|
14030
14030
|
args: [T],
|
|
14031
14031
|
functionName: "aggregate3"
|
|
@@ -14075,7 +14075,7 @@ function M6(e) {
|
|
|
14075
14075
|
return typeof (t == null ? void 0 : t.data) == "object" ? (n = t.data) == null ? void 0 : n.data : t.data;
|
|
14076
14076
|
}
|
|
14077
14077
|
async function an(e, t) {
|
|
14078
|
-
const { abi: n, address: r, args: o, functionName: s, ...i } = t, c =
|
|
14078
|
+
const { abi: n, address: r, args: o, functionName: s, ...i } = t, c = Ht({
|
|
14079
14079
|
abi: n,
|
|
14080
14080
|
args: o,
|
|
14081
14081
|
functionName: s
|
|
@@ -14103,7 +14103,7 @@ async function an(e, t) {
|
|
|
14103
14103
|
}
|
|
14104
14104
|
}
|
|
14105
14105
|
async function k6(e, t) {
|
|
14106
|
-
const { abi: n, address: r, args: o, dataSuffix: s, functionName: i, ...c } = t, a = c.account ? Tt(c.account) : e.account, u =
|
|
14106
|
+
const { abi: n, address: r, args: o, dataSuffix: s, functionName: i, ...c } = t, a = c.account ? Tt(c.account) : e.account, u = Ht({ abi: n, args: o, functionName: i });
|
|
14107
14107
|
try {
|
|
14108
14108
|
const { data: l } = await ee(e, Xs, "call")({
|
|
14109
14109
|
batch: !1,
|
|
@@ -14843,7 +14843,7 @@ function n0(e) {
|
|
|
14843
14843
|
if (e.length !== 66 || e.indexOf("[") !== 0 || e.indexOf("]") !== 65)
|
|
14844
14844
|
return null;
|
|
14845
14845
|
const t = `0x${e.slice(1, 65)}`;
|
|
14846
|
-
return
|
|
14846
|
+
return Dt(t) ? t : null;
|
|
14847
14847
|
}
|
|
14848
14848
|
function os(e) {
|
|
14849
14849
|
let t = new Uint8Array(32).fill(0);
|
|
@@ -14852,7 +14852,7 @@ function os(e) {
|
|
|
14852
14852
|
const n = e.split(".");
|
|
14853
14853
|
for (let r = n.length - 1; r >= 0; r -= 1) {
|
|
14854
14854
|
const o = n0(n[r]), s = o ? Tr(o) : Be(kn(n[r]), "bytes");
|
|
14855
|
-
t = Be(
|
|
14855
|
+
t = Be(_t([t, s]), "bytes");
|
|
14856
14856
|
}
|
|
14857
14857
|
return Oe(t);
|
|
14858
14858
|
}
|
|
@@ -14891,7 +14891,7 @@ async function c5(e, t) {
|
|
|
14891
14891
|
if (l && !l.some((d) => s.endsWith(d)))
|
|
14892
14892
|
return null;
|
|
14893
14893
|
try {
|
|
14894
|
-
const d =
|
|
14894
|
+
const d = Ht({
|
|
14895
14895
|
abi: uf,
|
|
14896
14896
|
functionName: "addr",
|
|
14897
14897
|
...o != null ? { args: [os(s), BigInt(o)] } : { args: [os(s)] }
|
|
@@ -15126,7 +15126,7 @@ async function s0(e, t) {
|
|
|
15126
15126
|
functionName: "resolve",
|
|
15127
15127
|
args: [
|
|
15128
15128
|
rn(ei(s)),
|
|
15129
|
-
|
|
15129
|
+
Ht({
|
|
15130
15130
|
abi: cf,
|
|
15131
15131
|
functionName: "text",
|
|
15132
15132
|
args: [os(s), o]
|
|
@@ -15483,7 +15483,7 @@ function F5(e) {
|
|
|
15483
15483
|
data: n,
|
|
15484
15484
|
primaryType: r,
|
|
15485
15485
|
types: o
|
|
15486
|
-
})), Be(
|
|
15486
|
+
})), Be(_t(s));
|
|
15487
15487
|
}
|
|
15488
15488
|
function D5({ domain: e, types: t }) {
|
|
15489
15489
|
return u0({
|
|
@@ -15619,7 +15619,7 @@ const W5 = `Ethereum Signed Message:
|
|
|
15619
15619
|
`;
|
|
15620
15620
|
function V5(e) {
|
|
15621
15621
|
const t = typeof e == "string" ? Qr(e) : typeof e.raw == "string" ? e.raw : Oe(e.raw), n = Qr(`${W5}${Se(t)}`);
|
|
15622
|
-
return
|
|
15622
|
+
return _t([n, t]);
|
|
15623
15623
|
}
|
|
15624
15624
|
function p0(e, t) {
|
|
15625
15625
|
return Be(V5(e), t);
|
|
@@ -15746,7 +15746,7 @@ async function tS(e, t) {
|
|
|
15746
15746
|
for (let b = 0; b < u.length; b++) {
|
|
15747
15747
|
const { abi: $, address: C, args: k, functionName: F } = u[b];
|
|
15748
15748
|
try {
|
|
15749
|
-
const D =
|
|
15749
|
+
const D = Ht({ abi: $, args: k, functionName: F });
|
|
15750
15750
|
h += (D.length - 2) / 2, // Check if batching is enabled.
|
|
15751
15751
|
l > 0 && // Check if the current size of the batch exceeds the size limit.
|
|
15752
15752
|
h > l && // Check if the current chunk is not already empty.
|
|
@@ -15841,9 +15841,9 @@ async function Ha(e, t) {
|
|
|
15841
15841
|
const a = [];
|
|
15842
15842
|
for (const f of o) {
|
|
15843
15843
|
const p = f.blockOverrides ? qh(f.blockOverrides) : void 0, h = f.calls.map((v) => {
|
|
15844
|
-
const T = v, b = T.account ? Tt(T.account) : void 0, $ = T.abi ?
|
|
15844
|
+
const T = v, b = T.account ? Tt(T.account) : void 0, $ = T.abi ? Ht(T) : T.data, C = {
|
|
15845
15845
|
...T,
|
|
15846
|
-
data: T.dataSuffix ?
|
|
15846
|
+
data: T.dataSuffix ? _t([$ || "0x", T.dataSuffix]) : $,
|
|
15847
15847
|
from: T.from ?? (b == null ? void 0 : b.address)
|
|
15848
15848
|
};
|
|
15849
15849
|
return No(C), Ks(C);
|
|
@@ -16214,7 +16214,7 @@ function lu(e) {
|
|
|
16214
16214
|
const { dynamic: i, encoded: c } = e[s];
|
|
16215
16215
|
i ? (n.push(De(t + o, { size: 32 })), r.push(c), o += ht(c)) : n.push(c);
|
|
16216
16216
|
}
|
|
16217
|
-
return
|
|
16217
|
+
return Ut(...n, ...r);
|
|
16218
16218
|
}
|
|
16219
16219
|
function hS(e, t) {
|
|
16220
16220
|
const { checksum: n = !1 } = t;
|
|
@@ -16249,7 +16249,7 @@ function mS(e, t) {
|
|
|
16249
16249
|
const u = De(c.length, { size: 32 });
|
|
16250
16250
|
return {
|
|
16251
16251
|
dynamic: !0,
|
|
16252
|
-
encoded: c.length > 0 ?
|
|
16252
|
+
encoded: c.length > 0 ? Ut(u, a) : u
|
|
16253
16253
|
};
|
|
16254
16254
|
}
|
|
16255
16255
|
if (i)
|
|
@@ -16257,7 +16257,7 @@ function mS(e, t) {
|
|
|
16257
16257
|
}
|
|
16258
16258
|
return {
|
|
16259
16259
|
dynamic: !1,
|
|
16260
|
-
encoded:
|
|
16260
|
+
encoded: Ut(...c.map(({ encoded: a }) => a))
|
|
16261
16261
|
};
|
|
16262
16262
|
}
|
|
16263
16263
|
function gS(e, { type: t }) {
|
|
@@ -16266,7 +16266,7 @@ function gS(e, { type: t }) {
|
|
|
16266
16266
|
let o = e;
|
|
16267
16267
|
return r % 32 !== 0 && (o = Wn(o, Math.ceil((e.length - 2) / 2 / 32) * 32)), {
|
|
16268
16268
|
dynamic: !0,
|
|
16269
|
-
encoded:
|
|
16269
|
+
encoded: Ut(Hn(De(r, { size: 32 })), o)
|
|
16270
16270
|
};
|
|
16271
16271
|
}
|
|
16272
16272
|
if (r !== Number.parseInt(n))
|
|
@@ -16307,7 +16307,7 @@ function vS(e) {
|
|
|
16307
16307
|
r.push(Wn(nu(t, o * 32, (o + 1) * 32)));
|
|
16308
16308
|
return {
|
|
16309
16309
|
dynamic: !0,
|
|
16310
|
-
encoded:
|
|
16310
|
+
encoded: Ut(Wn(De(ht(t), { size: 32 })), ...r)
|
|
16311
16311
|
};
|
|
16312
16312
|
}
|
|
16313
16313
|
function wS(e, t) {
|
|
@@ -16324,7 +16324,7 @@ function wS(e, t) {
|
|
|
16324
16324
|
}
|
|
16325
16325
|
return {
|
|
16326
16326
|
dynamic: o,
|
|
16327
|
-
encoded: o ? lu(s) :
|
|
16327
|
+
encoded: o ? lu(s) : Ut(...s.map(({ encoded: i }) => i))
|
|
16328
16328
|
};
|
|
16329
16329
|
}
|
|
16330
16330
|
function xS(e) {
|
|
@@ -16359,7 +16359,7 @@ function Za(e, t) {
|
|
|
16359
16359
|
const o = e[r], s = t[r];
|
|
16360
16360
|
n.push(Za.encode(o, s));
|
|
16361
16361
|
}
|
|
16362
|
-
return
|
|
16362
|
+
return Ut(...n);
|
|
16363
16363
|
}
|
|
16364
16364
|
(function(e) {
|
|
16365
16365
|
function t(n, r, o = !1) {
|
|
@@ -16396,7 +16396,7 @@ function Za(e, t) {
|
|
|
16396
16396
|
const [a, u] = c, l = [];
|
|
16397
16397
|
for (let d = 0; d < r.length; d++)
|
|
16398
16398
|
l.push(t(u, r[d], !0));
|
|
16399
|
-
return l.length === 0 ? "0x" :
|
|
16399
|
+
return l.length === 0 ? "0x" : Ut(...l);
|
|
16400
16400
|
}
|
|
16401
16401
|
throw new S0(n);
|
|
16402
16402
|
}
|
|
@@ -16460,7 +16460,7 @@ class S0 extends be {
|
|
|
16460
16460
|
function PS(e, t) {
|
|
16461
16461
|
var o;
|
|
16462
16462
|
const { bytecode: n, args: r } = t;
|
|
16463
|
-
return
|
|
16463
|
+
return Ut(n, (o = e.inputs) != null && o.length && (r != null && r.length) ? w0(e.inputs, r) : "0x");
|
|
16464
16464
|
}
|
|
16465
16465
|
function $S(e) {
|
|
16466
16466
|
return b0(e);
|
|
@@ -16469,7 +16469,7 @@ function AS(e, ...t) {
|
|
|
16469
16469
|
const { overloads: n } = e, r = n ? TS([e, ...n], e.name, {
|
|
16470
16470
|
args: t[0]
|
|
16471
16471
|
}) : e, o = RS(r), s = t.length > 0 ? w0(r.inputs, t[0]) : void 0;
|
|
16472
|
-
return s ?
|
|
16472
|
+
return s ? Ut(o, s) : o;
|
|
16473
16473
|
}
|
|
16474
16474
|
function Jn(e, t = {}) {
|
|
16475
16475
|
return b0(e, t);
|
|
@@ -16500,7 +16500,7 @@ async function NS(e, t) {
|
|
|
16500
16500
|
const { accessList: N } = await i0(e, {
|
|
16501
16501
|
account: u.address,
|
|
16502
16502
|
...y,
|
|
16503
|
-
data: y.abi ?
|
|
16503
|
+
data: y.abi ? Ht(y) : y.data
|
|
16504
16504
|
});
|
|
16505
16505
|
return N.map(({ address: L, storageKeys: j }) => j.length > 0 ? L : null);
|
|
16506
16506
|
})).then((y) => y.flat().filter(Boolean)) : [], f = await Ha(e, {
|
|
@@ -16621,7 +16621,7 @@ async function NS(e, t) {
|
|
|
16621
16621
|
],
|
|
16622
16622
|
traceTransfers: c,
|
|
16623
16623
|
validation: a
|
|
16624
|
-
}), p = i ? f[2] : f[0], [h, m, , v, T, b, $, C] = i ? f : [], { calls: k, ...F } = p, D = k.slice(0, -1) ?? [], g = (h == null ? void 0 : h.calls) ?? [], w = (m == null ? void 0 : m.calls) ?? [], P = [...g, ...w].map((y) => y.status === "success" ?
|
|
16624
|
+
}), p = i ? f[2] : f[0], [h, m, , v, T, b, $, C] = i ? f : [], { calls: k, ...F } = p, D = k.slice(0, -1) ?? [], g = (h == null ? void 0 : h.calls) ?? [], w = (m == null ? void 0 : m.calls) ?? [], P = [...g, ...w].map((y) => y.status === "success" ? jt(y.data) : null), I = (v == null ? void 0 : v.calls) ?? [], O = (T == null ? void 0 : T.calls) ?? [], S = [...I, ...O].map((y) => y.status === "success" ? jt(y.data) : null), E = ((b == null ? void 0 : b.calls) ?? []).map((y) => y.status === "success" ? y.result : null), x = ((C == null ? void 0 : C.calls) ?? []).map((y) => y.status === "success" ? y.result : null), A = (($ == null ? void 0 : $.calls) ?? []).map((y) => y.status === "success" ? y.result : null), R = [];
|
|
16625
16625
|
for (const [y, N] of S.entries()) {
|
|
16626
16626
|
const L = P[y];
|
|
16627
16627
|
if (typeof N != "bigint" || typeof L != "bigint")
|
|
@@ -16691,28 +16691,28 @@ class P0 extends Ic {
|
|
|
16691
16691
|
const $0 = (e, t, n) => new P0(e, t).update(n).digest();
|
|
16692
16692
|
$0.create = (e, t) => new P0(e, t);
|
|
16693
16693
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
16694
|
-
const
|
|
16694
|
+
const We = BigInt(0), je = BigInt(1), Nn = /* @__PURE__ */ BigInt(2), A0 = /* @__PURE__ */ BigInt(3), T0 = /* @__PURE__ */ BigInt(4), R0 = /* @__PURE__ */ BigInt(5), CS = /* @__PURE__ */ BigInt(7), O0 = /* @__PURE__ */ BigInt(8), BS = /* @__PURE__ */ BigInt(9), I0 = /* @__PURE__ */ BigInt(16);
|
|
16695
16695
|
function bt(e, t) {
|
|
16696
16696
|
const n = e % t;
|
|
16697
|
-
return n >=
|
|
16697
|
+
return n >= We ? n : t + n;
|
|
16698
16698
|
}
|
|
16699
16699
|
function ot(e, t, n) {
|
|
16700
16700
|
let r = e;
|
|
16701
|
-
for (; t-- >
|
|
16701
|
+
for (; t-- > We; )
|
|
16702
16702
|
r *= r, r %= n;
|
|
16703
16703
|
return r;
|
|
16704
16704
|
}
|
|
16705
16705
|
function bf(e, t) {
|
|
16706
|
-
if (e ===
|
|
16706
|
+
if (e === We)
|
|
16707
16707
|
throw new Error("invert: expected non-zero number");
|
|
16708
|
-
if (t <=
|
|
16708
|
+
if (t <= We)
|
|
16709
16709
|
throw new Error("invert: expected positive modulus, got " + t);
|
|
16710
|
-
let n = bt(e, t), r = t, o =
|
|
16711
|
-
for (; n !==
|
|
16710
|
+
let n = bt(e, t), r = t, o = We, s = je;
|
|
16711
|
+
for (; n !== We; ) {
|
|
16712
16712
|
const c = r / n, a = r % n, u = o - s * c;
|
|
16713
16713
|
r = n, n = a, o = s, s = u;
|
|
16714
16714
|
}
|
|
16715
|
-
if (r !==
|
|
16715
|
+
if (r !== je)
|
|
16716
16716
|
throw new Error("invert: does not exist");
|
|
16717
16717
|
return bt(o, t);
|
|
16718
16718
|
}
|
|
@@ -16721,7 +16721,7 @@ function fu(e, t, n) {
|
|
|
16721
16721
|
throw new Error("Cannot find square root");
|
|
16722
16722
|
}
|
|
16723
16723
|
function N0(e, t) {
|
|
16724
|
-
const n = (e.ORDER +
|
|
16724
|
+
const n = (e.ORDER + je) / T0, r = e.pow(t, n);
|
|
16725
16725
|
return fu(e, r, t), r;
|
|
16726
16726
|
}
|
|
16727
16727
|
function MS(e, t) {
|
|
@@ -16741,8 +16741,8 @@ function kS(e) {
|
|
|
16741
16741
|
function C0(e) {
|
|
16742
16742
|
if (e < A0)
|
|
16743
16743
|
throw new Error("sqrt is not defined for small field");
|
|
16744
|
-
let t = e -
|
|
16745
|
-
for (; t % Nn ===
|
|
16744
|
+
let t = e - je, n = 0;
|
|
16745
|
+
for (; t % Nn === We; )
|
|
16746
16746
|
t /= Nn, n++;
|
|
16747
16747
|
let r = Nn;
|
|
16748
16748
|
const o = ko(e);
|
|
@@ -16752,7 +16752,7 @@ function C0(e) {
|
|
|
16752
16752
|
if (n === 1)
|
|
16753
16753
|
return N0;
|
|
16754
16754
|
let s = o.pow(r, t);
|
|
16755
|
-
const i = (t +
|
|
16755
|
+
const i = (t + je) / Nn;
|
|
16756
16756
|
return function(a, u) {
|
|
16757
16757
|
if (a.is0(u))
|
|
16758
16758
|
return u;
|
|
@@ -16766,7 +16766,7 @@ function C0(e) {
|
|
|
16766
16766
|
for (; !a.eql(m, a.ONE); )
|
|
16767
16767
|
if (h++, m = a.sqr(m), h === l)
|
|
16768
16768
|
throw new Error("Cannot find square root");
|
|
16769
|
-
const v =
|
|
16769
|
+
const v = je << BigInt(l - h - 1), T = a.pow(d, v);
|
|
16770
16770
|
l = h, d = a.sqr(T), f = a.mul(f, d), p = a.mul(p, T);
|
|
16771
16771
|
}
|
|
16772
16772
|
return p;
|
|
@@ -16804,15 +16804,15 @@ function DS(e) {
|
|
|
16804
16804
|
return Jc(e, n), e;
|
|
16805
16805
|
}
|
|
16806
16806
|
function jS(e, t, n) {
|
|
16807
|
-
if (n <
|
|
16807
|
+
if (n < We)
|
|
16808
16808
|
throw new Error("invalid exponent, negatives unsupported");
|
|
16809
|
-
if (n ===
|
|
16809
|
+
if (n === We)
|
|
16810
16810
|
return e.ONE;
|
|
16811
|
-
if (n ===
|
|
16811
|
+
if (n === je)
|
|
16812
16812
|
return t;
|
|
16813
16813
|
let r = e.ONE, o = t;
|
|
16814
|
-
for (; n >
|
|
16815
|
-
n &
|
|
16814
|
+
for (; n > We; )
|
|
16815
|
+
n & je && (r = e.mul(r, o)), o = e.sqr(o), n >>= je;
|
|
16816
16816
|
return r;
|
|
16817
16817
|
}
|
|
16818
16818
|
function B0(e, t, n = !1) {
|
|
@@ -16820,7 +16820,7 @@ function B0(e, t, n = !1) {
|
|
|
16820
16820
|
return t.reduceRight((i, c, a) => e.is0(c) ? i : (r[a] = e.mul(i, r[a]), e.mul(i, c)), s), r;
|
|
16821
16821
|
}
|
|
16822
16822
|
function yf(e, t) {
|
|
16823
|
-
const n = (e.ORDER -
|
|
16823
|
+
const n = (e.ORDER - je) / Nn, r = e.pow(t, n), o = e.eql(r, e.ONE), s = e.eql(r, e.ZERO), i = e.eql(r, e.neg(e.ONE));
|
|
16824
16824
|
if (!o && !s && !i)
|
|
16825
16825
|
throw new Error("invalid Legendre symbol result");
|
|
16826
16826
|
return o ? 1 : s ? 0 : -1;
|
|
@@ -16831,7 +16831,7 @@ function M0(e, t) {
|
|
|
16831
16831
|
return { nBitLength: n, nByteLength: r };
|
|
16832
16832
|
}
|
|
16833
16833
|
function ko(e, t, n = !1, r = {}) {
|
|
16834
|
-
if (e <=
|
|
16834
|
+
if (e <= We)
|
|
16835
16835
|
throw new Error("invalid field: expected ORDER > 0, got " + e);
|
|
16836
16836
|
let o, s, i = !1, c;
|
|
16837
16837
|
if (typeof t == "object" && t != null) {
|
|
@@ -16851,19 +16851,19 @@ function ko(e, t, n = !1, r = {}) {
|
|
|
16851
16851
|
BITS: a,
|
|
16852
16852
|
BYTES: u,
|
|
16853
16853
|
MASK: Co(a),
|
|
16854
|
-
ZERO:
|
|
16855
|
-
ONE:
|
|
16854
|
+
ZERO: We,
|
|
16855
|
+
ONE: je,
|
|
16856
16856
|
allowedLengths: c,
|
|
16857
16857
|
create: (f) => bt(f, e),
|
|
16858
16858
|
isValid: (f) => {
|
|
16859
16859
|
if (typeof f != "bigint")
|
|
16860
16860
|
throw new Error("invalid field element: expected bigint, got " + typeof f);
|
|
16861
|
-
return
|
|
16861
|
+
return We <= f && f < e;
|
|
16862
16862
|
},
|
|
16863
|
-
is0: (f) => f ===
|
|
16863
|
+
is0: (f) => f === We,
|
|
16864
16864
|
// is valid and invertible
|
|
16865
16865
|
isValidNot0: (f) => !d.is0(f) && d.isValid(f),
|
|
16866
|
-
isOdd: (f) => (f &
|
|
16866
|
+
isOdd: (f) => (f & je) === je,
|
|
16867
16867
|
neg: (f) => bt(-f, e),
|
|
16868
16868
|
eql: (f, p) => f === p,
|
|
16869
16869
|
sqr: (f) => bt(f * f, e),
|
|
@@ -16916,7 +16916,7 @@ function _S(e, t, n = !1) {
|
|
|
16916
16916
|
const r = e.length, o = k0(t), s = L0(t);
|
|
16917
16917
|
if (r < 16 || r < s || r > 1024)
|
|
16918
16918
|
throw new Error("expected " + s + "-1024 bytes of input, got " + r);
|
|
16919
|
-
const i = n ? Dh(e) : Ys(e), c = bt(i, t -
|
|
16919
|
+
const i = n ? Dh(e) : Ys(e), c = bt(i, t - je) + je;
|
|
16920
16920
|
return n ? jh(c, o) : Qc(c, o);
|
|
16921
16921
|
}
|
|
16922
16922
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
@@ -17215,7 +17215,7 @@ const Kt = {
|
|
|
17215
17215
|
}
|
|
17216
17216
|
},
|
|
17217
17217
|
toSig(e) {
|
|
17218
|
-
const { Err: t, _int: n, _tlv: r } = Kt, o =
|
|
17218
|
+
const { Err: t, _int: n, _tlv: r } = Kt, o = He("signature", e), { v: s, l: i } = r.decode(48, o);
|
|
17219
17219
|
if (i.length)
|
|
17220
17220
|
throw new t("invalid signature: left bytes after parsing");
|
|
17221
17221
|
const { v: c, l: a } = r.decode(2, s), { v: u, l } = r.decode(2, a);
|
|
@@ -17234,7 +17234,7 @@ function ir(e, t) {
|
|
|
17234
17234
|
if (typeof t == "bigint")
|
|
17235
17235
|
r = t;
|
|
17236
17236
|
else {
|
|
17237
|
-
let o =
|
|
17237
|
+
let o = He("private key", t);
|
|
17238
17238
|
try {
|
|
17239
17239
|
r = e.fromBytes(o);
|
|
17240
17240
|
} catch {
|
|
@@ -17381,7 +17381,7 @@ function YS(e, t = {}) {
|
|
|
17381
17381
|
return E.assertValidity(), E;
|
|
17382
17382
|
}
|
|
17383
17383
|
static fromHex(S) {
|
|
17384
|
-
return w.fromBytes(
|
|
17384
|
+
return w.fromBytes(He("pointHex", S));
|
|
17385
17385
|
}
|
|
17386
17386
|
get x() {
|
|
17387
17387
|
return this.toAffine().x;
|
|
@@ -17606,7 +17606,7 @@ function XS(e, t = {}) {
|
|
|
17606
17606
|
const { secretKey: h, publicKey: m, publicKeyUncompressed: v } = o;
|
|
17607
17607
|
if (n.allowedLengths || h === m)
|
|
17608
17608
|
return;
|
|
17609
|
-
const T =
|
|
17609
|
+
const T = He("key", p).length;
|
|
17610
17610
|
return T === m || T === v;
|
|
17611
17611
|
}
|
|
17612
17612
|
function d(p, h, m = !0) {
|
|
@@ -17689,7 +17689,7 @@ function QS(e, t, n = {}) {
|
|
|
17689
17689
|
const j = N === 2 || N === 3 ? R + c : R;
|
|
17690
17690
|
if (!s.isValid(j))
|
|
17691
17691
|
throw new Error("recovery id 2 or 3 invalid");
|
|
17692
|
-
const U = s.toBytes(j), z = e.fromBytes(mn(_0((N & 1) === 0), U)), Z = i.inv(j), H = k(
|
|
17692
|
+
const U = s.toBytes(j), z = e.fromBytes(mn(_0((N & 1) === 0), U)), Z = i.inv(j), H = k(He("msgHash", x)), q = i.create(-H * Z), G = i.create(y * Z), Q = e.BASE.multiplyUnsafe(q).add(z.multiplyUnsafe(G));
|
|
17693
17693
|
if (Q.is0())
|
|
17694
17694
|
throw new Error("point at infinify");
|
|
17695
17695
|
return Q.assertValidity(), Q;
|
|
@@ -17716,10 +17716,10 @@ function QS(e, t, n = {}) {
|
|
|
17716
17716
|
assertValidity() {
|
|
17717
17717
|
}
|
|
17718
17718
|
static fromCompact(x) {
|
|
17719
|
-
return $.fromBytes(
|
|
17719
|
+
return $.fromBytes(He("sig", x), "compact");
|
|
17720
17720
|
}
|
|
17721
17721
|
static fromDER(x) {
|
|
17722
|
-
return $.fromBytes(
|
|
17722
|
+
return $.fromBytes(He("sig", x), "der");
|
|
17723
17723
|
}
|
|
17724
17724
|
normalizeS() {
|
|
17725
17725
|
return this.hasHighS() ? new $(this.r, i.neg(this.s), this.recovery) : this;
|
|
@@ -17759,7 +17759,7 @@ function QS(e, t, n = {}) {
|
|
|
17759
17759
|
const L = k(E), j = ir(i, x), U = [D(j), D(L)];
|
|
17760
17760
|
if (N != null && N !== !1) {
|
|
17761
17761
|
const q = N === !0 ? r(p.secretKey) : N;
|
|
17762
|
-
U.push(
|
|
17762
|
+
U.push(He("extraEntropy", q));
|
|
17763
17763
|
}
|
|
17764
17764
|
const z = mn(...U), Z = L;
|
|
17765
17765
|
function H(q) {
|
|
@@ -17778,7 +17778,7 @@ function QS(e, t, n = {}) {
|
|
|
17778
17778
|
return { seed: z, k2sig: H };
|
|
17779
17779
|
}
|
|
17780
17780
|
function P(E, x, A = {}) {
|
|
17781
|
-
E =
|
|
17781
|
+
E = He("message", E);
|
|
17782
17782
|
const { seed: R, k2sig: y } = w(E, x, A);
|
|
17783
17783
|
return n6(t.outputLen, i.BYTES, o)(R, y);
|
|
17784
17784
|
}
|
|
@@ -17791,14 +17791,14 @@ function QS(e, t, n = {}) {
|
|
|
17791
17791
|
x = new $(E.r, E.s);
|
|
17792
17792
|
else if (A) {
|
|
17793
17793
|
try {
|
|
17794
|
-
x = $.fromBytes(
|
|
17794
|
+
x = $.fromBytes(He("sig", E), "der");
|
|
17795
17795
|
} catch (y) {
|
|
17796
17796
|
if (!(y instanceof Kt.Err))
|
|
17797
17797
|
throw y;
|
|
17798
17798
|
}
|
|
17799
17799
|
if (!x)
|
|
17800
17800
|
try {
|
|
17801
|
-
x = $.fromBytes(
|
|
17801
|
+
x = $.fromBytes(He("sig", E), "compact");
|
|
17802
17802
|
} catch {
|
|
17803
17803
|
return !1;
|
|
17804
17804
|
}
|
|
@@ -17807,9 +17807,9 @@ function QS(e, t, n = {}) {
|
|
|
17807
17807
|
}
|
|
17808
17808
|
function O(E, x, A, R = {}) {
|
|
17809
17809
|
const { lowS: y, prehash: N, format: L } = Vi(R, h);
|
|
17810
|
-
if (A =
|
|
17810
|
+
if (A = He("publicKey", A), x = g(He("message", x), N), "strict" in R)
|
|
17811
17811
|
throw new Error("options.strict was renamed to lowS");
|
|
17812
|
-
const j = L === void 0 ? I(E) : $.fromBytes(
|
|
17812
|
+
const j = L === void 0 ? I(E) : $.fromBytes(He("sig", E), L);
|
|
17813
17813
|
if (j === !1)
|
|
17814
17814
|
return !1;
|
|
17815
17815
|
try {
|
|
@@ -17926,12 +17926,12 @@ function aP({ r: e, s: t, to: n = "hex", v: r, yParity: o }) {
|
|
|
17926
17926
|
if (r && (r === 27n || r === 28n || r >= 35n))
|
|
17927
17927
|
return r % 2n === 0n ? 1 : 0;
|
|
17928
17928
|
throw new Error("Invalid `v` or `yParity` value");
|
|
17929
|
-
})(), i = `0x${new z0.Signature(
|
|
17929
|
+
})(), i = `0x${new z0.Signature(jt(e), jt(t)).toCompactHex()}${s === 0 ? "1b" : "1c"}`;
|
|
17930
17930
|
return n === "hex" ? i : Pt(i);
|
|
17931
17931
|
}
|
|
17932
17932
|
async function pu(e, t) {
|
|
17933
17933
|
var d, f, p;
|
|
17934
|
-
const { address: n, factory: r, factoryData: o, hash: s, signature: i, universalSignatureVerifierAddress: c = (p = (f = (d = e.chain) == null ? void 0 : d.contracts) == null ? void 0 : f.universalSignatureVerifier) == null ? void 0 : p.address, ...a } = t, u =
|
|
17934
|
+
const { address: n, factory: r, factoryData: o, hash: s, signature: i, universalSignatureVerifierAddress: c = (p = (f = (d = e.chain) == null ? void 0 : d.contracts) == null ? void 0 : f.universalSignatureVerifier) == null ? void 0 : p.address, ...a } = t, u = Dt(i) ? i : typeof i == "object" && "r" in i && "s" in i ? aP(i) : Oe(i), l = await (async () => !r && !o || G5(u) ? u : q5({
|
|
17935
17935
|
address: r,
|
|
17936
17936
|
data: o,
|
|
17937
17937
|
signature: u
|
|
@@ -17939,7 +17939,7 @@ async function pu(e, t) {
|
|
|
17939
17939
|
try {
|
|
17940
17940
|
const h = c ? {
|
|
17941
17941
|
to: c,
|
|
17942
|
-
data:
|
|
17942
|
+
data: Ht({
|
|
17943
17943
|
abi: lf,
|
|
17944
17944
|
functionName: "isValidSig",
|
|
17945
17945
|
args: [n, s, l]
|
|
@@ -18040,7 +18040,7 @@ function H0(e, { emitOnBegin: t = !1, emitMissed: n = !1, onBlockNumber: r, onEr
|
|
|
18040
18040
|
var $;
|
|
18041
18041
|
if (!p)
|
|
18042
18042
|
return;
|
|
18043
|
-
const b =
|
|
18043
|
+
const b = jt(($ = T.result) == null ? void 0 : $.number);
|
|
18044
18044
|
f.onBlockNumber(b, a), a = b;
|
|
18045
18045
|
},
|
|
18046
18046
|
onError(T) {
|
|
@@ -18114,7 +18114,7 @@ async function lP(e, t) {
|
|
|
18114
18114
|
}
|
|
18115
18115
|
try {
|
|
18116
18116
|
f = d, h = !0;
|
|
18117
|
-
const P = await Ua(() => ee(e,
|
|
18117
|
+
const P = await Ua(() => ee(e, Mt, "getBlock")({
|
|
18118
18118
|
blockNumber: g,
|
|
18119
18119
|
includeTransactions: !0
|
|
18120
18120
|
}), {
|
|
@@ -18164,7 +18164,7 @@ function fP(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
18164
18164
|
return xn(h, { onBlock: o, onError: s }, (m) => Bo(async () => {
|
|
18165
18165
|
var v;
|
|
18166
18166
|
try {
|
|
18167
|
-
const T = await ee(e,
|
|
18167
|
+
const T = await ee(e, Mt, "getBlock")({
|
|
18168
18168
|
blockTag: t,
|
|
18169
18169
|
includeTransactions: l
|
|
18170
18170
|
});
|
|
@@ -18173,7 +18173,7 @@ function fP(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
18173
18173
|
return;
|
|
18174
18174
|
if (T.number - d.number > 1 && n)
|
|
18175
18175
|
for (let b = (d == null ? void 0 : d.number) + 1n; b < T.number; b++) {
|
|
18176
|
-
const $ = await ee(e,
|
|
18176
|
+
const $ = await ee(e, Mt, "getBlock")({
|
|
18177
18177
|
blockNumber: b,
|
|
18178
18178
|
includeTransactions: l
|
|
18179
18179
|
});
|
|
@@ -18196,7 +18196,7 @@ function fP(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
18196
18196
|
let h = !0, m = !0, v = () => h = !1;
|
|
18197
18197
|
return (async () => {
|
|
18198
18198
|
try {
|
|
18199
|
-
r && ee(e,
|
|
18199
|
+
r && ee(e, Mt, "getBlock")({
|
|
18200
18200
|
blockTag: t,
|
|
18201
18201
|
includeTransactions: l
|
|
18202
18202
|
}).then(($) => {
|
|
@@ -18214,7 +18214,7 @@ function fP(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
18214
18214
|
var k;
|
|
18215
18215
|
if (!h)
|
|
18216
18216
|
return;
|
|
18217
|
-
const C = await ee(e,
|
|
18217
|
+
const C = await ee(e, Mt, "getBlock")({
|
|
18218
18218
|
blockNumber: (k = $.result) == null ? void 0 : k.number,
|
|
18219
18219
|
includeTransactions: l
|
|
18220
18220
|
}).catch(() => {
|
|
@@ -18479,7 +18479,7 @@ function vP(e) {
|
|
|
18479
18479
|
estimateGas: (t) => Gc(e, t),
|
|
18480
18480
|
getBalance: (t) => kh(e, t),
|
|
18481
18481
|
getBlobBaseFee: () => $5(e),
|
|
18482
|
-
getBlock: (t) =>
|
|
18482
|
+
getBlock: (t) => Mt(e, t),
|
|
18483
18483
|
getBlockNumber: (t) => Mo(e, t),
|
|
18484
18484
|
getBlockTransactionCount: (t) => A5(e, t),
|
|
18485
18485
|
getBytecode: (t) => mf(e, t),
|
|
@@ -18598,7 +18598,7 @@ const xP = /* @__PURE__ */ B5({
|
|
|
18598
18598
|
if (!Qd(e, n))
|
|
18599
18599
|
return !1;
|
|
18600
18600
|
try {
|
|
18601
|
-
const r = new
|
|
18601
|
+
const r = new Ve(t || "0"), o = new Ve("200000");
|
|
18602
18602
|
return r.isNaN() || o.isNaN() ? !1 : r.gte(o);
|
|
18603
18603
|
} catch {
|
|
18604
18604
|
return !1;
|
|
@@ -18607,7 +18607,7 @@ const xP = /* @__PURE__ */ B5({
|
|
|
18607
18607
|
let r = t || "0";
|
|
18608
18608
|
if (Qd(e, n))
|
|
18609
18609
|
try {
|
|
18610
|
-
const o = new
|
|
18610
|
+
const o = new Ve(r), s = new Ve("200000");
|
|
18611
18611
|
o.gt(s) && (r = "200000");
|
|
18612
18612
|
} catch (o) {
|
|
18613
18613
|
console.warn("Error calculating max amount limit:", o);
|
|
@@ -19088,7 +19088,7 @@ const LP = ({
|
|
|
19088
19088
|
I && O();
|
|
19089
19089
|
}, [I, O]);
|
|
19090
19090
|
const { showLayerZeroTip: S, layerZeroTipKey: E } = re(() => {
|
|
19091
|
-
const L = +t.chainId == 42161 || +t.chainId == 421614, j = (n == null ? void 0 : n.toUpperCase()) === "USDT", U = new
|
|
19091
|
+
const L = +t.chainId == 42161 || +t.chainId == 421614, j = (n == null ? void 0 : n.toUpperCase()) === "USDT", U = new Ve(f || "0"), z = new Ve("200000");
|
|
19092
19092
|
let Z = !1, H;
|
|
19093
19093
|
if (L && j && f)
|
|
19094
19094
|
if (U.gte(z))
|
|
@@ -19096,7 +19096,7 @@ const LP = ({
|
|
|
19096
19096
|
else {
|
|
19097
19097
|
const q = k;
|
|
19098
19098
|
if (typeof q == "string" && q.length > 0) {
|
|
19099
|
-
const Q = new
|
|
19099
|
+
const Q = new Ve(q);
|
|
19100
19100
|
!Q.isNaN() && U.gte(Q) && (Z = !0, H = "deposit.layerZeroDepositTipExceedPool");
|
|
19101
19101
|
}
|
|
19102
19102
|
}
|
|
@@ -19405,8 +19405,8 @@ const LP = ({
|
|
|
19405
19405
|
onAmountChanged: u
|
|
19406
19406
|
}) => {
|
|
19407
19407
|
const { t: l } = En(), d = re(() => {
|
|
19408
|
-
if (!
|
|
19409
|
-
const v = new
|
|
19408
|
+
if (!Zt(n == null ? void 0 : n.chainId)) {
|
|
19409
|
+
const v = new Ve(e || "0").minus(o || "0").decimalPlaces(2, Ve.ROUND_DOWN);
|
|
19410
19410
|
return v.isNegative() ? "0.00" : v.toString();
|
|
19411
19411
|
}
|
|
19412
19412
|
return e || "0";
|
|
@@ -19463,7 +19463,7 @@ const LP = ({
|
|
|
19463
19463
|
/* @__PURE__ */ B.jsx("span", { className: "text-text-primary text-xs leading-[14px]", children: m() })
|
|
19464
19464
|
] })
|
|
19465
19465
|
] }),
|
|
19466
|
-
s === "mpc" && !
|
|
19466
|
+
s === "mpc" && !Zt(n == null ? void 0 : n.chainId) && /* @__PURE__ */ B.jsx("div", { className: "bg-fill-input-primary rounded-lg my-4 h-9 flex items-center px-3", children: /* @__PURE__ */ B.jsx(
|
|
19467
19467
|
"input",
|
|
19468
19468
|
{
|
|
19469
19469
|
type: "text",
|
|
@@ -19473,7 +19473,7 @@ const LP = ({
|
|
|
19473
19473
|
className: "flex-1 bg-transparent text-text-primary text-sm font-medium placeholder-text-tertiary placeholder:font-normal focus:outline-none border-none p-0 h-full"
|
|
19474
19474
|
}
|
|
19475
19475
|
) }),
|
|
19476
|
-
/* @__PURE__ */ B.jsx("div", { className: "bg-fill-page-secondary rounded-lg mb-4", children:
|
|
19476
|
+
/* @__PURE__ */ B.jsx("div", { className: "bg-fill-page-secondary rounded-lg mb-4", children: Zt(n == null ? void 0 : n.chainId) ? /* @__PURE__ */ B.jsxs(B.Fragment, { children: [
|
|
19477
19477
|
/* @__PURE__ */ B.jsx("p", { className: "text-text-tertiary text-xs leading-[18px]", children: l("withdraw.noticeDesc") }),
|
|
19478
19478
|
/* @__PURE__ */ B.jsx(
|
|
19479
19479
|
"a",
|
|
@@ -19512,12 +19512,12 @@ const LP = ({
|
|
|
19512
19512
|
/* @__PURE__ */ B.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ B.jsx(
|
|
19513
19513
|
_r,
|
|
19514
19514
|
{
|
|
19515
|
-
selectedLevel:
|
|
19515
|
+
selectedLevel: Zt(n == null ? void 0 : n.chainId) ? yt.SLOW : yt.FAST,
|
|
19516
19516
|
maxLevel: 3
|
|
19517
19517
|
}
|
|
19518
19518
|
) })
|
|
19519
19519
|
] }),
|
|
19520
|
-
!
|
|
19520
|
+
!Zt(n == null ? void 0 : n.chainId) && /* @__PURE__ */ B.jsxs("div", { className: "flex items-center justify-between mt-2 h-[18px]", children: [
|
|
19521
19521
|
/* @__PURE__ */ B.jsx("span", { className: "text-text-tertiary text-sm leading-4", children: l("withdraw.fee") }),
|
|
19522
19522
|
/* @__PURE__ */ B.jsxs("span", { className: "text-text-primary text-sm leading-4 font-medium", children: [
|
|
19523
19523
|
o,
|
|
@@ -19527,7 +19527,7 @@ const LP = ({
|
|
|
19527
19527
|
] }),
|
|
19528
19528
|
/* @__PURE__ */ B.jsxs("div", { className: "flex items-center justify-between mt-2 h-[18px]", children: [
|
|
19529
19529
|
/* @__PURE__ */ B.jsx("span", { className: "text-text-tertiary text-sm leading-4", children: l(
|
|
19530
|
-
|
|
19530
|
+
Zt(n == null ? void 0 : n.chainId) ? "withdraw.withdrawlAmount" : "withdraw.amountToReceive"
|
|
19531
19531
|
) }),
|
|
19532
19532
|
/* @__PURE__ */ B.jsxs("span", { className: "text-text-primary text-sm leading-4 font-medium", children: [
|
|
19533
19533
|
xt(d),
|
|
@@ -19746,7 +19746,7 @@ const HP = (e) => {
|
|
|
19746
19746
|
const z = R.combinedData[A.tokenAddress];
|
|
19747
19747
|
return ((Z = z == null ? void 0 : z.balance) == null ? void 0 : Z.formatted) || "0";
|
|
19748
19748
|
}, [A, R]), L = re(() => {
|
|
19749
|
-
const z = new
|
|
19749
|
+
const z = new Ve(F || "0"), Z = new Ve(u || "0"), H = Zt(b);
|
|
19750
19750
|
return !F || z.isZero() || !H && z.isLessThan(Z) ? {
|
|
19751
19751
|
text: T("withdraw.confirmWithdraw"),
|
|
19752
19752
|
disabled: !0
|
|
@@ -19761,13 +19761,13 @@ const HP = (e) => {
|
|
|
19761
19761
|
Ja(!0);
|
|
19762
19762
|
try {
|
|
19763
19763
|
if (f) {
|
|
19764
|
-
const
|
|
19765
|
-
amount: (
|
|
19764
|
+
const Z = {
|
|
19765
|
+
amount: new Ve(F || "0").toString(),
|
|
19766
19766
|
chainId: b,
|
|
19767
19767
|
tokenAddress: (A == null ? void 0 : A.tokenAddress) || "",
|
|
19768
19768
|
tokenSymbol: C
|
|
19769
19769
|
};
|
|
19770
|
-
t === "mpc" && !
|
|
19770
|
+
t === "mpc" && !Zt(b) && (Z.receiverAddress = g), f(Z);
|
|
19771
19771
|
}
|
|
19772
19772
|
} catch {
|
|
19773
19773
|
Ja(!1);
|
|
@@ -19775,7 +19775,6 @@ const HP = (e) => {
|
|
|
19775
19775
|
}, [
|
|
19776
19776
|
f,
|
|
19777
19777
|
F,
|
|
19778
|
-
u,
|
|
19779
19778
|
b,
|
|
19780
19779
|
A == null ? void 0 : A.tokenAddress,
|
|
19781
19780
|
C,
|
|
@@ -19942,11 +19941,11 @@ export {
|
|
|
19942
19941
|
Yr as T,
|
|
19943
19942
|
KP as W,
|
|
19944
19943
|
o5 as a,
|
|
19945
|
-
|
|
19944
|
+
_t as b,
|
|
19946
19945
|
Xs as c,
|
|
19947
19946
|
n2 as d,
|
|
19948
19947
|
Pn as e,
|
|
19949
|
-
|
|
19948
|
+
Dt as f,
|
|
19950
19949
|
Dc as g,
|
|
19951
19950
|
t$ as h,
|
|
19952
19951
|
qc as i,
|
|
@@ -19968,4 +19967,4 @@ export {
|
|
|
19968
19967
|
zP as y,
|
|
19969
19968
|
HP as z
|
|
19970
19969
|
};
|
|
19971
|
-
//# sourceMappingURL=index-
|
|
19970
|
+
//# sourceMappingURL=index-D1cRHogg.mjs.map
|