ss-component-new 1.1.596 → 1.1.598
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-mnEYd91h.cjs → array-C1gcNGaP.cjs} +1 -1
- package/dist/{array-wJSGLzMi.js → array-CaisX3_y.js} +1 -1
- package/dist/{crypto-BRyGpjGR.js → crypto-BLqrsrbD.js} +503 -430
- package/dist/{crypto-CRbcEKIz.cjs → crypto-kdpAHFnl.cjs} +11 -11
- package/dist/index-2tDhJ_PE.cjs +74 -0
- package/dist/{index-CdV-dIPz.js → index-6zxl3bAx.js} +3 -3
- package/dist/{index-Bq9zvPYq.js → index-B40Vg6be.js} +6 -6
- package/dist/index-BA5Dtdnf.cjs +1 -0
- package/dist/{index-DIQgn1lv.js → index-BIT-bLqc.js} +1 -1
- package/dist/index-BND1JkQV.cjs +1 -0
- package/dist/{index-C1KIIGh8.js → index-BQcbH-Bx.js} +5 -5
- package/dist/index-BTFmTXxw.cjs +1 -0
- package/dist/{index-Dr_FFxuS.cjs → index-BTR1Mq9-.cjs} +1 -1
- package/dist/{index-BhIXAFkM.js → index-BX8Qt4Rx.js} +6 -7
- package/dist/index-BkcTV4rw.cjs +1 -0
- package/dist/{index-DTKpspvK.cjs → index-BlUO9yjl.cjs} +1 -1
- package/dist/{index-Dm8EQvZF.cjs → index-Bn3uMi-8.cjs} +1 -1
- package/dist/index-Bp7fX2Un.cjs +1 -0
- package/dist/{index-Bb1N38wE.js → index-BzxOgHaM.js} +3 -3
- package/dist/{index-CUnz8HhY.cjs → index-C1pvDeK-.cjs} +1 -1
- package/dist/index-C2whMdL5.cjs +1 -0
- package/dist/{index-_h1qmm7b.js → index-C39wdrEg.js} +13 -13
- package/dist/{index-BmX_GIIO.cjs → index-CDtFBTgg.cjs} +1 -1
- package/dist/{index-Db0lTu76.js → index-CJT5TxjA.js} +3 -3
- package/dist/{index-DHuIlYC1.cjs → index-CLbudYRq.cjs} +1 -1
- package/dist/index-CLx_m5eO.cjs +1 -0
- package/dist/{index-bALhgSe4.js → index-CZevQ8Dr.js} +22 -23
- package/dist/index-CdUSKaxX.cjs +1 -0
- package/dist/{index-DSsJ2-ii.cjs → index-D-9AsLgs.cjs} +1 -1
- package/dist/{index-BriwvEur.js → index-D-EA3Esr.js} +4 -4
- package/dist/{index-BIu-jTfc.js → index-D0SLiYEQ.js} +1 -1
- package/dist/{index-Zt6huWXY.js → index-D7dvgWgC.js} +8 -8
- package/dist/{index-Bk3SowMg.js → index-D93nyxZ8.js} +4 -4
- package/dist/{index-B4LVTE2a.cjs → index-D9qvpCOL.cjs} +174 -174
- package/dist/{index-DQm7DvqZ.cjs → index-DAXzplpp.cjs} +1 -1
- package/dist/{index-CB4s2Qtu.cjs → index-DHxqKUgB.cjs} +1 -1
- package/dist/{index-C7x-mC0R.js → index-DJuUjZvH.js} +83 -84
- package/dist/index-DTyUDeyD.js +4369 -0
- package/dist/{index-CwYjbsHf.cjs → index-DeXIDjm6.cjs} +1 -1
- package/dist/{index-TRcS4V2m.js → index-DiGq9Lsv.js} +5 -5
- package/dist/{index-BBnnl-_P.cjs → index-Dnc9hCoC.cjs} +1 -1
- package/dist/{index-BurAdhpz.js → index-DyUmQMqi.js} +4 -4
- package/dist/index-HXTaOl2k.cjs +1 -0
- package/dist/{index-CmXpvujN.js → index-HkaBIp59.js} +1 -1
- package/dist/{index-BOb-2bQ6.js → index-RN-gwhe0.js} +2 -2
- package/dist/{index-Bkm9CeI0.js → index-V9vs-ScR.js} +1 -1
- package/dist/{index-8gbPS8-X.js → index-VF7EMAm-.js} +3 -3
- package/dist/{index-4me0w_d_.js → index-Ww4aroev.js} +3 -3
- package/dist/{index-BrR-UBrL.js → index-bCB0m90F.js} +5 -5
- package/dist/{index-CJ_rdkr8.js → index-hBF27unU.js} +7021 -7051
- package/dist/{index-Dsnvzj37.cjs → index-mWOC2B6n.cjs} +1 -1
- package/dist/{index-CjrWmm5T.js → index-sLT63BWC.js} +2030 -2020
- package/dist/{index-l52VRsV3.cjs → index-v95HBZGa.cjs} +1 -1
- package/dist/{index-P7MVl516.cjs → index-vqffUZk8.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DdxkZBiO.js → index.vue_vue_type_script_setup_true_lang-CPMJDln6.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKo9xhlB.cjs → index.vue_vue_type_script_setup_true_lang-T3qSOy6p.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BNbsh3Kc.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DXFzvQ4G.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DPUizNX8.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-BrSe9KLj.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-C4KOyCan.js → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CNhkr8wC.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DNiiRDF0.cjs → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-CcbD9_8d.cjs} +10 -10
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang--Ckdd4kI.js → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DCgz0iSg.js} +2170 -2164
- package/dist/{main-CBruCFMa.cjs → main-OEqZN7Ta.cjs} +1 -1
- package/dist/{main-BdwwE9kL.js → main-v-I0DDbj.js} +5 -5
- package/dist/{menu-DYsWoy6Z.cjs → menu-1olc0mrV.cjs} +9 -9
- package/dist/{menu-Qw1eGtzq.js → menu-BxkEScwt.js} +201 -199
- package/dist/menuIndex-DGUNtXPA.cjs +1 -0
- package/dist/menuIndex-DaxuTIfn.js +60 -0
- package/dist/{modelComp-y7HaQuVQ.js → modelComp-Bj7Q1JDt.js} +1 -1
- package/dist/{modelComp-8s0tWZDU.cjs → modelComp-C5jCD_od.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-WeRc8TWE.js → threeModel-D_RxjZwp.js} +568 -550
- package/dist/threeModel-ncwxCK1P.cjs +1 -0
- package/package.json +1 -1
- package/dist/index-B-P2iW5F.cjs +0 -1
- package/dist/index-BFKRXrzQ.cjs +0 -1
- package/dist/index-BJi_ECqJ.cjs +0 -1
- package/dist/index-BiqWWf_i.cjs +0 -1
- package/dist/index-DFdkXYtv.js +0 -4373
- package/dist/index-DJc0EPc7.cjs +0 -1
- package/dist/index-DUjNOx49.cjs +0 -1
- package/dist/index-K05hKXiU.cjs +0 -1
- package/dist/index-R71UAxtE.cjs +0 -1
- package/dist/index-RFCzxTjm.cjs +0 -87
- package/dist/index-n20urAJT.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CHdcwZZm.cjs +0 -1
- package/dist/login-BBvcYktp.cjs +0 -1
- package/dist/login-afGmER0u.js +0 -129
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeModel-DQIGp3UU.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,66 +1,138 @@
|
|
|
1
|
-
|
|
1
|
+
import { bR as Dt, s as xt, bO as Rt, E as Bt, g as At, u as It, p as Ot } from "./menu-BxkEScwt.js";
|
|
2
|
+
import { f as Vt, g as Nt } from "./menuIndex-DaxuTIfn.js";
|
|
3
|
+
const Pt = It(Ot), { menus: Mt } = xt(Pt), oe = Dt("loginState", {
|
|
4
|
+
state: () => ({
|
|
5
|
+
superAdminInfo: {},
|
|
6
|
+
cryptoInfo: {
|
|
7
|
+
publicKey: "",
|
|
8
|
+
privateKey: ""
|
|
9
|
+
},
|
|
10
|
+
loginUserInfo: {},
|
|
11
|
+
structureData: [],
|
|
12
|
+
isStructureExist: !1
|
|
13
|
+
}),
|
|
14
|
+
actions: {
|
|
15
|
+
setSuperAdminInfo(r) {
|
|
16
|
+
this.superAdminInfo = r;
|
|
17
|
+
},
|
|
18
|
+
setLoginUserInfo(r) {
|
|
19
|
+
this.loginUserInfo = r;
|
|
20
|
+
},
|
|
21
|
+
setStructureData(r) {
|
|
22
|
+
this.structureData = r;
|
|
23
|
+
},
|
|
24
|
+
setIsStructureExist(r) {
|
|
25
|
+
this.isStructureExist = r;
|
|
26
|
+
},
|
|
27
|
+
async getModelSecretAsync(r) {
|
|
28
|
+
var e, i, n, s, h, o, a, f, l, p, v, y, S;
|
|
29
|
+
const t = await At({
|
|
30
|
+
key: {
|
|
31
|
+
systemKey: r ? r.systemKey : sessionStorage.getItem("systemKey"),
|
|
32
|
+
pageKey: "secret",
|
|
33
|
+
type: "system"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return ((e = t == null ? void 0 : t.data) == null ? void 0 : e.code) === 200 && (i = t == null ? void 0 : t.data) != null && i.result && Array.isArray((n = t == null ? void 0 : t.data) == null ? void 0 : n.result) && ((h = (s = t == null ? void 0 : t.data) == null ? void 0 : s.result) == null ? void 0 : h.length) > 0 && (this.cryptoInfo.publicKey = (l = (f = (a = (o = t.data) == null ? void 0 : o.result[0]) == null ? void 0 : a.value) == null ? void 0 : f.cryptoInfo) == null ? void 0 : l.publicKey, this.cryptoInfo.privateKey = (S = (y = (v = (p = t.data) == null ? void 0 : p.result[0]) == null ? void 0 : v.value) == null ? void 0 : y.cryptoInfo) == null ? void 0 : S.privateKey), {
|
|
37
|
+
publicKey: this.cryptoInfo.publicKey,
|
|
38
|
+
privateKey: this.cryptoInfo.privateKey
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
async setLogRecordAsync(r, t, e = "operate") {
|
|
42
|
+
var i;
|
|
43
|
+
try {
|
|
44
|
+
const n = Vt(Mt.value, "path", t, "children");
|
|
45
|
+
if (!n) return;
|
|
46
|
+
const s = await Rt({
|
|
47
|
+
key: {
|
|
48
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
49
|
+
pageKey: "/log",
|
|
50
|
+
type: "system",
|
|
51
|
+
logType: e
|
|
52
|
+
},
|
|
53
|
+
value: {
|
|
54
|
+
module: n ? n.title : t,
|
|
55
|
+
timeStamp: Nt(),
|
|
56
|
+
detail: { ...r }
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
return ((i = s == null ? void 0 : s.data) == null ? void 0 : i.code) === 200;
|
|
60
|
+
} catch (n) {
|
|
61
|
+
Bt.error(n);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
persist: [
|
|
66
|
+
{
|
|
67
|
+
key: "loginState",
|
|
68
|
+
storage: localStorage,
|
|
69
|
+
pick: ["superAdminInfo"]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
var Kt = "0123456789abcdefghijklmnopqrstuvwxyz";
|
|
2
74
|
function A(r) {
|
|
3
|
-
return
|
|
75
|
+
return Kt.charAt(r);
|
|
4
76
|
}
|
|
5
|
-
function
|
|
77
|
+
function qt(r, t) {
|
|
6
78
|
return r & t;
|
|
7
79
|
}
|
|
8
80
|
function Z(r, t) {
|
|
9
81
|
return r | t;
|
|
10
82
|
}
|
|
11
|
-
function
|
|
83
|
+
function ft(r, t) {
|
|
12
84
|
return r ^ t;
|
|
13
85
|
}
|
|
14
86
|
function lt(r, t) {
|
|
15
87
|
return r & ~t;
|
|
16
88
|
}
|
|
17
|
-
function
|
|
89
|
+
function Ht(r) {
|
|
18
90
|
if (r == 0)
|
|
19
91
|
return -1;
|
|
20
92
|
var t = 0;
|
|
21
93
|
return (r & 65535) == 0 && (r >>= 16, t += 16), (r & 255) == 0 && (r >>= 8, t += 8), (r & 15) == 0 && (r >>= 4, t += 4), (r & 3) == 0 && (r >>= 2, t += 2), (r & 1) == 0 && ++t, t;
|
|
22
94
|
}
|
|
23
|
-
function
|
|
95
|
+
function Ct(r) {
|
|
24
96
|
for (var t = 0; r != 0; )
|
|
25
97
|
r &= r - 1, ++t;
|
|
26
98
|
return t;
|
|
27
99
|
}
|
|
28
|
-
var
|
|
100
|
+
var C = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Tt = "=";
|
|
29
101
|
function W(r) {
|
|
30
102
|
var t, e, i = "";
|
|
31
103
|
for (t = 0; t + 3 <= r.length; t += 3)
|
|
32
|
-
e = parseInt(r.substring(t, t + 3), 16), i +=
|
|
33
|
-
for (t + 1 == r.length ? (e = parseInt(r.substring(t, t + 1), 16), i +=
|
|
34
|
-
i +=
|
|
104
|
+
e = parseInt(r.substring(t, t + 3), 16), i += C.charAt(e >> 6) + C.charAt(e & 63);
|
|
105
|
+
for (t + 1 == r.length ? (e = parseInt(r.substring(t, t + 1), 16), i += C.charAt(e << 2)) : t + 2 == r.length && (e = parseInt(r.substring(t, t + 2), 16), i += C.charAt(e >> 2) + C.charAt((e & 3) << 4)); (i.length & 3) > 0; )
|
|
106
|
+
i += Tt;
|
|
35
107
|
return i;
|
|
36
108
|
}
|
|
37
109
|
function ct(r) {
|
|
38
110
|
var t = "", e, i = 0, n = 0;
|
|
39
|
-
for (e = 0; e < r.length && r.charAt(e) !=
|
|
40
|
-
var s =
|
|
111
|
+
for (e = 0; e < r.length && r.charAt(e) != Tt; ++e) {
|
|
112
|
+
var s = C.indexOf(r.charAt(e));
|
|
41
113
|
s < 0 || (i == 0 ? (t += A(s >> 2), n = s & 3, i = 1) : i == 1 ? (t += A(n << 2 | s >> 4), n = s & 15, i = 2) : i == 2 ? (t += A(n), t += A(s >> 2), n = s & 3, i = 3) : (t += A(n << 2 | s >> 4), t += A(s & 15), i = 0));
|
|
42
114
|
}
|
|
43
115
|
return i == 1 && (t += A(n << 2)), t;
|
|
44
116
|
}
|
|
45
|
-
var
|
|
117
|
+
var q, _t = {
|
|
46
118
|
decode: function(r) {
|
|
47
119
|
var t;
|
|
48
|
-
if (
|
|
120
|
+
if (q === void 0) {
|
|
49
121
|
var e = "0123456789ABCDEF", i = ` \f
|
|
50
122
|
\r \u2028\u2029`;
|
|
51
|
-
for (
|
|
52
|
-
|
|
123
|
+
for (q = {}, t = 0; t < 16; ++t)
|
|
124
|
+
q[e.charAt(t)] = t;
|
|
53
125
|
for (e = e.toLowerCase(), t = 10; t < 16; ++t)
|
|
54
|
-
|
|
126
|
+
q[e.charAt(t)] = t;
|
|
55
127
|
for (t = 0; t < i.length; ++t)
|
|
56
|
-
|
|
128
|
+
q[i.charAt(t)] = -1;
|
|
57
129
|
}
|
|
58
130
|
var n = [], s = 0, h = 0;
|
|
59
131
|
for (t = 0; t < r.length; ++t) {
|
|
60
132
|
var o = r.charAt(t);
|
|
61
133
|
if (o == "=")
|
|
62
134
|
break;
|
|
63
|
-
if (o =
|
|
135
|
+
if (o = q[o], o != -1) {
|
|
64
136
|
if (o === void 0)
|
|
65
137
|
throw new Error("Illegal character at offset " + t);
|
|
66
138
|
s |= o, ++h >= 2 ? (n[n.length] = s, s = 0, h = 0) : s <<= 4;
|
|
@@ -116,7 +188,7 @@ var H, At = {
|
|
|
116
188
|
throw new Error("RegExp out of sync");
|
|
117
189
|
return ot.decode(r);
|
|
118
190
|
}
|
|
119
|
-
},
|
|
191
|
+
}, H = 1e13, U = (
|
|
120
192
|
/** @class */
|
|
121
193
|
function() {
|
|
122
194
|
function r(t) {
|
|
@@ -125,31 +197,31 @@ var H, At = {
|
|
|
125
197
|
return r.prototype.mulAdd = function(t, e) {
|
|
126
198
|
var i = this.buf, n = i.length, s, h;
|
|
127
199
|
for (s = 0; s < n; ++s)
|
|
128
|
-
h = i[s] * t + e, h <
|
|
200
|
+
h = i[s] * t + e, h < H ? e = 0 : (e = 0 | h / H, h -= e * H), i[s] = h;
|
|
129
201
|
e > 0 && (i[s] = e);
|
|
130
202
|
}, r.prototype.sub = function(t) {
|
|
131
203
|
var e = this.buf, i = e.length, n, s;
|
|
132
204
|
for (n = 0; n < i; ++n)
|
|
133
|
-
s = e[n] - t, s < 0 ? (s +=
|
|
205
|
+
s = e[n] - t, s < 0 ? (s += H, t = 1) : t = 0, e[n] = s;
|
|
134
206
|
for (; e[e.length - 1] === 0; )
|
|
135
207
|
e.pop();
|
|
136
208
|
}, r.prototype.toString = function(t) {
|
|
137
209
|
if ((t || 10) != 10)
|
|
138
210
|
throw new Error("only base 10 is supported");
|
|
139
211
|
for (var e = this.buf, i = e[e.length - 1].toString(), n = e.length - 2; n >= 0; --n)
|
|
140
|
-
i += (
|
|
212
|
+
i += (H + e[n]).toString().substring(1);
|
|
141
213
|
return i;
|
|
142
214
|
}, r.prototype.valueOf = function() {
|
|
143
215
|
for (var t = this.buf, e = 0, i = t.length - 1; i >= 0; --i)
|
|
144
|
-
e = e *
|
|
216
|
+
e = e * H + t[i];
|
|
145
217
|
return e;
|
|
146
218
|
}, r.prototype.simplify = function() {
|
|
147
219
|
var t = this.buf;
|
|
148
220
|
return t.length == 1 ? t[0] : this;
|
|
149
221
|
}, r;
|
|
150
222
|
}()
|
|
151
|
-
), bt = "…",
|
|
152
|
-
function
|
|
223
|
+
), bt = "…", Ft = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, Lt = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
|
|
224
|
+
function _(r, t) {
|
|
153
225
|
return r.length > t && (r = r.substring(0, t) + bt), r;
|
|
154
226
|
}
|
|
155
227
|
var rt = (
|
|
@@ -201,7 +273,7 @@ var rt = (
|
|
|
201
273
|
n = this.get(h++), s = this.get(h++), i += String.fromCharCode(n << 8 | s);
|
|
202
274
|
return i;
|
|
203
275
|
}, r.prototype.parseTime = function(t, e, i) {
|
|
204
|
-
var n = this.parseStringISO(t, e), s = (i ?
|
|
276
|
+
var n = this.parseStringISO(t, e), s = (i ? Ft : Lt).exec(n);
|
|
205
277
|
return s ? (i && (s[1] = +s[1], s[1] += +s[1] < 70 ? 2e3 : 1900), n = s[1] + "-" + s[2] + "-" + s[3] + " " + s[4], s[5] && (n += ":" + s[5], s[6] && (n += ":" + s[6], s[7] && (n += "." + s[7]))), s[8] && (n += " UTC", s[8] != "Z" && (n += s[8], s[9] && (n += ":" + s[9]))), n) : "Unrecognized time: " + n;
|
|
206
278
|
}, r.prototype.parseInteger = function(t, e) {
|
|
207
279
|
for (var i = this.get(t), n = i > 127, s = n ? 255 : 0, h, o = ""; i == s && ++t < e; )
|
|
@@ -215,21 +287,21 @@ var rt = (
|
|
|
215
287
|
`;
|
|
216
288
|
}
|
|
217
289
|
n && (i = i - 256);
|
|
218
|
-
for (var
|
|
219
|
-
|
|
220
|
-
return o +
|
|
290
|
+
for (var a = new U(i), f = t + 1; f < e; ++f)
|
|
291
|
+
a.mulAdd(256, this.get(f));
|
|
292
|
+
return o + a.toString();
|
|
221
293
|
}, r.prototype.parseBitString = function(t, e, i) {
|
|
222
294
|
for (var n = this.get(t), s = (e - t - 1 << 3) - n, h = "(" + s + ` bit)
|
|
223
|
-
`, o = "",
|
|
224
|
-
for (var
|
|
225
|
-
o +=
|
|
295
|
+
`, o = "", a = t + 1; a < e; ++a) {
|
|
296
|
+
for (var f = this.get(a), l = a == e - 1 ? n : 0, p = 7; p >= l; --p)
|
|
297
|
+
o += f >> p & 1 ? "1" : "0";
|
|
226
298
|
if (o.length > i)
|
|
227
|
-
return h +
|
|
299
|
+
return h + _(o, i);
|
|
228
300
|
}
|
|
229
301
|
return h + o;
|
|
230
302
|
}, r.prototype.parseOctetString = function(t, e, i) {
|
|
231
303
|
if (this.isASCII(t, e))
|
|
232
|
-
return
|
|
304
|
+
return _(this.parseStringISO(t, e), i);
|
|
233
305
|
var n = e - t, s = "(" + n + ` byte)
|
|
234
306
|
`;
|
|
235
307
|
i /= 2, n > i && (e = t + i);
|
|
@@ -237,27 +309,27 @@ var rt = (
|
|
|
237
309
|
s += this.hexByte(this.get(h));
|
|
238
310
|
return n > i && (s += bt), s;
|
|
239
311
|
}, r.prototype.parseOID = function(t, e, i) {
|
|
240
|
-
for (var n = "", s = new
|
|
241
|
-
var
|
|
242
|
-
if (s.mulAdd(128,
|
|
312
|
+
for (var n = "", s = new U(), h = 0, o = t; o < e; ++o) {
|
|
313
|
+
var a = this.get(o);
|
|
314
|
+
if (s.mulAdd(128, a & 127), h += 7, !(a & 128)) {
|
|
243
315
|
if (n === "")
|
|
244
|
-
if (s = s.simplify(), s instanceof
|
|
316
|
+
if (s = s.simplify(), s instanceof U)
|
|
245
317
|
s.sub(80), n = "2." + s.toString();
|
|
246
318
|
else {
|
|
247
|
-
var
|
|
248
|
-
n =
|
|
319
|
+
var f = s < 80 ? s < 40 ? 0 : 1 : 2;
|
|
320
|
+
n = f + "." + (s - f * 40);
|
|
249
321
|
}
|
|
250
322
|
else
|
|
251
323
|
n += "." + s.toString();
|
|
252
324
|
if (n.length > i)
|
|
253
|
-
return
|
|
254
|
-
s = new
|
|
325
|
+
return _(n, i);
|
|
326
|
+
s = new U(), h = 0;
|
|
255
327
|
}
|
|
256
328
|
}
|
|
257
329
|
return h > 0 && (n += ".incomplete"), n;
|
|
258
330
|
}, r;
|
|
259
331
|
}()
|
|
260
|
-
),
|
|
332
|
+
), kt = (
|
|
261
333
|
/** @class */
|
|
262
334
|
function() {
|
|
263
335
|
function r(t, e, i, n, s) {
|
|
@@ -366,7 +438,7 @@ var rt = (
|
|
|
366
438
|
case 17:
|
|
367
439
|
return this.sub !== null ? "(" + this.sub.length + " elem)" : "(no elem)";
|
|
368
440
|
case 12:
|
|
369
|
-
return
|
|
441
|
+
return _(this.stream.parseStringUTF(e, e + i), t);
|
|
370
442
|
case 18:
|
|
371
443
|
// NumericString
|
|
372
444
|
case 19:
|
|
@@ -379,9 +451,9 @@ var rt = (
|
|
|
379
451
|
// IA5String
|
|
380
452
|
// case 0x19: // GraphicString
|
|
381
453
|
case 26:
|
|
382
|
-
return
|
|
454
|
+
return _(this.stream.parseStringISO(e, e + i), t);
|
|
383
455
|
case 30:
|
|
384
|
-
return
|
|
456
|
+
return _(this.stream.parseStringBMP(e, e + i), t);
|
|
385
457
|
case 23:
|
|
386
458
|
// UTCTime
|
|
387
459
|
case 24:
|
|
@@ -426,12 +498,12 @@ var rt = (
|
|
|
426
498
|
}, r.decode = function(t) {
|
|
427
499
|
var e;
|
|
428
500
|
t instanceof rt ? e = t : e = new rt(t, 0);
|
|
429
|
-
var i = new rt(e), n = new pt(e), s = r.decodeLength(e), h = e.pos, o = h - i.pos,
|
|
430
|
-
var
|
|
501
|
+
var i = new rt(e), n = new pt(e), s = r.decodeLength(e), h = e.pos, o = h - i.pos, a = null, f = function() {
|
|
502
|
+
var p = [];
|
|
431
503
|
if (s !== null) {
|
|
432
|
-
for (var
|
|
433
|
-
|
|
434
|
-
if (e.pos !=
|
|
504
|
+
for (var v = h + s; e.pos < v; )
|
|
505
|
+
p[p.length] = r.decode(e);
|
|
506
|
+
if (e.pos != v)
|
|
435
507
|
throw new Error("Content size is not correct for container starting at offset " + h);
|
|
436
508
|
} else
|
|
437
509
|
try {
|
|
@@ -439,33 +511,33 @@ var rt = (
|
|
|
439
511
|
var y = r.decode(e);
|
|
440
512
|
if (y.tag.isEOC())
|
|
441
513
|
break;
|
|
442
|
-
|
|
514
|
+
p[p.length] = y;
|
|
443
515
|
}
|
|
444
516
|
s = h - e.pos;
|
|
445
|
-
} catch (
|
|
446
|
-
throw new Error("Exception while decoding undefined length content: " +
|
|
517
|
+
} catch (S) {
|
|
518
|
+
throw new Error("Exception while decoding undefined length content: " + S);
|
|
447
519
|
}
|
|
448
|
-
return
|
|
520
|
+
return p;
|
|
449
521
|
};
|
|
450
522
|
if (n.tagConstructed)
|
|
451
|
-
|
|
523
|
+
a = f();
|
|
452
524
|
else if (n.isUniversal() && (n.tagNumber == 3 || n.tagNumber == 4))
|
|
453
525
|
try {
|
|
454
526
|
if (n.tagNumber == 3 && e.get() != 0)
|
|
455
527
|
throw new Error("BIT STRINGs with unused bits cannot encapsulate.");
|
|
456
|
-
|
|
457
|
-
for (var l = 0; l <
|
|
458
|
-
if (
|
|
528
|
+
a = f();
|
|
529
|
+
for (var l = 0; l < a.length; ++l)
|
|
530
|
+
if (a[l].tag.isEOC())
|
|
459
531
|
throw new Error("EOC is not supposed to be actual content.");
|
|
460
532
|
} catch {
|
|
461
|
-
|
|
533
|
+
a = null;
|
|
462
534
|
}
|
|
463
|
-
if (
|
|
535
|
+
if (a === null) {
|
|
464
536
|
if (s === null)
|
|
465
537
|
throw new Error("We can't skip over an invalid tag with undefined length at offset " + h);
|
|
466
538
|
e.pos = h + Math.abs(s);
|
|
467
539
|
}
|
|
468
|
-
return new r(i, o, s, n,
|
|
540
|
+
return new r(i, o, s, n, a);
|
|
469
541
|
}, r;
|
|
470
542
|
}()
|
|
471
543
|
), pt = (
|
|
@@ -474,7 +546,7 @@ var rt = (
|
|
|
474
546
|
function r(t) {
|
|
475
547
|
var e = t.get();
|
|
476
548
|
if (this.tagClass = e >> 6, this.tagConstructed = (e & 32) !== 0, this.tagNumber = e & 31, this.tagNumber == 31) {
|
|
477
|
-
var i = new
|
|
549
|
+
var i = new U();
|
|
478
550
|
do
|
|
479
551
|
e = t.get(), i.mulAdd(128, e & 127);
|
|
480
552
|
while (e & 128);
|
|
@@ -487,7 +559,7 @@ var rt = (
|
|
|
487
559
|
return this.tagClass === 0 && this.tagNumber === 0;
|
|
488
560
|
}, r;
|
|
489
561
|
}()
|
|
490
|
-
),
|
|
562
|
+
), V, Ut = 244837814094590, gt = (Ut & 16777215) == 15715070, w = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], jt = (1 << 26) / w[w.length - 1], c = (
|
|
491
563
|
/** @class */
|
|
492
564
|
function() {
|
|
493
565
|
function r(t, e, i) {
|
|
@@ -509,13 +581,13 @@ var rt = (
|
|
|
509
581
|
e = 2;
|
|
510
582
|
else
|
|
511
583
|
return this.toRadix(t);
|
|
512
|
-
var i = (1 << e) - 1, n, s = !1, h = "", o = this.t,
|
|
584
|
+
var i = (1 << e) - 1, n, s = !1, h = "", o = this.t, a = this.DB - o * this.DB % e;
|
|
513
585
|
if (o-- > 0)
|
|
514
|
-
for (
|
|
515
|
-
|
|
586
|
+
for (a < this.DB && (n = this[o] >> a) > 0 && (s = !0, h = A(n)); o >= 0; )
|
|
587
|
+
a < e ? (n = (this[o] & (1 << a) - 1) << e - a, n |= this[--o] >> (a += this.DB - e)) : (n = this[o] >> (a -= e) & i, a <= 0 && (a += this.DB, --o)), n > 0 && (s = !0), s && (h += A(n));
|
|
516
588
|
return s ? h : "0";
|
|
517
589
|
}, r.prototype.negate = function() {
|
|
518
|
-
var t =
|
|
590
|
+
var t = g();
|
|
519
591
|
return r.ZERO.subTo(this, t), t;
|
|
520
592
|
}, r.prototype.abs = function() {
|
|
521
593
|
return this.s < 0 ? this.negate() : this;
|
|
@@ -533,13 +605,13 @@ var rt = (
|
|
|
533
605
|
}, r.prototype.bitLength = function() {
|
|
534
606
|
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + G(this[this.t - 1] ^ this.s & this.DM);
|
|
535
607
|
}, r.prototype.mod = function(t) {
|
|
536
|
-
var e =
|
|
608
|
+
var e = g();
|
|
537
609
|
return this.abs().divRemTo(t, null, e), this.s < 0 && e.compareTo(r.ZERO) > 0 && t.subTo(e, e), e;
|
|
538
610
|
}, r.prototype.modPowInt = function(t, e) {
|
|
539
611
|
var i;
|
|
540
612
|
return t < 256 || e.isEven() ? i = new vt(e) : i = new dt(e), this.exp(t, i);
|
|
541
613
|
}, r.prototype.clone = function() {
|
|
542
|
-
var t =
|
|
614
|
+
var t = g();
|
|
543
615
|
return this.copyTo(t), t;
|
|
544
616
|
}, r.prototype.intValue = function() {
|
|
545
617
|
if (this.s < 0) {
|
|
@@ -575,35 +647,35 @@ var rt = (
|
|
|
575
647
|
}, r.prototype.max = function(t) {
|
|
576
648
|
return this.compareTo(t) > 0 ? this : t;
|
|
577
649
|
}, r.prototype.and = function(t) {
|
|
578
|
-
var e =
|
|
579
|
-
return this.bitwiseTo(t,
|
|
650
|
+
var e = g();
|
|
651
|
+
return this.bitwiseTo(t, qt, e), e;
|
|
580
652
|
}, r.prototype.or = function(t) {
|
|
581
|
-
var e =
|
|
653
|
+
var e = g();
|
|
582
654
|
return this.bitwiseTo(t, Z, e), e;
|
|
583
655
|
}, r.prototype.xor = function(t) {
|
|
584
|
-
var e =
|
|
585
|
-
return this.bitwiseTo(t,
|
|
656
|
+
var e = g();
|
|
657
|
+
return this.bitwiseTo(t, ft, e), e;
|
|
586
658
|
}, r.prototype.andNot = function(t) {
|
|
587
|
-
var e =
|
|
659
|
+
var e = g();
|
|
588
660
|
return this.bitwiseTo(t, lt, e), e;
|
|
589
661
|
}, r.prototype.not = function() {
|
|
590
|
-
for (var t =
|
|
662
|
+
for (var t = g(), e = 0; e < this.t; ++e)
|
|
591
663
|
t[e] = this.DM & ~this[e];
|
|
592
664
|
return t.t = this.t, t.s = ~this.s, t;
|
|
593
665
|
}, r.prototype.shiftLeft = function(t) {
|
|
594
|
-
var e =
|
|
666
|
+
var e = g();
|
|
595
667
|
return t < 0 ? this.rShiftTo(-t, e) : this.lShiftTo(t, e), e;
|
|
596
668
|
}, r.prototype.shiftRight = function(t) {
|
|
597
|
-
var e =
|
|
669
|
+
var e = g();
|
|
598
670
|
return t < 0 ? this.lShiftTo(-t, e) : this.rShiftTo(t, e), e;
|
|
599
671
|
}, r.prototype.getLowestSetBit = function() {
|
|
600
672
|
for (var t = 0; t < this.t; ++t)
|
|
601
673
|
if (this[t] != 0)
|
|
602
|
-
return t * this.DB +
|
|
674
|
+
return t * this.DB + Ht(this[t]);
|
|
603
675
|
return this.s < 0 ? this.t * this.DB : -1;
|
|
604
676
|
}, r.prototype.bitCount = function() {
|
|
605
677
|
for (var t = 0, e = this.s & this.DM, i = 0; i < this.t; ++i)
|
|
606
|
-
t +=
|
|
678
|
+
t += Ct(this[i] ^ e);
|
|
607
679
|
return t;
|
|
608
680
|
}, r.prototype.testBit = function(t) {
|
|
609
681
|
var e = Math.floor(t / this.DB);
|
|
@@ -613,73 +685,73 @@ var rt = (
|
|
|
613
685
|
}, r.prototype.clearBit = function(t) {
|
|
614
686
|
return this.changeBit(t, lt);
|
|
615
687
|
}, r.prototype.flipBit = function(t) {
|
|
616
|
-
return this.changeBit(t,
|
|
688
|
+
return this.changeBit(t, ft);
|
|
617
689
|
}, r.prototype.add = function(t) {
|
|
618
|
-
var e =
|
|
690
|
+
var e = g();
|
|
619
691
|
return this.addTo(t, e), e;
|
|
620
692
|
}, r.prototype.subtract = function(t) {
|
|
621
|
-
var e =
|
|
693
|
+
var e = g();
|
|
622
694
|
return this.subTo(t, e), e;
|
|
623
695
|
}, r.prototype.multiply = function(t) {
|
|
624
|
-
var e =
|
|
696
|
+
var e = g();
|
|
625
697
|
return this.multiplyTo(t, e), e;
|
|
626
698
|
}, r.prototype.divide = function(t) {
|
|
627
|
-
var e =
|
|
699
|
+
var e = g();
|
|
628
700
|
return this.divRemTo(t, e, null), e;
|
|
629
701
|
}, r.prototype.remainder = function(t) {
|
|
630
|
-
var e =
|
|
702
|
+
var e = g();
|
|
631
703
|
return this.divRemTo(t, null, e), e;
|
|
632
704
|
}, r.prototype.divideAndRemainder = function(t) {
|
|
633
|
-
var e =
|
|
705
|
+
var e = g(), i = g();
|
|
634
706
|
return this.divRemTo(t, e, i), [e, i];
|
|
635
707
|
}, r.prototype.modPow = function(t, e) {
|
|
636
|
-
var i = t.bitLength(), n, s =
|
|
708
|
+
var i = t.bitLength(), n, s = I(1), h;
|
|
637
709
|
if (i <= 0)
|
|
638
710
|
return s;
|
|
639
|
-
i < 18 ? n = 1 : i < 48 ? n = 3 : i < 144 ? n = 4 : i < 768 ? n = 5 : n = 6, i < 8 ? h = new vt(e) : e.isEven() ? h = new
|
|
640
|
-
var o = [],
|
|
711
|
+
i < 18 ? n = 1 : i < 48 ? n = 3 : i < 144 ? n = 4 : i < 768 ? n = 5 : n = 6, i < 8 ? h = new vt(e) : e.isEven() ? h = new Zt(e) : h = new dt(e);
|
|
712
|
+
var o = [], a = 3, f = n - 1, l = (1 << n) - 1;
|
|
641
713
|
if (o[1] = h.convert(this), n > 1) {
|
|
642
|
-
var
|
|
643
|
-
for (h.sqrTo(o[1],
|
|
644
|
-
o[
|
|
714
|
+
var p = g();
|
|
715
|
+
for (h.sqrTo(o[1], p); a <= l; )
|
|
716
|
+
o[a] = g(), h.mulTo(p, o[a - 2], o[a]), a += 2;
|
|
645
717
|
}
|
|
646
|
-
var
|
|
647
|
-
for (i = G(t[
|
|
648
|
-
for (i >=
|
|
649
|
-
y >>= 1, --
|
|
650
|
-
if ((i -=
|
|
651
|
-
o[y].copyTo(s),
|
|
718
|
+
var v = t.t - 1, y, S = !0, b = g(), E;
|
|
719
|
+
for (i = G(t[v]) - 1; v >= 0; ) {
|
|
720
|
+
for (i >= f ? y = t[v] >> i - f & l : (y = (t[v] & (1 << i + 1) - 1) << f - i, v > 0 && (y |= t[v - 1] >> this.DB + i - f)), a = n; (y & 1) == 0; )
|
|
721
|
+
y >>= 1, --a;
|
|
722
|
+
if ((i -= a) < 0 && (i += this.DB, --v), S)
|
|
723
|
+
o[y].copyTo(s), S = !1;
|
|
652
724
|
else {
|
|
653
|
-
for (;
|
|
654
|
-
h.sqrTo(s, b), h.sqrTo(b, s),
|
|
655
|
-
|
|
725
|
+
for (; a > 1; )
|
|
726
|
+
h.sqrTo(s, b), h.sqrTo(b, s), a -= 2;
|
|
727
|
+
a > 0 ? h.sqrTo(s, b) : (E = s, s = b, b = E), h.mulTo(b, o[y], s);
|
|
656
728
|
}
|
|
657
|
-
for (;
|
|
658
|
-
h.sqrTo(s, b), E = s, s = b, b = E, --i < 0 && (i = this.DB - 1, --
|
|
729
|
+
for (; v >= 0 && (t[v] & 1 << i) == 0; )
|
|
730
|
+
h.sqrTo(s, b), E = s, s = b, b = E, --i < 0 && (i = this.DB - 1, --v);
|
|
659
731
|
}
|
|
660
732
|
return h.revert(s);
|
|
661
733
|
}, r.prototype.modInverse = function(t) {
|
|
662
734
|
var e = t.isEven();
|
|
663
735
|
if (this.isEven() && e || t.signum() == 0)
|
|
664
736
|
return r.ZERO;
|
|
665
|
-
for (var i = t.clone(), n = this.clone(), s =
|
|
737
|
+
for (var i = t.clone(), n = this.clone(), s = I(1), h = I(0), o = I(0), a = I(1); i.signum() != 0; ) {
|
|
666
738
|
for (; i.isEven(); )
|
|
667
739
|
i.rShiftTo(1, i), e ? ((!s.isEven() || !h.isEven()) && (s.addTo(this, s), h.subTo(t, h)), s.rShiftTo(1, s)) : h.isEven() || h.subTo(t, h), h.rShiftTo(1, h);
|
|
668
740
|
for (; n.isEven(); )
|
|
669
|
-
n.rShiftTo(1, n), e ? ((!o.isEven() || !
|
|
670
|
-
i.compareTo(n) >= 0 ? (i.subTo(n, i), e && s.subTo(o, s), h.subTo(
|
|
741
|
+
n.rShiftTo(1, n), e ? ((!o.isEven() || !a.isEven()) && (o.addTo(this, o), a.subTo(t, a)), o.rShiftTo(1, o)) : a.isEven() || a.subTo(t, a), a.rShiftTo(1, a);
|
|
742
|
+
i.compareTo(n) >= 0 ? (i.subTo(n, i), e && s.subTo(o, s), h.subTo(a, h)) : (n.subTo(i, n), e && o.subTo(s, o), a.subTo(h, a));
|
|
671
743
|
}
|
|
672
744
|
if (n.compareTo(r.ONE) != 0)
|
|
673
745
|
return r.ZERO;
|
|
674
|
-
if (
|
|
675
|
-
return
|
|
676
|
-
if (
|
|
677
|
-
|
|
746
|
+
if (a.compareTo(t) >= 0)
|
|
747
|
+
return a.subtract(t);
|
|
748
|
+
if (a.signum() < 0)
|
|
749
|
+
a.addTo(t, a);
|
|
678
750
|
else
|
|
679
|
-
return
|
|
680
|
-
return
|
|
751
|
+
return a;
|
|
752
|
+
return a.signum() < 0 ? a.add(t) : a;
|
|
681
753
|
}, r.prototype.pow = function(t) {
|
|
682
|
-
return this.exp(t, new
|
|
754
|
+
return this.exp(t, new zt());
|
|
683
755
|
}, r.prototype.gcd = function(t) {
|
|
684
756
|
var e = this.s < 0 ? this.negate() : this.clone(), i = t.s < 0 ? t.negate() : t.clone();
|
|
685
757
|
if (e.compareTo(i) < 0) {
|
|
@@ -703,7 +775,7 @@ var rt = (
|
|
|
703
775
|
if (i.isEven())
|
|
704
776
|
return !1;
|
|
705
777
|
for (e = 1; e < w.length; ) {
|
|
706
|
-
for (var n = w[e], s = e + 1; s < w.length && n <
|
|
778
|
+
for (var n = w[e], s = e + 1; s < w.length && n < jt; )
|
|
707
779
|
n *= w[s++];
|
|
708
780
|
for (n = i.modInt(n); e < s; )
|
|
709
781
|
if (n % w[e++] == 0)
|
|
@@ -759,10 +831,10 @@ var rt = (
|
|
|
759
831
|
e[i - t] = this[i];
|
|
760
832
|
e.t = Math.max(this.t - t, 0), e.s = this.s;
|
|
761
833
|
}, r.prototype.lShiftTo = function(t, e) {
|
|
762
|
-
for (var i = t % this.DB, n = this.DB - i, s = (1 << n) - 1, h = Math.floor(t / this.DB), o = this.s << i & this.DM,
|
|
763
|
-
e[
|
|
764
|
-
for (var
|
|
765
|
-
e[
|
|
834
|
+
for (var i = t % this.DB, n = this.DB - i, s = (1 << n) - 1, h = Math.floor(t / this.DB), o = this.s << i & this.DM, a = this.t - 1; a >= 0; --a)
|
|
835
|
+
e[a + h + 1] = this[a] >> n | o, o = (this[a] & s) << i;
|
|
836
|
+
for (var a = h - 1; a >= 0; --a)
|
|
837
|
+
e[a] = 0;
|
|
766
838
|
e[h] = o, e.t = this.t + h + 1, e.s = this.s, e.clamp();
|
|
767
839
|
}, r.prototype.rShiftTo = function(t, e) {
|
|
768
840
|
e.s = this.s;
|
|
@@ -812,21 +884,21 @@ var rt = (
|
|
|
812
884
|
e != null && e.fromInt(0), i != null && this.copyTo(i);
|
|
813
885
|
return;
|
|
814
886
|
}
|
|
815
|
-
i == null && (i =
|
|
816
|
-
var h =
|
|
817
|
-
|
|
818
|
-
var l = h.t,
|
|
819
|
-
if (
|
|
820
|
-
var
|
|
887
|
+
i == null && (i = g());
|
|
888
|
+
var h = g(), o = this.s, a = t.s, f = this.DB - G(n[n.t - 1]);
|
|
889
|
+
f > 0 ? (n.lShiftTo(f, h), s.lShiftTo(f, i)) : (n.copyTo(h), s.copyTo(i));
|
|
890
|
+
var l = h.t, p = h[l - 1];
|
|
891
|
+
if (p != 0) {
|
|
892
|
+
var v = p * (1 << this.F1) + (l > 1 ? h[l - 2] >> this.F2 : 0), y = this.FV / v, S = (1 << this.F1) / v, b = 1 << this.F2, E = i.t, M = E - l, B = e ?? g();
|
|
821
893
|
for (h.dlShiftTo(M, B), i.compareTo(B) >= 0 && (i[i.t++] = 1, i.subTo(B, i)), r.ONE.dlShiftTo(l, B), B.subTo(h, h); h.t < l; )
|
|
822
894
|
h[h.t++] = 0;
|
|
823
895
|
for (; --M >= 0; ) {
|
|
824
|
-
var
|
|
825
|
-
if ((i[E] += h.am(0,
|
|
826
|
-
for (h.dlShiftTo(M, B), i.subTo(B, i); i[E] < --
|
|
896
|
+
var K = i[--E] == p ? this.DM : Math.floor(i[E] * y + (i[E - 1] + b) * S);
|
|
897
|
+
if ((i[E] += h.am(0, K, i, M, 0, l)) < K)
|
|
898
|
+
for (h.dlShiftTo(M, B), i.subTo(B, i); i[E] < --K; )
|
|
827
899
|
i.subTo(B, i);
|
|
828
900
|
}
|
|
829
|
-
e != null && (i.drShiftTo(l, e), o !=
|
|
901
|
+
e != null && (i.drShiftTo(l, e), o != a && r.ZERO.subTo(e, e)), i.t = l, i.clamp(), f > 0 && i.rShiftTo(f, i), o < 0 && r.ZERO.subTo(i, i);
|
|
830
902
|
}
|
|
831
903
|
}
|
|
832
904
|
}, r.prototype.invDigit = function() {
|
|
@@ -842,7 +914,7 @@ var rt = (
|
|
|
842
914
|
}, r.prototype.exp = function(t, e) {
|
|
843
915
|
if (t > 4294967295 || t < 1)
|
|
844
916
|
return r.ONE;
|
|
845
|
-
var i =
|
|
917
|
+
var i = g(), n = g(), s = e.convert(this), h = G(t) - 1;
|
|
846
918
|
for (s.copyTo(i); --h >= 0; )
|
|
847
919
|
if (e.sqrTo(i, n), (t & 1 << h) > 0)
|
|
848
920
|
e.mulTo(n, s, i);
|
|
@@ -856,19 +928,19 @@ var rt = (
|
|
|
856
928
|
}, r.prototype.toRadix = function(t) {
|
|
857
929
|
if (t == null && (t = 10), this.signum() == 0 || t < 2 || t > 36)
|
|
858
930
|
return "0";
|
|
859
|
-
var e = this.chunkSize(t), i = Math.pow(t, e), n =
|
|
931
|
+
var e = this.chunkSize(t), i = Math.pow(t, e), n = I(i), s = g(), h = g(), o = "";
|
|
860
932
|
for (this.divRemTo(n, s, h); s.signum() > 0; )
|
|
861
933
|
o = (i + h.intValue()).toString(t).substr(1) + o, s.divRemTo(n, s, h);
|
|
862
934
|
return h.intValue().toString(t) + o;
|
|
863
935
|
}, r.prototype.fromRadix = function(t, e) {
|
|
864
936
|
this.fromInt(0), e == null && (e = 10);
|
|
865
|
-
for (var i = this.chunkSize(e), n = Math.pow(e, i), s = !1, h = 0, o = 0,
|
|
866
|
-
var
|
|
867
|
-
if (
|
|
868
|
-
t.charAt(
|
|
937
|
+
for (var i = this.chunkSize(e), n = Math.pow(e, i), s = !1, h = 0, o = 0, a = 0; a < t.length; ++a) {
|
|
938
|
+
var f = St(t, a);
|
|
939
|
+
if (f < 0) {
|
|
940
|
+
t.charAt(a) == "-" && this.signum() == 0 && (s = !0);
|
|
869
941
|
continue;
|
|
870
942
|
}
|
|
871
|
-
o = e * o +
|
|
943
|
+
o = e * o + f, ++h >= i && (this.dMultiply(n), this.dAddOffset(o, 0), h = 0, o = 0);
|
|
872
944
|
}
|
|
873
945
|
h > 0 && (this.dMultiply(Math.pow(e, h)), this.dAddOffset(o, 0)), s && r.ZERO.subTo(this, this);
|
|
874
946
|
}, r.prototype.fromNumber = function(t, e, i) {
|
|
@@ -955,11 +1027,11 @@ var rt = (
|
|
|
955
1027
|
return !1;
|
|
956
1028
|
var n = e.shiftRight(i);
|
|
957
1029
|
t = t + 1 >> 1, t > w.length && (t = w.length);
|
|
958
|
-
for (var s =
|
|
1030
|
+
for (var s = g(), h = 0; h < t; ++h) {
|
|
959
1031
|
s.fromInt(w[Math.floor(Math.random() * w.length)]);
|
|
960
1032
|
var o = s.modPow(n, this);
|
|
961
1033
|
if (o.compareTo(r.ONE) != 0 && o.compareTo(e) != 0) {
|
|
962
|
-
for (var
|
|
1034
|
+
for (var a = 1; a++ < i && o.compareTo(e) != 0; )
|
|
963
1035
|
if (o = o.modPowInt(2, this), o.compareTo(r.ONE) == 0)
|
|
964
1036
|
return !1;
|
|
965
1037
|
if (o.compareTo(e) != 0)
|
|
@@ -968,7 +1040,7 @@ var rt = (
|
|
|
968
1040
|
}
|
|
969
1041
|
return !0;
|
|
970
1042
|
}, r.prototype.square = function() {
|
|
971
|
-
var t =
|
|
1043
|
+
var t = g();
|
|
972
1044
|
return this.squareTo(t), t;
|
|
973
1045
|
}, r.prototype.gcda = function(t, e) {
|
|
974
1046
|
var i = this.s < 0 ? this.negate() : this.clone(), n = t.s < 0 ? t.negate() : t.clone();
|
|
@@ -982,12 +1054,12 @@ var rt = (
|
|
|
982
1054
|
return;
|
|
983
1055
|
}
|
|
984
1056
|
h < o && (o = h), o > 0 && (i.rShiftTo(o, i), n.rShiftTo(o, n));
|
|
985
|
-
var
|
|
986
|
-
(h = i.getLowestSetBit()) > 0 && i.rShiftTo(h, i), (h = n.getLowestSetBit()) > 0 && n.rShiftTo(h, n), i.compareTo(n) >= 0 ? (i.subTo(n, i), i.rShiftTo(1, i)) : (n.subTo(i, n), n.rShiftTo(1, n)), i.signum() > 0 ? setTimeout(
|
|
1057
|
+
var a = function() {
|
|
1058
|
+
(h = i.getLowestSetBit()) > 0 && i.rShiftTo(h, i), (h = n.getLowestSetBit()) > 0 && n.rShiftTo(h, n), i.compareTo(n) >= 0 ? (i.subTo(n, i), i.rShiftTo(1, i)) : (n.subTo(i, n), n.rShiftTo(1, n)), i.signum() > 0 ? setTimeout(a, 0) : (o > 0 && n.lShiftTo(o, n), setTimeout(function() {
|
|
987
1059
|
e(n);
|
|
988
1060
|
}, 0));
|
|
989
1061
|
};
|
|
990
|
-
setTimeout(
|
|
1062
|
+
setTimeout(a, 10);
|
|
991
1063
|
}, r.prototype.fromNumberAsync = function(t, e, i, n) {
|
|
992
1064
|
if (typeof e == "number")
|
|
993
1065
|
if (t < 2)
|
|
@@ -1002,12 +1074,12 @@ var rt = (
|
|
|
1002
1074
|
setTimeout(h, 0);
|
|
1003
1075
|
}
|
|
1004
1076
|
else {
|
|
1005
|
-
var o = [],
|
|
1006
|
-
o.length = (t >> 3) + 1, e.nextBytes(o),
|
|
1077
|
+
var o = [], a = t & 7;
|
|
1078
|
+
o.length = (t >> 3) + 1, e.nextBytes(o), a > 0 ? o[0] &= (1 << a) - 1 : o[0] = 0, this.fromString(o, 256);
|
|
1007
1079
|
}
|
|
1008
1080
|
}, r;
|
|
1009
1081
|
}()
|
|
1010
|
-
),
|
|
1082
|
+
), zt = (
|
|
1011
1083
|
/** @class */
|
|
1012
1084
|
function() {
|
|
1013
1085
|
function r() {
|
|
@@ -1047,10 +1119,10 @@ var rt = (
|
|
|
1047
1119
|
this.m = t, this.mp = t.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t;
|
|
1048
1120
|
}
|
|
1049
1121
|
return r.prototype.convert = function(t) {
|
|
1050
|
-
var e =
|
|
1122
|
+
var e = g();
|
|
1051
1123
|
return t.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), t.s < 0 && e.compareTo(c.ZERO) > 0 && this.m.subTo(e, e), e;
|
|
1052
1124
|
}, r.prototype.revert = function(t) {
|
|
1053
|
-
var e =
|
|
1125
|
+
var e = g();
|
|
1054
1126
|
return t.copyTo(e), this.reduce(e), e;
|
|
1055
1127
|
}, r.prototype.reduce = function(t) {
|
|
1056
1128
|
for (; t.t <= this.mt2; )
|
|
@@ -1067,18 +1139,18 @@ var rt = (
|
|
|
1067
1139
|
t.squareTo(e), this.reduce(e);
|
|
1068
1140
|
}, r;
|
|
1069
1141
|
}()
|
|
1070
|
-
),
|
|
1142
|
+
), Zt = (
|
|
1071
1143
|
/** @class */
|
|
1072
1144
|
function() {
|
|
1073
1145
|
function r(t) {
|
|
1074
|
-
this.m = t, this.r2 =
|
|
1146
|
+
this.m = t, this.r2 = g(), this.q3 = g(), c.ONE.dlShiftTo(2 * t.t, this.r2), this.mu = this.r2.divide(t);
|
|
1075
1147
|
}
|
|
1076
1148
|
return r.prototype.convert = function(t) {
|
|
1077
1149
|
if (t.s < 0 || t.t > 2 * this.m.t)
|
|
1078
1150
|
return t.mod(this.m);
|
|
1079
1151
|
if (t.compareTo(this.m) < 0)
|
|
1080
1152
|
return t;
|
|
1081
|
-
var e =
|
|
1153
|
+
var e = g();
|
|
1082
1154
|
return t.copyTo(e), this.reduce(e), e;
|
|
1083
1155
|
}, r.prototype.revert = function(t) {
|
|
1084
1156
|
return t;
|
|
@@ -1094,64 +1166,64 @@ var rt = (
|
|
|
1094
1166
|
}, r;
|
|
1095
1167
|
}()
|
|
1096
1168
|
);
|
|
1097
|
-
function
|
|
1169
|
+
function g() {
|
|
1098
1170
|
return new c(null);
|
|
1099
1171
|
}
|
|
1100
|
-
function
|
|
1172
|
+
function m(r, t) {
|
|
1101
1173
|
return new c(r, t);
|
|
1102
1174
|
}
|
|
1103
1175
|
var yt = typeof navigator < "u";
|
|
1104
1176
|
yt && gt && navigator.appName == "Microsoft Internet Explorer" ? (c.prototype.am = function(t, e, i, n, s, h) {
|
|
1105
|
-
for (var o = e & 32767,
|
|
1106
|
-
var
|
|
1107
|
-
|
|
1177
|
+
for (var o = e & 32767, a = e >> 15; --h >= 0; ) {
|
|
1178
|
+
var f = this[t] & 32767, l = this[t++] >> 15, p = a * f + l * o;
|
|
1179
|
+
f = o * f + ((p & 32767) << 15) + i[n] + (s & 1073741823), s = (f >>> 30) + (p >>> 15) + a * l + (s >>> 30), i[n++] = f & 1073741823;
|
|
1108
1180
|
}
|
|
1109
1181
|
return s;
|
|
1110
|
-
},
|
|
1182
|
+
}, V = 30) : yt && gt && navigator.appName != "Netscape" ? (c.prototype.am = function(t, e, i, n, s, h) {
|
|
1111
1183
|
for (; --h >= 0; ) {
|
|
1112
1184
|
var o = e * this[t++] + i[n] + s;
|
|
1113
1185
|
s = Math.floor(o / 67108864), i[n++] = o & 67108863;
|
|
1114
1186
|
}
|
|
1115
1187
|
return s;
|
|
1116
|
-
},
|
|
1117
|
-
for (var o = e & 16383,
|
|
1118
|
-
var
|
|
1119
|
-
|
|
1188
|
+
}, V = 26) : (c.prototype.am = function(t, e, i, n, s, h) {
|
|
1189
|
+
for (var o = e & 16383, a = e >> 14; --h >= 0; ) {
|
|
1190
|
+
var f = this[t] & 16383, l = this[t++] >> 14, p = a * f + l * o;
|
|
1191
|
+
f = o * f + ((p & 16383) << 14) + i[n] + s, s = (f >> 28) + (p >> 14) + a * l, i[n++] = f & 268435455;
|
|
1120
1192
|
}
|
|
1121
1193
|
return s;
|
|
1122
|
-
},
|
|
1123
|
-
c.prototype.DB =
|
|
1124
|
-
c.prototype.DM = (1 <<
|
|
1125
|
-
c.prototype.DV = 1 <<
|
|
1126
|
-
var
|
|
1127
|
-
c.prototype.FV = Math.pow(2,
|
|
1128
|
-
c.prototype.F1 =
|
|
1129
|
-
c.prototype.F2 = 2 *
|
|
1130
|
-
var tt = [],
|
|
1131
|
-
|
|
1194
|
+
}, V = 28);
|
|
1195
|
+
c.prototype.DB = V;
|
|
1196
|
+
c.prototype.DM = (1 << V) - 1;
|
|
1197
|
+
c.prototype.DV = 1 << V;
|
|
1198
|
+
var at = 52;
|
|
1199
|
+
c.prototype.FV = Math.pow(2, at);
|
|
1200
|
+
c.prototype.F1 = at - V;
|
|
1201
|
+
c.prototype.F2 = 2 * V - at;
|
|
1202
|
+
var tt = [], F, D;
|
|
1203
|
+
F = 48;
|
|
1132
1204
|
for (D = 0; D <= 9; ++D)
|
|
1133
|
-
tt[
|
|
1134
|
-
|
|
1205
|
+
tt[F++] = D;
|
|
1206
|
+
F = 97;
|
|
1135
1207
|
for (D = 10; D < 36; ++D)
|
|
1136
|
-
tt[
|
|
1137
|
-
|
|
1208
|
+
tt[F++] = D;
|
|
1209
|
+
F = 65;
|
|
1138
1210
|
for (D = 10; D < 36; ++D)
|
|
1139
|
-
tt[
|
|
1211
|
+
tt[F++] = D;
|
|
1140
1212
|
function St(r, t) {
|
|
1141
1213
|
var e = tt[r.charCodeAt(t)];
|
|
1142
1214
|
return e ?? -1;
|
|
1143
1215
|
}
|
|
1144
|
-
function
|
|
1145
|
-
var t =
|
|
1216
|
+
function I(r) {
|
|
1217
|
+
var t = g();
|
|
1146
1218
|
return t.fromInt(r), t;
|
|
1147
1219
|
}
|
|
1148
1220
|
function G(r) {
|
|
1149
1221
|
var t = 1, e;
|
|
1150
1222
|
return (e = r >>> 16) != 0 && (r = e, t += 16), (e = r >> 8) != 0 && (r = e, t += 8), (e = r >> 4) != 0 && (r = e, t += 4), (e = r >> 2) != 0 && (r = e, t += 2), (e = r >> 1) != 0 && (r = e, t += 1), t;
|
|
1151
1223
|
}
|
|
1152
|
-
c.ZERO =
|
|
1153
|
-
c.ONE =
|
|
1154
|
-
var
|
|
1224
|
+
c.ZERO = I(0);
|
|
1225
|
+
c.ONE = I(1);
|
|
1226
|
+
var Gt = (
|
|
1155
1227
|
/** @class */
|
|
1156
1228
|
function() {
|
|
1157
1229
|
function r() {
|
|
@@ -1170,17 +1242,17 @@ var Ht = (
|
|
|
1170
1242
|
}, r;
|
|
1171
1243
|
}()
|
|
1172
1244
|
);
|
|
1173
|
-
function
|
|
1174
|
-
return new
|
|
1245
|
+
function $t() {
|
|
1246
|
+
return new Gt();
|
|
1175
1247
|
}
|
|
1176
|
-
var wt = 256, $,
|
|
1177
|
-
if (
|
|
1178
|
-
|
|
1248
|
+
var wt = 256, $, O = null, R;
|
|
1249
|
+
if (O == null) {
|
|
1250
|
+
O = [], R = 0;
|
|
1179
1251
|
var J = void 0;
|
|
1180
1252
|
if (typeof window < "u" && window.crypto && window.crypto.getRandomValues) {
|
|
1181
1253
|
var nt = new Uint32Array(256);
|
|
1182
1254
|
for (window.crypto.getRandomValues(nt), J = 0; J < nt.length; ++J)
|
|
1183
|
-
|
|
1255
|
+
O[R++] = nt[J] & 255;
|
|
1184
1256
|
}
|
|
1185
1257
|
var Y = 0, X = function(r) {
|
|
1186
1258
|
if (Y = Y || 0, Y >= 256 || R >= wt) {
|
|
@@ -1189,20 +1261,20 @@ if (V == null) {
|
|
|
1189
1261
|
}
|
|
1190
1262
|
try {
|
|
1191
1263
|
var t = r.x + r.y;
|
|
1192
|
-
|
|
1264
|
+
O[R++] = t & 255, Y += 1;
|
|
1193
1265
|
} catch {
|
|
1194
1266
|
}
|
|
1195
1267
|
};
|
|
1196
1268
|
typeof window < "u" && (window.addEventListener ? window.addEventListener("mousemove", X, !1) : window.attachEvent && window.attachEvent("onmousemove", X));
|
|
1197
1269
|
}
|
|
1198
|
-
function
|
|
1270
|
+
function Jt() {
|
|
1199
1271
|
if ($ == null) {
|
|
1200
|
-
for ($ =
|
|
1272
|
+
for ($ = $t(); R < wt; ) {
|
|
1201
1273
|
var r = Math.floor(65536 * Math.random());
|
|
1202
|
-
|
|
1274
|
+
O[R++] = r & 255;
|
|
1203
1275
|
}
|
|
1204
|
-
for ($.init(
|
|
1205
|
-
|
|
1276
|
+
for ($.init(O), R = 0; R < O.length; ++R)
|
|
1277
|
+
O[R] = 0;
|
|
1206
1278
|
R = 0;
|
|
1207
1279
|
}
|
|
1208
1280
|
return $.next();
|
|
@@ -1214,19 +1286,19 @@ var ht = (
|
|
|
1214
1286
|
}
|
|
1215
1287
|
return r.prototype.nextBytes = function(t) {
|
|
1216
1288
|
for (var e = 0; e < t.length; ++e)
|
|
1217
|
-
t[e] =
|
|
1289
|
+
t[e] = Jt();
|
|
1218
1290
|
}, r;
|
|
1219
1291
|
}()
|
|
1220
1292
|
);
|
|
1221
|
-
function
|
|
1293
|
+
function Yt(r, t) {
|
|
1222
1294
|
if (t < r.length + 22)
|
|
1223
1295
|
return console.error("Message too long for RSA"), null;
|
|
1224
1296
|
for (var e = t - r.length - 6, i = "", n = 0; n < e; n += 2)
|
|
1225
1297
|
i += "ff";
|
|
1226
1298
|
var s = "0001" + i + "00" + r;
|
|
1227
|
-
return
|
|
1299
|
+
return m(s, 16);
|
|
1228
1300
|
}
|
|
1229
|
-
function
|
|
1301
|
+
function Xt(r, t) {
|
|
1230
1302
|
if (t < r.length + 11)
|
|
1231
1303
|
return console.error("Message too long for RSA"), null;
|
|
1232
1304
|
for (var e = [], i = r.length - 1; i >= 0 && t > 0; ) {
|
|
@@ -1241,7 +1313,7 @@ function Kt(r, t) {
|
|
|
1241
1313
|
}
|
|
1242
1314
|
return e[--t] = 2, e[--t] = 0, new c(e);
|
|
1243
1315
|
}
|
|
1244
|
-
var
|
|
1316
|
+
var Qt = (
|
|
1245
1317
|
/** @class */
|
|
1246
1318
|
function() {
|
|
1247
1319
|
function r() {
|
|
@@ -1256,9 +1328,9 @@ var Lt = (
|
|
|
1256
1328
|
e = e.add(this.p);
|
|
1257
1329
|
return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i);
|
|
1258
1330
|
}, r.prototype.setPublic = function(t, e) {
|
|
1259
|
-
t != null && e != null && t.length > 0 && e.length > 0 ? (this.n =
|
|
1331
|
+
t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = m(t, 16), this.e = parseInt(e, 16)) : console.error("Invalid RSA public key");
|
|
1260
1332
|
}, r.prototype.encrypt = function(t) {
|
|
1261
|
-
var e = this.n.bitLength() + 7 >> 3, i =
|
|
1333
|
+
var e = this.n.bitLength() + 7 >> 3, i = Xt(t, e);
|
|
1262
1334
|
if (i == null)
|
|
1263
1335
|
return null;
|
|
1264
1336
|
var n = this.doPublic(i);
|
|
@@ -1268,9 +1340,9 @@ var Lt = (
|
|
|
1268
1340
|
s = "0" + s;
|
|
1269
1341
|
return s;
|
|
1270
1342
|
}, r.prototype.setPrivate = function(t, e, i) {
|
|
1271
|
-
t != null && e != null && t.length > 0 && e.length > 0 ? (this.n =
|
|
1272
|
-
}, r.prototype.setPrivateEx = function(t, e, i, n, s, h, o,
|
|
1273
|
-
t != null && e != null && t.length > 0 && e.length > 0 ? (this.n =
|
|
1343
|
+
t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = m(t, 16), this.e = parseInt(e, 16), this.d = m(i, 16)) : console.error("Invalid RSA private key");
|
|
1344
|
+
}, r.prototype.setPrivateEx = function(t, e, i, n, s, h, o, a) {
|
|
1345
|
+
t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = m(t, 16), this.e = parseInt(e, 16), this.d = m(i, 16), this.p = m(n, 16), this.q = m(s, 16), this.dmp1 = m(h, 16), this.dmq1 = m(o, 16), this.coeff = m(a, 16)) : console.error("Invalid RSA private key");
|
|
1274
1346
|
}, r.prototype.generate = function(t, e) {
|
|
1275
1347
|
var i = new ht(), n = t >> 1;
|
|
1276
1348
|
this.e = parseInt(e, 16);
|
|
@@ -1283,63 +1355,63 @@ var Lt = (
|
|
|
1283
1355
|
var h = this.p;
|
|
1284
1356
|
this.p = this.q, this.q = h;
|
|
1285
1357
|
}
|
|
1286
|
-
var o = this.p.subtract(c.ONE),
|
|
1287
|
-
if (
|
|
1288
|
-
this.n = this.p.multiply(this.q), this.d = s.modInverse(
|
|
1358
|
+
var o = this.p.subtract(c.ONE), a = this.q.subtract(c.ONE), f = o.multiply(a);
|
|
1359
|
+
if (f.gcd(s).compareTo(c.ONE) == 0) {
|
|
1360
|
+
this.n = this.p.multiply(this.q), this.d = s.modInverse(f), this.dmp1 = this.d.mod(o), this.dmq1 = this.d.mod(a), this.coeff = this.q.modInverse(this.p);
|
|
1289
1361
|
break;
|
|
1290
1362
|
}
|
|
1291
1363
|
}
|
|
1292
1364
|
}, r.prototype.decrypt = function(t) {
|
|
1293
|
-
var e =
|
|
1294
|
-
return i == null ? null :
|
|
1365
|
+
var e = m(t, 16), i = this.doPrivate(e);
|
|
1366
|
+
return i == null ? null : Wt(i, this.n.bitLength() + 7 >> 3);
|
|
1295
1367
|
}, r.prototype.generateAsync = function(t, e, i) {
|
|
1296
1368
|
var n = new ht(), s = t >> 1;
|
|
1297
1369
|
this.e = parseInt(e, 16);
|
|
1298
|
-
var h = new c(e, 16), o = this,
|
|
1299
|
-
var
|
|
1370
|
+
var h = new c(e, 16), o = this, a = function() {
|
|
1371
|
+
var f = function() {
|
|
1300
1372
|
if (o.p.compareTo(o.q) <= 0) {
|
|
1301
|
-
var
|
|
1302
|
-
o.p = o.q, o.q =
|
|
1373
|
+
var v = o.p;
|
|
1374
|
+
o.p = o.q, o.q = v;
|
|
1303
1375
|
}
|
|
1304
|
-
var y = o.p.subtract(c.ONE),
|
|
1305
|
-
b.gcd(h).compareTo(c.ONE) == 0 ? (o.n = o.p.multiply(o.q), o.d = h.modInverse(b), o.dmp1 = o.d.mod(y), o.dmq1 = o.d.mod(
|
|
1376
|
+
var y = o.p.subtract(c.ONE), S = o.q.subtract(c.ONE), b = y.multiply(S);
|
|
1377
|
+
b.gcd(h).compareTo(c.ONE) == 0 ? (o.n = o.p.multiply(o.q), o.d = h.modInverse(b), o.dmp1 = o.d.mod(y), o.dmq1 = o.d.mod(S), o.coeff = o.q.modInverse(o.p), setTimeout(function() {
|
|
1306
1378
|
i();
|
|
1307
|
-
}, 0)) : setTimeout(
|
|
1379
|
+
}, 0)) : setTimeout(a, 0);
|
|
1308
1380
|
}, l = function() {
|
|
1309
|
-
o.q =
|
|
1310
|
-
o.q.subtract(c.ONE).gcda(h, function(
|
|
1311
|
-
|
|
1381
|
+
o.q = g(), o.q.fromNumberAsync(s, 1, n, function() {
|
|
1382
|
+
o.q.subtract(c.ONE).gcda(h, function(v) {
|
|
1383
|
+
v.compareTo(c.ONE) == 0 && o.q.isProbablePrime(10) ? setTimeout(f, 0) : setTimeout(l, 0);
|
|
1312
1384
|
});
|
|
1313
1385
|
});
|
|
1314
|
-
},
|
|
1315
|
-
o.p =
|
|
1316
|
-
o.p.subtract(c.ONE).gcda(h, function(
|
|
1317
|
-
|
|
1386
|
+
}, p = function() {
|
|
1387
|
+
o.p = g(), o.p.fromNumberAsync(t - s, 1, n, function() {
|
|
1388
|
+
o.p.subtract(c.ONE).gcda(h, function(v) {
|
|
1389
|
+
v.compareTo(c.ONE) == 0 && o.p.isProbablePrime(10) ? setTimeout(l, 0) : setTimeout(p, 0);
|
|
1318
1390
|
});
|
|
1319
1391
|
});
|
|
1320
1392
|
};
|
|
1321
|
-
setTimeout(
|
|
1393
|
+
setTimeout(p, 0);
|
|
1322
1394
|
};
|
|
1323
|
-
setTimeout(
|
|
1395
|
+
setTimeout(a, 0);
|
|
1324
1396
|
}, r.prototype.sign = function(t, e, i) {
|
|
1325
|
-
var n =
|
|
1397
|
+
var n = te(i), s = n + e(t).toString(), h = Yt(s, this.n.bitLength() / 4);
|
|
1326
1398
|
if (h == null)
|
|
1327
1399
|
return null;
|
|
1328
1400
|
var o = this.doPrivate(h);
|
|
1329
1401
|
if (o == null)
|
|
1330
1402
|
return null;
|
|
1331
|
-
var
|
|
1332
|
-
return (
|
|
1403
|
+
var a = o.toString(16);
|
|
1404
|
+
return (a.length & 1) == 0 ? a : "0" + a;
|
|
1333
1405
|
}, r.prototype.verify = function(t, e, i) {
|
|
1334
|
-
var n =
|
|
1406
|
+
var n = m(e, 16), s = this.doPublic(n);
|
|
1335
1407
|
if (s == null)
|
|
1336
1408
|
return null;
|
|
1337
|
-
var h = s.toString(16).replace(/^1f+00/, ""), o =
|
|
1409
|
+
var h = s.toString(16).replace(/^1f+00/, ""), o = ee(h);
|
|
1338
1410
|
return o == i(t).toString();
|
|
1339
1411
|
}, r;
|
|
1340
1412
|
}()
|
|
1341
1413
|
);
|
|
1342
|
-
function
|
|
1414
|
+
function Wt(r, t) {
|
|
1343
1415
|
for (var e = r.toByteArray(), i = 0; i < e.length && e[i] == 0; )
|
|
1344
1416
|
++i;
|
|
1345
1417
|
if (e.length - i != t - 1 || e[i] != 2)
|
|
@@ -1363,10 +1435,10 @@ var Q = {
|
|
|
1363
1435
|
sha512: "3051300d060960864801650304020305000440",
|
|
1364
1436
|
ripemd160: "3021300906052b2403020105000414"
|
|
1365
1437
|
};
|
|
1366
|
-
function
|
|
1438
|
+
function te(r) {
|
|
1367
1439
|
return Q[r] || "";
|
|
1368
1440
|
}
|
|
1369
|
-
function
|
|
1441
|
+
function ee(r) {
|
|
1370
1442
|
for (var t in Q)
|
|
1371
1443
|
if (Q.hasOwnProperty(t)) {
|
|
1372
1444
|
var e = Q[t], i = e.length;
|
|
@@ -1381,8 +1453,8 @@ Code licensed under the BSD License:
|
|
|
1381
1453
|
http://developer.yahoo.com/yui/license.html
|
|
1382
1454
|
version: 2.9.0
|
|
1383
1455
|
*/
|
|
1384
|
-
var
|
|
1385
|
-
|
|
1456
|
+
var T = {};
|
|
1457
|
+
T.lang = {
|
|
1386
1458
|
/**
|
|
1387
1459
|
* Utility to set up the prototype, constructor and superclass properties to
|
|
1388
1460
|
* support an inheritance strategy that can chain constructors and methods.
|
|
@@ -1409,10 +1481,10 @@ m.lang = {
|
|
|
1409
1481
|
var s = function() {
|
|
1410
1482
|
}, h = ["toString", "valueOf"];
|
|
1411
1483
|
try {
|
|
1412
|
-
/MSIE/.test(navigator.userAgent) && (s = function(o,
|
|
1484
|
+
/MSIE/.test(navigator.userAgent) && (s = function(o, a) {
|
|
1413
1485
|
for (n = 0; n < h.length; n = n + 1) {
|
|
1414
|
-
var
|
|
1415
|
-
typeof l == "function" && l != Object.prototype[
|
|
1486
|
+
var f = h[n], l = a[f];
|
|
1487
|
+
typeof l == "function" && l != Object.prototype[f] && (o[f] = l);
|
|
1416
1488
|
}
|
|
1417
1489
|
});
|
|
1418
1490
|
} catch {
|
|
@@ -1429,9 +1501,9 @@ m.lang = {
|
|
|
1429
1501
|
* @since jsrsasign 2.1
|
|
1430
1502
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
1431
1503
|
*/
|
|
1432
|
-
var
|
|
1433
|
-
(typeof
|
|
1434
|
-
|
|
1504
|
+
var u = {};
|
|
1505
|
+
(typeof u.asn1 > "u" || !u.asn1) && (u.asn1 = {});
|
|
1506
|
+
u.asn1.ASN1Util = new function() {
|
|
1435
1507
|
this.integerToByteHex = function(r) {
|
|
1436
1508
|
var t = r.toString(16);
|
|
1437
1509
|
return t.length % 2 == 1 && (t = "0" + t), t;
|
|
@@ -1451,59 +1523,59 @@ a.asn1.ASN1Util = new function() {
|
|
|
1451
1523
|
}, this.getPEMStringFromHex = function(r, t) {
|
|
1452
1524
|
return hextopem(r, t);
|
|
1453
1525
|
}, this.newObject = function(r) {
|
|
1454
|
-
var t =
|
|
1455
|
-
if (
|
|
1526
|
+
var t = u, e = t.asn1, i = e.DERBoolean, n = e.DERInteger, s = e.DERBitString, h = e.DEROctetString, o = e.DERNull, a = e.DERObjectIdentifier, f = e.DEREnumerated, l = e.DERUTF8String, p = e.DERNumericString, v = e.DERPrintableString, y = e.DERTeletexString, S = e.DERIA5String, b = e.DERUTCTime, E = e.DERGeneralizedTime, M = e.DERSequence, B = e.DERSet, K = e.DERTaggedObject, j = e.ASN1Util.newObject, ut = Object.keys(r);
|
|
1527
|
+
if (ut.length != 1)
|
|
1456
1528
|
throw "key of param shall be only one.";
|
|
1457
|
-
var
|
|
1458
|
-
if (":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" +
|
|
1459
|
-
throw "undefined key: " +
|
|
1460
|
-
if (
|
|
1461
|
-
return new i(r[
|
|
1462
|
-
if (
|
|
1463
|
-
return new n(r[
|
|
1464
|
-
if (
|
|
1465
|
-
return new s(r[
|
|
1466
|
-
if (
|
|
1467
|
-
return new h(r[
|
|
1468
|
-
if (
|
|
1469
|
-
return new o(r[
|
|
1470
|
-
if (
|
|
1471
|
-
return new
|
|
1472
|
-
if (
|
|
1473
|
-
return new
|
|
1474
|
-
if (
|
|
1475
|
-
return new l(r[
|
|
1476
|
-
if (
|
|
1477
|
-
return new
|
|
1478
|
-
if (
|
|
1479
|
-
return new
|
|
1480
|
-
if (
|
|
1481
|
-
return new y(r[
|
|
1482
|
-
if (
|
|
1483
|
-
return new
|
|
1484
|
-
if (
|
|
1485
|
-
return new b(r[
|
|
1486
|
-
if (
|
|
1487
|
-
return new E(r[
|
|
1488
|
-
if (
|
|
1489
|
-
for (var L = r[
|
|
1490
|
-
var it =
|
|
1491
|
-
|
|
1529
|
+
var d = ut[0];
|
|
1530
|
+
if (":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + d + ":") == -1)
|
|
1531
|
+
throw "undefined key: " + d;
|
|
1532
|
+
if (d == "bool")
|
|
1533
|
+
return new i(r[d]);
|
|
1534
|
+
if (d == "int")
|
|
1535
|
+
return new n(r[d]);
|
|
1536
|
+
if (d == "bitstr")
|
|
1537
|
+
return new s(r[d]);
|
|
1538
|
+
if (d == "octstr")
|
|
1539
|
+
return new h(r[d]);
|
|
1540
|
+
if (d == "null")
|
|
1541
|
+
return new o(r[d]);
|
|
1542
|
+
if (d == "oid")
|
|
1543
|
+
return new a(r[d]);
|
|
1544
|
+
if (d == "enum")
|
|
1545
|
+
return new f(r[d]);
|
|
1546
|
+
if (d == "utf8str")
|
|
1547
|
+
return new l(r[d]);
|
|
1548
|
+
if (d == "numstr")
|
|
1549
|
+
return new p(r[d]);
|
|
1550
|
+
if (d == "prnstr")
|
|
1551
|
+
return new v(r[d]);
|
|
1552
|
+
if (d == "telstr")
|
|
1553
|
+
return new y(r[d]);
|
|
1554
|
+
if (d == "ia5str")
|
|
1555
|
+
return new S(r[d]);
|
|
1556
|
+
if (d == "utctime")
|
|
1557
|
+
return new b(r[d]);
|
|
1558
|
+
if (d == "gentime")
|
|
1559
|
+
return new E(r[d]);
|
|
1560
|
+
if (d == "seq") {
|
|
1561
|
+
for (var L = r[d], k = [], N = 0; N < L.length; N++) {
|
|
1562
|
+
var it = j(L[N]);
|
|
1563
|
+
k.push(it);
|
|
1492
1564
|
}
|
|
1493
|
-
return new M({ array:
|
|
1565
|
+
return new M({ array: k });
|
|
1494
1566
|
}
|
|
1495
|
-
if (
|
|
1496
|
-
for (var L = r[
|
|
1497
|
-
var it =
|
|
1498
|
-
|
|
1567
|
+
if (d == "set") {
|
|
1568
|
+
for (var L = r[d], k = [], N = 0; N < L.length; N++) {
|
|
1569
|
+
var it = j(L[N]);
|
|
1570
|
+
k.push(it);
|
|
1499
1571
|
}
|
|
1500
|
-
return new B({ array:
|
|
1572
|
+
return new B({ array: k });
|
|
1501
1573
|
}
|
|
1502
|
-
if (
|
|
1503
|
-
var x = r[
|
|
1574
|
+
if (d == "tag") {
|
|
1575
|
+
var x = r[d];
|
|
1504
1576
|
if (Object.prototype.toString.call(x) === "[object Array]" && x.length == 3) {
|
|
1505
|
-
var Et =
|
|
1506
|
-
return new
|
|
1577
|
+
var Et = j(x[2]);
|
|
1578
|
+
return new K({
|
|
1507
1579
|
tag: x[0],
|
|
1508
1580
|
explicit: x[1],
|
|
1509
1581
|
obj: Et
|
|
@@ -1512,7 +1584,7 @@ a.asn1.ASN1Util = new function() {
|
|
|
1512
1584
|
var z = {};
|
|
1513
1585
|
if (x.explicit !== void 0 && (z.explicit = x.explicit), x.tag !== void 0 && (z.tag = x.tag), x.obj === void 0)
|
|
1514
1586
|
throw "obj shall be specified for 'tag'.";
|
|
1515
|
-
return z.obj =
|
|
1587
|
+
return z.obj = j(x.obj), new K(z);
|
|
1516
1588
|
}
|
|
1517
1589
|
}
|
|
1518
1590
|
}, this.jsonToASN1HEX = function(r) {
|
|
@@ -1520,31 +1592,31 @@ a.asn1.ASN1Util = new function() {
|
|
|
1520
1592
|
return t.getEncodedHex();
|
|
1521
1593
|
};
|
|
1522
1594
|
}();
|
|
1523
|
-
|
|
1595
|
+
u.asn1.ASN1Util.oidHexToInt = function(r) {
|
|
1524
1596
|
for (var n = "", t = parseInt(r.substr(0, 2), 16), e = Math.floor(t / 40), i = t % 40, n = e + "." + i, s = "", h = 2; h < r.length; h += 2) {
|
|
1525
|
-
var o = parseInt(r.substr(h, 2), 16),
|
|
1526
|
-
if (s = s +
|
|
1527
|
-
var
|
|
1528
|
-
n = n + "." +
|
|
1597
|
+
var o = parseInt(r.substr(h, 2), 16), a = ("00000000" + o.toString(2)).slice(-8);
|
|
1598
|
+
if (s = s + a.substr(1, 7), a.substr(0, 1) == "0") {
|
|
1599
|
+
var f = new c(s, 2);
|
|
1600
|
+
n = n + "." + f.toString(10), s = "";
|
|
1529
1601
|
}
|
|
1530
1602
|
}
|
|
1531
1603
|
return n;
|
|
1532
1604
|
};
|
|
1533
|
-
|
|
1605
|
+
u.asn1.ASN1Util.oidIntToHex = function(r) {
|
|
1534
1606
|
var t = function(o) {
|
|
1535
|
-
var
|
|
1536
|
-
return
|
|
1607
|
+
var a = o.toString(16);
|
|
1608
|
+
return a.length == 1 && (a = "0" + a), a;
|
|
1537
1609
|
}, e = function(o) {
|
|
1538
|
-
var
|
|
1539
|
-
|
|
1540
|
-
for (var
|
|
1541
|
-
|
|
1542
|
-
l =
|
|
1610
|
+
var a = "", f = new c(o, 10), l = f.toString(2), p = 7 - l.length % 7;
|
|
1611
|
+
p == 7 && (p = 0);
|
|
1612
|
+
for (var v = "", y = 0; y < p; y++)
|
|
1613
|
+
v += "0";
|
|
1614
|
+
l = v + l;
|
|
1543
1615
|
for (var y = 0; y < l.length - 1; y += 7) {
|
|
1544
|
-
var
|
|
1545
|
-
y != l.length - 7 && (
|
|
1616
|
+
var S = l.substr(y, 7);
|
|
1617
|
+
y != l.length - 7 && (S = "1" + S), a += t(parseInt(S, 2));
|
|
1546
1618
|
}
|
|
1547
|
-
return
|
|
1619
|
+
return a;
|
|
1548
1620
|
};
|
|
1549
1621
|
if (!r.match(/^[0-9.]+$/))
|
|
1550
1622
|
throw "malformed oid string: " + r;
|
|
@@ -1554,7 +1626,7 @@ a.asn1.ASN1Util.oidIntToHex = function(r) {
|
|
|
1554
1626
|
i += e(n[h]);
|
|
1555
1627
|
return i;
|
|
1556
1628
|
};
|
|
1557
|
-
|
|
1629
|
+
u.asn1.ASN1Object = function() {
|
|
1558
1630
|
var r = "";
|
|
1559
1631
|
this.getLengthHexFromValue = function() {
|
|
1560
1632
|
if (typeof this.hV > "u" || this.hV == null)
|
|
@@ -1577,8 +1649,8 @@ a.asn1.ASN1Object = function() {
|
|
|
1577
1649
|
return "";
|
|
1578
1650
|
};
|
|
1579
1651
|
};
|
|
1580
|
-
|
|
1581
|
-
|
|
1652
|
+
u.asn1.DERAbstractString = function(r) {
|
|
1653
|
+
u.asn1.DERAbstractString.superclass.constructor.call(this), this.getString = function() {
|
|
1582
1654
|
return this.s;
|
|
1583
1655
|
}, this.setString = function(t) {
|
|
1584
1656
|
this.hTLV = null, this.isModified = !0, this.s = t, this.hV = stohex(this.s);
|
|
@@ -1588,24 +1660,24 @@ a.asn1.DERAbstractString = function(r) {
|
|
|
1588
1660
|
return this.hV;
|
|
1589
1661
|
}, typeof r < "u" && (typeof r == "string" ? this.setString(r) : typeof r.str < "u" ? this.setString(r.str) : typeof r.hex < "u" && this.setStringHex(r.hex));
|
|
1590
1662
|
};
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1663
|
+
T.lang.extend(u.asn1.DERAbstractString, u.asn1.ASN1Object);
|
|
1664
|
+
u.asn1.DERAbstractTime = function(r) {
|
|
1665
|
+
u.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(t) {
|
|
1594
1666
|
utc = t.getTime() + t.getTimezoneOffset() * 6e4;
|
|
1595
1667
|
var e = new Date(utc);
|
|
1596
1668
|
return e;
|
|
1597
1669
|
}, this.formatDate = function(t, e, i) {
|
|
1598
1670
|
var n = this.zeroPadding, s = this.localDateToUTC(t), h = String(s.getFullYear());
|
|
1599
1671
|
e == "utc" && (h = h.substr(2, 2));
|
|
1600
|
-
var o = n(String(s.getMonth() + 1), 2),
|
|
1672
|
+
var o = n(String(s.getMonth() + 1), 2), a = n(String(s.getDate()), 2), f = n(String(s.getHours()), 2), l = n(String(s.getMinutes()), 2), p = n(String(s.getSeconds()), 2), v = h + o + a + f + l + p;
|
|
1601
1673
|
if (i === !0) {
|
|
1602
1674
|
var y = s.getMilliseconds();
|
|
1603
1675
|
if (y != 0) {
|
|
1604
|
-
var
|
|
1605
|
-
|
|
1676
|
+
var S = n(String(y), 3);
|
|
1677
|
+
S = S.replace(/[0]+$/, ""), v = v + "." + S;
|
|
1606
1678
|
}
|
|
1607
1679
|
}
|
|
1608
|
-
return
|
|
1680
|
+
return v + "Z";
|
|
1609
1681
|
}, this.zeroPadding = function(t, e) {
|
|
1610
1682
|
return t.length >= e ? t : new Array(e - t.length + 1).join("0") + t;
|
|
1611
1683
|
}, this.getString = function() {
|
|
@@ -1619,22 +1691,22 @@ a.asn1.DERAbstractTime = function(r) {
|
|
|
1619
1691
|
return this.hV;
|
|
1620
1692
|
};
|
|
1621
1693
|
};
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1694
|
+
T.lang.extend(u.asn1.DERAbstractTime, u.asn1.ASN1Object);
|
|
1695
|
+
u.asn1.DERAbstractStructured = function(r) {
|
|
1696
|
+
u.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(t) {
|
|
1625
1697
|
this.hTLV = null, this.isModified = !0, this.asn1Array = t;
|
|
1626
1698
|
}, this.appendASN1Object = function(t) {
|
|
1627
1699
|
this.hTLV = null, this.isModified = !0, this.asn1Array.push(t);
|
|
1628
1700
|
}, this.asn1Array = new Array(), typeof r < "u" && typeof r.array < "u" && (this.asn1Array = r.array);
|
|
1629
1701
|
};
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1702
|
+
T.lang.extend(u.asn1.DERAbstractStructured, u.asn1.ASN1Object);
|
|
1703
|
+
u.asn1.DERBoolean = function() {
|
|
1704
|
+
u.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
|
|
1633
1705
|
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
this.hTLV = null, this.isModified = !0, this.hV =
|
|
1706
|
+
T.lang.extend(u.asn1.DERBoolean, u.asn1.ASN1Object);
|
|
1707
|
+
u.asn1.DERInteger = function(r) {
|
|
1708
|
+
u.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(t) {
|
|
1709
|
+
this.hTLV = null, this.isModified = !0, this.hV = u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);
|
|
1638
1710
|
}, this.setByInteger = function(t) {
|
|
1639
1711
|
var e = new c(String(t), 10);
|
|
1640
1712
|
this.setByBigInteger(e);
|
|
@@ -1644,13 +1716,13 @@ a.asn1.DERInteger = function(r) {
|
|
|
1644
1716
|
return this.hV;
|
|
1645
1717
|
}, typeof r < "u" && (typeof r.bigint < "u" ? this.setByBigInteger(r.bigint) : typeof r.int < "u" ? this.setByInteger(r.int) : typeof r == "number" ? this.setByInteger(r) : typeof r.hex < "u" && this.setValueHex(r.hex));
|
|
1646
1718
|
};
|
|
1647
|
-
|
|
1648
|
-
|
|
1719
|
+
T.lang.extend(u.asn1.DERInteger, u.asn1.ASN1Object);
|
|
1720
|
+
u.asn1.DERBitString = function(r) {
|
|
1649
1721
|
if (r !== void 0 && typeof r.obj < "u") {
|
|
1650
|
-
var t =
|
|
1722
|
+
var t = u.asn1.ASN1Util.newObject(r.obj);
|
|
1651
1723
|
r.hex = "00" + t.getEncodedHex();
|
|
1652
1724
|
}
|
|
1653
|
-
|
|
1725
|
+
u.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function(e) {
|
|
1654
1726
|
this.hTLV = null, this.isModified = !0, this.hV = e;
|
|
1655
1727
|
}, this.setUnusedBitsAndHexValue = function(e, i) {
|
|
1656
1728
|
if (e < 0 || 7 < e)
|
|
@@ -1680,36 +1752,36 @@ a.asn1.DERBitString = function(r) {
|
|
|
1680
1752
|
return this.hV;
|
|
1681
1753
|
}, typeof r < "u" && (typeof r == "string" && r.toLowerCase().match(/^[0-9a-f]+$/) ? this.setHexValueIncludingUnusedBits(r) : typeof r.hex < "u" ? this.setHexValueIncludingUnusedBits(r.hex) : typeof r.bin < "u" ? this.setByBinaryString(r.bin) : typeof r.array < "u" && this.setByBooleanArray(r.array));
|
|
1682
1754
|
};
|
|
1683
|
-
|
|
1684
|
-
|
|
1755
|
+
T.lang.extend(u.asn1.DERBitString, u.asn1.ASN1Object);
|
|
1756
|
+
u.asn1.DEROctetString = function(r) {
|
|
1685
1757
|
if (r !== void 0 && typeof r.obj < "u") {
|
|
1686
|
-
var t =
|
|
1758
|
+
var t = u.asn1.ASN1Util.newObject(r.obj);
|
|
1687
1759
|
r.hex = t.getEncodedHex();
|
|
1688
1760
|
}
|
|
1689
|
-
|
|
1761
|
+
u.asn1.DEROctetString.superclass.constructor.call(this, r), this.hT = "04";
|
|
1690
1762
|
};
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1763
|
+
T.lang.extend(u.asn1.DEROctetString, u.asn1.DERAbstractString);
|
|
1764
|
+
u.asn1.DERNull = function() {
|
|
1765
|
+
u.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
|
|
1694
1766
|
};
|
|
1695
|
-
|
|
1696
|
-
|
|
1767
|
+
T.lang.extend(u.asn1.DERNull, u.asn1.ASN1Object);
|
|
1768
|
+
u.asn1.DERObjectIdentifier = function(r) {
|
|
1697
1769
|
var t = function(i) {
|
|
1698
1770
|
var n = i.toString(16);
|
|
1699
1771
|
return n.length == 1 && (n = "0" + n), n;
|
|
1700
1772
|
}, e = function(i) {
|
|
1701
1773
|
var n = "", s = new c(i, 10), h = s.toString(2), o = 7 - h.length % 7;
|
|
1702
1774
|
o == 7 && (o = 0);
|
|
1703
|
-
for (var
|
|
1704
|
-
|
|
1705
|
-
h =
|
|
1706
|
-
for (var
|
|
1707
|
-
var l = h.substr(
|
|
1708
|
-
|
|
1775
|
+
for (var a = "", f = 0; f < o; f++)
|
|
1776
|
+
a += "0";
|
|
1777
|
+
h = a + h;
|
|
1778
|
+
for (var f = 0; f < h.length - 1; f += 7) {
|
|
1779
|
+
var l = h.substr(f, 7);
|
|
1780
|
+
f != h.length - 7 && (l = "1" + l), n += t(parseInt(l, 2));
|
|
1709
1781
|
}
|
|
1710
1782
|
return n;
|
|
1711
1783
|
};
|
|
1712
|
-
|
|
1784
|
+
u.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function(i) {
|
|
1713
1785
|
this.hTLV = null, this.isModified = !0, this.s = null, this.hV = i;
|
|
1714
1786
|
}, this.setValueOidString = function(i) {
|
|
1715
1787
|
if (!i.match(/^[0-9.]+$/))
|
|
@@ -1720,7 +1792,7 @@ a.asn1.DERObjectIdentifier = function(r) {
|
|
|
1720
1792
|
n += e(s[o]);
|
|
1721
1793
|
this.hTLV = null, this.isModified = !0, this.s = null, this.hV = n;
|
|
1722
1794
|
}, this.setValueName = function(i) {
|
|
1723
|
-
var n =
|
|
1795
|
+
var n = u.asn1.x509.OID.name2oid(i);
|
|
1724
1796
|
if (n !== "")
|
|
1725
1797
|
this.setValueOidString(n);
|
|
1726
1798
|
else
|
|
@@ -1729,10 +1801,10 @@ a.asn1.DERObjectIdentifier = function(r) {
|
|
|
1729
1801
|
return this.hV;
|
|
1730
1802
|
}, r !== void 0 && (typeof r == "string" ? r.match(/^[0-2].[0-9.]+$/) ? this.setValueOidString(r) : this.setValueName(r) : r.oid !== void 0 ? this.setValueOidString(r.oid) : r.hex !== void 0 ? this.setValueHex(r.hex) : r.name !== void 0 && this.setValueName(r.name));
|
|
1731
1803
|
};
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
this.hTLV = null, this.isModified = !0, this.hV =
|
|
1804
|
+
T.lang.extend(u.asn1.DERObjectIdentifier, u.asn1.ASN1Object);
|
|
1805
|
+
u.asn1.DEREnumerated = function(r) {
|
|
1806
|
+
u.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(t) {
|
|
1807
|
+
this.hTLV = null, this.isModified = !0, this.hV = u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);
|
|
1736
1808
|
}, this.setByInteger = function(t) {
|
|
1737
1809
|
var e = new c(String(t), 10);
|
|
1738
1810
|
this.setByBigInteger(e);
|
|
@@ -1742,45 +1814,45 @@ a.asn1.DEREnumerated = function(r) {
|
|
|
1742
1814
|
return this.hV;
|
|
1743
1815
|
}, typeof r < "u" && (typeof r.int < "u" ? this.setByInteger(r.int) : typeof r == "number" ? this.setByInteger(r) : typeof r.hex < "u" && this.setValueHex(r.hex));
|
|
1744
1816
|
};
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1817
|
+
T.lang.extend(u.asn1.DEREnumerated, u.asn1.ASN1Object);
|
|
1818
|
+
u.asn1.DERUTF8String = function(r) {
|
|
1819
|
+
u.asn1.DERUTF8String.superclass.constructor.call(this, r), this.hT = "0c";
|
|
1748
1820
|
};
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1821
|
+
T.lang.extend(u.asn1.DERUTF8String, u.asn1.DERAbstractString);
|
|
1822
|
+
u.asn1.DERNumericString = function(r) {
|
|
1823
|
+
u.asn1.DERNumericString.superclass.constructor.call(this, r), this.hT = "12";
|
|
1752
1824
|
};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1825
|
+
T.lang.extend(u.asn1.DERNumericString, u.asn1.DERAbstractString);
|
|
1826
|
+
u.asn1.DERPrintableString = function(r) {
|
|
1827
|
+
u.asn1.DERPrintableString.superclass.constructor.call(this, r), this.hT = "13";
|
|
1756
1828
|
};
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1829
|
+
T.lang.extend(u.asn1.DERPrintableString, u.asn1.DERAbstractString);
|
|
1830
|
+
u.asn1.DERTeletexString = function(r) {
|
|
1831
|
+
u.asn1.DERTeletexString.superclass.constructor.call(this, r), this.hT = "14";
|
|
1760
1832
|
};
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1833
|
+
T.lang.extend(u.asn1.DERTeletexString, u.asn1.DERAbstractString);
|
|
1834
|
+
u.asn1.DERIA5String = function(r) {
|
|
1835
|
+
u.asn1.DERIA5String.superclass.constructor.call(this, r), this.hT = "16";
|
|
1764
1836
|
};
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1837
|
+
T.lang.extend(u.asn1.DERIA5String, u.asn1.DERAbstractString);
|
|
1838
|
+
u.asn1.DERUTCTime = function(r) {
|
|
1839
|
+
u.asn1.DERUTCTime.superclass.constructor.call(this, r), this.hT = "17", this.setByDate = function(t) {
|
|
1768
1840
|
this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s);
|
|
1769
1841
|
}, this.getFreshValueHex = function() {
|
|
1770
1842
|
return typeof this.date > "u" && typeof this.s > "u" && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)), this.hV;
|
|
1771
1843
|
}, r !== void 0 && (r.str !== void 0 ? this.setString(r.str) : typeof r == "string" && r.match(/^[0-9]{12}Z$/) ? this.setString(r) : r.hex !== void 0 ? this.setStringHex(r.hex) : r.date !== void 0 && this.setByDate(r.date));
|
|
1772
1844
|
};
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1845
|
+
T.lang.extend(u.asn1.DERUTCTime, u.asn1.DERAbstractTime);
|
|
1846
|
+
u.asn1.DERGeneralizedTime = function(r) {
|
|
1847
|
+
u.asn1.DERGeneralizedTime.superclass.constructor.call(this, r), this.hT = "18", this.withMillis = !1, this.setByDate = function(t) {
|
|
1776
1848
|
this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s);
|
|
1777
1849
|
}, this.getFreshValueHex = function() {
|
|
1778
1850
|
return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s)), this.hV;
|
|
1779
1851
|
}, r !== void 0 && (r.str !== void 0 ? this.setString(r.str) : typeof r == "string" && r.match(/^[0-9]{14}Z$/) ? this.setString(r) : r.hex !== void 0 ? this.setStringHex(r.hex) : r.date !== void 0 && this.setByDate(r.date), r.millis === !0 && (this.withMillis = !0));
|
|
1780
1852
|
};
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1853
|
+
T.lang.extend(u.asn1.DERGeneralizedTime, u.asn1.DERAbstractTime);
|
|
1854
|
+
u.asn1.DERSequence = function(r) {
|
|
1855
|
+
u.asn1.DERSequence.superclass.constructor.call(this, r), this.hT = "30", this.getFreshValueHex = function() {
|
|
1784
1856
|
for (var t = "", e = 0; e < this.asn1Array.length; e++) {
|
|
1785
1857
|
var i = this.asn1Array[e];
|
|
1786
1858
|
t += i.getEncodedHex();
|
|
@@ -1788,9 +1860,9 @@ a.asn1.DERSequence = function(r) {
|
|
|
1788
1860
|
return this.hV = t, this.hV;
|
|
1789
1861
|
};
|
|
1790
1862
|
};
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1863
|
+
T.lang.extend(u.asn1.DERSequence, u.asn1.DERAbstractStructured);
|
|
1864
|
+
u.asn1.DERSet = function(r) {
|
|
1865
|
+
u.asn1.DERSet.superclass.constructor.call(this, r), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
|
|
1794
1866
|
for (var t = new Array(), e = 0; e < this.asn1Array.length; e++) {
|
|
1795
1867
|
var i = this.asn1Array[e];
|
|
1796
1868
|
t.push(i.getEncodedHex());
|
|
@@ -1798,16 +1870,16 @@ a.asn1.DERSet = function(r) {
|
|
|
1798
1870
|
return this.sortFlag == !0 && t.sort(), this.hV = t.join(""), this.hV;
|
|
1799
1871
|
}, typeof r < "u" && typeof r.sortflag < "u" && r.sortflag == !1 && (this.sortFlag = !1);
|
|
1800
1872
|
};
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1873
|
+
T.lang.extend(u.asn1.DERSet, u.asn1.DERAbstractStructured);
|
|
1874
|
+
u.asn1.DERTaggedObject = function(r) {
|
|
1875
|
+
u.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(t, e, i) {
|
|
1804
1876
|
this.hT = e, this.isExplicit = t, this.asn1Object = i, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = i.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, e), this.isModified = !1);
|
|
1805
1877
|
}, this.getFreshValueHex = function() {
|
|
1806
1878
|
return this.hV;
|
|
1807
1879
|
}, typeof r < "u" && (typeof r.tag < "u" && (this.hT = r.tag), typeof r.explicit < "u" && (this.isExplicit = r.explicit), typeof r.obj < "u" && (this.asn1Object = r.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object)));
|
|
1808
1880
|
};
|
|
1809
|
-
|
|
1810
|
-
var
|
|
1881
|
+
T.lang.extend(u.asn1.DERTaggedObject, u.asn1.ASN1Object);
|
|
1882
|
+
var ie = /* @__PURE__ */ function() {
|
|
1811
1883
|
var r = function(t, e) {
|
|
1812
1884
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, n) {
|
|
1813
1885
|
i.__proto__ = n;
|
|
@@ -1824,37 +1896,37 @@ var zt = /* @__PURE__ */ function() {
|
|
|
1824
1896
|
}
|
|
1825
1897
|
t.prototype = e === null ? Object.create(e) : (i.prototype = e.prototype, new i());
|
|
1826
1898
|
};
|
|
1827
|
-
}(),
|
|
1899
|
+
}(), mt = (
|
|
1828
1900
|
/** @class */
|
|
1829
1901
|
function(r) {
|
|
1830
|
-
|
|
1902
|
+
ie(t, r);
|
|
1831
1903
|
function t(e) {
|
|
1832
1904
|
var i = r.call(this) || this;
|
|
1833
1905
|
return e && (typeof e == "string" ? i.parseKey(e) : (t.hasPrivateKeyProperty(e) || t.hasPublicKeyProperty(e)) && i.parsePropertiesFrom(e)), i;
|
|
1834
1906
|
}
|
|
1835
1907
|
return t.prototype.parseKey = function(e) {
|
|
1836
1908
|
try {
|
|
1837
|
-
var i = 0, n = 0, s = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, h = s.test(e) ?
|
|
1909
|
+
var i = 0, n = 0, s = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, h = s.test(e) ? _t.decode(e) : ot.unarmor(e), o = kt.decode(h);
|
|
1838
1910
|
if (o.sub.length === 3 && (o = o.sub[2].sub[0]), o.sub.length === 9) {
|
|
1839
|
-
i = o.sub[1].getHexStringValue(), this.n =
|
|
1840
|
-
var
|
|
1841
|
-
this.d =
|
|
1842
|
-
var
|
|
1843
|
-
this.p =
|
|
1911
|
+
i = o.sub[1].getHexStringValue(), this.n = m(i, 16), n = o.sub[2].getHexStringValue(), this.e = parseInt(n, 16);
|
|
1912
|
+
var a = o.sub[3].getHexStringValue();
|
|
1913
|
+
this.d = m(a, 16);
|
|
1914
|
+
var f = o.sub[4].getHexStringValue();
|
|
1915
|
+
this.p = m(f, 16);
|
|
1844
1916
|
var l = o.sub[5].getHexStringValue();
|
|
1845
|
-
this.q =
|
|
1846
|
-
var
|
|
1847
|
-
this.dmp1 =
|
|
1848
|
-
var
|
|
1849
|
-
this.dmq1 =
|
|
1917
|
+
this.q = m(l, 16);
|
|
1918
|
+
var p = o.sub[6].getHexStringValue();
|
|
1919
|
+
this.dmp1 = m(p, 16);
|
|
1920
|
+
var v = o.sub[7].getHexStringValue();
|
|
1921
|
+
this.dmq1 = m(v, 16);
|
|
1850
1922
|
var y = o.sub[8].getHexStringValue();
|
|
1851
|
-
this.coeff =
|
|
1923
|
+
this.coeff = m(y, 16);
|
|
1852
1924
|
} else if (o.sub.length === 2)
|
|
1853
1925
|
if (o.sub[0].sub) {
|
|
1854
|
-
var
|
|
1855
|
-
i = b.sub[0].getHexStringValue(), this.n =
|
|
1926
|
+
var S = o.sub[1], b = S.sub[0];
|
|
1927
|
+
i = b.sub[0].getHexStringValue(), this.n = m(i, 16), n = b.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
|
|
1856
1928
|
} else
|
|
1857
|
-
i = o.sub[0].getHexStringValue(), this.n =
|
|
1929
|
+
i = o.sub[0].getHexStringValue(), this.n = m(i, 16), n = o.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
|
|
1858
1930
|
else
|
|
1859
1931
|
return !1;
|
|
1860
1932
|
return !0;
|
|
@@ -1864,34 +1936,34 @@ var zt = /* @__PURE__ */ function() {
|
|
|
1864
1936
|
}, t.prototype.getPrivateBaseKey = function() {
|
|
1865
1937
|
var e = {
|
|
1866
1938
|
array: [
|
|
1867
|
-
new
|
|
1868
|
-
new
|
|
1869
|
-
new
|
|
1870
|
-
new
|
|
1871
|
-
new
|
|
1872
|
-
new
|
|
1873
|
-
new
|
|
1874
|
-
new
|
|
1875
|
-
new
|
|
1939
|
+
new u.asn1.DERInteger({ int: 0 }),
|
|
1940
|
+
new u.asn1.DERInteger({ bigint: this.n }),
|
|
1941
|
+
new u.asn1.DERInteger({ int: this.e }),
|
|
1942
|
+
new u.asn1.DERInteger({ bigint: this.d }),
|
|
1943
|
+
new u.asn1.DERInteger({ bigint: this.p }),
|
|
1944
|
+
new u.asn1.DERInteger({ bigint: this.q }),
|
|
1945
|
+
new u.asn1.DERInteger({ bigint: this.dmp1 }),
|
|
1946
|
+
new u.asn1.DERInteger({ bigint: this.dmq1 }),
|
|
1947
|
+
new u.asn1.DERInteger({ bigint: this.coeff })
|
|
1876
1948
|
]
|
|
1877
|
-
}, i = new
|
|
1949
|
+
}, i = new u.asn1.DERSequence(e);
|
|
1878
1950
|
return i.getEncodedHex();
|
|
1879
1951
|
}, t.prototype.getPrivateBaseKeyB64 = function() {
|
|
1880
1952
|
return W(this.getPrivateBaseKey());
|
|
1881
1953
|
}, t.prototype.getPublicBaseKey = function() {
|
|
1882
|
-
var e = new
|
|
1954
|
+
var e = new u.asn1.DERSequence({
|
|
1883
1955
|
array: [
|
|
1884
|
-
new
|
|
1885
|
-
new
|
|
1956
|
+
new u.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }),
|
|
1957
|
+
new u.asn1.DERNull()
|
|
1886
1958
|
]
|
|
1887
|
-
}), i = new
|
|
1959
|
+
}), i = new u.asn1.DERSequence({
|
|
1888
1960
|
array: [
|
|
1889
|
-
new
|
|
1890
|
-
new
|
|
1961
|
+
new u.asn1.DERInteger({ bigint: this.n }),
|
|
1962
|
+
new u.asn1.DERInteger({ int: this.e })
|
|
1891
1963
|
]
|
|
1892
|
-
}), n = new
|
|
1964
|
+
}), n = new u.asn1.DERBitString({
|
|
1893
1965
|
hex: "00" + i.getEncodedHex()
|
|
1894
|
-
}), s = new
|
|
1966
|
+
}), s = new u.asn1.DERSequence({
|
|
1895
1967
|
array: [e, n]
|
|
1896
1968
|
});
|
|
1897
1969
|
return s.getEncodedHex();
|
|
@@ -1921,15 +1993,15 @@ var zt = /* @__PURE__ */ function() {
|
|
|
1921
1993
|
}, t.prototype.parsePropertiesFrom = function(e) {
|
|
1922
1994
|
this.n = e.n, this.e = e.e, e.hasOwnProperty("d") && (this.d = e.d, this.p = e.p, this.q = e.q, this.dmp1 = e.dmp1, this.dmq1 = e.dmq1, this.coeff = e.coeff);
|
|
1923
1995
|
}, t;
|
|
1924
|
-
}(
|
|
1925
|
-
), st,
|
|
1996
|
+
}(Qt)
|
|
1997
|
+
), st, re = typeof process < "u" ? (st = process.env) === null || st === void 0 ? void 0 : st.npm_package_version : void 0, et = (
|
|
1926
1998
|
/** @class */
|
|
1927
1999
|
function() {
|
|
1928
2000
|
function r(t) {
|
|
1929
2001
|
t === void 0 && (t = {}), t = t || {}, this.default_key_size = t.default_key_size ? parseInt(t.default_key_size, 10) : 1024, this.default_public_exponent = t.default_public_exponent || "010001", this.log = t.log || !1, this.key = null;
|
|
1930
2002
|
}
|
|
1931
2003
|
return r.prototype.setKey = function(t) {
|
|
1932
|
-
this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new
|
|
2004
|
+
this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new mt(t);
|
|
1933
2005
|
}, r.prototype.setPrivateKey = function(t) {
|
|
1934
2006
|
this.setKey(t);
|
|
1935
2007
|
}, r.prototype.setPublicKey = function(t) {
|
|
@@ -1960,7 +2032,7 @@ var zt = /* @__PURE__ */ function() {
|
|
|
1960
2032
|
}
|
|
1961
2033
|
}, r.prototype.getKey = function(t) {
|
|
1962
2034
|
if (!this.key) {
|
|
1963
|
-
if (this.key = new
|
|
2035
|
+
if (this.key = new mt(), t && {}.toString.call(t) === "[object Function]") {
|
|
1964
2036
|
this.key.generateAsync(this.default_key_size, this.default_public_exponent, t);
|
|
1965
2037
|
return;
|
|
1966
2038
|
}
|
|
@@ -1975,30 +2047,31 @@ var zt = /* @__PURE__ */ function() {
|
|
|
1975
2047
|
return this.getKey().getPublicKey();
|
|
1976
2048
|
}, r.prototype.getPublicKeyB64 = function() {
|
|
1977
2049
|
return this.getKey().getPublicBaseKeyB64();
|
|
1978
|
-
}, r.version =
|
|
2050
|
+
}, r.version = re, r;
|
|
1979
2051
|
}()
|
|
1980
2052
|
);
|
|
1981
|
-
function
|
|
2053
|
+
function he() {
|
|
1982
2054
|
const r = new et({ default_key_size: "2048" });
|
|
1983
2055
|
return {
|
|
1984
2056
|
publicKey: r.getPublicKey(),
|
|
1985
2057
|
privateKey: r.getPrivateKey()
|
|
1986
2058
|
};
|
|
1987
2059
|
}
|
|
1988
|
-
function
|
|
2060
|
+
function ae(r, t) {
|
|
1989
2061
|
const e = new et();
|
|
1990
2062
|
return e.setPublicKey(t), e.encrypt(r) || "";
|
|
1991
2063
|
}
|
|
1992
|
-
function
|
|
2064
|
+
function ue(r, t) {
|
|
1993
2065
|
const e = new et();
|
|
1994
2066
|
return e.setPrivateKey(t), e.decrypt(r) || "";
|
|
1995
2067
|
}
|
|
1996
|
-
function
|
|
2068
|
+
function fe() {
|
|
1997
2069
|
return typeof new et().encrypt == "function";
|
|
1998
2070
|
}
|
|
1999
2071
|
export {
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2072
|
+
ue as d,
|
|
2073
|
+
ae as e,
|
|
2074
|
+
he as g,
|
|
2075
|
+
fe as i,
|
|
2076
|
+
oe as u
|
|
2004
2077
|
};
|