@skip-go/widget 3.3.7 → 3.3.8
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.
|
@@ -371,17 +371,17 @@ function w9(t) {
|
|
|
371
371
|
return D9(dh("", null, null, null, [""], t = h9(t), 0, [0], t));
|
|
372
372
|
}
|
|
373
373
|
function dh(t, i, e, n, c, r, s, m, l) {
|
|
374
|
-
for (var u = 0, h = 0, D = s, f = 0, b = 0, w = 0,
|
|
375
|
-
switch (w =
|
|
374
|
+
for (var u = 0, h = 0, D = s, f = 0, b = 0, w = 0, y = 1, v = 1, M = 1, k = 0, z = "", H = c, V = r, S = n, j = z; v; )
|
|
375
|
+
switch (w = k, k = Kn()) {
|
|
376
376
|
case 40:
|
|
377
377
|
if (w != 108 && Ye(j, D - 1) == 58) {
|
|
378
|
-
uh(j += ce(J0(
|
|
378
|
+
uh(j += ce(J0(k), "&", "&\f"), "&\f", A8(u ? m[u - 1] : 0)) != -1 && (M = -1);
|
|
379
379
|
break;
|
|
380
380
|
}
|
|
381
381
|
case 34:
|
|
382
382
|
case 39:
|
|
383
383
|
case 91:
|
|
384
|
-
j += J0(
|
|
384
|
+
j += J0(k);
|
|
385
385
|
break;
|
|
386
386
|
case 9:
|
|
387
387
|
case 10:
|
|
@@ -402,12 +402,12 @@ function dh(t, i, e, n, c, r, s, m, l) {
|
|
|
402
402
|
j += "/";
|
|
403
403
|
}
|
|
404
404
|
break;
|
|
405
|
-
case 123 *
|
|
405
|
+
case 123 * y:
|
|
406
406
|
m[u++] = nt(j) * M;
|
|
407
|
-
case 125 *
|
|
407
|
+
case 125 * y:
|
|
408
408
|
case 59:
|
|
409
409
|
case 0:
|
|
410
|
-
switch (
|
|
410
|
+
switch (k) {
|
|
411
411
|
case 0:
|
|
412
412
|
case 125:
|
|
413
413
|
v = 0;
|
|
@@ -417,33 +417,33 @@ function dh(t, i, e, n, c, r, s, m, l) {
|
|
|
417
417
|
case 59:
|
|
418
418
|
j += ";";
|
|
419
419
|
default:
|
|
420
|
-
if (Op(
|
|
420
|
+
if (Op(S = b2(j, i, e, u, h, c, m, z, H = [], V = [], D, r), r), k === 123)
|
|
421
421
|
if (h === 0)
|
|
422
|
-
dh(j, i,
|
|
422
|
+
dh(j, i, S, S, H, r, D, m, V);
|
|
423
423
|
else
|
|
424
424
|
switch (f === 99 && Ye(j, 3) === 110 ? 100 : f) {
|
|
425
425
|
case 100:
|
|
426
426
|
case 108:
|
|
427
427
|
case 109:
|
|
428
428
|
case 115:
|
|
429
|
-
dh(t,
|
|
429
|
+
dh(t, S, S, n && Op(b2(t, S, S, 0, 0, c, m, z, c, H = [], D, V), V), c, V, D, m, n ? H : V);
|
|
430
430
|
break;
|
|
431
431
|
default:
|
|
432
|
-
dh(j,
|
|
432
|
+
dh(j, S, S, S, [""], V, 0, m, V);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
u = h = b = 0,
|
|
435
|
+
u = h = b = 0, y = M = 1, z = j = "", D = s;
|
|
436
436
|
break;
|
|
437
437
|
case 58:
|
|
438
438
|
D = 1 + nt(j), b = w;
|
|
439
439
|
default:
|
|
440
|
-
if (
|
|
441
|
-
if (
|
|
442
|
-
--
|
|
443
|
-
else if (
|
|
440
|
+
if (y < 1) {
|
|
441
|
+
if (k == 123)
|
|
442
|
+
--y;
|
|
443
|
+
else if (k == 125 && y++ == 0 && d9() == 125)
|
|
444
444
|
continue;
|
|
445
445
|
}
|
|
446
|
-
switch (j += vg(
|
|
446
|
+
switch (j += vg(k), k * y) {
|
|
447
447
|
case 38:
|
|
448
448
|
M = h > 0 ? 1 : (j += "\f", -1);
|
|
449
449
|
break;
|
|
@@ -451,18 +451,18 @@ function dh(t, i, e, n, c, r, s, m, l) {
|
|
|
451
451
|
m[u++] = (nt(j) - 1) * M, M = 1;
|
|
452
452
|
break;
|
|
453
453
|
case 64:
|
|
454
|
-
xu() === 45 && (j += J0(Kn())), f = xu(), h = D = nt(z = j += b9(ph())),
|
|
454
|
+
xu() === 45 && (j += J0(Kn())), f = xu(), h = D = nt(z = j += b9(ph())), k++;
|
|
455
455
|
break;
|
|
456
456
|
case 45:
|
|
457
|
-
w === 45 && nt(j) == 2 && (
|
|
457
|
+
w === 45 && nt(j) == 2 && (y = 0);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
return r;
|
|
461
461
|
}
|
|
462
462
|
function b2(t, i, e, n, c, r, s, m, l, u, h, D) {
|
|
463
|
-
for (var f = c - 1, b = c === 0 ? r : [""], w = y8(b),
|
|
464
|
-
for (var
|
|
465
|
-
(H = k8(v > 0 ? b[
|
|
463
|
+
for (var f = c - 1, b = c === 0 ? r : [""], w = y8(b), y = 0, v = 0, M = 0; y < n; ++y)
|
|
464
|
+
for (var k = 0, z = Ku(t, f + 1, f = A8(v = s[y])), H = t; k < w; ++k)
|
|
465
|
+
(H = k8(v > 0 ? b[k] + " " + z : ce(z, /&\f/g, b[k]))) && (l[M++] = H);
|
|
466
466
|
return f0(t, i, e, c === 0 ? h0 : m, l, u, h, D);
|
|
467
467
|
}
|
|
468
468
|
function A9(t, i, e, n) {
|
|
@@ -1002,10 +1002,10 @@ var I8 = function(t) {
|
|
|
1002
1002
|
if (f === void 0) return "continue";
|
|
1003
1003
|
var b = r.names.get(f), w = s.getGroup(D);
|
|
1004
1004
|
if (b === void 0 || !b.size || w.length === 0) return "continue";
|
|
1005
|
-
var
|
|
1005
|
+
var y = "".concat(yu, ".g").concat(D, '[id="').concat(f, '"]'), v = "";
|
|
1006
1006
|
b !== void 0 && b.forEach(function(M) {
|
|
1007
1007
|
M.length > 0 && (v += "".concat(M, ","));
|
|
1008
|
-
}), l += "".concat(w).concat(
|
|
1008
|
+
}), l += "".concat(w).concat(y, '{content:"').concat(v, '"}').concat(Bg);
|
|
1009
1009
|
}, h = 0; h < m; h++) u(h);
|
|
1010
1010
|
return l;
|
|
1011
1011
|
}(c);
|
|
@@ -1057,14 +1057,14 @@ function H8(t) {
|
|
|
1057
1057
|
h.push(function(f) {
|
|
1058
1058
|
f.type === h0 && f.value.includes("&") && (f.props[0] = f.props[0].replace(n7, e).replace(n, u));
|
|
1059
1059
|
}), s.prefix && h.push(v9), h.push(k9);
|
|
1060
|
-
var D = function(f, b, w,
|
|
1061
|
-
b === void 0 && (b = ""), w === void 0 && (w = ""),
|
|
1060
|
+
var D = function(f, b, w, y) {
|
|
1061
|
+
b === void 0 && (b = ""), w === void 0 && (w = ""), y === void 0 && (y = "&"), i = y, e = b, n = new RegExp("\\".concat(e, "\\b"), "g");
|
|
1062
1062
|
var v = f.replace(t7, ""), M = w9(w || b ? "".concat(w, " ").concat(b, " { ").concat(v, " }") : v);
|
|
1063
1063
|
s.namespace && (M = j8(M, s.namespace));
|
|
1064
|
-
var
|
|
1064
|
+
var k = [];
|
|
1065
1065
|
return Ch(M, y9(h.concat(C9(function(z) {
|
|
1066
|
-
return
|
|
1067
|
-
})))),
|
|
1066
|
+
return k.push(z);
|
|
1067
|
+
})))), k;
|
|
1068
1068
|
};
|
|
1069
1069
|
return D.hash = l.length ? l.reduce(function(f, b) {
|
|
1070
1070
|
return b.name || it(15), hu(f, b.name);
|
|
@@ -1202,28 +1202,28 @@ function l7(t) {
|
|
|
1202
1202
|
var L0 = {}, P2 = /* @__PURE__ */ new Set();
|
|
1203
1203
|
function u7(t, i, e) {
|
|
1204
1204
|
var n = Eg(t), c = t, r = !H0(t), s = i.attrs, m = s === void 0 ? b0 : s, l = i.componentId, u = l === void 0 ? function(H, V) {
|
|
1205
|
-
var
|
|
1206
|
-
L0[
|
|
1207
|
-
var j = "".concat(
|
|
1205
|
+
var S = typeof H != "string" ? "sc" : k2(H);
|
|
1206
|
+
L0[S] = (L0[S] || 0) + 1;
|
|
1207
|
+
var j = "".concat(S, "-").concat(P8(x0 + S + L0[S]));
|
|
1208
1208
|
return V ? "".concat(V, "-").concat(j) : j;
|
|
1209
1209
|
}(i.displayName, i.parentComponentId) : l, h = i.displayName, D = h === void 0 ? function(H) {
|
|
1210
1210
|
return H0(H) ? "styled.".concat(H) : "Styled(".concat(S8(H), ")");
|
|
1211
1211
|
}(t) : h, f = i.displayName && i.componentId ? "".concat(k2(i.displayName), "-").concat(i.componentId) : i.componentId || u, b = n && c.attrs ? c.attrs.concat(m).filter(Boolean) : m, w = i.shouldForwardProp;
|
|
1212
1212
|
if (n && c.shouldForwardProp) {
|
|
1213
|
-
var
|
|
1213
|
+
var y = c.shouldForwardProp;
|
|
1214
1214
|
if (i.shouldForwardProp) {
|
|
1215
1215
|
var v = i.shouldForwardProp;
|
|
1216
1216
|
w = function(H, V) {
|
|
1217
|
-
return
|
|
1217
|
+
return y(H, V) && v(H, V);
|
|
1218
1218
|
};
|
|
1219
|
-
} else w =
|
|
1219
|
+
} else w = y;
|
|
1220
1220
|
}
|
|
1221
1221
|
var M = new m7(e, f, n ? c.componentStyle : void 0);
|
|
1222
|
-
function
|
|
1223
|
-
return function(
|
|
1224
|
-
var x =
|
|
1222
|
+
function k(H, V) {
|
|
1223
|
+
return function(S, j, g) {
|
|
1224
|
+
var x = S.attrs, A = S.componentStyle, q = S.defaultProps, B = S.foldedComponentIds, E = S.styledComponentId, F = S.target, C = Yn.useContext(Qp), P = hD(), I = S.shouldForwardProp || P.shouldForwardProp;
|
|
1225
1225
|
se.env.NODE_ENV !== "production" && p2(E);
|
|
1226
|
-
var N = M9(j, C,
|
|
1226
|
+
var N = M9(j, C, q) || Zu, L = function(Q, te, xe) {
|
|
1227
1227
|
for (var nn, We = tn(tn({}, te), { className: void 0, theme: xe }), uu = 0; uu < Q.length; uu += 1) {
|
|
1228
1228
|
var an = Cu(nn = Q[uu]) ? nn(We) : nn;
|
|
1229
1229
|
for (var sn in an) We[sn] = sn === "className" ? gu(We[sn], an[sn]) : sn === "style" ? tn(tn({}, We[sn]), an[sn]) : an[sn];
|
|
@@ -1234,26 +1234,26 @@ function u7(t, i, e) {
|
|
|
1234
1234
|
var ye = function(Q, te) {
|
|
1235
1235
|
var xe = hD(), nn = Q.generateAndInjectStyles(te, xe.styleSheet, xe.stylis);
|
|
1236
1236
|
return se.env.NODE_ENV !== "production" && p2(nn), nn;
|
|
1237
|
-
}(
|
|
1238
|
-
se.env.NODE_ENV !== "production" &&
|
|
1237
|
+
}(A, L);
|
|
1238
|
+
se.env.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(ye);
|
|
1239
1239
|
var Ee = gu(B, E);
|
|
1240
1240
|
return ye && (Ee += " " + ye), L.className && (Ee += " " + L.className), K[H0(G) && !mD.has(G) ? "class" : "className"] = Ee, K.ref = g, iA(G, K);
|
|
1241
1241
|
}(z, H, V);
|
|
1242
1242
|
}
|
|
1243
|
-
|
|
1244
|
-
var z = Yn.forwardRef(
|
|
1243
|
+
k.displayName = D;
|
|
1244
|
+
var z = Yn.forwardRef(k);
|
|
1245
1245
|
return z.attrs = b, z.componentStyle = M, z.displayName = D, z.shouldForwardProp = w, z.foldedComponentIds = n ? gu(c.foldedComponentIds, c.styledComponentId) : "", z.styledComponentId = f, z.target = n ? c.target : t, Object.defineProperty(z, "defaultProps", { get: function() {
|
|
1246
1246
|
return this._foldedDefaultProps;
|
|
1247
1247
|
}, set: function(H) {
|
|
1248
1248
|
this._foldedDefaultProps = n ? function(V) {
|
|
1249
|
-
for (var
|
|
1250
|
-
for (var g = 0, x =
|
|
1249
|
+
for (var S = [], j = 1; j < arguments.length; j++) S[j - 1] = arguments[j];
|
|
1250
|
+
for (var g = 0, x = S; g < x.length; g++) pD(V, x[g], !0);
|
|
1251
1251
|
return V;
|
|
1252
1252
|
}({}, c.defaultProps, H) : H;
|
|
1253
1253
|
} }), se.env.NODE_ENV !== "production" && (F9(D, f), z.warnTooManyClasses = /* @__PURE__ */ function(H, V) {
|
|
1254
|
-
var
|
|
1254
|
+
var S = {}, j = !1;
|
|
1255
1255
|
return function(g) {
|
|
1256
|
-
if (!j && (
|
|
1256
|
+
if (!j && (S[g] = !0, Object.keys(S).length >= 200)) {
|
|
1257
1257
|
var x = V ? ' with the id of "'.concat(V, '"') : "";
|
|
1258
1258
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(H).concat(x, `.
|
|
1259
1259
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
@@ -1264,7 +1264,7 @@ Example:
|
|
|
1264
1264
|
},
|
|
1265
1265
|
}))\`width: 100%;\`
|
|
1266
1266
|
|
|
1267
|
-
<Component />`), j = !0,
|
|
1267
|
+
<Component />`), j = !0, S = {};
|
|
1268
1268
|
}
|
|
1269
1269
|
};
|
|
1270
1270
|
}(D, f)), Fg(z, function() {
|
|
@@ -2929,13 +2929,13 @@ class Wk extends Ok {
|
|
|
2929
2929
|
for (let D = 0; D < 16; D++, e += 4)
|
|
2930
2930
|
Yl[D] = i.getUint32(e, !1);
|
|
2931
2931
|
for (let D = 16; D < 64; D++) {
|
|
2932
|
-
const f = Yl[D - 15], b = Yl[D - 2], w = Qn(f, 7) ^ Qn(f, 18) ^ f >>> 3,
|
|
2933
|
-
Yl[D] =
|
|
2932
|
+
const f = Yl[D - 15], b = Yl[D - 2], w = Qn(f, 7) ^ Qn(f, 18) ^ f >>> 3, y = Qn(b, 17) ^ Qn(b, 19) ^ b >>> 10;
|
|
2933
|
+
Yl[D] = y + Yl[D - 7] + w + Yl[D - 16] | 0;
|
|
2934
2934
|
}
|
|
2935
2935
|
let { A: n, B: c, C: r, D: s, E: m, F: l, G: u, H: h } = this;
|
|
2936
2936
|
for (let D = 0; D < 64; D++) {
|
|
2937
|
-
const f = Qn(m, 6) ^ Qn(m, 11) ^ Qn(m, 25), b = h + f + Lk(m, l, u) + Uk[D] + Yl[D] | 0,
|
|
2938
|
-
h = u, u = l, l = m, m = s + b | 0, s = r, r = c, c = n, n = b +
|
|
2937
|
+
const f = Qn(m, 6) ^ Qn(m, 11) ^ Qn(m, 25), b = h + f + Lk(m, l, u) + Uk[D] + Yl[D] | 0, y = (Qn(n, 2) ^ Qn(n, 13) ^ Qn(n, 22)) + Vk(n, c, r) | 0;
|
|
2938
|
+
h = u, u = l, l = m, m = s + b | 0, s = r, r = c, c = n, n = b + y | 0;
|
|
2939
2939
|
}
|
|
2940
2940
|
n = n + this.A | 0, c = c + this.B | 0, r = r + this.C | 0, s = s + this.D | 0, m = m + this.E | 0, l = l + this.F | 0, u = u + this.G | 0, h = h + this.H | 0, this.set(n, c, r, s, m, l, u, h);
|
|
2941
2941
|
}
|
|
@@ -3052,7 +3052,7 @@ class ny extends re {
|
|
|
3052
3052
|
constructor(i, { account: e, docsPath: n, chain: c, data: r, gas: s, gasPrice: m, maxFeePerGas: l, maxPriorityFeePerGas: u, nonce: h, to: D, value: f, stateOverride: b }) {
|
|
3053
3053
|
var v;
|
|
3054
3054
|
const w = e ? y0(e) : void 0;
|
|
3055
|
-
let
|
|
3055
|
+
let y = g5({
|
|
3056
3056
|
from: w == null ? void 0 : w.address,
|
|
3057
3057
|
to: D,
|
|
3058
3058
|
value: typeof f < "u" && `${vk(f)} ${((v = c == null ? void 0 : c.nativeCurrency) == null ? void 0 : v.symbol) || "ETH"}`,
|
|
@@ -3063,14 +3063,14 @@ class ny extends re {
|
|
|
3063
3063
|
maxPriorityFeePerGas: typeof u < "u" && `${wu(u)} gwei`,
|
|
3064
3064
|
nonce: h
|
|
3065
3065
|
});
|
|
3066
|
-
b && (
|
|
3066
|
+
b && (y += `
|
|
3067
3067
|
${jk(b)}`), super(i.shortMessage, {
|
|
3068
3068
|
cause: i,
|
|
3069
3069
|
docsPath: n,
|
|
3070
3070
|
metaMessages: [
|
|
3071
3071
|
...i.metaMessages ? [...i.metaMessages, " "] : [],
|
|
3072
3072
|
"Raw Call Arguments:",
|
|
3073
|
-
|
|
3073
|
+
y
|
|
3074
3074
|
].filter(Boolean),
|
|
3075
3075
|
name: "CallExecutionError"
|
|
3076
3076
|
}), Object.defineProperty(this, "cause", {
|
|
@@ -3254,18 +3254,18 @@ function hy(t, i) {
|
|
|
3254
3254
|
sy(t);
|
|
3255
3255
|
let f = t.blobVersionedHashes, b = t.sidecars;
|
|
3256
3256
|
if (t.blobs && (typeof f > "u" || typeof b > "u")) {
|
|
3257
|
-
const z = typeof t.blobs[0] == "string" ? t.blobs : t.blobs.map((
|
|
3257
|
+
const z = typeof t.blobs[0] == "string" ? t.blobs : t.blobs.map((S) => Wl(S)), H = t.kzg, V = k5({
|
|
3258
3258
|
blobs: z,
|
|
3259
3259
|
kzg: H
|
|
3260
3260
|
});
|
|
3261
3261
|
if (typeof f > "u" && (f = Kk({
|
|
3262
3262
|
commitments: V
|
|
3263
3263
|
})), typeof b > "u") {
|
|
3264
|
-
const
|
|
3265
|
-
b = _k({ blobs: z, commitments: V, proofs:
|
|
3264
|
+
const S = y5({ blobs: z, commitments: V, kzg: H });
|
|
3265
|
+
b = _k({ blobs: z, commitments: V, proofs: S });
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
const w = Kd(h),
|
|
3268
|
+
const w = Kd(h), y = [
|
|
3269
3269
|
oe(e),
|
|
3270
3270
|
c ? oe(c) : "0x",
|
|
3271
3271
|
u ? oe(u) : "0x",
|
|
@@ -3278,16 +3278,16 @@ function hy(t, i) {
|
|
|
3278
3278
|
m ? oe(m) : "0x",
|
|
3279
3279
|
f ?? [],
|
|
3280
3280
|
...Ep(t, i)
|
|
3281
|
-
], v = [], M = [],
|
|
3281
|
+
], v = [], M = [], k = [];
|
|
3282
3282
|
if (b)
|
|
3283
3283
|
for (let z = 0; z < b.length; z++) {
|
|
3284
|
-
const { blob: H, commitment: V, proof:
|
|
3285
|
-
v.push(H), M.push(V),
|
|
3284
|
+
const { blob: H, commitment: V, proof: S } = b[z];
|
|
3285
|
+
v.push(H), M.push(V), k.push(S);
|
|
3286
3286
|
}
|
|
3287
3287
|
return Bp([
|
|
3288
3288
|
"0x03",
|
|
3289
3289
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
3290
|
-
eu(b ? [
|
|
3290
|
+
eu(b ? [y, v, M, k] : y)
|
|
3291
3291
|
]);
|
|
3292
3292
|
}
|
|
3293
3293
|
function Dy(t, i) {
|
|
@@ -4258,11 +4258,11 @@ async function Gy(t, i) {
|
|
|
4258
4258
|
throw new gk();
|
|
4259
4259
|
const n = y0(e);
|
|
4260
4260
|
try {
|
|
4261
|
-
const { accessList: m, blockNumber: l, blockTag: u, data: h, gas: D, gasPrice: f, maxFeePerGas: b, maxPriorityFeePerGas: w, nonce:
|
|
4261
|
+
const { accessList: m, blockNumber: l, blockTag: u, data: h, gas: D, gasPrice: f, maxFeePerGas: b, maxPriorityFeePerGas: w, nonce: y, to: v, value: M, ...k } = i, H = (l ? ln(l) : void 0) || u;
|
|
4262
4262
|
Nk(i);
|
|
4263
4263
|
const V = (s = (r = (c = t.chain) == null ? void 0 : c.formatters) == null ? void 0 : r.transactionRequest) == null ? void 0 : s.format, j = (V || x5)({
|
|
4264
4264
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
4265
|
-
...Sk(
|
|
4265
|
+
...Sk(k, { format: V }),
|
|
4266
4266
|
from: n == null ? void 0 : n.address,
|
|
4267
4267
|
accessList: m,
|
|
4268
4268
|
data: h,
|
|
@@ -4270,17 +4270,17 @@ async function Gy(t, i) {
|
|
|
4270
4270
|
gasPrice: f,
|
|
4271
4271
|
maxFeePerGas: b,
|
|
4272
4272
|
maxPriorityFeePerGas: w,
|
|
4273
|
-
nonce:
|
|
4273
|
+
nonce: y,
|
|
4274
4274
|
to: v,
|
|
4275
4275
|
value: M
|
|
4276
|
-
}), { baseFeePerGas: g, gasLimit: x, priorityFeePerGas:
|
|
4276
|
+
}), { baseFeePerGas: g, gasLimit: x, priorityFeePerGas: A } = await t.request({
|
|
4277
4277
|
method: "linea_estimateGas",
|
|
4278
4278
|
params: H ? [j, H] : [j]
|
|
4279
4279
|
});
|
|
4280
4280
|
return {
|
|
4281
4281
|
baseFeePerGas: BigInt(g),
|
|
4282
4282
|
gasLimit: BigInt(x),
|
|
4283
|
-
priorityFeePerGas: BigInt(
|
|
4283
|
+
priorityFeePerGas: BigInt(A)
|
|
4284
4284
|
};
|
|
4285
4285
|
} catch (m) {
|
|
4286
4286
|
throw ty(m, {
|
|
@@ -4681,7 +4681,7 @@ function Vg(t) {
|
|
|
4681
4681
|
f && (m || (m = this.onConnect.bind(this), f.on("connect", m)), u || (u = this.onSessionDelete.bind(this), f.on("session_delete", u)));
|
|
4682
4682
|
},
|
|
4683
4683
|
async connect({ chainId: f, ...b } = {}) {
|
|
4684
|
-
var w,
|
|
4684
|
+
var w, y;
|
|
4685
4685
|
try {
|
|
4686
4686
|
const v = await this.getProvider();
|
|
4687
4687
|
if (!v)
|
|
@@ -4690,17 +4690,17 @@ function Vg(t) {
|
|
|
4690
4690
|
let M = f;
|
|
4691
4691
|
if (!M) {
|
|
4692
4692
|
const V = await ((w = D.storage) == null ? void 0 : w.getItem("state")) ?? {};
|
|
4693
|
-
D.chains.some((j) => j.id === V.chainId) ? M = V.chainId : M = (
|
|
4693
|
+
D.chains.some((j) => j.id === V.chainId) ? M = V.chainId : M = (y = D.chains[0]) == null ? void 0 : y.id;
|
|
4694
4694
|
}
|
|
4695
4695
|
if (!M)
|
|
4696
4696
|
throw new Error("No chains found on connector.");
|
|
4697
|
-
const
|
|
4698
|
-
if (v.session &&
|
|
4699
|
-
const V = D.chains.filter((
|
|
4697
|
+
const k = await this.isChainsStale();
|
|
4698
|
+
if (v.session && k && await v.disconnect(), !v.session || k) {
|
|
4699
|
+
const V = D.chains.filter((S) => S.id !== M).map((S) => S.id);
|
|
4700
4700
|
await v.connect({
|
|
4701
4701
|
optionalChains: [M, ...V],
|
|
4702
4702
|
..."pairingTopic" in b ? { pairingTopic: b.pairingTopic } : {}
|
|
4703
|
-
}), this.setRequestedChainsIds(D.chains.map((
|
|
4703
|
+
}), this.setRequestedChainsIds(D.chains.map((S) => S.id));
|
|
4704
4704
|
}
|
|
4705
4705
|
const z = (await v.enable()).map((V) => N0(V)), H = await this.getChainId();
|
|
4706
4706
|
return l && (v.removeListener("display_uri", l), l = void 0), m && (v.removeListener("connect", m), m = void 0), r || (r = this.onAccountsChanged.bind(this), v.on("accountsChanged", r)), s || (s = this.onChainChanged.bind(this), v.on("chainChanged", s)), h || (h = this.onDisconnect.bind(this), v.on("disconnect", h)), u || (u = this.onSessionDelete.bind(this), v.on("session_delete", u)), { accounts: z, chainId: H };
|
|
@@ -4725,21 +4725,21 @@ function Vg(t) {
|
|
|
4725
4725
|
async getProvider({ chainId: f } = {}) {
|
|
4726
4726
|
var w;
|
|
4727
4727
|
async function b() {
|
|
4728
|
-
const
|
|
4729
|
-
if (!
|
|
4728
|
+
const y = D.chains.map((M) => M.id);
|
|
4729
|
+
if (!y.length)
|
|
4730
4730
|
return;
|
|
4731
|
-
const { EthereumProvider: v } = await import("./index.es-
|
|
4731
|
+
const { EthereumProvider: v } = await import("./index.es-BgGGIumy.js");
|
|
4732
4732
|
return await v.init({
|
|
4733
4733
|
...t,
|
|
4734
4734
|
disableProviderPing: !0,
|
|
4735
|
-
optionalChains:
|
|
4735
|
+
optionalChains: y,
|
|
4736
4736
|
projectId: t.projectId,
|
|
4737
4737
|
rpcMap: Object.fromEntries(D.chains.map((M) => {
|
|
4738
|
-
const [
|
|
4738
|
+
const [k] = Ey({
|
|
4739
4739
|
chain: M,
|
|
4740
4740
|
transports: D.transports
|
|
4741
4741
|
});
|
|
4742
|
-
return [M.id,
|
|
4742
|
+
return [M.id, k];
|
|
4743
4743
|
})),
|
|
4744
4744
|
showQrModal: t.showQrModal ?? !0
|
|
4745
4745
|
});
|
|
@@ -4762,18 +4762,18 @@ function Vg(t) {
|
|
|
4762
4762
|
}
|
|
4763
4763
|
},
|
|
4764
4764
|
async switchChain({ addEthereumChainParameter: f, chainId: b }) {
|
|
4765
|
-
var v, M,
|
|
4765
|
+
var v, M, k;
|
|
4766
4766
|
const w = await this.getProvider();
|
|
4767
4767
|
if (!w)
|
|
4768
4768
|
throw new W2();
|
|
4769
|
-
const
|
|
4770
|
-
if (!
|
|
4769
|
+
const y = D.chains.find((z) => z.id === b);
|
|
4770
|
+
if (!y)
|
|
4771
4771
|
throw new xA(new wy());
|
|
4772
4772
|
try {
|
|
4773
4773
|
await Promise.all([
|
|
4774
4774
|
new Promise((H) => {
|
|
4775
|
-
const V = ({ chainId:
|
|
4776
|
-
|
|
4775
|
+
const V = ({ chainId: S }) => {
|
|
4776
|
+
S === b && (D.emitter.off("change", V), H());
|
|
4777
4777
|
};
|
|
4778
4778
|
D.emitter.on("change", V);
|
|
4779
4779
|
}),
|
|
@@ -4783,30 +4783,30 @@ function Vg(t) {
|
|
|
4783
4783
|
})
|
|
4784
4784
|
]);
|
|
4785
4785
|
const z = await this.getRequestedChainsIds();
|
|
4786
|
-
return this.setRequestedChainsIds([...z, b]),
|
|
4786
|
+
return this.setRequestedChainsIds([...z, b]), y;
|
|
4787
4787
|
} catch (z) {
|
|
4788
4788
|
const H = z;
|
|
4789
4789
|
if (/(user rejected)/i.test(H.message))
|
|
4790
4790
|
throw new I0(H);
|
|
4791
4791
|
try {
|
|
4792
4792
|
let V;
|
|
4793
|
-
f != null && f.blockExplorerUrls ? V = f.blockExplorerUrls : V = (v =
|
|
4794
|
-
let
|
|
4795
|
-
(
|
|
4793
|
+
f != null && f.blockExplorerUrls ? V = f.blockExplorerUrls : V = (v = y.blockExplorers) != null && v.default.url ? [(M = y.blockExplorers) == null ? void 0 : M.default.url] : [];
|
|
4794
|
+
let S;
|
|
4795
|
+
(k = f == null ? void 0 : f.rpcUrls) != null && k.length ? S = f.rpcUrls : S = [...y.rpcUrls.default.http];
|
|
4796
4796
|
const j = {
|
|
4797
4797
|
blockExplorerUrls: V,
|
|
4798
4798
|
chainId: D2(b),
|
|
4799
|
-
chainName: (f == null ? void 0 : f.chainName) ??
|
|
4799
|
+
chainName: (f == null ? void 0 : f.chainName) ?? y.name,
|
|
4800
4800
|
iconUrls: f == null ? void 0 : f.iconUrls,
|
|
4801
|
-
nativeCurrency: (f == null ? void 0 : f.nativeCurrency) ??
|
|
4802
|
-
rpcUrls:
|
|
4801
|
+
nativeCurrency: (f == null ? void 0 : f.nativeCurrency) ?? y.nativeCurrency,
|
|
4802
|
+
rpcUrls: S
|
|
4803
4803
|
};
|
|
4804
4804
|
await w.request({
|
|
4805
4805
|
method: "wallet_addEthereumChain",
|
|
4806
4806
|
params: [j]
|
|
4807
4807
|
});
|
|
4808
4808
|
const g = await this.getRequestedChainsIds();
|
|
4809
|
-
return this.setRequestedChainsIds([...g, b]),
|
|
4809
|
+
return this.setRequestedChainsIds([...g, b]), y;
|
|
4810
4810
|
} catch (V) {
|
|
4811
4811
|
throw new I0(V);
|
|
4812
4812
|
}
|
|
@@ -4837,8 +4837,8 @@ function Vg(t) {
|
|
|
4837
4837
|
this.onDisconnect();
|
|
4838
4838
|
},
|
|
4839
4839
|
getNamespaceChainsIds() {
|
|
4840
|
-
var b, w,
|
|
4841
|
-
return e ? ((
|
|
4840
|
+
var b, w, y;
|
|
4841
|
+
return e ? ((y = (w = (b = e.session) == null ? void 0 : b.namespaces[c]) == null ? void 0 : w.accounts) == null ? void 0 : y.map((v) => Number.parseInt(v.split(":")[1] || ""))) ?? [] : [];
|
|
4842
4842
|
},
|
|
4843
4843
|
async getRequestedChainsIds() {
|
|
4844
4844
|
var f;
|
|
@@ -4858,11 +4858,11 @@ function Vg(t) {
|
|
|
4858
4858
|
async isChainsStale() {
|
|
4859
4859
|
if (!i)
|
|
4860
4860
|
return !1;
|
|
4861
|
-
const f = D.chains.map((
|
|
4862
|
-
if (b.length && !b.some((
|
|
4861
|
+
const f = D.chains.map((y) => y.id), b = this.getNamespaceChainsIds();
|
|
4862
|
+
if (b.length && !b.some((y) => f.includes(y)))
|
|
4863
4863
|
return !1;
|
|
4864
4864
|
const w = await this.getRequestedChainsIds();
|
|
4865
|
-
return !f.every((
|
|
4865
|
+
return !f.every((y) => w.includes(y));
|
|
4866
4866
|
},
|
|
4867
4867
|
async setRequestedChainsIds(f) {
|
|
4868
4868
|
var b;
|
|
@@ -5086,9 +5086,9 @@ const I5 = [
|
|
|
5086
5086
|
m.current && !m.current.contains(v.target) && l.hide();
|
|
5087
5087
|
};
|
|
5088
5088
|
n == null || n(!0);
|
|
5089
|
-
const
|
|
5090
|
-
return s(
|
|
5091
|
-
window.removeEventListener("keydown", b), window.removeEventListener("click", w), n == null || n(!1), document.body.style.overflow =
|
|
5089
|
+
const y = window.getComputedStyle(document.body).overflow;
|
|
5090
|
+
return s(y), document.body.style.overflow = "hidden", window.addEventListener("keydown", b), window.addEventListener("click", w), () => {
|
|
5091
|
+
window.removeEventListener("keydown", b), window.removeEventListener("click", w), n == null || n(!1), document.body.style.overflow = y;
|
|
5092
5092
|
};
|
|
5093
5093
|
}, [f, l, n, r]), TA(
|
|
5094
5094
|
/* @__PURE__ */ d(Sg, { theme: c, children: /* @__PURE__ */ d(eC, { ref: m, drawer: i, open: l.visible, children: /* @__PURE__ */ d(nC, { drawer: i, open: l.visible, onClick: (b) => b.stopPropagation(), children: t }) }) }),
|
|
@@ -5785,7 +5785,7 @@ const yx = [0.1, 0.5, 1, 3], wC = [
|
|
|
5785
5785
|
], _p = 6;
|
|
5786
5786
|
var AC = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, W0 = Math.ceil, bn = Math.floor, mn = "[BigNumber Error] ", Cx = mn + "Number primitive has more than 15 significant digits: ", Xn = 1e14, ae = 14, R0 = 9007199254740991, G0 = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Zl = 1e7, Ke = 1e9;
|
|
5787
5787
|
function R5(t) {
|
|
5788
|
-
var i, e, n, c =
|
|
5788
|
+
var i, e, n, c = k.prototype = { constructor: k, toString: null, valueOf: null }, r = new k(1), s = 20, m = 4, l = -7, u = 21, h = -1e7, D = 1e7, f = !1, b = 1, w = 0, y = {
|
|
5789
5789
|
prefix: "",
|
|
5790
5790
|
groupSize: 3,
|
|
5791
5791
|
secondaryGroupSize: 0,
|
|
@@ -5796,9 +5796,9 @@ function R5(t) {
|
|
|
5796
5796
|
// non-breaking space
|
|
5797
5797
|
suffix: ""
|
|
5798
5798
|
}, v = "0123456789abcdefghijklmnopqrstuvwxyz", M = !0;
|
|
5799
|
-
function
|
|
5800
|
-
var
|
|
5801
|
-
if (!(N instanceof
|
|
5799
|
+
function k(g, x) {
|
|
5800
|
+
var A, q, B, E, F, C, P, I, N = this;
|
|
5801
|
+
if (!(N instanceof k)) return new k(g, x);
|
|
5802
5802
|
if (x == null) {
|
|
5803
5803
|
if (g && g._isBigNumber === !0) {
|
|
5804
5804
|
N.s = g.s, !g.c || g.e > D ? N.c = N.e = null : g.e < h ? N.c = [N.e = 0] : (N.e = g.e, N.c = g.c.slice());
|
|
@@ -5818,16 +5818,16 @@ function R5(t) {
|
|
|
5818
5818
|
(E = I.indexOf(".")) > -1 && (I = I.replace(".", "")), (F = I.search(/e/i)) > 0 ? (E < 0 && (E = F), E += +I.slice(F + 1), I = I.substring(0, F)) : E < 0 && (E = I.length);
|
|
5819
5819
|
} else {
|
|
5820
5820
|
if (Te(x, 2, v.length, "Base"), x == 10 && M)
|
|
5821
|
-
return N = new
|
|
5821
|
+
return N = new k(g), S(N, s + N.e + 1, m);
|
|
5822
5822
|
if (I = String(g), C = typeof g == "number") {
|
|
5823
5823
|
if (g * 0 != 0) return n(N, I, C, x);
|
|
5824
|
-
if (N.s = 1 / g < 0 ? (I = I.slice(1), -1) : 1,
|
|
5824
|
+
if (N.s = 1 / g < 0 ? (I = I.slice(1), -1) : 1, k.DEBUG && I.replace(/^0\.0*|\./, "").length > 15)
|
|
5825
5825
|
throw Error(Cx + g);
|
|
5826
5826
|
} else
|
|
5827
5827
|
N.s = I.charCodeAt(0) === 45 ? (I = I.slice(1), -1) : 1;
|
|
5828
|
-
for (
|
|
5829
|
-
if (
|
|
5830
|
-
if (
|
|
5828
|
+
for (A = v.slice(0, x), E = F = 0, P = I.length; F < P; F++)
|
|
5829
|
+
if (A.indexOf(q = I.charAt(F)) < 0) {
|
|
5830
|
+
if (q == ".") {
|
|
5831
5831
|
if (F > E) {
|
|
5832
5832
|
E = P;
|
|
5833
5833
|
continue;
|
|
@@ -5843,7 +5843,7 @@ function R5(t) {
|
|
|
5843
5843
|
for (F = 0; I.charCodeAt(F) === 48; F++) ;
|
|
5844
5844
|
for (P = I.length; I.charCodeAt(--P) === 48; ) ;
|
|
5845
5845
|
if (I = I.slice(F, ++P)) {
|
|
5846
|
-
if (P -= F, C &&
|
|
5846
|
+
if (P -= F, C && k.DEBUG && P > 15 && (g > R0 || g !== bn(g)))
|
|
5847
5847
|
throw Error(Cx + N.s * g);
|
|
5848
5848
|
if ((E = E - F - 1) > D)
|
|
5849
5849
|
N.c = N.e = null;
|
|
@@ -5862,36 +5862,36 @@ function R5(t) {
|
|
|
5862
5862
|
} else
|
|
5863
5863
|
N.c = [N.e = 0];
|
|
5864
5864
|
}
|
|
5865
|
-
|
|
5866
|
-
var x,
|
|
5865
|
+
k.clone = R5, k.ROUND_UP = 0, k.ROUND_DOWN = 1, k.ROUND_CEIL = 2, k.ROUND_FLOOR = 3, k.ROUND_HALF_UP = 4, k.ROUND_HALF_DOWN = 5, k.ROUND_HALF_EVEN = 6, k.ROUND_HALF_CEIL = 7, k.ROUND_HALF_FLOOR = 8, k.EUCLID = 9, k.config = k.set = function(g) {
|
|
5866
|
+
var x, A;
|
|
5867
5867
|
if (g != null)
|
|
5868
5868
|
if (typeof g == "object") {
|
|
5869
|
-
if (g.hasOwnProperty(x = "DECIMAL_PLACES") && (
|
|
5870
|
-
if (
|
|
5871
|
-
Te(
|
|
5872
|
-
else if (Te(
|
|
5873
|
-
h = -(D =
|
|
5869
|
+
if (g.hasOwnProperty(x = "DECIMAL_PLACES") && (A = g[x], Te(A, 0, Ke, x), s = A), g.hasOwnProperty(x = "ROUNDING_MODE") && (A = g[x], Te(A, 0, 8, x), m = A), g.hasOwnProperty(x = "EXPONENTIAL_AT") && (A = g[x], A && A.pop ? (Te(A[0], -Ke, 0, x), Te(A[1], 0, Ke, x), l = A[0], u = A[1]) : (Te(A, -Ke, Ke, x), l = -(u = A < 0 ? -A : A))), g.hasOwnProperty(x = "RANGE"))
|
|
5870
|
+
if (A = g[x], A && A.pop)
|
|
5871
|
+
Te(A[0], -Ke, -1, x), Te(A[1], 1, Ke, x), h = A[0], D = A[1];
|
|
5872
|
+
else if (Te(A, -Ke, Ke, x), A)
|
|
5873
|
+
h = -(D = A < 0 ? -A : A);
|
|
5874
5874
|
else
|
|
5875
|
-
throw Error(mn + x + " cannot be zero: " +
|
|
5875
|
+
throw Error(mn + x + " cannot be zero: " + A);
|
|
5876
5876
|
if (g.hasOwnProperty(x = "CRYPTO"))
|
|
5877
|
-
if (
|
|
5878
|
-
if (
|
|
5877
|
+
if (A = g[x], A === !!A)
|
|
5878
|
+
if (A)
|
|
5879
5879
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
5880
|
-
f =
|
|
5880
|
+
f = A;
|
|
5881
5881
|
else
|
|
5882
|
-
throw f = !
|
|
5882
|
+
throw f = !A, Error(mn + "crypto unavailable");
|
|
5883
5883
|
else
|
|
5884
|
-
f =
|
|
5884
|
+
f = A;
|
|
5885
5885
|
else
|
|
5886
|
-
throw Error(mn + x + " not true or false: " +
|
|
5887
|
-
if (g.hasOwnProperty(x = "MODULO_MODE") && (
|
|
5888
|
-
if (
|
|
5889
|
-
else throw Error(mn + x + " not an object: " +
|
|
5886
|
+
throw Error(mn + x + " not true or false: " + A);
|
|
5887
|
+
if (g.hasOwnProperty(x = "MODULO_MODE") && (A = g[x], Te(A, 0, 9, x), b = A), g.hasOwnProperty(x = "POW_PRECISION") && (A = g[x], Te(A, 0, Ke, x), w = A), g.hasOwnProperty(x = "FORMAT"))
|
|
5888
|
+
if (A = g[x], typeof A == "object") y = A;
|
|
5889
|
+
else throw Error(mn + x + " not an object: " + A);
|
|
5890
5890
|
if (g.hasOwnProperty(x = "ALPHABET"))
|
|
5891
|
-
if (
|
|
5892
|
-
M =
|
|
5891
|
+
if (A = g[x], typeof A == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(A))
|
|
5892
|
+
M = A.slice(0, 10) == "0123456789", v = A;
|
|
5893
5893
|
else
|
|
5894
|
-
throw Error(mn + x + " invalid: " +
|
|
5894
|
+
throw Error(mn + x + " invalid: " + A);
|
|
5895
5895
|
} else
|
|
5896
5896
|
throw Error(mn + "Object expected: " + g);
|
|
5897
5897
|
return {
|
|
@@ -5902,55 +5902,55 @@ function R5(t) {
|
|
|
5902
5902
|
CRYPTO: f,
|
|
5903
5903
|
MODULO_MODE: b,
|
|
5904
5904
|
POW_PRECISION: w,
|
|
5905
|
-
FORMAT:
|
|
5905
|
+
FORMAT: y,
|
|
5906
5906
|
ALPHABET: v
|
|
5907
5907
|
};
|
|
5908
|
-
},
|
|
5908
|
+
}, k.isBigNumber = function(g) {
|
|
5909
5909
|
if (!g || g._isBigNumber !== !0) return !1;
|
|
5910
|
-
if (!
|
|
5911
|
-
var x,
|
|
5912
|
-
e: if ({}.toString.call(
|
|
5910
|
+
if (!k.DEBUG) return !0;
|
|
5911
|
+
var x, A, q = g.c, B = g.e, E = g.s;
|
|
5912
|
+
e: if ({}.toString.call(q) == "[object Array]") {
|
|
5913
5913
|
if ((E === 1 || E === -1) && B >= -Ke && B <= Ke && B === bn(B)) {
|
|
5914
|
-
if (
|
|
5915
|
-
if (B === 0 &&
|
|
5914
|
+
if (q[0] === 0) {
|
|
5915
|
+
if (B === 0 && q.length === 1) return !0;
|
|
5916
5916
|
break e;
|
|
5917
5917
|
}
|
|
5918
|
-
if (x = (B + 1) % ae, x < 1 && (x += ae), String(
|
|
5919
|
-
for (x = 0; x <
|
|
5920
|
-
if (
|
|
5921
|
-
if (
|
|
5918
|
+
if (x = (B + 1) % ae, x < 1 && (x += ae), String(q[0]).length == x) {
|
|
5919
|
+
for (x = 0; x < q.length; x++)
|
|
5920
|
+
if (A = q[x], A < 0 || A >= Xn || A !== bn(A)) break e;
|
|
5921
|
+
if (A !== 0) return !0;
|
|
5922
5922
|
}
|
|
5923
5923
|
}
|
|
5924
|
-
} else if (
|
|
5924
|
+
} else if (q === null && B === null && (E === null || E === 1 || E === -1))
|
|
5925
5925
|
return !0;
|
|
5926
5926
|
throw Error(mn + "Invalid BigNumber: " + g);
|
|
5927
|
-
},
|
|
5927
|
+
}, k.maximum = k.max = function() {
|
|
5928
5928
|
return H(arguments, -1);
|
|
5929
|
-
},
|
|
5929
|
+
}, k.minimum = k.min = function() {
|
|
5930
5930
|
return H(arguments, 1);
|
|
5931
|
-
},
|
|
5931
|
+
}, k.random = function() {
|
|
5932
5932
|
var g = 9007199254740992, x = Math.random() * g & 2097151 ? function() {
|
|
5933
5933
|
return bn(Math.random() * g);
|
|
5934
5934
|
} : function() {
|
|
5935
5935
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
5936
5936
|
};
|
|
5937
|
-
return function(
|
|
5938
|
-
var
|
|
5939
|
-
if (
|
|
5937
|
+
return function(A) {
|
|
5938
|
+
var q, B, E, F, C, P = 0, I = [], N = new k(r);
|
|
5939
|
+
if (A == null ? A = s : Te(A, 0, Ke), F = W0(A / ae), f)
|
|
5940
5940
|
if (crypto.getRandomValues) {
|
|
5941
|
-
for (
|
|
5942
|
-
C =
|
|
5941
|
+
for (q = crypto.getRandomValues(new Uint32Array(F *= 2)); P < F; )
|
|
5942
|
+
C = q[P] * 131072 + (q[P + 1] >>> 11), C >= 9e15 ? (B = crypto.getRandomValues(new Uint32Array(2)), q[P] = B[0], q[P + 1] = B[1]) : (I.push(C % 1e14), P += 2);
|
|
5943
5943
|
P = F / 2;
|
|
5944
5944
|
} else if (crypto.randomBytes) {
|
|
5945
|
-
for (
|
|
5946
|
-
C = (
|
|
5945
|
+
for (q = crypto.randomBytes(F *= 7); P < F; )
|
|
5946
|
+
C = (q[P] & 31) * 281474976710656 + q[P + 1] * 1099511627776 + q[P + 2] * 4294967296 + q[P + 3] * 16777216 + (q[P + 4] << 16) + (q[P + 5] << 8) + q[P + 6], C >= 9e15 ? crypto.randomBytes(7).copy(q, P) : (I.push(C % 1e14), P += 7);
|
|
5947
5947
|
P = F / 7;
|
|
5948
5948
|
} else
|
|
5949
5949
|
throw f = !1, Error(mn + "crypto unavailable");
|
|
5950
5950
|
if (!f)
|
|
5951
5951
|
for (; P < F; )
|
|
5952
5952
|
C = x(), C < 9e15 && (I[P++] = C % 1e14);
|
|
5953
|
-
for (F = I[--P],
|
|
5953
|
+
for (F = I[--P], A %= ae, F && A && (C = G0[ae - A], I[P] = bn(F / C) * C); I[P] === 0; I.pop(), P--) ;
|
|
5954
5954
|
if (P < 0)
|
|
5955
5955
|
I = [E = 0];
|
|
5956
5956
|
else {
|
|
@@ -5960,75 +5960,75 @@ function R5(t) {
|
|
|
5960
5960
|
}
|
|
5961
5961
|
return N.e = E, N.c = I, N;
|
|
5962
5962
|
};
|
|
5963
|
-
}(),
|
|
5964
|
-
for (var g = 1, x = arguments,
|
|
5965
|
-
return
|
|
5963
|
+
}(), k.sum = function() {
|
|
5964
|
+
for (var g = 1, x = arguments, A = new k(x[0]); g < x.length; ) A = A.plus(x[g++]);
|
|
5965
|
+
return A;
|
|
5966
5966
|
}, e = /* @__PURE__ */ function() {
|
|
5967
5967
|
var g = "0123456789";
|
|
5968
|
-
function x(
|
|
5969
|
-
for (var F, C = [0], P, I = 0, N =
|
|
5970
|
-
for (P = C.length; P--; C[P] *=
|
|
5971
|
-
for (C[0] += E.indexOf(
|
|
5968
|
+
function x(A, q, B, E) {
|
|
5969
|
+
for (var F, C = [0], P, I = 0, N = A.length; I < N; ) {
|
|
5970
|
+
for (P = C.length; P--; C[P] *= q) ;
|
|
5971
|
+
for (C[0] += E.indexOf(A.charAt(I++)), F = 0; F < C.length; F++)
|
|
5972
5972
|
C[F] > B - 1 && (C[F + 1] == null && (C[F + 1] = 0), C[F + 1] += C[F] / B | 0, C[F] %= B);
|
|
5973
5973
|
}
|
|
5974
5974
|
return C.reverse();
|
|
5975
5975
|
}
|
|
5976
|
-
return function(
|
|
5977
|
-
var C, P, I, N, L, G, K, ne, ye =
|
|
5978
|
-
for (ye >= 0 && (N = w, w = 0,
|
|
5976
|
+
return function(A, q, B, E, F) {
|
|
5977
|
+
var C, P, I, N, L, G, K, ne, ye = A.indexOf("."), Ee = s, Q = m;
|
|
5978
|
+
for (ye >= 0 && (N = w, w = 0, A = A.replace(".", ""), ne = new k(q), G = ne.pow(A.length - ye), w = N, ne.c = x(
|
|
5979
5979
|
mt(xn(G.c), G.e, "0"),
|
|
5980
5980
|
10,
|
|
5981
5981
|
B,
|
|
5982
5982
|
g
|
|
5983
|
-
), ne.e = ne.c.length), K = x(
|
|
5983
|
+
), ne.e = ne.c.length), K = x(A, q, B, F ? (C = v, g) : (C = g, v)), I = N = K.length; K[--N] == 0; K.pop()) ;
|
|
5984
5984
|
if (!K[0]) return C.charAt(0);
|
|
5985
5985
|
if (ye < 0 ? --I : (G.c = K, G.e = I, G.s = E, G = i(G, ne, Ee, Q, B), K = G.c, L = G.r, I = G.e), P = I + Ee + 1, ye = K[P], N = B / 2, L = L || P < 0 || K[P + 1] != null, L = Q < 4 ? (ye != null || L) && (Q == 0 || Q == (G.s < 0 ? 3 : 2)) : ye > N || ye == N && (Q == 4 || L || Q == 6 && K[P - 1] & 1 || Q == (G.s < 0 ? 8 : 7)), P < 1 || !K[0])
|
|
5986
|
-
|
|
5986
|
+
A = L ? mt(C.charAt(1), -Ee, C.charAt(0)) : C.charAt(0);
|
|
5987
5987
|
else {
|
|
5988
5988
|
if (K.length = P, L)
|
|
5989
5989
|
for (--B; ++K[--P] > B; )
|
|
5990
5990
|
K[P] = 0, P || (++I, K = [1].concat(K));
|
|
5991
5991
|
for (N = K.length; !K[--N]; ) ;
|
|
5992
|
-
for (ye = 0,
|
|
5993
|
-
|
|
5992
|
+
for (ye = 0, A = ""; ye <= N; A += C.charAt(K[ye++])) ;
|
|
5993
|
+
A = mt(A, I, C.charAt(0));
|
|
5994
5994
|
}
|
|
5995
|
-
return
|
|
5995
|
+
return A;
|
|
5996
5996
|
};
|
|
5997
5997
|
}(), i = /* @__PURE__ */ function() {
|
|
5998
|
-
function g(
|
|
5999
|
-
var F, C, P, I, N = 0, L =
|
|
6000
|
-
for (
|
|
6001
|
-
P =
|
|
6002
|
-
return N && (
|
|
5998
|
+
function g(q, B, E) {
|
|
5999
|
+
var F, C, P, I, N = 0, L = q.length, G = B % Zl, K = B / Zl | 0;
|
|
6000
|
+
for (q = q.slice(); L--; )
|
|
6001
|
+
P = q[L] % Zl, I = q[L] / Zl | 0, F = K * P + I * G, C = G * P + F % Zl * Zl + N, N = (C / E | 0) + (F / Zl | 0) + K * I, q[L] = C % E;
|
|
6002
|
+
return N && (q = [N].concat(q)), q;
|
|
6003
6003
|
}
|
|
6004
|
-
function x(
|
|
6004
|
+
function x(q, B, E, F) {
|
|
6005
6005
|
var C, P;
|
|
6006
6006
|
if (E != F)
|
|
6007
6007
|
P = E > F ? 1 : -1;
|
|
6008
6008
|
else
|
|
6009
6009
|
for (C = P = 0; C < E; C++)
|
|
6010
|
-
if (
|
|
6011
|
-
P =
|
|
6010
|
+
if (q[C] != B[C]) {
|
|
6011
|
+
P = q[C] > B[C] ? 1 : -1;
|
|
6012
6012
|
break;
|
|
6013
6013
|
}
|
|
6014
6014
|
return P;
|
|
6015
6015
|
}
|
|
6016
|
-
function
|
|
6016
|
+
function A(q, B, E, F) {
|
|
6017
6017
|
for (var C = 0; E--; )
|
|
6018
|
-
|
|
6019
|
-
for (; !
|
|
6018
|
+
q[E] -= C, C = q[E] < B[E] ? 1 : 0, q[E] = C * F + q[E] - B[E];
|
|
6019
|
+
for (; !q[0] && q.length > 1; q.splice(0, 1)) ;
|
|
6020
6020
|
}
|
|
6021
|
-
return function(
|
|
6022
|
-
var P, I, N, L, G, K, ne, ye, Ee, Q, te, xe, nn, We, uu, an, sn, gn =
|
|
6021
|
+
return function(q, B, E, F, C) {
|
|
6022
|
+
var P, I, N, L, G, K, ne, ye, Ee, Q, te, xe, nn, We, uu, an, sn, gn = q.s == B.s ? 1 : -1, cn = q.c, Ie = B.c;
|
|
6023
6023
|
if (!cn || !cn[0] || !Ie || !Ie[0])
|
|
6024
|
-
return new
|
|
6024
|
+
return new k(
|
|
6025
6025
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
6026
|
-
!
|
|
6026
|
+
!q.s || !B.s || (cn ? Ie && cn[0] == Ie[0] : !Ie) ? NaN : (
|
|
6027
6027
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
6028
6028
|
cn && cn[0] == 0 || !Ie ? gn * 0 : gn / 0
|
|
6029
6029
|
)
|
|
6030
6030
|
);
|
|
6031
|
-
for (ye = new
|
|
6031
|
+
for (ye = new k(gn), Ee = ye.c = [], I = q.e - B.e, gn = E + I + 1, C || (C = Xn, I = wn(q.e / ae) - wn(B.e / ae), gn = gn / ae | 0), N = 0; Ie[N] == (cn[N] || 0); N++) ;
|
|
6032
6032
|
if (Ie[N] > (cn[N] || 0) && I--, gn < 0)
|
|
6033
6033
|
Ee.push(1), L = !0;
|
|
6034
6034
|
else {
|
|
@@ -6038,12 +6038,12 @@ function R5(t) {
|
|
|
6038
6038
|
if (G = 0, P = x(Ie, Q, an, te), P < 0) {
|
|
6039
6039
|
if (xe = Q[0], an != te && (xe = xe * C + (Q[1] || 0)), G = bn(xe / uu), G > 1)
|
|
6040
6040
|
for (G >= C && (G = C - 1), K = g(Ie, G, C), ne = K.length, te = Q.length; x(K, Q, ne, te) == 1; )
|
|
6041
|
-
G--,
|
|
6041
|
+
G--, A(K, an < ne ? sn : Ie, ne, C), ne = K.length, P = 1;
|
|
6042
6042
|
else
|
|
6043
6043
|
G == 0 && (P = G = 1), K = Ie.slice(), ne = K.length;
|
|
6044
|
-
if (ne < te && (K = [0].concat(K)),
|
|
6044
|
+
if (ne < te && (K = [0].concat(K)), A(Q, K, te, C), te = Q.length, P == -1)
|
|
6045
6045
|
for (; x(Ie, Q, an, te) < 1; )
|
|
6046
|
-
G++,
|
|
6046
|
+
G++, A(Q, an < te ? sn : Ie, te, C), te = Q.length;
|
|
6047
6047
|
} else P === 0 && (G++, Q = [0]);
|
|
6048
6048
|
Ee[N++] = G, Q[0] ? Q[te++] = cn[nn] || 0 : (Q = [cn[nn]], te = 1);
|
|
6049
6049
|
} while ((nn++ < We || Q[0] != null) && gn--);
|
|
@@ -6051,18 +6051,18 @@ function R5(t) {
|
|
|
6051
6051
|
}
|
|
6052
6052
|
if (C == Xn) {
|
|
6053
6053
|
for (N = 1, gn = Ee[0]; gn >= 10; gn /= 10, N++) ;
|
|
6054
|
-
|
|
6054
|
+
S(ye, E + (ye.e = N + I * ae - 1) + 1, F, L);
|
|
6055
6055
|
} else
|
|
6056
6056
|
ye.e = I, ye.r = +L;
|
|
6057
6057
|
return ye;
|
|
6058
6058
|
};
|
|
6059
6059
|
}();
|
|
6060
|
-
function z(g, x,
|
|
6060
|
+
function z(g, x, A, q) {
|
|
6061
6061
|
var B, E, F, C, P;
|
|
6062
|
-
if (
|
|
6062
|
+
if (A == null ? A = m : Te(A, 0, 8), !g.c) return g.toString();
|
|
6063
6063
|
if (B = g.c[0], F = g.e, x == null)
|
|
6064
|
-
P = xn(g.c), P =
|
|
6065
|
-
else if (g =
|
|
6064
|
+
P = xn(g.c), P = q == 1 || q == 2 && (F <= l || F >= u) ? oh(P, F) : mt(P, F, "0");
|
|
6065
|
+
else if (g = S(new k(g), x, A), E = g.e, P = xn(g.c), C = P.length, q == 1 || q == 2 && (x <= E || E <= l)) {
|
|
6066
6066
|
for (; C < x; P += "0", C++) ;
|
|
6067
6067
|
P = oh(P, E);
|
|
6068
6068
|
} else if (x -= F, P = mt(P, E, "0"), E + 1 > C) {
|
|
@@ -6072,34 +6072,34 @@ function R5(t) {
|
|
|
6072
6072
|
return g.s < 0 && B ? "-" + P : P;
|
|
6073
6073
|
}
|
|
6074
6074
|
function H(g, x) {
|
|
6075
|
-
for (var
|
|
6076
|
-
|
|
6075
|
+
for (var A, q, B = 1, E = new k(g[0]); B < g.length; B++)
|
|
6076
|
+
q = new k(g[B]), (!q.s || (A = pu(E, q)) === x || A === 0 && E.s === x) && (E = q);
|
|
6077
6077
|
return E;
|
|
6078
6078
|
}
|
|
6079
|
-
function V(g, x,
|
|
6080
|
-
for (var
|
|
6081
|
-
for (B = x[0]; B >= 10; B /= 10,
|
|
6082
|
-
return (
|
|
6079
|
+
function V(g, x, A) {
|
|
6080
|
+
for (var q = 1, B = x.length; !x[--B]; x.pop()) ;
|
|
6081
|
+
for (B = x[0]; B >= 10; B /= 10, q++) ;
|
|
6082
|
+
return (A = q + A * ae - 1) > D ? g.c = g.e = null : A < h ? g.c = [g.e = 0] : (g.e = A, g.c = x), g;
|
|
6083
6083
|
}
|
|
6084
6084
|
n = /* @__PURE__ */ function() {
|
|
6085
|
-
var g = /^(-?)0([xbo])(?=\w[\w.]*$)/i, x = /^([^.]+)\.$/,
|
|
6085
|
+
var g = /^(-?)0([xbo])(?=\w[\w.]*$)/i, x = /^([^.]+)\.$/, A = /^\.([^.]+)$/, q = /^-?(Infinity|NaN)$/, B = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
6086
6086
|
return function(E, F, C, P) {
|
|
6087
6087
|
var I, N = C ? F : F.replace(B, "");
|
|
6088
|
-
if (
|
|
6088
|
+
if (q.test(N))
|
|
6089
6089
|
E.s = isNaN(N) ? null : N < 0 ? -1 : 1;
|
|
6090
6090
|
else {
|
|
6091
6091
|
if (!C && (N = N.replace(g, function(L, G, K) {
|
|
6092
6092
|
return I = (K = K.toLowerCase()) == "x" ? 16 : K == "b" ? 2 : 8, !P || P == I ? G : L;
|
|
6093
|
-
}), P && (I = P, N = N.replace(x, "$1").replace(
|
|
6094
|
-
return new
|
|
6095
|
-
if (
|
|
6093
|
+
}), P && (I = P, N = N.replace(x, "$1").replace(A, "0.$1")), F != N))
|
|
6094
|
+
return new k(N, I);
|
|
6095
|
+
if (k.DEBUG)
|
|
6096
6096
|
throw Error(mn + "Not a" + (P ? " base " + P : "") + " number: " + F);
|
|
6097
6097
|
E.s = null;
|
|
6098
6098
|
}
|
|
6099
6099
|
E.c = E.e = null;
|
|
6100
6100
|
};
|
|
6101
6101
|
}();
|
|
6102
|
-
function
|
|
6102
|
+
function S(g, x, A, q) {
|
|
6103
6103
|
var B, E, F, C, P, I, N, L = g.c, G = G0;
|
|
6104
6104
|
if (L) {
|
|
6105
6105
|
e: {
|
|
@@ -6107,7 +6107,7 @@ function R5(t) {
|
|
|
6107
6107
|
if (E = x - B, E < 0)
|
|
6108
6108
|
E += ae, F = x, P = L[I = 0], N = bn(P / G[B - F - 1] % 10);
|
|
6109
6109
|
else if (I = W0((E + 1) / ae), I >= L.length)
|
|
6110
|
-
if (
|
|
6110
|
+
if (q) {
|
|
6111
6111
|
for (; L.length <= I; L.push(0)) ;
|
|
6112
6112
|
P = N = 0, B = 1, E %= ae, F = E - ae + 1;
|
|
6113
6113
|
} else
|
|
@@ -6116,13 +6116,13 @@ function R5(t) {
|
|
|
6116
6116
|
for (P = C = L[I], B = 1; C >= 10; C /= 10, B++) ;
|
|
6117
6117
|
E %= ae, F = E - ae + B, N = F < 0 ? 0 : bn(P / G[B - F - 1] % 10);
|
|
6118
6118
|
}
|
|
6119
|
-
if (
|
|
6119
|
+
if (q = q || x < 0 || // Are there any non-zero digits after the rounding digit?
|
|
6120
6120
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
6121
6121
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
6122
|
-
L[I + 1] != null || (F < 0 ? P : P % G[B - F - 1]),
|
|
6123
|
-
(E > 0 ? F > 0 ? P / G[B - F] : 0 : L[I - 1]) % 10 & 1 ||
|
|
6124
|
-
return L.length = 0,
|
|
6125
|
-
if (E == 0 ? (L.length = I, C = 1, I--) : (L.length = I + 1, C = G[ae - E], L[I] = F > 0 ? bn(P / G[B - F] % G[F]) * C : 0),
|
|
6122
|
+
L[I + 1] != null || (F < 0 ? P : P % G[B - F - 1]), q = A < 4 ? (N || q) && (A == 0 || A == (g.s < 0 ? 3 : 2)) : N > 5 || N == 5 && (A == 4 || q || A == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
6123
|
+
(E > 0 ? F > 0 ? P / G[B - F] : 0 : L[I - 1]) % 10 & 1 || A == (g.s < 0 ? 8 : 7)), x < 1 || !L[0])
|
|
6124
|
+
return L.length = 0, q ? (x -= g.e + 1, L[0] = G[(ae - x % ae) % ae], g.e = -x || 0) : L[0] = g.e = 0, g;
|
|
6125
|
+
if (E == 0 ? (L.length = I, C = 1, I--) : (L.length = I + 1, C = G[ae - E], L[I] = F > 0 ? bn(P / G[B - F] % G[F]) * C : 0), q)
|
|
6126
6126
|
for (; ; )
|
|
6127
6127
|
if (I == 0) {
|
|
6128
6128
|
for (E = 1, F = L[0]; F >= 10; F /= 10, E++) ;
|
|
@@ -6140,73 +6140,73 @@ function R5(t) {
|
|
|
6140
6140
|
return g;
|
|
6141
6141
|
}
|
|
6142
6142
|
function j(g) {
|
|
6143
|
-
var x,
|
|
6144
|
-
return
|
|
6143
|
+
var x, A = g.e;
|
|
6144
|
+
return A === null ? g.toString() : (x = xn(g.c), x = A <= l || A >= u ? oh(x, A) : mt(x, A, "0"), g.s < 0 ? "-" + x : x);
|
|
6145
6145
|
}
|
|
6146
6146
|
return c.absoluteValue = c.abs = function() {
|
|
6147
|
-
var g = new
|
|
6147
|
+
var g = new k(this);
|
|
6148
6148
|
return g.s < 0 && (g.s = 1), g;
|
|
6149
6149
|
}, c.comparedTo = function(g, x) {
|
|
6150
|
-
return pu(this, new
|
|
6150
|
+
return pu(this, new k(g, x));
|
|
6151
6151
|
}, c.decimalPlaces = c.dp = function(g, x) {
|
|
6152
|
-
var
|
|
6152
|
+
var A, q, B, E = this;
|
|
6153
6153
|
if (g != null)
|
|
6154
|
-
return Te(g, 0, Ke), x == null ? x = m : Te(x, 0, 8),
|
|
6155
|
-
if (!(
|
|
6156
|
-
if (
|
|
6157
|
-
return
|
|
6154
|
+
return Te(g, 0, Ke), x == null ? x = m : Te(x, 0, 8), S(new k(E), g + E.e + 1, x);
|
|
6155
|
+
if (!(A = E.c)) return null;
|
|
6156
|
+
if (q = ((B = A.length - 1) - wn(this.e / ae)) * ae, B = A[B]) for (; B % 10 == 0; B /= 10, q--) ;
|
|
6157
|
+
return q < 0 && (q = 0), q;
|
|
6158
6158
|
}, c.dividedBy = c.div = function(g, x) {
|
|
6159
|
-
return i(this, new
|
|
6159
|
+
return i(this, new k(g, x), s, m);
|
|
6160
6160
|
}, c.dividedToIntegerBy = c.idiv = function(g, x) {
|
|
6161
|
-
return i(this, new
|
|
6161
|
+
return i(this, new k(g, x), 0, 1);
|
|
6162
6162
|
}, c.exponentiatedBy = c.pow = function(g, x) {
|
|
6163
|
-
var
|
|
6164
|
-
if (g = new
|
|
6163
|
+
var A, q, B, E, F, C, P, I, N, L = this;
|
|
6164
|
+
if (g = new k(g), g.c && !g.isInteger())
|
|
6165
6165
|
throw Error(mn + "Exponent not an integer: " + j(g));
|
|
6166
|
-
if (x != null && (x = new
|
|
6167
|
-
return N = new
|
|
6166
|
+
if (x != null && (x = new k(x)), C = g.e > 14, !L.c || !L.c[0] || L.c[0] == 1 && !L.e && L.c.length == 1 || !g.c || !g.c[0])
|
|
6167
|
+
return N = new k(Math.pow(+j(L), C ? g.s * (2 - ih(g)) : +j(g))), x ? N.mod(x) : N;
|
|
6168
6168
|
if (P = g.s < 0, x) {
|
|
6169
|
-
if (x.c ? !x.c[0] : !x.s) return new
|
|
6170
|
-
|
|
6169
|
+
if (x.c ? !x.c[0] : !x.s) return new k(NaN);
|
|
6170
|
+
q = !P && L.isInteger() && x.isInteger(), q && (L = L.mod(x));
|
|
6171
6171
|
} else {
|
|
6172
6172
|
if (g.e > 9 && (L.e > 0 || L.e < -1 || (L.e == 0 ? L.c[0] > 1 || C && L.c[1] >= 24e7 : L.c[0] < 8e13 || C && L.c[0] <= 9999975e7)))
|
|
6173
|
-
return E = L.s < 0 && ih(g) ? -0 : 0, L.e > -1 && (E = 1 / E), new
|
|
6173
|
+
return E = L.s < 0 && ih(g) ? -0 : 0, L.e > -1 && (E = 1 / E), new k(P ? 1 / E : E);
|
|
6174
6174
|
w && (E = W0(w / ae + 2));
|
|
6175
6175
|
}
|
|
6176
|
-
for (C ? (
|
|
6176
|
+
for (C ? (A = new k(0.5), P && (g.s = 1), I = ih(g)) : (B = Math.abs(+j(g)), I = B % 2), N = new k(r); ; ) {
|
|
6177
6177
|
if (I) {
|
|
6178
6178
|
if (N = N.times(L), !N.c) break;
|
|
6179
|
-
E ? N.c.length > E && (N.c.length = E) :
|
|
6179
|
+
E ? N.c.length > E && (N.c.length = E) : q && (N = N.mod(x));
|
|
6180
6180
|
}
|
|
6181
6181
|
if (B) {
|
|
6182
6182
|
if (B = bn(B / 2), B === 0) break;
|
|
6183
6183
|
I = B % 2;
|
|
6184
|
-
} else if (g = g.times(
|
|
6184
|
+
} else if (g = g.times(A), S(g, g.e + 1, 1), g.e > 14)
|
|
6185
6185
|
I = ih(g);
|
|
6186
6186
|
else {
|
|
6187
6187
|
if (B = +j(g), B === 0) break;
|
|
6188
6188
|
I = B % 2;
|
|
6189
6189
|
}
|
|
6190
|
-
L = L.times(L), E ? L.c && L.c.length > E && (L.c.length = E) :
|
|
6190
|
+
L = L.times(L), E ? L.c && L.c.length > E && (L.c.length = E) : q && (L = L.mod(x));
|
|
6191
6191
|
}
|
|
6192
|
-
return
|
|
6192
|
+
return q ? N : (P && (N = r.div(N)), x ? N.mod(x) : E ? S(N, w, m, F) : N);
|
|
6193
6193
|
}, c.integerValue = function(g) {
|
|
6194
|
-
var x = new
|
|
6195
|
-
return g == null ? g = m : Te(g, 0, 8),
|
|
6194
|
+
var x = new k(this);
|
|
6195
|
+
return g == null ? g = m : Te(g, 0, 8), S(x, x.e + 1, g);
|
|
6196
6196
|
}, c.isEqualTo = c.eq = function(g, x) {
|
|
6197
|
-
return pu(this, new
|
|
6197
|
+
return pu(this, new k(g, x)) === 0;
|
|
6198
6198
|
}, c.isFinite = function() {
|
|
6199
6199
|
return !!this.c;
|
|
6200
6200
|
}, c.isGreaterThan = c.gt = function(g, x) {
|
|
6201
|
-
return pu(this, new
|
|
6201
|
+
return pu(this, new k(g, x)) > 0;
|
|
6202
6202
|
}, c.isGreaterThanOrEqualTo = c.gte = function(g, x) {
|
|
6203
|
-
return (x = pu(this, new
|
|
6203
|
+
return (x = pu(this, new k(g, x))) === 1 || x === 0;
|
|
6204
6204
|
}, c.isInteger = function() {
|
|
6205
6205
|
return !!this.c && wn(this.e / ae) > this.c.length - 2;
|
|
6206
6206
|
}, c.isLessThan = c.lt = function(g, x) {
|
|
6207
|
-
return pu(this, new
|
|
6207
|
+
return pu(this, new k(g, x)) < 0;
|
|
6208
6208
|
}, c.isLessThanOrEqualTo = c.lte = function(g, x) {
|
|
6209
|
-
return (x = pu(this, new
|
|
6209
|
+
return (x = pu(this, new k(g, x))) === -1 || x === 0;
|
|
6210
6210
|
}, c.isNaN = function() {
|
|
6211
6211
|
return !this.s;
|
|
6212
6212
|
}, c.isNegative = function() {
|
|
@@ -6216,15 +6216,15 @@ function R5(t) {
|
|
|
6216
6216
|
}, c.isZero = function() {
|
|
6217
6217
|
return !!this.c && this.c[0] == 0;
|
|
6218
6218
|
}, c.minus = function(g, x) {
|
|
6219
|
-
var
|
|
6220
|
-
if (g = new
|
|
6219
|
+
var A, q, B, E, F = this, C = F.s;
|
|
6220
|
+
if (g = new k(g, x), x = g.s, !C || !x) return new k(NaN);
|
|
6221
6221
|
if (C != x)
|
|
6222
6222
|
return g.s = -x, F.plus(g);
|
|
6223
6223
|
var P = F.e / ae, I = g.e / ae, N = F.c, L = g.c;
|
|
6224
6224
|
if (!P || !I) {
|
|
6225
|
-
if (!N || !L) return N ? (g.s = -x, g) : new
|
|
6225
|
+
if (!N || !L) return N ? (g.s = -x, g) : new k(L ? F : NaN);
|
|
6226
6226
|
if (!N[0] || !L[0])
|
|
6227
|
-
return L[0] ? (g.s = -x, g) : new
|
|
6227
|
+
return L[0] ? (g.s = -x, g) : new k(N[0] ? F : (
|
|
6228
6228
|
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
|
|
6229
6229
|
m == 3 ? -0 : 0
|
|
6230
6230
|
));
|
|
@@ -6233,128 +6233,128 @@ function R5(t) {
|
|
|
6233
6233
|
for ((E = C < 0) ? (C = -C, B = N) : (I = P, B = L), B.reverse(), x = C; x--; B.push(0)) ;
|
|
6234
6234
|
B.reverse();
|
|
6235
6235
|
} else
|
|
6236
|
-
for (
|
|
6236
|
+
for (q = (E = (C = N.length) < (x = L.length)) ? C : x, C = x = 0; x < q; x++)
|
|
6237
6237
|
if (N[x] != L[x]) {
|
|
6238
6238
|
E = N[x] < L[x];
|
|
6239
6239
|
break;
|
|
6240
6240
|
}
|
|
6241
|
-
if (E && (B = N, N = L, L = B, g.s = -g.s), x = (
|
|
6242
|
-
for (x = Xn - 1;
|
|
6243
|
-
if (N[--
|
|
6244
|
-
for (
|
|
6245
|
-
--N[
|
|
6241
|
+
if (E && (B = N, N = L, L = B, g.s = -g.s), x = (q = L.length) - (A = N.length), x > 0) for (; x--; N[A++] = 0) ;
|
|
6242
|
+
for (x = Xn - 1; q > C; ) {
|
|
6243
|
+
if (N[--q] < L[q]) {
|
|
6244
|
+
for (A = q; A && !N[--A]; N[A] = x) ;
|
|
6245
|
+
--N[A], N[q] += Xn;
|
|
6246
6246
|
}
|
|
6247
|
-
N[
|
|
6247
|
+
N[q] -= L[q];
|
|
6248
6248
|
}
|
|
6249
6249
|
for (; N[0] == 0; N.splice(0, 1), --I) ;
|
|
6250
6250
|
return N[0] ? V(g, N, I) : (g.s = m == 3 ? -1 : 1, g.c = [g.e = 0], g);
|
|
6251
6251
|
}, c.modulo = c.mod = function(g, x) {
|
|
6252
|
-
var
|
|
6253
|
-
return g = new
|
|
6252
|
+
var A, q, B = this;
|
|
6253
|
+
return g = new k(g, x), !B.c || !g.s || g.c && !g.c[0] ? new k(NaN) : !g.c || B.c && !B.c[0] ? new k(B) : (b == 9 ? (q = g.s, g.s = 1, A = i(B, g, 0, 3), g.s = q, A.s *= q) : A = i(B, g, 0, b), g = B.minus(A.times(g)), !g.c[0] && b == 1 && (g.s = B.s), g);
|
|
6254
6254
|
}, c.multipliedBy = c.times = function(g, x) {
|
|
6255
|
-
var
|
|
6255
|
+
var A, q, B, E, F, C, P, I, N, L, G, K, ne, ye, Ee, Q = this, te = Q.c, xe = (g = new k(g, x)).c;
|
|
6256
6256
|
if (!te || !xe || !te[0] || !xe[0])
|
|
6257
6257
|
return !Q.s || !g.s || te && !te[0] && !xe || xe && !xe[0] && !te ? g.c = g.e = g.s = null : (g.s *= Q.s, !te || !xe ? g.c = g.e = null : (g.c = [0], g.e = 0)), g;
|
|
6258
|
-
for (
|
|
6258
|
+
for (q = wn(Q.e / ae) + wn(g.e / ae), g.s *= Q.s, P = te.length, L = xe.length, P < L && (ne = te, te = xe, xe = ne, B = P, P = L, L = B), B = P + L, ne = []; B--; ne.push(0)) ;
|
|
6259
6259
|
for (ye = Xn, Ee = Zl, B = L; --B >= 0; ) {
|
|
6260
|
-
for (
|
|
6261
|
-
I = te[--F] % Ee, N = te[F] / Ee | 0, C = K * I + N * G, I = G * I + C % Ee * Ee + ne[E] +
|
|
6262
|
-
ne[E] =
|
|
6260
|
+
for (A = 0, G = xe[B] % Ee, K = xe[B] / Ee | 0, F = P, E = B + F; E > B; )
|
|
6261
|
+
I = te[--F] % Ee, N = te[F] / Ee | 0, C = K * I + N * G, I = G * I + C % Ee * Ee + ne[E] + A, A = (I / ye | 0) + (C / Ee | 0) + K * N, ne[E--] = I % ye;
|
|
6262
|
+
ne[E] = A;
|
|
6263
6263
|
}
|
|
6264
|
-
return
|
|
6264
|
+
return A ? ++q : ne.splice(0, 1), V(g, ne, q);
|
|
6265
6265
|
}, c.negated = function() {
|
|
6266
|
-
var g = new
|
|
6266
|
+
var g = new k(this);
|
|
6267
6267
|
return g.s = -g.s || null, g;
|
|
6268
6268
|
}, c.plus = function(g, x) {
|
|
6269
|
-
var
|
|
6270
|
-
if (g = new
|
|
6269
|
+
var A, q = this, B = q.s;
|
|
6270
|
+
if (g = new k(g, x), x = g.s, !B || !x) return new k(NaN);
|
|
6271
6271
|
if (B != x)
|
|
6272
|
-
return g.s = -x,
|
|
6273
|
-
var E =
|
|
6272
|
+
return g.s = -x, q.minus(g);
|
|
6273
|
+
var E = q.e / ae, F = g.e / ae, C = q.c, P = g.c;
|
|
6274
6274
|
if (!E || !F) {
|
|
6275
|
-
if (!C || !P) return new
|
|
6276
|
-
if (!C[0] || !P[0]) return P[0] ? g : new
|
|
6275
|
+
if (!C || !P) return new k(B / 0);
|
|
6276
|
+
if (!C[0] || !P[0]) return P[0] ? g : new k(C[0] ? q : B * 0);
|
|
6277
6277
|
}
|
|
6278
6278
|
if (E = wn(E), F = wn(F), C = C.slice(), B = E - F) {
|
|
6279
|
-
for (B > 0 ? (F = E,
|
|
6280
|
-
|
|
6279
|
+
for (B > 0 ? (F = E, A = P) : (B = -B, A = C), A.reverse(); B--; A.push(0)) ;
|
|
6280
|
+
A.reverse();
|
|
6281
6281
|
}
|
|
6282
|
-
for (B = C.length, x = P.length, B - x < 0 && (
|
|
6282
|
+
for (B = C.length, x = P.length, B - x < 0 && (A = P, P = C, C = A, x = B), B = 0; x; )
|
|
6283
6283
|
B = (C[--x] = C[x] + P[x] + B) / Xn | 0, C[x] = Xn === C[x] ? 0 : C[x] % Xn;
|
|
6284
6284
|
return B && (C = [B].concat(C), ++F), V(g, C, F);
|
|
6285
6285
|
}, c.precision = c.sd = function(g, x) {
|
|
6286
|
-
var
|
|
6286
|
+
var A, q, B, E = this;
|
|
6287
6287
|
if (g != null && g !== !!g)
|
|
6288
|
-
return Te(g, 1, Ke), x == null ? x = m : Te(x, 0, 8),
|
|
6289
|
-
if (!(
|
|
6290
|
-
if (B =
|
|
6291
|
-
for (; B % 10 == 0; B /= 10,
|
|
6292
|
-
for (B =
|
|
6288
|
+
return Te(g, 1, Ke), x == null ? x = m : Te(x, 0, 8), S(new k(E), g, x);
|
|
6289
|
+
if (!(A = E.c)) return null;
|
|
6290
|
+
if (B = A.length - 1, q = B * ae + 1, B = A[B]) {
|
|
6291
|
+
for (; B % 10 == 0; B /= 10, q--) ;
|
|
6292
|
+
for (B = A[0]; B >= 10; B /= 10, q++) ;
|
|
6293
6293
|
}
|
|
6294
|
-
return g && E.e + 1 >
|
|
6294
|
+
return g && E.e + 1 > q && (q = E.e + 1), q;
|
|
6295
6295
|
}, c.shiftedBy = function(g) {
|
|
6296
6296
|
return Te(g, -R0, R0), this.times("1e" + g);
|
|
6297
6297
|
}, c.squareRoot = c.sqrt = function() {
|
|
6298
|
-
var g, x,
|
|
6298
|
+
var g, x, A, q, B, E = this, F = E.c, C = E.s, P = E.e, I = s + 4, N = new k("0.5");
|
|
6299
6299
|
if (C !== 1 || !F || !F[0])
|
|
6300
|
-
return new
|
|
6301
|
-
if (C = Math.sqrt(+j(E)), C == 0 || C == 1 / 0 ? (x = xn(F), (x.length + P) % 2 == 0 && (x += "0"), C = Math.sqrt(+x), P = wn((P + 1) / 2) - (P < 0 || P % 2), C == 1 / 0 ? x = "5e" + P : (x = C.toExponential(), x = x.slice(0, x.indexOf("e") + 1) + P),
|
|
6302
|
-
for (P =
|
|
6303
|
-
if (B =
|
|
6304
|
-
if (
|
|
6305
|
-
if (!
|
|
6306
|
-
|
|
6300
|
+
return new k(!C || C < 0 && (!F || F[0]) ? NaN : F ? E : 1 / 0);
|
|
6301
|
+
if (C = Math.sqrt(+j(E)), C == 0 || C == 1 / 0 ? (x = xn(F), (x.length + P) % 2 == 0 && (x += "0"), C = Math.sqrt(+x), P = wn((P + 1) / 2) - (P < 0 || P % 2), C == 1 / 0 ? x = "5e" + P : (x = C.toExponential(), x = x.slice(0, x.indexOf("e") + 1) + P), A = new k(x)) : A = new k(C + ""), A.c[0]) {
|
|
6302
|
+
for (P = A.e, C = P + I, C < 3 && (C = 0); ; )
|
|
6303
|
+
if (B = A, A = N.times(B.plus(i(E, B, I, 1))), xn(B.c).slice(0, C) === (x = xn(A.c)).slice(0, C))
|
|
6304
|
+
if (A.e < P && --C, x = x.slice(C - 3, C + 1), x == "9999" || !q && x == "4999") {
|
|
6305
|
+
if (!q && (S(B, B.e + s + 2, 0), B.times(B).eq(E))) {
|
|
6306
|
+
A = B;
|
|
6307
6307
|
break;
|
|
6308
6308
|
}
|
|
6309
|
-
I += 4, C += 4,
|
|
6309
|
+
I += 4, C += 4, q = 1;
|
|
6310
6310
|
} else {
|
|
6311
|
-
(!+x || !+x.slice(1) && x.charAt(0) == "5") && (
|
|
6311
|
+
(!+x || !+x.slice(1) && x.charAt(0) == "5") && (S(A, A.e + s + 2, 1), g = !A.times(A).eq(E));
|
|
6312
6312
|
break;
|
|
6313
6313
|
}
|
|
6314
6314
|
}
|
|
6315
|
-
return
|
|
6315
|
+
return S(A, A.e + s + 1, m, g);
|
|
6316
6316
|
}, c.toExponential = function(g, x) {
|
|
6317
6317
|
return g != null && (Te(g, 0, Ke), g++), z(this, g, x, 1);
|
|
6318
6318
|
}, c.toFixed = function(g, x) {
|
|
6319
6319
|
return g != null && (Te(g, 0, Ke), g = g + this.e + 1), z(this, g, x);
|
|
6320
|
-
}, c.toFormat = function(g, x,
|
|
6321
|
-
var
|
|
6322
|
-
if (
|
|
6323
|
-
g != null && x && typeof x == "object" ? (
|
|
6324
|
-
else if (typeof
|
|
6325
|
-
throw Error(mn + "Argument not an object: " +
|
|
6326
|
-
if (
|
|
6327
|
-
var E, F =
|
|
6320
|
+
}, c.toFormat = function(g, x, A) {
|
|
6321
|
+
var q, B = this;
|
|
6322
|
+
if (A == null)
|
|
6323
|
+
g != null && x && typeof x == "object" ? (A = x, x = null) : g && typeof g == "object" ? (A = g, g = x = null) : A = y;
|
|
6324
|
+
else if (typeof A != "object")
|
|
6325
|
+
throw Error(mn + "Argument not an object: " + A);
|
|
6326
|
+
if (q = B.toFixed(g, x), B.c) {
|
|
6327
|
+
var E, F = q.split("."), C = +A.groupSize, P = +A.secondaryGroupSize, I = A.groupSeparator || "", N = F[0], L = F[1], G = B.s < 0, K = G ? N.slice(1) : N, ne = K.length;
|
|
6328
6328
|
if (P && (E = C, C = P, P = E, ne -= E), C > 0 && ne > 0) {
|
|
6329
6329
|
for (E = ne % C || C, N = K.substr(0, E); E < ne; E += C) N += I + K.substr(E, C);
|
|
6330
6330
|
P > 0 && (N += I + K.slice(E)), G && (N = "-" + N);
|
|
6331
6331
|
}
|
|
6332
|
-
|
|
6332
|
+
q = L ? N + (A.decimalSeparator || "") + ((P = +A.fractionGroupSize) ? L.replace(
|
|
6333
6333
|
new RegExp("\\d{" + P + "}\\B", "g"),
|
|
6334
|
-
"$&" + (
|
|
6334
|
+
"$&" + (A.fractionGroupSeparator || "")
|
|
6335
6335
|
) : L) : N;
|
|
6336
6336
|
}
|
|
6337
|
-
return (
|
|
6337
|
+
return (A.prefix || "") + q + (A.suffix || "");
|
|
6338
6338
|
}, c.toFraction = function(g) {
|
|
6339
|
-
var x,
|
|
6340
|
-
if (g != null && (C = new
|
|
6339
|
+
var x, A, q, B, E, F, C, P, I, N, L, G, K = this, ne = K.c;
|
|
6340
|
+
if (g != null && (C = new k(g), !C.isInteger() && (C.c || C.s !== 1) || C.lt(r)))
|
|
6341
6341
|
throw Error(mn + "Argument " + (C.isInteger() ? "out of range: " : "not an integer: ") + j(C));
|
|
6342
|
-
if (!ne) return new
|
|
6343
|
-
for (x = new
|
|
6344
|
-
|
|
6345
|
-
return B = i(g.minus(
|
|
6346
|
-
i(P,
|
|
6347
|
-
) < 1 ? [I,
|
|
6342
|
+
if (!ne) return new k(K);
|
|
6343
|
+
for (x = new k(r), I = A = new k(r), q = P = new k(r), G = xn(ne), E = x.e = G.length - K.e - 1, x.c[0] = G0[(F = E % ae) < 0 ? ae + F : F], g = !g || C.comparedTo(x) > 0 ? E > 0 ? x : I : C, F = D, D = 1 / 0, C = new k(G), P.c[0] = 0; N = i(C, x, 0, 1), B = A.plus(N.times(q)), B.comparedTo(g) != 1; )
|
|
6344
|
+
A = q, q = B, I = P.plus(N.times(B = I)), P = B, x = C.minus(N.times(B = x)), C = B;
|
|
6345
|
+
return B = i(g.minus(A), q, 0, 1), P = P.plus(B.times(I)), A = A.plus(B.times(q)), P.s = I.s = K.s, E = E * 2, L = i(I, q, E, m).minus(K).abs().comparedTo(
|
|
6346
|
+
i(P, A, E, m).minus(K).abs()
|
|
6347
|
+
) < 1 ? [I, q] : [P, A], D = F, L;
|
|
6348
6348
|
}, c.toNumber = function() {
|
|
6349
6349
|
return +j(this);
|
|
6350
6350
|
}, c.toPrecision = function(g, x) {
|
|
6351
6351
|
return g != null && Te(g, 1, Ke), z(this, g, x, 2);
|
|
6352
6352
|
}, c.toString = function(g) {
|
|
6353
|
-
var x,
|
|
6354
|
-
return B === null ?
|
|
6353
|
+
var x, A = this, q = A.s, B = A.e;
|
|
6354
|
+
return B === null ? q ? (x = "Infinity", q < 0 && (x = "-" + x)) : x = "NaN" : (g == null ? x = B <= l || B >= u ? oh(xn(A.c), B) : mt(xn(A.c), B, "0") : g === 10 && M ? (A = S(new k(A), s + B + 1, m), x = mt(xn(A.c), A.e, "0")) : (Te(g, 2, v.length, "Base"), x = e(mt(xn(A.c), B, "0"), 10, g, q, !0)), q < 0 && A.c[0] && (x = "-" + x)), x;
|
|
6355
6355
|
}, c.valueOf = c.toJSON = function() {
|
|
6356
6356
|
return j(this);
|
|
6357
|
-
}, c._isBigNumber = !0, c[Symbol.toStringTag] = "BigNumber", c[Symbol.for("nodejs.util.inspect.custom")] = c.valueOf, t != null &&
|
|
6357
|
+
}, c._isBigNumber = !0, c[Symbol.toStringTag] = "BigNumber", c[Symbol.for("nodejs.util.inspect.custom")] = c.valueOf, t != null && k.set(t), k;
|
|
6358
6358
|
}
|
|
6359
6359
|
function wn(t) {
|
|
6360
6360
|
var i = t | 0;
|
|
@@ -7455,16 +7455,16 @@ function ZC(t) {
|
|
|
7455
7455
|
let u = "";
|
|
7456
7456
|
e ? u = "axelarTransfer" : n ? u = "ibcTransfer" : c ? u = "cctpTransfer" : r ? u = "hyperlaneTransfer" : s ? u = "opInitTransfer" : m ? u = "goFastTransfer" : l && (u = "stargateTransfer");
|
|
7457
7457
|
const h = (w) => {
|
|
7458
|
-
var
|
|
7458
|
+
var y, v, M, k, z, H, V, S;
|
|
7459
7459
|
switch (u) {
|
|
7460
7460
|
case "ibcTransfer":
|
|
7461
|
-
return w === "send" ? (
|
|
7461
|
+
return w === "send" ? (y = n.packetTXs.sendTx) == null ? void 0 : y.explorerLink : (v = n.packetTXs.receiveTx) == null ? void 0 : v.explorerLink;
|
|
7462
7462
|
case "goFastTransfer":
|
|
7463
|
-
return w === "send" ? (M = m.txs.orderSubmittedTx) == null ? void 0 : M.explorerLink : (
|
|
7463
|
+
return w === "send" ? (M = m.txs.orderSubmittedTx) == null ? void 0 : M.explorerLink : (k = m.txs.orderFilledTx) == null ? void 0 : k.explorerLink;
|
|
7464
7464
|
case "axelarTransfer":
|
|
7465
7465
|
return e.axelarScanLink;
|
|
7466
7466
|
default:
|
|
7467
|
-
return w === "send" ? (H = (z = i[u]) == null ? void 0 : z.txs.sendTx) == null ? void 0 : H.explorerLink : (
|
|
7467
|
+
return w === "send" ? (H = (z = i[u]) == null ? void 0 : z.txs.sendTx) == null ? void 0 : H.explorerLink : (S = (V = i[u]) == null ? void 0 : V.txs.receiveTx) == null ? void 0 : S.explorerLink;
|
|
7468
7468
|
}
|
|
7469
7469
|
}, D = {
|
|
7470
7470
|
...n,
|
|
@@ -7537,16 +7537,16 @@ const $g = ({
|
|
|
7537
7537
|
queryFn: async ({ queryKey: [, u, h] }) => {
|
|
7538
7538
|
if (!h) return;
|
|
7539
7539
|
const D = await Promise.all(
|
|
7540
|
-
h.map(async (
|
|
7541
|
-
chainID:
|
|
7542
|
-
txHash:
|
|
7540
|
+
h.map(async (k) => await n.transactionStatus({
|
|
7541
|
+
chainID: k.chainID,
|
|
7542
|
+
txHash: k.txHash
|
|
7543
7543
|
}))
|
|
7544
|
-
), f = QC(D), b = D.every((
|
|
7544
|
+
), f = QC(D), b = D.every((k) => k.state === "STATE_COMPLETED_SUCCESS" || k.state === "STATE_COMPLETED_ERROR" || k.state === "STATE_ABANDONED"), w = u === D.length && b;
|
|
7545
7545
|
w && r(!0);
|
|
7546
|
-
const
|
|
7546
|
+
const y = D.some((k) => k.state === "STATE_COMPLETED_ERROR" || k.state === "STATE_ABANDONED"), v = D.length > 0 ? $C(D[D.length - 1].state) : void 0;
|
|
7547
7547
|
v === "failed" && w && l8("TransactionFailed");
|
|
7548
7548
|
const M = {
|
|
7549
|
-
isSuccess: w && !
|
|
7549
|
+
isSuccess: w && !y && v === "success",
|
|
7550
7550
|
lastTxStatus: v,
|
|
7551
7551
|
isSettled: w,
|
|
7552
7552
|
transferEvents: f
|
|
@@ -7567,12 +7567,12 @@ function _5(t = 250) {
|
|
|
7567
7567
|
clearTimeout(m(i));
|
|
7568
7568
|
const f = m(e), b = typeof u == "function" ? u(f) : u, w = () => {
|
|
7569
7569
|
l(e, b), l(n, !0), l(c, !0);
|
|
7570
|
-
},
|
|
7570
|
+
}, y = () => {
|
|
7571
7571
|
l(r, b), l(n, !1), h == null || h();
|
|
7572
7572
|
};
|
|
7573
|
-
D ?
|
|
7573
|
+
D ? y() : w();
|
|
7574
7574
|
const v = setTimeout(() => {
|
|
7575
|
-
|
|
7575
|
+
y();
|
|
7576
7576
|
}, t);
|
|
7577
7577
|
v && l(i, v);
|
|
7578
7578
|
}
|
|
@@ -39632,7 +39632,7 @@ const dv = [
|
|
|
39632
39632
|
), Du = ie(null, (t, i, e) => {
|
|
39633
39633
|
i(pn, (n) => ({ ...n, overallStatus: e }));
|
|
39634
39634
|
}), bv = ie(null, (t, i) => {
|
|
39635
|
-
var
|
|
39635
|
+
var y;
|
|
39636
39636
|
const { data: e } = t(Lu), { data: n } = t(Oe), c = t(ou), r = t(Sp), s = c.length;
|
|
39637
39637
|
if (!e) return;
|
|
39638
39638
|
const {
|
|
@@ -39642,7 +39642,7 @@ const dv = [
|
|
|
39642
39642
|
destAssetDenom: h,
|
|
39643
39643
|
destAssetChainID: D
|
|
39644
39644
|
} = e, f = m[0], b = m[m.length - 1], w = {};
|
|
39645
|
-
(
|
|
39645
|
+
(y = e == null ? void 0 : e.requiredChainAddresses) == null || y.forEach((v, M) => {
|
|
39646
39646
|
w[M] = {
|
|
39647
39647
|
chainID: v,
|
|
39648
39648
|
address: ""
|
|
@@ -39665,19 +39665,19 @@ const dv = [
|
|
|
39665
39665
|
onTransactionBroadcast: async (v) => {
|
|
39666
39666
|
var z;
|
|
39667
39667
|
u8({ id: v == null ? void 0 : v.txHash });
|
|
39668
|
-
const M = n == null ? void 0 : n.find((H) => H.chainID === v.chainID),
|
|
39668
|
+
const M = n == null ? void 0 : n.find((H) => H.chainID === v.chainID), k = Tx({
|
|
39669
39669
|
chainID: v.chainID,
|
|
39670
39670
|
chainType: M == null ? void 0 : M.chainType,
|
|
39671
39671
|
txHash: v.txHash
|
|
39672
39672
|
});
|
|
39673
39673
|
i(
|
|
39674
39674
|
zx,
|
|
39675
|
-
{ ...v, explorerLink:
|
|
39675
|
+
{ ...v, explorerLink: k, status: void 0 },
|
|
39676
39676
|
s
|
|
39677
39677
|
), (z = r == null ? void 0 : r.onTransactionBroadcasted) == null || z.call(r, {
|
|
39678
39678
|
chainId: v.chainID,
|
|
39679
39679
|
txHash: v.txHash,
|
|
39680
|
-
explorerLink:
|
|
39680
|
+
explorerLink: k ?? "",
|
|
39681
39681
|
sourceAddress: f,
|
|
39682
39682
|
destinationAddress: b,
|
|
39683
39683
|
sourceAssetDenom: l,
|
|
@@ -39689,9 +39689,9 @@ const dv = [
|
|
|
39689
39689
|
onTransactionCompleted: async (v, M) => {
|
|
39690
39690
|
var H;
|
|
39691
39691
|
p0("txCompleted", !0);
|
|
39692
|
-
const
|
|
39692
|
+
const k = n == null ? void 0 : n.find((V) => V.chainID === v), z = Tx({
|
|
39693
39693
|
chainID: v,
|
|
39694
|
-
chainType:
|
|
39694
|
+
chainType: k == null ? void 0 : k.chainType,
|
|
39695
39695
|
txHash: M
|
|
39696
39696
|
});
|
|
39697
39697
|
(H = r == null ? void 0 : r.onTransactionComplete) == null || H.call(r, {
|
|
@@ -39714,19 +39714,19 @@ const dv = [
|
|
|
39714
39714
|
(z = r == null ? void 0 : r.onTransactionFailed) == null || z.call(r, {
|
|
39715
39715
|
error: v == null ? void 0 : v.message
|
|
39716
39716
|
});
|
|
39717
|
-
const
|
|
39717
|
+
const k = M == null ? void 0 : M[(M == null ? void 0 : M.length) - 1];
|
|
39718
39718
|
pv(v) ? i(Qe, {
|
|
39719
39719
|
errorType: ze.AuthFailed,
|
|
39720
39720
|
onClickBack: () => {
|
|
39721
39721
|
i(Du, "unconfirmed");
|
|
39722
39722
|
}
|
|
39723
|
-
}) :
|
|
39723
|
+
}) : k != null && k.explorerLink ? i(Qe, {
|
|
39724
39724
|
errorType: ze.TransactionFailed,
|
|
39725
39725
|
onClickBack: () => {
|
|
39726
39726
|
i(Du, "unconfirmed");
|
|
39727
39727
|
},
|
|
39728
|
-
explorerLink: (
|
|
39729
|
-
txHash: (
|
|
39728
|
+
explorerLink: (k == null ? void 0 : k.explorerLink) ?? "",
|
|
39729
|
+
txHash: (k == null ? void 0 : k.txHash) ?? "",
|
|
39730
39730
|
onClickContactSupport: () => {
|
|
39731
39731
|
window.open("https://skip.build/discord", "_blank");
|
|
39732
39732
|
}
|
|
@@ -39793,8 +39793,8 @@ const dv = [
|
|
|
39793
39793
|
var b;
|
|
39794
39794
|
const i = t(Rl), { route: e, userAddresses: n, transactionDetailsArray: c } = t(pn), r = t(ow), s = t(kv), m = t(aw), l = t(zl), { data: u } = t(Oe), h = t(qe), D = t(Y8), f = (b = u == null ? void 0 : u.find((w) => w.chainID === (h == null ? void 0 : h.chainID))) == null ? void 0 : b.chainType;
|
|
39795
39795
|
if (f) {
|
|
39796
|
-
const { deeplink: w, recentWalletData:
|
|
39797
|
-
f === ee.Cosmos ? (window.localStorage.removeItem(bD), window.localStorage.removeItem(wD)) : (window.localStorage.setItem(bD, w), window.localStorage.setItem(wD,
|
|
39796
|
+
const { deeplink: w, recentWalletData: y } = D[f];
|
|
39797
|
+
f === ee.Cosmos ? (window.localStorage.removeItem(bD), window.localStorage.removeItem(wD)) : (window.localStorage.setItem(bD, w), window.localStorage.setItem(wD, y));
|
|
39798
39798
|
}
|
|
39799
39799
|
return {
|
|
39800
39800
|
gcTime: 1 / 0,
|
|
@@ -39811,15 +39811,15 @@ const dv = [
|
|
|
39811
39811
|
getFallbackGasAmount: s,
|
|
39812
39812
|
...r
|
|
39813
39813
|
});
|
|
39814
|
-
} catch (
|
|
39815
|
-
console.error(
|
|
39814
|
+
} catch (y) {
|
|
39815
|
+
console.error(y), (w = r == null ? void 0 : r.onError) == null || w.call(r, y, c);
|
|
39816
39816
|
}
|
|
39817
39817
|
return null;
|
|
39818
39818
|
}
|
|
39819
39819
|
},
|
|
39820
39820
|
onError: (w) => {
|
|
39821
|
-
var
|
|
39822
|
-
console.error(w), (
|
|
39821
|
+
var y;
|
|
39822
|
+
console.error(w), (y = r == null ? void 0 : r.onError) == null || y.call(r, w, c);
|
|
39823
39823
|
}
|
|
39824
39824
|
};
|
|
39825
39825
|
}), F0 = (t) => Z(() => {
|
|
@@ -40127,16 +40127,16 @@ const dv = [
|
|
|
40127
40127
|
}) => {
|
|
40128
40128
|
const m = Ae(), [l, u] = de(), h = sw(e), D = Xu(null);
|
|
40129
40129
|
return ue(() => {
|
|
40130
|
-
var
|
|
40131
|
-
const f = (M = (v = (
|
|
40130
|
+
var y, v, M;
|
|
40131
|
+
const f = (M = (v = (y = D.current) == null ? void 0 : y.nativeElement) == null ? void 0 : v.getElementsByClassName(
|
|
40132
40132
|
"rc-virtual-list-holder-inner"
|
|
40133
|
-
)) == null ? void 0 : M[0], b = f == null ? void 0 : f.firstChild, w = (
|
|
40134
|
-
if (
|
|
40135
|
-
b && (b.focus(), u(b)),
|
|
40133
|
+
)) == null ? void 0 : M[0], b = f == null ? void 0 : f.firstChild, w = (k) => {
|
|
40134
|
+
if (k.key === "ArrowDown") {
|
|
40135
|
+
b && (b.focus(), u(b)), k.preventDefault();
|
|
40136
40136
|
const z = l == null ? void 0 : l.nextElementSibling;
|
|
40137
40137
|
z && (z.focus(), u(z));
|
|
40138
|
-
} else if (
|
|
40139
|
-
|
|
40138
|
+
} else if (k.key === "ArrowUp") {
|
|
40139
|
+
k.preventDefault();
|
|
40140
40140
|
const z = l == null ? void 0 : l.previousElementSibling;
|
|
40141
40141
|
z && (u(z), z.focus());
|
|
40142
40142
|
}
|
|
@@ -40354,7 +40354,7 @@ const dv = [
|
|
|
40354
40354
|
(f, b) => {
|
|
40355
40355
|
var M;
|
|
40356
40356
|
if (!f) return;
|
|
40357
|
-
const w = (M = c == null ? void 0 : c.find((
|
|
40357
|
+
const w = (M = c == null ? void 0 : c.find((k) => k.chainID === f)) == null ? void 0 : M.chainType;
|
|
40358
40358
|
if (n && n[f])
|
|
40359
40359
|
return {
|
|
40360
40360
|
address: n[f],
|
|
@@ -40371,25 +40371,25 @@ const dv = [
|
|
|
40371
40371
|
switch (w) {
|
|
40372
40372
|
case ee.Cosmos: {
|
|
40373
40373
|
if (!v || !t.cosmos) return;
|
|
40374
|
-
const
|
|
40374
|
+
const k = ID(t.cosmos.walletName);
|
|
40375
40375
|
return {
|
|
40376
40376
|
address: v.bech32Address,
|
|
40377
40377
|
chainType: w,
|
|
40378
40378
|
wallet: {
|
|
40379
40379
|
name: t.cosmos.walletName,
|
|
40380
|
-
prettyName:
|
|
40381
|
-
logo:
|
|
40380
|
+
prettyName: k.name,
|
|
40381
|
+
logo: k.imgSrc,
|
|
40382
40382
|
isLedger: v.isNanoLedger
|
|
40383
40383
|
}
|
|
40384
40384
|
};
|
|
40385
40385
|
}
|
|
40386
40386
|
case ee.EVM: {
|
|
40387
40387
|
if (l.chainId !== Number(f) && !b || !l.address || !l.connector) return;
|
|
40388
|
-
const
|
|
40388
|
+
const k = () => {
|
|
40389
40389
|
var z, H, V;
|
|
40390
|
-
return ((z = l == null ? void 0 : l.connector) == null ? void 0 : z.id) === "walletConnect" ? (i == null ? void 0 : i.logo) ?? qh : (H = l == null ? void 0 : l.connector) != null && H.id.includes("keplr") ? ID(pe.KEPLR).imgSrc : (V = u.find((
|
|
40390
|
+
return ((z = l == null ? void 0 : l.connector) == null ? void 0 : z.id) === "walletConnect" ? (i == null ? void 0 : i.logo) ?? qh : (H = l == null ? void 0 : l.connector) != null && H.id.includes("keplr") ? ID(pe.KEPLR).imgSrc : (V = u.find((S) => {
|
|
40391
40391
|
var j;
|
|
40392
|
-
return
|
|
40392
|
+
return S.id === ((j = l.connector) == null ? void 0 : j.id);
|
|
40393
40393
|
})) == null ? void 0 : V.icon;
|
|
40394
40394
|
};
|
|
40395
40395
|
return {
|
|
@@ -40399,20 +40399,20 @@ const dv = [
|
|
|
40399
40399
|
wallet: {
|
|
40400
40400
|
name: l.connector.id,
|
|
40401
40401
|
prettyName: l.connector.name,
|
|
40402
|
-
logo:
|
|
40402
|
+
logo: k()
|
|
40403
40403
|
}
|
|
40404
40404
|
};
|
|
40405
40405
|
}
|
|
40406
40406
|
case ee.SVM: {
|
|
40407
40407
|
if (!(m != null && m.publicKey)) return;
|
|
40408
|
-
const
|
|
40408
|
+
const k = () => m.name === "WalletConnect" ? (e == null ? void 0 : e.logo) ?? qh : m.icon;
|
|
40409
40409
|
return {
|
|
40410
40410
|
address: m.publicKey.toBase58(),
|
|
40411
40411
|
chainType: w,
|
|
40412
40412
|
wallet: {
|
|
40413
40413
|
name: m.name,
|
|
40414
40414
|
prettyName: m.name,
|
|
40415
|
-
logo:
|
|
40415
|
+
logo: k()
|
|
40416
40416
|
}
|
|
40417
40417
|
};
|
|
40418
40418
|
}
|
|
@@ -40488,8 +40488,8 @@ const dv = [
|
|
|
40488
40488
|
assetDenom: t,
|
|
40489
40489
|
chainId: e,
|
|
40490
40490
|
tokenAmount: i
|
|
40491
|
-
}),
|
|
40492
|
-
const g = Object.values(
|
|
40491
|
+
}), y = W(lu), M = Xl()(e), k = l === "destination" && c !== void 0, z = k || r !== void 0, H = Z(() => {
|
|
40492
|
+
const g = Object.values(y);
|
|
40493
40493
|
switch (l) {
|
|
40494
40494
|
case "source":
|
|
40495
40495
|
return {
|
|
@@ -40497,8 +40497,8 @@ const dv = [
|
|
|
40497
40497
|
image: M == null ? void 0 : M.wallet.logo
|
|
40498
40498
|
};
|
|
40499
40499
|
case "intermediary": {
|
|
40500
|
-
const x = Object.values(
|
|
40501
|
-
(
|
|
40500
|
+
const x = Object.values(y).find(
|
|
40501
|
+
(A) => A.chainID === e
|
|
40502
40502
|
);
|
|
40503
40503
|
return {
|
|
40504
40504
|
address: x == null ? void 0 : x.address,
|
|
@@ -40513,12 +40513,12 @@ const dv = [
|
|
|
40513
40513
|
};
|
|
40514
40514
|
}
|
|
40515
40515
|
}
|
|
40516
|
-
}, [M == null ? void 0 : M.address, M == null ? void 0 : M.wallet.logo,
|
|
40517
|
-
const g =
|
|
40516
|
+
}, [M == null ? void 0 : M.address, M == null ? void 0 : M.wallet.logo, y, e, l]), V = Z(() => {
|
|
40517
|
+
const g = k ? ({ children: A }) => /* @__PURE__ */ d(R, { gap: 5, children: A }) : Yn.Fragment;
|
|
40518
40518
|
if (!H.address) return;
|
|
40519
40519
|
const x = () => {
|
|
40520
|
-
const
|
|
40521
|
-
return b ? /* @__PURE__ */ d(Y, { children:
|
|
40520
|
+
const A = D ? "Copied!" : "Address copied!";
|
|
40521
|
+
return b ? /* @__PURE__ */ d(Y, { children: A }) : D ? /* @__PURE__ */ d(mw, { color: h.primary.text.lowContrast }) : /* @__PURE__ */ d(Iv, { title: H.address, monospace: !0, textWrap: "nowrap", children: tp(H.address, D) });
|
|
40522
40522
|
};
|
|
40523
40523
|
return /* @__PURE__ */ J(g, { children: [
|
|
40524
40524
|
/* @__PURE__ */ J(zh, { onClick: () => f(H == null ? void 0 : H.address), children: [
|
|
@@ -40533,7 +40533,7 @@ const dv = [
|
|
|
40533
40533
|
),
|
|
40534
40534
|
x()
|
|
40535
40535
|
] }),
|
|
40536
|
-
|
|
40536
|
+
k && /* @__PURE__ */ d(
|
|
40537
40537
|
On,
|
|
40538
40538
|
{
|
|
40539
40539
|
as: D ? zh : void 0,
|
|
@@ -40548,11 +40548,11 @@ const dv = [
|
|
|
40548
40548
|
D,
|
|
40549
40549
|
b,
|
|
40550
40550
|
c,
|
|
40551
|
-
|
|
40551
|
+
k,
|
|
40552
40552
|
H.address,
|
|
40553
40553
|
H.image,
|
|
40554
40554
|
h.primary.text.lowContrast
|
|
40555
|
-
]),
|
|
40555
|
+
]), S = Z(() => {
|
|
40556
40556
|
if (r)
|
|
40557
40557
|
return D ? /* @__PURE__ */ d(X5, { href: r, target: "_blank", children: /* @__PURE__ */ d(Il, {}) }) : /* @__PURE__ */ d(Nh, { href: r, target: "_blank", children: /* @__PURE__ */ d(Il, {}) });
|
|
40558
40558
|
}, [r, D]);
|
|
@@ -40600,7 +40600,7 @@ const dv = [
|
|
|
40600
40600
|
]
|
|
40601
40601
|
}
|
|
40602
40602
|
),
|
|
40603
|
-
|
|
40603
|
+
S
|
|
40604
40604
|
] }),
|
|
40605
40605
|
" ",
|
|
40606
40606
|
s && /* @__PURE__ */ d(Y, { color: h.warning.text, children: "Signature required" })
|
|
@@ -40785,20 +40785,20 @@ const dv = [
|
|
|
40785
40785
|
}) => {
|
|
40786
40786
|
var b, w;
|
|
40787
40787
|
const s = Ae(), m = Z(() => {
|
|
40788
|
-
const
|
|
40788
|
+
const y = i.filter(
|
|
40789
40789
|
(v) => Jx(v) || (v == null ? void 0 : v.isAvailable) !== !1
|
|
40790
40790
|
);
|
|
40791
|
-
return
|
|
40791
|
+
return y.length === 1 ? i : y;
|
|
40792
40792
|
}, [i]), l = $(ew), u = UA({
|
|
40793
40793
|
mutationKey: ["connectWallet"],
|
|
40794
|
-
mutationFn: async (
|
|
40794
|
+
mutationFn: async (y) => r ? (l(), await y.connect()) : await y.connect(c),
|
|
40795
40795
|
onSuccess: () => {
|
|
40796
40796
|
r && l(), me.remove(fe.SetAddressModal), me.remove(fe.WalletSelectorModal);
|
|
40797
40797
|
}
|
|
40798
40798
|
}), h = Se(
|
|
40799
|
-
(
|
|
40799
|
+
(y) => {
|
|
40800
40800
|
var g;
|
|
40801
|
-
const v = ah(
|
|
40801
|
+
const v = ah(y) ? y.walletPrettyName ?? y.walletName : y.walletName, M = ah(y) ? (g = y == null ? void 0 : y.walletInfo) == null ? void 0 : g.logo : void 0, k = Jx(y) ? y == null ? void 0 : y.rightContent : void 0, z = ah(y) ? y == null ? void 0 : y.isAvailable : void 0, H = (k == null ? void 0 : k()) ?? /* @__PURE__ */ d(Pe, {}), V = M ? /* @__PURE__ */ d(
|
|
40802
40802
|
"img",
|
|
40803
40803
|
{
|
|
40804
40804
|
height: 35,
|
|
@@ -40812,13 +40812,13 @@ const dv = [
|
|
|
40812
40812
|
td,
|
|
40813
40813
|
{
|
|
40814
40814
|
onClick: () => {
|
|
40815
|
-
if (!ah(
|
|
40816
|
-
|
|
40815
|
+
if (!ah(y))
|
|
40816
|
+
y.onSelect();
|
|
40817
40817
|
else if (n) {
|
|
40818
|
-
n(
|
|
40818
|
+
n(y), me.remove(fe.SetAddressModal), me.remove(fe.WalletSelectorModal);
|
|
40819
40819
|
return;
|
|
40820
40820
|
} else
|
|
40821
|
-
u.mutate(
|
|
40821
|
+
u.mutate(y);
|
|
40822
40822
|
},
|
|
40823
40823
|
style: { marginTop: Y0 },
|
|
40824
40824
|
leftContent: /* @__PURE__ */ J(R, { style: { width: "100%" }, align: "center", justify: "space-between", children: [
|
|
@@ -40835,9 +40835,9 @@ const dv = [
|
|
|
40835
40835
|
},
|
|
40836
40836
|
[u, n]
|
|
40837
40837
|
), D = Z(() => Math.min(530, m.length * (jx + Y0)), [m.length]), f = Z(() => {
|
|
40838
|
-
var
|
|
40838
|
+
var y, v, M;
|
|
40839
40839
|
if (u.isError || u.isPending) {
|
|
40840
|
-
const
|
|
40840
|
+
const k = u.isError ? "Failed to connect" : "Connecting to";
|
|
40841
40841
|
return /* @__PURE__ */ d(uw, { children: /* @__PURE__ */ J(Gv, { children: [
|
|
40842
40842
|
/* @__PURE__ */ d(
|
|
40843
40843
|
M0,
|
|
@@ -40851,14 +40851,14 @@ const dv = [
|
|
|
40851
40851
|
"img",
|
|
40852
40852
|
{
|
|
40853
40853
|
style: { objectFit: "cover" },
|
|
40854
|
-
src: (
|
|
40854
|
+
src: (y = u.variables) == null ? void 0 : y.walletInfo.logo,
|
|
40855
40855
|
alt: `${(v = u.variables) == null ? void 0 : v.walletPrettyName} logo`
|
|
40856
40856
|
}
|
|
40857
40857
|
)
|
|
40858
40858
|
}
|
|
40859
40859
|
),
|
|
40860
40860
|
/* @__PURE__ */ J($e, { color: s.primary.text.lowContrast, textAlign: "center", children: [
|
|
40861
|
-
|
|
40861
|
+
k,
|
|
40862
40862
|
" ",
|
|
40863
40863
|
(M = u.variables) == null ? void 0 : M.walletPrettyName
|
|
40864
40864
|
] }),
|
|
@@ -40872,7 +40872,7 @@ const dv = [
|
|
|
40872
40872
|
listItems: m,
|
|
40873
40873
|
itemHeight: jx + Y0,
|
|
40874
40874
|
renderItem: h,
|
|
40875
|
-
itemKey: (
|
|
40875
|
+
itemKey: (k) => k.walletName,
|
|
40876
40876
|
empty: {
|
|
40877
40877
|
header: "No wallets available"
|
|
40878
40878
|
}
|
|
@@ -62145,23 +62145,23 @@ const Sw = () => {
|
|
|
62145
62145
|
if ((h == null ? void 0 : h.includes("penumbra")) && !D)
|
|
62146
62146
|
return aE(s == null ? void 0 : s.onWalletDisconnected);
|
|
62147
62147
|
const w = [];
|
|
62148
|
-
for (const
|
|
62149
|
-
const v = s8(
|
|
62150
|
-
var g, x,
|
|
62151
|
-
const j = !
|
|
62148
|
+
for (const y of f) {
|
|
62149
|
+
const v = s8(y), M = np(), k = ID(y), z = iE(tE(y), t), H = async ({ chainIdToConnect: S }) => {
|
|
62150
|
+
var g, x, A;
|
|
62151
|
+
const j = !S || S && z.includes(S);
|
|
62152
62152
|
try {
|
|
62153
|
-
if (
|
|
62154
|
-
const F = xv(
|
|
62153
|
+
if (S) {
|
|
62154
|
+
const F = xv(S);
|
|
62155
62155
|
if (!F)
|
|
62156
62156
|
throw new Error(`connect: Chain info not found for chainID: ${h}`);
|
|
62157
|
-
!M && !v && await Wp(
|
|
62157
|
+
!M && !v && await Wp(y).experimentalSuggestChain(F);
|
|
62158
62158
|
}
|
|
62159
|
-
const
|
|
62160
|
-
chainId: j ? z :
|
|
62161
|
-
walletType:
|
|
62159
|
+
const q = await h2({
|
|
62160
|
+
chainId: j ? z : S,
|
|
62161
|
+
walletType: y,
|
|
62162
62162
|
autoReconnect: !1
|
|
62163
62163
|
});
|
|
62164
|
-
if (!(
|
|
62164
|
+
if (!(q != null && q.accounts))
|
|
62165
62165
|
throw new Error("failed to get accounts from wallet");
|
|
62166
62166
|
if (c === void 0) {
|
|
62167
62167
|
const F = t == null ? void 0 : t.find((P) => P.chainID === "cosmoshub-4"), C = i == null ? void 0 : i.find((P) => P.denom === "uatom");
|
|
@@ -62172,62 +62172,62 @@ const Sw = () => {
|
|
|
62172
62172
|
});
|
|
62173
62173
|
}
|
|
62174
62174
|
const B = Object.fromEntries(
|
|
62175
|
-
Object.entries(
|
|
62176
|
-
), E =
|
|
62175
|
+
Object.entries(q.accounts).map(([F, C]) => [F, C.bech32Address])
|
|
62176
|
+
), E = S && (q == null ? void 0 : q.accounts[S].bech32Address);
|
|
62177
62177
|
return (g = s == null ? void 0 : s.onWalletConnected) == null || g.call(s, {
|
|
62178
|
-
walletName:
|
|
62178
|
+
walletName: y,
|
|
62179
62179
|
chainIdToAddressMap: B,
|
|
62180
62180
|
address: E
|
|
62181
62181
|
}), { address: E };
|
|
62182
|
-
} catch (
|
|
62183
|
-
const B =
|
|
62182
|
+
} catch (q) {
|
|
62183
|
+
const B = q;
|
|
62184
62184
|
if ((x = B == null ? void 0 : B.message) != null && x.toLowerCase().includes("no chain info"))
|
|
62185
62185
|
throw new Error(
|
|
62186
62186
|
`There is no chain info for ${h}. Please add the ${h} chain to your wallet`
|
|
62187
62187
|
);
|
|
62188
|
-
if ((
|
|
62188
|
+
if ((A = B == null ? void 0 : B.message) != null && A.toLowerCase().includes("no ethereum public key")) {
|
|
62189
62189
|
const E = await h2({
|
|
62190
62190
|
chainId: zv,
|
|
62191
|
-
walletType:
|
|
62191
|
+
walletType: y,
|
|
62192
62192
|
autoReconnect: !1
|
|
62193
62193
|
});
|
|
62194
62194
|
return {
|
|
62195
|
-
address:
|
|
62195
|
+
address: S ? E == null ? void 0 : E.accounts[S].bech32Address : void 0
|
|
62196
62196
|
};
|
|
62197
62197
|
}
|
|
62198
|
-
throw
|
|
62198
|
+
throw q;
|
|
62199
62199
|
}
|
|
62200
62200
|
}, V = {
|
|
62201
|
-
walletName:
|
|
62202
|
-
walletPrettyName:
|
|
62201
|
+
walletName: y,
|
|
62202
|
+
walletPrettyName: k == null ? void 0 : k.name,
|
|
62203
62203
|
walletChainType: ee.Cosmos,
|
|
62204
62204
|
walletInfo: {
|
|
62205
|
-
logo:
|
|
62205
|
+
logo: k == null ? void 0 : k.imgSrc
|
|
62206
62206
|
},
|
|
62207
|
-
connect: async (
|
|
62208
|
-
await H({ chainIdToConnect:
|
|
62207
|
+
connect: async (S) => {
|
|
62208
|
+
await H({ chainIdToConnect: S });
|
|
62209
62209
|
},
|
|
62210
62210
|
disconnect: async () => {
|
|
62211
|
-
var
|
|
62212
|
-
await l(), n(void 0), (
|
|
62213
|
-
walletName:
|
|
62211
|
+
var S;
|
|
62212
|
+
await l(), n(void 0), (S = s == null ? void 0 : s.onWalletDisconnected) == null || S.call(s, {
|
|
62213
|
+
walletName: y,
|
|
62214
62214
|
chainType: ee.Cosmos
|
|
62215
62215
|
});
|
|
62216
62216
|
},
|
|
62217
|
-
getAddress: async ({ signRequired:
|
|
62217
|
+
getAddress: async ({ signRequired: S }) => {
|
|
62218
62218
|
try {
|
|
62219
|
-
if (e && !
|
|
62220
|
-
return { address: (await Wp(
|
|
62219
|
+
if (e && !S && h)
|
|
62220
|
+
return { address: (await Wp(y).getKey(h)).bech32Address };
|
|
62221
62221
|
throw new Error("connect wallet");
|
|
62222
62222
|
} catch {
|
|
62223
62223
|
return H({ chainIdToConnect: h });
|
|
62224
62224
|
}
|
|
62225
62225
|
},
|
|
62226
|
-
isWalletConnected: m ===
|
|
62226
|
+
isWalletConnected: m === y,
|
|
62227
62227
|
isAvailable: (() => {
|
|
62228
62228
|
if (!M)
|
|
62229
62229
|
try {
|
|
62230
|
-
return !!Wp(
|
|
62230
|
+
return !!Wp(y);
|
|
62231
62231
|
} catch {
|
|
62232
62232
|
return !1;
|
|
62233
62233
|
}
|
|
@@ -62360,19 +62360,19 @@ const Sw = () => {
|
|
|
62360
62360
|
const { data: t } = W(Oe), { data: i } = W(ct), [e, n] = le(qe), c = $(w0), r = W(Sp), s = $(Z8), { connector: m, isConnected: l, chainId: u } = Wd(), { connectAsync: h } = CA(), D = m8(), f = D.find((w) => w.id === (m == null ? void 0 : m.id));
|
|
62361
62361
|
return { createEvmWallets: Se(
|
|
62362
62362
|
(w) => {
|
|
62363
|
-
const
|
|
62364
|
-
|
|
62363
|
+
const y = w === "pacific-1";
|
|
62364
|
+
y && (w = Sh.id.toString());
|
|
62365
62365
|
const v = [];
|
|
62366
62366
|
for (const M of D) {
|
|
62367
|
-
if (M.id === "com.okex.wallet" || v.findIndex((
|
|
62367
|
+
if (M.id === "com.okex.wallet" || v.findIndex((S) => S.walletName === M.id) !== -1)
|
|
62368
62368
|
continue;
|
|
62369
|
-
const z = M.id === "walletConnect", H = async ({ chainIdToConnect:
|
|
62370
|
-
var g, x,
|
|
62371
|
-
const j = l && u !== Number(
|
|
62369
|
+
const z = M.id === "walletConnect", H = async ({ chainIdToConnect: S = "1" }) => {
|
|
62370
|
+
var g, x, A, q, B;
|
|
62371
|
+
const j = l && u !== Number(S) && M.id === (m == null ? void 0 : m.id);
|
|
62372
62372
|
try {
|
|
62373
62373
|
if (l && M.id !== (m == null ? void 0 : m.id) && await (f == null ? void 0 : f.disconnect()), j ? await ((g = M == null ? void 0 : M.switchChain) == null ? void 0 : g.call(M, {
|
|
62374
|
-
chainId: Number(
|
|
62375
|
-
})) : await h({ connector: M, chainId: Number(
|
|
62374
|
+
chainId: Number(S)
|
|
62375
|
+
})) : await h({ connector: M, chainId: Number(S) }), e === void 0) {
|
|
62376
62376
|
const P = t == null ? void 0 : t.find((N) => N.chainID === "1"), I = i == null ? void 0 : i.find((N) => N.denom === "ethereum-native");
|
|
62377
62377
|
n({
|
|
62378
62378
|
chainID: P == null ? void 0 : P.chainID,
|
|
@@ -62380,8 +62380,8 @@ const Sw = () => {
|
|
|
62380
62380
|
...I
|
|
62381
62381
|
});
|
|
62382
62382
|
}
|
|
62383
|
-
const E = await M.getAccounts(), F = await M.getProvider(), C = (
|
|
62384
|
-
return s(ee.EVM), (
|
|
62383
|
+
const E = await M.getAccounts(), F = await M.getProvider(), C = (A = (x = F == null ? void 0 : F.session) == null ? void 0 : x.peer) == null ? void 0 : A.metadata;
|
|
62384
|
+
return s(ee.EVM), (q = r == null ? void 0 : r.onWalletConnected) == null || q.call(r, {
|
|
62385
62385
|
walletName: M.name,
|
|
62386
62386
|
chainId: w,
|
|
62387
62387
|
address: E[0]
|
|
@@ -62396,19 +62396,19 @@ const Sw = () => {
|
|
|
62396
62396
|
walletInfo: {
|
|
62397
62397
|
logo: z ? qh : M.icon
|
|
62398
62398
|
},
|
|
62399
|
-
connect: async (
|
|
62400
|
-
await H({ chainIdToConnect:
|
|
62399
|
+
connect: async (S) => {
|
|
62400
|
+
await H({ chainIdToConnect: S });
|
|
62401
62401
|
},
|
|
62402
62402
|
disconnect: async () => {
|
|
62403
|
-
var
|
|
62404
|
-
await (f == null ? void 0 : f.disconnect()), c(void 0), (
|
|
62403
|
+
var S;
|
|
62404
|
+
await (f == null ? void 0 : f.disconnect()), c(void 0), (S = r == null ? void 0 : r.onWalletDisconnected) == null || S.call(r, {
|
|
62405
62405
|
walletName: M.name,
|
|
62406
62406
|
chainType: ee.EVM
|
|
62407
62407
|
});
|
|
62408
62408
|
},
|
|
62409
|
-
getAddress: async ({ signRequired:
|
|
62409
|
+
getAddress: async ({ signRequired: S }) => {
|
|
62410
62410
|
try {
|
|
62411
|
-
if (
|
|
62411
|
+
if (S)
|
|
62412
62412
|
throw new Error("always prompt wallet connection");
|
|
62413
62413
|
const j = await M.getAccounts();
|
|
62414
62414
|
if (j.length === 0)
|
|
@@ -62422,9 +62422,9 @@ const Sw = () => {
|
|
|
62422
62422
|
},
|
|
62423
62423
|
isWalletConnected: M.id === (m == null ? void 0 : m.id)
|
|
62424
62424
|
};
|
|
62425
|
-
if (
|
|
62426
|
-
const
|
|
62427
|
-
V.walletPrettyName = `${M.name} ${
|
|
62425
|
+
if (y) {
|
|
62426
|
+
const S = M.name.toLowerCase().includes("keplr") || M.name.toLowerCase().includes("leap") || M.name.toLowerCase().includes("cosmostation");
|
|
62427
|
+
V.walletPrettyName = `${M.name} ${S ? "(EVM)" : ""}`, V.getAddress = async () => {
|
|
62428
62428
|
const { address: j } = await H({
|
|
62429
62429
|
chainIdToConnect: w
|
|
62430
62430
|
}), g = wA({
|
|
@@ -62470,25 +62470,25 @@ const Sw = () => {
|
|
|
62470
62470
|
const u = [];
|
|
62471
62471
|
for (const h of m) {
|
|
62472
62472
|
const D = h.adapter, f = D.name === "WalletConnect", b = async () => {
|
|
62473
|
-
var
|
|
62473
|
+
var y, v, M, k, z, H, V;
|
|
62474
62474
|
try {
|
|
62475
62475
|
await D.connect();
|
|
62476
|
-
const
|
|
62477
|
-
(
|
|
62476
|
+
const S = t == null ? void 0 : t.find((A) => A.chainID === "solana"), j = i == null ? void 0 : i.find(
|
|
62477
|
+
(A) => A.denom.toLowerCase() === "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v".toLowerCase()
|
|
62478
62478
|
);
|
|
62479
62479
|
e === void 0 && n({
|
|
62480
|
-
chainID:
|
|
62481
|
-
chainName:
|
|
62480
|
+
chainID: S == null ? void 0 : S.chainID,
|
|
62481
|
+
chainName: S == null ? void 0 : S.chainName,
|
|
62482
62482
|
...j
|
|
62483
62483
|
});
|
|
62484
|
-
const g = (
|
|
62484
|
+
const g = (y = D.publicKey) == null ? void 0 : y.toBase58(), x = (z = (k = (M = (v = D == null ? void 0 : D._wallet) == null ? void 0 : v._UniversalProvider) == null ? void 0 : M.session) == null ? void 0 : k.peer) == null ? void 0 : z.metadata;
|
|
62485
62485
|
return s(ee.SVM), (H = r == null ? void 0 : r.onWalletConnected) == null || H.call(r, {
|
|
62486
62486
|
walletName: D.name,
|
|
62487
|
-
chainId:
|
|
62487
|
+
chainId: S == null ? void 0 : S.chainID,
|
|
62488
62488
|
address: g
|
|
62489
62489
|
}), { address: g, logo: (V = x == null ? void 0 : x.icons) == null ? void 0 : V[0] };
|
|
62490
|
-
} catch (
|
|
62491
|
-
throw console.error(
|
|
62490
|
+
} catch (S) {
|
|
62491
|
+
throw console.error(S), S;
|
|
62492
62492
|
}
|
|
62493
62493
|
}, w = {
|
|
62494
62494
|
walletName: D.name,
|
|
@@ -62500,9 +62500,9 @@ const Sw = () => {
|
|
|
62500
62500
|
connect: async () => {
|
|
62501
62501
|
await b();
|
|
62502
62502
|
},
|
|
62503
|
-
getAddress: async ({ signRequired:
|
|
62503
|
+
getAddress: async ({ signRequired: y }) => {
|
|
62504
62504
|
try {
|
|
62505
|
-
if (
|
|
62505
|
+
if (y)
|
|
62506
62506
|
throw new Error("always prompt wallet connection");
|
|
62507
62507
|
const v = D.publicKey;
|
|
62508
62508
|
if (!v)
|
|
@@ -62513,8 +62513,8 @@ const Sw = () => {
|
|
|
62513
62513
|
}
|
|
62514
62514
|
},
|
|
62515
62515
|
disconnect: async () => {
|
|
62516
|
-
var
|
|
62517
|
-
await D.disconnect(), c(void 0), (
|
|
62516
|
+
var y;
|
|
62517
|
+
await D.disconnect(), c(void 0), (y = r == null ? void 0 : r.onWalletDisconnected) == null || y.call(r, {
|
|
62518
62518
|
walletName: D.name,
|
|
62519
62519
|
chainType: ee.SVM
|
|
62520
62520
|
});
|
|
@@ -62676,7 +62676,7 @@ const Sw = () => {
|
|
|
62676
62676
|
] })
|
|
62677
62677
|
] });
|
|
62678
62678
|
}), _0 = ({ chainType: t, chainID: i }) => {
|
|
62679
|
-
var w,
|
|
62679
|
+
var w, y;
|
|
62680
62680
|
const { copyAddress: e, isShowingCopyAddressFeedback: n } = lw(), c = Ae(), r = Xl(), s = hn(), m = W(qe), { chain: l } = Vn({
|
|
62681
62681
|
assetDenom: m == null ? void 0 : m.denom,
|
|
62682
62682
|
chainId: m == null ? void 0 : m.chainID
|
|
@@ -62691,8 +62691,8 @@ const Sw = () => {
|
|
|
62691
62691
|
align: "center",
|
|
62692
62692
|
justify: "center",
|
|
62693
62693
|
style: { width: 35, height: 35 },
|
|
62694
|
-
onClick: (
|
|
62695
|
-
|
|
62694
|
+
onClick: (k) => {
|
|
62695
|
+
k.stopPropagation(), f == null || f.disconnect(), me.remove(fe.ConnectedWalletModal);
|
|
62696
62696
|
},
|
|
62697
62697
|
children: /* @__PURE__ */ d(zw, { height: "22", width: "22", color: (M = (v = c == null ? void 0 : c.primary) == null ? void 0 : v.text) == null ? void 0 : M.ultraLowContrast })
|
|
62698
62698
|
}
|
|
@@ -62701,13 +62701,13 @@ const Sw = () => {
|
|
|
62701
62701
|
{
|
|
62702
62702
|
align: "center",
|
|
62703
62703
|
justify: "center",
|
|
62704
|
-
onClick: (
|
|
62705
|
-
|
|
62704
|
+
onClick: (k) => {
|
|
62705
|
+
k.stopPropagation(), f == null || f.disconnect(), me.remove(fe.ConnectedWalletModal);
|
|
62706
62706
|
},
|
|
62707
62707
|
children: "Disconnect"
|
|
62708
62708
|
}
|
|
62709
62709
|
);
|
|
62710
|
-
}, [f, s, (
|
|
62710
|
+
}, [f, s, (y = (w = c == null ? void 0 : c.primary) == null ? void 0 : w.text) == null ? void 0 : y.ultraLowContrast]);
|
|
62711
62711
|
return /* @__PURE__ */ d(
|
|
62712
62712
|
td,
|
|
62713
62713
|
{
|
|
@@ -62899,7 +62899,7 @@ const Sw = () => {
|
|
|
62899
62899
|
s,
|
|
62900
62900
|
e,
|
|
62901
62901
|
i
|
|
62902
|
-
]),
|
|
62902
|
+
]), y = Z(() => /* @__PURE__ */ J(Pe, { children: [
|
|
62903
62903
|
(() => {
|
|
62904
62904
|
if (t) return t;
|
|
62905
62905
|
if (!r && i && c)
|
|
@@ -62940,7 +62940,7 @@ const Sw = () => {
|
|
|
62940
62940
|
e,
|
|
62941
62941
|
i
|
|
62942
62942
|
]);
|
|
62943
|
-
return l ? w :
|
|
62943
|
+
return l ? w : y;
|
|
62944
62944
|
}, s2 = ({
|
|
62945
62945
|
onClick: t,
|
|
62946
62946
|
content: i,
|
|
@@ -63227,12 +63227,12 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
63227
63227
|
destinationChainFeeAmount: f,
|
|
63228
63228
|
bpsFeeAmount: b,
|
|
63229
63229
|
sourceChainFeeUSD: w,
|
|
63230
|
-
destinationChainFeeUSD:
|
|
63230
|
+
destinationChainFeeUSD: y,
|
|
63231
63231
|
bpsFeeUSD: v
|
|
63232
63232
|
} = u, M = [D, f, b].reduce(
|
|
63233
63233
|
(H, V) => H + Number(V),
|
|
63234
63234
|
0
|
|
63235
|
-
),
|
|
63235
|
+
), k = [w, y, v].reduce(
|
|
63236
63236
|
(H, V) => H + Number(V),
|
|
63237
63237
|
0
|
|
63238
63238
|
), z = Ln(
|
|
@@ -63242,7 +63242,7 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
63242
63242
|
return {
|
|
63243
63243
|
assetAmount: Number(z),
|
|
63244
63244
|
formattedAssetAmount: `${z} ${h.symbol}`,
|
|
63245
|
-
formattedUsdAmount: mu(
|
|
63245
|
+
formattedUsdAmount: mu(k.toString())
|
|
63246
63246
|
};
|
|
63247
63247
|
} else {
|
|
63248
63248
|
const { feeAmount: u, feeAsset: h, usdFeeAmount: D } = l;
|
|
@@ -63431,9 +63431,9 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
63431
63431
|
}).filter(
|
|
63432
63432
|
(u) => u.chainName.toLowerCase().includes(i.toLowerCase())
|
|
63433
63433
|
).sort((u, h) => {
|
|
63434
|
-
var
|
|
63434
|
+
var y, v;
|
|
63435
63435
|
const D = Number(
|
|
63436
|
-
((
|
|
63436
|
+
((y = r(u.chainID, u.asset.denom)) == null ? void 0 : y.valueUSD) ?? 0
|
|
63437
63437
|
), f = Number(
|
|
63438
63438
|
((v = r(h.chainID, h.asset.denom)) == null ? void 0 : v.valueUSD) ?? 0
|
|
63439
63439
|
);
|
|
@@ -63684,35 +63684,35 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
63684
63684
|
badPriceWarning: l,
|
|
63685
63685
|
context: u
|
|
63686
63686
|
}) => {
|
|
63687
|
-
const h = Ae(), [D, f] = de(!1), b = hn(), w = D || l,
|
|
63687
|
+
const h = Ae(), [D, f] = de(!1), b = hn(), w = D || l, y = Vn({
|
|
63688
63688
|
assetDenom: n == null ? void 0 : n.denom,
|
|
63689
63689
|
amount: t,
|
|
63690
63690
|
chainId: n == null ? void 0 : n.chainID
|
|
63691
63691
|
}), v = Ow({ context: u }), M = v == null ? void 0 : v.find(
|
|
63692
|
-
(
|
|
63692
|
+
(S) => {
|
|
63693
63693
|
var j;
|
|
63694
|
-
return
|
|
63694
|
+
return S.id === ((j = y.asset) == null ? void 0 : j.recommendedSymbol);
|
|
63695
63695
|
}
|
|
63696
|
-
),
|
|
63696
|
+
), k = (S) => {
|
|
63697
63697
|
if (!e) return;
|
|
63698
|
-
let j =
|
|
63698
|
+
let j = S.target.value;
|
|
63699
63699
|
j.startsWith(".") && (j = "0" + j), j = j.replace(/[^\d.]/g, "");
|
|
63700
63700
|
const g = j.indexOf(".");
|
|
63701
63701
|
g !== -1 && (j = j.substring(0, g + 1) + j.substring(g + 1).replace(/\./g, "")), j = j.replace(/^0+(?!\.)/, "0");
|
|
63702
63702
|
const x = X0(j);
|
|
63703
|
-
e == null || e(ed(x,
|
|
63704
|
-
}, z = (
|
|
63703
|
+
e == null || e(ed(x, y == null ? void 0 : y.decimals));
|
|
63704
|
+
}, z = (S) => {
|
|
63705
63705
|
if (!e) return;
|
|
63706
63706
|
let j;
|
|
63707
|
-
switch (
|
|
63707
|
+
switch (S.key) {
|
|
63708
63708
|
case "Escape":
|
|
63709
|
-
|
|
63709
|
+
S.currentTarget.selectionStart === S.currentTarget.selectionEnd && S.currentTarget.select();
|
|
63710
63710
|
return;
|
|
63711
63711
|
case "ArrowUp":
|
|
63712
|
-
|
|
63712
|
+
S.preventDefault(), j = new Ne(X0(S.currentTarget.value) || "0"), S.shiftKey ? j = j.plus(10) : S.altKey || S.ctrlKey || S.metaKey ? j = j.plus(0.1) : j = j.plus(1), j.isNegative() && (j = new Ne(0)), e(j.toString());
|
|
63713
63713
|
break;
|
|
63714
63714
|
case "ArrowDown":
|
|
63715
|
-
|
|
63715
|
+
S.preventDefault(), j = new Ne(X0(S.currentTarget.value) || "0"), S.shiftKey ? j = j.minus(10) : S.altKey || S.ctrlKey || S.metaKey ? j = j.minus(0.1) : j = j.minus(1), j.isNegative() && (j = new Ne(0)), e(j.toString());
|
|
63716
63716
|
break;
|
|
63717
63717
|
default:
|
|
63718
63718
|
return;
|
|
@@ -63728,15 +63728,15 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
63728
63728
|
inputMode: "decimal",
|
|
63729
63729
|
value: V,
|
|
63730
63730
|
placeholder: "0",
|
|
63731
|
-
onChange:
|
|
63731
|
+
onChange: k,
|
|
63732
63732
|
onKeyDown: z,
|
|
63733
63733
|
isWaitingToUpdateInputValue: m
|
|
63734
63734
|
}
|
|
63735
63735
|
),
|
|
63736
63736
|
/* @__PURE__ */ J(KE, { onClick: c, gap: 5, children: [
|
|
63737
|
-
|
|
63737
|
+
y != null && y.assetImage && y.symbol ? /* @__PURE__ */ J(T0, { align: "center", justify: "center", gap: 7, children: [
|
|
63738
63738
|
/* @__PURE__ */ d(l2, { height: 23, width: 23, groupedAsset: M }),
|
|
63739
|
-
/* @__PURE__ */ d($e, { children:
|
|
63739
|
+
/* @__PURE__ */ d($e, { children: y.symbol }),
|
|
63740
63740
|
b && /* @__PURE__ */ d(
|
|
63741
63741
|
nD,
|
|
63742
63742
|
{
|
|
@@ -63792,9 +63792,9 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
63792
63792
|
"%"
|
|
63793
63793
|
] })
|
|
63794
63794
|
] }) : /* @__PURE__ */ d(Y, { children: i && mu(i) }),
|
|
63795
|
-
|
|
63795
|
+
y != null && y.chainName ? /* @__PURE__ */ d(RE, { onClick: r, align: "center", secondary: !0, gap: 4, children: /* @__PURE__ */ J(Y, { children: [
|
|
63796
63796
|
"on ",
|
|
63797
|
-
|
|
63797
|
+
y == null ? void 0 : y.chainName
|
|
63798
63798
|
] }) }) : /* @__PURE__ */ d(Rg, {})
|
|
63799
63799
|
] })
|
|
63800
63800
|
] });
|
|
@@ -63967,26 +63967,26 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
63967
63967
|
background: ${({ theme: t }) => t.primary.background.normal};
|
|
63968
63968
|
`, Q4 = 65, nF = Fp(
|
|
63969
63969
|
(t) => {
|
|
63970
|
-
const i = Ag(), { onSelect: e, selectedAsset: n, selectChain: c, context: r } = t, { data: s, isFetching: m, isPending: l } = W(ct), { isLoading: u } = W(Oe), h = m && l || u, [D, f] = de(!0), [b, w] = de(""), [
|
|
63970
|
+
const i = Ag(), { onSelect: e, selectedAsset: n, selectChain: c, context: r } = t, { data: s, isFetching: m, isPending: l } = W(ct), { isLoading: u } = W(Oe), h = m && l || u, [D, f] = de(!0), [b, w] = de(""), [y, v] = de(null), M = sw(Q4), k = () => {
|
|
63971
63971
|
w("");
|
|
63972
63972
|
}, z = Se(
|
|
63973
63973
|
(E) => {
|
|
63974
63974
|
if (E) {
|
|
63975
63975
|
if (bg(E)) {
|
|
63976
|
-
E.assets.length === 1 ? e(E.assets[0]) : v(E),
|
|
63976
|
+
E.assets.length === 1 ? e(E.assets[0]) : v(E), k();
|
|
63977
63977
|
return;
|
|
63978
63978
|
}
|
|
63979
|
-
e(E),
|
|
63979
|
+
e(E), k();
|
|
63980
63980
|
}
|
|
63981
63981
|
},
|
|
63982
63982
|
[e]
|
|
63983
63983
|
), H = Ow({ context: r }), V = Z(() => {
|
|
63984
|
-
const E = (
|
|
63984
|
+
const E = (y == null ? void 0 : y.assets[0]) || n;
|
|
63985
63985
|
if (E)
|
|
63986
63986
|
return H == null ? void 0 : H.find(
|
|
63987
63987
|
(F) => F.id === E.recommendedSymbol
|
|
63988
63988
|
);
|
|
63989
|
-
}, [
|
|
63989
|
+
}, [y == null ? void 0 : y.assets, n, H]), S = IE({ groupedAssetsByRecommendedSymbol: H, searchQuery: b }), j = Lw({ selectedGroup: V, searchQuery: b, context: r });
|
|
63990
63990
|
ue(() => {
|
|
63991
63991
|
!h && s && f(!1);
|
|
63992
63992
|
}, [h, s]), ue(() => {
|
|
@@ -64006,28 +64006,28 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
64006
64006
|
}
|
|
64007
64007
|
),
|
|
64008
64008
|
[r, z]
|
|
64009
|
-
),
|
|
64009
|
+
), A = Z(() => c || y ? j : S, [S, j, y, c]);
|
|
64010
64010
|
return /* @__PURE__ */ J(P0, { children: [
|
|
64011
64011
|
/* @__PURE__ */ d(
|
|
64012
64012
|
YE,
|
|
64013
64013
|
{
|
|
64014
64014
|
onSearch: g,
|
|
64015
64015
|
onClickBack: () => {
|
|
64016
|
-
|
|
64016
|
+
y === null ? me.remove(fe.AssetAndChainSelectorModal) : v(null);
|
|
64017
64017
|
},
|
|
64018
|
-
groupedAsset:
|
|
64018
|
+
groupedAsset: y ?? V,
|
|
64019
64019
|
searchTerm: b,
|
|
64020
64020
|
setSearchTerm: w,
|
|
64021
64021
|
onKeyDown: (E) => {
|
|
64022
|
-
const F = (
|
|
64023
|
-
E.key === "Backspace" &&
|
|
64022
|
+
const F = (A == null ? void 0 : A[0]) ?? null, C = F == null ? void 0 : F.asset, P = F;
|
|
64023
|
+
E.key === "Backspace" && y !== null && b === "" && v(null), E.key === "Enter" && (A == null ? void 0 : A.length) === 1 && z(C ?? P);
|
|
64024
64024
|
}
|
|
64025
64025
|
}
|
|
64026
64026
|
),
|
|
64027
|
-
D || !
|
|
64027
|
+
D || !S && !j ? /* @__PURE__ */ d(tF, { height: M, children: Array.from({ length: 8 }, (E, F) => /* @__PURE__ */ d(Y4, {}, F)) }) : /* @__PURE__ */ d(
|
|
64028
64028
|
o2,
|
|
64029
64029
|
{
|
|
64030
|
-
listItems:
|
|
64030
|
+
listItems: A ?? [],
|
|
64031
64031
|
itemHeight: Q4,
|
|
64032
64032
|
itemKey: (E) => bg(E) ? E.id : `${E.chainID}-${E.asset.denom}`,
|
|
64033
64033
|
renderItem: x,
|
|
@@ -64084,20 +64084,20 @@ const bE = new Intl.NumberFormat("en-US", {
|
|
|
64084
64084
|
};
|
|
64085
64085
|
var yh = /* @__PURE__ */ ((t) => (t.Input = "input", t.Wallet = "wallet", t.Injected = "injected", t))(yh || {});
|
|
64086
64086
|
const oF = Fp((t) => {
|
|
64087
|
-
var
|
|
64087
|
+
var q, B, E;
|
|
64088
64088
|
const i = hn(), { chainId: e, chainAddressIndex: n } = t;
|
|
64089
64089
|
if (t.chainAddressIndex === void 0)
|
|
64090
64090
|
throw new Error("chain address index cannot be undefined");
|
|
64091
|
-
const c = Ae(), { data: r } = W(Oe), s = r == null ? void 0 : r.find((F) => F.chainID === e), m = s == null ? void 0 : s.prettyName, l = s == null ? void 0 : s.logoURI, [u, h] = de(!1), [D, f] = de(""), b = r2({ chainID: e, destinationWalletList: !0 }), [w,
|
|
64091
|
+
const c = Ae(), { data: r } = W(Oe), s = r == null ? void 0 : r.find((F) => F.chainID === e), m = s == null ? void 0 : s.prettyName, l = s == null ? void 0 : s.logoURI, [u, h] = de(!1), [D, f] = de(""), b = r2({ chainID: e, destinationWalletList: !0 }), [w, y] = le(lu), v = new Set(Object.values(w).map(({ chainID: F }) => F)).size > 1, M = np(), k = {
|
|
64092
64092
|
onSelect: () => h(!0),
|
|
64093
64093
|
walletName: "Enter address manually",
|
|
64094
64094
|
rightContent: () => {
|
|
64095
64095
|
var F;
|
|
64096
64096
|
return /* @__PURE__ */ d(Gg, { color: (F = c == null ? void 0 : c.primary) == null ? void 0 : F.text.normal });
|
|
64097
64097
|
}
|
|
64098
|
-
}, z = (s == null ? void 0 : s.chainType) === ((
|
|
64098
|
+
}, z = (s == null ? void 0 : s.chainType) === ((q = w[0]) == null ? void 0 : q.chainType) && (s == null ? void 0 : s.chainType) !== ee.Cosmos, H = [...b, k], V = Se((F) => {
|
|
64099
64099
|
f(F.target.value);
|
|
64100
|
-
}, []),
|
|
64100
|
+
}, []), S = Z(() => {
|
|
64101
64101
|
if (!s || D.length === 0) return;
|
|
64102
64102
|
const { chainType: F, bech32Prefix: C, chainID: P } = s;
|
|
64103
64103
|
return iF({
|
|
@@ -64121,7 +64121,7 @@ const oF = Fp((t) => {
|
|
|
64121
64121
|
}
|
|
64122
64122
|
}, [s]), g = () => {
|
|
64123
64123
|
const F = s == null ? void 0 : s.chainType;
|
|
64124
|
-
!e || !F || (
|
|
64124
|
+
!e || !F || (y((C) => ({
|
|
64125
64125
|
...C,
|
|
64126
64126
|
[n]: {
|
|
64127
64127
|
chainID: e,
|
|
@@ -64152,12 +64152,12 @@ const oF = Fp((t) => {
|
|
|
64152
64152
|
placeholder: j,
|
|
64153
64153
|
value: D,
|
|
64154
64154
|
onChange: V,
|
|
64155
|
-
validAddress:
|
|
64155
|
+
validAddress: S
|
|
64156
64156
|
}
|
|
64157
64157
|
),
|
|
64158
|
-
/* @__PURE__ */ d(rF, { validAddress:
|
|
64158
|
+
/* @__PURE__ */ d(rF, { validAddress: S })
|
|
64159
64159
|
] }),
|
|
64160
|
-
|
|
64160
|
+
S === !1 && /* @__PURE__ */ J(Y, { color: (E = c == null ? void 0 : c.error) == null ? void 0 : E.text, textAlign: "center", children: [
|
|
64161
64161
|
"Please enter a valid wallet address for ",
|
|
64162
64162
|
m
|
|
64163
64163
|
] }),
|
|
@@ -64166,13 +64166,13 @@ const oF = Fp((t) => {
|
|
|
64166
64166
|
{
|
|
64167
64167
|
align: "center",
|
|
64168
64168
|
justify: "center",
|
|
64169
|
-
disabled: !
|
|
64169
|
+
disabled: !S,
|
|
64170
64170
|
onClick: g,
|
|
64171
64171
|
children: /* @__PURE__ */ d(
|
|
64172
64172
|
$e,
|
|
64173
64173
|
{
|
|
64174
|
-
mainButtonColor:
|
|
64175
|
-
opacity:
|
|
64174
|
+
mainButtonColor: S === !0 ? c == null ? void 0 : c.brandColor : void 0,
|
|
64175
|
+
opacity: S ? 1 : 0.5,
|
|
64176
64176
|
fontSize: 24,
|
|
64177
64177
|
children: "Confirm"
|
|
64178
64178
|
}
|
|
@@ -64183,7 +64183,7 @@ const oF = Fp((t) => {
|
|
|
64183
64183
|
pw,
|
|
64184
64184
|
{
|
|
64185
64185
|
title: x,
|
|
64186
|
-
walletList: z ? [
|
|
64186
|
+
walletList: z ? [k] : H,
|
|
64187
64187
|
onClickBackButton: () => me.remove(fe.SetAddressModal),
|
|
64188
64188
|
chainId: e,
|
|
64189
64189
|
onSelectWallet: async (F) => {
|
|
@@ -64193,7 +64193,7 @@ const oF = Fp((t) => {
|
|
|
64193
64193
|
sourceChainID: n ? (N = w[n - 1]) == null ? void 0 : N.chainID : void 0
|
|
64194
64194
|
}
|
|
64195
64195
|
})), P = C == null ? void 0 : C.address, I = C == null ? void 0 : C.logo;
|
|
64196
|
-
|
|
64196
|
+
y((G) => {
|
|
64197
64197
|
var K;
|
|
64198
64198
|
return {
|
|
64199
64199
|
...G,
|
|
@@ -64373,7 +64373,7 @@ const Ww = () => {
|
|
|
64373
64373
|
chainId: n,
|
|
64374
64374
|
tokenAmount: i
|
|
64375
64375
|
}), D = W(lu), b = Xl()(n), w = Z(() => {
|
|
64376
|
-
const
|
|
64376
|
+
const k = Object.values(D);
|
|
64377
64377
|
switch (m) {
|
|
64378
64378
|
case "source":
|
|
64379
64379
|
return {
|
|
@@ -64381,14 +64381,14 @@ const Ww = () => {
|
|
|
64381
64381
|
image: b == null ? void 0 : b.wallet.logo
|
|
64382
64382
|
};
|
|
64383
64383
|
case "destination": {
|
|
64384
|
-
const z =
|
|
64384
|
+
const z = k[k.length - 1];
|
|
64385
64385
|
return {
|
|
64386
64386
|
address: z == null ? void 0 : z.address,
|
|
64387
64387
|
image: (z == null ? void 0 : z.source) === "wallet" && z.wallet.walletInfo.logo || void 0
|
|
64388
64388
|
};
|
|
64389
64389
|
}
|
|
64390
64390
|
}
|
|
64391
|
-
}, [b == null ? void 0 : b.address, b == null ? void 0 : b.wallet.logo, D, m]),
|
|
64391
|
+
}, [b == null ? void 0 : b.address, b == null ? void 0 : b.wallet.logo, D, m]), y = Z(() => ip(ed(h.amount)), [h.amount]), v = Z(() => {
|
|
64392
64392
|
if (s)
|
|
64393
64393
|
return u ? /* @__PURE__ */ d(X5, { href: s, target: "_blank", children: /* @__PURE__ */ d(Il, {}) }) : /* @__PURE__ */ d(Nh, { href: s, target: "_blank", children: /* @__PURE__ */ d(Il, {}) });
|
|
64394
64394
|
}, [s, u]);
|
|
@@ -64414,7 +64414,7 @@ const Ww = () => {
|
|
|
64414
64414
|
),
|
|
64415
64415
|
/* @__PURE__ */ J(he, { gap: 5, children: [
|
|
64416
64416
|
/* @__PURE__ */ J(hF, { children: [
|
|
64417
|
-
|
|
64417
|
+
y,
|
|
64418
64418
|
" ",
|
|
64419
64419
|
h == null ? void 0 : h.symbol
|
|
64420
64420
|
] }),
|
|
@@ -64494,10 +64494,10 @@ const Ww = () => {
|
|
|
64494
64494
|
swapExecutionState: n,
|
|
64495
64495
|
firstOperationStatus: c
|
|
64496
64496
|
}) => {
|
|
64497
|
-
var
|
|
64497
|
+
var y, v;
|
|
64498
64498
|
const r = Ae(), { route: s } = W(pn), m = t[0], l = t[t.length - 1], u = i == null ? void 0 : i.transferEvents, h = Z(() => {
|
|
64499
|
-
var
|
|
64500
|
-
const M = (
|
|
64499
|
+
var k;
|
|
64500
|
+
const M = (k = u == null ? void 0 : u[l.transferIndex]) == null ? void 0 : k.status;
|
|
64501
64501
|
if (n === Ce.confirmed)
|
|
64502
64502
|
return "completed";
|
|
64503
64503
|
if (M) return M;
|
|
@@ -64513,7 +64513,7 @@ const Ww = () => {
|
|
|
64513
64513
|
tokenAmount: l.amountOut,
|
|
64514
64514
|
chainId: l.toChainID ?? l.chainID,
|
|
64515
64515
|
usdValue: s == null ? void 0 : s.usdAmountOut
|
|
64516
|
-
}, b = (
|
|
64516
|
+
}, b = (y = u == null ? void 0 : u[m.transferIndex]) == null ? void 0 : y.fromExplorerLink, w = (v = u == null ? void 0 : u[l.transferIndex]) == null ? void 0 : v.toExplorerLink;
|
|
64517
64517
|
return /* @__PURE__ */ J(bF, { justify: "space-between", children: [
|
|
64518
64518
|
/* @__PURE__ */ d(
|
|
64519
64519
|
$4,
|
|
@@ -64651,10 +64651,10 @@ const Ww = () => {
|
|
|
64651
64651
|
var b;
|
|
64652
64652
|
const { data: r } = W(Ug), { data: s } = W(Ky), m = t[0], l = i == null ? void 0 : i.transferEvents, u = Se(
|
|
64653
64653
|
(w) => {
|
|
64654
|
-
var
|
|
64655
|
-
const
|
|
64654
|
+
var S, j;
|
|
64655
|
+
const y = (j = (S = w.swapVenues) == null ? void 0 : S[0]) == null ? void 0 : j.chainID, v = w.bridgeID, M = s == null ? void 0 : s.find((g) => g.id === v), k = r == null ? void 0 : r.find((g) => g.chainID === y), z = (M == null ? void 0 : M.logoURI) ?? (k == null ? void 0 : k.logoUri), H = z == null ? void 0 : z.endsWith(".svg");
|
|
64656
64656
|
return {
|
|
64657
|
-
name: (M == null ? void 0 : M.name) ?? (
|
|
64657
|
+
name: (M == null ? void 0 : M.name) ?? (k == null ? void 0 : k.name),
|
|
64658
64658
|
image: z,
|
|
64659
64659
|
isSvg: H
|
|
64660
64660
|
};
|
|
@@ -64662,23 +64662,23 @@ const Ww = () => {
|
|
|
64662
64662
|
[s, r]
|
|
64663
64663
|
), h = Se(
|
|
64664
64664
|
(w) => {
|
|
64665
|
-
var M,
|
|
64666
|
-
const
|
|
64665
|
+
var M, k;
|
|
64666
|
+
const y = (M = l == null ? void 0 : l[w.transferIndex]) == null ? void 0 : M.status, v = (k = l == null ? void 0 : l[w.transferIndex - 1]) == null ? void 0 : k.status;
|
|
64667
64667
|
if (n === Ce.confirmed)
|
|
64668
64668
|
return "completed";
|
|
64669
|
-
if (
|
|
64669
|
+
if (y) return y;
|
|
64670
64670
|
if (v === "completed")
|
|
64671
64671
|
return "pending";
|
|
64672
64672
|
},
|
|
64673
64673
|
[l, n]
|
|
64674
64674
|
), D = Se(
|
|
64675
64675
|
(w) => {
|
|
64676
|
-
const
|
|
64676
|
+
const y = kF[w.type], v = u(w);
|
|
64677
64677
|
return /* @__PURE__ */ d(FF, { align: "center", children: /* @__PURE__ */ d(
|
|
64678
64678
|
kp,
|
|
64679
64679
|
{
|
|
64680
64680
|
content: /* @__PURE__ */ J(Y, { normalTextColor: !0, textWrap: "nowrap", children: [
|
|
64681
|
-
|
|
64681
|
+
y,
|
|
64682
64682
|
" with ",
|
|
64683
64683
|
v.name,
|
|
64684
64684
|
v.isSvg ? /* @__PURE__ */ d(EF, { svg: v.image }) : /* @__PURE__ */ d(
|
|
@@ -64695,28 +64695,28 @@ const Ww = () => {
|
|
|
64695
64695
|
) });
|
|
64696
64696
|
},
|
|
64697
64697
|
[u]
|
|
64698
|
-
), f = Z(() => t.map((w,
|
|
64698
|
+
), f = Z(() => t.map((w, y) => {
|
|
64699
64699
|
var H, V;
|
|
64700
|
-
const v = t[
|
|
64700
|
+
const v = t[y + 1], M = {
|
|
64701
64701
|
tokenAmount: w.amountOut,
|
|
64702
64702
|
denom: w.denomOut,
|
|
64703
64703
|
chainId: w.toChainID ?? w.chainID
|
|
64704
|
-
},
|
|
64704
|
+
}, k = w.isSwap ? (H = l == null ? void 0 : l[w.transferIndex]) == null ? void 0 : H.fromExplorerLink : (V = l == null ? void 0 : l[w.transferIndex]) == null ? void 0 : V.toExplorerLink, z = h(w);
|
|
64705
64705
|
return /* @__PURE__ */ J(Yn.Fragment, { children: [
|
|
64706
64706
|
D(w),
|
|
64707
64707
|
/* @__PURE__ */ d(
|
|
64708
64708
|
Ix,
|
|
64709
64709
|
{
|
|
64710
64710
|
...M,
|
|
64711
|
-
index:
|
|
64711
|
+
index: y,
|
|
64712
64712
|
onClickEditDestinationWallet: e,
|
|
64713
|
-
context:
|
|
64713
|
+
context: y === t.length - 1 ? "destination" : "intermediary",
|
|
64714
64714
|
isSignRequired: v == null ? void 0 : v.signRequired,
|
|
64715
64715
|
status: z,
|
|
64716
|
-
explorerLink:
|
|
64716
|
+
explorerLink: k
|
|
64717
64717
|
}
|
|
64718
64718
|
)
|
|
64719
|
-
] }, `row-${w.fromChain}-${w.toChainID}-${
|
|
64719
|
+
] }, `row-${w.fromChain}-${w.toChainID}-${y}`);
|
|
64720
64720
|
}), [h, e, t, D, l]);
|
|
64721
64721
|
return /* @__PURE__ */ d(vF, { children: /* @__PURE__ */ J(he, { children: [
|
|
64722
64722
|
/* @__PURE__ */ d(
|
|
@@ -64763,10 +64763,10 @@ const Ww = () => {
|
|
|
64763
64763
|
position: relative;
|
|
64764
64764
|
height: 25px;
|
|
64765
64765
|
`, MF = () => {
|
|
64766
|
-
var M,
|
|
64766
|
+
var M, k, z;
|
|
64767
64767
|
const [t, i] = le(lu), { route: e } = W(pn), n = e == null ? void 0 : e.requiredChainAddresses, { data: c } = W(Oe), r = W(Ng), [s, m] = de(!0), [l, u] = de(), h = Xl(), { createCosmosWallets: D } = Sw(), { createEvmWallets: f } = qw(), { createSolanaWallets: b } = Tw();
|
|
64768
64768
|
le(Av);
|
|
64769
|
-
const w = W(k0),
|
|
64769
|
+
const w = W(k0), y = Z(() => e != null && e.operations ? Pp(e.operations).filter((S) => S.signRequired).map((S) => S.fromChainID) : void 0, [e == null ? void 0 : e.operations]), v = Se(
|
|
64770
64770
|
async (H) => {
|
|
64771
64771
|
m(!0);
|
|
64772
64772
|
const V = {
|
|
@@ -64774,22 +64774,22 @@ const Ww = () => {
|
|
|
64774
64774
|
[ee.EVM]: f,
|
|
64775
64775
|
[ee.SVM]: b
|
|
64776
64776
|
};
|
|
64777
|
-
n && n.forEach(async (
|
|
64778
|
-
var
|
|
64779
|
-
const g = c == null ? void 0 : c.find((B) => B.chainID ===
|
|
64777
|
+
n && n.forEach(async (S, j) => {
|
|
64778
|
+
var A, q;
|
|
64779
|
+
const g = c == null ? void 0 : c.find((B) => B.chainID === S);
|
|
64780
64780
|
if (!g)
|
|
64781
64781
|
return;
|
|
64782
64782
|
const x = () => {
|
|
64783
|
-
const B =
|
|
64783
|
+
const B = y == null ? void 0 : y.includes(S);
|
|
64784
64784
|
me.show(fe.SetAddressModal, {
|
|
64785
64785
|
signRequired: B,
|
|
64786
|
-
chainId:
|
|
64786
|
+
chainId: S,
|
|
64787
64787
|
chainAddressIndex: j
|
|
64788
64788
|
});
|
|
64789
64789
|
};
|
|
64790
64790
|
if (t[j].source !== yh.Input)
|
|
64791
64791
|
try {
|
|
64792
|
-
const B = g.chainType, E = V[B](
|
|
64792
|
+
const B = g.chainType, E = V[B](S), F = (A = r[B]) == null ? void 0 : A.walletName, C = E.find((G) => G.walletName === F), P = y == null ? void 0 : y.includes(S), I = await ((q = C == null ? void 0 : C.getAddress) == null ? void 0 : q.call(C, { signRequired: P })), N = w == null ? void 0 : w[S], L = (w == null ? void 0 : w[S]) ?? (I == null ? void 0 : I.address);
|
|
64793
64793
|
if (!L || !C)
|
|
64794
64794
|
throw new Error(
|
|
64795
64795
|
`Address not found in connected wallets.
|
|
@@ -64800,7 +64800,7 @@ const Ww = () => {
|
|
|
64800
64800
|
return {
|
|
64801
64801
|
...G,
|
|
64802
64802
|
[j]: {
|
|
64803
|
-
chainID:
|
|
64803
|
+
chainID: S,
|
|
64804
64804
|
address: L,
|
|
64805
64805
|
chainType: B,
|
|
64806
64806
|
source: N ? yh.Injected : yh.Wallet,
|
|
@@ -64830,21 +64830,21 @@ const Ww = () => {
|
|
|
64830
64830
|
n,
|
|
64831
64831
|
c,
|
|
64832
64832
|
t,
|
|
64833
|
-
|
|
64833
|
+
y,
|
|
64834
64834
|
r,
|
|
64835
64835
|
w,
|
|
64836
64836
|
i
|
|
64837
64837
|
]
|
|
64838
64838
|
);
|
|
64839
64839
|
return ue(() => {
|
|
64840
|
-
var j, g, x,
|
|
64840
|
+
var j, g, x, A, q, B;
|
|
64841
64841
|
if (!n) return;
|
|
64842
|
-
const H = ((j = r.cosmos) == null ? void 0 : j.id) !== ((g = l == null ? void 0 : l.cosmos) == null ? void 0 : g.id), V = ((x = r.evm) == null ? void 0 : x.id) !== ((
|
|
64843
|
-
(H || V ||
|
|
64842
|
+
const H = ((j = r.cosmos) == null ? void 0 : j.id) !== ((g = l == null ? void 0 : l.cosmos) == null ? void 0 : g.id), V = ((x = r.evm) == null ? void 0 : x.id) !== ((A = l == null ? void 0 : l.evm) == null ? void 0 : A.id), S = ((q = r.svm) == null ? void 0 : q.id) !== ((B = l == null ? void 0 : l.svm) == null ? void 0 : B.id);
|
|
64843
|
+
(H || V || S) && (v(), u(r));
|
|
64844
64844
|
}, [
|
|
64845
64845
|
v,
|
|
64846
64846
|
(M = l == null ? void 0 : l.cosmos) == null ? void 0 : M.id,
|
|
64847
|
-
(
|
|
64847
|
+
(k = l == null ? void 0 : l.evm) == null ? void 0 : k.id,
|
|
64848
64848
|
(z = l == null ? void 0 : l.svm) == null ? void 0 : z.id,
|
|
64849
64849
|
h,
|
|
64850
64850
|
n,
|
|
@@ -65149,7 +65149,7 @@ const HF = () => {
|
|
|
65149
65149
|
SF({
|
|
65150
65150
|
statusData: b
|
|
65151
65151
|
});
|
|
65152
|
-
const w = Z(() => i != null && i.operations ? Pp(i.operations) : [], [i == null ? void 0 : i.operations]),
|
|
65152
|
+
const w = Z(() => i != null && i.operations ? Pp(i.operations) : [], [i == null ? void 0 : i.operations]), y = w[w.length - 1], v = qF({
|
|
65153
65153
|
chainAddresses: r,
|
|
65154
65154
|
route: i,
|
|
65155
65155
|
overallStatus: e,
|
|
@@ -65167,7 +65167,7 @@ const HF = () => {
|
|
|
65167
65167
|
return H[0].status;
|
|
65168
65168
|
if (v === 3 || v === 5)
|
|
65169
65169
|
return "pending";
|
|
65170
|
-
}, [b, v]),
|
|
65170
|
+
}, [b, v]), k = Z(() => {
|
|
65171
65171
|
if (![
|
|
65172
65172
|
3,
|
|
65173
65173
|
4,
|
|
@@ -65202,7 +65202,7 @@ const HF = () => {
|
|
|
65202
65202
|
/* @__PURE__ */ d(
|
|
65203
65203
|
z,
|
|
65204
65204
|
{
|
|
65205
|
-
onClickEditDestinationWallet:
|
|
65205
|
+
onClickEditDestinationWallet: k,
|
|
65206
65206
|
operations: w,
|
|
65207
65207
|
statusData: b,
|
|
65208
65208
|
swapExecutionState: v,
|
|
@@ -65215,7 +65215,7 @@ const HF = () => {
|
|
|
65215
65215
|
swapExecutionState: v,
|
|
65216
65216
|
route: i,
|
|
65217
65217
|
signaturesRemaining: f,
|
|
65218
|
-
lastOperation:
|
|
65218
|
+
lastOperation: y,
|
|
65219
65219
|
connectRequiredChains: s,
|
|
65220
65220
|
submitExecuteRouteMutation: h
|
|
65221
65221
|
}
|
|
@@ -65342,20 +65342,20 @@ const Gw = () => {
|
|
|
65342
65342
|
}), u = l.isPending && l.isFetching, h = r && s;
|
|
65343
65343
|
return {
|
|
65344
65344
|
data: Z(() => {
|
|
65345
|
-
var v, M,
|
|
65345
|
+
var v, M, k, z, H, V, S, j;
|
|
65346
65346
|
if (!t || !e || !n) return;
|
|
65347
65347
|
const { chainID: f, denom: b } = t;
|
|
65348
65348
|
if (!b || !f) return;
|
|
65349
|
-
const w = !!((M = (v = n == null ? void 0 : n.chains) == null ? void 0 : v[f]) != null && M.denoms),
|
|
65349
|
+
const w = !!((M = (v = n == null ? void 0 : n.chains) == null ? void 0 : v[f]) != null && M.denoms), y = (H = (z = (k = n == null ? void 0 : n.chains) == null ? void 0 : k[f]) == null ? void 0 : z.denoms) == null ? void 0 : H[b];
|
|
65350
65350
|
return t.isCW20 ? {
|
|
65351
65351
|
...l.data,
|
|
65352
65352
|
error: l.error || void 0
|
|
65353
|
-
} : w &&
|
|
65353
|
+
} : w && y === void 0 ? {
|
|
65354
65354
|
amount: 0,
|
|
65355
65355
|
formattedAmount: "0",
|
|
65356
65356
|
error: void 0,
|
|
65357
65357
|
decimals: void 0
|
|
65358
|
-
} : (j = (
|
|
65358
|
+
} : (j = (S = (V = n == null ? void 0 : n.chains) == null ? void 0 : V[f]) == null ? void 0 : S.denoms) == null ? void 0 : j[b];
|
|
65359
65359
|
}, [t, e, n, l.data, l.error]),
|
|
65360
65360
|
isLoading: !c || h || u,
|
|
65361
65361
|
refetch: () => {
|
|
@@ -65373,13 +65373,13 @@ const Gw = () => {
|
|
|
65373
65373
|
const l = (w = i(t, m.denom)) == null ? void 0 : w.amount;
|
|
65374
65374
|
if (!l) return;
|
|
65375
65375
|
const u = (() => {
|
|
65376
|
-
var v, M,
|
|
65377
|
-
const
|
|
65378
|
-
if (
|
|
65379
|
-
return new QA(ZA.fromUserInput(Ne(
|
|
65376
|
+
var v, M, k;
|
|
65377
|
+
const y = ((v = m.gasPrice) == null ? void 0 : v.average) || ((M = m.gasPrice) == null ? void 0 : M.high) || ((k = m.gasPrice) == null ? void 0 : k.low);
|
|
65378
|
+
if (y)
|
|
65379
|
+
return new QA(ZA.fromUserInput(Ne(y).toFixed(), 18), m.denom);
|
|
65380
65380
|
})();
|
|
65381
65381
|
if (!u) return;
|
|
65382
|
-
const h = n == null ? void 0 : n.map((
|
|
65382
|
+
const h = n == null ? void 0 : n.map((y) => y.chainID).includes(t), D = Math.ceil(h ? Kp.SWAP : Kp.DEFAULT), b = $A(D, u).amount[0].amount;
|
|
65383
65383
|
return {
|
|
65384
65384
|
feeAmount: b,
|
|
65385
65385
|
denom: m.denom,
|
|
@@ -65555,7 +65555,7 @@ const Gw = () => {
|
|
|
65555
65555
|
}, [c, n]), { chainId: s } = Wd(), m = Z(() => !i || !n ? {} : i.reduce(
|
|
65556
65556
|
(l, u) => {
|
|
65557
65557
|
var b, w;
|
|
65558
|
-
const h = n.find((
|
|
65558
|
+
const h = n.find((y) => y.chainID === u.chainID);
|
|
65559
65559
|
if (!h) return l;
|
|
65560
65560
|
const D = r ?? ((b = t(String(s))) == null ? void 0 : b.address), f = h.chainType === ee.EVM ? D : (w = t(u.chainID)) == null ? void 0 : w.address;
|
|
65561
65561
|
return f && !l[u.chainID] && (l[u.chainID] = { address: f }), l;
|
|
@@ -65616,12 +65616,12 @@ const Gw = () => {
|
|
|
65616
65616
|
var Ee;
|
|
65617
65617
|
const { SettingsFooter: t, drawerOpen: i } = Ww();
|
|
65618
65618
|
le(ov);
|
|
65619
|
-
const { data: e } = W(Oe), [n, c] = le(qe), r = $(Qd), s = $(E0), [m] = le(nw), [l, u] = le(Un), [h] = le(iu), [{ data: D }] = le(ct), f = $(rt), b = KF(), w = $(bv),
|
|
65619
|
+
const { data: e } = W(Oe), [n, c] = le(qe), r = $(Qd), s = $(E0), [m] = le(nw), [l, u] = le(Un), [h] = le(iu), [{ data: D }] = le(ct), f = $(rt), b = KF(), w = $(bv), y = $(Qe), { isFetching: v, isPending: M } = W(m2), k = v && M, { data: z, isError: H, error: V } = W(Lu), S = eM(), j = W(n2), g = F0(z), x = $(lu);
|
|
65620
65620
|
QF(), $F(), _F();
|
|
65621
|
-
const
|
|
65621
|
+
const A = Xl(), q = A(n == null ? void 0 : n.chainID), B = W(ou), E = yv(z), { chainId: F, connector: C } = Wd(), P = Z(() => {
|
|
65622
65622
|
var Q;
|
|
65623
|
-
return F ? (Q =
|
|
65624
|
-
}, [F,
|
|
65623
|
+
return F ? (Q = A(String(F))) == null ? void 0 : Q.address : void 0;
|
|
65624
|
+
}, [F, A]), I = Se(
|
|
65625
65625
|
(Q, te) => {
|
|
65626
65626
|
if (!(!Q || !te) && D)
|
|
65627
65627
|
return D.find(
|
|
@@ -65700,7 +65700,7 @@ const Gw = () => {
|
|
|
65700
65700
|
if (!(!(z != null && z.usdAmountIn) || !(z != null && z.usdAmountOut) || m))
|
|
65701
65701
|
return G5(z.usdAmountIn, z.usdAmountOut);
|
|
65702
65702
|
}, [m, z == null ? void 0 : z.usdAmountIn, z == null ? void 0 : z.usdAmountOut]), ye = Z(() => {
|
|
65703
|
-
if (!(
|
|
65703
|
+
if (!(q != null && q.address))
|
|
65704
65704
|
return /* @__PURE__ */ d(
|
|
65705
65705
|
ve,
|
|
65706
65706
|
{
|
|
@@ -65725,47 +65725,47 @@ const Gw = () => {
|
|
|
65725
65725
|
const te = V != null && V.message.startsWith("no single-tx routes found") ? "Multiple signature routes are currently only supported on the Skip:Go desktop app" : V == null ? void 0 : V.message;
|
|
65726
65726
|
return /* @__PURE__ */ d(ve, { label: te ?? "No routes found", disabled: !0, fontSize: te ? 18 : 24 });
|
|
65727
65727
|
}
|
|
65728
|
-
if (
|
|
65728
|
+
if (k)
|
|
65729
65729
|
return /* @__PURE__ */ d(ve, { label: "Fetching balances", loading: !0, icon: _.swap });
|
|
65730
65730
|
if (b)
|
|
65731
65731
|
return /* @__PURE__ */ d(ve, { label: "Insufficient balance", disabled: !0, icon: _.swap });
|
|
65732
65732
|
const Q = () => {
|
|
65733
65733
|
var te;
|
|
65734
|
-
if (
|
|
65735
|
-
|
|
65734
|
+
if (S) {
|
|
65735
|
+
y({
|
|
65736
65736
|
errorType: ze.CosmosLedgerWarning,
|
|
65737
65737
|
onClickBack: () => {
|
|
65738
|
-
|
|
65738
|
+
y(void 0);
|
|
65739
65739
|
}
|
|
65740
65740
|
});
|
|
65741
65741
|
return;
|
|
65742
65742
|
}
|
|
65743
65743
|
if (((te = z == null ? void 0 : z.warning) == null ? void 0 : te.type) === "BAD_PRICE_WARNING" && Number(ne ?? 0) < 0) {
|
|
65744
|
-
|
|
65744
|
+
y({
|
|
65745
65745
|
errorType: ze.TradeWarning,
|
|
65746
65746
|
onClickContinue: () => {
|
|
65747
|
-
|
|
65747
|
+
y(void 0), x({}), f(Ze.SwapExecutionPage), w();
|
|
65748
65748
|
},
|
|
65749
65749
|
onClickBack: () => {
|
|
65750
|
-
|
|
65750
|
+
y(void 0);
|
|
65751
65751
|
},
|
|
65752
65752
|
route: { ...z }
|
|
65753
65753
|
});
|
|
65754
65754
|
return;
|
|
65755
65755
|
}
|
|
65756
65756
|
if (j && g) {
|
|
65757
|
-
|
|
65757
|
+
y({
|
|
65758
65758
|
errorType: ze.GoFastWarning,
|
|
65759
65759
|
onClickContinue: () => {
|
|
65760
|
-
|
|
65760
|
+
y(void 0), x({}), f(Ze.SwapExecutionPage), w();
|
|
65761
65761
|
},
|
|
65762
65762
|
onClickBack: () => {
|
|
65763
|
-
f(Ze.SwapPage),
|
|
65763
|
+
f(Ze.SwapPage), y(void 0);
|
|
65764
65764
|
}
|
|
65765
65765
|
});
|
|
65766
65766
|
return;
|
|
65767
65767
|
}
|
|
65768
|
-
x({}), f(Ze.SwapExecutionPage), u8({ username:
|
|
65768
|
+
x({}), f(Ze.SwapExecutionPage), u8({ username: q == null ? void 0 : q.address }), w();
|
|
65769
65769
|
};
|
|
65770
65770
|
return /* @__PURE__ */ d(
|
|
65771
65771
|
ve,
|
|
@@ -65777,26 +65777,26 @@ const Gw = () => {
|
|
|
65777
65777
|
}
|
|
65778
65778
|
);
|
|
65779
65779
|
}, [
|
|
65780
|
-
|
|
65780
|
+
q == null ? void 0 : q.address,
|
|
65781
65781
|
n == null ? void 0 : n.chainID,
|
|
65782
65782
|
n == null ? void 0 : n.amount,
|
|
65783
65783
|
l == null ? void 0 : l.chainID,
|
|
65784
65784
|
l == null ? void 0 : l.amount,
|
|
65785
65785
|
m,
|
|
65786
65786
|
H,
|
|
65787
|
-
|
|
65787
|
+
k,
|
|
65788
65788
|
b,
|
|
65789
65789
|
E,
|
|
65790
65790
|
z,
|
|
65791
65791
|
V == null ? void 0 : V.message,
|
|
65792
|
-
|
|
65792
|
+
S,
|
|
65793
65793
|
ne,
|
|
65794
65794
|
j,
|
|
65795
65795
|
g,
|
|
65796
65796
|
x,
|
|
65797
65797
|
f,
|
|
65798
65798
|
w,
|
|
65799
|
-
|
|
65799
|
+
y
|
|
65800
65800
|
]);
|
|
65801
65801
|
return /* @__PURE__ */ J(
|
|
65802
65802
|
he,
|
|
@@ -65814,7 +65814,7 @@ const Gw = () => {
|
|
|
65814
65814
|
icon: _.history,
|
|
65815
65815
|
onClick: () => f(Ze.TransactionHistoryPage)
|
|
65816
65816
|
},
|
|
65817
|
-
rightContent:
|
|
65817
|
+
rightContent: q ? /* @__PURE__ */ d(ZF, {}) : null
|
|
65818
65818
|
}
|
|
65819
65819
|
),
|
|
65820
65820
|
/* @__PURE__ */ J(he, { align: "center", children: [
|
|
@@ -66425,22 +66425,22 @@ function OM(t, i, e) {
|
|
|
66425
66425
|
b = Math.round;
|
|
66426
66426
|
else
|
|
66427
66427
|
throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
|
|
66428
|
-
var w = D.getTime() - h.getTime(),
|
|
66429
|
-
if (
|
|
66428
|
+
var w = D.getTime() - h.getTime(), y = w / n8, v = e8(D) - e8(h), M = (w - v) / n8, k = e == null ? void 0 : e.unit, z;
|
|
66429
|
+
if (k ? z = String(k) : y < 1 ? z = "second" : y < 60 ? z = "minute" : y < u0 ? z = "hour" : M < t8 ? z = "day" : M < i8 ? z = "month" : z = "year", z === "second") {
|
|
66430
66430
|
var H = b(w / 1e3);
|
|
66431
66431
|
return m.formatDistance("xSeconds", H, u);
|
|
66432
66432
|
} else if (z === "minute") {
|
|
66433
|
-
var V = b(
|
|
66433
|
+
var V = b(y);
|
|
66434
66434
|
return m.formatDistance("xMinutes", V, u);
|
|
66435
66435
|
} else if (z === "hour") {
|
|
66436
|
-
var
|
|
66437
|
-
return m.formatDistance("xHours",
|
|
66436
|
+
var S = b(y / 60);
|
|
66437
|
+
return m.formatDistance("xHours", S, u);
|
|
66438
66438
|
} else if (z === "day") {
|
|
66439
66439
|
var j = b(M / u0);
|
|
66440
66440
|
return m.formatDistance("xDays", j, u);
|
|
66441
66441
|
} else if (z === "month") {
|
|
66442
66442
|
var g = b(M / t8);
|
|
66443
|
-
return g === 12 &&
|
|
66443
|
+
return g === 12 && k !== "month" ? m.formatDistance("xYears", 1, u) : m.formatDistance("xMonths", g, u);
|
|
66444
66444
|
} else if (z === "year") {
|
|
66445
66445
|
var x = b(M / i8);
|
|
66446
66446
|
return m.formatDistance("xYears", x, u);
|
|
@@ -66489,7 +66489,7 @@ const UM = (t) => {
|
|
|
66489
66489
|
destAssetChainID: b
|
|
66490
66490
|
},
|
|
66491
66491
|
timestamp: w,
|
|
66492
|
-
transactionDetails:
|
|
66492
|
+
transactionDetails: y
|
|
66493
66493
|
} = i, v = Vn({
|
|
66494
66494
|
assetDenom: h,
|
|
66495
66495
|
chainId: D,
|
|
@@ -66498,7 +66498,7 @@ const UM = (t) => {
|
|
|
66498
66498
|
assetDenom: f,
|
|
66499
66499
|
chainId: b,
|
|
66500
66500
|
tokenAmount: u
|
|
66501
|
-
}),
|
|
66501
|
+
}), k = {
|
|
66502
66502
|
amount: v.amount,
|
|
66503
66503
|
asset: v.asset,
|
|
66504
66504
|
assetImage: v.assetImage ?? ""
|
|
@@ -66525,13 +66525,13 @@ const UM = (t) => {
|
|
|
66525
66525
|
case "failed":
|
|
66526
66526
|
return /* @__PURE__ */ d(zw, { color: c.error.text });
|
|
66527
66527
|
}
|
|
66528
|
-
}, [s, c.error.text, c.primary.text.normal]), V = Z(() => r ? UM(new Date(w)) : new Date(w).toLocaleString(), [r, w]),
|
|
66528
|
+
}, [s, c.error.text, c.primary.text.normal]), V = Z(() => r ? UM(new Date(w)) : new Date(w).toLocaleString(), [r, w]), S = Z(() => s === "pending" ? "In Progress" : OM(new Date(w), /* @__PURE__ */ new Date(), {
|
|
66529
66529
|
addSuffix: !0
|
|
66530
66530
|
}).replace("minutes", "mins").replace("minute", "min").replace("hours", "hrs").replace("hour", "hr").replace("seconds", "secs").replace("second", "sec").replace("months", "mos").replace("month", "mo").replace("years", "yrs").replace("year", "yr"), [s, w]);
|
|
66531
66531
|
return /* @__PURE__ */ J(GM, { showDetails: e, children: [
|
|
66532
66532
|
/* @__PURE__ */ J(XM, { align: "center", justify: "space-between", onClick: n, children: [
|
|
66533
66533
|
/* @__PURE__ */ J(YM, { gap: 5, align: "center", children: [
|
|
66534
|
-
/* @__PURE__ */ d(o8, { ...
|
|
66534
|
+
/* @__PURE__ */ d(o8, { ...k }),
|
|
66535
66535
|
/* @__PURE__ */ d(Kw, { color: c.primary.text.lowContrast, style: { flexShrink: 0 } }),
|
|
66536
66536
|
/* @__PURE__ */ d(o8, { ...z }),
|
|
66537
66537
|
/* @__PURE__ */ J(
|
|
@@ -66549,7 +66549,7 @@ const UM = (t) => {
|
|
|
66549
66549
|
)
|
|
66550
66550
|
] }),
|
|
66551
66551
|
/* @__PURE__ */ J(R, { align: "center", gap: 10, children: [
|
|
66552
|
-
/* @__PURE__ */ d(Y, { children:
|
|
66552
|
+
/* @__PURE__ */ d(Y, { children: S }),
|
|
66553
66553
|
H
|
|
66554
66554
|
] })
|
|
66555
66555
|
] }),
|
|
@@ -66560,7 +66560,7 @@ const UM = (t) => {
|
|
|
66560
66560
|
sourceChainName: v.chainName ?? "--",
|
|
66561
66561
|
destinationChainName: M.chainName ?? "--",
|
|
66562
66562
|
absoluteTimeString: V,
|
|
66563
|
-
transactionDetails:
|
|
66563
|
+
transactionDetails: y,
|
|
66564
66564
|
onClickDelete: () => m(t)
|
|
66565
66565
|
}
|
|
66566
66566
|
)
|
|
@@ -66646,55 +66646,54 @@ const UM = (t) => {
|
|
|
66646
66646
|
border-radius: 25px;
|
|
66647
66647
|
background: ${({ theme: t }) => t.primary.background.normal};
|
|
66648
66648
|
`, $M = () => {
|
|
66649
|
-
var
|
|
66649
|
+
var y, v;
|
|
66650
66650
|
const [t, i] = le(w0), [e, n] = le(zg), [c, r] = le(A0), { data: s, walletType: m } = r8({
|
|
66651
66651
|
multiChain: !0
|
|
66652
|
-
}), { wallets:
|
|
66653
|
-
var v;
|
|
66654
|
-
const A = (v = s == null ? void 0 : s["cosmoshub-4"]) == null ? void 0 : v.bech32Address;
|
|
66652
|
+
}), l = s ? (y = s[Object.keys(s)[0]]) == null ? void 0 : y.address : "", { wallets: u } = yg(), h = (v = u.find((M) => M.adapter.connected === !0)) == null ? void 0 : v.adapter, D = Wd(), f = Se(async () => {
|
|
66655
66653
|
s && m && n({
|
|
66656
|
-
id:
|
|
66654
|
+
id: l,
|
|
66657
66655
|
walletName: m,
|
|
66658
66656
|
chainType: ee.Cosmos
|
|
66659
66657
|
});
|
|
66660
|
-
}, [s, n, m]),
|
|
66661
|
-
var
|
|
66662
|
-
const
|
|
66663
|
-
|
|
66664
|
-
id:
|
|
66665
|
-
walletName:
|
|
66658
|
+
}, [s, l, n, m]), b = Se(async () => {
|
|
66659
|
+
var z, H, V, S, j;
|
|
66660
|
+
const M = await ((H = (z = D.connector) == null ? void 0 : z.getProvider) == null ? void 0 : H.call(z)), k = (S = (V = M == null ? void 0 : M.session) == null ? void 0 : V.peer) == null ? void 0 : S.metadata;
|
|
66661
|
+
D.connector && i({
|
|
66662
|
+
id: D.address,
|
|
66663
|
+
walletName: D.connector.id,
|
|
66666
66664
|
chainType: ee.EVM,
|
|
66667
|
-
logo: (
|
|
66665
|
+
logo: (k == null ? void 0 : k.icons[0]) ?? ((j = D.connector) == null ? void 0 : j.icon)
|
|
66668
66666
|
});
|
|
66669
|
-
}, [
|
|
66670
|
-
var
|
|
66671
|
-
const
|
|
66672
|
-
|
|
66673
|
-
id: (
|
|
66674
|
-
walletName:
|
|
66667
|
+
}, [D.address, D.connector, i]), w = Se(async () => {
|
|
66668
|
+
var k, z, H, V, S;
|
|
66669
|
+
const M = (V = (H = (z = (k = h == null ? void 0 : h._wallet) == null ? void 0 : k._UniversalProvider) == null ? void 0 : z.session) == null ? void 0 : H.peer) == null ? void 0 : V.metadata;
|
|
66670
|
+
h && r({
|
|
66671
|
+
id: (S = h.publicKey) == null ? void 0 : S.toBase58(),
|
|
66672
|
+
walletName: h.name,
|
|
66675
66673
|
chainType: ee.SVM,
|
|
66676
|
-
logo: (
|
|
66674
|
+
logo: (M == null ? void 0 : M.icons[0]) ?? h.icon
|
|
66677
66675
|
});
|
|
66678
|
-
}, [r,
|
|
66676
|
+
}, [r, h]);
|
|
66679
66677
|
ue(() => {
|
|
66680
|
-
var
|
|
66681
|
-
const
|
|
66682
|
-
m && (e == null ? void 0 : e.id) !==
|
|
66678
|
+
var z;
|
|
66679
|
+
const M = D.address, k = (z = h == null ? void 0 : h.publicKey) == null ? void 0 : z.toBase58();
|
|
66680
|
+
m && (e == null ? void 0 : e.id) !== l && f(), h != null && h.connected && (c == null ? void 0 : c.id) !== k && w(), D.connector && (t == null ? void 0 : t.id) !== M && b();
|
|
66683
66681
|
}, [
|
|
66684
66682
|
m,
|
|
66685
66683
|
e,
|
|
66686
|
-
|
|
66684
|
+
h,
|
|
66687
66685
|
c,
|
|
66688
|
-
|
|
66686
|
+
D.connector,
|
|
66689
66687
|
t,
|
|
66690
66688
|
n,
|
|
66691
66689
|
r,
|
|
66692
66690
|
i,
|
|
66693
|
-
f,
|
|
66694
66691
|
b,
|
|
66692
|
+
w,
|
|
66695
66693
|
s,
|
|
66696
|
-
|
|
66697
|
-
|
|
66694
|
+
D.address,
|
|
66695
|
+
f,
|
|
66696
|
+
l
|
|
66698
66697
|
]);
|
|
66699
66698
|
}, Zw = () => {
|
|
66700
66699
|
$M();
|
|
@@ -66834,7 +66833,7 @@ const iP = () => {
|
|
|
66834
66833
|
replaysSessionSampleRate: 1,
|
|
66835
66834
|
replaysOnErrorSampleRate: 0
|
|
66836
66835
|
}), a8 = !0);
|
|
66837
|
-
}, oP = "3.3.
|
|
66836
|
+
}, oP = "3.3.8", aP = () => {
|
|
66838
66837
|
const t = hn(), i = $(t2);
|
|
66839
66838
|
ue(() => {
|
|
66840
66839
|
i((e) => ({
|
|
@@ -66846,10 +66845,10 @@ const iP = () => {
|
|
|
66846
66845
|
var f;
|
|
66847
66846
|
t.enableSentrySessionReplays && iP(), p0("widget_version", oP), tP(t.defaultRoute), cP(t), aP();
|
|
66848
66847
|
const i = $(Hu), e = $(J5), n = $(zl), c = $(t2), r = $(_g), s = $(Yd), m = $(K8), l = $(Sp), u = $(aw), h = Z(() => {
|
|
66849
|
-
const { apiUrl: b, chainIdsToAffiliates: w, endpointOptions:
|
|
66848
|
+
const { apiUrl: b, chainIdsToAffiliates: w, endpointOptions: y } = t, v = {
|
|
66850
66849
|
apiUrl: b,
|
|
66851
66850
|
chainIdsToAffiliates: w,
|
|
66852
|
-
endpointOptions:
|
|
66851
|
+
endpointOptions: y
|
|
66853
66852
|
};
|
|
66854
66853
|
return {
|
|
66855
66854
|
apiURL: v.apiUrl ?? Th.apiUrl,
|