authhero 0.227.0 → 0.228.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 +24 -24
- package/dist/authhero.mjs +726 -706
- package/package.json +1 -1
package/dist/authhero.mjs
CHANGED
|
@@ -361,8 +361,8 @@ class _a extends dc {
|
|
|
361
361
|
}
|
|
362
362
|
const h = this.resolve(e, n);
|
|
363
363
|
let g = h == null ? void 0 : h.res;
|
|
364
|
-
const b = (h == null ? void 0 : h.usedKey) || a, A = (h == null ? void 0 : h.exactUsedKey) || a,
|
|
365
|
-
if (x && g && z &&
|
|
364
|
+
const b = (h == null ? void 0 : h.usedKey) || a, A = (h == null ? void 0 : h.exactUsedKey) || a, C = Object.prototype.toString.apply(g), D = ["[object Number]", "[object Function]", "[object RegExp]"], O = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject, z = !Ne(g) && typeof g != "boolean" && typeof g != "number";
|
|
365
|
+
if (x && g && z && D.indexOf(C) < 0 && !(Ne(O) && Array.isArray(g))) {
|
|
366
366
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
367
367
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
368
368
|
const q = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, g, {
|
|
@@ -375,22 +375,22 @@ class _a extends dc {
|
|
|
375
375
|
const q = Array.isArray(g), M = q ? [] : {}, K = q ? A : b;
|
|
376
376
|
for (const W in g)
|
|
377
377
|
if (Object.prototype.hasOwnProperty.call(g, W)) {
|
|
378
|
-
const
|
|
379
|
-
M[W] = this.translate(
|
|
378
|
+
const Y = `${K}${s}${W}`;
|
|
379
|
+
M[W] = this.translate(Y, {
|
|
380
380
|
...n,
|
|
381
381
|
joinArrays: !1,
|
|
382
382
|
ns: l
|
|
383
|
-
}), M[W] ===
|
|
383
|
+
}), M[W] === Y && (M[W] = g[W]);
|
|
384
384
|
}
|
|
385
385
|
g = M;
|
|
386
386
|
}
|
|
387
|
-
} else if (x && Ne(
|
|
388
|
-
g = g.join(
|
|
387
|
+
} else if (x && Ne(O) && Array.isArray(g))
|
|
388
|
+
g = g.join(O), g && (g = this.extendTranslation(g, e, n, r));
|
|
389
389
|
else {
|
|
390
390
|
let q = !1, M = !1;
|
|
391
|
-
const K = n.count !== void 0 && !Ne(n.count), W = _a.hasDefaultValue(n),
|
|
391
|
+
const K = n.count !== void 0 && !Ne(n.count), W = _a.hasDefaultValue(n), Y = K ? this.pluralResolver.getSuffix(d, n.count, n) : "", Z = n.ordinal && K ? this.pluralResolver.getSuffix(d, n.count, {
|
|
392
392
|
ordinal: !1
|
|
393
|
-
}) : "", Se = K && !n.ordinal && n.count === 0, j = Se && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${
|
|
393
|
+
}) : "", Se = K && !n.ordinal && n.count === 0, j = Se && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${Y}`] || n[`defaultValue${Z}`] || n.defaultValue;
|
|
394
394
|
!this.isValidLookup(g) && W && (q = !0, g = j), this.isValidLookup(g) || (M = !0, g = a);
|
|
395
395
|
const P = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : g, N = W && j !== g && this.options.updateMissing;
|
|
396
396
|
if (M || q || N) {
|
|
@@ -452,13 +452,13 @@ class _a extends dc {
|
|
|
452
452
|
...this.options.interpolation.defaultVariables,
|
|
453
453
|
...b
|
|
454
454
|
}), e = this.interpolator.interpolate(e, b, r.lng || this.language || i.usedLng, r), h) {
|
|
455
|
-
const A = e.match(this.interpolator.nestingRegexp),
|
|
456
|
-
g <
|
|
455
|
+
const A = e.match(this.interpolator.nestingRegexp), C = A && A.length;
|
|
456
|
+
g < C && (r.nest = !1);
|
|
457
457
|
}
|
|
458
458
|
!r.lng && i && i.res && (r.lng = this.language || i.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
459
|
-
for (var A = arguments.length,
|
|
460
|
-
|
|
461
|
-
return (s == null ? void 0 : s[0]) ===
|
|
459
|
+
for (var A = arguments.length, C = new Array(A), D = 0; D < A; D++)
|
|
460
|
+
C[D] = arguments[D];
|
|
461
|
+
return (s == null ? void 0 : s[0]) === C[0] && !r.context ? (a.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${n[0]}`), null) : a.translate(...C, n);
|
|
462
462
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
463
463
|
}
|
|
464
464
|
const l = r.postProcess || this.options.postProcess, u = Ne(l) ? [l] : l;
|
|
@@ -478,28 +478,28 @@ class _a extends dc {
|
|
|
478
478
|
i = p;
|
|
479
479
|
let h = d.namespaces;
|
|
480
480
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
481
|
-
const g = n.count !== void 0 && !Ne(n.count), b = g && !n.ordinal && n.count === 0, A = n.context !== void 0 && (Ne(n.context) || typeof n.context == "number") && n.context !== "",
|
|
482
|
-
h.forEach((
|
|
483
|
-
var
|
|
484
|
-
this.isValidLookup(r) || (l =
|
|
481
|
+
const g = n.count !== void 0 && !Ne(n.count), b = g && !n.ordinal && n.count === 0, A = n.context !== void 0 && (Ne(n.context) || typeof n.context == "number") && n.context !== "", C = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
482
|
+
h.forEach((D) => {
|
|
483
|
+
var O, x;
|
|
484
|
+
this.isValidLookup(r) || (l = D, !rh[`${C[0]}-${D}`] && ((O = this.utils) != null && O.hasLoadedNamespace) && !((x = this.utils) != null && x.hasLoadedNamespace(l)) && (rh[`${C[0]}-${D}`] = !0, this.logger.warn(`key "${i}" for languages "${C.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), C.forEach((z) => {
|
|
485
485
|
var K;
|
|
486
486
|
if (this.isValidLookup(r)) return;
|
|
487
487
|
a = z;
|
|
488
488
|
const q = [p];
|
|
489
489
|
if ((K = this.i18nFormat) != null && K.addLookupKeys)
|
|
490
|
-
this.i18nFormat.addLookupKeys(q, p, z,
|
|
490
|
+
this.i18nFormat.addLookupKeys(q, p, z, D, n);
|
|
491
491
|
else {
|
|
492
492
|
let W;
|
|
493
493
|
g && (W = this.pluralResolver.getSuffix(z, n.count, n));
|
|
494
|
-
const
|
|
495
|
-
if (g && (q.push(p + W), n.ordinal && W.indexOf(
|
|
494
|
+
const Y = `${this.options.pluralSeparator}zero`, Z = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
495
|
+
if (g && (q.push(p + W), n.ordinal && W.indexOf(Z) === 0 && q.push(p + W.replace(Z, this.options.pluralSeparator)), b && q.push(p + Y)), A) {
|
|
496
496
|
const Se = `${p}${this.options.contextSeparator}${n.context}`;
|
|
497
|
-
q.push(Se), g && (q.push(Se + W), n.ordinal && W.indexOf(
|
|
497
|
+
q.push(Se), g && (q.push(Se + W), n.ordinal && W.indexOf(Z) === 0 && q.push(Se + W.replace(Z, this.options.pluralSeparator)), b && q.push(Se + Y));
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
let M;
|
|
501
501
|
for (; M = q.pop(); )
|
|
502
|
-
this.isValidLookup(r) || (s = M, r = this.getResource(z,
|
|
502
|
+
this.isValidLookup(r) || (s = M, r = this.getResource(z, D, M, n));
|
|
503
503
|
}));
|
|
504
504
|
});
|
|
505
505
|
}), {
|
|
@@ -697,12 +697,12 @@ class Yy {
|
|
|
697
697
|
nestingPrefix: g,
|
|
698
698
|
nestingPrefixEscaped: b,
|
|
699
699
|
nestingSuffix: A,
|
|
700
|
-
nestingSuffixEscaped:
|
|
701
|
-
nestingOptionsSeparator:
|
|
702
|
-
maxReplaces:
|
|
700
|
+
nestingSuffixEscaped: C,
|
|
701
|
+
nestingOptionsSeparator: D,
|
|
702
|
+
maxReplaces: O,
|
|
703
703
|
alwaysFormat: x
|
|
704
704
|
} = e.interpolation;
|
|
705
|
-
this.escape = n !== void 0 ? n : Vy, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? li(s) : a || "{{", this.suffix = l ? li(l) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? li(g) : b || li("$t("), this.nestingSuffix = A ? li(A) :
|
|
705
|
+
this.escape = n !== void 0 ? n : Vy, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? li(s) : a || "{{", this.suffix = l ? li(l) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? li(g) : b || li("$t("), this.nestingSuffix = A ? li(A) : C || li(")"), this.nestingOptionsSeparator = D || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
708
|
this.options && this.init(this.options);
|
|
@@ -723,11 +723,11 @@ class Yy {
|
|
|
723
723
|
interpolationkey: A
|
|
724
724
|
}) : x;
|
|
725
725
|
}
|
|
726
|
-
const
|
|
727
|
-
return this.format(ah(n, u,
|
|
726
|
+
const C = A.split(this.formatSeparator), D = C.shift().trim(), O = C.join(this.formatSeparator).trim();
|
|
727
|
+
return this.format(ah(n, u, D, this.options.keySeparator, this.options.ignoreJSONStructure), O, r, {
|
|
728
728
|
...i,
|
|
729
729
|
...n,
|
|
730
|
-
interpolationkey:
|
|
730
|
+
interpolationkey: D
|
|
731
731
|
});
|
|
732
732
|
};
|
|
733
733
|
this.resetRegExp();
|
|
@@ -740,21 +740,21 @@ class Yy {
|
|
|
740
740
|
safeValue: (A) => this.escapeValue ? Cl(this.escape(A)) : Cl(A)
|
|
741
741
|
}].forEach((A) => {
|
|
742
742
|
for (l = 0; s = A.regex.exec(e); ) {
|
|
743
|
-
const
|
|
744
|
-
if (a = d(
|
|
743
|
+
const C = s[1].trim();
|
|
744
|
+
if (a = d(C), a === void 0)
|
|
745
745
|
if (typeof p == "function") {
|
|
746
|
-
const
|
|
747
|
-
a = Ne(
|
|
748
|
-
} else if (i && Object.prototype.hasOwnProperty.call(i,
|
|
746
|
+
const O = p(e, s, i);
|
|
747
|
+
a = Ne(O) ? O : "";
|
|
748
|
+
} else if (i && Object.prototype.hasOwnProperty.call(i, C))
|
|
749
749
|
a = "";
|
|
750
750
|
else if (h) {
|
|
751
751
|
a = s[0];
|
|
752
752
|
continue;
|
|
753
753
|
} else
|
|
754
|
-
this.logger.warn(`missed to pass in variable ${
|
|
754
|
+
this.logger.warn(`missed to pass in variable ${C} for interpolating ${e}`), a = "";
|
|
755
755
|
else !Ne(a) && !this.useRawValueToEscape && (a = Zf(a));
|
|
756
|
-
const
|
|
757
|
-
if (e = e.replace(s[0],
|
|
756
|
+
const D = A.safeValue(a);
|
|
757
|
+
if (e = e.replace(s[0], D), h ? (A.regex.lastIndex += a.length, A.regex.lastIndex -= s[0].length) : A.regex.lastIndex = 0, l++, l >= this.maxReplaces)
|
|
758
758
|
break;
|
|
759
759
|
}
|
|
760
760
|
}), e;
|
|
@@ -774,8 +774,8 @@ class Yy {
|
|
|
774
774
|
...d,
|
|
775
775
|
...a
|
|
776
776
|
});
|
|
777
|
-
} catch (
|
|
778
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${u}`,
|
|
777
|
+
} catch (C) {
|
|
778
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, C), `${u}${p}${g}`;
|
|
779
779
|
}
|
|
780
780
|
return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, u;
|
|
781
781
|
};
|
|
@@ -1038,10 +1038,10 @@ class tw extends dc {
|
|
|
1038
1038
|
}, A = this.backend.create.bind(this.backend);
|
|
1039
1039
|
if (A.length < 6)
|
|
1040
1040
|
try {
|
|
1041
|
-
let
|
|
1042
|
-
A.length === 5 ?
|
|
1043
|
-
} catch (
|
|
1044
|
-
l(
|
|
1041
|
+
let C;
|
|
1042
|
+
A.length === 5 ? C = A(e, n, r, i, b) : C = A(e, n, r, i), C && typeof C.then == "function" ? C.then((D) => l(null, D)).catch(l) : l(null, C);
|
|
1043
|
+
} catch (C) {
|
|
1044
|
+
l(C);
|
|
1045
1045
|
}
|
|
1046
1046
|
else
|
|
1047
1047
|
A(e, n, r, i, l, b);
|
|
@@ -1155,13 +1155,13 @@ class Rs extends dc {
|
|
|
1155
1155
|
}), p && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (g.formatter = s(p), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new Yy(this.options), g.utils = {
|
|
1156
1156
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1157
1157
|
}, g.backendConnector = new tw(s(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", function(b) {
|
|
1158
|
-
for (var A = arguments.length,
|
|
1159
|
-
|
|
1160
|
-
e.emit(b, ...
|
|
1158
|
+
for (var A = arguments.length, C = new Array(A > 1 ? A - 1 : 0), D = 1; D < A; D++)
|
|
1159
|
+
C[D - 1] = arguments[D];
|
|
1160
|
+
e.emit(b, ...C);
|
|
1161
1161
|
}), this.modules.languageDetector && (g.languageDetector = s(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = s(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new _a(this.services, this.options), this.translator.on("*", function(b) {
|
|
1162
|
-
for (var A = arguments.length,
|
|
1163
|
-
|
|
1164
|
-
e.emit(b, ...
|
|
1162
|
+
for (var A = arguments.length, C = new Array(A > 1 ? A - 1 : 0), D = 1; D < A; D++)
|
|
1163
|
+
C[D - 1] = arguments[D];
|
|
1164
|
+
e.emit(b, ...C);
|
|
1165
1165
|
}), this.modules.external.forEach((b) => {
|
|
1166
1166
|
b.init && b.init(this);
|
|
1167
1167
|
});
|
|
@@ -3162,14 +3162,14 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3162
3162
|
n = null, e.setRandomFallback = function(j) {
|
|
3163
3163
|
n = j;
|
|
3164
3164
|
}, e.genSaltSync = function(j, F) {
|
|
3165
|
-
if (j = j ||
|
|
3165
|
+
if (j = j || C, typeof j != "number")
|
|
3166
3166
|
throw Error("Illegal arguments: " + typeof j + ", " + typeof F);
|
|
3167
3167
|
j < 4 ? j = 4 : j > 31 && (j = 31);
|
|
3168
3168
|
var P = [];
|
|
3169
3169
|
return P.push("$2a$"), j < 10 && P.push("0"), P.push(j.toString()), P.push("$"), P.push(h(r(A), A)), P.join("");
|
|
3170
3170
|
}, e.genSalt = function(j, F, P) {
|
|
3171
3171
|
if (typeof F == "function" && (P = F, F = void 0), typeof j == "function" && (P = j, j = void 0), typeof j > "u")
|
|
3172
|
-
j =
|
|
3172
|
+
j = C;
|
|
3173
3173
|
else if (typeof j != "number")
|
|
3174
3174
|
throw Error("illegal arguments: " + typeof j);
|
|
3175
3175
|
function N(k) {
|
|
@@ -3196,7 +3196,7 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3196
3196
|
});
|
|
3197
3197
|
});
|
|
3198
3198
|
}, e.hashSync = function(j, F) {
|
|
3199
|
-
if (typeof F > "u" && (F =
|
|
3199
|
+
if (typeof F > "u" && (F = C), typeof F == "number" && (F = e.genSaltSync(F)), typeof j != "string" || typeof F != "string")
|
|
3200
3200
|
throw Error("Illegal arguments: " + typeof j + ", " + typeof F);
|
|
3201
3201
|
return Se(j, F);
|
|
3202
3202
|
}, e.hash = function(j, F, P, N) {
|
|
@@ -3497,7 +3497,7 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3497
3497
|
Date.now = Date.now || function() {
|
|
3498
3498
|
return +/* @__PURE__ */ new Date();
|
|
3499
3499
|
};
|
|
3500
|
-
var A = 16,
|
|
3500
|
+
var A = 16, C = 10, D = 16, O = 100, x = [
|
|
3501
3501
|
608135816,
|
|
3502
3502
|
2242054355,
|
|
3503
3503
|
320440878,
|
|
@@ -4551,7 +4551,7 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4551
4551
|
];
|
|
4552
4552
|
function M(j, F, P, N) {
|
|
4553
4553
|
var k, L = j[F], G = j[F + 1];
|
|
4554
|
-
return L ^= P[0], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[1], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[2], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[3], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[4], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[5], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[6], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[7], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[8], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[9], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[10], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[11], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[12], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[13], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[14], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[15], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[16], j[F] = G ^ P[
|
|
4554
|
+
return L ^= P[0], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[1], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[2], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[3], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[4], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[5], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[6], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[7], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[8], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[9], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[10], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[11], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[12], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[13], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[14], k = N[L >>> 24], k += N[256 | L >> 16 & 255], k ^= N[512 | L >> 8 & 255], k += N[768 | L & 255], G ^= k ^ P[15], k = N[G >>> 24], k += N[256 | G >> 16 & 255], k ^= N[512 | G >> 8 & 255], k += N[768 | G & 255], L ^= k ^ P[16], j[F] = G ^ P[D + 1], j[F + 1] = L, j;
|
|
4555
4555
|
}
|
|
4556
4556
|
function K(j, F) {
|
|
4557
4557
|
for (var P = 0, N = 0; P < 4; ++P)
|
|
@@ -4566,7 +4566,7 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4566
4566
|
for (se = 0; se < G; se += 2)
|
|
4567
4567
|
k = M(k, 0, F, P), P[se] = k[0], P[se + 1] = k[1];
|
|
4568
4568
|
}
|
|
4569
|
-
function
|
|
4569
|
+
function Y(j, F, P, N) {
|
|
4570
4570
|
for (var k = 0, L = [0, 0], G = P.length, pe = N.length, se, $e = 0; $e < G; $e++)
|
|
4571
4571
|
se = K(F, k), k = se.offp, P[$e] = P[$e] ^ se.key;
|
|
4572
4572
|
for (k = 0, $e = 0; $e < G; $e += 2)
|
|
@@ -4574,7 +4574,7 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4574
4574
|
for ($e = 0; $e < pe; $e += 2)
|
|
4575
4575
|
se = K(j, k), k = se.offp, L[0] ^= se.key, se = K(j, k), k = se.offp, L[1] ^= se.key, L = M(L, 0, P, N), N[$e] = L[0], N[$e + 1] = L[1];
|
|
4576
4576
|
}
|
|
4577
|
-
function
|
|
4577
|
+
function Z(j, F, P, N, k) {
|
|
4578
4578
|
var L = q.slice(), G = L.length, pe;
|
|
4579
4579
|
if (P < 4 || P > 31)
|
|
4580
4580
|
if (pe = Error("Illegal number of rounds (4-31): " + P), N) {
|
|
@@ -4590,10 +4590,10 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4590
4590
|
throw pe;
|
|
4591
4591
|
P = 1 << P >>> 0;
|
|
4592
4592
|
var se, $e, Ce = 0, ee;
|
|
4593
|
-
Int32Array ? (se = new Int32Array(x), $e = new Int32Array(z)) : (se = x.slice(), $e = z.slice()),
|
|
4593
|
+
Int32Array ? (se = new Int32Array(x), $e = new Int32Array(z)) : (se = x.slice(), $e = z.slice()), Y(F, j, se, $e);
|
|
4594
4594
|
function we() {
|
|
4595
4595
|
if (k && k(Ce / P), Ce < P)
|
|
4596
|
-
for (var Fe = Date.now(); Ce < P && (Ce = Ce + 1, W(j, se, $e), W(F, se, $e), !(Date.now() - Fe >
|
|
4596
|
+
for (var Fe = Date.now(); Ce < P && (Ce = Ce + 1, W(j, se, $e), W(F, se, $e), !(Date.now() - Fe > O)); )
|
|
4597
4597
|
;
|
|
4598
4598
|
else {
|
|
4599
4599
|
for (Ce = 0; Ce < 64; Ce++)
|
|
@@ -4657,8 +4657,8 @@ const cv = {}, lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4657
4657
|
return Xe.push("$2"), L >= "a" && Xe.push(L), Xe.push("$"), $e < 10 && Xe.push("0"), Xe.push($e.toString()), Xe.push("$"), Xe.push(h(we, we.length)), Xe.push(h(Fe, q.length * 4 - 1)), Xe.join("");
|
|
4658
4658
|
}
|
|
4659
4659
|
if (typeof P > "u")
|
|
4660
|
-
return Un(
|
|
4661
|
-
|
|
4660
|
+
return Un(Z(ee, we, $e));
|
|
4661
|
+
Z(ee, we, $e, function(Fe, Xe) {
|
|
4662
4662
|
Fe ? P(Fe, null) : P(null, Un(Xe));
|
|
4663
4663
|
}, N);
|
|
4664
4664
|
}
|
|
@@ -4677,7 +4677,7 @@ let pv = (t) => crypto.getRandomValues(new Uint8Array(t)), fv = (t, e, n) => {
|
|
|
4677
4677
|
if (a += t[l[u] & r] || "", a.length === s) return a;
|
|
4678
4678
|
}
|
|
4679
4679
|
};
|
|
4680
|
-
}, qm = (t, e = 21) => fv(t, e, pv),
|
|
4680
|
+
}, qm = (t, e = 21) => fv(t, e, pv), Ke = (t = 21) => {
|
|
4681
4681
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
4682
4682
|
for (; t--; )
|
|
4683
4683
|
e += dv[n[t] & 63];
|
|
@@ -5695,12 +5695,12 @@ const mb = function(t) {
|
|
|
5695
5695
|
else if (this.options.unpairedTags.indexOf(u) !== -1)
|
|
5696
5696
|
s = l.closeIndex;
|
|
5697
5697
|
else {
|
|
5698
|
-
const
|
|
5699
|
-
if (!
|
|
5700
|
-
s =
|
|
5698
|
+
const D = this.readStopNodeData(t, d, g + 1);
|
|
5699
|
+
if (!D) throw new Error(`Unexpected end of ${d}`);
|
|
5700
|
+
s = D.i, A = D.tagContent;
|
|
5701
5701
|
}
|
|
5702
|
-
const
|
|
5703
|
-
u !== p && h && (
|
|
5702
|
+
const C = new fs(u);
|
|
5703
|
+
u !== p && h && (C[":@"] = this.buildAttributesMap(p, i, u)), A && (A = this.parseTextData(A, u, i, !0, h, !0, !0)), i = i.substr(0, i.lastIndexOf(".")), C.add(this.options.textNodeName, A), this.addChild(n, C, i);
|
|
5704
5704
|
} else {
|
|
5705
5705
|
if (p.length > 0 && p.lastIndexOf("/") === p.length - 1) {
|
|
5706
5706
|
u[u.length - 1] === "/" ? (u = u.substr(0, u.length - 1), i = i.substr(0, i.length - 1), p = u) : p = p.substr(0, p.length - 1), this.options.transformTagName && (u = this.options.transformTagName(u));
|
|
@@ -5949,9 +5949,9 @@ function e_(t, e, n, r) {
|
|
|
5949
5949
|
i += r + `<!--${l[u][0][e.textNodeName]}-->`, s = !0;
|
|
5950
5950
|
continue;
|
|
5951
5951
|
} else if (u[0] === "?") {
|
|
5952
|
-
const A = $h(l[":@"], e),
|
|
5953
|
-
let
|
|
5954
|
-
|
|
5952
|
+
const A = $h(l[":@"], e), C = u === "?xml" ? "" : r;
|
|
5953
|
+
let D = l[u][0][e.textNodeName];
|
|
5954
|
+
D = D.length !== 0 ? " " + D : "", i += C + `<${u}${D}${A}?>`, s = !0;
|
|
5955
5955
|
continue;
|
|
5956
5956
|
}
|
|
5957
5957
|
let p = r;
|
|
@@ -6171,7 +6171,7 @@ function Xb(t, e, n) {
|
|
|
6171
6171
|
});
|
|
6172
6172
|
}
|
|
6173
6173
|
async function Jb(t, e, n, r, i) {
|
|
6174
|
-
var b, A,
|
|
6174
|
+
var b, A, C;
|
|
6175
6175
|
if (!n.redirect_uri)
|
|
6176
6176
|
throw new E(400, {
|
|
6177
6177
|
message: "Missing redirect_uri in authParams"
|
|
@@ -6201,7 +6201,7 @@ async function Jb(t, e, n, r, i) {
|
|
|
6201
6201
|
audience: u || n.client_id,
|
|
6202
6202
|
destination: h.toString(),
|
|
6203
6203
|
inResponseTo: p.requestId,
|
|
6204
|
-
userId: ((
|
|
6204
|
+
userId: ((C = (A = r.app_metadata) == null ? void 0 : A.vimeo) == null ? void 0 : C.user_id) || r.user_id,
|
|
6205
6205
|
email: r.email,
|
|
6206
6206
|
sessionIndex: i,
|
|
6207
6207
|
signature: {
|
|
@@ -6217,7 +6217,7 @@ async function Jb(t, e, n, r, i) {
|
|
|
6217
6217
|
);
|
|
6218
6218
|
}
|
|
6219
6219
|
async function Yb(t, e) {
|
|
6220
|
-
const n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 10 * 60 * 1e3).toISOString(), i = e.issueInstant || n, s = e.sessionNotOnOrAfter || r, a = e.responseId || `_${
|
|
6220
|
+
const n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 10 * 60 * 1e3).toISOString(), i = e.issueInstant || n, s = e.sessionNotOnOrAfter || r, a = e.responseId || `_${Ke()}`, l = e.assertionId || `_${Ke()}`, u = [
|
|
6221
6221
|
{
|
|
6222
6222
|
"samlp:Response": [
|
|
6223
6223
|
{
|
|
@@ -6592,36 +6592,36 @@ async function e3(t, e) {
|
|
|
6592
6592
|
);
|
|
6593
6593
|
if (!b)
|
|
6594
6594
|
return { scopes: a, permissions: [] };
|
|
6595
|
-
const A = b.scope || [],
|
|
6595
|
+
const A = b.scope || [], C = (d.scopes || []).map(
|
|
6596
6596
|
(q) => q.value
|
|
6597
6597
|
);
|
|
6598
6598
|
if (!p) {
|
|
6599
6599
|
let q;
|
|
6600
6600
|
return s.length === 0 ? q = A.filter(
|
|
6601
|
-
(K) =>
|
|
6601
|
+
(K) => C.includes(K)
|
|
6602
6602
|
) : q = s.filter(
|
|
6603
|
-
(K) =>
|
|
6603
|
+
(K) => C.includes(K) && A.includes(K)
|
|
6604
6604
|
), { scopes: [
|
|
6605
6605
|
.../* @__PURE__ */ new Set([...a, ...q])
|
|
6606
6606
|
], permissions: [] };
|
|
6607
6607
|
}
|
|
6608
6608
|
if (h === "access_token_authz") {
|
|
6609
6609
|
const q = A.filter(
|
|
6610
|
-
(M) =>
|
|
6610
|
+
(M) => C.includes(M)
|
|
6611
6611
|
);
|
|
6612
6612
|
return { scopes: a, permissions: q };
|
|
6613
6613
|
}
|
|
6614
|
-
let
|
|
6615
|
-
return s.length === 0 ?
|
|
6616
|
-
(q) =>
|
|
6617
|
-
) :
|
|
6618
|
-
(q) =>
|
|
6614
|
+
let D;
|
|
6615
|
+
return s.length === 0 ? D = A.filter(
|
|
6616
|
+
(q) => C.includes(q)
|
|
6617
|
+
) : D = s.filter(
|
|
6618
|
+
(q) => C.includes(q) && A.includes(q)
|
|
6619
6619
|
), { scopes: [
|
|
6620
|
-
.../* @__PURE__ */ new Set([...a, ...
|
|
6620
|
+
.../* @__PURE__ */ new Set([...a, ...D])
|
|
6621
6621
|
], permissions: [] };
|
|
6622
6622
|
}
|
|
6623
6623
|
async function va(t, e) {
|
|
6624
|
-
var W,
|
|
6624
|
+
var W, Y;
|
|
6625
6625
|
if (e.grantType === En.ClientCredential)
|
|
6626
6626
|
return await e3(t, {
|
|
6627
6627
|
tenantId: e.tenantId,
|
|
@@ -6642,9 +6642,9 @@ async function va(t, e) {
|
|
|
6642
6642
|
error_description: "User is not a member of the specified organization"
|
|
6643
6643
|
});
|
|
6644
6644
|
const l = s.filter(
|
|
6645
|
-
(
|
|
6645
|
+
(Z) => r_.includes(Z)
|
|
6646
6646
|
), d = (await t.env.data.resourceServers.list(n)).resource_servers.filter(
|
|
6647
|
-
(
|
|
6647
|
+
(Z) => Z.identifier === i
|
|
6648
6648
|
);
|
|
6649
6649
|
if (d.length === 0)
|
|
6650
6650
|
return { scopes: l, permissions: [] };
|
|
@@ -6652,14 +6652,14 @@ async function va(t, e) {
|
|
|
6652
6652
|
if (!p)
|
|
6653
6653
|
return { scopes: l, permissions: [] };
|
|
6654
6654
|
const h = (p.scopes || []).map(
|
|
6655
|
-
(
|
|
6656
|
-
), g = ((W = p.options) == null ? void 0 : W.enforce_policies) === !0, b = ((
|
|
6655
|
+
(Z) => Z.value
|
|
6656
|
+
), g = ((W = p.options) == null ? void 0 : W.enforce_policies) === !0, b = ((Y = p.options) == null ? void 0 : Y.token_dialect) || "access_token";
|
|
6657
6657
|
if (!g) {
|
|
6658
|
-
const
|
|
6658
|
+
const Z = s.filter(
|
|
6659
6659
|
(j) => h.includes(j)
|
|
6660
6660
|
);
|
|
6661
6661
|
return { scopes: [
|
|
6662
|
-
.../* @__PURE__ */ new Set([...l, ...
|
|
6662
|
+
.../* @__PURE__ */ new Set([...l, ...Z])
|
|
6663
6663
|
], permissions: [] };
|
|
6664
6664
|
}
|
|
6665
6665
|
const A = await t.env.data.userPermissions.list(
|
|
@@ -6668,39 +6668,39 @@ async function va(t, e) {
|
|
|
6668
6668
|
void 0,
|
|
6669
6669
|
a
|
|
6670
6670
|
// Pass organizationId to get scoped permissions
|
|
6671
|
-
),
|
|
6671
|
+
), C = await t.env.data.userRoles.list(
|
|
6672
6672
|
n,
|
|
6673
6673
|
r,
|
|
6674
6674
|
void 0,
|
|
6675
6675
|
""
|
|
6676
|
-
),
|
|
6676
|
+
), D = a ? await t.env.data.userRoles.list(
|
|
6677
6677
|
n,
|
|
6678
6678
|
r,
|
|
6679
6679
|
void 0,
|
|
6680
6680
|
a
|
|
6681
|
-
) : [],
|
|
6682
|
-
for (const
|
|
6681
|
+
) : [], O = [...C, ...D], x = [];
|
|
6682
|
+
for (const Z of O)
|
|
6683
6683
|
(await t.env.data.rolePermissions.list(
|
|
6684
6684
|
n,
|
|
6685
|
-
|
|
6685
|
+
Z.id
|
|
6686
6686
|
)).forEach((j) => {
|
|
6687
6687
|
j.resource_server_identifier === i && x.push(j.permission_name);
|
|
6688
6688
|
});
|
|
6689
6689
|
const z = /* @__PURE__ */ new Set();
|
|
6690
|
-
A.forEach((
|
|
6691
|
-
|
|
6692
|
-
}), x.forEach((
|
|
6693
|
-
z.add(
|
|
6690
|
+
A.forEach((Z) => {
|
|
6691
|
+
Z.resource_server_identifier === i && z.add(Z.permission_name);
|
|
6692
|
+
}), x.forEach((Z) => {
|
|
6693
|
+
z.add(Z);
|
|
6694
6694
|
});
|
|
6695
6695
|
const q = Array.from(z);
|
|
6696
6696
|
if (b === "access_token_authz") {
|
|
6697
|
-
const
|
|
6697
|
+
const Z = q.filter(
|
|
6698
6698
|
(Se) => h.includes(Se)
|
|
6699
6699
|
);
|
|
6700
|
-
return { scopes: l, permissions:
|
|
6700
|
+
return { scopes: l, permissions: Z };
|
|
6701
6701
|
}
|
|
6702
6702
|
const M = s.filter(
|
|
6703
|
-
(
|
|
6703
|
+
(Z) => h.includes(Z) && q.includes(Z)
|
|
6704
6704
|
);
|
|
6705
6705
|
return { scopes: [
|
|
6706
6706
|
.../* @__PURE__ */ new Set([...l, ...M])
|
|
@@ -6784,22 +6784,22 @@ async function yc(t, e) {
|
|
|
6784
6784
|
}
|
|
6785
6785
|
}
|
|
6786
6786
|
);
|
|
6787
|
-
const
|
|
6787
|
+
const C = {
|
|
6788
6788
|
includeIssuedTimestamp: !0,
|
|
6789
6789
|
expiresIn: new mp(1, "d"),
|
|
6790
6790
|
headers: {
|
|
6791
6791
|
kid: p.kid
|
|
6792
6792
|
}
|
|
6793
|
-
},
|
|
6793
|
+
}, D = await _h(
|
|
6794
6794
|
"RS256",
|
|
6795
6795
|
h,
|
|
6796
6796
|
b,
|
|
6797
|
-
|
|
6798
|
-
),
|
|
6797
|
+
C
|
|
6798
|
+
), O = A ? await _h("RS256", h, A, C) : void 0;
|
|
6799
6799
|
return {
|
|
6800
|
-
access_token:
|
|
6800
|
+
access_token: D,
|
|
6801
6801
|
refresh_token: e.refresh_token,
|
|
6802
|
-
id_token:
|
|
6802
|
+
id_token: O,
|
|
6803
6803
|
token_type: "Bearer",
|
|
6804
6804
|
expires_in: 86400
|
|
6805
6805
|
};
|
|
@@ -6807,7 +6807,7 @@ async function yc(t, e) {
|
|
|
6807
6807
|
async function i_(t, e) {
|
|
6808
6808
|
return {
|
|
6809
6809
|
code: (await t.env.data.codes.create(e.client.tenant.id, {
|
|
6810
|
-
code_id:
|
|
6810
|
+
code_id: Ke(),
|
|
6811
6811
|
user_id: e.user.user_id,
|
|
6812
6812
|
code_type: "authorization_code",
|
|
6813
6813
|
login_id: e.login_id,
|
|
@@ -6834,7 +6834,7 @@ async function s_(t, e) {
|
|
|
6834
6834
|
return await t.env.data.refreshTokens.create(
|
|
6835
6835
|
n.tenant.id,
|
|
6836
6836
|
{
|
|
6837
|
-
id:
|
|
6837
|
+
id: Ke(),
|
|
6838
6838
|
session_id: s,
|
|
6839
6839
|
client_id: n.client_id,
|
|
6840
6840
|
idle_expires_at: new Date(
|
|
@@ -6862,7 +6862,7 @@ async function s_(t, e) {
|
|
|
6862
6862
|
}
|
|
6863
6863
|
async function o_(t, { user: e, client: n, loginSession: r }) {
|
|
6864
6864
|
const i = await t.env.data.sessions.create(n.tenant.id, {
|
|
6865
|
-
id:
|
|
6865
|
+
id: Ke(),
|
|
6866
6866
|
user_id: e.user_id,
|
|
6867
6867
|
login_session_id: r.id,
|
|
6868
6868
|
idle_expires_at: new Date(
|
|
@@ -6884,7 +6884,7 @@ async function o_(t, { user: e, client: n, loginSession: r }) {
|
|
|
6884
6884
|
}), i;
|
|
6885
6885
|
}
|
|
6886
6886
|
async function On(t, e) {
|
|
6887
|
-
var A,
|
|
6887
|
+
var A, C;
|
|
6888
6888
|
const { authParams: n, client: r, ticketAuth: i } = e;
|
|
6889
6889
|
let { user: s } = e;
|
|
6890
6890
|
const a = n.response_type || cn.CODE, l = n.response_mode || Kn.QUERY, u = Ve(t, {
|
|
@@ -6904,31 +6904,31 @@ async function On(t, e) {
|
|
|
6904
6904
|
throw new E(500, {
|
|
6905
6905
|
message: "Login session not found for ticket auth."
|
|
6906
6906
|
});
|
|
6907
|
-
const
|
|
6908
|
-
code_id:
|
|
6907
|
+
const D = bv(), O = Ke(12), x = await t.env.data.codes.create(r.tenant.id, {
|
|
6908
|
+
code_id: Ke(),
|
|
6909
6909
|
code_type: "ticket",
|
|
6910
6910
|
login_id: e.loginSession.id,
|
|
6911
6911
|
expires_at: new Date(Date.now() + kv).toISOString(),
|
|
6912
|
-
code_verifier: [
|
|
6912
|
+
code_verifier: [O, D].join("|"),
|
|
6913
6913
|
redirect_uri: n.redirect_uri,
|
|
6914
6914
|
state: n.state,
|
|
6915
6915
|
nonce: n.nonce
|
|
6916
6916
|
});
|
|
6917
6917
|
return t.json({
|
|
6918
6918
|
login_ticket: x.code_id,
|
|
6919
|
-
co_verifier:
|
|
6920
|
-
co_id:
|
|
6919
|
+
co_verifier: D,
|
|
6920
|
+
co_id: O
|
|
6921
6921
|
});
|
|
6922
6922
|
}
|
|
6923
6923
|
let d = e.refreshToken, p = e.sessionId;
|
|
6924
6924
|
if (!p && ((A = e.loginSession) != null && A.session_id)) {
|
|
6925
6925
|
p = e.loginSession.session_id;
|
|
6926
|
-
const
|
|
6926
|
+
const D = await t.env.data.sessions.get(
|
|
6927
6927
|
r.tenant.id,
|
|
6928
6928
|
p
|
|
6929
6929
|
);
|
|
6930
|
-
|
|
6931
|
-
clients: [...
|
|
6930
|
+
D && !D.clients.includes(r.client_id) && await t.env.data.sessions.update(r.tenant.id, p, {
|
|
6931
|
+
clients: [...D.clients, r.client_id]
|
|
6932
6932
|
});
|
|
6933
6933
|
} else if (!p) {
|
|
6934
6934
|
if (!e.loginSession)
|
|
@@ -6941,7 +6941,7 @@ async function On(t, e) {
|
|
|
6941
6941
|
loginSession: e.loginSession
|
|
6942
6942
|
})).id;
|
|
6943
6943
|
}
|
|
6944
|
-
if (!d && ((
|
|
6944
|
+
if (!d && ((C = n.scope) != null && C.split(" ").includes("offline_access")) && ![cn.TOKEN, cn.CODE].includes(
|
|
6945
6945
|
a
|
|
6946
6946
|
) && (d = (await s_(t, {
|
|
6947
6947
|
user: s,
|
|
@@ -6981,26 +6981,26 @@ async function On(t, e) {
|
|
|
6981
6981
|
throw new E(400, {
|
|
6982
6982
|
message: "Redirect URI not allowed for WEB_MESSAGE response mode."
|
|
6983
6983
|
});
|
|
6984
|
-
const
|
|
6984
|
+
const D = new Headers();
|
|
6985
6985
|
if (p) {
|
|
6986
6986
|
const z = wa(
|
|
6987
6987
|
r.tenant.id,
|
|
6988
6988
|
p,
|
|
6989
6989
|
t.var.host || ""
|
|
6990
6990
|
);
|
|
6991
|
-
z &&
|
|
6991
|
+
z && D.set("set-cookie", z);
|
|
6992
6992
|
} else
|
|
6993
6993
|
console.warn(
|
|
6994
6994
|
"Session ID not available for WEB_MESSAGE, cookie will not be set."
|
|
6995
6995
|
);
|
|
6996
|
-
const
|
|
6996
|
+
const O = new URL(n.redirect_uri), x = `${O.protocol}//${O.host}`;
|
|
6997
6997
|
return t.html(
|
|
6998
6998
|
Tu(
|
|
6999
6999
|
x,
|
|
7000
7000
|
JSON.stringify({ ...h, state: n.state })
|
|
7001
7001
|
),
|
|
7002
7002
|
{
|
|
7003
|
-
headers:
|
|
7003
|
+
headers: D
|
|
7004
7004
|
}
|
|
7005
7005
|
);
|
|
7006
7006
|
}
|
|
@@ -7010,12 +7010,12 @@ async function On(t, e) {
|
|
|
7010
7010
|
});
|
|
7011
7011
|
const g = new Headers();
|
|
7012
7012
|
if (p) {
|
|
7013
|
-
const
|
|
7013
|
+
const D = wa(
|
|
7014
7014
|
r.tenant.id,
|
|
7015
7015
|
p,
|
|
7016
7016
|
t.var.custom_domain || t.req.header("host") || ""
|
|
7017
7017
|
);
|
|
7018
|
-
|
|
7018
|
+
D && g.set("set-cookie", D);
|
|
7019
7019
|
}
|
|
7020
7020
|
const b = new URL(n.redirect_uri);
|
|
7021
7021
|
if ("code" in h)
|
|
@@ -7050,7 +7050,7 @@ async function t3(t, e) {
|
|
|
7050
7050
|
// Should be enough for most cases
|
|
7051
7051
|
}
|
|
7052
7052
|
)).userOrganizations.some(
|
|
7053
|
-
(
|
|
7053
|
+
(C) => C.organization_id === e.organization.id
|
|
7054
7054
|
))
|
|
7055
7055
|
throw new Oi(403, {
|
|
7056
7056
|
error: "access_denied",
|
|
@@ -8497,7 +8497,7 @@ var Nh;
|
|
|
8497
8497
|
} : function(R, I) {
|
|
8498
8498
|
return R[I];
|
|
8499
8499
|
}
|
|
8500
|
-
}, h = Object.getPrototypeOf(Function), g = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : le(), b = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Wt(), A = typeof WeakMap == "function" ? WeakMap : Lt(),
|
|
8500
|
+
}, h = Object.getPrototypeOf(Function), g = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : le(), b = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Wt(), A = typeof WeakMap == "function" ? WeakMap : Lt(), C = i ? Symbol.for("@reflect-metadata:registry") : void 0, D = bn(), O = Et(D);
|
|
8501
8501
|
function x(R, I, V, ne) {
|
|
8502
8502
|
if (ee(V)) {
|
|
8503
8503
|
if (!Pt(R))
|
|
@@ -8551,18 +8551,18 @@ var Nh;
|
|
|
8551
8551
|
return ee(V) || (V = rt(V)), L(R, I, V);
|
|
8552
8552
|
}
|
|
8553
8553
|
e("getMetadata", W);
|
|
8554
|
-
function
|
|
8554
|
+
function Y(R, I, V) {
|
|
8555
8555
|
if (!Fe(I))
|
|
8556
8556
|
throw new TypeError();
|
|
8557
8557
|
return ee(V) || (V = rt(V)), G(R, I, V);
|
|
8558
8558
|
}
|
|
8559
|
-
e("getOwnMetadata",
|
|
8560
|
-
function
|
|
8559
|
+
e("getOwnMetadata", Y);
|
|
8560
|
+
function Z(R, I) {
|
|
8561
8561
|
if (!Fe(R))
|
|
8562
8562
|
throw new TypeError();
|
|
8563
8563
|
return ee(I) || (I = rt(I)), se(R, I);
|
|
8564
8564
|
}
|
|
8565
|
-
e("getMetadataKeys",
|
|
8565
|
+
e("getMetadataKeys", Z);
|
|
8566
8566
|
function Se(R, I) {
|
|
8567
8567
|
if (!Fe(R))
|
|
8568
8568
|
throw new TypeError();
|
|
@@ -8823,7 +8823,7 @@ var Nh;
|
|
|
8823
8823
|
}
|
|
8824
8824
|
function Gt() {
|
|
8825
8825
|
var R;
|
|
8826
|
-
!ee(
|
|
8826
|
+
!ee(C) && typeof n.Reflect < "u" && !(C in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (R = nn(n.Reflect));
|
|
8827
8827
|
var I, V, ne, ve = new A(), it = {
|
|
8828
8828
|
registerProvider: Be,
|
|
8829
8829
|
getProvider: f,
|
|
@@ -8896,7 +8896,7 @@ var Nh;
|
|
|
8896
8896
|
}
|
|
8897
8897
|
function bn() {
|
|
8898
8898
|
var R;
|
|
8899
|
-
return !ee(
|
|
8899
|
+
return !ee(C) && Fe(n.Reflect) && Object.isExtensible(n.Reflect) && (R = n.Reflect[C]), ee(R) && (R = Gt()), !ee(C) && Fe(n.Reflect) && Object.isExtensible(n.Reflect) && Object.defineProperty(n.Reflect, C, {
|
|
8900
8900
|
enumerable: !1,
|
|
8901
8901
|
configurable: !1,
|
|
8902
8902
|
writable: !1,
|
|
@@ -8915,7 +8915,7 @@ var Nh;
|
|
|
8915
8915
|
OrdinaryOwnMetadataKeys: c,
|
|
8916
8916
|
OrdinaryDeleteMetadata: f
|
|
8917
8917
|
};
|
|
8918
|
-
return
|
|
8918
|
+
return D.registerProvider(V), V;
|
|
8919
8919
|
function ne(y, $, v) {
|
|
8920
8920
|
var S = I.get(y), X = !1;
|
|
8921
8921
|
if (ee(S)) {
|
|
@@ -9017,12 +9017,12 @@ var Nh;
|
|
|
9017
9017
|
return c;
|
|
9018
9018
|
}
|
|
9019
9019
|
function _e(R, I, V) {
|
|
9020
|
-
var ne =
|
|
9020
|
+
var ne = D.getProvider(R, I);
|
|
9021
9021
|
if (!ee(ne))
|
|
9022
9022
|
return ne;
|
|
9023
9023
|
if (V) {
|
|
9024
|
-
if (
|
|
9025
|
-
return
|
|
9024
|
+
if (D.setProvider(R, I, O))
|
|
9025
|
+
return O;
|
|
9026
9026
|
throw new Error("Illegal state.");
|
|
9027
9027
|
}
|
|
9028
9028
|
}
|
|
@@ -11766,10 +11766,10 @@ var H;
|
|
|
11766
11766
|
(function(t) {
|
|
11767
11767
|
t[t.Sequence = 0] = "Sequence", t[t.Set = 1] = "Set", t[t.Choice = 2] = "Choice";
|
|
11768
11768
|
})(H || (H = {}));
|
|
11769
|
-
var
|
|
11769
|
+
var T;
|
|
11770
11770
|
(function(t) {
|
|
11771
11771
|
t[t.Any = 1] = "Any", t[t.Boolean = 2] = "Boolean", t[t.OctetString = 3] = "OctetString", t[t.BitString = 4] = "BitString", t[t.Integer = 5] = "Integer", t[t.Enumerated = 6] = "Enumerated", t[t.ObjectIdentifier = 7] = "ObjectIdentifier", t[t.Utf8String = 8] = "Utf8String", t[t.BmpString = 9] = "BmpString", t[t.UniversalString = 10] = "UniversalString", t[t.NumericString = 11] = "NumericString", t[t.PrintableString = 12] = "PrintableString", t[t.TeletexString = 13] = "TeletexString", t[t.VideotexString = 14] = "VideotexString", t[t.IA5String = 15] = "IA5String", t[t.GraphicString = 16] = "GraphicString", t[t.VisibleString = 17] = "VisibleString", t[t.GeneralString = 18] = "GeneralString", t[t.CharacterString = 19] = "CharacterString", t[t.UTCTime = 20] = "UTCTime", t[t.GeneralizedTime = 21] = "GeneralizedTime", t[t.DATE = 22] = "DATE", t[t.TimeOfDay = 23] = "TimeOfDay", t[t.DateTime = 24] = "DateTime", t[t.Duration = 25] = "Duration", t[t.TIME = 26] = "TIME", t[t.Null = 27] = "Null";
|
|
11772
|
-
})(
|
|
11772
|
+
})(T || (T = {}));
|
|
11773
11773
|
class Pc {
|
|
11774
11774
|
constructor(e, n = 0) {
|
|
11775
11775
|
if (this.unusedBits = 0, this.value = new ArrayBuffer(0), e)
|
|
@@ -11885,49 +11885,49 @@ const s2 = en(ir), z3 = en(Ec), V3 = en(Sc), H3 = en(kc), K3 = en(Nc), G3 = en(C
|
|
|
11885
11885
|
};
|
|
11886
11886
|
function ks(t) {
|
|
11887
11887
|
switch (t) {
|
|
11888
|
-
case
|
|
11888
|
+
case T.Any:
|
|
11889
11889
|
return P3;
|
|
11890
|
-
case
|
|
11890
|
+
case T.BitString:
|
|
11891
11891
|
return F3;
|
|
11892
|
-
case
|
|
11892
|
+
case T.BmpString:
|
|
11893
11893
|
return z3;
|
|
11894
|
-
case
|
|
11894
|
+
case T.Boolean:
|
|
11895
11895
|
return M3;
|
|
11896
|
-
case
|
|
11896
|
+
case T.CharacterString:
|
|
11897
11897
|
return Q3;
|
|
11898
|
-
case
|
|
11898
|
+
case T.Enumerated:
|
|
11899
11899
|
return L3;
|
|
11900
|
-
case
|
|
11900
|
+
case T.GeneralString:
|
|
11901
11901
|
return Z3;
|
|
11902
|
-
case
|
|
11902
|
+
case T.GeneralizedTime:
|
|
11903
11903
|
return t4;
|
|
11904
|
-
case
|
|
11904
|
+
case T.GraphicString:
|
|
11905
11905
|
return J3;
|
|
11906
|
-
case
|
|
11906
|
+
case T.IA5String:
|
|
11907
11907
|
return X3;
|
|
11908
|
-
case
|
|
11908
|
+
case T.Integer:
|
|
11909
11909
|
return B3;
|
|
11910
|
-
case
|
|
11910
|
+
case T.Null:
|
|
11911
11911
|
return n4;
|
|
11912
|
-
case
|
|
11912
|
+
case T.NumericString:
|
|
11913
11913
|
return H3;
|
|
11914
|
-
case
|
|
11914
|
+
case T.ObjectIdentifier:
|
|
11915
11915
|
return U3;
|
|
11916
|
-
case
|
|
11916
|
+
case T.OctetString:
|
|
11917
11917
|
return xa;
|
|
11918
|
-
case
|
|
11918
|
+
case T.PrintableString:
|
|
11919
11919
|
return K3;
|
|
11920
|
-
case
|
|
11920
|
+
case T.TeletexString:
|
|
11921
11921
|
return G3;
|
|
11922
|
-
case
|
|
11922
|
+
case T.UTCTime:
|
|
11923
11923
|
return e4;
|
|
11924
|
-
case
|
|
11924
|
+
case T.UniversalString:
|
|
11925
11925
|
return V3;
|
|
11926
|
-
case
|
|
11926
|
+
case T.Utf8String:
|
|
11927
11927
|
return s2;
|
|
11928
|
-
case
|
|
11928
|
+
case T.VideotexString:
|
|
11929
11929
|
return W3;
|
|
11930
|
-
case
|
|
11930
|
+
case T.VisibleString:
|
|
11931
11931
|
return Y3;
|
|
11932
11932
|
default:
|
|
11933
11933
|
return null;
|
|
@@ -11982,7 +11982,7 @@ class i4 {
|
|
|
11982
11982
|
const a = r.items[s], l = n ? s : "";
|
|
11983
11983
|
let u;
|
|
11984
11984
|
if (typeof a.type == "number") {
|
|
11985
|
-
const p =
|
|
11985
|
+
const p = T[a.type], h = i2[p];
|
|
11986
11986
|
if (!h)
|
|
11987
11987
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
11988
11988
|
u = new h({ name: l });
|
|
@@ -12248,7 +12248,7 @@ class s4 {
|
|
|
12248
12248
|
if (Hn(r))
|
|
12249
12249
|
a = new r().toSchema("");
|
|
12250
12250
|
else {
|
|
12251
|
-
const l =
|
|
12251
|
+
const l = T[r], u = i2[l];
|
|
12252
12252
|
if (!u)
|
|
12253
12253
|
throw new Error(`Cannot get '${l}' class from asn1js module`);
|
|
12254
12254
|
a = new u();
|
|
@@ -12373,7 +12373,7 @@ class Bp {
|
|
|
12373
12373
|
if (typeof e.type == "number") {
|
|
12374
12374
|
const a = e.converter;
|
|
12375
12375
|
if (!a)
|
|
12376
|
-
throw new Error(`Property '${n}' doesn't have converter for type ${
|
|
12376
|
+
throw new Error(`Property '${n}' doesn't have converter for type ${T[e.type]} in schema '${r.name}'`);
|
|
12377
12377
|
if (e.repeated) {
|
|
12378
12378
|
if (!Array.isArray(i))
|
|
12379
12379
|
throw new TypeError("Parameter 'objProp' should be type of Array.");
|
|
@@ -12539,19 +12539,19 @@ let gt = class {
|
|
|
12539
12539
|
}
|
|
12540
12540
|
};
|
|
12541
12541
|
m([
|
|
12542
|
-
w({ type:
|
|
12542
|
+
w({ type: T.TeletexString })
|
|
12543
12543
|
], gt.prototype, "teletexString", void 0);
|
|
12544
12544
|
m([
|
|
12545
|
-
w({ type:
|
|
12545
|
+
w({ type: T.PrintableString })
|
|
12546
12546
|
], gt.prototype, "printableString", void 0);
|
|
12547
12547
|
m([
|
|
12548
|
-
w({ type:
|
|
12548
|
+
w({ type: T.UniversalString })
|
|
12549
12549
|
], gt.prototype, "universalString", void 0);
|
|
12550
12550
|
m([
|
|
12551
|
-
w({ type:
|
|
12551
|
+
w({ type: T.Utf8String })
|
|
12552
12552
|
], gt.prototype, "utf8String", void 0);
|
|
12553
12553
|
m([
|
|
12554
|
-
w({ type:
|
|
12554
|
+
w({ type: T.BmpString })
|
|
12555
12555
|
], gt.prototype, "bmpString", void 0);
|
|
12556
12556
|
gt = m([
|
|
12557
12557
|
J({ type: H.Choice })
|
|
@@ -12565,10 +12565,10 @@ let Ri = class extends gt {
|
|
|
12565
12565
|
}
|
|
12566
12566
|
};
|
|
12567
12567
|
m([
|
|
12568
|
-
w({ type:
|
|
12568
|
+
w({ type: T.IA5String })
|
|
12569
12569
|
], Ri.prototype, "ia5String", void 0);
|
|
12570
12570
|
m([
|
|
12571
|
-
w({ type:
|
|
12571
|
+
w({ type: T.Any })
|
|
12572
12572
|
], Ri.prototype, "anyValue", void 0);
|
|
12573
12573
|
Ri = m([
|
|
12574
12574
|
J({ type: H.Choice })
|
|
@@ -12579,7 +12579,7 @@ class Bc {
|
|
|
12579
12579
|
}
|
|
12580
12580
|
}
|
|
12581
12581
|
m([
|
|
12582
|
-
w({ type:
|
|
12582
|
+
w({ type: T.ObjectIdentifier })
|
|
12583
12583
|
], Bc.prototype, "type", void 0);
|
|
12584
12584
|
m([
|
|
12585
12585
|
w({ type: Ri })
|
|
@@ -12618,10 +12618,10 @@ class Bs {
|
|
|
12618
12618
|
}
|
|
12619
12619
|
}
|
|
12620
12620
|
m([
|
|
12621
|
-
w({ type:
|
|
12621
|
+
w({ type: T.ObjectIdentifier })
|
|
12622
12622
|
], Bs.prototype, "typeId", void 0);
|
|
12623
12623
|
m([
|
|
12624
|
-
w({ type:
|
|
12624
|
+
w({ type: T.Any, context: 0 })
|
|
12625
12625
|
], Bs.prototype, "value", void 0);
|
|
12626
12626
|
class Lp {
|
|
12627
12627
|
constructor(e = {}) {
|
|
@@ -12643,13 +12643,13 @@ m([
|
|
|
12643
12643
|
w({ type: Bs, context: 0, implicit: !0 })
|
|
12644
12644
|
], Te.prototype, "otherName", void 0);
|
|
12645
12645
|
m([
|
|
12646
|
-
w({ type:
|
|
12646
|
+
w({ type: T.IA5String, context: 1, implicit: !0 })
|
|
12647
12647
|
], Te.prototype, "rfc822Name", void 0);
|
|
12648
12648
|
m([
|
|
12649
|
-
w({ type:
|
|
12649
|
+
w({ type: T.IA5String, context: 2, implicit: !0 })
|
|
12650
12650
|
], Te.prototype, "dNSName", void 0);
|
|
12651
12651
|
m([
|
|
12652
|
-
w({ type:
|
|
12652
|
+
w({ type: T.Any, context: 3, implicit: !0 })
|
|
12653
12653
|
], Te.prototype, "x400Address", void 0);
|
|
12654
12654
|
m([
|
|
12655
12655
|
w({ type: et, context: 4, implicit: !1 })
|
|
@@ -12658,18 +12658,18 @@ m([
|
|
|
12658
12658
|
w({ type: Lp, context: 5 })
|
|
12659
12659
|
], Te.prototype, "ediPartyName", void 0);
|
|
12660
12660
|
m([
|
|
12661
|
-
w({ type:
|
|
12661
|
+
w({ type: T.IA5String, context: 6, implicit: !0 })
|
|
12662
12662
|
], Te.prototype, "uniformResourceIdentifier", void 0);
|
|
12663
12663
|
m([
|
|
12664
12664
|
w({
|
|
12665
|
-
type:
|
|
12665
|
+
type: T.OctetString,
|
|
12666
12666
|
context: 7,
|
|
12667
12667
|
implicit: !0,
|
|
12668
12668
|
converter: o4
|
|
12669
12669
|
})
|
|
12670
12670
|
], Te.prototype, "iPAddress", void 0);
|
|
12671
12671
|
m([
|
|
12672
|
-
w({ type:
|
|
12672
|
+
w({ type: T.ObjectIdentifier, context: 8, implicit: !0 })
|
|
12673
12673
|
], Te.prototype, "registeredID", void 0);
|
|
12674
12674
|
Te = m([
|
|
12675
12675
|
J({ type: H.Choice })
|
|
@@ -12683,7 +12683,7 @@ class po {
|
|
|
12683
12683
|
}
|
|
12684
12684
|
}
|
|
12685
12685
|
m([
|
|
12686
|
-
w({ type:
|
|
12686
|
+
w({ type: T.ObjectIdentifier })
|
|
12687
12687
|
], po.prototype, "accessMethod", void 0);
|
|
12688
12688
|
m([
|
|
12689
12689
|
w({ type: Te })
|
|
@@ -12712,7 +12712,7 @@ m([
|
|
|
12712
12712
|
], Br.prototype, "authorityCertIssuer", void 0);
|
|
12713
12713
|
m([
|
|
12714
12714
|
w({
|
|
12715
|
-
type:
|
|
12715
|
+
type: T.Integer,
|
|
12716
12716
|
context: 2,
|
|
12717
12717
|
optional: !0,
|
|
12718
12718
|
implicit: !0,
|
|
@@ -12726,10 +12726,10 @@ class Aa {
|
|
|
12726
12726
|
}
|
|
12727
12727
|
}
|
|
12728
12728
|
m([
|
|
12729
|
-
w({ type:
|
|
12729
|
+
w({ type: T.Boolean, defaultValue: !1 })
|
|
12730
12730
|
], Aa.prototype, "cA", void 0);
|
|
12731
12731
|
m([
|
|
12732
|
-
w({ type:
|
|
12732
|
+
w({ type: T.Integer, optional: !0 })
|
|
12733
12733
|
], Aa.prototype, "pathLenConstraint", void 0);
|
|
12734
12734
|
var Mu;
|
|
12735
12735
|
let yt = Mu = class extends Pe {
|
|
@@ -12760,16 +12760,16 @@ let Wn = class {
|
|
|
12760
12760
|
}
|
|
12761
12761
|
};
|
|
12762
12762
|
m([
|
|
12763
|
-
w({ type:
|
|
12763
|
+
w({ type: T.IA5String })
|
|
12764
12764
|
], Wn.prototype, "ia5String", void 0);
|
|
12765
12765
|
m([
|
|
12766
|
-
w({ type:
|
|
12766
|
+
w({ type: T.VisibleString })
|
|
12767
12767
|
], Wn.prototype, "visibleString", void 0);
|
|
12768
12768
|
m([
|
|
12769
|
-
w({ type:
|
|
12769
|
+
w({ type: T.BmpString })
|
|
12770
12770
|
], Wn.prototype, "bmpString", void 0);
|
|
12771
12771
|
m([
|
|
12772
|
-
w({ type:
|
|
12772
|
+
w({ type: T.Utf8String })
|
|
12773
12773
|
], Wn.prototype, "utf8String", void 0);
|
|
12774
12774
|
Wn = m([
|
|
12775
12775
|
J({ type: H.Choice })
|
|
@@ -12783,7 +12783,7 @@ m([
|
|
|
12783
12783
|
w({ type: Wn })
|
|
12784
12784
|
], Mp.prototype, "organization", void 0);
|
|
12785
12785
|
m([
|
|
12786
|
-
w({ type:
|
|
12786
|
+
w({ type: T.Integer, repeated: "sequence" })
|
|
12787
12787
|
], Mp.prototype, "noticeNumbers", void 0);
|
|
12788
12788
|
class qp {
|
|
12789
12789
|
constructor(e = {}) {
|
|
@@ -12802,7 +12802,7 @@ let Ea = class {
|
|
|
12802
12802
|
}
|
|
12803
12803
|
};
|
|
12804
12804
|
m([
|
|
12805
|
-
w({ type:
|
|
12805
|
+
w({ type: T.IA5String })
|
|
12806
12806
|
], Ea.prototype, "cPSuri", void 0);
|
|
12807
12807
|
m([
|
|
12808
12808
|
w({ type: qp })
|
|
@@ -12816,10 +12816,10 @@ class zp {
|
|
|
12816
12816
|
}
|
|
12817
12817
|
}
|
|
12818
12818
|
m([
|
|
12819
|
-
w({ type:
|
|
12819
|
+
w({ type: T.ObjectIdentifier })
|
|
12820
12820
|
], zp.prototype, "policyQualifierId", void 0);
|
|
12821
12821
|
m([
|
|
12822
|
-
w({ type:
|
|
12822
|
+
w({ type: T.Any })
|
|
12823
12823
|
], zp.prototype, "qualifier", void 0);
|
|
12824
12824
|
class Fc {
|
|
12825
12825
|
constructor(e = {}) {
|
|
@@ -12827,7 +12827,7 @@ class Fc {
|
|
|
12827
12827
|
}
|
|
12828
12828
|
}
|
|
12829
12829
|
m([
|
|
12830
|
-
w({ type:
|
|
12830
|
+
w({ type: T.ObjectIdentifier })
|
|
12831
12831
|
], Fc.prototype, "policyIdentifier", void 0);
|
|
12832
12832
|
m([
|
|
12833
12833
|
w({ type: zp, repeated: "sequence", optional: !0 })
|
|
@@ -12846,7 +12846,7 @@ let ka = class {
|
|
|
12846
12846
|
}
|
|
12847
12847
|
};
|
|
12848
12848
|
m([
|
|
12849
|
-
w({ type:
|
|
12849
|
+
w({ type: T.Integer })
|
|
12850
12850
|
], ka.prototype, "value", void 0);
|
|
12851
12851
|
ka = m([
|
|
12852
12852
|
J({ type: H.Choice })
|
|
@@ -12927,7 +12927,7 @@ m([
|
|
|
12927
12927
|
], _t.prototype, "distributionPoint", void 0);
|
|
12928
12928
|
m([
|
|
12929
12929
|
w({
|
|
12930
|
-
type:
|
|
12930
|
+
type: T.Boolean,
|
|
12931
12931
|
context: 1,
|
|
12932
12932
|
defaultValue: _t.ONLY,
|
|
12933
12933
|
implicit: !0
|
|
@@ -12935,7 +12935,7 @@ m([
|
|
|
12935
12935
|
], _t.prototype, "onlyContainsUserCerts", void 0);
|
|
12936
12936
|
m([
|
|
12937
12937
|
w({
|
|
12938
|
-
type:
|
|
12938
|
+
type: T.Boolean,
|
|
12939
12939
|
context: 2,
|
|
12940
12940
|
defaultValue: _t.ONLY,
|
|
12941
12941
|
implicit: !0
|
|
@@ -12946,7 +12946,7 @@ m([
|
|
|
12946
12946
|
], _t.prototype, "onlySomeReasons", void 0);
|
|
12947
12947
|
m([
|
|
12948
12948
|
w({
|
|
12949
|
-
type:
|
|
12949
|
+
type: T.Boolean,
|
|
12950
12950
|
context: 4,
|
|
12951
12951
|
defaultValue: _t.ONLY,
|
|
12952
12952
|
implicit: !0
|
|
@@ -12954,7 +12954,7 @@ m([
|
|
|
12954
12954
|
], _t.prototype, "indirectCRL", void 0);
|
|
12955
12955
|
m([
|
|
12956
12956
|
w({
|
|
12957
|
-
type:
|
|
12957
|
+
type: T.Boolean,
|
|
12958
12958
|
context: 5,
|
|
12959
12959
|
defaultValue: _t.ONLY,
|
|
12960
12960
|
implicit: !0
|
|
@@ -12976,7 +12976,7 @@ let Gu = class {
|
|
|
12976
12976
|
}
|
|
12977
12977
|
};
|
|
12978
12978
|
m([
|
|
12979
|
-
w({ type:
|
|
12979
|
+
w({ type: T.Enumerated })
|
|
12980
12980
|
], Gu.prototype, "reason", void 0);
|
|
12981
12981
|
Gu = m([
|
|
12982
12982
|
J({ type: H.Choice })
|
|
@@ -12989,7 +12989,7 @@ let Na = Wu = class extends Pe {
|
|
|
12989
12989
|
}
|
|
12990
12990
|
};
|
|
12991
12991
|
Na = Wu = m([
|
|
12992
|
-
J({ type: H.Sequence, itemType:
|
|
12992
|
+
J({ type: H.Sequence, itemType: T.ObjectIdentifier })
|
|
12993
12993
|
], Na);
|
|
12994
12994
|
const c4 = `${Qi}.1`, l4 = `${Qi}.2`, u4 = `${Qi}.3`, d4 = `${Qi}.4`, p4 = `${Qi}.8`, f4 = `${Qi}.9`;
|
|
12995
12995
|
let Xu = class {
|
|
@@ -12998,7 +12998,7 @@ let Xu = class {
|
|
|
12998
12998
|
}
|
|
12999
12999
|
};
|
|
13000
13000
|
m([
|
|
13001
|
-
w({ type:
|
|
13001
|
+
w({ type: T.Integer, converter: He })
|
|
13002
13002
|
], Xu.prototype, "value", void 0);
|
|
13003
13003
|
Xu = m([
|
|
13004
13004
|
J({ type: H.Choice })
|
|
@@ -13009,7 +13009,7 @@ let Ju = class {
|
|
|
13009
13009
|
}
|
|
13010
13010
|
};
|
|
13011
13011
|
m([
|
|
13012
|
-
w({ type:
|
|
13012
|
+
w({ type: T.GeneralizedTime })
|
|
13013
13013
|
], Ju.prototype, "value", void 0);
|
|
13014
13014
|
Ju = m([
|
|
13015
13015
|
J({ type: H.Choice })
|
|
@@ -13048,10 +13048,10 @@ m([
|
|
|
13048
13048
|
w({ type: Te })
|
|
13049
13049
|
], Uc.prototype, "base", void 0);
|
|
13050
13050
|
m([
|
|
13051
|
-
w({ type:
|
|
13051
|
+
w({ type: T.Integer, context: 0, defaultValue: 0, implicit: !0 })
|
|
13052
13052
|
], Uc.prototype, "minimum", void 0);
|
|
13053
13053
|
m([
|
|
13054
|
-
w({ type:
|
|
13054
|
+
w({ type: T.Integer, context: 1, optional: !0, implicit: !0 })
|
|
13055
13055
|
], Uc.prototype, "maximum", void 0);
|
|
13056
13056
|
let Ca = Zu = class extends Pe {
|
|
13057
13057
|
constructor(e) {
|
|
@@ -13079,7 +13079,7 @@ class h2 {
|
|
|
13079
13079
|
}
|
|
13080
13080
|
m([
|
|
13081
13081
|
w({
|
|
13082
|
-
type:
|
|
13082
|
+
type: T.Integer,
|
|
13083
13083
|
context: 0,
|
|
13084
13084
|
implicit: !0,
|
|
13085
13085
|
optional: !0,
|
|
@@ -13088,7 +13088,7 @@ m([
|
|
|
13088
13088
|
], h2.prototype, "requireExplicitPolicy", void 0);
|
|
13089
13089
|
m([
|
|
13090
13090
|
w({
|
|
13091
|
-
type:
|
|
13091
|
+
type: T.Integer,
|
|
13092
13092
|
context: 1,
|
|
13093
13093
|
implicit: !0,
|
|
13094
13094
|
optional: !0,
|
|
@@ -13102,10 +13102,10 @@ class Vp {
|
|
|
13102
13102
|
}
|
|
13103
13103
|
}
|
|
13104
13104
|
m([
|
|
13105
|
-
w({ type:
|
|
13105
|
+
w({ type: T.ObjectIdentifier })
|
|
13106
13106
|
], Vp.prototype, "issuerDomainPolicy", void 0);
|
|
13107
13107
|
m([
|
|
13108
|
-
w({ type:
|
|
13108
|
+
w({ type: T.ObjectIdentifier })
|
|
13109
13109
|
], Vp.prototype, "subjectDomainPolicy", void 0);
|
|
13110
13110
|
let qh = Qu = class extends Pe {
|
|
13111
13111
|
constructor(e) {
|
|
@@ -13131,10 +13131,10 @@ let Xn = class {
|
|
|
13131
13131
|
}
|
|
13132
13132
|
};
|
|
13133
13133
|
m([
|
|
13134
|
-
w({ type:
|
|
13134
|
+
w({ type: T.ObjectIdentifier })
|
|
13135
13135
|
], Xn.prototype, "type", void 0);
|
|
13136
13136
|
m([
|
|
13137
|
-
w({ type:
|
|
13137
|
+
w({ type: T.Any, repeated: "set" })
|
|
13138
13138
|
], Xn.prototype, "values", void 0);
|
|
13139
13139
|
var nd;
|
|
13140
13140
|
let zh = nd = class extends Pe {
|
|
@@ -13154,10 +13154,10 @@ class _2 {
|
|
|
13154
13154
|
}
|
|
13155
13155
|
}
|
|
13156
13156
|
m([
|
|
13157
|
-
w({ type:
|
|
13157
|
+
w({ type: T.GeneralizedTime, context: 0, implicit: !0, optional: !0 })
|
|
13158
13158
|
], _2.prototype, "notBefore", void 0);
|
|
13159
13159
|
m([
|
|
13160
|
-
w({ type:
|
|
13160
|
+
w({ type: T.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
13161
13161
|
], _2.prototype, "notAfter", void 0);
|
|
13162
13162
|
var Cs;
|
|
13163
13163
|
(function(t) {
|
|
@@ -13178,7 +13178,7 @@ class w2 {
|
|
|
13178
13178
|
}
|
|
13179
13179
|
}
|
|
13180
13180
|
m([
|
|
13181
|
-
w({ type:
|
|
13181
|
+
w({ type: T.GeneralString })
|
|
13182
13182
|
], w2.prototype, "entrustVers", void 0);
|
|
13183
13183
|
m([
|
|
13184
13184
|
w({ type: y2 })
|
|
@@ -13202,12 +13202,12 @@ class ue {
|
|
|
13202
13202
|
}
|
|
13203
13203
|
m([
|
|
13204
13204
|
w({
|
|
13205
|
-
type:
|
|
13205
|
+
type: T.ObjectIdentifier
|
|
13206
13206
|
})
|
|
13207
13207
|
], ue.prototype, "algorithm", void 0);
|
|
13208
13208
|
m([
|
|
13209
13209
|
w({
|
|
13210
|
-
type:
|
|
13210
|
+
type: T.Any,
|
|
13211
13211
|
optional: !0
|
|
13212
13212
|
})
|
|
13213
13213
|
], ue.prototype, "parameters", void 0);
|
|
@@ -13220,7 +13220,7 @@ m([
|
|
|
13220
13220
|
w({ type: ue })
|
|
13221
13221
|
], an.prototype, "algorithm", void 0);
|
|
13222
13222
|
m([
|
|
13223
|
-
w({ type:
|
|
13223
|
+
w({ type: T.BitString })
|
|
13224
13224
|
], an.prototype, "subjectPublicKey", void 0);
|
|
13225
13225
|
let pt = class {
|
|
13226
13226
|
constructor(e) {
|
|
@@ -13240,12 +13240,12 @@ let pt = class {
|
|
|
13240
13240
|
};
|
|
13241
13241
|
m([
|
|
13242
13242
|
w({
|
|
13243
|
-
type:
|
|
13243
|
+
type: T.UTCTime
|
|
13244
13244
|
})
|
|
13245
13245
|
], pt.prototype, "utcTime", void 0);
|
|
13246
13246
|
m([
|
|
13247
13247
|
w({
|
|
13248
|
-
type:
|
|
13248
|
+
type: T.GeneralizedTime
|
|
13249
13249
|
})
|
|
13250
13250
|
], pt.prototype, "generalTime", void 0);
|
|
13251
13251
|
pt = m([
|
|
@@ -13270,11 +13270,11 @@ let Qt = class v2 {
|
|
|
13270
13270
|
};
|
|
13271
13271
|
Qt.CRITICAL = !1;
|
|
13272
13272
|
m([
|
|
13273
|
-
w({ type:
|
|
13273
|
+
w({ type: T.ObjectIdentifier })
|
|
13274
13274
|
], Qt.prototype, "extnID", void 0);
|
|
13275
13275
|
m([
|
|
13276
13276
|
w({
|
|
13277
|
-
type:
|
|
13277
|
+
type: T.Boolean,
|
|
13278
13278
|
defaultValue: Qt.CRITICAL
|
|
13279
13279
|
})
|
|
13280
13280
|
], Qt.prototype, "critical", void 0);
|
|
@@ -13300,14 +13300,14 @@ class Vt {
|
|
|
13300
13300
|
}
|
|
13301
13301
|
m([
|
|
13302
13302
|
w({
|
|
13303
|
-
type:
|
|
13303
|
+
type: T.Integer,
|
|
13304
13304
|
context: 0,
|
|
13305
13305
|
defaultValue: Kr.v1
|
|
13306
13306
|
})
|
|
13307
13307
|
], Vt.prototype, "version", void 0);
|
|
13308
13308
|
m([
|
|
13309
13309
|
w({
|
|
13310
|
-
type:
|
|
13310
|
+
type: T.Integer,
|
|
13311
13311
|
converter: He
|
|
13312
13312
|
})
|
|
13313
13313
|
], Vt.prototype, "serialNumber", void 0);
|
|
@@ -13328,14 +13328,14 @@ m([
|
|
|
13328
13328
|
], Vt.prototype, "subjectPublicKeyInfo", void 0);
|
|
13329
13329
|
m([
|
|
13330
13330
|
w({
|
|
13331
|
-
type:
|
|
13331
|
+
type: T.BitString,
|
|
13332
13332
|
context: 1,
|
|
13333
13333
|
implicit: !0,
|
|
13334
13334
|
optional: !0
|
|
13335
13335
|
})
|
|
13336
13336
|
], Vt.prototype, "issuerUniqueID", void 0);
|
|
13337
13337
|
m([
|
|
13338
|
-
w({ type:
|
|
13338
|
+
w({ type: T.BitString, context: 2, implicit: !0, optional: !0 })
|
|
13339
13339
|
], Vt.prototype, "subjectUniqueID", void 0);
|
|
13340
13340
|
m([
|
|
13341
13341
|
w({ type: br, context: 3, optional: !0 })
|
|
@@ -13352,7 +13352,7 @@ m([
|
|
|
13352
13352
|
w({ type: ue })
|
|
13353
13353
|
], Gr.prototype, "signatureAlgorithm", void 0);
|
|
13354
13354
|
m([
|
|
13355
|
-
w({ type:
|
|
13355
|
+
w({ type: T.BitString })
|
|
13356
13356
|
], Gr.prototype, "signatureValue", void 0);
|
|
13357
13357
|
class Mc {
|
|
13358
13358
|
constructor(e = {}) {
|
|
@@ -13360,7 +13360,7 @@ class Mc {
|
|
|
13360
13360
|
}
|
|
13361
13361
|
}
|
|
13362
13362
|
m([
|
|
13363
|
-
w({ type:
|
|
13363
|
+
w({ type: T.Integer, converter: He })
|
|
13364
13364
|
], Mc.prototype, "userCertificate", void 0);
|
|
13365
13365
|
m([
|
|
13366
13366
|
w({ type: pt })
|
|
@@ -13374,7 +13374,7 @@ class or {
|
|
|
13374
13374
|
}
|
|
13375
13375
|
}
|
|
13376
13376
|
m([
|
|
13377
|
-
w({ type:
|
|
13377
|
+
w({ type: T.Integer, optional: !0 })
|
|
13378
13378
|
], or.prototype, "version", void 0);
|
|
13379
13379
|
m([
|
|
13380
13380
|
w({ type: ue })
|
|
@@ -13406,7 +13406,7 @@ m([
|
|
|
13406
13406
|
w({ type: ue })
|
|
13407
13407
|
], Hp.prototype, "signatureAlgorithm", void 0);
|
|
13408
13408
|
m([
|
|
13409
|
-
w({ type:
|
|
13409
|
+
w({ type: T.BitString })
|
|
13410
13410
|
], Hp.prototype, "signature", void 0);
|
|
13411
13411
|
class ts {
|
|
13412
13412
|
constructor(e = {}) {
|
|
@@ -13417,7 +13417,7 @@ m([
|
|
|
13417
13417
|
w({ type: et })
|
|
13418
13418
|
], ts.prototype, "issuer", void 0);
|
|
13419
13419
|
m([
|
|
13420
|
-
w({ type:
|
|
13420
|
+
w({ type: T.Integer, converter: He })
|
|
13421
13421
|
], ts.prototype, "serialNumber", void 0);
|
|
13422
13422
|
let Pi = class {
|
|
13423
13423
|
constructor(e = {}) {
|
|
@@ -13473,10 +13473,10 @@ let ns = class {
|
|
|
13473
13473
|
}
|
|
13474
13474
|
};
|
|
13475
13475
|
m([
|
|
13476
|
-
w({ type:
|
|
13476
|
+
w({ type: T.ObjectIdentifier })
|
|
13477
13477
|
], ns.prototype, "attrType", void 0);
|
|
13478
13478
|
m([
|
|
13479
|
-
w({ type:
|
|
13479
|
+
w({ type: T.Any, repeated: "set" })
|
|
13480
13480
|
], ns.prototype, "attrValues", void 0);
|
|
13481
13481
|
var od;
|
|
13482
13482
|
class jn {
|
|
@@ -13485,7 +13485,7 @@ class jn {
|
|
|
13485
13485
|
}
|
|
13486
13486
|
}
|
|
13487
13487
|
m([
|
|
13488
|
-
w({ type:
|
|
13488
|
+
w({ type: T.Integer })
|
|
13489
13489
|
], jn.prototype, "version", void 0);
|
|
13490
13490
|
m([
|
|
13491
13491
|
w({ type: Pi })
|
|
@@ -13532,7 +13532,7 @@ m([
|
|
|
13532
13532
|
w({ type: Te })
|
|
13533
13533
|
], Kp.prototype, "acIssuer", void 0);
|
|
13534
13534
|
m([
|
|
13535
|
-
w({ type:
|
|
13535
|
+
w({ type: T.Integer })
|
|
13536
13536
|
], Kp.prototype, "acSerial", void 0);
|
|
13537
13537
|
m([
|
|
13538
13538
|
w({ type: Xn, repeated: "sequence" })
|
|
@@ -13544,7 +13544,7 @@ let Da = ad = class extends Pe {
|
|
|
13544
13544
|
}
|
|
13545
13545
|
};
|
|
13546
13546
|
Da = ad = m([
|
|
13547
|
-
J({ type: H.Sequence, itemType:
|
|
13547
|
+
J({ type: H.Sequence, itemType: T.ObjectIdentifier })
|
|
13548
13548
|
], Da);
|
|
13549
13549
|
class qc {
|
|
13550
13550
|
constructor(e = {}) {
|
|
@@ -13552,7 +13552,7 @@ class qc {
|
|
|
13552
13552
|
}
|
|
13553
13553
|
}
|
|
13554
13554
|
m([
|
|
13555
|
-
w({ type:
|
|
13555
|
+
w({ type: T.Integer, optional: !0 })
|
|
13556
13556
|
], qc.prototype, "pathLenConstraint", void 0);
|
|
13557
13557
|
m([
|
|
13558
13558
|
w({ type: Da, implicit: !0, context: 0, optional: !0 })
|
|
@@ -13561,7 +13561,7 @@ m([
|
|
|
13561
13561
|
w({ type: Da, implicit: !0, context: 1, optional: !0 })
|
|
13562
13562
|
], qc.prototype, "excludedAttrs", void 0);
|
|
13563
13563
|
m([
|
|
13564
|
-
w({ type:
|
|
13564
|
+
w({ type: T.Boolean, defaultValue: !0 })
|
|
13565
13565
|
], qc.prototype, "permitUnSpecified", void 0);
|
|
13566
13566
|
class ai {
|
|
13567
13567
|
constructor(e = {}) {
|
|
@@ -13572,10 +13572,10 @@ m([
|
|
|
13572
13572
|
w({ type: yt })
|
|
13573
13573
|
], ai.prototype, "issuer", void 0);
|
|
13574
13574
|
m([
|
|
13575
|
-
w({ type:
|
|
13575
|
+
w({ type: T.Integer, converter: He })
|
|
13576
13576
|
], ai.prototype, "serial", void 0);
|
|
13577
13577
|
m([
|
|
13578
|
-
w({ type:
|
|
13578
|
+
w({ type: T.BitString, optional: !0 })
|
|
13579
13579
|
], ai.prototype, "issuerUID", void 0);
|
|
13580
13580
|
var cd;
|
|
13581
13581
|
(function(t) {
|
|
@@ -13587,16 +13587,16 @@ class ci {
|
|
|
13587
13587
|
}
|
|
13588
13588
|
}
|
|
13589
13589
|
m([
|
|
13590
|
-
w({ type:
|
|
13590
|
+
w({ type: T.Enumerated })
|
|
13591
13591
|
], ci.prototype, "digestedObjectType", void 0);
|
|
13592
13592
|
m([
|
|
13593
|
-
w({ type:
|
|
13593
|
+
w({ type: T.ObjectIdentifier, optional: !0 })
|
|
13594
13594
|
], ci.prototype, "otherObjectTypeID", void 0);
|
|
13595
13595
|
m([
|
|
13596
13596
|
w({ type: ue })
|
|
13597
13597
|
], ci.prototype, "digestAlgorithm", void 0);
|
|
13598
13598
|
m([
|
|
13599
|
-
w({ type:
|
|
13599
|
+
w({ type: T.BitString })
|
|
13600
13600
|
], ci.prototype, "objectDigest", void 0);
|
|
13601
13601
|
class zc {
|
|
13602
13602
|
constructor(e = {}) {
|
|
@@ -13632,10 +13632,10 @@ class Vc {
|
|
|
13632
13632
|
}
|
|
13633
13633
|
}
|
|
13634
13634
|
m([
|
|
13635
|
-
w({ type:
|
|
13635
|
+
w({ type: T.GeneralizedTime })
|
|
13636
13636
|
], Vc.prototype, "notBeforeTime", void 0);
|
|
13637
13637
|
m([
|
|
13638
|
-
w({ type:
|
|
13638
|
+
w({ type: T.GeneralizedTime })
|
|
13639
13639
|
], Vc.prototype, "notAfterTime", void 0);
|
|
13640
13640
|
class ho {
|
|
13641
13641
|
constructor(e = {}) {
|
|
@@ -13661,7 +13661,7 @@ class vn {
|
|
|
13661
13661
|
}
|
|
13662
13662
|
}
|
|
13663
13663
|
m([
|
|
13664
|
-
w({ type:
|
|
13664
|
+
w({ type: T.Integer })
|
|
13665
13665
|
], vn.prototype, "version", void 0);
|
|
13666
13666
|
m([
|
|
13667
13667
|
w({ type: ho })
|
|
@@ -13673,7 +13673,7 @@ m([
|
|
|
13673
13673
|
w({ type: ue })
|
|
13674
13674
|
], vn.prototype, "signature", void 0);
|
|
13675
13675
|
m([
|
|
13676
|
-
w({ type:
|
|
13676
|
+
w({ type: T.Integer, converter: He })
|
|
13677
13677
|
], vn.prototype, "serialNumber", void 0);
|
|
13678
13678
|
m([
|
|
13679
13679
|
w({ type: Vc })
|
|
@@ -13682,7 +13682,7 @@ m([
|
|
|
13682
13682
|
w({ type: Xn, repeated: "sequence" })
|
|
13683
13683
|
], vn.prototype, "attributes", void 0);
|
|
13684
13684
|
m([
|
|
13685
|
-
w({ type:
|
|
13685
|
+
w({ type: T.BitString, optional: !0 })
|
|
13686
13686
|
], vn.prototype, "issuerUniqueID", void 0);
|
|
13687
13687
|
m([
|
|
13688
13688
|
w({ type: br, optional: !0 })
|
|
@@ -13699,7 +13699,7 @@ m([
|
|
|
13699
13699
|
w({ type: ue })
|
|
13700
13700
|
], Hc.prototype, "signatureAlgorithm", void 0);
|
|
13701
13701
|
m([
|
|
13702
|
-
w({ type:
|
|
13702
|
+
w({ type: T.BitString })
|
|
13703
13703
|
], Hc.prototype, "signatureValue", void 0);
|
|
13704
13704
|
var Ra;
|
|
13705
13705
|
(function(t) {
|
|
@@ -13713,10 +13713,10 @@ class Gp {
|
|
|
13713
13713
|
}
|
|
13714
13714
|
}
|
|
13715
13715
|
m([
|
|
13716
|
-
w({ type:
|
|
13716
|
+
w({ type: T.ObjectIdentifier, implicit: !0, context: 0 })
|
|
13717
13717
|
], Gp.prototype, "type", void 0);
|
|
13718
13718
|
m([
|
|
13719
|
-
w({ type:
|
|
13719
|
+
w({ type: T.Any, implicit: !0, context: 1 })
|
|
13720
13720
|
], Gp.prototype, "value", void 0);
|
|
13721
13721
|
class Wp {
|
|
13722
13722
|
constructor(e = {}) {
|
|
@@ -13724,7 +13724,7 @@ class Wp {
|
|
|
13724
13724
|
}
|
|
13725
13725
|
}
|
|
13726
13726
|
m([
|
|
13727
|
-
w({ type:
|
|
13727
|
+
w({ type: T.ObjectIdentifier })
|
|
13728
13728
|
], Wp.prototype, "policyId", void 0);
|
|
13729
13729
|
m([
|
|
13730
13730
|
w({ type: ud, defaultValue: new ud(Ra.unclassified) })
|
|
@@ -13741,10 +13741,10 @@ m([
|
|
|
13741
13741
|
w({ type: De })
|
|
13742
13742
|
], Kc.prototype, "cotets", void 0);
|
|
13743
13743
|
m([
|
|
13744
|
-
w({ type:
|
|
13744
|
+
w({ type: T.ObjectIdentifier })
|
|
13745
13745
|
], Kc.prototype, "oid", void 0);
|
|
13746
13746
|
m([
|
|
13747
|
-
w({ type:
|
|
13747
|
+
w({ type: T.Utf8String })
|
|
13748
13748
|
], Kc.prototype, "string", void 0);
|
|
13749
13749
|
class b2 {
|
|
13750
13750
|
constructor(e = {}) {
|
|
@@ -13838,10 +13838,10 @@ class Jp {
|
|
|
13838
13838
|
}
|
|
13839
13839
|
}
|
|
13840
13840
|
m([
|
|
13841
|
-
w({ type:
|
|
13841
|
+
w({ type: T.ObjectIdentifier })
|
|
13842
13842
|
], Jp.prototype, "otherCertFormat", void 0);
|
|
13843
13843
|
m([
|
|
13844
|
-
w({ type:
|
|
13844
|
+
w({ type: T.Any })
|
|
13845
13845
|
], Jp.prototype, "otherCert", void 0);
|
|
13846
13846
|
let Fi = class {
|
|
13847
13847
|
constructor(e = {}) {
|
|
@@ -13874,10 +13874,10 @@ class rs {
|
|
|
13874
13874
|
}
|
|
13875
13875
|
}
|
|
13876
13876
|
m([
|
|
13877
|
-
w({ type:
|
|
13877
|
+
w({ type: T.ObjectIdentifier })
|
|
13878
13878
|
], rs.prototype, "contentType", void 0);
|
|
13879
13879
|
m([
|
|
13880
|
-
w({ type:
|
|
13880
|
+
w({ type: T.Any, context: 0 })
|
|
13881
13881
|
], rs.prototype, "content", void 0);
|
|
13882
13882
|
let Fs = class {
|
|
13883
13883
|
constructor(e = {}) {
|
|
@@ -13888,7 +13888,7 @@ m([
|
|
|
13888
13888
|
w({ type: De })
|
|
13889
13889
|
], Fs.prototype, "single", void 0);
|
|
13890
13890
|
m([
|
|
13891
|
-
w({ type:
|
|
13891
|
+
w({ type: T.Any })
|
|
13892
13892
|
], Fs.prototype, "any", void 0);
|
|
13893
13893
|
Fs = m([
|
|
13894
13894
|
J({ type: H.Choice })
|
|
@@ -13899,7 +13899,7 @@ class Wc {
|
|
|
13899
13899
|
}
|
|
13900
13900
|
}
|
|
13901
13901
|
m([
|
|
13902
|
-
w({ type:
|
|
13902
|
+
w({ type: T.ObjectIdentifier })
|
|
13903
13903
|
], Wc.prototype, "eContentType", void 0);
|
|
13904
13904
|
m([
|
|
13905
13905
|
w({ type: Fs, context: 0, optional: !0 })
|
|
@@ -13931,7 +13931,7 @@ class go {
|
|
|
13931
13931
|
}
|
|
13932
13932
|
}
|
|
13933
13933
|
m([
|
|
13934
|
-
w({ type:
|
|
13934
|
+
w({ type: T.ObjectIdentifier })
|
|
13935
13935
|
], go.prototype, "contentType", void 0);
|
|
13936
13936
|
m([
|
|
13937
13937
|
w({ type: Ia })
|
|
@@ -13945,10 +13945,10 @@ class Xc {
|
|
|
13945
13945
|
}
|
|
13946
13946
|
}
|
|
13947
13947
|
m([
|
|
13948
|
-
w({ type:
|
|
13948
|
+
w({ type: T.ObjectIdentifier })
|
|
13949
13949
|
], Xc.prototype, "keyAttrId", void 0);
|
|
13950
13950
|
m([
|
|
13951
|
-
w({ type:
|
|
13951
|
+
w({ type: T.Any, optional: !0 })
|
|
13952
13952
|
], Xc.prototype, "keyAttr", void 0);
|
|
13953
13953
|
var gd;
|
|
13954
13954
|
class Jc {
|
|
@@ -13960,7 +13960,7 @@ m([
|
|
|
13960
13960
|
w({ type: yr })
|
|
13961
13961
|
], Jc.prototype, "subjectKeyIdentifier", void 0);
|
|
13962
13962
|
m([
|
|
13963
|
-
w({ type:
|
|
13963
|
+
w({ type: T.GeneralizedTime, optional: !0 })
|
|
13964
13964
|
], Jc.prototype, "date", void 0);
|
|
13965
13965
|
m([
|
|
13966
13966
|
w({ type: Xc, optional: !0 })
|
|
@@ -14007,7 +14007,7 @@ m([
|
|
|
14007
14007
|
w({ type: ue })
|
|
14008
14008
|
], Zp.prototype, "algorithm", void 0);
|
|
14009
14009
|
m([
|
|
14010
|
-
w({ type:
|
|
14010
|
+
w({ type: T.BitString })
|
|
14011
14011
|
], Zp.prototype, "publicKey", void 0);
|
|
14012
14012
|
let Wr = class {
|
|
14013
14013
|
constructor(e = {}) {
|
|
@@ -14032,7 +14032,7 @@ class is {
|
|
|
14032
14032
|
}
|
|
14033
14033
|
}
|
|
14034
14034
|
m([
|
|
14035
|
-
w({ type:
|
|
14035
|
+
w({ type: T.Integer })
|
|
14036
14036
|
], is.prototype, "version", void 0);
|
|
14037
14037
|
m([
|
|
14038
14038
|
w({ type: Wr, context: 0 })
|
|
@@ -14066,7 +14066,7 @@ class mo {
|
|
|
14066
14066
|
}
|
|
14067
14067
|
}
|
|
14068
14068
|
m([
|
|
14069
|
-
w({ type:
|
|
14069
|
+
w({ type: T.Integer })
|
|
14070
14070
|
], mo.prototype, "version", void 0);
|
|
14071
14071
|
m([
|
|
14072
14072
|
w({ type: Mi })
|
|
@@ -14086,7 +14086,7 @@ m([
|
|
|
14086
14086
|
w({ type: De })
|
|
14087
14087
|
], _o.prototype, "keyIdentifier", void 0);
|
|
14088
14088
|
m([
|
|
14089
|
-
w({ type:
|
|
14089
|
+
w({ type: T.GeneralizedTime, optional: !0 })
|
|
14090
14090
|
], _o.prototype, "date", void 0);
|
|
14091
14091
|
m([
|
|
14092
14092
|
w({ type: Xc, optional: !0 })
|
|
@@ -14097,7 +14097,7 @@ class yo {
|
|
|
14097
14097
|
}
|
|
14098
14098
|
}
|
|
14099
14099
|
m([
|
|
14100
|
-
w({ type:
|
|
14100
|
+
w({ type: T.Integer })
|
|
14101
14101
|
], yo.prototype, "version", void 0);
|
|
14102
14102
|
m([
|
|
14103
14103
|
w({ type: _o })
|
|
@@ -14114,7 +14114,7 @@ class wo {
|
|
|
14114
14114
|
}
|
|
14115
14115
|
}
|
|
14116
14116
|
m([
|
|
14117
|
-
w({ type:
|
|
14117
|
+
w({ type: T.Integer })
|
|
14118
14118
|
], wo.prototype, "version", void 0);
|
|
14119
14119
|
m([
|
|
14120
14120
|
w({ type: sd, context: 0, optional: !0 })
|
|
@@ -14131,10 +14131,10 @@ class Qp {
|
|
|
14131
14131
|
}
|
|
14132
14132
|
}
|
|
14133
14133
|
m([
|
|
14134
|
-
w({ type:
|
|
14134
|
+
w({ type: T.ObjectIdentifier })
|
|
14135
14135
|
], Qp.prototype, "oriType", void 0);
|
|
14136
14136
|
m([
|
|
14137
|
-
w({ type:
|
|
14137
|
+
w({ type: T.Any })
|
|
14138
14138
|
], Qp.prototype, "oriValue", void 0);
|
|
14139
14139
|
let $r = class {
|
|
14140
14140
|
constructor(e = {}) {
|
|
@@ -14175,10 +14175,10 @@ class Yc {
|
|
|
14175
14175
|
}
|
|
14176
14176
|
}
|
|
14177
14177
|
m([
|
|
14178
|
-
w({ type:
|
|
14178
|
+
w({ type: T.ObjectIdentifier })
|
|
14179
14179
|
], Yc.prototype, "otherRevInfoFormat", void 0);
|
|
14180
14180
|
m([
|
|
14181
|
-
w({ type:
|
|
14181
|
+
w({ type: T.Any })
|
|
14182
14182
|
], Yc.prototype, "otherRevInfo", void 0);
|
|
14183
14183
|
let La = class {
|
|
14184
14184
|
constructor(e = {}) {
|
|
@@ -14225,7 +14225,7 @@ class vo {
|
|
|
14225
14225
|
}
|
|
14226
14226
|
}
|
|
14227
14227
|
m([
|
|
14228
|
-
w({ type:
|
|
14228
|
+
w({ type: T.Integer })
|
|
14229
14229
|
], vo.prototype, "version", void 0);
|
|
14230
14230
|
m([
|
|
14231
14231
|
w({ type: ef, context: 0, implicit: !0, optional: !0 })
|
|
@@ -14255,7 +14255,7 @@ class ss {
|
|
|
14255
14255
|
}
|
|
14256
14256
|
}
|
|
14257
14257
|
m([
|
|
14258
|
-
w({ type:
|
|
14258
|
+
w({ type: T.Integer })
|
|
14259
14259
|
], ss.prototype, "version", void 0);
|
|
14260
14260
|
m([
|
|
14261
14261
|
w({ type: Ua })
|
|
@@ -14285,10 +14285,10 @@ let qs = class {
|
|
|
14285
14285
|
}
|
|
14286
14286
|
};
|
|
14287
14287
|
m([
|
|
14288
|
-
w({ type:
|
|
14288
|
+
w({ type: T.ObjectIdentifier })
|
|
14289
14289
|
], qs.prototype, "fieldType", void 0);
|
|
14290
14290
|
m([
|
|
14291
|
-
w({ type:
|
|
14291
|
+
w({ type: T.Any })
|
|
14292
14292
|
], qs.prototype, "parameters", void 0);
|
|
14293
14293
|
qs = m([
|
|
14294
14294
|
J({ type: H.Sequence })
|
|
@@ -14301,13 +14301,13 @@ let qi = class {
|
|
|
14301
14301
|
}
|
|
14302
14302
|
};
|
|
14303
14303
|
m([
|
|
14304
|
-
w({ type:
|
|
14304
|
+
w({ type: T.OctetString })
|
|
14305
14305
|
], qi.prototype, "a", void 0);
|
|
14306
14306
|
m([
|
|
14307
|
-
w({ type:
|
|
14307
|
+
w({ type: T.OctetString })
|
|
14308
14308
|
], qi.prototype, "b", void 0);
|
|
14309
14309
|
m([
|
|
14310
|
-
w({ type:
|
|
14310
|
+
w({ type: T.BitString, optional: !0 })
|
|
14311
14311
|
], qi.prototype, "seed", void 0);
|
|
14312
14312
|
qi = m([
|
|
14313
14313
|
J({ type: H.Sequence })
|
|
@@ -14322,7 +14322,7 @@ let Yn = class {
|
|
|
14322
14322
|
}
|
|
14323
14323
|
};
|
|
14324
14324
|
m([
|
|
14325
|
-
w({ type:
|
|
14325
|
+
w({ type: T.Integer })
|
|
14326
14326
|
], Yn.prototype, "version", void 0);
|
|
14327
14327
|
m([
|
|
14328
14328
|
w({ type: qs })
|
|
@@ -14334,10 +14334,10 @@ m([
|
|
|
14334
14334
|
w({ type: w4 })
|
|
14335
14335
|
], Yn.prototype, "base", void 0);
|
|
14336
14336
|
m([
|
|
14337
|
-
w({ type:
|
|
14337
|
+
w({ type: T.Integer, converter: He })
|
|
14338
14338
|
], Yn.prototype, "order", void 0);
|
|
14339
14339
|
m([
|
|
14340
|
-
w({ type:
|
|
14340
|
+
w({ type: T.Integer, optional: !0 })
|
|
14341
14341
|
], Yn.prototype, "cofactor", void 0);
|
|
14342
14342
|
Yn = m([
|
|
14343
14343
|
J({ type: H.Sequence })
|
|
@@ -14348,10 +14348,10 @@ let xr = class {
|
|
|
14348
14348
|
}
|
|
14349
14349
|
};
|
|
14350
14350
|
m([
|
|
14351
|
-
w({ type:
|
|
14351
|
+
w({ type: T.ObjectIdentifier })
|
|
14352
14352
|
], xr.prototype, "namedCurve", void 0);
|
|
14353
14353
|
m([
|
|
14354
|
-
w({ type:
|
|
14354
|
+
w({ type: T.Null })
|
|
14355
14355
|
], xr.prototype, "implicitCurve", void 0);
|
|
14356
14356
|
m([
|
|
14357
14357
|
w({ type: Yn })
|
|
@@ -14365,7 +14365,7 @@ class Zc {
|
|
|
14365
14365
|
}
|
|
14366
14366
|
}
|
|
14367
14367
|
m([
|
|
14368
|
-
w({ type:
|
|
14368
|
+
w({ type: T.Integer })
|
|
14369
14369
|
], Zc.prototype, "version", void 0);
|
|
14370
14370
|
m([
|
|
14371
14371
|
w({ type: De })
|
|
@@ -14374,7 +14374,7 @@ m([
|
|
|
14374
14374
|
w({ type: xr, context: 0, optional: !0 })
|
|
14375
14375
|
], Zc.prototype, "parameters", void 0);
|
|
14376
14376
|
m([
|
|
14377
|
-
w({ type:
|
|
14377
|
+
w({ type: T.BitString, context: 1, optional: !0 })
|
|
14378
14378
|
], Zc.prototype, "publicKey", void 0);
|
|
14379
14379
|
class Ma {
|
|
14380
14380
|
constructor(e = {}) {
|
|
@@ -14382,10 +14382,10 @@ class Ma {
|
|
|
14382
14382
|
}
|
|
14383
14383
|
}
|
|
14384
14384
|
m([
|
|
14385
|
-
w({ type:
|
|
14385
|
+
w({ type: T.Integer, converter: He })
|
|
14386
14386
|
], Ma.prototype, "r", void 0);
|
|
14387
14387
|
m([
|
|
14388
|
-
w({ type:
|
|
14388
|
+
w({ type: T.Integer, converter: He })
|
|
14389
14389
|
], Ma.prototype, "s", void 0);
|
|
14390
14390
|
const Ot = "1.2.840.113549.1.1", Xr = `${Ot}.1`, v4 = `${Ot}.7`, b4 = `${Ot}.9`, Ts = `${Ot}.10`, $4 = `${Ot}.2`, x4 = `${Ot}.4`, qa = `${Ot}.5`, A4 = `${Ot}.14`, $d = `${Ot}.11`, za = `${Ot}.12`, Va = `${Ot}.13`, A2 = `${Ot}.15`, E2 = `${Ot}.16`, Ha = "1.3.14.3.2.26", S2 = "2.16.840.1.101.3.4.2.4", Ka = "2.16.840.1.101.3.4.2.1", Ga = "2.16.840.1.101.3.4.2.2", Wa = "2.16.840.1.101.3.4.2.3", E4 = "2.16.840.1.101.3.4.2.5", S4 = "2.16.840.1.101.3.4.2.6", k4 = "1.2.840.113549.2.2", N4 = "1.2.840.113549.2.5", Qc = `${Ot}.8`;
|
|
14391
14391
|
function ot(t) {
|
|
@@ -14474,10 +14474,10 @@ m([
|
|
|
14474
14474
|
w({ type: ue, context: 1, defaultValue: k2 })
|
|
14475
14475
|
], Yr.prototype, "maskGenAlgorithm", void 0);
|
|
14476
14476
|
m([
|
|
14477
|
-
w({ type:
|
|
14477
|
+
w({ type: T.Integer, context: 2, defaultValue: 20 })
|
|
14478
14478
|
], Yr.prototype, "saltLength", void 0);
|
|
14479
14479
|
m([
|
|
14480
|
-
w({ type:
|
|
14480
|
+
w({ type: T.Integer, context: 3, defaultValue: 1 })
|
|
14481
14481
|
], Yr.prototype, "trailerField", void 0);
|
|
14482
14482
|
new ue({
|
|
14483
14483
|
algorithm: Ts,
|
|
@@ -14501,13 +14501,13 @@ class nl {
|
|
|
14501
14501
|
}
|
|
14502
14502
|
}
|
|
14503
14503
|
m([
|
|
14504
|
-
w({ type:
|
|
14504
|
+
w({ type: T.Integer, converter: He })
|
|
14505
14505
|
], nl.prototype, "prime", void 0);
|
|
14506
14506
|
m([
|
|
14507
|
-
w({ type:
|
|
14507
|
+
w({ type: T.Integer, converter: He })
|
|
14508
14508
|
], nl.prototype, "exponent", void 0);
|
|
14509
14509
|
m([
|
|
14510
|
-
w({ type:
|
|
14510
|
+
w({ type: T.Integer, converter: He })
|
|
14511
14511
|
], nl.prototype, "coefficient", void 0);
|
|
14512
14512
|
let Ad = xd = class extends Pe {
|
|
14513
14513
|
constructor(e) {
|
|
@@ -14523,31 +14523,31 @@ class Pn {
|
|
|
14523
14523
|
}
|
|
14524
14524
|
}
|
|
14525
14525
|
m([
|
|
14526
|
-
w({ type:
|
|
14526
|
+
w({ type: T.Integer })
|
|
14527
14527
|
], Pn.prototype, "version", void 0);
|
|
14528
14528
|
m([
|
|
14529
|
-
w({ type:
|
|
14529
|
+
w({ type: T.Integer, converter: He })
|
|
14530
14530
|
], Pn.prototype, "modulus", void 0);
|
|
14531
14531
|
m([
|
|
14532
|
-
w({ type:
|
|
14532
|
+
w({ type: T.Integer, converter: He })
|
|
14533
14533
|
], Pn.prototype, "publicExponent", void 0);
|
|
14534
14534
|
m([
|
|
14535
|
-
w({ type:
|
|
14535
|
+
w({ type: T.Integer, converter: He })
|
|
14536
14536
|
], Pn.prototype, "privateExponent", void 0);
|
|
14537
14537
|
m([
|
|
14538
|
-
w({ type:
|
|
14538
|
+
w({ type: T.Integer, converter: He })
|
|
14539
14539
|
], Pn.prototype, "prime1", void 0);
|
|
14540
14540
|
m([
|
|
14541
|
-
w({ type:
|
|
14541
|
+
w({ type: T.Integer, converter: He })
|
|
14542
14542
|
], Pn.prototype, "prime2", void 0);
|
|
14543
14543
|
m([
|
|
14544
|
-
w({ type:
|
|
14544
|
+
w({ type: T.Integer, converter: He })
|
|
14545
14545
|
], Pn.prototype, "exponent1", void 0);
|
|
14546
14546
|
m([
|
|
14547
|
-
w({ type:
|
|
14547
|
+
w({ type: T.Integer, converter: He })
|
|
14548
14548
|
], Pn.prototype, "exponent2", void 0);
|
|
14549
14549
|
m([
|
|
14550
|
-
w({ type:
|
|
14550
|
+
w({ type: T.Integer, converter: He })
|
|
14551
14551
|
], Pn.prototype, "coefficient", void 0);
|
|
14552
14552
|
m([
|
|
14553
14553
|
w({ type: Ad, optional: !0 })
|
|
@@ -14558,10 +14558,10 @@ class of {
|
|
|
14558
14558
|
}
|
|
14559
14559
|
}
|
|
14560
14560
|
m([
|
|
14561
|
-
w({ type:
|
|
14561
|
+
w({ type: T.Integer, converter: He })
|
|
14562
14562
|
], of.prototype, "modulus", void 0);
|
|
14563
14563
|
m([
|
|
14564
|
-
w({ type:
|
|
14564
|
+
w({ type: T.Integer, converter: He })
|
|
14565
14565
|
], of.prototype, "publicExponent", void 0);
|
|
14566
14566
|
var Ed;
|
|
14567
14567
|
(function(t) {
|
|
@@ -15109,10 +15109,10 @@ class il {
|
|
|
15109
15109
|
}
|
|
15110
15110
|
}
|
|
15111
15111
|
m([
|
|
15112
|
-
w({ type:
|
|
15112
|
+
w({ type: T.ObjectIdentifier })
|
|
15113
15113
|
], il.prototype, "attrId", void 0);
|
|
15114
15114
|
m([
|
|
15115
|
-
w({ type:
|
|
15115
|
+
w({ type: T.Any, repeated: "set" })
|
|
15116
15116
|
], il.prototype, "attrValues", void 0);
|
|
15117
15117
|
let Qh = Nd = class extends Pe {
|
|
15118
15118
|
constructor(e) {
|
|
@@ -15137,10 +15137,10 @@ class O2 {
|
|
|
15137
15137
|
}
|
|
15138
15138
|
}
|
|
15139
15139
|
m([
|
|
15140
|
-
w({ type:
|
|
15140
|
+
w({ type: T.ObjectIdentifier })
|
|
15141
15141
|
], O2.prototype, "certId", void 0);
|
|
15142
15142
|
m([
|
|
15143
|
-
w({ type:
|
|
15143
|
+
w({ type: T.Any, context: 0 })
|
|
15144
15144
|
], O2.prototype, "certValue", void 0);
|
|
15145
15145
|
class D2 {
|
|
15146
15146
|
constructor(e = {}) {
|
|
@@ -15148,10 +15148,10 @@ class D2 {
|
|
|
15148
15148
|
}
|
|
15149
15149
|
}
|
|
15150
15150
|
m([
|
|
15151
|
-
w({ type:
|
|
15151
|
+
w({ type: T.ObjectIdentifier })
|
|
15152
15152
|
], D2.prototype, "crlId", void 0);
|
|
15153
15153
|
m([
|
|
15154
|
-
w({ type:
|
|
15154
|
+
w({ type: T.Any, context: 0 })
|
|
15155
15155
|
], D2.prototype, "crltValue", void 0);
|
|
15156
15156
|
class R2 extends De {
|
|
15157
15157
|
}
|
|
@@ -15186,7 +15186,7 @@ class $o {
|
|
|
15186
15186
|
}
|
|
15187
15187
|
}
|
|
15188
15188
|
m([
|
|
15189
|
-
w({ type:
|
|
15189
|
+
w({ type: T.Integer })
|
|
15190
15190
|
], $o.prototype, "version", void 0);
|
|
15191
15191
|
m([
|
|
15192
15192
|
w({ type: ue })
|
|
@@ -15213,10 +15213,10 @@ class P2 {
|
|
|
15213
15213
|
}
|
|
15214
15214
|
}
|
|
15215
15215
|
m([
|
|
15216
|
-
w({ type:
|
|
15216
|
+
w({ type: T.ObjectIdentifier })
|
|
15217
15217
|
], P2.prototype, "secretTypeId", void 0);
|
|
15218
15218
|
m([
|
|
15219
|
-
w({ type:
|
|
15219
|
+
w({ type: T.Any, context: 0 })
|
|
15220
15220
|
], P2.prototype, "secretValue", void 0);
|
|
15221
15221
|
class xo {
|
|
15222
15222
|
constructor(e = {}) {
|
|
@@ -15230,7 +15230,7 @@ m([
|
|
|
15230
15230
|
w({ type: De })
|
|
15231
15231
|
], xo.prototype, "macSalt", void 0);
|
|
15232
15232
|
m([
|
|
15233
|
-
w({ type:
|
|
15233
|
+
w({ type: T.Integer, defaultValue: 1 })
|
|
15234
15234
|
], xo.prototype, "iterations", void 0);
|
|
15235
15235
|
class ol {
|
|
15236
15236
|
constructor(e = {}) {
|
|
@@ -15238,7 +15238,7 @@ class ol {
|
|
|
15238
15238
|
}
|
|
15239
15239
|
}
|
|
15240
15240
|
m([
|
|
15241
|
-
w({ type:
|
|
15241
|
+
w({ type: T.Integer })
|
|
15242
15242
|
], ol.prototype, "version", void 0);
|
|
15243
15243
|
m([
|
|
15244
15244
|
w({ type: rs })
|
|
@@ -15253,10 +15253,10 @@ class al {
|
|
|
15253
15253
|
}
|
|
15254
15254
|
}
|
|
15255
15255
|
m([
|
|
15256
|
-
w({ type:
|
|
15256
|
+
w({ type: T.ObjectIdentifier })
|
|
15257
15257
|
], al.prototype, "bagId", void 0);
|
|
15258
15258
|
m([
|
|
15259
|
-
w({ type:
|
|
15259
|
+
w({ type: T.Any, context: 0 })
|
|
15260
15260
|
], al.prototype, "bagValue", void 0);
|
|
15261
15261
|
m([
|
|
15262
15262
|
w({ type: il, repeated: "set", optional: !0 })
|
|
@@ -15280,7 +15280,7 @@ let Ja = class extends gt {
|
|
|
15280
15280
|
}
|
|
15281
15281
|
};
|
|
15282
15282
|
m([
|
|
15283
|
-
w({ type:
|
|
15283
|
+
w({ type: T.IA5String })
|
|
15284
15284
|
], Ja.prototype, "ia5String", void 0);
|
|
15285
15285
|
Ja = m([
|
|
15286
15286
|
J({ type: H.Choice })
|
|
@@ -15309,7 +15309,7 @@ let Bd = class {
|
|
|
15309
15309
|
}
|
|
15310
15310
|
};
|
|
15311
15311
|
m([
|
|
15312
|
-
w({ type:
|
|
15312
|
+
w({ type: T.IA5String })
|
|
15313
15313
|
], Bd.prototype, "value", void 0);
|
|
15314
15314
|
Bd = m([
|
|
15315
15315
|
J({ type: H.Choice })
|
|
@@ -15330,7 +15330,7 @@ let Ld = class {
|
|
|
15330
15330
|
}
|
|
15331
15331
|
};
|
|
15332
15332
|
m([
|
|
15333
|
-
w({ type:
|
|
15333
|
+
w({ type: T.GeneralizedTime })
|
|
15334
15334
|
], Ld.prototype, "value", void 0);
|
|
15335
15335
|
Ld = m([
|
|
15336
15336
|
J({ type: H.Choice })
|
|
@@ -15349,7 +15349,7 @@ let Fd = class {
|
|
|
15349
15349
|
}
|
|
15350
15350
|
};
|
|
15351
15351
|
m([
|
|
15352
|
-
w({ type:
|
|
15352
|
+
w({ type: T.PrintableString })
|
|
15353
15353
|
], Fd.prototype, "value", void 0);
|
|
15354
15354
|
Fd = m([
|
|
15355
15355
|
J({ type: H.Choice })
|
|
@@ -15363,7 +15363,7 @@ let Ya = class {
|
|
|
15363
15363
|
}
|
|
15364
15364
|
};
|
|
15365
15365
|
m([
|
|
15366
|
-
w({ type:
|
|
15366
|
+
w({ type: T.PrintableString })
|
|
15367
15367
|
], Ya.prototype, "value", void 0);
|
|
15368
15368
|
Ya = m([
|
|
15369
15369
|
J({ type: H.Choice })
|
|
@@ -15387,7 +15387,7 @@ let Ud = class {
|
|
|
15387
15387
|
}
|
|
15388
15388
|
};
|
|
15389
15389
|
m([
|
|
15390
|
-
w({ type:
|
|
15390
|
+
w({ type: T.ObjectIdentifier })
|
|
15391
15391
|
], Ud.prototype, "value", void 0);
|
|
15392
15392
|
Ud = m([
|
|
15393
15393
|
J({ type: H.Choice })
|
|
@@ -15406,7 +15406,7 @@ let Md = class {
|
|
|
15406
15406
|
}
|
|
15407
15407
|
};
|
|
15408
15408
|
m([
|
|
15409
|
-
w({ type:
|
|
15409
|
+
w({ type: T.Integer })
|
|
15410
15410
|
], Md.prototype, "value", void 0);
|
|
15411
15411
|
Md = m([
|
|
15412
15412
|
J({ type: H.Choice })
|
|
@@ -15446,7 +15446,7 @@ let qd = class {
|
|
|
15446
15446
|
}
|
|
15447
15447
|
};
|
|
15448
15448
|
m([
|
|
15449
|
-
w({ type:
|
|
15449
|
+
w({ type: T.BmpString })
|
|
15450
15450
|
], qd.prototype, "value", void 0);
|
|
15451
15451
|
qd = m([
|
|
15452
15452
|
J({ type: H.Choice })
|
|
@@ -15479,7 +15479,7 @@ class os {
|
|
|
15479
15479
|
}
|
|
15480
15480
|
}
|
|
15481
15481
|
m([
|
|
15482
|
-
w({ type:
|
|
15482
|
+
w({ type: T.Integer })
|
|
15483
15483
|
], os.prototype, "version", void 0);
|
|
15484
15484
|
m([
|
|
15485
15485
|
w({ type: et })
|
|
@@ -15502,7 +15502,7 @@ m([
|
|
|
15502
15502
|
w({ type: ue })
|
|
15503
15503
|
], zs.prototype, "signatureAlgorithm", void 0);
|
|
15504
15504
|
m([
|
|
15505
|
-
w({ type:
|
|
15505
|
+
w({ type: T.BitString })
|
|
15506
15506
|
], zs.prototype, "signature", void 0);
|
|
15507
15507
|
/*!
|
|
15508
15508
|
* MIT License
|
|
@@ -15567,11 +15567,11 @@ class H4 {
|
|
|
15567
15567
|
const Zr = "crypto.algorithmProvider";
|
|
15568
15568
|
mt.registerSingleton(Zr, H4);
|
|
15569
15569
|
var ia;
|
|
15570
|
-
const Dt = "1.3.36.3.3.2.8.1.1", _0 = `${Dt}.1`, y0 = `${Dt}.2`, w0 = `${Dt}.3`, v0 = `${Dt}.4`, b0 = `${Dt}.5`, $0 = `${Dt}.6`, x0 = `${Dt}.7`, A0 = `${Dt}.8`, E0 = `${Dt}.9`, S0 = `${Dt}.10`, k0 = `${Dt}.11`, N0 = `${Dt}.12`, C0 = `${Dt}.13`, T0 = `${Dt}.14`, I0 = "brainpoolP160r1", O0 = "brainpoolP160t1", D0 = "brainpoolP192r1", R0 = "brainpoolP192t1", j0 = "brainpoolP224r1", P0 = "brainpoolP224t1", B0 = "brainpoolP256r1", L0 = "brainpoolP256t1", F0 = "brainpoolP320r1", U0 = "brainpoolP320t1", M0 = "brainpoolP384r1", q0 = "brainpoolP384t1", z0 = "brainpoolP512r1", V0 = "brainpoolP512t1",
|
|
15570
|
+
const Dt = "1.3.36.3.3.2.8.1.1", _0 = `${Dt}.1`, y0 = `${Dt}.2`, w0 = `${Dt}.3`, v0 = `${Dt}.4`, b0 = `${Dt}.5`, $0 = `${Dt}.6`, x0 = `${Dt}.7`, A0 = `${Dt}.8`, E0 = `${Dt}.9`, S0 = `${Dt}.10`, k0 = `${Dt}.11`, N0 = `${Dt}.12`, C0 = `${Dt}.13`, T0 = `${Dt}.14`, I0 = "brainpoolP160r1", O0 = "brainpoolP160t1", D0 = "brainpoolP192r1", R0 = "brainpoolP192t1", j0 = "brainpoolP224r1", P0 = "brainpoolP224t1", B0 = "brainpoolP256r1", L0 = "brainpoolP256t1", F0 = "brainpoolP320r1", U0 = "brainpoolP320t1", M0 = "brainpoolP384r1", q0 = "brainpoolP384t1", z0 = "brainpoolP512r1", V0 = "brainpoolP512t1", Ge = "ECDSA";
|
|
15571
15571
|
let Vs = ia = class {
|
|
15572
15572
|
toAsnAlgorithm(e) {
|
|
15573
15573
|
switch (e.name.toLowerCase()) {
|
|
15574
|
-
case
|
|
15574
|
+
case Ge.toLowerCase():
|
|
15575
15575
|
if ("hash" in e)
|
|
15576
15576
|
switch ((typeof e.hash == "string" ? e.hash : e.hash.name).toLowerCase()) {
|
|
15577
15577
|
case "sha-1":
|
|
@@ -15653,53 +15653,53 @@ let Vs = ia = class {
|
|
|
15653
15653
|
toWebAlgorithm(e) {
|
|
15654
15654
|
switch (e.algorithm) {
|
|
15655
15655
|
case tf:
|
|
15656
|
-
return { name:
|
|
15656
|
+
return { name: Ge, hash: { name: "SHA-1" } };
|
|
15657
15657
|
case nf:
|
|
15658
|
-
return { name:
|
|
15658
|
+
return { name: Ge, hash: { name: "SHA-256" } };
|
|
15659
15659
|
case rf:
|
|
15660
|
-
return { name:
|
|
15660
|
+
return { name: Ge, hash: { name: "SHA-384" } };
|
|
15661
15661
|
case sf:
|
|
15662
|
-
return { name:
|
|
15662
|
+
return { name: Ge, hash: { name: "SHA-512" } };
|
|
15663
15663
|
case Ms: {
|
|
15664
15664
|
if (!e.parameters)
|
|
15665
15665
|
throw new TypeError("Cannot get required parameters from EC algorithm");
|
|
15666
15666
|
switch (re.parse(e.parameters, xr).namedCurve) {
|
|
15667
15667
|
case Xh:
|
|
15668
|
-
return { name:
|
|
15668
|
+
return { name: Ge, namedCurve: "P-256" };
|
|
15669
15669
|
case ia.SECP256K1:
|
|
15670
|
-
return { name:
|
|
15670
|
+
return { name: Ge, namedCurve: "K-256" };
|
|
15671
15671
|
case Jh:
|
|
15672
|
-
return { name:
|
|
15672
|
+
return { name: Ge, namedCurve: "P-384" };
|
|
15673
15673
|
case Yh:
|
|
15674
|
-
return { name:
|
|
15674
|
+
return { name: Ge, namedCurve: "P-521" };
|
|
15675
15675
|
case _0:
|
|
15676
|
-
return { name:
|
|
15676
|
+
return { name: Ge, namedCurve: I0 };
|
|
15677
15677
|
case y0:
|
|
15678
|
-
return { name:
|
|
15678
|
+
return { name: Ge, namedCurve: O0 };
|
|
15679
15679
|
case w0:
|
|
15680
|
-
return { name:
|
|
15680
|
+
return { name: Ge, namedCurve: D0 };
|
|
15681
15681
|
case v0:
|
|
15682
|
-
return { name:
|
|
15682
|
+
return { name: Ge, namedCurve: R0 };
|
|
15683
15683
|
case b0:
|
|
15684
|
-
return { name:
|
|
15684
|
+
return { name: Ge, namedCurve: j0 };
|
|
15685
15685
|
case $0:
|
|
15686
|
-
return { name:
|
|
15686
|
+
return { name: Ge, namedCurve: P0 };
|
|
15687
15687
|
case x0:
|
|
15688
|
-
return { name:
|
|
15688
|
+
return { name: Ge, namedCurve: B0 };
|
|
15689
15689
|
case A0:
|
|
15690
|
-
return { name:
|
|
15690
|
+
return { name: Ge, namedCurve: L0 };
|
|
15691
15691
|
case E0:
|
|
15692
|
-
return { name:
|
|
15692
|
+
return { name: Ge, namedCurve: F0 };
|
|
15693
15693
|
case S0:
|
|
15694
|
-
return { name:
|
|
15694
|
+
return { name: Ge, namedCurve: U0 };
|
|
15695
15695
|
case k0:
|
|
15696
|
-
return { name:
|
|
15696
|
+
return { name: Ge, namedCurve: M0 };
|
|
15697
15697
|
case N0:
|
|
15698
|
-
return { name:
|
|
15698
|
+
return { name: Ge, namedCurve: q0 };
|
|
15699
15699
|
case C0:
|
|
15700
|
-
return { name:
|
|
15700
|
+
return { name: Ge, namedCurve: z0 };
|
|
15701
15701
|
case T0:
|
|
15702
|
-
return { name:
|
|
15702
|
+
return { name: Ge, namedCurve: V0 };
|
|
15703
15703
|
}
|
|
15704
15704
|
}
|
|
15705
15705
|
}
|
|
@@ -17218,30 +17218,30 @@ class c$ {
|
|
|
17218
17218
|
notBefore: a,
|
|
17219
17219
|
notAfter: l
|
|
17220
17220
|
}),
|
|
17221
|
-
extensions: new br(((r = e.extensions) === null || r === void 0 ? void 0 : r.map((
|
|
17221
|
+
extensions: new br(((r = e.extensions) === null || r === void 0 ? void 0 : r.map((D) => re.parse(D.rawData, Qt))) || []),
|
|
17222
17222
|
subjectPublicKeyInfo: re.parse(i, an)
|
|
17223
17223
|
})
|
|
17224
17224
|
});
|
|
17225
17225
|
if (e.subject) {
|
|
17226
|
-
const
|
|
17227
|
-
u.tbsCertificate.subject = re.parse(
|
|
17226
|
+
const D = e.subject instanceof Yt ? e.subject : new Yt(e.subject);
|
|
17227
|
+
u.tbsCertificate.subject = re.parse(D.toArrayBuffer(), et);
|
|
17228
17228
|
}
|
|
17229
17229
|
if (e.issuer) {
|
|
17230
|
-
const
|
|
17231
|
-
u.tbsCertificate.issuer = re.parse(
|
|
17230
|
+
const D = e.issuer instanceof Yt ? e.issuer : new Yt(e.issuer);
|
|
17231
|
+
u.tbsCertificate.issuer = re.parse(D.toArrayBuffer(), et);
|
|
17232
17232
|
}
|
|
17233
17233
|
const d = {
|
|
17234
17234
|
hash: "SHA-256"
|
|
17235
17235
|
}, p = "signingKey" in e ? { ...d, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...d, ...e.signingAlgorithm }, h = mt.resolve(Zr);
|
|
17236
17236
|
u.tbsCertificate.signature = u.signatureAlgorithm = h.toAsnAlgorithm(p);
|
|
17237
17237
|
const g = re.serialize(u.tbsCertificate), b = "signingKey" in e ? await n.subtle.sign(p, e.signingKey, g) : e.signature, A = mt.resolveAll(So).reverse();
|
|
17238
|
-
let
|
|
17239
|
-
for (const
|
|
17240
|
-
if (
|
|
17238
|
+
let C = null;
|
|
17239
|
+
for (const D of A)
|
|
17240
|
+
if (C = D.toAsnSignature(p, b), C)
|
|
17241
17241
|
break;
|
|
17242
|
-
if (!
|
|
17242
|
+
if (!C)
|
|
17243
17243
|
throw Error("Cannot convert ASN.1 signature value to WebCrypto format");
|
|
17244
|
-
return u.signatureValue =
|
|
17244
|
+
return u.signatureValue = C, new ll(re.serialize(u));
|
|
17245
17245
|
}
|
|
17246
17246
|
static generateSerialNumber(e, n) {
|
|
17247
17247
|
let r = e && e.length && e.some((s) => s > 0) ? new Uint8Array(e) : void 0;
|
|
@@ -17283,7 +17283,7 @@ async function Wd(t) {
|
|
|
17283
17283
|
hash: "SHA-256",
|
|
17284
17284
|
publicExponent: new Uint8Array([1, 0, 1]),
|
|
17285
17285
|
modulusLength: 2048
|
|
17286
|
-
}, n = await crypto.subtle.generateKey(e, !0, ["sign", "verify"]), r =
|
|
17286
|
+
}, n = await crypto.subtle.generateKey(e, !0, ["sign", "verify"]), r = Ke(), i = Su(new TextEncoder().encode(r)), s = await c$.createSelfSigned({
|
|
17287
17287
|
serialNumber: i,
|
|
17288
17288
|
name: t.name,
|
|
17289
17289
|
notBefore: /* @__PURE__ */ new Date(),
|
|
@@ -17686,7 +17686,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
|
|
|
17686
17686
|
async (t) => {
|
|
17687
17687
|
const { "tenant-id": e } = t.req.valid("header"), n = t.req.valid("json"), r = {
|
|
17688
17688
|
...n,
|
|
17689
|
-
client_secret: n.client_secret ||
|
|
17689
|
+
client_secret: n.client_secret || Ke()
|
|
17690
17690
|
}, i = await t.env.data.clients.create(e, r);
|
|
17691
17691
|
return t.json(i, { status: 201 });
|
|
17692
17692
|
}
|
|
@@ -18907,11 +18907,11 @@ function mf(t) {
|
|
|
18907
18907
|
try {
|
|
18908
18908
|
const A = await Y$(e, b);
|
|
18909
18909
|
e.set("user_id", A.sub), e.set("user", A);
|
|
18910
|
-
const
|
|
18910
|
+
const C = A.permissions || [], D = ((d = A.scope) == null ? void 0 : d.split(" ")) || [];
|
|
18911
18911
|
if (p.length && !// Should we check both?
|
|
18912
18912
|
(p.some(
|
|
18913
|
-
(
|
|
18914
|
-
) || p.some((
|
|
18913
|
+
(O) => C.includes(O)
|
|
18914
|
+
) || p.some((O) => D.includes(O))))
|
|
18915
18915
|
throw new E(403, { message: "Unauthorized" });
|
|
18916
18916
|
} catch (A) {
|
|
18917
18917
|
throw A instanceof E ? A : new E(403, { message: "Invalid token" });
|
|
@@ -19251,7 +19251,7 @@ const ex = new be().openapi(
|
|
|
19251
19251
|
schema: Or
|
|
19252
19252
|
}
|
|
19253
19253
|
},
|
|
19254
|
-
description: "A
|
|
19254
|
+
description: "A customDomain"
|
|
19255
19255
|
}
|
|
19256
19256
|
}
|
|
19257
19257
|
}),
|
|
@@ -19534,18 +19534,18 @@ function gl(t, e) {
|
|
|
19534
19534
|
keyPrefix: l
|
|
19535
19535
|
} = e, u = new Set(s), d = a.length === 0, p = new Set(a), h = {};
|
|
19536
19536
|
for (const [g, b] of Object.entries(t)) {
|
|
19537
|
-
const A = d || p.has(g),
|
|
19538
|
-
for (const [
|
|
19537
|
+
const A = d || p.has(g), C = {};
|
|
19538
|
+
for (const [D, O] of Object.entries(
|
|
19539
19539
|
b
|
|
19540
19540
|
))
|
|
19541
|
-
if (typeof
|
|
19541
|
+
if (typeof O == "function") {
|
|
19542
19542
|
if (!A) {
|
|
19543
|
-
|
|
19543
|
+
C[D] = O;
|
|
19544
19544
|
continue;
|
|
19545
19545
|
}
|
|
19546
|
-
const x = `${g}:${
|
|
19546
|
+
const x = `${g}:${D}`;
|
|
19547
19547
|
if (u.has(x)) {
|
|
19548
|
-
|
|
19548
|
+
C[D] = O;
|
|
19549
19549
|
continue;
|
|
19550
19550
|
}
|
|
19551
19551
|
const z = i[x] ?? r, q = [
|
|
@@ -19555,38 +19555,38 @@ function gl(t, e) {
|
|
|
19555
19555
|
"delete",
|
|
19556
19556
|
"set",
|
|
19557
19557
|
"used"
|
|
19558
|
-
].includes(
|
|
19559
|
-
|
|
19558
|
+
].includes(D);
|
|
19559
|
+
C[D] = async (...M) => {
|
|
19560
19560
|
if (q)
|
|
19561
|
-
return await
|
|
19561
|
+
return await O.apply(b, M);
|
|
19562
19562
|
const K = ox(
|
|
19563
19563
|
g,
|
|
19564
|
-
|
|
19564
|
+
D,
|
|
19565
19565
|
M,
|
|
19566
19566
|
l
|
|
19567
19567
|
), W = await n.get(K);
|
|
19568
19568
|
if (W !== null)
|
|
19569
19569
|
if (W && typeof W == "object" && "isCachedNull" in W) {
|
|
19570
|
-
const
|
|
19571
|
-
return
|
|
19570
|
+
const Z = W;
|
|
19571
|
+
return Z.isCachedNull ? null : Z.value;
|
|
19572
19572
|
} else
|
|
19573
19573
|
return W;
|
|
19574
|
-
const
|
|
19574
|
+
const Y = await O.apply(b, M);
|
|
19575
19575
|
if (z >= 0)
|
|
19576
|
-
if (
|
|
19577
|
-
await n.set(K,
|
|
19576
|
+
if (Y !== null)
|
|
19577
|
+
await n.set(K, Y, z);
|
|
19578
19578
|
else {
|
|
19579
|
-
const
|
|
19579
|
+
const Z = {
|
|
19580
19580
|
value: null,
|
|
19581
19581
|
isCachedNull: !0
|
|
19582
19582
|
};
|
|
19583
|
-
await n.set(K,
|
|
19583
|
+
await n.set(K, Z, z);
|
|
19584
19584
|
}
|
|
19585
|
-
return
|
|
19585
|
+
return Y;
|
|
19586
19586
|
};
|
|
19587
19587
|
} else
|
|
19588
|
-
|
|
19589
|
-
h[g] =
|
|
19588
|
+
C[D] = O;
|
|
19589
|
+
h[g] = C;
|
|
19590
19590
|
}
|
|
19591
19591
|
return h;
|
|
19592
19592
|
}
|
|
@@ -21522,8 +21522,8 @@ class Tx {
|
|
|
21522
21522
|
}
|
|
21523
21523
|
let e = this.H[0], n = this.H[1], r = this.H[2], i = this.H[3], s = this.H[4], a = this.H[5], l = this.H[6], u = this.H[7];
|
|
21524
21524
|
for (let d = 0; d < 64; d++) {
|
|
21525
|
-
const p = (An(s, 6) ^ An(s, 11) ^ An(s, 25)) >>> 0, h = (s & a ^ ~s & l) >>> 0, g = u + p + h + Ix[d] + this.w[d] | 0, b = (An(e, 2) ^ An(e, 13) ^ An(e, 22)) >>> 0, A = (e & n ^ e & r ^ n & r) >>> 0,
|
|
21526
|
-
u = l, l = a, a = s, s = i + g | 0, i = r, r = n, n = e, e = g +
|
|
21525
|
+
const p = (An(s, 6) ^ An(s, 11) ^ An(s, 25)) >>> 0, h = (s & a ^ ~s & l) >>> 0, g = u + p + h + Ix[d] + this.w[d] | 0, b = (An(e, 2) ^ An(e, 13) ^ An(e, 22)) >>> 0, A = (e & n ^ e & r ^ n & r) >>> 0, C = b + A | 0;
|
|
21526
|
+
u = l, l = a, a = s, s = i + g | 0, i = r, r = n, n = e, e = g + C | 0;
|
|
21527
21527
|
}
|
|
21528
21528
|
this.H[0] = e + this.H[0] | 0, this.H[1] = n + this.H[1] | 0, this.H[2] = r + this.H[2] | 0, this.H[3] = i + this.H[3] | 0, this.H[4] = s + this.H[4] | 0, this.H[5] = a + this.H[5] | 0, this.H[6] = l + this.H[6] | 0, this.H[7] = u + this.H[7] | 0;
|
|
21529
21529
|
}
|
|
@@ -22088,7 +22088,7 @@ async function Gx(t, e) {
|
|
|
22088
22088
|
n.kid,
|
|
22089
22089
|
r,
|
|
22090
22090
|
i
|
|
22091
|
-
), a =
|
|
22091
|
+
), a = Ke(), l = await s.createAuthorizationURL(
|
|
22092
22092
|
a,
|
|
22093
22093
|
((d = n.scope) == null ? void 0 : d.split(" ")) || ["name", "email"]
|
|
22094
22094
|
);
|
|
@@ -22132,7 +22132,7 @@ async function Jx(t, e) {
|
|
|
22132
22132
|
n.client_id,
|
|
22133
22133
|
n.client_secret,
|
|
22134
22134
|
r
|
|
22135
|
-
), s =
|
|
22135
|
+
), s = Ke();
|
|
22136
22136
|
return {
|
|
22137
22137
|
redirectUrl: i.createAuthorizationURL(
|
|
22138
22138
|
s,
|
|
@@ -22180,7 +22180,7 @@ async function Qx(t, e) {
|
|
|
22180
22180
|
n.client_id,
|
|
22181
22181
|
n.client_secret,
|
|
22182
22182
|
r
|
|
22183
|
-
), s =
|
|
22183
|
+
), s = Ke(), a = Rx();
|
|
22184
22184
|
return {
|
|
22185
22185
|
redirectUrl: i.createAuthorizationURL(
|
|
22186
22186
|
s,
|
|
@@ -22227,7 +22227,7 @@ async function n5(t, e) {
|
|
|
22227
22227
|
n.client_id,
|
|
22228
22228
|
n.client_secret,
|
|
22229
22229
|
`${ut(t.env)}callback`
|
|
22230
|
-
), i =
|
|
22230
|
+
), i = Ke(), s = r.createAuthorizationURL(
|
|
22231
22231
|
"https://api.vipps.no/access-management-1.0/access/oauth2/auth",
|
|
22232
22232
|
i,
|
|
22233
22233
|
((a = n.scope) == null ? void 0 : a.split(" ")) || [
|
|
@@ -22374,7 +22374,7 @@ async function ug(t, e, n, r) {
|
|
|
22374
22374
|
Date.now() + Mr * 1e3
|
|
22375
22375
|
).toISOString(),
|
|
22376
22376
|
authParams: r,
|
|
22377
|
-
csrf_token:
|
|
22377
|
+
csrf_token: Ke(),
|
|
22378
22378
|
ip: u,
|
|
22379
22379
|
useragent: d,
|
|
22380
22380
|
auth0Client: Qn(p)
|
|
@@ -22413,14 +22413,14 @@ async function dg(t, { code: e, state: n }) {
|
|
|
22413
22413
|
if (!s)
|
|
22414
22414
|
throw new E(403, { message: "Session not found" });
|
|
22415
22415
|
if (s.authorization_url) {
|
|
22416
|
-
const
|
|
22417
|
-
if (
|
|
22418
|
-
const
|
|
22419
|
-
return
|
|
22416
|
+
const C = new URL(s.authorization_url).hostname, D = t.var.host || "";
|
|
22417
|
+
if (C !== D && C) {
|
|
22418
|
+
const O = new URL(`https://${C}/callback`);
|
|
22419
|
+
return O.searchParams.set("state", n), O.searchParams.set("code", e), new Response("Redirecting", {
|
|
22420
22420
|
status: 307,
|
|
22421
22421
|
// Temporary Redirect - preserves the HTTP method
|
|
22422
22422
|
headers: {
|
|
22423
|
-
location:
|
|
22423
|
+
location: O.toString()
|
|
22424
22424
|
}
|
|
22425
22425
|
});
|
|
22426
22426
|
}
|
|
@@ -22431,21 +22431,21 @@ async function dg(t, { code: e, state: n }) {
|
|
|
22431
22431
|
);
|
|
22432
22432
|
t.set("client_id", a.client_id), t.set("tenant_id", a.tenant.id);
|
|
22433
22433
|
const l = a.connections.find(
|
|
22434
|
-
(
|
|
22434
|
+
(C) => C.id === i.connection_id
|
|
22435
22435
|
);
|
|
22436
22436
|
if (!l) {
|
|
22437
|
-
const
|
|
22437
|
+
const C = Ve(t, {
|
|
22438
22438
|
type: qe.FAILED_LOGIN,
|
|
22439
22439
|
description: "Connection not found"
|
|
22440
22440
|
});
|
|
22441
|
-
throw await r.data.logs.create(a.tenant.id,
|
|
22441
|
+
throw await r.data.logs.create(a.tenant.id, C), new E(403, { message: "Connection not found" });
|
|
22442
22442
|
}
|
|
22443
22443
|
if (t.set("connection", l.name), !s.authParams.redirect_uri) {
|
|
22444
|
-
const
|
|
22444
|
+
const C = Ve(t, {
|
|
22445
22445
|
type: qe.FAILED_LOGIN,
|
|
22446
22446
|
description: "Redirect URI not defined"
|
|
22447
22447
|
});
|
|
22448
|
-
throw await r.data.logs.create(a.tenant.id,
|
|
22448
|
+
throw await r.data.logs.create(a.tenant.id, C), new E(403, { message: "Redirect URI not defined" });
|
|
22449
22449
|
}
|
|
22450
22450
|
const d = await _1(t, l.strategy).validateAuthorizationCodeAndGetUser(
|
|
22451
22451
|
t,
|
|
@@ -23891,8 +23891,8 @@ var eA = ";ext=", fi = function(e) {
|
|
|
23891
23891
|
return "([".concat(gn, "]{1,").concat(e, "})");
|
|
23892
23892
|
};
|
|
23893
23893
|
function x1(t) {
|
|
23894
|
-
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", h = "[ \\t]*", g = "(?:,{2}|;)", b = eA + fi(e), A = s + u + a + fi(e) + l,
|
|
23895
|
-
return b + "|" + A + "|" +
|
|
23894
|
+
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", h = "[ \\t]*", g = "(?:,{2}|;)", b = eA + fi(e), A = s + u + a + fi(e) + l, C = s + d + a + fi(r) + l, D = p + fi(i) + "#", O = h + g + a + fi(n) + l, x = h + "(?:,)+" + a + fi(r) + l;
|
|
23895
|
+
return b + "|" + A + "|" + C + "|" + D + "|" + O + "|" + x;
|
|
23896
23896
|
}
|
|
23897
23897
|
var tA = "[" + gn + "]{" + xf + "}", nA = "[" + Af + "]{0,1}(?:[" + rc + "]*[" + gn + "]){3,}[" + rc + gn + "]*", rA = new RegExp("^[" + Af + "]{0,1}(?:[" + rc + "]*[" + gn + "]){1,2}$", "i"), iA = nA + // Phone number extensions
|
|
23898
23898
|
"(?:" + x1() + ")?", sA = new RegExp(
|
|
@@ -25559,7 +25559,7 @@ const CE = new be().openapi(
|
|
|
25559
25559
|
Date.now() + Mr * 1e3
|
|
25560
25560
|
).toISOString(),
|
|
25561
25561
|
authParams: s,
|
|
25562
|
-
csrf_token:
|
|
25562
|
+
csrf_token: Ke(),
|
|
25563
25563
|
ip: t.get("ip"),
|
|
25564
25564
|
useragent: t.get("useragent"),
|
|
25565
25565
|
auth0Client: Qn(t.get("auth0_client"))
|
|
@@ -25629,7 +25629,7 @@ const TE = new be().openapi(
|
|
|
25629
25629
|
{
|
|
25630
25630
|
authParams: { ...s, client_id: r, username: u },
|
|
25631
25631
|
expires_at: new Date(Date.now() + ta).toISOString(),
|
|
25632
|
-
csrf_token:
|
|
25632
|
+
csrf_token: Ke(),
|
|
25633
25633
|
ip: d,
|
|
25634
25634
|
useragent: p,
|
|
25635
25635
|
auth0Client: g
|
|
@@ -25741,7 +25741,7 @@ const TE = new be().openapi(
|
|
|
25741
25741
|
const q = z;
|
|
25742
25742
|
"message" in q && typeof q.message == "string" && (b = q.message);
|
|
25743
25743
|
}
|
|
25744
|
-
const A = t.get("ip"),
|
|
25744
|
+
const A = t.get("ip"), C = t.get("useragent"), D = t.get("auth0_client"), O = Qn(D), x = await e.data.loginSessions.create(
|
|
25745
25745
|
h.tenant.id,
|
|
25746
25746
|
{
|
|
25747
25747
|
authParams: {
|
|
@@ -25749,10 +25749,10 @@ const TE = new be().openapi(
|
|
|
25749
25749
|
username: r
|
|
25750
25750
|
},
|
|
25751
25751
|
expires_at: new Date(Date.now() + ta).toISOString(),
|
|
25752
|
-
csrf_token:
|
|
25752
|
+
csrf_token: Ke(),
|
|
25753
25753
|
ip: A,
|
|
25754
|
-
useragent:
|
|
25755
|
-
auth0Client:
|
|
25754
|
+
useragent: C,
|
|
25755
|
+
auth0Client: O
|
|
25756
25756
|
}
|
|
25757
25757
|
);
|
|
25758
25758
|
return t.redirect(
|
|
@@ -25889,7 +25889,7 @@ async function IE(t, e, n, r) {
|
|
|
25889
25889
|
client_id: e.client_id,
|
|
25890
25890
|
username: n
|
|
25891
25891
|
},
|
|
25892
|
-
csrf_token:
|
|
25892
|
+
csrf_token: Ke(),
|
|
25893
25893
|
ip: a,
|
|
25894
25894
|
useragent: l,
|
|
25895
25895
|
auth0Client: d
|
|
@@ -25973,7 +25973,7 @@ const OE = new be().openapi(
|
|
|
25973
25973
|
client_id: n,
|
|
25974
25974
|
username: s
|
|
25975
25975
|
},
|
|
25976
|
-
csrf_token:
|
|
25976
|
+
csrf_token: Ke(),
|
|
25977
25977
|
ip: a,
|
|
25978
25978
|
useragent: l,
|
|
25979
25979
|
auth0Client: Qn(u)
|
|
@@ -26037,7 +26037,7 @@ async function DE({
|
|
|
26037
26037
|
Date.now() + Mr * 1e3
|
|
26038
26038
|
).toISOString(),
|
|
26039
26039
|
authParams: r,
|
|
26040
|
-
csrf_token:
|
|
26040
|
+
csrf_token: Ke(),
|
|
26041
26041
|
authorization_url: a.toString(),
|
|
26042
26042
|
ip: l,
|
|
26043
26043
|
useragent: d,
|
|
@@ -26141,33 +26141,51 @@ async function PE({
|
|
|
26141
26141
|
code_challenge: l,
|
|
26142
26142
|
audience: u,
|
|
26143
26143
|
scope: d,
|
|
26144
|
-
response_type: p
|
|
26144
|
+
response_type: p,
|
|
26145
|
+
organization: h
|
|
26145
26146
|
}) {
|
|
26146
|
-
const { env:
|
|
26147
|
-
async function
|
|
26148
|
-
const
|
|
26147
|
+
const { env: g } = t, b = new URL(r), A = `${b.protocol}//${b.host}`;
|
|
26148
|
+
async function C(Y = "Login required") {
|
|
26149
|
+
const Z = Ve(t, {
|
|
26149
26150
|
type: qe.FAILED_SILENT_AUTH,
|
|
26150
|
-
description:
|
|
26151
|
+
description: Y
|
|
26151
26152
|
});
|
|
26152
|
-
return await t.env.data.logs.create(e.tenant.id,
|
|
26153
|
+
return await t.env.data.logs.create(e.tenant.id, Z), t.html(
|
|
26153
26154
|
Tu(
|
|
26154
|
-
|
|
26155
|
+
A,
|
|
26155
26156
|
JSON.stringify({
|
|
26156
26157
|
error: "login_required",
|
|
26157
|
-
error_description:
|
|
26158
|
+
error_description: Y,
|
|
26158
26159
|
state: i
|
|
26159
26160
|
})
|
|
26160
26161
|
)
|
|
26161
26162
|
);
|
|
26162
26163
|
}
|
|
26163
26164
|
if (!n || (n == null ? void 0 : n.expires_at) && new Date(n.expires_at) < /* @__PURE__ */ new Date() || (n == null ? void 0 : n.idle_expires_at) && new Date(n.idle_expires_at) < /* @__PURE__ */ new Date())
|
|
26164
|
-
return
|
|
26165
|
+
return C();
|
|
26165
26166
|
t.set("user_id", n.user_id);
|
|
26166
|
-
const O = await
|
|
26167
|
+
const O = await g.data.users.get(e.tenant.id, n.user_id);
|
|
26167
26168
|
if (!O)
|
|
26168
|
-
return console.error("User not found", n.user_id),
|
|
26169
|
+
return console.error("User not found", n.user_id), C("User not found");
|
|
26169
26170
|
t.set("username", O.email), t.set("connection", O.connection);
|
|
26170
|
-
const
|
|
26171
|
+
const x = await g.data.loginSessions.create(e.tenant.id, {
|
|
26172
|
+
csrf_token: Ke(),
|
|
26173
|
+
authParams: {
|
|
26174
|
+
client_id: e.client_id,
|
|
26175
|
+
audience: u,
|
|
26176
|
+
scope: d,
|
|
26177
|
+
state: i,
|
|
26178
|
+
nonce: s,
|
|
26179
|
+
response_type: p,
|
|
26180
|
+
redirect_uri: r,
|
|
26181
|
+
organization: h
|
|
26182
|
+
},
|
|
26183
|
+
expires_at: new Date(Date.now() + 5 * 60 * 1e3).toISOString(),
|
|
26184
|
+
// 5 minutes
|
|
26185
|
+
session_id: n.id,
|
|
26186
|
+
ip: t.var.ip,
|
|
26187
|
+
useragent: t.var.useragent
|
|
26188
|
+
}), z = {
|
|
26171
26189
|
client: e,
|
|
26172
26190
|
authParams: {
|
|
26173
26191
|
client_id: e.client_id,
|
|
@@ -26182,15 +26200,16 @@ async function PE({
|
|
|
26182
26200
|
},
|
|
26183
26201
|
user: O,
|
|
26184
26202
|
session_id: n.id
|
|
26185
|
-
},
|
|
26203
|
+
}, q = p === cn.CODE ? await i_(t, {
|
|
26186
26204
|
user: O,
|
|
26187
26205
|
client: e,
|
|
26188
|
-
authParams:
|
|
26189
|
-
login_id:
|
|
26190
|
-
}) : await yc(t,
|
|
26191
|
-
await
|
|
26206
|
+
authParams: z.authParams,
|
|
26207
|
+
login_id: x.id
|
|
26208
|
+
}) : await yc(t, z);
|
|
26209
|
+
await g.data.sessions.update(e.tenant.id, n.id, {
|
|
26192
26210
|
used_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
26193
26211
|
last_interaction_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
26212
|
+
login_session_id: x.id,
|
|
26194
26213
|
device: {
|
|
26195
26214
|
...n.device,
|
|
26196
26215
|
last_ip: t.var.ip || "",
|
|
@@ -26200,28 +26219,28 @@ async function PE({
|
|
|
26200
26219
|
Date.now() + mc * 1e3
|
|
26201
26220
|
).toISOString() : void 0
|
|
26202
26221
|
});
|
|
26203
|
-
const
|
|
26222
|
+
const M = Ve(t, {
|
|
26204
26223
|
type: qe.SUCCESS_SILENT_AUTH,
|
|
26205
26224
|
description: "Successful silent authentication"
|
|
26206
26225
|
});
|
|
26207
|
-
await t.env.data.logs.create(e.tenant.id,
|
|
26208
|
-
const
|
|
26209
|
-
|
|
26210
|
-
const
|
|
26226
|
+
await t.env.data.logs.create(e.tenant.id, M);
|
|
26227
|
+
const K = new Headers();
|
|
26228
|
+
K.set("Server-Timing", "cf-nel=0; no-cloudflare-insights=1");
|
|
26229
|
+
const W = wa(
|
|
26211
26230
|
e.tenant.id,
|
|
26212
26231
|
n.id,
|
|
26213
26232
|
t.req.header("host")
|
|
26214
26233
|
);
|
|
26215
|
-
return
|
|
26234
|
+
return K.set("set-cookie", W), t.html(
|
|
26216
26235
|
Tu(
|
|
26217
|
-
|
|
26236
|
+
A,
|
|
26218
26237
|
JSON.stringify({
|
|
26219
|
-
...
|
|
26238
|
+
...q,
|
|
26220
26239
|
state: i
|
|
26221
26240
|
})
|
|
26222
26241
|
),
|
|
26223
26242
|
{
|
|
26224
|
-
headers:
|
|
26243
|
+
headers: K
|
|
26225
26244
|
}
|
|
26226
26245
|
);
|
|
26227
26246
|
}
|
|
@@ -26313,9 +26332,9 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26313
26332
|
code_challenge: g,
|
|
26314
26333
|
code_challenge_method: b,
|
|
26315
26334
|
prompt: A,
|
|
26316
|
-
login_ticket:
|
|
26317
|
-
realm:
|
|
26318
|
-
auth0Client:
|
|
26335
|
+
login_ticket: C,
|
|
26336
|
+
realm: D,
|
|
26337
|
+
auth0Client: O,
|
|
26319
26338
|
login_hint: x,
|
|
26320
26339
|
ui_locales: z,
|
|
26321
26340
|
organization: q
|
|
@@ -26354,10 +26373,10 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26354
26373
|
message: `Invalid redirect URI - ${K.redirect_uri}`
|
|
26355
26374
|
});
|
|
26356
26375
|
}
|
|
26357
|
-
const
|
|
26376
|
+
const Y = Ii(
|
|
26358
26377
|
M.tenant.id,
|
|
26359
26378
|
t.req.header("cookie")
|
|
26360
|
-
),
|
|
26379
|
+
), Z = Y ? await e.data.sessions.get(M.tenant.id, Y) : void 0, Se = Z && !Z.revoked_at ? Z : void 0;
|
|
26361
26380
|
if (A == "none") {
|
|
26362
26381
|
if (!p)
|
|
26363
26382
|
throw new E(400, {
|
|
@@ -26374,7 +26393,8 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26374
26393
|
code_challenge_method: b,
|
|
26375
26394
|
code_challenge: g,
|
|
26376
26395
|
audience: l,
|
|
26377
|
-
scope: s
|
|
26396
|
+
scope: s,
|
|
26397
|
+
organization: q
|
|
26378
26398
|
});
|
|
26379
26399
|
}
|
|
26380
26400
|
if (M.connections.length === 1 && M.connections[0] && !BE.includes(M.connections[0].strategy || ""))
|
|
@@ -26386,20 +26406,20 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26386
26406
|
);
|
|
26387
26407
|
if (d && d !== "email")
|
|
26388
26408
|
return ug(t, M, d, K);
|
|
26389
|
-
if (
|
|
26409
|
+
if (C) {
|
|
26390
26410
|
const F = await jE(
|
|
26391
26411
|
t,
|
|
26392
26412
|
M.tenant.id,
|
|
26393
|
-
|
|
26413
|
+
C,
|
|
26394
26414
|
K,
|
|
26395
|
-
|
|
26415
|
+
D
|
|
26396
26416
|
);
|
|
26397
26417
|
return F instanceof Response ? F : t.json(F);
|
|
26398
26418
|
}
|
|
26399
26419
|
const j = await DE({
|
|
26400
26420
|
ctx: t,
|
|
26401
26421
|
client: M,
|
|
26402
|
-
auth0Client:
|
|
26422
|
+
auth0Client: O,
|
|
26403
26423
|
authParams: K,
|
|
26404
26424
|
session: Se || void 0,
|
|
26405
26425
|
connection: d,
|
|
@@ -26472,18 +26492,18 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26472
26492
|
t.req.header("cookie")
|
|
26473
26493
|
), p = d ? await e.data.sessions.get(a.tenant.id, d) : void 0, h = p && !p.revoked_at ? p : void 0, g = new URL(t.req.url);
|
|
26474
26494
|
t.var.custom_domain && (g.hostname = t.var.custom_domain);
|
|
26475
|
-
const { ip: b, auth0_client: A, useragent:
|
|
26495
|
+
const { ip: b, auth0_client: A, useragent: C } = t.var, D = Qn(A), O = await e.data.loginSessions.create(
|
|
26476
26496
|
a.tenant.id,
|
|
26477
26497
|
{
|
|
26478
26498
|
expires_at: new Date(
|
|
26479
26499
|
Date.now() + Mr * 1e3
|
|
26480
26500
|
).toISOString(),
|
|
26481
26501
|
authParams: l,
|
|
26482
|
-
csrf_token:
|
|
26502
|
+
csrf_token: Ke(),
|
|
26483
26503
|
authorization_url: g.toString(),
|
|
26484
26504
|
ip: b,
|
|
26485
|
-
useragent:
|
|
26486
|
-
auth0Client:
|
|
26505
|
+
useragent: C,
|
|
26506
|
+
auth0Client: D
|
|
26487
26507
|
}
|
|
26488
26508
|
);
|
|
26489
26509
|
if (h) {
|
|
@@ -26494,23 +26514,23 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
|
|
|
26494
26514
|
);
|
|
26495
26515
|
if ((z == null ? void 0 : z.email) !== i)
|
|
26496
26516
|
return t.redirect(
|
|
26497
|
-
`${ft(t.env)}login/identifier?state=${encodeURIComponent(
|
|
26517
|
+
`${ft(t.env)}login/identifier?state=${encodeURIComponent(O.id)}`
|
|
26498
26518
|
);
|
|
26499
26519
|
}
|
|
26500
|
-
if (await e.data.loginSessions.update(a.tenant.id,
|
|
26520
|
+
if (await e.data.loginSessions.update(a.tenant.id, O.id, {
|
|
26501
26521
|
session_id: h.id
|
|
26502
26522
|
}), s === "change-email") {
|
|
26503
26523
|
const z = new URL(
|
|
26504
26524
|
"/u/account/change-email",
|
|
26505
26525
|
t.req.url
|
|
26506
26526
|
);
|
|
26507
|
-
return z.searchParams.set("state",
|
|
26527
|
+
return z.searchParams.set("state", O.id), t.redirect(z.toString());
|
|
26508
26528
|
}
|
|
26509
26529
|
const x = new URL("/u/account", t.req.url);
|
|
26510
|
-
return x.searchParams.set("state",
|
|
26530
|
+
return x.searchParams.set("state", O.id), t.redirect(x.toString());
|
|
26511
26531
|
}
|
|
26512
26532
|
return t.redirect(
|
|
26513
|
-
`${ft(t.env)}login/identifier?state=${encodeURIComponent(
|
|
26533
|
+
`${ft(t.env)}login/identifier?state=${encodeURIComponent(O.id)}`
|
|
26514
26534
|
);
|
|
26515
26535
|
}
|
|
26516
26536
|
);
|
|
@@ -27083,7 +27103,7 @@ var q1 = { exports: {} };
|
|
|
27083
27103
|
})();
|
|
27084
27104
|
})(q1);
|
|
27085
27105
|
var s8 = q1.exports;
|
|
27086
|
-
const mn = /* @__PURE__ */ Um(s8), o8 = (t) => t === "small" ? "text-base" : t === "medium" ? "text-2xl" : t === "large" ? "text-3xl" : "",
|
|
27106
|
+
const mn = /* @__PURE__ */ Um(s8), o8 = (t) => t === "small" ? "text-base" : t === "medium" ? "text-2xl" : t === "large" ? "text-3xl" : "", We = ({ name: t, size: e, className: n = "" }) => {
|
|
27087
27107
|
const r = o8(e);
|
|
27088
27108
|
return /* @__PURE__ */ _("span", { className: mn(`uicon-${t}`, n, r) });
|
|
27089
27109
|
}, a8 = (t, e) => {
|
|
@@ -27172,7 +27192,7 @@ const u8 = (t, e) => {
|
|
|
27172
27192
|
] })
|
|
27173
27193
|
] }),
|
|
27174
27194
|
/* @__PURE__ */ _("div", { className: "flex w-full items-center px-6 pb-8 pt-4 justify-between", children: [
|
|
27175
|
-
/* @__PURE__ */ _("div", { className: "flex justify-center leading-[0]", children: /* @__PURE__ */ _("a", { href: "https://sesamy.com", target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ _(
|
|
27195
|
+
/* @__PURE__ */ _("div", { className: "flex justify-center leading-[0]", children: /* @__PURE__ */ _("a", { href: "https://sesamy.com", target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ _(We, { name: "sesamy", className: "text-xl text-white" }) }) }),
|
|
27176
27196
|
/* @__PURE__ */ _("div", { className: "flex justify-center space-x-2 text-xs text-white sm:justify-normal md:text-xs" })
|
|
27177
27197
|
] })
|
|
27178
27198
|
] }) })
|
|
@@ -27205,7 +27225,7 @@ const u8 = (t, e) => {
|
|
|
27205
27225
|
const e = p8(t);
|
|
27206
27226
|
return /* @__PURE__ */ _("div", { className: "relative inline-block leading-[0]", children: [
|
|
27207
27227
|
/* @__PURE__ */ _(
|
|
27208
|
-
|
|
27228
|
+
We,
|
|
27209
27229
|
{
|
|
27210
27230
|
className: mn("text-gray-200 dark:text-[#201a41]", {
|
|
27211
27231
|
[e]: e
|
|
@@ -27214,7 +27234,7 @@ const u8 = (t, e) => {
|
|
|
27214
27234
|
}
|
|
27215
27235
|
),
|
|
27216
27236
|
/* @__PURE__ */ _(
|
|
27217
|
-
|
|
27237
|
+
We,
|
|
27218
27238
|
{
|
|
27219
27239
|
className: mn("absolute inset-0 animate-spin text-primary", {
|
|
27220
27240
|
[e]: e
|
|
@@ -27385,10 +27405,10 @@ const u8 = (t, e) => {
|
|
|
27385
27405
|
client: s
|
|
27386
27406
|
}) => {
|
|
27387
27407
|
const a = s.connections.map(({ strategy: q }) => q), l = a.includes("email") || a.includes("Username-Password-Authentication"), u = a.includes("sms"), d = a.includes("facebook"), p = a.includes("google-oauth2"), h = a.includes("apple"), g = a.includes("vipps"), b = d || p || h || g, A = l || u;
|
|
27388
|
-
let
|
|
27389
|
-
const
|
|
27408
|
+
let C = "text", D = "username";
|
|
27409
|
+
const O = l && u ? "email_or_phone_placeholder" : l ? "email_placeholder" : "phone_placeholder";
|
|
27390
27410
|
let x = B.t(
|
|
27391
|
-
|
|
27411
|
+
O,
|
|
27392
27412
|
l && u ? "Email or Phone Number" : l ? "Email Address" : "Phone Number"
|
|
27393
27413
|
);
|
|
27394
27414
|
return /* @__PURE__ */ _(
|
|
@@ -27401,7 +27421,7 @@ const u8 = (t, e) => {
|
|
|
27401
27421
|
children: [
|
|
27402
27422
|
/* @__PURE__ */ _("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: B.t("welcome") }),
|
|
27403
27423
|
/* @__PURE__ */ _("div", { className: "mb-8 text-gray-300", children: B.t("login_description_template", {
|
|
27404
|
-
authMethod: B.t(
|
|
27424
|
+
authMethod: B.t(O, {
|
|
27405
27425
|
defaultValue: l && u ? "email or phone number" : l ? "email address" : "phone number"
|
|
27406
27426
|
}).toLocaleLowerCase(),
|
|
27407
27427
|
defaultValue: "Sign in with your {{authMethod}}"
|
|
@@ -27411,8 +27431,8 @@ const u8 = (t, e) => {
|
|
|
27411
27431
|
/* @__PURE__ */ _(
|
|
27412
27432
|
"input",
|
|
27413
27433
|
{
|
|
27414
|
-
type:
|
|
27415
|
-
name:
|
|
27434
|
+
type: C,
|
|
27435
|
+
name: D,
|
|
27416
27436
|
placeholder: x,
|
|
27417
27437
|
className: mn(
|
|
27418
27438
|
"mb-2 w-full rounded-lg border bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",
|
|
@@ -27428,7 +27448,7 @@ const u8 = (t, e) => {
|
|
|
27428
27448
|
t && /* @__PURE__ */ _(Bn, { children: t }),
|
|
27429
27449
|
/* @__PURE__ */ _(tt, { className: "sm:mt-4 !text-base", children: [
|
|
27430
27450
|
/* @__PURE__ */ _("span", { children: B.t("continue") }),
|
|
27431
|
-
/* @__PURE__ */ _(
|
|
27451
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
27432
27452
|
] })
|
|
27433
27453
|
] }),
|
|
27434
27454
|
A && b && /* @__PURE__ */ _("div", { className: "relative mb-5 block text-center text-gray-300 dark:text-gray-300", children: [
|
|
@@ -27443,7 +27463,7 @@ const u8 = (t, e) => {
|
|
|
27443
27463
|
text: B.t("continue_with", { provider: "Facebook" }),
|
|
27444
27464
|
canResize: !0,
|
|
27445
27465
|
icon: /* @__PURE__ */ _(
|
|
27446
|
-
|
|
27466
|
+
We,
|
|
27447
27467
|
{
|
|
27448
27468
|
className: "text-xl text-[#1196F5] sm:absolute sm:left-4 sm:top-1/2 sm:-translate-y-1/2 sm:text-2xl short:static short:left-auto short:top-auto short:translate-y-0 short:text-xl",
|
|
27449
27469
|
name: "facebook"
|
|
@@ -27469,7 +27489,7 @@ const u8 = (t, e) => {
|
|
|
27469
27489
|
text: B.t("continue_with", { provider: "Apple" }),
|
|
27470
27490
|
canResize: !0,
|
|
27471
27491
|
icon: /* @__PURE__ */ _(
|
|
27472
|
-
|
|
27492
|
+
We,
|
|
27473
27493
|
{
|
|
27474
27494
|
className: "text-xl text-black dark:text-white sm:absolute sm:left-4 sm:top-1/2 sm:-translate-y-1/2 sm:text-2xl short:static short:left-auto short:top-auto short:translate-y-0 short:text-xl",
|
|
27475
27495
|
name: "apple"
|
|
@@ -27573,7 +27593,7 @@ const u8 = (t, e) => {
|
|
|
27573
27593
|
r.username,
|
|
27574
27594
|
u
|
|
27575
27595
|
);
|
|
27576
|
-
if (!i.connections.find((
|
|
27596
|
+
if (!i.connections.find((D) => D.strategy === p) || !d)
|
|
27577
27597
|
return t.html(
|
|
27578
27598
|
/* @__PURE__ */ _(
|
|
27579
27599
|
eu,
|
|
@@ -27598,11 +27618,11 @@ const u8 = (t, e) => {
|
|
|
27598
27618
|
try {
|
|
27599
27619
|
await l3(t, i, t.env.data, d);
|
|
27600
27620
|
} catch {
|
|
27601
|
-
const
|
|
27621
|
+
const D = Ve(t, {
|
|
27602
27622
|
type: qe.FAILED_SIGNUP,
|
|
27603
27623
|
description: "Public signup is disabled"
|
|
27604
27624
|
});
|
|
27605
|
-
return on(t, t.env.data.logs.create(i.tenant.id,
|
|
27625
|
+
return on(t, t.env.data.logs.create(i.tenant.id, D)), t.html(
|
|
27606
27626
|
/* @__PURE__ */ _(
|
|
27607
27627
|
eu,
|
|
27608
27628
|
{
|
|
@@ -27645,17 +27665,17 @@ const u8 = (t, e) => {
|
|
|
27645
27665
|
login_id: s.id,
|
|
27646
27666
|
expires_at: new Date(Date.now() + ta).toISOString(),
|
|
27647
27667
|
redirect_uri: s.authParams.redirect_uri
|
|
27648
|
-
}),
|
|
27649
|
-
(
|
|
27668
|
+
}), C = i.connections.find(
|
|
27669
|
+
(D) => D.strategy === p
|
|
27650
27670
|
);
|
|
27651
|
-
if (!
|
|
27671
|
+
if (!C)
|
|
27652
27672
|
throw new E(400, {
|
|
27653
27673
|
message: B.t("connection_not_found", {
|
|
27654
27674
|
connection: p
|
|
27655
27675
|
})
|
|
27656
27676
|
});
|
|
27657
27677
|
return p === "email" && // This is different to how it works in auth0
|
|
27658
|
-
|
|
27678
|
+
C.options.authentication_method === "magic_link" ? await If(t, {
|
|
27659
27679
|
to: d,
|
|
27660
27680
|
code: A.code_id,
|
|
27661
27681
|
authParams: s.authParams
|
|
@@ -27832,35 +27852,35 @@ var Qs = "_hp", _8 = {
|
|
|
27832
27852
|
let b;
|
|
27833
27853
|
for (let A = 0; A < n.length; A++) {
|
|
27834
27854
|
Array.isArray(n[A]) && n.splice(A, 1, ...n[A].flat());
|
|
27835
|
-
let
|
|
27836
|
-
if (
|
|
27837
|
-
typeof
|
|
27838
|
-
let
|
|
27855
|
+
let C = A8(n[A]);
|
|
27856
|
+
if (C) {
|
|
27857
|
+
typeof C.tag == "function" && !C.tag[R1] && (Vi.length > 0 && (C[Je][2] = Vi.map((O) => [O, O.values.at(-1)])), (a = t[5]) != null && a.length && (C[Je][3] = t[5].at(-1)));
|
|
27858
|
+
let D;
|
|
27839
27859
|
if (h && h.length) {
|
|
27840
|
-
const
|
|
27841
|
-
zn(
|
|
27860
|
+
const O = h.findIndex(
|
|
27861
|
+
zn(C) ? (x) => zn(x) : C.key !== void 0 ? (x) => x.key === C.key && x.tag === C.tag : (x) => x.tag === C.tag
|
|
27842
27862
|
);
|
|
27843
|
-
|
|
27863
|
+
O !== -1 && (D = h[O], h.splice(O, 1));
|
|
27844
27864
|
}
|
|
27845
|
-
if (
|
|
27846
|
-
if (zn(
|
|
27847
|
-
|
|
27865
|
+
if (D)
|
|
27866
|
+
if (zn(C))
|
|
27867
|
+
D.t !== C.t && (D.t = C.t, D.d = !0), C = D;
|
|
27848
27868
|
else {
|
|
27849
|
-
const
|
|
27850
|
-
if (
|
|
27851
|
-
const x =
|
|
27852
|
-
|
|
27869
|
+
const O = D.pP = D.props;
|
|
27870
|
+
if (D.props = C.props, D.f || (D.f = C.f || e.f), typeof C.tag == "function") {
|
|
27871
|
+
const x = D[Je][2];
|
|
27872
|
+
D[Je][2] = C[Je][2] || [], D[Je][3] = C[Je][3], !D.f && ((D.o || D) === C.o || (u = (l = D.tag)[ME]) != null && u.call(l, O, D.props)) && x8(x, D[Je][2]) && (D.s = !0);
|
|
27853
27873
|
}
|
|
27854
|
-
|
|
27874
|
+
C = D;
|
|
27855
27875
|
}
|
|
27856
|
-
else if (!zn(
|
|
27857
|
-
const
|
|
27858
|
-
|
|
27876
|
+
else if (!zn(C) && Hi) {
|
|
27877
|
+
const O = ls(Hi);
|
|
27878
|
+
O && (C.n = O);
|
|
27859
27879
|
}
|
|
27860
|
-
if (!zn(
|
|
27861
|
-
for (let
|
|
27862
|
-
|
|
27863
|
-
b =
|
|
27880
|
+
if (!zn(C) && !C.s && (ap(t, C), delete C.f), g.push(C), b && !b.s && !C.s)
|
|
27881
|
+
for (let O = b; O && !zn(O); O = (d = O.vC) == null ? void 0 : d.at(-1))
|
|
27882
|
+
O.nN = C;
|
|
27883
|
+
b = C;
|
|
27864
27884
|
}
|
|
27865
27885
|
}
|
|
27866
27886
|
e.vR = r ? [...e.vC, ...h || []] : h || [], e.vC = g, r && delete e.pC;
|
|
@@ -27872,20 +27892,20 @@ var Qs = "_hp", _8 = {
|
|
|
27872
27892
|
}
|
|
27873
27893
|
const [g, b, A] = ((p = e[Je]) == null ? void 0 : p[3]) || [];
|
|
27874
27894
|
if (b) {
|
|
27875
|
-
const
|
|
27876
|
-
|
|
27877
|
-
const
|
|
27895
|
+
const C = () => fa([0, !1, t[2]], A), D = pa.get(A) || [];
|
|
27896
|
+
D.push(C), pa.set(A, D);
|
|
27897
|
+
const O = b(h, () => {
|
|
27878
27898
|
const x = pa.get(A);
|
|
27879
27899
|
if (x) {
|
|
27880
|
-
const z = x.indexOf(
|
|
27900
|
+
const z = x.indexOf(C);
|
|
27881
27901
|
if (z !== -1)
|
|
27882
|
-
return x.splice(z, 1),
|
|
27902
|
+
return x.splice(z, 1), C();
|
|
27883
27903
|
}
|
|
27884
27904
|
});
|
|
27885
|
-
if (
|
|
27905
|
+
if (O) {
|
|
27886
27906
|
if (t[0] === 1)
|
|
27887
27907
|
t[1] = !0;
|
|
27888
|
-
else if (ap(t, A, [
|
|
27908
|
+
else if (ap(t, A, [O]), (b.length === 1 || t !== g) && A.c) {
|
|
27889
27909
|
H1(A, A.c, !1);
|
|
27890
27910
|
return;
|
|
27891
27911
|
}
|
|
@@ -28083,7 +28103,7 @@ var Qs = "_hp", _8 = {
|
|
|
28083
28103
|
} else
|
|
28084
28104
|
A = s.querySelectorAll(t);
|
|
28085
28105
|
u = r ? u ?? "" : void 0, r && (p[ua] = u);
|
|
28086
|
-
const
|
|
28106
|
+
const C = Lf(
|
|
28087
28107
|
(x) => {
|
|
28088
28108
|
if (b.length > 0) {
|
|
28089
28109
|
let z = !1;
|
|
@@ -28109,10 +28129,10 @@ var Qs = "_hp", _8 = {
|
|
|
28109
28129
|
}
|
|
28110
28130
|
},
|
|
28111
28131
|
[u]
|
|
28112
|
-
),
|
|
28132
|
+
), D = Ff(e.ref, (x) => {
|
|
28113
28133
|
var M;
|
|
28114
28134
|
const z = b[0];
|
|
28115
|
-
if (n === 2 && (x.innerHTML = ""), (g || A) &&
|
|
28135
|
+
if (n === 2 && (x.innerHTML = ""), (g || A) && C(x), !l && !a)
|
|
28116
28136
|
return;
|
|
28117
28137
|
let q = hi[M = x.getAttribute(z)] || (hi[M] = new Promise(
|
|
28118
28138
|
(K, W) => {
|
|
@@ -28126,22 +28146,22 @@ var Qs = "_hp", _8 = {
|
|
|
28126
28146
|
const x = la[t][0];
|
|
28127
28147
|
if (e[x]) {
|
|
28128
28148
|
const z = e[x], q = hi[z] || (hi[z] = new Promise((M, K) => {
|
|
28129
|
-
|
|
28149
|
+
C(h), h.addEventListener("load", M), h.addEventListener("error", K);
|
|
28130
28150
|
}));
|
|
28131
28151
|
N8(q);
|
|
28132
28152
|
}
|
|
28133
28153
|
}
|
|
28134
|
-
const
|
|
28154
|
+
const O = {
|
|
28135
28155
|
tag: t,
|
|
28136
28156
|
type: t,
|
|
28137
28157
|
props: {
|
|
28138
28158
|
...p,
|
|
28139
|
-
ref:
|
|
28159
|
+
ref: D
|
|
28140
28160
|
},
|
|
28141
|
-
ref:
|
|
28161
|
+
ref: D
|
|
28142
28162
|
};
|
|
28143
|
-
return
|
|
28144
|
-
|
|
28163
|
+
return O.p = n, h && (O.e = h), E8(
|
|
28164
|
+
O,
|
|
28145
28165
|
s
|
|
28146
28166
|
);
|
|
28147
28167
|
}, O8 = (t) => {
|
|
@@ -28309,10 +28329,10 @@ const to = (t) => {
|
|
|
28309
28329
|
t && /* @__PURE__ */ _(Bn, { children: t }),
|
|
28310
28330
|
/* @__PURE__ */ _(tt, { className: "sm:mt-4 !text-base", children: [
|
|
28311
28331
|
/* @__PURE__ */ _("span", { children: B.t("login") }),
|
|
28312
|
-
/* @__PURE__ */ _(
|
|
28332
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
28313
28333
|
] }),
|
|
28314
28334
|
/* @__PURE__ */ _("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
|
|
28315
|
-
/* @__PURE__ */ _(
|
|
28335
|
+
/* @__PURE__ */ _(We, { className: "text-base", name: "info-bubble" }),
|
|
28316
28336
|
/* @__PURE__ */ _("div", { className: "text-sm text-gray-300 md:text-sm", children: B.t("sent_code_spam") })
|
|
28317
28337
|
] }),
|
|
28318
28338
|
d && /* @__PURE__ */ _("div", { className: "text-center mb-12", children: [
|
|
@@ -28530,7 +28550,7 @@ const to = (t) => {
|
|
|
28530
28550
|
/* @__PURE__ */ _("div", { className: "flex flex-1 flex-col justify-center", children: [
|
|
28531
28551
|
/* @__PURE__ */ _("p", { className: "mb-8 text-gray-300 text-lg", children: B.t("unverified_email") }),
|
|
28532
28552
|
/* @__PURE__ */ _("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
|
|
28533
|
-
/* @__PURE__ */ _(
|
|
28553
|
+
/* @__PURE__ */ _(We, { className: "text-base", name: "info-bubble" }),
|
|
28534
28554
|
/* @__PURE__ */ _("div", { className: "text-sm text-gray-300 md:text-sm", children: B.t("sent_code_spam") })
|
|
28535
28555
|
] }),
|
|
28536
28556
|
/* @__PURE__ */ _(_n, { state: i })
|
|
@@ -28635,7 +28655,7 @@ const ou = (t) => {
|
|
|
28635
28655
|
e && /* @__PURE__ */ _(Bn, { children: e }),
|
|
28636
28656
|
/* @__PURE__ */ _(tt, { className: "sm:mt-4 !text-base", children: [
|
|
28637
28657
|
/* @__PURE__ */ _("span", { children: B.t("login") }),
|
|
28638
|
-
/* @__PURE__ */ _(
|
|
28658
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
28639
28659
|
] })
|
|
28640
28660
|
] }),
|
|
28641
28661
|
/* @__PURE__ */ _(
|
|
@@ -29076,7 +29096,7 @@ const ou = (t) => {
|
|
|
29076
29096
|
}
|
|
29077
29097
|
)
|
|
29078
29098
|
);
|
|
29079
|
-
const
|
|
29099
|
+
const C = await I1(
|
|
29080
29100
|
t,
|
|
29081
29101
|
a,
|
|
29082
29102
|
{
|
|
@@ -29085,7 +29105,7 @@ const ou = (t) => {
|
|
|
29085
29105
|
},
|
|
29086
29106
|
l
|
|
29087
29107
|
);
|
|
29088
|
-
return On(t,
|
|
29108
|
+
return On(t, C);
|
|
29089
29109
|
} catch (u) {
|
|
29090
29110
|
let d = B.t("unknown_error_message"), p = 400;
|
|
29091
29111
|
return u instanceof E ? (d = u.message || d, p = u.status === 400 ? 400 : 500) : u instanceof vi ? d = u.message || d : u instanceof Error && (d = u.message || d, p = 500), t.html(
|
|
@@ -29349,7 +29369,7 @@ const ou = (t) => {
|
|
|
29349
29369
|
/* @__PURE__ */ _("div", { className: "flex flex-1 flex-col justify-center", children: [
|
|
29350
29370
|
/* @__PURE__ */ _("div", { children: B.t("forgot_password_email_sent") }),
|
|
29351
29371
|
/* @__PURE__ */ _("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
|
|
29352
|
-
/* @__PURE__ */ _(
|
|
29372
|
+
/* @__PURE__ */ _(We, { className: "text-base", name: "info-bubble" }),
|
|
29353
29373
|
/* @__PURE__ */ _("div", { className: "text-sm text-gray-300 md:text-sm", children: B.t("sent_code_spam") })
|
|
29354
29374
|
] })
|
|
29355
29375
|
] }),
|
|
@@ -29861,7 +29881,7 @@ const ou = (t) => {
|
|
|
29861
29881
|
a && /* @__PURE__ */ _(Bn, { children: a }),
|
|
29862
29882
|
/* @__PURE__ */ _(tt, { className: "sm:mt-4 !text-base", children: [
|
|
29863
29883
|
/* @__PURE__ */ _("span", { children: B.t("continue") }),
|
|
29864
|
-
/* @__PURE__ */ _(
|
|
29884
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
29865
29885
|
] }),
|
|
29866
29886
|
/* @__PURE__ */ _("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
|
|
29867
29887
|
/* @__PURE__ */ _("span", { className: "uicon-info-bubble text-base" }),
|
|
@@ -29994,7 +30014,7 @@ const ou = (t) => {
|
|
|
29994
30014
|
}
|
|
29995
30015
|
)
|
|
29996
30016
|
);
|
|
29997
|
-
const d = Ar(), p =
|
|
30017
|
+
const d = Ar(), p = Ke();
|
|
29998
30018
|
return await e.data.codes.create(a.tenant.id, {
|
|
29999
30019
|
code_id: p,
|
|
30000
30020
|
login_id: "",
|
|
@@ -30058,7 +30078,7 @@ const ou = (t) => {
|
|
|
30058
30078
|
className: "sm:mt-4 !text-base",
|
|
30059
30079
|
children: [
|
|
30060
30080
|
/* @__PURE__ */ _("span", { children: B.t("continue") }),
|
|
30061
|
-
/* @__PURE__ */ _(
|
|
30081
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
30062
30082
|
]
|
|
30063
30083
|
}
|
|
30064
30084
|
) })
|
|
@@ -30112,10 +30132,10 @@ const ou = (t) => {
|
|
|
30112
30132
|
t && /* @__PURE__ */ _(Bn, { children: t }),
|
|
30113
30133
|
/* @__PURE__ */ _(tt, { className: "sm:mt-4 !text-base", children: [
|
|
30114
30134
|
/* @__PURE__ */ _("span", { children: B.t("continue") }),
|
|
30115
|
-
/* @__PURE__ */ _(
|
|
30135
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
30116
30136
|
] }),
|
|
30117
30137
|
/* @__PURE__ */ _("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
|
|
30118
|
-
/* @__PURE__ */ _(
|
|
30138
|
+
/* @__PURE__ */ _(We, { className: "text-base", name: "info-bubble" }),
|
|
30119
30139
|
/* @__PURE__ */ _("div", { className: "text-sm text-gray-300 md:text-sm", children: B.t("sent_code_spam") })
|
|
30120
30140
|
] })
|
|
30121
30141
|
] }),
|
|
@@ -30577,7 +30597,7 @@ const ou = (t) => {
|
|
|
30577
30597
|
className: "text-base sm:mt-4 md:text-base",
|
|
30578
30598
|
children: /* @__PURE__ */ _("div", { className: "flex items-center space-x-2", children: [
|
|
30579
30599
|
/* @__PURE__ */ _("span", { children: B.t("email_validated_cta") }),
|
|
30580
|
-
/* @__PURE__ */ _(
|
|
30600
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
30581
30601
|
] })
|
|
30582
30602
|
}
|
|
30583
30603
|
) })
|
|
@@ -30639,7 +30659,7 @@ const ou = (t) => {
|
|
|
30639
30659
|
)).filter((A) => A.provider !== "auth2");
|
|
30640
30660
|
if (g.length > 0) {
|
|
30641
30661
|
const A = g.filter(
|
|
30642
|
-
(
|
|
30662
|
+
(C) => !C.linked_to
|
|
30643
30663
|
);
|
|
30644
30664
|
A.length > 1 && console.error("More than one primary user found for email", u), A.length === 0 && console.error("No primary user found for email", u), A.length === 1 && await r.data.users.update(i.tenant.id, d.user_id, {
|
|
30645
30665
|
linked_to: (b = A[0]) == null ? void 0 : b.user_id
|
|
@@ -30680,7 +30700,7 @@ const ou = (t) => {
|
|
|
30680
30700
|
}
|
|
30681
30701
|
) }),
|
|
30682
30702
|
/* @__PURE__ */ _("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
|
|
30683
|
-
/* @__PURE__ */ _(
|
|
30703
|
+
/* @__PURE__ */ _(We, { className: "text-base", name: "info-bubble" }),
|
|
30684
30704
|
/* @__PURE__ */ _("div", { className: "text-sm text-gray-300 md:text-sm", children: B.t("sent_code_spam") })
|
|
30685
30705
|
] })
|
|
30686
30706
|
] }),
|
|
@@ -30837,7 +30857,7 @@ const au = ({
|
|
|
30837
30857
|
className: "sm:mt-4 !text-base w-full",
|
|
30838
30858
|
children: [
|
|
30839
30859
|
/* @__PURE__ */ _("span", { children: u.config.text || "Continue" }),
|
|
30840
|
-
/* @__PURE__ */ _(
|
|
30860
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
30841
30861
|
]
|
|
30842
30862
|
}
|
|
30843
30863
|
),
|
|
@@ -30849,13 +30869,13 @@ const au = ({
|
|
|
30849
30869
|
disabled: !0,
|
|
30850
30870
|
children: [
|
|
30851
30871
|
/* @__PURE__ */ _("span", { children: u.config.text || "Continue" }),
|
|
30852
|
-
/* @__PURE__ */ _(
|
|
30872
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
30853
30873
|
]
|
|
30854
30874
|
}
|
|
30855
30875
|
)
|
|
30856
30876
|
] }) : /* @__PURE__ */ _(tt, { className: "sm:mt-4 !text-base w-full", children: [
|
|
30857
30877
|
/* @__PURE__ */ _("span", { children: u.config.text || "Continue" }),
|
|
30858
|
-
/* @__PURE__ */ _(
|
|
30878
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
30859
30879
|
] }) })
|
|
30860
30880
|
] })
|
|
30861
30881
|
] }) })
|
|
@@ -30937,16 +30957,16 @@ const au = ({
|
|
|
30937
30957
|
try {
|
|
30938
30958
|
if (l = await t.env.data.forms.get(a.tenant.id, e), !l) throw new E(404, { message: "Form not found" });
|
|
30939
30959
|
if (u = (l.nodes || []).find(
|
|
30940
|
-
(
|
|
30960
|
+
(O) => O.id === n && O.type === "STEP"
|
|
30941
30961
|
), !u)
|
|
30942
30962
|
throw new E(404, {
|
|
30943
30963
|
message: "Node not found or not a STEP node"
|
|
30944
30964
|
});
|
|
30945
30965
|
d = "components" in u.config ? u.config.components : [];
|
|
30946
30966
|
const p = await t.req.parseBody(), h = [], g = {};
|
|
30947
|
-
for (const
|
|
30948
|
-
if (
|
|
30949
|
-
const x =
|
|
30967
|
+
for (const O of d)
|
|
30968
|
+
if (O.type === "LEGAL") {
|
|
30969
|
+
const x = O.id, z = !!O.required, q = p[x];
|
|
30950
30970
|
z && (!q || q === "") ? h.push(x) : typeof q == "string" && (g[x] = q);
|
|
30951
30971
|
}
|
|
30952
30972
|
if (h.length > 0)
|
|
@@ -30977,16 +30997,16 @@ const au = ({
|
|
|
30977
30997
|
);
|
|
30978
30998
|
if (!A || !A.user_id)
|
|
30979
30999
|
throw new Error("Session expired");
|
|
30980
|
-
const
|
|
31000
|
+
const C = await t.env.data.users.get(
|
|
30981
31001
|
t.var.tenant_id,
|
|
30982
31002
|
A.user_id
|
|
30983
31003
|
);
|
|
30984
|
-
if (!
|
|
31004
|
+
if (!C)
|
|
30985
31005
|
throw new Error("Session expired");
|
|
30986
31006
|
return await On(t, {
|
|
30987
31007
|
authParams: b.authParams,
|
|
30988
31008
|
client: a,
|
|
30989
|
-
user:
|
|
31009
|
+
user: C,
|
|
30990
31010
|
loginSession: b,
|
|
30991
31011
|
skipHooks: !0
|
|
30992
31012
|
});
|
|
@@ -31039,13 +31059,13 @@ const lm = (t) => {
|
|
|
31039
31059
|
"Continue as ",
|
|
31040
31060
|
i.email
|
|
31041
31061
|
] }),
|
|
31042
|
-
/* @__PURE__ */ _(
|
|
31062
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
31043
31063
|
] })
|
|
31044
31064
|
}
|
|
31045
31065
|
),
|
|
31046
31066
|
/* @__PURE__ */ _("details", { className: "mb-4", children: [
|
|
31047
31067
|
/* @__PURE__ */ _("summary", { className: "cursor-pointer text-primary hover:underline mb-4 select-none", children: [
|
|
31048
|
-
/* @__PURE__ */ _(
|
|
31068
|
+
/* @__PURE__ */ _(We, { className: "text-xs inline mr-1", name: "arrow-right" }),
|
|
31049
31069
|
"Advanced Options"
|
|
31050
31070
|
] }),
|
|
31051
31071
|
/* @__PURE__ */ _("div", { className: "mt-4 p-4 border border-gray-200 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-700", children: /* @__PURE__ */ _(
|
|
@@ -31076,7 +31096,7 @@ const lm = (t) => {
|
|
|
31076
31096
|
e && /* @__PURE__ */ _(Bn, { children: e }),
|
|
31077
31097
|
/* @__PURE__ */ _(tt, { variant: "secondary", className: "w-full !text-base", children: [
|
|
31078
31098
|
/* @__PURE__ */ _("span", { children: "Impersonate User" }),
|
|
31079
|
-
/* @__PURE__ */ _(
|
|
31099
|
+
/* @__PURE__ */ _(We, { className: "text-xs", name: "arrow-right" })
|
|
31080
31100
|
] })
|
|
31081
31101
|
]
|
|
31082
31102
|
}
|
|
@@ -31716,14 +31736,14 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
31716
31736
|
}, g = function(c, f, y) {
|
|
31717
31737
|
return c + y + f;
|
|
31718
31738
|
}, b = Array.prototype.concat, A = 32767;
|
|
31719
|
-
function
|
|
31739
|
+
function C(c) {
|
|
31720
31740
|
for (var f = [], y = 0; y < c.length; y += A) {
|
|
31721
31741
|
var $ = c.slice(y, y + A);
|
|
31722
31742
|
f = b.apply(f, $);
|
|
31723
31743
|
}
|
|
31724
31744
|
return f;
|
|
31725
31745
|
}
|
|
31726
|
-
function
|
|
31746
|
+
function D(c, f) {
|
|
31727
31747
|
for (var y = Object(c), $ = 1; $ < arguments.length; $++) {
|
|
31728
31748
|
var v = arguments[$];
|
|
31729
31749
|
if (v != null)
|
|
@@ -31732,7 +31752,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
31732
31752
|
}
|
|
31733
31753
|
return y;
|
|
31734
31754
|
}
|
|
31735
|
-
var
|
|
31755
|
+
var O = {
|
|
31736
31756
|
ELEMENT_NODE: 1,
|
|
31737
31757
|
ATTRIBUTE_NODE: 2,
|
|
31738
31758
|
TEXT_NODE: 3,
|
|
@@ -31749,7 +31769,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
31749
31769
|
}
|
|
31750
31770
|
x.prototype.init = function() {
|
|
31751
31771
|
this.reduceActions = [], this.reduceActions[3] = function(c) {
|
|
31752
|
-
return new
|
|
31772
|
+
return new Z(c[0], c[2]);
|
|
31753
31773
|
}, this.reduceActions[5] = function(c) {
|
|
31754
31774
|
return new Se(c[0], c[2]);
|
|
31755
31775
|
}, this.reduceActions[7] = function(c) {
|
|
@@ -32496,24 +32516,24 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32496
32516
|
return this.rhs.evaluate(c).number().negate();
|
|
32497
32517
|
}, W.prototype.toString = function() {
|
|
32498
32518
|
return "-" + this.rhs.toString();
|
|
32499
|
-
},
|
|
32500
|
-
function
|
|
32519
|
+
}, Y.prototype = new M(), Y.prototype.constructor = Y, Y.superclass = M.prototype;
|
|
32520
|
+
function Y(c, f) {
|
|
32501
32521
|
arguments.length > 0 && this.init(c, f);
|
|
32502
32522
|
}
|
|
32503
|
-
|
|
32523
|
+
Y.prototype.init = function(c, f) {
|
|
32504
32524
|
this.lhs = c, this.rhs = f;
|
|
32505
|
-
},
|
|
32506
|
-
function
|
|
32525
|
+
}, Z.prototype = new Y(), Z.prototype.constructor = Z, Z.superclass = Y.prototype;
|
|
32526
|
+
function Z(c, f) {
|
|
32507
32527
|
arguments.length > 0 && this.init(c, f);
|
|
32508
32528
|
}
|
|
32509
|
-
|
|
32510
|
-
|
|
32511
|
-
},
|
|
32529
|
+
Z.prototype.init = function(c, f) {
|
|
32530
|
+
Z.superclass.init.call(this, c, f);
|
|
32531
|
+
}, Z.prototype.toString = function() {
|
|
32512
32532
|
return "(" + this.lhs.toString() + " or " + this.rhs.toString() + ")";
|
|
32513
|
-
},
|
|
32533
|
+
}, Z.prototype.evaluate = function(c) {
|
|
32514
32534
|
var f = this.lhs.evaluate(c).bool();
|
|
32515
32535
|
return f.booleanValue() ? f : this.rhs.evaluate(c).bool();
|
|
32516
|
-
}, Se.prototype = new
|
|
32536
|
+
}, Se.prototype = new Y(), Se.prototype.constructor = Se, Se.superclass = Y.prototype;
|
|
32517
32537
|
function Se(c, f) {
|
|
32518
32538
|
arguments.length > 0 && this.init(c, f);
|
|
32519
32539
|
}
|
|
@@ -32524,7 +32544,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32524
32544
|
}, Se.prototype.evaluate = function(c) {
|
|
32525
32545
|
var f = this.lhs.evaluate(c).bool();
|
|
32526
32546
|
return f.booleanValue() ? this.rhs.evaluate(c).bool() : f;
|
|
32527
|
-
}, j.prototype = new
|
|
32547
|
+
}, j.prototype = new Y(), j.prototype.constructor = j, j.superclass = Y.prototype;
|
|
32528
32548
|
function j(c, f) {
|
|
32529
32549
|
arguments.length > 0 && this.init(c, f);
|
|
32530
32550
|
}
|
|
@@ -32534,7 +32554,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32534
32554
|
return "(" + this.lhs.toString() + " = " + this.rhs.toString() + ")";
|
|
32535
32555
|
}, j.prototype.evaluate = function(c) {
|
|
32536
32556
|
return this.lhs.evaluate(c).equals(this.rhs.evaluate(c));
|
|
32537
|
-
}, F.prototype = new
|
|
32557
|
+
}, F.prototype = new Y(), F.prototype.constructor = F, F.superclass = Y.prototype;
|
|
32538
32558
|
function F(c, f) {
|
|
32539
32559
|
arguments.length > 0 && this.init(c, f);
|
|
32540
32560
|
}
|
|
@@ -32544,7 +32564,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32544
32564
|
return "(" + this.lhs.toString() + " != " + this.rhs.toString() + ")";
|
|
32545
32565
|
}, F.prototype.evaluate = function(c) {
|
|
32546
32566
|
return this.lhs.evaluate(c).notequal(this.rhs.evaluate(c));
|
|
32547
|
-
}, P.prototype = new
|
|
32567
|
+
}, P.prototype = new Y(), P.prototype.constructor = P, P.superclass = Y.prototype;
|
|
32548
32568
|
function P(c, f) {
|
|
32549
32569
|
arguments.length > 0 && this.init(c, f);
|
|
32550
32570
|
}
|
|
@@ -32554,7 +32574,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32554
32574
|
return this.lhs.evaluate(c).lessthan(this.rhs.evaluate(c));
|
|
32555
32575
|
}, P.prototype.toString = function() {
|
|
32556
32576
|
return "(" + this.lhs.toString() + " < " + this.rhs.toString() + ")";
|
|
32557
|
-
}, N.prototype = new
|
|
32577
|
+
}, N.prototype = new Y(), N.prototype.constructor = N, N.superclass = Y.prototype;
|
|
32558
32578
|
function N(c, f) {
|
|
32559
32579
|
arguments.length > 0 && this.init(c, f);
|
|
32560
32580
|
}
|
|
@@ -32564,7 +32584,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32564
32584
|
return this.lhs.evaluate(c).greaterthan(this.rhs.evaluate(c));
|
|
32565
32585
|
}, N.prototype.toString = function() {
|
|
32566
32586
|
return "(" + this.lhs.toString() + " > " + this.rhs.toString() + ")";
|
|
32567
|
-
}, k.prototype = new
|
|
32587
|
+
}, k.prototype = new Y(), k.prototype.constructor = k, k.superclass = Y.prototype;
|
|
32568
32588
|
function k(c, f) {
|
|
32569
32589
|
arguments.length > 0 && this.init(c, f);
|
|
32570
32590
|
}
|
|
@@ -32574,7 +32594,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32574
32594
|
return this.lhs.evaluate(c).lessthanorequal(this.rhs.evaluate(c));
|
|
32575
32595
|
}, k.prototype.toString = function() {
|
|
32576
32596
|
return "(" + this.lhs.toString() + " <= " + this.rhs.toString() + ")";
|
|
32577
|
-
}, L.prototype = new
|
|
32597
|
+
}, L.prototype = new Y(), L.prototype.constructor = L, L.superclass = Y.prototype;
|
|
32578
32598
|
function L(c, f) {
|
|
32579
32599
|
arguments.length > 0 && this.init(c, f);
|
|
32580
32600
|
}
|
|
@@ -32584,7 +32604,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32584
32604
|
return this.lhs.evaluate(c).greaterthanorequal(this.rhs.evaluate(c));
|
|
32585
32605
|
}, L.prototype.toString = function() {
|
|
32586
32606
|
return "(" + this.lhs.toString() + " >= " + this.rhs.toString() + ")";
|
|
32587
|
-
}, G.prototype = new
|
|
32607
|
+
}, G.prototype = new Y(), G.prototype.constructor = G, G.superclass = Y.prototype;
|
|
32588
32608
|
function G(c, f) {
|
|
32589
32609
|
arguments.length > 0 && this.init(c, f);
|
|
32590
32610
|
}
|
|
@@ -32594,7 +32614,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32594
32614
|
return this.lhs.evaluate(c).number().plus(this.rhs.evaluate(c).number());
|
|
32595
32615
|
}, G.prototype.toString = function() {
|
|
32596
32616
|
return "(" + this.lhs.toString() + " + " + this.rhs.toString() + ")";
|
|
32597
|
-
}, pe.prototype = new
|
|
32617
|
+
}, pe.prototype = new Y(), pe.prototype.constructor = pe, pe.superclass = Y.prototype;
|
|
32598
32618
|
function pe(c, f) {
|
|
32599
32619
|
arguments.length > 0 && this.init(c, f);
|
|
32600
32620
|
}
|
|
@@ -32604,7 +32624,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32604
32624
|
return this.lhs.evaluate(c).number().minus(this.rhs.evaluate(c).number());
|
|
32605
32625
|
}, pe.prototype.toString = function() {
|
|
32606
32626
|
return "(" + this.lhs.toString() + " - " + this.rhs.toString() + ")";
|
|
32607
|
-
}, se.prototype = new
|
|
32627
|
+
}, se.prototype = new Y(), se.prototype.constructor = se, se.superclass = Y.prototype;
|
|
32608
32628
|
function se(c, f) {
|
|
32609
32629
|
arguments.length > 0 && this.init(c, f);
|
|
32610
32630
|
}
|
|
@@ -32614,7 +32634,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32614
32634
|
return this.lhs.evaluate(c).number().multiply(this.rhs.evaluate(c).number());
|
|
32615
32635
|
}, se.prototype.toString = function() {
|
|
32616
32636
|
return "(" + this.lhs.toString() + " * " + this.rhs.toString() + ")";
|
|
32617
|
-
}, $e.prototype = new
|
|
32637
|
+
}, $e.prototype = new Y(), $e.prototype.constructor = $e, $e.superclass = Y.prototype;
|
|
32618
32638
|
function $e(c, f) {
|
|
32619
32639
|
arguments.length > 0 && this.init(c, f);
|
|
32620
32640
|
}
|
|
@@ -32624,7 +32644,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32624
32644
|
return this.lhs.evaluate(c).number().div(this.rhs.evaluate(c).number());
|
|
32625
32645
|
}, $e.prototype.toString = function() {
|
|
32626
32646
|
return "(" + this.lhs.toString() + " div " + this.rhs.toString() + ")";
|
|
32627
|
-
}, Ce.prototype = new
|
|
32647
|
+
}, Ce.prototype = new Y(), Ce.prototype.constructor = Ce, Ce.superclass = Y.prototype;
|
|
32628
32648
|
function Ce(c, f) {
|
|
32629
32649
|
arguments.length > 0 && this.init(c, f);
|
|
32630
32650
|
}
|
|
@@ -32634,7 +32654,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32634
32654
|
return this.lhs.evaluate(c).number().mod(this.rhs.evaluate(c).number());
|
|
32635
32655
|
}, Ce.prototype.toString = function() {
|
|
32636
32656
|
return "(" + this.lhs.toString() + " mod " + this.rhs.toString() + ")";
|
|
32637
|
-
}, ee.prototype = new
|
|
32657
|
+
}, ee.prototype = new Y(), ee.prototype.constructor = ee, ee.superclass = Y.prototype;
|
|
32638
32658
|
function ee(c, f) {
|
|
32639
32659
|
arguments.length > 0 && this.init(c, f);
|
|
32640
32660
|
}
|
|
@@ -32674,7 +32694,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32674
32694
|
);
|
|
32675
32695
|
}, we.getRoot = function(c, f) {
|
|
32676
32696
|
var y = f[0];
|
|
32677
|
-
if (y.nodeType ===
|
|
32697
|
+
if (y.nodeType === O.DOCUMENT_NODE)
|
|
32678
32698
|
return y;
|
|
32679
32699
|
if (c.virtualRoot)
|
|
32680
32700
|
return c.virtualRoot;
|
|
@@ -32691,11 +32711,11 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32691
32711
|
if (f.contextNode === f.virtualRoot)
|
|
32692
32712
|
break;
|
|
32693
32713
|
var v;
|
|
32694
|
-
for (f.contextNode.nodeType ==
|
|
32714
|
+
for (f.contextNode.nodeType == O.ATTRIBUTE_NODE ? v = we.getOwnerElement(f.contextNode) : v = f.contextNode.parentNode; v != null && (c.nodeTest.matches(v, f) && $.push(v), v !== f.virtualRoot); )
|
|
32695
32715
|
v = v.parentNode;
|
|
32696
32716
|
break;
|
|
32697
32717
|
case te.ANCESTORORSELF:
|
|
32698
|
-
for (var v = f.contextNode; v != null && (c.nodeTest.matches(v, f) && $.push(v), v !== f.virtualRoot); v = v.nodeType ==
|
|
32718
|
+
for (var v = f.contextNode; v != null && (c.nodeTest.matches(v, f) && $.push(v), v !== f.virtualRoot); v = v.nodeType == O.ATTRIBUTE_NODE ? we.getOwnerElement(v) : v.parentNode)
|
|
32699
32719
|
;
|
|
32700
32720
|
break;
|
|
32701
32721
|
case te.ATTRIBUTE:
|
|
@@ -32726,7 +32746,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32726
32746
|
break;
|
|
32727
32747
|
var Ue = [];
|
|
32728
32748
|
f.contextNode.firstChild != null ? Ue.unshift(f.contextNode.firstChild) : Ue.unshift(f.contextNode.nextSibling);
|
|
32729
|
-
for (var v = f.contextNode.parentNode; v != null && v.nodeType !=
|
|
32749
|
+
for (var v = f.contextNode.parentNode; v != null && v.nodeType != O.DOCUMENT_NODE && v !== f.virtualRoot; v = v.parentNode)
|
|
32730
32750
|
Ue.unshift(v.nextSibling);
|
|
32731
32751
|
do
|
|
32732
32752
|
for (var v = Ue.pop(); v != null; )
|
|
@@ -32741,9 +32761,9 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32741
32761
|
break;
|
|
32742
32762
|
case te.NAMESPACE:
|
|
32743
32763
|
var ye = {};
|
|
32744
|
-
if (f.contextNode.nodeType ==
|
|
32764
|
+
if (f.contextNode.nodeType == O.ELEMENT_NODE) {
|
|
32745
32765
|
ye.xml = z.XML_NAMESPACE_URI, ye.xmlns = z.XMLNS_NAMESPACE_URI;
|
|
32746
|
-
for (var v = f.contextNode; v != null && v.nodeType ==
|
|
32766
|
+
for (var v = f.contextNode; v != null && v.nodeType == O.ELEMENT_NODE; v = v.parentNode)
|
|
32747
32767
|
for (var X = 0; X < v.attributes.length; X++) {
|
|
32748
32768
|
var Ie = v.attributes.item(X), oe = String(Ie.name);
|
|
32749
32769
|
if (oe == "xmlns")
|
|
@@ -32760,7 +32780,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32760
32780
|
}
|
|
32761
32781
|
break;
|
|
32762
32782
|
case te.PARENT:
|
|
32763
|
-
v = null, f.contextNode !== f.virtualRoot && (f.contextNode.nodeType ==
|
|
32783
|
+
v = null, f.contextNode !== f.virtualRoot && (f.contextNode.nodeType == O.ATTRIBUTE_NODE ? v = we.getOwnerElement(f.contextNode) : v = f.contextNode.parentNode), v != null && c.nodeTest.matches(v, f) && $.push(v);
|
|
32764
32784
|
break;
|
|
32765
32785
|
case te.PRECEDING:
|
|
32766
32786
|
var Ue;
|
|
@@ -32792,7 +32812,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32792
32812
|
);
|
|
32793
32813
|
}
|
|
32794
32814
|
function Xe(c, f, y) {
|
|
32795
|
-
return
|
|
32815
|
+
return C(
|
|
32796
32816
|
a(
|
|
32797
32817
|
Fe.bind(null, y, c),
|
|
32798
32818
|
f
|
|
@@ -32823,7 +32843,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32823
32843
|
var $ = c.absolute ? [we.getRoot(f, y)] : y;
|
|
32824
32844
|
return we.applySteps(c.steps, f, $);
|
|
32825
32845
|
}, we.prototype.evaluate = function(c) {
|
|
32826
|
-
var f =
|
|
32846
|
+
var f = D(new Gt(), c), y = this.applyFilter(c, f);
|
|
32827
32847
|
if ("nonNodes" in y)
|
|
32828
32848
|
return y.nonNodes;
|
|
32829
32849
|
var $ = new ce();
|
|
@@ -32852,7 +32872,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32852
32872
|
return c.selectSingleNode("..");
|
|
32853
32873
|
} catch {
|
|
32854
32874
|
}
|
|
32855
|
-
for (var f = c.nodeType ==
|
|
32875
|
+
for (var f = c.nodeType == O.DOCUMENT_NODE ? c : c.ownerDocument, y = f.getElementsByTagName("*"), $ = 0; $ < y.length; $++)
|
|
32856
32876
|
for (var v = y.item($), S = v.attributes, X = 0; X < S.length; X++) {
|
|
32857
32877
|
var ye = S.item(X);
|
|
32858
32878
|
if (ye === c)
|
|
@@ -32908,7 +32928,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32908
32928
|
}, ae.makeNodeTestType = function(c, f, y) {
|
|
32909
32929
|
var $ = y || function() {
|
|
32910
32930
|
};
|
|
32911
|
-
return $.prototype = new ae(c), $.prototype.constructor = $,
|
|
32931
|
+
return $.prototype = new ae(c), $.prototype.constructor = $, D($.prototype, f), $;
|
|
32912
32932
|
}, ae.makeNodeTypeTest = function(c, f, y) {
|
|
32913
32933
|
return new (ae.makeNodeTestType(c, {
|
|
32914
32934
|
matches: ae.isNodeType(f),
|
|
@@ -32946,8 +32966,8 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32946
32966
|
matches: function(c, f) {
|
|
32947
32967
|
return ae.isNodeType(
|
|
32948
32968
|
[
|
|
32949
|
-
|
|
32950
|
-
|
|
32969
|
+
O.ELEMENT_NODE,
|
|
32970
|
+
O.ATTRIBUTE_NODE,
|
|
32951
32971
|
Bt.XPATH_NAMESPACE_NODE
|
|
32952
32972
|
]
|
|
32953
32973
|
)(c) && ae.nameSpaceMatches(this.prefix, f, c) && ae.localNameMatches(this.localName, f, c);
|
|
@@ -32963,7 +32983,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32963
32983
|
), ae.PITest = ae.makeNodeTestType(ae.PI, {
|
|
32964
32984
|
matches: function(c, f) {
|
|
32965
32985
|
return ae.isNodeType(
|
|
32966
|
-
[
|
|
32986
|
+
[O.PROCESSING_INSTRUCTION_NODE]
|
|
32967
32987
|
)(c) && (c.target || c.nodeName) === this.name;
|
|
32968
32988
|
},
|
|
32969
32989
|
toString: function() {
|
|
@@ -32974,37 +32994,37 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
32974
32994
|
}), ae.nameTestAny = ae.makeNodeTypeTest(
|
|
32975
32995
|
ae.NAMETESTANY,
|
|
32976
32996
|
[
|
|
32977
|
-
|
|
32978
|
-
|
|
32997
|
+
O.ELEMENT_NODE,
|
|
32998
|
+
O.ATTRIBUTE_NODE,
|
|
32979
32999
|
Bt.XPATH_NAMESPACE_NODE
|
|
32980
33000
|
],
|
|
32981
33001
|
"*"
|
|
32982
33002
|
), ae.textTest = ae.makeNodeTypeTest(
|
|
32983
33003
|
ae.TEXT,
|
|
32984
33004
|
[
|
|
32985
|
-
|
|
32986
|
-
|
|
33005
|
+
O.TEXT_NODE,
|
|
33006
|
+
O.CDATA_SECTION_NODE
|
|
32987
33007
|
],
|
|
32988
33008
|
"text()"
|
|
32989
33009
|
), ae.commentTest = ae.makeNodeTypeTest(
|
|
32990
33010
|
ae.COMMENT,
|
|
32991
|
-
[
|
|
33011
|
+
[O.COMMENT_NODE],
|
|
32992
33012
|
"comment()"
|
|
32993
33013
|
), ae.nodeTest = ae.makeNodeTypeTest(
|
|
32994
33014
|
ae.NODE,
|
|
32995
33015
|
[
|
|
32996
|
-
|
|
32997
|
-
|
|
32998
|
-
|
|
32999
|
-
|
|
33000
|
-
|
|
33001
|
-
|
|
33002
|
-
|
|
33016
|
+
O.ELEMENT_NODE,
|
|
33017
|
+
O.ATTRIBUTE_NODE,
|
|
33018
|
+
O.TEXT_NODE,
|
|
33019
|
+
O.CDATA_SECTION_NODE,
|
|
33020
|
+
O.PROCESSING_INSTRUCTION_NODE,
|
|
33021
|
+
O.COMMENT_NODE,
|
|
33022
|
+
O.DOCUMENT_NODE
|
|
33003
33023
|
],
|
|
33004
33024
|
"node()"
|
|
33005
33025
|
), ae.anyPiTest = ae.makeNodeTypeTest(
|
|
33006
33026
|
ae.PI,
|
|
33007
|
-
[
|
|
33027
|
+
[O.PROCESSING_INSTRUCTION_NODE],
|
|
33008
33028
|
"processing-instruction()"
|
|
33009
33029
|
), rt.prototype = new M(), rt.prototype.constructor = rt, rt.superclass = M.prototype;
|
|
33010
33030
|
function rt(c) {
|
|
@@ -33284,7 +33304,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33284
33304
|
}, ce.prototype.nodeset = function() {
|
|
33285
33305
|
return this;
|
|
33286
33306
|
}, ce.prototype.stringForNode = function(c) {
|
|
33287
|
-
return c.nodeType ==
|
|
33307
|
+
return c.nodeType == O.DOCUMENT_NODE || c.nodeType == O.ELEMENT_NODE || c.nodeType === O.DOCUMENT_FRAGMENT_NODE ? this.stringForContainerNode(c) : c.nodeType === O.ATTRIBUTE_NODE ? c.value || c.nodeValue : c.isNamespaceNode ? c.namespace : c.nodeValue;
|
|
33288
33308
|
}, ce.prototype.stringForContainerNode = function(c) {
|
|
33289
33309
|
for (var f = "", y = c.firstChild; y != null; y = y.nextSibling) {
|
|
33290
33310
|
var $ = y.nodeType;
|
|
@@ -33363,7 +33383,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33363
33383
|
this.variableResolver = c ?? new bn(), this.namespaceResolver = f ?? new nn(), this.functionResolver = y ?? new Et();
|
|
33364
33384
|
}
|
|
33365
33385
|
Gt.prototype.extend = function(c) {
|
|
33366
|
-
return
|
|
33386
|
+
return D(new Gt(), this, c);
|
|
33367
33387
|
}, bn.prototype = new Object(), bn.prototype.constructor = bn, bn.superclass = Object.prototype;
|
|
33368
33388
|
function bn() {
|
|
33369
33389
|
}
|
|
@@ -33392,7 +33412,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33392
33412
|
return z.XML_NAMESPACE_URI;
|
|
33393
33413
|
if (c == "xmlns")
|
|
33394
33414
|
return z.XMLNS_NAMESPACE_URI;
|
|
33395
|
-
for (f.nodeType ==
|
|
33415
|
+
for (f.nodeType == O.DOCUMENT_NODE ? f = f.documentElement : f.nodeType == O.ATTRIBUTE_NODE ? f = we.getOwnerElement(f) : f.nodeType != O.ELEMENT_NODE && (f = f.parentNode); f != null && f.nodeType == O.ELEMENT_NODE; ) {
|
|
33396
33416
|
for (var y = f.attributes, $ = 0; $ < y.length; $++) {
|
|
33397
33417
|
var v = y.item($), S = v.name || v.nodeName;
|
|
33398
33418
|
if (S === "xmlns" && c === "" || S === "xmlns:" + c)
|
|
@@ -33421,7 +33441,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33421
33441
|
if (arguments.length != 2)
|
|
33422
33442
|
throw new Error("Function id expects (object)");
|
|
33423
33443
|
f = arguments[1].evaluate(c), le.instance_of(f, ce) ? f = f.toArray().join(" ") : f = f.stringValue();
|
|
33424
|
-
for (var y = f.split(/[\x0d\x0a\x09\x20]+/), $ = new ce(), v = c.contextNode.nodeType ==
|
|
33444
|
+
for (var y = f.split(/[\x0d\x0a\x09\x20]+/), $ = new ce(), v = c.contextNode.nodeType == O.DOCUMENT_NODE ? c.contextNode : c.contextNode.ownerDocument, S = 0; S < y.length; S++) {
|
|
33425
33445
|
var X;
|
|
33426
33446
|
v.getElementById ? X = v.getElementById(y[S]) : X = le.getElementById(v, y[S]), X != null && $.add(X);
|
|
33427
33447
|
}
|
|
@@ -33459,7 +33479,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33459
33479
|
f = arguments[1].evaluate(c).first();
|
|
33460
33480
|
else
|
|
33461
33481
|
throw new Error("Function name expects (node-set?)");
|
|
33462
|
-
return f == null ? new ge("") : f.nodeType ==
|
|
33482
|
+
return f == null ? new ge("") : f.nodeType == O.ELEMENT_NODE ? new ge(f.nodeName) : f.nodeType == O.ATTRIBUTE_NODE ? new ge(f.name || f.nodeName) : f.nodeType === O.PROCESSING_INSTRUCTION_NODE ? new ge(f.target || f.nodeName) : f.localName == null ? new ge("") : new ge(f.localName);
|
|
33463
33483
|
}, _e.string = function() {
|
|
33464
33484
|
var c = arguments[0];
|
|
33465
33485
|
if (arguments.length == 1)
|
|
@@ -33567,7 +33587,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33567
33587
|
var c = arguments[0];
|
|
33568
33588
|
if (arguments.length != 2)
|
|
33569
33589
|
throw new Error("Function lang expects (string)");
|
|
33570
|
-
for (var f, y = c.contextNode; y != null && y.nodeType !=
|
|
33590
|
+
for (var f, y = c.contextNode; y != null && y.nodeType != O.DOCUMENT_NODE; y = y.parentNode) {
|
|
33571
33591
|
var $ = y.getAttributeNS(z.XML_NAMESPACE_URI, "lang");
|
|
33572
33592
|
if ($ != null) {
|
|
33573
33593
|
f = String($);
|
|
@@ -33609,7 +33629,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33609
33629
|
};
|
|
33610
33630
|
var le = new Object();
|
|
33611
33631
|
le.isAttribute = function(c) {
|
|
33612
|
-
return c && (c.nodeType ===
|
|
33632
|
+
return c && (c.nodeType === O.ATTRIBUTE_NODE || c.ownerElement);
|
|
33613
33633
|
}, le.splitQName = function(c) {
|
|
33614
33634
|
var f = c.indexOf(":");
|
|
33615
33635
|
return f == -1 ? [null, c] : [c.substring(0, f), c.substring(f + 1)];
|
|
@@ -33624,14 +33644,14 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33624
33644
|
return c >= 48 && c <= 57 || c >= 1632 && c <= 1641 || c >= 1776 && c <= 1785 || c >= 2406 && c <= 2415 || c >= 2534 && c <= 2543 || c >= 2662 && c <= 2671 || c >= 2790 && c <= 2799 || c >= 2918 && c <= 2927 || c >= 3047 && c <= 3055 || c >= 3174 && c <= 3183 || c >= 3302 && c <= 3311 || c >= 3430 && c <= 3439 || c >= 3664 && c <= 3673 || c >= 3792 && c <= 3801 || c >= 3872 && c <= 3881 || c == 46 || c == 45 || c == 95 || le.isLetter(c) || c >= 768 && c <= 837 || c >= 864 && c <= 865 || c >= 1155 && c <= 1158 || c >= 1425 && c <= 1441 || c >= 1443 && c <= 1465 || c >= 1467 && c <= 1469 || c == 1471 || c >= 1473 && c <= 1474 || c == 1476 || c >= 1611 && c <= 1618 || c == 1648 || c >= 1750 && c <= 1756 || c >= 1757 && c <= 1759 || c >= 1760 && c <= 1764 || c >= 1767 && c <= 1768 || c >= 1770 && c <= 1773 || c >= 2305 && c <= 2307 || c == 2364 || c >= 2366 && c <= 2380 || c == 2381 || c >= 2385 && c <= 2388 || c >= 2402 && c <= 2403 || c >= 2433 && c <= 2435 || c == 2492 || c == 2494 || c == 2495 || c >= 2496 && c <= 2500 || c >= 2503 && c <= 2504 || c >= 2507 && c <= 2509 || c == 2519 || c >= 2530 && c <= 2531 || c == 2562 || c == 2620 || c == 2622 || c == 2623 || c >= 2624 && c <= 2626 || c >= 2631 && c <= 2632 || c >= 2635 && c <= 2637 || c >= 2672 && c <= 2673 || c >= 2689 && c <= 2691 || c == 2748 || c >= 2750 && c <= 2757 || c >= 2759 && c <= 2761 || c >= 2763 && c <= 2765 || c >= 2817 && c <= 2819 || c == 2876 || c >= 2878 && c <= 2883 || c >= 2887 && c <= 2888 || c >= 2891 && c <= 2893 || c >= 2902 && c <= 2903 || c >= 2946 && c <= 2947 || c >= 3006 && c <= 3010 || c >= 3014 && c <= 3016 || c >= 3018 && c <= 3021 || c == 3031 || c >= 3073 && c <= 3075 || c >= 3134 && c <= 3140 || c >= 3142 && c <= 3144 || c >= 3146 && c <= 3149 || c >= 3157 && c <= 3158 || c >= 3202 && c <= 3203 || c >= 3262 && c <= 3268 || c >= 3270 && c <= 3272 || c >= 3274 && c <= 3277 || c >= 3285 && c <= 3286 || c >= 3330 && c <= 3331 || c >= 3390 && c <= 3395 || c >= 3398 && c <= 3400 || c >= 3402 && c <= 3405 || c == 3415 || c == 3633 || c >= 3636 && c <= 3642 || c >= 3655 && c <= 3662 || c == 3761 || c >= 3764 && c <= 3769 || c >= 3771 && c <= 3772 || c >= 3784 && c <= 3789 || c >= 3864 && c <= 3865 || c == 3893 || c == 3895 || c == 3897 || c == 3902 || c == 3903 || c >= 3953 && c <= 3972 || c >= 3974 && c <= 3979 || c >= 3984 && c <= 3989 || c == 3991 || c >= 3993 && c <= 4013 || c >= 4017 && c <= 4023 || c == 4025 || c >= 8400 && c <= 8412 || c == 8417 || c >= 12330 && c <= 12335 || c == 12441 || c == 12442 || c == 183 || c == 720 || c == 721 || c == 903 || c == 1600 || c == 3654 || c == 3782 || c == 12293 || c >= 12337 && c <= 12341 || c >= 12445 && c <= 12446 || c >= 12540 && c <= 12542;
|
|
33625
33645
|
}, le.coalesceText = function(c) {
|
|
33626
33646
|
for (var f = c.firstChild; f != null; f = f.nextSibling)
|
|
33627
|
-
if (f.nodeType ==
|
|
33647
|
+
if (f.nodeType == O.TEXT_NODE || f.nodeType == O.CDATA_SECTION_NODE) {
|
|
33628
33648
|
var y = f.nodeValue, $ = f;
|
|
33629
|
-
for (f = f.nextSibling; f != null && (f.nodeType ==
|
|
33649
|
+
for (f = f.nextSibling; f != null && (f.nodeType == O.TEXT_NODE || f.nodeType == O.CDATA_SECTION_NODE); ) {
|
|
33630
33650
|
y += f.nodeValue;
|
|
33631
33651
|
var v = f;
|
|
33632
33652
|
f = f.nextSibling, v.parentNode.removeChild(v);
|
|
33633
33653
|
}
|
|
33634
|
-
if ($.nodeType ==
|
|
33654
|
+
if ($.nodeType == O.CDATA_SECTION_NODE) {
|
|
33635
33655
|
var S = $.parentNode;
|
|
33636
33656
|
if ($.nextSibling == null)
|
|
33637
33657
|
S.removeChild($), S.appendChild(S.ownerDocument.createTextNode(y));
|
|
@@ -33643,7 +33663,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33643
33663
|
$.nodeValue = y;
|
|
33644
33664
|
if (f == null)
|
|
33645
33665
|
break;
|
|
33646
|
-
} else f.nodeType ==
|
|
33666
|
+
} else f.nodeType == O.ELEMENT_NODE && le.coalesceText(f);
|
|
33647
33667
|
}, le.instance_of = function(c, f) {
|
|
33648
33668
|
for (; c != null; ) {
|
|
33649
33669
|
if (c.constructor === f)
|
|
@@ -33654,7 +33674,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33654
33674
|
}
|
|
33655
33675
|
return !1;
|
|
33656
33676
|
}, le.getElementById = function(c, f) {
|
|
33657
|
-
if (c.nodeType ==
|
|
33677
|
+
if (c.nodeType == O.ELEMENT_NODE && (c.getAttribute("id") == f || c.getAttributeNS(null, "id") == f))
|
|
33658
33678
|
return c;
|
|
33659
33679
|
for (var y = c.firstChild; y != null; y = y.nextSibling) {
|
|
33660
33680
|
var $ = le.getElementById(y, f);
|
|
@@ -33689,7 +33709,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33689
33709
|
this.xpath = y.parse(c), this.context = new Gt(), this.context.namespaceResolver = new $n(f);
|
|
33690
33710
|
}
|
|
33691
33711
|
Lt.getOwnerDocument = function(c) {
|
|
33692
|
-
return c.nodeType ===
|
|
33712
|
+
return c.nodeType === O.DOCUMENT_NODE ? c : c.ownerDocument;
|
|
33693
33713
|
}, Lt.detectHtmlDom = function(c) {
|
|
33694
33714
|
if (!c)
|
|
33695
33715
|
return !1;
|
|
@@ -33912,7 +33932,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33912
33932
|
});
|
|
33913
33933
|
}
|
|
33914
33934
|
n.parse = jy;
|
|
33915
|
-
}(),
|
|
33935
|
+
}(), D(
|
|
33916
33936
|
n,
|
|
33917
33937
|
{
|
|
33918
33938
|
XPath: z,
|
|
@@ -33922,7 +33942,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33922
33942
|
PathExpr: we,
|
|
33923
33943
|
NodeTest: ae,
|
|
33924
33944
|
LocationPath: tn,
|
|
33925
|
-
OrOperation:
|
|
33945
|
+
OrOperation: Z,
|
|
33926
33946
|
AndOperation: Se,
|
|
33927
33947
|
BarOperation: ee,
|
|
33928
33948
|
EqualsOperation: j,
|
|
@@ -33976,20 +33996,20 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
|
|
|
33976
33996
|
return ve(f) && f.nodeType === c;
|
|
33977
33997
|
};
|
|
33978
33998
|
};
|
|
33979
|
-
|
|
33999
|
+
D(
|
|
33980
34000
|
n,
|
|
33981
34001
|
{
|
|
33982
34002
|
isNodeLike: ve,
|
|
33983
34003
|
isArrayOfNodes: it,
|
|
33984
|
-
isElement: Be(
|
|
33985
|
-
isAttribute: Be(
|
|
33986
|
-
isTextNode: Be(
|
|
33987
|
-
isCDATASection: Be(
|
|
33988
|
-
isProcessingInstruction: Be(
|
|
33989
|
-
isComment: Be(
|
|
33990
|
-
isDocumentNode: Be(
|
|
33991
|
-
isDocumentTypeNode: Be(
|
|
33992
|
-
isDocumentFragment: Be(
|
|
34004
|
+
isElement: Be(O.ELEMENT_NODE),
|
|
34005
|
+
isAttribute: Be(O.ATTRIBUTE_NODE),
|
|
34006
|
+
isTextNode: Be(O.TEXT_NODE),
|
|
34007
|
+
isCDATASection: Be(O.CDATA_SECTION_NODE),
|
|
34008
|
+
isProcessingInstruction: Be(O.PROCESSING_INSTRUCTION_NODE),
|
|
34009
|
+
isComment: Be(O.COMMENT_NODE),
|
|
34010
|
+
isDocumentNode: Be(O.DOCUMENT_NODE),
|
|
34011
|
+
isDocumentTypeNode: Be(O.DOCUMENT_TYPE_NODE),
|
|
34012
|
+
isDocumentFragment: Be(O.DOCUMENT_FRAGMENT_NODE)
|
|
33993
34013
|
}
|
|
33994
34014
|
);
|
|
33995
34015
|
})(e);
|
|
@@ -34075,25 +34095,25 @@ Ae.assertIsDocumentFragmentNode = W6;
|
|
|
34075
34095
|
function i(M, K, W) {
|
|
34076
34096
|
return M.localName === K && (M.namespaceURI === W || W == null);
|
|
34077
34097
|
}
|
|
34078
|
-
function s(M, K, W,
|
|
34079
|
-
return M.localName === K && (!M.namespaceURI && (
|
|
34098
|
+
function s(M, K, W, Y) {
|
|
34099
|
+
return M.localName === K && (!M.namespaceURI && (Y == null ? void 0 : Y.namespaceURI) === W || W == null);
|
|
34080
34100
|
}
|
|
34081
34101
|
function a(M, K, W) {
|
|
34082
|
-
for (let
|
|
34083
|
-
const
|
|
34084
|
-
if (i(
|
|
34085
|
-
return
|
|
34102
|
+
for (let Y = 0; Y < M.attributes.length; Y++) {
|
|
34103
|
+
const Z = M.attributes[Y];
|
|
34104
|
+
if (i(Z, K, W) || s(Z, K, W, M))
|
|
34105
|
+
return Z;
|
|
34086
34106
|
}
|
|
34087
34107
|
return null;
|
|
34088
34108
|
}
|
|
34089
34109
|
t.findAttr = a;
|
|
34090
34110
|
function l(M, K, W) {
|
|
34091
|
-
const
|
|
34092
|
-
for (let Se = 0; Se <
|
|
34093
|
-
const j =
|
|
34094
|
-
n.isElementNode(j) && j.localName === K && (j.namespaceURI === W || W == null) &&
|
|
34111
|
+
const Y = M.documentElement ?? M, Z = [];
|
|
34112
|
+
for (let Se = 0; Se < Y.childNodes.length; Se++) {
|
|
34113
|
+
const j = Y.childNodes[Se];
|
|
34114
|
+
n.isElementNode(j) && j.localName === K && (j.namespaceURI === W || W == null) && Z.push(j);
|
|
34095
34115
|
}
|
|
34096
|
-
return
|
|
34116
|
+
return Z;
|
|
34097
34117
|
}
|
|
34098
34118
|
t.findChildren = l;
|
|
34099
34119
|
function u(M, K, W) {
|
|
@@ -34138,43 +34158,43 @@ Ae.assertIsDocumentFragmentNode = W6;
|
|
|
34138
34158
|
return Buffer.from(M.replace(/(\r\n|\r)/g, "").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/, "").replace(/-----END [A-Z\x20]{1,48}-----\n?/, ""), "base64");
|
|
34139
34159
|
}
|
|
34140
34160
|
t.pemToDer = A;
|
|
34141
|
-
function
|
|
34161
|
+
function C(M, K) {
|
|
34142
34162
|
const W = Buffer.isBuffer(M) ? M.toString("base64").trim() : M.replace(/(\r\n|\r)/g, "").trim();
|
|
34143
34163
|
if (t.PEM_FORMAT_REGEX.test(W))
|
|
34144
34164
|
return b(W);
|
|
34145
34165
|
if (t.BASE64_REGEX.test(W.replace(/ /g, ""))) {
|
|
34146
34166
|
if (K == null)
|
|
34147
34167
|
throw new Error("PEM label is required when DER is given.");
|
|
34148
|
-
const
|
|
34168
|
+
const Y = `-----BEGIN ${K}-----
|
|
34149
34169
|
${W.replace(/ /g, "")}
|
|
34150
34170
|
-----END ${K}-----`;
|
|
34151
|
-
return b(
|
|
34171
|
+
return b(Y);
|
|
34152
34172
|
}
|
|
34153
34173
|
throw new Error("Unknown DER format.");
|
|
34154
34174
|
}
|
|
34155
|
-
t.derToPem =
|
|
34156
|
-
function
|
|
34175
|
+
t.derToPem = C;
|
|
34176
|
+
function D(M, K = []) {
|
|
34157
34177
|
if (!n.isElementNode(M.parentNode))
|
|
34158
34178
|
return K;
|
|
34159
34179
|
const W = M.parentNode;
|
|
34160
34180
|
if (!W)
|
|
34161
34181
|
return K;
|
|
34162
34182
|
if (W.attributes && W.attributes.length > 0)
|
|
34163
|
-
for (let
|
|
34164
|
-
const
|
|
34165
|
-
|
|
34166
|
-
prefix:
|
|
34167
|
-
namespaceURI:
|
|
34183
|
+
for (let Y = 0; Y < W.attributes.length; Y++) {
|
|
34184
|
+
const Z = W.attributes[Y];
|
|
34185
|
+
Z && Z.nodeName && Z.nodeName.search(/^xmlns:?/) !== -1 && K.push({
|
|
34186
|
+
prefix: Z.nodeName.replace(/^xmlns:?/, ""),
|
|
34187
|
+
namespaceURI: Z.nodeValue || ""
|
|
34168
34188
|
});
|
|
34169
34189
|
}
|
|
34170
|
-
return
|
|
34190
|
+
return D(W, K);
|
|
34171
34191
|
}
|
|
34172
|
-
function
|
|
34192
|
+
function O(M) {
|
|
34173
34193
|
const K = M.attributes;
|
|
34174
34194
|
for (let W = 0; W < K.length; W++) {
|
|
34175
|
-
const
|
|
34176
|
-
if (
|
|
34177
|
-
return
|
|
34195
|
+
const Y = K[W].nodeName;
|
|
34196
|
+
if (Y.search(/^xmlns:?/) !== -1)
|
|
34197
|
+
return Y.replace(/^xmlns:?/, "");
|
|
34178
34198
|
}
|
|
34179
34199
|
return M.prefix || "";
|
|
34180
34200
|
}
|
|
@@ -34184,35 +34204,35 @@ ${W.replace(/ /g, "")}
|
|
|
34184
34204
|
function z(M, K, W) {
|
|
34185
34205
|
if (K == null)
|
|
34186
34206
|
return [];
|
|
34187
|
-
const
|
|
34188
|
-
if (!r(
|
|
34207
|
+
const Y = e.selectWithResolver(K, M, W);
|
|
34208
|
+
if (!r(Y))
|
|
34189
34209
|
return [];
|
|
34190
|
-
if (!x(
|
|
34210
|
+
if (!x(Y))
|
|
34191
34211
|
throw new Error("Document subset must be list of elements");
|
|
34192
|
-
const
|
|
34193
|
-
for (let P = 0; P <
|
|
34212
|
+
const Z = D(Y[0]), Se = [];
|
|
34213
|
+
for (let P = 0; P < Z.length; P++) {
|
|
34194
34214
|
let N = !0;
|
|
34195
34215
|
for (const k in Se)
|
|
34196
|
-
if (Se[k].prefix ===
|
|
34216
|
+
if (Se[k].prefix === Z[P].prefix) {
|
|
34197
34217
|
N = !1;
|
|
34198
34218
|
break;
|
|
34199
34219
|
}
|
|
34200
|
-
N && Se.push(
|
|
34220
|
+
N && Se.push(Z[P]);
|
|
34201
34221
|
}
|
|
34202
|
-
const j = [], F =
|
|
34222
|
+
const j = [], F = O(Y[0]);
|
|
34203
34223
|
for (const P of Se)
|
|
34204
34224
|
P.prefix !== F && j.push(P);
|
|
34205
34225
|
return j;
|
|
34206
34226
|
}
|
|
34207
34227
|
t.findAncestorNs = z;
|
|
34208
34228
|
function q(M, K) {
|
|
34209
|
-
const W = Buffer.from(M, "base64"),
|
|
34229
|
+
const W = Buffer.from(M, "base64"), Y = Buffer.from(K, "base64");
|
|
34210
34230
|
if (typeof W.equals == "function")
|
|
34211
|
-
return W.equals(
|
|
34212
|
-
if (W.length !==
|
|
34231
|
+
return W.equals(Y);
|
|
34232
|
+
if (W.length !== Y.length)
|
|
34213
34233
|
return !1;
|
|
34214
|
-
for (let
|
|
34215
|
-
if (W[
|
|
34234
|
+
for (let Z = 0; Z < W.length; Z++)
|
|
34235
|
+
if (W[Z] !== Y[Z])
|
|
34216
34236
|
return !1;
|
|
34217
34237
|
return !0;
|
|
34218
34238
|
}
|
|
@@ -35450,7 +35470,7 @@ function Si(t, e, n, r, i) {
|
|
|
35450
35470
|
return;
|
|
35451
35471
|
switch (t.nodeType) {
|
|
35452
35472
|
case hn:
|
|
35453
|
-
var s = t.attributes, a = s.length,
|
|
35473
|
+
var s = t.attributes, a = s.length, O = t.firstChild, l = t.tagName;
|
|
35454
35474
|
n = no.isHTML(t.namespaceURI) || n;
|
|
35455
35475
|
var u = l;
|
|
35456
35476
|
if (!n && !t.prefix && t.namespaceURI) {
|
|
@@ -35484,30 +35504,30 @@ function Si(t, e, n, r, i) {
|
|
|
35484
35504
|
for (var b = 0; b < a; b++) {
|
|
35485
35505
|
var A = s.item(b);
|
|
35486
35506
|
if (_m(A, n, i)) {
|
|
35487
|
-
var
|
|
35488
|
-
du(e,
|
|
35507
|
+
var C = A.prefix || "", D = A.namespaceURI;
|
|
35508
|
+
du(e, C ? "xmlns:" + C : "xmlns", D), i.push({ prefix: C, namespace: D });
|
|
35489
35509
|
}
|
|
35490
35510
|
Si(A, e, n, r, i);
|
|
35491
35511
|
}
|
|
35492
35512
|
if (l === u && _m(t, n, i)) {
|
|
35493
|
-
var
|
|
35494
|
-
du(e,
|
|
35513
|
+
var C = t.prefix || "", D = t.namespaceURI;
|
|
35514
|
+
du(e, C ? "xmlns:" + C : "xmlns", D), i.push({ prefix: C, namespace: D });
|
|
35495
35515
|
}
|
|
35496
|
-
if (
|
|
35516
|
+
if (O || n && !/^(?:meta|link|img|br|hr|input)$/i.test(l)) {
|
|
35497
35517
|
if (e.push(">"), n && /^script$/i.test(l))
|
|
35498
|
-
for (;
|
|
35499
|
-
|
|
35518
|
+
for (; O; )
|
|
35519
|
+
O.data ? e.push(O.data) : Si(O, e, n, r, i.slice()), O = O.nextSibling;
|
|
35500
35520
|
else
|
|
35501
|
-
for (;
|
|
35502
|
-
Si(
|
|
35521
|
+
for (; O; )
|
|
35522
|
+
Si(O, e, n, r, i.slice()), O = O.nextSibling;
|
|
35503
35523
|
e.push("</", u, ">");
|
|
35504
35524
|
} else
|
|
35505
35525
|
e.push("/>");
|
|
35506
35526
|
return;
|
|
35507
35527
|
case cy:
|
|
35508
35528
|
case tr:
|
|
35509
|
-
for (var
|
|
35510
|
-
Si(
|
|
35529
|
+
for (var O = t.firstChild; O; )
|
|
35530
|
+
Si(O, e, n, r, i.slice()), O = O.nextSibling;
|
|
35511
35531
|
return;
|
|
35512
35532
|
case Ki:
|
|
35513
35533
|
return du(e, t.name, t.value);
|
|
@@ -37798,9 +37818,9 @@ function dS(t, e, n, r, i) {
|
|
|
37798
37818
|
return Object.hasOwnProperty.call(n, G) ? n[G] : G.charAt(0) === "#" ? s(parseInt(G.substr(1).replace("x", "0x"))) : (i.error("entity not found:" + L), L);
|
|
37799
37819
|
}
|
|
37800
37820
|
function l(L) {
|
|
37801
|
-
if (L >
|
|
37802
|
-
var G = t.substring(
|
|
37803
|
-
g && u(
|
|
37821
|
+
if (L > C) {
|
|
37822
|
+
var G = t.substring(C, L).replace(/&#?\w+;/g, a);
|
|
37823
|
+
g && u(C), r.characters(G, 0, L - C), C = L;
|
|
37804
37824
|
}
|
|
37805
37825
|
}
|
|
37806
37826
|
function u(L, G) {
|
|
@@ -37808,55 +37828,55 @@ function dS(t, e, n, r, i) {
|
|
|
37808
37828
|
d = G.index, p = d + G[0].length, g.lineNumber++;
|
|
37809
37829
|
g.columnNumber = L - d + 1;
|
|
37810
37830
|
}
|
|
37811
|
-
for (var d = 0, p = 0, h = /.*(?:\r\n?|\n)|.*$/g, g = r.locator, b = [{ currentNSMap: e }], A = {},
|
|
37831
|
+
for (var d = 0, p = 0, h = /.*(?:\r\n?|\n)|.*$/g, g = r.locator, b = [{ currentNSMap: e }], A = {}, C = 0; ; ) {
|
|
37812
37832
|
try {
|
|
37813
|
-
var
|
|
37814
|
-
if (
|
|
37815
|
-
if (!t.substr(
|
|
37816
|
-
var
|
|
37817
|
-
|
|
37833
|
+
var D = t.indexOf("<", C);
|
|
37834
|
+
if (D < 0) {
|
|
37835
|
+
if (!t.substr(C).match(/^\s*$/)) {
|
|
37836
|
+
var O = r.doc, x = O.createTextNode(t.substr(C));
|
|
37837
|
+
O.appendChild(x), r.currentElement = x;
|
|
37818
37838
|
}
|
|
37819
37839
|
return;
|
|
37820
37840
|
}
|
|
37821
|
-
switch (
|
|
37841
|
+
switch (D > C && l(D), t.charAt(D + 1)) {
|
|
37822
37842
|
case "/":
|
|
37823
|
-
var j = t.indexOf(">",
|
|
37824
|
-
j < 0 ? (z = t.substring(
|
|
37843
|
+
var j = t.indexOf(">", D + 3), z = t.substring(D + 2, j).replace(/[ \t\n\r]+$/g, ""), q = b.pop();
|
|
37844
|
+
j < 0 ? (z = t.substring(D + 2).replace(/[\s<].*/, ""), i.error("end tag name: " + z + " is not complete:" + q.tagName), j = D + 1 + z.length) : z.match(/\s</) && (z = z.replace(/[\s<].*/, ""), i.error("end tag name: " + z + " maybe not complete"), j = D + 1 + z.length);
|
|
37825
37845
|
var M = q.localNSMap, K = q.tagName == z, W = K || q.tagName && q.tagName.toLowerCase() == z.toLowerCase();
|
|
37826
37846
|
if (W) {
|
|
37827
37847
|
if (r.endElement(q.uri, q.localName, z), M)
|
|
37828
|
-
for (var
|
|
37829
|
-
Object.prototype.hasOwnProperty.call(M,
|
|
37848
|
+
for (var Y in M)
|
|
37849
|
+
Object.prototype.hasOwnProperty.call(M, Y) && r.endPrefixMapping(Y);
|
|
37830
37850
|
K || i.fatalError("end tag name: " + z + " is not match the current start tagName:" + q.tagName);
|
|
37831
37851
|
} else
|
|
37832
37852
|
b.push(q);
|
|
37833
37853
|
j++;
|
|
37834
37854
|
break;
|
|
37835
37855
|
case "?":
|
|
37836
|
-
g && u(
|
|
37856
|
+
g && u(D), j = mS(t, D, r);
|
|
37837
37857
|
break;
|
|
37838
37858
|
case "!":
|
|
37839
|
-
g && u(
|
|
37859
|
+
g && u(D), j = gS(t, D, r, i);
|
|
37840
37860
|
break;
|
|
37841
37861
|
default:
|
|
37842
|
-
g && u(
|
|
37843
|
-
var
|
|
37844
|
-
if (!
|
|
37862
|
+
g && u(D);
|
|
37863
|
+
var Z = new Sy(), Se = b[b.length - 1].currentNSMap, j = pS(t, D, Z, Se, a, i), F = Z.length;
|
|
37864
|
+
if (!Z.closed && hS(t, j, Z.tagName, A) && (Z.closed = !0, n.nbsp || i.warning("unclosed xml attribute")), g && F) {
|
|
37845
37865
|
for (var P = vm(g, {}), N = 0; N < F; N++) {
|
|
37846
|
-
var k =
|
|
37866
|
+
var k = Z[N];
|
|
37847
37867
|
u(k.offset), k.locator = vm(g, {});
|
|
37848
37868
|
}
|
|
37849
|
-
r.locator = P, bm(
|
|
37869
|
+
r.locator = P, bm(Z, r, Se) && b.push(Z), r.locator = g;
|
|
37850
37870
|
} else
|
|
37851
|
-
bm(
|
|
37852
|
-
io.isHTML(
|
|
37871
|
+
bm(Z, r, Se) && b.push(Z);
|
|
37872
|
+
io.isHTML(Z.uri) && !Z.closed ? j = fS(t, j, Z.tagName, a, r) : j++;
|
|
37853
37873
|
}
|
|
37854
37874
|
} catch (L) {
|
|
37855
37875
|
if (L instanceof Wi)
|
|
37856
37876
|
throw L;
|
|
37857
37877
|
i.error("element parse error: " + L), j = -1;
|
|
37858
37878
|
}
|
|
37859
|
-
j >
|
|
37879
|
+
j > C ? C = j : l(Math.max(D, C) + 1);
|
|
37860
37880
|
}
|
|
37861
37881
|
}
|
|
37862
37882
|
function vm(t, e) {
|
|
@@ -38763,11 +38783,11 @@ class Vn {
|
|
|
38763
38783
|
}), l.push(`${a}="http://www.w3.org/2000/09/xmldsig#"`);
|
|
38764
38784
|
let A = `<${u}Signature ${l.join(" ")}>`;
|
|
38765
38785
|
A += this.createSignedInfo(s, p), A += this.getKeyInfo(p), A += `</${u}Signature>`, this.originalXmlWithIds = s.toString();
|
|
38766
|
-
let
|
|
38786
|
+
let C = "";
|
|
38767
38787
|
Object.keys(b).forEach(function(K) {
|
|
38768
|
-
|
|
38788
|
+
C += `xmlns:${K}="${b[K]}" `;
|
|
38769
38789
|
});
|
|
38770
|
-
const
|
|
38790
|
+
const D = `<Dummy ${C}>${A}</Dummy>`, x = new Ir.DOMParser().parseFromString(D).documentElement.firstChild, z = Xt.select1(g.reference, s);
|
|
38771
38791
|
if (!Ft.isNodeLike(z)) {
|
|
38772
38792
|
const K = new Error(`the following xpath cannot be used because it was not found: ${g.reference}`);
|
|
38773
38793
|
if (i) {
|
|
@@ -39202,7 +39222,7 @@ const US = new be().openapi(
|
|
|
39202
39222
|
const s = await LS(n), a = s["samlp:AuthnRequest"]["saml:Issuer"]["#text"], l = await t.env.data.loginSessions.create(
|
|
39203
39223
|
t.var.tenant_id,
|
|
39204
39224
|
{
|
|
39205
|
-
csrf_token:
|
|
39225
|
+
csrf_token: Ke(),
|
|
39206
39226
|
authParams: {
|
|
39207
39227
|
client_id: e,
|
|
39208
39228
|
state: JSON.stringify({
|
|
@@ -40717,7 +40737,7 @@ export {
|
|
|
40717
40737
|
_n as GoBack,
|
|
40718
40738
|
h8 as GoogleLogo,
|
|
40719
40739
|
En as GrantType,
|
|
40720
|
-
|
|
40740
|
+
We as Icon,
|
|
40721
40741
|
eu as IdentifierPage,
|
|
40722
40742
|
c6 as InvalidSession,
|
|
40723
40743
|
nt as Layout,
|