zigap-utils 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -2,9 +2,9 @@ var pf = Object.defineProperty;
|
|
|
2
2
|
var mf = (e, t, r) => t in e ? pf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var on = (e, t, r) => mf(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import * as bf from "react";
|
|
5
|
-
import Br, { useState as
|
|
5
|
+
import Br, { useState as qe, useEffect as Ze } from "react";
|
|
6
6
|
import Nr from "styled-components";
|
|
7
|
-
var
|
|
7
|
+
var qr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function Jn(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
10
|
}
|
|
@@ -35,7 +35,7 @@ const yf = zd(bf);
|
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
38
|
+
var Ua;
|
|
39
39
|
process.env.NODE_ENV === "production" ? yo.exports = function() {
|
|
40
40
|
if ($a) return ni;
|
|
41
41
|
$a = 1;
|
|
@@ -47,7 +47,7 @@ process.env.NODE_ENV === "production" ? yo.exports = function() {
|
|
|
47
47
|
return i = s.ref, { $$typeof: e, type: n, key: a, ref: i !== void 0 ? i : null, props: s };
|
|
48
48
|
}
|
|
49
49
|
return ni.Fragment = t, ni.jsx = r, ni.jsxs = r, ni;
|
|
50
|
-
}() : yo.exports = (
|
|
50
|
+
}() : yo.exports = (Ua || (Ua = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
51
|
function e(N) {
|
|
52
52
|
if (N == null) return null;
|
|
53
53
|
if (typeof N == "function") return N.$$typeof === z ? null : N.displayName || N.name || null;
|
|
@@ -144,7 +144,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
144
144
|
if (kt && kt.isReactWarning) return !1;
|
|
145
145
|
}
|
|
146
146
|
return lt.key !== void 0;
|
|
147
|
-
}(j) && (r(j.key), ot = "" + j.key), "key" in j) for (var
|
|
147
|
+
}(j) && (r(j.key), ot = "" + j.key), "key" in j) for (var qt in Z = {}, j) qt !== "key" && (Z[qt] = j[qt]);
|
|
148
148
|
else Z = j;
|
|
149
149
|
return ot && function(lt, kt) {
|
|
150
150
|
function Ft() {
|
|
@@ -258,11 +258,11 @@ $d.exports = function() {
|
|
|
258
258
|
}, y.valueOf = function() {
|
|
259
259
|
return this.$d.getTime();
|
|
260
260
|
}, y.startOf = function(w, P) {
|
|
261
|
-
var N = this, j = !!p.u(P) || P, Z = p.p(w), $ = function(
|
|
262
|
-
var kt = p.w(N.$u ? Date.UTC(N.$y, lt,
|
|
261
|
+
var N = this, j = !!p.u(P) || P, Z = p.p(w), $ = function(qt, lt) {
|
|
262
|
+
var kt = p.w(N.$u ? Date.UTC(N.$y, lt, qt) : new Date(N.$y, lt, qt), N);
|
|
263
263
|
return j ? kt : kt.endOf(o);
|
|
264
|
-
}, V = function(
|
|
265
|
-
return p.w(N.toDate()[
|
|
264
|
+
}, V = function(qt, lt) {
|
|
265
|
+
return p.w(N.toDate()[qt].apply(N.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(lt)), N);
|
|
266
266
|
}, H = this.$W, D = this.$M, G = this.$D, Et = "set" + (this.$u ? "UTC" : "");
|
|
267
267
|
switch (Z) {
|
|
268
268
|
case l:
|
|
@@ -319,7 +319,7 @@ $d.exports = function() {
|
|
|
319
319
|
return lt && (lt[kt] || lt(P, j)) || Ft[kt].slice(0, Lt);
|
|
320
320
|
}, mt = function(lt) {
|
|
321
321
|
return p.s($ % 12 || 12, lt, "0");
|
|
322
|
-
},
|
|
322
|
+
}, qt = Et || function(lt, kt, Ft) {
|
|
323
323
|
var Lt = lt < 12 ? "AM" : "PM";
|
|
324
324
|
return Ft ? Lt.toLowerCase() : Lt;
|
|
325
325
|
};
|
|
@@ -359,9 +359,9 @@ $d.exports = function() {
|
|
|
359
359
|
case "hh":
|
|
360
360
|
return mt(2);
|
|
361
361
|
case "a":
|
|
362
|
-
return
|
|
362
|
+
return qt($, V, !0);
|
|
363
363
|
case "A":
|
|
364
|
-
return
|
|
364
|
+
return qt($, V, !1);
|
|
365
365
|
case "m":
|
|
366
366
|
return String(V);
|
|
367
367
|
case "mm":
|
|
@@ -444,9 +444,9 @@ $d.exports = function() {
|
|
|
444
444
|
}, f.en = E[O], f.Ls = E, f.p = {}, f;
|
|
445
445
|
}();
|
|
446
446
|
const mi = Jn($d.exports);
|
|
447
|
-
var dn,
|
|
448
|
-
for (var r in t || (t = {}))
|
|
449
|
-
if (ds) for (var r of ds(t))
|
|
447
|
+
var dn, qa, gf = Object.defineProperty, ds = Object.getOwnPropertySymbols, Ud = Object.prototype.hasOwnProperty, qd = Object.prototype.propertyIsEnumerable, Ha = (e, t, r) => t in e ? gf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Da = (e, t) => {
|
|
448
|
+
for (var r in t || (t = {})) Ud.call(t, r) && Ha(e, r, t[r]);
|
|
449
|
+
if (ds) for (var r of ds(t)) qd.call(t, r) && Ha(e, r, t[r]);
|
|
450
450
|
return e;
|
|
451
451
|
};
|
|
452
452
|
((e) => {
|
|
@@ -787,7 +787,7 @@ var dn, Ua, gf = Object.defineProperty, ds = Object.getOwnPropertySymbols, qd =
|
|
|
787
787
|
};
|
|
788
788
|
let r = t;
|
|
789
789
|
r.LOW = new t(0, 1), r.MEDIUM = new t(1, 0), r.QUARTILE = new t(2, 3), r.HIGH = new t(3, 2), e.Ecc = r;
|
|
790
|
-
})((
|
|
790
|
+
})((qa = dn || (dn = {})).QrCode || (qa.QrCode = {})), ((e) => {
|
|
791
791
|
((t) => {
|
|
792
792
|
const r = class {
|
|
793
793
|
constructor(i, s) {
|
|
@@ -818,8 +818,8 @@ var kf = function() {
|
|
|
818
818
|
function Xn(e) {
|
|
819
819
|
const t = e, { value: r, size: n = _f, level: i = wf, bgColor: s = xf, fgColor: a = Af, includeMargin: o = Sf, style: c, imageSettings: d } = t, h = ((k, O) => {
|
|
820
820
|
var E = {};
|
|
821
|
-
for (var R in k)
|
|
822
|
-
if (k != null && ds) for (var R of ds(k)) O.indexOf(R) < 0 &&
|
|
821
|
+
for (var R in k) Ud.call(k, R) && O.indexOf(R) < 0 && (E[R] = k[R]);
|
|
822
|
+
if (k != null && ds) for (var R of ds(k)) O.indexOf(R) < 0 && qd.call(k, R) && (E[R] = k[R]);
|
|
823
823
|
return E;
|
|
824
824
|
})(t, ["value", "size", "level", "bgColor", "fgColor", "includeMargin", "style", "imageSettings"]), l = d == null ? void 0 : d.src, _ = Br.useRef(null), v = Br.useRef(null), [A, I] = Br.useState(!1);
|
|
825
825
|
Br.useEffect(() => {
|
|
@@ -832,8 +832,8 @@ function Xn(e) {
|
|
|
832
832
|
const Z = N ? 4 : 0, $ = w.length + 2 * Z, V = Math.floor(0.1 * P), H = $ / P, D = (j.width || V) * H, G = (j.height || V) * H, Et = j.x == null ? w.length / 2 - D / 2 : j.x * H, ot = j.y == null ? w.length / 2 - G / 2 : j.y * H;
|
|
833
833
|
let mt = null;
|
|
834
834
|
if (j.excavate) {
|
|
835
|
-
let
|
|
836
|
-
mt = { x:
|
|
835
|
+
let qt = Math.floor(Et), lt = Math.floor(ot);
|
|
836
|
+
mt = { x: qt, y: lt, w: Math.ceil(D + Et - qt), h: Math.ceil(G + ot - lt) };
|
|
837
837
|
}
|
|
838
838
|
return { x: Et, y: ot, h: G, w: D, excavation: mt };
|
|
839
839
|
}(L, n, o, d), g = v.current, m = p != null && g !== null && g.complete && g.naturalHeight !== 0 && g.naturalWidth !== 0;
|
|
@@ -871,7 +871,7 @@ function Xn(e) {
|
|
|
871
871
|
}, ref: v })), Br.createElement(Br.Fragment, null, Br.createElement("canvas", Da({ style: x, height: n, width: n, ref: _ }, h)), M);
|
|
872
872
|
}
|
|
873
873
|
const bi = "userInfo", yi = "YYYY-MM-DD HH:mm:ss", E3 = () => {
|
|
874
|
-
const [e, t] =
|
|
874
|
+
const [e, t] = qe(!1), [r, n] = qe(void 0), [i, s] = qe(void 0);
|
|
875
875
|
return Ze(() => {
|
|
876
876
|
if (typeof window < "u") {
|
|
877
877
|
t(!0);
|
|
@@ -901,7 +901,7 @@ function Qt() {
|
|
|
901
901
|
return Za || (Za = 1, Fa.exports = function() {
|
|
902
902
|
var e = e || function(t, r) {
|
|
903
903
|
var n;
|
|
904
|
-
if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n &&
|
|
904
|
+
if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && qr !== void 0 && qr.crypto && (n = qr.crypto), !n) try {
|
|
905
905
|
n = Is;
|
|
906
906
|
} catch {
|
|
907
907
|
}
|
|
@@ -1296,17 +1296,17 @@ function hc() {
|
|
|
1296
1296
|
var h = a.SHA512 = r.extend({ _doReset: function() {
|
|
1297
1297
|
this._hash = new s.init([new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209)]);
|
|
1298
1298
|
}, _doProcessBlock: function(l, _) {
|
|
1299
|
-
for (var v = this._hash.words, A = v[0], I = v[1], x = v[2], M = v[3], k = v[4], O = v[5], E = v[6], R = v[7], L = A.high, z = A.low, f = I.high, p = I.low, g = x.high, m = x.low, u = M.high, y = M.low, w = k.high, P = k.low, N = O.high, j = O.low, Z = E.high, $ = E.low, V = R.high, H = R.low, D = L, G = z, Et = f, ot = p, mt = g,
|
|
1299
|
+
for (var v = this._hash.words, A = v[0], I = v[1], x = v[2], M = v[3], k = v[4], O = v[5], E = v[6], R = v[7], L = A.high, z = A.low, f = I.high, p = I.low, g = x.high, m = x.low, u = M.high, y = M.low, w = k.high, P = k.low, N = O.high, j = O.low, Z = E.high, $ = E.low, V = R.high, H = R.low, D = L, G = z, Et = f, ot = p, mt = g, qt = m, lt = u, kt = y, Ft = w, Lt = P, se = N, Ke = j, Wt = Z, te = $, Or = V, oe = H, Zt = 0; Zt < 80; Zt++) {
|
|
1300
1300
|
var De, ne, ae = d[Zt];
|
|
1301
1301
|
if (Zt < 16) ne = ae.high = 0 | l[_ + 2 * Zt], De = ae.low = 0 | l[_ + 2 * Zt + 1];
|
|
1302
1302
|
else {
|
|
1303
1303
|
var Cr = d[Zt - 15], ie = Cr.high, ce = Cr.low, Zr = (ie >>> 1 | ce << 31) ^ (ie >>> 8 | ce << 24) ^ ie >>> 7, de = (ce >>> 1 | ie << 31) ^ (ce >>> 8 | ie << 24) ^ (ce >>> 7 | ie << 25), ee = d[Zt - 2], Be = ee.high, re = ee.low, le = (Be >>> 19 | re << 13) ^ (Be << 3 | re >>> 29) ^ Be >>> 6, Ae = (re >>> 19 | Be << 13) ^ (re << 3 | Be >>> 29) ^ (re >>> 6 | Be << 26), he = d[Zt - 7], T = he.high, C = he.low, B = d[Zt - 16], b = B.high, S = B.low;
|
|
1304
1304
|
ne = (ne = (ne = Zr + T + ((De = de + C) >>> 0 < de >>> 0 ? 1 : 0)) + le + ((De += Ae) >>> 0 < Ae >>> 0 ? 1 : 0)) + b + ((De += S) >>> 0 < S >>> 0 ? 1 : 0), ae.high = ne, ae.low = De;
|
|
1305
1305
|
}
|
|
1306
|
-
var
|
|
1307
|
-
Or = Wt, oe = te, Wt = se, te = Ke, se = Ft, Ke = Lt, Ft = lt + (at = (at = (at = at + F + ((
|
|
1306
|
+
var q, F = Ft & se ^ ~Ft & Wt, W = Lt & Ke ^ ~Lt & te, U = D & Et ^ D & mt ^ Et & mt, Y = G & ot ^ G & qt ^ ot & qt, gt = (D >>> 28 | G << 4) ^ (D << 30 | G >>> 2) ^ (D << 25 | G >>> 7), X = (G >>> 28 | D << 4) ^ (G << 30 | D >>> 2) ^ (G << 25 | D >>> 7), dt = (Ft >>> 14 | Lt << 18) ^ (Ft >>> 18 | Lt << 14) ^ (Ft << 23 | Lt >>> 9), _t = (Lt >>> 14 | Ft << 18) ^ (Lt >>> 18 | Ft << 14) ^ (Lt << 23 | Ft >>> 9), nt = c[Zt], ht = nt.high, xt = nt.low, at = Or + dt + ((q = oe + _t) >>> 0 < oe >>> 0 ? 1 : 0), ut = X + Y;
|
|
1307
|
+
Or = Wt, oe = te, Wt = se, te = Ke, se = Ft, Ke = Lt, Ft = lt + (at = (at = (at = at + F + ((q += W) >>> 0 < W >>> 0 ? 1 : 0)) + ht + ((q += xt) >>> 0 < xt >>> 0 ? 1 : 0)) + ne + ((q += De) >>> 0 < De >>> 0 ? 1 : 0)) + ((Lt = kt + q | 0) >>> 0 < kt >>> 0 ? 1 : 0) | 0, lt = mt, kt = qt, mt = Et, qt = ot, Et = D, ot = G, D = at + (gt + U + (ut >>> 0 < X >>> 0 ? 1 : 0)) + ((G = q + ut | 0) >>> 0 < q >>> 0 ? 1 : 0) | 0;
|
|
1308
1308
|
}
|
|
1309
|
-
z = A.low = z + G, A.high = L + D + (z >>> 0 < G >>> 0 ? 1 : 0), p = I.low = p + ot, I.high = f + Et + (p >>> 0 < ot >>> 0 ? 1 : 0), m = x.low = m +
|
|
1309
|
+
z = A.low = z + G, A.high = L + D + (z >>> 0 < G >>> 0 ? 1 : 0), p = I.low = p + ot, I.high = f + Et + (p >>> 0 < ot >>> 0 ? 1 : 0), m = x.low = m + qt, x.high = g + mt + (m >>> 0 < qt >>> 0 ? 1 : 0), y = M.low = y + kt, M.high = u + lt + (y >>> 0 < kt >>> 0 ? 1 : 0), P = k.low = P + Lt, k.high = w + Ft + (P >>> 0 < Lt >>> 0 ? 1 : 0), j = O.low = j + Ke, O.high = N + se + (j >>> 0 < Ke >>> 0 ? 1 : 0), $ = E.low = $ + te, E.high = Z + Wt + ($ >>> 0 < te >>> 0 ? 1 : 0), H = R.low = H + oe, R.high = V + Or + (H >>> 0 < oe >>> 0 ? 1 : 0);
|
|
1310
1310
|
}, _doFinalize: function() {
|
|
1311
1311
|
var l = this._data, _ = l.words, v = 8 * this._nDataBytes, A = 8 * l.sigBytes;
|
|
1312
1312
|
return _[A >>> 5] |= 128 << 24 - A % 32, _[30 + (A + 128 >>> 10 << 5)] = Math.floor(v / 4294967296), _[31 + (A + 128 >>> 10 << 5)] = v, l.sigBytes = 4 * _.length, this._process(), this._hash.toX32();
|
|
@@ -1623,9 +1623,9 @@ function jf() {
|
|
|
1623
1623
|
var t, r;
|
|
1624
1624
|
}(Qt(), Te())), Rc.exports;
|
|
1625
1625
|
}
|
|
1626
|
-
var Nc, zf = { exports: {} }, Oc, $f = { exports: {} }, Cc,
|
|
1626
|
+
var Nc, zf = { exports: {} }, Oc, $f = { exports: {} }, Cc, Uf = { exports: {} }, Bc, qf = { exports: {} }, Pc, Hf = { exports: {} }, Lc, Df = { exports: {} }, jc, Ff = { exports: {} }, zc, Zf = { exports: {} }, $c, Uc = { exports: {} };
|
|
1627
1627
|
function Vf() {
|
|
1628
|
-
return $c || ($c = 1,
|
|
1628
|
+
return $c || ($c = 1, Uc.exports = function(e) {
|
|
1629
1629
|
return function() {
|
|
1630
1630
|
var t = e, r = t.lib, n = r.WordArray, i = r.BlockCipher, s = t.algo, a = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4], o = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32], c = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], d = [{ 0: 8421888, 268435456: 32768, 536870912: 8421378, 805306368: 2, 1073741824: 512, 1342177280: 8421890, 1610612736: 8389122, 1879048192: 8388608, 2147483648: 514, 2415919104: 8389120, 2684354560: 33280, 2952790016: 8421376, 3221225472: 32770, 3489660928: 8388610, 3758096384: 0, 4026531840: 33282, 134217728: 0, 402653184: 8421890, 671088640: 33282, 939524096: 32768, 1207959552: 8421888, 1476395008: 512, 1744830464: 8421378, 2013265920: 2, 2281701376: 8389120, 2550136832: 33280, 2818572288: 8421376, 3087007744: 8389122, 3355443200: 8388610, 3623878656: 32770, 3892314112: 514, 4160749568: 8388608, 1: 32768, 268435457: 2, 536870913: 8421888, 805306369: 8388608, 1073741825: 8421378, 1342177281: 33280, 1610612737: 512, 1879048193: 8389122, 2147483649: 8421890, 2415919105: 8421376, 2684354561: 8388610, 2952790017: 33282, 3221225473: 514, 3489660929: 8389120, 3758096385: 32770, 4026531841: 0, 134217729: 8421890, 402653185: 8421376, 671088641: 8388608, 939524097: 512, 1207959553: 32768, 1476395009: 8388610, 1744830465: 2, 2013265921: 33282, 2281701377: 32770, 2550136833: 8389122, 2818572289: 514, 3087007745: 8421888, 3355443201: 8389120, 3623878657: 0, 3892314113: 33280, 4160749569: 8421378 }, { 0: 1074282512, 16777216: 16384, 33554432: 524288, 50331648: 1074266128, 67108864: 1073741840, 83886080: 1074282496, 100663296: 1073758208, 117440512: 16, 134217728: 540672, 150994944: 1073758224, 167772160: 1073741824, 184549376: 540688, 201326592: 524304, 218103808: 0, 234881024: 16400, 251658240: 1074266112, 8388608: 1073758208, 25165824: 540688, 41943040: 16, 58720256: 1073758224, 75497472: 1074282512, 92274688: 1073741824, 109051904: 524288, 125829120: 1074266128, 142606336: 524304, 159383552: 0, 176160768: 16384, 192937984: 1074266112, 209715200: 1073741840, 226492416: 540672, 243269632: 1074282496, 260046848: 16400, 268435456: 0, 285212672: 1074266128, 301989888: 1073758224, 318767104: 1074282496, 335544320: 1074266112, 352321536: 16, 369098752: 540688, 385875968: 16384, 402653184: 16400, 419430400: 524288, 436207616: 524304, 452984832: 1073741840, 469762048: 540672, 486539264: 1073758208, 503316480: 1073741824, 520093696: 1074282512, 276824064: 540688, 293601280: 524288, 310378496: 1074266112, 327155712: 16384, 343932928: 1073758208, 360710144: 1074282512, 377487360: 16, 394264576: 1073741824, 411041792: 1074282496, 427819008: 1073741840, 444596224: 1073758224, 461373440: 524304, 478150656: 0, 494927872: 16400, 511705088: 1074266128, 528482304: 540672 }, { 0: 260, 1048576: 0, 2097152: 67109120, 3145728: 65796, 4194304: 65540, 5242880: 67108868, 6291456: 67174660, 7340032: 67174400, 8388608: 67108864, 9437184: 67174656, 10485760: 65792, 11534336: 67174404, 12582912: 67109124, 13631488: 65536, 14680064: 4, 15728640: 256, 524288: 67174656, 1572864: 67174404, 2621440: 0, 3670016: 67109120, 4718592: 67108868, 5767168: 65536, 6815744: 65540, 7864320: 260, 8912896: 4, 9961472: 256, 11010048: 67174400, 12058624: 65796, 13107200: 65792, 14155776: 67109124, 15204352: 67174660, 16252928: 67108864, 16777216: 67174656, 17825792: 65540, 18874368: 65536, 19922944: 67109120, 20971520: 256, 22020096: 67174660, 23068672: 67108868, 24117248: 0, 25165824: 67109124, 26214400: 67108864, 27262976: 4, 28311552: 65792, 29360128: 67174400, 30408704: 260, 31457280: 65796, 32505856: 67174404, 17301504: 67108864, 18350080: 260, 19398656: 67174656, 20447232: 0, 21495808: 65540, 22544384: 67109120, 23592960: 256, 24641536: 67174404, 25690112: 65536, 26738688: 67174660, 27787264: 65796, 28835840: 67108868, 29884416: 67109124, 30932992: 67174400, 31981568: 4, 33030144: 65792 }, { 0: 2151682048, 65536: 2147487808, 131072: 4198464, 196608: 2151677952, 262144: 0, 327680: 4198400, 393216: 2147483712, 458752: 4194368, 524288: 2147483648, 589824: 4194304, 655360: 64, 720896: 2147487744, 786432: 2151678016, 851968: 4160, 917504: 4096, 983040: 2151682112, 32768: 2147487808, 98304: 64, 163840: 2151678016, 229376: 2147487744, 294912: 4198400, 360448: 2151682112, 425984: 0, 491520: 2151677952, 557056: 4096, 622592: 2151682048, 688128: 4194304, 753664: 4160, 819200: 2147483648, 884736: 4194368, 950272: 4198464, 1015808: 2147483712, 1048576: 4194368, 1114112: 4198400, 1179648: 2147483712, 1245184: 0, 1310720: 4160, 1376256: 2151678016, 1441792: 2151682048, 1507328: 2147487808, 1572864: 2151682112, 1638400: 2147483648, 1703936: 2151677952, 1769472: 4198464, 1835008: 2147487744, 1900544: 4194304, 1966080: 64, 2031616: 4096, 1081344: 2151677952, 1146880: 2151682112, 1212416: 0, 1277952: 4198400, 1343488: 4194368, 1409024: 2147483648, 1474560: 2147487808, 1540096: 64, 1605632: 2147483712, 1671168: 4096, 1736704: 2147487744, 1802240: 2151678016, 1867776: 4160, 1933312: 2151682048, 1998848: 4194304, 2064384: 4198464 }, { 0: 128, 4096: 17039360, 8192: 262144, 12288: 536870912, 16384: 537133184, 20480: 16777344, 24576: 553648256, 28672: 262272, 32768: 16777216, 36864: 537133056, 40960: 536871040, 45056: 553910400, 49152: 553910272, 53248: 0, 57344: 17039488, 61440: 553648128, 2048: 17039488, 6144: 553648256, 10240: 128, 14336: 17039360, 18432: 262144, 22528: 537133184, 26624: 553910272, 30720: 536870912, 34816: 537133056, 38912: 0, 43008: 553910400, 47104: 16777344, 51200: 536871040, 55296: 553648128, 59392: 16777216, 63488: 262272, 65536: 262144, 69632: 128, 73728: 536870912, 77824: 553648256, 81920: 16777344, 86016: 553910272, 90112: 537133184, 94208: 16777216, 98304: 553910400, 102400: 553648128, 106496: 17039360, 110592: 537133056, 114688: 262272, 118784: 536871040, 122880: 0, 126976: 17039488, 67584: 553648256, 71680: 16777216, 75776: 17039360, 79872: 537133184, 83968: 536870912, 88064: 17039488, 92160: 128, 96256: 553910272, 100352: 262272, 104448: 553910400, 108544: 0, 112640: 553648128, 116736: 16777344, 120832: 262144, 124928: 537133056, 129024: 536871040 }, { 0: 268435464, 256: 8192, 512: 270532608, 768: 270540808, 1024: 268443648, 1280: 2097152, 1536: 2097160, 1792: 268435456, 2048: 0, 2304: 268443656, 2560: 2105344, 2816: 8, 3072: 270532616, 3328: 2105352, 3584: 8200, 3840: 270540800, 128: 270532608, 384: 270540808, 640: 8, 896: 2097152, 1152: 2105352, 1408: 268435464, 1664: 268443648, 1920: 8200, 2176: 2097160, 2432: 8192, 2688: 268443656, 2944: 270532616, 3200: 0, 3456: 270540800, 3712: 2105344, 3968: 268435456, 4096: 268443648, 4352: 270532616, 4608: 270540808, 4864: 8200, 5120: 2097152, 5376: 268435456, 5632: 268435464, 5888: 2105344, 6144: 2105352, 6400: 0, 6656: 8, 6912: 270532608, 7168: 8192, 7424: 268443656, 7680: 270540800, 7936: 2097160, 4224: 8, 4480: 2105344, 4736: 2097152, 4992: 268435464, 5248: 268443648, 5504: 8200, 5760: 270540808, 6016: 270532608, 6272: 270540800, 6528: 270532616, 6784: 8192, 7040: 2105352, 7296: 2097160, 7552: 0, 7808: 268435456, 8064: 268443656 }, { 0: 1048576, 16: 33555457, 32: 1024, 48: 1049601, 64: 34604033, 80: 0, 96: 1, 112: 34603009, 128: 33555456, 144: 1048577, 160: 33554433, 176: 34604032, 192: 34603008, 208: 1025, 224: 1049600, 240: 33554432, 8: 34603009, 24: 0, 40: 33555457, 56: 34604032, 72: 1048576, 88: 33554433, 104: 33554432, 120: 1025, 136: 1049601, 152: 33555456, 168: 34603008, 184: 1048577, 200: 1024, 216: 34604033, 232: 1, 248: 1049600, 256: 33554432, 272: 1048576, 288: 33555457, 304: 34603009, 320: 1048577, 336: 33555456, 352: 34604032, 368: 1049601, 384: 1025, 400: 34604033, 416: 1049600, 432: 1, 448: 0, 464: 34603008, 480: 33554433, 496: 1024, 264: 1049600, 280: 33555457, 296: 34603009, 312: 1, 328: 33554432, 344: 1048576, 360: 1025, 376: 34604032, 392: 33554433, 408: 34603008, 424: 0, 440: 34604033, 456: 1049601, 472: 1024, 488: 33555456, 504: 1048577 }, { 0: 134219808, 1: 131072, 2: 134217728, 3: 32, 4: 131104, 5: 134350880, 6: 134350848, 7: 2048, 8: 134348800, 9: 134219776, 10: 133120, 11: 134348832, 12: 2080, 13: 0, 14: 134217760, 15: 133152, 2147483648: 2048, 2147483649: 134350880, 2147483650: 134219808, 2147483651: 134217728, 2147483652: 134348800, 2147483653: 133120, 2147483654: 133152, 2147483655: 32, 2147483656: 134217760, 2147483657: 2080, 2147483658: 131104, 2147483659: 134350848, 2147483660: 0, 2147483661: 134348832, 2147483662: 134219776, 2147483663: 131072, 16: 133152, 17: 134350848, 18: 32, 19: 2048, 20: 134219776, 21: 134217760, 22: 134348832, 23: 131072, 24: 0, 25: 131104, 26: 134348800, 27: 134219808, 28: 134350880, 29: 133120, 30: 2080, 31: 134217728, 2147483664: 131072, 2147483665: 2048, 2147483666: 134348832, 2147483667: 133152, 2147483668: 32, 2147483669: 134348800, 2147483670: 134217728, 2147483671: 134219808, 2147483672: 134350880, 2147483673: 134217760, 2147483674: 134219776, 2147483675: 0, 2147483676: 133120, 2147483677: 2080, 2147483678: 131104, 2147483679: 134350848 }], h = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679], l = s.DES = i.extend({ _doReset: function() {
|
|
1631
1631
|
for (var I = this._key.words, x = [], M = 0; M < 56; M++) {
|
|
@@ -1674,9 +1674,9 @@ function Vf() {
|
|
|
1674
1674
|
}, keySize: 6, ivSize: 2, blockSize: 2 });
|
|
1675
1675
|
t.TripleDES = i._createHelper(A);
|
|
1676
1676
|
}(), e.TripleDES;
|
|
1677
|
-
}(Qt(), un(), ln(), Jr(), Te())),
|
|
1677
|
+
}(Qt(), un(), ln(), Jr(), Te())), Uc.exports;
|
|
1678
1678
|
}
|
|
1679
|
-
var
|
|
1679
|
+
var qc, Kf = { exports: {} }, Hc, Wf = { exports: {} }, Dc, Yf = { exports: {} }, Fc, Zc = { exports: {} };
|
|
1680
1680
|
function Qf() {
|
|
1681
1681
|
return Fc || (Fc = 1, Zc.exports = function(e) {
|
|
1682
1682
|
return function() {
|
|
@@ -1836,7 +1836,7 @@ Hd.exports = /* @__PURE__ */ function(e) {
|
|
|
1836
1836
|
var r = 255 & t.words[t.sigBytes - 1 >>> 2];
|
|
1837
1837
|
t.sigBytes -= r;
|
|
1838
1838
|
} }, e.pad.Ansix923;
|
|
1839
|
-
}(Qt(), Te())), Cc || (Cc = 1,
|
|
1839
|
+
}(Qt(), Te())), Cc || (Cc = 1, Uf.exports = function(e) {
|
|
1840
1840
|
return e.pad.Iso10126 = { pad: function(t, r) {
|
|
1841
1841
|
var n = 4 * r, i = n - t.sigBytes % n;
|
|
1842
1842
|
t.concat(e.lib.WordArray.random(i - 1)).concat(e.lib.WordArray.create([i << 24], 1));
|
|
@@ -1844,7 +1844,7 @@ Hd.exports = /* @__PURE__ */ function(e) {
|
|
|
1844
1844
|
var r = 255 & t.words[t.sigBytes - 1 >>> 2];
|
|
1845
1845
|
t.sigBytes -= r;
|
|
1846
1846
|
} }, e.pad.Iso10126;
|
|
1847
|
-
}(Qt(), Te())), Bc || (Bc = 1,
|
|
1847
|
+
}(Qt(), Te())), Bc || (Bc = 1, qf.exports = function(e) {
|
|
1848
1848
|
return e.pad.Iso97971 = { pad: function(t, r) {
|
|
1849
1849
|
t.concat(e.lib.WordArray.create([2147483648], 1)), e.pad.ZeroPadding.pad(t, r);
|
|
1850
1850
|
}, unpad: function(t) {
|
|
@@ -1909,7 +1909,7 @@ Hd.exports = /* @__PURE__ */ function(e) {
|
|
|
1909
1909
|
}, keySize: 8 });
|
|
1910
1910
|
t.AES = r._createHelper(I);
|
|
1911
1911
|
}(), e.AES;
|
|
1912
|
-
}(Qt(), un(), ln(), Jr(), Te())), Vf(),
|
|
1912
|
+
}(Qt(), un(), ln(), Jr(), Te())), Vf(), qc || (qc = 1, Kf.exports = function(e) {
|
|
1913
1913
|
return function() {
|
|
1914
1914
|
var t = e, r = t.lib.StreamCipher, n = t.algo, i = n.RC4 = r.extend({ _doReset: function() {
|
|
1915
1915
|
for (var o = this._key, c = o.words, d = o.sigBytes, h = this._S = [], l = 0; l < 256; l++) h[l] = l;
|
|
@@ -2256,7 +2256,7 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2256
2256
|
return this.clone().isub(f);
|
|
2257
2257
|
};
|
|
2258
2258
|
var v = function(f, p, g) {
|
|
2259
|
-
var m, u, y, w = f.words, P = p.words, N = g.words, j = 0, Z = 0 | w[0], $ = 8191 & Z, V = Z >>> 13, H = 0 | w[1], D = 8191 & H, G = H >>> 13, Et = 0 | w[2], ot = 8191 & Et, mt = Et >>> 13,
|
|
2259
|
+
var m, u, y, w = f.words, P = p.words, N = g.words, j = 0, Z = 0 | w[0], $ = 8191 & Z, V = Z >>> 13, H = 0 | w[1], D = 8191 & H, G = H >>> 13, Et = 0 | w[2], ot = 8191 & Et, mt = Et >>> 13, qt = 0 | w[3], lt = 8191 & qt, kt = qt >>> 13, Ft = 0 | w[4], Lt = 8191 & Ft, se = Ft >>> 13, Ke = 0 | w[5], Wt = 8191 & Ke, te = Ke >>> 13, Or = 0 | w[6], oe = 8191 & Or, Zt = Or >>> 13, De = 0 | w[7], ne = 8191 & De, ae = De >>> 13, Cr = 0 | w[8], ie = 8191 & Cr, ce = Cr >>> 13, Zr = 0 | w[9], de = 8191 & Zr, ee = Zr >>> 13, Be = 0 | P[0], re = 8191 & Be, le = Be >>> 13, Ae = 0 | P[1], he = 8191 & Ae, T = Ae >>> 13, C = 0 | P[2], B = 8191 & C, b = C >>> 13, S = 0 | P[3], q = 8191 & S, F = S >>> 13, W = 0 | P[4], U = 8191 & W, Y = W >>> 13, gt = 0 | P[5], X = 8191 & gt, dt = gt >>> 13, _t = 0 | P[6], nt = 8191 & _t, ht = _t >>> 13, xt = 0 | P[7], at = 8191 & xt, ut = xt >>> 13, At = 0 | P[8], it = 8191 & At, pt = At >>> 13, Bt = 0 | P[9], ct = 8191 & Bt, K = Bt >>> 13;
|
|
2260
2260
|
g.negative = f.negative ^ p.negative, g.length = 19;
|
|
2261
2261
|
var Q = (j + (m = Math.imul($, re)) | 0) + ((8191 & (u = (u = Math.imul($, le)) + Math.imul(V, re) | 0)) << 13) | 0;
|
|
2262
2262
|
j = ((y = Math.imul(V, le)) + (u >>> 13) | 0) + (Q >>> 26) | 0, Q &= 67108863, m = Math.imul(D, re), u = (u = Math.imul(D, le)) + Math.imul(G, re) | 0, y = Math.imul(G, le);
|
|
@@ -2264,26 +2264,26 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2264
2264
|
j = ((y = y + Math.imul(V, T) | 0) + (u >>> 13) | 0) + (st >>> 26) | 0, st &= 67108863, m = Math.imul(ot, re), u = (u = Math.imul(ot, le)) + Math.imul(mt, re) | 0, y = Math.imul(mt, le), m = m + Math.imul(D, he) | 0, u = (u = u + Math.imul(D, T) | 0) + Math.imul(G, he) | 0, y = y + Math.imul(G, T) | 0;
|
|
2265
2265
|
var tt = (j + (m = m + Math.imul($, B) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, b) | 0) + Math.imul(V, B) | 0)) << 13) | 0;
|
|
2266
2266
|
j = ((y = y + Math.imul(V, b) | 0) + (u >>> 13) | 0) + (tt >>> 26) | 0, tt &= 67108863, m = Math.imul(lt, re), u = (u = Math.imul(lt, le)) + Math.imul(kt, re) | 0, y = Math.imul(kt, le), m = m + Math.imul(ot, he) | 0, u = (u = u + Math.imul(ot, T) | 0) + Math.imul(mt, he) | 0, y = y + Math.imul(mt, T) | 0, m = m + Math.imul(D, B) | 0, u = (u = u + Math.imul(D, b) | 0) + Math.imul(G, B) | 0, y = y + Math.imul(G, b) | 0;
|
|
2267
|
-
var et = (j + (m = m + Math.imul($,
|
|
2268
|
-
j = ((y = y + Math.imul(V, F) | 0) + (u >>> 13) | 0) + (et >>> 26) | 0, et &= 67108863, m = Math.imul(Lt, re), u = (u = Math.imul(Lt, le)) + Math.imul(se, re) | 0, y = Math.imul(se, le), m = m + Math.imul(lt, he) | 0, u = (u = u + Math.imul(lt, T) | 0) + Math.imul(kt, he) | 0, y = y + Math.imul(kt, T) | 0, m = m + Math.imul(ot, B) | 0, u = (u = u + Math.imul(ot, b) | 0) + Math.imul(mt, B) | 0, y = y + Math.imul(mt, b) | 0, m = m + Math.imul(D,
|
|
2269
|
-
var rt = (j + (m = m + Math.imul($,
|
|
2270
|
-
j = ((y = y + Math.imul(V, Y) | 0) + (u >>> 13) | 0) + (rt >>> 26) | 0, rt &= 67108863, m = Math.imul(Wt, re), u = (u = Math.imul(Wt, le)) + Math.imul(te, re) | 0, y = Math.imul(te, le), m = m + Math.imul(Lt, he) | 0, u = (u = u + Math.imul(Lt, T) | 0) + Math.imul(se, he) | 0, y = y + Math.imul(se, T) | 0, m = m + Math.imul(lt, B) | 0, u = (u = u + Math.imul(lt, b) | 0) + Math.imul(kt, B) | 0, y = y + Math.imul(kt, b) | 0, m = m + Math.imul(ot,
|
|
2267
|
+
var et = (j + (m = m + Math.imul($, q) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, F) | 0) + Math.imul(V, q) | 0)) << 13) | 0;
|
|
2268
|
+
j = ((y = y + Math.imul(V, F) | 0) + (u >>> 13) | 0) + (et >>> 26) | 0, et &= 67108863, m = Math.imul(Lt, re), u = (u = Math.imul(Lt, le)) + Math.imul(se, re) | 0, y = Math.imul(se, le), m = m + Math.imul(lt, he) | 0, u = (u = u + Math.imul(lt, T) | 0) + Math.imul(kt, he) | 0, y = y + Math.imul(kt, T) | 0, m = m + Math.imul(ot, B) | 0, u = (u = u + Math.imul(ot, b) | 0) + Math.imul(mt, B) | 0, y = y + Math.imul(mt, b) | 0, m = m + Math.imul(D, q) | 0, u = (u = u + Math.imul(D, F) | 0) + Math.imul(G, q) | 0, y = y + Math.imul(G, F) | 0;
|
|
2269
|
+
var rt = (j + (m = m + Math.imul($, U) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, Y) | 0) + Math.imul(V, U) | 0)) << 13) | 0;
|
|
2270
|
+
j = ((y = y + Math.imul(V, Y) | 0) + (u >>> 13) | 0) + (rt >>> 26) | 0, rt &= 67108863, m = Math.imul(Wt, re), u = (u = Math.imul(Wt, le)) + Math.imul(te, re) | 0, y = Math.imul(te, le), m = m + Math.imul(Lt, he) | 0, u = (u = u + Math.imul(Lt, T) | 0) + Math.imul(se, he) | 0, y = y + Math.imul(se, T) | 0, m = m + Math.imul(lt, B) | 0, u = (u = u + Math.imul(lt, b) | 0) + Math.imul(kt, B) | 0, y = y + Math.imul(kt, b) | 0, m = m + Math.imul(ot, q) | 0, u = (u = u + Math.imul(ot, F) | 0) + Math.imul(mt, q) | 0, y = y + Math.imul(mt, F) | 0, m = m + Math.imul(D, U) | 0, u = (u = u + Math.imul(D, Y) | 0) + Math.imul(G, U) | 0, y = y + Math.imul(G, Y) | 0;
|
|
2271
2271
|
var Ct = (j + (m = m + Math.imul($, X) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, dt) | 0) + Math.imul(V, X) | 0)) << 13) | 0;
|
|
2272
|
-
j = ((y = y + Math.imul(V, dt) | 0) + (u >>> 13) | 0) + (Ct >>> 26) | 0, Ct &= 67108863, m = Math.imul(oe, re), u = (u = Math.imul(oe, le)) + Math.imul(Zt, re) | 0, y = Math.imul(Zt, le), m = m + Math.imul(Wt, he) | 0, u = (u = u + Math.imul(Wt, T) | 0) + Math.imul(te, he) | 0, y = y + Math.imul(te, T) | 0, m = m + Math.imul(Lt, B) | 0, u = (u = u + Math.imul(Lt, b) | 0) + Math.imul(se, B) | 0, y = y + Math.imul(se, b) | 0, m = m + Math.imul(lt,
|
|
2272
|
+
j = ((y = y + Math.imul(V, dt) | 0) + (u >>> 13) | 0) + (Ct >>> 26) | 0, Ct &= 67108863, m = Math.imul(oe, re), u = (u = Math.imul(oe, le)) + Math.imul(Zt, re) | 0, y = Math.imul(Zt, le), m = m + Math.imul(Wt, he) | 0, u = (u = u + Math.imul(Wt, T) | 0) + Math.imul(te, he) | 0, y = y + Math.imul(te, T) | 0, m = m + Math.imul(Lt, B) | 0, u = (u = u + Math.imul(Lt, b) | 0) + Math.imul(se, B) | 0, y = y + Math.imul(se, b) | 0, m = m + Math.imul(lt, q) | 0, u = (u = u + Math.imul(lt, F) | 0) + Math.imul(kt, q) | 0, y = y + Math.imul(kt, F) | 0, m = m + Math.imul(ot, U) | 0, u = (u = u + Math.imul(ot, Y) | 0) + Math.imul(mt, U) | 0, y = y + Math.imul(mt, Y) | 0, m = m + Math.imul(D, X) | 0, u = (u = u + Math.imul(D, dt) | 0) + Math.imul(G, X) | 0, y = y + Math.imul(G, dt) | 0;
|
|
2273
2273
|
var jt = (j + (m = m + Math.imul($, nt) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, ht) | 0) + Math.imul(V, nt) | 0)) << 13) | 0;
|
|
2274
|
-
j = ((y = y + Math.imul(V, ht) | 0) + (u >>> 13) | 0) + (jt >>> 26) | 0, jt &= 67108863, m = Math.imul(ne, re), u = (u = Math.imul(ne, le)) + Math.imul(ae, re) | 0, y = Math.imul(ae, le), m = m + Math.imul(oe, he) | 0, u = (u = u + Math.imul(oe, T) | 0) + Math.imul(Zt, he) | 0, y = y + Math.imul(Zt, T) | 0, m = m + Math.imul(Wt, B) | 0, u = (u = u + Math.imul(Wt, b) | 0) + Math.imul(te, B) | 0, y = y + Math.imul(te, b) | 0, m = m + Math.imul(Lt,
|
|
2274
|
+
j = ((y = y + Math.imul(V, ht) | 0) + (u >>> 13) | 0) + (jt >>> 26) | 0, jt &= 67108863, m = Math.imul(ne, re), u = (u = Math.imul(ne, le)) + Math.imul(ae, re) | 0, y = Math.imul(ae, le), m = m + Math.imul(oe, he) | 0, u = (u = u + Math.imul(oe, T) | 0) + Math.imul(Zt, he) | 0, y = y + Math.imul(Zt, T) | 0, m = m + Math.imul(Wt, B) | 0, u = (u = u + Math.imul(Wt, b) | 0) + Math.imul(te, B) | 0, y = y + Math.imul(te, b) | 0, m = m + Math.imul(Lt, q) | 0, u = (u = u + Math.imul(Lt, F) | 0) + Math.imul(se, q) | 0, y = y + Math.imul(se, F) | 0, m = m + Math.imul(lt, U) | 0, u = (u = u + Math.imul(lt, Y) | 0) + Math.imul(kt, U) | 0, y = y + Math.imul(kt, Y) | 0, m = m + Math.imul(ot, X) | 0, u = (u = u + Math.imul(ot, dt) | 0) + Math.imul(mt, X) | 0, y = y + Math.imul(mt, dt) | 0, m = m + Math.imul(D, nt) | 0, u = (u = u + Math.imul(D, ht) | 0) + Math.imul(G, nt) | 0, y = y + Math.imul(G, ht) | 0;
|
|
2275
2275
|
var Ot = (j + (m = m + Math.imul($, at) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, ut) | 0) + Math.imul(V, at) | 0)) << 13) | 0;
|
|
2276
|
-
j = ((y = y + Math.imul(V, ut) | 0) + (u >>> 13) | 0) + (Ot >>> 26) | 0, Ot &= 67108863, m = Math.imul(ie, re), u = (u = Math.imul(ie, le)) + Math.imul(ce, re) | 0, y = Math.imul(ce, le), m = m + Math.imul(ne, he) | 0, u = (u = u + Math.imul(ne, T) | 0) + Math.imul(ae, he) | 0, y = y + Math.imul(ae, T) | 0, m = m + Math.imul(oe, B) | 0, u = (u = u + Math.imul(oe, b) | 0) + Math.imul(Zt, B) | 0, y = y + Math.imul(Zt, b) | 0, m = m + Math.imul(Wt,
|
|
2276
|
+
j = ((y = y + Math.imul(V, ut) | 0) + (u >>> 13) | 0) + (Ot >>> 26) | 0, Ot &= 67108863, m = Math.imul(ie, re), u = (u = Math.imul(ie, le)) + Math.imul(ce, re) | 0, y = Math.imul(ce, le), m = m + Math.imul(ne, he) | 0, u = (u = u + Math.imul(ne, T) | 0) + Math.imul(ae, he) | 0, y = y + Math.imul(ae, T) | 0, m = m + Math.imul(oe, B) | 0, u = (u = u + Math.imul(oe, b) | 0) + Math.imul(Zt, B) | 0, y = y + Math.imul(Zt, b) | 0, m = m + Math.imul(Wt, q) | 0, u = (u = u + Math.imul(Wt, F) | 0) + Math.imul(te, q) | 0, y = y + Math.imul(te, F) | 0, m = m + Math.imul(Lt, U) | 0, u = (u = u + Math.imul(Lt, Y) | 0) + Math.imul(se, U) | 0, y = y + Math.imul(se, Y) | 0, m = m + Math.imul(lt, X) | 0, u = (u = u + Math.imul(lt, dt) | 0) + Math.imul(kt, X) | 0, y = y + Math.imul(kt, dt) | 0, m = m + Math.imul(ot, nt) | 0, u = (u = u + Math.imul(ot, ht) | 0) + Math.imul(mt, nt) | 0, y = y + Math.imul(mt, ht) | 0, m = m + Math.imul(D, at) | 0, u = (u = u + Math.imul(D, ut) | 0) + Math.imul(G, at) | 0, y = y + Math.imul(G, ut) | 0;
|
|
2277
2277
|
var Vt = (j + (m = m + Math.imul($, it) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, pt) | 0) + Math.imul(V, it) | 0)) << 13) | 0;
|
|
2278
|
-
j = ((y = y + Math.imul(V, pt) | 0) + (u >>> 13) | 0) + (Vt >>> 26) | 0, Vt &= 67108863, m = Math.imul(de, re), u = (u = Math.imul(de, le)) + Math.imul(ee, re) | 0, y = Math.imul(ee, le), m = m + Math.imul(ie, he) | 0, u = (u = u + Math.imul(ie, T) | 0) + Math.imul(ce, he) | 0, y = y + Math.imul(ce, T) | 0, m = m + Math.imul(ne, B) | 0, u = (u = u + Math.imul(ne, b) | 0) + Math.imul(ae, B) | 0, y = y + Math.imul(ae, b) | 0, m = m + Math.imul(oe,
|
|
2278
|
+
j = ((y = y + Math.imul(V, pt) | 0) + (u >>> 13) | 0) + (Vt >>> 26) | 0, Vt &= 67108863, m = Math.imul(de, re), u = (u = Math.imul(de, le)) + Math.imul(ee, re) | 0, y = Math.imul(ee, le), m = m + Math.imul(ie, he) | 0, u = (u = u + Math.imul(ie, T) | 0) + Math.imul(ce, he) | 0, y = y + Math.imul(ce, T) | 0, m = m + Math.imul(ne, B) | 0, u = (u = u + Math.imul(ne, b) | 0) + Math.imul(ae, B) | 0, y = y + Math.imul(ae, b) | 0, m = m + Math.imul(oe, q) | 0, u = (u = u + Math.imul(oe, F) | 0) + Math.imul(Zt, q) | 0, y = y + Math.imul(Zt, F) | 0, m = m + Math.imul(Wt, U) | 0, u = (u = u + Math.imul(Wt, Y) | 0) + Math.imul(te, U) | 0, y = y + Math.imul(te, Y) | 0, m = m + Math.imul(Lt, X) | 0, u = (u = u + Math.imul(Lt, dt) | 0) + Math.imul(se, X) | 0, y = y + Math.imul(se, dt) | 0, m = m + Math.imul(lt, nt) | 0, u = (u = u + Math.imul(lt, ht) | 0) + Math.imul(kt, nt) | 0, y = y + Math.imul(kt, ht) | 0, m = m + Math.imul(ot, at) | 0, u = (u = u + Math.imul(ot, ut) | 0) + Math.imul(mt, at) | 0, y = y + Math.imul(mt, ut) | 0, m = m + Math.imul(D, it) | 0, u = (u = u + Math.imul(D, pt) | 0) + Math.imul(G, it) | 0, y = y + Math.imul(G, pt) | 0;
|
|
2279
2279
|
var Yt = (j + (m = m + Math.imul($, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, K) | 0) + Math.imul(V, ct) | 0)) << 13) | 0;
|
|
2280
|
-
j = ((y = y + Math.imul(V, K) | 0) + (u >>> 13) | 0) + (Yt >>> 26) | 0, Yt &= 67108863, m = Math.imul(de, he), u = (u = Math.imul(de, T)) + Math.imul(ee, he) | 0, y = Math.imul(ee, T), m = m + Math.imul(ie, B) | 0, u = (u = u + Math.imul(ie, b) | 0) + Math.imul(ce, B) | 0, y = y + Math.imul(ce, b) | 0, m = m + Math.imul(ne,
|
|
2280
|
+
j = ((y = y + Math.imul(V, K) | 0) + (u >>> 13) | 0) + (Yt >>> 26) | 0, Yt &= 67108863, m = Math.imul(de, he), u = (u = Math.imul(de, T)) + Math.imul(ee, he) | 0, y = Math.imul(ee, T), m = m + Math.imul(ie, B) | 0, u = (u = u + Math.imul(ie, b) | 0) + Math.imul(ce, B) | 0, y = y + Math.imul(ce, b) | 0, m = m + Math.imul(ne, q) | 0, u = (u = u + Math.imul(ne, F) | 0) + Math.imul(ae, q) | 0, y = y + Math.imul(ae, F) | 0, m = m + Math.imul(oe, U) | 0, u = (u = u + Math.imul(oe, Y) | 0) + Math.imul(Zt, U) | 0, y = y + Math.imul(Zt, Y) | 0, m = m + Math.imul(Wt, X) | 0, u = (u = u + Math.imul(Wt, dt) | 0) + Math.imul(te, X) | 0, y = y + Math.imul(te, dt) | 0, m = m + Math.imul(Lt, nt) | 0, u = (u = u + Math.imul(Lt, ht) | 0) + Math.imul(se, nt) | 0, y = y + Math.imul(se, ht) | 0, m = m + Math.imul(lt, at) | 0, u = (u = u + Math.imul(lt, ut) | 0) + Math.imul(kt, at) | 0, y = y + Math.imul(kt, ut) | 0, m = m + Math.imul(ot, it) | 0, u = (u = u + Math.imul(ot, pt) | 0) + Math.imul(mt, it) | 0, y = y + Math.imul(mt, pt) | 0;
|
|
2281
2281
|
var Jt = (j + (m = m + Math.imul(D, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(D, K) | 0) + Math.imul(G, ct) | 0)) << 13) | 0;
|
|
2282
|
-
j = ((y = y + Math.imul(G, K) | 0) + (u >>> 13) | 0) + (Jt >>> 26) | 0, Jt &= 67108863, m = Math.imul(de, B), u = (u = Math.imul(de, b)) + Math.imul(ee, B) | 0, y = Math.imul(ee, b), m = m + Math.imul(ie,
|
|
2282
|
+
j = ((y = y + Math.imul(G, K) | 0) + (u >>> 13) | 0) + (Jt >>> 26) | 0, Jt &= 67108863, m = Math.imul(de, B), u = (u = Math.imul(de, b)) + Math.imul(ee, B) | 0, y = Math.imul(ee, b), m = m + Math.imul(ie, q) | 0, u = (u = u + Math.imul(ie, F) | 0) + Math.imul(ce, q) | 0, y = y + Math.imul(ce, F) | 0, m = m + Math.imul(ne, U) | 0, u = (u = u + Math.imul(ne, Y) | 0) + Math.imul(ae, U) | 0, y = y + Math.imul(ae, Y) | 0, m = m + Math.imul(oe, X) | 0, u = (u = u + Math.imul(oe, dt) | 0) + Math.imul(Zt, X) | 0, y = y + Math.imul(Zt, dt) | 0, m = m + Math.imul(Wt, nt) | 0, u = (u = u + Math.imul(Wt, ht) | 0) + Math.imul(te, nt) | 0, y = y + Math.imul(te, ht) | 0, m = m + Math.imul(Lt, at) | 0, u = (u = u + Math.imul(Lt, ut) | 0) + Math.imul(se, at) | 0, y = y + Math.imul(se, ut) | 0, m = m + Math.imul(lt, it) | 0, u = (u = u + Math.imul(lt, pt) | 0) + Math.imul(kt, it) | 0, y = y + Math.imul(kt, pt) | 0;
|
|
2283
2283
|
var St = (j + (m = m + Math.imul(ot, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(ot, K) | 0) + Math.imul(mt, ct) | 0)) << 13) | 0;
|
|
2284
|
-
j = ((y = y + Math.imul(mt, K) | 0) + (u >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, m = Math.imul(de,
|
|
2284
|
+
j = ((y = y + Math.imul(mt, K) | 0) + (u >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, m = Math.imul(de, q), u = (u = Math.imul(de, F)) + Math.imul(ee, q) | 0, y = Math.imul(ee, F), m = m + Math.imul(ie, U) | 0, u = (u = u + Math.imul(ie, Y) | 0) + Math.imul(ce, U) | 0, y = y + Math.imul(ce, Y) | 0, m = m + Math.imul(ne, X) | 0, u = (u = u + Math.imul(ne, dt) | 0) + Math.imul(ae, X) | 0, y = y + Math.imul(ae, dt) | 0, m = m + Math.imul(oe, nt) | 0, u = (u = u + Math.imul(oe, ht) | 0) + Math.imul(Zt, nt) | 0, y = y + Math.imul(Zt, ht) | 0, m = m + Math.imul(Wt, at) | 0, u = (u = u + Math.imul(Wt, ut) | 0) + Math.imul(te, at) | 0, y = y + Math.imul(te, ut) | 0, m = m + Math.imul(Lt, it) | 0, u = (u = u + Math.imul(Lt, pt) | 0) + Math.imul(se, it) | 0, y = y + Math.imul(se, pt) | 0;
|
|
2285
2285
|
var Tt = (j + (m = m + Math.imul(lt, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(lt, K) | 0) + Math.imul(kt, ct) | 0)) << 13) | 0;
|
|
2286
|
-
j = ((y = y + Math.imul(kt, K) | 0) + (u >>> 13) | 0) + (Tt >>> 26) | 0, Tt &= 67108863, m = Math.imul(de,
|
|
2286
|
+
j = ((y = y + Math.imul(kt, K) | 0) + (u >>> 13) | 0) + (Tt >>> 26) | 0, Tt &= 67108863, m = Math.imul(de, U), u = (u = Math.imul(de, Y)) + Math.imul(ee, U) | 0, y = Math.imul(ee, Y), m = m + Math.imul(ie, X) | 0, u = (u = u + Math.imul(ie, dt) | 0) + Math.imul(ce, X) | 0, y = y + Math.imul(ce, dt) | 0, m = m + Math.imul(ne, nt) | 0, u = (u = u + Math.imul(ne, ht) | 0) + Math.imul(ae, nt) | 0, y = y + Math.imul(ae, ht) | 0, m = m + Math.imul(oe, at) | 0, u = (u = u + Math.imul(oe, ut) | 0) + Math.imul(Zt, at) | 0, y = y + Math.imul(Zt, ut) | 0, m = m + Math.imul(Wt, it) | 0, u = (u = u + Math.imul(Wt, pt) | 0) + Math.imul(te, it) | 0, y = y + Math.imul(te, pt) | 0;
|
|
2287
2287
|
var Rt = (j + (m = m + Math.imul(Lt, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(Lt, K) | 0) + Math.imul(se, ct) | 0)) << 13) | 0;
|
|
2288
2288
|
j = ((y = y + Math.imul(se, K) | 0) + (u >>> 13) | 0) + (Rt >>> 26) | 0, Rt &= 67108863, m = Math.imul(de, X), u = (u = Math.imul(de, dt)) + Math.imul(ee, X) | 0, y = Math.imul(ee, dt), m = m + Math.imul(ie, nt) | 0, u = (u = u + Math.imul(ie, ht) | 0) + Math.imul(ce, nt) | 0, y = y + Math.imul(ce, ht) | 0, m = m + Math.imul(ne, at) | 0, u = (u = u + Math.imul(ne, ut) | 0) + Math.imul(ae, at) | 0, y = y + Math.imul(ae, ut) | 0, m = m + Math.imul(oe, it) | 0, u = (u = u + Math.imul(oe, pt) | 0) + Math.imul(Zt, it) | 0, y = y + Math.imul(Zt, pt) | 0;
|
|
2289
2289
|
var Nt = (j + (m = m + Math.imul(Wt, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(Wt, K) | 0) + Math.imul(te, ct) | 0)) << 13) | 0;
|
|
@@ -2843,7 +2843,7 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2843
2843
|
}, z.prototype.invm = function(f) {
|
|
2844
2844
|
return this.imod(f._invmp(this.m).mul(this.r2))._forceRed(this);
|
|
2845
2845
|
};
|
|
2846
|
-
})(Vd,
|
|
2846
|
+
})(Vd, qr);
|
|
2847
2847
|
var Fr = Vd.exports, En = Kd;
|
|
2848
2848
|
function Kd(e, t) {
|
|
2849
2849
|
if (!e) throw new Error(t || "Assertion failed");
|
|
@@ -3670,11 +3670,11 @@ function $h(e, t) {
|
|
|
3670
3670
|
var r = Er(e, t, 28) ^ Er(t, e, 2) ^ Er(t, e, 7);
|
|
3671
3671
|
return r < 0 && (r += 4294967296), r;
|
|
3672
3672
|
}
|
|
3673
|
-
function
|
|
3673
|
+
function Uh(e, t) {
|
|
3674
3674
|
var r = kr(e, t, 14) ^ kr(e, t, 18) ^ kr(t, e, 9);
|
|
3675
3675
|
return r < 0 && (r += 4294967296), r;
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3677
|
+
function qh(e, t) {
|
|
3678
3678
|
var r = Er(e, t, 14) ^ Er(e, t, 18) ^ Er(t, e, 9);
|
|
3679
3679
|
return r < 0 && (r += 4294967296), r;
|
|
3680
3680
|
}
|
|
@@ -3705,7 +3705,7 @@ hr.blockSize = 1024, hr.outSize = 512, hr.hmacStrength = 192, hr.padLength = 128
|
|
|
3705
3705
|
var r = this.W, n = this.h[0], i = this.h[1], s = this.h[2], a = this.h[3], o = this.h[4], c = this.h[5], d = this.h[6], h = this.h[7], l = this.h[8], _ = this.h[9], v = this.h[10], A = this.h[11], I = this.h[12], x = this.h[13], M = this.h[14], k = this.h[15];
|
|
3706
3706
|
Ih(this.k.length === r.length);
|
|
3707
3707
|
for (var O = 0; O < r.length; O += 2) {
|
|
3708
|
-
var E = M, R = k, L =
|
|
3708
|
+
var E = M, R = k, L = Uh(l, _), z = qh(l, _), f = Bh(l, _, v, A, I), p = Ph(l, _, v, A, I, x), g = this.k[O], m = this.k[O + 1], u = r[O], y = r[O + 1], w = Nh(E, R, L, z, f, p, g, m, u, y), P = Oh(E, R, L, z, f, p, g, m, u, y);
|
|
3709
3709
|
E = zh(n, i), R = $h(n, i), L = Lh(n, i, s, a, o), z = jh(n, i, s, a, o, c);
|
|
3710
3710
|
var N = Ys(E, R, L, z), j = Qs(E, R, L, z);
|
|
3711
3711
|
M = I, k = x, I = v, x = A, v = l, A = _, l = Ys(d, h, w, P), _ = Qs(h, h, w, P), d = o, h = c, o = s, c = a, s = n, a = i, n = Ys(w, P, N, j), i = Qs(w, P, N, j);
|
|
@@ -3748,20 +3748,20 @@ gn.inherits(_r, a1), o1.ripemd160 = _r, _r.blockSize = 512, _r.outSize = 160, _r
|
|
|
3748
3748
|
return e === "hex" ? gn.toHex32(this.h, "little") : gn.split32(this.h, "little");
|
|
3749
3749
|
};
|
|
3750
3750
|
var Qh = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], Gh = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], Jh = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], Xh = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11], tu = Kt, eu = En;
|
|
3751
|
-
function
|
|
3752
|
-
if (!(this instanceof
|
|
3751
|
+
function Un(e, t, r) {
|
|
3752
|
+
if (!(this instanceof Un)) return new Un(e, t, r);
|
|
3753
3753
|
this.Hash = e, this.blockSize = e.blockSize / 8, this.outSize = e.outSize / 8, this.inner = null, this.outer = null, this._init(tu.toArray(t, r));
|
|
3754
3754
|
}
|
|
3755
|
-
var n0, i0, ru =
|
|
3756
|
-
|
|
3755
|
+
var n0, i0, ru = Un;
|
|
3756
|
+
Un.prototype._init = function(e) {
|
|
3757
3757
|
e.length > this.blockSize && (e = new this.Hash().update(e).digest()), eu(e.length <= this.blockSize);
|
|
3758
3758
|
for (var t = e.length; t < this.blockSize; t++) e.push(0);
|
|
3759
3759
|
for (t = 0; t < e.length; t++) e[t] ^= 54;
|
|
3760
3760
|
for (this.inner = new this.Hash().update(e), t = 0; t < e.length; t++) e[t] ^= 106;
|
|
3761
3761
|
this.outer = new this.Hash().update(e);
|
|
3762
|
-
},
|
|
3762
|
+
}, Un.prototype.update = function(e, t) {
|
|
3763
3763
|
return this.inner.update(e, t), this;
|
|
3764
|
-
},
|
|
3764
|
+
}, Un.prototype.digest = function(e) {
|
|
3765
3765
|
return this.outer.update(this.inner.digest()), this.outer.digest(e);
|
|
3766
3766
|
}, function() {
|
|
3767
3767
|
var e = hs;
|
|
@@ -4214,7 +4214,7 @@ class Ru extends Ce {
|
|
|
4214
4214
|
super(...arguments), this.code = 203;
|
|
4215
4215
|
}
|
|
4216
4216
|
}
|
|
4217
|
-
class
|
|
4217
|
+
class Uo extends Ce {
|
|
4218
4218
|
constructor(t) {
|
|
4219
4219
|
super(`Client URL "${t}" is invalid.`), this.code = 602;
|
|
4220
4220
|
}
|
|
@@ -4224,7 +4224,7 @@ class Nu extends Ce {
|
|
|
4224
4224
|
super(...arguments), this.code = 604;
|
|
4225
4225
|
}
|
|
4226
4226
|
}
|
|
4227
|
-
class
|
|
4227
|
+
class qo extends pa {
|
|
4228
4228
|
constructor(t) {
|
|
4229
4229
|
super(t, "can not parse as byte data"), this.code = 1002;
|
|
4230
4230
|
}
|
|
@@ -4259,7 +4259,7 @@ class Cu extends ma {
|
|
|
4259
4259
|
super(t, void 0, r), this.code = 101, "error" in t ? n = t.error : t instanceof Array && (n = t.map((i) => i.error)), Array.isArray(n) ? this.cause = new gi(n) : this.cause = n;
|
|
4260
4260
|
}
|
|
4261
4261
|
}
|
|
4262
|
-
const f1 = "An Rpc error has occured with a code of *code*",
|
|
4262
|
+
const f1 = "An Rpc error has occured with a code of *code*", Ue = { [Mo]: { message: "Parse error", description: "Invalid JSON" }, [Io]: { message: "Invalid request", description: "JSON is not a valid request object " }, [To]: { message: "Method not found", description: "Method does not exist " }, [Ro]: { message: "Invalid params", description: "Invalid method parameters" }, [No]: { message: "Internal error", description: "Internal JSON-RPC error" }, [Oo]: { message: "Invalid input", description: "Missing or invalid parameters" }, [Co]: { message: "Resource not found", description: "Requested resource not found" }, [Bo]: { message: "Resource unavailable", description: "Requested resource not available" }, [Po]: { message: "Transaction rejected", description: "Transaction creation failed" }, [Lo]: { message: "Method not supported", description: "Method is not implemented" }, [jo]: { message: "Limit exceeded", description: "Request exceeds defined limit" }, [zo]: { message: "JSON-RPC version not supported", description: "Version of JSON-RPC protocol is not supported" }, [_u]: { name: "User Rejected Request", message: "The user rejected the request." }, [wu]: { name: "Unauthorized", message: "The requested method and/or account has not been authorized by the user." }, [xu]: { name: "Unsupported Method", message: "The Provider does not support the requested method." }, [Au]: { name: "Disconnected", message: "The Provider is disconnected from all chains." }, [Su]: { name: "Chain Disconnected", message: "The Provider is not connected to the requested chain." }, "0-999": { name: "", message: "Not used." }, 1e3: { name: "Normal Closure", message: "The connection successfully completed the purpose for which it was created." }, 1001: { name: "Going Away", message: "The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection." }, 1002: { name: "Protocol error", message: "The endpoint is terminating the connection due to a protocol error." }, 1003: { name: "Unsupported Data", message: "The connection is being terminated because the endpoint received data of a type it cannot accept. (For example, a text-only endpoint received binary data.)" }, 1004: { name: "Reserved", message: "Reserved. A meaning might be defined in the future." }, 1005: { name: "No Status Rcvd", message: "Reserved. Indicates that no status code was provided even though one was expected." }, 1006: { name: "Abnormal Closure", message: "Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected." }, 1007: { name: "Invalid frame payload data", message: "The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message)." }, 1008: { name: "Policy Violation", message: "The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable." }, 1009: { name: "Message Too Big", message: "The endpoint is terminating the connection because a data frame was received that is too large." }, 1010: { name: "Mandatory Ext.", message: "The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't." }, 1011: { name: "Internal Error", message: "The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request." }, 1012: { name: "Service Restart", message: "The server is terminating the connection because it is restarting." }, 1013: { name: "Try Again Later", message: "The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients." }, 1014: { name: "Bad Gateway", message: "The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code." }, 1015: { name: "TLS handshake", message: "Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified)." }, "1016-2999": { name: "", message: "For definition by future revisions of the WebSocket Protocol specification, and for definition by extension specifications." }, "3000-3999": { name: "", message: "For use by libraries, frameworks, and applications. These status codes are registered directly with IANA. The interpretation of these codes is undefined by the WebSocket protocol." }, "4000-4999": { name: "", message: "For private use, and thus can't be registered. Such codes can be used by prior agreements between WebSocket applications. The interpretation of these codes is undefined by the WebSocket protocol." } };
|
|
4263
4263
|
class er extends Ce {
|
|
4264
4264
|
constructor(t, r) {
|
|
4265
4265
|
super(r ?? f1.replace("*code*", t.error.code.toString())), this.code = t.error.code, this.id = t.id, this.jsonrpc = t.jsonrpc, this.jsonRpcError = t.error;
|
|
@@ -4271,10 +4271,10 @@ class er extends Ce {
|
|
|
4271
4271
|
class Bu extends Ce {
|
|
4272
4272
|
constructor(t, r) {
|
|
4273
4273
|
var n, i, s, a;
|
|
4274
|
-
if (t) if (!((n =
|
|
4274
|
+
if (t) if (!((n = Ue[t]) === null || n === void 0) && n.message) super(Ue[t].message);
|
|
4275
4275
|
else {
|
|
4276
|
-
const o = Object.keys(
|
|
4277
|
-
super((s = (i =
|
|
4276
|
+
const o = Object.keys(Ue).find((c) => typeof c == "string" && t >= parseInt(c.split("-")[0], 10) && t <= parseInt(c.split("-")[1], 10));
|
|
4277
|
+
super((s = (i = Ue[o ?? ""]) === null || i === void 0 ? void 0 : i.message) !== null && s !== void 0 ? s : f1.replace("*code*", (a = t == null ? void 0 : t.toString()) !== null && a !== void 0 ? a : '""'));
|
|
4278
4278
|
}
|
|
4279
4279
|
else super();
|
|
4280
4280
|
this.code = t, this.data = r;
|
|
@@ -4283,51 +4283,51 @@ class Bu extends Ce {
|
|
|
4283
4283
|
const rr = /* @__PURE__ */ new Map();
|
|
4284
4284
|
rr.set(Mo, { error: class extends er {
|
|
4285
4285
|
constructor(e) {
|
|
4286
|
-
super(e,
|
|
4286
|
+
super(e, Ue[-32700].message), this.code = Mo;
|
|
4287
4287
|
}
|
|
4288
4288
|
} }), rr.set(Io, { error: class extends er {
|
|
4289
4289
|
constructor(e) {
|
|
4290
|
-
super(e,
|
|
4290
|
+
super(e, Ue[-32600].message), this.code = Io;
|
|
4291
4291
|
}
|
|
4292
4292
|
} }), rr.set(To, { error: class extends er {
|
|
4293
4293
|
constructor(e) {
|
|
4294
|
-
super(e,
|
|
4294
|
+
super(e, Ue[-32601].message), this.code = To;
|
|
4295
4295
|
}
|
|
4296
4296
|
} }), rr.set(Ro, { error: class extends er {
|
|
4297
4297
|
constructor(e) {
|
|
4298
|
-
super(e,
|
|
4298
|
+
super(e, Ue[-32602].message), this.code = Ro;
|
|
4299
4299
|
}
|
|
4300
4300
|
} }), rr.set(No, { error: class extends er {
|
|
4301
4301
|
constructor(e) {
|
|
4302
|
-
super(e,
|
|
4302
|
+
super(e, Ue[-32603].message), this.code = No;
|
|
4303
4303
|
}
|
|
4304
4304
|
} }), rr.set(Oo, { error: class extends er {
|
|
4305
4305
|
constructor(e) {
|
|
4306
|
-
super(e,
|
|
4306
|
+
super(e, Ue[-32e3].message), this.code = Oo;
|
|
4307
4307
|
}
|
|
4308
4308
|
} }), rr.set(Lo, { error: class extends er {
|
|
4309
4309
|
constructor(e) {
|
|
4310
|
-
super(e,
|
|
4310
|
+
super(e, Ue[-32004].message), this.code = Lo;
|
|
4311
4311
|
}
|
|
4312
4312
|
} }), rr.set(Bo, { error: class extends er {
|
|
4313
4313
|
constructor(e) {
|
|
4314
|
-
super(e,
|
|
4314
|
+
super(e, Ue[-32002].message), this.code = Bo;
|
|
4315
4315
|
}
|
|
4316
4316
|
} }), rr.set(Po, { error: class extends er {
|
|
4317
4317
|
constructor(e) {
|
|
4318
|
-
super(e,
|
|
4318
|
+
super(e, Ue[-32003].message), this.code = Po;
|
|
4319
4319
|
}
|
|
4320
4320
|
} }), rr.set(Co, { error: class extends er {
|
|
4321
4321
|
constructor(e) {
|
|
4322
|
-
super(e,
|
|
4322
|
+
super(e, Ue[-32001].message), this.code = Co;
|
|
4323
4323
|
}
|
|
4324
4324
|
} }), rr.set(zo, { error: class extends er {
|
|
4325
4325
|
constructor(e) {
|
|
4326
|
-
super(e,
|
|
4326
|
+
super(e, Ue[-32006].message), this.code = zo;
|
|
4327
4327
|
}
|
|
4328
4328
|
} }), rr.set(jo, { error: class extends er {
|
|
4329
4329
|
constructor(e) {
|
|
4330
|
-
super(e,
|
|
4330
|
+
super(e, Ue[-32005].message), this.code = jo;
|
|
4331
4331
|
}
|
|
4332
4332
|
} });
|
|
4333
4333
|
class Pu extends Ce {
|
|
@@ -4377,12 +4377,12 @@ const ro = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.
|
|
|
4377
4377
|
function _0(e) {
|
|
4378
4378
|
for (let t = 0; t < e.length; t++) e[t] = $u(e[t]);
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4380
|
+
function qn(e) {
|
|
4381
4381
|
if (typeof e != "string") throw new Error("utf8ToBytes expected string, got " + typeof e);
|
|
4382
4382
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
4383
4383
|
}
|
|
4384
4384
|
function Ls(e) {
|
|
4385
|
-
return typeof e == "string" && (e =
|
|
4385
|
+
return typeof e == "string" && (e = qn(e)), ri(e), e;
|
|
4386
4386
|
}
|
|
4387
4387
|
class ya {
|
|
4388
4388
|
clone() {
|
|
@@ -4397,11 +4397,11 @@ function l1(e = 32) {
|
|
|
4397
4397
|
if (ro && typeof ro.getRandomValues == "function") return ro.getRandomValues(new Uint8Array(e));
|
|
4398
4398
|
throw new Error("crypto.getRandomValues must be defined");
|
|
4399
4399
|
}
|
|
4400
|
-
const p1 = [], m1 = [], b1 = [],
|
|
4400
|
+
const p1 = [], m1 = [], b1 = [], Uu = BigInt(0), oi = BigInt(1), qu = BigInt(2), Hu = BigInt(7), Du = BigInt(256), Fu = BigInt(113);
|
|
4401
4401
|
for (let e = 0, t = oi, r = 1, n = 0; e < 24; e++) {
|
|
4402
4402
|
[r, n] = [n, (2 * r + 3 * n) % 5], p1.push(2 * (5 * n + r)), m1.push((e + 1) * (e + 2) / 2 % 64);
|
|
4403
|
-
let i =
|
|
4404
|
-
for (let s = 0; s < 7; s++) t = (t << oi ^ (t >> Hu) * Fu) % Du, t &
|
|
4403
|
+
let i = Uu;
|
|
4404
|
+
for (let s = 0; s < 7; s++) t = (t << oi ^ (t >> Hu) * Fu) % Du, t & qu && (i ^= oi << (oi << BigInt(s)) - oi);
|
|
4405
4405
|
b1.push(i);
|
|
4406
4406
|
}
|
|
4407
4407
|
const [Zu, Vu] = zu(b1, !0), w0 = (e, t, r) => r > 32 ? ((n, i, s) => i << s - 32 | n >>> 64 - s)(e, t, r) : ((n, i, s) => n << s | i >>> 32 - s)(e, t, r), x0 = (e, t, r) => r > 32 ? ((n, i, s) => n << s - 32 | i >>> 64 - s)(e, t, r) : ((n, i, s) => i << s | n >>> 32 - s)(e, t, r);
|
|
@@ -4738,7 +4738,7 @@ function Pt(e) {
|
|
|
4738
4738
|
return s.code === "invalid_enum_value" ? { message: o ?? a.defaultError } : a.data === void 0 ? { message: o ?? n ?? a.defaultError } : s.code !== "invalid_type" ? { message: a.defaultError } : { message: o ?? r ?? a.defaultError };
|
|
4739
4739
|
}, description: i };
|
|
4740
4740
|
}
|
|
4741
|
-
class
|
|
4741
|
+
class Ut {
|
|
4742
4742
|
get description() {
|
|
4743
4743
|
return this._def.description;
|
|
4744
4744
|
}
|
|
@@ -4847,7 +4847,7 @@ class qt {
|
|
|
4847
4847
|
return new this.constructor({ ...this._def, description: t });
|
|
4848
4848
|
}
|
|
4849
4849
|
pipe(t) {
|
|
4850
|
-
return
|
|
4850
|
+
return Ui.create(this, t);
|
|
4851
4851
|
}
|
|
4852
4852
|
readonly() {
|
|
4853
4853
|
return Bi.create(this);
|
|
@@ -4891,7 +4891,7 @@ function f2(e, t) {
|
|
|
4891
4891
|
function h2(e, t) {
|
|
4892
4892
|
return !(t !== "v4" && t || !r2.test(e)) || !(t !== "v6" && t || !i2.test(e));
|
|
4893
4893
|
}
|
|
4894
|
-
class lr extends
|
|
4894
|
+
class lr extends Ut {
|
|
4895
4895
|
_parse(t) {
|
|
4896
4896
|
if (this._def.coerce && (t.data = String(t.data)), this._getType(t) !== yt.string) {
|
|
4897
4897
|
const i = this._getOrReturnCtx(t);
|
|
@@ -5073,7 +5073,7 @@ function u2(e, t) {
|
|
|
5073
5073
|
return Number.parseInt(e.toFixed(i).replace(".", "")) % Number.parseInt(t.toFixed(i).replace(".", "")) / 10 ** i;
|
|
5074
5074
|
}
|
|
5075
5075
|
lr.create = (e) => new lr({ checks: [], typeName: It.ZodString, coerce: (e == null ? void 0 : e.coerce) ?? !1, ...Pt(e) });
|
|
5076
|
-
class en extends
|
|
5076
|
+
class en extends Ut {
|
|
5077
5077
|
constructor() {
|
|
5078
5078
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
5079
5079
|
}
|
|
@@ -5152,7 +5152,7 @@ class en extends qt {
|
|
|
5152
5152
|
}
|
|
5153
5153
|
}
|
|
5154
5154
|
en.create = (e) => new en({ checks: [], typeName: It.ZodNumber, coerce: (e == null ? void 0 : e.coerce) || !1, ...Pt(e) });
|
|
5155
|
-
class rn extends
|
|
5155
|
+
class rn extends Ut {
|
|
5156
5156
|
constructor() {
|
|
5157
5157
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
5158
5158
|
}
|
|
@@ -5217,7 +5217,7 @@ class rn extends qt {
|
|
|
5217
5217
|
}
|
|
5218
5218
|
}
|
|
5219
5219
|
rn.create = (e) => new rn({ checks: [], typeName: It.ZodBigInt, coerce: (e == null ? void 0 : e.coerce) ?? !1, ...Pt(e) });
|
|
5220
|
-
class Si extends
|
|
5220
|
+
class Si extends Ut {
|
|
5221
5221
|
_parse(t) {
|
|
5222
5222
|
if (this._def.coerce && (t.data = !!t.data), this._getType(t) !== yt.boolean) {
|
|
5223
5223
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5227,7 +5227,7 @@ class Si extends qt {
|
|
|
5227
5227
|
}
|
|
5228
5228
|
}
|
|
5229
5229
|
Si.create = (e) => new Si({ typeName: It.ZodBoolean, coerce: (e == null ? void 0 : e.coerce) || !1, ...Pt(e) });
|
|
5230
|
-
class xn extends
|
|
5230
|
+
class xn extends Ut {
|
|
5231
5231
|
_parse(t) {
|
|
5232
5232
|
if (this._def.coerce && (t.data = new Date(t.data)), this._getType(t) !== yt.date) {
|
|
5233
5233
|
const i = this._getOrReturnCtx(t);
|
|
@@ -5261,7 +5261,7 @@ class xn extends qt {
|
|
|
5261
5261
|
}
|
|
5262
5262
|
}
|
|
5263
5263
|
xn.create = (e) => new xn({ checks: [], coerce: (e == null ? void 0 : e.coerce) || !1, typeName: It.ZodDate, ...Pt(e) });
|
|
5264
|
-
class ys extends
|
|
5264
|
+
class ys extends Ut {
|
|
5265
5265
|
_parse(t) {
|
|
5266
5266
|
if (this._getType(t) !== yt.symbol) {
|
|
5267
5267
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5271,7 +5271,7 @@ class ys extends qt {
|
|
|
5271
5271
|
}
|
|
5272
5272
|
}
|
|
5273
5273
|
ys.create = (e) => new ys({ typeName: It.ZodSymbol, ...Pt(e) });
|
|
5274
|
-
class ki extends
|
|
5274
|
+
class ki extends Ut {
|
|
5275
5275
|
_parse(t) {
|
|
5276
5276
|
if (this._getType(t) !== yt.undefined) {
|
|
5277
5277
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5281,7 +5281,7 @@ class ki extends qt {
|
|
|
5281
5281
|
}
|
|
5282
5282
|
}
|
|
5283
5283
|
ki.create = (e) => new ki({ typeName: It.ZodUndefined, ...Pt(e) });
|
|
5284
|
-
class Ei extends
|
|
5284
|
+
class Ei extends Ut {
|
|
5285
5285
|
_parse(t) {
|
|
5286
5286
|
if (this._getType(t) !== yt.null) {
|
|
5287
5287
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5291,7 +5291,7 @@ class Ei extends qt {
|
|
|
5291
5291
|
}
|
|
5292
5292
|
}
|
|
5293
5293
|
Ei.create = (e) => new Ei({ typeName: It.ZodNull, ...Pt(e) });
|
|
5294
|
-
class Wn extends
|
|
5294
|
+
class Wn extends Ut {
|
|
5295
5295
|
constructor() {
|
|
5296
5296
|
super(...arguments), this._any = !0;
|
|
5297
5297
|
}
|
|
@@ -5300,7 +5300,7 @@ class Wn extends qt {
|
|
|
5300
5300
|
}
|
|
5301
5301
|
}
|
|
5302
5302
|
Wn.create = (e) => new Wn({ typeName: It.ZodAny, ...Pt(e) });
|
|
5303
|
-
class vn extends
|
|
5303
|
+
class vn extends Ut {
|
|
5304
5304
|
constructor() {
|
|
5305
5305
|
super(...arguments), this._unknown = !0;
|
|
5306
5306
|
}
|
|
@@ -5309,14 +5309,14 @@ class vn extends qt {
|
|
|
5309
5309
|
}
|
|
5310
5310
|
}
|
|
5311
5311
|
vn.create = (e) => new vn({ typeName: It.ZodUnknown, ...Pt(e) });
|
|
5312
|
-
class Dr extends
|
|
5312
|
+
class Dr extends Ut {
|
|
5313
5313
|
_parse(t) {
|
|
5314
5314
|
const r = this._getOrReturnCtx(t);
|
|
5315
5315
|
return ft(r, { code: J.invalid_type, expected: yt.never, received: r.parsedType }), Mt;
|
|
5316
5316
|
}
|
|
5317
5317
|
}
|
|
5318
5318
|
Dr.create = (e) => new Dr({ typeName: It.ZodNever, ...Pt(e) });
|
|
5319
|
-
class gs extends
|
|
5319
|
+
class gs extends Ut {
|
|
5320
5320
|
_parse(t) {
|
|
5321
5321
|
if (this._getType(t) !== yt.undefined) {
|
|
5322
5322
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5326,7 +5326,7 @@ class gs extends qt {
|
|
|
5326
5326
|
}
|
|
5327
5327
|
}
|
|
5328
5328
|
gs.create = (e) => new gs({ typeName: It.ZodVoid, ...Pt(e) });
|
|
5329
|
-
class mr extends
|
|
5329
|
+
class mr extends Ut {
|
|
5330
5330
|
_parse(t) {
|
|
5331
5331
|
const { ctx: r, status: n } = this._processInputParams(t), i = this._def;
|
|
5332
5332
|
if (r.parsedType !== yt.array) return ft(r, { code: J.invalid_type, expected: yt.array, received: r.parsedType }), Mt;
|
|
@@ -5366,7 +5366,7 @@ function On(e) {
|
|
|
5366
5366
|
return e instanceof mr ? new mr({ ...e._def, type: On(e.element) }) : e instanceof Mr ? Mr.create(On(e.unwrap())) : e instanceof sn ? sn.create(On(e.unwrap())) : e instanceof Rr ? Rr.create(e.items.map((t) => On(t))) : e;
|
|
5367
5367
|
}
|
|
5368
5368
|
mr.create = (e, t) => new mr({ type: e, minLength: null, maxLength: null, exactLength: null, typeName: It.ZodArray, ...Pt(t) });
|
|
5369
|
-
class me extends
|
|
5369
|
+
class me extends Ut {
|
|
5370
5370
|
constructor() {
|
|
5371
5371
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
5372
5372
|
}
|
|
@@ -5472,7 +5472,7 @@ class me extends qt {
|
|
|
5472
5472
|
}
|
|
5473
5473
|
}
|
|
5474
5474
|
me.create = (e, t) => new me({ shape: () => e, unknownKeys: "strip", catchall: Dr.create(), typeName: It.ZodObject, ...Pt(t) }), me.strictCreate = (e, t) => new me({ shape: () => e, unknownKeys: "strict", catchall: Dr.create(), typeName: It.ZodObject, ...Pt(t) }), me.lazycreate = (e, t) => new me({ shape: e, unknownKeys: "strip", catchall: Dr.create(), typeName: It.ZodObject, ...Pt(t) });
|
|
5475
|
-
class Mi extends
|
|
5475
|
+
class Mi extends Ut {
|
|
5476
5476
|
_parse(t) {
|
|
5477
5477
|
const { ctx: r } = this._processInputParams(t), n = this._def.options;
|
|
5478
5478
|
if (r.common.async) return Promise.all(n.map(async (i) => {
|
|
@@ -5503,7 +5503,7 @@ class Mi extends qt {
|
|
|
5503
5503
|
}
|
|
5504
5504
|
Mi.create = (e, t) => new Mi({ options: e, typeName: It.ZodUnion, ...Pt(t) });
|
|
5505
5505
|
const Gr = (e) => e instanceof Ti ? Gr(e.schema) : e instanceof pr ? Gr(e.innerType()) : e instanceof Ri ? [e.value] : e instanceof nn ? e.options : e instanceof Ni ? Xt.objectValues(e.enum) : e instanceof Oi ? Gr(e._def.innerType) : e instanceof ki ? [void 0] : e instanceof Ei ? [null] : e instanceof Mr ? [void 0, ...Gr(e.unwrap())] : e instanceof sn ? [null, ...Gr(e.unwrap())] : e instanceof _a || e instanceof Bi ? Gr(e.unwrap()) : e instanceof Ci ? Gr(e._def.innerType) : [];
|
|
5506
|
-
class js extends
|
|
5506
|
+
class js extends Ut {
|
|
5507
5507
|
_parse(t) {
|
|
5508
5508
|
const { ctx: r } = this._processInputParams(t);
|
|
5509
5509
|
if (r.parsedType !== yt.object) return ft(r, { code: J.invalid_type, expected: yt.object, received: r.parsedType }), Mt;
|
|
@@ -5556,7 +5556,7 @@ function Zo(e, t) {
|
|
|
5556
5556
|
}
|
|
5557
5557
|
return r === yt.date && n === yt.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
|
|
5558
5558
|
}
|
|
5559
|
-
class Ii extends
|
|
5559
|
+
class Ii extends Ut {
|
|
5560
5560
|
_parse(t) {
|
|
5561
5561
|
const { status: r, ctx: n } = this._processInputParams(t), i = (s, a) => {
|
|
5562
5562
|
if (Do(s) || Do(a)) return Mt;
|
|
@@ -5567,7 +5567,7 @@ class Ii extends qt {
|
|
|
5567
5567
|
}
|
|
5568
5568
|
}
|
|
5569
5569
|
Ii.create = (e, t, r) => new Ii({ left: e, right: t, typeName: It.ZodIntersection, ...Pt(r) });
|
|
5570
|
-
class Rr extends
|
|
5570
|
+
class Rr extends Ut {
|
|
5571
5571
|
_parse(t) {
|
|
5572
5572
|
const { status: r, ctx: n } = this._processInputParams(t);
|
|
5573
5573
|
if (n.parsedType !== yt.array) return ft(n, { code: J.invalid_type, expected: yt.array, received: n.parsedType }), Mt;
|
|
@@ -5590,7 +5590,7 @@ Rr.create = (e, t) => {
|
|
|
5590
5590
|
if (!Array.isArray(e)) throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
5591
5591
|
return new Rr({ items: e, typeName: It.ZodTuple, rest: null, ...Pt(t) });
|
|
5592
5592
|
};
|
|
5593
|
-
class zs extends
|
|
5593
|
+
class zs extends Ut {
|
|
5594
5594
|
get keySchema() {
|
|
5595
5595
|
return this._def.keyType;
|
|
5596
5596
|
}
|
|
@@ -5608,10 +5608,10 @@ class zs extends qt {
|
|
|
5608
5608
|
return this._def.valueType;
|
|
5609
5609
|
}
|
|
5610
5610
|
static create(t, r, n) {
|
|
5611
|
-
return new zs(r instanceof
|
|
5611
|
+
return new zs(r instanceof Ut ? { keyType: t, valueType: r, typeName: It.ZodRecord, ...Pt(n) } : { keyType: lr.create(), valueType: t, typeName: It.ZodRecord, ...Pt(r) });
|
|
5612
5612
|
}
|
|
5613
5613
|
}
|
|
5614
|
-
class vs extends
|
|
5614
|
+
class vs extends Ut {
|
|
5615
5615
|
get keySchema() {
|
|
5616
5616
|
return this._def.keyType;
|
|
5617
5617
|
}
|
|
@@ -5645,7 +5645,7 @@ class vs extends qt {
|
|
|
5645
5645
|
}
|
|
5646
5646
|
}
|
|
5647
5647
|
vs.create = (e, t, r) => new vs({ valueType: t, keyType: e, typeName: It.ZodMap, ...Pt(r) });
|
|
5648
|
-
class An extends
|
|
5648
|
+
class An extends Ut {
|
|
5649
5649
|
_parse(t) {
|
|
5650
5650
|
const { status: r, ctx: n } = this._processInputParams(t);
|
|
5651
5651
|
if (n.parsedType !== yt.set) return ft(n, { code: J.invalid_type, expected: yt.set, received: n.parsedType }), Mt;
|
|
@@ -5677,7 +5677,7 @@ class An extends qt {
|
|
|
5677
5677
|
}
|
|
5678
5678
|
}
|
|
5679
5679
|
An.create = (e, t) => new An({ valueType: e, minSize: null, maxSize: null, typeName: It.ZodSet, ...Pt(t) });
|
|
5680
|
-
class Hn extends
|
|
5680
|
+
class Hn extends Ut {
|
|
5681
5681
|
constructor() {
|
|
5682
5682
|
super(...arguments), this.validate = this.implement;
|
|
5683
5683
|
}
|
|
@@ -5735,7 +5735,7 @@ class Hn extends qt {
|
|
|
5735
5735
|
return new Hn({ args: t || Rr.create([]).rest(vn.create()), returns: r || vn.create(), typeName: It.ZodFunction, ...Pt(n) });
|
|
5736
5736
|
}
|
|
5737
5737
|
}
|
|
5738
|
-
class Ti extends
|
|
5738
|
+
class Ti extends Ut {
|
|
5739
5739
|
get schema() {
|
|
5740
5740
|
return this._def.getter();
|
|
5741
5741
|
}
|
|
@@ -5745,7 +5745,7 @@ class Ti extends qt {
|
|
|
5745
5745
|
}
|
|
5746
5746
|
}
|
|
5747
5747
|
Ti.create = (e, t) => new Ti({ getter: e, typeName: It.ZodLazy, ...Pt(t) });
|
|
5748
|
-
class Ri extends
|
|
5748
|
+
class Ri extends Ut {
|
|
5749
5749
|
_parse(t) {
|
|
5750
5750
|
if (t.data !== this._def.value) {
|
|
5751
5751
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5761,7 +5761,7 @@ function w1(e, t) {
|
|
|
5761
5761
|
return new nn({ values: e, typeName: It.ZodEnum, ...Pt(t) });
|
|
5762
5762
|
}
|
|
5763
5763
|
Ri.create = (e, t) => new Ri({ value: e, typeName: It.ZodLiteral, ...Pt(t) });
|
|
5764
|
-
class nn extends
|
|
5764
|
+
class nn extends Ut {
|
|
5765
5765
|
_parse(t) {
|
|
5766
5766
|
if (typeof t.data != "string") {
|
|
5767
5767
|
const r = this._getOrReturnCtx(t), n = this._def.values;
|
|
@@ -5799,7 +5799,7 @@ class nn extends qt {
|
|
|
5799
5799
|
}
|
|
5800
5800
|
}
|
|
5801
5801
|
nn.create = w1;
|
|
5802
|
-
class Ni extends
|
|
5802
|
+
class Ni extends Ut {
|
|
5803
5803
|
_parse(t) {
|
|
5804
5804
|
const r = Xt.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(t);
|
|
5805
5805
|
if (n.parsedType !== yt.string && n.parsedType !== yt.number) {
|
|
@@ -5817,7 +5817,7 @@ class Ni extends qt {
|
|
|
5817
5817
|
}
|
|
5818
5818
|
}
|
|
5819
5819
|
Ni.create = (e, t) => new Ni({ values: e, typeName: It.ZodNativeEnum, ...Pt(t) });
|
|
5820
|
-
class Yn extends
|
|
5820
|
+
class Yn extends Ut {
|
|
5821
5821
|
unwrap() {
|
|
5822
5822
|
return this._def.type;
|
|
5823
5823
|
}
|
|
@@ -5829,7 +5829,7 @@ class Yn extends qt {
|
|
|
5829
5829
|
}
|
|
5830
5830
|
}
|
|
5831
5831
|
Yn.create = (e, t) => new Yn({ type: e, typeName: It.ZodPromise, ...Pt(t) });
|
|
5832
|
-
class pr extends
|
|
5832
|
+
class pr extends Ut {
|
|
5833
5833
|
innerType() {
|
|
5834
5834
|
return this._def.schema;
|
|
5835
5835
|
}
|
|
@@ -5882,7 +5882,7 @@ class pr extends qt {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
}
|
|
5884
5884
|
pr.create = (e, t, r) => new pr({ schema: e, typeName: It.ZodEffects, effect: t, ...Pt(r) }), pr.createWithPreprocess = (e, t, r) => new pr({ schema: t, effect: { type: "preprocess", transform: e }, typeName: It.ZodEffects, ...Pt(r) });
|
|
5885
|
-
class Mr extends
|
|
5885
|
+
class Mr extends Ut {
|
|
5886
5886
|
_parse(t) {
|
|
5887
5887
|
return this._getType(t) === yt.undefined ? Ve(void 0) : this._def.innerType._parse(t);
|
|
5888
5888
|
}
|
|
@@ -5891,7 +5891,7 @@ class Mr extends qt {
|
|
|
5891
5891
|
}
|
|
5892
5892
|
}
|
|
5893
5893
|
Mr.create = (e, t) => new Mr({ innerType: e, typeName: It.ZodOptional, ...Pt(t) });
|
|
5894
|
-
class sn extends
|
|
5894
|
+
class sn extends Ut {
|
|
5895
5895
|
_parse(t) {
|
|
5896
5896
|
return this._getType(t) === yt.null ? Ve(null) : this._def.innerType._parse(t);
|
|
5897
5897
|
}
|
|
@@ -5900,7 +5900,7 @@ class sn extends qt {
|
|
|
5900
5900
|
}
|
|
5901
5901
|
}
|
|
5902
5902
|
sn.create = (e, t) => new sn({ innerType: e, typeName: It.ZodNullable, ...Pt(t) });
|
|
5903
|
-
class Oi extends
|
|
5903
|
+
class Oi extends Ut {
|
|
5904
5904
|
_parse(t) {
|
|
5905
5905
|
const { ctx: r } = this._processInputParams(t);
|
|
5906
5906
|
let n = r.data;
|
|
@@ -5911,7 +5911,7 @@ class Oi extends qt {
|
|
|
5911
5911
|
}
|
|
5912
5912
|
}
|
|
5913
5913
|
Oi.create = (e, t) => new Oi({ innerType: e, typeName: It.ZodDefault, defaultValue: typeof t.default == "function" ? t.default : () => t.default, ...Pt(t) });
|
|
5914
|
-
class Ci extends
|
|
5914
|
+
class Ci extends Ut {
|
|
5915
5915
|
_parse(t) {
|
|
5916
5916
|
const { ctx: r } = this._processInputParams(t), n = { ...r, common: { ...r.common, issues: [] } }, i = this._def.innerType._parse({ data: n.data, path: n.path, parent: { ...n } });
|
|
5917
5917
|
return Ai(i) ? i.then((s) => ({ status: "valid", value: s.status === "valid" ? s.value : this._def.catchValue({ get error() {
|
|
@@ -5925,7 +5925,7 @@ class Ci extends qt {
|
|
|
5925
5925
|
}
|
|
5926
5926
|
}
|
|
5927
5927
|
Ci.create = (e, t) => new Ci({ innerType: e, typeName: It.ZodCatch, catchValue: typeof t.catch == "function" ? t.catch : () => t.catch, ...Pt(t) });
|
|
5928
|
-
class _s extends
|
|
5928
|
+
class _s extends Ut {
|
|
5929
5929
|
_parse(t) {
|
|
5930
5930
|
if (this._getType(t) !== yt.nan) {
|
|
5931
5931
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5936,7 +5936,7 @@ class _s extends qt {
|
|
|
5936
5936
|
}
|
|
5937
5937
|
_s.create = (e) => new _s({ typeName: It.ZodNaN, ...Pt(e) });
|
|
5938
5938
|
const l2 = Symbol("zod_brand");
|
|
5939
|
-
class _a extends
|
|
5939
|
+
class _a extends Ut {
|
|
5940
5940
|
_parse(t) {
|
|
5941
5941
|
const { ctx: r } = this._processInputParams(t), n = r.data;
|
|
5942
5942
|
return this._def.type._parse({ data: n, path: r.path, parent: r });
|
|
@@ -5945,7 +5945,7 @@ class _a extends qt {
|
|
|
5945
5945
|
return this._def.type;
|
|
5946
5946
|
}
|
|
5947
5947
|
}
|
|
5948
|
-
class
|
|
5948
|
+
class Ui extends Ut {
|
|
5949
5949
|
_parse(t) {
|
|
5950
5950
|
const { status: r, ctx: n } = this._processInputParams(t);
|
|
5951
5951
|
if (n.common.async)
|
|
@@ -5959,10 +5959,10 @@ class qi extends qt {
|
|
|
5959
5959
|
}
|
|
5960
5960
|
}
|
|
5961
5961
|
static create(t, r) {
|
|
5962
|
-
return new
|
|
5962
|
+
return new Ui({ in: t, out: r, typeName: It.ZodPipeline });
|
|
5963
5963
|
}
|
|
5964
5964
|
}
|
|
5965
|
-
class Bi extends
|
|
5965
|
+
class Bi extends Ut {
|
|
5966
5966
|
_parse(t) {
|
|
5967
5967
|
const r = this._def.innerType._parse(t), n = (i) => (wn(i) && (i.value = Object.freeze(i.value)), i);
|
|
5968
5968
|
return Ai(r) ? r.then((i) => n(i)) : n(r);
|
|
@@ -5996,9 +5996,9 @@ var It;
|
|
|
5996
5996
|
(function(e) {
|
|
5997
5997
|
e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
|
|
5998
5998
|
})(It || (It = {}));
|
|
5999
|
-
const M0 = lr.create, I0 = en.create, m2 = _s.create, b2 = rn.create, T0 = Si.create, y2 = xn.create, g2 = ys.create, v2 = ki.create, _2 = Ei.create, Vo = Wn.create, w2 = vn.create, x2 = Dr.create, A2 = gs.create, x1 = mr.create, rs = me.create, S2 = me.strictCreate, A1 = Mi.create, k2 = js.create, E2 = Ii.create, S1 = Rr.create, M2 = zs.create, I2 = vs.create, T2 = An.create, R2 = Hn.create, N2 = Ti.create, O2 = Ri.create, C2 = nn.create, B2 = Ni.create, P2 = Yn.create, R0 = pr.create, L2 = Mr.create, j2 = sn.create, z2 = pr.createWithPreprocess, $2 =
|
|
5999
|
+
const M0 = lr.create, I0 = en.create, m2 = _s.create, b2 = rn.create, T0 = Si.create, y2 = xn.create, g2 = ys.create, v2 = ki.create, _2 = Ei.create, Vo = Wn.create, w2 = vn.create, x2 = Dr.create, A2 = gs.create, x1 = mr.create, rs = me.create, S2 = me.strictCreate, A1 = Mi.create, k2 = js.create, E2 = Ii.create, S1 = Rr.create, M2 = zs.create, I2 = vs.create, T2 = An.create, R2 = Hn.create, N2 = Ti.create, O2 = Ri.create, C2 = nn.create, B2 = Ni.create, P2 = Yn.create, R0 = pr.create, L2 = Mr.create, j2 = sn.create, z2 = pr.createWithPreprocess, $2 = Ui.create, U2 = { string: (e) => lr.create({ ...e, coerce: !0 }), number: (e) => en.create({ ...e, coerce: !0 }), boolean: (e) => Si.create({ ...e, coerce: !0 }), bigint: (e) => rn.create({ ...e, coerce: !0 }), date: (e) => xn.create({ ...e, coerce: !0 }) }, q2 = Mt, N0 = Object.freeze(Object.defineProperty({ __proto__: null, BRAND: l2, DIRTY: bs, EMPTY_PATH: [], INVALID: Mt, NEVER: q2, OK: Ve, ParseStatus: He, Schema: Ut, ZodAny: Wn, ZodArray: mr, ZodBigInt: rn, ZodBoolean: Si, ZodBranded: _a, ZodCatch: Ci, ZodDate: xn, ZodDefault: Oi, ZodDiscriminatedUnion: js, ZodEffects: pr, ZodEnum: nn, ZodError: Je, get ZodFirstPartyTypeKind() {
|
|
6000
6000
|
return It;
|
|
6001
|
-
}, ZodFunction: Hn, ZodIntersection: Ii, ZodIssueCode: J, ZodLazy: Ti, ZodLiteral: Ri, ZodMap: vs, ZodNaN: _s, ZodNativeEnum: Ni, ZodNever: Dr, ZodNull: Ei, ZodNullable: sn, ZodNumber: en, ZodObject: me, ZodOptional: Mr, ZodParsedType: yt, ZodPipeline:
|
|
6001
|
+
}, ZodFunction: Hn, ZodIntersection: Ii, ZodIssueCode: J, ZodLazy: Ti, ZodLiteral: Ri, ZodMap: vs, ZodNaN: _s, ZodNativeEnum: Ni, ZodNever: Dr, ZodNull: Ei, ZodNullable: sn, ZodNumber: en, ZodObject: me, ZodOptional: Mr, ZodParsedType: yt, ZodPipeline: Ui, ZodPromise: Yn, ZodReadonly: Bi, ZodRecord: zs, ZodSchema: Ut, ZodSet: An, ZodString: lr, ZodSymbol: ys, ZodTransformer: pr, ZodTuple: Rr, ZodType: Ut, ZodUndefined: ki, ZodUnion: Mi, ZodUnknown: vn, ZodVoid: gs, addIssueToContext: ft, any: Vo, array: x1, bigint: b2, boolean: T0, coerce: U2, custom: E0, date: y2, datetimeRegex: _1, defaultErrorMap: Kn, discriminatedUnion: k2, effect: R0, enum: C2, function: R2, getErrorMap: ps, getParsedType: jr, instanceof: (e, t = { message: `Input not instance of ${e.name}` }) => E0((r) => r instanceof e, t), intersection: E2, isAborted: Do, isAsync: Ai, isDirty: Fo, isValid: wn, late: p2, lazy: N2, literal: O2, makeIssue: ms, map: I2, nan: m2, nativeEnum: B2, never: x2, null: _2, nullable: j2, number: I0, object: rs, get objectUtil() {
|
|
6002
6002
|
return Ho;
|
|
6003
6003
|
}, oboolean: () => T0().optional(), onumber: () => I0().optional(), optional: L2, ostring: () => M0().optional(), pipeline: $2, preprocess: z2, promise: P2, quotelessJson: (e) => JSON.stringify(e, null, 2).replace(/"([^"]+)":/g, "$1:"), record: M2, set: T2, setErrorMap: function(e) {
|
|
6004
6004
|
y1 = e;
|
|
@@ -6078,18 +6078,18 @@ const D2 = ["bool", "int", "uint", "bytes", "string", "address", "tuple"], k1 =
|
|
|
6078
6078
|
if (!Oe(e)) throw new Error("Invalid hex string");
|
|
6079
6079
|
const [t, r] = e.startsWith("-") ? [!0, e.slice(1)] : [!1, e], n = BigInt(r);
|
|
6080
6080
|
return n > Number.MAX_SAFE_INTEGER ? t ? -n : n : n < Number.MIN_SAFE_INTEGER ? n : t ? -1 * Number(n) : Number(n);
|
|
6081
|
-
},
|
|
6081
|
+
}, Us = (e) => {
|
|
6082
6082
|
if ((typeof e == "number" || typeof e == "bigint") && e < 0) return `-0x${e.toString(16).slice(1)}`;
|
|
6083
6083
|
if ((typeof e == "number" || typeof e == "bigint") && e >= 0) return `0x${e.toString(16)}`;
|
|
6084
6084
|
if (typeof e == "string" && Oe(e)) {
|
|
6085
6085
|
const [t, r] = e.startsWith("-") ? [!0, e.slice(1)] : [!1, e];
|
|
6086
6086
|
return `${t ? "-" : ""}0x${r.split(/^(-)?0(x|X)/).slice(-1)[0].replace(/^0+/, "").toLowerCase()}`;
|
|
6087
6087
|
}
|
|
6088
|
-
if (typeof e == "string" && !Oe(e)) return
|
|
6088
|
+
if (typeof e == "string" && !Oe(e)) return Us(BigInt(e));
|
|
6089
6089
|
throw new Ou(e);
|
|
6090
6090
|
}, Ko = (e, t, r = "0") => {
|
|
6091
6091
|
if (typeof e == "string" && !Oe(e)) return e.padStart(t, r);
|
|
6092
|
-
const n = typeof e == "string" && Oe(e) ? e :
|
|
6092
|
+
const n = typeof e == "string" && Oe(e) ? e : Us(e), [i, s] = n.startsWith("-") ? ["-0x", n.slice(3)] : ["0x", n.slice(2)];
|
|
6093
6093
|
return `${i}${s.padStart(t, r)}`;
|
|
6094
6094
|
};
|
|
6095
6095
|
function As(e) {
|
|
@@ -6106,16 +6106,16 @@ function L0(e) {
|
|
|
6106
6106
|
}
|
|
6107
6107
|
function xa(e) {
|
|
6108
6108
|
let t = 0;
|
|
6109
|
-
if (!e.startsWith("0") || e[1] !== "x" && e[1] !== "X" || (t = 2), e.length % 2 != 0) throw new
|
|
6109
|
+
if (!e.startsWith("0") || e[1] !== "x" && e[1] !== "X" || (t = 2), e.length % 2 != 0) throw new qo(`hex string has odd length: ${e}`);
|
|
6110
6110
|
const r = (e.length - t) / 2, n = new Uint8Array(r);
|
|
6111
6111
|
for (let i = 0, s = t; i < r; i += 1) {
|
|
6112
6112
|
const a = L0(e.charCodeAt(s++)), o = L0(e.charCodeAt(s++));
|
|
6113
|
-
if (a === void 0 || o === void 0) throw new
|
|
6113
|
+
if (a === void 0 || o === void 0) throw new qo(`Invalid byte sequence ("${e[s - 2]}${e[s - 1]}" in "${e}").`);
|
|
6114
6114
|
n[i] = 16 * a + o;
|
|
6115
6115
|
}
|
|
6116
6116
|
return n;
|
|
6117
6117
|
}
|
|
6118
|
-
function
|
|
6118
|
+
function qs(e) {
|
|
6119
6119
|
var t;
|
|
6120
6120
|
return e instanceof Uint8Array || ((t = e == null ? void 0 : e.constructor) === null || t === void 0 ? void 0 : t.name) !== "Uint8Array" ? e : Uint8Array.from(e);
|
|
6121
6121
|
}
|
|
@@ -6124,7 +6124,7 @@ const W2 = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6124
6124
|
if (e >= 65 && e <= 70) return e - 55;
|
|
6125
6125
|
if (e >= 97 && e <= 102) return e - 87;
|
|
6126
6126
|
throw new Error(`Invalid code point: ${e}`);
|
|
6127
|
-
}, ensureIfUint8Array:
|
|
6127
|
+
}, ensureIfUint8Array: qs, ethAbiToJsonSchema: E1, fetchArrayElement: wa, hexToNumber: $s, hexToUint8Array: xa, numberToHex: Us, padLeft: Ko, parseBaseType: Mn, transformJsonDataToAbiFormat: ns, uint8ArrayToHexString: As }, Symbol.toStringTag, { value: "Module" })), Wo = (e) => {
|
|
6128
6128
|
var t, r;
|
|
6129
6129
|
return e instanceof Uint8Array || ((t = e == null ? void 0 : e.constructor) === null || t === void 0 ? void 0 : t.name) === "Uint8Array" || ((r = e == null ? void 0 : e.constructor) === null || r === void 0 ? void 0 : r.name) === "Buffer";
|
|
6130
6130
|
}, M1 = (e, t = { abiType: "bytes" }) => {
|
|
@@ -6147,7 +6147,7 @@ const W2 = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6147
6147
|
let r;
|
|
6148
6148
|
return r = Wo(e) ? As(e) : typeof e != "string" || Oe(e) || e.toLowerCase().startsWith("0x") ? e : `0x${e}`, !!/^(0x)?[0-9a-f]{40}$/i.test(r) && (!(!/^(0x|0X)?[0-9a-f]{40}$/.test(r) && !/^(0x|0X)?[0-9A-F]{40}$/.test(r)) || !t || ((n) => {
|
|
6149
6149
|
if (!/^(0x)?[0-9a-f]{40}$/i.test(n)) return !1;
|
|
6150
|
-
const i = n.slice(2), s =
|
|
6150
|
+
const i = n.slice(2), s = qn(i.toLowerCase()), a = As(va(qs(s))).slice(2);
|
|
6151
6151
|
for (let o = 0; o < 40; o += 1) if (parseInt(a[o], 16) > 7 && i[o].toUpperCase() !== i[o] || parseInt(a[o], 16) <= 7 && i[o].toLowerCase() !== i[o]) return !1;
|
|
6152
6152
|
return !0;
|
|
6153
6153
|
})(r));
|
|
@@ -6261,7 +6261,7 @@ class zn {
|
|
|
6261
6261
|
});
|
|
6262
6262
|
}
|
|
6263
6263
|
}
|
|
6264
|
-
const
|
|
6264
|
+
const qi = new class {
|
|
6265
6265
|
constructor() {
|
|
6266
6266
|
this._validator = zn.factory();
|
|
6267
6267
|
}
|
|
@@ -6283,21 +6283,21 @@ function R1(e) {
|
|
|
6283
6283
|
}
|
|
6284
6284
|
BigInt(0), BigInt(1), BigInt(1e3), BigInt(1e3), BigInt(1e3), BigInt(1e3), BigInt(1e6), BigInt(1e6), BigInt(1e6), BigInt(1e6), BigInt(1e9), BigInt(1e9), BigInt(1e9), BigInt(1e9), BigInt(1e9), BigInt(1e12), BigInt(1e12), BigInt(1e12), BigInt(1e15), BigInt(1e15), BigInt(1e15), BigInt("1000000000000000000"), BigInt("1000000000000000000000"), BigInt("1000000000000000000000"), BigInt("1000000000000000000000000"), BigInt("1000000000000000000000000000"), BigInt("1000000000000000000000000000000");
|
|
6285
6285
|
const Pi = (e) => {
|
|
6286
|
-
if (
|
|
6286
|
+
if (qi.validate(["bytes"], [e]), R1(e)) return e;
|
|
6287
6287
|
if (Array.isArray(e)) return new Uint8Array(e);
|
|
6288
6288
|
if (typeof e == "string") return xa(e);
|
|
6289
|
-
throw new
|
|
6289
|
+
throw new qo(e);
|
|
6290
6290
|
}, { uint8ArrayToHexString: Y2 } = W2, Hs = (e) => Y2(Pi(e)), Li = (e) => typeof e == "string" && e.slice(0, 2).toLowerCase() !== "0x" ? Pi(`0x${e}`) : Pi(e), Q2 = (e, t) => {
|
|
6291
|
-
typeof e != "bigint" &&
|
|
6292
|
-
let r =
|
|
6291
|
+
typeof e != "bigint" && qi.validate(["int"], [e]);
|
|
6292
|
+
let r = Us(e);
|
|
6293
6293
|
return t && (r.startsWith("-") || r.length % 2 != 1 ? r.length % 2 == 0 && r.startsWith("-") && (r = "-0x0".concat(r.slice(3))) : r = "0x0".concat(r.slice(2))), r;
|
|
6294
6294
|
}, N1 = (e) => {
|
|
6295
|
-
|
|
6295
|
+
qi.validate(["string"], [e]);
|
|
6296
6296
|
let t = e.replace(/^(?:\u0000)/, "");
|
|
6297
6297
|
return t = t.replace(/(?:\u0000)$/, ""), Hs(new TextEncoder().encode(t));
|
|
6298
|
-
}, G2 = N1, J2 =
|
|
6298
|
+
}, G2 = N1, J2 = qn, Sa = (e) => {
|
|
6299
6299
|
if (!vi(e, !1)) throw new d1(e);
|
|
6300
|
-
const t = e.toLowerCase().replace(/^0x/i, ""), r = As(va(
|
|
6300
|
+
const t = e.toLowerCase().replace(/^0x/i, ""), r = As(va(qs(J2(t))));
|
|
6301
6301
|
if (Qe(r) || r === "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470") return "";
|
|
6302
6302
|
let n = "0x";
|
|
6303
6303
|
const i = r.replace(/^0x/i, "");
|
|
@@ -6399,12 +6399,12 @@ var O1 = { exports: {} };
|
|
|
6399
6399
|
return c ? (d = r ? r + c : c, this._events[d] && a(this, d)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
6400
6400
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = r, o.EventEmitter = o, e.exports = o;
|
|
6401
6401
|
})(O1);
|
|
6402
|
-
const X2 = Jn(O1.exports), Go = Qe, z0 = (e, t, r = "0") => typeof e == "string" ? Oe(e) ? Ko(e, t, r) : e.padStart(t, r) : (
|
|
6402
|
+
const X2 = Jn(O1.exports), Go = Qe, z0 = (e, t, r = "0") => typeof e == "string" ? Oe(e) ? Ko(e, t, r) : e.padStart(t, r) : (qi.validate(["int"], [e]), Ko(e, t, r)), C1 = "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", tl = (e) => {
|
|
6403
6403
|
let t;
|
|
6404
|
-
t = typeof e == "string" ? e.startsWith("0x") && Oe(e) ? Li(e) :
|
|
6404
|
+
t = typeof e == "string" ? e.startsWith("0x") && Oe(e) ? Li(e) : qn(e) : e;
|
|
6405
6405
|
const r = ((n) => {
|
|
6406
6406
|
let i;
|
|
6407
|
-
return i = typeof n == "bigint" || typeof n == "number" ?
|
|
6407
|
+
return i = typeof n == "bigint" || typeof n == "number" ? qn(n.toString()) : Array.isArray(n) ? new Uint8Array(n) : typeof n != "string" || Oe(n) ? Pi(n) : qn(n), Hs(va(qs(i)));
|
|
6408
6408
|
})(t);
|
|
6409
6409
|
return r === C1 ? void 0 : r;
|
|
6410
6410
|
}, ka = (e) => {
|
|
@@ -6417,7 +6417,7 @@ const X2 = Jn(O1.exports), Go = Qe, z0 = (e, t, r = "0") => typeof e == "string"
|
|
|
6417
6417
|
e[6] = 15 & e[6] | 64, e[8] = 63 & e[8] | 128;
|
|
6418
6418
|
const t = Hs(e);
|
|
6419
6419
|
return [t.substring(2, 10), t.substring(10, 14), t.substring(14, 18), t.substring(18, 22), t.substring(22, 34)].join("-");
|
|
6420
|
-
}, B1 = (e) => !Array.isArray(e) && !!e && e.jsonrpc === "2.0" && "result" in e && Qe(e.error) && (typeof e.id == "number" || typeof e.id == "string"), P1 = (e) => !Array.isArray(e) && e.jsonrpc === "2.0" && !!e && Qe(e.result) && "error" in e && (typeof e.id == "number" || typeof e.id == "string"), nl = (e) => !(Array.isArray(e) || !e || e.jsonrpc !== "2.0" || Qe(e.params) || Qe(e.method)), $0 = (e) => B1(e) || P1(e),
|
|
6420
|
+
}, B1 = (e) => !Array.isArray(e) && !!e && e.jsonrpc === "2.0" && "result" in e && Qe(e.error) && (typeof e.id == "number" || typeof e.id == "string"), P1 = (e) => !Array.isArray(e) && e.jsonrpc === "2.0" && !!e && Qe(e.result) && "error" in e && (typeof e.id == "number" || typeof e.id == "string"), nl = (e) => !(Array.isArray(e) || !e || e.jsonrpc !== "2.0" || Qe(e.params) || Qe(e.method)), $0 = (e) => B1(e) || P1(e), U0 = (e) => Array.isArray(e) && e.length > 0 && ((t) => Array.isArray(t) ? t.every($0) : $0(t))(e), q0 = (e) => {
|
|
6421
6421
|
var t, r, n, i;
|
|
6422
6422
|
return { jsonrpc: (t = e.jsonrpc) !== null && t !== void 0 ? t : "2.0", id: (n = (r = e.id) !== null && r !== void 0 ? r : void 0) !== null && n !== void 0 ? n : rl(), method: e.method, params: (i = e.params) !== null && i !== void 0 ? i : void 0 };
|
|
6423
6423
|
};
|
|
@@ -6547,14 +6547,14 @@ class j1 extends Ps {
|
|
|
6547
6547
|
_getChainId() {
|
|
6548
6548
|
return H0(this, void 0, void 0, function* () {
|
|
6549
6549
|
var t;
|
|
6550
|
-
const r = yield this.request(
|
|
6550
|
+
const r = yield this.request(q0({ method: "eth_chainId", params: [] }));
|
|
6551
6551
|
return (t = r == null ? void 0 : r.result) !== null && t !== void 0 ? t : "";
|
|
6552
6552
|
});
|
|
6553
6553
|
}
|
|
6554
6554
|
_getAccounts() {
|
|
6555
6555
|
return H0(this, void 0, void 0, function* () {
|
|
6556
6556
|
var t;
|
|
6557
|
-
const r = yield this.request(
|
|
6557
|
+
const r = yield this.request(q0({ method: "eth_accounts", params: [] }));
|
|
6558
6558
|
return (t = r == null ? void 0 : r.result) !== null && t !== void 0 ? t : [];
|
|
6559
6559
|
});
|
|
6560
6560
|
}
|
|
@@ -6610,7 +6610,7 @@ class al extends j1 {
|
|
|
6610
6610
|
return this._socketConnection;
|
|
6611
6611
|
}
|
|
6612
6612
|
constructor(t, r, n) {
|
|
6613
|
-
if (super(), this._connectionStatus = "connecting", this._onMessageHandler = this._onMessage.bind(this), this._onOpenHandler = this._onConnect.bind(this), this._onCloseHandler = this._onCloseEvent.bind(this), this._onErrorHandler = this._onError.bind(this), !this._validateProviderPath(t)) throw new
|
|
6613
|
+
if (super(), this._connectionStatus = "connecting", this._onMessageHandler = this._onMessage.bind(this), this._onOpenHandler = this._onConnect.bind(this), this._onCloseHandler = this._onCloseEvent.bind(this), this._onErrorHandler = this._onError.bind(this), !this._validateProviderPath(t)) throw new Uo(t);
|
|
6614
6614
|
this._socketPath = t, this._socketOptions = r, this._reconnectOptions = Object.assign(Object.assign({}, ol), n ?? {}), this._pendingRequestsQueue = /* @__PURE__ */ new Map(), this._sentRequestsQueue = /* @__PURE__ */ new Map(), this._init(), this.connect(), this.chunkResponseParser = new sl(this._eventEmitter, this._reconnectOptions.autoReconnect), this.chunkResponseParser.onError(() => {
|
|
6615
6615
|
this._clearQueues();
|
|
6616
6616
|
}), this.isReconnecting = !1;
|
|
@@ -6622,7 +6622,7 @@ class al extends j1 {
|
|
|
6622
6622
|
try {
|
|
6623
6623
|
this._openSocketConnection(), this._connectionStatus = "connecting", this._addSocketListeners();
|
|
6624
6624
|
} catch (t) {
|
|
6625
|
-
if (!this.isReconnecting) throw this._connectionStatus = "disconnected", t && t.message ? new $i(`Error while connecting to ${this._socketPath}. Reason: ${t.message}`) : new
|
|
6625
|
+
if (!this.isReconnecting) throw this._connectionStatus = "disconnected", t && t.message ? new $i(`Error while connecting to ${this._socketPath}. Reason: ${t.message}`) : new Uo(this._socketPath);
|
|
6626
6626
|
setImmediate(() => {
|
|
6627
6627
|
this._reconnect();
|
|
6628
6628
|
});
|
|
@@ -6720,9 +6720,9 @@ class al extends j1 {
|
|
|
6720
6720
|
const r = this._parseResponses(t);
|
|
6721
6721
|
if (!Go(r) && r.length !== 0) for (const n of r) {
|
|
6722
6722
|
if (nl(n) && n.method.endsWith("_subscription")) return void this._eventEmitter.emit("message", n);
|
|
6723
|
-
const i =
|
|
6723
|
+
const i = U0(n) ? n[0].id : n.id, s = this._sentRequestsQueue.get(i);
|
|
6724
6724
|
if (!s) return;
|
|
6725
|
-
(
|
|
6725
|
+
(U0(n) || B1(n) || P1(n)) && (this._eventEmitter.emit("message", n), s.deferredPromise.resolve(n)), this._sentRequestsQueue.delete(i);
|
|
6726
6726
|
}
|
|
6727
6727
|
}
|
|
6728
6728
|
clearQueues(t) {
|
|
@@ -6742,7 +6742,7 @@ var D0;
|
|
|
6742
6742
|
})(D0 || (D0 = {}));
|
|
6743
6743
|
var Jo = { exports: {} };
|
|
6744
6744
|
(function(e, t) {
|
|
6745
|
-
var r = typeof globalThis < "u" && globalThis || typeof self < "u" && self ||
|
|
6745
|
+
var r = typeof globalThis < "u" && globalThis || typeof self < "u" && self || qr !== void 0 && qr, n = function() {
|
|
6746
6746
|
function s() {
|
|
6747
6747
|
this.fetch = !1, this.DOMException = r.DOMException;
|
|
6748
6748
|
}
|
|
@@ -6750,7 +6750,7 @@ var Jo = { exports: {} };
|
|
|
6750
6750
|
}();
|
|
6751
6751
|
(function(s) {
|
|
6752
6752
|
(function(a) {
|
|
6753
|
-
var o = s !== void 0 && s || typeof self < "u" && self ||
|
|
6753
|
+
var o = s !== void 0 && s || typeof self < "u" && self || qr !== void 0 && qr || {}, c = "URLSearchParams" in o, d = "Symbol" in o && "iterator" in Symbol, h = "FileReader" in o && "Blob" in o && function() {
|
|
6754
6754
|
try {
|
|
6755
6755
|
return new Blob(), !0;
|
|
6756
6756
|
} catch {
|
|
@@ -6936,9 +6936,9 @@ var Jo = { exports: {} };
|
|
|
6936
6936
|
return mt.indexOf(`
|
|
6937
6937
|
`) === 0 ? mt.substr(1, mt.length) : mt;
|
|
6938
6938
|
}).forEach(function(mt) {
|
|
6939
|
-
var
|
|
6939
|
+
var qt = mt.split(":"), lt = qt.shift().trim();
|
|
6940
6940
|
if (lt) {
|
|
6941
|
-
var kt =
|
|
6941
|
+
var kt = qt.join(":").trim();
|
|
6942
6942
|
try {
|
|
6943
6943
|
G.append(lt, kt);
|
|
6944
6944
|
} catch (Ft) {
|
|
@@ -7019,7 +7019,7 @@ var dl = function(e, t, r, n) {
|
|
|
7019
7019
|
};
|
|
7020
7020
|
class Ea extends Ps {
|
|
7021
7021
|
constructor(t, r) {
|
|
7022
|
-
if (super(), !Ea.validateClientUrl(t)) throw new
|
|
7022
|
+
if (super(), !Ea.validateClientUrl(t)) throw new Uo(t);
|
|
7023
7023
|
this.clientUrl = t, this.httpProviderOptions = r;
|
|
7024
7024
|
}
|
|
7025
7025
|
static validateClientUrl(t) {
|
|
@@ -7314,7 +7314,7 @@ function ji(...e) {
|
|
|
7314
7314
|
return r;
|
|
7315
7315
|
}
|
|
7316
7316
|
const Ra = (e) => (gl << BigInt(e - 1)) - is, co = (e) => new Uint8Array(e), G0 = (e) => Uint8Array.from(e);
|
|
7317
|
-
function
|
|
7317
|
+
function U1(e, t, r) {
|
|
7318
7318
|
if (typeof e != "number" || e < 2) throw new Error("hashLen must be a number");
|
|
7319
7319
|
if (typeof t != "number" || t < 2) throw new Error("qByteLen must be a number");
|
|
7320
7320
|
if (typeof r != "function") throw new Error("hmacFn must be a function");
|
|
@@ -7360,7 +7360,7 @@ const Sl = Object.freeze(Object.defineProperty({ __proto__: null, abytes: Hi, bi
|
|
|
7360
7360
|
return t;
|
|
7361
7361
|
}, bitMask: Ra, bitSet: function(e, t, r) {
|
|
7362
7362
|
return e | (r ? is : Z0) << BigInt(t);
|
|
7363
|
-
}, bytesToHex: Qn, bytesToNumberBE: bn, bytesToNumberLE: Ia, concatBytes: ji, createHmacDrbg:
|
|
7363
|
+
}, bytesToHex: Qn, bytesToNumberBE: bn, bytesToNumberLE: Ia, concatBytes: ji, createHmacDrbg: U1, ensureBytes: fr, equalBytes: function(e, t) {
|
|
7364
7364
|
if (e.length !== t.length) return !1;
|
|
7365
7365
|
let r = 0;
|
|
7366
7366
|
for (let n = 0; n < e.length; n++) r |= e[n] ^ t[n];
|
|
@@ -7445,7 +7445,7 @@ function Ml(e) {
|
|
|
7445
7445
|
}
|
|
7446
7446
|
BigInt(9), BigInt(16);
|
|
7447
7447
|
const Il = ["create", "isValid", "is0", "neg", "inv", "sqrt", "sqr", "eql", "add", "sub", "mul", "pow", "div", "addN", "subN", "mulN", "sqrN"];
|
|
7448
|
-
function
|
|
7448
|
+
function q1(e, t) {
|
|
7449
7449
|
const r = t !== void 0 ? t : e.toString(2).length;
|
|
7450
7450
|
return { nBitLength: r, nByteLength: Math.ceil(r / 8) };
|
|
7451
7451
|
}
|
|
@@ -7461,7 +7461,7 @@ function td(e) {
|
|
|
7461
7461
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7462
7462
|
const Tl = BigInt(0), ho = BigInt(1);
|
|
7463
7463
|
function D1(e) {
|
|
7464
|
-
return zi(e.Fp, Il.reduce((t, r) => (t[r] = "function", t), { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" })), zi(e, { n: "bigint", h: "bigint", Gx: "field", Gy: "field" }, { nBitLength: "isSafeInteger", nByteLength: "isSafeInteger" }), Object.freeze({ ...
|
|
7464
|
+
return zi(e.Fp, Il.reduce((t, r) => (t[r] = "function", t), { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" })), zi(e, { n: "bigint", h: "bigint", Gx: "field", Gy: "field" }, { nBitLength: "isSafeInteger", nByteLength: "isSafeInteger" }), Object.freeze({ ...q1(e.n, e.nBitLength), ...e, p: e.Fp.ORDER });
|
|
7465
7465
|
}
|
|
7466
7466
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7467
7467
|
const { bytesToNumberBE: Rl, hexToBytes: Nl } = Sl, yn = { Err: class extends Error {
|
|
@@ -7491,7 +7491,7 @@ const { bytesToNumberBE: Rl, hexToBytes: Nl } = Sl, yn = { Err: class extends Er
|
|
|
7491
7491
|
return 1 & h.length ? `0${h}` : h;
|
|
7492
7492
|
}, n = t(r(e.s)), i = t(r(e.r)), s = n.length / 2, a = i.length / 2, o = r(s), c = r(a);
|
|
7493
7493
|
return `30${r(a + s + 4)}02${c}${i}02${o}${n}`;
|
|
7494
|
-
} },
|
|
7494
|
+
} }, Ur = BigInt(0), or = BigInt(1);
|
|
7495
7495
|
BigInt(2);
|
|
7496
7496
|
const ed = BigInt(3);
|
|
7497
7497
|
function Ol(e) {
|
|
@@ -7517,7 +7517,7 @@ function Ol(e) {
|
|
|
7517
7517
|
}
|
|
7518
7518
|
if (!r.eql(r.sqr(t.Gy), s(t.Gx))) throw new Error("bad generator point: equation left != right");
|
|
7519
7519
|
function a(A) {
|
|
7520
|
-
return typeof A == "bigint" &&
|
|
7520
|
+
return typeof A == "bigint" && Ur < A && A < t.n;
|
|
7521
7521
|
}
|
|
7522
7522
|
function o(A) {
|
|
7523
7523
|
if (!a(A)) throw new Error("Expected valid bigint: 0 < bigint < curve.n");
|
|
@@ -7626,12 +7626,12 @@ function Ol(e) {
|
|
|
7626
7626
|
}
|
|
7627
7627
|
multiplyUnsafe(I) {
|
|
7628
7628
|
const x = l.ZERO;
|
|
7629
|
-
if (I ===
|
|
7629
|
+
if (I === Ur) return x;
|
|
7630
7630
|
if (o(I), I === or) return this;
|
|
7631
7631
|
const { endo: M } = t;
|
|
7632
7632
|
if (!M) return v.unsafeLadder(this, I);
|
|
7633
7633
|
let { k1neg: k, k1: O, k2neg: E, k2: R } = M.splitScalar(I), L = x, z = x, f = this;
|
|
7634
|
-
for (; O >
|
|
7634
|
+
for (; O > Ur || R > Ur; ) O & or && (L = L.add(f)), R & or && (z = z.add(f)), f = f.double(), O >>= or, R >>= or;
|
|
7635
7635
|
return k && (L = L.negate()), E && (z = z.negate()), z = new l(r.mul(z.px, M.beta), z.py, z.pz), L.add(z);
|
|
7636
7636
|
}
|
|
7637
7637
|
multiply(I) {
|
|
@@ -7649,7 +7649,7 @@ function Ol(e) {
|
|
|
7649
7649
|
return l.normalizeZ([x, M])[0];
|
|
7650
7650
|
}
|
|
7651
7651
|
multiplyAndAddUnsafe(I, x, M) {
|
|
7652
|
-
const k = l.BASE, O = (R, L) => L !==
|
|
7652
|
+
const k = l.BASE, O = (R, L) => L !== Ur && L !== or && R.equals(k) ? R.multiply(L) : R.multiplyUnsafe(L), E = O(this, x).add(O(I, M));
|
|
7653
7653
|
return E.is0() ? void 0 : E;
|
|
7654
7654
|
}
|
|
7655
7655
|
toAffine(I) {
|
|
@@ -7739,7 +7739,7 @@ function Cl(e) {
|
|
|
7739
7739
|
}
|
|
7740
7740
|
{
|
|
7741
7741
|
const w = bn(u);
|
|
7742
|
-
if (!(
|
|
7742
|
+
if (!(Ur < (y = w) && y < r.ORDER)) throw new Error("Point is not on curve");
|
|
7743
7743
|
const P = h(w);
|
|
7744
7744
|
let N;
|
|
7745
7745
|
try {
|
|
@@ -7830,7 +7830,7 @@ function Cl(e) {
|
|
|
7830
7830
|
}, E = Ra(t.nBitLength);
|
|
7831
7831
|
function R(p) {
|
|
7832
7832
|
if (typeof p != "bigint") throw new Error("bigint expected");
|
|
7833
|
-
if (!(
|
|
7833
|
+
if (!(Ur <= p && p < E)) throw new Error(`bigint expected < 2^${t.nBitLength}`);
|
|
7834
7834
|
return Dn(p, t.nByteLength);
|
|
7835
7835
|
}
|
|
7836
7836
|
function L(p, g, m = z) {
|
|
@@ -7848,13 +7848,13 @@ function Cl(e) {
|
|
|
7848
7848
|
const G = k(D);
|
|
7849
7849
|
if (!l(G)) return;
|
|
7850
7850
|
const Et = o(G), ot = c.BASE.multiply(G).toAffine(), mt = a(ot.x);
|
|
7851
|
-
if (mt ===
|
|
7852
|
-
const
|
|
7853
|
-
if (
|
|
7854
|
-
let lt = (ot.x === mt ? 0 : 2) | Number(ot.y & or), kt =
|
|
7855
|
-
return w && v(
|
|
7851
|
+
if (mt === Ur) return;
|
|
7852
|
+
const qt = a(Et * a(H + mt * Z));
|
|
7853
|
+
if (qt === Ur) return;
|
|
7854
|
+
let lt = (ot.x === mt ? 0 : 2) | Number(ot.y & or), kt = qt;
|
|
7855
|
+
return w && v(qt) && (kt = function(Ft) {
|
|
7856
7856
|
return v(Ft) ? a(-Ft) : Ft;
|
|
7857
|
-
}(
|
|
7857
|
+
}(qt), lt ^= 1), new I(mt, kt, lt);
|
|
7858
7858
|
} };
|
|
7859
7859
|
}
|
|
7860
7860
|
const z = { lowS: t.lowS, prehash: !1 }, f = { lowS: t.lowS, prehash: !1 };
|
|
@@ -7866,7 +7866,7 @@ function Cl(e) {
|
|
|
7866
7866
|
return c.fromHex(g).multiply(d(p)).toRawBytes(m);
|
|
7867
7867
|
}, sign: function(p, g, m = z) {
|
|
7868
7868
|
const { seed: u, k2sig: y } = L(p, g, m), w = t;
|
|
7869
|
-
return
|
|
7869
|
+
return U1(w.hash.outputLen, w.nByteLength, w.hmac)(u, y);
|
|
7870
7870
|
}, verify: function(p, g, m, u = f) {
|
|
7871
7871
|
var ot;
|
|
7872
7872
|
const y = p;
|
|
@@ -7883,8 +7883,8 @@ function Cl(e) {
|
|
|
7883
7883
|
else {
|
|
7884
7884
|
if (typeof y != "object" || typeof y.r != "bigint" || typeof y.s != "bigint") throw new Error("PARSE");
|
|
7885
7885
|
{
|
|
7886
|
-
const { r: mt, s:
|
|
7887
|
-
N = new I(mt,
|
|
7886
|
+
const { r: mt, s: qt } = y;
|
|
7887
|
+
N = new I(mt, qt);
|
|
7888
7888
|
}
|
|
7889
7889
|
}
|
|
7890
7890
|
j = c.fromHex(m);
|
|
@@ -7918,7 +7918,7 @@ BigInt(4);
|
|
|
7918
7918
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7919
7919
|
const rd = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), nd = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), Pl = BigInt(1), ta = BigInt(2), id = (e, t) => (e + t / ta) / t, ea = function(e, t, r = !1, n = {}) {
|
|
7920
7920
|
if (e <= Ne) throw new Error(`Expected Field ORDER > 0, got ${e}`);
|
|
7921
|
-
const { nBitLength: i, nByteLength: s } =
|
|
7921
|
+
const { nBitLength: i, nByteLength: s } = q1(e, t);
|
|
7922
7922
|
if (s > 2048) throw new Error("Field lengths over 2048 bytes are not supported");
|
|
7923
7923
|
const a = Ml(e), o = Object.freeze({ ORDER: e, BITS: i, BYTES: s, MASK: Ra(i), ZERO: Ne, ONE: we, create: (c) => Ye(c, e), isValid: (c) => {
|
|
7924
7924
|
if (typeof c != "bigint") throw new Error("Invalid field element: expected bigint, got " + typeof c);
|
|
@@ -8191,7 +8191,7 @@ class Re {
|
|
|
8191
8191
|
}
|
|
8192
8192
|
static fromAddress(t) {
|
|
8193
8193
|
if (!vi(t)) throw new d1(t);
|
|
8194
|
-
const r = BigInt(((s) => (
|
|
8194
|
+
const r = BigInt(((s) => (qi.validate(["hex"], [s]), $s(s)))(t)), n = r.toString(36), i = z0(n, 15);
|
|
8195
8195
|
return Re.fromBban(i.toUpperCase());
|
|
8196
8196
|
}
|
|
8197
8197
|
static toIban(t) {
|
|
@@ -8291,11 +8291,11 @@ Re._iso13616Prepare = (e) => {
|
|
|
8291
8291
|
}
|
|
8292
8292
|
}
|
|
8293
8293
|
}
|
|
8294
|
-
}(typeof self > "u" ?
|
|
8294
|
+
}(typeof self > "u" ? qr : self);
|
|
8295
8295
|
const Ca = { type: "array", items: Object.assign({}, { type: "object", properties: { address: { format: "address" }, storageKeys: { type: "array", items: { format: "bytes32" } } } }) };
|
|
8296
8296
|
Object.assign({}, Ca);
|
|
8297
|
-
const md = { type: "string", enum: ["goerli", "kovan", "mainnet", "rinkeby", "ropsten", "sepolia"] }, bd = { type: "string", enum: ["arrowGlacier", "berlin", "byzantium", "chainstart", "constantinople", "dao", "homestead", "istanbul", "london", "merge", "muirGlacier", "petersburg", "shanghai", "spuriousDragon", "tangerineWhistle"] },
|
|
8298
|
-
Object.assign({},
|
|
8297
|
+
const md = { type: "string", enum: ["goerli", "kovan", "mainnet", "rinkeby", "ropsten", "sepolia"] }, bd = { type: "string", enum: ["arrowGlacier", "berlin", "byzantium", "chainstart", "constantinople", "dao", "homestead", "istanbul", "london", "merge", "muirGlacier", "petersburg", "shanghai", "spuriousDragon", "tangerineWhistle"] }, Ul = { properties: { from: { format: "address" }, to: { oneOf: [{ format: "address" }, { type: "null" }] }, value: { format: "uint" }, gas: { format: "uint" }, gasPrice: { format: "uint" }, effectiveGasPrice: { format: "uint" }, type: { format: "uint" }, maxFeePerGas: { format: "uint" }, maxPriorityFeePerGas: { format: "uint" }, accessList: Object.assign({}, Ca), data: { format: "bytes" }, input: { format: "bytes" }, nonce: { format: "uint" }, chain: Object.assign({}, md), hardfork: Object.assign({}, bd), chainId: { format: "uint" }, networkId: { format: "uint" }, common: { type: "object", properties: { customChain: Object.assign({}, { type: "object", properties: { name: { format: "string" }, networkId: { format: "uint" }, chainId: { format: "uint" } } }), baseChain: Object.assign({}, md), hardfork: Object.assign({}, bd) } }, gasLimit: { format: "uint" }, v: { format: "uint" }, r: { format: "bytes32" }, s: { format: "bytes32" } } }, ql = { type: "object", properties: Object.assign(Object.assign({}, Ul.properties), { blockHash: { format: "bytes32" }, blockNumber: { format: "uint" }, hash: { format: "bytes32" }, transactionIndex: { format: "uint" }, from: { format: "address" }, to: { oneOf: [{ format: "address" }, { type: "null" }] }, value: { format: "uint" }, gas: { format: "uint" }, gasPrice: { format: "uint" }, effectiveGasPrice: { format: "uint" }, type: { format: "uint" }, maxFeePerGas: { format: "uint" }, maxPriorityFeePerGas: { format: "uint" }, accessList: Object.assign({}, Ca), data: { format: "bytes" }, input: { format: "bytes" }, nonce: { format: "uint" }, gasLimit: { format: "uint" }, v: { format: "uint" }, r: { format: "bytes32" }, s: { format: "bytes32" } }) }, yd = { type: "object", properties: { index: { format: "uint" }, validatorIndex: { format: "uint" }, address: { format: "address" }, amount: { format: "uint" } } };
|
|
8298
|
+
Object.assign({}, ql), Object.assign({}, yd), Object.assign({}, yd);
|
|
8299
8299
|
Object.assign({}, { type: "object", properties: { removed: { format: "bool" }, logIndex: { format: "uint" }, transactionIndex: { format: "uint" }, transactionHash: { format: "bytes32" }, blockHash: { format: "bytes32" }, blockNumber: { format: "uint" }, address: { format: "address" }, data: { format: "bytes" }, topics: { type: "array", items: { format: "bytes32" } } } });
|
|
8300
8300
|
Object.assign({}, { type: "object", properties: { key: { format: "bytes32" }, value: { format: "uint" }, proof: { type: "array", items: { format: "bytes32" } } } }), hi.HEX, fi.NUMBER;
|
|
8301
8301
|
const $n = /* @__PURE__ */ new Map();
|
|
@@ -8489,7 +8489,11 @@ class Vl {
|
|
|
8489
8489
|
return $l(t, r);
|
|
8490
8490
|
}
|
|
8491
8491
|
static signatureValidity(t, r, n) {
|
|
8492
|
-
|
|
8492
|
+
try {
|
|
8493
|
+
return J1(t, n).toLowerCase() === r.toLowerCase();
|
|
8494
|
+
} catch {
|
|
8495
|
+
return !1;
|
|
8496
|
+
}
|
|
8493
8497
|
}
|
|
8494
8498
|
}
|
|
8495
8499
|
var sa = { exports: {} };
|
|
@@ -8507,8 +8511,8 @@ var sa = { exports: {} };
|
|
|
8507
8511
|
T[C] = B >> 24 & 255, T[C + 1] = B >> 16 & 255, T[C + 2] = B >> 8 & 255, T[C + 3] = 255 & B, T[C + 4] = b >> 24 & 255, T[C + 5] = b >> 16 & 255, T[C + 6] = b >> 8 & 255, T[C + 7] = 255 & b;
|
|
8508
8512
|
}
|
|
8509
8513
|
function A(T, C, B, b, S) {
|
|
8510
|
-
var
|
|
8511
|
-
for (
|
|
8514
|
+
var q, F = 0;
|
|
8515
|
+
for (q = 0; q < S; q++) F |= T[C + q] ^ B[b + q];
|
|
8512
8516
|
return (1 & F - 1 >>> 8) - 1;
|
|
8513
8517
|
}
|
|
8514
8518
|
function I(T, C, B, b) {
|
|
@@ -8518,76 +8522,76 @@ var sa = { exports: {} };
|
|
|
8518
8522
|
return A(T, C, B, b, 32);
|
|
8519
8523
|
}
|
|
8520
8524
|
function M(T, C, B, b) {
|
|
8521
|
-
(function(S,
|
|
8522
|
-
for (var
|
|
8525
|
+
(function(S, q, F, W) {
|
|
8526
|
+
for (var U, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & F[0] | (255 & F[1]) << 8 | (255 & F[2]) << 16 | (255 & F[3]) << 24, X = 255 & F[4] | (255 & F[5]) << 8 | (255 & F[6]) << 16 | (255 & F[7]) << 24, dt = 255 & F[8] | (255 & F[9]) << 8 | (255 & F[10]) << 16 | (255 & F[11]) << 24, _t = 255 & F[12] | (255 & F[13]) << 8 | (255 & F[14]) << 16 | (255 & F[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 & q[0] | (255 & q[1]) << 8 | (255 & q[2]) << 16 | (255 & q[3]) << 24, xt = 255 & q[4] | (255 & q[5]) << 8 | (255 & q[6]) << 16 | (255 & q[7]) << 24, at = 255 & q[8] | (255 & q[9]) << 8 | (255 & q[10]) << 16 | (255 & q[11]) << 24, ut = 255 & q[12] | (255 & q[13]) << 8 | (255 & q[14]) << 16 | (255 & q[15]) << 24, At = 255 & W[8] | (255 & W[9]) << 8 | (255 & W[10]) << 16 | (255 & W[11]) << 24, it = 255 & F[16] | (255 & F[17]) << 8 | (255 & F[18]) << 16 | (255 & F[19]) << 24, pt = 255 & F[20] | (255 & F[21]) << 8 | (255 & F[22]) << 16 | (255 & F[23]) << 24, Bt = 255 & F[24] | (255 & F[25]) << 8 | (255 & F[26]) << 16 | (255 & F[27]) << 24, ct = 255 & F[28] | (255 & F[29]) << 8 | (255 & F[30]) << 16 | (255 & F[31]) << 24, K = 255 & W[12] | (255 & W[13]) << 8 | (255 & W[14]) << 16 | (255 & W[15]) << 24, Q = Y, st = gt, tt = X, et = dt, rt = _t, Ct = nt, jt = ht, Ot = xt, Vt = at, Yt = ut, Jt = At, St = it, Tt = pt, Rt = Bt, Nt = ct, wt = K, zt = 0; zt < 20; zt += 2) Q ^= (U = (Tt ^= (U = (Vt ^= (U = (rt ^= (U = Q + Tt | 0) << 7 | U >>> 25) + Q | 0) << 9 | U >>> 23) + rt | 0) << 13 | U >>> 19) + Vt | 0) << 18 | U >>> 14, Ct ^= (U = (st ^= (U = (Rt ^= (U = (Yt ^= (U = Ct + st | 0) << 7 | U >>> 25) + Ct | 0) << 9 | U >>> 23) + Yt | 0) << 13 | U >>> 19) + Rt | 0) << 18 | U >>> 14, Jt ^= (U = (jt ^= (U = (tt ^= (U = (Nt ^= (U = Jt + jt | 0) << 7 | U >>> 25) + Jt | 0) << 9 | U >>> 23) + Nt | 0) << 13 | U >>> 19) + tt | 0) << 18 | U >>> 14, wt ^= (U = (St ^= (U = (Ot ^= (U = (et ^= (U = wt + St | 0) << 7 | U >>> 25) + wt | 0) << 9 | U >>> 23) + et | 0) << 13 | U >>> 19) + Ot | 0) << 18 | U >>> 14, Q ^= (U = (et ^= (U = (tt ^= (U = (st ^= (U = Q + et | 0) << 7 | U >>> 25) + Q | 0) << 9 | U >>> 23) + st | 0) << 13 | U >>> 19) + tt | 0) << 18 | U >>> 14, Ct ^= (U = (rt ^= (U = (Ot ^= (U = (jt ^= (U = Ct + rt | 0) << 7 | U >>> 25) + Ct | 0) << 9 | U >>> 23) + jt | 0) << 13 | U >>> 19) + Ot | 0) << 18 | U >>> 14, Jt ^= (U = (Yt ^= (U = (Vt ^= (U = (St ^= (U = Jt + Yt | 0) << 7 | U >>> 25) + Jt | 0) << 9 | U >>> 23) + St | 0) << 13 | U >>> 19) + Vt | 0) << 18 | U >>> 14, wt ^= (U = (Nt ^= (U = (Rt ^= (U = (Tt ^= (U = wt + Nt | 0) << 7 | U >>> 25) + wt | 0) << 9 | U >>> 23) + Tt | 0) << 13 | U >>> 19) + Rt | 0) << 18 | U >>> 14;
|
|
8523
8527
|
Q = Q + Y | 0, st = st + gt | 0, tt = tt + X | 0, et = et + dt | 0, rt = rt + _t | 0, Ct = Ct + nt | 0, jt = jt + ht | 0, Ot = Ot + xt | 0, Vt = Vt + at | 0, Yt = Yt + ut | 0, Jt = Jt + At | 0, St = St + it | 0, Tt = Tt + pt | 0, Rt = Rt + Bt | 0, Nt = Nt + ct | 0, wt = wt + K | 0, S[0] = Q >>> 0 & 255, S[1] = Q >>> 8 & 255, S[2] = Q >>> 16 & 255, S[3] = Q >>> 24 & 255, S[4] = st >>> 0 & 255, S[5] = st >>> 8 & 255, S[6] = st >>> 16 & 255, S[7] = st >>> 24 & 255, S[8] = tt >>> 0 & 255, S[9] = tt >>> 8 & 255, S[10] = tt >>> 16 & 255, S[11] = tt >>> 24 & 255, S[12] = et >>> 0 & 255, S[13] = et >>> 8 & 255, S[14] = et >>> 16 & 255, S[15] = et >>> 24 & 255, S[16] = rt >>> 0 & 255, S[17] = rt >>> 8 & 255, S[18] = rt >>> 16 & 255, S[19] = rt >>> 24 & 255, S[20] = Ct >>> 0 & 255, S[21] = Ct >>> 8 & 255, S[22] = Ct >>> 16 & 255, S[23] = Ct >>> 24 & 255, S[24] = jt >>> 0 & 255, S[25] = jt >>> 8 & 255, S[26] = jt >>> 16 & 255, S[27] = jt >>> 24 & 255, S[28] = Ot >>> 0 & 255, S[29] = Ot >>> 8 & 255, S[30] = Ot >>> 16 & 255, S[31] = Ot >>> 24 & 255, S[32] = Vt >>> 0 & 255, S[33] = Vt >>> 8 & 255, S[34] = Vt >>> 16 & 255, S[35] = Vt >>> 24 & 255, S[36] = Yt >>> 0 & 255, S[37] = Yt >>> 8 & 255, S[38] = Yt >>> 16 & 255, S[39] = Yt >>> 24 & 255, S[40] = Jt >>> 0 & 255, S[41] = Jt >>> 8 & 255, S[42] = Jt >>> 16 & 255, S[43] = Jt >>> 24 & 255, S[44] = St >>> 0 & 255, S[45] = St >>> 8 & 255, S[46] = St >>> 16 & 255, S[47] = St >>> 24 & 255, S[48] = Tt >>> 0 & 255, S[49] = Tt >>> 8 & 255, S[50] = Tt >>> 16 & 255, S[51] = Tt >>> 24 & 255, S[52] = Rt >>> 0 & 255, S[53] = Rt >>> 8 & 255, S[54] = Rt >>> 16 & 255, S[55] = Rt >>> 24 & 255, S[56] = Nt >>> 0 & 255, S[57] = Nt >>> 8 & 255, S[58] = Nt >>> 16 & 255, S[59] = Nt >>> 24 & 255, S[60] = wt >>> 0 & 255, S[61] = wt >>> 8 & 255, S[62] = wt >>> 16 & 255, S[63] = wt >>> 24 & 255;
|
|
8524
8528
|
})(T, C, B, b);
|
|
8525
8529
|
}
|
|
8526
8530
|
function k(T, C, B, b) {
|
|
8527
|
-
(function(S,
|
|
8528
|
-
for (var
|
|
8531
|
+
(function(S, q, F, W) {
|
|
8532
|
+
for (var U, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & F[0] | (255 & F[1]) << 8 | (255 & F[2]) << 16 | (255 & F[3]) << 24, X = 255 & F[4] | (255 & F[5]) << 8 | (255 & F[6]) << 16 | (255 & F[7]) << 24, dt = 255 & F[8] | (255 & F[9]) << 8 | (255 & F[10]) << 16 | (255 & F[11]) << 24, _t = 255 & F[12] | (255 & F[13]) << 8 | (255 & F[14]) << 16 | (255 & F[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 & q[0] | (255 & q[1]) << 8 | (255 & q[2]) << 16 | (255 & q[3]) << 24, xt = 255 & q[4] | (255 & q[5]) << 8 | (255 & q[6]) << 16 | (255 & q[7]) << 24, at = 255 & q[8] | (255 & q[9]) << 8 | (255 & q[10]) << 16 | (255 & q[11]) << 24, ut = 255 & q[12] | (255 & q[13]) << 8 | (255 & q[14]) << 16 | (255 & q[15]) << 24, At = 255 & W[8] | (255 & W[9]) << 8 | (255 & W[10]) << 16 | (255 & W[11]) << 24, it = 255 & F[16] | (255 & F[17]) << 8 | (255 & F[18]) << 16 | (255 & F[19]) << 24, pt = 255 & F[20] | (255 & F[21]) << 8 | (255 & F[22]) << 16 | (255 & F[23]) << 24, Bt = 255 & F[24] | (255 & F[25]) << 8 | (255 & F[26]) << 16 | (255 & F[27]) << 24, ct = 255 & F[28] | (255 & F[29]) << 8 | (255 & F[30]) << 16 | (255 & F[31]) << 24, K = 255 & W[12] | (255 & W[13]) << 8 | (255 & W[14]) << 16 | (255 & W[15]) << 24, Q = 0; Q < 20; Q += 2) Y ^= (U = (pt ^= (U = (at ^= (U = (_t ^= (U = Y + pt | 0) << 7 | U >>> 25) + Y | 0) << 9 | U >>> 23) + _t | 0) << 13 | U >>> 19) + at | 0) << 18 | U >>> 14, nt ^= (U = (gt ^= (U = (Bt ^= (U = (ut ^= (U = nt + gt | 0) << 7 | U >>> 25) + nt | 0) << 9 | U >>> 23) + ut | 0) << 13 | U >>> 19) + Bt | 0) << 18 | U >>> 14, At ^= (U = (ht ^= (U = (X ^= (U = (ct ^= (U = At + ht | 0) << 7 | U >>> 25) + At | 0) << 9 | U >>> 23) + ct | 0) << 13 | U >>> 19) + X | 0) << 18 | U >>> 14, K ^= (U = (it ^= (U = (xt ^= (U = (dt ^= (U = K + it | 0) << 7 | U >>> 25) + K | 0) << 9 | U >>> 23) + dt | 0) << 13 | U >>> 19) + xt | 0) << 18 | U >>> 14, Y ^= (U = (dt ^= (U = (X ^= (U = (gt ^= (U = Y + dt | 0) << 7 | U >>> 25) + Y | 0) << 9 | U >>> 23) + gt | 0) << 13 | U >>> 19) + X | 0) << 18 | U >>> 14, nt ^= (U = (_t ^= (U = (xt ^= (U = (ht ^= (U = nt + _t | 0) << 7 | U >>> 25) + nt | 0) << 9 | U >>> 23) + ht | 0) << 13 | U >>> 19) + xt | 0) << 18 | U >>> 14, At ^= (U = (ut ^= (U = (at ^= (U = (it ^= (U = At + ut | 0) << 7 | U >>> 25) + At | 0) << 9 | U >>> 23) + it | 0) << 13 | U >>> 19) + at | 0) << 18 | U >>> 14, K ^= (U = (ct ^= (U = (Bt ^= (U = (pt ^= (U = K + ct | 0) << 7 | U >>> 25) + K | 0) << 9 | U >>> 23) + pt | 0) << 13 | U >>> 19) + Bt | 0) << 18 | U >>> 14;
|
|
8529
8533
|
S[0] = Y >>> 0 & 255, S[1] = Y >>> 8 & 255, S[2] = Y >>> 16 & 255, S[3] = Y >>> 24 & 255, S[4] = nt >>> 0 & 255, S[5] = nt >>> 8 & 255, S[6] = nt >>> 16 & 255, S[7] = nt >>> 24 & 255, S[8] = At >>> 0 & 255, S[9] = At >>> 8 & 255, S[10] = At >>> 16 & 255, S[11] = At >>> 24 & 255, S[12] = K >>> 0 & 255, S[13] = K >>> 8 & 255, S[14] = K >>> 16 & 255, S[15] = K >>> 24 & 255, S[16] = ht >>> 0 & 255, S[17] = ht >>> 8 & 255, S[18] = ht >>> 16 & 255, S[19] = ht >>> 24 & 255, S[20] = xt >>> 0 & 255, S[21] = xt >>> 8 & 255, S[22] = xt >>> 16 & 255, S[23] = xt >>> 24 & 255, S[24] = at >>> 0 & 255, S[25] = at >>> 8 & 255, S[26] = at >>> 16 & 255, S[27] = at >>> 24 & 255, S[28] = ut >>> 0 & 255, S[29] = ut >>> 8 & 255, S[30] = ut >>> 16 & 255, S[31] = ut >>> 24 & 255;
|
|
8530
8534
|
})(T, C, B, b);
|
|
8531
8535
|
}
|
|
8532
8536
|
var O = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
|
|
8533
|
-
function E(T, C, B, b, S,
|
|
8534
|
-
var W,
|
|
8535
|
-
for (
|
|
8536
|
-
for (
|
|
8537
|
+
function E(T, C, B, b, S, q, F) {
|
|
8538
|
+
var W, U, Y = new Uint8Array(16), gt = new Uint8Array(64);
|
|
8539
|
+
for (U = 0; U < 16; U++) Y[U] = 0;
|
|
8540
|
+
for (U = 0; U < 8; U++) Y[U] = q[U];
|
|
8537
8541
|
for (; S >= 64; ) {
|
|
8538
|
-
for (M(gt, Y, F, O),
|
|
8539
|
-
for (W = 1,
|
|
8542
|
+
for (M(gt, Y, F, O), U = 0; U < 64; U++) T[C + U] = B[b + U] ^ gt[U];
|
|
8543
|
+
for (W = 1, U = 8; U < 16; U++) W = W + (255 & Y[U]) | 0, Y[U] = 255 & W, W >>>= 8;
|
|
8540
8544
|
S -= 64, C += 64, b += 64;
|
|
8541
8545
|
}
|
|
8542
|
-
if (S > 0) for (M(gt, Y, F, O),
|
|
8546
|
+
if (S > 0) for (M(gt, Y, F, O), U = 0; U < S; U++) T[C + U] = B[b + U] ^ gt[U];
|
|
8543
8547
|
return 0;
|
|
8544
8548
|
}
|
|
8545
8549
|
function R(T, C, B, b, S) {
|
|
8546
|
-
var
|
|
8550
|
+
var q, F, W = new Uint8Array(16), U = new Uint8Array(64);
|
|
8547
8551
|
for (F = 0; F < 16; F++) W[F] = 0;
|
|
8548
8552
|
for (F = 0; F < 8; F++) W[F] = b[F];
|
|
8549
8553
|
for (; B >= 64; ) {
|
|
8550
|
-
for (M(
|
|
8551
|
-
for (
|
|
8554
|
+
for (M(U, W, S, O), F = 0; F < 64; F++) T[C + F] = U[F];
|
|
8555
|
+
for (q = 1, F = 8; F < 16; F++) q = q + (255 & W[F]) | 0, W[F] = 255 & q, q >>>= 8;
|
|
8552
8556
|
B -= 64, C += 64;
|
|
8553
8557
|
}
|
|
8554
|
-
if (B > 0) for (M(
|
|
8558
|
+
if (B > 0) for (M(U, W, S, O), F = 0; F < B; F++) T[C + F] = U[F];
|
|
8555
8559
|
return 0;
|
|
8556
8560
|
}
|
|
8557
8561
|
function L(T, C, B, b, S) {
|
|
8558
|
-
var
|
|
8559
|
-
k(
|
|
8562
|
+
var q = new Uint8Array(32);
|
|
8563
|
+
k(q, b, S, O);
|
|
8560
8564
|
for (var F = new Uint8Array(8), W = 0; W < 8; W++) F[W] = b[W + 16];
|
|
8561
|
-
return R(T, C, B, F,
|
|
8565
|
+
return R(T, C, B, F, q);
|
|
8562
8566
|
}
|
|
8563
|
-
function z(T, C, B, b, S,
|
|
8567
|
+
function z(T, C, B, b, S, q, F) {
|
|
8564
8568
|
var W = new Uint8Array(32);
|
|
8565
|
-
k(W,
|
|
8566
|
-
for (var
|
|
8567
|
-
return E(T, C, B, b, S,
|
|
8569
|
+
k(W, q, F, O);
|
|
8570
|
+
for (var U = new Uint8Array(8), Y = 0; Y < 8; Y++) U[Y] = q[Y + 16];
|
|
8571
|
+
return E(T, C, B, b, S, U, W);
|
|
8568
8572
|
}
|
|
8569
8573
|
var f = function(T) {
|
|
8570
|
-
var C, B, b, S,
|
|
8571
|
-
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0, C = 255 & T[0] | (255 & T[1]) << 8, this.r[0] = 8191 & C, B = 255 & T[2] | (255 & T[3]) << 8, this.r[1] = 8191 & (C >>> 13 | B << 3), b = 255 & T[4] | (255 & T[5]) << 8, this.r[2] = 7939 & (B >>> 10 | b << 6), S = 255 & T[6] | (255 & T[7]) << 8, this.r[3] = 8191 & (b >>> 7 | S << 9),
|
|
8574
|
+
var C, B, b, S, q, F, W, U;
|
|
8575
|
+
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0, C = 255 & T[0] | (255 & T[1]) << 8, this.r[0] = 8191 & C, B = 255 & T[2] | (255 & T[3]) << 8, this.r[1] = 8191 & (C >>> 13 | B << 3), b = 255 & T[4] | (255 & T[5]) << 8, this.r[2] = 7939 & (B >>> 10 | b << 6), S = 255 & T[6] | (255 & T[7]) << 8, this.r[3] = 8191 & (b >>> 7 | S << 9), q = 255 & T[8] | (255 & T[9]) << 8, this.r[4] = 255 & (S >>> 4 | q << 12), this.r[5] = q >>> 1 & 8190, F = 255 & T[10] | (255 & T[11]) << 8, this.r[6] = 8191 & (q >>> 14 | F << 2), W = 255 & T[12] | (255 & T[13]) << 8, this.r[7] = 8065 & (F >>> 11 | W << 5), U = 255 & T[14] | (255 & T[15]) << 8, this.r[8] = 8191 & (W >>> 8 | U << 8), this.r[9] = U >>> 5 & 127, this.pad[0] = 255 & T[16] | (255 & T[17]) << 8, this.pad[1] = 255 & T[18] | (255 & T[19]) << 8, this.pad[2] = 255 & T[20] | (255 & T[21]) << 8, this.pad[3] = 255 & T[22] | (255 & T[23]) << 8, this.pad[4] = 255 & T[24] | (255 & T[25]) << 8, this.pad[5] = 255 & T[26] | (255 & T[27]) << 8, this.pad[6] = 255 & T[28] | (255 & T[29]) << 8, this.pad[7] = 255 & T[30] | (255 & T[31]) << 8;
|
|
8572
8576
|
};
|
|
8573
|
-
function p(T, C, B, b, S,
|
|
8574
|
-
var F = new f(
|
|
8577
|
+
function p(T, C, B, b, S, q) {
|
|
8578
|
+
var F = new f(q);
|
|
8575
8579
|
return F.update(B, b, S), F.finish(T, C), 0;
|
|
8576
8580
|
}
|
|
8577
|
-
function g(T, C, B, b, S,
|
|
8581
|
+
function g(T, C, B, b, S, q) {
|
|
8578
8582
|
var F = new Uint8Array(16);
|
|
8579
|
-
return p(F, 0, B, b, S,
|
|
8583
|
+
return p(F, 0, B, b, S, q), I(T, C, F, 0);
|
|
8580
8584
|
}
|
|
8581
8585
|
function m(T, C, B, b, S) {
|
|
8582
|
-
var
|
|
8586
|
+
var q;
|
|
8583
8587
|
if (B < 32) return -1;
|
|
8584
|
-
for (z(T, 0, C, 0, B, b, S), p(T, 16, T, 32, B - 32, T),
|
|
8588
|
+
for (z(T, 0, C, 0, B, b, S), p(T, 16, T, 32, B - 32, T), q = 0; q < 16; q++) T[q] = 0;
|
|
8585
8589
|
return 0;
|
|
8586
8590
|
}
|
|
8587
8591
|
function u(T, C, B, b, S) {
|
|
8588
|
-
var
|
|
8592
|
+
var q, F = new Uint8Array(32);
|
|
8589
8593
|
if (B < 32 || (L(F, 0, 32, b, S), g(C, 16, C, 32, B - 32, F) !== 0)) return -1;
|
|
8590
|
-
for (z(T, 0, C, 0, B, b, S),
|
|
8594
|
+
for (z(T, 0, C, 0, B, b, S), q = 0; q < 32; q++) T[q] = 0;
|
|
8591
8595
|
return 0;
|
|
8592
8596
|
}
|
|
8593
8597
|
function y(T, C) {
|
|
@@ -8600,14 +8604,14 @@ var sa = { exports: {} };
|
|
|
8600
8604
|
T[0] += b - 1 + 37 * (b - 1);
|
|
8601
8605
|
}
|
|
8602
8606
|
function P(T, C, B) {
|
|
8603
|
-
for (var b, S = ~(B - 1),
|
|
8607
|
+
for (var b, S = ~(B - 1), q = 0; q < 16; q++) b = S & (T[q] ^ C[q]), T[q] ^= b, C[q] ^= b;
|
|
8604
8608
|
}
|
|
8605
8609
|
function N(T, C) {
|
|
8606
|
-
var B, b, S,
|
|
8610
|
+
var B, b, S, q = t(), F = t();
|
|
8607
8611
|
for (B = 0; B < 16; B++) F[B] = C[B];
|
|
8608
8612
|
for (w(F), w(F), w(F), b = 0; b < 2; b++) {
|
|
8609
|
-
for (
|
|
8610
|
-
|
|
8613
|
+
for (q[0] = F[0] - 65517, B = 1; B < 15; B++) q[B] = F[B] - 65535 - (q[B - 1] >> 16 & 1), q[B - 1] &= 65535;
|
|
8614
|
+
q[15] = F[15] - 32767 - (q[14] >> 16 & 1), S = q[15] >> 16 & 1, q[14] &= 65535, P(F, q, 1 - S);
|
|
8611
8615
|
}
|
|
8612
8616
|
for (B = 0; B < 16; B++) T[2 * B] = 255 & F[B], T[2 * B + 1] = F[B] >> 8;
|
|
8613
8617
|
}
|
|
@@ -8631,8 +8635,8 @@ var sa = { exports: {} };
|
|
|
8631
8635
|
for (var b = 0; b < 16; b++) T[b] = C[b] - B[b];
|
|
8632
8636
|
}
|
|
8633
8637
|
function D(T, C, B) {
|
|
8634
|
-
var b, S,
|
|
8635
|
-
|
|
8638
|
+
var b, S, q = 0, F = 0, W = 0, U = 0, Y = 0, gt = 0, X = 0, dt = 0, _t = 0, nt = 0, ht = 0, xt = 0, at = 0, ut = 0, At = 0, it = 0, pt = 0, Bt = 0, ct = 0, K = 0, Q = 0, st = 0, tt = 0, et = 0, rt = 0, Ct = 0, jt = 0, Ot = 0, Vt = 0, Yt = 0, Jt = 0, St = B[0], Tt = B[1], Rt = B[2], Nt = B[3], wt = B[4], zt = B[5], Ht = B[6], pe = B[7], fe = B[8], be = B[9], ye = B[10], ve = B[11], Se = B[12], Le = B[13], je = B[14], ze = B[15];
|
|
8639
|
+
q += (b = C[0]) * St, F += b * Tt, W += b * Rt, U += b * Nt, Y += b * wt, gt += b * zt, X += b * Ht, dt += b * pe, _t += b * fe, nt += b * be, ht += b * ye, xt += b * ve, at += b * Se, ut += b * Le, At += b * je, it += b * ze, F += (b = C[1]) * St, W += b * Tt, U += b * Rt, Y += b * Nt, gt += b * wt, X += b * zt, dt += b * Ht, _t += b * pe, nt += b * fe, ht += b * be, xt += b * ye, at += b * ve, ut += b * Se, At += b * Le, it += b * je, pt += b * ze, W += (b = C[2]) * St, U += b * Tt, Y += b * Rt, gt += b * Nt, X += b * wt, dt += b * zt, _t += b * Ht, nt += b * pe, ht += b * fe, xt += b * be, at += b * ye, ut += b * ve, At += b * Se, it += b * Le, pt += b * je, Bt += b * ze, U += (b = C[3]) * St, Y += b * Tt, gt += b * Rt, X += b * Nt, dt += b * wt, _t += b * zt, nt += b * Ht, ht += b * pe, xt += b * fe, at += b * be, ut += b * ye, At += b * ve, it += b * Se, pt += b * Le, Bt += b * je, ct += b * ze, Y += (b = C[4]) * St, gt += b * Tt, X += b * Rt, dt += b * Nt, _t += b * wt, nt += b * zt, ht += b * Ht, xt += b * pe, at += b * fe, ut += b * be, At += b * ye, it += b * ve, pt += b * Se, Bt += b * Le, ct += b * je, K += b * ze, gt += (b = C[5]) * St, X += b * Tt, dt += b * Rt, _t += b * Nt, nt += b * wt, ht += b * zt, xt += b * Ht, at += b * pe, ut += b * fe, At += b * be, it += b * ye, pt += b * ve, Bt += b * Se, ct += b * Le, K += b * je, Q += b * ze, X += (b = C[6]) * St, dt += b * Tt, _t += b * Rt, nt += b * Nt, ht += b * wt, xt += b * zt, at += b * Ht, ut += b * pe, At += b * fe, it += b * be, pt += b * ye, Bt += b * ve, ct += b * Se, K += b * Le, Q += b * je, st += b * ze, dt += (b = C[7]) * St, _t += b * Tt, nt += b * Rt, ht += b * Nt, xt += b * wt, at += b * zt, ut += b * Ht, At += b * pe, it += b * fe, pt += b * be, Bt += b * ye, ct += b * ve, K += b * Se, Q += b * Le, st += b * je, tt += b * ze, _t += (b = C[8]) * St, nt += b * Tt, ht += b * Rt, xt += b * Nt, at += b * wt, ut += b * zt, At += b * Ht, it += b * pe, pt += b * fe, Bt += b * be, ct += b * ye, K += b * ve, Q += b * Se, st += b * Le, tt += b * je, et += b * ze, nt += (b = C[9]) * St, ht += b * Tt, xt += b * Rt, at += b * Nt, ut += b * wt, At += b * zt, it += b * Ht, pt += b * pe, Bt += b * fe, ct += b * be, K += b * ye, Q += b * ve, st += b * Se, tt += b * Le, et += b * je, rt += b * ze, ht += (b = C[10]) * St, xt += b * Tt, at += b * Rt, ut += b * Nt, At += b * wt, it += b * zt, pt += b * Ht, Bt += b * pe, ct += b * fe, K += b * be, Q += b * ye, st += b * ve, tt += b * Se, et += b * Le, rt += b * je, Ct += b * ze, xt += (b = C[11]) * St, at += b * Tt, ut += b * Rt, At += b * Nt, it += b * wt, pt += b * zt, Bt += b * Ht, ct += b * pe, K += b * fe, Q += b * be, st += b * ye, tt += b * ve, et += b * Se, rt += b * Le, Ct += b * je, jt += b * ze, at += (b = C[12]) * St, ut += b * Tt, At += b * Rt, it += b * Nt, pt += b * wt, Bt += b * zt, ct += b * Ht, K += b * pe, Q += b * fe, st += b * be, tt += b * ye, et += b * ve, rt += b * Se, Ct += b * Le, jt += b * je, Ot += b * ze, ut += (b = C[13]) * St, At += b * Tt, it += b * Rt, pt += b * Nt, Bt += b * wt, ct += b * zt, K += b * Ht, Q += b * pe, st += b * fe, tt += b * be, et += b * ye, rt += b * ve, Ct += b * Se, jt += b * Le, Ot += b * je, Vt += b * ze, At += (b = C[14]) * St, it += b * Tt, pt += b * Rt, Bt += b * Nt, ct += b * wt, K += b * zt, Q += b * Ht, st += b * pe, tt += b * fe, et += b * be, rt += b * ye, Ct += b * ve, jt += b * Se, Ot += b * Le, Vt += b * je, Yt += b * ze, it += (b = C[15]) * St, F += 38 * (Bt += b * Rt), W += 38 * (ct += b * Nt), U += 38 * (K += b * wt), Y += 38 * (Q += b * zt), gt += 38 * (st += b * Ht), X += 38 * (tt += b * pe), dt += 38 * (et += b * fe), _t += 38 * (rt += b * be), nt += 38 * (Ct += b * ye), ht += 38 * (jt += b * ve), xt += 38 * (Ot += b * Se), at += 38 * (Vt += b * Le), ut += 38 * (Yt += b * je), At += 38 * (Jt += b * ze), q = (b = (q += 38 * (pt += b * Tt)) + (S = 1) + 65535) - 65536 * (S = Math.floor(b / 65536)), F = (b = F + S + 65535) - 65536 * (S = Math.floor(b / 65536)), W = (b = W + S + 65535) - 65536 * (S = Math.floor(b / 65536)), U = (b = U + S + 65535) - 65536 * (S = Math.floor(b / 65536)), Y = (b = Y + S + 65535) - 65536 * (S = Math.floor(b / 65536)), gt = (b = gt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), X = (b = X + S + 65535) - 65536 * (S = Math.floor(b / 65536)), dt = (b = dt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), _t = (b = _t + S + 65535) - 65536 * (S = Math.floor(b / 65536)), nt = (b = nt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ht = (b = ht + S + 65535) - 65536 * (S = Math.floor(b / 65536)), xt = (b = xt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), at = (b = at + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ut = (b = ut + S + 65535) - 65536 * (S = Math.floor(b / 65536)), At = (b = At + S + 65535) - 65536 * (S = Math.floor(b / 65536)), it = (b = it + S + 65535) - 65536 * (S = Math.floor(b / 65536)), q = (b = (q += S - 1 + 37 * (S - 1)) + (S = 1) + 65535) - 65536 * (S = Math.floor(b / 65536)), F = (b = F + S + 65535) - 65536 * (S = Math.floor(b / 65536)), W = (b = W + S + 65535) - 65536 * (S = Math.floor(b / 65536)), U = (b = U + S + 65535) - 65536 * (S = Math.floor(b / 65536)), Y = (b = Y + S + 65535) - 65536 * (S = Math.floor(b / 65536)), gt = (b = gt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), X = (b = X + S + 65535) - 65536 * (S = Math.floor(b / 65536)), dt = (b = dt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), _t = (b = _t + S + 65535) - 65536 * (S = Math.floor(b / 65536)), nt = (b = nt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ht = (b = ht + S + 65535) - 65536 * (S = Math.floor(b / 65536)), xt = (b = xt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), at = (b = at + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ut = (b = ut + S + 65535) - 65536 * (S = Math.floor(b / 65536)), At = (b = At + S + 65535) - 65536 * (S = Math.floor(b / 65536)), it = (b = it + S + 65535) - 65536 * (S = Math.floor(b / 65536)), q += S - 1 + 37 * (S - 1), T[0] = q, T[1] = F, T[2] = W, T[3] = U, T[4] = Y, T[5] = gt, T[6] = X, T[7] = dt, T[8] = _t, T[9] = nt, T[10] = ht, T[11] = xt, T[12] = at, T[13] = ut, T[14] = At, T[15] = it;
|
|
8636
8640
|
}
|
|
8637
8641
|
function G(T, C) {
|
|
8638
8642
|
D(T, C, C);
|
|
@@ -8650,38 +8654,38 @@ var sa = { exports: {} };
|
|
|
8650
8654
|
for (B = 0; B < 16; B++) T[B] = b[B];
|
|
8651
8655
|
}
|
|
8652
8656
|
function mt(T, C, B) {
|
|
8653
|
-
var b, S,
|
|
8654
|
-
for (S = 0; S < 31; S++)
|
|
8655
|
-
for (
|
|
8656
|
-
for (W[0] = gt[0] = 1, S = 254; S >= 0; --S) P(W,
|
|
8657
|
-
for (S = 0; S < 16; S++) F[S + 16] = W[S], F[S + 32] = Y[S], F[S + 48] =
|
|
8657
|
+
var b, S, q = new Uint8Array(32), F = new Float64Array(80), W = t(), U = t(), Y = t(), gt = t(), X = t(), dt = t();
|
|
8658
|
+
for (S = 0; S < 31; S++) q[S] = C[S];
|
|
8659
|
+
for (q[31] = 127 & C[31] | 64, q[0] &= 248, $(F, B), S = 0; S < 16; S++) U[S] = F[S], gt[S] = W[S] = Y[S] = 0;
|
|
8660
|
+
for (W[0] = gt[0] = 1, S = 254; S >= 0; --S) P(W, U, b = q[S >>> 3] >>> (7 & S) & 1), P(Y, gt, b), V(X, W, Y), H(W, W, Y), V(Y, U, gt), H(U, U, gt), G(gt, X), G(dt, W), D(W, Y, W), D(Y, U, X), V(X, W, Y), H(W, W, Y), G(U, W), H(Y, gt, dt), D(W, Y, o), V(W, W, gt), D(Y, Y, W), D(W, gt, dt), D(gt, U, F), G(U, X), P(W, U, b), P(Y, gt, b);
|
|
8661
|
+
for (S = 0; S < 16; S++) F[S + 16] = W[S], F[S + 32] = Y[S], F[S + 48] = U[S], F[S + 64] = gt[S];
|
|
8658
8662
|
var _t = F.subarray(32), nt = F.subarray(16);
|
|
8659
8663
|
return Et(_t, _t), D(nt, nt, _t), N(T, nt), 0;
|
|
8660
8664
|
}
|
|
8661
|
-
function
|
|
8665
|
+
function qt(T, C) {
|
|
8662
8666
|
return mt(T, C, i);
|
|
8663
8667
|
}
|
|
8664
8668
|
function lt(T, C) {
|
|
8665
|
-
return r(C, 32),
|
|
8669
|
+
return r(C, 32), qt(T, C);
|
|
8666
8670
|
}
|
|
8667
8671
|
function kt(T, C, B) {
|
|
8668
8672
|
var b = new Uint8Array(32);
|
|
8669
8673
|
return mt(b, B, C), k(T, n, b, O);
|
|
8670
8674
|
}
|
|
8671
8675
|
f.prototype.blocks = function(T, C, B) {
|
|
8672
|
-
for (var b, S,
|
|
8676
|
+
for (var b, S, q, F, W, U, Y, gt, X, dt, _t, nt, ht, xt, at, ut, At, it, pt, Bt = this.fin ? 0 : 2048, ct = this.h[0], K = this.h[1], Q = this.h[2], st = this.h[3], tt = this.h[4], et = this.h[5], rt = this.h[6], Ct = this.h[7], jt = this.h[8], Ot = this.h[9], Vt = this.r[0], Yt = this.r[1], Jt = this.r[2], St = this.r[3], Tt = this.r[4], Rt = this.r[5], Nt = this.r[6], wt = this.r[7], zt = this.r[8], Ht = this.r[9]; B >= 16; ) dt = X = 0, dt += (ct += 8191 & (b = 255 & T[C + 0] | (255 & T[C + 1]) << 8)) * Vt, dt += (K += 8191 & (b >>> 13 | (S = 255 & T[C + 2] | (255 & T[C + 3]) << 8) << 3)) * (5 * Ht), dt += (Q += 8191 & (S >>> 10 | (q = 255 & T[C + 4] | (255 & T[C + 5]) << 8) << 6)) * (5 * zt), dt += (st += 8191 & (q >>> 7 | (F = 255 & T[C + 6] | (255 & T[C + 7]) << 8) << 9)) * (5 * wt), X = (dt += (tt += 8191 & (F >>> 4 | (W = 255 & T[C + 8] | (255 & T[C + 9]) << 8) << 12)) * (5 * Nt)) >>> 13, dt &= 8191, dt += (et += W >>> 1 & 8191) * (5 * Rt), dt += (rt += 8191 & (W >>> 14 | (U = 255 & T[C + 10] | (255 & T[C + 11]) << 8) << 2)) * (5 * Tt), dt += (Ct += 8191 & (U >>> 11 | (Y = 255 & T[C + 12] | (255 & T[C + 13]) << 8) << 5)) * (5 * St), dt += (jt += 8191 & (Y >>> 8 | (gt = 255 & T[C + 14] | (255 & T[C + 15]) << 8) << 8)) * (5 * Jt), _t = X += (dt += (Ot += gt >>> 5 | Bt) * (5 * Yt)) >>> 13, _t += ct * Yt, _t += K * Vt, _t += Q * (5 * Ht), _t += st * (5 * zt), X = (_t += tt * (5 * wt)) >>> 13, _t &= 8191, _t += et * (5 * Nt), _t += rt * (5 * Rt), _t += Ct * (5 * Tt), _t += jt * (5 * St), X += (_t += Ot * (5 * Jt)) >>> 13, _t &= 8191, nt = X, nt += ct * Jt, nt += K * Yt, nt += Q * Vt, nt += st * (5 * Ht), X = (nt += tt * (5 * zt)) >>> 13, nt &= 8191, nt += et * (5 * wt), nt += rt * (5 * Nt), nt += Ct * (5 * Rt), nt += jt * (5 * Tt), ht = X += (nt += Ot * (5 * St)) >>> 13, ht += ct * St, ht += K * Jt, ht += Q * Yt, ht += st * Vt, X = (ht += tt * (5 * Ht)) >>> 13, ht &= 8191, ht += et * (5 * zt), ht += rt * (5 * wt), ht += Ct * (5 * Nt), ht += jt * (5 * Rt), xt = X += (ht += Ot * (5 * Tt)) >>> 13, xt += ct * Tt, xt += K * St, xt += Q * Jt, xt += st * Yt, X = (xt += tt * Vt) >>> 13, xt &= 8191, xt += et * (5 * Ht), xt += rt * (5 * zt), xt += Ct * (5 * wt), xt += jt * (5 * Nt), at = X += (xt += Ot * (5 * Rt)) >>> 13, at += ct * Rt, at += K * Tt, at += Q * St, at += st * Jt, X = (at += tt * Yt) >>> 13, at &= 8191, at += et * Vt, at += rt * (5 * Ht), at += Ct * (5 * zt), at += jt * (5 * wt), ut = X += (at += Ot * (5 * Nt)) >>> 13, ut += ct * Nt, ut += K * Rt, ut += Q * Tt, ut += st * St, X = (ut += tt * Jt) >>> 13, ut &= 8191, ut += et * Yt, ut += rt * Vt, ut += Ct * (5 * Ht), ut += jt * (5 * zt), At = X += (ut += Ot * (5 * wt)) >>> 13, At += ct * wt, At += K * Nt, At += Q * Rt, At += st * Tt, X = (At += tt * St) >>> 13, At &= 8191, At += et * Jt, At += rt * Yt, At += Ct * Vt, At += jt * (5 * Ht), it = X += (At += Ot * (5 * zt)) >>> 13, it += ct * zt, it += K * wt, it += Q * Nt, it += st * Rt, X = (it += tt * Tt) >>> 13, it &= 8191, it += et * St, it += rt * Jt, it += Ct * Yt, it += jt * Vt, pt = X += (it += Ot * (5 * Ht)) >>> 13, pt += ct * Ht, pt += K * zt, pt += Q * wt, pt += st * Nt, X = (pt += tt * Rt) >>> 13, pt &= 8191, pt += et * Tt, pt += rt * St, pt += Ct * Jt, pt += jt * Yt, ct = dt = 8191 & (X = (X = ((X += (pt += Ot * Vt) >>> 13) << 2) + X | 0) + (dt &= 8191) | 0), K = _t += X >>>= 13, Q = nt &= 8191, st = ht &= 8191, tt = xt &= 8191, et = at &= 8191, rt = ut &= 8191, Ct = At &= 8191, jt = it &= 8191, Ot = pt &= 8191, C += 16, B -= 16;
|
|
8673
8677
|
this.h[0] = ct, this.h[1] = K, this.h[2] = Q, this.h[3] = st, this.h[4] = tt, this.h[5] = et, this.h[6] = rt, this.h[7] = Ct, this.h[8] = jt, this.h[9] = Ot;
|
|
8674
8678
|
}, f.prototype.finish = function(T, C) {
|
|
8675
|
-
var B, b, S,
|
|
8679
|
+
var B, b, S, q, F = new Uint16Array(10);
|
|
8676
8680
|
if (this.leftover) {
|
|
8677
|
-
for (
|
|
8681
|
+
for (q = this.leftover, this.buffer[q++] = 1; q < 16; q++) this.buffer[q] = 0;
|
|
8678
8682
|
this.fin = 1, this.blocks(this.buffer, 0, 16);
|
|
8679
8683
|
}
|
|
8680
|
-
for (B = this.h[1] >>> 13, this.h[1] &= 8191,
|
|
8681
|
-
for (this.h[0] += 5 * B, B = this.h[0] >>> 13, this.h[0] &= 8191, this.h[1] += B, B = this.h[1] >>> 13, this.h[1] &= 8191, this.h[2] += B, F[0] = this.h[0] + 5, B = F[0] >>> 13, F[0] &= 8191,
|
|
8682
|
-
for (F[9] -= 8192, b = (1 ^ B) - 1,
|
|
8683
|
-
for (b = ~b,
|
|
8684
|
-
for (this.h[0] = 65535 & (this.h[0] | this.h[1] << 13), this.h[1] = 65535 & (this.h[1] >>> 3 | this.h[2] << 10), this.h[2] = 65535 & (this.h[2] >>> 6 | this.h[3] << 7), this.h[3] = 65535 & (this.h[3] >>> 9 | this.h[4] << 4), this.h[4] = 65535 & (this.h[4] >>> 12 | this.h[5] << 1 | this.h[6] << 14), this.h[5] = 65535 & (this.h[6] >>> 2 | this.h[7] << 11), this.h[6] = 65535 & (this.h[7] >>> 5 | this.h[8] << 8), this.h[7] = 65535 & (this.h[8] >>> 8 | this.h[9] << 5), S = this.h[0] + this.pad[0], this.h[0] = 65535 & S,
|
|
8684
|
+
for (B = this.h[1] >>> 13, this.h[1] &= 8191, q = 2; q < 10; q++) this.h[q] += B, B = this.h[q] >>> 13, this.h[q] &= 8191;
|
|
8685
|
+
for (this.h[0] += 5 * B, B = this.h[0] >>> 13, this.h[0] &= 8191, this.h[1] += B, B = this.h[1] >>> 13, this.h[1] &= 8191, this.h[2] += B, F[0] = this.h[0] + 5, B = F[0] >>> 13, F[0] &= 8191, q = 1; q < 10; q++) F[q] = this.h[q] + B, B = F[q] >>> 13, F[q] &= 8191;
|
|
8686
|
+
for (F[9] -= 8192, b = (1 ^ B) - 1, q = 0; q < 10; q++) F[q] &= b;
|
|
8687
|
+
for (b = ~b, q = 0; q < 10; q++) this.h[q] = this.h[q] & b | F[q];
|
|
8688
|
+
for (this.h[0] = 65535 & (this.h[0] | this.h[1] << 13), this.h[1] = 65535 & (this.h[1] >>> 3 | this.h[2] << 10), this.h[2] = 65535 & (this.h[2] >>> 6 | this.h[3] << 7), this.h[3] = 65535 & (this.h[3] >>> 9 | this.h[4] << 4), this.h[4] = 65535 & (this.h[4] >>> 12 | this.h[5] << 1 | this.h[6] << 14), this.h[5] = 65535 & (this.h[6] >>> 2 | this.h[7] << 11), this.h[6] = 65535 & (this.h[7] >>> 5 | this.h[8] << 8), this.h[7] = 65535 & (this.h[8] >>> 8 | this.h[9] << 5), S = this.h[0] + this.pad[0], this.h[0] = 65535 & S, q = 1; q < 8; q++) S = (this.h[q] + this.pad[q] | 0) + (S >>> 16) | 0, this.h[q] = 65535 & S;
|
|
8685
8689
|
T[C + 0] = this.h[0] >>> 0 & 255, T[C + 1] = this.h[0] >>> 8 & 255, T[C + 2] = this.h[1] >>> 0 & 255, T[C + 3] = this.h[1] >>> 8 & 255, T[C + 4] = this.h[2] >>> 0 & 255, T[C + 5] = this.h[2] >>> 8 & 255, T[C + 6] = this.h[3] >>> 0 & 255, T[C + 7] = this.h[3] >>> 8 & 255, T[C + 8] = this.h[4] >>> 0 & 255, T[C + 9] = this.h[4] >>> 8 & 255, T[C + 10] = this.h[5] >>> 0 & 255, T[C + 11] = this.h[5] >>> 8 & 255, T[C + 12] = this.h[6] >>> 0 & 255, T[C + 13] = this.h[6] >>> 8 & 255, T[C + 14] = this.h[7] >>> 0 & 255, T[C + 15] = this.h[7] >>> 8 & 255;
|
|
8686
8690
|
}, f.prototype.update = function(T, C, B) {
|
|
8687
8691
|
var b, S;
|
|
@@ -8697,22 +8701,22 @@ var sa = { exports: {} };
|
|
|
8697
8701
|
};
|
|
8698
8702
|
var Ft = m, Lt = u, se = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];
|
|
8699
8703
|
function Ke(T, C, B, b) {
|
|
8700
|
-
for (var S,
|
|
8704
|
+
for (var S, q, F, W, U, Y, gt, X, dt, _t, nt, ht, xt, at, ut, At, it, pt, Bt, ct, K, Q, st, tt, et, rt, Ct = new Int32Array(16), jt = new Int32Array(16), Ot = T[0], Vt = T[1], Yt = T[2], Jt = T[3], St = T[4], Tt = T[5], Rt = T[6], Nt = T[7], wt = C[0], zt = C[1], Ht = C[2], pe = C[3], fe = C[4], be = C[5], ye = C[6], ve = C[7], Se = 0; b >= 128; ) {
|
|
8701
8705
|
for (Bt = 0; Bt < 16; Bt++) ct = 8 * Bt + Se, Ct[Bt] = B[ct + 0] << 24 | B[ct + 1] << 16 | B[ct + 2] << 8 | B[ct + 3], jt[Bt] = B[ct + 4] << 24 | B[ct + 5] << 16 | B[ct + 6] << 8 | B[ct + 7];
|
|
8702
|
-
for (Bt = 0; Bt < 80; Bt++) if (S = Ot,
|
|
8706
|
+
for (Bt = 0; Bt < 80; Bt++) if (S = Ot, q = Vt, F = Yt, W = Jt, U = St, Y = Tt, gt = Rt, dt = wt, _t = zt, nt = Ht, ht = pe, xt = fe, at = be, ut = ye, st = 65535 & (Q = ve), tt = Q >>> 16, et = 65535 & (K = Nt), rt = K >>> 16, st += 65535 & (Q = (fe >>> 14 | St << 18) ^ (fe >>> 18 | St << 14) ^ (St >>> 9 | fe << 23)), tt += Q >>> 16, et += 65535 & (K = (St >>> 14 | fe << 18) ^ (St >>> 18 | fe << 14) ^ (fe >>> 9 | St << 23)), rt += K >>> 16, st += 65535 & (Q = fe & be ^ ~fe & ye), tt += Q >>> 16, et += 65535 & (K = St & Tt ^ ~St & Rt), rt += K >>> 16, st += 65535 & (Q = se[2 * Bt + 1]), tt += Q >>> 16, et += 65535 & (K = se[2 * Bt]), rt += K >>> 16, K = Ct[Bt % 16], tt += (Q = jt[Bt % 16]) >>> 16, et += 65535 & K, rt += K >>> 16, et += (tt += (st += 65535 & Q) >>> 16) >>> 16, st = 65535 & (Q = pt = 65535 & st | tt << 16), tt = Q >>> 16, et = 65535 & (K = it = 65535 & et | (rt += et >>> 16) << 16), rt = K >>> 16, st += 65535 & (Q = (wt >>> 28 | Ot << 4) ^ (Ot >>> 2 | wt << 30) ^ (Ot >>> 7 | wt << 25)), tt += Q >>> 16, et += 65535 & (K = (Ot >>> 28 | wt << 4) ^ (wt >>> 2 | Ot << 30) ^ (wt >>> 7 | Ot << 25)), rt += K >>> 16, tt += (Q = wt & zt ^ wt & Ht ^ zt & Ht) >>> 16, et += 65535 & (K = Ot & Vt ^ Ot & Yt ^ Vt & Yt), rt += K >>> 16, X = 65535 & (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) | (rt += et >>> 16) << 16, At = 65535 & st | tt << 16, st = 65535 & (Q = ht), tt = Q >>> 16, et = 65535 & (K = W), rt = K >>> 16, tt += (Q = pt) >>> 16, et += 65535 & (K = it), rt += K >>> 16, Vt = S, Yt = q, Jt = F, St = W = 65535 & (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) | (rt += et >>> 16) << 16, Tt = U, Rt = Y, Nt = gt, Ot = X, zt = dt, Ht = _t, pe = nt, fe = ht = 65535 & st | tt << 16, be = xt, ye = at, ve = ut, wt = At, Bt % 16 == 15) for (ct = 0; ct < 16; ct++) K = Ct[ct], st = 65535 & (Q = jt[ct]), tt = Q >>> 16, et = 65535 & K, rt = K >>> 16, K = Ct[(ct + 9) % 16], st += 65535 & (Q = jt[(ct + 9) % 16]), tt += Q >>> 16, et += 65535 & K, rt += K >>> 16, it = Ct[(ct + 1) % 16], st += 65535 & (Q = ((pt = jt[(ct + 1) % 16]) >>> 1 | it << 31) ^ (pt >>> 8 | it << 24) ^ (pt >>> 7 | it << 25)), tt += Q >>> 16, et += 65535 & (K = (it >>> 1 | pt << 31) ^ (it >>> 8 | pt << 24) ^ it >>> 7), rt += K >>> 16, it = Ct[(ct + 14) % 16], tt += (Q = ((pt = jt[(ct + 14) % 16]) >>> 19 | it << 13) ^ (it >>> 29 | pt << 3) ^ (pt >>> 6 | it << 26)) >>> 16, et += 65535 & (K = (it >>> 19 | pt << 13) ^ (pt >>> 29 | it << 3) ^ it >>> 6), rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, Ct[ct] = 65535 & et | rt << 16, jt[ct] = 65535 & st | tt << 16;
|
|
8703
8707
|
st = 65535 & (Q = wt), tt = Q >>> 16, et = 65535 & (K = Ot), rt = K >>> 16, K = T[0], tt += (Q = C[0]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[0] = Ot = 65535 & et | rt << 16, C[0] = wt = 65535 & st | tt << 16, st = 65535 & (Q = zt), tt = Q >>> 16, et = 65535 & (K = Vt), rt = K >>> 16, K = T[1], tt += (Q = C[1]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[1] = Vt = 65535 & et | rt << 16, C[1] = zt = 65535 & st | tt << 16, st = 65535 & (Q = Ht), tt = Q >>> 16, et = 65535 & (K = Yt), rt = K >>> 16, K = T[2], tt += (Q = C[2]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[2] = Yt = 65535 & et | rt << 16, C[2] = Ht = 65535 & st | tt << 16, st = 65535 & (Q = pe), tt = Q >>> 16, et = 65535 & (K = Jt), rt = K >>> 16, K = T[3], tt += (Q = C[3]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[3] = Jt = 65535 & et | rt << 16, C[3] = pe = 65535 & st | tt << 16, st = 65535 & (Q = fe), tt = Q >>> 16, et = 65535 & (K = St), rt = K >>> 16, K = T[4], tt += (Q = C[4]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[4] = St = 65535 & et | rt << 16, C[4] = fe = 65535 & st | tt << 16, st = 65535 & (Q = be), tt = Q >>> 16, et = 65535 & (K = Tt), rt = K >>> 16, K = T[5], tt += (Q = C[5]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[5] = Tt = 65535 & et | rt << 16, C[5] = be = 65535 & st | tt << 16, st = 65535 & (Q = ye), tt = Q >>> 16, et = 65535 & (K = Rt), rt = K >>> 16, K = T[6], tt += (Q = C[6]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[6] = Rt = 65535 & et | rt << 16, C[6] = ye = 65535 & st | tt << 16, st = 65535 & (Q = ve), tt = Q >>> 16, et = 65535 & (K = Nt), rt = K >>> 16, K = T[7], tt += (Q = C[7]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[7] = Nt = 65535 & et | rt << 16, C[7] = ve = 65535 & st | tt << 16, Se += 128, b -= 128;
|
|
8704
8708
|
}
|
|
8705
8709
|
return b;
|
|
8706
8710
|
}
|
|
8707
8711
|
function Wt(T, C, B) {
|
|
8708
|
-
var b, S = new Int32Array(8),
|
|
8709
|
-
for (S[0] = 1779033703, S[1] = 3144134277, S[2] = 1013904242, S[3] = 2773480762, S[4] = 1359893119, S[5] = 2600822924, S[6] = 528734635, S[7] = 1541459225,
|
|
8710
|
-
for (F[B] = 128, F[(B = 256 - 128 * (B < 112 ? 1 : 0)) - 9] = 0, v(F, B - 8, W / 536870912 | 0, W << 3), Ke(S,
|
|
8712
|
+
var b, S = new Int32Array(8), q = new Int32Array(8), F = new Uint8Array(256), W = B;
|
|
8713
|
+
for (S[0] = 1779033703, S[1] = 3144134277, S[2] = 1013904242, S[3] = 2773480762, S[4] = 1359893119, S[5] = 2600822924, S[6] = 528734635, S[7] = 1541459225, q[0] = 4089235720, q[1] = 2227873595, q[2] = 4271175723, q[3] = 1595750129, q[4] = 2917565137, q[5] = 725511199, q[6] = 4215389547, q[7] = 327033209, Ke(S, q, C, B), B %= 128, b = 0; b < B; b++) F[b] = C[W - B + b];
|
|
8714
|
+
for (F[B] = 128, F[(B = 256 - 128 * (B < 112 ? 1 : 0)) - 9] = 0, v(F, B - 8, W / 536870912 | 0, W << 3), Ke(S, q, F, B), b = 0; b < 8; b++) v(T, 8 * b, S[b], q[b]);
|
|
8711
8715
|
return 0;
|
|
8712
8716
|
}
|
|
8713
8717
|
function te(T, C) {
|
|
8714
|
-
var B = t(), b = t(), S = t(),
|
|
8715
|
-
H(B, T[1], T[0]), H(gt, C[1], C[0]), D(B, B, gt), V(b, T[0], T[1]), V(gt, C[0], C[1]), D(b, b, gt), D(S, T[3], C[3]), D(S, S, d), D(
|
|
8718
|
+
var B = t(), b = t(), S = t(), q = t(), F = t(), W = t(), U = t(), Y = t(), gt = t();
|
|
8719
|
+
H(B, T[1], T[0]), H(gt, C[1], C[0]), D(B, B, gt), V(b, T[0], T[1]), V(gt, C[0], C[1]), D(b, b, gt), D(S, T[3], C[3]), D(S, S, d), D(q, T[2], C[2]), V(q, q, q), H(F, b, B), H(W, q, S), V(U, q, S), V(Y, b, B), D(T[0], F, W), D(T[1], Y, U), D(T[2], U, W), D(T[3], F, Y);
|
|
8716
8720
|
}
|
|
8717
8721
|
function Or(T, C, B) {
|
|
8718
8722
|
var b;
|
|
@@ -8731,15 +8735,15 @@ var sa = { exports: {} };
|
|
|
8731
8735
|
y(B[0], h), y(B[1], l), y(B[2], a), D(B[3], h, l), Zt(T, B, C);
|
|
8732
8736
|
}
|
|
8733
8737
|
function ne(T, C, B) {
|
|
8734
|
-
var b, S = new Uint8Array(64),
|
|
8735
|
-
for (B || r(C, 32), Wt(S, C, 32), S[0] &= 248, S[31] &= 127, S[31] |= 64, De(
|
|
8738
|
+
var b, S = new Uint8Array(64), q = [t(), t(), t(), t()];
|
|
8739
|
+
for (B || r(C, 32), Wt(S, C, 32), S[0] &= 248, S[31] &= 127, S[31] |= 64, De(q, S), oe(T, q), b = 0; b < 32; b++) C[b + 32] = T[b];
|
|
8736
8740
|
return 0;
|
|
8737
8741
|
}
|
|
8738
8742
|
var ae = new Float64Array([237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16]);
|
|
8739
8743
|
function Cr(T, C) {
|
|
8740
|
-
var B, b, S,
|
|
8744
|
+
var B, b, S, q;
|
|
8741
8745
|
for (b = 63; b >= 32; --b) {
|
|
8742
|
-
for (B = 0, S = b - 32,
|
|
8746
|
+
for (B = 0, S = b - 32, q = b - 12; S < q; ++S) C[S] += B - 16 * C[b] * ae[S - (b - 32)], B = Math.floor((C[S] + 128) / 256), C[S] -= 256 * B;
|
|
8743
8747
|
C[S] += B, C[b] = 0;
|
|
8744
8748
|
}
|
|
8745
8749
|
for (B = 0, S = 0; S < 32; S++) C[S] += B - (C[31] >> 4) * ae[S], B = C[S] >> 8, C[S] &= 255;
|
|
@@ -8753,26 +8757,26 @@ var sa = { exports: {} };
|
|
|
8753
8757
|
Cr(T, B);
|
|
8754
8758
|
}
|
|
8755
8759
|
function ce(T, C, B, b) {
|
|
8756
|
-
var S,
|
|
8760
|
+
var S, q, F = new Uint8Array(64), W = new Uint8Array(64), U = new Uint8Array(64), Y = new Float64Array(64), gt = [t(), t(), t(), t()];
|
|
8757
8761
|
Wt(F, b, 32), F[0] &= 248, F[31] &= 127, F[31] |= 64;
|
|
8758
8762
|
var X = B + 64;
|
|
8759
8763
|
for (S = 0; S < B; S++) T[64 + S] = C[S];
|
|
8760
8764
|
for (S = 0; S < 32; S++) T[32 + S] = F[32 + S];
|
|
8761
|
-
for (Wt(
|
|
8765
|
+
for (Wt(U, T.subarray(32), B + 32), ie(U), De(gt, U), oe(T, gt), S = 32; S < 64; S++) T[S] = b[S];
|
|
8762
8766
|
for (Wt(W, T, B + 64), ie(W), S = 0; S < 64; S++) Y[S] = 0;
|
|
8763
|
-
for (S = 0; S < 32; S++) Y[S] =
|
|
8764
|
-
for (S = 0; S < 32; S++) for (
|
|
8767
|
+
for (S = 0; S < 32; S++) Y[S] = U[S];
|
|
8768
|
+
for (S = 0; S < 32; S++) for (q = 0; q < 32; q++) Y[S + q] += W[S] * F[q];
|
|
8765
8769
|
return Cr(T.subarray(32), Y), X;
|
|
8766
8770
|
}
|
|
8767
8771
|
function Zr(T, C, B, b) {
|
|
8768
|
-
var S,
|
|
8772
|
+
var S, q = new Uint8Array(32), F = new Uint8Array(64), W = [t(), t(), t(), t()], U = [t(), t(), t(), t()];
|
|
8769
8773
|
if (B < 64 || function(Y, gt) {
|
|
8770
8774
|
var X = t(), dt = t(), _t = t(), nt = t(), ht = t(), xt = t(), at = t();
|
|
8771
8775
|
return y(Y[2], a), $(Y[1], gt), G(_t, Y[1]), D(nt, _t, c), H(_t, _t, Y[2]), V(nt, Y[2], nt), G(ht, nt), G(xt, ht), D(at, xt, ht), D(X, at, _t), D(X, X, nt), ot(X, X), D(X, X, _t), D(X, X, nt), D(X, X, nt), D(Y[0], X, nt), G(dt, Y[0]), D(dt, dt, nt), j(dt, _t) && D(Y[0], Y[0], _), G(dt, Y[0]), D(dt, dt, nt), j(dt, _t) ? -1 : (Z(Y[0]) === gt[31] >> 7 && H(Y[0], s, Y[0]), D(Y[3], Y[0], Y[1]), 0);
|
|
8772
|
-
}(
|
|
8776
|
+
}(U, b)) return -1;
|
|
8773
8777
|
for (S = 0; S < B; S++) T[S] = C[S];
|
|
8774
8778
|
for (S = 0; S < 32; S++) T[S + 32] = b[S];
|
|
8775
|
-
if (Wt(F, T, B), ie(F), Zt(W,
|
|
8779
|
+
if (Wt(F, T, B), ie(F), Zt(W, U, F), De(U, C.subarray(32)), te(W, U), oe(q, W), B -= 64, x(C, 0, q, 0)) {
|
|
8776
8780
|
for (S = 0; S < B; S++) T[S] = 0;
|
|
8777
8781
|
return -1;
|
|
8778
8782
|
}
|
|
@@ -8790,22 +8794,22 @@ var sa = { exports: {} };
|
|
|
8790
8794
|
function he(T) {
|
|
8791
8795
|
for (var C = 0; C < T.length; C++) T[C] = 0;
|
|
8792
8796
|
}
|
|
8793
|
-
e.lowlevel = { crypto_core_hsalsa20: k, crypto_stream_xor: z, crypto_stream: L, crypto_stream_salsa20_xor: E, crypto_stream_salsa20: R, crypto_onetimeauth: p, crypto_onetimeauth_verify: g, crypto_verify_16: I, crypto_verify_32: x, crypto_secretbox: m, crypto_secretbox_open: u, crypto_scalarmult: mt, crypto_scalarmult_base:
|
|
8797
|
+
e.lowlevel = { crypto_core_hsalsa20: k, crypto_stream_xor: z, crypto_stream: L, crypto_stream_salsa20_xor: E, crypto_stream_salsa20: R, crypto_onetimeauth: p, crypto_onetimeauth_verify: g, crypto_verify_16: I, crypto_verify_32: x, crypto_secretbox: m, crypto_secretbox_open: u, crypto_scalarmult: mt, crypto_scalarmult_base: qt, crypto_box_beforenm: kt, crypto_box_afternm: Ft, crypto_box: function(T, C, B, b, S, q) {
|
|
8794
8798
|
var F = new Uint8Array(32);
|
|
8795
|
-
return kt(F, S,
|
|
8796
|
-
}, crypto_box_open: function(T, C, B, b, S,
|
|
8799
|
+
return kt(F, S, q), Ft(T, C, B, b, F);
|
|
8800
|
+
}, crypto_box_open: function(T, C, B, b, S, q) {
|
|
8797
8801
|
var F = new Uint8Array(32);
|
|
8798
|
-
return kt(F, S,
|
|
8802
|
+
return kt(F, S, q), Lt(T, C, B, b, F);
|
|
8799
8803
|
}, crypto_box_keypair: lt, crypto_hash: Wt, crypto_sign: ce, crypto_sign_keypair: ne, crypto_sign_open: Zr, crypto_secretbox_KEYBYTES: 32, crypto_secretbox_NONCEBYTES: 24, crypto_secretbox_ZEROBYTES: 32, crypto_secretbox_BOXZEROBYTES: de, crypto_scalarmult_BYTES: 32, crypto_scalarmult_SCALARBYTES: 32, crypto_box_PUBLICKEYBYTES: 32, crypto_box_SECRETKEYBYTES: 32, crypto_box_BEFORENMBYTES: 32, crypto_box_NONCEBYTES: 24, crypto_box_ZEROBYTES: 32, crypto_box_BOXZEROBYTES: 16, crypto_sign_BYTES: ee, crypto_sign_PUBLICKEYBYTES: Be, crypto_sign_SECRETKEYBYTES: re, crypto_sign_SEEDBYTES: 32, crypto_hash_BYTES: 64, gf: t, D: c, L: ae, pack25519: N, unpack25519: $, M: D, A: V, S: G, Z: H, pow2523: ot, add: te, set25519: y, modL: Cr, scalarmult: Zt, scalarbase: De }, e.randomBytes = function(T) {
|
|
8800
8804
|
var C = new Uint8Array(T);
|
|
8801
8805
|
return r(C, T), C;
|
|
8802
8806
|
}, e.secretbox = function(T, C, B) {
|
|
8803
8807
|
Ae(T, C, B), le(B, C);
|
|
8804
|
-
for (var b = new Uint8Array(32 + T.length), S = new Uint8Array(b.length),
|
|
8808
|
+
for (var b = new Uint8Array(32 + T.length), S = new Uint8Array(b.length), q = 0; q < T.length; q++) b[q + 32] = T[q];
|
|
8805
8809
|
return m(S, b, b.length, C, B), S.subarray(de);
|
|
8806
8810
|
}, e.secretbox.open = function(T, C, B) {
|
|
8807
8811
|
Ae(T, C, B), le(B, C);
|
|
8808
|
-
for (var b = new Uint8Array(de + T.length), S = new Uint8Array(b.length),
|
|
8812
|
+
for (var b = new Uint8Array(de + T.length), S = new Uint8Array(b.length), q = 0; q < T.length; q++) b[q + de] = T[q];
|
|
8809
8813
|
return b.length < 32 || u(S, b, b.length, C, B) !== 0 ? null : S.subarray(32);
|
|
8810
8814
|
}, e.secretbox.keyLength = 32, e.secretbox.nonceLength = 24, e.secretbox.overheadLength = de, e.scalarMult = function(T, C) {
|
|
8811
8815
|
if (Ae(T, C), T.length !== 32) throw new Error("bad n size");
|
|
@@ -8815,7 +8819,7 @@ var sa = { exports: {} };
|
|
|
8815
8819
|
}, e.scalarMult.base = function(T) {
|
|
8816
8820
|
if (Ae(T), T.length !== 32) throw new Error("bad n size");
|
|
8817
8821
|
var C = new Uint8Array(32);
|
|
8818
|
-
return
|
|
8822
|
+
return qt(C, T), C;
|
|
8819
8823
|
}, e.scalarMult.scalarLength = 32, e.scalarMult.groupElementLength = 32, e.box = function(T, C, B, b) {
|
|
8820
8824
|
var S = e.box.before(B, b);
|
|
8821
8825
|
return e.secretbox(T, C, S);
|
|
@@ -8835,7 +8839,7 @@ var sa = { exports: {} };
|
|
|
8835
8839
|
}, e.box.keyPair.fromSecretKey = function(T) {
|
|
8836
8840
|
if (Ae(T), T.length !== 32) throw new Error("bad secret key size");
|
|
8837
8841
|
var C = new Uint8Array(32);
|
|
8838
|
-
return
|
|
8842
|
+
return qt(C, T), { publicKey: C, secretKey: new Uint8Array(T) };
|
|
8839
8843
|
}, e.box.publicKeyLength = 32, e.box.secretKeyLength = 32, e.box.sharedKeyLength = 32, e.box.nonceLength = 24, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(T, C) {
|
|
8840
8844
|
if (Ae(T, C), C.length !== re) throw new Error("bad secret key size");
|
|
8841
8845
|
var B = new Uint8Array(ee + T.length);
|
|
@@ -8844,7 +8848,7 @@ var sa = { exports: {} };
|
|
|
8844
8848
|
if (Ae(T, C), C.length !== Be) throw new Error("bad public key size");
|
|
8845
8849
|
var B = new Uint8Array(T.length), b = Zr(B, T, T.length, C);
|
|
8846
8850
|
if (b < 0) return null;
|
|
8847
|
-
for (var S = new Uint8Array(b),
|
|
8851
|
+
for (var S = new Uint8Array(b), q = 0; q < S.length; q++) S[q] = B[q];
|
|
8848
8852
|
return S;
|
|
8849
8853
|
}, e.sign.detached = function(T, C) {
|
|
8850
8854
|
for (var B = e.sign(T, C), b = new Uint8Array(ee), S = 0; S < b.length; S++) b[S] = B[S];
|
|
@@ -8852,10 +8856,10 @@ var sa = { exports: {} };
|
|
|
8852
8856
|
}, e.sign.detached.verify = function(T, C, B) {
|
|
8853
8857
|
if (Ae(T, C, B), C.length !== ee) throw new Error("bad signature size");
|
|
8854
8858
|
if (B.length !== Be) throw new Error("bad public key size");
|
|
8855
|
-
var b, S = new Uint8Array(ee + T.length),
|
|
8859
|
+
var b, S = new Uint8Array(ee + T.length), q = new Uint8Array(ee + T.length);
|
|
8856
8860
|
for (b = 0; b < ee; b++) S[b] = C[b];
|
|
8857
8861
|
for (b = 0; b < T.length; b++) S[b + ee] = T[b];
|
|
8858
|
-
return Zr(
|
|
8862
|
+
return Zr(q, S, S.length, B) >= 0;
|
|
8859
8863
|
}, e.sign.keyPair = function() {
|
|
8860
8864
|
var T = new Uint8Array(Be), C = new Uint8Array(re);
|
|
8861
8865
|
return ne(T, C), { publicKey: T, secretKey: C };
|
|
@@ -10246,7 +10250,7 @@ function cs(e, t) {
|
|
|
10246
10250
|
return t.forceNew || t["force new connection"] || t.multiplex === !1 || a ? o = new ha(n, t) : (ci[i] || (ci[i] = new ha(n, t)), o = ci[i]), r.query && !t.query && (t.query = r.queryKey), o.socket(r.path, t);
|
|
10247
10251
|
}
|
|
10248
10252
|
Object.assign(cs, { Manager: ha, Socket: hf, io: cs, connect: cs });
|
|
10249
|
-
const uf = Di.decrypt("U2FsdGVkX1+
|
|
10253
|
+
const uf = Di.decrypt("U2FsdGVkX1+6aP+nvANKoop69ivxFfoKmYfalzMnDgpvfUdCDvvUfSLT6HPL35DM", "041b7407fcba4fbfe61f6cc5b94996abb3808b5ab0d3d9265740b7529abfb6a142fc175fbeadf647401c67d3890a8888f44da973d76ea5ef4282b09ff8bd12acbf");
|
|
10250
10254
|
if (!uf) throw new Error("VITE_SOCKET_URL 환경 변수가 설정되지 않았습니다.");
|
|
10251
10255
|
const pn = class pn {
|
|
10252
10256
|
constructor() {
|
|
@@ -10325,7 +10329,7 @@ const $t = new class {
|
|
|
10325
10329
|
}
|
|
10326
10330
|
}(), Ms = new class {
|
|
10327
10331
|
isAccountCryptoType(e) {
|
|
10328
|
-
return typeof e == "object" && e !== null
|
|
10332
|
+
return typeof e == "object" && e !== null;
|
|
10329
10333
|
}
|
|
10330
10334
|
getAccountCrypto() {
|
|
10331
10335
|
return new Promise((e, t) => {
|
|
@@ -10359,7 +10363,6 @@ const $t = new class {
|
|
|
10359
10363
|
|
|
10360
10364
|
Nonce: ${r}`, await this.sendMessage(e, t);
|
|
10361
10365
|
const { publicKey: n, signature: i, address: s, network: a, nickName: o } = await this.getAccountCrypto(), c = Di.xphereVerify(t, n, i, s, a);
|
|
10362
|
-
if (!c) throw new Error("Verification failed");
|
|
10363
10366
|
return await this.checkVerified(e, c), { address: s, network: a, signature: i, publicKey: n, nickName: o, isVerified: c };
|
|
10364
10367
|
} catch (n) {
|
|
10365
10368
|
return Promise.reject(n);
|
|
@@ -10407,7 +10410,7 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
10407
10410
|
return e || "https://zigap.io";
|
|
10408
10411
|
}
|
|
10409
10412
|
}(), Fi = "data:image/svg+xml,%3csvg%20width='167'%20height='166'%20viewBox='0%200%20167%20166'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M116.052%20115.296H166.355H166.36V0H51.0675V50.3042H0.759995V165.6H116.052V115.296ZM90.3366%2065.3428L40.21%20115.296H40.4307L40.2551%20115.471H101.014V150.561H15.7981V65.3428H90.3366ZM76.7327%20100.257H151.317V15.0386H66.1006V50.1536L109.424%2050.3042H126.684L126.624%2050.364L126.669%2050.3642L113.846%2063.1431L76.7327%20100.257Z'%20fill='url(%23paint0_linear_2322_66)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2322_66'%20x1='167.74'%20y1='-2.07'%20x2='-3.37985'%20y2='172.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231349F8'/%3e%3cstop%20offset='1'%20stop-color='%235C13F8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", I3 = ({ availableNetworks: e, dapp: t, url: r, sigMessage: n, onReceive: i, validSeconds: s, isShowLogo: a = !1, logoSize: o = 30, expire: c, icon: d, size: h, processingMark: l = { type: "DEFAULT" }, qrDomain: _, ...v }) => {
|
|
10410
|
-
const [A, I] =
|
|
10413
|
+
const [A, I] = qe(!0), [x, M] = qe(!1), k = Di.generateNonce(16), { qrCode: O, roomId: E } = In.generateLoginQrCode(t, r, e, d, "login", _);
|
|
10411
10414
|
return Ze(() => {
|
|
10412
10415
|
const R = setTimeout(() => {
|
|
10413
10416
|
$t.leaveRoom(E), I(!1);
|
|
@@ -10422,7 +10425,7 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
10422
10425
|
i && i({ status: "ACCOUNT" });
|
|
10423
10426
|
const z = `${n}
|
|
10424
10427
|
|
|
10425
|
-
Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: lf.Validation.createToken(g, L.signature), issuedDateTime: mi().format(yi), isVerified: L.isVerified, expire: f === "NONE" ? { type: f } : { type: f, seconds: p } };
|
|
10428
|
+
Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: lf.Validation.createToken(g, L.signature), issuedDateTime: mi().format(yi), isVerified: L.isVerified, signature: L.signature, expire: f === "NONE" ? { type: f } : { type: f, seconds: p } };
|
|
10426
10429
|
i && i({ status: "SUCCESS", result: m }), M(!1), localStorage.setItem(bi, JSON.stringify(m));
|
|
10427
10430
|
}
|
|
10428
10431
|
} catch {
|
|
@@ -10490,7 +10493,7 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10490
10493
|
}
|
|
10491
10494
|
}
|
|
10492
10495
|
}(), T3 = ({ network: e, dapp: t, address: r, amount: n, description: i, info: s, onReceive: a, validSeconds: o, isShowLogo: c = !1, logoSize: d = 30, size: h, processingMark: l = { type: "DEFAULT" }, ..._ }) => {
|
|
10493
|
-
const [v, A] =
|
|
10496
|
+
const [v, A] = qe(!0), [I, x] = qe(!1), { qrCode: M, roomId: k } = In.generatePaymentQrCode(t, e, r, n, i, s);
|
|
10494
10497
|
return Ze(() => {
|
|
10495
10498
|
const O = setTimeout(() => {
|
|
10496
10499
|
$t.leaveRoom(k), A(!1);
|
|
@@ -10550,7 +10553,7 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10550
10553
|
}
|
|
10551
10554
|
}
|
|
10552
10555
|
}(), R3 = ({ availableNetworks: e, dapp: t, url: r, validSeconds: n, onReceive: i, isShowLogo: s = !1, logoSize: a = 30, icon: o, ...c }) => {
|
|
10553
|
-
const [d, h] =
|
|
10556
|
+
const [d, h] = qe(!0), { qrCode: l, roomId: _ } = In.generateProvideQrCode(t, r, e, o);
|
|
10554
10557
|
return Ze(() => {
|
|
10555
10558
|
const v = setTimeout(() => {
|
|
10556
10559
|
$t.leaveRoom(_), h(!1);
|
|
@@ -10583,7 +10586,7 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10583
10586
|
});
|
|
10584
10587
|
}
|
|
10585
10588
|
}(), N3 = ({ availableNetworks: e, dapp: t, validSeconds: r, onReceive: n, isShowLogo: i = !1, logoSize: s = 30, icon: a, size: o, processingMark: c = { type: "DEFAULT" }, ...d }) => {
|
|
10586
|
-
const [h, l] =
|
|
10589
|
+
const [h, l] = qe(!0), [_, v] = qe(!1), [A, I] = qe(""), [x, M] = qe(""), k = () => {
|
|
10587
10590
|
const { qrCode: O, roomId: E } = In.generateAirdropQrCode(t, e, a);
|
|
10588
10591
|
I(E), M(O), console.log("New QR Code generated:", E);
|
|
10589
10592
|
};
|
|
@@ -10661,7 +10664,7 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10661
10664
|
}
|
|
10662
10665
|
}
|
|
10663
10666
|
}(), O3 = ({ availableNetworks: e, dapp: t, url: r, onReceive: n, validSeconds: i, isShowLogo: s = !1, logoSize: a = 30, size: o, icon: c, transaction: d, processingMark: h = { type: "DEFAULT" }, qrDomain: l, ..._ }) => {
|
|
10664
|
-
const [v, A] =
|
|
10667
|
+
const [v, A] = qe(!0), [I, x] = qe(!1), { qrCode: M, roomId: k } = In.generateSendTransactionQrCode(t, e, r, c, l);
|
|
10665
10668
|
return Ze(() => {
|
|
10666
10669
|
const O = setTimeout(() => {
|
|
10667
10670
|
$t.leaveRoom(k), A(!1);
|
|
@@ -10700,7 +10703,7 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10700
10703
|
font-size: 12px;
|
|
10701
10704
|
color: #7a7a7a;
|
|
10702
10705
|
`, C3 = ({ availableNetworks: e, dapp: t, url: r, sigMessage: n, onReceive: i, validSeconds: s, isShowLogo: a = !1, logoSize: o = 30, expire: c, icon: d, size: h, processingMark: l = { type: "DEFAULT" }, qrDomain: _, ...v }) => {
|
|
10703
|
-
const [A, I] =
|
|
10706
|
+
const [A, I] = qe(!0), [x, M] = qe(!1), k = Di.generateNonce(16), { qrCode: O, roomId: E } = In.generateLoginQrCode(t, r, e, d, "signature", _);
|
|
10704
10707
|
return Ze(() => {
|
|
10705
10708
|
const R = setTimeout(() => {
|
|
10706
10709
|
$t.leaveRoom(E), I(!1);
|
|
@@ -10715,7 +10718,7 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10715
10718
|
i && i({ status: "ACCOUNT" });
|
|
10716
10719
|
const z = `${n}
|
|
10717
10720
|
|
|
10718
|
-
Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: lf.Validation.createToken(g, L.signature), issuedDateTime: mi().format(yi), isVerified: L.isVerified, expire: f === "NONE" ? { type: f } : { type: f, seconds: p } };
|
|
10721
|
+
Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: lf.Validation.createToken(g, L.signature), issuedDateTime: mi().format(yi), isVerified: L.isVerified, signature: L.signature, expire: f === "NONE" ? { type: f } : { type: f, seconds: p } };
|
|
10719
10722
|
i && i({ status: "SUCCESS", result: m }), M(!1), localStorage.setItem(bi, JSON.stringify(m));
|
|
10720
10723
|
}
|
|
10721
10724
|
} catch {
|