authhero 0.223.0 → 0.225.0
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/authhero.cjs +31 -31
- package/dist/authhero.d.ts +11 -1
- package/dist/authhero.mjs +697 -685
- package/package.json +1 -1
package/dist/authhero.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var By = Object.defineProperty;
|
|
|
2
2
|
var Ly = (t, e, n) => e in t ? By(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var xe = (t, e, n) => Ly(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { z as o, OpenAPIHono as be, createRoute as U } from "@hono/zod-openapi";
|
|
5
|
-
const Ne = (t) => typeof t == "string",
|
|
5
|
+
const Ne = (t) => typeof t == "string", ds = () => {
|
|
6
6
|
let t, e;
|
|
7
7
|
const n = new Promise((r, i) => {
|
|
8
8
|
t = r, e = i;
|
|
@@ -12,7 +12,7 @@ const Ne = (t) => typeof t == "string", us = () => {
|
|
|
12
12
|
t.forEach((r) => {
|
|
13
13
|
e[r] && (n[r] = e[r]);
|
|
14
14
|
});
|
|
15
|
-
}, Uy = /###/g, Qf = (t) => t && t.indexOf("###") > -1 ? t.replace(Uy, ".") : t, eh = (t) => !t || Ne(t),
|
|
15
|
+
}, Uy = /###/g, Qf = (t) => t && t.indexOf("###") > -1 ? t.replace(Uy, ".") : t, eh = (t) => !t || Ne(t), xs = (t, e, n) => {
|
|
16
16
|
const r = Ne(e) ? e.split(".") : e;
|
|
17
17
|
let i = 0;
|
|
18
18
|
for (; i < r.length - 1; ) {
|
|
@@ -28,26 +28,26 @@ const Ne = (t) => typeof t == "string", us = () => {
|
|
|
28
28
|
const {
|
|
29
29
|
obj: r,
|
|
30
30
|
k: i
|
|
31
|
-
} =
|
|
31
|
+
} = xs(t, e, Object);
|
|
32
32
|
if (r !== void 0 || e.length === 1) {
|
|
33
33
|
r[i] = n;
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
let s = e[e.length - 1], a = e.slice(0, e.length - 1), l =
|
|
36
|
+
let s = e[e.length - 1], a = e.slice(0, e.length - 1), l = xs(t, a, Object);
|
|
37
37
|
for (; l.obj === void 0 && a.length; )
|
|
38
|
-
s = `${a[a.length - 1]}.${s}`, a = a.slice(0, a.length - 1), l =
|
|
38
|
+
s = `${a[a.length - 1]}.${s}`, a = a.slice(0, a.length - 1), l = xs(t, a, Object), l != null && l.obj && typeof l.obj[`${l.k}.${s}`] < "u" && (l.obj = void 0);
|
|
39
39
|
l.obj[`${l.k}.${s}`] = n;
|
|
40
40
|
}, My = (t, e, n, r) => {
|
|
41
41
|
const {
|
|
42
42
|
obj: i,
|
|
43
43
|
k: s
|
|
44
|
-
} =
|
|
44
|
+
} = xs(t, e, Object);
|
|
45
45
|
i[s] = i[s] || [], i[s].push(n);
|
|
46
46
|
}, ha = (t, e) => {
|
|
47
47
|
const {
|
|
48
48
|
obj: n,
|
|
49
49
|
k: r
|
|
50
|
-
} =
|
|
50
|
+
} = xs(t, e);
|
|
51
51
|
if (n && Object.prototype.hasOwnProperty.call(n, r))
|
|
52
52
|
return n[r];
|
|
53
53
|
}, qy = (t, e, n) => {
|
|
@@ -57,7 +57,7 @@ const Ne = (t) => typeof t == "string", us = () => {
|
|
|
57
57
|
for (const r in e)
|
|
58
58
|
r !== "__proto__" && r !== "constructor" && (r in t ? Ne(t[r]) || t[r] instanceof String || Ne(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : km(t[r], e[r], n) : t[r] = e[r]);
|
|
59
59
|
return t;
|
|
60
|
-
},
|
|
60
|
+
}, ui = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
61
61
|
var zy = {
|
|
62
62
|
"&": "&",
|
|
63
63
|
"<": "<",
|
|
@@ -702,7 +702,7 @@ class Yy {
|
|
|
702
702
|
maxReplaces: D,
|
|
703
703
|
alwaysFormat: A
|
|
704
704
|
} = e.interpolation;
|
|
705
|
-
this.escape = n !== void 0 ? n : Vy, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ?
|
|
705
|
+
this.escape = n !== void 0 ? n : Vy, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? ui(s) : a || "{{", this.suffix = l ? ui(l) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? ui(g) : b || ui("$t("), this.nestingSuffix = x ? ui(x) : C || ui(")"), this.nestingOptionsSeparator = O || ",", this.maxReplaces = D || 1e3, this.alwaysFormat = A !== void 0 ? A : !1, this.resetRegExp();
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
708
|
this.options && this.init(this.options);
|
|
@@ -816,7 +816,7 @@ const Zy = (t) => {
|
|
|
816
816
|
formatName: e,
|
|
817
817
|
formatOptions: n
|
|
818
818
|
};
|
|
819
|
-
},
|
|
819
|
+
}, di = (t) => {
|
|
820
820
|
const e = {};
|
|
821
821
|
return (n, r, i) => {
|
|
822
822
|
let s = i;
|
|
@@ -833,32 +833,32 @@ class Qy {
|
|
|
833
833
|
constructor() {
|
|
834
834
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
835
835
|
this.logger = Sn.create("formatter"), this.options = e, this.formats = {
|
|
836
|
-
number:
|
|
836
|
+
number: di((n, r) => {
|
|
837
837
|
const i = new Intl.NumberFormat(n, {
|
|
838
838
|
...r
|
|
839
839
|
});
|
|
840
840
|
return (s) => i.format(s);
|
|
841
841
|
}),
|
|
842
|
-
currency:
|
|
842
|
+
currency: di((n, r) => {
|
|
843
843
|
const i = new Intl.NumberFormat(n, {
|
|
844
844
|
...r,
|
|
845
845
|
style: "currency"
|
|
846
846
|
});
|
|
847
847
|
return (s) => i.format(s);
|
|
848
848
|
}),
|
|
849
|
-
datetime:
|
|
849
|
+
datetime: di((n, r) => {
|
|
850
850
|
const i = new Intl.DateTimeFormat(n, {
|
|
851
851
|
...r
|
|
852
852
|
});
|
|
853
853
|
return (s) => i.format(s);
|
|
854
854
|
}),
|
|
855
|
-
relativetime:
|
|
855
|
+
relativetime: di((n, r) => {
|
|
856
856
|
const i = new Intl.RelativeTimeFormat(n, {
|
|
857
857
|
...r
|
|
858
858
|
});
|
|
859
859
|
return (s) => i.format(s, r.range || "day");
|
|
860
860
|
}),
|
|
861
|
-
list:
|
|
861
|
+
list: di((n, r) => {
|
|
862
862
|
const i = new Intl.ListFormat(n, {
|
|
863
863
|
...r
|
|
864
864
|
});
|
|
@@ -876,7 +876,7 @@ class Qy {
|
|
|
876
876
|
this.formats[e.toLowerCase().trim()] = n;
|
|
877
877
|
}
|
|
878
878
|
addCached(e, n) {
|
|
879
|
-
this.formats[e.toLowerCase().trim()] =
|
|
879
|
+
this.formats[e.toLowerCase().trim()] = di(n);
|
|
880
880
|
}
|
|
881
881
|
format(e, n, r) {
|
|
882
882
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -1115,7 +1115,7 @@ const ch = () => ({
|
|
|
1115
1115
|
typeof t[n] == "function" && (t[n] = t[n].bind(t));
|
|
1116
1116
|
});
|
|
1117
1117
|
};
|
|
1118
|
-
class
|
|
1118
|
+
class Rs extends dc {
|
|
1119
1119
|
constructor() {
|
|
1120
1120
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1121
1121
|
if (super(), this.options = lh(e), this.services = {}, this.logger = Sn, this.modules = {
|
|
@@ -1179,7 +1179,7 @@ class Ds extends dc {
|
|
|
1179
1179
|
return e.store[p](...arguments), e;
|
|
1180
1180
|
};
|
|
1181
1181
|
});
|
|
1182
|
-
const u =
|
|
1182
|
+
const u = ds(), d = () => {
|
|
1183
1183
|
const p = (h, g) => {
|
|
1184
1184
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(g), r(h, g);
|
|
1185
1185
|
};
|
|
@@ -1207,7 +1207,7 @@ class Ds extends dc {
|
|
|
1207
1207
|
r(null);
|
|
1208
1208
|
}
|
|
1209
1209
|
reloadResources(e, n, r) {
|
|
1210
|
-
const i =
|
|
1210
|
+
const i = ds();
|
|
1211
1211
|
return typeof e == "function" && (r = e, e = void 0), typeof n == "function" && (r = n, n = void 0), e || (e = this.languages), n || (n = this.options.ns), r || (r = Mo), this.services.backendConnector.reload(e, n, (s) => {
|
|
1212
1212
|
i.resolve(), r(s);
|
|
1213
1213
|
}), i;
|
|
@@ -1230,7 +1230,7 @@ class Ds extends dc {
|
|
|
1230
1230
|
changeLanguage(e, n) {
|
|
1231
1231
|
var r = this;
|
|
1232
1232
|
this.isLanguageChangingTo = e;
|
|
1233
|
-
const i =
|
|
1233
|
+
const i = ds();
|
|
1234
1234
|
this.emit("languageChanging", e);
|
|
1235
1235
|
const s = (u) => {
|
|
1236
1236
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -1303,7 +1303,7 @@ class Ds extends dc {
|
|
|
1303
1303
|
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, e) && (!i || a(s, e)));
|
|
1304
1304
|
}
|
|
1305
1305
|
loadNamespaces(e, n) {
|
|
1306
|
-
const r =
|
|
1306
|
+
const r = ds();
|
|
1307
1307
|
return this.options.ns ? (Ne(e) && (e = [e]), e.forEach((i) => {
|
|
1308
1308
|
this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
|
|
1309
1309
|
}), this.loadResources((i) => {
|
|
@@ -1311,7 +1311,7 @@ class Ds extends dc {
|
|
|
1311
1311
|
}), r) : (n && n(), Promise.resolve());
|
|
1312
1312
|
}
|
|
1313
1313
|
loadLanguages(e, n) {
|
|
1314
|
-
const r =
|
|
1314
|
+
const r = ds();
|
|
1315
1315
|
Ne(e) && (e = [e]);
|
|
1316
1316
|
const i = this.options.preload || [], s = e.filter((a) => i.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
1317
1317
|
return s.length ? (this.options.preload = i.concat(s), this.loadResources((a) => {
|
|
@@ -1326,7 +1326,7 @@ class Ds extends dc {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
static createInstance() {
|
|
1328
1328
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1329
|
-
return new
|
|
1329
|
+
return new Rs(e, n);
|
|
1330
1330
|
}
|
|
1331
1331
|
cloneInstance() {
|
|
1332
1332
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mo;
|
|
@@ -1336,7 +1336,7 @@ class Ds extends dc {
|
|
|
1336
1336
|
...this.options,
|
|
1337
1337
|
...e,
|
|
1338
1338
|
isClone: !0
|
|
1339
|
-
}, s = new
|
|
1339
|
+
}, s = new Rs(i);
|
|
1340
1340
|
if ((e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((l) => {
|
|
1341
1341
|
s[l] = this[l];
|
|
1342
1342
|
}), s.services = {
|
|
@@ -1369,8 +1369,8 @@ class Ds extends dc {
|
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
const B =
|
|
1373
|
-
B.createInstance =
|
|
1372
|
+
const B = Rs.createInstance();
|
|
1373
|
+
B.createInstance = Rs.createInstance;
|
|
1374
1374
|
B.createInstance;
|
|
1375
1375
|
B.dir;
|
|
1376
1376
|
B.init;
|
|
@@ -1427,7 +1427,7 @@ const qt = o.object({
|
|
|
1427
1427
|
start: o.number(),
|
|
1428
1428
|
limit: o.number(),
|
|
1429
1429
|
length: o.number()
|
|
1430
|
-
}),
|
|
1430
|
+
}), Xi = o.object({
|
|
1431
1431
|
created_at: o.string(),
|
|
1432
1432
|
updated_at: o.string()
|
|
1433
1433
|
}), rw = o.object({
|
|
@@ -1474,7 +1474,7 @@ const qt = o.object({
|
|
|
1474
1474
|
is_social: o.boolean().optional()
|
|
1475
1475
|
}), Tm = o.object({
|
|
1476
1476
|
...gu.shape,
|
|
1477
|
-
...
|
|
1477
|
+
...Xi.shape,
|
|
1478
1478
|
user_id: o.string(),
|
|
1479
1479
|
is_social: o.boolean(),
|
|
1480
1480
|
email: o.string().optional(),
|
|
@@ -1660,7 +1660,7 @@ const mu = o.object({
|
|
|
1660
1660
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
1661
1661
|
}),
|
|
1662
1662
|
token_quota: o.record(o.any()).default({}).optional()
|
|
1663
|
-
}),
|
|
1663
|
+
}), $i = o.object({
|
|
1664
1664
|
created_at: o.string(),
|
|
1665
1665
|
updated_at: o.string(),
|
|
1666
1666
|
...mu.shape
|
|
@@ -1689,14 +1689,14 @@ const mu = o.object({
|
|
|
1689
1689
|
authorization_details_types: o.array(o.string()).optional().openapi({
|
|
1690
1690
|
description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
|
|
1691
1691
|
})
|
|
1692
|
-
}),
|
|
1692
|
+
}), xi = o.object({
|
|
1693
1693
|
id: o.string().openapi({
|
|
1694
1694
|
description: "ID of the client grant."
|
|
1695
1695
|
}),
|
|
1696
1696
|
..._u.shape,
|
|
1697
1697
|
created_at: o.string().optional(),
|
|
1698
1698
|
updated_at: o.string().optional()
|
|
1699
|
-
}), vG = o.array(
|
|
1699
|
+
}), vG = o.array(xi), so = o.object({
|
|
1700
1700
|
x: o.number(),
|
|
1701
1701
|
y: o.number()
|
|
1702
1702
|
});
|
|
@@ -1910,7 +1910,7 @@ const ya = o.object({
|
|
|
1910
1910
|
font: o.object({
|
|
1911
1911
|
url: o.string()
|
|
1912
1912
|
}).optional()
|
|
1913
|
-
}),
|
|
1913
|
+
}), As = o.object({
|
|
1914
1914
|
kid: o.string().optional(),
|
|
1915
1915
|
team_id: o.string().optional(),
|
|
1916
1916
|
realms: o.string().optional(),
|
|
@@ -1933,7 +1933,7 @@ const ya = o.object({
|
|
|
1933
1933
|
id: o.string().optional(),
|
|
1934
1934
|
name: o.string(),
|
|
1935
1935
|
strategy: o.string(),
|
|
1936
|
-
options:
|
|
1936
|
+
options: As.default({}),
|
|
1937
1937
|
enabled_clients: o.array(o.string()).default([]).optional(),
|
|
1938
1938
|
response_type: o.custom().optional(),
|
|
1939
1939
|
response_mode: o.custom().optional()
|
|
@@ -1952,15 +1952,15 @@ const ya = o.object({
|
|
|
1952
1952
|
secondary_color: o.string().optional(),
|
|
1953
1953
|
language: o.string().optional(),
|
|
1954
1954
|
id: o.string().optional()
|
|
1955
|
-
}),
|
|
1955
|
+
}), Es = o.object({
|
|
1956
1956
|
created_at: o.string().transform((t) => t === null ? "" : t),
|
|
1957
1957
|
updated_at: o.string().transform((t) => t === null ? "" : t),
|
|
1958
1958
|
...wu.shape,
|
|
1959
1959
|
id: o.string()
|
|
1960
1960
|
});
|
|
1961
1961
|
o.object({
|
|
1962
|
-
|
|
1963
|
-
tenant:
|
|
1962
|
+
...$i.shape,
|
|
1963
|
+
tenant: Es,
|
|
1964
1964
|
connections: o.array(kn),
|
|
1965
1965
|
// Legacy fields for backward compatibility - these are now stored in client_metadata
|
|
1966
1966
|
disable_sign_ups: o.boolean(),
|
|
@@ -2164,8 +2164,8 @@ const bw = o.enum([
|
|
|
2164
2164
|
style: o.object({ css: o.string().optional() }).optional()
|
|
2165
2165
|
}).openapi({
|
|
2166
2166
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
2167
|
-
}),
|
|
2168
|
-
...
|
|
2167
|
+
}), vs = o.object({
|
|
2168
|
+
...Xi.shape,
|
|
2169
2169
|
...vu.shape,
|
|
2170
2170
|
id: o.string()
|
|
2171
2171
|
}), Rm = o.enum([
|
|
@@ -2196,16 +2196,16 @@ const bw = o.enum([
|
|
|
2196
2196
|
]), kw = o.object({
|
|
2197
2197
|
...fc,
|
|
2198
2198
|
trigger_id: Rm,
|
|
2199
|
-
...
|
|
2199
|
+
...Xi.shape,
|
|
2200
2200
|
hook_id: o.string(),
|
|
2201
2201
|
url: o.string()
|
|
2202
2202
|
}), Nw = o.object({
|
|
2203
2203
|
...fc,
|
|
2204
2204
|
trigger_id: jm,
|
|
2205
|
-
...
|
|
2205
|
+
...Xi.shape,
|
|
2206
2206
|
hook_id: o.string(),
|
|
2207
2207
|
form_id: o.string()
|
|
2208
|
-
}),
|
|
2208
|
+
}), bs = o.union([kw, Nw]), Pm = o.object({
|
|
2209
2209
|
alg: o.enum([
|
|
2210
2210
|
"RS256",
|
|
2211
2211
|
"RS384",
|
|
@@ -2569,19 +2569,19 @@ const jw = o.object({
|
|
|
2569
2569
|
success: o.string(),
|
|
2570
2570
|
widget_background: o.string(),
|
|
2571
2571
|
widget_border: o.string()
|
|
2572
|
-
}),
|
|
2572
|
+
}), pi = o.object({
|
|
2573
2573
|
bold: o.boolean(),
|
|
2574
2574
|
size: o.number()
|
|
2575
2575
|
}), Bw = o.object({
|
|
2576
|
-
body_text:
|
|
2577
|
-
buttons_text:
|
|
2576
|
+
body_text: pi,
|
|
2577
|
+
buttons_text: pi,
|
|
2578
2578
|
font_url: o.string(),
|
|
2579
|
-
input_labels:
|
|
2580
|
-
links:
|
|
2579
|
+
input_labels: pi,
|
|
2580
|
+
links: pi,
|
|
2581
2581
|
links_style: o.enum(["normal", "underlined"]),
|
|
2582
2582
|
reference_text_size: o.number(),
|
|
2583
|
-
subtitle:
|
|
2584
|
-
title:
|
|
2583
|
+
subtitle: pi,
|
|
2584
|
+
title: pi
|
|
2585
2585
|
}), Lw = o.object({
|
|
2586
2586
|
background_color: o.string(),
|
|
2587
2587
|
background_image_url: o.string(),
|
|
@@ -2693,12 +2693,12 @@ const jw = o.object({
|
|
|
2693
2693
|
allow_offline_access: o.boolean().optional(),
|
|
2694
2694
|
verificationKey: o.string().optional(),
|
|
2695
2695
|
options: qw.optional()
|
|
2696
|
-
}),
|
|
2696
|
+
}), Ai = o.object({
|
|
2697
2697
|
id: o.string().optional(),
|
|
2698
2698
|
...$u.shape,
|
|
2699
2699
|
created_at: o.string().optional(),
|
|
2700
2700
|
updated_at: o.string().optional()
|
|
2701
|
-
}), TG = o.array(
|
|
2701
|
+
}), TG = o.array(Ai), zw = o.object({
|
|
2702
2702
|
role_id: o.string(),
|
|
2703
2703
|
resource_server_identifier: o.string(),
|
|
2704
2704
|
permission_name: o.string()
|
|
@@ -2749,14 +2749,14 @@ const jw = o.object({
|
|
|
2749
2749
|
description: o.string().max(255).optional().openapi({
|
|
2750
2750
|
description: "The description of the role"
|
|
2751
2751
|
})
|
|
2752
|
-
}),
|
|
2752
|
+
}), Ei = o.object({
|
|
2753
2753
|
id: o.string().openapi({
|
|
2754
2754
|
description: "The unique identifier of the role"
|
|
2755
2755
|
}),
|
|
2756
2756
|
...xu.shape,
|
|
2757
2757
|
created_at: o.string().optional(),
|
|
2758
2758
|
updated_at: o.string().optional()
|
|
2759
|
-
}), Au = o.array(
|
|
2759
|
+
}), Au = o.array(Ei), Qw = o.object({
|
|
2760
2760
|
logo_url: o.string().optional().openapi({
|
|
2761
2761
|
description: "URL of the organization's logo"
|
|
2762
2762
|
}),
|
|
@@ -2811,7 +2811,7 @@ const jw = o.object({
|
|
|
2811
2811
|
token_quota: tv
|
|
2812
2812
|
}), Rr = o.object({
|
|
2813
2813
|
...Eu.shape,
|
|
2814
|
-
...
|
|
2814
|
+
...Xi.shape,
|
|
2815
2815
|
id: o.string()
|
|
2816
2816
|
}), nv = o.object({
|
|
2817
2817
|
user_id: o.string().openapi({
|
|
@@ -2822,7 +2822,7 @@ const jw = o.object({
|
|
|
2822
2822
|
})
|
|
2823
2823
|
}), RG = o.object({
|
|
2824
2824
|
...nv.shape,
|
|
2825
|
-
...
|
|
2825
|
+
...Xi.shape,
|
|
2826
2826
|
id: o.string()
|
|
2827
2827
|
});
|
|
2828
2828
|
function jG(t) {
|
|
@@ -5079,7 +5079,7 @@ async function xv(t, e) {
|
|
|
5079
5079
|
includePadding: !1
|
|
5080
5080
|
});
|
|
5081
5081
|
}
|
|
5082
|
-
const qo = 60 * 5, mc = 30 * 24 * 60 * 60,
|
|
5082
|
+
const qo = 60 * 5, mc = 30 * 24 * 60 * 60, qr = 24 * 60 * 60, Av = "auth-token", ta = 30 * 60 * 1e3, ku = 7 * 24 * 60 * 60 * 1e3, Ev = 5 * 60, Sv = 5 * 60, kv = 30 * 60 * 1e3, Nv = 30 * 60 * 1e3, Cv = 24 * 60 * 60 * 1e3;
|
|
5083
5083
|
function Gm(t, e, n) {
|
|
5084
5084
|
const r = [];
|
|
5085
5085
|
return r.push([encodeURIComponent(t), encodeURIComponent(e)]), (n == null ? void 0 : n.domain) !== void 0 && r.push(["Domain", n.domain]), (n == null ? void 0 : n.expires) !== void 0 && r.push(["Expires", n.expires.toUTCString()]), n != null && n.httpOnly && r.push(["HttpOnly"]), (n == null ? void 0 : n.maxAge) !== void 0 && r.push(["Max-Age", n.maxAge.toString()]), (n == null ? void 0 : n.path) !== void 0 && r.push(["Path", n.path]), (n == null ? void 0 : n.sameSite) === "lax" && r.push(["SameSite", "Lax"]), (n == null ? void 0 : n.sameSite) === "none" && r.push(["SameSite", "None"]), (n == null ? void 0 : n.sameSite) === "strict" && r.push(["SameSite", "Strict"]), n != null && n.secure && r.push(["Secure"]), r.map((i) => i.join("=")).join("; ");
|
|
@@ -5104,7 +5104,7 @@ function Wm(t) {
|
|
|
5104
5104
|
const n = e.split(".");
|
|
5105
5105
|
return n.length > 2 ? `.${n.slice(-2).join(".")}` : `.${e}`;
|
|
5106
5106
|
}
|
|
5107
|
-
function
|
|
5107
|
+
function Oi(t, e) {
|
|
5108
5108
|
return e ? Tv(e).get(yp(t)) : void 0;
|
|
5109
5109
|
}
|
|
5110
5110
|
function Iv(t, e) {
|
|
@@ -5323,18 +5323,18 @@ function bh(t, e) {
|
|
|
5323
5323
|
const n = vp.getAllMatches(t, Pv), r = {};
|
|
5324
5324
|
for (let i = 0; i < n.length; i++) {
|
|
5325
5325
|
if (n[i][1].length === 0)
|
|
5326
|
-
return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' has no space in starting.",
|
|
5326
|
+
return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' has no space in starting.", ps(n[i]));
|
|
5327
5327
|
if (n[i][3] !== void 0 && n[i][4] === void 0)
|
|
5328
|
-
return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' is without value.",
|
|
5328
|
+
return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' is without value.", ps(n[i]));
|
|
5329
5329
|
if (n[i][3] === void 0 && !e.allowBooleanAttributes)
|
|
5330
|
-
return Ze("InvalidAttr", "boolean attribute '" + n[i][2] + "' is not allowed.",
|
|
5330
|
+
return Ze("InvalidAttr", "boolean attribute '" + n[i][2] + "' is not allowed.", ps(n[i]));
|
|
5331
5331
|
const s = n[i][2];
|
|
5332
5332
|
if (!Fv(s))
|
|
5333
|
-
return Ze("InvalidAttr", "Attribute '" + s + "' is an invalid name.",
|
|
5333
|
+
return Ze("InvalidAttr", "Attribute '" + s + "' is an invalid name.", ps(n[i]));
|
|
5334
5334
|
if (!r.hasOwnProperty(s))
|
|
5335
5335
|
r[s] = 1;
|
|
5336
5336
|
else
|
|
5337
|
-
return Ze("InvalidAttr", "Attribute '" + s + "' is repeated.",
|
|
5337
|
+
return Ze("InvalidAttr", "Attribute '" + s + "' is repeated.", ps(n[i]));
|
|
5338
5338
|
}
|
|
5339
5339
|
return !0;
|
|
5340
5340
|
}
|
|
@@ -5386,7 +5386,7 @@ function vt(t, e) {
|
|
|
5386
5386
|
col: n[n.length - 1].length + 1
|
|
5387
5387
|
};
|
|
5388
5388
|
}
|
|
5389
|
-
function
|
|
5389
|
+
function ps(t) {
|
|
5390
5390
|
return t.startIndex + t[1].length;
|
|
5391
5391
|
}
|
|
5392
5392
|
var bp = {};
|
|
@@ -5557,7 +5557,7 @@ function ob(t) {
|
|
|
5557
5557
|
} : () => !1;
|
|
5558
5558
|
}
|
|
5559
5559
|
var Jm = ob;
|
|
5560
|
-
const Ym = _c,
|
|
5560
|
+
const Ym = _c, fs = zv, ab = Qv, cb = sb, lb = Jm;
|
|
5561
5561
|
let ub = class {
|
|
5562
5562
|
constructor(e) {
|
|
5563
5563
|
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
@@ -5642,7 +5642,7 @@ function gb(t, e, n) {
|
|
|
5642
5642
|
const mb = function(t) {
|
|
5643
5643
|
t = t.replace(/\r\n?/g, `
|
|
5644
5644
|
`);
|
|
5645
|
-
const e = new
|
|
5645
|
+
const e = new fs("!xml");
|
|
5646
5646
|
let n = e, r = "", i = "";
|
|
5647
5647
|
for (let s = 0; s < t.length; s++)
|
|
5648
5648
|
if (t[s] === "<")
|
|
@@ -5663,7 +5663,7 @@ const mb = function(t) {
|
|
|
5663
5663
|
let l = Nu(t, s, !1, "?>");
|
|
5664
5664
|
if (!l) throw new Error("Pi Tag is not closed.");
|
|
5665
5665
|
if (r = this.saveTextToParentTag(r, n, i), !(this.options.ignoreDeclaration && l.tagName === "?xml" || this.options.ignorePiTags)) {
|
|
5666
|
-
const u = new
|
|
5666
|
+
const u = new fs(l.tagName);
|
|
5667
5667
|
u.add(this.options.textNodeName, ""), l.tagName !== l.tagExp && l.attrExpPresent && (u[":@"] = this.buildAttributesMap(l.tagExp, i, l.tagName)), this.addChild(n, u, i);
|
|
5668
5668
|
}
|
|
5669
5669
|
s = l.closeIndex + 1;
|
|
@@ -5699,15 +5699,15 @@ const mb = function(t) {
|
|
|
5699
5699
|
if (!O) throw new Error(`Unexpected end of ${d}`);
|
|
5700
5700
|
s = O.i, x = O.tagContent;
|
|
5701
5701
|
}
|
|
5702
|
-
const C = new
|
|
5702
|
+
const C = new fs(u);
|
|
5703
5703
|
u !== p && h && (C[":@"] = this.buildAttributesMap(p, i, u)), x && (x = this.parseTextData(x, u, i, !0, h, !0, !0)), i = i.substr(0, i.lastIndexOf(".")), C.add(this.options.textNodeName, x), this.addChild(n, C, i);
|
|
5704
5704
|
} else {
|
|
5705
5705
|
if (p.length > 0 && p.lastIndexOf("/") === p.length - 1) {
|
|
5706
5706
|
u[u.length - 1] === "/" ? (u = u.substr(0, u.length - 1), i = i.substr(0, i.length - 1), p = u) : p = p.substr(0, p.length - 1), this.options.transformTagName && (u = this.options.transformTagName(u));
|
|
5707
|
-
const x = new
|
|
5707
|
+
const x = new fs(u);
|
|
5708
5708
|
u !== p && h && (x[":@"] = this.buildAttributesMap(p, i, u)), this.addChild(n, x, i), i = i.substr(0, i.lastIndexOf("."));
|
|
5709
5709
|
} else {
|
|
5710
|
-
const x = new
|
|
5710
|
+
const x = new fs(u);
|
|
5711
5711
|
this.tagsNodeStack.push(n), u !== p && h && (x[":@"] = this.buildAttributesMap(p, i, u)), this.addChild(n, x, i), n = x;
|
|
5712
5712
|
}
|
|
5713
5713
|
r = "", s = g;
|
|
@@ -6550,7 +6550,7 @@ function Tu(t, e) {
|
|
|
6550
6550
|
|
|
6551
6551
|
</html>`;
|
|
6552
6552
|
}
|
|
6553
|
-
class
|
|
6553
|
+
class Fr extends E {
|
|
6554
6554
|
constructor(e, n) {
|
|
6555
6555
|
super(e, {
|
|
6556
6556
|
message: JSON.stringify(n),
|
|
@@ -6637,7 +6637,7 @@ async function va(t, e) {
|
|
|
6637
6637
|
})).userOrganizations.some(
|
|
6638
6638
|
(j) => j.organization_id === a
|
|
6639
6639
|
))
|
|
6640
|
-
throw new
|
|
6640
|
+
throw new Fr(403, {
|
|
6641
6641
|
error: "access_denied",
|
|
6642
6642
|
error_description: "User is not a member of the specified organization"
|
|
6643
6643
|
});
|
|
@@ -7052,7 +7052,7 @@ async function t3(t, e) {
|
|
|
7052
7052
|
)).userOrganizations.some(
|
|
7053
7053
|
(C) => C.organization_id === e.organization.id
|
|
7054
7054
|
))
|
|
7055
|
-
throw new
|
|
7055
|
+
throw new Fr(403, {
|
|
7056
7056
|
error: "access_denied",
|
|
7057
7057
|
error_description: "User is not a member of the specified organization"
|
|
7058
7058
|
});
|
|
@@ -7072,7 +7072,7 @@ async function t3(t, e) {
|
|
|
7072
7072
|
else {
|
|
7073
7073
|
const x = (n == null ? void 0 : n.user_id) || ((d = e.user) == null ? void 0 : d.user_id);
|
|
7074
7074
|
if (!x)
|
|
7075
|
-
throw new
|
|
7075
|
+
throw new Fr(400, {
|
|
7076
7076
|
error: "invalid_request",
|
|
7077
7077
|
error_description: "User ID is required for user-based grants"
|
|
7078
7078
|
});
|
|
@@ -7481,7 +7481,7 @@ async function xp(t, e, n) {
|
|
|
7481
7481
|
q: `email:${n}`
|
|
7482
7482
|
})).users;
|
|
7483
7483
|
}
|
|
7484
|
-
async function
|
|
7484
|
+
async function Ji({
|
|
7485
7485
|
userAdapter: t,
|
|
7486
7486
|
tenant_id: e,
|
|
7487
7487
|
username: n,
|
|
@@ -7529,7 +7529,7 @@ async function js({
|
|
|
7529
7529
|
username: n,
|
|
7530
7530
|
provider: r
|
|
7531
7531
|
}) {
|
|
7532
|
-
const i = await
|
|
7532
|
+
const i = await Ji({
|
|
7533
7533
|
userAdapter: t,
|
|
7534
7534
|
tenant_id: e,
|
|
7535
7535
|
username: n,
|
|
@@ -8771,7 +8771,7 @@ var Nh;
|
|
|
8771
8771
|
return !1;
|
|
8772
8772
|
}
|
|
8773
8773
|
}
|
|
8774
|
-
function
|
|
8774
|
+
function us(R, I) {
|
|
8775
8775
|
return R === I || R !== R && I !== I;
|
|
8776
8776
|
}
|
|
8777
8777
|
function Fo(R, I) {
|
|
@@ -9082,7 +9082,7 @@ var Nh;
|
|
|
9082
9082
|
if (y >= 0) {
|
|
9083
9083
|
for (var $ = this._keys.length, v = y + 1; v < $; v++)
|
|
9084
9084
|
this._keys[v - 1] = this._keys[v], this._values[v - 1] = this._values[v];
|
|
9085
|
-
return this._keys.length--, this._values.length--,
|
|
9085
|
+
return this._keys.length--, this._values.length--, us(f, this._cacheKey) && (this._cacheKey = R, this._cacheIndex = -2), !0;
|
|
9086
9086
|
}
|
|
9087
9087
|
return !1;
|
|
9088
9088
|
}, c.prototype.clear = function() {
|
|
@@ -9098,10 +9098,10 @@ var Nh;
|
|
|
9098
9098
|
}, c.prototype[a] = function() {
|
|
9099
9099
|
return this.entries();
|
|
9100
9100
|
}, c.prototype._find = function(f, y) {
|
|
9101
|
-
if (!
|
|
9101
|
+
if (!us(this._cacheKey, f)) {
|
|
9102
9102
|
this._cacheIndex = -1;
|
|
9103
9103
|
for (var $ = 0; $ < this._keys.length; $++)
|
|
9104
|
-
if (
|
|
9104
|
+
if (us(this._keys[$], f)) {
|
|
9105
9105
|
this._cacheIndex = $;
|
|
9106
9106
|
break;
|
|
9107
9107
|
}
|
|
@@ -9536,7 +9536,7 @@ function c_(t, e) {
|
|
|
9536
9536
|
/*!
|
|
9537
9537
|
Copyright (c) Peculiar Ventures, LLC
|
|
9538
9538
|
*/
|
|
9539
|
-
function
|
|
9539
|
+
function Di(t, e) {
|
|
9540
9540
|
let n = 0;
|
|
9541
9541
|
if (t.length === 1)
|
|
9542
9542
|
return t[0];
|
|
@@ -9544,7 +9544,7 @@ function Oi(t, e) {
|
|
|
9544
9544
|
n += t[t.length - 1 - r] * Math.pow(2, e * r);
|
|
9545
9545
|
return n;
|
|
9546
9546
|
}
|
|
9547
|
-
function
|
|
9547
|
+
function zr(t, e, n = -1) {
|
|
9548
9548
|
const r = n;
|
|
9549
9549
|
let i = t, s = 0, a = Math.pow(2, e);
|
|
9550
9550
|
for (let l = 1; l < 8; l++) {
|
|
@@ -9587,10 +9587,10 @@ function l_() {
|
|
|
9587
9587
|
for (let l = 0; l < this.valueHex.byteLength; l++)
|
|
9588
9588
|
n[l] = 0;
|
|
9589
9589
|
n[0] = t[0] & 128;
|
|
9590
|
-
const r =
|
|
9590
|
+
const r = Di(n, 8), i = new ArrayBuffer(this.valueHex.byteLength), s = new Uint8Array(i);
|
|
9591
9591
|
for (let l = 0; l < this.valueHex.byteLength; l++)
|
|
9592
9592
|
s[l] = t[l];
|
|
9593
|
-
return s[0] &= 127,
|
|
9593
|
+
return s[0] &= 127, Di(s, 8) - r;
|
|
9594
9594
|
}
|
|
9595
9595
|
function v3(t) {
|
|
9596
9596
|
const e = t < 0 ? t * -1 : t;
|
|
@@ -9598,10 +9598,10 @@ function v3(t) {
|
|
|
9598
9598
|
for (let r = 1; r < 8; r++) {
|
|
9599
9599
|
if (e <= n) {
|
|
9600
9600
|
if (t < 0) {
|
|
9601
|
-
const a = n - e, l =
|
|
9601
|
+
const a = n - e, l = zr(a, 8, r), u = new Uint8Array(l);
|
|
9602
9602
|
return u[0] |= 128, l;
|
|
9603
9603
|
}
|
|
9604
|
-
let i =
|
|
9604
|
+
let i = zr(e, 8, r), s = new Uint8Array(i);
|
|
9605
9605
|
if (s[0] & 128) {
|
|
9606
9606
|
const a = i.slice(0), l = new Uint8Array(a);
|
|
9607
9607
|
i = new ArrayBuffer(i.byteLength + 1), s = new Uint8Array(i);
|
|
@@ -9697,7 +9697,7 @@ class vc {
|
|
|
9697
9697
|
return Ep(this.items);
|
|
9698
9698
|
}
|
|
9699
9699
|
}
|
|
9700
|
-
const
|
|
9700
|
+
const hs = [new Uint8Array([1])], Th = "0123456789", jl = "name", Ih = "valueHexView", $3 = "isHexOnly", x3 = "idBlock", A3 = "tagClass", E3 = "tagNumber", S3 = "isConstructed", k3 = "fromBER", N3 = "toBER", C3 = "local", Ct = "", wn = new ArrayBuffer(0), bc = new Uint8Array(0), Ps = "EndOfContent", u_ = "OCTET STRING", d_ = "BIT STRING";
|
|
9701
9701
|
function Rn(t) {
|
|
9702
9702
|
var e;
|
|
9703
9703
|
return e = class extends t {
|
|
@@ -9732,7 +9732,7 @@ function Rn(t) {
|
|
|
9732
9732
|
}
|
|
9733
9733
|
}, e.NAME = "hexBlock", e;
|
|
9734
9734
|
}
|
|
9735
|
-
class
|
|
9735
|
+
class ai {
|
|
9736
9736
|
static blockName() {
|
|
9737
9737
|
return this.NAME;
|
|
9738
9738
|
}
|
|
@@ -9755,8 +9755,8 @@ class oi {
|
|
|
9755
9755
|
};
|
|
9756
9756
|
}
|
|
9757
9757
|
}
|
|
9758
|
-
|
|
9759
|
-
class xt extends
|
|
9758
|
+
ai.NAME = "baseBlock";
|
|
9759
|
+
class xt extends ai {
|
|
9760
9760
|
fromBER(e, n, r) {
|
|
9761
9761
|
throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
|
|
9762
9762
|
}
|
|
@@ -9765,7 +9765,7 @@ class xt extends oi {
|
|
|
9765
9765
|
}
|
|
9766
9766
|
}
|
|
9767
9767
|
xt.NAME = "valueBlock";
|
|
9768
|
-
class p_ extends Rn(
|
|
9768
|
+
class p_ extends Rn(ai) {
|
|
9769
9769
|
constructor({ idBlock: e = {} } = {}) {
|
|
9770
9770
|
var n, r, i, s;
|
|
9771
9771
|
super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? ie.toUint8Array(e.valueHex) : bc, this.tagClass = (r = e.tagClass) !== null && r !== void 0 ? r : -1, this.tagNumber = (i = e.tagNumber) !== null && i !== void 0 ? i : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
@@ -9797,7 +9797,7 @@ class p_ extends Rn(oi) {
|
|
|
9797
9797
|
return i.buffer;
|
|
9798
9798
|
}
|
|
9799
9799
|
if (!this.isHexOnly) {
|
|
9800
|
-
const i =
|
|
9800
|
+
const i = zr(this.tagNumber, 7), s = new Uint8Array(i), a = i.byteLength, l = new Uint8Array(a + 1);
|
|
9801
9801
|
if (l[0] = n | 31, !e) {
|
|
9802
9802
|
for (let u = 0; u < a - 1; u++)
|
|
9803
9803
|
l[u + 1] = s[u] | 128;
|
|
@@ -9858,7 +9858,7 @@ class p_ extends Rn(oi) {
|
|
|
9858
9858
|
const h = new Uint8Array(u);
|
|
9859
9859
|
for (let g = 0; g < u; g++)
|
|
9860
9860
|
h[g] = d[g];
|
|
9861
|
-
d = this.valueHexView = new Uint8Array(u), d.set(h), this.blockLength <= 9 ? this.tagNumber =
|
|
9861
|
+
d = this.valueHexView = new Uint8Array(u), d.set(h), this.blockLength <= 9 ? this.tagNumber = Di(d, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
|
|
9862
9862
|
}
|
|
9863
9863
|
if (this.tagClass === 1 && this.isConstructed)
|
|
9864
9864
|
switch (this.tagNumber) {
|
|
@@ -9889,7 +9889,7 @@ class p_ extends Rn(oi) {
|
|
|
9889
9889
|
}
|
|
9890
9890
|
}
|
|
9891
9891
|
p_.NAME = "identificationBlock";
|
|
9892
|
-
class f_ extends
|
|
9892
|
+
class f_ extends ai {
|
|
9893
9893
|
constructor({ lenBlock: e = {} } = {}) {
|
|
9894
9894
|
var n, r, i;
|
|
9895
9895
|
super(), this.isIndefiniteForm = (n = e.isIndefiniteForm) !== null && n !== void 0 ? n : !1, this.longFormUsed = (r = e.longFormUsed) !== null && r !== void 0 ? r : !1, this.length = (i = e.length) !== null && i !== void 0 ? i : 0;
|
|
@@ -9913,14 +9913,14 @@ class f_ extends oi {
|
|
|
9913
9913
|
if (a + 1 > s.length)
|
|
9914
9914
|
return this.error = "End of input reached before message was fully decoded", -1;
|
|
9915
9915
|
const l = n + 1, u = i.subarray(l, l + a);
|
|
9916
|
-
return u[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length =
|
|
9916
|
+
return u[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length = Di(u, 8), this.longFormUsed && this.length <= 127 && this.warnings.push("Unnecessary usage of long length form"), this.blockLength = a + 1, n + this.blockLength;
|
|
9917
9917
|
}
|
|
9918
9918
|
toBER(e = !1) {
|
|
9919
9919
|
let n, r;
|
|
9920
9920
|
if (this.length > 127 && (this.longFormUsed = !0), this.isIndefiniteForm)
|
|
9921
9921
|
return n = new ArrayBuffer(1), e === !1 && (r = new Uint8Array(n), r[0] = 128), n;
|
|
9922
9922
|
if (this.longFormUsed) {
|
|
9923
|
-
const i =
|
|
9923
|
+
const i = zr(this.length, 8);
|
|
9924
9924
|
if (i.byteLength > 127)
|
|
9925
9925
|
return this.error = "Too big length", wn;
|
|
9926
9926
|
if (n = new ArrayBuffer(i.byteLength + 1), e)
|
|
@@ -9944,7 +9944,7 @@ class f_ extends oi {
|
|
|
9944
9944
|
}
|
|
9945
9945
|
f_.NAME = "lengthBlock";
|
|
9946
9946
|
const de = {};
|
|
9947
|
-
class ht extends
|
|
9947
|
+
class ht extends ai {
|
|
9948
9948
|
constructor({ name: e = Ct, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
|
|
9949
9949
|
super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new p_(i), this.lenBlock = new f_(i), this.valueBlock = s ? new s(i) : new xt(i);
|
|
9950
9950
|
}
|
|
@@ -10041,10 +10041,10 @@ function T3(t, e) {
|
|
|
10041
10041
|
const n = new e();
|
|
10042
10042
|
return n.idBlock = t.idBlock, n.lenBlock = t.lenBlock, n.warnings = t.warnings, n.valueBeforeDecodeView = t.valueBeforeDecodeView, n;
|
|
10043
10043
|
}
|
|
10044
|
-
function
|
|
10044
|
+
function Yi(t, e = 0, n = t.length) {
|
|
10045
10045
|
const r = e;
|
|
10046
10046
|
let i = new ht({}, xt);
|
|
10047
|
-
const s = new
|
|
10047
|
+
const s = new ai();
|
|
10048
10048
|
if (!rr(s, t, e, n))
|
|
10049
10049
|
return i.error = s.error, {
|
|
10050
10050
|
offset: -1,
|
|
@@ -10197,7 +10197,7 @@ function Ji(t, e = 0, n = t.length) {
|
|
|
10197
10197
|
result: i
|
|
10198
10198
|
};
|
|
10199
10199
|
}
|
|
10200
|
-
function
|
|
10200
|
+
function Ni(t) {
|
|
10201
10201
|
if (!t.byteLength) {
|
|
10202
10202
|
const e = new ht({}, xt);
|
|
10203
10203
|
return e.error = "Input buffer has zero length", {
|
|
@@ -10205,7 +10205,7 @@ function ki(t) {
|
|
|
10205
10205
|
result: e
|
|
10206
10206
|
};
|
|
10207
10207
|
}
|
|
10208
|
-
return
|
|
10208
|
+
return Yi(ie.toUint8Array(t).slice(), 0, t.byteLength);
|
|
10209
10209
|
}
|
|
10210
10210
|
function I3(t, e) {
|
|
10211
10211
|
return t ? 1 : e;
|
|
@@ -10222,7 +10222,7 @@ class _r extends xt {
|
|
|
10222
10222
|
return this.warnings.push("Zero buffer length"), n;
|
|
10223
10223
|
let s = n;
|
|
10224
10224
|
for (; I3(this.isIndefiniteForm, r) > 0; ) {
|
|
10225
|
-
const a =
|
|
10225
|
+
const a = Yi(i, s, r);
|
|
10226
10226
|
if (a.offset === -1)
|
|
10227
10227
|
return this.error = a.result.error, this.warnings.concat(a.result.warnings), -1;
|
|
10228
10228
|
if (s = a.offset, this.blockLength += a.result.blockLength, r -= a.result.blockLength, this.value.push(a.result), this.isIndefiniteForm && a.result.constructor.NAME === Ps)
|
|
@@ -10292,7 +10292,7 @@ w_ = kp;
|
|
|
10292
10292
|
de.EndOfContent = w_;
|
|
10293
10293
|
kp.NAME = Ps;
|
|
10294
10294
|
var v_;
|
|
10295
|
-
class
|
|
10295
|
+
class Vr extends ht {
|
|
10296
10296
|
constructor(e = {}) {
|
|
10297
10297
|
super(e, xt), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
10298
10298
|
}
|
|
@@ -10311,9 +10311,9 @@ class zr extends ht {
|
|
|
10311
10311
|
return `${this.constructor.NAME}`;
|
|
10312
10312
|
}
|
|
10313
10313
|
}
|
|
10314
|
-
v_ =
|
|
10314
|
+
v_ = Vr;
|
|
10315
10315
|
de.Null = v_;
|
|
10316
|
-
|
|
10316
|
+
Vr.NAME = "NULL";
|
|
10317
10317
|
class b_ extends Rn(xt) {
|
|
10318
10318
|
get value() {
|
|
10319
10319
|
for (const e of this.valueHexView)
|
|
@@ -10395,7 +10395,7 @@ class x_ extends Rn(_r) {
|
|
|
10395
10395
|
}
|
|
10396
10396
|
x_.NAME = "OctetStringValueBlock";
|
|
10397
10397
|
var Np;
|
|
10398
|
-
let
|
|
10398
|
+
let Ur = class extends ht {
|
|
10399
10399
|
constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
|
|
10400
10400
|
var i, s;
|
|
10401
10401
|
(i = r.isConstructed) !== null && i !== void 0 || (r.isConstructed = !!(!((s = r.value) === null || s === void 0) && s.length)), super({
|
|
@@ -10417,7 +10417,7 @@ let Fr = class extends ht {
|
|
|
10417
10417
|
const s = (e instanceof ArrayBuffer ? new Uint8Array(e) : e).subarray(n, n + r);
|
|
10418
10418
|
try {
|
|
10419
10419
|
if (s.byteLength) {
|
|
10420
|
-
const a =
|
|
10420
|
+
const a = Yi(s, 0, s.byteLength);
|
|
10421
10421
|
a.offset !== -1 && a.offset === r && (this.valueBlock.value = [a.result]);
|
|
10422
10422
|
}
|
|
10423
10423
|
} catch {
|
|
@@ -10440,9 +10440,9 @@ let Fr = class extends ht {
|
|
|
10440
10440
|
return ie.concat(e);
|
|
10441
10441
|
}
|
|
10442
10442
|
};
|
|
10443
|
-
Np =
|
|
10443
|
+
Np = Ur;
|
|
10444
10444
|
de.OctetString = Np;
|
|
10445
|
-
|
|
10445
|
+
Ur.NAME = u_;
|
|
10446
10446
|
class A_ extends Rn(_r) {
|
|
10447
10447
|
constructor({ unusedBits: e = 0, isConstructed: n = !1, ...r } = {}) {
|
|
10448
10448
|
super(r), this.unusedBits = e, this.isConstructed = n, this.blockLength = this.valueHexView.byteLength;
|
|
@@ -10480,7 +10480,7 @@ class A_ extends Rn(_r) {
|
|
|
10480
10480
|
const l = a.subarray(1);
|
|
10481
10481
|
try {
|
|
10482
10482
|
if (l.byteLength) {
|
|
10483
|
-
const u =
|
|
10483
|
+
const u = Yi(l, 0, l.byteLength);
|
|
10484
10484
|
u.offset !== -1 && u.offset === r - 1 && (this.value = [u.result]);
|
|
10485
10485
|
}
|
|
10486
10486
|
} catch {
|
|
@@ -10508,7 +10508,7 @@ class A_ extends Rn(_r) {
|
|
|
10508
10508
|
}
|
|
10509
10509
|
A_.NAME = "BitStringValueBlock";
|
|
10510
10510
|
var E_;
|
|
10511
|
-
let
|
|
10511
|
+
let Mr = class extends ht {
|
|
10512
10512
|
constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
|
|
10513
10513
|
var i, s;
|
|
10514
10514
|
(i = r.isConstructed) !== null && i !== void 0 || (r.isConstructed = !!(!((s = r.value) === null || s === void 0) && s.length)), super({
|
|
@@ -10538,9 +10538,9 @@ let Ur = class extends ht {
|
|
|
10538
10538
|
}
|
|
10539
10539
|
}
|
|
10540
10540
|
};
|
|
10541
|
-
E_ =
|
|
10541
|
+
E_ = Mr;
|
|
10542
10542
|
de.BitString = E_;
|
|
10543
|
-
|
|
10543
|
+
Mr.NAME = d_;
|
|
10544
10544
|
var S_;
|
|
10545
10545
|
function O3(t, e) {
|
|
10546
10546
|
const n = new Uint8Array([0]), r = new Uint8Array(t), i = new Uint8Array(e);
|
|
@@ -10568,17 +10568,17 @@ function O3(t, e) {
|
|
|
10568
10568
|
return n[0] > 0 && (s = Iu(n, s)), s;
|
|
10569
10569
|
}
|
|
10570
10570
|
function Oh(t) {
|
|
10571
|
-
if (t >=
|
|
10572
|
-
for (let e =
|
|
10571
|
+
if (t >= hs.length)
|
|
10572
|
+
for (let e = hs.length; e <= t; e++) {
|
|
10573
10573
|
const n = new Uint8Array([0]);
|
|
10574
|
-
let r =
|
|
10574
|
+
let r = hs[e - 1].slice(0);
|
|
10575
10575
|
for (let i = r.length - 1; i >= 0; i--) {
|
|
10576
10576
|
const s = new Uint8Array([(r[i] << 1) + n[0]]);
|
|
10577
10577
|
n[0] = s[0] / 10, r[i] = s[0] % 10;
|
|
10578
10578
|
}
|
|
10579
|
-
n[0] > 0 && (r = Iu(n, r)),
|
|
10579
|
+
n[0] > 0 && (r = Iu(n, r)), hs.push(r);
|
|
10580
10580
|
}
|
|
10581
|
-
return
|
|
10581
|
+
return hs[t];
|
|
10582
10582
|
}
|
|
10583
10583
|
function D3(t, e) {
|
|
10584
10584
|
let n = 0;
|
|
@@ -10684,8 +10684,8 @@ Object.defineProperty(S_.prototype, "valueHex", {
|
|
|
10684
10684
|
return this.valueHexView.slice().buffer;
|
|
10685
10685
|
}
|
|
10686
10686
|
});
|
|
10687
|
-
var
|
|
10688
|
-
class
|
|
10687
|
+
var Ss;
|
|
10688
|
+
class Zi extends ht {
|
|
10689
10689
|
constructor(e = {}) {
|
|
10690
10690
|
super(e, Cp), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
10691
10691
|
}
|
|
@@ -10702,14 +10702,14 @@ class Yi extends ht {
|
|
|
10702
10702
|
p[0] |= 128, r.write(p);
|
|
10703
10703
|
} else
|
|
10704
10704
|
s[0] & 128 && r.write(new Uint8Array([0])), r.write(s);
|
|
10705
|
-
return new
|
|
10705
|
+
return new Ss({ valueHex: r.final() });
|
|
10706
10706
|
}
|
|
10707
10707
|
convertToDER() {
|
|
10708
|
-
const e = new
|
|
10708
|
+
const e = new Ss({ valueHex: this.valueBlock.valueHexView });
|
|
10709
10709
|
return e.valueBlock.toDER(), e;
|
|
10710
10710
|
}
|
|
10711
10711
|
convertFromDER() {
|
|
10712
|
-
return new
|
|
10712
|
+
return new Ss({
|
|
10713
10713
|
valueHex: this.valueBlock.valueHexView[0] === 0 ? this.valueBlock.valueHexView.subarray(1) : this.valueBlock.valueHexView
|
|
10714
10714
|
});
|
|
10715
10715
|
}
|
|
@@ -10717,11 +10717,11 @@ class Yi extends ht {
|
|
|
10717
10717
|
return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
|
|
10718
10718
|
}
|
|
10719
10719
|
}
|
|
10720
|
-
|
|
10721
|
-
de.Integer =
|
|
10722
|
-
|
|
10720
|
+
Ss = Zi;
|
|
10721
|
+
de.Integer = Ss;
|
|
10722
|
+
Zi.NAME = "INTEGER";
|
|
10723
10723
|
var k_;
|
|
10724
|
-
class xc extends
|
|
10724
|
+
class xc extends Zi {
|
|
10725
10725
|
constructor(e = {}) {
|
|
10726
10726
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
10727
10727
|
}
|
|
@@ -10746,7 +10746,7 @@ class Ou extends Rn(xt) {
|
|
|
10746
10746
|
const a = new Uint8Array(this.blockLength);
|
|
10747
10747
|
for (let l = 0; l < this.blockLength; l++)
|
|
10748
10748
|
a[l] = this.valueHexView[l];
|
|
10749
|
-
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 =
|
|
10749
|
+
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 = Di(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
|
|
10750
10750
|
}
|
|
10751
10751
|
set valueBigInt(e) {
|
|
10752
10752
|
ba();
|
|
@@ -10767,7 +10767,7 @@ class Ou extends Rn(xt) {
|
|
|
10767
10767
|
s[a] = i[a] | 128;
|
|
10768
10768
|
return s[this.blockLength - 1] = i[this.blockLength - 1], s.buffer;
|
|
10769
10769
|
}
|
|
10770
|
-
const n =
|
|
10770
|
+
const n = zr(this.valueDec, 7);
|
|
10771
10771
|
if (n.byteLength === 0)
|
|
10772
10772
|
return this.error = "Error during encoding SID value", wn;
|
|
10773
10773
|
const r = new Uint8Array(n.byteLength);
|
|
@@ -10904,7 +10904,7 @@ class Ac extends ht {
|
|
|
10904
10904
|
C_ = Ac;
|
|
10905
10905
|
de.ObjectIdentifier = C_;
|
|
10906
10906
|
Ac.NAME = "OBJECT IDENTIFIER";
|
|
10907
|
-
class Du extends Rn(
|
|
10907
|
+
class Du extends Rn(ai) {
|
|
10908
10908
|
constructor({ valueDec: e = 0, ...n } = {}) {
|
|
10909
10909
|
super(n), this.valueDec = e;
|
|
10910
10910
|
}
|
|
@@ -10921,7 +10921,7 @@ class Du extends Rn(oi) {
|
|
|
10921
10921
|
const a = new Uint8Array(this.blockLength);
|
|
10922
10922
|
for (let l = 0; l < this.blockLength; l++)
|
|
10923
10923
|
a[l] = this.valueHexView[l];
|
|
10924
|
-
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 =
|
|
10924
|
+
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 = Di(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
|
|
10925
10925
|
}
|
|
10926
10926
|
toBER(e) {
|
|
10927
10927
|
if (this.isHexOnly) {
|
|
@@ -10932,7 +10932,7 @@ class Du extends Rn(oi) {
|
|
|
10932
10932
|
s[a] = i[a] | 128;
|
|
10933
10933
|
return s[this.blockLength - 1] = i[this.blockLength - 1], s.buffer;
|
|
10934
10934
|
}
|
|
10935
|
-
const n =
|
|
10935
|
+
const n = zr(this.valueDec, 7);
|
|
10936
10936
|
if (n.byteLength === 0)
|
|
10937
10937
|
return this.error = "Error during encoding SID value", wn;
|
|
10938
10938
|
const r = new Uint8Array(n.byteLength);
|
|
@@ -11136,7 +11136,7 @@ class U_ extends zt {
|
|
|
11136
11136
|
fromString(e) {
|
|
11137
11137
|
const n = e.length, r = this.valueBlock.valueHexView = new Uint8Array(n * 4);
|
|
11138
11138
|
for (let i = 0; i < n; i++) {
|
|
11139
|
-
const s =
|
|
11139
|
+
const s = zr(e.charCodeAt(i), 8), a = new Uint8Array(s);
|
|
11140
11140
|
if (a.length > 4)
|
|
11141
11141
|
continue;
|
|
11142
11142
|
const l = 4 - a.length;
|
|
@@ -11466,18 +11466,18 @@ class jp extends ir {
|
|
|
11466
11466
|
r2 = jp;
|
|
11467
11467
|
de.TIME = r2;
|
|
11468
11468
|
jp.NAME = "TIME";
|
|
11469
|
-
class
|
|
11469
|
+
class Hr {
|
|
11470
11470
|
constructor({ name: e = Ct, optional: n = !1 } = {}) {
|
|
11471
11471
|
this.name = e, this.optional = n;
|
|
11472
11472
|
}
|
|
11473
11473
|
}
|
|
11474
|
-
class Pp extends
|
|
11474
|
+
class Pp extends Hr {
|
|
11475
11475
|
constructor({ value: e = [], ...n } = {}) {
|
|
11476
11476
|
super(n), this.value = e;
|
|
11477
11477
|
}
|
|
11478
11478
|
}
|
|
11479
|
-
class $a extends
|
|
11480
|
-
constructor({ value: e = new
|
|
11479
|
+
class $a extends Hr {
|
|
11480
|
+
constructor({ value: e = new Hr(), local: n = !1, ...r } = {}) {
|
|
11481
11481
|
super(r), this.value = e, this.local = n;
|
|
11482
11482
|
}
|
|
11483
11483
|
}
|
|
@@ -11515,7 +11515,7 @@ function hr(t, e, n) {
|
|
|
11515
11515
|
return n.hasOwnProperty(jl) && (s.name = n.name), s;
|
|
11516
11516
|
}
|
|
11517
11517
|
}
|
|
11518
|
-
if (n instanceof
|
|
11518
|
+
if (n instanceof Hr)
|
|
11519
11519
|
return n.hasOwnProperty(jl) && (t[n.name] = e), {
|
|
11520
11520
|
verified: !0,
|
|
11521
11521
|
result: t
|
|
@@ -11679,7 +11679,7 @@ function hr(t, e, n) {
|
|
|
11679
11679
|
};
|
|
11680
11680
|
}
|
|
11681
11681
|
if (n.primitiveSchema && Ih in e.valueBlock) {
|
|
11682
|
-
const s =
|
|
11682
|
+
const s = Yi(e.valueBlock.valueHexView);
|
|
11683
11683
|
if (s.offset === -1) {
|
|
11684
11684
|
const a = {
|
|
11685
11685
|
verified: !1,
|
|
@@ -11700,7 +11700,7 @@ function j3(t, e) {
|
|
|
11700
11700
|
verified: !1,
|
|
11701
11701
|
result: { error: "Wrong ASN.1 schema type" }
|
|
11702
11702
|
};
|
|
11703
|
-
const n =
|
|
11703
|
+
const n = Yi(ie.toUint8Array(t));
|
|
11704
11704
|
return n.offset === -1 ? {
|
|
11705
11705
|
verified: !1,
|
|
11706
11706
|
result: n.result
|
|
@@ -11708,10 +11708,10 @@ function j3(t, e) {
|
|
|
11708
11708
|
}
|
|
11709
11709
|
const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11710
11710
|
__proto__: null,
|
|
11711
|
-
Any:
|
|
11711
|
+
Any: Hr,
|
|
11712
11712
|
BaseBlock: ht,
|
|
11713
11713
|
BaseStringBlock: Sp,
|
|
11714
|
-
BitString:
|
|
11714
|
+
BitString: Mr,
|
|
11715
11715
|
BmpString: Ec,
|
|
11716
11716
|
Boolean: $c,
|
|
11717
11717
|
CharacterString: Rc,
|
|
@@ -11727,11 +11727,11 @@ const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11727
11727
|
GraphicString: Oc,
|
|
11728
11728
|
HexBlock: Rn,
|
|
11729
11729
|
IA5String: Ic,
|
|
11730
|
-
Integer:
|
|
11731
|
-
Null:
|
|
11730
|
+
Integer: Zi,
|
|
11731
|
+
Null: Vr,
|
|
11732
11732
|
NumericString: kc,
|
|
11733
11733
|
ObjectIdentifier: Ac,
|
|
11734
|
-
OctetString:
|
|
11734
|
+
OctetString: Ur,
|
|
11735
11735
|
Primitive: co,
|
|
11736
11736
|
PrintableString: Nc,
|
|
11737
11737
|
RawData: R3,
|
|
@@ -11750,7 +11750,7 @@ const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11750
11750
|
ViewWriter: vc,
|
|
11751
11751
|
VisibleString: lo,
|
|
11752
11752
|
compareSchema: hr,
|
|
11753
|
-
fromBER:
|
|
11753
|
+
fromBER: Ni,
|
|
11754
11754
|
verifySchema: j3
|
|
11755
11755
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11756
11756
|
var H;
|
|
@@ -11772,15 +11772,15 @@ class Pc {
|
|
|
11772
11772
|
throw TypeError("Unsupported type of 'params' argument for BitString");
|
|
11773
11773
|
}
|
|
11774
11774
|
fromASN(e) {
|
|
11775
|
-
if (!(e instanceof
|
|
11775
|
+
if (!(e instanceof Mr))
|
|
11776
11776
|
throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");
|
|
11777
11777
|
return this.unusedBits = e.valueBlock.unusedBits, this.value = e.valueBlock.valueHex, this;
|
|
11778
11778
|
}
|
|
11779
11779
|
toASN() {
|
|
11780
|
-
return new
|
|
11780
|
+
return new Mr({ unusedBits: this.unusedBits, valueHex: this.value });
|
|
11781
11781
|
}
|
|
11782
11782
|
toSchema(e) {
|
|
11783
|
-
return new
|
|
11783
|
+
return new Mr({ name: e });
|
|
11784
11784
|
}
|
|
11785
11785
|
toNumber() {
|
|
11786
11786
|
let e = "";
|
|
@@ -11812,39 +11812,39 @@ class De {
|
|
|
11812
11812
|
typeof e == "number" ? this.buffer = new ArrayBuffer(e) : ie.isBufferSource(e) ? this.buffer = ie.toArrayBuffer(e) : Array.isArray(e) ? this.buffer = new Uint8Array(e) : this.buffer = new ArrayBuffer(0);
|
|
11813
11813
|
}
|
|
11814
11814
|
fromASN(e) {
|
|
11815
|
-
if (!(e instanceof
|
|
11815
|
+
if (!(e instanceof Ur))
|
|
11816
11816
|
throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");
|
|
11817
11817
|
return this.buffer = e.valueBlock.valueHex, this;
|
|
11818
11818
|
}
|
|
11819
11819
|
toASN() {
|
|
11820
|
-
return new
|
|
11820
|
+
return new Ur({ valueHex: this.buffer });
|
|
11821
11821
|
}
|
|
11822
11822
|
toSchema(e) {
|
|
11823
|
-
return new
|
|
11823
|
+
return new Ur({ name: e });
|
|
11824
11824
|
}
|
|
11825
11825
|
}
|
|
11826
11826
|
const P3 = {
|
|
11827
|
-
fromASN: (t) => t instanceof
|
|
11827
|
+
fromASN: (t) => t instanceof Vr ? null : t.valueBeforeDecodeView,
|
|
11828
11828
|
toASN: (t) => {
|
|
11829
11829
|
if (t === null)
|
|
11830
|
-
return new
|
|
11831
|
-
const e =
|
|
11830
|
+
return new Vr();
|
|
11831
|
+
const e = Ni(t);
|
|
11832
11832
|
if (e.result.error)
|
|
11833
11833
|
throw new Error(e.result.error);
|
|
11834
11834
|
return e.result;
|
|
11835
11835
|
}
|
|
11836
11836
|
}, B3 = {
|
|
11837
11837
|
fromASN: (t) => t.valueBlock.valueHexView.byteLength >= 4 ? t.valueBlock.toString() : t.valueBlock.valueDec,
|
|
11838
|
-
toASN: (t) => new
|
|
11838
|
+
toASN: (t) => new Zi({ value: +t })
|
|
11839
11839
|
}, L3 = {
|
|
11840
11840
|
fromASN: (t) => t.valueBlock.valueDec,
|
|
11841
11841
|
toASN: (t) => new xc({ value: t })
|
|
11842
11842
|
}, He = {
|
|
11843
11843
|
fromASN: (t) => t.valueBlock.valueHexView,
|
|
11844
|
-
toASN: (t) => new
|
|
11844
|
+
toASN: (t) => new Zi({ valueHex: t })
|
|
11845
11845
|
}, F3 = {
|
|
11846
11846
|
fromASN: (t) => t.valueBlock.valueHexView,
|
|
11847
|
-
toASN: (t) => new
|
|
11847
|
+
toASN: (t) => new Mr({ valueHex: t })
|
|
11848
11848
|
}, U3 = {
|
|
11849
11849
|
fromASN: (t) => t.valueBlock.toString(),
|
|
11850
11850
|
toASN: (t) => new Ac({ value: t })
|
|
@@ -11853,7 +11853,7 @@ const P3 = {
|
|
|
11853
11853
|
toASN: (t) => new $c({ value: t })
|
|
11854
11854
|
}, xa = {
|
|
11855
11855
|
fromASN: (t) => t.valueBlock.valueHexView,
|
|
11856
|
-
toASN: (t) => new
|
|
11856
|
+
toASN: (t) => new Ur({ valueHex: t })
|
|
11857
11857
|
}, q3 = {
|
|
11858
11858
|
fromASN: (t) => new De(t.getValue()),
|
|
11859
11859
|
toASN: (t) => t.toASN()
|
|
@@ -11872,9 +11872,9 @@ const s2 = en(ir), z3 = en(Ec), V3 = en(Sc), H3 = en(kc), K3 = en(Nc), G3 = en(C
|
|
|
11872
11872
|
toASN: (t) => new jc({ valueDate: t })
|
|
11873
11873
|
}, n4 = {
|
|
11874
11874
|
fromASN: () => null,
|
|
11875
|
-
toASN: () => new
|
|
11875
|
+
toASN: () => new Vr()
|
|
11876
11876
|
};
|
|
11877
|
-
function
|
|
11877
|
+
function ks(t) {
|
|
11878
11878
|
switch (t) {
|
|
11879
11879
|
case T.Any:
|
|
11880
11880
|
return P3;
|
|
@@ -11977,7 +11977,7 @@ class i4 {
|
|
|
11977
11977
|
if (!h)
|
|
11978
11978
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
11979
11979
|
u = new h({ name: l });
|
|
11980
|
-
} else Hn(a.type) ? u = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === H.Choice ? u = new
|
|
11980
|
+
} else Hn(a.type) ? u = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === H.Choice ? u = new Hr({ name: l }) : (u = this.create(a.type, !1), u.name = l) : u = new Hr({ name: l });
|
|
11981
11981
|
const d = !!a.optional || a.defaultValue !== void 0;
|
|
11982
11982
|
if (a.repeated) {
|
|
11983
11983
|
u.name = "";
|
|
@@ -12039,21 +12039,21 @@ const st = new i4(), J = (t) => (e) => {
|
|
|
12039
12039
|
st.has(e.constructor) ? r = st.get(e.constructor) : (r = st.createDefault(e.constructor), st.set(e.constructor, r));
|
|
12040
12040
|
const i = Object.assign({}, t);
|
|
12041
12041
|
if (typeof i.type == "number" && !i.converter) {
|
|
12042
|
-
const s =
|
|
12042
|
+
const s = ks(t.type);
|
|
12043
12043
|
if (!s)
|
|
12044
12044
|
throw new Error(`Cannot get default converter for property '${n}' of ${e.constructor.name}`);
|
|
12045
12045
|
i.converter = s;
|
|
12046
12046
|
}
|
|
12047
12047
|
r.items[n] = i;
|
|
12048
12048
|
};
|
|
12049
|
-
class
|
|
12049
|
+
class gs extends Error {
|
|
12050
12050
|
constructor() {
|
|
12051
12051
|
super(...arguments), this.schemas = [];
|
|
12052
12052
|
}
|
|
12053
12053
|
}
|
|
12054
12054
|
class s4 {
|
|
12055
12055
|
static parse(e, n) {
|
|
12056
|
-
const r =
|
|
12056
|
+
const r = Ni(e);
|
|
12057
12057
|
if (r.result.error)
|
|
12058
12058
|
throw new Error(r.result.error);
|
|
12059
12059
|
return this.fromASN(r.result, n);
|
|
@@ -12075,7 +12075,7 @@ class s4 {
|
|
|
12075
12075
|
const l = a, u = new n();
|
|
12076
12076
|
return o2(n) ? this.handleArrayTypes(e, r, n) : (this.processSchemaItems(r, l, u), u);
|
|
12077
12077
|
} catch (r) {
|
|
12078
|
-
throw r instanceof
|
|
12078
|
+
throw r instanceof gs && r.schemas.push(n.name), r;
|
|
12079
12079
|
}
|
|
12080
12080
|
}
|
|
12081
12081
|
static handleChoiceTypes(e, n, r, i) {
|
|
@@ -12117,12 +12117,12 @@ class s4 {
|
|
|
12117
12117
|
return this.handleManualMapping(e, n, r);
|
|
12118
12118
|
const a = hr({}, e, i);
|
|
12119
12119
|
if (!a.verified)
|
|
12120
|
-
throw new
|
|
12120
|
+
throw new gs(`Data does not match to ${r.name} ASN1 schema. ${a.result.error}`);
|
|
12121
12121
|
return a;
|
|
12122
12122
|
} else {
|
|
12123
12123
|
const s = hr({}, e, i);
|
|
12124
12124
|
if (!s.verified)
|
|
12125
|
-
throw new
|
|
12125
|
+
throw new gs(`Data does not match to ${r.name} ASN1 schema. ${s.result.error}`);
|
|
12126
12126
|
return s;
|
|
12127
12127
|
}
|
|
12128
12128
|
}
|
|
@@ -12153,7 +12153,7 @@ class s4 {
|
|
|
12153
12153
|
s.valueBlock && s.valueBlock.value && Array.isArray(s.valueBlock.value) && (i = s.valueBlock.value);
|
|
12154
12154
|
}
|
|
12155
12155
|
if (typeof r.type == "number") {
|
|
12156
|
-
const s =
|
|
12156
|
+
const s = ks(r.type);
|
|
12157
12157
|
if (!s)
|
|
12158
12158
|
throw new Error(`No converter for ASN.1 type ${r.type}`);
|
|
12159
12159
|
return i.filter((a) => a && a.valueBlock).map((a) => {
|
|
@@ -12173,7 +12173,7 @@ class s4 {
|
|
|
12173
12173
|
}).filter((s) => s !== void 0);
|
|
12174
12174
|
}
|
|
12175
12175
|
static processPrimitiveField(e, n) {
|
|
12176
|
-
const r =
|
|
12176
|
+
const r = ks(n.type);
|
|
12177
12177
|
if (!r)
|
|
12178
12178
|
throw new Error(`No converter for ASN.1 type ${n.type}`);
|
|
12179
12179
|
return r.fromASN(e);
|
|
@@ -12185,7 +12185,7 @@ class s4 {
|
|
|
12185
12185
|
try {
|
|
12186
12186
|
return { processed: !0, value: this.fromASN(e, n.type) };
|
|
12187
12187
|
} catch (r) {
|
|
12188
|
-
if (r instanceof
|
|
12188
|
+
if (r instanceof gs && /Wrong values for Choice type/.test(r.message))
|
|
12189
12189
|
return { processed: !1 };
|
|
12190
12190
|
throw r;
|
|
12191
12191
|
}
|
|
@@ -12195,7 +12195,7 @@ class s4 {
|
|
|
12195
12195
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
12196
12196
|
const i = n.itemType;
|
|
12197
12197
|
if (typeof i == "number") {
|
|
12198
|
-
const s =
|
|
12198
|
+
const s = ks(i);
|
|
12199
12199
|
if (!s)
|
|
12200
12200
|
throw new Error(`Cannot get default converter for array item of ${r.name} ASN1 schema`);
|
|
12201
12201
|
return r.from(e.valueBlock.value, (a) => s.fromASN(a));
|
|
@@ -12222,7 +12222,7 @@ class s4 {
|
|
|
12222
12222
|
if (n.implicit) {
|
|
12223
12223
|
const i = n.repeated === "sequence" ? ln : Cn, s = new i();
|
|
12224
12224
|
s.valueBlock = e.valueBlock;
|
|
12225
|
-
const a =
|
|
12225
|
+
const a = Ni(s.toBER(!1));
|
|
12226
12226
|
if (a.offset === -1)
|
|
12227
12227
|
throw new Error(`Cannot parse the child item. ${a.result.error}`);
|
|
12228
12228
|
if (!("value" in a.result.valueBlock && Array.isArray(a.result.valueBlock.value)))
|
|
@@ -12244,7 +12244,7 @@ class s4 {
|
|
|
12244
12244
|
throw new Error(`Cannot get '${l}' class from asn1js module`);
|
|
12245
12245
|
a = new u();
|
|
12246
12246
|
}
|
|
12247
|
-
a.valueBlock = s.valueBlock, s =
|
|
12247
|
+
a.valueBlock = s.valueBlock, s = Ni(a.toBER(!1)).result;
|
|
12248
12248
|
}
|
|
12249
12249
|
return i.fromASN(s);
|
|
12250
12250
|
}
|
|
@@ -12259,7 +12259,7 @@ class s4 {
|
|
|
12259
12259
|
try {
|
|
12260
12260
|
return this.fromASN(i, r);
|
|
12261
12261
|
} catch (s) {
|
|
12262
|
-
if (s instanceof
|
|
12262
|
+
if (s instanceof gs && /Wrong values for Choice type/.test(s.message))
|
|
12263
12263
|
return;
|
|
12264
12264
|
throw s;
|
|
12265
12265
|
}
|
|
@@ -12299,7 +12299,7 @@ class Bp {
|
|
|
12299
12299
|
if (!Array.isArray(e))
|
|
12300
12300
|
throw new TypeError("Parameter 1 should be type of Array.");
|
|
12301
12301
|
if (typeof r.itemType == "number") {
|
|
12302
|
-
const a =
|
|
12302
|
+
const a = ks(r.itemType);
|
|
12303
12303
|
if (!a)
|
|
12304
12304
|
throw new Error(`Cannot get default converter for array item of ${n.name} ASN1 schema`);
|
|
12305
12305
|
i = e.map((l) => a.toASN(l));
|
|
@@ -12315,7 +12315,7 @@ class Bp {
|
|
|
12315
12315
|
if (l.implicit)
|
|
12316
12316
|
if (!l.repeated && (typeof l.type == "number" || Hn(l.type))) {
|
|
12317
12317
|
const p = {};
|
|
12318
|
-
p.valueHex = d instanceof
|
|
12318
|
+
p.valueHex = d instanceof Vr ? d.valueBeforeDecodeView : d.valueBlock.toBER(), i.push(new co({
|
|
12319
12319
|
optional: l.optional,
|
|
12320
12320
|
idBlock: {
|
|
12321
12321
|
tagClass: 3,
|
|
@@ -12405,7 +12405,7 @@ class re {
|
|
|
12405
12405
|
return s4.parse(e, n);
|
|
12406
12406
|
}
|
|
12407
12407
|
static toString(e) {
|
|
12408
|
-
const n = ie.isBufferSource(e) ? ie.toArrayBuffer(e) : re.serialize(e), r =
|
|
12408
|
+
const n = ie.isBufferSource(e) ? ie.toArrayBuffer(e) : re.serialize(e), r = Ni(n);
|
|
12409
12409
|
if (r.offset === -1)
|
|
12410
12410
|
throw new Error(`Cannot decode ASN.1 data. ${r.result.error}`);
|
|
12411
12411
|
return r.result.toString();
|
|
@@ -12547,7 +12547,7 @@ m([
|
|
|
12547
12547
|
gt = m([
|
|
12548
12548
|
J({ type: H.Choice })
|
|
12549
12549
|
], gt);
|
|
12550
|
-
let
|
|
12550
|
+
let Ri = class extends gt {
|
|
12551
12551
|
constructor(e = {}) {
|
|
12552
12552
|
super(e), Object.assign(this, e);
|
|
12553
12553
|
}
|
|
@@ -12557,39 +12557,39 @@ let Di = class extends gt {
|
|
|
12557
12557
|
};
|
|
12558
12558
|
m([
|
|
12559
12559
|
w({ type: T.IA5String })
|
|
12560
|
-
],
|
|
12560
|
+
], Ri.prototype, "ia5String", void 0);
|
|
12561
12561
|
m([
|
|
12562
12562
|
w({ type: T.Any })
|
|
12563
|
-
],
|
|
12564
|
-
|
|
12563
|
+
], Ri.prototype, "anyValue", void 0);
|
|
12564
|
+
Ri = m([
|
|
12565
12565
|
J({ type: H.Choice })
|
|
12566
|
-
],
|
|
12566
|
+
], Ri);
|
|
12567
12567
|
class Bc {
|
|
12568
12568
|
constructor(e = {}) {
|
|
12569
|
-
this.type = "", this.value = new
|
|
12569
|
+
this.type = "", this.value = new Ri(), Object.assign(this, e);
|
|
12570
12570
|
}
|
|
12571
12571
|
}
|
|
12572
12572
|
m([
|
|
12573
12573
|
w({ type: T.ObjectIdentifier })
|
|
12574
12574
|
], Bc.prototype, "type", void 0);
|
|
12575
12575
|
m([
|
|
12576
|
-
w({ type:
|
|
12576
|
+
w({ type: Ri })
|
|
12577
12577
|
], Bc.prototype, "value", void 0);
|
|
12578
|
-
let
|
|
12578
|
+
let ji = Ru = class extends Pe {
|
|
12579
12579
|
constructor(e) {
|
|
12580
12580
|
super(e), Object.setPrototypeOf(this, Ru.prototype);
|
|
12581
12581
|
}
|
|
12582
12582
|
};
|
|
12583
|
-
|
|
12583
|
+
ji = Ru = m([
|
|
12584
12584
|
J({ type: H.Set, itemType: Bc })
|
|
12585
|
-
],
|
|
12585
|
+
], ji);
|
|
12586
12586
|
let Bu = ju = class extends Pe {
|
|
12587
12587
|
constructor(e) {
|
|
12588
12588
|
super(e), Object.setPrototypeOf(this, ju.prototype);
|
|
12589
12589
|
}
|
|
12590
12590
|
};
|
|
12591
12591
|
Bu = ju = m([
|
|
12592
|
-
J({ type: H.Sequence, itemType:
|
|
12592
|
+
J({ type: H.Sequence, itemType: ji })
|
|
12593
12593
|
], Bu);
|
|
12594
12594
|
let et = Pu = class extends Bu {
|
|
12595
12595
|
constructor(e) {
|
|
@@ -12665,7 +12665,7 @@ m([
|
|
|
12665
12665
|
Te = m([
|
|
12666
12666
|
J({ type: H.Choice })
|
|
12667
12667
|
], Te);
|
|
12668
|
-
const Fp = "1.3.6.1.5.5.7", a4 = `${Fp}.1`,
|
|
12668
|
+
const Fp = "1.3.6.1.5.5.7", a4 = `${Fp}.1`, Qi = `${Fp}.3`, Lc = `${Fp}.48`, Rh = `${Lc}.1`, jh = `${Lc}.2`, Ph = `${Lc}.3`, Bh = `${Lc}.5`, sr = "2.5.29";
|
|
12669
12669
|
var Lu;
|
|
12670
12670
|
const Fu = `${a4}.1`;
|
|
12671
12671
|
class po {
|
|
@@ -12679,14 +12679,14 @@ m([
|
|
|
12679
12679
|
m([
|
|
12680
12680
|
w({ type: Te })
|
|
12681
12681
|
], po.prototype, "accessLocation", void 0);
|
|
12682
|
-
let
|
|
12682
|
+
let Si = Lu = class extends Pe {
|
|
12683
12683
|
constructor(e) {
|
|
12684
12684
|
super(e), Object.setPrototypeOf(this, Lu.prototype);
|
|
12685
12685
|
}
|
|
12686
12686
|
};
|
|
12687
|
-
|
|
12687
|
+
Si = Lu = m([
|
|
12688
12688
|
J({ type: H.Sequence, itemType: po })
|
|
12689
|
-
],
|
|
12689
|
+
], Si);
|
|
12690
12690
|
const Uu = `${sr}.35`;
|
|
12691
12691
|
class Up extends De {
|
|
12692
12692
|
}
|
|
@@ -12862,50 +12862,50 @@ class l2 extends Pc {
|
|
|
12862
12862
|
return `[${this.toJSON().join(", ")}]`;
|
|
12863
12863
|
}
|
|
12864
12864
|
}
|
|
12865
|
-
let
|
|
12865
|
+
let Kr = class {
|
|
12866
12866
|
constructor(e = {}) {
|
|
12867
12867
|
Object.assign(this, e);
|
|
12868
12868
|
}
|
|
12869
12869
|
};
|
|
12870
12870
|
m([
|
|
12871
12871
|
w({ type: Te, context: 0, repeated: "sequence", implicit: !0 })
|
|
12872
|
-
],
|
|
12872
|
+
], Kr.prototype, "fullName", void 0);
|
|
12873
12873
|
m([
|
|
12874
|
-
w({ type:
|
|
12875
|
-
],
|
|
12876
|
-
|
|
12874
|
+
w({ type: ji, context: 1, implicit: !0 })
|
|
12875
|
+
], Kr.prototype, "nameRelativeToCRLIssuer", void 0);
|
|
12876
|
+
Kr = m([
|
|
12877
12877
|
J({ type: H.Choice })
|
|
12878
|
-
],
|
|
12879
|
-
class
|
|
12878
|
+
], Kr);
|
|
12879
|
+
class es {
|
|
12880
12880
|
constructor(e = {}) {
|
|
12881
12881
|
Object.assign(this, e);
|
|
12882
12882
|
}
|
|
12883
12883
|
}
|
|
12884
12884
|
m([
|
|
12885
|
-
w({ type:
|
|
12886
|
-
],
|
|
12885
|
+
w({ type: Kr, context: 0, optional: !0 })
|
|
12886
|
+
], es.prototype, "distributionPoint", void 0);
|
|
12887
12887
|
m([
|
|
12888
12888
|
w({ type: l2, context: 1, optional: !0, implicit: !0 })
|
|
12889
|
-
],
|
|
12889
|
+
], es.prototype, "reasons", void 0);
|
|
12890
12890
|
m([
|
|
12891
12891
|
w({ type: Te, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
12892
|
-
],
|
|
12893
|
-
let
|
|
12892
|
+
], es.prototype, "cRLIssuer", void 0);
|
|
12893
|
+
let Ci = Vu = class extends Pe {
|
|
12894
12894
|
constructor(e) {
|
|
12895
12895
|
super(e), Object.setPrototypeOf(this, Vu.prototype);
|
|
12896
12896
|
}
|
|
12897
12897
|
};
|
|
12898
|
-
|
|
12899
|
-
J({ type: H.Sequence, itemType:
|
|
12900
|
-
],
|
|
12898
|
+
Ci = Vu = m([
|
|
12899
|
+
J({ type: H.Sequence, itemType: es })
|
|
12900
|
+
], Ci);
|
|
12901
12901
|
var Ku;
|
|
12902
|
-
let Uh = Ku = class extends
|
|
12902
|
+
let Uh = Ku = class extends Ci {
|
|
12903
12903
|
constructor(e) {
|
|
12904
12904
|
super(e), Object.setPrototypeOf(this, Ku.prototype);
|
|
12905
12905
|
}
|
|
12906
12906
|
};
|
|
12907
12907
|
Uh = Ku = m([
|
|
12908
|
-
J({ type: H.Sequence, itemType:
|
|
12908
|
+
J({ type: H.Sequence, itemType: es })
|
|
12909
12909
|
], Uh);
|
|
12910
12910
|
class _t {
|
|
12911
12911
|
constructor(e = {}) {
|
|
@@ -12914,7 +12914,7 @@ class _t {
|
|
|
12914
12914
|
}
|
|
12915
12915
|
_t.ONLY = !1;
|
|
12916
12916
|
m([
|
|
12917
|
-
w({ type:
|
|
12917
|
+
w({ type: Kr, context: 0, optional: !0 })
|
|
12918
12918
|
], _t.prototype, "distributionPoint", void 0);
|
|
12919
12919
|
m([
|
|
12920
12920
|
w({
|
|
@@ -12951,16 +12951,16 @@ m([
|
|
|
12951
12951
|
implicit: !0
|
|
12952
12952
|
})
|
|
12953
12953
|
], _t.prototype, "onlyContainsAttributeCerts", void 0);
|
|
12954
|
-
var
|
|
12954
|
+
var Ns;
|
|
12955
12955
|
(function(t) {
|
|
12956
12956
|
t[t.unspecified = 0] = "unspecified", t[t.keyCompromise = 1] = "keyCompromise", t[t.cACompromise = 2] = "cACompromise", t[t.affiliationChanged = 3] = "affiliationChanged", t[t.superseded = 4] = "superseded", t[t.cessationOfOperation = 5] = "cessationOfOperation", t[t.certificateHold = 6] = "certificateHold", t[t.removeFromCRL = 8] = "removeFromCRL", t[t.privilegeWithdrawn = 9] = "privilegeWithdrawn", t[t.aACompromise = 10] = "aACompromise";
|
|
12957
|
-
})(
|
|
12957
|
+
})(Ns || (Ns = {}));
|
|
12958
12958
|
let Gu = class {
|
|
12959
|
-
constructor(e =
|
|
12960
|
-
this.reason =
|
|
12959
|
+
constructor(e = Ns.unspecified) {
|
|
12960
|
+
this.reason = Ns.unspecified, this.reason = e;
|
|
12961
12961
|
}
|
|
12962
12962
|
toJSON() {
|
|
12963
|
-
return
|
|
12963
|
+
return Ns[this.reason];
|
|
12964
12964
|
}
|
|
12965
12965
|
toString() {
|
|
12966
12966
|
return this.toJSON();
|
|
@@ -12982,7 +12982,7 @@ let Na = Wu = class extends Pe {
|
|
|
12982
12982
|
Na = Wu = m([
|
|
12983
12983
|
J({ type: H.Sequence, itemType: T.ObjectIdentifier })
|
|
12984
12984
|
], Na);
|
|
12985
|
-
const c4 = `${
|
|
12985
|
+
const c4 = `${Qi}.1`, l4 = `${Qi}.2`, u4 = `${Qi}.3`, d4 = `${Qi}.4`, p4 = `${Qi}.8`, f4 = `${Qi}.9`;
|
|
12986
12986
|
let Xu = class {
|
|
12987
12987
|
constructor(e = new ArrayBuffer(0)) {
|
|
12988
12988
|
this.value = e;
|
|
@@ -13150,14 +13150,14 @@ m([
|
|
|
13150
13150
|
m([
|
|
13151
13151
|
w({ type: T.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
13152
13152
|
], _2.prototype, "notAfter", void 0);
|
|
13153
|
-
var
|
|
13153
|
+
var Cs;
|
|
13154
13154
|
(function(t) {
|
|
13155
13155
|
t[t.keyUpdateAllowed = 1] = "keyUpdateAllowed", t[t.newExtensions = 2] = "newExtensions", t[t.pKIXCertificate = 4] = "pKIXCertificate";
|
|
13156
|
-
})(
|
|
13156
|
+
})(Cs || (Cs = {}));
|
|
13157
13157
|
class y2 extends Pc {
|
|
13158
13158
|
toJSON() {
|
|
13159
13159
|
const e = [], n = this.toNumber();
|
|
13160
|
-
return n &
|
|
13160
|
+
return n & Cs.pKIXCertificate && e.push("pKIXCertificate"), n & Cs.newExtensions && e.push("newExtensions"), n & Cs.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
|
|
13161
13161
|
}
|
|
13162
13162
|
toString() {
|
|
13163
13163
|
return `[${this.toJSON().join(", ")}]`;
|
|
@@ -13280,20 +13280,20 @@ let br = id = class extends Pe {
|
|
|
13280
13280
|
br = id = m([
|
|
13281
13281
|
J({ type: H.Sequence, itemType: Qt })
|
|
13282
13282
|
], br);
|
|
13283
|
-
var
|
|
13283
|
+
var Gr;
|
|
13284
13284
|
(function(t) {
|
|
13285
13285
|
t[t.v1 = 0] = "v1", t[t.v2 = 1] = "v2", t[t.v3 = 2] = "v3";
|
|
13286
|
-
})(
|
|
13286
|
+
})(Gr || (Gr = {}));
|
|
13287
13287
|
class Vt {
|
|
13288
13288
|
constructor(e = {}) {
|
|
13289
|
-
this.version =
|
|
13289
|
+
this.version = Gr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new ue(), this.issuer = new et(), this.validity = new fo(), this.subject = new et(), this.subjectPublicKeyInfo = new an(), Object.assign(this, e);
|
|
13290
13290
|
}
|
|
13291
13291
|
}
|
|
13292
13292
|
m([
|
|
13293
13293
|
w({
|
|
13294
13294
|
type: T.Integer,
|
|
13295
13295
|
context: 0,
|
|
13296
|
-
defaultValue:
|
|
13296
|
+
defaultValue: Gr.v1
|
|
13297
13297
|
})
|
|
13298
13298
|
], Vt.prototype, "version", void 0);
|
|
13299
13299
|
m([
|
|
@@ -13331,20 +13331,20 @@ m([
|
|
|
13331
13331
|
m([
|
|
13332
13332
|
w({ type: br, context: 3, optional: !0 })
|
|
13333
13333
|
], Vt.prototype, "extensions", void 0);
|
|
13334
|
-
class
|
|
13334
|
+
class Wr {
|
|
13335
13335
|
constructor(e = {}) {
|
|
13336
13336
|
this.tbsCertificate = new Vt(), this.signatureAlgorithm = new ue(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
13337
13337
|
}
|
|
13338
13338
|
}
|
|
13339
13339
|
m([
|
|
13340
13340
|
w({ type: Vt })
|
|
13341
|
-
],
|
|
13341
|
+
], Wr.prototype, "tbsCertificate", void 0);
|
|
13342
13342
|
m([
|
|
13343
13343
|
w({ type: ue })
|
|
13344
|
-
],
|
|
13344
|
+
], Wr.prototype, "signatureAlgorithm", void 0);
|
|
13345
13345
|
m([
|
|
13346
13346
|
w({ type: T.BitString })
|
|
13347
|
-
],
|
|
13347
|
+
], Wr.prototype, "signatureValue", void 0);
|
|
13348
13348
|
class Mc {
|
|
13349
13349
|
constructor(e = {}) {
|
|
13350
13350
|
this.userCertificate = new ArrayBuffer(0), this.revocationDate = new pt(), Object.assign(this, e);
|
|
@@ -13399,31 +13399,31 @@ m([
|
|
|
13399
13399
|
m([
|
|
13400
13400
|
w({ type: T.BitString })
|
|
13401
13401
|
], Hp.prototype, "signature", void 0);
|
|
13402
|
-
class
|
|
13402
|
+
class ts {
|
|
13403
13403
|
constructor(e = {}) {
|
|
13404
13404
|
this.issuer = new et(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
|
|
13405
13405
|
}
|
|
13406
13406
|
}
|
|
13407
13407
|
m([
|
|
13408
13408
|
w({ type: et })
|
|
13409
|
-
],
|
|
13409
|
+
], ts.prototype, "issuer", void 0);
|
|
13410
13410
|
m([
|
|
13411
13411
|
w({ type: T.Integer, converter: He })
|
|
13412
|
-
],
|
|
13413
|
-
let
|
|
13412
|
+
], ts.prototype, "serialNumber", void 0);
|
|
13413
|
+
let Pi = class {
|
|
13414
13414
|
constructor(e = {}) {
|
|
13415
13415
|
Object.assign(this, e);
|
|
13416
13416
|
}
|
|
13417
13417
|
};
|
|
13418
13418
|
m([
|
|
13419
13419
|
w({ type: yr, context: 0, implicit: !0 })
|
|
13420
|
-
],
|
|
13420
|
+
], Pi.prototype, "subjectKeyIdentifier", void 0);
|
|
13421
13421
|
m([
|
|
13422
|
-
w({ type:
|
|
13423
|
-
],
|
|
13424
|
-
|
|
13422
|
+
w({ type: ts })
|
|
13423
|
+
], Pi.prototype, "issuerAndSerialNumber", void 0);
|
|
13424
|
+
Pi = m([
|
|
13425
13425
|
J({ type: H.Choice })
|
|
13426
|
-
],
|
|
13426
|
+
], Pi);
|
|
13427
13427
|
var Jn;
|
|
13428
13428
|
(function(t) {
|
|
13429
13429
|
t[t.v0 = 0] = "v0", t[t.v1 = 1] = "v1", t[t.v2 = 2] = "v2", t[t.v3 = 3] = "v3", t[t.v4 = 4] = "v4", t[t.v5 = 5] = "v5";
|
|
@@ -13458,34 +13458,34 @@ let sd = class extends ue {
|
|
|
13458
13458
|
sd = m([
|
|
13459
13459
|
J({ type: H.Sequence })
|
|
13460
13460
|
], sd);
|
|
13461
|
-
let
|
|
13461
|
+
let ns = class {
|
|
13462
13462
|
constructor(e = {}) {
|
|
13463
13463
|
this.attrType = "", this.attrValues = [], Object.assign(this, e);
|
|
13464
13464
|
}
|
|
13465
13465
|
};
|
|
13466
13466
|
m([
|
|
13467
13467
|
w({ type: T.ObjectIdentifier })
|
|
13468
|
-
],
|
|
13468
|
+
], ns.prototype, "attrType", void 0);
|
|
13469
13469
|
m([
|
|
13470
13470
|
w({ type: T.Any, repeated: "set" })
|
|
13471
|
-
],
|
|
13471
|
+
], ns.prototype, "attrValues", void 0);
|
|
13472
13472
|
var od;
|
|
13473
13473
|
class jn {
|
|
13474
13474
|
constructor(e = {}) {
|
|
13475
|
-
this.version = Jn.v0, this.sid = new
|
|
13475
|
+
this.version = Jn.v0, this.sid = new Pi(), this.digestAlgorithm = new Ls(), this.signatureAlgorithm = new Ta(), this.signature = new De(), Object.assign(this, e);
|
|
13476
13476
|
}
|
|
13477
13477
|
}
|
|
13478
13478
|
m([
|
|
13479
13479
|
w({ type: T.Integer })
|
|
13480
13480
|
], jn.prototype, "version", void 0);
|
|
13481
13481
|
m([
|
|
13482
|
-
w({ type:
|
|
13482
|
+
w({ type: Pi })
|
|
13483
13483
|
], jn.prototype, "sid", void 0);
|
|
13484
13484
|
m([
|
|
13485
13485
|
w({ type: Ls })
|
|
13486
13486
|
], jn.prototype, "digestAlgorithm", void 0);
|
|
13487
13487
|
m([
|
|
13488
|
-
w({ type:
|
|
13488
|
+
w({ type: ns, repeated: "set", context: 0, implicit: !0, optional: !0 })
|
|
13489
13489
|
], jn.prototype, "signedAttrs", void 0);
|
|
13490
13490
|
m([
|
|
13491
13491
|
w({ type: Ta })
|
|
@@ -13494,7 +13494,7 @@ m([
|
|
|
13494
13494
|
w({ type: De })
|
|
13495
13495
|
], jn.prototype, "signature", void 0);
|
|
13496
13496
|
m([
|
|
13497
|
-
w({ type:
|
|
13497
|
+
w({ type: ns, repeated: "set", context: 1, implicit: !0, optional: !0 })
|
|
13498
13498
|
], jn.prototype, "unsignedAttrs", void 0);
|
|
13499
13499
|
let Oa = od = class extends Pe {
|
|
13500
13500
|
constructor(e) {
|
|
@@ -13554,41 +13554,41 @@ m([
|
|
|
13554
13554
|
m([
|
|
13555
13555
|
w({ type: T.Boolean, defaultValue: !0 })
|
|
13556
13556
|
], qc.prototype, "permitUnSpecified", void 0);
|
|
13557
|
-
class
|
|
13557
|
+
class ci {
|
|
13558
13558
|
constructor(e = {}) {
|
|
13559
13559
|
this.issuer = new yt(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
|
|
13560
13560
|
}
|
|
13561
13561
|
}
|
|
13562
13562
|
m([
|
|
13563
13563
|
w({ type: yt })
|
|
13564
|
-
],
|
|
13564
|
+
], ci.prototype, "issuer", void 0);
|
|
13565
13565
|
m([
|
|
13566
13566
|
w({ type: T.Integer, converter: He })
|
|
13567
|
-
],
|
|
13567
|
+
], ci.prototype, "serial", void 0);
|
|
13568
13568
|
m([
|
|
13569
13569
|
w({ type: T.BitString, optional: !0 })
|
|
13570
|
-
],
|
|
13570
|
+
], ci.prototype, "issuerUID", void 0);
|
|
13571
13571
|
var cd;
|
|
13572
13572
|
(function(t) {
|
|
13573
13573
|
t[t.publicKey = 0] = "publicKey", t[t.publicKeyCert = 1] = "publicKeyCert", t[t.otherObjectTypes = 2] = "otherObjectTypes";
|
|
13574
13574
|
})(cd || (cd = {}));
|
|
13575
|
-
class
|
|
13575
|
+
class li {
|
|
13576
13576
|
constructor(e = {}) {
|
|
13577
13577
|
this.digestedObjectType = cd.publicKey, this.digestAlgorithm = new ue(), this.objectDigest = new ArrayBuffer(0), Object.assign(this, e);
|
|
13578
13578
|
}
|
|
13579
13579
|
}
|
|
13580
13580
|
m([
|
|
13581
13581
|
w({ type: T.Enumerated })
|
|
13582
|
-
],
|
|
13582
|
+
], li.prototype, "digestedObjectType", void 0);
|
|
13583
13583
|
m([
|
|
13584
13584
|
w({ type: T.ObjectIdentifier, optional: !0 })
|
|
13585
|
-
],
|
|
13585
|
+
], li.prototype, "otherObjectTypeID", void 0);
|
|
13586
13586
|
m([
|
|
13587
13587
|
w({ type: ue })
|
|
13588
|
-
],
|
|
13588
|
+
], li.prototype, "digestAlgorithm", void 0);
|
|
13589
13589
|
m([
|
|
13590
13590
|
w({ type: T.BitString })
|
|
13591
|
-
],
|
|
13591
|
+
], li.prototype, "objectDigest", void 0);
|
|
13592
13592
|
class zc {
|
|
13593
13593
|
constructor(e = {}) {
|
|
13594
13594
|
Object.assign(this, e);
|
|
@@ -13598,25 +13598,25 @@ m([
|
|
|
13598
13598
|
w({ type: yt, optional: !0 })
|
|
13599
13599
|
], zc.prototype, "issuerName", void 0);
|
|
13600
13600
|
m([
|
|
13601
|
-
w({ type:
|
|
13601
|
+
w({ type: ci, context: 0, implicit: !0, optional: !0 })
|
|
13602
13602
|
], zc.prototype, "baseCertificateID", void 0);
|
|
13603
13603
|
m([
|
|
13604
|
-
w({ type:
|
|
13604
|
+
w({ type: li, context: 1, implicit: !0, optional: !0 })
|
|
13605
13605
|
], zc.prototype, "objectDigestInfo", void 0);
|
|
13606
|
-
let
|
|
13606
|
+
let Bi = class {
|
|
13607
13607
|
constructor(e = {}) {
|
|
13608
13608
|
Object.assign(this, e);
|
|
13609
13609
|
}
|
|
13610
13610
|
};
|
|
13611
13611
|
m([
|
|
13612
13612
|
w({ type: Te, repeated: "sequence" })
|
|
13613
|
-
],
|
|
13613
|
+
], Bi.prototype, "v1Form", void 0);
|
|
13614
13614
|
m([
|
|
13615
13615
|
w({ type: zc, context: 0, implicit: !0 })
|
|
13616
|
-
],
|
|
13617
|
-
|
|
13616
|
+
], Bi.prototype, "v2Form", void 0);
|
|
13617
|
+
Bi = m([
|
|
13618
13618
|
J({ type: H.Choice })
|
|
13619
|
-
],
|
|
13619
|
+
], Bi);
|
|
13620
13620
|
class Vc {
|
|
13621
13621
|
constructor(e = {}) {
|
|
13622
13622
|
this.notBeforeTime = /* @__PURE__ */ new Date(), this.notAfterTime = /* @__PURE__ */ new Date(), Object.assign(this, e);
|
|
@@ -13634,13 +13634,13 @@ class ho {
|
|
|
13634
13634
|
}
|
|
13635
13635
|
}
|
|
13636
13636
|
m([
|
|
13637
|
-
w({ type:
|
|
13637
|
+
w({ type: ci, implicit: !0, context: 0, optional: !0 })
|
|
13638
13638
|
], ho.prototype, "baseCertificateID", void 0);
|
|
13639
13639
|
m([
|
|
13640
13640
|
w({ type: yt, implicit: !0, context: 1, optional: !0 })
|
|
13641
13641
|
], ho.prototype, "entityName", void 0);
|
|
13642
13642
|
m([
|
|
13643
|
-
w({ type:
|
|
13643
|
+
w({ type: li, implicit: !0, context: 2, optional: !0 })
|
|
13644
13644
|
], ho.prototype, "objectDigestInfo", void 0);
|
|
13645
13645
|
var ld;
|
|
13646
13646
|
(function(t) {
|
|
@@ -13648,7 +13648,7 @@ var ld;
|
|
|
13648
13648
|
})(ld || (ld = {}));
|
|
13649
13649
|
class vn {
|
|
13650
13650
|
constructor(e = {}) {
|
|
13651
|
-
this.version = ld.v2, this.holder = new ho(), this.issuer = new
|
|
13651
|
+
this.version = ld.v2, this.holder = new ho(), this.issuer = new Bi(), this.signature = new ue(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new Vc(), this.attributes = [], Object.assign(this, e);
|
|
13652
13652
|
}
|
|
13653
13653
|
}
|
|
13654
13654
|
m([
|
|
@@ -13658,7 +13658,7 @@ m([
|
|
|
13658
13658
|
w({ type: ho })
|
|
13659
13659
|
], vn.prototype, "holder", void 0);
|
|
13660
13660
|
m([
|
|
13661
|
-
w({ type:
|
|
13661
|
+
w({ type: Bi })
|
|
13662
13662
|
], vn.prototype, "issuer", void 0);
|
|
13663
13663
|
m([
|
|
13664
13664
|
w({ type: ue })
|
|
@@ -13751,42 +13751,42 @@ m([
|
|
|
13751
13751
|
var dd;
|
|
13752
13752
|
class Gc {
|
|
13753
13753
|
constructor(e = {}) {
|
|
13754
|
-
this.targetCertificate = new
|
|
13754
|
+
this.targetCertificate = new ci(), Object.assign(this, e);
|
|
13755
13755
|
}
|
|
13756
13756
|
}
|
|
13757
13757
|
m([
|
|
13758
|
-
w({ type:
|
|
13758
|
+
w({ type: ci })
|
|
13759
13759
|
], Gc.prototype, "targetCertificate", void 0);
|
|
13760
13760
|
m([
|
|
13761
13761
|
w({ type: Te, optional: !0 })
|
|
13762
13762
|
], Gc.prototype, "targetName", void 0);
|
|
13763
13763
|
m([
|
|
13764
|
-
w({ type:
|
|
13764
|
+
w({ type: li, optional: !0 })
|
|
13765
13765
|
], Gc.prototype, "certDigestInfo", void 0);
|
|
13766
|
-
let
|
|
13766
|
+
let Li = class {
|
|
13767
13767
|
constructor(e = {}) {
|
|
13768
13768
|
Object.assign(this, e);
|
|
13769
13769
|
}
|
|
13770
13770
|
};
|
|
13771
13771
|
m([
|
|
13772
13772
|
w({ type: Te, context: 0, implicit: !0 })
|
|
13773
|
-
],
|
|
13773
|
+
], Li.prototype, "targetName", void 0);
|
|
13774
13774
|
m([
|
|
13775
13775
|
w({ type: Te, context: 1, implicit: !0 })
|
|
13776
|
-
],
|
|
13776
|
+
], Li.prototype, "targetGroup", void 0);
|
|
13777
13777
|
m([
|
|
13778
13778
|
w({ type: Gc, context: 2, implicit: !0 })
|
|
13779
|
-
],
|
|
13780
|
-
|
|
13779
|
+
], Li.prototype, "targetCert", void 0);
|
|
13780
|
+
Li = m([
|
|
13781
13781
|
J({ type: H.Choice })
|
|
13782
|
-
],
|
|
13782
|
+
], Li);
|
|
13783
13783
|
let pd = dd = class extends Pe {
|
|
13784
13784
|
constructor(e) {
|
|
13785
13785
|
super(e), Object.setPrototypeOf(this, dd.prototype);
|
|
13786
13786
|
}
|
|
13787
13787
|
};
|
|
13788
13788
|
pd = dd = m([
|
|
13789
|
-
J({ type: H.Sequence, itemType:
|
|
13789
|
+
J({ type: H.Sequence, itemType: Li })
|
|
13790
13790
|
], pd);
|
|
13791
13791
|
var fd;
|
|
13792
13792
|
let Wh = fd = class extends Pe {
|
|
@@ -13834,42 +13834,42 @@ m([
|
|
|
13834
13834
|
m([
|
|
13835
13835
|
w({ type: T.Any })
|
|
13836
13836
|
], Jp.prototype, "otherCert", void 0);
|
|
13837
|
-
let
|
|
13837
|
+
let Fi = class {
|
|
13838
13838
|
constructor(e = {}) {
|
|
13839
13839
|
Object.assign(this, e);
|
|
13840
13840
|
}
|
|
13841
13841
|
};
|
|
13842
13842
|
m([
|
|
13843
|
-
w({ type:
|
|
13844
|
-
],
|
|
13843
|
+
w({ type: Wr })
|
|
13844
|
+
], Fi.prototype, "certificate", void 0);
|
|
13845
13845
|
m([
|
|
13846
13846
|
w({ type: Hc, context: 2, implicit: !0 })
|
|
13847
|
-
],
|
|
13847
|
+
], Fi.prototype, "v2AttrCert", void 0);
|
|
13848
13848
|
m([
|
|
13849
13849
|
w({ type: Jp, context: 3, implicit: !0 })
|
|
13850
|
-
],
|
|
13851
|
-
|
|
13850
|
+
], Fi.prototype, "other", void 0);
|
|
13851
|
+
Fi = m([
|
|
13852
13852
|
J({ type: H.Choice })
|
|
13853
|
-
],
|
|
13853
|
+
], Fi);
|
|
13854
13854
|
let ja = hd = class extends Pe {
|
|
13855
13855
|
constructor(e) {
|
|
13856
13856
|
super(e), Object.setPrototypeOf(this, hd.prototype);
|
|
13857
13857
|
}
|
|
13858
13858
|
};
|
|
13859
13859
|
ja = hd = m([
|
|
13860
|
-
J({ type: H.Set, itemType:
|
|
13860
|
+
J({ type: H.Set, itemType: Fi })
|
|
13861
13861
|
], ja);
|
|
13862
|
-
class
|
|
13862
|
+
class rs {
|
|
13863
13863
|
constructor(e = {}) {
|
|
13864
13864
|
this.contentType = "", this.content = new ArrayBuffer(0), Object.assign(this, e);
|
|
13865
13865
|
}
|
|
13866
13866
|
}
|
|
13867
13867
|
m([
|
|
13868
13868
|
w({ type: T.ObjectIdentifier })
|
|
13869
|
-
],
|
|
13869
|
+
], rs.prototype, "contentType", void 0);
|
|
13870
13870
|
m([
|
|
13871
13871
|
w({ type: T.Any, context: 0 })
|
|
13872
|
-
],
|
|
13872
|
+
], rs.prototype, "content", void 0);
|
|
13873
13873
|
let Fs = class {
|
|
13874
13874
|
constructor(e = {}) {
|
|
13875
13875
|
Object.assign(this, e);
|
|
@@ -13956,27 +13956,27 @@ m([
|
|
|
13956
13956
|
m([
|
|
13957
13957
|
w({ type: Xc, optional: !0 })
|
|
13958
13958
|
], Jc.prototype, "other", void 0);
|
|
13959
|
-
let
|
|
13959
|
+
let Ui = class {
|
|
13960
13960
|
constructor(e = {}) {
|
|
13961
13961
|
Object.assign(this, e);
|
|
13962
13962
|
}
|
|
13963
13963
|
};
|
|
13964
13964
|
m([
|
|
13965
13965
|
w({ type: Jc, context: 0, implicit: !0, optional: !0 })
|
|
13966
|
-
],
|
|
13966
|
+
], Ui.prototype, "rKeyId", void 0);
|
|
13967
13967
|
m([
|
|
13968
|
-
w({ type:
|
|
13969
|
-
],
|
|
13970
|
-
|
|
13968
|
+
w({ type: ts, optional: !0 })
|
|
13969
|
+
], Ui.prototype, "issuerAndSerialNumber", void 0);
|
|
13970
|
+
Ui = m([
|
|
13971
13971
|
J({ type: H.Choice })
|
|
13972
|
-
],
|
|
13972
|
+
], Ui);
|
|
13973
13973
|
class Yp {
|
|
13974
13974
|
constructor(e = {}) {
|
|
13975
|
-
this.rid = new
|
|
13975
|
+
this.rid = new Ui(), this.encryptedKey = new De(), Object.assign(this, e);
|
|
13976
13976
|
}
|
|
13977
13977
|
}
|
|
13978
13978
|
m([
|
|
13979
|
-
w({ type:
|
|
13979
|
+
w({ type: Ui })
|
|
13980
13980
|
], Yp.prototype, "rid", void 0);
|
|
13981
13981
|
m([
|
|
13982
13982
|
w({ type: De })
|
|
@@ -14000,67 +14000,67 @@ m([
|
|
|
14000
14000
|
m([
|
|
14001
14001
|
w({ type: T.BitString })
|
|
14002
14002
|
], Zp.prototype, "publicKey", void 0);
|
|
14003
|
-
let
|
|
14003
|
+
let Xr = class {
|
|
14004
14004
|
constructor(e = {}) {
|
|
14005
14005
|
Object.assign(this, e);
|
|
14006
14006
|
}
|
|
14007
14007
|
};
|
|
14008
14008
|
m([
|
|
14009
14009
|
w({ type: yr, context: 0, implicit: !0, optional: !0 })
|
|
14010
|
-
],
|
|
14010
|
+
], Xr.prototype, "subjectKeyIdentifier", void 0);
|
|
14011
14011
|
m([
|
|
14012
14012
|
w({ type: Zp, context: 1, implicit: !0, optional: !0 })
|
|
14013
|
-
],
|
|
14013
|
+
], Xr.prototype, "originatorKey", void 0);
|
|
14014
14014
|
m([
|
|
14015
|
-
w({ type:
|
|
14016
|
-
],
|
|
14017
|
-
|
|
14015
|
+
w({ type: ts, optional: !0 })
|
|
14016
|
+
], Xr.prototype, "issuerAndSerialNumber", void 0);
|
|
14017
|
+
Xr = m([
|
|
14018
14018
|
J({ type: H.Choice })
|
|
14019
|
-
],
|
|
14020
|
-
class
|
|
14019
|
+
], Xr);
|
|
14020
|
+
class is {
|
|
14021
14021
|
constructor(e = {}) {
|
|
14022
|
-
this.version = Jn.v3, this.originator = new
|
|
14022
|
+
this.version = Jn.v3, this.originator = new Xr(), this.keyEncryptionAlgorithm = new Dn(), this.recipientEncryptedKeys = new Pa(), Object.assign(this, e);
|
|
14023
14023
|
}
|
|
14024
14024
|
}
|
|
14025
14025
|
m([
|
|
14026
14026
|
w({ type: T.Integer })
|
|
14027
|
-
],
|
|
14027
|
+
], is.prototype, "version", void 0);
|
|
14028
14028
|
m([
|
|
14029
|
-
w({ type:
|
|
14030
|
-
],
|
|
14029
|
+
w({ type: Xr, context: 0 })
|
|
14030
|
+
], is.prototype, "originator", void 0);
|
|
14031
14031
|
m([
|
|
14032
14032
|
w({ type: De, context: 1, optional: !0 })
|
|
14033
|
-
],
|
|
14033
|
+
], is.prototype, "ukm", void 0);
|
|
14034
14034
|
m([
|
|
14035
14035
|
w({ type: Dn })
|
|
14036
|
-
],
|
|
14036
|
+
], is.prototype, "keyEncryptionAlgorithm", void 0);
|
|
14037
14037
|
m([
|
|
14038
14038
|
w({ type: Pa })
|
|
14039
|
-
],
|
|
14040
|
-
let
|
|
14039
|
+
], is.prototype, "recipientEncryptedKeys", void 0);
|
|
14040
|
+
let Mi = class {
|
|
14041
14041
|
constructor(e = {}) {
|
|
14042
14042
|
Object.assign(this, e);
|
|
14043
14043
|
}
|
|
14044
14044
|
};
|
|
14045
14045
|
m([
|
|
14046
14046
|
w({ type: yr, context: 0, implicit: !0 })
|
|
14047
|
-
],
|
|
14047
|
+
], Mi.prototype, "subjectKeyIdentifier", void 0);
|
|
14048
14048
|
m([
|
|
14049
|
-
w({ type:
|
|
14050
|
-
],
|
|
14051
|
-
|
|
14049
|
+
w({ type: ts })
|
|
14050
|
+
], Mi.prototype, "issuerAndSerialNumber", void 0);
|
|
14051
|
+
Mi = m([
|
|
14052
14052
|
J({ type: H.Choice })
|
|
14053
|
-
],
|
|
14053
|
+
], Mi);
|
|
14054
14054
|
class mo {
|
|
14055
14055
|
constructor(e = {}) {
|
|
14056
|
-
this.version = Jn.v0, this.rid = new
|
|
14056
|
+
this.version = Jn.v0, this.rid = new Mi(), this.keyEncryptionAlgorithm = new Dn(), this.encryptedKey = new De(), Object.assign(this, e);
|
|
14057
14057
|
}
|
|
14058
14058
|
}
|
|
14059
14059
|
m([
|
|
14060
14060
|
w({ type: T.Integer })
|
|
14061
14061
|
], mo.prototype, "version", void 0);
|
|
14062
14062
|
m([
|
|
14063
|
-
w({ type:
|
|
14063
|
+
w({ type: Mi })
|
|
14064
14064
|
], mo.prototype, "rid", void 0);
|
|
14065
14065
|
m([
|
|
14066
14066
|
w({ type: Dn })
|
|
@@ -14136,7 +14136,7 @@ m([
|
|
|
14136
14136
|
w({ type: mo, optional: !0 })
|
|
14137
14137
|
], $r.prototype, "ktri", void 0);
|
|
14138
14138
|
m([
|
|
14139
|
-
w({ type:
|
|
14139
|
+
w({ type: is, context: 1, implicit: !0, optional: !0 })
|
|
14140
14140
|
], $r.prototype, "kari", void 0);
|
|
14141
14141
|
m([
|
|
14142
14142
|
w({ type: yo, context: 2, implicit: !0, optional: !0 })
|
|
@@ -14208,7 +14208,7 @@ let wd = yd = class extends Pe {
|
|
|
14208
14208
|
}
|
|
14209
14209
|
};
|
|
14210
14210
|
wd = yd = m([
|
|
14211
|
-
J({ type: H.Set, itemType:
|
|
14211
|
+
J({ type: H.Set, itemType: ns })
|
|
14212
14212
|
], wd);
|
|
14213
14213
|
class vo {
|
|
14214
14214
|
constructor(e = {}) {
|
|
@@ -14240,29 +14240,29 @@ let Ua = vd = class extends Pe {
|
|
|
14240
14240
|
Ua = vd = m([
|
|
14241
14241
|
J({ type: H.Set, itemType: Ls })
|
|
14242
14242
|
], Ua);
|
|
14243
|
-
class
|
|
14243
|
+
class ss {
|
|
14244
14244
|
constructor(e = {}) {
|
|
14245
14245
|
this.version = Jn.v0, this.digestAlgorithms = new Ua(), this.encapContentInfo = new Wc(), this.signerInfos = new Oa(), Object.assign(this, e);
|
|
14246
14246
|
}
|
|
14247
14247
|
}
|
|
14248
14248
|
m([
|
|
14249
14249
|
w({ type: T.Integer })
|
|
14250
|
-
],
|
|
14250
|
+
], ss.prototype, "version", void 0);
|
|
14251
14251
|
m([
|
|
14252
14252
|
w({ type: Ua })
|
|
14253
|
-
],
|
|
14253
|
+
], ss.prototype, "digestAlgorithms", void 0);
|
|
14254
14254
|
m([
|
|
14255
14255
|
w({ type: Wc })
|
|
14256
|
-
],
|
|
14256
|
+
], ss.prototype, "encapContentInfo", void 0);
|
|
14257
14257
|
m([
|
|
14258
14258
|
w({ type: ja, context: 0, implicit: !0, optional: !0 })
|
|
14259
|
-
],
|
|
14259
|
+
], ss.prototype, "certificates", void 0);
|
|
14260
14260
|
m([
|
|
14261
14261
|
w({ type: Fa, context: 1, implicit: !0, optional: !0 })
|
|
14262
|
-
],
|
|
14262
|
+
], ss.prototype, "crls", void 0);
|
|
14263
14263
|
m([
|
|
14264
14264
|
w({ type: Oa })
|
|
14265
|
-
],
|
|
14265
|
+
], ss.prototype, "signerInfos", void 0);
|
|
14266
14266
|
const Ms = "1.2.840.10045.2.1", tf = "1.2.840.10045.4.1", x2 = "1.2.840.10045.4.3.1", nf = "1.2.840.10045.4.3.2", rf = "1.2.840.10045.4.3.3", sf = "1.2.840.10045.4.3.4", Xh = "1.2.840.10045.3.1.7", Jh = "1.3.132.0.34", Yh = "1.3.132.0.35";
|
|
14267
14267
|
function bo(t) {
|
|
14268
14268
|
return new ue({ algorithm: t });
|
|
@@ -14286,23 +14286,23 @@ qs = m([
|
|
|
14286
14286
|
], qs);
|
|
14287
14287
|
class w4 extends De {
|
|
14288
14288
|
}
|
|
14289
|
-
let
|
|
14289
|
+
let qi = class {
|
|
14290
14290
|
constructor(e = {}) {
|
|
14291
14291
|
Object.assign(this, e);
|
|
14292
14292
|
}
|
|
14293
14293
|
};
|
|
14294
14294
|
m([
|
|
14295
14295
|
w({ type: T.OctetString })
|
|
14296
|
-
],
|
|
14296
|
+
], qi.prototype, "a", void 0);
|
|
14297
14297
|
m([
|
|
14298
14298
|
w({ type: T.OctetString })
|
|
14299
|
-
],
|
|
14299
|
+
], qi.prototype, "b", void 0);
|
|
14300
14300
|
m([
|
|
14301
14301
|
w({ type: T.BitString, optional: !0 })
|
|
14302
|
-
],
|
|
14303
|
-
|
|
14302
|
+
], qi.prototype, "seed", void 0);
|
|
14303
|
+
qi = m([
|
|
14304
14304
|
J({ type: H.Sequence })
|
|
14305
|
-
],
|
|
14305
|
+
], qi);
|
|
14306
14306
|
var bd;
|
|
14307
14307
|
(function(t) {
|
|
14308
14308
|
t[t.ecpVer1 = 1] = "ecpVer1";
|
|
@@ -14319,7 +14319,7 @@ m([
|
|
|
14319
14319
|
w({ type: qs })
|
|
14320
14320
|
], Yn.prototype, "fieldID", void 0);
|
|
14321
14321
|
m([
|
|
14322
|
-
w({ type:
|
|
14322
|
+
w({ type: qi })
|
|
14323
14323
|
], Yn.prototype, "curve", void 0);
|
|
14324
14324
|
m([
|
|
14325
14325
|
w({ type: w4 })
|
|
@@ -14378,13 +14378,13 @@ m([
|
|
|
14378
14378
|
m([
|
|
14379
14379
|
w({ type: T.Integer, converter: He })
|
|
14380
14380
|
], Ma.prototype, "s", void 0);
|
|
14381
|
-
const Ot = "1.2.840.113549.1.1",
|
|
14381
|
+
const Ot = "1.2.840.113549.1.1", Jr = `${Ot}.1`, v4 = `${Ot}.7`, b4 = `${Ot}.9`, Ts = `${Ot}.10`, $4 = `${Ot}.2`, x4 = `${Ot}.4`, qa = `${Ot}.5`, A4 = `${Ot}.14`, $d = `${Ot}.11`, za = `${Ot}.12`, Va = `${Ot}.13`, A2 = `${Ot}.15`, E2 = `${Ot}.16`, Ha = "1.3.14.3.2.26", S2 = "2.16.840.1.101.3.4.2.4", Ka = "2.16.840.1.101.3.4.2.1", Ga = "2.16.840.1.101.3.4.2.2", Wa = "2.16.840.1.101.3.4.2.3", E4 = "2.16.840.1.101.3.4.2.5", S4 = "2.16.840.1.101.3.4.2.6", k4 = "1.2.840.113549.2.2", N4 = "1.2.840.113549.2.5", Qc = `${Ot}.8`;
|
|
14382
14382
|
function ot(t) {
|
|
14383
14383
|
return new ue({ algorithm: t, parameters: null });
|
|
14384
14384
|
}
|
|
14385
14385
|
ot(k4);
|
|
14386
14386
|
ot(N4);
|
|
14387
|
-
const
|
|
14387
|
+
const Yr = ot(Ha);
|
|
14388
14388
|
ot(S2);
|
|
14389
14389
|
ot(Ka);
|
|
14390
14390
|
ot(Ga);
|
|
@@ -14393,7 +14393,7 @@ ot(E4);
|
|
|
14393
14393
|
ot(S4);
|
|
14394
14394
|
const k2 = new ue({
|
|
14395
14395
|
algorithm: Qc,
|
|
14396
|
-
parameters: re.serialize(
|
|
14396
|
+
parameters: re.serialize(Yr)
|
|
14397
14397
|
}), N2 = new ue({
|
|
14398
14398
|
algorithm: b4,
|
|
14399
14399
|
parameters: re.serialize(xa.toASN(new Uint8Array([
|
|
@@ -14419,7 +14419,7 @@ const k2 = new ue({
|
|
|
14419
14419
|
9
|
|
14420
14420
|
]).buffer))
|
|
14421
14421
|
});
|
|
14422
|
-
ot(
|
|
14422
|
+
ot(Jr);
|
|
14423
14423
|
ot($4);
|
|
14424
14424
|
ot(x4);
|
|
14425
14425
|
ot(qa);
|
|
@@ -14431,14 +14431,14 @@ ot(A2);
|
|
|
14431
14431
|
ot(E2);
|
|
14432
14432
|
class el {
|
|
14433
14433
|
constructor(e = {}) {
|
|
14434
|
-
this.hashAlgorithm = new ue(
|
|
14434
|
+
this.hashAlgorithm = new ue(Yr), this.maskGenAlgorithm = new ue({
|
|
14435
14435
|
algorithm: Qc,
|
|
14436
|
-
parameters: re.serialize(
|
|
14436
|
+
parameters: re.serialize(Yr)
|
|
14437
14437
|
}), this.pSourceAlgorithm = new ue(N2), Object.assign(this, e);
|
|
14438
14438
|
}
|
|
14439
14439
|
}
|
|
14440
14440
|
m([
|
|
14441
|
-
w({ type: ue, context: 0, defaultValue:
|
|
14441
|
+
w({ type: ue, context: 0, defaultValue: Yr })
|
|
14442
14442
|
], el.prototype, "hashAlgorithm", void 0);
|
|
14443
14443
|
m([
|
|
14444
14444
|
w({ type: ue, context: 1, defaultValue: k2 })
|
|
@@ -14450,29 +14450,29 @@ new ue({
|
|
|
14450
14450
|
algorithm: v4,
|
|
14451
14451
|
parameters: re.serialize(new el())
|
|
14452
14452
|
});
|
|
14453
|
-
class
|
|
14453
|
+
class Zr {
|
|
14454
14454
|
constructor(e = {}) {
|
|
14455
|
-
this.hashAlgorithm = new ue(
|
|
14455
|
+
this.hashAlgorithm = new ue(Yr), this.maskGenAlgorithm = new ue({
|
|
14456
14456
|
algorithm: Qc,
|
|
14457
|
-
parameters: re.serialize(
|
|
14457
|
+
parameters: re.serialize(Yr)
|
|
14458
14458
|
}), this.saltLength = 20, this.trailerField = 1, Object.assign(this, e);
|
|
14459
14459
|
}
|
|
14460
14460
|
}
|
|
14461
14461
|
m([
|
|
14462
|
-
w({ type: ue, context: 0, defaultValue:
|
|
14463
|
-
],
|
|
14462
|
+
w({ type: ue, context: 0, defaultValue: Yr })
|
|
14463
|
+
], Zr.prototype, "hashAlgorithm", void 0);
|
|
14464
14464
|
m([
|
|
14465
14465
|
w({ type: ue, context: 1, defaultValue: k2 })
|
|
14466
|
-
],
|
|
14466
|
+
], Zr.prototype, "maskGenAlgorithm", void 0);
|
|
14467
14467
|
m([
|
|
14468
14468
|
w({ type: T.Integer, context: 2, defaultValue: 20 })
|
|
14469
|
-
],
|
|
14469
|
+
], Zr.prototype, "saltLength", void 0);
|
|
14470
14470
|
m([
|
|
14471
14471
|
w({ type: T.Integer, context: 3, defaultValue: 1 })
|
|
14472
|
-
],
|
|
14472
|
+
], Zr.prototype, "trailerField", void 0);
|
|
14473
14473
|
new ue({
|
|
14474
|
-
algorithm:
|
|
14475
|
-
parameters: re.serialize(new
|
|
14474
|
+
algorithm: Ts,
|
|
14475
|
+
parameters: re.serialize(new Zr())
|
|
14476
14476
|
});
|
|
14477
14477
|
class tl {
|
|
14478
14478
|
constructor(e = {}) {
|
|
@@ -14753,7 +14753,7 @@ var T2 = function() {
|
|
|
14753
14753
|
return this.reflectMethods.forEach(r), n;
|
|
14754
14754
|
}, t;
|
|
14755
14755
|
}();
|
|
14756
|
-
function
|
|
14756
|
+
function fi(t) {
|
|
14757
14757
|
return typeof t == "string" || typeof t == "symbol";
|
|
14758
14758
|
}
|
|
14759
14759
|
function D4(t) {
|
|
@@ -14869,7 +14869,7 @@ var M4 = function(t) {
|
|
|
14869
14869
|
throw new Error('Cannot use lifecycle "' + Nt[r.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
14870
14870
|
return this._registry.set(e, { provider: i, options: r }), this;
|
|
14871
14871
|
}, t.prototype.registerType = function(e, n) {
|
|
14872
|
-
return this.ensureNotDisposed(),
|
|
14872
|
+
return this.ensureNotDisposed(), fi(n) ? this.register(e, {
|
|
14873
14873
|
useToken: n
|
|
14874
14874
|
}) : this.register(e, {
|
|
14875
14875
|
useClass: n
|
|
@@ -14879,8 +14879,8 @@ var M4 = function(t) {
|
|
|
14879
14879
|
useValue: n
|
|
14880
14880
|
});
|
|
14881
14881
|
}, t.prototype.registerSingleton = function(e, n) {
|
|
14882
|
-
if (this.ensureNotDisposed(),
|
|
14883
|
-
if (
|
|
14882
|
+
if (this.ensureNotDisposed(), fi(e)) {
|
|
14883
|
+
if (fi(n))
|
|
14884
14884
|
return this.register(e, {
|
|
14885
14885
|
useToken: n
|
|
14886
14886
|
}, { lifecycle: Nt.Singleton });
|
|
@@ -14891,13 +14891,13 @@ var M4 = function(t) {
|
|
|
14891
14891
|
throw new Error('Cannot register a type name as a singleton without a "to" token');
|
|
14892
14892
|
}
|
|
14893
14893
|
var r = e;
|
|
14894
|
-
return n && !
|
|
14894
|
+
return n && !fi(n) && (r = n), this.register(e, {
|
|
14895
14895
|
useClass: r
|
|
14896
14896
|
}, { lifecycle: Nt.Singleton });
|
|
14897
14897
|
}, t.prototype.resolve = function(e, n, r) {
|
|
14898
14898
|
n === void 0 && (n = new Vo()), r === void 0 && (r = !1), this.ensureNotDisposed();
|
|
14899
14899
|
var i = this.getRegistration(e);
|
|
14900
|
-
if (!i &&
|
|
14900
|
+
if (!i && fi(e)) {
|
|
14901
14901
|
if (r)
|
|
14902
14902
|
return;
|
|
14903
14903
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
@@ -14960,7 +14960,7 @@ var M4 = function(t) {
|
|
|
14960
14960
|
var i = this;
|
|
14961
14961
|
n === void 0 && (n = new Vo()), r === void 0 && (r = !1), this.ensureNotDisposed();
|
|
14962
14962
|
var s = this.getAllRegistrations(e);
|
|
14963
|
-
if (!s &&
|
|
14963
|
+
if (!s && fi(e)) {
|
|
14964
14964
|
if (r)
|
|
14965
14965
|
return [];
|
|
14966
14966
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
@@ -15120,7 +15120,7 @@ let e0 = Cd = class extends Pe {
|
|
|
15120
15120
|
}
|
|
15121
15121
|
};
|
|
15122
15122
|
e0 = Cd = m([
|
|
15123
|
-
J({ type: H.Sequence, itemType:
|
|
15123
|
+
J({ type: H.Sequence, itemType: rs })
|
|
15124
15124
|
], e0);
|
|
15125
15125
|
class O2 {
|
|
15126
15126
|
constructor(e = {}) {
|
|
@@ -15225,14 +15225,14 @@ m([
|
|
|
15225
15225
|
], xo.prototype, "iterations", void 0);
|
|
15226
15226
|
class ol {
|
|
15227
15227
|
constructor(e = {}) {
|
|
15228
|
-
this.version = 3, this.authSafe = new
|
|
15228
|
+
this.version = 3, this.authSafe = new rs(), this.macData = new xo(), Object.assign(this, e);
|
|
15229
15229
|
}
|
|
15230
15230
|
}
|
|
15231
15231
|
m([
|
|
15232
15232
|
w({ type: T.Integer })
|
|
15233
15233
|
], ol.prototype, "version", void 0);
|
|
15234
15234
|
m([
|
|
15235
|
-
w({ type:
|
|
15235
|
+
w({ type: rs })
|
|
15236
15236
|
], ol.prototype, "authSafe", void 0);
|
|
15237
15237
|
m([
|
|
15238
15238
|
w({ type: xo, optional: !0 })
|
|
@@ -15276,7 +15276,7 @@ m([
|
|
|
15276
15276
|
Ja = m([
|
|
15277
15277
|
J({ type: H.Choice })
|
|
15278
15278
|
], Ja);
|
|
15279
|
-
let i0 = class extends
|
|
15279
|
+
let i0 = class extends rs {
|
|
15280
15280
|
};
|
|
15281
15281
|
i0 = m([
|
|
15282
15282
|
J({ type: H.Sequence })
|
|
@@ -15426,7 +15426,7 @@ let g0 = jd = class extends Pe {
|
|
|
15426
15426
|
}
|
|
15427
15427
|
};
|
|
15428
15428
|
g0 = jd = m([
|
|
15429
|
-
J({ type: H.Set, itemType:
|
|
15429
|
+
J({ type: H.Set, itemType: ns })
|
|
15430
15430
|
], g0);
|
|
15431
15431
|
let qd = class {
|
|
15432
15432
|
constructor(e = "") {
|
|
@@ -15464,30 +15464,30 @@ let Qa = Vd = class extends Pe {
|
|
|
15464
15464
|
Qa = Vd = m([
|
|
15465
15465
|
J({ type: H.Sequence, itemType: Xn })
|
|
15466
15466
|
], Qa);
|
|
15467
|
-
class
|
|
15467
|
+
class os {
|
|
15468
15468
|
constructor(e = {}) {
|
|
15469
15469
|
this.version = 0, this.subject = new et(), this.subjectPKInfo = new an(), this.attributes = new Qa(), Object.assign(this, e);
|
|
15470
15470
|
}
|
|
15471
15471
|
}
|
|
15472
15472
|
m([
|
|
15473
15473
|
w({ type: T.Integer })
|
|
15474
|
-
],
|
|
15474
|
+
], os.prototype, "version", void 0);
|
|
15475
15475
|
m([
|
|
15476
15476
|
w({ type: et })
|
|
15477
|
-
],
|
|
15477
|
+
], os.prototype, "subject", void 0);
|
|
15478
15478
|
m([
|
|
15479
15479
|
w({ type: an })
|
|
15480
|
-
],
|
|
15480
|
+
], os.prototype, "subjectPKInfo", void 0);
|
|
15481
15481
|
m([
|
|
15482
15482
|
w({ type: Qa, implicit: !0, context: 0 })
|
|
15483
|
-
],
|
|
15483
|
+
], os.prototype, "attributes", void 0);
|
|
15484
15484
|
class zs {
|
|
15485
15485
|
constructor(e = {}) {
|
|
15486
|
-
this.certificationRequestInfo = new
|
|
15486
|
+
this.certificationRequestInfo = new os(), this.signatureAlgorithm = new ue(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
|
|
15487
15487
|
}
|
|
15488
15488
|
}
|
|
15489
15489
|
m([
|
|
15490
|
-
w({ type:
|
|
15490
|
+
w({ type: os })
|
|
15491
15491
|
], zs.prototype, "certificationRequestInfo", void 0);
|
|
15492
15492
|
m([
|
|
15493
15493
|
w({ type: ue })
|
|
@@ -15555,8 +15555,8 @@ class H4 {
|
|
|
15555
15555
|
};
|
|
15556
15556
|
}
|
|
15557
15557
|
}
|
|
15558
|
-
const
|
|
15559
|
-
mt.registerSingleton(
|
|
15558
|
+
const Qr = "crypto.algorithmProvider";
|
|
15559
|
+
mt.registerSingleton(Qr, H4);
|
|
15560
15560
|
var ia;
|
|
15561
15561
|
const Dt = "1.3.36.3.3.2.8.1.1", _0 = `${Dt}.1`, y0 = `${Dt}.2`, w0 = `${Dt}.3`, v0 = `${Dt}.4`, b0 = `${Dt}.5`, $0 = `${Dt}.6`, x0 = `${Dt}.7`, A0 = `${Dt}.8`, E0 = `${Dt}.9`, S0 = `${Dt}.10`, k0 = `${Dt}.11`, N0 = `${Dt}.12`, C0 = `${Dt}.13`, T0 = `${Dt}.14`, I0 = "brainpoolP160r1", O0 = "brainpoolP160t1", D0 = "brainpoolP192r1", R0 = "brainpoolP192t1", j0 = "brainpoolP224r1", P0 = "brainpoolP224t1", B0 = "brainpoolP256r1", L0 = "brainpoolP256t1", F0 = "brainpoolP320r1", U0 = "brainpoolP320t1", M0 = "brainpoolP384r1", q0 = "brainpoolP384t1", z0 = "brainpoolP512r1", V0 = "brainpoolP512t1", Ke = "ECDSA";
|
|
15562
15562
|
let Vs = ia = class {
|
|
@@ -15740,7 +15740,7 @@ Nr.items = {
|
|
|
15740
15740
|
[Ka]: "sha256",
|
|
15741
15741
|
[Ga]: "sha384",
|
|
15742
15742
|
[Wa]: "sha512",
|
|
15743
|
-
[
|
|
15743
|
+
[Jr]: "rsaEncryption",
|
|
15744
15744
|
[qa]: "sha1WithRSAEncryption",
|
|
15745
15745
|
[A4]: "sha224WithRSAEncryption",
|
|
15746
15746
|
[$d]: "sha256WithRSAEncryption",
|
|
@@ -15760,7 +15760,7 @@ Nr.items = {
|
|
|
15760
15760
|
[f4]: "OCSP Signing",
|
|
15761
15761
|
[h4]: "Signed Data"
|
|
15762
15762
|
};
|
|
15763
|
-
class
|
|
15763
|
+
class ei {
|
|
15764
15764
|
static serialize(e) {
|
|
15765
15765
|
return this.serializeObj(e).join(`
|
|
15766
15766
|
`);
|
|
@@ -15813,8 +15813,8 @@ class Qr {
|
|
|
15813
15813
|
return this.algorithmSerializer.toTextObject(e);
|
|
15814
15814
|
}
|
|
15815
15815
|
}
|
|
15816
|
-
|
|
15817
|
-
|
|
15816
|
+
ei.oidSerializer = Nr;
|
|
15817
|
+
ei.algorithmSerializer = K4;
|
|
15818
15818
|
class Cr {
|
|
15819
15819
|
constructor(...e) {
|
|
15820
15820
|
if (e.length === 1) {
|
|
@@ -15833,7 +15833,7 @@ class Cr {
|
|
|
15833
15833
|
case "asn":
|
|
15834
15834
|
return re.toString(this.rawData);
|
|
15835
15835
|
case "text":
|
|
15836
|
-
return
|
|
15836
|
+
return ei.serialize(this.toTextObject());
|
|
15837
15837
|
case "hex":
|
|
15838
15838
|
return he.ToHex(this.rawData);
|
|
15839
15839
|
case "base64":
|
|
@@ -16030,14 +16030,14 @@ class Yt {
|
|
|
16030
16030
|
const d = i[3];
|
|
16031
16031
|
a = this.getTypeOid(a);
|
|
16032
16032
|
const p = this.createAttribute(a, l);
|
|
16033
|
-
s === "+" ? n[n.length - 1].push(p) : n.push(new
|
|
16033
|
+
s === "+" ? n[n.length - 1].push(p) : n.push(new ji([p])), s = d;
|
|
16034
16034
|
}
|
|
16035
16035
|
return n;
|
|
16036
16036
|
}
|
|
16037
16037
|
fromJSON(e) {
|
|
16038
16038
|
const n = new et();
|
|
16039
16039
|
for (const r of e) {
|
|
16040
|
-
const i = new
|
|
16040
|
+
const i = new ji();
|
|
16041
16041
|
for (const s in r) {
|
|
16042
16042
|
const a = this.getTypeOid(s), l = r[s];
|
|
16043
16043
|
for (const u of l) {
|
|
@@ -16206,7 +16206,7 @@ class mr extends Cr {
|
|
|
16206
16206
|
return this.type === Ho && (n = Nr.toString(n)), new je(e, void 0, n);
|
|
16207
16207
|
}
|
|
16208
16208
|
}
|
|
16209
|
-
class
|
|
16209
|
+
class ti extends Cr {
|
|
16210
16210
|
constructor(e) {
|
|
16211
16211
|
let n;
|
|
16212
16212
|
if (e instanceof yt)
|
|
@@ -16253,8 +16253,8 @@ class ei extends Cr {
|
|
|
16253
16253
|
return e;
|
|
16254
16254
|
}
|
|
16255
16255
|
}
|
|
16256
|
-
|
|
16257
|
-
const
|
|
16256
|
+
ti.NAME = "GeneralNames";
|
|
16257
|
+
const Is = "-{5}", Hs = "\\n", Z4 = `[^${Hs}]+`, Q4 = `${Is}BEGIN (${Z4}(?=${Is}))${Is}`, e$ = `${Is}END \\1${Is}`, zi = "\\n", t$ = `[^:${Hs}]+`, n$ = `(?:[^${Hs}]+${zi}(?: +[^${Hs}]+${zi})*)`, r$ = "[a-zA-Z0-9=+/]+", i$ = `(?:${r$}${zi})+`, X0 = `${Q4}${zi}(?:((?:${t$}: ${n$})+))?${zi}?(${i$})${e$}`;
|
|
16258
16258
|
class Mt {
|
|
16259
16259
|
static isPem(e) {
|
|
16260
16260
|
return typeof e == "string" && new RegExp(X0, "g").test(e.replace(/\r/g, ""));
|
|
@@ -16270,7 +16270,7 @@ class Mt {
|
|
|
16270
16270
|
rawData: he.FromBase64(s)
|
|
16271
16271
|
}, l = i[2];
|
|
16272
16272
|
if (l) {
|
|
16273
|
-
const u = l.split(new RegExp(
|
|
16273
|
+
const u = l.split(new RegExp(zi, "g"));
|
|
16274
16274
|
let d = null;
|
|
16275
16275
|
for (const p of u) {
|
|
16276
16276
|
const [h, g] = p.split(/:(.*)/);
|
|
@@ -16401,12 +16401,12 @@ class un extends Zn {
|
|
|
16401
16401
|
e.length > 1 ? (i = e[0] || i, r = e[1] || r, n = e[2] || dt.get()) : n = e[0] || dt.get();
|
|
16402
16402
|
let s = this.rawData;
|
|
16403
16403
|
const a = re.parse(this.rawData, an);
|
|
16404
|
-
return a.algorithm.algorithm ===
|
|
16404
|
+
return a.algorithm.algorithm === Ts && (s = s$(a, s)), n.subtle.importKey("spki", s, i, !0, r);
|
|
16405
16405
|
}
|
|
16406
16406
|
onInit(e) {
|
|
16407
|
-
const n = mt.resolve(
|
|
16407
|
+
const n = mt.resolve(Qr), r = this.algorithm = n.toWebAlgorithm(e.algorithm);
|
|
16408
16408
|
switch (e.algorithm.algorithm) {
|
|
16409
|
-
case
|
|
16409
|
+
case Jr: {
|
|
16410
16410
|
const i = re.parse(e.subjectPublicKey, of), s = ie.toUint8Array(i.modulus);
|
|
16411
16411
|
r.publicExponent = ie.toUint8Array(i.publicExponent), r.modulusLength = (s[0] ? s : s.slice(1)).byteLength << 3;
|
|
16412
16412
|
break;
|
|
@@ -16426,11 +16426,11 @@ class un extends Zn {
|
|
|
16426
16426
|
}
|
|
16427
16427
|
toTextObject() {
|
|
16428
16428
|
const e = this.toTextObjectEmpty(), n = re.parse(this.rawData, an);
|
|
16429
|
-
switch (e.Algorithm =
|
|
16429
|
+
switch (e.Algorithm = ei.serializeAlgorithm(n.algorithm), n.algorithm.algorithm) {
|
|
16430
16430
|
case Ms:
|
|
16431
16431
|
e["EC Point"] = n.subjectPublicKey;
|
|
16432
16432
|
break;
|
|
16433
|
-
case
|
|
16433
|
+
case Jr:
|
|
16434
16434
|
default:
|
|
16435
16435
|
e["Raw Data"] = n.subjectPublicKey;
|
|
16436
16436
|
}
|
|
@@ -16439,7 +16439,7 @@ class un extends Zn {
|
|
|
16439
16439
|
}
|
|
16440
16440
|
function s$(t, e) {
|
|
16441
16441
|
return t.algorithm = new ue({
|
|
16442
|
-
algorithm:
|
|
16442
|
+
algorithm: Jr,
|
|
16443
16443
|
parameters: null
|
|
16444
16444
|
}), e = re.serialize(t), e;
|
|
16445
16445
|
}
|
|
@@ -16457,7 +16457,7 @@ class Ks extends Ht {
|
|
|
16457
16457
|
const n = new Br({ keyIdentifier: new Up(he.FromHex(e[0])) });
|
|
16458
16458
|
super(Uu, e[1], re.serialize(n));
|
|
16459
16459
|
} else {
|
|
16460
|
-
const n = e[0], r = n.name instanceof
|
|
16460
|
+
const n = e[0], r = n.name instanceof ti ? re.parse(n.name.rawData, yt) : n.name, i = new Br({
|
|
16461
16461
|
authorityCertIssuer: r,
|
|
16462
16462
|
authorityCertSerialNumber: he.FromHex(n.serialNumber)
|
|
16463
16463
|
});
|
|
@@ -16474,7 +16474,7 @@ class Ks extends Ht {
|
|
|
16474
16474
|
}
|
|
16475
16475
|
toTextObject() {
|
|
16476
16476
|
const e = this.toTextObjectWithoutValue(), n = re.parse(this.value, Br);
|
|
16477
|
-
return n.authorityCertIssuer && (e["Authority Issuer"] = new
|
|
16477
|
+
return n.authorityCertIssuer && (e["Authority Issuer"] = new ti(n.authorityCertIssuer).toTextObject()), n.authorityCertSerialNumber && (e["Authority Serial Number"] = n.authorityCertSerialNumber), n.keyIdentifier && (e[""] = n.keyIdentifier), e;
|
|
16478
16478
|
}
|
|
16479
16479
|
}
|
|
16480
16480
|
Ks.NAME = "Authority Key Identifier";
|
|
@@ -16563,12 +16563,12 @@ class Eo extends Ht {
|
|
|
16563
16563
|
Eo.NAME = "Subject Key Identifier";
|
|
16564
16564
|
class V2 extends Ht {
|
|
16565
16565
|
constructor(...e) {
|
|
16566
|
-
ie.isBufferSource(e[0]) ? super(e[0]) : super(g2, e[1], new
|
|
16566
|
+
ie.isBufferSource(e[0]) ? super(e[0]) : super(g2, e[1], new ti(e[0] || []).rawData);
|
|
16567
16567
|
}
|
|
16568
16568
|
onInit(e) {
|
|
16569
16569
|
super.onInit(e);
|
|
16570
16570
|
const n = re.parse(e.extnValue, td);
|
|
16571
|
-
this.names = new
|
|
16571
|
+
this.names = new ti(n);
|
|
16572
16572
|
}
|
|
16573
16573
|
toTextObject() {
|
|
16574
16574
|
const e = this.toTextObjectWithoutValue(), n = this.names.toTextObject();
|
|
@@ -16615,21 +16615,21 @@ class K2 extends Ht {
|
|
|
16615
16615
|
if (ie.isBufferSource(e[0]))
|
|
16616
16616
|
super(e[0]);
|
|
16617
16617
|
else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
|
|
16618
|
-
const i = e[0].map((a) => new
|
|
16619
|
-
distributionPoint: new
|
|
16618
|
+
const i = e[0].map((a) => new es({
|
|
16619
|
+
distributionPoint: new Kr({
|
|
16620
16620
|
fullName: [new Te({ uniformResourceIdentifier: a })]
|
|
16621
16621
|
})
|
|
16622
|
-
})), s = new
|
|
16622
|
+
})), s = new Ci(i);
|
|
16623
16623
|
super(Hu, e[1], re.serialize(s));
|
|
16624
16624
|
} else {
|
|
16625
|
-
const r = new
|
|
16625
|
+
const r = new Ci(e[0]);
|
|
16626
16626
|
super(Hu, e[1], re.serialize(r));
|
|
16627
16627
|
}
|
|
16628
16628
|
(n = this.distributionPoints) !== null && n !== void 0 || (this.distributionPoints = []);
|
|
16629
16629
|
}
|
|
16630
16630
|
onInit(e) {
|
|
16631
16631
|
super.onInit(e);
|
|
16632
|
-
const n = re.parse(e.extnValue,
|
|
16632
|
+
const n = re.parse(e.extnValue, Ci);
|
|
16633
16633
|
this.distributionPoints = n;
|
|
16634
16634
|
}
|
|
16635
16635
|
toTextObject() {
|
|
@@ -16647,17 +16647,17 @@ class G2 extends Ht {
|
|
|
16647
16647
|
var n, r, i, s;
|
|
16648
16648
|
if (ie.isBufferSource(e[0]))
|
|
16649
16649
|
super(e[0]);
|
|
16650
|
-
else if (e[0] instanceof
|
|
16651
|
-
const a = new
|
|
16650
|
+
else if (e[0] instanceof Si) {
|
|
16651
|
+
const a = new Si(e[0]);
|
|
16652
16652
|
super(Fu, e[1], re.serialize(a));
|
|
16653
16653
|
} else {
|
|
16654
|
-
const a = e[0], l = new
|
|
16654
|
+
const a = e[0], l = new Si();
|
|
16655
16655
|
Go(l, a, Rh, "ocsp"), Go(l, a, jh, "caIssuers"), Go(l, a, Ph, "timeStamping"), Go(l, a, Bh, "caRepository"), super(Fu, e[1], re.serialize(l));
|
|
16656
16656
|
}
|
|
16657
16657
|
(n = this.ocsp) !== null && n !== void 0 || (this.ocsp = []), (r = this.caIssuers) !== null && r !== void 0 || (this.caIssuers = []), (i = this.timeStamping) !== null && i !== void 0 || (this.timeStamping = []), (s = this.caRepository) !== null && s !== void 0 || (this.caRepository = []);
|
|
16658
16658
|
}
|
|
16659
16659
|
onInit(e) {
|
|
16660
|
-
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], re.parse(e.extnValue,
|
|
16660
|
+
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], re.parse(e.extnValue, Si).forEach((r) => {
|
|
16661
16661
|
switch (r.accessMethod) {
|
|
16662
16662
|
case Rh:
|
|
16663
16663
|
this.ocsp.push(new mr(r.accessLocation));
|
|
@@ -16703,12 +16703,12 @@ function Go(t, e, n, r) {
|
|
|
16703
16703
|
}
|
|
16704
16704
|
class W2 extends Ht {
|
|
16705
16705
|
constructor(...e) {
|
|
16706
|
-
ie.isBufferSource(e[0]) ? super(e[0]) : super(d2, e[1], new
|
|
16706
|
+
ie.isBufferSource(e[0]) ? super(e[0]) : super(d2, e[1], new ti(e[0] || []).rawData);
|
|
16707
16707
|
}
|
|
16708
16708
|
onInit(e) {
|
|
16709
16709
|
super.onInit(e);
|
|
16710
16710
|
const n = re.parse(e.extnValue, yt);
|
|
16711
|
-
this.names = new
|
|
16711
|
+
this.names = new ti(n);
|
|
16712
16712
|
}
|
|
16713
16713
|
toTextObject() {
|
|
16714
16714
|
const e = this.toTextObjectWithoutValue(), n = this.names.toTextObject();
|
|
@@ -16718,7 +16718,7 @@ class W2 extends Ht {
|
|
|
16718
16718
|
}
|
|
16719
16719
|
}
|
|
16720
16720
|
W2.NAME = "Issuer Alternative Name";
|
|
16721
|
-
class
|
|
16721
|
+
class as extends Cr {
|
|
16722
16722
|
constructor(...e) {
|
|
16723
16723
|
let n;
|
|
16724
16724
|
if (ie.isBufferSource(e[0]))
|
|
@@ -16738,11 +16738,11 @@ class os extends Cr {
|
|
|
16738
16738
|
}
|
|
16739
16739
|
toTextObjectWithoutValue() {
|
|
16740
16740
|
const e = this.toTextObjectEmpty();
|
|
16741
|
-
return e[je.NAME] ===
|
|
16741
|
+
return e[je.NAME] === as.NAME && (e[je.NAME] = Nr.toString(this.type)), e;
|
|
16742
16742
|
}
|
|
16743
16743
|
}
|
|
16744
|
-
|
|
16745
|
-
class X2 extends
|
|
16744
|
+
as.NAME = "Attribute";
|
|
16745
|
+
class X2 extends as {
|
|
16746
16746
|
constructor(...e) {
|
|
16747
16747
|
var n;
|
|
16748
16748
|
if (ie.isBufferSource(e[0]))
|
|
@@ -16767,7 +16767,7 @@ class X2 extends os {
|
|
|
16767
16767
|
}
|
|
16768
16768
|
}
|
|
16769
16769
|
X2.NAME = "Challenge Password";
|
|
16770
|
-
class ff extends
|
|
16770
|
+
class ff extends as {
|
|
16771
16771
|
constructor(...e) {
|
|
16772
16772
|
var n;
|
|
16773
16773
|
if (ie.isBufferSource(e[0]))
|
|
@@ -16799,7 +16799,7 @@ class cl {
|
|
|
16799
16799
|
this.items.set(e, n);
|
|
16800
16800
|
}
|
|
16801
16801
|
static create(e) {
|
|
16802
|
-
const n = new
|
|
16802
|
+
const n = new as(e), r = this.items.get(n.type);
|
|
16803
16803
|
return r ? new r(e) : n;
|
|
16804
16804
|
}
|
|
16805
16805
|
}
|
|
@@ -16817,7 +16817,7 @@ var sa;
|
|
|
16817
16817
|
let Hd = sa = class {
|
|
16818
16818
|
static createPssParams(e, n) {
|
|
16819
16819
|
const r = sa.getHashAlgorithm(e);
|
|
16820
|
-
return r ? new
|
|
16820
|
+
return r ? new Zr({
|
|
16821
16821
|
hashAlgorithm: r,
|
|
16822
16822
|
maskGenAlgorithm: new ue({
|
|
16823
16823
|
algorithm: Qc,
|
|
@@ -16827,7 +16827,7 @@ let Hd = sa = class {
|
|
|
16827
16827
|
}) : null;
|
|
16828
16828
|
}
|
|
16829
16829
|
static getHashAlgorithm(e) {
|
|
16830
|
-
const n = mt.resolve(
|
|
16830
|
+
const n = mt.resolve(Qr);
|
|
16831
16831
|
return typeof e == "string" ? n.toAsnAlgorithm({ name: e }) : typeof e == "object" && e && "name" in e ? n.toAsnAlgorithm(e) : null;
|
|
16832
16832
|
}
|
|
16833
16833
|
toAsnAlgorithm(e) {
|
|
@@ -16852,7 +16852,7 @@ let Hd = sa = class {
|
|
|
16852
16852
|
return new ue({ algorithm: Va, parameters: null });
|
|
16853
16853
|
}
|
|
16854
16854
|
} else
|
|
16855
|
-
return new ue({ algorithm:
|
|
16855
|
+
return new ue({ algorithm: Jr, parameters: null });
|
|
16856
16856
|
break;
|
|
16857
16857
|
case "rsa-pss":
|
|
16858
16858
|
if ("hash" in e) {
|
|
@@ -16861,15 +16861,15 @@ let Hd = sa = class {
|
|
|
16861
16861
|
const n = sa.createPssParams(e.hash, e.saltLength);
|
|
16862
16862
|
if (!n)
|
|
16863
16863
|
throw new Error("Cannot create PSS parameters");
|
|
16864
|
-
return new ue({ algorithm:
|
|
16864
|
+
return new ue({ algorithm: Ts, parameters: re.serialize(n) });
|
|
16865
16865
|
} else
|
|
16866
|
-
return new ue({ algorithm:
|
|
16866
|
+
return new ue({ algorithm: Ts, parameters: null });
|
|
16867
16867
|
}
|
|
16868
16868
|
return null;
|
|
16869
16869
|
}
|
|
16870
16870
|
toWebAlgorithm(e) {
|
|
16871
16871
|
switch (e.algorithm) {
|
|
16872
|
-
case
|
|
16872
|
+
case Jr:
|
|
16873
16873
|
return { name: "RSASSA-PKCS1-v1_5" };
|
|
16874
16874
|
case qa:
|
|
16875
16875
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-1" } };
|
|
@@ -16879,12 +16879,12 @@ let Hd = sa = class {
|
|
|
16879
16879
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-384" } };
|
|
16880
16880
|
case Va:
|
|
16881
16881
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-512" } };
|
|
16882
|
-
case
|
|
16882
|
+
case Ts:
|
|
16883
16883
|
if (e.parameters) {
|
|
16884
|
-
const n = re.parse(e.parameters,
|
|
16884
|
+
const n = re.parse(e.parameters, Zr);
|
|
16885
16885
|
return {
|
|
16886
16886
|
name: "RSA-PSS",
|
|
16887
|
-
hash: mt.resolve(
|
|
16887
|
+
hash: mt.resolve(Qr).toWebAlgorithm(n.hashAlgorithm),
|
|
16888
16888
|
saltLength: n.saltLength
|
|
16889
16889
|
};
|
|
16890
16890
|
} else
|
|
@@ -17023,7 +17023,7 @@ class a$ extends Zn {
|
|
|
17023
17023
|
}
|
|
17024
17024
|
onInit(e) {
|
|
17025
17025
|
this.tbs = re.serialize(e.certificationRequestInfo), this.publicKey = new un(e.certificationRequestInfo.subjectPKInfo);
|
|
17026
|
-
const n = mt.resolve(
|
|
17026
|
+
const n = mt.resolve(Qr);
|
|
17027
17027
|
this.signatureAlgorithm = n.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((i) => cl.create(re.serialize(i)));
|
|
17028
17028
|
const r = this.getAttribute(lf);
|
|
17029
17029
|
this.extensions = [], r instanceof ff && (this.extensions = r.items), this.subjectName = new Yt(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
|
|
@@ -17058,7 +17058,7 @@ class a$ extends Zn {
|
|
|
17058
17058
|
}
|
|
17059
17059
|
toTextObject() {
|
|
17060
17060
|
const e = this.toTextObjectEmpty(), n = re.parse(this.rawData, zs), r = n.certificationRequestInfo, i = new je("", {
|
|
17061
|
-
Version: `${
|
|
17061
|
+
Version: `${Gr[r.version]} (${r.version})`,
|
|
17062
17062
|
Subject: this.subject,
|
|
17063
17063
|
"Subject Public Key Info": this.publicKey
|
|
17064
17064
|
});
|
|
@@ -17071,7 +17071,7 @@ class a$ extends Zn {
|
|
|
17071
17071
|
i.Attributes = s;
|
|
17072
17072
|
}
|
|
17073
17073
|
return e.Data = i, e.Signature = new je("", {
|
|
17074
|
-
Algorithm:
|
|
17074
|
+
Algorithm: ei.serializeAlgorithm(n.signatureAlgorithm),
|
|
17075
17075
|
"": n.signature
|
|
17076
17076
|
}), e;
|
|
17077
17077
|
}
|
|
@@ -17079,14 +17079,14 @@ class a$ extends Zn {
|
|
|
17079
17079
|
a$.NAME = "PKCS#10 Certificate Request";
|
|
17080
17080
|
class ll extends Zn {
|
|
17081
17081
|
constructor(e) {
|
|
17082
|
-
Zn.isAsnEncoded(e) ? super(e,
|
|
17082
|
+
Zn.isAsnEncoded(e) ? super(e, Wr) : super(e), this.tag = Mt.CertificateTag;
|
|
17083
17083
|
}
|
|
17084
17084
|
onInit(e) {
|
|
17085
17085
|
const n = e.tbsCertificate;
|
|
17086
17086
|
this.tbs = re.serialize(n);
|
|
17087
17087
|
let r = new Uint8Array(n.serialNumber);
|
|
17088
17088
|
r.length > 1 && r[0] === 0 && r[1] > 127 && (r = r.slice(1)), this.serialNumber = he.ToHex(r), this.subjectName = new Yt(n.subject), this.subject = new Yt(n.subject).toString(), this.issuerName = new Yt(n.issuer), this.issuer = this.issuerName.toString();
|
|
17089
|
-
const i = mt.resolve(
|
|
17089
|
+
const i = mt.resolve(Qr);
|
|
17090
17090
|
this.signatureAlgorithm = i.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
|
|
17091
17091
|
const s = n.validity.notBefore.utcTime || n.validity.notBefore.generalTime;
|
|
17092
17092
|
if (!s)
|
|
@@ -17150,10 +17150,10 @@ class ll extends Zn {
|
|
|
17150
17150
|
return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
|
|
17151
17151
|
}
|
|
17152
17152
|
toTextObject() {
|
|
17153
|
-
const e = this.toTextObjectEmpty(), n = re.parse(this.rawData,
|
|
17154
|
-
Version: `${
|
|
17153
|
+
const e = this.toTextObjectEmpty(), n = re.parse(this.rawData, Wr), r = n.tbsCertificate, i = new je("", {
|
|
17154
|
+
Version: `${Gr[r.version]} (${r.version})`,
|
|
17155
17155
|
"Serial Number": r.serialNumber,
|
|
17156
|
-
"Signature Algorithm":
|
|
17156
|
+
"Signature Algorithm": ei.serializeAlgorithm(r.signature),
|
|
17157
17157
|
Issuer: this.issuer,
|
|
17158
17158
|
Validity: new je("", {
|
|
17159
17159
|
"Not Before": r.validity.notBefore.getTime(),
|
|
@@ -17171,7 +17171,7 @@ class ll extends Zn {
|
|
|
17171
17171
|
i.Extensions = s;
|
|
17172
17172
|
}
|
|
17173
17173
|
return e.Data = i, e.Signature = new je("", {
|
|
17174
|
-
Algorithm:
|
|
17174
|
+
Algorithm: ei.serializeAlgorithm(n.signatureAlgorithm),
|
|
17175
17175
|
"": n.signatureValue
|
|
17176
17176
|
}), e;
|
|
17177
17177
|
}
|
|
@@ -17201,9 +17201,9 @@ class c$ {
|
|
|
17201
17201
|
e.publicKey instanceof un ? i = e.publicKey.rawData : "publicKey" in e.publicKey ? i = e.publicKey.publicKey.rawData : ie.isBufferSource(e.publicKey) ? i = e.publicKey : i = await n.subtle.exportKey("spki", e.publicKey);
|
|
17202
17202
|
let s = e.serialNumber ? ie.toUint8Array(he.FromHex(e.serialNumber)) : void 0;
|
|
17203
17203
|
s = this.generateSerialNumber(s, n);
|
|
17204
|
-
const a = e.notBefore || /* @__PURE__ */ new Date(), l = e.notAfter || new Date(a.getTime() + 31536e6), u = new
|
|
17204
|
+
const a = e.notBefore || /* @__PURE__ */ new Date(), l = e.notAfter || new Date(a.getTime() + 31536e6), u = new Wr({
|
|
17205
17205
|
tbsCertificate: new Vt({
|
|
17206
|
-
version:
|
|
17206
|
+
version: Gr.v3,
|
|
17207
17207
|
serialNumber: s,
|
|
17208
17208
|
validity: new fo({
|
|
17209
17209
|
notBefore: a,
|
|
@@ -17223,7 +17223,7 @@ class c$ {
|
|
|
17223
17223
|
}
|
|
17224
17224
|
const d = {
|
|
17225
17225
|
hash: "SHA-256"
|
|
17226
|
-
}, p = "signingKey" in e ? { ...d, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...d, ...e.signingAlgorithm }, h = mt.resolve(
|
|
17226
|
+
}, p = "signingKey" in e ? { ...d, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...d, ...e.signingAlgorithm }, h = mt.resolve(Qr);
|
|
17227
17227
|
u.tbsCertificate.signature = u.signatureAlgorithm = h.toAsnAlgorithm(p);
|
|
17228
17228
|
const g = re.serialize(u.tbsCertificate), b = "signingKey" in e ? await n.subtle.sign(p, e.signingKey, g) : e.signature, x = mt.resolveAll(So).reverse();
|
|
17229
17229
|
let C = null;
|
|
@@ -17489,7 +17489,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
|
|
|
17489
17489
|
return t.json(i);
|
|
17490
17490
|
}
|
|
17491
17491
|
), h$ = qt.extend({
|
|
17492
|
-
clients: o.array(
|
|
17492
|
+
clients: o.array($i)
|
|
17493
17493
|
}), g$ = new be().openapi(
|
|
17494
17494
|
U({
|
|
17495
17495
|
tags: ["clients"],
|
|
@@ -17510,7 +17510,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
|
|
|
17510
17510
|
200: {
|
|
17511
17511
|
content: {
|
|
17512
17512
|
"application/json": {
|
|
17513
|
-
schema: o.union([h$, o.array(
|
|
17513
|
+
schema: o.union([h$, o.array($i)])
|
|
17514
17514
|
}
|
|
17515
17515
|
},
|
|
17516
17516
|
description: "List of clients"
|
|
@@ -17554,7 +17554,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
|
|
|
17554
17554
|
200: {
|
|
17555
17555
|
content: {
|
|
17556
17556
|
"application/json": {
|
|
17557
|
-
schema:
|
|
17557
|
+
schema: $i
|
|
17558
17558
|
}
|
|
17559
17559
|
},
|
|
17560
17560
|
description: "A client"
|
|
@@ -17626,7 +17626,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
|
|
|
17626
17626
|
200: {
|
|
17627
17627
|
content: {
|
|
17628
17628
|
"application/json": {
|
|
17629
|
-
schema:
|
|
17629
|
+
schema: $i
|
|
17630
17630
|
}
|
|
17631
17631
|
},
|
|
17632
17632
|
description: "The updated client"
|
|
@@ -17667,7 +17667,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
|
|
|
17667
17667
|
201: {
|
|
17668
17668
|
content: {
|
|
17669
17669
|
"application/json": {
|
|
17670
|
-
schema: o.object(
|
|
17670
|
+
schema: o.object($i.shape)
|
|
17671
17671
|
}
|
|
17672
17672
|
},
|
|
17673
17673
|
description: "A client"
|
|
@@ -17696,7 +17696,7 @@ fp.extend({
|
|
|
17696
17696
|
user_id: o.string()
|
|
17697
17697
|
}).catchall(o.any());
|
|
17698
17698
|
const m$ = qt.extend({
|
|
17699
|
-
tenants: o.array(
|
|
17699
|
+
tenants: o.array(Es)
|
|
17700
17700
|
}), _$ = new be().openapi(
|
|
17701
17701
|
U({
|
|
17702
17702
|
tags: ["tenants"],
|
|
@@ -17714,7 +17714,7 @@ const m$ = qt.extend({
|
|
|
17714
17714
|
200: {
|
|
17715
17715
|
content: {
|
|
17716
17716
|
"tenant/json": {
|
|
17717
|
-
schema: o.union([o.array(
|
|
17717
|
+
schema: o.union([o.array(Es), m$])
|
|
17718
17718
|
}
|
|
17719
17719
|
},
|
|
17720
17720
|
description: "List of tenants"
|
|
@@ -17750,7 +17750,7 @@ const m$ = qt.extend({
|
|
|
17750
17750
|
200: {
|
|
17751
17751
|
content: {
|
|
17752
17752
|
"tenant/json": {
|
|
17753
|
-
schema:
|
|
17753
|
+
schema: Es
|
|
17754
17754
|
}
|
|
17755
17755
|
},
|
|
17756
17756
|
description: "A tenant"
|
|
@@ -17843,7 +17843,7 @@ const m$ = qt.extend({
|
|
|
17843
17843
|
201: {
|
|
17844
17844
|
content: {
|
|
17845
17845
|
"tenant/json": {
|
|
17846
|
-
schema:
|
|
17846
|
+
schema: Es
|
|
17847
17847
|
}
|
|
17848
17848
|
},
|
|
17849
17849
|
description: "An tenant"
|
|
@@ -17951,7 +17951,7 @@ function A$() {
|
|
|
17951
17951
|
return hf("hook");
|
|
17952
17952
|
}
|
|
17953
17953
|
const E$ = qt.extend({
|
|
17954
|
-
hooks: o.array(
|
|
17954
|
+
hooks: o.array(bs)
|
|
17955
17955
|
}), S$ = new be().openapi(
|
|
17956
17956
|
U({
|
|
17957
17957
|
tags: ["hooks"],
|
|
@@ -17972,7 +17972,7 @@ const E$ = qt.extend({
|
|
|
17972
17972
|
200: {
|
|
17973
17973
|
content: {
|
|
17974
17974
|
"application/json": {
|
|
17975
|
-
schema: o.union([o.array(
|
|
17975
|
+
schema: o.union([o.array(bs), E$])
|
|
17976
17976
|
}
|
|
17977
17977
|
},
|
|
17978
17978
|
description: "List of hooks"
|
|
@@ -18016,7 +18016,7 @@ const E$ = qt.extend({
|
|
|
18016
18016
|
201: {
|
|
18017
18017
|
content: {
|
|
18018
18018
|
"application/json": {
|
|
18019
|
-
schema:
|
|
18019
|
+
schema: bs
|
|
18020
18020
|
}
|
|
18021
18021
|
},
|
|
18022
18022
|
description: "The created hook"
|
|
@@ -18063,7 +18063,7 @@ const E$ = qt.extend({
|
|
|
18063
18063
|
200: {
|
|
18064
18064
|
content: {
|
|
18065
18065
|
"application/json": {
|
|
18066
|
-
schema:
|
|
18066
|
+
schema: bs
|
|
18067
18067
|
// Directly use the union schema
|
|
18068
18068
|
}
|
|
18069
18069
|
},
|
|
@@ -18104,7 +18104,7 @@ const E$ = qt.extend({
|
|
|
18104
18104
|
200: {
|
|
18105
18105
|
content: {
|
|
18106
18106
|
"application/json": {
|
|
18107
|
-
schema:
|
|
18107
|
+
schema: bs
|
|
18108
18108
|
}
|
|
18109
18109
|
},
|
|
18110
18110
|
description: "A hook"
|
|
@@ -19606,7 +19606,7 @@ function ml(t = {}) {
|
|
|
19606
19606
|
return new ax(t);
|
|
19607
19607
|
}
|
|
19608
19608
|
const cx = qt.extend({
|
|
19609
|
-
forms: o.array(
|
|
19609
|
+
forms: o.array(vs)
|
|
19610
19610
|
}), lx = new be().openapi(
|
|
19611
19611
|
U({
|
|
19612
19612
|
tags: ["forms"],
|
|
@@ -19627,7 +19627,7 @@ const cx = qt.extend({
|
|
|
19627
19627
|
200: {
|
|
19628
19628
|
content: {
|
|
19629
19629
|
"application/json": {
|
|
19630
|
-
schema: o.union([o.array(
|
|
19630
|
+
schema: o.union([o.array(vs), cx])
|
|
19631
19631
|
}
|
|
19632
19632
|
},
|
|
19633
19633
|
description: "List of forms"
|
|
@@ -19672,7 +19672,7 @@ const cx = qt.extend({
|
|
|
19672
19672
|
200: {
|
|
19673
19673
|
content: {
|
|
19674
19674
|
"application/json": {
|
|
19675
|
-
schema:
|
|
19675
|
+
schema: vs
|
|
19676
19676
|
}
|
|
19677
19677
|
},
|
|
19678
19678
|
description: "A form"
|
|
@@ -19746,7 +19746,7 @@ const cx = qt.extend({
|
|
|
19746
19746
|
200: {
|
|
19747
19747
|
content: {
|
|
19748
19748
|
"application/json": {
|
|
19749
|
-
schema:
|
|
19749
|
+
schema: vs
|
|
19750
19750
|
}
|
|
19751
19751
|
},
|
|
19752
19752
|
description: "The updated form"
|
|
@@ -19792,7 +19792,7 @@ const cx = qt.extend({
|
|
|
19792
19792
|
201: {
|
|
19793
19793
|
content: {
|
|
19794
19794
|
"application/json": {
|
|
19795
|
-
schema:
|
|
19795
|
+
schema: vs
|
|
19796
19796
|
}
|
|
19797
19797
|
},
|
|
19798
19798
|
description: "A form"
|
|
@@ -19804,7 +19804,7 @@ const cx = qt.extend({
|
|
|
19804
19804
|
return t.json(r, { status: 201 });
|
|
19805
19805
|
}
|
|
19806
19806
|
), ux = qt.extend({
|
|
19807
|
-
roles: o.array(
|
|
19807
|
+
roles: o.array(Ei)
|
|
19808
19808
|
}), dx = new be().openapi(
|
|
19809
19809
|
U({
|
|
19810
19810
|
tags: ["roles"],
|
|
@@ -19825,7 +19825,7 @@ const cx = qt.extend({
|
|
|
19825
19825
|
200: {
|
|
19826
19826
|
content: {
|
|
19827
19827
|
"application/json": {
|
|
19828
|
-
schema: o.union([o.array(
|
|
19828
|
+
schema: o.union([o.array(Ei), ux])
|
|
19829
19829
|
}
|
|
19830
19830
|
},
|
|
19831
19831
|
description: "List of roles"
|
|
@@ -19864,7 +19864,7 @@ const cx = qt.extend({
|
|
|
19864
19864
|
200: {
|
|
19865
19865
|
content: {
|
|
19866
19866
|
"application/json": {
|
|
19867
|
-
schema:
|
|
19867
|
+
schema: Ei
|
|
19868
19868
|
}
|
|
19869
19869
|
},
|
|
19870
19870
|
description: "A role"
|
|
@@ -19903,7 +19903,7 @@ const cx = qt.extend({
|
|
|
19903
19903
|
201: {
|
|
19904
19904
|
content: {
|
|
19905
19905
|
"application/json": {
|
|
19906
|
-
schema:
|
|
19906
|
+
schema: Ei
|
|
19907
19907
|
}
|
|
19908
19908
|
},
|
|
19909
19909
|
description: "Role created"
|
|
@@ -19943,7 +19943,7 @@ const cx = qt.extend({
|
|
|
19943
19943
|
200: {
|
|
19944
19944
|
content: {
|
|
19945
19945
|
"application/json": {
|
|
19946
|
-
schema:
|
|
19946
|
+
schema: Ei
|
|
19947
19947
|
}
|
|
19948
19948
|
},
|
|
19949
19949
|
description: "Updated role"
|
|
@@ -20152,7 +20152,7 @@ const cx = qt.extend({
|
|
|
20152
20152
|
return t.json({ message: "Permissions removed successfully" });
|
|
20153
20153
|
}
|
|
20154
20154
|
), px = qt.extend({
|
|
20155
|
-
resource_servers: o.array(
|
|
20155
|
+
resource_servers: o.array(Ai)
|
|
20156
20156
|
}), fx = new be().openapi(
|
|
20157
20157
|
U({
|
|
20158
20158
|
tags: ["resource-servers"],
|
|
@@ -20174,7 +20174,7 @@ const cx = qt.extend({
|
|
|
20174
20174
|
content: {
|
|
20175
20175
|
"application/json": {
|
|
20176
20176
|
schema: o.union([
|
|
20177
|
-
o.array(
|
|
20177
|
+
o.array(Ai),
|
|
20178
20178
|
px
|
|
20179
20179
|
])
|
|
20180
20180
|
}
|
|
@@ -20221,7 +20221,7 @@ const cx = qt.extend({
|
|
|
20221
20221
|
200: {
|
|
20222
20222
|
content: {
|
|
20223
20223
|
"application/json": {
|
|
20224
|
-
schema:
|
|
20224
|
+
schema: Ai
|
|
20225
20225
|
}
|
|
20226
20226
|
},
|
|
20227
20227
|
description: "A resource server"
|
|
@@ -20298,7 +20298,7 @@ const cx = qt.extend({
|
|
|
20298
20298
|
200: {
|
|
20299
20299
|
content: {
|
|
20300
20300
|
"application/json": {
|
|
20301
|
-
schema:
|
|
20301
|
+
schema: Ai
|
|
20302
20302
|
}
|
|
20303
20303
|
},
|
|
20304
20304
|
description: "The updated resource server"
|
|
@@ -20351,7 +20351,7 @@ const cx = qt.extend({
|
|
|
20351
20351
|
201: {
|
|
20352
20352
|
content: {
|
|
20353
20353
|
"application/json": {
|
|
20354
|
-
schema:
|
|
20354
|
+
schema: Ai
|
|
20355
20355
|
}
|
|
20356
20356
|
},
|
|
20357
20357
|
description: "A resource server"
|
|
@@ -20396,7 +20396,7 @@ const cx = qt.extend({
|
|
|
20396
20396
|
description: "EA The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
|
|
20397
20397
|
})
|
|
20398
20398
|
}), gx = qt.extend({
|
|
20399
|
-
client_grants: o.array(
|
|
20399
|
+
client_grants: o.array(xi)
|
|
20400
20400
|
}), mx = new be().openapi(
|
|
20401
20401
|
U({
|
|
20402
20402
|
tags: ["client-grants"],
|
|
@@ -20418,7 +20418,7 @@ const cx = qt.extend({
|
|
|
20418
20418
|
content: {
|
|
20419
20419
|
"application/json": {
|
|
20420
20420
|
schema: o.union([
|
|
20421
|
-
o.array(
|
|
20421
|
+
o.array(xi),
|
|
20422
20422
|
gx
|
|
20423
20423
|
])
|
|
20424
20424
|
}
|
|
@@ -20470,7 +20470,7 @@ const cx = qt.extend({
|
|
|
20470
20470
|
200: {
|
|
20471
20471
|
content: {
|
|
20472
20472
|
"application/json": {
|
|
20473
|
-
schema:
|
|
20473
|
+
schema: xi
|
|
20474
20474
|
}
|
|
20475
20475
|
},
|
|
20476
20476
|
description: "A client grant"
|
|
@@ -20546,7 +20546,7 @@ const cx = qt.extend({
|
|
|
20546
20546
|
200: {
|
|
20547
20547
|
content: {
|
|
20548
20548
|
"application/json": {
|
|
20549
|
-
schema:
|
|
20549
|
+
schema: xi
|
|
20550
20550
|
}
|
|
20551
20551
|
},
|
|
20552
20552
|
description: "The updated client grant"
|
|
@@ -20600,7 +20600,7 @@ const cx = qt.extend({
|
|
|
20600
20600
|
201: {
|
|
20601
20601
|
content: {
|
|
20602
20602
|
"application/json": {
|
|
20603
|
-
schema:
|
|
20603
|
+
schema: xi
|
|
20604
20604
|
}
|
|
20605
20605
|
},
|
|
20606
20606
|
description: "A client grant"
|
|
@@ -20945,7 +20945,7 @@ const cx = qt.extend({
|
|
|
20945
20945
|
}
|
|
20946
20946
|
],
|
|
20947
20947
|
responses: {
|
|
20948
|
-
|
|
20948
|
+
204: {
|
|
20949
20949
|
description: "Members added successfully"
|
|
20950
20950
|
}
|
|
20951
20951
|
}
|
|
@@ -20967,10 +20967,7 @@ const cx = qt.extend({
|
|
|
20967
20967
|
user_id: s,
|
|
20968
20968
|
organization_id: n
|
|
20969
20969
|
});
|
|
20970
|
-
return
|
|
20971
|
-
{ message: "Members added successfully" },
|
|
20972
|
-
{ status: 201 }
|
|
20973
|
-
);
|
|
20970
|
+
return new Response(null, { status: 204 });
|
|
20974
20971
|
}
|
|
20975
20972
|
).openapi(
|
|
20976
20973
|
U({
|
|
@@ -21673,7 +21670,7 @@ function Rx() {
|
|
|
21673
21670
|
const t = new Uint8Array(32);
|
|
21674
21671
|
return crypto.getRandomValues(t), l1(t);
|
|
21675
21672
|
}
|
|
21676
|
-
function
|
|
21673
|
+
function Os(t, e) {
|
|
21677
21674
|
const n = new TextEncoder().encode(e.toString()), r = new Request(t, {
|
|
21678
21675
|
method: "POST",
|
|
21679
21676
|
body: n
|
|
@@ -21699,12 +21696,12 @@ async function tc(t) {
|
|
|
21699
21696
|
throw new oa(e.status);
|
|
21700
21697
|
}
|
|
21701
21698
|
if (typeof n != "object" || n === null)
|
|
21702
|
-
throw new
|
|
21699
|
+
throw new Ti(e.status, n);
|
|
21703
21700
|
let r;
|
|
21704
21701
|
try {
|
|
21705
21702
|
r = d1(n);
|
|
21706
21703
|
} catch {
|
|
21707
|
-
throw new
|
|
21704
|
+
throw new Ti(e.status, n);
|
|
21708
21705
|
}
|
|
21709
21706
|
throw r;
|
|
21710
21707
|
}
|
|
@@ -21716,7 +21713,7 @@ async function tc(t) {
|
|
|
21716
21713
|
throw new oa(e.status);
|
|
21717
21714
|
}
|
|
21718
21715
|
if (typeof n != "object" || n === null)
|
|
21719
|
-
throw new
|
|
21716
|
+
throw new Ti(e.status, n);
|
|
21720
21717
|
return new Ox(n);
|
|
21721
21718
|
}
|
|
21722
21719
|
throw e.body !== null && await e.body.cancel(), new oa(e.status);
|
|
@@ -21733,15 +21730,15 @@ async function jx(t) {
|
|
|
21733
21730
|
try {
|
|
21734
21731
|
n = await e.json();
|
|
21735
21732
|
} catch {
|
|
21736
|
-
throw new
|
|
21733
|
+
throw new Ti(e.status, null);
|
|
21737
21734
|
}
|
|
21738
21735
|
if (typeof n != "object" || n === null)
|
|
21739
|
-
throw new
|
|
21736
|
+
throw new Ti(e.status, n);
|
|
21740
21737
|
let r;
|
|
21741
21738
|
try {
|
|
21742
21739
|
r = d1(n);
|
|
21743
21740
|
} catch {
|
|
21744
|
-
throw new
|
|
21741
|
+
throw new Ti(e.status, n);
|
|
21745
21742
|
}
|
|
21746
21743
|
throw r;
|
|
21747
21744
|
}
|
|
@@ -21799,7 +21796,7 @@ class oa extends Error {
|
|
|
21799
21796
|
this.status = n;
|
|
21800
21797
|
}
|
|
21801
21798
|
}
|
|
21802
|
-
class
|
|
21799
|
+
class Ti extends Error {
|
|
21803
21800
|
constructor(n, r) {
|
|
21804
21801
|
super("Unexpected error response body");
|
|
21805
21802
|
xe(this, "status");
|
|
@@ -21829,7 +21826,7 @@ class yf {
|
|
|
21829
21826
|
async validateAuthorizationCode(e, n, r) {
|
|
21830
21827
|
const i = new URLSearchParams();
|
|
21831
21828
|
i.set("grant_type", "authorization_code"), i.set("code", n), this.redirectURI !== null && i.set("redirect_uri", this.redirectURI), r !== null && i.set("code_verifier", r), this.clientPassword === null && i.set("client_id", this.clientId);
|
|
21832
|
-
const s =
|
|
21829
|
+
const s = Os(e, i);
|
|
21833
21830
|
if (this.clientPassword !== null) {
|
|
21834
21831
|
const l = Wl(this.clientId, this.clientPassword);
|
|
21835
21832
|
s.headers.set("Authorization", `Basic ${l}`);
|
|
@@ -21839,7 +21836,7 @@ class yf {
|
|
|
21839
21836
|
async refreshAccessToken(e, n, r) {
|
|
21840
21837
|
const i = new URLSearchParams();
|
|
21841
21838
|
i.set("grant_type", "refresh_token"), i.set("refresh_token", n), this.clientPassword === null && i.set("client_id", this.clientId), r.length > 0 && i.set("scope", r.join(" "));
|
|
21842
|
-
const s =
|
|
21839
|
+
const s = Os(e, i);
|
|
21843
21840
|
if (this.clientPassword !== null) {
|
|
21844
21841
|
const l = Wl(this.clientId, this.clientPassword);
|
|
21845
21842
|
s.headers.set("Authorization", `Basic ${l}`);
|
|
@@ -21849,7 +21846,7 @@ class yf {
|
|
|
21849
21846
|
async revokeToken(e, n) {
|
|
21850
21847
|
const r = new URLSearchParams();
|
|
21851
21848
|
r.set("token", n), this.clientPassword === null && r.set("client_id", this.clientId);
|
|
21852
|
-
const i =
|
|
21849
|
+
const i = Os(e, r);
|
|
21853
21850
|
if (this.clientPassword !== null) {
|
|
21854
21851
|
const s = Wl(this.clientId, this.clientPassword);
|
|
21855
21852
|
i.headers.set("Authorization", `Basic ${s}`);
|
|
@@ -21869,7 +21866,7 @@ var ag;
|
|
|
21869
21866
|
(function(t) {
|
|
21870
21867
|
t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
|
|
21871
21868
|
})(ag || (ag = {}));
|
|
21872
|
-
function
|
|
21869
|
+
function Ds(t) {
|
|
21873
21870
|
return Bx(t, Lx, nc.None);
|
|
21874
21871
|
}
|
|
21875
21872
|
function Bx(t, e, n) {
|
|
@@ -21893,11 +21890,11 @@ var cg;
|
|
|
21893
21890
|
t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
|
|
21894
21891
|
})(cg || (cg = {}));
|
|
21895
21892
|
function Fx(t, e, n) {
|
|
21896
|
-
const r =
|
|
21893
|
+
const r = Ds(new TextEncoder().encode(t)), i = Ds(new TextEncoder().encode(e)), s = Ds(n);
|
|
21897
21894
|
return r + "." + i + "." + s;
|
|
21898
21895
|
}
|
|
21899
21896
|
function Ux(t, e) {
|
|
21900
|
-
const n =
|
|
21897
|
+
const n = Ds(new TextEncoder().encode(t)), r = Ds(new TextEncoder().encode(e)), i = n + "." + r;
|
|
21901
21898
|
return new TextEncoder().encode(i);
|
|
21902
21899
|
}
|
|
21903
21900
|
const Mx = "https://appleid.apple.com/auth/authorize", qx = "https://appleid.apple.com/auth/token";
|
|
@@ -21919,7 +21916,7 @@ class f1 {
|
|
|
21919
21916
|
n.set("grant_type", "authorization_code"), n.set("code", e), n.set("redirect_uri", this.redirectURI), n.set("client_id", this.clientId);
|
|
21920
21917
|
const r = await this.createClientSecret();
|
|
21921
21918
|
n.set("client_secret", r);
|
|
21922
|
-
const i =
|
|
21919
|
+
const i = Os(qx, n);
|
|
21923
21920
|
return await tc(i);
|
|
21924
21921
|
}
|
|
21925
21922
|
async createClientSecret() {
|
|
@@ -21958,7 +21955,7 @@ class h1 {
|
|
|
21958
21955
|
async validateAuthorizationCode(e) {
|
|
21959
21956
|
const n = new URLSearchParams();
|
|
21960
21957
|
n.set("grant_type", "authorization_code"), n.set("code", e), n.set("redirect_uri", this.redirectURI), n.set("client_id", this.clientId), n.set("client_secret", this.clientSecret);
|
|
21961
|
-
const r =
|
|
21958
|
+
const r = Os(Vx, n);
|
|
21962
21959
|
return await tc(r);
|
|
21963
21960
|
}
|
|
21964
21961
|
}
|
|
@@ -22236,7 +22233,7 @@ function _1(t, e) {
|
|
|
22236
22233
|
throw new Error(`Strategy ${e} not found`);
|
|
22237
22234
|
return i;
|
|
22238
22235
|
}
|
|
22239
|
-
async function
|
|
22236
|
+
async function cs(t, e) {
|
|
22240
22237
|
const n = await t.data.legacyClients.get(e);
|
|
22241
22238
|
if (!n)
|
|
22242
22239
|
throw new E(403, { message: "Client not found" });
|
|
@@ -22253,7 +22250,7 @@ async function as(t, e) {
|
|
|
22253
22250
|
...d || {},
|
|
22254
22251
|
...u
|
|
22255
22252
|
});
|
|
22256
|
-
return p.options =
|
|
22253
|
+
return p.options = As.passthrough().parse({
|
|
22257
22254
|
...d.options || {},
|
|
22258
22255
|
...u.options
|
|
22259
22256
|
}), p;
|
|
@@ -22315,7 +22312,7 @@ async function ug(t, e, n, r) {
|
|
|
22315
22312
|
const u = t.get("ip"), d = t.get("useragent"), p = t.get("auth0_client");
|
|
22316
22313
|
s = await t.env.data.loginSessions.create(e.tenant.id, {
|
|
22317
22314
|
expires_at: new Date(
|
|
22318
|
-
Date.now() +
|
|
22315
|
+
Date.now() + qr * 1e3
|
|
22319
22316
|
).toISOString(),
|
|
22320
22317
|
authParams: r,
|
|
22321
22318
|
csrf_token: We(),
|
|
@@ -22369,7 +22366,7 @@ async function dg(t, { code: e, state: n }) {
|
|
|
22369
22366
|
});
|
|
22370
22367
|
}
|
|
22371
22368
|
}
|
|
22372
|
-
const a = await
|
|
22369
|
+
const a = await cs(
|
|
22373
22370
|
r,
|
|
22374
22371
|
s.authParams.client_id
|
|
22375
22372
|
);
|
|
@@ -22675,7 +22672,7 @@ const a5 = new be().openapi(
|
|
|
22675
22672
|
});
|
|
22676
22673
|
const a = t.req.header("cookie");
|
|
22677
22674
|
if (a) {
|
|
22678
|
-
const u =
|
|
22675
|
+
const u = Oi(r.tenant.id, a);
|
|
22679
22676
|
if (u) {
|
|
22680
22677
|
const d = await t.env.data.sessions.get(
|
|
22681
22678
|
r.tenant.id,
|
|
@@ -22928,7 +22925,8 @@ const d5 = o.object({
|
|
|
22928
22925
|
code: o.string(),
|
|
22929
22926
|
redirect_uri: o.string().optional(),
|
|
22930
22927
|
client_secret: o.string().optional(),
|
|
22931
|
-
code_verifier: o.string().optional()
|
|
22928
|
+
code_verifier: o.string().optional(),
|
|
22929
|
+
organization: o.string().optional()
|
|
22932
22930
|
}).refine(
|
|
22933
22931
|
(t) => "client_secret" in t && !("code_verifier" in t) || !("client_secret" in t) && "code_verifier" in t,
|
|
22934
22932
|
{
|
|
@@ -22950,7 +22948,7 @@ async function p5(t, e) {
|
|
|
22950
22948
|
if (new Date(r.expires_at) < /* @__PURE__ */ new Date())
|
|
22951
22949
|
throw new E(403, { message: "Code expired" });
|
|
22952
22950
|
if (r.used_at)
|
|
22953
|
-
throw new
|
|
22951
|
+
throw new Fr(403, {
|
|
22954
22952
|
error: "invalid_grant",
|
|
22955
22953
|
error_description: "Invalid authorization code"
|
|
22956
22954
|
});
|
|
@@ -22960,6 +22958,18 @@ async function p5(t, e) {
|
|
|
22960
22958
|
);
|
|
22961
22959
|
if (!i)
|
|
22962
22960
|
throw new E(403, { message: "Invalid login" });
|
|
22961
|
+
if (e.organization) {
|
|
22962
|
+
if (!i.authParams.organization)
|
|
22963
|
+
throw new Fr(400, {
|
|
22964
|
+
error: "invalid_request",
|
|
22965
|
+
error_description: "Organization parameter provided but login session has no organization"
|
|
22966
|
+
});
|
|
22967
|
+
if (e.organization !== i.authParams.organization)
|
|
22968
|
+
throw new Fr(400, {
|
|
22969
|
+
error: "invalid_request",
|
|
22970
|
+
error_description: "Organization parameter does not match login session organization"
|
|
22971
|
+
});
|
|
22972
|
+
}
|
|
22963
22973
|
if ("client_secret" in e) {
|
|
22964
22974
|
const d = await t.env.data.legacyClients.get("DEFAULT_CLIENT");
|
|
22965
22975
|
if (!aa(n.client_secret, e.client_secret) && !aa(d == null ? void 0 : d.client_secret, e.client_secret))
|
|
@@ -23106,7 +23116,7 @@ function hg(t, e) {
|
|
|
23106
23116
|
return t[1] && e[1] ? t[1] > e[1] ? 1 : t[1] < e[1] ? -1 : 0 : !t[1] && e[1] ? 1 : t[1] && !e[1] ? -1 : 0;
|
|
23107
23117
|
}
|
|
23108
23118
|
var _5 = {}.constructor;
|
|
23109
|
-
function
|
|
23119
|
+
function Ii(t) {
|
|
23110
23120
|
return t != null && t.constructor === _5;
|
|
23111
23121
|
}
|
|
23112
23122
|
function Zd(t) {
|
|
@@ -23543,8 +23553,8 @@ function _g(t, e) {
|
|
|
23543
23553
|
function w1(t) {
|
|
23544
23554
|
if (!t)
|
|
23545
23555
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
23546
|
-
if (!
|
|
23547
|
-
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(
|
|
23556
|
+
if (!Ii(t) || !Ii(t.countries))
|
|
23557
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Ii(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + E5(t) + ": " + t, "."));
|
|
23548
23558
|
}
|
|
23549
23559
|
var E5 = function(e) {
|
|
23550
23560
|
return Zd(e);
|
|
@@ -23825,11 +23835,11 @@ function Q5(t, e, n) {
|
|
|
23825
23835
|
if (Z5.test(r.IDDPrefix()))
|
|
23826
23836
|
return r.IDDPrefix();
|
|
23827
23837
|
}
|
|
23828
|
-
var eA = ";ext=",
|
|
23838
|
+
var eA = ";ext=", hi = function(e) {
|
|
23829
23839
|
return "([".concat(gn, "]{1,").concat(e, "})");
|
|
23830
23840
|
};
|
|
23831
23841
|
function x1(t) {
|
|
23832
|
-
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", h = "[ \\t]*", g = "(?:,{2}|;)", b = eA +
|
|
23842
|
+
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", h = "[ \\t]*", g = "(?:,{2}|;)", b = eA + hi(e), x = s + u + a + hi(e) + l, C = s + d + a + hi(r) + l, O = p + hi(i) + "#", D = h + g + a + hi(n) + l, A = h + "(?:,)+" + a + hi(r) + l;
|
|
23833
23843
|
return b + "|" + x + "|" + C + "|" + O + "|" + D + "|" + A;
|
|
23834
23844
|
}
|
|
23835
23845
|
var tA = "[" + gn + "]{" + xf + "}", nA = "[" + Af + "]{0,1}(?:[" + rc + "]*[" + gn + "]){3,}[" + rc + gn + "]*", rA = new RegExp("^[" + Af + "]{0,1}(?:[" + rc + "]*[" + gn + "]){1,2}$", "i"), iA = nA + // Phone number extensions
|
|
@@ -24018,7 +24028,7 @@ var wA = /* @__PURE__ */ function() {
|
|
|
24018
24028
|
if (typeof e == "string") {
|
|
24019
24029
|
if (e[0] === "+" && !n)
|
|
24020
24030
|
throw new TypeError("`metadata` argument not passed");
|
|
24021
|
-
if (
|
|
24031
|
+
if (Ii(n) && Ii(n.countries)) {
|
|
24022
24032
|
r = n;
|
|
24023
24033
|
var i = e;
|
|
24024
24034
|
if (!$A.test(i))
|
|
@@ -24647,7 +24657,7 @@ function hE(t) {
|
|
|
24647
24657
|
a ? (u = s, d = a) : (u = void 0, d = s), i && (u = aE({
|
|
24648
24658
|
defaultCountry: i
|
|
24649
24659
|
}, u));
|
|
24650
|
-
else if (
|
|
24660
|
+
else if (Ii(i))
|
|
24651
24661
|
s ? (u = i, d = s) : d = i;
|
|
24652
24662
|
else throw new Error("Invalid second argument: ".concat(i));
|
|
24653
24663
|
return {
|
|
@@ -24783,12 +24793,12 @@ function $E(t, e, n = !0) {
|
|
|
24783
24793
|
const s = Lg(r.normalized), a = Lg(i.normalized);
|
|
24784
24794
|
return n ? s.length === 8 && a.length === 8 && s.join(":") === a.join(":") : s.slice(0, 4).join(":") === a.slice(0, 4).join(":");
|
|
24785
24795
|
}
|
|
24786
|
-
class
|
|
24796
|
+
class ni extends Error {
|
|
24787
24797
|
constructor(n, r = 302) {
|
|
24788
24798
|
super(`Redirect to ${n}`);
|
|
24789
24799
|
xe(this, "location");
|
|
24790
24800
|
xe(this, "status");
|
|
24791
|
-
this.name =
|
|
24801
|
+
this.name = ni.name, this.location = n, this.status = r;
|
|
24792
24802
|
}
|
|
24793
24803
|
}
|
|
24794
24804
|
const xE = o.object({
|
|
@@ -24838,7 +24848,7 @@ async function k1(t, {
|
|
|
24838
24848
|
message: "Code not found or expired"
|
|
24839
24849
|
});
|
|
24840
24850
|
if (s && b.ip && a && !$E(b.ip, a))
|
|
24841
|
-
throw new
|
|
24851
|
+
throw new ni(
|
|
24842
24852
|
`${ft(t.env)}invalid-session?state=${b.id}`
|
|
24843
24853
|
);
|
|
24844
24854
|
const x = await wc(t, {
|
|
@@ -24883,13 +24893,15 @@ const Fg = o.object({
|
|
|
24883
24893
|
client_id: o.string(),
|
|
24884
24894
|
code: o.string(),
|
|
24885
24895
|
redirect_uri: o.string(),
|
|
24886
|
-
code_verifier: o.string().min(43).max(128)
|
|
24896
|
+
code_verifier: o.string().min(43).max(128),
|
|
24897
|
+
organization: o.string().optional()
|
|
24887
24898
|
}),
|
|
24888
24899
|
// Code grant
|
|
24889
24900
|
o.object({
|
|
24890
24901
|
grant_type: o.literal("authorization_code"),
|
|
24891
24902
|
code: o.string(),
|
|
24892
24903
|
redirect_uri: o.string().optional(),
|
|
24904
|
+
organization: o.string().optional(),
|
|
24893
24905
|
...Fg.shape
|
|
24894
24906
|
}),
|
|
24895
24907
|
// Refresh token
|
|
@@ -25045,7 +25057,7 @@ const SE = new be().openapi(
|
|
|
25045
25057
|
});
|
|
25046
25058
|
else {
|
|
25047
25059
|
if (!((p = i.user) != null && p.user_id))
|
|
25048
|
-
throw new
|
|
25060
|
+
throw new Fr(400, {
|
|
25049
25061
|
error: "invalid_request",
|
|
25050
25062
|
error_description: "User ID is required for user-based grants"
|
|
25051
25063
|
});
|
|
@@ -25156,7 +25168,7 @@ async function C1(t, e) {
|
|
|
25156
25168
|
var a, l;
|
|
25157
25169
|
if (!t.var.client_id)
|
|
25158
25170
|
throw new E(500, { message: "Client not found" });
|
|
25159
|
-
const n = await
|
|
25171
|
+
const n = await cs(t.env, t.var.client_id), r = n.connections.find((u) => u.strategy === "sms");
|
|
25160
25172
|
if (!r)
|
|
25161
25173
|
throw new E(500, { message: "SMS provider not found" });
|
|
25162
25174
|
const i = ((a = r.options) == null ? void 0 : a.provider) || "twilio", s = (l = t.env.smsProviders) == null ? void 0 : l[i];
|
|
@@ -25476,7 +25488,7 @@ const CE = new be().openapi(
|
|
|
25476
25488
|
throw new E(400, {
|
|
25477
25489
|
message: "Client not found"
|
|
25478
25490
|
});
|
|
25479
|
-
if (t.set("client_id", r.client_id), t.set("tenant_id", r.tenant.id), !await
|
|
25491
|
+
if (t.set("client_id", r.client_id), t.set("tenant_id", r.tenant.id), !await Ji({
|
|
25480
25492
|
userAdapter: t.env.data.users,
|
|
25481
25493
|
tenant_id: r.tenant.id,
|
|
25482
25494
|
username: e,
|
|
@@ -25492,7 +25504,7 @@ const CE = new be().openapi(
|
|
|
25492
25504
|
r.tenant.id,
|
|
25493
25505
|
{
|
|
25494
25506
|
expires_at: new Date(
|
|
25495
|
-
Date.now() +
|
|
25507
|
+
Date.now() + qr * 1e3
|
|
25496
25508
|
).toISOString(),
|
|
25497
25509
|
authParams: s,
|
|
25498
25510
|
csrf_token: We(),
|
|
@@ -25649,7 +25661,7 @@ const TE = new be().openapi(
|
|
|
25649
25661
|
audience: u,
|
|
25650
25662
|
response_type: d,
|
|
25651
25663
|
nonce: p
|
|
25652
|
-
} = t.req.valid("query"), h = await
|
|
25664
|
+
} = t.req.valid("query"), h = await cs(e, n);
|
|
25653
25665
|
t.set("client_id", h.client_id), t.set("tenant_id", h.tenant.id), t.set("connection", "email");
|
|
25654
25666
|
const g = {
|
|
25655
25667
|
client_id: n,
|
|
@@ -25697,7 +25709,7 @@ const TE = new be().openapi(
|
|
|
25697
25709
|
);
|
|
25698
25710
|
}
|
|
25699
25711
|
);
|
|
25700
|
-
class
|
|
25712
|
+
class bi extends E {
|
|
25701
25713
|
constructor(n, r) {
|
|
25702
25714
|
super(n, r);
|
|
25703
25715
|
xe(this, "_code");
|
|
@@ -25711,7 +25723,7 @@ async function I1(t, e, n, r) {
|
|
|
25711
25723
|
const { data: i } = t.env, { username: s } = n;
|
|
25712
25724
|
if (t.set("username", s), !s)
|
|
25713
25725
|
throw new E(400, { message: "Username is required" });
|
|
25714
|
-
const a = await
|
|
25726
|
+
const a = await Ji({
|
|
25715
25727
|
userAdapter: t.env.data.users,
|
|
25716
25728
|
tenant_id: e.tenant.id,
|
|
25717
25729
|
username: s,
|
|
@@ -25722,14 +25734,14 @@ async function I1(t, e, n, r) {
|
|
|
25722
25734
|
type: qe.FAILED_LOGIN_INCORRECT_PASSWORD,
|
|
25723
25735
|
description: "Invalid user"
|
|
25724
25736
|
});
|
|
25725
|
-
throw on(t, i.logs.create(e.tenant.id, b)), new
|
|
25737
|
+
throw on(t, i.logs.create(e.tenant.id, b)), new bi(403, {
|
|
25726
25738
|
message: "User not found",
|
|
25727
25739
|
code: "USER_NOT_FOUND"
|
|
25728
25740
|
});
|
|
25729
25741
|
}
|
|
25730
25742
|
const l = a.linked_to ? await i.users.get(e.tenant.id, a.linked_to) : a;
|
|
25731
25743
|
if (!l)
|
|
25732
|
-
throw new
|
|
25744
|
+
throw new bi(403, {
|
|
25733
25745
|
message: "User not found",
|
|
25734
25746
|
code: "USER_NOT_FOUND"
|
|
25735
25747
|
});
|
|
@@ -25740,7 +25752,7 @@ async function I1(t, e, n, r) {
|
|
|
25740
25752
|
type: qe.FAILED_LOGIN_INCORRECT_PASSWORD,
|
|
25741
25753
|
description: "Invalid password"
|
|
25742
25754
|
});
|
|
25743
|
-
throw on(t, i.logs.create(e.tenant.id, b)), new
|
|
25755
|
+
throw on(t, i.logs.create(e.tenant.id, b)), new bi(403, {
|
|
25744
25756
|
message: "Invalid password",
|
|
25745
25757
|
code: "INVALID_PASSWORD"
|
|
25746
25758
|
});
|
|
@@ -25758,7 +25770,7 @@ async function I1(t, e, n, r) {
|
|
|
25758
25770
|
type: qe.FAILED_LOGIN,
|
|
25759
25771
|
description: "Too many failed login attempts"
|
|
25760
25772
|
});
|
|
25761
|
-
throw on(t, i.logs.create(e.tenant.id, b)), new
|
|
25773
|
+
throw on(t, i.logs.create(e.tenant.id, b)), new bi(403, {
|
|
25762
25774
|
message: "Too many failed login attempts",
|
|
25763
25775
|
code: "TOO_MANY_FAILED_LOGINS"
|
|
25764
25776
|
});
|
|
@@ -25769,7 +25781,7 @@ async function I1(t, e, n, r) {
|
|
|
25769
25781
|
type: qe.FAILED_LOGIN,
|
|
25770
25782
|
description: "Email not verified"
|
|
25771
25783
|
});
|
|
25772
|
-
throw await i.logs.create(e.tenant.id, b), new
|
|
25784
|
+
throw await i.logs.create(e.tenant.id, b), new bi(403, {
|
|
25773
25785
|
message: "Email not verified",
|
|
25774
25786
|
code: "EMAIL_NOT_VERIFIED"
|
|
25775
25787
|
});
|
|
@@ -25903,7 +25915,7 @@ const OE = new be().openapi(
|
|
|
25903
25915
|
i.tenant.id,
|
|
25904
25916
|
{
|
|
25905
25917
|
expires_at: new Date(
|
|
25906
|
-
Date.now() +
|
|
25918
|
+
Date.now() + qr * 1e3
|
|
25907
25919
|
).toISOString(),
|
|
25908
25920
|
authParams: {
|
|
25909
25921
|
client_id: n,
|
|
@@ -25970,7 +25982,7 @@ async function DE({
|
|
|
25970
25982
|
n.tenant.id,
|
|
25971
25983
|
{
|
|
25972
25984
|
expires_at: new Date(
|
|
25973
|
-
Date.now() +
|
|
25985
|
+
Date.now() + qr * 1e3
|
|
25974
25986
|
).toISOString(),
|
|
25975
25987
|
authParams: r,
|
|
25976
25988
|
csrf_token: We(),
|
|
@@ -26003,7 +26015,7 @@ async function DE({
|
|
|
26003
26015
|
code_type: "otp",
|
|
26004
26016
|
login_id: h.id,
|
|
26005
26017
|
expires_at: new Date(
|
|
26006
|
-
Date.now() +
|
|
26018
|
+
Date.now() + qr * 1e3
|
|
26007
26019
|
).toISOString(),
|
|
26008
26020
|
redirect_uri: r.redirect_uri
|
|
26009
26021
|
}), await If(t, {
|
|
@@ -26257,7 +26269,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26257
26269
|
organization: q
|
|
26258
26270
|
} = t.req.valid("query");
|
|
26259
26271
|
t.set("log", "authorize");
|
|
26260
|
-
const M = await
|
|
26272
|
+
const M = await cs(e, n);
|
|
26261
26273
|
t.set("client_id", M.client_id), t.set("tenant_id", M.tenant.id);
|
|
26262
26274
|
const K = {
|
|
26263
26275
|
redirect_uri: i.split("#")[0],
|
|
@@ -26290,7 +26302,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26290
26302
|
message: `Invalid redirect URI - ${K.redirect_uri}`
|
|
26291
26303
|
});
|
|
26292
26304
|
}
|
|
26293
|
-
const Z =
|
|
26305
|
+
const Z = Oi(
|
|
26294
26306
|
M.tenant.id,
|
|
26295
26307
|
t.req.header("cookie")
|
|
26296
26308
|
), Y = Z ? await e.data.sessions.get(M.tenant.id, Z) : void 0, Se = Y && !Y.revoked_at ? Y : void 0;
|
|
@@ -26383,7 +26395,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26383
26395
|
async (t) => {
|
|
26384
26396
|
const { env: e } = t, { client_id: n, redirect_url: r, login_hint: i, screen_hint: s } = t.req.valid("query");
|
|
26385
26397
|
t.set("log", "account");
|
|
26386
|
-
const a = await
|
|
26398
|
+
const a = await cs(e, n);
|
|
26387
26399
|
t.set("client_id", a.client_id), t.set("tenant_id", a.tenant.id);
|
|
26388
26400
|
const l = {
|
|
26389
26401
|
redirect_uri: r || t.req.url,
|
|
@@ -26403,7 +26415,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26403
26415
|
message: `Invalid redirect URI - ${l.redirect_uri}`
|
|
26404
26416
|
});
|
|
26405
26417
|
}
|
|
26406
|
-
const d =
|
|
26418
|
+
const d = Oi(
|
|
26407
26419
|
a.tenant.id,
|
|
26408
26420
|
t.req.header("cookie")
|
|
26409
26421
|
), p = d ? await e.data.sessions.get(a.tenant.id, d) : void 0, h = p && !p.revoked_at ? p : void 0, g = new URL(t.req.url);
|
|
@@ -26412,7 +26424,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26412
26424
|
a.tenant.id,
|
|
26413
26425
|
{
|
|
26414
26426
|
expires_at: new Date(
|
|
26415
|
-
Date.now() +
|
|
26427
|
+
Date.now() + qr * 1e3
|
|
26416
26428
|
).toISOString(),
|
|
26417
26429
|
authParams: l,
|
|
26418
26430
|
csrf_token: We(),
|
|
@@ -26560,8 +26572,8 @@ var Df = (t, ...e) => {
|
|
|
26560
26572
|
}, i;
|
|
26561
26573
|
}, P1 = (t) => {
|
|
26562
26574
|
const e = [t], n = j1(e);
|
|
26563
|
-
return n.values = e, n.Provider = n,
|
|
26564
|
-
},
|
|
26575
|
+
return n.values = e, n.Provider = n, Vi.push(n), n;
|
|
26576
|
+
}, Vi = [], B1 = (t) => {
|
|
26565
26577
|
const e = [t], n = (r) => {
|
|
26566
26578
|
e.push(r.value);
|
|
26567
26579
|
let i;
|
|
@@ -26572,8 +26584,8 @@ var Df = (t, ...e) => {
|
|
|
26572
26584
|
}
|
|
26573
26585
|
return i instanceof Promise ? i.then((s) => dn(s, s.callbacks)) : dn(i);
|
|
26574
26586
|
};
|
|
26575
|
-
return n.values = e, n.Provider = n, n[Rf] = j1(e),
|
|
26576
|
-
},
|
|
26587
|
+
return n.values = e, n.Provider = n, n[Rf] = j1(e), Vi.push(n), n;
|
|
26588
|
+
}, ls = (t) => t.values.at(-1), la = {
|
|
26577
26589
|
title: [],
|
|
26578
26590
|
script: ["src"],
|
|
26579
26591
|
style: ["data-href"],
|
|
@@ -26626,7 +26638,7 @@ var Df = (t, ...e) => {
|
|
|
26626
26638
|
}, qE = ({ children: t, ...e }) => {
|
|
26627
26639
|
const n = jf();
|
|
26628
26640
|
if (n) {
|
|
26629
|
-
const r =
|
|
26641
|
+
const r = ls(n);
|
|
26630
26642
|
if (r === "svg" || r === "head")
|
|
26631
26643
|
return new pn(
|
|
26632
26644
|
"title",
|
|
@@ -26640,13 +26652,13 @@ var Df = (t, ...e) => {
|
|
|
26640
26652
|
...e
|
|
26641
26653
|
}) => {
|
|
26642
26654
|
const n = jf();
|
|
26643
|
-
return ["src", "async"].some((r) => !e[r]) || n &&
|
|
26655
|
+
return ["src", "async"].some((r) => !e[r]) || n && ls(n) === "head" ? To("script", t, e) : Io("script", t, e, !1);
|
|
26644
26656
|
}, VE = ({
|
|
26645
26657
|
children: t,
|
|
26646
26658
|
...e
|
|
26647
26659
|
}) => ["href", "precedence"].every((n) => n in e) ? (e["data-href"] = e.href, delete e.href, Io("style", t, e, !0)) : To("style", t, e), HE = ({ children: t, ...e }) => ["onLoad", "onError"].some((n) => n in e) || e.rel === "stylesheet" && (!("precedence" in e) || "disabled" in e) ? To("link", t, e) : Io("link", t, e, "precedence" in e), KE = ({ children: t, ...e }) => {
|
|
26648
26660
|
const n = jf();
|
|
26649
|
-
return n &&
|
|
26661
|
+
return n && ls(n) === "head" ? To("meta", t, e) : Io("meta", t, e, !1);
|
|
26650
26662
|
}, L1 = (t, { children: e, ...n }) => new pn(t, n, Co(e ?? [])), GE = (t) => (typeof t.action == "function" && (t.action = sc in t.action ? t.action[sc] : void 0), L1("form", t)), F1 = (t, e) => (typeof e.formAction == "function" && (e.formAction = sc in e.formAction ? e.formAction[sc] : void 0), L1(t, e)), WE = (t) => F1("input", t), XE = (t) => F1("button", t);
|
|
26651
26663
|
const Zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26652
26664
|
__proto__: null,
|
|
@@ -26769,7 +26781,7 @@ var JE = /* @__PURE__ */ new Map([
|
|
|
26769
26781
|
const e = this.tag, n = this.props;
|
|
26770
26782
|
let { children: r } = this;
|
|
26771
26783
|
t[0] += `<${e}`;
|
|
26772
|
-
const i = Zs &&
|
|
26784
|
+
const i = Zs && ls(Zs) === "svg" ? (s) => YE(oc(s)) : (s) => oc(s);
|
|
26773
26785
|
for (let [s, a] of Object.entries(n))
|
|
26774
26786
|
if (s = i(s), s !== "children") {
|
|
26775
26787
|
if (s === "style" && typeof a == "object") {
|
|
@@ -26809,10 +26821,10 @@ var JE = /* @__PURE__ */ new Map([
|
|
|
26809
26821
|
});
|
|
26810
26822
|
if (!(typeof n == "boolean" || n == null))
|
|
26811
26823
|
if (n instanceof Promise)
|
|
26812
|
-
if (
|
|
26824
|
+
if (Vi.length === 0)
|
|
26813
26825
|
t.unshift("", n);
|
|
26814
26826
|
else {
|
|
26815
|
-
const r =
|
|
26827
|
+
const r = Vi.map((i) => [i, i.values.at(-1)]);
|
|
26816
26828
|
t.unshift(
|
|
26817
26829
|
"",
|
|
26818
26830
|
n.then((i) => (i instanceof pn && (i.localContexts = r), i))
|
|
@@ -26890,7 +26902,7 @@ async function ze(t, e, n = !1) {
|
|
|
26890
26902
|
if (!i)
|
|
26891
26903
|
throw new E(400, { message: "Login session not found" });
|
|
26892
26904
|
t.set("loginSession", i);
|
|
26893
|
-
const s = await
|
|
26905
|
+
const s = await cs(
|
|
26894
26906
|
r,
|
|
26895
26907
|
i.authParams.client_id
|
|
26896
26908
|
);
|
|
@@ -26903,7 +26915,7 @@ async function ze(t, e, n = !1) {
|
|
|
26903
26915
|
message: "Login session closed and no redirect URI available"
|
|
26904
26916
|
});
|
|
26905
26917
|
const h = new URL(i.authParams.redirect_uri);
|
|
26906
|
-
throw h.searchParams.set("error", "access_denied"), h.searchParams.set("error_description", "Login session closed"), i.authParams.state && h.searchParams.set("state", i.authParams.state), new
|
|
26918
|
+
throw h.searchParams.set("error", "access_denied"), h.searchParams.set("error_description", "Login session closed"), i.authParams.state && h.searchParams.set("state", i.authParams.state), new ni(h.toString(), 302);
|
|
26907
26919
|
}
|
|
26908
26920
|
} else throw new E(400, { message: "Tenant not found" });
|
|
26909
26921
|
const l = await r.data.themes.get(a.id, "default"), u = await r.data.branding.get(a.id), d = (p = i.authParams.ui_locales) == null ? void 0 : p.split(" ").map((h) => h.split("-")[0]).find((h) => {
|
|
@@ -26918,14 +26930,14 @@ async function ze(t, e, n = !1) {
|
|
|
26918
26930
|
loginSession: i
|
|
26919
26931
|
};
|
|
26920
26932
|
}
|
|
26921
|
-
async function
|
|
26933
|
+
async function ri(t, e) {
|
|
26922
26934
|
const { theme: n, branding: r, client: i, tenant: s, loginSession: a } = await ze(
|
|
26923
26935
|
t,
|
|
26924
26936
|
e,
|
|
26925
26937
|
!0
|
|
26926
|
-
), l =
|
|
26938
|
+
), l = Oi(i.tenant.id, t.req.header("cookie")), u = l ? await t.env.data.sessions.get(i.tenant.id, l) : null;
|
|
26927
26939
|
if (!u || !a.session_id)
|
|
26928
|
-
throw new
|
|
26940
|
+
throw new ni(
|
|
26929
26941
|
`/u/login/identifier?state=${encodeURIComponent(e)}`
|
|
26930
26942
|
);
|
|
26931
26943
|
const d = await t.env.data.sessions.get(
|
|
@@ -26936,7 +26948,7 @@ async function ni(t, e) {
|
|
|
26936
26948
|
u.user_id
|
|
26937
26949
|
);
|
|
26938
26950
|
if (!p || (d == null ? void 0 : d.user_id) !== u.user_id)
|
|
26939
|
-
throw new
|
|
26951
|
+
throw new ni(
|
|
26940
26952
|
`/u/login/identifier?state=${encodeURIComponent(e)}`
|
|
26941
26953
|
);
|
|
26942
26954
|
return {
|
|
@@ -27614,7 +27626,7 @@ var Qs = "_hp", _8 = {
|
|
|
27614
27626
|
}, y8 = {
|
|
27615
27627
|
svg: "2000/svg",
|
|
27616
27628
|
math: "1998/Math/MathML"
|
|
27617
|
-
}, eo = [], op = /* @__PURE__ */ new WeakMap(),
|
|
27629
|
+
}, eo = [], op = /* @__PURE__ */ new WeakMap(), Hi = void 0, w8 = () => Hi, zn = (t) => "t" in t, tu = {
|
|
27618
27630
|
onClick: ["click", !1]
|
|
27619
27631
|
}, Kg = (t) => {
|
|
27620
27632
|
if (!t.startsWith("on"))
|
|
@@ -27626,7 +27638,7 @@ var Qs = "_hp", _8 = {
|
|
|
27626
27638
|
const [, n, r] = e;
|
|
27627
27639
|
return tu[t] = [(_8[n] || n).toLowerCase(), !!r];
|
|
27628
27640
|
}
|
|
27629
|
-
}, Gg = (t, e) =>
|
|
27641
|
+
}, Gg = (t, e) => Hi && t instanceof SVGElement && /[A-Z]/.test(e) && (e in t.style || e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e, v8 = (t, e, n) => {
|
|
27630
27642
|
var r;
|
|
27631
27643
|
e || (e = {});
|
|
27632
27644
|
for (let i in e) {
|
|
@@ -27715,7 +27727,7 @@ var Qs = "_hp", _8 = {
|
|
|
27715
27727
|
zn(t) || ((n = (e = t[Je]) == null ? void 0 : e[1][G1]) == null || n.forEach((l) => {
|
|
27716
27728
|
var u;
|
|
27717
27729
|
return (u = l[2]) == null ? void 0 : u.call(l);
|
|
27718
|
-
}), (r = op.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (s = t.vC) == null || s.forEach(V1)), t.p || ((a = t.e) == null || a.remove(), delete t.e), typeof t.tag == "function" && (
|
|
27730
|
+
}), (r = op.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (s = t.vC) == null || s.forEach(V1)), t.p || ((a = t.e) == null || a.remove(), delete t.e), typeof t.tag == "function" && ($s.delete(t), pa.delete(t), delete t[Je][3], t.a = !0);
|
|
27719
27731
|
}, H1 = (t, e, n) => {
|
|
27720
27732
|
t.c = e, K1(t, e, n);
|
|
27721
27733
|
}, Wg = (t, e) => {
|
|
@@ -27770,7 +27782,7 @@ var Qs = "_hp", _8 = {
|
|
|
27770
27782
|
Array.isArray(n[x]) && n.splice(x, 1, ...n[x].flat());
|
|
27771
27783
|
let C = A8(n[x]);
|
|
27772
27784
|
if (C) {
|
|
27773
|
-
typeof C.tag == "function" && !C.tag[R1] && (
|
|
27785
|
+
typeof C.tag == "function" && !C.tag[R1] && (Vi.length > 0 && (C[Je][2] = Vi.map((D) => [D, D.values.at(-1)])), (a = t[5]) != null && a.length && (C[Je][3] = t[5].at(-1)));
|
|
27774
27786
|
let O;
|
|
27775
27787
|
if (h && h.length) {
|
|
27776
27788
|
const D = h.findIndex(
|
|
@@ -27789,8 +27801,8 @@ var Qs = "_hp", _8 = {
|
|
|
27789
27801
|
}
|
|
27790
27802
|
C = O;
|
|
27791
27803
|
}
|
|
27792
|
-
else if (!zn(C) &&
|
|
27793
|
-
const D =
|
|
27804
|
+
else if (!zn(C) && Hi) {
|
|
27805
|
+
const D = ls(Hi);
|
|
27794
27806
|
D && (C.n = D);
|
|
27795
27807
|
}
|
|
27796
27808
|
if (!zn(C) && !C.s && (ap(t, C), delete C.f), g.push(C), b && !b.s && !C.s)
|
|
@@ -27848,9 +27860,9 @@ var Qs = "_hp", _8 = {
|
|
|
27848
27860
|
t[Je] = [0, []];
|
|
27849
27861
|
else {
|
|
27850
27862
|
const e = y8[t.tag];
|
|
27851
|
-
e && (
|
|
27863
|
+
e && (Hi || (Hi = P1("")), t.props.children = [
|
|
27852
27864
|
{
|
|
27853
|
-
tag:
|
|
27865
|
+
tag: Hi,
|
|
27854
27866
|
props: {
|
|
27855
27867
|
value: t.n = `http://www.w3.org/${e}`,
|
|
27856
27868
|
children: t.props.children
|
|
@@ -27877,13 +27889,13 @@ var Qs = "_hp", _8 = {
|
|
|
27877
27889
|
(r = e[Je][2]) == null || r.forEach(([i]) => {
|
|
27878
27890
|
i.values.pop();
|
|
27879
27891
|
}), (t[0] !== 1 || !t[1]) && H1(e, e.c, !1);
|
|
27880
|
-
},
|
|
27892
|
+
}, $s = /* @__PURE__ */ new WeakMap(), Yg = [], fa = async (t, e) => {
|
|
27881
27893
|
t[5] || (t[5] = []);
|
|
27882
|
-
const n =
|
|
27894
|
+
const n = $s.get(e);
|
|
27883
27895
|
n && n[0](void 0);
|
|
27884
27896
|
let r;
|
|
27885
27897
|
const i = new Promise((s) => r = s);
|
|
27886
|
-
if (
|
|
27898
|
+
if ($s.set(e, [
|
|
27887
27899
|
r,
|
|
27888
27900
|
() => {
|
|
27889
27901
|
t[2] ? t[2](t, e, (s) => {
|
|
@@ -27894,8 +27906,8 @@ var Qs = "_hp", _8 = {
|
|
|
27894
27906
|
Yg.at(-1).add(e);
|
|
27895
27907
|
else {
|
|
27896
27908
|
await Promise.resolve();
|
|
27897
|
-
const s =
|
|
27898
|
-
s && (
|
|
27909
|
+
const s = $s.get(e);
|
|
27910
|
+
s && ($s.delete(e), s[1]());
|
|
27899
27911
|
}
|
|
27900
27912
|
return i;
|
|
27901
27913
|
}, E8 = (t, e, n) => ({
|
|
@@ -27983,7 +27995,7 @@ var Qs = "_hp", _8 = {
|
|
|
27983
27995
|
};
|
|
27984
27996
|
},
|
|
27985
27997
|
[t]
|
|
27986
|
-
),
|
|
27998
|
+
), gi = /* @__PURE__ */ Object.create(null), Xo = /* @__PURE__ */ Object.create(null), Oo = (t, e, n, r, i) => {
|
|
27987
27999
|
if (e != null && e.itemProp)
|
|
27988
28000
|
return {
|
|
27989
28001
|
tag: t,
|
|
@@ -28050,7 +28062,7 @@ var Qs = "_hp", _8 = {
|
|
|
28050
28062
|
const z = b[0];
|
|
28051
28063
|
if (n === 2 && (A.innerHTML = ""), (g || x) && C(A), !l && !a)
|
|
28052
28064
|
return;
|
|
28053
|
-
let q =
|
|
28065
|
+
let q = gi[M = A.getAttribute(z)] || (gi[M] = new Promise(
|
|
28054
28066
|
(K, W) => {
|
|
28055
28067
|
A.addEventListener("load", K), A.addEventListener("error", W);
|
|
28056
28068
|
}
|
|
@@ -28061,7 +28073,7 @@ var Qs = "_hp", _8 = {
|
|
|
28061
28073
|
if (i && d === "render") {
|
|
28062
28074
|
const A = la[t][0];
|
|
28063
28075
|
if (e[A]) {
|
|
28064
|
-
const z = e[A], q =
|
|
28076
|
+
const z = e[A], q = gi[z] || (gi[z] = new Promise((M, K) => {
|
|
28065
28077
|
C(h), h.addEventListener("load", M), h.addEventListener("error", K);
|
|
28066
28078
|
}));
|
|
28067
28079
|
N8(q);
|
|
@@ -28081,7 +28093,7 @@ var Qs = "_hp", _8 = {
|
|
|
28081
28093
|
s
|
|
28082
28094
|
);
|
|
28083
28095
|
}, O8 = (t) => {
|
|
28084
|
-
const e = w8(), n = e &&
|
|
28096
|
+
const e = w8(), n = e && ls(e);
|
|
28085
28097
|
return n != null && n.endsWith("svg") ? {
|
|
28086
28098
|
tag: "title",
|
|
28087
28099
|
props: t,
|
|
@@ -28768,7 +28780,7 @@ const ou = (t) => {
|
|
|
28768
28780
|
);
|
|
28769
28781
|
}
|
|
28770
28782
|
}
|
|
28771
|
-
),
|
|
28783
|
+
), mi = (t) => {
|
|
28772
28784
|
const { error: e, theme: n, branding: r, client: i, email: s, state: a, code: l } = t;
|
|
28773
28785
|
return /* @__PURE__ */ _(
|
|
28774
28786
|
nt,
|
|
@@ -28851,7 +28863,7 @@ const ou = (t) => {
|
|
|
28851
28863
|
throw new E(400, { message: "Username required" });
|
|
28852
28864
|
return n ? t.html(
|
|
28853
28865
|
/* @__PURE__ */ _(
|
|
28854
|
-
|
|
28866
|
+
mi,
|
|
28855
28867
|
{
|
|
28856
28868
|
state: e,
|
|
28857
28869
|
theme: r,
|
|
@@ -28863,7 +28875,7 @@ const ou = (t) => {
|
|
|
28863
28875
|
)
|
|
28864
28876
|
) : t.html(
|
|
28865
28877
|
/* @__PURE__ */ _(
|
|
28866
|
-
|
|
28878
|
+
mi,
|
|
28867
28879
|
{
|
|
28868
28880
|
state: e,
|
|
28869
28881
|
theme: r,
|
|
@@ -28928,7 +28940,7 @@ const ou = (t) => {
|
|
|
28928
28940
|
if (t.set("connection", u), n.password !== n["re-enter-password"])
|
|
28929
28941
|
return t.html(
|
|
28930
28942
|
/* @__PURE__ */ _(
|
|
28931
|
-
|
|
28943
|
+
mi,
|
|
28932
28944
|
{
|
|
28933
28945
|
state: e,
|
|
28934
28946
|
code: n.code,
|
|
@@ -28944,7 +28956,7 @@ const ou = (t) => {
|
|
|
28944
28956
|
if (!Cf(n.password))
|
|
28945
28957
|
return t.html(
|
|
28946
28958
|
/* @__PURE__ */ _(
|
|
28947
|
-
|
|
28959
|
+
mi,
|
|
28948
28960
|
{
|
|
28949
28961
|
state: e,
|
|
28950
28962
|
code: n.code,
|
|
@@ -28965,7 +28977,7 @@ const ou = (t) => {
|
|
|
28965
28977
|
a.tenant.id,
|
|
28966
28978
|
d.login_id
|
|
28967
28979
|
) : void 0;
|
|
28968
|
-
if (await
|
|
28980
|
+
if (await Ji({
|
|
28969
28981
|
userAdapter: t.env.data.users,
|
|
28970
28982
|
tenant_id: a.tenant.id,
|
|
28971
28983
|
username: l.authParams.username,
|
|
@@ -28973,7 +28985,7 @@ const ou = (t) => {
|
|
|
28973
28985
|
}))
|
|
28974
28986
|
return t.html(
|
|
28975
28987
|
/* @__PURE__ */ _(
|
|
28976
|
-
|
|
28988
|
+
mi,
|
|
28977
28989
|
{
|
|
28978
28990
|
state: e,
|
|
28979
28991
|
code: n.code,
|
|
@@ -29024,9 +29036,9 @@ const ou = (t) => {
|
|
|
29024
29036
|
return On(t, C);
|
|
29025
29037
|
} catch (u) {
|
|
29026
29038
|
let d = B.t("unknown_error_message"), p = 400;
|
|
29027
|
-
return u instanceof E ? (d = u.message || d, p = u.status === 400 ? 400 : 500) : u instanceof
|
|
29039
|
+
return u instanceof E ? (d = u.message || d, p = u.status === 400 ? 400 : 500) : u instanceof bi ? d = u.message || d : u instanceof Error && (d = u.message || d, p = 500), t.html(
|
|
29028
29040
|
/* @__PURE__ */ _(
|
|
29029
|
-
|
|
29041
|
+
mi,
|
|
29030
29042
|
{
|
|
29031
29043
|
state: e,
|
|
29032
29044
|
theme: i,
|
|
@@ -29041,7 +29053,7 @@ const ou = (t) => {
|
|
|
29041
29053
|
);
|
|
29042
29054
|
}
|
|
29043
29055
|
}
|
|
29044
|
-
),
|
|
29056
|
+
), ms = (t) => {
|
|
29045
29057
|
const { error: e, theme: n, branding: r, client: i, email: s } = t;
|
|
29046
29058
|
return /* @__PURE__ */ _(
|
|
29047
29059
|
nt,
|
|
@@ -29104,7 +29116,7 @@ const ou = (t) => {
|
|
|
29104
29116
|
throw new E(400, { message: "Username required" });
|
|
29105
29117
|
return t.html(
|
|
29106
29118
|
/* @__PURE__ */ _(
|
|
29107
|
-
|
|
29119
|
+
ms,
|
|
29108
29120
|
{
|
|
29109
29121
|
theme: n,
|
|
29110
29122
|
branding: r,
|
|
@@ -29155,7 +29167,7 @@ const ou = (t) => {
|
|
|
29155
29167
|
if (r !== i)
|
|
29156
29168
|
return t.html(
|
|
29157
29169
|
/* @__PURE__ */ _(
|
|
29158
|
-
|
|
29170
|
+
ms,
|
|
29159
29171
|
{
|
|
29160
29172
|
error: B.t("create_account_passwords_didnt_match"),
|
|
29161
29173
|
theme: a,
|
|
@@ -29169,7 +29181,7 @@ const ou = (t) => {
|
|
|
29169
29181
|
if (!Cf(r))
|
|
29170
29182
|
return t.html(
|
|
29171
29183
|
/* @__PURE__ */ _(
|
|
29172
|
-
|
|
29184
|
+
ms,
|
|
29173
29185
|
{
|
|
29174
29186
|
error: B.t("create_account_weak_password"),
|
|
29175
29187
|
theme: a,
|
|
@@ -29180,7 +29192,7 @@ const ou = (t) => {
|
|
|
29180
29192
|
),
|
|
29181
29193
|
400
|
|
29182
29194
|
);
|
|
29183
|
-
const p = await
|
|
29195
|
+
const p = await Ji({
|
|
29184
29196
|
userAdapter: s.data.users,
|
|
29185
29197
|
tenant_id: u.tenant.id,
|
|
29186
29198
|
username: d.authParams.username,
|
|
@@ -29196,7 +29208,7 @@ const ou = (t) => {
|
|
|
29196
29208
|
))
|
|
29197
29209
|
return t.html(
|
|
29198
29210
|
/* @__PURE__ */ _(
|
|
29199
|
-
|
|
29211
|
+
ms,
|
|
29200
29212
|
{
|
|
29201
29213
|
error: "Code not found or expired",
|
|
29202
29214
|
theme: a,
|
|
@@ -29221,7 +29233,7 @@ const ou = (t) => {
|
|
|
29221
29233
|
} catch {
|
|
29222
29234
|
return t.html(
|
|
29223
29235
|
/* @__PURE__ */ _(
|
|
29224
|
-
|
|
29236
|
+
ms,
|
|
29225
29237
|
{
|
|
29226
29238
|
error: "The password could not be reset",
|
|
29227
29239
|
theme: a,
|
|
@@ -29465,7 +29477,7 @@ const ou = (t) => {
|
|
|
29465
29477
|
),
|
|
29466
29478
|
500
|
|
29467
29479
|
);
|
|
29468
|
-
const a =
|
|
29480
|
+
const a = Oi(
|
|
29469
29481
|
s.tenant.id,
|
|
29470
29482
|
t.req.header("cookie")
|
|
29471
29483
|
), l = a ? await e.data.sessions.get(s.tenant.id, a) : null;
|
|
@@ -29538,7 +29550,7 @@ const ou = (t) => {
|
|
|
29538
29550
|
),
|
|
29539
29551
|
500
|
|
29540
29552
|
);
|
|
29541
|
-
const l =
|
|
29553
|
+
const l = Oi(
|
|
29542
29554
|
s.tenant.id,
|
|
29543
29555
|
t.req.header("cookie")
|
|
29544
29556
|
), u = l ? await e.data.sessions.get(s.tenant.id, l) : null;
|
|
@@ -29651,7 +29663,7 @@ const ou = (t) => {
|
|
|
29651
29663
|
}),
|
|
29652
29664
|
async (t) => {
|
|
29653
29665
|
var a;
|
|
29654
|
-
const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await
|
|
29666
|
+
const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await ri(
|
|
29655
29667
|
t,
|
|
29656
29668
|
e
|
|
29657
29669
|
);
|
|
@@ -29726,7 +29738,7 @@ const ou = (t) => {
|
|
|
29726
29738
|
}
|
|
29727
29739
|
}),
|
|
29728
29740
|
async (t) => {
|
|
29729
|
-
const { env: e } = t, { state: n } = t.req.valid("query"), r = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await
|
|
29741
|
+
const { env: e } = t, { state: n } = t.req.valid("query"), r = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await ri(
|
|
29730
29742
|
t,
|
|
29731
29743
|
n
|
|
29732
29744
|
);
|
|
@@ -29848,7 +29860,7 @@ const ou = (t) => {
|
|
|
29848
29860
|
}
|
|
29849
29861
|
}),
|
|
29850
29862
|
async (t) => {
|
|
29851
|
-
const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await
|
|
29863
|
+
const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await ri(
|
|
29852
29864
|
t,
|
|
29853
29865
|
e
|
|
29854
29866
|
);
|
|
@@ -29907,7 +29919,7 @@ const ou = (t) => {
|
|
|
29907
29919
|
}),
|
|
29908
29920
|
async (t) => {
|
|
29909
29921
|
var h;
|
|
29910
|
-
const { env: e } = t, { state: n } = t.req.valid("query"), { email: r } = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await
|
|
29922
|
+
const { env: e } = t, { state: n } = t.req.valid("query"), { email: r } = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await ri(
|
|
29911
29923
|
t,
|
|
29912
29924
|
n
|
|
29913
29925
|
), u = await e.data.users.list(a.tenant.id, {
|
|
@@ -30100,7 +30112,7 @@ const ou = (t) => {
|
|
|
30100
30112
|
}
|
|
30101
30113
|
}),
|
|
30102
30114
|
async (t) => {
|
|
30103
|
-
const { state: e, email: n, change_id: r } = t.req.valid("query"), { theme: i, branding: s, client: a, user: l } = await
|
|
30115
|
+
const { state: e, email: n, change_id: r } = t.req.valid("query"), { theme: i, branding: s, client: a, user: l } = await ri(
|
|
30104
30116
|
t,
|
|
30105
30117
|
e
|
|
30106
30118
|
), u = await t.env.data.codes.get(
|
|
@@ -30164,7 +30176,7 @@ const ou = (t) => {
|
|
|
30164
30176
|
}
|
|
30165
30177
|
}),
|
|
30166
30178
|
async (t) => {
|
|
30167
|
-
const { env: e } = t, { state: n, email: r, change_id: i } = t.req.valid("query"), { code: s } = t.req.valid("form"), { theme: a, branding: l, client: u, user: d } = await
|
|
30179
|
+
const { env: e } = t, { state: n, email: r, change_id: i } = t.req.valid("query"), { code: s } = t.req.valid("form"), { theme: a, branding: l, client: u, user: d } = await ri(
|
|
30168
30180
|
t,
|
|
30169
30181
|
n
|
|
30170
30182
|
);
|
|
@@ -30256,7 +30268,7 @@ const ou = (t) => {
|
|
|
30256
30268
|
}),
|
|
30257
30269
|
async (t) => {
|
|
30258
30270
|
var u, d;
|
|
30259
|
-
const { state: e, email: n } = t.req.valid("query"), { theme: r, branding: i, client: s, loginSession: a } = await
|
|
30271
|
+
const { state: e, email: n } = t.req.valid("query"), { theme: r, branding: i, client: s, loginSession: a } = await ri(t, e);
|
|
30260
30272
|
if (!s || !((u = s.tenant) != null && u.id))
|
|
30261
30273
|
return console.error(
|
|
30262
30274
|
"Client or tenant ID missing in GET /u/change-email-confirmation after initJSXRoute"
|
|
@@ -30551,7 +30563,7 @@ const ou = (t) => {
|
|
|
30551
30563
|
throw new E(400, {
|
|
30552
30564
|
message: "Username not found in state"
|
|
30553
30565
|
});
|
|
30554
|
-
const d = await
|
|
30566
|
+
const d = await Ji({
|
|
30555
30567
|
userAdapter: r.data.users,
|
|
30556
30568
|
tenant_id: i.tenant.id,
|
|
30557
30569
|
username: u,
|
|
@@ -31279,7 +31291,7 @@ function x6(t) {
|
|
|
31279
31291
|
cleanupIntervalMs: 0
|
|
31280
31292
|
// Disable cleanup since cache dies with the request
|
|
31281
31293
|
}), r = t.dataAdapter.cache ? 300 : 0;
|
|
31282
|
-
e.onError((s, a) => s instanceof
|
|
31294
|
+
e.onError((s, a) => s instanceof ni ? a.redirect(s.location, s.status) : s instanceof E ? a.text(s.message || "Error", s.status) : a.text("Unexpected error", 500)), e.get("/css/tailwind.css", async (s) => {
|
|
31283
31295
|
const a = Y1;
|
|
31284
31296
|
return s.text(a, 200, {
|
|
31285
31297
|
"content-type": "text/css; charset=utf-8"
|
|
@@ -31600,7 +31612,7 @@ o.array(
|
|
|
31600
31612
|
})
|
|
31601
31613
|
})
|
|
31602
31614
|
);
|
|
31603
|
-
var N6 = {},
|
|
31615
|
+
var N6 = {}, ii = {}, Do = {}, bl = {};
|
|
31604
31616
|
(function(t) {
|
|
31605
31617
|
var e = t;
|
|
31606
31618
|
(function(n) {
|
|
@@ -33033,7 +33045,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33033
33045
|
}, me.prototype.numberFormat = /^\s*-?[0-9]*\.?[0-9]+\s*$/, me.prototype.parse = function(c) {
|
|
33034
33046
|
return this.numberFormat.test(c) ? parseFloat(c) : Number.NaN;
|
|
33035
33047
|
};
|
|
33036
|
-
function
|
|
33048
|
+
function us(c) {
|
|
33037
33049
|
for (var f = c.split("e-"), y = f[0].replace(".", ""), $ = Number(f[1]), v = 0; v < $ - 1; v += 1)
|
|
33038
33050
|
y = "0" + y;
|
|
33039
33051
|
return "0." + y;
|
|
@@ -33045,7 +33057,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33045
33057
|
}
|
|
33046
33058
|
me.prototype.toString = function() {
|
|
33047
33059
|
var c = this.num.toString();
|
|
33048
|
-
return c.indexOf("e-") !== -1 ?
|
|
33060
|
+
return c.indexOf("e-") !== -1 ? us(c) : c.indexOf("e") !== -1 ? Fo(c) : c;
|
|
33049
33061
|
}, me.prototype.evaluate = function(c) {
|
|
33050
33062
|
return this;
|
|
33051
33063
|
}, me.prototype.string = function() {
|
|
@@ -34154,8 +34166,8 @@ ${W.replace(/ /g, "")}
|
|
|
34154
34166
|
}
|
|
34155
34167
|
t.validateDigestValue = q;
|
|
34156
34168
|
})(Do);
|
|
34157
|
-
Object.defineProperty(
|
|
34158
|
-
|
|
34169
|
+
Object.defineProperty(ii, "__esModule", { value: !0 });
|
|
34170
|
+
ii.C14nCanonicalizationWithComments = ii.C14nCanonicalization = void 0;
|
|
34159
34171
|
const Jo = Do, cu = Ae;
|
|
34160
34172
|
class Q1 {
|
|
34161
34173
|
constructor() {
|
|
@@ -34275,7 +34287,7 @@ class Q1 {
|
|
|
34275
34287
|
return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
|
|
34276
34288
|
}
|
|
34277
34289
|
}
|
|
34278
|
-
|
|
34290
|
+
ii.C14nCanonicalization = Q1;
|
|
34279
34291
|
class X6 extends Q1 {
|
|
34280
34292
|
constructor() {
|
|
34281
34293
|
super(), this.includeComments = !0;
|
|
@@ -34284,10 +34296,10 @@ class X6 extends Q1 {
|
|
|
34284
34296
|
return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments";
|
|
34285
34297
|
}
|
|
34286
34298
|
}
|
|
34287
|
-
|
|
34288
|
-
var
|
|
34289
|
-
Object.defineProperty(
|
|
34290
|
-
|
|
34299
|
+
ii.C14nCanonicalizationWithComments = X6;
|
|
34300
|
+
var si = {};
|
|
34301
|
+
Object.defineProperty(si, "__esModule", { value: !0 });
|
|
34302
|
+
si.ExclusiveCanonicalizationWithComments = si.ExclusiveCanonicalization = void 0;
|
|
34291
34303
|
const Tr = Do, lu = Ae;
|
|
34292
34304
|
function uu(t, e, n) {
|
|
34293
34305
|
let r = !1;
|
|
@@ -34424,7 +34436,7 @@ class ey {
|
|
|
34424
34436
|
return "http://www.w3.org/2001/10/xml-exc-c14n#";
|
|
34425
34437
|
}
|
|
34426
34438
|
}
|
|
34427
|
-
|
|
34439
|
+
si.ExclusiveCanonicalization = ey;
|
|
34428
34440
|
class J6 extends ey {
|
|
34429
34441
|
constructor() {
|
|
34430
34442
|
super(), this.includeComments = !0;
|
|
@@ -34433,7 +34445,7 @@ class J6 extends ey {
|
|
|
34433
34445
|
return "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
|
|
34434
34446
|
}
|
|
34435
34447
|
}
|
|
34436
|
-
|
|
34448
|
+
si.ExclusiveCanonicalizationWithComments = J6;
|
|
34437
34449
|
var xl = {}, Al = {}, cr = {}, lr = {};
|
|
34438
34450
|
function Y6(t, e, n) {
|
|
34439
34451
|
if (n === void 0 && (n = Array.prototype), t && typeof n.find == "function")
|
|
@@ -34586,7 +34598,7 @@ function Rt(t, e) {
|
|
|
34586
34598
|
}
|
|
34587
34599
|
n.constructor != t && (typeof t != "function" && console.error("unknown Class:" + t), n.constructor = t);
|
|
34588
34600
|
}
|
|
34589
|
-
var jt = {}, hn = jt.ELEMENT_NODE = 1,
|
|
34601
|
+
var jt = {}, hn = jt.ELEMENT_NODE = 1, Ki = jt.ATTRIBUTE_NODE = 2, ac = jt.TEXT_NODE = 3, iy = jt.CDATA_SECTION_NODE = 4, sy = jt.ENTITY_REFERENCE_NODE = 5, rS = jt.ENTITY_NODE = 6, oy = jt.PROCESSING_INSTRUCTION_NODE = 7, ay = jt.COMMENT_NODE = 8, cy = jt.DOCUMENT_NODE = 9, ly = jt.DOCUMENT_TYPE_NODE = 10, tr = jt.DOCUMENT_FRAGMENT_NODE = 11, iS = jt.NOTATION_NODE = 12, wt = {}, ct = {};
|
|
34590
34602
|
wt.INDEX_SIZE_ERR = (ct[1] = "Index size error", 1);
|
|
34591
34603
|
wt.DOMSTRING_SIZE_ERR = (ct[2] = "DOMString size error", 2);
|
|
34592
34604
|
var Tt = wt.HIERARCHY_REQUEST_ERR = (ct[3] = "Hierarchy request error", 3);
|
|
@@ -34632,7 +34644,7 @@ Gn.prototype = {
|
|
|
34632
34644
|
},
|
|
34633
34645
|
toString: function(t, e) {
|
|
34634
34646
|
for (var n = [], r = 0; r < this.length; r++)
|
|
34635
|
-
|
|
34647
|
+
ki(this[r], n, t, e);
|
|
34636
34648
|
return n.join("");
|
|
34637
34649
|
},
|
|
34638
34650
|
/**
|
|
@@ -34652,7 +34664,7 @@ Gn.prototype = {
|
|
|
34652
34664
|
return Array.prototype.indexOf.call(this, t);
|
|
34653
34665
|
}
|
|
34654
34666
|
};
|
|
34655
|
-
function
|
|
34667
|
+
function Gi(t, e) {
|
|
34656
34668
|
this._node = t, this._refresh = e, Mf(this);
|
|
34657
34669
|
}
|
|
34658
34670
|
function Mf(t) {
|
|
@@ -34665,10 +34677,10 @@ function Mf(t) {
|
|
|
34665
34677
|
Ro(n, t), t._inc = e;
|
|
34666
34678
|
}
|
|
34667
34679
|
}
|
|
34668
|
-
|
|
34680
|
+
Gi.prototype.item = function(t) {
|
|
34669
34681
|
return Mf(this), this[t] || null;
|
|
34670
34682
|
};
|
|
34671
|
-
Rt(
|
|
34683
|
+
Rt(Gi, Gn);
|
|
34672
34684
|
function cc() {
|
|
34673
34685
|
}
|
|
34674
34686
|
function dy(t, e) {
|
|
@@ -34887,7 +34899,7 @@ Le.prototype = {
|
|
|
34887
34899
|
if (Object.prototype.hasOwnProperty.call(n, r) && n[r] === t)
|
|
34888
34900
|
return r;
|
|
34889
34901
|
}
|
|
34890
|
-
e = e.nodeType ==
|
|
34902
|
+
e = e.nodeType == Ki ? e.ownerDocument : e.parentNode;
|
|
34891
34903
|
}
|
|
34892
34904
|
return null;
|
|
34893
34905
|
},
|
|
@@ -34897,7 +34909,7 @@ Le.prototype = {
|
|
|
34897
34909
|
var n = e._nsMap;
|
|
34898
34910
|
if (n && Object.prototype.hasOwnProperty.call(n, t))
|
|
34899
34911
|
return n[t];
|
|
34900
|
-
e = e.nodeType ==
|
|
34912
|
+
e = e.nodeType == Ki ? e.ownerDocument : e.parentNode;
|
|
34901
34913
|
}
|
|
34902
34914
|
return null;
|
|
34903
34915
|
},
|
|
@@ -35123,7 +35135,7 @@ jo.prototype = {
|
|
|
35123
35135
|
*/
|
|
35124
35136
|
getElementsByClassName: function(t) {
|
|
35125
35137
|
var e = dm(t);
|
|
35126
|
-
return new
|
|
35138
|
+
return new Gi(this, function(n) {
|
|
35127
35139
|
var r = [];
|
|
35128
35140
|
return e.length > 0 && ro(n.documentElement, function(i) {
|
|
35129
35141
|
if (i !== n && i.nodeType === hn) {
|
|
@@ -35142,7 +35154,7 @@ jo.prototype = {
|
|
|
35142
35154
|
},
|
|
35143
35155
|
//document factory method:
|
|
35144
35156
|
createElement: function(t) {
|
|
35145
|
-
var e = new
|
|
35157
|
+
var e = new oi();
|
|
35146
35158
|
e.ownerDocument = this, e.nodeName = t, e.tagName = t, e.localName = t, e.childNodes = new Gn();
|
|
35147
35159
|
var n = e.attributes = new cc();
|
|
35148
35160
|
return n._ownerElement = e, e;
|
|
@@ -35177,7 +35189,7 @@ jo.prototype = {
|
|
|
35177
35189
|
},
|
|
35178
35190
|
// Introduced in DOM Level 2:
|
|
35179
35191
|
createElementNS: function(t, e) {
|
|
35180
|
-
var n = new
|
|
35192
|
+
var n = new oi(), r = e.split(":"), i = n.attributes = new cc();
|
|
35181
35193
|
return n.childNodes = new Gn(), n.ownerDocument = this, n.nodeName = e, n.tagName = e, n.namespaceURI = t, r.length == 2 ? (n.prefix = r[0], n.localName = r[1]) : n.localName = e, i._ownerElement = n, n;
|
|
35182
35194
|
},
|
|
35183
35195
|
// Introduced in DOM Level 2:
|
|
@@ -35187,10 +35199,10 @@ jo.prototype = {
|
|
|
35187
35199
|
}
|
|
35188
35200
|
};
|
|
35189
35201
|
Rt(jo, Le);
|
|
35190
|
-
function
|
|
35202
|
+
function oi() {
|
|
35191
35203
|
this._nsMap = {};
|
|
35192
35204
|
}
|
|
35193
|
-
|
|
35205
|
+
oi.prototype = {
|
|
35194
35206
|
nodeType: hn,
|
|
35195
35207
|
hasAttribute: function(t) {
|
|
35196
35208
|
return this.getAttributeNode(t) != null;
|
|
@@ -35243,7 +35255,7 @@ si.prototype = {
|
|
|
35243
35255
|
return this.attributes.getNamedItemNS(t, e);
|
|
35244
35256
|
},
|
|
35245
35257
|
getElementsByTagName: function(t) {
|
|
35246
|
-
return new
|
|
35258
|
+
return new Gi(this, function(e) {
|
|
35247
35259
|
var n = [];
|
|
35248
35260
|
return ro(e, function(r) {
|
|
35249
35261
|
r !== e && r.nodeType == hn && (t === "*" || r.tagName == t) && n.push(r);
|
|
@@ -35251,7 +35263,7 @@ si.prototype = {
|
|
|
35251
35263
|
});
|
|
35252
35264
|
},
|
|
35253
35265
|
getElementsByTagNameNS: function(t, e) {
|
|
35254
|
-
return new
|
|
35266
|
+
return new Gi(this, function(n) {
|
|
35255
35267
|
var r = [];
|
|
35256
35268
|
return ro(n, function(i) {
|
|
35257
35269
|
i !== n && i.nodeType === hn && (t === "*" || i.namespaceURI === t) && (e === "*" || i.localName == e) && r.push(i);
|
|
@@ -35259,12 +35271,12 @@ si.prototype = {
|
|
|
35259
35271
|
});
|
|
35260
35272
|
}
|
|
35261
35273
|
};
|
|
35262
|
-
jo.prototype.getElementsByTagName =
|
|
35263
|
-
jo.prototype.getElementsByTagNameNS =
|
|
35264
|
-
Rt(
|
|
35274
|
+
jo.prototype.getElementsByTagName = oi.prototype.getElementsByTagName;
|
|
35275
|
+
jo.prototype.getElementsByTagNameNS = oi.prototype.getElementsByTagNameNS;
|
|
35276
|
+
Rt(oi, Le);
|
|
35265
35277
|
function uc() {
|
|
35266
35278
|
}
|
|
35267
|
-
uc.prototype.nodeType =
|
|
35279
|
+
uc.prototype.nodeType = Ki;
|
|
35268
35280
|
Rt(uc, Le);
|
|
35269
35281
|
function Po() {
|
|
35270
35282
|
}
|
|
@@ -35359,7 +35371,7 @@ function vy(t, e) {
|
|
|
35359
35371
|
//{namespace:uri,prefix:''}
|
|
35360
35372
|
];
|
|
35361
35373
|
}
|
|
35362
|
-
return
|
|
35374
|
+
return ki(this, n, t, e, a), n.join("");
|
|
35363
35375
|
}
|
|
35364
35376
|
function _m(t, e, n) {
|
|
35365
35377
|
var r = t.prefix || "", i = t.namespaceURI;
|
|
@@ -35375,7 +35387,7 @@ function _m(t, e, n) {
|
|
|
35375
35387
|
function du(t, e, n) {
|
|
35376
35388
|
t.push(" ", e, '="', n.replace(/[<>&"\t\n\r]/g, fy), '"');
|
|
35377
35389
|
}
|
|
35378
|
-
function
|
|
35390
|
+
function ki(t, e, n, r, i) {
|
|
35379
35391
|
if (i || (i = []), r)
|
|
35380
35392
|
if (t = r(t), t) {
|
|
35381
35393
|
if (typeof t == "string") {
|
|
@@ -35423,7 +35435,7 @@ function Si(t, e, n, r, i) {
|
|
|
35423
35435
|
var C = x.prefix || "", O = x.namespaceURI;
|
|
35424
35436
|
du(e, C ? "xmlns:" + C : "xmlns", O), i.push({ prefix: C, namespace: O });
|
|
35425
35437
|
}
|
|
35426
|
-
|
|
35438
|
+
ki(x, e, n, r, i);
|
|
35427
35439
|
}
|
|
35428
35440
|
if (l === u && _m(t, n, i)) {
|
|
35429
35441
|
var C = t.prefix || "", O = t.namespaceURI;
|
|
@@ -35432,10 +35444,10 @@ function Si(t, e, n, r, i) {
|
|
|
35432
35444
|
if (D || n && !/^(?:meta|link|img|br|hr|input)$/i.test(l)) {
|
|
35433
35445
|
if (e.push(">"), n && /^script$/i.test(l))
|
|
35434
35446
|
for (; D; )
|
|
35435
|
-
D.data ? e.push(D.data) :
|
|
35447
|
+
D.data ? e.push(D.data) : ki(D, e, n, r, i.slice()), D = D.nextSibling;
|
|
35436
35448
|
else
|
|
35437
35449
|
for (; D; )
|
|
35438
|
-
|
|
35450
|
+
ki(D, e, n, r, i.slice()), D = D.nextSibling;
|
|
35439
35451
|
e.push("</", u, ">");
|
|
35440
35452
|
} else
|
|
35441
35453
|
e.push("/>");
|
|
@@ -35443,9 +35455,9 @@ function Si(t, e, n, r, i) {
|
|
|
35443
35455
|
case cy:
|
|
35444
35456
|
case tr:
|
|
35445
35457
|
for (var D = t.firstChild; D; )
|
|
35446
|
-
|
|
35458
|
+
ki(D, e, n, r, i.slice()), D = D.nextSibling;
|
|
35447
35459
|
return;
|
|
35448
|
-
case
|
|
35460
|
+
case Ki:
|
|
35449
35461
|
return du(e, t.name, t.value);
|
|
35450
35462
|
case ac:
|
|
35451
35463
|
return e.push(
|
|
@@ -35481,7 +35493,7 @@ function by(t, e, n) {
|
|
|
35481
35493
|
r = e.cloneNode(!1), r.ownerDocument = t;
|
|
35482
35494
|
case tr:
|
|
35483
35495
|
break;
|
|
35484
|
-
case
|
|
35496
|
+
case Ki:
|
|
35485
35497
|
n = !0;
|
|
35486
35498
|
break;
|
|
35487
35499
|
}
|
|
@@ -35504,7 +35516,7 @@ function up(t, e, n) {
|
|
|
35504
35516
|
for (var d = 0; d < u; d++)
|
|
35505
35517
|
r.setAttributeNode(up(t, a.item(d), !0));
|
|
35506
35518
|
break;
|
|
35507
|
-
case
|
|
35519
|
+
case Ki:
|
|
35508
35520
|
n = !0;
|
|
35509
35521
|
}
|
|
35510
35522
|
if (n)
|
|
@@ -35529,7 +35541,7 @@ try {
|
|
|
35529
35541
|
return e.nodeValue;
|
|
35530
35542
|
}
|
|
35531
35543
|
};
|
|
35532
|
-
Object.defineProperty(
|
|
35544
|
+
Object.defineProperty(Gi.prototype, "length", {
|
|
35533
35545
|
get: function() {
|
|
35534
35546
|
return Mf(this), this.$$length;
|
|
35535
35547
|
}
|
|
@@ -35558,7 +35570,7 @@ try {
|
|
|
35558
35570
|
cr.DocumentType = El;
|
|
35559
35571
|
cr.DOMException = Qe;
|
|
35560
35572
|
cr.DOMImplementation = py;
|
|
35561
|
-
cr.Element =
|
|
35573
|
+
cr.Element = oi;
|
|
35562
35574
|
cr.Node = Le;
|
|
35563
35575
|
cr.NodeList = Gn;
|
|
35564
35576
|
cr.XMLSerializer = wy;
|
|
@@ -37700,12 +37712,12 @@ var kl = {}, xy = {};
|
|
|
37700
37712
|
zwnj: ""
|
|
37701
37713
|
}), t.entityMap = t.HTML_ENTITIES;
|
|
37702
37714
|
})(xy);
|
|
37703
|
-
var Xf = {}, io = lr.NAMESPACE, dp = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, ym = new RegExp("[\\-\\.0-9" + dp.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), wm = new RegExp("^" + dp.source + ym.source + "*(?::" + dp.source + ym.source + "*)?$"),
|
|
37704
|
-
function
|
|
37705
|
-
this.message = t, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this,
|
|
37715
|
+
var Xf = {}, io = lr.NAMESPACE, dp = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, ym = new RegExp("[\\-\\.0-9" + dp.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), wm = new RegExp("^" + dp.source + ym.source + "*(?::" + dp.source + ym.source + "*)?$"), _s = 0, fr = 1, _i = 2, ys = 3, yi = 4, wi = 5, ws = 6, Yo = 7;
|
|
37716
|
+
function Wi(t, e) {
|
|
37717
|
+
this.message = t, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this, Wi);
|
|
37706
37718
|
}
|
|
37707
|
-
|
|
37708
|
-
|
|
37719
|
+
Wi.prototype = new Error();
|
|
37720
|
+
Wi.prototype.name = Wi.name;
|
|
37709
37721
|
function Ay() {
|
|
37710
37722
|
}
|
|
37711
37723
|
Ay.prototype = {
|
|
@@ -37788,7 +37800,7 @@ function dS(t, e, n, r, i) {
|
|
|
37788
37800
|
io.isHTML(Y.uri) && !Y.closed ? j = fS(t, j, Y.tagName, a, r) : j++;
|
|
37789
37801
|
}
|
|
37790
37802
|
} catch (L) {
|
|
37791
|
-
if (L instanceof
|
|
37803
|
+
if (L instanceof Wi)
|
|
37792
37804
|
throw L;
|
|
37793
37805
|
i.error("element parse error: " + L), j = -1;
|
|
37794
37806
|
}
|
|
@@ -37810,41 +37822,41 @@ function pS(t, e, n, r, i, s) {
|
|
|
37810
37822
|
x
|
|
37811
37823
|
);
|
|
37812
37824
|
}
|
|
37813
|
-
for (var l, u, d = ++e, p =
|
|
37825
|
+
for (var l, u, d = ++e, p = _s; ; ) {
|
|
37814
37826
|
var h = t.charAt(d);
|
|
37815
37827
|
switch (h) {
|
|
37816
37828
|
case "=":
|
|
37817
37829
|
if (p === fr)
|
|
37818
|
-
l = t.slice(e, d), p =
|
|
37819
|
-
else if (p ===
|
|
37820
|
-
p =
|
|
37830
|
+
l = t.slice(e, d), p = ys;
|
|
37831
|
+
else if (p === _i)
|
|
37832
|
+
p = ys;
|
|
37821
37833
|
else
|
|
37822
37834
|
throw new Error("attribute equal must after attrName");
|
|
37823
37835
|
break;
|
|
37824
37836
|
case "'":
|
|
37825
37837
|
case '"':
|
|
37826
|
-
if (p ===
|
|
37838
|
+
if (p === ys || p === fr)
|
|
37827
37839
|
if (p === fr && (s.warning('attribute value must after "="'), l = t.slice(e, d)), e = d + 1, d = t.indexOf(h, e), d > 0)
|
|
37828
|
-
u = t.slice(e, d), a(l, u, e - 1), p =
|
|
37840
|
+
u = t.slice(e, d), a(l, u, e - 1), p = wi;
|
|
37829
37841
|
else
|
|
37830
37842
|
throw new Error("attribute value no end '" + h + "' match");
|
|
37831
|
-
else if (p ==
|
|
37832
|
-
u = t.slice(e, d), a(l, u, e), s.warning('attribute "' + l + '" missed start quot(' + h + ")!!"), e = d + 1, p =
|
|
37843
|
+
else if (p == yi)
|
|
37844
|
+
u = t.slice(e, d), a(l, u, e), s.warning('attribute "' + l + '" missed start quot(' + h + ")!!"), e = d + 1, p = wi;
|
|
37833
37845
|
else
|
|
37834
37846
|
throw new Error('attribute value must after "="');
|
|
37835
37847
|
break;
|
|
37836
37848
|
case "/":
|
|
37837
37849
|
switch (p) {
|
|
37838
|
-
case
|
|
37850
|
+
case _s:
|
|
37839
37851
|
n.setTagName(t.slice(e, d));
|
|
37840
|
-
case
|
|
37841
|
-
case
|
|
37852
|
+
case wi:
|
|
37853
|
+
case ws:
|
|
37842
37854
|
case Yo:
|
|
37843
37855
|
p = Yo, n.closed = !0;
|
|
37844
|
-
case
|
|
37856
|
+
case yi:
|
|
37845
37857
|
case fr:
|
|
37846
37858
|
break;
|
|
37847
|
-
case
|
|
37859
|
+
case _i:
|
|
37848
37860
|
n.closed = !0;
|
|
37849
37861
|
break;
|
|
37850
37862
|
default:
|
|
@@ -37852,22 +37864,22 @@ function pS(t, e, n, r, i, s) {
|
|
|
37852
37864
|
}
|
|
37853
37865
|
break;
|
|
37854
37866
|
case "":
|
|
37855
|
-
return s.error("unexpected end of input"), p ==
|
|
37867
|
+
return s.error("unexpected end of input"), p == _s && n.setTagName(t.slice(e, d)), d;
|
|
37856
37868
|
case ">":
|
|
37857
37869
|
switch (p) {
|
|
37858
|
-
case
|
|
37870
|
+
case _s:
|
|
37859
37871
|
n.setTagName(t.slice(e, d));
|
|
37860
|
-
case
|
|
37861
|
-
case
|
|
37872
|
+
case wi:
|
|
37873
|
+
case ws:
|
|
37862
37874
|
case Yo:
|
|
37863
37875
|
break;
|
|
37864
|
-
case
|
|
37876
|
+
case yi:
|
|
37865
37877
|
case fr:
|
|
37866
37878
|
u = t.slice(e, d), u.slice(-1) === "/" && (n.closed = !0, u = u.slice(0, -1));
|
|
37867
|
-
case
|
|
37868
|
-
p ===
|
|
37879
|
+
case _i:
|
|
37880
|
+
p === _i && (u = l), p == yi ? (s.warning('attribute "' + u + '" missed quot(")!'), a(l, u, e)) : ((!io.isHTML(r[""]) || !u.match(/^(?:disabled|checked|selected)$/i)) && s.warning('attribute "' + u + '" missed value!! "' + u + '" instead!!'), a(u, u, e));
|
|
37869
37881
|
break;
|
|
37870
|
-
case
|
|
37882
|
+
case ys:
|
|
37871
37883
|
throw new Error("attribute value missed!!");
|
|
37872
37884
|
}
|
|
37873
37885
|
return d;
|
|
@@ -37876,31 +37888,31 @@ function pS(t, e, n, r, i, s) {
|
|
|
37876
37888
|
default:
|
|
37877
37889
|
if (h <= " ")
|
|
37878
37890
|
switch (p) {
|
|
37879
|
-
case
|
|
37880
|
-
n.setTagName(t.slice(e, d)), p =
|
|
37891
|
+
case _s:
|
|
37892
|
+
n.setTagName(t.slice(e, d)), p = ws;
|
|
37881
37893
|
break;
|
|
37882
37894
|
case fr:
|
|
37883
|
-
l = t.slice(e, d), p =
|
|
37895
|
+
l = t.slice(e, d), p = _i;
|
|
37884
37896
|
break;
|
|
37885
|
-
case
|
|
37897
|
+
case yi:
|
|
37886
37898
|
var u = t.slice(e, d);
|
|
37887
37899
|
s.warning('attribute "' + u + '" missed quot(")!!'), a(l, u, e);
|
|
37888
|
-
case
|
|
37889
|
-
p =
|
|
37900
|
+
case wi:
|
|
37901
|
+
p = ws;
|
|
37890
37902
|
break;
|
|
37891
37903
|
}
|
|
37892
37904
|
else
|
|
37893
37905
|
switch (p) {
|
|
37894
|
-
case
|
|
37906
|
+
case _i:
|
|
37895
37907
|
n.tagName, (!io.isHTML(r[""]) || !l.match(/^(?:disabled|checked|selected)$/i)) && s.warning('attribute "' + l + '" missed value!! "' + l + '" instead2!!'), a(l, l, e), e = d, p = fr;
|
|
37896
37908
|
break;
|
|
37897
|
-
case
|
|
37909
|
+
case wi:
|
|
37898
37910
|
s.warning('attribute space is required"' + l + '"!!');
|
|
37899
|
-
case
|
|
37911
|
+
case ws:
|
|
37900
37912
|
p = fr, e = d;
|
|
37901
37913
|
break;
|
|
37902
|
-
case
|
|
37903
|
-
p =
|
|
37914
|
+
case ys:
|
|
37915
|
+
p = yi, e = d;
|
|
37904
37916
|
break;
|
|
37905
37917
|
case Yo:
|
|
37906
37918
|
throw new Error("elements closed character '/' and '>' must be connected to");
|
|
@@ -38028,7 +38040,7 @@ function _S(t, e) {
|
|
|
38028
38040
|
if (r.push(n), n[1]) return r;
|
|
38029
38041
|
}
|
|
38030
38042
|
Xf.XMLReader = Ay;
|
|
38031
|
-
Xf.ParseError =
|
|
38043
|
+
Xf.ParseError = Wi;
|
|
38032
38044
|
var yS = lr, wS = cr, $m = xy, ky = Xf, vS = wS.DOMImplementation, xm = yS.NAMESPACE, bS = ky.ParseError, $S = ky.XMLReader;
|
|
38033
38045
|
function Ny(t) {
|
|
38034
38046
|
return t.replace(/\r[\n\u0085]/g, `
|
|
@@ -38070,7 +38082,7 @@ function xS(t, e, n) {
|
|
|
38070
38082
|
function Bo() {
|
|
38071
38083
|
this.cdata = !1;
|
|
38072
38084
|
}
|
|
38073
|
-
function
|
|
38085
|
+
function vi(t, e) {
|
|
38074
38086
|
e.lineNumber = t.lineNumber, e.columnNumber = t.columnNumber;
|
|
38075
38087
|
}
|
|
38076
38088
|
Bo.prototype = {
|
|
@@ -38079,10 +38091,10 @@ Bo.prototype = {
|
|
|
38079
38091
|
},
|
|
38080
38092
|
startElement: function(t, e, n, r) {
|
|
38081
38093
|
var i = this.doc, s = i.createElementNS(t, n || e), a = r.length;
|
|
38082
|
-
Zo(this, s), this.currentElement = s, this.locator &&
|
|
38094
|
+
Zo(this, s), this.currentElement = s, this.locator && vi(this.locator, s);
|
|
38083
38095
|
for (var l = 0; l < a; l++) {
|
|
38084
38096
|
var t = r.getURI(l), u = r.getValue(l), n = r.getQName(l), d = i.createAttributeNS(t, n);
|
|
38085
|
-
this.locator &&
|
|
38097
|
+
this.locator && vi(r.getLocator(l), d), d.value = d.nodeValue = u, s.setAttributeNode(d);
|
|
38086
38098
|
}
|
|
38087
38099
|
},
|
|
38088
38100
|
endElement: function(t, e, n) {
|
|
@@ -38095,7 +38107,7 @@ Bo.prototype = {
|
|
|
38095
38107
|
},
|
|
38096
38108
|
processingInstruction: function(t, e) {
|
|
38097
38109
|
var n = this.doc.createProcessingInstruction(t, e);
|
|
38098
|
-
this.locator &&
|
|
38110
|
+
this.locator && vi(this.locator, n), Zo(this, n);
|
|
38099
38111
|
},
|
|
38100
38112
|
ignorableWhitespace: function(t, e, n) {
|
|
38101
38113
|
},
|
|
@@ -38105,7 +38117,7 @@ Bo.prototype = {
|
|
|
38105
38117
|
var r = this.doc.createCDATASection(t);
|
|
38106
38118
|
else
|
|
38107
38119
|
var r = this.doc.createTextNode(t);
|
|
38108
|
-
this.currentElement ? this.currentElement.appendChild(r) : /^\s*$/.test(t) && this.doc.appendChild(r), this.locator &&
|
|
38120
|
+
this.currentElement ? this.currentElement.appendChild(r) : /^\s*$/.test(t) && this.doc.appendChild(r), this.locator && vi(this.locator, r);
|
|
38109
38121
|
}
|
|
38110
38122
|
},
|
|
38111
38123
|
skippedEntity: function(t) {
|
|
@@ -38120,7 +38132,7 @@ Bo.prototype = {
|
|
|
38120
38132
|
comment: function(t, e, n) {
|
|
38121
38133
|
t = Am.apply(this, arguments);
|
|
38122
38134
|
var r = this.doc.createComment(t);
|
|
38123
|
-
this.locator &&
|
|
38135
|
+
this.locator && vi(this.locator, r), Zo(this, r);
|
|
38124
38136
|
},
|
|
38125
38137
|
startCDATA: function() {
|
|
38126
38138
|
this.cdata = !0;
|
|
@@ -38132,7 +38144,7 @@ Bo.prototype = {
|
|
|
38132
38144
|
var r = this.doc.implementation;
|
|
38133
38145
|
if (r && r.createDocumentType) {
|
|
38134
38146
|
var i = r.createDocumentType(t, e, n);
|
|
38135
|
-
this.locator &&
|
|
38147
|
+
this.locator && vi(this.locator, i), Zo(this, i), this.doc.doctype = i;
|
|
38136
38148
|
}
|
|
38137
38149
|
},
|
|
38138
38150
|
/**
|
|
@@ -38314,7 +38326,7 @@ class DS {
|
|
|
38314
38326
|
Nn.HmacSha1 = DS;
|
|
38315
38327
|
Object.defineProperty(xl, "__esModule", { value: !0 });
|
|
38316
38328
|
xl.SignedXml = void 0;
|
|
38317
|
-
const Ft = Ae, Ir = Al, RS = hc, Xt = bl, Em =
|
|
38329
|
+
const Ft = Ae, Ir = Al, RS = hc, Xt = bl, Em = ii, jS = Nl, Sm = si, fu = vr, ea = Nn, Re = Do;
|
|
38318
38330
|
class Vn {
|
|
38319
38331
|
/**
|
|
38320
38332
|
* The SignedXml constructor provides an abstraction for sign and verify xml documents. The object is constructed using
|
|
@@ -38862,13 +38874,13 @@ Vn.noop = () => null;
|
|
|
38862
38874
|
for (var u in a) u !== "default" && !Object.prototype.hasOwnProperty.call(l, u) && e(l, a, u);
|
|
38863
38875
|
};
|
|
38864
38876
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.SignedXml = t.ExclusiveCanonicalizationWithComments = t.ExclusiveCanonicalization = t.C14nCanonicalizationWithComments = t.C14nCanonicalization = void 0;
|
|
38865
|
-
var r =
|
|
38877
|
+
var r = ii;
|
|
38866
38878
|
Object.defineProperty(t, "C14nCanonicalization", { enumerable: !0, get: function() {
|
|
38867
38879
|
return r.C14nCanonicalization;
|
|
38868
38880
|
} }), Object.defineProperty(t, "C14nCanonicalizationWithComments", { enumerable: !0, get: function() {
|
|
38869
38881
|
return r.C14nCanonicalizationWithComments;
|
|
38870
38882
|
} });
|
|
38871
|
-
var i =
|
|
38883
|
+
var i = si;
|
|
38872
38884
|
Object.defineProperty(t, "ExclusiveCanonicalization", { enumerable: !0, get: function() {
|
|
38873
38885
|
return i.ExclusiveCanonicalization;
|
|
38874
38886
|
} }), Object.defineProperty(t, "ExclusiveCanonicalizationWithComments", { enumerable: !0, get: function() {
|
|
@@ -39153,7 +39165,7 @@ const US = new be().openapi(
|
|
|
39153
39165
|
audience: a
|
|
39154
39166
|
},
|
|
39155
39167
|
expires_at: new Date(
|
|
39156
|
-
Date.now() +
|
|
39168
|
+
Date.now() + qr * 1e3
|
|
39157
39169
|
).toISOString(),
|
|
39158
39170
|
ip: t.get("ip"),
|
|
39159
39171
|
useragent: t.get("useragent"),
|
|
@@ -40510,7 +40522,7 @@ function mG(t, e) {
|
|
|
40510
40522
|
...h || {},
|
|
40511
40523
|
...p
|
|
40512
40524
|
});
|
|
40513
|
-
return g.options =
|
|
40525
|
+
return g.options = As.passthrough().parse({
|
|
40514
40526
|
...h.options || {},
|
|
40515
40527
|
...p.options
|
|
40516
40528
|
}), g;
|
|
@@ -40556,7 +40568,7 @@ function mG(t, e) {
|
|
|
40556
40568
|
...l,
|
|
40557
40569
|
...a
|
|
40558
40570
|
});
|
|
40559
|
-
return u.options =
|
|
40571
|
+
return u.options = As.passthrough().parse({
|
|
40560
40572
|
...l.options || {},
|
|
40561
40573
|
...a.options
|
|
40562
40574
|
}), u;
|
|
@@ -40576,7 +40588,7 @@ function mG(t, e) {
|
|
|
40576
40588
|
...p,
|
|
40577
40589
|
...d
|
|
40578
40590
|
});
|
|
40579
|
-
return h.options =
|
|
40591
|
+
return h.options = As.passthrough().parse({
|
|
40580
40592
|
...p.options || {},
|
|
40581
40593
|
...d.options
|
|
40582
40594
|
}), h;
|
|
@@ -40662,8 +40674,8 @@ export {
|
|
|
40662
40674
|
fw as NodeType,
|
|
40663
40675
|
f6 as PreSignUpConfirmationPage,
|
|
40664
40676
|
o6 as PreSignUpPage,
|
|
40665
|
-
|
|
40666
|
-
|
|
40677
|
+
ms as ResetPasswordPage,
|
|
40678
|
+
mi as SignUpPage,
|
|
40667
40679
|
Wo as SocialButton,
|
|
40668
40680
|
f8 as Spinner,
|
|
40669
40681
|
to as Trans,
|
|
@@ -40680,16 +40692,16 @@ export {
|
|
|
40680
40692
|
cw as buttonComponentSchema,
|
|
40681
40693
|
_u as clientGrantInsertSchema,
|
|
40682
40694
|
vG as clientGrantListSchema,
|
|
40683
|
-
|
|
40695
|
+
xi as clientGrantSchema,
|
|
40684
40696
|
mu as clientInsertSchema,
|
|
40685
|
-
|
|
40697
|
+
$i as clientSchema,
|
|
40686
40698
|
$w as codeInsertSchema,
|
|
40687
40699
|
$G as codeSchema,
|
|
40688
40700
|
bw as codeTypeSchema,
|
|
40689
40701
|
Pw as colorsSchema,
|
|
40690
40702
|
pw as componentSchema,
|
|
40691
40703
|
yu as connectionInsertSchema,
|
|
40692
|
-
|
|
40704
|
+
As as connectionOptionsSchema,
|
|
40693
40705
|
kn as connectionSchema,
|
|
40694
40706
|
so as coordinatesSchema,
|
|
40695
40707
|
ml as createInMemoryCache,
|
|
@@ -40700,16 +40712,16 @@ export {
|
|
|
40700
40712
|
ww as endingSchema,
|
|
40701
40713
|
uw as fieldComponentSchema,
|
|
40702
40714
|
gw as flowNodeSchema,
|
|
40703
|
-
|
|
40715
|
+
pi as fontDetailsSchema,
|
|
40704
40716
|
Bw as fontsSchema,
|
|
40705
40717
|
AG as formControlSchema,
|
|
40706
40718
|
vu as formInsertSchema,
|
|
40707
40719
|
Aw as formNodeComponentDefinition,
|
|
40708
|
-
|
|
40720
|
+
vs as formSchema,
|
|
40709
40721
|
dw as genericComponentSchema,
|
|
40710
40722
|
mw as genericNodeSchema,
|
|
40711
40723
|
Tl as hookInsertSchema,
|
|
40712
|
-
|
|
40724
|
+
bs as hookSchema,
|
|
40713
40725
|
iw as identitySchema,
|
|
40714
40726
|
FX as init,
|
|
40715
40727
|
PX as injectTailwindCSS,
|
|
@@ -40737,7 +40749,7 @@ export {
|
|
|
40737
40749
|
$u as resourceServerInsertSchema,
|
|
40738
40750
|
TG as resourceServerListSchema,
|
|
40739
40751
|
qw as resourceServerOptionsSchema,
|
|
40740
|
-
|
|
40752
|
+
Ai as resourceServerSchema,
|
|
40741
40753
|
Mw as resourceServerScopeSchema,
|
|
40742
40754
|
aw as richTextComponentSchema,
|
|
40743
40755
|
xu as roleInsertSchema,
|
|
@@ -40747,7 +40759,7 @@ export {
|
|
|
40747
40759
|
Vw as rolePermissionSchema,
|
|
40748
40760
|
Kw as rolePermissionWithDetailsListSchema,
|
|
40749
40761
|
Hw as rolePermissionWithDetailsSchema,
|
|
40750
|
-
|
|
40762
|
+
Ei as roleSchema,
|
|
40751
40763
|
Rw as sessionInsertSchema,
|
|
40752
40764
|
gp as sessionSchema,
|
|
40753
40765
|
ph as signingKeySchema,
|
|
@@ -40757,7 +40769,7 @@ export {
|
|
|
40757
40769
|
hw as stepNodeSchema,
|
|
40758
40770
|
Y1 as tailwindCss,
|
|
40759
40771
|
wu as tenantInsertSchema,
|
|
40760
|
-
|
|
40772
|
+
Es as tenantSchema,
|
|
40761
40773
|
Uw as themeInsertSchema,
|
|
40762
40774
|
Il as themeSchema,
|
|
40763
40775
|
Lm as tokenResponseSchema,
|