authhero 0.98.0 → 0.99.1

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
@@ -375,12 +375,12 @@ class es extends zs {
375
375
  const V = Array.isArray(m), ee = V ? [] : {}, ue = V ? f : v;
376
376
  for (const de in m)
377
377
  if (Object.prototype.hasOwnProperty.call(m, de)) {
378
- const De = `${ue}${s}${de}`;
379
- ee[de] = this.translate(De, {
378
+ const He = `${ue}${s}${de}`;
379
+ ee[de] = this.translate(He, {
380
380
  ...n,
381
381
  joinArrays: !1,
382
382
  ns: c
383
- }), ee[de] === De && (ee[de] = m[de]);
383
+ }), ee[de] === He && (ee[de] = m[de]);
384
384
  }
385
385
  m = ee;
386
386
  }
@@ -388,9 +388,9 @@ class es extends zs {
388
388
  m = m.join(S), m && (m = this.extendTranslation(m, e, n, r));
389
389
  else {
390
390
  let V = !1, ee = !1;
391
- const ue = n.count !== void 0 && !re(n.count), de = es.hasDefaultValue(n), De = ue ? this.pluralResolver.getSuffix(u, n.count, n) : "", Fe = n.ordinal && ue ? this.pluralResolver.getSuffix(u, n.count, {
391
+ const ue = n.count !== void 0 && !re(n.count), de = es.hasDefaultValue(n), He = ue ? this.pluralResolver.getSuffix(u, n.count, n) : "", Me = n.ordinal && ue ? this.pluralResolver.getSuffix(u, n.count, {
392
392
  ordinal: !1
393
- }) : "", Xe = ue && !n.ordinal && n.count === 0, $ = Xe && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${De}`] || n[`defaultValue${Fe}`] || n.defaultValue;
393
+ }) : "", Ve = ue && !n.ordinal && n.count === 0, $ = Ve && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${He}`] || n[`defaultValue${Me}`] || n.defaultValue;
394
394
  !this.isValidLookup(m) && de && (V = !0, m = $), this.isValidLookup(m) || (ee = !0, m = o);
395
395
  const E = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && ee ? void 0 : m, x = de && $ !== m && this.options.updateMissing;
396
396
  if (ee || V || x) {
@@ -414,7 +414,7 @@ class es extends zs {
414
414
  };
415
415
  this.options.saveMissing && (this.options.saveMissingPlurals && ue ? k.forEach((Q) => {
416
416
  const J = this.pluralResolver.getSuffixes(Q, n);
417
- Xe && n[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((se) => {
417
+ Ve && n[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((se) => {
418
418
  q([Q], o + se, n[`defaultValue${se}`] || $);
419
419
  });
420
420
  }) : q(k, o, $));
@@ -491,10 +491,10 @@ class es extends zs {
491
491
  else {
492
492
  let de;
493
493
  m && (de = this.pluralResolver.getSuffix(T, n.count, n));
494
- const De = `${this.options.pluralSeparator}zero`, Fe = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
- if (m && (V.push(p + de), n.ordinal && de.indexOf(Fe) === 0 && V.push(p + de.replace(Fe, this.options.pluralSeparator)), v && V.push(p + De)), f) {
496
- const Xe = `${p}${this.options.contextSeparator}${n.context}`;
497
- V.push(Xe), m && (V.push(Xe + de), n.ordinal && de.indexOf(Fe) === 0 && V.push(Xe + de.replace(Fe, this.options.pluralSeparator)), v && V.push(Xe + De));
494
+ const He = `${this.options.pluralSeparator}zero`, Me = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
+ if (m && (V.push(p + de), n.ordinal && de.indexOf(Me) === 0 && V.push(p + de.replace(Me, this.options.pluralSeparator)), v && V.push(p + He)), f) {
496
+ const Ve = `${p}${this.options.contextSeparator}${n.context}`;
497
+ V.push(Ve), m && (V.push(Ve + de), n.ordinal && de.indexOf(Me) === 0 && V.push(Ve + de.replace(Me, this.options.pluralSeparator)), v && V.push(Ve + He));
498
498
  }
499
499
  }
500
500
  let ee;
@@ -1636,6 +1636,7 @@ const Pm = a.enum([
1636
1636
  created_at: a.string()
1637
1637
  }), of = a.object({
1638
1638
  domain: a.string(),
1639
+ custom_domain_id: a.string().optional(),
1639
1640
  type: a.enum(["auth0_managed_certs", "self_managed_certs"]),
1640
1641
  verification_method: a.enum(["txt"]).optional(),
1641
1642
  tls_policy: a.enum(["recommended"]).optional(),
@@ -2184,12 +2185,12 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2184
2185
  }, e.hashSync = function($, C) {
2185
2186
  if (typeof C > "u" && (C = _), typeof C == "number" && (C = e.genSaltSync(C)), typeof $ != "string" || typeof C != "string")
2186
2187
  throw Error("Illegal arguments: " + typeof $ + ", " + typeof C);
2187
- return Xe($, C);
2188
+ return Ve($, C);
2188
2189
  }, e.hash = function($, C, E, x) {
2189
2190
  function k(O) {
2190
2191
  typeof $ == "string" && typeof C == "number" ? e.genSalt(C, function(q, Q) {
2191
- Xe($, Q, O, x);
2192
- }) : typeof $ == "string" && typeof C == "string" ? Xe($, C, O, x) : o(O.bind(this, Error("Illegal arguments: " + typeof $ + ", " + typeof C)));
2192
+ Ve($, Q, O, x);
2193
+ }) : typeof $ == "string" && typeof C == "string" ? Ve($, C, O, x) : o(O.bind(this, Error("Illegal arguments: " + typeof $ + ", " + typeof C)));
2193
2194
  }
2194
2195
  if (E) {
2195
2196
  if (typeof E != "function")
@@ -3552,7 +3553,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3552
3553
  for (J = 0; J < q; J += 2)
3553
3554
  k = ee(k, 0, C, E), E[J] = k[0], E[J + 1] = k[1];
3554
3555
  }
3555
- function De($, C, E, x) {
3556
+ function He($, C, E, x) {
3556
3557
  for (var k = 0, O = [0, 0], q = E.length, Q = x.length, J, se = 0; se < q; se++)
3557
3558
  J = ue(C, k), k = J.offp, E[se] = E[se] ^ J.key;
3558
3559
  for (k = 0, se = 0; se < q; se += 2)
@@ -3560,7 +3561,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3560
3561
  for (se = 0; se < Q; se += 2)
3561
3562
  J = ue($, k), k = J.offp, O[0] ^= J.key, J = ue($, k), k = J.offp, O[1] ^= J.key, O = ee(O, 0, E, x), x[se] = O[0], x[se + 1] = O[1];
3562
3563
  }
3563
- function Fe($, C, E, x, k) {
3564
+ function Me($, C, E, x, k) {
3564
3565
  var O = V.slice(), q = O.length, Q;
3565
3566
  if (E < 4 || E > 31)
3566
3567
  if (Q = Error("Illegal number of rounds (4-31): " + E), x) {
@@ -3576,7 +3577,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3576
3577
  throw Q;
3577
3578
  E = 1 << E >>> 0;
3578
3579
  var J, se, fe = 0, H;
3579
- Int32Array ? (J = new Int32Array(j), se = new Int32Array(T)) : (J = j.slice(), se = T.slice()), De(C, $, J, se);
3580
+ Int32Array ? (J = new Int32Array(j), se = new Int32Array(T)) : (J = j.slice(), se = T.slice()), He(C, $, J, se);
3580
3581
  function $e() {
3581
3582
  if (k && k(fe / E), fe < E)
3582
3583
  for (var me = Date.now(); fe < E && (fe = fe + 1, de($, J, se), de(C, J, se), !(Date.now() - me > S)); )
@@ -3603,7 +3604,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3603
3604
  if (typeof (dn = $e()) < "u")
3604
3605
  return dn || [];
3605
3606
  }
3606
- function Xe($, C, E, x) {
3607
+ function Ve($, C, E, x) {
3607
3608
  var k;
3608
3609
  if (typeof $ != "string" || typeof C != "string")
3609
3610
  if (k = Error("Invalid string / salt: Not a string"), E) {
@@ -3643,8 +3644,8 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3643
3644
  return Ee.push("$2"), O >= "a" && Ee.push(O), Ee.push("$"), se < 10 && Ee.push("0"), Ee.push(se.toString()), Ee.push("$"), Ee.push(h($e, $e.length)), Ee.push(h(me, V.length * 4 - 1)), Ee.join("");
3644
3645
  }
3645
3646
  if (typeof E > "u")
3646
- return dn(Fe(H, $e, se));
3647
- Fe(H, $e, se, function(me, Ee) {
3647
+ return dn(Me(H, $e, se));
3648
+ Me(H, $e, se, function(me, Ee) {
3648
3649
  me ? E(me, null) : E(null, dn(Ee));
3649
3650
  }, x);
3650
3651
  }
@@ -4171,11 +4172,11 @@ nl.validate = function(t, e) {
4171
4172
  l += t[s];
4172
4173
  if (l = l.trim(), l[l.length - 1] === "/" && (l = l.substring(0, l.length - 1), s--), !P_(l)) {
4173
4174
  let h;
4174
- return l.trim().length === 0 ? h = "Invalid space after '<'." : h = "Tag '" + l + "' is an invalid name.", xe("InvalidTag", h, qe(t, s));
4175
+ return l.trim().length === 0 ? h = "Invalid space after '<'." : h = "Tag '" + l + "' is an invalid name.", xe("InvalidTag", h, ze(t, s));
4175
4176
  }
4176
4177
  const u = j_(t, s);
4177
4178
  if (u === !1)
4178
- return xe("InvalidAttr", "Attributes for '" + l + "' have open quote.", qe(t, s));
4179
+ return xe("InvalidAttr", "Attributes for '" + l + "' have open quote.", ze(t, s));
4179
4180
  let p = u.value;
4180
4181
  if (s = u.index, p[p.length - 1] === "/") {
4181
4182
  const h = s - p.length;
@@ -4184,32 +4185,32 @@ nl.validate = function(t, e) {
4184
4185
  if (m === !0)
4185
4186
  r = !0;
4186
4187
  else
4187
- return xe(m.err.code, m.err.msg, qe(t, h + m.err.line));
4188
+ return xe(m.err.code, m.err.msg, ze(t, h + m.err.line));
4188
4189
  } else if (c)
4189
4190
  if (u.tagClosed) {
4190
4191
  if (p.trim().length > 0)
4191
- return xe("InvalidTag", "Closing tag '" + l + "' can't have attributes or invalid starting.", qe(t, o));
4192
+ return xe("InvalidTag", "Closing tag '" + l + "' can't have attributes or invalid starting.", ze(t, o));
4192
4193
  if (n.length === 0)
4193
- return xe("InvalidTag", "Closing tag '" + l + "' has not been opened.", qe(t, o));
4194
+ return xe("InvalidTag", "Closing tag '" + l + "' has not been opened.", ze(t, o));
4194
4195
  {
4195
4196
  const h = n.pop();
4196
4197
  if (l !== h.tagName) {
4197
- let m = qe(t, h.tagStartPos);
4198
+ let m = ze(t, h.tagStartPos);
4198
4199
  return xe(
4199
4200
  "InvalidTag",
4200
4201
  "Expected closing tag '" + h.tagName + "' (opened in line " + m.line + ", col " + m.col + ") instead of closing tag '" + l + "'.",
4201
- qe(t, o)
4202
+ ze(t, o)
4202
4203
  );
4203
4204
  }
4204
4205
  n.length == 0 && (i = !0);
4205
4206
  }
4206
- } else return xe("InvalidTag", "Closing tag '" + l + "' doesn't have proper closing.", qe(t, s));
4207
+ } else return xe("InvalidTag", "Closing tag '" + l + "' doesn't have proper closing.", ze(t, s));
4207
4208
  else {
4208
4209
  const h = Du(p, e);
4209
4210
  if (h !== !0)
4210
- return xe(h.err.code, h.err.msg, qe(t, s - p.length + h.err.line));
4211
+ return xe(h.err.code, h.err.msg, ze(t, s - p.length + h.err.line));
4211
4212
  if (i === !0)
4212
- return xe("InvalidXml", "Multiple possible root nodes found.", qe(t, s));
4213
+ return xe("InvalidXml", "Multiple possible root nodes found.", ze(t, s));
4213
4214
  e.unpairedTags.indexOf(l) !== -1 || n.push({ tagName: l, tagStartPos: o }), r = !0;
4214
4215
  }
4215
4216
  for (s++; s < t.length; s++)
@@ -4224,20 +4225,20 @@ nl.validate = function(t, e) {
4224
4225
  else if (t[s] === "&") {
4225
4226
  const h = B_(t, s);
4226
4227
  if (h == -1)
4227
- return xe("InvalidChar", "char '&' is not expected.", qe(t, s));
4228
+ return xe("InvalidChar", "char '&' is not expected.", ze(t, s));
4228
4229
  s = h;
4229
4230
  } else if (i === !0 && !qu(t[s]))
4230
- return xe("InvalidXml", "Extra text at the end", qe(t, s));
4231
+ return xe("InvalidXml", "Extra text at the end", ze(t, s));
4231
4232
  t[s] === "<" && s--;
4232
4233
  }
4233
4234
  } else {
4234
4235
  if (qu(t[s]))
4235
4236
  continue;
4236
- return xe("InvalidChar", "char '" + t[s] + "' is not expected.", qe(t, s));
4237
+ return xe("InvalidChar", "char '" + t[s] + "' is not expected.", ze(t, s));
4237
4238
  }
4238
4239
  if (r) {
4239
4240
  if (n.length == 1)
4240
- return xe("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", qe(t, n[0].tagStartPos));
4241
+ return xe("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", ze(t, n[0].tagStartPos));
4241
4242
  if (n.length > 0)
4242
4243
  return xe("InvalidXml", "Invalid '" + JSON.stringify(n.map((s) => s.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
4243
4244
  } else return xe("InvalidXml", "Start tag expected.", 1);
@@ -4253,7 +4254,7 @@ function Mu(t, e) {
4253
4254
  if (t[e] == "?" || t[e] == " ") {
4254
4255
  const r = t.substr(n, e - n);
4255
4256
  if (e > 5 && r === "xml")
4256
- return xe("InvalidXml", "XML declaration allowed only at the start of the document.", qe(t, e));
4257
+ return xe("InvalidXml", "XML declaration allowed only at the start of the document.", ze(t, e));
4257
4258
  if (t[e] == "?" && t[e + 1] == ">") {
4258
4259
  e++;
4259
4260
  break;
@@ -4363,7 +4364,7 @@ function T_(t) {
4363
4364
  function P_(t) {
4364
4365
  return rl.isName(t);
4365
4366
  }
4366
- function qe(t, e) {
4367
+ function ze(t, e) {
4367
4368
  const n = t.substring(0, e).split(/\r?\n/);
4368
4369
  return {
4369
4370
  line: n.length,
@@ -6619,24 +6620,24 @@ var Wu;
6619
6620
  return H(B) || (B = kt(B)), O(A, I, B);
6620
6621
  }
6621
6622
  e("getMetadata", de);
6622
- function De(A, I, B) {
6623
+ function He(A, I, B) {
6623
6624
  if (!me(I))
6624
6625
  throw new TypeError();
6625
6626
  return H(B) || (B = kt(B)), q(A, I, B);
6626
6627
  }
6627
- e("getOwnMetadata", De);
6628
- function Fe(A, I) {
6628
+ e("getOwnMetadata", He);
6629
+ function Me(A, I) {
6629
6630
  if (!me(A))
6630
6631
  throw new TypeError();
6631
6632
  return H(I) || (I = kt(I)), J(A, I);
6632
6633
  }
6633
- e("getMetadataKeys", Fe);
6634
- function Xe(A, I) {
6634
+ e("getMetadataKeys", Me);
6635
+ function Ve(A, I) {
6635
6636
  if (!me(A))
6636
6637
  throw new TypeError();
6637
6638
  return H(I) || (I = kt(I)), se(A, I);
6638
6639
  }
6639
- e("getOwnMetadataKeys", Xe);
6640
+ e("getOwnMetadataKeys", Ve);
6640
6641
  function $(A, I, B) {
6641
6642
  if (!me(I))
6642
6643
  throw new TypeError();
@@ -7774,7 +7775,7 @@ class Zs {
7774
7775
  return al(this.items);
7775
7776
  }
7776
7777
  }
7777
- const Nr = [new Uint8Array([1])], Ju = "0123456789", Zo = "name", Zu = "valueHexView", fy = "isHexOnly", hy = "idBlock", gy = "tagClass", my = "tagNumber", _y = "isConstructed", yy = "fromBER", vy = "toBER", wy = "local", Ke = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent", jf = "OCTET STRING", $f = "BIT STRING";
7778
+ const Nr = [new Uint8Array([1])], Ju = "0123456789", Zo = "name", Zu = "valueHexView", fy = "isHexOnly", hy = "idBlock", gy = "tagClass", my = "tagNumber", _y = "isConstructed", yy = "fromBER", vy = "toBER", wy = "local", We = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent", jf = "OCTET STRING", $f = "BIT STRING";
7778
7779
  function jt(t) {
7779
7780
  var e;
7780
7781
  return e = class extends t {
@@ -7810,7 +7811,7 @@ function jt(t) {
7810
7811
  }, e.NAME = "hexBlock", e;
7811
7812
  }
7812
7813
  class Pn {
7813
- constructor({ blockLength: e = 0, error: n = Ke, warnings: r = [], valueBeforeDecode: i = Ys } = {}) {
7814
+ constructor({ blockLength: e = 0, error: n = We, warnings: r = [], valueBeforeDecode: i = Ys } = {}) {
7814
7815
  this.blockLength = e, this.error = n, this.warnings = r, this.valueBeforeDecodeView = D.toUint8Array(i);
7815
7816
  }
7816
7817
  static blockName() {
@@ -7833,7 +7834,7 @@ class Pn {
7833
7834
  }
7834
7835
  }
7835
7836
  Pn.NAME = "baseBlock";
7836
- class ze extends Pn {
7837
+ class Fe extends Pn {
7837
7838
  fromBER(e, n, r) {
7838
7839
  throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
7839
7840
  }
@@ -7841,7 +7842,7 @@ class ze extends Pn {
7841
7842
  throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
7842
7843
  }
7843
7844
  }
7844
- ze.NAME = "valueBlock";
7845
+ Fe.NAME = "valueBlock";
7845
7846
  class Of extends jt(Pn) {
7846
7847
  constructor({ idBlock: e = {} } = {}) {
7847
7848
  var n, r, i, s;
@@ -8022,8 +8023,8 @@ class Bf extends Pn {
8022
8023
  Bf.NAME = "lengthBlock";
8023
8024
  const W = {};
8024
8025
  class Re extends Pn {
8025
- constructor({ name: e = Ke, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
8026
- super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Of(i), this.lenBlock = new Bf(i), this.valueBlock = s ? new s(i) : new ze(i);
8026
+ constructor({ name: e = We, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
8027
+ super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Of(i), this.lenBlock = new Bf(i), this.valueBlock = s ? new s(i) : new Fe(i);
8027
8028
  }
8028
8029
  fromBER(e, n, r) {
8029
8030
  const i = this.valueBlock.fromBER(e, n, this.lenBlock.isIndefiniteForm ? r : this.lenBlock.length);
@@ -8077,7 +8078,7 @@ function Tf(t) {
8077
8078
  return !!t.lenBlock.isIndefiniteForm;
8078
8079
  }
8079
8080
  class cl extends Re {
8080
- constructor({ value: e = Ke, ...n } = {}, r) {
8081
+ constructor({ value: e = We, ...n } = {}, r) {
8081
8082
  super(n, r), e && this.fromString(e);
8082
8083
  }
8083
8084
  getValue() {
@@ -8095,7 +8096,7 @@ class cl extends Re {
8095
8096
  }
8096
8097
  }
8097
8098
  cl.NAME = "BaseStringBlock";
8098
- class Pf extends jt(ze) {
8099
+ class Pf extends jt(Fe) {
8099
8100
  constructor({ isHexOnly: e = !0, ...n } = {}) {
8100
8101
  super(n), this.isHexOnly = e;
8101
8102
  }
@@ -8118,7 +8119,7 @@ function by(t, e) {
8118
8119
  }
8119
8120
  function pr(t, e = 0, n = t.length) {
8120
8121
  const r = e;
8121
- let i = new Re({}, ze);
8122
+ let i = new Re({}, Fe);
8122
8123
  const s = new Pn();
8123
8124
  if (!Dt(s, t, e, n))
8124
8125
  return i.error = s.error, {
@@ -8274,7 +8275,7 @@ function pr(t, e = 0, n = t.length) {
8274
8275
  }
8275
8276
  function Kn(t) {
8276
8277
  if (!t.byteLength) {
8277
- const e = new Re({}, ze);
8278
+ const e = new Re({}, Fe);
8278
8279
  return e.error = "Input buffer has zero length", {
8279
8280
  offset: -1,
8280
8281
  result: e
@@ -8285,7 +8286,7 @@ function Kn(t) {
8285
8286
  function ky(t, e) {
8286
8287
  return t ? 1 : e;
8287
8288
  }
8288
- class Gt extends ze {
8289
+ class Gt extends Fe {
8289
8290
  constructor({ value: e = [], isIndefiniteForm: n = !1, ...r } = {}) {
8290
8291
  super(r), this.value = e, this.isIndefiniteForm = n;
8291
8292
  }
@@ -8324,7 +8325,7 @@ class Gt extends ze {
8324
8325
  }
8325
8326
  Gt.NAME = "ConstructedValueBlock";
8326
8327
  var Lf;
8327
- class We extends Re {
8328
+ class Ge extends Re {
8328
8329
  constructor(e = {}) {
8329
8330
  super(e, Gt), this.idBlock.isConstructed = !0;
8330
8331
  }
@@ -8345,10 +8346,10 @@ ${e.join(`
8345
8346
  `)}` : `${n} :`;
8346
8347
  }
8347
8348
  }
8348
- Lf = We;
8349
+ Lf = Ge;
8349
8350
  W.Constructed = Lf;
8350
- We.NAME = "CONSTRUCTED";
8351
- class Uf extends ze {
8351
+ Ge.NAME = "CONSTRUCTED";
8352
+ class Uf extends Fe {
8352
8353
  fromBER(e, n, r) {
8353
8354
  return n;
8354
8355
  }
@@ -8369,7 +8370,7 @@ ll.NAME = Dr;
8369
8370
  var qf;
8370
8371
  class kn extends Re {
8371
8372
  constructor(e = {}) {
8372
- super(e, ze), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
8373
+ super(e, Fe), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
8373
8374
  }
8374
8375
  fromBER(e, n, r) {
8375
8376
  return this.lenBlock.length > 0 && this.warnings.push("Non-zero length of value block for Null type"), this.idBlock.error.length || (this.blockLength += this.idBlock.blockLength), this.lenBlock.error.length || (this.blockLength += this.lenBlock.blockLength), this.blockLength += r, n + r > e.byteLength ? (this.error = "End of input reached before message was fully decoded (inconsistent offset and length values)", -1) : n + r;
@@ -8389,7 +8390,7 @@ class kn extends Re {
8389
8390
  qf = kn;
8390
8391
  W.Null = qf;
8391
8392
  kn.NAME = "NULL";
8392
- class Mf extends jt(ze) {
8393
+ class Mf extends jt(Fe) {
8393
8394
  constructor({ value: e, ...n } = {}) {
8394
8395
  super(n), n.valueHex ? this.valueHexView = D.toUint8Array(n.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
8395
8396
  }
@@ -8501,7 +8502,7 @@ let yn = class Hf extends Re {
8501
8502
  return super.fromBER(e, n, r);
8502
8503
  }
8503
8504
  onAsciiEncoding() {
8504
- return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? We.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${Z.ToHex(this.valueBlock.valueHexView)}`;
8505
+ return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? Ge.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${Z.ToHex(this.valueBlock.valueHexView)}`;
8505
8506
  }
8506
8507
  getValue() {
8507
8508
  if (!this.idBlock.isConstructed)
@@ -8600,7 +8601,7 @@ let vn = class extends Re {
8600
8601
  }
8601
8602
  onAsciiEncoding() {
8602
8603
  if (this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length)
8603
- return We.prototype.onAsciiEncoding.call(this);
8604
+ return Ge.prototype.onAsciiEncoding.call(this);
8604
8605
  {
8605
8606
  const e = [], n = this.valueBlock.valueHexView;
8606
8607
  for (const i of n)
@@ -8674,7 +8675,7 @@ function Sy(t, e) {
8674
8675
  }
8675
8676
  return s.slice();
8676
8677
  }
8677
- class ul extends jt(ze) {
8678
+ class ul extends jt(Fe) {
8678
8679
  constructor({ value: e, ...n } = {}) {
8679
8680
  super(n), this._valueDec = 0, n.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
8680
8681
  }
@@ -8803,7 +8804,7 @@ class Qs extends Et {
8803
8804
  Zf = Qs;
8804
8805
  W.Enumerated = Zf;
8805
8806
  Qs.NAME = "ENUMERATED";
8806
- class Ca extends jt(ze) {
8807
+ class Ca extends jt(Fe) {
8807
8808
  constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
8808
8809
  super(r), this.valueDec = e, this.isFirstSid = n;
8809
8810
  }
@@ -8873,8 +8874,8 @@ class Ca extends jt(ze) {
8873
8874
  }
8874
8875
  }
8875
8876
  Ca.NAME = "sidBlock";
8876
- class Yf extends ze {
8877
- constructor({ value: e = Ke, ...n } = {}) {
8877
+ class Yf extends Fe {
8878
+ constructor({ value: e = We, ...n } = {}) {
8878
8879
  super(n), this.value = [], e && this.fromString(e);
8879
8880
  }
8880
8881
  fromBER(e, n, r) {
@@ -9030,8 +9031,8 @@ class ja extends jt(Pn) {
9030
9031
  }
9031
9032
  }
9032
9033
  ja.NAME = "relativeSidBlock";
9033
- class Qf extends ze {
9034
- constructor({ value: e = Ke, ...n } = {}) {
9034
+ class Qf extends Fe {
9035
+ constructor({ value: e = We, ...n } = {}) {
9035
9036
  super(n), this.value = [], e && this.fromString(e);
9036
9037
  }
9037
9038
  fromBER(e, n, r) {
@@ -9112,7 +9113,7 @@ eh = dl;
9112
9113
  W.RelativeObjectIdentifier = eh;
9113
9114
  dl.NAME = "RelativeObjectIdentifier";
9114
9115
  var th;
9115
- class Rt extends We {
9116
+ class Rt extends Ge {
9116
9117
  constructor(e = {}) {
9117
9118
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
9118
9119
  }
@@ -9121,7 +9122,7 @@ th = Rt;
9121
9122
  W.Sequence = th;
9122
9123
  Rt.NAME = "SEQUENCE";
9123
9124
  var nh;
9124
- let Lt = class extends We {
9125
+ let Lt = class extends Ge {
9125
9126
  constructor(e = {}) {
9126
9127
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
9127
9128
  }
@@ -9129,9 +9130,9 @@ let Lt = class extends We {
9129
9130
  nh = Lt;
9130
9131
  W.Set = nh;
9131
9132
  Lt.NAME = "SET";
9132
- class rh extends jt(ze) {
9133
+ class rh extends jt(Fe) {
9133
9134
  constructor({ ...e } = {}) {
9134
- super(e), this.isHexOnly = !0, this.value = Ke;
9135
+ super(e), this.isHexOnly = !0, this.value = We;
9135
9136
  }
9136
9137
  toJSON() {
9137
9138
  return {
@@ -9540,7 +9541,7 @@ Eh = ml;
9540
9541
  W.TIME = Eh;
9541
9542
  ml.NAME = "TIME";
9542
9543
  class xn {
9543
- constructor({ name: e = Ke, optional: n = !1 } = {}) {
9544
+ constructor({ name: e = We, optional: n = !1 } = {}) {
9544
9545
  this.name = e, this.optional = n;
9545
9546
  }
9546
9547
  }
@@ -9695,7 +9696,7 @@ function gn(t, e, n) {
9695
9696
  result: t
9696
9697
  };
9697
9698
  }
9698
- if (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (t[n.name] = e)), n instanceof W.Constructed) {
9699
+ if (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (t[n.name] = e)), n instanceof W.Constructed) {
9699
9700
  let s = 0, o = {
9700
9701
  verified: !1,
9701
9702
  result: {
@@ -9714,7 +9715,7 @@ function gn(t, e, n) {
9714
9715
  return l ? {
9715
9716
  verified: !0,
9716
9717
  result: t
9717
- } : (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), t.error = "Inconsistent object length", {
9718
+ } : (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), t.error = "Inconsistent object length", {
9718
9719
  verified: !1,
9719
9720
  result: t
9720
9721
  });
@@ -9726,14 +9727,14 @@ function gn(t, e, n) {
9726
9727
  verified: !1,
9727
9728
  result: t
9728
9729
  };
9729
- return t.error = "Inconsistent length between ASN.1 data and schema", n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], u.name = n.name)), u;
9730
+ return t.error = "Inconsistent length between ASN.1 data and schema", n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], u.name = n.name)), u;
9730
9731
  }
9731
9732
  } else if (n.valueBlock.value[0] instanceof ss) {
9732
9733
  if (o = gn(t, e.valueBlock.value[l], n.valueBlock.value[0].value), o.verified === !1)
9733
9734
  if (n.valueBlock.value[0].optional)
9734
9735
  s++;
9735
9736
  else
9736
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), o;
9737
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), o;
9737
9738
  if (Zo in n.valueBlock.value[0] && n.valueBlock.value[0].name.length > 0) {
9738
9739
  let u = {};
9739
9740
  wy in n.valueBlock.value[0] && n.valueBlock.value[0].local ? u = e : u = t, typeof u[n.valueBlock.value[0].name] > "u" && (u[n.valueBlock.value[0].name] = []), u[n.valueBlock.value[0].name].push(e.valueBlock.value[l]);
@@ -9742,13 +9743,13 @@ function gn(t, e, n) {
9742
9743
  if (n.valueBlock.value[l].optional)
9743
9744
  s++;
9744
9745
  else
9745
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), o;
9746
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), o;
9746
9747
  if (o.verified === !1) {
9747
9748
  const l = {
9748
9749
  verified: !1,
9749
9750
  result: t
9750
9751
  };
9751
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], l.name = n.name)), l;
9752
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], l.name = n.name)), l;
9752
9753
  }
9753
9754
  return {
9754
9755
  verified: !0,
@@ -9762,7 +9763,7 @@ function gn(t, e, n) {
9762
9763
  verified: !1,
9763
9764
  result: s.result
9764
9765
  };
9765
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], o.name = n.name)), o;
9766
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], o.name = n.name)), o;
9766
9767
  }
9767
9768
  return gn(t, s.result, n.primitiveSchema);
9768
9769
  }
@@ -9793,7 +9794,7 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9793
9794
  Boolean: Xs,
9794
9795
  CharacterString: uo,
9795
9796
  Choice: _l,
9796
- Constructed: We,
9797
+ Constructed: Ge,
9797
9798
  DATE: pl,
9798
9799
  DateTime: hl,
9799
9800
  Duration: gl,
@@ -9822,7 +9823,7 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9822
9823
  UTCTime: li,
9823
9824
  UniversalString: no,
9824
9825
  Utf8String: Ft,
9825
- ValueBlock: ze,
9826
+ ValueBlock: Fe,
9826
9827
  VideotexString: oo,
9827
9828
  ViewWriter: Zs,
9828
9829
  VisibleString: ci,
@@ -10075,7 +10076,7 @@ class Jy {
10075
10076
  if (o.context !== null && o.context !== void 0)
10076
10077
  if (o.implicit)
10077
10078
  if (typeof o.type == "number" || Pt(o.type)) {
10078
- const p = o.repeated ? We : ai;
10079
+ const p = o.repeated ? Ge : ai;
10079
10080
  i.push(new p({
10080
10081
  name: c,
10081
10082
  optional: u,
@@ -10088,7 +10089,7 @@ class Jy {
10088
10089
  this.cache(o.type);
10089
10090
  const p = !!o.repeated;
10090
10091
  let h = p ? l : this.get(o.type, !0).schema;
10091
- h = "valueBlock" in h ? h.valueBlock.value : h.value, i.push(new We({
10092
+ h = "valueBlock" in h ? h.valueBlock.value : h.value, i.push(new Ge({
10092
10093
  name: p ? "" : c,
10093
10094
  optional: u,
10094
10095
  idBlock: {
@@ -10099,7 +10100,7 @@ class Jy {
10099
10100
  }));
10100
10101
  }
10101
10102
  else
10102
- i.push(new We({
10103
+ i.push(new Ge({
10103
10104
  optional: u,
10104
10105
  idBlock: {
10105
10106
  tagClass: 3,
@@ -10164,8 +10165,8 @@ class Zy {
10164
10165
  const i = st.get(n);
10165
10166
  st.cache(n);
10166
10167
  let s = i.schema;
10167
- if (e.constructor === We && i.type !== P.Choice) {
10168
- s = new We({
10168
+ if (e.constructor === Ge && i.type !== P.Choice) {
10169
+ s = new Ge({
10169
10170
  idBlock: {
10170
10171
  tagClass: 3,
10171
10172
  tagNumber: e.idBlock.tagNumber
@@ -10283,7 +10284,7 @@ class vl {
10283
10284
  ...p
10284
10285
  }));
10285
10286
  } else
10286
- i.push(new We({
10287
+ i.push(new Ge({
10287
10288
  optional: c.optional,
10288
10289
  idBlock: {
10289
10290
  tagClass: 3,
@@ -10292,7 +10293,7 @@ class vl {
10292
10293
  value: u.valueBlock.value
10293
10294
  }));
10294
10295
  else
10295
- i.push(new We({
10296
+ i.push(new Ge({
10296
10297
  optional: c.optional,
10297
10298
  idBlock: {
10298
10299
  tagClass: 3,
@@ -11091,16 +11092,16 @@ d([
11091
11092
  g({ type: b.Integer, optional: !0 })
11092
11093
  ], as.prototype, "pathLenConstraint", void 0);
11093
11094
  var Ua;
11094
- let Me = Ua = class extends ge {
11095
+ let De = Ua = class extends ge {
11095
11096
  constructor(e) {
11096
11097
  super(e), Object.setPrototypeOf(this, Ua.prototype);
11097
11098
  }
11098
11099
  };
11099
- Me = Ua = d([
11100
+ De = Ua = d([
11100
11101
  L({ type: P.Sequence, itemType: ie })
11101
- ], Me);
11102
+ ], De);
11102
11103
  var Va;
11103
- let sd = Va = class extends Me {
11104
+ let sd = Va = class extends De {
11104
11105
  constructor(e) {
11105
11106
  super(e), Object.setPrototypeOf(this, Va.prototype);
11106
11107
  }
@@ -11275,30 +11276,30 @@ let ad = Da = class extends Wn {
11275
11276
  ad = Da = d([
11276
11277
  L({ type: P.Sequence, itemType: hr })
11277
11278
  ], ad);
11278
- class Ve {
11279
+ class qe {
11279
11280
  constructor(e = {}) {
11280
- this.onlyContainsUserCerts = Ve.ONLY, this.onlyContainsCACerts = Ve.ONLY, this.indirectCRL = Ve.ONLY, this.onlyContainsAttributeCerts = Ve.ONLY, Object.assign(this, e);
11281
+ this.onlyContainsUserCerts = qe.ONLY, this.onlyContainsCACerts = qe.ONLY, this.indirectCRL = qe.ONLY, this.onlyContainsAttributeCerts = qe.ONLY, Object.assign(this, e);
11281
11282
  }
11282
11283
  }
11283
- Ve.ONLY = !1;
11284
+ qe.ONLY = !1;
11284
11285
  d([
11285
11286
  g({ type: Sn, context: 0, optional: !0 })
11286
- ], Ve.prototype, "distributionPoint", void 0);
11287
+ ], qe.prototype, "distributionPoint", void 0);
11287
11288
  d([
11288
- g({ type: b.Boolean, context: 1, defaultValue: Ve.ONLY, implicit: !0 })
11289
- ], Ve.prototype, "onlyContainsUserCerts", void 0);
11289
+ g({ type: b.Boolean, context: 1, defaultValue: qe.ONLY, implicit: !0 })
11290
+ ], qe.prototype, "onlyContainsUserCerts", void 0);
11290
11291
  d([
11291
- g({ type: b.Boolean, context: 2, defaultValue: Ve.ONLY, implicit: !0 })
11292
- ], Ve.prototype, "onlyContainsCACerts", void 0);
11292
+ g({ type: b.Boolean, context: 2, defaultValue: qe.ONLY, implicit: !0 })
11293
+ ], qe.prototype, "onlyContainsCACerts", void 0);
11293
11294
  d([
11294
11295
  g({ type: Bh, context: 3, optional: !0, implicit: !0 })
11295
- ], Ve.prototype, "onlySomeReasons", void 0);
11296
+ ], qe.prototype, "onlySomeReasons", void 0);
11296
11297
  d([
11297
- g({ type: b.Boolean, context: 4, defaultValue: Ve.ONLY, implicit: !0 })
11298
- ], Ve.prototype, "indirectCRL", void 0);
11298
+ g({ type: b.Boolean, context: 4, defaultValue: qe.ONLY, implicit: !0 })
11299
+ ], qe.prototype, "indirectCRL", void 0);
11299
11300
  d([
11300
- g({ type: b.Boolean, context: 5, defaultValue: Ve.ONLY, implicit: !0 })
11301
- ], Ve.prototype, "onlyContainsAttributeCerts", void 0);
11301
+ g({ type: b.Boolean, context: 5, defaultValue: qe.ONLY, implicit: !0 })
11302
+ ], qe.prototype, "onlyContainsAttributeCerts", void 0);
11302
11303
  var Rr;
11303
11304
  (function(t) {
11304
11305
  t[t.unspecified = 0] = "unspecified", t[t.keyCompromise = 1] = "keyCompromise", t[t.cACompromise = 2] = "cACompromise", t[t.affiliationChanged = 3] = "affiliationChanged", t[t.superseded = 4] = "superseded", t[t.cessationOfOperation = 5] = "cessationOfOperation", t[t.certificateHold = 6] = "certificateHold", t[t.removeFromCRL = 8] = "removeFromCRL", t[t.privilegeWithdrawn = 9] = "privilegeWithdrawn", t[t.aACompromise = 10] = "aACompromise";
@@ -11354,7 +11355,7 @@ Wa = d([
11354
11355
  L({ type: P.Choice })
11355
11356
  ], Wa);
11356
11357
  var Ga;
11357
- let cd = Ga = class extends Me {
11358
+ let cd = Ga = class extends De {
11358
11359
  constructor(e) {
11359
11360
  super(e), Object.setPrototypeOf(this, Ga.prototype);
11360
11361
  }
@@ -11455,7 +11456,7 @@ ld = Za = d([
11455
11456
  ], ld);
11456
11457
  var Ya;
11457
11458
  const Uh = `${on}.17`;
11458
- let Xa = Ya = class extends Me {
11459
+ let Xa = Ya = class extends De {
11459
11460
  constructor(e) {
11460
11461
  super(e), Object.setPrototypeOf(this, Ya.prototype);
11461
11462
  }
@@ -11903,11 +11904,11 @@ d([
11903
11904
  ], vo.prototype, "permitUnSpecified", void 0);
11904
11905
  class Rn {
11905
11906
  constructor(e = {}) {
11906
- this.issuer = new Me(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
11907
+ this.issuer = new De(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
11907
11908
  }
11908
11909
  }
11909
11910
  d([
11910
- g({ type: Me })
11911
+ g({ type: De })
11911
11912
  ], Rn.prototype, "issuer", void 0);
11912
11913
  d([
11913
11914
  g({ type: b.Integer, converter: ve })
@@ -11942,7 +11943,7 @@ class wo {
11942
11943
  }
11943
11944
  }
11944
11945
  d([
11945
- g({ type: Me, optional: !0 })
11946
+ g({ type: De, optional: !0 })
11946
11947
  ], wo.prototype, "issuerName", void 0);
11947
11948
  d([
11948
11949
  g({ type: Rn, context: 0, implicit: !0, optional: !0 })
@@ -11984,7 +11985,7 @@ d([
11984
11985
  g({ type: Rn, implicit: !0, context: 0, optional: !0 })
11985
11986
  ], pi.prototype, "baseCertificateID", void 0);
11986
11987
  d([
11987
- g({ type: Me, implicit: !0, context: 1, optional: !0 })
11988
+ g({ type: De, implicit: !0, context: 1, optional: !0 })
11988
11989
  ], pi.prototype, "entityName", void 0);
11989
11990
  d([
11990
11991
  g({ type: Ln, implicit: !0, context: 2, optional: !0 })
@@ -12090,7 +12091,7 @@ class Fh {
12090
12091
  }
12091
12092
  }
12092
12093
  d([
12093
- g({ type: Me, implicit: !0, context: 0, optional: !0 })
12094
+ g({ type: De, implicit: !0, context: 0, optional: !0 })
12094
12095
  ], Fh.prototype, "policyAuthority", void 0);
12095
12096
  d([
12096
12097
  g({ type: xo, repeated: "sequence" })
@@ -12150,7 +12151,7 @@ class Hh {
12150
12151
  }
12151
12152
  }
12152
12153
  d([
12153
- g({ type: Me, implicit: !0, context: 0, optional: !0 })
12154
+ g({ type: De, implicit: !0, context: 0, optional: !0 })
12154
12155
  ], Hh.prototype, "roleAuthority", void 0);
12155
12156
  d([
12156
12157
  g({ type: ie, implicit: !0, context: 1 })
@@ -12718,7 +12719,7 @@ d([
12718
12719
  d([
12719
12720
  g({ type: b.Integer, converter: ve })
12720
12721
  ], Ss.prototype, "s", void 0);
12721
- const Je = "1.2.840.113549.1.1", Nn = `${Je}.1`, dv = `${Je}.7`, pv = `${Je}.9`, Ur = `${Je}.10`, fv = `${Je}.2`, hv = `${Je}.4`, As = `${Je}.5`, gv = `${Je}.14`, vc = `${Je}.11`, Es = `${Je}.12`, Is = `${Je}.13`, Wh = `${Je}.15`, Gh = `${Je}.16`, Ns = "1.3.14.3.2.26", Jh = "2.16.840.1.101.3.4.2.4", Cs = "2.16.840.1.101.3.4.2.1", js = "2.16.840.1.101.3.4.2.2", $s = "2.16.840.1.101.3.4.2.3", mv = "2.16.840.1.101.3.4.2.5", _v = "2.16.840.1.101.3.4.2.6", yv = "1.2.840.113549.2.2", vv = "1.2.840.113549.2.5", jo = `${Je}.8`;
12722
+ const Ze = "1.2.840.113549.1.1", Nn = `${Ze}.1`, dv = `${Ze}.7`, pv = `${Ze}.9`, Ur = `${Ze}.10`, fv = `${Ze}.2`, hv = `${Ze}.4`, As = `${Ze}.5`, gv = `${Ze}.14`, vc = `${Ze}.11`, Es = `${Ze}.12`, Is = `${Ze}.13`, Wh = `${Ze}.15`, Gh = `${Ze}.16`, Ns = "1.3.14.3.2.26", Jh = "2.16.840.1.101.3.4.2.4", Cs = "2.16.840.1.101.3.4.2.1", js = "2.16.840.1.101.3.4.2.2", $s = "2.16.840.1.101.3.4.2.3", mv = "2.16.840.1.101.3.4.2.5", _v = "2.16.840.1.101.3.4.2.6", yv = "1.2.840.113549.2.2", vv = "1.2.840.113549.2.5", jo = `${Ze}.8`;
12722
12723
  function je(t) {
12723
12724
  return new K({ algorithm: t, parameters: null });
12724
12725
  }
@@ -12877,7 +12878,7 @@ var kc;
12877
12878
  (function(t) {
12878
12879
  t[t.Transient = 0] = "Transient", t[t.Singleton = 1] = "Singleton", t[t.ResolutionScoped = 2] = "ResolutionScoped", t[t.ContainerScoped = 3] = "ContainerScoped";
12879
12880
  })(kc || (kc = {}));
12880
- const He = kc;
12881
+ const Ke = kc;
12881
12882
  /*! *****************************************************************************
12882
12883
  Copyright (c) Microsoft Corporation.
12883
12884
 
@@ -13173,7 +13174,7 @@ var Ov = function(t) {
13173
13174
  this.parent = e, this._registry = new Iv(), this.interceptors = new Tv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
13174
13175
  }
13175
13176
  return t.prototype.register = function(e, n, r) {
13176
- r === void 0 && (r = { lifecycle: He.Transient }), this.ensureNotDisposed();
13177
+ r === void 0 && (r = { lifecycle: Ke.Transient }), this.ensureNotDisposed();
13177
13178
  var i;
13178
13179
  if (Ev(n) ? i = n : i = { useClass: n }, qi(i))
13179
13180
  for (var s = [e], o = i; o != null; ) {
@@ -13184,8 +13185,8 @@ var Ov = function(t) {
13184
13185
  var l = this._registry.get(c);
13185
13186
  l && qi(l.provider) ? o = l.provider : o = null;
13186
13187
  }
13187
- if ((r.lifecycle === He.Singleton || r.lifecycle == He.ContainerScoped || r.lifecycle == He.ResolutionScoped) && (Mi(i) || Sc(i)))
13188
- throw new Error('Cannot use lifecycle "' + He[r.lifecycle] + '" with ValueProviders or FactoryProviders');
13188
+ if ((r.lifecycle === Ke.Singleton || r.lifecycle == Ke.ContainerScoped || r.lifecycle == Ke.ResolutionScoped) && (Mi(i) || Sc(i)))
13189
+ throw new Error('Cannot use lifecycle "' + Ke[r.lifecycle] + '" with ValueProviders or FactoryProviders');
13189
13190
  return this._registry.set(e, { provider: i, options: r }), this;
13190
13191
  }, t.prototype.registerType = function(e, n) {
13191
13192
  return this.ensureNotDisposed(), zn(n) ? this.register(e, {
@@ -13202,17 +13203,17 @@ var Ov = function(t) {
13202
13203
  if (zn(n))
13203
13204
  return this.register(e, {
13204
13205
  useToken: n
13205
- }, { lifecycle: He.Singleton });
13206
+ }, { lifecycle: Ke.Singleton });
13206
13207
  if (n)
13207
13208
  return this.register(e, {
13208
13209
  useClass: n
13209
- }, { lifecycle: He.Singleton });
13210
+ }, { lifecycle: Ke.Singleton });
13210
13211
  throw new Error('Cannot register a type name as a singleton without a "to" token');
13211
13212
  }
13212
13213
  var r = e;
13213
13214
  return n && !zn(n) && (r = n), this.register(e, {
13214
13215
  useClass: r
13215
- }, { lifecycle: He.Singleton });
13216
+ }, { lifecycle: Ke.Singleton });
13216
13217
  }, t.prototype.resolve = function(e, n) {
13217
13218
  n === void 0 && (n = new wd()), this.ensureNotDisposed();
13218
13219
  var r = this.getRegistration(e);
@@ -13268,10 +13269,10 @@ var Ov = function(t) {
13268
13269
  this.interceptors.postResolution.setAll(e, o);
13269
13270
  }
13270
13271
  }, t.prototype.resolveRegistration = function(e, n) {
13271
- if (this.ensureNotDisposed(), e.options.lifecycle === He.ResolutionScoped && n.scopedResolutions.has(e))
13272
+ if (this.ensureNotDisposed(), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.has(e))
13272
13273
  return n.scopedResolutions.get(e);
13273
- var r = e.options.lifecycle === He.Singleton, i = e.options.lifecycle === He.ContainerScoped, s = r || i, o;
13274
- return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Xh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : Sc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === He.ResolutionScoped && n.scopedResolutions.set(e, o), o;
13274
+ var r = e.options.lifecycle === Ke.Singleton, i = e.options.lifecycle === Ke.ContainerScoped, s = r || i, o;
13275
+ return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Xh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : Sc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.set(e, o), o;
13275
13276
  }, t.prototype.resolveAll = function(e, n) {
13276
13277
  var r = this;
13277
13278
  n === void 0 && (n = new wd()), this.ensureNotDisposed();
@@ -13320,9 +13321,9 @@ var Ov = function(t) {
13320
13321
  var o = Os(s.value, 2), c = o[0], l = o[1];
13321
13322
  l.some(function(u) {
13322
13323
  var p = u.options;
13323
- return p.lifecycle === He.ContainerScoped;
13324
+ return p.lifecycle === Ke.ContainerScoped;
13324
13325
  }) && r._registry.setAll(c, l.map(function(u) {
13325
- return u.options.lifecycle === He.ContainerScoped ? {
13326
+ return u.options.lifecycle === Ke.ContainerScoped ? {
13326
13327
  provider: u.provider,
13327
13328
  options: u.options
13328
13329
  } : u;
@@ -13871,7 +13872,7 @@ class Rv {
13871
13872
  const $n = "crypto.algorithmProvider";
13872
13873
  Ue.registerSingleton($n, Rv);
13873
13874
  var zi;
13874
- const Ze = "1.3.36.3.3.2.8.1.1", Vd = `${Ze}.1`, qd = `${Ze}.2`, Md = `${Ze}.3`, zd = `${Ze}.4`, Dd = `${Ze}.5`, Fd = `${Ze}.6`, Hd = `${Ze}.7`, Kd = `${Ze}.8`, Wd = `${Ze}.9`, Gd = `${Ze}.10`, Jd = `${Ze}.11`, Zd = `${Ze}.12`, Yd = `${Ze}.13`, Xd = `${Ze}.14`, Qd = "brainpoolP160r1", ep = "brainpoolP160t1", tp = "brainpoolP192r1", np = "brainpoolP192t1", rp = "brainpoolP224r1", ip = "brainpoolP224t1", sp = "brainpoolP256r1", op = "brainpoolP256t1", ap = "brainpoolP320r1", cp = "brainpoolP320t1", lp = "brainpoolP384r1", up = "brainpoolP384t1", dp = "brainpoolP512r1", pp = "brainpoolP512t1", we = "ECDSA";
13875
+ const Ye = "1.3.36.3.3.2.8.1.1", Vd = `${Ye}.1`, qd = `${Ye}.2`, Md = `${Ye}.3`, zd = `${Ye}.4`, Dd = `${Ye}.5`, Fd = `${Ye}.6`, Hd = `${Ye}.7`, Kd = `${Ye}.8`, Wd = `${Ye}.9`, Gd = `${Ye}.10`, Jd = `${Ye}.11`, Zd = `${Ye}.12`, Yd = `${Ye}.13`, Xd = `${Ye}.14`, Qd = "brainpoolP160r1", ep = "brainpoolP160t1", tp = "brainpoolP192r1", np = "brainpoolP192t1", rp = "brainpoolP224r1", ip = "brainpoolP224t1", sp = "brainpoolP256r1", op = "brainpoolP256t1", ap = "brainpoolP320r1", cp = "brainpoolP320t1", lp = "brainpoolP384r1", up = "brainpoolP384t1", dp = "brainpoolP512r1", pp = "brainpoolP512t1", we = "ECDSA";
13875
13876
  let Yr = zi = class {
13876
13877
  toAsnAlgorithm(e) {
13877
13878
  switch (e.name.toLowerCase()) {
@@ -14266,19 +14267,19 @@ class dg {
14266
14267
  this.items[e] = n, this.items[n] = e;
14267
14268
  }
14268
14269
  }
14269
- const Ge = new dg();
14270
- Ge.register("CN", "2.5.4.3");
14271
- Ge.register("L", "2.5.4.7");
14272
- Ge.register("ST", "2.5.4.8");
14273
- Ge.register("O", "2.5.4.10");
14274
- Ge.register("OU", "2.5.4.11");
14275
- Ge.register("C", "2.5.4.6");
14276
- Ge.register("DC", "0.9.2342.19200300.100.1.25");
14277
- Ge.register("E", "1.2.840.113549.1.9.1");
14278
- Ge.register("G", "2.5.4.42");
14279
- Ge.register("I", "2.5.4.43");
14280
- Ge.register("SN", "2.5.4.4");
14281
- Ge.register("T", "2.5.4.12");
14270
+ const Je = new dg();
14271
+ Je.register("CN", "2.5.4.3");
14272
+ Je.register("L", "2.5.4.7");
14273
+ Je.register("ST", "2.5.4.8");
14274
+ Je.register("O", "2.5.4.10");
14275
+ Je.register("OU", "2.5.4.11");
14276
+ Je.register("C", "2.5.4.6");
14277
+ Je.register("DC", "0.9.2342.19200300.100.1.25");
14278
+ Je.register("E", "1.2.840.113549.1.9.1");
14279
+ Je.register("G", "2.5.4.42");
14280
+ Je.register("I", "2.5.4.43");
14281
+ Je.register("SN", "2.5.4.4");
14282
+ Je.register("T", "2.5.4.12");
14282
14283
  function qv(t, e) {
14283
14284
  return `\\${Z.ToHex(Z.FromUtf8String(e)).toUpperCase()}`;
14284
14285
  }
@@ -14305,14 +14306,14 @@ class ot {
14305
14306
  typeof e == "string" ? this.asn = this.fromString(e) : e instanceof Se ? this.asn = e : D.isBufferSource(e) ? this.asn = z.parse(e, Se) : this.asn = this.fromJSON(e);
14306
14307
  }
14307
14308
  getField(e) {
14308
- const n = this.extraNames.findId(e) || Ge.findId(e), r = [];
14309
+ const n = this.extraNames.findId(e) || Je.findId(e), r = [];
14309
14310
  for (const i of this.asn)
14310
14311
  for (const s of i)
14311
14312
  s.type === n && r.push(s.value.toString());
14312
14313
  return r;
14313
14314
  }
14314
14315
  getName(e) {
14315
- return this.extraNames.get(e) || Ge.get(e);
14316
+ return this.extraNames.get(e) || Je.get(e);
14316
14317
  }
14317
14318
  toString() {
14318
14319
  return this.asn.map((e) => e.map((n) => {
@@ -14522,7 +14523,7 @@ class Wt extends cn {
14522
14523
  class Xr extends cn {
14523
14524
  constructor(e) {
14524
14525
  let n;
14525
- if (e instanceof Me)
14526
+ if (e instanceof De)
14526
14527
  n = e;
14527
14528
  else if (Array.isArray(e)) {
14528
14529
  const r = [];
@@ -14533,9 +14534,9 @@ class Xr extends cn {
14533
14534
  const s = z.parse(new Wt(i.type, i.value).rawData, ie);
14534
14535
  r.push(s);
14535
14536
  }
14536
- n = new Me(r);
14537
+ n = new De(r);
14537
14538
  } else if (D.isBufferSource(e))
14538
- n = z.parse(e, Me);
14539
+ n = z.parse(e, De);
14539
14540
  else
14540
14541
  throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
14541
14542
  super(n);
@@ -14770,7 +14771,7 @@ class ei extends ut {
14770
14771
  const n = new mn({ keyIdentifier: new kl(Z.FromHex(e[0])) });
14771
14772
  super(La, e[1], z.serialize(n));
14772
14773
  } else {
14773
- const n = e[0], r = n.name instanceof Xr ? z.parse(n.name.rawData, Me) : n.name, i = new mn({
14774
+ const n = e[0], r = n.name instanceof Xr ? z.parse(n.name.rawData, De) : n.name, i = new mn({
14774
14775
  authorityCertIssuer: r,
14775
14776
  authorityCertSerialNumber: Z.FromHex(n.serialNumber)
14776
14777
  });
@@ -18579,8 +18580,26 @@ const cb = new ae().openapi(
18579
18580
  u.user_id
18580
18581
  );
18581
18582
  p && (t.set("user_id", p.user_id), t.set("connection", p.connection));
18583
+ const h = await t.env.data.refreshTokens.list(
18584
+ r.tenant.id,
18585
+ {
18586
+ q: `session_id=${l}`,
18587
+ page: 0,
18588
+ per_page: 100,
18589
+ include_totals: !1
18590
+ }
18591
+ );
18592
+ await Promise.all(
18593
+ h.refresh_tokens.map(
18594
+ (m) => t.env.data.refreshTokens.remove(
18595
+ r.tenant.id,
18596
+ m.id
18597
+ )
18598
+ )
18599
+ ), await t.env.data.sessions.update(r.tenant.id, l, {
18600
+ revoked_at: (/* @__PURE__ */ new Date()).toISOString()
18601
+ });
18582
18602
  }
18583
- await t.env.data.sessions.remove(r.tenant.id, l);
18584
18603
  }
18585
18604
  }
18586
18605
  const c = be(t, {
@@ -20125,10 +20144,10 @@ const $b = new ae().openapi(
20125
20144
  throw new N(400, {
20126
20145
  message: `Invalid redirect URI - ${ue.redirect_uri}`
20127
20146
  });
20128
- const De = ns(
20147
+ const He = ns(
20129
20148
  ee.tenant.id,
20130
20149
  t.req.header("cookie")
20131
- ), Fe = De ? await e.data.sessions.get(ee.tenant.id, De) : void 0;
20150
+ ), Me = He ? await e.data.sessions.get(ee.tenant.id, He) : void 0, Ve = Me && !Me.revoked_at ? Me : void 0;
20132
20151
  if (f == "none") {
20133
20152
  if (!p)
20134
20153
  throw new N(400, {
@@ -20136,7 +20155,7 @@ const $b = new ae().openapi(
20136
20155
  });
20137
20156
  return jb({
20138
20157
  ctx: t,
20139
- session: Fe || void 0,
20158
+ session: Ve || void 0,
20140
20159
  redirect_uri: i,
20141
20160
  state: o,
20142
20161
  response_type: p,
@@ -20159,7 +20178,7 @@ const $b = new ae().openapi(
20159
20178
  client: ee,
20160
20179
  auth0Client: S,
20161
20180
  authParams: ue,
20162
- session: Fe || void 0,
20181
+ session: Ve || void 0,
20163
20182
  connection: u,
20164
20183
  login_hint: j
20165
20184
  });
@@ -20777,7 +20796,7 @@ const s1 = (t) => {
20777
20796
  --text-on-primary: ${e.buttonTextColor};
20778
20797
  }
20779
20798
  `;
20780
- }, o1 = "https://assets.sesamy.com/images/login-bg.jpg", Ye = ({
20799
+ }, o1 = "https://assets.sesamy.com/images/login-bg.jpg", Xe = ({
20781
20800
  title: t,
20782
20801
  children: e,
20783
20802
  vendorSettings: n
@@ -21090,7 +21109,7 @@ const s1 = (t) => {
21090
21109
  impersonation: s
21091
21110
  }) => {
21092
21111
  const o = i.connections.map(({ name: m }) => m), c = o.includes("facebook"), l = o.includes("google-oauth2"), u = o.includes("apple"), p = o.includes("vipps"), h = c || l || u || p;
21093
- return /* @__PURE__ */ y(Ye, { title: R.t("welcome"), vendorSettings: e, children: [
21112
+ return /* @__PURE__ */ y(Xe, { title: R.t("welcome"), vendorSettings: e, children: [
21094
21113
  /* @__PURE__ */ y("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: R.t("welcome") }),
21095
21114
  /* @__PURE__ */ y("div", { className: "mb-8 text-gray-300", children: R.t("login_description") }),
21096
21115
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
@@ -21935,7 +21954,7 @@ const du = (t) => {
21935
21954
  state: r
21936
21955
  }), l = i.connections.map(({ name: u }) => u).includes("auth2");
21937
21956
  return /* @__PURE__ */ y(
21938
- Ye,
21957
+ Xe,
21939
21958
  {
21940
21959
  title: R.t("verify_your_email"),
21941
21960
  vendorSettings: e,
@@ -22122,7 +22141,7 @@ const du = (t) => {
22122
22141
  ), L1 = (t) => {
22123
22142
  const { vendorSettings: e, state: n } = t;
22124
22143
  return /* @__PURE__ */ y(
22125
- Ye,
22144
+ Xe,
22126
22145
  {
22127
22146
  title: R.t("unverified_email"),
22128
22147
  vendorSettings: e,
@@ -22143,7 +22162,7 @@ const du = (t) => {
22143
22162
  const { error: e, vendorSettings: n, email: r, state: i } = t, s = new URLSearchParams({
22144
22163
  state: i
22145
22164
  });
22146
- return /* @__PURE__ */ y(Ye, { title: R.t("enter_password"), vendorSettings: n, children: [
22165
+ return /* @__PURE__ */ y(Xe, { title: R.t("enter_password"), vendorSettings: n, children: [
22147
22166
  /* @__PURE__ */ y("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: R.t("enter_password") }),
22148
22167
  /* @__PURE__ */ y("div", { className: "mb-6 text-gray-300", children: R.t("enter_password_description") }),
22149
22168
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
@@ -22325,7 +22344,7 @@ const du = (t) => {
22325
22344
  ), jr = (t) => {
22326
22345
  const { state: e, error: n, vendorSettings: r, email: i, code: s } = t;
22327
22346
  return /* @__PURE__ */ y(
22328
- Ye,
22347
+ Xe,
22329
22348
  {
22330
22349
  title: R.t("create_account_title"),
22331
22350
  vendorSettings: r,
@@ -22375,7 +22394,7 @@ const du = (t) => {
22375
22394
  );
22376
22395
  }, pu = (t) => {
22377
22396
  const { message: e, vendorSettings: n, pageTitle: r, state: i } = t;
22378
- return /* @__PURE__ */ y(Ye, { title: "Login", vendorSettings: n, children: [
22397
+ return /* @__PURE__ */ y(Xe, { title: "Login", vendorSettings: n, children: [
22379
22398
  r ? /* @__PURE__ */ y("div", { className: "mb-6 text-gray-300", children: r }) : "",
22380
22399
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: e }),
22381
22400
  i ? /* @__PURE__ */ y(Ct, { state: i }) : ""
@@ -22566,7 +22585,7 @@ const du = (t) => {
22566
22585
  ), $r = (t) => {
22567
22586
  const { error: e, vendorSettings: n, email: r } = t;
22568
22587
  return /* @__PURE__ */ y(
22569
- Ye,
22588
+ Xe,
22570
22589
  {
22571
22590
  title: R.t("reset_password_title"),
22572
22591
  vendorSettings: n,
@@ -22758,7 +22777,7 @@ const du = (t) => {
22758
22777
  ), M1 = (t) => {
22759
22778
  const { error: e, vendorSettings: n, email: r, state: i } = t;
22760
22779
  return /* @__PURE__ */ y(
22761
- Ye,
22780
+ Xe,
22762
22781
  {
22763
22782
  title: R.t("forgot_password_title"),
22764
22783
  vendorSettings: n,
@@ -22788,7 +22807,7 @@ const du = (t) => {
22788
22807
  );
22789
22808
  }, z1 = (t) => {
22790
22809
  const { vendorSettings: e, state: n } = t;
22791
- return /* @__PURE__ */ y(Ye, { title: "Login", vendorSettings: e, children: [
22810
+ return /* @__PURE__ */ y(Xe, { title: "Login", vendorSettings: e, children: [
22792
22811
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22793
22812
  /* @__PURE__ */ y("div", { children: R.t("forgot_password_email_sent") }),
22794
22813
  /* @__PURE__ */ y("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
@@ -22867,7 +22886,7 @@ const du = (t) => {
22867
22886
  )
22868
22887
  );
22869
22888
  }
22870
- ), F1 = ({ vendorSettings: t, state: e, user: n }) => /* @__PURE__ */ y(Ye, { title: oe("check_email_title"), vendorSettings: t, children: /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22889
+ ), F1 = ({ vendorSettings: t, state: e, user: n }) => /* @__PURE__ */ y(Xe, { title: oe("check_email_title"), vendorSettings: t, children: /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22871
22890
  /* @__PURE__ */ y("div", { className: "mb-8 text-gray-700 dark:text-gray-300", children: [
22872
22891
  /* @__PURE__ */ y(
22873
22892
  du,
@@ -22978,7 +22997,7 @@ const du = (t) => {
22978
22997
  ), K1 = (t) => {
22979
22998
  const { vendorSettings: e, email: n, state: r } = t;
22980
22999
  return /* @__PURE__ */ y(
22981
- Ye,
23000
+ Xe,
22982
23001
  {
22983
23002
  title: R.t("create_password_account_title"),
22984
23003
  vendorSettings: e,
@@ -23077,7 +23096,7 @@ const du = (t) => {
23077
23096
  ), G1 = (t) => {
23078
23097
  const { redirectUrl: e, vendorSettings: n } = t;
23079
23098
  return /* @__PURE__ */ y(
23080
- Ye,
23099
+ Xe,
23081
23100
  {
23082
23101
  title: R.t("invalid_session_title"),
23083
23102
  vendorSettings: n,
@@ -23166,7 +23185,7 @@ const du = (t) => {
23166
23185
  state: e
23167
23186
  });
23168
23187
  return /* @__PURE__ */ y(
23169
- Ye,
23188
+ Xe,
23170
23189
  {
23171
23190
  title: R.t("email_validated"),
23172
23191
  vendorSettings: t,
@@ -23255,7 +23274,7 @@ const du = (t) => {
23255
23274
  ), Q1 = (t) => {
23256
23275
  const { vendorSettings: e, email: n, state: r } = t;
23257
23276
  return /* @__PURE__ */ y(
23258
- Ye,
23277
+ Xe,
23259
23278
  {
23260
23279
  title: R.t("email_verification_for_signup_sent_title"),
23261
23280
  vendorSettings: e,