@kong-ui-public/entities-certificates 3.7.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-certificates.es.js +559 -559
- package/dist/entities-certificates.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useAxios as kn, useTableState as Bl, useFetcher as Il, useDeleteUrlBuilder as El, FetcherStatus as Ol, EntityBaseTable as Nl, EntityFilter as Tl, PermissionsWrapper as kt, TableTags as _l, EntityEmptyState as jl, EntityDeleteModal as Pl, EntityTypes as
|
|
1
|
+
import { ref as Se, defineComponent as lr, computed as ce, watch as Ui, onBeforeMount as xl, resolveComponent as we, openBlock as Q, createElementBlock as he, createVNode as j, unref as m, createSlots as ea, withCtx as B, createBlock as je, Teleport as Cl, createElementVNode as Pe, createCommentVNode as Ze, createTextVNode as me, toDisplayString as ee, Fragment as Xr, renderList as ei, reactive as Li } from "vue";
|
|
2
|
+
import { useAxios as kn, useTableState as Bl, useFetcher as Il, useDeleteUrlBuilder as El, FetcherStatus as Ol, EntityBaseTable as Nl, EntityFilter as Tl, PermissionsWrapper as kt, TableTags as _l, EntityEmptyState as jl, EntityDeleteModal as Pl, EntityTypes as Vl, useErrors as Rl, EntityBaseFormType as Wt, EntityBaseForm as Dl, SupportedEntityType as xn, EntityFormSection as Hi, useStringHelpers as $l, useHelpers as Ml, ConfigurationSchemaSection as _e, ConfigurationSchemaType as At, EntityBaseConfigCard as Ul, ConfigCardItem as Ll } from "@kong-ui-public/entities-shared";
|
|
3
3
|
import { useRouter as Cn } from "vue-router";
|
|
4
4
|
import { BookIcon as Hl, AddIcon as ta, ServiceDocumentIcon as Fl, TrashIcon as Jf } from "@kong/icons";
|
|
5
5
|
import { createI18n as Yf, i18nTComponent as Zf } from "@kong-ui-public/i18n";
|
|
@@ -48,11 +48,11 @@ var Ja;
|
|
|
48
48
|
var i = Object.prototype.hasOwnProperty, n = typeof Symbol == "function", s = n && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", a = n && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", l = typeof Object.create == "function", u = { __proto__: [] } instanceof Array, d = !l && !u, v = {
|
|
49
49
|
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
50
50
|
create: l ? function() {
|
|
51
|
-
return
|
|
51
|
+
return Ss(/* @__PURE__ */ Object.create(null));
|
|
52
52
|
} : u ? function() {
|
|
53
|
-
return
|
|
53
|
+
return Ss({ __proto__: null });
|
|
54
54
|
} : function() {
|
|
55
|
-
return
|
|
55
|
+
return Ss({});
|
|
56
56
|
},
|
|
57
57
|
has: d ? function(g, b) {
|
|
58
58
|
return i.call(g, b);
|
|
@@ -64,9 +64,9 @@ var Ja;
|
|
|
64
64
|
} : function(g, b) {
|
|
65
65
|
return g[b];
|
|
66
66
|
}
|
|
67
|
-
}, p = Object.getPrototypeOf(Function), z = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kf(), N = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : qf(), f = typeof WeakMap == "function" ? WeakMap : zf(), y = n ? Symbol.for("@reflect-metadata:registry") : void 0,
|
|
68
|
-
function E(g, b,
|
|
69
|
-
if (W(
|
|
67
|
+
}, p = Object.getPrototypeOf(Function), z = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kf(), N = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : qf(), f = typeof WeakMap == "function" ? WeakMap : zf(), y = n ? Symbol.for("@reflect-metadata:registry") : void 0, S = Lf(), w = Hf(S);
|
|
68
|
+
function E(g, b, A, _) {
|
|
69
|
+
if (W(A)) {
|
|
70
70
|
if (!Ne(g))
|
|
71
71
|
throw new TypeError();
|
|
72
72
|
if (!Te(b))
|
|
@@ -79,81 +79,81 @@ var Ja;
|
|
|
79
79
|
throw new TypeError();
|
|
80
80
|
if (!K(_) && !W(_) && !Xe(_))
|
|
81
81
|
throw new TypeError();
|
|
82
|
-
return Xe(_) && (_ = void 0),
|
|
82
|
+
return Xe(_) && (_ = void 0), A = Y(A), ue(g, b, A, _);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
e("decorate", E);
|
|
86
86
|
function k(g, b) {
|
|
87
|
-
function
|
|
87
|
+
function A(_, G) {
|
|
88
88
|
if (!K(_))
|
|
89
89
|
throw new TypeError();
|
|
90
90
|
if (!W(G) && !ms(G))
|
|
91
91
|
throw new TypeError();
|
|
92
|
-
|
|
92
|
+
Vt(g, b, _, G);
|
|
93
93
|
}
|
|
94
|
-
return
|
|
94
|
+
return A;
|
|
95
95
|
}
|
|
96
96
|
e("metadata", k);
|
|
97
|
-
function O(g, b,
|
|
98
|
-
if (!K(
|
|
97
|
+
function O(g, b, A, _) {
|
|
98
|
+
if (!K(A))
|
|
99
99
|
throw new TypeError();
|
|
100
|
-
return W(_) || (_ = Y(_)),
|
|
100
|
+
return W(_) || (_ = Y(_)), Vt(g, b, A, _);
|
|
101
101
|
}
|
|
102
102
|
e("defineMetadata", O);
|
|
103
|
-
function X(g, b,
|
|
103
|
+
function X(g, b, A) {
|
|
104
104
|
if (!K(b))
|
|
105
105
|
throw new TypeError();
|
|
106
|
-
return W(
|
|
106
|
+
return W(A) || (A = Y(A)), pe(g, b, A);
|
|
107
107
|
}
|
|
108
108
|
e("hasMetadata", X);
|
|
109
|
-
function ie(g, b,
|
|
109
|
+
function ie(g, b, A) {
|
|
110
110
|
if (!K(b))
|
|
111
111
|
throw new TypeError();
|
|
112
|
-
return W(
|
|
112
|
+
return W(A) || (A = Y(A)), Ue(g, b, A);
|
|
113
113
|
}
|
|
114
114
|
e("hasOwnMetadata", ie);
|
|
115
|
-
function M(g, b,
|
|
115
|
+
function M(g, b, A) {
|
|
116
116
|
if (!K(b))
|
|
117
117
|
throw new TypeError();
|
|
118
|
-
return W(
|
|
118
|
+
return W(A) || (A = Y(A)), se(g, b, A);
|
|
119
119
|
}
|
|
120
120
|
e("getMetadata", M);
|
|
121
|
-
function C(g, b,
|
|
121
|
+
function C(g, b, A) {
|
|
122
122
|
if (!K(b))
|
|
123
123
|
throw new TypeError();
|
|
124
|
-
return W(
|
|
124
|
+
return W(A) || (A = Y(A)), pr(g, b, A);
|
|
125
125
|
}
|
|
126
126
|
e("getOwnMetadata", C);
|
|
127
127
|
function T(g, b) {
|
|
128
128
|
if (!K(g))
|
|
129
129
|
throw new TypeError();
|
|
130
|
-
return W(b) || (b = Y(b)),
|
|
130
|
+
return W(b) || (b = Y(b)), St(g, b);
|
|
131
131
|
}
|
|
132
132
|
e("getMetadataKeys", T);
|
|
133
|
-
function
|
|
133
|
+
function Ae(g, b) {
|
|
134
134
|
if (!K(g))
|
|
135
135
|
throw new TypeError();
|
|
136
136
|
return W(b) || (b = Y(b)), yr(g, b);
|
|
137
137
|
}
|
|
138
|
-
e("getOwnMetadataKeys",
|
|
139
|
-
function de(g, b,
|
|
138
|
+
e("getOwnMetadataKeys", Ae);
|
|
139
|
+
function de(g, b, A) {
|
|
140
140
|
if (!K(b))
|
|
141
141
|
throw new TypeError();
|
|
142
|
-
if (W(
|
|
142
|
+
if (W(A) || (A = Y(A)), !K(b))
|
|
143
143
|
throw new TypeError();
|
|
144
|
-
W(
|
|
144
|
+
W(A) || (A = Y(A));
|
|
145
145
|
var _ = qr(
|
|
146
146
|
b,
|
|
147
|
-
|
|
147
|
+
A,
|
|
148
148
|
/*Create*/
|
|
149
149
|
!1
|
|
150
150
|
);
|
|
151
|
-
return W(_) ? !1 : _.OrdinaryDeleteMetadata(g, b,
|
|
151
|
+
return W(_) ? !1 : _.OrdinaryDeleteMetadata(g, b, A);
|
|
152
152
|
}
|
|
153
153
|
e("deleteMetadata", de);
|
|
154
154
|
function Ge(g, b) {
|
|
155
|
-
for (var
|
|
156
|
-
var _ = g[
|
|
155
|
+
for (var A = g.length - 1; A >= 0; --A) {
|
|
156
|
+
var _ = g[A], G = _(b);
|
|
157
157
|
if (!W(G) && !Xe(G)) {
|
|
158
158
|
if (!Te(G))
|
|
159
159
|
throw new TypeError();
|
|
@@ -162,9 +162,9 @@ var Ja;
|
|
|
162
162
|
}
|
|
163
163
|
return b;
|
|
164
164
|
}
|
|
165
|
-
function ue(g, b,
|
|
165
|
+
function ue(g, b, A, _) {
|
|
166
166
|
for (var G = g.length - 1; G >= 0; --G) {
|
|
167
|
-
var Be = g[G], ke = Be(b,
|
|
167
|
+
var Be = g[G], ke = Be(b, A, _);
|
|
168
168
|
if (!W(ke) && !Xe(ke)) {
|
|
169
169
|
if (!K(ke))
|
|
170
170
|
throw new TypeError();
|
|
@@ -173,60 +173,60 @@ var Ja;
|
|
|
173
173
|
}
|
|
174
174
|
return _;
|
|
175
175
|
}
|
|
176
|
-
function pe(g, b,
|
|
177
|
-
var _ = Ue(g, b,
|
|
176
|
+
function pe(g, b, A) {
|
|
177
|
+
var _ = Ue(g, b, A);
|
|
178
178
|
if (_)
|
|
179
179
|
return !0;
|
|
180
180
|
var G = ws(b);
|
|
181
|
-
return Xe(G) ? !1 : pe(g, G,
|
|
181
|
+
return Xe(G) ? !1 : pe(g, G, A);
|
|
182
182
|
}
|
|
183
|
-
function Ue(g, b,
|
|
183
|
+
function Ue(g, b, A) {
|
|
184
184
|
var _ = qr(
|
|
185
185
|
b,
|
|
186
|
-
|
|
186
|
+
A,
|
|
187
187
|
/*Create*/
|
|
188
188
|
!1
|
|
189
189
|
);
|
|
190
|
-
return W(_) ? !1 : oe(_.OrdinaryHasOwnMetadata(g, b,
|
|
190
|
+
return W(_) ? !1 : oe(_.OrdinaryHasOwnMetadata(g, b, A));
|
|
191
191
|
}
|
|
192
|
-
function se(g, b,
|
|
193
|
-
var _ = Ue(g, b,
|
|
192
|
+
function se(g, b, A) {
|
|
193
|
+
var _ = Ue(g, b, A);
|
|
194
194
|
if (_)
|
|
195
|
-
return pr(g, b,
|
|
195
|
+
return pr(g, b, A);
|
|
196
196
|
var G = ws(b);
|
|
197
197
|
if (!Xe(G))
|
|
198
|
-
return se(g, G,
|
|
198
|
+
return se(g, G, A);
|
|
199
199
|
}
|
|
200
|
-
function pr(g, b,
|
|
200
|
+
function pr(g, b, A) {
|
|
201
201
|
var _ = qr(
|
|
202
202
|
b,
|
|
203
|
-
|
|
203
|
+
A,
|
|
204
204
|
/*Create*/
|
|
205
205
|
!1
|
|
206
206
|
);
|
|
207
207
|
if (!W(_))
|
|
208
|
-
return _.OrdinaryGetOwnMetadata(g, b,
|
|
208
|
+
return _.OrdinaryGetOwnMetadata(g, b, A);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Vt(g, b, A, _) {
|
|
211
211
|
var G = qr(
|
|
212
|
-
|
|
212
|
+
A,
|
|
213
213
|
_,
|
|
214
214
|
/*Create*/
|
|
215
215
|
!0
|
|
216
216
|
);
|
|
217
|
-
G.OrdinaryDefineOwnMetadata(g, b,
|
|
217
|
+
G.OrdinaryDefineOwnMetadata(g, b, A, _);
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
var
|
|
219
|
+
function St(g, b) {
|
|
220
|
+
var A = yr(g, b), _ = ws(g);
|
|
221
221
|
if (_ === null)
|
|
222
|
-
return
|
|
223
|
-
var G =
|
|
222
|
+
return A;
|
|
223
|
+
var G = St(_, b);
|
|
224
224
|
if (G.length <= 0)
|
|
225
|
-
return
|
|
226
|
-
if (
|
|
225
|
+
return A;
|
|
226
|
+
if (A.length <= 0)
|
|
227
227
|
return G;
|
|
228
|
-
for (var Be = new N(), ke = [], re = 0,
|
|
229
|
-
var U =
|
|
228
|
+
for (var Be = new N(), ke = [], re = 0, R = A; re < R.length; re++) {
|
|
229
|
+
var U = R[re], H = Be.has(U);
|
|
230
230
|
H || (Be.add(U), ke.push(U));
|
|
231
231
|
}
|
|
232
232
|
for (var q = 0, ne = G; q < ne.length; q++) {
|
|
@@ -236,13 +236,13 @@ var Ja;
|
|
|
236
236
|
return ke;
|
|
237
237
|
}
|
|
238
238
|
function yr(g, b) {
|
|
239
|
-
var
|
|
239
|
+
var A = qr(
|
|
240
240
|
g,
|
|
241
241
|
b,
|
|
242
242
|
/*create*/
|
|
243
243
|
!1
|
|
244
244
|
);
|
|
245
|
-
return
|
|
245
|
+
return A ? A.OrdinaryOwnMetadataKeys(g, b) : [];
|
|
246
246
|
}
|
|
247
247
|
function gr(g) {
|
|
248
248
|
if (g === null)
|
|
@@ -270,7 +270,7 @@ var Ja;
|
|
|
270
270
|
function Xe(g) {
|
|
271
271
|
return g === null;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Rt(g) {
|
|
274
274
|
return typeof g == "symbol";
|
|
275
275
|
}
|
|
276
276
|
function K(g) {
|
|
@@ -291,9 +291,9 @@ var Ja;
|
|
|
291
291
|
case 5:
|
|
292
292
|
return g;
|
|
293
293
|
}
|
|
294
|
-
var
|
|
294
|
+
var A = "string", _ = Fa(g, s);
|
|
295
295
|
if (_ !== void 0) {
|
|
296
|
-
var G = _.call(g,
|
|
296
|
+
var G = _.call(g, A);
|
|
297
297
|
if (K(G))
|
|
298
298
|
throw new TypeError();
|
|
299
299
|
return G;
|
|
@@ -301,7 +301,7 @@ var Ja;
|
|
|
301
301
|
return Z(g);
|
|
302
302
|
}
|
|
303
303
|
function Z(g, b) {
|
|
304
|
-
var
|
|
304
|
+
var A, _;
|
|
305
305
|
{
|
|
306
306
|
var G = g.toString;
|
|
307
307
|
if (J(G)) {
|
|
@@ -309,9 +309,9 @@ var Ja;
|
|
|
309
309
|
if (!K(_))
|
|
310
310
|
return _;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
if (J(
|
|
314
|
-
var _ =
|
|
312
|
+
var A = g.valueOf;
|
|
313
|
+
if (J(A)) {
|
|
314
|
+
var _ = A.call(g);
|
|
315
315
|
if (!K(_))
|
|
316
316
|
return _;
|
|
317
317
|
}
|
|
@@ -326,7 +326,7 @@ var Ja;
|
|
|
326
326
|
}
|
|
327
327
|
function Y(g) {
|
|
328
328
|
var b = L(g);
|
|
329
|
-
return
|
|
329
|
+
return Rt(b) ? b : We(b);
|
|
330
330
|
}
|
|
331
331
|
function Ne(g) {
|
|
332
332
|
return Array.isArray ? Array.isArray(g) : g instanceof Object ? g instanceof Array : Object.prototype.toString.call(g) === "[object Array]";
|
|
@@ -351,21 +351,21 @@ var Ja;
|
|
|
351
351
|
return g === b || g !== g && b !== b;
|
|
352
352
|
}
|
|
353
353
|
function Fa(g, b) {
|
|
354
|
-
var
|
|
355
|
-
if (
|
|
356
|
-
if (!J(
|
|
354
|
+
var A = g[b];
|
|
355
|
+
if (A != null) {
|
|
356
|
+
if (!J(A))
|
|
357
357
|
throw new TypeError();
|
|
358
|
-
return
|
|
358
|
+
return A;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
function Ka(g) {
|
|
362
362
|
var b = Fa(g, a);
|
|
363
363
|
if (!J(b))
|
|
364
364
|
throw new TypeError();
|
|
365
|
-
var
|
|
366
|
-
if (!K(
|
|
365
|
+
var A = b.call(g);
|
|
366
|
+
if (!K(A))
|
|
367
367
|
throw new TypeError();
|
|
368
|
-
return
|
|
368
|
+
return A;
|
|
369
369
|
}
|
|
370
370
|
function qa(g) {
|
|
371
371
|
return g.value;
|
|
@@ -382,7 +382,7 @@ var Ja;
|
|
|
382
382
|
var b = Object.getPrototypeOf(g);
|
|
383
383
|
if (typeof g != "function" || g === p || b !== p)
|
|
384
384
|
return b;
|
|
385
|
-
var
|
|
385
|
+
var A = g.prototype, _ = A && Object.getPrototypeOf(A);
|
|
386
386
|
if (_ == null || _ === Object.prototype)
|
|
387
387
|
return b;
|
|
388
388
|
var G = _.constructor;
|
|
@@ -391,9 +391,9 @@ var Ja;
|
|
|
391
391
|
function Uf() {
|
|
392
392
|
var g;
|
|
393
393
|
!W(y) && typeof t.Reflect < "u" && !(y in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (g = Ff(t.Reflect));
|
|
394
|
-
var b,
|
|
394
|
+
var b, A, _, G = new f(), Be = {
|
|
395
395
|
registerProvider: ke,
|
|
396
|
-
getProvider:
|
|
396
|
+
getProvider: R,
|
|
397
397
|
setProvider: H
|
|
398
398
|
};
|
|
399
399
|
return Be;
|
|
@@ -408,10 +408,10 @@ var Ja;
|
|
|
408
408
|
break;
|
|
409
409
|
case b === q:
|
|
410
410
|
break;
|
|
411
|
-
case W(
|
|
412
|
-
|
|
411
|
+
case W(A):
|
|
412
|
+
A = q;
|
|
413
413
|
break;
|
|
414
|
-
case
|
|
414
|
+
case A === q:
|
|
415
415
|
break;
|
|
416
416
|
default:
|
|
417
417
|
_ === void 0 && (_ = new N()), _.add(q);
|
|
@@ -422,8 +422,8 @@ var Ja;
|
|
|
422
422
|
if (!W(b)) {
|
|
423
423
|
if (b.isProviderFor(q, ne))
|
|
424
424
|
return b;
|
|
425
|
-
if (!W(
|
|
426
|
-
if (
|
|
425
|
+
if (!W(A)) {
|
|
426
|
+
if (A.isProviderFor(q, ne))
|
|
427
427
|
return b;
|
|
428
428
|
if (!W(_))
|
|
429
429
|
for (var ye = Ka(_); ; ) {
|
|
@@ -439,19 +439,19 @@ var Ja;
|
|
|
439
439
|
if (!W(g) && g.isProviderFor(q, ne))
|
|
440
440
|
return g;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function R(q, ne) {
|
|
443
443
|
var ye = G.get(q), be;
|
|
444
444
|
return W(ye) || (be = ye.get(ne)), W(be) && (be = re(q, ne), W(be) || (W(ye) && (ye = new z(), G.set(q, ye)), ye.set(ne, be))), be;
|
|
445
445
|
}
|
|
446
446
|
function U(q) {
|
|
447
447
|
if (W(q))
|
|
448
448
|
throw new TypeError();
|
|
449
|
-
return b === q ||
|
|
449
|
+
return b === q || A === q || !W(_) && _.has(q);
|
|
450
450
|
}
|
|
451
451
|
function H(q, ne, ye) {
|
|
452
452
|
if (!U(ye))
|
|
453
453
|
throw new Error("Metadata provider not registered.");
|
|
454
|
-
var be =
|
|
454
|
+
var be = R(q, ne);
|
|
455
455
|
if (be !== ye) {
|
|
456
456
|
if (!W(be))
|
|
457
457
|
return !1;
|
|
@@ -471,7 +471,7 @@ var Ja;
|
|
|
471
471
|
}), g;
|
|
472
472
|
}
|
|
473
473
|
function Hf(g) {
|
|
474
|
-
var b = new f(),
|
|
474
|
+
var b = new f(), A = {
|
|
475
475
|
isProviderFor: function(U, H) {
|
|
476
476
|
var q = b.get(U);
|
|
477
477
|
return W(q) ? !1 : q.has(H);
|
|
@@ -480,9 +480,9 @@ var Ja;
|
|
|
480
480
|
OrdinaryHasOwnMetadata: G,
|
|
481
481
|
OrdinaryGetOwnMetadata: Be,
|
|
482
482
|
OrdinaryOwnMetadataKeys: re,
|
|
483
|
-
OrdinaryDeleteMetadata:
|
|
483
|
+
OrdinaryDeleteMetadata: R
|
|
484
484
|
};
|
|
485
|
-
return
|
|
485
|
+
return S.registerProvider(A), A;
|
|
486
486
|
function _(U, H, q) {
|
|
487
487
|
var ne = b.get(U), ye = !1;
|
|
488
488
|
if (W(ne)) {
|
|
@@ -494,7 +494,7 @@ var Ja;
|
|
|
494
494
|
if (W(be)) {
|
|
495
495
|
if (!q)
|
|
496
496
|
return;
|
|
497
|
-
if (be = new z(), ne.set(H, be), !g.setProvider(U, H,
|
|
497
|
+
if (be = new z(), ne.set(H, be), !g.setProvider(U, H, A))
|
|
498
498
|
throw ne.delete(H), ye && b.delete(U), new Error("Wrong provider for target.");
|
|
499
499
|
}
|
|
500
500
|
return be;
|
|
@@ -553,7 +553,7 @@ var Ja;
|
|
|
553
553
|
ot++;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function R(U, H, q) {
|
|
557
557
|
var ne = _(
|
|
558
558
|
H,
|
|
559
559
|
q,
|
|
@@ -570,51 +570,51 @@ var Ja;
|
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
function Ff(g) {
|
|
573
|
-
var b = g.defineMetadata,
|
|
574
|
-
isProviderFor: function(
|
|
575
|
-
var H = ke.get(
|
|
576
|
-
return !W(H) && H.has(U) ? !0 : G(
|
|
573
|
+
var b = g.defineMetadata, A = g.hasOwnMetadata, _ = g.getOwnMetadata, G = g.getOwnMetadataKeys, Be = g.deleteMetadata, ke = new f(), re = {
|
|
574
|
+
isProviderFor: function(R, U) {
|
|
575
|
+
var H = ke.get(R);
|
|
576
|
+
return !W(H) && H.has(U) ? !0 : G(R, U).length ? (W(H) && (H = new N(), ke.set(R, H)), H.add(U), !0) : !1;
|
|
577
577
|
},
|
|
578
578
|
OrdinaryDefineOwnMetadata: b,
|
|
579
|
-
OrdinaryHasOwnMetadata:
|
|
579
|
+
OrdinaryHasOwnMetadata: A,
|
|
580
580
|
OrdinaryGetOwnMetadata: _,
|
|
581
581
|
OrdinaryOwnMetadataKeys: G,
|
|
582
582
|
OrdinaryDeleteMetadata: Be
|
|
583
583
|
};
|
|
584
584
|
return re;
|
|
585
585
|
}
|
|
586
|
-
function qr(g, b,
|
|
587
|
-
var _ =
|
|
586
|
+
function qr(g, b, A) {
|
|
587
|
+
var _ = S.getProvider(g, b);
|
|
588
588
|
if (!W(_))
|
|
589
589
|
return _;
|
|
590
|
-
if (
|
|
591
|
-
if (
|
|
590
|
+
if (A) {
|
|
591
|
+
if (S.setProvider(g, b, w))
|
|
592
592
|
return w;
|
|
593
593
|
throw new Error("Illegal state.");
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
function Kf() {
|
|
597
|
-
var g = {}, b = [],
|
|
597
|
+
var g = {}, b = [], A = (
|
|
598
598
|
/** @class */
|
|
599
599
|
function() {
|
|
600
|
-
function re(
|
|
601
|
-
this._index = 0, this._keys =
|
|
600
|
+
function re(R, U, H) {
|
|
601
|
+
this._index = 0, this._keys = R, this._values = U, this._selector = H;
|
|
602
602
|
}
|
|
603
603
|
return re.prototype["@@iterator"] = function() {
|
|
604
604
|
return this;
|
|
605
605
|
}, re.prototype[a] = function() {
|
|
606
606
|
return this;
|
|
607
607
|
}, re.prototype.next = function() {
|
|
608
|
-
var
|
|
609
|
-
if (
|
|
610
|
-
var U = this._selector(this._keys[
|
|
611
|
-
return
|
|
608
|
+
var R = this._index;
|
|
609
|
+
if (R >= 0 && R < this._keys.length) {
|
|
610
|
+
var U = this._selector(this._keys[R], this._values[R]);
|
|
611
|
+
return R + 1 >= this._keys.length ? (this._index = -1, this._keys = b, this._values = b) : this._index++, { value: U, done: !1 };
|
|
612
612
|
}
|
|
613
613
|
return { value: void 0, done: !0 };
|
|
614
|
-
}, re.prototype.throw = function(
|
|
615
|
-
throw this._index >= 0 && (this._index = -1, this._keys = b, this._values = b),
|
|
616
|
-
}, re.prototype.return = function(
|
|
617
|
-
return this._index >= 0 && (this._index = -1, this._keys = b, this._values = b), { value:
|
|
614
|
+
}, re.prototype.throw = function(R) {
|
|
615
|
+
throw this._index >= 0 && (this._index = -1, this._keys = b, this._values = b), R;
|
|
616
|
+
}, re.prototype.return = function(R) {
|
|
617
|
+
return this._index >= 0 && (this._index = -1, this._keys = b, this._values = b), { value: R, done: !0 };
|
|
618
618
|
}, re;
|
|
619
619
|
}()
|
|
620
620
|
), _ = (
|
|
@@ -629,72 +629,72 @@ var Ja;
|
|
|
629
629
|
},
|
|
630
630
|
enumerable: !0,
|
|
631
631
|
configurable: !0
|
|
632
|
-
}), re.prototype.has = function(
|
|
632
|
+
}), re.prototype.has = function(R) {
|
|
633
633
|
return this._find(
|
|
634
|
-
|
|
634
|
+
R,
|
|
635
635
|
/*insert*/
|
|
636
636
|
!1
|
|
637
637
|
) >= 0;
|
|
638
|
-
}, re.prototype.get = function(
|
|
638
|
+
}, re.prototype.get = function(R) {
|
|
639
639
|
var U = this._find(
|
|
640
|
-
|
|
640
|
+
R,
|
|
641
641
|
/*insert*/
|
|
642
642
|
!1
|
|
643
643
|
);
|
|
644
644
|
return U >= 0 ? this._values[U] : void 0;
|
|
645
|
-
}, re.prototype.set = function(
|
|
645
|
+
}, re.prototype.set = function(R, U) {
|
|
646
646
|
var H = this._find(
|
|
647
|
-
|
|
647
|
+
R,
|
|
648
648
|
/*insert*/
|
|
649
649
|
!0
|
|
650
650
|
);
|
|
651
651
|
return this._values[H] = U, this;
|
|
652
|
-
}, re.prototype.delete = function(
|
|
652
|
+
}, re.prototype.delete = function(R) {
|
|
653
653
|
var U = this._find(
|
|
654
|
-
|
|
654
|
+
R,
|
|
655
655
|
/*insert*/
|
|
656
656
|
!1
|
|
657
657
|
);
|
|
658
658
|
if (U >= 0) {
|
|
659
659
|
for (var H = this._keys.length, q = U + 1; q < H; q++)
|
|
660
660
|
this._keys[q - 1] = this._keys[q], this._values[q - 1] = this._values[q];
|
|
661
|
-
return this._keys.length--, this._values.length--, bs(
|
|
661
|
+
return this._keys.length--, this._values.length--, bs(R, this._cacheKey) && (this._cacheKey = g, this._cacheIndex = -2), !0;
|
|
662
662
|
}
|
|
663
663
|
return !1;
|
|
664
664
|
}, re.prototype.clear = function() {
|
|
665
665
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = g, this._cacheIndex = -2;
|
|
666
666
|
}, re.prototype.keys = function() {
|
|
667
|
-
return new
|
|
667
|
+
return new A(this._keys, this._values, G);
|
|
668
668
|
}, re.prototype.values = function() {
|
|
669
|
-
return new
|
|
669
|
+
return new A(this._keys, this._values, Be);
|
|
670
670
|
}, re.prototype.entries = function() {
|
|
671
|
-
return new
|
|
671
|
+
return new A(this._keys, this._values, ke);
|
|
672
672
|
}, re.prototype["@@iterator"] = function() {
|
|
673
673
|
return this.entries();
|
|
674
674
|
}, re.prototype[a] = function() {
|
|
675
675
|
return this.entries();
|
|
676
|
-
}, re.prototype._find = function(
|
|
677
|
-
if (!bs(this._cacheKey,
|
|
676
|
+
}, re.prototype._find = function(R, U) {
|
|
677
|
+
if (!bs(this._cacheKey, R)) {
|
|
678
678
|
this._cacheIndex = -1;
|
|
679
679
|
for (var H = 0; H < this._keys.length; H++)
|
|
680
|
-
if (bs(this._keys[H],
|
|
680
|
+
if (bs(this._keys[H], R)) {
|
|
681
681
|
this._cacheIndex = H;
|
|
682
682
|
break;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
return this._cacheIndex < 0 && U && (this._cacheIndex = this._keys.length, this._keys.push(
|
|
685
|
+
return this._cacheIndex < 0 && U && (this._cacheIndex = this._keys.length, this._keys.push(R), this._values.push(void 0)), this._cacheIndex;
|
|
686
686
|
}, re;
|
|
687
687
|
}()
|
|
688
688
|
);
|
|
689
689
|
return _;
|
|
690
|
-
function G(re,
|
|
690
|
+
function G(re, R) {
|
|
691
691
|
return re;
|
|
692
692
|
}
|
|
693
|
-
function Be(re,
|
|
694
|
-
return
|
|
693
|
+
function Be(re, R) {
|
|
694
|
+
return R;
|
|
695
695
|
}
|
|
696
|
-
function ke(re,
|
|
697
|
-
return [re,
|
|
696
|
+
function ke(re, R) {
|
|
697
|
+
return [re, R];
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
function qf() {
|
|
@@ -710,12 +710,12 @@ var Ja;
|
|
|
710
710
|
},
|
|
711
711
|
enumerable: !0,
|
|
712
712
|
configurable: !0
|
|
713
|
-
}), b.prototype.has = function(
|
|
714
|
-
return this._map.has(
|
|
715
|
-
}, b.prototype.add = function(
|
|
716
|
-
return this._map.set(
|
|
717
|
-
}, b.prototype.delete = function(
|
|
718
|
-
return this._map.delete(
|
|
713
|
+
}), b.prototype.has = function(A) {
|
|
714
|
+
return this._map.has(A);
|
|
715
|
+
}, b.prototype.add = function(A) {
|
|
716
|
+
return this._map.set(A, A), this;
|
|
717
|
+
}, b.prototype.delete = function(A) {
|
|
718
|
+
return this._map.delete(A);
|
|
719
719
|
}, b.prototype.clear = function() {
|
|
720
720
|
this._map.clear();
|
|
721
721
|
}, b.prototype.keys = function() {
|
|
@@ -734,84 +734,84 @@ var Ja;
|
|
|
734
734
|
return g;
|
|
735
735
|
}
|
|
736
736
|
function zf() {
|
|
737
|
-
var g = 16, b = v.create(),
|
|
737
|
+
var g = 16, b = v.create(), A = _();
|
|
738
738
|
return (
|
|
739
739
|
/** @class */
|
|
740
740
|
function() {
|
|
741
|
-
function
|
|
741
|
+
function R() {
|
|
742
742
|
this._key = _();
|
|
743
743
|
}
|
|
744
|
-
return
|
|
744
|
+
return R.prototype.has = function(U) {
|
|
745
745
|
var H = G(
|
|
746
746
|
U,
|
|
747
747
|
/*create*/
|
|
748
748
|
!1
|
|
749
749
|
);
|
|
750
750
|
return H !== void 0 ? v.has(H, this._key) : !1;
|
|
751
|
-
},
|
|
751
|
+
}, R.prototype.get = function(U) {
|
|
752
752
|
var H = G(
|
|
753
753
|
U,
|
|
754
754
|
/*create*/
|
|
755
755
|
!1
|
|
756
756
|
);
|
|
757
757
|
return H !== void 0 ? v.get(H, this._key) : void 0;
|
|
758
|
-
},
|
|
758
|
+
}, R.prototype.set = function(U, H) {
|
|
759
759
|
var q = G(
|
|
760
760
|
U,
|
|
761
761
|
/*create*/
|
|
762
762
|
!0
|
|
763
763
|
);
|
|
764
764
|
return q[this._key] = H, this;
|
|
765
|
-
},
|
|
765
|
+
}, R.prototype.delete = function(U) {
|
|
766
766
|
var H = G(
|
|
767
767
|
U,
|
|
768
768
|
/*create*/
|
|
769
769
|
!1
|
|
770
770
|
);
|
|
771
771
|
return H !== void 0 ? delete H[this._key] : !1;
|
|
772
|
-
},
|
|
772
|
+
}, R.prototype.clear = function() {
|
|
773
773
|
this._key = _();
|
|
774
|
-
},
|
|
774
|
+
}, R;
|
|
775
775
|
}()
|
|
776
776
|
);
|
|
777
777
|
function _() {
|
|
778
|
-
var
|
|
778
|
+
var R;
|
|
779
779
|
do
|
|
780
|
-
|
|
781
|
-
while (v.has(b,
|
|
782
|
-
return b[
|
|
780
|
+
R = "@@WeakMap@@" + re();
|
|
781
|
+
while (v.has(b, R));
|
|
782
|
+
return b[R] = !0, R;
|
|
783
783
|
}
|
|
784
|
-
function G(
|
|
785
|
-
if (!i.call(
|
|
784
|
+
function G(R, U) {
|
|
785
|
+
if (!i.call(R, A)) {
|
|
786
786
|
if (!U)
|
|
787
787
|
return;
|
|
788
|
-
Object.defineProperty(
|
|
788
|
+
Object.defineProperty(R, A, { value: v.create() });
|
|
789
789
|
}
|
|
790
|
-
return
|
|
790
|
+
return R[A];
|
|
791
791
|
}
|
|
792
|
-
function Be(
|
|
792
|
+
function Be(R, U) {
|
|
793
793
|
for (var H = 0; H < U; ++H)
|
|
794
|
-
|
|
795
|
-
return
|
|
794
|
+
R[H] = Math.random() * 255 | 0;
|
|
795
|
+
return R;
|
|
796
796
|
}
|
|
797
|
-
function ke(
|
|
797
|
+
function ke(R) {
|
|
798
798
|
if (typeof Uint8Array == "function") {
|
|
799
|
-
var U = new Uint8Array(
|
|
800
|
-
return typeof crypto < "u" ? crypto.getRandomValues(U) : typeof msCrypto < "u" ? msCrypto.getRandomValues(U) : Be(U,
|
|
799
|
+
var U = new Uint8Array(R);
|
|
800
|
+
return typeof crypto < "u" ? crypto.getRandomValues(U) : typeof msCrypto < "u" ? msCrypto.getRandomValues(U) : Be(U, R), U;
|
|
801
801
|
}
|
|
802
|
-
return Be(new Array(
|
|
802
|
+
return Be(new Array(R), R);
|
|
803
803
|
}
|
|
804
804
|
function re() {
|
|
805
|
-
var
|
|
806
|
-
|
|
805
|
+
var R = ke(g);
|
|
806
|
+
R[6] = R[6] & 79 | 64, R[8] = R[8] & 191 | 128;
|
|
807
807
|
for (var U = "", H = 0; H < g; ++H) {
|
|
808
|
-
var q =
|
|
808
|
+
var q = R[H];
|
|
809
809
|
(H === 4 || H === 6 || H === 8) && (U += "-"), q < 16 && (U += "0"), U += q.toString(16).toLowerCase();
|
|
810
810
|
}
|
|
811
811
|
return U;
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Ss(g) {
|
|
815
815
|
return g.__ = void 0, delete g.__, g;
|
|
816
816
|
}
|
|
817
817
|
});
|
|
@@ -890,7 +890,7 @@ class P {
|
|
|
890
890
|
return e[e.length - 1] instanceof Function ? this.toView(n, e[e.length - 1]) : n.buffer;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
const
|
|
893
|
+
const As = "string", ed = /^[0-9a-f]+$/i, td = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, rd = /^[a-zA-Z0-9-_]+$/;
|
|
894
894
|
class Ya {
|
|
895
895
|
static fromString(e) {
|
|
896
896
|
const t = unescape(encodeURIComponent(e)), i = new Uint8Array(t.length);
|
|
@@ -925,13 +925,13 @@ class ht {
|
|
|
925
925
|
}
|
|
926
926
|
class F {
|
|
927
927
|
static isHex(e) {
|
|
928
|
-
return typeof e ===
|
|
928
|
+
return typeof e === As && ed.test(e);
|
|
929
929
|
}
|
|
930
930
|
static isBase64(e) {
|
|
931
|
-
return typeof e ===
|
|
931
|
+
return typeof e === As && td.test(e);
|
|
932
932
|
}
|
|
933
933
|
static isBase64Url(e) {
|
|
934
|
-
return typeof e ===
|
|
934
|
+
return typeof e === As && rd.test(e);
|
|
935
935
|
}
|
|
936
936
|
static ToString(e, t = "utf8") {
|
|
937
937
|
const i = P.toUint8Array(e);
|
|
@@ -1112,7 +1112,7 @@ function zl(r, e) {
|
|
|
1112
1112
|
/*!
|
|
1113
1113
|
Copyright (c) Peculiar Ventures, LLC
|
|
1114
1114
|
*/
|
|
1115
|
-
function
|
|
1115
|
+
function Sr(r, e) {
|
|
1116
1116
|
let t = 0;
|
|
1117
1117
|
if (r.length === 1)
|
|
1118
1118
|
return r[0];
|
|
@@ -1144,7 +1144,7 @@ function Xt(r, e, t = -1) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
return new ArrayBuffer(0);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function Vs(...r) {
|
|
1148
1148
|
let e = 0, t = 0;
|
|
1149
1149
|
for (const s of r)
|
|
1150
1150
|
e += s.length;
|
|
@@ -1163,10 +1163,10 @@ function Gl() {
|
|
|
1163
1163
|
for (let l = 0; l < this.valueHex.byteLength; l++)
|
|
1164
1164
|
t[l] = 0;
|
|
1165
1165
|
t[0] = r[0] & 128;
|
|
1166
|
-
const i =
|
|
1166
|
+
const i = Sr(t, 8), n = new ArrayBuffer(this.valueHex.byteLength), s = new Uint8Array(n);
|
|
1167
1167
|
for (let l = 0; l < this.valueHex.byteLength; l++)
|
|
1168
1168
|
s[l] = r[l];
|
|
1169
|
-
return s[0] &= 127,
|
|
1169
|
+
return s[0] &= 127, Sr(s, 8) - i;
|
|
1170
1170
|
}
|
|
1171
1171
|
function nd(r) {
|
|
1172
1172
|
const e = r < 0 ? r * -1 : r;
|
|
@@ -1434,7 +1434,7 @@ class Yl extends mt(ur) {
|
|
|
1434
1434
|
const p = new Uint8Array(u);
|
|
1435
1435
|
for (let z = 0; z < u; z++)
|
|
1436
1436
|
p[z] = d[z];
|
|
1437
|
-
d = this.valueHexView = new Uint8Array(u), d.set(p), this.blockLength <= 9 ? this.tagNumber =
|
|
1437
|
+
d = this.valueHexView = new Uint8Array(u), d.set(p), this.blockLength <= 9 ? this.tagNumber = Sr(d, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
|
|
1438
1438
|
}
|
|
1439
1439
|
if (this.tagClass === 1 && this.isConstructed)
|
|
1440
1440
|
switch (this.tagNumber) {
|
|
@@ -1489,7 +1489,7 @@ class Zl extends ur {
|
|
|
1489
1489
|
if (a + 1 > s.length)
|
|
1490
1490
|
return this.error = "End of input reached before message was fully decoded", -1;
|
|
1491
1491
|
const l = t + 1, u = n.subarray(l, l + a);
|
|
1492
|
-
return u[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length =
|
|
1492
|
+
return u[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length = Sr(u, 8), this.longFormUsed && this.length <= 127 && this.warnings.push("Unnecessary usage of long length form"), this.blockLength = a + 1, t + this.blockLength;
|
|
1493
1493
|
}
|
|
1494
1494
|
toBER(e = !1) {
|
|
1495
1495
|
let t, i;
|
|
@@ -1615,7 +1615,7 @@ function pd(r, e) {
|
|
|
1615
1615
|
const t = new e();
|
|
1616
1616
|
return t.idBlock = r.idBlock, t.lenBlock = r.lenBlock, t.warnings = r.warnings, t.valueBeforeDecodeView = r.valueBeforeDecodeView, t;
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function Vr(r, e = 0, t = r.length) {
|
|
1619
1619
|
const i = e;
|
|
1620
1620
|
let n = new Ee({}, Me);
|
|
1621
1621
|
const s = new ur();
|
|
@@ -1779,7 +1779,7 @@ function br(r) {
|
|
|
1779
1779
|
result: e
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
|
-
return
|
|
1782
|
+
return Vr(P.toUint8Array(r).slice(), 0, r.byteLength);
|
|
1783
1783
|
}
|
|
1784
1784
|
function yd(r, e) {
|
|
1785
1785
|
return r ? 1 : e;
|
|
@@ -1796,7 +1796,7 @@ class Mt extends Me {
|
|
|
1796
1796
|
return this.warnings.push("Zero buffer length"), t;
|
|
1797
1797
|
let s = t;
|
|
1798
1798
|
for (; yd(this.isIndefiniteForm, i) > 0; ) {
|
|
1799
|
-
const a =
|
|
1799
|
+
const a = Vr(n, s, i);
|
|
1800
1800
|
if (a.offset === -1)
|
|
1801
1801
|
return this.error = a.result.error, this.warnings.concat(a.result.warnings), -1;
|
|
1802
1802
|
if (s = a.offset, this.blockLength += a.result.blockLength, i -= a.result.blockLength, this.value.push(a.result), this.isIndefiniteForm && a.result.constructor.NAME === ti)
|
|
@@ -1991,7 +1991,7 @@ let Zt = class lu extends Ee {
|
|
|
1991
1991
|
const s = (e instanceof ArrayBuffer ? new Uint8Array(e) : e).subarray(t, t + i);
|
|
1992
1992
|
try {
|
|
1993
1993
|
if (s.byteLength) {
|
|
1994
|
-
const a =
|
|
1994
|
+
const a = Vr(s, 0, s.byteLength);
|
|
1995
1995
|
a.offset !== -1 && a.offset === i && (this.valueBlock.value = [a.result]);
|
|
1996
1996
|
}
|
|
1997
1997
|
} catch {
|
|
@@ -2051,7 +2051,7 @@ class uu extends mt(Mt) {
|
|
|
2051
2051
|
const l = a.subarray(1);
|
|
2052
2052
|
try {
|
|
2053
2053
|
if (l.byteLength) {
|
|
2054
|
-
const u =
|
|
2054
|
+
const u = Vr(l, 0, l.byteLength);
|
|
2055
2055
|
u.offset !== -1 && u.offset === i - 1 && (this.value = [u.result]);
|
|
2056
2056
|
}
|
|
2057
2057
|
} catch {
|
|
@@ -2130,13 +2130,13 @@ function gd(r, e) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
switch (t[0] = d / 10, !0) {
|
|
2132
2132
|
case p >= s.length:
|
|
2133
|
-
s =
|
|
2133
|
+
s = Vs(new Uint8Array([d % 10]), s);
|
|
2134
2134
|
break;
|
|
2135
2135
|
default:
|
|
2136
2136
|
s[a - p] = d % 10;
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
|
-
return t[0] > 0 && (s =
|
|
2139
|
+
return t[0] > 0 && (s = Vs(t, s)), s;
|
|
2140
2140
|
}
|
|
2141
2141
|
function Xa(r) {
|
|
2142
2142
|
if (r >= zr.length)
|
|
@@ -2147,7 +2147,7 @@ function Xa(r) {
|
|
|
2147
2147
|
const s = new Uint8Array([(i[n] << 1) + t[0]]);
|
|
2148
2148
|
t[0] = s[0] / 10, i[n] = s[0] % 10;
|
|
2149
2149
|
}
|
|
2150
|
-
t[0] > 0 && (i =
|
|
2150
|
+
t[0] > 0 && (i = Vs(t, i)), zr.push(i);
|
|
2151
2151
|
}
|
|
2152
2152
|
return zr[r];
|
|
2153
2153
|
}
|
|
@@ -2302,7 +2302,7 @@ class On extends yt {
|
|
|
2302
2302
|
pu = On;
|
|
2303
2303
|
$.Enumerated = pu;
|
|
2304
2304
|
On.NAME = "ENUMERATED";
|
|
2305
|
-
class
|
|
2305
|
+
class Rs extends mt(Me) {
|
|
2306
2306
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...i } = {}) {
|
|
2307
2307
|
super(i), this.valueDec = e, this.isFirstSid = t;
|
|
2308
2308
|
}
|
|
@@ -2319,7 +2319,7 @@ class Vs extends mt(Me) {
|
|
|
2319
2319
|
const a = new Uint8Array(this.blockLength);
|
|
2320
2320
|
for (let l = 0; l < this.blockLength; l++)
|
|
2321
2321
|
a[l] = this.valueHexView[l];
|
|
2322
|
-
return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec =
|
|
2322
|
+
return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Sr(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), t + this.blockLength);
|
|
2323
2323
|
}
|
|
2324
2324
|
set valueBigInt(e) {
|
|
2325
2325
|
Fi();
|
|
@@ -2371,7 +2371,7 @@ class Vs extends mt(Me) {
|
|
|
2371
2371
|
};
|
|
2372
2372
|
}
|
|
2373
2373
|
}
|
|
2374
|
-
|
|
2374
|
+
Rs.NAME = "sidBlock";
|
|
2375
2375
|
class yu extends Me {
|
|
2376
2376
|
constructor({ value: e = He, ...t } = {}) {
|
|
2377
2377
|
super(t), this.value = [], e && this.fromString(e);
|
|
@@ -2379,7 +2379,7 @@ class yu extends Me {
|
|
|
2379
2379
|
fromBER(e, t, i) {
|
|
2380
2380
|
let n = t;
|
|
2381
2381
|
for (; i > 0; ) {
|
|
2382
|
-
const s = new
|
|
2382
|
+
const s = new Rs();
|
|
2383
2383
|
if (n = s.fromBER(e, n, i), n === -1)
|
|
2384
2384
|
return this.blockLength = 0, this.error = s.error, n;
|
|
2385
2385
|
this.value.length === 0 && (s.isFirstSid = !0), this.blockLength += s.blockLength, i -= s.blockLength, this.value.push(s);
|
|
@@ -2421,7 +2421,7 @@ class yu extends Me {
|
|
|
2421
2421
|
return;
|
|
2422
2422
|
a.valueDec = u + l, s = !1;
|
|
2423
2423
|
} else {
|
|
2424
|
-
const a = new
|
|
2424
|
+
const a = new Rs();
|
|
2425
2425
|
if (n > Number.MAX_SAFE_INTEGER) {
|
|
2426
2426
|
Fi();
|
|
2427
2427
|
const l = BigInt(n);
|
|
@@ -2494,7 +2494,7 @@ class Ds extends mt(ur) {
|
|
|
2494
2494
|
const a = new Uint8Array(this.blockLength);
|
|
2495
2495
|
for (let l = 0; l < this.blockLength; l++)
|
|
2496
2496
|
a[l] = this.valueHexView[l];
|
|
2497
|
-
return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec =
|
|
2497
|
+
return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Sr(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), t + this.blockLength);
|
|
2498
2498
|
}
|
|
2499
2499
|
toBER(e) {
|
|
2500
2500
|
if (this.isHexOnly) {
|
|
@@ -2628,7 +2628,7 @@ let Bt = class extends Fe {
|
|
|
2628
2628
|
wu = Bt;
|
|
2629
2629
|
$.Set = wu;
|
|
2630
2630
|
Bt.NAME = "SET";
|
|
2631
|
-
class
|
|
2631
|
+
class Su extends mt(Me) {
|
|
2632
2632
|
constructor({ ...e } = {}) {
|
|
2633
2633
|
super(e), this.isHexOnly = !0, this.value = He;
|
|
2634
2634
|
}
|
|
@@ -2639,13 +2639,13 @@ class Au extends mt(Me) {
|
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
|
|
2643
|
-
class
|
|
2642
|
+
Su.NAME = "StringValueBlock";
|
|
2643
|
+
class Au extends Su {
|
|
2644
2644
|
}
|
|
2645
|
-
|
|
2645
|
+
Au.NAME = "SimpleStringValueBlock";
|
|
2646
2646
|
class Qe extends ia {
|
|
2647
2647
|
constructor({ ...e } = {}) {
|
|
2648
|
-
super(e,
|
|
2648
|
+
super(e, Au);
|
|
2649
2649
|
}
|
|
2650
2650
|
fromBuffer(e) {
|
|
2651
2651
|
this.valueBlock.value = String.fromCharCode.apply(null, P.toUint8Array(e));
|
|
@@ -2748,23 +2748,23 @@ Nu = Pn;
|
|
|
2748
2748
|
$.PrintableString = Nu;
|
|
2749
2749
|
Pn.NAME = "PrintableString";
|
|
2750
2750
|
var Tu;
|
|
2751
|
-
class
|
|
2751
|
+
class Vn extends Qe {
|
|
2752
2752
|
constructor(e = {}) {
|
|
2753
2753
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
2756
|
-
Tu =
|
|
2756
|
+
Tu = Vn;
|
|
2757
2757
|
$.TeletexString = Tu;
|
|
2758
|
-
|
|
2758
|
+
Vn.NAME = "TeletexString";
|
|
2759
2759
|
var _u;
|
|
2760
|
-
class
|
|
2760
|
+
class Rn extends Qe {
|
|
2761
2761
|
constructor(e = {}) {
|
|
2762
2762
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
|
|
2763
2763
|
}
|
|
2764
2764
|
}
|
|
2765
|
-
_u =
|
|
2765
|
+
_u = Rn;
|
|
2766
2766
|
$.VideotexString = _u;
|
|
2767
|
-
|
|
2767
|
+
Rn.NAME = "VideotexString";
|
|
2768
2768
|
var ju;
|
|
2769
2769
|
class Dn extends Qe {
|
|
2770
2770
|
constructor(e = {}) {
|
|
@@ -2783,23 +2783,23 @@ class $n extends Qe {
|
|
|
2783
2783
|
Pu = $n;
|
|
2784
2784
|
$.GraphicString = Pu;
|
|
2785
2785
|
$n.NAME = "GraphicString";
|
|
2786
|
-
var
|
|
2786
|
+
var Vu;
|
|
2787
2787
|
class pi extends Qe {
|
|
2788
2788
|
constructor(e = {}) {
|
|
2789
2789
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
|
-
|
|
2793
|
-
$.VisibleString =
|
|
2792
|
+
Vu = pi;
|
|
2793
|
+
$.VisibleString = Vu;
|
|
2794
2794
|
pi.NAME = "VisibleString";
|
|
2795
|
-
var
|
|
2795
|
+
var Ru;
|
|
2796
2796
|
class Mn extends Qe {
|
|
2797
2797
|
constructor(e = {}) {
|
|
2798
2798
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
|
|
2799
2799
|
}
|
|
2800
2800
|
}
|
|
2801
|
-
|
|
2802
|
-
$.GeneralString =
|
|
2801
|
+
Ru = Mn;
|
|
2802
|
+
$.GeneralString = Ru;
|
|
2803
2803
|
Mn.NAME = "GeneralString";
|
|
2804
2804
|
var Du;
|
|
2805
2805
|
class Un extends Qe {
|
|
@@ -3255,7 +3255,7 @@ function Jt(r, e, t) {
|
|
|
3255
3255
|
};
|
|
3256
3256
|
}
|
|
3257
3257
|
if (t.primitiveSchema && Qa in e.valueBlock) {
|
|
3258
|
-
const s =
|
|
3258
|
+
const s = Vr(e.valueBlock.valueHexView);
|
|
3259
3259
|
if (s.offset === -1) {
|
|
3260
3260
|
const a = {
|
|
3261
3261
|
verified: !1,
|
|
@@ -3276,7 +3276,7 @@ function bd(r, e) {
|
|
|
3276
3276
|
verified: !1,
|
|
3277
3277
|
result: { error: "Wrong ASN.1 schema type" }
|
|
3278
3278
|
};
|
|
3279
|
-
const t =
|
|
3279
|
+
const t = Vr(P.toUint8Array(r));
|
|
3280
3280
|
return t.offset === -1 ? {
|
|
3281
3281
|
verified: !1,
|
|
3282
3282
|
result: t.result
|
|
@@ -3316,13 +3316,13 @@ const qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3316
3316
|
Sequence: Ct,
|
|
3317
3317
|
Set: Bt,
|
|
3318
3318
|
TIME: fa,
|
|
3319
|
-
TeletexString:
|
|
3319
|
+
TeletexString: Vn,
|
|
3320
3320
|
TimeOfDay: ca,
|
|
3321
3321
|
UTCTime: yi,
|
|
3322
3322
|
UniversalString: _n,
|
|
3323
3323
|
Utf8String: jt,
|
|
3324
3324
|
ValueBlock: Me,
|
|
3325
|
-
VideotexString:
|
|
3325
|
+
VideotexString: Rn,
|
|
3326
3326
|
ViewWriter: Bn,
|
|
3327
3327
|
VisibleString: pi,
|
|
3328
3328
|
compareSchema: Jt,
|
|
@@ -3409,10 +3409,10 @@ const wd = {
|
|
|
3409
3409
|
throw new Error(e.result.error);
|
|
3410
3410
|
return e.result;
|
|
3411
3411
|
}
|
|
3412
|
-
},
|
|
3412
|
+
}, Sd = {
|
|
3413
3413
|
fromASN: (r) => r.valueBlock.valueHexView.byteLength >= 4 ? r.valueBlock.toString() : r.valueBlock.valueDec,
|
|
3414
3414
|
toASN: (r) => new yt({ value: +r })
|
|
3415
|
-
},
|
|
3415
|
+
}, Ad = {
|
|
3416
3416
|
fromASN: (r) => r.valueBlock.valueDec,
|
|
3417
3417
|
toASN: (r) => new On({ value: r })
|
|
3418
3418
|
}, ge = {
|
|
@@ -3440,7 +3440,7 @@ function rt(r) {
|
|
|
3440
3440
|
toASN: (e) => new r({ value: e })
|
|
3441
3441
|
};
|
|
3442
3442
|
}
|
|
3443
|
-
const zu = rt(jt), Id = rt(Tn), Ed = rt(_n), Od = rt(jn), Nd = rt(Pn), Td = rt(
|
|
3443
|
+
const zu = rt(jt), Id = rt(Tn), Ed = rt(_n), Od = rt(jn), Nd = rt(Pn), Td = rt(Vn), _d = rt(Rn), jd = rt(Dn), Pd = rt($n), Vd = rt(pi), Rd = rt(Mn), Dd = rt(Un), $d = {
|
|
3444
3444
|
fromASN: (r) => r.toDate(),
|
|
3445
3445
|
toASN: (r) => new yi({ valueDate: r })
|
|
3446
3446
|
}, Md = {
|
|
@@ -3463,9 +3463,9 @@ function ha(r) {
|
|
|
3463
3463
|
case h.CharacterString:
|
|
3464
3464
|
return Dd;
|
|
3465
3465
|
case h.Enumerated:
|
|
3466
|
-
return
|
|
3466
|
+
return Ad;
|
|
3467
3467
|
case h.GeneralString:
|
|
3468
|
-
return
|
|
3468
|
+
return Rd;
|
|
3469
3469
|
case h.GeneralizedTime:
|
|
3470
3470
|
return Md;
|
|
3471
3471
|
case h.GraphicString:
|
|
@@ -3473,7 +3473,7 @@ function ha(r) {
|
|
|
3473
3473
|
case h.IA5String:
|
|
3474
3474
|
return jd;
|
|
3475
3475
|
case h.Integer:
|
|
3476
|
-
return
|
|
3476
|
+
return Sd;
|
|
3477
3477
|
case h.Null:
|
|
3478
3478
|
return Ud;
|
|
3479
3479
|
case h.NumericString:
|
|
@@ -3495,7 +3495,7 @@ function ha(r) {
|
|
|
3495
3495
|
case h.VideotexString:
|
|
3496
3496
|
return _d;
|
|
3497
3497
|
case h.VisibleString:
|
|
3498
|
-
return
|
|
3498
|
+
return Vd;
|
|
3499
3499
|
default:
|
|
3500
3500
|
return null;
|
|
3501
3501
|
}
|
|
@@ -3708,8 +3708,8 @@ class Fd {
|
|
|
3708
3708
|
throw new Error(`Cannot parse the child item. ${y.result.error}`);
|
|
3709
3709
|
if (!("value" in y.result.valueBlock && Array.isArray(y.result.valueBlock.value)))
|
|
3710
3710
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
3711
|
-
const
|
|
3712
|
-
l[u] = Array.from(
|
|
3711
|
+
const S = y.result.valueBlock.value;
|
|
3712
|
+
l[u] = Array.from(S, (w) => z.fromASN(w));
|
|
3713
3713
|
} else
|
|
3714
3714
|
l[u] = Array.from(d, (N) => z.fromASN(N));
|
|
3715
3715
|
else {
|
|
@@ -3719,10 +3719,10 @@ class Fd {
|
|
|
3719
3719
|
if (xt(p))
|
|
3720
3720
|
f = new p().toSchema("");
|
|
3721
3721
|
else {
|
|
3722
|
-
const y = h[p],
|
|
3723
|
-
if (!
|
|
3722
|
+
const y = h[p], S = qu[y];
|
|
3723
|
+
if (!S)
|
|
3724
3724
|
throw new Error(`Cannot get '${y}' class from asn1js module`);
|
|
3725
|
-
f = new
|
|
3725
|
+
f = new S();
|
|
3726
3726
|
}
|
|
3727
3727
|
f.valueBlock = N.valueBlock, N = br(f.toBER(!1)).result;
|
|
3728
3728
|
}
|
|
@@ -3855,7 +3855,7 @@ class fe extends Array {
|
|
|
3855
3855
|
}
|
|
3856
3856
|
}
|
|
3857
3857
|
}
|
|
3858
|
-
class
|
|
3858
|
+
class V {
|
|
3859
3859
|
static serialize(e) {
|
|
3860
3860
|
return pa.serialize(e);
|
|
3861
3861
|
}
|
|
@@ -3863,7 +3863,7 @@ class R {
|
|
|
3863
3863
|
return Fd.parse(e, t);
|
|
3864
3864
|
}
|
|
3865
3865
|
static toString(e) {
|
|
3866
|
-
const t = P.isBufferSource(e) ? P.toArrayBuffer(e) :
|
|
3866
|
+
const t = P.isBufferSource(e) ? P.toArrayBuffer(e) : V.serialize(e), i = br(t);
|
|
3867
3867
|
if (i.offset === -1)
|
|
3868
3868
|
throw new Error(`Cannot decode ASN.1 data. ${i.result.error}`);
|
|
3869
3869
|
return i.result.toString();
|
|
@@ -3892,12 +3892,12 @@ var Wu = { exports: {} };
|
|
|
3892
3892
|
function d(f, y) {
|
|
3893
3893
|
if (f.indexOf("::") !== f.lastIndexOf("::"))
|
|
3894
3894
|
return null;
|
|
3895
|
-
let
|
|
3895
|
+
let S = 0, w = -1, E = (f.match(u.zoneIndex) || [])[0], k, O;
|
|
3896
3896
|
for (E && (E = E.substring(1), f = f.replace(/%.+$/, "")); (w = f.indexOf(":", w + 1)) >= 0; )
|
|
3897
|
-
|
|
3898
|
-
if (f.substr(0, 2) === "::" &&
|
|
3897
|
+
S++;
|
|
3898
|
+
if (f.substr(0, 2) === "::" && S--, f.substr(-2, 2) === "::" && S--, S > y)
|
|
3899
3899
|
return null;
|
|
3900
|
-
for (O = y -
|
|
3900
|
+
for (O = y - S, k = ":"; O--; )
|
|
3901
3901
|
k += "0:";
|
|
3902
3902
|
return f = f.replace("::", k), f[0] === ":" && (f = f.slice(1)), f[f.length - 1] === ":" && (f = f.slice(0, -1)), y = function() {
|
|
3903
3903
|
const X = f.split(":"), ie = [];
|
|
@@ -3909,14 +3909,14 @@ var Wu = { exports: {} };
|
|
|
3909
3909
|
zoneId: E
|
|
3910
3910
|
};
|
|
3911
3911
|
}
|
|
3912
|
-
function v(f, y,
|
|
3912
|
+
function v(f, y, S, w) {
|
|
3913
3913
|
if (f.length !== y.length)
|
|
3914
3914
|
throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
|
|
3915
3915
|
let E = 0, k;
|
|
3916
3916
|
for (; w > 0; ) {
|
|
3917
|
-
if (k =
|
|
3917
|
+
if (k = S - w, k < 0 && (k = 0), f[E] >> k !== y[E] >> k)
|
|
3918
3918
|
return !1;
|
|
3919
|
-
w -=
|
|
3919
|
+
w -= S, E += 1;
|
|
3920
3920
|
}
|
|
3921
3921
|
return !0;
|
|
3922
3922
|
}
|
|
@@ -3940,9 +3940,9 @@ var Wu = { exports: {} };
|
|
|
3940
3940
|
function f(y) {
|
|
3941
3941
|
if (y.length !== 4)
|
|
3942
3942
|
throw new Error("ipaddr: ipv4 octet count should be 4");
|
|
3943
|
-
let
|
|
3944
|
-
for (
|
|
3945
|
-
if (w = y[
|
|
3943
|
+
let S, w;
|
|
3944
|
+
for (S = 0; S < y.length; S++)
|
|
3945
|
+
if (w = y[S], !(0 <= w && w <= 255))
|
|
3946
3946
|
throw new Error("ipaddr: ipv4 octet should fit in 8 bits");
|
|
3947
3947
|
this.octets = y;
|
|
3948
3948
|
}
|
|
@@ -3984,13 +3984,13 @@ var Wu = { exports: {} };
|
|
|
3984
3984
|
]
|
|
3985
3985
|
}, f.prototype.kind = function() {
|
|
3986
3986
|
return "ipv4";
|
|
3987
|
-
}, f.prototype.match = function(y,
|
|
3987
|
+
}, f.prototype.match = function(y, S) {
|
|
3988
3988
|
let w;
|
|
3989
|
-
if (
|
|
3989
|
+
if (S === void 0 && (w = y, y = w[0], S = w[1]), y.kind() !== "ipv4")
|
|
3990
3990
|
throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");
|
|
3991
|
-
return v(this.octets, y.octets, 8,
|
|
3991
|
+
return v(this.octets, y.octets, 8, S);
|
|
3992
3992
|
}, f.prototype.prefixLengthFromSubnetMask = function() {
|
|
3993
|
-
let y = 0,
|
|
3993
|
+
let y = 0, S = !1;
|
|
3994
3994
|
const w = {
|
|
3995
3995
|
0: 8,
|
|
3996
3996
|
128: 7,
|
|
@@ -4005,9 +4005,9 @@ var Wu = { exports: {} };
|
|
|
4005
4005
|
let E, k, O;
|
|
4006
4006
|
for (E = 3; E >= 0; E -= 1)
|
|
4007
4007
|
if (k = this.octets[E], k in w) {
|
|
4008
|
-
if (O = w[k],
|
|
4008
|
+
if (O = w[k], S && O !== 0)
|
|
4009
4009
|
return null;
|
|
4010
|
-
O !== 8 && (
|
|
4010
|
+
O !== 8 && (S = !0), y += O;
|
|
4011
4011
|
} else
|
|
4012
4012
|
return null;
|
|
4013
4013
|
return 32 - y;
|
|
@@ -4024,10 +4024,10 @@ var Wu = { exports: {} };
|
|
|
4024
4024
|
}, f;
|
|
4025
4025
|
}(), N.IPv4.broadcastAddressFromCIDR = function(f) {
|
|
4026
4026
|
try {
|
|
4027
|
-
const y = this.parseCIDR(f),
|
|
4027
|
+
const y = this.parseCIDR(f), S = y[0].toByteArray(), w = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [];
|
|
4028
4028
|
let k = 0;
|
|
4029
4029
|
for (; k < 4; )
|
|
4030
|
-
E.push(parseInt(
|
|
4030
|
+
E.push(parseInt(S[k], 10) | parseInt(w[k], 10) ^ 255), k++;
|
|
4031
4031
|
return new this(E);
|
|
4032
4032
|
} catch {
|
|
4033
4033
|
throw new Error("ipaddr: the address does not have IPv4 CIDR format");
|
|
@@ -4049,10 +4049,10 @@ var Wu = { exports: {} };
|
|
|
4049
4049
|
}, N.IPv4.isValidFourPartDecimal = function(f) {
|
|
4050
4050
|
return !!(N.IPv4.isValid(f) && f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
|
|
4051
4051
|
}, N.IPv4.networkAddressFromCIDR = function(f) {
|
|
4052
|
-
let y,
|
|
4052
|
+
let y, S, w, E, k;
|
|
4053
4053
|
try {
|
|
4054
|
-
for (y = this.parseCIDR(f), w = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [],
|
|
4055
|
-
E.push(parseInt(w[
|
|
4054
|
+
for (y = this.parseCIDR(f), w = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [], S = 0; S < 4; )
|
|
4055
|
+
E.push(parseInt(w[S], 10) & parseInt(k[S], 10)), S++;
|
|
4056
4056
|
return new this(E);
|
|
4057
4057
|
} catch {
|
|
4058
4058
|
throw new Error("ipaddr: the address does not have IPv4 CIDR format");
|
|
@@ -4065,9 +4065,9 @@ var Wu = { exports: {} };
|
|
|
4065
4065
|
}, N.IPv4.parseCIDR = function(f) {
|
|
4066
4066
|
let y;
|
|
4067
4067
|
if (y = f.match(/^(.+)\/(\d+)$/)) {
|
|
4068
|
-
const
|
|
4069
|
-
if (
|
|
4070
|
-
const w = [this.parse(y[1]),
|
|
4068
|
+
const S = parseInt(y[2]);
|
|
4069
|
+
if (S >= 0 && S <= 32) {
|
|
4070
|
+
const w = [this.parse(y[1]), S];
|
|
4071
4071
|
return Object.defineProperty(w, "toString", {
|
|
4072
4072
|
value: function() {
|
|
4073
4073
|
return this.join("/");
|
|
@@ -4077,12 +4077,12 @@ var Wu = { exports: {} };
|
|
|
4077
4077
|
}
|
|
4078
4078
|
throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range");
|
|
4079
4079
|
}, N.IPv4.parser = function(f) {
|
|
4080
|
-
let y,
|
|
4080
|
+
let y, S, w;
|
|
4081
4081
|
if (y = f.match(i.fourOctet))
|
|
4082
4082
|
return function() {
|
|
4083
4083
|
const E = y.slice(1, 6), k = [];
|
|
4084
4084
|
for (let O = 0; O < E.length; O++)
|
|
4085
|
-
|
|
4085
|
+
S = E[O], k.push(p(S));
|
|
4086
4086
|
return k;
|
|
4087
4087
|
}();
|
|
4088
4088
|
if (y = f.match(i.longValue)) {
|
|
@@ -4110,13 +4110,13 @@ var Wu = { exports: {} };
|
|
|
4110
4110
|
if (f = parseInt(f), f < 0 || f > 32)
|
|
4111
4111
|
throw new Error("ipaddr: invalid IPv4 prefix length");
|
|
4112
4112
|
const y = [0, 0, 0, 0];
|
|
4113
|
-
let
|
|
4113
|
+
let S = 0;
|
|
4114
4114
|
const w = Math.floor(f / 8);
|
|
4115
|
-
for (;
|
|
4116
|
-
y[
|
|
4115
|
+
for (; S < w; )
|
|
4116
|
+
y[S] = 255, S++;
|
|
4117
4117
|
return w < 4 && (y[w] = Math.pow(2, f % 8) - 1 << 8 - f % 8), new this(y);
|
|
4118
4118
|
}, N.IPv6 = function() {
|
|
4119
|
-
function f(y,
|
|
4119
|
+
function f(y, S) {
|
|
4120
4120
|
let w, E;
|
|
4121
4121
|
if (y.length === 16)
|
|
4122
4122
|
for (this.parts = [], w = 0; w <= 14; w += 2)
|
|
@@ -4128,7 +4128,7 @@ var Wu = { exports: {} };
|
|
|
4128
4128
|
for (w = 0; w < this.parts.length; w++)
|
|
4129
4129
|
if (E = this.parts[w], !(0 <= E && E <= 65535))
|
|
4130
4130
|
throw new Error("ipaddr: ipv6 part should fit in 16 bits");
|
|
4131
|
-
|
|
4131
|
+
S && (this.zoneId = S);
|
|
4132
4132
|
}
|
|
4133
4133
|
return f.prototype.SpecialRanges = {
|
|
4134
4134
|
// RFC4291, here and after
|
|
@@ -4169,13 +4169,13 @@ var Wu = { exports: {} };
|
|
|
4169
4169
|
return this.range() === "ipv4Mapped";
|
|
4170
4170
|
}, f.prototype.kind = function() {
|
|
4171
4171
|
return "ipv6";
|
|
4172
|
-
}, f.prototype.match = function(y,
|
|
4172
|
+
}, f.prototype.match = function(y, S) {
|
|
4173
4173
|
let w;
|
|
4174
|
-
if (
|
|
4174
|
+
if (S === void 0 && (w = y, y = w[0], S = w[1]), y.kind() !== "ipv6")
|
|
4175
4175
|
throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");
|
|
4176
|
-
return v(this.parts, y.parts, 16,
|
|
4176
|
+
return v(this.parts, y.parts, 16, S);
|
|
4177
4177
|
}, f.prototype.prefixLengthFromSubnetMask = function() {
|
|
4178
|
-
let y = 0,
|
|
4178
|
+
let y = 0, S = !1;
|
|
4179
4179
|
const w = {
|
|
4180
4180
|
0: 16,
|
|
4181
4181
|
32768: 15,
|
|
@@ -4198,9 +4198,9 @@ var Wu = { exports: {} };
|
|
|
4198
4198
|
let E, k;
|
|
4199
4199
|
for (let O = 7; O >= 0; O -= 1)
|
|
4200
4200
|
if (E = this.parts[O], E in w) {
|
|
4201
|
-
if (k = w[E],
|
|
4201
|
+
if (k = w[E], S && k !== 0)
|
|
4202
4202
|
return null;
|
|
4203
|
-
k !== 16 && (
|
|
4203
|
+
k !== 16 && (S = !0), y += k;
|
|
4204
4204
|
} else
|
|
4205
4205
|
return null;
|
|
4206
4206
|
return 128 - y;
|
|
@@ -4208,10 +4208,10 @@ var Wu = { exports: {} };
|
|
|
4208
4208
|
return N.subnetMatch(this, this.SpecialRanges);
|
|
4209
4209
|
}, f.prototype.toByteArray = function() {
|
|
4210
4210
|
let y;
|
|
4211
|
-
const
|
|
4211
|
+
const S = [], w = this.parts;
|
|
4212
4212
|
for (let E = 0; E < w.length; E++)
|
|
4213
|
-
y = w[E],
|
|
4214
|
-
return
|
|
4213
|
+
y = w[E], S.push(y >> 8), S.push(y & 255);
|
|
4214
|
+
return S;
|
|
4215
4215
|
}, f.prototype.toFixedLengthString = function() {
|
|
4216
4216
|
const y = (function() {
|
|
4217
4217
|
const w = [];
|
|
@@ -4219,13 +4219,13 @@ var Wu = { exports: {} };
|
|
|
4219
4219
|
w.push(z(this.parts[E].toString(16), 4));
|
|
4220
4220
|
return w;
|
|
4221
4221
|
}).call(this).join(":");
|
|
4222
|
-
let
|
|
4223
|
-
return this.zoneId && (
|
|
4222
|
+
let S = "";
|
|
4223
|
+
return this.zoneId && (S = `%${this.zoneId}`), y + S;
|
|
4224
4224
|
}, f.prototype.toIPv4Address = function() {
|
|
4225
4225
|
if (!this.isIPv4MappedAddress())
|
|
4226
4226
|
throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");
|
|
4227
|
-
const y = this.parts.slice(-2),
|
|
4228
|
-
return new N.IPv4([
|
|
4227
|
+
const y = this.parts.slice(-2), S = y[0], w = y[1];
|
|
4228
|
+
return new N.IPv4([S >> 8, S & 255, w >> 8, w & 255]);
|
|
4229
4229
|
}, f.prototype.toNormalizedString = function() {
|
|
4230
4230
|
const y = (function() {
|
|
4231
4231
|
const w = [];
|
|
@@ -4233,23 +4233,23 @@ var Wu = { exports: {} };
|
|
|
4233
4233
|
w.push(this.parts[E].toString(16));
|
|
4234
4234
|
return w;
|
|
4235
4235
|
}).call(this).join(":");
|
|
4236
|
-
let
|
|
4237
|
-
return this.zoneId && (
|
|
4236
|
+
let S = "";
|
|
4237
|
+
return this.zoneId && (S = `%${this.zoneId}`), y + S;
|
|
4238
4238
|
}, f.prototype.toRFC5952String = function() {
|
|
4239
|
-
const y = /((^|:)(0(:|$)){2,})/g,
|
|
4239
|
+
const y = /((^|:)(0(:|$)){2,})/g, S = this.toNormalizedString();
|
|
4240
4240
|
let w = 0, E = -1, k;
|
|
4241
|
-
for (; k = y.exec(
|
|
4241
|
+
for (; k = y.exec(S); )
|
|
4242
4242
|
k[0].length > E && (w = k.index, E = k[0].length);
|
|
4243
|
-
return E < 0 ?
|
|
4243
|
+
return E < 0 ? S : `${S.substring(0, w)}::${S.substring(w + E)}`;
|
|
4244
4244
|
}, f.prototype.toString = function() {
|
|
4245
4245
|
return this.toRFC5952String();
|
|
4246
4246
|
}, f;
|
|
4247
4247
|
}(), N.IPv6.broadcastAddressFromCIDR = function(f) {
|
|
4248
4248
|
try {
|
|
4249
|
-
const y = this.parseCIDR(f),
|
|
4249
|
+
const y = this.parseCIDR(f), S = y[0].toByteArray(), w = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [];
|
|
4250
4250
|
let k = 0;
|
|
4251
4251
|
for (; k < 16; )
|
|
4252
|
-
E.push(parseInt(
|
|
4252
|
+
E.push(parseInt(S[k], 10) | parseInt(w[k], 10) ^ 255), k++;
|
|
4253
4253
|
return new this(E);
|
|
4254
4254
|
} catch (y) {
|
|
4255
4255
|
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${y})`);
|
|
@@ -4274,10 +4274,10 @@ var Wu = { exports: {} };
|
|
|
4274
4274
|
return !1;
|
|
4275
4275
|
}
|
|
4276
4276
|
}, N.IPv6.networkAddressFromCIDR = function(f) {
|
|
4277
|
-
let y,
|
|
4277
|
+
let y, S, w, E, k;
|
|
4278
4278
|
try {
|
|
4279
|
-
for (y = this.parseCIDR(f), w = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [],
|
|
4280
|
-
E.push(parseInt(w[
|
|
4279
|
+
for (y = this.parseCIDR(f), w = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), E = [], S = 0; S < 16; )
|
|
4280
|
+
E.push(parseInt(w[S], 10) & parseInt(k[S], 10)), S++;
|
|
4281
4281
|
return new this(E);
|
|
4282
4282
|
} catch (O) {
|
|
4283
4283
|
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${O})`);
|
|
@@ -4288,16 +4288,16 @@ var Wu = { exports: {} };
|
|
|
4288
4288
|
throw new Error("ipaddr: string is not formatted like an IPv6 Address");
|
|
4289
4289
|
return new this(y.parts, y.zoneId);
|
|
4290
4290
|
}, N.IPv6.parseCIDR = function(f) {
|
|
4291
|
-
let y,
|
|
4292
|
-
if ((
|
|
4293
|
-
return w = [this.parse(
|
|
4291
|
+
let y, S, w;
|
|
4292
|
+
if ((S = f.match(/^(.+)\/(\d+)$/)) && (y = parseInt(S[2]), y >= 0 && y <= 128))
|
|
4293
|
+
return w = [this.parse(S[1]), y], Object.defineProperty(w, "toString", {
|
|
4294
4294
|
value: function() {
|
|
4295
4295
|
return this.join("/");
|
|
4296
4296
|
}
|
|
4297
4297
|
}), w;
|
|
4298
4298
|
throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
|
|
4299
4299
|
}, N.IPv6.parser = function(f) {
|
|
4300
|
-
let y,
|
|
4300
|
+
let y, S, w, E, k, O;
|
|
4301
4301
|
if (w = f.match(u.deprecatedTransitional))
|
|
4302
4302
|
return this.parser(`::ffff:${w[1]}`);
|
|
4303
4303
|
if (u.native.test(f))
|
|
@@ -4308,8 +4308,8 @@ var Wu = { exports: {} };
|
|
|
4308
4308
|
parseInt(w[3]),
|
|
4309
4309
|
parseInt(w[4]),
|
|
4310
4310
|
parseInt(w[5])
|
|
4311
|
-
],
|
|
4312
|
-
if (E = k[
|
|
4311
|
+
], S = 0; S < k.length; S++)
|
|
4312
|
+
if (E = k[S], !(0 <= E && E <= 255))
|
|
4313
4313
|
return null;
|
|
4314
4314
|
return y.parts.push(k[0] << 8 | k[1]), y.parts.push(k[2] << 8 | k[3]), {
|
|
4315
4315
|
parts: y.parts,
|
|
@@ -4321,10 +4321,10 @@ var Wu = { exports: {} };
|
|
|
4321
4321
|
if (f = parseInt(f), f < 0 || f > 128)
|
|
4322
4322
|
throw new Error("ipaddr: invalid IPv6 prefix length");
|
|
4323
4323
|
const y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
4324
|
-
let
|
|
4324
|
+
let S = 0;
|
|
4325
4325
|
const w = Math.floor(f / 8);
|
|
4326
|
-
for (;
|
|
4327
|
-
y[
|
|
4326
|
+
for (; S < w; )
|
|
4327
|
+
y[S] = 255, S++;
|
|
4328
4328
|
return w < 16 && (y[w] = Math.pow(2, f % 8) - 1 << 8 - f % 8), new this(y);
|
|
4329
4329
|
}, N.fromByteArray = function(f) {
|
|
4330
4330
|
const y = f.length;
|
|
@@ -4356,16 +4356,16 @@ var Wu = { exports: {} };
|
|
|
4356
4356
|
}, N.process = function(f) {
|
|
4357
4357
|
const y = this.parse(f);
|
|
4358
4358
|
return y.kind() === "ipv6" && y.isIPv4MappedAddress() ? y.toIPv4Address() : y;
|
|
4359
|
-
}, N.subnetMatch = function(f, y,
|
|
4359
|
+
}, N.subnetMatch = function(f, y, S) {
|
|
4360
4360
|
let w, E, k, O;
|
|
4361
|
-
|
|
4361
|
+
S == null && (S = "unicast");
|
|
4362
4362
|
for (E in y)
|
|
4363
4363
|
if (Object.prototype.hasOwnProperty.call(y, E)) {
|
|
4364
4364
|
for (k = y[E], k[0] && !(k[0] instanceof Array) && (k = [k]), w = 0; w < k.length; w++)
|
|
4365
4365
|
if (O = k[w], f.kind() === O[0].kind() && f.match.apply(f, O))
|
|
4366
4366
|
return E;
|
|
4367
4367
|
}
|
|
4368
|
-
return
|
|
4368
|
+
return S;
|
|
4369
4369
|
}, r.exports ? r.exports = N : e.ipaddr = N;
|
|
4370
4370
|
})(Ps);
|
|
4371
4371
|
})(Wu);
|
|
@@ -4419,7 +4419,7 @@ o([
|
|
|
4419
4419
|
Oe = o([
|
|
4420
4420
|
I({ type: x.Choice })
|
|
4421
4421
|
], Oe);
|
|
4422
|
-
let
|
|
4422
|
+
let Ar = class extends Oe {
|
|
4423
4423
|
constructor(e = {}) {
|
|
4424
4424
|
super(e), Object.assign(this, e);
|
|
4425
4425
|
}
|
|
@@ -4429,23 +4429,23 @@ let Sr = class extends Oe {
|
|
|
4429
4429
|
};
|
|
4430
4430
|
o([
|
|
4431
4431
|
c({ type: h.IA5String })
|
|
4432
|
-
],
|
|
4432
|
+
], Ar.prototype, "ia5String", void 0);
|
|
4433
4433
|
o([
|
|
4434
4434
|
c({ type: h.Any })
|
|
4435
|
-
],
|
|
4436
|
-
|
|
4435
|
+
], Ar.prototype, "anyValue", void 0);
|
|
4436
|
+
Ar = o([
|
|
4437
4437
|
I({ type: x.Choice })
|
|
4438
|
-
],
|
|
4438
|
+
], Ar);
|
|
4439
4439
|
class Fn {
|
|
4440
4440
|
constructor(e = {}) {
|
|
4441
|
-
this.type = "", this.value = new
|
|
4441
|
+
this.type = "", this.value = new Ar(), Object.assign(this, e);
|
|
4442
4442
|
}
|
|
4443
4443
|
}
|
|
4444
4444
|
o([
|
|
4445
4445
|
c({ type: h.ObjectIdentifier })
|
|
4446
4446
|
], Fn.prototype, "type", void 0);
|
|
4447
4447
|
o([
|
|
4448
|
-
c({ type:
|
|
4448
|
+
c({ type: Ar })
|
|
4449
4449
|
], Fn.prototype, "value", void 0);
|
|
4450
4450
|
let kr = $s = class extends fe {
|
|
4451
4451
|
constructor(e) {
|
|
@@ -4532,7 +4532,7 @@ o([
|
|
|
4532
4532
|
te = o([
|
|
4533
4533
|
I({ type: x.Choice })
|
|
4534
4534
|
], te);
|
|
4535
|
-
const ga = "1.3.6.1.5.5.7", qd = `${ga}.1`,
|
|
4535
|
+
const ga = "1.3.6.1.5.5.7", qd = `${ga}.1`, Rr = `${ga}.3`, Kn = `${ga}.48`, ic = `${Kn}.1`, nc = `${Kn}.2`, sc = `${Kn}.3`, oc = `${Kn}.5`, Kt = "2.5.29";
|
|
4536
4536
|
var Hs;
|
|
4537
4537
|
const Fs = `${qd}.1`;
|
|
4538
4538
|
class gi {
|
|
@@ -4774,30 +4774,30 @@ let lc = Ys = class extends wr {
|
|
|
4774
4774
|
lc = Ys = o([
|
|
4775
4775
|
I({ type: x.Sequence, itemType: Dr })
|
|
4776
4776
|
], lc);
|
|
4777
|
-
class
|
|
4777
|
+
class Ve {
|
|
4778
4778
|
constructor(e = {}) {
|
|
4779
|
-
this.onlyContainsUserCerts =
|
|
4779
|
+
this.onlyContainsUserCerts = Ve.ONLY, this.onlyContainsCACerts = Ve.ONLY, this.indirectCRL = Ve.ONLY, this.onlyContainsAttributeCerts = Ve.ONLY, Object.assign(this, e);
|
|
4780
4780
|
}
|
|
4781
4781
|
}
|
|
4782
|
-
|
|
4782
|
+
Ve.ONLY = !1;
|
|
4783
4783
|
o([
|
|
4784
4784
|
c({ type: rr, context: 0, optional: !0 })
|
|
4785
|
-
],
|
|
4785
|
+
], Ve.prototype, "distributionPoint", void 0);
|
|
4786
4786
|
o([
|
|
4787
|
-
c({ type: h.Boolean, context: 1, defaultValue:
|
|
4788
|
-
],
|
|
4787
|
+
c({ type: h.Boolean, context: 1, defaultValue: Ve.ONLY, implicit: !0 })
|
|
4788
|
+
], Ve.prototype, "onlyContainsUserCerts", void 0);
|
|
4789
4789
|
o([
|
|
4790
|
-
c({ type: h.Boolean, context: 2, defaultValue:
|
|
4791
|
-
],
|
|
4790
|
+
c({ type: h.Boolean, context: 2, defaultValue: Ve.ONLY, implicit: !0 })
|
|
4791
|
+
], Ve.prototype, "onlyContainsCACerts", void 0);
|
|
4792
4792
|
o([
|
|
4793
4793
|
c({ type: Zu, context: 3, optional: !0, implicit: !0 })
|
|
4794
|
-
],
|
|
4794
|
+
], Ve.prototype, "onlySomeReasons", void 0);
|
|
4795
4795
|
o([
|
|
4796
|
-
c({ type: h.Boolean, context: 4, defaultValue:
|
|
4797
|
-
],
|
|
4796
|
+
c({ type: h.Boolean, context: 4, defaultValue: Ve.ONLY, implicit: !0 })
|
|
4797
|
+
], Ve.prototype, "indirectCRL", void 0);
|
|
4798
4798
|
o([
|
|
4799
|
-
c({ type: h.Boolean, context: 5, defaultValue:
|
|
4800
|
-
],
|
|
4799
|
+
c({ type: h.Boolean, context: 5, defaultValue: Ve.ONLY, implicit: !0 })
|
|
4800
|
+
], Ve.prototype, "onlyContainsAttributeCerts", void 0);
|
|
4801
4801
|
var Gr;
|
|
4802
4802
|
(function(r) {
|
|
4803
4803
|
r[r.unspecified = 0] = "unspecified", r[r.keyCompromise = 1] = "keyCompromise", r[r.cACompromise = 2] = "cACompromise", r[r.affiliationChanged = 3] = "affiliationChanged", r[r.superseded = 4] = "superseded", r[r.cessationOfOperation = 5] = "cessationOfOperation", r[r.certificateHold = 6] = "certificateHold", r[r.removeFromCRL = 8] = "removeFromCRL", r[r.privilegeWithdrawn = 9] = "privilegeWithdrawn", r[r.aACompromise = 10] = "aACompromise";
|
|
@@ -4829,7 +4829,7 @@ let Yi = Qs = class extends fe {
|
|
|
4829
4829
|
Yi = Qs = o([
|
|
4830
4830
|
I({ type: x.Sequence, itemType: h.ObjectIdentifier })
|
|
4831
4831
|
], Yi);
|
|
4832
|
-
const zd = `${
|
|
4832
|
+
const zd = `${Rr}.1`, Gd = `${Rr}.2`, Wd = `${Rr}.3`, Jd = `${Rr}.4`, Yd = `${Rr}.8`, Zd = `${Rr}.9`;
|
|
4833
4833
|
let Xs = class {
|
|
4834
4834
|
constructor(e = new ArrayBuffer(0)) {
|
|
4835
4835
|
this.value = e;
|
|
@@ -4933,24 +4933,24 @@ o([
|
|
|
4933
4933
|
})
|
|
4934
4934
|
], tf.prototype, "inhibitPolicyMapping", void 0);
|
|
4935
4935
|
var io;
|
|
4936
|
-
class
|
|
4936
|
+
class Sa {
|
|
4937
4937
|
constructor(e = {}) {
|
|
4938
4938
|
this.issuerDomainPolicy = "", this.subjectDomainPolicy = "", Object.assign(this, e);
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
o([
|
|
4942
4942
|
c({ type: h.ObjectIdentifier })
|
|
4943
|
-
],
|
|
4943
|
+
], Sa.prototype, "issuerDomainPolicy", void 0);
|
|
4944
4944
|
o([
|
|
4945
4945
|
c({ type: h.ObjectIdentifier })
|
|
4946
|
-
],
|
|
4946
|
+
], Sa.prototype, "subjectDomainPolicy", void 0);
|
|
4947
4947
|
let fc = io = class extends fe {
|
|
4948
4948
|
constructor(e) {
|
|
4949
4949
|
super(e), Object.setPrototypeOf(this, io.prototype);
|
|
4950
4950
|
}
|
|
4951
4951
|
};
|
|
4952
4952
|
fc = io = o([
|
|
4953
|
-
I({ type: x.Sequence, itemType:
|
|
4953
|
+
I({ type: x.Sequence, itemType: Sa })
|
|
4954
4954
|
], fc);
|
|
4955
4955
|
var no;
|
|
4956
4956
|
const rf = `${Kt}.17`;
|
|
@@ -5231,20 +5231,20 @@ o([
|
|
|
5231
5231
|
o([
|
|
5232
5232
|
c({ type: lt, optional: !0, context: 0, repeated: "sequence" })
|
|
5233
5233
|
], Pt.prototype, "crlExtensions", void 0);
|
|
5234
|
-
let
|
|
5234
|
+
let Aa = class {
|
|
5235
5235
|
constructor(e = {}) {
|
|
5236
5236
|
this.tbsCertList = new Pt(), this.signatureAlgorithm = new D(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
|
|
5237
5237
|
}
|
|
5238
5238
|
};
|
|
5239
5239
|
o([
|
|
5240
5240
|
c({ type: Pt })
|
|
5241
|
-
],
|
|
5241
|
+
], Aa.prototype, "tbsCertList", void 0);
|
|
5242
5242
|
o([
|
|
5243
5243
|
c({ type: D })
|
|
5244
|
-
],
|
|
5244
|
+
], Aa.prototype, "signatureAlgorithm", void 0);
|
|
5245
5245
|
o([
|
|
5246
5246
|
c({ type: h.BitString })
|
|
5247
|
-
],
|
|
5247
|
+
], Aa.prototype, "signature", void 0);
|
|
5248
5248
|
class $r {
|
|
5249
5249
|
constructor(e = {}) {
|
|
5250
5250
|
this.issuer = new xe(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -5921,40 +5921,40 @@ o([
|
|
|
5921
5921
|
o([
|
|
5922
5922
|
c({ type: rs, optional: !0 })
|
|
5923
5923
|
], wi.prototype, "other", void 0);
|
|
5924
|
-
class
|
|
5924
|
+
class Si {
|
|
5925
5925
|
constructor(e = {}) {
|
|
5926
5926
|
this.version = Ot.v4, this.kekid = new wi(), this.keyEncryptionAlgorithm = new vt(), this.encryptedKey = new ae(), Object.assign(this, e);
|
|
5927
5927
|
}
|
|
5928
5928
|
}
|
|
5929
5929
|
o([
|
|
5930
5930
|
c({ type: h.Integer })
|
|
5931
|
-
],
|
|
5931
|
+
], Si.prototype, "version", void 0);
|
|
5932
5932
|
o([
|
|
5933
5933
|
c({ type: wi })
|
|
5934
|
-
],
|
|
5934
|
+
], Si.prototype, "kekid", void 0);
|
|
5935
5935
|
o([
|
|
5936
5936
|
c({ type: vt })
|
|
5937
|
-
],
|
|
5937
|
+
], Si.prototype, "keyEncryptionAlgorithm", void 0);
|
|
5938
5938
|
o([
|
|
5939
5939
|
c({ type: ae })
|
|
5940
|
-
],
|
|
5941
|
-
class
|
|
5940
|
+
], Si.prototype, "encryptedKey", void 0);
|
|
5941
|
+
class Ai {
|
|
5942
5942
|
constructor(e = {}) {
|
|
5943
5943
|
this.version = Ot.v0, this.keyEncryptionAlgorithm = new vt(), this.encryptedKey = new ae(), Object.assign(this, e);
|
|
5944
5944
|
}
|
|
5945
5945
|
}
|
|
5946
5946
|
o([
|
|
5947
5947
|
c({ type: h.Integer })
|
|
5948
|
-
],
|
|
5948
|
+
], Ai.prototype, "version", void 0);
|
|
5949
5949
|
o([
|
|
5950
5950
|
c({ type: lo, context: 0, optional: !0 })
|
|
5951
|
-
],
|
|
5951
|
+
], Ai.prototype, "keyDerivationAlgorithm", void 0);
|
|
5952
5952
|
o([
|
|
5953
5953
|
c({ type: vt })
|
|
5954
|
-
],
|
|
5954
|
+
], Ai.prototype, "keyEncryptionAlgorithm", void 0);
|
|
5955
5955
|
o([
|
|
5956
5956
|
c({ type: ae })
|
|
5957
|
-
],
|
|
5957
|
+
], Ai.prototype, "encryptedKey", void 0);
|
|
5958
5958
|
class Na {
|
|
5959
5959
|
constructor(e = {}) {
|
|
5960
5960
|
this.oriType = "", this.oriValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -5978,10 +5978,10 @@ o([
|
|
|
5978
5978
|
c({ type: Lr, context: 1, implicit: !0, optional: !0 })
|
|
5979
5979
|
], Ht.prototype, "kari", void 0);
|
|
5980
5980
|
o([
|
|
5981
|
-
c({ type:
|
|
5981
|
+
c({ type: Si, context: 2, implicit: !0, optional: !0 })
|
|
5982
5982
|
], Ht.prototype, "kekri", void 0);
|
|
5983
5983
|
o([
|
|
5984
|
-
c({ type:
|
|
5984
|
+
c({ type: Ai, context: 3, implicit: !0, optional: !0 })
|
|
5985
5985
|
], Ht.prototype, "pwri", void 0);
|
|
5986
5986
|
o([
|
|
5987
5987
|
c({ type: Na, context: 4, implicit: !0, optional: !0 })
|
|
@@ -5989,16 +5989,16 @@ o([
|
|
|
5989
5989
|
Ht = o([
|
|
5990
5990
|
I({ type: x.Choice })
|
|
5991
5991
|
], Ht);
|
|
5992
|
-
var
|
|
5993
|
-
let on =
|
|
5992
|
+
var So;
|
|
5993
|
+
let on = So = class extends fe {
|
|
5994
5994
|
constructor(e) {
|
|
5995
|
-
super(e), Object.setPrototypeOf(this,
|
|
5995
|
+
super(e), Object.setPrototypeOf(this, So.prototype);
|
|
5996
5996
|
}
|
|
5997
5997
|
};
|
|
5998
|
-
on =
|
|
5998
|
+
on = So = o([
|
|
5999
5999
|
I({ type: x.Set, itemType: Ht })
|
|
6000
6000
|
], on);
|
|
6001
|
-
var
|
|
6001
|
+
var Ao;
|
|
6002
6002
|
class ns {
|
|
6003
6003
|
constructor(e = {}) {
|
|
6004
6004
|
this.otherRevInfoFormat = "", this.otherRevInfo = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -6021,12 +6021,12 @@ o([
|
|
|
6021
6021
|
an = o([
|
|
6022
6022
|
I({ type: x.Choice })
|
|
6023
6023
|
], an);
|
|
6024
|
-
let cn =
|
|
6024
|
+
let cn = Ao = class extends fe {
|
|
6025
6025
|
constructor(e) {
|
|
6026
|
-
super(e), Object.setPrototypeOf(this,
|
|
6026
|
+
super(e), Object.setPrototypeOf(this, Ao.prototype);
|
|
6027
6027
|
}
|
|
6028
6028
|
};
|
|
6029
|
-
cn =
|
|
6029
|
+
cn = Ao = o([
|
|
6030
6030
|
I({ type: x.Set, itemType: an })
|
|
6031
6031
|
], cn);
|
|
6032
6032
|
class Ta {
|
|
@@ -6102,13 +6102,13 @@ o([
|
|
|
6102
6102
|
o([
|
|
6103
6103
|
c({ type: en })
|
|
6104
6104
|
], Hr.prototype, "signerInfos", void 0);
|
|
6105
|
-
const oi = "1.2.840.10045.2.1", _a = "1.2.840.10045.4.1", ff = "1.2.840.10045.4.3.1", ja = "1.2.840.10045.4.3.2", Pa = "1.2.840.10045.4.3.3",
|
|
6105
|
+
const oi = "1.2.840.10045.2.1", _a = "1.2.840.10045.4.1", ff = "1.2.840.10045.4.3.1", ja = "1.2.840.10045.4.3.2", Pa = "1.2.840.10045.4.3.3", Va = "1.2.840.10045.4.3.4", mc = "1.2.840.10045.3.1.7", bc = "1.3.132.0.34", wc = "1.3.132.0.35";
|
|
6106
6106
|
function xi(r) {
|
|
6107
6107
|
return new D({ algorithm: r });
|
|
6108
6108
|
}
|
|
6109
6109
|
const Xd = xi(_a);
|
|
6110
6110
|
xi(ff);
|
|
6111
|
-
const eh = xi(ja), th = xi(Pa), rh = xi(
|
|
6111
|
+
const eh = xi(ja), th = xi(Pa), rh = xi(Va);
|
|
6112
6112
|
let ai = class {
|
|
6113
6113
|
constructor(e = {}) {
|
|
6114
6114
|
Object.assign(this, e);
|
|
@@ -6232,10 +6232,10 @@ Ce(lh);
|
|
|
6232
6232
|
Ce(uh);
|
|
6233
6233
|
const yf = new D({
|
|
6234
6234
|
algorithm: os,
|
|
6235
|
-
parameters:
|
|
6235
|
+
parameters: V.serialize(or)
|
|
6236
6236
|
}), gf = new D({
|
|
6237
6237
|
algorithm: sh,
|
|
6238
|
-
parameters:
|
|
6238
|
+
parameters: V.serialize(qi.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
6239
6239
|
});
|
|
6240
6240
|
Ce(sr);
|
|
6241
6241
|
Ce(oh);
|
|
@@ -6251,7 +6251,7 @@ class as {
|
|
|
6251
6251
|
constructor(e = {}) {
|
|
6252
6252
|
this.hashAlgorithm = new D(or), this.maskGenAlgorithm = new D({
|
|
6253
6253
|
algorithm: os,
|
|
6254
|
-
parameters:
|
|
6254
|
+
parameters: V.serialize(or)
|
|
6255
6255
|
}), this.pSourceAlgorithm = new D(gf), Object.assign(this, e);
|
|
6256
6256
|
}
|
|
6257
6257
|
}
|
|
@@ -6266,13 +6266,13 @@ o([
|
|
|
6266
6266
|
], as.prototype, "pSourceAlgorithm", void 0);
|
|
6267
6267
|
new D({
|
|
6268
6268
|
algorithm: nh,
|
|
6269
|
-
parameters:
|
|
6269
|
+
parameters: V.serialize(new as())
|
|
6270
6270
|
});
|
|
6271
6271
|
class ar {
|
|
6272
6272
|
constructor(e = {}) {
|
|
6273
6273
|
this.hashAlgorithm = new D(or), this.maskGenAlgorithm = new D({
|
|
6274
6274
|
algorithm: os,
|
|
6275
|
-
parameters:
|
|
6275
|
+
parameters: V.serialize(or)
|
|
6276
6276
|
}), this.saltLength = 20, this.trailerField = 1, Object.assign(this, e);
|
|
6277
6277
|
}
|
|
6278
6278
|
}
|
|
@@ -6290,7 +6290,7 @@ o([
|
|
|
6290
6290
|
], ar.prototype, "trailerField", void 0);
|
|
6291
6291
|
new D({
|
|
6292
6292
|
algorithm: Jr,
|
|
6293
|
-
parameters:
|
|
6293
|
+
parameters: V.serialize(new ar())
|
|
6294
6294
|
});
|
|
6295
6295
|
class cs {
|
|
6296
6296
|
constructor(e = {}) {
|
|
@@ -6361,17 +6361,17 @@ o([
|
|
|
6361
6361
|
o([
|
|
6362
6362
|
c({ type: Oo, optional: !0 })
|
|
6363
6363
|
], wt.prototype, "otherPrimeInfos", void 0);
|
|
6364
|
-
class
|
|
6364
|
+
class Ra {
|
|
6365
6365
|
constructor(e = {}) {
|
|
6366
6366
|
this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), Object.assign(this, e);
|
|
6367
6367
|
}
|
|
6368
6368
|
}
|
|
6369
6369
|
o([
|
|
6370
6370
|
c({ type: h.Integer, converter: ge })
|
|
6371
|
-
],
|
|
6371
|
+
], Ra.prototype, "modulus", void 0);
|
|
6372
6372
|
o([
|
|
6373
6373
|
c({ type: h.Integer, converter: ge })
|
|
6374
|
-
],
|
|
6374
|
+
], Ra.prototype, "publicExponent", void 0);
|
|
6375
6375
|
var No;
|
|
6376
6376
|
(function(r) {
|
|
6377
6377
|
r[r.Transient = 0] = "Transient", r[r.Singleton = 1] = "Singleton", r[r.ResolutionScoped = 2] = "ResolutionScoped", r[r.ContainerScoped = 3] = "ContainerScoped";
|
|
@@ -6577,20 +6577,20 @@ function vr(r) {
|
|
|
6577
6577
|
function vh(r) {
|
|
6578
6578
|
return typeof r == "object" && "token" in r && "multiple" in r;
|
|
6579
6579
|
}
|
|
6580
|
-
function
|
|
6580
|
+
function Sc(r) {
|
|
6581
6581
|
return typeof r == "object" && "token" in r && "transform" in r;
|
|
6582
6582
|
}
|
|
6583
6583
|
function mh(r) {
|
|
6584
6584
|
return typeof r == "function" || r instanceof mf;
|
|
6585
6585
|
}
|
|
6586
|
-
function
|
|
6586
|
+
function Ri(r) {
|
|
6587
6587
|
return !!r.useToken;
|
|
6588
6588
|
}
|
|
6589
6589
|
function Di(r) {
|
|
6590
6590
|
return r.useValue != null;
|
|
6591
6591
|
}
|
|
6592
6592
|
function bh(r) {
|
|
6593
|
-
return vf(r) || Di(r) ||
|
|
6593
|
+
return vf(r) || Di(r) || Ri(r) || _o(r);
|
|
6594
6594
|
}
|
|
6595
6595
|
var $a = function() {
|
|
6596
6596
|
function r() {
|
|
@@ -6621,19 +6621,19 @@ var $a = function() {
|
|
|
6621
6621
|
return r !== null && r.apply(this, arguments) || this;
|
|
6622
6622
|
}
|
|
6623
6623
|
return e;
|
|
6624
|
-
}($a),
|
|
6624
|
+
}($a), Ac = /* @__PURE__ */ function() {
|
|
6625
6625
|
function r() {
|
|
6626
6626
|
this.scopedResolutions = /* @__PURE__ */ new Map();
|
|
6627
6627
|
}
|
|
6628
6628
|
return r;
|
|
6629
6629
|
}();
|
|
6630
|
-
function
|
|
6630
|
+
function Sh(r, e) {
|
|
6631
6631
|
if (r === null)
|
|
6632
6632
|
return "at position #" + e;
|
|
6633
6633
|
var t = r.split(",")[e].trim();
|
|
6634
6634
|
return '"' + t + '" at position #' + e;
|
|
6635
6635
|
}
|
|
6636
|
-
function
|
|
6636
|
+
function Ah(r, e, t) {
|
|
6637
6637
|
return t === void 0 && (t = " "), Gt([r], e.message.split(`
|
|
6638
6638
|
`).map(function(i) {
|
|
6639
6639
|
return t + i;
|
|
@@ -6641,8 +6641,8 @@ function Sh(r, e, t) {
|
|
|
6641
6641
|
`);
|
|
6642
6642
|
}
|
|
6643
6643
|
function kh(r, e, t) {
|
|
6644
|
-
var i = mn(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), n = i[1], s = n === void 0 ? null : n, a =
|
|
6645
|
-
return
|
|
6644
|
+
var i = mn(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), n = i[1], s = n === void 0 ? null : n, a = Sh(s, e);
|
|
6645
|
+
return Ah("Cannot inject the dependency " + a + ' of "' + r.name + '" constructor. Reason:', t);
|
|
6646
6646
|
}
|
|
6647
6647
|
function xh(r) {
|
|
6648
6648
|
if (typeof r.dispose != "function")
|
|
@@ -6674,14 +6674,14 @@ var Ch = function(r) {
|
|
|
6674
6674
|
return r.prototype.register = function(e, t, i) {
|
|
6675
6675
|
i === void 0 && (i = { lifecycle: Le.Transient }), this.ensureNotDisposed();
|
|
6676
6676
|
var n;
|
|
6677
|
-
if (bh(t) ? n = t : n = { useClass: t },
|
|
6677
|
+
if (bh(t) ? n = t : n = { useClass: t }, Ri(n))
|
|
6678
6678
|
for (var s = [e], a = n; a != null; ) {
|
|
6679
6679
|
var l = a.useToken;
|
|
6680
6680
|
if (s.includes(l))
|
|
6681
6681
|
throw new Error("Token registration cycle detected! " + Gt(s, [l]).join(" -> "));
|
|
6682
6682
|
s.push(l);
|
|
6683
6683
|
var u = this._registry.get(l);
|
|
6684
|
-
u &&
|
|
6684
|
+
u && Ri(u.provider) ? a = u.provider : a = null;
|
|
6685
6685
|
}
|
|
6686
6686
|
if ((i.lifecycle === Le.Singleton || i.lifecycle == Le.ContainerScoped || i.lifecycle == Le.ResolutionScoped) && (Di(n) || _o(n)))
|
|
6687
6687
|
throw new Error('Cannot use lifecycle "' + Le[i.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
@@ -6713,7 +6713,7 @@ var Ch = function(r) {
|
|
|
6713
6713
|
useClass: i
|
|
6714
6714
|
}, { lifecycle: Le.Singleton });
|
|
6715
6715
|
}, r.prototype.resolve = function(e, t) {
|
|
6716
|
-
t === void 0 && (t = new
|
|
6716
|
+
t === void 0 && (t = new Ac()), this.ensureNotDisposed();
|
|
6717
6717
|
var i = this.getRegistration(e);
|
|
6718
6718
|
if (!i && vr(e))
|
|
6719
6719
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
@@ -6770,10 +6770,10 @@ var Ch = function(r) {
|
|
|
6770
6770
|
if (this.ensureNotDisposed(), e.options.lifecycle === Le.ResolutionScoped && t.scopedResolutions.has(e))
|
|
6771
6771
|
return t.scopedResolutions.get(e);
|
|
6772
6772
|
var i = e.options.lifecycle === Le.Singleton, n = e.options.lifecycle === Le.ContainerScoped, s = i || n, a;
|
|
6773
|
-
return Di(e.provider) ? a = e.provider.useValue :
|
|
6773
|
+
return Di(e.provider) ? a = e.provider.useValue : Ri(e.provider) ? a = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : vf(e.provider) ? a = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : _o(e.provider) ? a = e.provider.useFactory(this) : a = this.construct(e.provider, t), e.options.lifecycle === Le.ResolutionScoped && t.scopedResolutions.set(e, a), a;
|
|
6774
6774
|
}, r.prototype.resolveAll = function(e, t) {
|
|
6775
6775
|
var i = this;
|
|
6776
|
-
t === void 0 && (t = new
|
|
6776
|
+
t === void 0 && (t = new Ac()), this.ensureNotDisposed();
|
|
6777
6777
|
var n = this.getAllRegistrations(e);
|
|
6778
6778
|
if (!n && vr(e))
|
|
6779
6779
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
@@ -6888,7 +6888,7 @@ var Ch = function(r) {
|
|
|
6888
6888
|
return function(n, s) {
|
|
6889
6889
|
var a, l, u;
|
|
6890
6890
|
try {
|
|
6891
|
-
return vh(n) ?
|
|
6891
|
+
return vh(n) ? Sc(n) ? n.multiple ? (a = i.resolve(n.transform)).transform.apply(a, Gt([i.resolveAll(n.token)], n.transformArgs)) : (l = i.resolve(n.transform)).transform.apply(l, Gt([i.resolve(n.token, e)], n.transformArgs)) : n.multiple ? i.resolveAll(n.token) : i.resolve(n.token, e) : Sc(n) ? (u = i.resolve(n.transform, e)).transform.apply(u, Gt([i.resolve(n.token, e)], n.transformArgs)) : i.resolve(n, e);
|
|
6892
6892
|
} catch (d) {
|
|
6893
6893
|
throw new Error(kh(t, s, d));
|
|
6894
6894
|
}
|
|
@@ -6945,47 +6945,47 @@ o([
|
|
|
6945
6945
|
o([
|
|
6946
6946
|
c({ type: h.Any, context: 0 })
|
|
6947
6947
|
], wf.prototype, "certValue", void 0);
|
|
6948
|
-
class
|
|
6948
|
+
class Sf {
|
|
6949
6949
|
constructor(e = {}) {
|
|
6950
6950
|
this.crlId = "", this.crltValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
6951
6951
|
}
|
|
6952
6952
|
}
|
|
6953
6953
|
o([
|
|
6954
6954
|
c({ type: h.ObjectIdentifier })
|
|
6955
|
-
],
|
|
6955
|
+
], Sf.prototype, "crlId", void 0);
|
|
6956
6956
|
o([
|
|
6957
6957
|
c({ type: h.Any, context: 0 })
|
|
6958
|
-
],
|
|
6959
|
-
class
|
|
6958
|
+
], Sf.prototype, "crltValue", void 0);
|
|
6959
|
+
class Af extends ae {
|
|
6960
6960
|
}
|
|
6961
6961
|
let ds = class {
|
|
6962
6962
|
constructor(e = {}) {
|
|
6963
|
-
this.encryptionAlgorithm = new D(), this.encryptedData = new
|
|
6963
|
+
this.encryptionAlgorithm = new D(), this.encryptedData = new Af(), Object.assign(this, e);
|
|
6964
6964
|
}
|
|
6965
6965
|
};
|
|
6966
6966
|
o([
|
|
6967
6967
|
c({ type: D })
|
|
6968
6968
|
], ds.prototype, "encryptionAlgorithm", void 0);
|
|
6969
6969
|
o([
|
|
6970
|
-
c({ type:
|
|
6970
|
+
c({ type: Af })
|
|
6971
6971
|
], ds.prototype, "encryptedData", void 0);
|
|
6972
|
-
var
|
|
6972
|
+
var Vo, Ro;
|
|
6973
6973
|
(function(r) {
|
|
6974
6974
|
r[r.v1 = 0] = "v1";
|
|
6975
|
-
})(
|
|
6975
|
+
})(Ro || (Ro = {}));
|
|
6976
6976
|
class kf extends ae {
|
|
6977
6977
|
}
|
|
6978
|
-
let Do =
|
|
6978
|
+
let Do = Vo = class extends fe {
|
|
6979
6979
|
constructor(e) {
|
|
6980
|
-
super(e), Object.setPrototypeOf(this,
|
|
6980
|
+
super(e), Object.setPrototypeOf(this, Vo.prototype);
|
|
6981
6981
|
}
|
|
6982
6982
|
};
|
|
6983
|
-
Do =
|
|
6983
|
+
Do = Vo = o([
|
|
6984
6984
|
I({ type: x.Sequence, itemType: Et })
|
|
6985
6985
|
], Do);
|
|
6986
6986
|
class Ci {
|
|
6987
6987
|
constructor(e = {}) {
|
|
6988
|
-
this.version =
|
|
6988
|
+
this.version = Ro.v1, this.privateKeyAlgorithm = new D(), this.privateKey = new kf(), Object.assign(this, e);
|
|
6989
6989
|
}
|
|
6990
6990
|
}
|
|
6991
6991
|
o([
|
|
@@ -7176,11 +7176,11 @@ let Pc = class extends wn {
|
|
|
7176
7176
|
Pc = o([
|
|
7177
7177
|
I({ type: x.Choice })
|
|
7178
7178
|
], Pc);
|
|
7179
|
-
let
|
|
7179
|
+
let Vc = class extends Oe {
|
|
7180
7180
|
};
|
|
7181
|
-
|
|
7181
|
+
Vc = o([
|
|
7182
7182
|
I({ type: x.Choice })
|
|
7183
|
-
],
|
|
7183
|
+
], Vc);
|
|
7184
7184
|
let qo = class {
|
|
7185
7185
|
constructor(e = "") {
|
|
7186
7186
|
this.value = e;
|
|
@@ -7195,11 +7195,11 @@ o([
|
|
|
7195
7195
|
qo = o([
|
|
7196
7196
|
I({ type: x.Choice })
|
|
7197
7197
|
], qo);
|
|
7198
|
-
let
|
|
7198
|
+
let Rc = class extends Ie {
|
|
7199
7199
|
};
|
|
7200
|
-
|
|
7200
|
+
Rc = o([
|
|
7201
7201
|
I({ type: x.Choice })
|
|
7202
|
-
],
|
|
7202
|
+
], Rc);
|
|
7203
7203
|
let zo = class {
|
|
7204
7204
|
constructor(e = 0) {
|
|
7205
7205
|
this.value = e;
|
|
@@ -7219,11 +7219,11 @@ let Dc = class extends bt {
|
|
|
7219
7219
|
Dc = o([
|
|
7220
7220
|
I({ type: x.Sequence })
|
|
7221
7221
|
], Dc);
|
|
7222
|
-
let
|
|
7222
|
+
let Sn = class extends Oe {
|
|
7223
7223
|
};
|
|
7224
|
-
|
|
7224
|
+
Sn = o([
|
|
7225
7225
|
I({ type: x.Choice })
|
|
7226
|
-
],
|
|
7226
|
+
], Sn);
|
|
7227
7227
|
let $c = Mo = class extends ir {
|
|
7228
7228
|
constructor(e) {
|
|
7229
7229
|
super(e), Object.setPrototypeOf(this, Mo.prototype);
|
|
@@ -7268,17 +7268,17 @@ Uc = Lo = o([
|
|
|
7268
7268
|
I({ type: x.Sequence, itemType: Wo })
|
|
7269
7269
|
], Uc);
|
|
7270
7270
|
var Jo;
|
|
7271
|
-
let
|
|
7271
|
+
let An = Jo = class extends fe {
|
|
7272
7272
|
constructor(e) {
|
|
7273
7273
|
super(e), Object.setPrototypeOf(this, Jo.prototype);
|
|
7274
7274
|
}
|
|
7275
7275
|
};
|
|
7276
|
-
|
|
7276
|
+
An = Jo = o([
|
|
7277
7277
|
I({ type: x.Sequence, itemType: Et })
|
|
7278
|
-
],
|
|
7278
|
+
], An);
|
|
7279
7279
|
class Fr {
|
|
7280
7280
|
constructor(e = {}) {
|
|
7281
|
-
this.version = 0, this.subject = new xe(), this.subjectPKInfo = new pt(), this.attributes = new
|
|
7281
|
+
this.version = 0, this.subject = new xe(), this.subjectPKInfo = new pt(), this.attributes = new An(), Object.assign(this, e);
|
|
7282
7282
|
}
|
|
7283
7283
|
}
|
|
7284
7284
|
o([
|
|
@@ -7291,7 +7291,7 @@ o([
|
|
|
7291
7291
|
c({ type: pt })
|
|
7292
7292
|
], Fr.prototype, "subjectPKInfo", void 0);
|
|
7293
7293
|
o([
|
|
7294
|
-
c({ type:
|
|
7294
|
+
c({ type: An, implicit: !0, context: 0 })
|
|
7295
7295
|
], Fr.prototype, "attributes", void 0);
|
|
7296
7296
|
class ci {
|
|
7297
7297
|
constructor(e = {}) {
|
|
@@ -7447,7 +7447,7 @@ let li = $i = class {
|
|
|
7447
7447
|
if (t)
|
|
7448
7448
|
return new D({
|
|
7449
7449
|
algorithm: oi,
|
|
7450
|
-
parameters:
|
|
7450
|
+
parameters: V.serialize(new Ft({ namedCurve: t }))
|
|
7451
7451
|
});
|
|
7452
7452
|
}
|
|
7453
7453
|
}
|
|
@@ -7461,12 +7461,12 @@ let li = $i = class {
|
|
|
7461
7461
|
return { name: ve, hash: { name: "SHA-256" } };
|
|
7462
7462
|
case Pa:
|
|
7463
7463
|
return { name: ve, hash: { name: "SHA-384" } };
|
|
7464
|
-
case
|
|
7464
|
+
case Va:
|
|
7465
7465
|
return { name: ve, hash: { name: "SHA-512" } };
|
|
7466
7466
|
case oi: {
|
|
7467
7467
|
if (!e.parameters)
|
|
7468
7468
|
throw new TypeError("Cannot get required parameters from EC algorithm");
|
|
7469
|
-
switch (
|
|
7469
|
+
switch (V.parse(e.parameters, Ft).namedCurve) {
|
|
7470
7470
|
case mc:
|
|
7471
7471
|
return { name: ve, namedCurve: "P-256" };
|
|
7472
7472
|
case $i.SECP256K1:
|
|
@@ -7563,7 +7563,7 @@ qt.items = {
|
|
|
7563
7563
|
[ff]: "ecdsaWithSHA224",
|
|
7564
7564
|
[ja]: "ecdsaWithSHA256",
|
|
7565
7565
|
[Pa]: "ecdsaWithSHA384",
|
|
7566
|
-
[
|
|
7566
|
+
[Va]: "ecdsaWithSHA512",
|
|
7567
7567
|
[zd]: "TLS WWW server authentication",
|
|
7568
7568
|
[Gd]: "TLS WWW client authentication",
|
|
7569
7569
|
[Wd]: "Code Signing",
|
|
@@ -7631,9 +7631,9 @@ class zt {
|
|
|
7631
7631
|
constructor(...e) {
|
|
7632
7632
|
if (e.length === 1) {
|
|
7633
7633
|
const t = e[0];
|
|
7634
|
-
this.rawData =
|
|
7634
|
+
this.rawData = V.serialize(t), this.onInit(t);
|
|
7635
7635
|
} else {
|
|
7636
|
-
const t =
|
|
7636
|
+
const t = V.parse(e[0], e[1]);
|
|
7637
7637
|
this.rawData = P.toArrayBuffer(e[0]), this.onInit(t);
|
|
7638
7638
|
}
|
|
7639
7639
|
}
|
|
@@ -7643,7 +7643,7 @@ class zt {
|
|
|
7643
7643
|
toString(e = "text") {
|
|
7644
7644
|
switch (e) {
|
|
7645
7645
|
case "asn":
|
|
7646
|
-
return
|
|
7646
|
+
return V.toString(this.rawData);
|
|
7647
7647
|
case "text":
|
|
7648
7648
|
return cr.serialize(this.toTextObject());
|
|
7649
7649
|
case "hex":
|
|
@@ -7671,7 +7671,7 @@ zt.NAME = "ASN";
|
|
|
7671
7671
|
class nt extends zt {
|
|
7672
7672
|
constructor(...e) {
|
|
7673
7673
|
let t;
|
|
7674
|
-
P.isBufferSource(e[0]) ? t = P.toArrayBuffer(e[0]) : t =
|
|
7674
|
+
P.isBufferSource(e[0]) ? t = P.toArrayBuffer(e[0]) : t = V.serialize(new lt({
|
|
7675
7675
|
extnID: e[0],
|
|
7676
7676
|
critical: e[1],
|
|
7677
7677
|
extnValue: new ae(P.toArrayBuffer(e[2]))
|
|
@@ -7745,7 +7745,7 @@ class Dt {
|
|
|
7745
7745
|
}
|
|
7746
7746
|
Of = Symbol.toStringTag;
|
|
7747
7747
|
Dt.DEFAULT = "default";
|
|
7748
|
-
const
|
|
7748
|
+
const Re = new Dt(), Th = /^[0-2](?:\.[1-9][0-9]*)+$/;
|
|
7749
7749
|
function _h(r) {
|
|
7750
7750
|
return new RegExp(Th).test(r);
|
|
7751
7751
|
}
|
|
@@ -7801,7 +7801,7 @@ class Lt {
|
|
|
7801
7801
|
const n = t[i];
|
|
7802
7802
|
this.extraNames.register(i, n);
|
|
7803
7803
|
}
|
|
7804
|
-
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof xe ? this.asn = e : P.isBufferSource(e) ? this.asn =
|
|
7804
|
+
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof xe ? this.asn = e : P.isBufferSource(e) ? this.asn = V.parse(e, xe) : this.asn = this.fromJSON(e);
|
|
7805
7805
|
}
|
|
7806
7806
|
getField(e) {
|
|
7807
7807
|
const t = this.extraNames.findId(e) || Ke.findId(e), i = [];
|
|
@@ -7901,22 +7901,22 @@ class Lt {
|
|
|
7901
7901
|
`).replace(/\\0d/ig, "\r").replace(/\\0g/ig, " ").replace(/\\(.)/g, "$1");
|
|
7902
7902
|
}
|
|
7903
7903
|
toArrayBuffer() {
|
|
7904
|
-
return
|
|
7904
|
+
return V.serialize(this.asn);
|
|
7905
7905
|
}
|
|
7906
7906
|
async getThumbprint(...e) {
|
|
7907
7907
|
var t;
|
|
7908
7908
|
let i, n = "SHA-1";
|
|
7909
|
-
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (n = e[0] || n, i = e[1] ||
|
|
7909
|
+
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (n = e[0] || n, i = e[1] || Re.get()) : i = e[0] || Re.get(), await i.subtle.digest(n, this.toArrayBuffer());
|
|
7910
7910
|
}
|
|
7911
7911
|
}
|
|
7912
|
-
const Tf = "Cannot initialize GeneralName from ASN.1 data.", yl = `${Tf} Unsupported string format in use.`,
|
|
7912
|
+
const Tf = "Cannot initialize GeneralName from ASN.1 data.", yl = `${Tf} Unsupported string format in use.`, Vh = `${Tf} Value doesn't match to GUID regular expression.`, gl = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, vl = "1.3.6.1.4.1.311.25.1", ml = "1.3.6.1.4.1.311.20.2.3", Cs = "dns", Bs = "dn", Is = "email", Es = "ip", Os = "url", Ns = "guid", Ts = "upn", Oi = "id";
|
|
7913
7913
|
class $t extends zt {
|
|
7914
7914
|
constructor(...e) {
|
|
7915
7915
|
let t;
|
|
7916
7916
|
if (e.length === 2)
|
|
7917
7917
|
switch (e[0]) {
|
|
7918
7918
|
case Bs: {
|
|
7919
|
-
const i = new Lt(e[1]).toArrayBuffer(), n =
|
|
7919
|
+
const i = new Lt(e[1]).toArrayBuffer(), n = V.parse(i, xe);
|
|
7920
7920
|
t = new te({ directoryName: n });
|
|
7921
7921
|
break;
|
|
7922
7922
|
}
|
|
@@ -7934,7 +7934,7 @@ class $t extends zt {
|
|
|
7934
7934
|
t = new te({
|
|
7935
7935
|
otherName: new ri({
|
|
7936
7936
|
typeId: vl,
|
|
7937
|
-
value:
|
|
7937
|
+
value: V.serialize(new ae(F.FromHex(n)))
|
|
7938
7938
|
})
|
|
7939
7939
|
});
|
|
7940
7940
|
break;
|
|
@@ -7949,7 +7949,7 @@ class $t extends zt {
|
|
|
7949
7949
|
t = new te({
|
|
7950
7950
|
otherName: new ri({
|
|
7951
7951
|
typeId: ml,
|
|
7952
|
-
value:
|
|
7952
|
+
value: V.serialize(zu.toASN(e[1]))
|
|
7953
7953
|
})
|
|
7954
7954
|
});
|
|
7955
7955
|
break;
|
|
@@ -7960,7 +7960,7 @@ class $t extends zt {
|
|
|
7960
7960
|
default:
|
|
7961
7961
|
throw new Error("Cannot create GeneralName. Unsupported type of the name");
|
|
7962
7962
|
}
|
|
7963
|
-
else P.isBufferSource(e[0]) ? t =
|
|
7963
|
+
else P.isBufferSource(e[0]) ? t = V.parse(e[0], te) : t = e[0];
|
|
7964
7964
|
super(t);
|
|
7965
7965
|
}
|
|
7966
7966
|
onInit(e) {
|
|
@@ -7979,12 +7979,12 @@ class $t extends zt {
|
|
|
7979
7979
|
else if (e.otherName != null)
|
|
7980
7980
|
if (e.otherName.typeId === vl) {
|
|
7981
7981
|
this.type = Ns;
|
|
7982
|
-
const t =
|
|
7982
|
+
const t = V.parse(e.otherName.value, ae), i = new RegExp(gl, "i").exec(F.ToHex(t));
|
|
7983
7983
|
if (!i)
|
|
7984
|
-
throw new Error(
|
|
7984
|
+
throw new Error(Vh);
|
|
7985
7985
|
this.value = i.slice(1).map((n, s) => s < 3 ? F.ToHex(new Uint8Array(F.FromHex(n)).reverse()) : n).join("-");
|
|
7986
7986
|
} else if (e.otherName.typeId === ml)
|
|
7987
|
-
this.type = Ts, this.value =
|
|
7987
|
+
this.type = Ts, this.value = V.parse(e.otherName.value, Oe).toString();
|
|
7988
7988
|
else
|
|
7989
7989
|
throw new Error(yl);
|
|
7990
7990
|
else
|
|
@@ -8029,12 +8029,12 @@ class ui extends zt {
|
|
|
8029
8029
|
if (n instanceof te)
|
|
8030
8030
|
i.push(n);
|
|
8031
8031
|
else {
|
|
8032
|
-
const s =
|
|
8032
|
+
const s = V.parse(new $t(n.type, n.value).rawData, te);
|
|
8033
8033
|
i.push(s);
|
|
8034
8034
|
}
|
|
8035
8035
|
t = new De(i);
|
|
8036
8036
|
} else if (P.isBufferSource(e))
|
|
8037
|
-
t =
|
|
8037
|
+
t = V.parse(e, De);
|
|
8038
8038
|
else
|
|
8039
8039
|
throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
|
|
8040
8040
|
super(t);
|
|
@@ -8066,7 +8066,7 @@ class ui extends zt {
|
|
|
8066
8066
|
}
|
|
8067
8067
|
}
|
|
8068
8068
|
ui.NAME = "GeneralNames";
|
|
8069
|
-
const Yr = "-{5}", fi = "\\n",
|
|
8069
|
+
const Yr = "-{5}", fi = "\\n", Rh = `[^${fi}]+`, Dh = `${Yr}BEGIN (${Rh}(?=${Yr}))${Yr}`, $h = `${Yr}END \\1${Yr}`, Pr = "\\n", Mh = `[^:${fi}]+`, Uh = `(?:[^${fi}]+${Pr}(?: +[^${fi}]+${Pr})*)`, Lh = "[a-zA-Z0-9=+/]+", Hh = `(?:${Lh}${Pr})+`, bl = `${Dh}${Pr}(?:((?:${Mh}: ${Uh})+))?${Pr}?(${Hh})${$h}`;
|
|
8070
8070
|
class Ye {
|
|
8071
8071
|
static isPem(e) {
|
|
8072
8072
|
return typeof e == "string" && new RegExp(bl, "g").test(e);
|
|
@@ -8189,7 +8189,7 @@ class Tt extends zt {
|
|
|
8189
8189
|
}
|
|
8190
8190
|
}
|
|
8191
8191
|
class gt extends Tt {
|
|
8192
|
-
static async create(e, t =
|
|
8192
|
+
static async create(e, t = Re.get()) {
|
|
8193
8193
|
if (e instanceof gt)
|
|
8194
8194
|
return e;
|
|
8195
8195
|
if (Dt.isCryptoKey(e)) {
|
|
@@ -8210,16 +8210,16 @@ class gt extends Tt {
|
|
|
8210
8210
|
}
|
|
8211
8211
|
async export(...e) {
|
|
8212
8212
|
let t, i = ["verify"], n = { hash: "SHA-256", ...this.algorithm };
|
|
8213
|
-
e.length > 1 ? (n = e[0] || n, i = e[1] || i, t = e[2] ||
|
|
8213
|
+
e.length > 1 ? (n = e[0] || n, i = e[1] || i, t = e[2] || Re.get()) : t = e[0] || Re.get();
|
|
8214
8214
|
let s = this.rawData;
|
|
8215
|
-
const a =
|
|
8215
|
+
const a = V.parse(this.rawData, pt);
|
|
8216
8216
|
return a.algorithm.algorithm === Jr && (s = Fh(a, s)), t.subtle.importKey("spki", s, n, !0, i);
|
|
8217
8217
|
}
|
|
8218
8218
|
onInit(e) {
|
|
8219
8219
|
const t = $e.resolve(jr), i = this.algorithm = t.toWebAlgorithm(e.algorithm);
|
|
8220
8220
|
switch (e.algorithm.algorithm) {
|
|
8221
8221
|
case sr: {
|
|
8222
|
-
const n =
|
|
8222
|
+
const n = V.parse(e.subjectPublicKey, Ra), s = P.toUint8Array(n.modulus);
|
|
8223
8223
|
i.publicExponent = P.toUint8Array(n.publicExponent), i.modulusLength = (s[0] ? s : s.slice(1)).byteLength << 3;
|
|
8224
8224
|
break;
|
|
8225
8225
|
}
|
|
@@ -8228,16 +8228,16 @@ class gt extends Tt {
|
|
|
8228
8228
|
async getThumbprint(...e) {
|
|
8229
8229
|
var t;
|
|
8230
8230
|
let i, n = "SHA-1";
|
|
8231
|
-
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (n = e[0] || n, i = e[1] ||
|
|
8231
|
+
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (n = e[0] || n, i = e[1] || Re.get()) : i = e[0] || Re.get(), await i.subtle.digest(n, this.rawData);
|
|
8232
8232
|
}
|
|
8233
8233
|
async getKeyIdentifier(...e) {
|
|
8234
8234
|
let t, i = "SHA-1";
|
|
8235
|
-
e.length === 1 ? typeof e[0] == "string" ? (i = e[0], t =
|
|
8236
|
-
const n =
|
|
8235
|
+
e.length === 1 ? typeof e[0] == "string" ? (i = e[0], t = Re.get()) : t = e[0] : e.length === 2 ? (i = e[0], t = e[1]) : t = Re.get();
|
|
8236
|
+
const n = V.parse(this.rawData, pt);
|
|
8237
8237
|
return await t.subtle.digest(i, n.subjectPublicKey);
|
|
8238
8238
|
}
|
|
8239
8239
|
toTextObject() {
|
|
8240
|
-
const e = this.toTextObjectEmpty(), t =
|
|
8240
|
+
const e = this.toTextObjectEmpty(), t = V.parse(this.rawData, pt);
|
|
8241
8241
|
switch (e.Algorithm = cr.serializeAlgorithm(t.algorithm), t.algorithm.algorithm) {
|
|
8242
8242
|
case oi:
|
|
8243
8243
|
e["EC Point"] = t.subjectPublicKey;
|
|
@@ -8253,10 +8253,10 @@ function Fh(r, e) {
|
|
|
8253
8253
|
return r.algorithm = new D({
|
|
8254
8254
|
algorithm: sr,
|
|
8255
8255
|
parameters: null
|
|
8256
|
-
}), e =
|
|
8256
|
+
}), e = V.serialize(r), e;
|
|
8257
8257
|
}
|
|
8258
8258
|
class di extends nt {
|
|
8259
|
-
static async create(e, t = !1, i =
|
|
8259
|
+
static async create(e, t = !1, i = Re.get()) {
|
|
8260
8260
|
if ("name" in e && "serialNumber" in e)
|
|
8261
8261
|
return new di(e, t);
|
|
8262
8262
|
const s = await (await gt.create(e, i)).getKeyIdentifier(i);
|
|
@@ -8267,25 +8267,25 @@ class di extends nt {
|
|
|
8267
8267
|
super(e[0]);
|
|
8268
8268
|
else if (typeof e[0] == "string") {
|
|
8269
8269
|
const t = new Yt({ keyIdentifier: new va(F.FromHex(e[0])) });
|
|
8270
|
-
super(Ks, e[1],
|
|
8270
|
+
super(Ks, e[1], V.serialize(t));
|
|
8271
8271
|
} else {
|
|
8272
|
-
const t = e[0], i = t.name instanceof ui ?
|
|
8272
|
+
const t = e[0], i = t.name instanceof ui ? V.parse(t.name.rawData, De) : t.name, n = new Yt({
|
|
8273
8273
|
authorityCertIssuer: i,
|
|
8274
8274
|
authorityCertSerialNumber: F.FromHex(t.serialNumber)
|
|
8275
8275
|
});
|
|
8276
|
-
super(Ks, e[1],
|
|
8276
|
+
super(Ks, e[1], V.serialize(n));
|
|
8277
8277
|
}
|
|
8278
8278
|
}
|
|
8279
8279
|
onInit(e) {
|
|
8280
8280
|
super.onInit(e);
|
|
8281
|
-
const t =
|
|
8281
|
+
const t = V.parse(e.extnValue, Yt);
|
|
8282
8282
|
t.keyIdentifier && (this.keyId = F.ToHex(t.keyIdentifier)), (t.authorityCertIssuer || t.authorityCertSerialNumber) && (this.certId = {
|
|
8283
8283
|
name: t.authorityCertIssuer || [],
|
|
8284
8284
|
serialNumber: t.authorityCertSerialNumber ? F.ToHex(t.authorityCertSerialNumber) : ""
|
|
8285
8285
|
});
|
|
8286
8286
|
}
|
|
8287
8287
|
toTextObject() {
|
|
8288
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8288
|
+
const e = this.toTextObjectWithoutValue(), t = V.parse(this.value, Yt);
|
|
8289
8289
|
return t.authorityCertIssuer && (e["Authority Issuer"] = new ui(t.authorityCertIssuer).toTextObject()), t.authorityCertSerialNumber && (e["Authority Serial Number"] = t.authorityCertSerialNumber), t.keyIdentifier && (e[""] = t.keyIdentifier), e;
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
@@ -8294,14 +8294,14 @@ class _f extends nt {
|
|
|
8294
8294
|
constructor(...e) {
|
|
8295
8295
|
if (P.isBufferSource(e[0])) {
|
|
8296
8296
|
super(e[0]);
|
|
8297
|
-
const t =
|
|
8297
|
+
const t = V.parse(this.value, zi);
|
|
8298
8298
|
this.ca = t.cA, this.pathLength = t.pathLenConstraint;
|
|
8299
8299
|
} else {
|
|
8300
8300
|
const t = new zi({
|
|
8301
8301
|
cA: e[0],
|
|
8302
8302
|
pathLenConstraint: e[1]
|
|
8303
8303
|
});
|
|
8304
|
-
super(Ju, e[2],
|
|
8304
|
+
super(Ju, e[2], V.serialize(t)), this.ca = e[0], this.pathLength = e[1];
|
|
8305
8305
|
}
|
|
8306
8306
|
}
|
|
8307
8307
|
toTextObject() {
|
|
@@ -8318,11 +8318,11 @@ class jf extends nt {
|
|
|
8318
8318
|
constructor(...e) {
|
|
8319
8319
|
if (P.isBufferSource(e[0])) {
|
|
8320
8320
|
super(e[0]);
|
|
8321
|
-
const t =
|
|
8321
|
+
const t = V.parse(this.value, Yi);
|
|
8322
8322
|
this.usages = t.map((i) => i);
|
|
8323
8323
|
} else {
|
|
8324
8324
|
const t = new Yi(e[0]);
|
|
8325
|
-
super(Qu, e[1],
|
|
8325
|
+
super(Qu, e[1], V.serialize(t)), this.usages = e[0];
|
|
8326
8326
|
}
|
|
8327
8327
|
}
|
|
8328
8328
|
toTextObject() {
|
|
@@ -8339,36 +8339,36 @@ class Ua extends nt {
|
|
|
8339
8339
|
constructor(...e) {
|
|
8340
8340
|
if (P.isBufferSource(e[0])) {
|
|
8341
8341
|
super(e[0]);
|
|
8342
|
-
const t =
|
|
8342
|
+
const t = V.parse(this.value, xs);
|
|
8343
8343
|
this.usages = t.toNumber();
|
|
8344
8344
|
} else {
|
|
8345
8345
|
const t = new xs(e[0]);
|
|
8346
|
-
super(Xu, e[1],
|
|
8346
|
+
super(Xu, e[1], V.serialize(t)), this.usages = e[0];
|
|
8347
8347
|
}
|
|
8348
8348
|
}
|
|
8349
8349
|
toTextObject() {
|
|
8350
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8350
|
+
const e = this.toTextObjectWithoutValue(), t = V.parse(this.value, xs);
|
|
8351
8351
|
return e[""] = t.toJSON().join(", "), e;
|
|
8352
8352
|
}
|
|
8353
8353
|
}
|
|
8354
8354
|
Ua.NAME = "Key Usages";
|
|
8355
8355
|
class ys extends nt {
|
|
8356
|
-
static async create(e, t = !1, i =
|
|
8356
|
+
static async create(e, t = !1, i = Re.get()) {
|
|
8357
8357
|
const s = await (await gt.create(e, i)).getKeyIdentifier(i);
|
|
8358
8358
|
return new ys(F.ToHex(s), t);
|
|
8359
8359
|
}
|
|
8360
8360
|
constructor(...e) {
|
|
8361
8361
|
if (P.isBufferSource(e[0])) {
|
|
8362
8362
|
super(e[0]);
|
|
8363
|
-
const t =
|
|
8363
|
+
const t = V.parse(this.value, Ut);
|
|
8364
8364
|
this.keyId = F.ToHex(t);
|
|
8365
8365
|
} else {
|
|
8366
8366
|
const t = typeof e[0] == "string" ? F.FromHex(e[0]) : e[0], i = new Ut(t);
|
|
8367
|
-
super(nf, e[1],
|
|
8367
|
+
super(nf, e[1], V.serialize(i)), this.keyId = F.ToHex(t);
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
8370
|
toTextObject() {
|
|
8371
|
-
const e = this.toTextObjectWithoutValue(), t =
|
|
8371
|
+
const e = this.toTextObjectWithoutValue(), t = V.parse(this.value, Ut);
|
|
8372
8372
|
return e[""] = t, e;
|
|
8373
8373
|
}
|
|
8374
8374
|
}
|
|
@@ -8379,7 +8379,7 @@ class La extends nt {
|
|
|
8379
8379
|
}
|
|
8380
8380
|
onInit(e) {
|
|
8381
8381
|
super.onInit(e);
|
|
8382
|
-
const t =
|
|
8382
|
+
const t = V.parse(e.extnValue, so);
|
|
8383
8383
|
this.names = new ui(t);
|
|
8384
8384
|
}
|
|
8385
8385
|
toTextObject() {
|
|
@@ -8405,13 +8405,13 @@ class Pf extends nt {
|
|
|
8405
8405
|
var t;
|
|
8406
8406
|
if (P.isBufferSource(e[0])) {
|
|
8407
8407
|
super(e[0]);
|
|
8408
|
-
const i =
|
|
8408
|
+
const i = V.parse(this.value, Wi);
|
|
8409
8409
|
this.policies = i.map((n) => n.policyIdentifier);
|
|
8410
8410
|
} else {
|
|
8411
8411
|
const i = e[0], n = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new Wi(i.map((a) => new qn({
|
|
8412
8412
|
policyIdentifier: a
|
|
8413
8413
|
})));
|
|
8414
|
-
super(Yu, n,
|
|
8414
|
+
super(Yu, n, V.serialize(s)), this.policies = i;
|
|
8415
8415
|
}
|
|
8416
8416
|
}
|
|
8417
8417
|
toTextObject() {
|
|
@@ -8421,7 +8421,7 @@ class Pf extends nt {
|
|
|
8421
8421
|
}
|
|
8422
8422
|
Pf.NAME = "Certificate Policies";
|
|
8423
8423
|
st.register(Yu, Pf);
|
|
8424
|
-
class
|
|
8424
|
+
class Vf extends nt {
|
|
8425
8425
|
constructor(...e) {
|
|
8426
8426
|
var t;
|
|
8427
8427
|
if (P.isBufferSource(e[0]))
|
|
@@ -8432,16 +8432,16 @@ class Rf extends nt {
|
|
|
8432
8432
|
fullName: [new te({ uniformResourceIdentifier: a })]
|
|
8433
8433
|
})
|
|
8434
8434
|
})), s = new wr(n);
|
|
8435
|
-
super(Js, e[1],
|
|
8435
|
+
super(Js, e[1], V.serialize(s));
|
|
8436
8436
|
} else {
|
|
8437
8437
|
const i = new wr(e[0]);
|
|
8438
|
-
super(Js, e[1],
|
|
8438
|
+
super(Js, e[1], V.serialize(i));
|
|
8439
8439
|
}
|
|
8440
8440
|
(t = this.distributionPoints) !== null && t !== void 0 || (this.distributionPoints = []);
|
|
8441
8441
|
}
|
|
8442
8442
|
onInit(e) {
|
|
8443
8443
|
super.onInit(e);
|
|
8444
|
-
const t =
|
|
8444
|
+
const t = V.parse(e.extnValue, wr);
|
|
8445
8445
|
this.distributionPoints = t;
|
|
8446
8446
|
}
|
|
8447
8447
|
toTextObject() {
|
|
@@ -8453,23 +8453,23 @@ class Rf extends nt {
|
|
|
8453
8453
|
}), e;
|
|
8454
8454
|
}
|
|
8455
8455
|
}
|
|
8456
|
-
|
|
8457
|
-
class
|
|
8456
|
+
Vf.NAME = "CRL Distribution Points";
|
|
8457
|
+
class Rf extends nt {
|
|
8458
8458
|
constructor(...e) {
|
|
8459
8459
|
var t, i, n, s;
|
|
8460
8460
|
if (P.isBufferSource(e[0]))
|
|
8461
8461
|
super(e[0]);
|
|
8462
8462
|
else if (e[0] instanceof mr) {
|
|
8463
8463
|
const a = new mr(e[0]);
|
|
8464
|
-
super(Fs, e[1],
|
|
8464
|
+
super(Fs, e[1], V.serialize(a));
|
|
8465
8465
|
} else {
|
|
8466
8466
|
const a = e[0], l = new mr();
|
|
8467
|
-
Ti(l, a, ic, "ocsp"), Ti(l, a, nc, "caIssuers"), Ti(l, a, sc, "timeStamping"), Ti(l, a, oc, "caRepository"), super(Fs, e[1],
|
|
8467
|
+
Ti(l, a, ic, "ocsp"), Ti(l, a, nc, "caIssuers"), Ti(l, a, sc, "timeStamping"), Ti(l, a, oc, "caRepository"), super(Fs, e[1], V.serialize(l));
|
|
8468
8468
|
}
|
|
8469
8469
|
(t = this.ocsp) !== null && t !== void 0 || (this.ocsp = []), (i = this.caIssuers) !== null && i !== void 0 || (this.caIssuers = []), (n = this.timeStamping) !== null && n !== void 0 || (this.timeStamping = []), (s = this.caRepository) !== null && s !== void 0 || (this.caRepository = []);
|
|
8470
8470
|
}
|
|
8471
8471
|
onInit(e) {
|
|
8472
|
-
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [],
|
|
8472
|
+
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], V.parse(e.extnValue, mr).forEach((i) => {
|
|
8473
8473
|
switch (i.accessMethod) {
|
|
8474
8474
|
case ic:
|
|
8475
8475
|
this.ocsp.push(new $t(i.accessLocation));
|
|
@@ -8491,7 +8491,7 @@ class Vf extends nt {
|
|
|
8491
8491
|
return this.ocsp.length && Ni(e, "OCSP", this.ocsp), this.caIssuers.length && Ni(e, "CA Issuers", this.caIssuers), this.timeStamping.length && Ni(e, "Time Stamping", this.timeStamping), this.caRepository.length && Ni(e, "CA Repository", this.caRepository), e;
|
|
8492
8492
|
}
|
|
8493
8493
|
}
|
|
8494
|
-
|
|
8494
|
+
Rf.NAME = "Authority Info Access";
|
|
8495
8495
|
function Ni(r, e, t) {
|
|
8496
8496
|
if (t.length === 1)
|
|
8497
8497
|
r[e] = t[0].toTextObject();
|
|
@@ -8509,7 +8509,7 @@ function Ti(r, e, t, i) {
|
|
|
8509
8509
|
n && (Array.isArray(n) ? n : [n]).forEach((a) => {
|
|
8510
8510
|
typeof a == "string" && (a = new $t("url", a)), r.push(new gi({
|
|
8511
8511
|
accessMethod: t,
|
|
8512
|
-
accessLocation:
|
|
8512
|
+
accessLocation: V.parse(a.rawData, te)
|
|
8513
8513
|
}));
|
|
8514
8514
|
});
|
|
8515
8515
|
}
|
|
@@ -8520,7 +8520,7 @@ class Kr extends zt {
|
|
|
8520
8520
|
t = P.toArrayBuffer(e[0]);
|
|
8521
8521
|
else {
|
|
8522
8522
|
const i = e[0], n = Array.isArray(e[1]) ? e[1].map((s) => P.toArrayBuffer(s)) : [];
|
|
8523
|
-
t =
|
|
8523
|
+
t = V.serialize(new Et({ type: i, values: n }));
|
|
8524
8524
|
}
|
|
8525
8525
|
super(t, Et);
|
|
8526
8526
|
}
|
|
@@ -8543,16 +8543,16 @@ class Df extends Kr {
|
|
|
8543
8543
|
if (P.isBufferSource(e[0]))
|
|
8544
8544
|
super(e[0]);
|
|
8545
8545
|
else {
|
|
8546
|
-
const i = new
|
|
8546
|
+
const i = new Sn({
|
|
8547
8547
|
printableString: e[0]
|
|
8548
8548
|
});
|
|
8549
|
-
super(Bf, [
|
|
8549
|
+
super(Bf, [V.serialize(i)]);
|
|
8550
8550
|
}
|
|
8551
8551
|
(t = this.password) !== null && t !== void 0 || (this.password = "");
|
|
8552
8552
|
}
|
|
8553
8553
|
onInit(e) {
|
|
8554
8554
|
if (super.onInit(e), this.values[0]) {
|
|
8555
|
-
const t =
|
|
8555
|
+
const t = V.parse(this.values[0], Sn);
|
|
8556
8556
|
this.password = t.toString();
|
|
8557
8557
|
}
|
|
8558
8558
|
}
|
|
@@ -8570,15 +8570,15 @@ class Ha extends Kr {
|
|
|
8570
8570
|
else {
|
|
8571
8571
|
const i = e[0], n = new ir();
|
|
8572
8572
|
for (const s of i)
|
|
8573
|
-
n.push(
|
|
8574
|
-
super(Ma, [
|
|
8573
|
+
n.push(V.parse(s.rawData, lt));
|
|
8574
|
+
super(Ma, [V.serialize(n)]);
|
|
8575
8575
|
}
|
|
8576
8576
|
(t = this.items) !== null && t !== void 0 || (this.items = []);
|
|
8577
8577
|
}
|
|
8578
8578
|
onInit(e) {
|
|
8579
8579
|
if (super.onInit(e), this.values[0]) {
|
|
8580
|
-
const t =
|
|
8581
|
-
this.items = t.map((i) => st.create(
|
|
8580
|
+
const t = V.parse(this.values[0], ir);
|
|
8581
|
+
this.items = t.map((i) => st.create(V.serialize(i)));
|
|
8582
8582
|
}
|
|
8583
8583
|
}
|
|
8584
8584
|
toTextObject() {
|
|
@@ -8616,7 +8616,7 @@ let Zo = Mi = class {
|
|
|
8616
8616
|
hashAlgorithm: i,
|
|
8617
8617
|
maskGenAlgorithm: new D({
|
|
8618
8618
|
algorithm: os,
|
|
8619
|
-
parameters:
|
|
8619
|
+
parameters: V.serialize(i)
|
|
8620
8620
|
}),
|
|
8621
8621
|
saltLength: t
|
|
8622
8622
|
}) : null;
|
|
@@ -8656,7 +8656,7 @@ let Zo = Mi = class {
|
|
|
8656
8656
|
const t = Mi.createPssParams(e.hash, e.saltLength);
|
|
8657
8657
|
if (!t)
|
|
8658
8658
|
throw new Error("Cannot create PSS parameters");
|
|
8659
|
-
return new D({ algorithm: Jr, parameters:
|
|
8659
|
+
return new D({ algorithm: Jr, parameters: V.serialize(t) });
|
|
8660
8660
|
} else
|
|
8661
8661
|
return new D({ algorithm: Jr, parameters: null });
|
|
8662
8662
|
}
|
|
@@ -8676,7 +8676,7 @@ let Zo = Mi = class {
|
|
|
8676
8676
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-512" } };
|
|
8677
8677
|
case Jr:
|
|
8678
8678
|
if (e.parameters) {
|
|
8679
|
-
const t =
|
|
8679
|
+
const t = V.parse(e.parameters, ar);
|
|
8680
8680
|
return {
|
|
8681
8681
|
name: "RSA-PSS",
|
|
8682
8682
|
hash: $e.resolve(jr).toWebAlgorithm(t.hashAlgorithm),
|
|
@@ -8745,13 +8745,13 @@ class tt {
|
|
|
8745
8745
|
toAsnSignature(e, t) {
|
|
8746
8746
|
if (e.name === "ECDSA") {
|
|
8747
8747
|
const i = e.namedCurve, n = tt.namedCurveSize.get(i) || tt.defaultNamedCurveSize, s = new un(), a = P.toUint8Array(t);
|
|
8748
|
-
return s.r = this.removePadding(a.slice(0, n), !0), s.s = this.removePadding(a.slice(n, n + n), !0),
|
|
8748
|
+
return s.r = this.removePadding(a.slice(0, n), !0), s.s = this.removePadding(a.slice(n, n + n), !0), V.serialize(s);
|
|
8749
8749
|
}
|
|
8750
8750
|
return null;
|
|
8751
8751
|
}
|
|
8752
8752
|
toWebSignature(e, t) {
|
|
8753
8753
|
if (e.name === "ECDSA") {
|
|
8754
|
-
const i =
|
|
8754
|
+
const i = V.parse(t, un), n = e.namedCurve, s = tt.namedCurveSize.get(n) || tt.defaultNamedCurveSize, a = this.addPadding(s, this.removePadding(i.r)), l = this.addPadding(s, this.removePadding(i.s));
|
|
8755
8755
|
return id(a, l);
|
|
8756
8756
|
}
|
|
8757
8757
|
return null;
|
|
@@ -8759,7 +8759,7 @@ class tt {
|
|
|
8759
8759
|
}
|
|
8760
8760
|
tt.namedCurveSize = /* @__PURE__ */ new Map();
|
|
8761
8761
|
tt.defaultNamedCurveSize = 32;
|
|
8762
|
-
const _s = "1.3.101.110",
|
|
8762
|
+
const _s = "1.3.101.110", Sl = "1.3.101.111", js = "1.3.101.112", Al = "1.3.101.113";
|
|
8763
8763
|
let Xo = class {
|
|
8764
8764
|
toAsnAlgorithm(e) {
|
|
8765
8765
|
let t = null;
|
|
@@ -8776,7 +8776,7 @@ let Xo = class {
|
|
|
8776
8776
|
t = js;
|
|
8777
8777
|
break;
|
|
8778
8778
|
case "ed448":
|
|
8779
|
-
t =
|
|
8779
|
+
t = Al;
|
|
8780
8780
|
break;
|
|
8781
8781
|
}
|
|
8782
8782
|
break;
|
|
@@ -8786,7 +8786,7 @@ let Xo = class {
|
|
|
8786
8786
|
t = _s;
|
|
8787
8787
|
break;
|
|
8788
8788
|
case "x448":
|
|
8789
|
-
t =
|
|
8789
|
+
t = Sl;
|
|
8790
8790
|
break;
|
|
8791
8791
|
}
|
|
8792
8792
|
}
|
|
@@ -8798,11 +8798,11 @@ let Xo = class {
|
|
|
8798
8798
|
switch (e.algorithm) {
|
|
8799
8799
|
case js:
|
|
8800
8800
|
return { name: "Ed25519" };
|
|
8801
|
-
case
|
|
8801
|
+
case Al:
|
|
8802
8802
|
return { name: "EdDSA", namedCurve: "Ed448" };
|
|
8803
8803
|
case _s:
|
|
8804
8804
|
return { name: "X25519" };
|
|
8805
|
-
case
|
|
8805
|
+
case Sl:
|
|
8806
8806
|
return { name: "ECDH-ES", namedCurve: "X448" };
|
|
8807
8807
|
}
|
|
8808
8808
|
return null;
|
|
@@ -8817,9 +8817,9 @@ class qh extends Tt {
|
|
|
8817
8817
|
Tt.isAsnEncoded(e) ? super(e, ci) : super(e), this.tag = Ye.CertificateRequestTag;
|
|
8818
8818
|
}
|
|
8819
8819
|
onInit(e) {
|
|
8820
|
-
this.tbs =
|
|
8820
|
+
this.tbs = V.serialize(e.certificationRequestInfo), this.publicKey = new gt(e.certificationRequestInfo.subjectPKInfo);
|
|
8821
8821
|
const t = $e.resolve(jr);
|
|
8822
|
-
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((n) => gs.create(
|
|
8822
|
+
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((n) => gs.create(V.serialize(n)));
|
|
8823
8823
|
const i = this.getAttribute(Ma);
|
|
8824
8824
|
this.extensions = [], i instanceof Ha && (this.extensions = i.items), this.subjectName = new Lt(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
|
|
8825
8825
|
}
|
|
@@ -8841,7 +8841,7 @@ class qh extends Tt {
|
|
|
8841
8841
|
getExtensions(e) {
|
|
8842
8842
|
return this.extensions.filter((t) => t.type === e);
|
|
8843
8843
|
}
|
|
8844
|
-
async verify(e =
|
|
8844
|
+
async verify(e = Re.get()) {
|
|
8845
8845
|
const t = { ...this.publicKey.algorithm, ...this.signatureAlgorithm }, i = await this.publicKey.export(t, ["verify"], e), n = $e.resolveAll(vs).reverse();
|
|
8846
8846
|
let s = null;
|
|
8847
8847
|
for (const l of n)
|
|
@@ -8852,7 +8852,7 @@ class qh extends Tt {
|
|
|
8852
8852
|
return await e.subtle.verify(this.signatureAlgorithm, i, s, this.tbs);
|
|
8853
8853
|
}
|
|
8854
8854
|
toTextObject() {
|
|
8855
|
-
const e = this.toTextObjectEmpty(), t =
|
|
8855
|
+
const e = this.toTextObjectEmpty(), t = V.parse(this.rawData, ci), i = t.certificationRequestInfo, n = new le("", {
|
|
8856
8856
|
Version: `${xr[i.version]} (${i.version})`,
|
|
8857
8857
|
Subject: this.subject,
|
|
8858
8858
|
"Subject Public Key Info": this.publicKey
|
|
@@ -8878,7 +8878,7 @@ class $f extends Tt {
|
|
|
8878
8878
|
}
|
|
8879
8879
|
onInit(e) {
|
|
8880
8880
|
const t = e.tbsCertificate;
|
|
8881
|
-
this.tbs =
|
|
8881
|
+
this.tbs = V.serialize(t), this.serialNumber = F.ToHex(t.serialNumber), this.subjectName = new Lt(t.subject), this.subject = new Lt(t.subject).toString(), this.issuerName = new Lt(t.issuer), this.issuer = this.issuerName.toString();
|
|
8882
8882
|
const i = $e.resolve(jr);
|
|
8883
8883
|
this.signatureAlgorithm = i.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
|
|
8884
8884
|
const n = t.validity.notBefore.utcTime || t.validity.notBefore.generalTime;
|
|
@@ -8888,7 +8888,7 @@ class $f extends Tt {
|
|
|
8888
8888
|
const s = t.validity.notAfter.utcTime || t.validity.notAfter.generalTime;
|
|
8889
8889
|
if (!s)
|
|
8890
8890
|
throw new Error("Cannot get 'notAfter' value");
|
|
8891
|
-
this.notAfter = s, this.extensions = [], t.extensions && (this.extensions = t.extensions.map((a) => st.create(
|
|
8891
|
+
this.notAfter = s, this.extensions = [], t.extensions && (this.extensions = t.extensions.map((a) => st.create(V.serialize(a)))), this.publicKey = new gt(t.subjectPublicKeyInfo);
|
|
8892
8892
|
}
|
|
8893
8893
|
getExtension(e) {
|
|
8894
8894
|
for (const t of this.extensions)
|
|
@@ -8902,7 +8902,7 @@ class $f extends Tt {
|
|
|
8902
8902
|
getExtensions(e) {
|
|
8903
8903
|
return this.extensions.filter((t) => typeof e == "string" ? t.type === e : t instanceof e);
|
|
8904
8904
|
}
|
|
8905
|
-
async verify(e = {}, t =
|
|
8905
|
+
async verify(e = {}, t = Re.get()) {
|
|
8906
8906
|
let i, n;
|
|
8907
8907
|
const s = e.publicKey;
|
|
8908
8908
|
try {
|
|
@@ -8937,13 +8937,13 @@ class $f extends Tt {
|
|
|
8937
8937
|
}
|
|
8938
8938
|
async getThumbprint(...e) {
|
|
8939
8939
|
let t, i = "SHA-1";
|
|
8940
|
-
return e[0] && (e[0].subtle ? t = e[0] : (i = e[0] || i, t = e[1])), t ?? (t =
|
|
8940
|
+
return e[0] && (e[0].subtle ? t = e[0] : (i = e[0] || i, t = e[1])), t ?? (t = Re.get()), await t.subtle.digest(i, this.rawData);
|
|
8941
8941
|
}
|
|
8942
|
-
async isSelfSigned(e =
|
|
8942
|
+
async isSelfSigned(e = Re.get()) {
|
|
8943
8943
|
return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
|
|
8944
8944
|
}
|
|
8945
8945
|
toTextObject() {
|
|
8946
|
-
const e = this.toTextObjectEmpty(), t =
|
|
8946
|
+
const e = this.toTextObjectEmpty(), t = V.parse(this.rawData, Cr), i = t.tbsCertificate, n = new le("", {
|
|
8947
8947
|
Version: `${xr[i.version]} (${i.version})`,
|
|
8948
8948
|
"Serial Number": i.serialNumber,
|
|
8949
8949
|
"Signature Algorithm": cr.serializeAlgorithm(i.signature),
|
|
@@ -8980,8 +8980,8 @@ st.register(Xu, Ua);
|
|
|
8980
8980
|
st.register(nf, ys);
|
|
8981
8981
|
st.register(Ks, di);
|
|
8982
8982
|
st.register(rf, La);
|
|
8983
|
-
st.register(Js,
|
|
8984
|
-
st.register(Fs,
|
|
8983
|
+
st.register(Js, Vf);
|
|
8984
|
+
st.register(Fs, Rf);
|
|
8985
8985
|
gs.register(Bf, Df);
|
|
8986
8986
|
gs.register(Ma, Ha);
|
|
8987
8987
|
$e.registerSingleton(vs, Kh);
|
|
@@ -9024,7 +9024,7 @@ function Mf() {
|
|
|
9024
9024
|
};
|
|
9025
9025
|
}
|
|
9026
9026
|
function zh() {
|
|
9027
|
-
const r = Mf(), e =
|
|
9027
|
+
const r = Mf(), e = Se({}), t = (n) => {
|
|
9028
9028
|
if (!(n.id in e.value))
|
|
9029
9029
|
try {
|
|
9030
9030
|
e.value[n.id] = r.parseMetaCertificateData(n.cert);
|
|
@@ -9341,7 +9341,7 @@ const ut = {
|
|
|
9341
9341
|
var Z, oe;
|
|
9342
9342
|
let L = `${i.config.apiBaseUrl}${Zr.list[i.config.app]}`;
|
|
9343
9343
|
return i.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((Z = i.config) == null ? void 0 : Z.controlPlaneId) || "") : i.config.app === "kongManager" && (L = L.replace(/\/{workspace}/gi, (oe = i.config) != null && oe.workspace ? `/${i.config.workspace}` : "")), L;
|
|
9344
|
-
}), y =
|
|
9344
|
+
}), y = Se(""), S = ce(() => {
|
|
9345
9345
|
const L = i.config.app === "konnect" || i.config.isExactMatch;
|
|
9346
9346
|
return L ? {
|
|
9347
9347
|
isExactMatch: L,
|
|
@@ -9358,7 +9358,7 @@ const ut = {
|
|
|
9358
9358
|
y.value = "";
|
|
9359
9359
|
}, X = () => {
|
|
9360
9360
|
k.value++;
|
|
9361
|
-
}, ie =
|
|
9361
|
+
}, ie = Se(null), M = (L, Z) => {
|
|
9362
9362
|
const oe = L.id;
|
|
9363
9363
|
if (!Z(oe)) {
|
|
9364
9364
|
t("copy:error", {
|
|
@@ -9389,7 +9389,7 @@ const ut = {
|
|
|
9389
9389
|
}, T = async (L) => {
|
|
9390
9390
|
var oe;
|
|
9391
9391
|
await ((oe = i.canRetrieve) == null ? void 0 : oe.call(i, L)) && l.push(i.config.getViewRoute(L.id));
|
|
9392
|
-
},
|
|
9392
|
+
}, Ae = (L) => ({
|
|
9393
9393
|
label: n("certificates.actions.view"),
|
|
9394
9394
|
to: i.config.getViewRoute(L)
|
|
9395
9395
|
}), de = (L) => ({
|
|
@@ -9401,7 +9401,7 @@ const ut = {
|
|
|
9401
9401
|
label: n("certificates.actions.addSni"),
|
|
9402
9402
|
to: i.config.getCreateSniRoute(L)
|
|
9403
9403
|
};
|
|
9404
|
-
}, ue =
|
|
9404
|
+
}, ue = Se(void 0), pe = Se(!1), Ue = Se(!1), se = Se(""), pr = El(i.config, f.value), { certificateDataCache: Vt, getCertificateData: St } = ut.useCertificate(), yr = (L) => {
|
|
9405
9405
|
ue.value = L, pe.value = !0;
|
|
9406
9406
|
}, gr = () => {
|
|
9407
9407
|
pe.value = !1;
|
|
@@ -9428,23 +9428,23 @@ const ut = {
|
|
|
9428
9428
|
}, (We = (oe = (Z = L.error) == null ? void 0 : Z.response) == null ? void 0 : oe.data) != null && We.message && (ie.value.message = L.error.response.data.message), t("error", L.error);
|
|
9429
9429
|
return;
|
|
9430
9430
|
}
|
|
9431
|
-
|
|
9431
|
+
Vt.value = {}, ie.value = null;
|
|
9432
9432
|
});
|
|
9433
|
-
const
|
|
9433
|
+
const Rt = Se({
|
|
9434
9434
|
ctaPath: i.config.createRoute,
|
|
9435
9435
|
ctaText: void 0,
|
|
9436
9436
|
message: `${n("certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
9437
9437
|
title: n("certificates.title")
|
|
9438
9438
|
});
|
|
9439
9439
|
return xl(async () => {
|
|
9440
|
-
await i.canCreate() && (
|
|
9440
|
+
await i.canCreate() && (Rt.value.title = n("certificates.list.empty_state.title"), Rt.value.ctaText = n("certificates.actions.create"));
|
|
9441
9441
|
}), (L, Z) => {
|
|
9442
9442
|
const oe = we("KButton"), We = we("KCopy"), Y = we("KDropdownItem"), Ne = we("KClipboardProvider");
|
|
9443
9443
|
return Q(), he("div", Zh, [
|
|
9444
9444
|
j(m(Nl), {
|
|
9445
9445
|
"cache-identifier": r.cacheIdentifier,
|
|
9446
9446
|
"disable-sorting": p.value,
|
|
9447
|
-
"empty-state-options":
|
|
9447
|
+
"empty-state-options": Rt.value,
|
|
9448
9448
|
"enable-entity-actions": "",
|
|
9449
9449
|
"error-message": ie.value,
|
|
9450
9450
|
fetcher: m(w),
|
|
@@ -9462,7 +9462,7 @@ const ut = {
|
|
|
9462
9462
|
j(m(Tl), {
|
|
9463
9463
|
modelValue: y.value,
|
|
9464
9464
|
"onUpdate:modelValue": Z[0] || (Z[0] = (J) => y.value = J),
|
|
9465
|
-
config:
|
|
9465
|
+
config: S.value
|
|
9466
9466
|
}, null, 8, ["modelValue", "config"])
|
|
9467
9467
|
]),
|
|
9468
9468
|
"toolbar-button": B(() => [
|
|
@@ -9471,7 +9471,7 @@ const ut = {
|
|
|
9471
9471
|
to: "#kong-ui-app-page-header-action-button"
|
|
9472
9472
|
}, [
|
|
9473
9473
|
Pe("div", Qh, [
|
|
9474
|
-
!m(d) && r.config.app === "konnect" ? (Q(), je(oe, {
|
|
9474
|
+
r.enableV2EmptyStates && !m(d) && r.config.app === "konnect" ? (Q(), je(oe, {
|
|
9475
9475
|
key: 0,
|
|
9476
9476
|
appearance: "secondary",
|
|
9477
9477
|
class: "open-learning-hub",
|
|
@@ -9509,19 +9509,19 @@ const ut = {
|
|
|
9509
9509
|
subject: B(({ row: J }) => {
|
|
9510
9510
|
var Te;
|
|
9511
9511
|
return [
|
|
9512
|
-
r.config.app === "konnect" ? (Q(), he("b", ep, ee((Te = J == null ? void 0 : J.metadata) != null && Te.subject ? J.metadata.subject : "-"), 1)) : (Q(), he("b", tp, ee(m(
|
|
9512
|
+
r.config.app === "konnect" ? (Q(), he("b", ep, ee((Te = J == null ? void 0 : J.metadata) != null && Te.subject ? J.metadata.subject : "-"), 1)) : (Q(), he("b", tp, ee(m(St)(J).schemaSubject || "-"), 1))
|
|
9513
9513
|
];
|
|
9514
9514
|
}),
|
|
9515
9515
|
expiry: B(({ row: J }) => {
|
|
9516
9516
|
var Te;
|
|
9517
9517
|
return [
|
|
9518
|
-
r.config.app === "konnect" ? (Q(), he("span", rp, ee((Te = J == null ? void 0 : J.metadata) != null && Te.expiry ? m(s)(J.metadata.expiry) : "-"), 1)) : (Q(), he("span", ip, ee(m(
|
|
9518
|
+
r.config.app === "konnect" ? (Q(), he("span", rp, ee((Te = J == null ? void 0 : J.metadata) != null && Te.expiry ? m(s)(J.metadata.expiry) : "-"), 1)) : (Q(), he("span", ip, ee(m(St)(J).schemaExpiry ? m(s)(m(St)(J).schemaExpiry) : "-"), 1))
|
|
9519
9519
|
];
|
|
9520
9520
|
}),
|
|
9521
9521
|
san: B(({ row: J }) => {
|
|
9522
9522
|
var Te;
|
|
9523
9523
|
return [
|
|
9524
|
-
r.config.app === "konnect" ? (Q(), he("span", np, ee((Te = J == null ? void 0 : J.metadata) != null && Te.dns_names ? `dns=${J.metadata.dns_names.join(", ")}` : "-"), 1)) : (Q(), he("span", sp, ee(m(
|
|
9524
|
+
r.config.app === "konnect" ? (Q(), he("span", np, ee((Te = J == null ? void 0 : J.metadata) != null && Te.dns_names ? `dns=${J.metadata.dns_names.join(", ")}` : "-"), 1)) : (Q(), he("span", sp, ee(m(St)(J).schemaSanNames || "-"), 1))
|
|
9525
9525
|
];
|
|
9526
9526
|
}),
|
|
9527
9527
|
cert: B(({ row: J }) => [
|
|
@@ -9573,7 +9573,7 @@ const ut = {
|
|
|
9573
9573
|
j(Y, {
|
|
9574
9574
|
"data-testid": "action-entity-view",
|
|
9575
9575
|
"has-divider": "",
|
|
9576
|
-
item:
|
|
9576
|
+
item: Ae(J.id)
|
|
9577
9577
|
}, null, 8, ["item"])
|
|
9578
9578
|
]),
|
|
9579
9579
|
_: 2
|
|
@@ -9651,7 +9651,7 @@ const ut = {
|
|
|
9651
9651
|
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
|
|
9652
9652
|
j(m(Pl), {
|
|
9653
9653
|
"action-pending": Ue.value,
|
|
9654
|
-
"entity-type": m(
|
|
9654
|
+
"entity-type": m(Vl).Certificate,
|
|
9655
9655
|
error: se.value,
|
|
9656
9656
|
title: m(n)("certificates.delete.title"),
|
|
9657
9657
|
visible: pe.value,
|
|
@@ -9680,7 +9680,7 @@ const ut = {
|
|
|
9680
9680
|
for (const [i, n] of e)
|
|
9681
9681
|
t[i] = n;
|
|
9682
9682
|
return t;
|
|
9683
|
-
}, jg = /* @__PURE__ */ hr(ap, [["__scopeId", "data-v-
|
|
9683
|
+
}, jg = /* @__PURE__ */ hr(ap, [["__scopeId", "data-v-e1169961"]]), cp = { class: "sni-field-container" }, lp = {
|
|
9684
9684
|
key: 1,
|
|
9685
9685
|
class: "sni-field-controls-container"
|
|
9686
9686
|
}, up = { key: 0 }, fp = /* @__PURE__ */ lr({
|
|
@@ -9701,7 +9701,7 @@ const ut = {
|
|
|
9701
9701
|
},
|
|
9702
9702
|
emits: ["add", "remove", "update:modelValue"],
|
|
9703
9703
|
setup(r, { emit: e }) {
|
|
9704
|
-
const t = r, i = e, { i18nT: n, i18n: { t: s } } = ut.useI18n(), a =
|
|
9704
|
+
const t = r, i = e, { i18nT: n, i18n: { t: s } } = ut.useI18n(), a = Se([]);
|
|
9705
9705
|
return Ui(t.modelValue, (l) => {
|
|
9706
9706
|
a.value = [...l];
|
|
9707
9707
|
}, { immediate: !0, deep: !0 }), Ui(a, (l) => {
|
|
@@ -9809,7 +9809,7 @@ const ut = {
|
|
|
9809
9809
|
emits: ["update", "error", "loading"],
|
|
9810
9810
|
setup(r, { emit: e }) {
|
|
9811
9811
|
var ie;
|
|
9812
|
-
const t = e, i = r, n = Cn(), { i18nT: s, i18n: { t: a } } = ut.useI18n(), { getMessageFromError: l } =
|
|
9812
|
+
const t = e, i = r, n = Cn(), { i18nT: s, i18n: { t: a } } = ut.useI18n(), { getMessageFromError: l } = Rl(), { axiosInstance: u } = kn((ie = i.config) == null ? void 0 : ie.axiosRequestConfig), d = ce(() => Zr.form[i.config.app].edit), v = ce(() => i.certificateId ? Wt.Edit : Wt.Create), p = Li({
|
|
9813
9813
|
fields: {
|
|
9814
9814
|
cert: "",
|
|
9815
9815
|
key: "",
|
|
@@ -9832,7 +9832,7 @@ const ut = {
|
|
|
9832
9832
|
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 = (C = M == null ? void 0 : M.snis) != null && C.length ? M.snis : [""], p.fields.tags = ((T = M == null ? void 0 : M.tags) == null ? void 0 : T.join(", ")) || "", Object.assign(z, p.fields);
|
|
9833
9833
|
}, y = () => {
|
|
9834
9834
|
n.push(i.config.cancelRoute);
|
|
9835
|
-
},
|
|
9835
|
+
}, S = () => {
|
|
9836
9836
|
p.fields.snis.push("");
|
|
9837
9837
|
}, w = (M) => {
|
|
9838
9838
|
p.fields.snis.splice(M, 1);
|
|
@@ -9855,11 +9855,11 @@ const ut = {
|
|
|
9855
9855
|
tags: (C = (M = p.fields.tags.split(",")) == null ? void 0 : M.map((T) => String(T || "").trim())) == null ? void 0 : C.filter((T) => T !== "")
|
|
9856
9856
|
};
|
|
9857
9857
|
}), X = async () => {
|
|
9858
|
-
var M, C, T,
|
|
9858
|
+
var M, C, T, Ae, de, Ge, ue, pe, Ue;
|
|
9859
9859
|
try {
|
|
9860
9860
|
p.isReadonly = !0;
|
|
9861
9861
|
let se;
|
|
9862
|
-
await u.post(E.value, O.value), v.value === "create" ? se = await u.post(k.value, O.value) : v.value === "edit" && (se = ((M = i.config) == null ? void 0 : M.app) === "konnect" ? await u.put(k.value, O.value) : await u.patch(k.value, O.value)), p.fields.cert = ((C = se == null ? void 0 : se.data) == null ? void 0 : C.cert) || "", p.fields.key = ((T = se == null ? void 0 : se.data) == null ? void 0 : T.key) || "", p.fields.certAlt = ((
|
|
9862
|
+
await u.post(E.value, O.value), v.value === "create" ? se = await u.post(k.value, O.value) : v.value === "edit" && (se = ((M = i.config) == null ? void 0 : M.app) === "konnect" ? await u.put(k.value, O.value) : await u.patch(k.value, O.value)), p.fields.cert = ((C = se == null ? void 0 : se.data) == null ? void 0 : C.cert) || "", p.fields.key = ((T = se == null ? void 0 : se.data) == null ? void 0 : T.key) || "", p.fields.certAlt = ((Ae = se == null ? void 0 : se.data) == null ? void 0 : Ae.cert_alt) || "", p.fields.keyAlt = ((de = se == null ? void 0 : se.data) == null ? void 0 : de.key_alt) || "", p.fields.snis = (ue = (Ge = se == null ? void 0 : se.data) == null ? void 0 : Ge.snis) != null && ue.length ? se.data.snis : [""], p.fields.tags = ((Ue = (pe = se == null ? void 0 : se.data) == null ? void 0 : pe.tags) == null ? void 0 : Ue.join(", ")) || "", Object.assign(z, p.fields), t("update", se == null ? void 0 : se.data);
|
|
9863
9863
|
} catch (se) {
|
|
9864
9864
|
p.errorMessage = l(se), t("error", se);
|
|
9865
9865
|
} finally {
|
|
@@ -9867,7 +9867,7 @@ const ut = {
|
|
|
9867
9867
|
}
|
|
9868
9868
|
};
|
|
9869
9869
|
return (M, C) => {
|
|
9870
|
-
const T = we("KTextArea"),
|
|
9870
|
+
const T = we("KTextArea"), Ae = we("KInput");
|
|
9871
9871
|
return Q(), he("div", hp, [
|
|
9872
9872
|
j(m(Dl), {
|
|
9873
9873
|
"can-submit": N.value,
|
|
@@ -9994,7 +9994,7 @@ const ut = {
|
|
|
9994
9994
|
"onUpdate:modelValue": C[4] || (C[4] = (de) => p.fields.snis = de),
|
|
9995
9995
|
"is-editing": v.value === m(Wt).Edit,
|
|
9996
9996
|
"sni-list-route": r.config.sniListRoute,
|
|
9997
|
-
onAdd:
|
|
9997
|
+
onAdd: S,
|
|
9998
9998
|
onRemove: C[5] || (C[5] = (de) => w(de))
|
|
9999
9999
|
}, null, 8, ["modelValue", "is-editing", "sni-list-route"])) : Ze("", !0)
|
|
10000
10000
|
]),
|
|
@@ -10005,7 +10005,7 @@ const ut = {
|
|
|
10005
10005
|
title: m(a)("certificates.form.sections.general.title")
|
|
10006
10006
|
}, {
|
|
10007
10007
|
default: B(() => [
|
|
10008
|
-
j(
|
|
10008
|
+
j(Ae, {
|
|
10009
10009
|
modelValue: p.fields.tags,
|
|
10010
10010
|
"onUpdate:modelValue": C[6] || (C[6] = (de) => p.fields.tags = de),
|
|
10011
10011
|
modelModifiers: { trim: !0 },
|
|
@@ -10030,10 +10030,10 @@ const ut = {
|
|
|
10030
10030
|
]);
|
|
10031
10031
|
};
|
|
10032
10032
|
}
|
|
10033
|
-
}), Pg = /* @__PURE__ */ hr(pp, [["__scopeId", "data-v-fc596de1"]]), Pi = "/v2/control-planes/{controlPlaneId}/core-entities",
|
|
10033
|
+
}), Pg = /* @__PURE__ */ hr(pp, [["__scopeId", "data-v-fc596de1"]]), Pi = "/v2/control-planes/{controlPlaneId}/core-entities", Vi = "/{workspace}", Qr = {
|
|
10034
10034
|
list: {
|
|
10035
10035
|
konnect: `${Pi}/ca_certificates`,
|
|
10036
|
-
kongManager: `${
|
|
10036
|
+
kongManager: `${Vi}/ca_certificates`
|
|
10037
10037
|
},
|
|
10038
10038
|
form: {
|
|
10039
10039
|
konnect: {
|
|
@@ -10042,9 +10042,9 @@ const ut = {
|
|
|
10042
10042
|
validate: `${Pi}/v1/schemas/json/ca-certificate/validate`
|
|
10043
10043
|
},
|
|
10044
10044
|
kongManager: {
|
|
10045
|
-
create: `${
|
|
10046
|
-
edit: `${
|
|
10047
|
-
validate: `${
|
|
10045
|
+
create: `${Vi}/ca_certificates`,
|
|
10046
|
+
edit: `${Vi}/ca_certificates/{id}`,
|
|
10047
|
+
validate: `${Vi}/schemas/ca_certificates/validate`
|
|
10048
10048
|
}
|
|
10049
10049
|
}
|
|
10050
10050
|
}, yp = { class: "kong-ui-ca-certificate-entity-config-card" }, gp = { key: 0 }, vp = /* @__PURE__ */ lr({
|
|
@@ -10074,7 +10074,7 @@ const ut = {
|
|
|
10074
10074
|
},
|
|
10075
10075
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
10076
10076
|
setup(r, { emit: e }) {
|
|
10077
|
-
const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = ut.useI18n(), { convertKeyToTitle: l } = $l(), { getPropValue: u } = Ml(), { getCertificateData: d } = ut.useCertificate(), v = ce(() => Qr.form[n.config.app].edit), p =
|
|
10077
|
+
const t = ["dns_names", "san_names", "subject"], i = e, n = r, { i18n: { t: s, formatUnixTimeStamp: a } } = ut.useI18n(), { convertKeyToTitle: l } = $l(), { getPropValue: u } = Ml(), { getCertificateData: d } = ut.useCertificate(), v = ce(() => Qr.form[n.config.app].edit), p = Se(), z = ce(() => {
|
|
10078
10078
|
if (p.value)
|
|
10079
10079
|
return d(p.value);
|
|
10080
10080
|
}), N = ce(() => {
|
|
@@ -10086,7 +10086,7 @@ const ut = {
|
|
|
10086
10086
|
}), y = ce(() => {
|
|
10087
10087
|
var k;
|
|
10088
10088
|
return ((k = z.value) == null ? void 0 : k.schemaKeyUsages) || [];
|
|
10089
|
-
}),
|
|
10089
|
+
}), S = (k, O) => {
|
|
10090
10090
|
const X = u("rowValue", O);
|
|
10091
10091
|
if (k === "expiry")
|
|
10092
10092
|
return f.value;
|
|
@@ -10096,7 +10096,7 @@ const ut = {
|
|
|
10096
10096
|
return X[k];
|
|
10097
10097
|
}, w = (k) => {
|
|
10098
10098
|
p.value = k, i("fetch:success", k);
|
|
10099
|
-
}, E =
|
|
10099
|
+
}, E = Se({
|
|
10100
10100
|
id: {},
|
|
10101
10101
|
updated_at: {},
|
|
10102
10102
|
created_at: {},
|
|
@@ -10114,7 +10114,7 @@ const ut = {
|
|
|
10114
10114
|
},
|
|
10115
10115
|
metadata: {
|
|
10116
10116
|
section: _e.Basic,
|
|
10117
|
-
type:
|
|
10117
|
+
type: At.Json,
|
|
10118
10118
|
order: 7
|
|
10119
10119
|
},
|
|
10120
10120
|
...n.config.app === "kongManager" && {
|
|
@@ -10176,8 +10176,8 @@ const ut = {
|
|
|
10176
10176
|
item: {
|
|
10177
10177
|
key: T,
|
|
10178
10178
|
label: m(l)(T),
|
|
10179
|
-
value:
|
|
10180
|
-
type: T === "key_usages" ? m(
|
|
10179
|
+
value: S(T, C),
|
|
10180
|
+
type: T === "key_usages" ? m(At).BadgeTag : m(At).Text
|
|
10181
10181
|
}
|
|
10182
10182
|
}, null, 8, ["data-testid", "item"]))), 128))
|
|
10183
10183
|
]),
|
|
@@ -10207,7 +10207,7 @@ const ut = {
|
|
|
10207
10207
|
]);
|
|
10208
10208
|
};
|
|
10209
10209
|
}
|
|
10210
|
-
}),
|
|
10210
|
+
}), Vg = /* @__PURE__ */ hr(vp, [["__scopeId", "data-v-1d42f61b"]]), mp = { class: "kong-ui-entities-ca-certificates-list" }, bp = { class: "button-row" }, wp = { class: "empty-state-icon-gateway" }, Sp = { key: 0 }, Ap = { key: 1 }, kp = { key: 0 }, xp = { key: 1 }, Cp = /* @__PURE__ */ lr({
|
|
10211
10211
|
__name: "CACertificateList",
|
|
10212
10212
|
props: {
|
|
10213
10213
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -10261,8 +10261,8 @@ const ut = {
|
|
|
10261
10261
|
},
|
|
10262
10262
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
|
|
10263
10263
|
setup(r, { emit: e }) {
|
|
10264
|
-
var
|
|
10265
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = ut.useI18n(), l = Cn(), { axiosInstance: u } = kn((
|
|
10264
|
+
var Rt;
|
|
10265
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = ut.useI18n(), l = Cn(), { axiosInstance: u } = kn((Rt = i.config) == null ? void 0 : Rt.axiosRequestConfig), { hideTableToolbar: d, handleStateChange: v } = Bl(() => y.value), p = ce(() => i.config.app !== "kongManager" || !!i.config.disableSorting), N = {
|
|
10266
10266
|
// the Issuer column is non-hidable
|
|
10267
10267
|
issuer: { label: n("ca-certificates.list.table_headers.issuer"), hidable: !1 },
|
|
10268
10268
|
expiry: { label: n("ca-certificates.list.table_headers.expiry") },
|
|
@@ -10271,7 +10271,7 @@ const ut = {
|
|
|
10271
10271
|
var L, Z;
|
|
10272
10272
|
let K = `${i.config.apiBaseUrl}${Qr.list[i.config.app]}`;
|
|
10273
10273
|
return i.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((L = i.config) == null ? void 0 : L.controlPlaneId) || "") : i.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (Z = i.config) != null && Z.workspace ? `/${i.config.workspace}` : "")), K;
|
|
10274
|
-
}), y =
|
|
10274
|
+
}), y = Se(""), S = ce(() => {
|
|
10275
10275
|
const K = i.config.app === "konnect" || i.config.isExactMatch;
|
|
10276
10276
|
return K ? {
|
|
10277
10277
|
isExactMatch: K,
|
|
@@ -10288,7 +10288,7 @@ const ut = {
|
|
|
10288
10288
|
y.value = "";
|
|
10289
10289
|
}, X = () => {
|
|
10290
10290
|
k.value++;
|
|
10291
|
-
}, ie =
|
|
10291
|
+
}, ie = Se(null), M = (K, L) => {
|
|
10292
10292
|
const Z = K.id;
|
|
10293
10293
|
if (!L(Z)) {
|
|
10294
10294
|
t("copy:error", {
|
|
@@ -10319,13 +10319,13 @@ const ut = {
|
|
|
10319
10319
|
}, T = async (K) => {
|
|
10320
10320
|
var Z;
|
|
10321
10321
|
await ((Z = i.canRetrieve) == null ? void 0 : Z.call(i, K)) && l.push(i.config.getViewRoute(K.id));
|
|
10322
|
-
},
|
|
10322
|
+
}, Ae = (K) => ({
|
|
10323
10323
|
label: n("ca-certificates.actions.view"),
|
|
10324
10324
|
to: i.config.getViewRoute(K)
|
|
10325
10325
|
}), de = (K) => ({
|
|
10326
10326
|
label: n("ca-certificates.actions.edit"),
|
|
10327
10327
|
to: i.config.getEditRoute(K)
|
|
10328
|
-
}), Ge =
|
|
10328
|
+
}), Ge = Se(void 0), ue = Se(!1), pe = Se(!1), Ue = Se(""), se = El(i.config, f.value), { certificateDataCache: pr, getCertificateData: Vt } = ut.useCertificate(), St = (K) => {
|
|
10329
10329
|
Ge.value = K, ue.value = !0;
|
|
10330
10330
|
}, yr = () => {
|
|
10331
10331
|
ue.value = !1;
|
|
@@ -10354,7 +10354,7 @@ const ut = {
|
|
|
10354
10354
|
}
|
|
10355
10355
|
pr.value = {}, ie.value = null;
|
|
10356
10356
|
});
|
|
10357
|
-
const Xe =
|
|
10357
|
+
const Xe = Se({
|
|
10358
10358
|
ctaPath: i.config.createRoute,
|
|
10359
10359
|
ctaText: void 0,
|
|
10360
10360
|
message: `${n("ca-certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
@@ -10386,7 +10386,7 @@ const ut = {
|
|
|
10386
10386
|
j(m(Tl), {
|
|
10387
10387
|
modelValue: y.value,
|
|
10388
10388
|
"onUpdate:modelValue": L[0] || (L[0] = (Y) => y.value = Y),
|
|
10389
|
-
config:
|
|
10389
|
+
config: S.value
|
|
10390
10390
|
}, null, 8, ["modelValue", "config"])
|
|
10391
10391
|
]),
|
|
10392
10392
|
"toolbar-button": B(() => [
|
|
@@ -10395,7 +10395,7 @@ const ut = {
|
|
|
10395
10395
|
to: "#kong-ui-app-page-header-action-button"
|
|
10396
10396
|
}, [
|
|
10397
10397
|
Pe("div", bp, [
|
|
10398
|
-
!m(d) && r.config.app === "konnect" ? (Q(), je(Z, {
|
|
10398
|
+
r.enableV2EmptyStates && !m(d) && r.config.app === "konnect" ? (Q(), je(Z, {
|
|
10399
10399
|
key: 0,
|
|
10400
10400
|
appearance: "secondary",
|
|
10401
10401
|
class: "open-learning-hub",
|
|
@@ -10433,13 +10433,13 @@ const ut = {
|
|
|
10433
10433
|
issuer: B(({ row: Y }) => {
|
|
10434
10434
|
var Ne;
|
|
10435
10435
|
return [
|
|
10436
|
-
r.config.app === "konnect" ? (Q(), he("b",
|
|
10436
|
+
r.config.app === "konnect" ? (Q(), he("b", Sp, ee((Ne = Y == null ? void 0 : Y.metadata) != null && Ne.issuer ? Y.metadata.issuer : "-"), 1)) : (Q(), he("b", Ap, ee(m(Vt)(Y).schemaIssuer || "-"), 1))
|
|
10437
10437
|
];
|
|
10438
10438
|
}),
|
|
10439
10439
|
expiry: B(({ row: Y }) => {
|
|
10440
10440
|
var Ne;
|
|
10441
10441
|
return [
|
|
10442
|
-
r.config.app === "konnect" ? (Q(), he("span", kp, ee((Ne = Y == null ? void 0 : Y.metadata) != null && Ne.expiry ? m(s)(Y.metadata.expiry) : "-"), 1)) : (Q(), he("span", xp, ee(m(
|
|
10442
|
+
r.config.app === "konnect" ? (Q(), he("span", kp, ee((Ne = Y == null ? void 0 : Y.metadata) != null && Ne.expiry ? m(s)(Y.metadata.expiry) : "-"), 1)) : (Q(), he("span", xp, ee(m(Vt)(Y).schemaExpiry ? m(s)(m(Vt)(Y).schemaExpiry) : "-"), 1))
|
|
10443
10443
|
];
|
|
10444
10444
|
}),
|
|
10445
10445
|
tags: B(({ row: Y }) => [
|
|
@@ -10483,7 +10483,7 @@ const ut = {
|
|
|
10483
10483
|
j(oe, {
|
|
10484
10484
|
"data-testid": "action-entity-view",
|
|
10485
10485
|
"has-divider": "",
|
|
10486
|
-
item:
|
|
10486
|
+
item: Ae(Y.id)
|
|
10487
10487
|
}, null, 8, ["item"])
|
|
10488
10488
|
]),
|
|
10489
10489
|
_: 2
|
|
@@ -10507,7 +10507,7 @@ const ut = {
|
|
|
10507
10507
|
danger: "",
|
|
10508
10508
|
"data-testid": "action-entity-delete",
|
|
10509
10509
|
"has-divider": "",
|
|
10510
|
-
onClick: (Ne) =>
|
|
10510
|
+
onClick: (Ne) => St(Y)
|
|
10511
10511
|
}, {
|
|
10512
10512
|
default: B(() => [
|
|
10513
10513
|
me(ee(m(n)("ca-certificates.actions.delete")), 1)
|
|
@@ -10549,7 +10549,7 @@ const ut = {
|
|
|
10549
10549
|
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
|
|
10550
10550
|
j(m(Pl), {
|
|
10551
10551
|
"action-pending": pe.value,
|
|
10552
|
-
"entity-type": m(
|
|
10552
|
+
"entity-type": m(Vl).CACertificate,
|
|
10553
10553
|
error: Ue.value,
|
|
10554
10554
|
title: m(n)("ca-certificates.delete.title"),
|
|
10555
10555
|
visible: ue.value,
|
|
@@ -10573,7 +10573,7 @@ const ut = {
|
|
|
10573
10573
|
]);
|
|
10574
10574
|
};
|
|
10575
10575
|
}
|
|
10576
|
-
}),
|
|
10576
|
+
}), Rg = /* @__PURE__ */ hr(Cp, [["__scopeId", "data-v-315989fa"]]), Bp = { class: "kong-ui-entities-ca-certificates-form" }, Ip = /* @__PURE__ */ lr({
|
|
10577
10577
|
__name: "CACertificateForm",
|
|
10578
10578
|
props: {
|
|
10579
10579
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -10592,7 +10592,7 @@ const ut = {
|
|
|
10592
10592
|
emits: ["update", "error", "loading"],
|
|
10593
10593
|
setup(r, { emit: e }) {
|
|
10594
10594
|
var k;
|
|
10595
|
-
const t = e, i = r, n = Cn(), { i18n: { t: s } } = ut.useI18n(), { getMessageFromError: a } =
|
|
10595
|
+
const t = e, i = r, n = Cn(), { i18n: { t: s } } = ut.useI18n(), { getMessageFromError: a } = Rl(), { axiosInstance: l } = kn((k = i.config) == null ? void 0 : k.axiosRequestConfig), u = ce(() => Qr.form[i.config.app].edit), d = ce(() => i.certificateId ? Wt.Edit : Wt.Create), v = Li({
|
|
10596
10596
|
fields: {
|
|
10597
10597
|
cert: "",
|
|
10598
10598
|
certDigest: "",
|
|
@@ -10613,7 +10613,7 @@ const ut = {
|
|
|
10613
10613
|
var X, ie;
|
|
10614
10614
|
let O = `${i.config.apiBaseUrl}${Qr.form[i.config.app].validate}`;
|
|
10615
10615
|
return i.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((X = i.config) == null ? void 0 : X.controlPlaneId) || "") : i.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ie = i.config) != null && ie.workspace ? `/${i.config.workspace}` : "")), O = O.replace(/{id}/gi, i.certificateId), O;
|
|
10616
|
-
}),
|
|
10616
|
+
}), S = ce(() => {
|
|
10617
10617
|
var X, ie;
|
|
10618
10618
|
let O = `${i.config.apiBaseUrl}${Qr.form[i.config.app][d.value]}`;
|
|
10619
10619
|
return i.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((X = i.config) == null ? void 0 : X.controlPlaneId) || "") : i.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ie = i.config) != null && ie.workspace ? `/${i.config.workspace}` : "")), O = O.replace(/{id}/gi, i.certificateId), O;
|
|
@@ -10629,7 +10629,7 @@ const ut = {
|
|
|
10629
10629
|
try {
|
|
10630
10630
|
v.isReadonly = !0;
|
|
10631
10631
|
let T;
|
|
10632
|
-
await l.post(y.value, w.value), d.value === "create" ? T = await l.post(
|
|
10632
|
+
await l.post(y.value, w.value), d.value === "create" ? T = await l.post(S.value, w.value) : d.value === "edit" && (T = ((O = i.config) == null ? void 0 : O.app) === "konnect" ? await l.put(S.value, w.value) : await l.patch(S.value, w.value)), v.fields.cert = ((X = T == null ? void 0 : T.data) == null ? void 0 : X.cert) || "", v.fields.certDigest = ((ie = T == null ? void 0 : T.data) == null ? void 0 : ie.cert_digest) || "", v.fields.tags = ((C = (M = T == null ? void 0 : T.data) == null ? void 0 : M.tags) == null ? void 0 : C.join(", ")) || "", Object.assign(p, v.fields), t("update", T == null ? void 0 : T.data);
|
|
10633
10633
|
} catch (T) {
|
|
10634
10634
|
v.errorMessage = a(T), t("error", T);
|
|
10635
10635
|
} finally {
|
|
@@ -10745,7 +10745,7 @@ const ut = {
|
|
|
10745
10745
|
},
|
|
10746
10746
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
10747
10747
|
setup(r, { emit: e }) {
|
|
10748
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = ut.useI18n(), { convertKeyToTitle: l } = $l(), { getPropValue: u } = Ml(), { getCertificateData: d } = ut.useCertificate(), v = ce(() => Zr.form[i.config.app].edit), p =
|
|
10748
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = ut.useI18n(), { convertKeyToTitle: l } = $l(), { getPropValue: u } = Ml(), { getCertificateData: d } = ut.useCertificate(), v = ce(() => Zr.form[i.config.app].edit), p = Se(), z = Se({
|
|
10749
10749
|
// basic fields
|
|
10750
10750
|
id: {},
|
|
10751
10751
|
cert: {
|
|
@@ -10753,15 +10753,15 @@ const ut = {
|
|
|
10753
10753
|
},
|
|
10754
10754
|
key: {
|
|
10755
10755
|
section: _e.Basic,
|
|
10756
|
-
type:
|
|
10756
|
+
type: At.Redacted
|
|
10757
10757
|
},
|
|
10758
10758
|
metadata: {
|
|
10759
10759
|
section: _e.Basic,
|
|
10760
|
-
type:
|
|
10760
|
+
type: At.Json
|
|
10761
10761
|
},
|
|
10762
10762
|
snis: {
|
|
10763
10763
|
section: _e.Basic,
|
|
10764
|
-
type:
|
|
10764
|
+
type: At.BadgeTag,
|
|
10765
10765
|
label: n("certificates.list.table_headers.snis")
|
|
10766
10766
|
},
|
|
10767
10767
|
updated_at: {},
|
|
@@ -10801,24 +10801,24 @@ const ut = {
|
|
|
10801
10801
|
},
|
|
10802
10802
|
key_alt: {
|
|
10803
10803
|
section: _e.Advanced,
|
|
10804
|
-
type:
|
|
10804
|
+
type: At.Redacted
|
|
10805
10805
|
}
|
|
10806
10806
|
}), N = (C) => {
|
|
10807
10807
|
p.value = C, t("fetch:success", C);
|
|
10808
10808
|
}, f = (C, T) => {
|
|
10809
|
-
const
|
|
10809
|
+
const Ae = u("rowValue", T);
|
|
10810
10810
|
if (C === "expiry")
|
|
10811
|
-
return
|
|
10811
|
+
return S.value;
|
|
10812
10812
|
if (C === "key_usages")
|
|
10813
10813
|
return O.value;
|
|
10814
10814
|
if (C === "san_names")
|
|
10815
10815
|
return E.value;
|
|
10816
|
-
if (
|
|
10817
|
-
return
|
|
10816
|
+
if (Ae)
|
|
10817
|
+
return Ae[C];
|
|
10818
10818
|
}, y = ce(() => {
|
|
10819
10819
|
if (p.value)
|
|
10820
10820
|
return d(p.value);
|
|
10821
|
-
}),
|
|
10821
|
+
}), S = ce(() => {
|
|
10822
10822
|
var C, T;
|
|
10823
10823
|
return (C = y.value) != null && C.schemaExpiry ? s((T = y.value) == null ? void 0 : T.schemaExpiry) : "";
|
|
10824
10824
|
}), w = ce(() => {
|
|
@@ -10840,11 +10840,11 @@ const ut = {
|
|
|
10840
10840
|
var C;
|
|
10841
10841
|
return !!((C = p == null ? void 0 : p.value) != null && C.cert_alt);
|
|
10842
10842
|
}), M = (C) => {
|
|
10843
|
-
var T,
|
|
10844
|
-
return C === "san_names" ? n("certificates.list.table_headers.san") : ((
|
|
10843
|
+
var T, Ae;
|
|
10844
|
+
return C === "san_names" ? n("certificates.list.table_headers.san") : ((Ae = (T = z.value) == null ? void 0 : T[C]) == null ? void 0 : Ae.label) || l(C);
|
|
10845
10845
|
};
|
|
10846
10846
|
return (C, T) => {
|
|
10847
|
-
const
|
|
10847
|
+
const Ae = we("KCodeBlock"), de = we("KLabel"), Ge = we("KBadge");
|
|
10848
10848
|
return Q(), he("div", Ep, [
|
|
10849
10849
|
j(m(Ul), {
|
|
10850
10850
|
config: r.config,
|
|
@@ -10869,7 +10869,7 @@ const ut = {
|
|
|
10869
10869
|
})
|
|
10870
10870
|
]),
|
|
10871
10871
|
cert: B((ue) => [
|
|
10872
|
-
m(u)("rowValue", ue) ? (Q(), je(
|
|
10872
|
+
m(u)("rowValue", ue) ? (Q(), je(Ae, {
|
|
10873
10873
|
key: 0,
|
|
10874
10874
|
id: `certificate-${r.config.entityId}-cert-codeblock`,
|
|
10875
10875
|
code: m(u)("rowValue", ue),
|
|
@@ -10903,12 +10903,12 @@ const ut = {
|
|
|
10903
10903
|
key: pe,
|
|
10904
10904
|
value: f(pe, ue),
|
|
10905
10905
|
label: M(pe),
|
|
10906
|
-
type: pe === "key_usages" || pe === "snis" || pe === "dns_names" ? m(
|
|
10906
|
+
type: pe === "key_usages" || pe === "snis" || pe === "dns_names" ? m(At).BadgeTag : m(At).Text
|
|
10907
10907
|
}
|
|
10908
10908
|
}, null, 8, ["item"]))), 128))
|
|
10909
10909
|
]),
|
|
10910
10910
|
expiry: B(() => [
|
|
10911
|
-
me(ee(
|
|
10911
|
+
me(ee(S.value || "–"), 1)
|
|
10912
10912
|
]),
|
|
10913
10913
|
issuer: B(() => [
|
|
10914
10914
|
me(ee(w.value || "–"), 1)
|
|
@@ -10969,7 +10969,7 @@ const ut = {
|
|
|
10969
10969
|
name: "cert_alt",
|
|
10970
10970
|
fn: B((ue) => [
|
|
10971
10971
|
T[4] || (T[4] = me(" > ")),
|
|
10972
|
-
m(u)("rowValue", ue) ? (Q(), je(
|
|
10972
|
+
m(u)("rowValue", ue) ? (Q(), je(Ae, {
|
|
10973
10973
|
key: 0,
|
|
10974
10974
|
id: `certificate-${r.config.entityId}-cert-alt-codeblock`,
|
|
10975
10975
|
code: m(u)("rowValue", ue),
|
|
@@ -10985,9 +10985,9 @@ const ut = {
|
|
|
10985
10985
|
}
|
|
10986
10986
|
}), $g = /* @__PURE__ */ hr(Np, [["__scopeId", "data-v-401d92d6"]]);
|
|
10987
10987
|
export {
|
|
10988
|
-
|
|
10988
|
+
Vg as CACertificateConfigCard,
|
|
10989
10989
|
Dg as CACertificateForm,
|
|
10990
|
-
|
|
10990
|
+
Rg as CACertificateList,
|
|
10991
10991
|
$g as CertificateConfigCard,
|
|
10992
10992
|
Pg as CertificateForm,
|
|
10993
10993
|
jg as CertificateList
|