authhero 0.85.0 → 0.86.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
@@ -1,7 +1,7 @@
1
1
  var am = Object.defineProperty;
2
2
  var cm = (t, e, n) => e in t ? am(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var ne = (t, e, n) => cm(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { z as a, OpenAPIHono as le, createRoute as q } from "@hono/zod-openapi";
4
+ import { z as a, OpenAPIHono as ue, createRoute as q } from "@hono/zod-openapi";
5
5
  const re = (t) => typeof t == "string", kr = () => {
6
6
  let t, e;
7
7
  const n = new Promise((r, i) => {
@@ -361,8 +361,8 @@ class Qi extends Ms {
361
361
  }
362
362
  const h = this.resolve(e, n);
363
363
  let m = h == null ? void 0 : h.res;
364
- const v = (h == null ? void 0 : h.usedKey) || o, f = (h == null ? void 0 : h.exactUsedKey) || o, _ = Object.prototype.toString.apply(m), w = ["[object Number]", "[object Function]", "[object RegExp]"], S = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, T = !re(m) && typeof m != "boolean" && typeof m != "number";
365
- if (N && m && T && w.indexOf(_) < 0 && !(re(S) && Array.isArray(m))) {
364
+ const v = (h == null ? void 0 : h.usedKey) || o, f = (h == null ? void 0 : h.exactUsedKey) || o, _ = Object.prototype.toString.apply(m), w = ["[object Number]", "[object Function]", "[object RegExp]"], S = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, B = !re(m) && typeof m != "boolean" && typeof m != "number";
365
+ if (N && m && B && w.indexOf(_) < 0 && !(re(S) && Array.isArray(m))) {
366
366
  if (!n.returnObjects && !this.options.returnObjects) {
367
367
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
368
368
  const V = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, m, {
@@ -372,54 +372,54 @@ class Qi extends Ms {
372
372
  return i ? (h.res = V, h.usedParams = this.getUsedParamsDetails(n), h) : V;
373
373
  }
374
374
  if (s) {
375
- const V = Array.isArray(m), te = V ? [] : {}, pe = V ? f : v;
376
- for (const ue in m)
377
- if (Object.prototype.hasOwnProperty.call(m, ue)) {
378
- const Me = `${pe}${s}${ue}`;
379
- te[ue] = this.translate(Me, {
375
+ const V = Array.isArray(m), Q = V ? [] : {}, ce = V ? f : v;
376
+ for (const de in m)
377
+ if (Object.prototype.hasOwnProperty.call(m, de)) {
378
+ const Me = `${ce}${s}${de}`;
379
+ Q[de] = this.translate(Me, {
380
380
  ...n,
381
381
  joinArrays: !1,
382
382
  ns: c
383
- }), te[ue] === Me && (te[ue] = m[ue]);
383
+ }), Q[de] === Me && (Q[de] = m[de]);
384
384
  }
385
- m = te;
385
+ m = Q;
386
386
  }
387
387
  } else if (N && re(S) && Array.isArray(m))
388
388
  m = m.join(S), m && (m = this.extendTranslation(m, e, n, r));
389
389
  else {
390
- let V = !1, te = !1;
391
- const pe = n.count !== void 0 && !re(n.count), ue = Qi.hasDefaultValue(n), Me = pe ? this.pluralResolver.getSuffix(u, n.count, n) : "", ze = n.ordinal && pe ? this.pluralResolver.getSuffix(u, n.count, {
390
+ let V = !1, Q = !1;
391
+ const ce = n.count !== void 0 && !re(n.count), de = Qi.hasDefaultValue(n), Me = ce ? this.pluralResolver.getSuffix(u, n.count, n) : "", ze = n.ordinal && ce ? this.pluralResolver.getSuffix(u, n.count, {
392
392
  ordinal: !1
393
- }) : "", Ye = pe && !n.ordinal && n.count === 0, $ = Ye && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${Me}`] || n[`defaultValue${ze}`] || n.defaultValue;
394
- !this.isValidLookup(m) && ue && (V = !0, m = $), this.isValidLookup(m) || (te = !0, m = o);
395
- const E = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && te ? void 0 : m, x = ue && $ !== m && this.options.updateMissing;
396
- if (te || V || x) {
393
+ }) : "", Ye = ce && !n.ordinal && n.count === 0, $ = Ye && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${Me}`] || n[`defaultValue${ze}`] || n.defaultValue;
394
+ !this.isValidLookup(m) && de && (V = !0, m = $), this.isValidLookup(m) || (Q = !0, m = o);
395
+ const E = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && Q ? void 0 : m, x = de && $ !== m && this.options.updateMissing;
396
+ if (Q || V || x) {
397
397
  if (this.logger.log(x ? "updateKey" : "missingKey", u, l, o, x ? $ : m), s) {
398
- const Q = this.resolve(o, {
398
+ const ee = this.resolve(o, {
399
399
  ...n,
400
400
  keySeparator: !1
401
401
  });
402
- Q && Q.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
+ ee && ee.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 k = [];
405
405
  const O = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
406
406
  if (this.options.saveMissingTo === "fallback" && O && O[0])
407
- for (let Q = 0; Q < O.length; Q++)
408
- k.push(O[Q]);
407
+ for (let ee = 0; ee < O.length; ee++)
408
+ k.push(O[ee]);
409
409
  else this.options.saveMissingTo === "all" ? k = this.languageUtils.toResolveHierarchy(n.lng || this.language) : k.push(n.lng || this.language);
410
- const L = (Q, J, se) => {
410
+ const L = (ee, J, se) => {
411
411
  var H;
412
- const de = ue && se !== m ? se : E;
413
- this.options.missingKeyHandler ? this.options.missingKeyHandler(Q, l, J, de, x, n) : (H = this.backendConnector) != null && H.saveMissing && this.backendConnector.saveMissing(Q, l, J, de, x, n), this.emit("missingKey", Q, l, J, m);
412
+ const pe = de && se !== m ? se : E;
413
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(ee, l, J, pe, x, n) : (H = this.backendConnector) != null && H.saveMissing && this.backendConnector.saveMissing(ee, l, J, pe, x, n), this.emit("missingKey", ee, l, J, m);
414
414
  };
415
- this.options.saveMissing && (this.options.saveMissingPlurals && pe ? k.forEach((Q) => {
416
- const J = this.pluralResolver.getSuffixes(Q, n);
415
+ this.options.saveMissing && (this.options.saveMissingPlurals && ce ? k.forEach((ee) => {
416
+ const J = this.pluralResolver.getSuffixes(ee, n);
417
417
  Ye && n[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((se) => {
418
- L([Q], o + se, n[`defaultValue${se}`] || $);
418
+ L([ee], o + se, n[`defaultValue${se}`] || $);
419
419
  });
420
420
  }) : L(k, o, $));
421
421
  }
422
- m = this.extendTranslation(m, e, n, h, r), te && m === o && this.options.appendNamespaceToMissingKey && (m = `${l}:${o}`), (te || V) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${o}` : o, V ? m : void 0));
422
+ m = this.extendTranslation(m, e, n, h, r), Q && m === o && this.options.appendNamespaceToMissingKey && (m = `${l}:${o}`), (Q || V) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${o}` : o, V ? m : void 0));
423
423
  }
424
424
  return i ? (h.res = m, h.usedParams = this.getUsedParamsDetails(n), h) : m;
425
425
  }
@@ -481,25 +481,25 @@ class Qi extends Ms {
481
481
  const m = n.count !== void 0 && !re(n.count), v = m && !n.ordinal && n.count === 0, f = n.context !== void 0 && (re(n.context) || typeof n.context == "number") && n.context !== "", _ = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
482
482
  h.forEach((w) => {
483
483
  var S, N;
484
- this.isValidLookup(r) || (c = w, !xu[`${_[0]}-${w}`] && ((S = this.utils) != null && S.hasLoadedNamespace) && !((N = this.utils) != null && N.hasLoadedNamespace(c)) && (xu[`${_[0]}-${w}`] = !0, this.logger.warn(`key "${i}" for languages "${_.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), _.forEach((T) => {
485
- var pe;
484
+ this.isValidLookup(r) || (c = w, !xu[`${_[0]}-${w}`] && ((S = this.utils) != null && S.hasLoadedNamespace) && !((N = this.utils) != null && N.hasLoadedNamespace(c)) && (xu[`${_[0]}-${w}`] = !0, this.logger.warn(`key "${i}" for languages "${_.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), _.forEach((B) => {
485
+ var ce;
486
486
  if (this.isValidLookup(r)) return;
487
- o = T;
487
+ o = B;
488
488
  const V = [p];
489
- if ((pe = this.i18nFormat) != null && pe.addLookupKeys)
490
- this.i18nFormat.addLookupKeys(V, p, T, w, n);
489
+ if ((ce = this.i18nFormat) != null && ce.addLookupKeys)
490
+ this.i18nFormat.addLookupKeys(V, p, B, w, n);
491
491
  else {
492
- let ue;
493
- m && (ue = this.pluralResolver.getSuffix(T, n.count, n));
492
+ let de;
493
+ m && (de = this.pluralResolver.getSuffix(B, n.count, n));
494
494
  const Me = `${this.options.pluralSeparator}zero`, ze = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
- if (m && (V.push(p + ue), n.ordinal && ue.indexOf(ze) === 0 && V.push(p + ue.replace(ze, this.options.pluralSeparator)), v && V.push(p + Me)), f) {
495
+ if (m && (V.push(p + de), n.ordinal && de.indexOf(ze) === 0 && V.push(p + de.replace(ze, this.options.pluralSeparator)), v && V.push(p + Me)), f) {
496
496
  const Ye = `${p}${this.options.contextSeparator}${n.context}`;
497
- V.push(Ye), m && (V.push(Ye + ue), n.ordinal && ue.indexOf(ze) === 0 && V.push(Ye + ue.replace(ze, this.options.pluralSeparator)), v && V.push(Ye + Me));
497
+ V.push(Ye), m && (V.push(Ye + de), n.ordinal && de.indexOf(ze) === 0 && V.push(Ye + de.replace(ze, this.options.pluralSeparator)), v && V.push(Ye + Me));
498
498
  }
499
499
  }
500
- let te;
501
- for (; te = V.pop(); )
502
- this.isValidLookup(r) || (s = te, r = this.getResource(T, w, te, n));
500
+ let Q;
501
+ for (; Q = V.pop(); )
502
+ this.isValidLookup(r) || (s = Q, r = this.getResource(B, w, Q, n));
503
503
  }));
504
504
  });
505
505
  }), {
@@ -2004,7 +2004,7 @@ function o5(t) {
2004
2004
  throw new Error(`Invalid user_id: ${t}`);
2005
2005
  return { connection: e, id: n };
2006
2006
  }
2007
- const Gm = new le().openapi(
2007
+ const Gm = new ue().openapi(
2008
2008
  q({
2009
2009
  tags: ["branding"],
2010
2010
  method: "get",
@@ -2171,12 +2171,12 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2171
2171
  x(E);
2172
2172
  } else
2173
2173
  return new Promise(function(k, O) {
2174
- x(function(L, Q) {
2174
+ x(function(L, ee) {
2175
2175
  if (L) {
2176
2176
  O(L);
2177
2177
  return;
2178
2178
  }
2179
- k(Q);
2179
+ k(ee);
2180
2180
  });
2181
2181
  });
2182
2182
  }, e.hashSync = function($, C) {
@@ -2185,8 +2185,8 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2185
2185
  return Ye($, C);
2186
2186
  }, e.hash = function($, C, E, x) {
2187
2187
  function k(O) {
2188
- typeof $ == "string" && typeof C == "number" ? e.genSalt(C, function(L, Q) {
2189
- Ye($, Q, O, x);
2188
+ typeof $ == "string" && typeof C == "number" ? e.genSalt(C, function(L, ee) {
2189
+ Ye($, ee, O, x);
2190
2190
  }) : typeof $ == "string" && typeof C == "string" ? Ye($, C, O, x) : o(O.bind(this, Error("Illegal arguments: " + typeof $ + ", " + typeof C)));
2191
2191
  }
2192
2192
  if (E) {
@@ -2195,9 +2195,9 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2195
2195
  k(E);
2196
2196
  } else
2197
2197
  return new Promise(function(O, L) {
2198
- k(function(Q, J) {
2199
- if (Q) {
2200
- L(Q);
2198
+ k(function(ee, J) {
2199
+ if (ee) {
2200
+ L(ee);
2201
2201
  return;
2202
2202
  }
2203
2203
  O(J);
@@ -2223,8 +2223,8 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2223
2223
  o(O.bind(this, null, !1));
2224
2224
  return;
2225
2225
  }
2226
- e.hash($, C.substr(0, 29), function(L, Q) {
2227
- L ? O(L) : O(null, s(Q, C));
2226
+ e.hash($, C.substr(0, 29), function(L, ee) {
2227
+ L ? O(L) : O(null, s(ee, C));
2228
2228
  }, x);
2229
2229
  }
2230
2230
  if (E) {
@@ -2233,9 +2233,9 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2233
2233
  k(E);
2234
2234
  } else
2235
2235
  return new Promise(function(O, L) {
2236
- k(function(Q, J) {
2237
- if (Q) {
2238
- L(Q);
2236
+ k(function(ee, J) {
2237
+ if (ee) {
2238
+ L(ee);
2239
2239
  return;
2240
2240
  }
2241
2241
  O(J);
@@ -2409,11 +2409,11 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2409
2409
  return x.join("");
2410
2410
  }
2411
2411
  function m($, C) {
2412
- var E = 0, x = $.length, k = 0, O = [], L, Q, J, se, de, H;
2412
+ var E = 0, x = $.length, k = 0, O = [], L, ee, J, se, pe, H;
2413
2413
  if (C <= 0)
2414
2414
  throw Error("Illegal len: " + C);
2415
- for (; E < x - 1 && k < C && (H = $.charCodeAt(E++), L = H < u.length ? u[H] : -1, H = $.charCodeAt(E++), Q = H < u.length ? u[H] : -1, !(L == -1 || Q == -1 || (de = L << 2 >>> 0, de |= (Q & 48) >> 4, O.push(p(de)), ++k >= C || E >= x) || (H = $.charCodeAt(E++), J = H < u.length ? u[H] : -1, J == -1) || (de = (Q & 15) << 4 >>> 0, de |= (J & 60) >> 2, O.push(p(de)), ++k >= C || E >= x))); )
2416
- H = $.charCodeAt(E++), se = H < u.length ? u[H] : -1, de = (J & 3) << 6 >>> 0, de |= se, O.push(p(de)), ++k;
2415
+ for (; E < x - 1 && k < C && (H = $.charCodeAt(E++), L = H < u.length ? u[H] : -1, H = $.charCodeAt(E++), ee = H < u.length ? u[H] : -1, !(L == -1 || ee == -1 || (pe = L << 2 >>> 0, pe |= (ee & 48) >> 4, O.push(p(pe)), ++k >= C || E >= x) || (H = $.charCodeAt(E++), J = H < u.length ? u[H] : -1, J == -1) || (pe = (ee & 15) << 4 >>> 0, pe |= (J & 60) >> 2, O.push(p(pe)), ++k >= C || E >= x))); )
2416
+ H = $.charCodeAt(E++), se = H < u.length ? u[H] : -1, pe = (J & 3) << 6 >>> 0, pe |= se, O.push(p(pe)), ++k;
2417
2417
  var Ne = [];
2418
2418
  for (E = 0; E < k; E++)
2419
2419
  Ne.push(O[E].charCodeAt(0));
@@ -2428,7 +2428,7 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2428
2428
  }); x !== null || (x = C()) !== null; )
2429
2429
  x < 128 ? E(x & 127) : x < 2048 ? (E(x >> 6 & 31 | 192), E(x & 63 | 128)) : x < 65536 ? (E(x >> 12 & 15 | 224), E(x >> 6 & 63 | 128), E(x & 63 | 128)) : (E(x >> 18 & 7 | 240), E(x >> 12 & 63 | 128), E(x >> 6 & 63 | 128), E(x & 63 | 128)), x = null;
2430
2430
  }, $.decodeUTF8 = function(C, E) {
2431
- for (var x, k, O, L, Q = function(J) {
2431
+ for (var x, k, O, L, ee = function(J) {
2432
2432
  J = J.slice(0, J.indexOf(null));
2433
2433
  var se = Error(J.toString());
2434
2434
  throw se.name = "TruncatedError", se.bytes = J, se;
@@ -2436,11 +2436,11 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2436
2436
  if (!(x & 128))
2437
2437
  E(x);
2438
2438
  else if ((x & 224) === 192)
2439
- (k = C()) === null && Q([x, k]), E((x & 31) << 6 | k & 63);
2439
+ (k = C()) === null && ee([x, k]), E((x & 31) << 6 | k & 63);
2440
2440
  else if ((x & 240) === 224)
2441
- ((k = C()) === null || (O = C()) === null) && Q([x, k, O]), E((x & 15) << 12 | (k & 63) << 6 | O & 63);
2441
+ ((k = C()) === null || (O = C()) === null) && ee([x, k, O]), E((x & 15) << 12 | (k & 63) << 6 | O & 63);
2442
2442
  else if ((x & 248) === 240)
2443
- ((k = C()) === null || (O = C()) === null || (L = C()) === null) && Q([x, k, O, L]), E((x & 7) << 18 | (k & 63) << 12 | (O & 63) << 6 | L & 63);
2443
+ ((k = C()) === null || (O = C()) === null || (L = C()) === null) && ee([x, k, O, L]), E((x & 7) << 18 | (k & 63) << 12 | (O & 63) << 6 | L & 63);
2444
2444
  else throw RangeError("Illegal starting byte: " + x);
2445
2445
  }, $.UTF16toUTF8 = function(C, E) {
2446
2446
  for (var x, k = null; (x = k !== null ? k : C()) !== null; ) {
@@ -2500,7 +2500,7 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2500
2500
  3041331479,
2501
2501
  2450970073,
2502
2502
  2306472731
2503
- ], T = [
2503
+ ], B = [
2504
2504
  3509652390,
2505
2505
  2564797868,
2506
2506
  805139163,
@@ -3533,59 +3533,59 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3533
3533
  1668446532,
3534
3534
  1869963892
3535
3535
  ];
3536
- function te($, C, E, x) {
3536
+ function Q($, C, E, x) {
3537
3537
  var k, O = $[C], L = $[C + 1];
3538
3538
  return O ^= E[0], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[1], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[2], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[3], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[4], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[5], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[6], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[7], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[8], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[9], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[10], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[11], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[12], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[13], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[14], k = x[O >>> 24], k += x[256 | O >> 16 & 255], k ^= x[512 | O >> 8 & 255], k += x[768 | O & 255], L ^= k ^ E[15], k = x[L >>> 24], k += x[256 | L >> 16 & 255], k ^= x[512 | L >> 8 & 255], k += x[768 | L & 255], O ^= k ^ E[16], $[C] = L ^ E[w + 1], $[C + 1] = O, $;
3539
3539
  }
3540
- function pe($, C) {
3540
+ function ce($, C) {
3541
3541
  for (var E = 0, x = 0; E < 4; ++E)
3542
3542
  x = x << 8 | $[C] & 255, C = (C + 1) % $.length;
3543
3543
  return { key: x, offp: C };
3544
3544
  }
3545
- function ue($, C, E) {
3546
- for (var x = 0, k = [0, 0], O = C.length, L = E.length, Q, J = 0; J < O; J++)
3547
- Q = pe($, x), x = Q.offp, C[J] = C[J] ^ Q.key;
3545
+ function de($, C, E) {
3546
+ for (var x = 0, k = [0, 0], O = C.length, L = E.length, ee, J = 0; J < O; J++)
3547
+ ee = ce($, x), x = ee.offp, C[J] = C[J] ^ ee.key;
3548
3548
  for (J = 0; J < O; J += 2)
3549
- k = te(k, 0, C, E), C[J] = k[0], C[J + 1] = k[1];
3549
+ k = Q(k, 0, C, E), C[J] = k[0], C[J + 1] = k[1];
3550
3550
  for (J = 0; J < L; J += 2)
3551
- k = te(k, 0, C, E), E[J] = k[0], E[J + 1] = k[1];
3551
+ k = Q(k, 0, C, E), E[J] = k[0], E[J + 1] = k[1];
3552
3552
  }
3553
3553
  function Me($, C, E, x) {
3554
- for (var k = 0, O = [0, 0], L = E.length, Q = x.length, J, se = 0; se < L; se++)
3555
- J = pe(C, k), k = J.offp, E[se] = E[se] ^ J.key;
3554
+ for (var k = 0, O = [0, 0], L = E.length, ee = x.length, J, se = 0; se < L; se++)
3555
+ J = ce(C, k), k = J.offp, E[se] = E[se] ^ J.key;
3556
3556
  for (k = 0, se = 0; se < L; se += 2)
3557
- J = pe($, k), k = J.offp, O[0] ^= J.key, J = pe($, k), k = J.offp, O[1] ^= J.key, O = te(O, 0, E, x), E[se] = O[0], E[se + 1] = O[1];
3558
- for (se = 0; se < Q; se += 2)
3559
- J = pe($, k), k = J.offp, O[0] ^= J.key, J = pe($, k), k = J.offp, O[1] ^= J.key, O = te(O, 0, E, x), x[se] = O[0], x[se + 1] = O[1];
3557
+ J = ce($, k), k = J.offp, O[0] ^= J.key, J = ce($, k), k = J.offp, O[1] ^= J.key, O = Q(O, 0, E, x), E[se] = O[0], E[se + 1] = O[1];
3558
+ for (se = 0; se < ee; se += 2)
3559
+ J = ce($, k), k = J.offp, O[0] ^= J.key, J = ce($, k), k = J.offp, O[1] ^= J.key, O = Q(O, 0, E, x), x[se] = O[0], x[se + 1] = O[1];
3560
3560
  }
3561
3561
  function ze($, C, E, x, k) {
3562
- var O = V.slice(), L = O.length, Q;
3562
+ var O = V.slice(), L = O.length, ee;
3563
3563
  if (E < 4 || E > 31)
3564
- if (Q = Error("Illegal number of rounds (4-31): " + E), x) {
3565
- o(x.bind(this, Q));
3564
+ if (ee = Error("Illegal number of rounds (4-31): " + E), x) {
3565
+ o(x.bind(this, ee));
3566
3566
  return;
3567
3567
  } else
3568
- throw Q;
3568
+ throw ee;
3569
3569
  if (C.length !== f)
3570
- if (Q = Error("Illegal salt length: " + C.length + " != " + f), x) {
3571
- o(x.bind(this, Q));
3570
+ if (ee = Error("Illegal salt length: " + C.length + " != " + f), x) {
3571
+ o(x.bind(this, ee));
3572
3572
  return;
3573
3573
  } else
3574
- throw Q;
3574
+ throw ee;
3575
3575
  E = 1 << E >>> 0;
3576
- var J, se, de = 0, H;
3577
- Int32Array ? (J = new Int32Array(N), se = new Int32Array(T)) : (J = N.slice(), se = T.slice()), Me(C, $, J, se);
3576
+ var J, se, pe = 0, H;
3577
+ Int32Array ? (J = new Int32Array(N), se = new Int32Array(B)) : (J = N.slice(), se = B.slice()), Me(C, $, J, se);
3578
3578
  function Ne() {
3579
- if (k && k(de / E), de < E)
3580
- for (var me = Date.now(); de < E && (de = de + 1, ue($, J, se), ue(C, J, se), !(Date.now() - me > S)); )
3579
+ if (k && k(pe / E), pe < E)
3580
+ for (var me = Date.now(); pe < E && (pe = pe + 1, de($, J, se), de(C, J, se), !(Date.now() - me > S)); )
3581
3581
  ;
3582
3582
  else {
3583
- for (de = 0; de < 64; de++)
3583
+ for (pe = 0; pe < 64; pe++)
3584
3584
  for (H = 0; H < L >> 1; H++)
3585
- te(O, H << 1, J, se);
3585
+ Q(O, H << 1, J, se);
3586
3586
  var Ae = [];
3587
- for (de = 0; de < L; de++)
3588
- Ae.push((O[de] >> 24 & 255) >>> 0), Ae.push((O[de] >> 16 & 255) >>> 0), Ae.push((O[de] >> 8 & 255) >>> 0), Ae.push((O[de] & 255) >>> 0);
3587
+ for (pe = 0; pe < L; pe++)
3588
+ Ae.push((O[pe] >> 24 & 255) >>> 0), Ae.push((O[pe] >> 16 & 255) >>> 0), Ae.push((O[pe] >> 8 & 255) >>> 0), Ae.push((O[pe] & 255) >>> 0);
3589
3589
  if (x) {
3590
3590
  x(null, Ae);
3591
3591
  return;
@@ -3633,9 +3633,9 @@ const Ym = {}, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3633
3633
  return;
3634
3634
  } else
3635
3635
  throw k;
3636
- var Q = parseInt(C.substring(L, L + 1), 10) * 10, J = parseInt(C.substring(L + 1, L + 2), 10), se = Q + J, de = C.substring(L + 3, L + 25);
3636
+ var ee = parseInt(C.substring(L, L + 1), 10) * 10, J = parseInt(C.substring(L + 1, L + 2), 10), se = ee + J, pe = C.substring(L + 3, L + 25);
3637
3637
  $ += O >= "a" ? "\0" : "";
3638
- var H = c($), Ne = m(de, f);
3638
+ var H = c($), Ne = m(pe, f);
3639
3639
  function an(me) {
3640
3640
  var Ae = [];
3641
3641
  return Ae.push("$2"), O >= "a" && Ae.push(O), Ae.push("$"), se < 10 && Ae.push("0"), Ae.push(se.toString()), Ae.push("$"), Ae.push(h(Ne, Ne.length)), Ae.push(h(me, V.length * 4 - 1)), Ae.join("");
@@ -6009,7 +6009,7 @@ const zu = jn.extend({
6009
6009
  users: a.array(Ot)
6010
6010
  }), ty = jn.extend({
6011
6011
  sessions: a.array(Xc)
6012
- }), ny = new le().openapi(
6012
+ }), ny = new ue().openapi(
6013
6013
  q({
6014
6014
  tags: ["users"],
6015
6015
  method: "get",
@@ -6527,8 +6527,8 @@ var Du;
6527
6527
  return A[I];
6528
6528
  }
6529
6529
  }, h = Object.getPrototypeOf(Function), m = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : nm(), v = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : rm(), f = typeof WeakMap == "function" ? WeakMap : im(), _ = i ? Symbol.for("@reflect-metadata:registry") : void 0, w = Qg(), S = em(w);
6530
- function N(A, I, B, M) {
6531
- if (H(B)) {
6530
+ function N(A, I, T, M) {
6531
+ if (H(T)) {
6532
6532
  if (!uu(A))
6533
6533
  throw new TypeError();
6534
6534
  if (!du(I))
@@ -6541,49 +6541,49 @@ var Du;
6541
6541
  throw new TypeError();
6542
6542
  if (!me(M) && !H(M) && !Ne(M))
6543
6543
  throw new TypeError();
6544
- return Ne(M) && (M = void 0), B = wt(B), E(A, I, B, M);
6544
+ return Ne(M) && (M = void 0), T = wt(T), E(A, I, T, M);
6545
6545
  }
6546
6546
  }
6547
6547
  e("decorate", N);
6548
- function T(A, I) {
6549
- function B(M, ee) {
6548
+ function B(A, I) {
6549
+ function T(M, te) {
6550
6550
  if (!me(M))
6551
6551
  throw new TypeError();
6552
- if (!H(ee) && !Yg(ee))
6552
+ if (!H(te) && !Yg(te))
6553
6553
  throw new TypeError();
6554
- Q(A, I, M, ee);
6554
+ ee(A, I, M, te);
6555
6555
  }
6556
- return B;
6556
+ return T;
6557
6557
  }
6558
- e("metadata", T);
6559
- function V(A, I, B, M) {
6560
- if (!me(B))
6558
+ e("metadata", B);
6559
+ function V(A, I, T, M) {
6560
+ if (!me(T))
6561
6561
  throw new TypeError();
6562
- return H(M) || (M = wt(M)), Q(A, I, B, M);
6562
+ return H(M) || (M = wt(M)), ee(A, I, T, M);
6563
6563
  }
6564
6564
  e("defineMetadata", V);
6565
- function te(A, I, B) {
6565
+ function Q(A, I, T) {
6566
6566
  if (!me(I))
6567
6567
  throw new TypeError();
6568
- return H(B) || (B = wt(B)), x(A, I, B);
6568
+ return H(T) || (T = wt(T)), x(A, I, T);
6569
6569
  }
6570
- e("hasMetadata", te);
6571
- function pe(A, I, B) {
6570
+ e("hasMetadata", Q);
6571
+ function ce(A, I, T) {
6572
6572
  if (!me(I))
6573
6573
  throw new TypeError();
6574
- return H(B) || (B = wt(B)), k(A, I, B);
6574
+ return H(T) || (T = wt(T)), k(A, I, T);
6575
6575
  }
6576
- e("hasOwnMetadata", pe);
6577
- function ue(A, I, B) {
6576
+ e("hasOwnMetadata", ce);
6577
+ function de(A, I, T) {
6578
6578
  if (!me(I))
6579
6579
  throw new TypeError();
6580
- return H(B) || (B = wt(B)), O(A, I, B);
6580
+ return H(T) || (T = wt(T)), O(A, I, T);
6581
6581
  }
6582
- e("getMetadata", ue);
6583
- function Me(A, I, B) {
6582
+ e("getMetadata", de);
6583
+ function Me(A, I, T) {
6584
6584
  if (!me(I))
6585
6585
  throw new TypeError();
6586
- return H(B) || (B = wt(B)), L(A, I, B);
6586
+ return H(T) || (T = wt(T)), L(A, I, T);
6587
6587
  }
6588
6588
  e("getOwnMetadata", Me);
6589
6589
  function ze(A, I) {
@@ -6598,35 +6598,35 @@ var Du;
6598
6598
  return H(I) || (I = wt(I)), se(A, I);
6599
6599
  }
6600
6600
  e("getOwnMetadataKeys", Ye);
6601
- function $(A, I, B) {
6601
+ function $(A, I, T) {
6602
6602
  if (!me(I))
6603
6603
  throw new TypeError();
6604
- if (H(B) || (B = wt(B)), !me(I))
6604
+ if (H(T) || (T = wt(T)), !me(I))
6605
6605
  throw new TypeError();
6606
- H(B) || (B = wt(B));
6606
+ H(T) || (T = wt(T));
6607
6607
  var M = br(
6608
6608
  I,
6609
- B,
6609
+ T,
6610
6610
  /*Create*/
6611
6611
  !1
6612
6612
  );
6613
- return H(M) ? !1 : M.OrdinaryDeleteMetadata(A, I, B);
6613
+ return H(M) ? !1 : M.OrdinaryDeleteMetadata(A, I, T);
6614
6614
  }
6615
6615
  e("deleteMetadata", $);
6616
6616
  function C(A, I) {
6617
- for (var B = A.length - 1; B >= 0; --B) {
6618
- var M = A[B], ee = M(I);
6619
- if (!H(ee) && !Ne(ee)) {
6620
- if (!du(ee))
6617
+ for (var T = A.length - 1; T >= 0; --T) {
6618
+ var M = A[T], te = M(I);
6619
+ if (!H(te) && !Ne(te)) {
6620
+ if (!du(te))
6621
6621
  throw new TypeError();
6622
- I = ee;
6622
+ I = te;
6623
6623
  }
6624
6624
  }
6625
6625
  return I;
6626
6626
  }
6627
- function E(A, I, B, M) {
6628
- for (var ee = A.length - 1; ee >= 0; --ee) {
6629
- var je = A[ee], Ie = je(I, B, M);
6627
+ function E(A, I, T, M) {
6628
+ for (var te = A.length - 1; te >= 0; --te) {
6629
+ var je = A[te], Ie = je(I, T, M);
6630
6630
  if (!H(Ie) && !Ne(Ie)) {
6631
6631
  if (!me(Ie))
6632
6632
  throw new TypeError();
@@ -6635,78 +6635,78 @@ var Du;
6635
6635
  }
6636
6636
  return M;
6637
6637
  }
6638
- function x(A, I, B) {
6639
- var M = k(A, I, B);
6638
+ function x(A, I, T) {
6639
+ var M = k(A, I, T);
6640
6640
  if (M)
6641
6641
  return !0;
6642
- var ee = Fo(I);
6643
- return Ne(ee) ? !1 : x(A, ee, B);
6642
+ var te = Fo(I);
6643
+ return Ne(te) ? !1 : x(A, te, T);
6644
6644
  }
6645
- function k(A, I, B) {
6645
+ function k(A, I, T) {
6646
6646
  var M = br(
6647
6647
  I,
6648
- B,
6648
+ T,
6649
6649
  /*Create*/
6650
6650
  !1
6651
6651
  );
6652
- return H(M) ? !1 : lu(M.OrdinaryHasOwnMetadata(A, I, B));
6652
+ return H(M) ? !1 : lu(M.OrdinaryHasOwnMetadata(A, I, T));
6653
6653
  }
6654
- function O(A, I, B) {
6655
- var M = k(A, I, B);
6654
+ function O(A, I, T) {
6655
+ var M = k(A, I, T);
6656
6656
  if (M)
6657
- return L(A, I, B);
6658
- var ee = Fo(I);
6659
- if (!Ne(ee))
6660
- return O(A, ee, B);
6657
+ return L(A, I, T);
6658
+ var te = Fo(I);
6659
+ if (!Ne(te))
6660
+ return O(A, te, T);
6661
6661
  }
6662
- function L(A, I, B) {
6662
+ function L(A, I, T) {
6663
6663
  var M = br(
6664
6664
  I,
6665
- B,
6665
+ T,
6666
6666
  /*Create*/
6667
6667
  !1
6668
6668
  );
6669
6669
  if (!H(M))
6670
- return M.OrdinaryGetOwnMetadata(A, I, B);
6670
+ return M.OrdinaryGetOwnMetadata(A, I, T);
6671
6671
  }
6672
- function Q(A, I, B, M) {
6673
- var ee = br(
6674
- B,
6672
+ function ee(A, I, T, M) {
6673
+ var te = br(
6674
+ T,
6675
6675
  M,
6676
6676
  /*Create*/
6677
6677
  !0
6678
6678
  );
6679
- ee.OrdinaryDefineOwnMetadata(A, I, B, M);
6679
+ te.OrdinaryDefineOwnMetadata(A, I, T, M);
6680
6680
  }
6681
6681
  function J(A, I) {
6682
- var B = se(A, I), M = Fo(A);
6682
+ var T = se(A, I), M = Fo(A);
6683
6683
  if (M === null)
6684
- return B;
6685
- var ee = J(M, I);
6686
- if (ee.length <= 0)
6687
- return B;
6688
- if (B.length <= 0)
6689
- return ee;
6690
- for (var je = new v(), Ie = [], oe = 0, F = B; oe < F.length; oe++) {
6684
+ return T;
6685
+ var te = J(M, I);
6686
+ if (te.length <= 0)
6687
+ return T;
6688
+ if (T.length <= 0)
6689
+ return te;
6690
+ for (var je = new v(), Ie = [], oe = 0, F = T; oe < F.length; oe++) {
6691
6691
  var G = F[oe], Y = je.has(G);
6692
6692
  Y || (je.add(G), Ie.push(G));
6693
6693
  }
6694
- for (var X = 0, ae = ee; X < ae.length; X++) {
6694
+ for (var X = 0, ae = te; X < ae.length; X++) {
6695
6695
  var G = ae[X], Y = je.has(G);
6696
6696
  Y || (je.add(G), Ie.push(G));
6697
6697
  }
6698
6698
  return Ie;
6699
6699
  }
6700
6700
  function se(A, I) {
6701
- var B = br(
6701
+ var T = br(
6702
6702
  A,
6703
6703
  I,
6704
6704
  /*create*/
6705
6705
  !1
6706
6706
  );
6707
- return B ? B.OrdinaryOwnMetadataKeys(A, I) : [];
6707
+ return T ? T.OrdinaryOwnMetadataKeys(A, I) : [];
6708
6708
  }
6709
- function de(A) {
6709
+ function pe(A) {
6710
6710
  if (A === null)
6711
6711
  return 1;
6712
6712
  switch (typeof A) {
@@ -6739,7 +6739,7 @@ var Du;
6739
6739
  return typeof A == "object" ? A !== null : typeof A == "function";
6740
6740
  }
6741
6741
  function Ae(A, I) {
6742
- switch (de(A)) {
6742
+ switch (pe(A)) {
6743
6743
  case 0:
6744
6744
  return A;
6745
6745
  case 1:
@@ -6753,27 +6753,27 @@ var Du;
6753
6753
  case 5:
6754
6754
  return A;
6755
6755
  }
6756
- var B = "string", M = pu(A, s);
6756
+ var T = "string", M = pu(A, s);
6757
6757
  if (M !== void 0) {
6758
- var ee = M.call(A, B);
6759
- if (me(ee))
6758
+ var te = M.call(A, T);
6759
+ if (me(te))
6760
6760
  throw new TypeError();
6761
- return ee;
6761
+ return te;
6762
6762
  }
6763
6763
  return Jg(A);
6764
6764
  }
6765
6765
  function Jg(A, I) {
6766
- var B, M;
6766
+ var T, M;
6767
6767
  {
6768
- var ee = A.toString;
6769
- if (Ni(ee)) {
6770
- var M = ee.call(A);
6768
+ var te = A.toString;
6769
+ if (Ni(te)) {
6770
+ var M = te.call(A);
6771
6771
  if (!me(M))
6772
6772
  return M;
6773
6773
  }
6774
- var B = A.valueOf;
6775
- if (Ni(B)) {
6776
- var M = B.call(A);
6774
+ var T = A.valueOf;
6775
+ if (Ni(T)) {
6776
+ var M = T.call(A);
6777
6777
  if (!me(M))
6778
6778
  return M;
6779
6779
  }
@@ -6800,7 +6800,7 @@ var Du;
6800
6800
  return typeof A == "function";
6801
6801
  }
6802
6802
  function Yg(A) {
6803
- switch (de(A)) {
6803
+ switch (pe(A)) {
6804
6804
  case 3:
6805
6805
  return !0;
6806
6806
  case 4:
@@ -6813,21 +6813,21 @@ var Du;
6813
6813
  return A === I || A !== A && I !== I;
6814
6814
  }
6815
6815
  function pu(A, I) {
6816
- var B = A[I];
6817
- if (B != null) {
6818
- if (!Ni(B))
6816
+ var T = A[I];
6817
+ if (T != null) {
6818
+ if (!Ni(T))
6819
6819
  throw new TypeError();
6820
- return B;
6820
+ return T;
6821
6821
  }
6822
6822
  }
6823
6823
  function fu(A) {
6824
6824
  var I = pu(A, o);
6825
6825
  if (!Ni(I))
6826
6826
  throw new TypeError();
6827
- var B = I.call(A);
6828
- if (!me(B))
6827
+ var T = I.call(A);
6828
+ if (!me(T))
6829
6829
  throw new TypeError();
6830
- return B;
6830
+ return T;
6831
6831
  }
6832
6832
  function hu(A) {
6833
6833
  return A.value;
@@ -6844,16 +6844,16 @@ var Du;
6844
6844
  var I = Object.getPrototypeOf(A);
6845
6845
  if (typeof A != "function" || A === h || I !== h)
6846
6846
  return I;
6847
- var B = A.prototype, M = B && Object.getPrototypeOf(B);
6847
+ var T = A.prototype, M = T && Object.getPrototypeOf(T);
6848
6848
  if (M == null || M === Object.prototype)
6849
6849
  return I;
6850
- var ee = M.constructor;
6851
- return typeof ee != "function" || ee === A ? I : ee;
6850
+ var te = M.constructor;
6851
+ return typeof te != "function" || te === A ? I : te;
6852
6852
  }
6853
6853
  function Xg() {
6854
6854
  var A;
6855
6855
  !H(_) && typeof n.Reflect < "u" && !(_ in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (A = tm(n.Reflect));
6856
- var I, B, M, ee = new f(), je = {
6856
+ var I, T, M, te = new f(), je = {
6857
6857
  registerProvider: Ie,
6858
6858
  getProvider: F,
6859
6859
  setProvider: Y
@@ -6870,10 +6870,10 @@ var Du;
6870
6870
  break;
6871
6871
  case I === X:
6872
6872
  break;
6873
- case H(B):
6874
- B = X;
6873
+ case H(T):
6874
+ T = X;
6875
6875
  break;
6876
- case B === X:
6876
+ case T === X:
6877
6877
  break;
6878
6878
  default:
6879
6879
  M === void 0 && (M = new v()), M.add(X);
@@ -6884,8 +6884,8 @@ var Du;
6884
6884
  if (!H(I)) {
6885
6885
  if (I.isProviderFor(X, ae))
6886
6886
  return I;
6887
- if (!H(B)) {
6888
- if (B.isProviderFor(X, ae))
6887
+ if (!H(T)) {
6888
+ if (T.isProviderFor(X, ae))
6889
6889
  return I;
6890
6890
  if (!H(M))
6891
6891
  for (var ye = fu(M); ; ) {
@@ -6902,13 +6902,13 @@ var Du;
6902
6902
  return A;
6903
6903
  }
6904
6904
  function F(X, ae) {
6905
- var ye = ee.get(X), ke;
6906
- return H(ye) || (ke = ye.get(ae)), H(ke) && (ke = oe(X, ae), H(ke) || (H(ye) && (ye = new m(), ee.set(X, ye)), ye.set(ae, ke))), ke;
6905
+ var ye = te.get(X), ke;
6906
+ return H(ye) || (ke = ye.get(ae)), H(ke) && (ke = oe(X, ae), H(ke) || (H(ye) && (ye = new m(), te.set(X, ye)), ye.set(ae, ke))), ke;
6907
6907
  }
6908
6908
  function G(X) {
6909
6909
  if (H(X))
6910
6910
  throw new TypeError();
6911
- return I === X || B === X || !H(M) && M.has(X);
6911
+ return I === X || T === X || !H(M) && M.has(X);
6912
6912
  }
6913
6913
  function Y(X, ae, ye) {
6914
6914
  if (!G(ye))
@@ -6917,8 +6917,8 @@ var Du;
6917
6917
  if (ke !== ye) {
6918
6918
  if (!H(ke))
6919
6919
  return !1;
6920
- var ut = ee.get(X);
6921
- H(ut) && (ut = new m(), ee.set(X, ut)), ut.set(ae, ye);
6920
+ var ut = te.get(X);
6921
+ H(ut) && (ut = new m(), te.set(X, ut)), ut.set(ae, ye);
6922
6922
  }
6923
6923
  return !0;
6924
6924
  }
@@ -6933,18 +6933,18 @@ var Du;
6933
6933
  }), A;
6934
6934
  }
6935
6935
  function em(A) {
6936
- var I = new f(), B = {
6936
+ var I = new f(), T = {
6937
6937
  isProviderFor: function(G, Y) {
6938
6938
  var X = I.get(G);
6939
6939
  return H(X) ? !1 : X.has(Y);
6940
6940
  },
6941
6941
  OrdinaryDefineOwnMetadata: Ie,
6942
- OrdinaryHasOwnMetadata: ee,
6942
+ OrdinaryHasOwnMetadata: te,
6943
6943
  OrdinaryGetOwnMetadata: je,
6944
6944
  OrdinaryOwnMetadataKeys: oe,
6945
6945
  OrdinaryDeleteMetadata: F
6946
6946
  };
6947
- return w.registerProvider(B), B;
6947
+ return w.registerProvider(T), T;
6948
6948
  function M(G, Y, X) {
6949
6949
  var ae = I.get(G), ye = !1;
6950
6950
  if (H(ae)) {
@@ -6956,12 +6956,12 @@ var Du;
6956
6956
  if (H(ke)) {
6957
6957
  if (!X)
6958
6958
  return;
6959
- if (ke = new m(), ae.set(Y, ke), !A.setProvider(G, Y, B))
6959
+ if (ke = new m(), ae.set(Y, ke), !A.setProvider(G, Y, T))
6960
6960
  throw ae.delete(Y), ye && I.delete(G), new Error("Wrong provider for target.");
6961
6961
  }
6962
6962
  return ke;
6963
6963
  }
6964
- function ee(G, Y, X) {
6964
+ function te(G, Y, X) {
6965
6965
  var ae = M(
6966
6966
  Y,
6967
6967
  X,
@@ -7032,31 +7032,31 @@ var Du;
7032
7032
  }
7033
7033
  }
7034
7034
  function tm(A) {
7035
- var I = A.defineMetadata, B = A.hasOwnMetadata, M = A.getOwnMetadata, ee = A.getOwnMetadataKeys, je = A.deleteMetadata, Ie = new f(), oe = {
7035
+ var I = A.defineMetadata, T = A.hasOwnMetadata, M = A.getOwnMetadata, te = A.getOwnMetadataKeys, je = A.deleteMetadata, Ie = new f(), oe = {
7036
7036
  isProviderFor: function(F, G) {
7037
7037
  var Y = Ie.get(F);
7038
- return !H(Y) && Y.has(G) ? !0 : ee(F, G).length ? (H(Y) && (Y = new v(), Ie.set(F, Y)), Y.add(G), !0) : !1;
7038
+ return !H(Y) && Y.has(G) ? !0 : te(F, G).length ? (H(Y) && (Y = new v(), Ie.set(F, Y)), Y.add(G), !0) : !1;
7039
7039
  },
7040
7040
  OrdinaryDefineOwnMetadata: I,
7041
- OrdinaryHasOwnMetadata: B,
7041
+ OrdinaryHasOwnMetadata: T,
7042
7042
  OrdinaryGetOwnMetadata: M,
7043
- OrdinaryOwnMetadataKeys: ee,
7043
+ OrdinaryOwnMetadataKeys: te,
7044
7044
  OrdinaryDeleteMetadata: je
7045
7045
  };
7046
7046
  return oe;
7047
7047
  }
7048
- function br(A, I, B) {
7048
+ function br(A, I, T) {
7049
7049
  var M = w.getProvider(A, I);
7050
7050
  if (!H(M))
7051
7051
  return M;
7052
- if (B) {
7052
+ if (T) {
7053
7053
  if (w.setProvider(A, I, S))
7054
7054
  return S;
7055
7055
  throw new Error("Illegal state.");
7056
7056
  }
7057
7057
  }
7058
7058
  function nm() {
7059
- var A = {}, I = [], B = (
7059
+ var A = {}, I = [], T = (
7060
7060
  /** @class */
7061
7061
  function() {
7062
7062
  function oe(F, G, Y) {
@@ -7126,11 +7126,11 @@ var Du;
7126
7126
  }, oe.prototype.clear = function() {
7127
7127
  this._keys.length = 0, this._values.length = 0, this._cacheKey = A, this._cacheIndex = -2;
7128
7128
  }, oe.prototype.keys = function() {
7129
- return new B(this._keys, this._values, ee);
7129
+ return new T(this._keys, this._values, te);
7130
7130
  }, oe.prototype.values = function() {
7131
- return new B(this._keys, this._values, je);
7131
+ return new T(this._keys, this._values, je);
7132
7132
  }, oe.prototype.entries = function() {
7133
- return new B(this._keys, this._values, Ie);
7133
+ return new T(this._keys, this._values, Ie);
7134
7134
  }, oe.prototype["@@iterator"] = function() {
7135
7135
  return this.entries();
7136
7136
  }, oe.prototype[o] = function() {
@@ -7149,7 +7149,7 @@ var Du;
7149
7149
  }()
7150
7150
  );
7151
7151
  return M;
7152
- function ee(oe, F) {
7152
+ function te(oe, F) {
7153
7153
  return oe;
7154
7154
  }
7155
7155
  function je(oe, F) {
@@ -7172,12 +7172,12 @@ var Du;
7172
7172
  },
7173
7173
  enumerable: !0,
7174
7174
  configurable: !0
7175
- }), I.prototype.has = function(B) {
7176
- return this._map.has(B);
7177
- }, I.prototype.add = function(B) {
7178
- return this._map.set(B, B), this;
7179
- }, I.prototype.delete = function(B) {
7180
- return this._map.delete(B);
7175
+ }), I.prototype.has = function(T) {
7176
+ return this._map.has(T);
7177
+ }, I.prototype.add = function(T) {
7178
+ return this._map.set(T, T), this;
7179
+ }, I.prototype.delete = function(T) {
7180
+ return this._map.delete(T);
7181
7181
  }, I.prototype.clear = function() {
7182
7182
  this._map.clear();
7183
7183
  }, I.prototype.keys = function() {
@@ -7196,7 +7196,7 @@ var Du;
7196
7196
  return A;
7197
7197
  }
7198
7198
  function im() {
7199
- var A = 16, I = p.create(), B = M();
7199
+ var A = 16, I = p.create(), T = M();
7200
7200
  return (
7201
7201
  /** @class */
7202
7202
  function() {
@@ -7204,28 +7204,28 @@ var Du;
7204
7204
  this._key = M();
7205
7205
  }
7206
7206
  return F.prototype.has = function(G) {
7207
- var Y = ee(
7207
+ var Y = te(
7208
7208
  G,
7209
7209
  /*create*/
7210
7210
  !1
7211
7211
  );
7212
7212
  return Y !== void 0 ? p.has(Y, this._key) : !1;
7213
7213
  }, F.prototype.get = function(G) {
7214
- var Y = ee(
7214
+ var Y = te(
7215
7215
  G,
7216
7216
  /*create*/
7217
7217
  !1
7218
7218
  );
7219
7219
  return Y !== void 0 ? p.get(Y, this._key) : void 0;
7220
7220
  }, F.prototype.set = function(G, Y) {
7221
- var X = ee(
7221
+ var X = te(
7222
7222
  G,
7223
7223
  /*create*/
7224
7224
  !0
7225
7225
  );
7226
7226
  return X[this._key] = Y, this;
7227
7227
  }, F.prototype.delete = function(G) {
7228
- var Y = ee(
7228
+ var Y = te(
7229
7229
  G,
7230
7230
  /*create*/
7231
7231
  !1
@@ -7243,13 +7243,13 @@ var Du;
7243
7243
  while (p.has(I, F));
7244
7244
  return I[F] = !0, F;
7245
7245
  }
7246
- function ee(F, G) {
7247
- if (!r.call(F, B)) {
7246
+ function te(F, G) {
7247
+ if (!r.call(F, T)) {
7248
7248
  if (!G)
7249
7249
  return;
7250
- Object.defineProperty(F, B, { value: p.create() });
7250
+ Object.defineProperty(F, T, { value: p.create() });
7251
7251
  }
7252
- return F[B];
7252
+ return F[T];
7253
7253
  }
7254
7254
  function je(F, G) {
7255
7255
  for (var Y = 0; Y < G; ++Y)
@@ -9839,7 +9839,7 @@ class po {
9839
9839
  this.value = i.buffer;
9840
9840
  }
9841
9841
  }
9842
- class ce {
9842
+ class le {
9843
9843
  get byteLength() {
9844
9844
  return this.buffer.byteLength;
9845
9845
  }
@@ -9893,7 +9893,7 @@ const Sy = {
9893
9893
  fromASN: (t) => t.valueBlock.valueHexView,
9894
9894
  toASN: (t) => new hn({ valueHex: t })
9895
9895
  }, jy = {
9896
- fromASN: (t) => new ce(t.getValue()),
9896
+ fromASN: (t) => new le(t.getValue()),
9897
9897
  toASN: (t) => t.toASN()
9898
9898
  };
9899
9899
  function at(t) {
@@ -10354,18 +10354,18 @@ var Ah = { exports: {} };
10354
10354
  function u(f, _) {
10355
10355
  if (f.indexOf("::") !== f.lastIndexOf("::"))
10356
10356
  return null;
10357
- let w = 0, S = -1, N = (f.match(l.zoneIndex) || [])[0], T, V;
10357
+ let w = 0, S = -1, N = (f.match(l.zoneIndex) || [])[0], B, V;
10358
10358
  for (N && (N = N.substring(1), f = f.replace(/%.+$/, "")); (S = f.indexOf(":", S + 1)) >= 0; )
10359
10359
  w++;
10360
10360
  if (f.substr(0, 2) === "::" && w--, f.substr(-2, 2) === "::" && w--, w > _)
10361
10361
  return null;
10362
- for (V = _ - w, T = ":"; V--; )
10363
- T += "0:";
10364
- return f = f.replace("::", T), f[0] === ":" && (f = f.slice(1)), f[f.length - 1] === ":" && (f = f.slice(0, -1)), _ = function() {
10365
- const te = f.split(":"), pe = [];
10366
- for (let ue = 0; ue < te.length; ue++)
10367
- pe.push(parseInt(te[ue], 16));
10368
- return pe;
10362
+ for (V = _ - w, B = ":"; V--; )
10363
+ B += "0:";
10364
+ return f = f.replace("::", B), f[0] === ":" && (f = f.slice(1)), f[f.length - 1] === ":" && (f = f.slice(0, -1)), _ = function() {
10365
+ const Q = f.split(":"), ce = [];
10366
+ for (let de = 0; de < Q.length; de++)
10367
+ ce.push(parseInt(Q[de], 16));
10368
+ return ce;
10369
10369
  }(), {
10370
10370
  parts: _,
10371
10371
  zoneId: N
@@ -10374,9 +10374,9 @@ var Ah = { exports: {} };
10374
10374
  function p(f, _, w, S) {
10375
10375
  if (f.length !== _.length)
10376
10376
  throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
10377
- let N = 0, T;
10377
+ let N = 0, B;
10378
10378
  for (; S > 0; ) {
10379
- if (T = w - S, T < 0 && (T = 0), f[N] >> T !== _[N] >> T)
10379
+ if (B = w - S, B < 0 && (B = 0), f[N] >> B !== _[N] >> B)
10380
10380
  return !1;
10381
10381
  S -= w, N += 1;
10382
10382
  }
@@ -10464,10 +10464,10 @@ var Ah = { exports: {} };
10464
10464
  254: 1,
10465
10465
  255: 0
10466
10466
  };
10467
- let N, T, V;
10467
+ let N, B, V;
10468
10468
  for (N = 3; N >= 0; N -= 1)
10469
- if (T = this.octets[N], T in S) {
10470
- if (V = S[T], w && V !== 0)
10469
+ if (B = this.octets[N], B in S) {
10470
+ if (V = S[B], w && V !== 0)
10471
10471
  return null;
10472
10472
  V !== 8 && (w = !0), _ += V;
10473
10473
  } else
@@ -10487,9 +10487,9 @@ var Ah = { exports: {} };
10487
10487
  }(), v.IPv4.broadcastAddressFromCIDR = function(f) {
10488
10488
  try {
10489
10489
  const _ = this.parseCIDR(f), w = _[0].toByteArray(), S = this.subnetMaskFromPrefixLength(_[1]).toByteArray(), N = [];
10490
- let T = 0;
10491
- for (; T < 4; )
10492
- N.push(parseInt(w[T], 10) | parseInt(S[T], 10) ^ 255), T++;
10490
+ let B = 0;
10491
+ for (; B < 4; )
10492
+ N.push(parseInt(w[B], 10) | parseInt(S[B], 10) ^ 255), B++;
10493
10493
  return new this(N);
10494
10494
  } catch {
10495
10495
  throw new Error("ipaddr: the address does not have IPv4 CIDR format");
@@ -10511,10 +10511,10 @@ var Ah = { exports: {} };
10511
10511
  }, v.IPv4.isValidFourPartDecimal = function(f) {
10512
10512
  return !!(v.IPv4.isValid(f) && f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
10513
10513
  }, v.IPv4.networkAddressFromCIDR = function(f) {
10514
- let _, w, S, N, T;
10514
+ let _, w, S, N, B;
10515
10515
  try {
10516
- for (_ = this.parseCIDR(f), S = _[0].toByteArray(), T = this.subnetMaskFromPrefixLength(_[1]).toByteArray(), N = [], w = 0; w < 4; )
10517
- N.push(parseInt(S[w], 10) & parseInt(T[w], 10)), w++;
10516
+ for (_ = this.parseCIDR(f), S = _[0].toByteArray(), B = this.subnetMaskFromPrefixLength(_[1]).toByteArray(), N = [], w = 0; w < 4; )
10517
+ N.push(parseInt(S[w], 10) & parseInt(B[w], 10)), w++;
10518
10518
  return new this(N);
10519
10519
  } catch {
10520
10520
  throw new Error("ipaddr: the address does not have IPv4 CIDR format");
@@ -10542,31 +10542,31 @@ var Ah = { exports: {} };
10542
10542
  let _, w, S;
10543
10543
  if (_ = f.match(r.fourOctet))
10544
10544
  return function() {
10545
- const N = _.slice(1, 6), T = [];
10545
+ const N = _.slice(1, 6), B = [];
10546
10546
  for (let V = 0; V < N.length; V++)
10547
- w = N[V], T.push(h(w));
10548
- return T;
10547
+ w = N[V], B.push(h(w));
10548
+ return B;
10549
10549
  }();
10550
10550
  if (_ = f.match(r.longValue)) {
10551
10551
  if (S = h(_[1]), S > 4294967295 || S < 0)
10552
10552
  throw new Error("ipaddr: address outside defined range");
10553
10553
  return function() {
10554
10554
  const N = [];
10555
- let T;
10556
- for (T = 0; T <= 24; T += 8)
10557
- N.push(S >> T & 255);
10555
+ let B;
10556
+ for (B = 0; B <= 24; B += 8)
10557
+ N.push(S >> B & 255);
10558
10558
  return N;
10559
10559
  }().reverse();
10560
10560
  } else return (_ = f.match(r.twoOctet)) ? function() {
10561
- const N = _.slice(1, 4), T = [];
10561
+ const N = _.slice(1, 4), B = [];
10562
10562
  if (S = h(N[1]), S > 16777215 || S < 0)
10563
10563
  throw new Error("ipaddr: address outside defined range");
10564
- return T.push(h(N[0])), T.push(S >> 16 & 255), T.push(S >> 8 & 255), T.push(S & 255), T;
10564
+ return B.push(h(N[0])), B.push(S >> 16 & 255), B.push(S >> 8 & 255), B.push(S & 255), B;
10565
10565
  }() : (_ = f.match(r.threeOctet)) ? function() {
10566
- const N = _.slice(1, 5), T = [];
10566
+ const N = _.slice(1, 5), B = [];
10567
10567
  if (S = h(N[2]), S > 65535 || S < 0)
10568
10568
  throw new Error("ipaddr: address outside defined range");
10569
- return T.push(h(N[0])), T.push(h(N[1])), T.push(S >> 8 & 255), T.push(S & 255), T;
10569
+ return B.push(h(N[0])), B.push(h(N[1])), B.push(S >> 8 & 255), B.push(S & 255), B;
10570
10570
  }() : null;
10571
10571
  }, v.IPv4.subnetMaskFromPrefixLength = function(f) {
10572
10572
  if (f = parseInt(f), f < 0 || f > 32)
@@ -10657,12 +10657,12 @@ var Ah = { exports: {} };
10657
10657
  65534: 1,
10658
10658
  65535: 0
10659
10659
  };
10660
- let N, T;
10660
+ let N, B;
10661
10661
  for (let V = 7; V >= 0; V -= 1)
10662
10662
  if (N = this.parts[V], N in S) {
10663
- if (T = S[N], w && T !== 0)
10663
+ if (B = S[N], w && B !== 0)
10664
10664
  return null;
10665
- T !== 16 && (w = !0), _ += T;
10665
+ B !== 16 && (w = !0), _ += B;
10666
10666
  } else
10667
10667
  return null;
10668
10668
  return 128 - _;
@@ -10699,9 +10699,9 @@ var Ah = { exports: {} };
10699
10699
  return this.zoneId && (w = `%${this.zoneId}`), _ + w;
10700
10700
  }, f.prototype.toRFC5952String = function() {
10701
10701
  const _ = /((^|:)(0(:|$)){2,})/g, w = this.toNormalizedString();
10702
- let S = 0, N = -1, T;
10703
- for (; T = _.exec(w); )
10704
- T[0].length > N && (S = T.index, N = T[0].length);
10702
+ let S = 0, N = -1, B;
10703
+ for (; B = _.exec(w); )
10704
+ B[0].length > N && (S = B.index, N = B[0].length);
10705
10705
  return N < 0 ? w : `${w.substring(0, S)}::${w.substring(S + N)}`;
10706
10706
  }, f.prototype.toString = function() {
10707
10707
  return this.toRFC5952String();
@@ -10709,9 +10709,9 @@ var Ah = { exports: {} };
10709
10709
  }(), v.IPv6.broadcastAddressFromCIDR = function(f) {
10710
10710
  try {
10711
10711
  const _ = this.parseCIDR(f), w = _[0].toByteArray(), S = this.subnetMaskFromPrefixLength(_[1]).toByteArray(), N = [];
10712
- let T = 0;
10713
- for (; T < 16; )
10714
- N.push(parseInt(w[T], 10) | parseInt(S[T], 10) ^ 255), T++;
10712
+ let B = 0;
10713
+ for (; B < 16; )
10714
+ N.push(parseInt(w[B], 10) | parseInt(S[B], 10) ^ 255), B++;
10715
10715
  return new this(N);
10716
10716
  } catch (_) {
10717
10717
  throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`);
@@ -10736,10 +10736,10 @@ var Ah = { exports: {} };
10736
10736
  return !1;
10737
10737
  }
10738
10738
  }, v.IPv6.networkAddressFromCIDR = function(f) {
10739
- let _, w, S, N, T;
10739
+ let _, w, S, N, B;
10740
10740
  try {
10741
- for (_ = this.parseCIDR(f), S = _[0].toByteArray(), T = this.subnetMaskFromPrefixLength(_[1]).toByteArray(), N = [], w = 0; w < 16; )
10742
- N.push(parseInt(S[w], 10) & parseInt(T[w], 10)), w++;
10741
+ for (_ = this.parseCIDR(f), S = _[0].toByteArray(), B = this.subnetMaskFromPrefixLength(_[1]).toByteArray(), N = [], w = 0; w < 16; )
10742
+ N.push(parseInt(S[w], 10) & parseInt(B[w], 10)), w++;
10743
10743
  return new this(N);
10744
10744
  } catch (V) {
10745
10745
  throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${V})`);
@@ -10759,21 +10759,21 @@ var Ah = { exports: {} };
10759
10759
  }), S;
10760
10760
  throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
10761
10761
  }, v.IPv6.parser = function(f) {
10762
- let _, w, S, N, T, V;
10762
+ let _, w, S, N, B, V;
10763
10763
  if (S = f.match(l.deprecatedTransitional))
10764
10764
  return this.parser(`::ffff:${S[1]}`);
10765
10765
  if (l.native.test(f))
10766
10766
  return u(f, 8);
10767
10767
  if ((S = f.match(l.transitional)) && (V = S[6] || "", _ = S[1], S[1].endsWith("::") || (_ = _.slice(0, -1)), _ = u(_ + V, 6), _.parts)) {
10768
- for (T = [
10768
+ for (B = [
10769
10769
  parseInt(S[2]),
10770
10770
  parseInt(S[3]),
10771
10771
  parseInt(S[4]),
10772
10772
  parseInt(S[5])
10773
- ], w = 0; w < T.length; w++)
10774
- if (N = T[w], !(0 <= N && N <= 255))
10773
+ ], w = 0; w < B.length; w++)
10774
+ if (N = B[w], !(0 <= N && N <= 255))
10775
10775
  return null;
10776
- return _.parts.push(T[0] << 8 | T[1]), _.parts.push(T[2] << 8 | T[3]), {
10776
+ return _.parts.push(B[0] << 8 | B[1]), _.parts.push(B[2] << 8 | B[3]), {
10777
10777
  parts: _.parts,
10778
10778
  zoneId: _.zoneId
10779
10779
  };
@@ -10819,12 +10819,12 @@ var Ah = { exports: {} };
10819
10819
  const _ = this.parse(f);
10820
10820
  return _.kind() === "ipv6" && _.isIPv4MappedAddress() ? _.toIPv4Address() : _;
10821
10821
  }, v.subnetMatch = function(f, _, w) {
10822
- let S, N, T, V;
10822
+ let S, N, B, V;
10823
10823
  w == null && (w = "unicast");
10824
10824
  for (N in _)
10825
10825
  if (Object.prototype.hasOwnProperty.call(_, N)) {
10826
- for (T = _[N], T[0] && !(T[0] instanceof Array) && (T = [T]), S = 0; S < T.length; S++)
10827
- if (V = T[S], f.kind() === V[0].kind() && f.match.apply(f, V))
10826
+ for (B = _[N], B[0] && !(B[0] instanceof Array) && (B = [B]), S = 0; S < B.length; S++)
10827
+ if (V = B[S], f.kind() === V[0].kind() && f.match.apply(f, V))
10828
10828
  return N;
10829
10829
  }
10830
10830
  return w;
@@ -11017,7 +11017,7 @@ Fn = Pa = d([
11017
11017
  R({ type: P.Sequence, itemType: ui })
11018
11018
  ], Fn);
11019
11019
  const La = `${rn}.35`;
11020
- class bl extends ce {
11020
+ class bl extends le {
11021
11021
  }
11022
11022
  class pn {
11023
11023
  constructor(e = {}) {
@@ -11564,7 +11564,7 @@ d([
11564
11564
  var tc;
11565
11565
  let ot = class Uh {
11566
11566
  constructor(e = {}) {
11567
- this.extnID = "", this.critical = Uh.CRITICAL, this.extnValue = new ce(), Object.assign(this, e);
11567
+ this.extnID = "", this.critical = Uh.CRITICAL, this.extnValue = new le(), Object.assign(this, e);
11568
11568
  }
11569
11569
  };
11570
11570
  ot.CRITICAL = !1;
@@ -11578,7 +11578,7 @@ d([
11578
11578
  })
11579
11579
  ], ot.prototype, "critical", void 0);
11580
11580
  d([
11581
- g({ type: ce })
11581
+ g({ type: le })
11582
11582
  ], ot.prototype, "extnValue", void 0);
11583
11583
  let Yt = tc = class extends ge {
11584
11584
  constructor(e) {
@@ -11780,7 +11780,7 @@ d([
11780
11780
  var rc;
11781
11781
  class Nt {
11782
11782
  constructor(e = {}) {
11783
- this.version = Vt.v0, this.sid = new Yn(), this.digestAlgorithm = new Dr(), this.signatureAlgorithm = new ps(), this.signature = new ce(), Object.assign(this, e);
11783
+ this.version = Vt.v0, this.sid = new Yn(), this.digestAlgorithm = new Dr(), this.signatureAlgorithm = new ps(), this.signature = new le(), Object.assign(this, e);
11784
11784
  }
11785
11785
  }
11786
11786
  d([
@@ -11799,7 +11799,7 @@ d([
11799
11799
  g({ type: ps })
11800
11800
  ], Nt.prototype, "signatureAlgorithm", void 0);
11801
11801
  d([
11802
- g({ type: ce })
11802
+ g({ type: le })
11803
11803
  ], Nt.prototype, "signature", void 0);
11804
11804
  d([
11805
11805
  g({ type: fr, repeated: "set", context: 1, implicit: !0, optional: !0 })
@@ -12037,7 +12037,7 @@ class ko {
12037
12037
  }
12038
12038
  }
12039
12039
  d([
12040
- g({ type: ce })
12040
+ g({ type: le })
12041
12041
  ], ko.prototype, "cotets", void 0);
12042
12042
  d([
12043
12043
  g({ type: b.ObjectIdentifier })
@@ -12128,7 +12128,7 @@ d([
12128
12128
  g({ type: ie })
12129
12129
  ], jl.prototype, "ident", void 0);
12130
12130
  d([
12131
- g({ type: ce, optional: !0 })
12131
+ g({ type: le, optional: !0 })
12132
12132
  ], jl.prototype, "authInfo", void 0);
12133
12133
  var dc;
12134
12134
  class $l {
@@ -12184,7 +12184,7 @@ let Fr = class {
12184
12184
  }
12185
12185
  };
12186
12186
  d([
12187
- g({ type: ce })
12187
+ g({ type: le })
12188
12188
  ], Fr.prototype, "single", void 0);
12189
12189
  d([
12190
12190
  g({ type: b.Any })
@@ -12209,10 +12209,10 @@ let Hr = class {
12209
12209
  }
12210
12210
  };
12211
12211
  d([
12212
- g({ type: ce, context: 0, implicit: !0, optional: !0 })
12212
+ g({ type: le, context: 0, implicit: !0, optional: !0 })
12213
12213
  ], Hr.prototype, "value", void 0);
12214
12214
  d([
12215
- g({ type: ce, converter: jy, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
12215
+ g({ type: le, converter: jy, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
12216
12216
  ], Hr.prototype, "constructedValue", void 0);
12217
12217
  Hr = d([
12218
12218
  R({ type: P.Choice })
@@ -12273,14 +12273,14 @@ tr = d([
12273
12273
  ], tr);
12274
12274
  class Ol {
12275
12275
  constructor(e = {}) {
12276
- this.rid = new tr(), this.encryptedKey = new ce(), Object.assign(this, e);
12276
+ this.rid = new tr(), this.encryptedKey = new le(), Object.assign(this, e);
12277
12277
  }
12278
12278
  }
12279
12279
  d([
12280
12280
  g({ type: tr })
12281
12281
  ], Ol.prototype, "rid", void 0);
12282
12282
  d([
12283
- g({ type: ce })
12283
+ g({ type: le })
12284
12284
  ], Ol.prototype, "encryptedKey", void 0);
12285
12285
  let ys = pc = class extends ge {
12286
12286
  constructor(e) {
@@ -12330,7 +12330,7 @@ d([
12330
12330
  g({ type: Sn, context: 0 })
12331
12331
  ], gr.prototype, "originator", void 0);
12332
12332
  d([
12333
- g({ type: ce, context: 1, optional: !0 })
12333
+ g({ type: le, context: 1, optional: !0 })
12334
12334
  ], gr.prototype, "ukm", void 0);
12335
12335
  d([
12336
12336
  g({ type: At })
@@ -12354,7 +12354,7 @@ nr = d([
12354
12354
  ], nr);
12355
12355
  class hi {
12356
12356
  constructor(e = {}) {
12357
- this.version = Vt.v0, this.rid = new nr(), this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new ce(), Object.assign(this, e);
12357
+ this.version = Vt.v0, this.rid = new nr(), this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new le(), Object.assign(this, e);
12358
12358
  }
12359
12359
  }
12360
12360
  d([
@@ -12367,15 +12367,15 @@ d([
12367
12367
  g({ type: At })
12368
12368
  ], hi.prototype, "keyEncryptionAlgorithm", void 0);
12369
12369
  d([
12370
- g({ type: ce })
12370
+ g({ type: le })
12371
12371
  ], hi.prototype, "encryptedKey", void 0);
12372
12372
  class gi {
12373
12373
  constructor(e = {}) {
12374
- this.keyIdentifier = new ce(), Object.assign(this, e);
12374
+ this.keyIdentifier = new le(), Object.assign(this, e);
12375
12375
  }
12376
12376
  }
12377
12377
  d([
12378
- g({ type: ce })
12378
+ g({ type: le })
12379
12379
  ], gi.prototype, "keyIdentifier", void 0);
12380
12380
  d([
12381
12381
  g({ type: b.GeneralizedTime, optional: !0 })
@@ -12385,7 +12385,7 @@ d([
12385
12385
  ], gi.prototype, "other", void 0);
12386
12386
  class mi {
12387
12387
  constructor(e = {}) {
12388
- this.version = Vt.v4, this.kekid = new gi(), this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new ce(), Object.assign(this, e);
12388
+ this.version = Vt.v4, this.kekid = new gi(), this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new le(), Object.assign(this, e);
12389
12389
  }
12390
12390
  }
12391
12391
  d([
@@ -12398,11 +12398,11 @@ d([
12398
12398
  g({ type: At })
12399
12399
  ], mi.prototype, "keyEncryptionAlgorithm", void 0);
12400
12400
  d([
12401
- g({ type: ce })
12401
+ g({ type: le })
12402
12402
  ], mi.prototype, "encryptedKey", void 0);
12403
12403
  class _i {
12404
12404
  constructor(e = {}) {
12405
- this.version = Vt.v0, this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new ce(), Object.assign(this, e);
12405
+ this.version = Vt.v0, this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new le(), Object.assign(this, e);
12406
12406
  }
12407
12407
  }
12408
12408
  d([
@@ -12415,7 +12415,7 @@ d([
12415
12415
  g({ type: At })
12416
12416
  ], _i.prototype, "keyEncryptionAlgorithm", void 0);
12417
12417
  d([
12418
- g({ type: ce })
12418
+ g({ type: le })
12419
12419
  ], _i.prototype, "encryptedKey", void 0);
12420
12420
  class Tl {
12421
12421
  constructor(e = {}) {
@@ -12585,7 +12585,7 @@ d([
12585
12585
  Wr = d([
12586
12586
  R({ type: P.Sequence })
12587
12587
  ], Wr);
12588
- class av extends ce {
12588
+ class av extends le {
12589
12589
  }
12590
12590
  let rr = class {
12591
12591
  constructor(e = {}) {
@@ -12653,14 +12653,14 @@ Qt = d([
12653
12653
  ], Qt);
12654
12654
  class Co {
12655
12655
  constructor(e = {}) {
12656
- this.version = 1, this.privateKey = new ce(), Object.assign(this, e);
12656
+ this.version = 1, this.privateKey = new le(), Object.assign(this, e);
12657
12657
  }
12658
12658
  }
12659
12659
  d([
12660
12660
  g({ type: b.Integer })
12661
12661
  ], Co.prototype, "version", void 0);
12662
12662
  d([
12663
- g({ type: ce })
12663
+ g({ type: le })
12664
12664
  ], Co.prototype, "privateKey", void 0);
12665
12665
  d([
12666
12666
  g({ type: Qt, context: 0, optional: !0 })
@@ -12756,14 +12756,14 @@ new K({
12756
12756
  });
12757
12757
  class $o {
12758
12758
  constructor(e = {}) {
12759
- this.digestAlgorithm = new K(), this.digest = new ce(), Object.assign(this, e);
12759
+ this.digestAlgorithm = new K(), this.digest = new le(), Object.assign(this, e);
12760
12760
  }
12761
12761
  }
12762
12762
  d([
12763
12763
  g({ type: K })
12764
12764
  ], $o.prototype, "digestAlgorithm", void 0);
12765
12765
  d([
12766
- g({ type: ce })
12766
+ g({ type: le })
12767
12767
  ], $o.prototype, "digest", void 0);
12768
12768
  var wc;
12769
12769
  class Oo {
@@ -13418,7 +13418,7 @@ d([
13418
13418
  d([
13419
13419
  g({ type: b.Any, context: 0 })
13420
13420
  ], Yh.prototype, "crltValue", void 0);
13421
- class Xh extends ce {
13421
+ class Xh extends le {
13422
13422
  }
13423
13423
  let Po = class {
13424
13424
  constructor(e = {}) {
@@ -13435,7 +13435,7 @@ var Ic, Cc;
13435
13435
  (function(t) {
13436
13436
  t[t.v1 = 0] = "v1";
13437
13437
  })(Cc || (Cc = {}));
13438
- class Qh extends ce {
13438
+ class Qh extends le {
13439
13439
  }
13440
13440
  let Nc = Ic = class extends ge {
13441
13441
  constructor(e) {
@@ -13485,14 +13485,14 @@ d([
13485
13485
  ], eg.prototype, "secretValue", void 0);
13486
13486
  class bi {
13487
13487
  constructor(e = {}) {
13488
- this.mac = new $o(), this.macSalt = new ce(), this.iterations = 1, Object.assign(this, e);
13488
+ this.mac = new $o(), this.macSalt = new le(), this.iterations = 1, Object.assign(this, e);
13489
13489
  }
13490
13490
  }
13491
13491
  d([
13492
13492
  g({ type: $o })
13493
13493
  ], bi.prototype, "mac", void 0);
13494
13494
  d([
13495
- g({ type: ce })
13495
+ g({ type: le })
13496
13496
  ], bi.prototype, "macSalt", void 0);
13497
13497
  d([
13498
13498
  g({ type: b.Integer, defaultValue: 1 })
@@ -14136,7 +14136,7 @@ class ct extends on {
14136
14136
  D.isBufferSource(e[0]) ? n = D.toArrayBuffer(e[0]) : n = z.serialize(new ot({
14137
14137
  extnID: e[0],
14138
14138
  critical: e[1],
14139
- extnValue: new ce(D.toArrayBuffer(e[2]))
14139
+ extnValue: new le(D.toArrayBuffer(e[2]))
14140
14140
  })), super(n, ot);
14141
14141
  }
14142
14142
  onInit(e) {
@@ -14396,7 +14396,7 @@ class Kt extends on {
14396
14396
  n = new ie({
14397
14397
  otherName: new zr({
14398
14398
  typeId: dp,
14399
- value: z.serialize(new ce(Z.FromHex(i)))
14399
+ value: z.serialize(new le(Z.FromHex(i)))
14400
14400
  })
14401
14401
  });
14402
14402
  break;
@@ -14441,7 +14441,7 @@ class Kt extends on {
14441
14441
  else if (e.otherName != null)
14442
14442
  if (e.otherName.typeId === dp) {
14443
14443
  this.type = ra;
14444
- const n = z.parse(e.otherName.value, ce), r = new RegExp(up, "i").exec(Z.ToHex(n));
14444
+ const n = z.parse(e.otherName.value, le), r = new RegExp(up, "i").exec(Z.ToHex(n));
14445
14445
  if (!r)
14446
14446
  throw new Error(Vv);
14447
14447
  this.value = r.slice(1).map((i, s) => s < 3 ? Z.ToHex(new Uint8Array(Z.FromHex(i)).reverse()) : i).join("-");
@@ -15558,7 +15558,7 @@ async function Xv(t) {
15558
15558
  const e = await t.publicKey.export(), n = await crypto.subtle.exportKey("jwk", e), r = JSON.stringify(n, Object.keys(n).sort()), s = new TextEncoder().encode(r);
15559
15559
  return Sa(await cf(s));
15560
15560
  }
15561
- const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15561
+ const Qv = 1e3 * 60 * 60 * 24, ew = new ue().openapi(
15562
15562
  q({
15563
15563
  tags: ["keys"],
15564
15564
  method: "get",
@@ -15690,7 +15690,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15690
15690
  });
15691
15691
  return await t.env.data.keys.create(r), t.text("OK");
15692
15692
  }
15693
- ), tw = new le().openapi(
15693
+ ), tw = new ue().openapi(
15694
15694
  q({
15695
15695
  tags: ["users"],
15696
15696
  method: "get",
@@ -15725,7 +15725,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15725
15725
  }
15726
15726
  ), nw = jn.extend({
15727
15727
  clients: a.array(Dn)
15728
- }), rw = new le().openapi(
15728
+ }), rw = new ue().openapi(
15729
15729
  q({
15730
15730
  tags: ["clients"],
15731
15731
  method: "get",
@@ -15943,7 +15943,7 @@ Zc.extend({
15943
15943
  }).catchall(a.any());
15944
15944
  const iw = jn.extend({
15945
15945
  tenants: a.array(Or)
15946
- }), sw = new le().openapi(
15946
+ }), sw = new ue().openapi(
15947
15947
  q({
15948
15948
  tags: ["tenants"],
15949
15949
  method: "get",
@@ -16102,7 +16102,7 @@ const iw = jn.extend({
16102
16102
  }
16103
16103
  ), ow = jn.extend({
16104
16104
  logs: a.array(xa)
16105
- }), aw = new le().openapi(
16105
+ }), aw = new ue().openapi(
16106
16106
  q({
16107
16107
  tags: ["logs"],
16108
16108
  method: "get",
@@ -16176,7 +16176,7 @@ const iw = jn.extend({
16176
16176
  }
16177
16177
  ), cw = jn.extend({
16178
16178
  hooks: a.array(Nr)
16179
- }), lw = new le().openapi(
16179
+ }), lw = new ue().openapi(
16180
16180
  q({
16181
16181
  tags: ["hooks"],
16182
16182
  method: "get",
@@ -16367,7 +16367,7 @@ const iw = jn.extend({
16367
16367
  }
16368
16368
  ), uw = jn.extend({
16369
16369
  connections: a.array(ln)
16370
- }), dw = new le().openapi(
16370
+ }), dw = new ue().openapi(
16371
16371
  q({
16372
16372
  tags: ["connections"],
16373
16373
  method: "get",
@@ -16566,7 +16566,7 @@ const iw = jn.extend({
16566
16566
  const { "tenant-id": e } = t.req.valid("header"), n = t.req.valid("json"), r = await t.env.data.connections.create(e, n);
16567
16567
  return t.json(r, { status: 201 });
16568
16568
  }
16569
- ), pw = new le().openapi(
16569
+ ), pw = new ue().openapi(
16570
16570
  q({
16571
16571
  tags: ["prompts"],
16572
16572
  method: "get",
@@ -16722,7 +16722,7 @@ function hg(t) {
16722
16722
  return await n();
16723
16723
  };
16724
16724
  }
16725
- const mw = new le().openapi(
16725
+ const mw = new ue().openapi(
16726
16726
  q({
16727
16727
  tags: ["emails"],
16728
16728
  method: "get",
@@ -16818,7 +16818,7 @@ const mw = new le().openapi(
16818
16818
  const { "tenant-id": e } = t.req.valid("header"), n = t.req.valid("json");
16819
16819
  return await t.env.data.emailProviders.update(e, n), t.text("OK");
16820
16820
  }
16821
- ), _w = new le().openapi(
16821
+ ), _w = new ue().openapi(
16822
16822
  q({
16823
16823
  tags: ["sessions"],
16824
16824
  method: "get",
@@ -16919,7 +16919,7 @@ const mw = new le().openapi(
16919
16919
  });
16920
16920
  return t.text("Session deletion request accepted.", { status: 202 });
16921
16921
  }
16922
- ), yw = new le().openapi(
16922
+ ), yw = new ue().openapi(
16923
16923
  q({
16924
16924
  tags: ["refresh_tokens"],
16925
16925
  method: "get",
@@ -16986,7 +16986,7 @@ const mw = new le().openapi(
16986
16986
  });
16987
16987
  return t.text("OK");
16988
16988
  }
16989
- ), vw = new le().openapi(
16989
+ ), vw = new ue().openapi(
16990
16990
  q({
16991
16991
  tags: ["custom-domains"],
16992
16992
  method: "get",
@@ -17209,7 +17209,7 @@ const mw = new le().openapi(
17209
17209
  }
17210
17210
  );
17211
17211
  function ww(t) {
17212
- const e = new le();
17212
+ const e = new ue();
17213
17213
  fg(e), e.use(async (r, i) => (r.env.data = Ks(r, t.dataAdapter), i())), e.use(hg(e));
17214
17214
  const n = e.route("/branding", Gm).route("/custom-domains", vw).route("/email/providers", mw).route("/users", ny).route("/keys", ew).route("/users-by-email", tw).route("/clients", rw).route("/tenants", sw).route("/logs", aw).route("/hooks", lw).route("/connections", dw).route("/prompts", pw).route("/sessions", _w).route("/refresh_tokens", yw);
17215
17215
  return n.doc("/spec", {
@@ -18391,7 +18391,7 @@ async function Cp(t, e, n, r, i, s) {
18391
18391
  `${Et(t.env)}enter-email?state=${c.login_id}&error=${n}`
18392
18392
  );
18393
18393
  }
18394
- const sb = new le().openapi(
18394
+ const sb = new ue().openapi(
18395
18395
  q({
18396
18396
  tags: ["oauth2"],
18397
18397
  method: "get",
@@ -18493,7 +18493,7 @@ const sb = new le().openapi(
18493
18493
  state: e
18494
18494
  });
18495
18495
  }
18496
- ), ob = new le().openapi(
18496
+ ), ob = new ue().openapi(
18497
18497
  q({
18498
18498
  tags: ["oauth2"],
18499
18499
  method: "get",
@@ -18569,7 +18569,7 @@ const sb = new le().openapi(
18569
18569
  family_name: a.string().optional(),
18570
18570
  given_name: a.string().optional(),
18571
18571
  email_verified: a.boolean()
18572
- }), ab = new le().openapi(
18572
+ }), ab = new ue().openapi(
18573
18573
  q({
18574
18574
  tags: ["oauth2"],
18575
18575
  method: "get",
@@ -18604,7 +18604,7 @@ const sb = new le().openapi(
18604
18604
  });
18605
18605
  return t.json(Np.parse({ ...e, sub: e.user_id }));
18606
18606
  }
18607
- ), cb = new le().openapi(
18607
+ ), cb = new ue().openapi(
18608
18608
  q({
18609
18609
  tags: ["well known"],
18610
18610
  method: "get",
@@ -18931,7 +18931,7 @@ function gb(t) {
18931
18931
  }
18932
18932
  return {};
18933
18933
  }
18934
- const mb = new le().openapi(
18934
+ const mb = new ue().openapi(
18935
18935
  q({
18936
18936
  tags: ["oauth2"],
18937
18937
  method: "post",
@@ -19194,7 +19194,7 @@ async function eu(t, e) {
19194
19194
  }
19195
19195
  });
19196
19196
  }
19197
- const yb = new le().openapi(
19197
+ const yb = new ue().openapi(
19198
19198
  q({
19199
19199
  tags: ["dbconnections"],
19200
19200
  method: "post",
@@ -19396,7 +19396,7 @@ async function tu(t, e, n, r, i, s, o) {
19396
19396
  ticketAuth: s
19397
19397
  });
19398
19398
  }
19399
- const vb = new le().openapi(
19399
+ const vb = new ue().openapi(
19400
19400
  q({
19401
19401
  tags: ["passwordless"],
19402
19402
  method: "post",
@@ -19633,7 +19633,7 @@ async function wb(t, e, n, r) {
19633
19633
  });
19634
19634
  await Eg(t, n, c.code_id, r);
19635
19635
  }
19636
- const bb = new le().openapi(
19636
+ const bb = new ue().openapi(
19637
19637
  q({
19638
19638
  tags: ["oauth"],
19639
19639
  method: "post",
@@ -19896,66 +19896,70 @@ async function Eb({
19896
19896
  scope: u,
19897
19897
  response_type: p
19898
19898
  }) {
19899
- const { env: h } = t, m = new URL(r);
19900
- if (n != null && n.expires_at && new Date(n.expires_at) > /* @__PURE__ */ new Date()) {
19901
- t.set("user_id", n.user_id);
19902
- const f = new Headers(), _ = pf(e.tenant.id, n.id);
19903
- f.set("set-cookie", _);
19904
- const w = await h.data.users.get(e.tenant.id, n.user_id);
19905
- if (w) {
19906
- t.set("username", w.email), t.set("connection", w.connection);
19907
- const S = await Hs(t, {
19908
- client: e,
19909
- authParams: {
19910
- client_id: e.id,
19911
- audience: l,
19912
- code_challenge_method: o,
19913
- code_challenge: c,
19914
- scope: u,
19915
- state: i,
19916
- nonce: s,
19917
- response_type: p
19918
- },
19919
- user: w,
19920
- session_id: n.id
19921
- });
19922
- await h.data.sessions.update(e.tenant.id, n.id, {
19923
- used_at: (/* @__PURE__ */ new Date()).toISOString(),
19924
- expires_at: new Date(
19925
- Date.now() + Ds * 1e3
19926
- ).toISOString()
19927
- });
19928
- const N = be(t, {
19929
- type: _e.SUCCESS_SILENT_AUTH,
19930
- description: "Successful silent authentication"
19931
- });
19932
- return await t.env.data.logs.create(e.tenant.id, N), t.html(
19933
- $p(
19934
- `${m.protocol}//${m.host}`,
19935
- JSON.stringify(S)
19936
- ),
19937
- {
19938
- headers: f
19939
- }
19940
- );
19941
- }
19899
+ const { env: h } = t, m = new URL(r), v = `${m.protocol}//${m.host}`;
19900
+ async function f(Q = "Login required") {
19901
+ const ce = be(t, {
19902
+ type: _e.FAILED_SILENT_AUTH,
19903
+ description: Q
19904
+ });
19905
+ return await t.env.data.logs.create(e.tenant.id, ce), t.html(
19906
+ $p(
19907
+ v,
19908
+ JSON.stringify({
19909
+ error: "login_required",
19910
+ error_description: Q,
19911
+ state: i
19912
+ })
19913
+ )
19914
+ );
19942
19915
  }
19943
- const v = be(t, {
19944
- type: _e.FAILED_SILENT_AUTH,
19945
- description: "Login required"
19916
+ if (!n || (n == null ? void 0 : n.expires_at) && new Date(n.expires_at) < /* @__PURE__ */ new Date() || (n == null ? void 0 : n.idle_expires_at) && new Date(n.idle_expires_at) < /* @__PURE__ */ new Date())
19917
+ return f();
19918
+ t.set("user_id", n.user_id);
19919
+ const w = await h.data.users.get(e.tenant.id, n.user_id);
19920
+ if (!w)
19921
+ return f("User not found");
19922
+ t.set("username", w.email), t.set("connection", w.connection);
19923
+ const S = await Hs(t, {
19924
+ client: e,
19925
+ authParams: {
19926
+ client_id: e.id,
19927
+ audience: l,
19928
+ code_challenge_method: o,
19929
+ code_challenge: c,
19930
+ scope: u,
19931
+ state: i,
19932
+ nonce: s,
19933
+ response_type: p
19934
+ },
19935
+ user: w,
19936
+ session_id: n.id
19937
+ });
19938
+ await h.data.sessions.update(e.tenant.id, n.id, {
19939
+ used_at: (/* @__PURE__ */ new Date()).toISOString(),
19940
+ last_interaction_at: (/* @__PURE__ */ new Date()).toISOString(),
19941
+ device: {
19942
+ ...n.device,
19943
+ last_ip: t.req.header("x-real-ip") || "",
19944
+ last_user_agent: t.req.header("user-agent") || ""
19945
+ },
19946
+ idle_expires_at: n.idle_expires_at ? new Date(
19947
+ Date.now() + Ds * 1e3
19948
+ ).toISOString() : void 0
19949
+ });
19950
+ const N = be(t, {
19951
+ type: _e.SUCCESS_SILENT_AUTH,
19952
+ description: "Successful silent authentication"
19953
+ });
19954
+ await t.env.data.logs.create(e.tenant.id, N);
19955
+ const B = new Headers();
19956
+ B.set("Server-Timing", "cf-nel=0; no-cloudflare-insights=1");
19957
+ const V = pf(e.tenant.id, n.id);
19958
+ return B.set("set-cookie", V), t.html($p(v, JSON.stringify(S)), {
19959
+ headers: B
19946
19960
  });
19947
- return await t.env.data.logs.create(e.tenant.id, v), t.html(
19948
- $p(
19949
- `${m.protocol}//${m.host}`,
19950
- JSON.stringify({
19951
- error: "login_required",
19952
- error_description: "Login required",
19953
- state: i
19954
- })
19955
- )
19956
- );
19957
19961
  }
19958
- const Ib = new le().openapi(
19962
+ const Ib = new ue().openapi(
19959
19963
  q({
19960
19964
  tags: ["oauth"],
19961
19965
  method: "get",
@@ -20012,13 +20016,13 @@ const Ib = new le().openapi(
20012
20016
  realm: w,
20013
20017
  auth0Client: S,
20014
20018
  login_hint: N,
20015
- ui_locales: T,
20019
+ ui_locales: B,
20016
20020
  organization: V
20017
20021
  } = t.req.valid("query");
20018
20022
  t.set("log", "authorize");
20019
- const te = await qo(e, n);
20020
- t.set("client_id", te.id), t.set("tenant_id", te.tenant.id);
20021
- const pe = {
20023
+ const Q = await qo(e, n);
20024
+ t.set("client_id", Q.id), t.set("tenant_id", Q.tenant.id);
20025
+ const ce = {
20022
20026
  redirect_uri: i,
20023
20027
  scope: s,
20024
20028
  state: o,
@@ -20032,23 +20036,23 @@ const Ib = new le().openapi(
20032
20036
  code_challenge: m,
20033
20037
  code_challenge_method: v,
20034
20038
  username: N,
20035
- ui_locales: T,
20039
+ ui_locales: B,
20036
20040
  organization: V
20037
- }, ue = t.req.header("origin");
20038
- if (ue && !kb(ue, te.web_origins || []))
20041
+ }, de = t.req.header("origin");
20042
+ if (de && !kb(de, Q.web_origins || []))
20039
20043
  throw new j(403, {
20040
- message: `Origin ${ue} not allowed`
20044
+ message: `Origin ${de} not allowed`
20041
20045
  });
20042
- if (pe.redirect_uri && !Mo(pe.redirect_uri, te.callbacks || [], {
20046
+ if (ce.redirect_uri && !Mo(ce.redirect_uri, Q.callbacks || [], {
20043
20047
  allowPathWildcards: !0
20044
20048
  }))
20045
20049
  throw new j(400, {
20046
- message: `Invalid redirect URI - ${pe.redirect_uri}`
20050
+ message: `Invalid redirect URI - ${ce.redirect_uri}`
20047
20051
  });
20048
20052
  const Me = ts(
20049
- te.tenant.id,
20053
+ Q.tenant.id,
20050
20054
  t.req.header("cookie")
20051
- ), ze = Me ? await e.data.sessions.get(te.tenant.id, Me) : void 0;
20055
+ ), ze = Me ? await e.data.sessions.get(Q.tenant.id, Me) : void 0;
20052
20056
  if (f == "none") {
20053
20057
  if (!p)
20054
20058
  throw new j(400, {
@@ -20060,7 +20064,7 @@ const Ib = new le().openapi(
20060
20064
  redirect_uri: i,
20061
20065
  state: o,
20062
20066
  response_type: p,
20063
- client: te,
20067
+ client: Q,
20064
20068
  nonce: l,
20065
20069
  code_challenge_method: v,
20066
20070
  code_challenge: m,
@@ -20068,17 +20072,17 @@ const Ib = new le().openapi(
20068
20072
  scope: s
20069
20073
  });
20070
20074
  }
20071
- return u && u !== "email" ? ib(t, te, u, pe) : _ ? Ab(
20075
+ return u && u !== "email" ? ib(t, Q, u, ce) : _ ? Ab(
20072
20076
  t,
20073
- te.tenant.id,
20077
+ Q.tenant.id,
20074
20078
  _,
20075
- pe,
20079
+ ce,
20076
20080
  w
20077
20081
  ) : xb({
20078
20082
  ctx: t,
20079
- client: te,
20083
+ client: Q,
20080
20084
  auth0Client: S,
20081
- authParams: pe,
20085
+ authParams: ce,
20082
20086
  session: ze || void 0,
20083
20087
  connection: u,
20084
20088
  login_hint: N
@@ -20086,7 +20090,7 @@ const Ib = new le().openapi(
20086
20090
  }
20087
20091
  );
20088
20092
  function Cb(t) {
20089
- const e = new le();
20093
+ const e = new ue();
20090
20094
  e.use(async (r, i) => (r.env.data = Ks(r, t.dataAdapter), i())), e.use(hg(e));
20091
20095
  const n = e.route("/v2/logout", ob).route("/userinfo", ab).route("/.well-known", cb).route("/oauth/token", mb).route("/dbconnections", yb).route("/passwordless", vb).route("/co/authenticate", bb).route("/authorize", Ib).route("/callback", sb);
20092
20096
  return n.doc("/spec", {
@@ -21119,7 +21123,7 @@ function c1(t) {
21119
21123
  const e = atob(t), n = JSON.parse(e);
21120
21124
  return a1.includes(n.name) ? "code" : "link";
21121
21125
  }
21122
- const l1 = new le().openapi(
21126
+ const l1 = new ue().openapi(
21123
21127
  q({
21124
21128
  tags: ["login"],
21125
21129
  method: "get",
@@ -21467,9 +21471,9 @@ var ri = "_hp", u1 = {
21467
21471
  const S = v(h, () => {
21468
21472
  const N = Gi.get(f);
21469
21473
  if (N) {
21470
- const T = N.indexOf(_);
21471
- if (T !== -1)
21472
- return N.splice(T, 1), _();
21474
+ const B = N.indexOf(_);
21475
+ if (B !== -1)
21476
+ return N.splice(B, 1), _();
21473
21477
  }
21474
21478
  });
21475
21479
  if (S) {
@@ -21652,21 +21656,21 @@ var ri = "_hp", u1 = {
21652
21656
  if (v.length > 0) {
21653
21657
  const N = s.querySelectorAll(t);
21654
21658
  e:
21655
- for (const T of N)
21659
+ for (const B of N)
21656
21660
  for (const V of Hi[t])
21657
- if (T.getAttribute(V) === e[V]) {
21658
- h = T;
21661
+ if (B.getAttribute(V) === e[V]) {
21662
+ h = B;
21659
21663
  break e;
21660
21664
  }
21661
21665
  if (!h) {
21662
- const T = v.reduce(
21663
- (V, te) => e[te] === void 0 ? V : `${V}-${te}-${e[te]}`,
21666
+ const B = v.reduce(
21667
+ (V, Q) => e[Q] === void 0 ? V : `${V}-${Q}-${e[Q]}`,
21664
21668
  t
21665
21669
  );
21666
- m = !Li[T], h = Li[T] || (Li[T] = (() => {
21670
+ m = !Li[B], h = Li[B] || (Li[B] = (() => {
21667
21671
  const V = document.createElement(t);
21668
- for (const te of v)
21669
- e[te] !== void 0 && V.setAttribute(te, e[te]), e.rel && V.setAttribute("rel", e.rel);
21672
+ for (const Q of v)
21673
+ e[Q] !== void 0 && V.setAttribute(Q, e[Q]), e.rel && V.setAttribute("rel", e.rel);
21670
21674
  return V;
21671
21675
  })());
21672
21676
  }
@@ -21676,23 +21680,23 @@ var ri = "_hp", u1 = {
21676
21680
  const _ = au(
21677
21681
  (N) => {
21678
21682
  if (v.length > 0) {
21679
- let T = !1;
21683
+ let B = !1;
21680
21684
  for (const V of s.querySelectorAll(t)) {
21681
- if (T && V.getAttribute(Ki) !== l) {
21685
+ if (B && V.getAttribute(Ki) !== l) {
21682
21686
  s.insertBefore(N, V);
21683
21687
  return;
21684
21688
  }
21685
- V.getAttribute(Ki) === l && (T = !0);
21689
+ V.getAttribute(Ki) === l && (B = !0);
21686
21690
  }
21687
21691
  s.appendChild(N);
21688
21692
  } else if (f) {
21689
- let T = !1;
21693
+ let B = !1;
21690
21694
  for (const V of f)
21691
21695
  if (V === N) {
21692
- T = !0;
21696
+ B = !0;
21693
21697
  break;
21694
21698
  }
21695
- T || s.insertBefore(
21699
+ B || s.insertBefore(
21696
21700
  N,
21697
21701
  s.contains(f[0]) ? f[0] : s.querySelector(t)
21698
21702
  ), f = void 0;
@@ -21700,13 +21704,13 @@ var ri = "_hp", u1 = {
21700
21704
  },
21701
21705
  [l]
21702
21706
  ), w = cu(e.ref, (N) => {
21703
- var te;
21704
- const T = v[0];
21707
+ var Q;
21708
+ const B = v[0];
21705
21709
  if (n === 2 && (N.innerHTML = ""), (m || f) && _(N), !c && !o)
21706
21710
  return;
21707
- let V = zn[te = N.getAttribute(T)] || (zn[te] = new Promise(
21708
- (pe, ue) => {
21709
- N.addEventListener("load", pe), N.addEventListener("error", ue);
21711
+ let V = zn[Q = N.getAttribute(B)] || (zn[Q] = new Promise(
21712
+ (ce, de) => {
21713
+ N.addEventListener("load", ce), N.addEventListener("error", de);
21710
21714
  }
21711
21715
  ));
21712
21716
  o && (V = V.then(o)), c && (V = V.catch(c)), V.catch(() => {
@@ -21715,8 +21719,8 @@ var ri = "_hp", u1 = {
21715
21719
  if (i && u === "render") {
21716
21720
  const N = Hi[t][0];
21717
21721
  if (e[N]) {
21718
- const T = e[N], V = zn[T] || (zn[T] = new Promise((te, pe) => {
21719
- _(h), h.addEventListener("load", te), h.addEventListener("error", pe);
21722
+ const B = e[N], V = zn[B] || (zn[B] = new Promise((Q, ce) => {
21723
+ _(h), h.addEventListener("load", Q), h.addEventListener("error", ce);
21720
21724
  }));
21721
21725
  w1(V);
21722
21726
  }
@@ -21921,7 +21925,7 @@ const Wg = (t) => {
21921
21925
  ]
21922
21926
  }
21923
21927
  );
21924
- }, O1 = new le().openapi(
21928
+ }, O1 = new ue().openapi(
21925
21929
  q({
21926
21930
  tags: ["login"],
21927
21931
  method: "get",
@@ -22118,7 +22122,7 @@ const Wg = (t) => {
22118
22122
  /* @__PURE__ */ y(en, { state: i })
22119
22123
  ] })
22120
22124
  ] });
22121
- }, T1 = new le().openapi(
22125
+ }, T1 = new ue().openapi(
22122
22126
  q({
22123
22127
  tags: ["login"],
22124
22128
  method: "get",
@@ -22295,7 +22299,7 @@ const Wg = (t) => {
22295
22299
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: e }),
22296
22300
  i ? /* @__PURE__ */ y(en, { state: i }) : ""
22297
22301
  ] });
22298
- }, P1 = new le().openapi(
22302
+ }, P1 = new ue().openapi(
22299
22303
  q({
22300
22304
  tags: ["login"],
22301
22305
  method: "get",
@@ -22513,7 +22517,7 @@ const Wg = (t) => {
22513
22517
  ]
22514
22518
  }
22515
22519
  );
22516
- }, R1 = new le().openapi(
22520
+ }, R1 = new ue().openapi(
22517
22521
  q({
22518
22522
  tags: ["login"],
22519
22523
  method: "get",
@@ -22713,7 +22717,7 @@ const Wg = (t) => {
22713
22717
  ] }),
22714
22718
  /* @__PURE__ */ y(en, { state: n })
22715
22719
  ] });
22716
- }, V1 = new le().openapi(
22720
+ }, V1 = new ue().openapi(
22717
22721
  q({
22718
22722
  tags: ["login"],
22719
22723
  method: "get",
@@ -22814,7 +22818,7 @@ const Wg = (t) => {
22814
22818
  }
22815
22819
  )
22816
22820
  ] })
22817
- ] }) }), M1 = new le().openapi(
22821
+ ] }) }), M1 = new ue().openapi(
22818
22822
  q({
22819
22823
  tags: ["login"],
22820
22824
  method: "get",
@@ -22892,7 +22896,7 @@ const Wg = (t) => {
22892
22896
  }
22893
22897
  );
22894
22898
  function z1(t) {
22895
- const e = new le();
22899
+ const e = new ue();
22896
22900
  e.use(async (r, i) => (r.env.data = Ks(r, t.dataAdapter), i()));
22897
22901
  const n = e.route("/check-account", M1).route("/enter-email", l1).route("/enter-code", O1).route("/enter-password", T1).route("/reset-password", R1).route("/forgot-password", V1).route("/signup", P1);
22898
22902
  return n.doc("/u/spec", {
@@ -23807,7 +23811,7 @@ U.init({
23807
23811
  }
23808
23812
  });
23809
23813
  function sB(t) {
23810
- const e = new le();
23814
+ const e = new ue();
23811
23815
  e.get("/", (s) => s.json({
23812
23816
  name: "authhero"
23813
23817
  }));