@edgex-web/components 0.2.0-beta.18 → 0.2.0-beta.19
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-BlKAu0JD.mjs → ccip-Cny8eIAP.mjs} +2 -2
- package/dist/{ccip-BlKAu0JD.mjs.map → ccip-Cny8eIAP.mjs.map} +1 -1
- package/dist/components/Deposit/src/components/mpc/index.d.ts.map +1 -1
- package/dist/{index-Bw9HFK0l.mjs → index-BBxsNXOK.mjs} +592 -585
- package/dist/index-BBxsNXOK.mjs.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-Bw9HFK0l.mjs.map +0 -1
|
@@ -2,7 +2,7 @@ var t1 = Object.defineProperty;
|
|
|
2
2
|
var n1 = (e, t, n) => t in e ? t1(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _r = (e, t, n) => n1(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as U from "react";
|
|
5
|
-
import Z, { createContext as De, useContext as Ee, useMemo as te, useCallback as X, forwardRef as Tc, createElement as ms, useRef as ce, useEffect as Pe, useState as oe, useLayoutEffect as ks, Fragment as
|
|
5
|
+
import Z, { createContext as De, useContext as Ee, useMemo as te, useCallback as X, forwardRef as Tc, createElement as ms, useRef as ce, useEffect as Pe, useState as oe, useLayoutEffect as ks, Fragment as Nt, isValidElement as Rc, cloneElement as rd, useId as Qn, useSyncExternalStore as r1, useImperativeHandle as od } from "react";
|
|
6
6
|
import * as eo from "react-dom";
|
|
7
7
|
import sd, { flushSync as bs, createPortal as id } from "react-dom";
|
|
8
8
|
function o1(e) {
|
|
@@ -79,7 +79,7 @@ function i1() {
|
|
|
79
79
|
// with.
|
|
80
80
|
k.$$typeof === g || k.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function N(k, G, Y) {
|
|
83
83
|
var re = k.displayName;
|
|
84
84
|
if (re)
|
|
85
85
|
return re;
|
|
@@ -89,7 +89,7 @@ function i1() {
|
|
|
89
89
|
function T(k) {
|
|
90
90
|
return k.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function O(k) {
|
|
93
93
|
if (k == null)
|
|
94
94
|
return null;
|
|
95
95
|
if (typeof k.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof k == "function")
|
|
@@ -119,14 +119,14 @@ function i1() {
|
|
|
119
119
|
var Y = k;
|
|
120
120
|
return T(Y._context) + ".Provider";
|
|
121
121
|
case a:
|
|
122
|
-
return
|
|
122
|
+
return N(k, k.render, "ForwardRef");
|
|
123
123
|
case f:
|
|
124
124
|
var re = k.displayName || null;
|
|
125
|
-
return re !== null ? re :
|
|
125
|
+
return re !== null ? re : O(k.type) || "Memo";
|
|
126
126
|
case p: {
|
|
127
127
|
var ge = k, we = ge._payload, de = ge._init;
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return O(de(we));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -265,18 +265,18 @@ function i1() {
|
|
|
265
265
|
if (Ve && re && typeof Ve.stack == "string") {
|
|
266
266
|
for (var fe = Ve.stack.split(`
|
|
267
267
|
`), Ue = re.stack.split(`
|
|
268
|
-
`), Re = fe.length - 1,
|
|
269
|
-
|
|
270
|
-
for (; Re >= 1 &&
|
|
271
|
-
if (fe[Re] !== Ue[
|
|
272
|
-
if (Re !== 1 ||
|
|
268
|
+
`), Re = fe.length - 1, Oe = Ue.length - 1; Re >= 1 && Oe >= 0 && fe[Re] !== Ue[Oe]; )
|
|
269
|
+
Oe--;
|
|
270
|
+
for (; Re >= 1 && Oe >= 0; Re--, Oe--)
|
|
271
|
+
if (fe[Re] !== Ue[Oe]) {
|
|
272
|
+
if (Re !== 1 || Oe !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (Re--,
|
|
274
|
+
if (Re--, Oe--, Oe < 0 || fe[Re] !== Ue[Oe]) {
|
|
275
275
|
var lt = `
|
|
276
276
|
` + fe[Re].replace(" at new ", " at ");
|
|
277
277
|
return k.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", k.displayName)), typeof k == "function" && ye.set(k, lt), lt;
|
|
278
278
|
}
|
|
279
|
-
while (Re >= 1 &&
|
|
279
|
+
while (Re >= 1 && Oe >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
@@ -461,8 +461,8 @@ function i1() {
|
|
|
461
461
|
de[we] === void 0 && (de[we] = Re[we]);
|
|
462
462
|
}
|
|
463
463
|
if (fe || Ue) {
|
|
464
|
-
var
|
|
465
|
-
fe && Um(de,
|
|
464
|
+
var Oe = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
|
|
465
|
+
fe && Um(de, Oe), Ue && zm(de, Oe);
|
|
466
466
|
}
|
|
467
467
|
return Hm(k, fe, Ue, ge, re, Hu.current, de);
|
|
468
468
|
}
|
|
@@ -483,7 +483,7 @@ function i1() {
|
|
|
483
483
|
function qu() {
|
|
484
484
|
{
|
|
485
485
|
if (xi.current) {
|
|
486
|
-
var k =
|
|
486
|
+
var k = O(xi.current.type);
|
|
487
487
|
if (k)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -518,7 +518,7 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
518
518
|
return;
|
|
519
519
|
Zu[Y] = !0;
|
|
520
520
|
var re = "";
|
|
521
|
-
k && k._owner && k._owner !== xi.current && (re = " It was passed a child from " +
|
|
521
|
+
k && k._owner && k._owner !== xi.current && (re = " It was passed a child from " + O(k._owner.type) + "."), sr(k), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Y, re), sr(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
function Ku(k, G) {
|
|
@@ -555,11 +555,11 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
557
|
if (Y) {
|
|
558
|
-
var re =
|
|
558
|
+
var re = O(G);
|
|
559
559
|
Bm(Y, k.props, "prop", re, k);
|
|
560
560
|
} else if (G.PropTypes !== void 0 && !Ei) {
|
|
561
561
|
Ei = !0;
|
|
562
|
-
var ge =
|
|
562
|
+
var ge = O(G);
|
|
563
563
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ge || "Unknown");
|
|
564
564
|
}
|
|
565
565
|
typeof G.getDefaultProps == "function" && !G.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -587,11 +587,11 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
587
587
|
var Ue = Vm();
|
|
588
588
|
Ue ? fe += Ue : fe += qu();
|
|
589
589
|
var Re;
|
|
590
|
-
k === null ? Re = "null" : vi(k) ? Re = "array" : k !== void 0 && k.$$typeof === t ? (Re = "<" + (
|
|
590
|
+
k === null ? Re = "null" : vi(k) ? Re = "array" : k !== void 0 && k.$$typeof === t ? (Re = "<" + (O(k.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Re = typeof k, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Re, fe);
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
return
|
|
592
|
+
var Oe = Wm(k, G, Y, ge, we);
|
|
593
|
+
if (Oe == null)
|
|
594
|
+
return Oe;
|
|
595
595
|
if (de) {
|
|
596
596
|
var lt = G.children;
|
|
597
597
|
if (lt !== void 0)
|
|
@@ -606,7 +606,7 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
606
606
|
Ku(lt, k);
|
|
607
607
|
}
|
|
608
608
|
if (Te.call(G, "key")) {
|
|
609
|
-
var Mn =
|
|
609
|
+
var Mn = O(k), Ve = Object.keys(G).filter(function(e1) {
|
|
610
610
|
return e1 !== "key";
|
|
611
611
|
}), Si = Ve.length > 0 ? "{key: someKey, " + Ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!Xu[Mn + Si]) {
|
|
@@ -619,7 +619,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
<%s key={someKey} {...props} />`, Si, Mn, Jm, Mn), Xu[Mn + Si] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return k === r ? Zm(
|
|
622
|
+
return k === r ? Zm(Oe) : qm(Oe), Oe;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
function Ym(k, G, Y) {
|
|
@@ -870,7 +870,9 @@ const a1 = {
|
|
|
870
870
|
arrivaltimeTooltip2: "Оценка времени основана на истории и дана только для справки. Задержки сети могут увеличить фактическое время поступления.",
|
|
871
871
|
arrivalEstimated: "≈ {{v}} минут",
|
|
872
872
|
availableDesc: "Максимальная сумма, которую вы можете пополнить. Если доступный баланс равен 0 или отрицательный, пополнение невозможно.",
|
|
873
|
-
noPrivateKeyWalletWarning:
|
|
873
|
+
noPrivateKeyWalletWarning: `Не используйте кошельки без приватных ключей для пополнения. Пополнение с такого кошелька может привести к безвозвратной потере средств.
|
|
874
|
+
|
|
875
|
+
Tangem не подключаем, это кошелек без приватного ключа`,
|
|
874
876
|
layerZeroDepositTip: "Система завершит ваше пополнение через LayerZero в зависимости от фактических условий депозита.",
|
|
875
877
|
layerZeroDepositTipExceedPool: "Поскольку сумма пополнения превышает пул, ваше пополнение будет выполнено через LayerZero.",
|
|
876
878
|
layerZeroDepositTipGte200k: "Поскольку сумма пополнения больше либо равна 200,000 USDT, ваше пополнение будет выполнено через LayerZero.",
|
|
@@ -1025,7 +1027,7 @@ function ud(e) {
|
|
|
1025
1027
|
suffix: ""
|
|
1026
1028
|
}, w = "0123456789abcdefghijklmnopqrstuvwxyz", S = !0;
|
|
1027
1029
|
function x(b, g) {
|
|
1028
|
-
var v,
|
|
1030
|
+
var v, N, T, O, I, y, A, $, P = this;
|
|
1029
1031
|
if (!(P instanceof x)) return new x(b, g);
|
|
1030
1032
|
if (g == null) {
|
|
1031
1033
|
if (b && b._isBigNumber === !0) {
|
|
@@ -1034,8 +1036,8 @@ function ud(e) {
|
|
|
1034
1036
|
}
|
|
1035
1037
|
if ((y = typeof b == "number") && b * 0 == 0) {
|
|
1036
1038
|
if (P.s = 1 / b < 0 ? (b = -b, -1) : 1, b === ~~b) {
|
|
1037
|
-
for (
|
|
1038
|
-
|
|
1039
|
+
for (O = 0, I = b; I >= 10; I /= 10, O++) ;
|
|
1040
|
+
O > f ? P.c = P.e = null : (P.e = O, P.c = [b]);
|
|
1039
1041
|
return;
|
|
1040
1042
|
}
|
|
1041
1043
|
$ = String(b);
|
|
@@ -1043,7 +1045,7 @@ function ud(e) {
|
|
|
1043
1045
|
if (!m1.test($ = String(b))) return r(P, $, y);
|
|
1044
1046
|
P.s = $.charCodeAt(0) == 45 ? ($ = $.slice(1), -1) : 1;
|
|
1045
1047
|
}
|
|
1046
|
-
(
|
|
1048
|
+
(O = $.indexOf(".")) > -1 && ($ = $.replace(".", "")), (I = $.search(/e/i)) > 0 ? (O < 0 && (O = I), O += +$.slice(I + 1), $ = $.substring(0, I)) : O < 0 && (O = $.length);
|
|
1047
1049
|
} else {
|
|
1048
1050
|
if (xe(g, 2, w.length, "Base"), g == 10 && S)
|
|
1049
1051
|
return P = new x(b), F(P, i + P.e + 1, c);
|
|
@@ -1053,32 +1055,32 @@ function ud(e) {
|
|
|
1053
1055
|
throw Error(nl + b);
|
|
1054
1056
|
} else
|
|
1055
1057
|
P.s = $.charCodeAt(0) === 45 ? ($ = $.slice(1), -1) : 1;
|
|
1056
|
-
for (v = w.slice(0, g),
|
|
1057
|
-
if (v.indexOf(
|
|
1058
|
-
if (
|
|
1059
|
-
if (I >
|
|
1060
|
-
|
|
1058
|
+
for (v = w.slice(0, g), O = I = 0, A = $.length; I < A; I++)
|
|
1059
|
+
if (v.indexOf(N = $.charAt(I)) < 0) {
|
|
1060
|
+
if (N == ".") {
|
|
1061
|
+
if (I > O) {
|
|
1062
|
+
O = A;
|
|
1061
1063
|
continue;
|
|
1062
1064
|
}
|
|
1063
1065
|
} else if (!T && ($ == $.toUpperCase() && ($ = $.toLowerCase()) || $ == $.toLowerCase() && ($ = $.toUpperCase()))) {
|
|
1064
|
-
T = !0, I = -1,
|
|
1066
|
+
T = !0, I = -1, O = 0;
|
|
1065
1067
|
continue;
|
|
1066
1068
|
}
|
|
1067
1069
|
return r(P, String(b), y, g);
|
|
1068
1070
|
}
|
|
1069
|
-
y = !1, $ = n($, g, 10, P.s), (
|
|
1071
|
+
y = !1, $ = n($, g, 10, P.s), (O = $.indexOf(".")) > -1 ? $ = $.replace(".", "") : O = $.length;
|
|
1070
1072
|
}
|
|
1071
1073
|
for (I = 0; $.charCodeAt(I) === 48; I++) ;
|
|
1072
1074
|
for (A = $.length; $.charCodeAt(--A) === 48; ) ;
|
|
1073
1075
|
if ($ = $.slice(I, ++A)) {
|
|
1074
1076
|
if (A -= I, y && x.DEBUG && A > 15 && (b > Ai || b !== ht(b)))
|
|
1075
1077
|
throw Error(nl + P.s * b);
|
|
1076
|
-
if ((
|
|
1078
|
+
if ((O = O - I - 1) > f)
|
|
1077
1079
|
P.c = P.e = null;
|
|
1078
|
-
else if (
|
|
1080
|
+
else if (O < l)
|
|
1079
1081
|
P.c = [P.e = 0];
|
|
1080
1082
|
else {
|
|
1081
|
-
if (P.e =
|
|
1083
|
+
if (P.e = O, P.c = [], I = (O + 1) % se, O < 0 && (I += se), I < A) {
|
|
1082
1084
|
for (I && P.c.push(+$.slice(0, I)), A -= se; I < A; )
|
|
1083
1085
|
P.c.push(+$.slice(I, I += se));
|
|
1084
1086
|
I = se - ($ = $.slice(I)).length;
|
|
@@ -1136,20 +1138,20 @@ function ud(e) {
|
|
|
1136
1138
|
}, x.isBigNumber = function(b) {
|
|
1137
1139
|
if (!b || b._isBigNumber !== !0) return !1;
|
|
1138
1140
|
if (!x.DEBUG) return !0;
|
|
1139
|
-
var g, v,
|
|
1140
|
-
e: if ({}.toString.call(
|
|
1141
|
-
if ((
|
|
1142
|
-
if (
|
|
1143
|
-
if (T === 0 &&
|
|
1141
|
+
var g, v, N = b.c, T = b.e, O = b.s;
|
|
1142
|
+
e: if ({}.toString.call(N) == "[object Array]") {
|
|
1143
|
+
if ((O === 1 || O === -1) && T >= -Ce && T <= Ce && T === ht(T)) {
|
|
1144
|
+
if (N[0] === 0) {
|
|
1145
|
+
if (T === 0 && N.length === 1) return !0;
|
|
1144
1146
|
break e;
|
|
1145
1147
|
}
|
|
1146
|
-
if (g = (T + 1) % se, g < 1 && (g += se), String(
|
|
1147
|
-
for (g = 0; g <
|
|
1148
|
-
if (v =
|
|
1148
|
+
if (g = (T + 1) % se, g < 1 && (g += se), String(N[0]).length == g) {
|
|
1149
|
+
for (g = 0; g < N.length; g++)
|
|
1150
|
+
if (v = N[g], v < 0 || v >= St || v !== ht(v)) break e;
|
|
1149
1151
|
if (v !== 0) return !0;
|
|
1150
1152
|
}
|
|
1151
1153
|
}
|
|
1152
|
-
} else if (
|
|
1154
|
+
} else if (N === null && T === null && (O === null || O === 1 || O === -1))
|
|
1153
1155
|
return !0;
|
|
1154
1156
|
throw Error(Ge + "Invalid BigNumber: " + b);
|
|
1155
1157
|
}, x.maximum = x.max = function() {
|
|
@@ -1163,15 +1165,15 @@ function ud(e) {
|
|
|
1163
1165
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
1164
1166
|
};
|
|
1165
1167
|
return function(v) {
|
|
1166
|
-
var
|
|
1168
|
+
var N, T, O, I, y, A = 0, $ = [], P = new x(s);
|
|
1167
1169
|
if (v == null ? v = i : xe(v, 0, Ce), I = $i(v / se), p)
|
|
1168
1170
|
if (crypto.getRandomValues) {
|
|
1169
|
-
for (
|
|
1170
|
-
y =
|
|
1171
|
+
for (N = crypto.getRandomValues(new Uint32Array(I *= 2)); A < I; )
|
|
1172
|
+
y = N[A] * 131072 + (N[A + 1] >>> 11), y >= 9e15 ? (T = crypto.getRandomValues(new Uint32Array(2)), N[A] = T[0], N[A + 1] = T[1]) : ($.push(y % 1e14), A += 2);
|
|
1171
1173
|
A = I / 2;
|
|
1172
1174
|
} else if (crypto.randomBytes) {
|
|
1173
|
-
for (
|
|
1174
|
-
y = (
|
|
1175
|
+
for (N = crypto.randomBytes(I *= 7); A < I; )
|
|
1176
|
+
y = (N[A] & 31) * 281474976710656 + N[A + 1] * 1099511627776 + N[A + 2] * 4294967296 + N[A + 3] * 16777216 + (N[A + 4] << 16) + (N[A + 5] << 8) + N[A + 6], y >= 9e15 ? crypto.randomBytes(7).copy(N, A) : ($.push(y % 1e14), A += 7);
|
|
1175
1177
|
A = I / 7;
|
|
1176
1178
|
} else
|
|
1177
1179
|
throw p = !1, Error(Ge + "crypto unavailable");
|
|
@@ -1180,37 +1182,37 @@ function ud(e) {
|
|
|
1180
1182
|
y = g(), y < 9e15 && ($[A++] = y % 1e14);
|
|
1181
1183
|
for (I = $[--A], v %= se, I && v && (y = Ti[se - v], $[A] = ht(I / y) * y); $[A] === 0; $.pop(), A--) ;
|
|
1182
1184
|
if (A < 0)
|
|
1183
|
-
$ = [
|
|
1185
|
+
$ = [O = 0];
|
|
1184
1186
|
else {
|
|
1185
|
-
for (
|
|
1187
|
+
for (O = -1; $[0] === 0; $.splice(0, 1), O -= se) ;
|
|
1186
1188
|
for (A = 1, y = $[0]; y >= 10; y /= 10, A++) ;
|
|
1187
|
-
A < se && (
|
|
1189
|
+
A < se && (O -= se - A);
|
|
1188
1190
|
}
|
|
1189
|
-
return P.e =
|
|
1191
|
+
return P.e = O, P.c = $, P;
|
|
1190
1192
|
};
|
|
1191
1193
|
}(), x.sum = function() {
|
|
1192
1194
|
for (var b = 1, g = arguments, v = new x(g[0]); b < g.length; ) v = v.plus(g[b++]);
|
|
1193
1195
|
return v;
|
|
1194
1196
|
}, n = /* @__PURE__ */ function() {
|
|
1195
1197
|
var b = "0123456789";
|
|
1196
|
-
function g(v,
|
|
1198
|
+
function g(v, N, T, O) {
|
|
1197
1199
|
for (var I, y = [0], A, $ = 0, P = v.length; $ < P; ) {
|
|
1198
|
-
for (A = y.length; A--; y[A] *=
|
|
1199
|
-
for (y[0] +=
|
|
1200
|
+
for (A = y.length; A--; y[A] *= N) ;
|
|
1201
|
+
for (y[0] += O.indexOf(v.charAt($++)), I = 0; I < y.length; I++)
|
|
1200
1202
|
y[I] > T - 1 && (y[I + 1] == null && (y[I + 1] = 0), y[I + 1] += y[I] / T | 0, y[I] %= T);
|
|
1201
1203
|
}
|
|
1202
1204
|
return y.reverse();
|
|
1203
1205
|
}
|
|
1204
|
-
return function(v,
|
|
1206
|
+
return function(v, N, T, O, I) {
|
|
1205
1207
|
var y, A, $, P, M, D, _, j, H = v.indexOf("."), K = i, V = c;
|
|
1206
|
-
for (H >= 0 && (P = h, h = 0, v = v.replace(".", ""), j = new x(
|
|
1208
|
+
for (H >= 0 && (P = h, h = 0, v = v.replace(".", ""), j = new x(N), D = j.pow(v.length - H), h = P, j.c = g(
|
|
1207
1209
|
Xt(ft(D.c), D.e, "0"),
|
|
1208
1210
|
10,
|
|
1209
1211
|
T,
|
|
1210
1212
|
b
|
|
1211
|
-
), j.e = j.c.length), _ = g(v,
|
|
1213
|
+
), j.e = j.c.length), _ = g(v, N, T, I ? (y = w, b) : (y = b, w)), $ = P = _.length; _[--P] == 0; _.pop()) ;
|
|
1212
1214
|
if (!_[0]) return y.charAt(0);
|
|
1213
|
-
if (H < 0 ? --$ : (D.c = _, D.e = $, D.s =
|
|
1215
|
+
if (H < 0 ? --$ : (D.c = _, D.e = $, D.s = O, D = t(D, j, K, V, T), _ = D.c, M = D.r, $ = D.e), A = $ + K + 1, H = _[A], P = T / 2, M = M || A < 0 || _[A + 1] != null, M = V < 4 ? (H != null || M) && (V == 0 || V == (D.s < 0 ? 3 : 2)) : H > P || H == P && (V == 4 || M || V == 6 && _[A - 1] & 1 || V == (D.s < 0 ? 8 : 7)), A < 1 || !_[0])
|
|
1214
1216
|
v = M ? Xt(y.charAt(1), -K, y.charAt(0)) : y.charAt(0);
|
|
1215
1217
|
else {
|
|
1216
1218
|
if (_.length = A, M)
|
|
@@ -1223,40 +1225,40 @@ function ud(e) {
|
|
|
1223
1225
|
return v;
|
|
1224
1226
|
};
|
|
1225
1227
|
}(), t = /* @__PURE__ */ function() {
|
|
1226
|
-
function b(
|
|
1227
|
-
var I, y, A, $, P = 0, M =
|
|
1228
|
-
for (
|
|
1229
|
-
A =
|
|
1230
|
-
return P && (
|
|
1228
|
+
function b(N, T, O) {
|
|
1229
|
+
var I, y, A, $, P = 0, M = N.length, D = T % yn, _ = T / yn | 0;
|
|
1230
|
+
for (N = N.slice(); M--; )
|
|
1231
|
+
A = N[M] % yn, $ = N[M] / yn | 0, I = _ * A + $ * D, y = D * A + I % yn * yn + P, P = (y / O | 0) + (I / yn | 0) + _ * $, N[M] = y % O;
|
|
1232
|
+
return P && (N = [P].concat(N)), N;
|
|
1231
1233
|
}
|
|
1232
|
-
function g(
|
|
1234
|
+
function g(N, T, O, I) {
|
|
1233
1235
|
var y, A;
|
|
1234
|
-
if (
|
|
1235
|
-
A =
|
|
1236
|
+
if (O != I)
|
|
1237
|
+
A = O > I ? 1 : -1;
|
|
1236
1238
|
else
|
|
1237
|
-
for (y = A = 0; y <
|
|
1238
|
-
if (
|
|
1239
|
-
A =
|
|
1239
|
+
for (y = A = 0; y < O; y++)
|
|
1240
|
+
if (N[y] != T[y]) {
|
|
1241
|
+
A = N[y] > T[y] ? 1 : -1;
|
|
1240
1242
|
break;
|
|
1241
1243
|
}
|
|
1242
1244
|
return A;
|
|
1243
1245
|
}
|
|
1244
|
-
function v(
|
|
1245
|
-
for (var y = 0;
|
|
1246
|
-
O
|
|
1247
|
-
for (; !
|
|
1246
|
+
function v(N, T, O, I) {
|
|
1247
|
+
for (var y = 0; O--; )
|
|
1248
|
+
N[O] -= y, y = N[O] < T[O] ? 1 : 0, N[O] = y * I + N[O] - T[O];
|
|
1249
|
+
for (; !N[0] && N.length > 1; N.splice(0, 1)) ;
|
|
1248
1250
|
}
|
|
1249
|
-
return function(
|
|
1250
|
-
var A, $, P, M, D, _, j, H, K, V, z, q, ee, ie, ye, ve, he, ae =
|
|
1251
|
+
return function(N, T, O, I, y) {
|
|
1252
|
+
var A, $, P, M, D, _, j, H, K, V, z, q, ee, ie, ye, ve, he, ae = N.s == T.s ? 1 : -1, me = N.c, ne = T.c;
|
|
1251
1253
|
if (!me || !me[0] || !ne || !ne[0])
|
|
1252
1254
|
return new x(
|
|
1253
1255
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
1254
|
-
!
|
|
1256
|
+
!N.s || !T.s || (me ? ne && me[0] == ne[0] : !ne) ? NaN : (
|
|
1255
1257
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
1256
1258
|
me && me[0] == 0 || !ne ? ae * 0 : ae / 0
|
|
1257
1259
|
)
|
|
1258
1260
|
);
|
|
1259
|
-
for (H = new x(ae), K = H.c = [], $ =
|
|
1261
|
+
for (H = new x(ae), K = H.c = [], $ = N.e - T.e, ae = O + $ + 1, y || (y = St, $ = mt(N.e / se) - mt(T.e / se), ae = ae / se | 0), P = 0; ne[P] == (me[P] || 0); P++) ;
|
|
1260
1262
|
if (ne[P] > (me[P] || 0) && $--, ae < 0)
|
|
1261
1263
|
K.push(1), M = !0;
|
|
1262
1264
|
else {
|
|
@@ -1279,42 +1281,42 @@ function ud(e) {
|
|
|
1279
1281
|
}
|
|
1280
1282
|
if (y == St) {
|
|
1281
1283
|
for (P = 1, ae = K[0]; ae >= 10; ae /= 10, P++) ;
|
|
1282
|
-
F(H,
|
|
1284
|
+
F(H, O + (H.e = P + $ * se - 1) + 1, I, M);
|
|
1283
1285
|
} else
|
|
1284
1286
|
H.e = $, H.r = +M;
|
|
1285
1287
|
return H;
|
|
1286
1288
|
};
|
|
1287
1289
|
}();
|
|
1288
|
-
function E(b, g, v,
|
|
1289
|
-
var T,
|
|
1290
|
+
function E(b, g, v, N) {
|
|
1291
|
+
var T, O, I, y, A;
|
|
1290
1292
|
if (v == null ? v = c : xe(v, 0, 8), !b.c) return b.toString();
|
|
1291
1293
|
if (T = b.c[0], I = b.e, g == null)
|
|
1292
|
-
A = ft(b.c), A =
|
|
1293
|
-
else if (b = F(new x(b), g, v),
|
|
1294
|
+
A = ft(b.c), A = N == 1 || N == 2 && (I <= a || I >= u) ? Xo(A, I) : Xt(A, I, "0");
|
|
1295
|
+
else if (b = F(new x(b), g, v), O = b.e, A = ft(b.c), y = A.length, N == 1 || N == 2 && (g <= O || O <= a)) {
|
|
1294
1296
|
for (; y < g; A += "0", y++) ;
|
|
1295
|
-
A = Xo(A,
|
|
1296
|
-
} else if (g -= I + (
|
|
1297
|
+
A = Xo(A, O);
|
|
1298
|
+
} else if (g -= I + (N === 2 && O > I), A = Xt(A, O, "0"), O + 1 > y) {
|
|
1297
1299
|
if (--g > 0) for (A += "."; g--; A += "0") ;
|
|
1298
|
-
} else if (g +=
|
|
1299
|
-
for (
|
|
1300
|
+
} else if (g += O - y, g > 0)
|
|
1301
|
+
for (O + 1 == y && (A += "."); g--; A += "0") ;
|
|
1300
1302
|
return b.s < 0 && T ? "-" + A : A;
|
|
1301
1303
|
}
|
|
1302
1304
|
function R(b, g) {
|
|
1303
|
-
for (var v,
|
|
1304
|
-
|
|
1305
|
-
return
|
|
1305
|
+
for (var v, N, T = 1, O = new x(b[0]); T < b.length; T++)
|
|
1306
|
+
N = new x(b[T]), (!N.s || (v = Fn(O, N)) === g || v === 0 && O.s === g) && (O = N);
|
|
1307
|
+
return O;
|
|
1306
1308
|
}
|
|
1307
1309
|
function B(b, g, v) {
|
|
1308
|
-
for (var
|
|
1309
|
-
for (T = g[0]; T >= 10; T /= 10,
|
|
1310
|
-
return (v =
|
|
1310
|
+
for (var N = 1, T = g.length; !g[--T]; g.pop()) ;
|
|
1311
|
+
for (T = g[0]; T >= 10; T /= 10, N++) ;
|
|
1312
|
+
return (v = N + v * se - 1) > f ? b.c = b.e = null : v < l ? b.c = [b.e = 0] : (b.e = v, b.c = g), b;
|
|
1311
1313
|
}
|
|
1312
1314
|
r = /* @__PURE__ */ function() {
|
|
1313
|
-
var b = /^(-?)0([xbo])(?=\w[\w.]*$)/i, g = /^([^.]+)\.$/, v = /^\.([^.]+)$/,
|
|
1314
|
-
return function(
|
|
1315
|
+
var b = /^(-?)0([xbo])(?=\w[\w.]*$)/i, g = /^([^.]+)\.$/, v = /^\.([^.]+)$/, N = /^-?(Infinity|NaN)$/, T = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
1316
|
+
return function(O, I, y, A) {
|
|
1315
1317
|
var $, P = y ? I : I.replace(T, "");
|
|
1316
|
-
if (
|
|
1317
|
-
|
|
1318
|
+
if (N.test(P))
|
|
1319
|
+
O.s = isNaN(P) ? null : P < 0 ? -1 : 1;
|
|
1318
1320
|
else {
|
|
1319
1321
|
if (!y && (P = P.replace(b, function(M, D, _) {
|
|
1320
1322
|
return $ = (_ = _.toLowerCase()) == "x" ? 16 : _ == "b" ? 2 : 8, !A || A == $ ? D : M;
|
|
@@ -1322,46 +1324,46 @@ function ud(e) {
|
|
|
1322
1324
|
return new x(P, $);
|
|
1323
1325
|
if (x.DEBUG)
|
|
1324
1326
|
throw Error(Ge + "Not a" + (A ? " base " + A : "") + " number: " + I);
|
|
1325
|
-
|
|
1327
|
+
O.s = null;
|
|
1326
1328
|
}
|
|
1327
|
-
|
|
1329
|
+
O.c = O.e = null;
|
|
1328
1330
|
};
|
|
1329
1331
|
}();
|
|
1330
|
-
function F(b, g, v,
|
|
1331
|
-
var T,
|
|
1332
|
+
function F(b, g, v, N) {
|
|
1333
|
+
var T, O, I, y, A, $, P, M = b.c, D = Ti;
|
|
1332
1334
|
if (M) {
|
|
1333
1335
|
e: {
|
|
1334
1336
|
for (T = 1, y = M[0]; y >= 10; y /= 10, T++) ;
|
|
1335
|
-
if (
|
|
1336
|
-
|
|
1337
|
-
else if ($ = $i((
|
|
1338
|
-
if (
|
|
1337
|
+
if (O = g - T, O < 0)
|
|
1338
|
+
O += se, I = g, A = M[$ = 0], P = ht(A / D[T - I - 1] % 10);
|
|
1339
|
+
else if ($ = $i((O + 1) / se), $ >= M.length)
|
|
1340
|
+
if (N) {
|
|
1339
1341
|
for (; M.length <= $; M.push(0)) ;
|
|
1340
|
-
A = P = 0, T = 1,
|
|
1342
|
+
A = P = 0, T = 1, O %= se, I = O - se + 1;
|
|
1341
1343
|
} else
|
|
1342
1344
|
break e;
|
|
1343
1345
|
else {
|
|
1344
1346
|
for (A = y = M[$], T = 1; y >= 10; y /= 10, T++) ;
|
|
1345
|
-
|
|
1347
|
+
O %= se, I = O - se + T, P = I < 0 ? 0 : ht(A / D[T - I - 1] % 10);
|
|
1346
1348
|
}
|
|
1347
|
-
if (
|
|
1349
|
+
if (N = N || g < 0 || // Are there any non-zero digits after the rounding digit?
|
|
1348
1350
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
1349
1351
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
1350
|
-
M[$ + 1] != null || (I < 0 ? A : A % D[T - I - 1]),
|
|
1351
|
-
(
|
|
1352
|
-
return M.length = 0,
|
|
1353
|
-
if (
|
|
1352
|
+
M[$ + 1] != null || (I < 0 ? A : A % D[T - I - 1]), N = v < 4 ? (P || N) && (v == 0 || v == (b.s < 0 ? 3 : 2)) : P > 5 || P == 5 && (v == 4 || N || v == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
1353
|
+
(O > 0 ? I > 0 ? A / D[T - I] : 0 : M[$ - 1]) % 10 & 1 || v == (b.s < 0 ? 8 : 7)), g < 1 || !M[0])
|
|
1354
|
+
return M.length = 0, N ? (g -= b.e + 1, M[0] = D[(se - g % se) % se], b.e = -g || 0) : M[0] = b.e = 0, b;
|
|
1355
|
+
if (O == 0 ? (M.length = $, y = 1, $--) : (M.length = $ + 1, y = D[se - O], M[$] = I > 0 ? ht(A / D[T - I] % D[I]) * y : 0), N)
|
|
1354
1356
|
for (; ; )
|
|
1355
1357
|
if ($ == 0) {
|
|
1356
|
-
for (
|
|
1358
|
+
for (O = 1, I = M[0]; I >= 10; I /= 10, O++) ;
|
|
1357
1359
|
for (I = M[0] += y, y = 1; I >= 10; I /= 10, y++) ;
|
|
1358
|
-
|
|
1360
|
+
O != y && (b.e++, M[0] == St && (M[0] = 1));
|
|
1359
1361
|
break;
|
|
1360
1362
|
} else {
|
|
1361
1363
|
if (M[$] += y, M[$] != St) break;
|
|
1362
1364
|
M[$--] = 0, y = 1;
|
|
1363
1365
|
}
|
|
1364
|
-
for (
|
|
1366
|
+
for (O = M.length; M[--O] === 0; M.pop()) ;
|
|
1365
1367
|
}
|
|
1366
1368
|
b.e > f ? b.c = b.e = null : b.e < l && (b.c = [b.e = 0]);
|
|
1367
1369
|
}
|
|
@@ -1377,34 +1379,34 @@ function ud(e) {
|
|
|
1377
1379
|
}, o.comparedTo = function(b, g) {
|
|
1378
1380
|
return Fn(this, new x(b, g));
|
|
1379
1381
|
}, o.decimalPlaces = o.dp = function(b, g) {
|
|
1380
|
-
var v,
|
|
1382
|
+
var v, N, T, O = this;
|
|
1381
1383
|
if (b != null)
|
|
1382
|
-
return xe(b, 0, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(
|
|
1383
|
-
if (!(v =
|
|
1384
|
-
if (
|
|
1385
|
-
return
|
|
1384
|
+
return xe(b, 0, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(O), b + O.e + 1, g);
|
|
1385
|
+
if (!(v = O.c)) return null;
|
|
1386
|
+
if (N = ((T = v.length - 1) - mt(this.e / se)) * se, T = v[T]) for (; T % 10 == 0; T /= 10, N--) ;
|
|
1387
|
+
return N < 0 && (N = 0), N;
|
|
1386
1388
|
}, o.dividedBy = o.div = function(b, g) {
|
|
1387
1389
|
return t(this, new x(b, g), i, c);
|
|
1388
1390
|
}, o.dividedToIntegerBy = o.idiv = function(b, g) {
|
|
1389
1391
|
return t(this, new x(b, g), 0, 1);
|
|
1390
1392
|
}, o.exponentiatedBy = o.pow = function(b, g) {
|
|
1391
|
-
var v,
|
|
1393
|
+
var v, N, T, O, I, y, A, $, P, M = this;
|
|
1392
1394
|
if (b = new x(b), b.c && !b.isInteger())
|
|
1393
1395
|
throw Error(Ge + "Exponent not an integer: " + L(b));
|
|
1394
1396
|
if (g != null && (g = new x(g)), y = b.e > 14, !M.c || !M.c[0] || M.c[0] == 1 && !M.e && M.c.length == 1 || !b.c || !b.c[0])
|
|
1395
1397
|
return P = new x(Math.pow(+L(M), y ? b.s * (2 - Ko(b)) : +L(b))), g ? P.mod(g) : P;
|
|
1396
1398
|
if (A = b.s < 0, g) {
|
|
1397
1399
|
if (g.c ? !g.c[0] : !g.s) return new x(NaN);
|
|
1398
|
-
|
|
1400
|
+
N = !A && M.isInteger() && g.isInteger(), N && (M = M.mod(g));
|
|
1399
1401
|
} else {
|
|
1400
1402
|
if (b.e > 9 && (M.e > 0 || M.e < -1 || (M.e == 0 ? M.c[0] > 1 || y && M.c[1] >= 24e7 : M.c[0] < 8e13 || y && M.c[0] <= 9999975e7)))
|
|
1401
|
-
return
|
|
1402
|
-
h && (
|
|
1403
|
+
return O = M.s < 0 && Ko(b) ? -0 : 0, M.e > -1 && (O = 1 / O), new x(A ? 1 / O : O);
|
|
1404
|
+
h && (O = $i(h / se + 2));
|
|
1403
1405
|
}
|
|
1404
1406
|
for (y ? (v = new x(0.5), A && (b.s = 1), $ = Ko(b)) : (T = Math.abs(+L(b)), $ = T % 2), P = new x(s); ; ) {
|
|
1405
1407
|
if ($) {
|
|
1406
1408
|
if (P = P.times(M), !P.c) break;
|
|
1407
|
-
|
|
1409
|
+
O ? P.c.length > O && (P.c.length = O) : N && (P = P.mod(g));
|
|
1408
1410
|
}
|
|
1409
1411
|
if (T) {
|
|
1410
1412
|
if (T = ht(T / 2), T === 0) break;
|
|
@@ -1415,9 +1417,9 @@ function ud(e) {
|
|
|
1415
1417
|
if (T = +L(b), T === 0) break;
|
|
1416
1418
|
$ = T % 2;
|
|
1417
1419
|
}
|
|
1418
|
-
M = M.times(M),
|
|
1420
|
+
M = M.times(M), O ? M.c && M.c.length > O && (M.c.length = O) : N && (M = M.mod(g));
|
|
1419
1421
|
}
|
|
1420
|
-
return
|
|
1422
|
+
return N ? P : (A && (P = s.div(P)), g ? P.mod(g) : O ? F(P, h, c, I) : P);
|
|
1421
1423
|
}, o.integerValue = function(b) {
|
|
1422
1424
|
var g = new x(this);
|
|
1423
1425
|
return b == null ? b = c : xe(b, 0, 8), F(g, g.e + 1, b);
|
|
@@ -1444,7 +1446,7 @@ function ud(e) {
|
|
|
1444
1446
|
}, o.isZero = function() {
|
|
1445
1447
|
return !!this.c && this.c[0] == 0;
|
|
1446
1448
|
}, o.minus = function(b, g) {
|
|
1447
|
-
var v,
|
|
1449
|
+
var v, N, T, O, I = this, y = I.s;
|
|
1448
1450
|
if (b = new x(b, g), g = b.s, !y || !g) return new x(NaN);
|
|
1449
1451
|
if (y != g)
|
|
1450
1452
|
return b.s = -g, I.plus(b);
|
|
@@ -1458,85 +1460,85 @@ function ud(e) {
|
|
|
1458
1460
|
));
|
|
1459
1461
|
}
|
|
1460
1462
|
if (A = mt(A), $ = mt($), P = P.slice(), y = A - $) {
|
|
1461
|
-
for ((
|
|
1463
|
+
for ((O = y < 0) ? (y = -y, T = P) : ($ = A, T = M), T.reverse(), g = y; g--; T.push(0)) ;
|
|
1462
1464
|
T.reverse();
|
|
1463
1465
|
} else
|
|
1464
|
-
for (
|
|
1466
|
+
for (N = (O = (y = P.length) < (g = M.length)) ? y : g, y = g = 0; g < N; g++)
|
|
1465
1467
|
if (P[g] != M[g]) {
|
|
1466
|
-
|
|
1468
|
+
O = P[g] < M[g];
|
|
1467
1469
|
break;
|
|
1468
1470
|
}
|
|
1469
|
-
if (
|
|
1470
|
-
for (g = St - 1;
|
|
1471
|
-
if (P[--
|
|
1472
|
-
for (v =
|
|
1473
|
-
--P[v], P[
|
|
1471
|
+
if (O && (T = P, P = M, M = T, b.s = -b.s), g = (N = M.length) - (v = P.length), g > 0) for (; g--; P[v++] = 0) ;
|
|
1472
|
+
for (g = St - 1; N > y; ) {
|
|
1473
|
+
if (P[--N] < M[N]) {
|
|
1474
|
+
for (v = N; v && !P[--v]; P[v] = g) ;
|
|
1475
|
+
--P[v], P[N] += St;
|
|
1474
1476
|
}
|
|
1475
|
-
P[
|
|
1477
|
+
P[N] -= M[N];
|
|
1476
1478
|
}
|
|
1477
1479
|
for (; P[0] == 0; P.splice(0, 1), --$) ;
|
|
1478
1480
|
return P[0] ? B(b, P, $) : (b.s = c == 3 ? -1 : 1, b.c = [b.e = 0], b);
|
|
1479
1481
|
}, o.modulo = o.mod = function(b, g) {
|
|
1480
|
-
var v,
|
|
1481
|
-
return b = new x(b, g), !T.c || !b.s || b.c && !b.c[0] ? new x(NaN) : !b.c || T.c && !T.c[0] ? new x(T) : (d == 9 ? (
|
|
1482
|
+
var v, N, T = this;
|
|
1483
|
+
return b = new x(b, g), !T.c || !b.s || b.c && !b.c[0] ? new x(NaN) : !b.c || T.c && !T.c[0] ? new x(T) : (d == 9 ? (N = b.s, b.s = 1, v = t(T, b, 0, 3), b.s = N, v.s *= N) : v = t(T, b, 0, d), b = T.minus(v.times(b)), !b.c[0] && d == 1 && (b.s = T.s), b);
|
|
1482
1484
|
}, o.multipliedBy = o.times = function(b, g) {
|
|
1483
|
-
var v,
|
|
1485
|
+
var v, N, T, O, I, y, A, $, P, M, D, _, j, H, K, V = this, z = V.c, q = (b = new x(b, g)).c;
|
|
1484
1486
|
if (!z || !q || !z[0] || !q[0])
|
|
1485
1487
|
return !V.s || !b.s || z && !z[0] && !q || q && !q[0] && !z ? b.c = b.e = b.s = null : (b.s *= V.s, !z || !q ? b.c = b.e = null : (b.c = [0], b.e = 0)), b;
|
|
1486
|
-
for (
|
|
1488
|
+
for (N = mt(V.e / se) + mt(b.e / se), b.s *= V.s, A = z.length, M = q.length, A < M && (j = z, z = q, q = j, T = A, A = M, M = T), T = A + M, j = []; T--; j.push(0)) ;
|
|
1487
1489
|
for (H = St, K = yn, T = M; --T >= 0; ) {
|
|
1488
|
-
for (v = 0, D = q[T] % K, _ = q[T] / K | 0, I = A,
|
|
1489
|
-
$ = z[--I] % K, P = z[I] / K | 0, y = _ * $ + P * D, $ = D * $ + y % K * K + j[
|
|
1490
|
-
j[
|
|
1490
|
+
for (v = 0, D = q[T] % K, _ = q[T] / K | 0, I = A, O = T + I; O > T; )
|
|
1491
|
+
$ = z[--I] % K, P = z[I] / K | 0, y = _ * $ + P * D, $ = D * $ + y % K * K + j[O] + v, v = ($ / H | 0) + (y / K | 0) + _ * P, j[O--] = $ % H;
|
|
1492
|
+
j[O] = v;
|
|
1491
1493
|
}
|
|
1492
|
-
return v ? ++
|
|
1494
|
+
return v ? ++N : j.splice(0, 1), B(b, j, N);
|
|
1493
1495
|
}, o.negated = function() {
|
|
1494
1496
|
var b = new x(this);
|
|
1495
1497
|
return b.s = -b.s || null, b;
|
|
1496
1498
|
}, o.plus = function(b, g) {
|
|
1497
|
-
var v,
|
|
1499
|
+
var v, N = this, T = N.s;
|
|
1498
1500
|
if (b = new x(b, g), g = b.s, !T || !g) return new x(NaN);
|
|
1499
1501
|
if (T != g)
|
|
1500
|
-
return b.s = -g,
|
|
1501
|
-
var
|
|
1502
|
-
if (!
|
|
1502
|
+
return b.s = -g, N.minus(b);
|
|
1503
|
+
var O = N.e / se, I = b.e / se, y = N.c, A = b.c;
|
|
1504
|
+
if (!O || !I) {
|
|
1503
1505
|
if (!y || !A) return new x(T / 0);
|
|
1504
|
-
if (!y[0] || !A[0]) return A[0] ? b : new x(y[0] ?
|
|
1506
|
+
if (!y[0] || !A[0]) return A[0] ? b : new x(y[0] ? N : T * 0);
|
|
1505
1507
|
}
|
|
1506
|
-
if (
|
|
1507
|
-
for (T > 0 ? (I =
|
|
1508
|
+
if (O = mt(O), I = mt(I), y = y.slice(), T = O - I) {
|
|
1509
|
+
for (T > 0 ? (I = O, v = A) : (T = -T, v = y), v.reverse(); T--; v.push(0)) ;
|
|
1508
1510
|
v.reverse();
|
|
1509
1511
|
}
|
|
1510
1512
|
for (T = y.length, g = A.length, T - g < 0 && (v = A, A = y, y = v, g = T), T = 0; g; )
|
|
1511
1513
|
T = (y[--g] = y[g] + A[g] + T) / St | 0, y[g] = St === y[g] ? 0 : y[g] % St;
|
|
1512
1514
|
return T && (y = [T].concat(y), ++I), B(b, y, I);
|
|
1513
1515
|
}, o.precision = o.sd = function(b, g) {
|
|
1514
|
-
var v,
|
|
1516
|
+
var v, N, T, O = this;
|
|
1515
1517
|
if (b != null && b !== !!b)
|
|
1516
|
-
return xe(b, 1, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(
|
|
1517
|
-
if (!(v =
|
|
1518
|
-
if (T = v.length - 1,
|
|
1519
|
-
for (; T % 10 == 0; T /= 10,
|
|
1520
|
-
for (T = v[0]; T >= 10; T /= 10,
|
|
1518
|
+
return xe(b, 1, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(O), b, g);
|
|
1519
|
+
if (!(v = O.c)) return null;
|
|
1520
|
+
if (T = v.length - 1, N = T * se + 1, T = v[T]) {
|
|
1521
|
+
for (; T % 10 == 0; T /= 10, N--) ;
|
|
1522
|
+
for (T = v[0]; T >= 10; T /= 10, N++) ;
|
|
1521
1523
|
}
|
|
1522
|
-
return b &&
|
|
1524
|
+
return b && O.e + 1 > N && (N = O.e + 1), N;
|
|
1523
1525
|
}, o.shiftedBy = function(b) {
|
|
1524
1526
|
return xe(b, -Ai, Ai), this.times("1e" + b);
|
|
1525
1527
|
}, o.squareRoot = o.sqrt = function() {
|
|
1526
|
-
var b, g, v,
|
|
1528
|
+
var b, g, v, N, T, O = this, I = O.c, y = O.s, A = O.e, $ = i + 4, P = new x("0.5");
|
|
1527
1529
|
if (y !== 1 || !I || !I[0])
|
|
1528
|
-
return new x(!y || y < 0 && (!I || I[0]) ? NaN : I ?
|
|
1529
|
-
if (y = Math.sqrt(+L(
|
|
1530
|
+
return new x(!y || y < 0 && (!I || I[0]) ? NaN : I ? O : 1 / 0);
|
|
1531
|
+
if (y = Math.sqrt(+L(O)), y == 0 || y == 1 / 0 ? (g = ft(I), (g.length + A) % 2 == 0 && (g += "0"), y = Math.sqrt(+g), A = mt((A + 1) / 2) - (A < 0 || A % 2), y == 1 / 0 ? g = "5e" + A : (g = y.toExponential(), g = g.slice(0, g.indexOf("e") + 1) + A), v = new x(g)) : v = new x(y + ""), v.c[0]) {
|
|
1530
1532
|
for (A = v.e, y = A + $, y < 3 && (y = 0); ; )
|
|
1531
|
-
if (T = v, v = P.times(T.plus(t(
|
|
1532
|
-
if (v.e < A && --y, g = g.slice(y - 3, y + 1), g == "9999" || !
|
|
1533
|
-
if (!
|
|
1533
|
+
if (T = v, v = P.times(T.plus(t(O, T, $, 1))), ft(T.c).slice(0, y) === (g = ft(v.c)).slice(0, y))
|
|
1534
|
+
if (v.e < A && --y, g = g.slice(y - 3, y + 1), g == "9999" || !N && g == "4999") {
|
|
1535
|
+
if (!N && (F(T, T.e + i + 2, 0), T.times(T).eq(O))) {
|
|
1534
1536
|
v = T;
|
|
1535
1537
|
break;
|
|
1536
1538
|
}
|
|
1537
|
-
$ += 4, y += 4,
|
|
1539
|
+
$ += 4, y += 4, N = 1;
|
|
1538
1540
|
} else {
|
|
1539
|
-
(!+g || !+g.slice(1) && g.charAt(0) == "5") && (F(v, v.e + i + 2, 1), b = !v.times(v).eq(
|
|
1541
|
+
(!+g || !+g.slice(1) && g.charAt(0) == "5") && (F(v, v.e + i + 2, 1), b = !v.times(v).eq(O));
|
|
1540
1542
|
break;
|
|
1541
1543
|
}
|
|
1542
1544
|
}
|
|
@@ -1546,40 +1548,40 @@ function ud(e) {
|
|
|
1546
1548
|
}, o.toFixed = function(b, g) {
|
|
1547
1549
|
return b != null && (xe(b, 0, Ce), b = b + this.e + 1), E(this, b, g);
|
|
1548
1550
|
}, o.toFormat = function(b, g, v) {
|
|
1549
|
-
var
|
|
1551
|
+
var N, T = this;
|
|
1550
1552
|
if (v == null)
|
|
1551
1553
|
b != null && g && typeof g == "object" ? (v = g, g = null) : b && typeof b == "object" ? (v = b, b = g = null) : v = m;
|
|
1552
1554
|
else if (typeof v != "object")
|
|
1553
1555
|
throw Error(Ge + "Argument not an object: " + v);
|
|
1554
|
-
if (
|
|
1555
|
-
var
|
|
1556
|
-
if (A && (
|
|
1557
|
-
for (
|
|
1558
|
-
A > 0 && (P += $ + _.slice(
|
|
1556
|
+
if (N = T.toFixed(b, g), T.c) {
|
|
1557
|
+
var O, I = N.split("."), y = +v.groupSize, A = +v.secondaryGroupSize, $ = v.groupSeparator || "", P = I[0], M = I[1], D = T.s < 0, _ = D ? P.slice(1) : P, j = _.length;
|
|
1558
|
+
if (A && (O = y, y = A, A = O, j -= O), y > 0 && j > 0) {
|
|
1559
|
+
for (O = j % y || y, P = _.substr(0, O); O < j; O += y) P += $ + _.substr(O, y);
|
|
1560
|
+
A > 0 && (P += $ + _.slice(O)), D && (P = "-" + P);
|
|
1559
1561
|
}
|
|
1560
|
-
|
|
1562
|
+
N = M ? P + (v.decimalSeparator || "") + ((A = +v.fractionGroupSize) ? M.replace(
|
|
1561
1563
|
new RegExp("\\d{" + A + "}\\B", "g"),
|
|
1562
1564
|
"$&" + (v.fractionGroupSeparator || "")
|
|
1563
1565
|
) : M) : P;
|
|
1564
1566
|
}
|
|
1565
|
-
return (v.prefix || "") +
|
|
1567
|
+
return (v.prefix || "") + N + (v.suffix || "");
|
|
1566
1568
|
}, o.toFraction = function(b) {
|
|
1567
|
-
var g, v,
|
|
1569
|
+
var g, v, N, T, O, I, y, A, $, P, M, D, _ = this, j = _.c;
|
|
1568
1570
|
if (b != null && (y = new x(b), !y.isInteger() && (y.c || y.s !== 1) || y.lt(s)))
|
|
1569
1571
|
throw Error(Ge + "Argument " + (y.isInteger() ? "out of range: " : "not an integer: ") + L(y));
|
|
1570
1572
|
if (!j) return new x(_);
|
|
1571
|
-
for (g = new x(s), $ = v = new x(s),
|
|
1572
|
-
v =
|
|
1573
|
-
return T = t(b.minus(v),
|
|
1574
|
-
t(A, v,
|
|
1575
|
-
) < 1 ? [$,
|
|
1573
|
+
for (g = new x(s), $ = v = new x(s), N = A = new x(s), D = ft(j), O = g.e = D.length - _.e - 1, g.c[0] = Ti[(I = O % se) < 0 ? se + I : I], b = !b || y.comparedTo(g) > 0 ? O > 0 ? g : $ : y, I = f, f = 1 / 0, y = new x(D), A.c[0] = 0; P = t(y, g, 0, 1), T = v.plus(P.times(N)), T.comparedTo(b) != 1; )
|
|
1574
|
+
v = N, N = T, $ = A.plus(P.times(T = $)), A = T, g = y.minus(P.times(T = g)), y = T;
|
|
1575
|
+
return T = t(b.minus(v), N, 0, 1), A = A.plus(T.times($)), v = v.plus(T.times(N)), A.s = $.s = _.s, O = O * 2, M = t($, N, O, c).minus(_).abs().comparedTo(
|
|
1576
|
+
t(A, v, O, c).minus(_).abs()
|
|
1577
|
+
) < 1 ? [$, N] : [A, v], f = I, M;
|
|
1576
1578
|
}, o.toNumber = function() {
|
|
1577
1579
|
return +L(this);
|
|
1578
1580
|
}, o.toPrecision = function(b, g) {
|
|
1579
1581
|
return b != null && xe(b, 1, Ce), E(this, b, g, 2);
|
|
1580
1582
|
}, o.toString = function(b) {
|
|
1581
|
-
var g, v = this,
|
|
1582
|
-
return T === null ?
|
|
1583
|
+
var g, v = this, N = v.s, T = v.e;
|
|
1584
|
+
return T === null ? N ? (g = "Infinity", N < 0 && (g = "-" + g)) : g = "NaN" : (b == null ? g = T <= a || T >= u ? Xo(ft(v.c), T) : Xt(ft(v.c), T, "0") : b === 10 && S ? (v = F(new x(v), i + T + 1, c), g = Xt(ft(v.c), v.e, "0")) : (xe(b, 2, w.length, "Base"), g = n(Xt(ft(v.c), T, "0"), 10, b, N, !0)), N < 0 && v.c[0] && (g = "-" + g)), g;
|
|
1583
1585
|
}, o.valueOf = o.toJSON = function() {
|
|
1584
1586
|
return L(this);
|
|
1585
1587
|
}, o._isBigNumber = !0, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null && x.set(e), x;
|
|
@@ -1817,7 +1819,7 @@ function T1(e) {
|
|
|
1817
1819
|
return hn(yd, e);
|
|
1818
1820
|
}
|
|
1819
1821
|
const R1 = /^receive\(\) external payable$/;
|
|
1820
|
-
function
|
|
1822
|
+
function N1(e) {
|
|
1821
1823
|
return R1.test(e);
|
|
1822
1824
|
}
|
|
1823
1825
|
const ol = /* @__PURE__ */ new Set([
|
|
@@ -1825,7 +1827,7 @@ const ol = /* @__PURE__ */ new Set([
|
|
|
1825
1827
|
"indexed",
|
|
1826
1828
|
"storage",
|
|
1827
1829
|
"calldata"
|
|
1828
|
-
]),
|
|
1830
|
+
]), O1 = /* @__PURE__ */ new Set(["indexed"]), ya = /* @__PURE__ */ new Set([
|
|
1829
1831
|
"calldata",
|
|
1830
1832
|
"memory",
|
|
1831
1833
|
"storage"
|
|
@@ -2095,7 +2097,7 @@ function wa(e, t = {}) {
|
|
|
2095
2097
|
return Z1(e, t);
|
|
2096
2098
|
if (A1(e))
|
|
2097
2099
|
return Y1(e);
|
|
2098
|
-
if (
|
|
2100
|
+
if (N1(e))
|
|
2099
2101
|
return {
|
|
2100
2102
|
type: "receive",
|
|
2101
2103
|
stateMutability: "payable"
|
|
@@ -2138,7 +2140,7 @@ function G1(e, t = {}) {
|
|
|
2138
2140
|
const r = rt(n.parameters), o = [], s = r.length;
|
|
2139
2141
|
for (let i = 0; i < s; i++)
|
|
2140
2142
|
o.push(un(r[i], {
|
|
2141
|
-
modifiers:
|
|
2143
|
+
modifiers: O1,
|
|
2142
2144
|
structs: t,
|
|
2143
2145
|
type: "event"
|
|
2144
2146
|
}));
|
|
@@ -2255,7 +2257,7 @@ function eb(e) {
|
|
|
2255
2257
|
function tb(e, t) {
|
|
2256
2258
|
return t || e === "bytes" || e === "string" || e === "tuple";
|
|
2257
2259
|
}
|
|
2258
|
-
function
|
|
2260
|
+
function Nc(e) {
|
|
2259
2261
|
const t = {}, n = e.length;
|
|
2260
2262
|
for (let i = 0; i < n; i++) {
|
|
2261
2263
|
const c = e[i];
|
|
@@ -2314,7 +2316,7 @@ function vd(e, t, n = /* @__PURE__ */ new Set()) {
|
|
|
2314
2316
|
return r;
|
|
2315
2317
|
}
|
|
2316
2318
|
function xd(e) {
|
|
2317
|
-
const t =
|
|
2319
|
+
const t = Nc(e), n = [], r = e.length;
|
|
2318
2320
|
for (let o = 0; o < r; o++) {
|
|
2319
2321
|
const s = e[o];
|
|
2320
2322
|
Ds(s) || n.push(wa(s, t));
|
|
@@ -2326,7 +2328,7 @@ function sl(e) {
|
|
|
2326
2328
|
if (typeof e == "string")
|
|
2327
2329
|
t = wa(e);
|
|
2328
2330
|
else {
|
|
2329
|
-
const n =
|
|
2331
|
+
const n = Nc(e), r = e.length;
|
|
2330
2332
|
for (let o = 0; o < r; o++) {
|
|
2331
2333
|
const s = e[o];
|
|
2332
2334
|
if (!Ds(s)) {
|
|
@@ -2346,7 +2348,7 @@ function il(e) {
|
|
|
2346
2348
|
for (let o = 0; o < r; o++)
|
|
2347
2349
|
t.push(un(n[o], { modifiers: ol }));
|
|
2348
2350
|
} else {
|
|
2349
|
-
const n =
|
|
2351
|
+
const n = Nc(e), r = e.length;
|
|
2350
2352
|
for (let o = 0; o < r; o++) {
|
|
2351
2353
|
const s = e[o];
|
|
2352
2354
|
if (Ds(s))
|
|
@@ -2367,7 +2369,7 @@ function Q(e, t, n) {
|
|
|
2367
2369
|
const o = e[n];
|
|
2368
2370
|
return typeof o == "function" ? o : (s) => t(e, s);
|
|
2369
2371
|
}
|
|
2370
|
-
function
|
|
2372
|
+
function Ot(e, { includeName: t = !1 } = {}) {
|
|
2371
2373
|
if (e.type !== "function" && e.type !== "event" && e.type !== "error")
|
|
2372
2374
|
throw new bb(e.type);
|
|
2373
2375
|
return `${e.name}(${js(e.inputs, { includeName: t })})`;
|
|
@@ -2643,8 +2645,8 @@ class db extends W {
|
|
|
2643
2645
|
constructor(t, n) {
|
|
2644
2646
|
super("Found ambiguous types in overloaded ABI items.", {
|
|
2645
2647
|
metaMessages: [
|
|
2646
|
-
`\`${t.type}\` in \`${
|
|
2647
|
-
`\`${n.type}\` in \`${
|
|
2648
|
+
`\`${t.type}\` in \`${Ot(t.abiItem)}\`, and`,
|
|
2649
|
+
`\`${n.type}\` in \`${Ot(n.abiItem)}\``,
|
|
2648
2650
|
"",
|
|
2649
2651
|
"These types encode differently and cannot be distinguished at runtime.",
|
|
2650
2652
|
"Remove one of the ambiguous items in the ABI."
|
|
@@ -2694,10 +2696,10 @@ class ys extends W {
|
|
|
2694
2696
|
}), this.abiItem = t, this.data = n, this.params = r, this.size = o;
|
|
2695
2697
|
}
|
|
2696
2698
|
}
|
|
2697
|
-
class
|
|
2699
|
+
class Oc extends W {
|
|
2698
2700
|
constructor({ abiItem: t, param: n }) {
|
|
2699
2701
|
super([
|
|
2700
|
-
`Expected a topic for indexed event parameter${n.name ? ` "${n.name}"` : ""} on event "${
|
|
2702
|
+
`Expected a topic for indexed event parameter${n.name ? ` "${n.name}"` : ""} on event "${Ot(t, { includeName: !0 })}".`
|
|
2701
2703
|
].join(`
|
|
2702
2704
|
`), { name: "DecodeLogTopicsMismatch" }), Object.defineProperty(this, "abiItem", {
|
|
2703
2705
|
enumerable: !0,
|
|
@@ -2753,7 +2755,7 @@ let Rd = class extends W {
|
|
|
2753
2755
|
constructor({ offset: t, position: n, size: r }) {
|
|
2754
2756
|
super(`Slice ${n === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${r}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
2755
2757
|
}
|
|
2756
|
-
},
|
|
2758
|
+
}, Nd = class extends W {
|
|
2757
2759
|
constructor({ size: t, targetSize: n, type: r }) {
|
|
2758
2760
|
super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
2759
2761
|
}
|
|
@@ -2771,7 +2773,7 @@ function Sn(e, { dir: t, size: n = 32 } = {}) {
|
|
|
2771
2773
|
return e;
|
|
2772
2774
|
const r = e.replace("0x", "");
|
|
2773
2775
|
if (r.length > n * 2)
|
|
2774
|
-
throw new
|
|
2776
|
+
throw new Nd({
|
|
2775
2777
|
size: Math.ceil(r.length / 2),
|
|
2776
2778
|
targetSize: n,
|
|
2777
2779
|
type: "hex"
|
|
@@ -2782,7 +2784,7 @@ function yb(e, { dir: t, size: n = 32 } = {}) {
|
|
|
2782
2784
|
if (n === null)
|
|
2783
2785
|
return e;
|
|
2784
2786
|
if (e.length > n)
|
|
2785
|
-
throw new
|
|
2787
|
+
throw new Nd({
|
|
2786
2788
|
size: e.length,
|
|
2787
2789
|
targetSize: n,
|
|
2788
2790
|
type: "bytes"
|
|
@@ -2794,7 +2796,7 @@ function yb(e, { dir: t, size: n = 32 } = {}) {
|
|
|
2794
2796
|
}
|
|
2795
2797
|
return r;
|
|
2796
2798
|
}
|
|
2797
|
-
let
|
|
2799
|
+
let Od = class extends W {
|
|
2798
2800
|
constructor({ max: t, min: n, signed: r, size: o, value: s }) {
|
|
2799
2801
|
super(`Number "${s}" is not in safe ${o ? `${o * 8}-bit ${r ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${n} to ${t})` : `(above ${n})`}`, { name: "IntegerOutOfRangeError" });
|
|
2800
2802
|
}
|
|
@@ -2870,7 +2872,7 @@ function J(e, t = {}) {
|
|
|
2870
2872
|
const i = typeof s == "bigint" && n ? -s - 1n : 0;
|
|
2871
2873
|
if (s && o > s || o < i) {
|
|
2872
2874
|
const a = typeof e == "bigint" ? "n" : "";
|
|
2873
|
-
throw new
|
|
2875
|
+
throw new Od({
|
|
2874
2876
|
max: s ? `${s}${a}` : void 0,
|
|
2875
2877
|
min: `${i}${a}`,
|
|
2876
2878
|
signed: n,
|
|
@@ -2936,7 +2938,7 @@ const Qo = /* @__PURE__ */ BigInt(2 ** 32 - 1), dl = /* @__PURE__ */ BigInt(32);
|
|
|
2936
2938
|
function Rb(e, t = !1) {
|
|
2937
2939
|
return t ? { h: Number(e & Qo), l: Number(e >> dl & Qo) } : { h: Number(e >> dl & Qo) | 0, l: Number(e & Qo) | 0 };
|
|
2938
2940
|
}
|
|
2939
|
-
function
|
|
2941
|
+
function Nb(e, t = !1) {
|
|
2940
2942
|
const n = e.length;
|
|
2941
2943
|
let r = new Uint32Array(n), o = new Uint32Array(n);
|
|
2942
2944
|
for (let s = 0; s < n; s++) {
|
|
@@ -2945,7 +2947,7 @@ function Ob(e, t = !1) {
|
|
|
2945
2947
|
}
|
|
2946
2948
|
return [r, o];
|
|
2947
2949
|
}
|
|
2948
|
-
const
|
|
2950
|
+
const Ob = (e, t, n) => e << n | t >>> 32 - n, Ib = (e, t, n) => t << n | e >>> 32 - n, Cb = (e, t, n) => t << n - 32 | e >>> 64 - n, Bb = (e, t, n) => e << n - 32 | t >>> 64 - n, ar = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
2949
2951
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
2950
2952
|
function Mb(e) {
|
|
2951
2953
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
@@ -2984,7 +2986,7 @@ function Ar(...e) {
|
|
|
2984
2986
|
for (let t = 0; t < e.length; t++)
|
|
2985
2987
|
e[t].fill(0);
|
|
2986
2988
|
}
|
|
2987
|
-
function
|
|
2989
|
+
function Ni(e) {
|
|
2988
2990
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
2989
2991
|
}
|
|
2990
2992
|
function Lt(e, t) {
|
|
@@ -3042,7 +3044,7 @@ for (let e = 0, t = Wr, n = 1, r = 0; e < 24; e++) {
|
|
|
3042
3044
|
t = (t << Wr ^ (t >> Vb) * qb) % Gb, t & Wb && (o ^= Wr << (Wr << /* @__PURE__ */ BigInt(s)) - Wr);
|
|
3043
3045
|
Ld.push(o);
|
|
3044
3046
|
}
|
|
3045
|
-
const kd =
|
|
3047
|
+
const kd = Nb(Ld, !0), Zb = kd[0], Yb = kd[1], hl = (e, t, n) => n > 32 ? Cb(e, t, n) : Ob(e, t, n), ml = (e, t, n) => n > 32 ? Bb(e, t, n) : Ib(e, t, n);
|
|
3046
3048
|
function Kb(e, t = 24) {
|
|
3047
3049
|
const n = new Uint32Array(10);
|
|
3048
3050
|
for (let r = 24 - t; r < 24; r++) {
|
|
@@ -3206,15 +3208,15 @@ let Rn = class extends W {
|
|
|
3206
3208
|
return this;
|
|
3207
3209
|
}
|
|
3208
3210
|
};
|
|
3209
|
-
const
|
|
3211
|
+
const Oi = /* @__PURE__ */ new zs(8192);
|
|
3210
3212
|
function Hs(e, t) {
|
|
3211
|
-
if (
|
|
3212
|
-
return
|
|
3213
|
+
if (Oi.has(`${e}.${t}`))
|
|
3214
|
+
return Oi.get(`${e}.${t}`);
|
|
3213
3215
|
const n = e.substring(2).toLowerCase(), r = Le(Un(n), "bytes"), o = n.split("");
|
|
3214
3216
|
for (let i = 0; i < 40; i += 2)
|
|
3215
3217
|
r[i >> 1] >> 4 >= 8 && o[i] && (o[i] = o[i].toUpperCase()), (r[i >> 1] & 15) >= 8 && o[i + 1] && (o[i + 1] = o[i + 1].toUpperCase());
|
|
3216
3218
|
const s = `0x${o.join("")}`;
|
|
3217
|
-
return
|
|
3219
|
+
return Oi.set(`${e}.${t}`, s), s;
|
|
3218
3220
|
}
|
|
3219
3221
|
function $n(e, t) {
|
|
3220
3222
|
if (!vt(e, { strict: !1 }))
|
|
@@ -3406,7 +3408,7 @@ function fg(e, { signed: t, size: n = 256 }) {
|
|
|
3406
3408
|
if (typeof n == "number") {
|
|
3407
3409
|
const r = 2n ** (BigInt(n) - (t ? 1n : 0n)) - 1n, o = t ? -r - 1n : 0n;
|
|
3408
3410
|
if (e > r || e < o)
|
|
3409
|
-
throw new
|
|
3411
|
+
throw new Od({
|
|
3410
3412
|
max: r.toString(),
|
|
3411
3413
|
min: o.toString(),
|
|
3412
3414
|
signed: t,
|
|
@@ -3538,7 +3540,7 @@ function Fo(e) {
|
|
|
3538
3540
|
}
|
|
3539
3541
|
if (o.type !== "event")
|
|
3540
3542
|
throw new ul(void 0, { docsPath: bl });
|
|
3541
|
-
const s =
|
|
3543
|
+
const s = Ot(o), i = Us(s);
|
|
3542
3544
|
let c = [];
|
|
3543
3545
|
if (r && "inputs" in o) {
|
|
3544
3546
|
const u = (a = o.inputs) == null ? void 0 : a.filter((f) => "indexed" in f && f.indexed), l = Array.isArray(r) ? r : Object.values(r).length > 0 ? (u == null ? void 0 : u.map((f) => r[f.name])) ?? [] : [];
|
|
@@ -3609,7 +3611,7 @@ function hg(e) {
|
|
|
3609
3611
|
throw new Sr(void 0, { docsPath: yl });
|
|
3610
3612
|
return {
|
|
3611
3613
|
abi: [o],
|
|
3612
|
-
functionName: Mo(
|
|
3614
|
+
functionName: Mo(Ot(o))
|
|
3613
3615
|
};
|
|
3614
3616
|
}
|
|
3615
3617
|
function Ft(e) {
|
|
@@ -3960,11 +3962,11 @@ function ro(e) {
|
|
|
3960
3962
|
const n = Fc(e.type);
|
|
3961
3963
|
return !!(n && ro({ ...e, type: n[1] }));
|
|
3962
3964
|
}
|
|
3963
|
-
function
|
|
3965
|
+
function Ng(e) {
|
|
3964
3966
|
const { abi: t, data: n } = e, r = Tr(n, 0, 4);
|
|
3965
3967
|
if (r === "0x")
|
|
3966
3968
|
throw new Bo();
|
|
3967
|
-
const s = [...t || [], Gd, bg].find((i) => i.type === "error" && r === Mo(
|
|
3969
|
+
const s = [...t || [], Gd, bg].find((i) => i.type === "error" && r === Mo(Ot(i)));
|
|
3968
3970
|
if (!s)
|
|
3969
3971
|
throw new $d(r, {
|
|
3970
3972
|
docsPath: "/docs/contract/decodeErrorResult"
|
|
@@ -3980,7 +3982,7 @@ function Zd({ abiItem: e, args: t, includeFunctionName: n = !0, includeName: r =
|
|
|
3980
3982
|
if ("name" in e && "inputs" in e && e.inputs)
|
|
3981
3983
|
return `${n ? e.name : ""}(${e.inputs.map((o, s) => `${r && o.name ? `${o.name}: ` : ""}${typeof t[s] == "object" ? ke(t[s]) : t[s]}`).join(", ")})`;
|
|
3982
3984
|
}
|
|
3983
|
-
const
|
|
3985
|
+
const Og = {
|
|
3984
3986
|
gwei: 9,
|
|
3985
3987
|
wei: 18
|
|
3986
3988
|
}, Ig = {
|
|
@@ -3998,7 +4000,7 @@ function kc(e, t) {
|
|
|
3998
4000
|
return s = s.replace(/(0+)$/, ""), `${r ? "-" : ""}${o || "0"}${s ? `.${s}` : ""}`;
|
|
3999
4001
|
}
|
|
4000
4002
|
function Dc(e, t = "wei") {
|
|
4001
|
-
return kc(e,
|
|
4003
|
+
return kc(e, Og[t]);
|
|
4002
4004
|
}
|
|
4003
4005
|
function Ke(e, t = "wei") {
|
|
4004
4006
|
return kc(e, Ig[t]);
|
|
@@ -4172,7 +4174,7 @@ class Qd extends W {
|
|
|
4172
4174
|
args: r,
|
|
4173
4175
|
includeFunctionName: !1,
|
|
4174
4176
|
includeName: !1
|
|
4175
|
-
}) : void 0, l = a ?
|
|
4177
|
+
}) : void 0, l = a ? Ot(a, { includeName: !0 }) : void 0, f = ko({
|
|
4176
4178
|
address: o && jg(o),
|
|
4177
4179
|
function: l,
|
|
4178
4180
|
args: u && u !== "()" && `${[...Array((i == null ? void 0 : i.length) ?? 0).keys()].map(() => " ").join("")}${u}`,
|
|
@@ -4230,7 +4232,7 @@ class Pa extends W {
|
|
|
4230
4232
|
let s, i, c, a;
|
|
4231
4233
|
if (n && n !== "0x")
|
|
4232
4234
|
try {
|
|
4233
|
-
i =
|
|
4235
|
+
i = Ng({ abi: t, data: n });
|
|
4234
4236
|
const { abiItem: l, errorName: f, args: p } = i;
|
|
4235
4237
|
if (f === "Error")
|
|
4236
4238
|
a = p[0];
|
|
@@ -4238,7 +4240,7 @@ class Pa extends W {
|
|
|
4238
4240
|
const [d] = p;
|
|
4239
4241
|
a = mg[d];
|
|
4240
4242
|
} else {
|
|
4241
|
-
const d = l ?
|
|
4243
|
+
const d = l ? Ot(l, { includeName: !0 }) : void 0, h = l && p ? Zd({
|
|
4242
4244
|
abiItem: l,
|
|
4243
4245
|
args: p,
|
|
4244
4246
|
includeFunctionName: !1,
|
|
@@ -4507,10 +4509,10 @@ Object.defineProperty(Vn, "code", {
|
|
|
4507
4509
|
writable: !0,
|
|
4508
4510
|
value: -32603
|
|
4509
4511
|
});
|
|
4510
|
-
class
|
|
4512
|
+
class Nn extends tt {
|
|
4511
4513
|
constructor(t) {
|
|
4512
4514
|
super(t, {
|
|
4513
|
-
code:
|
|
4515
|
+
code: Nn.code,
|
|
4514
4516
|
name: "InvalidInputRpcError",
|
|
4515
4517
|
shortMessage: [
|
|
4516
4518
|
"Missing or invalid parameters.",
|
|
@@ -4520,7 +4522,7 @@ class On extends tt {
|
|
|
4520
4522
|
});
|
|
4521
4523
|
}
|
|
4522
4524
|
}
|
|
4523
|
-
Object.defineProperty(
|
|
4525
|
+
Object.defineProperty(Nn, "code", {
|
|
4524
4526
|
enumerable: !0,
|
|
4525
4527
|
configurable: !0,
|
|
4526
4528
|
writable: !0,
|
|
@@ -4825,8 +4827,8 @@ class Hg extends tt {
|
|
|
4825
4827
|
}
|
|
4826
4828
|
}
|
|
4827
4829
|
const Wg = 3;
|
|
4828
|
-
function
|
|
4829
|
-
const c = e instanceof Vs ? e : e instanceof W ? e.walk((h) => "data" in h) || e.walk() : {}, { code: a, data: u, details: l, message: f, shortMessage: p } = c, d = e instanceof Bo ? new _g({ functionName: s }) : [Wg, Vn.code].includes(a) && (u || l || f || p) || a ===
|
|
4830
|
+
function Nr(e, { abi: t, address: n, args: r, docsPath: o, functionName: s, sender: i }) {
|
|
4831
|
+
const c = e instanceof Vs ? e : e instanceof W ? e.walk((h) => "data" in h) || e.walk() : {}, { code: a, data: u, details: l, message: f, shortMessage: p } = c, d = e instanceof Bo ? new _g({ functionName: s }) : [Wg, Vn.code].includes(a) && (u || l || f || p) || a === Nn.code && l === "execution reverted" && u ? new Pa({
|
|
4830
4832
|
abi: t,
|
|
4831
4833
|
data: typeof u == "object" ? u.data : u,
|
|
4832
4834
|
functionName: s,
|
|
@@ -5072,7 +5074,7 @@ Object.defineProperty(Ra, "nodeMessage", {
|
|
|
5072
5074
|
writable: !0,
|
|
5073
5075
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
5074
5076
|
});
|
|
5075
|
-
class
|
|
5077
|
+
class Na extends W {
|
|
5076
5078
|
constructor({ cause: t, gas: n } = {}) {
|
|
5077
5079
|
super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
5078
5080
|
cause: t,
|
|
@@ -5080,13 +5082,13 @@ class Oa extends W {
|
|
|
5080
5082
|
});
|
|
5081
5083
|
}
|
|
5082
5084
|
}
|
|
5083
|
-
Object.defineProperty(
|
|
5085
|
+
Object.defineProperty(Na, "nodeMessage", {
|
|
5084
5086
|
enumerable: !0,
|
|
5085
5087
|
configurable: !0,
|
|
5086
5088
|
writable: !0,
|
|
5087
5089
|
value: /intrinsic gas too high|gas limit reached/
|
|
5088
5090
|
});
|
|
5089
|
-
class
|
|
5091
|
+
class Oa extends W {
|
|
5090
5092
|
constructor({ cause: t, gas: n } = {}) {
|
|
5091
5093
|
super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction is too low.`, {
|
|
5092
5094
|
cause: t,
|
|
@@ -5094,7 +5096,7 @@ class Na extends W {
|
|
|
5094
5096
|
});
|
|
5095
5097
|
}
|
|
5096
5098
|
}
|
|
5097
|
-
Object.defineProperty(
|
|
5099
|
+
Object.defineProperty(Oa, "nodeMessage", {
|
|
5098
5100
|
enumerable: !0,
|
|
5099
5101
|
configurable: !0,
|
|
5100
5102
|
writable: !0,
|
|
@@ -5153,7 +5155,7 @@ function Gs(e, t) {
|
|
|
5153
5155
|
}) : Sa.nodeMessage.test(n) ? new Sa({
|
|
5154
5156
|
cause: e,
|
|
5155
5157
|
maxFeePerGas: t == null ? void 0 : t.maxFeePerGas
|
|
5156
|
-
}) : $a.nodeMessage.test(n) ? new $a({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Aa.nodeMessage.test(n) ? new Aa({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ta.nodeMessage.test(n) ? new Ta({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ra.nodeMessage.test(n) ? new Ra({ cause: e }) :
|
|
5158
|
+
}) : $a.nodeMessage.test(n) ? new $a({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Aa.nodeMessage.test(n) ? new Aa({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ta.nodeMessage.test(n) ? new Ta({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ra.nodeMessage.test(n) ? new Ra({ cause: e }) : Na.nodeMessage.test(n) ? new Na({ cause: e, gas: t == null ? void 0 : t.gas }) : Oa.nodeMessage.test(n) ? new Oa({ cause: e, gas: t == null ? void 0 : t.gas }) : Ia.nodeMessage.test(n) ? new Ia({ cause: e }) : vs.nodeMessage.test(n) ? new vs({
|
|
5157
5159
|
cause: e,
|
|
5158
5160
|
maxFeePerGas: t == null ? void 0 : t.maxFeePerGas,
|
|
5159
5161
|
maxPriorityFeePerGas: t == null ? void 0 : t.maxPriorityFeePerGas
|
|
@@ -5490,7 +5492,7 @@ function cy(e, t, n) {
|
|
|
5490
5492
|
}
|
|
5491
5493
|
class uy extends Ic {
|
|
5492
5494
|
constructor(t, n, r, o) {
|
|
5493
|
-
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = o, this.buffer = new Uint8Array(t), this.view =
|
|
5495
|
+
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = o, this.buffer = new Uint8Array(t), this.view = Ni(this.buffer);
|
|
5494
5496
|
}
|
|
5495
5497
|
update(t) {
|
|
5496
5498
|
$r(this), t = _s(t), Wn(t);
|
|
@@ -5498,7 +5500,7 @@ class uy extends Ic {
|
|
|
5498
5500
|
for (let i = 0; i < s; ) {
|
|
5499
5501
|
const c = Math.min(o - this.pos, s - i);
|
|
5500
5502
|
if (c === o) {
|
|
5501
|
-
const a =
|
|
5503
|
+
const a = Ni(t);
|
|
5502
5504
|
for (; o <= s - i; i += o)
|
|
5503
5505
|
this.process(a, i);
|
|
5504
5506
|
continue;
|
|
@@ -5515,7 +5517,7 @@ class uy extends Ic {
|
|
|
5515
5517
|
for (let f = i; f < o; f++)
|
|
5516
5518
|
n[f] = 0;
|
|
5517
5519
|
iy(r, o - 8, BigInt(this.length * 8), s), this.process(r, 0);
|
|
5518
|
-
const c =
|
|
5520
|
+
const c = Ni(t), a = this.outputLen;
|
|
5519
5521
|
if (a % 4)
|
|
5520
5522
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
5521
5523
|
const u = a / 4, l = this.get();
|
|
@@ -5747,13 +5749,13 @@ async function Gc(e) {
|
|
|
5747
5749
|
return ln(t);
|
|
5748
5750
|
}
|
|
5749
5751
|
async function m0(e, t) {
|
|
5750
|
-
var b, g, v,
|
|
5752
|
+
var b, g, v, N, T;
|
|
5751
5753
|
const { account: n = e.account, accessList: r, authorizationList: o, chain: s = e.chain, blobVersionedHashes: i, blobs: c, data: a, gas: u, gasPrice: l, maxFeePerBlobGas: f, maxFeePerGas: p, maxPriorityFeePerGas: d, nonce: h, nonceManager: m, to: w, type: S, value: x, ...E } = t, R = await (async () => {
|
|
5752
5754
|
if (!n || !m || typeof h < "u")
|
|
5753
5755
|
return h;
|
|
5754
|
-
const
|
|
5756
|
+
const O = ot(n), I = s ? s.id : await Q(e, Gc, "getChainId")({});
|
|
5755
5757
|
return await m.consume({
|
|
5756
|
-
address:
|
|
5758
|
+
address: O.address,
|
|
5757
5759
|
chainId: I,
|
|
5758
5760
|
client: e
|
|
5759
5761
|
});
|
|
@@ -5779,10 +5781,10 @@ async function m0(e, t) {
|
|
|
5779
5781
|
value: x
|
|
5780
5782
|
}, "fillTransaction");
|
|
5781
5783
|
try {
|
|
5782
|
-
const
|
|
5784
|
+
const O = await e.request({
|
|
5783
5785
|
method: "eth_fillTransaction",
|
|
5784
5786
|
params: [L]
|
|
5785
|
-
}), y = (((
|
|
5787
|
+
}), y = (((N = (v = s == null ? void 0 : s.formatters) == null ? void 0 : v.transaction) == null ? void 0 : N.format) || Hc)(O.tx);
|
|
5786
5788
|
delete y.blockHash, delete y.blockNumber, delete y.r, delete y.s, delete y.transactionIndex, delete y.v, delete y.yParity, y.data = y.input, y.gas && (y.gas = t.gas ?? y.gas), y.gasPrice && (y.gasPrice = t.gasPrice ?? y.gasPrice), y.maxFeePerBlobGas && (y.maxFeePerBlobGas = t.maxFeePerBlobGas ?? y.maxFeePerBlobGas), y.maxFeePerGas && (y.maxFeePerGas = t.maxFeePerGas ?? y.maxFeePerGas), y.maxPriorityFeePerGas && (y.maxPriorityFeePerGas = t.maxPriorityFeePerGas ?? y.maxPriorityFeePerGas), y.nonce && (y.nonce = t.nonce ?? y.nonce);
|
|
5787
5789
|
const A = await (async () => {
|
|
5788
5790
|
var D, _;
|
|
@@ -5800,14 +5802,14 @@ async function m0(e, t) {
|
|
|
5800
5802
|
throw new o0();
|
|
5801
5803
|
const P = 10 ** (((T = A.toString().split(".")[1]) == null ? void 0 : T.length) ?? 0), M = (D) => D * BigInt(Math.ceil(A * P)) / BigInt(P);
|
|
5802
5804
|
return y.maxFeePerGas && !t.maxFeePerGas && (y.maxFeePerGas = M(y.maxFeePerGas)), y.gasPrice && !t.gasPrice && (y.gasPrice = M(y.gasPrice)), {
|
|
5803
|
-
raw:
|
|
5805
|
+
raw: O.raw,
|
|
5804
5806
|
transaction: {
|
|
5805
5807
|
from: L.from,
|
|
5806
5808
|
...y
|
|
5807
5809
|
}
|
|
5808
5810
|
};
|
|
5809
|
-
} catch (
|
|
5810
|
-
throw xy(
|
|
5811
|
+
} catch (O) {
|
|
5812
|
+
throw xy(O, {
|
|
5811
5813
|
...t,
|
|
5812
5814
|
chain: e.chain
|
|
5813
5815
|
});
|
|
@@ -5854,16 +5856,16 @@ async function b0(e, t) {
|
|
|
5854
5856
|
phase: "beforeFillTransaction"
|
|
5855
5857
|
}), f ?? (f = n.nonce));
|
|
5856
5858
|
const d = ((i.includes("blobVersionedHashes") || i.includes("sidecars")) && n.kzg && n.blobs || Ci.get(e.uid) === !1 || !["fees", "gas"].some((b) => i.includes(b)) ? !1 : !!(i.includes("chainId") && typeof n.chainId != "number" || i.includes("nonce") && typeof f != "number" || i.includes("fees") && typeof n.gasPrice != "bigint" && (typeof n.maxFeePerGas != "bigint" || typeof n.maxPriorityFeePerGas != "bigint") || i.includes("gas") && typeof n.gas != "bigint")) ? await Q(e, m0, "fillTransaction")({ ...n, nonce: f }).then((L) => {
|
|
5857
|
-
const { chainId: b, from: g, gas: v, gasPrice:
|
|
5859
|
+
const { chainId: b, from: g, gas: v, gasPrice: N, nonce: T, maxFeePerBlobGas: O, maxFeePerGas: I, maxPriorityFeePerGas: y, type: A, ...$ } = L.transaction;
|
|
5858
5860
|
return Ci.set(e.uid, !0), {
|
|
5859
5861
|
...n,
|
|
5860
5862
|
...g ? { from: g } : {},
|
|
5861
5863
|
...A ? { type: A } : {},
|
|
5862
5864
|
...typeof b < "u" ? { chainId: b } : {},
|
|
5863
5865
|
...typeof v < "u" ? { gas: v } : {},
|
|
5864
|
-
...typeof
|
|
5866
|
+
...typeof N < "u" ? { gasPrice: N } : {},
|
|
5865
5867
|
...typeof T < "u" ? { nonce: T } : {},
|
|
5866
|
-
...typeof
|
|
5868
|
+
...typeof O < "u" ? { maxFeePerBlobGas: O } : {},
|
|
5867
5869
|
...typeof I < "u" ? { maxFeePerGas: I } : {},
|
|
5868
5870
|
...typeof y < "u" ? { maxPriorityFeePerGas: y } : {},
|
|
5869
5871
|
..."nonceKey" in $ && typeof $.nonceKey < "u" ? { nonceKey: $.nonceKey } : {}
|
|
@@ -5871,8 +5873,8 @@ async function b0(e, t) {
|
|
|
5871
5873
|
}).catch((L) => {
|
|
5872
5874
|
var v;
|
|
5873
5875
|
const b = L;
|
|
5874
|
-
return ((v = b.walk) == null ? void 0 : v.call(b, (
|
|
5875
|
-
const T =
|
|
5876
|
+
return ((v = b.walk) == null ? void 0 : v.call(b, (N) => {
|
|
5877
|
+
const T = N;
|
|
5876
5878
|
return T.name === "MethodNotFoundRpcError" || T.name === "MethodNotSupportedRpcError";
|
|
5877
5879
|
})) && Ci.set(e.uid, !1), n;
|
|
5878
5880
|
}) : n;
|
|
@@ -5982,11 +5984,11 @@ async function qc(e, t) {
|
|
|
5982
5984
|
}) : t;
|
|
5983
5985
|
if (S && t.gas !== S)
|
|
5984
5986
|
return S;
|
|
5985
|
-
const
|
|
5987
|
+
const N = (typeof h == "bigint" ? J(h) : void 0) || m, T = Uc(b);
|
|
5986
5988
|
Fr(t);
|
|
5987
|
-
const
|
|
5989
|
+
const O = (a = (c = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : a.format, y = (O || jo)({
|
|
5988
5990
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
5989
|
-
...qs(g, { format:
|
|
5991
|
+
...qs(g, { format: O }),
|
|
5990
5992
|
account: o,
|
|
5991
5993
|
accessList: l,
|
|
5992
5994
|
authorizationList: f,
|
|
@@ -6005,9 +6007,9 @@ async function qc(e, t) {
|
|
|
6005
6007
|
method: "eth_estimateGas",
|
|
6006
6008
|
params: T ? [
|
|
6007
6009
|
y,
|
|
6008
|
-
|
|
6010
|
+
N ?? e.experimental_blockTag ?? "latest",
|
|
6009
6011
|
T
|
|
6010
|
-
] :
|
|
6012
|
+
] : N ? [y, N] : [y]
|
|
6011
6013
|
}));
|
|
6012
6014
|
} catch (u) {
|
|
6013
6015
|
throw Qg(u, {
|
|
@@ -6031,7 +6033,7 @@ async function Py(e, t) {
|
|
|
6031
6033
|
});
|
|
6032
6034
|
} catch (u) {
|
|
6033
6035
|
const l = c.account ? ot(c.account) : void 0;
|
|
6034
|
-
throw
|
|
6036
|
+
throw Nr(u, {
|
|
6035
6037
|
abi: n,
|
|
6036
6038
|
address: r,
|
|
6037
6039
|
args: o,
|
|
@@ -6053,14 +6055,14 @@ function xs(e) {
|
|
|
6053
6055
|
const { abi: t, data: n, strict: r, topics: o } = e, s = r ?? !0, [i, ...c] = o;
|
|
6054
6056
|
if (!i)
|
|
6055
6057
|
throw new ub({ docsPath: Rl });
|
|
6056
|
-
const a = t.find((m) => m.type === "event" && i === Us(
|
|
6058
|
+
const a = t.find((m) => m.type === "event" && i === Us(Ot(m)));
|
|
6057
6059
|
if (!(a && "name" in a) || a.type !== "event")
|
|
6058
6060
|
throw new lb(i, { docsPath: Rl });
|
|
6059
6061
|
const { name: u, inputs: l } = a, f = l == null ? void 0 : l.some((m) => !("name" in m && m.name)), p = f ? [] : {}, d = l.map((m, w) => [m, w]).filter(([m]) => "indexed" in m && m.indexed);
|
|
6060
6062
|
for (let m = 0; m < d.length; m++) {
|
|
6061
6063
|
const [w, S] = d[m], x = c[m];
|
|
6062
6064
|
if (!x)
|
|
6063
|
-
throw new
|
|
6065
|
+
throw new Oc({
|
|
6064
6066
|
abiItem: a,
|
|
6065
6067
|
param: w
|
|
6066
6068
|
});
|
|
@@ -6287,7 +6289,7 @@ function Ao(e) {
|
|
|
6287
6289
|
return t;
|
|
6288
6290
|
}
|
|
6289
6291
|
const Jt = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
6290
|
-
function
|
|
6292
|
+
function Nl(e) {
|
|
6291
6293
|
if (e >= Jt._0 && e <= Jt._9)
|
|
6292
6294
|
return e - Jt._0;
|
|
6293
6295
|
if (e >= Jt.A && e <= Jt.F)
|
|
@@ -6305,7 +6307,7 @@ function Es(e) {
|
|
|
6305
6307
|
throw new Error("hex string expected, got unpadded hex of length " + t);
|
|
6306
6308
|
const r = new Uint8Array(n);
|
|
6307
6309
|
for (let o = 0, s = 0; o < n; o++, s += 2) {
|
|
6308
|
-
const i =
|
|
6310
|
+
const i = Nl(e.charCodeAt(s)), c = Nl(e.charCodeAt(s + 1));
|
|
6309
6311
|
if (i === void 0 || c === void 0) {
|
|
6310
6312
|
const a = e[s] + e[s + 1];
|
|
6311
6313
|
throw new Error('hex string expected, got non-hex character "' + a + '" at index ' + s);
|
|
@@ -6370,7 +6372,7 @@ function Ty(e) {
|
|
|
6370
6372
|
;
|
|
6371
6373
|
return t;
|
|
6372
6374
|
}
|
|
6373
|
-
const Ys = (e) => (Ba << BigInt(e)) - Ba, Fi = (e) => new Uint8Array(e),
|
|
6375
|
+
const Ys = (e) => (Ba << BigInt(e)) - Ba, Fi = (e) => new Uint8Array(e), Ol = (e) => Uint8Array.from(e);
|
|
6374
6376
|
function Ry(e, t, n) {
|
|
6375
6377
|
if (typeof e != "number" || e < 2)
|
|
6376
6378
|
throw new Error("hashLen must be a number");
|
|
@@ -6382,7 +6384,7 @@ function Ry(e, t, n) {
|
|
|
6382
6384
|
const i = () => {
|
|
6383
6385
|
r.fill(1), o.fill(0), s = 0;
|
|
6384
6386
|
}, c = (...f) => n(o, r, ...f), a = (f = Fi(0)) => {
|
|
6385
|
-
o = c(
|
|
6387
|
+
o = c(Ol([0]), f), r = c(), f.length !== 0 && (o = c(Ol([1]), f), r = c());
|
|
6386
6388
|
}, u = () => {
|
|
6387
6389
|
if (s++ >= 1e3)
|
|
6388
6390
|
throw new Error("drbg: tried 1000 values");
|
|
@@ -6403,7 +6405,7 @@ function Ry(e, t, n) {
|
|
|
6403
6405
|
return i(), d;
|
|
6404
6406
|
};
|
|
6405
6407
|
}
|
|
6406
|
-
const
|
|
6408
|
+
const Ny = {
|
|
6407
6409
|
bigint: (e) => typeof e == "bigint",
|
|
6408
6410
|
function: (e) => typeof e == "function",
|
|
6409
6411
|
boolean: (e) => typeof e == "boolean",
|
|
@@ -6416,7 +6418,7 @@ const Oy = {
|
|
|
6416
6418
|
};
|
|
6417
6419
|
function Ks(e, t, n = {}) {
|
|
6418
6420
|
const r = (o, s, i) => {
|
|
6419
|
-
const c =
|
|
6421
|
+
const c = Ny[s];
|
|
6420
6422
|
if (typeof c != "function")
|
|
6421
6423
|
throw new Error("invalid validator function");
|
|
6422
6424
|
const a = e[o];
|
|
@@ -6439,9 +6441,9 @@ function Il(e) {
|
|
|
6439
6441
|
return t.set(n, s), s;
|
|
6440
6442
|
};
|
|
6441
6443
|
}
|
|
6442
|
-
const
|
|
6444
|
+
const Oy = "0.1.1";
|
|
6443
6445
|
function Iy() {
|
|
6444
|
-
return
|
|
6446
|
+
return Oy;
|
|
6445
6447
|
}
|
|
6446
6448
|
class ue extends Error {
|
|
6447
6449
|
constructor(t, n = {}) {
|
|
@@ -6635,7 +6637,7 @@ function Hy(e, t = {}) {
|
|
|
6635
6637
|
const { size: n } = t;
|
|
6636
6638
|
typeof n < "u" && zo(e, n);
|
|
6637
6639
|
const r = Ct(e, t);
|
|
6638
|
-
return
|
|
6640
|
+
return N0(r, t);
|
|
6639
6641
|
}
|
|
6640
6642
|
function Wy(e, t = {}) {
|
|
6641
6643
|
const { size: n } = t;
|
|
@@ -6648,7 +6650,7 @@ function an(e, t = {}) {
|
|
|
6648
6650
|
const { size: n } = t;
|
|
6649
6651
|
typeof n < "u" && zo(e, n);
|
|
6650
6652
|
const r = Ct(e, t);
|
|
6651
|
-
return
|
|
6653
|
+
return O0(r, t);
|
|
6652
6654
|
}
|
|
6653
6655
|
function Vy(e, t = {}) {
|
|
6654
6656
|
const { size: n } = t;
|
|
@@ -6759,7 +6761,7 @@ function Ut(e, t, n, r = {}) {
|
|
|
6759
6761
|
function st(e) {
|
|
6760
6762
|
return Math.ceil((e.length - 2) / 2);
|
|
6761
6763
|
}
|
|
6762
|
-
function
|
|
6764
|
+
function N0(e, t = {}) {
|
|
6763
6765
|
const { signed: n } = t;
|
|
6764
6766
|
t.size && Xs(e, t.size);
|
|
6765
6767
|
const r = BigInt(e);
|
|
@@ -6768,9 +6770,9 @@ function O0(e, t = {}) {
|
|
|
6768
6770
|
const o = (e.length - 2) / 2, s = (1n << BigInt(o) * 8n) - 1n, i = s >> 1n;
|
|
6769
6771
|
return r <= i ? r : r - s - 1n;
|
|
6770
6772
|
}
|
|
6771
|
-
function
|
|
6773
|
+
function O0(e, t = {}) {
|
|
6772
6774
|
const { signed: n, size: r } = t;
|
|
6773
|
-
return Number(!n && !r ? e :
|
|
6775
|
+
return Number(!n && !r ? e : N0(e, t));
|
|
6774
6776
|
}
|
|
6775
6777
|
function ew(e, t = {}) {
|
|
6776
6778
|
const { strict: n = !1 } = t;
|
|
@@ -7497,13 +7499,13 @@ function U0({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: o }) {
|
|
|
7497
7499
|
};
|
|
7498
7500
|
}
|
|
7499
7501
|
async function Qs(e, t) {
|
|
7500
|
-
var
|
|
7501
|
-
const { account: n = e.account, authorizationList: r, batch: o = !!((
|
|
7502
|
+
var O, I, y, A;
|
|
7503
|
+
const { account: n = e.account, authorizationList: r, batch: o = !!((O = e.batch) != null && O.multicall), blockNumber: s, blockTag: i = e.experimental_blockTag ?? "latest", accessList: c, blobs: a, blockOverrides: u, code: l, data: f, factory: p, factoryData: d, gas: h, gasPrice: m, maxFeePerBlobGas: w, maxFeePerGas: S, maxPriorityFeePerGas: x, nonce: E, to: R, value: B, stateOverride: F, ...L } = t, b = n ? ot(n) : void 0;
|
|
7502
7504
|
if (l && (p || d))
|
|
7503
7505
|
throw new W("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
7504
7506
|
if (l && R)
|
|
7505
7507
|
throw new W("Cannot provide both `code` & `to` as parameters.");
|
|
7506
|
-
const g = l && f, v = p && d && R && f,
|
|
7508
|
+
const g = l && f, v = p && d && R && f, N = g || v, T = g ? z0({
|
|
7507
7509
|
code: l,
|
|
7508
7510
|
data: f
|
|
7509
7511
|
}) : v ? lw({
|
|
@@ -7528,7 +7530,7 @@ async function Qs(e, t) {
|
|
|
7528
7530
|
maxFeePerGas: S,
|
|
7529
7531
|
maxPriorityFeePerGas: x,
|
|
7530
7532
|
nonce: E,
|
|
7531
|
-
to:
|
|
7533
|
+
to: N ? void 0 : R,
|
|
7532
7534
|
value: B
|
|
7533
7535
|
}, "call");
|
|
7534
7536
|
if (o && cw({ request: H }) && !D && !M)
|
|
@@ -7554,10 +7556,10 @@ async function Qs(e, t) {
|
|
|
7554
7556
|
});
|
|
7555
7557
|
return V === "0x" ? { data: void 0 } : { data: V };
|
|
7556
7558
|
} catch ($) {
|
|
7557
|
-
const P = fw($), { offchainLookup: M, offchainLookupSignature: D } = await import("./ccip-
|
|
7559
|
+
const P = fw($), { offchainLookup: M, offchainLookupSignature: D } = await import("./ccip-Cny8eIAP.mjs");
|
|
7558
7560
|
if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === D && R)
|
|
7559
7561
|
return { data: await M(e, { data: P, to: R }) };
|
|
7560
|
-
throw
|
|
7562
|
+
throw N && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new Ug({ factory: p }) : j0($, {
|
|
7561
7563
|
...t,
|
|
7562
7564
|
account: b,
|
|
7563
7565
|
chain: e.chain
|
|
@@ -7665,7 +7667,7 @@ async function Bt(e, t) {
|
|
|
7665
7667
|
data: a || "0x"
|
|
7666
7668
|
});
|
|
7667
7669
|
} catch (a) {
|
|
7668
|
-
throw
|
|
7670
|
+
throw Nr(a, {
|
|
7669
7671
|
abi: n,
|
|
7670
7672
|
address: r,
|
|
7671
7673
|
args: o,
|
|
@@ -7702,7 +7704,7 @@ async function dw(e, t) {
|
|
|
7702
7704
|
}
|
|
7703
7705
|
};
|
|
7704
7706
|
} catch (l) {
|
|
7705
|
-
throw
|
|
7707
|
+
throw Nr(l, {
|
|
7706
7708
|
abi: n,
|
|
7707
7709
|
address: r,
|
|
7708
7710
|
args: o,
|
|
@@ -7714,7 +7716,7 @@ async function dw(e, t) {
|
|
|
7714
7716
|
}
|
|
7715
7717
|
const Di = /* @__PURE__ */ new Map(), Dl = /* @__PURE__ */ new Map();
|
|
7716
7718
|
let pw = 0;
|
|
7717
|
-
function
|
|
7719
|
+
function On(e, t, n) {
|
|
7718
7720
|
const r = ++pw, o = () => Di.get(e) || [], s = () => {
|
|
7719
7721
|
const l = o();
|
|
7720
7722
|
Di.set(e, l.filter((f) => f.id !== r));
|
|
@@ -7833,7 +7835,7 @@ function ww(e, t) {
|
|
|
7833
7835
|
w,
|
|
7834
7836
|
c
|
|
7835
7837
|
]);
|
|
7836
|
-
return
|
|
7838
|
+
return On(S, { onLogs: u, onError: a }, (x) => {
|
|
7837
7839
|
let E;
|
|
7838
7840
|
c !== void 0 && (E = c - 1n);
|
|
7839
7841
|
let R, B = !1;
|
|
@@ -7878,7 +7880,7 @@ function ww(e, t) {
|
|
|
7878
7880
|
for (const g of b)
|
|
7879
7881
|
x.onLogs([g]);
|
|
7880
7882
|
} catch (b) {
|
|
7881
|
-
R && b instanceof
|
|
7883
|
+
R && b instanceof Nn && (B = !1), (L = x.onError) == null || L.call(x, b);
|
|
7882
7884
|
}
|
|
7883
7885
|
}, {
|
|
7884
7886
|
emitOnBegin: !0,
|
|
@@ -7900,7 +7902,7 @@ function ww(e, t) {
|
|
|
7900
7902
|
w
|
|
7901
7903
|
]);
|
|
7902
7904
|
let x = !0, E = () => x = !1;
|
|
7903
|
-
return
|
|
7905
|
+
return On(S, { onLogs: u, onError: a }, (R) => ((async () => {
|
|
7904
7906
|
try {
|
|
7905
7907
|
const B = (() => {
|
|
7906
7908
|
if (e.transport.type === "fallback") {
|
|
@@ -7920,25 +7922,25 @@ function ww(e, t) {
|
|
|
7920
7922
|
return;
|
|
7921
7923
|
const g = b.result;
|
|
7922
7924
|
try {
|
|
7923
|
-
const { eventName:
|
|
7925
|
+
const { eventName: N, args: T } = xs({
|
|
7924
7926
|
abi: n,
|
|
7925
7927
|
data: g.data,
|
|
7926
7928
|
topics: g.topics,
|
|
7927
7929
|
strict: p
|
|
7928
|
-
}),
|
|
7930
|
+
}), O = fn(g, {
|
|
7929
7931
|
args: T,
|
|
7930
|
-
eventName:
|
|
7932
|
+
eventName: N
|
|
7931
7933
|
});
|
|
7932
|
-
R.onLogs([
|
|
7933
|
-
} catch (
|
|
7934
|
-
let T,
|
|
7935
|
-
if (
|
|
7934
|
+
R.onLogs([O]);
|
|
7935
|
+
} catch (N) {
|
|
7936
|
+
let T, O;
|
|
7937
|
+
if (N instanceof ys || N instanceof Oc) {
|
|
7936
7938
|
if (p)
|
|
7937
7939
|
return;
|
|
7938
|
-
T =
|
|
7940
|
+
T = N.abiItem.name, O = (v = N.abiItem.inputs) == null ? void 0 : v.some((y) => !("name" in y && y.name));
|
|
7939
7941
|
}
|
|
7940
7942
|
const I = fn(g, {
|
|
7941
|
-
args:
|
|
7943
|
+
args: O ? [] : {},
|
|
7942
7944
|
eventName: T
|
|
7943
7945
|
});
|
|
7944
7946
|
R.onLogs([I]);
|
|
@@ -8050,7 +8052,7 @@ function nu(e) {
|
|
|
8050
8052
|
return t instanceof Pa ? ((n = t.data) == null ? void 0 : n.errorName) === "HttpError" || ((r = t.data) == null ? void 0 : r.errorName) === "ResolverError" || ((o = t.data) == null ? void 0 : o.errorName) === "ResolverNotContract" || ((s = t.data) == null ? void 0 : s.errorName) === "ResolverNotFound" || ((i = t.data) == null ? void 0 : i.errorName) === "ReverseAddressMismatch" || ((c = t.data) == null ? void 0 : c.errorName) === "UnsupportedResolverProfile" : !1;
|
|
8051
8053
|
}
|
|
8052
8054
|
function Pw(e) {
|
|
8053
|
-
const { abi: t, data: n } = e, r = Tr(n, 0, 4), o = t.find((s) => s.type === "function" && r === Mo(
|
|
8055
|
+
const { abi: t, data: n } = e, r = Tr(n, 0, 4), o = t.find((s) => s.type === "function" && r === Mo(Ot(s)));
|
|
8054
8056
|
if (!o)
|
|
8055
8057
|
throw new fb(r, {
|
|
8056
8058
|
docsPath: "/docs/contract/decodeFunctionData"
|
|
@@ -8072,7 +8074,7 @@ function jl(e) {
|
|
|
8072
8074
|
}
|
|
8073
8075
|
if (o.type !== "error")
|
|
8074
8076
|
throw new cl(void 0, { docsPath: ji });
|
|
8075
|
-
const s =
|
|
8077
|
+
const s = Ot(o), i = Mo(s);
|
|
8076
8078
|
let c = "0x";
|
|
8077
8079
|
if (r && r.length > 0) {
|
|
8078
8080
|
if (!o.inputs)
|
|
@@ -8169,7 +8171,7 @@ function ru(e) {
|
|
|
8169
8171
|
}
|
|
8170
8172
|
return n.byteLength !== r + 1 ? n.slice(0, r + 1) : n;
|
|
8171
8173
|
}
|
|
8172
|
-
async function
|
|
8174
|
+
async function Nw(e, t) {
|
|
8173
8175
|
const { blockNumber: n, blockTag: r, coinType: o, name: s, gatewayUrls: i, strict: c } = t, { chain: a } = e, u = (() => {
|
|
8174
8176
|
if (t.universalResolverAddress)
|
|
8175
8177
|
return t.universalResolverAddress;
|
|
@@ -8218,7 +8220,7 @@ async function Ow(e, t) {
|
|
|
8218
8220
|
throw p;
|
|
8219
8221
|
}
|
|
8220
8222
|
}
|
|
8221
|
-
class
|
|
8223
|
+
class Ow extends W {
|
|
8222
8224
|
constructor({ data: t }) {
|
|
8223
8225
|
super("Unable to extract image from metadata. The metadata may be malformed or invalid.", {
|
|
8224
8226
|
metaMessages: [
|
|
@@ -8302,7 +8304,7 @@ function G0({ uri: e, gatewayUrls: t }) {
|
|
|
8302
8304
|
}
|
|
8303
8305
|
function q0(e) {
|
|
8304
8306
|
if (typeof e != "object" || !("image" in e) && !("image_url" in e) && !("image_data" in e))
|
|
8305
|
-
throw new
|
|
8307
|
+
throw new Ow({ data: e });
|
|
8306
8308
|
return e.image || e.image_url || e.image_data;
|
|
8307
8309
|
}
|
|
8308
8310
|
async function kw({ gatewayUrls: e, uri: t }) {
|
|
@@ -8782,8 +8784,8 @@ function rv(e, t = {}) {
|
|
|
8782
8784
|
throw new ao(d);
|
|
8783
8785
|
case Vn.code:
|
|
8784
8786
|
throw new Vn(d);
|
|
8785
|
-
case
|
|
8786
|
-
throw new
|
|
8787
|
+
case Nn.code:
|
|
8788
|
+
throw new Nn(d);
|
|
8787
8789
|
case co.code:
|
|
8788
8790
|
throw new co(d);
|
|
8789
8791
|
case uo.code:
|
|
@@ -9236,7 +9238,7 @@ function xr(e, t, n) {
|
|
|
9236
9238
|
const { checksumAddress: r, staticPosition: o } = n, s = cu(t.type);
|
|
9237
9239
|
if (s) {
|
|
9238
9240
|
const [i, c] = s;
|
|
9239
|
-
return
|
|
9241
|
+
return Nv(e, { ...t, type: c }, { checksumAddress: r, length: i, staticPosition: o });
|
|
9240
9242
|
}
|
|
9241
9243
|
if (t.type === "tuple")
|
|
9242
9244
|
return Bv(e, t, {
|
|
@@ -9246,7 +9248,7 @@ function xr(e, t, n) {
|
|
|
9246
9248
|
if (t.type === "address")
|
|
9247
9249
|
return Rv(e, { checksum: r });
|
|
9248
9250
|
if (t.type === "bool")
|
|
9249
|
-
return
|
|
9251
|
+
return Ov(e);
|
|
9250
9252
|
if (t.type.startsWith("bytes"))
|
|
9251
9253
|
return Iv(e, t, { staticPosition: o });
|
|
9252
9254
|
if (t.type.startsWith("uint") || t.type.startsWith("int"))
|
|
@@ -9260,7 +9262,7 @@ function Rv(e, t = {}) {
|
|
|
9260
9262
|
const { checksum: n = !1 } = t, r = e.readBytes(32);
|
|
9261
9263
|
return [((s) => n ? op(s) : s)(Ct(zy(r, -20))), 32];
|
|
9262
9264
|
}
|
|
9263
|
-
function
|
|
9265
|
+
function Nv(e, t, n) {
|
|
9264
9266
|
const { checksumAddress: r, length: o, staticPosition: s } = n;
|
|
9265
9267
|
if (!o) {
|
|
9266
9268
|
const a = an(e.readBytes(za)), u = s + a, l = u + Wl;
|
|
@@ -9301,7 +9303,7 @@ function Ov(e, t, n) {
|
|
|
9301
9303
|
}
|
|
9302
9304
|
return [c, i];
|
|
9303
9305
|
}
|
|
9304
|
-
function
|
|
9306
|
+
function Ov(e) {
|
|
9305
9307
|
return [Wy(e.readBytes(32), { size: 32 }), 32];
|
|
9306
9308
|
}
|
|
9307
9309
|
function Iv(e, t, { staticPosition: n }) {
|
|
@@ -10467,10 +10469,10 @@ function p6(e) {
|
|
|
10467
10469
|
return { x: B, y: F };
|
|
10468
10470
|
const b = E.is0();
|
|
10469
10471
|
R == null && (R = b ? n.ONE : n.inv(L));
|
|
10470
|
-
const g = n.mul(B, R), v = n.mul(F, R),
|
|
10472
|
+
const g = n.mul(B, R), v = n.mul(F, R), N = n.mul(L, R);
|
|
10471
10473
|
if (b)
|
|
10472
10474
|
return { x: n.ZERO, y: n.ZERO };
|
|
10473
|
-
if (!n.eql(
|
|
10475
|
+
if (!n.eql(N, n.ONE))
|
|
10474
10476
|
throw new Error("invZ was invalid");
|
|
10475
10477
|
return { x: g, y: v };
|
|
10476
10478
|
}), h = Il((E) => {
|
|
@@ -10560,8 +10562,8 @@ function p6(e) {
|
|
|
10560
10562
|
*/
|
|
10561
10563
|
equals(R) {
|
|
10562
10564
|
p(R);
|
|
10563
|
-
const { px: B, py: F, pz: L } = this, { px: b, py: g, pz: v } = R,
|
|
10564
|
-
return
|
|
10565
|
+
const { px: B, py: F, pz: L } = this, { px: b, py: g, pz: v } = R, N = n.eql(n.mul(B, v), n.mul(b, L)), T = n.eql(n.mul(F, v), n.mul(g, L));
|
|
10566
|
+
return N && T;
|
|
10565
10567
|
}
|
|
10566
10568
|
/**
|
|
10567
10569
|
* Flips point to one corresponding to (x, -y) in Affine coordinates.
|
|
@@ -10575,8 +10577,8 @@ function p6(e) {
|
|
|
10575
10577
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
10576
10578
|
double() {
|
|
10577
10579
|
const { a: R, b: B } = t, F = n.mul(B, qi), { px: L, py: b, pz: g } = this;
|
|
10578
|
-
let v = n.ZERO,
|
|
10579
|
-
return A = n.add(A, A), T = n.mul(L, g), T = n.add(T, T), v = n.mul(R, T),
|
|
10580
|
+
let v = n.ZERO, N = n.ZERO, T = n.ZERO, O = n.mul(L, L), I = n.mul(b, b), y = n.mul(g, g), A = n.mul(L, b);
|
|
10581
|
+
return A = n.add(A, A), T = n.mul(L, g), T = n.add(T, T), v = n.mul(R, T), N = n.mul(F, y), N = n.add(v, N), v = n.sub(I, N), N = n.add(I, N), N = n.mul(v, N), v = n.mul(A, v), T = n.mul(F, T), y = n.mul(R, y), A = n.sub(O, y), A = n.mul(R, A), A = n.add(A, T), T = n.add(O, O), O = n.add(T, O), O = n.add(O, y), O = n.mul(O, A), N = n.add(N, O), y = n.mul(b, g), y = n.add(y, y), O = n.mul(y, A), v = n.sub(v, O), T = n.mul(y, I), T = n.add(T, T), T = n.add(T, T), new m(v, N, T);
|
|
10580
10582
|
}
|
|
10581
10583
|
// Renes-Costello-Batina exception-free addition formula.
|
|
10582
10584
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -10585,12 +10587,12 @@ function p6(e) {
|
|
|
10585
10587
|
add(R) {
|
|
10586
10588
|
p(R);
|
|
10587
10589
|
const { px: B, py: F, pz: L } = this, { px: b, py: g, pz: v } = R;
|
|
10588
|
-
let
|
|
10590
|
+
let N = n.ZERO, T = n.ZERO, O = n.ZERO;
|
|
10589
10591
|
const I = t.a, y = n.mul(t.b, qi);
|
|
10590
10592
|
let A = n.mul(B, b), $ = n.mul(F, g), P = n.mul(L, v), M = n.add(B, F), D = n.add(b, g);
|
|
10591
10593
|
M = n.mul(M, D), D = n.add(A, $), M = n.sub(M, D), D = n.add(B, L);
|
|
10592
10594
|
let _ = n.add(b, v);
|
|
10593
|
-
return D = n.mul(D, _), _ = n.add(A, P), D = n.sub(D, _), _ = n.add(F, L),
|
|
10595
|
+
return D = n.mul(D, _), _ = n.add(A, P), D = n.sub(D, _), _ = n.add(F, L), N = n.add(g, v), _ = n.mul(_, N), N = n.add($, P), _ = n.sub(_, N), O = n.mul(I, D), N = n.mul(y, P), O = n.add(N, O), N = n.sub($, O), O = n.add($, O), T = n.mul(N, O), $ = n.add(A, A), $ = n.add($, A), P = n.mul(I, P), D = n.mul(y, D), $ = n.add($, P), P = n.sub(A, P), P = n.mul(I, P), D = n.add(D, P), A = n.mul($, D), T = n.add(T, A), A = n.mul(_, D), N = n.mul(M, N), N = n.sub(N, A), A = n.mul(M, $), O = n.mul(_, O), O = n.add(O, A), new m(N, T, O);
|
|
10594
10596
|
}
|
|
10595
10597
|
subtract(R) {
|
|
10596
10598
|
return this.add(R.negate());
|
|
@@ -10616,10 +10618,10 @@ function p6(e) {
|
|
|
10616
10618
|
return this;
|
|
10617
10619
|
if (!B || x.hasPrecomputes(this))
|
|
10618
10620
|
return x.wNAFCachedUnsafe(this, R, m.normalizeZ);
|
|
10619
|
-
let { k1neg: b, k1: g, k2neg: v, k2:
|
|
10620
|
-
for (; g > rn ||
|
|
10621
|
-
g & Me && (T = T.add(I)),
|
|
10622
|
-
return b && (T = T.negate()), v && (
|
|
10621
|
+
let { k1neg: b, k1: g, k2neg: v, k2: N } = B.splitScalar(R), T = L, O = L, I = this;
|
|
10622
|
+
for (; g > rn || N > rn; )
|
|
10623
|
+
g & Me && (T = T.add(I)), N & Me && (O = O.add(I)), I = I.double(), g >>= Me, N >>= Me;
|
|
10624
|
+
return b && (T = T.negate()), v && (O = O.negate()), O = new m(n.mul(O.px, B.beta), O.py, O.pz), T.add(O);
|
|
10623
10625
|
}
|
|
10624
10626
|
/**
|
|
10625
10627
|
* Constant time multiplication.
|
|
@@ -10635,9 +10637,9 @@ function p6(e) {
|
|
|
10635
10637
|
wr("scalar", R, Me, F);
|
|
10636
10638
|
let L, b;
|
|
10637
10639
|
if (B) {
|
|
10638
|
-
const { k1neg: g, k1: v, k2neg:
|
|
10639
|
-
let { p:
|
|
10640
|
-
|
|
10640
|
+
const { k1neg: g, k1: v, k2neg: N, k2: T } = B.splitScalar(R);
|
|
10641
|
+
let { p: O, f: I } = this.wNAF(v), { p: y, f: A } = this.wNAF(T);
|
|
10642
|
+
O = x.constTimeNegate(g, O), y = x.constTimeNegate(N, y), y = new m(n.mul(y.px, B.beta), y.py, y.pz), L = O.add(y), b = I.add(A);
|
|
10641
10643
|
} else {
|
|
10642
10644
|
const { p: g, f: v } = this.wNAF(R);
|
|
10643
10645
|
L = g, b = v;
|
|
@@ -10651,7 +10653,7 @@ function p6(e) {
|
|
|
10651
10653
|
* @returns non-zero affine point
|
|
10652
10654
|
*/
|
|
10653
10655
|
multiplyAndAddUnsafe(R, B, F) {
|
|
10654
|
-
const L = m.BASE, b = (v,
|
|
10656
|
+
const L = m.BASE, b = (v, N) => N === rn || N === Me || !v.equals(L) ? v.multiplyUnsafe(N) : v.multiply(N), g = b(this, B).add(b(R, F));
|
|
10655
10657
|
return g.is0() ? void 0 : g;
|
|
10656
10658
|
}
|
|
10657
10659
|
// Converts Projective point to affine (x, y) coordinates.
|
|
@@ -10866,7 +10868,7 @@ function m6(e) {
|
|
|
10866
10868
|
function g(y) {
|
|
10867
10869
|
return wr("num < 2^" + s, y, rn, b), Uo(y, o);
|
|
10868
10870
|
}
|
|
10869
|
-
function v(y, A, $ =
|
|
10871
|
+
function v(y, A, $ = N) {
|
|
10870
10872
|
if (["recovered", "canonical"].some((ie) => ie in $))
|
|
10871
10873
|
throw new Error("sign() legacy options not supported");
|
|
10872
10874
|
const { hash: P, randomBytes: M } = t;
|
|
@@ -10893,8 +10895,8 @@ function m6(e) {
|
|
|
10893
10895
|
}
|
|
10894
10896
|
return { seed: z, k2sig: ee };
|
|
10895
10897
|
}
|
|
10896
|
-
const
|
|
10897
|
-
function
|
|
10898
|
+
const N = { lowS: t.lowS, prehash: !1 }, T = { lowS: t.lowS, prehash: !1 };
|
|
10899
|
+
function O(y, A, $ = N) {
|
|
10898
10900
|
const { seed: P, k2sig: M } = v(y, A, $), D = t;
|
|
10899
10901
|
return Ry(D.hash.outputLen, D.nByteLength, D.hmac)(P, M);
|
|
10900
10902
|
}
|
|
@@ -10936,7 +10938,7 @@ function m6(e) {
|
|
|
10936
10938
|
CURVE: t,
|
|
10937
10939
|
getPublicKey: E,
|
|
10938
10940
|
getSharedSecret: B,
|
|
10939
|
-
sign:
|
|
10941
|
+
sign: O,
|
|
10940
10942
|
verify: I,
|
|
10941
10943
|
ProjectivePoint: l,
|
|
10942
10944
|
Signature: S,
|
|
@@ -11000,7 +11002,7 @@ function Sp(e, t = {}) {
|
|
|
11000
11002
|
if (e.r < 0n || e.r > Hl)
|
|
11001
11003
|
throw new R6({ value: e.r });
|
|
11002
11004
|
if (e.s < 0n || e.s > Hl)
|
|
11003
|
-
throw new
|
|
11005
|
+
throw new N6({ value: e.s });
|
|
11004
11006
|
if (typeof e.yParity == "number" && e.yParity !== 0 && e.yParity !== 1)
|
|
11005
11007
|
throw new pu({ value: e.yParity });
|
|
11006
11008
|
}
|
|
@@ -11068,7 +11070,7 @@ function du(e) {
|
|
|
11068
11070
|
return 1;
|
|
11069
11071
|
if (e >= 35)
|
|
11070
11072
|
return e % 2 === 0 ? 1 : 0;
|
|
11071
|
-
throw new
|
|
11073
|
+
throw new O6({ value: e });
|
|
11072
11074
|
}
|
|
11073
11075
|
class T6 extends ue {
|
|
11074
11076
|
constructor({ signature: t }) {
|
|
@@ -11105,7 +11107,7 @@ class R6 extends ue {
|
|
|
11105
11107
|
});
|
|
11106
11108
|
}
|
|
11107
11109
|
}
|
|
11108
|
-
class
|
|
11110
|
+
class N6 extends ue {
|
|
11109
11111
|
constructor({ value: t }) {
|
|
11110
11112
|
super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`), Object.defineProperty(this, "name", {
|
|
11111
11113
|
enumerable: !0,
|
|
@@ -11125,7 +11127,7 @@ class pu extends ue {
|
|
|
11125
11127
|
});
|
|
11126
11128
|
}
|
|
11127
11129
|
}
|
|
11128
|
-
class
|
|
11130
|
+
class O6 extends ue {
|
|
11129
11131
|
constructor({ value: t }) {
|
|
11130
11132
|
super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`), Object.defineProperty(this, "name", {
|
|
11131
11133
|
enumerable: !0,
|
|
@@ -11157,7 +11159,7 @@ function Ap(e) {
|
|
|
11157
11159
|
}
|
|
11158
11160
|
function F6(e) {
|
|
11159
11161
|
Ap(e);
|
|
11160
|
-
const t =
|
|
11162
|
+
const t = O0(Ut(e, -64, -32)), n = Ut(e, -t - 64, -64), r = Ut(e, 0, -t - 64), [o, s, i] = qv(M6, n);
|
|
11161
11163
|
return {
|
|
11162
11164
|
authorization: I6({
|
|
11163
11165
|
address: o.delegation,
|
|
@@ -11316,7 +11318,7 @@ async function V6(e, t) {
|
|
|
11316
11318
|
}
|
|
11317
11319
|
];
|
|
11318
11320
|
} catch (b) {
|
|
11319
|
-
const g =
|
|
11321
|
+
const g = Nr(b, {
|
|
11320
11322
|
abi: R,
|
|
11321
11323
|
address: B,
|
|
11322
11324
|
args: F,
|
|
@@ -11363,7 +11365,7 @@ async function V6(e, t) {
|
|
|
11363
11365
|
}
|
|
11364
11366
|
const B = R.value;
|
|
11365
11367
|
for (let F = 0; F < B.length; F++) {
|
|
11366
|
-
const { returnData: L, success: b } = B[F], { callData: g } = d[E][F], { abi: v, address:
|
|
11368
|
+
const { returnData: L, success: b } = B[F], { callData: g } = d[E][F], { abi: v, address: N, functionName: T, args: O } = u[S.length];
|
|
11367
11369
|
try {
|
|
11368
11370
|
if (g === "0x")
|
|
11369
11371
|
throw new Bo();
|
|
@@ -11371,16 +11373,16 @@ async function V6(e, t) {
|
|
|
11371
11373
|
throw new Vs({ data: L });
|
|
11372
11374
|
const I = tr({
|
|
11373
11375
|
abi: v,
|
|
11374
|
-
args:
|
|
11376
|
+
args: O,
|
|
11375
11377
|
data: L,
|
|
11376
11378
|
functionName: T
|
|
11377
11379
|
});
|
|
11378
11380
|
S.push(o ? { result: I, status: "success" } : I);
|
|
11379
11381
|
} catch (I) {
|
|
11380
|
-
const y =
|
|
11382
|
+
const y = Nr(I, {
|
|
11381
11383
|
abi: v,
|
|
11382
|
-
address:
|
|
11383
|
-
args:
|
|
11384
|
+
address: N,
|
|
11385
|
+
args: O,
|
|
11384
11386
|
docsPath: "/docs/contract/multicall",
|
|
11385
11387
|
functionName: T
|
|
11386
11388
|
});
|
|
@@ -11424,18 +11426,18 @@ async function Za(e, t) {
|
|
|
11424
11426
|
})).map((p, d) => ({
|
|
11425
11427
|
...a0(p),
|
|
11426
11428
|
calls: p.calls.map((h, m) => {
|
|
11427
|
-
var v,
|
|
11428
|
-
const { abi: w, args: S, functionName: x, to: E } = o[d].calls[m], R = ((v = h.error) == null ? void 0 : v.data) ?? h.returnData, B = BigInt(h.gasUsed), F = (
|
|
11429
|
+
var v, N;
|
|
11430
|
+
const { abi: w, args: S, functionName: x, to: E } = o[d].calls[m], R = ((v = h.error) == null ? void 0 : v.data) ?? h.returnData, B = BigInt(h.gasUsed), F = (N = h.logs) == null ? void 0 : N.map((T) => fn(T)), L = h.status === "0x1" ? "success" : "failure", b = w && L === "success" && R !== "0x" ? tr({
|
|
11429
11431
|
abi: w,
|
|
11430
11432
|
data: R,
|
|
11431
11433
|
functionName: x
|
|
11432
11434
|
}) : null, g = (() => {
|
|
11433
|
-
var
|
|
11435
|
+
var O;
|
|
11434
11436
|
if (L === "success")
|
|
11435
11437
|
return;
|
|
11436
11438
|
let T;
|
|
11437
|
-
if (((
|
|
11438
|
-
return
|
|
11439
|
+
if (((O = h.error) == null ? void 0 : O.data) === "0x" ? T = new Bo() : h.error && (T = new Vs(h.error)), !!T)
|
|
11440
|
+
return Nr(T, {
|
|
11439
11441
|
abi: w ?? [],
|
|
11440
11442
|
address: E ?? "0x",
|
|
11441
11443
|
args: S,
|
|
@@ -11526,7 +11528,7 @@ function Rp(e, t = {}) {
|
|
|
11526
11528
|
};
|
|
11527
11529
|
}
|
|
11528
11530
|
function ri(e, t, n) {
|
|
11529
|
-
const { args: r = [], prepare: o = !0 } = n ?? {}, s = ew(t, { strict: !1 }), i = e.filter((u) => s ? u.type === "function" || u.type === "error" ?
|
|
11531
|
+
const { args: r = [], prepare: o = !0 } = n ?? {}, s = ew(t, { strict: !1 }), i = e.filter((u) => s ? u.type === "function" || u.type === "error" ? Np(u) === Ut(t, 0, 4) : u.type === "event" ? pr(u) === t : !1 : "name" in u && u.name === t);
|
|
11530
11532
|
if (i.length === 0)
|
|
11531
11533
|
throw new $s({ name: t });
|
|
11532
11534
|
if (i.length === 1)
|
|
@@ -11579,7 +11581,7 @@ function ri(e, t, n) {
|
|
|
11579
11581
|
...o ? { hash: pr(a) } : {}
|
|
11580
11582
|
};
|
|
11581
11583
|
}
|
|
11582
|
-
function
|
|
11584
|
+
function Np(...e) {
|
|
11583
11585
|
const t = (() => {
|
|
11584
11586
|
if (Array.isArray(e[0])) {
|
|
11585
11587
|
const [n, r] = e;
|
|
@@ -11682,7 +11684,7 @@ function Ql(e, t, n) {
|
|
|
11682
11684
|
return r;
|
|
11683
11685
|
}
|
|
11684
11686
|
function Q6(e) {
|
|
11685
|
-
return
|
|
11687
|
+
return Np(e);
|
|
11686
11688
|
}
|
|
11687
11689
|
const J6 = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", kt = "0x0000000000000000000000000000000000000000", e5 = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
|
|
11688
11690
|
async function t5(e, t) {
|
|
@@ -11822,8 +11824,8 @@ async function t5(e, t) {
|
|
|
11822
11824
|
],
|
|
11823
11825
|
traceTransfers: c,
|
|
11824
11826
|
validation: a
|
|
11825
|
-
}), d = i ? p[2] : p[0], [h, m, , w, S, x, E, R] = i ? p : [], { calls: B, ...F } = d, L = B.slice(0, -1) ?? [], b = (h == null ? void 0 : h.calls) ?? [], g = (m == null ? void 0 : m.calls) ?? [], v = [...b, ...g].map((P) => P.status === "success" ? Gt(P.data) : null),
|
|
11826
|
-
for (const [P, M] of
|
|
11827
|
+
}), d = i ? p[2] : p[0], [h, m, , w, S, x, E, R] = i ? p : [], { calls: B, ...F } = d, L = B.slice(0, -1) ?? [], b = (h == null ? void 0 : h.calls) ?? [], g = (m == null ? void 0 : m.calls) ?? [], v = [...b, ...g].map((P) => P.status === "success" ? Gt(P.data) : null), N = (w == null ? void 0 : w.calls) ?? [], T = (S == null ? void 0 : S.calls) ?? [], O = [...N, ...T].map((P) => P.status === "success" ? Gt(P.data) : null), I = ((x == null ? void 0 : x.calls) ?? []).map((P) => P.status === "success" ? P.result : null), y = ((R == null ? void 0 : R.calls) ?? []).map((P) => P.status === "success" ? P.result : null), A = ((E == null ? void 0 : E.calls) ?? []).map((P) => P.status === "success" ? P.result : null), $ = [];
|
|
11828
|
+
for (const [P, M] of O.entries()) {
|
|
11827
11829
|
const D = v[P];
|
|
11828
11830
|
if (typeof M != "bigint" || typeof D != "bigint")
|
|
11829
11831
|
continue;
|
|
@@ -11851,9 +11853,9 @@ async function t5(e, t) {
|
|
|
11851
11853
|
results: L
|
|
11852
11854
|
};
|
|
11853
11855
|
}
|
|
11854
|
-
const
|
|
11856
|
+
const Op = "0x6492649264926492649264926492649264926492649264926492649264926492";
|
|
11855
11857
|
function n5(e) {
|
|
11856
|
-
if (Ut(e, -32) !==
|
|
11858
|
+
if (Ut(e, -32) !== Op)
|
|
11857
11859
|
throw new s5(e);
|
|
11858
11860
|
}
|
|
11859
11861
|
function r5(e) {
|
|
@@ -11862,7 +11864,7 @@ function r5(e) {
|
|
|
11862
11864
|
r,
|
|
11863
11865
|
t,
|
|
11864
11866
|
n
|
|
11865
|
-
]),
|
|
11867
|
+
]), Op);
|
|
11866
11868
|
}
|
|
11867
11869
|
function o5(e) {
|
|
11868
11870
|
try {
|
|
@@ -12055,7 +12057,7 @@ function Ip(e, { emitOnBegin: t = !1, emitMissed: n = !1, onBlockNumber: r, onEr
|
|
|
12055
12057
|
n,
|
|
12056
12058
|
i
|
|
12057
12059
|
]);
|
|
12058
|
-
return
|
|
12060
|
+
return On(f, { onBlockNumber: r, onError: o }, (p) => Ho(async () => {
|
|
12059
12061
|
var d;
|
|
12060
12062
|
try {
|
|
12061
12063
|
const h = await Q(e, Wo, "getBlockNumber")({ cacheTime: 0 });
|
|
@@ -12081,7 +12083,7 @@ function Ip(e, { emitOnBegin: t = !1, emitMissed: n = !1, onBlockNumber: r, onEr
|
|
|
12081
12083
|
t,
|
|
12082
12084
|
n
|
|
12083
12085
|
]);
|
|
12084
|
-
return
|
|
12086
|
+
return On(f, { onBlockNumber: r, onError: o }, (p) => {
|
|
12085
12087
|
let d = !0, h = () => d = !1;
|
|
12086
12088
|
return (async () => {
|
|
12087
12089
|
try {
|
|
@@ -12131,7 +12133,7 @@ async function d5(e, t) {
|
|
|
12131
12133
|
const { promise: S, resolve: x, reject: E } = _0(), R = a ? setTimeout(() => {
|
|
12132
12134
|
w == null || w(), m == null || m(), E(new Dg({ hash: o }));
|
|
12133
12135
|
}, a) : void 0;
|
|
12134
|
-
return m =
|
|
12136
|
+
return m = On(u, { onReplaced: s, resolve: x, reject: E }, async (B) => {
|
|
12135
12137
|
if (d = await Q(e, ls, "getTransactionReceipt")({ hash: o }).catch(() => {
|
|
12136
12138
|
}), d && r <= 1) {
|
|
12137
12139
|
clearTimeout(R), B.resolve(d), m == null || m();
|
|
@@ -12177,21 +12179,21 @@ async function d5(e, t) {
|
|
|
12177
12179
|
}), {
|
|
12178
12180
|
delay: c,
|
|
12179
12181
|
retryCount: i,
|
|
12180
|
-
shouldRetry: ({ error:
|
|
12182
|
+
shouldRetry: ({ error: O }) => O instanceof s0
|
|
12181
12183
|
});
|
|
12182
12184
|
h = !1;
|
|
12183
|
-
const
|
|
12184
|
-
if (!
|
|
12185
|
-
hash:
|
|
12185
|
+
const N = v.transactions.find(({ from: O, nonce: I }) => O === p.from && I === p.nonce);
|
|
12186
|
+
if (!N || (d = await Q(e, ls, "getTransactionReceipt")({
|
|
12187
|
+
hash: N.hash
|
|
12186
12188
|
}), r > 1 && (!d.blockNumber || b - d.blockNumber + 1n < r)))
|
|
12187
12189
|
return;
|
|
12188
12190
|
let T = "replaced";
|
|
12189
|
-
|
|
12190
|
-
var
|
|
12191
|
-
(
|
|
12191
|
+
N.to === p.to && N.value === p.value && N.input === p.input ? T = "repriced" : N.from === N.to && N.value === 0n && (T = "cancelled"), L(() => {
|
|
12192
|
+
var O;
|
|
12193
|
+
(O = B.onReplaced) == null || O.call(B, {
|
|
12192
12194
|
reason: T,
|
|
12193
12195
|
replacedTransaction: p,
|
|
12194
|
-
transaction:
|
|
12196
|
+
transaction: N,
|
|
12195
12197
|
transactionReceipt: d
|
|
12196
12198
|
}), B.resolve(d);
|
|
12197
12199
|
});
|
|
@@ -12218,7 +12220,7 @@ function p5(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
12218
12220
|
l,
|
|
12219
12221
|
a
|
|
12220
12222
|
]);
|
|
12221
|
-
return
|
|
12223
|
+
return On(h, { onBlock: o, onError: s }, (m) => Ho(async () => {
|
|
12222
12224
|
var w;
|
|
12223
12225
|
try {
|
|
12224
12226
|
const S = await Q(e, At, "getBlock")({
|
|
@@ -12302,7 +12304,7 @@ function h5(e, { address: t, args: n, batch: r = !0, event: o, events: s, fromBl
|
|
|
12302
12304
|
l,
|
|
12303
12305
|
i
|
|
12304
12306
|
]);
|
|
12305
|
-
return
|
|
12307
|
+
return On(w, { onLogs: a, onError: c }, (S) => {
|
|
12306
12308
|
let x;
|
|
12307
12309
|
i !== void 0 && (x = i - 1n);
|
|
12308
12310
|
let E, R = !1;
|
|
@@ -12346,7 +12348,7 @@ function h5(e, { address: t, args: n, batch: r = !0, event: o, events: s, fromBl
|
|
|
12346
12348
|
for (const b of L)
|
|
12347
12349
|
S.onLogs([b]);
|
|
12348
12350
|
} catch (L) {
|
|
12349
|
-
E && L instanceof
|
|
12351
|
+
E && L instanceof Nn && (R = !1), (F = S.onError) == null || F.call(S, L);
|
|
12350
12352
|
}
|
|
12351
12353
|
}, {
|
|
12352
12354
|
emitOnBegin: !0,
|
|
@@ -12386,17 +12388,17 @@ function h5(e, { address: t, args: n, batch: r = !0, event: o, events: s, fromBl
|
|
|
12386
12388
|
data: L.data,
|
|
12387
12389
|
topics: L.topics,
|
|
12388
12390
|
strict: d
|
|
12389
|
-
}),
|
|
12390
|
-
a([
|
|
12391
|
+
}), N = fn(L, { args: v, eventName: g });
|
|
12392
|
+
a([N]);
|
|
12391
12393
|
} catch (g) {
|
|
12392
|
-
let v,
|
|
12393
|
-
if (g instanceof ys || g instanceof
|
|
12394
|
+
let v, N;
|
|
12395
|
+
if (g instanceof ys || g instanceof Oc) {
|
|
12394
12396
|
if (f)
|
|
12395
12397
|
return;
|
|
12396
|
-
v = g.abiItem.name,
|
|
12398
|
+
v = g.abiItem.name, N = (b = g.abiItem.inputs) == null ? void 0 : b.some((O) => !("name" in O && O.name));
|
|
12397
12399
|
}
|
|
12398
12400
|
const T = fn(L, {
|
|
12399
|
-
args:
|
|
12401
|
+
args: N ? [] : {},
|
|
12400
12402
|
eventName: v
|
|
12401
12403
|
});
|
|
12402
12404
|
a([T]);
|
|
@@ -12421,7 +12423,7 @@ function m5(e, { batch: t = !0, onError: n, onTransactions: r, poll: o, pollingI
|
|
|
12421
12423
|
t,
|
|
12422
12424
|
s
|
|
12423
12425
|
]);
|
|
12424
|
-
return
|
|
12426
|
+
return On(u, { onTransactions: r, onError: n }, (l) => {
|
|
12425
12427
|
let f;
|
|
12426
12428
|
const p = Ho(async () => {
|
|
12427
12429
|
var d;
|
|
@@ -12554,7 +12556,7 @@ function E5(e) {
|
|
|
12554
12556
|
getCode: (t) => _a(e, t),
|
|
12555
12557
|
getContractEvents: (t) => g0(e, t),
|
|
12556
12558
|
getEip712Domain: (t) => Kw(e, t),
|
|
12557
|
-
getEnsAddress: (t) =>
|
|
12559
|
+
getEnsAddress: (t) => Nw(e, t),
|
|
12558
12560
|
getEnsAvatar: (t) => zw(e, t),
|
|
12559
12561
|
getEnsName: (t) => Hw(e, t),
|
|
12560
12562
|
getEnsResolver: (t) => Ww(e, t),
|
|
@@ -12656,21 +12658,21 @@ function A5(e, t = {}) {
|
|
|
12656
12658
|
fn: (T) => R.request({
|
|
12657
12659
|
body: T
|
|
12658
12660
|
}),
|
|
12659
|
-
sort: (T,
|
|
12661
|
+
sort: (T, O) => T.id - O.id
|
|
12660
12662
|
}), g = async (T) => n ? b(T) : [
|
|
12661
12663
|
await R.request({
|
|
12662
12664
|
body: T
|
|
12663
12665
|
})
|
|
12664
|
-
], [{ error: v, result:
|
|
12666
|
+
], [{ error: v, result: N }] = await g(L);
|
|
12665
12667
|
if (f)
|
|
12666
|
-
return { error: v, result:
|
|
12668
|
+
return { error: v, result: N };
|
|
12667
12669
|
if (v)
|
|
12668
12670
|
throw new _c({
|
|
12669
12671
|
body: L,
|
|
12670
12672
|
error: v,
|
|
12671
12673
|
url: E
|
|
12672
12674
|
});
|
|
12673
|
-
return
|
|
12675
|
+
return N;
|
|
12674
12676
|
},
|
|
12675
12677
|
retryCount: S,
|
|
12676
12678
|
retryDelay: l,
|
|
@@ -12769,14 +12771,14 @@ function R5({
|
|
|
12769
12771
|
}
|
|
12770
12772
|
const _P = () => ({ openDeposit: X((t) => {
|
|
12771
12773
|
}, []) }), UP = () => ({ openWithdraw: X((t) => {
|
|
12772
|
-
}, []) }), Hn = "MPC", mu = "EVM",
|
|
12774
|
+
}, []) }), Hn = "MPC", mu = "EVM", N5 = "spot", Jl = "perpetual";
|
|
12773
12775
|
/**
|
|
12774
12776
|
* @license lucide-react v0.540.0 - ISC
|
|
12775
12777
|
*
|
|
12776
12778
|
* This source code is licensed under the ISC license.
|
|
12777
12779
|
* See the LICENSE file in the root directory of this source tree.
|
|
12778
12780
|
*/
|
|
12779
|
-
const
|
|
12781
|
+
const O5 = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), I5 = (e) => e.replace(
|
|
12780
12782
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
12781
12783
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
12782
12784
|
), ef = (e) => {
|
|
@@ -12851,7 +12853,7 @@ const F5 = (e, t) => {
|
|
|
12851
12853
|
ref: s,
|
|
12852
12854
|
iconNode: t,
|
|
12853
12855
|
className: Cp(
|
|
12854
|
-
`lucide-${
|
|
12856
|
+
`lucide-${O5(ef(e))}`,
|
|
12855
12857
|
`lucide-${e}`,
|
|
12856
12858
|
r
|
|
12857
12859
|
),
|
|
@@ -13400,12 +13402,12 @@ function nr() {
|
|
|
13400
13402
|
let [e] = oe(at);
|
|
13401
13403
|
return Pe(() => () => e.dispose(), [e]), e;
|
|
13402
13404
|
}
|
|
13403
|
-
let
|
|
13405
|
+
let Ne = (e, t) => {
|
|
13404
13406
|
zt.isServer ? Pe(e, t) : ks(e, t);
|
|
13405
13407
|
};
|
|
13406
13408
|
function rr(e) {
|
|
13407
13409
|
let t = ce(e);
|
|
13408
|
-
return
|
|
13410
|
+
return Ne(() => {
|
|
13409
13411
|
t.current = e;
|
|
13410
13412
|
}, [e]), t;
|
|
13411
13413
|
}
|
|
@@ -13457,7 +13459,7 @@ function xt(e, t, ...n) {
|
|
|
13457
13459
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
13458
13460
|
throw Error.captureStackTrace && Error.captureStackTrace(r, xt), r;
|
|
13459
13461
|
}
|
|
13460
|
-
var
|
|
13462
|
+
var Ns = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Ns || {}), En = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(En || {});
|
|
13461
13463
|
function ct() {
|
|
13462
13464
|
let e = bx();
|
|
13463
13465
|
return X((t) => mx({ mergeRefs: e, ...t }), [e]);
|
|
@@ -13565,7 +13567,7 @@ function yx(e) {
|
|
|
13565
13567
|
return Z.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
13566
13568
|
}
|
|
13567
13569
|
function Xr(e) {
|
|
13568
|
-
return e ===
|
|
13570
|
+
return e === Nt || e === Symbol.for("react.fragment");
|
|
13569
13571
|
}
|
|
13570
13572
|
function wx(e) {
|
|
13571
13573
|
return Xr(e.type);
|
|
@@ -13623,9 +13625,9 @@ function Rx({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
|
|
|
13623
13625
|
let [s, i] = oe(null), c = nr();
|
|
13624
13626
|
return Pe(() => {
|
|
13625
13627
|
if (r && s) return c.addEventListener(s, "reset", r);
|
|
13626
|
-
}, [s, t, r]), Z.createElement(Tx, null, Z.createElement(
|
|
13628
|
+
}, [s, t, r]), Z.createElement(Tx, null, Z.createElement(Nx, { setForm: i, formId: t }), Yp(e).map(([a, u]) => Z.createElement(Qp, { features: xu.Hidden, ...xn({ key: a, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: a, value: u, ...o }) })));
|
|
13627
13629
|
}
|
|
13628
|
-
function
|
|
13630
|
+
function Nx({ setForm: e, formId: t }) {
|
|
13629
13631
|
return Pe(() => {
|
|
13630
13632
|
if (t) {
|
|
13631
13633
|
let n = document.getElementById(t);
|
|
@@ -13637,9 +13639,9 @@ function Ox({ setForm: e, formId: t }) {
|
|
|
13637
13639
|
r && e(r);
|
|
13638
13640
|
} });
|
|
13639
13641
|
}
|
|
13640
|
-
let
|
|
13642
|
+
let Ox = De(void 0);
|
|
13641
13643
|
function Jp() {
|
|
13642
|
-
return Ee(
|
|
13644
|
+
return Ee(Ox);
|
|
13643
13645
|
}
|
|
13644
13646
|
function eh(e) {
|
|
13645
13647
|
return typeof e != "object" || e === null ? !1 : "nodeType" in e;
|
|
@@ -13720,7 +13722,7 @@ function kx() {
|
|
|
13720
13722
|
let Dx = "p";
|
|
13721
13723
|
function jx(e, t) {
|
|
13722
13724
|
let n = Qn(), r = vu(), { id: o = `headlessui-description-${n}`, ...s } = e, i = oh(), c = Pt(t);
|
|
13723
|
-
|
|
13725
|
+
Ne(() => i.register(o), [o, i.register]);
|
|
13724
13726
|
let a = In({ ...i.slot, disabled: r || !1 }), u = { ref: c, ...i.props, id: o };
|
|
13725
13727
|
return ct()({ ourProps: u, theirProps: s, slot: a, defaultTag: Dx, name: i.name || "Description" });
|
|
13726
13728
|
}
|
|
@@ -13756,7 +13758,7 @@ let zx = "label";
|
|
|
13756
13758
|
function Hx(e, t) {
|
|
13757
13759
|
var n;
|
|
13758
13760
|
let r = Qn(), o = sh(), s = Jp(), i = vu(), { id: c = `headlessui-label-${r}`, htmlFor: a = s ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: u = !1, ...l } = e, f = Pt(t);
|
|
13759
|
-
|
|
13761
|
+
Ne(() => o.register(c), [c, o.register]);
|
|
13760
13762
|
let p = pe((m) => {
|
|
13761
13763
|
let w = m.currentTarget;
|
|
13762
13764
|
if (!(m.target !== m.currentTarget && Mx(m.target)) && (nf(w) && m.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(m), nf(w))) {
|
|
@@ -13792,7 +13794,7 @@ function of(e) {
|
|
|
13792
13794
|
}
|
|
13793
13795
|
function Zx(e, t, n = !1) {
|
|
13794
13796
|
let [r, o] = oe(() => of(t));
|
|
13795
|
-
return
|
|
13797
|
+
return Ne(() => {
|
|
13796
13798
|
if (!t || !e) return;
|
|
13797
13799
|
let s = at();
|
|
13798
13800
|
return s.requestAnimationFrame(function i() {
|
|
@@ -14047,7 +14049,7 @@ function i2(e) {
|
|
|
14047
14049
|
}
|
|
14048
14050
|
function hh(e, t) {
|
|
14049
14051
|
let n = Qn(), r = Pu.get(t), [o, s] = Ze(r, X((i) => [r.selectors.isTop(i, n), r.selectors.inStack(i, n)], [r, n]));
|
|
14050
|
-
return
|
|
14052
|
+
return Ne(() => {
|
|
14051
14053
|
if (e) return r.actions.push(n), () => r.actions.pop(n);
|
|
14052
14054
|
}, [r, e, n]), e ? s ? o : !0 : !1;
|
|
14053
14055
|
}
|
|
@@ -14066,7 +14068,7 @@ function df(e) {
|
|
|
14066
14068
|
}
|
|
14067
14069
|
function a2(e, { allowed: t, disallowed: n } = {}) {
|
|
14068
14070
|
let r = hh(e, "inert-others");
|
|
14069
|
-
|
|
14071
|
+
Ne(() => {
|
|
14070
14072
|
var o, s;
|
|
14071
14073
|
if (!r) return;
|
|
14072
14074
|
let i = at();
|
|
@@ -14340,7 +14342,7 @@ function R2() {
|
|
|
14340
14342
|
});
|
|
14341
14343
|
} } : {};
|
|
14342
14344
|
}
|
|
14343
|
-
function
|
|
14345
|
+
function N2() {
|
|
14344
14346
|
return { before({ doc: e, d: t }) {
|
|
14345
14347
|
t.style(e.documentElement, "overflow", "hidden");
|
|
14346
14348
|
} };
|
|
@@ -14360,7 +14362,7 @@ let jn = A2(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
|
14360
14362
|
}, SCROLL_PREVENT(e) {
|
|
14361
14363
|
let t = { doc: e.doc, d: e.d, meta() {
|
|
14362
14364
|
return e.computedMeta;
|
|
14363
|
-
} }, n = [R2(), T2(),
|
|
14365
|
+
} }, n = [R2(), T2(), N2()];
|
|
14364
14366
|
n.forEach(({ before: r }) => r == null ? void 0 : r(t)), n.forEach(({ after: r }) => r == null ? void 0 : r(t));
|
|
14365
14367
|
}, SCROLL_ALLOW({ d: e }) {
|
|
14366
14368
|
e.dispose();
|
|
@@ -14375,15 +14377,15 @@ jn.subscribe(() => {
|
|
|
14375
14377
|
(o && !r || !o && r) && jn.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && jn.dispatch("TEARDOWN", n);
|
|
14376
14378
|
}
|
|
14377
14379
|
});
|
|
14378
|
-
function
|
|
14380
|
+
function O2(e, t, n = () => ({ containers: [] })) {
|
|
14379
14381
|
let r = $2(jn), o = t ? r.get(t) : void 0, s = o ? o.count > 0 : !1;
|
|
14380
|
-
return
|
|
14382
|
+
return Ne(() => {
|
|
14381
14383
|
if (!(!t || !e)) return jn.dispatch("PUSH", t, n), () => jn.dispatch("POP", t, n);
|
|
14382
14384
|
}, [e, t]), s;
|
|
14383
14385
|
}
|
|
14384
14386
|
function I2(e, t, n = () => [document.body]) {
|
|
14385
14387
|
let r = hh(e, "scroll-lock");
|
|
14386
|
-
|
|
14388
|
+
O2(r, t, (o) => {
|
|
14387
14389
|
var s;
|
|
14388
14390
|
return { containers: [...(s = o.containers) != null ? s : [], n] };
|
|
14389
14391
|
});
|
|
@@ -14417,7 +14419,7 @@ function wh(e) {
|
|
|
14417
14419
|
}
|
|
14418
14420
|
function vh(e, t, n, r) {
|
|
14419
14421
|
let [o, s] = oe(n), { hasFlag: i, addFlag: c, removeFlag: a } = B2(e && o ? 3 : 0), u = ce(!1), l = ce(!1), f = nr();
|
|
14420
|
-
return
|
|
14422
|
+
return Ne(() => {
|
|
14421
14423
|
var p;
|
|
14422
14424
|
if (e) {
|
|
14423
14425
|
if (n && s(!0), !t) {
|
|
@@ -14633,10 +14635,10 @@ function Q2(e, t, n) {
|
|
|
14633
14635
|
n === void 0 && (n = !1);
|
|
14634
14636
|
const r = Dr(e), o = Ru(e), s = Tu(o);
|
|
14635
14637
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
14636
|
-
return t.reference[s] > t.floating[s] && (i =
|
|
14638
|
+
return t.reference[s] > t.floating[s] && (i = Os(i)), [i, Os(i)];
|
|
14637
14639
|
}
|
|
14638
14640
|
function J2(e) {
|
|
14639
|
-
const t =
|
|
14641
|
+
const t = Os(e);
|
|
14640
14642
|
return [fc(e), t, fc(t)];
|
|
14641
14643
|
}
|
|
14642
14644
|
function fc(e) {
|
|
@@ -14660,7 +14662,7 @@ function rE(e, t, n, r) {
|
|
|
14660
14662
|
let s = nE(Cn(e), n === "start", r);
|
|
14661
14663
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(fc)))), s;
|
|
14662
14664
|
}
|
|
14663
|
-
function
|
|
14665
|
+
function Os(e) {
|
|
14664
14666
|
return e.replace(/left|right|bottom|top/g, (t) => Y2[t]);
|
|
14665
14667
|
}
|
|
14666
14668
|
function oE(e) {
|
|
@@ -14702,29 +14704,29 @@ function Is(e) {
|
|
|
14702
14704
|
* tabbable 6.3.0
|
|
14703
14705
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
14704
14706
|
*/
|
|
14705
|
-
var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], dc = /* @__PURE__ */ sE.join(","), Sh = typeof Element > "u",
|
|
14707
|
+
var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], dc = /* @__PURE__ */ sE.join(","), Sh = typeof Element > "u", No = Sh ? function() {
|
|
14706
14708
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Cs = !Sh && Element.prototype.getRootNode ? function(e) {
|
|
14707
14709
|
var t;
|
|
14708
14710
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
14709
14711
|
} : function(e) {
|
|
14710
14712
|
return e == null ? void 0 : e.ownerDocument;
|
|
14711
|
-
},
|
|
14713
|
+
}, Oo = function(t, n) {
|
|
14712
14714
|
var r;
|
|
14713
14715
|
n === void 0 && (n = !0);
|
|
14714
|
-
var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), s = o === "" || o === "true", i = s || n && t &&
|
|
14716
|
+
var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), s = o === "" || o === "true", i = s || n && t && Oo(t.parentNode);
|
|
14715
14717
|
return i;
|
|
14716
14718
|
}, iE = function(t) {
|
|
14717
14719
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
14718
14720
|
return r === "" || r === "true";
|
|
14719
14721
|
}, aE = function(t, n, r) {
|
|
14720
|
-
if (
|
|
14722
|
+
if (Oo(t))
|
|
14721
14723
|
return [];
|
|
14722
14724
|
var o = Array.prototype.slice.apply(t.querySelectorAll(dc));
|
|
14723
|
-
return n &&
|
|
14725
|
+
return n && No.call(t, dc) && o.unshift(t), o = o.filter(r), o;
|
|
14724
14726
|
}, pc = function(t, n, r) {
|
|
14725
14727
|
for (var o = [], s = Array.from(t); s.length; ) {
|
|
14726
14728
|
var i = s.shift();
|
|
14727
|
-
if (!
|
|
14729
|
+
if (!Oo(i, !1))
|
|
14728
14730
|
if (i.tagName === "SLOT") {
|
|
14729
14731
|
var c = i.assignedElements(), a = c.length ? c : i.children, u = pc(a, !0, r);
|
|
14730
14732
|
r.flatten ? o.push.apply(o, u) : o.push({
|
|
@@ -14732,10 +14734,10 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
14732
14734
|
candidates: u
|
|
14733
14735
|
});
|
|
14734
14736
|
} else {
|
|
14735
|
-
var l =
|
|
14737
|
+
var l = No.call(i, dc);
|
|
14736
14738
|
l && r.filter(i) && (n || !t.includes(i)) && o.push(i);
|
|
14737
14739
|
var f = i.shadowRoot || // check for an undisclosed shadow
|
|
14738
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(i), p = !
|
|
14740
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(i), p = !Oo(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(i));
|
|
14739
14741
|
if (f && p) {
|
|
14740
14742
|
var d = pc(f === !0 ? i.children : f.children, !0, r);
|
|
14741
14743
|
r.flatten ? o.push.apply(o, d) : o.push({
|
|
@@ -14824,8 +14826,8 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
14824
14826
|
}
|
|
14825
14827
|
if (getComputedStyle(t).visibility === "hidden")
|
|
14826
14828
|
return !0;
|
|
14827
|
-
var i =
|
|
14828
|
-
if (
|
|
14829
|
+
var i = No.call(t, "details>summary:first-of-type"), c = i ? t.parentElement : t;
|
|
14830
|
+
if (No.call(c, "details:not([open]) *"))
|
|
14829
14831
|
return !0;
|
|
14830
14832
|
if (!r || r === "full" || // full-native can run this branch when it falls through in case
|
|
14831
14833
|
// Element#checkVisibility is unsupported
|
|
@@ -14853,7 +14855,7 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
14853
14855
|
for (var r = 0; r < n.children.length; r++) {
|
|
14854
14856
|
var o = n.children.item(r);
|
|
14855
14857
|
if (o.tagName === "LEGEND")
|
|
14856
|
-
return
|
|
14858
|
+
return No.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
|
|
14857
14859
|
}
|
|
14858
14860
|
return !0;
|
|
14859
14861
|
}
|
|
@@ -14864,7 +14866,7 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
14864
14866
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
14865
14867
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
14866
14868
|
// note related to `candidateSelectors`)
|
|
14867
|
-
|
|
14869
|
+
Oo(n) || lE(n) || gE(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
14868
14870
|
fE(n) || yE(n));
|
|
14869
14871
|
}, Pf = function(t, n) {
|
|
14870
14872
|
return !(mE(n) || Ah(n) < 0 || !wE(t, n));
|
|
@@ -14885,7 +14887,7 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
14885
14887
|
}), r.sort(uE).reduce(function(o, s) {
|
|
14886
14888
|
return s.isScope ? o.push.apply(o, s.content) : o.push(s.content), o;
|
|
14887
14889
|
}, []).concat(n);
|
|
14888
|
-
},
|
|
14890
|
+
}, Nh = function(t, n) {
|
|
14889
14891
|
n = n || {};
|
|
14890
14892
|
var r;
|
|
14891
14893
|
return n.getShadowRoot ? r = pc([t], n.includeContainer, {
|
|
@@ -15073,7 +15075,7 @@ const EE = (e) => ({
|
|
|
15073
15075
|
}, d = Ru(o), h = Tu(d), m = await i.getDimensions(u), w = d === "y", S = w ? "top" : "left", x = w ? "bottom" : "right", E = w ? "clientHeight" : "clientWidth", R = s.reference[h] + s.reference[d] - p[d] - s.floating[h], B = p[d] - s.reference[d], F = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
15074
15076
|
let L = F ? F[E] : 0;
|
|
15075
15077
|
(!L || !await (i.isElement == null ? void 0 : i.isElement(F))) && (L = c.floating[E] || s.floating[h]);
|
|
15076
|
-
const b = R / 2 - B / 2, g = L / 2 - m[h] / 2 - 1, v = pn(f[S], g),
|
|
15078
|
+
const b = R / 2 - B / 2, g = L / 2 - m[h] / 2 - 1, v = pn(f[S], g), N = pn(f[x], g), T = v, O = L - m[h] - N, I = L / 2 - m[h] / 2 + b, y = lc(T, I, O), A = !a.arrow && Dr(o) != null && I !== y && s.reference[h] / 2 - (I < T ? v : N) - m[h] / 2 < 0, $ = A ? I < T ? I - T : I - O : 0;
|
|
15077
15079
|
return {
|
|
15078
15080
|
[d]: p[d] + $,
|
|
15079
15081
|
data: {
|
|
@@ -15110,7 +15112,7 @@ const EE = (e) => ({
|
|
|
15110
15112
|
} = or(e, t);
|
|
15111
15113
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
15112
15114
|
return {};
|
|
15113
|
-
const S = Cn(o), x = on(c), E = Cn(c) === c, R = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), B = p || (E || !m ? [
|
|
15115
|
+
const S = Cn(o), x = on(c), E = Cn(c) === c, R = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), B = p || (E || !m ? [Os(c)] : J2(c)), F = h !== "none";
|
|
15114
15116
|
!p && F && B.push(...rE(c, m, h, R));
|
|
15115
15117
|
const L = [c, ...B], b = await pi(t, w), g = [];
|
|
15116
15118
|
let v = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -15122,8 +15124,8 @@ const EE = (e) => ({
|
|
|
15122
15124
|
placement: o,
|
|
15123
15125
|
overflows: g
|
|
15124
15126
|
}], !g.every((I) => I <= 0)) {
|
|
15125
|
-
var
|
|
15126
|
-
const I = (((
|
|
15127
|
+
var N, T;
|
|
15128
|
+
const I = (((N = s.flip) == null ? void 0 : N.index) || 0) + 1, y = L[I];
|
|
15127
15129
|
if (y && (!(f === "alignment" ? x !== on(y) : !1) || // We leave the current main axis only if every placement on that axis
|
|
15128
15130
|
// overflows the main axis.
|
|
15129
15131
|
v.every((P) => on(P.placement) === x ? P.overflows[0] > 0 : !0)))
|
|
@@ -15140,8 +15142,8 @@ const EE = (e) => ({
|
|
|
15140
15142
|
if (!A)
|
|
15141
15143
|
switch (d) {
|
|
15142
15144
|
case "bestFit": {
|
|
15143
|
-
var
|
|
15144
|
-
const $ = (
|
|
15145
|
+
var O;
|
|
15146
|
+
const $ = (O = v.filter((P) => {
|
|
15145
15147
|
if (F) {
|
|
15146
15148
|
const M = on(P.placement);
|
|
15147
15149
|
return M === x || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -15149,7 +15151,7 @@ const EE = (e) => ({
|
|
|
15149
15151
|
M === "y";
|
|
15150
15152
|
}
|
|
15151
15153
|
return !0;
|
|
15152
|
-
}).map((P) => [P.placement, P.overflows.filter((M) => M > 0).reduce((M, D) => M + D, 0)]).sort((P, M) => P[1] - M[1])[0]) == null ? void 0 :
|
|
15154
|
+
}).map((P) => [P.placement, P.overflows.filter((M) => M > 0).reduce((M, D) => M + D, 0)]).sort((P, M) => P[1] - M[1])[0]) == null ? void 0 : O[0];
|
|
15153
15155
|
$ && (A = $);
|
|
15154
15156
|
break;
|
|
15155
15157
|
}
|
|
@@ -15297,8 +15299,8 @@ const AE = function(e) {
|
|
|
15297
15299
|
const x = m - l.top - l.bottom, E = h - l.left - l.right, R = pn(m - l[w], x), B = pn(h - l[S], E), F = !t.middlewareData.shift;
|
|
15298
15300
|
let L = R, b = B;
|
|
15299
15301
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (b = E), (r = t.middlewareData.shift) != null && r.enabled.y && (L = x), F && !p) {
|
|
15300
|
-
const v = je(l.left, 0),
|
|
15301
|
-
d ? b = h - 2 * (v !== 0 ||
|
|
15302
|
+
const v = je(l.left, 0), N = je(l.right, 0), T = je(l.top, 0), O = je(l.bottom, 0);
|
|
15303
|
+
d ? b = h - 2 * (v !== 0 || N !== 0 ? v + N : je(l.left, l.right)) : L = m - 2 * (T !== 0 || O !== 0 ? T + O : je(l.top, l.bottom));
|
|
15302
15304
|
}
|
|
15303
15305
|
await a({
|
|
15304
15306
|
...t,
|
|
@@ -15314,7 +15316,7 @@ const AE = function(e) {
|
|
|
15314
15316
|
}
|
|
15315
15317
|
};
|
|
15316
15318
|
};
|
|
15317
|
-
function
|
|
15319
|
+
function Oh(e) {
|
|
15318
15320
|
const t = Et(e);
|
|
15319
15321
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
15320
15322
|
const o = We(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, c = Ro(n) !== s || Ro(r) !== i;
|
|
@@ -15324,41 +15326,41 @@ function Nh(e) {
|
|
|
15324
15326
|
$: c
|
|
15325
15327
|
};
|
|
15326
15328
|
}
|
|
15327
|
-
function
|
|
15329
|
+
function Nu(e) {
|
|
15328
15330
|
return be(e) ? e : e.contextElement;
|
|
15329
15331
|
}
|
|
15330
15332
|
function Er(e) {
|
|
15331
|
-
const t =
|
|
15333
|
+
const t = Nu(e);
|
|
15332
15334
|
if (!We(t))
|
|
15333
15335
|
return Ht(1);
|
|
15334
15336
|
const n = t.getBoundingClientRect(), {
|
|
15335
15337
|
width: r,
|
|
15336
15338
|
height: o,
|
|
15337
15339
|
$: s
|
|
15338
|
-
} =
|
|
15340
|
+
} = Oh(t);
|
|
15339
15341
|
let i = (s ? Ro(n.width) : n.width) / r, c = (s ? Ro(n.height) : n.height) / o;
|
|
15340
15342
|
return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
15341
15343
|
x: i,
|
|
15342
15344
|
y: c
|
|
15343
15345
|
};
|
|
15344
15346
|
}
|
|
15345
|
-
const
|
|
15347
|
+
const NE = /* @__PURE__ */ Ht(0);
|
|
15346
15348
|
function Ih(e) {
|
|
15347
15349
|
const t = Xe(e);
|
|
15348
|
-
return !fi() || !t.visualViewport ?
|
|
15350
|
+
return !fi() || !t.visualViewport ? NE : {
|
|
15349
15351
|
x: t.visualViewport.offsetLeft,
|
|
15350
15352
|
y: t.visualViewport.offsetTop
|
|
15351
15353
|
};
|
|
15352
15354
|
}
|
|
15353
|
-
function
|
|
15355
|
+
function OE(e, t, n) {
|
|
15354
15356
|
return t === void 0 && (t = !1), !n || t && n !== Xe(e) ? !1 : t;
|
|
15355
15357
|
}
|
|
15356
15358
|
function Kn(e, t, n, r) {
|
|
15357
15359
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
15358
|
-
const o = e.getBoundingClientRect(), s =
|
|
15360
|
+
const o = e.getBoundingClientRect(), s = Nu(e);
|
|
15359
15361
|
let i = Ht(1);
|
|
15360
15362
|
t && (r ? be(r) && (i = Er(r)) : i = Er(e));
|
|
15361
|
-
const c =
|
|
15363
|
+
const c = OE(s, n, r) ? Ih(s) : Ht(0);
|
|
15362
15364
|
let a = (o.left + c.x) / i.x, u = (o.top + c.y) / i.y, l = o.width / i.x, f = o.height / i.y;
|
|
15363
15365
|
if (s) {
|
|
15364
15366
|
const p = Xe(s), d = r && be(r) ? Xe(r) : r;
|
|
@@ -15516,7 +15518,7 @@ function jE(e) {
|
|
|
15516
15518
|
const {
|
|
15517
15519
|
width: t,
|
|
15518
15520
|
height: n
|
|
15519
|
-
} =
|
|
15521
|
+
} = Oh(e);
|
|
15520
15522
|
return {
|
|
15521
15523
|
width: t,
|
|
15522
15524
|
height: n
|
|
@@ -15659,7 +15661,7 @@ function Lh(e, t, n, r) {
|
|
|
15659
15661
|
elementResize: i = typeof ResizeObserver == "function",
|
|
15660
15662
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
15661
15663
|
animationFrame: a = !1
|
|
15662
|
-
} = r, u =
|
|
15664
|
+
} = r, u = Nu(e), l = o || s ? [...u ? An(u) : [], ...An(t)] : [];
|
|
15663
15665
|
l.forEach((S) => {
|
|
15664
15666
|
o && S.addEventListener("scroll", n, {
|
|
15665
15667
|
passive: !0
|
|
@@ -15735,7 +15737,7 @@ function Bs(e, t) {
|
|
|
15735
15737
|
function kh(e) {
|
|
15736
15738
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
15737
15739
|
}
|
|
15738
|
-
function
|
|
15740
|
+
function Nf(e, t) {
|
|
15739
15741
|
const n = kh(e);
|
|
15740
15742
|
return Math.round(t * n) / n;
|
|
15741
15743
|
}
|
|
@@ -15772,7 +15774,7 @@ function Dh(e) {
|
|
|
15772
15774
|
P !== F.current && (F.current = P, m(P));
|
|
15773
15775
|
}, []), E = U.useCallback((P) => {
|
|
15774
15776
|
P !== L.current && (L.current = P, S(P));
|
|
15775
|
-
}, []), R = s || h, B = i || w, F = U.useRef(null), L = U.useRef(null), b = U.useRef(l), g = a != null, v = sa(a),
|
|
15777
|
+
}, []), R = s || h, B = i || w, F = U.useRef(null), L = U.useRef(null), b = U.useRef(l), g = a != null, v = sa(a), N = sa(o), T = sa(u), O = U.useCallback(() => {
|
|
15776
15778
|
if (!F.current || !L.current)
|
|
15777
15779
|
return;
|
|
15778
15780
|
const P = {
|
|
@@ -15780,7 +15782,7 @@ function Dh(e) {
|
|
|
15780
15782
|
strategy: n,
|
|
15781
15783
|
middleware: p
|
|
15782
15784
|
};
|
|
15783
|
-
|
|
15785
|
+
N.current && (P.platform = N.current), YE(F.current, L.current, P).then((M) => {
|
|
15784
15786
|
const D = {
|
|
15785
15787
|
...M,
|
|
15786
15788
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -15793,7 +15795,7 @@ function Dh(e) {
|
|
|
15793
15795
|
f(D);
|
|
15794
15796
|
}));
|
|
15795
15797
|
});
|
|
15796
|
-
}, [p, t, n,
|
|
15798
|
+
}, [p, t, n, N, T]);
|
|
15797
15799
|
fs(() => {
|
|
15798
15800
|
u === !1 && b.current.isPositioned && (b.current.isPositioned = !1, f((P) => ({
|
|
15799
15801
|
...P,
|
|
@@ -15806,10 +15808,10 @@ function Dh(e) {
|
|
|
15806
15808
|
}), []), fs(() => {
|
|
15807
15809
|
if (R && (F.current = R), B && (L.current = B), R && B) {
|
|
15808
15810
|
if (v.current)
|
|
15809
|
-
return v.current(R, B,
|
|
15810
|
-
|
|
15811
|
+
return v.current(R, B, O);
|
|
15812
|
+
O();
|
|
15811
15813
|
}
|
|
15812
|
-
}, [R, B,
|
|
15814
|
+
}, [R, B, O, v, g]);
|
|
15813
15815
|
const y = U.useMemo(() => ({
|
|
15814
15816
|
reference: F,
|
|
15815
15817
|
floating: L,
|
|
@@ -15826,7 +15828,7 @@ function Dh(e) {
|
|
|
15826
15828
|
};
|
|
15827
15829
|
if (!A.floating)
|
|
15828
15830
|
return P;
|
|
15829
|
-
const M =
|
|
15831
|
+
const M = Nf(A.floating, l.x), D = Nf(A.floating, l.y);
|
|
15830
15832
|
return c ? {
|
|
15831
15833
|
...P,
|
|
15832
15834
|
transform: "translate(" + M + "px, " + D + "px)",
|
|
@@ -15841,11 +15843,11 @@ function Dh(e) {
|
|
|
15841
15843
|
}, [n, c, A.floating, l.x, l.y]);
|
|
15842
15844
|
return U.useMemo(() => ({
|
|
15843
15845
|
...l,
|
|
15844
|
-
update:
|
|
15846
|
+
update: O,
|
|
15845
15847
|
refs: y,
|
|
15846
15848
|
elements: A,
|
|
15847
15849
|
floatingStyles: $
|
|
15848
|
-
}), [l,
|
|
15850
|
+
}), [l, O, y, A, $]);
|
|
15849
15851
|
}
|
|
15850
15852
|
const QE = (e) => {
|
|
15851
15853
|
function t(n) {
|
|
@@ -15868,7 +15870,7 @@ const QE = (e) => {
|
|
|
15868
15870
|
}).fn(n) : {};
|
|
15869
15871
|
}
|
|
15870
15872
|
};
|
|
15871
|
-
},
|
|
15873
|
+
}, Ou = (e, t) => ({
|
|
15872
15874
|
...VE(e),
|
|
15873
15875
|
options: [e, t]
|
|
15874
15876
|
}), jh = (e, t) => ({
|
|
@@ -15900,18 +15902,18 @@ function zh(e) {
|
|
|
15900
15902
|
}, []);
|
|
15901
15903
|
}
|
|
15902
15904
|
var hc = typeof document < "u" ? ks : Pe;
|
|
15903
|
-
let
|
|
15905
|
+
let Of = !1, r8 = 0;
|
|
15904
15906
|
const If = () => (
|
|
15905
15907
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
15906
15908
|
// on <React 18
|
|
15907
15909
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + r8++
|
|
15908
15910
|
);
|
|
15909
15911
|
function o8() {
|
|
15910
|
-
const [e, t] = U.useState(() =>
|
|
15912
|
+
const [e, t] = U.useState(() => Of ? If() : void 0);
|
|
15911
15913
|
return hc(() => {
|
|
15912
15914
|
e == null && t(If());
|
|
15913
15915
|
}, []), U.useEffect(() => {
|
|
15914
|
-
|
|
15916
|
+
Of = !0;
|
|
15915
15917
|
}, []), e;
|
|
15916
15918
|
}
|
|
15917
15919
|
const s8 = Uh.useId, i8 = s8 || o8;
|
|
@@ -16144,14 +16146,14 @@ const y8 = (e) => ({
|
|
|
16144
16146
|
return {};
|
|
16145
16147
|
const E = {
|
|
16146
16148
|
...t,
|
|
16147
|
-
...await
|
|
16149
|
+
...await Ou(-d.offsetTop - p.clientTop - f.reference.height / 2 - d.offsetHeight / 2 - s).fn(t)
|
|
16148
16150
|
}, R = await oa(Mf(E, h.scrollHeight + m + p.clientTop), l), B = await oa(E, {
|
|
16149
16151
|
...l,
|
|
16150
16152
|
elementContext: "reference"
|
|
16151
|
-
}), F = je(0, R.top), L = E.y + F, v = (h.scrollHeight > h.clientHeight ? (
|
|
16153
|
+
}), F = je(0, R.top), L = E.y + F, v = (h.scrollHeight > h.clientHeight ? (N) => N : Ro)(je(0, h.scrollHeight + (w && x || S ? m * 2 : 0) - F - je(0, R.bottom)));
|
|
16152
16154
|
if (h.style.maxHeight = v + "px", h.scrollTop = F, o) {
|
|
16153
|
-
const
|
|
16154
|
-
eo.flushSync(() => o(
|
|
16155
|
+
const N = h.offsetHeight < d.offsetHeight * pn(c, n.current.length) - 1 || B.top >= -a || B.bottom >= -a;
|
|
16156
|
+
eo.flushSync(() => o(N));
|
|
16155
16157
|
}
|
|
16156
16158
|
return r && (r.current = await oa(Mf({
|
|
16157
16159
|
...E,
|
|
@@ -16243,7 +16245,7 @@ function S8(e = null) {
|
|
|
16243
16245
|
var i;
|
|
16244
16246
|
return (i = s == null ? void 0 : s.outerHTML) != null ? i : s;
|
|
16245
16247
|
})]);
|
|
16246
|
-
|
|
16248
|
+
Ne(() => {
|
|
16247
16249
|
t == null || t(n ?? null);
|
|
16248
16250
|
}, [t, n]);
|
|
16249
16251
|
let r = Ee(jr);
|
|
@@ -16254,16 +16256,16 @@ function $8({ children: e, enabled: t = !0 }) {
|
|
|
16254
16256
|
let [n, r] = oe(null), [o, s] = oe(0), i = ce(null), [c, a] = oe(null);
|
|
16255
16257
|
A8(c);
|
|
16256
16258
|
let u = t && n !== null && c !== null, { to: l = "bottom", gap: f = 0, offset: p = 0, padding: d = 0, inner: h } = T8(n, c), [m, w = "center"] = l.split(" ");
|
|
16257
|
-
|
|
16259
|
+
Ne(() => {
|
|
16258
16260
|
u && s(0);
|
|
16259
16261
|
}, [u]);
|
|
16260
|
-
let { refs: S, floatingStyles: x, context: E } = b8({ open: u, placement: m === "selection" ? w === "center" ? "bottom" : `bottom-${w}` : w === "center" ? `${m}` : `${m}-${w}`, strategy: "absolute", transform: !1, middleware: [
|
|
16261
|
-
var T,
|
|
16262
|
-
if (!
|
|
16262
|
+
let { refs: S, floatingStyles: x, context: E } = b8({ open: u, placement: m === "selection" ? w === "center" ? "bottom" : `bottom-${w}` : w === "center" ? `${m}` : `${m}-${w}`, strategy: "absolute", transform: !1, middleware: [Ou({ mainAxis: m === "selection" ? 0 : f, crossAxis: p }), jh({ padding: d }), m !== "selection" && _h({ padding: d }), m === "selection" && h ? y8({ ...h, padding: d, overflowRef: i, offset: o, minItemsVisible: Ff, referenceOverflowThreshold: d, onFallbackChange(N) {
|
|
16263
|
+
var T, O;
|
|
16264
|
+
if (!N) return;
|
|
16263
16265
|
let I = E.elements.floating;
|
|
16264
16266
|
if (!I) return;
|
|
16265
16267
|
let y = parseFloat(getComputedStyle(I).scrollPaddingBottom) || 0, A = Math.min(Ff, I.childElementCount), $ = 0, P = 0;
|
|
16266
|
-
for (let M of (
|
|
16268
|
+
for (let M of (O = (T = E.elements.floating) == null ? void 0 : T.childNodes) != null ? O : []) if (bn(M)) {
|
|
16267
16269
|
let D = M.offsetTop, _ = D + M.clientHeight + y, j = I.scrollTop, H = j + I.clientHeight;
|
|
16268
16270
|
if (D >= j && _ <= H) A--;
|
|
16269
16271
|
else {
|
|
@@ -16275,17 +16277,17 @@ function $8({ children: e, enabled: t = !0 }) {
|
|
|
16275
16277
|
let D = $ * A - P + y;
|
|
16276
16278
|
return M >= D ? M : D;
|
|
16277
16279
|
});
|
|
16278
|
-
} }) : null, JE({ padding: d, apply({ availableWidth:
|
|
16279
|
-
Object.assign(
|
|
16280
|
+
} }) : null, JE({ padding: d, apply({ availableWidth: N, availableHeight: T, elements: O }) {
|
|
16281
|
+
Object.assign(O.floating.style, { overflow: "auto", maxWidth: `${N}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${T}px)` });
|
|
16280
16282
|
} })].filter(Boolean), whileElementsMounted: Lh }), [R = m, B = w] = E.placement.split("-");
|
|
16281
16283
|
m === "selection" && (R = "selection");
|
|
16282
|
-
let F = te(() => ({ anchor: [R, B].filter(Boolean).join(" ") }), [R, B]), L = w8(E, { overflowRef: i, onChange: s }), { getReferenceProps: b, getFloatingProps: g } = g8([L]), v = pe((
|
|
16283
|
-
a(
|
|
16284
|
+
let F = te(() => ({ anchor: [R, B].filter(Boolean).join(" ") }), [R, B]), L = w8(E, { overflowRef: i, onChange: s }), { getReferenceProps: b, getFloatingProps: g } = g8([L]), v = pe((N) => {
|
|
16285
|
+
a(N), S.setFloating(N);
|
|
16284
16286
|
});
|
|
16285
16287
|
return U.createElement(Iu.Provider, { value: r }, U.createElement(jr.Provider, { value: { setFloating: v, setReference: S.setReference, styles: x, getReferenceProps: b, getFloatingProps: g, slot: F } }, e));
|
|
16286
16288
|
}
|
|
16287
16289
|
function A8(e) {
|
|
16288
|
-
|
|
16290
|
+
Ne(() => {
|
|
16289
16291
|
if (!e) return;
|
|
16290
16292
|
let t = new MutationObserver(() => {
|
|
16291
16293
|
let n = window.getComputedStyle(e).maxHeight, r = parseFloat(n);
|
|
@@ -16334,7 +16336,7 @@ function aa(e, t, n = void 0) {
|
|
|
16334
16336
|
}
|
|
16335
16337
|
return [n, null];
|
|
16336
16338
|
}), s = te(() => o(e, t)[0], [e, t]), [i = s, c] = oe();
|
|
16337
|
-
return
|
|
16339
|
+
return Ne(() => {
|
|
16338
16340
|
let [a, u] = o(e, t);
|
|
16339
16341
|
if (c(a), !!u) return u(c);
|
|
16340
16342
|
}, [e, t]), i;
|
|
@@ -16373,7 +16375,7 @@ function Bu() {
|
|
|
16373
16375
|
function Vh({ value: e, children: t }) {
|
|
16374
16376
|
return Z.createElement(Cu.Provider, { value: e }, t);
|
|
16375
16377
|
}
|
|
16376
|
-
function
|
|
16378
|
+
function N8(e) {
|
|
16377
16379
|
throw new Error("Unexpected object: " + e);
|
|
16378
16380
|
}
|
|
16379
16381
|
var $e = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))($e || {});
|
|
@@ -16406,7 +16408,7 @@ function as(e, t) {
|
|
|
16406
16408
|
case 5:
|
|
16407
16409
|
return null;
|
|
16408
16410
|
default:
|
|
16409
|
-
|
|
16411
|
+
N8(e);
|
|
16410
16412
|
}
|
|
16411
16413
|
}
|
|
16412
16414
|
function Gh(e) {
|
|
@@ -16417,9 +16419,9 @@ function Gh(e) {
|
|
|
16417
16419
|
});
|
|
16418
16420
|
}), [t]);
|
|
16419
16421
|
}
|
|
16420
|
-
let
|
|
16422
|
+
let O8 = De(!1);
|
|
16421
16423
|
function I8() {
|
|
16422
|
-
return Ee(
|
|
16424
|
+
return Ee(O8);
|
|
16423
16425
|
}
|
|
16424
16426
|
function C8(e) {
|
|
16425
16427
|
let t = I8(), n = Ee(Zh), [r, o] = oe(() => {
|
|
@@ -16438,7 +16440,7 @@ function C8(e) {
|
|
|
16438
16440
|
t || n !== null && o(n.current);
|
|
16439
16441
|
}, [n, o, t]), r;
|
|
16440
16442
|
}
|
|
16441
|
-
let qh =
|
|
16443
|
+
let qh = Nt, B8 = nt(function(e, t) {
|
|
16442
16444
|
let { ownerDocument: n = null, ...r } = e, o = ce(null), s = Pt(Lx((p) => {
|
|
16443
16445
|
o.current = p;
|
|
16444
16446
|
}), t), i = ac(o.current), c = n ?? i, a = C8(c), u = Ee(k8), l = nr(), f = ct();
|
|
@@ -16453,7 +16455,7 @@ function M8(e, t) {
|
|
|
16453
16455
|
let n = Pt(t), { enabled: r = !0, ownerDocument: o, ...s } = e, i = ct();
|
|
16454
16456
|
return r ? Z.createElement(B8, { ...s, ownerDocument: o, ref: n }) : i({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: qh, name: "Portal" });
|
|
16455
16457
|
}
|
|
16456
|
-
let F8 =
|
|
16458
|
+
let F8 = Nt, Zh = De(null);
|
|
16457
16459
|
function L8(e, t) {
|
|
16458
16460
|
let { target: n, ...r } = e, o = { ref: Pt(t) }, s = ct();
|
|
16459
16461
|
return Z.createElement(Zh.Provider, { value: n }, s({ ourProps: o, theirProps: r, defaultTag: F8, name: "Popover.Group" }));
|
|
@@ -16487,7 +16489,7 @@ function Kh() {
|
|
|
16487
16489
|
}
|
|
16488
16490
|
function H8() {
|
|
16489
16491
|
let e = ce(!1);
|
|
16490
|
-
return
|
|
16492
|
+
return Ne(() => (e.current = !0, () => {
|
|
16491
16493
|
e.current = !1;
|
|
16492
16494
|
}), []), e;
|
|
16493
16495
|
}
|
|
@@ -16541,25 +16543,25 @@ function Qh(e, t) {
|
|
|
16541
16543
|
});
|
|
16542
16544
|
return te(() => ({ children: r, register: c, unregister: i, onStart: f, onStop: p, wait: u, chains: l }), [c, i, r, f, p, l, u]);
|
|
16543
16545
|
}
|
|
16544
|
-
let Jh =
|
|
16546
|
+
let Jh = Nt, em = Ns.RenderStrategy;
|
|
16545
16547
|
function q8(e, t) {
|
|
16546
16548
|
var n, r;
|
|
16547
|
-
let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: c, afterLeave: a, enter: u, enterFrom: l, enterTo: f, entered: p, leave: d, leaveFrom: h, leaveTo: m, ...w } = e, [S, x] = oe(null), E = ce(null), R = Xh(e), B = Pt(...R ? [E, t, x] : t === null ? [] : [t]), F = (n = w.unmount) == null || n ? En.Unmount : En.Hidden, { show: L, appear: b, initial: g } = V8(), [v,
|
|
16548
|
-
|
|
16549
|
+
let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: c, afterLeave: a, enter: u, enterFrom: l, enterTo: f, entered: p, leave: d, leaveFrom: h, leaveTo: m, ...w } = e, [S, x] = oe(null), E = ce(null), R = Xh(e), B = Pt(...R ? [E, t, x] : t === null ? [] : [t]), F = (n = w.unmount) == null || n ? En.Unmount : En.Hidden, { show: L, appear: b, initial: g } = V8(), [v, N] = oe(L ? "visible" : "hidden"), T = G8(), { register: O, unregister: I } = T;
|
|
16550
|
+
Ne(() => O(E), [O, E]), Ne(() => {
|
|
16549
16551
|
if (F === En.Hidden && E.current) {
|
|
16550
16552
|
if (L && v !== "visible") {
|
|
16551
|
-
|
|
16553
|
+
N("visible");
|
|
16552
16554
|
return;
|
|
16553
16555
|
}
|
|
16554
|
-
return xt(v, { hidden: () => I(E), visible: () =>
|
|
16556
|
+
return xt(v, { hidden: () => I(E), visible: () => O(E) });
|
|
16555
16557
|
}
|
|
16556
|
-
}, [v, E,
|
|
16558
|
+
}, [v, E, O, I, L, F]);
|
|
16557
16559
|
let y = Kh();
|
|
16558
|
-
|
|
16560
|
+
Ne(() => {
|
|
16559
16561
|
if (R && y && v === "visible" && E.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
16560
16562
|
}, [E, v, y, R]);
|
|
16561
16563
|
let A = g && !b, $ = b && L && g, P = ce(!1), M = Qh(() => {
|
|
16562
|
-
P.current || (
|
|
16564
|
+
P.current || (N("hidden"), I(E));
|
|
16563
16565
|
}, T), D = pe((q) => {
|
|
16564
16566
|
P.current = !0;
|
|
16565
16567
|
let ee = q ? "enter" : "leave";
|
|
@@ -16570,7 +16572,7 @@ function q8(e, t) {
|
|
|
16570
16572
|
let ee = q ? "enter" : "leave";
|
|
16571
16573
|
P.current = !1, M.onStop(E, ee, (ie) => {
|
|
16572
16574
|
ie === "enter" ? i == null || i() : ie === "leave" && (a == null || a());
|
|
16573
|
-
}), ee === "leave" && !gi(M) && (
|
|
16575
|
+
}), ee === "leave" && !gi(M) && (N("hidden"), I(E));
|
|
16574
16576
|
});
|
|
16575
16577
|
Pe(() => {
|
|
16576
16578
|
R && o || (D(L), _(L));
|
|
@@ -16588,11 +16590,11 @@ function Z8(e, t) {
|
|
|
16588
16590
|
let [l, f] = oe(n ? "visible" : "hidden"), p = Qh(() => {
|
|
16589
16591
|
n || f("hidden");
|
|
16590
16592
|
}), [d, h] = oe(!0), m = ce([n]);
|
|
16591
|
-
|
|
16593
|
+
Ne(() => {
|
|
16592
16594
|
d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n), h(!1));
|
|
16593
16595
|
}, [m, n]);
|
|
16594
16596
|
let w = te(() => ({ show: n, appear: r, initial: d }), [n, r, d]);
|
|
16595
|
-
|
|
16597
|
+
Ne(() => {
|
|
16596
16598
|
n ? f("visible") : !gi(p) && i.current !== null && f("hidden");
|
|
16597
16599
|
}, [n, p]);
|
|
16598
16600
|
let S = { unmount: o }, x = pe(() => {
|
|
@@ -16602,7 +16604,7 @@ function Z8(e, t) {
|
|
|
16602
16604
|
var B;
|
|
16603
16605
|
d && h(!1), (B = e.beforeLeave) == null || B.call(e);
|
|
16604
16606
|
}), R = ct();
|
|
16605
|
-
return Z.createElement(bi.Provider, { value: p }, Z.createElement(mi.Provider, { value: w }, R({ ourProps: { ...S, as:
|
|
16607
|
+
return Z.createElement(bi.Provider, { value: p }, Z.createElement(mi.Provider, { value: w }, R({ ourProps: { ...S, as: Nt, children: Z.createElement(tm, { ref: a, ...S, ...s, beforeEnter: x, beforeLeave: E }) }, theirProps: {}, defaultTag: Nt, features: em, visible: l === "visible", name: "Transition" })));
|
|
16606
16608
|
}
|
|
16607
16609
|
function Y8(e, t) {
|
|
16608
16610
|
let n = Ee(mi) !== null, r = Bu() !== null;
|
|
@@ -16827,22 +16829,22 @@ function qo(e) {
|
|
|
16827
16829
|
}
|
|
16828
16830
|
return t;
|
|
16829
16831
|
}
|
|
16830
|
-
let n3 =
|
|
16832
|
+
let n3 = Nt;
|
|
16831
16833
|
function r3(e, t) {
|
|
16832
16834
|
let n = Qn(), r = vu(), { value: o, defaultValue: s, form: i, name: c, onChange: a, by: u, invalid: l = !1, disabled: f = r || !1, horizontal: p = !1, multiple: d = !1, __demoMode: h = !1, ...m } = e;
|
|
16833
16835
|
const w = p ? "horizontal" : "vertical";
|
|
16834
16836
|
let S = Pt(t), x = xx(s), [E = d ? [] : void 0, R] = vx(o, a, x), B = om({ id: n, __demoMode: h }), F = ce({ static: !1, hold: !1 }), L = ce(/* @__PURE__ */ new Map()), b = qx(u), g = X((j) => xt(v.mode, { [Pn.Multi]: () => E.some((H) => b(H, j)), [Pn.Single]: () => b(E, j) }), [E]), v = In({ value: E, disabled: f, invalid: l, mode: d ? Pn.Multi : Pn.Single, orientation: w, onChange: R, compare: b, isSelected: g, optionsPropsRef: F, listRef: L });
|
|
16835
|
-
|
|
16837
|
+
Ne(() => {
|
|
16836
16838
|
B.state.dataRef.current = v;
|
|
16837
16839
|
}, [v]);
|
|
16838
|
-
let
|
|
16839
|
-
v2(
|
|
16840
|
+
let N = Ze(B, (j) => j.listboxState), T = Pu.get(null), O = Ze(T, X((j) => T.selectors.isTop(j, n), [T, n])), [I, y] = Ze(B, (j) => [j.buttonElement, j.optionsElement]);
|
|
16841
|
+
v2(O, [I, y], (j, H) => {
|
|
16840
16842
|
B.send({ type: nm.CloseListbox }), bh(H, Su.Loose) || (j.preventDefault(), I == null || I.focus());
|
|
16841
16843
|
});
|
|
16842
|
-
let A = In({ open:
|
|
16844
|
+
let A = In({ open: N === _e.Open, disabled: f, invalid: l, value: E }), [$, P] = Ux({ inherit: !0 }), M = { ref: S }, D = X(() => {
|
|
16843
16845
|
if (x !== void 0) return R == null ? void 0 : R(x);
|
|
16844
16846
|
}, [R, x]), _ = ct();
|
|
16845
|
-
return Z.createElement(P, { value: $, props: { htmlFor: I == null ? void 0 : I.id }, slot: { open:
|
|
16847
|
+
return Z.createElement(P, { value: $, props: { htmlFor: I == null ? void 0 : I.id }, slot: { open: N === _e.Open, disabled: f } }, Z.createElement($8, null, Z.createElement(rm.Provider, { value: B }, Z.createElement(yi.Provider, { value: v }, Z.createElement(Vh, { value: xt(N, { [_e.Open]: Tt.Open, [_e.Closed]: Tt.Closed }) }, c != null && E != null && Z.createElement(Rx, { disabled: f, data: { [c]: E }, form: i, onReset: D }), _({ ourProps: M, theirProps: m, slot: A, defaultTag: n3, name: "Listbox" }))))));
|
|
16846
16848
|
}
|
|
16847
16849
|
let o3 = "button";
|
|
16848
16850
|
function s3(e, t) {
|
|
@@ -16874,10 +16876,10 @@ function s3(e, t) {
|
|
|
16874
16876
|
}), x = Yx((y) => {
|
|
16875
16877
|
var A;
|
|
16876
16878
|
s.state.listboxState === _e.Open ? (bs(() => s.actions.closeListbox()), (A = s.state.buttonElement) == null || A.focus({ preventScroll: !0 })) : (y.preventDefault(), s.actions.openListbox({ focus: $e.Nothing }));
|
|
16877
|
-
}), E = pe((y) => y.preventDefault()), R = ih([i]), B = kx(), { isFocusVisible: F, focusProps: L } = ix({ autoFocus: a }), { isHovered: b, hoverProps: g } = sx({ isDisabled: c }), { pressed: v, pressProps:
|
|
16879
|
+
}), E = pe((y) => y.preventDefault()), R = ih([i]), B = kx(), { isFocusVisible: F, focusProps: L } = ix({ autoFocus: a }), { isHovered: b, hoverProps: g } = sx({ isDisabled: c }), { pressed: v, pressProps: N } = px({ disabled: c }), T = In({ open: p === _e.Open, active: v || p === _e.Open, disabled: c, invalid: o.invalid, value: o.value, hover: b, focus: F, autofocus: a }), O = Ze(s, (y) => y.listboxState === _e.Open), I = Zp(f(), { ref: l, id: i, type: S2(e, d), "aria-haspopup": "listbox", "aria-controls": h == null ? void 0 : h.id, "aria-expanded": O, "aria-labelledby": R, "aria-describedby": B, disabled: c || void 0, autoFocus: a, onKeyDown: w, onKeyUp: S, onKeyPress: E }, x, L, g, N);
|
|
16878
16880
|
return ct()({ ourProps: I, theirProps: u, slot: T, defaultTag: o3, name: "Listbox.Button" });
|
|
16879
16881
|
}
|
|
16880
|
-
let sm = De(!1), i3 = "div", a3 =
|
|
16882
|
+
let sm = De(!1), i3 = "div", a3 = Ns.RenderStrategy | Ns.Static;
|
|
16881
16883
|
function c3(e, t) {
|
|
16882
16884
|
let n = Qn(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: s = !1, modal: i = !0, transition: c = !1, ...a } = e, u = v8(o), [l, f] = oe(null);
|
|
16883
16885
|
u && (s = !0);
|
|
@@ -16887,16 +16889,16 @@ function c3(e, t) {
|
|
|
16887
16889
|
I2(L, E);
|
|
16888
16890
|
let b = S ? !1 : i && h === _e.Open;
|
|
16889
16891
|
a2(b, { allowed: X(() => [m, w], [m, w]) });
|
|
16890
|
-
let g = Ze(d, d.selectors.didButtonMove) ? !1 : B, v = Ze(d, d.selectors.hasFrozenValue) && !e.static,
|
|
16892
|
+
let g = Ze(d, d.selectors.didButtonMove) ? !1 : B, v = Ze(d, d.selectors.hasFrozenValue) && !e.static, N = Wh(v, p.value), T = X((z) => p.compare(N, z), [p.compare, N]), O = Ze(d, (z) => {
|
|
16891
16893
|
var q;
|
|
16892
16894
|
if (u == null || !((q = u == null ? void 0 : u.to) != null && q.includes("selection"))) return null;
|
|
16893
16895
|
let ee = z.options.findIndex((ie) => T(ie.dataRef.current.value));
|
|
16894
16896
|
return ee === -1 && (ee = 0), ee;
|
|
16895
16897
|
}), I = (() => {
|
|
16896
16898
|
if (u == null) return;
|
|
16897
|
-
if (
|
|
16899
|
+
if (O === null) return { ...u, inner: void 0 };
|
|
16898
16900
|
let z = Array.from(p.listRef.current.values());
|
|
16899
|
-
return { ...u, inner: { listRef: { current: z }, index:
|
|
16901
|
+
return { ...u, inner: { listRef: { current: z }, index: O } };
|
|
16900
16902
|
})(), [y, A] = S8(I), $ = P8(), P = Pt(t, u ? y : null, d.actions.setOptionsElement, f), M = nr();
|
|
16901
16903
|
Pe(() => {
|
|
16902
16904
|
let z = w;
|
|
@@ -16943,12 +16945,12 @@ function l3(e, t) {
|
|
|
16943
16945
|
} }), m = Pt(t, p, (v) => {
|
|
16944
16946
|
v ? a.listRef.current.set(r, v) : a.listRef.current.delete(r);
|
|
16945
16947
|
}), w = Ze(u, (v) => u.selectors.shouldScrollIntoView(v, r));
|
|
16946
|
-
|
|
16948
|
+
Ne(() => {
|
|
16947
16949
|
if (w) return at().requestAnimationFrame(() => {
|
|
16948
|
-
var v,
|
|
16949
|
-
(
|
|
16950
|
+
var v, N;
|
|
16951
|
+
(N = (v = p.current) == null ? void 0 : v.scrollIntoView) == null || N.call(v, { block: "nearest" });
|
|
16950
16952
|
});
|
|
16951
|
-
}, [w, p]),
|
|
16953
|
+
}, [w, p]), Ne(() => {
|
|
16952
16954
|
if (!c) return u.actions.registerOption(r, h), () => u.actions.unregisterOption(r);
|
|
16953
16955
|
}, [h, r, c]);
|
|
16954
16956
|
let S = pe((v) => {
|
|
@@ -16964,7 +16966,7 @@ function l3(e, t) {
|
|
|
16964
16966
|
}), L = In({ active: l, focus: l, selected: f, disabled: o, selectedOption: f && c }), b = c ? {} : { id: r, ref: m, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: S, onFocus: x, onPointerEnter: R, onMouseEnter: R, onPointerMove: B, onMouseMove: B, onPointerLeave: F, onMouseLeave: F }, g = ct();
|
|
16965
16967
|
return !f && c ? null : g({ ourProps: b, theirProps: i, slot: L, defaultTag: u3, name: "Listbox.Option" });
|
|
16966
16968
|
}
|
|
16967
|
-
let f3 =
|
|
16969
|
+
let f3 = Nt;
|
|
16968
16970
|
function d3(e, t) {
|
|
16969
16971
|
let { options: n, placeholder: r, ...o } = e, s = { ref: Pt(t) }, i = qo("ListboxSelectedOption"), c = In({}), a = i.value === void 0 || i.value === null || i.mode === Pn.Multi && Array.isArray(i.value) && i.value.length === 0, u = ct();
|
|
16970
16972
|
return Z.createElement(sm.Provider, { value: !0 }, u({ ourProps: s, theirProps: { ...o, children: Z.createElement(Z.Fragment, null, r && a ? r : n) }, slot: c, defaultTag: f3, name: "ListboxSelectedOption" }));
|
|
@@ -17126,7 +17128,7 @@ const x3 = {
|
|
|
17126
17128
|
/* @__PURE__ */ C.jsx(
|
|
17127
17129
|
Mu,
|
|
17128
17130
|
{
|
|
17129
|
-
as:
|
|
17131
|
+
as: Nt,
|
|
17130
17132
|
enter: "transition ease-out duration-100",
|
|
17131
17133
|
enterFrom: "transform opacity-0 scale-95",
|
|
17132
17134
|
enterTo: "transform opacity-100 scale-100",
|
|
@@ -17256,7 +17258,7 @@ const x3 = {
|
|
|
17256
17258
|
/* @__PURE__ */ C.jsx(
|
|
17257
17259
|
Mu,
|
|
17258
17260
|
{
|
|
17259
|
-
as:
|
|
17261
|
+
as: Nt,
|
|
17260
17262
|
enter: "transition ease-out duration-100",
|
|
17261
17263
|
enterFrom: "transform opacity-0 scale-95",
|
|
17262
17264
|
enterTo: "transform opacity-100 scale-100",
|
|
@@ -17498,7 +17500,7 @@ const x3 = {
|
|
|
17498
17500
|
/* @__PURE__ */ C.jsx(
|
|
17499
17501
|
Mu,
|
|
17500
17502
|
{
|
|
17501
|
-
as:
|
|
17503
|
+
as: Nt,
|
|
17502
17504
|
enter: "transition ease-out duration-100",
|
|
17503
17505
|
enterFrom: "transform opacity-0 scale-95",
|
|
17504
17506
|
enterTo: "transform opacity-100 scale-100",
|
|
@@ -17545,8 +17547,8 @@ var wi = {}, T3 = function() {
|
|
|
17545
17547
|
"text/plain": "Text",
|
|
17546
17548
|
"text/html": "Url",
|
|
17547
17549
|
default: "Text"
|
|
17548
|
-
},
|
|
17549
|
-
function
|
|
17550
|
+
}, N3 = "Copy to clipboard: #{key}, Enter";
|
|
17551
|
+
function O3(e) {
|
|
17550
17552
|
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
17551
17553
|
return e.replace(/#{\s*key\s*}/g, t);
|
|
17552
17554
|
}
|
|
@@ -17573,7 +17575,7 @@ function I3(e, t) {
|
|
|
17573
17575
|
try {
|
|
17574
17576
|
window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), a = !0;
|
|
17575
17577
|
} catch (f) {
|
|
17576
|
-
n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), r =
|
|
17578
|
+
n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), r = O3("message" in t ? t.message : N3), window.prompt(r, e);
|
|
17577
17579
|
}
|
|
17578
17580
|
} finally {
|
|
17579
17581
|
i && (typeof i.removeRange == "function" ? i.removeRange(s) : i.removeAllRanges()), c && document.body.removeChild(c), o();
|
|
@@ -18423,7 +18425,7 @@ var e4 = function() {
|
|
|
18423
18425
|
E.current = I, typeof n == "function" ? n(I) : n && (n.current = I);
|
|
18424
18426
|
},
|
|
18425
18427
|
[n]
|
|
18426
|
-
), [F, L] = Z.useState(!1), { margin: b, cells: g, numCells: v, calculatedImageSettings:
|
|
18428
|
+
), [F, L] = Z.useState(!1), { margin: b, cells: g, numCells: v, calculatedImageSettings: N } = Em({
|
|
18427
18429
|
value: o,
|
|
18428
18430
|
level: i,
|
|
18429
18431
|
minVersion: l,
|
|
@@ -18439,10 +18441,10 @@ var e4 = function() {
|
|
|
18439
18441
|
if (!y)
|
|
18440
18442
|
return;
|
|
18441
18443
|
let A = g;
|
|
18442
|
-
const $ = R.current, P =
|
|
18443
|
-
P &&
|
|
18444
|
+
const $ = R.current, P = N != null && $ !== null && $.complete && $.naturalHeight !== 0 && $.naturalWidth !== 0;
|
|
18445
|
+
P && N.excavation != null && (A = xm(
|
|
18444
18446
|
g,
|
|
18445
|
-
|
|
18447
|
+
N.excavation
|
|
18446
18448
|
));
|
|
18447
18449
|
const M = window.devicePixelRatio || 1;
|
|
18448
18450
|
I.height = I.width = s * M;
|
|
@@ -18451,20 +18453,20 @@ var e4 = function() {
|
|
|
18451
18453
|
_.forEach(function(H, K) {
|
|
18452
18454
|
H && y.fillRect(K + b, j + b, 1, 1);
|
|
18453
18455
|
});
|
|
18454
|
-
}),
|
|
18456
|
+
}), N && (y.globalAlpha = N.opacity), P && y.drawImage(
|
|
18455
18457
|
$,
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18458
|
+
N.x + b,
|
|
18459
|
+
N.y + b,
|
|
18460
|
+
N.w,
|
|
18461
|
+
N.h
|
|
18460
18462
|
);
|
|
18461
18463
|
}
|
|
18462
18464
|
}), Z.useEffect(() => {
|
|
18463
18465
|
L(!1);
|
|
18464
18466
|
}, [x]);
|
|
18465
18467
|
const T = wc({ height: s, width: s }, w);
|
|
18466
|
-
let
|
|
18467
|
-
return x != null && (
|
|
18468
|
+
let O = null;
|
|
18469
|
+
return x != null && (O = /* @__PURE__ */ Z.createElement(
|
|
18468
18470
|
"img",
|
|
18469
18471
|
{
|
|
18470
18472
|
src: x,
|
|
@@ -18474,7 +18476,7 @@ var e4 = function() {
|
|
|
18474
18476
|
L(!0);
|
|
18475
18477
|
},
|
|
18476
18478
|
ref: R,
|
|
18477
|
-
crossOrigin:
|
|
18479
|
+
crossOrigin: N == null ? void 0 : N.crossOrigin
|
|
18478
18480
|
}
|
|
18479
18481
|
)), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(
|
|
18480
18482
|
"canvas",
|
|
@@ -18485,7 +18487,7 @@ var e4 = function() {
|
|
|
18485
18487
|
ref: B,
|
|
18486
18488
|
role: "img"
|
|
18487
18489
|
}, S)
|
|
18488
|
-
),
|
|
18490
|
+
), O);
|
|
18489
18491
|
}
|
|
18490
18492
|
);
|
|
18491
18493
|
t4.displayName = "QRCodeCanvas";
|
|
@@ -18599,7 +18601,7 @@ function xc(e) {
|
|
|
18599
18601
|
}
|
|
18600
18602
|
return t;
|
|
18601
18603
|
}
|
|
18602
|
-
function
|
|
18604
|
+
function Or(e, t) {
|
|
18603
18605
|
if (!e || !t)
|
|
18604
18606
|
return !1;
|
|
18605
18607
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
@@ -18694,7 +18696,7 @@ const Am = () => ({
|
|
|
18694
18696
|
)
|
|
18695
18697
|
});
|
|
18696
18698
|
function Tm(e, t) {
|
|
18697
|
-
const n =
|
|
18699
|
+
const n = Nh(e, Am()), r = n.length;
|
|
18698
18700
|
if (r === 0) return;
|
|
18699
18701
|
const o = xc(_t(e)), s = n.indexOf(o), i = s === -1 ? t === 1 ? 0 : r - 1 : s + t;
|
|
18700
18702
|
return n[i];
|
|
@@ -18707,10 +18709,10 @@ function g4(e) {
|
|
|
18707
18709
|
}
|
|
18708
18710
|
function ua(e, t) {
|
|
18709
18711
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
18710
|
-
return !r || !
|
|
18712
|
+
return !r || !Or(n, r);
|
|
18711
18713
|
}
|
|
18712
18714
|
function y4(e) {
|
|
18713
|
-
|
|
18715
|
+
Nh(e, Am()).forEach((n) => {
|
|
18714
18716
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
18715
18717
|
});
|
|
18716
18718
|
}
|
|
@@ -18806,7 +18808,7 @@ function R4(e, t) {
|
|
|
18806
18808
|
restMs: f = 0,
|
|
18807
18809
|
move: p = !0
|
|
18808
18810
|
} = t, d = _u(), h = ju(), m = us(u), w = us(a), S = us(n), x = us(f), E = U.useRef(), R = U.useRef(-1), B = U.useRef(), F = U.useRef(-1), L = U.useRef(!0), b = U.useRef(!1), g = U.useRef(() => {
|
|
18809
|
-
}), v = U.useRef(!1),
|
|
18811
|
+
}), v = U.useRef(!1), N = jt(() => {
|
|
18810
18812
|
var $;
|
|
18811
18813
|
const P = ($ = o.current.openEvent) == null ? void 0 : $.type;
|
|
18812
18814
|
return (P == null ? void 0 : P.includes("mouse")) && P !== "mousedown";
|
|
@@ -18825,18 +18827,18 @@ function R4(e, t) {
|
|
|
18825
18827
|
}, [c, s]), U.useEffect(() => {
|
|
18826
18828
|
if (!c || !m.current || !n) return;
|
|
18827
18829
|
function $(M) {
|
|
18828
|
-
|
|
18830
|
+
N() && r(!1, M, "hover");
|
|
18829
18831
|
}
|
|
18830
18832
|
const P = _t(i.floating).documentElement;
|
|
18831
18833
|
return P.addEventListener("mouseleave", $), () => {
|
|
18832
18834
|
P.removeEventListener("mouseleave", $);
|
|
18833
18835
|
};
|
|
18834
|
-
}, [i.floating, n, r, c, m,
|
|
18836
|
+
}, [i.floating, n, r, c, m, N]);
|
|
18835
18837
|
const T = U.useCallback(function($, P, M) {
|
|
18836
18838
|
P === void 0 && (P = !0), M === void 0 && (M = "hover");
|
|
18837
18839
|
const D = la(w.current, "close", E.current);
|
|
18838
18840
|
D && !B.current ? (bt(R), R.current = window.setTimeout(() => r(!1, $, M), D)) : P && (bt(R), r(!1, $, M));
|
|
18839
|
-
}, [w, r]),
|
|
18841
|
+
}, [w, r]), O = jt(() => {
|
|
18840
18842
|
g.current(), B.current = void 0;
|
|
18841
18843
|
}), I = jt(() => {
|
|
18842
18844
|
if (b.current) {
|
|
@@ -18868,7 +18870,7 @@ function R4(e, t) {
|
|
|
18868
18870
|
x: j.clientX,
|
|
18869
18871
|
y: j.clientY,
|
|
18870
18872
|
onClose() {
|
|
18871
|
-
I(),
|
|
18873
|
+
I(), O(), y() || T(j, !0, "safe-polygon");
|
|
18872
18874
|
}
|
|
18873
18875
|
});
|
|
18874
18876
|
const V = B.current;
|
|
@@ -18877,7 +18879,7 @@ function R4(e, t) {
|
|
|
18877
18879
|
};
|
|
18878
18880
|
return;
|
|
18879
18881
|
}
|
|
18880
|
-
(E.current === "touch" ? !
|
|
18882
|
+
(E.current === "touch" ? !Or(i.floating, j.relatedTarget) : !0) && T(j);
|
|
18881
18883
|
}
|
|
18882
18884
|
function M(j) {
|
|
18883
18885
|
y() || o.current.floatingContext && (m.current == null || m.current({
|
|
@@ -18886,7 +18888,7 @@ function R4(e, t) {
|
|
|
18886
18888
|
x: j.clientX,
|
|
18887
18889
|
y: j.clientY,
|
|
18888
18890
|
onClose() {
|
|
18889
|
-
I(),
|
|
18891
|
+
I(), O(), y() || T(j);
|
|
18890
18892
|
}
|
|
18891
18893
|
})(j));
|
|
18892
18894
|
}
|
|
@@ -18904,9 +18906,9 @@ function R4(e, t) {
|
|
|
18904
18906
|
n && j.removeEventListener("mouseleave", M), p && j.removeEventListener("mousemove", $), j.removeEventListener("mouseenter", $), j.removeEventListener("mouseleave", P), H && (H.removeEventListener("mouseleave", M), H.removeEventListener("mouseenter", D), H.removeEventListener("mouseleave", _));
|
|
18905
18907
|
};
|
|
18906
18908
|
}
|
|
18907
|
-
}, [i, c, e, l, p, T,
|
|
18909
|
+
}, [i, c, e, l, p, T, O, I, r, n, S, d, w, m, o, y, x]), Wt(() => {
|
|
18908
18910
|
var $;
|
|
18909
|
-
if (c && n && ($ = m.current) != null && ($ = $.__options) != null && $.blockPointerEvents &&
|
|
18911
|
+
if (c && n && ($ = m.current) != null && ($ = $.__options) != null && $.blockPointerEvents && N()) {
|
|
18910
18912
|
b.current = !0;
|
|
18911
18913
|
const M = i.floating;
|
|
18912
18914
|
if (be(i.domReference) && M) {
|
|
@@ -18919,11 +18921,11 @@ function R4(e, t) {
|
|
|
18919
18921
|
};
|
|
18920
18922
|
}
|
|
18921
18923
|
}
|
|
18922
|
-
}, [c, n, h, i, d, m,
|
|
18923
|
-
n || (E.current = void 0, v.current = !1,
|
|
18924
|
-
}, [n,
|
|
18925
|
-
|
|
18926
|
-
}, [c, i.domReference,
|
|
18924
|
+
}, [c, n, h, i, d, m, N]), Wt(() => {
|
|
18925
|
+
n || (E.current = void 0, v.current = !1, O(), I());
|
|
18926
|
+
}, [n, O, I]), U.useEffect(() => () => {
|
|
18927
|
+
O(), bt(R), bt(F), I();
|
|
18928
|
+
}, [c, i.domReference, O, I]);
|
|
18927
18929
|
const A = U.useMemo(() => {
|
|
18928
18930
|
function $(P) {
|
|
18929
18931
|
E.current = P.pointerType;
|
|
@@ -18976,8 +18978,8 @@ const Rm = {
|
|
|
18976
18978
|
...t,
|
|
18977
18979
|
...s
|
|
18978
18980
|
});
|
|
18979
|
-
}),
|
|
18980
|
-
function
|
|
18981
|
+
}), Nm = /* @__PURE__ */ U.createContext(null), Jf = /* @__PURE__ */ Zo("portal");
|
|
18982
|
+
function N4(e) {
|
|
18981
18983
|
e === void 0 && (e = {});
|
|
18982
18984
|
const {
|
|
18983
18985
|
id: t,
|
|
@@ -19003,13 +19005,13 @@ function O4(e) {
|
|
|
19003
19005
|
l.id = r, l.setAttribute(Jf, ""), a = u || a, a.appendChild(l), c.current = l, i(l);
|
|
19004
19006
|
}, [t, n, r, o]), s;
|
|
19005
19007
|
}
|
|
19006
|
-
function
|
|
19008
|
+
function O4(e) {
|
|
19007
19009
|
const {
|
|
19008
19010
|
children: t,
|
|
19009
19011
|
id: n,
|
|
19010
19012
|
root: r,
|
|
19011
19013
|
preserveTabOrder: o = !0
|
|
19012
|
-
} = e, s =
|
|
19014
|
+
} = e, s = N4({
|
|
19013
19015
|
id: n,
|
|
19014
19016
|
root: r
|
|
19015
19017
|
}), [i, c] = U.useState(null), a = U.useRef(null), u = U.useRef(null), l = U.useRef(null), f = U.useRef(null), p = i == null ? void 0 : i.modal, d = i == null ? void 0 : i.open, h = (
|
|
@@ -19030,7 +19032,7 @@ function N4(e) {
|
|
|
19030
19032
|
};
|
|
19031
19033
|
}, [s, o, p]), U.useEffect(() => {
|
|
19032
19034
|
s && (d || Gf(s));
|
|
19033
|
-
}, [d, s]), /* @__PURE__ */ C.jsxs(
|
|
19035
|
+
}, [d, s]), /* @__PURE__ */ C.jsxs(Nm.Provider, {
|
|
19034
19036
|
value: U.useMemo(() => ({
|
|
19035
19037
|
preserveTabOrder: o,
|
|
19036
19038
|
beforeOutsideRef: a,
|
|
@@ -19070,7 +19072,7 @@ function N4(e) {
|
|
|
19070
19072
|
})]
|
|
19071
19073
|
});
|
|
19072
19074
|
}
|
|
19073
|
-
const I4 = () => U.useContext(
|
|
19075
|
+
const I4 = () => U.useContext(Nm);
|
|
19074
19076
|
function ed(e) {
|
|
19075
19077
|
return We(e.target) && e.target.tagName === "BUTTON";
|
|
19076
19078
|
}
|
|
@@ -19201,11 +19203,11 @@ function L4(e, t) {
|
|
|
19201
19203
|
_ = V;
|
|
19202
19204
|
}
|
|
19203
19205
|
if (D.length && be(P) && !a4(P) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
19204
|
-
!
|
|
19206
|
+
!Or(P, o.floating) && // If the target root element contains none of the markers, then the
|
|
19205
19207
|
// element was injected after the floating element rendered.
|
|
19206
|
-
Array.from(D).every((V) => !
|
|
19208
|
+
Array.from(D).every((V) => !Or(_, V)))
|
|
19207
19209
|
return;
|
|
19208
|
-
if (We(P) &&
|
|
19210
|
+
if (We(P) && O) {
|
|
19209
19211
|
const V = cn(P), z = Et(P), q = /auto|scroll/, ee = V || q.test(z.overflowX), ie = V || q.test(z.overflowY), ye = ee && P.clientWidth > 0 && P.scrollWidth > P.clientWidth, ve = ie && P.clientHeight > 0 && P.scrollHeight > P.clientHeight, he = z.direction === "rtl", ae = ve && (he ? I.offsetX <= P.offsetWidth - P.clientWidth : I.offsetX > P.clientWidth), me = ye && I.offsetY > P.clientHeight;
|
|
19210
19212
|
if (ae || me)
|
|
19211
19213
|
return;
|
|
@@ -19229,7 +19231,7 @@ function L4(e, t) {
|
|
|
19229
19231
|
return;
|
|
19230
19232
|
}
|
|
19231
19233
|
r(!1, I, "outside-press");
|
|
19232
|
-
}),
|
|
19234
|
+
}), N = jt((I) => {
|
|
19233
19235
|
var y;
|
|
19234
19236
|
const A = () => {
|
|
19235
19237
|
var $;
|
|
@@ -19259,7 +19261,7 @@ function L4(e, t) {
|
|
|
19259
19261
|
);
|
|
19260
19262
|
}
|
|
19261
19263
|
const P = _t(o.floating);
|
|
19262
|
-
c && (P.addEventListener("keydown", B ? g : b, B), P.addEventListener("compositionstart", A), P.addEventListener("compositionend", $)), S && P.addEventListener(u, F ?
|
|
19264
|
+
c && (P.addEventListener("keydown", B ? g : b, B), P.addEventListener("compositionstart", A), P.addEventListener("compositionend", $)), S && P.addEventListener(u, F ? N : v, F);
|
|
19263
19265
|
let M = [];
|
|
19264
19266
|
return p && (be(o.domReference) && (M = An(o.domReference)), be(o.floating) && (M = M.concat(An(o.floating))), !be(o.reference) && o.reference && o.reference.contextElement && (M = M.concat(An(o.reference.contextElement)))), M = M.filter((D) => {
|
|
19265
19267
|
var _;
|
|
@@ -19269,11 +19271,11 @@ function L4(e, t) {
|
|
|
19269
19271
|
passive: !0
|
|
19270
19272
|
});
|
|
19271
19273
|
}), () => {
|
|
19272
|
-
c && (P.removeEventListener("keydown", B ? g : b, B), P.removeEventListener("compositionstart", A), P.removeEventListener("compositionend", $)), S && P.removeEventListener(u, F ?
|
|
19274
|
+
c && (P.removeEventListener("keydown", B ? g : b, B), P.removeEventListener("compositionstart", A), P.removeEventListener("compositionend", $)), S && P.removeEventListener(u, F ? N : v, F), M.forEach((D) => {
|
|
19273
19275
|
D.removeEventListener("scroll", y);
|
|
19274
19276
|
}), window.clearTimeout(I);
|
|
19275
19277
|
};
|
|
19276
|
-
}, [s, o, c, S, u, n, r, p, i, E, R, b, B, g, v, F,
|
|
19278
|
+
}, [s, o, c, S, u, n, r, p, i, E, R, b, B, g, v, F, N]), U.useEffect(() => {
|
|
19277
19279
|
s.current.insideReactTree = !1;
|
|
19278
19280
|
}, [s, S, u]);
|
|
19279
19281
|
const T = U.useMemo(() => ({
|
|
@@ -19288,7 +19290,7 @@ function L4(e, t) {
|
|
|
19288
19290
|
}
|
|
19289
19291
|
}
|
|
19290
19292
|
}
|
|
19291
|
-
}), [b, r, l, f]),
|
|
19293
|
+
}), [b, r, l, f]), O = U.useMemo(() => ({
|
|
19292
19294
|
onKeyDown: b,
|
|
19293
19295
|
onMouseDown() {
|
|
19294
19296
|
x.current = !0;
|
|
@@ -19302,8 +19304,8 @@ function L4(e, t) {
|
|
|
19302
19304
|
}), [b, u, s]);
|
|
19303
19305
|
return U.useMemo(() => i ? {
|
|
19304
19306
|
reference: T,
|
|
19305
|
-
floating:
|
|
19306
|
-
} : {}, [i, T,
|
|
19307
|
+
floating: O
|
|
19308
|
+
} : {}, [i, T, O]);
|
|
19307
19309
|
}
|
|
19308
19310
|
function k4(e) {
|
|
19309
19311
|
const {
|
|
@@ -19466,7 +19468,7 @@ function j4(e, t) {
|
|
|
19466
19468
|
l.current = window.setTimeout(() => {
|
|
19467
19469
|
var S;
|
|
19468
19470
|
const x = xc(i.domReference ? i.domReference.ownerDocument : document);
|
|
19469
|
-
!h && x === i.domReference ||
|
|
19471
|
+
!h && x === i.domReference || Or((S = s.current.floatingContext) == null ? void 0 : S.refs.floating.current, x) || Or(i.domReference, x) || w || r(!1, m, "focus");
|
|
19470
19472
|
});
|
|
19471
19473
|
}
|
|
19472
19474
|
}), [s, i.domReference, r, a]);
|
|
@@ -19607,7 +19609,7 @@ function z4(e, t) {
|
|
|
19607
19609
|
item: S
|
|
19608
19610
|
} : {}, [c, m, w, S]);
|
|
19609
19611
|
}
|
|
19610
|
-
const
|
|
19612
|
+
const Om = Z.forwardRef(
|
|
19611
19613
|
({ placement: e, className: t = "" }, n) => {
|
|
19612
19614
|
const o = ((s) => {
|
|
19613
19615
|
switch (s.split("-")[0]) {
|
|
@@ -19662,7 +19664,7 @@ const Nm = Z.forwardRef(
|
|
|
19662
19664
|
);
|
|
19663
19665
|
}
|
|
19664
19666
|
);
|
|
19665
|
-
|
|
19667
|
+
Om.displayName = "TooltipArrow";
|
|
19666
19668
|
const Pr = ({
|
|
19667
19669
|
children: e,
|
|
19668
19670
|
content: t,
|
|
@@ -19680,7 +19682,7 @@ const Pr = ({
|
|
|
19680
19682
|
placement: n,
|
|
19681
19683
|
whileElementsMounted: Lh,
|
|
19682
19684
|
middleware: [
|
|
19683
|
-
|
|
19685
|
+
Ou(o ? 12 : 8),
|
|
19684
19686
|
// 如果有箭头,增加距离
|
|
19685
19687
|
_h({
|
|
19686
19688
|
fallbackAxisSideDirection: "start",
|
|
@@ -19713,7 +19715,7 @@ const Pr = ({
|
|
|
19713
19715
|
children: e
|
|
19714
19716
|
}
|
|
19715
19717
|
),
|
|
19716
|
-
u && /* @__PURE__ */ C.jsx(
|
|
19718
|
+
u && /* @__PURE__ */ C.jsx(O4, { children: /* @__PURE__ */ C.jsxs(
|
|
19717
19719
|
"div",
|
|
19718
19720
|
{
|
|
19719
19721
|
ref: p.setFloating,
|
|
@@ -19731,7 +19733,7 @@ const Pr = ({
|
|
|
19731
19733
|
children: [
|
|
19732
19734
|
t,
|
|
19733
19735
|
o && /* @__PURE__ */ C.jsx(
|
|
19734
|
-
|
|
19736
|
+
Om,
|
|
19735
19737
|
{
|
|
19736
19738
|
ref: f,
|
|
19737
19739
|
placement: h.placement || n
|
|
@@ -19750,15 +19752,19 @@ const Pr = ({
|
|
|
19750
19752
|
onCopy: s,
|
|
19751
19753
|
onClose: i
|
|
19752
19754
|
}) => {
|
|
19753
|
-
const { t: c } = Yt(), a =
|
|
19755
|
+
const { t: c } = Yt(), a = r === N5, u = te(() => {
|
|
19756
|
+
if (!e) return !1;
|
|
19757
|
+
const d = Number(e.chainId);
|
|
19758
|
+
return !Number.isNaN(d) && (d === 42161 || d === 421614);
|
|
19759
|
+
}, [e]), l = a, f = te(
|
|
19754
19760
|
() => {
|
|
19755
|
-
var
|
|
19756
|
-
return (
|
|
19757
|
-
(
|
|
19761
|
+
var d;
|
|
19762
|
+
return (d = e == null ? void 0 : e.tokenList) == null ? void 0 : d.find(
|
|
19763
|
+
(h) => h.token === t || h.symbol === t
|
|
19758
19764
|
);
|
|
19759
19765
|
},
|
|
19760
19766
|
[e, t]
|
|
19761
|
-
),
|
|
19767
|
+
), p = (f == null ? void 0 : f.minDepositSize) || "10";
|
|
19762
19768
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
19763
19769
|
/* @__PURE__ */ C.jsx("div", { className: "flex justify-center mt-4 mb-3", children: n && /* @__PURE__ */ C.jsx("div", { className: "bg-white rounded-lg", children: /* @__PURE__ */ C.jsx(
|
|
19764
19770
|
Pm,
|
|
@@ -19818,13 +19824,14 @@ const Pr = ({
|
|
|
19818
19824
|
/* @__PURE__ */ C.jsxs("div", { className: "border-b border-dashed border-line-divider-secondary pb-4", children: [
|
|
19819
19825
|
/* @__PURE__ */ C.jsxs("div", { className: "flex items-start", children: [
|
|
19820
19826
|
/* @__PURE__ */ C.jsx("div", { className: "w-5", children: /* @__PURE__ */ C.jsx("img", { src: Jr, className: "w-4 h-4", alt: "Warning" }) }),
|
|
19821
|
-
/* @__PURE__ */ C.jsx("div", { className: "flex-1", children: /* @__PURE__ */ C.jsx("p", { className: "text-xs text-functional-orange-1", children:
|
|
19822
|
-
|
|
19823
|
-
{
|
|
19827
|
+
/* @__PURE__ */ C.jsx("div", { className: "flex-1", children: /* @__PURE__ */ C.jsx("p", { className: "text-xs text-functional-orange-1", children: (() => {
|
|
19828
|
+
const h = c(l ? "deposit.crossChainDepositFeeTip" : "deposit.depositAllTip", {
|
|
19824
19829
|
coin: t,
|
|
19825
19830
|
v: e == null ? void 0 : e.chain
|
|
19826
|
-
}
|
|
19827
|
-
|
|
19831
|
+
});
|
|
19832
|
+
return l && !u ? String(h).split(`
|
|
19833
|
+
`)[0] : h;
|
|
19834
|
+
})() }) })
|
|
19828
19835
|
] }),
|
|
19829
19836
|
r === Jl && /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
19830
19837
|
/* @__PURE__ */ C.jsx("div", { className: "my-2 ml-5 h-[1px] border-b border-dashed border-line-divider-secondary" }),
|
|
@@ -19854,7 +19861,7 @@ const Pr = ({
|
|
|
19854
19861
|
/* @__PURE__ */ C.jsxs("div", { className: "flex justify-between items-center h-[18px] mt-1", children: [
|
|
19855
19862
|
/* @__PURE__ */ C.jsx("span", { className: "text-text-tertiary", children: c("deposit.minDeposit") }),
|
|
19856
19863
|
/* @__PURE__ */ C.jsxs("span", { className: "text-text-primary font-medium text-right", children: [
|
|
19857
|
-
|
|
19864
|
+
p,
|
|
19858
19865
|
" ",
|
|
19859
19866
|
t
|
|
19860
19867
|
] })
|
|
@@ -20401,7 +20408,7 @@ const rP = ({
|
|
|
20401
20408
|
tokenInfo: f,
|
|
20402
20409
|
amount: d,
|
|
20403
20410
|
wagmiHooks: i
|
|
20404
|
-
}),
|
|
20411
|
+
}), N = X(async () => {
|
|
20405
20412
|
if (!L)
|
|
20406
20413
|
try {
|
|
20407
20414
|
b(!0), await v();
|
|
@@ -20410,12 +20417,12 @@ const rP = ({
|
|
|
20410
20417
|
} finally {
|
|
20411
20418
|
b(!1);
|
|
20412
20419
|
}
|
|
20413
|
-
}, [L, v]), T = te(() => +l.chainId != +t.chainId, [l.chainId, t.chainId]),
|
|
20420
|
+
}, [L, v]), T = te(() => +l.chainId != +t.chainId, [l.chainId, t.chainId]), O = X(async () => {
|
|
20414
20421
|
c && c(p);
|
|
20415
20422
|
}, [c, p]);
|
|
20416
20423
|
Pe(() => {
|
|
20417
|
-
T &&
|
|
20418
|
-
}, [T,
|
|
20424
|
+
T && O();
|
|
20425
|
+
}, [T, O]);
|
|
20419
20426
|
const { showLayerZeroTip: I, layerZeroTipKey: y } = te(() => {
|
|
20420
20427
|
const j = +t.chainId == 42161 || +t.chainId == 421614, H = (n == null ? void 0 : n.toUpperCase()) === "USDT", K = new Fe(d || "0"), V = new Fe("200000");
|
|
20421
20428
|
let z = !1, q;
|
|
@@ -20535,7 +20542,7 @@ const rP = ({
|
|
|
20535
20542
|
"button",
|
|
20536
20543
|
{
|
|
20537
20544
|
className: "w-[180px] h-8 bg-fill-btn-primary hover:bg-fill-btn-primary-hover text-text-on-sec-btn rounded-xl text-sm font-medium transition-colors my-4 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center",
|
|
20538
|
-
onClick:
|
|
20545
|
+
onClick: N,
|
|
20539
20546
|
disabled: L,
|
|
20540
20547
|
children: L ? /* @__PURE__ */ C.jsx(Pc, { size: "xs", inline: !0 }) : u("deposit.enableWithToken", {
|
|
20541
20548
|
token: n
|
|
@@ -20557,7 +20564,7 @@ const rP = ({
|
|
|
20557
20564
|
$ && /* @__PURE__ */ C.jsx("div", { className: "my-2 ml-5 h-[1px] border-b border-dashed border-line-divider-secondary" }),
|
|
20558
20565
|
/* @__PURE__ */ C.jsxs("div", { className: "flex mb-4", children: [
|
|
20559
20566
|
/* @__PURE__ */ C.jsx("div", { className: "w-5", children: !($ || I) && /* @__PURE__ */ C.jsx("img", { src: Jr, className: "w-4 h-4", alt: "Warning" }) }),
|
|
20560
|
-
/* @__PURE__ */ C.jsx("div", { className: "flex-1 text-xs text-functional-orange-1", children: u("deposit.noPrivateKeyWalletWarning") })
|
|
20567
|
+
/* @__PURE__ */ C.jsx("div", { className: "flex-1 text-xs text-functional-orange-1 whitespace-pre-line", children: u("deposit.noPrivateKeyWalletWarning") })
|
|
20561
20568
|
] }),
|
|
20562
20569
|
/* @__PURE__ */ C.jsxs("div", { className: "border-t border-line-divider-secondary border-dashed py-4", children: [
|
|
20563
20570
|
/* @__PURE__ */ C.jsxs("div", { className: "flex justify-between items-center h-[18px] leading-4", children: [
|
|
@@ -20651,7 +20658,7 @@ const rP = ({
|
|
|
20651
20658
|
B($), d == null || d($);
|
|
20652
20659
|
},
|
|
20653
20660
|
[d]
|
|
20654
|
-
),
|
|
20661
|
+
), N = X(
|
|
20655
20662
|
($) => {
|
|
20656
20663
|
g($), h == null || h($);
|
|
20657
20664
|
},
|
|
@@ -20661,10 +20668,10 @@ const rP = ({
|
|
|
20661
20668
|
if (!$) return "0";
|
|
20662
20669
|
const P = w === "spot" ? u == null ? void 0 : u.spot : u == null ? void 0 : u.perpetual, M = P == null ? void 0 : P[$];
|
|
20663
20670
|
return typeof M == "string" && M.length > 0 ? M : "0";
|
|
20664
|
-
}, [u, w, b]), [
|
|
20671
|
+
}, [u, w, b]), [O, I] = oe(!1), y = ($) => {
|
|
20665
20672
|
$.target === $.currentTarget ? I(!0) : I(!1);
|
|
20666
20673
|
}, A = ($) => {
|
|
20667
|
-
|
|
20674
|
+
O && $.target === $.currentTarget && n(), I(!1);
|
|
20668
20675
|
};
|
|
20669
20676
|
return e ? sd.createPortal(
|
|
20670
20677
|
/* @__PURE__ */ C.jsx(
|
|
@@ -20737,7 +20744,7 @@ const rP = ({
|
|
|
20737
20744
|
chainList: F,
|
|
20738
20745
|
onChainChange: v,
|
|
20739
20746
|
curSelectToken: b,
|
|
20740
|
-
onTokenChange:
|
|
20747
|
+
onTokenChange: N,
|
|
20741
20748
|
walletType: $c(r) ? Hn : mu,
|
|
20742
20749
|
accountType: w
|
|
20743
20750
|
}
|
|
@@ -21191,16 +21198,16 @@ const dP = (e) => {
|
|
|
21191
21198
|
return { chainId: ye.chainId, tokenSymbol: ve };
|
|
21192
21199
|
}, [F, r, o]), [b, g] = oe(
|
|
21193
21200
|
() => L.chainId
|
|
21194
|
-
), [v,
|
|
21201
|
+
), [v, N] = oe(
|
|
21195
21202
|
() => L.tokenSymbol
|
|
21196
|
-
), [T,
|
|
21203
|
+
), [T, O] = oe(s), [I, y] = oe(""), A = X(
|
|
21197
21204
|
(q) => {
|
|
21198
21205
|
g(q), h == null || h(q);
|
|
21199
21206
|
},
|
|
21200
21207
|
[h]
|
|
21201
21208
|
), $ = X(
|
|
21202
21209
|
(q) => {
|
|
21203
|
-
|
|
21210
|
+
N(q), m == null || m(q);
|
|
21204
21211
|
},
|
|
21205
21212
|
[m]
|
|
21206
21213
|
), P = Z.useRef(!0), M = Z.useRef(v), D = Z.useRef(b);
|
|
@@ -21209,7 +21216,7 @@ const dP = (e) => {
|
|
|
21209
21216
|
P.current = !1, M.current = v, D.current = b;
|
|
21210
21217
|
return;
|
|
21211
21218
|
}
|
|
21212
|
-
(M.current !== v || D.current !== b) && (
|
|
21219
|
+
(M.current !== v || D.current !== b) && (O(""), M.current = v, D.current = b);
|
|
21213
21220
|
}, [v, b]);
|
|
21214
21221
|
const _ = F && F.length > 0 ? F.find((q) => q.chainId === b) || F[0] : null, j = (z = _ == null ? void 0 : _.tokenList) == null ? void 0 : z.find(
|
|
21215
21222
|
(q) => q.token === v
|
|
@@ -21291,7 +21298,7 @@ const dP = (e) => {
|
|
|
21291
21298
|
), ae = (he == null ? void 0 : he.tokenList) || [], ne = ae.some(
|
|
21292
21299
|
(ut) => (ut.symbol || ut.token) === v
|
|
21293
21300
|
) ? v : ((Te = ae[0]) == null ? void 0 : Te.symbol) || ((gn = ae[0]) == null ? void 0 : gn.token) || "";
|
|
21294
|
-
ne && (
|
|
21301
|
+
ne && (N(ne), m == null || m(ne));
|
|
21295
21302
|
},
|
|
21296
21303
|
className: "w-full"
|
|
21297
21304
|
}
|
|
@@ -21326,7 +21333,7 @@ const dP = (e) => {
|
|
|
21326
21333
|
walletType: e,
|
|
21327
21334
|
accountType: E,
|
|
21328
21335
|
receiverAddress: I,
|
|
21329
|
-
onWithdrawAmountChange:
|
|
21336
|
+
onWithdrawAmountChange: O,
|
|
21330
21337
|
onReceiverAddressChange: y,
|
|
21331
21338
|
onAmountChanged: w
|
|
21332
21339
|
}
|
|
@@ -21464,7 +21471,7 @@ export {
|
|
|
21464
21471
|
$w as a,
|
|
21465
21472
|
Zt as b,
|
|
21466
21473
|
Qs as c,
|
|
21467
|
-
|
|
21474
|
+
Ng as d,
|
|
21468
21475
|
Jn as e,
|
|
21469
21476
|
Vt as f,
|
|
21470
21477
|
jc as g,
|
|
@@ -21488,4 +21495,4 @@ export {
|
|
|
21488
21495
|
fP as y,
|
|
21489
21496
|
dP as z
|
|
21490
21497
|
};
|
|
21491
|
-
//# sourceMappingURL=index-
|
|
21498
|
+
//# sourceMappingURL=index-BBxsNXOK.mjs.map
|