authhero 0.259.0 → 0.260.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
@@ -1480,7 +1480,7 @@ const It = o.object({
1480
1480
  email: o.string().optional(),
1481
1481
  login_count: o.number().default(0),
1482
1482
  identities: o.array(x1).optional()
1483
- }), _n = c0, BK = du.extend({
1483
+ }), mn = c0, BK = du.extend({
1484
1484
  login_count: o.number(),
1485
1485
  multifactor: o.array(o.string()).optional(),
1486
1486
  last_ip: o.string().optional(),
@@ -1876,12 +1876,12 @@ const P1 = o.object({
1876
1876
  created_at: !0,
1877
1877
  updated_at: !0
1878
1878
  });
1879
- var Ut = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(Ut || {}), an = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(an || {}), uu = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(uu || {});
1879
+ var Ht = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(Ht || {}), vn = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(vn || {}), uu = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(uu || {});
1880
1880
  const As = o.object({
1881
1881
  client_id: o.string(),
1882
1882
  act_as: o.string().optional(),
1883
- response_type: o.nativeEnum(Ut).optional(),
1884
- response_mode: o.nativeEnum(an).optional(),
1883
+ response_type: o.nativeEnum(Ht).optional(),
1884
+ response_mode: o.nativeEnum(vn).optional(),
1885
1885
  redirect_uri: o.string().optional(),
1886
1886
  audience: o.string().optional(),
1887
1887
  organization: o.string().optional(),
@@ -7576,11 +7576,11 @@ async function M0(t, { user: e, client: n, loginSession: r }) {
7576
7576
  session_id: i.id
7577
7577
  }), i;
7578
7578
  }
7579
- async function dn(t, e) {
7579
+ async function cn(t, e) {
7580
7580
  var m, y;
7581
7581
  const { authParams: n, client: r, ticketAuth: i } = e;
7582
7582
  let { user: s } = e;
7583
- const a = n.response_type || Ut.CODE, l = n.response_mode || an.QUERY;
7583
+ const a = n.response_type || Ht.CODE, l = n.response_mode || vn.QUERY;
7584
7584
  if (i) {
7585
7585
  if (!e.loginSession)
7586
7586
  throw new te(500, {
@@ -7623,7 +7623,7 @@ async function dn(t, e) {
7623
7623
  loginSession: e.loginSession
7624
7624
  })).id;
7625
7625
  }
7626
- if (!c && ((y = n.scope) != null && y.split(" ").includes("offline_access")) && ![Ut.TOKEN, Ut.CODE].includes(
7626
+ if (!c && ((y = n.scope) != null && y.split(" ").includes("offline_access")) && ![Ht.TOKEN, Ht.CODE].includes(
7627
7627
  a
7628
7628
  ) && !e.impersonatingUser && (c = (await D0(t, {
7629
7629
  user: s,
@@ -7631,7 +7631,7 @@ async function dn(t, e) {
7631
7631
  session_id: d,
7632
7632
  scope: n.scope,
7633
7633
  audience: n.audience
7634
- })).id), l === an.SAML_POST) {
7634
+ })).id), l === vn.SAML_POST) {
7635
7635
  if (!d)
7636
7636
  throw new S(500, {
7637
7637
  message: "Session ID not available for SAML response"
@@ -7659,7 +7659,7 @@ async function dn(t, e) {
7659
7659
  });
7660
7660
  if (u instanceof Response)
7661
7661
  return u;
7662
- if (l === an.WEB_MESSAGE) {
7662
+ if (l === vn.WEB_MESSAGE) {
7663
7663
  if (!n.redirect_uri)
7664
7664
  throw new te(400, {
7665
7665
  message: "Redirect URI not allowed for WEB_MESSAGE response mode."
@@ -7724,7 +7724,7 @@ async function dn(t, e) {
7724
7724
  async function I2(t, e) {
7725
7725
  var l, c, d, u, f, h;
7726
7726
  let { user: n } = e;
7727
- const r = e.responseType || Ut.TOKEN;
7727
+ const r = e.responseType || Ht.TOKEN;
7728
7728
  if (n && e.organization && !(await t.env.data.userOrganizations.list(
7729
7729
  e.client.tenant.id,
7730
7730
  {
@@ -7805,7 +7805,7 @@ async function I2(t, e) {
7805
7805
  return m;
7806
7806
  n = m;
7807
7807
  }
7808
- if (r === Ut.CODE) {
7808
+ if (r === Ht.CODE) {
7809
7809
  if (!n || !e.loginSession)
7810
7810
  throw new te(500, {
7811
7811
  message: "User and loginSession is required for code flow"
@@ -7857,7 +7857,7 @@ async function _u(t, e, n, r) {
7857
7857
  client: s,
7858
7858
  authParams: {
7859
7859
  client_id: cf,
7860
- response_type: Ut.TOKEN,
7860
+ response_type: Ht.TOKEN,
7861
7861
  scope: n
7862
7862
  }
7863
7863
  });
@@ -8626,7 +8626,7 @@ function gt(t) {
8626
8626
  };
8627
8627
  }
8628
8628
  const ff = It.extend({
8629
- users: o.array(_n)
8629
+ users: o.array(mn)
8630
8630
  }), H2 = It.extend({
8631
8631
  sessions: o.array(pu)
8632
8632
  }), K2 = It.extend({
@@ -8652,7 +8652,7 @@ const ff = It.extend({
8652
8652
  content: {
8653
8653
  "application/json": {
8654
8654
  schema: o.union([
8655
- o.array(_n),
8655
+ o.array(mn),
8656
8656
  ff
8657
8657
  ])
8658
8658
  }
@@ -8682,7 +8682,7 @@ const ff = It.extend({
8682
8682
  throw new S(500, {
8683
8683
  message: "Primary account not found"
8684
8684
  });
8685
- return t.json([_n.parse(m)]);
8685
+ return t.json([mn.parse(m)]);
8686
8686
  }
8687
8687
  const a = ["-_exists_:linked_to"];
8688
8688
  s && a.push(s);
@@ -8700,7 +8700,7 @@ const ff = It.extend({
8700
8700
  start: l.start,
8701
8701
  limit: l.limit
8702
8702
  })
8703
- ) : t.json(o.array(_n).parse(c));
8703
+ ) : t.json(o.array(mn).parse(c));
8704
8704
  }
8705
8705
  ).openapi(
8706
8706
  I({
@@ -8724,7 +8724,7 @@ const ff = It.extend({
8724
8724
  200: {
8725
8725
  content: {
8726
8726
  "application/json": {
8727
- schema: _n
8727
+ schema: mn
8728
8728
  }
8729
8729
  },
8730
8730
  description: "List of users"
@@ -8813,7 +8813,7 @@ const ff = It.extend({
8813
8813
  201: {
8814
8814
  content: {
8815
8815
  "application/json": {
8816
- schema: _n
8816
+ schema: mn
8817
8817
  }
8818
8818
  },
8819
8819
  description: "Status"
@@ -8875,7 +8875,7 @@ const ff = It.extend({
8875
8875
  }
8876
8876
  ]
8877
8877
  };
8878
- return t.json(_n.parse(v), {
8878
+ return t.json(mn.parse(v), {
8879
8879
  status: 201
8880
8880
  });
8881
8881
  } catch (m) {
@@ -9106,7 +9106,7 @@ const ff = It.extend({
9106
9106
  200: {
9107
9107
  content: {
9108
9108
  "application/json": {
9109
- schema: o.array(_n)
9109
+ schema: o.array(mn)
9110
9110
  }
9111
9111
  },
9112
9112
  description: "Status"
@@ -9124,7 +9124,7 @@ const ff = It.extend({
9124
9124
  const i = await t.env.data.users.get(t.var.tenant_id, e);
9125
9125
  if (!i)
9126
9126
  throw new S(404);
9127
- return t.json([_n.parse(i)]);
9127
+ return t.json([mn.parse(i)]);
9128
9128
  }
9129
9129
  ).openapi(
9130
9130
  I({
@@ -9957,9 +9957,9 @@ var hf;
9957
9957
  var Fe = Un(Te);
9958
9958
  if (!Fe)
9959
9959
  return;
9960
- var zt = it(Fe);
9961
- if (zt.isProviderFor(se, be))
9962
- return Ii(Te), zt;
9960
+ var Ft = it(Fe);
9961
+ if (Ft.isProviderFor(se, be))
9962
+ return Ii(Te), Ft;
9963
9963
  }
9964
9964
  }
9965
9965
  }
@@ -9982,8 +9982,8 @@ var hf;
9982
9982
  if (Fe !== Te) {
9983
9983
  if (!F(Fe))
9984
9984
  return !1;
9985
- var zt = ue.get(se);
9986
- F(zt) && (zt = new h(), ue.set(se, zt)), zt.set(be, Te);
9985
+ var Ft = ue.get(se);
9986
+ F(Ft) && (Ft = new h(), ue.set(se, Ft)), Ft.set(be, Te);
9987
9987
  }
9988
9988
  return !0;
9989
9989
  }
@@ -10063,13 +10063,13 @@ var hf;
10063
10063
  );
10064
10064
  if (F(be))
10065
10065
  return se;
10066
- for (var Te = be.keys(), Fe = rt(Te), zt = 0; ; ) {
10066
+ for (var Te = be.keys(), Fe = rt(Te), Ft = 0; ; ) {
10067
10067
  var Rp = Un(Fe);
10068
10068
  if (!Rp)
10069
- return se.length = zt, se;
10069
+ return se.length = Ft, se;
10070
10070
  var t1 = it(Rp);
10071
10071
  try {
10072
- se[zt] = t1;
10072
+ se[Ft] = t1;
10073
10073
  } catch (n1) {
10074
10074
  try {
10075
10075
  Ii(Fe);
@@ -10077,7 +10077,7 @@ var hf;
10077
10077
  throw n1;
10078
10078
  }
10079
10079
  }
10080
- zt++;
10080
+ Ft++;
10081
10081
  }
10082
10082
  }
10083
10083
  function X(ne, oe, se) {
@@ -10801,7 +10801,7 @@ class Sa {
10801
10801
  }
10802
10802
  }
10803
10803
  const Ri = [new Uint8Array([1])], mf = "0123456789", Bl = "name", _f = "valueHexView", tb = "isHexOnly", nb = "idBlock", rb = "tagClass", ib = "tagNumber", ob = "isConstructed", sb = "fromBER", ab = "toBER", lb = "local", St = "", Qt = new ArrayBuffer(0), Aa = new Uint8Array(0), ro = "EndOfContent", G0 = "OCTET STRING", W0 = "BIT STRING";
10804
- function pn(t) {
10804
+ function un(t) {
10805
10805
  var e;
10806
10806
  return e = class extends t {
10807
10807
  get valueHex() {
@@ -10868,7 +10868,7 @@ class bt extends Cr {
10868
10868
  }
10869
10869
  }
10870
10870
  bt.NAME = "valueBlock";
10871
- class J0 extends pn(Cr) {
10871
+ class J0 extends un(Cr) {
10872
10872
  constructor({ idBlock: e = {} } = {}) {
10873
10873
  var n, r, i, s;
10874
10874
  super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? W.toUint8Array(e.valueHex) : Aa, this.tagClass = (r = e.tagClass) !== null && r !== void 0 ? r : -1, this.tagNumber = (i = e.tagNumber) !== null && i !== void 0 ? i : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
@@ -11123,7 +11123,7 @@ class bu extends lt {
11123
11123
  }
11124
11124
  }
11125
11125
  bu.NAME = "BaseStringBlock";
11126
- class Y0 extends pn(bt) {
11126
+ class Y0 extends un(bt) {
11127
11127
  constructor({ isHexOnly: e = !0, ...n } = {}) {
11128
11128
  super(n), this.isHexOnly = e;
11129
11129
  }
@@ -11417,7 +11417,7 @@ class hr extends lt {
11417
11417
  rm = hr;
11418
11418
  Q.Null = rm;
11419
11419
  hr.NAME = "NULL";
11420
- class im extends pn(bt) {
11420
+ class im extends un(bt) {
11421
11421
  get value() {
11422
11422
  for (const e of this.valueHexView)
11423
11423
  if (e > 0)
@@ -11463,7 +11463,7 @@ let Ea = class extends lt {
11463
11463
  om = Ea;
11464
11464
  Q.Boolean = om;
11465
11465
  Ea.NAME = "BOOLEAN";
11466
- class sm extends pn(qn) {
11466
+ class sm extends un(qn) {
11467
11467
  constructor({ isConstructed: e = !1, ...n } = {}) {
11468
11468
  super(n), this.isConstructed = e;
11469
11469
  }
@@ -11546,7 +11546,7 @@ let cr = class extends lt {
11546
11546
  ku = cr;
11547
11547
  Q.OctetString = ku;
11548
11548
  cr.NAME = G0;
11549
- class am extends pn(qn) {
11549
+ class am extends un(qn) {
11550
11550
  constructor({ unusedBits: e = 0, isConstructed: n = !1, ...r } = {}) {
11551
11551
  super(r), this.unusedBits = e, this.isConstructed = n, this.blockLength = this.valueHexView.byteLength;
11552
11552
  }
@@ -11705,7 +11705,7 @@ function pb(t, e) {
11705
11705
  }
11706
11706
  return s.slice();
11707
11707
  }
11708
- class xu extends pn(bt) {
11708
+ class xu extends un(bt) {
11709
11709
  setValueHex() {
11710
11710
  this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = K0.call(this)));
11711
11711
  }
@@ -11832,7 +11832,7 @@ class Na extends wi {
11832
11832
  dm = Na;
11833
11833
  Q.Enumerated = dm;
11834
11834
  Na.NAME = "ENUMERATED";
11835
- class jc extends pn(bt) {
11835
+ class jc extends un(bt) {
11836
11836
  constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
11837
11837
  super(r), this.valueDec = e, this.isFirstSid = n;
11838
11838
  }
@@ -12007,7 +12007,7 @@ class Ca extends lt {
12007
12007
  pm = Ca;
12008
12008
  Q.ObjectIdentifier = pm;
12009
12009
  Ca.NAME = "OBJECT IDENTIFIER";
12010
- class Ic extends pn(Cr) {
12010
+ class Ic extends un(Cr) {
12011
12011
  constructor({ valueDec: e = 0, ...n } = {}) {
12012
12012
  super(n), this.valueDec = e;
12013
12013
  }
@@ -12150,15 +12150,15 @@ gm = Kt;
12150
12150
  Q.Sequence = gm;
12151
12151
  Kt.NAME = "SEQUENCE";
12152
12152
  var mm;
12153
- let ln = class extends vt {
12153
+ let an = class extends vt {
12154
12154
  constructor(e = {}) {
12155
12155
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
12156
12156
  }
12157
12157
  };
12158
- mm = ln;
12158
+ mm = an;
12159
12159
  Q.Set = mm;
12160
- ln.NAME = "SET";
12161
- class _m extends pn(bt) {
12160
+ an.NAME = "SET";
12161
+ class _m extends un(bt) {
12162
12162
  constructor({ ...e } = {}) {
12163
12163
  super(e), this.isHexOnly = !0, this.value = St;
12164
12164
  }
@@ -12828,7 +12828,7 @@ const Fm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12828
12828
  GeneralString: Ua,
12829
12829
  GeneralizedTime: Ma,
12830
12830
  GraphicString: La,
12831
- HexBlock: pn,
12831
+ HexBlock: un,
12832
12832
  IA5String: Ba,
12833
12833
  Integer: wi,
12834
12834
  Null: hr,
@@ -12841,7 +12841,7 @@ const Fm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12841
12841
  RelativeObjectIdentifier: Su,
12842
12842
  Repeated: Is,
12843
12843
  Sequence: Kt,
12844
- Set: ln,
12844
+ Set: an,
12845
12845
  TIME: ju,
12846
12846
  TeletexString: Pa,
12847
12847
  TimeOfDay: Eu,
@@ -12961,13 +12961,13 @@ const gb = {
12961
12961
  fromASN: (t) => new Se(t.getValue()),
12962
12962
  toASN: (t) => t.toASN()
12963
12963
  };
12964
- function Ft(t) {
12964
+ function Mt(t) {
12965
12965
  return {
12966
12966
  fromASN: (e) => e.valueBlock.value,
12967
12967
  toASN: (e) => new t({ value: e })
12968
12968
  };
12969
12969
  }
12970
- const zm = Ft(jn), $b = Ft(ja), kb = Ft(Ia), xb = Ft(Oa), Sb = Ft(Ta), Ab = Ft(Pa), Eb = Ft(Ra), Nb = Ft(Ba), Cb = Ft(La), jb = Ft(So), Ib = Ft(Ua), Ob = Ft(Da), Tb = {
12970
+ const zm = Mt(jn), $b = Mt(ja), kb = Mt(Ia), xb = Mt(Oa), Sb = Mt(Ta), Ab = Mt(Pa), Eb = Mt(Ra), Nb = Mt(Ba), Cb = Mt(La), jb = Mt(So), Ib = Mt(Ua), Ob = Mt(Da), Tb = {
12971
12971
  fromASN: (t) => t.toDate(),
12972
12972
  toASN: (t) => new Ao({ valueDate: t })
12973
12973
  }, Pb = {
@@ -13027,8 +13027,8 @@ function Wi(t) {
13027
13027
  return null;
13028
13028
  }
13029
13029
  }
13030
- function vn(t) {
13031
- return typeof t == "function" && t.prototype ? t.prototype.toASN && t.prototype.fromASN ? !0 : vn(t.prototype) : !!(t && typeof t == "object" && "toASN" in t && "fromASN" in t);
13030
+ function wn(t) {
13031
+ return typeof t == "function" && t.prototype ? t.prototype.toASN && t.prototype.fromASN ? !0 : wn(t.prototype) : !!(t && typeof t == "object" && "toASN" in t && "fromASN" in t);
13032
13032
  }
13033
13033
  function qm(t) {
13034
13034
  var e;
@@ -13080,11 +13080,11 @@ class Lb {
13080
13080
  if (!f)
13081
13081
  throw new Error(`Cannot get ASN1 class by name '${u}'`);
13082
13082
  c = new f({ name: l });
13083
- } else vn(a.type) ? c = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === U.Choice ? c = new gr({ name: l }) : (c = this.create(a.type, !1), c.name = l) : c = new gr({ name: l });
13083
+ } else wn(a.type) ? c = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === U.Choice ? c = new gr({ name: l }) : (c = this.create(a.type, !1), c.name = l) : c = new gr({ name: l });
13084
13084
  const d = !!a.optional || a.defaultValue !== void 0;
13085
13085
  if (a.repeated) {
13086
13086
  c.name = "";
13087
- const u = a.repeated === "set" ? ln : Kt;
13087
+ const u = a.repeated === "set" ? an : Kt;
13088
13088
  c = new u({
13089
13089
  name: "",
13090
13090
  value: [new Is({ name: l, value: c })]
@@ -13092,7 +13092,7 @@ class Lb {
13092
13092
  }
13093
13093
  if (a.context !== null && a.context !== void 0)
13094
13094
  if (a.implicit)
13095
- if (typeof a.type == "number" || vn(a.type)) {
13095
+ if (typeof a.type == "number" || wn(a.type)) {
13096
13096
  const u = a.repeated ? vt : xo;
13097
13097
  i.push(new u({ name: l, optional: d, idBlock: { tagClass: 3, tagNumber: a.context } }));
13098
13098
  } else {
@@ -13119,7 +13119,7 @@ class Lb {
13119
13119
  case U.Sequence:
13120
13120
  return new Kt({ value: i, name: "" });
13121
13121
  case U.Set:
13122
- return new ln({ value: i, name: "" });
13122
+ return new an({ value: i, name: "" });
13123
13123
  case U.Choice:
13124
13124
  return new Iu({ value: i, name: "" });
13125
13125
  default:
@@ -13163,7 +13163,7 @@ class Ub {
13163
13163
  }
13164
13164
  static fromASN(e, n) {
13165
13165
  try {
13166
- if (vn(n))
13166
+ if (wn(n))
13167
13167
  return new n().fromASN(e);
13168
13168
  const r = Ze.get(n);
13169
13169
  Ze.cache(n);
@@ -13311,19 +13311,19 @@ class Ub {
13311
13311
  if (!s)
13312
13312
  continue;
13313
13313
  const a = e.items[i], l = a.type;
13314
- typeof l == "number" || vn(l) ? r[i] = this.processPrimitiveSchemaItem(s, a, l) : r[i] = this.processComplexSchemaItem(s, a, l);
13314
+ typeof l == "number" || wn(l) ? r[i] = this.processPrimitiveSchemaItem(s, a, l) : r[i] = this.processComplexSchemaItem(s, a, l);
13315
13315
  }
13316
13316
  }
13317
13317
  static processPrimitiveSchemaItem(e, n, r) {
13318
13318
  var i;
13319
- const s = (i = n.converter) !== null && i !== void 0 ? i : vn(r) ? new r() : null;
13319
+ const s = (i = n.converter) !== null && i !== void 0 ? i : wn(r) ? new r() : null;
13320
13320
  if (!s)
13321
13321
  throw new Error("Converter is empty");
13322
13322
  return n.repeated ? this.processRepeatedPrimitiveItem(e, n, s) : this.processSinglePrimitiveItem(e, n, r, s);
13323
13323
  }
13324
13324
  static processRepeatedPrimitiveItem(e, n, r) {
13325
13325
  if (n.implicit) {
13326
- const i = n.repeated === "sequence" ? Kt : ln, s = new i();
13326
+ const i = n.repeated === "sequence" ? Kt : an, s = new i();
13327
13327
  s.valueBlock = e.valueBlock;
13328
13328
  const a = Wr(s.toBER(!1));
13329
13329
  if (a.offset === -1)
@@ -13339,7 +13339,7 @@ class Ub {
13339
13339
  let s = e;
13340
13340
  if (n.implicit) {
13341
13341
  let a;
13342
- if (vn(r))
13342
+ if (wn(r))
13343
13343
  a = new r().toSchema("");
13344
13344
  else {
13345
13345
  const l = x[r], c = Fm[l];
@@ -13378,7 +13378,7 @@ class Ub {
13378
13378
  if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
13379
13379
  return s.valueBlock.value = e.valueBlock.value, s;
13380
13380
  } else if (i.type === U.Set) {
13381
- const s = new ln();
13381
+ const s = new an();
13382
13382
  if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
13383
13383
  return s.valueBlock.value = e.valueBlock.value, s;
13384
13384
  }
@@ -13391,7 +13391,7 @@ class Ou {
13391
13391
  return e instanceof lt ? e.toBER(!1) : this.toASN(e).toBER(!1);
13392
13392
  }
13393
13393
  static toASN(e) {
13394
- if (e && typeof e == "object" && vn(e))
13394
+ if (e && typeof e == "object" && wn(e))
13395
13395
  return e.toASN();
13396
13396
  if (!(e && typeof e == "object"))
13397
13397
  throw new TypeError("Parameter 1 should be type of Object.");
@@ -13416,7 +13416,7 @@ class Ou {
13416
13416
  const d = Ou.toAsnItem(l, a, n, c);
13417
13417
  if (typeof l.context == "number")
13418
13418
  if (l.implicit)
13419
- if (!l.repeated && (typeof l.type == "number" || vn(l.type))) {
13419
+ if (!l.repeated && (typeof l.type == "number" || wn(l.type))) {
13420
13420
  const u = {};
13421
13421
  u.valueHex = d instanceof hr ? d.valueBeforeDecodeView : d.valueBlock.toBER(), i.push(new xo({
13422
13422
  optional: l.optional,
@@ -13452,7 +13452,7 @@ class Ou {
13452
13452
  s = new Kt({ value: i });
13453
13453
  break;
13454
13454
  case U.Set:
13455
- s = new ln({ value: i });
13455
+ s = new an({ value: i });
13456
13456
  break;
13457
13457
  case U.Choice:
13458
13458
  if (!i[0])
@@ -13471,7 +13471,7 @@ class Ou {
13471
13471
  if (e.repeated) {
13472
13472
  if (!Array.isArray(i))
13473
13473
  throw new TypeError("Parameter 'objProp' should be type of Array.");
13474
- const l = Array.from(i, (d) => a.toASN(d)), c = e.repeated === "sequence" ? Kt : ln;
13474
+ const l = Array.from(i, (d) => a.toASN(d)), c = e.repeated === "sequence" ? Kt : an;
13475
13475
  s = new c({
13476
13476
  value: l
13477
13477
  });
@@ -13480,7 +13480,7 @@ class Ou {
13480
13480
  } else if (e.repeated) {
13481
13481
  if (!Array.isArray(i))
13482
13482
  throw new TypeError("Parameter 'objProp' should be type of Array.");
13483
- const a = Array.from(i, (c) => this.toASN(c)), l = e.repeated === "sequence" ? Kt : ln;
13483
+ const a = Array.from(i, (c) => this.toASN(c)), l = e.repeated === "sequence" ? Kt : an;
13484
13484
  s = new l({
13485
13485
  value: a
13486
13486
  });
@@ -13952,14 +13952,14 @@ Sf = g([
13952
13952
  ], Sf);
13953
13953
  var zc;
13954
13954
  const qc = `${In}.31`;
13955
- var qt;
13955
+ var zt;
13956
13956
  (function(t) {
13957
13957
  t[t.unused = 1] = "unused", t[t.keyCompromise = 2] = "keyCompromise", t[t.cACompromise = 4] = "cACompromise", t[t.affiliationChanged = 8] = "affiliationChanged", t[t.superseded = 16] = "superseded", t[t.cessationOfOperation = 32] = "cessationOfOperation", t[t.certificateHold = 64] = "certificateHold", t[t.privilegeWithdrawn = 128] = "privilegeWithdrawn", t[t.aACompromise = 256] = "aACompromise";
13958
- })(qt || (qt = {}));
13958
+ })(zt || (zt = {}));
13959
13959
  class Km extends Fa {
13960
13960
  toJSON() {
13961
13961
  const e = [], n = this.toNumber();
13962
- return n & qt.aACompromise && e.push("aACompromise"), n & qt.affiliationChanged && e.push("affiliationChanged"), n & qt.cACompromise && e.push("cACompromise"), n & qt.certificateHold && e.push("certificateHold"), n & qt.cessationOfOperation && e.push("cessationOfOperation"), n & qt.keyCompromise && e.push("keyCompromise"), n & qt.privilegeWithdrawn && e.push("privilegeWithdrawn"), n & qt.superseded && e.push("superseded"), n & qt.unused && e.push("unused"), e;
13962
+ return n & zt.aACompromise && e.push("aACompromise"), n & zt.affiliationChanged && e.push("affiliationChanged"), n & zt.cACompromise && e.push("cACompromise"), n & zt.certificateHold && e.push("certificateHold"), n & zt.cessationOfOperation && e.push("cessationOfOperation"), n & zt.keyCompromise && e.push("keyCompromise"), n & zt.privilegeWithdrawn && e.push("privilegeWithdrawn"), n & zt.superseded && e.push("superseded"), n & zt.unused && e.push("unused"), e;
13963
13963
  }
13964
13964
  toString() {
13965
13965
  return `[${this.toJSON().join(", ")}]`;
@@ -14119,14 +14119,14 @@ Ef = Jc = g([
14119
14119
  z({ type: U.Sequence })
14120
14120
  ], Ef);
14121
14121
  const Jm = `${In}.15`;
14122
- var Vt;
14122
+ var qt;
14123
14123
  (function(t) {
14124
14124
  t[t.digitalSignature = 1] = "digitalSignature", t[t.nonRepudiation = 2] = "nonRepudiation", t[t.keyEncipherment = 4] = "keyEncipherment", t[t.dataEncipherment = 8] = "dataEncipherment", t[t.keyAgreement = 16] = "keyAgreement", t[t.keyCertSign = 32] = "keyCertSign", t[t.cRLSign = 64] = "cRLSign", t[t.encipherOnly = 128] = "encipherOnly", t[t.decipherOnly = 256] = "decipherOnly";
14125
- })(Vt || (Vt = {}));
14125
+ })(qt || (qt = {}));
14126
14126
  class Ll extends Fa {
14127
14127
  toJSON() {
14128
14128
  const e = this.toNumber(), n = [];
14129
- return e & Vt.cRLSign && n.push("crlSign"), e & Vt.dataEncipherment && n.push("dataEncipherment"), e & Vt.decipherOnly && n.push("decipherOnly"), e & Vt.digitalSignature && n.push("digitalSignature"), e & Vt.encipherOnly && n.push("encipherOnly"), e & Vt.keyAgreement && n.push("keyAgreement"), e & Vt.keyCertSign && n.push("keyCertSign"), e & Vt.keyEncipherment && n.push("keyEncipherment"), e & Vt.nonRepudiation && n.push("nonRepudiation"), n;
14129
+ return e & qt.cRLSign && n.push("crlSign"), e & qt.dataEncipherment && n.push("dataEncipherment"), e & qt.decipherOnly && n.push("decipherOnly"), e & qt.digitalSignature && n.push("digitalSignature"), e & qt.encipherOnly && n.push("encipherOnly"), e & qt.keyAgreement && n.push("keyAgreement"), e & qt.keyCertSign && n.push("keyCertSign"), e & qt.keyEncipherment && n.push("keyEncipherment"), e & qt.nonRepudiation && n.push("nonRepudiation"), n;
14130
14130
  }
14131
14131
  toString() {
14132
14132
  return `[${this.toJSON().join(", ")}]`;
@@ -14305,17 +14305,17 @@ g([
14305
14305
  optional: !0
14306
14306
  })
14307
14307
  ], Z.prototype, "parameters", void 0);
14308
- class Ht {
14308
+ class Vt {
14309
14309
  constructor(e = {}) {
14310
14310
  this.algorithm = new Z(), this.subjectPublicKey = new ArrayBuffer(0), Object.assign(this, e);
14311
14311
  }
14312
14312
  }
14313
14313
  g([
14314
14314
  _({ type: Z })
14315
- ], Ht.prototype, "algorithm", void 0);
14315
+ ], Vt.prototype, "algorithm", void 0);
14316
14316
  g([
14317
14317
  _({ type: x.BitString })
14318
- ], Ht.prototype, "subjectPublicKey", void 0);
14318
+ ], Vt.prototype, "subjectPublicKey", void 0);
14319
14319
  let st = class {
14320
14320
  constructor(e) {
14321
14321
  if (e)
@@ -14357,31 +14357,31 @@ g([
14357
14357
  _({ type: st })
14358
14358
  ], No.prototype, "notAfter", void 0);
14359
14359
  var nd;
14360
- let Dt = class r_ {
14360
+ let Ut = class r_ {
14361
14361
  constructor(e = {}) {
14362
14362
  this.extnID = "", this.critical = r_.CRITICAL, this.extnValue = new Se(), Object.assign(this, e);
14363
14363
  }
14364
14364
  };
14365
- Dt.CRITICAL = !1;
14365
+ Ut.CRITICAL = !1;
14366
14366
  g([
14367
14367
  _({ type: x.ObjectIdentifier })
14368
- ], Dt.prototype, "extnID", void 0);
14368
+ ], Ut.prototype, "extnID", void 0);
14369
14369
  g([
14370
14370
  _({
14371
14371
  type: x.Boolean,
14372
- defaultValue: Dt.CRITICAL
14372
+ defaultValue: Ut.CRITICAL
14373
14373
  })
14374
- ], Dt.prototype, "critical", void 0);
14374
+ ], Ut.prototype, "critical", void 0);
14375
14375
  g([
14376
14376
  _({ type: Se })
14377
- ], Dt.prototype, "extnValue", void 0);
14377
+ ], Ut.prototype, "extnValue", void 0);
14378
14378
  let Gn = nd = class extends Ne {
14379
14379
  constructor(e) {
14380
14380
  super(e), Object.setPrototypeOf(this, nd.prototype);
14381
14381
  }
14382
14382
  };
14383
14383
  Gn = nd = g([
14384
- z({ type: U.Sequence, itemType: Dt })
14384
+ z({ type: U.Sequence, itemType: Ut })
14385
14385
  ], Gn);
14386
14386
  var _r;
14387
14387
  (function(t) {
@@ -14389,7 +14389,7 @@ var _r;
14389
14389
  })(_r || (_r = {}));
14390
14390
  class Tt {
14391
14391
  constructor(e = {}) {
14392
- this.version = _r.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new Z(), this.issuer = new He(), this.validity = new No(), this.subject = new He(), this.subjectPublicKeyInfo = new Ht(), Object.assign(this, e);
14392
+ this.version = _r.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new Z(), this.issuer = new He(), this.validity = new No(), this.subject = new He(), this.subjectPublicKeyInfo = new Vt(), Object.assign(this, e);
14393
14393
  }
14394
14394
  }
14395
14395
  g([
@@ -14418,7 +14418,7 @@ g([
14418
14418
  _({ type: He })
14419
14419
  ], Tt.prototype, "subject", void 0);
14420
14420
  g([
14421
- _({ type: Ht })
14421
+ _({ type: Vt })
14422
14422
  ], Tt.prototype, "subjectPublicKeyInfo", void 0);
14423
14423
  g([
14424
14424
  _({
@@ -14460,7 +14460,7 @@ g([
14460
14460
  _({ type: st })
14461
14461
  ], Ka.prototype, "revocationDate", void 0);
14462
14462
  g([
14463
- _({ type: Dt, optional: !0, repeated: "sequence" })
14463
+ _({ type: Ut, optional: !0, repeated: "sequence" })
14464
14464
  ], Ka.prototype, "crlEntryExtensions", void 0);
14465
14465
  class On {
14466
14466
  constructor(e = {}) {
@@ -14486,7 +14486,7 @@ g([
14486
14486
  _({ type: Ka, repeated: "sequence", optional: !0 })
14487
14487
  ], On.prototype, "revokedCertificates", void 0);
14488
14488
  g([
14489
- _({ type: Dt, optional: !0, context: 0, repeated: "sequence" })
14489
+ _({ type: Ut, optional: !0, context: 0, repeated: "sequence" })
14490
14490
  ], On.prototype, "crlExtensions", void 0);
14491
14491
  class Mu {
14492
14492
  constructor(e = {}) {
@@ -14541,11 +14541,11 @@ let Ds = class extends Z {
14541
14541
  Ds = g([
14542
14542
  z({ type: U.Sequence })
14543
14543
  ], Ds);
14544
- let un = class extends Z {
14544
+ let dn = class extends Z {
14545
14545
  };
14546
- un = g([
14546
+ dn = g([
14547
14547
  z({ type: U.Sequence })
14548
- ], un);
14548
+ ], dn);
14549
14549
  let Ms = class extends Z {
14550
14550
  };
14551
14551
  Ms = g([
@@ -14573,46 +14573,46 @@ g([
14573
14573
  _({ type: x.Any, repeated: "set" })
14574
14574
  ], ki.prototype, "attrValues", void 0);
14575
14575
  var id;
14576
- class fn {
14576
+ class pn {
14577
14577
  constructor(e = {}) {
14578
14578
  this.version = kn.v0, this.sid = new oi(), this.digestAlgorithm = new oo(), this.signatureAlgorithm = new Ds(), this.signature = new Se(), Object.assign(this, e);
14579
14579
  }
14580
14580
  }
14581
14581
  g([
14582
14582
  _({ type: x.Integer })
14583
- ], fn.prototype, "version", void 0);
14583
+ ], pn.prototype, "version", void 0);
14584
14584
  g([
14585
14585
  _({ type: oi })
14586
- ], fn.prototype, "sid", void 0);
14586
+ ], pn.prototype, "sid", void 0);
14587
14587
  g([
14588
14588
  _({ type: oo })
14589
- ], fn.prototype, "digestAlgorithm", void 0);
14589
+ ], pn.prototype, "digestAlgorithm", void 0);
14590
14590
  g([
14591
14591
  _({ type: ki, repeated: "set", context: 0, implicit: !0, optional: !0 })
14592
- ], fn.prototype, "signedAttrs", void 0);
14592
+ ], pn.prototype, "signedAttrs", void 0);
14593
14593
  g([
14594
14594
  _({ type: Ds })
14595
- ], fn.prototype, "signatureAlgorithm", void 0);
14595
+ ], pn.prototype, "signatureAlgorithm", void 0);
14596
14596
  g([
14597
14597
  _({ type: Se })
14598
- ], fn.prototype, "signature", void 0);
14598
+ ], pn.prototype, "signature", void 0);
14599
14599
  g([
14600
14600
  _({ type: ki, repeated: "set", context: 1, implicit: !0, optional: !0 })
14601
- ], fn.prototype, "unsignedAttrs", void 0);
14601
+ ], pn.prototype, "unsignedAttrs", void 0);
14602
14602
  let Fs = id = class extends Ne {
14603
14603
  constructor(e) {
14604
14604
  super(e), Object.setPrototypeOf(this, id.prototype);
14605
14605
  }
14606
14606
  };
14607
14607
  Fs = id = g([
14608
- z({ type: U.Set, itemType: fn })
14608
+ z({ type: U.Set, itemType: pn })
14609
14609
  ], Fs);
14610
14610
  let Of = class extends st {
14611
14611
  };
14612
14612
  Of = g([
14613
14613
  z({ type: U.Choice })
14614
14614
  ], Of);
14615
- let Tf = class extends fn {
14615
+ let Tf = class extends pn {
14616
14616
  };
14617
14617
  Tf = g([
14618
14618
  z({ type: U.Sequence })
@@ -15122,7 +15122,7 @@ wr = g([
15122
15122
  ], wr);
15123
15123
  class Si {
15124
15124
  constructor(e = {}) {
15125
- this.version = kn.v3, this.originator = new wr(), this.keyEncryptionAlgorithm = new un(), this.recipientEncryptedKeys = new Hs(), Object.assign(this, e);
15125
+ this.version = kn.v3, this.originator = new wr(), this.keyEncryptionAlgorithm = new dn(), this.recipientEncryptedKeys = new Hs(), Object.assign(this, e);
15126
15126
  }
15127
15127
  }
15128
15128
  g([
@@ -15135,7 +15135,7 @@ g([
15135
15135
  _({ type: Se, context: 1, optional: !0 })
15136
15136
  ], Si.prototype, "ukm", void 0);
15137
15137
  g([
15138
- _({ type: un })
15138
+ _({ type: dn })
15139
15139
  ], Si.prototype, "keyEncryptionAlgorithm", void 0);
15140
15140
  g([
15141
15141
  _({ type: Hs })
@@ -15156,7 +15156,7 @@ di = g([
15156
15156
  ], di);
15157
15157
  class Io {
15158
15158
  constructor(e = {}) {
15159
- this.version = kn.v0, this.rid = new di(), this.keyEncryptionAlgorithm = new un(), this.encryptedKey = new Se(), Object.assign(this, e);
15159
+ this.version = kn.v0, this.rid = new di(), this.keyEncryptionAlgorithm = new dn(), this.encryptedKey = new Se(), Object.assign(this, e);
15160
15160
  }
15161
15161
  }
15162
15162
  g([
@@ -15166,7 +15166,7 @@ g([
15166
15166
  _({ type: di })
15167
15167
  ], Io.prototype, "rid", void 0);
15168
15168
  g([
15169
- _({ type: un })
15169
+ _({ type: dn })
15170
15170
  ], Io.prototype, "keyEncryptionAlgorithm", void 0);
15171
15171
  g([
15172
15172
  _({ type: Se })
@@ -15187,7 +15187,7 @@ g([
15187
15187
  ], Oo.prototype, "other", void 0);
15188
15188
  class To {
15189
15189
  constructor(e = {}) {
15190
- this.version = kn.v4, this.kekid = new Oo(), this.keyEncryptionAlgorithm = new un(), this.encryptedKey = new Se(), Object.assign(this, e);
15190
+ this.version = kn.v4, this.kekid = new Oo(), this.keyEncryptionAlgorithm = new dn(), this.encryptedKey = new Se(), Object.assign(this, e);
15191
15191
  }
15192
15192
  }
15193
15193
  g([
@@ -15197,14 +15197,14 @@ g([
15197
15197
  _({ type: Oo })
15198
15198
  ], To.prototype, "kekid", void 0);
15199
15199
  g([
15200
- _({ type: un })
15200
+ _({ type: dn })
15201
15201
  ], To.prototype, "keyEncryptionAlgorithm", void 0);
15202
15202
  g([
15203
15203
  _({ type: Se })
15204
15204
  ], To.prototype, "encryptedKey", void 0);
15205
15205
  class Po {
15206
15206
  constructor(e = {}) {
15207
- this.version = kn.v0, this.keyEncryptionAlgorithm = new un(), this.encryptedKey = new Se(), Object.assign(this, e);
15207
+ this.version = kn.v0, this.keyEncryptionAlgorithm = new dn(), this.encryptedKey = new Se(), Object.assign(this, e);
15208
15208
  }
15209
15209
  }
15210
15210
  g([
@@ -15214,7 +15214,7 @@ g([
15214
15214
  _({ type: rd, context: 0, optional: !0 })
15215
15215
  ], Po.prototype, "keyDerivationAlgorithm", void 0);
15216
15216
  g([
15217
- _({ type: un })
15217
+ _({ type: dn })
15218
15218
  ], Po.prototype, "keyEncryptionAlgorithm", void 0);
15219
15219
  g([
15220
15220
  _({ type: Se })
@@ -15611,41 +15611,41 @@ let $d = bd = class extends Ne {
15611
15611
  $d = bd = g([
15612
15612
  z({ type: U.Sequence, itemType: al })
15613
15613
  ], $d);
15614
- class hn {
15614
+ class fn {
15615
15615
  constructor(e = {}) {
15616
15616
  this.version = 0, this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), this.privateExponent = new ArrayBuffer(0), this.prime1 = new ArrayBuffer(0), this.prime2 = new ArrayBuffer(0), this.exponent1 = new ArrayBuffer(0), this.exponent2 = new ArrayBuffer(0), this.coefficient = new ArrayBuffer(0), Object.assign(this, e);
15617
15617
  }
15618
15618
  }
15619
15619
  g([
15620
15620
  _({ type: x.Integer })
15621
- ], hn.prototype, "version", void 0);
15621
+ ], fn.prototype, "version", void 0);
15622
15622
  g([
15623
15623
  _({ type: x.Integer, converter: Pe })
15624
- ], hn.prototype, "modulus", void 0);
15624
+ ], fn.prototype, "modulus", void 0);
15625
15625
  g([
15626
15626
  _({ type: x.Integer, converter: Pe })
15627
- ], hn.prototype, "publicExponent", void 0);
15627
+ ], fn.prototype, "publicExponent", void 0);
15628
15628
  g([
15629
15629
  _({ type: x.Integer, converter: Pe })
15630
- ], hn.prototype, "privateExponent", void 0);
15630
+ ], fn.prototype, "privateExponent", void 0);
15631
15631
  g([
15632
15632
  _({ type: x.Integer, converter: Pe })
15633
- ], hn.prototype, "prime1", void 0);
15633
+ ], fn.prototype, "prime1", void 0);
15634
15634
  g([
15635
15635
  _({ type: x.Integer, converter: Pe })
15636
- ], hn.prototype, "prime2", void 0);
15636
+ ], fn.prototype, "prime2", void 0);
15637
15637
  g([
15638
15638
  _({ type: x.Integer, converter: Pe })
15639
- ], hn.prototype, "exponent1", void 0);
15639
+ ], fn.prototype, "exponent1", void 0);
15640
15640
  g([
15641
15641
  _({ type: x.Integer, converter: Pe })
15642
- ], hn.prototype, "exponent2", void 0);
15642
+ ], fn.prototype, "exponent2", void 0);
15643
15643
  g([
15644
15644
  _({ type: x.Integer, converter: Pe })
15645
- ], hn.prototype, "coefficient", void 0);
15645
+ ], fn.prototype, "coefficient", void 0);
15646
15646
  g([
15647
15647
  _({ type: $d, optional: !0 })
15648
- ], hn.prototype, "otherPrimeInfos", void 0);
15648
+ ], fn.prototype, "otherPrimeInfos", void 0);
15649
15649
  class ep {
15650
15650
  constructor(e = {}) {
15651
15651
  this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), Object.assign(this, e);
@@ -16505,7 +16505,7 @@ g([
16505
16505
  Dd = g([
16506
16506
  z({ type: U.Choice })
16507
16507
  ], Dd);
16508
- let Qf = class extends fn {
16508
+ let Qf = class extends pn {
16509
16509
  };
16510
16510
  Qf = g([
16511
16511
  z({ type: U.Sequence })
@@ -16569,7 +16569,7 @@ la = zd = g([
16569
16569
  ], la);
16570
16570
  class Ei {
16571
16571
  constructor(e = {}) {
16572
- this.version = 0, this.subject = new He(), this.subjectPKInfo = new Ht(), this.attributes = new la(), Object.assign(this, e);
16572
+ this.version = 0, this.subject = new He(), this.subjectPKInfo = new Vt(), this.attributes = new la(), Object.assign(this, e);
16573
16573
  }
16574
16574
  }
16575
16575
  g([
@@ -16579,7 +16579,7 @@ g([
16579
16579
  _({ type: He })
16580
16580
  ], Ei.prototype, "subject", void 0);
16581
16581
  g([
16582
- _({ type: Ht })
16582
+ _({ type: Vt })
16583
16583
  ], Ei.prototype, "subjectPKInfo", void 0);
16584
16584
  g([
16585
16585
  _({ type: la, implicit: !0, context: 0 })
@@ -16962,11 +16962,11 @@ Qn.NAME = "ASN";
16962
16962
  class Pt extends Qn {
16963
16963
  constructor(...e) {
16964
16964
  let n;
16965
- W.isBufferSource(e[0]) ? n = W.toArrayBuffer(e[0]) : n = H.serialize(new Dt({
16965
+ W.isBufferSource(e[0]) ? n = W.toArrayBuffer(e[0]) : n = H.serialize(new Ut({
16966
16966
  extnID: e[0],
16967
16967
  critical: e[1],
16968
16968
  extnValue: new Se(W.toArrayBuffer(e[2]))
16969
- })), super(n, Dt);
16969
+ })), super(n, Ut);
16970
16970
  }
16971
16971
  onInit(e) {
16972
16972
  this.type = e.extnID, this.critical = e.critical, this.value = e.extnValue.buffer;
@@ -17497,13 +17497,13 @@ class Gt extends Sn {
17497
17497
  }
17498
17498
  }
17499
17499
  constructor(e) {
17500
- Sn.isAsnEncoded(e) ? super(e, Ht) : super(e), this.tag = jt.PublicKeyTag;
17500
+ Sn.isAsnEncoded(e) ? super(e, Vt) : super(e), this.tag = jt.PublicKeyTag;
17501
17501
  }
17502
17502
  async export(...e) {
17503
17503
  let n, r = ["verify"], i = { hash: "SHA-256", ...this.algorithm };
17504
17504
  e.length > 1 ? (i = e[0] || i, r = e[1] || r, n = e[2] || ot.get()) : n = e[0] || ot.get();
17505
17505
  let s = this.rawData;
17506
- const a = H.parse(this.rawData, Ht);
17506
+ const a = H.parse(this.rawData, Vt);
17507
17507
  return a.algorithm.algorithm === Zi && (s = U3(a, s)), n.subtle.importKey("spki", s, i, !0, r);
17508
17508
  }
17509
17509
  onInit(e) {
@@ -17524,11 +17524,11 @@ class Gt extends Sn {
17524
17524
  async getKeyIdentifier(...e) {
17525
17525
  let n, r = "SHA-1";
17526
17526
  e.length === 1 ? typeof e[0] == "string" ? (r = e[0], n = ot.get()) : n = e[0] : e.length === 2 ? (r = e[0], n = e[1]) : n = ot.get();
17527
- const i = H.parse(this.rawData, Ht);
17527
+ const i = H.parse(this.rawData, Vt);
17528
17528
  return await n.subtle.digest(r, i.subjectPublicKey);
17529
17529
  }
17530
17530
  toTextObject() {
17531
- const e = this.toTextObjectEmpty(), n = H.parse(this.rawData, Ht);
17531
+ const e = this.toTextObjectEmpty(), n = H.parse(this.rawData, Vt);
17532
17532
  switch (e.Algorithm = xr.serializeAlgorithm(n.algorithm), n.algorithm.algorithm) {
17533
17533
  case lo:
17534
17534
  e["EC Point"] = n.subjectPublicKey;
@@ -17878,7 +17878,7 @@ class ap extends Ni {
17878
17878
  else {
17879
17879
  const r = e[0], i = new Gn();
17880
17880
  for (const s of r)
17881
- i.push(H.parse(s.rawData, Dt));
17881
+ i.push(H.parse(s.rawData, Ut));
17882
17882
  super(rp, [H.serialize(i)]);
17883
17883
  }
17884
17884
  (n = this.items) !== null && n !== void 0 || (this.items = []);
@@ -18312,8 +18312,8 @@ class F3 {
18312
18312
  notBefore: a,
18313
18313
  notAfter: l
18314
18314
  }),
18315
- extensions: new Gn(((r = e.extensions) === null || r === void 0 ? void 0 : r.map((b) => H.parse(b.rawData, Dt))) || []),
18316
- subjectPublicKeyInfo: H.parse(i, Ht)
18315
+ extensions: new Gn(((r = e.extensions) === null || r === void 0 ? void 0 : r.map((b) => H.parse(b.rawData, Ut))) || []),
18316
+ subjectPublicKeyInfo: H.parse(i, Vt)
18317
18317
  })
18318
18318
  });
18319
18319
  if (e.subject) {
@@ -24721,7 +24721,7 @@ async function sg(t, { code: e, state: n }) {
24721
24721
  isSocial: !0,
24722
24722
  ip: t.var.ip
24723
24723
  });
24724
- return dn(t, {
24724
+ return cn(t, {
24725
24725
  client: a,
24726
24726
  authParams: s.authParams,
24727
24727
  loginSession: s,
@@ -25364,7 +25364,7 @@ async function Ik(t, e) {
25364
25364
  state: r.state,
25365
25365
  nonce: r.nonce,
25366
25366
  // Ensure WEB_MESSAGE is explicitly passed, as createAuthResponse relies on it
25367
- response_mode: an.WEB_MESSAGE,
25367
+ response_mode: vn.WEB_MESSAGE,
25368
25368
  // Pass through other relevant authParams from the loginSession or original request if necessary
25369
25369
  // For authorization_code grant, these are usually fixed or derived, not directly from params
25370
25370
  client_id: n.client_id,
@@ -25431,7 +25431,7 @@ async function Tk(t, e) {
25431
25431
  client_id: n.client_id,
25432
25432
  audience: s == null ? void 0 : s.audience,
25433
25433
  scope: s == null ? void 0 : s.scopes,
25434
- response_mode: an.WEB_MESSAGE
25434
+ response_mode: vn.WEB_MESSAGE
25435
25435
  }
25436
25436
  };
25437
25437
  }
@@ -26567,7 +26567,7 @@ function wo(t) {
26567
26567
  return n.__proto__ || Object.getPrototypeOf(n);
26568
26568
  }, wo(t);
26569
26569
  }
26570
- var yn = /* @__PURE__ */ function(t) {
26570
+ var _n = /* @__PURE__ */ function(t) {
26571
26571
  V5(n, t);
26572
26572
  var e = H5(n);
26573
26573
  function n(r) {
@@ -26769,7 +26769,7 @@ function h6(t) {
26769
26769
  function g6(t, e) {
26770
26770
  var n = e.extractFormattedPhoneNumber, r = f6(t);
26771
26771
  if (!h6(r))
26772
- throw new yn("NOT_A_NUMBER");
26772
+ throw new _n("NOT_A_NUMBER");
26773
26773
  var i;
26774
26774
  if (r === null)
26775
26775
  i = n(t) || "";
@@ -26787,27 +26787,27 @@ function g6(t, e) {
26787
26787
  var m6 = 250, _6 = new RegExp("[" + bp + Zt + "]"), y6 = new RegExp("[^" + Zt + "#]+$");
26788
26788
  function w6(t, e, n) {
26789
26789
  if (e = e || {}, n = new $t(n), e.defaultCountry && !n.hasCountry(e.defaultCountry))
26790
- throw e.v2 ? new yn("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
26790
+ throw e.v2 ? new _n("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
26791
26791
  var r = b6(t, e.v2, e.extract), i = r.number, s = r.ext, a = r.error;
26792
26792
  if (!i) {
26793
26793
  if (e.v2)
26794
- throw a === "TOO_SHORT" ? new yn("TOO_SHORT") : new yn("NOT_A_NUMBER");
26794
+ throw a === "TOO_SHORT" ? new _n("TOO_SHORT") : new _n("NOT_A_NUMBER");
26795
26795
  return {};
26796
26796
  }
26797
26797
  var l = k6(i, e.defaultCountry, e.defaultCallingCode, n), c = l.country, d = l.nationalNumber, u = l.countryCallingCode, f = l.countryCallingCodeSource, h = l.carrierCode;
26798
26798
  if (!n.hasSelectedNumberingPlan()) {
26799
26799
  if (e.v2)
26800
- throw new yn("INVALID_COUNTRY");
26800
+ throw new _n("INVALID_COUNTRY");
26801
26801
  return {};
26802
26802
  }
26803
26803
  if (!d || d.length < vp) {
26804
26804
  if (e.v2)
26805
- throw new yn("TOO_SHORT");
26805
+ throw new _n("TOO_SHORT");
26806
26806
  return {};
26807
26807
  }
26808
26808
  if (d.length > e5) {
26809
26809
  if (e.v2)
26810
- throw new yn("TOO_LONG");
26810
+ throw new _n("TOO_LONG");
26811
26811
  return {};
26812
26812
  }
26813
26813
  if (e.v2) {
@@ -26829,7 +26829,7 @@ function v6(t, e, n) {
26829
26829
  if (t) {
26830
26830
  if (t.length > m6) {
26831
26831
  if (n)
26832
- throw new yn("TOO_LONG");
26832
+ throw new _n("TOO_LONG");
26833
26833
  return;
26834
26834
  }
26835
26835
  if (e === !1)
@@ -27033,7 +27033,7 @@ function R6(t, e, n) {
27033
27033
  try {
27034
27034
  return S6(t, e, n);
27035
27035
  } catch (r) {
27036
- if (!(r instanceof yn)) throw r;
27036
+ if (!(r instanceof _n)) throw r;
27037
27037
  }
27038
27038
  }
27039
27039
  function B6() {
@@ -27209,7 +27209,7 @@ async function Ey(t, {
27209
27209
  }
27210
27210
  async function kp(t, e) {
27211
27211
  const n = await Ey(t, e);
27212
- return dn(t, {
27212
+ return cn(t, {
27213
27213
  authParams: n.authParams,
27214
27214
  client: n.client,
27215
27215
  user: n.user,
@@ -27956,7 +27956,7 @@ const W6 = new ce().openapi(
27956
27956
  request: {
27957
27957
  query: o.object({
27958
27958
  scope: o.string(),
27959
- response_type: o.nativeEnum(Ut),
27959
+ response_type: o.nativeEnum(Ht),
27960
27960
  redirect_uri: o.string(),
27961
27961
  state: o.string(),
27962
27962
  nonce: o.string().optional(),
@@ -28158,7 +28158,7 @@ async function Oy(t, e, n, r, i) {
28158
28158
  }
28159
28159
  }
28160
28160
  );
28161
- return a instanceof Response ? a : (s.user = a, dn(t, {
28161
+ return a instanceof Response ? a : (s.user = a, cn(t, {
28162
28162
  ...s,
28163
28163
  ticketAuth: i,
28164
28164
  strategy: "Username-Password-Authentication"
@@ -28357,7 +28357,7 @@ async function Z6({
28357
28357
  if ((h == null ? void 0 : h.email) === s)
28358
28358
  return await t.env.data.loginSessions.update(n.tenant.id, f.id, {
28359
28359
  session_id: e.id
28360
- }), dn(t, {
28360
+ }), cn(t, {
28361
28361
  client: n,
28362
28362
  loginSession: { ...f, session_id: e.id },
28363
28363
  authParams: r,
@@ -28424,7 +28424,7 @@ async function Q6(t, e, n, r, i) {
28424
28424
  client: c,
28425
28425
  loginSession: l
28426
28426
  });
28427
- return dn(t, {
28427
+ return cn(t, {
28428
28428
  authParams: {
28429
28429
  scope: (h = l.authParams) == null ? void 0 : h.scope,
28430
28430
  ...r
@@ -28505,7 +28505,7 @@ async function ex({
28505
28505
  },
28506
28506
  user: E,
28507
28507
  session_id: n.id
28508
- }, R = u === Ut.CODE ? await U0(t, {
28508
+ }, R = u === Ht.CODE ? await U0(t, {
28509
28509
  user: E,
28510
28510
  client: e,
28511
28511
  authParams: M.authParams,
@@ -28562,8 +28562,8 @@ const tx = ["email", "sms", "Username-Password-Authentication"], nx = new ce().o
28562
28562
  scope: o.string().optional(),
28563
28563
  state: o.string(),
28564
28564
  prompt: o.string().optional(),
28565
- response_mode: o.nativeEnum(an).optional(),
28566
- response_type: o.nativeEnum(Ut).optional(),
28565
+ response_mode: o.nativeEnum(vn).optional(),
28566
+ response_type: o.nativeEnum(Ht).optional(),
28567
28567
  audience: o.string().optional(),
28568
28568
  connection: o.string().optional(),
28569
28569
  nonce: o.string().optional(),
@@ -29071,7 +29071,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29071
29071
  }) => /* @__PURE__ */ p("div", { className: _e("p-6 pt-0", e), children: t }), ax = ({
29072
29072
  children: t,
29073
29073
  className: e
29074
- }) => /* @__PURE__ */ p("div", { className: _e("flex items-center p-6 pt-0", e), children: t }), cn = ({
29074
+ }) => /* @__PURE__ */ p("div", { className: _e("flex items-center p-6 pt-0", e), children: t }), ln = ({
29075
29075
  id: t,
29076
29076
  type: e = "text",
29077
29077
  name: n,
@@ -29148,7 +29148,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29148
29148
  style: n,
29149
29149
  children: r
29150
29150
  }
29151
- ), ut = ({ children: t, className: e }) => /* @__PURE__ */ p("div", { className: _e("mb-2 text-sm text-red", e), children: t }), gn = ({ theme: t, branding: e }) => {
29151
+ ), ut = ({ children: t, className: e }) => /* @__PURE__ */ p("div", { className: _e("mb-2 text-sm text-red", e), children: t }), hn = ({ theme: t, branding: e }) => {
29152
29152
  var r;
29153
29153
  const n = ((r = t == null ? void 0 : t.widget) == null ? void 0 : r.logo_url) || (e == null ? void 0 : e.logo_url);
29154
29154
  return n ? /* @__PURE__ */ p("div", { className: "inline-flex h-9 items-center", children: /* @__PURE__ */ p("img", { src: n, className: "h-full w-auto", alt: "Logo" }) }) : /* @__PURE__ */ p(kl, {});
@@ -29193,7 +29193,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29193
29193
  }, V = ((Zo = e == null ? void 0 : e.widget) == null ? void 0 : Zo.logo_position) || "center", q = V === "left" ? "text-left" : V === "right" ? "text-right" : "text-center", Y = ((Yo = e == null ? void 0 : e.widget) == null ? void 0 : Yo.logo_url) || (n == null ? void 0 : n.logo_url), ae = V !== "none" && Y;
29194
29194
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", a), children: /* @__PURE__ */ p(Tn, { style: A, className: "border", children: [
29195
29195
  /* @__PURE__ */ p(Pn, { children: [
29196
- ae && /* @__PURE__ */ p("div", { className: _e("mb-4", q), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
29196
+ ae && /* @__PURE__ */ p("div", { className: _e("mb-4", q), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
29197
29197
  /* @__PURE__ */ p(Rn, { style: k, children: w.t("welcome", "Login") }),
29198
29198
  /* @__PURE__ */ p(Bn, { style: $, children: w.t("login_description_template", {
29199
29199
  authMethod: w.t(f, {
@@ -29209,7 +29209,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29209
29209
  c && d ? "Email or Phone Number" : c ? "Email" : "Phone Number"
29210
29210
  ) }),
29211
29211
  /* @__PURE__ */ p(
29212
- cn,
29212
+ ln,
29213
29213
  {
29214
29214
  id: "username",
29215
29215
  name: "username",
@@ -29388,7 +29388,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29388
29388
  style: s,
29389
29389
  children: /* @__PURE__ */ p("div", { className: "row-up-left w-[calc(100%-theme(space.2)-theme(space.2))] max-w-[1295px] !flex-nowrap sm:w-[calc(100%-theme(space.16)-theme(space.16))]", children: /* @__PURE__ */ p("div", { className: "column-left w-full sm:w-auto", children: [
29390
29390
  /* @__PURE__ */ p("div", { className: "relative flex w-full flex-col rounded-2xl bg-white px-5 py-10 dark:bg-gray-800 dark:text-white sm:min-h-[700px] sm:max-w-md sm:px-14 sm:py-14 md:min-w-[448px] short:min-h-[558px] min-h-[calc(100vh-83px)]", children: [
29391
- /* @__PURE__ */ p("div", { className: "mb-16", children: /* @__PURE__ */ p(gn, { theme: n, branding: r }) }),
29391
+ /* @__PURE__ */ p("div", { className: "mb-16", children: /* @__PURE__ */ p(hn, { theme: n, branding: r }) }),
29392
29392
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col", children: [
29393
29393
  e,
29394
29394
  /* @__PURE__ */ p(lx, { theme: n, branding: r, client: i })
@@ -29507,7 +29507,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29507
29507
  ]
29508
29508
  }
29509
29509
  );
29510
- }, mn = ({ children: t, className: e }) => /* @__PURE__ */ p("form", { id: "form", method: "post", className: e, children: t }), nc = ({
29510
+ }, gn = ({ children: t, className: e }) => /* @__PURE__ */ p("form", { id: "form", method: "post", className: e, children: t }), nc = ({
29511
29511
  error: t,
29512
29512
  theme: e,
29513
29513
  branding: n,
@@ -29541,7 +29541,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29541
29541
  defaultValue: "Sign in with your {{authMethod}}"
29542
29542
  }) }),
29543
29543
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
29544
- u && /* @__PURE__ */ p(mn, { className: "mb-7", children: [
29544
+ u && /* @__PURE__ */ p(gn, { className: "mb-7", children: [
29545
29545
  /* @__PURE__ */ p(
29546
29546
  "input",
29547
29547
  {
@@ -29897,7 +29897,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29897
29897
  language: E
29898
29898
  }), t.redirect(`/u/enter-code?state=${n}`);
29899
29899
  }
29900
- ), Mt = (t) => /* @__PURE__ */ p(
29900
+ ), Dt = (t) => /* @__PURE__ */ p(
29901
29901
  "a",
29902
29902
  {
29903
29903
  className: "block text-primary hover:text-primaryHover text-center",
@@ -29911,7 +29911,7 @@ var vo = "_hp", yx = {
29911
29911
  }, wx = {
29912
29912
  svg: "2000/svg",
29913
29913
  math: "1998/Math/MathML"
29914
- }, bo = [], iu = /* @__PURE__ */ new WeakMap(), gi = void 0, vx = () => gi, wn = (t) => "t" in t, rc = {
29914
+ }, bo = [], iu = /* @__PURE__ */ new WeakMap(), gi = void 0, vx = () => gi, yn = (t) => "t" in t, rc = {
29915
29915
  onClick: ["click", !1]
29916
29916
  }, Bg = (t) => {
29917
29917
  if (!t.startsWith("on"))
@@ -29987,7 +29987,7 @@ var vo = "_hp", yx = {
29987
29987
  var s, a;
29988
29988
  (s = t.vR) != null && s.length && (r.push(...t.vR), delete t.vR), typeof t.tag == "function" && ((a = t[Me][1][Dy]) == null || a.forEach((l) => i.push(l))), t.vC.forEach((l) => {
29989
29989
  var c;
29990
- if (wn(l))
29990
+ if (yn(l))
29991
29991
  n.push(l);
29992
29992
  else if (typeof l.tag == "function" || l.tag === "") {
29993
29993
  l.c = e;
@@ -30009,7 +30009,7 @@ var vo = "_hp", yx = {
30009
30009
  }
30010
30010
  }, By = (t) => {
30011
30011
  var e, n, r, i, s, a;
30012
- wn(t) || ((n = (e = t[Me]) == null ? void 0 : e[1][Dy]) == null || n.forEach((l) => {
30012
+ yn(t) || ((n = (e = t[Me]) == null ? void 0 : e[1][Dy]) == null || n.forEach((l) => {
30013
30013
  var c;
30014
30014
  return (c = l[2]) == null ? void 0 : c.call(l);
30015
30015
  }), (r = iu.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (s = t.vC) == null || s.forEach(By)), t.p || ((a = t.e) == null || a.remove(), delete t.e), typeof t.tag == "function" && (Vi.delete(t), vs.delete(t), delete t[Me][3], t.a = !0);
@@ -30042,7 +30042,7 @@ var vo = "_hp", yx = {
30042
30042
  m = h.e, h.s = !1;
30043
30043
  else {
30044
30044
  const y = n || !h.e;
30045
- wn(h) ? (h.e && h.d && (h.e.textContent = h.t), h.d = !1, m = h.e || (h.e = document.createTextNode(h.t))) : (m = h.e || (h.e = h.n ? document.createElementNS(h.n, h.tag) : document.createElement(h.tag)), bx(m, h.props, h.pP), Uy(h, m, y));
30045
+ yn(h) ? (h.e && h.d && (h.e.textContent = h.t), h.d = !1, m = h.e || (h.e = document.createTextNode(h.t))) : (m = h.e || (h.e = h.n ? document.createElementNS(h.n, h.tag) : document.createElement(h.tag)), bx(m, h.props, h.pP), Uy(h, m, y));
30046
30046
  }
30047
30047
  h.tag === vo ? l-- : n ? m.parentNode || e.appendChild(m) : a[l] !== m && a[l - 1] !== m && (a[l + 1] === m ? e.appendChild(a[l]) : e.insertBefore(m, c || a[l] || null));
30048
30048
  }
@@ -30071,12 +30071,12 @@ var vo = "_hp", yx = {
30071
30071
  let b;
30072
30072
  if (f && f.length) {
30073
30073
  const E = f.findIndex(
30074
- wn(v) ? (P) => wn(P) : v.key !== void 0 ? (P) => P.key === v.key && P.tag === v.tag : (P) => P.tag === v.tag
30074
+ yn(v) ? (P) => yn(P) : v.key !== void 0 ? (P) => P.key === v.key && P.tag === v.tag : (P) => P.tag === v.tag
30075
30075
  );
30076
30076
  E !== -1 && (b = f[E], f.splice(E, 1));
30077
30077
  }
30078
30078
  if (b)
30079
- if (wn(v))
30079
+ if (yn(v))
30080
30080
  b.t !== v.t && (b.t = v.t, b.d = !0), v = b;
30081
30081
  else {
30082
30082
  const E = b.pP = b.props;
@@ -30086,12 +30086,12 @@ var vo = "_hp", yx = {
30086
30086
  }
30087
30087
  v = b;
30088
30088
  }
30089
- else if (!wn(v) && gi) {
30089
+ else if (!yn(v) && gi) {
30090
30090
  const E = Ci(gi);
30091
30091
  E && (v.n = E);
30092
30092
  }
30093
- if (!wn(v) && !v.s && (ou(t, v), delete v.f), h.push(v), m && !m.s && !v.s)
30094
- for (let E = m; E && !wn(E); E = (d = E.vC) == null ? void 0 : d.at(-1))
30093
+ if (!yn(v) && !v.s && (ou(t, v), delete v.f), h.push(v), m && !m.s && !v.s)
30094
+ for (let E = m; E && !yn(E); E = (d = E.vC) == null ? void 0 : d.at(-1))
30095
30095
  E.nN = v;
30096
30096
  m = v;
30097
30097
  }
@@ -30516,7 +30516,7 @@ const Nr = (t) => {
30516
30516
  }
30517
30517
  ) }),
30518
30518
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
30519
- /* @__PURE__ */ p(mn, { className: "pt-2", children: [
30519
+ /* @__PURE__ */ p(gn, { className: "pt-2", children: [
30520
30520
  /* @__PURE__ */ p(
30521
30521
  "input",
30522
30522
  {
@@ -30565,7 +30565,7 @@ const Nr = (t) => {
30565
30565
  )
30566
30566
  ] })
30567
30567
  ] }),
30568
- /* @__PURE__ */ p(Mt, { state: i })
30568
+ /* @__PURE__ */ p(Dt, { state: i })
30569
30569
  ] })
30570
30570
  ]
30571
30571
  }
@@ -30644,7 +30644,7 @@ const Nr = (t) => {
30644
30644
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", a), children: [
30645
30645
  /* @__PURE__ */ p(Tn, { style: R, className: "border", children: [
30646
30646
  /* @__PURE__ */ p(Pn, { children: [
30647
- j && /* @__PURE__ */ p("div", { className: _e("mb-4", G), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
30647
+ j && /* @__PURE__ */ p("div", { className: _e("mb-4", G), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
30648
30648
  /* @__PURE__ */ p(Rn, { style: L, children: w.t("verify_your_email", "Verify your email") }),
30649
30649
  /* @__PURE__ */ p(Bn, { style: J, children: /* @__PURE__ */ p(
30650
30650
  Nr,
@@ -30758,14 +30758,14 @@ const Nr = (t) => {
30758
30758
  ] })
30759
30759
  ] }) }) })
30760
30760
  ] }),
30761
- /* @__PURE__ */ p(Mt, { state: i })
30761
+ /* @__PURE__ */ p(Dt, { state: i })
30762
30762
  ] });
30763
30763
  }, Yt = (t) => {
30764
30764
  const { message: e, theme: n, branding: r, client: i, pageTitle: s, state: a } = t;
30765
30765
  return /* @__PURE__ */ p(Ge, { title: "Login", theme: n, branding: r, client: i, children: [
30766
30766
  s ? /* @__PURE__ */ p("div", { className: "mb-4 text-2xl font-medium", children: s }) : "",
30767
30767
  /* @__PURE__ */ p("div", { className: "text-gray-300 mb-12", children: e }),
30768
- a ? /* @__PURE__ */ p(Mt, { state: a }) : ""
30768
+ a ? /* @__PURE__ */ p(Dt, { state: a }) : ""
30769
30769
  ] });
30770
30770
  }, qx = new ce().openapi(
30771
30771
  I({
@@ -31015,9 +31015,9 @@ const Nr = (t) => {
31015
31015
  /* @__PURE__ */ p(Je, { className: "text-base", name: "info-bubble" }),
31016
31016
  /* @__PURE__ */ p("div", { className: "text-sm text-gray-300 md:text-sm", children: w.t("sent_code_spam") })
31017
31017
  ] }),
31018
- /* @__PURE__ */ p(Mt, { state: i })
31018
+ /* @__PURE__ */ p(Dt, { state: i })
31019
31019
  ] }),
31020
- /* @__PURE__ */ p(Mt, { state: i })
31020
+ /* @__PURE__ */ p(Dt, { state: i })
31021
31021
  ]
31022
31022
  }
31023
31023
  );
@@ -31102,7 +31102,7 @@ const lc = (t) => {
31102
31102
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("enter_password") }),
31103
31103
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("enter_password_description") }),
31104
31104
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
31105
- /* @__PURE__ */ p(mn, { className: "mb-7", children: [
31105
+ /* @__PURE__ */ p(gn, { className: "mb-7", children: [
31106
31106
  /* @__PURE__ */ p(
31107
31107
  "input",
31108
31108
  {
@@ -31146,7 +31146,7 @@ const lc = (t) => {
31146
31146
  }
31147
31147
  )
31148
31148
  ] }),
31149
- /* @__PURE__ */ p(Mt, { state: s })
31149
+ /* @__PURE__ */ p(Dt, { state: s })
31150
31150
  ] }),
31151
31151
  m4(Wg || (Wg = Wx([`
31152
31152
  <script>
@@ -31210,7 +31210,7 @@ const lc = (t) => {
31210
31210
  }, j = ((rt = e == null ? void 0 : e.widget) == null ? void 0 : rt.logo_position) || "center", C = j === "left" ? "text-left" : j === "right" ? "text-right" : "text-center", A = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_url) || (n == null ? void 0 : n.logo_url), k = j !== "none" && A;
31211
31211
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: J, className: "border", children: [
31212
31212
  /* @__PURE__ */ p(Pn, { children: [
31213
- k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
31213
+ k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
31214
31214
  /* @__PURE__ */ p(Rn, { style: re, children: w.t("enter_password", "Enter your password") }),
31215
31215
  /* @__PURE__ */ p(Bn, { style: ee, children: w.t(
31216
31216
  "enter_password_description",
@@ -31221,7 +31221,7 @@ const lc = (t) => {
31221
31221
  /* @__PURE__ */ p("div", { className: "grid gap-2", children: [
31222
31222
  /* @__PURE__ */ p(Xt, { htmlFor: "email", style: ee, children: w.t("email", "Email") }),
31223
31223
  /* @__PURE__ */ p(
31224
- cn,
31224
+ ln,
31225
31225
  {
31226
31226
  id: "email",
31227
31227
  name: "username",
@@ -31248,7 +31248,7 @@ const lc = (t) => {
31248
31248
  ] }),
31249
31249
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
31250
31250
  /* @__PURE__ */ p(
31251
- cn,
31251
+ ln,
31252
31252
  {
31253
31253
  id: "password",
31254
31254
  name: "password",
@@ -31554,7 +31554,7 @@ const lc = (t) => {
31554
31554
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("create_account_title") }),
31555
31555
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("create_account_description") }),
31556
31556
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
31557
- /* @__PURE__ */ p(mn, { children: [
31557
+ /* @__PURE__ */ p(gn, { children: [
31558
31558
  /* @__PURE__ */ p("input", { type: "hidden", name: "code", value: l }),
31559
31559
  /* @__PURE__ */ p(
31560
31560
  "input",
@@ -31589,7 +31589,7 @@ const lc = (t) => {
31589
31589
  e && /* @__PURE__ */ p(ut, { children: e }),
31590
31590
  /* @__PURE__ */ p(Ke, { className: "sm:mt-4 !text-base", children: w.t("continue") })
31591
31591
  ] }),
31592
- /* @__PURE__ */ p(Mt, { state: a })
31592
+ /* @__PURE__ */ p(Dt, { state: a })
31593
31593
  ] })
31594
31594
  ]
31595
31595
  }
@@ -31629,7 +31629,7 @@ const lc = (t) => {
31629
31629
  }, C = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_position) || "center", A = C === "left" ? "text-left" : C === "right" ? "text-right" : "text-center", k = ((Un = e == null ? void 0 : e.widget) == null ? void 0 : Un.logo_url) || (n == null ? void 0 : n.logo_url), $ = C !== "none" && k;
31630
31630
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", a), children: /* @__PURE__ */ p(Tn, { style: re, className: "border", children: [
31631
31631
  /* @__PURE__ */ p(Pn, { children: [
31632
- $ && /* @__PURE__ */ p("div", { className: _e("mb-4", A), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
31632
+ $ && /* @__PURE__ */ p("div", { className: _e("mb-4", A), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
31633
31633
  /* @__PURE__ */ p(Rn, { style: ee, children: w.t("create_account_title", "Create Account") }),
31634
31634
  /* @__PURE__ */ p(Bn, { style: G, children: w.t("create_account_description", "Sign up to get started") })
31635
31635
  ] }),
@@ -31647,7 +31647,7 @@ const lc = (t) => {
31647
31647
  /* @__PURE__ */ p("div", { className: "space-y-2", children: [
31648
31648
  /* @__PURE__ */ p(Xt, { htmlFor: "username", style: G, children: w.t("email_label", "Email") }),
31649
31649
  /* @__PURE__ */ p(
31650
- cn,
31650
+ ln,
31651
31651
  {
31652
31652
  id: "username",
31653
31653
  type: "email",
@@ -31665,7 +31665,7 @@ const lc = (t) => {
31665
31665
  /* @__PURE__ */ p(Xt, { htmlFor: "password", style: G, children: w.t("password", "Password") }),
31666
31666
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
31667
31667
  /* @__PURE__ */ p(
31668
- cn,
31668
+ ln,
31669
31669
  {
31670
31670
  id: "password",
31671
31671
  name: "password",
@@ -31742,7 +31742,7 @@ const lc = (t) => {
31742
31742
  /* @__PURE__ */ p(Xt, { htmlFor: "re-enter-password", style: G, children: w.t("confirm_password", "Confirm Password") }),
31743
31743
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
31744
31744
  /* @__PURE__ */ p(
31745
- cn,
31745
+ ln,
31746
31746
  {
31747
31747
  id: "re-enter-password",
31748
31748
  name: "re-enter-password",
@@ -32125,7 +32125,7 @@ const lc = (t) => {
32125
32125
  },
32126
32126
  l
32127
32127
  );
32128
- return dn(t, M);
32128
+ return cn(t, M);
32129
32129
  } catch (h) {
32130
32130
  let m = w.t("unknown_error_message"), y = 400;
32131
32131
  return h instanceof S ? (m = h.message || m, y = h.status === 400 ? 400 : 500) : h instanceof Fr ? m = h.message || m : h instanceof Error && (m = h.message || m, y = 500), c ? t.html(
@@ -32180,7 +32180,7 @@ const lc = (t) => {
32180
32180
  children: [
32181
32181
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("reset_password_title") }),
32182
32182
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: `${w.t("reset_password_description")} ${s}` }),
32183
- /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(mn, { children: [
32183
+ /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(gn, { children: [
32184
32184
  /* @__PURE__ */ p(
32185
32185
  su,
32186
32186
  {
@@ -32235,7 +32235,7 @@ const lc = (t) => {
32235
32235
  }, j = ((rt = e == null ? void 0 : e.widget) == null ? void 0 : rt.logo_position) || "center", C = j === "left" ? "text-left" : j === "right" ? "text-right" : "text-center", A = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_url) || (n == null ? void 0 : n.logo_url), k = j !== "none" && A;
32236
32236
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: J, className: "border", children: [
32237
32237
  /* @__PURE__ */ p(Pn, { children: [
32238
- k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
32238
+ k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
32239
32239
  /* @__PURE__ */ p(Rn, { style: re, children: w.t("reset_password_title", "Reset Password") }),
32240
32240
  /* @__PURE__ */ p(Bn, { style: ee, children: `${w.t("reset_password_description", "Set a new password for")} ${i}` })
32241
32241
  ] }),
@@ -32252,7 +32252,7 @@ const lc = (t) => {
32252
32252
  /* @__PURE__ */ p(Xt, { htmlFor: "password", style: ee, children: w.t("new_password", "New Password") }),
32253
32253
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
32254
32254
  /* @__PURE__ */ p(
32255
- cn,
32255
+ ln,
32256
32256
  {
32257
32257
  id: "password",
32258
32258
  name: "password",
@@ -32329,7 +32329,7 @@ const lc = (t) => {
32329
32329
  /* @__PURE__ */ p(Xt, { htmlFor: "re-enter-password", style: ee, children: w.t("confirm_password", "Confirm Password") }),
32330
32330
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
32331
32331
  /* @__PURE__ */ p(
32332
- cn,
32332
+ ln,
32333
32333
  {
32334
32334
  id: "re-enter-password",
32335
32335
  name: "re-enter-password",
@@ -32702,7 +32702,7 @@ const lc = (t) => {
32702
32702
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("forgot_password_title") }),
32703
32703
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("forgot_password_description") }),
32704
32704
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
32705
- /* @__PURE__ */ p(mn, { className: "pt-2", children: [
32705
+ /* @__PURE__ */ p(gn, { className: "pt-2", children: [
32706
32706
  /* @__PURE__ */ p(
32707
32707
  "input",
32708
32708
  {
@@ -32717,7 +32717,7 @@ const lc = (t) => {
32717
32717
  e && /* @__PURE__ */ p(ut, { children: e }),
32718
32718
  /* @__PURE__ */ p(Ke, { className: "sm:mt-4 !text-base", children: w.t("forgot_password_cta") })
32719
32719
  ] }),
32720
- /* @__PURE__ */ p(Mt, { state: a })
32720
+ /* @__PURE__ */ p(Dt, { state: a })
32721
32721
  ] })
32722
32722
  ]
32723
32723
  }
@@ -32756,7 +32756,7 @@ const lc = (t) => {
32756
32756
  }, j = ((rt = e == null ? void 0 : e.widget) == null ? void 0 : rt.logo_position) || "center", C = j === "left" ? "text-left" : j === "right" ? "text-right" : "text-center", A = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_url) || (n == null ? void 0 : n.logo_url), k = j !== "none" && A;
32757
32757
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: J, className: "border", children: [
32758
32758
  /* @__PURE__ */ p(Pn, { children: [
32759
- k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
32759
+ k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
32760
32760
  /* @__PURE__ */ p(Rn, { style: re, children: w.t("forgot_password_title", "Forgot Password") }),
32761
32761
  /* @__PURE__ */ p(Bn, { style: ee, children: w.t(
32762
32762
  "forgot_password_description",
@@ -32784,7 +32784,7 @@ const lc = (t) => {
32784
32784
  }
32785
32785
  ),
32786
32786
  /* @__PURE__ */ p(
32787
- cn,
32787
+ ln,
32788
32788
  {
32789
32789
  id: "username",
32790
32790
  type: "email",
@@ -32831,7 +32831,7 @@ const lc = (t) => {
32831
32831
  /* @__PURE__ */ p("div", { className: "text-sm text-gray-300 md:text-sm", children: w.t("sent_code_spam") })
32832
32832
  ] })
32833
32833
  ] }),
32834
- /* @__PURE__ */ p(Mt, { state: i })
32834
+ /* @__PURE__ */ p(Dt, { state: i })
32835
32835
  ] });
32836
32836
  }, t8 = new ce().openapi(
32837
32837
  I({
@@ -32961,7 +32961,7 @@ const lc = (t) => {
32961
32961
  he("continue_with_sso_provider_headline")
32962
32962
  ] }),
32963
32963
  /* @__PURE__ */ p("div", { className: "space-y-6", children: [
32964
- /* @__PURE__ */ p(mn, { children: /* @__PURE__ */ p(Ke, { className: "!text-base", children: /* @__PURE__ */ p("span", { children: w.t("yes_continue_with_existing_account") }) }) }),
32964
+ /* @__PURE__ */ p(gn, { children: /* @__PURE__ */ p(Ke, { className: "!text-base", children: /* @__PURE__ */ p("span", { children: w.t("yes_continue_with_existing_account") }) }) }),
32965
32965
  /* @__PURE__ */ p(
32966
32966
  "a",
32967
32967
  {
@@ -33004,7 +33004,7 @@ const lc = (t) => {
33004
33004
  }, L = ((Ce = t == null ? void 0 : t.widget) == null ? void 0 : Ce.logo_position) || "center", J = L === "left" ? "text-left" : L === "right" ? "text-right" : "text-center", re = ((je = t == null ? void 0 : t.widget) == null ? void 0 : je.logo_url) || (e == null ? void 0 : e.logo_url), ee = L !== "none" && re;
33005
33005
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", i), children: /* @__PURE__ */ p(Tn, { style: b, className: "border", children: [
33006
33006
  /* @__PURE__ */ p(Pn, { children: [
33007
- ee && /* @__PURE__ */ p("div", { className: _e("mb-4", J), children: /* @__PURE__ */ p(gn, { theme: t, branding: e }) }),
33007
+ ee && /* @__PURE__ */ p("div", { className: _e("mb-4", J), children: /* @__PURE__ */ p(hn, { theme: t, branding: e }) }),
33008
33008
  /* @__PURE__ */ p(Rn, { style: E, children: w.t("continue_with_account", "Continue with account") }),
33009
33009
  /* @__PURE__ */ p(Bn, { style: P, children: [
33010
33010
  /* @__PURE__ */ p(
@@ -33211,7 +33211,7 @@ const lc = (t) => {
33211
33211
  await e.data.loginSessions.update(s.tenant.id, a.id, {
33212
33212
  session_id: c.id
33213
33213
  });
33214
- const u = await dn(t, {
33214
+ const u = await cn(t, {
33215
33215
  user: d,
33216
33216
  authParams: a.authParams,
33217
33217
  client: s,
@@ -33442,7 +33442,7 @@ const lc = (t) => {
33442
33442
  /* @__PURE__ */ p("div", { className: "font-medium text-base text-gray-800", children: r.email || w.t("no_email_address") })
33443
33443
  ] }),
33444
33444
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
33445
- /* @__PURE__ */ p(mn, { children: [
33445
+ /* @__PURE__ */ p(gn, { children: [
33446
33446
  /* @__PURE__ */ p(
33447
33447
  "input",
33448
33448
  {
@@ -33688,7 +33688,7 @@ const lc = (t) => {
33688
33688
  }
33689
33689
  ) }),
33690
33690
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
33691
- /* @__PURE__ */ p(mn, { className: "pt-2", children: [
33691
+ /* @__PURE__ */ p(gn, { className: "pt-2", children: [
33692
33692
  /* @__PURE__ */ p(
33693
33693
  "input",
33694
33694
  {
@@ -33968,7 +33968,7 @@ const lc = (t) => {
33968
33968
  children: [
33969
33969
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("create_password_account_title") }),
33970
33970
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("enter_email_for_verification_description") }),
33971
- /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(mn, { className: "pt-2", children: [
33971
+ /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(gn, { className: "pt-2", children: [
33972
33972
  /* @__PURE__ */ p(
33973
33973
  "input",
33974
33974
  {
@@ -33983,7 +33983,7 @@ const lc = (t) => {
33983
33983
  ),
33984
33984
  /* @__PURE__ */ p(Ke, { className: "sm:mt-4 !text-base", children: w.t("send") })
33985
33985
  ] }) }),
33986
- /* @__PURE__ */ p(Mt, { state: s })
33986
+ /* @__PURE__ */ p(Dt, { state: s })
33987
33987
  ]
33988
33988
  }
33989
33989
  );
@@ -34213,7 +34213,7 @@ const lc = (t) => {
34213
34213
  }, R = ((fe = t == null ? void 0 : t.widget) == null ? void 0 : fe.logo_position) || "center", L = R === "left" ? "text-left" : R === "right" ? "text-right" : "text-center", J = ((Ce = t == null ? void 0 : t.widget) == null ? void 0 : Ce.logo_url) || (e == null ? void 0 : e.logo_url), re = R !== "none" && J;
34214
34214
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", r), children: /* @__PURE__ */ p(Tn, { style: b, className: "border", children: [
34215
34215
  /* @__PURE__ */ p(Pn, { children: [
34216
- re && /* @__PURE__ */ p("div", { className: _e("mb-4", L), children: /* @__PURE__ */ p(gn, { theme: t, branding: e }) }),
34216
+ re && /* @__PURE__ */ p("div", { className: _e("mb-4", L), children: /* @__PURE__ */ p(hn, { theme: t, branding: e }) }),
34217
34217
  /* @__PURE__ */ p("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ p(
34218
34218
  "div",
34219
34219
  {
@@ -34391,7 +34391,7 @@ const lc = (t) => {
34391
34391
  /* @__PURE__ */ p("div", { className: "text-sm text-gray-300 md:text-sm", children: w.t("sent_code_spam") })
34392
34392
  ] })
34393
34393
  ] }),
34394
- /* @__PURE__ */ p(Mt, { state: s })
34394
+ /* @__PURE__ */ p(Dt, { state: s })
34395
34395
  ]
34396
34396
  }
34397
34397
  );
@@ -34690,7 +34690,7 @@ const dc = ({
34690
34690
  );
34691
34691
  if (!v)
34692
34692
  throw new Error("Session expired");
34693
- return await dn(t, {
34693
+ return await cn(t, {
34694
34694
  authParams: m.authParams,
34695
34695
  client: a,
34696
34696
  user: v,
@@ -34775,7 +34775,7 @@ const dc = ({
34775
34775
  ) })
34776
34776
  ] })
34777
34777
  ] }),
34778
- /* @__PURE__ */ p(Mt, { state: s })
34778
+ /* @__PURE__ */ p(Dt, { state: s })
34779
34779
  ] }),
34780
34780
  /* @__PURE__ */ p("style", { children: `
34781
34781
  details[open] .details-arrow {
@@ -34836,7 +34836,7 @@ const dc = ({
34836
34836
  }, G = ((De = e == null ? void 0 : e.widget) == null ? void 0 : De.logo_position) || "center", pe = G === "left" ? "text-left" : G === "right" ? "text-right" : "text-center", j = ((We = e == null ? void 0 : e.widget) == null ? void 0 : We.logo_url) || (n == null ? void 0 : n.logo_url), C = G !== "none" && j;
34837
34837
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: P, className: "border", children: [
34838
34838
  /* @__PURE__ */ p(Pn, { children: [
34839
- C && /* @__PURE__ */ p("div", { className: _e("mb-4", pe), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
34839
+ C && /* @__PURE__ */ p("div", { className: _e("mb-4", pe), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
34840
34840
  /* @__PURE__ */ p(Rn, { style: M, children: w.t("impersonation", "Impersonation") }),
34841
34841
  /* @__PURE__ */ p(Bn, { style: R, children: w.t(
34842
34842
  "impersonation_description",
@@ -34944,7 +34944,7 @@ const dc = ({
34944
34944
  "User ID to Impersonate"
34945
34945
  ) }),
34946
34946
  /* @__PURE__ */ p(
34947
- cn,
34947
+ ln,
34948
34948
  {
34949
34949
  type: "text",
34950
34950
  id: "user_id",
@@ -35128,7 +35128,7 @@ const dc = ({
35128
35128
  throw new S(403, {
35129
35129
  message: "Access denied: insufficient permissions"
35130
35130
  });
35131
- return dn(t, {
35131
+ return cn(t, {
35132
35132
  client: n,
35133
35133
  authParams: r.authParams,
35134
35134
  loginSession: r,
@@ -35264,13 +35264,9 @@ const dc = ({
35264
35264
  strategy: h.connection,
35265
35265
  strategy_type: h.is_social ? "social" : "database"
35266
35266
  });
35267
- return ke(t, t.env.data.logs.create(s.tenant.id, m)), dn(t, {
35267
+ return ke(t, t.env.data.logs.create(s.tenant.id, m)), cn(t, {
35268
35268
  client: s,
35269
- authParams: {
35270
- ...a.authParams,
35271
- response_type: Ut.TOKEN_ID_TOKEN,
35272
- response_mode: an.QUERY
35273
- },
35269
+ authParams: a.authParams,
35274
35270
  loginSession: a,
35275
35271
  user: h,
35276
35272
  sessionId: c.id,
@@ -36999,7 +36995,7 @@ const r9 = new ce().openapi(
36999
36995
  requestId: s["samlp:AuthnRequest"]["@_ID"],
37000
36996
  relayState: r
37001
36997
  }),
37002
- response_mode: an.SAML_POST,
36998
+ response_mode: vn.SAML_POST,
37003
36999
  redirect_uri: (
37004
37000
  // TODO: validate this URL against the saml settings
37005
37001
  s["samlp:AuthnRequest"]["@_AssertionConsumerServiceURL"]
@@ -38566,11 +38562,11 @@ function cJ(t) {
38566
38562
  };
38567
38563
  }
38568
38564
  export {
38569
- gn as AppLogo,
38565
+ hn as AppLogo,
38570
38566
  ew as Auth0Client,
38571
38567
  Le as AuthLayout,
38572
- an as AuthorizationResponseMode,
38573
- Ut as AuthorizationResponseType,
38568
+ vn as AuthorizationResponseMode,
38569
+ Ht as AuthorizationResponseType,
38574
38570
  Ke as Button,
38575
38571
  Nn as ButtonUI,
38576
38572
  Ln as CardContent,
@@ -38590,15 +38586,15 @@ export {
38590
38586
  lx as Footer,
38591
38587
  Yx as ForgotPasswordPage,
38592
38588
  e8 as ForgotPasswordSentPage,
38593
- mn as FormComponent,
38594
- Mt as GoBack,
38589
+ gn as FormComponent,
38590
+ Dt as GoBack,
38595
38591
  oJ as GoogleLogo,
38596
38592
  rn as GrantType,
38597
38593
  E2 as HttpSamlSigner,
38598
38594
  Je as Icon,
38599
38595
  tc as IdentifierForm,
38600
38596
  nc as IdentifierPage,
38601
- cn as InputUI,
38597
+ ln as InputUI,
38602
38598
  f8 as InvalidSession,
38603
38599
  Xt as LabelUI,
38604
38600
  Ge as Layout,
@@ -38617,7 +38613,7 @@ export {
38617
38613
  aJ as VippsLogo,
38618
38614
  UK as auth0FlowInsertSchema,
38619
38615
  M1 as auth0FlowSchema,
38620
- _n as auth0UserResponseSchema,
38616
+ mn as auth0UserResponseSchema,
38621
38617
  As as authParamsSchema,
38622
38618
  du as baseUserSchema,
38623
38619
  rw as bordersSchema,