@opensecret/react 0.3.1 → 0.3.2
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/README.md +3 -1
- package/dist/opensecret-react.es.js +403 -400
- package/dist/opensecret-react.umd.js +4 -4
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ var _f = (r, e, t, n) => ({
|
|
|
13
13
|
return M(r, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import
|
|
16
|
+
import md, { createContext as ey, useState as Sf, useEffect as Uc, useContext as ty } from "react";
|
|
17
17
|
var el = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
18
|
function ry(r) {
|
|
19
19
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -51,7 +51,7 @@ var Ef;
|
|
|
51
51
|
function iy() {
|
|
52
52
|
if (Ef) return Ss;
|
|
53
53
|
Ef = 1;
|
|
54
|
-
var r =
|
|
54
|
+
var r = md, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
55
55
|
function o(c, u, d) {
|
|
56
56
|
var b, E = {}, Y = null, $ = null;
|
|
57
57
|
d !== void 0 && (Y = "" + d), u.key !== void 0 && (Y = "" + u.key), u.ref !== void 0 && ($ = u.ref);
|
|
@@ -74,7 +74,7 @@ var Es = {};
|
|
|
74
74
|
var kf;
|
|
75
75
|
function sy() {
|
|
76
76
|
return kf || (kf = 1, process.env.NODE_ENV !== "production" && function() {
|
|
77
|
-
var r =
|
|
77
|
+
var r = md, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), w = Symbol.iterator, S = "@@iterator";
|
|
78
78
|
function T(h) {
|
|
79
79
|
if (h === null || typeof h != "object")
|
|
80
80
|
return null;
|
|
@@ -736,12 +736,12 @@ class ay {
|
|
|
736
736
|
return t;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
const
|
|
739
|
+
const wd = new ay();
|
|
740
740
|
function Lr(r) {
|
|
741
|
-
return
|
|
741
|
+
return wd.encode(r);
|
|
742
742
|
}
|
|
743
743
|
function Vo(r) {
|
|
744
|
-
return
|
|
744
|
+
return wd.decode(r);
|
|
745
745
|
}
|
|
746
746
|
function Ft(r, e = new Uint8Array(4), t = 0) {
|
|
747
747
|
return e[t + 0] = r >>> 0, e[t + 1] = r >>> 8, e[t + 2] = r >>> 16, e[t + 3] = r >>> 24, e;
|
|
@@ -1034,11 +1034,11 @@ const wy = new my();
|
|
|
1034
1034
|
function by(r, e = wy) {
|
|
1035
1035
|
return e.randomBytes(r);
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function bd(r, e) {
|
|
1038
1038
|
const t = new Ou(r), n = by(12), s = new TextEncoder().encode(e), o = t.seal(n, s), c = new Uint8Array(n.length + o.length);
|
|
1039
1039
|
return c.set(n), c.set(o, n.length), Lr(c);
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function xd(r, e) {
|
|
1042
1042
|
const t = new Ou(r), n = Vo(e), i = 12, s = n.slice(0, i), o = n.slice(i), c = t.open(s, o);
|
|
1043
1043
|
if (!c)
|
|
1044
1044
|
throw new Error("Decryption failed");
|
|
@@ -2192,7 +2192,7 @@ function nl(...r) {
|
|
|
2192
2192
|
i.set(s, t), t += s.length;
|
|
2193
2193
|
return i;
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function Ad() {
|
|
2196
2196
|
const r = new Uint8Array(this.valueHex);
|
|
2197
2197
|
if (this.valueHex.byteLength >= 2) {
|
|
2198
2198
|
const c = r[0] === 255 && r[1] & 128, u = r[0] === 0 && (r[1] & 128) === 0;
|
|
@@ -2312,7 +2312,7 @@ class Ma {
|
|
|
2312
2312
|
return Tu(this.items);
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
|
-
const ks = [new Uint8Array([1])], Rf = "0123456789", $c = "name", jf = "valueHexView", Cy = "isHexOnly", By = "idBlock", Oy = "tagClass", Ty = "tagNumber", Ny = "isConstructed", Ry = "fromBER", jy = "toBER", Py = "local", pr = "", Wr = new ArrayBuffer(0), Va = new Uint8Array(0), Us = "EndOfContent",
|
|
2315
|
+
const ks = [new Uint8Array([1])], Rf = "0123456789", $c = "name", jf = "valueHexView", Cy = "isHexOnly", By = "idBlock", Oy = "tagClass", Ty = "tagNumber", Ny = "isConstructed", Ry = "fromBER", jy = "toBER", Py = "local", pr = "", Wr = new ArrayBuffer(0), Va = new Uint8Array(0), Us = "EndOfContent", _d = "OCTET STRING", Sd = "BIT STRING";
|
|
2316
2316
|
function gn(r) {
|
|
2317
2317
|
var e;
|
|
2318
2318
|
return e = class extends r {
|
|
@@ -2380,7 +2380,7 @@ class ur extends Hi {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
2382
|
ur.NAME = "valueBlock";
|
|
2383
|
-
class
|
|
2383
|
+
class Ed extends gn(Hi) {
|
|
2384
2384
|
constructor({ idBlock: e = {} } = {}) {
|
|
2385
2385
|
var t, n, i, s;
|
|
2386
2386
|
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ? Q.toUint8Array(e.valueHex) : Va, this.tagClass = (n = e.tagClass) !== null && n !== void 0 ? n : -1, this.tagNumber = (i = e.tagNumber) !== null && i !== void 0 ? i : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
@@ -2503,8 +2503,8 @@ class kd extends gn(Hi) {
|
|
|
2503
2503
|
};
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
|
-
|
|
2507
|
-
class
|
|
2506
|
+
Ed.NAME = "identificationBlock";
|
|
2507
|
+
class kd extends Hi {
|
|
2508
2508
|
constructor({ lenBlock: e = {} } = {}) {
|
|
2509
2509
|
var t, n, i;
|
|
2510
2510
|
super(), this.isIndefiniteForm = (t = e.isIndefiniteForm) !== null && t !== void 0 ? t : !1, this.longFormUsed = (n = e.longFormUsed) !== null && n !== void 0 ? n : !1, this.length = (i = e.length) !== null && i !== void 0 ? i : 0;
|
|
@@ -2557,11 +2557,11 @@ class Id extends Hi {
|
|
|
2557
2557
|
};
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
|
-
|
|
2560
|
+
kd.NAME = "lengthBlock";
|
|
2561
2561
|
const ge = {};
|
|
2562
2562
|
class Wt extends Hi {
|
|
2563
2563
|
constructor({ name: e = pr, optional: t = !1, primitiveSchema: n, ...i } = {}, s) {
|
|
2564
|
-
super(i), this.name = e, this.optional = t, n && (this.primitiveSchema = n), this.idBlock = new
|
|
2564
|
+
super(i), this.name = e, this.optional = t, n && (this.primitiveSchema = n), this.idBlock = new Ed(i), this.lenBlock = new kd(i), this.valueBlock = s ? new s(i) : new ur(i);
|
|
2565
2565
|
}
|
|
2566
2566
|
fromBER(e, t, n) {
|
|
2567
2567
|
const i = this.valueBlock.fromBER(e, t, this.lenBlock.isIndefiniteForm ? n : this.lenBlock.length);
|
|
@@ -2569,7 +2569,7 @@ class Wt extends Hi {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
toBER(e, t) {
|
|
2571
2571
|
const n = t || new Ma();
|
|
2572
|
-
t ||
|
|
2572
|
+
t || Id(this);
|
|
2573
2573
|
const i = this.idBlock.toBER(e);
|
|
2574
2574
|
if (n.write(i), this.lenBlock.isIndefiniteForm)
|
|
2575
2575
|
n.write(new Uint8Array([128]).buffer), this.valueBlock.toBER(e, n), n.write(new ArrayBuffer(2));
|
|
@@ -2608,10 +2608,10 @@ class Wt extends Hi {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
2610
|
Wt.NAME = "BaseBlock";
|
|
2611
|
-
function
|
|
2611
|
+
function Id(r) {
|
|
2612
2612
|
if (r instanceof ge.Constructed)
|
|
2613
2613
|
for (const e of r.valueBlock.value)
|
|
2614
|
-
|
|
2614
|
+
Id(e) && (r.lenBlock.isIndefiniteForm = !0);
|
|
2615
2615
|
return !!r.lenBlock.isIndefiniteForm;
|
|
2616
2616
|
}
|
|
2617
2617
|
class Nu extends Wt {
|
|
@@ -2633,20 +2633,20 @@ class Nu extends Wt {
|
|
|
2633
2633
|
}
|
|
2634
2634
|
}
|
|
2635
2635
|
Nu.NAME = "BaseStringBlock";
|
|
2636
|
-
class
|
|
2636
|
+
class Cd extends gn(ur) {
|
|
2637
2637
|
constructor({ isHexOnly: e = !0, ...t } = {}) {
|
|
2638
2638
|
super(t), this.isHexOnly = e;
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
|
|
2642
|
-
var
|
|
2641
|
+
Cd.NAME = "PrimitiveValueBlock";
|
|
2642
|
+
var Bd;
|
|
2643
2643
|
class ho extends Wt {
|
|
2644
2644
|
constructor(e = {}) {
|
|
2645
|
-
super(e,
|
|
2645
|
+
super(e, Cd), this.idBlock.isConstructed = !1;
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
2648
|
-
|
|
2649
|
-
ge.Primitive =
|
|
2648
|
+
Bd = ho;
|
|
2649
|
+
ge.Primitive = Bd;
|
|
2650
2650
|
ho.NAME = "PRIMITIVE";
|
|
2651
2651
|
function Uy(r, e) {
|
|
2652
2652
|
if (r instanceof e)
|
|
@@ -2861,7 +2861,7 @@ class ei extends ur {
|
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
2863
|
ei.NAME = "ConstructedValueBlock";
|
|
2864
|
-
var
|
|
2864
|
+
var Od;
|
|
2865
2865
|
class gr extends Wt {
|
|
2866
2866
|
constructor(e = {}) {
|
|
2867
2867
|
super(e, ei), this.idBlock.isConstructed = !0;
|
|
@@ -2883,10 +2883,10 @@ ${e.join(`
|
|
|
2883
2883
|
`)}` : `${t} :`;
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
2886
|
-
|
|
2887
|
-
ge.Constructed =
|
|
2886
|
+
Od = gr;
|
|
2887
|
+
ge.Constructed = Od;
|
|
2888
2888
|
gr.NAME = "CONSTRUCTED";
|
|
2889
|
-
class
|
|
2889
|
+
class Td extends ur {
|
|
2890
2890
|
fromBER(e, t, n) {
|
|
2891
2891
|
return t;
|
|
2892
2892
|
}
|
|
@@ -2894,17 +2894,17 @@ class Nd extends ur {
|
|
|
2894
2894
|
return Wr;
|
|
2895
2895
|
}
|
|
2896
2896
|
}
|
|
2897
|
-
|
|
2898
|
-
var
|
|
2897
|
+
Td.override = "EndOfContentValueBlock";
|
|
2898
|
+
var Nd;
|
|
2899
2899
|
class Ru extends Wt {
|
|
2900
2900
|
constructor(e = {}) {
|
|
2901
|
-
super(e,
|
|
2901
|
+
super(e, Td), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
|
|
2902
2902
|
}
|
|
2903
2903
|
}
|
|
2904
|
-
|
|
2905
|
-
ge.EndOfContent =
|
|
2904
|
+
Nd = Ru;
|
|
2905
|
+
ge.EndOfContent = Nd;
|
|
2906
2906
|
Ru.NAME = Us;
|
|
2907
|
-
var
|
|
2907
|
+
var Rd;
|
|
2908
2908
|
class Ci extends Wt {
|
|
2909
2909
|
constructor(e = {}) {
|
|
2910
2910
|
super(e, ur), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
@@ -2924,10 +2924,10 @@ class Ci extends Wt {
|
|
|
2924
2924
|
return `${this.constructor.NAME}`;
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
|
|
2928
|
-
ge.Null =
|
|
2927
|
+
Rd = Ci;
|
|
2928
|
+
ge.Null = Rd;
|
|
2929
2929
|
Ci.NAME = "NULL";
|
|
2930
|
-
class
|
|
2930
|
+
class jd extends gn(ur) {
|
|
2931
2931
|
constructor({ value: e, ...t } = {}) {
|
|
2932
2932
|
super(t), t.valueHex ? this.valueHexView = Q.toUint8Array(t.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
|
|
2933
2933
|
}
|
|
@@ -2942,7 +2942,7 @@ class Pd extends gn(ur) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
fromBER(e, t, n) {
|
|
2944
2944
|
const i = Q.toUint8Array(e);
|
|
2945
|
-
return Nn(this, i, t, n) ? (this.valueHexView = i.subarray(t, t + n), n > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0,
|
|
2945
|
+
return Nn(this, i, t, n) ? (this.valueHexView = i.subarray(t, t + n), n > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, Ad.call(this), this.blockLength = n, t + n) : -1;
|
|
2946
2946
|
}
|
|
2947
2947
|
toBER() {
|
|
2948
2948
|
return this.valueHexView.slice();
|
|
@@ -2954,11 +2954,11 @@ class Pd extends gn(ur) {
|
|
|
2954
2954
|
};
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
2957
|
-
|
|
2958
|
-
var
|
|
2957
|
+
jd.NAME = "BooleanValueBlock";
|
|
2958
|
+
var Pd;
|
|
2959
2959
|
let La = class extends Wt {
|
|
2960
2960
|
constructor(e = {}) {
|
|
2961
|
-
super(e,
|
|
2961
|
+
super(e, jd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
|
|
2962
2962
|
}
|
|
2963
2963
|
getValue() {
|
|
2964
2964
|
return this.valueBlock.value;
|
|
@@ -2970,10 +2970,10 @@ let La = class extends Wt {
|
|
|
2970
2970
|
return `${this.constructor.NAME} : ${this.getValue}`;
|
|
2971
2971
|
}
|
|
2972
2972
|
};
|
|
2973
|
-
|
|
2974
|
-
ge.Boolean =
|
|
2973
|
+
Pd = La;
|
|
2974
|
+
ge.Boolean = Pd;
|
|
2975
2975
|
La.NAME = "BOOLEAN";
|
|
2976
|
-
class
|
|
2976
|
+
class Ud extends gn(ei) {
|
|
2977
2977
|
constructor({ isConstructed: e = !1, ...t } = {}) {
|
|
2978
2978
|
super(t), this.isConstructed = e;
|
|
2979
2979
|
}
|
|
@@ -2989,7 +2989,7 @@ class Dd extends gn(ei) {
|
|
|
2989
2989
|
break;
|
|
2990
2990
|
return this.error = "EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
2991
2991
|
}
|
|
2992
|
-
if (o !==
|
|
2992
|
+
if (o !== _d)
|
|
2993
2993
|
return this.error = "OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
2994
2994
|
}
|
|
2995
2995
|
} else
|
|
@@ -3006,9 +3006,9 @@ class Dd extends gn(ei) {
|
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
3008
|
}
|
|
3009
|
-
|
|
3010
|
-
var
|
|
3011
|
-
let Si = class
|
|
3009
|
+
Ud.NAME = "OctetStringValueBlock";
|
|
3010
|
+
var Dd;
|
|
3011
|
+
let Si = class $d extends Wt {
|
|
3012
3012
|
constructor({ idBlock: e = {}, lenBlock: t = {}, ...n } = {}) {
|
|
3013
3013
|
var i, s;
|
|
3014
3014
|
(i = n.isConstructed) !== null && i !== void 0 || (n.isConstructed = !!(!((s = n.value) === null || s === void 0) && s.length)), super({
|
|
@@ -3021,7 +3021,7 @@ let Si = class Md extends Wt {
|
|
|
3021
3021
|
isIndefiniteForm: !!n.isIndefiniteForm
|
|
3022
3022
|
},
|
|
3023
3023
|
...n
|
|
3024
|
-
},
|
|
3024
|
+
}, Ud), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 4;
|
|
3025
3025
|
}
|
|
3026
3026
|
fromBER(e, t, n) {
|
|
3027
3027
|
if (this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, n === 0)
|
|
@@ -3046,14 +3046,14 @@ let Si = class Md extends Wt {
|
|
|
3046
3046
|
return this.valueBlock.valueHexView.slice().buffer;
|
|
3047
3047
|
const e = [];
|
|
3048
3048
|
for (const t of this.valueBlock.value)
|
|
3049
|
-
t instanceof
|
|
3049
|
+
t instanceof $d && e.push(t.valueBlock.valueHexView);
|
|
3050
3050
|
return Q.concat(e);
|
|
3051
3051
|
}
|
|
3052
3052
|
};
|
|
3053
|
-
|
|
3054
|
-
ge.OctetString =
|
|
3055
|
-
Si.NAME =
|
|
3056
|
-
class
|
|
3053
|
+
Dd = Si;
|
|
3054
|
+
ge.OctetString = Dd;
|
|
3055
|
+
Si.NAME = _d;
|
|
3056
|
+
class Md extends gn(ei) {
|
|
3057
3057
|
constructor({ unusedBits: e = 0, isConstructed: t = !1, ...n } = {}) {
|
|
3058
3058
|
super(n), this.unusedBits = e, this.isConstructed = t, this.blockLength = this.valueHexView.byteLength;
|
|
3059
3059
|
}
|
|
@@ -3071,7 +3071,7 @@ class Vd extends gn(ei) {
|
|
|
3071
3071
|
break;
|
|
3072
3072
|
return this.error = "EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only", -1;
|
|
3073
3073
|
}
|
|
3074
|
-
if (u !==
|
|
3074
|
+
if (u !== Sd)
|
|
3075
3075
|
return this.error = "BIT STRING may consists of BIT STRINGs only", -1;
|
|
3076
3076
|
const d = c.valueBlock;
|
|
3077
3077
|
if (this.unusedBits > 0 && d.unusedBits > 0)
|
|
@@ -3116,8 +3116,8 @@ class Vd extends gn(ei) {
|
|
|
3116
3116
|
};
|
|
3117
3117
|
}
|
|
3118
3118
|
}
|
|
3119
|
-
|
|
3120
|
-
var
|
|
3119
|
+
Md.NAME = "BitStringValueBlock";
|
|
3120
|
+
var Vd;
|
|
3121
3121
|
let Ei = class extends Wt {
|
|
3122
3122
|
constructor({ idBlock: e = {}, lenBlock: t = {}, ...n } = {}) {
|
|
3123
3123
|
var i, s;
|
|
@@ -3131,7 +3131,7 @@ let Ei = class extends Wt {
|
|
|
3131
3131
|
isIndefiniteForm: !!n.isIndefiniteForm
|
|
3132
3132
|
},
|
|
3133
3133
|
...n
|
|
3134
|
-
},
|
|
3134
|
+
}, Md), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 3;
|
|
3135
3135
|
}
|
|
3136
3136
|
fromBER(e, t, n) {
|
|
3137
3137
|
return this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, super.fromBER(e, t, n);
|
|
@@ -3148,10 +3148,10 @@ let Ei = class extends Wt {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
3150
|
};
|
|
3151
|
-
|
|
3152
|
-
ge.BitString =
|
|
3153
|
-
Ei.NAME =
|
|
3154
|
-
var
|
|
3151
|
+
Vd = Ei;
|
|
3152
|
+
ge.BitString = Vd;
|
|
3153
|
+
Ei.NAME = Sd;
|
|
3154
|
+
var Ld;
|
|
3155
3155
|
function $y(r, e) {
|
|
3156
3156
|
const t = new Uint8Array([0]), n = new Uint8Array(r), i = new Uint8Array(e);
|
|
3157
3157
|
let s = n.slice(0);
|
|
@@ -3217,7 +3217,7 @@ class ju extends gn(ur) {
|
|
|
3217
3217
|
super(t), this._valueDec = 0, t.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
|
|
3218
3218
|
}
|
|
3219
3219
|
setValueHex() {
|
|
3220
|
-
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec =
|
|
3220
|
+
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = Ad.call(this)));
|
|
3221
3221
|
}
|
|
3222
3222
|
set valueDec(e) {
|
|
3223
3223
|
this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(ky(e));
|
|
@@ -3284,9 +3284,9 @@ class ju extends gn(ur) {
|
|
|
3284
3284
|
return c === !1 && (o += Rf.charAt(0)), o;
|
|
3285
3285
|
}
|
|
3286
3286
|
}
|
|
3287
|
-
|
|
3287
|
+
Ld = ju;
|
|
3288
3288
|
ju.NAME = "IntegerValueBlock";
|
|
3289
|
-
Object.defineProperty(
|
|
3289
|
+
Object.defineProperty(Ld.prototype, "valueHex", {
|
|
3290
3290
|
set: function(r) {
|
|
3291
3291
|
this.valueHexView = new Uint8Array(r), this.setValueHex();
|
|
3292
3292
|
},
|
|
@@ -3294,7 +3294,7 @@ Object.defineProperty(Hd.prototype, "valueHex", {
|
|
|
3294
3294
|
return this.valueHexView.slice().buffer;
|
|
3295
3295
|
}
|
|
3296
3296
|
});
|
|
3297
|
-
var
|
|
3297
|
+
var Hd;
|
|
3298
3298
|
class ln extends Wt {
|
|
3299
3299
|
constructor(e = {}) {
|
|
3300
3300
|
super(e, ju), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
@@ -3329,17 +3329,17 @@ class ln extends Wt {
|
|
|
3329
3329
|
return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
|
-
|
|
3333
|
-
ge.Integer =
|
|
3332
|
+
Hd = ln;
|
|
3333
|
+
ge.Integer = Hd;
|
|
3334
3334
|
ln.NAME = "INTEGER";
|
|
3335
|
-
var
|
|
3335
|
+
var Fd;
|
|
3336
3336
|
class Ha extends ln {
|
|
3337
3337
|
constructor(e = {}) {
|
|
3338
3338
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
3339
3339
|
}
|
|
3340
3340
|
}
|
|
3341
|
-
|
|
3342
|
-
ge.Enumerated =
|
|
3341
|
+
Fd = Ha;
|
|
3342
|
+
ge.Enumerated = Fd;
|
|
3343
3343
|
Ha.NAME = "ENUMERATED";
|
|
3344
3344
|
class il extends gn(ur) {
|
|
3345
3345
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...n } = {}) {
|
|
@@ -3411,7 +3411,7 @@ class il extends gn(ur) {
|
|
|
3411
3411
|
}
|
|
3412
3412
|
}
|
|
3413
3413
|
il.NAME = "sidBlock";
|
|
3414
|
-
class
|
|
3414
|
+
class Gd extends ur {
|
|
3415
3415
|
constructor({ value: e = pr, ...t } = {}) {
|
|
3416
3416
|
super(t), this.value = [], e && this.fromString(e);
|
|
3417
3417
|
}
|
|
@@ -3491,11 +3491,11 @@ class zd extends ur {
|
|
|
3491
3491
|
return e;
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
|
-
|
|
3495
|
-
var
|
|
3494
|
+
Gd.NAME = "ObjectIdentifierValueBlock";
|
|
3495
|
+
var zd;
|
|
3496
3496
|
class Fa extends Wt {
|
|
3497
3497
|
constructor(e = {}) {
|
|
3498
|
-
super(e,
|
|
3498
|
+
super(e, Gd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
|
|
3499
3499
|
}
|
|
3500
3500
|
getValue() {
|
|
3501
3501
|
return this.valueBlock.toString();
|
|
@@ -3513,8 +3513,8 @@ class Fa extends Wt {
|
|
|
3513
3513
|
};
|
|
3514
3514
|
}
|
|
3515
3515
|
}
|
|
3516
|
-
|
|
3517
|
-
ge.ObjectIdentifier =
|
|
3516
|
+
zd = Fa;
|
|
3517
|
+
ge.ObjectIdentifier = zd;
|
|
3518
3518
|
Fa.NAME = "OBJECT IDENTIFIER";
|
|
3519
3519
|
class sl extends gn(Hi) {
|
|
3520
3520
|
constructor({ valueDec: e = 0, ...t } = {}) {
|
|
@@ -3568,7 +3568,7 @@ class sl extends gn(Hi) {
|
|
|
3568
3568
|
}
|
|
3569
3569
|
}
|
|
3570
3570
|
sl.NAME = "relativeSidBlock";
|
|
3571
|
-
class
|
|
3571
|
+
class Kd extends ur {
|
|
3572
3572
|
constructor({ value: e = pr, ...t } = {}) {
|
|
3573
3573
|
super(t), this.value = [], e && this.fromString(e);
|
|
3574
3574
|
}
|
|
@@ -3624,11 +3624,11 @@ class Zd extends ur {
|
|
|
3624
3624
|
return e;
|
|
3625
3625
|
}
|
|
3626
3626
|
}
|
|
3627
|
-
|
|
3628
|
-
var
|
|
3627
|
+
Kd.NAME = "RelativeObjectIdentifierValueBlock";
|
|
3628
|
+
var Zd;
|
|
3629
3629
|
class Pu extends Wt {
|
|
3630
3630
|
constructor(e = {}) {
|
|
3631
|
-
super(e,
|
|
3631
|
+
super(e, Kd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
|
|
3632
3632
|
}
|
|
3633
3633
|
getValue() {
|
|
3634
3634
|
return this.valueBlock.toString();
|
|
@@ -3646,28 +3646,28 @@ class Pu extends Wt {
|
|
|
3646
3646
|
};
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
|
-
|
|
3650
|
-
ge.RelativeObjectIdentifier =
|
|
3649
|
+
Zd = Pu;
|
|
3650
|
+
ge.RelativeObjectIdentifier = Zd;
|
|
3651
3651
|
Pu.NAME = "RelativeObjectIdentifier";
|
|
3652
|
-
var
|
|
3652
|
+
var qd;
|
|
3653
3653
|
class Sn extends gr {
|
|
3654
3654
|
constructor(e = {}) {
|
|
3655
3655
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
|
|
3656
3656
|
}
|
|
3657
3657
|
}
|
|
3658
|
-
|
|
3659
|
-
ge.Sequence =
|
|
3658
|
+
qd = Sn;
|
|
3659
|
+
ge.Sequence = qd;
|
|
3660
3660
|
Sn.NAME = "SEQUENCE";
|
|
3661
|
-
var
|
|
3661
|
+
var Wd;
|
|
3662
3662
|
let En = class extends gr {
|
|
3663
3663
|
constructor(e = {}) {
|
|
3664
3664
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
|
|
3665
3665
|
}
|
|
3666
3666
|
};
|
|
3667
|
-
|
|
3668
|
-
ge.Set =
|
|
3667
|
+
Wd = En;
|
|
3668
|
+
ge.Set = Wd;
|
|
3669
3669
|
En.NAME = "SET";
|
|
3670
|
-
class
|
|
3670
|
+
class Yd extends gn(ur) {
|
|
3671
3671
|
constructor({ ...e } = {}) {
|
|
3672
3672
|
super(e), this.isHexOnly = !0, this.value = pr;
|
|
3673
3673
|
}
|
|
@@ -3678,13 +3678,13 @@ class Jd extends gn(ur) {
|
|
|
3678
3678
|
};
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
|
-
|
|
3682
|
-
class
|
|
3681
|
+
Yd.NAME = "StringValueBlock";
|
|
3682
|
+
class Jd extends Yd {
|
|
3683
3683
|
}
|
|
3684
|
-
|
|
3684
|
+
Jd.NAME = "SimpleStringValueBlock";
|
|
3685
3685
|
class Er extends Nu {
|
|
3686
3686
|
constructor({ ...e } = {}) {
|
|
3687
|
-
super(e,
|
|
3687
|
+
super(e, Jd);
|
|
3688
3688
|
}
|
|
3689
3689
|
fromBuffer(e) {
|
|
3690
3690
|
this.valueBlock.value = String.fromCharCode.apply(null, Q.toUint8Array(e));
|
|
@@ -3697,7 +3697,7 @@ class Er extends Nu {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
}
|
|
3699
3699
|
Er.NAME = "SIMPLE STRING";
|
|
3700
|
-
class
|
|
3700
|
+
class Xd extends Er {
|
|
3701
3701
|
fromBuffer(e) {
|
|
3702
3702
|
this.valueBlock.valueHexView = Q.toUint8Array(e);
|
|
3703
3703
|
try {
|
|
@@ -3710,17 +3710,17 @@ class Qd extends Er {
|
|
|
3710
3710
|
this.valueBlock.valueHexView = new Uint8Array(me.FromUtf8String(e)), this.valueBlock.value = e;
|
|
3711
3711
|
}
|
|
3712
3712
|
}
|
|
3713
|
-
|
|
3714
|
-
var
|
|
3715
|
-
class Rn extends
|
|
3713
|
+
Xd.NAME = "Utf8StringValueBlock";
|
|
3714
|
+
var Qd;
|
|
3715
|
+
class Rn extends Xd {
|
|
3716
3716
|
constructor(e = {}) {
|
|
3717
3717
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 12;
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
|
-
|
|
3721
|
-
ge.Utf8String =
|
|
3720
|
+
Qd = Rn;
|
|
3721
|
+
ge.Utf8String = Qd;
|
|
3722
3722
|
Rn.NAME = "UTF8String";
|
|
3723
|
-
class
|
|
3723
|
+
class ep extends Er {
|
|
3724
3724
|
fromBuffer(e) {
|
|
3725
3725
|
this.valueBlock.value = me.ToUtf16String(e), this.valueBlock.valueHexView = Q.toUint8Array(e);
|
|
3726
3726
|
}
|
|
@@ -3728,17 +3728,17 @@ class tp extends Er {
|
|
|
3728
3728
|
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(me.FromUtf16String(e));
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
|
3731
|
-
|
|
3732
|
-
var
|
|
3733
|
-
class Ga extends
|
|
3731
|
+
ep.NAME = "BmpStringValueBlock";
|
|
3732
|
+
var tp;
|
|
3733
|
+
class Ga extends ep {
|
|
3734
3734
|
constructor({ ...e } = {}) {
|
|
3735
3735
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
|
|
3736
3736
|
}
|
|
3737
3737
|
}
|
|
3738
|
-
|
|
3739
|
-
ge.BmpString =
|
|
3738
|
+
tp = Ga;
|
|
3739
|
+
ge.BmpString = tp;
|
|
3740
3740
|
Ga.NAME = "BMPString";
|
|
3741
|
-
class
|
|
3741
|
+
class rp extends Er {
|
|
3742
3742
|
fromBuffer(e) {
|
|
3743
3743
|
const t = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), n = new Uint8Array(t);
|
|
3744
3744
|
for (let i = 0; i < n.length; i += 4)
|
|
@@ -3758,98 +3758,98 @@ class np extends Er {
|
|
|
3758
3758
|
this.valueBlock.value = e;
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
|
-
|
|
3762
|
-
var
|
|
3763
|
-
class za extends
|
|
3761
|
+
rp.NAME = "UniversalStringValueBlock";
|
|
3762
|
+
var np;
|
|
3763
|
+
class za extends rp {
|
|
3764
3764
|
constructor({ ...e } = {}) {
|
|
3765
3765
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
|
|
3766
3766
|
}
|
|
3767
3767
|
}
|
|
3768
|
-
|
|
3769
|
-
ge.UniversalString =
|
|
3768
|
+
np = za;
|
|
3769
|
+
ge.UniversalString = np;
|
|
3770
3770
|
za.NAME = "UniversalString";
|
|
3771
|
-
var
|
|
3771
|
+
var ip;
|
|
3772
3772
|
class Ka extends Er {
|
|
3773
3773
|
constructor(e = {}) {
|
|
3774
3774
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
|
|
3775
3775
|
}
|
|
3776
3776
|
}
|
|
3777
|
-
|
|
3778
|
-
ge.NumericString =
|
|
3777
|
+
ip = Ka;
|
|
3778
|
+
ge.NumericString = ip;
|
|
3779
3779
|
Ka.NAME = "NumericString";
|
|
3780
|
-
var
|
|
3780
|
+
var sp;
|
|
3781
3781
|
class Za extends Er {
|
|
3782
3782
|
constructor(e = {}) {
|
|
3783
3783
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
|
|
3784
3784
|
}
|
|
3785
3785
|
}
|
|
3786
|
-
|
|
3787
|
-
ge.PrintableString =
|
|
3786
|
+
sp = Za;
|
|
3787
|
+
ge.PrintableString = sp;
|
|
3788
3788
|
Za.NAME = "PrintableString";
|
|
3789
|
-
var
|
|
3789
|
+
var op;
|
|
3790
3790
|
class qa extends Er {
|
|
3791
3791
|
constructor(e = {}) {
|
|
3792
3792
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
|
|
3793
3793
|
}
|
|
3794
3794
|
}
|
|
3795
|
-
|
|
3796
|
-
ge.TeletexString =
|
|
3795
|
+
op = qa;
|
|
3796
|
+
ge.TeletexString = op;
|
|
3797
3797
|
qa.NAME = "TeletexString";
|
|
3798
|
-
var
|
|
3798
|
+
var ap;
|
|
3799
3799
|
class Wa extends Er {
|
|
3800
3800
|
constructor(e = {}) {
|
|
3801
3801
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
|
|
3802
3802
|
}
|
|
3803
3803
|
}
|
|
3804
|
-
|
|
3805
|
-
ge.VideotexString =
|
|
3804
|
+
ap = Wa;
|
|
3805
|
+
ge.VideotexString = ap;
|
|
3806
3806
|
Wa.NAME = "VideotexString";
|
|
3807
|
-
var
|
|
3807
|
+
var cp;
|
|
3808
3808
|
class Ya extends Er {
|
|
3809
3809
|
constructor(e = {}) {
|
|
3810
3810
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
|
-
|
|
3814
|
-
ge.IA5String =
|
|
3813
|
+
cp = Ya;
|
|
3814
|
+
ge.IA5String = cp;
|
|
3815
3815
|
Ya.NAME = "IA5String";
|
|
3816
|
-
var
|
|
3816
|
+
var lp;
|
|
3817
3817
|
class Ja extends Er {
|
|
3818
3818
|
constructor(e = {}) {
|
|
3819
3819
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
|
|
3820
3820
|
}
|
|
3821
3821
|
}
|
|
3822
|
-
|
|
3823
|
-
ge.GraphicString =
|
|
3822
|
+
lp = Ja;
|
|
3823
|
+
ge.GraphicString = lp;
|
|
3824
3824
|
Ja.NAME = "GraphicString";
|
|
3825
|
-
var
|
|
3825
|
+
var up;
|
|
3826
3826
|
class po extends Er {
|
|
3827
3827
|
constructor(e = {}) {
|
|
3828
3828
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
|
-
|
|
3832
|
-
ge.VisibleString =
|
|
3831
|
+
up = po;
|
|
3832
|
+
ge.VisibleString = up;
|
|
3833
3833
|
po.NAME = "VisibleString";
|
|
3834
|
-
var
|
|
3834
|
+
var fp;
|
|
3835
3835
|
class Xa extends Er {
|
|
3836
3836
|
constructor(e = {}) {
|
|
3837
3837
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
|
|
3838
3838
|
}
|
|
3839
3839
|
}
|
|
3840
|
-
|
|
3841
|
-
ge.GeneralString =
|
|
3840
|
+
fp = Xa;
|
|
3841
|
+
ge.GeneralString = fp;
|
|
3842
3842
|
Xa.NAME = "GeneralString";
|
|
3843
|
-
var
|
|
3843
|
+
var hp;
|
|
3844
3844
|
class Qa extends Er {
|
|
3845
3845
|
constructor(e = {}) {
|
|
3846
3846
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
|
|
3847
3847
|
}
|
|
3848
3848
|
}
|
|
3849
|
-
|
|
3850
|
-
ge.CharacterString =
|
|
3849
|
+
hp = Qa;
|
|
3850
|
+
ge.CharacterString = hp;
|
|
3851
3851
|
Qa.NAME = "CharacterString";
|
|
3852
|
-
var
|
|
3852
|
+
var dp;
|
|
3853
3853
|
class yo extends po {
|
|
3854
3854
|
constructor({ value: e, valueDate: t, ...n } = {}) {
|
|
3855
3855
|
if (super(n), this.year = 0, this.month = 0, this.day = 0, this.hour = 0, this.minute = 0, this.second = 0, e) {
|
|
@@ -3905,10 +3905,10 @@ class yo extends po {
|
|
|
3905
3905
|
};
|
|
3906
3906
|
}
|
|
3907
3907
|
}
|
|
3908
|
-
|
|
3909
|
-
ge.UTCTime =
|
|
3908
|
+
dp = yo;
|
|
3909
|
+
ge.UTCTime = dp;
|
|
3910
3910
|
yo.NAME = "UTCTime";
|
|
3911
|
-
var
|
|
3911
|
+
var pp;
|
|
3912
3912
|
class ec extends yo {
|
|
3913
3913
|
constructor(e = {}) {
|
|
3914
3914
|
var t;
|
|
@@ -4029,53 +4029,53 @@ class ec extends yo {
|
|
|
4029
4029
|
};
|
|
4030
4030
|
}
|
|
4031
4031
|
}
|
|
4032
|
-
|
|
4033
|
-
ge.GeneralizedTime =
|
|
4032
|
+
pp = ec;
|
|
4033
|
+
ge.GeneralizedTime = pp;
|
|
4034
4034
|
ec.NAME = "GeneralizedTime";
|
|
4035
|
-
var
|
|
4035
|
+
var yp;
|
|
4036
4036
|
class Uu extends Rn {
|
|
4037
4037
|
constructor(e = {}) {
|
|
4038
4038
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 31;
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
|
-
|
|
4042
|
-
ge.DATE =
|
|
4041
|
+
yp = Uu;
|
|
4042
|
+
ge.DATE = yp;
|
|
4043
4043
|
Uu.NAME = "DATE";
|
|
4044
|
-
var
|
|
4044
|
+
var gp;
|
|
4045
4045
|
class Du extends Rn {
|
|
4046
4046
|
constructor(e = {}) {
|
|
4047
4047
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 32;
|
|
4048
4048
|
}
|
|
4049
4049
|
}
|
|
4050
|
-
|
|
4051
|
-
ge.TimeOfDay =
|
|
4050
|
+
gp = Du;
|
|
4051
|
+
ge.TimeOfDay = gp;
|
|
4052
4052
|
Du.NAME = "TimeOfDay";
|
|
4053
|
-
var
|
|
4053
|
+
var vp;
|
|
4054
4054
|
class $u extends Rn {
|
|
4055
4055
|
constructor(e = {}) {
|
|
4056
4056
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 33;
|
|
4057
4057
|
}
|
|
4058
4058
|
}
|
|
4059
|
-
|
|
4060
|
-
ge.DateTime =
|
|
4059
|
+
vp = $u;
|
|
4060
|
+
ge.DateTime = vp;
|
|
4061
4061
|
$u.NAME = "DateTime";
|
|
4062
|
-
var
|
|
4062
|
+
var mp;
|
|
4063
4063
|
class Mu extends Rn {
|
|
4064
4064
|
constructor(e = {}) {
|
|
4065
4065
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 34;
|
|
4066
4066
|
}
|
|
4067
4067
|
}
|
|
4068
|
-
|
|
4069
|
-
ge.Duration =
|
|
4068
|
+
mp = Mu;
|
|
4069
|
+
ge.Duration = mp;
|
|
4070
4070
|
Mu.NAME = "Duration";
|
|
4071
|
-
var
|
|
4071
|
+
var wp;
|
|
4072
4072
|
class Vu extends Rn {
|
|
4073
4073
|
constructor(e = {}) {
|
|
4074
4074
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 14;
|
|
4075
4075
|
}
|
|
4076
4076
|
}
|
|
4077
|
-
|
|
4078
|
-
ge.TIME =
|
|
4077
|
+
wp = Vu;
|
|
4078
|
+
ge.TIME = wp;
|
|
4079
4079
|
Vu.NAME = "TIME";
|
|
4080
4080
|
class Bi {
|
|
4081
4081
|
constructor({ name: e = pr, optional: t = !1 } = {}) {
|
|
@@ -4321,7 +4321,7 @@ function Ly(r, e) {
|
|
|
4321
4321
|
result: t.result
|
|
4322
4322
|
} : xi(t.result, t.result, e);
|
|
4323
4323
|
}
|
|
4324
|
-
const
|
|
4324
|
+
const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4325
4325
|
__proto__: null,
|
|
4326
4326
|
Any: Bi,
|
|
4327
4327
|
BaseBlock: Wt,
|
|
@@ -4479,7 +4479,7 @@ function Nr(r) {
|
|
|
4479
4479
|
toASN: (e) => new r({ value: e })
|
|
4480
4480
|
};
|
|
4481
4481
|
}
|
|
4482
|
-
const
|
|
4482
|
+
const xp = Nr(Rn), Wy = Nr(Ga), Yy = Nr(za), Jy = Nr(Ka), Xy = Nr(Za), Qy = Nr(qa), eg = Nr(Wa), tg = Nr(Ya), rg = Nr(Ja), ng = Nr(po), ig = Nr(Xa), sg = Nr(Qa), og = {
|
|
4483
4483
|
fromASN: (r) => r.toDate(),
|
|
4484
4484
|
toASN: (r) => new yo({ valueDate: r })
|
|
4485
4485
|
}, ag = {
|
|
@@ -4530,7 +4530,7 @@ function Hu(r) {
|
|
|
4530
4530
|
case A.UniversalString:
|
|
4531
4531
|
return Yy;
|
|
4532
4532
|
case A.Utf8String:
|
|
4533
|
-
return
|
|
4533
|
+
return xp;
|
|
4534
4534
|
case A.VideotexString:
|
|
4535
4535
|
return eg;
|
|
4536
4536
|
case A.VisibleString:
|
|
@@ -4542,11 +4542,11 @@ function Hu(r) {
|
|
|
4542
4542
|
function An(r) {
|
|
4543
4543
|
return typeof r == "function" && r.prototype ? r.prototype.toASN && r.prototype.fromASN ? !0 : An(r.prototype) : !!(r && typeof r == "object" && "toASN" in r && "fromASN" in r);
|
|
4544
4544
|
}
|
|
4545
|
-
function
|
|
4545
|
+
function Ap(r) {
|
|
4546
4546
|
var e;
|
|
4547
4547
|
if (r) {
|
|
4548
4548
|
const t = Object.getPrototypeOf(r);
|
|
4549
|
-
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 :
|
|
4549
|
+
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 : Ap(t);
|
|
4550
4550
|
}
|
|
4551
4551
|
return !1;
|
|
4552
4552
|
}
|
|
@@ -4591,7 +4591,7 @@ class ug {
|
|
|
4591
4591
|
const o = n.items[s], c = t ? s : "";
|
|
4592
4592
|
let u;
|
|
4593
4593
|
if (typeof o.type == "number") {
|
|
4594
|
-
const b = A[o.type], E =
|
|
4594
|
+
const b = A[o.type], E = bp[b];
|
|
4595
4595
|
if (!E)
|
|
4596
4596
|
throw new Error(`Cannot get ASN1 class by name '${b}'`);
|
|
4597
4597
|
u = new E({ name: c });
|
|
@@ -4717,7 +4717,7 @@ class fg {
|
|
|
4717
4717
|
if (!o.verified)
|
|
4718
4718
|
throw new Uf(`Data does not match to ${t.name} ASN1 schema. ${o.result.error}`);
|
|
4719
4719
|
const c = new t();
|
|
4720
|
-
if (
|
|
4720
|
+
if (Ap(t)) {
|
|
4721
4721
|
if (!("value" in e.valueBlock && Array.isArray(e.valueBlock.value)))
|
|
4722
4722
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
4723
4723
|
const u = i.itemType;
|
|
@@ -4758,7 +4758,7 @@ class fg {
|
|
|
4758
4758
|
if (An(E))
|
|
4759
4759
|
w = new E().toSchema("");
|
|
4760
4760
|
else {
|
|
4761
|
-
const S = A[E], T =
|
|
4761
|
+
const S = A[E], T = bp[S];
|
|
4762
4762
|
if (!T)
|
|
4763
4763
|
throw new Error(`Cannot get '${S}' class from asn1js module`);
|
|
4764
4764
|
w = new T();
|
|
@@ -4914,7 +4914,7 @@ function f(r, e, t, n) {
|
|
|
4914
4914
|
else for (var c = r.length - 1; c >= 0; c--) (o = r[c]) && (s = (i < 3 ? o(s) : i > 3 ? o(e, t, s) : o(e, t)) || s);
|
|
4915
4915
|
return i > 3 && s && Object.defineProperty(e, t, s), s;
|
|
4916
4916
|
}
|
|
4917
|
-
var
|
|
4917
|
+
var _p = { exports: {} };
|
|
4918
4918
|
(function(r) {
|
|
4919
4919
|
(function(e) {
|
|
4920
4920
|
const t = "(0?\\d+|0x[a-f0-9]+)", n = {
|
|
@@ -5407,8 +5407,8 @@ var Sp = { exports: {} };
|
|
|
5407
5407
|
return T;
|
|
5408
5408
|
}, r.exports ? r.exports = $ : e.ipaddr = $;
|
|
5409
5409
|
})(el);
|
|
5410
|
-
})(
|
|
5411
|
-
var Df =
|
|
5410
|
+
})(_p);
|
|
5411
|
+
var Df = _p.exports;
|
|
5412
5412
|
class $f {
|
|
5413
5413
|
static decodeIP(e) {
|
|
5414
5414
|
if (e.length === 64 && parseInt(e, 16) === 0)
|
|
@@ -5616,7 +5616,7 @@ f([
|
|
|
5616
5616
|
converter: _t
|
|
5617
5617
|
})
|
|
5618
5618
|
], Ai.prototype, "authorityCertSerialNumber", void 0);
|
|
5619
|
-
const
|
|
5619
|
+
const Sp = `${ui}.19`;
|
|
5620
5620
|
class Ko {
|
|
5621
5621
|
constructor(e = {}) {
|
|
5622
5622
|
this.cA = !1, Object.assign(this, e);
|
|
@@ -5647,7 +5647,7 @@ Ff = dl = f([
|
|
|
5647
5647
|
K({ type: L.Sequence })
|
|
5648
5648
|
], Ff);
|
|
5649
5649
|
var pl;
|
|
5650
|
-
const
|
|
5650
|
+
const Ep = `${ui}.32`;
|
|
5651
5651
|
let Cn = class {
|
|
5652
5652
|
constructor(e = {}) {
|
|
5653
5653
|
Object.assign(this, e);
|
|
@@ -5759,7 +5759,7 @@ var $r;
|
|
|
5759
5759
|
(function(r) {
|
|
5760
5760
|
r[r.unused = 1] = "unused", r[r.keyCompromise = 2] = "keyCompromise", r[r.cACompromise = 4] = "cACompromise", r[r.affiliationChanged = 8] = "affiliationChanged", r[r.superseded = 16] = "superseded", r[r.cessationOfOperation = 32] = "cessationOfOperation", r[r.certificateHold = 64] = "certificateHold", r[r.privilegeWithdrawn = 128] = "privilegeWithdrawn", r[r.aACompromise = 256] = "aACompromise";
|
|
5761
5761
|
})($r || ($r = {}));
|
|
5762
|
-
class
|
|
5762
|
+
class kp extends tc {
|
|
5763
5763
|
toJSON() {
|
|
5764
5764
|
const e = [], t = this.toNumber();
|
|
5765
5765
|
return t & $r.aACompromise && e.push("aACompromise"), t & $r.affiliationChanged && e.push("affiliationChanged"), t & $r.cACompromise && e.push("cACompromise"), t & $r.certificateHold && e.push("certificateHold"), t & $r.cessationOfOperation && e.push("cessationOfOperation"), t & $r.keyCompromise && e.push("keyCompromise"), t & $r.privilegeWithdrawn && e.push("privilegeWithdrawn"), t & $r.superseded && e.push("superseded"), t & $r.unused && e.push("unused"), e;
|
|
@@ -5791,7 +5791,7 @@ f([
|
|
|
5791
5791
|
g({ type: Oi, context: 0, optional: !0 })
|
|
5792
5792
|
], gs.prototype, "distributionPoint", void 0);
|
|
5793
5793
|
f([
|
|
5794
|
-
g({ type:
|
|
5794
|
+
g({ type: kp, context: 1, optional: !0, implicit: !0 })
|
|
5795
5795
|
], gs.prototype, "reasons", void 0);
|
|
5796
5796
|
f([
|
|
5797
5797
|
g({ type: $e, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
@@ -5829,7 +5829,7 @@ f([
|
|
|
5829
5829
|
g({ type: A.Boolean, context: 2, defaultValue: rr.ONLY, implicit: !0 })
|
|
5830
5830
|
], rr.prototype, "onlyContainsCACerts", void 0);
|
|
5831
5831
|
f([
|
|
5832
|
-
g({ type:
|
|
5832
|
+
g({ type: kp, context: 3, optional: !0, implicit: !0 })
|
|
5833
5833
|
], rr.prototype, "onlySomeReasons", void 0);
|
|
5834
5834
|
f([
|
|
5835
5835
|
g({ type: A.Boolean, context: 4, defaultValue: rr.ONLY, implicit: !0 })
|
|
@@ -5859,7 +5859,7 @@ ml = f([
|
|
|
5859
5859
|
K({ type: L.Choice })
|
|
5860
5860
|
], ml);
|
|
5861
5861
|
var wl;
|
|
5862
|
-
const
|
|
5862
|
+
const Ip = `${ui}.37`;
|
|
5863
5863
|
let Yo = wl = class extends yt {
|
|
5864
5864
|
constructor(e) {
|
|
5865
5865
|
super(e), Object.setPrototypeOf(this, wl.prototype);
|
|
@@ -5900,7 +5900,7 @@ let Kf = Al = class extends ar {
|
|
|
5900
5900
|
Kf = Al = f([
|
|
5901
5901
|
K({ type: L.Sequence })
|
|
5902
5902
|
], Kf);
|
|
5903
|
-
const
|
|
5903
|
+
const Cp = `${ui}.15`;
|
|
5904
5904
|
var Mr;
|
|
5905
5905
|
(function(r) {
|
|
5906
5906
|
r[r.digitalSignature = 1] = "digitalSignature", r[r.nonRepudiation = 2] = "nonRepudiation", r[r.keyEncipherment = 4] = "keyEncipherment", r[r.dataEncipherment = 8] = "dataEncipherment", r[r.keyAgreement = 16] = "keyAgreement", r[r.keyCertSign = 32] = "keyCertSign", r[r.cRLSign = 64] = "cRLSign", r[r.encipherOnly = 128] = "encipherOnly", r[r.decipherOnly = 256] = "decipherOnly";
|
|
@@ -5937,18 +5937,18 @@ let Jo = _l = class extends yt {
|
|
|
5937
5937
|
Jo = _l = f([
|
|
5938
5938
|
K({ type: L.Sequence, itemType: sc })
|
|
5939
5939
|
], Jo);
|
|
5940
|
-
class
|
|
5940
|
+
class Bp {
|
|
5941
5941
|
constructor(e = {}) {
|
|
5942
5942
|
Object.assign(this, e);
|
|
5943
5943
|
}
|
|
5944
5944
|
}
|
|
5945
5945
|
f([
|
|
5946
5946
|
g({ type: Jo, context: 0, optional: !0, implicit: !0 })
|
|
5947
|
-
],
|
|
5947
|
+
], Bp.prototype, "permittedSubtrees", void 0);
|
|
5948
5948
|
f([
|
|
5949
5949
|
g({ type: Jo, context: 1, optional: !0, implicit: !0 })
|
|
5950
|
-
],
|
|
5951
|
-
class
|
|
5950
|
+
], Bp.prototype, "excludedSubtrees", void 0);
|
|
5951
|
+
class Op {
|
|
5952
5952
|
constructor(e = {}) {
|
|
5953
5953
|
Object.assign(this, e);
|
|
5954
5954
|
}
|
|
@@ -5961,7 +5961,7 @@ f([
|
|
|
5961
5961
|
optional: !0,
|
|
5962
5962
|
converter: _t
|
|
5963
5963
|
})
|
|
5964
|
-
],
|
|
5964
|
+
], Op.prototype, "requireExplicitPolicy", void 0);
|
|
5965
5965
|
f([
|
|
5966
5966
|
g({
|
|
5967
5967
|
type: A.Integer,
|
|
@@ -5970,7 +5970,7 @@ f([
|
|
|
5970
5970
|
optional: !0,
|
|
5971
5971
|
converter: _t
|
|
5972
5972
|
})
|
|
5973
|
-
],
|
|
5973
|
+
], Op.prototype, "inhibitPolicyMapping", void 0);
|
|
5974
5974
|
var Sl;
|
|
5975
5975
|
class Yu {
|
|
5976
5976
|
constructor(e = {}) {
|
|
@@ -6024,22 +6024,22 @@ qf = Il = f([
|
|
|
6024
6024
|
const Xu = `${ui}.14`;
|
|
6025
6025
|
class ti extends Ku {
|
|
6026
6026
|
}
|
|
6027
|
-
class
|
|
6027
|
+
class Tp {
|
|
6028
6028
|
constructor(e = {}) {
|
|
6029
6029
|
Object.assign(this, e);
|
|
6030
6030
|
}
|
|
6031
6031
|
}
|
|
6032
6032
|
f([
|
|
6033
6033
|
g({ type: A.GeneralizedTime, context: 0, implicit: !0, optional: !0 })
|
|
6034
|
-
],
|
|
6034
|
+
], Tp.prototype, "notBefore", void 0);
|
|
6035
6035
|
f([
|
|
6036
6036
|
g({ type: A.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
6037
|
-
],
|
|
6037
|
+
], Tp.prototype, "notAfter", void 0);
|
|
6038
6038
|
var Rs;
|
|
6039
6039
|
(function(r) {
|
|
6040
6040
|
r[r.keyUpdateAllowed = 1] = "keyUpdateAllowed", r[r.newExtensions = 2] = "newExtensions", r[r.pKIXCertificate = 4] = "pKIXCertificate";
|
|
6041
6041
|
})(Rs || (Rs = {}));
|
|
6042
|
-
class
|
|
6042
|
+
class Np extends tc {
|
|
6043
6043
|
toJSON() {
|
|
6044
6044
|
const e = [], t = this.toNumber();
|
|
6045
6045
|
return t & Rs.pKIXCertificate && e.push("pKIXCertificate"), t & Rs.newExtensions && e.push("newExtensions"), t & Rs.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
|
|
@@ -6048,17 +6048,17 @@ class Rp extends tc {
|
|
|
6048
6048
|
return `[${this.toJSON().join(", ")}]`;
|
|
6049
6049
|
}
|
|
6050
6050
|
}
|
|
6051
|
-
class
|
|
6051
|
+
class Rp {
|
|
6052
6052
|
constructor(e = {}) {
|
|
6053
|
-
this.entrustVers = "", this.entrustInfoFlags = new
|
|
6053
|
+
this.entrustVers = "", this.entrustInfoFlags = new Np(), Object.assign(this, e);
|
|
6054
6054
|
}
|
|
6055
6055
|
}
|
|
6056
6056
|
f([
|
|
6057
6057
|
g({ type: A.GeneralString })
|
|
6058
|
-
],
|
|
6058
|
+
], Rp.prototype, "entrustVers", void 0);
|
|
6059
6059
|
f([
|
|
6060
|
-
g({ type:
|
|
6061
|
-
],
|
|
6060
|
+
g({ type: Np })
|
|
6061
|
+
], Rp.prototype, "entrustInfoFlags", void 0);
|
|
6062
6062
|
var Cl;
|
|
6063
6063
|
let Wf = Cl = class extends yt {
|
|
6064
6064
|
constructor(e) {
|
|
@@ -6139,9 +6139,9 @@ f([
|
|
|
6139
6139
|
g({ type: qt })
|
|
6140
6140
|
], oc.prototype, "notAfter", void 0);
|
|
6141
6141
|
var Bl;
|
|
6142
|
-
let zr = class
|
|
6142
|
+
let zr = class jp {
|
|
6143
6143
|
constructor(e = {}) {
|
|
6144
|
-
this.extnID = "", this.critical =
|
|
6144
|
+
this.extnID = "", this.critical = jp.CRITICAL, this.extnValue = new tt(), Object.assign(this, e);
|
|
6145
6145
|
}
|
|
6146
6146
|
};
|
|
6147
6147
|
zr.CRITICAL = !1;
|
|
@@ -6622,17 +6622,17 @@ f([
|
|
|
6622
6622
|
f([
|
|
6623
6623
|
g({ type: A.Utf8String })
|
|
6624
6624
|
], hc.prototype, "string", void 0);
|
|
6625
|
-
class
|
|
6625
|
+
class Pp {
|
|
6626
6626
|
constructor(e = {}) {
|
|
6627
6627
|
this.values = [], Object.assign(this, e);
|
|
6628
6628
|
}
|
|
6629
6629
|
}
|
|
6630
6630
|
f([
|
|
6631
6631
|
g({ type: ar, implicit: !0, context: 0, optional: !0 })
|
|
6632
|
-
],
|
|
6632
|
+
], Pp.prototype, "policyAuthority", void 0);
|
|
6633
6633
|
f([
|
|
6634
6634
|
g({ type: hc, repeated: "sequence" })
|
|
6635
|
-
],
|
|
6635
|
+
], Pp.prototype, "values", void 0);
|
|
6636
6636
|
var Ul;
|
|
6637
6637
|
class dc {
|
|
6638
6638
|
constructor(e = {}) {
|
|
@@ -6682,17 +6682,17 @@ let Qf = $l = class extends yt {
|
|
|
6682
6682
|
Qf = $l = f([
|
|
6683
6683
|
K({ type: L.Sequence, itemType: Dl })
|
|
6684
6684
|
], Qf);
|
|
6685
|
-
class
|
|
6685
|
+
class Up {
|
|
6686
6686
|
constructor(e = {}) {
|
|
6687
6687
|
Object.assign(this, e);
|
|
6688
6688
|
}
|
|
6689
6689
|
}
|
|
6690
6690
|
f([
|
|
6691
6691
|
g({ type: ar, implicit: !0, context: 0, optional: !0 })
|
|
6692
|
-
],
|
|
6692
|
+
], Up.prototype, "roleAuthority", void 0);
|
|
6693
6693
|
f([
|
|
6694
6694
|
g({ type: $e, implicit: !0, context: 1 })
|
|
6695
|
-
],
|
|
6695
|
+
], Up.prototype, "roleName", void 0);
|
|
6696
6696
|
class nf {
|
|
6697
6697
|
constructor(e = {}) {
|
|
6698
6698
|
this.service = new $e(), this.ident = new $e(), Object.assign(this, e);
|
|
@@ -7141,12 +7141,12 @@ f([
|
|
|
7141
7141
|
f([
|
|
7142
7142
|
g({ type: ea })
|
|
7143
7143
|
], In.prototype, "signerInfos", void 0);
|
|
7144
|
-
const Ls = "1.2.840.10045.2.1", uf = "1.2.840.10045.4.1",
|
|
7144
|
+
const Ls = "1.2.840.10045.2.1", uf = "1.2.840.10045.4.1", Dp = "1.2.840.10045.4.3.1", ff = "1.2.840.10045.4.3.2", hf = "1.2.840.10045.4.3.3", df = "1.2.840.10045.4.3.4", eh = "1.2.840.10045.3.1.7", th = "1.3.132.0.34", rh = "1.3.132.0.35";
|
|
7145
7145
|
function So(r) {
|
|
7146
7146
|
return new fe({ algorithm: r });
|
|
7147
7147
|
}
|
|
7148
7148
|
const xg = So(uf);
|
|
7149
|
-
So(
|
|
7149
|
+
So(Dp);
|
|
7150
7150
|
const Ag = So(ff), _g = So(hf), Sg = So(df);
|
|
7151
7151
|
let Hs = class {
|
|
7152
7152
|
constructor(e = {}) {
|
|
@@ -7256,23 +7256,23 @@ f([
|
|
|
7256
7256
|
f([
|
|
7257
7257
|
g({ type: A.Integer, converter: _t })
|
|
7258
7258
|
], ca.prototype, "s", void 0);
|
|
7259
|
-
const mr = "1.2.840.113549.1.1", Pi = `${mr}.1`, kg = `${mr}.7`, Ig = `${mr}.9`, js = `${mr}.10`, Cg = `${mr}.2`, Bg = `${mr}.4`, la = `${mr}.5`, Og = `${mr}.14`, ql = `${mr}.11`, ua = `${mr}.12`, fa = `${mr}.13`,
|
|
7259
|
+
const mr = "1.2.840.113549.1.1", Pi = `${mr}.1`, kg = `${mr}.7`, Ig = `${mr}.9`, js = `${mr}.10`, Cg = `${mr}.2`, Bg = `${mr}.4`, la = `${mr}.5`, Og = `${mr}.14`, ql = `${mr}.11`, ua = `${mr}.12`, fa = `${mr}.13`, $p = `${mr}.15`, Mp = `${mr}.16`, ha = "1.3.14.3.2.26", Vp = "2.16.840.1.101.3.4.2.4", da = "2.16.840.1.101.3.4.2.1", pa = "2.16.840.1.101.3.4.2.2", ya = "2.16.840.1.101.3.4.2.3", Tg = "2.16.840.1.101.3.4.2.5", Ng = "2.16.840.1.101.3.4.2.6", Rg = "1.2.840.113549.2.2", jg = "1.2.840.113549.2.5", wc = `${mr}.8`;
|
|
7260
7260
|
function Ht(r) {
|
|
7261
7261
|
return new fe({ algorithm: r, parameters: null });
|
|
7262
7262
|
}
|
|
7263
7263
|
Ht(Rg);
|
|
7264
7264
|
Ht(jg);
|
|
7265
7265
|
const Ui = Ht(ha);
|
|
7266
|
-
Ht(
|
|
7266
|
+
Ht(Vp);
|
|
7267
7267
|
Ht(da);
|
|
7268
7268
|
Ht(pa);
|
|
7269
7269
|
Ht(ya);
|
|
7270
7270
|
Ht(Tg);
|
|
7271
7271
|
Ht(Ng);
|
|
7272
|
-
const
|
|
7272
|
+
const Lp = new fe({
|
|
7273
7273
|
algorithm: wc,
|
|
7274
7274
|
parameters: J.serialize(Ui)
|
|
7275
|
-
}),
|
|
7275
|
+
}), Hp = new fe({
|
|
7276
7276
|
algorithm: Ig,
|
|
7277
7277
|
parameters: J.serialize(Go.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
7278
7278
|
});
|
|
@@ -7280,28 +7280,28 @@ Ht(Pi);
|
|
|
7280
7280
|
Ht(Cg);
|
|
7281
7281
|
Ht(Bg);
|
|
7282
7282
|
Ht(la);
|
|
7283
|
+
Ht($p);
|
|
7283
7284
|
Ht(Mp);
|
|
7284
|
-
Ht(Vp);
|
|
7285
7285
|
Ht(ua);
|
|
7286
7286
|
Ht(fa);
|
|
7287
|
+
Ht($p);
|
|
7287
7288
|
Ht(Mp);
|
|
7288
|
-
Ht(Vp);
|
|
7289
7289
|
class bc {
|
|
7290
7290
|
constructor(e = {}) {
|
|
7291
7291
|
this.hashAlgorithm = new fe(Ui), this.maskGenAlgorithm = new fe({
|
|
7292
7292
|
algorithm: wc,
|
|
7293
7293
|
parameters: J.serialize(Ui)
|
|
7294
|
-
}), this.pSourceAlgorithm = new fe(
|
|
7294
|
+
}), this.pSourceAlgorithm = new fe(Hp), Object.assign(this, e);
|
|
7295
7295
|
}
|
|
7296
7296
|
}
|
|
7297
7297
|
f([
|
|
7298
7298
|
g({ type: fe, context: 0, defaultValue: Ui })
|
|
7299
7299
|
], bc.prototype, "hashAlgorithm", void 0);
|
|
7300
7300
|
f([
|
|
7301
|
-
g({ type: fe, context: 1, defaultValue:
|
|
7301
|
+
g({ type: fe, context: 1, defaultValue: Lp })
|
|
7302
7302
|
], bc.prototype, "maskGenAlgorithm", void 0);
|
|
7303
7303
|
f([
|
|
7304
|
-
g({ type: fe, context: 2, defaultValue:
|
|
7304
|
+
g({ type: fe, context: 2, defaultValue: Hp })
|
|
7305
7305
|
], bc.prototype, "pSourceAlgorithm", void 0);
|
|
7306
7306
|
new fe({
|
|
7307
7307
|
algorithm: kg,
|
|
@@ -7319,7 +7319,7 @@ f([
|
|
|
7319
7319
|
g({ type: fe, context: 0, defaultValue: Ui })
|
|
7320
7320
|
], Di.prototype, "hashAlgorithm", void 0);
|
|
7321
7321
|
f([
|
|
7322
|
-
g({ type: fe, context: 1, defaultValue:
|
|
7322
|
+
g({ type: fe, context: 1, defaultValue: Lp })
|
|
7323
7323
|
], Di.prototype, "maskGenAlgorithm", void 0);
|
|
7324
7324
|
f([
|
|
7325
7325
|
g({ type: A.Integer, context: 2, defaultValue: 20 })
|
|
@@ -7570,13 +7570,13 @@ function $g(r) {
|
|
|
7570
7570
|
e[+n] = t[n];
|
|
7571
7571
|
}), e;
|
|
7572
7572
|
}
|
|
7573
|
-
function
|
|
7573
|
+
function Fp(r) {
|
|
7574
7574
|
return !!r.useClass;
|
|
7575
7575
|
}
|
|
7576
7576
|
function Ql(r) {
|
|
7577
7577
|
return !!r.useFactory;
|
|
7578
7578
|
}
|
|
7579
|
-
var
|
|
7579
|
+
var Gp = function() {
|
|
7580
7580
|
function r(e) {
|
|
7581
7581
|
this.wrap = e, this.reflectMethods = [
|
|
7582
7582
|
"get",
|
|
@@ -7620,7 +7620,7 @@ function nh(r) {
|
|
|
7620
7620
|
return typeof r == "object" && "token" in r && "transform" in r;
|
|
7621
7621
|
}
|
|
7622
7622
|
function Vg(r) {
|
|
7623
|
-
return typeof r == "function" || r instanceof
|
|
7623
|
+
return typeof r == "function" || r instanceof Gp;
|
|
7624
7624
|
}
|
|
7625
7625
|
function Po(r) {
|
|
7626
7626
|
return !!r.useToken;
|
|
@@ -7629,7 +7629,7 @@ function Uo(r) {
|
|
|
7629
7629
|
return r.useValue != null;
|
|
7630
7630
|
}
|
|
7631
7631
|
function Lg(r) {
|
|
7632
|
-
return
|
|
7632
|
+
return Fp(r) || Uo(r) || Po(r) || Ql(r);
|
|
7633
7633
|
}
|
|
7634
7634
|
var gf = function() {
|
|
7635
7635
|
function r() {
|
|
@@ -7706,7 +7706,7 @@ var Zg = function(r) {
|
|
|
7706
7706
|
this.preResolution = new Zg(), this.postResolution = new qg();
|
|
7707
7707
|
}
|
|
7708
7708
|
return r;
|
|
7709
|
-
}(),
|
|
7709
|
+
}(), zp = /* @__PURE__ */ new Map(), Yg = function() {
|
|
7710
7710
|
function r(e) {
|
|
7711
7711
|
this.parent = e, this._registry = new Hg(), this.interceptors = new Wg(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
7712
7712
|
}
|
|
@@ -7809,7 +7809,7 @@ var Zg = function(r) {
|
|
|
7809
7809
|
if (this.ensureNotDisposed(), e.options.lifecycle === hr.ResolutionScoped && t.scopedResolutions.has(e))
|
|
7810
7810
|
return t.scopedResolutions.get(e);
|
|
7811
7811
|
var n = e.options.lifecycle === hr.Singleton, i = e.options.lifecycle === hr.ContainerScoped, s = n || i, o;
|
|
7812
|
-
return Uo(e.provider) ? o = e.provider.useValue : Po(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) :
|
|
7812
|
+
return Uo(e.provider) ? o = e.provider.useValue : Po(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : Fp(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : Ql(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, t), e.options.lifecycle === hr.ResolutionScoped && t.scopedResolutions.set(e, o), o;
|
|
7813
7813
|
}, r.prototype.resolveAll = function(e, t) {
|
|
7814
7814
|
var n = this;
|
|
7815
7815
|
t === void 0 && (t = new ih()), this.ensureNotDisposed();
|
|
@@ -7907,12 +7907,12 @@ var Zg = function(r) {
|
|
|
7907
7907
|
return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null;
|
|
7908
7908
|
}, r.prototype.construct = function(e, t) {
|
|
7909
7909
|
var n = this;
|
|
7910
|
-
if (e instanceof
|
|
7910
|
+
if (e instanceof Gp)
|
|
7911
7911
|
return e.createProxy(function(s) {
|
|
7912
7912
|
return n.resolve(s, t);
|
|
7913
7913
|
});
|
|
7914
7914
|
var i = function() {
|
|
7915
|
-
var s =
|
|
7915
|
+
var s = zp.get(e);
|
|
7916
7916
|
if (!s || s.length === 0) {
|
|
7917
7917
|
if (e.length === 0)
|
|
7918
7918
|
return new e();
|
|
@@ -7939,7 +7939,7 @@ var Zg = function(r) {
|
|
|
7939
7939
|
}(), cr = new Yg();
|
|
7940
7940
|
function _c() {
|
|
7941
7941
|
return function(r) {
|
|
7942
|
-
|
|
7942
|
+
zp.set(r, $g(r));
|
|
7943
7943
|
};
|
|
7944
7944
|
}
|
|
7945
7945
|
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
@@ -7973,46 +7973,46 @@ let oh = tu = class extends yt {
|
|
|
7973
7973
|
oh = tu = f([
|
|
7974
7974
|
K({ type: L.Sequence, itemType: kn })
|
|
7975
7975
|
], oh);
|
|
7976
|
-
class
|
|
7976
|
+
class Kp {
|
|
7977
7977
|
constructor(e = {}) {
|
|
7978
7978
|
this.certId = "", this.certValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
7979
7979
|
}
|
|
7980
7980
|
}
|
|
7981
7981
|
f([
|
|
7982
7982
|
g({ type: A.ObjectIdentifier })
|
|
7983
|
-
],
|
|
7983
|
+
], Kp.prototype, "certId", void 0);
|
|
7984
7984
|
f([
|
|
7985
7985
|
g({ type: A.Any, context: 0 })
|
|
7986
|
-
],
|
|
7987
|
-
class
|
|
7986
|
+
], Kp.prototype, "certValue", void 0);
|
|
7987
|
+
class Zp {
|
|
7988
7988
|
constructor(e = {}) {
|
|
7989
7989
|
this.crlId = "", this.crltValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
7990
7990
|
}
|
|
7991
7991
|
}
|
|
7992
7992
|
f([
|
|
7993
7993
|
g({ type: A.ObjectIdentifier })
|
|
7994
|
-
],
|
|
7994
|
+
], Zp.prototype, "crlId", void 0);
|
|
7995
7995
|
f([
|
|
7996
7996
|
g({ type: A.Any, context: 0 })
|
|
7997
|
-
],
|
|
7998
|
-
class
|
|
7997
|
+
], Zp.prototype, "crltValue", void 0);
|
|
7998
|
+
class qp extends tt {
|
|
7999
7999
|
}
|
|
8000
8000
|
let Ec = class {
|
|
8001
8001
|
constructor(e = {}) {
|
|
8002
|
-
this.encryptionAlgorithm = new fe(), this.encryptedData = new
|
|
8002
|
+
this.encryptionAlgorithm = new fe(), this.encryptedData = new qp(), Object.assign(this, e);
|
|
8003
8003
|
}
|
|
8004
8004
|
};
|
|
8005
8005
|
f([
|
|
8006
8006
|
g({ type: fe })
|
|
8007
8007
|
], Ec.prototype, "encryptionAlgorithm", void 0);
|
|
8008
8008
|
f([
|
|
8009
|
-
g({ type:
|
|
8009
|
+
g({ type: qp })
|
|
8010
8010
|
], Ec.prototype, "encryptedData", void 0);
|
|
8011
8011
|
var ru, nu;
|
|
8012
8012
|
(function(r) {
|
|
8013
8013
|
r[r.v1 = 0] = "v1";
|
|
8014
8014
|
})(nu || (nu = {}));
|
|
8015
|
-
class
|
|
8015
|
+
class Wp extends tt {
|
|
8016
8016
|
}
|
|
8017
8017
|
let iu = ru = class extends yt {
|
|
8018
8018
|
constructor(e) {
|
|
@@ -8024,7 +8024,7 @@ iu = ru = f([
|
|
|
8024
8024
|
], iu);
|
|
8025
8025
|
class Eo {
|
|
8026
8026
|
constructor(e = {}) {
|
|
8027
|
-
this.version = nu.v1, this.privateKeyAlgorithm = new fe(), this.privateKey = new
|
|
8027
|
+
this.version = nu.v1, this.privateKeyAlgorithm = new fe(), this.privateKey = new Wp(), Object.assign(this, e);
|
|
8028
8028
|
}
|
|
8029
8029
|
}
|
|
8030
8030
|
f([
|
|
@@ -8034,7 +8034,7 @@ f([
|
|
|
8034
8034
|
g({ type: fe })
|
|
8035
8035
|
], Eo.prototype, "privateKeyAlgorithm", void 0);
|
|
8036
8036
|
f([
|
|
8037
|
-
g({ type:
|
|
8037
|
+
g({ type: Wp })
|
|
8038
8038
|
], Eo.prototype, "privateKey", void 0);
|
|
8039
8039
|
f([
|
|
8040
8040
|
g({ type: iu, implicit: !0, context: 0, optional: !0 })
|
|
@@ -8049,17 +8049,17 @@ let ch = class extends Ec {
|
|
|
8049
8049
|
ch = f([
|
|
8050
8050
|
K({ type: L.Sequence })
|
|
8051
8051
|
], ch);
|
|
8052
|
-
class
|
|
8052
|
+
class Yp {
|
|
8053
8053
|
constructor(e = {}) {
|
|
8054
8054
|
this.secretTypeId = "", this.secretValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
8055
8055
|
}
|
|
8056
8056
|
}
|
|
8057
8057
|
f([
|
|
8058
8058
|
g({ type: A.ObjectIdentifier })
|
|
8059
|
-
],
|
|
8059
|
+
], Yp.prototype, "secretTypeId", void 0);
|
|
8060
8060
|
f([
|
|
8061
8061
|
g({ type: A.Any, context: 0 })
|
|
8062
|
-
],
|
|
8062
|
+
], Yp.prototype, "secretValue", void 0);
|
|
8063
8063
|
class ko {
|
|
8064
8064
|
constructor(e = {}) {
|
|
8065
8065
|
this.mac = new xc(), this.macSalt = new tt(), this.iterations = 1, Object.assign(this, e);
|
|
@@ -8112,7 +8112,7 @@ lh = su = f([
|
|
|
8112
8112
|
K({ type: L.Sequence, itemType: Ic })
|
|
8113
8113
|
], lh);
|
|
8114
8114
|
var ou, au, cu;
|
|
8115
|
-
const
|
|
8115
|
+
const Jp = "1.2.840.113549.1.9", Xp = `${Jp}.7`, vf = `${Jp}.14`;
|
|
8116
8116
|
let va = class extends Yt {
|
|
8117
8117
|
constructor(e = {}) {
|
|
8118
8118
|
super(e);
|
|
@@ -8553,16 +8553,16 @@ Gs = Do = f([
|
|
|
8553
8553
|
_c()
|
|
8554
8554
|
], Gs);
|
|
8555
8555
|
cr.registerSingleton(Io, Gs);
|
|
8556
|
-
const
|
|
8556
|
+
const Qp = Symbol("name"), e0 = Symbol("value");
|
|
8557
8557
|
class et {
|
|
8558
8558
|
constructor(e, t = {}, n = "") {
|
|
8559
|
-
this[
|
|
8559
|
+
this[Qp] = e, this[e0] = n;
|
|
8560
8560
|
for (const i in t)
|
|
8561
8561
|
this[i] = t[i];
|
|
8562
8562
|
}
|
|
8563
8563
|
}
|
|
8564
|
-
et.NAME =
|
|
8565
|
-
et.VALUE =
|
|
8564
|
+
et.NAME = Qp;
|
|
8565
|
+
et.VALUE = e0;
|
|
8566
8566
|
class Xg {
|
|
8567
8567
|
static toTextObject(e) {
|
|
8568
8568
|
const t = new et("Algorithm Identifier", {}, Pn.toString(e.algorithm));
|
|
@@ -8587,7 +8587,7 @@ class Pn {
|
|
|
8587
8587
|
}
|
|
8588
8588
|
Pn.items = {
|
|
8589
8589
|
[ha]: "sha1",
|
|
8590
|
-
[
|
|
8590
|
+
[Vp]: "sha224",
|
|
8591
8591
|
[da]: "sha256",
|
|
8592
8592
|
[pa]: "sha384",
|
|
8593
8593
|
[ya]: "sha512",
|
|
@@ -8599,7 +8599,7 @@ Pn.items = {
|
|
|
8599
8599
|
[fa]: "sha512WithRSAEncryption",
|
|
8600
8600
|
[Ls]: "ecPublicKey",
|
|
8601
8601
|
[uf]: "ecdsaWithSHA1",
|
|
8602
|
-
[
|
|
8602
|
+
[Dp]: "ecdsaWithSHA224",
|
|
8603
8603
|
[ff]: "ecdsaWithSHA256",
|
|
8604
8604
|
[hf]: "ecdsaWithSHA384",
|
|
8605
8605
|
[df]: "ecdsaWithSHA512",
|
|
@@ -8728,7 +8728,7 @@ class jr extends fi {
|
|
|
8728
8728
|
return e[et.NAME] === jr.NAME && (e[et.NAME] = Pn.toString(this.type)), e;
|
|
8729
8729
|
}
|
|
8730
8730
|
}
|
|
8731
|
-
var
|
|
8731
|
+
var t0;
|
|
8732
8732
|
class Jn {
|
|
8733
8733
|
static isCryptoKeyPair(e) {
|
|
8734
8734
|
return e && e.privateKey && e.publicKey;
|
|
@@ -8737,7 +8737,7 @@ class Jn {
|
|
|
8737
8737
|
return e && e.usages && e.type && e.algorithm && e.extractable !== void 0;
|
|
8738
8738
|
}
|
|
8739
8739
|
constructor() {
|
|
8740
|
-
this.items = /* @__PURE__ */ new Map(), this[
|
|
8740
|
+
this.items = /* @__PURE__ */ new Map(), this[t0] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" ? this.set(Jn.DEFAULT, crypto) : typeof global < "u" && global.crypto && global.crypto.subtle && this.set(Jn.DEFAULT, global.crypto);
|
|
8741
8741
|
}
|
|
8742
8742
|
clear() {
|
|
8743
8743
|
this.items.clear();
|
|
@@ -8782,13 +8782,13 @@ class Jn {
|
|
|
8782
8782
|
return this;
|
|
8783
8783
|
}
|
|
8784
8784
|
}
|
|
8785
|
-
|
|
8785
|
+
t0 = Symbol.toStringTag;
|
|
8786
8786
|
Jn.DEFAULT = "default";
|
|
8787
8787
|
const Kt = new Jn(), Qg = /^[0-2](?:\.[1-9][0-9]*)+$/;
|
|
8788
8788
|
function ev(r) {
|
|
8789
8789
|
return new RegExp(Qg).test(r);
|
|
8790
8790
|
}
|
|
8791
|
-
class
|
|
8791
|
+
class r0 {
|
|
8792
8792
|
constructor(e = {}) {
|
|
8793
8793
|
this.items = {};
|
|
8794
8794
|
for (const t in e)
|
|
@@ -8804,7 +8804,7 @@ class n0 {
|
|
|
8804
8804
|
this.items[e] = t, this.items[t] = e;
|
|
8805
8805
|
}
|
|
8806
8806
|
}
|
|
8807
|
-
const vr = new
|
|
8807
|
+
const vr = new r0();
|
|
8808
8808
|
vr.register("CN", "2.5.4.3");
|
|
8809
8809
|
vr.register("L", "2.5.4.7");
|
|
8810
8810
|
vr.register("ST", "2.5.4.8");
|
|
@@ -8834,7 +8834,7 @@ class ri {
|
|
|
8834
8834
|
return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e);
|
|
8835
8835
|
}
|
|
8836
8836
|
constructor(e, t = {}) {
|
|
8837
|
-
this.extraNames = new
|
|
8837
|
+
this.extraNames = new r0(), this.asn = new Lt();
|
|
8838
8838
|
for (const n in t)
|
|
8839
8839
|
if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
8840
8840
|
const i = t[n];
|
|
@@ -8948,7 +8948,7 @@ class ri {
|
|
|
8948
8948
|
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (i = e[0] || i, n = e[1] || Kt.get()) : n = e[0] || Kt.get(), await n.subtle.digest(i, this.toArrayBuffer());
|
|
8949
8949
|
}
|
|
8950
8950
|
}
|
|
8951
|
-
const
|
|
8951
|
+
const n0 = "Cannot initialize GeneralName from ASN.1 data.", Jh = `${n0} Unsupported string format in use.`, nv = `${n0} Value doesn't match to GUID regular expression.`, Xh = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, Qh = "1.3.6.1.4.1.311.25.1", ed = "1.3.6.1.4.1.311.20.2.3", Vc = "dns", Lc = "dn", Hc = "email", Fc = "ip", Gc = "url", zc = "guid", Kc = "upn", Oo = "id";
|
|
8952
8952
|
class Xn extends fi {
|
|
8953
8953
|
constructor(...e) {
|
|
8954
8954
|
let t;
|
|
@@ -8988,7 +8988,7 @@ class Xn extends fi {
|
|
|
8988
8988
|
t = new $e({
|
|
8989
8989
|
otherName: new Ds({
|
|
8990
8990
|
typeId: ed,
|
|
8991
|
-
value: J.serialize(
|
|
8991
|
+
value: J.serialize(xp.toASN(e[1]))
|
|
8992
8992
|
})
|
|
8993
8993
|
});
|
|
8994
8994
|
break;
|
|
@@ -9329,7 +9329,7 @@ class Zs extends jr {
|
|
|
9329
9329
|
}
|
|
9330
9330
|
}
|
|
9331
9331
|
Zs.NAME = "Authority Key Identifier";
|
|
9332
|
-
class
|
|
9332
|
+
class i0 extends jr {
|
|
9333
9333
|
constructor(...e) {
|
|
9334
9334
|
if (Q.isBufferSource(e[0])) {
|
|
9335
9335
|
super(e[0]);
|
|
@@ -9340,7 +9340,7 @@ class s0 extends jr {
|
|
|
9340
9340
|
cA: e[0],
|
|
9341
9341
|
pathLenConstraint: e[1]
|
|
9342
9342
|
});
|
|
9343
|
-
super(
|
|
9343
|
+
super(Sp, e[2], J.serialize(t)), this.ca = e[0], this.pathLength = e[1];
|
|
9344
9344
|
}
|
|
9345
9345
|
}
|
|
9346
9346
|
toTextObject() {
|
|
@@ -9348,12 +9348,12 @@ class s0 extends jr {
|
|
|
9348
9348
|
return this.ca && (e.CA = this.ca), this.pathLength !== void 0 && (e["Path Length"] = this.pathLength), e;
|
|
9349
9349
|
}
|
|
9350
9350
|
}
|
|
9351
|
-
|
|
9351
|
+
i0.NAME = "Basic Constraints";
|
|
9352
9352
|
var rd;
|
|
9353
9353
|
(function(r) {
|
|
9354
9354
|
r.serverAuth = "1.3.6.1.5.5.7.3.1", r.clientAuth = "1.3.6.1.5.5.7.3.2", r.codeSigning = "1.3.6.1.5.5.7.3.3", r.emailProtection = "1.3.6.1.5.5.7.3.4", r.timeStamping = "1.3.6.1.5.5.7.3.8", r.ocspSigning = "1.3.6.1.5.5.7.3.9";
|
|
9355
9355
|
})(rd || (rd = {}));
|
|
9356
|
-
class
|
|
9356
|
+
class s0 extends jr {
|
|
9357
9357
|
constructor(...e) {
|
|
9358
9358
|
if (Q.isBufferSource(e[0])) {
|
|
9359
9359
|
super(e[0]);
|
|
@@ -9361,7 +9361,7 @@ class o0 extends jr {
|
|
|
9361
9361
|
this.usages = t.map((n) => n);
|
|
9362
9362
|
} else {
|
|
9363
9363
|
const t = new Yo(e[0]);
|
|
9364
|
-
super(
|
|
9364
|
+
super(Ip, e[1], J.serialize(t)), this.usages = e[0];
|
|
9365
9365
|
}
|
|
9366
9366
|
}
|
|
9367
9367
|
toTextObject() {
|
|
@@ -9369,12 +9369,12 @@ class o0 extends jr {
|
|
|
9369
9369
|
return e[""] = this.usages.map((t) => Pn.toString(t)).join(", "), e;
|
|
9370
9370
|
}
|
|
9371
9371
|
}
|
|
9372
|
-
|
|
9372
|
+
s0.NAME = "Extended Key Usages";
|
|
9373
9373
|
var nd;
|
|
9374
9374
|
(function(r) {
|
|
9375
9375
|
r[r.digitalSignature = 1] = "digitalSignature", r[r.nonRepudiation = 2] = "nonRepudiation", r[r.keyEncipherment = 4] = "keyEncipherment", r[r.dataEncipherment = 8] = "dataEncipherment", r[r.keyAgreement = 16] = "keyAgreement", r[r.keyCertSign = 32] = "keyCertSign", r[r.cRLSign = 64] = "cRLSign", r[r.encipherOnly = 128] = "encipherOnly", r[r.decipherOnly = 256] = "decipherOnly";
|
|
9376
9376
|
})(nd || (nd = {}));
|
|
9377
|
-
class
|
|
9377
|
+
class o0 extends jr {
|
|
9378
9378
|
constructor(...e) {
|
|
9379
9379
|
if (Q.isBufferSource(e[0])) {
|
|
9380
9380
|
super(e[0]);
|
|
@@ -9382,7 +9382,7 @@ class a0 extends jr {
|
|
|
9382
9382
|
this.usages = t.toNumber();
|
|
9383
9383
|
} else {
|
|
9384
9384
|
const t = new Mc(e[0]);
|
|
9385
|
-
super(
|
|
9385
|
+
super(Cp, e[1], J.serialize(t)), this.usages = e[0];
|
|
9386
9386
|
}
|
|
9387
9387
|
}
|
|
9388
9388
|
toTextObject() {
|
|
@@ -9390,7 +9390,7 @@ class a0 extends jr {
|
|
|
9390
9390
|
return e[""] = t.toJSON().join(", "), e;
|
|
9391
9391
|
}
|
|
9392
9392
|
}
|
|
9393
|
-
|
|
9393
|
+
o0.NAME = "Key Usages";
|
|
9394
9394
|
class Cc extends jr {
|
|
9395
9395
|
static async create(e, t = !1, n = Kt.get()) {
|
|
9396
9396
|
const s = await (await un.create(e, n)).getKeyIdentifier(n);
|
|
@@ -9412,7 +9412,7 @@ class Cc extends jr {
|
|
|
9412
9412
|
}
|
|
9413
9413
|
}
|
|
9414
9414
|
Cc.NAME = "Subject Key Identifier";
|
|
9415
|
-
class
|
|
9415
|
+
class a0 extends jr {
|
|
9416
9416
|
constructor(...e) {
|
|
9417
9417
|
Q.isBufferSource(e[0]) ? super(e[0]) : super(Ju, e[1], new zs(e[0] || []).rawData);
|
|
9418
9418
|
}
|
|
@@ -9428,7 +9428,7 @@ class c0 extends jr {
|
|
|
9428
9428
|
return e;
|
|
9429
9429
|
}
|
|
9430
9430
|
}
|
|
9431
|
-
|
|
9431
|
+
a0.NAME = "Subject Alternative Name";
|
|
9432
9432
|
class Pr {
|
|
9433
9433
|
static register(e, t) {
|
|
9434
9434
|
this.items.set(e, t);
|
|
@@ -9439,7 +9439,7 @@ class Pr {
|
|
|
9439
9439
|
}
|
|
9440
9440
|
}
|
|
9441
9441
|
Pr.items = /* @__PURE__ */ new Map();
|
|
9442
|
-
class
|
|
9442
|
+
class c0 extends jr {
|
|
9443
9443
|
constructor(...e) {
|
|
9444
9444
|
var t;
|
|
9445
9445
|
if (Q.isBufferSource(e[0])) {
|
|
@@ -9450,7 +9450,7 @@ class l0 extends jr {
|
|
|
9450
9450
|
const n = e[0], i = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new qo(n.map((o) => new ic({
|
|
9451
9451
|
policyIdentifier: o
|
|
9452
9452
|
})));
|
|
9453
|
-
super(
|
|
9453
|
+
super(Ep, i, J.serialize(s)), this.policies = n;
|
|
9454
9454
|
}
|
|
9455
9455
|
}
|
|
9456
9456
|
toTextObject() {
|
|
@@ -9458,9 +9458,9 @@ class l0 extends jr {
|
|
|
9458
9458
|
return e.Policy = this.policies.map((t) => new et("", {}, Pn.toString(t))), e;
|
|
9459
9459
|
}
|
|
9460
9460
|
}
|
|
9461
|
-
|
|
9462
|
-
Pr.register(
|
|
9463
|
-
class
|
|
9461
|
+
c0.NAME = "Certificate Policies";
|
|
9462
|
+
Pr.register(Ep, c0);
|
|
9463
|
+
class l0 extends jr {
|
|
9464
9464
|
constructor(...e) {
|
|
9465
9465
|
var t;
|
|
9466
9466
|
if (Q.isBufferSource(e[0]))
|
|
@@ -9492,8 +9492,8 @@ class u0 extends jr {
|
|
|
9492
9492
|
}), e;
|
|
9493
9493
|
}
|
|
9494
9494
|
}
|
|
9495
|
-
|
|
9496
|
-
class
|
|
9495
|
+
l0.NAME = "CRL Distribution Points";
|
|
9496
|
+
class u0 extends jr {
|
|
9497
9497
|
constructor(...e) {
|
|
9498
9498
|
var t, n, i, s;
|
|
9499
9499
|
if (Q.isBufferSource(e[0]))
|
|
@@ -9530,7 +9530,7 @@ class f0 extends jr {
|
|
|
9530
9530
|
return this.ocsp.length && To(e, "OCSP", this.ocsp), this.caIssuers.length && To(e, "CA Issuers", this.caIssuers), this.timeStamping.length && To(e, "Time Stamping", this.timeStamping), this.caRepository.length && To(e, "CA Repository", this.caRepository), e;
|
|
9531
9531
|
}
|
|
9532
9532
|
}
|
|
9533
|
-
|
|
9533
|
+
u0.NAME = "Authority Info Access";
|
|
9534
9534
|
function To(r, e, t) {
|
|
9535
9535
|
if (t.length === 1)
|
|
9536
9536
|
r[e] = t[0].toTextObject();
|
|
@@ -9576,7 +9576,7 @@ class xs extends fi {
|
|
|
9576
9576
|
}
|
|
9577
9577
|
}
|
|
9578
9578
|
xs.NAME = "Attribute";
|
|
9579
|
-
class
|
|
9579
|
+
class f0 extends xs {
|
|
9580
9580
|
constructor(...e) {
|
|
9581
9581
|
var t;
|
|
9582
9582
|
if (Q.isBufferSource(e[0]))
|
|
@@ -9585,7 +9585,7 @@ class h0 extends xs {
|
|
|
9585
9585
|
const n = new wa({
|
|
9586
9586
|
printableString: e[0]
|
|
9587
9587
|
});
|
|
9588
|
-
super(
|
|
9588
|
+
super(Xp, [J.serialize(n)]);
|
|
9589
9589
|
}
|
|
9590
9590
|
(t = this.password) !== null && t !== void 0 || (this.password = "");
|
|
9591
9591
|
}
|
|
@@ -9600,7 +9600,7 @@ class h0 extends xs {
|
|
|
9600
9600
|
return e[et.VALUE] = this.password, e;
|
|
9601
9601
|
}
|
|
9602
9602
|
}
|
|
9603
|
-
|
|
9603
|
+
f0.NAME = "Challenge Password";
|
|
9604
9604
|
class mf extends xs {
|
|
9605
9605
|
constructor(...e) {
|
|
9606
9606
|
var t;
|
|
@@ -10129,15 +10129,15 @@ var od;
|
|
|
10129
10129
|
(function(r) {
|
|
10130
10130
|
r[r.unspecified = 0] = "unspecified", r[r.keyCompromise = 1] = "keyCompromise", r[r.cACompromise = 2] = "cACompromise", r[r.affiliationChanged = 3] = "affiliationChanged", r[r.superseded = 4] = "superseded", r[r.cessationOfOperation = 5] = "cessationOfOperation", r[r.certificateHold = 6] = "certificateHold", r[r.removeFromCRL = 8] = "removeFromCRL", r[r.privilegeWithdrawn = 9] = "privilegeWithdrawn", r[r.aACompromise = 10] = "aACompromise";
|
|
10131
10131
|
})(od || (od = {}));
|
|
10132
|
-
Pr.register(
|
|
10132
|
+
Pr.register(Sp, i0);
|
|
10133
|
+
Pr.register(Ip, s0);
|
|
10133
10134
|
Pr.register(Cp, o0);
|
|
10134
|
-
Pr.register(Bp, a0);
|
|
10135
10135
|
Pr.register(Xu, Cc);
|
|
10136
10136
|
Pr.register(zo, Zs);
|
|
10137
|
-
Pr.register(Ju,
|
|
10138
|
-
Pr.register(gl,
|
|
10139
|
-
Pr.register(fl,
|
|
10140
|
-
Bc.register(
|
|
10137
|
+
Pr.register(Ju, a0);
|
|
10138
|
+
Pr.register(gl, l0);
|
|
10139
|
+
Pr.register(fl, u0);
|
|
10140
|
+
Bc.register(Xp, f0);
|
|
10141
10141
|
Bc.register(vf, mf);
|
|
10142
10142
|
cr.registerSingleton(Oc, hv);
|
|
10143
10143
|
cr.registerSingleton(Oc, Tr);
|
|
@@ -10203,7 +10203,7 @@ function Cs(r, e) {
|
|
|
10203
10203
|
const t = Object(r);
|
|
10204
10204
|
return qs(t, e), t;
|
|
10205
10205
|
}
|
|
10206
|
-
function
|
|
10206
|
+
function h0(r) {
|
|
10207
10207
|
let e = Math.ceil(r.length / 2);
|
|
10208
10208
|
const t = new Uint8Array(e);
|
|
10209
10209
|
e--;
|
|
@@ -10241,7 +10241,7 @@ function ad(r) {
|
|
|
10241
10241
|
}
|
|
10242
10242
|
return e;
|
|
10243
10243
|
}
|
|
10244
|
-
function
|
|
10244
|
+
function d0(r, e) {
|
|
10245
10245
|
const [t, n, i] = r, [s, o, c] = e, u = Math.min(i.length, c.length);
|
|
10246
10246
|
for (let d = 0; d < u; d++) {
|
|
10247
10247
|
const b = i[d] - c[d];
|
|
@@ -10325,7 +10325,7 @@ Wn = new WeakMap(), Gt = new WeakMap(), dr = new WeakMap(), $t = new WeakMap(),
|
|
|
10325
10325
|
Ct(this, $t, M(this, $t) + e), Ct(this, Yn, M(this, Yn) + e);
|
|
10326
10326
|
}, Ke(Ua, "defaultOptions", { chunkSize: 4096 });
|
|
10327
10327
|
let _a = Ua;
|
|
10328
|
-
function
|
|
10328
|
+
function p0(r, e = 0, t = !1) {
|
|
10329
10329
|
const n = r[e] & 128 ? -1 : 1, i = (r[e] & 124) >> 2, s = (r[e] & 3) << 8 | r[e + 1];
|
|
10330
10330
|
if (i === 0) {
|
|
10331
10331
|
if (t && s !== 0) throw new Error(`Unwanted subnormal: ${n * 5960464477539063e-23 * s}`);
|
|
@@ -10360,7 +10360,7 @@ function Av(r) {
|
|
|
10360
10360
|
function _v(r) {
|
|
10361
10361
|
switch (r.length) {
|
|
10362
10362
|
case 2:
|
|
10363
|
-
|
|
10363
|
+
p0(r, 0, !0);
|
|
10364
10364
|
break;
|
|
10365
10365
|
case 4: {
|
|
10366
10366
|
const e = new DataView(r.buffer, r.byteOffset, r.byteLength), t = e.getUint32(0, !1);
|
|
@@ -10376,8 +10376,8 @@ function _v(r) {
|
|
|
10376
10376
|
throw new TypeError(`Bad input to isSubnormal: ${r}`);
|
|
10377
10377
|
}
|
|
10378
10378
|
}
|
|
10379
|
-
const cd = _e.SIMPLE_FLOAT << 5 | mt.TWO, Sv = _e.SIMPLE_FLOAT << 5 | mt.FOUR, Ev = _e.SIMPLE_FLOAT << 5 | mt.EIGHT, kv = _e.SIMPLE_FLOAT << 5 | Qn.TRUE, Iv = _e.SIMPLE_FLOAT << 5 | Qn.FALSE, Cv = _e.SIMPLE_FLOAT << 5 | Qn.UNDEFINED, Bv = _e.SIMPLE_FLOAT << 5 | Qn.NULL, Ov = new TextEncoder(), Tv = { ..._a.defaultOptions, avoidInts: !1, cde: !1, collapseBigInts: !0, dcbor: !1, float64: !1, flushToZero: !1, forceEndian: null, ignoreOriginalEncoding: !1, largeNegativeAsBigInt: !1, reduceUnsafeNumbers: !1, rejectBigInts: !1, rejectCustomSimples: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectUndefined: !1, simplifyNegativeZero: !1, sortKeys: null, stringNormalization: null },
|
|
10380
|
-
function
|
|
10379
|
+
const cd = _e.SIMPLE_FLOAT << 5 | mt.TWO, Sv = _e.SIMPLE_FLOAT << 5 | mt.FOUR, Ev = _e.SIMPLE_FLOAT << 5 | mt.EIGHT, kv = _e.SIMPLE_FLOAT << 5 | Qn.TRUE, Iv = _e.SIMPLE_FLOAT << 5 | Qn.FALSE, Cv = _e.SIMPLE_FLOAT << 5 | Qn.UNDEFINED, Bv = _e.SIMPLE_FLOAT << 5 | Qn.NULL, Ov = new TextEncoder(), Tv = { ..._a.defaultOptions, avoidInts: !1, cde: !1, collapseBigInts: !0, dcbor: !1, float64: !1, flushToZero: !1, forceEndian: null, ignoreOriginalEncoding: !1, largeNegativeAsBigInt: !1, reduceUnsafeNumbers: !1, rejectBigInts: !1, rejectCustomSimples: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectUndefined: !1, simplifyNegativeZero: !1, sortKeys: null, stringNormalization: null }, y0 = { cde: !0, ignoreOriginalEncoding: !0, sortKeys: d0 }, Nv = { ...y0, dcbor: !0, largeNegativeAsBigInt: !0, reduceUnsafeNumbers: !0, rejectCustomSimples: !0, rejectDuplicateKeys: !0, rejectUndefined: !0, simplifyNegativeZero: !0, stringNormalization: "NFC" };
|
|
10380
|
+
function g0(r) {
|
|
10381
10381
|
const e = r < 0;
|
|
10382
10382
|
return typeof r == "bigint" ? [e ? -r - 1n : r, e] : [e ? -r - 1 : r, e];
|
|
10383
10383
|
}
|
|
@@ -10390,15 +10390,15 @@ function Wc(r, e, t) {
|
|
|
10390
10390
|
} else e.writeUint8(Ev), e.writeFloat64(r);
|
|
10391
10391
|
}
|
|
10392
10392
|
function Zr(r, e, t) {
|
|
10393
|
-
const [n, i] =
|
|
10393
|
+
const [n, i] = g0(r);
|
|
10394
10394
|
if (i && t) throw new TypeError(`Negative size: ${r}`);
|
|
10395
10395
|
t ?? (t = i ? _e.NEG_INT : _e.POS_INT), t <<= 5, n < 24 ? e.writeUint8(t | n) : n <= 255 ? (e.writeUint8(t | mt.ONE), e.writeUint8(n)) : n <= 65535 ? (e.writeUint8(t | mt.TWO), e.writeUint16(n)) : n <= 4294967295 ? (e.writeUint8(t | mt.FOUR), e.writeUint32(n)) : (e.writeUint8(t | mt.EIGHT), e.writeBigUint64(BigInt(n)));
|
|
10396
10396
|
}
|
|
10397
10397
|
function Sa(r, e, t) {
|
|
10398
10398
|
typeof r == "number" ? Zr(r, e, _e.TAG) : typeof r == "object" && !t.ignoreOriginalEncoding && Sr.ENCODED in r ? e.write(r[Sr.ENCODED]) : r <= Number.MAX_SAFE_INTEGER ? Zr(Number(r), e, _e.TAG) : (e.writeUint8(_e.TAG << 5 | mt.EIGHT), e.writeBigUint64(BigInt(r)));
|
|
10399
10399
|
}
|
|
10400
|
-
function
|
|
10401
|
-
const [n, i] =
|
|
10400
|
+
function v0(r, e, t) {
|
|
10401
|
+
const [n, i] = g0(r);
|
|
10402
10402
|
if (t.collapseBigInts && (!t.largeNegativeAsBigInt || r >= -0x8000000000000000n)) {
|
|
10403
10403
|
if (n <= 0xffffffffn) {
|
|
10404
10404
|
Zr(Number(r), e);
|
|
@@ -10413,11 +10413,11 @@ function m0(r, e, t) {
|
|
|
10413
10413
|
if (t.rejectBigInts) throw new Error(`Attempt to encode unwanted bigint: ${r}`);
|
|
10414
10414
|
const s = i ? It.NEG_BIGINT : It.POS_BIGINT, o = n.toString(16), c = o.length % 2 ? "0" : "";
|
|
10415
10415
|
Sa(s, e, t);
|
|
10416
|
-
const u =
|
|
10416
|
+
const u = h0(c + o);
|
|
10417
10417
|
Zr(u.length, e, _e.BYTE_STRING), e.write(u);
|
|
10418
10418
|
}
|
|
10419
10419
|
function Rv(r, e, t) {
|
|
10420
|
-
t.flushToZero && (r = Av(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Wc(0, e, t) : Zr(0, e) : Wc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? Zr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= xa.MIN && r <= xa.MAX ?
|
|
10420
|
+
t.flushToZero && (r = Av(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Wc(0, e, t) : Zr(0, e) : Wc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? Zr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= xa.MIN && r <= xa.MAX ? v0(BigInt(r), e, t) : Wc(r, e, t);
|
|
10421
10421
|
}
|
|
10422
10422
|
function jv(r, e, t) {
|
|
10423
10423
|
const n = t.stringNormalization ? r.normalize(t.stringNormalization) : r, i = Ov.encode(n);
|
|
@@ -10475,7 +10475,7 @@ function _i(r, e, t) {
|
|
|
10475
10475
|
Rv(r, e, t);
|
|
10476
10476
|
break;
|
|
10477
10477
|
case "bigint":
|
|
10478
|
-
|
|
10478
|
+
v0(r, e, t);
|
|
10479
10479
|
break;
|
|
10480
10480
|
case "string":
|
|
10481
10481
|
jv(r, e, t);
|
|
@@ -10498,11 +10498,11 @@ function _i(r, e, t) {
|
|
|
10498
10498
|
}
|
|
10499
10499
|
function Tc(r, e = {}) {
|
|
10500
10500
|
const t = { ...Tv };
|
|
10501
|
-
e.dcbor ? Object.assign(t, Nv) : e.cde && Object.assign(t,
|
|
10501
|
+
e.dcbor ? Object.assign(t, Nv) : e.cde && Object.assign(t, y0), Object.assign(t, e);
|
|
10502
10502
|
const n = new _a(t);
|
|
10503
10503
|
return _i(r, n, t), n.read();
|
|
10504
10504
|
}
|
|
10505
|
-
var
|
|
10505
|
+
var m0 = ((r) => (r[r.NEVER = -1] = "NEVER", r[r.PREFERRED = 0] = "PREFERRED", r[r.ALWAYS = 1] = "ALWAYS", r))(m0 || {});
|
|
10506
10506
|
const zn = class zn {
|
|
10507
10507
|
constructor(e) {
|
|
10508
10508
|
Ke(this, "value");
|
|
@@ -10538,7 +10538,7 @@ const Da = class Da {
|
|
|
10538
10538
|
er(this, Cr);
|
|
10539
10539
|
if (Ct(this, Cr, { ...Da.defaultOptions, ...t }), typeof e == "string") switch (M(this, Cr).encoding) {
|
|
10540
10540
|
case "hex":
|
|
10541
|
-
Ct(this, xr,
|
|
10541
|
+
Ct(this, xr, h0(e));
|
|
10542
10542
|
break;
|
|
10543
10543
|
case "base64":
|
|
10544
10544
|
Ct(this, xr, wf(e));
|
|
@@ -10568,7 +10568,7 @@ xr = new WeakMap(), Vr = new WeakMap(), zt = new WeakMap(), Cr = new WeakMap(),
|
|
|
10568
10568
|
} else if (M(this, Cr).requirePreferred && o < 24) throw new Error(`Unexpectedly long integer encoding (1) for ${o}`);
|
|
10569
10569
|
break;
|
|
10570
10570
|
case mt.TWO:
|
|
10571
|
-
if (u = 2, i === _e.SIMPLE_FLOAT) o =
|
|
10571
|
+
if (u = 2, i === _e.SIMPLE_FLOAT) o = p0(M(this, xr), M(this, zt));
|
|
10572
10572
|
else if (o = M(this, Vr).getUint16(M(this, zt), !1), M(this, Cr).requirePreferred && o <= 255) throw new Error(`Unexpectedly long integer encoding (2) for ${o}`);
|
|
10573
10573
|
break;
|
|
10574
10574
|
case mt.FOUR:
|
|
@@ -10657,7 +10657,7 @@ xr = new WeakMap(), Vr = new WeakMap(), zt = new WeakMap(), Cr = new WeakMap(),
|
|
|
10657
10657
|
}, Ke(Da, "defaultOptions", { maxDepth: 1024, encoding: "hex", requirePreferred: !1 });
|
|
10658
10658
|
let Ys = Da;
|
|
10659
10659
|
const Mv = /* @__PURE__ */ new Map([[mt.ZERO, 1], [mt.ONE, 2], [mt.TWO, 3], [mt.FOUR, 5], [mt.EIGHT, 9]]), Vv = new Uint8Array(0);
|
|
10660
|
-
var an, or, on, $a,
|
|
10660
|
+
var an, or, on, $a, w0;
|
|
10661
10661
|
let Kn = (an = class {
|
|
10662
10662
|
constructor(e, t, n, i) {
|
|
10663
10663
|
er(this, $a);
|
|
@@ -10749,7 +10749,7 @@ let Kn = (an = class {
|
|
|
10749
10749
|
t = this.children;
|
|
10750
10750
|
break;
|
|
10751
10751
|
case _e.MAP: {
|
|
10752
|
-
const n = De(this, $a,
|
|
10752
|
+
const n = De(this, $a, w0).call(this);
|
|
10753
10753
|
if (M(this, or).sortKeys) {
|
|
10754
10754
|
let i;
|
|
10755
10755
|
for (const s of n) {
|
|
@@ -10782,23 +10782,23 @@ let Kn = (an = class {
|
|
|
10782
10782
|
}
|
|
10783
10783
|
return M(this, or).saveOriginal && t && typeof t == "object" && qs(t, e.toHere(this.offset)), t;
|
|
10784
10784
|
}
|
|
10785
|
-
}, or = new WeakMap(), on = new WeakMap(), $a = new WeakSet(),
|
|
10785
|
+
}, or = new WeakMap(), on = new WeakMap(), $a = new WeakSet(), w0 = function() {
|
|
10786
10786
|
const e = this.children, t = e.length;
|
|
10787
10787
|
if (t % 2) throw new Error("Missing map value");
|
|
10788
10788
|
const n = new Array(t / 2);
|
|
10789
10789
|
if (M(this, on)) for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], M(this, on)[i]];
|
|
10790
10790
|
else for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], Vv];
|
|
10791
10791
|
return n;
|
|
10792
|
-
}, Ke(an, "defaultDecodeOptions", { ...Ys.defaultOptions, ParentType: an, boxed: !1, cde: !1, dcbor: !1, diagnosticSizes:
|
|
10793
|
-
var
|
|
10794
|
-
class _u extends (
|
|
10792
|
+
}, Ke(an, "defaultDecodeOptions", { ...Ys.defaultOptions, ParentType: an, boxed: !1, cde: !1, dcbor: !1, diagnosticSizes: m0.PREFERRED, convertUnsafeIntsToFloat: !1, pretty: !1, preferMap: !1, rejectLargeNegatives: !1, rejectBigInts: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectInts: !1, rejectLongLoundNaN: !1, rejectLongFloats: !1, rejectNegativeZero: !1, rejectSimple: !1, rejectStreaming: !1, rejectStringsNotNormalizedAs: null, rejectSubnormals: !1, rejectUndefined: !1, rejectUnsafeFloatInts: !1, saveOriginal: !1, sortKeys: null }), Ke(an, "cdeDecodeOptions", { cde: !0, rejectStreaming: !0, requirePreferred: !0, sortKeys: d0 }), Ke(an, "dcborDecodeOptions", { ...an.cdeDecodeOptions, dcbor: !0, convertUnsafeIntsToFloat: !0, rejectDuplicateKeys: !0, rejectLargeNegatives: !0, rejectLongLoundNaN: !0, rejectLongFloats: !0, rejectNegativeZero: !0, rejectSimple: !0, rejectUndefined: !0, rejectUnsafeFloatInts: !0, rejectStringsNotNormalizedAs: "NFC" }), an);
|
|
10793
|
+
var gd, vd;
|
|
10794
|
+
class _u extends (vd = Kn, gd = Sr.ENCODED, vd) {
|
|
10795
10795
|
constructor(t, n, i, s) {
|
|
10796
10796
|
super(t, n, i, s);
|
|
10797
10797
|
Ke(this, "depth", 0);
|
|
10798
10798
|
Ke(this, "leaf", !1);
|
|
10799
10799
|
Ke(this, "value");
|
|
10800
10800
|
Ke(this, "length");
|
|
10801
|
-
Ke(this,
|
|
10801
|
+
Ke(this, gd);
|
|
10802
10802
|
this.parent ? this.depth = this.parent.depth + 1 : this.depth = s.initialDepth, [, , this.value, , this.length] = t;
|
|
10803
10803
|
}
|
|
10804
10804
|
numBytes() {
|
|
@@ -10815,7 +10815,7 @@ class _u extends (md = Kn, vd = Sr.ENCODED, md) {
|
|
|
10815
10815
|
return 0;
|
|
10816
10816
|
}
|
|
10817
10817
|
}
|
|
10818
|
-
function
|
|
10818
|
+
function b0(r) {
|
|
10819
10819
|
return r instanceof _u;
|
|
10820
10820
|
}
|
|
10821
10821
|
function Ro(r, e) {
|
|
@@ -10824,7 +10824,7 @@ function Ro(r, e) {
|
|
|
10824
10824
|
function Yc(r) {
|
|
10825
10825
|
return "".padStart(r, " ");
|
|
10826
10826
|
}
|
|
10827
|
-
function
|
|
10827
|
+
function x0(r, e, t) {
|
|
10828
10828
|
let n = "";
|
|
10829
10829
|
n += Yc(r.depth * 2);
|
|
10830
10830
|
const i = Aa(r);
|
|
@@ -10876,9 +10876,9 @@ function A0(r, e, t) {
|
|
|
10876
10876
|
`;
|
|
10877
10877
|
let u = 0;
|
|
10878
10878
|
for (const d of r.children) {
|
|
10879
|
-
if (
|
|
10879
|
+
if (b0(d)) {
|
|
10880
10880
|
let b = String(u);
|
|
10881
|
-
r.mt === _e.MAP ? b = u % 2 ? `val ${(u - 1) / 2}` : `key ${u / 2}` : r.mt === _e.TAG && (b = ""), n +=
|
|
10881
|
+
r.mt === _e.MAP ? b = u % 2 ? `val ${(u - 1) / 2}` : `key ${u / 2}` : r.mt === _e.TAG && (b = ""), n += x0(d, e, b);
|
|
10882
10882
|
}
|
|
10883
10883
|
u++;
|
|
10884
10884
|
}
|
|
@@ -10892,7 +10892,7 @@ function Hv(r, e) {
|
|
|
10892
10892
|
for (const c of n) {
|
|
10893
10893
|
if (s = Kn.create(c, i, t, n), c[2] === Sr.BREAK) if (i != null && i.isStreaming) i.left = 1;
|
|
10894
10894
|
else throw new Error("Unexpected BREAK");
|
|
10895
|
-
if (!
|
|
10895
|
+
if (!b0(s)) {
|
|
10896
10896
|
const b = new _u(c, 0, i, t);
|
|
10897
10897
|
b.leaf = !0, b.children.push(s), qs(b, n.toHere(c[3])), s = b;
|
|
10898
10898
|
}
|
|
@@ -10903,10 +10903,10 @@ function Hv(r, e) {
|
|
|
10903
10903
|
e && (e.minCol = t.minCol);
|
|
10904
10904
|
let o = t.noPrefixHex ? "" : `0x${Fr(n.toHere(0))}
|
|
10905
10905
|
`;
|
|
10906
|
-
return o +=
|
|
10906
|
+
return o += x0(s, t), o;
|
|
10907
10907
|
}
|
|
10908
10908
|
const ld = !bv();
|
|
10909
|
-
function
|
|
10909
|
+
function A0(r) {
|
|
10910
10910
|
if (typeof r == "object" && r) {
|
|
10911
10911
|
if (r.constructor !== Number) throw new Error(`Expected number: ${r}`);
|
|
10912
10912
|
} else if (typeof r != "number") throw new Error(`Expected number: ${r}`);
|
|
@@ -10919,7 +10919,7 @@ function Zn(r) {
|
|
|
10919
10919
|
function Mi(r) {
|
|
10920
10920
|
if (!(r instanceof Uint8Array)) throw new Error(`Expected Uint8Array: ${r}`);
|
|
10921
10921
|
}
|
|
10922
|
-
function
|
|
10922
|
+
function _0(r) {
|
|
10923
10923
|
if (!Array.isArray(r)) throw new Error(`Expected Array: ${r}`);
|
|
10924
10924
|
}
|
|
10925
10925
|
Pt(Map, (r, e, t) => {
|
|
@@ -10940,9 +10940,9 @@ function ud(r) {
|
|
|
10940
10940
|
}
|
|
10941
10941
|
ud.comment = (r) => (Zn(r.contents), `(String Date) ${new Date(r.contents).toISOString()}`), We.registerDecoder(It.DATE_STRING, ud);
|
|
10942
10942
|
function fd(r) {
|
|
10943
|
-
return
|
|
10943
|
+
return A0(r.contents), new Date(r.contents * 1e3);
|
|
10944
10944
|
}
|
|
10945
|
-
fd.comment = (r) => (
|
|
10945
|
+
fd.comment = (r) => (A0(r.contents), `(Epoch Date) ${new Date(r.contents * 1e3).toISOString()}`), We.registerDecoder(It.DATE_EPOCH, fd), Pt(Date, (r) => [It.DATE_EPOCH, r.valueOf() / 1e3]);
|
|
10946
10946
|
function Ea(r, e, t) {
|
|
10947
10947
|
if (Mi(e.contents), t.rejectBigInts) throw new Error(`Decoding unwanted big integer: ${e}(h'${Fr(e.contents)}')`);
|
|
10948
10948
|
if (t.requirePreferred && e.contents[0] === 0) throw new Error(`Decoding overly-large bigint: ${e.tag}(h'${Fr(e.contents)})`);
|
|
@@ -10973,7 +10973,7 @@ Jc.comment = (r, e, t) => {
|
|
|
10973
10973
|
\r]`);
|
|
10974
10974
|
return e = `^(?:${e})$`, new RegExp(e, "u");
|
|
10975
10975
|
}, "I-RegExp"), We.registerDecoder(It.REGEXP, (r) => {
|
|
10976
|
-
if (
|
|
10976
|
+
if (_0(r.contents), r.contents.length < 1 || r.contents.length > 2) throw new Error(`Invalid RegExp Array: ${r.contents}`);
|
|
10977
10977
|
return new RegExp(r.contents[0], r.contents[1]);
|
|
10978
10978
|
}, "RegExp"), Pt(RegExp, (r) => [It.REGEXP, [r.source, r.flags]]), We.registerDecoder(64, (r) => (Mi(r.contents), r.contents), "uint8 Typed Array");
|
|
10979
10979
|
function tr(r, e, t) {
|
|
@@ -10993,7 +10993,7 @@ function Gn(r, e, t, n, i) {
|
|
|
10993
10993
|
for (const u of n) c(u, s);
|
|
10994
10994
|
}
|
|
10995
10995
|
}
|
|
10996
|
-
We.registerDecoder(65, (r) => tr(r, Uint16Array, !1), "uint16, big endian, Typed Array"), We.registerDecoder(66, (r) => tr(r, Uint32Array, !1), "uint32, big endian, Typed Array"), We.registerDecoder(67, (r) => tr(r, BigUint64Array, !1), "uint64, big endian, Typed Array"), We.registerDecoder(68, (r) => (Mi(r.contents), new Uint8ClampedArray(r.contents)), "uint8 Typed Array, clamped arithmetic"), Pt(Uint8ClampedArray, (r) => [68, new Uint8Array(r.buffer, r.byteOffset, r.byteLength)]), We.registerDecoder(69, (r) => tr(r, Uint16Array, !0), "uint16, little endian, Typed Array"), Pt(Uint16Array, (r, e, t) => Gn(e, 69, 65, r, t)), We.registerDecoder(70, (r) => tr(r, Uint32Array, !0), "uint32, little endian, Typed Array"), Pt(Uint32Array, (r, e, t) => Gn(e, 70, 66, r, t)), We.registerDecoder(71, (r) => tr(r, BigUint64Array, !0), "uint64, little endian, Typed Array"), Pt(BigUint64Array, (r, e, t) => Gn(e, 71, 67, r, t)), We.registerDecoder(72, (r) => (Mi(r.contents), new Int8Array(r.contents)), "sint8 Typed Array"), Pt(Int8Array, (r) => [72, new Uint8Array(r.buffer, r.byteOffset, r.byteLength)]), We.registerDecoder(73, (r) => tr(r, Int16Array, !1), "sint16, big endian, Typed Array"), We.registerDecoder(74, (r) => tr(r, Int32Array, !1), "sint32, big endian, Typed Array"), We.registerDecoder(75, (r) => tr(r, BigInt64Array, !1), "sint64, big endian, Typed Array"), We.registerDecoder(77, (r) => tr(r, Int16Array, !0), "sint16, little endian, Typed Array"), Pt(Int16Array, (r, e, t) => Gn(e, 77, 73, r, t)), We.registerDecoder(78, (r) => tr(r, Int32Array, !0), "sint32, little endian, Typed Array"), Pt(Int32Array, (r, e, t) => Gn(e, 78, 74, r, t)), We.registerDecoder(79, (r) => tr(r, BigInt64Array, !0), "sint64, little endian, Typed Array"), Pt(BigInt64Array, (r, e, t) => Gn(e, 79, 75, r, t)), We.registerDecoder(81, (r) => tr(r, Float32Array, !1), "IEEE 754 binary32, big endian, Typed Array"), We.registerDecoder(82, (r) => tr(r, Float64Array, !1), "IEEE 754 binary64, big endian, Typed Array"), We.registerDecoder(85, (r) => tr(r, Float32Array, !0), "IEEE 754 binary32, little endian, Typed Array"), Pt(Float32Array, (r, e, t) => Gn(e, 85, 81, r, t)), We.registerDecoder(86, (r) => tr(r, Float64Array, !0), "IEEE 754 binary64, big endian, Typed Array"), Pt(Float64Array, (r, e, t) => Gn(e, 86, 82, r, t)), We.registerDecoder(It.SET, (r) => (
|
|
10996
|
+
We.registerDecoder(65, (r) => tr(r, Uint16Array, !1), "uint16, big endian, Typed Array"), We.registerDecoder(66, (r) => tr(r, Uint32Array, !1), "uint32, big endian, Typed Array"), We.registerDecoder(67, (r) => tr(r, BigUint64Array, !1), "uint64, big endian, Typed Array"), We.registerDecoder(68, (r) => (Mi(r.contents), new Uint8ClampedArray(r.contents)), "uint8 Typed Array, clamped arithmetic"), Pt(Uint8ClampedArray, (r) => [68, new Uint8Array(r.buffer, r.byteOffset, r.byteLength)]), We.registerDecoder(69, (r) => tr(r, Uint16Array, !0), "uint16, little endian, Typed Array"), Pt(Uint16Array, (r, e, t) => Gn(e, 69, 65, r, t)), We.registerDecoder(70, (r) => tr(r, Uint32Array, !0), "uint32, little endian, Typed Array"), Pt(Uint32Array, (r, e, t) => Gn(e, 70, 66, r, t)), We.registerDecoder(71, (r) => tr(r, BigUint64Array, !0), "uint64, little endian, Typed Array"), Pt(BigUint64Array, (r, e, t) => Gn(e, 71, 67, r, t)), We.registerDecoder(72, (r) => (Mi(r.contents), new Int8Array(r.contents)), "sint8 Typed Array"), Pt(Int8Array, (r) => [72, new Uint8Array(r.buffer, r.byteOffset, r.byteLength)]), We.registerDecoder(73, (r) => tr(r, Int16Array, !1), "sint16, big endian, Typed Array"), We.registerDecoder(74, (r) => tr(r, Int32Array, !1), "sint32, big endian, Typed Array"), We.registerDecoder(75, (r) => tr(r, BigInt64Array, !1), "sint64, big endian, Typed Array"), We.registerDecoder(77, (r) => tr(r, Int16Array, !0), "sint16, little endian, Typed Array"), Pt(Int16Array, (r, e, t) => Gn(e, 77, 73, r, t)), We.registerDecoder(78, (r) => tr(r, Int32Array, !0), "sint32, little endian, Typed Array"), Pt(Int32Array, (r, e, t) => Gn(e, 78, 74, r, t)), We.registerDecoder(79, (r) => tr(r, BigInt64Array, !0), "sint64, little endian, Typed Array"), Pt(BigInt64Array, (r, e, t) => Gn(e, 79, 75, r, t)), We.registerDecoder(81, (r) => tr(r, Float32Array, !1), "IEEE 754 binary32, big endian, Typed Array"), We.registerDecoder(82, (r) => tr(r, Float64Array, !1), "IEEE 754 binary64, big endian, Typed Array"), We.registerDecoder(85, (r) => tr(r, Float32Array, !0), "IEEE 754 binary32, little endian, Typed Array"), Pt(Float32Array, (r, e, t) => Gn(e, 85, 81, r, t)), We.registerDecoder(86, (r) => tr(r, Float64Array, !0), "IEEE 754 binary64, big endian, Typed Array"), Pt(Float64Array, (r, e, t) => Gn(e, 86, 82, r, t)), We.registerDecoder(It.SET, (r) => (_0(r.contents), new Set(r.contents)), "Set"), Pt(Set, (r) => [It.SET, [...r]]), We.registerDecoder(It.JSON, (r) => (Zn(r.contents), JSON.parse(r.contents)), "JSON-encoded"), We.registerDecoder(It.SELF_DESCRIBED, (r) => r.contents, "Self-Described"), We.registerDecoder(It.INVALID_16, () => {
|
|
10997
10997
|
throw new Error(`Tag always invalid: ${It.INVALID_16}`);
|
|
10998
10998
|
}, "Invalid"), We.registerDecoder(It.INVALID_32, () => {
|
|
10999
10999
|
throw new Error(`Tag always invalid: ${It.INVALID_32}`);
|
|
@@ -11008,7 +11008,7 @@ function jo(r) {
|
|
|
11008
11008
|
return [NaN, r.valueOf()];
|
|
11009
11009
|
}
|
|
11010
11010
|
Pt(Boolean, jo), Pt(Number, jo), Pt(String, jo), Pt(BigInt, jo);
|
|
11011
|
-
function
|
|
11011
|
+
function S0(r, e = {}) {
|
|
11012
11012
|
const t = { ...Kn.defaultDecodeOptions };
|
|
11013
11013
|
if (e.dcbor ? Object.assign(t, Kn.dcborDecodeOptions) : e.cde && Object.assign(t, Kn.cdeDecodeOptions), Object.assign(t, e), Object.hasOwn(t, "rejectLongNumbers")) throw new TypeError("rejectLongNumbers has changed to requirePreferred");
|
|
11014
11014
|
t.boxed && (t.saveOriginal = !0);
|
|
@@ -11247,12 +11247,12 @@ const fs = (r, e) => {
|
|
|
11247
11247
|
}
|
|
11248
11248
|
return { message: t };
|
|
11249
11249
|
};
|
|
11250
|
-
let
|
|
11250
|
+
let E0 = fs;
|
|
11251
11251
|
function Gv(r) {
|
|
11252
|
-
|
|
11252
|
+
E0 = r;
|
|
11253
11253
|
}
|
|
11254
11254
|
function ka() {
|
|
11255
|
-
return
|
|
11255
|
+
return E0;
|
|
11256
11256
|
}
|
|
11257
11257
|
const Ia = (r) => {
|
|
11258
11258
|
const { data: e, path: t, errorMaps: n, issueData: i } = r, s = [...t, ...i.path || []], o = {
|
|
@@ -11338,7 +11338,7 @@ function Ca(r, e, t, n) {
|
|
|
11338
11338
|
if (typeof e == "function" ? r !== e || !n : !e.has(r)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11339
11339
|
return e.get(r);
|
|
11340
11340
|
}
|
|
11341
|
-
function
|
|
11341
|
+
function k0(r, e, t, n, i) {
|
|
11342
11342
|
if (typeof e == "function" ? r !== e || !i : !e.has(r)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
11343
11343
|
return e.set(r, t), t;
|
|
11344
11344
|
}
|
|
@@ -11567,16 +11567,16 @@ class Ze {
|
|
|
11567
11567
|
}
|
|
11568
11568
|
const Kv = /^c[^\s-]{8,}$/i, Zv = /^[0-9a-z]+$/, qv = /^[0-9A-HJKMNP-TV-Z]{26}$/, Wv = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Yv = /^[a-z0-9_-]{21}$/i, Jv = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Xv = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Qv = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
11569
11569
|
let Qc;
|
|
11570
|
-
const e1 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, t1 = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, r1 = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,
|
|
11571
|
-
function
|
|
11570
|
+
const e1 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, t1 = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, r1 = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, I0 = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", n1 = new RegExp(`^${I0}$`);
|
|
11571
|
+
function C0(r) {
|
|
11572
11572
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
11573
11573
|
return r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
11574
11574
|
}
|
|
11575
11575
|
function i1(r) {
|
|
11576
|
-
return new RegExp(`^${
|
|
11576
|
+
return new RegExp(`^${C0(r)}$`);
|
|
11577
11577
|
}
|
|
11578
|
-
function
|
|
11579
|
-
let e = `${
|
|
11578
|
+
function B0(r) {
|
|
11579
|
+
let e = `${I0}T${C0(r)}`;
|
|
11580
11580
|
const t = [];
|
|
11581
11581
|
return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
11582
11582
|
}
|
|
@@ -11699,7 +11699,7 @@ class Hr extends Ze {
|
|
|
11699
11699
|
code: q.invalid_string,
|
|
11700
11700
|
validation: { endsWith: s.value },
|
|
11701
11701
|
message: s.message
|
|
11702
|
-
}), n.dirty()) : s.kind === "datetime" ?
|
|
11702
|
+
}), n.dirty()) : s.kind === "datetime" ? B0(s).test(e.data) || (i = this._getOrReturnCtx(e, i), se(i, {
|
|
11703
11703
|
code: q.invalid_string,
|
|
11704
11704
|
validation: "datetime",
|
|
11705
11705
|
message: s.message
|
|
@@ -12799,7 +12799,7 @@ class Tt extends Ze {
|
|
|
12799
12799
|
});
|
|
12800
12800
|
}
|
|
12801
12801
|
keyof() {
|
|
12802
|
-
return
|
|
12802
|
+
return O0(ot.objectKeys(this.shape));
|
|
12803
12803
|
}
|
|
12804
12804
|
}
|
|
12805
12805
|
Tt.create = (r, e) => new Tt({
|
|
@@ -13362,7 +13362,7 @@ oo.create = (r, e) => new oo({
|
|
|
13362
13362
|
typeName: je.ZodLiteral,
|
|
13363
13363
|
...He(e)
|
|
13364
13364
|
});
|
|
13365
|
-
function
|
|
13365
|
+
function O0(r, e) {
|
|
13366
13366
|
return new ci({
|
|
13367
13367
|
values: r,
|
|
13368
13368
|
typeName: je.ZodEnum,
|
|
@@ -13382,7 +13382,7 @@ class ci extends Ze {
|
|
|
13382
13382
|
code: q.invalid_type
|
|
13383
13383
|
}), Pe;
|
|
13384
13384
|
}
|
|
13385
|
-
if (Ca(this, Os) ||
|
|
13385
|
+
if (Ca(this, Os) || k0(this, Os, new Set(this._def.values)), !Ca(this, Os).has(e.data)) {
|
|
13386
13386
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
13387
13387
|
return se(t, {
|
|
13388
13388
|
received: t.data,
|
|
@@ -13427,7 +13427,7 @@ class ci extends Ze {
|
|
|
13427
13427
|
}
|
|
13428
13428
|
}
|
|
13429
13429
|
Os = /* @__PURE__ */ new WeakMap();
|
|
13430
|
-
ci.create =
|
|
13430
|
+
ci.create = O0;
|
|
13431
13431
|
class ao extends Ze {
|
|
13432
13432
|
constructor() {
|
|
13433
13433
|
super(...arguments), Ts.set(this, void 0);
|
|
@@ -13442,7 +13442,7 @@ class ao extends Ze {
|
|
|
13442
13442
|
code: q.invalid_type
|
|
13443
13443
|
}), Pe;
|
|
13444
13444
|
}
|
|
13445
|
-
if (Ca(this, Ts) ||
|
|
13445
|
+
if (Ca(this, Ts) || k0(this, Ts, new Set(ot.getValidEnumValues(this._def.values))), !Ca(this, Ts).has(e.data)) {
|
|
13446
13446
|
const i = ot.objectValues(t);
|
|
13447
13447
|
return se(n, {
|
|
13448
13448
|
received: n.data,
|
|
@@ -13749,7 +13749,7 @@ uo.create = (r, e) => new uo({
|
|
|
13749
13749
|
typeName: je.ZodReadonly,
|
|
13750
13750
|
...He(e)
|
|
13751
13751
|
});
|
|
13752
|
-
function
|
|
13752
|
+
function T0(r, e = {}, t) {
|
|
13753
13753
|
return r ? hs.create().superRefine((n, i) => {
|
|
13754
13754
|
var s, o;
|
|
13755
13755
|
if (!r(n)) {
|
|
@@ -13767,7 +13767,7 @@ var je;
|
|
|
13767
13767
|
})(je || (je = {}));
|
|
13768
13768
|
const l1 = (r, e = {
|
|
13769
13769
|
message: `Input not instance of ${r.name}`
|
|
13770
|
-
}) =>
|
|
13770
|
+
}) => T0((t) => t instanceof r, e), N0 = Hr.create, R0 = oi.create, u1 = Na.create, f1 = ai.create, j0 = Qs.create, h1 = Vi.create, d1 = Ba.create, p1 = eo.create, y1 = to.create, g1 = hs.create, v1 = ki.create, m1 = Tn.create, w1 = Oa.create, b1 = Gr.create, x1 = Tt.create, A1 = Tt.strictCreate, _1 = ro.create, S1 = Nc.create, E1 = no.create, k1 = yn.create, I1 = io.create, C1 = Ta.create, B1 = Li.create, O1 = Ji.create, T1 = so.create, N1 = oo.create, R1 = ci.create, j1 = ao.create, P1 = ds.create, yd = qr.create, U1 = fn.create, D1 = li.create, $1 = qr.createWithPreprocess, M1 = Co.create, V1 = () => N0().optional(), L1 = () => R0().optional(), H1 = () => j0().optional(), F1 = {
|
|
13771
13771
|
string: (r) => Hr.create({ ...r, coerce: !0 }),
|
|
13772
13772
|
number: (r) => oi.create({ ...r, coerce: !0 }),
|
|
13773
13773
|
boolean: (r) => Qs.create({
|
|
@@ -13802,7 +13802,7 @@ var Ot = /* @__PURE__ */ Object.freeze({
|
|
|
13802
13802
|
ZodParsedType: ue,
|
|
13803
13803
|
getParsedType: qn,
|
|
13804
13804
|
ZodType: Ze,
|
|
13805
|
-
datetimeRegex:
|
|
13805
|
+
datetimeRegex: B0,
|
|
13806
13806
|
ZodString: Hr,
|
|
13807
13807
|
ZodNumber: oi,
|
|
13808
13808
|
ZodBigInt: ai,
|
|
@@ -13841,7 +13841,7 @@ var Ot = /* @__PURE__ */ Object.freeze({
|
|
|
13841
13841
|
ZodBranded: xf,
|
|
13842
13842
|
ZodPipeline: Co,
|
|
13843
13843
|
ZodReadonly: uo,
|
|
13844
|
-
custom:
|
|
13844
|
+
custom: T0,
|
|
13845
13845
|
Schema: Ze,
|
|
13846
13846
|
ZodSchema: Ze,
|
|
13847
13847
|
late: c1,
|
|
@@ -13852,7 +13852,7 @@ var Ot = /* @__PURE__ */ Object.freeze({
|
|
|
13852
13852
|
any: g1,
|
|
13853
13853
|
array: b1,
|
|
13854
13854
|
bigint: f1,
|
|
13855
|
-
boolean:
|
|
13855
|
+
boolean: j0,
|
|
13856
13856
|
date: h1,
|
|
13857
13857
|
discriminatedUnion: S1,
|
|
13858
13858
|
effect: yd,
|
|
@@ -13868,7 +13868,7 @@ var Ot = /* @__PURE__ */ Object.freeze({
|
|
|
13868
13868
|
never: m1,
|
|
13869
13869
|
null: y1,
|
|
13870
13870
|
nullable: D1,
|
|
13871
|
-
number:
|
|
13871
|
+
number: R0,
|
|
13872
13872
|
object: x1,
|
|
13873
13873
|
oboolean: H1,
|
|
13874
13874
|
onumber: L1,
|
|
@@ -13880,7 +13880,7 @@ var Ot = /* @__PURE__ */ Object.freeze({
|
|
|
13880
13880
|
record: I1,
|
|
13881
13881
|
set: B1,
|
|
13882
13882
|
strictObject: A1,
|
|
13883
|
-
string:
|
|
13883
|
+
string: N0,
|
|
13884
13884
|
symbol: d1,
|
|
13885
13885
|
transformer: yd,
|
|
13886
13886
|
tuple: k1,
|
|
@@ -13916,7 +13916,7 @@ async function Z1(r) {
|
|
|
13916
13916
|
try {
|
|
13917
13917
|
if (!r)
|
|
13918
13918
|
throw new Error("Attestation document is empty.");
|
|
13919
|
-
const e = Vo(r), t =
|
|
13919
|
+
const e = Vo(r), t = S0(e), n = t[0], i = t[2], s = t[3];
|
|
13920
13920
|
return K1.parse({
|
|
13921
13921
|
protected: n,
|
|
13922
13922
|
payload: i,
|
|
@@ -13928,7 +13928,7 @@ async function Z1(r) {
|
|
|
13928
13928
|
}
|
|
13929
13929
|
async function q1(r) {
|
|
13930
13930
|
try {
|
|
13931
|
-
const e =
|
|
13931
|
+
const e = S0(r);
|
|
13932
13932
|
return z1.parse(e);
|
|
13933
13933
|
} catch (e) {
|
|
13934
13934
|
throw console.error("Error parsing document payload:", e), new Error("Failed to parse document payload.");
|
|
@@ -14003,12 +14003,12 @@ async function ja(r, e, t) {
|
|
|
14003
14003
|
throw console.error("Error verifying attestation document:", n), n;
|
|
14004
14004
|
}
|
|
14005
14005
|
}
|
|
14006
|
-
const
|
|
14006
|
+
const Sb = Ot.object({
|
|
14007
14007
|
public_key: Ot.nullable(Ot.instanceof(Uint8Array))
|
|
14008
14008
|
});
|
|
14009
14009
|
async function J1(r) {
|
|
14010
14010
|
try {
|
|
14011
|
-
const e = await
|
|
14011
|
+
const e = await fm(r), t = "https://enclave.secretgpt.ai";
|
|
14012
14012
|
return await ja(e, Ra, r);
|
|
14013
14013
|
} catch (e) {
|
|
14014
14014
|
throw e instanceof Error ? (console.error("Error verifying attestation document:", e), new Error(`Couldn't process attestation document: ${e.message}`)) : (console.error("Error verifying attestation document:", e), new Error("Couldn't process attestation document."));
|
|
@@ -14017,7 +14017,7 @@ async function J1(r) {
|
|
|
14017
14017
|
function X1(r) {
|
|
14018
14018
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
14019
14019
|
}
|
|
14020
|
-
var
|
|
14020
|
+
var P0 = { exports: {} };
|
|
14021
14021
|
const Q1 = {}, em = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14022
14022
|
__proto__: null,
|
|
14023
14023
|
default: Q1
|
|
@@ -14690,9 +14690,12 @@ const Q1 = {}, em = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14690
14690
|
}));
|
|
14691
14691
|
}();
|
|
14692
14692
|
})(r.exports ? r.exports : self.nacl = self.nacl || {});
|
|
14693
|
-
})(
|
|
14694
|
-
var rm =
|
|
14695
|
-
const
|
|
14693
|
+
})(P0);
|
|
14694
|
+
var rm = P0.exports;
|
|
14695
|
+
const U0 = /* @__PURE__ */ ry(rm);
|
|
14696
|
+
function nm() {
|
|
14697
|
+
return U0.box.keyPair();
|
|
14698
|
+
}
|
|
14696
14699
|
async function fo(r) {
|
|
14697
14700
|
const e = sessionStorage.getItem("sessionKey"), t = sessionStorage.getItem("sessionId");
|
|
14698
14701
|
console.groupCollapsed("Attestation");
|
|
@@ -14706,14 +14709,14 @@ async function fo(r) {
|
|
|
14706
14709
|
const i = await J1(n);
|
|
14707
14710
|
if (i && i.public_key) {
|
|
14708
14711
|
console.log("Attestation document verification succeeded");
|
|
14709
|
-
const s =
|
|
14712
|
+
const s = nm();
|
|
14710
14713
|
console.log("Generated client key pair");
|
|
14711
|
-
const o = new Uint8Array(i.public_key), { encrypted_session_key: c, session_id: u } = await
|
|
14714
|
+
const o = new Uint8Array(i.public_key), { encrypted_session_key: c, session_id: u } = await hm(
|
|
14712
14715
|
Lr(s.publicKey),
|
|
14713
14716
|
n
|
|
14714
14717
|
);
|
|
14715
14718
|
console.log("Key exchange completed.");
|
|
14716
|
-
const d =
|
|
14719
|
+
const d = U0.scalarMult(s.secretKey, o), b = Vo(c), E = 12, Y = b.slice(0, E), $ = b.slice(E), S = new Ou(d).open(Y, $);
|
|
14717
14720
|
if (S)
|
|
14718
14721
|
return console.log("Session key decrypted successfully"), window.sessionStorage.setItem("sessionKey", Lr(S)), window.sessionStorage.setItem("sessionId", u), { sessionKey: S, sessionId: u };
|
|
14719
14722
|
throw new Error("Failed to decrypt session key");
|
|
@@ -14761,7 +14764,7 @@ async function D0(r, e, t, n, i) {
|
|
|
14761
14764
|
}
|
|
14762
14765
|
if (!s || !o)
|
|
14763
14766
|
throw new Error("Failed to make encrypted API call, no attestation available.");
|
|
14764
|
-
const E = t ? JSON.stringify(t) : void 0, Y = E ?
|
|
14767
|
+
const E = t ? JSON.stringify(t) : void 0, Y = E ? bd(s, E) : void 0, $ = {
|
|
14765
14768
|
"Content-Type": "application/json",
|
|
14766
14769
|
"x-session-id": o
|
|
14767
14770
|
};
|
|
@@ -14775,7 +14778,7 @@ async function D0(r, e, t, n, i) {
|
|
|
14775
14778
|
};
|
|
14776
14779
|
if (w.ok)
|
|
14777
14780
|
try {
|
|
14778
|
-
const T = await w.json(), I =
|
|
14781
|
+
const T = await w.json(), I = xd(s, T.encrypted);
|
|
14779
14782
|
S.data = JSON.parse(I);
|
|
14780
14783
|
} catch (T) {
|
|
14781
14784
|
console.error("Error decrypting or parsing response:", T), S.status = 500, S.error = "Failed to decrypt or parse the response";
|
|
@@ -14818,24 +14821,24 @@ async function kr(r, e, t, n, i) {
|
|
|
14818
14821
|
}
|
|
14819
14822
|
let vt = "http://localhost:3000";
|
|
14820
14823
|
console.log("API_URL:", vt);
|
|
14821
|
-
function
|
|
14824
|
+
function im(r) {
|
|
14822
14825
|
vt = r;
|
|
14823
14826
|
}
|
|
14824
|
-
async function
|
|
14827
|
+
async function sm(r, e) {
|
|
14825
14828
|
return kr(
|
|
14826
14829
|
`${vt}/login`,
|
|
14827
14830
|
"POST",
|
|
14828
14831
|
{ email: r, password: e }
|
|
14829
14832
|
);
|
|
14830
14833
|
}
|
|
14831
|
-
async function
|
|
14834
|
+
async function om(r, e) {
|
|
14832
14835
|
return kr(
|
|
14833
14836
|
`${vt}/login`,
|
|
14834
14837
|
"POST",
|
|
14835
14838
|
{ id: r, password: e }
|
|
14836
14839
|
);
|
|
14837
14840
|
}
|
|
14838
|
-
async function
|
|
14841
|
+
async function am(r, e, t, n) {
|
|
14839
14842
|
return kr(`${vt}/register`, "POST", {
|
|
14840
14843
|
email: r,
|
|
14841
14844
|
password: e,
|
|
@@ -14843,7 +14846,7 @@ async function om(r, e, t, n) {
|
|
|
14843
14846
|
name: n
|
|
14844
14847
|
});
|
|
14845
14848
|
}
|
|
14846
|
-
async function
|
|
14849
|
+
async function cm(r, e) {
|
|
14847
14850
|
return kr(`${vt}/register`, "POST", {
|
|
14848
14851
|
password: r,
|
|
14849
14852
|
inviteCode: e.toLowerCase()
|
|
@@ -14866,7 +14869,7 @@ async function Rc() {
|
|
|
14866
14869
|
throw console.error("Error refreshing token:", t), t;
|
|
14867
14870
|
}
|
|
14868
14871
|
}
|
|
14869
|
-
async function
|
|
14872
|
+
async function lm() {
|
|
14870
14873
|
return Ur(
|
|
14871
14874
|
`${vt}/protected/user`,
|
|
14872
14875
|
"GET",
|
|
@@ -14911,7 +14914,7 @@ async function L0() {
|
|
|
14911
14914
|
"Failed to list key-value pairs"
|
|
14912
14915
|
);
|
|
14913
14916
|
}
|
|
14914
|
-
async function
|
|
14917
|
+
async function um(r) {
|
|
14915
14918
|
const e = { refresh_token: r };
|
|
14916
14919
|
return kr(`${vt}/logout`, "POST", e);
|
|
14917
14920
|
}
|
|
@@ -14932,13 +14935,13 @@ async function Pa() {
|
|
|
14932
14935
|
"Failed to request new verification code"
|
|
14933
14936
|
);
|
|
14934
14937
|
}
|
|
14935
|
-
async function
|
|
14938
|
+
async function fm(r) {
|
|
14936
14939
|
const e = await fetch(`${vt}/attestation/${r}`);
|
|
14937
14940
|
if (!e.ok)
|
|
14938
14941
|
throw new Error(`Request failed with status ${e.status}`);
|
|
14939
14942
|
return (await e.json()).attestation_document;
|
|
14940
14943
|
}
|
|
14941
|
-
async function
|
|
14944
|
+
async function hm(r, e) {
|
|
14942
14945
|
const t = await fetch(`${vt}/key_exchange`, {
|
|
14943
14946
|
method: "POST",
|
|
14944
14947
|
headers: {
|
|
@@ -14987,7 +14990,7 @@ async function z0(r, e) {
|
|
|
14987
14990
|
"Failed to change password"
|
|
14988
14991
|
);
|
|
14989
14992
|
}
|
|
14990
|
-
async function
|
|
14993
|
+
async function dm(r) {
|
|
14991
14994
|
try {
|
|
14992
14995
|
return await kr(
|
|
14993
14996
|
`${vt}/auth/github`,
|
|
@@ -15000,7 +15003,7 @@ async function hm(r) {
|
|
|
15000
15003
|
throw e instanceof Error && e.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : e;
|
|
15001
15004
|
}
|
|
15002
15005
|
}
|
|
15003
|
-
async function
|
|
15006
|
+
async function pm(r, e, t) {
|
|
15004
15007
|
const n = { code: r, state: e, invite_code: t };
|
|
15005
15008
|
try {
|
|
15006
15009
|
return await kr(
|
|
@@ -15018,7 +15021,7 @@ async function dm(r, e, t) {
|
|
|
15018
15021
|
) : new Error("Failed to authenticate with GitHub. Please try again.") : i;
|
|
15019
15022
|
}
|
|
15020
15023
|
}
|
|
15021
|
-
async function
|
|
15024
|
+
async function ym(r) {
|
|
15022
15025
|
try {
|
|
15023
15026
|
return await kr(
|
|
15024
15027
|
`${vt}/auth/google`,
|
|
@@ -15031,7 +15034,7 @@ async function pm(r) {
|
|
|
15031
15034
|
throw e instanceof Error && e.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : e;
|
|
15032
15035
|
}
|
|
15033
15036
|
}
|
|
15034
|
-
async function
|
|
15037
|
+
async function gm(r, e, t) {
|
|
15035
15038
|
const n = { code: r, state: e, invite_code: t };
|
|
15036
15039
|
try {
|
|
15037
15040
|
return await kr(
|
|
@@ -15077,7 +15080,7 @@ async function q0(r) {
|
|
|
15077
15080
|
"Failed to fetch public key"
|
|
15078
15081
|
);
|
|
15079
15082
|
}
|
|
15080
|
-
async function
|
|
15083
|
+
async function vm(r, e, t) {
|
|
15081
15084
|
const n = {
|
|
15082
15085
|
email: r,
|
|
15083
15086
|
password: e,
|
|
@@ -15090,7 +15093,7 @@ async function gm(r, e, t) {
|
|
|
15090
15093
|
"Failed to convert guest account"
|
|
15091
15094
|
);
|
|
15092
15095
|
}
|
|
15093
|
-
async function
|
|
15096
|
+
async function mm(r) {
|
|
15094
15097
|
return Ur(
|
|
15095
15098
|
`${vt}/protected/third_party_token`,
|
|
15096
15099
|
"POST",
|
|
@@ -15098,7 +15101,7 @@ async function vm(r) {
|
|
|
15098
15101
|
"Failed to generate third party token"
|
|
15099
15102
|
);
|
|
15100
15103
|
}
|
|
15101
|
-
function
|
|
15104
|
+
function wm() {
|
|
15102
15105
|
return async (r, e) => {
|
|
15103
15106
|
var n, i;
|
|
15104
15107
|
const t = () => {
|
|
@@ -15116,7 +15119,7 @@ function mm() {
|
|
|
15116
15119
|
s.set("x-session-id", c);
|
|
15117
15120
|
const u = { ...e, headers: s };
|
|
15118
15121
|
if (e != null && e.body) {
|
|
15119
|
-
const b =
|
|
15122
|
+
const b = bd(o, e.body);
|
|
15120
15123
|
u.body = JSON.stringify({ encrypted: b }), s.set("Content-Type", "application/json");
|
|
15121
15124
|
}
|
|
15122
15125
|
let d = await fetch(r, u);
|
|
@@ -15140,7 +15143,7 @@ function mm() {
|
|
|
15140
15143
|
const I = E.decode(T);
|
|
15141
15144
|
Y += I;
|
|
15142
15145
|
let R;
|
|
15143
|
-
for (; R =
|
|
15146
|
+
for (; R = bm(Y); )
|
|
15144
15147
|
if (Y = Y.slice(R.length), R.trim().startsWith("data: ")) {
|
|
15145
15148
|
const P = R.slice(6).trim();
|
|
15146
15149
|
if (P === "[DONE]")
|
|
@@ -15150,7 +15153,7 @@ function mm() {
|
|
|
15150
15153
|
else
|
|
15151
15154
|
try {
|
|
15152
15155
|
console.groupCollapsed("Decrypting chunk"), console.log("Attempting to decrypt, data length:", P.length);
|
|
15153
|
-
const z =
|
|
15156
|
+
const z = xd(o, P);
|
|
15154
15157
|
console.log("Decrypted data length:", z.length), console.log("Decrypted data:", z);
|
|
15155
15158
|
try {
|
|
15156
15159
|
const he = JSON.parse(z);
|
|
@@ -15184,13 +15187,13 @@ function mm() {
|
|
|
15184
15187
|
}
|
|
15185
15188
|
};
|
|
15186
15189
|
}
|
|
15187
|
-
function
|
|
15190
|
+
function bm(r) {
|
|
15188
15191
|
const e = r.indexOf(`
|
|
15189
15192
|
|
|
15190
15193
|
`);
|
|
15191
15194
|
return e === -1 ? null : r.slice(0, e + 2);
|
|
15192
15195
|
}
|
|
15193
|
-
const
|
|
15196
|
+
const xm = [
|
|
15194
15197
|
"eeddbb58f57c38894d6d5af5e575fbe791c5bf3bbcfb5df8da8cfcf0c2e1da1913108e6a762112444740b88c163d7f4b",
|
|
15195
15198
|
"74ed417f88cb0ca76c4a3d10f278bd010f1d3f95eafb254d4732511bb50e404507a4049b779c5230137e4091a5582271",
|
|
15196
15199
|
"9043fcab93b972d3c14ad2dc8fa78ca7ad374fc937c02435681772a003f7a72876bc4d578089b5c4cf3fe9b480f1aabb",
|
|
@@ -15198,7 +15201,7 @@ const bm = [
|
|
|
15198
15201
|
"91cb67311e910cce68cd5b7d0de77aa40610d87c6681439b44c46c3ff786ae643956ab2c812478a1da8745b259f07a45",
|
|
15199
15202
|
"859065ac81b81d3735130ba08b8af72a7256b603fefb74faabae25ed28cca6edcaa7c10ea32b5948d675c18a9b0f2b1d",
|
|
15200
15203
|
"acd82a7d3943e23e95a9dc3ce0b0107ea358d6287f9e3afa245622f7c7e3e0a66142a928b6efcc02f594a95366d3a99d"
|
|
15201
|
-
],
|
|
15204
|
+
], Am = [
|
|
15202
15205
|
"62c0407056217a4c10764ed9045694c29fa93255d3cc04c2f989cdd9a1f8050c8b169714c71f1118ebce2fcc9951d1a9",
|
|
15203
15206
|
"cb95519905443f9f66f05f63c548b61ad1561a27fd5717b69285861aaea3c3063fe12a2571773b67fea3c6c11b4d8ec6",
|
|
15204
15207
|
"deb5895831b5e4286f5a2dcf5e9c27383821446f8df2b465f141d10743599be20ba3bb381ce063bf7139cc89f7f61d4c",
|
|
@@ -15207,8 +15210,8 @@ const bm = [
|
|
|
15207
15210
|
"a791bf92c25ffdfd372660e460a0e238c6778c090672df6509ae4bc065cf8668b6baac6b6a11d554af53ee0ff0172ad5",
|
|
15208
15211
|
"c4285443b87b9b12a6cea3bef1064ec060f652b235a297095975af8f134e5ed65f92d70d4616fdec80af9dff48bb9f35"
|
|
15209
15212
|
];
|
|
15210
|
-
function
|
|
15211
|
-
const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...
|
|
15213
|
+
function _m(r, e) {
|
|
15214
|
+
const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...xm], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...Am];
|
|
15212
15215
|
return t.includes(r) ? {
|
|
15213
15216
|
isMatch: !0,
|
|
15214
15217
|
text: "PCR0 matches a known good value"
|
|
@@ -15224,7 +15227,7 @@ const Cu = Ra, W0 = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f7
|
|
|
15224
15227
|
function Y0(r) {
|
|
15225
15228
|
return Array.from(r).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
15226
15229
|
}
|
|
15227
|
-
async function
|
|
15230
|
+
async function Sm(r) {
|
|
15228
15231
|
const e = await crypto.subtle.digest("SHA-256", r);
|
|
15229
15232
|
return Y0(new Uint8Array(e));
|
|
15230
15233
|
}
|
|
@@ -15233,7 +15236,7 @@ async function Bu(r, e, t) {
|
|
|
15233
15236
|
const n = Array.from(r.pcrs.entries()).map(([b, E]) => ({
|
|
15234
15237
|
id: b,
|
|
15235
15238
|
value: Y0(E)
|
|
15236
|
-
})).filter((b) => !b.value.match(/^0+$/)), i = n.find((b) => b.id === 0), s = i ?
|
|
15239
|
+
})).filter((b) => !b.value.match(/^0+$/)), i = n.find((b) => b.id === 0), s = i ? _m(i.value, t) : null, o = [...e, r.certificate].map((b) => {
|
|
15237
15240
|
const E = new $i(b);
|
|
15238
15241
|
return {
|
|
15239
15242
|
subject: E.subject,
|
|
@@ -15242,7 +15245,7 @@ async function Bu(r, e, t) {
|
|
|
15242
15245
|
pem: E.toString("pem"),
|
|
15243
15246
|
isRoot: E.subject === "C=US, O=Amazon, OU=AWS, CN=aws.nitro-enclaves"
|
|
15244
15247
|
};
|
|
15245
|
-
}), c = new TextDecoder(), u = new $i(e[0]), d = await
|
|
15248
|
+
}), c = new TextDecoder(), u = new $i(e[0]), d = await Sm(u.rawData);
|
|
15246
15249
|
return {
|
|
15247
15250
|
moduleId: r.module_id,
|
|
15248
15251
|
publicKey: r.public_key ? Lr(r.public_key) : null,
|
|
@@ -15320,7 +15323,7 @@ const J0 = ey({
|
|
|
15320
15323
|
},
|
|
15321
15324
|
generateThirdPartyToken: async () => ({ token: "" })
|
|
15322
15325
|
});
|
|
15323
|
-
function
|
|
15326
|
+
function Eb({
|
|
15324
15327
|
children: r,
|
|
15325
15328
|
apiUrl: e,
|
|
15326
15329
|
pcrConfig: t = {}
|
|
@@ -15332,9 +15335,9 @@ function Sb({
|
|
|
15332
15335
|
Uc(() => {
|
|
15333
15336
|
if (!e || e.trim() === "")
|
|
15334
15337
|
throw new Error("OpenSecretProvider requires a non-empty apiUrl. Please provide a valid API endpoint URL.");
|
|
15335
|
-
|
|
15338
|
+
im(e);
|
|
15336
15339
|
}, [e]), Uc(() => {
|
|
15337
|
-
n.user ? o(() =>
|
|
15340
|
+
n.user ? o(() => wm()) : o(void 0);
|
|
15338
15341
|
}, [n.user]);
|
|
15339
15342
|
async function c() {
|
|
15340
15343
|
const z = window.localStorage.getItem("access_token"), he = window.localStorage.getItem("refresh_token");
|
|
@@ -15346,7 +15349,7 @@ function Sb({
|
|
|
15346
15349
|
return;
|
|
15347
15350
|
}
|
|
15348
15351
|
try {
|
|
15349
|
-
const ae = await
|
|
15352
|
+
const ae = await lm();
|
|
15350
15353
|
i({
|
|
15351
15354
|
loading: !1,
|
|
15352
15355
|
user: ae
|
|
@@ -15364,7 +15367,7 @@ function Sb({
|
|
|
15364
15367
|
async function u(z, he) {
|
|
15365
15368
|
console.log("Signing in");
|
|
15366
15369
|
try {
|
|
15367
|
-
const { access_token: ae, refresh_token: de } = await
|
|
15370
|
+
const { access_token: ae, refresh_token: de } = await sm(z, he);
|
|
15368
15371
|
window.localStorage.setItem("access_token", ae), window.localStorage.setItem("refresh_token", de), await c();
|
|
15369
15372
|
} catch (ae) {
|
|
15370
15373
|
throw console.error(ae), ae;
|
|
@@ -15372,7 +15375,7 @@ function Sb({
|
|
|
15372
15375
|
}
|
|
15373
15376
|
async function d(z, he, ae, de) {
|
|
15374
15377
|
try {
|
|
15375
|
-
const { access_token: Re, refresh_token: rt } = await
|
|
15378
|
+
const { access_token: Re, refresh_token: rt } = await am(
|
|
15376
15379
|
z,
|
|
15377
15380
|
he,
|
|
15378
15381
|
ae,
|
|
@@ -15386,7 +15389,7 @@ function Sb({
|
|
|
15386
15389
|
async function b(z, he) {
|
|
15387
15390
|
console.log("Signing in Guest");
|
|
15388
15391
|
try {
|
|
15389
|
-
const { access_token: ae, refresh_token: de } = await
|
|
15392
|
+
const { access_token: ae, refresh_token: de } = await om(z, he);
|
|
15390
15393
|
window.localStorage.setItem("access_token", ae), window.localStorage.setItem("refresh_token", de), await c();
|
|
15391
15394
|
} catch (ae) {
|
|
15392
15395
|
throw console.error(ae), ae;
|
|
@@ -15394,7 +15397,7 @@ function Sb({
|
|
|
15394
15397
|
}
|
|
15395
15398
|
async function E(z, he) {
|
|
15396
15399
|
try {
|
|
15397
|
-
const { access_token: ae, refresh_token: de, id: Re } = await
|
|
15400
|
+
const { access_token: ae, refresh_token: de, id: Re } = await cm(
|
|
15398
15401
|
z,
|
|
15399
15402
|
he
|
|
15400
15403
|
);
|
|
@@ -15405,7 +15408,7 @@ function Sb({
|
|
|
15405
15408
|
}
|
|
15406
15409
|
async function Y(z, he, ae) {
|
|
15407
15410
|
try {
|
|
15408
|
-
await
|
|
15411
|
+
await vm(
|
|
15409
15412
|
z,
|
|
15410
15413
|
he,
|
|
15411
15414
|
ae
|
|
@@ -15418,7 +15421,7 @@ function Sb({
|
|
|
15418
15421
|
const z = window.localStorage.getItem("refresh_token");
|
|
15419
15422
|
if (z)
|
|
15420
15423
|
try {
|
|
15421
|
-
await
|
|
15424
|
+
await um(z);
|
|
15422
15425
|
} catch (he) {
|
|
15423
15426
|
console.error("Error during logout:", he);
|
|
15424
15427
|
}
|
|
@@ -15449,14 +15452,14 @@ function Sb({
|
|
|
15449
15452
|
confirmPasswordReset: G0,
|
|
15450
15453
|
initiateGitHubAuth: async (z) => {
|
|
15451
15454
|
try {
|
|
15452
|
-
return await
|
|
15455
|
+
return await dm(z);
|
|
15453
15456
|
} catch (he) {
|
|
15454
15457
|
throw console.error("Failed to initiate GitHub auth:", he), he;
|
|
15455
15458
|
}
|
|
15456
15459
|
},
|
|
15457
15460
|
handleGitHubCallback: async (z, he, ae) => {
|
|
15458
15461
|
try {
|
|
15459
|
-
const { access_token: de, refresh_token: Re } = await
|
|
15462
|
+
const { access_token: de, refresh_token: Re } = await pm(
|
|
15460
15463
|
z,
|
|
15461
15464
|
he,
|
|
15462
15465
|
ae
|
|
@@ -15468,14 +15471,14 @@ function Sb({
|
|
|
15468
15471
|
},
|
|
15469
15472
|
initiateGoogleAuth: async (z) => {
|
|
15470
15473
|
try {
|
|
15471
|
-
return await
|
|
15474
|
+
return await ym(z);
|
|
15472
15475
|
} catch (he) {
|
|
15473
15476
|
throw console.error("Failed to initiate Google auth:", he), he;
|
|
15474
15477
|
}
|
|
15475
15478
|
},
|
|
15476
15479
|
handleGoogleCallback: async (z, he, ae) => {
|
|
15477
15480
|
try {
|
|
15478
|
-
const { access_token: de, refresh_token: Re } = await
|
|
15481
|
+
const { access_token: de, refresh_token: Re } = await gm(
|
|
15479
15482
|
z,
|
|
15480
15483
|
he,
|
|
15481
15484
|
ae
|
|
@@ -15503,28 +15506,28 @@ function Sb({
|
|
|
15503
15506
|
const ae = await he.json(), de = await ja(ae.attestation_document, Cu, z);
|
|
15504
15507
|
return Bu(de, de.cabundle, t);
|
|
15505
15508
|
},
|
|
15506
|
-
generateThirdPartyToken:
|
|
15509
|
+
generateThirdPartyToken: mm
|
|
15507
15510
|
};
|
|
15508
15511
|
return /* @__PURE__ */ oy.jsx(J0.Provider, { value: P, children: r });
|
|
15509
15512
|
}
|
|
15510
|
-
function
|
|
15513
|
+
function kb() {
|
|
15511
15514
|
const r = ty(J0);
|
|
15512
15515
|
if (!r)
|
|
15513
15516
|
throw new Error("useOpenSecret must be used within an OpenSecretProvider");
|
|
15514
15517
|
return r;
|
|
15515
15518
|
}
|
|
15516
|
-
function
|
|
15519
|
+
function Ib() {
|
|
15517
15520
|
const r = new Uint8Array(32);
|
|
15518
15521
|
return crypto.getRandomValues(r), Array.from(r, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
15519
15522
|
}
|
|
15520
|
-
async function
|
|
15523
|
+
async function Cb(r) {
|
|
15521
15524
|
const t = new TextEncoder().encode(r), n = await crypto.subtle.digest("SHA-256", t);
|
|
15522
15525
|
return Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
15523
15526
|
}
|
|
15524
15527
|
export {
|
|
15525
15528
|
J0 as OpenSecretContext,
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
|
|
15529
|
+
Eb as OpenSecretProvider,
|
|
15530
|
+
Ib as generateSecureSecret,
|
|
15531
|
+
Cb as hashSecret,
|
|
15532
|
+
kb as useOpenSecret
|
|
15530
15533
|
};
|