authhero 0.55.1 → 0.57.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 +20 -20
- package/dist/authhero.d.ts +154 -54
- package/dist/authhero.mjs +508 -490
- package/package.json +3 -3
package/dist/authhero.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (n, e, t) =>
|
|
1
|
+
var uh = Object.defineProperty;
|
|
2
|
+
var dh = (n, e, t) => e in n ? uh(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var ne = (n, e, t) => dh(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { z as a, OpenAPIHono as ge, createRoute as Z } from "@hono/zod-openapi";
|
|
5
5
|
const Q = (n) => typeof n == "string", ni = () => {
|
|
6
6
|
let n, e;
|
|
@@ -8,11 +8,11 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
8
8
|
n = i, e = r;
|
|
9
9
|
});
|
|
10
10
|
return t.resolve = n, t.reject = e, t;
|
|
11
|
-
}, rl = (n) => n == null ? "" : "" + n,
|
|
11
|
+
}, rl = (n) => n == null ? "" : "" + n, ph = (n, e, t) => {
|
|
12
12
|
n.forEach((i) => {
|
|
13
13
|
e[i] && (t[i] = e[i]);
|
|
14
14
|
});
|
|
15
|
-
},
|
|
15
|
+
}, fh = /###/g, sl = (n) => n && n.indexOf("###") > -1 ? n.replace(fh, ".") : n, ol = (n) => !n || Q(n), ci = (n, e, t) => {
|
|
16
16
|
const i = Q(e) ? e.split(".") : e;
|
|
17
17
|
let r = 0;
|
|
18
18
|
for (; r < i.length - 1; ) {
|
|
@@ -37,7 +37,7 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
37
37
|
for (; c.obj === void 0 && o.length; )
|
|
38
38
|
s = `${o[o.length - 1]}.${s}`, o = o.slice(0, o.length - 1), c = ci(n, o, Object), c != null && c.obj && typeof c.obj[`${c.k}.${s}`] < "u" && (c.obj = void 0);
|
|
39
39
|
c.obj[`${c.k}.${s}`] = t;
|
|
40
|
-
},
|
|
40
|
+
}, hh = (n, e, t, i) => {
|
|
41
41
|
const {
|
|
42
42
|
obj: r,
|
|
43
43
|
k: s
|
|
@@ -50,7 +50,7 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
50
50
|
} = ci(n, e);
|
|
51
51
|
if (t && Object.prototype.hasOwnProperty.call(t, i))
|
|
52
52
|
return t[i];
|
|
53
|
-
},
|
|
53
|
+
}, gh = (n, e, t) => {
|
|
54
54
|
const i = lr(n, t);
|
|
55
55
|
return i !== void 0 ? i : lr(e, t);
|
|
56
56
|
}, bd = (n, e, t) => {
|
|
@@ -58,7 +58,7 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
58
58
|
i !== "__proto__" && i !== "constructor" && (i in n ? Q(n[i]) || n[i] instanceof String || Q(e[i]) || e[i] instanceof String ? t && (n[i] = e[i]) : bd(n[i], e[i], t) : n[i] = e[i]);
|
|
59
59
|
return n;
|
|
60
60
|
}, kn = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
61
|
-
var
|
|
61
|
+
var _h = {
|
|
62
62
|
"&": "&",
|
|
63
63
|
"<": "<",
|
|
64
64
|
">": ">",
|
|
@@ -66,8 +66,8 @@ var gh = {
|
|
|
66
66
|
"'": "'",
|
|
67
67
|
"/": "/"
|
|
68
68
|
};
|
|
69
|
-
const
|
|
70
|
-
class
|
|
69
|
+
const mh = (n) => Q(n) ? n.replace(/[&<>"'\/]/g, (e) => _h[e]) : n;
|
|
70
|
+
class yh {
|
|
71
71
|
constructor(e) {
|
|
72
72
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
73
73
|
}
|
|
@@ -79,11 +79,11 @@ class mh {
|
|
|
79
79
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const vh = [" ", ",", "?", "!", ";"], wh = new yh(20), bh = (n, e, t) => {
|
|
83
83
|
e = e || "", t = t || "";
|
|
84
|
-
const i =
|
|
84
|
+
const i = vh.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
|
|
85
85
|
if (i.length === 0) return !0;
|
|
86
|
-
const r =
|
|
86
|
+
const r = wh.getRegExp(`(${i.map((o) => o === "?" ? "\\?" : o).join("|")})`);
|
|
87
87
|
let s = !r.test(n);
|
|
88
88
|
if (!s) {
|
|
89
89
|
const o = n.indexOf(t);
|
|
@@ -111,7 +111,7 @@ const yh = [" ", ",", "?", "!", ";"], vh = new mh(20), wh = (n, e, t) => {
|
|
|
111
111
|
r = o;
|
|
112
112
|
}
|
|
113
113
|
return r;
|
|
114
|
-
}, ur = (n) => n == null ? void 0 : n.replace("_", "-"),
|
|
114
|
+
}, ur = (n) => n == null ? void 0 : n.replace("_", "-"), kh = {
|
|
115
115
|
type: "logger",
|
|
116
116
|
log(n) {
|
|
117
117
|
this.output("log", n);
|
|
@@ -134,7 +134,7 @@ class dr {
|
|
|
134
134
|
}
|
|
135
135
|
init(e) {
|
|
136
136
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
137
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
137
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || kh, this.options = t, this.debug = t.debug;
|
|
138
138
|
}
|
|
139
139
|
log() {
|
|
140
140
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
@@ -294,7 +294,7 @@ const ll = {};
|
|
|
294
294
|
class pr extends Yr {
|
|
295
295
|
constructor(e) {
|
|
296
296
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
297
|
-
super(),
|
|
297
|
+
super(), ph(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = _t.create("translator");
|
|
298
298
|
}
|
|
299
299
|
changeLanguage(e) {
|
|
300
300
|
e && (this.language = e);
|
|
@@ -313,7 +313,7 @@ class pr extends Yr {
|
|
|
313
313
|
i === void 0 && (i = ":");
|
|
314
314
|
const r = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
315
315
|
let s = t.ns || this.options.defaultNS || [];
|
|
316
|
-
const o = i && e.indexOf(i) > -1, c = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
316
|
+
const o = i && e.indexOf(i) > -1, c = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !bh(e, i, r);
|
|
317
317
|
if (o && !c) {
|
|
318
318
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
319
319
|
if (l && l.length > 0)
|
|
@@ -617,7 +617,7 @@ const dl = {
|
|
|
617
617
|
pluralCategories: ["one", "other"]
|
|
618
618
|
})
|
|
619
619
|
};
|
|
620
|
-
class
|
|
620
|
+
class xh {
|
|
621
621
|
constructor(e) {
|
|
622
622
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
623
623
|
this.languageUtils = e, this.options = t, this.logger = _t.create("pluralResolver"), this.pluralRulesCache = {};
|
|
@@ -669,10 +669,10 @@ class kh {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
const fl = function(n, e, t) {
|
|
672
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
672
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = gh(n, e, t);
|
|
673
673
|
return !s && r && Q(t) && (s = fo(n, t, i), s === void 0 && (s = fo(e, t, i))), s;
|
|
674
674
|
}, Js = (n) => n.replace(/\$/g, "$$$$");
|
|
675
|
-
class
|
|
675
|
+
class Sh {
|
|
676
676
|
constructor() {
|
|
677
677
|
var t;
|
|
678
678
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -702,7 +702,7 @@ class xh {
|
|
|
702
702
|
maxReplaces: S,
|
|
703
703
|
alwaysFormat: B
|
|
704
704
|
} = e.interpolation;
|
|
705
|
-
this.escape = t !== void 0 ? t :
|
|
705
|
+
this.escape = t !== void 0 ? t : mh, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = s ? kn(s) : o || "{{", this.suffix = c ? kn(c) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = p ? "" : g || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = _ ? kn(_) : x || kn("$t("), this.nestingSuffix = h ? kn(h) : m || kn(")"), this.nestingOptionsSeparator = b || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = B !== void 0 ? B : !1, this.resetRegExp();
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
708
|
this.options && this.init(this.options);
|
|
@@ -798,7 +798,7 @@ class xh {
|
|
|
798
798
|
return e;
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const Ah = (n) => {
|
|
802
802
|
let e = n.toLowerCase().trim();
|
|
803
803
|
const t = {};
|
|
804
804
|
if (n.indexOf("(") > -1) {
|
|
@@ -829,7 +829,7 @@ const Sh = (n) => {
|
|
|
829
829
|
return c || (c = n(ur(i), r), e[o] = c), c(t);
|
|
830
830
|
};
|
|
831
831
|
};
|
|
832
|
-
class
|
|
832
|
+
class Ih {
|
|
833
833
|
constructor() {
|
|
834
834
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
835
835
|
this.logger = _t.create("formatter"), this.options = e, this.formats = {
|
|
@@ -890,7 +890,7 @@ class Ah {
|
|
|
890
890
|
const {
|
|
891
891
|
formatName: u,
|
|
892
892
|
formatOptions: p
|
|
893
|
-
} =
|
|
893
|
+
} = Ah(l);
|
|
894
894
|
if (this.formats[u]) {
|
|
895
895
|
let _ = c;
|
|
896
896
|
try {
|
|
@@ -910,10 +910,10 @@ class Ah {
|
|
|
910
910
|
}, e);
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
const
|
|
913
|
+
const Eh = (n, e) => {
|
|
914
914
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
915
915
|
};
|
|
916
|
-
class
|
|
916
|
+
class $h extends Yr {
|
|
917
917
|
constructor(e, t, i) {
|
|
918
918
|
var s, o;
|
|
919
919
|
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -947,7 +947,7 @@ class Eh extends Yr {
|
|
|
947
947
|
}), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
|
|
948
948
|
const c = {};
|
|
949
949
|
this.queue.forEach((l) => {
|
|
950
|
-
|
|
950
|
+
hh(l.loaded, [s], o), Eh(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
951
951
|
c[u] || (c[u] = {});
|
|
952
952
|
const p = l.loaded[u];
|
|
953
953
|
p.length && p.forEach((g) => {
|
|
@@ -1110,7 +1110,7 @@ const hl = () => ({
|
|
|
1110
1110
|
var e, t;
|
|
1111
1111
|
return Q(n.ns) && (n.ns = [n.ns]), Q(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), Q(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
|
|
1112
1112
|
}, Zi = () => {
|
|
1113
|
-
},
|
|
1113
|
+
}, Ch = (n) => {
|
|
1114
1114
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
1115
1115
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
1116
1116
|
});
|
|
@@ -1120,7 +1120,7 @@ class _i extends Yr {
|
|
|
1120
1120
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1121
1121
|
if (super(), this.options = gl(e), this.services = {}, this.logger = _t, this.modules = {
|
|
1122
1122
|
external: []
|
|
1123
|
-
},
|
|
1123
|
+
}, Ch(this), t && !this.isInitialized && !e.isClone) {
|
|
1124
1124
|
if (!this.options.initAsync)
|
|
1125
1125
|
return this.init(e, t), this;
|
|
1126
1126
|
setTimeout(() => {
|
|
@@ -1145,16 +1145,16 @@ class _i extends Yr {
|
|
|
1145
1145
|
if (!this.options.isClone) {
|
|
1146
1146
|
this.modules.logger ? _t.init(s(this.modules.logger), this.options) : _t.init(null, this.options);
|
|
1147
1147
|
let p;
|
|
1148
|
-
this.modules.formatter ? p = this.modules.formatter : p =
|
|
1148
|
+
this.modules.formatter ? p = this.modules.formatter : p = Ih;
|
|
1149
1149
|
const g = new ul(this.options);
|
|
1150
1150
|
this.store = new cl(this.options.resources, this.options);
|
|
1151
1151
|
const _ = this.services;
|
|
1152
|
-
_.logger = _t, _.resourceStore = this.store, _.languageUtils = g, _.pluralResolver = new
|
|
1152
|
+
_.logger = _t, _.resourceStore = this.store, _.languageUtils = g, _.pluralResolver = new xh(g, {
|
|
1153
1153
|
prepend: this.options.pluralSeparator,
|
|
1154
1154
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1155
|
-
}), p && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (_.formatter = s(p), _.formatter.init(_, this.options), this.options.interpolation.format = _.formatter.format.bind(_.formatter)), _.interpolator = new
|
|
1155
|
+
}), p && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (_.formatter = s(p), _.formatter.init(_, this.options), this.options.interpolation.format = _.formatter.format.bind(_.formatter)), _.interpolator = new Sh(this.options), _.utils = {
|
|
1156
1156
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1157
|
-
}, _.backendConnector = new
|
|
1157
|
+
}, _.backendConnector = new $h(s(this.modules.backend), _.resourceStore, _, this.options), _.backendConnector.on("*", function(x) {
|
|
1158
1158
|
for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), b = 1; b < h; b++)
|
|
1159
1159
|
m[b - 1] = arguments[b];
|
|
1160
1160
|
e.emit(x, ...m);
|
|
@@ -1392,7 +1392,7 @@ const yn = a.object({
|
|
|
1392
1392
|
}), za = a.object({
|
|
1393
1393
|
created_at: a.string(),
|
|
1394
1394
|
updated_at: a.string()
|
|
1395
|
-
}),
|
|
1395
|
+
}), jh = a.object({
|
|
1396
1396
|
email: a.string().optional(),
|
|
1397
1397
|
email_verified: a.boolean().optional(),
|
|
1398
1398
|
name: a.string().optional(),
|
|
@@ -1401,7 +1401,7 @@ const yn = a.object({
|
|
|
1401
1401
|
phone_number: a.string().optional(),
|
|
1402
1402
|
phone_verified: a.boolean().optional(),
|
|
1403
1403
|
family_name: a.string().optional()
|
|
1404
|
-
}).catchall(a.any()),
|
|
1404
|
+
}).catchall(a.any()), Nh = a.object({
|
|
1405
1405
|
connection: a.string(),
|
|
1406
1406
|
user_id: a.string(),
|
|
1407
1407
|
provider: a.string(),
|
|
@@ -1409,7 +1409,7 @@ const yn = a.object({
|
|
|
1409
1409
|
access_token: a.string().optional(),
|
|
1410
1410
|
access_token_secret: a.string().optional(),
|
|
1411
1411
|
refresh_token: a.string().optional(),
|
|
1412
|
-
profileData:
|
|
1412
|
+
profileData: jh.optional()
|
|
1413
1413
|
}), Da = a.object({
|
|
1414
1414
|
email: a.string().optional(),
|
|
1415
1415
|
username: a.string().optional(),
|
|
@@ -1441,7 +1441,7 @@ const yn = a.object({
|
|
|
1441
1441
|
// TODO: this not might be correct if you use the username
|
|
1442
1442
|
email: a.string(),
|
|
1443
1443
|
login_count: a.number(),
|
|
1444
|
-
identities: a.array(
|
|
1444
|
+
identities: a.array(Nh).optional()
|
|
1445
1445
|
}), St = xd, F3 = Da.extend({
|
|
1446
1446
|
email: a.string(),
|
|
1447
1447
|
login_count: a.number(),
|
|
@@ -1449,14 +1449,14 @@ const yn = a.object({
|
|
|
1449
1449
|
last_ip: a.string().optional(),
|
|
1450
1450
|
last_login: a.string().optional(),
|
|
1451
1451
|
user_id: a.string()
|
|
1452
|
-
}).catchall(a.any()),
|
|
1453
|
-
let
|
|
1452
|
+
}).catchall(a.any()), Oh = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1453
|
+
let Bh = (n = 21) => {
|
|
1454
1454
|
let e = "", t = crypto.getRandomValues(new Uint8Array(n));
|
|
1455
1455
|
for (; n--; )
|
|
1456
|
-
e +=
|
|
1456
|
+
e += Oh[t[n] & 63];
|
|
1457
1457
|
return e;
|
|
1458
1458
|
};
|
|
1459
|
-
const
|
|
1459
|
+
const Th = a.object({
|
|
1460
1460
|
audience: a.string().optional(),
|
|
1461
1461
|
recipient: a.string().optional(),
|
|
1462
1462
|
createUpnClaim: a.boolean().optional(),
|
|
@@ -1492,14 +1492,14 @@ const Bh = a.object({
|
|
|
1492
1492
|
description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
|
|
1493
1493
|
}),
|
|
1494
1494
|
addons: a.object({
|
|
1495
|
-
samlp:
|
|
1495
|
+
samlp: Th.optional()
|
|
1496
1496
|
}).default({}).optional().openapi({
|
|
1497
1497
|
description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
|
|
1498
1498
|
}),
|
|
1499
1499
|
email_validation: a.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
|
|
1500
1500
|
description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
|
|
1501
1501
|
}),
|
|
1502
|
-
client_secret: a.string().default(() =>
|
|
1502
|
+
client_secret: a.string().default(() => Bh()).optional(),
|
|
1503
1503
|
disable_sign_ups: a.boolean().optional().default(!1).openapi({
|
|
1504
1504
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
1505
1505
|
})
|
|
@@ -1599,7 +1599,7 @@ const Sd = a.object({
|
|
|
1599
1599
|
checkoutHideSocial: a.boolean().optional(),
|
|
1600
1600
|
siteUrl: a.string().nullable(),
|
|
1601
1601
|
manageSubscriptionsUrl: a.string().optional()
|
|
1602
|
-
}),
|
|
1602
|
+
}), Ph = a.object({
|
|
1603
1603
|
domain: a.string(),
|
|
1604
1604
|
dkim_private_key: a.string().optional(),
|
|
1605
1605
|
dkim_public_key: a.string().optional(),
|
|
@@ -1608,18 +1608,18 @@ const Sd = a.object({
|
|
|
1608
1608
|
});
|
|
1609
1609
|
a.object({
|
|
1610
1610
|
...In.shape,
|
|
1611
|
-
domains: a.array(
|
|
1611
|
+
domains: a.array(Ph),
|
|
1612
1612
|
tenant: li,
|
|
1613
1613
|
connections: a.array(Jt)
|
|
1614
1614
|
});
|
|
1615
|
-
const
|
|
1615
|
+
const Rh = a.enum([
|
|
1616
1616
|
"password_reset",
|
|
1617
1617
|
"email_verification",
|
|
1618
1618
|
"otp",
|
|
1619
1619
|
"authorization_code",
|
|
1620
1620
|
"oauth2_state",
|
|
1621
1621
|
"ticket"
|
|
1622
|
-
]),
|
|
1622
|
+
]), Lh = a.object({
|
|
1623
1623
|
code_id: a.string().openapi({
|
|
1624
1624
|
description: "The code that will be used in for instance an email verification flow"
|
|
1625
1625
|
}),
|
|
@@ -1629,7 +1629,7 @@ const Ph = a.enum([
|
|
|
1629
1629
|
connection_id: a.string().optional().openapi({
|
|
1630
1630
|
description: "The connection that the code is connected to"
|
|
1631
1631
|
}),
|
|
1632
|
-
code_type:
|
|
1632
|
+
code_type: Rh,
|
|
1633
1633
|
code_verifier: a.string().optional().openapi({
|
|
1634
1634
|
description: "The code verifier used in PKCE in outbound flows"
|
|
1635
1635
|
}),
|
|
@@ -1637,16 +1637,16 @@ const Ph = a.enum([
|
|
|
1637
1637
|
used_at: a.string().optional(),
|
|
1638
1638
|
user_id: a.string().optional()
|
|
1639
1639
|
}), K3 = a.object({
|
|
1640
|
-
...
|
|
1640
|
+
...Lh.shape,
|
|
1641
1641
|
created_at: a.string()
|
|
1642
|
-
}),
|
|
1642
|
+
}), Uh = a.object({
|
|
1643
1643
|
domain: a.string(),
|
|
1644
1644
|
dkim_private_key: a.string().optional(),
|
|
1645
1645
|
dkim_public_key: a.string().optional(),
|
|
1646
1646
|
email_api_key: a.string().optional(),
|
|
1647
1647
|
email_service: a.string().optional()
|
|
1648
1648
|
}), W3 = za.extend({
|
|
1649
|
-
...
|
|
1649
|
+
...Uh.shape,
|
|
1650
1650
|
id: a.string()
|
|
1651
1651
|
}), yo = a.object({
|
|
1652
1652
|
trigger_id: a.enum([
|
|
@@ -1681,7 +1681,7 @@ const Ph = a.enum([
|
|
|
1681
1681
|
x5t: a.string().optional(),
|
|
1682
1682
|
x5c: a.array(a.string()).optional(),
|
|
1683
1683
|
use: a.enum(["sig", "enc"]).optional()
|
|
1684
|
-
}),
|
|
1684
|
+
}), Vh = a.object({
|
|
1685
1685
|
keys: a.array(Ad)
|
|
1686
1686
|
}), ml = a.object({
|
|
1687
1687
|
issuer: a.string(),
|
|
@@ -1704,7 +1704,7 @@ const Ph = a.enum([
|
|
|
1704
1704
|
request_uri_parameter_supported: a.boolean(),
|
|
1705
1705
|
request_parameter_supported: a.boolean(),
|
|
1706
1706
|
token_endpoint_auth_signing_alg_values_supported: a.array(a.string())
|
|
1707
|
-
}),
|
|
1707
|
+
}), Mh = a.object({
|
|
1708
1708
|
auth0Client: a.string().optional(),
|
|
1709
1709
|
authParams: Sd,
|
|
1710
1710
|
expires_at: a.string(),
|
|
@@ -1714,7 +1714,7 @@ const Ph = a.enum([
|
|
|
1714
1714
|
}).openapi({
|
|
1715
1715
|
description: "This represents a login sesion"
|
|
1716
1716
|
}), G3 = a.object({
|
|
1717
|
-
...
|
|
1717
|
+
...Mh.shape,
|
|
1718
1718
|
login_id: a.string().openapi({
|
|
1719
1719
|
description: "This is is used as the state in the universal login"
|
|
1720
1720
|
}),
|
|
@@ -1722,7 +1722,7 @@ const Ph = a.enum([
|
|
|
1722
1722
|
updated_at: a.string()
|
|
1723
1723
|
});
|
|
1724
1724
|
var ye = /* @__PURE__ */ ((n) => (n.FAILED_SILENT_AUTH = "fsa", n.FAILED_SIGNUP = "fs", n.FAILED_LOGIN = "f", n.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", n.FAILED_CHANGE_PASSWORD = "fcp", n.FAILED_BY_CONNECTOR = "fc", n.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", n.FAILED_HOOK = "fh", n.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", n.SUCCESS_API_OPERATION = "sapi", n.SUCCESS_CHANGE_PASSWORD = "scp", n.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", n.SUCCESS_CHANGE_USERNAME = "scu", n.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", n.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", n.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", n.SUCCESS_LOGIN = "s", n.SUCCESS_LOGOUT = "slo", n.SUCCESS_SIGNUP = "ss", n.SUCCESS_SILENT_AUTH = "ssa", n.SUCCESS_VERIFICATION_EMAIL = "sv", n.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", n.CODE_LINK_SENT = "cls", n.BLOCKED_ACCOUNT_EMAIL = "limit_wc", n.BLOCKED_ACCOUNT_IP = "limit_sul", n.BLOCKED_IP_ADDRESS = "limit_mu", n))(ye || {});
|
|
1725
|
-
const
|
|
1725
|
+
const zh = a.enum([
|
|
1726
1726
|
"cls",
|
|
1727
1727
|
// CODE_LINK_SENT
|
|
1728
1728
|
"fsa",
|
|
@@ -1771,14 +1771,14 @@ const Mh = a.enum([
|
|
|
1771
1771
|
// SUCCESS_VERIFICATION_EMAIL
|
|
1772
1772
|
"svr"
|
|
1773
1773
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
1774
|
-
]),
|
|
1774
|
+
]), Dh = a.object({
|
|
1775
1775
|
name: a.string(),
|
|
1776
1776
|
version: a.string(),
|
|
1777
1777
|
env: a.object({
|
|
1778
1778
|
node: a.string().optional()
|
|
1779
1779
|
}).optional()
|
|
1780
1780
|
}), vo = a.object({
|
|
1781
|
-
type:
|
|
1781
|
+
type: zh,
|
|
1782
1782
|
date: a.string(),
|
|
1783
1783
|
description: a.string().optional(),
|
|
1784
1784
|
log_id: a.string().optional(),
|
|
@@ -1799,16 +1799,16 @@ const Mh = a.enum([
|
|
|
1799
1799
|
strategy: a.string().optional(),
|
|
1800
1800
|
strategy_type: a.string().optional(),
|
|
1801
1801
|
hostname: a.string().optional(),
|
|
1802
|
-
auth0_client:
|
|
1803
|
-
}),
|
|
1802
|
+
auth0_client: Dh.optional()
|
|
1803
|
+
}), qh = a.object({
|
|
1804
1804
|
user_id: a.string(),
|
|
1805
1805
|
password: a.string(),
|
|
1806
1806
|
algorithm: a.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
1807
1807
|
}), J3 = a.object({
|
|
1808
|
-
...
|
|
1808
|
+
...qh.shape,
|
|
1809
1809
|
created_at: a.string(),
|
|
1810
1810
|
updated_at: a.string()
|
|
1811
|
-
}),
|
|
1811
|
+
}), Id = a.object({
|
|
1812
1812
|
initial_user_agent: a.string().describe("First user agent of the device from which this user logged in"),
|
|
1813
1813
|
initial_ip: a.string().describe("First IP address associated with this session"),
|
|
1814
1814
|
initial_asn: a.string().describe("First autonomous system number associated with this session"),
|
|
@@ -1817,15 +1817,12 @@ const Mh = a.enum([
|
|
|
1817
1817
|
last_asn: a.string().describe("Last autonomous system number from which this user logged in")
|
|
1818
1818
|
}), Fh = a.object({
|
|
1819
1819
|
id: a.string(),
|
|
1820
|
-
// TODO: Remove once data migrated
|
|
1821
|
-
session_id: a.string().optional(),
|
|
1822
|
-
client_id: a.string(),
|
|
1823
1820
|
revoked_at: a.string().optional(),
|
|
1824
1821
|
used_at: a.string(),
|
|
1825
1822
|
user_id: a.string().describe("The user ID associated with the session"),
|
|
1826
1823
|
expires_at: a.string().optional(),
|
|
1827
1824
|
idle_expires_at: a.string().optional(),
|
|
1828
|
-
device:
|
|
1825
|
+
device: Id.describe(
|
|
1829
1826
|
"Metadata related to the device used in the session"
|
|
1830
1827
|
),
|
|
1831
1828
|
clients: a.array(a.string()).describe("List of client details for the session")
|
|
@@ -1968,18 +1965,25 @@ const Kh = a.object({
|
|
|
1968
1965
|
settings: a.object({}).optional()
|
|
1969
1966
|
}), Xh = a.object({
|
|
1970
1967
|
// The actual refresh token value (primary key).
|
|
1971
|
-
|
|
1972
|
-
// Link to the session record
|
|
1968
|
+
id: a.string(),
|
|
1969
|
+
// Link to the session record
|
|
1973
1970
|
session_id: a.string(),
|
|
1974
|
-
//
|
|
1975
|
-
|
|
1976
|
-
|
|
1971
|
+
// Link to user (foreign key)
|
|
1972
|
+
user_id: a.string(),
|
|
1973
|
+
client_id: a.string(),
|
|
1977
1974
|
// When the refresh token expires.
|
|
1978
|
-
expires_at: a.string(),
|
|
1975
|
+
expires_at: a.string().optional(),
|
|
1976
|
+
idle_expires_at: a.string().optional(),
|
|
1979
1977
|
// When the token was last used.
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1978
|
+
last_exchanged_at: a.string().optional(),
|
|
1979
|
+
device: Id,
|
|
1980
|
+
resource_servers: a.array(
|
|
1981
|
+
a.object({
|
|
1982
|
+
audience: a.string(),
|
|
1983
|
+
scopes: a.string()
|
|
1984
|
+
})
|
|
1985
|
+
),
|
|
1986
|
+
rotating: a.boolean()
|
|
1983
1987
|
}), Y3 = a.object({
|
|
1984
1988
|
// When the refresh token record was created.
|
|
1985
1989
|
created_at: a.string(),
|
|
@@ -2096,7 +2100,7 @@ function tg(n) {
|
|
|
2096
2100
|
function ng(n) {
|
|
2097
2101
|
throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2098
2102
|
}
|
|
2099
|
-
var
|
|
2103
|
+
var Ed = { exports: {} };
|
|
2100
2104
|
const ig = {}, rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2101
2105
|
__proto__: null,
|
|
2102
2106
|
default: ig
|
|
@@ -3636,8 +3640,8 @@ const ig = {}, rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3636
3640
|
}
|
|
3637
3641
|
return e.encodeBase64 = g, e.decodeBase64 = _, e;
|
|
3638
3642
|
});
|
|
3639
|
-
})(
|
|
3640
|
-
var og =
|
|
3643
|
+
})(Ed);
|
|
3644
|
+
var og = Ed.exports;
|
|
3641
3645
|
const Ha = /* @__PURE__ */ eg(og), ag = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3642
3646
|
let cg = (n) => crypto.getRandomValues(new Uint8Array(n)), lg = (n, e, t) => {
|
|
3643
3647
|
let i = (2 << Math.log2(n.length - 1)) - 1, r = -~(1.6 * i * e / n.length);
|
|
@@ -3665,7 +3669,7 @@ function vl(n) {
|
|
|
3665
3669
|
const [, e] = n.split("|");
|
|
3666
3670
|
return e;
|
|
3667
3671
|
}
|
|
3668
|
-
async function
|
|
3672
|
+
async function $d(n, e, t) {
|
|
3669
3673
|
return (await n.list(e, {
|
|
3670
3674
|
page: 0,
|
|
3671
3675
|
per_page: 10,
|
|
@@ -3687,7 +3691,7 @@ async function Wa({
|
|
|
3687
3691
|
});
|
|
3688
3692
|
return r.length > 1 && console.error("More than one user found for same email and provider"), r[0] || null;
|
|
3689
3693
|
}
|
|
3690
|
-
async function
|
|
3694
|
+
async function Cd({
|
|
3691
3695
|
userAdapter: n,
|
|
3692
3696
|
tenant_id: e,
|
|
3693
3697
|
email: t
|
|
@@ -4069,7 +4073,7 @@ const wl = yn.extend({
|
|
|
4069
4073
|
if (!c)
|
|
4070
4074
|
throw new N(404);
|
|
4071
4075
|
if (o.email && o.email !== c.email) {
|
|
4072
|
-
const p = await
|
|
4076
|
+
const p = await $d(
|
|
4073
4077
|
n.env.data.users,
|
|
4074
4078
|
e,
|
|
4075
4079
|
o.email
|
|
@@ -4321,7 +4325,7 @@ var bl;
|
|
|
4321
4325
|
} : function(k, I) {
|
|
4322
4326
|
return k[I];
|
|
4323
4327
|
}
|
|
4324
|
-
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map :
|
|
4328
|
+
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : sh(), x = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : oh(), h = typeof WeakMap == "function" ? WeakMap : ah(), m = r ? Symbol.for("@reflect-metadata:registry") : void 0, b = nh(), S = ih(b);
|
|
4325
4329
|
function B(k, I, j, L) {
|
|
4326
4330
|
if (z(j)) {
|
|
4327
4331
|
if (!Zc(k))
|
|
@@ -4344,7 +4348,7 @@ var bl;
|
|
|
4344
4348
|
function j(L, X) {
|
|
4345
4349
|
if (!pe(L))
|
|
4346
4350
|
throw new TypeError();
|
|
4347
|
-
if (!z(X) && !
|
|
4351
|
+
if (!z(X) && !eh(X))
|
|
4348
4352
|
throw new TypeError();
|
|
4349
4353
|
Y(k, I, L, X);
|
|
4350
4354
|
}
|
|
@@ -4555,9 +4559,9 @@ var bl;
|
|
|
4555
4559
|
throw new TypeError();
|
|
4556
4560
|
return X;
|
|
4557
4561
|
}
|
|
4558
|
-
return
|
|
4562
|
+
return Xf(k);
|
|
4559
4563
|
}
|
|
4560
|
-
function
|
|
4564
|
+
function Xf(k, I) {
|
|
4561
4565
|
var j, L;
|
|
4562
4566
|
{
|
|
4563
4567
|
var X = k.toString;
|
|
@@ -4578,12 +4582,12 @@ var bl;
|
|
|
4578
4582
|
function Jc(k) {
|
|
4579
4583
|
return !!k;
|
|
4580
4584
|
}
|
|
4581
|
-
function
|
|
4585
|
+
function Qf(k) {
|
|
4582
4586
|
return "" + k;
|
|
4583
4587
|
}
|
|
4584
4588
|
function ft(k) {
|
|
4585
4589
|
var I = ke(k);
|
|
4586
|
-
return Wt(I) ? I :
|
|
4590
|
+
return Wt(I) ? I : Qf(I);
|
|
4587
4591
|
}
|
|
4588
4592
|
function Zc(k) {
|
|
4589
4593
|
return Array.isArray ? Array.isArray(k) : k instanceof Object ? k instanceof Array : Object.prototype.toString.call(k) === "[object Array]";
|
|
@@ -4594,7 +4598,7 @@ var bl;
|
|
|
4594
4598
|
function Yc(k) {
|
|
4595
4599
|
return typeof k == "function";
|
|
4596
4600
|
}
|
|
4597
|
-
function
|
|
4601
|
+
function eh(k) {
|
|
4598
4602
|
switch (oe(k)) {
|
|
4599
4603
|
case 3:
|
|
4600
4604
|
return !0;
|
|
@@ -4645,9 +4649,9 @@ var bl;
|
|
|
4645
4649
|
var X = L.constructor;
|
|
4646
4650
|
return typeof X != "function" || X === k ? I : X;
|
|
4647
4651
|
}
|
|
4648
|
-
function
|
|
4652
|
+
function th() {
|
|
4649
4653
|
var k;
|
|
4650
|
-
!z(m) && typeof t.Reflect < "u" && !(m in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (k =
|
|
4654
|
+
!z(m) && typeof t.Reflect < "u" && !(m in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (k = rh(t.Reflect));
|
|
4651
4655
|
var I, j, L, X = new h(), Ee = {
|
|
4652
4656
|
registerProvider: Se,
|
|
4653
4657
|
getProvider: M,
|
|
@@ -4718,16 +4722,16 @@ var bl;
|
|
|
4718
4722
|
return !0;
|
|
4719
4723
|
}
|
|
4720
4724
|
}
|
|
4721
|
-
function
|
|
4725
|
+
function nh() {
|
|
4722
4726
|
var k;
|
|
4723
|
-
return !z(m) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && (k = t.Reflect[m]), z(k) && (k =
|
|
4727
|
+
return !z(m) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && (k = t.Reflect[m]), z(k) && (k = th()), !z(m) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && Object.defineProperty(t.Reflect, m, {
|
|
4724
4728
|
enumerable: !1,
|
|
4725
4729
|
configurable: !1,
|
|
4726
4730
|
writable: !1,
|
|
4727
4731
|
value: k
|
|
4728
4732
|
}), k;
|
|
4729
4733
|
}
|
|
4730
|
-
function
|
|
4734
|
+
function ih(k) {
|
|
4731
4735
|
var I = new h(), j = {
|
|
4732
4736
|
isProviderFor: function(F, G) {
|
|
4733
4737
|
var J = I.get(F);
|
|
@@ -4797,14 +4801,14 @@ var bl;
|
|
|
4797
4801
|
var il = tl(ve);
|
|
4798
4802
|
if (!il)
|
|
4799
4803
|
return J.length = ot, J;
|
|
4800
|
-
var
|
|
4804
|
+
var ch = el(il);
|
|
4801
4805
|
try {
|
|
4802
|
-
J[ot] =
|
|
4803
|
-
} catch (
|
|
4806
|
+
J[ot] = ch;
|
|
4807
|
+
} catch (lh) {
|
|
4804
4808
|
try {
|
|
4805
4809
|
nl(ve);
|
|
4806
4810
|
} finally {
|
|
4807
|
-
throw
|
|
4811
|
+
throw lh;
|
|
4808
4812
|
}
|
|
4809
4813
|
}
|
|
4810
4814
|
ot++;
|
|
@@ -4826,7 +4830,7 @@ var bl;
|
|
|
4826
4830
|
return !0;
|
|
4827
4831
|
}
|
|
4828
4832
|
}
|
|
4829
|
-
function
|
|
4833
|
+
function rh(k) {
|
|
4830
4834
|
var I = k.defineMetadata, j = k.hasOwnMetadata, L = k.getOwnMetadata, X = k.getOwnMetadataKeys, Ee = k.deleteMetadata, Se = new h(), ie = {
|
|
4831
4835
|
isProviderFor: function(M, F) {
|
|
4832
4836
|
var G = Se.get(M);
|
|
@@ -4850,7 +4854,7 @@ var bl;
|
|
|
4850
4854
|
throw new Error("Illegal state.");
|
|
4851
4855
|
}
|
|
4852
4856
|
}
|
|
4853
|
-
function
|
|
4857
|
+
function sh() {
|
|
4854
4858
|
var k = {}, I = [], j = (
|
|
4855
4859
|
/** @class */
|
|
4856
4860
|
function() {
|
|
@@ -4954,7 +4958,7 @@ var bl;
|
|
|
4954
4958
|
return [ie, M];
|
|
4955
4959
|
}
|
|
4956
4960
|
}
|
|
4957
|
-
function
|
|
4961
|
+
function oh() {
|
|
4958
4962
|
var k = (
|
|
4959
4963
|
/** @class */
|
|
4960
4964
|
function() {
|
|
@@ -4990,7 +4994,7 @@ var bl;
|
|
|
4990
4994
|
);
|
|
4991
4995
|
return k;
|
|
4992
4996
|
}
|
|
4993
|
-
function
|
|
4997
|
+
function ah() {
|
|
4994
4998
|
var k = 16, I = p.create(), j = L();
|
|
4995
4999
|
return (
|
|
4996
5000
|
/** @class */
|
|
@@ -5357,7 +5361,7 @@ function bg(...n) {
|
|
|
5357
5361
|
t[i++] = s;
|
|
5358
5362
|
}), t.buffer;
|
|
5359
5363
|
}
|
|
5360
|
-
function
|
|
5364
|
+
function jd(n, e) {
|
|
5361
5365
|
if (!(n && e) || n.byteLength !== e.byteLength)
|
|
5362
5366
|
return !1;
|
|
5363
5367
|
const t = new Uint8Array(n), i = new Uint8Array(e);
|
|
@@ -5410,7 +5414,7 @@ function wo(...n) {
|
|
|
5410
5414
|
r.set(s, t), t += s.length;
|
|
5411
5415
|
return r;
|
|
5412
5416
|
}
|
|
5413
|
-
function
|
|
5417
|
+
function Nd() {
|
|
5414
5418
|
const n = new Uint8Array(this.valueHex);
|
|
5415
5419
|
if (this.valueHex.byteLength >= 2) {
|
|
5416
5420
|
const c = n[0] === 255 && n[1] & 128, l = n[0] === 0 && (n[1] & 128) === 0;
|
|
@@ -5530,7 +5534,7 @@ class Qr {
|
|
|
5530
5534
|
return Ga(this.items);
|
|
5531
5535
|
}
|
|
5532
5536
|
}
|
|
5533
|
-
const ii = [new Uint8Array([1])], xl = "0123456789", Qs = "name", Sl = "valueHexView", Sg = "isHexOnly", Ag = "idBlock", Ig = "tagClass", Eg = "tagNumber", $g = "isConstructed", Cg = "fromBER", jg = "toBER", Ng = "local", ze = "", dt = new ArrayBuffer(0), es = new Uint8Array(0), mi = "EndOfContent",
|
|
5537
|
+
const ii = [new Uint8Array([1])], xl = "0123456789", Qs = "name", Sl = "valueHexView", Sg = "isHexOnly", Ag = "idBlock", Ig = "tagClass", Eg = "tagNumber", $g = "isConstructed", Cg = "fromBER", jg = "toBER", Ng = "local", ze = "", dt = new ArrayBuffer(0), es = new Uint8Array(0), mi = "EndOfContent", Od = "OCTET STRING", Bd = "BIT STRING";
|
|
5534
5538
|
function bt(n) {
|
|
5535
5539
|
var e;
|
|
5536
5540
|
return e = class extends n {
|
|
@@ -5598,7 +5602,7 @@ class Ue extends vn {
|
|
|
5598
5602
|
}
|
|
5599
5603
|
}
|
|
5600
5604
|
Ue.NAME = "valueBlock";
|
|
5601
|
-
class
|
|
5605
|
+
class Td extends bt(vn) {
|
|
5602
5606
|
constructor({ idBlock: e = {} } = {}) {
|
|
5603
5607
|
var t, i, r, s;
|
|
5604
5608
|
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ? V.toUint8Array(e.valueHex) : es, this.tagClass = (i = e.tagClass) !== null && i !== void 0 ? i : -1, this.tagNumber = (r = e.tagNumber) !== null && r !== void 0 ? r : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
@@ -5721,8 +5725,8 @@ class Bd extends bt(vn) {
|
|
|
5721
5725
|
};
|
|
5722
5726
|
}
|
|
5723
5727
|
}
|
|
5724
|
-
|
|
5725
|
-
class
|
|
5728
|
+
Td.NAME = "identificationBlock";
|
|
5729
|
+
class Pd extends vn {
|
|
5726
5730
|
constructor({ lenBlock: e = {} } = {}) {
|
|
5727
5731
|
var t, i, r;
|
|
5728
5732
|
super(), this.isIndefiniteForm = (t = e.isIndefiniteForm) !== null && t !== void 0 ? t : !1, this.longFormUsed = (i = e.longFormUsed) !== null && i !== void 0 ? i : !1, this.length = (r = e.length) !== null && r !== void 0 ? r : 0;
|
|
@@ -5775,11 +5779,11 @@ class Td extends vn {
|
|
|
5775
5779
|
};
|
|
5776
5780
|
}
|
|
5777
5781
|
}
|
|
5778
|
-
|
|
5782
|
+
Pd.NAME = "lengthBlock";
|
|
5779
5783
|
const q = {};
|
|
5780
5784
|
class Ne extends vn {
|
|
5781
5785
|
constructor({ name: e = ze, optional: t = !1, primitiveSchema: i, ...r } = {}, s) {
|
|
5782
|
-
super(r), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new
|
|
5786
|
+
super(r), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new Td(r), this.lenBlock = new Pd(r), this.valueBlock = s ? new s(r) : new Ue(r);
|
|
5783
5787
|
}
|
|
5784
5788
|
fromBER(e, t, i) {
|
|
5785
5789
|
const r = this.valueBlock.fromBER(e, t, this.lenBlock.isIndefiniteForm ? i : this.lenBlock.length);
|
|
@@ -5787,7 +5791,7 @@ class Ne extends vn {
|
|
|
5787
5791
|
}
|
|
5788
5792
|
toBER(e, t) {
|
|
5789
5793
|
const i = t || new Qr();
|
|
5790
|
-
t ||
|
|
5794
|
+
t || Rd(this);
|
|
5791
5795
|
const r = this.idBlock.toBER(e);
|
|
5792
5796
|
if (i.write(r), this.lenBlock.isIndefiniteForm)
|
|
5793
5797
|
i.write(new Uint8Array([128]).buffer), this.valueBlock.toBER(e, i), i.write(new ArrayBuffer(2));
|
|
@@ -5826,10 +5830,10 @@ class Ne extends vn {
|
|
|
5826
5830
|
}
|
|
5827
5831
|
}
|
|
5828
5832
|
Ne.NAME = "BaseBlock";
|
|
5829
|
-
function
|
|
5833
|
+
function Rd(n) {
|
|
5830
5834
|
if (n instanceof q.Constructed)
|
|
5831
5835
|
for (const e of n.valueBlock.value)
|
|
5832
|
-
|
|
5836
|
+
Rd(e) && (n.lenBlock.isIndefiniteForm = !0);
|
|
5833
5837
|
return !!n.lenBlock.isIndefiniteForm;
|
|
5834
5838
|
}
|
|
5835
5839
|
class Ja extends Ne {
|
|
@@ -5851,20 +5855,20 @@ class Ja extends Ne {
|
|
|
5851
5855
|
}
|
|
5852
5856
|
}
|
|
5853
5857
|
Ja.NAME = "BaseStringBlock";
|
|
5854
|
-
class
|
|
5858
|
+
class Ld extends bt(Ue) {
|
|
5855
5859
|
constructor({ isHexOnly: e = !0, ...t } = {}) {
|
|
5856
5860
|
super(t), this.isHexOnly = e;
|
|
5857
5861
|
}
|
|
5858
5862
|
}
|
|
5859
|
-
|
|
5860
|
-
var
|
|
5863
|
+
Ld.NAME = "PrimitiveValueBlock";
|
|
5864
|
+
var Ud;
|
|
5861
5865
|
class Ni extends Ne {
|
|
5862
5866
|
constructor(e = {}) {
|
|
5863
|
-
super(e,
|
|
5867
|
+
super(e, Ld), this.idBlock.isConstructed = !1;
|
|
5864
5868
|
}
|
|
5865
5869
|
}
|
|
5866
|
-
|
|
5867
|
-
q.Primitive =
|
|
5870
|
+
Ud = Ni;
|
|
5871
|
+
q.Primitive = Ud;
|
|
5868
5872
|
Ni.NAME = "PRIMITIVE";
|
|
5869
5873
|
function Og(n, e) {
|
|
5870
5874
|
if (n instanceof e)
|
|
@@ -6079,7 +6083,7 @@ class Ut extends Ue {
|
|
|
6079
6083
|
}
|
|
6080
6084
|
}
|
|
6081
6085
|
Ut.NAME = "ConstructedValueBlock";
|
|
6082
|
-
var
|
|
6086
|
+
var Vd;
|
|
6083
6087
|
class De extends Ne {
|
|
6084
6088
|
constructor(e = {}) {
|
|
6085
6089
|
super(e, Ut), this.idBlock.isConstructed = !0;
|
|
@@ -6101,10 +6105,10 @@ ${e.join(`
|
|
|
6101
6105
|
`)}` : `${t} :`;
|
|
6102
6106
|
}
|
|
6103
6107
|
}
|
|
6104
|
-
|
|
6105
|
-
q.Constructed =
|
|
6108
|
+
Vd = De;
|
|
6109
|
+
q.Constructed = Vd;
|
|
6106
6110
|
De.NAME = "CONSTRUCTED";
|
|
6107
|
-
class
|
|
6111
|
+
class Md extends Ue {
|
|
6108
6112
|
fromBER(e, t, i) {
|
|
6109
6113
|
return t;
|
|
6110
6114
|
}
|
|
@@ -6112,17 +6116,17 @@ class Vd extends Ue {
|
|
|
6112
6116
|
return dt;
|
|
6113
6117
|
}
|
|
6114
6118
|
}
|
|
6115
|
-
|
|
6116
|
-
var
|
|
6119
|
+
Md.override = "EndOfContentValueBlock";
|
|
6120
|
+
var zd;
|
|
6117
6121
|
class Za extends Ne {
|
|
6118
6122
|
constructor(e = {}) {
|
|
6119
|
-
super(e,
|
|
6123
|
+
super(e, Md), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
|
|
6120
6124
|
}
|
|
6121
6125
|
}
|
|
6122
|
-
|
|
6123
|
-
q.EndOfContent =
|
|
6126
|
+
zd = Za;
|
|
6127
|
+
q.EndOfContent = zd;
|
|
6124
6128
|
Za.NAME = mi;
|
|
6125
|
-
var
|
|
6129
|
+
var Dd;
|
|
6126
6130
|
class an extends Ne {
|
|
6127
6131
|
constructor(e = {}) {
|
|
6128
6132
|
super(e, Ue), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
@@ -6142,10 +6146,10 @@ class an extends Ne {
|
|
|
6142
6146
|
return `${this.constructor.NAME}`;
|
|
6143
6147
|
}
|
|
6144
6148
|
}
|
|
6145
|
-
|
|
6146
|
-
q.Null =
|
|
6149
|
+
Dd = an;
|
|
6150
|
+
q.Null = Dd;
|
|
6147
6151
|
an.NAME = "NULL";
|
|
6148
|
-
class
|
|
6152
|
+
class qd extends bt(Ue) {
|
|
6149
6153
|
constructor({ value: e, ...t } = {}) {
|
|
6150
6154
|
super(t), t.valueHex ? this.valueHexView = V.toUint8Array(t.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
|
|
6151
6155
|
}
|
|
@@ -6160,7 +6164,7 @@ class Dd extends bt(Ue) {
|
|
|
6160
6164
|
}
|
|
6161
6165
|
fromBER(e, t, i) {
|
|
6162
6166
|
const r = V.toUint8Array(e);
|
|
6163
|
-
return Bt(this, r, t, i) ? (this.valueHexView = r.subarray(t, t + i), i > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0,
|
|
6167
|
+
return Bt(this, r, t, i) ? (this.valueHexView = r.subarray(t, t + i), i > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, Nd.call(this), this.blockLength = i, t + i) : -1;
|
|
6164
6168
|
}
|
|
6165
6169
|
toBER() {
|
|
6166
6170
|
return this.valueHexView.slice();
|
|
@@ -6172,11 +6176,11 @@ class Dd extends bt(Ue) {
|
|
|
6172
6176
|
};
|
|
6173
6177
|
}
|
|
6174
6178
|
}
|
|
6175
|
-
|
|
6176
|
-
var
|
|
6179
|
+
qd.NAME = "BooleanValueBlock";
|
|
6180
|
+
var Fd;
|
|
6177
6181
|
class ts extends Ne {
|
|
6178
6182
|
constructor(e = {}) {
|
|
6179
|
-
super(e,
|
|
6183
|
+
super(e, qd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
|
|
6180
6184
|
}
|
|
6181
6185
|
getValue() {
|
|
6182
6186
|
return this.valueBlock.value;
|
|
@@ -6188,10 +6192,10 @@ class ts extends Ne {
|
|
|
6188
6192
|
return `${this.constructor.NAME} : ${this.getValue}`;
|
|
6189
6193
|
}
|
|
6190
6194
|
}
|
|
6191
|
-
|
|
6192
|
-
q.Boolean =
|
|
6195
|
+
Fd = ts;
|
|
6196
|
+
q.Boolean = Fd;
|
|
6193
6197
|
ts.NAME = "BOOLEAN";
|
|
6194
|
-
class
|
|
6198
|
+
class Hd extends bt(Ut) {
|
|
6195
6199
|
constructor({ isConstructed: e = !1, ...t } = {}) {
|
|
6196
6200
|
super(t), this.isConstructed = e;
|
|
6197
6201
|
}
|
|
@@ -6207,7 +6211,7 @@ class Fd extends bt(Ut) {
|
|
|
6207
6211
|
break;
|
|
6208
6212
|
return this.error = "EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
6209
6213
|
}
|
|
6210
|
-
if (o !==
|
|
6214
|
+
if (o !== Od)
|
|
6211
6215
|
return this.error = "OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
6212
6216
|
}
|
|
6213
6217
|
} else
|
|
@@ -6224,9 +6228,9 @@ class Fd extends bt(Ut) {
|
|
|
6224
6228
|
};
|
|
6225
6229
|
}
|
|
6226
6230
|
}
|
|
6227
|
-
|
|
6228
|
-
var
|
|
6229
|
-
let Qt = class
|
|
6231
|
+
Hd.NAME = "OctetStringValueBlock";
|
|
6232
|
+
var Kd;
|
|
6233
|
+
let Qt = class Wd extends Ne {
|
|
6230
6234
|
constructor({ idBlock: e = {}, lenBlock: t = {}, ...i } = {}) {
|
|
6231
6235
|
var r, s;
|
|
6232
6236
|
(r = i.isConstructed) !== null && r !== void 0 || (i.isConstructed = !!(!((s = i.value) === null || s === void 0) && s.length)), super({
|
|
@@ -6239,7 +6243,7 @@ let Qt = class Kd extends Ne {
|
|
|
6239
6243
|
isIndefiniteForm: !!i.isIndefiniteForm
|
|
6240
6244
|
},
|
|
6241
6245
|
...i
|
|
6242
|
-
},
|
|
6246
|
+
}, Hd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 4;
|
|
6243
6247
|
}
|
|
6244
6248
|
fromBER(e, t, i) {
|
|
6245
6249
|
if (this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, i === 0)
|
|
@@ -6264,14 +6268,14 @@ let Qt = class Kd extends Ne {
|
|
|
6264
6268
|
return this.valueBlock.valueHexView.slice().buffer;
|
|
6265
6269
|
const e = [];
|
|
6266
6270
|
for (const t of this.valueBlock.value)
|
|
6267
|
-
t instanceof
|
|
6271
|
+
t instanceof Wd && e.push(t.valueBlock.valueHexView);
|
|
6268
6272
|
return V.concat(e);
|
|
6269
6273
|
}
|
|
6270
6274
|
};
|
|
6271
|
-
|
|
6272
|
-
q.OctetString =
|
|
6273
|
-
Qt.NAME =
|
|
6274
|
-
class
|
|
6275
|
+
Kd = Qt;
|
|
6276
|
+
q.OctetString = Kd;
|
|
6277
|
+
Qt.NAME = Od;
|
|
6278
|
+
class Gd extends bt(Ut) {
|
|
6275
6279
|
constructor({ unusedBits: e = 0, isConstructed: t = !1, ...i } = {}) {
|
|
6276
6280
|
super(i), this.unusedBits = e, this.isConstructed = t, this.blockLength = this.valueHexView.byteLength;
|
|
6277
6281
|
}
|
|
@@ -6289,7 +6293,7 @@ class Wd extends bt(Ut) {
|
|
|
6289
6293
|
break;
|
|
6290
6294
|
return this.error = "EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only", -1;
|
|
6291
6295
|
}
|
|
6292
|
-
if (l !==
|
|
6296
|
+
if (l !== Bd)
|
|
6293
6297
|
return this.error = "BIT STRING may consists of BIT STRINGs only", -1;
|
|
6294
6298
|
const u = c.valueBlock;
|
|
6295
6299
|
if (this.unusedBits > 0 && u.unusedBits > 0)
|
|
@@ -6334,8 +6338,8 @@ class Wd extends bt(Ut) {
|
|
|
6334
6338
|
};
|
|
6335
6339
|
}
|
|
6336
6340
|
}
|
|
6337
|
-
|
|
6338
|
-
var
|
|
6341
|
+
Gd.NAME = "BitStringValueBlock";
|
|
6342
|
+
var Jd;
|
|
6339
6343
|
let en = class extends Ne {
|
|
6340
6344
|
constructor({ idBlock: e = {}, lenBlock: t = {}, ...i } = {}) {
|
|
6341
6345
|
var r, s;
|
|
@@ -6349,7 +6353,7 @@ let en = class extends Ne {
|
|
|
6349
6353
|
isIndefiniteForm: !!i.isIndefiniteForm
|
|
6350
6354
|
},
|
|
6351
6355
|
...i
|
|
6352
|
-
},
|
|
6356
|
+
}, Gd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 3;
|
|
6353
6357
|
}
|
|
6354
6358
|
fromBER(e, t, i) {
|
|
6355
6359
|
return this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, super.fromBER(e, t, i);
|
|
@@ -6366,10 +6370,10 @@ let en = class extends Ne {
|
|
|
6366
6370
|
}
|
|
6367
6371
|
}
|
|
6368
6372
|
};
|
|
6369
|
-
|
|
6370
|
-
q.BitString =
|
|
6371
|
-
en.NAME =
|
|
6372
|
-
var
|
|
6373
|
+
Jd = en;
|
|
6374
|
+
q.BitString = Jd;
|
|
6375
|
+
en.NAME = Bd;
|
|
6376
|
+
var Zd;
|
|
6373
6377
|
function Tg(n, e) {
|
|
6374
6378
|
const t = new Uint8Array([0]), i = new Uint8Array(n), r = new Uint8Array(e);
|
|
6375
6379
|
let s = i.slice(0);
|
|
@@ -6435,7 +6439,7 @@ class Ya extends bt(Ue) {
|
|
|
6435
6439
|
super(t), this._valueDec = 0, t.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
|
|
6436
6440
|
}
|
|
6437
6441
|
setValueHex() {
|
|
6438
|
-
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec =
|
|
6442
|
+
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = Nd.call(this)));
|
|
6439
6443
|
}
|
|
6440
6444
|
set valueDec(e) {
|
|
6441
6445
|
this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(kg(e));
|
|
@@ -6502,9 +6506,9 @@ class Ya extends bt(Ue) {
|
|
|
6502
6506
|
return c === !1 && (o += xl.charAt(0)), o;
|
|
6503
6507
|
}
|
|
6504
6508
|
}
|
|
6505
|
-
|
|
6509
|
+
Zd = Ya;
|
|
6506
6510
|
Ya.NAME = "IntegerValueBlock";
|
|
6507
|
-
Object.defineProperty(
|
|
6511
|
+
Object.defineProperty(Zd.prototype, "valueHex", {
|
|
6508
6512
|
set: function(n) {
|
|
6509
6513
|
this.valueHexView = new Uint8Array(n), this.setValueHex();
|
|
6510
6514
|
},
|
|
@@ -6512,7 +6516,7 @@ Object.defineProperty(Jd.prototype, "valueHex", {
|
|
|
6512
6516
|
return this.valueHexView.slice().buffer;
|
|
6513
6517
|
}
|
|
6514
6518
|
});
|
|
6515
|
-
var
|
|
6519
|
+
var Yd;
|
|
6516
6520
|
class yt extends Ne {
|
|
6517
6521
|
constructor(e = {}) {
|
|
6518
6522
|
super(e, Ya), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
@@ -6547,17 +6551,17 @@ class yt extends Ne {
|
|
|
6547
6551
|
return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
|
|
6548
6552
|
}
|
|
6549
6553
|
}
|
|
6550
|
-
|
|
6551
|
-
q.Integer =
|
|
6554
|
+
Yd = yt;
|
|
6555
|
+
q.Integer = Yd;
|
|
6552
6556
|
yt.NAME = "INTEGER";
|
|
6553
|
-
var
|
|
6557
|
+
var Xd;
|
|
6554
6558
|
class ns extends yt {
|
|
6555
6559
|
constructor(e = {}) {
|
|
6556
6560
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
6557
6561
|
}
|
|
6558
6562
|
}
|
|
6559
|
-
|
|
6560
|
-
q.Enumerated =
|
|
6563
|
+
Xd = ns;
|
|
6564
|
+
q.Enumerated = Xd;
|
|
6561
6565
|
ns.NAME = "ENUMERATED";
|
|
6562
6566
|
class bo extends bt(Ue) {
|
|
6563
6567
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...i } = {}) {
|
|
@@ -6629,7 +6633,7 @@ class bo extends bt(Ue) {
|
|
|
6629
6633
|
}
|
|
6630
6634
|
}
|
|
6631
6635
|
bo.NAME = "sidBlock";
|
|
6632
|
-
class
|
|
6636
|
+
class Qd extends Ue {
|
|
6633
6637
|
constructor({ value: e = ze, ...t } = {}) {
|
|
6634
6638
|
super(t), this.value = [], e && this.fromString(e);
|
|
6635
6639
|
}
|
|
@@ -6709,11 +6713,11 @@ class Xd extends Ue {
|
|
|
6709
6713
|
return e;
|
|
6710
6714
|
}
|
|
6711
6715
|
}
|
|
6712
|
-
|
|
6713
|
-
var
|
|
6716
|
+
Qd.NAME = "ObjectIdentifierValueBlock";
|
|
6717
|
+
var ep;
|
|
6714
6718
|
class is extends Ne {
|
|
6715
6719
|
constructor(e = {}) {
|
|
6716
|
-
super(e,
|
|
6720
|
+
super(e, Qd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
|
|
6717
6721
|
}
|
|
6718
6722
|
getValue() {
|
|
6719
6723
|
return this.valueBlock.toString();
|
|
@@ -6731,8 +6735,8 @@ class is extends Ne {
|
|
|
6731
6735
|
};
|
|
6732
6736
|
}
|
|
6733
6737
|
}
|
|
6734
|
-
|
|
6735
|
-
q.ObjectIdentifier =
|
|
6738
|
+
ep = is;
|
|
6739
|
+
q.ObjectIdentifier = ep;
|
|
6736
6740
|
is.NAME = "OBJECT IDENTIFIER";
|
|
6737
6741
|
class ko extends bt(vn) {
|
|
6738
6742
|
constructor({ valueDec: e = 0, ...t } = {}) {
|
|
@@ -6786,7 +6790,7 @@ class ko extends bt(vn) {
|
|
|
6786
6790
|
}
|
|
6787
6791
|
}
|
|
6788
6792
|
ko.NAME = "relativeSidBlock";
|
|
6789
|
-
class
|
|
6793
|
+
class tp extends Ue {
|
|
6790
6794
|
constructor({ value: e = ze, ...t } = {}) {
|
|
6791
6795
|
super(t), this.value = [], e && this.fromString(e);
|
|
6792
6796
|
}
|
|
@@ -6842,11 +6846,11 @@ class ep extends Ue {
|
|
|
6842
6846
|
return e;
|
|
6843
6847
|
}
|
|
6844
6848
|
}
|
|
6845
|
-
|
|
6846
|
-
var
|
|
6849
|
+
tp.NAME = "RelativeObjectIdentifierValueBlock";
|
|
6850
|
+
var np;
|
|
6847
6851
|
class Xa extends Ne {
|
|
6848
6852
|
constructor(e = {}) {
|
|
6849
|
-
super(e,
|
|
6853
|
+
super(e, tp), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
|
|
6850
6854
|
}
|
|
6851
6855
|
getValue() {
|
|
6852
6856
|
return this.valueBlock.toString();
|
|
@@ -6864,28 +6868,28 @@ class Xa extends Ne {
|
|
|
6864
6868
|
};
|
|
6865
6869
|
}
|
|
6866
6870
|
}
|
|
6867
|
-
|
|
6868
|
-
q.RelativeObjectIdentifier =
|
|
6871
|
+
np = Xa;
|
|
6872
|
+
q.RelativeObjectIdentifier = np;
|
|
6869
6873
|
Xa.NAME = "RelativeObjectIdentifier";
|
|
6870
|
-
var
|
|
6874
|
+
var ip;
|
|
6871
6875
|
class It extends De {
|
|
6872
6876
|
constructor(e = {}) {
|
|
6873
6877
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
|
|
6874
6878
|
}
|
|
6875
6879
|
}
|
|
6876
|
-
|
|
6877
|
-
q.Sequence =
|
|
6880
|
+
ip = It;
|
|
6881
|
+
q.Sequence = ip;
|
|
6878
6882
|
It.NAME = "SEQUENCE";
|
|
6879
|
-
var
|
|
6883
|
+
var rp;
|
|
6880
6884
|
let Et = class extends De {
|
|
6881
6885
|
constructor(e = {}) {
|
|
6882
6886
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
|
|
6883
6887
|
}
|
|
6884
6888
|
};
|
|
6885
|
-
|
|
6886
|
-
q.Set =
|
|
6889
|
+
rp = Et;
|
|
6890
|
+
q.Set = rp;
|
|
6887
6891
|
Et.NAME = "SET";
|
|
6888
|
-
class
|
|
6892
|
+
class sp extends bt(Ue) {
|
|
6889
6893
|
constructor({ ...e } = {}) {
|
|
6890
6894
|
super(e), this.isHexOnly = !0, this.value = ze;
|
|
6891
6895
|
}
|
|
@@ -6896,13 +6900,13 @@ class rp extends bt(Ue) {
|
|
|
6896
6900
|
};
|
|
6897
6901
|
}
|
|
6898
6902
|
}
|
|
6899
|
-
|
|
6900
|
-
class
|
|
6903
|
+
sp.NAME = "StringValueBlock";
|
|
6904
|
+
class op extends sp {
|
|
6901
6905
|
}
|
|
6902
|
-
|
|
6906
|
+
op.NAME = "SimpleStringValueBlock";
|
|
6903
6907
|
class Ze extends Ja {
|
|
6904
6908
|
constructor({ ...e } = {}) {
|
|
6905
|
-
super(e,
|
|
6909
|
+
super(e, op);
|
|
6906
6910
|
}
|
|
6907
6911
|
fromBuffer(e) {
|
|
6908
6912
|
this.valueBlock.value = String.fromCharCode.apply(null, V.toUint8Array(e));
|
|
@@ -6915,7 +6919,7 @@ class Ze extends Ja {
|
|
|
6915
6919
|
}
|
|
6916
6920
|
}
|
|
6917
6921
|
Ze.NAME = "SIMPLE STRING";
|
|
6918
|
-
class
|
|
6922
|
+
class ap extends Ze {
|
|
6919
6923
|
fromBuffer(e) {
|
|
6920
6924
|
this.valueBlock.valueHexView = V.toUint8Array(e);
|
|
6921
6925
|
try {
|
|
@@ -6928,17 +6932,17 @@ class op extends Ze {
|
|
|
6928
6932
|
this.valueBlock.valueHexView = new Uint8Array(W.FromUtf8String(e)), this.valueBlock.value = e;
|
|
6929
6933
|
}
|
|
6930
6934
|
}
|
|
6931
|
-
|
|
6932
|
-
var
|
|
6933
|
-
class Tt extends
|
|
6935
|
+
ap.NAME = "Utf8StringValueBlock";
|
|
6936
|
+
var cp;
|
|
6937
|
+
class Tt extends ap {
|
|
6934
6938
|
constructor(e = {}) {
|
|
6935
6939
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 12;
|
|
6936
6940
|
}
|
|
6937
6941
|
}
|
|
6938
|
-
|
|
6939
|
-
q.Utf8String =
|
|
6942
|
+
cp = Tt;
|
|
6943
|
+
q.Utf8String = cp;
|
|
6940
6944
|
Tt.NAME = "UTF8String";
|
|
6941
|
-
class
|
|
6945
|
+
class lp extends Ze {
|
|
6942
6946
|
fromBuffer(e) {
|
|
6943
6947
|
this.valueBlock.value = W.ToUtf16String(e), this.valueBlock.valueHexView = V.toUint8Array(e);
|
|
6944
6948
|
}
|
|
@@ -6946,17 +6950,17 @@ class cp extends Ze {
|
|
|
6946
6950
|
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(W.FromUtf16String(e));
|
|
6947
6951
|
}
|
|
6948
6952
|
}
|
|
6949
|
-
|
|
6950
|
-
var
|
|
6951
|
-
class rs extends
|
|
6953
|
+
lp.NAME = "BmpStringValueBlock";
|
|
6954
|
+
var up;
|
|
6955
|
+
class rs extends lp {
|
|
6952
6956
|
constructor({ ...e } = {}) {
|
|
6953
6957
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
|
|
6954
6958
|
}
|
|
6955
6959
|
}
|
|
6956
|
-
|
|
6957
|
-
q.BmpString =
|
|
6960
|
+
up = rs;
|
|
6961
|
+
q.BmpString = up;
|
|
6958
6962
|
rs.NAME = "BMPString";
|
|
6959
|
-
class
|
|
6963
|
+
class dp extends Ze {
|
|
6960
6964
|
fromBuffer(e) {
|
|
6961
6965
|
const t = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), i = new Uint8Array(t);
|
|
6962
6966
|
for (let r = 0; r < i.length; r += 4)
|
|
@@ -6976,98 +6980,98 @@ class up extends Ze {
|
|
|
6976
6980
|
this.valueBlock.value = e;
|
|
6977
6981
|
}
|
|
6978
6982
|
}
|
|
6979
|
-
|
|
6980
|
-
var
|
|
6981
|
-
class ss extends
|
|
6983
|
+
dp.NAME = "UniversalStringValueBlock";
|
|
6984
|
+
var pp;
|
|
6985
|
+
class ss extends dp {
|
|
6982
6986
|
constructor({ ...e } = {}) {
|
|
6983
6987
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
|
|
6984
6988
|
}
|
|
6985
6989
|
}
|
|
6986
|
-
|
|
6987
|
-
q.UniversalString =
|
|
6990
|
+
pp = ss;
|
|
6991
|
+
q.UniversalString = pp;
|
|
6988
6992
|
ss.NAME = "UniversalString";
|
|
6989
|
-
var
|
|
6993
|
+
var fp;
|
|
6990
6994
|
class os extends Ze {
|
|
6991
6995
|
constructor(e = {}) {
|
|
6992
6996
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
|
|
6993
6997
|
}
|
|
6994
6998
|
}
|
|
6995
|
-
|
|
6996
|
-
q.NumericString =
|
|
6999
|
+
fp = os;
|
|
7000
|
+
q.NumericString = fp;
|
|
6997
7001
|
os.NAME = "NumericString";
|
|
6998
|
-
var
|
|
7002
|
+
var hp;
|
|
6999
7003
|
class as extends Ze {
|
|
7000
7004
|
constructor(e = {}) {
|
|
7001
7005
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
|
|
7002
7006
|
}
|
|
7003
7007
|
}
|
|
7004
|
-
|
|
7005
|
-
q.PrintableString =
|
|
7008
|
+
hp = as;
|
|
7009
|
+
q.PrintableString = hp;
|
|
7006
7010
|
as.NAME = "PrintableString";
|
|
7007
|
-
var
|
|
7011
|
+
var gp;
|
|
7008
7012
|
class cs extends Ze {
|
|
7009
7013
|
constructor(e = {}) {
|
|
7010
7014
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
|
|
7011
7015
|
}
|
|
7012
7016
|
}
|
|
7013
|
-
|
|
7014
|
-
q.TeletexString =
|
|
7017
|
+
gp = cs;
|
|
7018
|
+
q.TeletexString = gp;
|
|
7015
7019
|
cs.NAME = "TeletexString";
|
|
7016
|
-
var
|
|
7020
|
+
var _p;
|
|
7017
7021
|
class ls extends Ze {
|
|
7018
7022
|
constructor(e = {}) {
|
|
7019
7023
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
|
|
7020
7024
|
}
|
|
7021
7025
|
}
|
|
7022
|
-
|
|
7023
|
-
q.VideotexString =
|
|
7026
|
+
_p = ls;
|
|
7027
|
+
q.VideotexString = _p;
|
|
7024
7028
|
ls.NAME = "VideotexString";
|
|
7025
|
-
var
|
|
7029
|
+
var mp;
|
|
7026
7030
|
class us extends Ze {
|
|
7027
7031
|
constructor(e = {}) {
|
|
7028
7032
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
|
|
7029
7033
|
}
|
|
7030
7034
|
}
|
|
7031
|
-
|
|
7032
|
-
q.IA5String =
|
|
7035
|
+
mp = us;
|
|
7036
|
+
q.IA5String = mp;
|
|
7033
7037
|
us.NAME = "IA5String";
|
|
7034
|
-
var
|
|
7038
|
+
var yp;
|
|
7035
7039
|
class ds extends Ze {
|
|
7036
7040
|
constructor(e = {}) {
|
|
7037
7041
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
|
|
7038
7042
|
}
|
|
7039
7043
|
}
|
|
7040
|
-
|
|
7041
|
-
q.GraphicString =
|
|
7044
|
+
yp = ds;
|
|
7045
|
+
q.GraphicString = yp;
|
|
7042
7046
|
ds.NAME = "GraphicString";
|
|
7043
|
-
var
|
|
7047
|
+
var vp;
|
|
7044
7048
|
class Oi extends Ze {
|
|
7045
7049
|
constructor(e = {}) {
|
|
7046
7050
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
|
|
7047
7051
|
}
|
|
7048
7052
|
}
|
|
7049
|
-
|
|
7050
|
-
q.VisibleString =
|
|
7053
|
+
vp = Oi;
|
|
7054
|
+
q.VisibleString = vp;
|
|
7051
7055
|
Oi.NAME = "VisibleString";
|
|
7052
|
-
var
|
|
7056
|
+
var wp;
|
|
7053
7057
|
class ps extends Ze {
|
|
7054
7058
|
constructor(e = {}) {
|
|
7055
7059
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
|
|
7056
7060
|
}
|
|
7057
7061
|
}
|
|
7058
|
-
|
|
7059
|
-
q.GeneralString =
|
|
7062
|
+
wp = ps;
|
|
7063
|
+
q.GeneralString = wp;
|
|
7060
7064
|
ps.NAME = "GeneralString";
|
|
7061
|
-
var
|
|
7065
|
+
var bp;
|
|
7062
7066
|
class fs extends Ze {
|
|
7063
7067
|
constructor(e = {}) {
|
|
7064
7068
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
|
|
7065
7069
|
}
|
|
7066
7070
|
}
|
|
7067
|
-
|
|
7068
|
-
q.CharacterString =
|
|
7071
|
+
bp = fs;
|
|
7072
|
+
q.CharacterString = bp;
|
|
7069
7073
|
fs.NAME = "CharacterString";
|
|
7070
|
-
var
|
|
7074
|
+
var kp;
|
|
7071
7075
|
class Bi extends Oi {
|
|
7072
7076
|
constructor({ value: e, valueDate: t, ...i } = {}) {
|
|
7073
7077
|
if (super(i), this.year = 0, this.month = 0, this.day = 0, this.hour = 0, this.minute = 0, this.second = 0, e) {
|
|
@@ -7123,10 +7127,10 @@ class Bi extends Oi {
|
|
|
7123
7127
|
};
|
|
7124
7128
|
}
|
|
7125
7129
|
}
|
|
7126
|
-
|
|
7127
|
-
q.UTCTime =
|
|
7130
|
+
kp = Bi;
|
|
7131
|
+
q.UTCTime = kp;
|
|
7128
7132
|
Bi.NAME = "UTCTime";
|
|
7129
|
-
var
|
|
7133
|
+
var xp;
|
|
7130
7134
|
class hs extends Bi {
|
|
7131
7135
|
constructor(e = {}) {
|
|
7132
7136
|
var t;
|
|
@@ -7247,53 +7251,53 @@ class hs extends Bi {
|
|
|
7247
7251
|
};
|
|
7248
7252
|
}
|
|
7249
7253
|
}
|
|
7250
|
-
|
|
7251
|
-
q.GeneralizedTime =
|
|
7254
|
+
xp = hs;
|
|
7255
|
+
q.GeneralizedTime = xp;
|
|
7252
7256
|
hs.NAME = "GeneralizedTime";
|
|
7253
|
-
var
|
|
7257
|
+
var Sp;
|
|
7254
7258
|
class Qa extends Tt {
|
|
7255
7259
|
constructor(e = {}) {
|
|
7256
7260
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 31;
|
|
7257
7261
|
}
|
|
7258
7262
|
}
|
|
7259
|
-
|
|
7260
|
-
q.DATE =
|
|
7263
|
+
Sp = Qa;
|
|
7264
|
+
q.DATE = Sp;
|
|
7261
7265
|
Qa.NAME = "DATE";
|
|
7262
|
-
var
|
|
7266
|
+
var Ap;
|
|
7263
7267
|
class ec extends Tt {
|
|
7264
7268
|
constructor(e = {}) {
|
|
7265
7269
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 32;
|
|
7266
7270
|
}
|
|
7267
7271
|
}
|
|
7268
|
-
|
|
7269
|
-
q.TimeOfDay =
|
|
7272
|
+
Ap = ec;
|
|
7273
|
+
q.TimeOfDay = Ap;
|
|
7270
7274
|
ec.NAME = "TimeOfDay";
|
|
7271
|
-
var
|
|
7275
|
+
var Ip;
|
|
7272
7276
|
class tc extends Tt {
|
|
7273
7277
|
constructor(e = {}) {
|
|
7274
7278
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 33;
|
|
7275
7279
|
}
|
|
7276
7280
|
}
|
|
7277
|
-
|
|
7278
|
-
q.DateTime =
|
|
7281
|
+
Ip = tc;
|
|
7282
|
+
q.DateTime = Ip;
|
|
7279
7283
|
tc.NAME = "DateTime";
|
|
7280
|
-
var
|
|
7284
|
+
var Ep;
|
|
7281
7285
|
class nc extends Tt {
|
|
7282
7286
|
constructor(e = {}) {
|
|
7283
7287
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 34;
|
|
7284
7288
|
}
|
|
7285
7289
|
}
|
|
7286
|
-
|
|
7287
|
-
q.Duration =
|
|
7290
|
+
Ep = nc;
|
|
7291
|
+
q.Duration = Ep;
|
|
7288
7292
|
nc.NAME = "Duration";
|
|
7289
|
-
var
|
|
7293
|
+
var $p;
|
|
7290
7294
|
class ic extends Tt {
|
|
7291
7295
|
constructor(e = {}) {
|
|
7292
7296
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 14;
|
|
7293
7297
|
}
|
|
7294
7298
|
}
|
|
7295
|
-
|
|
7296
|
-
q.TIME =
|
|
7299
|
+
$p = ic;
|
|
7300
|
+
q.TIME = $p;
|
|
7297
7301
|
ic.NAME = "TIME";
|
|
7298
7302
|
class cn {
|
|
7299
7303
|
constructor({ name: e = ze, optional: t = !1 } = {}) {
|
|
@@ -7539,7 +7543,7 @@ function Lg(n, e) {
|
|
|
7539
7543
|
result: t.result
|
|
7540
7544
|
} : Zt(t.result, t.result, e);
|
|
7541
7545
|
}
|
|
7542
|
-
const
|
|
7546
|
+
const Cp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7543
7547
|
__proto__: null,
|
|
7544
7548
|
Any: cn,
|
|
7545
7549
|
BaseBlock: Ne,
|
|
@@ -7697,7 +7701,7 @@ function nt(n) {
|
|
|
7697
7701
|
toASN: (e) => new n({ value: e })
|
|
7698
7702
|
};
|
|
7699
7703
|
}
|
|
7700
|
-
const
|
|
7704
|
+
const jp = nt(Tt), Hg = nt(rs), Kg = nt(ss), Wg = nt(os), Gg = nt(as), Jg = nt(cs), Zg = nt(ls), Yg = nt(us), Xg = nt(ds), Qg = nt(Oi), e_ = nt(ps), t_ = nt(fs), n_ = {
|
|
7701
7705
|
fromASN: (n) => n.toDate(),
|
|
7702
7706
|
toASN: (n) => new Bi({ valueDate: n })
|
|
7703
7707
|
}, i_ = {
|
|
@@ -7748,7 +7752,7 @@ function sc(n) {
|
|
|
7748
7752
|
case y.UniversalString:
|
|
7749
7753
|
return Kg;
|
|
7750
7754
|
case y.Utf8String:
|
|
7751
|
-
return
|
|
7755
|
+
return jp;
|
|
7752
7756
|
case y.VideotexString:
|
|
7753
7757
|
return Zg;
|
|
7754
7758
|
case y.VisibleString:
|
|
@@ -7760,11 +7764,11 @@ function sc(n) {
|
|
|
7760
7764
|
function At(n) {
|
|
7761
7765
|
return typeof n == "function" && n.prototype ? n.prototype.toASN && n.prototype.fromASN ? !0 : At(n.prototype) : !!(n && typeof n == "object" && "toASN" in n && "fromASN" in n);
|
|
7762
7766
|
}
|
|
7763
|
-
function
|
|
7767
|
+
function Np(n) {
|
|
7764
7768
|
var e;
|
|
7765
7769
|
if (n) {
|
|
7766
7770
|
const t = Object.getPrototypeOf(n);
|
|
7767
|
-
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 :
|
|
7771
|
+
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 : Np(t);
|
|
7768
7772
|
}
|
|
7769
7773
|
return !1;
|
|
7770
7774
|
}
|
|
@@ -7809,7 +7813,7 @@ class o_ {
|
|
|
7809
7813
|
const o = i.items[s], c = t ? s : "";
|
|
7810
7814
|
let l;
|
|
7811
7815
|
if (typeof o.type == "number") {
|
|
7812
|
-
const p = y[o.type], g =
|
|
7816
|
+
const p = y[o.type], g = Cp[p];
|
|
7813
7817
|
if (!g)
|
|
7814
7818
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
7815
7819
|
l = new g({ name: c });
|
|
@@ -7935,7 +7939,7 @@ class a_ {
|
|
|
7935
7939
|
if (!o.verified)
|
|
7936
7940
|
throw new Il(`Data does not match to ${t.name} ASN1 schema. ${o.result.error}`);
|
|
7937
7941
|
const c = new t();
|
|
7938
|
-
if (
|
|
7942
|
+
if (Np(t)) {
|
|
7939
7943
|
if (!("value" in e.valueBlock && Array.isArray(e.valueBlock.value)))
|
|
7940
7944
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
7941
7945
|
const l = r.itemType;
|
|
@@ -7976,7 +7980,7 @@ class a_ {
|
|
|
7976
7980
|
if (At(g))
|
|
7977
7981
|
h = new g().toSchema("");
|
|
7978
7982
|
else {
|
|
7979
|
-
const m = y[g], b =
|
|
7983
|
+
const m = y[g], b = Cp[m];
|
|
7980
7984
|
if (!b)
|
|
7981
7985
|
throw new Error(`Cannot get '${m}' class from asn1js module`);
|
|
7982
7986
|
h = new b();
|
|
@@ -8132,7 +8136,7 @@ function d(n, e, t, i) {
|
|
|
8132
8136
|
else for (var c = n.length - 1; c >= 0; c--) (o = n[c]) && (s = (r < 3 ? o(s) : r > 3 ? o(e, t, s) : o(e, t)) || s);
|
|
8133
8137
|
return r > 3 && s && Object.defineProperty(e, t, s), s;
|
|
8134
8138
|
}
|
|
8135
|
-
var
|
|
8139
|
+
var Op = { exports: {} };
|
|
8136
8140
|
(function(n) {
|
|
8137
8141
|
(function(e) {
|
|
8138
8142
|
const t = "(0?\\d+|0x[a-f0-9]+)", i = {
|
|
@@ -8625,8 +8629,8 @@ var Np = { exports: {} };
|
|
|
8625
8629
|
return b;
|
|
8626
8630
|
}, n.exports ? n.exports = x : e.ipaddr = x;
|
|
8627
8631
|
})(fr);
|
|
8628
|
-
})(
|
|
8629
|
-
var El =
|
|
8632
|
+
})(Op);
|
|
8633
|
+
var El = Op.exports;
|
|
8630
8634
|
class $l {
|
|
8631
8635
|
static decodeIP(e) {
|
|
8632
8636
|
if (e.length === 64 && parseInt(e, 16) === 0)
|
|
@@ -8834,7 +8838,7 @@ d([
|
|
|
8834
8838
|
converter: _e
|
|
8835
8839
|
})
|
|
8836
8840
|
], Yt.prototype, "authorityCertSerialNumber", void 0);
|
|
8837
|
-
const
|
|
8841
|
+
const Bp = `${qt}.19`;
|
|
8838
8842
|
class mr {
|
|
8839
8843
|
constructor(e = {}) {
|
|
8840
8844
|
this.cA = !1, Object.assign(this, e);
|
|
@@ -8865,7 +8869,7 @@ Bl = No = d([
|
|
|
8865
8869
|
T({ type: O.Sequence })
|
|
8866
8870
|
], Bl);
|
|
8867
8871
|
var Oo;
|
|
8868
|
-
const
|
|
8872
|
+
const Tp = `${qt}.32`;
|
|
8869
8873
|
let $t = class {
|
|
8870
8874
|
constructor(e = {}) {
|
|
8871
8875
|
Object.assign(this, e);
|
|
@@ -8977,7 +8981,7 @@ var at;
|
|
|
8977
8981
|
(function(n) {
|
|
8978
8982
|
n[n.unused = 1] = "unused", n[n.keyCompromise = 2] = "keyCompromise", n[n.cACompromise = 4] = "cACompromise", n[n.affiliationChanged = 8] = "affiliationChanged", n[n.superseded = 16] = "superseded", n[n.cessationOfOperation = 32] = "cessationOfOperation", n[n.certificateHold = 64] = "certificateHold", n[n.privilegeWithdrawn = 128] = "privilegeWithdrawn", n[n.aACompromise = 256] = "aACompromise";
|
|
8979
8983
|
})(at || (at = {}));
|
|
8980
|
-
class
|
|
8984
|
+
class Pp extends gs {
|
|
8981
8985
|
toJSON() {
|
|
8982
8986
|
const e = [], t = this.toNumber();
|
|
8983
8987
|
return t & at.aACompromise && e.push("aACompromise"), t & at.affiliationChanged && e.push("affiliationChanged"), t & at.cACompromise && e.push("cACompromise"), t & at.certificateHold && e.push("certificateHold"), t & at.cessationOfOperation && e.push("cessationOfOperation"), t & at.keyCompromise && e.push("keyCompromise"), t & at.privilegeWithdrawn && e.push("privilegeWithdrawn"), t & at.superseded && e.push("superseded"), t & at.unused && e.push("unused"), e;
|
|
@@ -9009,7 +9013,7 @@ d([
|
|
|
9009
9013
|
f({ type: ln, context: 0, optional: !0 })
|
|
9010
9014
|
], Kn.prototype, "distributionPoint", void 0);
|
|
9011
9015
|
d([
|
|
9012
|
-
f({ type:
|
|
9016
|
+
f({ type: Pp, context: 1, optional: !0, implicit: !0 })
|
|
9013
9017
|
], Kn.prototype, "reasons", void 0);
|
|
9014
9018
|
d([
|
|
9015
9019
|
f({ type: ee, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
@@ -9047,7 +9051,7 @@ d([
|
|
|
9047
9051
|
f({ type: y.Boolean, context: 2, defaultValue: Te.ONLY, implicit: !0 })
|
|
9048
9052
|
], Te.prototype, "onlyContainsCACerts", void 0);
|
|
9049
9053
|
d([
|
|
9050
|
-
f({ type:
|
|
9054
|
+
f({ type: Pp, context: 3, optional: !0, implicit: !0 })
|
|
9051
9055
|
], Te.prototype, "onlySomeReasons", void 0);
|
|
9052
9056
|
d([
|
|
9053
9057
|
f({ type: y.Boolean, context: 4, defaultValue: Te.ONLY, implicit: !0 })
|
|
@@ -9077,7 +9081,7 @@ Ro = d([
|
|
|
9077
9081
|
T({ type: O.Choice })
|
|
9078
9082
|
], Ro);
|
|
9079
9083
|
var Lo;
|
|
9080
|
-
const
|
|
9084
|
+
const Rp = `${qt}.37`;
|
|
9081
9085
|
let br = Lo = class extends ue {
|
|
9082
9086
|
constructor(e) {
|
|
9083
9087
|
super(e), Object.setPrototypeOf(this, Lo.prototype);
|
|
@@ -9118,7 +9122,7 @@ let Rl = Mo = class extends Le {
|
|
|
9118
9122
|
Rl = Mo = d([
|
|
9119
9123
|
T({ type: O.Sequence })
|
|
9120
9124
|
], Rl);
|
|
9121
|
-
const
|
|
9125
|
+
const Lp = `${qt}.15`;
|
|
9122
9126
|
var ct;
|
|
9123
9127
|
(function(n) {
|
|
9124
9128
|
n[n.digitalSignature = 1] = "digitalSignature", n[n.nonRepudiation = 2] = "nonRepudiation", n[n.keyEncipherment = 4] = "keyEncipherment", n[n.dataEncipherment = 8] = "dataEncipherment", n[n.keyAgreement = 16] = "keyAgreement", n[n.keyCertSign = 32] = "keyCertSign", n[n.cRLSign = 64] = "cRLSign", n[n.encipherOnly = 128] = "encipherOnly", n[n.decipherOnly = 256] = "decipherOnly";
|
|
@@ -9155,18 +9159,18 @@ let kr = zo = class extends ue {
|
|
|
9155
9159
|
kr = zo = d([
|
|
9156
9160
|
T({ type: O.Sequence, itemType: vs })
|
|
9157
9161
|
], kr);
|
|
9158
|
-
class
|
|
9162
|
+
class Up {
|
|
9159
9163
|
constructor(e = {}) {
|
|
9160
9164
|
Object.assign(this, e);
|
|
9161
9165
|
}
|
|
9162
9166
|
}
|
|
9163
9167
|
d([
|
|
9164
9168
|
f({ type: kr, context: 0, optional: !0, implicit: !0 })
|
|
9165
|
-
],
|
|
9169
|
+
], Up.prototype, "permittedSubtrees", void 0);
|
|
9166
9170
|
d([
|
|
9167
9171
|
f({ type: kr, context: 1, optional: !0, implicit: !0 })
|
|
9168
|
-
],
|
|
9169
|
-
class
|
|
9172
|
+
], Up.prototype, "excludedSubtrees", void 0);
|
|
9173
|
+
class Vp {
|
|
9170
9174
|
constructor(e = {}) {
|
|
9171
9175
|
Object.assign(this, e);
|
|
9172
9176
|
}
|
|
@@ -9179,7 +9183,7 @@ d([
|
|
|
9179
9183
|
optional: !0,
|
|
9180
9184
|
converter: _e
|
|
9181
9185
|
})
|
|
9182
|
-
],
|
|
9186
|
+
], Vp.prototype, "requireExplicitPolicy", void 0);
|
|
9183
9187
|
d([
|
|
9184
9188
|
f({
|
|
9185
9189
|
type: y.Integer,
|
|
@@ -9188,7 +9192,7 @@ d([
|
|
|
9188
9192
|
optional: !0,
|
|
9189
9193
|
converter: _e
|
|
9190
9194
|
})
|
|
9191
|
-
],
|
|
9195
|
+
], Vp.prototype, "inhibitPolicyMapping", void 0);
|
|
9192
9196
|
var Do;
|
|
9193
9197
|
class fc {
|
|
9194
9198
|
constructor(e = {}) {
|
|
@@ -9210,7 +9214,7 @@ Ll = Do = d([
|
|
|
9210
9214
|
T({ type: O.Sequence, itemType: fc })
|
|
9211
9215
|
], Ll);
|
|
9212
9216
|
var qo;
|
|
9213
|
-
const
|
|
9217
|
+
const Mp = `${qt}.17`;
|
|
9214
9218
|
let Fo = qo = class extends Le {
|
|
9215
9219
|
constructor(e) {
|
|
9216
9220
|
super(e), Object.setPrototypeOf(this, qo.prototype);
|
|
@@ -9239,25 +9243,25 @@ let Ul = Ho = class extends ue {
|
|
|
9239
9243
|
Ul = Ho = d([
|
|
9240
9244
|
T({ type: O.Sequence, itemType: Ct })
|
|
9241
9245
|
], Ul);
|
|
9242
|
-
const
|
|
9246
|
+
const zp = `${qt}.14`;
|
|
9243
9247
|
class Vt extends lc {
|
|
9244
9248
|
}
|
|
9245
|
-
class
|
|
9249
|
+
class Dp {
|
|
9246
9250
|
constructor(e = {}) {
|
|
9247
9251
|
Object.assign(this, e);
|
|
9248
9252
|
}
|
|
9249
9253
|
}
|
|
9250
9254
|
d([
|
|
9251
9255
|
f({ type: y.GeneralizedTime, context: 0, implicit: !0, optional: !0 })
|
|
9252
|
-
],
|
|
9256
|
+
], Dp.prototype, "notBefore", void 0);
|
|
9253
9257
|
d([
|
|
9254
9258
|
f({ type: y.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
9255
|
-
],
|
|
9259
|
+
], Dp.prototype, "notAfter", void 0);
|
|
9256
9260
|
var di;
|
|
9257
9261
|
(function(n) {
|
|
9258
9262
|
n[n.keyUpdateAllowed = 1] = "keyUpdateAllowed", n[n.newExtensions = 2] = "newExtensions", n[n.pKIXCertificate = 4] = "pKIXCertificate";
|
|
9259
9263
|
})(di || (di = {}));
|
|
9260
|
-
class
|
|
9264
|
+
class qp extends gs {
|
|
9261
9265
|
toJSON() {
|
|
9262
9266
|
const e = [], t = this.toNumber();
|
|
9263
9267
|
return t & di.pKIXCertificate && e.push("pKIXCertificate"), t & di.newExtensions && e.push("newExtensions"), t & di.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
|
|
@@ -9266,17 +9270,17 @@ class Dp extends gs {
|
|
|
9266
9270
|
return `[${this.toJSON().join(", ")}]`;
|
|
9267
9271
|
}
|
|
9268
9272
|
}
|
|
9269
|
-
class
|
|
9273
|
+
class Fp {
|
|
9270
9274
|
constructor(e = {}) {
|
|
9271
|
-
this.entrustVers = "", this.entrustInfoFlags = new
|
|
9275
|
+
this.entrustVers = "", this.entrustInfoFlags = new qp(), Object.assign(this, e);
|
|
9272
9276
|
}
|
|
9273
9277
|
}
|
|
9274
9278
|
d([
|
|
9275
9279
|
f({ type: y.GeneralString })
|
|
9276
|
-
],
|
|
9280
|
+
], Fp.prototype, "entrustVers", void 0);
|
|
9277
9281
|
d([
|
|
9278
|
-
f({ type:
|
|
9279
|
-
],
|
|
9282
|
+
f({ type: qp })
|
|
9283
|
+
], Fp.prototype, "entrustInfoFlags", void 0);
|
|
9280
9284
|
var Ko;
|
|
9281
9285
|
let Vl = Ko = class extends ue {
|
|
9282
9286
|
constructor(e) {
|
|
@@ -9291,7 +9295,7 @@ class D {
|
|
|
9291
9295
|
this.algorithm = "", Object.assign(this, e);
|
|
9292
9296
|
}
|
|
9293
9297
|
isEqual(e) {
|
|
9294
|
-
return e instanceof D && e.algorithm == this.algorithm && (e.parameters && this.parameters &&
|
|
9298
|
+
return e instanceof D && e.algorithm == this.algorithm && (e.parameters && this.parameters && jd(e.parameters, this.parameters) || e.parameters === this.parameters);
|
|
9295
9299
|
}
|
|
9296
9300
|
}
|
|
9297
9301
|
d([
|
|
@@ -9357,9 +9361,9 @@ d([
|
|
|
9357
9361
|
f({ type: je })
|
|
9358
9362
|
], Pi.prototype, "notAfter", void 0);
|
|
9359
9363
|
var Wo;
|
|
9360
|
-
let tt = class
|
|
9364
|
+
let tt = class Hp {
|
|
9361
9365
|
constructor(e = {}) {
|
|
9362
|
-
this.extnID = "", this.critical =
|
|
9366
|
+
this.extnID = "", this.critical = Hp.CRITICAL, this.extnValue = new se(), Object.assign(this, e);
|
|
9363
9367
|
}
|
|
9364
9368
|
};
|
|
9365
9369
|
tt.CRITICAL = !1;
|
|
@@ -9840,17 +9844,17 @@ d([
|
|
|
9840
9844
|
d([
|
|
9841
9845
|
f({ type: y.Utf8String })
|
|
9842
9846
|
], As.prototype, "string", void 0);
|
|
9843
|
-
class
|
|
9847
|
+
class Kp {
|
|
9844
9848
|
constructor(e = {}) {
|
|
9845
9849
|
this.values = [], Object.assign(this, e);
|
|
9846
9850
|
}
|
|
9847
9851
|
}
|
|
9848
9852
|
d([
|
|
9849
9853
|
f({ type: Le, implicit: !0, context: 0, optional: !0 })
|
|
9850
|
-
],
|
|
9854
|
+
], Kp.prototype, "policyAuthority", void 0);
|
|
9851
9855
|
d([
|
|
9852
9856
|
f({ type: As, repeated: "sequence" })
|
|
9853
|
-
],
|
|
9857
|
+
], Kp.prototype, "values", void 0);
|
|
9854
9858
|
var ea;
|
|
9855
9859
|
class Is {
|
|
9856
9860
|
constructor(e = {}) {
|
|
@@ -9900,17 +9904,17 @@ let ql = na = class extends ue {
|
|
|
9900
9904
|
ql = na = d([
|
|
9901
9905
|
T({ type: O.Sequence, itemType: ta })
|
|
9902
9906
|
], ql);
|
|
9903
|
-
class
|
|
9907
|
+
class Wp {
|
|
9904
9908
|
constructor(e = {}) {
|
|
9905
9909
|
Object.assign(this, e);
|
|
9906
9910
|
}
|
|
9907
9911
|
}
|
|
9908
9912
|
d([
|
|
9909
9913
|
f({ type: Le, implicit: !0, context: 0, optional: !0 })
|
|
9910
|
-
],
|
|
9914
|
+
], Wp.prototype, "roleAuthority", void 0);
|
|
9911
9915
|
d([
|
|
9912
9916
|
f({ type: ee, implicit: !0, context: 1 })
|
|
9913
|
-
],
|
|
9917
|
+
], Wp.prototype, "roleName", void 0);
|
|
9914
9918
|
class yc {
|
|
9915
9919
|
constructor(e = {}) {
|
|
9916
9920
|
this.service = new ee(), this.ident = new ee(), Object.assign(this, e);
|
|
@@ -10359,12 +10363,12 @@ d([
|
|
|
10359
10363
|
d([
|
|
10360
10364
|
f({ type: Ar })
|
|
10361
10365
|
], Yn.prototype, "signerInfos", void 0);
|
|
10362
|
-
const ki = "1.2.840.10045.2.1", Sc = "1.2.840.10045.4.1",
|
|
10366
|
+
const ki = "1.2.840.10045.2.1", Sc = "1.2.840.10045.4.1", Gp = "1.2.840.10045.4.3.1", Ac = "1.2.840.10045.4.3.2", Ic = "1.2.840.10045.4.3.3", Ec = "1.2.840.10045.4.3.4", Fl = "1.2.840.10045.3.1.7", Hl = "1.3.132.0.34", Kl = "1.3.132.0.35";
|
|
10363
10367
|
function qi(n) {
|
|
10364
10368
|
return new D({ algorithm: n });
|
|
10365
10369
|
}
|
|
10366
10370
|
const m_ = qi(Sc);
|
|
10367
|
-
qi(
|
|
10371
|
+
qi(Gp);
|
|
10368
10372
|
const y_ = qi(Ac), v_ = qi(Ic), w_ = qi(Ec);
|
|
10369
10373
|
let xi = class {
|
|
10370
10374
|
constructor(e = {}) {
|
|
@@ -10474,23 +10478,23 @@ d([
|
|
|
10474
10478
|
d([
|
|
10475
10479
|
f({ type: y.Integer, converter: _e })
|
|
10476
10480
|
], Tr.prototype, "s", void 0);
|
|
10477
|
-
const He = "1.2.840.113549.1.1", fn = `${He}.1`, k_ = `${He}.7`, x_ = `${He}.9`, pi = `${He}.10`, S_ = `${He}.2`, A_ = `${He}.4`, Pr = `${He}.5`, I_ = `${He}.14`, da = `${He}.11`, Rr = `${He}.12`, Lr = `${He}.13`,
|
|
10481
|
+
const He = "1.2.840.113549.1.1", fn = `${He}.1`, k_ = `${He}.7`, x_ = `${He}.9`, pi = `${He}.10`, S_ = `${He}.2`, A_ = `${He}.4`, Pr = `${He}.5`, I_ = `${He}.14`, da = `${He}.11`, Rr = `${He}.12`, Lr = `${He}.13`, Jp = `${He}.15`, Zp = `${He}.16`, Ur = "1.3.14.3.2.26", Yp = "2.16.840.1.101.3.4.2.4", Vr = "2.16.840.1.101.3.4.2.1", Mr = "2.16.840.1.101.3.4.2.2", zr = "2.16.840.1.101.3.4.2.3", E_ = "2.16.840.1.101.3.4.2.5", $_ = "2.16.840.1.101.3.4.2.6", C_ = "1.2.840.113549.2.2", j_ = "1.2.840.113549.2.5", Os = `${He}.8`;
|
|
10478
10482
|
function Ae(n) {
|
|
10479
10483
|
return new D({ algorithm: n, parameters: null });
|
|
10480
10484
|
}
|
|
10481
10485
|
Ae(C_);
|
|
10482
10486
|
Ae(j_);
|
|
10483
10487
|
const hn = Ae(Ur);
|
|
10484
|
-
Ae(
|
|
10488
|
+
Ae(Yp);
|
|
10485
10489
|
Ae(Vr);
|
|
10486
10490
|
Ae(Mr);
|
|
10487
10491
|
Ae(zr);
|
|
10488
10492
|
Ae(E_);
|
|
10489
10493
|
Ae($_);
|
|
10490
|
-
const
|
|
10494
|
+
const Xp = new D({
|
|
10491
10495
|
algorithm: Os,
|
|
10492
10496
|
parameters: U.serialize(hn)
|
|
10493
|
-
}),
|
|
10497
|
+
}), Qp = new D({
|
|
10494
10498
|
algorithm: x_,
|
|
10495
10499
|
parameters: U.serialize(_r.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
10496
10500
|
});
|
|
@@ -10498,28 +10502,28 @@ Ae(fn);
|
|
|
10498
10502
|
Ae(S_);
|
|
10499
10503
|
Ae(A_);
|
|
10500
10504
|
Ae(Pr);
|
|
10501
|
-
Ae(Gp);
|
|
10502
10505
|
Ae(Jp);
|
|
10506
|
+
Ae(Zp);
|
|
10503
10507
|
Ae(Rr);
|
|
10504
10508
|
Ae(Lr);
|
|
10505
|
-
Ae(Gp);
|
|
10506
10509
|
Ae(Jp);
|
|
10510
|
+
Ae(Zp);
|
|
10507
10511
|
class Bs {
|
|
10508
10512
|
constructor(e = {}) {
|
|
10509
10513
|
this.hashAlgorithm = new D(hn), this.maskGenAlgorithm = new D({
|
|
10510
10514
|
algorithm: Os,
|
|
10511
10515
|
parameters: U.serialize(hn)
|
|
10512
|
-
}), this.pSourceAlgorithm = new D(
|
|
10516
|
+
}), this.pSourceAlgorithm = new D(Qp), Object.assign(this, e);
|
|
10513
10517
|
}
|
|
10514
10518
|
}
|
|
10515
10519
|
d([
|
|
10516
10520
|
f({ type: D, context: 0, defaultValue: hn })
|
|
10517
10521
|
], Bs.prototype, "hashAlgorithm", void 0);
|
|
10518
10522
|
d([
|
|
10519
|
-
f({ type: D, context: 1, defaultValue:
|
|
10523
|
+
f({ type: D, context: 1, defaultValue: Xp })
|
|
10520
10524
|
], Bs.prototype, "maskGenAlgorithm", void 0);
|
|
10521
10525
|
d([
|
|
10522
|
-
f({ type: D, context: 2, defaultValue:
|
|
10526
|
+
f({ type: D, context: 2, defaultValue: Qp })
|
|
10523
10527
|
], Bs.prototype, "pSourceAlgorithm", void 0);
|
|
10524
10528
|
new D({
|
|
10525
10529
|
algorithm: k_,
|
|
@@ -10537,7 +10541,7 @@ d([
|
|
|
10537
10541
|
f({ type: D, context: 0, defaultValue: hn })
|
|
10538
10542
|
], gn.prototype, "hashAlgorithm", void 0);
|
|
10539
10543
|
d([
|
|
10540
|
-
f({ type: D, context: 1, defaultValue:
|
|
10544
|
+
f({ type: D, context: 1, defaultValue: Xp })
|
|
10541
10545
|
], gn.prototype, "maskGenAlgorithm", void 0);
|
|
10542
10546
|
d([
|
|
10543
10547
|
f({ type: y.Integer, context: 2, defaultValue: 20 })
|
|
@@ -10788,13 +10792,13 @@ function T_(n) {
|
|
|
10788
10792
|
e[+i] = t[i];
|
|
10789
10793
|
}), e;
|
|
10790
10794
|
}
|
|
10791
|
-
function
|
|
10795
|
+
function ef(n) {
|
|
10792
10796
|
return !!n.useClass;
|
|
10793
10797
|
}
|
|
10794
10798
|
function _a(n) {
|
|
10795
10799
|
return !!n.useFactory;
|
|
10796
10800
|
}
|
|
10797
|
-
var
|
|
10801
|
+
var tf = function() {
|
|
10798
10802
|
function n(e) {
|
|
10799
10803
|
this.wrap = e, this.reflectMethods = [
|
|
10800
10804
|
"get",
|
|
@@ -10838,7 +10842,7 @@ function Wl(n) {
|
|
|
10838
10842
|
return typeof n == "object" && "token" in n && "transform" in n;
|
|
10839
10843
|
}
|
|
10840
10844
|
function R_(n) {
|
|
10841
|
-
return typeof n == "function" || n instanceof
|
|
10845
|
+
return typeof n == "function" || n instanceof tf;
|
|
10842
10846
|
}
|
|
10843
10847
|
function ir(n) {
|
|
10844
10848
|
return !!n.useToken;
|
|
@@ -10847,7 +10851,7 @@ function rr(n) {
|
|
|
10847
10851
|
return n.useValue != null;
|
|
10848
10852
|
}
|
|
10849
10853
|
function L_(n) {
|
|
10850
|
-
return
|
|
10854
|
+
return ef(n) || rr(n) || ir(n) || _a(n);
|
|
10851
10855
|
}
|
|
10852
10856
|
var jc = function() {
|
|
10853
10857
|
function n() {
|
|
@@ -10924,7 +10928,7 @@ var q_ = function(n) {
|
|
|
10924
10928
|
this.preResolution = new q_(), this.postResolution = new F_();
|
|
10925
10929
|
}
|
|
10926
10930
|
return n;
|
|
10927
|
-
}(),
|
|
10931
|
+
}(), nf = /* @__PURE__ */ new Map(), K_ = function() {
|
|
10928
10932
|
function n(e) {
|
|
10929
10933
|
this.parent = e, this._registry = new U_(), this.interceptors = new H_(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
10930
10934
|
}
|
|
@@ -11027,7 +11031,7 @@ var q_ = function(n) {
|
|
|
11027
11031
|
if (this.ensureNotDisposed(), e.options.lifecycle === Me.ResolutionScoped && t.scopedResolutions.has(e))
|
|
11028
11032
|
return t.scopedResolutions.get(e);
|
|
11029
11033
|
var i = e.options.lifecycle === Me.Singleton, r = e.options.lifecycle === Me.ContainerScoped, s = i || r, o;
|
|
11030
|
-
return rr(e.provider) ? o = e.provider.useValue : ir(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) :
|
|
11034
|
+
return rr(e.provider) ? o = e.provider.useValue : ir(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : ef(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : _a(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, t), e.options.lifecycle === Me.ResolutionScoped && t.scopedResolutions.set(e, o), o;
|
|
11031
11035
|
}, n.prototype.resolveAll = function(e, t) {
|
|
11032
11036
|
var i = this;
|
|
11033
11037
|
t === void 0 && (t = new Gl()), this.ensureNotDisposed();
|
|
@@ -11125,12 +11129,12 @@ var q_ = function(n) {
|
|
|
11125
11129
|
return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null;
|
|
11126
11130
|
}, n.prototype.construct = function(e, t) {
|
|
11127
11131
|
var i = this;
|
|
11128
|
-
if (e instanceof
|
|
11132
|
+
if (e instanceof tf)
|
|
11129
11133
|
return e.createProxy(function(s) {
|
|
11130
11134
|
return i.resolve(s, t);
|
|
11131
11135
|
});
|
|
11132
11136
|
var r = function() {
|
|
11133
|
-
var s =
|
|
11137
|
+
var s = nf.get(e);
|
|
11134
11138
|
if (!s || s.length === 0) {
|
|
11135
11139
|
if (e.length === 0)
|
|
11136
11140
|
return new e();
|
|
@@ -11157,7 +11161,7 @@ var q_ = function(n) {
|
|
|
11157
11161
|
}(), Be = new K_();
|
|
11158
11162
|
function Rs() {
|
|
11159
11163
|
return function(n) {
|
|
11160
|
-
|
|
11164
|
+
nf.set(n, T_(n));
|
|
11161
11165
|
};
|
|
11162
11166
|
}
|
|
11163
11167
|
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
@@ -11191,46 +11195,46 @@ let Zl = ya = class extends ue {
|
|
|
11191
11195
|
Zl = ya = d([
|
|
11192
11196
|
T({ type: O.Sequence, itemType: Jn })
|
|
11193
11197
|
], Zl);
|
|
11194
|
-
class
|
|
11198
|
+
class rf {
|
|
11195
11199
|
constructor(e = {}) {
|
|
11196
11200
|
this.certId = "", this.certValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
11197
11201
|
}
|
|
11198
11202
|
}
|
|
11199
11203
|
d([
|
|
11200
11204
|
f({ type: y.ObjectIdentifier })
|
|
11201
|
-
],
|
|
11205
|
+
], rf.prototype, "certId", void 0);
|
|
11202
11206
|
d([
|
|
11203
11207
|
f({ type: y.Any, context: 0 })
|
|
11204
|
-
],
|
|
11205
|
-
class
|
|
11208
|
+
], rf.prototype, "certValue", void 0);
|
|
11209
|
+
class sf {
|
|
11206
11210
|
constructor(e = {}) {
|
|
11207
11211
|
this.crlId = "", this.crltValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
11208
11212
|
}
|
|
11209
11213
|
}
|
|
11210
11214
|
d([
|
|
11211
11215
|
f({ type: y.ObjectIdentifier })
|
|
11212
|
-
],
|
|
11216
|
+
], sf.prototype, "crlId", void 0);
|
|
11213
11217
|
d([
|
|
11214
11218
|
f({ type: y.Any, context: 0 })
|
|
11215
|
-
],
|
|
11216
|
-
class
|
|
11219
|
+
], sf.prototype, "crltValue", void 0);
|
|
11220
|
+
class of extends se {
|
|
11217
11221
|
}
|
|
11218
11222
|
let Us = class {
|
|
11219
11223
|
constructor(e = {}) {
|
|
11220
|
-
this.encryptionAlgorithm = new D(), this.encryptedData = new
|
|
11224
|
+
this.encryptionAlgorithm = new D(), this.encryptedData = new of(), Object.assign(this, e);
|
|
11221
11225
|
}
|
|
11222
11226
|
};
|
|
11223
11227
|
d([
|
|
11224
11228
|
f({ type: D })
|
|
11225
11229
|
], Us.prototype, "encryptionAlgorithm", void 0);
|
|
11226
11230
|
d([
|
|
11227
|
-
f({ type:
|
|
11231
|
+
f({ type: of })
|
|
11228
11232
|
], Us.prototype, "encryptedData", void 0);
|
|
11229
11233
|
var va, wa;
|
|
11230
11234
|
(function(n) {
|
|
11231
11235
|
n[n.v1 = 0] = "v1";
|
|
11232
11236
|
})(wa || (wa = {}));
|
|
11233
|
-
class
|
|
11237
|
+
class af extends se {
|
|
11234
11238
|
}
|
|
11235
11239
|
let ba = va = class extends ue {
|
|
11236
11240
|
constructor(e) {
|
|
@@ -11242,7 +11246,7 @@ ba = va = d([
|
|
|
11242
11246
|
], ba);
|
|
11243
11247
|
class Fi {
|
|
11244
11248
|
constructor(e = {}) {
|
|
11245
|
-
this.version = wa.v1, this.privateKeyAlgorithm = new D(), this.privateKey = new
|
|
11249
|
+
this.version = wa.v1, this.privateKeyAlgorithm = new D(), this.privateKey = new af(), Object.assign(this, e);
|
|
11246
11250
|
}
|
|
11247
11251
|
}
|
|
11248
11252
|
d([
|
|
@@ -11252,7 +11256,7 @@ d([
|
|
|
11252
11256
|
f({ type: D })
|
|
11253
11257
|
], Fi.prototype, "privateKeyAlgorithm", void 0);
|
|
11254
11258
|
d([
|
|
11255
|
-
f({ type:
|
|
11259
|
+
f({ type: af })
|
|
11256
11260
|
], Fi.prototype, "privateKey", void 0);
|
|
11257
11261
|
d([
|
|
11258
11262
|
f({ type: ba, implicit: !0, context: 0, optional: !0 })
|
|
@@ -11267,17 +11271,17 @@ let Xl = class extends Us {
|
|
|
11267
11271
|
Xl = d([
|
|
11268
11272
|
T({ type: O.Sequence })
|
|
11269
11273
|
], Xl);
|
|
11270
|
-
class
|
|
11274
|
+
class cf {
|
|
11271
11275
|
constructor(e = {}) {
|
|
11272
11276
|
this.secretTypeId = "", this.secretValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
11273
11277
|
}
|
|
11274
11278
|
}
|
|
11275
11279
|
d([
|
|
11276
11280
|
f({ type: y.ObjectIdentifier })
|
|
11277
|
-
],
|
|
11281
|
+
], cf.prototype, "secretTypeId", void 0);
|
|
11278
11282
|
d([
|
|
11279
11283
|
f({ type: y.Any, context: 0 })
|
|
11280
|
-
],
|
|
11284
|
+
], cf.prototype, "secretValue", void 0);
|
|
11281
11285
|
class Hi {
|
|
11282
11286
|
constructor(e = {}) {
|
|
11283
11287
|
this.mac = new Ts(), this.macSalt = new se(), this.iterations = 1, Object.assign(this, e);
|
|
@@ -11330,7 +11334,7 @@ Ql = ka = d([
|
|
|
11330
11334
|
T({ type: O.Sequence, itemType: Ms })
|
|
11331
11335
|
], Ql);
|
|
11332
11336
|
var xa, Sa, Aa;
|
|
11333
|
-
const
|
|
11337
|
+
const lf = "1.2.840.113549.1.9", uf = `${lf}.7`, Nc = `${lf}.14`;
|
|
11334
11338
|
let qr = class extends Oe {
|
|
11335
11339
|
constructor(e = {}) {
|
|
11336
11340
|
super(e);
|
|
@@ -11771,16 +11775,16 @@ Ai = sr = d([
|
|
|
11771
11775
|
Rs()
|
|
11772
11776
|
], Ai);
|
|
11773
11777
|
Be.registerSingleton(Ki, Ai);
|
|
11774
|
-
const
|
|
11778
|
+
const df = Symbol("name"), pf = Symbol("value");
|
|
11775
11779
|
class ce {
|
|
11776
11780
|
constructor(e, t = {}, i = "") {
|
|
11777
|
-
this[
|
|
11781
|
+
this[df] = e, this[pf] = i;
|
|
11778
11782
|
for (const r in t)
|
|
11779
11783
|
this[r] = t[r];
|
|
11780
11784
|
}
|
|
11781
11785
|
}
|
|
11782
|
-
ce.NAME =
|
|
11783
|
-
ce.VALUE =
|
|
11786
|
+
ce.NAME = df;
|
|
11787
|
+
ce.VALUE = pf;
|
|
11784
11788
|
class G_ {
|
|
11785
11789
|
static toTextObject(e) {
|
|
11786
11790
|
const t = new ce("Algorithm Identifier", {}, Ft.toString(e.algorithm));
|
|
@@ -11805,7 +11809,7 @@ class Ft {
|
|
|
11805
11809
|
}
|
|
11806
11810
|
Ft.items = {
|
|
11807
11811
|
[Ur]: "sha1",
|
|
11808
|
-
[
|
|
11812
|
+
[Yp]: "sha224",
|
|
11809
11813
|
[Vr]: "sha256",
|
|
11810
11814
|
[Mr]: "sha384",
|
|
11811
11815
|
[zr]: "sha512",
|
|
@@ -11817,7 +11821,7 @@ Ft.items = {
|
|
|
11817
11821
|
[Lr]: "sha512WithRSAEncryption",
|
|
11818
11822
|
[ki]: "ecPublicKey",
|
|
11819
11823
|
[Sc]: "ecdsaWithSHA1",
|
|
11820
|
-
[
|
|
11824
|
+
[Gp]: "ecdsaWithSHA224",
|
|
11821
11825
|
[Ac]: "ecdsaWithSHA256",
|
|
11822
11826
|
[Ic]: "ecdsaWithSHA384",
|
|
11823
11827
|
[Ec]: "ecdsaWithSHA512",
|
|
@@ -11895,7 +11899,7 @@ class Ht {
|
|
|
11895
11899
|
}
|
|
11896
11900
|
}
|
|
11897
11901
|
equal(e) {
|
|
11898
|
-
return e instanceof Ht ?
|
|
11902
|
+
return e instanceof Ht ? jd(e.rawData, this.rawData) : !1;
|
|
11899
11903
|
}
|
|
11900
11904
|
toString(e = "text") {
|
|
11901
11905
|
switch (e) {
|
|
@@ -11946,7 +11950,7 @@ class it extends Ht {
|
|
|
11946
11950
|
return e[ce.NAME] === it.NAME && (e[ce.NAME] = Ft.toString(this.type)), e;
|
|
11947
11951
|
}
|
|
11948
11952
|
}
|
|
11949
|
-
var
|
|
11953
|
+
var ff;
|
|
11950
11954
|
class Rt {
|
|
11951
11955
|
static isCryptoKeyPair(e) {
|
|
11952
11956
|
return e && e.privateKey && e.publicKey;
|
|
@@ -11955,7 +11959,7 @@ class Rt {
|
|
|
11955
11959
|
return e && e.usages && e.type && e.algorithm && e.extractable !== void 0;
|
|
11956
11960
|
}
|
|
11957
11961
|
constructor() {
|
|
11958
|
-
this.items = /* @__PURE__ */ new Map(), this[
|
|
11962
|
+
this.items = /* @__PURE__ */ new Map(), this[ff] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" ? this.set(Rt.DEFAULT, crypto) : typeof global < "u" && global.crypto && global.crypto.subtle && this.set(Rt.DEFAULT, global.crypto);
|
|
11959
11963
|
}
|
|
11960
11964
|
clear() {
|
|
11961
11965
|
this.items.clear();
|
|
@@ -12000,13 +12004,13 @@ class Rt {
|
|
|
12000
12004
|
return this;
|
|
12001
12005
|
}
|
|
12002
12006
|
}
|
|
12003
|
-
|
|
12007
|
+
ff = Symbol.toStringTag;
|
|
12004
12008
|
Rt.DEFAULT = "default";
|
|
12005
12009
|
const Ce = new Rt(), J_ = /^[0-2](?:\.[1-9][0-9]*)+$/;
|
|
12006
12010
|
function Z_(n) {
|
|
12007
12011
|
return new RegExp(J_).test(n);
|
|
12008
12012
|
}
|
|
12009
|
-
class
|
|
12013
|
+
class hf {
|
|
12010
12014
|
constructor(e = {}) {
|
|
12011
12015
|
this.items = {};
|
|
12012
12016
|
for (const t in e)
|
|
@@ -12022,7 +12026,7 @@ class ff {
|
|
|
12022
12026
|
this.items[e] = t, this.items[t] = e;
|
|
12023
12027
|
}
|
|
12024
12028
|
}
|
|
12025
|
-
const Fe = new
|
|
12029
|
+
const Fe = new hf();
|
|
12026
12030
|
Fe.register("CN", "2.5.4.3");
|
|
12027
12031
|
Fe.register("L", "2.5.4.7");
|
|
12028
12032
|
Fe.register("ST", "2.5.4.8");
|
|
@@ -12052,7 +12056,7 @@ class Qe {
|
|
|
12052
12056
|
return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e);
|
|
12053
12057
|
}
|
|
12054
12058
|
constructor(e, t = {}) {
|
|
12055
|
-
this.extraNames = new
|
|
12059
|
+
this.extraNames = new hf(), this.asn = new be();
|
|
12056
12060
|
for (const i in t)
|
|
12057
12061
|
if (Object.prototype.hasOwnProperty.call(t, i)) {
|
|
12058
12062
|
const r = t[i];
|
|
@@ -12166,7 +12170,7 @@ class Qe {
|
|
|
12166
12170
|
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (r = e[0] || r, i = e[1] || Ce.get()) : i = e[0] || Ce.get(), await i.subtle.digest(r, this.toArrayBuffer());
|
|
12167
12171
|
}
|
|
12168
12172
|
}
|
|
12169
|
-
const
|
|
12173
|
+
const gf = "Cannot initialize GeneralName from ASN.1 data.", zu = `${gf} Unsupported string format in use.`, Q_ = `${gf} Value doesn't match to GUID regular expression.`, Du = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, qu = "1.3.6.1.4.1.311.25.1", Fu = "1.3.6.1.4.1.311.20.2.3", to = "dns", no = "dn", io = "email", ro = "ip", so = "url", oo = "guid", ao = "upn", Xi = "id";
|
|
12170
12174
|
class Lt extends Ht {
|
|
12171
12175
|
constructor(...e) {
|
|
12172
12176
|
let t;
|
|
@@ -12206,7 +12210,7 @@ class Lt extends Ht {
|
|
|
12206
12210
|
t = new ee({
|
|
12207
12211
|
otherName: new yi({
|
|
12208
12212
|
typeId: Fu,
|
|
12209
|
-
value: U.serialize(
|
|
12213
|
+
value: U.serialize(jp.toASN(e[1]))
|
|
12210
12214
|
})
|
|
12211
12215
|
});
|
|
12212
12216
|
break;
|
|
@@ -12558,7 +12562,7 @@ class Oc extends it {
|
|
|
12558
12562
|
cA: e[0],
|
|
12559
12563
|
pathLenConstraint: e[1]
|
|
12560
12564
|
});
|
|
12561
|
-
super(
|
|
12565
|
+
super(Bp, e[2], U.serialize(t)), this.ca = e[0], this.pathLength = e[1];
|
|
12562
12566
|
}
|
|
12563
12567
|
}
|
|
12564
12568
|
toTextObject() {
|
|
@@ -12579,7 +12583,7 @@ class Bc extends it {
|
|
|
12579
12583
|
this.usages = t.map((i) => i);
|
|
12580
12584
|
} else {
|
|
12581
12585
|
const t = new br(e[0]);
|
|
12582
|
-
super(
|
|
12586
|
+
super(Rp, e[1], U.serialize(t)), this.usages = e[0];
|
|
12583
12587
|
}
|
|
12584
12588
|
}
|
|
12585
12589
|
toTextObject() {
|
|
@@ -12600,7 +12604,7 @@ class Tc extends it {
|
|
|
12600
12604
|
this.usages = t.toNumber();
|
|
12601
12605
|
} else {
|
|
12602
12606
|
const t = new eo(e[0]);
|
|
12603
|
-
super(
|
|
12607
|
+
super(Lp, e[1], U.serialize(t)), this.usages = e[0];
|
|
12604
12608
|
}
|
|
12605
12609
|
}
|
|
12606
12610
|
toTextObject() {
|
|
@@ -12621,7 +12625,7 @@ class Wi extends it {
|
|
|
12621
12625
|
this.keyId = W.ToHex(t);
|
|
12622
12626
|
} else {
|
|
12623
12627
|
const t = typeof e[0] == "string" ? W.FromHex(e[0]) : e[0], i = new Vt(t);
|
|
12624
|
-
super(
|
|
12628
|
+
super(zp, e[1], U.serialize(i)), this.keyId = W.ToHex(t);
|
|
12625
12629
|
}
|
|
12626
12630
|
}
|
|
12627
12631
|
toTextObject() {
|
|
@@ -12630,9 +12634,9 @@ class Wi extends it {
|
|
|
12630
12634
|
}
|
|
12631
12635
|
}
|
|
12632
12636
|
Wi.NAME = "Subject Key Identifier";
|
|
12633
|
-
class
|
|
12637
|
+
class _f extends it {
|
|
12634
12638
|
constructor(...e) {
|
|
12635
|
-
V.isBufferSource(e[0]) ? super(e[0]) : super(
|
|
12639
|
+
V.isBufferSource(e[0]) ? super(e[0]) : super(Mp, e[1], new Ii(e[0] || []).rawData);
|
|
12636
12640
|
}
|
|
12637
12641
|
onInit(e) {
|
|
12638
12642
|
super.onInit(e);
|
|
@@ -12646,7 +12650,7 @@ class gf extends it {
|
|
|
12646
12650
|
return e;
|
|
12647
12651
|
}
|
|
12648
12652
|
}
|
|
12649
|
-
|
|
12653
|
+
_f.NAME = "Subject Alternative Name";
|
|
12650
12654
|
class rt {
|
|
12651
12655
|
static register(e, t) {
|
|
12652
12656
|
this.items.set(e, t);
|
|
@@ -12657,7 +12661,7 @@ class rt {
|
|
|
12657
12661
|
}
|
|
12658
12662
|
}
|
|
12659
12663
|
rt.items = /* @__PURE__ */ new Map();
|
|
12660
|
-
class
|
|
12664
|
+
class mf extends it {
|
|
12661
12665
|
constructor(...e) {
|
|
12662
12666
|
var t;
|
|
12663
12667
|
if (V.isBufferSource(e[0])) {
|
|
@@ -12668,7 +12672,7 @@ class _f extends it {
|
|
|
12668
12672
|
const i = e[0], r = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new vr(i.map((o) => new ys({
|
|
12669
12673
|
policyIdentifier: o
|
|
12670
12674
|
})));
|
|
12671
|
-
super(
|
|
12675
|
+
super(Tp, r, U.serialize(s)), this.policies = i;
|
|
12672
12676
|
}
|
|
12673
12677
|
}
|
|
12674
12678
|
toTextObject() {
|
|
@@ -12676,9 +12680,9 @@ class _f extends it {
|
|
|
12676
12680
|
return e.Policy = this.policies.map((t) => new ce("", {}, Ft.toString(t))), e;
|
|
12677
12681
|
}
|
|
12678
12682
|
}
|
|
12679
|
-
|
|
12680
|
-
rt.register(
|
|
12681
|
-
class
|
|
12683
|
+
mf.NAME = "Certificate Policies";
|
|
12684
|
+
rt.register(Tp, mf);
|
|
12685
|
+
class yf extends it {
|
|
12682
12686
|
constructor(...e) {
|
|
12683
12687
|
var t;
|
|
12684
12688
|
if (V.isBufferSource(e[0]))
|
|
@@ -12710,8 +12714,8 @@ class mf extends it {
|
|
|
12710
12714
|
}), e;
|
|
12711
12715
|
}
|
|
12712
12716
|
}
|
|
12713
|
-
|
|
12714
|
-
class
|
|
12717
|
+
yf.NAME = "CRL Distribution Points";
|
|
12718
|
+
class vf extends it {
|
|
12715
12719
|
constructor(...e) {
|
|
12716
12720
|
var t, i, r, s;
|
|
12717
12721
|
if (V.isBufferSource(e[0]))
|
|
@@ -12748,7 +12752,7 @@ class yf extends it {
|
|
|
12748
12752
|
return this.ocsp.length && Qi(e, "OCSP", this.ocsp), this.caIssuers.length && Qi(e, "CA Issuers", this.caIssuers), this.timeStamping.length && Qi(e, "Time Stamping", this.timeStamping), this.caRepository.length && Qi(e, "CA Repository", this.caRepository), e;
|
|
12749
12753
|
}
|
|
12750
12754
|
}
|
|
12751
|
-
|
|
12755
|
+
vf.NAME = "Authority Info Access";
|
|
12752
12756
|
function Qi(n, e, t) {
|
|
12753
12757
|
if (t.length === 1)
|
|
12754
12758
|
n[e] = t[0].toTextObject();
|
|
@@ -12794,7 +12798,7 @@ class Qn extends Ht {
|
|
|
12794
12798
|
}
|
|
12795
12799
|
}
|
|
12796
12800
|
Qn.NAME = "Attribute";
|
|
12797
|
-
class
|
|
12801
|
+
class wf extends Qn {
|
|
12798
12802
|
constructor(...e) {
|
|
12799
12803
|
var t;
|
|
12800
12804
|
if (V.isBufferSource(e[0]))
|
|
@@ -12803,7 +12807,7 @@ class vf extends Qn {
|
|
|
12803
12807
|
const i = new Hr({
|
|
12804
12808
|
printableString: e[0]
|
|
12805
12809
|
});
|
|
12806
|
-
super(
|
|
12810
|
+
super(uf, [U.serialize(i)]);
|
|
12807
12811
|
}
|
|
12808
12812
|
(t = this.password) !== null && t !== void 0 || (this.password = "");
|
|
12809
12813
|
}
|
|
@@ -12818,7 +12822,7 @@ class vf extends Qn {
|
|
|
12818
12822
|
return e[ce.VALUE] = this.password, e;
|
|
12819
12823
|
}
|
|
12820
12824
|
}
|
|
12821
|
-
|
|
12825
|
+
wf.NAME = "Challenge Password";
|
|
12822
12826
|
class Pc extends Qn {
|
|
12823
12827
|
constructor(...e) {
|
|
12824
12828
|
var t;
|
|
@@ -13289,15 +13293,15 @@ var Ju;
|
|
|
13289
13293
|
(function(n) {
|
|
13290
13294
|
n[n.unspecified = 0] = "unspecified", n[n.keyCompromise = 1] = "keyCompromise", n[n.cACompromise = 2] = "cACompromise", n[n.affiliationChanged = 3] = "affiliationChanged", n[n.superseded = 4] = "superseded", n[n.cessationOfOperation = 5] = "cessationOfOperation", n[n.certificateHold = 6] = "certificateHold", n[n.removeFromCRL = 8] = "removeFromCRL", n[n.privilegeWithdrawn = 9] = "privilegeWithdrawn", n[n.aACompromise = 10] = "aACompromise";
|
|
13291
13295
|
})(Ju || (Ju = {}));
|
|
13292
|
-
rt.register(
|
|
13293
|
-
rt.register(
|
|
13294
|
-
rt.register(
|
|
13295
|
-
rt.register(
|
|
13296
|
+
rt.register(Bp, Oc);
|
|
13297
|
+
rt.register(Rp, Bc);
|
|
13298
|
+
rt.register(Lp, Tc);
|
|
13299
|
+
rt.register(zp, Wi);
|
|
13296
13300
|
rt.register(Co, $i);
|
|
13297
|
-
rt.register(
|
|
13298
|
-
rt.register(To,
|
|
13299
|
-
rt.register($o,
|
|
13300
|
-
zs.register(
|
|
13301
|
+
rt.register(Mp, _f);
|
|
13302
|
+
rt.register(To, yf);
|
|
13303
|
+
rt.register($o, vf);
|
|
13304
|
+
zs.register(uf, wf);
|
|
13301
13305
|
zs.register(Nc, Pc);
|
|
13302
13306
|
Be.registerSingleton(Gi, c0);
|
|
13303
13307
|
Be.registerSingleton(Gi, et);
|
|
@@ -13317,7 +13321,7 @@ function La(n) {
|
|
|
13317
13321
|
}
|
|
13318
13322
|
return t;
|
|
13319
13323
|
}
|
|
13320
|
-
class
|
|
13324
|
+
class bf {
|
|
13321
13325
|
constructor(e, t) {
|
|
13322
13326
|
ne(this, "alphabet");
|
|
13323
13327
|
ne(this, "padding");
|
|
@@ -13388,9 +13392,9 @@ class wf {
|
|
|
13388
13392
|
return Uint8Array.from(s);
|
|
13389
13393
|
}
|
|
13390
13394
|
}
|
|
13391
|
-
new
|
|
13392
|
-
new
|
|
13393
|
-
class
|
|
13395
|
+
new bf("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567");
|
|
13396
|
+
new bf("0123456789ABCDEFGHIJKLMNOPQRSTUV");
|
|
13397
|
+
class kf {
|
|
13394
13398
|
constructor(e, t) {
|
|
13395
13399
|
ne(this, "alphabet");
|
|
13396
13400
|
ne(this, "padding");
|
|
@@ -13442,7 +13446,7 @@ class bf {
|
|
|
13442
13446
|
return Uint8Array.from(s);
|
|
13443
13447
|
}
|
|
13444
13448
|
}
|
|
13445
|
-
const d0 = new
|
|
13449
|
+
const d0 = new kf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), tn = new kf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
|
|
13446
13450
|
class p0 {
|
|
13447
13451
|
constructor(e) {
|
|
13448
13452
|
ne(this, "hash");
|
|
@@ -13475,7 +13479,7 @@ class p0 {
|
|
|
13475
13479
|
};
|
|
13476
13480
|
}
|
|
13477
13481
|
}
|
|
13478
|
-
async function
|
|
13482
|
+
async function xf(n) {
|
|
13479
13483
|
return await crypto.subtle.digest("SHA-256", n);
|
|
13480
13484
|
}
|
|
13481
13485
|
async function Ua(n) {
|
|
@@ -13524,7 +13528,7 @@ function f0(n, e) {
|
|
|
13524
13528
|
}
|
|
13525
13529
|
async function h0(n) {
|
|
13526
13530
|
const e = await n.publicKey.export(), t = await crypto.subtle.exportKey("jwk", e), i = JSON.stringify(t, Object.keys(t).sort()), s = new TextEncoder().encode(i);
|
|
13527
|
-
return La(await
|
|
13531
|
+
return La(await xf(s));
|
|
13528
13532
|
}
|
|
13529
13533
|
const g0 = 1e3 * 60 * 60 * 24, _0 = new ge().openapi(
|
|
13530
13534
|
Z({
|
|
@@ -13688,7 +13692,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new ge().openapi(
|
|
|
13688
13692
|
}
|
|
13689
13693
|
}),
|
|
13690
13694
|
async (n) => {
|
|
13691
|
-
const { "tenant-id": e } = n.req.valid("header"), { email: t } = n.req.valid("query"), r = (await
|
|
13695
|
+
const { "tenant-id": e } = n.req.valid("header"), { email: t } = n.req.valid("query"), r = (await $d(n.env.data.users, e, t)).filter((s) => !s.linked_to);
|
|
13692
13696
|
return n.json(r);
|
|
13693
13697
|
}
|
|
13694
13698
|
), y0 = yn.extend({
|
|
@@ -14598,7 +14602,7 @@ const w0 = yn.extend({
|
|
|
14598
14602
|
}
|
|
14599
14603
|
);
|
|
14600
14604
|
let Yu = !1;
|
|
14601
|
-
function
|
|
14605
|
+
function Sf(n) {
|
|
14602
14606
|
n.use(async (e, t) => (Yu || (n.openAPIRegistry.registerComponent("securitySchemes", "Bearer", {
|
|
14603
14607
|
type: "oauth2",
|
|
14604
14608
|
scheme: "bearer",
|
|
@@ -14663,7 +14667,7 @@ function N0(n) {
|
|
|
14663
14667
|
raw: { header: e, payload: t, signature: i }
|
|
14664
14668
|
};
|
|
14665
14669
|
}
|
|
14666
|
-
function
|
|
14670
|
+
function Af(n) {
|
|
14667
14671
|
return async (e, t) => {
|
|
14668
14672
|
var r, s, o;
|
|
14669
14673
|
const i = n.openAPIRegistry.definitions.find(
|
|
@@ -14890,9 +14894,9 @@ const O0 = new ge().openapi(
|
|
|
14890
14894
|
);
|
|
14891
14895
|
function T0() {
|
|
14892
14896
|
const n = new ge();
|
|
14893
|
-
n.use(
|
|
14897
|
+
n.use(Af(n));
|
|
14894
14898
|
const e = n.route("/branding", Qh).route("/email/providers", O0).route("/users", _g).route("/keys", _0).route("/users-by-email", m0).route("/clients", v0).route("/tenants", b0).route("/logs", x0).route("/hooks", A0).route("/connections", E0).route("/prompts", $0).route("/sessions", B0);
|
|
14895
|
-
return
|
|
14899
|
+
return Sf(e), e.doc("/spec", {
|
|
14896
14900
|
openapi: "3.0.0",
|
|
14897
14901
|
info: {
|
|
14898
14902
|
version: "1.0.0",
|
|
@@ -14924,12 +14928,12 @@ var ed;
|
|
|
14924
14928
|
n[n.Required = 0] = "Required", n[n.Ignore = 1] = "Ignore";
|
|
14925
14929
|
})(ed || (ed = {}));
|
|
14926
14930
|
function V0(n) {
|
|
14927
|
-
return
|
|
14931
|
+
return Ef(n, M0, Ci.Include);
|
|
14928
14932
|
}
|
|
14929
|
-
function
|
|
14930
|
-
return
|
|
14933
|
+
function If(n) {
|
|
14934
|
+
return Ef(n, z0, Ci.None);
|
|
14931
14935
|
}
|
|
14932
|
-
function
|
|
14936
|
+
function Ef(n, e, t) {
|
|
14933
14937
|
let i = "";
|
|
14934
14938
|
for (let r = 0; r < n.byteLength; r += 3) {
|
|
14935
14939
|
let s = 0, o = 0;
|
|
@@ -15270,11 +15274,11 @@ class K0 {
|
|
|
15270
15274
|
}
|
|
15271
15275
|
function W0(n) {
|
|
15272
15276
|
const e = q0(new TextEncoder().encode(n));
|
|
15273
|
-
return
|
|
15277
|
+
return If(e);
|
|
15274
15278
|
}
|
|
15275
15279
|
function G0() {
|
|
15276
15280
|
const n = new Uint8Array(32);
|
|
15277
|
-
return crypto.getRandomValues(n),
|
|
15281
|
+
return crypto.getRandomValues(n), If(n);
|
|
15278
15282
|
}
|
|
15279
15283
|
function hi(n, e) {
|
|
15280
15284
|
const t = new TextEncoder().encode(e.toString()), i = new Request(n, {
|
|
@@ -15292,7 +15296,7 @@ async function Jr(n) {
|
|
|
15292
15296
|
try {
|
|
15293
15297
|
e = await fetch(n);
|
|
15294
15298
|
} catch (t) {
|
|
15295
|
-
throw new
|
|
15299
|
+
throw new Cf(t);
|
|
15296
15300
|
}
|
|
15297
15301
|
if (e.status === 400 || e.status === 401) {
|
|
15298
15302
|
let t;
|
|
@@ -15305,7 +15309,7 @@ async function Jr(n) {
|
|
|
15305
15309
|
throw new jn(e.status, t);
|
|
15306
15310
|
let i;
|
|
15307
15311
|
try {
|
|
15308
|
-
i =
|
|
15312
|
+
i = $f(t);
|
|
15309
15313
|
} catch {
|
|
15310
15314
|
throw new jn(e.status, t);
|
|
15311
15315
|
}
|
|
@@ -15329,7 +15333,7 @@ async function J0(n) {
|
|
|
15329
15333
|
try {
|
|
15330
15334
|
e = await fetch(n);
|
|
15331
15335
|
} catch (t) {
|
|
15332
|
-
throw new
|
|
15336
|
+
throw new Cf(t);
|
|
15333
15337
|
}
|
|
15334
15338
|
if (e.status === 400 || e.status === 401) {
|
|
15335
15339
|
let t;
|
|
@@ -15342,7 +15346,7 @@ async function J0(n) {
|
|
|
15342
15346
|
throw new jn(e.status, t);
|
|
15343
15347
|
let i;
|
|
15344
15348
|
try {
|
|
15345
|
-
i =
|
|
15349
|
+
i = $f(t);
|
|
15346
15350
|
} catch {
|
|
15347
15351
|
throw new jn(e.status, t);
|
|
15348
15352
|
}
|
|
@@ -15354,7 +15358,7 @@ async function J0(n) {
|
|
|
15354
15358
|
}
|
|
15355
15359
|
throw e.body !== null && await e.body.cancel(), new ar(e.status);
|
|
15356
15360
|
}
|
|
15357
|
-
function
|
|
15361
|
+
function $f(n) {
|
|
15358
15362
|
let e;
|
|
15359
15363
|
if ("error" in n && typeof n.error == "string")
|
|
15360
15364
|
e = n.error;
|
|
@@ -15378,7 +15382,7 @@ function Ef(n) {
|
|
|
15378
15382
|
}
|
|
15379
15383
|
return new Z0(e, t, i, r);
|
|
15380
15384
|
}
|
|
15381
|
-
class
|
|
15385
|
+
class Cf extends Error {
|
|
15382
15386
|
constructor(e) {
|
|
15383
15387
|
super("Failed to send request", {
|
|
15384
15388
|
cause: e
|
|
@@ -15504,7 +15508,7 @@ function em(n, e) {
|
|
|
15504
15508
|
return new TextEncoder().encode(r);
|
|
15505
15509
|
}
|
|
15506
15510
|
const tm = "https://appleid.apple.com/auth/authorize", nm = "https://appleid.apple.com/auth/token";
|
|
15507
|
-
class
|
|
15511
|
+
class jf {
|
|
15508
15512
|
constructor(e, t, i, r, s) {
|
|
15509
15513
|
ne(this, "clientId");
|
|
15510
15514
|
ne(this, "teamId");
|
|
@@ -15547,7 +15551,7 @@ class Cf {
|
|
|
15547
15551
|
}
|
|
15548
15552
|
}
|
|
15549
15553
|
const im = "https://www.facebook.com/v16.0/dialog/oauth", rm = "https://graph.facebook.com/v16.0/oauth/access_token";
|
|
15550
|
-
class
|
|
15554
|
+
class Nf {
|
|
15551
15555
|
constructor(e, t, i) {
|
|
15552
15556
|
ne(this, "clientId");
|
|
15553
15557
|
ne(this, "clientSecret");
|
|
@@ -15566,7 +15570,7 @@ class jf {
|
|
|
15566
15570
|
}
|
|
15567
15571
|
}
|
|
15568
15572
|
const sm = "https://accounts.google.com/o/oauth2/v2/auth", od = "https://oauth2.googleapis.com/token", om = "https://oauth2.googleapis.com/revoke";
|
|
15569
|
-
class
|
|
15573
|
+
class Of {
|
|
15570
15574
|
constructor(e, t, i) {
|
|
15571
15575
|
ne(this, "client");
|
|
15572
15576
|
this.client = new Uc(e, t, i);
|
|
@@ -15769,7 +15773,7 @@ function wt(n) {
|
|
|
15769
15773
|
function $e(n) {
|
|
15770
15774
|
return n.OAUTH_API_URL || n.ISSUER;
|
|
15771
15775
|
}
|
|
15772
|
-
function
|
|
15776
|
+
function Bf(n) {
|
|
15773
15777
|
const { options: e } = n;
|
|
15774
15778
|
if (!e || !e.client_id || !e.team_id || !e.kid || !e.app_secret)
|
|
15775
15779
|
throw new Error("Missing required Apple authentication parameters");
|
|
@@ -15778,7 +15782,7 @@ function Of(n) {
|
|
|
15778
15782
|
}
|
|
15779
15783
|
async function pm(n, e) {
|
|
15780
15784
|
var l, u;
|
|
15781
|
-
const { options: t, keyArray: i } =
|
|
15785
|
+
const { options: t, keyArray: i } = Bf(e), r = new jf(
|
|
15782
15786
|
t.client_id,
|
|
15783
15787
|
t.team_id,
|
|
15784
15788
|
t.kid,
|
|
@@ -15794,7 +15798,7 @@ async function pm(n, e) {
|
|
|
15794
15798
|
};
|
|
15795
15799
|
}
|
|
15796
15800
|
async function fm(n, e, t) {
|
|
15797
|
-
const { options: i, keyArray: r } =
|
|
15801
|
+
const { options: i, keyArray: r } = Bf(e), o = await new jf(
|
|
15798
15802
|
i.client_id,
|
|
15799
15803
|
i.team_id,
|
|
15800
15804
|
i.kid,
|
|
@@ -15824,7 +15828,7 @@ async function gm(n, e) {
|
|
|
15824
15828
|
const { options: t } = e;
|
|
15825
15829
|
if (!(t != null && t.client_id) || !t.client_secret)
|
|
15826
15830
|
throw new Error("Missing required authentication parameters");
|
|
15827
|
-
const i = new
|
|
15831
|
+
const i = new Nf(
|
|
15828
15832
|
t.client_id,
|
|
15829
15833
|
t.client_secret,
|
|
15830
15834
|
`${$e(n.env)}callback`
|
|
@@ -15841,7 +15845,7 @@ async function _m(n, e, t) {
|
|
|
15841
15845
|
const { options: i } = e;
|
|
15842
15846
|
if (!(i != null && i.client_id) || !i.client_secret)
|
|
15843
15847
|
throw new Error("Missing required authentication parameters");
|
|
15844
|
-
const s = await new
|
|
15848
|
+
const s = await new Nf(
|
|
15845
15849
|
i.client_id,
|
|
15846
15850
|
i.client_secret,
|
|
15847
15851
|
`${$e(n.env)}callback`
|
|
@@ -15872,7 +15876,7 @@ async function ym(n, e) {
|
|
|
15872
15876
|
const { options: t } = e;
|
|
15873
15877
|
if (!(t != null && t.client_id) || !t.client_secret)
|
|
15874
15878
|
throw new Error("Missing required Google authentication parameters");
|
|
15875
|
-
const i = new
|
|
15879
|
+
const i = new Of(
|
|
15876
15880
|
t.client_id,
|
|
15877
15881
|
t.client_secret,
|
|
15878
15882
|
`${$e(n.env)}callback`
|
|
@@ -15891,7 +15895,7 @@ async function vm(n, e, t, i) {
|
|
|
15891
15895
|
const { options: r } = e;
|
|
15892
15896
|
if (!(r != null && r.client_id) || !r.client_secret || !i)
|
|
15893
15897
|
throw new Error("Missing required authentication parameters");
|
|
15894
|
-
const o = await new
|
|
15898
|
+
const o = await new Of(
|
|
15895
15899
|
r.client_id,
|
|
15896
15900
|
r.client_secret,
|
|
15897
15901
|
`${$e(n.env)}callback`
|
|
@@ -15978,7 +15982,7 @@ const xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15978
15982
|
getRedirect: bm,
|
|
15979
15983
|
validateAuthorizationCodeAndGetUser: km
|
|
15980
15984
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15981
|
-
function
|
|
15985
|
+
function Tf(n, e) {
|
|
15982
15986
|
const t = n.env.STRATEGIES || {}, r = {
|
|
15983
15987
|
apple: hm,
|
|
15984
15988
|
facebook: mm,
|
|
@@ -16082,12 +16086,12 @@ function Am(n) {
|
|
|
16082
16086
|
async function Im(n, e) {
|
|
16083
16087
|
if (e === "plain")
|
|
16084
16088
|
return n;
|
|
16085
|
-
const t = new TextEncoder().encode(n), i = await
|
|
16089
|
+
const t = new TextEncoder().encode(n), i = await xf(t);
|
|
16086
16090
|
return tn.encode(new Uint8Array(i), {
|
|
16087
16091
|
includePadding: !1
|
|
16088
16092
|
});
|
|
16089
16093
|
}
|
|
16090
|
-
function
|
|
16094
|
+
function Pf(n, e, t) {
|
|
16091
16095
|
const i = [];
|
|
16092
16096
|
return i.push([encodeURIComponent(n), encodeURIComponent(e)]), (t == null ? void 0 : t.domain) !== void 0 && i.push(["Domain", t.domain]), (t == null ? void 0 : t.expires) !== void 0 && i.push(["Expires", t.expires.toUTCString()]), t != null && t.httpOnly && i.push(["HttpOnly"]), (t == null ? void 0 : t.maxAge) !== void 0 && i.push(["Max-Age", t.maxAge.toString()]), (t == null ? void 0 : t.path) !== void 0 && i.push(["Path", t.path]), (t == null ? void 0 : t.sameSite) === "lax" && i.push(["SameSite", "Lax"]), (t == null ? void 0 : t.sameSite) === "none" && i.push(["SameSite", "None"]), (t == null ? void 0 : t.sameSite) === "strict" && i.push(["SameSite", "Strict"]), t != null && t.secure && i.push(["Secure"]), i.map((r) => r.join("=")).join("; ");
|
|
16093
16097
|
}
|
|
@@ -16102,7 +16106,7 @@ function Em(n) {
|
|
|
16102
16106
|
function Dc(n) {
|
|
16103
16107
|
return `${n}-${R0}`;
|
|
16104
16108
|
}
|
|
16105
|
-
function
|
|
16109
|
+
function Rf(n, e) {
|
|
16106
16110
|
return e ? Em(e).get(Dc(n)) : void 0;
|
|
16107
16111
|
}
|
|
16108
16112
|
function $m(n) {
|
|
@@ -16112,19 +16116,19 @@ function $m(n) {
|
|
|
16112
16116
|
secure: !0,
|
|
16113
16117
|
maxAge: 0
|
|
16114
16118
|
};
|
|
16115
|
-
return
|
|
16119
|
+
return Pf(Dc(n), "", {
|
|
16116
16120
|
...e,
|
|
16117
16121
|
sameSite: "none"
|
|
16118
16122
|
});
|
|
16119
16123
|
}
|
|
16120
|
-
function
|
|
16124
|
+
function Lf(n, e) {
|
|
16121
16125
|
const t = {
|
|
16122
16126
|
path: "/",
|
|
16123
16127
|
httpOnly: !0,
|
|
16124
16128
|
secure: !0,
|
|
16125
16129
|
maxAge: Lc
|
|
16126
16130
|
};
|
|
16127
|
-
return
|
|
16131
|
+
return Pf(Dc(n), e, {
|
|
16128
16132
|
...t,
|
|
16129
16133
|
sameSite: "none"
|
|
16130
16134
|
});
|
|
@@ -16392,7 +16396,7 @@ function ri(n) {
|
|
|
16392
16396
|
return n.startIndex + n[1].length;
|
|
16393
16397
|
}
|
|
16394
16398
|
var Hc = {};
|
|
16395
|
-
const
|
|
16399
|
+
const Uf = {
|
|
16396
16400
|
preserveOrder: !1,
|
|
16397
16401
|
attributeNamePrefix: "@_",
|
|
16398
16402
|
attributesGroupName: !1,
|
|
@@ -16436,10 +16440,10 @@ const Lf = {
|
|
|
16436
16440
|
}
|
|
16437
16441
|
// skipEmptyListItem: false
|
|
16438
16442
|
}, Um = function(n) {
|
|
16439
|
-
return Object.assign({},
|
|
16443
|
+
return Object.assign({}, Uf, n);
|
|
16440
16444
|
};
|
|
16441
16445
|
Hc.buildOptions = Um;
|
|
16442
|
-
Hc.defaultOptions =
|
|
16446
|
+
Hc.defaultOptions = Uf;
|
|
16443
16447
|
class Vm {
|
|
16444
16448
|
constructor(e) {
|
|
16445
16449
|
this.tagname = e, this.child = [], this[":@"] = {};
|
|
@@ -16558,8 +16562,8 @@ function iy(n) {
|
|
|
16558
16562
|
return !0;
|
|
16559
16563
|
} : () => !1;
|
|
16560
16564
|
}
|
|
16561
|
-
var
|
|
16562
|
-
const
|
|
16565
|
+
var Vf = iy;
|
|
16566
|
+
const Mf = Fs, si = Mm, ry = Zm, sy = ny, oy = Vf;
|
|
16563
16567
|
let ay = class {
|
|
16564
16568
|
constructor(e) {
|
|
16565
16569
|
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
@@ -16615,7 +16619,7 @@ function uy(n) {
|
|
|
16615
16619
|
const dy = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
16616
16620
|
function py(n, e, t) {
|
|
16617
16621
|
if (this.options.ignoreAttributes !== !0 && typeof n == "string") {
|
|
16618
|
-
const i =
|
|
16622
|
+
const i = Mf.getAllMatches(n, dy), r = i.length, s = {};
|
|
16619
16623
|
for (let o = 0; o < r; o++) {
|
|
16620
16624
|
const c = this.resolveNameSpace(i[o][1]);
|
|
16621
16625
|
if (this.ignoreAttributesFn(c, e))
|
|
@@ -16839,13 +16843,13 @@ function Ma(n, e, t) {
|
|
|
16839
16843
|
const i = n.trim();
|
|
16840
16844
|
return i === "true" ? !0 : i === "false" ? !1 : sy(n, t);
|
|
16841
16845
|
} else
|
|
16842
|
-
return
|
|
16846
|
+
return Mf.isExist(n) ? n : "";
|
|
16843
16847
|
}
|
|
16844
|
-
var wy = ay,
|
|
16848
|
+
var wy = ay, zf = {};
|
|
16845
16849
|
function by(n, e) {
|
|
16846
|
-
return
|
|
16850
|
+
return Df(n, e);
|
|
16847
16851
|
}
|
|
16848
|
-
function
|
|
16852
|
+
function Df(n, e, t) {
|
|
16849
16853
|
let i;
|
|
16850
16854
|
const r = {};
|
|
16851
16855
|
for (let s = 0; s < n.length; s++) {
|
|
@@ -16857,7 +16861,7 @@ function zf(n, e, t) {
|
|
|
16857
16861
|
if (c === void 0)
|
|
16858
16862
|
continue;
|
|
16859
16863
|
if (o[c]) {
|
|
16860
|
-
let u =
|
|
16864
|
+
let u = Df(o[c], e, l);
|
|
16861
16865
|
const p = Sy(u, e);
|
|
16862
16866
|
o[":@"] ? xy(u, o[":@"], l, e) : Object.keys(u).length === 1 && u[e.textNodeName] !== void 0 && !e.alwaysCreateTextNode ? u = u[e.textNodeName] : Object.keys(u).length === 0 && (e.alwaysCreateTextNode ? u[e.textNodeName] = "" : u = ""), r[c] !== void 0 && r.hasOwnProperty(c) ? (Array.isArray(r[c]) || (r[c] = [r[c]]), r[c].push(u)) : e.isArray(c, l, p) ? r[c] = [u] : r[c] = u;
|
|
16863
16867
|
}
|
|
@@ -16885,8 +16889,8 @@ function Sy(n, e) {
|
|
|
16885
16889
|
const { textNodeName: t } = e, i = Object.keys(n).length;
|
|
16886
16890
|
return !!(i === 0 || i === 1 && (n[t] || typeof n[t] == "boolean" || n[t] === 0));
|
|
16887
16891
|
}
|
|
16888
|
-
|
|
16889
|
-
const { buildOptions: Ay } = Hc, Iy = wy, { prettify: Ey } =
|
|
16892
|
+
zf.prettify = by;
|
|
16893
|
+
const { buildOptions: Ay } = Hc, Iy = wy, { prettify: Ey } = zf, $y = qc;
|
|
16890
16894
|
let Cy = class {
|
|
16891
16895
|
constructor(e) {
|
|
16892
16896
|
this.externalEntities = {}, this.options = Ay(e);
|
|
@@ -16932,9 +16936,9 @@ const Ny = `
|
|
|
16932
16936
|
`;
|
|
16933
16937
|
function Oy(n, e) {
|
|
16934
16938
|
let t = "";
|
|
16935
|
-
return e.format && e.indentBy.length > 0 && (t = Ny),
|
|
16939
|
+
return e.format && e.indentBy.length > 0 && (t = Ny), qf(n, e, "", t);
|
|
16936
16940
|
}
|
|
16937
|
-
function
|
|
16941
|
+
function qf(n, e, t, i) {
|
|
16938
16942
|
let r = "", s = !1;
|
|
16939
16943
|
for (let o = 0; o < n.length; o++) {
|
|
16940
16944
|
const c = n[o], l = By(c);
|
|
@@ -16942,7 +16946,7 @@ function Df(n, e, t, i) {
|
|
|
16942
16946
|
let u = "";
|
|
16943
16947
|
if (t.length === 0 ? u = l : u = `${t}.${l}`, l === e.textNodeName) {
|
|
16944
16948
|
let h = c[l];
|
|
16945
|
-
Ty(u, e) || (h = e.tagValueProcessor(l, h), h =
|
|
16949
|
+
Ty(u, e) || (h = e.tagValueProcessor(l, h), h = Ff(h, e)), s && (r += i), r += h, s = !1;
|
|
16946
16950
|
continue;
|
|
16947
16951
|
} else if (l === e.cdataPropName) {
|
|
16948
16952
|
s && (r += i), r += `<![CDATA[${c[l][0][e.textNodeName]}]]>`, s = !1;
|
|
@@ -16958,7 +16962,7 @@ function Df(n, e, t, i) {
|
|
|
16958
16962
|
}
|
|
16959
16963
|
let p = i;
|
|
16960
16964
|
p !== "" && (p += e.indentBy);
|
|
16961
|
-
const g = pd(c[":@"], e), _ = i + `<${l}${g}`, x =
|
|
16965
|
+
const g = pd(c[":@"], e), _ = i + `<${l}${g}`, x = qf(c[l], e, u, p);
|
|
16962
16966
|
e.unpairedTags.indexOf(l) !== -1 ? e.suppressUnpairedNode ? r += _ + ">" : r += _ + "/>" : (!x || x.length === 0) && e.suppressEmptyNode ? r += _ + "/>" : x && x.endsWith(">") ? r += _ + `>${x}${i}</${l}>` : (r += _ + ">", x && i !== "" && (x.includes("/>") || x.includes("</")) ? r += i + e.indentBy + x + i : r += x, r += `</${l}>`), s = !0;
|
|
16963
16967
|
}
|
|
16964
16968
|
return r;
|
|
@@ -16977,7 +16981,7 @@ function pd(n, e) {
|
|
|
16977
16981
|
for (let i in n) {
|
|
16978
16982
|
if (!n.hasOwnProperty(i)) continue;
|
|
16979
16983
|
let r = e.attributeValueProcessor(i, n[i]);
|
|
16980
|
-
r =
|
|
16984
|
+
r = Ff(r, e), r === !0 && e.suppressBooleanAttributes ? t += ` ${i.substr(e.attributeNamePrefix.length)}` : t += ` ${i.substr(e.attributeNamePrefix.length)}="${r}"`;
|
|
16981
16985
|
}
|
|
16982
16986
|
return t;
|
|
16983
16987
|
}
|
|
@@ -16988,7 +16992,7 @@ function Ty(n, e) {
|
|
|
16988
16992
|
if (e.stopNodes[i] === n || e.stopNodes[i] === "*." + t) return !0;
|
|
16989
16993
|
return !1;
|
|
16990
16994
|
}
|
|
16991
|
-
function
|
|
16995
|
+
function Ff(n, e) {
|
|
16992
16996
|
if (n && n.length > 0 && e.processEntities)
|
|
16993
16997
|
for (let t = 0; t < e.entities.length; t++) {
|
|
16994
16998
|
const i = e.entities[t];
|
|
@@ -16997,7 +17001,7 @@ function qf(n, e) {
|
|
|
16997
17001
|
return n;
|
|
16998
17002
|
}
|
|
16999
17003
|
var Py = Oy;
|
|
17000
|
-
const Ry = Py, Ly =
|
|
17004
|
+
const Ry = Py, Ly = Vf, Uy = {
|
|
17001
17005
|
attributeNamePrefix: "@_",
|
|
17002
17006
|
attributesGroupName: !1,
|
|
17003
17007
|
textNodeName: "#text",
|
|
@@ -17576,22 +17580,35 @@ async function Zy(n, e) {
|
|
|
17576
17580
|
return await n.env.data.refreshTokens.create(
|
|
17577
17581
|
t.tenant.id,
|
|
17578
17582
|
{
|
|
17579
|
-
|
|
17583
|
+
id: qe(),
|
|
17580
17584
|
session_id: s,
|
|
17585
|
+
client_id: t.id,
|
|
17581
17586
|
expires_at: new Date(
|
|
17582
17587
|
Date.now() + Lc * 1e3
|
|
17583
17588
|
).toISOString(),
|
|
17584
|
-
|
|
17585
|
-
|
|
17586
|
-
|
|
17589
|
+
user_id: e.user.user_id,
|
|
17590
|
+
device: {
|
|
17591
|
+
last_ip: "",
|
|
17592
|
+
initial_ip: "",
|
|
17593
|
+
last_user_agent: "",
|
|
17594
|
+
initial_user_agent: "",
|
|
17595
|
+
initial_asn: "",
|
|
17596
|
+
last_asn: ""
|
|
17597
|
+
},
|
|
17598
|
+
resource_servers: [
|
|
17599
|
+
{
|
|
17600
|
+
audience: r,
|
|
17601
|
+
scopes: i
|
|
17602
|
+
}
|
|
17603
|
+
],
|
|
17604
|
+
rotating: !1
|
|
17587
17605
|
}
|
|
17588
17606
|
);
|
|
17589
17607
|
}
|
|
17590
|
-
async function
|
|
17608
|
+
async function Hf(n, e) {
|
|
17591
17609
|
const { user: t, client: i, scope: r, audience: s } = e, o = await n.env.data.sessions.create(i.tenant.id, {
|
|
17592
17610
|
id: qe(),
|
|
17593
17611
|
user_id: t.user_id,
|
|
17594
|
-
client_id: i.id,
|
|
17595
17612
|
expires_at: new Date(Date.now() + Lc * 1e3).toISOString(),
|
|
17596
17613
|
used_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
17597
17614
|
device: {
|
|
@@ -17629,13 +17646,13 @@ async function ei(n, e) {
|
|
|
17629
17646
|
);
|
|
17630
17647
|
let o = e.refreshToken, c = e.sessionId;
|
|
17631
17648
|
if (!c) {
|
|
17632
|
-
const _ = await
|
|
17649
|
+
const _ = await Hf(n, {
|
|
17633
17650
|
user: i,
|
|
17634
17651
|
client: r,
|
|
17635
17652
|
scope: t.scope,
|
|
17636
17653
|
audience: t.audience
|
|
17637
17654
|
});
|
|
17638
|
-
c = _.id, o = (g = _.refresh_token) == null ? void 0 : g.
|
|
17655
|
+
c = _.id, o = (g = _.refresh_token) == null ? void 0 : g.id;
|
|
17639
17656
|
}
|
|
17640
17657
|
if (e.authParams.response_mode === rn.SAML_POST)
|
|
17641
17658
|
return Gy(
|
|
@@ -17652,7 +17669,7 @@ async function ei(n, e) {
|
|
|
17652
17669
|
session_id: c,
|
|
17653
17670
|
refresh_token: o
|
|
17654
17671
|
}), u = new Headers({
|
|
17655
|
-
"set-cookie":
|
|
17672
|
+
"set-cookie": Lf(r.tenant.id, c)
|
|
17656
17673
|
});
|
|
17657
17674
|
if (t.response_mode === rn.WEB_MESSAGE)
|
|
17658
17675
|
return n.json(l, {
|
|
@@ -17686,7 +17703,7 @@ function Yy(n) {
|
|
|
17686
17703
|
return async (e, t) => {
|
|
17687
17704
|
if (!t.email || !t.email_verified)
|
|
17688
17705
|
return n.users.create(e, t);
|
|
17689
|
-
const i = await
|
|
17706
|
+
const i = await Cd({
|
|
17690
17707
|
userAdapter: n.users,
|
|
17691
17708
|
tenant_id: e,
|
|
17692
17709
|
email: t.email
|
|
@@ -17697,7 +17714,7 @@ function Yy(n) {
|
|
|
17697
17714
|
}), i) : n.users.create(e, t);
|
|
17698
17715
|
};
|
|
17699
17716
|
}
|
|
17700
|
-
async function
|
|
17717
|
+
async function Kf(n, e, t) {
|
|
17701
17718
|
for await (const i of e)
|
|
17702
17719
|
if (!(await fetch(i.url, {
|
|
17703
17720
|
method: "POST",
|
|
@@ -17716,7 +17733,7 @@ async function Hf(n, e, t) {
|
|
|
17716
17733
|
function Xy(n, e) {
|
|
17717
17734
|
return async (t, i) => {
|
|
17718
17735
|
const { hooks: r } = await e.hooks.list(t);
|
|
17719
|
-
return await
|
|
17736
|
+
return await Kf(n, r, {
|
|
17720
17737
|
tenant_id: t,
|
|
17721
17738
|
user: i,
|
|
17722
17739
|
trigger_id: "post-user-registration"
|
|
@@ -17731,7 +17748,7 @@ function Qy(n, e) {
|
|
|
17731
17748
|
per_page: 100,
|
|
17732
17749
|
include_totals: !1
|
|
17733
17750
|
});
|
|
17734
|
-
await
|
|
17751
|
+
await Kf(n, r, {
|
|
17735
17752
|
tenant_id: t,
|
|
17736
17753
|
email: i,
|
|
17737
17754
|
trigger_id: "pre-user-signup"
|
|
@@ -17745,7 +17762,7 @@ function ev(n, e) {
|
|
|
17745
17762
|
};
|
|
17746
17763
|
}
|
|
17747
17764
|
async function tv(n, e, t, i) {
|
|
17748
|
-
if (e.disable_sign_ups && !await
|
|
17765
|
+
if (e.disable_sign_ups && !await Cd({
|
|
17749
17766
|
userAdapter: n.env.data.users,
|
|
17750
17767
|
tenant_id: e.tenant.id,
|
|
17751
17768
|
email: i
|
|
@@ -17789,7 +17806,7 @@ async function iv(n, e, t, i) {
|
|
|
17789
17806
|
authParams: i,
|
|
17790
17807
|
...Dn(n.req)
|
|
17791
17808
|
}));
|
|
17792
|
-
const c = await
|
|
17809
|
+
const c = await Tf(n, r.strategy).getRedirect(n, r);
|
|
17793
17810
|
return await n.env.data.codes.create(e.tenant.id, {
|
|
17794
17811
|
login_id: s.login_id,
|
|
17795
17812
|
code_id: c.code,
|
|
@@ -17851,7 +17868,7 @@ async function hd(n, { code: e, state: t }) {
|
|
|
17851
17868
|
message: m
|
|
17852
17869
|
});
|
|
17853
17870
|
}
|
|
17854
|
-
const u = await
|
|
17871
|
+
const u = await Tf(n, c.strategy).validateAuthorizationCodeAndGetUser(
|
|
17855
17872
|
n,
|
|
17856
17873
|
c,
|
|
17857
17874
|
e,
|
|
@@ -18073,7 +18090,7 @@ const rv = new ge().openapi(
|
|
|
18073
18090
|
});
|
|
18074
18091
|
const o = n.req.header("cookie");
|
|
18075
18092
|
if (o) {
|
|
18076
|
-
const l =
|
|
18093
|
+
const l = Rf(i.tenant.id, o);
|
|
18077
18094
|
if (l) {
|
|
18078
18095
|
const u = await n.env.data.sessions.get(
|
|
18079
18096
|
i.tenant.id,
|
|
@@ -18152,7 +18169,7 @@ const rv = new ge().openapi(
|
|
|
18152
18169
|
200: {
|
|
18153
18170
|
content: {
|
|
18154
18171
|
"application/json": {
|
|
18155
|
-
schema:
|
|
18172
|
+
schema: Vh
|
|
18156
18173
|
}
|
|
18157
18174
|
},
|
|
18158
18175
|
description: "List of tenants"
|
|
@@ -18286,7 +18303,7 @@ function cr(n, e) {
|
|
|
18286
18303
|
t |= n.charCodeAt(i) ^ e.charCodeAt(i);
|
|
18287
18304
|
return t === 0;
|
|
18288
18305
|
}
|
|
18289
|
-
const
|
|
18306
|
+
const Wf = a.object({
|
|
18290
18307
|
grant_type: a.literal("client_credentials"),
|
|
18291
18308
|
scope: a.string().optional(),
|
|
18292
18309
|
client_secret: a.string(),
|
|
@@ -18382,7 +18399,7 @@ async function pv(n, e) {
|
|
|
18382
18399
|
e.refresh_token
|
|
18383
18400
|
);
|
|
18384
18401
|
if (i) {
|
|
18385
|
-
if (new Date(i.expires_at) < /* @__PURE__ */ new Date())
|
|
18402
|
+
if (i.expires_at && new Date(i.expires_at) < /* @__PURE__ */ new Date())
|
|
18386
18403
|
throw new N(403, { message: "Refresh token expired" });
|
|
18387
18404
|
} else throw new N(403, { message: "Invalid refresh token" });
|
|
18388
18405
|
const r = await n.env.data.sessions.get(
|
|
@@ -18394,15 +18411,16 @@ async function pv(n, e) {
|
|
|
18394
18411
|
const s = await n.env.data.users.get(t.tenant.id, r.user_id);
|
|
18395
18412
|
if (!s)
|
|
18396
18413
|
throw new N(403, { message: "User not found" });
|
|
18414
|
+
const o = i.resource_servers[0];
|
|
18397
18415
|
return ei(n, {
|
|
18398
18416
|
user: s,
|
|
18399
18417
|
client: t,
|
|
18400
|
-
refreshToken: i.
|
|
18401
|
-
sessionId: r.
|
|
18418
|
+
refreshToken: i.id,
|
|
18419
|
+
sessionId: r.id,
|
|
18402
18420
|
authParams: {
|
|
18403
18421
|
client_id: t.id,
|
|
18404
|
-
audience:
|
|
18405
|
-
scope:
|
|
18422
|
+
audience: o == null ? void 0 : o.audience,
|
|
18423
|
+
scope: o == null ? void 0 : o.scopes,
|
|
18406
18424
|
response_mode: rn.WEB_MESSAGE
|
|
18407
18425
|
}
|
|
18408
18426
|
});
|
|
@@ -18412,7 +18430,7 @@ const md = a.object({
|
|
|
18412
18430
|
client_secret: a.string().optional()
|
|
18413
18431
|
}), fv = a.union([
|
|
18414
18432
|
// Client credentials
|
|
18415
|
-
|
|
18433
|
+
Wf.extend(md.shape),
|
|
18416
18434
|
// PKCE. This needs to be before the normal code grant as the client_secret is optional here
|
|
18417
18435
|
a.object({
|
|
18418
18436
|
grant_type: a.literal("authorization_code"),
|
|
@@ -18485,7 +18503,7 @@ const gv = new ge().openapi(
|
|
|
18485
18503
|
case nr.ClientCredential:
|
|
18486
18504
|
return cv(
|
|
18487
18505
|
n,
|
|
18488
|
-
|
|
18506
|
+
Wf.parse(i)
|
|
18489
18507
|
);
|
|
18490
18508
|
case nr.RefreshToken:
|
|
18491
18509
|
return pv(n, dv.parse(i));
|
|
@@ -18520,7 +18538,7 @@ const Gc = [
|
|
|
18520
18538
|
minDiversity: 4,
|
|
18521
18539
|
minLength: 10
|
|
18522
18540
|
}
|
|
18523
|
-
],
|
|
18541
|
+
], Gf = (n, e = Gc, t = "!\"#$%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~") => {
|
|
18524
18542
|
let i = n || "";
|
|
18525
18543
|
e[0].minDiversity = 0, e[0].minLength = 0;
|
|
18526
18544
|
const r = [
|
|
@@ -18546,8 +18564,8 @@ const Gc = [
|
|
|
18546
18564
|
let o = e.filter((c) => s.contains.length >= c.minDiversity).filter((c) => s.length >= c.minLength).sort((c, l) => l.id - c.id).map((c) => ({ id: c.id, value: c.value }));
|
|
18547
18565
|
return Object.assign(s, o[0]), s;
|
|
18548
18566
|
};
|
|
18549
|
-
Wc.exports = { passwordStrength:
|
|
18550
|
-
var _v = Wc.exports.passwordStrength =
|
|
18567
|
+
Wc.exports = { passwordStrength: Gf, defaultOptions: Gc };
|
|
18568
|
+
var _v = Wc.exports.passwordStrength = Gf;
|
|
18551
18569
|
Wc.exports.defaultOptions = Gc;
|
|
18552
18570
|
function mv(n) {
|
|
18553
18571
|
return _v(n).id < 2 ? !1 : n.length >= 8 && // Minimum length
|
|
@@ -18639,7 +18657,7 @@ async function vv(n, e, t) {
|
|
|
18639
18657
|
});
|
|
18640
18658
|
mt(n, n.env.data.logs.create(i.id, s));
|
|
18641
18659
|
}
|
|
18642
|
-
async function
|
|
18660
|
+
async function Jf(n, e, t) {
|
|
18643
18661
|
const i = await n.env.data.tenants.get(n.var.tenant_id);
|
|
18644
18662
|
if (!i)
|
|
18645
18663
|
throw new N(500, { message: "Tenant not found" });
|
|
@@ -18676,7 +18694,7 @@ async function Gf(n, e, t) {
|
|
|
18676
18694
|
});
|
|
18677
18695
|
mt(n, n.env.data.logs.create(i.id, s));
|
|
18678
18696
|
}
|
|
18679
|
-
async function
|
|
18697
|
+
async function Zf(n, e) {
|
|
18680
18698
|
const t = await n.env.data.tenants.get(n.var.tenant_id);
|
|
18681
18699
|
if (!t)
|
|
18682
18700
|
throw new N(500, { message: "Tenant not found" });
|
|
@@ -18770,7 +18788,7 @@ const wv = new ge().openapi(
|
|
|
18770
18788
|
user_id: o.user_id,
|
|
18771
18789
|
password: c,
|
|
18772
18790
|
algorithm: "bcrypt"
|
|
18773
|
-
}), await
|
|
18791
|
+
}), await Zf(n, o);
|
|
18774
18792
|
const l = xe(n, {
|
|
18775
18793
|
type: ye.SUCCESS_SIGNUP,
|
|
18776
18794
|
description: "Successful signup"
|
|
@@ -18842,7 +18860,7 @@ const wv = new ge().openapi(
|
|
|
18842
18860
|
);
|
|
18843
18861
|
}
|
|
18844
18862
|
);
|
|
18845
|
-
function
|
|
18863
|
+
function Yf() {
|
|
18846
18864
|
const n = "1234567890";
|
|
18847
18865
|
let e = "";
|
|
18848
18866
|
for (let t = 0; t < 6; t += 1)
|
|
@@ -18887,12 +18905,12 @@ const bv = new ge().openapi(
|
|
|
18887
18905
|
expires_at: new Date(Date.now() + Xu).toISOString(),
|
|
18888
18906
|
...Dn(n.req)
|
|
18889
18907
|
}), u = await t.data.codes.create(c.tenant.id, {
|
|
18890
|
-
code_id:
|
|
18908
|
+
code_id: Yf(),
|
|
18891
18909
|
code_type: "otp",
|
|
18892
18910
|
login_id: l.login_id,
|
|
18893
18911
|
expires_at: new Date(Date.now() + Xu).toISOString()
|
|
18894
18912
|
});
|
|
18895
|
-
return s === "link" ? await
|
|
18913
|
+
return s === "link" ? await Jf(n, r, u.code_id) : await vv(n, r, u.code_id), n.html("OK");
|
|
18896
18914
|
}
|
|
18897
18915
|
).openapi(
|
|
18898
18916
|
Z({
|
|
@@ -19060,7 +19078,7 @@ async function kv(n, e, t) {
|
|
|
19060
19078
|
});
|
|
19061
19079
|
}
|
|
19062
19080
|
if (!s.email_verified && e.email_validation === "enforced") {
|
|
19063
|
-
await
|
|
19081
|
+
await Zf(n, s);
|
|
19064
19082
|
const _ = xe(n, {
|
|
19065
19083
|
type: ye.FAILED_LOGIN,
|
|
19066
19084
|
description: "Email not verified"
|
|
@@ -19248,11 +19266,11 @@ async function Iv({
|
|
|
19248
19266
|
loginSession: o,
|
|
19249
19267
|
authParams: i,
|
|
19250
19268
|
user: c,
|
|
19251
|
-
sessionId: e.
|
|
19269
|
+
sessionId: e.id
|
|
19252
19270
|
});
|
|
19253
19271
|
}
|
|
19254
19272
|
if (r === "email" && s) {
|
|
19255
|
-
const c =
|
|
19273
|
+
const c = Yf();
|
|
19256
19274
|
return await n.env.data.codes.create(t.tenant.id, {
|
|
19257
19275
|
code_id: c,
|
|
19258
19276
|
code_type: "otp",
|
|
@@ -19260,7 +19278,7 @@ async function Iv({
|
|
|
19260
19278
|
expires_at: new Date(
|
|
19261
19279
|
Date.now() + Gr * 1e3
|
|
19262
19280
|
).toISOString()
|
|
19263
|
-
}), await
|
|
19281
|
+
}), await Jf(n, s, c), n.redirect(`/u/enter-code?state=${o.login_id}`);
|
|
19264
19282
|
}
|
|
19265
19283
|
return e ? n.redirect(`/u/check-account?state=${o.login_id}`) : n.redirect(`/u/enter-email?state=${o.login_id}`);
|
|
19266
19284
|
}
|
|
@@ -19303,7 +19321,7 @@ async function $v(n, e, t, i, r) {
|
|
|
19303
19321
|
last_ip: "",
|
|
19304
19322
|
last_login: (/* @__PURE__ */ new Date()).toISOString()
|
|
19305
19323
|
})), n.set("username", p.email), n.set("user_id", p.user_id);
|
|
19306
|
-
const g = await
|
|
19324
|
+
const g = await Hf(n, {
|
|
19307
19325
|
user: p,
|
|
19308
19326
|
client: l,
|
|
19309
19327
|
scope: i.scope,
|
|
@@ -19381,7 +19399,7 @@ async function Cv({
|
|
|
19381
19399
|
const { env: p } = n, g = new URL(i);
|
|
19382
19400
|
if (t) {
|
|
19383
19401
|
n.set("user_id", t.user_id);
|
|
19384
|
-
const x = new Headers(), h =
|
|
19402
|
+
const x = new Headers(), h = Lf(e.tenant.id, t.id);
|
|
19385
19403
|
x.set("set-cookie", h);
|
|
19386
19404
|
const m = await p.data.users.get(e.tenant.id, t.user_id);
|
|
19387
19405
|
if (m) {
|
|
@@ -19522,7 +19540,7 @@ const jv = new ge().openapi(
|
|
|
19522
19540
|
throw new N(400, {
|
|
19523
19541
|
message: `Invalid redirect URI - ${ae.redirect_uri}`
|
|
19524
19542
|
});
|
|
19525
|
-
const le =
|
|
19543
|
+
const le = Rf(
|
|
19526
19544
|
H.tenant.id,
|
|
19527
19545
|
n.req.header("cookie")
|
|
19528
19546
|
), Ve = le ? await e.data.sessions.get(H.tenant.id, le) : void 0;
|
|
@@ -19564,7 +19582,7 @@ const jv = new ge().openapi(
|
|
|
19564
19582
|
);
|
|
19565
19583
|
function Nv() {
|
|
19566
19584
|
const n = new ge();
|
|
19567
|
-
n.use(
|
|
19585
|
+
n.use(Af(n));
|
|
19568
19586
|
const e = n.route("/v2/logout", sv).route("/userinfo", ov).route("/.well-known", av).route("/oauth/token", gv).route("/dbconnections", wv).route("/passwordless", bv).route("/co/authenticate", Sv).route("/authorize", jv).route("/callback", rv);
|
|
19569
19587
|
return e.doc("/spec", {
|
|
19570
19588
|
openapi: "3.0.0",
|
|
@@ -19572,7 +19590,7 @@ function Nv() {
|
|
|
19572
19590
|
version: "1.0.0",
|
|
19573
19591
|
title: "Oauth API"
|
|
19574
19592
|
}
|
|
19575
|
-
}),
|
|
19593
|
+
}), Sf(e), e;
|
|
19576
19594
|
}
|
|
19577
19595
|
function Ov() {
|
|
19578
19596
|
const e = new ge();
|
|
@@ -20506,7 +20524,7 @@ function ZN(n) {
|
|
|
20506
20524
|
};
|
|
20507
20525
|
}
|
|
20508
20526
|
export {
|
|
20509
|
-
|
|
20527
|
+
Dh as Auth0Client,
|
|
20510
20528
|
rn as AuthorizationResponseMode,
|
|
20511
20529
|
nn as AuthorizationResponseType,
|
|
20512
20530
|
qa as CodeChallengeMethod,
|
|
@@ -20519,36 +20537,36 @@ export {
|
|
|
20519
20537
|
Da as baseUserSchema,
|
|
20520
20538
|
Kh as bordersSchema,
|
|
20521
20539
|
_l as brandingSchema,
|
|
20522
|
-
|
|
20540
|
+
Lh as codeInsertSchema,
|
|
20523
20541
|
K3 as codeSchema,
|
|
20524
|
-
|
|
20542
|
+
Rh as codeTypeSchema,
|
|
20525
20543
|
Wh as colorsSchema,
|
|
20526
20544
|
_o as connectionInsertSchema,
|
|
20527
20545
|
Jt as connectionSchema,
|
|
20528
|
-
|
|
20546
|
+
Uh as domainInsertSchema,
|
|
20529
20547
|
W3 as domainSchema,
|
|
20530
20548
|
Ys as emailProviderSchema,
|
|
20531
20549
|
Sn as fontDetailsSchema,
|
|
20532
20550
|
Gh as fontsSchema,
|
|
20533
20551
|
yo as hookInsertSchema,
|
|
20534
20552
|
ai as hookSchema,
|
|
20535
|
-
|
|
20553
|
+
Nh as identitySchema,
|
|
20536
20554
|
ZN as init,
|
|
20537
|
-
|
|
20555
|
+
Vh as jwksKeySchema,
|
|
20538
20556
|
Ad as jwksSchema,
|
|
20539
20557
|
vo as logSchema,
|
|
20540
|
-
|
|
20558
|
+
Mh as loginInsertSchema,
|
|
20541
20559
|
G3 as loginSchema,
|
|
20542
20560
|
ml as openIDConfigurationSchema,
|
|
20543
20561
|
Jh as pageBackgroundSchema,
|
|
20544
20562
|
X3 as parseUserId,
|
|
20545
|
-
|
|
20563
|
+
qh as passwordInsertSchema,
|
|
20546
20564
|
J3 as passwordSchema,
|
|
20547
|
-
|
|
20565
|
+
jh as profileDataSchema,
|
|
20548
20566
|
Zs as promptSettingSchema,
|
|
20549
20567
|
Xh as refreshTokenInsertSchema,
|
|
20550
20568
|
Y3 as refreshTokenSchema,
|
|
20551
|
-
|
|
20569
|
+
Th as samlpAddon,
|
|
20552
20570
|
Fh as sessionInsertSchema,
|
|
20553
20571
|
Fa as sessionSchema,
|
|
20554
20572
|
yl as signingKeySchema,
|