@opensecret/react 1.3.3 → 1.3.5
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.d.ts +30 -0
- package/dist/opensecret-react.es.js +287 -268
- package/dist/opensecret-react.umd.js +8 -8
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ var _f = (r) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Oy = (r, e, t) => e in r ? By(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
6
|
var He = (r, e, t) => Oy(r, typeof e != "symbol" ? e + "" : e, t), Mc = (r, e, t) => e.has(r) || _f("Cannot " + t);
|
|
7
|
-
var $ = (r, e, t) => (Mc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), rr = (r, e, t) => e.has(r) ? _f("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), kt = (r, e, t, n) => (Mc(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t),
|
|
7
|
+
var $ = (r, e, t) => (Mc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), rr = (r, e, t) => e.has(r) ? _f("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), kt = (r, e, t, n) => (Mc(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), De = (r, e, t) => (Mc(r, e, "access private method"), t);
|
|
8
8
|
var Ef = (r, e, t, n) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
kt(r, e, i, t);
|
|
@@ -162,10 +162,10 @@ function Cr(r) {
|
|
|
162
162
|
}
|
|
163
163
|
const Py = 20;
|
|
164
164
|
function jy(r, e, t) {
|
|
165
|
-
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], h = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], m = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], x = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], G = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], N = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], v = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], A = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], O = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], P = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], R = n, ue = i, Ge = s, Ye = o,
|
|
165
|
+
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], h = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], m = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], x = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], G = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], N = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], v = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], A = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], O = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], P = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], R = n, ue = i, Ge = s, Ye = o, je = c, W = u, ne = h, ie = m, xe = x, tt = G, At = N, It = v, dt = A, Qe = O, ae = I, Ee = P;
|
|
166
166
|
for (let gt = 0; gt < Py; gt += 2)
|
|
167
|
-
R = R +
|
|
168
|
-
Gt(R + n | 0, r, 0), Gt(ue + i | 0, r, 4), Gt(Ge + s | 0, r, 8), Gt(Ye + o | 0, r, 12), Gt(
|
|
167
|
+
R = R + je | 0, dt ^= R, dt = dt >>> 16 | dt << 16, xe = xe + dt | 0, je ^= xe, je = je >>> 20 | je << 12, ue = ue + W | 0, Qe ^= ue, Qe = Qe >>> 16 | Qe << 16, tt = tt + Qe | 0, W ^= tt, W = W >>> 20 | W << 12, Ge = Ge + ne | 0, ae ^= Ge, ae = ae >>> 16 | ae << 16, At = At + ae | 0, ne ^= At, ne = ne >>> 20 | ne << 12, Ye = Ye + ie | 0, Ee ^= Ye, Ee = Ee >>> 16 | Ee << 16, It = It + Ee | 0, ie ^= It, ie = ie >>> 20 | ie << 12, Ge = Ge + ne | 0, ae ^= Ge, ae = ae >>> 24 | ae << 8, At = At + ae | 0, ne ^= At, ne = ne >>> 25 | ne << 7, Ye = Ye + ie | 0, Ee ^= Ye, Ee = Ee >>> 24 | Ee << 8, It = It + Ee | 0, ie ^= It, ie = ie >>> 25 | ie << 7, ue = ue + W | 0, Qe ^= ue, Qe = Qe >>> 24 | Qe << 8, tt = tt + Qe | 0, W ^= tt, W = W >>> 25 | W << 7, R = R + je | 0, dt ^= R, dt = dt >>> 24 | dt << 8, xe = xe + dt | 0, je ^= xe, je = je >>> 25 | je << 7, R = R + W | 0, Ee ^= R, Ee = Ee >>> 16 | Ee << 16, At = At + Ee | 0, W ^= At, W = W >>> 20 | W << 12, ue = ue + ne | 0, dt ^= ue, dt = dt >>> 16 | dt << 16, It = It + dt | 0, ne ^= It, ne = ne >>> 20 | ne << 12, Ge = Ge + ie | 0, Qe ^= Ge, Qe = Qe >>> 16 | Qe << 16, xe = xe + Qe | 0, ie ^= xe, ie = ie >>> 20 | ie << 12, Ye = Ye + je | 0, ae ^= Ye, ae = ae >>> 16 | ae << 16, tt = tt + ae | 0, je ^= tt, je = je >>> 20 | je << 12, Ge = Ge + ie | 0, Qe ^= Ge, Qe = Qe >>> 24 | Qe << 8, xe = xe + Qe | 0, ie ^= xe, ie = ie >>> 25 | ie << 7, Ye = Ye + je | 0, ae ^= Ye, ae = ae >>> 24 | ae << 8, tt = tt + ae | 0, je ^= tt, je = je >>> 25 | je << 7, ue = ue + ne | 0, dt ^= ue, dt = dt >>> 24 | dt << 8, It = It + dt | 0, ne ^= It, ne = ne >>> 25 | ne << 7, R = R + W | 0, Ee ^= R, Ee = Ee >>> 24 | Ee << 8, At = At + Ee | 0, W ^= At, W = W >>> 25 | W << 7;
|
|
168
|
+
Gt(R + n | 0, r, 0), Gt(ue + i | 0, r, 4), Gt(Ge + s | 0, r, 8), Gt(Ye + o | 0, r, 12), Gt(je + c | 0, r, 16), Gt(W + u | 0, r, 20), Gt(ne + h | 0, r, 24), Gt(ie + m | 0, r, 28), Gt(xe + x | 0, r, 32), Gt(tt + G | 0, r, 36), Gt(At + N | 0, r, 40), Gt(It + v | 0, r, 44), Gt(dt + A | 0, r, 48), Gt(Qe + O | 0, r, 52), Gt(ae + I | 0, r, 56), Gt(Ee + P | 0, r, 60);
|
|
169
169
|
}
|
|
170
170
|
function il(r, e, t, n, i = 0) {
|
|
171
171
|
if (r.length !== 32)
|
|
@@ -241,7 +241,7 @@ class My {
|
|
|
241
241
|
this._r[8] = (u >>> 8 | h << 8) & 8191, this._r[9] = h >>> 5 & 127, this._pad[0] = e[16] | e[17] << 8, this._pad[1] = e[18] | e[19] << 8, this._pad[2] = e[20] | e[21] << 8, this._pad[3] = e[22] | e[23] << 8, this._pad[4] = e[24] | e[25] << 8, this._pad[5] = e[26] | e[27] << 8, this._pad[6] = e[28] | e[29] << 8, this._pad[7] = e[30] | e[31] << 8;
|
|
242
242
|
}
|
|
243
243
|
_blocks(e, t, n) {
|
|
244
|
-
let i = this._fin ? 0 : 2048, s = this._h[0], o = this._h[1], c = this._h[2], u = this._h[3], h = this._h[4], m = this._h[5], x = this._h[6], G = this._h[7], N = this._h[8], v = this._h[9], A = this._r[0], O = this._r[1], I = this._r[2], P = this._r[3], R = this._r[4], ue = this._r[5], Ge = this._r[6], Ye = this._r[7],
|
|
244
|
+
let i = this._fin ? 0 : 2048, s = this._h[0], o = this._h[1], c = this._h[2], u = this._h[3], h = this._h[4], m = this._h[5], x = this._h[6], G = this._h[7], N = this._h[8], v = this._h[9], A = this._r[0], O = this._r[1], I = this._r[2], P = this._r[3], R = this._r[4], ue = this._r[5], Ge = this._r[6], Ye = this._r[7], je = this._r[8], W = this._r[9];
|
|
245
245
|
for (; n >= 16; ) {
|
|
246
246
|
let ne = e[t + 0] | e[t + 1] << 8;
|
|
247
247
|
s += ne & 8191;
|
|
@@ -257,28 +257,28 @@ class My {
|
|
|
257
257
|
x += (At >>> 14 | It << 2) & 8191;
|
|
258
258
|
let dt = e[t + 12] | e[t + 13] << 8;
|
|
259
259
|
G += (It >>> 11 | dt << 5) & 8191;
|
|
260
|
-
let
|
|
261
|
-
N += (dt >>> 8 |
|
|
260
|
+
let Qe = e[t + 14] | e[t + 15] << 8;
|
|
261
|
+
N += (dt >>> 8 | Qe << 8) & 8191, v += Qe >>> 5 | i;
|
|
262
262
|
let ae = 0, Ee = ae;
|
|
263
|
-
Ee += s * A, Ee += o * (5 * W), Ee += c * (5 *
|
|
263
|
+
Ee += s * A, Ee += o * (5 * W), Ee += c * (5 * je), Ee += u * (5 * Ye), Ee += h * (5 * Ge), ae = Ee >>> 13, Ee &= 8191, Ee += m * (5 * ue), Ee += x * (5 * R), Ee += G * (5 * P), Ee += N * (5 * I), Ee += v * (5 * O), ae += Ee >>> 13, Ee &= 8191;
|
|
264
264
|
let gt = ae;
|
|
265
|
-
gt += s * O, gt += o * A, gt += c * (5 * W), gt += u * (5 *
|
|
265
|
+
gt += s * O, gt += o * A, gt += c * (5 * W), gt += u * (5 * je), gt += h * (5 * Ye), ae = gt >>> 13, gt &= 8191, gt += m * (5 * Ge), gt += x * (5 * ue), gt += G * (5 * R), gt += N * (5 * P), gt += v * (5 * I), ae += gt >>> 13, gt &= 8191;
|
|
266
266
|
let Ut = ae;
|
|
267
|
-
Ut += s * I, Ut += o * O, Ut += c * A, Ut += u * (5 * W), Ut += h * (5 *
|
|
267
|
+
Ut += s * I, Ut += o * O, Ut += c * A, Ut += u * (5 * W), Ut += h * (5 * je), ae = Ut >>> 13, Ut &= 8191, Ut += m * (5 * Ye), Ut += x * (5 * Ge), Ut += G * (5 * ue), Ut += N * (5 * R), Ut += v * (5 * P), ae += Ut >>> 13, Ut &= 8191;
|
|
268
268
|
let Dt = ae;
|
|
269
|
-
Dt += s * P, Dt += o * I, Dt += c * O, Dt += u * A, Dt += h * (5 * W), ae = Dt >>> 13, Dt &= 8191, Dt += m * (5 *
|
|
269
|
+
Dt += s * P, Dt += o * I, Dt += c * O, Dt += u * A, Dt += h * (5 * W), ae = Dt >>> 13, Dt &= 8191, Dt += m * (5 * je), Dt += x * (5 * Ye), Dt += G * (5 * Ge), Dt += N * (5 * ue), Dt += v * (5 * R), ae += Dt >>> 13, Dt &= 8191;
|
|
270
270
|
let fe = ae;
|
|
271
|
-
fe += s * R, fe += o * P, fe += c * I, fe += u * O, fe += h * A, ae = fe >>> 13, fe &= 8191, fe += m * (5 * W), fe += x * (5 *
|
|
271
|
+
fe += s * R, fe += o * P, fe += c * I, fe += u * O, fe += h * A, ae = fe >>> 13, fe &= 8191, fe += m * (5 * W), fe += x * (5 * je), fe += G * (5 * Ye), fe += N * (5 * Ge), fe += v * (5 * ue), ae += fe >>> 13, fe &= 8191;
|
|
272
272
|
let st = ae;
|
|
273
|
-
st += s * ue, st += o * R, st += c * P, st += u * I, st += h * O, ae = st >>> 13, st &= 8191, st += m * A, st += x * (5 * W), st += G * (5 *
|
|
273
|
+
st += s * ue, st += o * R, st += c * P, st += u * I, st += h * O, ae = st >>> 13, st &= 8191, st += m * A, st += x * (5 * W), st += G * (5 * je), st += N * (5 * Ye), st += v * (5 * Ge), ae += st >>> 13, st &= 8191;
|
|
274
274
|
let vt = ae;
|
|
275
|
-
vt += s * Ge, vt += o * ue, vt += c * R, vt += u * P, vt += h * I, ae = vt >>> 13, vt &= 8191, vt += m * O, vt += x * A, vt += G * (5 * W), vt += N * (5 *
|
|
275
|
+
vt += s * Ge, vt += o * ue, vt += c * R, vt += u * P, vt += h * I, ae = vt >>> 13, vt &= 8191, vt += m * O, vt += x * A, vt += G * (5 * W), vt += N * (5 * je), vt += v * (5 * Ye), ae += vt >>> 13, vt &= 8191;
|
|
276
276
|
let ee = ae;
|
|
277
|
-
ee += s * Ye, ee += o * Ge, ee += c * ue, ee += u * R, ee += h * P, ae = ee >>> 13, ee &= 8191, ee += m * I, ee += x * O, ee += G * A, ee += N * (5 * W), ee += v * (5 *
|
|
277
|
+
ee += s * Ye, ee += o * Ge, ee += c * ue, ee += u * R, ee += h * P, ae = ee >>> 13, ee &= 8191, ee += m * I, ee += x * O, ee += G * A, ee += N * (5 * W), ee += v * (5 * je), ae += ee >>> 13, ee &= 8191;
|
|
278
278
|
let pt = ae;
|
|
279
|
-
pt += s *
|
|
279
|
+
pt += s * je, pt += o * Ye, pt += c * Ge, pt += u * ue, pt += h * R, ae = pt >>> 13, pt &= 8191, pt += m * P, pt += x * I, pt += G * O, pt += N * A, pt += v * (5 * W), ae += pt >>> 13, pt &= 8191;
|
|
280
280
|
let Vt = ae;
|
|
281
|
-
Vt += s * W, Vt += o *
|
|
281
|
+
Vt += s * W, Vt += o * je, Vt += c * Ye, Vt += u * Ge, Vt += h * ue, ae = Vt >>> 13, Vt &= 8191, Vt += m * R, Vt += x * P, Vt += G * I, Vt += N * O, Vt += v * A, ae += Vt >>> 13, Vt &= 8191, ae = (ae << 2) + ae | 0, ae = ae + Ee | 0, Ee = ae & 8191, ae = ae >>> 13, gt += ae, s = Ee, o = gt, c = Ut, u = Dt, h = fe, m = st, x = vt, G = ee, N = pt, v = Vt, t += 16, n -= 16;
|
|
282
282
|
}
|
|
283
283
|
this._h[0] = s, this._h[1] = o, this._h[2] = c, this._h[3] = u, this._h[4] = h, this._h[5] = m, this._h[6] = x, this._h[7] = G, this._h[8] = N, this._h[9] = v;
|
|
284
284
|
}
|
|
@@ -580,12 +580,12 @@ var Of;
|
|
|
580
580
|
return fe(T) || (T = or(T)), dt(_, k, T);
|
|
581
581
|
}
|
|
582
582
|
e("hasOwnMetadata", Ye);
|
|
583
|
-
function
|
|
583
|
+
function je(_, k, T) {
|
|
584
584
|
if (!ee(k))
|
|
585
585
|
throw new TypeError();
|
|
586
|
-
return fe(T) || (T = or(T)),
|
|
586
|
+
return fe(T) || (T = or(T)), Qe(_, k, T);
|
|
587
587
|
}
|
|
588
|
-
e("getMetadata",
|
|
588
|
+
e("getMetadata", je);
|
|
589
589
|
function W(_, k, T) {
|
|
590
590
|
if (!ee(k))
|
|
591
591
|
throw new TypeError();
|
|
@@ -657,13 +657,13 @@ var Of;
|
|
|
657
657
|
);
|
|
658
658
|
return fe(q) ? !1 : fs(q.OrdinaryHasOwnMetadata(_, k, T));
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Qe(_, k, T) {
|
|
661
661
|
var q = dt(_, k, T);
|
|
662
662
|
if (q)
|
|
663
663
|
return ae(_, k, T);
|
|
664
664
|
var be = Bi(k);
|
|
665
665
|
if (!st(be))
|
|
666
|
-
return
|
|
666
|
+
return Qe(_, be, T);
|
|
667
667
|
}
|
|
668
668
|
function ae(_, k, T) {
|
|
669
669
|
var q = Wr(
|
|
@@ -693,8 +693,8 @@ var Of;
|
|
|
693
693
|
return T;
|
|
694
694
|
if (T.length <= 0)
|
|
695
695
|
return be;
|
|
696
|
-
for (var St = new N(), _t = [],
|
|
697
|
-
var te = Z[
|
|
696
|
+
for (var St = new N(), _t = [], Re = 0, Z = T; Re < Z.length; Re++) {
|
|
697
|
+
var te = Z[Re], he = St.has(te);
|
|
698
698
|
he || (St.add(te), _t.push(te));
|
|
699
699
|
}
|
|
700
700
|
for (var ge = 0, Je = be; ge < Je.length; ge++) {
|
|
@@ -886,7 +886,7 @@ var Of;
|
|
|
886
886
|
break;
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Re(ge, Je) {
|
|
890
890
|
if (!fe(k)) {
|
|
891
891
|
if (k.isProviderFor(ge, Je))
|
|
892
892
|
return k;
|
|
@@ -909,7 +909,7 @@ var Of;
|
|
|
909
909
|
}
|
|
910
910
|
function Z(ge, Je) {
|
|
911
911
|
var rt = be.get(ge), mt;
|
|
912
|
-
return fe(rt) || (mt = rt.get(Je)), fe(mt) && (mt =
|
|
912
|
+
return fe(rt) || (mt = rt.get(Je)), fe(mt) && (mt = Re(ge, Je), fe(mt) || (fe(rt) && (rt = new G(), be.set(ge, rt)), rt.set(Je, mt))), mt;
|
|
913
913
|
}
|
|
914
914
|
function te(ge) {
|
|
915
915
|
if (fe(ge))
|
|
@@ -947,7 +947,7 @@ var Of;
|
|
|
947
947
|
OrdinaryDefineOwnMetadata: _t,
|
|
948
948
|
OrdinaryHasOwnMetadata: be,
|
|
949
949
|
OrdinaryGetOwnMetadata: St,
|
|
950
|
-
OrdinaryOwnMetadataKeys:
|
|
950
|
+
OrdinaryOwnMetadataKeys: Re,
|
|
951
951
|
OrdinaryDeleteMetadata: Z
|
|
952
952
|
};
|
|
953
953
|
return O.registerProvider(T), T;
|
|
@@ -995,7 +995,7 @@ var Of;
|
|
|
995
995
|
);
|
|
996
996
|
rt.set(te, he);
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function Re(te, he) {
|
|
999
999
|
var ge = [], Je = q(
|
|
1000
1000
|
te,
|
|
1001
1001
|
he,
|
|
@@ -1038,7 +1038,7 @@ var Of;
|
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
function ws(_) {
|
|
1041
|
-
var k = _.defineMetadata, T = _.hasOwnMetadata, q = _.getOwnMetadata, be = _.getOwnMetadataKeys, St = _.deleteMetadata, _t = new v(),
|
|
1041
|
+
var k = _.defineMetadata, T = _.hasOwnMetadata, q = _.getOwnMetadata, be = _.getOwnMetadataKeys, St = _.deleteMetadata, _t = new v(), Re = {
|
|
1042
1042
|
isProviderFor: function(Z, te) {
|
|
1043
1043
|
var he = _t.get(Z);
|
|
1044
1044
|
return !fe(he) && he.has(te) ? !0 : be(Z, te).length ? (fe(he) && (he = new N(), _t.set(Z, he)), he.add(te), !0) : !1;
|
|
@@ -1049,7 +1049,7 @@ var Of;
|
|
|
1049
1049
|
OrdinaryOwnMetadataKeys: be,
|
|
1050
1050
|
OrdinaryDeleteMetadata: St
|
|
1051
1051
|
};
|
|
1052
|
-
return
|
|
1052
|
+
return Re;
|
|
1053
1053
|
}
|
|
1054
1054
|
function Wr(_, k, T) {
|
|
1055
1055
|
var q = O.getProvider(_, k);
|
|
@@ -1065,59 +1065,59 @@ var Of;
|
|
|
1065
1065
|
var _ = {}, k = [], T = (
|
|
1066
1066
|
/** @class */
|
|
1067
1067
|
function() {
|
|
1068
|
-
function
|
|
1068
|
+
function Re(Z, te, he) {
|
|
1069
1069
|
this._index = 0, this._keys = Z, this._values = te, this._selector = he;
|
|
1070
1070
|
}
|
|
1071
|
-
return
|
|
1071
|
+
return Re.prototype["@@iterator"] = function() {
|
|
1072
1072
|
return this;
|
|
1073
|
-
},
|
|
1073
|
+
}, Re.prototype[o] = function() {
|
|
1074
1074
|
return this;
|
|
1075
|
-
},
|
|
1075
|
+
}, Re.prototype.next = function() {
|
|
1076
1076
|
var Z = this._index;
|
|
1077
1077
|
if (Z >= 0 && Z < this._keys.length) {
|
|
1078
1078
|
var te = this._selector(this._keys[Z], this._values[Z]);
|
|
1079
1079
|
return Z + 1 >= this._keys.length ? (this._index = -1, this._keys = k, this._values = k) : this._index++, { value: te, done: !1 };
|
|
1080
1080
|
}
|
|
1081
1081
|
return { value: void 0, done: !0 };
|
|
1082
|
-
},
|
|
1082
|
+
}, Re.prototype.throw = function(Z) {
|
|
1083
1083
|
throw this._index >= 0 && (this._index = -1, this._keys = k, this._values = k), Z;
|
|
1084
|
-
},
|
|
1084
|
+
}, Re.prototype.return = function(Z) {
|
|
1085
1085
|
return this._index >= 0 && (this._index = -1, this._keys = k, this._values = k), { value: Z, done: !0 };
|
|
1086
|
-
},
|
|
1086
|
+
}, Re;
|
|
1087
1087
|
}()
|
|
1088
1088
|
), q = (
|
|
1089
1089
|
/** @class */
|
|
1090
1090
|
function() {
|
|
1091
|
-
function
|
|
1091
|
+
function Re() {
|
|
1092
1092
|
this._keys = [], this._values = [], this._cacheKey = _, this._cacheIndex = -2;
|
|
1093
1093
|
}
|
|
1094
|
-
return Object.defineProperty(
|
|
1094
|
+
return Object.defineProperty(Re.prototype, "size", {
|
|
1095
1095
|
get: function() {
|
|
1096
1096
|
return this._keys.length;
|
|
1097
1097
|
},
|
|
1098
1098
|
enumerable: !0,
|
|
1099
1099
|
configurable: !0
|
|
1100
|
-
}),
|
|
1100
|
+
}), Re.prototype.has = function(Z) {
|
|
1101
1101
|
return this._find(
|
|
1102
1102
|
Z,
|
|
1103
1103
|
/*insert*/
|
|
1104
1104
|
!1
|
|
1105
1105
|
) >= 0;
|
|
1106
|
-
},
|
|
1106
|
+
}, Re.prototype.get = function(Z) {
|
|
1107
1107
|
var te = this._find(
|
|
1108
1108
|
Z,
|
|
1109
1109
|
/*insert*/
|
|
1110
1110
|
!1
|
|
1111
1111
|
);
|
|
1112
1112
|
return te >= 0 ? this._values[te] : void 0;
|
|
1113
|
-
},
|
|
1113
|
+
}, Re.prototype.set = function(Z, te) {
|
|
1114
1114
|
var he = this._find(
|
|
1115
1115
|
Z,
|
|
1116
1116
|
/*insert*/
|
|
1117
1117
|
!0
|
|
1118
1118
|
);
|
|
1119
1119
|
return this._values[he] = te, this;
|
|
1120
|
-
},
|
|
1120
|
+
}, Re.prototype.delete = function(Z) {
|
|
1121
1121
|
var te = this._find(
|
|
1122
1122
|
Z,
|
|
1123
1123
|
/*insert*/
|
|
@@ -1129,19 +1129,19 @@ var Of;
|
|
|
1129
1129
|
return this._keys.length--, this._values.length--, ps(Z, this._cacheKey) && (this._cacheKey = _, this._cacheIndex = -2), !0;
|
|
1130
1130
|
}
|
|
1131
1131
|
return !1;
|
|
1132
|
-
},
|
|
1132
|
+
}, Re.prototype.clear = function() {
|
|
1133
1133
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = _, this._cacheIndex = -2;
|
|
1134
|
-
},
|
|
1134
|
+
}, Re.prototype.keys = function() {
|
|
1135
1135
|
return new T(this._keys, this._values, be);
|
|
1136
|
-
},
|
|
1136
|
+
}, Re.prototype.values = function() {
|
|
1137
1137
|
return new T(this._keys, this._values, St);
|
|
1138
|
-
},
|
|
1138
|
+
}, Re.prototype.entries = function() {
|
|
1139
1139
|
return new T(this._keys, this._values, _t);
|
|
1140
|
-
},
|
|
1140
|
+
}, Re.prototype["@@iterator"] = function() {
|
|
1141
1141
|
return this.entries();
|
|
1142
|
-
},
|
|
1142
|
+
}, Re.prototype[o] = function() {
|
|
1143
1143
|
return this.entries();
|
|
1144
|
-
},
|
|
1144
|
+
}, Re.prototype._find = function(Z, te) {
|
|
1145
1145
|
if (!ps(this._cacheKey, Z)) {
|
|
1146
1146
|
this._cacheIndex = -1;
|
|
1147
1147
|
for (var he = 0; he < this._keys.length; he++)
|
|
@@ -1151,18 +1151,18 @@ var Of;
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
return this._cacheIndex < 0 && te && (this._cacheIndex = this._keys.length, this._keys.push(Z), this._values.push(void 0)), this._cacheIndex;
|
|
1154
|
-
},
|
|
1154
|
+
}, Re;
|
|
1155
1155
|
}()
|
|
1156
1156
|
);
|
|
1157
1157
|
return q;
|
|
1158
|
-
function be(
|
|
1159
|
-
return
|
|
1158
|
+
function be(Re, Z) {
|
|
1159
|
+
return Re;
|
|
1160
1160
|
}
|
|
1161
|
-
function St(
|
|
1161
|
+
function St(Re, Z) {
|
|
1162
1162
|
return Z;
|
|
1163
1163
|
}
|
|
1164
|
-
function _t(
|
|
1165
|
-
return [
|
|
1164
|
+
function _t(Re, Z) {
|
|
1165
|
+
return [Re, Z];
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
function xs() {
|
|
@@ -1245,7 +1245,7 @@ var Of;
|
|
|
1245
1245
|
function q() {
|
|
1246
1246
|
var Z;
|
|
1247
1247
|
do
|
|
1248
|
-
Z = "@@WeakMap@@" +
|
|
1248
|
+
Z = "@@WeakMap@@" + Re();
|
|
1249
1249
|
while (m.has(k, Z));
|
|
1250
1250
|
return k[Z] = !0, Z;
|
|
1251
1251
|
}
|
|
@@ -1269,7 +1269,7 @@ var Of;
|
|
|
1269
1269
|
}
|
|
1270
1270
|
return St(new Array(Z), Z);
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Re() {
|
|
1273
1273
|
var Z = _t(_);
|
|
1274
1274
|
Z[6] = Z[6] & 79 | 64, Z[8] = Z[8] & 191 | 128;
|
|
1275
1275
|
for (var te = "", he = 0; he < _; ++he) {
|
|
@@ -4369,8 +4369,8 @@ var Ip = { exports: {} };
|
|
|
4369
4369
|
R += "0:";
|
|
4370
4370
|
return v = v.replace("::", R), v[0] === ":" && (v = v.slice(1)), v[v.length - 1] === ":" && (v = v.slice(0, -1)), A = function() {
|
|
4371
4371
|
const Ge = v.split(":"), Ye = [];
|
|
4372
|
-
for (let
|
|
4373
|
-
Ye.push(parseInt(Ge[
|
|
4372
|
+
for (let je = 0; je < Ge.length; je++)
|
|
4373
|
+
Ye.push(parseInt(Ge[je], 16));
|
|
4374
4374
|
return Ye;
|
|
4375
4375
|
}(), {
|
|
4376
4376
|
parts: A,
|
|
@@ -4965,54 +4965,54 @@ f([
|
|
|
4965
4965
|
f([
|
|
4966
4966
|
y({ type: Xt, context: 1, implicit: !0 })
|
|
4967
4967
|
], Gu.prototype, "partyName", void 0);
|
|
4968
|
-
let
|
|
4968
|
+
let $e = class {
|
|
4969
4969
|
constructor(e = {}) {
|
|
4970
4970
|
Object.assign(this, e);
|
|
4971
4971
|
}
|
|
4972
4972
|
};
|
|
4973
4973
|
f([
|
|
4974
4974
|
y({ type: Ds, context: 0, implicit: !0 })
|
|
4975
|
-
],
|
|
4975
|
+
], $e.prototype, "otherName", void 0);
|
|
4976
4976
|
f([
|
|
4977
4977
|
y({ type: b.IA5String, context: 1, implicit: !0 })
|
|
4978
|
-
],
|
|
4978
|
+
], $e.prototype, "rfc822Name", void 0);
|
|
4979
4979
|
f([
|
|
4980
4980
|
y({ type: b.IA5String, context: 2, implicit: !0 })
|
|
4981
|
-
],
|
|
4981
|
+
], $e.prototype, "dNSName", void 0);
|
|
4982
4982
|
f([
|
|
4983
4983
|
y({ type: b.Any, context: 3, implicit: !0 })
|
|
4984
|
-
],
|
|
4984
|
+
], $e.prototype, "x400Address", void 0);
|
|
4985
4985
|
f([
|
|
4986
4986
|
y({ type: Ht, context: 4, implicit: !1 })
|
|
4987
|
-
],
|
|
4987
|
+
], $e.prototype, "directoryName", void 0);
|
|
4988
4988
|
f([
|
|
4989
4989
|
y({ type: Gu, context: 5 })
|
|
4990
|
-
],
|
|
4990
|
+
], $e.prototype, "ediPartyName", void 0);
|
|
4991
4991
|
f([
|
|
4992
4992
|
y({ type: b.IA5String, context: 6, implicit: !0 })
|
|
4993
|
-
],
|
|
4993
|
+
], $e.prototype, "uniformResourceIdentifier", void 0);
|
|
4994
4994
|
f([
|
|
4995
4995
|
y({ type: b.OctetString, context: 7, implicit: !0, converter: Mg })
|
|
4996
|
-
],
|
|
4996
|
+
], $e.prototype, "iPAddress", void 0);
|
|
4997
4997
|
f([
|
|
4998
4998
|
y({ type: b.ObjectIdentifier, context: 8, implicit: !0 })
|
|
4999
|
-
],
|
|
5000
|
-
|
|
4999
|
+
], $e.prototype, "registeredID", void 0);
|
|
5000
|
+
$e = f([
|
|
5001
5001
|
H({ type: M.Choice })
|
|
5002
|
-
],
|
|
5002
|
+
], $e);
|
|
5003
5003
|
const qu = "1.3.6.1.5.5.7", Vg = `${qu}.1`, is = `${qu}.3`, oc = `${qu}.48`, $f = `${oc}.1`, Mf = `${oc}.2`, Vf = `${oc}.3`, Lf = `${oc}.5`, Yn = "2.5.29";
|
|
5004
5004
|
var dl;
|
|
5005
5005
|
const pl = `${Vg}.1`;
|
|
5006
5006
|
class yo {
|
|
5007
5007
|
constructor(e = {}) {
|
|
5008
|
-
this.accessMethod = "", this.accessLocation = new
|
|
5008
|
+
this.accessMethod = "", this.accessLocation = new $e(), Object.assign(this, e);
|
|
5009
5009
|
}
|
|
5010
5010
|
}
|
|
5011
5011
|
f([
|
|
5012
5012
|
y({ type: b.ObjectIdentifier })
|
|
5013
5013
|
], yo.prototype, "accessMethod", void 0);
|
|
5014
5014
|
f([
|
|
5015
|
-
y({ type:
|
|
5015
|
+
y({ type: $e })
|
|
5016
5016
|
], yo.prototype, "accessLocation", void 0);
|
|
5017
5017
|
let ji = dl = class extends yt {
|
|
5018
5018
|
constructor(e) {
|
|
@@ -5034,7 +5034,7 @@ f([
|
|
|
5034
5034
|
y({ type: Ku, context: 0, optional: !0, implicit: !0 })
|
|
5035
5035
|
], ni.prototype, "keyIdentifier", void 0);
|
|
5036
5036
|
f([
|
|
5037
|
-
y({ type:
|
|
5037
|
+
y({ type: $e, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
|
|
5038
5038
|
], ni.prototype, "authorityCertIssuer", void 0);
|
|
5039
5039
|
f([
|
|
5040
5040
|
y({
|
|
@@ -5064,7 +5064,7 @@ let cr = yl = class extends yt {
|
|
|
5064
5064
|
}
|
|
5065
5065
|
};
|
|
5066
5066
|
cr = yl = f([
|
|
5067
|
-
H({ type: M.Sequence, itemType:
|
|
5067
|
+
H({ type: M.Sequence, itemType: $e })
|
|
5068
5068
|
], cr);
|
|
5069
5069
|
var gl;
|
|
5070
5070
|
let Hf = gl = class extends cr {
|
|
@@ -5203,7 +5203,7 @@ let fi = class {
|
|
|
5203
5203
|
}
|
|
5204
5204
|
};
|
|
5205
5205
|
f([
|
|
5206
|
-
y({ type:
|
|
5206
|
+
y({ type: $e, context: 0, repeated: "sequence", implicit: !0 })
|
|
5207
5207
|
], fi.prototype, "fullName", void 0);
|
|
5208
5208
|
f([
|
|
5209
5209
|
y({ type: Li, context: 1, implicit: !0 })
|
|
@@ -5223,7 +5223,7 @@ f([
|
|
|
5223
5223
|
y({ type: Bp, context: 1, optional: !0, implicit: !0 })
|
|
5224
5224
|
], ss.prototype, "reasons", void 0);
|
|
5225
5225
|
f([
|
|
5226
|
-
y({ type:
|
|
5226
|
+
y({ type: $e, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
5227
5227
|
], ss.prototype, "cRLIssuer", void 0);
|
|
5228
5228
|
let Di = ml = class extends yt {
|
|
5229
5229
|
constructor(e) {
|
|
@@ -5346,11 +5346,11 @@ class Hc extends ic {
|
|
|
5346
5346
|
var Il;
|
|
5347
5347
|
class cc {
|
|
5348
5348
|
constructor(e = {}) {
|
|
5349
|
-
this.base = new
|
|
5349
|
+
this.base = new $e(), this.minimum = 0, Object.assign(this, e);
|
|
5350
5350
|
}
|
|
5351
5351
|
}
|
|
5352
5352
|
f([
|
|
5353
|
-
y({ type:
|
|
5353
|
+
y({ type: $e })
|
|
5354
5354
|
], cc.prototype, "base", void 0);
|
|
5355
5355
|
f([
|
|
5356
5356
|
y({ type: b.Integer, context: 0, defaultValue: 0, implicit: !0 })
|
|
@@ -5830,11 +5830,11 @@ Jf = f([
|
|
|
5830
5830
|
], Jf);
|
|
5831
5831
|
class tf {
|
|
5832
5832
|
constructor(e = {}) {
|
|
5833
|
-
this.acIssuer = new
|
|
5833
|
+
this.acIssuer = new $e(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
|
|
5834
5834
|
}
|
|
5835
5835
|
}
|
|
5836
5836
|
f([
|
|
5837
|
-
y({ type:
|
|
5837
|
+
y({ type: $e })
|
|
5838
5838
|
], tf.prototype, "acIssuer", void 0);
|
|
5839
5839
|
f([
|
|
5840
5840
|
y({ type: b.Integer })
|
|
@@ -5923,7 +5923,7 @@ let zi = class {
|
|
|
5923
5923
|
}
|
|
5924
5924
|
};
|
|
5925
5925
|
f([
|
|
5926
|
-
y({ type:
|
|
5926
|
+
y({ type: $e, repeated: "sequence" })
|
|
5927
5927
|
], zi.prototype, "v1Form", void 0);
|
|
5928
5928
|
f([
|
|
5929
5929
|
y({ type: hc, context: 0, implicit: !0 })
|
|
@@ -6072,7 +6072,7 @@ f([
|
|
|
6072
6072
|
y({ type: Ii })
|
|
6073
6073
|
], gc.prototype, "targetCertificate", void 0);
|
|
6074
6074
|
f([
|
|
6075
|
-
y({ type:
|
|
6075
|
+
y({ type: $e, optional: !0 })
|
|
6076
6076
|
], gc.prototype, "targetName", void 0);
|
|
6077
6077
|
f([
|
|
6078
6078
|
y({ type: ki, optional: !0 })
|
|
@@ -6083,10 +6083,10 @@ let Gi = class {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
};
|
|
6085
6085
|
f([
|
|
6086
|
-
y({ type:
|
|
6086
|
+
y({ type: $e, context: 0, implicit: !0 })
|
|
6087
6087
|
], Gi.prototype, "targetName", void 0);
|
|
6088
6088
|
f([
|
|
6089
|
-
y({ type:
|
|
6089
|
+
y({ type: $e, context: 1, implicit: !0 })
|
|
6090
6090
|
], Gi.prototype, "targetGroup", void 0);
|
|
6091
6091
|
f([
|
|
6092
6092
|
y({ type: gc, context: 2, implicit: !0 })
|
|
@@ -6120,18 +6120,18 @@ f([
|
|
|
6120
6120
|
y({ type: cr, implicit: !0, context: 0, optional: !0 })
|
|
6121
6121
|
], Mp.prototype, "roleAuthority", void 0);
|
|
6122
6122
|
f([
|
|
6123
|
-
y({ type:
|
|
6123
|
+
y({ type: $e, implicit: !0, context: 1 })
|
|
6124
6124
|
], Mp.prototype, "roleName", void 0);
|
|
6125
6125
|
class sf {
|
|
6126
6126
|
constructor(e = {}) {
|
|
6127
|
-
this.service = new
|
|
6127
|
+
this.service = new $e(), this.ident = new $e(), Object.assign(this, e);
|
|
6128
6128
|
}
|
|
6129
6129
|
}
|
|
6130
6130
|
f([
|
|
6131
|
-
y({ type:
|
|
6131
|
+
y({ type: $e })
|
|
6132
6132
|
], sf.prototype, "service", void 0);
|
|
6133
6133
|
f([
|
|
6134
|
-
y({ type:
|
|
6134
|
+
y({ type: $e })
|
|
6135
6135
|
], sf.prototype, "ident", void 0);
|
|
6136
6136
|
f([
|
|
6137
6137
|
y({ type: it, optional: !0 })
|
|
@@ -8385,21 +8385,21 @@ class $n extends Jn {
|
|
|
8385
8385
|
switch (e[0]) {
|
|
8386
8386
|
case zc: {
|
|
8387
8387
|
const n = new Hn(e[1]).toArrayBuffer(), i = K.parse(n, Ht);
|
|
8388
|
-
t = new
|
|
8388
|
+
t = new $e({ directoryName: i });
|
|
8389
8389
|
break;
|
|
8390
8390
|
}
|
|
8391
8391
|
case Fc:
|
|
8392
|
-
t = new
|
|
8392
|
+
t = new $e({ dNSName: e[1] });
|
|
8393
8393
|
break;
|
|
8394
8394
|
case Gc:
|
|
8395
|
-
t = new
|
|
8395
|
+
t = new $e({ rfc822Name: e[1] });
|
|
8396
8396
|
break;
|
|
8397
8397
|
case Zc: {
|
|
8398
8398
|
const n = new RegExp(Jh, "i").exec(e[1]);
|
|
8399
8399
|
if (!n)
|
|
8400
8400
|
throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
|
|
8401
8401
|
const i = n.slice(1).map((s, o) => o < 3 ? de.ToHex(new Uint8Array(de.FromHex(s)).reverse()) : s).join("");
|
|
8402
|
-
t = new
|
|
8402
|
+
t = new $e({
|
|
8403
8403
|
otherName: new Ds({
|
|
8404
8404
|
typeId: Xh,
|
|
8405
8405
|
value: K.serialize(new it(de.FromHex(i)))
|
|
@@ -8408,13 +8408,13 @@ class $n extends Jn {
|
|
|
8408
8408
|
break;
|
|
8409
8409
|
}
|
|
8410
8410
|
case qc:
|
|
8411
|
-
t = new
|
|
8411
|
+
t = new $e({ iPAddress: e[1] });
|
|
8412
8412
|
break;
|
|
8413
8413
|
case No:
|
|
8414
|
-
t = new
|
|
8414
|
+
t = new $e({ registeredID: e[1] });
|
|
8415
8415
|
break;
|
|
8416
8416
|
case Wc: {
|
|
8417
|
-
t = new
|
|
8417
|
+
t = new $e({
|
|
8418
8418
|
otherName: new Ds({
|
|
8419
8419
|
typeId: Qh,
|
|
8420
8420
|
value: K.serialize(_p.toASN(e[1]))
|
|
@@ -8423,12 +8423,12 @@ class $n extends Jn {
|
|
|
8423
8423
|
break;
|
|
8424
8424
|
}
|
|
8425
8425
|
case Kc:
|
|
8426
|
-
t = new
|
|
8426
|
+
t = new $e({ uniformResourceIdentifier: e[1] });
|
|
8427
8427
|
break;
|
|
8428
8428
|
default:
|
|
8429
8429
|
throw new Error("Cannot create GeneralName. Unsupported type of the name");
|
|
8430
8430
|
}
|
|
8431
|
-
else Y.isBufferSource(e[0]) ? t = K.parse(e[0],
|
|
8431
|
+
else Y.isBufferSource(e[0]) ? t = K.parse(e[0], $e) : t = e[0];
|
|
8432
8432
|
super(t);
|
|
8433
8433
|
}
|
|
8434
8434
|
onInit(e) {
|
|
@@ -8494,10 +8494,10 @@ class Gs extends Jn {
|
|
|
8494
8494
|
else if (Array.isArray(e)) {
|
|
8495
8495
|
const n = [];
|
|
8496
8496
|
for (const i of e)
|
|
8497
|
-
if (i instanceof
|
|
8497
|
+
if (i instanceof $e)
|
|
8498
8498
|
n.push(i);
|
|
8499
8499
|
else {
|
|
8500
|
-
const s = K.parse(new $n(i.type, i.value).rawData,
|
|
8500
|
+
const s = K.parse(new $n(i.type, i.value).rawData, $e);
|
|
8501
8501
|
n.push(s);
|
|
8502
8502
|
}
|
|
8503
8503
|
t = new cr(n);
|
|
@@ -8897,7 +8897,7 @@ class h0 extends Pr {
|
|
|
8897
8897
|
else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
|
|
8898
8898
|
const i = e[0].map((o) => new ss({
|
|
8899
8899
|
distributionPoint: new fi({
|
|
8900
|
-
fullName: [new
|
|
8900
|
+
fullName: [new $e({ uniformResourceIdentifier: o })]
|
|
8901
8901
|
})
|
|
8902
8902
|
})), s = new Di(i);
|
|
8903
8903
|
super(wl, e[1], K.serialize(s));
|
|
@@ -8977,7 +8977,7 @@ function jo(r, e, t, n) {
|
|
|
8977
8977
|
i && (Array.isArray(i) ? i : [i]).forEach((o) => {
|
|
8978
8978
|
typeof o == "string" && (o = new $n("url", o)), r.push(new yo({
|
|
8979
8979
|
accessMethod: t,
|
|
8980
|
-
accessLocation: K.parse(o.rawData,
|
|
8980
|
+
accessLocation: K.parse(o.rawData, $e)
|
|
8981
8981
|
}));
|
|
8982
8982
|
});
|
|
8983
8983
|
}
|
|
@@ -9688,51 +9688,51 @@ const Ma = class Ma {
|
|
|
9688
9688
|
rr(this, Mt, 0);
|
|
9689
9689
|
rr(this, Un, 0);
|
|
9690
9690
|
if (kt(this, Rn, { ...Ma.defaultOptions, ...e }), $(this, Rn).chunkSize < 8) throw new RangeError(`Expected size >= 8, got ${$(this, Rn).chunkSize}`);
|
|
9691
|
-
|
|
9691
|
+
De(this, et, Qn).call(this);
|
|
9692
9692
|
}
|
|
9693
9693
|
get length() {
|
|
9694
9694
|
return $(this, Un);
|
|
9695
9695
|
}
|
|
9696
9696
|
read() {
|
|
9697
|
-
|
|
9697
|
+
De(this, et, Lo).call(this);
|
|
9698
9698
|
const e = new Uint8Array($(this, Un));
|
|
9699
9699
|
let t = 0;
|
|
9700
9700
|
for (const n of $(this, qt)) e.set(n, t), t += n.length;
|
|
9701
|
-
return
|
|
9701
|
+
return De(this, et, Qn).call(this), e;
|
|
9702
9702
|
}
|
|
9703
9703
|
write(e) {
|
|
9704
9704
|
const t = e.length;
|
|
9705
|
-
t >
|
|
9705
|
+
t > De(this, et, Su).call(this) ? (De(this, et, Lo).call(this), t > $(this, Rn).chunkSize ? ($(this, qt).push(e), De(this, et, Qn).call(this)) : (De(this, et, Qn).call(this), $(this, qt)[$(this, qt).length - 1].set(e), kt(this, Mt, t))) : ($(this, qt)[$(this, qt).length - 1].set(e, $(this, Mt)), kt(this, Mt, $(this, Mt) + t)), kt(this, Un, $(this, Un) + t);
|
|
9706
9706
|
}
|
|
9707
9707
|
writeUint8(e) {
|
|
9708
|
-
|
|
9708
|
+
De(this, et, Jr).call(this, 1), $(this, pr).setUint8($(this, Mt), e), De(this, et, Xr).call(this, 1);
|
|
9709
9709
|
}
|
|
9710
9710
|
writeUint16(e, t = !1) {
|
|
9711
|
-
|
|
9711
|
+
De(this, et, Jr).call(this, 2), $(this, pr).setUint16($(this, Mt), e, t), De(this, et, Xr).call(this, 2);
|
|
9712
9712
|
}
|
|
9713
9713
|
writeUint32(e, t = !1) {
|
|
9714
|
-
|
|
9714
|
+
De(this, et, Jr).call(this, 4), $(this, pr).setUint32($(this, Mt), e, t), De(this, et, Xr).call(this, 4);
|
|
9715
9715
|
}
|
|
9716
9716
|
writeBigUint64(e, t = !1) {
|
|
9717
|
-
|
|
9717
|
+
De(this, et, Jr).call(this, 8), $(this, pr).setBigUint64($(this, Mt), e, t), De(this, et, Xr).call(this, 8);
|
|
9718
9718
|
}
|
|
9719
9719
|
writeInt16(e, t = !1) {
|
|
9720
|
-
|
|
9720
|
+
De(this, et, Jr).call(this, 2), $(this, pr).setInt16($(this, Mt), e, t), De(this, et, Xr).call(this, 2);
|
|
9721
9721
|
}
|
|
9722
9722
|
writeInt32(e, t = !1) {
|
|
9723
|
-
|
|
9723
|
+
De(this, et, Jr).call(this, 4), $(this, pr).setInt32($(this, Mt), e, t), De(this, et, Xr).call(this, 4);
|
|
9724
9724
|
}
|
|
9725
9725
|
writeBigInt64(e, t = !1) {
|
|
9726
|
-
|
|
9726
|
+
De(this, et, Jr).call(this, 8), $(this, pr).setBigInt64($(this, Mt), e, t), De(this, et, Xr).call(this, 8);
|
|
9727
9727
|
}
|
|
9728
9728
|
writeFloat32(e, t = !1) {
|
|
9729
|
-
|
|
9729
|
+
De(this, et, Jr).call(this, 4), $(this, pr).setFloat32($(this, Mt), e, t), De(this, et, Xr).call(this, 4);
|
|
9730
9730
|
}
|
|
9731
9731
|
writeFloat64(e, t = !1) {
|
|
9732
|
-
|
|
9732
|
+
De(this, et, Jr).call(this, 8), $(this, pr).setFloat64($(this, Mt), e, t), De(this, et, Xr).call(this, 8);
|
|
9733
9733
|
}
|
|
9734
9734
|
clear() {
|
|
9735
|
-
kt(this, Un, 0), kt(this, qt, []),
|
|
9735
|
+
kt(this, Un, 0), kt(this, qt, []), De(this, et, Qn).call(this);
|
|
9736
9736
|
}
|
|
9737
9737
|
};
|
|
9738
9738
|
Rn = new WeakMap(), qt = new WeakMap(), pr = new WeakMap(), Mt = new WeakMap(), Un = new WeakMap(), et = new WeakSet(), Qn = function() {
|
|
@@ -9749,7 +9749,7 @@ Rn = new WeakMap(), qt = new WeakMap(), pr = new WeakMap(), Mt = new WeakMap(),
|
|
|
9749
9749
|
const e = $(this, qt).length - 1;
|
|
9750
9750
|
return $(this, qt)[e].length - $(this, Mt);
|
|
9751
9751
|
}, Jr = function(e) {
|
|
9752
|
-
|
|
9752
|
+
De(this, et, Su).call(this) < e && (De(this, et, Lo).call(this), De(this, et, Qn).call(this));
|
|
9753
9753
|
}, Xr = function(e) {
|
|
9754
9754
|
kt(this, Mt, $(this, Mt) + e), kt(this, Un, $(this, Un) + e);
|
|
9755
9755
|
}, He(Ma, "defaultOptions", { chunkSize: 4096 });
|
|
@@ -9982,7 +9982,7 @@ const Va = class Va {
|
|
|
9982
9982
|
return $(this, Ar).subarray(e, $(this, Kt));
|
|
9983
9983
|
}
|
|
9984
9984
|
*[Symbol.iterator]() {
|
|
9985
|
-
if (yield*
|
|
9985
|
+
if (yield* De(this, Wt, ei).call(this, 0), $(this, Kt) !== $(this, Ar).length) throw new Error("Extra data in input");
|
|
9986
9986
|
}
|
|
9987
9987
|
};
|
|
9988
9988
|
Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(), Wt = new WeakSet(), ei = function* (e) {
|
|
@@ -10036,29 +10036,29 @@ Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(),
|
|
|
10036
10036
|
yield [i, s, typeof o == "bigint" ? -1n - o : -1 - Number(o), t, u];
|
|
10037
10037
|
break;
|
|
10038
10038
|
case me.BYTE_STRING:
|
|
10039
|
-
o === 1 / 0 ? yield*
|
|
10039
|
+
o === 1 / 0 ? yield* De(this, Wt, ks).call(this, i, e, t) : yield [i, s, De(this, Wt, Eu).call(this, o), t, o];
|
|
10040
10040
|
break;
|
|
10041
10041
|
case me.UTF8_STRING:
|
|
10042
|
-
o === 1 / 0 ? yield*
|
|
10042
|
+
o === 1 / 0 ? yield* De(this, Wt, ks).call(this, i, e, t) : yield [i, s, fm.decode(De(this, Wt, Eu).call(this, o)), t, o];
|
|
10043
10043
|
break;
|
|
10044
10044
|
case me.ARRAY:
|
|
10045
|
-
if (o === 1 / 0) yield*
|
|
10045
|
+
if (o === 1 / 0) yield* De(this, Wt, ks).call(this, i, e, t, !1);
|
|
10046
10046
|
else {
|
|
10047
10047
|
const h = Number(o);
|
|
10048
10048
|
yield [i, s, h, t, u];
|
|
10049
|
-
for (let m = 0; m < h; m++) yield*
|
|
10049
|
+
for (let m = 0; m < h; m++) yield* De(this, Wt, ei).call(this, e + 1);
|
|
10050
10050
|
}
|
|
10051
10051
|
break;
|
|
10052
10052
|
case me.MAP:
|
|
10053
|
-
if (o === 1 / 0) yield*
|
|
10053
|
+
if (o === 1 / 0) yield* De(this, Wt, ks).call(this, i, e, t, !1);
|
|
10054
10054
|
else {
|
|
10055
10055
|
const h = Number(o);
|
|
10056
10056
|
yield [i, s, h, t, u];
|
|
10057
|
-
for (let m = 0; m < h; m++) yield*
|
|
10057
|
+
for (let m = 0; m < h; m++) yield* De(this, Wt, ei).call(this, e), yield* De(this, Wt, ei).call(this, e);
|
|
10058
10058
|
}
|
|
10059
10059
|
break;
|
|
10060
10060
|
case me.TAG:
|
|
10061
|
-
yield [i, s, o, t, u], yield*
|
|
10061
|
+
yield [i, s, o, t, u], yield* De(this, Wt, ei).call(this, e);
|
|
10062
10062
|
break;
|
|
10063
10063
|
case me.SIMPLE_FLOAT: {
|
|
10064
10064
|
const h = o;
|
|
@@ -10072,7 +10072,7 @@ Ar = new WeakMap(), Dr = new WeakMap(), Kt = new WeakMap(), kr = new WeakMap(),
|
|
|
10072
10072
|
return t;
|
|
10073
10073
|
}, ks = function* (e, t, n, i = !0) {
|
|
10074
10074
|
for (yield [e, bt.INDEFINITE, 1 / 0, n, 1 / 0]; ; ) {
|
|
10075
|
-
const s =
|
|
10075
|
+
const s = De(this, Wt, ei).call(this, t), o = s.next(), [c, u, h] = o.value;
|
|
10076
10076
|
if (h === Er.BREAK) {
|
|
10077
10077
|
yield o.value, s.next();
|
|
10078
10078
|
return;
|
|
@@ -10178,7 +10178,7 @@ let Nn = (tn = class {
|
|
|
10178
10178
|
t = this.children;
|
|
10179
10179
|
break;
|
|
10180
10180
|
case me.MAP: {
|
|
10181
|
-
const n =
|
|
10181
|
+
const n = De(this, La, A0).call(this);
|
|
10182
10182
|
if ($(this, ar).sortKeys) {
|
|
10183
10183
|
let i;
|
|
10184
10184
|
for (const s of n) {
|
|
@@ -13481,12 +13481,12 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13481
13481
|
return A(l, p, d, a, 32);
|
|
13482
13482
|
}
|
|
13483
13483
|
function P(l, p, d, a) {
|
|
13484
|
-
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, Me = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24,
|
|
13484
|
+
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, Me = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Ue = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Oe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ne = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, Te = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, pe = g, Ae = S, re = E, ye = U, ve = z, J = we, C = X, B = ut, V = le, j = Ce, D = Be, L = Me, _e = Ue, Ve = Oe, ze = Ne, Le = Te, w, Ze = 0; Ze < 20; Ze += 2)
|
|
13485
13485
|
w = pe + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + pe | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, pe ^= w << 18 | w >>> 14, w = J + Ae | 0, j ^= w << 7 | w >>> 25, w = j + J | 0, Ve ^= w << 9 | w >>> 23, w = Ve + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Ve | 0, J ^= w << 18 | w >>> 14, w = D + C | 0, ze ^= w << 7 | w >>> 25, w = ze + D | 0, re ^= w << 9 | w >>> 23, w = re + ze | 0, C ^= w << 13 | w >>> 19, w = C + re | 0, D ^= w << 18 | w >>> 14, w = Le + L | 0, ye ^= w << 7 | w >>> 25, w = ye + Le | 0, B ^= w << 9 | w >>> 23, w = B + ye | 0, L ^= w << 13 | w >>> 19, w = L + B | 0, Le ^= w << 18 | w >>> 14, w = pe + ye | 0, Ae ^= w << 7 | w >>> 25, w = Ae + pe | 0, re ^= w << 9 | w >>> 23, w = re + Ae | 0, ye ^= w << 13 | w >>> 19, w = ye + re | 0, pe ^= w << 18 | w >>> 14, w = J + ve | 0, C ^= w << 7 | w >>> 25, w = C + J | 0, B ^= w << 9 | w >>> 23, w = B + C | 0, ve ^= w << 13 | w >>> 19, w = ve + B | 0, J ^= w << 18 | w >>> 14, w = D + j | 0, L ^= w << 7 | w >>> 25, w = L + D | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, D ^= w << 18 | w >>> 14, w = Le + ze | 0, _e ^= w << 7 | w >>> 25, w = _e + Le | 0, Ve ^= w << 9 | w >>> 23, w = Ve + _e | 0, ze ^= w << 13 | w >>> 19, w = ze + Ve | 0, Le ^= w << 18 | w >>> 14;
|
|
13486
|
-
pe = pe + g | 0, Ae = Ae + S | 0, re = re + E | 0, ye = ye + U | 0, ve = ve + z | 0, J = J + we | 0, C = C + X | 0, B = B + ut | 0, V = V + le | 0, j = j + Ce | 0, D = D + Be | 0, L = L + Me | 0, _e = _e +
|
|
13486
|
+
pe = pe + g | 0, Ae = Ae + S | 0, re = re + E | 0, ye = ye + U | 0, ve = ve + z | 0, J = J + we | 0, C = C + X | 0, B = B + ut | 0, V = V + le | 0, j = j + Ce | 0, D = D + Be | 0, L = L + Me | 0, _e = _e + Ue | 0, Ve = Ve + Oe | 0, ze = ze + Ne | 0, Le = Le + Te | 0, l[0] = pe >>> 0 & 255, l[1] = pe >>> 8 & 255, l[2] = pe >>> 16 & 255, l[3] = pe >>> 24 & 255, l[4] = Ae >>> 0 & 255, l[5] = Ae >>> 8 & 255, l[6] = Ae >>> 16 & 255, l[7] = Ae >>> 24 & 255, l[8] = re >>> 0 & 255, l[9] = re >>> 8 & 255, l[10] = re >>> 16 & 255, l[11] = re >>> 24 & 255, l[12] = ye >>> 0 & 255, l[13] = ye >>> 8 & 255, l[14] = ye >>> 16 & 255, l[15] = ye >>> 24 & 255, l[16] = ve >>> 0 & 255, l[17] = ve >>> 8 & 255, l[18] = ve >>> 16 & 255, l[19] = ve >>> 24 & 255, l[20] = J >>> 0 & 255, l[21] = J >>> 8 & 255, l[22] = J >>> 16 & 255, l[23] = J >>> 24 & 255, l[24] = C >>> 0 & 255, l[25] = C >>> 8 & 255, l[26] = C >>> 16 & 255, l[27] = C >>> 24 & 255, l[28] = B >>> 0 & 255, l[29] = B >>> 8 & 255, l[30] = B >>> 16 & 255, l[31] = B >>> 24 & 255, l[32] = V >>> 0 & 255, l[33] = V >>> 8 & 255, l[34] = V >>> 16 & 255, l[35] = V >>> 24 & 255, l[36] = j >>> 0 & 255, l[37] = j >>> 8 & 255, l[38] = j >>> 16 & 255, l[39] = j >>> 24 & 255, l[40] = D >>> 0 & 255, l[41] = D >>> 8 & 255, l[42] = D >>> 16 & 255, l[43] = D >>> 24 & 255, l[44] = L >>> 0 & 255, l[45] = L >>> 8 & 255, l[46] = L >>> 16 & 255, l[47] = L >>> 24 & 255, l[48] = _e >>> 0 & 255, l[49] = _e >>> 8 & 255, l[50] = _e >>> 16 & 255, l[51] = _e >>> 24 & 255, l[52] = Ve >>> 0 & 255, l[53] = Ve >>> 8 & 255, l[54] = Ve >>> 16 & 255, l[55] = Ve >>> 24 & 255, l[56] = ze >>> 0 & 255, l[57] = ze >>> 8 & 255, l[58] = ze >>> 16 & 255, l[59] = ze >>> 24 & 255, l[60] = Le >>> 0 & 255, l[61] = Le >>> 8 & 255, l[62] = Le >>> 16 & 255, l[63] = Le >>> 24 & 255;
|
|
13487
13487
|
}
|
|
13488
13488
|
function R(l, p, d, a) {
|
|
13489
|
-
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, Me = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24,
|
|
13489
|
+
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, U = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, X = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ut = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, le = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Ce = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Be = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, Me = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Ue = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Oe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ne = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, Te = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, pe = g, Ae = S, re = E, ye = U, ve = z, J = we, C = X, B = ut, V = le, j = Ce, D = Be, L = Me, _e = Ue, Ve = Oe, ze = Ne, Le = Te, w, Ze = 0; Ze < 20; Ze += 2)
|
|
13490
13490
|
w = pe + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + pe | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, pe ^= w << 18 | w >>> 14, w = J + Ae | 0, j ^= w << 7 | w >>> 25, w = j + J | 0, Ve ^= w << 9 | w >>> 23, w = Ve + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Ve | 0, J ^= w << 18 | w >>> 14, w = D + C | 0, ze ^= w << 7 | w >>> 25, w = ze + D | 0, re ^= w << 9 | w >>> 23, w = re + ze | 0, C ^= w << 13 | w >>> 19, w = C + re | 0, D ^= w << 18 | w >>> 14, w = Le + L | 0, ye ^= w << 7 | w >>> 25, w = ye + Le | 0, B ^= w << 9 | w >>> 23, w = B + ye | 0, L ^= w << 13 | w >>> 19, w = L + B | 0, Le ^= w << 18 | w >>> 14, w = pe + ye | 0, Ae ^= w << 7 | w >>> 25, w = Ae + pe | 0, re ^= w << 9 | w >>> 23, w = re + Ae | 0, ye ^= w << 13 | w >>> 19, w = ye + re | 0, pe ^= w << 18 | w >>> 14, w = J + ve | 0, C ^= w << 7 | w >>> 25, w = C + J | 0, B ^= w << 9 | w >>> 23, w = B + C | 0, ve ^= w << 13 | w >>> 19, w = ve + B | 0, J ^= w << 18 | w >>> 14, w = D + j | 0, L ^= w << 7 | w >>> 25, w = L + D | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, D ^= w << 18 | w >>> 14, w = Le + ze | 0, _e ^= w << 7 | w >>> 25, w = _e + Le | 0, Ve ^= w << 9 | w >>> 23, w = Ve + _e | 0, ze ^= w << 13 | w >>> 19, w = ze + Ve | 0, Le ^= w << 18 | w >>> 14;
|
|
13491
13491
|
l[0] = pe >>> 0 & 255, l[1] = pe >>> 8 & 255, l[2] = pe >>> 16 & 255, l[3] = pe >>> 24 & 255, l[4] = J >>> 0 & 255, l[5] = J >>> 8 & 255, l[6] = J >>> 16 & 255, l[7] = J >>> 24 & 255, l[8] = D >>> 0 & 255, l[9] = D >>> 8 & 255, l[10] = D >>> 16 & 255, l[11] = D >>> 24 & 255, l[12] = Le >>> 0 & 255, l[13] = Le >>> 8 & 255, l[14] = Le >>> 16 & 255, l[15] = Le >>> 24 & 255, l[16] = C >>> 0 & 255, l[17] = C >>> 8 & 255, l[18] = C >>> 16 & 255, l[19] = C >>> 24 & 255, l[20] = B >>> 0 & 255, l[21] = B >>> 8 & 255, l[22] = B >>> 16 & 255, l[23] = B >>> 24 & 255, l[24] = V >>> 0 & 255, l[25] = V >>> 8 & 255, l[26] = V >>> 16 & 255, l[27] = V >>> 24 & 255, l[28] = j >>> 0 & 255, l[29] = j >>> 8 & 255, l[30] = j >>> 16 & 255, l[31] = j >>> 24 & 255;
|
|
13492
13492
|
}
|
|
@@ -13497,7 +13497,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13497
13497
|
R(l, p, d, a);
|
|
13498
13498
|
}
|
|
13499
13499
|
var Ye = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
|
|
13500
|
-
function
|
|
13500
|
+
function je(l, p, d, a, g, S, E) {
|
|
13501
13501
|
var U = new Uint8Array(16), z = new Uint8Array(64), we, X;
|
|
13502
13502
|
for (X = 0; X < 16; X++) U[X] = 0;
|
|
13503
13503
|
for (X = 0; X < 8; X++) U[X] = S[X];
|
|
@@ -13535,7 +13535,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13535
13535
|
var U = new Uint8Array(32);
|
|
13536
13536
|
Ge(U, S, E, Ye);
|
|
13537
13537
|
for (var z = new Uint8Array(8), we = 0; we < 8; we++) z[we] = S[we + 16];
|
|
13538
|
-
return
|
|
13538
|
+
return je(l, p, d, a, g, z, U);
|
|
13539
13539
|
}
|
|
13540
13540
|
var xe = function(l) {
|
|
13541
13541
|
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0;
|
|
@@ -13543,8 +13543,8 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13543
13543
|
p = l[0] & 255 | (l[1] & 255) << 8, this.r[0] = p & 8191, d = l[2] & 255 | (l[3] & 255) << 8, this.r[1] = (p >>> 13 | d << 3) & 8191, a = l[4] & 255 | (l[5] & 255) << 8, this.r[2] = (d >>> 10 | a << 6) & 7939, g = l[6] & 255 | (l[7] & 255) << 8, this.r[3] = (a >>> 7 | g << 9) & 8191, S = l[8] & 255 | (l[9] & 255) << 8, this.r[4] = (g >>> 4 | S << 12) & 255, this.r[5] = S >>> 1 & 8190, E = l[10] & 255 | (l[11] & 255) << 8, this.r[6] = (S >>> 14 | E << 2) & 8191, U = l[12] & 255 | (l[13] & 255) << 8, this.r[7] = (E >>> 11 | U << 5) & 8065, z = l[14] & 255 | (l[15] & 255) << 8, this.r[8] = (U >>> 8 | z << 8) & 8191, this.r[9] = z >>> 5 & 127, this.pad[0] = l[16] & 255 | (l[17] & 255) << 8, this.pad[1] = l[18] & 255 | (l[19] & 255) << 8, this.pad[2] = l[20] & 255 | (l[21] & 255) << 8, this.pad[3] = l[22] & 255 | (l[23] & 255) << 8, this.pad[4] = l[24] & 255 | (l[25] & 255) << 8, this.pad[5] = l[26] & 255 | (l[27] & 255) << 8, this.pad[6] = l[28] & 255 | (l[29] & 255) << 8, this.pad[7] = l[30] & 255 | (l[31] & 255) << 8;
|
|
13544
13544
|
};
|
|
13545
13545
|
xe.prototype.blocks = function(l, p, d) {
|
|
13546
|
-
for (var a = this.fin ? 0 : 2048, g, S, E, U, z, we, X, ut, le, Ce, Be, Me,
|
|
13547
|
-
g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, ye += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, J += (S >>> 10 | E << 6) & 8191, U = l[p + 6] & 255 | (l[p + 7] & 255) << 8, C += (E >>> 7 | U << 9) & 8191, z = l[p + 8] & 255 | (l[p + 9] & 255) << 8, B += (U >>> 4 | z << 12) & 8191, V += z >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (z >>> 14 | we << 2) & 8191, X = l[p + 12] & 255 | (l[p + 13] & 255) << 8, D += (we >>> 11 | X << 5) & 8191, ut = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (X >>> 8 | ut << 8) & 8191, _e += ut >>> 5 | a, le = 0, Ce = le, Ce += ye * Ve, Ce += ve * (5 * at), Ce += J * (5 * ot), Ce += C * (5 * qe), Ce += B * (5 * ht), le = Ce >>> 13, Ce &= 8191, Ce += V * (5 * ft), Ce += j * (5 * Ze), Ce += D * (5 * w), Ce += L * (5 * Le), Ce += _e * (5 * ze), le += Ce >>> 13, Ce &= 8191, Be = le, Be += ye * ze, Be += ve * Ve, Be += J * (5 * at), Be += C * (5 * ot), Be += B * (5 * qe), le = Be >>> 13, Be &= 8191, Be += V * (5 * ht), Be += j * (5 * ft), Be += D * (5 * Ze), Be += L * (5 * w), Be += _e * (5 * Le), le += Be >>> 13, Be &= 8191, Me = le, Me += ye * Le, Me += ve * ze, Me += J * Ve, Me += C * (5 * at), Me += B * (5 * ot), le = Me >>> 13, Me &= 8191, Me += V * (5 * qe), Me += j * (5 * ht), Me += D * (5 * ft), Me += L * (5 * Ze), Me += _e * (5 * w), le += Me >>> 13, Me &= 8191,
|
|
13546
|
+
for (var a = this.fin ? 0 : 2048, g, S, E, U, z, we, X, ut, le, Ce, Be, Me, Ue, Oe, Ne, Te, pe, Ae, re, ye = this.h[0], ve = this.h[1], J = this.h[2], C = this.h[3], B = this.h[4], V = this.h[5], j = this.h[6], D = this.h[7], L = this.h[8], _e = this.h[9], Ve = this.r[0], ze = this.r[1], Le = this.r[2], w = this.r[3], Ze = this.r[4], ft = this.r[5], ht = this.r[6], qe = this.r[7], ot = this.r[8], at = this.r[9]; d >= 16; )
|
|
13547
|
+
g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, ye += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, J += (S >>> 10 | E << 6) & 8191, U = l[p + 6] & 255 | (l[p + 7] & 255) << 8, C += (E >>> 7 | U << 9) & 8191, z = l[p + 8] & 255 | (l[p + 9] & 255) << 8, B += (U >>> 4 | z << 12) & 8191, V += z >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (z >>> 14 | we << 2) & 8191, X = l[p + 12] & 255 | (l[p + 13] & 255) << 8, D += (we >>> 11 | X << 5) & 8191, ut = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (X >>> 8 | ut << 8) & 8191, _e += ut >>> 5 | a, le = 0, Ce = le, Ce += ye * Ve, Ce += ve * (5 * at), Ce += J * (5 * ot), Ce += C * (5 * qe), Ce += B * (5 * ht), le = Ce >>> 13, Ce &= 8191, Ce += V * (5 * ft), Ce += j * (5 * Ze), Ce += D * (5 * w), Ce += L * (5 * Le), Ce += _e * (5 * ze), le += Ce >>> 13, Ce &= 8191, Be = le, Be += ye * ze, Be += ve * Ve, Be += J * (5 * at), Be += C * (5 * ot), Be += B * (5 * qe), le = Be >>> 13, Be &= 8191, Be += V * (5 * ht), Be += j * (5 * ft), Be += D * (5 * Ze), Be += L * (5 * w), Be += _e * (5 * Le), le += Be >>> 13, Be &= 8191, Me = le, Me += ye * Le, Me += ve * ze, Me += J * Ve, Me += C * (5 * at), Me += B * (5 * ot), le = Me >>> 13, Me &= 8191, Me += V * (5 * qe), Me += j * (5 * ht), Me += D * (5 * ft), Me += L * (5 * Ze), Me += _e * (5 * w), le += Me >>> 13, Me &= 8191, Ue = le, Ue += ye * w, Ue += ve * Le, Ue += J * ze, Ue += C * Ve, Ue += B * (5 * at), le = Ue >>> 13, Ue &= 8191, Ue += V * (5 * ot), Ue += j * (5 * qe), Ue += D * (5 * ht), Ue += L * (5 * ft), Ue += _e * (5 * Ze), le += Ue >>> 13, Ue &= 8191, Oe = le, Oe += ye * Ze, Oe += ve * w, Oe += J * Le, Oe += C * ze, Oe += B * Ve, le = Oe >>> 13, Oe &= 8191, Oe += V * (5 * at), Oe += j * (5 * ot), Oe += D * (5 * qe), Oe += L * (5 * ht), Oe += _e * (5 * ft), le += Oe >>> 13, Oe &= 8191, Ne = le, Ne += ye * ft, Ne += ve * Ze, Ne += J * w, Ne += C * Le, Ne += B * ze, le = Ne >>> 13, Ne &= 8191, Ne += V * Ve, Ne += j * (5 * at), Ne += D * (5 * ot), Ne += L * (5 * qe), Ne += _e * (5 * ht), le += Ne >>> 13, Ne &= 8191, Te = le, Te += ye * ht, Te += ve * ft, Te += J * Ze, Te += C * w, Te += B * Le, le = Te >>> 13, Te &= 8191, Te += V * ze, Te += j * Ve, Te += D * (5 * at), Te += L * (5 * ot), Te += _e * (5 * qe), le += Te >>> 13, Te &= 8191, pe = le, pe += ye * qe, pe += ve * ht, pe += J * ft, pe += C * Ze, pe += B * w, le = pe >>> 13, pe &= 8191, pe += V * Le, pe += j * ze, pe += D * Ve, pe += L * (5 * at), pe += _e * (5 * ot), le += pe >>> 13, pe &= 8191, Ae = le, Ae += ye * ot, Ae += ve * qe, Ae += J * ht, Ae += C * ft, Ae += B * Ze, le = Ae >>> 13, Ae &= 8191, Ae += V * w, Ae += j * Le, Ae += D * ze, Ae += L * Ve, Ae += _e * (5 * at), le += Ae >>> 13, Ae &= 8191, re = le, re += ye * at, re += ve * ot, re += J * qe, re += C * ht, re += B * ft, le = re >>> 13, re &= 8191, re += V * Ze, re += j * w, re += D * Le, re += L * ze, re += _e * Ve, le += re >>> 13, re &= 8191, le = (le << 2) + le | 0, le = le + Ce | 0, Ce = le & 8191, le = le >>> 13, Be += le, ye = Ce, ve = Be, J = Me, C = Ue, B = Oe, V = Ne, j = Te, D = pe, L = Ae, _e = re, p += 16, d -= 16;
|
|
13548
13548
|
this.h[0] = ye, this.h[1] = ve, this.h[2] = J, this.h[3] = C, this.h[4] = B, this.h[5] = V, this.h[6] = j, this.h[7] = D, this.h[8] = L, this.h[9] = _e;
|
|
13549
13549
|
}, xe.prototype.finish = function(l, p) {
|
|
13550
13550
|
var d = new Uint16Array(10), a, g, S, E;
|
|
@@ -13596,7 +13596,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13596
13596
|
for (ie(l, 0, p, 0, d, a, g), S = 0; S < 32; S++) l[S] = 0;
|
|
13597
13597
|
return 0;
|
|
13598
13598
|
}
|
|
13599
|
-
function
|
|
13599
|
+
function Qe(l, p) {
|
|
13600
13600
|
var d;
|
|
13601
13601
|
for (d = 0; d < 16; d++) l[d] = p[d] | 0;
|
|
13602
13602
|
}
|
|
@@ -13641,8 +13641,8 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13641
13641
|
for (var a = 0; a < 16; a++) l[a] = p[a] - d[a];
|
|
13642
13642
|
}
|
|
13643
13643
|
function ee(l, p, d) {
|
|
13644
|
-
var a, g, S = 0, E = 0, U = 0, z = 0, we = 0, X = 0, ut = 0, le = 0, Ce = 0, Be = 0, Me = 0,
|
|
13645
|
-
a = p[0], S += a * w, E += a * Ze, U += a * ft, z += a * ht, we += a * qe, X += a * ot, ut += a * at, le += a * $t, Ce += a * wt, Be += a * Nt, Me += a * Pt,
|
|
13644
|
+
var a, g, S = 0, E = 0, U = 0, z = 0, we = 0, X = 0, ut = 0, le = 0, Ce = 0, Be = 0, Me = 0, Ue = 0, Oe = 0, Ne = 0, Te = 0, pe = 0, Ae = 0, re = 0, ye = 0, ve = 0, J = 0, C = 0, B = 0, V = 0, j = 0, D = 0, L = 0, _e = 0, Ve = 0, ze = 0, Le = 0, w = d[0], Ze = d[1], ft = d[2], ht = d[3], qe = d[4], ot = d[5], at = d[6], $t = d[7], wt = d[8], Nt = d[9], Pt = d[10], jt = d[11], Lt = d[12], Qt = d[13], er = d[14], tr = d[15];
|
|
13645
|
+
a = p[0], S += a * w, E += a * Ze, U += a * ft, z += a * ht, we += a * qe, X += a * ot, ut += a * at, le += a * $t, Ce += a * wt, Be += a * Nt, Me += a * Pt, Ue += a * jt, Oe += a * Lt, Ne += a * Qt, Te += a * er, pe += a * tr, a = p[1], E += a * w, U += a * Ze, z += a * ft, we += a * ht, X += a * qe, ut += a * ot, le += a * at, Ce += a * $t, Be += a * wt, Me += a * Nt, Ue += a * Pt, Oe += a * jt, Ne += a * Lt, Te += a * Qt, pe += a * er, Ae += a * tr, a = p[2], U += a * w, z += a * Ze, we += a * ft, X += a * ht, ut += a * qe, le += a * ot, Ce += a * at, Be += a * $t, Me += a * wt, Ue += a * Nt, Oe += a * Pt, Ne += a * jt, Te += a * Lt, pe += a * Qt, Ae += a * er, re += a * tr, a = p[3], z += a * w, we += a * Ze, X += a * ft, ut += a * ht, le += a * qe, Ce += a * ot, Be += a * at, Me += a * $t, Ue += a * wt, Oe += a * Nt, Ne += a * Pt, Te += a * jt, pe += a * Lt, Ae += a * Qt, re += a * er, ye += a * tr, a = p[4], we += a * w, X += a * Ze, ut += a * ft, le += a * ht, Ce += a * qe, Be += a * ot, Me += a * at, Ue += a * $t, Oe += a * wt, Ne += a * Nt, Te += a * Pt, pe += a * jt, Ae += a * Lt, re += a * Qt, ye += a * er, ve += a * tr, a = p[5], X += a * w, ut += a * Ze, le += a * ft, Ce += a * ht, Be += a * qe, Me += a * ot, Ue += a * at, Oe += a * $t, Ne += a * wt, Te += a * Nt, pe += a * Pt, Ae += a * jt, re += a * Lt, ye += a * Qt, ve += a * er, J += a * tr, a = p[6], ut += a * w, le += a * Ze, Ce += a * ft, Be += a * ht, Me += a * qe, Ue += a * ot, Oe += a * at, Ne += a * $t, Te += a * wt, pe += a * Nt, Ae += a * Pt, re += a * jt, ye += a * Lt, ve += a * Qt, J += a * er, C += a * tr, a = p[7], le += a * w, Ce += a * Ze, Be += a * ft, Me += a * ht, Ue += a * qe, Oe += a * ot, Ne += a * at, Te += a * $t, pe += a * wt, Ae += a * Nt, re += a * Pt, ye += a * jt, ve += a * Lt, J += a * Qt, C += a * er, B += a * tr, a = p[8], Ce += a * w, Be += a * Ze, Me += a * ft, Ue += a * ht, Oe += a * qe, Ne += a * ot, Te += a * at, pe += a * $t, Ae += a * wt, re += a * Nt, ye += a * Pt, ve += a * jt, J += a * Lt, C += a * Qt, B += a * er, V += a * tr, a = p[9], Be += a * w, Me += a * Ze, Ue += a * ft, Oe += a * ht, Ne += a * qe, Te += a * ot, pe += a * at, Ae += a * $t, re += a * wt, ye += a * Nt, ve += a * Pt, J += a * jt, C += a * Lt, B += a * Qt, V += a * er, j += a * tr, a = p[10], Me += a * w, Ue += a * Ze, Oe += a * ft, Ne += a * ht, Te += a * qe, pe += a * ot, Ae += a * at, re += a * $t, ye += a * wt, ve += a * Nt, J += a * Pt, C += a * jt, B += a * Lt, V += a * Qt, j += a * er, D += a * tr, a = p[11], Ue += a * w, Oe += a * Ze, Ne += a * ft, Te += a * ht, pe += a * qe, Ae += a * ot, re += a * at, ye += a * $t, ve += a * wt, J += a * Nt, C += a * Pt, B += a * jt, V += a * Lt, j += a * Qt, D += a * er, L += a * tr, a = p[12], Oe += a * w, Ne += a * Ze, Te += a * ft, pe += a * ht, Ae += a * qe, re += a * ot, ye += a * at, ve += a * $t, J += a * wt, C += a * Nt, B += a * Pt, V += a * jt, j += a * Lt, D += a * Qt, L += a * er, _e += a * tr, a = p[13], Ne += a * w, Te += a * Ze, pe += a * ft, Ae += a * ht, re += a * qe, ye += a * ot, ve += a * at, J += a * $t, C += a * wt, B += a * Nt, V += a * Pt, j += a * jt, D += a * Lt, L += a * Qt, _e += a * er, Ve += a * tr, a = p[14], Te += a * w, pe += a * Ze, Ae += a * ft, re += a * ht, ye += a * qe, ve += a * ot, J += a * at, C += a * $t, B += a * wt, V += a * Nt, j += a * Pt, D += a * jt, L += a * Lt, _e += a * Qt, Ve += a * er, ze += a * tr, a = p[15], pe += a * w, Ae += a * Ze, re += a * ft, ye += a * ht, ve += a * qe, J += a * ot, C += a * at, B += a * $t, V += a * wt, j += a * Nt, D += a * Pt, L += a * jt, _e += a * Lt, Ve += a * Qt, ze += a * er, Le += a * tr, S += 38 * Ae, E += 38 * re, U += 38 * ye, z += 38 * ve, we += 38 * J, X += 38 * C, ut += 38 * B, le += 38 * V, Ce += 38 * j, Be += 38 * D, Me += 38 * L, Ue += 38 * _e, Oe += 38 * Ve, Ne += 38 * ze, Te += 38 * Le, g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = U + g + 65535, g = Math.floor(a / 65536), U = a - g * 65536, a = z + g + 65535, g = Math.floor(a / 65536), z = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = X + g + 65535, g = Math.floor(a / 65536), X = a - g * 65536, a = ut + g + 65535, g = Math.floor(a / 65536), ut = a - g * 65536, a = le + g + 65535, g = Math.floor(a / 65536), le = a - g * 65536, a = Ce + g + 65535, g = Math.floor(a / 65536), Ce = a - g * 65536, a = Be + g + 65535, g = Math.floor(a / 65536), Be = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = Te + g + 65535, g = Math.floor(a / 65536), Te = a - g * 65536, a = pe + g + 65535, g = Math.floor(a / 65536), pe = a - g * 65536, S += g - 1 + 37 * (g - 1), g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = U + g + 65535, g = Math.floor(a / 65536), U = a - g * 65536, a = z + g + 65535, g = Math.floor(a / 65536), z = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = X + g + 65535, g = Math.floor(a / 65536), X = a - g * 65536, a = ut + g + 65535, g = Math.floor(a / 65536), ut = a - g * 65536, a = le + g + 65535, g = Math.floor(a / 65536), le = a - g * 65536, a = Ce + g + 65535, g = Math.floor(a / 65536), Ce = a - g * 65536, a = Be + g + 65535, g = Math.floor(a / 65536), Be = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = Te + g + 65535, g = Math.floor(a / 65536), Te = a - g * 65536, a = pe + g + 65535, g = Math.floor(a / 65536), pe = a - g * 65536, S += g - 1 + 37 * (g - 1), l[0] = S, l[1] = E, l[2] = U, l[3] = z, l[4] = we, l[5] = X, l[6] = ut, l[7] = le, l[8] = Ce, l[9] = Be, l[10] = Me, l[11] = Ue, l[12] = Oe, l[13] = Ne, l[14] = Te, l[15] = pe;
|
|
13646
13646
|
}
|
|
13647
13647
|
function pt(l, p) {
|
|
13648
13648
|
ee(l, p, p);
|
|
@@ -13855,11 +13855,11 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13855
13855
|
1246189591
|
|
13856
13856
|
];
|
|
13857
13857
|
function gs(l, p, d, a) {
|
|
13858
|
-
for (var g = new Int32Array(16), S = new Int32Array(16), E, U, z, we, X, ut, le, Ce, Be, Me,
|
|
13858
|
+
for (var g = new Int32Array(16), S = new Int32Array(16), E, U, z, we, X, ut, le, Ce, Be, Me, Ue, Oe, Ne, Te, pe, Ae, re, ye, ve, J, C, B, V, j, D, L, _e = l[0], Ve = l[1], ze = l[2], Le = l[3], w = l[4], Ze = l[5], ft = l[6], ht = l[7], qe = p[0], ot = p[1], at = p[2], $t = p[3], wt = p[4], Nt = p[5], Pt = p[6], jt = p[7], Lt = 0; a >= 128; ) {
|
|
13859
13859
|
for (ve = 0; ve < 16; ve++)
|
|
13860
13860
|
J = 8 * ve + Lt, g[ve] = d[J + 0] << 24 | d[J + 1] << 16 | d[J + 2] << 8 | d[J + 3], S[ve] = d[J + 4] << 24 | d[J + 5] << 16 | d[J + 6] << 8 | d[J + 7];
|
|
13861
13861
|
for (ve = 0; ve < 80; ve++)
|
|
13862
|
-
if (E = _e, U = Ve, z = ze, we = Le, X = w, ut = Ze, le = ft, Ce = ht, Be = qe, Me = ot,
|
|
13862
|
+
if (E = _e, U = Ve, z = ze, we = Le, X = w, ut = Ze, le = ft, Ce = ht, Be = qe, Me = ot, Ue = at, Oe = $t, Ne = wt, Te = Nt, pe = Pt, Ae = jt, C = ht, B = jt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = (w >>> 14 | wt << 18) ^ (w >>> 18 | wt << 14) ^ (wt >>> 9 | w << 23), B = (wt >>> 14 | w << 18) ^ (wt >>> 18 | w << 14) ^ (w >>> 9 | wt << 23), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = w & Ze ^ ~w & ft, B = wt & Nt ^ ~wt & Pt, V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = ys[ve * 2], B = ys[ve * 2 + 1], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = g[ve % 16], B = S[ve % 16], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, re = D & 65535 | L << 16, ye = V & 65535 | j << 16, C = re, B = ye, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = (_e >>> 28 | qe << 4) ^ (qe >>> 2 | _e << 30) ^ (qe >>> 7 | _e << 25), B = (qe >>> 28 | _e << 4) ^ (_e >>> 2 | qe << 30) ^ (_e >>> 7 | qe << 25), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, C = _e & Ve ^ _e & ze ^ Ve & ze, B = qe & ot ^ qe & at ^ ot & at, V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, Ce = D & 65535 | L << 16, Ae = V & 65535 | j << 16, C = we, B = Oe, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = re, B = ye, V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, we = D & 65535 | L << 16, Oe = V & 65535 | j << 16, Ve = E, ze = U, Le = z, w = we, Ze = X, ft = ut, ht = le, _e = Ce, ot = Be, at = Me, $t = Ue, wt = Oe, Nt = Ne, Pt = Te, jt = pe, qe = Ae, ve % 16 === 15)
|
|
13863
13863
|
for (J = 0; J < 16; J++)
|
|
13864
13864
|
C = g[J], B = S[J], V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = g[(J + 9) % 16], B = S[(J + 9) % 16], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, re = g[(J + 1) % 16], ye = S[(J + 1) % 16], C = (re >>> 1 | ye << 31) ^ (re >>> 8 | ye << 24) ^ re >>> 7, B = (ye >>> 1 | re << 31) ^ (ye >>> 8 | re << 24) ^ (ye >>> 7 | re << 25), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, re = g[(J + 14) % 16], ye = S[(J + 14) % 16], C = (re >>> 19 | ye << 13) ^ (ye >>> 29 | re << 3) ^ re >>> 6, B = (ye >>> 19 | re << 13) ^ (re >>> 29 | ye << 3) ^ (ye >>> 6 | re << 26), V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, g[J] = D & 65535 | L << 16, S[J] = V & 65535 | j << 16;
|
|
13865
13865
|
C = _e, B = qe, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[0], B = p[0], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[0] = _e = D & 65535 | L << 16, p[0] = qe = V & 65535 | j << 16, C = Ve, B = ot, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[1], B = p[1], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[1] = Ve = D & 65535 | L << 16, p[1] = ot = V & 65535 | j << 16, C = ze, B = at, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[2], B = p[2], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[2] = ze = D & 65535 | L << 16, p[2] = at = V & 65535 | j << 16, C = Le, B = $t, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[3], B = p[3], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[3] = Le = D & 65535 | L << 16, p[3] = $t = V & 65535 | j << 16, C = w, B = wt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[4], B = p[4], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[4] = w = D & 65535 | L << 16, p[4] = wt = V & 65535 | j << 16, C = Ze, B = Nt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[5], B = p[5], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[5] = Ze = D & 65535 | L << 16, p[5] = Nt = V & 65535 | j << 16, C = ft, B = Pt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[6], B = p[6], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[6] = ft = D & 65535 | L << 16, p[6] = Pt = V & 65535 | j << 16, C = ht, B = jt, V = B & 65535, j = B >>> 16, D = C & 65535, L = C >>> 16, C = l[7], B = p[7], V += B & 65535, j += B >>> 16, D += C & 65535, L += C >>> 16, j += V >>> 16, D += j >>> 16, L += D >>> 16, l[7] = ht = D & 65535 | L << 16, p[7] = jt = V & 65535 | j << 16, Lt += 128, a -= 128;
|
|
@@ -13887,12 +13887,12 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13887
13887
|
}
|
|
13888
13888
|
function ms(l, p, d) {
|
|
13889
13889
|
var a, g;
|
|
13890
|
-
for (
|
|
13890
|
+
for (Qe(l[0], o), Qe(l[1], c), Qe(l[2], c), Qe(l[3], o), g = 255; g >= 0; --g)
|
|
13891
13891
|
a = d[g / 8 | 0] >> (g & 7) & 1, Bi(l, p, a), Xn(p, l), Xn(l, l), Bi(l, p, a);
|
|
13892
13892
|
}
|
|
13893
13893
|
function Oi(l, p) {
|
|
13894
13894
|
var d = [t(), t(), t(), t()];
|
|
13895
|
-
|
|
13895
|
+
Qe(d[0], x), Qe(d[1], G), Qe(d[2], c), ee(d[3], x, G), ms(l, d, p);
|
|
13896
13896
|
}
|
|
13897
13897
|
function ws(l, p, d) {
|
|
13898
13898
|
var a = new Uint8Array(64), g = [t(), t(), t(), t()], S;
|
|
@@ -13935,7 +13935,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13935
13935
|
}
|
|
13936
13936
|
function As(l, p) {
|
|
13937
13937
|
var d = t(), a = t(), g = t(), S = t(), E = t(), U = t(), z = t();
|
|
13938
|
-
return
|
|
13938
|
+
return Qe(l[2], c), fe(l[1], p), pt(g, l[1]), ee(S, g, h), vt(g, g, l[2]), st(S, l[2], S), pt(E, S), pt(U, E), ee(z, U, E), ee(d, z, g), ee(d, d, S), fs(d, d), ee(d, d, g), ee(d, d, S), ee(d, d, S), ee(l[0], d, S), pt(a, l[0]), ee(a, a, S), Ut(a, g) && ee(l[0], l[0], N), pt(a, l[0]), ee(a, a, S), Ut(a, g) ? -1 : (Dt(l[0]) === p[31] >> 7 && vt(l[0], o, l[0]), ee(l[3], l[0], l[1]), 0);
|
|
13939
13939
|
}
|
|
13940
13940
|
function _(l, p, d, a) {
|
|
13941
13941
|
var g, S = new Uint8Array(32), E = new Uint8Array(64), U = [t(), t(), t(), t()], z = [t(), t(), t(), t()];
|
|
@@ -13949,12 +13949,12 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13949
13949
|
for (g = 0; g < d; g++) l[g] = p[g + 64];
|
|
13950
13950
|
return d;
|
|
13951
13951
|
}
|
|
13952
|
-
var k = 32, T = 24, q = 32, be = 16, St = 32, _t = 32,
|
|
13952
|
+
var k = 32, T = 24, q = 32, be = 16, St = 32, _t = 32, Re = 32, Z = 32, te = 32, he = T, ge = q, Je = be, rt = 64, mt = 32, zt = 64, Ti = 32, Ss = 64;
|
|
13953
13953
|
e.lowlevel = {
|
|
13954
13954
|
crypto_core_hsalsa20: Ge,
|
|
13955
13955
|
crypto_stream_xor: ie,
|
|
13956
13956
|
crypto_stream: ne,
|
|
13957
|
-
crypto_stream_salsa20_xor:
|
|
13957
|
+
crypto_stream_salsa20_xor: je,
|
|
13958
13958
|
crypto_stream_salsa20: W,
|
|
13959
13959
|
crypto_onetimeauth: tt,
|
|
13960
13960
|
crypto_onetimeauth_verify: At,
|
|
@@ -13979,7 +13979,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13979
13979
|
crypto_secretbox_BOXZEROBYTES: be,
|
|
13980
13980
|
crypto_scalarmult_BYTES: St,
|
|
13981
13981
|
crypto_scalarmult_SCALARBYTES: _t,
|
|
13982
|
-
crypto_box_PUBLICKEYBYTES:
|
|
13982
|
+
crypto_box_PUBLICKEYBYTES: Re,
|
|
13983
13983
|
crypto_box_SECRETKEYBYTES: Z,
|
|
13984
13984
|
crypto_box_BEFORENMBYTES: te,
|
|
13985
13985
|
crypto_box_NONCEBYTES: he,
|
|
@@ -14001,7 +14001,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14001
14001
|
Z: vt,
|
|
14002
14002
|
pow2523: fs,
|
|
14003
14003
|
add: Xn,
|
|
14004
|
-
set25519:
|
|
14004
|
+
set25519: Qe,
|
|
14005
14005
|
modL: bs,
|
|
14006
14006
|
scalarmult: ms,
|
|
14007
14007
|
scalarbase: Oi
|
|
@@ -14011,7 +14011,7 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14011
14011
|
if (p.length !== T) throw new Error("bad nonce size");
|
|
14012
14012
|
}
|
|
14013
14013
|
function Cy(l, p) {
|
|
14014
|
-
if (l.length !==
|
|
14014
|
+
if (l.length !== Re) throw new Error("bad public key size");
|
|
14015
14015
|
if (p.length !== Z) throw new Error("bad secret key size");
|
|
14016
14016
|
}
|
|
14017
14017
|
function xr() {
|
|
@@ -14053,14 +14053,14 @@ const C1 = {}, B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14053
14053
|
var g = e.box.before(d, a);
|
|
14054
14054
|
return e.secretbox.open(l, p, g);
|
|
14055
14055
|
}, e.box.open.after = e.secretbox.open, e.box.keyPair = function() {
|
|
14056
|
-
var l = new Uint8Array(
|
|
14056
|
+
var l = new Uint8Array(Re), p = new Uint8Array(Z);
|
|
14057
14057
|
return hs(l, p), { publicKey: l, secretKey: p };
|
|
14058
14058
|
}, e.box.keyPair.fromSecretKey = function(l) {
|
|
14059
14059
|
if (xr(l), l.length !== Z)
|
|
14060
14060
|
throw new Error("bad secret key size");
|
|
14061
|
-
var p = new Uint8Array(
|
|
14061
|
+
var p = new Uint8Array(Re);
|
|
14062
14062
|
return or(p, l), { publicKey: p, secretKey: new Uint8Array(l) };
|
|
14063
|
-
}, e.box.publicKeyLength =
|
|
14063
|
+
}, e.box.publicKeyLength = Re, e.box.secretKeyLength = Z, e.box.sharedKeyLength = te, e.box.nonceLength = he, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(l, p) {
|
|
14064
14064
|
if (xr(l, p), p.length !== zt)
|
|
14065
14065
|
throw new Error("bad secret key size");
|
|
14066
14066
|
var d = new Uint8Array(rt + l.length);
|
|
@@ -14211,56 +14211,56 @@ async function D1() {
|
|
|
14211
14211
|
}
|
|
14212
14212
|
}
|
|
14213
14213
|
async function M0(r) {
|
|
14214
|
-
return
|
|
14214
|
+
return Pe(
|
|
14215
14215
|
`${lt}/platform/orgs`,
|
|
14216
14216
|
"POST",
|
|
14217
14217
|
{ name: r }
|
|
14218
14218
|
);
|
|
14219
14219
|
}
|
|
14220
14220
|
async function V0() {
|
|
14221
|
-
return
|
|
14221
|
+
return Pe(
|
|
14222
14222
|
`${lt}/platform/orgs`,
|
|
14223
14223
|
"GET",
|
|
14224
14224
|
void 0
|
|
14225
14225
|
);
|
|
14226
14226
|
}
|
|
14227
14227
|
async function L0(r) {
|
|
14228
|
-
return
|
|
14228
|
+
return Pe(
|
|
14229
14229
|
`${lt}/platform/orgs/${r}`,
|
|
14230
14230
|
"DELETE",
|
|
14231
14231
|
void 0
|
|
14232
14232
|
);
|
|
14233
14233
|
}
|
|
14234
14234
|
async function H0(r, e, t) {
|
|
14235
|
-
return
|
|
14235
|
+
return Pe(
|
|
14236
14236
|
`${lt}/platform/orgs/${r}/projects`,
|
|
14237
14237
|
"POST",
|
|
14238
14238
|
{ name: e, description: t }
|
|
14239
14239
|
);
|
|
14240
14240
|
}
|
|
14241
14241
|
async function F0(r) {
|
|
14242
|
-
return
|
|
14242
|
+
return Pe(
|
|
14243
14243
|
`${lt}/platform/orgs/${r}/projects`,
|
|
14244
14244
|
"GET",
|
|
14245
14245
|
void 0
|
|
14246
14246
|
);
|
|
14247
14247
|
}
|
|
14248
14248
|
async function z0(r, e) {
|
|
14249
|
-
return
|
|
14249
|
+
return Pe(
|
|
14250
14250
|
`${lt}/platform/orgs/${r}/projects/${e}`,
|
|
14251
14251
|
"GET",
|
|
14252
14252
|
void 0
|
|
14253
14253
|
);
|
|
14254
14254
|
}
|
|
14255
14255
|
async function G0(r, e, t) {
|
|
14256
|
-
return
|
|
14256
|
+
return Pe(
|
|
14257
14257
|
`${lt}/platform/orgs/${r}/projects/${e}`,
|
|
14258
14258
|
"PATCH",
|
|
14259
14259
|
t
|
|
14260
14260
|
);
|
|
14261
14261
|
}
|
|
14262
14262
|
async function q0(r, e) {
|
|
14263
|
-
return
|
|
14263
|
+
return Pe(
|
|
14264
14264
|
`${lt}/platform/orgs/${r}/projects/${e}`,
|
|
14265
14265
|
"DELETE",
|
|
14266
14266
|
void 0
|
|
@@ -14275,49 +14275,49 @@ async function K0(r, e, t, n) {
|
|
|
14275
14275
|
throw new Error(
|
|
14276
14276
|
"Secret must be base64 encoded. Use @stablelib/base64's encode function to encode your data."
|
|
14277
14277
|
);
|
|
14278
|
-
return
|
|
14278
|
+
return Pe(
|
|
14279
14279
|
`${lt}/platform/orgs/${r}/projects/${e}/secrets`,
|
|
14280
14280
|
"POST",
|
|
14281
14281
|
{ key_name: t, secret: n }
|
|
14282
14282
|
);
|
|
14283
14283
|
}
|
|
14284
14284
|
async function Z0(r, e) {
|
|
14285
|
-
return
|
|
14285
|
+
return Pe(
|
|
14286
14286
|
`${lt}/platform/orgs/${r}/projects/${e}/secrets`,
|
|
14287
14287
|
"GET",
|
|
14288
14288
|
void 0
|
|
14289
14289
|
);
|
|
14290
14290
|
}
|
|
14291
14291
|
async function W0(r, e, t) {
|
|
14292
|
-
return
|
|
14292
|
+
return Pe(
|
|
14293
14293
|
`${lt}/platform/orgs/${r}/projects/${e}/secrets/${t}`,
|
|
14294
14294
|
"DELETE",
|
|
14295
14295
|
void 0
|
|
14296
14296
|
);
|
|
14297
14297
|
}
|
|
14298
14298
|
async function Y0(r, e) {
|
|
14299
|
-
return
|
|
14299
|
+
return Pe(
|
|
14300
14300
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/email`,
|
|
14301
14301
|
"GET",
|
|
14302
14302
|
void 0
|
|
14303
14303
|
);
|
|
14304
14304
|
}
|
|
14305
14305
|
async function J0(r, e, t) {
|
|
14306
|
-
return
|
|
14306
|
+
return Pe(
|
|
14307
14307
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/email`,
|
|
14308
14308
|
"PUT",
|
|
14309
14309
|
t
|
|
14310
14310
|
);
|
|
14311
14311
|
}
|
|
14312
14312
|
async function X0(r, e) {
|
|
14313
|
-
return
|
|
14313
|
+
return Pe(
|
|
14314
14314
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/oauth`,
|
|
14315
14315
|
"GET",
|
|
14316
14316
|
void 0
|
|
14317
14317
|
);
|
|
14318
14318
|
}
|
|
14319
14319
|
async function Q0(r, e, t) {
|
|
14320
|
-
return
|
|
14320
|
+
return Pe(
|
|
14321
14321
|
`${lt}/platform/orgs/${r}/projects/${e}/settings/oauth`,
|
|
14322
14322
|
"PUT",
|
|
14323
14323
|
t
|
|
@@ -14326,63 +14326,63 @@ async function Q0(r, e, t) {
|
|
|
14326
14326
|
async function ey(r, e, t) {
|
|
14327
14327
|
if (!e || e.trim() === "")
|
|
14328
14328
|
throw new Error("Email is required");
|
|
14329
|
-
return
|
|
14329
|
+
return Pe(
|
|
14330
14330
|
`${lt}/platform/orgs/${r}/invites`,
|
|
14331
14331
|
"POST",
|
|
14332
14332
|
{ email: e, role: t }
|
|
14333
14333
|
);
|
|
14334
14334
|
}
|
|
14335
14335
|
async function ty(r) {
|
|
14336
|
-
return
|
|
14336
|
+
return Pe(
|
|
14337
14337
|
`${lt}/platform/orgs/${r}/invites`,
|
|
14338
14338
|
"GET",
|
|
14339
14339
|
void 0
|
|
14340
14340
|
);
|
|
14341
14341
|
}
|
|
14342
14342
|
async function ry(r, e) {
|
|
14343
|
-
return
|
|
14343
|
+
return Pe(
|
|
14344
14344
|
`${lt}/platform/orgs/${r}/invites/${e}`,
|
|
14345
14345
|
"GET",
|
|
14346
14346
|
void 0
|
|
14347
14347
|
);
|
|
14348
14348
|
}
|
|
14349
14349
|
async function ny(r, e) {
|
|
14350
|
-
return
|
|
14350
|
+
return Pe(
|
|
14351
14351
|
`${lt}/platform/orgs/${r}/invites/${e}`,
|
|
14352
14352
|
"DELETE",
|
|
14353
14353
|
void 0
|
|
14354
14354
|
);
|
|
14355
14355
|
}
|
|
14356
14356
|
async function iy(r) {
|
|
14357
|
-
return
|
|
14357
|
+
return Pe(
|
|
14358
14358
|
`${lt}/platform/orgs/${r}/memberships`,
|
|
14359
14359
|
"GET",
|
|
14360
14360
|
void 0
|
|
14361
14361
|
);
|
|
14362
14362
|
}
|
|
14363
14363
|
async function sy(r, e, t) {
|
|
14364
|
-
return
|
|
14364
|
+
return Pe(
|
|
14365
14365
|
`${lt}/platform/orgs/${r}/memberships/${e}`,
|
|
14366
14366
|
"PATCH",
|
|
14367
14367
|
{ role: t }
|
|
14368
14368
|
);
|
|
14369
14369
|
}
|
|
14370
14370
|
async function oy(r, e) {
|
|
14371
|
-
return
|
|
14371
|
+
return Pe(
|
|
14372
14372
|
`${lt}/platform/orgs/${r}/memberships/${e}`,
|
|
14373
14373
|
"DELETE",
|
|
14374
14374
|
void 0
|
|
14375
14375
|
);
|
|
14376
14376
|
}
|
|
14377
14377
|
async function ay(r) {
|
|
14378
|
-
return
|
|
14378
|
+
return Pe(
|
|
14379
14379
|
`${lt}/platform/accept_invite/${r}`,
|
|
14380
14380
|
"POST",
|
|
14381
14381
|
void 0
|
|
14382
14382
|
);
|
|
14383
14383
|
}
|
|
14384
14384
|
async function M1() {
|
|
14385
|
-
return
|
|
14385
|
+
return Pe(`${lt}/platform/me`, "GET", void 0);
|
|
14386
14386
|
}
|
|
14387
14387
|
async function cy(r) {
|
|
14388
14388
|
return Tt(
|
|
@@ -14394,7 +14394,7 @@ async function cy(r) {
|
|
|
14394
14394
|
);
|
|
14395
14395
|
}
|
|
14396
14396
|
async function Da() {
|
|
14397
|
-
return
|
|
14397
|
+
return Pe(
|
|
14398
14398
|
`${lt}/platform/request_verification`,
|
|
14399
14399
|
"POST",
|
|
14400
14400
|
void 0,
|
|
@@ -14434,14 +14434,14 @@ async function fy(r, e) {
|
|
|
14434
14434
|
current_password: r,
|
|
14435
14435
|
new_password: e
|
|
14436
14436
|
};
|
|
14437
|
-
return
|
|
14437
|
+
return Pe(
|
|
14438
14438
|
`${lt}/platform/change-password`,
|
|
14439
14439
|
"POST",
|
|
14440
14440
|
t,
|
|
14441
14441
|
"Failed to change platform password"
|
|
14442
14442
|
);
|
|
14443
14443
|
}
|
|
14444
|
-
async function
|
|
14444
|
+
async function Pe(r, e, t, n) {
|
|
14445
14445
|
const i = async (s = !1) => {
|
|
14446
14446
|
try {
|
|
14447
14447
|
if (s) {
|
|
@@ -14537,29 +14537,29 @@ async function Tt(r, e, t, n, i) {
|
|
|
14537
14537
|
throw new Error("No data received from the server");
|
|
14538
14538
|
return s.data;
|
|
14539
14539
|
}
|
|
14540
|
-
let
|
|
14540
|
+
let Xe = "";
|
|
14541
14541
|
function V1(r) {
|
|
14542
|
-
|
|
14542
|
+
Xe = r;
|
|
14543
14543
|
}
|
|
14544
14544
|
function L1() {
|
|
14545
|
-
return
|
|
14545
|
+
return Xe;
|
|
14546
14546
|
}
|
|
14547
14547
|
async function H1(r, e, t) {
|
|
14548
14548
|
return Tt(
|
|
14549
|
-
`${
|
|
14549
|
+
`${Xe}/login`,
|
|
14550
14550
|
"POST",
|
|
14551
14551
|
{ email: r, password: e, client_id: t }
|
|
14552
14552
|
);
|
|
14553
14553
|
}
|
|
14554
14554
|
async function F1(r, e, t) {
|
|
14555
14555
|
return Tt(
|
|
14556
|
-
`${
|
|
14556
|
+
`${Xe}/login`,
|
|
14557
14557
|
"POST",
|
|
14558
14558
|
{ id: r, password: e, client_id: t }
|
|
14559
14559
|
);
|
|
14560
14560
|
}
|
|
14561
14561
|
async function z1(r, e, t, n, i) {
|
|
14562
|
-
return Tt(`${
|
|
14562
|
+
return Tt(`${Xe}/register`, "POST", {
|
|
14563
14563
|
email: r,
|
|
14564
14564
|
password: e,
|
|
14565
14565
|
inviteCode: t.toLowerCase(),
|
|
@@ -14568,7 +14568,7 @@ async function z1(r, e, t, n, i) {
|
|
|
14568
14568
|
});
|
|
14569
14569
|
}
|
|
14570
14570
|
async function G1(r, e, t) {
|
|
14571
|
-
return Tt(`${
|
|
14571
|
+
return Tt(`${Xe}/register`, "POST", {
|
|
14572
14572
|
password: r,
|
|
14573
14573
|
inviteCode: e.toLowerCase(),
|
|
14574
14574
|
client_id: t
|
|
@@ -14580,7 +14580,7 @@ async function Uc() {
|
|
|
14580
14580
|
const e = { refresh_token: r };
|
|
14581
14581
|
try {
|
|
14582
14582
|
const t = await Tt(
|
|
14583
|
-
`${
|
|
14583
|
+
`${Xe}/refresh`,
|
|
14584
14584
|
"POST",
|
|
14585
14585
|
e,
|
|
14586
14586
|
void 0,
|
|
@@ -14592,24 +14592,24 @@ async function Uc() {
|
|
|
14592
14592
|
}
|
|
14593
14593
|
}
|
|
14594
14594
|
async function q1() {
|
|
14595
|
-
return
|
|
14596
|
-
`${
|
|
14595
|
+
return Pe(
|
|
14596
|
+
`${Xe}/protected/user`,
|
|
14597
14597
|
"GET",
|
|
14598
14598
|
void 0,
|
|
14599
14599
|
"Failed to fetch user"
|
|
14600
14600
|
);
|
|
14601
14601
|
}
|
|
14602
14602
|
async function dy(r, e) {
|
|
14603
|
-
return
|
|
14604
|
-
`${
|
|
14603
|
+
return Pe(
|
|
14604
|
+
`${Xe}/protected/kv/${r}`,
|
|
14605
14605
|
"PUT",
|
|
14606
14606
|
e,
|
|
14607
14607
|
"Failed to put key-value pair"
|
|
14608
14608
|
);
|
|
14609
14609
|
}
|
|
14610
14610
|
async function py(r) {
|
|
14611
|
-
return
|
|
14612
|
-
`${
|
|
14611
|
+
return Pe(
|
|
14612
|
+
`${Xe}/protected/kv/${r}`,
|
|
14613
14613
|
"DELETE",
|
|
14614
14614
|
void 0,
|
|
14615
14615
|
"Failed to delete key-value pair"
|
|
@@ -14617,8 +14617,8 @@ async function py(r) {
|
|
|
14617
14617
|
}
|
|
14618
14618
|
async function yy(r) {
|
|
14619
14619
|
try {
|
|
14620
|
-
return await
|
|
14621
|
-
`${
|
|
14620
|
+
return await Pe(
|
|
14621
|
+
`${Xe}/protected/kv/${r}`,
|
|
14622
14622
|
"GET",
|
|
14623
14623
|
void 0,
|
|
14624
14624
|
"Failed to get key-value pair"
|
|
@@ -14629,8 +14629,8 @@ async function yy(r) {
|
|
|
14629
14629
|
}
|
|
14630
14630
|
}
|
|
14631
14631
|
async function gy() {
|
|
14632
|
-
return
|
|
14633
|
-
`${
|
|
14632
|
+
return Pe(
|
|
14633
|
+
`${Xe}/protected/kv`,
|
|
14634
14634
|
"GET",
|
|
14635
14635
|
void 0,
|
|
14636
14636
|
"Failed to list key-value pairs"
|
|
@@ -14638,11 +14638,11 @@ async function gy() {
|
|
|
14638
14638
|
}
|
|
14639
14639
|
async function K1(r) {
|
|
14640
14640
|
const e = { refresh_token: r };
|
|
14641
|
-
return Tt(`${
|
|
14641
|
+
return Tt(`${Xe}/logout`, "POST", e);
|
|
14642
14642
|
}
|
|
14643
14643
|
async function vy(r) {
|
|
14644
14644
|
return Tt(
|
|
14645
|
-
`${
|
|
14645
|
+
`${Xe}/verify-email/${r}`,
|
|
14646
14646
|
"GET",
|
|
14647
14647
|
void 0,
|
|
14648
14648
|
void 0,
|
|
@@ -14650,21 +14650,21 @@ async function vy(r) {
|
|
|
14650
14650
|
);
|
|
14651
14651
|
}
|
|
14652
14652
|
async function $a() {
|
|
14653
|
-
return
|
|
14654
|
-
`${
|
|
14653
|
+
return Pe(
|
|
14654
|
+
`${Xe}/protected/request_verification`,
|
|
14655
14655
|
"POST",
|
|
14656
14656
|
void 0,
|
|
14657
14657
|
"Failed to request new verification code"
|
|
14658
14658
|
);
|
|
14659
14659
|
}
|
|
14660
14660
|
async function Z1(r, e) {
|
|
14661
|
-
const n = await fetch(`${e ||
|
|
14661
|
+
const n = await fetch(`${e || Xe}/attestation/${r}`);
|
|
14662
14662
|
if (!n.ok)
|
|
14663
14663
|
throw new Error(`Request failed with status ${n.status}`);
|
|
14664
14664
|
return (await n.json()).attestation_document;
|
|
14665
14665
|
}
|
|
14666
14666
|
async function W1(r, e, t) {
|
|
14667
|
-
const i = await fetch(`${t ||
|
|
14667
|
+
const i = await fetch(`${t || Xe}/key_exchange`, {
|
|
14668
14668
|
method: "POST",
|
|
14669
14669
|
headers: {
|
|
14670
14670
|
"Content-Type": "application/json"
|
|
@@ -14682,7 +14682,7 @@ async function Y1(r, e, t) {
|
|
|
14682
14682
|
client_id: t
|
|
14683
14683
|
};
|
|
14684
14684
|
return Tt(
|
|
14685
|
-
`${
|
|
14685
|
+
`${Xe}/password-reset/request`,
|
|
14686
14686
|
"POST",
|
|
14687
14687
|
n,
|
|
14688
14688
|
void 0,
|
|
@@ -14698,7 +14698,7 @@ async function J1(r, e, t, n, i) {
|
|
|
14698
14698
|
client_id: i
|
|
14699
14699
|
};
|
|
14700
14700
|
return Tt(
|
|
14701
|
-
`${
|
|
14701
|
+
`${Xe}/password-reset/confirm`,
|
|
14702
14702
|
"POST",
|
|
14703
14703
|
s,
|
|
14704
14704
|
void 0,
|
|
@@ -14710,8 +14710,8 @@ async function my(r, e) {
|
|
|
14710
14710
|
current_password: r,
|
|
14711
14711
|
new_password: e
|
|
14712
14712
|
};
|
|
14713
|
-
return
|
|
14714
|
-
`${
|
|
14713
|
+
return Pe(
|
|
14714
|
+
`${Xe}/protected/change_password`,
|
|
14715
14715
|
"POST",
|
|
14716
14716
|
t,
|
|
14717
14717
|
"Failed to change password"
|
|
@@ -14720,7 +14720,7 @@ async function my(r, e) {
|
|
|
14720
14720
|
async function X1(r, e) {
|
|
14721
14721
|
try {
|
|
14722
14722
|
return await Tt(
|
|
14723
|
-
`${
|
|
14723
|
+
`${Xe}/auth/github`,
|
|
14724
14724
|
"POST",
|
|
14725
14725
|
e ? { invite_code: e, client_id: r } : { client_id: r },
|
|
14726
14726
|
void 0,
|
|
@@ -14734,7 +14734,7 @@ async function Q1(r, e, t) {
|
|
|
14734
14734
|
const n = { code: r, state: e, invite_code: t };
|
|
14735
14735
|
try {
|
|
14736
14736
|
return await Tt(
|
|
14737
|
-
`${
|
|
14737
|
+
`${Xe}/auth/github/callback`,
|
|
14738
14738
|
"POST",
|
|
14739
14739
|
n,
|
|
14740
14740
|
void 0,
|
|
@@ -14751,7 +14751,7 @@ async function Q1(r, e, t) {
|
|
|
14751
14751
|
async function ew(r, e) {
|
|
14752
14752
|
try {
|
|
14753
14753
|
return await Tt(
|
|
14754
|
-
`${
|
|
14754
|
+
`${Xe}/auth/google`,
|
|
14755
14755
|
"POST",
|
|
14756
14756
|
e ? { invite_code: e, client_id: r } : { client_id: r },
|
|
14757
14757
|
void 0,
|
|
@@ -14765,7 +14765,7 @@ async function tw(r, e, t) {
|
|
|
14765
14765
|
const n = { code: r, state: e, invite_code: t };
|
|
14766
14766
|
try {
|
|
14767
14767
|
return await Tt(
|
|
14768
|
-
`${
|
|
14768
|
+
`${Xe}/auth/google/callback`,
|
|
14769
14769
|
"POST",
|
|
14770
14770
|
n,
|
|
14771
14771
|
void 0,
|
|
@@ -14782,7 +14782,7 @@ async function tw(r, e, t) {
|
|
|
14782
14782
|
async function rw(r, e) {
|
|
14783
14783
|
try {
|
|
14784
14784
|
return await Tt(
|
|
14785
|
-
`${
|
|
14785
|
+
`${Xe}/auth/apple`,
|
|
14786
14786
|
"POST",
|
|
14787
14787
|
e ? { invite_code: e, client_id: r } : { client_id: r },
|
|
14788
14788
|
void 0,
|
|
@@ -14796,7 +14796,7 @@ async function nw(r, e, t) {
|
|
|
14796
14796
|
const n = { code: r, state: e, invite_code: t };
|
|
14797
14797
|
try {
|
|
14798
14798
|
return await Tt(
|
|
14799
|
-
`${
|
|
14799
|
+
`${Xe}/auth/apple/callback`,
|
|
14800
14800
|
"POST",
|
|
14801
14801
|
n,
|
|
14802
14802
|
void 0,
|
|
@@ -14818,7 +14818,7 @@ async function iw(r, e, t) {
|
|
|
14818
14818
|
};
|
|
14819
14819
|
try {
|
|
14820
14820
|
return await Tt(
|
|
14821
|
-
`${
|
|
14821
|
+
`${Xe}/auth/apple/native`,
|
|
14822
14822
|
"POST",
|
|
14823
14823
|
n,
|
|
14824
14824
|
void 0,
|
|
@@ -14833,13 +14833,13 @@ async function iw(r, e, t) {
|
|
|
14833
14833
|
}
|
|
14834
14834
|
}
|
|
14835
14835
|
async function wy(r) {
|
|
14836
|
-
let e = `${
|
|
14836
|
+
let e = `${Xe}/protected/private_key`;
|
|
14837
14837
|
const t = [];
|
|
14838
14838
|
return r != null && r.seed_phrase_derivation_path && t.push(
|
|
14839
14839
|
`seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
|
|
14840
14840
|
), r != null && r.private_key_derivation_path && t.push(
|
|
14841
14841
|
`private_key_derivation_path=${encodeURIComponent(r.private_key_derivation_path)}`
|
|
14842
|
-
), t.length > 0 && (e += `?${t.join("&")}`),
|
|
14842
|
+
), t.length > 0 && (e += `?${t.join("&")}`), Pe(
|
|
14843
14843
|
e,
|
|
14844
14844
|
"GET",
|
|
14845
14845
|
void 0,
|
|
@@ -14847,13 +14847,13 @@ async function wy(r) {
|
|
|
14847
14847
|
);
|
|
14848
14848
|
}
|
|
14849
14849
|
async function by(r) {
|
|
14850
|
-
let e = `${
|
|
14850
|
+
let e = `${Xe}/protected/private_key_bytes`;
|
|
14851
14851
|
const t = [];
|
|
14852
14852
|
return r != null && r.seed_phrase_derivation_path && t.push(
|
|
14853
14853
|
`seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
|
|
14854
14854
|
), r != null && r.private_key_derivation_path && t.push(
|
|
14855
14855
|
`private_key_derivation_path=${encodeURIComponent(r.private_key_derivation_path)}`
|
|
14856
|
-
), t.length > 0 && (e += `?${t.join("&")}`),
|
|
14856
|
+
), t.length > 0 && (e += `?${t.join("&")}`), Pe(
|
|
14857
14857
|
e,
|
|
14858
14858
|
"GET",
|
|
14859
14859
|
void 0,
|
|
@@ -14866,16 +14866,16 @@ async function xy(r, e, t) {
|
|
|
14866
14866
|
algorithm: e,
|
|
14867
14867
|
...t && Object.keys(t).length > 0 && { key_options: t }
|
|
14868
14868
|
};
|
|
14869
|
-
return
|
|
14870
|
-
`${
|
|
14869
|
+
return Pe(
|
|
14870
|
+
`${Xe}/protected/sign_message`,
|
|
14871
14871
|
"POST",
|
|
14872
14872
|
i,
|
|
14873
14873
|
"Failed to sign message"
|
|
14874
14874
|
);
|
|
14875
14875
|
}
|
|
14876
14876
|
async function Ay(r, e) {
|
|
14877
|
-
let t = `${
|
|
14878
|
-
return e != null && e.seed_phrase_derivation_path && (t += `&seed_phrase_derivation_path=${encodeURIComponent(e.seed_phrase_derivation_path)}`), e != null && e.private_key_derivation_path && (t += `&private_key_derivation_path=${encodeURIComponent(e.private_key_derivation_path)}`),
|
|
14877
|
+
let t = `${Xe}/protected/public_key?algorithm=${r}`;
|
|
14878
|
+
return e != null && e.seed_phrase_derivation_path && (t += `&seed_phrase_derivation_path=${encodeURIComponent(e.seed_phrase_derivation_path)}`), e != null && e.private_key_derivation_path && (t += `&private_key_derivation_path=${encodeURIComponent(e.private_key_derivation_path)}`), Pe(
|
|
14879
14879
|
t,
|
|
14880
14880
|
"GET",
|
|
14881
14881
|
void 0,
|
|
@@ -14888,16 +14888,16 @@ async function sw(r, e, t) {
|
|
|
14888
14888
|
password: e,
|
|
14889
14889
|
...t !== void 0 && { name: t }
|
|
14890
14890
|
};
|
|
14891
|
-
return
|
|
14892
|
-
`${
|
|
14891
|
+
return Pe(
|
|
14892
|
+
`${Xe}/protected/convert_guest`,
|
|
14893
14893
|
"POST",
|
|
14894
14894
|
n,
|
|
14895
14895
|
"Failed to convert guest account"
|
|
14896
14896
|
);
|
|
14897
14897
|
}
|
|
14898
14898
|
async function ow(r) {
|
|
14899
|
-
return
|
|
14900
|
-
`${
|
|
14899
|
+
return Pe(
|
|
14900
|
+
`${Xe}/protected/third_party_token`,
|
|
14901
14901
|
"POST",
|
|
14902
14902
|
r ? { audience: r } : {},
|
|
14903
14903
|
"Failed to generate third party token"
|
|
@@ -14908,8 +14908,8 @@ async function Sy(r, e) {
|
|
|
14908
14908
|
data: r,
|
|
14909
14909
|
...e && Object.keys(e).length > 0 && { key_options: e }
|
|
14910
14910
|
};
|
|
14911
|
-
return
|
|
14912
|
-
`${
|
|
14911
|
+
return Pe(
|
|
14912
|
+
`${Xe}/protected/encrypt`,
|
|
14913
14913
|
"POST",
|
|
14914
14914
|
t,
|
|
14915
14915
|
"Failed to encrypt data"
|
|
@@ -14920,8 +14920,8 @@ async function _y(r, e) {
|
|
|
14920
14920
|
encrypted_data: r,
|
|
14921
14921
|
...e && Object.keys(e).length > 0 && { key_options: e }
|
|
14922
14922
|
};
|
|
14923
|
-
return
|
|
14924
|
-
`${
|
|
14923
|
+
return Pe(
|
|
14924
|
+
`${Xe}/protected/decrypt`,
|
|
14925
14925
|
"POST",
|
|
14926
14926
|
t,
|
|
14927
14927
|
"Failed to decrypt data"
|
|
@@ -14931,8 +14931,8 @@ async function aw(r) {
|
|
|
14931
14931
|
const e = {
|
|
14932
14932
|
hashed_secret: r
|
|
14933
14933
|
};
|
|
14934
|
-
return
|
|
14935
|
-
`${
|
|
14934
|
+
return Pe(
|
|
14935
|
+
`${Xe}/protected/delete-account/request`,
|
|
14936
14936
|
"POST",
|
|
14937
14937
|
e,
|
|
14938
14938
|
"Failed to request account deletion"
|
|
@@ -14943,14 +14943,31 @@ async function cw(r, e) {
|
|
|
14943
14943
|
confirmation_code: r,
|
|
14944
14944
|
plaintext_secret: e
|
|
14945
14945
|
};
|
|
14946
|
-
return
|
|
14947
|
-
`${
|
|
14946
|
+
return Pe(
|
|
14947
|
+
`${Xe}/protected/delete-account/confirm`,
|
|
14948
14948
|
"POST",
|
|
14949
14949
|
t,
|
|
14950
14950
|
"Failed to confirm account deletion"
|
|
14951
14951
|
);
|
|
14952
14952
|
}
|
|
14953
|
-
function lw() {
|
|
14953
|
+
async function lw() {
|
|
14954
|
+
try {
|
|
14955
|
+
const r = await Pe(
|
|
14956
|
+
`${Xe}/v1/models`,
|
|
14957
|
+
"GET",
|
|
14958
|
+
void 0,
|
|
14959
|
+
"Failed to fetch models"
|
|
14960
|
+
);
|
|
14961
|
+
if (!r || typeof r != "object")
|
|
14962
|
+
throw new Error("Invalid response from models endpoint");
|
|
14963
|
+
if (r.object !== "list" || !Array.isArray(r.data))
|
|
14964
|
+
throw new Error("Models response missing expected 'object' or 'data' fields");
|
|
14965
|
+
return r.data;
|
|
14966
|
+
} catch (r) {
|
|
14967
|
+
throw console.error("Error fetching models:", r), r;
|
|
14968
|
+
}
|
|
14969
|
+
}
|
|
14970
|
+
function uw() {
|
|
14954
14971
|
return async (r, e) => {
|
|
14955
14972
|
var n, i;
|
|
14956
14973
|
const t = () => {
|
|
@@ -14992,7 +15009,7 @@ function lw() {
|
|
|
14992
15009
|
const I = x.decode(O);
|
|
14993
15010
|
G += I;
|
|
14994
15011
|
let P;
|
|
14995
|
-
for (; P =
|
|
15012
|
+
for (; P = fw(G); )
|
|
14996
15013
|
if (G = G.slice(P.length), P.trim().startsWith("data: ")) {
|
|
14997
15014
|
const R = P.slice(6).trim();
|
|
14998
15015
|
if (R === "[DONE]")
|
|
@@ -15036,13 +15053,13 @@ function lw() {
|
|
|
15036
15053
|
}
|
|
15037
15054
|
};
|
|
15038
15055
|
}
|
|
15039
|
-
function
|
|
15056
|
+
function fw(r) {
|
|
15040
15057
|
const e = r.indexOf(`
|
|
15041
15058
|
|
|
15042
15059
|
`);
|
|
15043
15060
|
return e === -1 ? null : r.slice(0, e + 2);
|
|
15044
15061
|
}
|
|
15045
|
-
const
|
|
15062
|
+
const hw = [
|
|
15046
15063
|
"eeddbb58f57c38894d6d5af5e575fbe791c5bf3bbcfb5df8da8cfcf0c2e1da1913108e6a762112444740b88c163d7f4b",
|
|
15047
15064
|
"74ed417f88cb0ca76c4a3d10f278bd010f1d3f95eafb254d4732511bb50e404507a4049b779c5230137e4091a5582271",
|
|
15048
15065
|
"9043fcab93b972d3c14ad2dc8fa78ca7ad374fc937c02435681772a003f7a72876bc4d578089b5c4cf3fe9b480f1aabb",
|
|
@@ -15050,7 +15067,7 @@ const fw = [
|
|
|
15050
15067
|
"91cb67311e910cce68cd5b7d0de77aa40610d87c6681439b44c46c3ff786ae643956ab2c812478a1da8745b259f07a45",
|
|
15051
15068
|
"859065ac81b81d3735130ba08b8af72a7256b603fefb74faabae25ed28cca6edcaa7c10ea32b5948d675c18a9b0f2b1d",
|
|
15052
15069
|
"acd82a7d3943e23e95a9dc3ce0b0107ea358d6287f9e3afa245622f7c7e3e0a66142a928b6efcc02f594a95366d3a99d"
|
|
15053
|
-
],
|
|
15070
|
+
], dw = [
|
|
15054
15071
|
"62c0407056217a4c10764ed9045694c29fa93255d3cc04c2f989cdd9a1f8050c8b169714c71f1118ebce2fcc9951d1a9",
|
|
15055
15072
|
"cb95519905443f9f66f05f63c548b61ad1561a27fd5717b69285861aaea3c3063fe12a2571773b67fea3c6c11b4d8ec6",
|
|
15056
15073
|
"deb5895831b5e4286f5a2dcf5e9c27383821446f8df2b465f141d10743599be20ba3bb381ce063bf7139cc89f7f61d4c",
|
|
@@ -15058,14 +15075,14 @@ const fw = [
|
|
|
15058
15075
|
"669404ea71435b8f498b48db7816a5c2ab1d258b1a77685b11d84d15a73189504d79c4dee13a658de9f4a0cbfc39cfe8",
|
|
15059
15076
|
"a791bf92c25ffdfd372660e460a0e238c6778c090672df6509ae4bc065cf8668b6baac6b6a11d554af53ee0ff0172ad5",
|
|
15060
15077
|
"c4285443b87b9b12a6cea3bef1064ec060f652b235a297095975af8f134e5ed65f92d70d4616fdec80af9dff48bb9f35"
|
|
15061
|
-
],
|
|
15078
|
+
], pw = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", yw = {
|
|
15062
15079
|
prod: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrProdHistory.json",
|
|
15063
15080
|
dev: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrDevHistory.json"
|
|
15064
15081
|
};
|
|
15065
|
-
async function
|
|
15082
|
+
async function gw() {
|
|
15066
15083
|
try {
|
|
15067
15084
|
const r = new Uint8Array(
|
|
15068
|
-
atob(
|
|
15085
|
+
atob(pw).split("").map((e) => e.charCodeAt(0))
|
|
15069
15086
|
);
|
|
15070
15087
|
return await crypto.subtle.importKey(
|
|
15071
15088
|
"spki",
|
|
@@ -15087,9 +15104,9 @@ async function yw() {
|
|
|
15087
15104
|
throw console.error("Error importing verification key:", r), new Error("Failed to import PCR verification key");
|
|
15088
15105
|
}
|
|
15089
15106
|
}
|
|
15090
|
-
async function
|
|
15107
|
+
async function vw(r, e) {
|
|
15091
15108
|
try {
|
|
15092
|
-
const t = (e == null ? void 0 : e[r]) ||
|
|
15109
|
+
const t = (e == null ? void 0 : e[r]) || yw[r], n = await fetch(t);
|
|
15093
15110
|
if (!n.ok)
|
|
15094
15111
|
throw new Error(`Failed to fetch PCR history: ${n.status}`);
|
|
15095
15112
|
return await n.json();
|
|
@@ -15097,7 +15114,7 @@ async function gw(r, e) {
|
|
|
15097
15114
|
throw console.error("Error fetching PCR history:", t), new Error("Failed to fetch PCR history");
|
|
15098
15115
|
}
|
|
15099
15116
|
}
|
|
15100
|
-
async function
|
|
15117
|
+
async function mw(r, e, t) {
|
|
15101
15118
|
try {
|
|
15102
15119
|
const i = new TextEncoder().encode(r), s = new Uint8Array(
|
|
15103
15120
|
atob(e).split("").map((o) => o.charCodeAt(0))
|
|
@@ -15118,9 +15135,9 @@ async function vw(r, e, t) {
|
|
|
15118
15135
|
}
|
|
15119
15136
|
async function yd(r, e, t) {
|
|
15120
15137
|
try {
|
|
15121
|
-
const n = await
|
|
15138
|
+
const n = await gw(), i = await vw(e, t);
|
|
15122
15139
|
for (const s of i)
|
|
15123
|
-
if (s.PCR0 === r && await
|
|
15140
|
+
if (s.PCR0 === r && await mw(s.PCR0, s.signature, n))
|
|
15124
15141
|
return {
|
|
15125
15142
|
isMatch: !0,
|
|
15126
15143
|
text: "PCR0 matches remotely attested value",
|
|
@@ -15131,8 +15148,8 @@ async function yd(r, e, t) {
|
|
|
15131
15148
|
return console.error("PCR remote validation error:", n), null;
|
|
15132
15149
|
}
|
|
15133
15150
|
}
|
|
15134
|
-
async function
|
|
15135
|
-
const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...
|
|
15151
|
+
async function ww(r, e) {
|
|
15152
|
+
const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...hw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...dw];
|
|
15136
15153
|
if (t.includes(r))
|
|
15137
15154
|
return {
|
|
15138
15155
|
isMatch: !0,
|
|
@@ -15171,7 +15188,7 @@ const ts = Ua, Dc = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f7
|
|
|
15171
15188
|
function Ey(r) {
|
|
15172
15189
|
return Array.from(r).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
15173
15190
|
}
|
|
15174
|
-
async function
|
|
15191
|
+
async function bw(r) {
|
|
15175
15192
|
const e = await crypto.subtle.digest("SHA-256", r);
|
|
15176
15193
|
return Ey(new Uint8Array(e));
|
|
15177
15194
|
}
|
|
@@ -15182,7 +15199,7 @@ async function rs(r, e, t) {
|
|
|
15182
15199
|
value: Ey(x)
|
|
15183
15200
|
})).filter((m) => !m.value.match(/^0+$/)), i = n.find((m) => m.id === 0);
|
|
15184
15201
|
let s = null;
|
|
15185
|
-
i && (s = await
|
|
15202
|
+
i && (s = await ww(i.value, t));
|
|
15186
15203
|
const o = [...e, r.certificate].map((m) => {
|
|
15187
15204
|
const x = new wi(m);
|
|
15188
15205
|
return {
|
|
@@ -15192,7 +15209,7 @@ async function rs(r, e, t) {
|
|
|
15192
15209
|
pem: x.toString("pem"),
|
|
15193
15210
|
isRoot: x.subject === "C=US, O=Amazon, OU=AWS, CN=aws.nitro-enclaves"
|
|
15194
15211
|
};
|
|
15195
|
-
}), c = new TextDecoder(), u = new wi(e[0]), h = await
|
|
15212
|
+
}), c = new TextDecoder(), u = new wi(e[0]), h = await bw(u.rawData);
|
|
15196
15213
|
return {
|
|
15197
15214
|
moduleId: r.module_id,
|
|
15198
15215
|
publicKey: r.public_key ? $r(r.public_key) : null,
|
|
@@ -15283,9 +15300,10 @@ const Iy = wd({
|
|
|
15283
15300
|
},
|
|
15284
15301
|
generateThirdPartyToken: async () => ({ token: "" }),
|
|
15285
15302
|
encryptData: Sy,
|
|
15286
|
-
decryptData: _y
|
|
15303
|
+
decryptData: _y,
|
|
15304
|
+
fetchModels: async () => []
|
|
15287
15305
|
});
|
|
15288
|
-
function
|
|
15306
|
+
function xx({
|
|
15289
15307
|
children: r,
|
|
15290
15308
|
apiUrl: e,
|
|
15291
15309
|
clientId: t,
|
|
@@ -15309,7 +15327,7 @@ function bx({
|
|
|
15309
15327
|
W.configure(e, ne);
|
|
15310
15328
|
});
|
|
15311
15329
|
}, [e, t]), Os(() => {
|
|
15312
|
-
i.user ? c(() =>
|
|
15330
|
+
i.user ? c(() => uw()) : c(void 0);
|
|
15313
15331
|
}, [i.user]);
|
|
15314
15332
|
async function u() {
|
|
15315
15333
|
const W = window.localStorage.getItem("access_token"), ne = window.localStorage.getItem("refresh_token");
|
|
@@ -15400,7 +15418,7 @@ function bx({
|
|
|
15400
15418
|
user: void 0
|
|
15401
15419
|
});
|
|
15402
15420
|
}
|
|
15403
|
-
const
|
|
15421
|
+
const je = {
|
|
15404
15422
|
auth: i,
|
|
15405
15423
|
clientId: t,
|
|
15406
15424
|
signIn: h,
|
|
@@ -15517,9 +15535,10 @@ function bx({
|
|
|
15517
15535
|
},
|
|
15518
15536
|
generateThirdPartyToken: ow,
|
|
15519
15537
|
encryptData: Sy,
|
|
15520
|
-
decryptData: _y
|
|
15538
|
+
decryptData: _y,
|
|
15539
|
+
fetchModels: lw
|
|
15521
15540
|
};
|
|
15522
|
-
return /* @__PURE__ */ md(Iy.Provider, { value:
|
|
15541
|
+
return /* @__PURE__ */ md(Iy.Provider, { value: je, children: r });
|
|
15523
15542
|
}
|
|
15524
15543
|
const ky = wd({
|
|
15525
15544
|
auth: {
|
|
@@ -15578,7 +15597,7 @@ const ky = wd({
|
|
|
15578
15597
|
acceptInvite: ay,
|
|
15579
15598
|
apiUrl: ""
|
|
15580
15599
|
});
|
|
15581
|
-
function
|
|
15600
|
+
function Ax({
|
|
15582
15601
|
children: r,
|
|
15583
15602
|
apiUrl: e,
|
|
15584
15603
|
pcrConfig: t = {}
|
|
@@ -15719,28 +15738,28 @@ function xx({
|
|
|
15719
15738
|
};
|
|
15720
15739
|
return /* @__PURE__ */ md(ky.Provider, { value: h, children: r });
|
|
15721
15740
|
}
|
|
15722
|
-
function
|
|
15741
|
+
function Sx() {
|
|
15723
15742
|
return bd(Iy);
|
|
15724
15743
|
}
|
|
15725
|
-
function
|
|
15744
|
+
function _x() {
|
|
15726
15745
|
return bd(ky);
|
|
15727
15746
|
}
|
|
15728
|
-
function
|
|
15747
|
+
function Ex() {
|
|
15729
15748
|
const r = new Uint8Array(32);
|
|
15730
15749
|
return crypto.getRandomValues(r), Array.from(r, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
15731
15750
|
}
|
|
15732
|
-
async function
|
|
15751
|
+
async function Ix(r) {
|
|
15733
15752
|
const t = new TextEncoder().encode(r), n = await crypto.subtle.digest("SHA-256", t);
|
|
15734
15753
|
return Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
15735
15754
|
}
|
|
15736
15755
|
export {
|
|
15737
15756
|
Iy as OpenSecretContext,
|
|
15738
|
-
|
|
15757
|
+
Ax as OpenSecretDeveloper,
|
|
15739
15758
|
ky as OpenSecretDeveloperContext,
|
|
15740
|
-
|
|
15759
|
+
xx as OpenSecretProvider,
|
|
15741
15760
|
Ho as apiConfig,
|
|
15742
|
-
|
|
15743
|
-
|
|
15744
|
-
|
|
15745
|
-
|
|
15761
|
+
Ex as generateSecureSecret,
|
|
15762
|
+
Ix as hashSecret,
|
|
15763
|
+
Sx as useOpenSecret,
|
|
15764
|
+
_x as useOpenSecretDeveloper
|
|
15746
15765
|
};
|