@kong-ui-public/entities-certificates 3.6.6 → 3.6.8
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as ve, defineComponent as nr, computed as ce, watch as
|
|
1
|
+
import { ref as ve, defineComponent as nr, computed as ce, watch as Ni, onBeforeMount as il, resolveComponent as ge, openBlock as Q, createElementBlock as ae, createVNode as R, unref as w, withCtx as I, createBlock as Oe, Teleport as nl, withDirectives as sl, createTextVNode as ye, toDisplayString as X, vShow as ol, Fragment as Jt, renderList as Yt, withModifiers as al, createCommentVNode as st, createElementVNode as Ye, reactive as _i, createSlots as Bf } from "vue";
|
|
2
2
|
import { useRouter as cn } from "vue-router";
|
|
3
3
|
import { AddIcon as jo, TrashIcon as Cf } from "@kong/icons";
|
|
4
4
|
import { createI18n as If, i18nTComponent as Ef } from "@kong-ui-public/i18n";
|
|
@@ -53,200 +53,200 @@ var Ea;
|
|
|
53
53
|
} : function() {
|
|
54
54
|
return ns({});
|
|
55
55
|
},
|
|
56
|
-
has: f ? function(
|
|
57
|
-
return i.call(
|
|
58
|
-
} : function(
|
|
59
|
-
return m in
|
|
56
|
+
has: f ? function(g, m) {
|
|
57
|
+
return i.call(g, m);
|
|
58
|
+
} : function(g, m) {
|
|
59
|
+
return m in g;
|
|
60
60
|
},
|
|
61
|
-
get: f ? function(
|
|
62
|
-
return i.call(
|
|
63
|
-
} : function(
|
|
64
|
-
return
|
|
61
|
+
get: f ? function(g, m) {
|
|
62
|
+
return i.call(g, m) ? g[m] : void 0;
|
|
63
|
+
} : function(g, m) {
|
|
64
|
+
return g[m];
|
|
65
65
|
}
|
|
66
|
-
}, p = Object.getPrototypeOf(Function),
|
|
67
|
-
function
|
|
68
|
-
if (
|
|
69
|
-
if (!
|
|
66
|
+
}, p = Object.getPrototypeOf(Function), z = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : wf(), N = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Af(), d = typeof WeakMap == "function" ? WeakMap : Sf(), y = n ? Symbol.for("@reflect-metadata:registry") : void 0, A = vf(), b = mf(A);
|
|
67
|
+
function O(g, m, S, _) {
|
|
68
|
+
if (W(S)) {
|
|
69
|
+
if (!ke(g))
|
|
70
70
|
throw new TypeError();
|
|
71
|
-
if (!
|
|
71
|
+
if (!xe(m))
|
|
72
72
|
throw new TypeError();
|
|
73
|
-
return je(
|
|
73
|
+
return je(g, m);
|
|
74
74
|
} else {
|
|
75
|
-
if (!
|
|
75
|
+
if (!ke(g))
|
|
76
76
|
throw new TypeError();
|
|
77
|
-
if (!
|
|
77
|
+
if (!q(m))
|
|
78
78
|
throw new TypeError();
|
|
79
|
-
if (!
|
|
79
|
+
if (!q(_) && !W(_) && !Y(_))
|
|
80
80
|
throw new TypeError();
|
|
81
|
-
return Y(
|
|
81
|
+
return Y(_) && (_ = void 0), S = Z(S), he(g, m, S, _);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
e("decorate",
|
|
85
|
-
function k(
|
|
86
|
-
function S(
|
|
87
|
-
if (!
|
|
84
|
+
e("decorate", O);
|
|
85
|
+
function k(g, m) {
|
|
86
|
+
function S(_, J) {
|
|
87
|
+
if (!q(_))
|
|
88
88
|
throw new TypeError();
|
|
89
|
-
if (!J
|
|
89
|
+
if (!W(J) && !hr(J))
|
|
90
90
|
throw new TypeError();
|
|
91
|
-
ur(
|
|
91
|
+
ur(g, m, _, J);
|
|
92
92
|
}
|
|
93
93
|
return S;
|
|
94
94
|
}
|
|
95
95
|
e("metadata", k);
|
|
96
|
-
function C(
|
|
97
|
-
if (!
|
|
96
|
+
function C(g, m, S, _) {
|
|
97
|
+
if (!q(S))
|
|
98
98
|
throw new TypeError();
|
|
99
|
-
return
|
|
99
|
+
return W(_) || (_ = Z(_)), ur(g, m, S, _);
|
|
100
100
|
}
|
|
101
101
|
e("defineMetadata", C);
|
|
102
|
-
function ee(
|
|
103
|
-
if (!
|
|
102
|
+
function ee(g, m, S) {
|
|
103
|
+
if (!q(m))
|
|
104
104
|
throw new TypeError();
|
|
105
|
-
return
|
|
105
|
+
return W(S) || (S = Z(S)), Ae(g, m, S);
|
|
106
106
|
}
|
|
107
107
|
e("hasMetadata", ee);
|
|
108
|
-
function le(
|
|
109
|
-
if (!
|
|
108
|
+
function le(g, m, S) {
|
|
109
|
+
if (!q(m))
|
|
110
110
|
throw new TypeError();
|
|
111
|
-
return
|
|
111
|
+
return W(S) || (S = Z(S)), ut(g, m, S);
|
|
112
112
|
}
|
|
113
113
|
e("hasOwnMetadata", le);
|
|
114
|
-
function M(
|
|
115
|
-
if (!
|
|
114
|
+
function M(g, m, S) {
|
|
115
|
+
if (!q(m))
|
|
116
116
|
throw new TypeError();
|
|
117
|
-
return
|
|
117
|
+
return W(S) || (S = Z(S)), ie(g, m, S);
|
|
118
118
|
}
|
|
119
119
|
e("getMetadata", M);
|
|
120
|
-
function x(
|
|
121
|
-
if (!
|
|
120
|
+
function x(g, m, S) {
|
|
121
|
+
if (!q(m))
|
|
122
122
|
throw new TypeError();
|
|
123
|
-
return
|
|
123
|
+
return W(S) || (S = Z(S)), bt(g, m, S);
|
|
124
124
|
}
|
|
125
125
|
e("getOwnMetadata", x);
|
|
126
|
-
function j(
|
|
127
|
-
if (!
|
|
126
|
+
function j(g, m) {
|
|
127
|
+
if (!q(g))
|
|
128
128
|
throw new TypeError();
|
|
129
|
-
return
|
|
129
|
+
return W(m) || (m = Z(m)), fr(g, m);
|
|
130
130
|
}
|
|
131
131
|
e("getMetadataKeys", j);
|
|
132
|
-
function we(
|
|
133
|
-
if (!
|
|
132
|
+
function we(g, m) {
|
|
133
|
+
if (!q(g))
|
|
134
134
|
throw new TypeError();
|
|
135
|
-
return
|
|
135
|
+
return W(m) || (m = Z(m)), Ut(g, m);
|
|
136
136
|
}
|
|
137
137
|
e("getOwnMetadataKeys", we);
|
|
138
|
-
function se(
|
|
139
|
-
if (!
|
|
138
|
+
function se(g, m, S) {
|
|
139
|
+
if (!q(m))
|
|
140
140
|
throw new TypeError();
|
|
141
|
-
if (
|
|
141
|
+
if (W(S) || (S = Z(S)), !q(m))
|
|
142
142
|
throw new TypeError();
|
|
143
|
-
|
|
144
|
-
var
|
|
143
|
+
W(S) || (S = Z(S));
|
|
144
|
+
var _ = Ur(
|
|
145
145
|
m,
|
|
146
146
|
S,
|
|
147
147
|
/*Create*/
|
|
148
148
|
!1
|
|
149
149
|
);
|
|
150
|
-
return
|
|
150
|
+
return W(_) ? !1 : _.OrdinaryDeleteMetadata(g, m, S);
|
|
151
151
|
}
|
|
152
152
|
e("deleteMetadata", se);
|
|
153
|
-
function je(
|
|
154
|
-
for (var S =
|
|
155
|
-
var
|
|
156
|
-
if (!J
|
|
157
|
-
if (!
|
|
153
|
+
function je(g, m) {
|
|
154
|
+
for (var S = g.length - 1; S >= 0; --S) {
|
|
155
|
+
var _ = g[S], J = _(m);
|
|
156
|
+
if (!W(J) && !Y(J)) {
|
|
157
|
+
if (!xe(J))
|
|
158
158
|
throw new TypeError();
|
|
159
|
-
m =
|
|
159
|
+
m = J;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
return m;
|
|
163
163
|
}
|
|
164
|
-
function he(
|
|
165
|
-
for (var
|
|
166
|
-
var
|
|
167
|
-
if (!
|
|
168
|
-
if (!
|
|
164
|
+
function he(g, m, S, _) {
|
|
165
|
+
for (var J = g.length - 1; J >= 0; --J) {
|
|
166
|
+
var Ee = g[J], Be = Ee(m, S, _);
|
|
167
|
+
if (!W(Be) && !Y(Be)) {
|
|
168
|
+
if (!q(Be))
|
|
169
169
|
throw new TypeError();
|
|
170
|
-
|
|
170
|
+
_ = Be;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
return
|
|
173
|
+
return _;
|
|
174
174
|
}
|
|
175
|
-
function Ae(
|
|
176
|
-
var
|
|
177
|
-
if (
|
|
175
|
+
function Ae(g, m, S) {
|
|
176
|
+
var _ = ut(g, m, S);
|
|
177
|
+
if (_)
|
|
178
178
|
return !0;
|
|
179
|
-
var
|
|
180
|
-
return Y(
|
|
179
|
+
var J = is(m);
|
|
180
|
+
return Y(J) ? !1 : Ae(g, J, S);
|
|
181
181
|
}
|
|
182
|
-
function ut(
|
|
183
|
-
var
|
|
182
|
+
function ut(g, m, S) {
|
|
183
|
+
var _ = Ur(
|
|
184
184
|
m,
|
|
185
185
|
S,
|
|
186
186
|
/*Create*/
|
|
187
187
|
!1
|
|
188
188
|
);
|
|
189
|
-
return
|
|
190
|
-
}
|
|
191
|
-
function ie(
|
|
192
|
-
var
|
|
193
|
-
if (
|
|
194
|
-
return bt(
|
|
195
|
-
var
|
|
196
|
-
if (!Y(
|
|
197
|
-
return ie(
|
|
198
|
-
}
|
|
199
|
-
function bt(
|
|
200
|
-
var
|
|
189
|
+
return W(_) ? !1 : qe(_.OrdinaryHasOwnMetadata(g, m, S));
|
|
190
|
+
}
|
|
191
|
+
function ie(g, m, S) {
|
|
192
|
+
var _ = ut(g, m, S);
|
|
193
|
+
if (_)
|
|
194
|
+
return bt(g, m, S);
|
|
195
|
+
var J = is(m);
|
|
196
|
+
if (!Y(J))
|
|
197
|
+
return ie(g, J, S);
|
|
198
|
+
}
|
|
199
|
+
function bt(g, m, S) {
|
|
200
|
+
var _ = Ur(
|
|
201
201
|
m,
|
|
202
202
|
S,
|
|
203
203
|
/*Create*/
|
|
204
204
|
!1
|
|
205
205
|
);
|
|
206
|
-
if (!
|
|
207
|
-
return
|
|
206
|
+
if (!W(_))
|
|
207
|
+
return _.OrdinaryGetOwnMetadata(g, m, S);
|
|
208
208
|
}
|
|
209
|
-
function ur(
|
|
210
|
-
var
|
|
209
|
+
function ur(g, m, S, _) {
|
|
210
|
+
var J = Ur(
|
|
211
211
|
S,
|
|
212
|
-
|
|
212
|
+
_,
|
|
213
213
|
/*Create*/
|
|
214
214
|
!0
|
|
215
215
|
);
|
|
216
|
-
|
|
216
|
+
J.OrdinaryDefineOwnMetadata(g, m, S, _);
|
|
217
217
|
}
|
|
218
|
-
function fr(
|
|
219
|
-
var S = Ut(
|
|
220
|
-
if (
|
|
218
|
+
function fr(g, m) {
|
|
219
|
+
var S = Ut(g, m), _ = is(g);
|
|
220
|
+
if (_ === null)
|
|
221
221
|
return S;
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
222
|
+
var J = fr(_, m);
|
|
223
|
+
if (J.length <= 0)
|
|
224
224
|
return S;
|
|
225
225
|
if (S.length <= 0)
|
|
226
|
-
return
|
|
227
|
-
for (var
|
|
228
|
-
var
|
|
229
|
-
U || (
|
|
226
|
+
return J;
|
|
227
|
+
for (var Ee = new N(), Be = [], re = 0, T = S; re < T.length; re++) {
|
|
228
|
+
var H = T[re], U = Ee.has(H);
|
|
229
|
+
U || (Ee.add(H), Be.push(H));
|
|
230
230
|
}
|
|
231
|
-
for (var
|
|
232
|
-
var
|
|
233
|
-
U || (
|
|
231
|
+
for (var F = 0, ne = J; F < ne.length; F++) {
|
|
232
|
+
var H = ne[F], U = Ee.has(H);
|
|
233
|
+
U || (Ee.add(H), Be.push(H));
|
|
234
234
|
}
|
|
235
|
-
return
|
|
235
|
+
return Be;
|
|
236
236
|
}
|
|
237
|
-
function Ut(
|
|
237
|
+
function Ut(g, m) {
|
|
238
238
|
var S = Ur(
|
|
239
|
-
|
|
239
|
+
g,
|
|
240
240
|
m,
|
|
241
241
|
/*create*/
|
|
242
242
|
!1
|
|
243
243
|
);
|
|
244
|
-
return S ? S.OrdinaryOwnMetadataKeys(
|
|
244
|
+
return S ? S.OrdinaryOwnMetadataKeys(g, m) : [];
|
|
245
245
|
}
|
|
246
|
-
function wt(
|
|
247
|
-
if (
|
|
246
|
+
function wt(g) {
|
|
247
|
+
if (g === null)
|
|
248
248
|
return 1;
|
|
249
|
-
switch (typeof
|
|
249
|
+
switch (typeof g) {
|
|
250
250
|
case "undefined":
|
|
251
251
|
return 0;
|
|
252
252
|
case "boolean":
|
|
@@ -258,102 +258,86 @@ var Ea;
|
|
|
258
258
|
case "number":
|
|
259
259
|
return 5;
|
|
260
260
|
case "object":
|
|
261
|
-
return
|
|
261
|
+
return g === null ? 1 : 6;
|
|
262
262
|
default:
|
|
263
263
|
return 6;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
function W(g) {
|
|
267
|
+
return g === void 0;
|
|
268
268
|
}
|
|
269
|
-
function Y(
|
|
270
|
-
return
|
|
269
|
+
function Y(g) {
|
|
270
|
+
return g === null;
|
|
271
271
|
}
|
|
272
|
-
function D(
|
|
273
|
-
return typeof
|
|
272
|
+
function D(g) {
|
|
273
|
+
return typeof g == "symbol";
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return typeof
|
|
275
|
+
function q(g) {
|
|
276
|
+
return typeof g == "object" ? g !== null : typeof g == "function";
|
|
277
277
|
}
|
|
278
|
-
function de(
|
|
279
|
-
switch (wt(
|
|
278
|
+
function de(g, m) {
|
|
279
|
+
switch (wt(g)) {
|
|
280
280
|
case 0:
|
|
281
|
-
return
|
|
281
|
+
return g;
|
|
282
282
|
case 1:
|
|
283
|
-
return
|
|
283
|
+
return g;
|
|
284
284
|
case 2:
|
|
285
|
-
return
|
|
285
|
+
return g;
|
|
286
286
|
case 3:
|
|
287
|
-
return
|
|
287
|
+
return g;
|
|
288
288
|
case 4:
|
|
289
|
-
return
|
|
289
|
+
return g;
|
|
290
290
|
case 5:
|
|
291
|
-
return
|
|
291
|
+
return g;
|
|
292
292
|
}
|
|
293
|
-
var S =
|
|
294
|
-
if (
|
|
295
|
-
var
|
|
296
|
-
if (
|
|
293
|
+
var S = "string", _ = Sa(g, s);
|
|
294
|
+
if (_ !== void 0) {
|
|
295
|
+
var J = _.call(g, S);
|
|
296
|
+
if (q(J))
|
|
297
297
|
throw new TypeError();
|
|
298
|
-
return
|
|
298
|
+
return J;
|
|
299
299
|
}
|
|
300
|
-
return Re(
|
|
301
|
-
}
|
|
302
|
-
function Re(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
300
|
+
return Re(g);
|
|
301
|
+
}
|
|
302
|
+
function Re(g, m) {
|
|
303
|
+
var S, _;
|
|
304
|
+
{
|
|
305
|
+
var J = g.toString;
|
|
306
|
+
if (G(J)) {
|
|
307
|
+
var _ = J.call(g);
|
|
308
|
+
if (!q(_))
|
|
309
|
+
return _;
|
|
309
310
|
}
|
|
310
|
-
var
|
|
311
|
-
if (G(
|
|
312
|
-
var
|
|
313
|
-
if (!
|
|
314
|
-
return
|
|
315
|
-
}
|
|
316
|
-
} else {
|
|
317
|
-
var z = y.valueOf;
|
|
318
|
-
if (G(z)) {
|
|
319
|
-
var O = z.call(y);
|
|
320
|
-
if (!H(O))
|
|
321
|
-
return O;
|
|
322
|
-
}
|
|
323
|
-
var Se = y.toString;
|
|
324
|
-
if (G(Se)) {
|
|
325
|
-
var O = Se.call(y);
|
|
326
|
-
if (!H(O))
|
|
327
|
-
return O;
|
|
311
|
+
var S = g.valueOf;
|
|
312
|
+
if (G(S)) {
|
|
313
|
+
var _ = S.call(g);
|
|
314
|
+
if (!q(_))
|
|
315
|
+
return _;
|
|
328
316
|
}
|
|
329
317
|
}
|
|
330
318
|
throw new TypeError();
|
|
331
319
|
}
|
|
332
|
-
function qe(
|
|
333
|
-
return !!
|
|
320
|
+
function qe(g) {
|
|
321
|
+
return !!g;
|
|
334
322
|
}
|
|
335
|
-
function dr(
|
|
336
|
-
return "" +
|
|
323
|
+
function dr(g) {
|
|
324
|
+
return "" + g;
|
|
337
325
|
}
|
|
338
|
-
function Z(
|
|
339
|
-
var m = de(
|
|
340
|
-
y,
|
|
341
|
-
3
|
|
342
|
-
/* String */
|
|
343
|
-
);
|
|
326
|
+
function Z(g) {
|
|
327
|
+
var m = de(g);
|
|
344
328
|
return D(m) ? m : dr(m);
|
|
345
329
|
}
|
|
346
|
-
function
|
|
347
|
-
return Array.isArray ? Array.isArray(
|
|
330
|
+
function ke(g) {
|
|
331
|
+
return Array.isArray ? Array.isArray(g) : g instanceof Object ? g instanceof Array : Object.prototype.toString.call(g) === "[object Array]";
|
|
348
332
|
}
|
|
349
|
-
function G(
|
|
350
|
-
return typeof
|
|
333
|
+
function G(g) {
|
|
334
|
+
return typeof g == "function";
|
|
351
335
|
}
|
|
352
|
-
function
|
|
353
|
-
return typeof
|
|
336
|
+
function xe(g) {
|
|
337
|
+
return typeof g == "function";
|
|
354
338
|
}
|
|
355
|
-
function hr(
|
|
356
|
-
switch (wt(
|
|
339
|
+
function hr(g) {
|
|
340
|
+
switch (wt(g)) {
|
|
357
341
|
case 3:
|
|
358
342
|
return !0;
|
|
359
343
|
case 4:
|
|
@@ -362,205 +346,205 @@ var Ea;
|
|
|
362
346
|
return !1;
|
|
363
347
|
}
|
|
364
348
|
}
|
|
365
|
-
function rs(
|
|
366
|
-
return
|
|
349
|
+
function rs(g, m) {
|
|
350
|
+
return g === m || g !== g && m !== m;
|
|
367
351
|
}
|
|
368
|
-
function Sa(
|
|
369
|
-
var S =
|
|
352
|
+
function Sa(g, m) {
|
|
353
|
+
var S = g[m];
|
|
370
354
|
if (S != null) {
|
|
371
355
|
if (!G(S))
|
|
372
356
|
throw new TypeError();
|
|
373
357
|
return S;
|
|
374
358
|
}
|
|
375
359
|
}
|
|
376
|
-
function ka(
|
|
377
|
-
var m = Sa(
|
|
360
|
+
function ka(g) {
|
|
361
|
+
var m = Sa(g, a);
|
|
378
362
|
if (!G(m))
|
|
379
363
|
throw new TypeError();
|
|
380
|
-
var S = m.call(
|
|
381
|
-
if (!
|
|
364
|
+
var S = m.call(g);
|
|
365
|
+
if (!q(S))
|
|
382
366
|
throw new TypeError();
|
|
383
367
|
return S;
|
|
384
368
|
}
|
|
385
|
-
function xa(
|
|
386
|
-
return
|
|
369
|
+
function xa(g) {
|
|
370
|
+
return g.value;
|
|
387
371
|
}
|
|
388
|
-
function Ba(
|
|
389
|
-
var m =
|
|
372
|
+
function Ba(g) {
|
|
373
|
+
var m = g.next();
|
|
390
374
|
return m.done ? !1 : m;
|
|
391
375
|
}
|
|
392
|
-
function Ca(
|
|
393
|
-
var m =
|
|
394
|
-
m && m.call(
|
|
376
|
+
function Ca(g) {
|
|
377
|
+
var m = g.return;
|
|
378
|
+
m && m.call(g);
|
|
395
379
|
}
|
|
396
|
-
function is(
|
|
397
|
-
var m = Object.getPrototypeOf(
|
|
398
|
-
if (typeof
|
|
380
|
+
function is(g) {
|
|
381
|
+
var m = Object.getPrototypeOf(g);
|
|
382
|
+
if (typeof g != "function" || g === p || m !== p)
|
|
399
383
|
return m;
|
|
400
|
-
var S =
|
|
401
|
-
if (
|
|
384
|
+
var S = g.prototype, _ = S && Object.getPrototypeOf(S);
|
|
385
|
+
if (_ == null || _ === Object.prototype)
|
|
402
386
|
return m;
|
|
403
|
-
var
|
|
404
|
-
return typeof
|
|
387
|
+
var J = _.constructor;
|
|
388
|
+
return typeof J != "function" || J === g ? m : J;
|
|
405
389
|
}
|
|
406
390
|
function gf() {
|
|
407
|
-
var
|
|
408
|
-
!
|
|
409
|
-
var m, S,
|
|
410
|
-
registerProvider:
|
|
391
|
+
var g;
|
|
392
|
+
!W(y) && typeof t.Reflect < "u" && !(y in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (g = bf(t.Reflect));
|
|
393
|
+
var m, S, _, J = new d(), Ee = {
|
|
394
|
+
registerProvider: Be,
|
|
411
395
|
getProvider: T,
|
|
412
396
|
setProvider: U
|
|
413
397
|
};
|
|
414
|
-
return
|
|
415
|
-
function
|
|
416
|
-
if (!Object.isExtensible(
|
|
398
|
+
return Ee;
|
|
399
|
+
function Be(F) {
|
|
400
|
+
if (!Object.isExtensible(Ee))
|
|
417
401
|
throw new Error("Cannot add provider to a frozen registry.");
|
|
418
402
|
switch (!0) {
|
|
419
|
-
case
|
|
403
|
+
case g === F:
|
|
420
404
|
break;
|
|
421
|
-
case
|
|
422
|
-
m =
|
|
405
|
+
case W(m):
|
|
406
|
+
m = F;
|
|
423
407
|
break;
|
|
424
|
-
case m ===
|
|
408
|
+
case m === F:
|
|
425
409
|
break;
|
|
426
|
-
case
|
|
427
|
-
S =
|
|
410
|
+
case W(S):
|
|
411
|
+
S = F;
|
|
428
412
|
break;
|
|
429
|
-
case S ===
|
|
413
|
+
case S === F:
|
|
430
414
|
break;
|
|
431
415
|
default:
|
|
432
|
-
|
|
416
|
+
_ === void 0 && (_ = new N()), _.add(F);
|
|
433
417
|
break;
|
|
434
418
|
}
|
|
435
419
|
}
|
|
436
|
-
function re(
|
|
437
|
-
if (!
|
|
438
|
-
if (m.isProviderFor(
|
|
420
|
+
function re(F, ne) {
|
|
421
|
+
if (!W(m)) {
|
|
422
|
+
if (m.isProviderFor(F, ne))
|
|
439
423
|
return m;
|
|
440
|
-
if (!
|
|
441
|
-
if (S.isProviderFor(
|
|
424
|
+
if (!W(S)) {
|
|
425
|
+
if (S.isProviderFor(F, ne))
|
|
442
426
|
return m;
|
|
443
|
-
if (!
|
|
444
|
-
for (var pe = ka(
|
|
445
|
-
var
|
|
446
|
-
if (!
|
|
427
|
+
if (!W(_))
|
|
428
|
+
for (var pe = ka(_); ; ) {
|
|
429
|
+
var Se = Ba(pe);
|
|
430
|
+
if (!Se)
|
|
447
431
|
return;
|
|
448
|
-
var rt = xa(
|
|
449
|
-
if (rt.isProviderFor(
|
|
432
|
+
var rt = xa(Se);
|
|
433
|
+
if (rt.isProviderFor(F, ne))
|
|
450
434
|
return Ca(pe), rt;
|
|
451
435
|
}
|
|
452
436
|
}
|
|
453
437
|
}
|
|
454
|
-
if (!
|
|
455
|
-
return
|
|
438
|
+
if (!W(g) && g.isProviderFor(F, ne))
|
|
439
|
+
return g;
|
|
456
440
|
}
|
|
457
|
-
function T(
|
|
458
|
-
var pe =
|
|
459
|
-
return
|
|
441
|
+
function T(F, ne) {
|
|
442
|
+
var pe = J.get(F), Se;
|
|
443
|
+
return W(pe) || (Se = pe.get(ne)), W(Se) && (Se = re(F, ne), W(Se) || (W(pe) && (pe = new z(), J.set(F, pe)), pe.set(ne, Se))), Se;
|
|
460
444
|
}
|
|
461
|
-
function
|
|
462
|
-
if (
|
|
445
|
+
function H(F) {
|
|
446
|
+
if (W(F))
|
|
463
447
|
throw new TypeError();
|
|
464
|
-
return m ===
|
|
448
|
+
return m === F || S === F || !W(_) && _.has(F);
|
|
465
449
|
}
|
|
466
|
-
function U(
|
|
467
|
-
if (!
|
|
450
|
+
function U(F, ne, pe) {
|
|
451
|
+
if (!H(pe))
|
|
468
452
|
throw new Error("Metadata provider not registered.");
|
|
469
|
-
var
|
|
470
|
-
if (
|
|
471
|
-
if (!
|
|
453
|
+
var Se = T(F, ne);
|
|
454
|
+
if (Se !== pe) {
|
|
455
|
+
if (!W(Se))
|
|
472
456
|
return !1;
|
|
473
|
-
var rt =
|
|
474
|
-
|
|
457
|
+
var rt = J.get(F);
|
|
458
|
+
W(rt) && (rt = new z(), J.set(F, rt)), rt.set(ne, pe);
|
|
475
459
|
}
|
|
476
460
|
return !0;
|
|
477
461
|
}
|
|
478
462
|
}
|
|
479
463
|
function vf() {
|
|
480
|
-
var
|
|
481
|
-
return !
|
|
464
|
+
var g;
|
|
465
|
+
return !W(y) && q(t.Reflect) && Object.isExtensible(t.Reflect) && (g = t.Reflect[y]), W(g) && (g = gf()), !W(y) && q(t.Reflect) && Object.isExtensible(t.Reflect) && Object.defineProperty(t.Reflect, y, {
|
|
482
466
|
enumerable: !1,
|
|
483
467
|
configurable: !1,
|
|
484
468
|
writable: !1,
|
|
485
|
-
value:
|
|
486
|
-
}),
|
|
469
|
+
value: g
|
|
470
|
+
}), g;
|
|
487
471
|
}
|
|
488
|
-
function mf(
|
|
472
|
+
function mf(g) {
|
|
489
473
|
var m = new d(), S = {
|
|
490
|
-
isProviderFor: function(
|
|
491
|
-
var
|
|
492
|
-
return
|
|
474
|
+
isProviderFor: function(H, U) {
|
|
475
|
+
var F = m.get(H);
|
|
476
|
+
return W(F) ? !1 : F.has(U);
|
|
493
477
|
},
|
|
494
|
-
OrdinaryDefineOwnMetadata:
|
|
495
|
-
OrdinaryHasOwnMetadata:
|
|
496
|
-
OrdinaryGetOwnMetadata:
|
|
478
|
+
OrdinaryDefineOwnMetadata: Be,
|
|
479
|
+
OrdinaryHasOwnMetadata: J,
|
|
480
|
+
OrdinaryGetOwnMetadata: Ee,
|
|
497
481
|
OrdinaryOwnMetadataKeys: re,
|
|
498
482
|
OrdinaryDeleteMetadata: T
|
|
499
483
|
};
|
|
500
484
|
return A.registerProvider(S), S;
|
|
501
|
-
function
|
|
502
|
-
var ne = m.get(
|
|
503
|
-
if (
|
|
504
|
-
if (!
|
|
485
|
+
function _(H, U, F) {
|
|
486
|
+
var ne = m.get(H), pe = !1;
|
|
487
|
+
if (W(ne)) {
|
|
488
|
+
if (!F)
|
|
505
489
|
return;
|
|
506
|
-
ne = new
|
|
490
|
+
ne = new z(), m.set(H, ne), pe = !0;
|
|
507
491
|
}
|
|
508
|
-
var
|
|
509
|
-
if (
|
|
510
|
-
if (!
|
|
492
|
+
var Se = ne.get(U);
|
|
493
|
+
if (W(Se)) {
|
|
494
|
+
if (!F)
|
|
511
495
|
return;
|
|
512
|
-
if (
|
|
513
|
-
throw ne.delete(U), pe && m.delete(
|
|
496
|
+
if (Se = new z(), ne.set(U, Se), !g.setProvider(H, U, S))
|
|
497
|
+
throw ne.delete(U), pe && m.delete(H), new Error("Wrong provider for target.");
|
|
514
498
|
}
|
|
515
|
-
return
|
|
499
|
+
return Se;
|
|
516
500
|
}
|
|
517
|
-
function
|
|
518
|
-
var ne =
|
|
501
|
+
function J(H, U, F) {
|
|
502
|
+
var ne = _(
|
|
519
503
|
U,
|
|
520
|
-
|
|
504
|
+
F,
|
|
521
505
|
/*Create*/
|
|
522
506
|
!1
|
|
523
507
|
);
|
|
524
|
-
return
|
|
508
|
+
return W(ne) ? !1 : qe(ne.has(H));
|
|
525
509
|
}
|
|
526
|
-
function
|
|
527
|
-
var ne =
|
|
510
|
+
function Ee(H, U, F) {
|
|
511
|
+
var ne = _(
|
|
528
512
|
U,
|
|
529
|
-
|
|
513
|
+
F,
|
|
530
514
|
/*Create*/
|
|
531
515
|
!1
|
|
532
516
|
);
|
|
533
|
-
if (!
|
|
534
|
-
return ne.get(
|
|
517
|
+
if (!W(ne))
|
|
518
|
+
return ne.get(H);
|
|
535
519
|
}
|
|
536
|
-
function
|
|
537
|
-
var pe =
|
|
538
|
-
|
|
520
|
+
function Be(H, U, F, ne) {
|
|
521
|
+
var pe = _(
|
|
522
|
+
F,
|
|
539
523
|
ne,
|
|
540
524
|
/*Create*/
|
|
541
525
|
!0
|
|
542
526
|
);
|
|
543
|
-
pe.set(
|
|
527
|
+
pe.set(H, U);
|
|
544
528
|
}
|
|
545
|
-
function re(
|
|
546
|
-
var
|
|
547
|
-
|
|
529
|
+
function re(H, U) {
|
|
530
|
+
var F = [], ne = _(
|
|
531
|
+
H,
|
|
548
532
|
U,
|
|
549
533
|
/*Create*/
|
|
550
534
|
!1
|
|
551
535
|
);
|
|
552
|
-
if (
|
|
553
|
-
return
|
|
554
|
-
for (var pe = ne.keys(),
|
|
555
|
-
var Ia = Ba(
|
|
536
|
+
if (W(ne))
|
|
537
|
+
return F;
|
|
538
|
+
for (var pe = ne.keys(), Se = ka(pe), rt = 0; ; ) {
|
|
539
|
+
var Ia = Ba(Se);
|
|
556
540
|
if (!Ia)
|
|
557
|
-
return
|
|
541
|
+
return F.length = rt, F;
|
|
558
542
|
var kf = xa(Ia);
|
|
559
543
|
try {
|
|
560
|
-
|
|
544
|
+
F[rt] = kf;
|
|
561
545
|
} catch (xf) {
|
|
562
546
|
try {
|
|
563
|
-
Ca(
|
|
547
|
+
Ca(Se);
|
|
564
548
|
} finally {
|
|
565
549
|
throw xf;
|
|
566
550
|
}
|
|
@@ -568,52 +552,52 @@ var Ea;
|
|
|
568
552
|
rt++;
|
|
569
553
|
}
|
|
570
554
|
}
|
|
571
|
-
function T(
|
|
572
|
-
var ne =
|
|
555
|
+
function T(H, U, F) {
|
|
556
|
+
var ne = _(
|
|
573
557
|
U,
|
|
574
|
-
|
|
558
|
+
F,
|
|
575
559
|
/*Create*/
|
|
576
560
|
!1
|
|
577
561
|
);
|
|
578
|
-
if (
|
|
562
|
+
if (W(ne) || !ne.delete(H))
|
|
579
563
|
return !1;
|
|
580
564
|
if (ne.size === 0) {
|
|
581
565
|
var pe = m.get(U);
|
|
582
|
-
|
|
566
|
+
W(pe) || (pe.delete(F), pe.size === 0 && m.delete(pe));
|
|
583
567
|
}
|
|
584
568
|
return !0;
|
|
585
569
|
}
|
|
586
570
|
}
|
|
587
|
-
function bf(
|
|
588
|
-
var m =
|
|
589
|
-
isProviderFor: function(T,
|
|
590
|
-
var U =
|
|
591
|
-
return
|
|
571
|
+
function bf(g) {
|
|
572
|
+
var m = g.defineMetadata, S = g.hasOwnMetadata, _ = g.getOwnMetadata, J = g.getOwnMetadataKeys, Ee = g.deleteMetadata, Be = new d(), re = {
|
|
573
|
+
isProviderFor: function(T, H) {
|
|
574
|
+
var U = Be.get(T);
|
|
575
|
+
return W(U) ? J(T, H).length ? (W(U) && (U = new N(), Be.set(T, U)), U.add(H), !0) : !1 : U.has(H);
|
|
592
576
|
},
|
|
593
577
|
OrdinaryDefineOwnMetadata: m,
|
|
594
578
|
OrdinaryHasOwnMetadata: S,
|
|
595
|
-
OrdinaryGetOwnMetadata:
|
|
596
|
-
OrdinaryOwnMetadataKeys:
|
|
597
|
-
OrdinaryDeleteMetadata:
|
|
579
|
+
OrdinaryGetOwnMetadata: _,
|
|
580
|
+
OrdinaryOwnMetadataKeys: J,
|
|
581
|
+
OrdinaryDeleteMetadata: Ee
|
|
598
582
|
};
|
|
599
583
|
return re;
|
|
600
584
|
}
|
|
601
|
-
function Ur(
|
|
602
|
-
var
|
|
603
|
-
if (!
|
|
604
|
-
return
|
|
585
|
+
function Ur(g, m, S) {
|
|
586
|
+
var _ = A.getProvider(g, m);
|
|
587
|
+
if (!W(_))
|
|
588
|
+
return _;
|
|
605
589
|
if (S) {
|
|
606
|
-
if (A.setProvider(
|
|
590
|
+
if (A.setProvider(g, m, b))
|
|
607
591
|
return b;
|
|
608
592
|
throw new Error("Illegal state.");
|
|
609
593
|
}
|
|
610
594
|
}
|
|
611
595
|
function wf() {
|
|
612
|
-
var
|
|
596
|
+
var g = {}, m = [], S = (
|
|
613
597
|
/** @class */
|
|
614
598
|
function() {
|
|
615
|
-
function re(T,
|
|
616
|
-
this._index = 0, this._keys = T, this._values =
|
|
599
|
+
function re(T, H, U) {
|
|
600
|
+
this._index = 0, this._keys = T, this._values = H, this._selector = U;
|
|
617
601
|
}
|
|
618
602
|
return re.prototype["@@iterator"] = function() {
|
|
619
603
|
return this;
|
|
@@ -622,8 +606,8 @@ var Ea;
|
|
|
622
606
|
}, re.prototype.next = function() {
|
|
623
607
|
var T = this._index;
|
|
624
608
|
if (T >= 0 && T < this._keys.length) {
|
|
625
|
-
var
|
|
626
|
-
return T + 1 >= this._keys.length ? (this._index = -1, this._keys = m, this._values = m) : this._index++, { value:
|
|
609
|
+
var H = this._selector(this._keys[T], this._values[T]);
|
|
610
|
+
return T + 1 >= this._keys.length ? (this._index = -1, this._keys = m, this._values = m) : this._index++, { value: H, done: !1 };
|
|
627
611
|
}
|
|
628
612
|
return { value: void 0, done: !0 };
|
|
629
613
|
}, re.prototype.throw = function(T) {
|
|
@@ -632,11 +616,11 @@ var Ea;
|
|
|
632
616
|
return this._index >= 0 && (this._index = -1, this._keys = m, this._values = m), { value: T, done: !0 };
|
|
633
617
|
}, re;
|
|
634
618
|
}()
|
|
635
|
-
),
|
|
619
|
+
), _ = (
|
|
636
620
|
/** @class */
|
|
637
621
|
function() {
|
|
638
622
|
function re() {
|
|
639
|
-
this._keys = [], this._values = [], this._cacheKey =
|
|
623
|
+
this._keys = [], this._values = [], this._cacheKey = g, this._cacheIndex = -2;
|
|
640
624
|
}
|
|
641
625
|
return Object.defineProperty(re.prototype, "size", {
|
|
642
626
|
get: function() {
|
|
@@ -651,44 +635,44 @@ var Ea;
|
|
|
651
635
|
!1
|
|
652
636
|
) >= 0;
|
|
653
637
|
}, re.prototype.get = function(T) {
|
|
654
|
-
var
|
|
638
|
+
var H = this._find(
|
|
655
639
|
T,
|
|
656
640
|
/*insert*/
|
|
657
641
|
!1
|
|
658
642
|
);
|
|
659
|
-
return
|
|
660
|
-
}, re.prototype.set = function(T,
|
|
643
|
+
return H >= 0 ? this._values[H] : void 0;
|
|
644
|
+
}, re.prototype.set = function(T, H) {
|
|
661
645
|
var U = this._find(
|
|
662
646
|
T,
|
|
663
647
|
/*insert*/
|
|
664
648
|
!0
|
|
665
649
|
);
|
|
666
|
-
return this._values[U] =
|
|
650
|
+
return this._values[U] = H, this;
|
|
667
651
|
}, re.prototype.delete = function(T) {
|
|
668
|
-
var
|
|
652
|
+
var H = this._find(
|
|
669
653
|
T,
|
|
670
654
|
/*insert*/
|
|
671
655
|
!1
|
|
672
656
|
);
|
|
673
|
-
if (
|
|
674
|
-
for (var U = this._keys.length,
|
|
675
|
-
this._keys[
|
|
676
|
-
return this._keys.length--, this._values.length--, rs(T, this._cacheKey) && (this._cacheKey =
|
|
657
|
+
if (H >= 0) {
|
|
658
|
+
for (var U = this._keys.length, F = H + 1; F < U; F++)
|
|
659
|
+
this._keys[F - 1] = this._keys[F], this._values[F - 1] = this._values[F];
|
|
660
|
+
return this._keys.length--, this._values.length--, rs(T, this._cacheKey) && (this._cacheKey = g, this._cacheIndex = -2), !0;
|
|
677
661
|
}
|
|
678
662
|
return !1;
|
|
679
663
|
}, re.prototype.clear = function() {
|
|
680
|
-
this._keys.length = 0, this._values.length = 0, this._cacheKey =
|
|
664
|
+
this._keys.length = 0, this._values.length = 0, this._cacheKey = g, this._cacheIndex = -2;
|
|
681
665
|
}, re.prototype.keys = function() {
|
|
682
|
-
return new S(this._keys, this._values,
|
|
666
|
+
return new S(this._keys, this._values, J);
|
|
683
667
|
}, re.prototype.values = function() {
|
|
684
|
-
return new S(this._keys, this._values,
|
|
668
|
+
return new S(this._keys, this._values, Ee);
|
|
685
669
|
}, re.prototype.entries = function() {
|
|
686
|
-
return new S(this._keys, this._values,
|
|
670
|
+
return new S(this._keys, this._values, Be);
|
|
687
671
|
}, re.prototype["@@iterator"] = function() {
|
|
688
672
|
return this.entries();
|
|
689
673
|
}, re.prototype[a] = function() {
|
|
690
674
|
return this.entries();
|
|
691
|
-
}, re.prototype._find = function(T,
|
|
675
|
+
}, re.prototype._find = function(T, H) {
|
|
692
676
|
if (!rs(this._cacheKey, T)) {
|
|
693
677
|
this._cacheIndex = -1;
|
|
694
678
|
for (var U = 0; U < this._keys.length; U++)
|
|
@@ -697,27 +681,27 @@ var Ea;
|
|
|
697
681
|
break;
|
|
698
682
|
}
|
|
699
683
|
}
|
|
700
|
-
return this._cacheIndex < 0 &&
|
|
684
|
+
return this._cacheIndex < 0 && H && (this._cacheIndex = this._keys.length, this._keys.push(T), this._values.push(void 0)), this._cacheIndex;
|
|
701
685
|
}, re;
|
|
702
686
|
}()
|
|
703
687
|
);
|
|
704
|
-
return
|
|
705
|
-
function
|
|
688
|
+
return _;
|
|
689
|
+
function J(re, T) {
|
|
706
690
|
return re;
|
|
707
691
|
}
|
|
708
|
-
function
|
|
692
|
+
function Ee(re, T) {
|
|
709
693
|
return T;
|
|
710
694
|
}
|
|
711
|
-
function
|
|
695
|
+
function Be(re, T) {
|
|
712
696
|
return [re, T];
|
|
713
697
|
}
|
|
714
698
|
}
|
|
715
699
|
function Af() {
|
|
716
|
-
var
|
|
700
|
+
var g = (
|
|
717
701
|
/** @class */
|
|
718
702
|
function() {
|
|
719
703
|
function m() {
|
|
720
|
-
this._map = new
|
|
704
|
+
this._map = new z();
|
|
721
705
|
}
|
|
722
706
|
return Object.defineProperty(m.prototype, "size", {
|
|
723
707
|
get: function() {
|
|
@@ -746,84 +730,84 @@ var Ea;
|
|
|
746
730
|
}, m;
|
|
747
731
|
}()
|
|
748
732
|
);
|
|
749
|
-
return
|
|
733
|
+
return g;
|
|
750
734
|
}
|
|
751
735
|
function Sf() {
|
|
752
|
-
var
|
|
736
|
+
var g = 16, m = v.create(), S = _();
|
|
753
737
|
return (
|
|
754
738
|
/** @class */
|
|
755
739
|
function() {
|
|
756
740
|
function T() {
|
|
757
|
-
this._key =
|
|
741
|
+
this._key = _();
|
|
758
742
|
}
|
|
759
|
-
return T.prototype.has = function(
|
|
760
|
-
var U =
|
|
761
|
-
|
|
743
|
+
return T.prototype.has = function(H) {
|
|
744
|
+
var U = J(
|
|
745
|
+
H,
|
|
762
746
|
/*create*/
|
|
763
747
|
!1
|
|
764
748
|
);
|
|
765
749
|
return U !== void 0 ? v.has(U, this._key) : !1;
|
|
766
|
-
}, T.prototype.get = function(
|
|
767
|
-
var U =
|
|
768
|
-
|
|
750
|
+
}, T.prototype.get = function(H) {
|
|
751
|
+
var U = J(
|
|
752
|
+
H,
|
|
769
753
|
/*create*/
|
|
770
754
|
!1
|
|
771
755
|
);
|
|
772
756
|
return U !== void 0 ? v.get(U, this._key) : void 0;
|
|
773
|
-
}, T.prototype.set = function(
|
|
774
|
-
var
|
|
775
|
-
|
|
757
|
+
}, T.prototype.set = function(H, U) {
|
|
758
|
+
var F = J(
|
|
759
|
+
H,
|
|
776
760
|
/*create*/
|
|
777
761
|
!0
|
|
778
762
|
);
|
|
779
|
-
return
|
|
780
|
-
}, T.prototype.delete = function(
|
|
781
|
-
var U =
|
|
782
|
-
|
|
763
|
+
return F[this._key] = U, this;
|
|
764
|
+
}, T.prototype.delete = function(H) {
|
|
765
|
+
var U = J(
|
|
766
|
+
H,
|
|
783
767
|
/*create*/
|
|
784
768
|
!1
|
|
785
769
|
);
|
|
786
770
|
return U !== void 0 ? delete U[this._key] : !1;
|
|
787
771
|
}, T.prototype.clear = function() {
|
|
788
|
-
this._key =
|
|
772
|
+
this._key = _();
|
|
789
773
|
}, T;
|
|
790
774
|
}()
|
|
791
775
|
);
|
|
792
|
-
function
|
|
776
|
+
function _() {
|
|
793
777
|
var T;
|
|
794
778
|
do
|
|
795
779
|
T = "@@WeakMap@@" + re();
|
|
796
780
|
while (v.has(m, T));
|
|
797
781
|
return m[T] = !0, T;
|
|
798
782
|
}
|
|
799
|
-
function
|
|
783
|
+
function J(T, H) {
|
|
800
784
|
if (!i.call(T, S)) {
|
|
801
|
-
if (!
|
|
785
|
+
if (!H)
|
|
802
786
|
return;
|
|
803
787
|
Object.defineProperty(T, S, { value: v.create() });
|
|
804
788
|
}
|
|
805
789
|
return T[S];
|
|
806
790
|
}
|
|
807
|
-
function
|
|
808
|
-
for (var U = 0; U <
|
|
791
|
+
function Ee(T, H) {
|
|
792
|
+
for (var U = 0; U < H; ++U)
|
|
809
793
|
T[U] = Math.random() * 255 | 0;
|
|
810
794
|
return T;
|
|
811
795
|
}
|
|
812
|
-
function
|
|
813
|
-
return typeof Uint8Array == "function" ? typeof crypto < "u" ? crypto.getRandomValues(new Uint8Array(T)) : typeof msCrypto < "u" ? msCrypto.getRandomValues(new Uint8Array(T)) :
|
|
796
|
+
function Be(T) {
|
|
797
|
+
return typeof Uint8Array == "function" ? typeof crypto < "u" ? crypto.getRandomValues(new Uint8Array(T)) : typeof msCrypto < "u" ? msCrypto.getRandomValues(new Uint8Array(T)) : Ee(new Uint8Array(T), T) : Ee(new Array(T), T);
|
|
814
798
|
}
|
|
815
799
|
function re() {
|
|
816
|
-
var T =
|
|
800
|
+
var T = Be(g);
|
|
817
801
|
T[6] = T[6] & 79 | 64, T[8] = T[8] & 191 | 128;
|
|
818
|
-
for (var
|
|
819
|
-
var
|
|
820
|
-
(U === 4 || U === 6 || U === 8) && (
|
|
802
|
+
for (var H = "", U = 0; U < g; ++U) {
|
|
803
|
+
var F = T[U];
|
|
804
|
+
(U === 4 || U === 6 || U === 8) && (H += "-"), F < 16 && (H += "0"), H += F.toString(16).toLowerCase();
|
|
821
805
|
}
|
|
822
|
-
return
|
|
806
|
+
return H;
|
|
823
807
|
}
|
|
824
808
|
}
|
|
825
|
-
function ns(
|
|
826
|
-
return
|
|
809
|
+
function ns(g) {
|
|
810
|
+
return g.__ = void 0, delete g.__, g;
|
|
827
811
|
}
|
|
828
812
|
});
|
|
829
813
|
})(Ea || (Ea = {}));
|
|
@@ -851,10 +835,10 @@ var Ea;
|
|
|
851
835
|
* SOFTWARE.
|
|
852
836
|
*
|
|
853
837
|
*/
|
|
854
|
-
const
|
|
838
|
+
const Of = "[object ArrayBuffer]";
|
|
855
839
|
class V {
|
|
856
840
|
static isArrayBuffer(e) {
|
|
857
|
-
return Object.prototype.toString.call(e) ===
|
|
841
|
+
return Object.prototype.toString.call(e) === Of;
|
|
858
842
|
}
|
|
859
843
|
static toArrayBuffer(e) {
|
|
860
844
|
return this.isArrayBuffer(e) ? e : e.byteLength === e.buffer.byteLength || e.byteOffset === 0 && e.byteLength === e.buffer.byteLength ? e.buffer : this.toUint8Array(e.buffer).slice(e.byteOffset, e.byteOffset + e.byteLength).buffer;
|
|
@@ -901,8 +885,8 @@ class V {
|
|
|
901
885
|
return e[e.length - 1] instanceof Function ? this.toView(n, e[e.length - 1]) : n.buffer;
|
|
902
886
|
}
|
|
903
887
|
}
|
|
904
|
-
const ss = "string",
|
|
905
|
-
class
|
|
888
|
+
const ss = "string", Nf = /^[0-9a-f]+$/i, _f = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, Tf = /^[a-zA-Z0-9-_]+$/;
|
|
889
|
+
class Oa {
|
|
906
890
|
static fromString(e) {
|
|
907
891
|
const t = unescape(encodeURIComponent(e)), i = new Uint8Array(t.length);
|
|
908
892
|
for (let n = 0; n < t.length; n++)
|
|
@@ -936,7 +920,7 @@ class ft {
|
|
|
936
920
|
}
|
|
937
921
|
class $ {
|
|
938
922
|
static isHex(e) {
|
|
939
|
-
return typeof e === ss &&
|
|
923
|
+
return typeof e === ss && Nf.test(e);
|
|
940
924
|
}
|
|
941
925
|
static isBase64(e) {
|
|
942
926
|
return typeof e === ss && _f.test(e);
|
|
@@ -1021,7 +1005,7 @@ class $ {
|
|
|
1021
1005
|
case "ascii":
|
|
1022
1006
|
return this.FromBinary(e);
|
|
1023
1007
|
case "utf8":
|
|
1024
|
-
return
|
|
1008
|
+
return Oa.fromString(e);
|
|
1025
1009
|
case "utf16":
|
|
1026
1010
|
case "utf16be":
|
|
1027
1011
|
return ft.fromString(e);
|
|
@@ -1037,7 +1021,7 @@ class $ {
|
|
|
1037
1021
|
case "ascii":
|
|
1038
1022
|
return this.ToBinary(e);
|
|
1039
1023
|
case "utf8":
|
|
1040
|
-
return
|
|
1024
|
+
return Oa.toString(e);
|
|
1041
1025
|
case "utf16":
|
|
1042
1026
|
case "utf16be":
|
|
1043
1027
|
return ft.toString(e);
|
|
@@ -1284,7 +1268,7 @@ class fn {
|
|
|
1284
1268
|
return Vo(this.items);
|
|
1285
1269
|
}
|
|
1286
1270
|
}
|
|
1287
|
-
const Hr = [new Uint8Array([1])],
|
|
1271
|
+
const Hr = [new Uint8Array([1])], Na = "0123456789", os = "name", _a = "valueHexView", Rf = "isHexOnly", Mf = "idBlock", Df = "tagClass", $f = "tagNumber", Uf = "isConstructed", Hf = "fromBER", Lf = "toBER", Ff = "local", Ue = "", ct = new ArrayBuffer(0), dn = new Uint8Array(0), zr = "EndOfContent", kl = "OCTET STRING", xl = "BIT STRING";
|
|
1288
1272
|
function pt(r) {
|
|
1289
1273
|
var e;
|
|
1290
1274
|
return e = class extends r {
|
|
@@ -1435,16 +1419,16 @@ class Bl extends pt(sr) {
|
|
|
1435
1419
|
return this.error = "End of input reached before message was fully decoded", -1;
|
|
1436
1420
|
if (u === v) {
|
|
1437
1421
|
v += 255;
|
|
1438
|
-
const
|
|
1439
|
-
for (let
|
|
1440
|
-
|
|
1422
|
+
const z = new Uint8Array(v);
|
|
1423
|
+
for (let N = 0; N < f.length; N++)
|
|
1424
|
+
z[N] = f[N];
|
|
1441
1425
|
f = this.valueHexView = new Uint8Array(v);
|
|
1442
1426
|
}
|
|
1443
1427
|
}
|
|
1444
1428
|
this.blockLength = u + 1, f[u - 1] = s[u] & 127;
|
|
1445
1429
|
const p = new Uint8Array(u);
|
|
1446
|
-
for (let
|
|
1447
|
-
p[
|
|
1430
|
+
for (let z = 0; z < u; z++)
|
|
1431
|
+
p[z] = f[z];
|
|
1448
1432
|
f = this.valueHexView = new Uint8Array(u), f.set(p), this.blockLength <= 9 ? this.tagNumber = gr(f, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
|
|
1449
1433
|
}
|
|
1450
1434
|
if (this.tagClass === 1 && this.isConstructed)
|
|
@@ -1611,14 +1595,14 @@ class El extends pt(De) {
|
|
|
1611
1595
|
}
|
|
1612
1596
|
}
|
|
1613
1597
|
El.NAME = "PrimitiveValueBlock";
|
|
1614
|
-
var
|
|
1598
|
+
var Ol;
|
|
1615
1599
|
class oi extends _e {
|
|
1616
1600
|
constructor(e = {}) {
|
|
1617
1601
|
super(e, El), this.idBlock.isConstructed = !1;
|
|
1618
1602
|
}
|
|
1619
1603
|
}
|
|
1620
|
-
|
|
1621
|
-
P.Primitive =
|
|
1604
|
+
Ol = oi;
|
|
1605
|
+
P.Primitive = Ol;
|
|
1622
1606
|
oi.NAME = "PRIMITIVE";
|
|
1623
1607
|
function Kf(r, e) {
|
|
1624
1608
|
if (r instanceof e)
|
|
@@ -1833,7 +1817,7 @@ class Vt extends De {
|
|
|
1833
1817
|
}
|
|
1834
1818
|
}
|
|
1835
1819
|
Vt.NAME = "ConstructedValueBlock";
|
|
1836
|
-
var
|
|
1820
|
+
var Nl;
|
|
1837
1821
|
class He extends _e {
|
|
1838
1822
|
constructor(e = {}) {
|
|
1839
1823
|
super(e, Vt), this.idBlock.isConstructed = !0;
|
|
@@ -1855,8 +1839,8 @@ ${e.join(`
|
|
|
1855
1839
|
`)}` : `${t} :`;
|
|
1856
1840
|
}
|
|
1857
1841
|
}
|
|
1858
|
-
|
|
1859
|
-
P.Constructed =
|
|
1842
|
+
Nl = He;
|
|
1843
|
+
P.Constructed = Nl;
|
|
1860
1844
|
He.NAME = "CONSTRUCTED";
|
|
1861
1845
|
class _l extends De {
|
|
1862
1846
|
fromBER(e, t, i) {
|
|
@@ -2131,7 +2115,7 @@ function Gf(r, e) {
|
|
|
2131
2115
|
let f = 0;
|
|
2132
2116
|
const v = u < a ? a : u;
|
|
2133
2117
|
let p = 0;
|
|
2134
|
-
for (let
|
|
2118
|
+
for (let z = v; z >= 0; z--, p++) {
|
|
2135
2119
|
switch (!0) {
|
|
2136
2120
|
case p < l.length:
|
|
2137
2121
|
f = s[a - p] + l[u - p] + t[0];
|
|
@@ -2252,8 +2236,8 @@ class Mo extends pt(De) {
|
|
|
2252
2236
|
}
|
|
2253
2237
|
}
|
|
2254
2238
|
for (let u = 0; u < t.length; u++)
|
|
2255
|
-
t[u] && (l = !0), l && (a +=
|
|
2256
|
-
return l === !1 && (a +=
|
|
2239
|
+
t[u] && (l = !0), l && (a += Na.charAt(t[u]));
|
|
2240
|
+
return l === !1 && (a += Na.charAt(0)), a;
|
|
2257
2241
|
}
|
|
2258
2242
|
}
|
|
2259
2243
|
Hl = Mo;
|
|
@@ -2908,15 +2892,15 @@ class Cn extends ci {
|
|
|
2908
2892
|
if (i.indexOf("-") !== -1)
|
|
2909
2893
|
throw new Error("Wrong input string for conversion");
|
|
2910
2894
|
} else {
|
|
2911
|
-
let p = 1,
|
|
2912
|
-
if (
|
|
2913
|
-
if (
|
|
2895
|
+
let p = 1, z = i.indexOf("+"), N = "";
|
|
2896
|
+
if (z === -1 && (z = i.indexOf("-"), p = -1), z !== -1) {
|
|
2897
|
+
if (N = i.substring(z + 1), i = i.substring(0, z), N.length !== 2 && N.length !== 4)
|
|
2914
2898
|
throw new Error("Wrong input string for conversion");
|
|
2915
|
-
let d = parseInt(
|
|
2899
|
+
let d = parseInt(N.substring(0, 2), 10);
|
|
2916
2900
|
if (isNaN(d.valueOf()))
|
|
2917
2901
|
throw new Error("Wrong input string for conversion");
|
|
2918
|
-
if (l = p * d,
|
|
2919
|
-
if (d = parseInt(
|
|
2902
|
+
if (l = p * d, N.length === 4) {
|
|
2903
|
+
if (d = parseInt(N.substring(2, 4), 10), isNaN(d.valueOf()))
|
|
2920
2904
|
throw new Error("Wrong input string for conversion");
|
|
2921
2905
|
u = p * d;
|
|
2922
2906
|
}
|
|
@@ -3707,42 +3691,42 @@ class bd {
|
|
|
3707
3691
|
continue;
|
|
3708
3692
|
const v = n.items[u], p = v.type;
|
|
3709
3693
|
if (typeof p == "number" || kt(p)) {
|
|
3710
|
-
const
|
|
3711
|
-
if (!
|
|
3694
|
+
const z = (i = v.converter) !== null && i !== void 0 ? i : kt(p) ? new p() : null;
|
|
3695
|
+
if (!z)
|
|
3712
3696
|
throw new Error("Converter is empty");
|
|
3713
3697
|
if (v.repeated)
|
|
3714
3698
|
if (v.implicit) {
|
|
3715
|
-
const
|
|
3699
|
+
const N = v.repeated === "sequence" ? xt : Bt, d = new N();
|
|
3716
3700
|
d.valueBlock = f.valueBlock;
|
|
3717
|
-
const
|
|
3718
|
-
if (
|
|
3719
|
-
throw new Error(`Cannot parse the child item. ${
|
|
3720
|
-
if (!("value" in
|
|
3701
|
+
const y = yr(d.toBER(!1));
|
|
3702
|
+
if (y.offset === -1)
|
|
3703
|
+
throw new Error(`Cannot parse the child item. ${y.result.error}`);
|
|
3704
|
+
if (!("value" in y.result.valueBlock && Array.isArray(y.result.valueBlock.value)))
|
|
3721
3705
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
3722
|
-
const A =
|
|
3723
|
-
l[u] = Array.from(A, (b) =>
|
|
3706
|
+
const A = y.result.valueBlock.value;
|
|
3707
|
+
l[u] = Array.from(A, (b) => z.fromASN(b));
|
|
3724
3708
|
} else
|
|
3725
|
-
l[u] = Array.from(f, (
|
|
3709
|
+
l[u] = Array.from(f, (N) => z.fromASN(N));
|
|
3726
3710
|
else {
|
|
3727
|
-
let
|
|
3711
|
+
let N = f;
|
|
3728
3712
|
if (v.implicit) {
|
|
3729
3713
|
let d;
|
|
3730
3714
|
if (kt(p))
|
|
3731
3715
|
d = new p().toSchema("");
|
|
3732
3716
|
else {
|
|
3733
|
-
const
|
|
3717
|
+
const y = h[p], A = wu[y];
|
|
3734
3718
|
if (!A)
|
|
3735
|
-
throw new Error(`Cannot get '${
|
|
3719
|
+
throw new Error(`Cannot get '${y}' class from asn1js module`);
|
|
3736
3720
|
d = new A();
|
|
3737
3721
|
}
|
|
3738
|
-
d.valueBlock =
|
|
3722
|
+
d.valueBlock = N.valueBlock, N = yr(d.toBER(!1)).result;
|
|
3739
3723
|
}
|
|
3740
|
-
l[u] =
|
|
3724
|
+
l[u] = z.fromASN(N);
|
|
3741
3725
|
}
|
|
3742
3726
|
} else if (v.repeated) {
|
|
3743
3727
|
if (!Array.isArray(f))
|
|
3744
3728
|
throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");
|
|
3745
|
-
l[u] = Array.from(f, (
|
|
3729
|
+
l[u] = Array.from(f, (z) => this.fromASN(z, p));
|
|
3746
3730
|
} else
|
|
3747
3731
|
l[u] = this.fromASN(f, p);
|
|
3748
3732
|
}
|
|
@@ -3866,7 +3850,7 @@ class fe extends Array {
|
|
|
3866
3850
|
}
|
|
3867
3851
|
}
|
|
3868
3852
|
}
|
|
3869
|
-
class
|
|
3853
|
+
class K {
|
|
3870
3854
|
static serialize(e) {
|
|
3871
3855
|
return Go.serialize(e);
|
|
3872
3856
|
}
|
|
@@ -3874,7 +3858,7 @@ class q {
|
|
|
3874
3858
|
return bd.parse(e, t);
|
|
3875
3859
|
}
|
|
3876
3860
|
static toString(e) {
|
|
3877
|
-
const t = V.isBufferSource(e) ? V.toArrayBuffer(e) :
|
|
3861
|
+
const t = V.isBufferSource(e) ? V.toArrayBuffer(e) : K.serialize(e), i = yr(t);
|
|
3878
3862
|
if (i.offset === -1)
|
|
3879
3863
|
throw new Error(`Cannot decode ASN.1 data. ${i.result.error}`);
|
|
3880
3864
|
return i.result.toString();
|
|
@@ -3900,34 +3884,34 @@ var ku = { exports: {} };
|
|
|
3900
3884
|
deprecatedTransitional: new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${a})?)$`, "i"),
|
|
3901
3885
|
transitional: new RegExp(`^((?:${l})|(?:::)(?:${l})?)${t}\\.${t}\\.${t}\\.${t}(${a})?$`, "i")
|
|
3902
3886
|
};
|
|
3903
|
-
function f(d,
|
|
3887
|
+
function f(d, y) {
|
|
3904
3888
|
if (d.indexOf("::") !== d.lastIndexOf("::"))
|
|
3905
3889
|
return null;
|
|
3906
|
-
let A = 0, b = -1,
|
|
3907
|
-
for (
|
|
3890
|
+
let A = 0, b = -1, O = (d.match(u.zoneIndex) || [])[0], k, C;
|
|
3891
|
+
for (O && (O = O.substring(1), d = d.replace(/%.+$/, "")); (b = d.indexOf(":", b + 1)) >= 0; )
|
|
3908
3892
|
A++;
|
|
3909
|
-
if (d.substr(0, 2) === "::" && A--, d.substr(-2, 2) === "::" && A--, A >
|
|
3893
|
+
if (d.substr(0, 2) === "::" && A--, d.substr(-2, 2) === "::" && A--, A > y)
|
|
3910
3894
|
return null;
|
|
3911
|
-
for (C =
|
|
3895
|
+
for (C = y - A, k = ":"; C--; )
|
|
3912
3896
|
k += "0:";
|
|
3913
|
-
return d = d.replace("::", k), d[0] === ":" && (d = d.slice(1)), d[d.length - 1] === ":" && (d = d.slice(0, -1)),
|
|
3897
|
+
return d = d.replace("::", k), d[0] === ":" && (d = d.slice(1)), d[d.length - 1] === ":" && (d = d.slice(0, -1)), y = function() {
|
|
3914
3898
|
const ee = d.split(":"), le = [];
|
|
3915
3899
|
for (let M = 0; M < ee.length; M++)
|
|
3916
3900
|
le.push(parseInt(ee[M], 16));
|
|
3917
3901
|
return le;
|
|
3918
3902
|
}(), {
|
|
3919
|
-
parts:
|
|
3920
|
-
zoneId:
|
|
3903
|
+
parts: y,
|
|
3904
|
+
zoneId: O
|
|
3921
3905
|
};
|
|
3922
3906
|
}
|
|
3923
|
-
function v(d,
|
|
3924
|
-
if (d.length !==
|
|
3907
|
+
function v(d, y, A, b) {
|
|
3908
|
+
if (d.length !== y.length)
|
|
3925
3909
|
throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
|
|
3926
|
-
let
|
|
3910
|
+
let O = 0, k;
|
|
3927
3911
|
for (; b > 0; ) {
|
|
3928
|
-
if (k = A - b, k < 0 && (k = 0), d[
|
|
3912
|
+
if (k = A - b, k < 0 && (k = 0), d[O] >> k !== y[O] >> k)
|
|
3929
3913
|
return !1;
|
|
3930
|
-
b -= A,
|
|
3914
|
+
b -= A, O += 1;
|
|
3931
3915
|
}
|
|
3932
3916
|
return !0;
|
|
3933
3917
|
}
|
|
@@ -3941,21 +3925,21 @@ var ku = { exports: {} };
|
|
|
3941
3925
|
}
|
|
3942
3926
|
return parseInt(d, 10);
|
|
3943
3927
|
}
|
|
3944
|
-
function
|
|
3945
|
-
for (; d.length <
|
|
3928
|
+
function z(d, y) {
|
|
3929
|
+
for (; d.length < y; )
|
|
3946
3930
|
d = `0${d}`;
|
|
3947
3931
|
return d;
|
|
3948
3932
|
}
|
|
3949
|
-
const
|
|
3950
|
-
|
|
3951
|
-
function d(
|
|
3952
|
-
if (
|
|
3933
|
+
const N = {};
|
|
3934
|
+
N.IPv4 = function() {
|
|
3935
|
+
function d(y) {
|
|
3936
|
+
if (y.length !== 4)
|
|
3953
3937
|
throw new Error("ipaddr: ipv4 octet count should be 4");
|
|
3954
3938
|
let A, b;
|
|
3955
|
-
for (A = 0; A <
|
|
3956
|
-
if (b =
|
|
3939
|
+
for (A = 0; A < y.length; A++)
|
|
3940
|
+
if (b = y[A], !(0 <= b && b <= 255))
|
|
3957
3941
|
throw new Error("ipaddr: ipv4 octet should fit in 8 bits");
|
|
3958
|
-
this.octets =
|
|
3942
|
+
this.octets = y;
|
|
3959
3943
|
}
|
|
3960
3944
|
return d.prototype.SpecialRanges = {
|
|
3961
3945
|
unspecified: [[new d([0, 0, 0, 0]), 8]],
|
|
@@ -3986,13 +3970,13 @@ var ku = { exports: {} };
|
|
|
3986
3970
|
]
|
|
3987
3971
|
}, d.prototype.kind = function() {
|
|
3988
3972
|
return "ipv4";
|
|
3989
|
-
}, d.prototype.match = function(
|
|
3973
|
+
}, d.prototype.match = function(y, A) {
|
|
3990
3974
|
let b;
|
|
3991
|
-
if (A === void 0 && (b =
|
|
3975
|
+
if (A === void 0 && (b = y, y = b[0], A = b[1]), y.kind() !== "ipv4")
|
|
3992
3976
|
throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");
|
|
3993
|
-
return v(this.octets,
|
|
3977
|
+
return v(this.octets, y.octets, 8, A);
|
|
3994
3978
|
}, d.prototype.prefixLengthFromSubnetMask = function() {
|
|
3995
|
-
let
|
|
3979
|
+
let y = 0, A = !1;
|
|
3996
3980
|
const b = {
|
|
3997
3981
|
0: 8,
|
|
3998
3982
|
128: 7,
|
|
@@ -4004,66 +3988,66 @@ var ku = { exports: {} };
|
|
|
4004
3988
|
254: 1,
|
|
4005
3989
|
255: 0
|
|
4006
3990
|
};
|
|
4007
|
-
let
|
|
4008
|
-
for (
|
|
4009
|
-
if (k = this.octets[
|
|
3991
|
+
let O, k, C;
|
|
3992
|
+
for (O = 3; O >= 0; O -= 1)
|
|
3993
|
+
if (k = this.octets[O], k in b) {
|
|
4010
3994
|
if (C = b[k], A && C !== 0)
|
|
4011
3995
|
return null;
|
|
4012
|
-
C !== 8 && (A = !0),
|
|
3996
|
+
C !== 8 && (A = !0), y += C;
|
|
4013
3997
|
} else
|
|
4014
3998
|
return null;
|
|
4015
|
-
return 32 -
|
|
3999
|
+
return 32 - y;
|
|
4016
4000
|
}, d.prototype.range = function() {
|
|
4017
|
-
return
|
|
4001
|
+
return N.subnetMatch(this, this.SpecialRanges);
|
|
4018
4002
|
}, d.prototype.toByteArray = function() {
|
|
4019
4003
|
return this.octets.slice(0);
|
|
4020
4004
|
}, d.prototype.toIPv4MappedAddress = function() {
|
|
4021
|
-
return
|
|
4005
|
+
return N.IPv6.parse(`::ffff:${this.toString()}`);
|
|
4022
4006
|
}, d.prototype.toNormalizedString = function() {
|
|
4023
4007
|
return this.toString();
|
|
4024
4008
|
}, d.prototype.toString = function() {
|
|
4025
4009
|
return this.octets.join(".");
|
|
4026
4010
|
}, d;
|
|
4027
|
-
}(),
|
|
4011
|
+
}(), N.IPv4.broadcastAddressFromCIDR = function(d) {
|
|
4028
4012
|
try {
|
|
4029
|
-
const
|
|
4013
|
+
const y = this.parseCIDR(d), A = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [];
|
|
4030
4014
|
let k = 0;
|
|
4031
4015
|
for (; k < 4; )
|
|
4032
|
-
|
|
4033
|
-
return new this(
|
|
4016
|
+
O.push(parseInt(A[k], 10) | parseInt(b[k], 10) ^ 255), k++;
|
|
4017
|
+
return new this(O);
|
|
4034
4018
|
} catch {
|
|
4035
4019
|
throw new Error("ipaddr: the address does not have IPv4 CIDR format");
|
|
4036
4020
|
}
|
|
4037
|
-
},
|
|
4021
|
+
}, N.IPv4.isIPv4 = function(d) {
|
|
4038
4022
|
return this.parser(d) !== null;
|
|
4039
|
-
},
|
|
4023
|
+
}, N.IPv4.isValid = function(d) {
|
|
4040
4024
|
try {
|
|
4041
4025
|
return new this(this.parser(d)), !0;
|
|
4042
4026
|
} catch {
|
|
4043
4027
|
return !1;
|
|
4044
4028
|
}
|
|
4045
|
-
},
|
|
4046
|
-
return !!(
|
|
4047
|
-
},
|
|
4048
|
-
let
|
|
4029
|
+
}, N.IPv4.isValidFourPartDecimal = function(d) {
|
|
4030
|
+
return !!(N.IPv4.isValid(d) && d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
|
|
4031
|
+
}, N.IPv4.networkAddressFromCIDR = function(d) {
|
|
4032
|
+
let y, A, b, O, k;
|
|
4049
4033
|
try {
|
|
4050
|
-
for (
|
|
4051
|
-
|
|
4052
|
-
return new this(
|
|
4034
|
+
for (y = this.parseCIDR(d), b = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [], A = 0; A < 4; )
|
|
4035
|
+
O.push(parseInt(b[A], 10) & parseInt(k[A], 10)), A++;
|
|
4036
|
+
return new this(O);
|
|
4053
4037
|
} catch {
|
|
4054
4038
|
throw new Error("ipaddr: the address does not have IPv4 CIDR format");
|
|
4055
4039
|
}
|
|
4056
|
-
},
|
|
4057
|
-
const
|
|
4058
|
-
if (
|
|
4040
|
+
}, N.IPv4.parse = function(d) {
|
|
4041
|
+
const y = this.parser(d);
|
|
4042
|
+
if (y === null)
|
|
4059
4043
|
throw new Error("ipaddr: string is not formatted like an IPv4 Address");
|
|
4060
|
-
return new this(
|
|
4061
|
-
},
|
|
4062
|
-
let
|
|
4063
|
-
if (
|
|
4064
|
-
const A = parseInt(
|
|
4044
|
+
return new this(y);
|
|
4045
|
+
}, N.IPv4.parseCIDR = function(d) {
|
|
4046
|
+
let y;
|
|
4047
|
+
if (y = d.match(/^(.+)\/(\d+)$/)) {
|
|
4048
|
+
const A = parseInt(y[2]);
|
|
4065
4049
|
if (A >= 0 && A <= 32) {
|
|
4066
|
-
const b = [this.parse(
|
|
4050
|
+
const b = [this.parse(y[1]), A];
|
|
4067
4051
|
return Object.defineProperty(b, "toString", {
|
|
4068
4052
|
value: function() {
|
|
4069
4053
|
return this.join("/");
|
|
@@ -4072,57 +4056,57 @@ var ku = { exports: {} };
|
|
|
4072
4056
|
}
|
|
4073
4057
|
}
|
|
4074
4058
|
throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range");
|
|
4075
|
-
},
|
|
4076
|
-
let
|
|
4077
|
-
if (
|
|
4059
|
+
}, N.IPv4.parser = function(d) {
|
|
4060
|
+
let y, A, b;
|
|
4061
|
+
if (y = d.match(i.fourOctet))
|
|
4078
4062
|
return function() {
|
|
4079
|
-
const
|
|
4080
|
-
for (let C = 0; C <
|
|
4081
|
-
A =
|
|
4063
|
+
const O = y.slice(1, 6), k = [];
|
|
4064
|
+
for (let C = 0; C < O.length; C++)
|
|
4065
|
+
A = O[C], k.push(p(A));
|
|
4082
4066
|
return k;
|
|
4083
4067
|
}();
|
|
4084
|
-
if (
|
|
4085
|
-
if (b = p(
|
|
4068
|
+
if (y = d.match(i.longValue)) {
|
|
4069
|
+
if (b = p(y[1]), b > 4294967295 || b < 0)
|
|
4086
4070
|
throw new Error("ipaddr: address outside defined range");
|
|
4087
4071
|
return function() {
|
|
4088
|
-
const
|
|
4072
|
+
const O = [];
|
|
4089
4073
|
let k;
|
|
4090
4074
|
for (k = 0; k <= 24; k += 8)
|
|
4091
|
-
|
|
4092
|
-
return
|
|
4075
|
+
O.push(b >> k & 255);
|
|
4076
|
+
return O;
|
|
4093
4077
|
}().reverse();
|
|
4094
|
-
} else return (
|
|
4095
|
-
const
|
|
4096
|
-
if (b = p(
|
|
4078
|
+
} else return (y = d.match(i.twoOctet)) ? function() {
|
|
4079
|
+
const O = y.slice(1, 4), k = [];
|
|
4080
|
+
if (b = p(O[1]), b > 16777215 || b < 0)
|
|
4097
4081
|
throw new Error("ipaddr: address outside defined range");
|
|
4098
|
-
return k.push(p(
|
|
4099
|
-
}() : (
|
|
4100
|
-
const
|
|
4101
|
-
if (b = p(
|
|
4082
|
+
return k.push(p(O[0])), k.push(b >> 16 & 255), k.push(b >> 8 & 255), k.push(b & 255), k;
|
|
4083
|
+
}() : (y = d.match(i.threeOctet)) ? function() {
|
|
4084
|
+
const O = y.slice(1, 5), k = [];
|
|
4085
|
+
if (b = p(O[2]), b > 65535 || b < 0)
|
|
4102
4086
|
throw new Error("ipaddr: address outside defined range");
|
|
4103
|
-
return k.push(p(
|
|
4087
|
+
return k.push(p(O[0])), k.push(p(O[1])), k.push(b >> 8 & 255), k.push(b & 255), k;
|
|
4104
4088
|
}() : null;
|
|
4105
|
-
},
|
|
4089
|
+
}, N.IPv4.subnetMaskFromPrefixLength = function(d) {
|
|
4106
4090
|
if (d = parseInt(d), d < 0 || d > 32)
|
|
4107
4091
|
throw new Error("ipaddr: invalid IPv4 prefix length");
|
|
4108
|
-
const
|
|
4092
|
+
const y = [0, 0, 0, 0];
|
|
4109
4093
|
let A = 0;
|
|
4110
4094
|
const b = Math.floor(d / 8);
|
|
4111
4095
|
for (; A < b; )
|
|
4112
|
-
|
|
4113
|
-
return b < 4 && (
|
|
4114
|
-
},
|
|
4115
|
-
function d(
|
|
4116
|
-
let b,
|
|
4117
|
-
if (
|
|
4096
|
+
y[A] = 255, A++;
|
|
4097
|
+
return b < 4 && (y[b] = Math.pow(2, d % 8) - 1 << 8 - d % 8), new this(y);
|
|
4098
|
+
}, N.IPv6 = function() {
|
|
4099
|
+
function d(y, A) {
|
|
4100
|
+
let b, O;
|
|
4101
|
+
if (y.length === 16)
|
|
4118
4102
|
for (this.parts = [], b = 0; b <= 14; b += 2)
|
|
4119
|
-
this.parts.push(
|
|
4120
|
-
else if (
|
|
4121
|
-
this.parts =
|
|
4103
|
+
this.parts.push(y[b] << 8 | y[b + 1]);
|
|
4104
|
+
else if (y.length === 8)
|
|
4105
|
+
this.parts = y;
|
|
4122
4106
|
else
|
|
4123
4107
|
throw new Error("ipaddr: ipv6 part count should be 8 or 16");
|
|
4124
4108
|
for (b = 0; b < this.parts.length; b++)
|
|
4125
|
-
if (
|
|
4109
|
+
if (O = this.parts[b], !(0 <= O && O <= 65535))
|
|
4126
4110
|
throw new Error("ipaddr: ipv6 part should fit in 16 bits");
|
|
4127
4111
|
A && (this.zoneId = A);
|
|
4128
4112
|
}
|
|
@@ -4153,13 +4137,13 @@ var ku = { exports: {} };
|
|
|
4153
4137
|
return this.range() === "ipv4Mapped";
|
|
4154
4138
|
}, d.prototype.kind = function() {
|
|
4155
4139
|
return "ipv6";
|
|
4156
|
-
}, d.prototype.match = function(
|
|
4140
|
+
}, d.prototype.match = function(y, A) {
|
|
4157
4141
|
let b;
|
|
4158
|
-
if (A === void 0 && (b =
|
|
4142
|
+
if (A === void 0 && (b = y, y = b[0], A = b[1]), y.kind() !== "ipv6")
|
|
4159
4143
|
throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");
|
|
4160
|
-
return v(this.parts,
|
|
4144
|
+
return v(this.parts, y.parts, 16, A);
|
|
4161
4145
|
}, d.prototype.prefixLengthFromSubnetMask = function() {
|
|
4162
|
-
let
|
|
4146
|
+
let y = 0, A = !1;
|
|
4163
4147
|
const b = {
|
|
4164
4148
|
0: 16,
|
|
4165
4149
|
32768: 15,
|
|
@@ -4179,168 +4163,168 @@ var ku = { exports: {} };
|
|
|
4179
4163
|
65534: 1,
|
|
4180
4164
|
65535: 0
|
|
4181
4165
|
};
|
|
4182
|
-
let
|
|
4166
|
+
let O, k;
|
|
4183
4167
|
for (let C = 7; C >= 0; C -= 1)
|
|
4184
|
-
if (
|
|
4185
|
-
if (k = b[
|
|
4168
|
+
if (O = this.parts[C], O in b) {
|
|
4169
|
+
if (k = b[O], A && k !== 0)
|
|
4186
4170
|
return null;
|
|
4187
|
-
k !== 16 && (A = !0),
|
|
4171
|
+
k !== 16 && (A = !0), y += k;
|
|
4188
4172
|
} else
|
|
4189
4173
|
return null;
|
|
4190
|
-
return 128 -
|
|
4174
|
+
return 128 - y;
|
|
4191
4175
|
}, d.prototype.range = function() {
|
|
4192
|
-
return
|
|
4176
|
+
return N.subnetMatch(this, this.SpecialRanges);
|
|
4193
4177
|
}, d.prototype.toByteArray = function() {
|
|
4194
|
-
let
|
|
4178
|
+
let y;
|
|
4195
4179
|
const A = [], b = this.parts;
|
|
4196
|
-
for (let
|
|
4197
|
-
|
|
4180
|
+
for (let O = 0; O < b.length; O++)
|
|
4181
|
+
y = b[O], A.push(y >> 8), A.push(y & 255);
|
|
4198
4182
|
return A;
|
|
4199
4183
|
}, d.prototype.toFixedLengthString = function() {
|
|
4200
|
-
const
|
|
4184
|
+
const y = (function() {
|
|
4201
4185
|
const b = [];
|
|
4202
|
-
for (let
|
|
4203
|
-
b.push(
|
|
4186
|
+
for (let O = 0; O < this.parts.length; O++)
|
|
4187
|
+
b.push(z(this.parts[O].toString(16), 4));
|
|
4204
4188
|
return b;
|
|
4205
4189
|
}).call(this).join(":");
|
|
4206
4190
|
let A = "";
|
|
4207
|
-
return this.zoneId && (A = `%${this.zoneId}`),
|
|
4191
|
+
return this.zoneId && (A = `%${this.zoneId}`), y + A;
|
|
4208
4192
|
}, d.prototype.toIPv4Address = function() {
|
|
4209
4193
|
if (!this.isIPv4MappedAddress())
|
|
4210
4194
|
throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");
|
|
4211
|
-
const
|
|
4212
|
-
return new
|
|
4195
|
+
const y = this.parts.slice(-2), A = y[0], b = y[1];
|
|
4196
|
+
return new N.IPv4([A >> 8, A & 255, b >> 8, b & 255]);
|
|
4213
4197
|
}, d.prototype.toNormalizedString = function() {
|
|
4214
|
-
const
|
|
4198
|
+
const y = (function() {
|
|
4215
4199
|
const b = [];
|
|
4216
|
-
for (let
|
|
4217
|
-
b.push(this.parts[
|
|
4200
|
+
for (let O = 0; O < this.parts.length; O++)
|
|
4201
|
+
b.push(this.parts[O].toString(16));
|
|
4218
4202
|
return b;
|
|
4219
4203
|
}).call(this).join(":");
|
|
4220
4204
|
let A = "";
|
|
4221
|
-
return this.zoneId && (A = `%${this.zoneId}`),
|
|
4205
|
+
return this.zoneId && (A = `%${this.zoneId}`), y + A;
|
|
4222
4206
|
}, d.prototype.toRFC5952String = function() {
|
|
4223
|
-
const
|
|
4224
|
-
let b = 0,
|
|
4225
|
-
for (; k =
|
|
4226
|
-
k[0].length >
|
|
4227
|
-
return
|
|
4207
|
+
const y = /((^|:)(0(:|$)){2,})/g, A = this.toNormalizedString();
|
|
4208
|
+
let b = 0, O = -1, k;
|
|
4209
|
+
for (; k = y.exec(A); )
|
|
4210
|
+
k[0].length > O && (b = k.index, O = k[0].length);
|
|
4211
|
+
return O < 0 ? A : `${A.substring(0, b)}::${A.substring(b + O)}`;
|
|
4228
4212
|
}, d.prototype.toString = function() {
|
|
4229
4213
|
return this.toRFC5952String();
|
|
4230
4214
|
}, d;
|
|
4231
|
-
}(),
|
|
4215
|
+
}(), N.IPv6.broadcastAddressFromCIDR = function(d) {
|
|
4232
4216
|
try {
|
|
4233
|
-
const
|
|
4217
|
+
const y = this.parseCIDR(d), A = y[0].toByteArray(), b = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [];
|
|
4234
4218
|
let k = 0;
|
|
4235
4219
|
for (; k < 16; )
|
|
4236
|
-
|
|
4237
|
-
return new this(
|
|
4238
|
-
} catch (
|
|
4239
|
-
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${
|
|
4220
|
+
O.push(parseInt(A[k], 10) | parseInt(b[k], 10) ^ 255), k++;
|
|
4221
|
+
return new this(O);
|
|
4222
|
+
} catch (y) {
|
|
4223
|
+
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${y})`);
|
|
4240
4224
|
}
|
|
4241
|
-
},
|
|
4225
|
+
}, N.IPv6.isIPv6 = function(d) {
|
|
4242
4226
|
return this.parser(d) !== null;
|
|
4243
|
-
},
|
|
4227
|
+
}, N.IPv6.isValid = function(d) {
|
|
4244
4228
|
if (typeof d == "string" && d.indexOf(":") === -1)
|
|
4245
4229
|
return !1;
|
|
4246
4230
|
try {
|
|
4247
|
-
const
|
|
4248
|
-
return new this(
|
|
4231
|
+
const y = this.parser(d);
|
|
4232
|
+
return new this(y.parts, y.zoneId), !0;
|
|
4249
4233
|
} catch {
|
|
4250
4234
|
return !1;
|
|
4251
4235
|
}
|
|
4252
|
-
},
|
|
4253
|
-
let
|
|
4236
|
+
}, N.IPv6.networkAddressFromCIDR = function(d) {
|
|
4237
|
+
let y, A, b, O, k;
|
|
4254
4238
|
try {
|
|
4255
|
-
for (
|
|
4256
|
-
|
|
4257
|
-
return new this(
|
|
4239
|
+
for (y = this.parseCIDR(d), b = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), O = [], A = 0; A < 16; )
|
|
4240
|
+
O.push(parseInt(b[A], 10) & parseInt(k[A], 10)), A++;
|
|
4241
|
+
return new this(O);
|
|
4258
4242
|
} catch (C) {
|
|
4259
4243
|
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${C})`);
|
|
4260
4244
|
}
|
|
4261
|
-
},
|
|
4262
|
-
const
|
|
4263
|
-
if (
|
|
4245
|
+
}, N.IPv6.parse = function(d) {
|
|
4246
|
+
const y = this.parser(d);
|
|
4247
|
+
if (y.parts === null)
|
|
4264
4248
|
throw new Error("ipaddr: string is not formatted like an IPv6 Address");
|
|
4265
|
-
return new this(
|
|
4266
|
-
},
|
|
4267
|
-
let
|
|
4268
|
-
if ((A = d.match(/^(.+)\/(\d+)$/)) && (
|
|
4269
|
-
return b = [this.parse(A[1]),
|
|
4249
|
+
return new this(y.parts, y.zoneId);
|
|
4250
|
+
}, N.IPv6.parseCIDR = function(d) {
|
|
4251
|
+
let y, A, b;
|
|
4252
|
+
if ((A = d.match(/^(.+)\/(\d+)$/)) && (y = parseInt(A[2]), y >= 0 && y <= 128))
|
|
4253
|
+
return b = [this.parse(A[1]), y], Object.defineProperty(b, "toString", {
|
|
4270
4254
|
value: function() {
|
|
4271
4255
|
return this.join("/");
|
|
4272
4256
|
}
|
|
4273
4257
|
}), b;
|
|
4274
4258
|
throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
|
|
4275
|
-
},
|
|
4276
|
-
let
|
|
4259
|
+
}, N.IPv6.parser = function(d) {
|
|
4260
|
+
let y, A, b, O, k, C;
|
|
4277
4261
|
if (b = d.match(u.deprecatedTransitional))
|
|
4278
4262
|
return this.parser(`::ffff:${b[1]}`);
|
|
4279
4263
|
if (u.native.test(d))
|
|
4280
4264
|
return f(d, 8);
|
|
4281
|
-
if ((b = d.match(u.transitional)) && (C = b[6] || "",
|
|
4265
|
+
if ((b = d.match(u.transitional)) && (C = b[6] || "", y = f(b[1].slice(0, -1) + C, 6), y.parts)) {
|
|
4282
4266
|
for (k = [
|
|
4283
4267
|
parseInt(b[2]),
|
|
4284
4268
|
parseInt(b[3]),
|
|
4285
4269
|
parseInt(b[4]),
|
|
4286
4270
|
parseInt(b[5])
|
|
4287
4271
|
], A = 0; A < k.length; A++)
|
|
4288
|
-
if (
|
|
4272
|
+
if (O = k[A], !(0 <= O && O <= 255))
|
|
4289
4273
|
return null;
|
|
4290
|
-
return
|
|
4291
|
-
parts:
|
|
4292
|
-
zoneId:
|
|
4274
|
+
return y.parts.push(k[0] << 8 | k[1]), y.parts.push(k[2] << 8 | k[3]), {
|
|
4275
|
+
parts: y.parts,
|
|
4276
|
+
zoneId: y.zoneId
|
|
4293
4277
|
};
|
|
4294
4278
|
}
|
|
4295
4279
|
return null;
|
|
4296
|
-
},
|
|
4280
|
+
}, N.IPv6.subnetMaskFromPrefixLength = function(d) {
|
|
4297
4281
|
if (d = parseInt(d), d < 0 || d > 128)
|
|
4298
4282
|
throw new Error("ipaddr: invalid IPv6 prefix length");
|
|
4299
|
-
const
|
|
4283
|
+
const y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
4300
4284
|
let A = 0;
|
|
4301
4285
|
const b = Math.floor(d / 8);
|
|
4302
4286
|
for (; A < b; )
|
|
4303
|
-
|
|
4304
|
-
return b < 16 && (
|
|
4305
|
-
},
|
|
4306
|
-
const
|
|
4307
|
-
if (
|
|
4308
|
-
return new
|
|
4309
|
-
if (
|
|
4310
|
-
return new
|
|
4287
|
+
y[A] = 255, A++;
|
|
4288
|
+
return b < 16 && (y[b] = Math.pow(2, d % 8) - 1 << 8 - d % 8), new this(y);
|
|
4289
|
+
}, N.fromByteArray = function(d) {
|
|
4290
|
+
const y = d.length;
|
|
4291
|
+
if (y === 4)
|
|
4292
|
+
return new N.IPv4(d);
|
|
4293
|
+
if (y === 16)
|
|
4294
|
+
return new N.IPv6(d);
|
|
4311
4295
|
throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address");
|
|
4312
|
-
},
|
|
4313
|
-
return
|
|
4314
|
-
},
|
|
4315
|
-
if (
|
|
4316
|
-
return
|
|
4317
|
-
if (
|
|
4318
|
-
return
|
|
4296
|
+
}, N.isValid = function(d) {
|
|
4297
|
+
return N.IPv6.isValid(d) || N.IPv4.isValid(d);
|
|
4298
|
+
}, N.parse = function(d) {
|
|
4299
|
+
if (N.IPv6.isValid(d))
|
|
4300
|
+
return N.IPv6.parse(d);
|
|
4301
|
+
if (N.IPv4.isValid(d))
|
|
4302
|
+
return N.IPv4.parse(d);
|
|
4319
4303
|
throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format");
|
|
4320
|
-
},
|
|
4304
|
+
}, N.parseCIDR = function(d) {
|
|
4321
4305
|
try {
|
|
4322
|
-
return
|
|
4306
|
+
return N.IPv6.parseCIDR(d);
|
|
4323
4307
|
} catch {
|
|
4324
4308
|
try {
|
|
4325
|
-
return
|
|
4309
|
+
return N.IPv4.parseCIDR(d);
|
|
4326
4310
|
} catch {
|
|
4327
4311
|
throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format");
|
|
4328
4312
|
}
|
|
4329
4313
|
}
|
|
4330
|
-
},
|
|
4331
|
-
const
|
|
4332
|
-
return
|
|
4333
|
-
},
|
|
4334
|
-
let b,
|
|
4314
|
+
}, N.process = function(d) {
|
|
4315
|
+
const y = this.parse(d);
|
|
4316
|
+
return y.kind() === "ipv6" && y.isIPv4MappedAddress() ? y.toIPv4Address() : y;
|
|
4317
|
+
}, N.subnetMatch = function(d, y, A) {
|
|
4318
|
+
let b, O, k, C;
|
|
4335
4319
|
A == null && (A = "unicast");
|
|
4336
|
-
for (
|
|
4337
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4338
|
-
for (k =
|
|
4320
|
+
for (O in y)
|
|
4321
|
+
if (Object.prototype.hasOwnProperty.call(y, O)) {
|
|
4322
|
+
for (k = y[O], k[0] && !(k[0] instanceof Array) && (k = [k]), b = 0; b < k.length; b++)
|
|
4339
4323
|
if (C = k[b], d.kind() === C[0].kind() && d.match.apply(d, C))
|
|
4340
|
-
return
|
|
4324
|
+
return O;
|
|
4341
4325
|
}
|
|
4342
4326
|
return A;
|
|
4343
|
-
}, r.exports ? r.exports =
|
|
4327
|
+
}, r.exports ? r.exports = N : e.ipaddr = N;
|
|
4344
4328
|
})(ys);
|
|
4345
4329
|
})(ku);
|
|
4346
4330
|
var Va = ku.exports;
|
|
@@ -4437,14 +4421,14 @@ let Ss = ws = class extends fe {
|
|
|
4437
4421
|
Ss = ws = o([
|
|
4438
4422
|
E({ type: B.Sequence, itemType: mr })
|
|
4439
4423
|
], Ss);
|
|
4440
|
-
let
|
|
4424
|
+
let Ce = As = class extends Ss {
|
|
4441
4425
|
constructor(e) {
|
|
4442
4426
|
super(e), Object.setPrototypeOf(this, As.prototype);
|
|
4443
4427
|
}
|
|
4444
4428
|
};
|
|
4445
|
-
|
|
4429
|
+
Ce = As = o([
|
|
4446
4430
|
E({ type: B.Sequence })
|
|
4447
|
-
],
|
|
4431
|
+
], Ce);
|
|
4448
4432
|
const wd = {
|
|
4449
4433
|
fromASN: (r) => Pa.toString(Pi.fromASN(r)),
|
|
4450
4434
|
toASN: (r) => Pi.toASN(Pa.fromString(r))
|
|
@@ -4489,7 +4473,7 @@ o([
|
|
|
4489
4473
|
c({ type: h.Any, context: 3, implicit: !0 })
|
|
4490
4474
|
], te.prototype, "x400Address", void 0);
|
|
4491
4475
|
o([
|
|
4492
|
-
c({ type:
|
|
4476
|
+
c({ type: Ce, context: 4, implicit: !1 })
|
|
4493
4477
|
], te.prototype, "directoryName", void 0);
|
|
4494
4478
|
o([
|
|
4495
4479
|
c({ type: zo, context: 5 })
|
|
@@ -4652,24 +4636,24 @@ o([
|
|
|
4652
4636
|
o([
|
|
4653
4637
|
c({ type: h.Any })
|
|
4654
4638
|
], Zo.prototype, "qualifier", void 0);
|
|
4655
|
-
class
|
|
4639
|
+
class On {
|
|
4656
4640
|
constructor(e = {}) {
|
|
4657
4641
|
this.policyIdentifier = "", Object.assign(this, e);
|
|
4658
4642
|
}
|
|
4659
4643
|
}
|
|
4660
4644
|
o([
|
|
4661
4645
|
c({ type: h.ObjectIdentifier })
|
|
4662
|
-
],
|
|
4646
|
+
], On.prototype, "policyIdentifier", void 0);
|
|
4663
4647
|
o([
|
|
4664
4648
|
c({ type: Zo, repeated: "sequence", optional: !0 })
|
|
4665
|
-
],
|
|
4649
|
+
], On.prototype, "policyQualifiers", void 0);
|
|
4666
4650
|
let Di = Is = class extends fe {
|
|
4667
4651
|
constructor(e) {
|
|
4668
4652
|
super(e), Object.setPrototypeOf(this, Is.prototype);
|
|
4669
4653
|
}
|
|
4670
4654
|
};
|
|
4671
4655
|
Di = Is = o([
|
|
4672
|
-
E({ type: B.Sequence, itemType:
|
|
4656
|
+
E({ type: B.Sequence, itemType: On })
|
|
4673
4657
|
], Di);
|
|
4674
4658
|
let $i = class {
|
|
4675
4659
|
constructor(e = 0) {
|
|
@@ -4728,21 +4712,21 @@ o([
|
|
|
4728
4712
|
o([
|
|
4729
4713
|
c({ type: te, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
4730
4714
|
], li.prototype, "cRLIssuer", void 0);
|
|
4731
|
-
let
|
|
4715
|
+
let Os = Es = class extends fe {
|
|
4732
4716
|
constructor(e) {
|
|
4733
4717
|
super(e), Object.setPrototypeOf(this, Es.prototype);
|
|
4734
4718
|
}
|
|
4735
4719
|
};
|
|
4736
|
-
|
|
4720
|
+
Os = Es = o([
|
|
4737
4721
|
E({ type: B.Sequence, itemType: li })
|
|
4738
|
-
],
|
|
4739
|
-
var
|
|
4740
|
-
let $a =
|
|
4722
|
+
], Os);
|
|
4723
|
+
var Ns;
|
|
4724
|
+
let $a = Ns = class extends Os {
|
|
4741
4725
|
constructor(e) {
|
|
4742
|
-
super(e), Object.setPrototypeOf(this,
|
|
4726
|
+
super(e), Object.setPrototypeOf(this, Ns.prototype);
|
|
4743
4727
|
}
|
|
4744
4728
|
};
|
|
4745
|
-
$a =
|
|
4729
|
+
$a = Ns = o([
|
|
4746
4730
|
E({ type: B.Sequence, itemType: li })
|
|
4747
4731
|
], $a);
|
|
4748
4732
|
class Pe {
|
|
@@ -4847,40 +4831,40 @@ class as extends In {
|
|
|
4847
4831
|
}
|
|
4848
4832
|
}
|
|
4849
4833
|
var Rs;
|
|
4850
|
-
class
|
|
4834
|
+
class Nn {
|
|
4851
4835
|
constructor(e = {}) {
|
|
4852
4836
|
this.base = new te(), this.minimum = 0, Object.assign(this, e);
|
|
4853
4837
|
}
|
|
4854
4838
|
}
|
|
4855
4839
|
o([
|
|
4856
4840
|
c({ type: te })
|
|
4857
|
-
],
|
|
4841
|
+
], Nn.prototype, "base", void 0);
|
|
4858
4842
|
o([
|
|
4859
4843
|
c({ type: h.Integer, context: 0, defaultValue: 0, implicit: !0 })
|
|
4860
|
-
],
|
|
4844
|
+
], Nn.prototype, "minimum", void 0);
|
|
4861
4845
|
o([
|
|
4862
4846
|
c({ type: h.Integer, context: 1, optional: !0, implicit: !0 })
|
|
4863
|
-
],
|
|
4847
|
+
], Nn.prototype, "maximum", void 0);
|
|
4864
4848
|
let Hi = Rs = class extends fe {
|
|
4865
4849
|
constructor(e) {
|
|
4866
4850
|
super(e), Object.setPrototypeOf(this, Rs.prototype);
|
|
4867
4851
|
}
|
|
4868
4852
|
};
|
|
4869
4853
|
Hi = Rs = o([
|
|
4870
|
-
E({ type: B.Sequence, itemType:
|
|
4854
|
+
E({ type: B.Sequence, itemType: Nn })
|
|
4871
4855
|
], Hi);
|
|
4872
|
-
class
|
|
4856
|
+
class Ou {
|
|
4873
4857
|
constructor(e = {}) {
|
|
4874
4858
|
Object.assign(this, e);
|
|
4875
4859
|
}
|
|
4876
4860
|
}
|
|
4877
4861
|
o([
|
|
4878
4862
|
c({ type: Hi, context: 0, optional: !0, implicit: !0 })
|
|
4879
|
-
],
|
|
4863
|
+
], Ou.prototype, "permittedSubtrees", void 0);
|
|
4880
4864
|
o([
|
|
4881
4865
|
c({ type: Hi, context: 1, optional: !0, implicit: !0 })
|
|
4882
|
-
],
|
|
4883
|
-
class
|
|
4866
|
+
], Ou.prototype, "excludedSubtrees", void 0);
|
|
4867
|
+
class Nu {
|
|
4884
4868
|
constructor(e = {}) {
|
|
4885
4869
|
Object.assign(this, e);
|
|
4886
4870
|
}
|
|
@@ -4893,7 +4877,7 @@ o([
|
|
|
4893
4877
|
optional: !0,
|
|
4894
4878
|
converter: me
|
|
4895
4879
|
})
|
|
4896
|
-
],
|
|
4880
|
+
], Nu.prototype, "requireExplicitPolicy", void 0);
|
|
4897
4881
|
o([
|
|
4898
4882
|
c({
|
|
4899
4883
|
type: h.Integer,
|
|
@@ -4902,7 +4886,7 @@ o([
|
|
|
4902
4886
|
optional: !0,
|
|
4903
4887
|
converter: me
|
|
4904
4888
|
})
|
|
4905
|
-
],
|
|
4889
|
+
], Nu.prototype, "inhibitPolicyMapping", void 0);
|
|
4906
4890
|
var Ms;
|
|
4907
4891
|
class Qo {
|
|
4908
4892
|
constructor(e = {}) {
|
|
@@ -5000,37 +4984,37 @@ let Fa = Hs = class extends fe {
|
|
|
5000
4984
|
Fa = Hs = o([
|
|
5001
4985
|
E({ type: B.Sequence, itemType: En })
|
|
5002
4986
|
], Fa);
|
|
5003
|
-
class
|
|
4987
|
+
class L {
|
|
5004
4988
|
constructor(e = {}) {
|
|
5005
4989
|
this.algorithm = "", Object.assign(this, e);
|
|
5006
4990
|
}
|
|
5007
4991
|
isEqual(e) {
|
|
5008
|
-
return e instanceof
|
|
4992
|
+
return e instanceof L && e.algorithm == this.algorithm && (e.parameters && this.parameters && Al(e.parameters, this.parameters) || e.parameters === this.parameters);
|
|
5009
4993
|
}
|
|
5010
4994
|
}
|
|
5011
4995
|
o([
|
|
5012
4996
|
c({
|
|
5013
4997
|
type: h.ObjectIdentifier
|
|
5014
4998
|
})
|
|
5015
|
-
],
|
|
4999
|
+
], L.prototype, "algorithm", void 0);
|
|
5016
5000
|
o([
|
|
5017
5001
|
c({
|
|
5018
5002
|
type: h.Any,
|
|
5019
5003
|
optional: !0
|
|
5020
5004
|
})
|
|
5021
|
-
],
|
|
5005
|
+
], L.prototype, "parameters", void 0);
|
|
5022
5006
|
class Ct {
|
|
5023
5007
|
constructor(e = {}) {
|
|
5024
|
-
this.algorithm = new
|
|
5008
|
+
this.algorithm = new L(), this.subjectPublicKey = new ArrayBuffer(0), Object.assign(this, e);
|
|
5025
5009
|
}
|
|
5026
5010
|
}
|
|
5027
5011
|
o([
|
|
5028
|
-
c({ type:
|
|
5012
|
+
c({ type: L })
|
|
5029
5013
|
], Ct.prototype, "algorithm", void 0);
|
|
5030
5014
|
o([
|
|
5031
5015
|
c({ type: h.BitString })
|
|
5032
5016
|
], Ct.prototype, "subjectPublicKey", void 0);
|
|
5033
|
-
let
|
|
5017
|
+
let Ne = class {
|
|
5034
5018
|
constructor(e) {
|
|
5035
5019
|
if (e)
|
|
5036
5020
|
if (typeof e == "string" || typeof e == "number" || e instanceof Date) {
|
|
@@ -5050,25 +5034,25 @@ o([
|
|
|
5050
5034
|
c({
|
|
5051
5035
|
type: h.UTCTime
|
|
5052
5036
|
})
|
|
5053
|
-
],
|
|
5037
|
+
], Ne.prototype, "utcTime", void 0);
|
|
5054
5038
|
o([
|
|
5055
5039
|
c({
|
|
5056
5040
|
type: h.GeneralizedTime
|
|
5057
5041
|
})
|
|
5058
|
-
],
|
|
5059
|
-
|
|
5042
|
+
], Ne.prototype, "generalTime", void 0);
|
|
5043
|
+
Ne = o([
|
|
5060
5044
|
E({ type: B.Choice })
|
|
5061
|
-
],
|
|
5045
|
+
], Ne);
|
|
5062
5046
|
class _n {
|
|
5063
5047
|
constructor(e) {
|
|
5064
|
-
this.notBefore = new
|
|
5048
|
+
this.notBefore = new Ne(/* @__PURE__ */ new Date()), this.notAfter = new Ne(/* @__PURE__ */ new Date()), e && (this.notBefore = new Ne(e.notBefore), this.notAfter = new Ne(e.notAfter));
|
|
5065
5049
|
}
|
|
5066
5050
|
}
|
|
5067
5051
|
o([
|
|
5068
|
-
c({ type:
|
|
5052
|
+
c({ type: Ne })
|
|
5069
5053
|
], _n.prototype, "notBefore", void 0);
|
|
5070
5054
|
o([
|
|
5071
|
-
c({ type:
|
|
5055
|
+
c({ type: Ne })
|
|
5072
5056
|
], _n.prototype, "notAfter", void 0);
|
|
5073
5057
|
var Ls;
|
|
5074
5058
|
let ot = class Ru {
|
|
@@ -5103,7 +5087,7 @@ var wr;
|
|
|
5103
5087
|
})(wr || (wr = {}));
|
|
5104
5088
|
class tt {
|
|
5105
5089
|
constructor(e = {}) {
|
|
5106
|
-
this.version = wr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new
|
|
5090
|
+
this.version = wr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new L(), this.issuer = new Ce(), this.validity = new _n(), this.subject = new Ce(), this.subjectPublicKeyInfo = new Ct(), Object.assign(this, e);
|
|
5107
5091
|
}
|
|
5108
5092
|
}
|
|
5109
5093
|
o([
|
|
@@ -5120,16 +5104,16 @@ o([
|
|
|
5120
5104
|
})
|
|
5121
5105
|
], tt.prototype, "serialNumber", void 0);
|
|
5122
5106
|
o([
|
|
5123
|
-
c({ type:
|
|
5107
|
+
c({ type: L })
|
|
5124
5108
|
], tt.prototype, "signature", void 0);
|
|
5125
5109
|
o([
|
|
5126
|
-
c({ type:
|
|
5110
|
+
c({ type: Ce })
|
|
5127
5111
|
], tt.prototype, "issuer", void 0);
|
|
5128
5112
|
o([
|
|
5129
5113
|
c({ type: _n })
|
|
5130
5114
|
], tt.prototype, "validity", void 0);
|
|
5131
5115
|
o([
|
|
5132
|
-
c({ type:
|
|
5116
|
+
c({ type: Ce })
|
|
5133
5117
|
], tt.prototype, "subject", void 0);
|
|
5134
5118
|
o([
|
|
5135
5119
|
c({ type: Ct })
|
|
@@ -5150,51 +5134,51 @@ o([
|
|
|
5150
5134
|
], tt.prototype, "extensions", void 0);
|
|
5151
5135
|
class Ar {
|
|
5152
5136
|
constructor(e = {}) {
|
|
5153
|
-
this.tbsCertificate = new tt(), this.signatureAlgorithm = new
|
|
5137
|
+
this.tbsCertificate = new tt(), this.signatureAlgorithm = new L(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
5154
5138
|
}
|
|
5155
5139
|
}
|
|
5156
5140
|
o([
|
|
5157
5141
|
c({ type: tt })
|
|
5158
5142
|
], Ar.prototype, "tbsCertificate", void 0);
|
|
5159
5143
|
o([
|
|
5160
|
-
c({ type:
|
|
5144
|
+
c({ type: L })
|
|
5161
5145
|
], Ar.prototype, "signatureAlgorithm", void 0);
|
|
5162
5146
|
o([
|
|
5163
5147
|
c({ type: h.BitString })
|
|
5164
5148
|
], Ar.prototype, "signatureValue", void 0);
|
|
5165
5149
|
class Tn {
|
|
5166
5150
|
constructor(e = {}) {
|
|
5167
|
-
this.userCertificate = new ArrayBuffer(0), this.revocationDate = new
|
|
5151
|
+
this.userCertificate = new ArrayBuffer(0), this.revocationDate = new Ne(), Object.assign(this, e);
|
|
5168
5152
|
}
|
|
5169
5153
|
}
|
|
5170
5154
|
o([
|
|
5171
5155
|
c({ type: h.Integer, converter: me })
|
|
5172
5156
|
], Tn.prototype, "userCertificate", void 0);
|
|
5173
5157
|
o([
|
|
5174
|
-
c({ type:
|
|
5158
|
+
c({ type: Ne })
|
|
5175
5159
|
], Tn.prototype, "revocationDate", void 0);
|
|
5176
5160
|
o([
|
|
5177
5161
|
c({ type: ot, optional: !0, repeated: "sequence" })
|
|
5178
5162
|
], Tn.prototype, "crlEntryExtensions", void 0);
|
|
5179
5163
|
class jt {
|
|
5180
5164
|
constructor(e = {}) {
|
|
5181
|
-
this.signature = new
|
|
5165
|
+
this.signature = new L(), this.issuer = new Ce(), this.thisUpdate = new Ne(), Object.assign(this, e);
|
|
5182
5166
|
}
|
|
5183
5167
|
}
|
|
5184
5168
|
o([
|
|
5185
5169
|
c({ type: h.Integer, optional: !0 })
|
|
5186
5170
|
], jt.prototype, "version", void 0);
|
|
5187
5171
|
o([
|
|
5188
|
-
c({ type:
|
|
5172
|
+
c({ type: L })
|
|
5189
5173
|
], jt.prototype, "signature", void 0);
|
|
5190
5174
|
o([
|
|
5191
|
-
c({ type:
|
|
5175
|
+
c({ type: Ce })
|
|
5192
5176
|
], jt.prototype, "issuer", void 0);
|
|
5193
5177
|
o([
|
|
5194
|
-
c({ type:
|
|
5178
|
+
c({ type: Ne })
|
|
5195
5179
|
], jt.prototype, "thisUpdate", void 0);
|
|
5196
5180
|
o([
|
|
5197
|
-
c({ type:
|
|
5181
|
+
c({ type: Ne, optional: !0 })
|
|
5198
5182
|
], jt.prototype, "nextUpdate", void 0);
|
|
5199
5183
|
o([
|
|
5200
5184
|
c({ type: Tn, repeated: "sequence", optional: !0 })
|
|
@@ -5204,25 +5188,25 @@ o([
|
|
|
5204
5188
|
], jt.prototype, "crlExtensions", void 0);
|
|
5205
5189
|
let Xo = class {
|
|
5206
5190
|
constructor(e = {}) {
|
|
5207
|
-
this.tbsCertList = new jt(), this.signatureAlgorithm = new
|
|
5191
|
+
this.tbsCertList = new jt(), this.signatureAlgorithm = new L(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
|
|
5208
5192
|
}
|
|
5209
5193
|
};
|
|
5210
5194
|
o([
|
|
5211
5195
|
c({ type: jt })
|
|
5212
5196
|
], Xo.prototype, "tbsCertList", void 0);
|
|
5213
5197
|
o([
|
|
5214
|
-
c({ type:
|
|
5198
|
+
c({ type: L })
|
|
5215
5199
|
], Xo.prototype, "signatureAlgorithm", void 0);
|
|
5216
5200
|
o([
|
|
5217
5201
|
c({ type: h.BitString })
|
|
5218
5202
|
], Xo.prototype, "signature", void 0);
|
|
5219
5203
|
class jr {
|
|
5220
5204
|
constructor(e = {}) {
|
|
5221
|
-
this.issuer = new
|
|
5205
|
+
this.issuer = new Ce(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
|
|
5222
5206
|
}
|
|
5223
5207
|
}
|
|
5224
5208
|
o([
|
|
5225
|
-
c({ type:
|
|
5209
|
+
c({ type: Ce })
|
|
5226
5210
|
], jr.prototype, "issuer", void 0);
|
|
5227
5211
|
o([
|
|
5228
5212
|
c({ type: h.Integer, converter: me })
|
|
@@ -5241,36 +5225,36 @@ o([
|
|
|
5241
5225
|
Sr = o([
|
|
5242
5226
|
E({ type: B.Choice })
|
|
5243
5227
|
], Sr);
|
|
5244
|
-
var
|
|
5228
|
+
var Ot;
|
|
5245
5229
|
(function(r) {
|
|
5246
5230
|
r[r.v0 = 0] = "v0", r[r.v1 = 1] = "v1", r[r.v2 = 2] = "v2", r[r.v3 = 3] = "v3", r[r.v4 = 4] = "v4", r[r.v5 = 5] = "v5";
|
|
5247
|
-
})(
|
|
5248
|
-
let Yr = class extends
|
|
5231
|
+
})(Ot || (Ot = {}));
|
|
5232
|
+
let Yr = class extends L {
|
|
5249
5233
|
};
|
|
5250
5234
|
Yr = o([
|
|
5251
5235
|
E({ type: B.Sequence })
|
|
5252
5236
|
], Yr);
|
|
5253
|
-
let Li = class extends
|
|
5237
|
+
let Li = class extends L {
|
|
5254
5238
|
};
|
|
5255
5239
|
Li = o([
|
|
5256
5240
|
E({ type: B.Sequence })
|
|
5257
5241
|
], Li);
|
|
5258
|
-
let ht = class extends
|
|
5242
|
+
let ht = class extends L {
|
|
5259
5243
|
};
|
|
5260
5244
|
ht = o([
|
|
5261
5245
|
E({ type: B.Sequence })
|
|
5262
5246
|
], ht);
|
|
5263
|
-
let Fi = class extends
|
|
5247
|
+
let Fi = class extends L {
|
|
5264
5248
|
};
|
|
5265
5249
|
Fi = o([
|
|
5266
5250
|
E({ type: B.Sequence })
|
|
5267
5251
|
], Fi);
|
|
5268
|
-
let Ka = class extends
|
|
5252
|
+
let Ka = class extends L {
|
|
5269
5253
|
};
|
|
5270
5254
|
Ka = o([
|
|
5271
5255
|
E({ type: B.Sequence })
|
|
5272
5256
|
], Ka);
|
|
5273
|
-
let Fs = class extends
|
|
5257
|
+
let Fs = class extends L {
|
|
5274
5258
|
};
|
|
5275
5259
|
Fs = o([
|
|
5276
5260
|
E({ type: B.Sequence })
|
|
@@ -5289,7 +5273,7 @@ o([
|
|
|
5289
5273
|
var Ks;
|
|
5290
5274
|
class yt {
|
|
5291
5275
|
constructor(e = {}) {
|
|
5292
|
-
this.version =
|
|
5276
|
+
this.version = Ot.v0, this.sid = new Sr(), this.digestAlgorithm = new Yr(), this.signatureAlgorithm = new Li(), this.signature = new oe(), Object.assign(this, e);
|
|
5293
5277
|
}
|
|
5294
5278
|
}
|
|
5295
5279
|
o([
|
|
@@ -5321,7 +5305,7 @@ let Ki = Ks = class extends fe {
|
|
|
5321
5305
|
Ki = Ks = o([
|
|
5322
5306
|
E({ type: B.Set, itemType: yt })
|
|
5323
5307
|
], Ki);
|
|
5324
|
-
let qa = class extends
|
|
5308
|
+
let qa = class extends Ne {
|
|
5325
5309
|
};
|
|
5326
5310
|
qa = o([
|
|
5327
5311
|
E({ type: B.Choice })
|
|
@@ -5391,7 +5375,7 @@ var Gs;
|
|
|
5391
5375
|
})(Gs || (Gs = {}));
|
|
5392
5376
|
class cr {
|
|
5393
5377
|
constructor(e = {}) {
|
|
5394
|
-
this.digestedObjectType = Gs.publicKey, this.digestAlgorithm = new
|
|
5378
|
+
this.digestedObjectType = Gs.publicKey, this.digestAlgorithm = new L(), this.objectDigest = new ArrayBuffer(0), Object.assign(this, e);
|
|
5395
5379
|
}
|
|
5396
5380
|
}
|
|
5397
5381
|
o([
|
|
@@ -5401,7 +5385,7 @@ o([
|
|
|
5401
5385
|
c({ type: h.ObjectIdentifier, optional: !0 })
|
|
5402
5386
|
], cr.prototype, "otherObjectTypeID", void 0);
|
|
5403
5387
|
o([
|
|
5404
|
-
c({ type:
|
|
5388
|
+
c({ type: L })
|
|
5405
5389
|
], cr.prototype, "digestAlgorithm", void 0);
|
|
5406
5390
|
o([
|
|
5407
5391
|
c({ type: h.BitString })
|
|
@@ -5465,7 +5449,7 @@ var zs;
|
|
|
5465
5449
|
})(zs || (zs = {}));
|
|
5466
5450
|
class lt {
|
|
5467
5451
|
constructor(e = {}) {
|
|
5468
|
-
this.version = zs.v2, this.holder = new ui(), this.issuer = new kr(), this.signature = new
|
|
5452
|
+
this.version = zs.v2, this.holder = new ui(), this.issuer = new kr(), this.signature = new L(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new Pn(), this.attributes = [], Object.assign(this, e);
|
|
5469
5453
|
}
|
|
5470
5454
|
}
|
|
5471
5455
|
o([
|
|
@@ -5478,7 +5462,7 @@ o([
|
|
|
5478
5462
|
c({ type: kr })
|
|
5479
5463
|
], lt.prototype, "issuer", void 0);
|
|
5480
5464
|
o([
|
|
5481
|
-
c({ type:
|
|
5465
|
+
c({ type: L })
|
|
5482
5466
|
], lt.prototype, "signature", void 0);
|
|
5483
5467
|
o([
|
|
5484
5468
|
c({ type: h.Integer, converter: me })
|
|
@@ -5497,14 +5481,14 @@ o([
|
|
|
5497
5481
|
], lt.prototype, "extensions", void 0);
|
|
5498
5482
|
class Rn {
|
|
5499
5483
|
constructor(e = {}) {
|
|
5500
|
-
this.acinfo = new lt(), this.signatureAlgorithm = new
|
|
5484
|
+
this.acinfo = new lt(), this.signatureAlgorithm = new L(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
5501
5485
|
}
|
|
5502
5486
|
}
|
|
5503
5487
|
o([
|
|
5504
5488
|
c({ type: lt })
|
|
5505
5489
|
], Rn.prototype, "acinfo", void 0);
|
|
5506
5490
|
o([
|
|
5507
|
-
c({ type:
|
|
5491
|
+
c({ type: L })
|
|
5508
5492
|
], Rn.prototype, "signatureAlgorithm", void 0);
|
|
5509
5493
|
o([
|
|
5510
5494
|
c({ type: h.BitString })
|
|
@@ -5801,11 +5785,11 @@ Wi = Xs = o([
|
|
|
5801
5785
|
], Wi);
|
|
5802
5786
|
class oa {
|
|
5803
5787
|
constructor(e = {}) {
|
|
5804
|
-
this.algorithm = new
|
|
5788
|
+
this.algorithm = new L(), this.publicKey = new ArrayBuffer(0), Object.assign(this, e);
|
|
5805
5789
|
}
|
|
5806
5790
|
}
|
|
5807
5791
|
o([
|
|
5808
|
-
c({ type:
|
|
5792
|
+
c({ type: L })
|
|
5809
5793
|
], oa.prototype, "algorithm", void 0);
|
|
5810
5794
|
o([
|
|
5811
5795
|
c({ type: h.BitString })
|
|
@@ -5829,7 +5813,7 @@ tr = o([
|
|
|
5829
5813
|
], tr);
|
|
5830
5814
|
class Rr {
|
|
5831
5815
|
constructor(e = {}) {
|
|
5832
|
-
this.version =
|
|
5816
|
+
this.version = Ot.v3, this.originator = new tr(), this.keyEncryptionAlgorithm = new ht(), this.recipientEncryptedKeys = new Wi(), Object.assign(this, e);
|
|
5833
5817
|
}
|
|
5834
5818
|
}
|
|
5835
5819
|
o([
|
|
@@ -5863,7 +5847,7 @@ Ir = o([
|
|
|
5863
5847
|
], Ir);
|
|
5864
5848
|
class di {
|
|
5865
5849
|
constructor(e = {}) {
|
|
5866
|
-
this.version =
|
|
5850
|
+
this.version = Ot.v0, this.rid = new Ir(), this.keyEncryptionAlgorithm = new ht(), this.encryptedKey = new oe(), Object.assign(this, e);
|
|
5867
5851
|
}
|
|
5868
5852
|
}
|
|
5869
5853
|
o([
|
|
@@ -5894,7 +5878,7 @@ o([
|
|
|
5894
5878
|
], hi.prototype, "other", void 0);
|
|
5895
5879
|
class pi {
|
|
5896
5880
|
constructor(e = {}) {
|
|
5897
|
-
this.version =
|
|
5881
|
+
this.version = Ot.v4, this.kekid = new hi(), this.keyEncryptionAlgorithm = new ht(), this.encryptedKey = new oe(), Object.assign(this, e);
|
|
5898
5882
|
}
|
|
5899
5883
|
}
|
|
5900
5884
|
o([
|
|
@@ -5911,7 +5895,7 @@ o([
|
|
|
5911
5895
|
], pi.prototype, "encryptedKey", void 0);
|
|
5912
5896
|
class yi {
|
|
5913
5897
|
constructor(e = {}) {
|
|
5914
|
-
this.version =
|
|
5898
|
+
this.version = Ot.v0, this.keyEncryptionAlgorithm = new ht(), this.encryptedKey = new oe(), Object.assign(this, e);
|
|
5915
5899
|
}
|
|
5916
5900
|
}
|
|
5917
5901
|
o([
|
|
@@ -6022,7 +6006,7 @@ no = io = o([
|
|
|
6022
6006
|
], no);
|
|
6023
6007
|
class gi {
|
|
6024
6008
|
constructor(e = {}) {
|
|
6025
|
-
this.version =
|
|
6009
|
+
this.version = Ot.v0, this.recipientInfos = new Ji(), this.encryptedContentInfo = new fi(), Object.assign(this, e);
|
|
6026
6010
|
}
|
|
6027
6011
|
}
|
|
6028
6012
|
o([
|
|
@@ -6052,7 +6036,7 @@ Yi = so = o([
|
|
|
6052
6036
|
], Yi);
|
|
6053
6037
|
class Mr {
|
|
6054
6038
|
constructor(e = {}) {
|
|
6055
|
-
this.version =
|
|
6039
|
+
this.version = Ot.v0, this.digestAlgorithms = new Yi(), this.encapContentInfo = new $n(), this.signerInfos = new Ki(), Object.assign(this, e);
|
|
6056
6040
|
}
|
|
6057
6041
|
}
|
|
6058
6042
|
o([
|
|
@@ -6075,11 +6059,11 @@ o([
|
|
|
6075
6059
|
], Mr.prototype, "signerInfos", void 0);
|
|
6076
6060
|
const ei = "1.2.840.10045.2.1", la = "1.2.840.10045.4.1", $u = "1.2.840.10045.4.3.1", ua = "1.2.840.10045.4.3.2", fa = "1.2.840.10045.4.3.3", da = "1.2.840.10045.4.3.4", Wa = "1.2.840.10045.3.1.7", Ja = "1.3.132.0.34", Ya = "1.3.132.0.35";
|
|
6077
6061
|
function vi(r) {
|
|
6078
|
-
return new
|
|
6062
|
+
return new L({ algorithm: r });
|
|
6079
6063
|
}
|
|
6080
|
-
const
|
|
6064
|
+
const Od = vi(la);
|
|
6081
6065
|
vi($u);
|
|
6082
|
-
const
|
|
6066
|
+
const Nd = vi(ua), _d = vi(fa), Td = vi(da);
|
|
6083
6067
|
let Er = class {
|
|
6084
6068
|
constructor(e = {}) {
|
|
6085
6069
|
Object.assign(this, e);
|
|
@@ -6119,70 +6103,70 @@ o([
|
|
|
6119
6103
|
o([
|
|
6120
6104
|
c({ type: h.Integer, converter: me })
|
|
6121
6105
|
], Zi.prototype, "s", void 0);
|
|
6122
|
-
const Fe = "1.2.840.113549.1.1",
|
|
6123
|
-
function
|
|
6124
|
-
return new
|
|
6125
|
-
}
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
const rr =
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
const zu = new
|
|
6106
|
+
const Fe = "1.2.840.113549.1.1", Or = `${Fe}.1`, jd = `${Fe}.7`, Vd = `${Fe}.9`, Pd = `${Fe}.10`, Rd = `${Fe}.2`, Md = `${Fe}.4`, Qi = `${Fe}.5`, Dd = `${Fe}.14`, oo = `${Fe}.11`, Xi = `${Fe}.12`, en = `${Fe}.13`, Uu = `${Fe}.15`, Hu = `${Fe}.16`, Lu = "1.3.14.3.2.26", Fu = "2.16.840.1.101.3.4.2.4", Ku = "2.16.840.1.101.3.4.2.1", qu = "2.16.840.1.101.3.4.2.2", Gu = "2.16.840.1.101.3.4.2.3", $d = "2.16.840.1.101.3.4.2.5", Ud = "2.16.840.1.101.3.4.2.6", Hd = "1.2.840.113549.2.2", Ld = "1.2.840.113549.2.5", ha = `${Fe}.8`;
|
|
6107
|
+
function Ie(r) {
|
|
6108
|
+
return new L({ algorithm: r, parameters: null });
|
|
6109
|
+
}
|
|
6110
|
+
Ie(Hd);
|
|
6111
|
+
Ie(Ld);
|
|
6112
|
+
const rr = Ie(Lu);
|
|
6113
|
+
Ie(Fu);
|
|
6114
|
+
Ie(Ku);
|
|
6115
|
+
Ie(qu);
|
|
6116
|
+
Ie(Gu);
|
|
6117
|
+
Ie($d);
|
|
6118
|
+
Ie(Ud);
|
|
6119
|
+
const zu = new L({
|
|
6136
6120
|
algorithm: ha,
|
|
6137
|
-
parameters:
|
|
6138
|
-
}), Wu = new
|
|
6121
|
+
parameters: K.serialize(rr)
|
|
6122
|
+
}), Wu = new L({
|
|
6139
6123
|
algorithm: Vd,
|
|
6140
|
-
parameters:
|
|
6124
|
+
parameters: K.serialize(Pi.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
6141
6125
|
});
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6126
|
+
Ie(Or);
|
|
6127
|
+
Ie(Rd);
|
|
6128
|
+
Ie(Md);
|
|
6129
|
+
Ie(Qi);
|
|
6130
|
+
Ie(Uu);
|
|
6131
|
+
Ie(Hu);
|
|
6132
|
+
Ie(Xi);
|
|
6133
|
+
Ie(en);
|
|
6134
|
+
Ie(Uu);
|
|
6135
|
+
Ie(Hu);
|
|
6152
6136
|
class Kn {
|
|
6153
6137
|
constructor(e = {}) {
|
|
6154
|
-
this.hashAlgorithm = new
|
|
6138
|
+
this.hashAlgorithm = new L(rr), this.maskGenAlgorithm = new L({
|
|
6155
6139
|
algorithm: ha,
|
|
6156
|
-
parameters:
|
|
6157
|
-
}), this.pSourceAlgorithm = new
|
|
6140
|
+
parameters: K.serialize(rr)
|
|
6141
|
+
}), this.pSourceAlgorithm = new L(Wu), Object.assign(this, e);
|
|
6158
6142
|
}
|
|
6159
6143
|
}
|
|
6160
6144
|
o([
|
|
6161
|
-
c({ type:
|
|
6145
|
+
c({ type: L, context: 0, defaultValue: rr })
|
|
6162
6146
|
], Kn.prototype, "hashAlgorithm", void 0);
|
|
6163
6147
|
o([
|
|
6164
|
-
c({ type:
|
|
6148
|
+
c({ type: L, context: 1, defaultValue: zu })
|
|
6165
6149
|
], Kn.prototype, "maskGenAlgorithm", void 0);
|
|
6166
6150
|
o([
|
|
6167
|
-
c({ type:
|
|
6151
|
+
c({ type: L, context: 2, defaultValue: Wu })
|
|
6168
6152
|
], Kn.prototype, "pSourceAlgorithm", void 0);
|
|
6169
|
-
new
|
|
6153
|
+
new L({
|
|
6170
6154
|
algorithm: jd,
|
|
6171
|
-
parameters:
|
|
6155
|
+
parameters: K.serialize(new Kn())
|
|
6172
6156
|
});
|
|
6173
6157
|
class mi {
|
|
6174
6158
|
constructor(e = {}) {
|
|
6175
|
-
this.hashAlgorithm = new
|
|
6159
|
+
this.hashAlgorithm = new L(rr), this.maskGenAlgorithm = new L({
|
|
6176
6160
|
algorithm: ha,
|
|
6177
|
-
parameters:
|
|
6161
|
+
parameters: K.serialize(rr)
|
|
6178
6162
|
}), this.saltLength = 20, this.trailerField = 1, Object.assign(this, e);
|
|
6179
6163
|
}
|
|
6180
6164
|
}
|
|
6181
6165
|
o([
|
|
6182
|
-
c({ type:
|
|
6166
|
+
c({ type: L, context: 0, defaultValue: rr })
|
|
6183
6167
|
], mi.prototype, "hashAlgorithm", void 0);
|
|
6184
6168
|
o([
|
|
6185
|
-
c({ type:
|
|
6169
|
+
c({ type: L, context: 1, defaultValue: zu })
|
|
6186
6170
|
], mi.prototype, "maskGenAlgorithm", void 0);
|
|
6187
6171
|
o([
|
|
6188
6172
|
c({ type: h.Integer, context: 2, defaultValue: 20 })
|
|
@@ -6190,17 +6174,17 @@ o([
|
|
|
6190
6174
|
o([
|
|
6191
6175
|
c({ type: h.Integer, context: 3, defaultValue: 1 })
|
|
6192
6176
|
], mi.prototype, "trailerField", void 0);
|
|
6193
|
-
new
|
|
6177
|
+
new L({
|
|
6194
6178
|
algorithm: Pd,
|
|
6195
|
-
parameters:
|
|
6179
|
+
parameters: K.serialize(new mi())
|
|
6196
6180
|
});
|
|
6197
6181
|
class qn {
|
|
6198
6182
|
constructor(e = {}) {
|
|
6199
|
-
this.digestAlgorithm = new
|
|
6183
|
+
this.digestAlgorithm = new L(), this.digest = new oe(), Object.assign(this, e);
|
|
6200
6184
|
}
|
|
6201
6185
|
}
|
|
6202
6186
|
o([
|
|
6203
|
-
c({ type:
|
|
6187
|
+
c({ type: L })
|
|
6204
6188
|
], qn.prototype, "digestAlgorithm", void 0);
|
|
6205
6189
|
o([
|
|
6206
6190
|
c({ type: oe })
|
|
@@ -6331,7 +6315,7 @@ function Fd(r, e, t, i) {
|
|
|
6331
6315
|
function f(v) {
|
|
6332
6316
|
v.done ? s(v.value) : n(v.value).then(l, u);
|
|
6333
6317
|
}
|
|
6334
|
-
f((i = i.apply(r,
|
|
6318
|
+
f((i = i.apply(r, [])).next());
|
|
6335
6319
|
});
|
|
6336
6320
|
}
|
|
6337
6321
|
function Kd(r, e) {
|
|
@@ -6862,11 +6846,11 @@ class ef extends oe {
|
|
|
6862
6846
|
}
|
|
6863
6847
|
let Wn = class {
|
|
6864
6848
|
constructor(e = {}) {
|
|
6865
|
-
this.encryptionAlgorithm = new
|
|
6849
|
+
this.encryptionAlgorithm = new L(), this.encryptedData = new ef(), Object.assign(this, e);
|
|
6866
6850
|
}
|
|
6867
6851
|
};
|
|
6868
6852
|
o([
|
|
6869
|
-
c({ type:
|
|
6853
|
+
c({ type: L })
|
|
6870
6854
|
], Wn.prototype, "encryptionAlgorithm", void 0);
|
|
6871
6855
|
o([
|
|
6872
6856
|
c({ type: ef })
|
|
@@ -6887,14 +6871,14 @@ vo = yo = o([
|
|
|
6887
6871
|
], vo);
|
|
6888
6872
|
class bi {
|
|
6889
6873
|
constructor(e = {}) {
|
|
6890
|
-
this.version = go.v1, this.privateKeyAlgorithm = new
|
|
6874
|
+
this.version = go.v1, this.privateKeyAlgorithm = new L(), this.privateKey = new tf(), Object.assign(this, e);
|
|
6891
6875
|
}
|
|
6892
6876
|
}
|
|
6893
6877
|
o([
|
|
6894
6878
|
c({ type: h.Integer })
|
|
6895
6879
|
], bi.prototype, "version", void 0);
|
|
6896
6880
|
o([
|
|
6897
|
-
c({ type:
|
|
6881
|
+
c({ type: L })
|
|
6898
6882
|
], bi.prototype, "privateKeyAlgorithm", void 0);
|
|
6899
6883
|
o([
|
|
6900
6884
|
c({ type: tf })
|
|
@@ -7097,7 +7081,7 @@ o([
|
|
|
7097
7081
|
Bo = o([
|
|
7098
7082
|
E({ type: B.Choice })
|
|
7099
7083
|
], Bo);
|
|
7100
|
-
let dc = class extends
|
|
7084
|
+
let dc = class extends Ne {
|
|
7101
7085
|
};
|
|
7102
7086
|
dc = o([
|
|
7103
7087
|
E({ type: B.Choice })
|
|
@@ -7156,7 +7140,7 @@ o([
|
|
|
7156
7140
|
Io = o([
|
|
7157
7141
|
E({ type: B.Choice })
|
|
7158
7142
|
], Io);
|
|
7159
|
-
let Eo = class extends
|
|
7143
|
+
let Eo = class extends L {
|
|
7160
7144
|
};
|
|
7161
7145
|
Eo = o([
|
|
7162
7146
|
E({ type: B.Sequence })
|
|
@@ -7169,25 +7153,25 @@ let gc = Ao = class extends fe {
|
|
|
7169
7153
|
gc = Ao = o([
|
|
7170
7154
|
E({ type: B.Sequence, itemType: Eo })
|
|
7171
7155
|
], gc);
|
|
7172
|
-
var
|
|
7173
|
-
let on =
|
|
7156
|
+
var Oo;
|
|
7157
|
+
let on = Oo = class extends fe {
|
|
7174
7158
|
constructor(e) {
|
|
7175
|
-
super(e), Object.setPrototypeOf(this,
|
|
7159
|
+
super(e), Object.setPrototypeOf(this, Oo.prototype);
|
|
7176
7160
|
}
|
|
7177
7161
|
};
|
|
7178
|
-
on =
|
|
7162
|
+
on = Oo = o([
|
|
7179
7163
|
E({ type: B.Sequence, itemType: Et })
|
|
7180
7164
|
], on);
|
|
7181
7165
|
class Dr {
|
|
7182
7166
|
constructor(e = {}) {
|
|
7183
|
-
this.version = 0, this.subject = new
|
|
7167
|
+
this.version = 0, this.subject = new Ce(), this.subjectPKInfo = new Ct(), this.attributes = new on(), Object.assign(this, e);
|
|
7184
7168
|
}
|
|
7185
7169
|
}
|
|
7186
7170
|
o([
|
|
7187
7171
|
c({ type: h.Integer })
|
|
7188
7172
|
], Dr.prototype, "version", void 0);
|
|
7189
7173
|
o([
|
|
7190
|
-
c({ type:
|
|
7174
|
+
c({ type: Ce })
|
|
7191
7175
|
], Dr.prototype, "subject", void 0);
|
|
7192
7176
|
o([
|
|
7193
7177
|
c({ type: Ct })
|
|
@@ -7197,14 +7181,14 @@ o([
|
|
|
7197
7181
|
], Dr.prototype, "attributes", void 0);
|
|
7198
7182
|
class ti {
|
|
7199
7183
|
constructor(e = {}) {
|
|
7200
|
-
this.certificationRequestInfo = new Dr(), this.signatureAlgorithm = new
|
|
7184
|
+
this.certificationRequestInfo = new Dr(), this.signatureAlgorithm = new L(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
|
|
7201
7185
|
}
|
|
7202
7186
|
}
|
|
7203
7187
|
o([
|
|
7204
7188
|
c({ type: Dr })
|
|
7205
7189
|
], ti.prototype, "certificationRequestInfo", void 0);
|
|
7206
7190
|
o([
|
|
7207
|
-
c({ type:
|
|
7191
|
+
c({ type: L })
|
|
7208
7192
|
], ti.prototype, "signatureAlgorithm", void 0);
|
|
7209
7193
|
o([
|
|
7210
7194
|
c({ type: h.BitString })
|
|
@@ -7246,7 +7230,7 @@ class sh {
|
|
|
7246
7230
|
return i;
|
|
7247
7231
|
}
|
|
7248
7232
|
if (/^[0-9.]+$/.test(e.name)) {
|
|
7249
|
-
const t = new
|
|
7233
|
+
const t = new L({
|
|
7250
7234
|
algorithm: e.name
|
|
7251
7235
|
});
|
|
7252
7236
|
if ("parameters" in e) {
|
|
@@ -7271,18 +7255,18 @@ class sh {
|
|
|
7271
7255
|
}
|
|
7272
7256
|
const Qn = "crypto.algorithmProvider";
|
|
7273
7257
|
Xe.registerSingleton(Qn, sh);
|
|
7274
|
-
var
|
|
7275
|
-
const Ke = "1.3.36.3.3.2.8.1.1", vc = `${Ke}.1`, mc = `${Ke}.2`, bc = `${Ke}.3`, wc = `${Ke}.4`, Ac = `${Ke}.5`, Sc = `${Ke}.6`, kc = `${Ke}.7`, xc = `${Ke}.8`, Bc = `${Ke}.9`, Cc = `${Ke}.10`, Ic = `${Ke}.11`, Ec = `${Ke}.12`,
|
|
7276
|
-
let ri =
|
|
7258
|
+
var Oi;
|
|
7259
|
+
const Ke = "1.3.36.3.3.2.8.1.1", vc = `${Ke}.1`, mc = `${Ke}.2`, bc = `${Ke}.3`, wc = `${Ke}.4`, Ac = `${Ke}.5`, Sc = `${Ke}.6`, kc = `${Ke}.7`, xc = `${Ke}.8`, Bc = `${Ke}.9`, Cc = `${Ke}.10`, Ic = `${Ke}.11`, Ec = `${Ke}.12`, Oc = `${Ke}.13`, Nc = `${Ke}.14`, _c = "brainpoolP160r1", Tc = "brainpoolP160t1", jc = "brainpoolP192r1", Vc = "brainpoolP192t1", Pc = "brainpoolP224r1", Rc = "brainpoolP224t1", Mc = "brainpoolP256r1", Dc = "brainpoolP256t1", $c = "brainpoolP320r1", Uc = "brainpoolP320t1", Hc = "brainpoolP384r1", Lc = "brainpoolP384t1", Fc = "brainpoolP512r1", Kc = "brainpoolP512t1", be = "ECDSA";
|
|
7260
|
+
let ri = Oi = class {
|
|
7277
7261
|
toAsnAlgorithm(e) {
|
|
7278
7262
|
switch (e.name.toLowerCase()) {
|
|
7279
7263
|
case be.toLowerCase():
|
|
7280
7264
|
if ("hash" in e)
|
|
7281
7265
|
switch ((typeof e.hash == "string" ? e.hash : e.hash.name).toLowerCase()) {
|
|
7282
7266
|
case "sha-1":
|
|
7283
|
-
return Nd;
|
|
7284
|
-
case "sha-256":
|
|
7285
7267
|
return Od;
|
|
7268
|
+
case "sha-256":
|
|
7269
|
+
return Nd;
|
|
7286
7270
|
case "sha-384":
|
|
7287
7271
|
return _d;
|
|
7288
7272
|
case "sha-512":
|
|
@@ -7295,7 +7279,7 @@ let ri = Ni = class {
|
|
|
7295
7279
|
t = Wa;
|
|
7296
7280
|
break;
|
|
7297
7281
|
case "K-256":
|
|
7298
|
-
t =
|
|
7282
|
+
t = Oi.SECP256K1;
|
|
7299
7283
|
break;
|
|
7300
7284
|
case "P-384":
|
|
7301
7285
|
t = Ja;
|
|
@@ -7340,16 +7324,16 @@ let ri = Ni = class {
|
|
|
7340
7324
|
t = Ec;
|
|
7341
7325
|
break;
|
|
7342
7326
|
case Fc:
|
|
7343
|
-
t =
|
|
7327
|
+
t = Oc;
|
|
7344
7328
|
break;
|
|
7345
7329
|
case Kc:
|
|
7346
|
-
t =
|
|
7330
|
+
t = Nc;
|
|
7347
7331
|
break;
|
|
7348
7332
|
}
|
|
7349
7333
|
if (t)
|
|
7350
|
-
return new
|
|
7334
|
+
return new L({
|
|
7351
7335
|
algorithm: ei,
|
|
7352
|
-
parameters:
|
|
7336
|
+
parameters: K.serialize(new Er({ namedCurve: t }))
|
|
7353
7337
|
});
|
|
7354
7338
|
}
|
|
7355
7339
|
}
|
|
@@ -7368,10 +7352,10 @@ let ri = Ni = class {
|
|
|
7368
7352
|
case ei: {
|
|
7369
7353
|
if (!e.parameters)
|
|
7370
7354
|
throw new TypeError("Cannot get required parameters from EC algorithm");
|
|
7371
|
-
switch (
|
|
7355
|
+
switch (K.parse(e.parameters, Er).namedCurve) {
|
|
7372
7356
|
case Wa:
|
|
7373
7357
|
return { name: be, namedCurve: "P-256" };
|
|
7374
|
-
case
|
|
7358
|
+
case Oi.SECP256K1:
|
|
7375
7359
|
return { name: be, namedCurve: "K-256" };
|
|
7376
7360
|
case Ja:
|
|
7377
7361
|
return { name: be, namedCurve: "P-384" };
|
|
@@ -7401,9 +7385,9 @@ let ri = Ni = class {
|
|
|
7401
7385
|
return { name: be, namedCurve: Hc };
|
|
7402
7386
|
case Ec:
|
|
7403
7387
|
return { name: be, namedCurve: Lc };
|
|
7404
|
-
case Nc:
|
|
7405
|
-
return { name: be, namedCurve: Fc };
|
|
7406
7388
|
case Oc:
|
|
7389
|
+
return { name: be, namedCurve: Fc };
|
|
7390
|
+
case Nc:
|
|
7407
7391
|
return { name: be, namedCurve: Kc };
|
|
7408
7392
|
}
|
|
7409
7393
|
}
|
|
@@ -7412,7 +7396,7 @@ let ri = Ni = class {
|
|
|
7412
7396
|
}
|
|
7413
7397
|
};
|
|
7414
7398
|
ri.SECP256K1 = "1.3.132.0.10";
|
|
7415
|
-
ri =
|
|
7399
|
+
ri = Oi = o([
|
|
7416
7400
|
va()
|
|
7417
7401
|
], ri);
|
|
7418
7402
|
Xe.registerSingleton(Zn, ri);
|
|
@@ -7454,7 +7438,7 @@ Dt.items = {
|
|
|
7454
7438
|
[Ku]: "sha256",
|
|
7455
7439
|
[qu]: "sha384",
|
|
7456
7440
|
[Gu]: "sha512",
|
|
7457
|
-
[
|
|
7441
|
+
[Or]: "rsaEncryption",
|
|
7458
7442
|
[Qi]: "sha1WithRSAEncryption",
|
|
7459
7443
|
[Dd]: "sha224WithRSAEncryption",
|
|
7460
7444
|
[oo]: "sha256WithRSAEncryption",
|
|
@@ -7533,9 +7517,9 @@ class $t {
|
|
|
7533
7517
|
constructor(...e) {
|
|
7534
7518
|
if (e.length === 1) {
|
|
7535
7519
|
const t = e[0];
|
|
7536
|
-
this.rawData =
|
|
7520
|
+
this.rawData = K.serialize(t), this.onInit(t);
|
|
7537
7521
|
} else {
|
|
7538
|
-
const t =
|
|
7522
|
+
const t = K.parse(e[0], e[1]);
|
|
7539
7523
|
this.rawData = V.toArrayBuffer(e[0]), this.onInit(t);
|
|
7540
7524
|
}
|
|
7541
7525
|
}
|
|
@@ -7545,7 +7529,7 @@ class $t {
|
|
|
7545
7529
|
toString(e = "text") {
|
|
7546
7530
|
switch (e) {
|
|
7547
7531
|
case "asn":
|
|
7548
|
-
return
|
|
7532
|
+
return K.toString(this.rawData);
|
|
7549
7533
|
case "text":
|
|
7550
7534
|
return ir.serialize(this.toTextObject());
|
|
7551
7535
|
case "hex":
|
|
@@ -7573,7 +7557,7 @@ $t.NAME = "ASN";
|
|
|
7573
7557
|
class vt extends $t {
|
|
7574
7558
|
constructor(...e) {
|
|
7575
7559
|
let t;
|
|
7576
|
-
V.isBufferSource(e[0]) ? t = V.toArrayBuffer(e[0]) : t =
|
|
7560
|
+
V.isBufferSource(e[0]) ? t = V.toArrayBuffer(e[0]) : t = K.serialize(new ot({
|
|
7577
7561
|
extnID: e[0],
|
|
7578
7562
|
critical: e[1],
|
|
7579
7563
|
extnValue: new oe(V.toArrayBuffer(e[2]))
|
|
@@ -7697,13 +7681,13 @@ class Rt {
|
|
|
7697
7681
|
return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e);
|
|
7698
7682
|
}
|
|
7699
7683
|
constructor(e, t = {}) {
|
|
7700
|
-
this.extraNames = new lf(), this.asn = new
|
|
7684
|
+
this.extraNames = new lf(), this.asn = new Ce();
|
|
7701
7685
|
for (const i in t)
|
|
7702
7686
|
if (Object.prototype.hasOwnProperty.call(t, i)) {
|
|
7703
7687
|
const n = t[i];
|
|
7704
7688
|
this.extraNames.register(i, n);
|
|
7705
7689
|
}
|
|
7706
|
-
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof
|
|
7690
|
+
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof Ce ? this.asn = e : V.isBufferSource(e) ? this.asn = K.parse(e, Ce) : this.asn = this.fromJSON(e);
|
|
7707
7691
|
}
|
|
7708
7692
|
getField(e) {
|
|
7709
7693
|
const t = this.extraNames.findId(e) || Le.findId(e), i = [];
|
|
@@ -7735,7 +7719,7 @@ class Rt {
|
|
|
7735
7719
|
return t;
|
|
7736
7720
|
}
|
|
7737
7721
|
fromString(e) {
|
|
7738
|
-
const t = new
|
|
7722
|
+
const t = new Ce(), i = /(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;
|
|
7739
7723
|
let n = null, s = ",";
|
|
7740
7724
|
for (; n = i.exec(`${e},`); ) {
|
|
7741
7725
|
let [, a, l] = n;
|
|
@@ -7757,7 +7741,7 @@ class Rt {
|
|
|
7757
7741
|
return t;
|
|
7758
7742
|
}
|
|
7759
7743
|
fromJSON(e) {
|
|
7760
|
-
const t = new
|
|
7744
|
+
const t = new Ce();
|
|
7761
7745
|
for (const i of e) {
|
|
7762
7746
|
const n = new mr();
|
|
7763
7747
|
for (const s in i) {
|
|
@@ -7795,7 +7779,7 @@ class Rt {
|
|
|
7795
7779
|
return t;
|
|
7796
7780
|
}
|
|
7797
7781
|
toArrayBuffer() {
|
|
7798
|
-
return
|
|
7782
|
+
return K.serialize(this.asn);
|
|
7799
7783
|
}
|
|
7800
7784
|
async getThumbprint(...e) {
|
|
7801
7785
|
var t;
|
|
@@ -7810,7 +7794,7 @@ class Jc extends $t {
|
|
|
7810
7794
|
if (e.length === 2)
|
|
7811
7795
|
switch (e[0]) {
|
|
7812
7796
|
case ls: {
|
|
7813
|
-
const i = new Rt(e[1]).toArrayBuffer(), n =
|
|
7797
|
+
const i = new Rt(e[1]).toArrayBuffer(), n = K.parse(i, Ce);
|
|
7814
7798
|
t = new te({ directoryName: n });
|
|
7815
7799
|
break;
|
|
7816
7800
|
}
|
|
@@ -7828,7 +7812,7 @@ class Jc extends $t {
|
|
|
7828
7812
|
t = new te({
|
|
7829
7813
|
otherName: new Jr({
|
|
7830
7814
|
typeId: zc,
|
|
7831
|
-
value:
|
|
7815
|
+
value: K.serialize(new oe($.FromHex(n)))
|
|
7832
7816
|
})
|
|
7833
7817
|
});
|
|
7834
7818
|
break;
|
|
@@ -7843,7 +7827,7 @@ class Jc extends $t {
|
|
|
7843
7827
|
t = new te({
|
|
7844
7828
|
otherName: new Jr({
|
|
7845
7829
|
typeId: Wc,
|
|
7846
|
-
value:
|
|
7830
|
+
value: K.serialize(Au.toASN(e[1]))
|
|
7847
7831
|
})
|
|
7848
7832
|
});
|
|
7849
7833
|
break;
|
|
@@ -7854,7 +7838,7 @@ class Jc extends $t {
|
|
|
7854
7838
|
default:
|
|
7855
7839
|
throw new Error("Cannot create GeneralName. Unsupported type of the name");
|
|
7856
7840
|
}
|
|
7857
|
-
else V.isBufferSource(e[0]) ? t =
|
|
7841
|
+
else V.isBufferSource(e[0]) ? t = K.parse(e[0], te) : t = e[0];
|
|
7858
7842
|
super(t);
|
|
7859
7843
|
}
|
|
7860
7844
|
onInit(e) {
|
|
@@ -7873,12 +7857,12 @@ class Jc extends $t {
|
|
|
7873
7857
|
else if (e.otherName != null)
|
|
7874
7858
|
if (e.otherName.typeId === zc) {
|
|
7875
7859
|
this.type = hs;
|
|
7876
|
-
const t =
|
|
7860
|
+
const t = K.parse(e.otherName.value, oe), i = new RegExp(Gc, "i").exec($.ToHex(t));
|
|
7877
7861
|
if (!i)
|
|
7878
7862
|
throw new Error(fh);
|
|
7879
7863
|
this.value = i.slice(1).map((n, s) => s < 3 ? $.ToHex(new Uint8Array($.FromHex(n)).reverse()) : n).join("-");
|
|
7880
7864
|
} else if (e.otherName.typeId === Wc)
|
|
7881
|
-
this.type = ps, this.value =
|
|
7865
|
+
this.type = ps, this.value = K.parse(e.otherName.value, Te).toString();
|
|
7882
7866
|
else
|
|
7883
7867
|
throw new Error(qc);
|
|
7884
7868
|
else
|
|
@@ -7923,12 +7907,12 @@ class ii extends $t {
|
|
|
7923
7907
|
if (n instanceof te)
|
|
7924
7908
|
i.push(n);
|
|
7925
7909
|
else {
|
|
7926
|
-
const s =
|
|
7910
|
+
const s = K.parse(new Jc(n.type, n.value).rawData, te);
|
|
7927
7911
|
i.push(s);
|
|
7928
7912
|
}
|
|
7929
7913
|
t = new Me(i);
|
|
7930
7914
|
} else if (V.isBufferSource(e))
|
|
7931
|
-
t =
|
|
7915
|
+
t = K.parse(e, Me);
|
|
7932
7916
|
else
|
|
7933
7917
|
throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
|
|
7934
7918
|
super(t);
|
|
@@ -7960,7 +7944,7 @@ class ii extends $t {
|
|
|
7960
7944
|
}
|
|
7961
7945
|
}
|
|
7962
7946
|
ii.NAME = "GeneralNames";
|
|
7963
|
-
const Kr = "-{5}", ni = "\\n", dh = `[^${ni}]+`, hh = `${Kr}BEGIN (${dh}(?=${Kr}))${Kr}`, ph = `${Kr}END \\1${Kr}`,
|
|
7947
|
+
const Kr = "-{5}", ni = "\\n", dh = `[^${ni}]+`, hh = `${Kr}BEGIN (${dh}(?=${Kr}))${Kr}`, ph = `${Kr}END \\1${Kr}`, Nr = "\\n", yh = `[^:${ni}]+`, gh = `(?:[^${ni}]+${Nr}(?: +[^${ni}]+${Nr})*)`, vh = "[a-zA-Z0-9=+/]+", mh = `(?:${vh}${Nr})+`, Yc = `${hh}${Nr}(?:((?:${yh}: ${gh})+))?${Nr}?(${mh})${ph}`;
|
|
7964
7948
|
class We {
|
|
7965
7949
|
static isPem(e) {
|
|
7966
7950
|
return typeof e == "string" && new RegExp(Yc, "g").test(e);
|
|
@@ -7976,16 +7960,16 @@ class We {
|
|
|
7976
7960
|
rawData: $.FromBase64(s)
|
|
7977
7961
|
}, l = n[2];
|
|
7978
7962
|
if (l) {
|
|
7979
|
-
const u = l.split(new RegExp(
|
|
7963
|
+
const u = l.split(new RegExp(Nr, "g"));
|
|
7980
7964
|
let f = null;
|
|
7981
7965
|
for (const v of u) {
|
|
7982
|
-
const [p,
|
|
7983
|
-
if (
|
|
7966
|
+
const [p, z] = v.split(/:(.*)/);
|
|
7967
|
+
if (z === void 0) {
|
|
7984
7968
|
if (!f)
|
|
7985
7969
|
throw new Error("Cannot parse PEM string. Incorrect header value");
|
|
7986
7970
|
f.value += p.trim();
|
|
7987
7971
|
} else
|
|
7988
|
-
f && a.headers.push(f), f = { key: p, value:
|
|
7972
|
+
f && a.headers.push(f), f = { key: p, value: z.trim() };
|
|
7989
7973
|
}
|
|
7990
7974
|
f && a.headers.push(f);
|
|
7991
7975
|
}
|
|
@@ -8050,7 +8034,7 @@ We.CrlTag = "CRL";
|
|
|
8050
8034
|
We.CertificateRequestTag = "CERTIFICATE REQUEST";
|
|
8051
8035
|
We.PublicKeyTag = "PUBLIC KEY";
|
|
8052
8036
|
We.PrivateKeyTag = "PRIVATE KEY";
|
|
8053
|
-
class
|
|
8037
|
+
class Nt extends $t {
|
|
8054
8038
|
static isAsnEncoded(e) {
|
|
8055
8039
|
return V.isBufferSource(e) || typeof e == "string";
|
|
8056
8040
|
}
|
|
@@ -8071,7 +8055,7 @@ class Ot extends $t {
|
|
|
8071
8055
|
}
|
|
8072
8056
|
}
|
|
8073
8057
|
constructor(...e) {
|
|
8074
|
-
|
|
8058
|
+
Nt.isAsnEncoded(e[0]) ? super(Nt.toArrayBuffer(e[0]), e[1]) : super(e[0]);
|
|
8075
8059
|
}
|
|
8076
8060
|
toString(e = "pem") {
|
|
8077
8061
|
switch (e) {
|
|
@@ -8082,9 +8066,9 @@ class Ot extends $t {
|
|
|
8082
8066
|
}
|
|
8083
8067
|
}
|
|
8084
8068
|
}
|
|
8085
|
-
class Wt extends
|
|
8069
|
+
class Wt extends Nt {
|
|
8086
8070
|
constructor(e) {
|
|
8087
|
-
|
|
8071
|
+
Nt.isAsnEncoded(e) ? super(e, Ct) : super(e), this.tag = We.PublicKeyTag;
|
|
8088
8072
|
}
|
|
8089
8073
|
async export(...e) {
|
|
8090
8074
|
let t, i = ["verify"], n = { hash: "SHA-256", ...this.algorithm };
|
|
@@ -8093,8 +8077,8 @@ class Wt extends Ot {
|
|
|
8093
8077
|
onInit(e) {
|
|
8094
8078
|
const t = Xe.resolve(Qn), i = this.algorithm = t.toWebAlgorithm(e.algorithm);
|
|
8095
8079
|
switch (e.algorithm.algorithm) {
|
|
8096
|
-
case
|
|
8097
|
-
const n =
|
|
8080
|
+
case Or: {
|
|
8081
|
+
const n = K.parse(e.subjectPublicKey, pa), s = V.toUint8Array(n.modulus);
|
|
8098
8082
|
i.publicExponent = V.toUint8Array(n.publicExponent), i.modulusLength = (s[0] ? s : s.slice(1)).byteLength << 3;
|
|
8099
8083
|
break;
|
|
8100
8084
|
}
|
|
@@ -8107,16 +8091,16 @@ class Wt extends Ot {
|
|
|
8107
8091
|
}
|
|
8108
8092
|
async getKeyIdentifier(e) {
|
|
8109
8093
|
e || (e = ze.get());
|
|
8110
|
-
const t =
|
|
8094
|
+
const t = K.parse(this.rawData, Ct);
|
|
8111
8095
|
return await e.subtle.digest("SHA-1", t.subjectPublicKey);
|
|
8112
8096
|
}
|
|
8113
8097
|
toTextObject() {
|
|
8114
|
-
const e = this.toTextObjectEmpty(), t =
|
|
8098
|
+
const e = this.toTextObjectEmpty(), t = K.parse(this.rawData, Ct);
|
|
8115
8099
|
switch (e.Algorithm = ir.serializeAlgorithm(t.algorithm), t.algorithm.algorithm) {
|
|
8116
8100
|
case ei:
|
|
8117
8101
|
e["EC Point"] = t.subjectPublicKey;
|
|
8118
8102
|
break;
|
|
8119
|
-
case
|
|
8103
|
+
case Or:
|
|
8120
8104
|
default:
|
|
8121
8105
|
e["Raw Data"] = t.subjectPublicKey;
|
|
8122
8106
|
}
|
|
@@ -8142,13 +8126,13 @@ class bh {
|
|
|
8142
8126
|
return V.toArrayBuffer(t);
|
|
8143
8127
|
}
|
|
8144
8128
|
}
|
|
8145
|
-
class an extends
|
|
8129
|
+
class an extends Nt {
|
|
8146
8130
|
constructor(e) {
|
|
8147
|
-
|
|
8131
|
+
Nt.isAsnEncoded(e) ? super(e, Ar) : super(e), this.tag = We.CertificateTag;
|
|
8148
8132
|
}
|
|
8149
8133
|
onInit(e) {
|
|
8150
8134
|
const t = e.tbsCertificate;
|
|
8151
|
-
this.tbs =
|
|
8135
|
+
this.tbs = K.serialize(t), this.serialNumber = $.ToHex(t.serialNumber), this.subjectName = new Rt(t.subject), this.subject = new Rt(t.subject).toString(), this.issuerName = new Rt(t.issuer), this.issuer = this.issuerName.toString();
|
|
8152
8136
|
const i = Xe.resolve(Qn);
|
|
8153
8137
|
this.signatureAlgorithm = i.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
|
|
8154
8138
|
const n = t.validity.notBefore.utcTime || t.validity.notBefore.generalTime;
|
|
@@ -8158,7 +8142,7 @@ class an extends Ot {
|
|
|
8158
8142
|
const s = t.validity.notAfter.utcTime || t.validity.notAfter.generalTime;
|
|
8159
8143
|
if (!s)
|
|
8160
8144
|
throw new Error("Cannot get 'notAfter' value");
|
|
8161
|
-
this.notAfter = s, this.extensions = [], t.extensions && (this.extensions = t.extensions.map((a) => mt.create(
|
|
8145
|
+
this.notAfter = s, this.extensions = [], t.extensions && (this.extensions = t.extensions.map((a) => mt.create(K.serialize(a)))), this.publicKey = new Wt(t.subjectPublicKeyInfo);
|
|
8162
8146
|
}
|
|
8163
8147
|
getExtension(e) {
|
|
8164
8148
|
for (const t of this.extensions)
|
|
@@ -8213,7 +8197,7 @@ class an extends Ot {
|
|
|
8213
8197
|
return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
|
|
8214
8198
|
}
|
|
8215
8199
|
toTextObject() {
|
|
8216
|
-
const e = this.toTextObjectEmpty(), t =
|
|
8200
|
+
const e = this.toTextObjectEmpty(), t = K.parse(this.rawData, Ar), i = t.tbsCertificate, n = new ue("", {
|
|
8217
8201
|
Version: `${wr[i.version]} (${i.version})`,
|
|
8218
8202
|
"Serial Number": i.serialNumber,
|
|
8219
8203
|
"Signature Algorithm": ir.serializeAlgorithm(i.signature),
|
|
@@ -8253,25 +8237,25 @@ class si extends vt {
|
|
|
8253
8237
|
super(e[0]);
|
|
8254
8238
|
else if (typeof e[0] == "string") {
|
|
8255
8239
|
const t = new Kt({ keyIdentifier: new Wo($.FromHex(e[0])) });
|
|
8256
|
-
super(xs, e[1],
|
|
8240
|
+
super(xs, e[1], K.serialize(t));
|
|
8257
8241
|
} else {
|
|
8258
|
-
const t = e[0], i = t.name instanceof ii ?
|
|
8242
|
+
const t = e[0], i = t.name instanceof ii ? K.parse(t.name.rawData, Me) : t.name, n = new Kt({
|
|
8259
8243
|
authorityCertIssuer: i,
|
|
8260
8244
|
authorityCertSerialNumber: $.FromHex(t.serialNumber)
|
|
8261
8245
|
});
|
|
8262
|
-
super(xs, e[1],
|
|
8246
|
+
super(xs, e[1], K.serialize(n));
|
|
8263
8247
|
}
|
|
8264
8248
|
}
|
|
8265
8249
|
onInit(e) {
|
|
8266
8250
|
super.onInit(e);
|
|
8267
|
-
const t =
|
|
8251
|
+
const t = K.parse(e.extnValue, Kt);
|
|
8268
8252
|
t.keyIdentifier && (this.keyId = $.ToHex(t.keyIdentifier)), t.authorityCertIssuer && t.authorityCertSerialNumber && (this.certId = {
|
|
8269
8253
|
name: t.authorityCertIssuer,
|
|
8270
8254
|
serialNumber: $.ToHex(t.authorityCertSerialNumber)
|
|
8271
8255
|
});
|
|
8272
8256
|
}
|
|
8273
8257
|
toTextObject() {
|
|
8274
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8258
|
+
const e = this.toTextObjectWithoutValue(), t = K.parse(this.value, Kt);
|
|
8275
8259
|
return t.authorityCertIssuer && (e["Authority Issuer"] = new ii(t.authorityCertIssuer).toTextObject()), t.authorityCertSerialNumber && (e["Authority Serial Number"] = t.authorityCertSerialNumber), t.keyIdentifier && (e[""] = t.keyIdentifier), e;
|
|
8276
8260
|
}
|
|
8277
8261
|
}
|
|
@@ -8280,14 +8264,14 @@ class ff extends vt {
|
|
|
8280
8264
|
constructor(...e) {
|
|
8281
8265
|
if (V.isBufferSource(e[0])) {
|
|
8282
8266
|
super(e[0]);
|
|
8283
|
-
const t =
|
|
8267
|
+
const t = K.parse(this.value, Ri);
|
|
8284
8268
|
this.ca = t.cA, this.pathLength = t.pathLenConstraint;
|
|
8285
8269
|
} else {
|
|
8286
8270
|
const t = new Ri({
|
|
8287
8271
|
cA: e[0],
|
|
8288
8272
|
pathLenConstraint: e[1]
|
|
8289
8273
|
});
|
|
8290
|
-
super(xu, e[2],
|
|
8274
|
+
super(xu, e[2], K.serialize(t)), this.ca = e[0], this.pathLength = e[1];
|
|
8291
8275
|
}
|
|
8292
8276
|
}
|
|
8293
8277
|
toTextObject() {
|
|
@@ -8304,11 +8288,11 @@ class df extends vt {
|
|
|
8304
8288
|
constructor(...e) {
|
|
8305
8289
|
if (V.isBufferSource(e[0])) {
|
|
8306
8290
|
super(e[0]);
|
|
8307
|
-
const t =
|
|
8291
|
+
const t = K.parse(this.value, Ui);
|
|
8308
8292
|
this.usages = t.map((i) => i);
|
|
8309
8293
|
} else {
|
|
8310
8294
|
const t = new Ui(e[0]);
|
|
8311
|
-
super(Iu, e[1],
|
|
8295
|
+
super(Iu, e[1], K.serialize(t)), this.usages = e[0];
|
|
8312
8296
|
}
|
|
8313
8297
|
}
|
|
8314
8298
|
toTextObject() {
|
|
@@ -8317,23 +8301,23 @@ class df extends vt {
|
|
|
8317
8301
|
}
|
|
8318
8302
|
}
|
|
8319
8303
|
df.NAME = "Extended Key Usages";
|
|
8320
|
-
var
|
|
8304
|
+
var No;
|
|
8321
8305
|
(function(r) {
|
|
8322
8306
|
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";
|
|
8323
|
-
})(
|
|
8307
|
+
})(No || (No = {}));
|
|
8324
8308
|
class ba extends vt {
|
|
8325
8309
|
constructor(...e) {
|
|
8326
8310
|
if (V.isBufferSource(e[0])) {
|
|
8327
8311
|
super(e[0]);
|
|
8328
|
-
const t =
|
|
8312
|
+
const t = K.parse(this.value, as);
|
|
8329
8313
|
this.usages = t.toNumber();
|
|
8330
8314
|
} else {
|
|
8331
8315
|
const t = new as(e[0]);
|
|
8332
|
-
super(Eu, e[1],
|
|
8316
|
+
super(Eu, e[1], K.serialize(t)), this.usages = e[0];
|
|
8333
8317
|
}
|
|
8334
8318
|
}
|
|
8335
8319
|
toTextObject() {
|
|
8336
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8320
|
+
const e = this.toTextObjectWithoutValue(), t = K.parse(this.value, as);
|
|
8337
8321
|
return e[""] = t.toJSON().join(", "), e;
|
|
8338
8322
|
}
|
|
8339
8323
|
}
|
|
@@ -8348,15 +8332,15 @@ class es extends vt {
|
|
|
8348
8332
|
constructor(...e) {
|
|
8349
8333
|
if (V.isBufferSource(e[0])) {
|
|
8350
8334
|
super(e[0]);
|
|
8351
|
-
const t =
|
|
8335
|
+
const t = K.parse(this.value, Pt);
|
|
8352
8336
|
this.keyId = $.ToHex(t);
|
|
8353
8337
|
} else {
|
|
8354
8338
|
const t = typeof e[0] == "string" ? $.FromHex(e[0]) : e[0], i = new Pt(t);
|
|
8355
|
-
super(Tu, e[1],
|
|
8339
|
+
super(Tu, e[1], K.serialize(i)), this.keyId = $.ToHex(t);
|
|
8356
8340
|
}
|
|
8357
8341
|
}
|
|
8358
8342
|
toTextObject() {
|
|
8359
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8343
|
+
const e = this.toTextObjectWithoutValue(), t = K.parse(this.value, Pt);
|
|
8360
8344
|
return e[""] = t, e;
|
|
8361
8345
|
}
|
|
8362
8346
|
}
|
|
@@ -8367,7 +8351,7 @@ class wa extends vt {
|
|
|
8367
8351
|
}
|
|
8368
8352
|
onInit(e) {
|
|
8369
8353
|
super.onInit(e);
|
|
8370
|
-
const t =
|
|
8354
|
+
const t = K.parse(e.extnValue, $s);
|
|
8371
8355
|
this.names = new ii(t);
|
|
8372
8356
|
}
|
|
8373
8357
|
toTextObject() {
|
|
@@ -8383,13 +8367,13 @@ class hf extends vt {
|
|
|
8383
8367
|
var t;
|
|
8384
8368
|
if (V.isBufferSource(e[0])) {
|
|
8385
8369
|
super(e[0]);
|
|
8386
|
-
const i =
|
|
8370
|
+
const i = K.parse(this.value, Di);
|
|
8387
8371
|
this.policies = i.map((n) => n.policyIdentifier);
|
|
8388
8372
|
} else {
|
|
8389
|
-
const i = e[0], n = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new Di(i.map((a) => new
|
|
8373
|
+
const i = e[0], n = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new Di(i.map((a) => new On({
|
|
8390
8374
|
policyIdentifier: a
|
|
8391
8375
|
})));
|
|
8392
|
-
super(Bu, n,
|
|
8376
|
+
super(Bu, n, K.serialize(s)), this.policies = i;
|
|
8393
8377
|
}
|
|
8394
8378
|
}
|
|
8395
8379
|
toTextObject() {
|
|
@@ -8406,7 +8390,7 @@ class $r extends $t {
|
|
|
8406
8390
|
t = V.toArrayBuffer(e[0]);
|
|
8407
8391
|
else {
|
|
8408
8392
|
const i = e[0], n = Array.isArray(e[1]) ? e[1].map((s) => V.toArrayBuffer(s)) : [];
|
|
8409
|
-
t =
|
|
8393
|
+
t = K.serialize(new Et({ type: i, values: n }));
|
|
8410
8394
|
}
|
|
8411
8395
|
super(t, Et);
|
|
8412
8396
|
}
|
|
@@ -8432,13 +8416,13 @@ class pf extends $r {
|
|
|
8432
8416
|
const i = new sn({
|
|
8433
8417
|
printableString: e[0]
|
|
8434
8418
|
});
|
|
8435
|
-
super(sf, [
|
|
8419
|
+
super(sf, [K.serialize(i)]);
|
|
8436
8420
|
}
|
|
8437
8421
|
(t = this.password) !== null && t !== void 0 || (this.password = "");
|
|
8438
8422
|
}
|
|
8439
8423
|
onInit(e) {
|
|
8440
8424
|
if (super.onInit(e), this.values[0]) {
|
|
8441
|
-
const t =
|
|
8425
|
+
const t = K.parse(this.values[0], sn);
|
|
8442
8426
|
this.password = t.toString();
|
|
8443
8427
|
}
|
|
8444
8428
|
}
|
|
@@ -8456,15 +8440,15 @@ class Aa extends $r {
|
|
|
8456
8440
|
else {
|
|
8457
8441
|
const i = e[0], n = new er();
|
|
8458
8442
|
for (const s of i)
|
|
8459
|
-
n.push(
|
|
8460
|
-
super(ma, [
|
|
8443
|
+
n.push(K.parse(s.rawData, ot));
|
|
8444
|
+
super(ma, [K.serialize(n)]);
|
|
8461
8445
|
}
|
|
8462
8446
|
(t = this.items) !== null && t !== void 0 || (this.items = []);
|
|
8463
8447
|
}
|
|
8464
8448
|
onInit(e) {
|
|
8465
8449
|
if (super.onInit(e), this.values[0]) {
|
|
8466
|
-
const t =
|
|
8467
|
-
this.items = t.map((i) => mt.create(
|
|
8450
|
+
const t = K.parse(this.values[0], er);
|
|
8451
|
+
this.items = t.map((i) => mt.create(K.serialize(i)));
|
|
8468
8452
|
}
|
|
8469
8453
|
}
|
|
8470
8454
|
toTextObject() {
|
|
@@ -8499,22 +8483,22 @@ let _o = class {
|
|
|
8499
8483
|
throw new Error("Cannot get hash algorithm name");
|
|
8500
8484
|
switch (t.toLowerCase()) {
|
|
8501
8485
|
case "sha-1":
|
|
8502
|
-
return new
|
|
8486
|
+
return new L({ algorithm: Qi, parameters: null });
|
|
8503
8487
|
case "sha-256":
|
|
8504
|
-
return new
|
|
8488
|
+
return new L({ algorithm: oo, parameters: null });
|
|
8505
8489
|
case "sha-384":
|
|
8506
|
-
return new
|
|
8490
|
+
return new L({ algorithm: Xi, parameters: null });
|
|
8507
8491
|
case "sha-512":
|
|
8508
|
-
return new
|
|
8492
|
+
return new L({ algorithm: en, parameters: null });
|
|
8509
8493
|
}
|
|
8510
8494
|
} else
|
|
8511
|
-
return new
|
|
8495
|
+
return new L({ algorithm: Or, parameters: null });
|
|
8512
8496
|
}
|
|
8513
8497
|
return null;
|
|
8514
8498
|
}
|
|
8515
8499
|
toWebAlgorithm(e) {
|
|
8516
8500
|
switch (e.algorithm) {
|
|
8517
|
-
case
|
|
8501
|
+
case Or:
|
|
8518
8502
|
return { name: "RSASSA-PKCS1-v1_5" };
|
|
8519
8503
|
case Qi:
|
|
8520
8504
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-1" } };
|
|
@@ -8553,13 +8537,13 @@ class Qe {
|
|
|
8553
8537
|
toAsnSignature(e, t) {
|
|
8554
8538
|
if (e.name === "ECDSA") {
|
|
8555
8539
|
const i = e.namedCurve, n = Qe.namedCurveSize.get(i) || Qe.defaultNamedCurveSize, s = new Zi(), a = V.toUint8Array(t);
|
|
8556
|
-
return s.r = this.removePadding(a.slice(0, n), !0), s.s = this.removePadding(a.slice(n, n + n), !0),
|
|
8540
|
+
return s.r = this.removePadding(a.slice(0, n), !0), s.s = this.removePadding(a.slice(n, n + n), !0), K.serialize(s);
|
|
8557
8541
|
}
|
|
8558
8542
|
return null;
|
|
8559
8543
|
}
|
|
8560
8544
|
toWebSignature(e, t) {
|
|
8561
8545
|
if (e.name === "ECDSA") {
|
|
8562
|
-
const i =
|
|
8546
|
+
const i = K.parse(t, Zi), n = e.namedCurve, s = Qe.namedCurveSize.get(n) || Qe.defaultNamedCurveSize, a = this.addPadding(s, this.removePadding(i.r)), l = this.addPadding(s, this.removePadding(i.s));
|
|
8563
8547
|
return jf(a, l);
|
|
8564
8548
|
}
|
|
8565
8549
|
return null;
|
|
@@ -8592,7 +8576,7 @@ let To = class {
|
|
|
8592
8576
|
break;
|
|
8593
8577
|
}
|
|
8594
8578
|
}
|
|
8595
|
-
return t ? new
|
|
8579
|
+
return t ? new L({
|
|
8596
8580
|
algorithm: t
|
|
8597
8581
|
}) : null;
|
|
8598
8582
|
}
|
|
@@ -8614,14 +8598,14 @@ To = o([
|
|
|
8614
8598
|
va()
|
|
8615
8599
|
], To);
|
|
8616
8600
|
Xe.registerSingleton(Zn, To);
|
|
8617
|
-
class wh extends
|
|
8601
|
+
class wh extends Nt {
|
|
8618
8602
|
constructor(e) {
|
|
8619
|
-
|
|
8603
|
+
Nt.isAsnEncoded(e) ? super(e, ti) : super(e), this.tag = We.CertificateRequestTag;
|
|
8620
8604
|
}
|
|
8621
8605
|
onInit(e) {
|
|
8622
|
-
this.tbs =
|
|
8606
|
+
this.tbs = K.serialize(e.certificationRequestInfo), this.publicKey = new Wt(e.certificationRequestInfo.subjectPKInfo);
|
|
8623
8607
|
const t = Xe.resolve(Qn);
|
|
8624
|
-
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((n) => ts.create(
|
|
8608
|
+
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((n) => ts.create(K.serialize(n)));
|
|
8625
8609
|
const i = this.getAttribute(ma);
|
|
8626
8610
|
this.extensions = [], i instanceof Aa && (this.extensions = i.items), this.subjectName = new Rt(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
|
|
8627
8611
|
}
|
|
@@ -8654,7 +8638,7 @@ class wh extends Ot {
|
|
|
8654
8638
|
return await e.subtle.verify(this.signatureAlgorithm, i, s, this.tbs);
|
|
8655
8639
|
}
|
|
8656
8640
|
toTextObject() {
|
|
8657
|
-
const e = this.toTextObjectEmpty(), t =
|
|
8641
|
+
const e = this.toTextObjectEmpty(), t = K.parse(this.rawData, ti), i = t.certificationRequestInfo, n = new ue("", {
|
|
8658
8642
|
Version: `${wr[i.version]} (${i.version})`,
|
|
8659
8643
|
Subject: this.subject,
|
|
8660
8644
|
"Subject Public Key Info": this.publicKey
|
|
@@ -8711,7 +8695,7 @@ function yf() {
|
|
|
8711
8695
|
for (const u in l)
|
|
8712
8696
|
i.subjectAltName = `${u}=${l[u].join(", ")}`;
|
|
8713
8697
|
} else if (n instanceof ba) {
|
|
8714
|
-
const s = Object.values(
|
|
8698
|
+
const s = Object.values(No), a = Array(s.length / 2).fill(null).reduce((l, u, f) => {
|
|
8715
8699
|
const v = s[s.length / 2 + f];
|
|
8716
8700
|
if (n.usages & v) {
|
|
8717
8701
|
const p = s[f];
|
|
@@ -8961,7 +8945,7 @@ const at = {
|
|
|
8961
8945
|
validate: `${xi}/schemas/certificates/validate`
|
|
8962
8946
|
}
|
|
8963
8947
|
}
|
|
8964
|
-
}, Ch = { class: "kong-ui-entities-certificates-list" }, Ih = { key: 0 }, Eh = { key: 1 },
|
|
8948
|
+
}, Ch = { class: "kong-ui-entities-certificates-list" }, Ih = { key: 0 }, Eh = { key: 1 }, Oh = { key: 0 }, Nh = { key: 1 }, _h = { key: 0 }, Th = { key: 1 }, jh = { key: 1 }, Vh = { key: 1 }, Ph = /* @__PURE__ */ nr({
|
|
8965
8949
|
__name: "CertificateList",
|
|
8966
8950
|
props: {
|
|
8967
8951
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -9014,18 +8998,18 @@ const at = {
|
|
|
9014
8998
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
9015
8999
|
setup(r, { emit: e }) {
|
|
9016
9000
|
var Y;
|
|
9017
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = cn(), { axiosInstance: u } = ln((Y = i.config) == null ? void 0 : Y.axiosRequestConfig), f = ve(1), v = ce(() => i.config.app !== "kongManager" || !!i.config.disableSorting),
|
|
9001
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = cn(), { axiosInstance: u } = ln((Y = i.config) == null ? void 0 : Y.axiosRequestConfig), f = ve(1), v = ce(() => i.config.app !== "kongManager" || !!i.config.disableSorting), z = {
|
|
9018
9002
|
// the Subject column is non-hidable
|
|
9019
9003
|
subject: { label: n("certificates.list.table_headers.subject"), hidable: !1 },
|
|
9020
9004
|
expiry: { label: n("certificates.list.table_headers.expiry") },
|
|
9021
9005
|
san: { label: n("certificates.list.table_headers.san") },
|
|
9022
9006
|
cert: { label: n("certificates.list.table_headers.cert") },
|
|
9023
9007
|
tags: { label: n("certificates.list.table_headers.tags"), sortable: !0 }
|
|
9024
|
-
},
|
|
9025
|
-
var
|
|
9008
|
+
}, N = ce(() => {
|
|
9009
|
+
var q, de;
|
|
9026
9010
|
let D = `${i.config.apiBaseUrl}${qr.list[i.config.app]}`;
|
|
9027
|
-
return i.config.app === "konnect" ? D = D.replace(/{controlPlaneId}/gi, ((
|
|
9028
|
-
}), d = ve(""),
|
|
9011
|
+
return i.config.app === "konnect" ? D = D.replace(/{controlPlaneId}/gi, ((q = i.config) == null ? void 0 : q.controlPlaneId) || "") : i.config.app === "kongManager" && (D = D.replace(/\/{workspace}/gi, (de = i.config) != null && de.workspace ? `/${i.config.workspace}` : "")), D;
|
|
9012
|
+
}), d = ve(""), y = ce(() => {
|
|
9029
9013
|
const D = i.config.app === "konnect" || i.config.isExactMatch;
|
|
9030
9014
|
return D ? {
|
|
9031
9015
|
isExactMatch: D,
|
|
@@ -9034,13 +9018,13 @@ const at = {
|
|
|
9034
9018
|
isExactMatch: D,
|
|
9035
9019
|
schema: i.config.filterSchema
|
|
9036
9020
|
};
|
|
9037
|
-
}), { fetcher: A, fetcherState: b } = cl(i.config,
|
|
9021
|
+
}), { fetcher: A, fetcherState: b } = cl(i.config, N.value), O = () => {
|
|
9038
9022
|
d.value = "";
|
|
9039
9023
|
}, k = () => {
|
|
9040
9024
|
f.value++;
|
|
9041
|
-
}, C = ve(null), ee = (D,
|
|
9025
|
+
}, C = ve(null), ee = (D, q) => {
|
|
9042
9026
|
const de = D.id;
|
|
9043
|
-
if (!
|
|
9027
|
+
if (!q(de)) {
|
|
9044
9028
|
t("copy:error", {
|
|
9045
9029
|
entity: D,
|
|
9046
9030
|
field: "id",
|
|
@@ -9053,9 +9037,9 @@ const at = {
|
|
|
9053
9037
|
field: "id",
|
|
9054
9038
|
message: n("certificates.copy.success", { val: de })
|
|
9055
9039
|
});
|
|
9056
|
-
}, le = (D,
|
|
9040
|
+
}, le = (D, q) => {
|
|
9057
9041
|
const de = JSON.stringify(D);
|
|
9058
|
-
if (!
|
|
9042
|
+
if (!q(de)) {
|
|
9059
9043
|
t("copy:error", {
|
|
9060
9044
|
entity: D,
|
|
9061
9045
|
message: n("certificates.errors.copy")
|
|
@@ -9081,26 +9065,26 @@ const at = {
|
|
|
9081
9065
|
label: n("certificates.actions.addSni"),
|
|
9082
9066
|
to: i.config.getCreateSniRoute(D)
|
|
9083
9067
|
};
|
|
9084
|
-
}, se = ve(void 0), je = ve(!1), he = ve(!1), Ae = ve(""), ut = ll(i.config,
|
|
9068
|
+
}, se = ve(void 0), je = ve(!1), he = ve(!1), Ae = ve(""), ut = ll(i.config, N.value), { certificateDataCache: ie, getCertificateData: bt } = at.useCertificate(), ur = (D) => {
|
|
9085
9069
|
se.value = D, je.value = !0;
|
|
9086
9070
|
}, fr = () => {
|
|
9087
9071
|
je.value = !1;
|
|
9088
9072
|
}, Ut = async () => {
|
|
9089
|
-
var D,
|
|
9073
|
+
var D, q, de;
|
|
9090
9074
|
if ((D = se.value) != null && D.id) {
|
|
9091
9075
|
he.value = !0;
|
|
9092
9076
|
try {
|
|
9093
9077
|
await u.delete(ut(se.value.id)), he.value = !1, je.value = !1, f.value++, t("delete:success", se.value);
|
|
9094
9078
|
} catch (Re) {
|
|
9095
|
-
Ae.value = ((de = (
|
|
9079
|
+
Ae.value = ((de = (q = Re.response) == null ? void 0 : q.data) == null ? void 0 : de.message) || Re.message || n("certificates.errors.delete"), t("error", Re);
|
|
9096
9080
|
} finally {
|
|
9097
9081
|
he.value = !1;
|
|
9098
9082
|
}
|
|
9099
9083
|
}
|
|
9100
9084
|
}, wt = ve(!1);
|
|
9101
|
-
|
|
9102
|
-
var
|
|
9103
|
-
if (Array.isArray((
|
|
9085
|
+
Ni(b, (D) => {
|
|
9086
|
+
var q, de, Re, qe;
|
|
9087
|
+
if (Array.isArray((q = D == null ? void 0 : D.response) == null ? void 0 : q.data) && (wt.value = D.response.data.length > 0), D.status === ul.Error) {
|
|
9104
9088
|
C.value = {
|
|
9105
9089
|
title: n("certificates.errors.general")
|
|
9106
9090
|
}, (qe = (Re = (de = D.error) == null ? void 0 : de.response) == null ? void 0 : Re.data) != null && qe.message && (C.value.message = D.error.response.data.message), t("error", D.error);
|
|
@@ -9108,22 +9092,22 @@ const at = {
|
|
|
9108
9092
|
}
|
|
9109
9093
|
ie.value = {}, C.value = null;
|
|
9110
9094
|
});
|
|
9111
|
-
const
|
|
9095
|
+
const W = ve({
|
|
9112
9096
|
ctaPath: i.config.createRoute,
|
|
9113
9097
|
ctaText: void 0,
|
|
9114
9098
|
message: `${n("certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
9115
9099
|
title: n("certificates.title")
|
|
9116
9100
|
});
|
|
9117
9101
|
return il(async () => {
|
|
9118
|
-
await i.canCreate() && (
|
|
9119
|
-
}), (D,
|
|
9120
|
-
const de = ge("KButton"), Re = ge("KCopy"), qe = ge("KBadge"), dr = ge("KTruncate"), Z = ge("KDropdownItem"),
|
|
9102
|
+
await i.canCreate() && (W.value.title = n("certificates.list.empty_state.title"), W.value.ctaText = n("certificates.actions.create"));
|
|
9103
|
+
}), (D, q) => {
|
|
9104
|
+
const de = ge("KButton"), Re = ge("KCopy"), qe = ge("KBadge"), dr = ge("KTruncate"), Z = ge("KDropdownItem"), ke = ge("KClipboardProvider");
|
|
9121
9105
|
return Q(), ae("div", Ch, [
|
|
9122
9106
|
R(w(fl), {
|
|
9123
9107
|
"cache-identifier": r.cacheIdentifier,
|
|
9124
9108
|
"disable-pagination-page-jump": "",
|
|
9125
9109
|
"disable-sorting": v.value,
|
|
9126
|
-
"empty-state-options":
|
|
9110
|
+
"empty-state-options": W.value,
|
|
9127
9111
|
"enable-entity-actions": "",
|
|
9128
9112
|
"error-message": C.value,
|
|
9129
9113
|
fetcher: w(A),
|
|
@@ -9131,20 +9115,20 @@ const at = {
|
|
|
9131
9115
|
"pagination-type": "offset",
|
|
9132
9116
|
"preferences-storage-key": "kong-ui-entities-certificates-list",
|
|
9133
9117
|
query: d.value,
|
|
9134
|
-
"table-headers": w(
|
|
9135
|
-
onClearSearchInput:
|
|
9136
|
-
"onClick:row":
|
|
9118
|
+
"table-headers": w(z),
|
|
9119
|
+
onClearSearchInput: O,
|
|
9120
|
+
"onClick:row": q[2] || (q[2] = (G) => M(G)),
|
|
9137
9121
|
onSort: k
|
|
9138
9122
|
}, {
|
|
9139
9123
|
"toolbar-filter": I(() => [
|
|
9140
9124
|
R(w(dl), {
|
|
9141
9125
|
modelValue: d.value,
|
|
9142
|
-
"onUpdate:modelValue":
|
|
9143
|
-
config:
|
|
9126
|
+
"onUpdate:modelValue": q[0] || (q[0] = (G) => d.value = G),
|
|
9127
|
+
config: y.value
|
|
9144
9128
|
}, null, 8, ["modelValue", "config"])
|
|
9145
9129
|
]),
|
|
9146
9130
|
"toolbar-button": I(() => [
|
|
9147
|
-
(Q(),
|
|
9131
|
+
(Q(), Oe(nl, {
|
|
9148
9132
|
disabled: !r.useActionOutside,
|
|
9149
9133
|
to: "#kong-ui-app-page-header-action-button"
|
|
9150
9134
|
}, [
|
|
@@ -9172,25 +9156,25 @@ const at = {
|
|
|
9172
9156
|
], 8, ["disabled"]))
|
|
9173
9157
|
]),
|
|
9174
9158
|
subject: I(({ row: G }) => {
|
|
9175
|
-
var
|
|
9159
|
+
var xe;
|
|
9176
9160
|
return [
|
|
9177
|
-
r.config.app === "konnect" ? (Q(), ae("b", Ih, X((
|
|
9161
|
+
r.config.app === "konnect" ? (Q(), ae("b", Ih, X((xe = G == null ? void 0 : G.metadata) != null && xe.subject ? G.metadata.subject : "-"), 1)) : (Q(), ae("b", Eh, X(w(bt)(G).schemaSubject || "-"), 1))
|
|
9178
9162
|
];
|
|
9179
9163
|
}),
|
|
9180
9164
|
expiry: I(({ row: G }) => {
|
|
9181
|
-
var
|
|
9165
|
+
var xe;
|
|
9182
9166
|
return [
|
|
9183
|
-
r.config.app === "konnect" ? (Q(), ae("span",
|
|
9167
|
+
r.config.app === "konnect" ? (Q(), ae("span", Oh, X((xe = G == null ? void 0 : G.metadata) != null && xe.expiry ? w(s)(G.metadata.expiry) : "-"), 1)) : (Q(), ae("span", Nh, X(w(bt)(G).schemaExpiry ? w(s)(w(bt)(G).schemaExpiry) : "-"), 1))
|
|
9184
9168
|
];
|
|
9185
9169
|
}),
|
|
9186
9170
|
san: I(({ row: G }) => {
|
|
9187
|
-
var
|
|
9171
|
+
var xe;
|
|
9188
9172
|
return [
|
|
9189
|
-
r.config.app === "konnect" ? (Q(), ae("span", _h, X((
|
|
9173
|
+
r.config.app === "konnect" ? (Q(), ae("span", _h, X((xe = G == null ? void 0 : G.metadata) != null && xe.dns_names ? `dns=${G.metadata.dns_names.join(", ")}` : "-"), 1)) : (Q(), ae("span", Th, X(w(bt)(G).schemaSanNames || "-"), 1))
|
|
9190
9174
|
];
|
|
9191
9175
|
}),
|
|
9192
9176
|
cert: I(({ row: G }) => [
|
|
9193
|
-
G != null && G.cert ? (Q(),
|
|
9177
|
+
G != null && G.cert ? (Q(), Oe(Re, {
|
|
9194
9178
|
key: 0,
|
|
9195
9179
|
"data-testid": "copy-certificate-cert",
|
|
9196
9180
|
text: G.cert,
|
|
@@ -9198,13 +9182,13 @@ const at = {
|
|
|
9198
9182
|
}, null, 8, ["text"])) : (Q(), ae("span", jh, "-"))
|
|
9199
9183
|
]),
|
|
9200
9184
|
tags: I(({ row: G }) => {
|
|
9201
|
-
var
|
|
9185
|
+
var xe;
|
|
9202
9186
|
return [
|
|
9203
|
-
((
|
|
9187
|
+
((xe = G == null ? void 0 : G.tags) == null ? void 0 : xe.length) > 0 ? (Q(), Oe(dr, { key: 0 }, {
|
|
9204
9188
|
default: I(() => [
|
|
9205
|
-
(Q(!0), ae(Jt, null, Yt(G == null ? void 0 : G.tags, (hr) => (Q(),
|
|
9189
|
+
(Q(!0), ae(Jt, null, Yt(G == null ? void 0 : G.tags, (hr) => (Q(), Oe(qe, {
|
|
9206
9190
|
key: hr,
|
|
9207
|
-
onClick:
|
|
9191
|
+
onClick: q[1] || (q[1] = al(() => {
|
|
9208
9192
|
}, ["stop"]))
|
|
9209
9193
|
}, {
|
|
9210
9194
|
default: I(() => [
|
|
@@ -9218,11 +9202,11 @@ const at = {
|
|
|
9218
9202
|
];
|
|
9219
9203
|
}),
|
|
9220
9204
|
actions: I(({ row: G }) => [
|
|
9221
|
-
R(
|
|
9222
|
-
default: I(({ copyToClipboard:
|
|
9205
|
+
R(ke, null, {
|
|
9206
|
+
default: I(({ copyToClipboard: xe }) => [
|
|
9223
9207
|
R(Z, {
|
|
9224
9208
|
"data-testid": "action-entity-copy-id",
|
|
9225
|
-
onClick: (hr) => ee(G,
|
|
9209
|
+
onClick: (hr) => ee(G, xe)
|
|
9226
9210
|
}, {
|
|
9227
9211
|
default: I(() => [
|
|
9228
9212
|
ye(X(w(n)("certificates.actions.copy_id")), 1)
|
|
@@ -9232,11 +9216,11 @@ const at = {
|
|
|
9232
9216
|
]),
|
|
9233
9217
|
_: 2
|
|
9234
9218
|
}, 1024),
|
|
9235
|
-
R(
|
|
9236
|
-
default: I(({ copyToClipboard:
|
|
9219
|
+
R(ke, null, {
|
|
9220
|
+
default: I(({ copyToClipboard: xe }) => [
|
|
9237
9221
|
R(Z, {
|
|
9238
9222
|
"data-testid": "action-entity-copy-json",
|
|
9239
|
-
onClick: (hr) => le(G,
|
|
9223
|
+
onClick: (hr) => le(G, xe)
|
|
9240
9224
|
}, {
|
|
9241
9225
|
default: I(() => [
|
|
9242
9226
|
ye(X(w(n)("certificates.actions.copy_json")), 1)
|
|
@@ -9269,7 +9253,7 @@ const at = {
|
|
|
9269
9253
|
]),
|
|
9270
9254
|
_: 2
|
|
9271
9255
|
}, 1032, ["auth-function"]),
|
|
9272
|
-
r.config.getCreateSniRoute ? (Q(),
|
|
9256
|
+
r.config.getCreateSniRoute ? (Q(), Oe(w(St), {
|
|
9273
9257
|
key: 0,
|
|
9274
9258
|
"auth-function": () => r.canCreateSni()
|
|
9275
9259
|
}, {
|
|
@@ -9289,7 +9273,7 @@ const at = {
|
|
|
9289
9273
|
danger: "",
|
|
9290
9274
|
"data-testid": "action-entity-delete",
|
|
9291
9275
|
"has-divider": "",
|
|
9292
|
-
onClick: (
|
|
9276
|
+
onClick: (xe) => ur(G)
|
|
9293
9277
|
}, {
|
|
9294
9278
|
default: I(() => [
|
|
9295
9279
|
ye(X(w(n)("certificates.actions.delete")), 1)
|
|
@@ -9355,12 +9339,12 @@ const at = {
|
|
|
9355
9339
|
emits: ["add", "remove", "update:modelValue"],
|
|
9356
9340
|
setup(r, { emit: e }) {
|
|
9357
9341
|
const t = r, i = e, { i18nT: n, i18n: { t: s } } = at.useI18n(), a = ve([]);
|
|
9358
|
-
return
|
|
9342
|
+
return Ni(t.modelValue, (l) => {
|
|
9359
9343
|
a.value = [...l];
|
|
9360
|
-
}, { immediate: !0, deep: !0 }),
|
|
9344
|
+
}, { immediate: !0, deep: !0 }), Ni(a, (l) => {
|
|
9361
9345
|
i("update:modelValue", l);
|
|
9362
9346
|
}, { deep: !0 }), (l, u) => {
|
|
9363
|
-
const f = ge("KLabel"), v = ge("KInput"), p = ge("KButton"),
|
|
9347
|
+
const f = ge("KLabel"), v = ge("KInput"), p = ge("KButton"), z = ge("router-link");
|
|
9364
9348
|
return Q(), ae("div", Mh, [
|
|
9365
9349
|
R(f, {
|
|
9366
9350
|
info: w(s)("certificates.form.fields.snis.tooltip")
|
|
@@ -9370,14 +9354,14 @@ const at = {
|
|
|
9370
9354
|
]),
|
|
9371
9355
|
_: 1
|
|
9372
9356
|
}, 8, ["info"]),
|
|
9373
|
-
(Q(!0), ae(Jt, null, Yt(a.value, (
|
|
9357
|
+
(Q(!0), ae(Jt, null, Yt(a.value, (N, d) => (Q(), ae("div", {
|
|
9374
9358
|
key: d,
|
|
9375
9359
|
class: "sni-field-input"
|
|
9376
9360
|
}, [
|
|
9377
|
-
!r.isEditing || a.value[d] ? (Q(),
|
|
9361
|
+
!r.isEditing || a.value[d] ? (Q(), Oe(v, {
|
|
9378
9362
|
key: 0,
|
|
9379
9363
|
modelValue: a.value[d],
|
|
9380
|
-
"onUpdate:modelValue": (
|
|
9364
|
+
"onUpdate:modelValue": (y) => a.value[d] = y,
|
|
9381
9365
|
modelModifiers: { trim: !0 },
|
|
9382
9366
|
"data-testid": `sni-field-input-${d + 1}`,
|
|
9383
9367
|
disabled: r.isEditing,
|
|
@@ -9389,7 +9373,7 @@ const at = {
|
|
|
9389
9373
|
class: "remove-button",
|
|
9390
9374
|
"data-testid": "remove-sni",
|
|
9391
9375
|
icon: "",
|
|
9392
|
-
onClick: (
|
|
9376
|
+
onClick: (y) => l.$emit("remove", d)
|
|
9393
9377
|
}, {
|
|
9394
9378
|
default: I(() => [
|
|
9395
9379
|
R(w(Cf), { color: w(Rh) }, null, 8, ["color"])
|
|
@@ -9401,7 +9385,7 @@ const at = {
|
|
|
9401
9385
|
"data-testid": "add-sni",
|
|
9402
9386
|
disabled: d !== a.value.length - 1,
|
|
9403
9387
|
icon: "",
|
|
9404
|
-
onClick: u[0] || (u[0] = (
|
|
9388
|
+
onClick: u[0] || (u[0] = (y) => l.$emit("add"))
|
|
9405
9389
|
}, {
|
|
9406
9390
|
default: I(() => [
|
|
9407
9391
|
R(w(jo))
|
|
@@ -9412,7 +9396,7 @@ const at = {
|
|
|
9412
9396
|
]))), 128)),
|
|
9413
9397
|
a.value.length === 0 ? (Q(), ae("div", $h, [
|
|
9414
9398
|
R(p, {
|
|
9415
|
-
onClick: u[1] || (u[1] = (
|
|
9399
|
+
onClick: u[1] || (u[1] = (N) => l.$emit("add"))
|
|
9416
9400
|
}, {
|
|
9417
9401
|
default: I(() => [
|
|
9418
9402
|
ye(X(w(s)("certificates.form.fields.snis.add")), 1)
|
|
@@ -9420,12 +9404,12 @@ const at = {
|
|
|
9420
9404
|
_: 1
|
|
9421
9405
|
})
|
|
9422
9406
|
])) : st("", !0),
|
|
9423
|
-
r.isEditing ? (Q(),
|
|
9407
|
+
r.isEditing ? (Q(), Oe(w(n), {
|
|
9424
9408
|
key: 1,
|
|
9425
9409
|
keypath: "certificates.form.fields.snis.editingTip"
|
|
9426
9410
|
}, {
|
|
9427
9411
|
link: I(() => [
|
|
9428
|
-
R(
|
|
9412
|
+
R(z, { to: r.sniListRoute }, {
|
|
9429
9413
|
default: I(() => [
|
|
9430
9414
|
ye(X(w(s)("certificates.form.fields.snis.editingTipLink")), 1)
|
|
9431
9415
|
]),
|
|
@@ -9481,23 +9465,23 @@ const at = {
|
|
|
9481
9465
|
},
|
|
9482
9466
|
isReadonly: !1,
|
|
9483
9467
|
errorMessage: ""
|
|
9484
|
-
}),
|
|
9468
|
+
}), z = _i({
|
|
9485
9469
|
cert: "",
|
|
9486
9470
|
key: "",
|
|
9487
9471
|
certAlt: "",
|
|
9488
9472
|
keyAlt: "",
|
|
9489
9473
|
snis: [""],
|
|
9490
9474
|
tags: ""
|
|
9491
|
-
}),
|
|
9475
|
+
}), N = ce(() => (v.value === Lt.Create || JSON.stringify(p.fields) !== JSON.stringify(z)) && !!p.fields.cert && !!p.fields.key), d = (M) => {
|
|
9492
9476
|
var x, j;
|
|
9493
|
-
p.fields.cert = (M == null ? void 0 : M.cert) || "", p.fields.key = (M == null ? void 0 : M.key) || "", p.fields.certAlt = (M == null ? void 0 : M.cert_alt) || "", p.fields.keyAlt = (M == null ? void 0 : M.key_alt) || "", p.fields.snis = (x = M == null ? void 0 : M.snis) != null && x.length ? M.snis : [""], p.fields.tags = ((j = M == null ? void 0 : M.tags) == null ? void 0 : j.join(", ")) || "", Object.assign(
|
|
9494
|
-
},
|
|
9477
|
+
p.fields.cert = (M == null ? void 0 : M.cert) || "", p.fields.key = (M == null ? void 0 : M.key) || "", p.fields.certAlt = (M == null ? void 0 : M.cert_alt) || "", p.fields.keyAlt = (M == null ? void 0 : M.key_alt) || "", p.fields.snis = (x = M == null ? void 0 : M.snis) != null && x.length ? M.snis : [""], p.fields.tags = ((j = M == null ? void 0 : M.tags) == null ? void 0 : j.join(", ")) || "", Object.assign(z, p.fields);
|
|
9478
|
+
}, y = () => {
|
|
9495
9479
|
n.push(i.config.cancelRoute);
|
|
9496
9480
|
}, A = () => {
|
|
9497
9481
|
p.fields.snis.push("");
|
|
9498
9482
|
}, b = (M) => {
|
|
9499
9483
|
p.fields.snis.splice(M, 1);
|
|
9500
|
-
},
|
|
9484
|
+
}, O = ce(() => {
|
|
9501
9485
|
var x, j;
|
|
9502
9486
|
let M = `${i.config.apiBaseUrl}${qr.form[i.config.app].validate}`;
|
|
9503
9487
|
return i.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((x = i.config) == null ? void 0 : x.controlPlaneId) || "") : i.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (j = i.config) != null && j.workspace ? `/${i.config.workspace}` : "")), M = M.replace(/{id}/gi, i.certificateId), M;
|
|
@@ -9520,7 +9504,7 @@ const at = {
|
|
|
9520
9504
|
try {
|
|
9521
9505
|
p.isReadonly = !0;
|
|
9522
9506
|
let ie;
|
|
9523
|
-
await u.post(
|
|
9507
|
+
await u.post(O.value, C.value), v.value === "create" ? ie = await u.post(k.value, C.value) : v.value === "edit" && (ie = ((M = i.config) == null ? void 0 : M.app) === "konnect" ? await u.put(k.value, C.value) : await u.patch(k.value, C.value)), p.fields.cert = ((x = ie == null ? void 0 : ie.data) == null ? void 0 : x.cert) || "", p.fields.key = ((j = ie == null ? void 0 : ie.data) == null ? void 0 : j.key) || "", p.fields.certAlt = ((we = ie == null ? void 0 : ie.data) == null ? void 0 : we.cert_alt) || "", p.fields.keyAlt = ((se = ie == null ? void 0 : ie.data) == null ? void 0 : se.key_alt) || "", p.fields.snis = (he = (je = ie == null ? void 0 : ie.data) == null ? void 0 : je.snis) != null && he.length ? ie.data.snis : [""], p.fields.tags = ((ut = (Ae = ie == null ? void 0 : ie.data) == null ? void 0 : Ae.tags) == null ? void 0 : ut.join(", ")) || "", Object.assign(z, p.fields), t("update", ie == null ? void 0 : ie.data);
|
|
9524
9508
|
} catch (ie) {
|
|
9525
9509
|
p.errorMessage = l(ie), t("error", ie);
|
|
9526
9510
|
} finally {
|
|
@@ -9531,7 +9515,7 @@ const at = {
|
|
|
9531
9515
|
const j = ge("KTextArea"), we = ge("KInput");
|
|
9532
9516
|
return Q(), ae("div", Lh, [
|
|
9533
9517
|
R(w(gl), {
|
|
9534
|
-
"can-submit":
|
|
9518
|
+
"can-submit": N.value,
|
|
9535
9519
|
config: r.config,
|
|
9536
9520
|
"edit-id": r.certificateId,
|
|
9537
9521
|
"enable-terraform": r.enableTerraform,
|
|
@@ -9540,7 +9524,7 @@ const at = {
|
|
|
9540
9524
|
"fetch-url": f.value,
|
|
9541
9525
|
"form-fields": C.value,
|
|
9542
9526
|
"is-readonly": p.isReadonly,
|
|
9543
|
-
onCancel:
|
|
9527
|
+
onCancel: y,
|
|
9544
9528
|
"onFetch:error": x[7] || (x[7] = (se) => M.$emit("error", se)),
|
|
9545
9529
|
"onFetch:success": d,
|
|
9546
9530
|
onLoading: x[8] || (x[8] = (se) => M.$emit("loading", se)),
|
|
@@ -9650,7 +9634,7 @@ const at = {
|
|
|
9650
9634
|
]),
|
|
9651
9635
|
_: 1
|
|
9652
9636
|
}, 8, ["modelValue", "label", "readonly"]),
|
|
9653
|
-
r.showSnisField && r.config.sniListRoute ? (Q(),
|
|
9637
|
+
r.showSnisField && r.config.sniListRoute ? (Q(), Oe(Hh, {
|
|
9654
9638
|
key: 0,
|
|
9655
9639
|
modelValue: p.fields.snis,
|
|
9656
9640
|
"onUpdate:modelValue": x[4] || (x[4] = (se) => p.fields.snis = se),
|
|
@@ -9744,29 +9728,29 @@ const at = {
|
|
|
9744
9728
|
},
|
|
9745
9729
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
9746
9730
|
setup(r, { emit: e }) {
|
|
9747
|
-
const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = at.useI18n(), { convertKeyToTitle: l } = vl(), { getPropValue: u } = ml(), { getCertificateData: f } = at.useCertificate(), v = ce(() => Gr.form[n.config.app].edit), p = ve(),
|
|
9731
|
+
const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = at.useI18n(), { convertKeyToTitle: l } = vl(), { getPropValue: u } = ml(), { getCertificateData: f } = at.useCertificate(), v = ce(() => Gr.form[n.config.app].edit), p = ve(), z = ce(() => {
|
|
9748
9732
|
if (p.value)
|
|
9749
9733
|
return f(p.value);
|
|
9750
|
-
}),
|
|
9734
|
+
}), N = ce(() => {
|
|
9751
9735
|
var k;
|
|
9752
|
-
return ((k =
|
|
9736
|
+
return ((k = z.value) == null ? void 0 : k.schemaIssuer) || "";
|
|
9753
9737
|
}), d = ce(() => {
|
|
9754
9738
|
var k, C;
|
|
9755
|
-
return (k =
|
|
9756
|
-
}),
|
|
9739
|
+
return (k = z.value) != null && k.schemaExpiry ? a((C = z.value) == null ? void 0 : C.schemaExpiry) : "";
|
|
9740
|
+
}), y = ce(() => {
|
|
9757
9741
|
var k;
|
|
9758
|
-
return ((k =
|
|
9742
|
+
return ((k = z.value) == null ? void 0 : k.schemaKeyUsages) || [];
|
|
9759
9743
|
}), A = (k, C) => {
|
|
9760
9744
|
const ee = u("rowValue", C);
|
|
9761
9745
|
if (k === "expiry")
|
|
9762
9746
|
return d.value;
|
|
9763
9747
|
if (k === "key_usages")
|
|
9764
|
-
return
|
|
9748
|
+
return y.value;
|
|
9765
9749
|
if (ee)
|
|
9766
9750
|
return ee[k];
|
|
9767
9751
|
}, b = (k) => {
|
|
9768
9752
|
p.value = k, i("fetch:success", k);
|
|
9769
|
-
},
|
|
9753
|
+
}, O = ve({
|
|
9770
9754
|
id: {},
|
|
9771
9755
|
updated_at: {},
|
|
9772
9756
|
created_at: {},
|
|
@@ -9814,7 +9798,7 @@ const at = {
|
|
|
9814
9798
|
R(w(bl), {
|
|
9815
9799
|
config: r.config,
|
|
9816
9800
|
"config-card-doc": r.configCardDoc,
|
|
9817
|
-
"config-schema":
|
|
9801
|
+
"config-schema": O.value,
|
|
9818
9802
|
"enable-terraform": r.enableTerraform,
|
|
9819
9803
|
"entity-type": w(un).CaCertificate,
|
|
9820
9804
|
"fetch-url": v.value,
|
|
@@ -9824,7 +9808,7 @@ const at = {
|
|
|
9824
9808
|
onLoading: C[1] || (C[1] = (x) => k.$emit("loading", x))
|
|
9825
9809
|
}, {
|
|
9826
9810
|
cert: I((x) => [
|
|
9827
|
-
w(u)("rowValue", x) ? (Q(),
|
|
9811
|
+
w(u)("rowValue", x) ? (Q(), Oe(ee, {
|
|
9828
9812
|
key: 0,
|
|
9829
9813
|
id: `ca-cert-${r.config.entityId}-cert-codeblock`,
|
|
9830
9814
|
code: w(u)("rowValue", x),
|
|
@@ -9841,7 +9825,7 @@ const at = {
|
|
|
9841
9825
|
})
|
|
9842
9826
|
]),
|
|
9843
9827
|
metadata: I((x) => [
|
|
9844
|
-
(Q(!0), ae(Jt, null, Yt(Object.keys(w(u)("rowValue", x)).filter((j) => !t.includes(j)), (j) => (Q(),
|
|
9828
|
+
(Q(!0), ae(Jt, null, Yt(Object.keys(w(u)("rowValue", x)).filter((j) => !t.includes(j)), (j) => (Q(), Oe(w(wl), {
|
|
9845
9829
|
key: j,
|
|
9846
9830
|
"data-testid": `ca-cert-metadata-${j}`,
|
|
9847
9831
|
item: {
|
|
@@ -9856,11 +9840,11 @@ const at = {
|
|
|
9856
9840
|
ye(X(d.value || "–"), 1)
|
|
9857
9841
|
]),
|
|
9858
9842
|
issuer: I(() => [
|
|
9859
|
-
ye(X(
|
|
9843
|
+
ye(X(N.value || "–"), 1)
|
|
9860
9844
|
]),
|
|
9861
9845
|
key_usages: I(() => [
|
|
9862
|
-
|
|
9863
|
-
(Q(!0), ae(Jt, null, Yt(
|
|
9846
|
+
y.value.length ? st("", !0) : (Q(), ae("div", qh, X("–"))),
|
|
9847
|
+
(Q(!0), ae(Jt, null, Yt(y.value, (x, j) => (Q(), Oe(M, {
|
|
9864
9848
|
key: `key_usages-badge-tag-${j}`,
|
|
9865
9849
|
class: "config-badge",
|
|
9866
9850
|
"data-testid": `key_usages-badge-tag-${j}`,
|
|
@@ -9924,17 +9908,17 @@ const at = {
|
|
|
9924
9908
|
},
|
|
9925
9909
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
9926
9910
|
setup(r, { emit: e }) {
|
|
9927
|
-
var
|
|
9928
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = cn(), { axiosInstance: u } = ln((
|
|
9911
|
+
var W;
|
|
9912
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), l = cn(), { axiosInstance: u } = ln((W = i.config) == null ? void 0 : W.axiosRequestConfig), f = ve(1), v = ce(() => i.config.app !== "kongManager" || !!i.config.disableSorting), z = {
|
|
9929
9913
|
// the Issuer column is non-hidable
|
|
9930
9914
|
issuer: { label: n("ca-certificates.list.table_headers.issuer"), hidable: !1 },
|
|
9931
9915
|
expiry: { label: n("ca-certificates.list.table_headers.expiry") },
|
|
9932
9916
|
tags: { label: n("ca-certificates.list.table_headers.tags"), sortable: !0 }
|
|
9933
|
-
},
|
|
9934
|
-
var D,
|
|
9917
|
+
}, N = ce(() => {
|
|
9918
|
+
var D, q;
|
|
9935
9919
|
let Y = `${i.config.apiBaseUrl}${Gr.list[i.config.app]}`;
|
|
9936
|
-
return i.config.app === "konnect" ? Y = Y.replace(/{controlPlaneId}/gi, ((D = i.config) == null ? void 0 : D.controlPlaneId) || "") : i.config.app === "kongManager" && (Y = Y.replace(/\/{workspace}/gi, (
|
|
9937
|
-
}), d = ve(""),
|
|
9920
|
+
return i.config.app === "konnect" ? Y = Y.replace(/{controlPlaneId}/gi, ((D = i.config) == null ? void 0 : D.controlPlaneId) || "") : i.config.app === "kongManager" && (Y = Y.replace(/\/{workspace}/gi, (q = i.config) != null && q.workspace ? `/${i.config.workspace}` : "")), Y;
|
|
9921
|
+
}), d = ve(""), y = ce(() => {
|
|
9938
9922
|
const Y = i.config.app === "konnect" || i.config.isExactMatch;
|
|
9939
9923
|
return Y ? {
|
|
9940
9924
|
isExactMatch: Y,
|
|
@@ -9943,13 +9927,13 @@ const at = {
|
|
|
9943
9927
|
isExactMatch: Y,
|
|
9944
9928
|
schema: i.config.filterSchema
|
|
9945
9929
|
};
|
|
9946
|
-
}), { fetcher: A, fetcherState: b } = cl(i.config,
|
|
9930
|
+
}), { fetcher: A, fetcherState: b } = cl(i.config, N.value), O = () => {
|
|
9947
9931
|
d.value = "";
|
|
9948
9932
|
}, k = () => {
|
|
9949
9933
|
f.value++;
|
|
9950
9934
|
}, C = ve(null), ee = (Y, D) => {
|
|
9951
|
-
const
|
|
9952
|
-
if (!D(
|
|
9935
|
+
const q = Y.id;
|
|
9936
|
+
if (!D(q)) {
|
|
9953
9937
|
t("copy:error", {
|
|
9954
9938
|
entity: Y,
|
|
9955
9939
|
field: "id",
|
|
@@ -9960,11 +9944,11 @@ const at = {
|
|
|
9960
9944
|
t("copy:success", {
|
|
9961
9945
|
entity: Y,
|
|
9962
9946
|
field: "id",
|
|
9963
|
-
message: n("ca-certificates.copy.success", { val:
|
|
9947
|
+
message: n("ca-certificates.copy.success", { val: q })
|
|
9964
9948
|
});
|
|
9965
9949
|
}, le = (Y, D) => {
|
|
9966
|
-
const
|
|
9967
|
-
if (!D(
|
|
9950
|
+
const q = JSON.stringify(Y);
|
|
9951
|
+
if (!D(q)) {
|
|
9968
9952
|
t("copy:error", {
|
|
9969
9953
|
entity: Y,
|
|
9970
9954
|
message: n("ca-certificates.errors.copy")
|
|
@@ -9976,37 +9960,37 @@ const at = {
|
|
|
9976
9960
|
message: n("ca-certificates.copy.success_brief")
|
|
9977
9961
|
});
|
|
9978
9962
|
}, M = async (Y) => {
|
|
9979
|
-
var
|
|
9980
|
-
await ((
|
|
9963
|
+
var q;
|
|
9964
|
+
await ((q = i.canRetrieve) == null ? void 0 : q.call(i, Y)) && l.push(i.config.getViewRoute(Y.id));
|
|
9981
9965
|
}, x = (Y) => ({
|
|
9982
9966
|
label: n("ca-certificates.actions.view"),
|
|
9983
9967
|
to: i.config.getViewRoute(Y)
|
|
9984
9968
|
}), j = (Y) => ({
|
|
9985
9969
|
label: n("ca-certificates.actions.edit"),
|
|
9986
9970
|
to: i.config.getEditRoute(Y)
|
|
9987
|
-
}), we = ve(void 0), se = ve(!1), je = ve(!1), he = ve(""), Ae = ll(i.config,
|
|
9971
|
+
}), we = ve(void 0), se = ve(!1), je = ve(!1), he = ve(""), Ae = ll(i.config, N.value), { certificateDataCache: ut, getCertificateData: ie } = at.useCertificate(), bt = (Y) => {
|
|
9988
9972
|
we.value = Y, se.value = !0;
|
|
9989
9973
|
}, ur = () => {
|
|
9990
9974
|
se.value = !1;
|
|
9991
9975
|
}, fr = async () => {
|
|
9992
|
-
var Y, D,
|
|
9976
|
+
var Y, D, q;
|
|
9993
9977
|
if ((Y = we.value) != null && Y.id) {
|
|
9994
9978
|
je.value = !0;
|
|
9995
9979
|
try {
|
|
9996
9980
|
await u.delete(Ae(we.value.id)), je.value = !1, se.value = !1, f.value++, t("delete:success", we.value);
|
|
9997
9981
|
} catch (de) {
|
|
9998
|
-
he.value = ((
|
|
9982
|
+
he.value = ((q = (D = de.response) == null ? void 0 : D.data) == null ? void 0 : q.message) || de.message || n("ca-certificates.errors.delete"), t("error", de);
|
|
9999
9983
|
} finally {
|
|
10000
9984
|
je.value = !1;
|
|
10001
9985
|
}
|
|
10002
9986
|
}
|
|
10003
9987
|
}, Ut = ve(!1);
|
|
10004
|
-
|
|
10005
|
-
var D,
|
|
9988
|
+
Ni(b, (Y) => {
|
|
9989
|
+
var D, q, de, Re;
|
|
10006
9990
|
if (Array.isArray((D = Y == null ? void 0 : Y.response) == null ? void 0 : D.data) && (Ut.value = Y.response.data.length > 0), Y.status === ul.Error) {
|
|
10007
9991
|
C.value = {
|
|
10008
9992
|
title: n("ca-certificates.errors.general")
|
|
10009
|
-
}, (Re = (de = (
|
|
9993
|
+
}, (Re = (de = (q = Y.error) == null ? void 0 : q.response) == null ? void 0 : de.data) != null && Re.message && (C.value.message = Y.error.response.data.message), t("error", Y.error);
|
|
10010
9994
|
return;
|
|
10011
9995
|
}
|
|
10012
9996
|
ut.value = {}, C.value = null;
|
|
@@ -10020,7 +10004,7 @@ const at = {
|
|
|
10020
10004
|
return il(async () => {
|
|
10021
10005
|
await i.canCreate() && (wt.value.title = n("ca-certificates.list.empty_state.title"), wt.value.ctaText = n("ca-certificates.actions.create"));
|
|
10022
10006
|
}), (Y, D) => {
|
|
10023
|
-
const
|
|
10007
|
+
const q = ge("KButton"), de = ge("KBadge"), Re = ge("KTruncate"), qe = ge("KDropdownItem"), dr = ge("KClipboardProvider");
|
|
10024
10008
|
return Q(), ae("div", zh, [
|
|
10025
10009
|
R(w(fl), {
|
|
10026
10010
|
"cache-identifier": r.cacheIdentifier,
|
|
@@ -10034,8 +10018,8 @@ const at = {
|
|
|
10034
10018
|
"pagination-type": "offset",
|
|
10035
10019
|
"preferences-storage-key": "kong-ui-entities-ca-certificates-list",
|
|
10036
10020
|
query: d.value,
|
|
10037
|
-
"table-headers": w(
|
|
10038
|
-
onClearSearchInput:
|
|
10021
|
+
"table-headers": w(z),
|
|
10022
|
+
onClearSearchInput: O,
|
|
10039
10023
|
"onClick:row": D[2] || (D[2] = (Z) => M(Z)),
|
|
10040
10024
|
onSort: k
|
|
10041
10025
|
}, {
|
|
@@ -10043,11 +10027,11 @@ const at = {
|
|
|
10043
10027
|
R(w(dl), {
|
|
10044
10028
|
modelValue: d.value,
|
|
10045
10029
|
"onUpdate:modelValue": D[0] || (D[0] = (Z) => d.value = Z),
|
|
10046
|
-
config:
|
|
10030
|
+
config: y.value
|
|
10047
10031
|
}, null, 8, ["modelValue", "config"])
|
|
10048
10032
|
]),
|
|
10049
10033
|
"toolbar-button": I(() => [
|
|
10050
|
-
(Q(),
|
|
10034
|
+
(Q(), Oe(nl, {
|
|
10051
10035
|
disabled: !r.useActionOutside,
|
|
10052
10036
|
to: "#kong-ui-app-page-header-action-button"
|
|
10053
10037
|
}, [
|
|
@@ -10055,7 +10039,7 @@ const at = {
|
|
|
10055
10039
|
"auth-function": () => r.canCreate()
|
|
10056
10040
|
}, {
|
|
10057
10041
|
default: I(() => [
|
|
10058
|
-
sl(R(
|
|
10042
|
+
sl(R(q, {
|
|
10059
10043
|
appearance: "primary",
|
|
10060
10044
|
"data-testid": "toolbar-add-ca-certificate",
|
|
10061
10045
|
size: r.useActionOutside ? "medium" : "large",
|
|
@@ -10075,23 +10059,23 @@ const at = {
|
|
|
10075
10059
|
], 8, ["disabled"]))
|
|
10076
10060
|
]),
|
|
10077
10061
|
issuer: I(({ row: Z }) => {
|
|
10078
|
-
var
|
|
10062
|
+
var ke;
|
|
10079
10063
|
return [
|
|
10080
|
-
r.config.app === "konnect" ? (Q(), ae("b", Wh, X((
|
|
10064
|
+
r.config.app === "konnect" ? (Q(), ae("b", Wh, X((ke = Z == null ? void 0 : Z.metadata) != null && ke.issuer ? Z.metadata.issuer : "-"), 1)) : (Q(), ae("b", Jh, X(w(ie)(Z).schemaIssuer || "-"), 1))
|
|
10081
10065
|
];
|
|
10082
10066
|
}),
|
|
10083
10067
|
expiry: I(({ row: Z }) => {
|
|
10084
|
-
var
|
|
10068
|
+
var ke;
|
|
10085
10069
|
return [
|
|
10086
|
-
r.config.app === "konnect" ? (Q(), ae("span", Yh, X((
|
|
10070
|
+
r.config.app === "konnect" ? (Q(), ae("span", Yh, X((ke = Z == null ? void 0 : Z.metadata) != null && ke.expiry ? w(s)(Z.metadata.expiry) : "-"), 1)) : (Q(), ae("span", Zh, X(w(ie)(Z).schemaExpiry ? w(s)(w(ie)(Z).schemaExpiry) : "-"), 1))
|
|
10087
10071
|
];
|
|
10088
10072
|
}),
|
|
10089
10073
|
tags: I(({ row: Z }) => {
|
|
10090
|
-
var
|
|
10074
|
+
var ke;
|
|
10091
10075
|
return [
|
|
10092
|
-
((
|
|
10076
|
+
((ke = Z == null ? void 0 : Z.tags) == null ? void 0 : ke.length) > 0 ? (Q(), Oe(Re, { key: 0 }, {
|
|
10093
10077
|
default: I(() => [
|
|
10094
|
-
(Q(!0), ae(Jt, null, Yt(Z == null ? void 0 : Z.tags, (G) => (Q(),
|
|
10078
|
+
(Q(!0), ae(Jt, null, Yt(Z == null ? void 0 : Z.tags, (G) => (Q(), Oe(de, {
|
|
10095
10079
|
key: G,
|
|
10096
10080
|
onClick: D[1] || (D[1] = al(() => {
|
|
10097
10081
|
}, ["stop"]))
|
|
@@ -10108,10 +10092,10 @@ const at = {
|
|
|
10108
10092
|
}),
|
|
10109
10093
|
actions: I(({ row: Z }) => [
|
|
10110
10094
|
R(dr, null, {
|
|
10111
|
-
default: I(({ copyToClipboard:
|
|
10095
|
+
default: I(({ copyToClipboard: ke }) => [
|
|
10112
10096
|
R(qe, {
|
|
10113
10097
|
"data-testid": "action-entity-copy-id",
|
|
10114
|
-
onClick: (G) => ee(Z,
|
|
10098
|
+
onClick: (G) => ee(Z, ke)
|
|
10115
10099
|
}, {
|
|
10116
10100
|
default: I(() => [
|
|
10117
10101
|
ye(X(w(n)("ca-certificates.actions.copy_id")), 1)
|
|
@@ -10122,10 +10106,10 @@ const at = {
|
|
|
10122
10106
|
_: 2
|
|
10123
10107
|
}, 1024),
|
|
10124
10108
|
R(dr, null, {
|
|
10125
|
-
default: I(({ copyToClipboard:
|
|
10109
|
+
default: I(({ copyToClipboard: ke }) => [
|
|
10126
10110
|
R(qe, {
|
|
10127
10111
|
"data-testid": "action-entity-copy-json",
|
|
10128
|
-
onClick: (G) => le(Z,
|
|
10112
|
+
onClick: (G) => le(Z, ke)
|
|
10129
10113
|
}, {
|
|
10130
10114
|
default: I(() => [
|
|
10131
10115
|
ye(X(w(n)("ca-certificates.actions.copy_json")), 1)
|
|
@@ -10166,7 +10150,7 @@ const at = {
|
|
|
10166
10150
|
danger: "",
|
|
10167
10151
|
"data-testid": "action-entity-delete",
|
|
10168
10152
|
"has-divider": "",
|
|
10169
|
-
onClick: (
|
|
10153
|
+
onClick: (ke) => bt(Z)
|
|
10170
10154
|
}, {
|
|
10171
10155
|
default: I(() => [
|
|
10172
10156
|
ye(X(w(n)("ca-certificates.actions.delete")), 1)
|
|
@@ -10244,12 +10228,12 @@ const at = {
|
|
|
10244
10228
|
cert: "",
|
|
10245
10229
|
certDigest: "",
|
|
10246
10230
|
tags: ""
|
|
10247
|
-
}),
|
|
10231
|
+
}), z = ce(() => (f.value === Lt.Create || JSON.stringify(v.fields) !== JSON.stringify(p)) && !!v.fields.cert), N = (C) => {
|
|
10248
10232
|
var ee;
|
|
10249
10233
|
v.fields.cert = (C == null ? void 0 : C.cert) || "", v.fields.certDigest = (C == null ? void 0 : C.cert_digest) || "", v.fields.tags = ((ee = C == null ? void 0 : C.tags) == null ? void 0 : ee.join(", ")) || "", Object.assign(p, v.fields);
|
|
10250
10234
|
}, d = () => {
|
|
10251
10235
|
n.push(i.config.cancelRoute);
|
|
10252
|
-
},
|
|
10236
|
+
}, y = ce(() => {
|
|
10253
10237
|
var ee, le;
|
|
10254
10238
|
let C = `${i.config.apiBaseUrl}${Gr.form[i.config.app].validate}`;
|
|
10255
10239
|
return i.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((ee = i.config) == null ? void 0 : ee.controlPlaneId) || "") : i.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (le = i.config) != null && le.workspace ? `/${i.config.workspace}` : "")), C = C.replace(/{id}/gi, i.certificateId), C;
|
|
@@ -10264,12 +10248,12 @@ const at = {
|
|
|
10264
10248
|
cert_digest: v.fields.certDigest || null,
|
|
10265
10249
|
tags: (ee = (C = v.fields.tags.split(",")) == null ? void 0 : C.map((le) => String(le || "").trim())) == null ? void 0 : ee.filter((le) => le !== "")
|
|
10266
10250
|
};
|
|
10267
|
-
}),
|
|
10251
|
+
}), O = async () => {
|
|
10268
10252
|
var C, ee, le, M, x;
|
|
10269
10253
|
try {
|
|
10270
10254
|
v.isReadonly = !0;
|
|
10271
10255
|
let j;
|
|
10272
|
-
await l.post(
|
|
10256
|
+
await l.post(y.value, b.value), f.value === "create" ? j = await l.post(A.value, b.value) : f.value === "edit" && (j = ((C = i.config) == null ? void 0 : C.app) === "konnect" ? await l.put(A.value, b.value) : await l.patch(A.value, b.value)), v.fields.cert = ((ee = j == null ? void 0 : j.data) == null ? void 0 : ee.cert) || "", v.fields.certDigest = ((le = j == null ? void 0 : j.data) == null ? void 0 : le.cert_digest) || "", v.fields.tags = ((x = (M = j == null ? void 0 : j.data) == null ? void 0 : M.tags) == null ? void 0 : x.join(", ")) || "", Object.assign(p, v.fields), t("update", j == null ? void 0 : j.data);
|
|
10273
10257
|
} catch (j) {
|
|
10274
10258
|
v.errorMessage = a(j), t("error", j);
|
|
10275
10259
|
} finally {
|
|
@@ -10280,7 +10264,7 @@ const at = {
|
|
|
10280
10264
|
const le = ge("KTextArea"), M = ge("KInput");
|
|
10281
10265
|
return Q(), ae("div", ep, [
|
|
10282
10266
|
R(w(gl), {
|
|
10283
|
-
"can-submit":
|
|
10267
|
+
"can-submit": z.value,
|
|
10284
10268
|
config: r.config,
|
|
10285
10269
|
"edit-id": r.certificateId,
|
|
10286
10270
|
"enable-terraform": r.enableTerraform,
|
|
@@ -10291,9 +10275,9 @@ const at = {
|
|
|
10291
10275
|
"is-readonly": v.isReadonly,
|
|
10292
10276
|
onCancel: d,
|
|
10293
10277
|
"onFetch:error": ee[3] || (ee[3] = (x) => C.$emit("error", x)),
|
|
10294
|
-
"onFetch:success":
|
|
10278
|
+
"onFetch:success": N,
|
|
10295
10279
|
onLoading: ee[4] || (ee[4] = (x) => C.$emit("loading", x)),
|
|
10296
|
-
onSubmit:
|
|
10280
|
+
onSubmit: O
|
|
10297
10281
|
}, {
|
|
10298
10282
|
default: I(() => [
|
|
10299
10283
|
R(w(Ti), {
|
|
@@ -10394,7 +10378,7 @@ const at = {
|
|
|
10394
10378
|
},
|
|
10395
10379
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
10396
10380
|
setup(r, { emit: e }) {
|
|
10397
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), { convertKeyToTitle: l } = vl(), { getPropValue: u } = ml(), { getCertificateData: f } = at.useCertificate(), v = ce(() => qr.form[i.config.app].edit), p = ve(),
|
|
10381
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = at.useI18n(), { convertKeyToTitle: l } = vl(), { getPropValue: u } = ml(), { getCertificateData: f } = at.useCertificate(), v = ce(() => qr.form[i.config.app].edit), p = ve(), z = ve({
|
|
10398
10382
|
// basic fields
|
|
10399
10383
|
id: {},
|
|
10400
10384
|
cert: {
|
|
@@ -10452,7 +10436,7 @@ const at = {
|
|
|
10452
10436
|
section: Ve.Advanced,
|
|
10453
10437
|
type: At.Redacted
|
|
10454
10438
|
}
|
|
10455
|
-
}),
|
|
10439
|
+
}), N = (x) => {
|
|
10456
10440
|
p.value = x, t("fetch:success", x);
|
|
10457
10441
|
}, d = (x, j) => {
|
|
10458
10442
|
const we = u("rowValue", j);
|
|
@@ -10461,27 +10445,27 @@ const at = {
|
|
|
10461
10445
|
if (x === "key_usages")
|
|
10462
10446
|
return C.value;
|
|
10463
10447
|
if (x === "san_names")
|
|
10464
|
-
return
|
|
10448
|
+
return O.value;
|
|
10465
10449
|
if (we)
|
|
10466
10450
|
return we[x];
|
|
10467
|
-
},
|
|
10451
|
+
}, y = ce(() => {
|
|
10468
10452
|
if (p.value)
|
|
10469
10453
|
return f(p.value);
|
|
10470
10454
|
}), A = ce(() => {
|
|
10471
10455
|
var x, j;
|
|
10472
|
-
return (x =
|
|
10456
|
+
return (x = y.value) != null && x.schemaExpiry ? s((j = y.value) == null ? void 0 : j.schemaExpiry) : "";
|
|
10473
10457
|
}), b = ce(() => {
|
|
10474
10458
|
var x;
|
|
10475
|
-
return ((x =
|
|
10476
|
-
}),
|
|
10459
|
+
return ((x = y.value) == null ? void 0 : x.schemaIssuer) || "";
|
|
10460
|
+
}), O = ce(() => {
|
|
10477
10461
|
var x;
|
|
10478
|
-
return ((x =
|
|
10462
|
+
return ((x = y.value) == null ? void 0 : x.schemaSanNames) || "";
|
|
10479
10463
|
}), k = ce(() => {
|
|
10480
10464
|
var x;
|
|
10481
|
-
return ((x =
|
|
10465
|
+
return ((x = y.value) == null ? void 0 : x.schemaSubject) || "";
|
|
10482
10466
|
}), C = ce(() => {
|
|
10483
10467
|
var x;
|
|
10484
|
-
return ((x =
|
|
10468
|
+
return ((x = y.value) == null ? void 0 : x.schemaKeyUsages) || [];
|
|
10485
10469
|
}), ee = ce(() => {
|
|
10486
10470
|
var x, j;
|
|
10487
10471
|
return ((j = (x = p == null ? void 0 : p.value) == null ? void 0 : x.snis) == null ? void 0 : j.length) > 0;
|
|
@@ -10490,7 +10474,7 @@ const at = {
|
|
|
10490
10474
|
return !!((x = p == null ? void 0 : p.value) != null && x.cert_alt);
|
|
10491
10475
|
}), M = (x) => {
|
|
10492
10476
|
var j, we;
|
|
10493
|
-
return x === "san_names" ? n("certificates.list.table_headers.san") : ((we = (j =
|
|
10477
|
+
return x === "san_names" ? n("certificates.list.table_headers.san") : ((we = (j = z.value) == null ? void 0 : j[x]) == null ? void 0 : we.label) || l(x);
|
|
10494
10478
|
};
|
|
10495
10479
|
return (x, j) => {
|
|
10496
10480
|
const we = ge("KCodeBlock"), se = ge("KLabel"), je = ge("KBadge");
|
|
@@ -10498,13 +10482,13 @@ const at = {
|
|
|
10498
10482
|
R(w(bl), {
|
|
10499
10483
|
config: r.config,
|
|
10500
10484
|
"config-card-doc": r.configCardDoc,
|
|
10501
|
-
"config-schema":
|
|
10485
|
+
"config-schema": z.value,
|
|
10502
10486
|
"enable-terraform": r.enableTerraform,
|
|
10503
10487
|
"entity-type": w(un).Certificate,
|
|
10504
10488
|
"fetch-url": v.value,
|
|
10505
10489
|
"hide-title": r.hideTitle,
|
|
10506
10490
|
"onFetch:error": j[0] || (j[0] = (he) => x.$emit("fetch:error", he)),
|
|
10507
|
-
"onFetch:success":
|
|
10491
|
+
"onFetch:success": N,
|
|
10508
10492
|
onLoading: j[1] || (j[1] = (he) => x.$emit("loading", he))
|
|
10509
10493
|
}, Bf({
|
|
10510
10494
|
"cert-label-tooltip": I(() => [
|
|
@@ -10519,7 +10503,7 @@ const at = {
|
|
|
10519
10503
|
})
|
|
10520
10504
|
]),
|
|
10521
10505
|
cert: I((he) => [
|
|
10522
|
-
w(u)("rowValue", he) ? (Q(),
|
|
10506
|
+
w(u)("rowValue", he) ? (Q(), Oe(we, {
|
|
10523
10507
|
key: 0,
|
|
10524
10508
|
id: `certificate-${r.config.entityId}-cert-codeblock`,
|
|
10525
10509
|
code: w(u)("rowValue", he),
|
|
@@ -10547,7 +10531,7 @@ const at = {
|
|
|
10547
10531
|
})
|
|
10548
10532
|
]),
|
|
10549
10533
|
metadata: I((he) => [
|
|
10550
|
-
(Q(!0), ae(Jt, null, Yt(Object.keys(w(u)("rowValue", he)), (Ae) => (Q(),
|
|
10534
|
+
(Q(!0), ae(Jt, null, Yt(Object.keys(w(u)("rowValue", he)), (Ae) => (Q(), Oe(w(wl), {
|
|
10551
10535
|
key: Ae,
|
|
10552
10536
|
item: {
|
|
10553
10537
|
key: Ae,
|
|
@@ -10564,7 +10548,7 @@ const at = {
|
|
|
10564
10548
|
ye(X(b.value || "–"), 1)
|
|
10565
10549
|
]),
|
|
10566
10550
|
san_names: I(() => [
|
|
10567
|
-
ye(X(
|
|
10551
|
+
ye(X(O.value || "–"), 1)
|
|
10568
10552
|
]),
|
|
10569
10553
|
subject: I(() => [
|
|
10570
10554
|
ye(X(k.value || "–"), 1)
|
|
@@ -10593,7 +10577,7 @@ const at = {
|
|
|
10593
10577
|
]),
|
|
10594
10578
|
key_usages: I(() => [
|
|
10595
10579
|
C.value.length ? st("", !0) : (Q(), ae("div", ip, X("–"))),
|
|
10596
|
-
(Q(!0), ae(Jt, null, Yt(C.value, (he, Ae) => (Q(),
|
|
10580
|
+
(Q(!0), ae(Jt, null, Yt(C.value, (he, Ae) => (Q(), Oe(je, {
|
|
10597
10581
|
key: `key_usages-badge-tag-${Ae}`,
|
|
10598
10582
|
class: "config-badge",
|
|
10599
10583
|
"data-testid": `key_usages-badge-tag-${Ae}`,
|
|
@@ -10619,7 +10603,7 @@ const at = {
|
|
|
10619
10603
|
name: "cert_alt",
|
|
10620
10604
|
fn: I((he) => [
|
|
10621
10605
|
ye(" > "),
|
|
10622
|
-
w(u)("rowValue", he) ? (Q(),
|
|
10606
|
+
w(u)("rowValue", he) ? (Q(), Oe(we, {
|
|
10623
10607
|
key: 0,
|
|
10624
10608
|
id: `certificate-${r.config.entityId}-cert-alt-codeblock`,
|
|
10625
10609
|
code: w(u)("rowValue", he),
|