authhero 0.197.0 → 0.198.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.mjs CHANGED
@@ -373,14 +373,14 @@ class fa extends oc {
373
373
  }
374
374
  if (s) {
375
375
  const W = Array.isArray(g), U = W ? [] : {}, K = W ? $ : A;
376
- for (const J in g)
377
- if (Object.prototype.hasOwnProperty.call(g, J)) {
378
- const Z = `${K}${s}${J}`;
379
- U[J] = this.translate(Z, {
376
+ for (const X in g)
377
+ if (Object.prototype.hasOwnProperty.call(g, X)) {
378
+ const Z = `${K}${s}${X}`;
379
+ U[X] = this.translate(Z, {
380
380
  ...n,
381
381
  joinArrays: !1,
382
382
  ns: l
383
- }), U[J] === Z && (U[J] = g[J]);
383
+ }), U[X] === Z && (U[X] = g[X]);
384
384
  }
385
385
  g = U;
386
386
  }
@@ -388,34 +388,34 @@ class fa extends oc {
388
388
  g = g.join(R), g && (g = this.extendTranslation(g, e, n, r));
389
389
  else {
390
390
  let W = !1, U = !1;
391
- const K = n.count !== void 0 && !ke(n.count), J = fa.hasDefaultValue(n), Z = K ? this.pluralResolver.getSuffix(d, n.count, n) : "", he = n.ordinal && K ? this.pluralResolver.getSuffix(d, n.count, {
391
+ const K = n.count !== void 0 && !ke(n.count), X = fa.hasDefaultValue(n), Z = K ? this.pluralResolver.getSuffix(d, n.count, n) : "", de = n.ordinal && K ? this.pluralResolver.getSuffix(d, n.count, {
392
392
  ordinal: !1
393
- }) : "", Ie = K && !n.ordinal && n.count === 0, j = Ie && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${Z}`] || n[`defaultValue${he}`] || n.defaultValue;
394
- !this.isValidLookup(g) && J && (W = !0, g = j), this.isValidLookup(g) || (U = !0, g = a);
395
- const D = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : g, k = J && j !== g && this.options.updateMissing;
393
+ }) : "", Ie = K && !n.ordinal && n.count === 0, j = Ie && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${Z}`] || n[`defaultValue${de}`] || n.defaultValue;
394
+ !this.isValidLookup(g) && X && (W = !0, g = j), this.isValidLookup(g) || (U = !0, g = a);
395
+ const D = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : g, k = X && j !== g && this.options.updateMissing;
396
396
  if (U || W || k) {
397
397
  if (this.logger.log(k ? "updateKey" : "missingKey", d, u, a, k ? j : g), s) {
398
- const de = this.resolve(a, {
398
+ const pe = this.resolve(a, {
399
399
  ...n,
400
400
  keySeparator: !1
401
401
  });
402
- de && de.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
402
+ pe && pe.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
403
403
  }
404
404
  let S = [];
405
405
  const P = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
406
406
  if (this.options.saveMissingTo === "fallback" && P && P[0])
407
- for (let de = 0; de < P.length; de++)
408
- S.push(P[de]);
407
+ for (let pe = 0; pe < P.length; pe++)
408
+ S.push(P[pe]);
409
409
  else this.options.saveMissingTo === "all" ? S = this.languageUtils.toResolveHierarchy(n.lng || this.language) : S.push(n.lng || this.language);
410
- const z = (de, ie, be) => {
410
+ const z = (pe, ie, be) => {
411
411
  var Q;
412
- const Ne = J && be !== g ? be : D;
413
- this.options.missingKeyHandler ? this.options.missingKeyHandler(de, u, ie, Ne, k, n) : (Q = this.backendConnector) != null && Q.saveMissing && this.backendConnector.saveMissing(de, u, ie, Ne, k, n), this.emit("missingKey", de, u, ie, g);
412
+ const Ne = X && be !== g ? be : D;
413
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(pe, u, ie, Ne, k, n) : (Q = this.backendConnector) != null && Q.saveMissing && this.backendConnector.saveMissing(pe, u, ie, Ne, k, n), this.emit("missingKey", pe, u, ie, g);
414
414
  };
415
- this.options.saveMissing && (this.options.saveMissingPlurals && K ? S.forEach((de) => {
416
- const ie = this.pluralResolver.getSuffixes(de, n);
415
+ this.options.saveMissing && (this.options.saveMissingPlurals && K ? S.forEach((pe) => {
416
+ const ie = this.pluralResolver.getSuffixes(pe, n);
417
417
  Ie && n[`defaultValue${this.options.pluralSeparator}zero`] && ie.indexOf(`${this.options.pluralSeparator}zero`) < 0 && ie.push(`${this.options.pluralSeparator}zero`), ie.forEach((be) => {
418
- z([de], a + be, n[`defaultValue${be}`] || j);
418
+ z([pe], a + be, n[`defaultValue${be}`] || j);
419
419
  });
420
420
  }) : z(S, a, j));
421
421
  }
@@ -489,12 +489,12 @@ class fa extends oc {
489
489
  if ((K = this.i18nFormat) != null && K.addLookupKeys)
490
490
  this.i18nFormat.addLookupKeys(W, p, V, B, n);
491
491
  else {
492
- let J;
493
- g && (J = this.pluralResolver.getSuffix(V, n.count, n));
494
- const Z = `${this.options.pluralSeparator}zero`, he = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
- if (g && (W.push(p + J), n.ordinal && J.indexOf(he) === 0 && W.push(p + J.replace(he, this.options.pluralSeparator)), A && W.push(p + Z)), $) {
492
+ let X;
493
+ g && (X = this.pluralResolver.getSuffix(V, n.count, n));
494
+ const Z = `${this.options.pluralSeparator}zero`, de = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
+ if (g && (W.push(p + X), n.ordinal && X.indexOf(de) === 0 && W.push(p + X.replace(de, this.options.pluralSeparator)), A && W.push(p + Z)), $) {
496
496
  const Ie = `${p}${this.options.contextSeparator}${n.context}`;
497
- W.push(Ie), g && (W.push(Ie + J), n.ordinal && J.indexOf(he) === 0 && W.push(Ie + J.replace(he, this.options.pluralSeparator)), A && W.push(Ie + Z));
497
+ W.push(Ie), g && (W.push(Ie + X), n.ordinal && X.indexOf(de) === 0 && W.push(Ie + X.replace(de, this.options.pluralSeparator)), A && W.push(Ie + Z));
498
498
  }
499
499
  }
500
500
  let U;
@@ -2955,12 +2955,12 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2955
2955
  k(D);
2956
2956
  } else
2957
2957
  return new Promise(function(S, P) {
2958
- k(function(z, de) {
2958
+ k(function(z, pe) {
2959
2959
  if (z) {
2960
2960
  P(z);
2961
2961
  return;
2962
2962
  }
2963
- S(de);
2963
+ S(pe);
2964
2964
  });
2965
2965
  });
2966
2966
  }, e.hashSync = function(j, L) {
@@ -2969,8 +2969,8 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2969
2969
  return Ie(j, L);
2970
2970
  }, e.hash = function(j, L, D, k) {
2971
2971
  function S(P) {
2972
- typeof j == "string" && typeof L == "number" ? e.genSalt(L, function(z, de) {
2973
- Ie(j, de, P, k);
2972
+ typeof j == "string" && typeof L == "number" ? e.genSalt(L, function(z, pe) {
2973
+ Ie(j, pe, P, k);
2974
2974
  }) : typeof j == "string" && typeof L == "string" ? Ie(j, L, P, k) : a(P.bind(this, Error("Illegal arguments: " + typeof j + ", " + typeof L)));
2975
2975
  }
2976
2976
  if (D) {
@@ -2979,9 +2979,9 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2979
2979
  S(D);
2980
2980
  } else
2981
2981
  return new Promise(function(P, z) {
2982
- S(function(de, ie) {
2983
- if (de) {
2984
- z(de);
2982
+ S(function(pe, ie) {
2983
+ if (pe) {
2984
+ z(pe);
2985
2985
  return;
2986
2986
  }
2987
2987
  P(ie);
@@ -3007,8 +3007,8 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3007
3007
  a(P.bind(this, null, !1));
3008
3008
  return;
3009
3009
  }
3010
- e.hash(j, L.substr(0, 29), function(z, de) {
3011
- z ? P(z) : P(null, s(de, L));
3010
+ e.hash(j, L.substr(0, 29), function(z, pe) {
3011
+ z ? P(z) : P(null, s(pe, L));
3012
3012
  }, k);
3013
3013
  }
3014
3014
  if (D) {
@@ -3017,9 +3017,9 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3017
3017
  S(D);
3018
3018
  } else
3019
3019
  return new Promise(function(P, z) {
3020
- S(function(de, ie) {
3021
- if (de) {
3022
- z(de);
3020
+ S(function(pe, ie) {
3021
+ if (pe) {
3022
+ z(pe);
3023
3023
  return;
3024
3024
  }
3025
3025
  P(ie);
@@ -3193,10 +3193,10 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3193
3193
  return k.join("");
3194
3194
  }
3195
3195
  function g(j, L) {
3196
- var D = 0, k = j.length, S = 0, P = [], z, de, ie, be, Ne, Q;
3196
+ var D = 0, k = j.length, S = 0, P = [], z, pe, ie, be, Ne, Q;
3197
3197
  if (L <= 0)
3198
3198
  throw Error("Illegal len: " + L);
3199
- for (; D < k - 1 && S < L && (Q = j.charCodeAt(D++), z = Q < d.length ? d[Q] : -1, Q = j.charCodeAt(D++), de = Q < d.length ? d[Q] : -1, !(z == -1 || de == -1 || (Ne = z << 2 >>> 0, Ne |= (de & 48) >> 4, P.push(p(Ne)), ++S >= L || D >= k) || (Q = j.charCodeAt(D++), ie = Q < d.length ? d[Q] : -1, ie == -1) || (Ne = (de & 15) << 4 >>> 0, Ne |= (ie & 60) >> 2, P.push(p(Ne)), ++S >= L || D >= k))); )
3199
+ for (; D < k - 1 && S < L && (Q = j.charCodeAt(D++), z = Q < d.length ? d[Q] : -1, Q = j.charCodeAt(D++), pe = Q < d.length ? d[Q] : -1, !(z == -1 || pe == -1 || (Ne = z << 2 >>> 0, Ne |= (pe & 48) >> 4, P.push(p(Ne)), ++S >= L || D >= k) || (Q = j.charCodeAt(D++), ie = Q < d.length ? d[Q] : -1, ie == -1) || (Ne = (pe & 15) << 4 >>> 0, Ne |= (ie & 60) >> 2, P.push(p(Ne)), ++S >= L || D >= k))); )
3200
3200
  Q = j.charCodeAt(D++), be = Q < d.length ? d[Q] : -1, Ne = (ie & 3) << 6 >>> 0, Ne |= be, P.push(p(Ne)), ++S;
3201
3201
  var we = [];
3202
3202
  for (D = 0; D < S; D++)
@@ -3212,7 +3212,7 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3212
3212
  }); k !== null || (k = L()) !== null; )
3213
3213
  k < 128 ? D(k & 127) : k < 2048 ? (D(k >> 6 & 31 | 192), D(k & 63 | 128)) : k < 65536 ? (D(k >> 12 & 15 | 224), D(k >> 6 & 63 | 128), D(k & 63 | 128)) : (D(k >> 18 & 7 | 240), D(k >> 12 & 63 | 128), D(k >> 6 & 63 | 128), D(k & 63 | 128)), k = null;
3214
3214
  }, j.decodeUTF8 = function(L, D) {
3215
- for (var k, S, P, z, de = function(ie) {
3215
+ for (var k, S, P, z, pe = function(ie) {
3216
3216
  ie = ie.slice(0, ie.indexOf(null));
3217
3217
  var be = Error(ie.toString());
3218
3218
  throw be.name = "TruncatedError", be.bytes = ie, be;
@@ -3220,11 +3220,11 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3220
3220
  if (!(k & 128))
3221
3221
  D(k);
3222
3222
  else if ((k & 224) === 192)
3223
- (S = L()) === null && de([k, S]), D((k & 31) << 6 | S & 63);
3223
+ (S = L()) === null && pe([k, S]), D((k & 31) << 6 | S & 63);
3224
3224
  else if ((k & 240) === 224)
3225
- ((S = L()) === null || (P = L()) === null) && de([k, S, P]), D((k & 15) << 12 | (S & 63) << 6 | P & 63);
3225
+ ((S = L()) === null || (P = L()) === null) && pe([k, S, P]), D((k & 15) << 12 | (S & 63) << 6 | P & 63);
3226
3226
  else if ((k & 248) === 240)
3227
- ((S = L()) === null || (P = L()) === null || (z = L()) === null) && de([k, S, P, z]), D((k & 7) << 18 | (S & 63) << 12 | (P & 63) << 6 | z & 63);
3227
+ ((S = L()) === null || (P = L()) === null || (z = L()) === null) && pe([k, S, P, z]), D((k & 7) << 18 | (S & 63) << 12 | (P & 63) << 6 | z & 63);
3228
3228
  else throw RangeError("Illegal starting byte: " + k);
3229
3229
  }, j.UTF16toUTF8 = function(L, D) {
3230
3230
  for (var k, S = null; (k = S !== null ? S : L()) !== null; ) {
@@ -4326,42 +4326,42 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4326
4326
  k = k << 8 | j[L] & 255, L = (L + 1) % j.length;
4327
4327
  return { key: k, offp: L };
4328
4328
  }
4329
- function J(j, L, D) {
4330
- for (var k = 0, S = [0, 0], P = L.length, z = D.length, de, ie = 0; ie < P; ie++)
4331
- de = K(j, k), k = de.offp, L[ie] = L[ie] ^ de.key;
4329
+ function X(j, L, D) {
4330
+ for (var k = 0, S = [0, 0], P = L.length, z = D.length, pe, ie = 0; ie < P; ie++)
4331
+ pe = K(j, k), k = pe.offp, L[ie] = L[ie] ^ pe.key;
4332
4332
  for (ie = 0; ie < P; ie += 2)
4333
4333
  S = U(S, 0, L, D), L[ie] = S[0], L[ie + 1] = S[1];
4334
4334
  for (ie = 0; ie < z; ie += 2)
4335
4335
  S = U(S, 0, L, D), D[ie] = S[0], D[ie + 1] = S[1];
4336
4336
  }
4337
4337
  function Z(j, L, D, k) {
4338
- for (var S = 0, P = [0, 0], z = D.length, de = k.length, ie, be = 0; be < z; be++)
4338
+ for (var S = 0, P = [0, 0], z = D.length, pe = k.length, ie, be = 0; be < z; be++)
4339
4339
  ie = K(L, S), S = ie.offp, D[be] = D[be] ^ ie.key;
4340
4340
  for (S = 0, be = 0; be < z; be += 2)
4341
4341
  ie = K(j, S), S = ie.offp, P[0] ^= ie.key, ie = K(j, S), S = ie.offp, P[1] ^= ie.key, P = U(P, 0, D, k), D[be] = P[0], D[be + 1] = P[1];
4342
- for (be = 0; be < de; be += 2)
4342
+ for (be = 0; be < pe; be += 2)
4343
4343
  ie = K(j, S), S = ie.offp, P[0] ^= ie.key, ie = K(j, S), S = ie.offp, P[1] ^= ie.key, P = U(P, 0, D, k), k[be] = P[0], k[be + 1] = P[1];
4344
4344
  }
4345
- function he(j, L, D, k, S) {
4346
- var P = W.slice(), z = P.length, de;
4345
+ function de(j, L, D, k, S) {
4346
+ var P = W.slice(), z = P.length, pe;
4347
4347
  if (D < 4 || D > 31)
4348
- if (de = Error("Illegal number of rounds (4-31): " + D), k) {
4349
- a(k.bind(this, de));
4348
+ if (pe = Error("Illegal number of rounds (4-31): " + D), k) {
4349
+ a(k.bind(this, pe));
4350
4350
  return;
4351
4351
  } else
4352
- throw de;
4352
+ throw pe;
4353
4353
  if (L.length !== $)
4354
- if (de = Error("Illegal salt length: " + L.length + " != " + $), k) {
4355
- a(k.bind(this, de));
4354
+ if (pe = Error("Illegal salt length: " + L.length + " != " + $), k) {
4355
+ a(k.bind(this, pe));
4356
4356
  return;
4357
4357
  } else
4358
- throw de;
4358
+ throw pe;
4359
4359
  D = 1 << D >>> 0;
4360
4360
  var ie, be, Ne = 0, Q;
4361
4361
  Int32Array ? (ie = new Int32Array(x), be = new Int32Array(V)) : (ie = x.slice(), be = V.slice()), Z(L, j, ie, be);
4362
4362
  function we() {
4363
4363
  if (S && S(Ne / D), Ne < D)
4364
- for (var Fe = Date.now(); Ne < D && (Ne = Ne + 1, J(j, ie, be), J(L, ie, be), !(Date.now() - Fe > R)); )
4364
+ for (var Fe = Date.now(); Ne < D && (Ne = Ne + 1, X(j, ie, be), X(L, ie, be), !(Date.now() - Fe > R)); )
4365
4365
  ;
4366
4366
  else {
4367
4367
  for (Ne = 0; Ne < 64; Ne++)
@@ -4417,7 +4417,7 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4417
4417
  return;
4418
4418
  } else
4419
4419
  throw S;
4420
- var de = parseInt(L.substring(z, z + 1), 10) * 10, ie = parseInt(L.substring(z + 1, z + 2), 10), be = de + ie, Ne = L.substring(z + 3, z + 25);
4420
+ var pe = parseInt(L.substring(z, z + 1), 10) * 10, ie = parseInt(L.substring(z + 1, z + 2), 10), be = pe + ie, Ne = L.substring(z + 3, z + 25);
4421
4421
  j += P >= "a" ? "\0" : "";
4422
4422
  var Q = l(j), we = g(Ne, $);
4423
4423
  function Rn(Fe) {
@@ -4425,8 +4425,8 @@ const Mw = {}, qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4425
4425
  return Ge.push("$2"), P >= "a" && Ge.push(P), Ge.push("$"), be < 10 && Ge.push("0"), Ge.push(be.toString()), Ge.push("$"), Ge.push(h(we, we.length)), Ge.push(h(Fe, W.length * 4 - 1)), Ge.join("");
4426
4426
  }
4427
4427
  if (typeof D > "u")
4428
- return Rn(he(Q, we, be));
4429
- he(Q, we, be, function(Fe, Ge) {
4428
+ return Rn(de(Q, we, be));
4429
+ de(Q, we, be, function(Fe, Ge) {
4430
4430
  Fe ? D(Fe, null) : D(null, Rn(Ge));
4431
4431
  }, k);
4432
4432
  }
@@ -7869,7 +7869,7 @@ var mh;
7869
7869
  throw new TypeError();
7870
7870
  if (!Q(ve) && !me(ve))
7871
7871
  throw new TypeError();
7872
- de(O, T, te, ve);
7872
+ pe(O, T, te, ve);
7873
7873
  }
7874
7874
  return q;
7875
7875
  }
@@ -7877,7 +7877,7 @@ var mh;
7877
7877
  function W(O, T, q, te) {
7878
7878
  if (!Fe(q))
7879
7879
  throw new TypeError();
7880
- return Q(te) || (te = et(te)), de(O, T, q, te);
7880
+ return Q(te) || (te = et(te)), pe(O, T, q, te);
7881
7881
  }
7882
7882
  e("defineMetadata", W);
7883
7883
  function U(O, T, q) {
@@ -7892,24 +7892,24 @@ var mh;
7892
7892
  return Q(q) || (q = et(q)), S(O, T, q);
7893
7893
  }
7894
7894
  e("hasOwnMetadata", K);
7895
- function J(O, T, q) {
7895
+ function X(O, T, q) {
7896
7896
  if (!Fe(T))
7897
7897
  throw new TypeError();
7898
7898
  return Q(q) || (q = et(q)), P(O, T, q);
7899
7899
  }
7900
- e("getMetadata", J);
7900
+ e("getMetadata", X);
7901
7901
  function Z(O, T, q) {
7902
7902
  if (!Fe(T))
7903
7903
  throw new TypeError();
7904
7904
  return Q(q) || (q = et(q)), z(O, T, q);
7905
7905
  }
7906
7906
  e("getOwnMetadata", Z);
7907
- function he(O, T) {
7907
+ function de(O, T) {
7908
7908
  if (!Fe(O))
7909
7909
  throw new TypeError();
7910
7910
  return Q(T) || (T = et(T)), ie(O, T);
7911
7911
  }
7912
- e("getMetadataKeys", he);
7912
+ e("getMetadataKeys", de);
7913
7913
  function Ie(O, T) {
7914
7914
  if (!Fe(O))
7915
7915
  throw new TypeError();
@@ -7987,7 +7987,7 @@ var mh;
7987
7987
  if (!Q(te))
7988
7988
  return te.OrdinaryGetOwnMetadata(O, T, q);
7989
7989
  }
7990
- function de(O, T, q, te) {
7990
+ function pe(O, T, q, te) {
7991
7991
  var ve = _e(
7992
7992
  q,
7993
7993
  te,
@@ -8138,7 +8138,7 @@ var mh;
8138
8138
  return q;
8139
8139
  }
8140
8140
  }
8141
- function pe(O) {
8141
+ function fe(O) {
8142
8142
  var T = Bo(O, a);
8143
8143
  if (!Me(T))
8144
8144
  throw new TypeError();
@@ -8206,7 +8206,7 @@ var mh;
8206
8206
  if (q.isProviderFor(v, E))
8207
8207
  return T;
8208
8208
  if (!Q(te))
8209
- for (var G = pe(te); ; ) {
8209
+ for (var G = fe(te); ; ) {
8210
8210
  var ye = jo(G);
8211
8211
  if (!ye)
8212
8212
  return;
@@ -8316,7 +8316,7 @@ var mh;
8316
8316
  );
8317
8317
  if (Q(E))
8318
8318
  return v;
8319
- for (var G = E.keys(), ye = pe(G), Te = 0; ; ) {
8319
+ for (var G = E.keys(), ye = fe(G), Te = 0; ; ) {
8320
8320
  var se = jo(ye);
8321
8321
  if (!se)
8322
8322
  return v.length = Te, v;
@@ -8703,7 +8703,7 @@ class yn {
8703
8703
  return r;
8704
8704
  }
8705
8705
  }
8706
- class fe {
8706
+ class he {
8707
8707
  static isHex(e) {
8708
8708
  return typeof e === Cl && Kb.test(e);
8709
8709
  }
@@ -8770,7 +8770,7 @@ class fe {
8770
8770
  const n = this.formatString(e);
8771
8771
  if (!n)
8772
8772
  return new ArrayBuffer(0);
8773
- if (!fe.isBase64(n))
8773
+ if (!he.isBase64(n))
8774
8774
  throw new TypeError("Argument 'base64Text' is not Base64 encoded");
8775
8775
  return typeof atob < "u" ? this.FromBinary(atob(n)) : new Uint8Array(Buffer.from(n, "base64")).buffer;
8776
8776
  }
@@ -8778,14 +8778,14 @@ class fe {
8778
8778
  const n = this.formatString(e);
8779
8779
  if (!n)
8780
8780
  return new ArrayBuffer(0);
8781
- if (!fe.isBase64Url(n))
8781
+ if (!he.isBase64Url(n))
8782
8782
  throw new TypeError("Argument 'base64url' is not Base64Url encoded");
8783
8783
  return this.FromBase64(this.Base64Padding(n.replace(/\-/g, "+").replace(/\_/g, "/")));
8784
8784
  }
8785
8785
  static ToBase64Url(e) {
8786
8786
  return this.ToBase64(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
8787
8787
  }
8788
- static FromUtf8String(e, n = fe.DEFAULT_UTF8_ENCODING) {
8788
+ static FromUtf8String(e, n = he.DEFAULT_UTF8_ENCODING) {
8789
8789
  switch (n) {
8790
8790
  case "ascii":
8791
8791
  return this.FromBinary(e);
@@ -8801,7 +8801,7 @@ class fe {
8801
8801
  throw new Error(`Unknown type of encoding '${n}'`);
8802
8802
  }
8803
8803
  }
8804
- static ToUtf8String(e, n = fe.DEFAULT_UTF8_ENCODING) {
8804
+ static ToUtf8String(e, n = he.DEFAULT_UTF8_ENCODING) {
8805
8805
  switch (n) {
8806
8806
  case "ascii":
8807
8807
  return this.ToBinary(e);
@@ -8844,7 +8844,7 @@ class fe {
8844
8844
  let n = this.formatString(e);
8845
8845
  if (!n)
8846
8846
  return new ArrayBuffer(0);
8847
- if (!fe.isHex(n))
8847
+ if (!he.isHex(n))
8848
8848
  throw new TypeError("Argument 'hexString' is not HEX encoded");
8849
8849
  n.length % 2 && (n = `0${n}`);
8850
8850
  const r = new Uint8Array(n.length / 2);
@@ -8871,7 +8871,7 @@ class fe {
8871
8871
  return (e == null ? void 0 : e.replace(/[\n\r\t ]/g, "")) || "";
8872
8872
  }
8873
8873
  }
8874
- fe.DEFAULT_UTF8_ENCODING = "utf8";
8874
+ he.DEFAULT_UTF8_ENCODING = "utf8";
8875
8875
  function Xb(...t) {
8876
8876
  const e = t.map((i) => i.byteLength).reduce((i, s) => i + s), n = new Uint8Array(e);
8877
8877
  let r = 0;
@@ -9083,7 +9083,7 @@ function Tn(t) {
9083
9083
  return {
9084
9084
  ...super.toJSON(),
9085
9085
  isHexOnly: this.isHexOnly,
9086
- valueHex: fe.ToHex(this.valueHexView)
9086
+ valueHex: he.ToHex(this.valueHexView)
9087
9087
  };
9088
9088
  }
9089
9089
  }, e.NAME = "hexBlock", e;
@@ -9107,7 +9107,7 @@ class ti {
9107
9107
  blockLength: this.blockLength,
9108
9108
  error: this.error,
9109
9109
  warnings: this.warnings,
9110
- valueBeforeDecode: fe.ToHex(this.valueBeforeDecodeView)
9110
+ valueBeforeDecode: he.ToHex(this.valueBeforeDecodeView)
9111
9111
  };
9112
9112
  }
9113
9113
  }
@@ -9334,10 +9334,10 @@ class pt extends ti {
9334
9334
  return this.primitiveSchema && (e.primitiveSchema = this.primitiveSchema.toJSON()), e;
9335
9335
  }
9336
9336
  toString(e = "ascii") {
9337
- return e === "ascii" ? this.onAsciiEncoding() : fe.ToHex(this.toBER());
9337
+ return e === "ascii" ? this.onAsciiEncoding() : he.ToHex(this.toBER());
9338
9338
  }
9339
9339
  onAsciiEncoding() {
9340
- const e = this.constructor.NAME, n = fe.ToHex(this.valueBlock.valueBeforeDecodeView);
9340
+ const e = this.constructor.NAME, n = he.ToHex(this.valueBlock.valueBeforeDecodeView);
9341
9341
  return `${e} : ${n}`;
9342
9342
  }
9343
9343
  isEqual(e) {
@@ -9784,7 +9784,7 @@ let jr = class extends pt {
9784
9784
  onAsciiEncoding() {
9785
9785
  if (this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length)
9786
9786
  return wt.prototype.onAsciiEncoding.call(this);
9787
- const e = this.constructor.NAME, n = fe.ToHex(this.valueBlock.valueHexView);
9787
+ const e = this.constructor.NAME, n = he.ToHex(this.valueBlock.valueHexView);
9788
9788
  return `${e} : ${n}`;
9789
9789
  }
9790
9790
  getValue() {
@@ -10050,11 +10050,11 @@ class Hi extends pt {
10050
10050
  }
10051
10051
  static fromBigInt(e) {
10052
10052
  ma();
10053
- const n = BigInt(e), r = new mc(), i = n.toString(16).replace(/^-/, ""), s = new Uint8Array(fe.FromHex(i));
10053
+ const n = BigInt(e), r = new mc(), i = n.toString(16).replace(/^-/, ""), s = new Uint8Array(he.FromHex(i));
10054
10054
  if (n < 0) {
10055
10055
  const l = new Uint8Array(s.length + (s[0] & 128 ? 1 : 0));
10056
10056
  l[0] |= 128;
10057
- const d = BigInt(`0x${fe.ToHex(l)}`) + n, p = re.toUint8Array(fe.FromHex(d.toString(16)));
10057
+ const d = BigInt(`0x${he.ToHex(l)}`) + n, p = re.toUint8Array(he.FromHex(d.toString(16)));
10058
10058
  p[0] |= 128, r.write(p);
10059
10059
  } else
10060
10060
  s[0] & 128 && r.write(new Uint8Array([0])), r.write(s);
@@ -10138,7 +10138,7 @@ class Au extends Tn(vt) {
10138
10138
  toString() {
10139
10139
  let e = "";
10140
10140
  if (this.isHexOnly)
10141
- e = fe.ToHex(this.valueHexView);
10141
+ e = he.ToHex(this.valueHexView);
10142
10142
  else if (this.isFirstSid) {
10143
10143
  let n = this.valueDec;
10144
10144
  this.valueDec <= 39 ? e = "0." : this.valueDec <= 79 ? (e = "1.", n -= 40) : (e = "2.", n -= 80), e += n.toString();
@@ -10302,7 +10302,7 @@ class Eu extends Tn(ti) {
10302
10302
  }
10303
10303
  toString() {
10304
10304
  let e = "";
10305
- return this.isHexOnly ? e = fe.ToHex(this.valueHexView) : e = this.valueDec.toString(), e;
10305
+ return this.isHexOnly ? e = he.ToHex(this.valueHexView) : e = this.valueDec.toString(), e;
10306
10306
  }
10307
10307
  toJSON() {
10308
10308
  return {
@@ -10445,13 +10445,13 @@ class y_ extends qt {
10445
10445
  fromBuffer(e) {
10446
10446
  this.valueBlock.valueHexView = re.toUint8Array(e);
10447
10447
  try {
10448
- this.valueBlock.value = fe.ToUtf8String(e);
10448
+ this.valueBlock.value = he.ToUtf8String(e);
10449
10449
  } catch (n) {
10450
- this.warnings.push(`Error during "decodeURIComponent": ${n}, using raw string`), this.valueBlock.value = fe.ToBinary(e);
10450
+ this.warnings.push(`Error during "decodeURIComponent": ${n}, using raw string`), this.valueBlock.value = he.ToBinary(e);
10451
10451
  }
10452
10452
  }
10453
10453
  fromString(e) {
10454
- this.valueBlock.valueHexView = new Uint8Array(fe.FromUtf8String(e)), this.valueBlock.value = e;
10454
+ this.valueBlock.valueHexView = new Uint8Array(he.FromUtf8String(e)), this.valueBlock.value = e;
10455
10455
  }
10456
10456
  }
10457
10457
  y_.NAME = "Utf8StringValueBlock";
@@ -10466,10 +10466,10 @@ ue.Utf8String = w_;
10466
10466
  Zn.NAME = "UTF8String";
10467
10467
  class v_ extends qt {
10468
10468
  fromBuffer(e) {
10469
- this.valueBlock.value = fe.ToUtf16String(e), this.valueBlock.valueHexView = re.toUint8Array(e);
10469
+ this.valueBlock.value = he.ToUtf16String(e), this.valueBlock.valueHexView = re.toUint8Array(e);
10470
10470
  }
10471
10471
  fromString(e) {
10472
- this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(fe.FromUtf16String(e));
10472
+ this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(he.FromUtf16String(e));
10473
10473
  }
10474
10474
  }
10475
10475
  v_.NAME = "BmpStringValueBlock";
@@ -11387,7 +11387,7 @@ class R3 {
11387
11387
  return n ? this.items.get(n) || this.findParentSchema(n) : null;
11388
11388
  }
11389
11389
  }
11390
- const nt = new R3(), X = (t) => (e) => {
11390
+ const nt = new R3(), J = (t) => (e) => {
11391
11391
  let n;
11392
11392
  nt.has(e) ? n = nt.get(e) : (n = nt.createDefault(e), nt.set(e, n)), Object.assign(n, t);
11393
11393
  }, y = (t) => (e, n) => {
@@ -11861,7 +11861,7 @@ class bh {
11861
11861
  const l = s.reduce((u, d) => u + (d.toString(2).match(/1/g) || []).length, 0);
11862
11862
  return n.length === 8 ? `${Array.from(i).join(".")}/${l}` : `${this.formatIPv6(i)}/${l}`;
11863
11863
  }
11864
- return this.decodeIP(fe.ToHex(e));
11864
+ return this.decodeIP(he.ToHex(e));
11865
11865
  }
11866
11866
  static fromString(e) {
11867
11867
  if (e.includes("/")) {
@@ -11901,14 +11901,14 @@ m([
11901
11901
  y({ type: C.BmpString })
11902
11902
  ], ft.prototype, "bmpString", void 0);
11903
11903
  ft = m([
11904
- X({ type: H.Choice })
11904
+ J({ type: H.Choice })
11905
11905
  ], ft);
11906
11906
  let ki = class extends ft {
11907
11907
  constructor(e = {}) {
11908
11908
  super(e), Object.assign(this, e);
11909
11909
  }
11910
11910
  toString() {
11911
- return this.ia5String || (this.anyValue ? fe.ToHex(this.anyValue) : super.toString());
11911
+ return this.ia5String || (this.anyValue ? he.ToHex(this.anyValue) : super.toString());
11912
11912
  }
11913
11913
  };
11914
11914
  m([
@@ -11918,7 +11918,7 @@ m([
11918
11918
  y({ type: C.Any })
11919
11919
  ], ki.prototype, "anyValue", void 0);
11920
11920
  ki = m([
11921
- X({ type: H.Choice })
11921
+ J({ type: H.Choice })
11922
11922
  ], ki);
11923
11923
  class Dc {
11924
11924
  constructor(e = {}) {
@@ -11937,7 +11937,7 @@ let Ni = Su = class extends je {
11937
11937
  }
11938
11938
  };
11939
11939
  Ni = Su = m([
11940
- X({ type: H.Set, itemType: Dc })
11940
+ J({ type: H.Set, itemType: Dc })
11941
11941
  ], Ni);
11942
11942
  let Cu = ku = class extends je {
11943
11943
  constructor(e) {
@@ -11945,7 +11945,7 @@ let Cu = ku = class extends je {
11945
11945
  }
11946
11946
  };
11947
11947
  Cu = ku = m([
11948
- X({ type: H.Sequence, itemType: Ni })
11948
+ J({ type: H.Sequence, itemType: Ni })
11949
11949
  ], Cu);
11950
11950
  let Qe = Nu = class extends Cu {
11951
11951
  constructor(e) {
@@ -11953,7 +11953,7 @@ let Qe = Nu = class extends Cu {
11953
11953
  }
11954
11954
  };
11955
11955
  Qe = Nu = m([
11956
- X({ type: H.Sequence })
11956
+ J({ type: H.Sequence })
11957
11957
  ], Qe);
11958
11958
  const j3 = {
11959
11959
  fromASN: (t) => bh.toString(ya.fromASN(t)),
@@ -12019,7 +12019,7 @@ m([
12019
12019
  y({ type: C.ObjectIdentifier, context: 8, implicit: !0 })
12020
12020
  ], Ce.prototype, "registeredID", void 0);
12021
12021
  Ce = m([
12022
- X({ type: H.Choice })
12022
+ J({ type: H.Choice })
12023
12023
  ], Ce);
12024
12024
  const Ip = "1.3.6.1.5.5.7", P3 = `${Ip}.1`, zi = `${Ip}.3`, Rc = `${Ip}.48`, xh = `${Rc}.1`, $h = `${Rc}.2`, Ah = `${Rc}.3`, Eh = `${Rc}.5`, Qn = "2.5.29";
12025
12025
  var Tu;
@@ -12041,7 +12041,7 @@ let wi = Tu = class extends je {
12041
12041
  }
12042
12042
  };
12043
12043
  wi = Tu = m([
12044
- X({ type: H.Sequence, itemType: ao })
12044
+ J({ type: H.Sequence, itemType: ao })
12045
12045
  ], wi);
12046
12046
  const Ou = `${Qn}.35`;
12047
12047
  class Op extends De {
@@ -12085,7 +12085,7 @@ let mt = Du = class extends je {
12085
12085
  }
12086
12086
  };
12087
12087
  mt = Du = m([
12088
- X({ type: H.Sequence, itemType: Ce })
12088
+ J({ type: H.Sequence, itemType: Ce })
12089
12089
  ], mt);
12090
12090
  var Ru;
12091
12091
  let Sh = Ru = class extends mt {
@@ -12094,7 +12094,7 @@ let Sh = Ru = class extends mt {
12094
12094
  }
12095
12095
  };
12096
12096
  Sh = Ru = m([
12097
- X({ type: H.Sequence })
12097
+ J({ type: H.Sequence })
12098
12098
  ], Sh);
12099
12099
  var Bu;
12100
12100
  const H_ = `${Qn}.32`;
@@ -12119,7 +12119,7 @@ m([
12119
12119
  y({ type: C.Utf8String })
12120
12120
  ], qn.prototype, "utf8String", void 0);
12121
12121
  qn = m([
12122
- X({ type: H.Choice })
12122
+ J({ type: H.Choice })
12123
12123
  ], qn);
12124
12124
  class Dp {
12125
12125
  constructor(e = {}) {
@@ -12155,7 +12155,7 @@ m([
12155
12155
  y({ type: Rp })
12156
12156
  ], va.prototype, "userNotice", void 0);
12157
12157
  va = m([
12158
- X({ type: H.Choice })
12158
+ J({ type: H.Choice })
12159
12159
  ], va);
12160
12160
  class Bp {
12161
12161
  constructor(e = {}) {
@@ -12185,7 +12185,7 @@ let ba = Bu = class extends je {
12185
12185
  }
12186
12186
  };
12187
12187
  ba = Bu = m([
12188
- X({ type: H.Sequence, itemType: Bc })
12188
+ J({ type: H.Sequence, itemType: Bc })
12189
12189
  ], ba);
12190
12190
  let xa = class {
12191
12191
  constructor(e = 0) {
@@ -12196,12 +12196,12 @@ m([
12196
12196
  y({ type: C.Integer })
12197
12197
  ], xa.prototype, "value", void 0);
12198
12198
  xa = m([
12199
- X({ type: H.Choice })
12199
+ J({ type: H.Choice })
12200
12200
  ], xa);
12201
12201
  let kh = class extends xa {
12202
12202
  };
12203
12203
  kh = m([
12204
- X({ type: H.Choice })
12204
+ J({ type: H.Choice })
12205
12205
  ], kh);
12206
12206
  var ju;
12207
12207
  const Pu = `${Qn}.31`;
@@ -12230,7 +12230,7 @@ m([
12230
12230
  y({ type: Ni, context: 1, implicit: !0 })
12231
12231
  ], Mr.prototype, "nameRelativeToCRLIssuer", void 0);
12232
12232
  Mr = m([
12233
- X({ type: H.Choice })
12233
+ J({ type: H.Choice })
12234
12234
  ], Mr);
12235
12235
  class Ki {
12236
12236
  constructor(e = {}) {
@@ -12252,7 +12252,7 @@ let xi = ju = class extends je {
12252
12252
  }
12253
12253
  };
12254
12254
  xi = ju = m([
12255
- X({ type: H.Sequence, itemType: Ki })
12255
+ J({ type: H.Sequence, itemType: Ki })
12256
12256
  ], xi);
12257
12257
  var Lu;
12258
12258
  let Nh = Lu = class extends xi {
@@ -12261,7 +12261,7 @@ let Nh = Lu = class extends xi {
12261
12261
  }
12262
12262
  };
12263
12263
  Nh = Lu = m([
12264
- X({ type: H.Sequence, itemType: Ki })
12264
+ J({ type: H.Sequence, itemType: Ki })
12265
12265
  ], Nh);
12266
12266
  class gt {
12267
12267
  constructor(e = {}) {
@@ -12326,7 +12326,7 @@ m([
12326
12326
  y({ type: C.Enumerated })
12327
12327
  ], Fu.prototype, "reason", void 0);
12328
12328
  Fu = m([
12329
- X({ type: H.Choice })
12329
+ J({ type: H.Choice })
12330
12330
  ], Fu);
12331
12331
  var Uu;
12332
12332
  const K_ = `${Qn}.37`;
@@ -12336,7 +12336,7 @@ let $a = Uu = class extends je {
12336
12336
  }
12337
12337
  };
12338
12338
  $a = Uu = m([
12339
- X({ type: H.Sequence, itemType: C.ObjectIdentifier })
12339
+ J({ type: H.Sequence, itemType: C.ObjectIdentifier })
12340
12340
  ], $a);
12341
12341
  const L3 = `${zi}.1`, F3 = `${zi}.2`, U3 = `${zi}.3`, M3 = `${zi}.4`, q3 = `${zi}.8`, V3 = `${zi}.9`;
12342
12342
  let Mu = class {
@@ -12348,7 +12348,7 @@ m([
12348
12348
  y({ type: C.Integer, converter: He })
12349
12349
  ], Mu.prototype, "value", void 0);
12350
12350
  Mu = m([
12351
- X({ type: H.Choice })
12351
+ J({ type: H.Choice })
12352
12352
  ], Mu);
12353
12353
  let qu = class {
12354
12354
  constructor(e) {
@@ -12359,7 +12359,7 @@ m([
12359
12359
  y({ type: C.GeneralizedTime })
12360
12360
  ], qu.prototype, "value", void 0);
12361
12361
  qu = m([
12362
- X({ type: H.Choice })
12362
+ J({ type: H.Choice })
12363
12363
  ], qu);
12364
12364
  var Vu;
12365
12365
  const G_ = `${Qn}.18`;
@@ -12369,7 +12369,7 @@ let Ch = Vu = class extends mt {
12369
12369
  }
12370
12370
  };
12371
12371
  Ch = Vu = m([
12372
- X({ type: H.Sequence })
12372
+ J({ type: H.Sequence })
12373
12373
  ], Ch);
12374
12374
  const W_ = `${Qn}.15`;
12375
12375
  var rn;
@@ -12406,7 +12406,7 @@ let Aa = Hu = class extends je {
12406
12406
  }
12407
12407
  };
12408
12408
  Aa = Hu = m([
12409
- X({ type: H.Sequence, itemType: jc })
12409
+ J({ type: H.Sequence, itemType: jc })
12410
12410
  ], Aa);
12411
12411
  class X_ {
12412
12412
  constructor(e = {}) {
@@ -12460,7 +12460,7 @@ let Th = zu = class extends je {
12460
12460
  }
12461
12461
  };
12462
12462
  Th = zu = m([
12463
- X({ type: H.Sequence, itemType: jp })
12463
+ J({ type: H.Sequence, itemType: jp })
12464
12464
  ], Th);
12465
12465
  var Ku;
12466
12466
  const Y_ = `${Qn}.17`;
@@ -12470,7 +12470,7 @@ let Gu = Ku = class extends mt {
12470
12470
  }
12471
12471
  };
12472
12472
  Gu = Ku = m([
12473
- X({ type: H.Sequence })
12473
+ J({ type: H.Sequence })
12474
12474
  ], Gu);
12475
12475
  let Vn = class {
12476
12476
  constructor(e = {}) {
@@ -12490,7 +12490,7 @@ let Ih = Wu = class extends je {
12490
12490
  }
12491
12491
  };
12492
12492
  Ih = Wu = m([
12493
- X({ type: H.Sequence, itemType: Vn })
12493
+ J({ type: H.Sequence, itemType: Vn })
12494
12494
  ], Ih);
12495
12495
  const Z_ = `${Qn}.14`;
12496
12496
  class fr extends Op {
@@ -12537,7 +12537,7 @@ let Oh = Xu = class extends je {
12537
12537
  }
12538
12538
  };
12539
12539
  Oh = Xu = m([
12540
- X({ type: H.Sequence, itemType: ao })
12540
+ J({ type: H.Sequence, itemType: ao })
12541
12541
  ], Oh);
12542
12542
  class le {
12543
12543
  constructor(e = {}) {
@@ -12596,7 +12596,7 @@ m([
12596
12596
  })
12597
12597
  ], dt.prototype, "generalTime", void 0);
12598
12598
  dt = m([
12599
- X({ type: H.Choice })
12599
+ J({ type: H.Choice })
12600
12600
  ], dt);
12601
12601
  class co {
12602
12602
  constructor(e) {
@@ -12634,7 +12634,7 @@ let mr = Ju = class extends je {
12634
12634
  }
12635
12635
  };
12636
12636
  mr = Ju = m([
12637
- X({ type: H.Sequence, itemType: Zt })
12637
+ J({ type: H.Sequence, itemType: Zt })
12638
12638
  ], mr);
12639
12639
  var qr;
12640
12640
  (function(t) {
@@ -12778,7 +12778,7 @@ m([
12778
12778
  y({ type: Gi })
12779
12779
  ], Ci.prototype, "issuerAndSerialNumber", void 0);
12780
12780
  Ci = m([
12781
- X({ type: H.Choice })
12781
+ J({ type: H.Choice })
12782
12782
  ], Ci);
12783
12783
  var Hn;
12784
12784
  (function(t) {
@@ -12787,32 +12787,32 @@ var Hn;
12787
12787
  let Ds = class extends le {
12788
12788
  };
12789
12789
  Ds = m([
12790
- X({ type: H.Sequence })
12790
+ J({ type: H.Sequence })
12791
12791
  ], Ds);
12792
12792
  let Ea = class extends le {
12793
12793
  };
12794
12794
  Ea = m([
12795
- X({ type: H.Sequence })
12795
+ J({ type: H.Sequence })
12796
12796
  ], Ea);
12797
12797
  let kn = class extends le {
12798
12798
  };
12799
12799
  kn = m([
12800
- X({ type: H.Sequence })
12800
+ J({ type: H.Sequence })
12801
12801
  ], kn);
12802
12802
  let Sa = class extends le {
12803
12803
  };
12804
12804
  Sa = m([
12805
- X({ type: H.Sequence })
12805
+ J({ type: H.Sequence })
12806
12806
  ], Sa);
12807
12807
  let Dh = class extends le {
12808
12808
  };
12809
12809
  Dh = m([
12810
- X({ type: H.Sequence })
12810
+ J({ type: H.Sequence })
12811
12811
  ], Dh);
12812
12812
  let Yu = class extends le {
12813
12813
  };
12814
12814
  Yu = m([
12815
- X({ type: H.Sequence })
12815
+ J({ type: H.Sequence })
12816
12816
  ], Yu);
12817
12817
  let Wi = class {
12818
12818
  constructor(e = {}) {
@@ -12858,17 +12858,17 @@ let ka = Zu = class extends je {
12858
12858
  }
12859
12859
  };
12860
12860
  ka = Zu = m([
12861
- X({ type: H.Set, itemType: In })
12861
+ J({ type: H.Set, itemType: In })
12862
12862
  ], ka);
12863
12863
  let Rh = class extends dt {
12864
12864
  };
12865
12865
  Rh = m([
12866
- X({ type: H.Choice })
12866
+ J({ type: H.Choice })
12867
12867
  ], Rh);
12868
12868
  let Bh = class extends In {
12869
12869
  };
12870
12870
  Bh = m([
12871
- X({ type: H.Sequence })
12871
+ J({ type: H.Sequence })
12872
12872
  ], Bh);
12873
12873
  class Lp {
12874
12874
  constructor(e = {}) {
@@ -12891,7 +12891,7 @@ let Na = Qu = class extends je {
12891
12891
  }
12892
12892
  };
12893
12893
  Na = Qu = m([
12894
- X({ type: H.Sequence, itemType: C.ObjectIdentifier })
12894
+ J({ type: H.Sequence, itemType: C.ObjectIdentifier })
12895
12895
  ], Na);
12896
12896
  class Lc {
12897
12897
  constructor(e = {}) {
@@ -12971,7 +12971,7 @@ m([
12971
12971
  y({ type: Fc, context: 0, implicit: !0 })
12972
12972
  ], Ti.prototype, "v2Form", void 0);
12973
12973
  Ti = m([
12974
- X({ type: H.Choice })
12974
+ J({ type: H.Choice })
12975
12975
  ], Ti);
12976
12976
  class Uc {
12977
12977
  constructor(e = {}) {
@@ -13134,7 +13134,7 @@ m([
13134
13134
  y({ type: Vc, context: 2, implicit: !0 })
13135
13135
  ], Ii.prototype, "targetCert", void 0);
13136
13136
  Ii = m([
13137
- X({ type: H.Choice })
13137
+ J({ type: H.Choice })
13138
13138
  ], Ii);
13139
13139
  let id = rd = class extends je {
13140
13140
  constructor(e) {
@@ -13142,7 +13142,7 @@ let id = rd = class extends je {
13142
13142
  }
13143
13143
  };
13144
13144
  id = rd = m([
13145
- X({ type: H.Sequence, itemType: Ii })
13145
+ J({ type: H.Sequence, itemType: Ii })
13146
13146
  ], id);
13147
13147
  var sd;
13148
13148
  let jh = sd = class extends je {
@@ -13151,7 +13151,7 @@ let jh = sd = class extends je {
13151
13151
  }
13152
13152
  };
13153
13153
  jh = sd = m([
13154
- X({ type: H.Sequence, itemType: id })
13154
+ J({ type: H.Sequence, itemType: id })
13155
13155
  ], jh);
13156
13156
  class i2 {
13157
13157
  constructor(e = {}) {
@@ -13205,7 +13205,7 @@ m([
13205
13205
  y({ type: qp, context: 3, implicit: !0 })
13206
13206
  ], Oi.prototype, "other", void 0);
13207
13207
  Oi = m([
13208
- X({ type: H.Choice })
13208
+ J({ type: H.Choice })
13209
13209
  ], Oi);
13210
13210
  let Ta = od = class extends je {
13211
13211
  constructor(e) {
@@ -13213,7 +13213,7 @@ let Ta = od = class extends je {
13213
13213
  }
13214
13214
  };
13215
13215
  Ta = od = m([
13216
- X({ type: H.Set, itemType: Oi })
13216
+ J({ type: H.Set, itemType: Oi })
13217
13217
  ], Ta);
13218
13218
  class Xi {
13219
13219
  constructor(e = {}) {
@@ -13238,7 +13238,7 @@ m([
13238
13238
  y({ type: C.Any })
13239
13239
  ], Rs.prototype, "any", void 0);
13240
13240
  Rs = m([
13241
- X({ type: H.Choice })
13241
+ J({ type: H.Choice })
13242
13242
  ], Rs);
13243
13243
  class Hc {
13244
13244
  constructor(e = {}) {
@@ -13270,7 +13270,7 @@ m([
13270
13270
  })
13271
13271
  ], Bs.prototype, "constructedValue", void 0);
13272
13272
  Bs = m([
13273
- X({ type: H.Choice })
13273
+ J({ type: H.Choice })
13274
13274
  ], Bs);
13275
13275
  class uo {
13276
13276
  constructor(e = {}) {
@@ -13324,7 +13324,7 @@ m([
13324
13324
  y({ type: Gi, optional: !0 })
13325
13325
  ], Di.prototype, "issuerAndSerialNumber", void 0);
13326
13326
  Di = m([
13327
- X({ type: H.Choice })
13327
+ J({ type: H.Choice })
13328
13328
  ], Di);
13329
13329
  class Vp {
13330
13330
  constructor(e = {}) {
@@ -13343,7 +13343,7 @@ let Ia = ad = class extends je {
13343
13343
  }
13344
13344
  };
13345
13345
  Ia = ad = m([
13346
- X({ type: H.Sequence, itemType: Vp })
13346
+ J({ type: H.Sequence, itemType: Vp })
13347
13347
  ], Ia);
13348
13348
  class Hp {
13349
13349
  constructor(e = {}) {
@@ -13371,7 +13371,7 @@ m([
13371
13371
  y({ type: Gi, optional: !0 })
13372
13372
  ], Hr.prototype, "issuerAndSerialNumber", void 0);
13373
13373
  Hr = m([
13374
- X({ type: H.Choice })
13374
+ J({ type: H.Choice })
13375
13375
  ], Hr);
13376
13376
  class Ji {
13377
13377
  constructor(e = {}) {
@@ -13405,7 +13405,7 @@ m([
13405
13405
  y({ type: Gi })
13406
13406
  ], Ri.prototype, "issuerAndSerialNumber", void 0);
13407
13407
  Ri = m([
13408
- X({ type: H.Choice })
13408
+ J({ type: H.Choice })
13409
13409
  ], Ri);
13410
13410
  class po {
13411
13411
  constructor(e = {}) {
@@ -13504,7 +13504,7 @@ m([
13504
13504
  y({ type: zp, context: 4, implicit: !0, optional: !0 })
13505
13505
  ], _r.prototype, "ori", void 0);
13506
13506
  _r = m([
13507
- X({ type: H.Choice })
13507
+ J({ type: H.Choice })
13508
13508
  ], _r);
13509
13509
  var cd;
13510
13510
  let Oa = cd = class extends je {
@@ -13513,7 +13513,7 @@ let Oa = cd = class extends je {
13513
13513
  }
13514
13514
  };
13515
13515
  Oa = cd = m([
13516
- X({ type: H.Set, itemType: _r })
13516
+ J({ type: H.Set, itemType: _r })
13517
13517
  ], Oa);
13518
13518
  var ld;
13519
13519
  class Gc {
@@ -13536,7 +13536,7 @@ m([
13536
13536
  y({ type: Gc, context: 1, implicit: !0 })
13537
13537
  ], Da.prototype, "other", void 0);
13538
13538
  Da = m([
13539
- X({ type: H.Choice })
13539
+ J({ type: H.Choice })
13540
13540
  ], Da);
13541
13541
  let Ra = ld = class extends je {
13542
13542
  constructor(e) {
@@ -13544,7 +13544,7 @@ let Ra = ld = class extends je {
13544
13544
  }
13545
13545
  };
13546
13546
  Ra = ld = m([
13547
- X({ type: H.Set, itemType: Da })
13547
+ J({ type: H.Set, itemType: Da })
13548
13548
  ], Ra);
13549
13549
  class Kp {
13550
13550
  constructor(e = {}) {
@@ -13564,7 +13564,7 @@ let dd = ud = class extends je {
13564
13564
  }
13565
13565
  };
13566
13566
  dd = ud = m([
13567
- X({ type: H.Set, itemType: Wi })
13567
+ J({ type: H.Set, itemType: Wi })
13568
13568
  ], dd);
13569
13569
  class mo {
13570
13570
  constructor(e = {}) {
@@ -13594,7 +13594,7 @@ let Ba = pd = class extends je {
13594
13594
  }
13595
13595
  };
13596
13596
  Ba = pd = m([
13597
- X({ type: H.Set, itemType: Ds })
13597
+ J({ type: H.Set, itemType: Ds })
13598
13598
  ], Ba);
13599
13599
  class Yi {
13600
13600
  constructor(e = {}) {
@@ -13638,7 +13638,7 @@ m([
13638
13638
  y({ type: C.Any })
13639
13639
  ], Ps.prototype, "parameters", void 0);
13640
13640
  Ps = m([
13641
- X({ type: H.Sequence })
13641
+ J({ type: H.Sequence })
13642
13642
  ], Ps);
13643
13643
  class X3 extends De {
13644
13644
  }
@@ -13657,7 +13657,7 @@ m([
13657
13657
  y({ type: C.BitString, optional: !0 })
13658
13658
  ], Bi.prototype, "seed", void 0);
13659
13659
  Bi = m([
13660
- X({ type: H.Sequence })
13660
+ J({ type: H.Sequence })
13661
13661
  ], Bi);
13662
13662
  var fd;
13663
13663
  (function(t) {
@@ -13687,7 +13687,7 @@ m([
13687
13687
  y({ type: C.Integer, optional: !0 })
13688
13688
  ], zn.prototype, "cofactor", void 0);
13689
13689
  zn = m([
13690
- X({ type: H.Sequence })
13690
+ J({ type: H.Sequence })
13691
13691
  ], zn);
13692
13692
  let yr = class {
13693
13693
  constructor(e = {}) {
@@ -13704,7 +13704,7 @@ m([
13704
13704
  y({ type: zn })
13705
13705
  ], yr.prototype, "specifiedCurve", void 0);
13706
13706
  yr = m([
13707
- X({ type: H.Choice })
13707
+ J({ type: H.Choice })
13708
13708
  ], yr);
13709
13709
  class Wc {
13710
13710
  constructor(e = {}) {
@@ -13862,7 +13862,7 @@ let md = gd = class extends je {
13862
13862
  }
13863
13863
  };
13864
13864
  md = gd = m([
13865
- X({ type: H.Sequence, itemType: Zc })
13865
+ J({ type: H.Sequence, itemType: Zc })
13866
13866
  ], md);
13867
13867
  class On {
13868
13868
  constructor(e = {}) {
@@ -14467,7 +14467,7 @@ let Mh = vd = class extends je {
14467
14467
  }
14468
14468
  };
14469
14469
  Mh = vd = m([
14470
- X({ type: H.Sequence, itemType: el })
14470
+ J({ type: H.Sequence, itemType: el })
14471
14471
  ], Mh);
14472
14472
  var bd;
14473
14473
  let qh = bd = class extends je {
@@ -14476,7 +14476,7 @@ let qh = bd = class extends je {
14476
14476
  }
14477
14477
  };
14478
14478
  qh = bd = m([
14479
- X({ type: H.Sequence, itemType: Xi })
14479
+ J({ type: H.Sequence, itemType: Xi })
14480
14480
  ], qh);
14481
14481
  class h2 {
14482
14482
  constructor(e = {}) {
@@ -14525,7 +14525,7 @@ let Ad = xd = class extends je {
14525
14525
  }
14526
14526
  };
14527
14527
  Ad = xd = m([
14528
- X({ type: H.Sequence, itemType: Vn })
14528
+ J({ type: H.Sequence, itemType: Vn })
14529
14529
  ], Ad);
14530
14530
  class yo {
14531
14531
  constructor(e = {}) {
@@ -14547,12 +14547,12 @@ m([
14547
14547
  let Vh = class extends yo {
14548
14548
  };
14549
14549
  Vh = m([
14550
- X({ type: H.Sequence })
14550
+ J({ type: H.Sequence })
14551
14551
  ], Vh);
14552
14552
  let Hh = class extends tl {
14553
14553
  };
14554
14554
  Hh = m([
14555
- X({ type: H.Sequence })
14555
+ J({ type: H.Sequence })
14556
14556
  ], Hh);
14557
14557
  class y2 {
14558
14558
  constructor(e = {}) {
@@ -14614,7 +14614,7 @@ let zh = Ed = class extends je {
14614
14614
  }
14615
14615
  };
14616
14616
  zh = Ed = m([
14617
- X({ type: H.Sequence, itemType: rl })
14617
+ J({ type: H.Sequence, itemType: rl })
14618
14618
  ], zh);
14619
14619
  var Sd, kd, Nd;
14620
14620
  const w2 = "1.2.840.113549.1.9", v2 = `${w2}.7`, ef = `${w2}.14`;
@@ -14630,22 +14630,22 @@ m([
14630
14630
  y({ type: C.IA5String })
14631
14631
  ], za.prototype, "ia5String", void 0);
14632
14632
  za = m([
14633
- X({ type: H.Choice })
14633
+ J({ type: H.Choice })
14634
14634
  ], za);
14635
14635
  let Kh = class extends Xi {
14636
14636
  };
14637
14637
  Kh = m([
14638
- X({ type: H.Sequence })
14638
+ J({ type: H.Sequence })
14639
14639
  ], Kh);
14640
14640
  let Gh = class extends nl {
14641
14641
  };
14642
14642
  Gh = m([
14643
- X({ type: H.Sequence })
14643
+ J({ type: H.Sequence })
14644
14644
  ], Gh);
14645
14645
  let Wh = class extends tl {
14646
14646
  };
14647
14647
  Wh = m([
14648
- X({ type: H.Sequence })
14648
+ J({ type: H.Sequence })
14649
14649
  ], Wh);
14650
14650
  let Cd = class {
14651
14651
  constructor(e = "") {
@@ -14659,17 +14659,17 @@ m([
14659
14659
  y({ type: C.IA5String })
14660
14660
  ], Cd.prototype, "value", void 0);
14661
14661
  Cd = m([
14662
- X({ type: H.Choice })
14662
+ J({ type: H.Choice })
14663
14663
  ], Cd);
14664
14664
  let Xh = class extends za {
14665
14665
  };
14666
14666
  Xh = m([
14667
- X({ type: H.Choice })
14667
+ J({ type: H.Choice })
14668
14668
  ], Xh);
14669
14669
  let Jh = class extends ft {
14670
14670
  };
14671
14671
  Jh = m([
14672
- X({ type: H.Choice })
14672
+ J({ type: H.Choice })
14673
14673
  ], Jh);
14674
14674
  let Td = class {
14675
14675
  constructor(e = /* @__PURE__ */ new Date()) {
@@ -14680,12 +14680,12 @@ m([
14680
14680
  y({ type: C.GeneralizedTime })
14681
14681
  ], Td.prototype, "value", void 0);
14682
14682
  Td = m([
14683
- X({ type: H.Choice })
14683
+ J({ type: H.Choice })
14684
14684
  ], Td);
14685
14685
  let Yh = class extends ft {
14686
14686
  };
14687
14687
  Yh = m([
14688
- X({ type: H.Choice })
14688
+ J({ type: H.Choice })
14689
14689
  ], Yh);
14690
14690
  let Id = class {
14691
14691
  constructor(e = "M") {
@@ -14699,7 +14699,7 @@ m([
14699
14699
  y({ type: C.PrintableString })
14700
14700
  ], Id.prototype, "value", void 0);
14701
14701
  Id = m([
14702
- X({ type: H.Choice })
14702
+ J({ type: H.Choice })
14703
14703
  ], Id);
14704
14704
  let Ka = class {
14705
14705
  constructor(e = "") {
@@ -14713,17 +14713,17 @@ m([
14713
14713
  y({ type: C.PrintableString })
14714
14714
  ], Ka.prototype, "value", void 0);
14715
14715
  Ka = m([
14716
- X({ type: H.Choice })
14716
+ J({ type: H.Choice })
14717
14717
  ], Ka);
14718
14718
  let Zh = class extends Ka {
14719
14719
  };
14720
14720
  Zh = m([
14721
- X({ type: H.Choice })
14721
+ J({ type: H.Choice })
14722
14722
  ], Zh);
14723
14723
  let Qh = class extends ft {
14724
14724
  };
14725
14725
  Qh = m([
14726
- X({ type: H.Choice })
14726
+ J({ type: H.Choice })
14727
14727
  ], Qh);
14728
14728
  let Od = class {
14729
14729
  constructor(e = "") {
@@ -14737,12 +14737,12 @@ m([
14737
14737
  y({ type: C.ObjectIdentifier })
14738
14738
  ], Od.prototype, "value", void 0);
14739
14739
  Od = m([
14740
- X({ type: H.Choice })
14740
+ J({ type: H.Choice })
14741
14741
  ], Od);
14742
14742
  let e0 = class extends dt {
14743
14743
  };
14744
14744
  e0 = m([
14745
- X({ type: H.Choice })
14745
+ J({ type: H.Choice })
14746
14746
  ], e0);
14747
14747
  let Dd = class {
14748
14748
  constructor(e = 0) {
@@ -14756,17 +14756,17 @@ m([
14756
14756
  y({ type: C.Integer })
14757
14757
  ], Dd.prototype, "value", void 0);
14758
14758
  Dd = m([
14759
- X({ type: H.Choice })
14759
+ J({ type: H.Choice })
14760
14760
  ], Dd);
14761
14761
  let t0 = class extends In {
14762
14762
  };
14763
14763
  t0 = m([
14764
- X({ type: H.Sequence })
14764
+ J({ type: H.Sequence })
14765
14765
  ], t0);
14766
14766
  let Ga = class extends ft {
14767
14767
  };
14768
14768
  Ga = m([
14769
- X({ type: H.Choice })
14769
+ J({ type: H.Choice })
14770
14770
  ], Ga);
14771
14771
  let n0 = Sd = class extends mr {
14772
14772
  constructor(e) {
@@ -14774,7 +14774,7 @@ let n0 = Sd = class extends mr {
14774
14774
  }
14775
14775
  };
14776
14776
  n0 = Sd = m([
14777
- X({ type: H.Sequence })
14777
+ J({ type: H.Sequence })
14778
14778
  ], n0);
14779
14779
  let r0 = kd = class extends je {
14780
14780
  constructor(e) {
@@ -14782,7 +14782,7 @@ let r0 = kd = class extends je {
14782
14782
  }
14783
14783
  };
14784
14784
  r0 = kd = m([
14785
- X({ type: H.Set, itemType: Wi })
14785
+ J({ type: H.Set, itemType: Wi })
14786
14786
  ], r0);
14787
14787
  let Rd = class {
14788
14788
  constructor(e = "") {
@@ -14796,12 +14796,12 @@ m([
14796
14796
  y({ type: C.BmpString })
14797
14797
  ], Rd.prototype, "value", void 0);
14798
14798
  Rd = m([
14799
- X({ type: H.Choice })
14799
+ J({ type: H.Choice })
14800
14800
  ], Rd);
14801
14801
  let Bd = class extends le {
14802
14802
  };
14803
14803
  Bd = m([
14804
- X({ type: H.Sequence })
14804
+ J({ type: H.Sequence })
14805
14805
  ], Bd);
14806
14806
  let i0 = Nd = class extends je {
14807
14807
  constructor(e) {
@@ -14809,7 +14809,7 @@ let i0 = Nd = class extends je {
14809
14809
  }
14810
14810
  };
14811
14811
  i0 = Nd = m([
14812
- X({ type: H.Sequence, itemType: Bd })
14812
+ J({ type: H.Sequence, itemType: Bd })
14813
14813
  ], i0);
14814
14814
  var jd;
14815
14815
  let Wa = jd = class extends je {
@@ -14818,7 +14818,7 @@ let Wa = jd = class extends je {
14818
14818
  }
14819
14819
  };
14820
14820
  Wa = jd = m([
14821
- X({ type: H.Sequence, itemType: Vn })
14821
+ J({ type: H.Sequence, itemType: Vn })
14822
14822
  ], Wa);
14823
14823
  class Zi {
14824
14824
  constructor(e = {}) {
@@ -15191,11 +15191,11 @@ class Sr {
15191
15191
  case "text":
15192
15192
  return Xr.serialize(this.toTextObject());
15193
15193
  case "hex":
15194
- return fe.ToHex(this.rawData);
15194
+ return he.ToHex(this.rawData);
15195
15195
  case "base64":
15196
- return fe.ToBase64(this.rawData);
15196
+ return he.ToBase64(this.rawData);
15197
15197
  case "base64url":
15198
- return fe.ToBase64Url(this.rawData);
15198
+ return he.ToBase64Url(this.rawData);
15199
15199
  default:
15200
15200
  throw TypeError("Argument 'format' is unsupported value");
15201
15201
  }
@@ -15323,7 +15323,7 @@ Nt.register("I", "2.5.4.43");
15323
15323
  Nt.register("SN", "2.5.4.4");
15324
15324
  Nt.register("T", "2.5.4.12");
15325
15325
  function E4(t, e) {
15326
- return `\\${fe.ToHex(fe.FromUtf8String(e)).toUpperCase()}`;
15326
+ return `\\${he.ToHex(he.FromUtf8String(e)).toUpperCase()}`;
15327
15327
  }
15328
15328
  function S4(t) {
15329
15329
  return t.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, E4);
@@ -15359,7 +15359,7 @@ class Jt {
15359
15359
  }
15360
15360
  toString() {
15361
15361
  return this.asn.map((e) => e.map((n) => {
15362
- const r = this.getName(n.type) || n.type, i = n.value.anyValue ? `#${fe.ToHex(n.value.anyValue)}` : S4(n.value.toString());
15362
+ const r = this.getName(n.type) || n.type, i = n.value.anyValue ? `#${he.ToHex(n.value.anyValue)}` : S4(n.value.toString());
15363
15363
  return `${r}=${i}`;
15364
15364
  }).join("+")).join(", ");
15365
15365
  }
@@ -15370,7 +15370,7 @@ class Jt {
15370
15370
  const i = {};
15371
15371
  for (const s of r) {
15372
15372
  const a = this.getName(s.type) || s.type;
15373
- (e = i[a]) !== null && e !== void 0 || (i[a] = []), i[a].push(s.value.anyValue ? `#${fe.ToHex(s.value.anyValue)}` : s.value.toString());
15373
+ (e = i[a]) !== null && e !== void 0 || (i[a] = []), i[a].push(s.value.anyValue ? `#${he.ToHex(s.value.anyValue)}` : s.value.toString());
15374
15374
  }
15375
15375
  n.push(i);
15376
15376
  }
@@ -15432,7 +15432,7 @@ class Jt {
15432
15432
  break;
15433
15433
  }
15434
15434
  else if (n[0] === "#")
15435
- r.value.anyValue = fe.FromHex(n.slice(1));
15435
+ r.value.anyValue = he.FromHex(n.slice(1));
15436
15436
  else {
15437
15437
  const i = this.processStringValue(n);
15438
15438
  e === this.getName("E") || e === this.getName("DC") ? r.value.ia5String = i : Jt.isPrintableString(i) ? r.value.printableString = i : r.value.utf8String = i;
@@ -15474,11 +15474,11 @@ class dr extends Sr {
15474
15474
  const r = new RegExp(R0, "i").exec(e[1]);
15475
15475
  if (!r)
15476
15476
  throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
15477
- const i = r.slice(1).map((s, a) => a < 3 ? fe.ToHex(new Uint8Array(fe.FromHex(s)).reverse()) : s).join("");
15477
+ const i = r.slice(1).map((s, a) => a < 3 ? he.ToHex(new Uint8Array(he.FromHex(s)).reverse()) : s).join("");
15478
15478
  n = new Ce({
15479
15479
  otherName: new Os({
15480
15480
  typeId: B0,
15481
- value: ne.serialize(new De(fe.FromHex(i)))
15481
+ value: ne.serialize(new De(he.FromHex(i)))
15482
15482
  })
15483
15483
  });
15484
15484
  break;
@@ -15523,10 +15523,10 @@ class dr extends Sr {
15523
15523
  else if (e.otherName != null)
15524
15524
  if (e.otherName.typeId === B0) {
15525
15525
  this.type = Pl;
15526
- const n = ne.parse(e.otherName.value, De), r = new RegExp(R0, "i").exec(fe.ToHex(n));
15526
+ const n = ne.parse(e.otherName.value, De), r = new RegExp(R0, "i").exec(he.ToHex(n));
15527
15527
  if (!r)
15528
15528
  throw new Error(k4);
15529
- this.value = r.slice(1).map((i, s) => s < 3 ? fe.ToHex(new Uint8Array(fe.FromHex(i)).reverse()) : i).join("-");
15529
+ this.value = r.slice(1).map((i, s) => s < 3 ? he.ToHex(new Uint8Array(he.FromHex(i)).reverse()) : i).join("-");
15530
15530
  } else if (e.otherName.typeId === j0)
15531
15531
  this.type = Ll, this.value = ne.parse(e.otherName.value, ft).toString();
15532
15532
  else
@@ -15623,7 +15623,7 @@ class Ut {
15623
15623
  const s = i[3].replace(new RegExp(`[${Us}]+`, "g"), ""), a = {
15624
15624
  type: i[1],
15625
15625
  headers: [],
15626
- rawData: fe.FromBase64(s)
15626
+ rawData: he.FromBase64(s)
15627
15627
  }, l = i[2];
15628
15628
  if (l) {
15629
15629
  const u = l.split(new RegExp(ji, "g"));
@@ -15685,7 +15685,7 @@ class Ut {
15685
15685
  i.push(`${d.key}: ${d.value}`);
15686
15686
  i.push("");
15687
15687
  }
15688
- const s = fe.ToBase64(e.rawData);
15688
+ const s = he.ToBase64(e.rawData);
15689
15689
  let a, l = 0;
15690
15690
  const u = Array();
15691
15691
  for (; l < s.length && (s.length - l < 64 ? a = s.substring(l) : (a = s.substring(l, l + 64), l += 64), a.length !== 0); )
@@ -15708,16 +15708,16 @@ class Kn extends Sr {
15708
15708
  if (typeof e == "string") {
15709
15709
  if (Ut.isPem(e))
15710
15710
  return Ut.decode(e)[0];
15711
- if (fe.isHex(e))
15712
- return fe.FromHex(e);
15713
- if (fe.isBase64(e))
15714
- return fe.FromBase64(e);
15715
- if (fe.isBase64Url(e))
15716
- return fe.FromBase64Url(e);
15711
+ if (he.isHex(e))
15712
+ return he.FromHex(e);
15713
+ if (he.isBase64(e))
15714
+ return he.FromBase64(e);
15715
+ if (he.isBase64Url(e))
15716
+ return he.FromBase64Url(e);
15717
15717
  throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
15718
15718
  } else {
15719
- const n = fe.ToBinary(e);
15720
- return Ut.isPem(n) ? Ut.decode(n)[0] : fe.isHex(n) ? fe.FromHex(n) : fe.isBase64(n) ? fe.FromBase64(n) : fe.isBase64Url(n) ? fe.FromBase64Url(n) : re.toArrayBuffer(e);
15719
+ const n = he.ToBinary(e);
15720
+ return Ut.isPem(n) ? Ut.decode(n)[0] : he.isHex(n) ? he.FromHex(n) : he.isBase64(n) ? he.FromBase64(n) : he.isBase64Url(n) ? he.FromBase64Url(n) : re.toArrayBuffer(e);
15721
15721
  }
15722
15722
  }
15723
15723
  constructor(...e) {
@@ -15804,18 +15804,18 @@ class Ms extends Ht {
15804
15804
  if ("name" in e && "serialNumber" in e)
15805
15805
  return new Ms(e, n);
15806
15806
  const s = await (await an.create(e, r)).getKeyIdentifier(r);
15807
- return new Ms(fe.ToHex(s), n);
15807
+ return new Ms(he.ToHex(s), n);
15808
15808
  }
15809
15809
  constructor(...e) {
15810
15810
  if (re.isBufferSource(e[0]))
15811
15811
  super(e[0]);
15812
15812
  else if (typeof e[0] == "string") {
15813
- const n = new Rr({ keyIdentifier: new Op(fe.FromHex(e[0])) });
15813
+ const n = new Rr({ keyIdentifier: new Op(he.FromHex(e[0])) });
15814
15814
  super(Ou, e[1], ne.serialize(n));
15815
15815
  } else {
15816
15816
  const n = e[0], r = n.name instanceof Jr ? ne.parse(n.name.rawData, mt) : n.name, i = new Rr({
15817
15817
  authorityCertIssuer: r,
15818
- authorityCertSerialNumber: fe.FromHex(n.serialNumber)
15818
+ authorityCertSerialNumber: he.FromHex(n.serialNumber)
15819
15819
  });
15820
15820
  super(Ou, e[1], ne.serialize(i));
15821
15821
  }
@@ -15823,9 +15823,9 @@ class Ms extends Ht {
15823
15823
  onInit(e) {
15824
15824
  super.onInit(e);
15825
15825
  const n = ne.parse(e.extnValue, Rr);
15826
- n.keyIdentifier && (this.keyId = fe.ToHex(n.keyIdentifier)), (n.authorityCertIssuer || n.authorityCertSerialNumber) && (this.certId = {
15826
+ n.keyIdentifier && (this.keyId = he.ToHex(n.keyIdentifier)), (n.authorityCertIssuer || n.authorityCertSerialNumber) && (this.certId = {
15827
15827
  name: n.authorityCertIssuer || [],
15828
- serialNumber: n.authorityCertSerialNumber ? fe.ToHex(n.authorityCertSerialNumber) : ""
15828
+ serialNumber: n.authorityCertSerialNumber ? he.ToHex(n.authorityCertSerialNumber) : ""
15829
15829
  });
15830
15830
  }
15831
15831
  toTextObject() {
@@ -15899,16 +15899,16 @@ rf.NAME = "Key Usages";
15899
15899
  class bo extends Ht {
15900
15900
  static async create(e, n = !1, r = ut.get()) {
15901
15901
  const s = await (await an.create(e, r)).getKeyIdentifier(r);
15902
- return new bo(fe.ToHex(s), n);
15902
+ return new bo(he.ToHex(s), n);
15903
15903
  }
15904
15904
  constructor(...e) {
15905
15905
  if (re.isBufferSource(e[0])) {
15906
15906
  super(e[0]);
15907
15907
  const n = ne.parse(this.value, fr);
15908
- this.keyId = fe.ToHex(n);
15908
+ this.keyId = he.ToHex(n);
15909
15909
  } else {
15910
- const n = typeof e[0] == "string" ? fe.FromHex(e[0]) : e[0], r = new fr(n);
15911
- super(Z_, e[1], ne.serialize(r)), this.keyId = fe.ToHex(n);
15910
+ const n = typeof e[0] == "string" ? he.FromHex(e[0]) : e[0], r = new fr(n);
15911
+ super(Z_, e[1], ne.serialize(r)), this.keyId = he.ToHex(n);
15912
15912
  }
15913
15913
  }
15914
15914
  toTextObject() {
@@ -16441,7 +16441,7 @@ class sl extends Kn {
16441
16441
  const n = e.tbsCertificate;
16442
16442
  this.tbs = ne.serialize(n);
16443
16443
  let r = new Uint8Array(n.serialNumber);
16444
- r.length > 1 && r[0] === 0 && r[1] > 127 && (r = r.slice(1)), this.serialNumber = fe.ToHex(r), this.subjectName = new Jt(n.subject), this.subject = new Jt(n.subject).toString(), this.issuerName = new Jt(n.issuer), this.issuer = this.issuerName.toString();
16444
+ r.length > 1 && r[0] === 0 && r[1] > 127 && (r = r.slice(1)), this.serialNumber = he.ToHex(r), this.subjectName = new Jt(n.subject), this.subject = new Jt(n.subject).toString(), this.issuerName = new Jt(n.issuer), this.issuer = this.issuerName.toString();
16445
16445
  const i = ht.resolve(Wr);
16446
16446
  this.signatureAlgorithm = i.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
16447
16447
  const s = n.validity.notBefore.utcTime || n.validity.notBefore.generalTime;
@@ -16555,7 +16555,7 @@ class L4 {
16555
16555
  var r;
16556
16556
  let i;
16557
16557
  e.publicKey instanceof an ? i = e.publicKey.rawData : "publicKey" in e.publicKey ? i = e.publicKey.publicKey.rawData : re.isBufferSource(e.publicKey) ? i = e.publicKey : i = await n.subtle.exportKey("spki", e.publicKey);
16558
- let s = e.serialNumber ? re.toUint8Array(fe.FromHex(e.serialNumber)) : void 0;
16558
+ let s = e.serialNumber ? re.toUint8Array(he.FromHex(e.serialNumber)) : void 0;
16559
16559
  s = this.generateSerialNumber(s, n);
16560
16560
  const a = e.notBefore || /* @__PURE__ */ new Date(), l = e.notAfter || new Date(a.getTime() + 31536e6), u = new Vr({
16561
16561
  tbsCertificate: new Vt({
@@ -18841,11 +18841,25 @@ function ul(t, e) {
18841
18841
  B,
18842
18842
  U,
18843
18843
  l
18844
- ), J = await n.get(K);
18845
- if (J !== null)
18846
- return J;
18844
+ ), X = await n.get(K);
18845
+ if (X !== null)
18846
+ if (X && typeof X == "object" && "isCachedNull" in X) {
18847
+ const de = X;
18848
+ return de.isCachedNull ? null : de.value;
18849
+ } else
18850
+ return X;
18847
18851
  const Z = await R.apply(A, U);
18848
- return V >= 0 && await n.set(K, Z, V), Z;
18852
+ if (V >= 0)
18853
+ if (Z !== null)
18854
+ await n.set(K, Z, V);
18855
+ else {
18856
+ const de = {
18857
+ value: null,
18858
+ isCachedNull: !0
18859
+ };
18860
+ await n.set(K, de, V);
18861
+ }
18862
+ return Z;
18849
18863
  };
18850
18864
  } else
18851
18865
  I[B] = R;
@@ -24471,11 +24485,11 @@ async function QA({
24471
24485
  }) {
24472
24486
  const { env: h } = t, g = new URL(r), A = `${g.protocol}//${g.host}`;
24473
24487
  async function $(K = "Login required") {
24474
- const J = Ve(t, {
24488
+ const X = Ve(t, {
24475
24489
  type: qe.FAILED_SILENT_AUTH,
24476
24490
  description: K
24477
24491
  });
24478
- return await t.env.data.logs.create(e.tenant.id, J), t.html(
24492
+ return await t.env.data.logs.create(e.tenant.id, X), t.html(
24479
24493
  xu(
24480
24494
  A,
24481
24495
  JSON.stringify({
@@ -24666,10 +24680,10 @@ const eE = ["email", "sms", "Username-Password-Authentication"], tE = new Ae().o
24666
24680
  username: x,
24667
24681
  ui_locales: V,
24668
24682
  organization: W
24669
- }, J = t.req.header("origin");
24670
- if (J && !XA(J, U.web_origins || []))
24683
+ }, X = t.req.header("origin");
24684
+ if (X && !XA(X, U.web_origins || []))
24671
24685
  throw new N(403, {
24672
- message: `Origin ${J} not allowed`
24686
+ message: `Origin ${X} not allowed`
24673
24687
  });
24674
24688
  if (K.redirect_uri) {
24675
24689
  const L = U.callbacks || [];
@@ -24683,7 +24697,7 @@ const eE = ["email", "sms", "Username-Password-Authentication"], tE = new Ae().o
24683
24697
  const Z = Cs(
24684
24698
  U.tenant.id,
24685
24699
  t.req.header("cookie")
24686
- ), he = Z ? await e.data.sessions.get(U.tenant.id, Z) : void 0, Ie = he && !he.revoked_at ? he : void 0;
24700
+ ), de = Z ? await e.data.sessions.get(U.tenant.id, Z) : void 0, Ie = de && !de.revoked_at ? de : void 0;
24687
24701
  if ($ == "none") {
24688
24702
  if (!p)
24689
24703
  throw new N(400, {
@@ -25209,7 +25223,11 @@ async function Ws(t, e) {
25209
25223
  );
25210
25224
  if (!s)
25211
25225
  throw new N(400, { message: "Session not found" });
25212
- const a = await n.data.themes.get(r.tenant.id, "default"), l = await n.data.branding.get(r.tenant.id), u = await n.data.users.get(r.tenant.id, s.user_id);
25226
+ const [a, l, u] = await Promise.all([
25227
+ n.data.themes.get(r.tenant.id, "default"),
25228
+ n.data.branding.get(r.tenant.id),
25229
+ n.data.users.get(r.tenant.id, s.user_id)
25230
+ ]);
25213
25231
  if (!u)
25214
25232
  throw new N(400, { message: "User not found" });
25215
25233
  return {
@@ -26321,8 +26339,8 @@ var Xs = "_hp", DE = {
26321
26339
  if (n === 2 && (x.innerHTML = ""), (g || $) && I(x), !l && !a)
26322
26340
  return;
26323
26341
  let W = li[U = x.getAttribute(V)] || (li[U] = new Promise(
26324
- (K, J) => {
26325
- x.addEventListener("load", K), x.addEventListener("error", J);
26342
+ (K, X) => {
26343
+ x.addEventListener("load", K), x.addEventListener("error", X);
26326
26344
  }
26327
26345
  ));
26328
26346
  a && (W = W.then(a)), l && (W = W.catch(l)), W.catch(() => {
@@ -28953,17 +28971,22 @@ const nu = ({
28953
28971
  }
28954
28972
  );
28955
28973
  function R8(t) {
28956
- const e = new Ae();
28957
- e.onError((r, i) => r instanceof ts ? i.redirect(r.location, r.status) : r instanceof N ? i.text(r.message || "Error", r.status) : i.text("Unexpected error", 500)), e.use(async (r, i) => {
28958
- const s = ro(r, t.dataAdapter), a = t.dataAdapter.cache || dl({
28959
- defaultTtlSeconds: 0,
28960
- // No TTL for request-scoped cache
28961
- maxEntries: 100,
28962
- // Smaller limit since it's per-request
28963
- cleanupIntervalMs: 0
28964
- // Disable cleanup since cache dies with the request
28965
- }), l = t.dataAdapter.cache ? 300 : 0, u = ul(s, {
28966
- defaultTtl: l,
28974
+ const e = new Ae(), n = t.dataAdapter.cache || dl({
28975
+ defaultTtlSeconds: 0,
28976
+ // No TTL for request-scoped cache
28977
+ maxEntries: 100,
28978
+ // Smaller limit since it's per-request
28979
+ cleanupIntervalMs: 0
28980
+ // Disable cleanup since cache dies with the request
28981
+ }), r = t.dataAdapter.cache ? 300 : 0;
28982
+ e.onError((s, a) => s instanceof ts ? a.redirect(s.location, s.status) : s instanceof N ? a.text(s.message || "Error", s.status) : a.text("Unexpected error", 500)), e.get("/css/tailwind.css", async (s) => {
28983
+ const a = R1;
28984
+ return s.text(a, 200, {
28985
+ "content-type": "text/css; charset=utf-8"
28986
+ });
28987
+ }), e.use(async (s, a) => {
28988
+ const l = ro(s, t.dataAdapter), u = ul(l, {
28989
+ defaultTtl: r,
28967
28990
  cacheEntities: [
28968
28991
  "tenants",
28969
28992
  "connections",
@@ -28973,23 +28996,18 @@ function R8(t) {
28973
28996
  "promptSettings",
28974
28997
  "forms"
28975
28998
  ],
28976
- cache: a
28999
+ cache: n
28977
29000
  });
28978
- return r.env.data = al(r, u), i();
28979
- }).use(ll).use(cl), e.get("/css/tailwind.css", async (r) => {
28980
- const i = R1;
28981
- return r.text(i, 200, {
28982
- "content-type": "text/css; charset=utf-8"
28983
- });
28984
- });
28985
- const n = e.route("/info", A8).route("/check-account", g8).route("/account", _8).route("/change-email", y8).route("/change-email-confirmation", w8).route("/login/identifier", OE).route("/enter-code", n8).route("/enter-password", c8).route("/invalid-session", $8).route("/pre-signup", b8).route("/pre-signup-sent", N8).route("/reset-password", u8).route("/forgot-password", f8).route("/validate-email", S8).route("/signup", l8).route("/forms", D8);
28986
- return n.doc("/u/spec", {
29001
+ return s.env.data = al(s, u), a();
29002
+ }).use(ll).use(cl);
29003
+ const i = e.route("/info", A8).route("/check-account", g8).route("/account", _8).route("/change-email", y8).route("/change-email-confirmation", w8).route("/login/identifier", OE).route("/enter-code", n8).route("/enter-password", c8).route("/invalid-session", $8).route("/pre-signup", b8).route("/pre-signup-sent", N8).route("/reset-password", u8).route("/forgot-password", f8).route("/validate-email", S8).route("/signup", l8).route("/forms", D8);
29004
+ return i.doc("/u/spec", {
28987
29005
  openapi: "3.0.0",
28988
29006
  info: {
28989
29007
  version: "1.0.0",
28990
29008
  title: "Universal login"
28991
29009
  }
28992
- }), n;
29010
+ }), i;
28993
29011
  }
28994
29012
  const Xt = o.object({ "#text": o.string() }), B8 = o.object({
28995
29013
  "#text": o.string(),
@@ -29360,7 +29378,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
29360
29378
  }
29361
29379
  x.prototype.init = function() {
29362
29380
  this.reduceActions = [], this.reduceActions[3] = function(c) {
29363
- return new he(c[0], c[2]);
29381
+ return new de(c[0], c[2]);
29364
29382
  }, this.reduceActions[5] = function(c) {
29365
29383
  return new Ie(c[0], c[2]);
29366
29384
  }, this.reduceActions[7] = function(c) {
@@ -29378,7 +29396,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
29378
29396
  }, this.reduceActions[15] = function(c) {
29379
29397
  return new z(c[0], c[2]);
29380
29398
  }, this.reduceActions[16] = function(c) {
29381
- return new de(c[0], c[2]);
29399
+ return new pe(c[0], c[2]);
29382
29400
  }, this.reduceActions[18] = function(c) {
29383
29401
  return new ie(c[0], c[2]);
29384
29402
  }, this.reduceActions[19] = function(c) {
@@ -29386,7 +29404,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
29386
29404
  }, this.reduceActions[20] = function(c) {
29387
29405
  return new Ne(c[0], c[2]);
29388
29406
  }, this.reduceActions[22] = function(c) {
29389
- return new J(c[1]);
29407
+ return new X(c[1]);
29390
29408
  }, this.reduceActions[24] = function(c) {
29391
29409
  return new Q(c[0], c[2]);
29392
29410
  }, this.reduceActions[25] = function(c) {
@@ -30097,15 +30115,15 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30097
30115
  }
30098
30116
  K.prototype.init = function(c) {
30099
30117
  this.rhs = c;
30100
- }, J.prototype = new K(), J.prototype.constructor = J, J.superclass = K.prototype;
30101
- function J(c) {
30118
+ }, X.prototype = new K(), X.prototype.constructor = X, X.superclass = K.prototype;
30119
+ function X(c) {
30102
30120
  arguments.length > 0 && this.init(c);
30103
30121
  }
30104
- J.prototype.init = function(c) {
30105
- J.superclass.init.call(this, c);
30106
- }, J.prototype.evaluate = function(c) {
30122
+ X.prototype.init = function(c) {
30123
+ X.superclass.init.call(this, c);
30124
+ }, X.prototype.evaluate = function(c) {
30107
30125
  return this.rhs.evaluate(c).number().negate();
30108
- }, J.prototype.toString = function() {
30126
+ }, X.prototype.toString = function() {
30109
30127
  return "-" + this.rhs.toString();
30110
30128
  }, Z.prototype = new U(), Z.prototype.constructor = Z, Z.superclass = U.prototype;
30111
30129
  function Z(c, f) {
@@ -30113,15 +30131,15 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30113
30131
  }
30114
30132
  Z.prototype.init = function(c, f) {
30115
30133
  this.lhs = c, this.rhs = f;
30116
- }, he.prototype = new Z(), he.prototype.constructor = he, he.superclass = Z.prototype;
30117
- function he(c, f) {
30134
+ }, de.prototype = new Z(), de.prototype.constructor = de, de.superclass = Z.prototype;
30135
+ function de(c, f) {
30118
30136
  arguments.length > 0 && this.init(c, f);
30119
30137
  }
30120
- he.prototype.init = function(c, f) {
30121
- he.superclass.init.call(this, c, f);
30122
- }, he.prototype.toString = function() {
30138
+ de.prototype.init = function(c, f) {
30139
+ de.superclass.init.call(this, c, f);
30140
+ }, de.prototype.toString = function() {
30123
30141
  return "(" + this.lhs.toString() + " or " + this.rhs.toString() + ")";
30124
- }, he.prototype.evaluate = function(c) {
30142
+ }, de.prototype.evaluate = function(c) {
30125
30143
  var f = this.lhs.evaluate(c).bool();
30126
30144
  return f.booleanValue() ? f : this.rhs.evaluate(c).bool();
30127
30145
  }, Ie.prototype = new Z(), Ie.prototype.constructor = Ie, Ie.superclass = Z.prototype;
@@ -30205,15 +30223,15 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30205
30223
  return this.lhs.evaluate(c).number().plus(this.rhs.evaluate(c).number());
30206
30224
  }, z.prototype.toString = function() {
30207
30225
  return "(" + this.lhs.toString() + " + " + this.rhs.toString() + ")";
30208
- }, de.prototype = new Z(), de.prototype.constructor = de, de.superclass = Z.prototype;
30209
- function de(c, f) {
30226
+ }, pe.prototype = new Z(), pe.prototype.constructor = pe, pe.superclass = Z.prototype;
30227
+ function pe(c, f) {
30210
30228
  arguments.length > 0 && this.init(c, f);
30211
30229
  }
30212
- de.prototype.init = function(c, f) {
30213
- de.superclass.init.call(this, c, f);
30214
- }, de.prototype.evaluate = function(c) {
30230
+ pe.prototype.init = function(c, f) {
30231
+ pe.superclass.init.call(this, c, f);
30232
+ }, pe.prototype.evaluate = function(c) {
30215
30233
  return this.lhs.evaluate(c).number().minus(this.rhs.evaluate(c).number());
30216
- }, de.prototype.toString = function() {
30234
+ }, pe.prototype.toString = function() {
30217
30235
  return "(" + this.lhs.toString() + " - " + this.rhs.toString() + ")";
30218
30236
  }, ie.prototype = new Z(), ie.prototype.constructor = ie, ie.superclass = Z.prototype;
30219
30237
  function ie(c, f) {
@@ -30678,7 +30696,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30678
30696
  }, ge.prototype.number = function() {
30679
30697
  return new me(this.str);
30680
30698
  }, ge.prototype.bool = function() {
30681
- return new pe(this.str);
30699
+ return new fe(this.str);
30682
30700
  }, ge.prototype.nodeset = function() {
30683
30701
  throw new Error("Cannot convert string to nodeset");
30684
30702
  }, ge.prototype.stringValue = function() {
@@ -30688,9 +30706,9 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30688
30706
  }, ge.prototype.booleanValue = function() {
30689
30707
  return this.bool().booleanValue();
30690
30708
  }, ge.prototype.equals = function(c) {
30691
- return ce.instance_of(c, pe) ? this.bool().equals(c) : ce.instance_of(c, me) ? this.number().equals(c) : ce.instance_of(c, ae) ? c.compareWithString(this, Me.equals) : new pe(this.str == c.str);
30709
+ return ce.instance_of(c, fe) ? this.bool().equals(c) : ce.instance_of(c, me) ? this.number().equals(c) : ce.instance_of(c, ae) ? c.compareWithString(this, Me.equals) : new fe(this.str == c.str);
30692
30710
  }, ge.prototype.notequal = function(c) {
30693
- return ce.instance_of(c, pe) ? this.bool().notequal(c) : ce.instance_of(c, me) ? this.number().notequal(c) : ce.instance_of(c, ae) ? c.compareWithString(this, Me.notequal) : new pe(this.str != c.str);
30711
+ return ce.instance_of(c, fe) ? this.bool().notequal(c) : ce.instance_of(c, me) ? this.number().notequal(c) : ce.instance_of(c, ae) ? c.compareWithString(this, Me.notequal) : new fe(this.str != c.str);
30694
30712
  }, ge.prototype.lessthan = function(c) {
30695
30713
  return this.number().lessthan(c);
30696
30714
  }, ge.prototype.greaterthan = function(c) {
@@ -30728,7 +30746,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30728
30746
  }, me.prototype.number = function() {
30729
30747
  return this;
30730
30748
  }, me.prototype.bool = function() {
30731
- return new pe(this.num);
30749
+ return new fe(this.num);
30732
30750
  }, me.prototype.nodeset = function() {
30733
30751
  throw new Error("Cannot convert number to nodeset");
30734
30752
  }, me.prototype.stringValue = function() {
@@ -30740,17 +30758,17 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30740
30758
  }, me.prototype.negate = function() {
30741
30759
  return new me(-this.num);
30742
30760
  }, me.prototype.equals = function(c) {
30743
- return ce.instance_of(c, pe) ? this.bool().equals(c) : ce.instance_of(c, ge) ? this.equals(c.number()) : ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.equals) : new pe(this.num == c.num);
30761
+ return ce.instance_of(c, fe) ? this.bool().equals(c) : ce.instance_of(c, ge) ? this.equals(c.number()) : ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.equals) : new fe(this.num == c.num);
30744
30762
  }, me.prototype.notequal = function(c) {
30745
- return ce.instance_of(c, pe) ? this.bool().notequal(c) : ce.instance_of(c, ge) ? this.notequal(c.number()) : ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.notequal) : new pe(this.num != c.num);
30763
+ return ce.instance_of(c, fe) ? this.bool().notequal(c) : ce.instance_of(c, ge) ? this.notequal(c.number()) : ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.notequal) : new fe(this.num != c.num);
30746
30764
  }, me.prototype.lessthan = function(c) {
30747
- return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.greaterthan) : ce.instance_of(c, pe) || ce.instance_of(c, ge) ? this.lessthan(c.number()) : new pe(this.num < c.num);
30765
+ return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.greaterthan) : ce.instance_of(c, fe) || ce.instance_of(c, ge) ? this.lessthan(c.number()) : new fe(this.num < c.num);
30748
30766
  }, me.prototype.greaterthan = function(c) {
30749
- return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.lessthan) : ce.instance_of(c, pe) || ce.instance_of(c, ge) ? this.greaterthan(c.number()) : new pe(this.num > c.num);
30767
+ return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.lessthan) : ce.instance_of(c, fe) || ce.instance_of(c, ge) ? this.greaterthan(c.number()) : new fe(this.num > c.num);
30750
30768
  }, me.prototype.lessthanorequal = function(c) {
30751
- return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.greaterthanorequal) : ce.instance_of(c, pe) || ce.instance_of(c, ge) ? this.lessthanorequal(c.number()) : new pe(this.num <= c.num);
30769
+ return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.greaterthanorequal) : ce.instance_of(c, fe) || ce.instance_of(c, ge) ? this.lessthanorequal(c.number()) : new fe(this.num <= c.num);
30752
30770
  }, me.prototype.greaterthanorequal = function(c) {
30753
- return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.lessthanorequal) : ce.instance_of(c, pe) || ce.instance_of(c, ge) ? this.greaterthanorequal(c.number()) : new pe(this.num >= c.num);
30771
+ return ce.instance_of(c, ae) ? c.compareWithNumber(this, Me.lessthanorequal) : ce.instance_of(c, fe) || ce.instance_of(c, ge) ? this.greaterthanorequal(c.number()) : new fe(this.num >= c.num);
30754
30772
  }, me.prototype.plus = function(c) {
30755
30773
  return new me(this.num + c.num);
30756
30774
  }, me.prototype.minus = function(c) {
@@ -30761,45 +30779,45 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30761
30779
  return new me(this.num / c.num);
30762
30780
  }, me.prototype.mod = function(c) {
30763
30781
  return new me(this.num % c.num);
30764
- }, pe.prototype = new U(), pe.prototype.constructor = pe, pe.superclass = U.prototype;
30765
- function pe(c) {
30782
+ }, fe.prototype = new U(), fe.prototype.constructor = fe, fe.superclass = U.prototype;
30783
+ function fe(c) {
30766
30784
  arguments.length > 0 && this.init(c);
30767
30785
  }
30768
- pe.prototype.init = function(c) {
30786
+ fe.prototype.init = function(c) {
30769
30787
  this.b = !!c;
30770
- }, pe.prototype.toString = function() {
30788
+ }, fe.prototype.toString = function() {
30771
30789
  return this.b.toString();
30772
- }, pe.prototype.evaluate = function(c) {
30790
+ }, fe.prototype.evaluate = function(c) {
30773
30791
  return this;
30774
- }, pe.prototype.string = function() {
30792
+ }, fe.prototype.string = function() {
30775
30793
  return new ge(this.b);
30776
- }, pe.prototype.number = function() {
30794
+ }, fe.prototype.number = function() {
30777
30795
  return new me(this.b);
30778
- }, pe.prototype.bool = function() {
30796
+ }, fe.prototype.bool = function() {
30779
30797
  return this;
30780
- }, pe.prototype.nodeset = function() {
30798
+ }, fe.prototype.nodeset = function() {
30781
30799
  throw new Error("Cannot convert boolean to nodeset");
30782
- }, pe.prototype.stringValue = function() {
30800
+ }, fe.prototype.stringValue = function() {
30783
30801
  return this.string().stringValue();
30784
- }, pe.prototype.numberValue = function() {
30802
+ }, fe.prototype.numberValue = function() {
30785
30803
  return this.number().numberValue();
30786
- }, pe.prototype.booleanValue = function() {
30804
+ }, fe.prototype.booleanValue = function() {
30787
30805
  return this.b;
30788
- }, pe.prototype.not = function() {
30789
- return new pe(!this.b);
30790
- }, pe.prototype.equals = function(c) {
30791
- return ce.instance_of(c, ge) || ce.instance_of(c, me) ? this.equals(c.bool()) : ce.instance_of(c, ae) ? c.compareWithBoolean(this, Me.equals) : new pe(this.b == c.b);
30792
- }, pe.prototype.notequal = function(c) {
30793
- return ce.instance_of(c, ge) || ce.instance_of(c, me) ? this.notequal(c.bool()) : ce.instance_of(c, ae) ? c.compareWithBoolean(this, Me.notequal) : new pe(this.b != c.b);
30794
- }, pe.prototype.lessthan = function(c) {
30806
+ }, fe.prototype.not = function() {
30807
+ return new fe(!this.b);
30808
+ }, fe.prototype.equals = function(c) {
30809
+ return ce.instance_of(c, ge) || ce.instance_of(c, me) ? this.equals(c.bool()) : ce.instance_of(c, ae) ? c.compareWithBoolean(this, Me.equals) : new fe(this.b == c.b);
30810
+ }, fe.prototype.notequal = function(c) {
30811
+ return ce.instance_of(c, ge) || ce.instance_of(c, me) ? this.notequal(c.bool()) : ce.instance_of(c, ae) ? c.compareWithBoolean(this, Me.notequal) : new fe(this.b != c.b);
30812
+ }, fe.prototype.lessthan = function(c) {
30795
30813
  return this.number().lessthan(c);
30796
- }, pe.prototype.greaterthan = function(c) {
30814
+ }, fe.prototype.greaterthan = function(c) {
30797
30815
  return this.number().greaterthan(c);
30798
- }, pe.prototype.lessthanorequal = function(c) {
30816
+ }, fe.prototype.lessthanorequal = function(c) {
30799
30817
  return this.number().lessthanorequal(c);
30800
- }, pe.prototype.greaterthanorequal = function(c) {
30818
+ }, fe.prototype.greaterthanorequal = function(c) {
30801
30819
  return this.number().greaterthanorequal(c);
30802
- }, pe.true_ = new pe(!0), pe.false_ = new pe(!1), lt.prototype = new Object(), lt.prototype.constructor = lt, lt.superclass = Object.prototype;
30820
+ }, fe.true_ = new fe(!0), fe.false_ = new fe(!1), lt.prototype = new Object(), lt.prototype.constructor = lt, lt.superclass = Object.prototype;
30803
30821
  function lt(c) {
30804
30822
  this.init(c);
30805
30823
  }
@@ -30889,7 +30907,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30889
30907
  }, ae.prototype.numberValue = function() {
30890
30908
  return Number(this.string());
30891
30909
  }, ae.prototype.bool = function() {
30892
- return new pe(this.booleanValue());
30910
+ return new fe(this.booleanValue());
30893
30911
  }, ae.prototype.booleanValue = function() {
30894
30912
  return !!this.size;
30895
30913
  }, ae.prototype.nodeset = function() {
@@ -30939,14 +30957,14 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30939
30957
  if (G.booleanValue())
30940
30958
  return G;
30941
30959
  }
30942
- return new pe(!1);
30960
+ return new fe(!1);
30943
30961
  }, ae.prototype.compareWithNumber = function(c, f) {
30944
30962
  for (var _ = this.toUnsortedArray(), b = 0; b < _.length; b++) {
30945
30963
  var v = _[b], E = new me(this.stringForNode(v)), G = f(E, c);
30946
30964
  if (G.booleanValue())
30947
30965
  return G;
30948
30966
  }
30949
- return new pe(!1);
30967
+ return new fe(!1);
30950
30968
  }, ae.prototype.compareWithBoolean = function(c, f) {
30951
30969
  return f(this.bool(), c);
30952
30970
  }, ae.prototype.compareWithNodeSet = function(c, f) {
@@ -30957,9 +30975,9 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
30957
30975
  if (G.booleanValue())
30958
30976
  return G;
30959
30977
  }
30960
- return new pe(!1);
30978
+ return new fe(!1);
30961
30979
  }, ae.compareWith = r(function(c, f) {
30962
- return ce.instance_of(f, ge) ? this.compareWithString(f, c) : ce.instance_of(f, me) ? this.compareWithNumber(f, c) : ce.instance_of(f, pe) ? this.compareWithBoolean(f, c) : this.compareWithNodeSet(f, c);
30980
+ return ce.instance_of(f, ge) ? this.compareWithString(f, c) : ce.instance_of(f, me) ? this.compareWithNumber(f, c) : ce.instance_of(f, fe) ? this.compareWithBoolean(f, c) : this.compareWithNodeSet(f, c);
30963
30981
  }), ae.prototype.equals = ae.compareWith(Me.equals), ae.prototype.notequal = ae.compareWith(Me.notequal), ae.prototype.lessthan = ae.compareWith(Me.lessthan), ae.prototype.greaterthan = ae.compareWith(Me.greaterthan), ae.prototype.lessthanorequal = ae.compareWith(Me.lessthanorequal), ae.prototype.greaterthanorequal = ae.compareWith(Me.greaterthanorequal), ae.prototype.union = function(c) {
30964
30982
  var f = new ae();
30965
30983
  return f.addArray(this.toUnsortedArray()), f.addArray(c.toUnsortedArray()), f;
@@ -31089,13 +31107,13 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
31089
31107
  if (arguments.length != 3)
31090
31108
  throw new Error("Function startsWith expects (string, string)");
31091
31109
  var f = arguments[1].evaluate(c).stringValue(), _ = arguments[2].evaluate(c).stringValue();
31092
- return new pe(f.substring(0, _.length) == _);
31110
+ return new fe(f.substring(0, _.length) == _);
31093
31111
  }, _e.contains = function() {
31094
31112
  var c = arguments[0];
31095
31113
  if (arguments.length != 3)
31096
31114
  throw new Error("Function contains expects (string, string)");
31097
31115
  var f = arguments[1].evaluate(c).stringValue(), _ = arguments[2].evaluate(c).stringValue();
31098
- return new pe(f.indexOf(_) !== -1);
31116
+ return new fe(f.indexOf(_) !== -1);
31099
31117
  }, _e.substringBefore = function() {
31100
31118
  var c = arguments[0];
31101
31119
  if (arguments.length != 3)
@@ -31169,11 +31187,11 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
31169
31187
  }, _e.true_ = function() {
31170
31188
  if (arguments.length != 1)
31171
31189
  throw new Error("Function true expects ()");
31172
- return pe.true_;
31190
+ return fe.true_;
31173
31191
  }, _e.false_ = function() {
31174
31192
  if (arguments.length != 1)
31175
31193
  throw new Error("Function false expects ()");
31176
- return pe.false_;
31194
+ return fe.false_;
31177
31195
  }, _e.lang = function() {
31178
31196
  var c = arguments[0];
31179
31197
  if (arguments.length != 2)
@@ -31186,9 +31204,9 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
31186
31204
  }
31187
31205
  }
31188
31206
  if (f == null)
31189
- return pe.false_;
31207
+ return fe.false_;
31190
31208
  var v = arguments[1].evaluate(c).stringValue();
31191
- return new pe(f.substring(0, v.length) == v && (f.length == v.length || f.charAt(v.length) == "-"));
31209
+ return new fe(f.substring(0, v.length) == v && (f.length == v.length || f.charAt(v.length) == "-"));
31192
31210
  }, _e.number = function() {
31193
31211
  var c = arguments[0];
31194
31212
  if (!(arguments.length == 1 || arguments.length == 2))
@@ -31328,7 +31346,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
31328
31346
  return this.namespaceResolver.getNamespace(c, this.node);
31329
31347
  }, T.prototype = {}, T.prototype.constructor = T, T.superclass = Object.prototype;
31330
31348
  function T(c, f) {
31331
- switch (f == T.ANY_TYPE && (c.constructor === ge ? f = T.STRING_TYPE : c.constructor === me ? f = T.NUMBER_TYPE : c.constructor === pe ? f = T.BOOLEAN_TYPE : c.constructor === ae && (f = T.UNORDERED_NODE_ITERATOR_TYPE)), this.resultType = f, f) {
31349
+ switch (f == T.ANY_TYPE && (c.constructor === ge ? f = T.STRING_TYPE : c.constructor === me ? f = T.NUMBER_TYPE : c.constructor === fe ? f = T.BOOLEAN_TYPE : c.constructor === ae && (f = T.UNORDERED_NODE_ITERATOR_TYPE)), this.resultType = f, f) {
31332
31350
  case T.NUMBER_TYPE:
31333
31351
  this.numberValue = c.numberValue();
31334
31352
  return;
@@ -31419,13 +31437,13 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
31419
31437
  return Y && typeof Y.getNamespace == "function" ? E(Y) : typeof Y == "function" ? v(Y) : typeof Y == "object" ? G(Y) : f;
31420
31438
  }
31421
31439
  function Te(Y) {
31422
- if (Y === null || typeof Y > "u" || Y instanceof ge || Y instanceof pe || Y instanceof me || Y instanceof ae)
31440
+ if (Y === null || typeof Y > "u" || Y instanceof ge || Y instanceof fe || Y instanceof me || Y instanceof ae)
31423
31441
  return Y;
31424
31442
  switch (typeof Y) {
31425
31443
  case "string":
31426
31444
  return new ge(Y);
31427
31445
  case "boolean":
31428
- return new pe(Y);
31446
+ return new fe(Y);
31429
31447
  case "number":
31430
31448
  return new me(Y);
31431
31449
  }
@@ -31533,7 +31551,7 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
31533
31551
  PathExpr: we,
31534
31552
  NodeTest: oe,
31535
31553
  LocationPath: en,
31536
- OrOperation: he,
31554
+ OrOperation: de,
31537
31555
  AndOperation: Ie,
31538
31556
  BarOperation: Q,
31539
31557
  EqualsOperation: j,
@@ -31543,16 +31561,16 @@ var F8 = {}, Zr = {}, Co = {}, ml = {};
31543
31561
  LessThanOrEqualOperation: S,
31544
31562
  GreaterThanOrEqualOperation: P,
31545
31563
  PlusOperation: z,
31546
- MinusOperation: de,
31564
+ MinusOperation: pe,
31547
31565
  MultiplyOperation: ie,
31548
31566
  DivOperation: be,
31549
31567
  ModOperation: Ne,
31550
- UnaryMinusOperation: J,
31568
+ UnaryMinusOperation: X,
31551
31569
  FunctionCall: Rt,
31552
31570
  VariableReference: et,
31553
31571
  XPathContext: Kt,
31554
31572
  XNodeSet: ae,
31555
- XBoolean: pe,
31573
+ XBoolean: fe,
31556
31574
  XString: ge,
31557
31575
  XNumber: me,
31558
31576
  NamespaceResolver: tn,
@@ -31683,32 +31701,32 @@ $e.assertIsDocumentFragmentNode = s6;
31683
31701
  return Array.isArray(U) && U.length > 0;
31684
31702
  }
31685
31703
  t.isArrayHasLength = r;
31686
- function i(U, K, J) {
31687
- return U.localName === K && (U.namespaceURI === J || J == null);
31704
+ function i(U, K, X) {
31705
+ return U.localName === K && (U.namespaceURI === X || X == null);
31688
31706
  }
31689
- function s(U, K, J, Z) {
31690
- return U.localName === K && (!U.namespaceURI && (Z == null ? void 0 : Z.namespaceURI) === J || J == null);
31707
+ function s(U, K, X, Z) {
31708
+ return U.localName === K && (!U.namespaceURI && (Z == null ? void 0 : Z.namespaceURI) === X || X == null);
31691
31709
  }
31692
- function a(U, K, J) {
31710
+ function a(U, K, X) {
31693
31711
  for (let Z = 0; Z < U.attributes.length; Z++) {
31694
- const he = U.attributes[Z];
31695
- if (i(he, K, J) || s(he, K, J, U))
31696
- return he;
31712
+ const de = U.attributes[Z];
31713
+ if (i(de, K, X) || s(de, K, X, U))
31714
+ return de;
31697
31715
  }
31698
31716
  return null;
31699
31717
  }
31700
31718
  t.findAttr = a;
31701
- function l(U, K, J) {
31702
- const Z = U.documentElement ?? U, he = [];
31719
+ function l(U, K, X) {
31720
+ const Z = U.documentElement ?? U, de = [];
31703
31721
  for (let Ie = 0; Ie < Z.childNodes.length; Ie++) {
31704
31722
  const j = Z.childNodes[Ie];
31705
- n.isElementNode(j) && j.localName === K && (j.namespaceURI === J || J == null) && he.push(j);
31723
+ n.isElementNode(j) && j.localName === K && (j.namespaceURI === X || X == null) && de.push(j);
31706
31724
  }
31707
- return he;
31725
+ return de;
31708
31726
  }
31709
31727
  t.findChildren = l;
31710
- function u(U, K, J) {
31711
- return l(U, K, J);
31728
+ function u(U, K, X) {
31729
+ return l(U, K, X);
31712
31730
  }
31713
31731
  t.findChilds = u;
31714
31732
  const d = {
@@ -31725,14 +31743,14 @@ $e.assertIsDocumentFragmentNode = s6;
31725
31743
  "\r": "&#xD;"
31726
31744
  };
31727
31745
  function h(U) {
31728
- return U.replace(/([&<"\r\n\t])/g, function(K, J) {
31729
- return d[J];
31746
+ return U.replace(/([&<"\r\n\t])/g, function(K, X) {
31747
+ return d[X];
31730
31748
  });
31731
31749
  }
31732
31750
  t.encodeSpecialCharactersInAttribute = h;
31733
31751
  function g(U) {
31734
- return U.replace(/([&<>\r])/g, function(K, J) {
31735
- return p[J];
31752
+ return U.replace(/([&<>\r])/g, function(K, X) {
31753
+ return p[X];
31736
31754
  });
31737
31755
  }
31738
31756
  t.encodeSpecialCharactersInText = g, t.PEM_FORMAT_REGEX = new RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$", "s"), t.EXTRACT_X509_CERTS = new RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----", "g"), t.BASE64_REGEX = new RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$", "s");
@@ -31750,14 +31768,14 @@ $e.assertIsDocumentFragmentNode = s6;
31750
31768
  }
31751
31769
  t.pemToDer = $;
31752
31770
  function I(U, K) {
31753
- const J = Buffer.isBuffer(U) ? U.toString("base64").trim() : U.replace(/(\r\n|\r)/g, "").trim();
31754
- if (t.PEM_FORMAT_REGEX.test(J))
31755
- return A(J);
31756
- if (t.BASE64_REGEX.test(J.replace(/ /g, ""))) {
31771
+ const X = Buffer.isBuffer(U) ? U.toString("base64").trim() : U.replace(/(\r\n|\r)/g, "").trim();
31772
+ if (t.PEM_FORMAT_REGEX.test(X))
31773
+ return A(X);
31774
+ if (t.BASE64_REGEX.test(X.replace(/ /g, ""))) {
31757
31775
  if (K == null)
31758
31776
  throw new Error("PEM label is required when DER is given.");
31759
31777
  const Z = `-----BEGIN ${K}-----
31760
- ${J.replace(/ /g, "")}
31778
+ ${X.replace(/ /g, "")}
31761
31779
  -----END ${K}-----`;
31762
31780
  return A(Z);
31763
31781
  }
@@ -31767,23 +31785,23 @@ ${J.replace(/ /g, "")}
31767
31785
  function B(U, K = []) {
31768
31786
  if (!n.isElementNode(U.parentNode))
31769
31787
  return K;
31770
- const J = U.parentNode;
31771
- if (!J)
31788
+ const X = U.parentNode;
31789
+ if (!X)
31772
31790
  return K;
31773
- if (J.attributes && J.attributes.length > 0)
31774
- for (let Z = 0; Z < J.attributes.length; Z++) {
31775
- const he = J.attributes[Z];
31776
- he && he.nodeName && he.nodeName.search(/^xmlns:?/) !== -1 && K.push({
31777
- prefix: he.nodeName.replace(/^xmlns:?/, ""),
31778
- namespaceURI: he.nodeValue || ""
31791
+ if (X.attributes && X.attributes.length > 0)
31792
+ for (let Z = 0; Z < X.attributes.length; Z++) {
31793
+ const de = X.attributes[Z];
31794
+ de && de.nodeName && de.nodeName.search(/^xmlns:?/) !== -1 && K.push({
31795
+ prefix: de.nodeName.replace(/^xmlns:?/, ""),
31796
+ namespaceURI: de.nodeValue || ""
31779
31797
  });
31780
31798
  }
31781
- return B(J, K);
31799
+ return B(X, K);
31782
31800
  }
31783
31801
  function R(U) {
31784
31802
  const K = U.attributes;
31785
- for (let J = 0; J < K.length; J++) {
31786
- const Z = K[J].nodeName;
31803
+ for (let X = 0; X < K.length; X++) {
31804
+ const Z = K[X].nodeName;
31787
31805
  if (Z.search(/^xmlns:?/) !== -1)
31788
31806
  return Z.replace(/^xmlns:?/, "");
31789
31807
  }
@@ -31792,23 +31810,23 @@ ${J.replace(/ /g, "")}
31792
31810
  function x(U) {
31793
31811
  return U.every((K) => n.isElementNode(K));
31794
31812
  }
31795
- function V(U, K, J) {
31813
+ function V(U, K, X) {
31796
31814
  if (K == null)
31797
31815
  return [];
31798
- const Z = e.selectWithResolver(K, U, J);
31816
+ const Z = e.selectWithResolver(K, U, X);
31799
31817
  if (!r(Z))
31800
31818
  return [];
31801
31819
  if (!x(Z))
31802
31820
  throw new Error("Document subset must be list of elements");
31803
- const he = B(Z[0]), Ie = [];
31804
- for (let D = 0; D < he.length; D++) {
31821
+ const de = B(Z[0]), Ie = [];
31822
+ for (let D = 0; D < de.length; D++) {
31805
31823
  let k = !0;
31806
31824
  for (const S in Ie)
31807
- if (Ie[S].prefix === he[D].prefix) {
31825
+ if (Ie[S].prefix === de[D].prefix) {
31808
31826
  k = !1;
31809
31827
  break;
31810
31828
  }
31811
- k && Ie.push(he[D]);
31829
+ k && Ie.push(de[D]);
31812
31830
  }
31813
31831
  const j = [], L = R(Z[0]);
31814
31832
  for (const D of Ie)
@@ -31817,13 +31835,13 @@ ${J.replace(/ /g, "")}
31817
31835
  }
31818
31836
  t.findAncestorNs = V;
31819
31837
  function W(U, K) {
31820
- const J = Buffer.from(U, "base64"), Z = Buffer.from(K, "base64");
31821
- if (typeof J.equals == "function")
31822
- return J.equals(Z);
31823
- if (J.length !== Z.length)
31838
+ const X = Buffer.from(U, "base64"), Z = Buffer.from(K, "base64");
31839
+ if (typeof X.equals == "function")
31840
+ return X.equals(Z);
31841
+ if (X.length !== Z.length)
31824
31842
  return !1;
31825
- for (let he = 0; he < J.length; he++)
31826
- if (J[he] !== Z[he])
31843
+ for (let de = 0; de < X.length; de++)
31844
+ if (X[de] !== Z[de])
31827
31845
  return !1;
31828
31846
  return !0;
31829
31847
  }
@@ -35399,8 +35417,8 @@ function x6(t, e, n, r, i) {
35399
35417
  function s(P) {
35400
35418
  if (P > 65535) {
35401
35419
  P -= 65536;
35402
- var z = 55296 + (P >> 10), de = 56320 + (P & 1023);
35403
- return String.fromCharCode(z, de);
35420
+ var z = 55296 + (P >> 10), pe = 56320 + (P & 1023);
35421
+ return String.fromCharCode(z, pe);
35404
35422
  } else
35405
35423
  return String.fromCharCode(P);
35406
35424
  }
@@ -35433,8 +35451,8 @@ function x6(t, e, n, r, i) {
35433
35451
  case "/":
35434
35452
  var j = t.indexOf(">", B + 3), V = t.substring(B + 2, j).replace(/[ \t\n\r]+$/g, ""), W = A.pop();
35435
35453
  j < 0 ? (V = t.substring(B + 2).replace(/[\s<].*/, ""), i.error("end tag name: " + V + " is not complete:" + W.tagName), j = B + 1 + V.length) : V.match(/\s</) && (V = V.replace(/[\s<].*/, ""), i.error("end tag name: " + V + " maybe not complete"), j = B + 1 + V.length);
35436
- var U = W.localNSMap, K = W.tagName == V, J = K || W.tagName && W.tagName.toLowerCase() == V.toLowerCase();
35437
- if (J) {
35454
+ var U = W.localNSMap, K = W.tagName == V, X = K || W.tagName && W.tagName.toLowerCase() == V.toLowerCase();
35455
+ if (X) {
35438
35456
  if (r.endElement(W.uri, W.localName, V), U)
35439
35457
  for (var Z in U)
35440
35458
  Object.prototype.hasOwnProperty.call(U, Z) && r.endPrefixMapping(Z);
@@ -35451,16 +35469,16 @@ function x6(t, e, n, r, i) {
35451
35469
  break;
35452
35470
  default:
35453
35471
  g && u(B);
35454
- var he = new ly(), Ie = A[A.length - 1].currentNSMap, j = $6(t, B, he, Ie, a, i), L = he.length;
35455
- if (!he.closed && E6(t, j, he.tagName, $) && (he.closed = !0, n.nbsp || i.warning("unclosed xml attribute")), g && L) {
35472
+ var de = new ly(), Ie = A[A.length - 1].currentNSMap, j = $6(t, B, de, Ie, a, i), L = de.length;
35473
+ if (!de.closed && E6(t, j, de.tagName, $) && (de.closed = !0, n.nbsp || i.warning("unclosed xml attribute")), g && L) {
35456
35474
  for (var D = im(g, {}), k = 0; k < L; k++) {
35457
- var S = he[k];
35475
+ var S = de[k];
35458
35476
  u(S.offset), S.locator = im(g, {});
35459
35477
  }
35460
- r.locator = D, sm(he, r, Ie) && A.push(he), r.locator = g;
35478
+ r.locator = D, sm(de, r, Ie) && A.push(de), r.locator = g;
35461
35479
  } else
35462
- sm(he, r, Ie) && A.push(he);
35463
- eo.isHTML(he.uri) && !he.closed ? j = A6(t, j, he.tagName, a, r) : j++;
35480
+ sm(de, r, Ie) && A.push(de);
35481
+ eo.isHTML(de.uri) && !de.closed ? j = A6(t, j, de.tagName, a, r) : j++;
35464
35482
  }
35465
35483
  } catch (P) {
35466
35484
  if (P instanceof Mi)
@@ -36411,8 +36429,8 @@ class Ln {
36411
36429
  throw K;
36412
36430
  }
36413
36431
  const U = W[0];
36414
- typeof i == "function" ? this.calculateSignatureValue(s, (K, J) => {
36415
- K ? i(K) : (this.signatureValue = J || "", x.insertBefore(this.createSignature(p), U.nextSibling), this.signatureXml = x.toString(), this.signedXml = s.toString(), i(null, this));
36432
+ typeof i == "function" ? this.calculateSignatureValue(s, (K, X) => {
36433
+ K ? i(K) : (this.signatureValue = X || "", x.insertBefore(this.createSignature(p), U.nextSibling), this.signatureXml = x.toString(), this.signedXml = s.toString(), i(null, this));
36416
36434
  }) : (this.calculateSignatureValue(s), x.insertBefore(this.createSignature(p), U.nextSibling), this.signatureXml = x.toString(), this.signedXml = s.toString());
36417
36435
  }
36418
36436
  getKeyInfo(e) {
@@ -38157,30 +38175,12 @@ function IH(t, e) {
38157
38175
  connections: u
38158
38176
  };
38159
38177
  }
38160
- },
38178
+ }
38161
38179
  // For other tenant-scoped adapters, we could add similar fallback logic
38162
- // but for now we'll just pass them through
38163
- applications: t.applications,
38164
- branding: t.branding,
38165
- codes: t.codes,
38166
- customDomains: t.customDomains,
38167
- emailProviders: t.emailProviders,
38168
- forms: t.forms,
38169
- hooks: t.hooks,
38170
- keys: t.keys,
38171
- loginSessions: t.loginSessions,
38172
- logs: t.logs,
38173
- passwords: t.passwords,
38174
- promptSettings: t.promptSettings,
38175
- refreshTokens: t.refreshTokens,
38176
- resourceServers: t.resourceServers,
38177
- rolePermissions: t.rolePermissions,
38178
- userPermissions: t.userPermissions,
38179
- roles: t.roles,
38180
- sessions: t.sessions,
38181
- tenants: t.tenants,
38182
- themes: t.themes,
38183
- users: t.users
38180
+ // but for now we'll just pass them through by not overriding them
38181
+ // This ensures they get properly wrapped by any outer wrappers (like caching)
38182
+ // Note: We intentionally do NOT override these adapters so they remain
38183
+ // part of the spread ...baseAdapters and can be properly wrapped by caching
38184
38184
  };
38185
38185
  }
38186
38186
  function JK(t, e) {