authhero 0.294.0 → 0.295.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 +15 -15
- package/dist/authhero.mjs +398 -393
- package/dist/stats.html +1 -1
- package/package.json +4 -4
package/dist/authhero.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as o, OpenAPIHono as W, createRoute as x } from "@hono/zod-openapi";
|
|
2
|
-
const ee = (t) => typeof t == "string",
|
|
2
|
+
const ee = (t) => typeof t == "string", Ai = () => {
|
|
3
3
|
let t, e;
|
|
4
4
|
const n = new Promise((r, i) => {
|
|
5
5
|
t = r, e = i;
|
|
@@ -9,7 +9,7 @@ const ee = (t) => typeof t == "string", Si = () => {
|
|
|
9
9
|
t.forEach((r) => {
|
|
10
10
|
e[r] && (n[r] = e[r]);
|
|
11
11
|
});
|
|
12
|
-
}, S1 = /###/g, Qp = (t) => t && t.indexOf("###") > -1 ? t.replace(S1, ".") : t, ef = (t) => !t || ee(t),
|
|
12
|
+
}, S1 = /###/g, Qp = (t) => t && t.indexOf("###") > -1 ? t.replace(S1, ".") : t, ef = (t) => !t || ee(t), no = (t, e, n) => {
|
|
13
13
|
const r = ee(e) ? e.split(".") : e;
|
|
14
14
|
let i = 0;
|
|
15
15
|
for (; i < r.length - 1; ) {
|
|
@@ -25,26 +25,26 @@ const ee = (t) => typeof t == "string", Si = () => {
|
|
|
25
25
|
const {
|
|
26
26
|
obj: r,
|
|
27
27
|
k: i
|
|
28
|
-
} =
|
|
28
|
+
} = no(t, e, Object);
|
|
29
29
|
if (r !== void 0 || e.length === 1) {
|
|
30
30
|
r[i] = n;
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
-
let s = e[e.length - 1], a = e.slice(0, e.length - 1), c =
|
|
33
|
+
let s = e[e.length - 1], a = e.slice(0, e.length - 1), c = no(t, a, Object);
|
|
34
34
|
for (; c.obj === void 0 && a.length; )
|
|
35
|
-
s = `${a[a.length - 1]}.${s}`, a = a.slice(0, a.length - 1), c =
|
|
35
|
+
s = `${a[a.length - 1]}.${s}`, a = a.slice(0, a.length - 1), c = no(t, a, Object), c?.obj && typeof c.obj[`${c.k}.${s}`] < "u" && (c.obj = void 0);
|
|
36
36
|
c.obj[`${c.k}.${s}`] = n;
|
|
37
37
|
}, A1 = (t, e, n, r) => {
|
|
38
38
|
const {
|
|
39
39
|
obj: i,
|
|
40
40
|
k: s
|
|
41
|
-
} =
|
|
41
|
+
} = no(t, e, Object);
|
|
42
42
|
i[s] = i[s] || [], i[s].push(n);
|
|
43
43
|
}, Ps = (t, e) => {
|
|
44
44
|
const {
|
|
45
45
|
obj: n,
|
|
46
46
|
k: r
|
|
47
|
-
} =
|
|
47
|
+
} = no(t, e);
|
|
48
48
|
if (n && Object.prototype.hasOwnProperty.call(n, r))
|
|
49
49
|
return n[r];
|
|
50
50
|
}, E1 = (t, e, n) => {
|
|
@@ -107,7 +107,7 @@ const I1 = [" ", ",", "?", "!", ";"], O1 = new j1(20), P1 = (t, e, n) => {
|
|
|
107
107
|
i = a;
|
|
108
108
|
}
|
|
109
109
|
return i;
|
|
110
|
-
},
|
|
110
|
+
}, ho = (t) => t?.replace("_", "-"), T1 = {
|
|
111
111
|
type: "logger",
|
|
112
112
|
log(t) {
|
|
113
113
|
this.output("log", t);
|
|
@@ -535,12 +535,12 @@ class of {
|
|
|
535
535
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = qt.create("languageUtils");
|
|
536
536
|
}
|
|
537
537
|
getScriptPartFromCode(e) {
|
|
538
|
-
if (e =
|
|
538
|
+
if (e = ho(e), !e || e.indexOf("-") < 0) return null;
|
|
539
539
|
const n = e.split("-");
|
|
540
540
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
541
541
|
}
|
|
542
542
|
getLanguagePartFromCode(e) {
|
|
543
|
-
if (e =
|
|
543
|
+
if (e = ho(e), !e || e.indexOf("-") < 0) return e;
|
|
544
544
|
const n = e.split("-");
|
|
545
545
|
return this.formatLanguageCode(n[0]);
|
|
546
546
|
}
|
|
@@ -618,7 +618,7 @@ class B1 {
|
|
|
618
618
|
this.pluralRulesCache = {};
|
|
619
619
|
}
|
|
620
620
|
getRule(e, n = {}) {
|
|
621
|
-
const r =
|
|
621
|
+
const r = ho(e === "dev" ? "en" : e), i = n.ordinal ? "ordinal" : "cardinal", s = JSON.stringify({
|
|
622
622
|
cleanedCode: r,
|
|
623
623
|
type: i
|
|
624
624
|
});
|
|
@@ -804,9 +804,9 @@ const L1 = (t) => {
|
|
|
804
804
|
});
|
|
805
805
|
const a = r + JSON.stringify(s);
|
|
806
806
|
let c = e[a];
|
|
807
|
-
return c || (c = t(
|
|
807
|
+
return c || (c = t(ho(r), i), e[a] = c), c(n);
|
|
808
808
|
};
|
|
809
|
-
}, U1 = (t) => (e, n, r) => t(
|
|
809
|
+
}, U1 = (t) => (e, n, r) => t(ho(n), r)(e);
|
|
810
810
|
class D1 {
|
|
811
811
|
constructor(e = {}) {
|
|
812
812
|
this.logger = qt.create("formatter"), this.options = e, this.init(e);
|
|
@@ -1082,7 +1082,7 @@ const uf = () => ({
|
|
|
1082
1082
|
typeof t[n] == "function" && (t[n] = t[n].bind(t));
|
|
1083
1083
|
});
|
|
1084
1084
|
};
|
|
1085
|
-
class
|
|
1085
|
+
class ro extends Ca {
|
|
1086
1086
|
constructor(e = {}, n) {
|
|
1087
1087
|
if (super(), this.options = pf(e), this.services = {}, this.logger = qt, this.modules = {
|
|
1088
1088
|
external: []
|
|
@@ -1135,7 +1135,7 @@ class no extends Ca {
|
|
|
1135
1135
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((d) => {
|
|
1136
1136
|
this[d] = (...u) => (this.store[d](...u), this);
|
|
1137
1137
|
});
|
|
1138
|
-
const c =
|
|
1138
|
+
const c = Ai(), l = () => {
|
|
1139
1139
|
const d = (u, f) => {
|
|
1140
1140
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), c.resolve(f), n(u, f);
|
|
1141
1141
|
};
|
|
@@ -1162,7 +1162,7 @@ class no extends Ca {
|
|
|
1162
1162
|
r(null);
|
|
1163
1163
|
}
|
|
1164
1164
|
reloadResources(e, n, r) {
|
|
1165
|
-
const i =
|
|
1165
|
+
const i = Ai();
|
|
1166
1166
|
return typeof e == "function" && (r = e, e = void 0), typeof n == "function" && (r = n, n = void 0), e || (e = this.languages), n || (n = this.options.ns), r || (r = ps), this.services.backendConnector.reload(e, n, (s) => {
|
|
1167
1167
|
i.resolve(), r(s);
|
|
1168
1168
|
}), i;
|
|
@@ -1186,7 +1186,7 @@ class no extends Ca {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
changeLanguage(e, n) {
|
|
1188
1188
|
this.isLanguageChangingTo = e;
|
|
1189
|
-
const r =
|
|
1189
|
+
const r = Ai();
|
|
1190
1190
|
this.emit("languageChanging", e);
|
|
1191
1191
|
const i = (c) => {
|
|
1192
1192
|
this.language = c, this.languages = this.services.languageUtils.toResolveHierarchy(c), this.resolvedLanguage = void 0, this.setResolvedLanguage(c);
|
|
@@ -1246,7 +1246,7 @@ class no extends Ca {
|
|
|
1246
1246
|
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, e) && (!i || a(s, e)));
|
|
1247
1247
|
}
|
|
1248
1248
|
loadNamespaces(e, n) {
|
|
1249
|
-
const r =
|
|
1249
|
+
const r = Ai();
|
|
1250
1250
|
return this.options.ns ? (ee(e) && (e = [e]), e.forEach((i) => {
|
|
1251
1251
|
this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
|
|
1252
1252
|
}), this.loadResources((i) => {
|
|
@@ -1254,7 +1254,7 @@ class no extends Ca {
|
|
|
1254
1254
|
}), r) : (n && n(), Promise.resolve());
|
|
1255
1255
|
}
|
|
1256
1256
|
loadLanguages(e, n) {
|
|
1257
|
-
const r =
|
|
1257
|
+
const r = Ai();
|
|
1258
1258
|
ee(e) && (e = [e]);
|
|
1259
1259
|
const i = this.options.preload || [], s = e.filter((a) => i.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
1260
1260
|
return s.length ? (this.options.preload = i.concat(s), this.loadResources((a) => {
|
|
@@ -1275,8 +1275,8 @@ class no extends Ca {
|
|
|
1275
1275
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : n.indexOf(r.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1276
1276
|
}
|
|
1277
1277
|
static createInstance(e = {}, n) {
|
|
1278
|
-
const r = new
|
|
1279
|
-
return r.createInstance =
|
|
1278
|
+
const r = new ro(e, n);
|
|
1279
|
+
return r.createInstance = ro.createInstance, r;
|
|
1280
1280
|
}
|
|
1281
1281
|
cloneInstance(e = {}, n = ps) {
|
|
1282
1282
|
const r = e.forkResourceStore;
|
|
@@ -1285,7 +1285,7 @@ class no extends Ca {
|
|
|
1285
1285
|
...this.options,
|
|
1286
1286
|
...e,
|
|
1287
1287
|
isClone: !0
|
|
1288
|
-
}, s = new
|
|
1288
|
+
}, s = new ro(i);
|
|
1289
1289
|
if ((e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((c) => {
|
|
1290
1290
|
s[c] = this[c];
|
|
1291
1291
|
}), s.services = {
|
|
@@ -1316,7 +1316,7 @@ class no extends Ca {
|
|
|
1316
1316
|
};
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
const y =
|
|
1319
|
+
const y = ro.createInstance();
|
|
1320
1320
|
y.createInstance;
|
|
1321
1321
|
y.dir;
|
|
1322
1322
|
y.init;
|
|
@@ -1384,7 +1384,7 @@ const nJ = o.object({
|
|
|
1384
1384
|
start: o.number(),
|
|
1385
1385
|
limit: o.number(),
|
|
1386
1386
|
length: o.number()
|
|
1387
|
-
}),
|
|
1387
|
+
}), li = o.object({
|
|
1388
1388
|
created_at: o.string(),
|
|
1389
1389
|
updated_at: o.string()
|
|
1390
1390
|
}), F1 = o.object({
|
|
@@ -1431,7 +1431,7 @@ const nJ = o.object({
|
|
|
1431
1431
|
is_social: o.boolean().optional()
|
|
1432
1432
|
}), R0 = o.object({
|
|
1433
1433
|
...Al.shape,
|
|
1434
|
-
...
|
|
1434
|
+
...li.shape,
|
|
1435
1435
|
user_id: o.string(),
|
|
1436
1436
|
provider: o.string(),
|
|
1437
1437
|
is_social: o.boolean(),
|
|
@@ -1872,7 +1872,7 @@ const Bs = o.object({
|
|
|
1872
1872
|
font: o.object({
|
|
1873
1873
|
url: o.string()
|
|
1874
1874
|
}).optional()
|
|
1875
|
-
}),
|
|
1875
|
+
}), io = o.object({
|
|
1876
1876
|
kid: o.string().optional(),
|
|
1877
1877
|
team_id: o.string().optional(),
|
|
1878
1878
|
realms: o.string().optional(),
|
|
@@ -1897,7 +1897,7 @@ const Bs = o.object({
|
|
|
1897
1897
|
name: o.string(),
|
|
1898
1898
|
display_name: o.string().optional(),
|
|
1899
1899
|
strategy: o.string(),
|
|
1900
|
-
options:
|
|
1900
|
+
options: io.default({}),
|
|
1901
1901
|
enabled_clients: o.array(o.string()).default([]).optional(),
|
|
1902
1902
|
response_type: o.custom().optional(),
|
|
1903
1903
|
response_mode: o.custom().optional(),
|
|
@@ -2124,7 +2124,7 @@ const Bs = o.object({
|
|
|
2124
2124
|
visible: o.boolean().optional().default(!0)
|
|
2125
2125
|
}), hf = D0.extend({
|
|
2126
2126
|
category: o.literal("BLOCK").optional()
|
|
2127
|
-
}),
|
|
2127
|
+
}), Ei = D0.extend({
|
|
2128
2128
|
category: o.literal("FIELD").optional(),
|
|
2129
2129
|
required: o.boolean().optional(),
|
|
2130
2130
|
sensitive: o.boolean().optional()
|
|
@@ -2135,14 +2135,14 @@ const Bs = o.object({
|
|
|
2135
2135
|
content: o.string()
|
|
2136
2136
|
})
|
|
2137
2137
|
}),
|
|
2138
|
-
|
|
2138
|
+
Ei.omit({ sensitive: !0 }).extend({
|
|
2139
2139
|
type: o.literal("LEGAL"),
|
|
2140
2140
|
config: o.object({
|
|
2141
2141
|
text: o.string(),
|
|
2142
2142
|
html: o.boolean().optional()
|
|
2143
2143
|
})
|
|
2144
2144
|
}),
|
|
2145
|
-
|
|
2145
|
+
Ei.extend({
|
|
2146
2146
|
type: o.literal("TEXT"),
|
|
2147
2147
|
config: o.object({
|
|
2148
2148
|
placeholder: o.string().optional(),
|
|
@@ -2155,21 +2155,21 @@ const Bs = o.object({
|
|
|
2155
2155
|
text: o.string().optional()
|
|
2156
2156
|
})
|
|
2157
2157
|
}),
|
|
2158
|
-
|
|
2158
|
+
Ei.extend({
|
|
2159
2159
|
type: o.literal("EMAIL"),
|
|
2160
2160
|
config: o.object({
|
|
2161
2161
|
label: o.string().optional(),
|
|
2162
2162
|
placeholder: o.string().optional()
|
|
2163
2163
|
})
|
|
2164
2164
|
}),
|
|
2165
|
-
|
|
2165
|
+
Ei.extend({
|
|
2166
2166
|
type: o.literal("NUMBER"),
|
|
2167
2167
|
config: o.object({
|
|
2168
2168
|
label: o.string().optional(),
|
|
2169
2169
|
placeholder: o.string().optional()
|
|
2170
2170
|
})
|
|
2171
2171
|
}),
|
|
2172
|
-
|
|
2172
|
+
Ei.extend({
|
|
2173
2173
|
type: o.literal("PHONE"),
|
|
2174
2174
|
config: o.object({
|
|
2175
2175
|
label: o.string().optional(),
|
|
@@ -2251,8 +2251,8 @@ const Bs = o.object({
|
|
|
2251
2251
|
style: o.object({ css: o.string().optional() }).optional()
|
|
2252
2252
|
}).openapi({
|
|
2253
2253
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
2254
|
-
}),
|
|
2255
|
-
...
|
|
2254
|
+
}), Ri = o.object({
|
|
2255
|
+
...li.shape,
|
|
2256
2256
|
...jl.shape,
|
|
2257
2257
|
id: o.string()
|
|
2258
2258
|
}), M0 = o.enum([
|
|
@@ -2289,16 +2289,16 @@ const Bs = o.object({
|
|
|
2289
2289
|
]), fw = o.object({
|
|
2290
2290
|
...ja,
|
|
2291
2291
|
trigger_id: M0,
|
|
2292
|
-
...
|
|
2292
|
+
...li.shape,
|
|
2293
2293
|
hook_id: o.string(),
|
|
2294
2294
|
url: o.string()
|
|
2295
2295
|
}), hw = o.object({
|
|
2296
2296
|
...ja,
|
|
2297
2297
|
trigger_id: z0,
|
|
2298
|
-
...
|
|
2298
|
+
...li.shape,
|
|
2299
2299
|
hook_id: o.string(),
|
|
2300
2300
|
form_id: o.string()
|
|
2301
|
-
}),
|
|
2301
|
+
}), Bi = o.union([fw, hw]), gw = o.object({
|
|
2302
2302
|
name: o.string().optional()
|
|
2303
2303
|
}), mw = o.object({
|
|
2304
2304
|
email: o.string().optional()
|
|
@@ -2928,7 +2928,7 @@ const Sw = o.object({
|
|
|
2928
2928
|
token_quota: Hw
|
|
2929
2929
|
}), Gn = o.object({
|
|
2930
2930
|
...Rl.shape,
|
|
2931
|
-
...
|
|
2931
|
+
...li.shape,
|
|
2932
2932
|
id: o.string()
|
|
2933
2933
|
}), Vw = o.object({
|
|
2934
2934
|
user_id: o.string().openapi({
|
|
@@ -2939,7 +2939,7 @@ const Sw = o.object({
|
|
|
2939
2939
|
})
|
|
2940
2940
|
}), yJ = o.object({
|
|
2941
2941
|
...Vw.shape,
|
|
2942
|
-
...
|
|
2942
|
+
...li.shape,
|
|
2943
2943
|
id: o.string()
|
|
2944
2944
|
}), wJ = o.object({
|
|
2945
2945
|
// Session settings
|
|
@@ -3365,7 +3365,7 @@ function ku(t, e) {
|
|
|
3365
3365
|
);
|
|
3366
3366
|
t < 4 ? t = 4 : t > 31 && (t = 31);
|
|
3367
3367
|
var n = [];
|
|
3368
|
-
return n.push("$2b$"), t < 10 && n.push("0"), n.push(t.toString()), n.push("$"), n.push(Ls(Xw(
|
|
3368
|
+
return n.push("$2b$"), t < 10 && n.push("0"), n.push(t.toString()), n.push("$"), n.push(Ls(Xw(go), go)), n.join("");
|
|
3369
3369
|
}
|
|
3370
3370
|
function G0(t, e, n) {
|
|
3371
3371
|
if (typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), typeof t > "u") t = xu;
|
|
@@ -3663,7 +3663,7 @@ function Y0(t, e) {
|
|
|
3663
3663
|
for (n = 0; n < i; n++) g.push(s[n].charCodeAt(0));
|
|
3664
3664
|
return g;
|
|
3665
3665
|
}
|
|
3666
|
-
var
|
|
3666
|
+
var go = 16, xu = 10, ib = 16, ob = 100, yf = [
|
|
3667
3667
|
608135816,
|
|
3668
3668
|
2242054355,
|
|
3669
3669
|
320440878,
|
|
@@ -4715,7 +4715,7 @@ var ho = 16, xu = 10, ib = 16, ob = 100, yf = [
|
|
|
4715
4715
|
1668446532,
|
|
4716
4716
|
1869963892
|
|
4717
4717
|
];
|
|
4718
|
-
function
|
|
4718
|
+
function mo(t, e, n, r) {
|
|
4719
4719
|
var i, s = t[e], a = t[e + 1];
|
|
4720
4720
|
return s ^= n[0], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[1], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[2], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[3], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[4], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[5], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[6], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[7], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[8], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[9], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[10], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[11], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[12], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[13], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[14], i = r[s >>> 24], i += r[256 | s >> 16 & 255], i ^= r[512 | s >> 8 & 255], i += r[768 | s & 255], a ^= i ^ n[15], i = r[a >>> 24], i += r[256 | a >> 16 & 255], i ^= r[512 | a >> 8 & 255], i += r[768 | a & 255], s ^= i ^ n[16], t[e] = a ^ n[ib + 1], t[e + 1] = s, t;
|
|
4721
4721
|
}
|
|
@@ -4728,17 +4728,17 @@ function bf(t, e, n) {
|
|
|
4728
4728
|
for (var r = 0, i = [0, 0], s = e.length, a = n.length, c, l = 0; l < s; l++)
|
|
4729
4729
|
c = Nr(t, r), r = c.offp, e[l] = e[l] ^ c.key;
|
|
4730
4730
|
for (l = 0; l < s; l += 2)
|
|
4731
|
-
i =
|
|
4731
|
+
i = mo(i, 0, e, n), e[l] = i[0], e[l + 1] = i[1];
|
|
4732
4732
|
for (l = 0; l < a; l += 2)
|
|
4733
|
-
i =
|
|
4733
|
+
i = mo(i, 0, e, n), n[l] = i[0], n[l + 1] = i[1];
|
|
4734
4734
|
}
|
|
4735
4735
|
function sb(t, e, n, r) {
|
|
4736
4736
|
for (var i = 0, s = [0, 0], a = n.length, c = r.length, l, d = 0; d < a; d++)
|
|
4737
4737
|
l = Nr(e, i), i = l.offp, n[d] = n[d] ^ l.key;
|
|
4738
4738
|
for (i = 0, d = 0; d < a; d += 2)
|
|
4739
|
-
l = Nr(t, i), i = l.offp, s[0] ^= l.key, l = Nr(t, i), i = l.offp, s[1] ^= l.key, s =
|
|
4739
|
+
l = Nr(t, i), i = l.offp, s[0] ^= l.key, l = Nr(t, i), i = l.offp, s[1] ^= l.key, s = mo(s, 0, n, r), n[d] = s[0], n[d + 1] = s[1];
|
|
4740
4740
|
for (d = 0; d < c; d += 2)
|
|
4741
|
-
l = Nr(t, i), i = l.offp, s[0] ^= l.key, l = Nr(t, i), i = l.offp, s[1] ^= l.key, s =
|
|
4741
|
+
l = Nr(t, i), i = l.offp, s[0] ^= l.key, l = Nr(t, i), i = l.offp, s[1] ^= l.key, s = mo(s, 0, n, r), r[d] = s[0], r[d + 1] = s[1];
|
|
4742
4742
|
}
|
|
4743
4743
|
function vf(t, e, n, r, i) {
|
|
4744
4744
|
var s = Q0.slice(), a = s.length, c;
|
|
@@ -4747,9 +4747,9 @@ function vf(t, e, n, r, i) {
|
|
|
4747
4747
|
xt(r.bind(this, c));
|
|
4748
4748
|
return;
|
|
4749
4749
|
} else throw c;
|
|
4750
|
-
if (e.length !==
|
|
4750
|
+
if (e.length !== go)
|
|
4751
4751
|
if (c = Error(
|
|
4752
|
-
"Illegal salt length: " + e.length + " != " +
|
|
4752
|
+
"Illegal salt length: " + e.length + " != " + go
|
|
4753
4753
|
), r) {
|
|
4754
4754
|
xt(r.bind(this, c));
|
|
4755
4755
|
return;
|
|
@@ -4763,7 +4763,7 @@ function vf(t, e, n, r, i) {
|
|
|
4763
4763
|
;
|
|
4764
4764
|
else {
|
|
4765
4765
|
for (u = 0; u < 64; u++)
|
|
4766
|
-
for (f = 0; f < a >> 1; f++)
|
|
4766
|
+
for (f = 0; f < a >> 1; f++) mo(s, f << 1, l, d);
|
|
4767
4767
|
var k = [];
|
|
4768
4768
|
for (u = 0; u < a; u++)
|
|
4769
4769
|
k.push((s[u] >> 24 & 255) >>> 0), k.push((s[u] >> 16 & 255) >>> 0), k.push((s[u] >> 8 & 255) >>> 0), k.push((s[u] & 255) >>> 0);
|
|
@@ -4808,7 +4808,7 @@ function Ul(t, e, n, r) {
|
|
|
4808
4808
|
} else throw i;
|
|
4809
4809
|
var c = parseInt(e.substring(a, a + 1), 10) * 10, l = parseInt(e.substring(a + 1, a + 2), 10), d = c + l, u = e.substring(a + 3, a + 25);
|
|
4810
4810
|
t += s >= "a" ? "\0" : "";
|
|
4811
|
-
var f = rb(t), g = Y0(u,
|
|
4811
|
+
var f = rb(t), g = Y0(u, go);
|
|
4812
4812
|
function _(w) {
|
|
4813
4813
|
var k = [];
|
|
4814
4814
|
return k.push("$2"), s >= "a" && k.push(s), k.push("$"), d < 10 && k.push("0"), k.push(d.toString()), k.push("$"), k.push(Ls(g, g.length)), k.push(Ls(w, Q0.length * 4 - 1)), k.join("");
|
|
@@ -7941,7 +7941,7 @@ async function Au(t, e, n) {
|
|
|
7941
7941
|
q: `email:${n}`
|
|
7942
7942
|
})).users;
|
|
7943
7943
|
}
|
|
7944
|
-
async function
|
|
7944
|
+
async function di({
|
|
7945
7945
|
userAdapter: t,
|
|
7946
7946
|
tenant_id: e,
|
|
7947
7947
|
username: n,
|
|
@@ -7982,13 +7982,13 @@ async function Ba({
|
|
|
7982
7982
|
throw new Error("Primary account not found");
|
|
7983
7983
|
return a;
|
|
7984
7984
|
}
|
|
7985
|
-
async function
|
|
7985
|
+
async function Gr({
|
|
7986
7986
|
userAdapter: t,
|
|
7987
7987
|
tenant_id: e,
|
|
7988
7988
|
username: n,
|
|
7989
7989
|
provider: r
|
|
7990
7990
|
}) {
|
|
7991
|
-
const i = await
|
|
7991
|
+
const i = await di({
|
|
7992
7992
|
userAdapter: t,
|
|
7993
7993
|
tenant_id: e,
|
|
7994
7994
|
username: n,
|
|
@@ -8007,7 +8007,7 @@ async function La(t, e) {
|
|
|
8007
8007
|
profileData: l = {},
|
|
8008
8008
|
ip: d = ""
|
|
8009
8009
|
} = e;
|
|
8010
|
-
let u = await
|
|
8010
|
+
let u = await Gr({
|
|
8011
8011
|
userAdapter: t.env.data.users,
|
|
8012
8012
|
tenant_id: e.client.tenant.id,
|
|
8013
8013
|
username: n,
|
|
@@ -8141,8 +8141,8 @@ var Sv = {
|
|
|
8141
8141
|
}, i;
|
|
8142
8142
|
}, wm = (t) => {
|
|
8143
8143
|
const e = [t], n = ym(e);
|
|
8144
|
-
return n.values = e, n.Provider = n,
|
|
8145
|
-
},
|
|
8144
|
+
return n.values = e, n.Provider = n, Wr.push(n), n;
|
|
8145
|
+
}, Wr = [], bm = (t) => {
|
|
8146
8146
|
const e = [t], n = ((r) => {
|
|
8147
8147
|
e.push(r.value);
|
|
8148
8148
|
let i;
|
|
@@ -8153,8 +8153,8 @@ var Sv = {
|
|
|
8153
8153
|
}
|
|
8154
8154
|
return i instanceof Promise ? i.then((s) => Pn(s, s.callbacks)) : Pn(i);
|
|
8155
8155
|
});
|
|
8156
|
-
return n.values = e, n.Provider = n, n[Eu] = ym(e),
|
|
8157
|
-
},
|
|
8156
|
+
return n.values = e, n.Provider = n, n[Eu] = ym(e), Wr.push(n), n;
|
|
8157
|
+
}, ui = (t) => t.values.at(-1), xs = {
|
|
8158
8158
|
title: [],
|
|
8159
8159
|
script: ["src"],
|
|
8160
8160
|
style: ["data-href"],
|
|
@@ -8206,7 +8206,7 @@ var Sv = {
|
|
|
8206
8206
|
}, jv = ({ children: t, ...e }) => {
|
|
8207
8207
|
const n = Cu();
|
|
8208
8208
|
if (n) {
|
|
8209
|
-
const r =
|
|
8209
|
+
const r = ui(n);
|
|
8210
8210
|
if (r === "svg" || r === "head")
|
|
8211
8211
|
return new Ct(
|
|
8212
8212
|
"title",
|
|
@@ -8220,13 +8220,13 @@ var Sv = {
|
|
|
8220
8220
|
...e
|
|
8221
8221
|
}) => {
|
|
8222
8222
|
const n = Cu();
|
|
8223
|
-
return ["src", "async"].some((r) => !e[r]) || n &&
|
|
8223
|
+
return ["src", "async"].some((r) => !e[r]) || n && ui(n) === "head" ? Fo("script", t, e) : Ho("script", t, e, !1);
|
|
8224
8224
|
}, Ov = ({
|
|
8225
8225
|
children: t,
|
|
8226
8226
|
...e
|
|
8227
8227
|
}) => ["href", "precedence"].every((n) => n in e) ? (e["data-href"] = e.href, delete e.href, Ho("style", t, e, !0)) : Fo("style", t, e), Pv = ({ children: t, ...e }) => ["onLoad", "onError"].some((n) => n in e) || e.rel === "stylesheet" && (!("precedence" in e) || "disabled" in e) ? Fo("link", t, e) : Ho("link", t, e, "precedence" in e), Tv = ({ children: t, ...e }) => {
|
|
8228
8228
|
const n = Cu();
|
|
8229
|
-
return n &&
|
|
8229
|
+
return n && ui(n) === "head" ? Fo("meta", t, e) : Ho("meta", t, e, !1);
|
|
8230
8230
|
}, vm = (t, { children: e, ...n }) => (
|
|
8231
8231
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8232
8232
|
new Ct(t, n, qo(e ?? []))
|
|
@@ -8355,7 +8355,7 @@ t.match(
|
|
|
8355
8355
|
const e = this.tag, n = this.props;
|
|
8356
8356
|
let { children: r } = this;
|
|
8357
8357
|
t[0] += `<${e}`;
|
|
8358
|
-
const i = _o &&
|
|
8358
|
+
const i = _o && ui(_o) === "svg" ? (s) => Dv(qs(s)) : (s) => qs(s);
|
|
8359
8359
|
for (let [s, a] of Object.entries(n))
|
|
8360
8360
|
if (s = i(s), s !== "children") {
|
|
8361
8361
|
if (s === "style" && typeof a == "object") {
|
|
@@ -8394,10 +8394,10 @@ t.match(
|
|
|
8394
8394
|
const r = this.tag.call(null, n);
|
|
8395
8395
|
if (!(typeof r == "boolean" || r == null))
|
|
8396
8396
|
if (r instanceof Promise)
|
|
8397
|
-
if (
|
|
8397
|
+
if (Wr.length === 0)
|
|
8398
8398
|
t.unshift("", r);
|
|
8399
8399
|
else {
|
|
8400
|
-
const i =
|
|
8400
|
+
const i = Wr.map((s) => [s, s.values.at(-1)]);
|
|
8401
8401
|
t.unshift(
|
|
8402
8402
|
"",
|
|
8403
8403
|
r.then((s) => (s instanceof Ct && (s.localContexts = i), s))
|
|
@@ -8862,7 +8862,7 @@ function Zn(t, e) {
|
|
|
8862
8862
|
const n = new TextEncoder().encode(`${t}:${e}`);
|
|
8863
8863
|
return Hv(n);
|
|
8864
8864
|
}
|
|
8865
|
-
async function
|
|
8865
|
+
async function Jr(t) {
|
|
8866
8866
|
let e;
|
|
8867
8867
|
try {
|
|
8868
8868
|
e = await fetch(t);
|
|
@@ -9009,7 +9009,7 @@ class wr {
|
|
|
9009
9009
|
const c = Zn(this.clientId, this.clientPassword);
|
|
9010
9010
|
s.headers.set("Authorization", `Basic ${c}`);
|
|
9011
9011
|
}
|
|
9012
|
-
return await
|
|
9012
|
+
return await Jr(s);
|
|
9013
9013
|
}
|
|
9014
9014
|
async refreshAccessToken(e, n, r) {
|
|
9015
9015
|
const i = new URLSearchParams();
|
|
@@ -9019,7 +9019,7 @@ class wr {
|
|
|
9019
9019
|
const c = Zn(this.clientId, this.clientPassword);
|
|
9020
9020
|
s.headers.set("Authorization", `Basic ${c}`);
|
|
9021
9021
|
}
|
|
9022
|
-
return await
|
|
9022
|
+
return await Jr(s);
|
|
9023
9023
|
}
|
|
9024
9024
|
async revokeToken(e, n) {
|
|
9025
9025
|
const r = new URLSearchParams();
|
|
@@ -9044,7 +9044,7 @@ var Hf;
|
|
|
9044
9044
|
(function(t) {
|
|
9045
9045
|
t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
|
|
9046
9046
|
})(Hf || (Hf = {}));
|
|
9047
|
-
function
|
|
9047
|
+
function oo(t) {
|
|
9048
9048
|
return e2(t, t2, Fs.None);
|
|
9049
9049
|
}
|
|
9050
9050
|
function e2(t, e, n) {
|
|
@@ -9068,11 +9068,11 @@ var Vf;
|
|
|
9068
9068
|
t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
|
|
9069
9069
|
})(Vf || (Vf = {}));
|
|
9070
9070
|
function n2(t, e, n) {
|
|
9071
|
-
const r =
|
|
9071
|
+
const r = oo(new TextEncoder().encode(t)), i = oo(new TextEncoder().encode(e)), s = oo(n);
|
|
9072
9072
|
return r + "." + i + "." + s;
|
|
9073
9073
|
}
|
|
9074
9074
|
function r2(t, e) {
|
|
9075
|
-
const n =
|
|
9075
|
+
const n = oo(new TextEncoder().encode(t)), r = oo(new TextEncoder().encode(e)), i = n + "." + r;
|
|
9076
9076
|
return new TextEncoder().encode(i);
|
|
9077
9077
|
}
|
|
9078
9078
|
const i2 = "https://appleid.apple.com/auth/authorize", o2 = "https://appleid.apple.com/auth/token";
|
|
@@ -9095,7 +9095,7 @@ class Nm {
|
|
|
9095
9095
|
const r = await this.createClientSecret();
|
|
9096
9096
|
n.set("client_secret", r);
|
|
9097
9097
|
const i = sn(o2, n);
|
|
9098
|
-
return await
|
|
9098
|
+
return await Jr(i);
|
|
9099
9099
|
}
|
|
9100
9100
|
async createClientSecret() {
|
|
9101
9101
|
const e = await crypto.subtle.importKey("pkcs8", this.pkcs8PrivateKey, {
|
|
@@ -9134,7 +9134,7 @@ class jm {
|
|
|
9134
9134
|
const n = new URLSearchParams();
|
|
9135
9135
|
n.set("grant_type", "authorization_code"), n.set("code", e), n.set("redirect_uri", this.redirectURI), n.set("client_id", this.clientId), n.set("client_secret", this.clientSecret);
|
|
9136
9136
|
const r = sn(a2, n);
|
|
9137
|
-
return await
|
|
9137
|
+
return await Jr(r);
|
|
9138
9138
|
}
|
|
9139
9139
|
}
|
|
9140
9140
|
const c2 = "https://github.com/login/oauth/authorize", Kf = "https://github.com/login/oauth/access_token";
|
|
@@ -9233,7 +9233,7 @@ class Pm {
|
|
|
9233
9233
|
i.headers.set("Authorization", `Basic ${a}`);
|
|
9234
9234
|
} else
|
|
9235
9235
|
i.headers.set("Origin", "arctic");
|
|
9236
|
-
return await
|
|
9236
|
+
return await Jr(i);
|
|
9237
9237
|
}
|
|
9238
9238
|
async refreshAccessToken(e, n) {
|
|
9239
9239
|
const r = new URLSearchParams();
|
|
@@ -9244,10 +9244,10 @@ class Pm {
|
|
|
9244
9244
|
i.headers.set("Authorization", `Basic ${a}`);
|
|
9245
9245
|
} else
|
|
9246
9246
|
i.headers.set("Origin", "arctic");
|
|
9247
|
-
return await
|
|
9247
|
+
return await Jr(i);
|
|
9248
9248
|
}
|
|
9249
9249
|
}
|
|
9250
|
-
const
|
|
9250
|
+
const pi = o.object({
|
|
9251
9251
|
iss: o.string().url(),
|
|
9252
9252
|
sub: o.string(),
|
|
9253
9253
|
aud: o.string(),
|
|
@@ -9273,7 +9273,7 @@ const ui = o.object({
|
|
|
9273
9273
|
c_hash: o.string().optional()
|
|
9274
9274
|
// Code hash
|
|
9275
9275
|
}).passthrough();
|
|
9276
|
-
|
|
9276
|
+
pi.omit({
|
|
9277
9277
|
iat: !0,
|
|
9278
9278
|
auth_time: !0,
|
|
9279
9279
|
nonce: !0,
|
|
@@ -9346,7 +9346,7 @@ async function h2(t, e, n) {
|
|
|
9346
9346
|
).validateAuthorizationCode(n), c = Mo(a.idToken());
|
|
9347
9347
|
if (!c)
|
|
9348
9348
|
throw new Error("Invalid ID token");
|
|
9349
|
-
const l =
|
|
9349
|
+
const l = pi.parse(c.payload);
|
|
9350
9350
|
return {
|
|
9351
9351
|
sub: l.sub,
|
|
9352
9352
|
email: l.email,
|
|
@@ -9507,7 +9507,7 @@ async function S2(t, e, n, r) {
|
|
|
9507
9507
|
).validateAuthorizationCode(n, r), c = Mo(a.idToken());
|
|
9508
9508
|
if (!c)
|
|
9509
9509
|
throw new Error("Invalid ID token");
|
|
9510
|
-
const l =
|
|
9510
|
+
const l = pi.parse(c.payload);
|
|
9511
9511
|
return {
|
|
9512
9512
|
sub: l.sub,
|
|
9513
9513
|
email: l.email,
|
|
@@ -9596,7 +9596,7 @@ async function j2(t, e, n) {
|
|
|
9596
9596
|
), a = Mo(s.idToken());
|
|
9597
9597
|
if (!a)
|
|
9598
9598
|
throw new Error("Invalid ID token");
|
|
9599
|
-
const c =
|
|
9599
|
+
const c = pi.parse(a.payload);
|
|
9600
9600
|
if (typeof c.msn != "string")
|
|
9601
9601
|
throw new Error("msn not available in id token");
|
|
9602
9602
|
const l = await fetch(
|
|
@@ -9746,7 +9746,7 @@ async function M2(t, e, n, r) {
|
|
|
9746
9746
|
).validateAuthorizationCode(n, r), l = Mo(c.idToken());
|
|
9747
9747
|
if (!l)
|
|
9748
9748
|
throw new Error("Invalid ID token");
|
|
9749
|
-
const d =
|
|
9749
|
+
const d = pi.parse(l.payload);
|
|
9750
9750
|
return t.set("log", `Microsoft user: ${JSON.stringify(d)}`), {
|
|
9751
9751
|
sub: d.sub,
|
|
9752
9752
|
email: d.email,
|
|
@@ -9828,7 +9828,7 @@ async function V2(t, e, n, r) {
|
|
|
9828
9828
|
if (c.data.id_token) {
|
|
9829
9829
|
const d = Mo(c.idToken());
|
|
9830
9830
|
if (d?.payload) {
|
|
9831
|
-
const u =
|
|
9831
|
+
const u = pi.passthrough().parse(d.payload);
|
|
9832
9832
|
return {
|
|
9833
9833
|
sub: u.sub,
|
|
9834
9834
|
email: u.email,
|
|
@@ -11025,7 +11025,7 @@ function i3() {
|
|
|
11025
11025
|
if (G(C) || (C = Lt(C)), !re(S))
|
|
11026
11026
|
throw new TypeError();
|
|
11027
11027
|
G(C) || (C = Lt(C));
|
|
11028
|
-
var L =
|
|
11028
|
+
var L = Si(
|
|
11029
11029
|
S,
|
|
11030
11030
|
C,
|
|
11031
11031
|
/*Create*/
|
|
@@ -11064,7 +11064,7 @@ function i3() {
|
|
|
11064
11064
|
return wt(Z) ? !1 : en($, Z, C);
|
|
11065
11065
|
}
|
|
11066
11066
|
function Ue($, S, C) {
|
|
11067
|
-
var L =
|
|
11067
|
+
var L = Si(
|
|
11068
11068
|
S,
|
|
11069
11069
|
C,
|
|
11070
11070
|
/*Create*/
|
|
@@ -11081,7 +11081,7 @@ function i3() {
|
|
|
11081
11081
|
return tt($, Z, C);
|
|
11082
11082
|
}
|
|
11083
11083
|
function Rt($, S, C) {
|
|
11084
|
-
var L =
|
|
11084
|
+
var L = Si(
|
|
11085
11085
|
S,
|
|
11086
11086
|
C,
|
|
11087
11087
|
/*Create*/
|
|
@@ -11091,7 +11091,7 @@ function i3() {
|
|
|
11091
11091
|
return L.OrdinaryGetOwnMetadata($, S, C);
|
|
11092
11092
|
}
|
|
11093
11093
|
function Bt($, S, C, L) {
|
|
11094
|
-
var Z =
|
|
11094
|
+
var Z = Si(
|
|
11095
11095
|
C,
|
|
11096
11096
|
L,
|
|
11097
11097
|
/*Create*/
|
|
@@ -11119,7 +11119,7 @@ function i3() {
|
|
|
11119
11119
|
return Pe;
|
|
11120
11120
|
}
|
|
11121
11121
|
function Re($, S) {
|
|
11122
|
-
var C =
|
|
11122
|
+
var C = Si(
|
|
11123
11123
|
$,
|
|
11124
11124
|
S,
|
|
11125
11125
|
/*create*/
|
|
@@ -11466,7 +11466,7 @@ function i3() {
|
|
|
11466
11466
|
};
|
|
11467
11467
|
return ae;
|
|
11468
11468
|
}
|
|
11469
|
-
function
|
|
11469
|
+
function Si($, S, C) {
|
|
11470
11470
|
var L = I.getProvider($, S);
|
|
11471
11471
|
if (!G(L))
|
|
11472
11472
|
return L;
|
|
@@ -11970,7 +11970,7 @@ function Bm(t, e) {
|
|
|
11970
11970
|
return !1;
|
|
11971
11971
|
return !0;
|
|
11972
11972
|
}
|
|
11973
|
-
function
|
|
11973
|
+
function Xr(t, e) {
|
|
11974
11974
|
let n = 0;
|
|
11975
11975
|
if (t.length === 1)
|
|
11976
11976
|
return t[0];
|
|
@@ -12021,10 +12021,10 @@ function Lm() {
|
|
|
12021
12021
|
for (let c = 0; c < this.valueHex.byteLength; c++)
|
|
12022
12022
|
n[c] = 0;
|
|
12023
12023
|
n[0] = t[0] & 128;
|
|
12024
|
-
const r =
|
|
12024
|
+
const r = Xr(n, 8), i = new ArrayBuffer(this.valueHex.byteLength), s = new Uint8Array(i);
|
|
12025
12025
|
for (let c = 0; c < this.valueHex.byteLength; c++)
|
|
12026
12026
|
s[c] = t[c];
|
|
12027
|
-
return s[0] &= 127,
|
|
12027
|
+
return s[0] &= 127, Xr(s, 8) - r;
|
|
12028
12028
|
}
|
|
12029
12029
|
function d3(t) {
|
|
12030
12030
|
const e = t < 0 ? t * -1 : t;
|
|
@@ -12098,7 +12098,7 @@ class Ma {
|
|
|
12098
12098
|
return Tu(this.items);
|
|
12099
12099
|
}
|
|
12100
12100
|
}
|
|
12101
|
-
const
|
|
12101
|
+
const Ci = [new Uint8Array([1])], eh = "0123456789", Qc = "name", th = "valueHexView", p3 = "isHexOnly", f3 = "idBlock", h3 = "tagClass", g3 = "tagNumber", m3 = "isConstructed", _3 = "fromBER", y3 = "toBER", w3 = "local", it = "", Wt = new ArrayBuffer(0), za = new Uint8Array(0), bo = "EndOfContent", Um = "OCTET STRING", Dm = "BIT STRING";
|
|
12102
12102
|
function Jt(t) {
|
|
12103
12103
|
var e;
|
|
12104
12104
|
return e = class extends t {
|
|
@@ -12259,7 +12259,7 @@ class Mm extends Jt(br) {
|
|
|
12259
12259
|
const f = new Uint8Array(l);
|
|
12260
12260
|
for (let g = 0; g < l; g++)
|
|
12261
12261
|
f[g] = d[g];
|
|
12262
|
-
d = this.valueHexView = new Uint8Array(l), d.set(f), this.blockLength <= 9 ? this.tagNumber =
|
|
12262
|
+
d = this.valueHexView = new Uint8Array(l), d.set(f), this.blockLength <= 9 ? this.tagNumber = Xr(d, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
|
|
12263
12263
|
}
|
|
12264
12264
|
if (this.tagClass === 1 && this.isConstructed)
|
|
12265
12265
|
switch (this.tagNumber) {
|
|
@@ -12314,7 +12314,7 @@ class zm extends br {
|
|
|
12314
12314
|
if (a + 1 > s.length)
|
|
12315
12315
|
return this.error = "End of input reached before message was fully decoded", -1;
|
|
12316
12316
|
const c = n + 1, l = i.subarray(c, c + a);
|
|
12317
|
-
return l[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length =
|
|
12317
|
+
return l[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length = Xr(l, 8), this.longFormUsed && this.length <= 127 && this.warnings.push("Unnecessary usage of long length form"), this.blockLength = a + 1, n + this.blockLength;
|
|
12318
12318
|
}
|
|
12319
12319
|
toBER(e = !1) {
|
|
12320
12320
|
let n, r;
|
|
@@ -12442,7 +12442,7 @@ function b3(t, e) {
|
|
|
12442
12442
|
const n = new e();
|
|
12443
12443
|
return n.idBlock = t.idBlock, n.lenBlock = t.lenBlock, n.warnings = t.warnings, n.valueBeforeDecodeView = t.valueBeforeDecodeView, n;
|
|
12444
12444
|
}
|
|
12445
|
-
function
|
|
12445
|
+
function fi(t, e = 0, n = t.length) {
|
|
12446
12446
|
const r = e;
|
|
12447
12447
|
let i = new qe({}, et);
|
|
12448
12448
|
const s = new br();
|
|
@@ -12603,7 +12603,7 @@ function qr(t) {
|
|
|
12603
12603
|
result: e
|
|
12604
12604
|
};
|
|
12605
12605
|
}
|
|
12606
|
-
return
|
|
12606
|
+
return fi(B.toUint8Array(t).slice(), 0, t.byteLength);
|
|
12607
12607
|
}
|
|
12608
12608
|
function v3(t, e) {
|
|
12609
12609
|
return t ? 1 : e;
|
|
@@ -12620,7 +12620,7 @@ class jn extends et {
|
|
|
12620
12620
|
return this.warnings.push("Zero buffer length"), n;
|
|
12621
12621
|
let s = n;
|
|
12622
12622
|
for (; v3(this.isIndefiniteForm, r) > 0; ) {
|
|
12623
|
-
const a =
|
|
12623
|
+
const a = fi(i, s, r);
|
|
12624
12624
|
if (a.offset === -1)
|
|
12625
12625
|
return this.error = a.result.error, this.warnings.concat(a.result.warnings), -1;
|
|
12626
12626
|
if (s = a.offset, this.blockLength += a.result.blockLength, r -= a.result.blockLength, this.value.push(a.result), this.isIndefiniteForm && a.result.constructor.NAME === bo)
|
|
@@ -12815,7 +12815,7 @@ let Yn = class extends qe {
|
|
|
12815
12815
|
const s = (e instanceof ArrayBuffer ? new Uint8Array(e) : e).subarray(n, n + r);
|
|
12816
12816
|
try {
|
|
12817
12817
|
if (s.byteLength) {
|
|
12818
|
-
const a =
|
|
12818
|
+
const a = fi(s, 0, s.byteLength);
|
|
12819
12819
|
a.offset !== -1 && a.offset === r && (this.valueBlock.value = [a.result]);
|
|
12820
12820
|
}
|
|
12821
12821
|
} catch {
|
|
@@ -12878,7 +12878,7 @@ class Ym extends Jt(jn) {
|
|
|
12878
12878
|
const c = a.subarray(1);
|
|
12879
12879
|
try {
|
|
12880
12880
|
if (c.byteLength) {
|
|
12881
|
-
const l =
|
|
12881
|
+
const l = fi(c, 0, c.byteLength);
|
|
12882
12882
|
l.offset !== -1 && l.offset === r - 1 && (this.value = [l.result]);
|
|
12883
12883
|
}
|
|
12884
12884
|
} catch {
|
|
@@ -12954,17 +12954,17 @@ function $3(t, e) {
|
|
|
12954
12954
|
return n[0] > 0 && (s = Vl(n, s)), s;
|
|
12955
12955
|
}
|
|
12956
12956
|
function nh(t) {
|
|
12957
|
-
if (t >=
|
|
12958
|
-
for (let e =
|
|
12957
|
+
if (t >= Ci.length)
|
|
12958
|
+
for (let e = Ci.length; e <= t; e++) {
|
|
12959
12959
|
const n = new Uint8Array([0]);
|
|
12960
|
-
let r =
|
|
12960
|
+
let r = Ci[e - 1].slice(0);
|
|
12961
12961
|
for (let i = r.length - 1; i >= 0; i--) {
|
|
12962
12962
|
const s = new Uint8Array([(r[i] << 1) + n[0]]);
|
|
12963
12963
|
n[0] = s[0] / 10, r[i] = s[0] % 10;
|
|
12964
12964
|
}
|
|
12965
|
-
n[0] > 0 && (r = Vl(n, r)),
|
|
12965
|
+
n[0] > 0 && (r = Vl(n, r)), Ci.push(r);
|
|
12966
12966
|
}
|
|
12967
|
-
return
|
|
12967
|
+
return Ci[t];
|
|
12968
12968
|
}
|
|
12969
12969
|
function k3(t, e) {
|
|
12970
12970
|
let n = 0;
|
|
@@ -13055,8 +13055,8 @@ Object.defineProperty(e_.prototype, "valueHex", {
|
|
|
13055
13055
|
return this.valueHexView.slice().buffer;
|
|
13056
13056
|
}
|
|
13057
13057
|
});
|
|
13058
|
-
var
|
|
13059
|
-
class
|
|
13058
|
+
var so;
|
|
13059
|
+
class hi extends qe {
|
|
13060
13060
|
constructor(e = {}) {
|
|
13061
13061
|
super(e, Uu), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
13062
13062
|
}
|
|
@@ -13073,14 +13073,14 @@ class fi extends qe {
|
|
|
13073
13073
|
u[0] |= 128, r.write(u);
|
|
13074
13074
|
} else
|
|
13075
13075
|
s[0] & 128 && r.write(new Uint8Array([0])), r.write(s);
|
|
13076
|
-
return new
|
|
13076
|
+
return new so({ valueHex: r.final() });
|
|
13077
13077
|
}
|
|
13078
13078
|
convertToDER() {
|
|
13079
|
-
const e = new
|
|
13079
|
+
const e = new so({ valueHex: this.valueBlock.valueHexView });
|
|
13080
13080
|
return e.valueBlock.toDER(), e;
|
|
13081
13081
|
}
|
|
13082
13082
|
convertFromDER() {
|
|
13083
|
-
return new
|
|
13083
|
+
return new so({
|
|
13084
13084
|
valueHex: this.valueBlock.valueHexView[0] === 0 ? this.valueBlock.valueHexView.subarray(1) : this.valueBlock.valueHexView
|
|
13085
13085
|
});
|
|
13086
13086
|
}
|
|
@@ -13088,11 +13088,11 @@ class fi extends qe {
|
|
|
13088
13088
|
return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
|
|
13089
13089
|
}
|
|
13090
13090
|
}
|
|
13091
|
-
|
|
13092
|
-
z.Integer =
|
|
13093
|
-
|
|
13091
|
+
so = hi;
|
|
13092
|
+
z.Integer = so;
|
|
13093
|
+
hi.NAME = "INTEGER";
|
|
13094
13094
|
var t_;
|
|
13095
|
-
class Fa extends
|
|
13095
|
+
class Fa extends hi {
|
|
13096
13096
|
constructor(e = {}) {
|
|
13097
13097
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
13098
13098
|
}
|
|
@@ -13117,7 +13117,7 @@ class Kl extends Jt(et) {
|
|
|
13117
13117
|
const a = new Uint8Array(this.blockLength);
|
|
13118
13118
|
for (let c = 0; c < this.blockLength; c++)
|
|
13119
13119
|
a[c] = this.valueHexView[c];
|
|
13120
|
-
return this.valueHexView = a, (s[this.blockLength - 1] & 128) !== 0 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec =
|
|
13120
|
+
return this.valueHexView = a, (s[this.blockLength - 1] & 128) !== 0 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Xr(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
|
|
13121
13121
|
}
|
|
13122
13122
|
set valueBigInt(e) {
|
|
13123
13123
|
Hs();
|
|
@@ -13292,7 +13292,7 @@ class Gl extends Jt(br) {
|
|
|
13292
13292
|
const a = new Uint8Array(this.blockLength);
|
|
13293
13293
|
for (let c = 0; c < this.blockLength; c++)
|
|
13294
13294
|
a[c] = this.valueHexView[c];
|
|
13295
|
-
return this.valueHexView = a, (s[this.blockLength - 1] & 128) !== 0 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec =
|
|
13295
|
+
return this.valueHexView = a, (s[this.blockLength - 1] & 128) !== 0 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Xr(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
|
|
13296
13296
|
}
|
|
13297
13297
|
toBER(e) {
|
|
13298
13298
|
if (this.isHexOnly) {
|
|
@@ -14050,7 +14050,7 @@ function An(t, e, n) {
|
|
|
14050
14050
|
};
|
|
14051
14051
|
}
|
|
14052
14052
|
if (n.primitiveSchema && th in e.valueBlock) {
|
|
14053
|
-
const s =
|
|
14053
|
+
const s = fi(e.valueBlock.valueHexView);
|
|
14054
14054
|
if (s.offset === -1) {
|
|
14055
14055
|
const a = {
|
|
14056
14056
|
verified: !1,
|
|
@@ -14071,7 +14071,7 @@ function S3(t, e) {
|
|
|
14071
14071
|
verified: !1,
|
|
14072
14072
|
result: { error: "Wrong ASN.1 schema type" }
|
|
14073
14073
|
};
|
|
14074
|
-
const n =
|
|
14074
|
+
const n = fi(B.toUint8Array(t));
|
|
14075
14075
|
return n.offset === -1 ? {
|
|
14076
14076
|
verified: !1,
|
|
14077
14077
|
result: n.result
|
|
@@ -14098,7 +14098,7 @@ const O_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14098
14098
|
GraphicString: Ya,
|
|
14099
14099
|
HexBlock: Jt,
|
|
14100
14100
|
IA5String: Za,
|
|
14101
|
-
Integer:
|
|
14101
|
+
Integer: hi,
|
|
14102
14102
|
Null: ir,
|
|
14103
14103
|
NumericString: Ga,
|
|
14104
14104
|
ObjectIdentifier: Ha,
|
|
@@ -14206,13 +14206,13 @@ const A3 = {
|
|
|
14206
14206
|
}
|
|
14207
14207
|
}, E3 = {
|
|
14208
14208
|
fromASN: (t) => t.valueBlock.valueHexView.byteLength >= 4 ? t.valueBlock.toString() : t.valueBlock.valueDec,
|
|
14209
|
-
toASN: (t) => new
|
|
14209
|
+
toASN: (t) => new hi({ value: +t })
|
|
14210
14210
|
}, C3 = {
|
|
14211
14211
|
fromASN: (t) => t.valueBlock.valueDec,
|
|
14212
14212
|
toASN: (t) => new Fa({ value: t })
|
|
14213
14213
|
}, we = {
|
|
14214
14214
|
fromASN: (t) => t.valueBlock.valueHexView,
|
|
14215
|
-
toASN: (t) => new
|
|
14215
|
+
toASN: (t) => new hi({ valueHex: t })
|
|
14216
14216
|
}, N3 = {
|
|
14217
14217
|
fromASN: (t) => t.valueBlock.valueHexView,
|
|
14218
14218
|
toASN: (t) => new Qn({ valueHex: t })
|
|
@@ -14245,7 +14245,7 @@ const P_ = yt(mn), P3 = yt(Va), T3 = yt(Ka), R3 = yt(Ga), B3 = yt(Wa), L3 = yt(J
|
|
|
14245
14245
|
fromASN: () => null,
|
|
14246
14246
|
toASN: () => new ir()
|
|
14247
14247
|
};
|
|
14248
|
-
function
|
|
14248
|
+
function ao(t) {
|
|
14249
14249
|
switch (t) {
|
|
14250
14250
|
case b.Any:
|
|
14251
14251
|
return A3;
|
|
@@ -14410,14 +14410,14 @@ const De = new W3(), P = (t) => (e) => {
|
|
|
14410
14410
|
De.has(e.constructor) ? r = De.get(e.constructor) : (r = De.createDefault(e.constructor), De.set(e.constructor, r));
|
|
14411
14411
|
const i = Object.assign({}, t);
|
|
14412
14412
|
if (typeof i.type == "number" && !i.converter) {
|
|
14413
|
-
const s =
|
|
14413
|
+
const s = ao(t.type);
|
|
14414
14414
|
if (!s)
|
|
14415
14415
|
throw new Error(`Cannot get default converter for property '${n}' of ${e.constructor.name}`);
|
|
14416
14416
|
i.converter = s;
|
|
14417
14417
|
}
|
|
14418
14418
|
i.raw = t.raw, r.items[n] = i;
|
|
14419
14419
|
};
|
|
14420
|
-
class
|
|
14420
|
+
class Ni extends Error {
|
|
14421
14421
|
constructor() {
|
|
14422
14422
|
super(...arguments), this.schemas = [];
|
|
14423
14423
|
}
|
|
@@ -14443,7 +14443,7 @@ class J3 {
|
|
|
14443
14443
|
const a = this.handleSequenceTypes(e, r, n, i), c = new n();
|
|
14444
14444
|
return T_(n) ? this.handleArrayTypes(e, r, n) : (this.processSchemaItems(r, a, c), c);
|
|
14445
14445
|
} catch (r) {
|
|
14446
|
-
throw r instanceof
|
|
14446
|
+
throw r instanceof Ni && r.schemas.push(n.name), r;
|
|
14447
14447
|
}
|
|
14448
14448
|
}
|
|
14449
14449
|
static handleChoiceTypes(e, n, r, i) {
|
|
@@ -14480,12 +14480,12 @@ class J3 {
|
|
|
14480
14480
|
if (n.type === j.Sequence) {
|
|
14481
14481
|
const s = An({}, e, i);
|
|
14482
14482
|
if (!s.verified)
|
|
14483
|
-
throw new
|
|
14483
|
+
throw new Ni(`Data does not match to ${r.name} ASN1 schema.${s.result.error ? ` ${s.result.error}` : ""}`);
|
|
14484
14484
|
return s;
|
|
14485
14485
|
} else {
|
|
14486
14486
|
const s = An({}, e, i);
|
|
14487
14487
|
if (!s.verified)
|
|
14488
|
-
throw new
|
|
14488
|
+
throw new Ni(`Data does not match to ${r.name} ASN1 schema.${s.result.error ? ` ${s.result.error}` : ""}`);
|
|
14489
14489
|
return s;
|
|
14490
14490
|
}
|
|
14491
14491
|
}
|
|
@@ -14496,7 +14496,7 @@ class J3 {
|
|
|
14496
14496
|
s.valueBlock && s.valueBlock.value && Array.isArray(s.valueBlock.value) && (i = s.valueBlock.value);
|
|
14497
14497
|
}
|
|
14498
14498
|
if (typeof r.type == "number") {
|
|
14499
|
-
const s =
|
|
14499
|
+
const s = ao(r.type);
|
|
14500
14500
|
if (!s)
|
|
14501
14501
|
throw new Error(`No converter for ASN.1 type ${r.type}`);
|
|
14502
14502
|
return i.filter((a) => a && a.valueBlock).map((a) => {
|
|
@@ -14516,7 +14516,7 @@ class J3 {
|
|
|
14516
14516
|
}).filter((s) => s !== void 0);
|
|
14517
14517
|
}
|
|
14518
14518
|
static processPrimitiveField(e, n) {
|
|
14519
|
-
const r =
|
|
14519
|
+
const r = ao(n.type);
|
|
14520
14520
|
if (!r)
|
|
14521
14521
|
throw new Error(`No converter for ASN.1 type ${n.type}`);
|
|
14522
14522
|
return r.fromASN(e);
|
|
@@ -14528,7 +14528,7 @@ class J3 {
|
|
|
14528
14528
|
try {
|
|
14529
14529
|
return { processed: !0, value: this.fromASN(e, n.type) };
|
|
14530
14530
|
} catch (r) {
|
|
14531
|
-
if (r instanceof
|
|
14531
|
+
if (r instanceof Ni && /Wrong values for Choice type/.test(r.message))
|
|
14532
14532
|
return { processed: !1 };
|
|
14533
14533
|
throw r;
|
|
14534
14534
|
}
|
|
@@ -14538,7 +14538,7 @@ class J3 {
|
|
|
14538
14538
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
14539
14539
|
const i = n.itemType;
|
|
14540
14540
|
if (typeof i == "number") {
|
|
14541
|
-
const s =
|
|
14541
|
+
const s = ao(i);
|
|
14542
14542
|
if (!s)
|
|
14543
14543
|
throw new Error(`Cannot get default converter for array item of ${r.name} ASN1 schema`);
|
|
14544
14544
|
return r.from(e.valueBlock.value, (a) => s.fromASN(a));
|
|
@@ -14603,7 +14603,7 @@ class J3 {
|
|
|
14603
14603
|
try {
|
|
14604
14604
|
return this.fromASN(i, r);
|
|
14605
14605
|
} catch (s) {
|
|
14606
|
-
if (s instanceof
|
|
14606
|
+
if (s instanceof Ni && /Wrong values for Choice type/.test(s.message))
|
|
14607
14607
|
return;
|
|
14608
14608
|
throw s;
|
|
14609
14609
|
}
|
|
@@ -14648,7 +14648,7 @@ class Ku {
|
|
|
14648
14648
|
if (!Array.isArray(e))
|
|
14649
14649
|
throw new TypeError("Parameter 1 should be type of Array.");
|
|
14650
14650
|
if (typeof r.itemType == "number") {
|
|
14651
|
-
const a =
|
|
14651
|
+
const a = ao(r.itemType);
|
|
14652
14652
|
if (!a)
|
|
14653
14653
|
throw new Error(`Cannot get default converter for array item of ${n.name} ASN1 schema`);
|
|
14654
14654
|
i = e.map((c) => a.toASN(c));
|
|
@@ -14907,7 +14907,7 @@ h([
|
|
|
14907
14907
|
Fe = h([
|
|
14908
14908
|
P({ type: j.Choice })
|
|
14909
14909
|
], Fe);
|
|
14910
|
-
let
|
|
14910
|
+
let Zr = class extends Fe {
|
|
14911
14911
|
constructor(e = {}) {
|
|
14912
14912
|
super(e), Object.assign(this, e);
|
|
14913
14913
|
}
|
|
@@ -14917,39 +14917,39 @@ let Xr = class extends Fe {
|
|
|
14917
14917
|
};
|
|
14918
14918
|
h([
|
|
14919
14919
|
m({ type: b.IA5String })
|
|
14920
|
-
],
|
|
14920
|
+
], Zr.prototype, "ia5String", void 0);
|
|
14921
14921
|
h([
|
|
14922
14922
|
m({ type: b.Any })
|
|
14923
|
-
],
|
|
14924
|
-
|
|
14923
|
+
], Zr.prototype, "anyValue", void 0);
|
|
14924
|
+
Zr = h([
|
|
14925
14925
|
P({ type: j.Choice })
|
|
14926
|
-
],
|
|
14926
|
+
], Zr);
|
|
14927
14927
|
class rc {
|
|
14928
14928
|
constructor(e = {}) {
|
|
14929
|
-
this.type = "", this.value = new
|
|
14929
|
+
this.type = "", this.value = new Zr(), Object.assign(this, e);
|
|
14930
14930
|
}
|
|
14931
14931
|
}
|
|
14932
14932
|
h([
|
|
14933
14933
|
m({ type: b.ObjectIdentifier })
|
|
14934
14934
|
], rc.prototype, "type", void 0);
|
|
14935
14935
|
h([
|
|
14936
|
-
m({ type:
|
|
14936
|
+
m({ type: Zr })
|
|
14937
14937
|
], rc.prototype, "value", void 0);
|
|
14938
|
-
let
|
|
14938
|
+
let Yr = Wl = class extends fe {
|
|
14939
14939
|
constructor(e) {
|
|
14940
14940
|
super(e), Object.setPrototypeOf(this, Wl.prototype);
|
|
14941
14941
|
}
|
|
14942
14942
|
};
|
|
14943
|
-
|
|
14943
|
+
Yr = Wl = h([
|
|
14944
14944
|
P({ type: j.Set, itemType: rc })
|
|
14945
|
-
],
|
|
14945
|
+
], Yr);
|
|
14946
14946
|
let Zl = Jl = class extends fe {
|
|
14947
14947
|
constructor(e) {
|
|
14948
14948
|
super(e), Object.setPrototypeOf(this, Jl.prototype);
|
|
14949
14949
|
}
|
|
14950
14950
|
};
|
|
14951
14951
|
Zl = Jl = h([
|
|
14952
|
-
P({ type: j.Sequence, itemType:
|
|
14952
|
+
P({ type: j.Sequence, itemType: Yr })
|
|
14953
14953
|
], Zl);
|
|
14954
14954
|
let Ne = Xl = class extends Zl {
|
|
14955
14955
|
constructor(e) {
|
|
@@ -15025,7 +15025,7 @@ h([
|
|
|
15025
15025
|
ne = h([
|
|
15026
15026
|
P({ type: j.Choice })
|
|
15027
15027
|
], ne);
|
|
15028
|
-
const Wu = "1.3.6.1.5.5.7", Z3 = `${Wu}.1`,
|
|
15028
|
+
const Wu = "1.3.6.1.5.5.7", Z3 = `${Wu}.1`, gi = `${Wu}.3`, ic = `${Wu}.48`, ih = `${ic}.1`, oh = `${ic}.2`, sh = `${ic}.3`, ah = `${ic}.5`, _n = "2.5.29";
|
|
15029
15029
|
var Yl;
|
|
15030
15030
|
const Ql = `${Z3}.1`;
|
|
15031
15031
|
class Wo {
|
|
@@ -15231,32 +15231,32 @@ h([
|
|
|
15231
15231
|
m({ type: ne, context: 0, repeated: "sequence", implicit: !0 })
|
|
15232
15232
|
], sr.prototype, "fullName", void 0);
|
|
15233
15233
|
h([
|
|
15234
|
-
m({ type:
|
|
15234
|
+
m({ type: Yr, context: 1, implicit: !0 })
|
|
15235
15235
|
], sr.prototype, "nameRelativeToCRLIssuer", void 0);
|
|
15236
15236
|
sr = h([
|
|
15237
15237
|
P({ type: j.Choice })
|
|
15238
15238
|
], sr);
|
|
15239
|
-
class
|
|
15239
|
+
class mi {
|
|
15240
15240
|
constructor(e = {}) {
|
|
15241
15241
|
Object.assign(this, e);
|
|
15242
15242
|
}
|
|
15243
15243
|
}
|
|
15244
15244
|
h([
|
|
15245
15245
|
m({ type: sr, context: 0, optional: !0 })
|
|
15246
|
-
],
|
|
15246
|
+
], mi.prototype, "distributionPoint", void 0);
|
|
15247
15247
|
h([
|
|
15248
15248
|
m({ type: L_, context: 1, optional: !0, implicit: !0 })
|
|
15249
|
-
],
|
|
15249
|
+
], mi.prototype, "reasons", void 0);
|
|
15250
15250
|
h([
|
|
15251
15251
|
m({ type: ne, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
15252
|
-
],
|
|
15252
|
+
], mi.prototype, "cRLIssuer", void 0);
|
|
15253
15253
|
let Fr = id = class extends fe {
|
|
15254
15254
|
constructor(e) {
|
|
15255
15255
|
super(e), Object.setPrototypeOf(this, id.prototype);
|
|
15256
15256
|
}
|
|
15257
15257
|
};
|
|
15258
15258
|
Fr = id = h([
|
|
15259
|
-
P({ type: j.Sequence, itemType:
|
|
15259
|
+
P({ type: j.Sequence, itemType: mi })
|
|
15260
15260
|
], Fr);
|
|
15261
15261
|
var sd;
|
|
15262
15262
|
let dh = sd = class extends Fr {
|
|
@@ -15265,7 +15265,7 @@ let dh = sd = class extends Fr {
|
|
|
15265
15265
|
}
|
|
15266
15266
|
};
|
|
15267
15267
|
dh = sd = h([
|
|
15268
|
-
P({ type: j.Sequence, itemType:
|
|
15268
|
+
P({ type: j.Sequence, itemType: mi })
|
|
15269
15269
|
], dh);
|
|
15270
15270
|
class Je {
|
|
15271
15271
|
constructor(e = {}) {
|
|
@@ -15311,16 +15311,16 @@ h([
|
|
|
15311
15311
|
implicit: !0
|
|
15312
15312
|
})
|
|
15313
15313
|
], Je.prototype, "onlyContainsAttributeCerts", void 0);
|
|
15314
|
-
var
|
|
15314
|
+
var co;
|
|
15315
15315
|
(function(t) {
|
|
15316
15316
|
t[t.unspecified = 0] = "unspecified", t[t.keyCompromise = 1] = "keyCompromise", t[t.cACompromise = 2] = "cACompromise", t[t.affiliationChanged = 3] = "affiliationChanged", t[t.superseded = 4] = "superseded", t[t.cessationOfOperation = 5] = "cessationOfOperation", t[t.certificateHold = 6] = "certificateHold", t[t.removeFromCRL = 8] = "removeFromCRL", t[t.privilegeWithdrawn = 9] = "privilegeWithdrawn", t[t.aACompromise = 10] = "aACompromise";
|
|
15317
|
-
})(
|
|
15317
|
+
})(co || (co = {}));
|
|
15318
15318
|
let ad = class {
|
|
15319
|
-
constructor(e =
|
|
15320
|
-
this.reason =
|
|
15319
|
+
constructor(e = co.unspecified) {
|
|
15320
|
+
this.reason = co.unspecified, this.reason = e;
|
|
15321
15321
|
}
|
|
15322
15322
|
toJSON() {
|
|
15323
|
-
return
|
|
15323
|
+
return co[this.reason];
|
|
15324
15324
|
}
|
|
15325
15325
|
toString() {
|
|
15326
15326
|
return this.toJSON();
|
|
@@ -15342,7 +15342,7 @@ let Zs = cd = class extends fe {
|
|
|
15342
15342
|
Zs = cd = h([
|
|
15343
15343
|
P({ type: j.Sequence, itemType: b.ObjectIdentifier })
|
|
15344
15344
|
], Zs);
|
|
15345
|
-
const Y3 = `${
|
|
15345
|
+
const Y3 = `${gi}.1`, Q3 = `${gi}.2`, e4 = `${gi}.3`, t4 = `${gi}.4`, n4 = `${gi}.8`, r4 = `${gi}.9`;
|
|
15346
15346
|
let ld = class {
|
|
15347
15347
|
constructor(e = new ArrayBuffer(0)) {
|
|
15348
15348
|
this.value = e;
|
|
@@ -15510,14 +15510,14 @@ h([
|
|
|
15510
15510
|
h([
|
|
15511
15511
|
m({ type: b.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
15512
15512
|
], V_.prototype, "notAfter", void 0);
|
|
15513
|
-
var
|
|
15513
|
+
var lo;
|
|
15514
15514
|
(function(t) {
|
|
15515
15515
|
t[t.keyUpdateAllowed = 1] = "keyUpdateAllowed", t[t.newExtensions = 2] = "newExtensions", t[t.pKIXCertificate = 4] = "pKIXCertificate";
|
|
15516
|
-
})(
|
|
15516
|
+
})(lo || (lo = {}));
|
|
15517
15517
|
class K_ extends nc {
|
|
15518
15518
|
toJSON() {
|
|
15519
15519
|
const e = [], n = this.toNumber();
|
|
15520
|
-
return n &
|
|
15520
|
+
return n & lo.pKIXCertificate && e.push("pKIXCertificate"), n & lo.newExtensions && e.push("newExtensions"), n & lo.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
|
|
15521
15521
|
}
|
|
15522
15522
|
toString() {
|
|
15523
15523
|
return `[${this.toJSON().join(", ")}]`;
|
|
@@ -15759,31 +15759,31 @@ h([
|
|
|
15759
15759
|
h([
|
|
15760
15760
|
m({ type: b.BitString })
|
|
15761
15761
|
], ep.prototype, "signature", void 0);
|
|
15762
|
-
class
|
|
15762
|
+
class _i {
|
|
15763
15763
|
constructor(e = {}) {
|
|
15764
15764
|
this.issuer = new Ne(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
|
|
15765
15765
|
}
|
|
15766
15766
|
}
|
|
15767
15767
|
h([
|
|
15768
15768
|
m({ type: Ne })
|
|
15769
|
-
],
|
|
15769
|
+
], _i.prototype, "issuer", void 0);
|
|
15770
15770
|
h([
|
|
15771
15771
|
m({ type: b.Integer, converter: we })
|
|
15772
|
-
],
|
|
15773
|
-
let
|
|
15772
|
+
], _i.prototype, "serialNumber", void 0);
|
|
15773
|
+
let Qr = class {
|
|
15774
15774
|
constructor(e = {}) {
|
|
15775
15775
|
Object.assign(this, e);
|
|
15776
15776
|
}
|
|
15777
15777
|
};
|
|
15778
15778
|
h([
|
|
15779
15779
|
m({ type: In, context: 0, implicit: !0 })
|
|
15780
|
-
],
|
|
15780
|
+
], Qr.prototype, "subjectKeyIdentifier", void 0);
|
|
15781
15781
|
h([
|
|
15782
|
-
m({ type:
|
|
15783
|
-
],
|
|
15784
|
-
|
|
15782
|
+
m({ type: _i })
|
|
15783
|
+
], Qr.prototype, "issuerAndSerialNumber", void 0);
|
|
15784
|
+
Qr = h([
|
|
15785
15785
|
P({ type: j.Choice })
|
|
15786
|
-
],
|
|
15786
|
+
], Qr);
|
|
15787
15787
|
var ln;
|
|
15788
15788
|
(function(t) {
|
|
15789
15789
|
t[t.v0 = 0] = "v0", t[t.v1 = 1] = "v1", t[t.v2 = 2] = "v2", t[t.v3 = 3] = "v3", t[t.v4 = 4] = "v4", t[t.v5 = 5] = "v5";
|
|
@@ -15818,35 +15818,35 @@ let wd = class extends M {
|
|
|
15818
15818
|
wd = h([
|
|
15819
15819
|
P({ type: j.Sequence })
|
|
15820
15820
|
], wd);
|
|
15821
|
-
let
|
|
15821
|
+
let yi = class {
|
|
15822
15822
|
constructor(e = {}) {
|
|
15823
15823
|
this.attrType = "", this.attrValues = [], Object.assign(this, e);
|
|
15824
15824
|
}
|
|
15825
15825
|
};
|
|
15826
15826
|
h([
|
|
15827
15827
|
m({ type: b.ObjectIdentifier })
|
|
15828
|
-
],
|
|
15828
|
+
], yi.prototype, "attrType", void 0);
|
|
15829
15829
|
h([
|
|
15830
15830
|
m({ type: b.Any, repeated: "set" })
|
|
15831
|
-
],
|
|
15831
|
+
], yi.prototype, "attrValues", void 0);
|
|
15832
15832
|
var bd;
|
|
15833
15833
|
class Xt {
|
|
15834
15834
|
constructor(e = {}) {
|
|
15835
|
-
this.version = ln.v0, this.sid = new
|
|
15835
|
+
this.version = ln.v0, this.sid = new Qr(), this.digestAlgorithm = new $o(), this.signatureAlgorithm = new Qs(), this.signature = new le(), Object.assign(this, e);
|
|
15836
15836
|
}
|
|
15837
15837
|
}
|
|
15838
15838
|
h([
|
|
15839
15839
|
m({ type: b.Integer })
|
|
15840
15840
|
], Xt.prototype, "version", void 0);
|
|
15841
15841
|
h([
|
|
15842
|
-
m({ type:
|
|
15842
|
+
m({ type: Qr })
|
|
15843
15843
|
], Xt.prototype, "sid", void 0);
|
|
15844
15844
|
h([
|
|
15845
15845
|
m({ type: $o })
|
|
15846
15846
|
], Xt.prototype, "digestAlgorithm", void 0);
|
|
15847
15847
|
h([
|
|
15848
15848
|
m({
|
|
15849
|
-
type:
|
|
15849
|
+
type: yi,
|
|
15850
15850
|
repeated: "set",
|
|
15851
15851
|
context: 0,
|
|
15852
15852
|
implicit: !0,
|
|
@@ -15861,7 +15861,7 @@ h([
|
|
|
15861
15861
|
m({ type: le })
|
|
15862
15862
|
], Xt.prototype, "signature", void 0);
|
|
15863
15863
|
h([
|
|
15864
|
-
m({ type:
|
|
15864
|
+
m({ type: yi, repeated: "set", context: 1, implicit: !0, optional: !0 })
|
|
15865
15865
|
], Xt.prototype, "unsignedAttrs", void 0);
|
|
15866
15866
|
let ta = bd = class extends fe {
|
|
15867
15867
|
constructor(e) {
|
|
@@ -15970,20 +15970,20 @@ h([
|
|
|
15970
15970
|
h([
|
|
15971
15971
|
m({ type: $r, context: 1, implicit: !0, optional: !0 })
|
|
15972
15972
|
], lc.prototype, "objectDigestInfo", void 0);
|
|
15973
|
-
let
|
|
15973
|
+
let ei = class {
|
|
15974
15974
|
constructor(e = {}) {
|
|
15975
15975
|
Object.assign(this, e);
|
|
15976
15976
|
}
|
|
15977
15977
|
};
|
|
15978
15978
|
h([
|
|
15979
15979
|
m({ type: ne, repeated: "sequence" })
|
|
15980
|
-
],
|
|
15980
|
+
], ei.prototype, "v1Form", void 0);
|
|
15981
15981
|
h([
|
|
15982
15982
|
m({ type: lc, context: 0, implicit: !0 })
|
|
15983
|
-
],
|
|
15984
|
-
|
|
15983
|
+
], ei.prototype, "v2Form", void 0);
|
|
15984
|
+
ei = h([
|
|
15985
15985
|
P({ type: j.Choice })
|
|
15986
|
-
],
|
|
15986
|
+
], ei);
|
|
15987
15987
|
class dc {
|
|
15988
15988
|
constructor(e = {}) {
|
|
15989
15989
|
this.notBeforeTime = /* @__PURE__ */ new Date(), this.notAfterTime = /* @__PURE__ */ new Date(), Object.assign(this, e);
|
|
@@ -16015,7 +16015,7 @@ var kd;
|
|
|
16015
16015
|
})(kd || (kd = {}));
|
|
16016
16016
|
class Tt {
|
|
16017
16017
|
constructor(e = {}) {
|
|
16018
|
-
this.version = kd.v2, this.holder = new Xo(), this.issuer = new
|
|
16018
|
+
this.version = kd.v2, this.holder = new Xo(), this.issuer = new ei(), this.signature = new M(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new dc(), this.attributes = [], Object.assign(this, e);
|
|
16019
16019
|
}
|
|
16020
16020
|
}
|
|
16021
16021
|
h([
|
|
@@ -16025,7 +16025,7 @@ h([
|
|
|
16025
16025
|
m({ type: Xo })
|
|
16026
16026
|
], Tt.prototype, "holder", void 0);
|
|
16027
16027
|
h([
|
|
16028
|
-
m({ type:
|
|
16028
|
+
m({ type: ei })
|
|
16029
16029
|
], Tt.prototype, "issuer", void 0);
|
|
16030
16030
|
h([
|
|
16031
16031
|
m({ type: M })
|
|
@@ -16130,30 +16130,30 @@ h([
|
|
|
16130
16130
|
h([
|
|
16131
16131
|
m({ type: $r, optional: !0 })
|
|
16132
16132
|
], fc.prototype, "certDigestInfo", void 0);
|
|
16133
|
-
let
|
|
16133
|
+
let ti = class {
|
|
16134
16134
|
constructor(e = {}) {
|
|
16135
16135
|
Object.assign(this, e);
|
|
16136
16136
|
}
|
|
16137
16137
|
};
|
|
16138
16138
|
h([
|
|
16139
16139
|
m({ type: ne, context: 0, implicit: !0 })
|
|
16140
|
-
],
|
|
16140
|
+
], ti.prototype, "targetName", void 0);
|
|
16141
16141
|
h([
|
|
16142
16142
|
m({ type: ne, context: 1, implicit: !0 })
|
|
16143
|
-
],
|
|
16143
|
+
], ti.prototype, "targetGroup", void 0);
|
|
16144
16144
|
h([
|
|
16145
16145
|
m({ type: fc, context: 2, implicit: !0 })
|
|
16146
|
-
],
|
|
16147
|
-
|
|
16146
|
+
], ti.prototype, "targetCert", void 0);
|
|
16147
|
+
ti = h([
|
|
16148
16148
|
P({ type: j.Choice })
|
|
16149
|
-
],
|
|
16149
|
+
], ti);
|
|
16150
16150
|
let Ad = Sd = class extends fe {
|
|
16151
16151
|
constructor(e) {
|
|
16152
16152
|
super(e), Object.setPrototypeOf(this, Sd.prototype);
|
|
16153
16153
|
}
|
|
16154
16154
|
};
|
|
16155
16155
|
Ad = Sd = h([
|
|
16156
|
-
P({ type: j.Sequence, itemType:
|
|
16156
|
+
P({ type: j.Sequence, itemType: ti })
|
|
16157
16157
|
], Ad);
|
|
16158
16158
|
var Ed;
|
|
16159
16159
|
let yh = Ed = class extends fe {
|
|
@@ -16201,42 +16201,42 @@ h([
|
|
|
16201
16201
|
h([
|
|
16202
16202
|
m({ type: b.Any })
|
|
16203
16203
|
], op.prototype, "otherCert", void 0);
|
|
16204
|
-
let
|
|
16204
|
+
let ni = class {
|
|
16205
16205
|
constructor(e = {}) {
|
|
16206
16206
|
Object.assign(this, e);
|
|
16207
16207
|
}
|
|
16208
16208
|
};
|
|
16209
16209
|
h([
|
|
16210
16210
|
m({ type: cr })
|
|
16211
|
-
],
|
|
16211
|
+
], ni.prototype, "certificate", void 0);
|
|
16212
16212
|
h([
|
|
16213
16213
|
m({ type: uc, context: 2, implicit: !0 })
|
|
16214
|
-
],
|
|
16214
|
+
], ni.prototype, "v2AttrCert", void 0);
|
|
16215
16215
|
h([
|
|
16216
16216
|
m({ type: op, context: 3, implicit: !0 })
|
|
16217
|
-
],
|
|
16218
|
-
|
|
16217
|
+
], ni.prototype, "other", void 0);
|
|
16218
|
+
ni = h([
|
|
16219
16219
|
P({ type: j.Choice })
|
|
16220
|
-
],
|
|
16220
|
+
], ni);
|
|
16221
16221
|
let ia = Cd = class extends fe {
|
|
16222
16222
|
constructor(e) {
|
|
16223
16223
|
super(e), Object.setPrototypeOf(this, Cd.prototype);
|
|
16224
16224
|
}
|
|
16225
16225
|
};
|
|
16226
16226
|
ia = Cd = h([
|
|
16227
|
-
P({ type: j.Set, itemType:
|
|
16227
|
+
P({ type: j.Set, itemType: ni })
|
|
16228
16228
|
], ia);
|
|
16229
|
-
class
|
|
16229
|
+
class wi {
|
|
16230
16230
|
constructor(e = {}) {
|
|
16231
16231
|
this.contentType = "", this.content = new ArrayBuffer(0), Object.assign(this, e);
|
|
16232
16232
|
}
|
|
16233
16233
|
}
|
|
16234
16234
|
h([
|
|
16235
16235
|
m({ type: b.ObjectIdentifier })
|
|
16236
|
-
],
|
|
16236
|
+
], wi.prototype, "contentType", void 0);
|
|
16237
16237
|
h([
|
|
16238
16238
|
m({ type: b.Any, context: 0 })
|
|
16239
|
-
],
|
|
16239
|
+
], wi.prototype, "content", void 0);
|
|
16240
16240
|
let ko = class {
|
|
16241
16241
|
constructor(e = {}) {
|
|
16242
16242
|
Object.assign(this, e);
|
|
@@ -16323,27 +16323,27 @@ h([
|
|
|
16323
16323
|
h([
|
|
16324
16324
|
m({ type: gc, optional: !0 })
|
|
16325
16325
|
], mc.prototype, "other", void 0);
|
|
16326
|
-
let
|
|
16326
|
+
let ri = class {
|
|
16327
16327
|
constructor(e = {}) {
|
|
16328
16328
|
Object.assign(this, e);
|
|
16329
16329
|
}
|
|
16330
16330
|
};
|
|
16331
16331
|
h([
|
|
16332
16332
|
m({ type: mc, context: 0, implicit: !0, optional: !0 })
|
|
16333
|
-
],
|
|
16333
|
+
], ri.prototype, "rKeyId", void 0);
|
|
16334
16334
|
h([
|
|
16335
|
-
m({ type:
|
|
16336
|
-
],
|
|
16337
|
-
|
|
16335
|
+
m({ type: _i, optional: !0 })
|
|
16336
|
+
], ri.prototype, "issuerAndSerialNumber", void 0);
|
|
16337
|
+
ri = h([
|
|
16338
16338
|
P({ type: j.Choice })
|
|
16339
|
-
],
|
|
16339
|
+
], ri);
|
|
16340
16340
|
class sp {
|
|
16341
16341
|
constructor(e = {}) {
|
|
16342
|
-
this.rid = new
|
|
16342
|
+
this.rid = new ri(), this.encryptedKey = new le(), Object.assign(this, e);
|
|
16343
16343
|
}
|
|
16344
16344
|
}
|
|
16345
16345
|
h([
|
|
16346
|
-
m({ type:
|
|
16346
|
+
m({ type: ri })
|
|
16347
16347
|
], sp.prototype, "rid", void 0);
|
|
16348
16348
|
h([
|
|
16349
16349
|
m({ type: le })
|
|
@@ -16379,55 +16379,55 @@ h([
|
|
|
16379
16379
|
m({ type: ap, context: 1, implicit: !0, optional: !0 })
|
|
16380
16380
|
], lr.prototype, "originatorKey", void 0);
|
|
16381
16381
|
h([
|
|
16382
|
-
m({ type:
|
|
16382
|
+
m({ type: _i, optional: !0 })
|
|
16383
16383
|
], lr.prototype, "issuerAndSerialNumber", void 0);
|
|
16384
16384
|
lr = h([
|
|
16385
16385
|
P({ type: j.Choice })
|
|
16386
16386
|
], lr);
|
|
16387
|
-
class
|
|
16387
|
+
class bi {
|
|
16388
16388
|
constructor(e = {}) {
|
|
16389
16389
|
this.version = ln.v3, this.originator = new lr(), this.keyEncryptionAlgorithm = new Gt(), this.recipientEncryptedKeys = new oa(), Object.assign(this, e);
|
|
16390
16390
|
}
|
|
16391
16391
|
}
|
|
16392
16392
|
h([
|
|
16393
16393
|
m({ type: b.Integer })
|
|
16394
|
-
],
|
|
16394
|
+
], bi.prototype, "version", void 0);
|
|
16395
16395
|
h([
|
|
16396
16396
|
m({ type: lr, context: 0 })
|
|
16397
|
-
],
|
|
16397
|
+
], bi.prototype, "originator", void 0);
|
|
16398
16398
|
h([
|
|
16399
16399
|
m({ type: le, context: 1, optional: !0 })
|
|
16400
|
-
],
|
|
16400
|
+
], bi.prototype, "ukm", void 0);
|
|
16401
16401
|
h([
|
|
16402
16402
|
m({ type: Gt })
|
|
16403
|
-
],
|
|
16403
|
+
], bi.prototype, "keyEncryptionAlgorithm", void 0);
|
|
16404
16404
|
h([
|
|
16405
16405
|
m({ type: oa })
|
|
16406
|
-
],
|
|
16407
|
-
let
|
|
16406
|
+
], bi.prototype, "recipientEncryptedKeys", void 0);
|
|
16407
|
+
let ii = class {
|
|
16408
16408
|
constructor(e = {}) {
|
|
16409
16409
|
Object.assign(this, e);
|
|
16410
16410
|
}
|
|
16411
16411
|
};
|
|
16412
16412
|
h([
|
|
16413
16413
|
m({ type: In, context: 0, implicit: !0 })
|
|
16414
|
-
],
|
|
16414
|
+
], ii.prototype, "subjectKeyIdentifier", void 0);
|
|
16415
16415
|
h([
|
|
16416
|
-
m({ type:
|
|
16417
|
-
],
|
|
16418
|
-
|
|
16416
|
+
m({ type: _i })
|
|
16417
|
+
], ii.prototype, "issuerAndSerialNumber", void 0);
|
|
16418
|
+
ii = h([
|
|
16419
16419
|
P({ type: j.Choice })
|
|
16420
|
-
],
|
|
16420
|
+
], ii);
|
|
16421
16421
|
class Yo {
|
|
16422
16422
|
constructor(e = {}) {
|
|
16423
|
-
this.version = ln.v0, this.rid = new
|
|
16423
|
+
this.version = ln.v0, this.rid = new ii(), this.keyEncryptionAlgorithm = new Gt(), this.encryptedKey = new le(), Object.assign(this, e);
|
|
16424
16424
|
}
|
|
16425
16425
|
}
|
|
16426
16426
|
h([
|
|
16427
16427
|
m({ type: b.Integer })
|
|
16428
16428
|
], Yo.prototype, "version", void 0);
|
|
16429
16429
|
h([
|
|
16430
|
-
m({ type:
|
|
16430
|
+
m({ type: ii })
|
|
16431
16431
|
], Yo.prototype, "rid", void 0);
|
|
16432
16432
|
h([
|
|
16433
16433
|
m({ type: Gt })
|
|
@@ -16503,7 +16503,7 @@ h([
|
|
|
16503
16503
|
m({ type: Yo, optional: !0 })
|
|
16504
16504
|
], Rn.prototype, "ktri", void 0);
|
|
16505
16505
|
h([
|
|
16506
|
-
m({ type:
|
|
16506
|
+
m({ type: bi, context: 1, implicit: !0, optional: !0 })
|
|
16507
16507
|
], Rn.prototype, "kari", void 0);
|
|
16508
16508
|
h([
|
|
16509
16509
|
m({ type: es, context: 2, implicit: !0, optional: !0 })
|
|
@@ -16575,7 +16575,7 @@ let Pd = Od = class extends fe {
|
|
|
16575
16575
|
}
|
|
16576
16576
|
};
|
|
16577
16577
|
Pd = Od = h([
|
|
16578
|
-
P({ type: j.Set, itemType:
|
|
16578
|
+
P({ type: j.Set, itemType: yi })
|
|
16579
16579
|
], Pd);
|
|
16580
16580
|
class ns {
|
|
16581
16581
|
constructor(e = {}) {
|
|
@@ -16607,29 +16607,29 @@ let la = Td = class extends fe {
|
|
|
16607
16607
|
la = Td = h([
|
|
16608
16608
|
P({ type: j.Set, itemType: $o })
|
|
16609
16609
|
], la);
|
|
16610
|
-
class
|
|
16610
|
+
class vi {
|
|
16611
16611
|
constructor(e = {}) {
|
|
16612
16612
|
this.version = ln.v0, this.digestAlgorithms = new la(), this.encapContentInfo = new hc(), this.signerInfos = new ta(), Object.assign(this, e);
|
|
16613
16613
|
}
|
|
16614
16614
|
}
|
|
16615
16615
|
h([
|
|
16616
16616
|
m({ type: b.Integer })
|
|
16617
|
-
],
|
|
16617
|
+
], vi.prototype, "version", void 0);
|
|
16618
16618
|
h([
|
|
16619
16619
|
m({ type: la })
|
|
16620
|
-
],
|
|
16620
|
+
], vi.prototype, "digestAlgorithms", void 0);
|
|
16621
16621
|
h([
|
|
16622
16622
|
m({ type: hc })
|
|
16623
|
-
],
|
|
16623
|
+
], vi.prototype, "encapContentInfo", void 0);
|
|
16624
16624
|
h([
|
|
16625
16625
|
m({ type: ia, context: 0, implicit: !0, optional: !0 })
|
|
16626
|
-
],
|
|
16626
|
+
], vi.prototype, "certificates", void 0);
|
|
16627
16627
|
h([
|
|
16628
16628
|
m({ type: ca, context: 1, implicit: !0, optional: !0 })
|
|
16629
|
-
],
|
|
16629
|
+
], vi.prototype, "crls", void 0);
|
|
16630
16630
|
h([
|
|
16631
16631
|
m({ type: ta })
|
|
16632
|
-
],
|
|
16632
|
+
], vi.prototype, "signerInfos", void 0);
|
|
16633
16633
|
const So = "1.2.840.10045.2.1", dp = "1.2.840.10045.4.1", Z_ = "1.2.840.10045.4.3.1", up = "1.2.840.10045.4.3.2", pp = "1.2.840.10045.4.3.3", fp = "1.2.840.10045.4.3.4", wh = "1.2.840.10045.3.1.7", bh = "1.3.132.0.34", vh = "1.3.132.0.35";
|
|
16634
16634
|
function rs(t) {
|
|
16635
16635
|
return new M({ algorithm: t });
|
|
@@ -16653,23 +16653,23 @@ Ao = h([
|
|
|
16653
16653
|
], Ao);
|
|
16654
16654
|
class l4 extends le {
|
|
16655
16655
|
}
|
|
16656
|
-
let
|
|
16656
|
+
let oi = class {
|
|
16657
16657
|
constructor(e = {}) {
|
|
16658
16658
|
Object.assign(this, e);
|
|
16659
16659
|
}
|
|
16660
16660
|
};
|
|
16661
16661
|
h([
|
|
16662
16662
|
m({ type: b.OctetString })
|
|
16663
|
-
],
|
|
16663
|
+
], oi.prototype, "a", void 0);
|
|
16664
16664
|
h([
|
|
16665
16665
|
m({ type: b.OctetString })
|
|
16666
|
-
],
|
|
16666
|
+
], oi.prototype, "b", void 0);
|
|
16667
16667
|
h([
|
|
16668
16668
|
m({ type: b.BitString, optional: !0 })
|
|
16669
|
-
],
|
|
16670
|
-
|
|
16669
|
+
], oi.prototype, "seed", void 0);
|
|
16670
|
+
oi = h([
|
|
16671
16671
|
P({ type: j.Sequence })
|
|
16672
|
-
],
|
|
16672
|
+
], oi);
|
|
16673
16673
|
var Rd;
|
|
16674
16674
|
(function(t) {
|
|
16675
16675
|
t[t.ecpVer1 = 1] = "ecpVer1";
|
|
@@ -16686,7 +16686,7 @@ h([
|
|
|
16686
16686
|
m({ type: Ao })
|
|
16687
16687
|
], dn.prototype, "fieldID", void 0);
|
|
16688
16688
|
h([
|
|
16689
|
-
m({ type:
|
|
16689
|
+
m({ type: oi })
|
|
16690
16690
|
], dn.prototype, "curve", void 0);
|
|
16691
16691
|
h([
|
|
16692
16692
|
m({ type: l4 })
|
|
@@ -16745,7 +16745,7 @@ h([
|
|
|
16745
16745
|
h([
|
|
16746
16746
|
m({ type: b.Integer, converter: we })
|
|
16747
16747
|
], da.prototype, "s", void 0);
|
|
16748
|
-
const st = "1.2.840.113549.1.1", dr = `${st}.1`, d4 = `${st}.7`, u4 = `${st}.9`,
|
|
16748
|
+
const st = "1.2.840.113549.1.1", dr = `${st}.1`, d4 = `${st}.7`, u4 = `${st}.9`, uo = `${st}.10`, p4 = `${st}.2`, f4 = `${st}.4`, ua = `${st}.5`, h4 = `${st}.14`, Bd = `${st}.11`, pa = `${st}.12`, fa = `${st}.13`, Y_ = `${st}.15`, Q_ = `${st}.16`, ha = "1.3.14.3.2.26", ey = "2.16.840.1.101.3.4.2.4", ga = "2.16.840.1.101.3.4.2.1", ma = "2.16.840.1.101.3.4.2.2", _a = "2.16.840.1.101.3.4.2.3", g4 = "2.16.840.1.101.3.4.2.5", m4 = "2.16.840.1.101.3.4.2.6", _4 = "1.2.840.113549.2.2", y4 = "1.2.840.113549.2.5", wc = `${st}.8`;
|
|
16749
16749
|
function Te(t) {
|
|
16750
16750
|
return new M({ algorithm: t, parameters: null });
|
|
16751
16751
|
}
|
|
@@ -16838,7 +16838,7 @@ h([
|
|
|
16838
16838
|
m({ type: b.Integer, context: 3, defaultValue: 1 })
|
|
16839
16839
|
], pr.prototype, "trailerField", void 0);
|
|
16840
16840
|
new M({
|
|
16841
|
-
algorithm:
|
|
16841
|
+
algorithm: uo,
|
|
16842
16842
|
parameters: R.serialize(new pr())
|
|
16843
16843
|
});
|
|
16844
16844
|
class vc {
|
|
@@ -17473,7 +17473,7 @@ let xh = Fd = class extends fe {
|
|
|
17473
17473
|
}
|
|
17474
17474
|
};
|
|
17475
17475
|
xh = Fd = h([
|
|
17476
|
-
P({ type: j.Sequence, itemType:
|
|
17476
|
+
P({ type: j.Sequence, itemType: wi })
|
|
17477
17477
|
], xh);
|
|
17478
17478
|
class sy {
|
|
17479
17479
|
constructor(e = {}) {
|
|
@@ -17578,14 +17578,14 @@ h([
|
|
|
17578
17578
|
], os.prototype, "iterations", void 0);
|
|
17579
17579
|
class Ac {
|
|
17580
17580
|
constructor(e = {}) {
|
|
17581
|
-
this.version = 3, this.authSafe = new
|
|
17581
|
+
this.version = 3, this.authSafe = new wi(), this.macData = new os(), Object.assign(this, e);
|
|
17582
17582
|
}
|
|
17583
17583
|
}
|
|
17584
17584
|
h([
|
|
17585
17585
|
m({ type: b.Integer })
|
|
17586
17586
|
], Ac.prototype, "version", void 0);
|
|
17587
17587
|
h([
|
|
17588
|
-
m({ type:
|
|
17588
|
+
m({ type: wi })
|
|
17589
17589
|
], Ac.prototype, "authSafe", void 0);
|
|
17590
17590
|
h([
|
|
17591
17591
|
m({ type: os, optional: !0 })
|
|
@@ -17629,7 +17629,7 @@ h([
|
|
|
17629
17629
|
wa = h([
|
|
17630
17630
|
P({ type: j.Choice })
|
|
17631
17631
|
], wa);
|
|
17632
|
-
let Ch = class extends
|
|
17632
|
+
let Ch = class extends wi {
|
|
17633
17633
|
};
|
|
17634
17634
|
Ch = h([
|
|
17635
17635
|
P({ type: j.Sequence })
|
|
@@ -17779,7 +17779,7 @@ let Dh = Jd = class extends fe {
|
|
|
17779
17779
|
}
|
|
17780
17780
|
};
|
|
17781
17781
|
Dh = Jd = h([
|
|
17782
|
-
P({ type: j.Set, itemType:
|
|
17782
|
+
P({ type: j.Set, itemType: yi })
|
|
17783
17783
|
], Dh);
|
|
17784
17784
|
let nu = class {
|
|
17785
17785
|
constructor(e = "") {
|
|
@@ -17817,30 +17817,30 @@ let $a = iu = class extends fe {
|
|
|
17817
17817
|
$a = iu = h([
|
|
17818
17818
|
P({ type: j.Sequence, itemType: cn })
|
|
17819
17819
|
], $a);
|
|
17820
|
-
class
|
|
17820
|
+
class $i {
|
|
17821
17821
|
constructor(e = {}) {
|
|
17822
17822
|
this.version = 0, this.subject = new Ne(), this.subjectPKInfo = new St(), this.attributes = new $a(), Object.assign(this, e);
|
|
17823
17823
|
}
|
|
17824
17824
|
}
|
|
17825
17825
|
h([
|
|
17826
17826
|
m({ type: b.Integer })
|
|
17827
|
-
],
|
|
17827
|
+
], $i.prototype, "version", void 0);
|
|
17828
17828
|
h([
|
|
17829
17829
|
m({ type: Ne })
|
|
17830
|
-
],
|
|
17830
|
+
], $i.prototype, "subject", void 0);
|
|
17831
17831
|
h([
|
|
17832
17832
|
m({ type: St })
|
|
17833
|
-
],
|
|
17833
|
+
], $i.prototype, "subjectPKInfo", void 0);
|
|
17834
17834
|
h([
|
|
17835
17835
|
m({ type: $a, implicit: !0, context: 0, optional: !0 })
|
|
17836
|
-
],
|
|
17836
|
+
], $i.prototype, "attributes", void 0);
|
|
17837
17837
|
class Eo {
|
|
17838
17838
|
constructor(e = {}) {
|
|
17839
|
-
this.certificationRequestInfo = new
|
|
17839
|
+
this.certificationRequestInfo = new $i(), this.signatureAlgorithm = new M(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
|
|
17840
17840
|
}
|
|
17841
17841
|
}
|
|
17842
17842
|
h([
|
|
17843
|
-
m({ type:
|
|
17843
|
+
m({ type: $i, raw: !0 })
|
|
17844
17844
|
], Eo.prototype, "certificationRequestInfo", void 0);
|
|
17845
17845
|
h([
|
|
17846
17846
|
m({ type: M })
|
|
@@ -18418,14 +18418,14 @@ class At {
|
|
|
18418
18418
|
const d = i[3];
|
|
18419
18419
|
a = this.getTypeOid(a);
|
|
18420
18420
|
const u = this.createAttribute(a, c);
|
|
18421
|
-
s === "+" ? n[n.length - 1].push(u) : n.push(new
|
|
18421
|
+
s === "+" ? n[n.length - 1].push(u) : n.push(new Yr([u])), s = d;
|
|
18422
18422
|
}
|
|
18423
18423
|
return n;
|
|
18424
18424
|
}
|
|
18425
18425
|
fromJSON(e) {
|
|
18426
18426
|
const n = new Ne();
|
|
18427
18427
|
for (const r of e) {
|
|
18428
|
-
const i = new
|
|
18428
|
+
const i = new Yr();
|
|
18429
18429
|
for (const s in r) {
|
|
18430
18430
|
const a = this.getTypeOid(s), c = r[s];
|
|
18431
18431
|
for (const l of c) {
|
|
@@ -18642,7 +18642,7 @@ class gr extends Mn {
|
|
|
18642
18642
|
}
|
|
18643
18643
|
}
|
|
18644
18644
|
gr.NAME = "GeneralNames";
|
|
18645
|
-
const
|
|
18645
|
+
const po = "-{5}", No = "\\n", q4 = `[^${No}]+`, F4 = `${po}BEGIN (${q4}(?=${po}))${po}`, H4 = `${po}END \\1${po}`, si = "\\n", V4 = `[^:${No}]+`, K4 = `(?:[^${No}]+${si}(?: +[^${No}]+${si})*)`, G4 = "[a-zA-Z0-9=+/]+", W4 = `(?:${G4}${si})+`, wg = `${F4}${si}(?:((?:${V4}: ${K4})+))?${si}?(${W4})${H4}`;
|
|
18646
18646
|
class lt {
|
|
18647
18647
|
static isPem(e) {
|
|
18648
18648
|
return typeof e == "string" && new RegExp(wg, "g").test(e.replace(/\r/g, ""));
|
|
@@ -18658,7 +18658,7 @@ class lt {
|
|
|
18658
18658
|
rawData: H.FromBase64(s)
|
|
18659
18659
|
}, c = i[2];
|
|
18660
18660
|
if (c) {
|
|
18661
|
-
const l = c.split(new RegExp(
|
|
18661
|
+
const l = c.split(new RegExp(si, "g"));
|
|
18662
18662
|
let d = null;
|
|
18663
18663
|
for (const u of l) {
|
|
18664
18664
|
const [f, g] = u.split(/:(.*)/);
|
|
@@ -18801,7 +18801,7 @@ class jt extends un {
|
|
|
18801
18801
|
e.length > 1 ? (i = e[0] || i, r = e[1] || r, n = e[2] || Be.get()) : n = e[0] || Be.get();
|
|
18802
18802
|
let s = this.rawData;
|
|
18803
18803
|
const a = R.parse(this.rawData, St);
|
|
18804
|
-
return a.algorithm.algorithm ===
|
|
18804
|
+
return a.algorithm.algorithm === uo && (s = J4(a, s)), n.subtle.importKey("spki", s, i, !0, r);
|
|
18805
18805
|
}
|
|
18806
18806
|
onInit(e) {
|
|
18807
18807
|
const n = He.resolve(fr), r = this.algorithm = n.toWebAlgorithm(e.algorithm);
|
|
@@ -19010,7 +19010,7 @@ class by extends ft {
|
|
|
19010
19010
|
if (B.isBufferSource(e[0]))
|
|
19011
19011
|
super(e[0]);
|
|
19012
19012
|
else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
|
|
19013
|
-
const i = e[0].map((a) => new
|
|
19013
|
+
const i = e[0].map((a) => new mi({
|
|
19014
19014
|
distributionPoint: new sr({ fullName: [new ne({ uniformResourceIdentifier: a })] })
|
|
19015
19015
|
})), s = new Fr(i);
|
|
19016
19016
|
super(od, e[1], R.serialize(s));
|
|
@@ -19111,7 +19111,7 @@ class $y extends ft {
|
|
|
19111
19111
|
}
|
|
19112
19112
|
}
|
|
19113
19113
|
$y.NAME = "Issuer Alternative Name";
|
|
19114
|
-
class
|
|
19114
|
+
class ki extends Mn {
|
|
19115
19115
|
constructor(...e) {
|
|
19116
19116
|
let n;
|
|
19117
19117
|
if (B.isBufferSource(e[0]))
|
|
@@ -19134,11 +19134,11 @@ class $i extends Mn {
|
|
|
19134
19134
|
}
|
|
19135
19135
|
toTextObjectWithoutValue() {
|
|
19136
19136
|
const e = this.toTextObjectEmpty();
|
|
19137
|
-
return e[pe.NAME] ===
|
|
19137
|
+
return e[pe.NAME] === ki.NAME && (e[pe.NAME] = Dn.toString(this.type)), e;
|
|
19138
19138
|
}
|
|
19139
19139
|
}
|
|
19140
|
-
|
|
19141
|
-
class ky extends
|
|
19140
|
+
ki.NAME = "Attribute";
|
|
19141
|
+
class ky extends ki {
|
|
19142
19142
|
constructor(...e) {
|
|
19143
19143
|
var n;
|
|
19144
19144
|
if (B.isBufferSource(e[0]))
|
|
@@ -19161,7 +19161,7 @@ class ky extends $i {
|
|
|
19161
19161
|
}
|
|
19162
19162
|
}
|
|
19163
19163
|
ky.NAME = "Challenge Password";
|
|
19164
|
-
class vp extends
|
|
19164
|
+
class vp extends ki {
|
|
19165
19165
|
constructor(...e) {
|
|
19166
19166
|
var n;
|
|
19167
19167
|
if (B.isBufferSource(e[0]))
|
|
@@ -19193,7 +19193,7 @@ class Cc {
|
|
|
19193
19193
|
this.items.set(e, n);
|
|
19194
19194
|
}
|
|
19195
19195
|
static create(e) {
|
|
19196
|
-
const n = new
|
|
19196
|
+
const n = new ki(e), r = this.items.get(n.type);
|
|
19197
19197
|
return r ? new r(e) : n;
|
|
19198
19198
|
}
|
|
19199
19199
|
}
|
|
@@ -19271,12 +19271,12 @@ let ou = js = class {
|
|
|
19271
19271
|
if (!n)
|
|
19272
19272
|
throw new Error("Cannot create PSS parameters");
|
|
19273
19273
|
return new M({
|
|
19274
|
-
algorithm:
|
|
19274
|
+
algorithm: uo,
|
|
19275
19275
|
parameters: R.serialize(n)
|
|
19276
19276
|
});
|
|
19277
19277
|
} else
|
|
19278
19278
|
return new M({
|
|
19279
|
-
algorithm:
|
|
19279
|
+
algorithm: uo,
|
|
19280
19280
|
parameters: null
|
|
19281
19281
|
});
|
|
19282
19282
|
}
|
|
@@ -19306,7 +19306,7 @@ let ou = js = class {
|
|
|
19306
19306
|
name: "RSASSA-PKCS1-v1_5",
|
|
19307
19307
|
hash: { name: "SHA-512" }
|
|
19308
19308
|
};
|
|
19309
|
-
case
|
|
19309
|
+
case uo:
|
|
19310
19310
|
if (e.parameters) {
|
|
19311
19311
|
const n = R.parse(e.parameters, pr);
|
|
19312
19312
|
return {
|
|
@@ -19448,29 +19448,29 @@ au = h([
|
|
|
19448
19448
|
kc()
|
|
19449
19449
|
], au);
|
|
19450
19450
|
He.registerSingleton(ss, au);
|
|
19451
|
-
var
|
|
19451
|
+
var Li, Ui, Di, Mi, zi, qi, Fi, Ir;
|
|
19452
19452
|
class Z4 extends un {
|
|
19453
19453
|
get subjectName() {
|
|
19454
|
-
return ie(this,
|
|
19454
|
+
return ie(this, Ui, "f") || be(this, Ui, new At(this.asn.certificationRequestInfo.subject), "f"), ie(this, Ui, "f");
|
|
19455
19455
|
}
|
|
19456
19456
|
get subject() {
|
|
19457
|
-
return ie(this,
|
|
19457
|
+
return ie(this, Di, "f") || be(this, Di, this.subjectName.toString(), "f"), ie(this, Di, "f");
|
|
19458
19458
|
}
|
|
19459
19459
|
get signatureAlgorithm() {
|
|
19460
|
-
if (!ie(this,
|
|
19460
|
+
if (!ie(this, Mi, "f")) {
|
|
19461
19461
|
const e = He.resolve(fr);
|
|
19462
|
-
be(this,
|
|
19462
|
+
be(this, Mi, e.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
|
|
19463
19463
|
}
|
|
19464
|
-
return ie(this,
|
|
19464
|
+
return ie(this, Mi, "f");
|
|
19465
19465
|
}
|
|
19466
19466
|
get signature() {
|
|
19467
|
-
return ie(this,
|
|
19467
|
+
return ie(this, zi, "f") || be(this, zi, this.asn.signature, "f"), ie(this, zi, "f");
|
|
19468
19468
|
}
|
|
19469
19469
|
get publicKey() {
|
|
19470
|
-
return ie(this,
|
|
19470
|
+
return ie(this, qi, "f") || be(this, qi, new jt(this.asn.certificationRequestInfo.subjectPKInfo), "f"), ie(this, qi, "f");
|
|
19471
19471
|
}
|
|
19472
19472
|
get attributes() {
|
|
19473
|
-
return ie(this,
|
|
19473
|
+
return ie(this, Fi, "f") || be(this, Fi, this.asn.certificationRequestInfo.attributes.map((e) => Cc.create(R.serialize(e))), "f"), ie(this, Fi, "f");
|
|
19474
19474
|
}
|
|
19475
19475
|
get extensions() {
|
|
19476
19476
|
if (!ie(this, Ir, "f")) {
|
|
@@ -19481,11 +19481,11 @@ class Z4 extends un {
|
|
|
19481
19481
|
return ie(this, Ir, "f");
|
|
19482
19482
|
}
|
|
19483
19483
|
get tbs() {
|
|
19484
|
-
return ie(this,
|
|
19484
|
+
return ie(this, Li, "f") || be(this, Li, this.asn.certificationRequestInfoRaw || R.serialize(this.asn.certificationRequestInfo), "f"), ie(this, Li, "f");
|
|
19485
19485
|
}
|
|
19486
19486
|
constructor(e) {
|
|
19487
19487
|
const n = un.isAsnEncoded(e) ? [e, Eo] : [e];
|
|
19488
|
-
super(n[0], n[1]),
|
|
19488
|
+
super(n[0], n[1]), Li.set(this, void 0), Ui.set(this, void 0), Di.set(this, void 0), Mi.set(this, void 0), zi.set(this, void 0), qi.set(this, void 0), Fi.set(this, void 0), Ir.set(this, void 0), this.tag = lt.CertificateRequestTag;
|
|
19489
19489
|
}
|
|
19490
19490
|
onInit(e) {
|
|
19491
19491
|
}
|
|
@@ -19540,70 +19540,70 @@ class Z4 extends un {
|
|
|
19540
19540
|
}), e;
|
|
19541
19541
|
}
|
|
19542
19542
|
}
|
|
19543
|
-
|
|
19543
|
+
Li = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap();
|
|
19544
19544
|
Z4.NAME = "PKCS#10 Certificate Request";
|
|
19545
|
-
var
|
|
19545
|
+
var Hi, Vi, Ki, Gi, Wi, Ji, Xi, Zi, Yi, Qi, Or, eo;
|
|
19546
19546
|
class Nc extends un {
|
|
19547
19547
|
get publicKey() {
|
|
19548
|
-
return ie(this,
|
|
19548
|
+
return ie(this, eo, "f") || be(this, eo, new jt(this.asn.tbsCertificate.subjectPublicKeyInfo), "f"), ie(this, eo, "f");
|
|
19549
19549
|
}
|
|
19550
19550
|
get serialNumber() {
|
|
19551
|
-
if (!ie(this,
|
|
19551
|
+
if (!ie(this, Vi, "f")) {
|
|
19552
19552
|
const e = this.asn.tbsCertificate;
|
|
19553
19553
|
let n = new Uint8Array(e.serialNumber);
|
|
19554
|
-
n.length > 1 && n[0] === 0 && n[1] > 127 && (n = n.slice(1)), be(this,
|
|
19554
|
+
n.length > 1 && n[0] === 0 && n[1] > 127 && (n = n.slice(1)), be(this, Vi, H.ToHex(n), "f");
|
|
19555
19555
|
}
|
|
19556
|
-
return ie(this,
|
|
19556
|
+
return ie(this, Vi, "f");
|
|
19557
19557
|
}
|
|
19558
19558
|
get subjectName() {
|
|
19559
|
-
return ie(this,
|
|
19559
|
+
return ie(this, Ki, "f") || be(this, Ki, new At(this.asn.tbsCertificate.subject), "f"), ie(this, Ki, "f");
|
|
19560
19560
|
}
|
|
19561
19561
|
get subject() {
|
|
19562
|
-
return ie(this,
|
|
19562
|
+
return ie(this, Gi, "f") || be(this, Gi, this.subjectName.toString(), "f"), ie(this, Gi, "f");
|
|
19563
19563
|
}
|
|
19564
19564
|
get issuerName() {
|
|
19565
|
-
return ie(this,
|
|
19565
|
+
return ie(this, Wi, "f") || be(this, Wi, new At(this.asn.tbsCertificate.issuer), "f"), ie(this, Wi, "f");
|
|
19566
19566
|
}
|
|
19567
19567
|
get issuer() {
|
|
19568
|
-
return ie(this,
|
|
19568
|
+
return ie(this, Ji, "f") || be(this, Ji, this.issuerName.toString(), "f"), ie(this, Ji, "f");
|
|
19569
19569
|
}
|
|
19570
19570
|
get notBefore() {
|
|
19571
|
-
if (!ie(this,
|
|
19571
|
+
if (!ie(this, Xi, "f")) {
|
|
19572
19572
|
const e = this.asn.tbsCertificate.validity.notBefore.utcTime || this.asn.tbsCertificate.validity.notBefore.generalTime;
|
|
19573
19573
|
if (!e)
|
|
19574
19574
|
throw new Error("Cannot get 'notBefore' value");
|
|
19575
|
-
be(this,
|
|
19575
|
+
be(this, Xi, e, "f");
|
|
19576
19576
|
}
|
|
19577
|
-
return ie(this,
|
|
19577
|
+
return ie(this, Xi, "f");
|
|
19578
19578
|
}
|
|
19579
19579
|
get notAfter() {
|
|
19580
|
-
if (!ie(this,
|
|
19580
|
+
if (!ie(this, Zi, "f")) {
|
|
19581
19581
|
const e = this.asn.tbsCertificate.validity.notAfter.utcTime || this.asn.tbsCertificate.validity.notAfter.generalTime;
|
|
19582
19582
|
if (!e)
|
|
19583
19583
|
throw new Error("Cannot get 'notAfter' value");
|
|
19584
|
-
be(this,
|
|
19584
|
+
be(this, Zi, e, "f");
|
|
19585
19585
|
}
|
|
19586
|
-
return ie(this,
|
|
19586
|
+
return ie(this, Zi, "f");
|
|
19587
19587
|
}
|
|
19588
19588
|
get signatureAlgorithm() {
|
|
19589
|
-
if (!ie(this,
|
|
19589
|
+
if (!ie(this, Yi, "f")) {
|
|
19590
19590
|
const e = He.resolve(fr);
|
|
19591
|
-
be(this,
|
|
19591
|
+
be(this, Yi, e.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
|
|
19592
19592
|
}
|
|
19593
|
-
return ie(this,
|
|
19593
|
+
return ie(this, Yi, "f");
|
|
19594
19594
|
}
|
|
19595
19595
|
get signature() {
|
|
19596
|
-
return ie(this,
|
|
19596
|
+
return ie(this, Qi, "f") || be(this, Qi, this.asn.signatureValue, "f"), ie(this, Qi, "f");
|
|
19597
19597
|
}
|
|
19598
19598
|
get extensions() {
|
|
19599
19599
|
return ie(this, Or, "f") || (be(this, Or, [], "f"), this.asn.tbsCertificate.extensions && be(this, Or, this.asn.tbsCertificate.extensions.map((e) => ht.create(R.serialize(e))), "f")), ie(this, Or, "f");
|
|
19600
19600
|
}
|
|
19601
19601
|
get tbs() {
|
|
19602
|
-
return ie(this,
|
|
19602
|
+
return ie(this, Hi, "f") || be(this, Hi, this.asn.tbsCertificateRaw || R.serialize(this.asn.tbsCertificate), "f"), ie(this, Hi, "f");
|
|
19603
19603
|
}
|
|
19604
19604
|
constructor(e) {
|
|
19605
19605
|
const n = un.isAsnEncoded(e) ? [e, cr] : [e];
|
|
19606
|
-
super(n[0], n[1]),
|
|
19606
|
+
super(n[0], n[1]), Hi.set(this, void 0), Vi.set(this, void 0), Ki.set(this, void 0), Gi.set(this, void 0), Wi.set(this, void 0), Ji.set(this, void 0), Xi.set(this, void 0), Zi.set(this, void 0), Yi.set(this, void 0), Qi.set(this, void 0), Or.set(this, void 0), eo.set(this, void 0), this.tag = lt.CertificateTag;
|
|
19607
19607
|
}
|
|
19608
19608
|
onInit(e) {
|
|
19609
19609
|
}
|
|
@@ -19701,7 +19701,7 @@ class Nc extends un {
|
|
|
19701
19701
|
}), e;
|
|
19702
19702
|
}
|
|
19703
19703
|
}
|
|
19704
|
-
|
|
19704
|
+
Hi = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), eo = /* @__PURE__ */ new WeakMap();
|
|
19705
19705
|
Nc.NAME = "Certificate";
|
|
19706
19706
|
function Y4(t, e = Be.get()) {
|
|
19707
19707
|
const n = B.toUint8Array(H.FromHex(t || ""));
|
|
@@ -20694,7 +20694,7 @@ function _$() {
|
|
|
20694
20694
|
return jc("invite");
|
|
20695
20695
|
}
|
|
20696
20696
|
const y$ = dt.extend({
|
|
20697
|
-
hooks: o.array(
|
|
20697
|
+
hooks: o.array(Bi)
|
|
20698
20698
|
}), w$ = new W().openapi(
|
|
20699
20699
|
x({
|
|
20700
20700
|
tags: ["hooks"],
|
|
@@ -20715,7 +20715,7 @@ const y$ = dt.extend({
|
|
|
20715
20715
|
200: {
|
|
20716
20716
|
content: {
|
|
20717
20717
|
"application/json": {
|
|
20718
|
-
schema: o.union([o.array(
|
|
20718
|
+
schema: o.union([o.array(Bi), y$])
|
|
20719
20719
|
}
|
|
20720
20720
|
},
|
|
20721
20721
|
description: "List of hooks"
|
|
@@ -20759,7 +20759,7 @@ const y$ = dt.extend({
|
|
|
20759
20759
|
201: {
|
|
20760
20760
|
content: {
|
|
20761
20761
|
"application/json": {
|
|
20762
|
-
schema:
|
|
20762
|
+
schema: Bi
|
|
20763
20763
|
}
|
|
20764
20764
|
},
|
|
20765
20765
|
description: "The created hook"
|
|
@@ -20809,7 +20809,7 @@ const y$ = dt.extend({
|
|
|
20809
20809
|
200: {
|
|
20810
20810
|
content: {
|
|
20811
20811
|
"application/json": {
|
|
20812
|
-
schema:
|
|
20812
|
+
schema: Bi
|
|
20813
20813
|
// Directly use the union schema
|
|
20814
20814
|
}
|
|
20815
20815
|
},
|
|
@@ -20850,7 +20850,7 @@ const y$ = dt.extend({
|
|
|
20850
20850
|
200: {
|
|
20851
20851
|
content: {
|
|
20852
20852
|
"application/json": {
|
|
20853
|
-
schema:
|
|
20853
|
+
schema: Bi
|
|
20854
20854
|
}
|
|
20855
20855
|
},
|
|
20856
20856
|
description: "A hook"
|
|
@@ -22483,7 +22483,7 @@ function Rc(t = {}) {
|
|
|
22483
22483
|
return new ak(t);
|
|
22484
22484
|
}
|
|
22485
22485
|
const ck = dt.extend({
|
|
22486
|
-
forms: o.array(
|
|
22486
|
+
forms: o.array(Ri)
|
|
22487
22487
|
}), lk = new W().openapi(
|
|
22488
22488
|
x({
|
|
22489
22489
|
tags: ["forms"],
|
|
@@ -22504,7 +22504,7 @@ const ck = dt.extend({
|
|
|
22504
22504
|
200: {
|
|
22505
22505
|
content: {
|
|
22506
22506
|
"application/json": {
|
|
22507
|
-
schema: o.union([o.array(
|
|
22507
|
+
schema: o.union([o.array(Ri), ck])
|
|
22508
22508
|
}
|
|
22509
22509
|
},
|
|
22510
22510
|
description: "List of forms"
|
|
@@ -22549,7 +22549,7 @@ const ck = dt.extend({
|
|
|
22549
22549
|
200: {
|
|
22550
22550
|
content: {
|
|
22551
22551
|
"application/json": {
|
|
22552
|
-
schema:
|
|
22552
|
+
schema: Ri
|
|
22553
22553
|
}
|
|
22554
22554
|
},
|
|
22555
22555
|
description: "A form"
|
|
@@ -22623,7 +22623,7 @@ const ck = dt.extend({
|
|
|
22623
22623
|
200: {
|
|
22624
22624
|
content: {
|
|
22625
22625
|
"application/json": {
|
|
22626
|
-
schema:
|
|
22626
|
+
schema: Ri
|
|
22627
22627
|
}
|
|
22628
22628
|
},
|
|
22629
22629
|
description: "The updated form"
|
|
@@ -22669,7 +22669,7 @@ const ck = dt.extend({
|
|
|
22669
22669
|
201: {
|
|
22670
22670
|
content: {
|
|
22671
22671
|
"application/json": {
|
|
22672
|
-
schema:
|
|
22672
|
+
schema: Ri
|
|
22673
22673
|
}
|
|
22674
22674
|
},
|
|
22675
22675
|
description: "A form"
|
|
@@ -24433,7 +24433,7 @@ function pn(t) {
|
|
|
24433
24433
|
if (t)
|
|
24434
24434
|
return `${t.name}/${t.version}${t.env?.node ? ` (env: node/${t.env.node})` : ""}`;
|
|
24435
24435
|
}
|
|
24436
|
-
async function
|
|
24436
|
+
async function xi(t, e) {
|
|
24437
24437
|
const n = await t.data.legacyClients.get(e);
|
|
24438
24438
|
if (!n)
|
|
24439
24439
|
throw new U(403, { message: "Client not found" });
|
|
@@ -24449,7 +24449,7 @@ async function ki(t, e) {
|
|
|
24449
24449
|
...d || {},
|
|
24450
24450
|
...l
|
|
24451
24451
|
});
|
|
24452
|
-
return u.options =
|
|
24452
|
+
return u.options = io.parse({
|
|
24453
24453
|
...d.options || {},
|
|
24454
24454
|
...l.options
|
|
24455
24455
|
}), u;
|
|
@@ -24561,7 +24561,7 @@ async function Ig(t, { code: e, state: n }) {
|
|
|
24561
24561
|
});
|
|
24562
24562
|
}
|
|
24563
24563
|
}
|
|
24564
|
-
const a = await
|
|
24564
|
+
const a = await xi(
|
|
24565
24565
|
r,
|
|
24566
24566
|
s.authParams.client_id
|
|
24567
24567
|
);
|
|
@@ -25132,7 +25132,7 @@ const jk = new W().openapi(
|
|
|
25132
25132
|
});
|
|
25133
25133
|
}
|
|
25134
25134
|
);
|
|
25135
|
-
function
|
|
25135
|
+
function fo(t, e) {
|
|
25136
25136
|
if (!t || !e || t.length !== e.length) return !1;
|
|
25137
25137
|
let n = 0;
|
|
25138
25138
|
for (let r = 0; r < t.length; r++)
|
|
@@ -25150,7 +25150,7 @@ async function Pk(t, e) {
|
|
|
25150
25150
|
const n = await t.env.data.legacyClients.get(e.client_id);
|
|
25151
25151
|
if (!n)
|
|
25152
25152
|
throw new U(403, { message: "Invalid client credentials" });
|
|
25153
|
-
if (n.client_secret && !
|
|
25153
|
+
if (n.client_secret && !fo(n.client_secret, e.client_secret))
|
|
25154
25154
|
throw new U(403, { message: "Invalid client credentials" });
|
|
25155
25155
|
const r = {
|
|
25156
25156
|
client_id: n.client_id,
|
|
@@ -25218,7 +25218,7 @@ async function Rk(t, e) {
|
|
|
25218
25218
|
});
|
|
25219
25219
|
if ("client_secret" in e) {
|
|
25220
25220
|
const l = await t.env.data.legacyClients.get("DEFAULT_CLIENT");
|
|
25221
|
-
if (!
|
|
25221
|
+
if (!fo(n.client_secret, e.client_secret) && !fo(l?.client_secret, e.client_secret))
|
|
25222
25222
|
throw se(t, n.tenant.id, {
|
|
25223
25223
|
type: oe.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
25224
25224
|
description: "Invalid client credentials",
|
|
@@ -25231,7 +25231,7 @@ async function Rk(t, e) {
|
|
|
25231
25231
|
e.code_verifier,
|
|
25232
25232
|
r.code_challenge_method
|
|
25233
25233
|
);
|
|
25234
|
-
if (!
|
|
25234
|
+
if (!fo(l, r.code_challenge))
|
|
25235
25235
|
throw se(t, n.tenant.id, {
|
|
25236
25236
|
type: oe.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
25237
25237
|
description: "Invalid client credentials",
|
|
@@ -25314,7 +25314,7 @@ async function Lk(t, e) {
|
|
|
25314
25314
|
const n = await t.env.data.legacyClients.get(e.client_id);
|
|
25315
25315
|
if (!n)
|
|
25316
25316
|
throw new U(403, { message: "Client not found" });
|
|
25317
|
-
if (e.client_secret && n.client_secret && !
|
|
25317
|
+
if (e.client_secret && n.client_secret && !fo(n.client_secret, e.client_secret))
|
|
25318
25318
|
throw new U(403, {
|
|
25319
25319
|
error: "invalid_client",
|
|
25320
25320
|
error_description: "Client authentication failed"
|
|
@@ -25389,13 +25389,13 @@ var Mk = {}.constructor;
|
|
|
25389
25389
|
function Hr(t) {
|
|
25390
25390
|
return t != null && t.constructor === Mk;
|
|
25391
25391
|
}
|
|
25392
|
-
function
|
|
25392
|
+
function ai(t) {
|
|
25393
25393
|
"@babel/helpers - typeof";
|
|
25394
|
-
return
|
|
25394
|
+
return ai = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
25395
25395
|
return typeof e;
|
|
25396
25396
|
} : function(e) {
|
|
25397
25397
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
25398
|
-
},
|
|
25398
|
+
}, ai(t);
|
|
25399
25399
|
}
|
|
25400
25400
|
function Bc(t, e) {
|
|
25401
25401
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -25411,14 +25411,14 @@ function Lc(t, e, n) {
|
|
|
25411
25411
|
}
|
|
25412
25412
|
function qk(t) {
|
|
25413
25413
|
var e = Fk(t, "string");
|
|
25414
|
-
return
|
|
25414
|
+
return ai(e) == "symbol" ? e : e + "";
|
|
25415
25415
|
}
|
|
25416
25416
|
function Fk(t, e) {
|
|
25417
|
-
if (
|
|
25417
|
+
if (ai(t) != "object" || !t) return t;
|
|
25418
25418
|
var n = t[Symbol.toPrimitive];
|
|
25419
25419
|
if (n !== void 0) {
|
|
25420
25420
|
var r = n.call(t, e);
|
|
25421
|
-
if (
|
|
25421
|
+
if (ai(r) != "object") return r;
|
|
25422
25422
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25423
25423
|
}
|
|
25424
25424
|
return String(t);
|
|
@@ -25840,7 +25840,7 @@ function Oy(t) {
|
|
|
25840
25840
|
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Hr(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + Xk(t) + ": " + t, "."));
|
|
25841
25841
|
}
|
|
25842
25842
|
var Xk = function(e) {
|
|
25843
|
-
return
|
|
25843
|
+
return ai(e);
|
|
25844
25844
|
};
|
|
25845
25845
|
function Ap(t, e) {
|
|
25846
25846
|
if (e = new Ze(e), e.hasCountry(t))
|
|
@@ -27494,7 +27494,7 @@ async function ls(t, e) {
|
|
|
27494
27494
|
async function zy(t, e) {
|
|
27495
27495
|
if (!t.var.client_id)
|
|
27496
27496
|
throw new v(500, { message: "Client not found" });
|
|
27497
|
-
const n = await
|
|
27497
|
+
const n = await xi(t.env, t.var.client_id), r = n.connections.find((a) => a.strategy === "sms");
|
|
27498
27498
|
if (!r)
|
|
27499
27499
|
throw new v(500, { message: "SMS provider not found" });
|
|
27500
27500
|
const i = r.options?.provider || "twilio", s = t.env.smsProviders?.[i];
|
|
@@ -27767,7 +27767,7 @@ const o8 = new W().openapi(
|
|
|
27767
27767
|
message: f?.message || "Password does not meet the requirements"
|
|
27768
27768
|
});
|
|
27769
27769
|
}
|
|
27770
|
-
if (await
|
|
27770
|
+
if (await Gr({
|
|
27771
27771
|
userAdapter: t.env.data.users,
|
|
27772
27772
|
tenant_id: i.tenant.id,
|
|
27773
27773
|
username: e,
|
|
@@ -27830,7 +27830,7 @@ const o8 = new W().openapi(
|
|
|
27830
27830
|
throw new v(400, {
|
|
27831
27831
|
message: "Client not found"
|
|
27832
27832
|
});
|
|
27833
|
-
if (t.set("client_id", r.client_id), t.set("tenant_id", r.tenant.id), !await
|
|
27833
|
+
if (t.set("client_id", r.client_id), t.set("tenant_id", r.tenant.id), !await di({
|
|
27834
27834
|
userAdapter: t.env.data.users,
|
|
27835
27835
|
tenant_id: r.tenant.id,
|
|
27836
27836
|
username: e,
|
|
@@ -28005,7 +28005,7 @@ const s8 = new W().openapi(
|
|
|
28005
28005
|
audience: l,
|
|
28006
28006
|
response_type: d,
|
|
28007
28007
|
nonce: u
|
|
28008
|
-
} = t.req.valid("query"), f = await
|
|
28008
|
+
} = t.req.valid("query"), f = await xi(e, n);
|
|
28009
28009
|
t.set("client_id", f.client_id), t.set("tenant_id", f.tenant.id), t.set("connection", "email");
|
|
28010
28010
|
const g = {
|
|
28011
28011
|
client_id: n,
|
|
@@ -28079,7 +28079,7 @@ async function Fy(t, e, n, r) {
|
|
|
28079
28079
|
const { data: i } = t.env, { username: s } = n;
|
|
28080
28080
|
if (t.set("username", s), !s)
|
|
28081
28081
|
throw new U(400, { message: "Username is required" });
|
|
28082
|
-
const a = await
|
|
28082
|
+
const a = await di({
|
|
28083
28083
|
userAdapter: t.env.data.users,
|
|
28084
28084
|
tenant_id: e.tenant.id,
|
|
28085
28085
|
username: s,
|
|
@@ -28632,7 +28632,7 @@ const g8 = ["email", "sms", "Username-Password-Authentication"], m8 = new W().op
|
|
|
28632
28632
|
organization: N
|
|
28633
28633
|
} = t.req.valid("query");
|
|
28634
28634
|
t.set("log", "authorize");
|
|
28635
|
-
const T = await
|
|
28635
|
+
const T = await xi(e, n);
|
|
28636
28636
|
t.set("client_id", T.client_id), t.set("tenant_id", T.tenant.id);
|
|
28637
28637
|
const J = {
|
|
28638
28638
|
redirect_uri: i.split("#")[0],
|
|
@@ -28759,7 +28759,7 @@ const g8 = ["email", "sms", "Username-Password-Authentication"], m8 = new W().op
|
|
|
28759
28759
|
async (t) => {
|
|
28760
28760
|
const { env: e } = t, { client_id: n, redirect_url: r, login_hint: i, screen_hint: s } = t.req.valid("query");
|
|
28761
28761
|
t.set("log", "account");
|
|
28762
|
-
const a = await
|
|
28762
|
+
const a = await xi(e, n);
|
|
28763
28763
|
t.set("client_id", a.client_id), t.set("tenant_id", a.tenant.id);
|
|
28764
28764
|
const c = {
|
|
28765
28765
|
redirect_uri: r || t.req.url,
|
|
@@ -28891,7 +28891,7 @@ async function me(t, e, n = !1) {
|
|
|
28891
28891
|
if (!i)
|
|
28892
28892
|
throw new U(400, { message: "Login session not found" });
|
|
28893
28893
|
t.set("loginSession", i);
|
|
28894
|
-
const s = await
|
|
28894
|
+
const s = await xi(
|
|
28895
28895
|
r,
|
|
28896
28896
|
i.authParams.client_id
|
|
28897
28897
|
);
|
|
@@ -28966,10 +28966,15 @@ async function w8(t, e, n, r, i) {
|
|
|
28966
28966
|
return "password";
|
|
28967
28967
|
if (i === "code")
|
|
28968
28968
|
return r === "sms" ? "sms" : "email";
|
|
28969
|
-
const a = (await Ba({
|
|
28969
|
+
const a = (r === "email" ? await Ba({
|
|
28970
28970
|
userAdapter: t.env.data.users,
|
|
28971
28971
|
tenant_id: e.tenant.id,
|
|
28972
28972
|
email: n
|
|
28973
|
+
}) : await Gr({
|
|
28974
|
+
userAdapter: t.env.data.users,
|
|
28975
|
+
tenant_id: e.tenant.id,
|
|
28976
|
+
username: n,
|
|
28977
|
+
provider: r === "sms" ? "sms" : "auth2"
|
|
28973
28978
|
}))?.app_metadata?.strategy;
|
|
28974
28979
|
if (a && gl[a])
|
|
28975
28980
|
return gl[a];
|
|
@@ -29897,7 +29902,7 @@ const P8 = new W().openapi(
|
|
|
29897
29902
|
userAdapter: e.data.users,
|
|
29898
29903
|
tenant_id: i.tenant.id,
|
|
29899
29904
|
email: _
|
|
29900
|
-
}) : await
|
|
29905
|
+
}) : await Gr({
|
|
29901
29906
|
userAdapter: e.data.users,
|
|
29902
29907
|
tenant_id: i.tenant.id,
|
|
29903
29908
|
username: _,
|
|
@@ -30060,7 +30065,7 @@ var Lo = "_hp", T8 = {
|
|
|
30060
30065
|
}, R8 = {
|
|
30061
30066
|
svg: "2000/svg",
|
|
30062
30067
|
math: "1998/Math/MathML"
|
|
30063
|
-
}, Uo = [], hu = /* @__PURE__ */ new WeakMap(),
|
|
30068
|
+
}, Uo = [], hu = /* @__PURE__ */ new WeakMap(), ci = void 0, B8 = () => ci, rn = (t) => "t" in t, wl = {
|
|
30064
30069
|
// pre-define events that are used very frequently
|
|
30065
30070
|
onClick: ["click", !1]
|
|
30066
30071
|
}, a0 = (t) => {
|
|
@@ -30073,7 +30078,7 @@ var Lo = "_hp", T8 = {
|
|
|
30073
30078
|
const [, n, r] = e;
|
|
30074
30079
|
return wl[t] = [(T8[n] || n).toLowerCase(), !!r];
|
|
30075
30080
|
}
|
|
30076
|
-
}, c0 = (t, e) =>
|
|
30081
|
+
}, c0 = (t, e) => ci && t instanceof SVGElement && /[A-Z]/.test(e) && (e in t.style || // Presentation attributes are findable in style object. "clip-path", "font-size", "stroke-width", etc.
|
|
30077
30082
|
e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e, L8 = (t, e, n) => {
|
|
30078
30083
|
e ||= {};
|
|
30079
30084
|
for (let r in e) {
|
|
@@ -30157,7 +30162,7 @@ e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e
|
|
|
30157
30162
|
return t.e;
|
|
30158
30163
|
}
|
|
30159
30164
|
}, Gy = (t) => {
|
|
30160
|
-
rn(t) || (t[Se]?.[1][Xy]?.forEach((e) => e[2]?.()), hu.get(t.e)?.(), t.p === 2 && t.vC?.forEach((e) => e.p = 2), t.vC?.forEach(Gy)), t.p || (t.e?.remove(), delete t.e), typeof t.tag == "function" && (
|
|
30165
|
+
rn(t) || (t[Se]?.[1][Xy]?.forEach((e) => e[2]?.()), hu.get(t.e)?.(), t.p === 2 && t.vC?.forEach((e) => e.p = 2), t.vC?.forEach(Gy)), t.p || (t.e?.remove(), delete t.e), typeof t.tag == "function" && (to.delete(t), Is.delete(t), delete t[Se][3], t.a = !0);
|
|
30161
30166
|
}, Wy = (t, e, n) => {
|
|
30162
30167
|
t.c = e, Jy(t, e, n);
|
|
30163
30168
|
}, l0 = (t, e) => {
|
|
@@ -30211,7 +30216,7 @@ e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e
|
|
|
30211
30216
|
let d = z8(n[l]);
|
|
30212
30217
|
if (d) {
|
|
30213
30218
|
typeof d.tag == "function" && // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30214
|
-
!d.tag[_m] && (
|
|
30219
|
+
!d.tag[_m] && (Wr.length > 0 && (d[Se][2] = Wr.map((f) => [f, f.values.at(-1)])), t[5]?.length && (d[Se][3] = t[5].at(-1)));
|
|
30215
30220
|
let u;
|
|
30216
30221
|
if (s && s.length) {
|
|
30217
30222
|
const f = s.findIndex(
|
|
@@ -30232,8 +30237,8 @@ e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e
|
|
|
30232
30237
|
}
|
|
30233
30238
|
d = u;
|
|
30234
30239
|
}
|
|
30235
|
-
else if (!rn(d) &&
|
|
30236
|
-
const f =
|
|
30240
|
+
else if (!rn(d) && ci) {
|
|
30241
|
+
const f = ui(ci);
|
|
30237
30242
|
f && (d.n = f);
|
|
30238
30243
|
}
|
|
30239
30244
|
if (!rn(d) && !d.s && (gu(t, d), delete d.f), a.push(d), c && !c.s && !d.s)
|
|
@@ -30292,9 +30297,9 @@ e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e
|
|
|
30292
30297
|
t[Se] = [0, []];
|
|
30293
30298
|
else {
|
|
30294
30299
|
const e = R8[t.tag];
|
|
30295
|
-
e && (
|
|
30300
|
+
e && (ci ||= wm(""), t.props.children = [
|
|
30296
30301
|
{
|
|
30297
|
-
tag:
|
|
30302
|
+
tag: ci,
|
|
30298
30303
|
props: {
|
|
30299
30304
|
value: t.n = `http://www.w3.org/${e}`,
|
|
30300
30305
|
children: t.props.children
|
|
@@ -30320,13 +30325,13 @@ e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e
|
|
|
30320
30325
|
e[Se][2]?.forEach(([n]) => {
|
|
30321
30326
|
n.values.pop();
|
|
30322
30327
|
}), (t[0] !== 1 || !t[1]) && Wy(e, e.c, !1);
|
|
30323
|
-
},
|
|
30328
|
+
}, to = /* @__PURE__ */ new WeakMap(), p0 = [], Os = async (t, e) => {
|
|
30324
30329
|
t[5] ||= [];
|
|
30325
|
-
const n =
|
|
30330
|
+
const n = to.get(e);
|
|
30326
30331
|
n && n[0](void 0);
|
|
30327
30332
|
let r;
|
|
30328
30333
|
const i = new Promise((s) => r = s);
|
|
30329
|
-
if (
|
|
30334
|
+
if (to.set(e, [
|
|
30330
30335
|
r,
|
|
30331
30336
|
() => {
|
|
30332
30337
|
t[2] ? t[2](t, e, (s) => {
|
|
@@ -30337,8 +30342,8 @@ e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e
|
|
|
30337
30342
|
p0.at(-1).add(e);
|
|
30338
30343
|
else {
|
|
30339
30344
|
await Promise.resolve();
|
|
30340
|
-
const s =
|
|
30341
|
-
s && (
|
|
30345
|
+
const s = to.get(e);
|
|
30346
|
+
s && (to.delete(e), s[1]());
|
|
30342
30347
|
}
|
|
30343
30348
|
return i;
|
|
30344
30349
|
}, q8 = (t, e, n) => ({
|
|
@@ -30522,7 +30527,7 @@ e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e
|
|
|
30522
30527
|
);
|
|
30523
30528
|
}, Y8 = (t) => {
|
|
30524
30529
|
const e = B8();
|
|
30525
|
-
return (e &&
|
|
30530
|
+
return (e && ui(e))?.endsWith("svg") ? {
|
|
30526
30531
|
tag: "title",
|
|
30527
30532
|
props: t,
|
|
30528
30533
|
type: "title",
|
|
@@ -30969,7 +30974,7 @@ const yr = (t) => {
|
|
|
30969
30974
|
),
|
|
30970
30975
|
400
|
|
30971
30976
|
);
|
|
30972
|
-
const l = await
|
|
30977
|
+
const l = await Gr({
|
|
30973
30978
|
userAdapter: t.env.data.users,
|
|
30974
30979
|
tenant_id: a.tenant.id,
|
|
30975
30980
|
username: s.authParams.username,
|
|
@@ -31095,7 +31100,7 @@ const yr = (t) => {
|
|
|
31095
31100
|
} catch (d) {
|
|
31096
31101
|
let u;
|
|
31097
31102
|
try {
|
|
31098
|
-
u = await
|
|
31103
|
+
u = await Gr({
|
|
31099
31104
|
userAdapter: t.env.data.users,
|
|
31100
31105
|
tenant_id: a.tenant.id,
|
|
31101
31106
|
username: c.authParams.username,
|
|
@@ -31708,7 +31713,7 @@ const yr = (t) => {
|
|
|
31708
31713
|
]
|
|
31709
31714
|
}
|
|
31710
31715
|
);
|
|
31711
|
-
},
|
|
31716
|
+
}, ji = ({
|
|
31712
31717
|
error: t,
|
|
31713
31718
|
theme: e,
|
|
31714
31719
|
branding: n,
|
|
@@ -31985,7 +31990,7 @@ const yr = (t) => {
|
|
|
31985
31990
|
branding: i,
|
|
31986
31991
|
client: s,
|
|
31987
31992
|
children: /* @__PURE__ */ p(
|
|
31988
|
-
|
|
31993
|
+
ji,
|
|
31989
31994
|
{
|
|
31990
31995
|
theme: r,
|
|
31991
31996
|
branding: i,
|
|
@@ -32082,7 +32087,7 @@ const yr = (t) => {
|
|
|
32082
32087
|
branding: s,
|
|
32083
32088
|
client: a,
|
|
32084
32089
|
children: /* @__PURE__ */ p(
|
|
32085
|
-
|
|
32090
|
+
ji,
|
|
32086
32091
|
{
|
|
32087
32092
|
theme: i,
|
|
32088
32093
|
branding: s,
|
|
@@ -32138,7 +32143,7 @@ const yr = (t) => {
|
|
|
32138
32143
|
branding: s,
|
|
32139
32144
|
client: a,
|
|
32140
32145
|
children: /* @__PURE__ */ p(
|
|
32141
|
-
|
|
32146
|
+
ji,
|
|
32142
32147
|
{
|
|
32143
32148
|
theme: i,
|
|
32144
32149
|
branding: s,
|
|
@@ -32176,7 +32181,7 @@ const yr = (t) => {
|
|
|
32176
32181
|
a.tenant.id,
|
|
32177
32182
|
g.login_id
|
|
32178
32183
|
) : void 0;
|
|
32179
|
-
if (await
|
|
32184
|
+
if (await di({
|
|
32180
32185
|
userAdapter: t.env.data.users,
|
|
32181
32186
|
tenant_id: a.tenant.id,
|
|
32182
32187
|
username: c.authParams.username,
|
|
@@ -32191,7 +32196,7 @@ const yr = (t) => {
|
|
|
32191
32196
|
branding: s,
|
|
32192
32197
|
client: a,
|
|
32193
32198
|
children: /* @__PURE__ */ p(
|
|
32194
|
-
|
|
32199
|
+
ji,
|
|
32195
32200
|
{
|
|
32196
32201
|
theme: i,
|
|
32197
32202
|
branding: s,
|
|
@@ -32270,7 +32275,7 @@ const yr = (t) => {
|
|
|
32270
32275
|
branding: s,
|
|
32271
32276
|
client: a,
|
|
32272
32277
|
children: /* @__PURE__ */ p(
|
|
32273
|
-
|
|
32278
|
+
ji,
|
|
32274
32279
|
{
|
|
32275
32280
|
theme: i,
|
|
32276
32281
|
branding: s,
|
|
@@ -32301,7 +32306,7 @@ const yr = (t) => {
|
|
|
32301
32306
|
);
|
|
32302
32307
|
}
|
|
32303
32308
|
}
|
|
32304
|
-
),
|
|
32309
|
+
), Ii = (t) => {
|
|
32305
32310
|
const { error: e, theme: n, branding: r, client: i, email: s } = t;
|
|
32306
32311
|
return /* @__PURE__ */ p(
|
|
32307
32312
|
Ie,
|
|
@@ -32334,7 +32339,7 @@ const yr = (t) => {
|
|
|
32334
32339
|
]
|
|
32335
32340
|
}
|
|
32336
32341
|
);
|
|
32337
|
-
},
|
|
32342
|
+
}, Oi = ({
|
|
32338
32343
|
error: t,
|
|
32339
32344
|
theme: e,
|
|
32340
32345
|
branding: n,
|
|
@@ -32581,7 +32586,7 @@ const yr = (t) => {
|
|
|
32581
32586
|
branding: r,
|
|
32582
32587
|
client: i,
|
|
32583
32588
|
children: /* @__PURE__ */ p(
|
|
32584
|
-
|
|
32589
|
+
Oi,
|
|
32585
32590
|
{
|
|
32586
32591
|
theme: n,
|
|
32587
32592
|
branding: r,
|
|
@@ -32594,7 +32599,7 @@ const yr = (t) => {
|
|
|
32594
32599
|
)
|
|
32595
32600
|
) : t.html(
|
|
32596
32601
|
/* @__PURE__ */ p(
|
|
32597
|
-
|
|
32602
|
+
Ii,
|
|
32598
32603
|
{
|
|
32599
32604
|
theme: n,
|
|
32600
32605
|
branding: r,
|
|
@@ -32649,7 +32654,7 @@ const yr = (t) => {
|
|
|
32649
32654
|
branding: c,
|
|
32650
32655
|
client: l,
|
|
32651
32656
|
children: /* @__PURE__ */ p(
|
|
32652
|
-
|
|
32657
|
+
Oi,
|
|
32653
32658
|
{
|
|
32654
32659
|
error: y.t("create_account_passwords_didnt_match"),
|
|
32655
32660
|
theme: a,
|
|
@@ -32664,7 +32669,7 @@ const yr = (t) => {
|
|
|
32664
32669
|
400
|
|
32665
32670
|
) : t.html(
|
|
32666
32671
|
/* @__PURE__ */ p(
|
|
32667
|
-
|
|
32672
|
+
Ii,
|
|
32668
32673
|
{
|
|
32669
32674
|
error: y.t("create_account_passwords_didnt_match"),
|
|
32670
32675
|
theme: a,
|
|
@@ -32675,7 +32680,7 @@ const yr = (t) => {
|
|
|
32675
32680
|
),
|
|
32676
32681
|
400
|
|
32677
32682
|
);
|
|
32678
|
-
const f = await
|
|
32683
|
+
const f = await di({
|
|
32679
32684
|
userAdapter: s.data.users,
|
|
32680
32685
|
tenant_id: l.tenant.id,
|
|
32681
32686
|
username: d.authParams.username,
|
|
@@ -32707,7 +32712,7 @@ const yr = (t) => {
|
|
|
32707
32712
|
branding: c,
|
|
32708
32713
|
client: l,
|
|
32709
32714
|
children: /* @__PURE__ */ p(
|
|
32710
|
-
|
|
32715
|
+
Oi,
|
|
32711
32716
|
{
|
|
32712
32717
|
error: w,
|
|
32713
32718
|
theme: a,
|
|
@@ -32722,7 +32727,7 @@ const yr = (t) => {
|
|
|
32722
32727
|
400
|
|
32723
32728
|
) : t.html(
|
|
32724
32729
|
/* @__PURE__ */ p(
|
|
32725
|
-
|
|
32730
|
+
Ii,
|
|
32726
32731
|
{
|
|
32727
32732
|
error: w,
|
|
32728
32733
|
theme: a,
|
|
@@ -32753,7 +32758,7 @@ const yr = (t) => {
|
|
|
32753
32758
|
branding: c,
|
|
32754
32759
|
client: l,
|
|
32755
32760
|
children: /* @__PURE__ */ p(
|
|
32756
|
-
|
|
32761
|
+
Oi,
|
|
32757
32762
|
{
|
|
32758
32763
|
error: k,
|
|
32759
32764
|
theme: a,
|
|
@@ -32768,7 +32773,7 @@ const yr = (t) => {
|
|
|
32768
32773
|
400
|
|
32769
32774
|
) : t.html(
|
|
32770
32775
|
/* @__PURE__ */ p(
|
|
32771
|
-
|
|
32776
|
+
Ii,
|
|
32772
32777
|
{
|
|
32773
32778
|
error: k,
|
|
32774
32779
|
theme: a,
|
|
@@ -32826,7 +32831,7 @@ const yr = (t) => {
|
|
|
32826
32831
|
branding: c,
|
|
32827
32832
|
client: l,
|
|
32828
32833
|
children: /* @__PURE__ */ p(
|
|
32829
|
-
|
|
32834
|
+
Oi,
|
|
32830
32835
|
{
|
|
32831
32836
|
error: k,
|
|
32832
32837
|
theme: a,
|
|
@@ -32841,7 +32846,7 @@ const yr = (t) => {
|
|
|
32841
32846
|
400
|
|
32842
32847
|
) : t.html(
|
|
32843
32848
|
/* @__PURE__ */ p(
|
|
32844
|
-
|
|
32849
|
+
Ii,
|
|
32845
32850
|
{
|
|
32846
32851
|
error: k,
|
|
32847
32852
|
theme: a,
|
|
@@ -34470,7 +34475,7 @@ const yr = (t) => {
|
|
|
34470
34475
|
throw new v(400, {
|
|
34471
34476
|
message: "Username not found in state"
|
|
34472
34477
|
});
|
|
34473
|
-
const u = await
|
|
34478
|
+
const u = await di({
|
|
34474
34479
|
userAdapter: r.data.users,
|
|
34475
34480
|
tenant_id: i.tenant.id,
|
|
34476
34481
|
username: d,
|
|
@@ -36006,18 +36011,18 @@ function N0(t, e) {
|
|
|
36006
36011
|
const n = zp.getAllMatches(t, nS), r = {};
|
|
36007
36012
|
for (let i = 0; i < n.length; i++) {
|
|
36008
36013
|
if (n[i][1].length === 0)
|
|
36009
|
-
return Ce("InvalidAttr", "Attribute '" + n[i][2] + "' has no space in starting.",
|
|
36014
|
+
return Ce("InvalidAttr", "Attribute '" + n[i][2] + "' has no space in starting.", Pi(n[i]));
|
|
36010
36015
|
if (n[i][3] !== void 0 && n[i][4] === void 0)
|
|
36011
|
-
return Ce("InvalidAttr", "Attribute '" + n[i][2] + "' is without value.",
|
|
36016
|
+
return Ce("InvalidAttr", "Attribute '" + n[i][2] + "' is without value.", Pi(n[i]));
|
|
36012
36017
|
if (n[i][3] === void 0 && !e.allowBooleanAttributes)
|
|
36013
|
-
return Ce("InvalidAttr", "boolean attribute '" + n[i][2] + "' is not allowed.",
|
|
36018
|
+
return Ce("InvalidAttr", "boolean attribute '" + n[i][2] + "' is not allowed.", Pi(n[i]));
|
|
36014
36019
|
const s = n[i][2];
|
|
36015
36020
|
if (!oS(s))
|
|
36016
|
-
return Ce("InvalidAttr", "Attribute '" + s + "' is an invalid name.",
|
|
36021
|
+
return Ce("InvalidAttr", "Attribute '" + s + "' is an invalid name.", Pi(n[i]));
|
|
36017
36022
|
if (!r.hasOwnProperty(s))
|
|
36018
36023
|
r[s] = 1;
|
|
36019
36024
|
else
|
|
36020
|
-
return Ce("InvalidAttr", "Attribute '" + s + "' is repeated.",
|
|
36025
|
+
return Ce("InvalidAttr", "Attribute '" + s + "' is repeated.", Pi(n[i]));
|
|
36021
36026
|
}
|
|
36022
36027
|
return !0;
|
|
36023
36028
|
}
|
|
@@ -36069,7 +36074,7 @@ function Ye(t, e) {
|
|
|
36069
36074
|
col: n[n.length - 1].length + 1
|
|
36070
36075
|
};
|
|
36071
36076
|
}
|
|
36072
|
-
function
|
|
36077
|
+
function Pi(t) {
|
|
36073
36078
|
return t.startIndex + t[1].length;
|
|
36074
36079
|
}
|
|
36075
36080
|
var qp = {};
|
|
@@ -36253,7 +36258,7 @@ function ES(t) {
|
|
|
36253
36258
|
} : () => !1;
|
|
36254
36259
|
}
|
|
36255
36260
|
var r1 = ES;
|
|
36256
|
-
const i1 = Dc,
|
|
36261
|
+
const i1 = Dc, Ti = lS, CS = wS, NS = AS, jS = r1;
|
|
36257
36262
|
let IS = class {
|
|
36258
36263
|
constructor(t) {
|
|
36259
36264
|
this.options = t, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
@@ -36338,7 +36343,7 @@ function BS(t, e, n) {
|
|
|
36338
36343
|
const LS = function(t) {
|
|
36339
36344
|
t = t.replace(/\r\n?/g, `
|
|
36340
36345
|
`);
|
|
36341
|
-
const e = new
|
|
36346
|
+
const e = new Ti("!xml");
|
|
36342
36347
|
let n = e, r = "", i = "";
|
|
36343
36348
|
for (let s = 0; s < t.length; s++)
|
|
36344
36349
|
if (t[s] === "<")
|
|
@@ -36359,7 +36364,7 @@ const LS = function(t) {
|
|
|
36359
36364
|
let a = yu(t, s, !1, "?>");
|
|
36360
36365
|
if (!a) throw new Error("Pi Tag is not closed.");
|
|
36361
36366
|
if (r = this.saveTextToParentTag(r, n, i), !(this.options.ignoreDeclaration && a.tagName === "?xml" || this.options.ignorePiTags)) {
|
|
36362
|
-
const c = new
|
|
36367
|
+
const c = new Ti(a.tagName);
|
|
36363
36368
|
c.add(this.options.textNodeName, ""), a.tagName !== a.tagExp && a.attrExpPresent && (c[":@"] = this.buildAttributesMap(a.tagExp, i, a.tagName)), this.addChild(n, c, i);
|
|
36364
36369
|
}
|
|
36365
36370
|
s = a.closeIndex + 1;
|
|
@@ -36395,15 +36400,15 @@ const LS = function(t) {
|
|
|
36395
36400
|
if (!k) throw new Error(`Unexpected end of ${l}`);
|
|
36396
36401
|
s = k.i, _ = k.tagContent;
|
|
36397
36402
|
}
|
|
36398
|
-
const w = new
|
|
36403
|
+
const w = new Ti(c);
|
|
36399
36404
|
c !== d && u && (w[":@"] = this.buildAttributesMap(d, i, c)), _ && (_ = this.parseTextData(_, c, i, !0, u, !0, !0)), i = i.substr(0, i.lastIndexOf(".")), w.add(this.options.textNodeName, _), this.addChild(n, w, i);
|
|
36400
36405
|
} else {
|
|
36401
36406
|
if (d.length > 0 && d.lastIndexOf("/") === d.length - 1) {
|
|
36402
36407
|
c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), i = i.substr(0, i.length - 1), d = c) : d = d.substr(0, d.length - 1), this.options.transformTagName && (c = this.options.transformTagName(c));
|
|
36403
|
-
const _ = new
|
|
36408
|
+
const _ = new Ti(c);
|
|
36404
36409
|
c !== d && u && (_[":@"] = this.buildAttributesMap(d, i, c)), this.addChild(n, _, i), i = i.substr(0, i.lastIndexOf("."));
|
|
36405
36410
|
} else {
|
|
36406
|
-
const _ = new
|
|
36411
|
+
const _ = new Ti(c);
|
|
36407
36412
|
this.tagsNodeStack.push(n), c !== d && u && (_[":@"] = this.buildAttributesMap(d, i, c)), this.addChild(n, _, i), n = _;
|
|
36408
36413
|
}
|
|
36409
36414
|
r = "", s = f;
|
|
@@ -38715,7 +38720,7 @@ function eJ(t, e) {
|
|
|
38715
38720
|
...g || {},
|
|
38716
38721
|
...f
|
|
38717
38722
|
});
|
|
38718
|
-
return _.options =
|
|
38723
|
+
return _.options = io.parse({
|
|
38719
38724
|
...g.options || {},
|
|
38720
38725
|
...f.options
|
|
38721
38726
|
}), _;
|
|
@@ -38761,7 +38766,7 @@ function eJ(t, e) {
|
|
|
38761
38766
|
...c,
|
|
38762
38767
|
...a
|
|
38763
38768
|
});
|
|
38764
|
-
return l.options =
|
|
38769
|
+
return l.options = io.parse({
|
|
38765
38770
|
...c.options || {},
|
|
38766
38771
|
...a.options
|
|
38767
38772
|
}), l;
|
|
@@ -38780,7 +38785,7 @@ function eJ(t, e) {
|
|
|
38780
38785
|
...u,
|
|
38781
38786
|
...d
|
|
38782
38787
|
});
|
|
38783
|
-
return f.options =
|
|
38788
|
+
return f.options = io.parse({
|
|
38784
38789
|
...u.options || {},
|
|
38785
38790
|
...d.options
|
|
38786
38791
|
}), f;
|
|
@@ -38954,7 +38959,7 @@ export {
|
|
|
38954
38959
|
Q1 as NodeType,
|
|
38955
38960
|
Bx as PreSignUpConfirmationPage,
|
|
38956
38961
|
Cx as PreSignUpPage,
|
|
38957
|
-
|
|
38962
|
+
Ii as ResetPasswordPage,
|
|
38958
38963
|
Cr as SignUpPage,
|
|
38959
38964
|
j8 as SocialButton,
|
|
38960
38965
|
N8 as Spinner,
|
|
@@ -38982,7 +38987,7 @@ export {
|
|
|
38982
38987
|
Aw as colorsSchema,
|
|
38983
38988
|
Y1 as componentSchema,
|
|
38984
38989
|
Nl as connectionInsertSchema,
|
|
38985
|
-
|
|
38990
|
+
io as connectionOptionsSchema,
|
|
38986
38991
|
kt as connectionSchema,
|
|
38987
38992
|
Do as coordinatesSchema,
|
|
38988
38993
|
Rc as createInMemoryCache,
|
|
@@ -39000,11 +39005,11 @@ export {
|
|
|
39000
39005
|
lJ as formControlSchema,
|
|
39001
39006
|
jl as formInsertSchema,
|
|
39002
39007
|
dw as formNodeComponentDefinition,
|
|
39003
|
-
|
|
39008
|
+
Ri as formSchema,
|
|
39004
39009
|
Z1 as genericComponentSchema,
|
|
39005
39010
|
nw as genericNodeSchema,
|
|
39006
39011
|
Kc as hookInsertSchema,
|
|
39007
|
-
|
|
39012
|
+
Bi as hookSchema,
|
|
39008
39013
|
H1 as identitySchema,
|
|
39009
39014
|
jZ as init,
|
|
39010
39015
|
xZ as injectTailwindCSS,
|