zigap-utils 0.0.484 → 0.0.486
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.cjs.js +9 -9
- package/dist/index.es.js +339 -331
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var wt = (f, e, t) => (
|
|
5
|
-
import * as
|
|
2
|
+
var ha = Object.defineProperty;
|
|
3
|
+
var ua = (f, e, t) => e in f ? ha(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t;
|
|
4
|
+
var wt = (f, e, t) => (ua(f, typeof e != "symbol" ? e + "" : e, t), t);
|
|
5
|
+
import * as la from "react";
|
|
6
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) {
|
|
@@ -30,7 +30,7 @@ function dn(f) {
|
|
|
30
30
|
}), t;
|
|
31
31
|
}
|
|
32
32
|
var Sf = { exports: {} }, Xt = {};
|
|
33
|
-
const hn = /* @__PURE__ */ dn(
|
|
33
|
+
const hn = /* @__PURE__ */ dn(la);
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-jsx-runtime.production.min.js
|
|
@@ -41,7 +41,7 @@ const hn = /* @__PURE__ */ dn(ua);
|
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
43
|
var ii;
|
|
44
|
-
function
|
|
44
|
+
function xa() {
|
|
45
45
|
if (ii)
|
|
46
46
|
return Xt;
|
|
47
47
|
ii = 1;
|
|
@@ -69,7 +69,7 @@ var Zt = {};
|
|
|
69
69
|
* LICENSE file in the root directory of this source tree.
|
|
70
70
|
*/
|
|
71
71
|
var ni;
|
|
72
|
-
function
|
|
72
|
+
function va() {
|
|
73
73
|
return ni || (ni = 1, process.env.NODE_ENV !== "production" && function() {
|
|
74
74
|
var f = hn, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), x = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), w = Symbol.iterator, R = "@@iterator";
|
|
75
75
|
function k(p) {
|
|
@@ -662,15 +662,15 @@ 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" ? Sf.exports =
|
|
666
|
-
var vr = Sf.exports,
|
|
665
|
+
process.env.NODE_ENV === "production" ? Sf.exports = xa() : Sf.exports = va();
|
|
666
|
+
var vr = Sf.exports, ba = Object.defineProperty, br = Object.getOwnPropertySymbols, un = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable, ai = (f, e, t) => e in f ? ba(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)
|
|
670
670
|
for (var t of br(e))
|
|
671
671
|
ln.call(e, t) && ai(f, t, e[t]);
|
|
672
672
|
return f;
|
|
673
|
-
},
|
|
673
|
+
}, pa = (f, e) => {
|
|
674
674
|
var t = {};
|
|
675
675
|
for (var r in f)
|
|
676
676
|
un.call(f, r) && e.indexOf(r) < 0 && (t[r] = f[r]);
|
|
@@ -1110,13 +1110,13 @@ var tr = Dt;
|
|
|
1110
1110
|
* Copyright (c) Paul O'Shannessy
|
|
1111
1111
|
* SPDX-License-Identifier: ISC
|
|
1112
1112
|
*/
|
|
1113
|
-
var
|
|
1113
|
+
var ya = {
|
|
1114
1114
|
L: tr.QrCode.Ecc.LOW,
|
|
1115
1115
|
M: tr.QrCode.Ecc.MEDIUM,
|
|
1116
1116
|
Q: tr.QrCode.Ecc.QUARTILE,
|
|
1117
1117
|
H: tr.QrCode.Ecc.HIGH
|
|
1118
|
-
},
|
|
1119
|
-
function
|
|
1118
|
+
}, ga = 128, ma = "L", _a = "#FFFFFF", Aa = "#000000", Ea = !1, xn = 4, wa = 0.1;
|
|
1119
|
+
function Ba(f, e = 0) {
|
|
1120
1120
|
const t = [];
|
|
1121
1121
|
return f.forEach(function(r, a) {
|
|
1122
1122
|
let i = null;
|
|
@@ -1135,13 +1135,13 @@ function wa(f, e = 0) {
|
|
|
1135
1135
|
});
|
|
1136
1136
|
}), t.join("");
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Ca(f, e) {
|
|
1139
1139
|
return f.slice().map((t, r) => r < e.y || r >= e.y + e.h ? t : t.map((a, i) => i < e.x || i >= e.x + e.w ? a : !1));
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Ma(f, e, t, r) {
|
|
1142
1142
|
if (r == null)
|
|
1143
1143
|
return null;
|
|
1144
|
-
const a = t ? xn : 0, i = f.length + a * 2, y = Math.floor(e *
|
|
1144
|
+
const a = t ? xn : 0, i = f.length + a * 2, y = Math.floor(e * wa), x = i / e, u = (r.width || y) * x, o = (r.height || y) * x, c = r.x == null ? f.length / 2 - u / 2 : r.x * x, v = r.y == null ? f.length / 2 - o / 2 : r.y * x;
|
|
1145
1145
|
let b = null;
|
|
1146
1146
|
if (r.excavate) {
|
|
1147
1147
|
let B = Math.floor(c), w = Math.floor(v), R = Math.ceil(u + c - B), k = Math.ceil(o + v - w);
|
|
@@ -1149,7 +1149,7 @@ function Ca(f, e, t, r) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
return { x: c, y: v, h: o, w: u, excavation: b };
|
|
1151
1151
|
}
|
|
1152
|
-
var
|
|
1152
|
+
var Sa = function() {
|
|
1153
1153
|
try {
|
|
1154
1154
|
new Path2D().addPath(new Path2D());
|
|
1155
1155
|
} catch {
|
|
@@ -1160,14 +1160,14 @@ var Ma = function() {
|
|
|
1160
1160
|
function vn(f) {
|
|
1161
1161
|
const e = f, {
|
|
1162
1162
|
value: t,
|
|
1163
|
-
size: r =
|
|
1164
|
-
level: a =
|
|
1165
|
-
bgColor: i =
|
|
1166
|
-
fgColor: y =
|
|
1167
|
-
includeMargin: x =
|
|
1163
|
+
size: r = ga,
|
|
1164
|
+
level: a = ma,
|
|
1165
|
+
bgColor: i = _a,
|
|
1166
|
+
fgColor: y = Aa,
|
|
1167
|
+
includeMargin: x = Ea,
|
|
1168
1168
|
style: u,
|
|
1169
1169
|
imageSettings: o
|
|
1170
|
-
} = e, c =
|
|
1170
|
+
} = e, c = pa(e, [
|
|
1171
1171
|
"value",
|
|
1172
1172
|
"size",
|
|
1173
1173
|
"level",
|
|
@@ -1182,13 +1182,13 @@ function vn(f) {
|
|
|
1182
1182
|
const F = b.current, P = F.getContext("2d");
|
|
1183
1183
|
if (!P)
|
|
1184
1184
|
return;
|
|
1185
|
-
let T = tr.QrCode.encodeText(t,
|
|
1186
|
-
const H = x ? xn : 0, $ = T.length + H * 2, Y =
|
|
1187
|
-
Q && Y.excavation != null && (T =
|
|
1185
|
+
let T = tr.QrCode.encodeText(t, ya[a]).getModules();
|
|
1186
|
+
const H = x ? xn : 0, $ = T.length + H * 2, Y = Ma(T, r, x, o), X = B.current, Q = Y != null && X !== null && X.complete && X.naturalHeight !== 0 && X.naturalWidth !== 0;
|
|
1187
|
+
Q && Y.excavation != null && (T = Ca(T, Y.excavation));
|
|
1188
1188
|
const U = window.devicePixelRatio || 1;
|
|
1189
1189
|
F.height = F.width = r * U;
|
|
1190
1190
|
const A = r / $ * U;
|
|
1191
|
-
P.scale(A, A), P.fillStyle = i, P.fillRect(0, 0, $, $), P.fillStyle = y,
|
|
1191
|
+
P.scale(A, A), P.fillStyle = i, P.fillRect(0, 0, $, $), P.fillStyle = y, Sa ? P.fill(new Path2D(Ba(T, H))) : T.forEach(function(n, d) {
|
|
1192
1192
|
n.forEach(function(g, C) {
|
|
1193
1193
|
g && P.fillRect(C + H, d + H, 1, 1);
|
|
1194
1194
|
});
|
|
@@ -1219,10 +1219,10 @@ 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
1221
|
var Or = { exports: {} };
|
|
1222
|
-
const
|
|
1222
|
+
const Fa = {}, Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1223
1223
|
__proto__: null,
|
|
1224
|
-
default:
|
|
1225
|
-
}, Symbol.toStringTag, { value: "Module" })), Ar = /* @__PURE__ */ dn(
|
|
1224
|
+
default: Fa
|
|
1225
|
+
}, Symbol.toStringTag, { value: "Module" })), Ar = /* @__PURE__ */ dn(Da);
|
|
1226
1226
|
var oi;
|
|
1227
1227
|
function $e() {
|
|
1228
1228
|
return oi || (oi = 1, function(f, e) {
|
|
@@ -1955,7 +1955,7 @@ function Er() {
|
|
|
1955
1955
|
}(zr)), zr.exports;
|
|
1956
1956
|
}
|
|
1957
1957
|
var Nr = { exports: {} }, di;
|
|
1958
|
-
function
|
|
1958
|
+
function Ra() {
|
|
1959
1959
|
return di || (di = 1, function(f, e) {
|
|
1960
1960
|
(function(t, r) {
|
|
1961
1961
|
f.exports = r($e());
|
|
@@ -1977,7 +1977,7 @@ function Da() {
|
|
|
1977
1977
|
}(Nr)), Nr.exports;
|
|
1978
1978
|
}
|
|
1979
1979
|
var qr = { exports: {} }, hi;
|
|
1980
|
-
function
|
|
1980
|
+
function ka() {
|
|
1981
1981
|
return hi || (hi = 1, function(f, e) {
|
|
1982
1982
|
(function(t, r) {
|
|
1983
1983
|
f.exports = r($e());
|
|
@@ -2146,7 +2146,7 @@ function kt() {
|
|
|
2146
2146
|
}(Lr)), Lr.exports;
|
|
2147
2147
|
}
|
|
2148
2148
|
var Hr = { exports: {} }, li;
|
|
2149
|
-
function
|
|
2149
|
+
function Pa() {
|
|
2150
2150
|
return li || (li = 1, function(f, e) {
|
|
2151
2151
|
(function(t, r) {
|
|
2152
2152
|
f.exports = r($e());
|
|
@@ -2390,7 +2390,7 @@ function Lf() {
|
|
|
2390
2390
|
}(Wr)), Wr.exports;
|
|
2391
2391
|
}
|
|
2392
2392
|
var Kr = { exports: {} }, pi;
|
|
2393
|
-
function
|
|
2393
|
+
function Ia() {
|
|
2394
2394
|
return pi || (pi = 1, function(f, e) {
|
|
2395
2395
|
(function(t, r, a) {
|
|
2396
2396
|
f.exports = r($e(), Lf());
|
|
@@ -2561,7 +2561,7 @@ function gn() {
|
|
|
2561
2561
|
}(Yr)), Yr.exports;
|
|
2562
2562
|
}
|
|
2563
2563
|
var jr = { exports: {} }, gi;
|
|
2564
|
-
function
|
|
2564
|
+
function Ta() {
|
|
2565
2565
|
return gi || (gi = 1, function(f, e) {
|
|
2566
2566
|
(function(t, r, a) {
|
|
2567
2567
|
f.exports = r($e(), Er(), gn());
|
|
@@ -2591,7 +2591,7 @@ function Ia() {
|
|
|
2591
2591
|
}(jr)), jr.exports;
|
|
2592
2592
|
}
|
|
2593
2593
|
var Vr = { exports: {} }, mi;
|
|
2594
|
-
function
|
|
2594
|
+
function Oa() {
|
|
2595
2595
|
return mi || (mi = 1, function(f, e) {
|
|
2596
2596
|
(function(t, r, a) {
|
|
2597
2597
|
f.exports = r($e(), Er());
|
|
@@ -2701,7 +2701,7 @@ function Ta() {
|
|
|
2701
2701
|
}(Vr)), Vr.exports;
|
|
2702
2702
|
}
|
|
2703
2703
|
var Xr = { exports: {} }, _i;
|
|
2704
|
-
function
|
|
2704
|
+
function za() {
|
|
2705
2705
|
return _i || (_i = 1, function(f, e) {
|
|
2706
2706
|
(function(t, r) {
|
|
2707
2707
|
f.exports = r($e());
|
|
@@ -3172,7 +3172,7 @@ function Hf() {
|
|
|
3172
3172
|
}(Zr)), Zr.exports;
|
|
3173
3173
|
}
|
|
3174
3174
|
var Gr = { exports: {} }, Ei;
|
|
3175
|
-
function
|
|
3175
|
+
function Na() {
|
|
3176
3176
|
return Ei || (Ei = 1, function(f, e) {
|
|
3177
3177
|
(function(t, r, a) {
|
|
3178
3178
|
f.exports = r($e(), Lf(), Hf());
|
|
@@ -3840,7 +3840,7 @@ function C0() {
|
|
|
3840
3840
|
}(Jr)), Jr.exports;
|
|
3841
3841
|
}
|
|
3842
3842
|
var ef = { exports: {} }, Ci;
|
|
3843
|
-
function
|
|
3843
|
+
function qa() {
|
|
3844
3844
|
return Ci || (Ci = 1, function(f, e) {
|
|
3845
3845
|
(function(t, r, a) {
|
|
3846
3846
|
f.exports = r($e(), C0());
|
|
@@ -3870,7 +3870,7 @@ function Na() {
|
|
|
3870
3870
|
}(ef)), ef.exports;
|
|
3871
3871
|
}
|
|
3872
3872
|
var tf = { exports: {} }, Mi;
|
|
3873
|
-
function
|
|
3873
|
+
function La() {
|
|
3874
3874
|
return Mi || (Mi = 1, function(f, e) {
|
|
3875
3875
|
(function(t, r, a) {
|
|
3876
3876
|
f.exports = r($e(), C0());
|
|
@@ -3892,7 +3892,7 @@ function qa() {
|
|
|
3892
3892
|
}(tf)), tf.exports;
|
|
3893
3893
|
}
|
|
3894
3894
|
var rf = { exports: {} }, Si;
|
|
3895
|
-
function
|
|
3895
|
+
function Ha() {
|
|
3896
3896
|
return Si || (Si = 1, function(f, e) {
|
|
3897
3897
|
(function(t, r, a) {
|
|
3898
3898
|
f.exports = r($e(), C0());
|
|
@@ -3931,7 +3931,7 @@ function La() {
|
|
|
3931
3931
|
}(rf)), rf.exports;
|
|
3932
3932
|
}
|
|
3933
3933
|
var ff = { exports: {} }, Fi;
|
|
3934
|
-
function
|
|
3934
|
+
function Ua() {
|
|
3935
3935
|
return Fi || (Fi = 1, function(f, e) {
|
|
3936
3936
|
(function(t, r, a) {
|
|
3937
3937
|
f.exports = r($e(), C0());
|
|
@@ -3951,7 +3951,7 @@ function Ha() {
|
|
|
3951
3951
|
}(ff)), ff.exports;
|
|
3952
3952
|
}
|
|
3953
3953
|
var nf = { exports: {} }, Di;
|
|
3954
|
-
function
|
|
3954
|
+
function $a() {
|
|
3955
3955
|
return Di || (Di = 1, function(f, e) {
|
|
3956
3956
|
(function(t, r, a) {
|
|
3957
3957
|
f.exports = r($e(), C0());
|
|
@@ -3972,7 +3972,7 @@ function Ua() {
|
|
|
3972
3972
|
}(nf)), nf.exports;
|
|
3973
3973
|
}
|
|
3974
3974
|
var af = { exports: {} }, Ri;
|
|
3975
|
-
function
|
|
3975
|
+
function Wa() {
|
|
3976
3976
|
return Ri || (Ri = 1, function(f, e) {
|
|
3977
3977
|
(function(t, r, a) {
|
|
3978
3978
|
f.exports = r($e(), C0());
|
|
@@ -3991,7 +3991,7 @@ function $a() {
|
|
|
3991
3991
|
}(af)), af.exports;
|
|
3992
3992
|
}
|
|
3993
3993
|
var sf = { exports: {} }, ki;
|
|
3994
|
-
function
|
|
3994
|
+
function Ka() {
|
|
3995
3995
|
return ki || (ki = 1, function(f, e) {
|
|
3996
3996
|
(function(t, r, a) {
|
|
3997
3997
|
f.exports = r($e(), C0());
|
|
@@ -4010,7 +4010,7 @@ function Wa() {
|
|
|
4010
4010
|
}(sf)), sf.exports;
|
|
4011
4011
|
}
|
|
4012
4012
|
var of = { exports: {} }, Pi;
|
|
4013
|
-
function
|
|
4013
|
+
function Ya() {
|
|
4014
4014
|
return Pi || (Pi = 1, function(f, e) {
|
|
4015
4015
|
(function(t, r, a) {
|
|
4016
4016
|
f.exports = r($e(), C0());
|
|
@@ -4027,7 +4027,7 @@ function Ka() {
|
|
|
4027
4027
|
}(of)), of.exports;
|
|
4028
4028
|
}
|
|
4029
4029
|
var cf = { exports: {} }, Ii;
|
|
4030
|
-
function
|
|
4030
|
+
function ja() {
|
|
4031
4031
|
return Ii || (Ii = 1, function(f, e) {
|
|
4032
4032
|
(function(t, r, a) {
|
|
4033
4033
|
f.exports = r($e(), C0());
|
|
@@ -4049,7 +4049,7 @@ function Ya() {
|
|
|
4049
4049
|
}(cf)), cf.exports;
|
|
4050
4050
|
}
|
|
4051
4051
|
var df = { exports: {} }, Ti;
|
|
4052
|
-
function
|
|
4052
|
+
function Va() {
|
|
4053
4053
|
return Ti || (Ti = 1, function(f, e) {
|
|
4054
4054
|
(function(t, r, a) {
|
|
4055
4055
|
f.exports = r($e(), C0());
|
|
@@ -4064,7 +4064,7 @@ function ja() {
|
|
|
4064
4064
|
}(df)), df.exports;
|
|
4065
4065
|
}
|
|
4066
4066
|
var hf = { exports: {} }, Oi;
|
|
4067
|
-
function
|
|
4067
|
+
function Xa() {
|
|
4068
4068
|
return Oi || (Oi = 1, function(f, e) {
|
|
4069
4069
|
(function(t, r, a) {
|
|
4070
4070
|
f.exports = r($e(), C0());
|
|
@@ -4111,7 +4111,7 @@ function Va() {
|
|
|
4111
4111
|
}(hf)), hf.exports;
|
|
4112
4112
|
}
|
|
4113
4113
|
var uf = { exports: {} }, zi;
|
|
4114
|
-
function
|
|
4114
|
+
function Za() {
|
|
4115
4115
|
return zi || (zi = 1, function(f, e) {
|
|
4116
4116
|
(function(t, r, a) {
|
|
4117
4117
|
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
@@ -4171,7 +4171,7 @@ function Xa() {
|
|
|
4171
4171
|
}(uf)), uf.exports;
|
|
4172
4172
|
}
|
|
4173
4173
|
var lf = { exports: {} }, Ni;
|
|
4174
|
-
function
|
|
4174
|
+
function Ga() {
|
|
4175
4175
|
return Ni || (Ni = 1, function(f, e) {
|
|
4176
4176
|
(function(t, r, a) {
|
|
4177
4177
|
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
@@ -4891,7 +4891,7 @@ function Za() {
|
|
|
4891
4891
|
}(lf)), lf.exports;
|
|
4892
4892
|
}
|
|
4893
4893
|
var xf = { exports: {} }, qi;
|
|
4894
|
-
function
|
|
4894
|
+
function Qa() {
|
|
4895
4895
|
return qi || (qi = 1, function(f, e) {
|
|
4896
4896
|
(function(t, r, a) {
|
|
4897
4897
|
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
@@ -4945,7 +4945,7 @@ function Ga() {
|
|
|
4945
4945
|
}(xf)), xf.exports;
|
|
4946
4946
|
}
|
|
4947
4947
|
var vf = { exports: {} }, Li;
|
|
4948
|
-
function
|
|
4948
|
+
function Ja() {
|
|
4949
4949
|
return Li || (Li = 1, function(f, e) {
|
|
4950
4950
|
(function(t, r, a) {
|
|
4951
4951
|
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
@@ -5011,7 +5011,7 @@ function Qa() {
|
|
|
5011
5011
|
}(vf)), vf.exports;
|
|
5012
5012
|
}
|
|
5013
5013
|
var bf = { exports: {} }, Hi;
|
|
5014
|
-
function
|
|
5014
|
+
function es() {
|
|
5015
5015
|
return Hi || (Hi = 1, function(f, e) {
|
|
5016
5016
|
(function(t, r, a) {
|
|
5017
5017
|
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
@@ -5075,7 +5075,7 @@ function Ja() {
|
|
|
5075
5075
|
}(bf)), bf.exports;
|
|
5076
5076
|
}
|
|
5077
5077
|
var pf = { exports: {} }, Ui;
|
|
5078
|
-
function
|
|
5078
|
+
function ts() {
|
|
5079
5079
|
return Ui || (Ui = 1, function(f, e) {
|
|
5080
5080
|
(function(t, r, a) {
|
|
5081
5081
|
f.exports = r($e(), kt(), Pt(), At(), C0());
|
|
@@ -6198,33 +6198,33 @@ function es() {
|
|
|
6198
6198
|
}
|
|
6199
6199
|
(function(f, e) {
|
|
6200
6200
|
(function(t, r, a) {
|
|
6201
|
-
f.exports = r($e(), Er(),
|
|
6201
|
+
f.exports = r($e(), Er(), Ra(), ka(), kt(), Pa(), Pt(), yn(), Lf(), Ia(), gn(), Ta(), Oa(), za(), Hf(), Na(), At(), C0(), qa(), La(), Ha(), Ua(), $a(), Wa(), Ka(), Ya(), ja(), Va(), Xa(), Za(), Ga(), Qa(), Ja(), es(), ts());
|
|
6202
6202
|
})(Pe, function(t) {
|
|
6203
6203
|
return t;
|
|
6204
6204
|
});
|
|
6205
6205
|
})(bn);
|
|
6206
|
-
var
|
|
6207
|
-
const K0 = /* @__PURE__ */ cn(
|
|
6206
|
+
var rs = bn.exports;
|
|
6207
|
+
const K0 = /* @__PURE__ */ cn(rs);
|
|
6208
6208
|
var mn = {};
|
|
6209
|
-
const
|
|
6209
|
+
const fs = "elliptic", is = "6.5.5", ns = "EC cryptography", as = "lib/elliptic.js", ss = [
|
|
6210
6210
|
"lib"
|
|
6211
|
-
],
|
|
6211
|
+
], os = {
|
|
6212
6212
|
lint: "eslint lib test",
|
|
6213
6213
|
"lint:fix": "npm run lint -- --fix",
|
|
6214
6214
|
unit: "istanbul test _mocha --reporter=spec test/index.js",
|
|
6215
6215
|
test: "npm run lint && npm run unit",
|
|
6216
6216
|
version: "grunt dist && git add dist/"
|
|
6217
|
-
},
|
|
6217
|
+
}, cs = {
|
|
6218
6218
|
type: "git",
|
|
6219
6219
|
url: "git@github.com:indutny/elliptic"
|
|
6220
|
-
},
|
|
6220
|
+
}, ds = [
|
|
6221
6221
|
"EC",
|
|
6222
6222
|
"Elliptic",
|
|
6223
6223
|
"curve",
|
|
6224
6224
|
"Cryptography"
|
|
6225
|
-
],
|
|
6225
|
+
], hs = "Fedor Indutny <fedor@indutny.com>", us = "MIT", ls = {
|
|
6226
6226
|
url: "https://github.com/indutny/elliptic/issues"
|
|
6227
|
-
},
|
|
6227
|
+
}, xs = "https://github.com/indutny/elliptic", vs = {
|
|
6228
6228
|
brfs: "^2.0.2",
|
|
6229
6229
|
coveralls: "^3.1.0",
|
|
6230
6230
|
eslint: "^7.6.0",
|
|
@@ -6238,7 +6238,7 @@ const rs = "elliptic", fs = "6.5.5", is = "EC cryptography", ns = "lib/elliptic.
|
|
|
6238
6238
|
"grunt-saucelabs": "^9.0.1",
|
|
6239
6239
|
istanbul: "^0.4.5",
|
|
6240
6240
|
mocha: "^8.0.1"
|
|
6241
|
-
},
|
|
6241
|
+
}, bs = {
|
|
6242
6242
|
"bn.js": "^4.11.9",
|
|
6243
6243
|
brorand: "^1.1.0",
|
|
6244
6244
|
"hash.js": "^1.0.0",
|
|
@@ -6246,21 +6246,21 @@ const rs = "elliptic", fs = "6.5.5", is = "EC cryptography", ns = "lib/elliptic.
|
|
|
6246
6246
|
inherits: "^2.0.4",
|
|
6247
6247
|
"minimalistic-assert": "^1.0.1",
|
|
6248
6248
|
"minimalistic-crypto-utils": "^1.0.1"
|
|
6249
|
-
},
|
|
6250
|
-
name:
|
|
6251
|
-
version:
|
|
6252
|
-
description:
|
|
6253
|
-
main:
|
|
6254
|
-
files:
|
|
6255
|
-
scripts:
|
|
6256
|
-
repository:
|
|
6257
|
-
keywords:
|
|
6258
|
-
author:
|
|
6259
|
-
license:
|
|
6260
|
-
bugs:
|
|
6261
|
-
homepage:
|
|
6262
|
-
devDependencies:
|
|
6263
|
-
dependencies:
|
|
6249
|
+
}, ps = {
|
|
6250
|
+
name: fs,
|
|
6251
|
+
version: is,
|
|
6252
|
+
description: ns,
|
|
6253
|
+
main: as,
|
|
6254
|
+
files: ss,
|
|
6255
|
+
scripts: os,
|
|
6256
|
+
repository: cs,
|
|
6257
|
+
keywords: ds,
|
|
6258
|
+
author: hs,
|
|
6259
|
+
license: us,
|
|
6260
|
+
bugs: ls,
|
|
6261
|
+
homepage: xs,
|
|
6262
|
+
devDependencies: vs,
|
|
6263
|
+
dependencies: bs
|
|
6264
6264
|
};
|
|
6265
6265
|
var Y0 = {}, Uf = { exports: {} };
|
|
6266
6266
|
Uf.exports;
|
|
@@ -7576,7 +7576,7 @@ else
|
|
|
7576
7576
|
};
|
|
7577
7577
|
} catch {
|
|
7578
7578
|
}
|
|
7579
|
-
var An = Wf.exports, Kf = {}, Bt = pt, ir = Y0, pr = ir.getNAF,
|
|
7579
|
+
var An = Wf.exports, Kf = {}, Bt = pt, ir = Y0, pr = ir.getNAF, ys = ir.getJSF, yr = ir.assert;
|
|
7580
7580
|
function Et(f, e) {
|
|
7581
7581
|
this.type = f, this.p = new Bt(e.p, 16), this.red = e.prime ? Bt.red(e.prime) : Bt.mont(this.p), this.zero = new Bt(0).toRed(this.red), this.one = new Bt(1).toRed(this.red), this.two = new Bt(2).toRed(this.red), this.n = e.n && new Bt(e.n, 16), this.g = e.g && this.pointFromJSON(e.g, e.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
|
|
7582
7582
|
var t = this.n && this.p.div(this.n);
|
|
@@ -7663,7 +7663,7 @@ Et.prototype._wnafMulAdd = function(e, t, r, a, i) {
|
|
|
7663
7663
|
/* 1 0 */
|
|
7664
7664
|
3
|
|
7665
7665
|
/* 1 1 */
|
|
7666
|
-
], F =
|
|
7666
|
+
], F = ys(r[w], r[R]);
|
|
7667
7667
|
for (o = Math.max(F[0].length, o), u[w] = new Array(o), u[R] = new Array(o), v = 0; v < o; v++) {
|
|
7668
7668
|
var P = F[0][v] | 0, T = F[1][v] | 0;
|
|
7669
7669
|
u[w][v] = z[(P + 1) * 3 + (T + 1)], u[R][v] = 0, x[w] = k;
|
|
@@ -7789,12 +7789,12 @@ typeof Object.create == "function" ? Ff.exports = function(e, t) {
|
|
|
7789
7789
|
r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e;
|
|
7790
7790
|
}
|
|
7791
7791
|
};
|
|
7792
|
-
var Br = Ff.exports,
|
|
7792
|
+
var Br = Ff.exports, gs = Y0, g0 = pt, Yf = Br, Ut = wr, ms = gs.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
|
}
|
|
7796
7796
|
Yf(Z0, Ut);
|
|
7797
|
-
var
|
|
7797
|
+
var _s = Z0;
|
|
7798
7798
|
Z0.prototype._getEndomorphism = function(e) {
|
|
7799
7799
|
if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) {
|
|
7800
7800
|
var t, r;
|
|
@@ -7808,7 +7808,7 @@ Z0.prototype._getEndomorphism = function(e) {
|
|
|
7808
7808
|
r = new g0(e.lambda, 16);
|
|
7809
7809
|
else {
|
|
7810
7810
|
var i = this._getEndoRoots(this.n);
|
|
7811
|
-
this.g.mul(i[0]).x.cmp(this.g.x.redMul(t)) === 0 ? r = i[0] : (r = i[1],
|
|
7811
|
+
this.g.mul(i[0]).x.cmp(this.g.x.redMul(t)) === 0 ? r = i[0] : (r = i[1], ms(this.g.mul(r).x.cmp(this.g.x.redMul(t)) === 0));
|
|
7812
7812
|
}
|
|
7813
7813
|
var y;
|
|
7814
7814
|
return e.basis ? y = e.basis.map(function(x) {
|
|
@@ -8173,12 +8173,12 @@ R0.prototype.inspect = function() {
|
|
|
8173
8173
|
R0.prototype.isInfinity = function() {
|
|
8174
8174
|
return this.z.cmpn(0) === 0;
|
|
8175
8175
|
};
|
|
8176
|
-
var zt = pt, En = Br, Cr = wr,
|
|
8176
|
+
var zt = pt, En = Br, Cr = wr, As = 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
8180
|
En($t, Cr);
|
|
8181
|
-
var
|
|
8181
|
+
var Es = $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;
|
|
@@ -8188,7 +8188,7 @@ function B0(f, e, t) {
|
|
|
8188
8188
|
}
|
|
8189
8189
|
En(B0, Cr.BasePoint);
|
|
8190
8190
|
$t.prototype.decodePoint = function(e, t) {
|
|
8191
|
-
return this.point(
|
|
8191
|
+
return this.point(As.toArray(e, t), 1);
|
|
8192
8192
|
};
|
|
8193
8193
|
$t.prototype.point = function(e, t) {
|
|
8194
8194
|
return new B0(this, e, t);
|
|
@@ -8243,12 +8243,12 @@ B0.prototype.normalize = function() {
|
|
|
8243
8243
|
B0.prototype.getX = function() {
|
|
8244
8244
|
return this.normalize(), this.x.fromRed();
|
|
8245
8245
|
};
|
|
8246
|
-
var
|
|
8246
|
+
var ws = Y0, lt = pt, wn = Br, Mr = wr, Bs = ws.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, 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),
|
|
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), Bs(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (f.c | 0) === 1;
|
|
8249
8249
|
}
|
|
8250
8250
|
wn(ht, Mr);
|
|
8251
|
-
var
|
|
8251
|
+
var Cs = ht;
|
|
8252
8252
|
ht.prototype._mulA = function(e) {
|
|
8253
8253
|
return this.mOneA ? e.redNeg() : this.a.redMul(e);
|
|
8254
8254
|
};
|
|
@@ -8382,14 +8382,14 @@ 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 = wr, e.short =
|
|
8385
|
+
e.base = wr, e.short = _s, e.mont = Es, e.edwards = Cs;
|
|
8386
8386
|
})(Kf);
|
|
8387
|
-
var Sr = {}, Fr = {}, Le = {},
|
|
8388
|
-
Le.inherits =
|
|
8389
|
-
function
|
|
8387
|
+
var Sr = {}, Fr = {}, Le = {}, Ms = It, Ss = Br;
|
|
8388
|
+
Le.inherits = Ss;
|
|
8389
|
+
function Fs(f, e) {
|
|
8390
8390
|
return (f.charCodeAt(e) & 64512) !== 55296 || e < 0 || e + 1 >= f.length ? !1 : (f.charCodeAt(e + 1) & 64512) === 56320;
|
|
8391
8391
|
}
|
|
8392
|
-
function
|
|
8392
|
+
function Ds(f, e) {
|
|
8393
8393
|
if (Array.isArray(f))
|
|
8394
8394
|
return f.slice();
|
|
8395
8395
|
if (!f)
|
|
@@ -8403,33 +8403,33 @@ function Fs(f, e) {
|
|
|
8403
8403
|
} else
|
|
8404
8404
|
for (var r = 0, a = 0; a < f.length; a++) {
|
|
8405
8405
|
var i = f.charCodeAt(a);
|
|
8406
|
-
i < 128 ? t[r++] = i : i < 2048 ? (t[r++] = i >> 6 | 192, t[r++] = i & 63 | 128) :
|
|
8406
|
+
i < 128 ? t[r++] = i : i < 2048 ? (t[r++] = i >> 6 | 192, t[r++] = i & 63 | 128) : Fs(f, a) ? (i = 65536 + ((i & 1023) << 10) + (f.charCodeAt(++a) & 1023), t[r++] = i >> 18 | 240, t[r++] = i >> 12 & 63 | 128, t[r++] = i >> 6 & 63 | 128, t[r++] = i & 63 | 128) : (t[r++] = i >> 12 | 224, t[r++] = i >> 6 & 63 | 128, t[r++] = i & 63 | 128);
|
|
8407
8407
|
}
|
|
8408
8408
|
else
|
|
8409
8409
|
for (a = 0; a < f.length; a++)
|
|
8410
8410
|
t[a] = f[a] | 0;
|
|
8411
8411
|
return t;
|
|
8412
8412
|
}
|
|
8413
|
-
Le.toArray =
|
|
8414
|
-
function
|
|
8413
|
+
Le.toArray = Ds;
|
|
8414
|
+
function Rs(f) {
|
|
8415
8415
|
for (var e = "", t = 0; t < f.length; t++)
|
|
8416
8416
|
e += Cn(f[t].toString(16));
|
|
8417
8417
|
return e;
|
|
8418
8418
|
}
|
|
8419
|
-
Le.toHex =
|
|
8419
|
+
Le.toHex = Rs;
|
|
8420
8420
|
function Bn(f) {
|
|
8421
8421
|
var e = f >>> 24 | f >>> 8 & 65280 | f << 8 & 16711680 | (f & 255) << 24;
|
|
8422
8422
|
return e >>> 0;
|
|
8423
8423
|
}
|
|
8424
8424
|
Le.htonl = Bn;
|
|
8425
|
-
function
|
|
8425
|
+
function ks(f, e) {
|
|
8426
8426
|
for (var t = "", r = 0; r < f.length; r++) {
|
|
8427
8427
|
var a = f[r];
|
|
8428
8428
|
e === "little" && (a = Bn(a)), t += Mn(a.toString(16));
|
|
8429
8429
|
}
|
|
8430
8430
|
return t;
|
|
8431
8431
|
}
|
|
8432
|
-
Le.toHex32 =
|
|
8432
|
+
Le.toHex32 = ks;
|
|
8433
8433
|
function Cn(f) {
|
|
8434
8434
|
return f.length === 1 ? "0" + f : f;
|
|
8435
8435
|
}
|
|
@@ -8438,107 +8438,107 @@ function Mn(f) {
|
|
|
8438
8438
|
return f.length === 7 ? "0" + f : f.length === 6 ? "00" + f : f.length === 5 ? "000" + f : f.length === 4 ? "0000" + f : f.length === 3 ? "00000" + f : f.length === 2 ? "000000" + f : f.length === 1 ? "0000000" + f : f;
|
|
8439
8439
|
}
|
|
8440
8440
|
Le.zero8 = Mn;
|
|
8441
|
-
function
|
|
8441
|
+
function Ps(f, e, t, r) {
|
|
8442
8442
|
var a = t - e;
|
|
8443
|
-
|
|
8443
|
+
Ms(a % 4 === 0);
|
|
8444
8444
|
for (var i = new Array(a / 4), y = 0, x = e; y < i.length; y++, x += 4) {
|
|
8445
8445
|
var u;
|
|
8446
8446
|
r === "big" ? u = f[x] << 24 | f[x + 1] << 16 | f[x + 2] << 8 | f[x + 3] : u = f[x + 3] << 24 | f[x + 2] << 16 | f[x + 1] << 8 | f[x], i[y] = u >>> 0;
|
|
8447
8447
|
}
|
|
8448
8448
|
return i;
|
|
8449
8449
|
}
|
|
8450
|
-
Le.join32 =
|
|
8451
|
-
function
|
|
8450
|
+
Le.join32 = Ps;
|
|
8451
|
+
function Is(f, e) {
|
|
8452
8452
|
for (var t = new Array(f.length * 4), r = 0, a = 0; r < f.length; r++, a += 4) {
|
|
8453
8453
|
var i = f[r];
|
|
8454
8454
|
e === "big" ? (t[a] = i >>> 24, t[a + 1] = i >>> 16 & 255, t[a + 2] = i >>> 8 & 255, t[a + 3] = i & 255) : (t[a + 3] = i >>> 24, t[a + 2] = i >>> 16 & 255, t[a + 1] = i >>> 8 & 255, t[a] = i & 255);
|
|
8455
8455
|
}
|
|
8456
8456
|
return t;
|
|
8457
8457
|
}
|
|
8458
|
-
Le.split32 =
|
|
8459
|
-
function
|
|
8458
|
+
Le.split32 = Is;
|
|
8459
|
+
function Ts(f, e) {
|
|
8460
8460
|
return f >>> e | f << 32 - e;
|
|
8461
8461
|
}
|
|
8462
|
-
Le.rotr32 =
|
|
8463
|
-
function
|
|
8462
|
+
Le.rotr32 = Ts;
|
|
8463
|
+
function Os(f, e) {
|
|
8464
8464
|
return f << e | f >>> 32 - e;
|
|
8465
8465
|
}
|
|
8466
|
-
Le.rotl32 =
|
|
8467
|
-
function
|
|
8466
|
+
Le.rotl32 = Os;
|
|
8467
|
+
function zs(f, e) {
|
|
8468
8468
|
return f + e >>> 0;
|
|
8469
8469
|
}
|
|
8470
|
-
Le.sum32 =
|
|
8471
|
-
function
|
|
8470
|
+
Le.sum32 = zs;
|
|
8471
|
+
function Ns(f, e, t) {
|
|
8472
8472
|
return f + e + t >>> 0;
|
|
8473
8473
|
}
|
|
8474
|
-
Le.sum32_3 =
|
|
8475
|
-
function
|
|
8474
|
+
Le.sum32_3 = Ns;
|
|
8475
|
+
function qs(f, e, t, r) {
|
|
8476
8476
|
return f + e + t + r >>> 0;
|
|
8477
8477
|
}
|
|
8478
|
-
Le.sum32_4 =
|
|
8479
|
-
function
|
|
8478
|
+
Le.sum32_4 = qs;
|
|
8479
|
+
function Ls(f, e, t, r, a) {
|
|
8480
8480
|
return f + e + t + r + a >>> 0;
|
|
8481
8481
|
}
|
|
8482
|
-
Le.sum32_5 =
|
|
8483
|
-
function
|
|
8482
|
+
Le.sum32_5 = Ls;
|
|
8483
|
+
function Hs(f, e, t, r) {
|
|
8484
8484
|
var a = f[e], i = f[e + 1], y = r + i >>> 0, x = (y < r ? 1 : 0) + t + a;
|
|
8485
8485
|
f[e] = x >>> 0, f[e + 1] = y;
|
|
8486
8486
|
}
|
|
8487
|
-
Le.sum64 =
|
|
8488
|
-
function
|
|
8487
|
+
Le.sum64 = Hs;
|
|
8488
|
+
function Us(f, e, t, r) {
|
|
8489
8489
|
var a = e + r >>> 0, i = (a < e ? 1 : 0) + f + t;
|
|
8490
8490
|
return i >>> 0;
|
|
8491
8491
|
}
|
|
8492
|
-
Le.sum64_hi =
|
|
8493
|
-
function
|
|
8492
|
+
Le.sum64_hi = Us;
|
|
8493
|
+
function $s(f, e, t, r) {
|
|
8494
8494
|
var a = e + r;
|
|
8495
8495
|
return a >>> 0;
|
|
8496
8496
|
}
|
|
8497
|
-
Le.sum64_lo =
|
|
8498
|
-
function
|
|
8497
|
+
Le.sum64_lo = $s;
|
|
8498
|
+
function Ws(f, e, t, r, a, i, y, x) {
|
|
8499
8499
|
var u = 0, o = e;
|
|
8500
8500
|
o = o + r >>> 0, u += o < e ? 1 : 0, o = o + i >>> 0, u += o < i ? 1 : 0, o = o + x >>> 0, u += o < x ? 1 : 0;
|
|
8501
8501
|
var c = f + t + a + y + u;
|
|
8502
8502
|
return c >>> 0;
|
|
8503
8503
|
}
|
|
8504
|
-
Le.sum64_4_hi =
|
|
8505
|
-
function
|
|
8504
|
+
Le.sum64_4_hi = Ws;
|
|
8505
|
+
function Ks(f, e, t, r, a, i, y, x) {
|
|
8506
8506
|
var u = e + r + i + x;
|
|
8507
8507
|
return u >>> 0;
|
|
8508
8508
|
}
|
|
8509
|
-
Le.sum64_4_lo =
|
|
8510
|
-
function
|
|
8509
|
+
Le.sum64_4_lo = Ks;
|
|
8510
|
+
function Ys(f, e, t, r, a, i, y, x, u, o) {
|
|
8511
8511
|
var c = 0, v = e;
|
|
8512
8512
|
v = v + r >>> 0, c += v < e ? 1 : 0, v = v + i >>> 0, c += v < i ? 1 : 0, v = v + x >>> 0, c += v < x ? 1 : 0, v = v + o >>> 0, c += v < o ? 1 : 0;
|
|
8513
8513
|
var b = f + t + a + y + u + c;
|
|
8514
8514
|
return b >>> 0;
|
|
8515
8515
|
}
|
|
8516
|
-
Le.sum64_5_hi =
|
|
8517
|
-
function
|
|
8516
|
+
Le.sum64_5_hi = Ys;
|
|
8517
|
+
function js(f, e, t, r, a, i, y, x, u, o) {
|
|
8518
8518
|
var c = e + r + i + x + o;
|
|
8519
8519
|
return c >>> 0;
|
|
8520
8520
|
}
|
|
8521
|
-
Le.sum64_5_lo =
|
|
8522
|
-
function
|
|
8521
|
+
Le.sum64_5_lo = js;
|
|
8522
|
+
function Vs(f, e, t) {
|
|
8523
8523
|
var r = e << 32 - t | f >>> t;
|
|
8524
8524
|
return r >>> 0;
|
|
8525
8525
|
}
|
|
8526
|
-
Le.rotr64_hi =
|
|
8527
|
-
function
|
|
8526
|
+
Le.rotr64_hi = Vs;
|
|
8527
|
+
function Xs(f, e, t) {
|
|
8528
8528
|
var r = f << 32 - t | e >>> t;
|
|
8529
8529
|
return r >>> 0;
|
|
8530
8530
|
}
|
|
8531
|
-
Le.rotr64_lo =
|
|
8532
|
-
function
|
|
8531
|
+
Le.rotr64_lo = Xs;
|
|
8532
|
+
function Zs(f, e, t) {
|
|
8533
8533
|
return f >>> t;
|
|
8534
8534
|
}
|
|
8535
|
-
Le.shr64_hi =
|
|
8536
|
-
function
|
|
8535
|
+
Le.shr64_hi = Zs;
|
|
8536
|
+
function Gs(f, e, t) {
|
|
8537
8537
|
var r = f << 32 - t | e >>> t;
|
|
8538
8538
|
return r >>> 0;
|
|
8539
8539
|
}
|
|
8540
|
-
Le.shr64_lo =
|
|
8541
|
-
var Wt = {}, Wi = Le,
|
|
8540
|
+
Le.shr64_lo = Gs;
|
|
8541
|
+
var Wt = {}, Wi = Le, Qs = It;
|
|
8542
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
|
}
|
|
@@ -8554,7 +8554,7 @@ Dr.prototype.update = function(e, t) {
|
|
|
8554
8554
|
return this;
|
|
8555
8555
|
};
|
|
8556
8556
|
Dr.prototype.digest = function(e) {
|
|
8557
|
-
return this.update(this._pad()),
|
|
8557
|
+
return this.update(this._pad()), Qs(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);
|
|
@@ -8570,8 +8570,8 @@ Dr.prototype._pad = function() {
|
|
|
8570
8570
|
a[i++] = 0;
|
|
8571
8571
|
return a;
|
|
8572
8572
|
};
|
|
8573
|
-
var Kt = {}, ut = {},
|
|
8574
|
-
function
|
|
8573
|
+
var Kt = {}, ut = {}, Js = Le, ft = Js.rotr32;
|
|
8574
|
+
function eo(f, e, t, r) {
|
|
8575
8575
|
if (f === 0)
|
|
8576
8576
|
return Sn(e, t, r);
|
|
8577
8577
|
if (f === 1 || f === 3)
|
|
@@ -8579,7 +8579,7 @@ function Js(f, e, t, r) {
|
|
|
8579
8579
|
if (f === 2)
|
|
8580
8580
|
return Fn(e, t, r);
|
|
8581
8581
|
}
|
|
8582
|
-
ut.ft_1 =
|
|
8582
|
+
ut.ft_1 = eo;
|
|
8583
8583
|
function Sn(f, e, t) {
|
|
8584
8584
|
return f & e ^ ~f & t;
|
|
8585
8585
|
}
|
|
@@ -8592,23 +8592,23 @@ function Dn(f, e, t) {
|
|
|
8592
8592
|
return f ^ e ^ t;
|
|
8593
8593
|
}
|
|
8594
8594
|
ut.p32 = Dn;
|
|
8595
|
-
function
|
|
8595
|
+
function to(f) {
|
|
8596
8596
|
return ft(f, 2) ^ ft(f, 13) ^ ft(f, 22);
|
|
8597
8597
|
}
|
|
8598
|
-
ut.s0_256 =
|
|
8599
|
-
function
|
|
8598
|
+
ut.s0_256 = to;
|
|
8599
|
+
function ro(f) {
|
|
8600
8600
|
return ft(f, 6) ^ ft(f, 11) ^ ft(f, 25);
|
|
8601
8601
|
}
|
|
8602
|
-
ut.s1_256 =
|
|
8603
|
-
function
|
|
8602
|
+
ut.s1_256 = ro;
|
|
8603
|
+
function fo(f) {
|
|
8604
8604
|
return ft(f, 7) ^ ft(f, 18) ^ f >>> 3;
|
|
8605
8605
|
}
|
|
8606
|
-
ut.g0_256 =
|
|
8607
|
-
function
|
|
8606
|
+
ut.g0_256 = fo;
|
|
8607
|
+
function io(f) {
|
|
8608
8608
|
return ft(f, 17) ^ ft(f, 19) ^ f >>> 10;
|
|
8609
8609
|
}
|
|
8610
|
-
ut.g1_256 =
|
|
8611
|
-
var Nt = Le,
|
|
8610
|
+
ut.g1_256 = io;
|
|
8611
|
+
var Nt = Le, no = Wt, ao = ut, gf = Nt.rotl32, Gt = Nt.sum32, so = Nt.sum32_5, oo = ao.ft_1, Rn = no.BlockHash, co = [
|
|
8612
8612
|
1518500249,
|
|
8613
8613
|
1859775393,
|
|
8614
8614
|
2400959708,
|
|
@@ -8626,7 +8626,7 @@ function st() {
|
|
|
8626
8626
|
], this.W = new Array(80);
|
|
8627
8627
|
}
|
|
8628
8628
|
Nt.inherits(st, Rn);
|
|
8629
|
-
var
|
|
8629
|
+
var ho = st;
|
|
8630
8630
|
st.blockSize = 512;
|
|
8631
8631
|
st.outSize = 160;
|
|
8632
8632
|
st.hmacStrength = 80;
|
|
@@ -8638,7 +8638,7 @@ st.prototype._update = function(e, t) {
|
|
|
8638
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 =
|
|
8641
|
+
var c = ~~(a / 20), v = so(gf(i, 5), oo(c, y, x, u), o, r[a], co[c]);
|
|
8642
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);
|
|
@@ -8646,7 +8646,7 @@ st.prototype._update = function(e, t) {
|
|
|
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,
|
|
8649
|
+
var qt = Le, uo = Wt, Yt = ut, lo = It, J0 = qt.sum32, xo = qt.sum32_4, vo = qt.sum32_5, bo = Yt.ch32, po = Yt.maj32, yo = Yt.s0_256, go = Yt.s1_256, mo = Yt.g0_256, _o = Yt.g1_256, kn = uo.BlockHash, Ao = [
|
|
8650
8650
|
1116352408,
|
|
8651
8651
|
1899447441,
|
|
8652
8652
|
3049323471,
|
|
@@ -8724,7 +8724,7 @@ function ot() {
|
|
|
8724
8724
|
2600822924,
|
|
8725
8725
|
528734635,
|
|
8726
8726
|
1541459225
|
|
8727
|
-
], this.k =
|
|
8727
|
+
], this.k = Ao, this.W = new Array(64);
|
|
8728
8728
|
}
|
|
8729
8729
|
qt.inherits(ot, kn);
|
|
8730
8730
|
var Pn = ot;
|
|
@@ -8736,10 +8736,10 @@ ot.prototype._update = function(e, t) {
|
|
|
8736
8736
|
for (var r = this.W, a = 0; a < 16; a++)
|
|
8737
8737
|
r[a] = e[t + a];
|
|
8738
8738
|
for (; a < r.length; a++)
|
|
8739
|
-
r[a] =
|
|
8739
|
+
r[a] = xo(_o(r[a - 2]), r[a - 7], mo(r[a - 15]), r[a - 16]);
|
|
8740
8740
|
var i = this.h[0], y = this.h[1], x = this.h[2], u = this.h[3], o = this.h[4], c = this.h[5], v = this.h[6], b = this.h[7];
|
|
8741
|
-
for (
|
|
8742
|
-
var B =
|
|
8741
|
+
for (lo(this.k.length === r.length), a = 0; a < r.length; a++) {
|
|
8742
|
+
var B = vo(b, go(o), bo(o, c, v), this.k[a], r[a]), w = J0(yo(i), po(i, y, x));
|
|
8743
8743
|
b = v, v = c, c = o, o = J0(u, B), u = x, x = y, y = i, i = J0(B, w);
|
|
8744
8744
|
}
|
|
8745
8745
|
this.h[0] = J0(this.h[0], i), this.h[1] = J0(this.h[1], y), this.h[2] = J0(this.h[2], x), this.h[3] = J0(this.h[3], u), this.h[4] = J0(this.h[4], o), this.h[5] = J0(this.h[5], c), this.h[6] = J0(this.h[6], v), this.h[7] = J0(this.h[7], b);
|
|
@@ -8763,7 +8763,7 @@ function vt() {
|
|
|
8763
8763
|
];
|
|
8764
8764
|
}
|
|
8765
8765
|
Df.inherits(vt, In);
|
|
8766
|
-
var
|
|
8766
|
+
var Eo = vt;
|
|
8767
8767
|
vt.blockSize = 512;
|
|
8768
8768
|
vt.outSize = 224;
|
|
8769
8769
|
vt.hmacStrength = 192;
|
|
@@ -8771,7 +8771,7 @@ vt.padLength = 64;
|
|
|
8771
8771
|
vt.prototype._digest = function(e) {
|
|
8772
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,
|
|
8774
|
+
var H0 = Le, wo = Wt, Bo = 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, Co = H0.sum64_4_hi, Mo = H0.sum64_4_lo, So = H0.sum64_5_hi, Fo = H0.sum64_5_lo, zn = wo.BlockHash, Do = [
|
|
8775
8775
|
1116352408,
|
|
8776
8776
|
3609767458,
|
|
8777
8777
|
1899447441,
|
|
@@ -8953,7 +8953,7 @@ function tt() {
|
|
|
8953
8953
|
4215389547,
|
|
8954
8954
|
1541459225,
|
|
8955
8955
|
327033209
|
|
8956
|
-
], this.k =
|
|
8956
|
+
], this.k = Do, this.W = new Array(160);
|
|
8957
8957
|
}
|
|
8958
8958
|
H0.inherits(tt, zn);
|
|
8959
8959
|
var Nn = tt;
|
|
@@ -8965,8 +8965,8 @@ tt.prototype._prepareBlock = function(e, t) {
|
|
|
8965
8965
|
for (var r = this.W, a = 0; a < 32; a++)
|
|
8966
8966
|
r[a] = e[t + a];
|
|
8967
8967
|
for (; a < r.length; a += 2) {
|
|
8968
|
-
var i =
|
|
8969
|
-
r[a] =
|
|
8968
|
+
var i = Ho(r[a - 4], r[a - 3]), y = Uo(r[a - 4], r[a - 3]), x = r[a - 14], u = r[a - 13], o = qo(r[a - 30], r[a - 29]), c = Lo(r[a - 30], r[a - 29]), v = r[a - 32], b = r[a - 31];
|
|
8969
|
+
r[a] = Co(
|
|
8970
8970
|
i,
|
|
8971
8971
|
y,
|
|
8972
8972
|
x,
|
|
@@ -8975,7 +8975,7 @@ tt.prototype._prepareBlock = function(e, t) {
|
|
|
8975
8975
|
c,
|
|
8976
8976
|
v,
|
|
8977
8977
|
b
|
|
8978
|
-
), r[a + 1] =
|
|
8978
|
+
), r[a + 1] = Mo(
|
|
8979
8979
|
i,
|
|
8980
8980
|
y,
|
|
8981
8981
|
x,
|
|
@@ -8990,9 +8990,9 @@ tt.prototype._prepareBlock = function(e, t) {
|
|
|
8990
8990
|
tt.prototype._update = function(e, t) {
|
|
8991
8991
|
this._prepareBlock(e, t);
|
|
8992
8992
|
var r = this.W, a = this.h[0], i = this.h[1], y = this.h[2], x = this.h[3], u = this.h[4], o = this.h[5], c = this.h[6], v = this.h[7], b = this.h[8], B = this.h[9], w = this.h[10], R = this.h[11], k = this.h[12], z = this.h[13], F = this.h[14], P = this.h[15];
|
|
8993
|
-
|
|
8993
|
+
Bo(this.k.length === r.length);
|
|
8994
8994
|
for (var T = 0; T < r.length; T += 2) {
|
|
8995
|
-
var H = F, $ = P, Y =
|
|
8995
|
+
var H = F, $ = P, Y = zo(b, B), X = No(b, B), Q = Ro(b, B, w, R, k), U = ko(b, B, w, R, k, z), A = this.k[T], n = this.k[T + 1], d = r[T], g = r[T + 1], C = So(
|
|
8996
8996
|
H,
|
|
8997
8997
|
$,
|
|
8998
8998
|
Y,
|
|
@@ -9003,7 +9003,7 @@ tt.prototype._update = function(e, t) {
|
|
|
9003
9003
|
n,
|
|
9004
9004
|
d,
|
|
9005
9005
|
g
|
|
9006
|
-
), S =
|
|
9006
|
+
), S = Fo(
|
|
9007
9007
|
H,
|
|
9008
9008
|
$,
|
|
9009
9009
|
Y,
|
|
@@ -9015,7 +9015,7 @@ tt.prototype._update = function(e, t) {
|
|
|
9015
9015
|
d,
|
|
9016
9016
|
g
|
|
9017
9017
|
);
|
|
9018
|
-
H =
|
|
9018
|
+
H = To(a, i), $ = Oo(a, i), Y = Po(a, i, y, x, u), X = Io(a, i, y, x, u, o);
|
|
9019
9019
|
var N = mf(H, $, Y, X), q = _f(H, $, Y, X);
|
|
9020
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
|
}
|
|
@@ -9024,51 +9024,51 @@ tt.prototype._update = function(e, t) {
|
|
|
9024
9024
|
tt.prototype._digest = function(e) {
|
|
9025
9025
|
return e === "hex" ? H0.toHex32(this.h, "big") : H0.split32(this.h, "big");
|
|
9026
9026
|
};
|
|
9027
|
-
function
|
|
9027
|
+
function Ro(f, e, t, r, a) {
|
|
9028
9028
|
var i = f & t ^ ~f & a;
|
|
9029
9029
|
return i < 0 && (i += 4294967296), i;
|
|
9030
9030
|
}
|
|
9031
|
-
function
|
|
9031
|
+
function ko(f, e, t, r, a, i) {
|
|
9032
9032
|
var y = e & r ^ ~e & i;
|
|
9033
9033
|
return y < 0 && (y += 4294967296), y;
|
|
9034
9034
|
}
|
|
9035
|
-
function
|
|
9035
|
+
function Po(f, e, t, r, a) {
|
|
9036
9036
|
var i = f & t ^ f & a ^ t & a;
|
|
9037
9037
|
return i < 0 && (i += 4294967296), i;
|
|
9038
9038
|
}
|
|
9039
|
-
function
|
|
9039
|
+
function Io(f, e, t, r, a, i) {
|
|
9040
9040
|
var y = e & r ^ e & i ^ r & i;
|
|
9041
9041
|
return y < 0 && (y += 4294967296), y;
|
|
9042
9042
|
}
|
|
9043
|
-
function
|
|
9043
|
+
function To(f, e) {
|
|
9044
9044
|
var t = it(f, e, 28), r = it(e, f, 2), a = it(e, f, 7), i = t ^ r ^ a;
|
|
9045
9045
|
return i < 0 && (i += 4294967296), i;
|
|
9046
9046
|
}
|
|
9047
|
-
function
|
|
9047
|
+
function Oo(f, e) {
|
|
9048
9048
|
var t = nt(f, e, 28), r = nt(e, f, 2), a = nt(e, f, 7), i = t ^ r ^ a;
|
|
9049
9049
|
return i < 0 && (i += 4294967296), i;
|
|
9050
9050
|
}
|
|
9051
|
-
function
|
|
9051
|
+
function zo(f, e) {
|
|
9052
9052
|
var t = it(f, e, 14), r = it(f, e, 18), a = it(e, f, 9), i = t ^ r ^ a;
|
|
9053
9053
|
return i < 0 && (i += 4294967296), i;
|
|
9054
9054
|
}
|
|
9055
|
-
function
|
|
9055
|
+
function No(f, e) {
|
|
9056
9056
|
var t = nt(f, e, 14), r = nt(f, e, 18), a = nt(e, f, 9), i = t ^ r ^ a;
|
|
9057
9057
|
return i < 0 && (i += 4294967296), i;
|
|
9058
9058
|
}
|
|
9059
|
-
function
|
|
9059
|
+
function qo(f, e) {
|
|
9060
9060
|
var t = it(f, e, 1), r = it(f, e, 8), a = Tn(f, e, 7), i = t ^ r ^ a;
|
|
9061
9061
|
return i < 0 && (i += 4294967296), i;
|
|
9062
9062
|
}
|
|
9063
|
-
function
|
|
9063
|
+
function Lo(f, e) {
|
|
9064
9064
|
var t = nt(f, e, 1), r = nt(f, e, 8), a = On(f, e, 7), i = t ^ r ^ a;
|
|
9065
9065
|
return i < 0 && (i += 4294967296), i;
|
|
9066
9066
|
}
|
|
9067
|
-
function
|
|
9067
|
+
function Ho(f, e) {
|
|
9068
9068
|
var t = it(f, e, 19), r = it(e, f, 29), a = Tn(f, e, 6), i = t ^ r ^ a;
|
|
9069
9069
|
return i < 0 && (i += 4294967296), i;
|
|
9070
9070
|
}
|
|
9071
|
-
function
|
|
9071
|
+
function Uo(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
|
}
|
|
@@ -9096,7 +9096,7 @@ function bt() {
|
|
|
9096
9096
|
];
|
|
9097
9097
|
}
|
|
9098
9098
|
Rf.inherits(bt, qn);
|
|
9099
|
-
var
|
|
9099
|
+
var $o = bt;
|
|
9100
9100
|
bt.blockSize = 1024;
|
|
9101
9101
|
bt.outSize = 384;
|
|
9102
9102
|
bt.hmacStrength = 192;
|
|
@@ -9104,12 +9104,12 @@ bt.padLength = 128;
|
|
|
9104
9104
|
bt.prototype._digest = function(e) {
|
|
9105
9105
|
return e === "hex" ? Rf.toHex32(this.h.slice(0, 12), "big") : Rf.split32(this.h.slice(0, 12), "big");
|
|
9106
9106
|
};
|
|
9107
|
-
Kt.sha1 =
|
|
9108
|
-
Kt.sha224 =
|
|
9107
|
+
Kt.sha1 = ho;
|
|
9108
|
+
Kt.sha224 = Eo;
|
|
9109
9109
|
Kt.sha256 = Pn;
|
|
9110
|
-
Kt.sha384 =
|
|
9110
|
+
Kt.sha384 = $o;
|
|
9111
9111
|
Kt.sha512 = Nn;
|
|
9112
|
-
var Ln = {}, Rt = Le,
|
|
9112
|
+
var Ln = {}, Rt = Le, Wo = Wt, sr = Rt.rotl32, Ki = Rt.sum32, Qt = Rt.sum32_3, Yi = Rt.sum32_4, Hn = Wo.BlockHash;
|
|
9113
9113
|
function ct() {
|
|
9114
9114
|
if (!(this instanceof ct))
|
|
9115
9115
|
return new ct();
|
|
@@ -9125,15 +9125,15 @@ ct.prototype._update = function(e, t) {
|
|
|
9125
9125
|
for (var r = this.h[0], a = this.h[1], i = this.h[2], y = this.h[3], x = this.h[4], u = r, o = a, c = i, v = y, b = x, B = 0; B < 80; B++) {
|
|
9126
9126
|
var w = Ki(
|
|
9127
9127
|
sr(
|
|
9128
|
-
Yi(r, ji(B, a, i, y), e[
|
|
9129
|
-
|
|
9128
|
+
Yi(r, ji(B, a, i, y), e[jo[B] + t], Ko(B)),
|
|
9129
|
+
Xo[B]
|
|
9130
9130
|
),
|
|
9131
9131
|
x
|
|
9132
9132
|
);
|
|
9133
9133
|
r = x, x = y, y = sr(i, 10), i = a, a = w, w = Ki(
|
|
9134
9134
|
sr(
|
|
9135
|
-
Yi(u, ji(79 - B, o, c, v), e[
|
|
9136
|
-
|
|
9135
|
+
Yi(u, ji(79 - B, o, c, v), e[Vo[B] + t], Yo(B)),
|
|
9136
|
+
Zo[B]
|
|
9137
9137
|
),
|
|
9138
9138
|
b
|
|
9139
9139
|
), u = b, b = v, v = sr(c, 10), c = o, o = w;
|
|
@@ -9146,13 +9146,13 @@ ct.prototype._digest = function(e) {
|
|
|
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);
|
|
9148
9148
|
}
|
|
9149
|
-
function
|
|
9149
|
+
function Ko(f) {
|
|
9150
9150
|
return f <= 15 ? 0 : f <= 31 ? 1518500249 : f <= 47 ? 1859775393 : f <= 63 ? 2400959708 : 2840853838;
|
|
9151
9151
|
}
|
|
9152
|
-
function
|
|
9152
|
+
function Yo(f) {
|
|
9153
9153
|
return f <= 15 ? 1352829926 : f <= 31 ? 1548603684 : f <= 47 ? 1836072691 : f <= 63 ? 2053994217 : 0;
|
|
9154
9154
|
}
|
|
9155
|
-
var
|
|
9155
|
+
var jo = [
|
|
9156
9156
|
0,
|
|
9157
9157
|
1,
|
|
9158
9158
|
2,
|
|
@@ -9233,7 +9233,7 @@ var Yo = [
|
|
|
9233
9233
|
6,
|
|
9234
9234
|
15,
|
|
9235
9235
|
13
|
|
9236
|
-
],
|
|
9236
|
+
], Vo = [
|
|
9237
9237
|
5,
|
|
9238
9238
|
14,
|
|
9239
9239
|
7,
|
|
@@ -9314,7 +9314,7 @@ var Yo = [
|
|
|
9314
9314
|
3,
|
|
9315
9315
|
9,
|
|
9316
9316
|
11
|
|
9317
|
-
],
|
|
9317
|
+
], Xo = [
|
|
9318
9318
|
11,
|
|
9319
9319
|
14,
|
|
9320
9320
|
15,
|
|
@@ -9395,7 +9395,7 @@ var Yo = [
|
|
|
9395
9395
|
8,
|
|
9396
9396
|
5,
|
|
9397
9397
|
6
|
|
9398
|
-
],
|
|
9398
|
+
], Zo = [
|
|
9399
9399
|
8,
|
|
9400
9400
|
9,
|
|
9401
9401
|
9,
|
|
@@ -9476,15 +9476,15 @@ var Yo = [
|
|
|
9476
9476
|
13,
|
|
9477
9477
|
11,
|
|
9478
9478
|
11
|
|
9479
|
-
],
|
|
9479
|
+
], Go = Le, Qo = It;
|
|
9480
9480
|
function Lt(f, e, t) {
|
|
9481
9481
|
if (!(this instanceof Lt))
|
|
9482
9482
|
return new Lt(f, e, t);
|
|
9483
|
-
this.Hash = f, this.blockSize = f.blockSize / 8, this.outSize = f.outSize / 8, this.inner = null, this.outer = null, this._init(
|
|
9483
|
+
this.Hash = f, this.blockSize = f.blockSize / 8, this.outSize = f.outSize / 8, this.inner = null, this.outer = null, this._init(Go.toArray(e, t));
|
|
9484
9484
|
}
|
|
9485
|
-
var
|
|
9485
|
+
var Jo = Lt;
|
|
9486
9486
|
Lt.prototype._init = function(e) {
|
|
9487
|
-
e.length > this.blockSize && (e = new this.Hash().update(e).digest()),
|
|
9487
|
+
e.length > this.blockSize && (e = new this.Hash().update(e).digest()), Qo(e.length <= this.blockSize);
|
|
9488
9488
|
for (var t = e.length; t < this.blockSize; t++)
|
|
9489
9489
|
e.push(0);
|
|
9490
9490
|
for (t = 0; t < e.length; t++)
|
|
@@ -9501,10 +9501,10 @@ Lt.prototype.digest = function(e) {
|
|
|
9501
9501
|
};
|
|
9502
9502
|
(function(f) {
|
|
9503
9503
|
var e = f;
|
|
9504
|
-
e.utils = Le, e.common = Wt, e.sha = Kt, e.ripemd = Ln, e.hmac =
|
|
9504
|
+
e.utils = Le, e.common = Wt, e.sha = Kt, e.ripemd = Ln, e.hmac = Jo, 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
9505
|
})(Fr);
|
|
9506
9506
|
var Af, Vi;
|
|
9507
|
-
function
|
|
9507
|
+
function ec() {
|
|
9508
9508
|
return Vi || (Vi = 1, Af = {
|
|
9509
9509
|
doubles: {
|
|
9510
9510
|
step: 4,
|
|
@@ -10402,7 +10402,7 @@ function Jo() {
|
|
|
10402
10402
|
});
|
|
10403
10403
|
var u;
|
|
10404
10404
|
try {
|
|
10405
|
-
u =
|
|
10405
|
+
u = ec();
|
|
10406
10406
|
} catch {
|
|
10407
10407
|
u = void 0;
|
|
10408
10408
|
}
|
|
@@ -10436,7 +10436,7 @@ function Jo() {
|
|
|
10436
10436
|
]
|
|
10437
10437
|
});
|
|
10438
10438
|
})(Sr);
|
|
10439
|
-
var
|
|
10439
|
+
var tc = Fr, Mt = $f, Un = It;
|
|
10440
10440
|
function _t(f) {
|
|
10441
10441
|
if (!(this instanceof _t))
|
|
10442
10442
|
return new _t(f);
|
|
@@ -10447,7 +10447,7 @@ function _t(f) {
|
|
|
10447
10447
|
"Not enough entropy. Minimum is: " + this.minEntropy + " bits"
|
|
10448
10448
|
), this._init(e, t, r);
|
|
10449
10449
|
}
|
|
10450
|
-
var
|
|
10450
|
+
var rc = _t;
|
|
10451
10451
|
_t.prototype._init = function(e, t, r) {
|
|
10452
10452
|
var a = e.concat(t).concat(r);
|
|
10453
10453
|
this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8);
|
|
@@ -10456,7 +10456,7 @@ _t.prototype._init = function(e, t, r) {
|
|
|
10456
10456
|
this._update(a), this._reseed = 1, this.reseedInterval = 281474976710656;
|
|
10457
10457
|
};
|
|
10458
10458
|
_t.prototype._hmac = function() {
|
|
10459
|
-
return new
|
|
10459
|
+
return new tc.hmac(this.hash, this.K);
|
|
10460
10460
|
};
|
|
10461
10461
|
_t.prototype._update = function(e) {
|
|
10462
10462
|
var t = this._hmac().update(this.V).update([0]);
|
|
@@ -10477,11 +10477,11 @@ _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
|
|
10480
|
+
var fc = pt, ic = Y0, kf = ic.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
|
}
|
|
10484
|
-
var
|
|
10484
|
+
var nc = T0;
|
|
10485
10485
|
T0.fromPublic = function(e, t, r) {
|
|
10486
10486
|
return t instanceof T0 ? t : new T0(e, {
|
|
10487
10487
|
pub: t,
|
|
@@ -10505,7 +10505,7 @@ T0.prototype.getPrivate = function(e) {
|
|
|
10505
10505
|
return e === "hex" ? this.priv.toString(16, 2) : this.priv;
|
|
10506
10506
|
};
|
|
10507
10507
|
T0.prototype._importPrivate = function(e, t) {
|
|
10508
|
-
this.priv = new
|
|
10508
|
+
this.priv = new fc(e, t || 16), this.priv = this.priv.umod(this.ec.curve.n);
|
|
10509
10509
|
};
|
|
10510
10510
|
T0.prototype._importPublic = function(e, t) {
|
|
10511
10511
|
if (e.x || e.y) {
|
|
@@ -10526,14 +10526,14 @@ T0.prototype.verify = function(e, t) {
|
|
|
10526
10526
|
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
|
-
var gr = pt, jf = Y0,
|
|
10529
|
+
var gr = pt, jf = Y0, ac = jf.assert;
|
|
10530
10530
|
function Rr(f, e) {
|
|
10531
10531
|
if (f instanceof Rr)
|
|
10532
10532
|
return f;
|
|
10533
|
-
this._importDER(f, e) || (
|
|
10533
|
+
this._importDER(f, e) || (ac(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
|
|
10536
|
-
function
|
|
10535
|
+
var sc = Rr;
|
|
10536
|
+
function oc() {
|
|
10537
10537
|
this.place = 0;
|
|
10538
10538
|
}
|
|
10539
10539
|
function Ef(f, e) {
|
|
@@ -10554,7 +10554,7 @@ function Xi(f) {
|
|
|
10554
10554
|
}
|
|
10555
10555
|
Rr.prototype._importDER = function(e, t) {
|
|
10556
10556
|
e = jf.toArray(e, t);
|
|
10557
|
-
var r = new
|
|
10557
|
+
var r = new oc();
|
|
10558
10558
|
if (e[r.place++] !== 48)
|
|
10559
10559
|
return !1;
|
|
10560
10560
|
var a = Ef(e, r);
|
|
@@ -10601,7 +10601,7 @@ Rr.prototype.toDER = function(e) {
|
|
|
10601
10601
|
var i = a.concat(r), y = [48];
|
|
10602
10602
|
return wf(y, i.length), y = y.concat(i), jf.encode(y, e);
|
|
10603
10603
|
};
|
|
10604
|
-
var St = pt, $n =
|
|
10604
|
+
var St = pt, $n = rc, cc = Y0, Bf = Sr, dc = An, Wn = cc.assert, Vf = nc, kr = sc;
|
|
10605
10605
|
function V0(f) {
|
|
10606
10606
|
if (!(this instanceof V0))
|
|
10607
10607
|
return new V0(f);
|
|
@@ -10610,7 +10610,7 @@ function V0(f) {
|
|
|
10610
10610
|
"Unknown curve " + f
|
|
10611
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
|
-
var
|
|
10613
|
+
var hc = V0;
|
|
10614
10614
|
V0.prototype.keyPair = function(e) {
|
|
10615
10615
|
return new Vf(this, e);
|
|
10616
10616
|
};
|
|
@@ -10626,7 +10626,7 @@ V0.prototype.genKeyPair = function(e) {
|
|
|
10626
10626
|
hash: this.hash,
|
|
10627
10627
|
pers: e.pers,
|
|
10628
10628
|
persEnc: e.persEnc || "utf8",
|
|
10629
|
-
entropy: e.entropy ||
|
|
10629
|
+
entropy: e.entropy || dc(this.hash.hmacStrength),
|
|
10630
10630
|
entropyEnc: e.entropy && e.entropyEnc || "utf8",
|
|
10631
10631
|
nonce: this.n.toArray()
|
|
10632
10632
|
}), r = this.n.byteLength(), a = this.n.sub(new St(2)); ; ) {
|
|
@@ -10740,12 +10740,12 @@ w0.prototype.getSecret = function(e) {
|
|
|
10740
10740
|
w0.prototype.getPublic = function(e) {
|
|
10741
10741
|
return nr.encode(this.pubBytes(), e);
|
|
10742
10742
|
};
|
|
10743
|
-
var
|
|
10743
|
+
var uc = w0, lc = pt, Pr = Y0, xc = Pr.assert, Ir = Pr.cachedProperty, vc = Pr.parseBytes;
|
|
10744
10744
|
function Tt(f, e) {
|
|
10745
|
-
this.eddsa = f, typeof e != "object" && (e =
|
|
10745
|
+
this.eddsa = f, typeof e != "object" && (e = vc(e)), Array.isArray(e) && (e = {
|
|
10746
10746
|
R: e.slice(0, f.encodingLength),
|
|
10747
10747
|
S: e.slice(f.encodingLength)
|
|
10748
|
-
}),
|
|
10748
|
+
}), xc(e.R && e.S, "Signature without R or S"), f.isPoint(e.R) && (this._R = e.R), e.S instanceof lc && (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());
|
|
@@ -10765,13 +10765,13 @@ Tt.prototype.toBytes = function() {
|
|
|
10765
10765
|
Tt.prototype.toHex = function() {
|
|
10766
10766
|
return Pr.encode(this.toBytes(), "hex").toUpperCase();
|
|
10767
10767
|
};
|
|
10768
|
-
var
|
|
10768
|
+
var bc = Tt, pc = Fr, yc = Sr, Ht = Y0, gc = Ht.assert, Yn = Ht.parseBytes, jn = uc, Gi = bc;
|
|
10769
10769
|
function U0(f) {
|
|
10770
|
-
if (
|
|
10770
|
+
if (gc(f === "ed25519", "only tested with ed25519 so far"), !(this instanceof U0))
|
|
10771
10771
|
return new U0(f);
|
|
10772
|
-
f =
|
|
10772
|
+
f = yc[f].curve, this.curve = f, this.g = f.g, this.g.precompute(f.n.bitLength() + 1), this.pointClass = f.point().constructor, this.encodingLength = Math.ceil(f.n.bitLength() / 8), this.hash = pc.sha512;
|
|
10773
10773
|
}
|
|
10774
|
-
var
|
|
10774
|
+
var mc = U0;
|
|
10775
10775
|
U0.prototype.sign = function(e, t) {
|
|
10776
10776
|
e = Yn(e);
|
|
10777
10777
|
var r = this.keyFromSecret(t), a = this.hashInt(r.messagePrefix(), e), i = this.g.mul(a), y = this.encodePoint(i), x = this.hashInt(y, r.pubBytes(), e).mul(r.priv()), u = a.add(x).umod(this.curve.n);
|
|
@@ -10816,7 +10816,7 @@ U0.prototype.isPoint = function(e) {
|
|
|
10816
10816
|
};
|
|
10817
10817
|
(function(f) {
|
|
10818
10818
|
var e = f;
|
|
10819
|
-
e.version =
|
|
10819
|
+
e.version = ps.version, e.utils = Y0, e.rand = An, e.curve = Kf, e.curves = Sr, e.ec = hc, e.eddsa = mc;
|
|
10820
10820
|
})(mn);
|
|
10821
10821
|
var Vn = { exports: {} };
|
|
10822
10822
|
(function(f) {
|
|
@@ -11554,9 +11554,9 @@ var Vn = { exports: {} };
|
|
|
11554
11554
|
}();
|
|
11555
11555
|
})(f.exports ? f.exports : self.nacl = self.nacl || {});
|
|
11556
11556
|
})(Vn);
|
|
11557
|
-
var
|
|
11558
|
-
const Jt = /* @__PURE__ */ cn(
|
|
11559
|
-
class
|
|
11557
|
+
var _c = Vn.exports;
|
|
11558
|
+
const Jt = /* @__PURE__ */ cn(_c);
|
|
11559
|
+
class Ac {
|
|
11560
11560
|
string(e) {
|
|
11561
11561
|
let t;
|
|
11562
11562
|
return typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), this.stringToUnicode(t.replace(/\//g, "\\/"));
|
|
@@ -11588,8 +11588,8 @@ class _c {
|
|
|
11588
11588
|
return typeof e != "string" ? !1 : /^[0-9a-fA-F]+$/.test(e) && e.length % 2 === 0;
|
|
11589
11589
|
}
|
|
11590
11590
|
}
|
|
11591
|
-
const z0 = new
|
|
11592
|
-
class
|
|
11591
|
+
const z0 = new Ac();
|
|
11592
|
+
class Ec {
|
|
11593
11593
|
string(e) {
|
|
11594
11594
|
return z0.string(e);
|
|
11595
11595
|
}
|
|
@@ -11613,8 +11613,8 @@ class Ac {
|
|
|
11613
11613
|
return z0.isHex(e);
|
|
11614
11614
|
}
|
|
11615
11615
|
}
|
|
11616
|
-
const rr = new
|
|
11617
|
-
class
|
|
11616
|
+
const rr = new Ec();
|
|
11617
|
+
class wc {
|
|
11618
11618
|
constructor() {
|
|
11619
11619
|
wt(this, "KEY_SIZE");
|
|
11620
11620
|
wt(this, "SIGNATURE_SIZE");
|
|
@@ -11650,8 +11650,8 @@ class Ec {
|
|
|
11650
11650
|
);
|
|
11651
11651
|
}
|
|
11652
11652
|
}
|
|
11653
|
-
const mr = new
|
|
11654
|
-
class
|
|
11653
|
+
const mr = new wc();
|
|
11654
|
+
class Bc {
|
|
11655
11655
|
constructor() {
|
|
11656
11656
|
wt(this, "ec");
|
|
11657
11657
|
this.ec = new mn.ec("secp256k1");
|
|
@@ -11685,7 +11685,7 @@ class wc {
|
|
|
11685
11685
|
return K0.lib.WordArray.random(e).toString(K0.enc.Hex);
|
|
11686
11686
|
}
|
|
11687
11687
|
}
|
|
11688
|
-
const Xf = new
|
|
11688
|
+
const Xf = new Bc(), dt = /* @__PURE__ */ Object.create(null);
|
|
11689
11689
|
dt.open = "0";
|
|
11690
11690
|
dt.close = "1";
|
|
11691
11691
|
dt.ping = "2";
|
|
@@ -11708,7 +11708,7 @@ 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
11710
|
let Cf;
|
|
11711
|
-
function
|
|
11711
|
+
function Cc(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)))
|
|
@@ -11720,14 +11720,14 @@ function Bc(f, e) {
|
|
|
11720
11720
|
const en = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", fr = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
11721
11721
|
for (let f = 0; f < en.length; f++)
|
|
11722
11722
|
fr[en.charCodeAt(f)] = f;
|
|
11723
|
-
const
|
|
11723
|
+
const Mc = (f) => {
|
|
11724
11724
|
let e = f.length * 0.75, t = f.length, r, a = 0, i, y, x, u;
|
|
11725
11725
|
f[f.length - 1] === "=" && (e--, f[f.length - 2] === "=" && e--);
|
|
11726
11726
|
const o = new ArrayBuffer(e), c = new Uint8Array(o);
|
|
11727
11727
|
for (r = 0; r < t; r += 4)
|
|
11728
11728
|
i = fr[f.charCodeAt(r)], y = fr[f.charCodeAt(r + 1)], x = fr[f.charCodeAt(r + 2)], u = fr[f.charCodeAt(r + 3)], c[a++] = i << 2 | y >> 4, c[a++] = (y & 15) << 4 | x >> 2, c[a++] = (x & 3) << 6 | u & 63;
|
|
11729
11729
|
return o;
|
|
11730
|
-
},
|
|
11730
|
+
}, Sc = typeof ArrayBuffer == "function", Gf = (f, e) => {
|
|
11731
11731
|
if (typeof f != "string")
|
|
11732
11732
|
return {
|
|
11733
11733
|
type: "message",
|
|
@@ -11736,16 +11736,16 @@ const Cc = (f) => {
|
|
|
11736
11736
|
const t = f.charAt(0);
|
|
11737
11737
|
return t === "b" ? {
|
|
11738
11738
|
type: "message",
|
|
11739
|
-
data:
|
|
11739
|
+
data: Fc(f.substring(1), e)
|
|
11740
11740
|
} : ur[t] ? f.length > 1 ? {
|
|
11741
11741
|
type: ur[t],
|
|
11742
11742
|
data: f.substring(1)
|
|
11743
11743
|
} : {
|
|
11744
11744
|
type: ur[t]
|
|
11745
11745
|
} : Pf;
|
|
11746
|
-
},
|
|
11747
|
-
if (
|
|
11748
|
-
const t =
|
|
11746
|
+
}, Fc = (f, e) => {
|
|
11747
|
+
if (Sc) {
|
|
11748
|
+
const t = Mc(f);
|
|
11749
11749
|
return Qn(t, e);
|
|
11750
11750
|
} else
|
|
11751
11751
|
return { base64: !0, data: f };
|
|
@@ -11757,7 +11757,7 @@ const Cc = (f) => {
|
|
|
11757
11757
|
default:
|
|
11758
11758
|
return f instanceof ArrayBuffer ? f : f.buffer;
|
|
11759
11759
|
}
|
|
11760
|
-
}, Jn = "",
|
|
11760
|
+
}, Jn = "", Dc = (f, e) => {
|
|
11761
11761
|
const t = f.length, r = new Array(t);
|
|
11762
11762
|
let a = 0;
|
|
11763
11763
|
f.forEach((i, y) => {
|
|
@@ -11765,7 +11765,7 @@ const Cc = (f) => {
|
|
|
11765
11765
|
r[y] = x, ++a === t && e(r.join(Jn));
|
|
11766
11766
|
});
|
|
11767
11767
|
});
|
|
11768
|
-
},
|
|
11768
|
+
}, Rc = (f, e) => {
|
|
11769
11769
|
const t = f.split(Jn), r = [];
|
|
11770
11770
|
for (let a = 0; a < t.length; a++) {
|
|
11771
11771
|
const i = Gf(t[a], e);
|
|
@@ -11774,10 +11774,10 @@ const Cc = (f) => {
|
|
|
11774
11774
|
}
|
|
11775
11775
|
return r;
|
|
11776
11776
|
};
|
|
11777
|
-
function
|
|
11777
|
+
function kc() {
|
|
11778
11778
|
return new TransformStream({
|
|
11779
11779
|
transform(f, e) {
|
|
11780
|
-
|
|
11780
|
+
Cc(f, (t) => {
|
|
11781
11781
|
const r = t.length;
|
|
11782
11782
|
let a;
|
|
11783
11783
|
if (r < 126)
|
|
@@ -11809,7 +11809,7 @@ function cr(f, e) {
|
|
|
11809
11809
|
t[a] = f[0][r++], r === f[0].length && (f.shift(), r = 0);
|
|
11810
11810
|
return f.length && r < f[0].length && (f[0] = f[0].slice(r)), t;
|
|
11811
11811
|
}
|
|
11812
|
-
function
|
|
11812
|
+
function Pc(f, e) {
|
|
11813
11813
|
Mf || (Mf = new TextDecoder());
|
|
11814
11814
|
const t = [];
|
|
11815
11815
|
let r = 0, a = -1, i = !1;
|
|
@@ -11852,9 +11852,9 @@ function kc(f, e) {
|
|
|
11852
11852
|
const ea = 4;
|
|
11853
11853
|
function A0(f) {
|
|
11854
11854
|
if (f)
|
|
11855
|
-
return
|
|
11855
|
+
return Ic(f);
|
|
11856
11856
|
}
|
|
11857
|
-
function
|
|
11857
|
+
function Ic(f) {
|
|
11858
11858
|
for (var e in A0.prototype)
|
|
11859
11859
|
f[e] = A0.prototype[e];
|
|
11860
11860
|
return f;
|
|
@@ -11905,27 +11905,27 @@ const j0 = typeof self < "u" ? self : typeof window < "u" ? window : Function("r
|
|
|
11905
11905
|
function ta(f, ...e) {
|
|
11906
11906
|
return e.reduce((t, r) => (f.hasOwnProperty(r) && (t[r] = f[r]), t), {});
|
|
11907
11907
|
}
|
|
11908
|
-
const
|
|
11908
|
+
const Tc = j0.setTimeout, Oc = j0.clearTimeout;
|
|
11909
11909
|
function Tr(f, e) {
|
|
11910
|
-
e.useNativeTimers ? (f.setTimeoutFn =
|
|
11911
|
-
}
|
|
11912
|
-
const Oc = 1.33;
|
|
11913
|
-
function zc(f) {
|
|
11914
|
-
return typeof f == "string" ? Nc(f) : Math.ceil((f.byteLength || f.size) * Oc);
|
|
11910
|
+
e.useNativeTimers ? (f.setTimeoutFn = Tc.bind(j0), f.clearTimeoutFn = Oc.bind(j0)) : (f.setTimeoutFn = j0.setTimeout.bind(j0), f.clearTimeoutFn = j0.clearTimeout.bind(j0));
|
|
11915
11911
|
}
|
|
11912
|
+
const zc = 1.33;
|
|
11916
11913
|
function Nc(f) {
|
|
11914
|
+
return typeof f == "string" ? qc(f) : Math.ceil((f.byteLength || f.size) * zc);
|
|
11915
|
+
}
|
|
11916
|
+
function qc(f) {
|
|
11917
11917
|
let e = 0, t = 0;
|
|
11918
11918
|
for (let r = 0, a = f.length; r < a; r++)
|
|
11919
11919
|
e = f.charCodeAt(r), e < 128 ? t += 1 : e < 2048 ? t += 2 : e < 55296 || e >= 57344 ? t += 3 : (r++, t += 4);
|
|
11920
11920
|
return t;
|
|
11921
11921
|
}
|
|
11922
|
-
function
|
|
11922
|
+
function Lc(f) {
|
|
11923
11923
|
let e = "";
|
|
11924
11924
|
for (let t in f)
|
|
11925
11925
|
f.hasOwnProperty(t) && (e.length && (e += "&"), e += encodeURIComponent(t) + "=" + encodeURIComponent(f[t]));
|
|
11926
11926
|
return e;
|
|
11927
11927
|
}
|
|
11928
|
-
function
|
|
11928
|
+
function Hc(f) {
|
|
11929
11929
|
let e = {}, t = f.split("&");
|
|
11930
11930
|
for (let r = 0, a = t.length; r < a; r++) {
|
|
11931
11931
|
let i = t[r].split("=");
|
|
@@ -11933,7 +11933,7 @@ function Lc(f) {
|
|
|
11933
11933
|
}
|
|
11934
11934
|
return e;
|
|
11935
11935
|
}
|
|
11936
|
-
class
|
|
11936
|
+
class Uc extends Error {
|
|
11937
11937
|
constructor(e, t, r) {
|
|
11938
11938
|
super(e), this.description = t, this.context = r, this.type = "TransportError";
|
|
11939
11939
|
}
|
|
@@ -11958,7 +11958,7 @@ class Qf extends A0 {
|
|
|
11958
11958
|
* @protected
|
|
11959
11959
|
*/
|
|
11960
11960
|
onError(e, t, r) {
|
|
11961
|
-
return super.emitReserved("error", new
|
|
11961
|
+
return super.emitReserved("error", new Uc(e, t, r)), this;
|
|
11962
11962
|
}
|
|
11963
11963
|
/**
|
|
11964
11964
|
* Opens the transport.
|
|
@@ -12032,11 +12032,11 @@ class Qf extends A0 {
|
|
|
12032
12032
|
return this.opts.port && (this.opts.secure && +(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
|
|
12033
12033
|
}
|
|
12034
12034
|
_query(e) {
|
|
12035
|
-
const t =
|
|
12035
|
+
const t = Lc(e);
|
|
12036
12036
|
return t.length ? "?" + t : "";
|
|
12037
12037
|
}
|
|
12038
12038
|
}
|
|
12039
|
-
const ra = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), If = 64,
|
|
12039
|
+
const ra = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), If = 64, $c = {};
|
|
12040
12040
|
let tn = 0, dr = 0, rn;
|
|
12041
12041
|
function fn(f) {
|
|
12042
12042
|
let e = "";
|
|
@@ -12050,17 +12050,17 @@ function fa() {
|
|
|
12050
12050
|
return f !== rn ? (tn = 0, rn = f) : f + "." + fn(tn++);
|
|
12051
12051
|
}
|
|
12052
12052
|
for (; dr < If; dr++)
|
|
12053
|
-
|
|
12053
|
+
$c[ra[dr]] = dr;
|
|
12054
12054
|
let ia = !1;
|
|
12055
12055
|
try {
|
|
12056
12056
|
ia = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
|
|
12057
12057
|
} catch {
|
|
12058
12058
|
}
|
|
12059
|
-
const
|
|
12059
|
+
const Wc = ia;
|
|
12060
12060
|
function na(f) {
|
|
12061
12061
|
const e = f.xdomain;
|
|
12062
12062
|
try {
|
|
12063
|
-
if (typeof XMLHttpRequest < "u" && (!e ||
|
|
12063
|
+
if (typeof XMLHttpRequest < "u" && (!e || Wc))
|
|
12064
12064
|
return new XMLHttpRequest();
|
|
12065
12065
|
} catch {
|
|
12066
12066
|
}
|
|
@@ -12070,14 +12070,14 @@ function na(f) {
|
|
|
12070
12070
|
} catch {
|
|
12071
12071
|
}
|
|
12072
12072
|
}
|
|
12073
|
-
function
|
|
12073
|
+
function Kc() {
|
|
12074
12074
|
}
|
|
12075
|
-
const
|
|
12075
|
+
const Yc = function() {
|
|
12076
12076
|
return new na({
|
|
12077
12077
|
xdomain: !1
|
|
12078
12078
|
}).responseType != null;
|
|
12079
12079
|
}();
|
|
12080
|
-
class
|
|
12080
|
+
class jc extends Qf {
|
|
12081
12081
|
/**
|
|
12082
12082
|
* XHR Polling constructor.
|
|
12083
12083
|
*
|
|
@@ -12091,7 +12091,7 @@ class Yc extends Qf {
|
|
|
12091
12091
|
a || (a = r ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || a !== e.port;
|
|
12092
12092
|
}
|
|
12093
12093
|
const t = e && e.forceBase64;
|
|
12094
|
-
this.supportsBinary =
|
|
12094
|
+
this.supportsBinary = Yc && !t, this.opts.withCredentials && (this.cookieJar = void 0);
|
|
12095
12095
|
}
|
|
12096
12096
|
get name() {
|
|
12097
12097
|
return "polling";
|
|
@@ -12145,7 +12145,7 @@ class Yc extends Qf {
|
|
|
12145
12145
|
return this.onClose({ description: "transport closed by the server" }), !1;
|
|
12146
12146
|
this.onPacket(r);
|
|
12147
12147
|
};
|
|
12148
|
-
|
|
12148
|
+
Rc(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
|
|
12149
12149
|
}
|
|
12150
12150
|
/**
|
|
12151
12151
|
* For polling, send a close packet.
|
|
@@ -12165,7 +12165,7 @@ class Yc extends Qf {
|
|
|
12165
12165
|
* @protected
|
|
12166
12166
|
*/
|
|
12167
12167
|
write(e) {
|
|
12168
|
-
this.writable = !1,
|
|
12168
|
+
this.writable = !1, Dc(e, (t) => {
|
|
12169
12169
|
this.doWrite(t, () => {
|
|
12170
12170
|
this.writable = !0, this.emitReserved("drain");
|
|
12171
12171
|
});
|
|
@@ -12285,7 +12285,7 @@ class at extends A0 {
|
|
|
12285
12285
|
*/
|
|
12286
12286
|
cleanup(e) {
|
|
12287
12287
|
if (!(typeof this.xhr > "u" || this.xhr === null)) {
|
|
12288
|
-
if (this.xhr.onreadystatechange =
|
|
12288
|
+
if (this.xhr.onreadystatechange = Kc, e)
|
|
12289
12289
|
try {
|
|
12290
12290
|
this.xhr.abort();
|
|
12291
12291
|
} catch {
|
|
@@ -12325,8 +12325,8 @@ function nn() {
|
|
|
12325
12325
|
for (let f in at.requests)
|
|
12326
12326
|
at.requests.hasOwnProperty(f) && at.requests[f].abort();
|
|
12327
12327
|
}
|
|
12328
|
-
const Jf = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0), hr = j0.WebSocket || j0.MozWebSocket, an = !0,
|
|
12329
|
-
class
|
|
12328
|
+
const Jf = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0), hr = j0.WebSocket || j0.MozWebSocket, an = !0, Vc = "arraybuffer", sn = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
12329
|
+
class Xc extends Qf {
|
|
12330
12330
|
/**
|
|
12331
12331
|
* WebSocket transport constructor.
|
|
12332
12332
|
*
|
|
@@ -12402,7 +12402,7 @@ class Vc extends Qf {
|
|
|
12402
12402
|
return !!hr;
|
|
12403
12403
|
}
|
|
12404
12404
|
}
|
|
12405
|
-
class
|
|
12405
|
+
class Zc extends Qf {
|
|
12406
12406
|
get name() {
|
|
12407
12407
|
return "webtransport";
|
|
12408
12408
|
}
|
|
@@ -12413,7 +12413,7 @@ class Xc extends Qf {
|
|
|
12413
12413
|
this.onError("webtransport error", e);
|
|
12414
12414
|
}), this.transport.ready.then(() => {
|
|
12415
12415
|
this.transport.createBidirectionalStream().then((e) => {
|
|
12416
|
-
const t =
|
|
12416
|
+
const t = Pc(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), a = kc();
|
|
12417
12417
|
a.readable.pipeTo(e.writable), this.writer = a.writable.getWriter();
|
|
12418
12418
|
const i = () => {
|
|
12419
12419
|
r.read().then(({ done: x, value: u }) => {
|
|
@@ -12443,11 +12443,11 @@ class Xc extends Qf {
|
|
|
12443
12443
|
(e = this.transport) === null || e === void 0 || e.close();
|
|
12444
12444
|
}
|
|
12445
12445
|
}
|
|
12446
|
-
const
|
|
12447
|
-
websocket:
|
|
12448
|
-
webtransport:
|
|
12449
|
-
polling:
|
|
12450
|
-
},
|
|
12446
|
+
const Gc = {
|
|
12447
|
+
websocket: Xc,
|
|
12448
|
+
webtransport: Zc,
|
|
12449
|
+
polling: jc
|
|
12450
|
+
}, Qc = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Jc = [
|
|
12451
12451
|
"source",
|
|
12452
12452
|
"protocol",
|
|
12453
12453
|
"authority",
|
|
@@ -12468,16 +12468,16 @@ function Tf(f) {
|
|
|
12468
12468
|
throw "URI too long";
|
|
12469
12469
|
const e = f, t = f.indexOf("["), r = f.indexOf("]");
|
|
12470
12470
|
t != -1 && r != -1 && (f = f.substring(0, t) + f.substring(t, r).replace(/:/g, ";") + f.substring(r, f.length));
|
|
12471
|
-
let a =
|
|
12471
|
+
let a = Qc.exec(f || ""), i = {}, y = 14;
|
|
12472
12472
|
for (; y--; )
|
|
12473
|
-
i[
|
|
12474
|
-
return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames =
|
|
12473
|
+
i[Jc[y]] = a[y] || "";
|
|
12474
|
+
return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = e1(i, i.path), i.queryKey = t1(i, i.query), i;
|
|
12475
12475
|
}
|
|
12476
|
-
function
|
|
12476
|
+
function e1(f, e) {
|
|
12477
12477
|
const t = /\/{2,9}/g, r = e.replace(t, "/").split("/");
|
|
12478
12478
|
return (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), e.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
|
|
12479
12479
|
}
|
|
12480
|
-
function
|
|
12480
|
+
function t1(f, e) {
|
|
12481
12481
|
const t = {};
|
|
12482
12482
|
return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(r, a, i) {
|
|
12483
12483
|
a && (t[a] = i);
|
|
@@ -12491,7 +12491,7 @@ let aa = class Ot extends A0 {
|
|
|
12491
12491
|
* @param {Object} opts - options
|
|
12492
12492
|
*/
|
|
12493
12493
|
constructor(e, t = {}) {
|
|
12494
|
-
super(), this.binaryType =
|
|
12494
|
+
super(), this.binaryType = Vc, 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"
|
|
@@ -12509,7 +12509,7 @@ let aa = class Ot extends A0 {
|
|
|
12509
12509
|
},
|
|
12510
12510
|
transportOptions: {},
|
|
12511
12511
|
closeOnBeforeunload: !1
|
|
12512
|
-
}, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
|
12512
|
+
}, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Hc(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
|
|
12513
12513
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
12514
12514
|
}, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
|
|
12515
12515
|
this.onClose("transport close", {
|
|
@@ -12534,7 +12534,7 @@ let aa = class Ot extends A0 {
|
|
|
12534
12534
|
secure: this.secure,
|
|
12535
12535
|
port: this.port
|
|
12536
12536
|
}, this.opts.transportOptions[e]);
|
|
12537
|
-
return new
|
|
12537
|
+
return new Gc[e](r);
|
|
12538
12538
|
}
|
|
12539
12539
|
/**
|
|
12540
12540
|
* Initializes transport to use and starts probe.
|
|
@@ -12702,7 +12702,7 @@ let aa = class Ot extends A0 {
|
|
|
12702
12702
|
let t = 1;
|
|
12703
12703
|
for (let r = 0; r < this.writeBuffer.length; r++) {
|
|
12704
12704
|
const a = this.writeBuffer[r].data;
|
|
12705
|
-
if (a && (t +=
|
|
12705
|
+
if (a && (t += Nc(a)), r > 0 && t > this.maxPayload)
|
|
12706
12706
|
return this.writeBuffer.slice(0, r);
|
|
12707
12707
|
t += 2;
|
|
12708
12708
|
}
|
|
@@ -12789,15 +12789,15 @@ let aa = class Ot extends A0 {
|
|
|
12789
12789
|
}
|
|
12790
12790
|
};
|
|
12791
12791
|
aa.protocol = ea;
|
|
12792
|
-
function
|
|
12792
|
+
function r1(f, e = "", t) {
|
|
12793
12793
|
let r = f;
|
|
12794
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
|
}
|
|
12798
|
-
const
|
|
12798
|
+
const f1 = typeof ArrayBuffer == "function", i1 = (f) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(f) : f.buffer instanceof ArrayBuffer, sa = Object.prototype.toString, n1 = typeof Blob == "function" || typeof Blob < "u" && sa.call(Blob) === "[object BlobConstructor]", a1 = typeof File == "function" || typeof File < "u" && sa.call(File) === "[object FileConstructor]";
|
|
12799
12799
|
function ei(f) {
|
|
12800
|
-
return
|
|
12800
|
+
return f1 && (f instanceof ArrayBuffer || i1(f)) || n1 && f instanceof Blob || a1 && f instanceof File;
|
|
12801
12801
|
}
|
|
12802
12802
|
function lr(f, e) {
|
|
12803
12803
|
if (!f || typeof f != "object")
|
|
@@ -12817,7 +12817,7 @@ function lr(f, e) {
|
|
|
12817
12817
|
return !0;
|
|
12818
12818
|
return !1;
|
|
12819
12819
|
}
|
|
12820
|
-
function
|
|
12820
|
+
function s1(f) {
|
|
12821
12821
|
const e = [], t = f.data, r = f;
|
|
12822
12822
|
return r.data = Of(t, e), r.attachments = e.length, { packet: r, buffers: e };
|
|
12823
12823
|
}
|
|
@@ -12840,7 +12840,7 @@ function Of(f, e) {
|
|
|
12840
12840
|
}
|
|
12841
12841
|
return f;
|
|
12842
12842
|
}
|
|
12843
|
-
function
|
|
12843
|
+
function o1(f, e) {
|
|
12844
12844
|
return f.data = zf(f.data, e), delete f.attachments, f;
|
|
12845
12845
|
}
|
|
12846
12846
|
function zf(f, e) {
|
|
@@ -12858,7 +12858,7 @@ function zf(f, e) {
|
|
|
12858
12858
|
Object.prototype.hasOwnProperty.call(f, t) && (f[t] = zf(f[t], e));
|
|
12859
12859
|
return f;
|
|
12860
12860
|
}
|
|
12861
|
-
const
|
|
12861
|
+
const c1 = [
|
|
12862
12862
|
"connect",
|
|
12863
12863
|
"connect_error",
|
|
12864
12864
|
"disconnect",
|
|
@@ -12866,12 +12866,12 @@ const o1 = [
|
|
|
12866
12866
|
"newListener",
|
|
12867
12867
|
"removeListener"
|
|
12868
12868
|
// used by the Node.js EventEmitter
|
|
12869
|
-
],
|
|
12869
|
+
], d1 = 5;
|
|
12870
12870
|
var Ue;
|
|
12871
12871
|
(function(f) {
|
|
12872
12872
|
f[f.CONNECT = 0] = "CONNECT", f[f.DISCONNECT = 1] = "DISCONNECT", f[f.EVENT = 2] = "EVENT", f[f.ACK = 3] = "ACK", f[f.CONNECT_ERROR = 4] = "CONNECT_ERROR", f[f.BINARY_EVENT = 5] = "BINARY_EVENT", f[f.BINARY_ACK = 6] = "BINARY_ACK";
|
|
12873
12873
|
})(Ue || (Ue = {}));
|
|
12874
|
-
class
|
|
12874
|
+
class h1 {
|
|
12875
12875
|
/**
|
|
12876
12876
|
* Encoder constructor
|
|
12877
12877
|
*
|
|
@@ -12907,7 +12907,7 @@ class d1 {
|
|
|
12907
12907
|
* a list of buffers.
|
|
12908
12908
|
*/
|
|
12909
12909
|
encodeAsBinary(e) {
|
|
12910
|
-
const t =
|
|
12910
|
+
const t = s1(e), r = this.encodeAsString(t.packet), a = t.buffers;
|
|
12911
12911
|
return a.unshift(r), a;
|
|
12912
12912
|
}
|
|
12913
12913
|
}
|
|
@@ -12935,7 +12935,7 @@ class ti extends A0 {
|
|
|
12935
12935
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
12936
12936
|
t = this.decodeString(e);
|
|
12937
12937
|
const r = t.type === Ue.BINARY_EVENT;
|
|
12938
|
-
r || t.type === Ue.BINARY_ACK ? (t.type = r ? Ue.EVENT : Ue.ACK, this.reconstructor = new
|
|
12938
|
+
r || t.type === Ue.BINARY_ACK ? (t.type = r ? Ue.EVENT : Ue.ACK, this.reconstructor = new u1(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
|
|
12939
12939
|
} else if (ei(e) || e.base64)
|
|
12940
12940
|
if (this.reconstructor)
|
|
12941
12941
|
t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
|
|
@@ -13013,7 +13013,7 @@ class ti extends A0 {
|
|
|
13013
13013
|
return typeof t == "string" || on(t);
|
|
13014
13014
|
case Ue.EVENT:
|
|
13015
13015
|
case Ue.BINARY_EVENT:
|
|
13016
|
-
return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" &&
|
|
13016
|
+
return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && c1.indexOf(t[0]) === -1);
|
|
13017
13017
|
case Ue.ACK:
|
|
13018
13018
|
case Ue.BINARY_ACK:
|
|
13019
13019
|
return Array.isArray(t);
|
|
@@ -13026,7 +13026,7 @@ class ti extends A0 {
|
|
|
13026
13026
|
this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
|
|
13027
13027
|
}
|
|
13028
13028
|
}
|
|
13029
|
-
class
|
|
13029
|
+
class u1 {
|
|
13030
13030
|
constructor(e) {
|
|
13031
13031
|
this.packet = e, this.buffers = [], this.reconPack = e;
|
|
13032
13032
|
}
|
|
@@ -13040,7 +13040,7 @@ class h1 {
|
|
|
13040
13040
|
*/
|
|
13041
13041
|
takeBinaryData(e) {
|
|
13042
13042
|
if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
|
|
13043
|
-
const t =
|
|
13043
|
+
const t = o1(this.reconPack, this.buffers);
|
|
13044
13044
|
return this.finishedReconstruction(), t;
|
|
13045
13045
|
}
|
|
13046
13046
|
return null;
|
|
@@ -13052,21 +13052,21 @@ class h1 {
|
|
|
13052
13052
|
this.reconPack = null, this.buffers = [];
|
|
13053
13053
|
}
|
|
13054
13054
|
}
|
|
13055
|
-
const
|
|
13055
|
+
const l1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13056
13056
|
__proto__: null,
|
|
13057
13057
|
Decoder: ti,
|
|
13058
|
-
Encoder:
|
|
13058
|
+
Encoder: h1,
|
|
13059
13059
|
get PacketType() {
|
|
13060
13060
|
return Ue;
|
|
13061
13061
|
},
|
|
13062
|
-
protocol:
|
|
13062
|
+
protocol: d1
|
|
13063
13063
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
13064
13064
|
function et(f, e, t) {
|
|
13065
13065
|
return f.on(e, t), function() {
|
|
13066
13066
|
f.off(e, t);
|
|
13067
13067
|
};
|
|
13068
13068
|
}
|
|
13069
|
-
const
|
|
13069
|
+
const x1 = Object.freeze({
|
|
13070
13070
|
connect: 1,
|
|
13071
13071
|
connect_error: 1,
|
|
13072
13072
|
disconnect: 1,
|
|
@@ -13190,7 +13190,7 @@ class oa extends A0 {
|
|
|
13190
13190
|
* @return self
|
|
13191
13191
|
*/
|
|
13192
13192
|
emit(e, ...t) {
|
|
13193
|
-
if (
|
|
13193
|
+
if (x1.hasOwnProperty(e))
|
|
13194
13194
|
throw new Error('"' + e.toString() + '" is a reserved event name');
|
|
13195
13195
|
if (t.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
|
|
13196
13196
|
return this._addToQueue(t), this;
|
|
@@ -13697,7 +13697,7 @@ class Nf extends A0 {
|
|
|
13697
13697
|
max: this.reconnectionDelayMax(),
|
|
13698
13698
|
jitter: this.randomizationFactor()
|
|
13699
13699
|
}), this.timeout(t.timeout == null ? 2e4 : t.timeout), this._readyState = "closed", this.uri = e;
|
|
13700
|
-
const a = t.parser ||
|
|
13700
|
+
const a = t.parser || l1;
|
|
13701
13701
|
this.encoder = new a.Encoder(), this.decoder = new a.Decoder(), this._autoConnect = t.autoConnect !== !1, this._autoConnect && this.open();
|
|
13702
13702
|
}
|
|
13703
13703
|
reconnection(e) {
|
|
@@ -13918,7 +13918,7 @@ class Nf extends A0 {
|
|
|
13918
13918
|
const er = {};
|
|
13919
13919
|
function xr(f, e) {
|
|
13920
13920
|
typeof f == "object" && (e = f, f = void 0), e = e || {};
|
|
13921
|
-
const t =
|
|
13921
|
+
const t = r1(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
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
|
}
|
|
@@ -13928,10 +13928,10 @@ Object.assign(xr, {
|
|
|
13928
13928
|
io: xr,
|
|
13929
13929
|
connect: xr
|
|
13930
13930
|
});
|
|
13931
|
-
const
|
|
13931
|
+
const v1 = "https://ws.zigap.io", Ct = class Ct {
|
|
13932
13932
|
constructor() {
|
|
13933
13933
|
wt(this, "socket");
|
|
13934
|
-
this.socket = xr(
|
|
13934
|
+
this.socket = xr(v1);
|
|
13935
13935
|
}
|
|
13936
13936
|
static getInstance() {
|
|
13937
13937
|
return Ct.instance || (Ct.instance = new Ct()), Ct.instance;
|
|
@@ -13939,7 +13939,7 @@ const x1 = "https://ws.zigap.io", Ct = class Ct {
|
|
|
13939
13939
|
};
|
|
13940
13940
|
wt(Ct, "instance");
|
|
13941
13941
|
let qf = Ct;
|
|
13942
|
-
class
|
|
13942
|
+
class b1 {
|
|
13943
13943
|
constructor() {
|
|
13944
13944
|
wt(this, "socketInstance");
|
|
13945
13945
|
this.socketInstance = qf.getInstance();
|
|
@@ -13967,8 +13967,8 @@ class v1 {
|
|
|
13967
13967
|
e === "accountInfo" ? this.socketInstance.socket.off("accountInfo") : e === "requestMessage" ? this.socketInstance.socket.off("requestMessage") : e === "addressProvide" && this.socketInstance.socket.off("addressProvide");
|
|
13968
13968
|
}
|
|
13969
13969
|
}
|
|
13970
|
-
const xt = new
|
|
13971
|
-
class
|
|
13970
|
+
const xt = new b1();
|
|
13971
|
+
class p1 {
|
|
13972
13972
|
// 타입 가드 함수
|
|
13973
13973
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13974
13974
|
isAccountCryptoType(e) {
|
|
@@ -14032,8 +14032,8 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
14032
14032
|
}
|
|
14033
14033
|
}
|
|
14034
14034
|
}
|
|
14035
|
-
const
|
|
14036
|
-
class
|
|
14035
|
+
const y1 = new p1();
|
|
14036
|
+
class g1 {
|
|
14037
14037
|
generateQrCode(e, t, r, a) {
|
|
14038
14038
|
const i = K0.lib.WordArray.random(16).toString(K0.enc.Hex);
|
|
14039
14039
|
let y = "";
|
|
@@ -14043,21 +14043,29 @@ class y1 {
|
|
|
14043
14043
|
};
|
|
14044
14044
|
}
|
|
14045
14045
|
}
|
|
14046
|
-
const ri = new
|
|
14047
|
-
const [f, e] = _r(void 0)
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
e(r), location.reload(), console.log("useEffect");
|
|
14046
|
+
const ri = new g1(), ca = "loginRes", M1 = () => {
|
|
14047
|
+
const [f, e] = _r(void 0), t = () => {
|
|
14048
|
+
const r = localStorage.getItem("loginRes");
|
|
14049
|
+
if (r) {
|
|
14050
|
+
const a = JSON.parse(r);
|
|
14051
|
+
e(a);
|
|
14053
14052
|
}
|
|
14053
|
+
};
|
|
14054
|
+
return Ft(() => {
|
|
14055
|
+
t();
|
|
14056
|
+
const r = (a) => {
|
|
14057
|
+
a.key === ca && t();
|
|
14058
|
+
};
|
|
14059
|
+
return window.addEventListener("storage", r), () => {
|
|
14060
|
+
window.removeEventListener("storage", r);
|
|
14061
|
+
};
|
|
14054
14062
|
}, []), {
|
|
14055
14063
|
address: (f == null ? void 0 : f.address) ?? void 0,
|
|
14056
14064
|
network: (f == null ? void 0 : f.network) ?? void 0,
|
|
14057
14065
|
nickName: (f == null ? void 0 : f.nickName) ?? void 0,
|
|
14058
14066
|
token: (f == null ? void 0 : f.token) ?? void 0
|
|
14059
14067
|
};
|
|
14060
|
-
},
|
|
14068
|
+
}, da = "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";
|
|
14061
14069
|
class m1 {
|
|
14062
14070
|
// Base64URL 인코딩 함수
|
|
14063
14071
|
base64url(e) {
|
|
@@ -14114,8 +14122,8 @@ const _1 = new m1(), A1 = {
|
|
|
14114
14122
|
nickName: "ccc",
|
|
14115
14123
|
token: "ddd"
|
|
14116
14124
|
};
|
|
14117
|
-
localStorage.setItem(
|
|
14118
|
-
const k = await
|
|
14125
|
+
localStorage.setItem(ca, JSON.stringify(R));
|
|
14126
|
+
const k = await y1.qrLogin(B, r, v), z = `${r}
|
|
14119
14127
|
|
|
14120
14128
|
Nonce: ${v}`, F = {
|
|
14121
14129
|
publicKey: k.publicKey,
|
|
@@ -14135,7 +14143,7 @@ Nonce: ${v}`, F = {
|
|
|
14135
14143
|
vn,
|
|
14136
14144
|
{
|
|
14137
14145
|
value: b,
|
|
14138
|
-
...y && { imageSettings: { src:
|
|
14146
|
+
...y && { imageSettings: { src: da, width: x, height: x, excavate: !1 } },
|
|
14139
14147
|
...u
|
|
14140
14148
|
}
|
|
14141
14149
|
) : /* @__PURE__ */ vr.jsx("div", { children: "QR loading error" });
|
|
@@ -14201,7 +14209,7 @@ const w1 = new E1(), F1 = ({
|
|
|
14201
14209
|
vn,
|
|
14202
14210
|
{
|
|
14203
14211
|
value: c,
|
|
14204
|
-
...i && { imageSettings: { src:
|
|
14212
|
+
...i && { imageSettings: { src: da, width: y, height: y, excavate: !1 } },
|
|
14205
14213
|
...x
|
|
14206
14214
|
}
|
|
14207
14215
|
) : /* @__PURE__ */ vr.jsx("div", { children: "QR loading error" });
|