zigap-utils 0.0.471 → 0.0.472
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/hooks/index.d.ts +1 -0
- package/dist/{zigap → hooks}/useZigap.d.ts +2 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.ts +3 -2
- package/dist/index.es.js +244 -237
- package/dist/xphere/index.d.ts +2 -2
- package/dist/zigap/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ var da = Object.defineProperty;
|
|
|
3
3
|
var ha = (f, e, t) => e in f ? da(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t;
|
|
4
4
|
var wt = (f, e, t) => (ha(f, typeof e != "symbol" ? e + "" : e, t), t);
|
|
5
5
|
import * as ua from "react";
|
|
6
|
-
import ar, { useRef as fi, useState as
|
|
6
|
+
import ar, { useRef as fi, useState as _r, useEffect as Ft } from "react";
|
|
7
7
|
var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function cn(f) {
|
|
9
9
|
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
|
|
@@ -29,7 +29,7 @@ function dn(f) {
|
|
|
29
29
|
});
|
|
30
30
|
}), t;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var Sf = { exports: {} }, Xt = {};
|
|
33
33
|
const hn = /* @__PURE__ */ dn(ua);
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
@@ -662,8 +662,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
662
662
|
Zt.Fragment = r, Zt.jsx = s, Zt.jsxs = M;
|
|
663
663
|
}()), Zt;
|
|
664
664
|
}
|
|
665
|
-
process.env.NODE_ENV === "production" ?
|
|
666
|
-
var vr =
|
|
665
|
+
process.env.NODE_ENV === "production" ? Sf.exports = la() : Sf.exports = xa();
|
|
666
|
+
var vr = Sf.exports, va = Object.defineProperty, br = Object.getOwnPropertySymbols, un = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable, ai = (f, e, t) => e in f ? va(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t, si = (f, e) => {
|
|
667
667
|
for (var t in e || (e = {}))
|
|
668
668
|
un.call(e, t) && ai(f, t, e[t]);
|
|
669
669
|
if (br)
|
|
@@ -684,7 +684,7 @@ var vr = Mf.exports, va = Object.defineProperty, br = Object.getOwnPropertySymbo
|
|
|
684
684
|
* Copyright (c) Project Nayuki.
|
|
685
685
|
* SPDX-License-Identifier: MIT
|
|
686
686
|
*/
|
|
687
|
-
var
|
|
687
|
+
var Dt;
|
|
688
688
|
((f) => {
|
|
689
689
|
const e = class {
|
|
690
690
|
constructor(u, o, c, v) {
|
|
@@ -1078,7 +1078,7 @@ var Ft;
|
|
|
1078
1078
|
};
|
|
1079
1079
|
let x = y;
|
|
1080
1080
|
x.NUMERIC_REGEX = /^[0-9]*$/, x.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, x.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:", f.QrSegment = x;
|
|
1081
|
-
})(
|
|
1081
|
+
})(Dt || (Dt = {}));
|
|
1082
1082
|
((f) => {
|
|
1083
1083
|
((e) => {
|
|
1084
1084
|
const t = class {
|
|
@@ -1089,7 +1089,7 @@ var Ft;
|
|
|
1089
1089
|
let r = t;
|
|
1090
1090
|
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;
|
|
1091
1091
|
})(f.QrCode || (f.QrCode = {}));
|
|
1092
|
-
})(
|
|
1092
|
+
})(Dt || (Dt = {}));
|
|
1093
1093
|
((f) => {
|
|
1094
1094
|
((e) => {
|
|
1095
1095
|
const t = class {
|
|
@@ -1103,8 +1103,8 @@ var Ft;
|
|
|
1103
1103
|
let r = t;
|
|
1104
1104
|
r.NUMERIC = new t(1, [10, 12, 14]), r.ALPHANUMERIC = new t(2, [9, 11, 13]), r.BYTE = new t(4, [8, 16, 16]), r.KANJI = new t(8, [8, 10, 12]), r.ECI = new t(7, [0, 0, 0]), e.Mode = r;
|
|
1105
1105
|
})(f.QrSegment || (f.QrSegment = {}));
|
|
1106
|
-
})(
|
|
1107
|
-
var tr =
|
|
1106
|
+
})(Dt || (Dt = {}));
|
|
1107
|
+
var tr = Dt;
|
|
1108
1108
|
/**
|
|
1109
1109
|
* @license qrcode.react
|
|
1110
1110
|
* Copyright (c) Paul O'Shannessy
|
|
@@ -1176,8 +1176,8 @@ function vn(f) {
|
|
|
1176
1176
|
"includeMargin",
|
|
1177
1177
|
"style",
|
|
1178
1178
|
"imageSettings"
|
|
1179
|
-
]), v = o == null ? void 0 : o.src, b = fi(null), B = fi(null), [w, R] =
|
|
1180
|
-
|
|
1179
|
+
]), v = o == null ? void 0 : o.src, b = fi(null), B = fi(null), [w, R] = _r(!1);
|
|
1180
|
+
Ft(() => {
|
|
1181
1181
|
if (b.current != null) {
|
|
1182
1182
|
const F = b.current, P = F.getContext("2d");
|
|
1183
1183
|
if (!P)
|
|
@@ -1194,7 +1194,7 @@ function vn(f) {
|
|
|
1194
1194
|
});
|
|
1195
1195
|
}), Q && P.drawImage(X, Y.x + H, Y.y + H, Y.w, Y.h);
|
|
1196
1196
|
}
|
|
1197
|
-
}),
|
|
1197
|
+
}), Ft(() => {
|
|
1198
1198
|
R(!1);
|
|
1199
1199
|
}, [v]);
|
|
1200
1200
|
const k = si({ height: r, width: r }, u);
|
|
@@ -1218,11 +1218,11 @@ var bn = { exports: {} };
|
|
|
1218
1218
|
function pn(f) {
|
|
1219
1219
|
throw new Error('Could not dynamically require "' + f + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1221
|
+
var Or = { exports: {} };
|
|
1222
1222
|
const Sa = {}, Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1223
1223
|
__proto__: null,
|
|
1224
1224
|
default: Sa
|
|
1225
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1225
|
+
}, Symbol.toStringTag, { value: "Module" })), Ar = /* @__PURE__ */ dn(Fa);
|
|
1226
1226
|
var oi;
|
|
1227
1227
|
function $e() {
|
|
1228
1228
|
return oi || (oi = 1, function(f, e) {
|
|
@@ -1233,7 +1233,7 @@ function $e() {
|
|
|
1233
1233
|
var i;
|
|
1234
1234
|
if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof Pe < "u" && Pe.crypto && (i = Pe.crypto), !i && typeof pn == "function")
|
|
1235
1235
|
try {
|
|
1236
|
-
i =
|
|
1236
|
+
i = Ar;
|
|
1237
1237
|
} catch {
|
|
1238
1238
|
}
|
|
1239
1239
|
var y = function() {
|
|
@@ -1722,10 +1722,10 @@ function $e() {
|
|
|
1722
1722
|
}(Math);
|
|
1723
1723
|
return t;
|
|
1724
1724
|
});
|
|
1725
|
-
}(
|
|
1725
|
+
}(Or)), Or.exports;
|
|
1726
1726
|
}
|
|
1727
|
-
var
|
|
1728
|
-
function
|
|
1727
|
+
var zr = { exports: {} }, ci;
|
|
1728
|
+
function Er() {
|
|
1729
1729
|
return ci || (ci = 1, function(f, e) {
|
|
1730
1730
|
(function(t, r) {
|
|
1731
1731
|
f.exports = r($e());
|
|
@@ -1952,9 +1952,9 @@ function Ar() {
|
|
|
1952
1952
|
});
|
|
1953
1953
|
}(), t;
|
|
1954
1954
|
});
|
|
1955
|
-
}(
|
|
1955
|
+
}(zr)), zr.exports;
|
|
1956
1956
|
}
|
|
1957
|
-
var
|
|
1957
|
+
var Nr = { exports: {} }, di;
|
|
1958
1958
|
function Da() {
|
|
1959
1959
|
return di || (di = 1, function(f, e) {
|
|
1960
1960
|
(function(t, r) {
|
|
@@ -1974,9 +1974,9 @@ function Da() {
|
|
|
1974
1974
|
}
|
|
1975
1975
|
}(), t.lib.WordArray;
|
|
1976
1976
|
});
|
|
1977
|
-
}(
|
|
1977
|
+
}(Nr)), Nr.exports;
|
|
1978
1978
|
}
|
|
1979
|
-
var
|
|
1979
|
+
var qr = { exports: {} }, hi;
|
|
1980
1980
|
function Ra() {
|
|
1981
1981
|
return hi || (hi = 1, function(f, e) {
|
|
1982
1982
|
(function(t, r) {
|
|
@@ -2068,10 +2068,10 @@ function Ra() {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
}(), t.enc.Utf16;
|
|
2070
2070
|
});
|
|
2071
|
-
}(
|
|
2071
|
+
}(qr)), qr.exports;
|
|
2072
2072
|
}
|
|
2073
|
-
var
|
|
2074
|
-
function
|
|
2073
|
+
var Lr = { exports: {} }, ui;
|
|
2074
|
+
function kt() {
|
|
2075
2075
|
return ui || (ui = 1, function(f, e) {
|
|
2076
2076
|
(function(t, r) {
|
|
2077
2077
|
f.exports = r($e());
|
|
@@ -2143,9 +2143,9 @@ function Rt() {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
}(), t.enc.Base64;
|
|
2145
2145
|
});
|
|
2146
|
-
}(
|
|
2146
|
+
}(Lr)), Lr.exports;
|
|
2147
2147
|
}
|
|
2148
|
-
var
|
|
2148
|
+
var Hr = { exports: {} }, li;
|
|
2149
2149
|
function ka() {
|
|
2150
2150
|
return li || (li = 1, function(f, e) {
|
|
2151
2151
|
(function(t, r) {
|
|
@@ -2225,10 +2225,10 @@ function ka() {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
}(), t.enc.Base64url;
|
|
2227
2227
|
});
|
|
2228
|
-
}(
|
|
2228
|
+
}(Hr)), Hr.exports;
|
|
2229
2229
|
}
|
|
2230
|
-
var
|
|
2231
|
-
function
|
|
2230
|
+
var Ur = { exports: {} }, xi;
|
|
2231
|
+
function Pt() {
|
|
2232
2232
|
return xi || (xi = 1, function(f, e) {
|
|
2233
2233
|
(function(t, r) {
|
|
2234
2234
|
f.exports = r($e());
|
|
@@ -2291,9 +2291,9 @@ function kt() {
|
|
|
2291
2291
|
a.MD5 = x._createHelper(c), a.HmacMD5 = x._createHmacHelper(c);
|
|
2292
2292
|
}(Math), t.MD5;
|
|
2293
2293
|
});
|
|
2294
|
-
}(
|
|
2294
|
+
}(Ur)), Ur.exports;
|
|
2295
2295
|
}
|
|
2296
|
-
var
|
|
2296
|
+
var $r = { exports: {} }, vi;
|
|
2297
2297
|
function yn() {
|
|
2298
2298
|
return vi || (vi = 1, function(f, e) {
|
|
2299
2299
|
(function(t, r) {
|
|
@@ -2335,9 +2335,9 @@ function yn() {
|
|
|
2335
2335
|
r.SHA1 = y._createHelper(o), r.HmacSHA1 = y._createHmacHelper(o);
|
|
2336
2336
|
}(), t.SHA1;
|
|
2337
2337
|
});
|
|
2338
|
-
}(
|
|
2338
|
+
}($r)), $r.exports;
|
|
2339
2339
|
}
|
|
2340
|
-
var
|
|
2340
|
+
var Wr = { exports: {} }, bi;
|
|
2341
2341
|
function Lf() {
|
|
2342
2342
|
return bi || (bi = 1, function(f, e) {
|
|
2343
2343
|
(function(t, r) {
|
|
@@ -2387,9 +2387,9 @@ function Lf() {
|
|
|
2387
2387
|
a.SHA256 = x._createHelper(b), a.HmacSHA256 = x._createHmacHelper(b);
|
|
2388
2388
|
}(Math), t.SHA256;
|
|
2389
2389
|
});
|
|
2390
|
-
}(
|
|
2390
|
+
}(Wr)), Wr.exports;
|
|
2391
2391
|
}
|
|
2392
|
-
var
|
|
2392
|
+
var Kr = { exports: {} }, pi;
|
|
2393
2393
|
function Pa() {
|
|
2394
2394
|
return pi || (pi = 1, function(f, e) {
|
|
2395
2395
|
(function(t, r, a) {
|
|
@@ -2417,13 +2417,13 @@ function Pa() {
|
|
|
2417
2417
|
r.SHA224 = x._createHelper(u), r.HmacSHA224 = x._createHmacHelper(u);
|
|
2418
2418
|
}(), t.SHA224;
|
|
2419
2419
|
});
|
|
2420
|
-
}(
|
|
2420
|
+
}(Kr)), Kr.exports;
|
|
2421
2421
|
}
|
|
2422
|
-
var
|
|
2422
|
+
var Yr = { exports: {} }, yi;
|
|
2423
2423
|
function gn() {
|
|
2424
2424
|
return yi || (yi = 1, function(f, e) {
|
|
2425
2425
|
(function(t, r, a) {
|
|
2426
|
-
f.exports = r($e(),
|
|
2426
|
+
f.exports = r($e(), Er());
|
|
2427
2427
|
})(Pe, function(t) {
|
|
2428
2428
|
return function() {
|
|
2429
2429
|
var r = t, a = r.lib, i = a.Hasher, y = r.x64, x = y.Word, u = y.WordArray, o = r.algo;
|
|
@@ -2558,13 +2558,13 @@ function gn() {
|
|
|
2558
2558
|
r.SHA512 = i._createHelper(B), r.HmacSHA512 = i._createHmacHelper(B);
|
|
2559
2559
|
}(), t.SHA512;
|
|
2560
2560
|
});
|
|
2561
|
-
}(
|
|
2561
|
+
}(Yr)), Yr.exports;
|
|
2562
2562
|
}
|
|
2563
|
-
var
|
|
2563
|
+
var jr = { exports: {} }, gi;
|
|
2564
2564
|
function Ia() {
|
|
2565
2565
|
return gi || (gi = 1, function(f, e) {
|
|
2566
2566
|
(function(t, r, a) {
|
|
2567
|
-
f.exports = r($e(),
|
|
2567
|
+
f.exports = r($e(), Er(), gn());
|
|
2568
2568
|
})(Pe, function(t) {
|
|
2569
2569
|
return function() {
|
|
2570
2570
|
var r = t, a = r.x64, i = a.Word, y = a.WordArray, x = r.algo, u = x.SHA512, o = x.SHA384 = u.extend({
|
|
@@ -2588,13 +2588,13 @@ function Ia() {
|
|
|
2588
2588
|
r.SHA384 = u._createHelper(o), r.HmacSHA384 = u._createHmacHelper(o);
|
|
2589
2589
|
}(), t.SHA384;
|
|
2590
2590
|
});
|
|
2591
|
-
}(
|
|
2591
|
+
}(jr)), jr.exports;
|
|
2592
2592
|
}
|
|
2593
|
-
var
|
|
2593
|
+
var Vr = { exports: {} }, mi;
|
|
2594
2594
|
function Ta() {
|
|
2595
2595
|
return mi || (mi = 1, function(f, e) {
|
|
2596
2596
|
(function(t, r, a) {
|
|
2597
|
-
f.exports = r($e(),
|
|
2597
|
+
f.exports = r($e(), Er());
|
|
2598
2598
|
})(Pe, function(t) {
|
|
2599
2599
|
return function(r) {
|
|
2600
2600
|
var a = t, i = a.lib, y = i.WordArray, x = i.Hasher, u = a.x64, o = u.Word, c = a.algo, v = [], b = [], B = [];
|
|
@@ -2698,9 +2698,9 @@ function Ta() {
|
|
|
2698
2698
|
a.SHA3 = x._createHelper(R), a.HmacSHA3 = x._createHmacHelper(R);
|
|
2699
2699
|
}(Math), t.SHA3;
|
|
2700
2700
|
});
|
|
2701
|
-
}(
|
|
2701
|
+
}(Vr)), Vr.exports;
|
|
2702
2702
|
}
|
|
2703
|
-
var
|
|
2703
|
+
var Xr = { exports: {} }, _i;
|
|
2704
2704
|
function Oa() {
|
|
2705
2705
|
return _i || (_i = 1, function(f, e) {
|
|
2706
2706
|
(function(t, r) {
|
|
@@ -3091,9 +3091,9 @@ function Oa() {
|
|
|
3091
3091
|
a.RIPEMD160 = x._createHelper(R), a.HmacRIPEMD160 = x._createHmacHelper(R);
|
|
3092
3092
|
}(), t.RIPEMD160;
|
|
3093
3093
|
});
|
|
3094
|
-
}(
|
|
3094
|
+
}(Xr)), Xr.exports;
|
|
3095
3095
|
}
|
|
3096
|
-
var
|
|
3096
|
+
var Zr = { exports: {} }, Ai;
|
|
3097
3097
|
function Hf() {
|
|
3098
3098
|
return Ai || (Ai = 1, function(f, e) {
|
|
3099
3099
|
(function(t, r) {
|
|
@@ -3169,9 +3169,9 @@ function Hf() {
|
|
|
3169
3169
|
});
|
|
3170
3170
|
})();
|
|
3171
3171
|
});
|
|
3172
|
-
}(
|
|
3172
|
+
}(Zr)), Zr.exports;
|
|
3173
3173
|
}
|
|
3174
|
-
var
|
|
3174
|
+
var Gr = { exports: {} }, Ei;
|
|
3175
3175
|
function za() {
|
|
3176
3176
|
return Ei || (Ei = 1, function(f, e) {
|
|
3177
3177
|
(function(t, r, a) {
|
|
@@ -3236,9 +3236,9 @@ function za() {
|
|
|
3236
3236
|
};
|
|
3237
3237
|
}(), t.PBKDF2;
|
|
3238
3238
|
});
|
|
3239
|
-
}(
|
|
3239
|
+
}(Gr)), Gr.exports;
|
|
3240
3240
|
}
|
|
3241
|
-
var
|
|
3241
|
+
var Qr = { exports: {} }, wi;
|
|
3242
3242
|
function At() {
|
|
3243
3243
|
return wi || (wi = 1, function(f, e) {
|
|
3244
3244
|
(function(t, r, a) {
|
|
@@ -3299,9 +3299,9 @@ function At() {
|
|
|
3299
3299
|
};
|
|
3300
3300
|
}(), t.EvpKDF;
|
|
3301
3301
|
});
|
|
3302
|
-
}(
|
|
3302
|
+
}(Qr)), Qr.exports;
|
|
3303
3303
|
}
|
|
3304
|
-
var
|
|
3304
|
+
var Jr = { exports: {} }, Bi;
|
|
3305
3305
|
function C0() {
|
|
3306
3306
|
return Bi || (Bi = 1, function(f, e) {
|
|
3307
3307
|
(function(t, r, a) {
|
|
@@ -3837,9 +3837,9 @@ function C0() {
|
|
|
3837
3837
|
});
|
|
3838
3838
|
}();
|
|
3839
3839
|
});
|
|
3840
|
-
}(
|
|
3840
|
+
}(Jr)), Jr.exports;
|
|
3841
3841
|
}
|
|
3842
|
-
var
|
|
3842
|
+
var ef = { exports: {} }, Ci;
|
|
3843
3843
|
function Na() {
|
|
3844
3844
|
return Ci || (Ci = 1, function(f, e) {
|
|
3845
3845
|
(function(t, r, a) {
|
|
@@ -3867,9 +3867,9 @@ function Na() {
|
|
|
3867
3867
|
return r;
|
|
3868
3868
|
}(), t.mode.CFB;
|
|
3869
3869
|
});
|
|
3870
|
-
}(
|
|
3870
|
+
}(ef)), ef.exports;
|
|
3871
3871
|
}
|
|
3872
|
-
var
|
|
3872
|
+
var tf = { exports: {} }, Mi;
|
|
3873
3873
|
function qa() {
|
|
3874
3874
|
return Mi || (Mi = 1, function(f, e) {
|
|
3875
3875
|
(function(t, r, a) {
|
|
@@ -3889,9 +3889,9 @@ function qa() {
|
|
|
3889
3889
|
return r.Decryptor = a, r;
|
|
3890
3890
|
}(), t.mode.CTR;
|
|
3891
3891
|
});
|
|
3892
|
-
}(
|
|
3892
|
+
}(tf)), tf.exports;
|
|
3893
3893
|
}
|
|
3894
|
-
var
|
|
3894
|
+
var rf = { exports: {} }, Si;
|
|
3895
3895
|
function La() {
|
|
3896
3896
|
return Si || (Si = 1, function(f, e) {
|
|
3897
3897
|
(function(t, r, a) {
|
|
@@ -3928,9 +3928,9 @@ function La() {
|
|
|
3928
3928
|
return r.Decryptor = y, r;
|
|
3929
3929
|
}(), t.mode.CTRGladman;
|
|
3930
3930
|
});
|
|
3931
|
-
}(
|
|
3931
|
+
}(rf)), rf.exports;
|
|
3932
3932
|
}
|
|
3933
|
-
var
|
|
3933
|
+
var ff = { exports: {} }, Fi;
|
|
3934
3934
|
function Ha() {
|
|
3935
3935
|
return Fi || (Fi = 1, function(f, e) {
|
|
3936
3936
|
(function(t, r, a) {
|
|
@@ -3948,9 +3948,9 @@ function Ha() {
|
|
|
3948
3948
|
return r.Decryptor = a, r;
|
|
3949
3949
|
}(), t.mode.OFB;
|
|
3950
3950
|
});
|
|
3951
|
-
}(
|
|
3951
|
+
}(ff)), ff.exports;
|
|
3952
3952
|
}
|
|
3953
|
-
var
|
|
3953
|
+
var nf = { exports: {} }, Di;
|
|
3954
3954
|
function Ua() {
|
|
3955
3955
|
return Di || (Di = 1, function(f, e) {
|
|
3956
3956
|
(function(t, r, a) {
|
|
@@ -3969,9 +3969,9 @@ function Ua() {
|
|
|
3969
3969
|
}), r;
|
|
3970
3970
|
}(), t.mode.ECB;
|
|
3971
3971
|
});
|
|
3972
|
-
}(
|
|
3972
|
+
}(nf)), nf.exports;
|
|
3973
3973
|
}
|
|
3974
|
-
var
|
|
3974
|
+
var af = { exports: {} }, Ri;
|
|
3975
3975
|
function $a() {
|
|
3976
3976
|
return Ri || (Ri = 1, function(f, e) {
|
|
3977
3977
|
(function(t, r, a) {
|
|
@@ -3988,9 +3988,9 @@ function $a() {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
}, t.pad.Ansix923;
|
|
3990
3990
|
});
|
|
3991
|
-
}(
|
|
3991
|
+
}(af)), af.exports;
|
|
3992
3992
|
}
|
|
3993
|
-
var
|
|
3993
|
+
var sf = { exports: {} }, ki;
|
|
3994
3994
|
function Wa() {
|
|
3995
3995
|
return ki || (ki = 1, function(f, e) {
|
|
3996
3996
|
(function(t, r, a) {
|
|
@@ -4007,9 +4007,9 @@ function Wa() {
|
|
|
4007
4007
|
}
|
|
4008
4008
|
}, t.pad.Iso10126;
|
|
4009
4009
|
});
|
|
4010
|
-
}(
|
|
4010
|
+
}(sf)), sf.exports;
|
|
4011
4011
|
}
|
|
4012
|
-
var
|
|
4012
|
+
var of = { exports: {} }, Pi;
|
|
4013
4013
|
function Ka() {
|
|
4014
4014
|
return Pi || (Pi = 1, function(f, e) {
|
|
4015
4015
|
(function(t, r, a) {
|
|
@@ -4024,9 +4024,9 @@ function Ka() {
|
|
|
4024
4024
|
}
|
|
4025
4025
|
}, t.pad.Iso97971;
|
|
4026
4026
|
});
|
|
4027
|
-
}(
|
|
4027
|
+
}(of)), of.exports;
|
|
4028
4028
|
}
|
|
4029
|
-
var
|
|
4029
|
+
var cf = { exports: {} }, Ii;
|
|
4030
4030
|
function Ya() {
|
|
4031
4031
|
return Ii || (Ii = 1, function(f, e) {
|
|
4032
4032
|
(function(t, r, a) {
|
|
@@ -4046,9 +4046,9 @@ function Ya() {
|
|
|
4046
4046
|
}
|
|
4047
4047
|
}, t.pad.ZeroPadding;
|
|
4048
4048
|
});
|
|
4049
|
-
}(
|
|
4049
|
+
}(cf)), cf.exports;
|
|
4050
4050
|
}
|
|
4051
|
-
var
|
|
4051
|
+
var df = { exports: {} }, Ti;
|
|
4052
4052
|
function ja() {
|
|
4053
4053
|
return Ti || (Ti = 1, function(f, e) {
|
|
4054
4054
|
(function(t, r, a) {
|
|
@@ -4061,9 +4061,9 @@ function ja() {
|
|
|
4061
4061
|
}
|
|
4062
4062
|
}, t.pad.NoPadding;
|
|
4063
4063
|
});
|
|
4064
|
-
}(
|
|
4064
|
+
}(df)), df.exports;
|
|
4065
4065
|
}
|
|
4066
|
-
var
|
|
4066
|
+
var hf = { exports: {} }, Oi;
|
|
4067
4067
|
function Va() {
|
|
4068
4068
|
return Oi || (Oi = 1, function(f, e) {
|
|
4069
4069
|
(function(t, r, a) {
|
|
@@ -4108,13 +4108,13 @@ function Va() {
|
|
|
4108
4108
|
};
|
|
4109
4109
|
}(), t.format.Hex;
|
|
4110
4110
|
});
|
|
4111
|
-
}(
|
|
4111
|
+
}(hf)), hf.exports;
|
|
4112
4112
|
}
|
|
4113
|
-
var
|
|
4113
|
+
var uf = { exports: {} }, zi;
|
|
4114
4114
|
function Xa() {
|
|
4115
4115
|
return zi || (zi = 1, function(f, e) {
|
|
4116
4116
|
(function(t, r, a) {
|
|
4117
|
-
f.exports = r($e(),
|
|
4117
|
+
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
4118
4118
|
})(Pe, function(t) {
|
|
4119
4119
|
return function() {
|
|
4120
4120
|
var r = t, a = r.lib, i = a.BlockCipher, y = r.algo, x = [], u = [], o = [], c = [], v = [], b = [], B = [], w = [], R = [], k = [];
|
|
@@ -4168,13 +4168,13 @@ function Xa() {
|
|
|
4168
4168
|
r.AES = i._createHelper(F);
|
|
4169
4169
|
}(), t.AES;
|
|
4170
4170
|
});
|
|
4171
|
-
}(
|
|
4171
|
+
}(uf)), uf.exports;
|
|
4172
4172
|
}
|
|
4173
|
-
var
|
|
4173
|
+
var lf = { exports: {} }, Ni;
|
|
4174
4174
|
function Za() {
|
|
4175
4175
|
return Ni || (Ni = 1, function(f, e) {
|
|
4176
4176
|
(function(t, r, a) {
|
|
4177
|
-
f.exports = r($e(),
|
|
4177
|
+
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
4178
4178
|
})(Pe, function(t) {
|
|
4179
4179
|
return function() {
|
|
4180
4180
|
var r = t, a = r.lib, i = a.WordArray, y = a.BlockCipher, x = r.algo, u = [
|
|
@@ -4888,13 +4888,13 @@ function Za() {
|
|
|
4888
4888
|
r.TripleDES = y._createHelper(k);
|
|
4889
4889
|
}(), t.TripleDES;
|
|
4890
4890
|
});
|
|
4891
|
-
}(
|
|
4891
|
+
}(lf)), lf.exports;
|
|
4892
4892
|
}
|
|
4893
|
-
var
|
|
4893
|
+
var xf = { exports: {} }, qi;
|
|
4894
4894
|
function Ga() {
|
|
4895
4895
|
return qi || (qi = 1, function(f, e) {
|
|
4896
4896
|
(function(t, r, a) {
|
|
4897
|
-
f.exports = r($e(),
|
|
4897
|
+
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
4898
4898
|
})(Pe, function(t) {
|
|
4899
4899
|
return function() {
|
|
4900
4900
|
var r = t, a = r.lib, i = a.StreamCipher, y = r.algo, x = y.RC4 = i.extend({
|
|
@@ -4942,13 +4942,13 @@ function Ga() {
|
|
|
4942
4942
|
r.RC4Drop = i._createHelper(o);
|
|
4943
4943
|
}(), t.RC4;
|
|
4944
4944
|
});
|
|
4945
|
-
}(
|
|
4945
|
+
}(xf)), xf.exports;
|
|
4946
4946
|
}
|
|
4947
|
-
var
|
|
4947
|
+
var vf = { exports: {} }, Li;
|
|
4948
4948
|
function Qa() {
|
|
4949
4949
|
return Li || (Li = 1, function(f, e) {
|
|
4950
4950
|
(function(t, r, a) {
|
|
4951
|
-
f.exports = r($e(),
|
|
4951
|
+
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
4952
4952
|
})(Pe, function(t) {
|
|
4953
4953
|
return function() {
|
|
4954
4954
|
var r = t, a = r.lib, i = a.StreamCipher, y = r.algo, x = [], u = [], o = [], c = y.Rabbit = i.extend({
|
|
@@ -5008,13 +5008,13 @@ function Qa() {
|
|
|
5008
5008
|
r.Rabbit = i._createHelper(c);
|
|
5009
5009
|
}(), t.Rabbit;
|
|
5010
5010
|
});
|
|
5011
|
-
}(
|
|
5011
|
+
}(vf)), vf.exports;
|
|
5012
5012
|
}
|
|
5013
|
-
var
|
|
5013
|
+
var bf = { exports: {} }, Hi;
|
|
5014
5014
|
function Ja() {
|
|
5015
5015
|
return Hi || (Hi = 1, function(f, e) {
|
|
5016
5016
|
(function(t, r, a) {
|
|
5017
|
-
f.exports = r($e(),
|
|
5017
|
+
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
5018
5018
|
})(Pe, function(t) {
|
|
5019
5019
|
return function() {
|
|
5020
5020
|
var r = t, a = r.lib, i = a.StreamCipher, y = r.algo, x = [], u = [], o = [], c = y.RabbitLegacy = i.extend({
|
|
@@ -5072,13 +5072,13 @@ function Ja() {
|
|
|
5072
5072
|
r.RabbitLegacy = i._createHelper(c);
|
|
5073
5073
|
}(), t.RabbitLegacy;
|
|
5074
5074
|
});
|
|
5075
|
-
}(
|
|
5075
|
+
}(bf)), bf.exports;
|
|
5076
5076
|
}
|
|
5077
|
-
var
|
|
5077
|
+
var pf = { exports: {} }, Ui;
|
|
5078
5078
|
function es() {
|
|
5079
5079
|
return Ui || (Ui = 1, function(f, e) {
|
|
5080
5080
|
(function(t, r, a) {
|
|
5081
|
-
f.exports = r($e(),
|
|
5081
|
+
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
5082
5082
|
})(Pe, function(t) {
|
|
5083
5083
|
return function() {
|
|
5084
5084
|
var r = t, a = r.lib, i = a.BlockCipher, y = r.algo;
|
|
@@ -6194,11 +6194,11 @@ function es() {
|
|
|
6194
6194
|
r.Blowfish = i._createHelper(R);
|
|
6195
6195
|
}(), t.Blowfish;
|
|
6196
6196
|
});
|
|
6197
|
-
}(
|
|
6197
|
+
}(pf)), pf.exports;
|
|
6198
6198
|
}
|
|
6199
6199
|
(function(f, e) {
|
|
6200
6200
|
(function(t, r, a) {
|
|
6201
|
-
f.exports = r($e(),
|
|
6201
|
+
f.exports = r($e(), Er(), Da(), Ra(), kt(), ka(), Pt(), yn(), Lf(), Pa(), gn(), Ia(), Ta(), Oa(), Hf(), za(), At(), C0(), Na(), qa(), La(), Ha(), Ua(), $a(), Wa(), Ka(), Ya(), ja(), Va(), Xa(), Za(), Ga(), Qa(), Ja(), es());
|
|
6202
6202
|
})(Pe, function(t) {
|
|
6203
6203
|
return t;
|
|
6204
6204
|
});
|
|
@@ -6284,7 +6284,7 @@ Uf.exports;
|
|
|
6284
6284
|
typeof e == "object" ? e.exports = i : t.BN = i, i.BN = i, i.wordSize = 26;
|
|
6285
6285
|
var y;
|
|
6286
6286
|
try {
|
|
6287
|
-
typeof window < "u" && typeof window.Buffer < "u" ? y = window.Buffer : y =
|
|
6287
|
+
typeof window < "u" && typeof window.Buffer < "u" ? y = window.Buffer : y = Ar.Buffer;
|
|
6288
6288
|
} catch {
|
|
6289
6289
|
}
|
|
6290
6290
|
i.isBN = function(n) {
|
|
@@ -7442,7 +7442,7 @@ Uf.exports;
|
|
|
7442
7442
|
};
|
|
7443
7443
|
})(f, Pe);
|
|
7444
7444
|
})(Uf);
|
|
7445
|
-
var pt = Uf.exports,
|
|
7445
|
+
var pt = Uf.exports, It = _n;
|
|
7446
7446
|
function _n(f, e) {
|
|
7447
7447
|
if (!f)
|
|
7448
7448
|
throw new Error(e || "Assertion failed");
|
|
@@ -7491,7 +7491,7 @@ var $f = {};
|
|
|
7491
7491
|
};
|
|
7492
7492
|
})($f);
|
|
7493
7493
|
(function(f) {
|
|
7494
|
-
var e = f, t = pt, r =
|
|
7494
|
+
var e = f, t = pt, r = It, a = $f;
|
|
7495
7495
|
e.assert = r, e.toArray = a.toArray, e.zero2 = a.zero2, e.toHex = a.toHex, e.encode = a.encode;
|
|
7496
7496
|
function i(c, v, b) {
|
|
7497
7497
|
var B = new Array(Math.max(c.bitLength(), b) + 1), w;
|
|
@@ -7538,9 +7538,9 @@ var $f = {};
|
|
|
7538
7538
|
}
|
|
7539
7539
|
e.intFromLE = o;
|
|
7540
7540
|
})(Y0);
|
|
7541
|
-
var Wf = { exports: {} },
|
|
7541
|
+
var Wf = { exports: {} }, yf;
|
|
7542
7542
|
Wf.exports = function(e) {
|
|
7543
|
-
return
|
|
7543
|
+
return yf || (yf = new mt(null)), yf.generate(e);
|
|
7544
7544
|
};
|
|
7545
7545
|
function mt(f) {
|
|
7546
7546
|
this.rand = f;
|
|
@@ -7568,7 +7568,7 @@ if (typeof self == "object")
|
|
|
7568
7568
|
});
|
|
7569
7569
|
else
|
|
7570
7570
|
try {
|
|
7571
|
-
var $i =
|
|
7571
|
+
var $i = Ar;
|
|
7572
7572
|
if (typeof $i.randomBytes != "function")
|
|
7573
7573
|
throw new Error("Not supported");
|
|
7574
7574
|
mt.prototype._rand = function(e) {
|
|
@@ -7582,7 +7582,7 @@ function Et(f, e) {
|
|
|
7582
7582
|
var t = this.n && this.p.div(this.n);
|
|
7583
7583
|
!t || t.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = !0, this.redN = this.n.toRed(this.red));
|
|
7584
7584
|
}
|
|
7585
|
-
var
|
|
7585
|
+
var wr = Et;
|
|
7586
7586
|
Et.prototype.point = function() {
|
|
7587
7587
|
throw new Error("Not implemented");
|
|
7588
7588
|
};
|
|
@@ -7771,8 +7771,8 @@ X0.prototype.dblp = function(e) {
|
|
|
7771
7771
|
t = t.dbl();
|
|
7772
7772
|
return t;
|
|
7773
7773
|
};
|
|
7774
|
-
var
|
|
7775
|
-
typeof Object.create == "function" ?
|
|
7774
|
+
var Ff = { exports: {} };
|
|
7775
|
+
typeof Object.create == "function" ? Ff.exports = function(e, t) {
|
|
7776
7776
|
t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
|
|
7777
7777
|
constructor: {
|
|
7778
7778
|
value: e,
|
|
@@ -7781,7 +7781,7 @@ typeof Object.create == "function" ? Sf.exports = function(e, t) {
|
|
|
7781
7781
|
configurable: !0
|
|
7782
7782
|
}
|
|
7783
7783
|
}));
|
|
7784
|
-
} :
|
|
7784
|
+
} : Ff.exports = function(e, t) {
|
|
7785
7785
|
if (t) {
|
|
7786
7786
|
e.super_ = t;
|
|
7787
7787
|
var r = function() {
|
|
@@ -7789,7 +7789,7 @@ typeof Object.create == "function" ? Sf.exports = function(e, t) {
|
|
|
7789
7789
|
r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e;
|
|
7790
7790
|
}
|
|
7791
7791
|
};
|
|
7792
|
-
var
|
|
7792
|
+
var Br = Ff.exports, ys = Y0, g0 = pt, Yf = Br, Ut = wr, gs = ys.assert;
|
|
7793
7793
|
function Z0(f) {
|
|
7794
7794
|
Ut.call(this, "short", f), this.a = new g0(f.a, 16).toRed(this.red), this.b = new g0(f.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(f), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
|
|
7795
7795
|
}
|
|
@@ -8173,20 +8173,20 @@ R0.prototype.inspect = function() {
|
|
|
8173
8173
|
R0.prototype.isInfinity = function() {
|
|
8174
8174
|
return this.z.cmpn(0) === 0;
|
|
8175
8175
|
};
|
|
8176
|
-
var
|
|
8176
|
+
var zt = pt, En = Br, Cr = wr, _s = Y0;
|
|
8177
8177
|
function $t(f) {
|
|
8178
|
-
|
|
8178
|
+
Cr.call(this, "mont", f), this.a = new zt(f.a, 16).toRed(this.red), this.b = new zt(f.b, 16).toRed(this.red), this.i4 = new zt(4).toRed(this.red).redInvm(), this.two = new zt(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
|
|
8179
8179
|
}
|
|
8180
|
-
En($t,
|
|
8180
|
+
En($t, Cr);
|
|
8181
8181
|
var As = $t;
|
|
8182
8182
|
$t.prototype.validate = function(e) {
|
|
8183
8183
|
var t = e.normalize().x, r = t.redSqr(), a = r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t), i = a.redSqrt();
|
|
8184
8184
|
return i.redSqr().cmp(a) === 0;
|
|
8185
8185
|
};
|
|
8186
8186
|
function B0(f, e, t) {
|
|
8187
|
-
|
|
8187
|
+
Cr.BasePoint.call(this, f, "projective"), e === null && t === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new zt(e, 16), this.z = new zt(t, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)));
|
|
8188
8188
|
}
|
|
8189
|
-
En(B0,
|
|
8189
|
+
En(B0, Cr.BasePoint);
|
|
8190
8190
|
$t.prototype.decodePoint = function(e, t) {
|
|
8191
8191
|
return this.point(_s.toArray(e, t), 1);
|
|
8192
8192
|
};
|
|
@@ -8243,11 +8243,11 @@ B0.prototype.normalize = function() {
|
|
|
8243
8243
|
B0.prototype.getX = function() {
|
|
8244
8244
|
return this.normalize(), this.x.fromRed();
|
|
8245
8245
|
};
|
|
8246
|
-
var Es = Y0, lt = pt, wn =
|
|
8246
|
+
var Es = Y0, lt = pt, wn = Br, Mr = wr, ws = Es.assert;
|
|
8247
8247
|
function ht(f) {
|
|
8248
|
-
this.twisted = (f.a | 0) !== 1, this.mOneA = this.twisted && (f.a | 0) === -1, this.extended = this.mOneA,
|
|
8248
|
+
this.twisted = (f.a | 0) !== 1, this.mOneA = this.twisted && (f.a | 0) === -1, this.extended = this.mOneA, Mr.call(this, "edwards", f), this.a = new lt(f.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new lt(f.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new lt(f.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), ws(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (f.c | 0) === 1;
|
|
8249
8249
|
}
|
|
8250
|
-
wn(ht,
|
|
8250
|
+
wn(ht, Mr);
|
|
8251
8251
|
var Bs = ht;
|
|
8252
8252
|
ht.prototype._mulA = function(e) {
|
|
8253
8253
|
return this.mOneA ? e.redNeg() : this.a.redMul(e);
|
|
@@ -8287,9 +8287,9 @@ ht.prototype.validate = function(e) {
|
|
|
8287
8287
|
return a.cmp(i) === 0;
|
|
8288
8288
|
};
|
|
8289
8289
|
function v0(f, e, t, r, a) {
|
|
8290
|
-
|
|
8290
|
+
Mr.BasePoint.call(this, f, "projective"), e === null && t === null && r === null ? (this.x = this.curve.zero, this.y = this.curve.one, this.z = this.curve.one, this.t = this.curve.zero, this.zOne = !0) : (this.x = new lt(e, 16), this.y = new lt(t, 16), this.z = r ? new lt(r, 16) : this.curve.one, this.t = a && new lt(a, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), this.zOne = this.z === this.curve.one, this.curve.extended && !this.t && (this.t = this.x.redMul(this.y), this.zOne || (this.t = this.t.redMul(this.z.redInvm()))));
|
|
8291
8291
|
}
|
|
8292
|
-
wn(v0,
|
|
8292
|
+
wn(v0, Mr.BasePoint);
|
|
8293
8293
|
ht.prototype.pointFromJSON = function(e) {
|
|
8294
8294
|
return v0.fromJSON(this, e);
|
|
8295
8295
|
};
|
|
@@ -8382,9 +8382,9 @@ v0.prototype.toP = v0.prototype.normalize;
|
|
|
8382
8382
|
v0.prototype.mixedAdd = v0.prototype.add;
|
|
8383
8383
|
(function(f) {
|
|
8384
8384
|
var e = f;
|
|
8385
|
-
e.base =
|
|
8385
|
+
e.base = wr, e.short = ms, e.mont = As, e.edwards = Bs;
|
|
8386
8386
|
})(Kf);
|
|
8387
|
-
var
|
|
8387
|
+
var Sr = {}, Fr = {}, Le = {}, Cs = It, Ms = Br;
|
|
8388
8388
|
Le.inherits = Ms;
|
|
8389
8389
|
function Ss(f, e) {
|
|
8390
8390
|
return (f.charCodeAt(e) & 64512) !== 55296 || e < 0 || e + 1 >= f.length ? !1 : (f.charCodeAt(e + 1) & 64512) === 56320;
|
|
@@ -8538,12 +8538,12 @@ function Zs(f, e, t) {
|
|
|
8538
8538
|
return r >>> 0;
|
|
8539
8539
|
}
|
|
8540
8540
|
Le.shr64_lo = Zs;
|
|
8541
|
-
var Wt = {}, Wi = Le, Gs =
|
|
8542
|
-
function
|
|
8541
|
+
var Wt = {}, Wi = Le, Gs = It;
|
|
8542
|
+
function Dr() {
|
|
8543
8543
|
this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32;
|
|
8544
8544
|
}
|
|
8545
|
-
Wt.BlockHash =
|
|
8546
|
-
|
|
8545
|
+
Wt.BlockHash = Dr;
|
|
8546
|
+
Dr.prototype.update = function(e, t) {
|
|
8547
8547
|
if (e = Wi.toArray(e, t), this.pending ? this.pending = this.pending.concat(e) : this.pending = e, this.pendingTotal += e.length, this.pending.length >= this._delta8) {
|
|
8548
8548
|
e = this.pending;
|
|
8549
8549
|
var r = e.length % this._delta8;
|
|
@@ -8553,10 +8553,10 @@ Fr.prototype.update = function(e, t) {
|
|
|
8553
8553
|
}
|
|
8554
8554
|
return this;
|
|
8555
8555
|
};
|
|
8556
|
-
|
|
8556
|
+
Dr.prototype.digest = function(e) {
|
|
8557
8557
|
return this.update(this._pad()), Gs(this.pending === null), this._digest(e);
|
|
8558
8558
|
};
|
|
8559
|
-
|
|
8559
|
+
Dr.prototype._pad = function() {
|
|
8560
8560
|
var e = this.pendingTotal, t = this._delta8, r = t - (e + this.padLength) % t, a = new Array(r + this.padLength);
|
|
8561
8561
|
a[0] = 128;
|
|
8562
8562
|
for (var i = 1; i < r; i++)
|
|
@@ -8608,7 +8608,7 @@ function fo(f) {
|
|
|
8608
8608
|
return ft(f, 17) ^ ft(f, 19) ^ f >>> 10;
|
|
8609
8609
|
}
|
|
8610
8610
|
ut.g1_256 = fo;
|
|
8611
|
-
var Nt = Le, io = Wt, no = ut,
|
|
8611
|
+
var Nt = Le, io = Wt, no = ut, gf = Nt.rotl32, Gt = Nt.sum32, ao = Nt.sum32_5, so = no.ft_1, Rn = io.BlockHash, oo = [
|
|
8612
8612
|
1518500249,
|
|
8613
8613
|
1859775393,
|
|
8614
8614
|
2400959708,
|
|
@@ -8635,18 +8635,18 @@ st.prototype._update = function(e, t) {
|
|
|
8635
8635
|
for (var r = this.W, a = 0; a < 16; a++)
|
|
8636
8636
|
r[a] = e[t + a];
|
|
8637
8637
|
for (; a < r.length; a++)
|
|
8638
|
-
r[a] =
|
|
8638
|
+
r[a] = gf(r[a - 3] ^ r[a - 8] ^ r[a - 14] ^ r[a - 16], 1);
|
|
8639
8639
|
var i = this.h[0], y = this.h[1], x = this.h[2], u = this.h[3], o = this.h[4];
|
|
8640
8640
|
for (a = 0; a < r.length; a++) {
|
|
8641
|
-
var c = ~~(a / 20), v = ao(
|
|
8642
|
-
o = u, u = x, x =
|
|
8641
|
+
var c = ~~(a / 20), v = ao(gf(i, 5), so(c, y, x, u), o, r[a], oo[c]);
|
|
8642
|
+
o = u, u = x, x = gf(y, 30), y = i, i = v;
|
|
8643
8643
|
}
|
|
8644
8644
|
this.h[0] = Gt(this.h[0], i), this.h[1] = Gt(this.h[1], y), this.h[2] = Gt(this.h[2], x), this.h[3] = Gt(this.h[3], u), this.h[4] = Gt(this.h[4], o);
|
|
8645
8645
|
};
|
|
8646
8646
|
st.prototype._digest = function(e) {
|
|
8647
8647
|
return e === "hex" ? Nt.toHex32(this.h, "big") : Nt.split32(this.h, "big");
|
|
8648
8648
|
};
|
|
8649
|
-
var qt = Le, ho = Wt, Yt = ut, uo =
|
|
8649
|
+
var qt = Le, ho = Wt, Yt = ut, uo = It, J0 = qt.sum32, lo = qt.sum32_4, xo = qt.sum32_5, vo = Yt.ch32, bo = Yt.maj32, po = Yt.s0_256, yo = Yt.s1_256, go = Yt.g0_256, mo = Yt.g1_256, kn = ho.BlockHash, _o = [
|
|
8650
8650
|
1116352408,
|
|
8651
8651
|
1899447441,
|
|
8652
8652
|
3049323471,
|
|
@@ -8747,7 +8747,7 @@ ot.prototype._update = function(e, t) {
|
|
|
8747
8747
|
ot.prototype._digest = function(e) {
|
|
8748
8748
|
return e === "hex" ? qt.toHex32(this.h, "big") : qt.split32(this.h, "big");
|
|
8749
8749
|
};
|
|
8750
|
-
var
|
|
8750
|
+
var Df = Le, In = Pn;
|
|
8751
8751
|
function vt() {
|
|
8752
8752
|
if (!(this instanceof vt))
|
|
8753
8753
|
return new vt();
|
|
@@ -8762,16 +8762,16 @@ function vt() {
|
|
|
8762
8762
|
3204075428
|
|
8763
8763
|
];
|
|
8764
8764
|
}
|
|
8765
|
-
|
|
8765
|
+
Df.inherits(vt, In);
|
|
8766
8766
|
var Ao = vt;
|
|
8767
8767
|
vt.blockSize = 512;
|
|
8768
8768
|
vt.outSize = 224;
|
|
8769
8769
|
vt.hmacStrength = 192;
|
|
8770
8770
|
vt.padLength = 64;
|
|
8771
8771
|
vt.prototype._digest = function(e) {
|
|
8772
|
-
return e === "hex" ?
|
|
8772
|
+
return e === "hex" ? Df.toHex32(this.h.slice(0, 7), "big") : Df.split32(this.h.slice(0, 7), "big");
|
|
8773
8773
|
};
|
|
8774
|
-
var H0 = Le, Eo = Wt, wo =
|
|
8774
|
+
var H0 = Le, Eo = Wt, wo = It, it = H0.rotr64_hi, nt = H0.rotr64_lo, Tn = H0.shr64_hi, On = H0.shr64_lo, gt = H0.sum64, mf = H0.sum64_hi, _f = H0.sum64_lo, Bo = H0.sum64_4_hi, Co = H0.sum64_4_lo, Mo = H0.sum64_5_hi, So = H0.sum64_5_lo, zn = Eo.BlockHash, Fo = [
|
|
8775
8775
|
1116352408,
|
|
8776
8776
|
3609767458,
|
|
8777
8777
|
1899447441,
|
|
@@ -9016,8 +9016,8 @@ tt.prototype._update = function(e, t) {
|
|
|
9016
9016
|
g
|
|
9017
9017
|
);
|
|
9018
9018
|
H = Io(a, i), $ = To(a, i), Y = ko(a, i, y, x, u), X = Po(a, i, y, x, u, o);
|
|
9019
|
-
var N =
|
|
9020
|
-
F = k, P = z, k = w, z = R, w = b, R = B, b =
|
|
9019
|
+
var N = mf(H, $, Y, X), q = _f(H, $, Y, X);
|
|
9020
|
+
F = k, P = z, k = w, z = R, w = b, R = B, b = mf(c, v, C, S), B = _f(v, v, C, S), c = u, v = o, u = y, o = x, y = a, x = i, a = mf(C, S, N, q), i = _f(C, S, N, q);
|
|
9021
9021
|
}
|
|
9022
9022
|
gt(this.h, 0, a, i), gt(this.h, 2, y, x), gt(this.h, 4, u, o), gt(this.h, 6, c, v), gt(this.h, 8, b, B), gt(this.h, 10, w, R), gt(this.h, 12, k, z), gt(this.h, 14, F, P);
|
|
9023
9023
|
};
|
|
@@ -9072,7 +9072,7 @@ function Ho(f, e) {
|
|
|
9072
9072
|
var t = nt(f, e, 19), r = nt(e, f, 29), a = On(f, e, 6), i = t ^ r ^ a;
|
|
9073
9073
|
return i < 0 && (i += 4294967296), i;
|
|
9074
9074
|
}
|
|
9075
|
-
var
|
|
9075
|
+
var Rf = Le, qn = Nn;
|
|
9076
9076
|
function bt() {
|
|
9077
9077
|
if (!(this instanceof bt))
|
|
9078
9078
|
return new bt();
|
|
@@ -9095,27 +9095,27 @@ function bt() {
|
|
|
9095
9095
|
3204075428
|
|
9096
9096
|
];
|
|
9097
9097
|
}
|
|
9098
|
-
|
|
9098
|
+
Rf.inherits(bt, qn);
|
|
9099
9099
|
var Uo = bt;
|
|
9100
9100
|
bt.blockSize = 1024;
|
|
9101
9101
|
bt.outSize = 384;
|
|
9102
9102
|
bt.hmacStrength = 192;
|
|
9103
9103
|
bt.padLength = 128;
|
|
9104
9104
|
bt.prototype._digest = function(e) {
|
|
9105
|
-
return e === "hex" ?
|
|
9105
|
+
return e === "hex" ? Rf.toHex32(this.h.slice(0, 12), "big") : Rf.split32(this.h.slice(0, 12), "big");
|
|
9106
9106
|
};
|
|
9107
9107
|
Kt.sha1 = co;
|
|
9108
9108
|
Kt.sha224 = Ao;
|
|
9109
9109
|
Kt.sha256 = Pn;
|
|
9110
9110
|
Kt.sha384 = Uo;
|
|
9111
9111
|
Kt.sha512 = Nn;
|
|
9112
|
-
var Ln = {},
|
|
9112
|
+
var Ln = {}, Rt = Le, $o = Wt, sr = Rt.rotl32, Ki = Rt.sum32, Qt = Rt.sum32_3, Yi = Rt.sum32_4, Hn = $o.BlockHash;
|
|
9113
9113
|
function ct() {
|
|
9114
9114
|
if (!(this instanceof ct))
|
|
9115
9115
|
return new ct();
|
|
9116
9116
|
Hn.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
|
|
9117
9117
|
}
|
|
9118
|
-
|
|
9118
|
+
Rt.inherits(ct, Hn);
|
|
9119
9119
|
Ln.ripemd160 = ct;
|
|
9120
9120
|
ct.blockSize = 512;
|
|
9121
9121
|
ct.outSize = 160;
|
|
@@ -9141,7 +9141,7 @@ ct.prototype._update = function(e, t) {
|
|
|
9141
9141
|
w = Qt(this.h[1], i, v), this.h[1] = Qt(this.h[2], y, b), this.h[2] = Qt(this.h[3], x, u), this.h[3] = Qt(this.h[4], r, o), this.h[4] = Qt(this.h[0], a, c), this.h[0] = w;
|
|
9142
9142
|
};
|
|
9143
9143
|
ct.prototype._digest = function(e) {
|
|
9144
|
-
return e === "hex" ?
|
|
9144
|
+
return e === "hex" ? Rt.toHex32(this.h, "little") : Rt.split32(this.h, "little");
|
|
9145
9145
|
};
|
|
9146
9146
|
function ji(f, e, t, r) {
|
|
9147
9147
|
return f <= 15 ? e ^ t ^ r : f <= 31 ? e & t | ~e & r : f <= 47 ? (e | ~t) ^ r : f <= 63 ? e & r | t & ~r : e ^ (t | ~r);
|
|
@@ -9476,7 +9476,7 @@ var Yo = [
|
|
|
9476
9476
|
13,
|
|
9477
9477
|
11,
|
|
9478
9478
|
11
|
|
9479
|
-
], Zo = Le, Go =
|
|
9479
|
+
], Zo = Le, Go = It;
|
|
9480
9480
|
function Lt(f, e, t) {
|
|
9481
9481
|
if (!(this instanceof Lt))
|
|
9482
9482
|
return new Lt(f, e, t);
|
|
@@ -9502,10 +9502,10 @@ Lt.prototype.digest = function(e) {
|
|
|
9502
9502
|
(function(f) {
|
|
9503
9503
|
var e = f;
|
|
9504
9504
|
e.utils = Le, e.common = Wt, e.sha = Kt, e.ripemd = Ln, e.hmac = Qo, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160;
|
|
9505
|
-
})(
|
|
9506
|
-
var
|
|
9505
|
+
})(Fr);
|
|
9506
|
+
var Af, Vi;
|
|
9507
9507
|
function Jo() {
|
|
9508
|
-
return Vi || (Vi = 1,
|
|
9508
|
+
return Vi || (Vi = 1, Af = {
|
|
9509
9509
|
doubles: {
|
|
9510
9510
|
step: 4,
|
|
9511
9511
|
points: [
|
|
@@ -10284,10 +10284,10 @@ function Jo() {
|
|
|
10284
10284
|
]
|
|
10285
10285
|
]
|
|
10286
10286
|
}
|
|
10287
|
-
}),
|
|
10287
|
+
}), Af;
|
|
10288
10288
|
}
|
|
10289
10289
|
(function(f) {
|
|
10290
|
-
var e = f, t =
|
|
10290
|
+
var e = f, t = Fr, r = Kf, a = Y0, i = a.assert;
|
|
10291
10291
|
function y(o) {
|
|
10292
10292
|
o.type === "short" ? this.curve = new r.short(o) : o.type === "edwards" ? this.curve = new r.edwards(o) : this.curve = new r.mont(o), this.g = this.curve.g, this.n = this.curve.n, this.hash = o.hash, i(this.g.validate(), "Invalid curve"), i(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O");
|
|
10293
10293
|
}
|
|
@@ -10435,8 +10435,8 @@ function Jo() {
|
|
|
10435
10435
|
u
|
|
10436
10436
|
]
|
|
10437
10437
|
});
|
|
10438
|
-
})(
|
|
10439
|
-
var ec =
|
|
10438
|
+
})(Sr);
|
|
10439
|
+
var ec = Fr, Mt = $f, Un = It;
|
|
10440
10440
|
function _t(f) {
|
|
10441
10441
|
if (!(this instanceof _t))
|
|
10442
10442
|
return new _t(f);
|
|
@@ -10477,7 +10477,7 @@ _t.prototype.generate = function(e, t, r, a) {
|
|
|
10477
10477
|
var y = i.slice(0, e);
|
|
10478
10478
|
return this._update(r), this._reseed++, Mt.encode(y, t);
|
|
10479
10479
|
};
|
|
10480
|
-
var rc = pt, fc = Y0,
|
|
10480
|
+
var rc = pt, fc = Y0, kf = fc.assert;
|
|
10481
10481
|
function T0(f, e) {
|
|
10482
10482
|
this.ec = f, this.priv = null, this.pub = null, e.priv && this._importPrivate(e.priv, e.privEnc), e.pub && this._importPublic(e.pub, e.pubEnc);
|
|
10483
10483
|
}
|
|
@@ -10509,13 +10509,13 @@ T0.prototype._importPrivate = function(e, t) {
|
|
|
10509
10509
|
};
|
|
10510
10510
|
T0.prototype._importPublic = function(e, t) {
|
|
10511
10511
|
if (e.x || e.y) {
|
|
10512
|
-
this.ec.curve.type === "mont" ?
|
|
10512
|
+
this.ec.curve.type === "mont" ? kf(e.x, "Need x coordinate") : (this.ec.curve.type === "short" || this.ec.curve.type === "edwards") && kf(e.x && e.y, "Need both x and y coordinate"), this.pub = this.ec.curve.point(e.x, e.y);
|
|
10513
10513
|
return;
|
|
10514
10514
|
}
|
|
10515
10515
|
this.pub = this.ec.curve.decodePoint(e, t);
|
|
10516
10516
|
};
|
|
10517
10517
|
T0.prototype.derive = function(e) {
|
|
10518
|
-
return e.validate() ||
|
|
10518
|
+
return e.validate() || kf(e.validate(), "public point not validated"), e.mul(this.priv).getX();
|
|
10519
10519
|
};
|
|
10520
10520
|
T0.prototype.sign = function(e, t, r) {
|
|
10521
10521
|
return this.ec.sign(e, this, t, r);
|
|
@@ -10527,16 +10527,16 @@ T0.prototype.inspect = function() {
|
|
|
10527
10527
|
return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
|
|
10528
10528
|
};
|
|
10529
10529
|
var gr = pt, jf = Y0, nc = jf.assert;
|
|
10530
|
-
function
|
|
10531
|
-
if (f instanceof
|
|
10530
|
+
function Rr(f, e) {
|
|
10531
|
+
if (f instanceof Rr)
|
|
10532
10532
|
return f;
|
|
10533
10533
|
this._importDER(f, e) || (nc(f.r && f.s, "Signature without r or s"), this.r = new gr(f.r, 16), this.s = new gr(f.s, 16), f.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = f.recoveryParam);
|
|
10534
10534
|
}
|
|
10535
|
-
var ac =
|
|
10535
|
+
var ac = Rr;
|
|
10536
10536
|
function sc() {
|
|
10537
10537
|
this.place = 0;
|
|
10538
10538
|
}
|
|
10539
|
-
function
|
|
10539
|
+
function Ef(f, e) {
|
|
10540
10540
|
var t = f[e.place++];
|
|
10541
10541
|
if (!(t & 128))
|
|
10542
10542
|
return t;
|
|
@@ -10552,21 +10552,21 @@ function Xi(f) {
|
|
|
10552
10552
|
e++;
|
|
10553
10553
|
return e === 0 ? f : f.slice(e);
|
|
10554
10554
|
}
|
|
10555
|
-
|
|
10555
|
+
Rr.prototype._importDER = function(e, t) {
|
|
10556
10556
|
e = jf.toArray(e, t);
|
|
10557
10557
|
var r = new sc();
|
|
10558
10558
|
if (e[r.place++] !== 48)
|
|
10559
10559
|
return !1;
|
|
10560
|
-
var a =
|
|
10560
|
+
var a = Ef(e, r);
|
|
10561
10561
|
if (a === !1 || a + r.place !== e.length || e[r.place++] !== 2)
|
|
10562
10562
|
return !1;
|
|
10563
|
-
var i =
|
|
10563
|
+
var i = Ef(e, r);
|
|
10564
10564
|
if (i === !1)
|
|
10565
10565
|
return !1;
|
|
10566
10566
|
var y = e.slice(r.place, i + r.place);
|
|
10567
10567
|
if (r.place += i, e[r.place++] !== 2)
|
|
10568
10568
|
return !1;
|
|
10569
|
-
var x =
|
|
10569
|
+
var x = Ef(e, r);
|
|
10570
10570
|
if (x === !1 || e.length !== x + r.place)
|
|
10571
10571
|
return !1;
|
|
10572
10572
|
var u = e.slice(r.place, x + r.place);
|
|
@@ -10582,7 +10582,7 @@ Dr.prototype._importDER = function(e, t) {
|
|
|
10582
10582
|
return !1;
|
|
10583
10583
|
return this.r = new gr(y), this.s = new gr(u), this.recoveryParam = null, !0;
|
|
10584
10584
|
};
|
|
10585
|
-
function
|
|
10585
|
+
function wf(f, e) {
|
|
10586
10586
|
if (e < 128) {
|
|
10587
10587
|
f.push(e);
|
|
10588
10588
|
return;
|
|
@@ -10592,23 +10592,23 @@ function Ef(f, e) {
|
|
|
10592
10592
|
f.push(e >>> (t << 3) & 255);
|
|
10593
10593
|
f.push(e);
|
|
10594
10594
|
}
|
|
10595
|
-
|
|
10595
|
+
Rr.prototype.toDER = function(e) {
|
|
10596
10596
|
var t = this.r.toArray(), r = this.s.toArray();
|
|
10597
10597
|
for (t[0] & 128 && (t = [0].concat(t)), r[0] & 128 && (r = [0].concat(r)), t = Xi(t), r = Xi(r); !r[0] && !(r[1] & 128); )
|
|
10598
10598
|
r = r.slice(1);
|
|
10599
10599
|
var a = [2];
|
|
10600
|
-
|
|
10600
|
+
wf(a, t.length), a = a.concat(t), a.push(2), wf(a, r.length);
|
|
10601
10601
|
var i = a.concat(r), y = [48];
|
|
10602
|
-
return
|
|
10602
|
+
return wf(y, i.length), y = y.concat(i), jf.encode(y, e);
|
|
10603
10603
|
};
|
|
10604
|
-
var St = pt, $n = tc, oc = Y0,
|
|
10604
|
+
var St = pt, $n = tc, oc = Y0, Bf = Sr, cc = An, Wn = oc.assert, Vf = ic, kr = ac;
|
|
10605
10605
|
function V0(f) {
|
|
10606
10606
|
if (!(this instanceof V0))
|
|
10607
10607
|
return new V0(f);
|
|
10608
10608
|
typeof f == "string" && (Wn(
|
|
10609
|
-
Object.prototype.hasOwnProperty.call(
|
|
10609
|
+
Object.prototype.hasOwnProperty.call(Bf, f),
|
|
10610
10610
|
"Unknown curve " + f
|
|
10611
|
-
), f =
|
|
10611
|
+
), f = Bf[f]), f instanceof Bf.PresetCurve && (f = { curve: f }), this.curve = f.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = f.curve.g, this.g.precompute(f.curve.n.bitLength() + 1), this.hash = f.hash || f.curve.hash;
|
|
10612
10612
|
}
|
|
10613
10613
|
var dc = V0;
|
|
10614
10614
|
V0.prototype.keyPair = function(e) {
|
|
@@ -10657,7 +10657,7 @@ V0.prototype.sign = function(e, t, r, a) {
|
|
|
10657
10657
|
var R = v.invm(this.n).mul(w.mul(t.getPrivate()).iadd(e));
|
|
10658
10658
|
if (R = R.umod(this.n), R.cmpn(0) !== 0) {
|
|
10659
10659
|
var k = (b.getY().isOdd() ? 1 : 0) | (B.cmp(w) !== 0 ? 2 : 0);
|
|
10660
|
-
return a.canonical && R.cmp(this.nh) > 0 && (R = this.n.sub(R), k ^= 1), new
|
|
10660
|
+
return a.canonical && R.cmp(this.nh) > 0 && (R = this.n.sub(R), k ^= 1), new kr({ r: w, s: R, recoveryParam: k });
|
|
10661
10661
|
}
|
|
10662
10662
|
}
|
|
10663
10663
|
}
|
|
@@ -10665,7 +10665,7 @@ V0.prototype.sign = function(e, t, r, a) {
|
|
|
10665
10665
|
}
|
|
10666
10666
|
};
|
|
10667
10667
|
V0.prototype.verify = function(e, t, r, a) {
|
|
10668
|
-
e = this._truncateToN(new St(e, 16)), r = this.keyFromPublic(r, a), t = new
|
|
10668
|
+
e = this._truncateToN(new St(e, 16)), r = this.keyFromPublic(r, a), t = new kr(t, "hex");
|
|
10669
10669
|
var i = t.r, y = t.s;
|
|
10670
10670
|
if (i.cmpn(1) < 0 || i.cmp(this.n) >= 0 || y.cmpn(1) < 0 || y.cmp(this.n) >= 0)
|
|
10671
10671
|
return !1;
|
|
@@ -10673,7 +10673,7 @@ V0.prototype.verify = function(e, t, r, a) {
|
|
|
10673
10673
|
return this.curve._maxwellTrick ? (c = this.g.jmulAdd(u, r.getPublic(), o), c.isInfinity() ? !1 : c.eqXToP(i)) : (c = this.g.mulAdd(u, r.getPublic(), o), c.isInfinity() ? !1 : c.getX().umod(this.n).cmp(i) === 0);
|
|
10674
10674
|
};
|
|
10675
10675
|
V0.prototype.recoverPubKey = function(f, e, t, r) {
|
|
10676
|
-
Wn((3 & t) === t, "The recovery param is more than two bits"), e = new
|
|
10676
|
+
Wn((3 & t) === t, "The recovery param is more than two bits"), e = new kr(e, r);
|
|
10677
10677
|
var a = this.n, i = new St(f), y = e.r, x = e.s, u = t & 1, o = t >> 1;
|
|
10678
10678
|
if (y.cmp(this.curve.p.umod(this.curve.n)) >= 0 && o)
|
|
10679
10679
|
throw new Error("Unable to find sencond key candinate");
|
|
@@ -10682,7 +10682,7 @@ V0.prototype.recoverPubKey = function(f, e, t, r) {
|
|
|
10682
10682
|
return this.g.mulAdd(v, y, b);
|
|
10683
10683
|
};
|
|
10684
10684
|
V0.prototype.getKeyRecoveryParam = function(f, e, t, r) {
|
|
10685
|
-
if (e = new
|
|
10685
|
+
if (e = new kr(e, r), e.recoveryParam !== null)
|
|
10686
10686
|
return e.recoveryParam;
|
|
10687
10687
|
for (var a = 0; a < 4; a++) {
|
|
10688
10688
|
var i;
|
|
@@ -10740,32 +10740,32 @@ w0.prototype.getSecret = function(e) {
|
|
|
10740
10740
|
w0.prototype.getPublic = function(e) {
|
|
10741
10741
|
return nr.encode(this.pubBytes(), e);
|
|
10742
10742
|
};
|
|
10743
|
-
var hc = w0, uc = pt,
|
|
10744
|
-
function
|
|
10743
|
+
var hc = w0, uc = pt, Pr = Y0, lc = Pr.assert, Ir = Pr.cachedProperty, xc = Pr.parseBytes;
|
|
10744
|
+
function Tt(f, e) {
|
|
10745
10745
|
this.eddsa = f, typeof e != "object" && (e = xc(e)), Array.isArray(e) && (e = {
|
|
10746
10746
|
R: e.slice(0, f.encodingLength),
|
|
10747
10747
|
S: e.slice(f.encodingLength)
|
|
10748
10748
|
}), lc(e.R && e.S, "Signature without R or S"), f.isPoint(e.R) && (this._R = e.R), e.S instanceof uc && (this._S = e.S), this._Rencoded = Array.isArray(e.R) ? e.R : e.Rencoded, this._Sencoded = Array.isArray(e.S) ? e.S : e.Sencoded;
|
|
10749
10749
|
}
|
|
10750
|
-
|
|
10750
|
+
Ir(Tt, "S", function() {
|
|
10751
10751
|
return this.eddsa.decodeInt(this.Sencoded());
|
|
10752
10752
|
});
|
|
10753
|
-
|
|
10753
|
+
Ir(Tt, "R", function() {
|
|
10754
10754
|
return this.eddsa.decodePoint(this.Rencoded());
|
|
10755
10755
|
});
|
|
10756
|
-
|
|
10756
|
+
Ir(Tt, "Rencoded", function() {
|
|
10757
10757
|
return this.eddsa.encodePoint(this.R());
|
|
10758
10758
|
});
|
|
10759
|
-
|
|
10759
|
+
Ir(Tt, "Sencoded", function() {
|
|
10760
10760
|
return this.eddsa.encodeInt(this.S());
|
|
10761
10761
|
});
|
|
10762
|
-
|
|
10762
|
+
Tt.prototype.toBytes = function() {
|
|
10763
10763
|
return this.Rencoded().concat(this.Sencoded());
|
|
10764
10764
|
};
|
|
10765
|
-
|
|
10766
|
-
return
|
|
10765
|
+
Tt.prototype.toHex = function() {
|
|
10766
|
+
return Pr.encode(this.toBytes(), "hex").toUpperCase();
|
|
10767
10767
|
};
|
|
10768
|
-
var vc =
|
|
10768
|
+
var vc = Tt, bc = Fr, pc = Sr, Ht = Y0, yc = Ht.assert, Yn = Ht.parseBytes, jn = hc, Gi = vc;
|
|
10769
10769
|
function U0(f) {
|
|
10770
10770
|
if (yc(f === "ed25519", "only tested with ed25519 so far"), !(this instanceof U0))
|
|
10771
10771
|
return new U0(f);
|
|
@@ -10816,7 +10816,7 @@ U0.prototype.isPoint = function(e) {
|
|
|
10816
10816
|
};
|
|
10817
10817
|
(function(f) {
|
|
10818
10818
|
var e = f;
|
|
10819
|
-
e.version = bs.version, e.utils = Y0, e.rand = An, e.curve = Kf, e.curves =
|
|
10819
|
+
e.version = bs.version, e.utils = Y0, e.rand = An, e.curve = Kf, e.curves = Sr, e.ec = dc, e.eddsa = gc;
|
|
10820
10820
|
})(mn);
|
|
10821
10821
|
var Vn = { exports: {} };
|
|
10822
10822
|
(function(f) {
|
|
@@ -11545,7 +11545,7 @@ var Vn = { exports: {} };
|
|
|
11545
11545
|
Re(p);
|
|
11546
11546
|
});
|
|
11547
11547
|
} else
|
|
11548
|
-
typeof pn < "u" && (l =
|
|
11548
|
+
typeof pn < "u" && (l = Ar, l && l.randomBytes && e.setPRNG(function(m, s) {
|
|
11549
11549
|
var M, p = l.randomBytes(s);
|
|
11550
11550
|
for (M = 0; M < s; M++)
|
|
11551
11551
|
m[M] = p[M];
|
|
@@ -11697,7 +11697,7 @@ const ur = /* @__PURE__ */ Object.create(null);
|
|
|
11697
11697
|
Object.keys(dt).forEach((f) => {
|
|
11698
11698
|
ur[dt[f]] = f;
|
|
11699
11699
|
});
|
|
11700
|
-
const
|
|
11700
|
+
const Pf = { type: "error", data: "parser error" }, Xn = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Zn = typeof ArrayBuffer == "function", Gn = (f) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(f) : f && f.buffer instanceof ArrayBuffer, Zf = ({ type: f, data: e }, t, r) => Xn && e instanceof Blob ? t ? r(e) : Qi(e, r) : Zn && (e instanceof ArrayBuffer || Gn(e)) ? t ? r(e) : Qi(new Blob([e]), r) : r(dt[f] + (e || "")), Qi = (f, e) => {
|
|
11701
11701
|
const t = new FileReader();
|
|
11702
11702
|
return t.onload = function() {
|
|
11703
11703
|
const r = t.result.split(",")[1];
|
|
@@ -11707,14 +11707,14 @@ const kf = { type: "error", data: "parser error" }, Xn = typeof Blob == "functio
|
|
|
11707
11707
|
function Ji(f) {
|
|
11708
11708
|
return f instanceof Uint8Array ? f : f instanceof ArrayBuffer ? new Uint8Array(f) : new Uint8Array(f.buffer, f.byteOffset, f.byteLength);
|
|
11709
11709
|
}
|
|
11710
|
-
let
|
|
11710
|
+
let Cf;
|
|
11711
11711
|
function Bc(f, e) {
|
|
11712
11712
|
if (Xn && f.data instanceof Blob)
|
|
11713
11713
|
return f.data.arrayBuffer().then(Ji).then(e);
|
|
11714
11714
|
if (Zn && (f.data instanceof ArrayBuffer || Gn(f.data)))
|
|
11715
11715
|
return e(Ji(f.data));
|
|
11716
11716
|
Zf(f, !1, (t) => {
|
|
11717
|
-
|
|
11717
|
+
Cf || (Cf = new TextEncoder()), e(Cf.encode(t));
|
|
11718
11718
|
});
|
|
11719
11719
|
}
|
|
11720
11720
|
const en = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", fr = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
@@ -11742,7 +11742,7 @@ const Cc = (f) => {
|
|
|
11742
11742
|
data: f.substring(1)
|
|
11743
11743
|
} : {
|
|
11744
11744
|
type: ur[t]
|
|
11745
|
-
} :
|
|
11745
|
+
} : Pf;
|
|
11746
11746
|
}, Sc = (f, e) => {
|
|
11747
11747
|
if (Mc) {
|
|
11748
11748
|
const t = Cc(f);
|
|
@@ -11796,7 +11796,7 @@ function Rc() {
|
|
|
11796
11796
|
}
|
|
11797
11797
|
});
|
|
11798
11798
|
}
|
|
11799
|
-
let
|
|
11799
|
+
let Mf;
|
|
11800
11800
|
function or(f) {
|
|
11801
11801
|
return f.reduce((e, t) => e + t.length, 0);
|
|
11802
11802
|
}
|
|
@@ -11810,7 +11810,7 @@ function cr(f, e) {
|
|
|
11810
11810
|
return f.length && r < f[0].length && (f[0] = f[0].slice(r)), t;
|
|
11811
11811
|
}
|
|
11812
11812
|
function kc(f, e) {
|
|
11813
|
-
|
|
11813
|
+
Mf || (Mf = new TextDecoder());
|
|
11814
11814
|
const t = [];
|
|
11815
11815
|
let r = 0, a = -1, i = !1;
|
|
11816
11816
|
return new TransformStream({
|
|
@@ -11831,7 +11831,7 @@ function kc(f, e) {
|
|
|
11831
11831
|
break;
|
|
11832
11832
|
const u = cr(t, 8), o = new DataView(u.buffer, u.byteOffset, u.length), c = o.getUint32(0);
|
|
11833
11833
|
if (c > Math.pow(2, 21) - 1) {
|
|
11834
|
-
x.enqueue(
|
|
11834
|
+
x.enqueue(Pf);
|
|
11835
11835
|
break;
|
|
11836
11836
|
}
|
|
11837
11837
|
a = c * Math.pow(2, 32) + o.getUint32(4), r = 3;
|
|
@@ -11839,10 +11839,10 @@ function kc(f, e) {
|
|
|
11839
11839
|
if (or(t) < a)
|
|
11840
11840
|
break;
|
|
11841
11841
|
const u = cr(t, a);
|
|
11842
|
-
x.enqueue(Gf(i ? u :
|
|
11842
|
+
x.enqueue(Gf(i ? u : Mf.decode(u), e)), r = 0;
|
|
11843
11843
|
}
|
|
11844
11844
|
if (a === 0 || a > f) {
|
|
11845
|
-
x.enqueue(
|
|
11845
|
+
x.enqueue(Pf);
|
|
11846
11846
|
break;
|
|
11847
11847
|
}
|
|
11848
11848
|
}
|
|
@@ -11906,7 +11906,7 @@ function ta(f, ...e) {
|
|
|
11906
11906
|
return e.reduce((t, r) => (f.hasOwnProperty(r) && (t[r] = f[r]), t), {});
|
|
11907
11907
|
}
|
|
11908
11908
|
const Ic = j0.setTimeout, Tc = j0.clearTimeout;
|
|
11909
|
-
function
|
|
11909
|
+
function Tr(f, e) {
|
|
11910
11910
|
e.useNativeTimers ? (f.setTimeoutFn = Ic.bind(j0), f.clearTimeoutFn = Tc.bind(j0)) : (f.setTimeoutFn = j0.setTimeout.bind(j0), f.clearTimeoutFn = j0.clearTimeout.bind(j0));
|
|
11911
11911
|
}
|
|
11912
11912
|
const Oc = 1.33;
|
|
@@ -11946,7 +11946,7 @@ class Qf extends A0 {
|
|
|
11946
11946
|
* @protected
|
|
11947
11947
|
*/
|
|
11948
11948
|
constructor(e) {
|
|
11949
|
-
super(), this.writable = !1,
|
|
11949
|
+
super(), this.writable = !1, Tr(this, e), this.opts = e, this.query = e.query, this.socket = e.socket;
|
|
11950
11950
|
}
|
|
11951
11951
|
/**
|
|
11952
11952
|
* Emits an error.
|
|
@@ -12036,12 +12036,12 @@ class Qf extends A0 {
|
|
|
12036
12036
|
return t.length ? "?" + t : "";
|
|
12037
12037
|
}
|
|
12038
12038
|
}
|
|
12039
|
-
const ra = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),
|
|
12039
|
+
const ra = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), If = 64, Uc = {};
|
|
12040
12040
|
let tn = 0, dr = 0, rn;
|
|
12041
12041
|
function fn(f) {
|
|
12042
12042
|
let e = "";
|
|
12043
12043
|
do
|
|
12044
|
-
e = ra[f %
|
|
12044
|
+
e = ra[f % If] + e, f = Math.floor(f / If);
|
|
12045
12045
|
while (f > 0);
|
|
12046
12046
|
return e;
|
|
12047
12047
|
}
|
|
@@ -12049,7 +12049,7 @@ function fa() {
|
|
|
12049
12049
|
const f = fn(+/* @__PURE__ */ new Date());
|
|
12050
12050
|
return f !== rn ? (tn = 0, rn = f) : f + "." + fn(tn++);
|
|
12051
12051
|
}
|
|
12052
|
-
for (; dr <
|
|
12052
|
+
for (; dr < If; dr++)
|
|
12053
12053
|
Uc[ra[dr]] = dr;
|
|
12054
12054
|
let ia = !1;
|
|
12055
12055
|
try {
|
|
@@ -12225,7 +12225,7 @@ class at extends A0 {
|
|
|
12225
12225
|
* @package
|
|
12226
12226
|
*/
|
|
12227
12227
|
constructor(e, t) {
|
|
12228
|
-
super(),
|
|
12228
|
+
super(), Tr(this, t), this.opts = t, this.method = t.method || "GET", this.uri = e, this.data = t.data !== void 0 ? t.data : null, this.create();
|
|
12229
12229
|
}
|
|
12230
12230
|
/**
|
|
12231
12231
|
* Creates the XHR object and sends the request.
|
|
@@ -12463,7 +12463,7 @@ const Zc = {
|
|
|
12463
12463
|
"query",
|
|
12464
12464
|
"anchor"
|
|
12465
12465
|
];
|
|
12466
|
-
function
|
|
12466
|
+
function Tf(f) {
|
|
12467
12467
|
if (f.length > 2e3)
|
|
12468
12468
|
throw "URI too long";
|
|
12469
12469
|
const e = f, t = f.indexOf("["), r = f.indexOf("]");
|
|
@@ -12483,7 +12483,7 @@ function e1(f, e) {
|
|
|
12483
12483
|
a && (t[a] = i);
|
|
12484
12484
|
}), t;
|
|
12485
12485
|
}
|
|
12486
|
-
let aa = class
|
|
12486
|
+
let aa = class Ot extends A0 {
|
|
12487
12487
|
/**
|
|
12488
12488
|
* Socket constructor.
|
|
12489
12489
|
*
|
|
@@ -12491,7 +12491,7 @@ let aa = class Tt extends A0 {
|
|
|
12491
12491
|
* @param {Object} opts - options
|
|
12492
12492
|
*/
|
|
12493
12493
|
constructor(e, t = {}) {
|
|
12494
|
-
super(), this.binaryType = jc, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e =
|
|
12494
|
+
super(), this.binaryType = jc, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Tf(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = Tf(t.host).host), Tr(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
|
|
12495
12495
|
"polling",
|
|
12496
12496
|
"websocket",
|
|
12497
12497
|
"webtransport"
|
|
@@ -12543,7 +12543,7 @@ let aa = class Tt extends A0 {
|
|
|
12543
12543
|
*/
|
|
12544
12544
|
open() {
|
|
12545
12545
|
let e;
|
|
12546
|
-
if (this.opts.rememberUpgrade &&
|
|
12546
|
+
if (this.opts.rememberUpgrade && Ot.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1)
|
|
12547
12547
|
e = "websocket";
|
|
12548
12548
|
else if (this.transports.length === 0) {
|
|
12549
12549
|
this.setTimeoutFn(() => {
|
|
@@ -12577,14 +12577,14 @@ let aa = class Tt extends A0 {
|
|
|
12577
12577
|
*/
|
|
12578
12578
|
probe(e) {
|
|
12579
12579
|
let t = this.createTransport(e), r = !1;
|
|
12580
|
-
|
|
12580
|
+
Ot.priorWebsocketSuccess = !1;
|
|
12581
12581
|
const a = () => {
|
|
12582
12582
|
r || (t.send([{ type: "ping", data: "probe" }]), t.once("packet", (v) => {
|
|
12583
12583
|
if (!r)
|
|
12584
12584
|
if (v.type === "pong" && v.data === "probe") {
|
|
12585
12585
|
if (this.upgrading = !0, this.emitReserved("upgrading", t), !t)
|
|
12586
12586
|
return;
|
|
12587
|
-
|
|
12587
|
+
Ot.priorWebsocketSuccess = t.name === "websocket", this.transport.pause(() => {
|
|
12588
12588
|
r || this.readyState !== "closed" && (c(), this.setTransport(t), t.send([{ type: "upgrade" }]), this.emitReserved("upgrade", t), t = null, this.upgrading = !1, this.flush());
|
|
12589
12589
|
});
|
|
12590
12590
|
} else {
|
|
@@ -12622,7 +12622,7 @@ let aa = class Tt extends A0 {
|
|
|
12622
12622
|
* @private
|
|
12623
12623
|
*/
|
|
12624
12624
|
onOpen() {
|
|
12625
|
-
if (this.readyState = "open",
|
|
12625
|
+
if (this.readyState = "open", Ot.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush(), this.readyState === "open" && this.opts.upgrade) {
|
|
12626
12626
|
let e = 0;
|
|
12627
12627
|
const t = this.upgrades.length;
|
|
12628
12628
|
for (; e < t; e++)
|
|
@@ -12763,7 +12763,7 @@ let aa = class Tt extends A0 {
|
|
|
12763
12763
|
* @private
|
|
12764
12764
|
*/
|
|
12765
12765
|
onError(e) {
|
|
12766
|
-
|
|
12766
|
+
Ot.priorWebsocketSuccess = !1, this.emitReserved("error", e), this.onClose("transport error", e);
|
|
12767
12767
|
}
|
|
12768
12768
|
/**
|
|
12769
12769
|
* Called upon transport close.
|
|
@@ -12791,7 +12791,7 @@ let aa = class Tt extends A0 {
|
|
|
12791
12791
|
aa.protocol = ea;
|
|
12792
12792
|
function t1(f, e = "", t) {
|
|
12793
12793
|
let r = f;
|
|
12794
|
-
t = t || typeof location < "u" && location, f == null && (f = t.protocol + "//" + t.host), typeof f == "string" && (f.charAt(0) === "/" && (f.charAt(1) === "/" ? f = t.protocol + f : f = t.host + f), /^(https?|wss?):\/\//.test(f) || (typeof t < "u" ? f = t.protocol + "//" + f : f = "https://" + f), r =
|
|
12794
|
+
t = t || typeof location < "u" && location, f == null && (f = t.protocol + "//" + t.host), typeof f == "string" && (f.charAt(0) === "/" && (f.charAt(1) === "/" ? f = t.protocol + f : f = t.host + f), /^(https?|wss?):\/\//.test(f) || (typeof t < "u" ? f = t.protocol + "//" + f : f = "https://" + f), r = Tf(f)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
|
|
12795
12795
|
const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
|
|
12796
12796
|
return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
|
|
12797
12797
|
}
|
|
@@ -12819,9 +12819,9 @@ function lr(f, e) {
|
|
|
12819
12819
|
}
|
|
12820
12820
|
function a1(f) {
|
|
12821
12821
|
const e = [], t = f.data, r = f;
|
|
12822
|
-
return r.data =
|
|
12822
|
+
return r.data = Of(t, e), r.attachments = e.length, { packet: r, buffers: e };
|
|
12823
12823
|
}
|
|
12824
|
-
function
|
|
12824
|
+
function Of(f, e) {
|
|
12825
12825
|
if (!f)
|
|
12826
12826
|
return f;
|
|
12827
12827
|
if (ei(f)) {
|
|
@@ -12830,20 +12830,20 @@ function Tf(f, e) {
|
|
|
12830
12830
|
} else if (Array.isArray(f)) {
|
|
12831
12831
|
const t = new Array(f.length);
|
|
12832
12832
|
for (let r = 0; r < f.length; r++)
|
|
12833
|
-
t[r] =
|
|
12833
|
+
t[r] = Of(f[r], e);
|
|
12834
12834
|
return t;
|
|
12835
12835
|
} else if (typeof f == "object" && !(f instanceof Date)) {
|
|
12836
12836
|
const t = {};
|
|
12837
12837
|
for (const r in f)
|
|
12838
|
-
Object.prototype.hasOwnProperty.call(f, r) && (t[r] =
|
|
12838
|
+
Object.prototype.hasOwnProperty.call(f, r) && (t[r] = Of(f[r], e));
|
|
12839
12839
|
return t;
|
|
12840
12840
|
}
|
|
12841
12841
|
return f;
|
|
12842
12842
|
}
|
|
12843
12843
|
function s1(f, e) {
|
|
12844
|
-
return f.data =
|
|
12844
|
+
return f.data = zf(f.data, e), delete f.attachments, f;
|
|
12845
12845
|
}
|
|
12846
|
-
function
|
|
12846
|
+
function zf(f, e) {
|
|
12847
12847
|
if (!f)
|
|
12848
12848
|
return f;
|
|
12849
12849
|
if (f && f._placeholder === !0) {
|
|
@@ -12852,10 +12852,10 @@ function Of(f, e) {
|
|
|
12852
12852
|
throw new Error("illegal attachments");
|
|
12853
12853
|
} else if (Array.isArray(f))
|
|
12854
12854
|
for (let t = 0; t < f.length; t++)
|
|
12855
|
-
f[t] =
|
|
12855
|
+
f[t] = zf(f[t], e);
|
|
12856
12856
|
else if (typeof f == "object")
|
|
12857
12857
|
for (const t in f)
|
|
12858
|
-
Object.prototype.hasOwnProperty.call(f, t) && (f[t] =
|
|
12858
|
+
Object.prototype.hasOwnProperty.call(f, t) && (f[t] = zf(f[t], e));
|
|
12859
12859
|
return f;
|
|
12860
12860
|
}
|
|
12861
12861
|
const o1 = [
|
|
@@ -13689,10 +13689,10 @@ Vt.prototype.setMax = function(f) {
|
|
|
13689
13689
|
Vt.prototype.setJitter = function(f) {
|
|
13690
13690
|
this.jitter = f;
|
|
13691
13691
|
};
|
|
13692
|
-
class
|
|
13692
|
+
class Nf extends A0 {
|
|
13693
13693
|
constructor(e, t) {
|
|
13694
13694
|
var r;
|
|
13695
|
-
super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (t = e, e = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t,
|
|
13695
|
+
super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (t = e, e = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, Tr(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((r = t.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new Vt({
|
|
13696
13696
|
min: this.reconnectionDelay(),
|
|
13697
13697
|
max: this.reconnectionDelayMax(),
|
|
13698
13698
|
jitter: this.randomizationFactor()
|
|
@@ -13920,10 +13920,10 @@ function xr(f, e) {
|
|
|
13920
13920
|
typeof f == "object" && (e = f, f = void 0), e = e || {};
|
|
13921
13921
|
const t = t1(f, e.path || "/socket.io"), r = t.source, a = t.id, i = t.path, y = er[a] && i in er[a].nsps, x = e.forceNew || e["force new connection"] || e.multiplex === !1 || y;
|
|
13922
13922
|
let u;
|
|
13923
|
-
return x ? u = new
|
|
13923
|
+
return x ? u = new Nf(r, e) : (er[a] || (er[a] = new Nf(r, e)), u = er[a]), t.query && !e.query && (e.query = t.queryKey), u.socket(t.path, e);
|
|
13924
13924
|
}
|
|
13925
13925
|
Object.assign(xr, {
|
|
13926
|
-
Manager:
|
|
13926
|
+
Manager: Nf,
|
|
13927
13927
|
Socket: oa,
|
|
13928
13928
|
io: xr,
|
|
13929
13929
|
connect: xr
|
|
@@ -13938,11 +13938,11 @@ const x1 = "https://ws.zigap.io", Ct = class Ct {
|
|
|
13938
13938
|
}
|
|
13939
13939
|
};
|
|
13940
13940
|
wt(Ct, "instance");
|
|
13941
|
-
let
|
|
13941
|
+
let qf = Ct;
|
|
13942
13942
|
class v1 {
|
|
13943
13943
|
constructor() {
|
|
13944
13944
|
wt(this, "socketInstance");
|
|
13945
|
-
this.socketInstance =
|
|
13945
|
+
this.socketInstance = qf.getInstance();
|
|
13946
13946
|
}
|
|
13947
13947
|
joinRoom(e) {
|
|
13948
13948
|
this.socketInstance.socket.emit("joinRoom", e);
|
|
@@ -14043,7 +14043,13 @@ class y1 {
|
|
|
14043
14043
|
};
|
|
14044
14044
|
}
|
|
14045
14045
|
}
|
|
14046
|
-
const ri = new y1(), g1 = "loginRes",
|
|
14046
|
+
const ri = new y1(), g1 = "loginRes", C1 = () => {
|
|
14047
|
+
const [f, e] = _r(void 0);
|
|
14048
|
+
return Ft(() => {
|
|
14049
|
+
const t = localStorage.getItem("loginRes");
|
|
14050
|
+
t && e(JSON.parse(t));
|
|
14051
|
+
}, []), f;
|
|
14052
|
+
}, ca = "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", M1 = ({
|
|
14047
14053
|
availableNetworks: f,
|
|
14048
14054
|
dapp: e,
|
|
14049
14055
|
url: t,
|
|
@@ -14054,8 +14060,8 @@ const ri = new y1(), g1 = "loginRes", ca = "data:image/svg+xml,%3csvg%20width='1
|
|
|
14054
14060
|
logoSize: x = 30,
|
|
14055
14061
|
...u
|
|
14056
14062
|
}) => {
|
|
14057
|
-
const [o, c] =
|
|
14058
|
-
return
|
|
14063
|
+
const [o, c] = _r(!0), v = Xf.generateNonce(16), { qrCode: b, roomId: B } = ri.generateQrCode("login", e, t, f);
|
|
14064
|
+
return Ft(() => {
|
|
14059
14065
|
const w = setTimeout(
|
|
14060
14066
|
() => {
|
|
14061
14067
|
xt.leaveRoom(B), c(!1);
|
|
@@ -14063,7 +14069,7 @@ const ri = new y1(), g1 = "loginRes", ca = "data:image/svg+xml,%3csvg%20width='1
|
|
|
14063
14069
|
a * 60 * 1e3
|
|
14064
14070
|
);
|
|
14065
14071
|
return () => clearTimeout(w);
|
|
14066
|
-
}, [B, a]),
|
|
14072
|
+
}, [B, a]), Ft(() => {
|
|
14067
14073
|
(async () => {
|
|
14068
14074
|
try {
|
|
14069
14075
|
console.log("roomId", B);
|
|
@@ -14135,7 +14141,7 @@ class m1 {
|
|
|
14135
14141
|
}
|
|
14136
14142
|
}
|
|
14137
14143
|
}
|
|
14138
|
-
const _1 = new m1(),
|
|
14144
|
+
const _1 = new m1(), S1 = ({
|
|
14139
14145
|
availableNetworks: f,
|
|
14140
14146
|
dapp: e,
|
|
14141
14147
|
url: t,
|
|
@@ -14145,8 +14151,8 @@ const _1 = new m1(), M1 = ({
|
|
|
14145
14151
|
logoSize: y = 30,
|
|
14146
14152
|
...x
|
|
14147
14153
|
}) => {
|
|
14148
|
-
const [u, o] =
|
|
14149
|
-
return
|
|
14154
|
+
const [u, o] = _r(!0), { qrCode: c, roomId: v } = ri.generateQrCode("provide", e, t, f);
|
|
14155
|
+
return Ft(() => {
|
|
14150
14156
|
const b = setTimeout(
|
|
14151
14157
|
() => {
|
|
14152
14158
|
xt.leaveRoom(v), o(!1);
|
|
@@ -14154,7 +14160,7 @@ const _1 = new m1(), M1 = ({
|
|
|
14154
14160
|
r * 60 * 1e3
|
|
14155
14161
|
);
|
|
14156
14162
|
return () => clearTimeout(b);
|
|
14157
|
-
}, [v, r]),
|
|
14163
|
+
}, [v, r]), Ft(() => {
|
|
14158
14164
|
(async () => {
|
|
14159
14165
|
try {
|
|
14160
14166
|
console.log("roomId22", v);
|
|
@@ -14201,17 +14207,18 @@ class A1 {
|
|
|
14201
14207
|
return mr.address(e);
|
|
14202
14208
|
}
|
|
14203
14209
|
}
|
|
14204
|
-
const E1 = new A1(),
|
|
14210
|
+
const E1 = new A1(), F1 = {
|
|
14205
14211
|
Enc: rr,
|
|
14206
14212
|
Sign: mr,
|
|
14207
14213
|
Util: z0,
|
|
14208
14214
|
Validation: E1
|
|
14209
|
-
},
|
|
14215
|
+
}, D1 = {
|
|
14210
14216
|
Qr: ri
|
|
14211
14217
|
};
|
|
14212
14218
|
export {
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14219
|
+
S1 as AddressProvideQR,
|
|
14220
|
+
M1 as LoginQR,
|
|
14221
|
+
F1 as Xphere,
|
|
14222
|
+
D1 as Zigap,
|
|
14223
|
+
C1 as useZigap
|
|
14217
14224
|
};
|