@authhero/saml 0.6.4 → 0.6.5

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/saml.mjs CHANGED
@@ -1466,37 +1466,37 @@ function S(...e) {
1466
1466
  }
1467
1467
  return t;
1468
1468
  }
1469
- var C = "external", w = "base", T = "all";
1470
- function ke(e) {
1471
- return !e || e === C ? new Set([C]) : e === T ? new Set([T]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
1469
+ var C = "external", w = "base", ke = "all";
1470
+ function Ae(e) {
1471
+ return !e || e === C ? new Set([C]) : e === ke ? new Set([ke]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
1472
1472
  }
1473
- var E = Object.freeze({
1473
+ var T = Object.freeze({
1474
1474
  allow: 0,
1475
1475
  leave: 1,
1476
1476
  remove: 2,
1477
1477
  throw: 3
1478
- }), Ae = new Set([
1478
+ }), je = new Set([
1479
1479
  9,
1480
1480
  10,
1481
1481
  13
1482
1482
  ]);
1483
- function je(e) {
1483
+ function Me(e) {
1484
1484
  if (!e) return {
1485
1485
  xmlVersion: 1,
1486
- onLevel: E.allow,
1487
- nullLevel: E.remove
1486
+ onLevel: T.allow,
1487
+ nullLevel: T.remove
1488
1488
  };
1489
- let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = E[e.onNCR] ?? E.allow, r = E[e.nullNCR] ?? E.remove;
1489
+ let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = T[e.onNCR] ?? T.allow, r = T[e.nullNCR] ?? T.remove;
1490
1490
  return {
1491
1491
  xmlVersion: t,
1492
1492
  onLevel: n,
1493
- nullLevel: Math.max(r, E.remove)
1493
+ nullLevel: Math.max(r, T.remove)
1494
1494
  };
1495
1495
  }
1496
- var Me = class {
1496
+ var Ne = class {
1497
1497
  constructor(e = {}) {
1498
- this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ke(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(Te, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1499
- let t = je(e.ncr);
1498
+ this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = Ae(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(Te, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1499
+ let t = Me(e.ncr);
1500
1500
  this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel, this._onExternalEntity = typeof e.onExternalEntity == "function" ? e.onExternalEntity : null, this._onInputEntity = typeof e.onInputEntity == "function" ? e.onInputEntity : null;
1501
1501
  }
1502
1502
  _applyRegistrationHook(e, t, n, r) {
@@ -1586,7 +1586,7 @@ var Me = class {
1586
1586
  return this._postCheck(l, t);
1587
1587
  }
1588
1588
  _tierCounts(e) {
1589
- return this._limitTiers.has(T) ? !0 : this._limitTiers.has(e);
1589
+ return this._limitTiers.has(ke) ? !0 : this._limitTiers.has(e);
1590
1590
  }
1591
1591
  _resolveName(e) {
1592
1592
  if (e in this._inputMap) return {
@@ -1603,14 +1603,14 @@ var Me = class {
1603
1603
  };
1604
1604
  }
1605
1605
  _classifyNCR(e) {
1606
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !Ae.has(e) ? E.remove : -1;
1606
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !je.has(e) ? T.remove : -1;
1607
1607
  }
1608
1608
  _applyNCRAction(e, t, n) {
1609
1609
  switch (e) {
1610
- case E.allow: return String.fromCodePoint(n);
1611
- case E.remove: return "";
1612
- case E.leave: return;
1613
- case E.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1610
+ case T.allow: return String.fromCodePoint(n);
1611
+ case T.remove: return "";
1612
+ case T.leave: return;
1613
+ case T.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1614
1614
  default: return String.fromCodePoint(n);
1615
1615
  }
1616
1616
  }
@@ -1618,11 +1618,11 @@ var Me = class {
1618
1618
  let t = e.charCodeAt(1), n;
1619
1619
  if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
1620
1620
  let r = this._classifyNCR(n);
1621
- if (!this._numericAllowed && r < E.remove) return;
1621
+ if (!this._numericAllowed && r < T.remove) return;
1622
1622
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
1623
1623
  return this._applyNCRAction(i, e, n);
1624
1624
  }
1625
- }, Ne = (e) => m.includes(e) ? "__" + e : e, Pe = {
1625
+ }, Pe = (e) => m.includes(e) ? "__" + e : e, Fe = {
1626
1626
  preserveOrder: !1,
1627
1627
  attributeNamePrefix: "@_",
1628
1628
  attributesGroupName: !1,
@@ -1665,14 +1665,14 @@ var Me = class {
1665
1665
  maxNestedTags: 100,
1666
1666
  strictReservedNames: !0,
1667
1667
  jPath: !0,
1668
- onDangerousProperty: Ne
1668
+ onDangerousProperty: Pe
1669
1669
  };
1670
- function Fe(e, t) {
1670
+ function Ie(e, t) {
1671
1671
  if (typeof e != "string") return;
1672
1672
  let n = e.toLowerCase();
1673
1673
  if (m.some((e) => n === e.toLowerCase()) || h.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1674
1674
  }
1675
- function Ie(e, t) {
1675
+ function Le(e, t) {
1676
1676
  return typeof e == "boolean" ? {
1677
1677
  enabled: e,
1678
1678
  maxEntitySize: 1e4,
@@ -1693,10 +1693,10 @@ function Ie(e, t) {
1693
1693
  allowedTags: e.allowedTags ?? null,
1694
1694
  tagFilter: e.tagFilter ?? null,
1695
1695
  appliesTo: e.appliesTo ?? "all"
1696
- } : Ie(!0);
1696
+ } : Le(!0);
1697
1697
  }
1698
- var Le = function(e) {
1699
- let t = Object.assign({}, Pe, e), n = [
1698
+ var Re = function(e) {
1699
+ let t = Object.assign({}, Fe, e), n = [
1700
1700
  {
1701
1701
  value: t.attributeNamePrefix,
1702
1702
  name: "attributeNamePrefix"
@@ -1718,9 +1718,9 @@ var Le = function(e) {
1718
1718
  name: "commentPropName"
1719
1719
  }
1720
1720
  ];
1721
- for (let { value: e, name: t } of n) e && Fe(e, t);
1722
- return t.onDangerousProperty === null && (t.onDangerousProperty = Ne), t.processEntities = Ie(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1723
- }, Re = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", D = class {
1721
+ for (let { value: e, name: t } of n) e && Ie(e, t);
1722
+ return t.onDangerousProperty === null && (t.onDangerousProperty = Pe), t.processEntities = Le(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1723
+ }, ze = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", E = class {
1724
1724
  constructor(e) {
1725
1725
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
1726
1726
  }
@@ -1731,12 +1731,12 @@ var Le = function(e) {
1731
1731
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
1732
1732
  [e.tagname]: e.child,
1733
1733
  ":@": e[":@"]
1734
- }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Re] = { startIndex: t });
1734
+ }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][ze] = { startIndex: t });
1735
1735
  }
1736
1736
  static getMetaDataSymbol() {
1737
- return Re;
1737
+ return ze;
1738
1738
  }
1739
- }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", Ue = (e, t, n = "") => {
1739
+ }, Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Ve = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ue = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", We = (e, t, n = "") => {
1740
1740
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1741
1741
  return {
1742
1742
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1745,15 +1745,15 @@ var Le = function(e) {
1745
1745
  nmToken: RegExp(`^[${t}]+$`, n),
1746
1746
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1747
1747
  };
1748
- }, We = Ue(ze, Be), Ge = Ue(Ve, He, "u"), Ke = Ue(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), qe = (e = "1.0", t = !1) => t ? Ke : e === "1.1" ? Ge : We, Je = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => qe(t, n).qName.test(e), Ye = [
1748
+ }, Ge = We(Be, Ve), Ke = We(He, Ue, "u"), qe = We(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Je = (e = "1.0", t = !1) => t ? qe : e === "1.1" ? Ke : Ge, Ye = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Je(t, n).qName.test(e), Xe = [
1749
1749
  "name",
1750
1750
  "ncName",
1751
1751
  "qName",
1752
1752
  "nmToken",
1753
1753
  "nmTokens"
1754
- ], Xe = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1755
- if (!Ye.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Ye.join(", ")}`);
1756
- let i = qe(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1754
+ ], Ze = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1755
+ if (!Xe.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Xe.join(", ")}`);
1756
+ let i = Je(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1757
1757
  let t = a.get(e);
1758
1758
  if (t !== void 0) return t;
1759
1759
  let n = i.test(e);
@@ -1762,7 +1762,7 @@ var Le = function(e) {
1762
1762
  return o.reset = () => {
1763
1763
  a = /* @__PURE__ */ new Map();
1764
1764
  }, o;
1765
- }, Ze = class {
1765
+ }, Qe = class {
1766
1766
  constructor(e, t) {
1767
1767
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1768
1768
  }
@@ -1775,23 +1775,23 @@ var Le = function(e) {
1775
1775
  t += 9;
1776
1776
  let i = 1, a = !1, o = !1, s = "";
1777
1777
  for (; t < e.length; t++) if (e[t] === "<" && !o) {
1778
- if (a && k(e, "!ENTITY", t)) {
1778
+ if (a && O(e, "!ENTITY", t)) {
1779
1779
  t += 7;
1780
1780
  let i, a;
1781
1781
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
1782
1782
  if (this.options.enabled !== !1 && this.options.maxEntityCount != null && r >= this.options.maxEntityCount) throw Error(`Entity count (${r + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
1783
1783
  n[i] = a, r++;
1784
1784
  }
1785
- } else if (a && k(e, "!ELEMENT", t)) {
1785
+ } else if (a && O(e, "!ELEMENT", t)) {
1786
1786
  t += 8;
1787
1787
  let { index: n } = this.readElementExp(e, t + 1);
1788
1788
  t = n;
1789
- } else if (a && k(e, "!ATTLIST", t)) t += 8;
1790
- else if (a && k(e, "!NOTATION", t)) {
1789
+ } else if (a && O(e, "!ATTLIST", t)) t += 8;
1790
+ else if (a && O(e, "!NOTATION", t)) {
1791
1791
  t += 9;
1792
1792
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
1793
1793
  t = n;
1794
- } else if (k(e, "!--", t)) o = !0;
1794
+ } else if (O(e, "!--", t)) o = !0;
1795
1795
  else throw Error("Invalid DOCTYPE");
1796
1796
  i++, s = "";
1797
1797
  } else if (e[t] === ">") {
@@ -1805,11 +1805,11 @@ var Le = function(e) {
1805
1805
  };
1806
1806
  }
1807
1807
  readEntityExp(e, t) {
1808
- t = O(e, t);
1808
+ t = D(e, t);
1809
1809
  let n = t;
1810
1810
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
1811
1811
  let r = e.substring(n, t);
1812
- if (A(r, { xmlVersion: this.xmlVersion }), t = O(e, t), !this.suppressValidationErr) {
1812
+ if (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), !this.suppressValidationErr) {
1813
1813
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
1814
1814
  if (e[t] === "%") throw Error("Parameter entities are not supported");
1815
1815
  }
@@ -1822,16 +1822,16 @@ var Le = function(e) {
1822
1822
  ];
1823
1823
  }
1824
1824
  readNotationExp(e, t) {
1825
- t = O(e, t);
1825
+ t = D(e, t);
1826
1826
  let n = t;
1827
1827
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1828
1828
  let r = e.substring(n, t);
1829
- !this.suppressValidationErr && A(r, { xmlVersion: this.xmlVersion }), t = O(e, t);
1829
+ !this.suppressValidationErr && k(r, { xmlVersion: this.xmlVersion }), t = D(e, t);
1830
1830
  let i = e.substring(t, t + 6).toUpperCase();
1831
1831
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
1832
- t += i.length, t = O(e, t);
1832
+ t += i.length, t = D(e, t);
1833
1833
  let a = null, o = null;
1834
- if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = O(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1834
+ if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = D(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1835
1835
  else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
1836
1836
  return {
1837
1837
  notationName: r,
@@ -1850,15 +1850,15 @@ var Le = function(e) {
1850
1850
  return t++, [t, r];
1851
1851
  }
1852
1852
  readElementExp(e, t) {
1853
- t = O(e, t);
1853
+ t = D(e, t);
1854
1854
  let n = t;
1855
1855
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1856
1856
  let r = e.substring(n, t);
1857
- if (!this.suppressValidationErr && !Je(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1858
- t = O(e, t);
1857
+ if (!this.suppressValidationErr && !Ye(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1858
+ t = D(e, t);
1859
1859
  let i = "";
1860
- if (e[t] === "E" && k(e, "MPTY", t)) t += 4;
1861
- else if (e[t] === "A" && k(e, "NY", t)) t += 2;
1860
+ if (e[t] === "E" && O(e, "MPTY", t)) t += 4;
1861
+ else if (e[t] === "A" && O(e, "NY", t)) t += 2;
1862
1862
  else if (e[t] === "(") {
1863
1863
  t++;
1864
1864
  let n = t;
@@ -1872,25 +1872,25 @@ var Le = function(e) {
1872
1872
  };
1873
1873
  }
1874
1874
  readAttlistExp(e, t) {
1875
- t = O(e, t);
1875
+ t = D(e, t);
1876
1876
  let n = t;
1877
1877
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1878
1878
  let r = e.substring(n, t);
1879
- for (A(r, { xmlVersion: this.xmlVersion }), t = O(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1879
+ for (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1880
1880
  let i = e.substring(n, t);
1881
- if (!A(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1882
- t = O(e, t);
1881
+ if (!k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1882
+ t = D(e, t);
1883
1883
  let a = "";
1884
1884
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
1885
- if (a = "NOTATION", t += 8, t = O(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1885
+ if (a = "NOTATION", t += 8, t = D(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1886
1886
  t++;
1887
1887
  let n = [];
1888
1888
  for (; t < e.length && e[t] !== ")";) {
1889
1889
  let r = t;
1890
1890
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
1891
1891
  let i = e.substring(r, t);
1892
- if (i = i.trim(), !A(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1893
- n.push(i), e[t] === "|" && (t++, t = O(e, t));
1892
+ if (i = i.trim(), !k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1893
+ n.push(i), e[t] === "|" && (t++, t = D(e, t));
1894
1894
  }
1895
1895
  if (e[t] !== ")") throw Error("Unterminated list of notations");
1896
1896
  t++, a += " (" + n.join("|") + ")";
@@ -1908,7 +1908,7 @@ var Le = function(e) {
1908
1908
  "NMTOKENS"
1909
1909
  ].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
1910
1910
  }
1911
- t = O(e, t);
1911
+ t = D(e, t);
1912
1912
  let o = "";
1913
1913
  return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
1914
1914
  elementName: r,
@@ -1918,21 +1918,21 @@ var Le = function(e) {
1918
1918
  index: t
1919
1919
  };
1920
1920
  }
1921
- }, O = (e, t) => {
1921
+ }, D = (e, t) => {
1922
1922
  for (; t < e.length && /\s/.test(e[t]);) t++;
1923
1923
  return t;
1924
1924
  };
1925
- function k(e, t, n) {
1925
+ function O(e, t, n) {
1926
1926
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
1927
1927
  return !0;
1928
1928
  }
1929
- function A(e, t) {
1930
- if (Je(e, { xmlVersion: t })) return e;
1929
+ function k(e, t) {
1930
+ if (Ye(e, { xmlVersion: t })) return e;
1931
1931
  throw Error(`Invalid entity name ${e}`);
1932
1932
  }
1933
1933
  //#endregion
1934
1934
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
1935
- var Qe = [
1935
+ var $e = [
1936
1936
  48,
1937
1937
  1632,
1938
1938
  1776,
@@ -1994,28 +1994,28 @@ var Qe = [
1994
1994
  124144,
1995
1995
  125264,
1996
1996
  130032
1997
- ], $e = /* @__PURE__ */ new Map(), et = 65535, tt = 1632, nt = new Uint8Array(63904).fill(255);
1998
- for (let e of Qe) for (let t = 0; t < 10; t++) {
1997
+ ], et = /* @__PURE__ */ new Map(), tt = 65535, nt = 1632, rt = new Uint8Array(63904).fill(255);
1998
+ for (let e of $e) for (let t = 0; t < 10; t++) {
1999
1999
  let n = e + t;
2000
- n <= et ? nt[n - tt] = t : $e.set(n, t);
2000
+ n <= tt ? rt[n - nt] = t : et.set(n, t);
2001
2001
  }
2002
2002
  //#endregion
2003
2003
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
2004
- var rt = 48, it = 57, at = 45, j = new Set([
2004
+ var it = 48, at = 57, ot = 45, A = new Set([
2005
2005
  8722,
2006
2006
  65293,
2007
2007
  65123
2008
2008
  ]);
2009
- function ot(e) {
2009
+ function st(e) {
2010
2010
  if (typeof e != "string") return e;
2011
2011
  let t = e.length;
2012
2012
  if (t === 0) return e;
2013
2013
  let n = -1;
2014
2014
  for (let r = 0; r < t; r++) {
2015
2015
  let i = e.charCodeAt(r);
2016
- if (!(i >= rt && i <= it || i === at)) {
2016
+ if (!(i >= it && i <= at || i === ot)) {
2017
2017
  if (i < 1632) {
2018
- if (j.has(i)) {
2018
+ if (A.has(i)) {
2019
2019
  n = r;
2020
2020
  break;
2021
2021
  }
@@ -2026,7 +2026,7 @@ function ot(e) {
2026
2026
  let t = e.charCodeAt(r + 1);
2027
2027
  if (t >= 56320 && t <= 57343) {
2028
2028
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
2029
- if ($e.has(e)) {
2029
+ if (et.has(e)) {
2030
2030
  n = r;
2031
2031
  break;
2032
2032
  }
@@ -2034,7 +2034,7 @@ function ot(e) {
2034
2034
  }
2035
2035
  continue;
2036
2036
  }
2037
- if (nt[i - 1632] !== 255 || j.has(i)) {
2037
+ if (rt[i - 1632] !== 255 || A.has(i)) {
2038
2038
  n = r;
2039
2039
  break;
2040
2040
  }
@@ -2045,19 +2045,19 @@ function ot(e) {
2045
2045
  n > 0 && r.push(e.slice(0, n));
2046
2046
  for (let i = n; i < t; i++) {
2047
2047
  let n = e.charCodeAt(i);
2048
- if (n >= rt && n <= it || n === at) {
2048
+ if (n >= it && n <= at || n === ot) {
2049
2049
  r.push(e[i]);
2050
2050
  continue;
2051
2051
  }
2052
2052
  if (n < 1632) {
2053
- r.push(j.has(n) ? "-" : e[i]);
2053
+ r.push(A.has(n) ? "-" : e[i]);
2054
2054
  continue;
2055
2055
  }
2056
2056
  if (n >= 55296 && n <= 56319) {
2057
2057
  if (i + 1 < t) {
2058
2058
  let t = e.charCodeAt(i + 1);
2059
2059
  if (t >= 56320 && t <= 57343) {
2060
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = $e.get(e);
2060
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = et.get(e);
2061
2061
  if (a !== void 0) {
2062
2062
  r.push(String.fromCharCode(a + 48)), i++;
2063
2063
  continue;
@@ -2067,18 +2067,18 @@ function ot(e) {
2067
2067
  r.push(e[i]);
2068
2068
  continue;
2069
2069
  }
2070
- if (j.has(n)) {
2070
+ if (A.has(n)) {
2071
2071
  r.push("-");
2072
2072
  continue;
2073
2073
  }
2074
- let a = nt[n - tt];
2074
+ let a = rt[n - nt];
2075
2075
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
2076
2076
  }
2077
2077
  return r.join("");
2078
2078
  }
2079
2079
  //#endregion
2080
2080
  //#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
2081
- var st = /^[-+]?0x[a-fA-F0-9]+$/, ct = /^0b[01]+$/, lt = /^0o[0-7]+$/, ut = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, dt = {
2081
+ var ct = /^[-+]?0x[a-fA-F0-9]+$/, lt = /^0b[01]+$/, ut = /^0o[0-7]+$/, dt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, ft = {
2082
2082
  hex: !0,
2083
2083
  binary: !1,
2084
2084
  octal: !1,
@@ -2088,20 +2088,20 @@ var st = /^[-+]?0x[a-fA-F0-9]+$/, ct = /^0b[01]+$/, lt = /^0o[0-7]+$/, ut = /^([
2088
2088
  infinity: "original",
2089
2089
  unicode: !1
2090
2090
  };
2091
- function ft(e, t = {}) {
2092
- if (t = Object.assign({}, dt, t), !e || typeof e != "string") return e;
2091
+ function pt(e, t = {}) {
2092
+ if (t = Object.assign({}, ft, t), !e || typeof e != "string") return e;
2093
2093
  let n = e.trim();
2094
2094
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2095
- if (n === "0" || t.unicode && (n = ot(n), n === "0")) return 0;
2096
- if (t.hex && st.test(n)) return M(n, 16);
2097
- if (t.binary && ct.test(n)) return M(n, 2);
2098
- if (t.octal && lt.test(n)) return M(n, 8);
2099
- if (!isFinite(n)) return gt(e, Number(n), t);
2100
- if (n.includes("e") || n.includes("E")) return mt(e, n, t);
2095
+ if (n === "0" || t.unicode && (n = st(n), n === "0")) return 0;
2096
+ if (t.hex && ct.test(n)) return _t(n, 16);
2097
+ if (t.binary && lt.test(n)) return _t(n, 2);
2098
+ if (t.octal && ut.test(n)) return _t(n, 8);
2099
+ if (!isFinite(n)) return vt(e, Number(n), t);
2100
+ if (n.includes("e") || n.includes("E")) return ht(e, n, t);
2101
2101
  {
2102
- let r = ut.exec(n);
2102
+ let r = dt.exec(n);
2103
2103
  if (r) {
2104
- let i = r[1] || "", a = r[2], o = ht(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2104
+ let i = r[1] || "", a = r[2], o = gt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2105
2105
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
2106
2106
  {
2107
2107
  let r = Number(n), s = String(r);
@@ -2114,26 +2114,26 @@ function ft(e, t = {}) {
2114
2114
  } else return e;
2115
2115
  }
2116
2116
  }
2117
- var pt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2118
- function mt(e, t, n) {
2117
+ var mt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2118
+ function ht(e, t, n) {
2119
2119
  if (!n.eNotation) return e;
2120
- let r = t.match(pt);
2120
+ let r = t.match(mt);
2121
2121
  if (r) {
2122
2122
  let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
2123
2123
  return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
2124
2124
  } else return e;
2125
2125
  }
2126
- function ht(e) {
2126
+ function gt(e) {
2127
2127
  return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
2128
2128
  }
2129
- function M(e, t) {
2129
+ function _t(e, t) {
2130
2130
  let n = e.trim();
2131
2131
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2132
2132
  if (Number.parseInt) return Number.parseInt(e, t);
2133
2133
  if (window && window.parseInt) return window.parseInt(e, t);
2134
2134
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2135
2135
  }
2136
- function gt(e, t, n) {
2136
+ function vt(e, t, n) {
2137
2137
  let r = t === Infinity;
2138
2138
  switch (n.infinity.toLowerCase()) {
2139
2139
  case "null": return null;
@@ -2144,14 +2144,14 @@ function gt(e, t, n) {
2144
2144
  }
2145
2145
  //#endregion
2146
2146
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2147
- function _t(e) {
2147
+ function yt(e) {
2148
2148
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2149
2149
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2150
2150
  } : () => !1;
2151
2151
  }
2152
2152
  //#endregion
2153
2153
  //#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
2154
- var N = class {
2154
+ var j = class {
2155
2155
  constructor(e, t = {}, n) {
2156
2156
  this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
2157
2157
  }
@@ -2207,7 +2207,7 @@ var N = class {
2207
2207
  toString() {
2208
2208
  return this.pattern;
2209
2209
  }
2210
- }, vt = class {
2210
+ }, bt = class {
2211
2211
  constructor() {
2212
2212
  this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._deepByTerminalTag = /* @__PURE__ */ new Map(), this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
2213
2213
  }
@@ -2265,7 +2265,7 @@ var N = class {
2265
2265
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2266
2266
  return null;
2267
2267
  }
2268
- }, yt = class {
2268
+ }, xt = class {
2269
2269
  constructor(e) {
2270
2270
  this._matcher = e;
2271
2271
  }
@@ -2322,9 +2322,9 @@ var N = class {
2322
2322
  matchesAny(e) {
2323
2323
  return e.matchesAny(this._matcher);
2324
2324
  }
2325
- }, P = class {
2325
+ }, M = class {
2326
2326
  constructor(e = {}) {
2327
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new yt(this), this._keptAttrs = [];
2327
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new xt(this), this._keptAttrs = [];
2328
2328
  }
2329
2329
  push(e, t = null, n = null, r = null) {
2330
2330
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2475,7 +2475,7 @@ var N = class {
2475
2475
  readOnly() {
2476
2476
  return this._view;
2477
2477
  }
2478
- }, F = [
2478
+ }, N = [
2479
2479
  {
2480
2480
  id: "html-script-open",
2481
2481
  description: "<script opening tag",
@@ -2561,7 +2561,7 @@ var N = class {
2561
2561
  description: "<form tag — can be used for phishing / credential harvesting injection",
2562
2562
  pattern: /<form[\s>/]/i
2563
2563
  }
2564
- ], I = [
2564
+ ], P = [
2565
2565
  {
2566
2566
  id: "xml-cdata-injection",
2567
2567
  description: "CDATA section injection: <![CDATA[ breaks out of text node context",
@@ -2622,7 +2622,7 @@ var N = class {
2622
2622
  description: "?> closes an enclosing processing instruction",
2623
2623
  pattern: /\?>/
2624
2624
  }
2625
- ], bt = [
2625
+ ], St = [
2626
2626
  {
2627
2627
  id: "svg-script-element",
2628
2628
  description: "<script element inside SVG executes JavaScript",
@@ -2688,7 +2688,7 @@ var N = class {
2688
2688
  description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
2689
2689
  pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
2690
2690
  }
2691
- ], L = [
2691
+ ], Ct = [
2692
2692
  {
2693
2693
  id: "sql-block-comment-open",
2694
2694
  description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
@@ -2764,7 +2764,7 @@ var N = class {
2764
2764
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
2765
2765
  pattern: /\bINFORMATION_SCHEMA\b/i
2766
2766
  }
2767
- ], xt = [
2767
+ ], wt = [
2768
2768
  {
2769
2769
  id: "shell-path-traversal-unix",
2770
2770
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -2855,7 +2855,7 @@ var N = class {
2855
2855
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
2856
2856
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
2857
2857
  }
2858
- ], St = [
2858
+ ], Tt = [
2859
2859
  {
2860
2860
  id: "redos-nested-quantifier-plus",
2861
2861
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -2896,71 +2896,71 @@ var N = class {
2896
2896
  description: "Long alternation with many similar branches — polynomial backtracking risk",
2897
2897
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
2898
2898
  }
2899
- ], R = "[\"'\\s]*:", Ct = [
2899
+ ], F = "[\"'\\s]*:", Et = [
2900
2900
  {
2901
2901
  id: "nosql-where-operator",
2902
2902
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
2903
- pattern: RegExp(`\\$where${R}`, "i")
2903
+ pattern: RegExp(`\\$where${F}`, "i")
2904
2904
  },
2905
2905
  {
2906
2906
  id: "nosql-ne-operator",
2907
2907
  description: "$ne — \"not equal\" operator used to bypass equality checks",
2908
- pattern: RegExp(`\\$ne${R}`, "i")
2908
+ pattern: RegExp(`\\$ne${F}`, "i")
2909
2909
  },
2910
2910
  {
2911
2911
  id: "nosql-gt-operator",
2912
2912
  description: "$gt — \"greater than\" used to bypass password/value checks",
2913
- pattern: RegExp(`\\$gte?${R}`, "i")
2913
+ pattern: RegExp(`\\$gte?${F}`, "i")
2914
2914
  },
2915
2915
  {
2916
2916
  id: "nosql-lt-operator",
2917
2917
  description: "$lt / $lte — \"less than\" bypass variants",
2918
- pattern: RegExp(`\\$lte?${R}`, "i")
2918
+ pattern: RegExp(`\\$lte?${F}`, "i")
2919
2919
  },
2920
2920
  {
2921
2921
  id: "nosql-regex-operator",
2922
2922
  description: "$regex — can be used to extract data character by character (blind injection)",
2923
- pattern: RegExp(`\\$regex${R}`, "i")
2923
+ pattern: RegExp(`\\$regex${F}`, "i")
2924
2924
  },
2925
2925
  {
2926
2926
  id: "nosql-or-operator",
2927
2927
  description: "$or — logical OR; used to create always-true conditions",
2928
- pattern: RegExp(`\\$or${R}\\s*\\[`, "i")
2928
+ pattern: RegExp(`\\$or${F}\\s*\\[`, "i")
2929
2929
  },
2930
2930
  {
2931
2931
  id: "nosql-and-operator",
2932
2932
  description: "$and — logical AND operator injection",
2933
- pattern: RegExp(`\\$and${R}\\s*\\[`, "i")
2933
+ pattern: RegExp(`\\$and${F}\\s*\\[`, "i")
2934
2934
  },
2935
2935
  {
2936
2936
  id: "nosql-nor-operator",
2937
2937
  description: "$nor — logical NOR operator injection",
2938
- pattern: RegExp(`\\$nor${R}\\s*\\[`, "i")
2938
+ pattern: RegExp(`\\$nor${F}\\s*\\[`, "i")
2939
2939
  },
2940
2940
  {
2941
2941
  id: "nosql-exists-operator",
2942
2942
  description: "$exists — can enumerate fields to determine schema",
2943
- pattern: RegExp(`\\$exists${R}`, "i")
2943
+ pattern: RegExp(`\\$exists${F}`, "i")
2944
2944
  },
2945
2945
  {
2946
2946
  id: "nosql-in-operator",
2947
2947
  description: "$in — matches any value in a list; can enumerate values",
2948
- pattern: RegExp(`\\$in${R}\\s*\\[`, "i")
2948
+ pattern: RegExp(`\\$in${F}\\s*\\[`, "i")
2949
2949
  },
2950
2950
  {
2951
2951
  id: "nosql-expr-operator",
2952
2952
  description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
2953
- pattern: RegExp(`\\$expr${R}`, "i")
2953
+ pattern: RegExp(`\\$expr${F}`, "i")
2954
2954
  },
2955
2955
  {
2956
2956
  id: "nosql-function-operator",
2957
2957
  description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
2958
- pattern: RegExp(`\\$function${R}`, "i")
2958
+ pattern: RegExp(`\\$function${F}`, "i")
2959
2959
  },
2960
2960
  {
2961
2961
  id: "nosql-accumulator-operator",
2962
2962
  description: "$accumulator — custom aggregation with arbitrary JS execution",
2963
- pattern: RegExp(`\\$accumulator${R}`, "i")
2963
+ pattern: RegExp(`\\$accumulator${F}`, "i")
2964
2964
  },
2965
2965
  {
2966
2966
  id: "nosql-proto-pollution",
@@ -2977,7 +2977,7 @@ var N = class {
2977
2977
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
2978
2978
  pattern: /\[["']__proto__["']\]/
2979
2979
  }
2980
- ], wt = [
2980
+ ], Dt = [
2981
2981
  {
2982
2982
  id: "log-crlf-injection",
2983
2983
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -3038,7 +3038,7 @@ var N = class {
3038
3038
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
3039
3039
  pattern: /\x1b\[/
3040
3040
  }
3041
- ], Tt = [
3041
+ ], Ot = [
3042
3042
  {
3043
3043
  id: "sql-line-comment",
3044
3044
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -3054,22 +3054,22 @@ var N = class {
3054
3054
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
3055
3055
  pattern: /\b0x[0-9a-f]{4,}/i
3056
3056
  }
3057
- ], Et = [...L, ...Tt];
3058
- F.label = "HTML", I.label = "XML", bt.label = "SVG", L.label = "SQL", Et.label = "SQL-STRICT", xt.label = "SHELL", St.label = "REDOS", Ct.label = "NOSQL", wt.label = "LOG", Object.freeze({
3059
- HTML: F,
3060
- XML: I,
3061
- SVG: bt,
3062
- SQL: L,
3063
- "SQL-STRICT": Et,
3064
- SHELL: xt,
3065
- REDOS: St,
3066
- NOSQL: Ct,
3067
- LOG: wt
3057
+ ], kt = [...Ct, ...Ot];
3058
+ N.label = "HTML", P.label = "XML", St.label = "SVG", Ct.label = "SQL", kt.label = "SQL-STRICT", wt.label = "SHELL", Tt.label = "REDOS", Et.label = "NOSQL", Dt.label = "LOG", Object.freeze({
3059
+ HTML: N,
3060
+ XML: P,
3061
+ SVG: St,
3062
+ SQL: Ct,
3063
+ "SQL-STRICT": kt,
3064
+ SHELL: wt,
3065
+ REDOS: Tt,
3066
+ NOSQL: Et,
3067
+ LOG: Dt
3068
3068
  });
3069
- function Dt(e) {
3069
+ function At(e) {
3070
3070
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
3071
3071
  }
3072
- function Ot(e) {
3072
+ function jt(e) {
3073
3073
  if (!(e instanceof RegExp)) {
3074
3074
  if (Array.isArray(e)) {
3075
3075
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -3081,7 +3081,7 @@ function Ot(e) {
3081
3081
  throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
3082
3082
  }
3083
3083
  }
3084
- function kt(e) {
3084
+ function Mt(e) {
3085
3085
  return e instanceof RegExp ? {
3086
3086
  lists: null,
3087
3087
  regex: e
@@ -3093,7 +3093,7 @@ function kt(e) {
3093
3093
  regex: null
3094
3094
  };
3095
3095
  }
3096
- function At(e, t) {
3096
+ function Nt(e, t) {
3097
3097
  let n = t.label ?? "CUSTOM";
3098
3098
  for (let r of t) if (r.pattern.test(e)) return {
3099
3099
  context: n,
@@ -3103,16 +3103,16 @@ function At(e, t) {
3103
3103
  };
3104
3104
  return null;
3105
3105
  }
3106
- function jt(e, t) {
3107
- Dt(e), Ot(t);
3108
- let { lists: n, regex: r } = kt(t);
3106
+ function Pt(e, t) {
3107
+ At(e), jt(t);
3108
+ let { lists: n, regex: r } = Mt(t);
3109
3109
  if (r) return r.test(e);
3110
- for (let t of n) if (At(e, t) !== null) return !0;
3110
+ for (let t of n) if (Nt(e, t) !== null) return !0;
3111
3111
  return !1;
3112
3112
  }
3113
3113
  //#endregion
3114
3114
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3115
- function Mt(e, t) {
3115
+ function Ft(e, t) {
3116
3116
  if (!e) return {};
3117
3117
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
3118
3118
  if (!n) return {};
@@ -3123,7 +3123,7 @@ function Mt(e, t) {
3123
3123
  } else r[e] = n[e];
3124
3124
  return r;
3125
3125
  }
3126
- function Nt(e) {
3126
+ function It(e) {
3127
3127
  if (!e || typeof e != "string") return;
3128
3128
  let t = e.indexOf(":");
3129
3129
  if (t !== -1 && t > 0) {
@@ -3131,14 +3131,14 @@ function Nt(e) {
3131
3131
  if (n !== "xmlns") return n;
3132
3132
  }
3133
3133
  }
3134
- var Pt = class {
3134
+ var Lt = class {
3135
3135
  constructor(e, t) {
3136
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = zt, this.parseTextData = Ft, this.resolveNameSpace = It, this.buildAttributesMap = Rt, this.isItStopNode = Ut, this.replaceEntitiesValue = Vt, this.readStopNodeData = qt, this.saveTextToParentTag = Ht, this.addChild = Bt, this.ignoreAttributesFn = _t(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3136
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Ht, this.parseTextData = Rt, this.resolveNameSpace = zt, this.buildAttributesMap = Vt, this.isItStopNode = Kt, this.replaceEntitiesValue = Wt, this.readStopNodeData = Yt, this.saveTextToParentTag = Gt, this.addChild = Ut, this.ignoreAttributesFn = yt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3137
3137
  let n = { ...Te };
3138
3138
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
3139
3139
  ...Ee,
3140
3140
  ...Se
3141
- }), this.entityDecoder = new Me({
3141
+ }), this.entityDecoder = new Ne({
3142
3142
  namedEntities: {
3143
3143
  ...n,
3144
3144
  ...t
@@ -3149,27 +3149,27 @@ var Pt = class {
3149
3149
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
3150
3150
  applyLimitsTo: this.options.processEntities.appliesTo
3151
3151
  },
3152
- onInputEntity: (e, t) => jt(t, [F, I]) ? x.BLOCK : x.ALLOW
3153
- })), this.matcher = new P(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new vt();
3152
+ onInputEntity: (e, t) => Pt(t, [N, P]) ? x.BLOCK : x.ALLOW
3153
+ })), this.matcher = new M(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new bt();
3154
3154
  let r = this.options.stopNodes;
3155
3155
  if (r && r.length > 0) {
3156
3156
  for (let e = 0; e < r.length; e++) {
3157
3157
  let t = r[e];
3158
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new N(t)) : t instanceof N && this.stopNodeExpressionsSet.add(t);
3158
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new j(t)) : t instanceof j && this.stopNodeExpressionsSet.add(t);
3159
3159
  }
3160
3160
  this.stopNodeExpressionsSet.seal();
3161
3161
  }
3162
3162
  }
3163
3163
  };
3164
- function Ft(e, t, n, r, i, a, o) {
3164
+ function Rt(e, t, n, r, i, a, o) {
3165
3165
  let s = this.options;
3166
3166
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
3167
3167
  o || (e = this.replaceEntitiesValue(e, t, n));
3168
3168
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
3169
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Jt(e, s.parseTagValue, s.numberParseOptions) : e;
3169
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Xt(e, s.parseTagValue, s.numberParseOptions) : e;
3170
3170
  }
3171
3171
  }
3172
- function It(e) {
3172
+ function zt(e) {
3173
3173
  if (this.options.removeNSPrefix) {
3174
3174
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
3175
3175
  if (t[0] === "xmlns") return "";
@@ -3177,11 +3177,11 @@ function It(e) {
3177
3177
  }
3178
3178
  return e;
3179
3179
  }
3180
- var Lt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3181
- function Rt(e, t, n, r = !1) {
3180
+ var Bt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3181
+ function Vt(e, t, n, r = !1) {
3182
3182
  let i = this.options;
3183
3183
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
3184
- let r = d(e, Lt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3184
+ let r = d(e, Bt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3185
3185
  for (let e = 0; e < a; e++) {
3186
3186
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
3187
3187
  if (t.length && a !== void 0) {
@@ -3195,9 +3195,9 @@ function Rt(e, t, n, r = !1) {
3195
3195
  let t = this.resolveNameSpace(r[e][1]);
3196
3196
  if (this.ignoreAttributesFn(t, u)) continue;
3197
3197
  let n = i.attributeNamePrefix + t;
3198
- if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Xt(n, i), r[e][4] !== void 0) {
3198
+ if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zt(n, i), r[e][4] !== void 0) {
3199
3199
  let r = s[e], a = i.attributeValueProcessor(t, r, u);
3200
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Jt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3200
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Xt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3201
3201
  } else i.allowBooleanAttributes && (o[n] = !0, f = !0);
3202
3202
  }
3203
3203
  if (!f) return;
@@ -3208,25 +3208,25 @@ function Rt(e, t, n, r = !1) {
3208
3208
  return o;
3209
3209
  }
3210
3210
  }
3211
- var zt = function(e) {
3211
+ var Ht = function(e) {
3212
3212
  e = e.replace(/\r\n?/g, "\n");
3213
- let t = new D("!xml"), n = t, r = "";
3213
+ let t = new E("!xml"), n = t, r = "";
3214
3214
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3215
- let i = this.options, a = new Ze(i.processEntities), o = e.length;
3215
+ let i = this.options, a = new Qe(i.processEntities), o = e.length;
3216
3216
  for (let s = 0; s < o; s++) if (e[s] === "<") {
3217
3217
  let c = e.charCodeAt(s + 1);
3218
3218
  if (c === 47) {
3219
- let t = z(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3219
+ let t = I(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3220
3220
  if (i.removeNSPrefix) {
3221
3221
  let e = a.indexOf(":");
3222
3222
  e !== -1 && (a = a.substr(e + 1));
3223
3223
  }
3224
- a = Yt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3224
+ a = R(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3225
3225
  let o = this.matcher.getCurrentTag();
3226
3226
  if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
3227
3227
  o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
3228
3228
  } else if (c === 63) {
3229
- let t = Kt(e, s, !1, "?>");
3229
+ let t = L(e, s, !1, "?>");
3230
3230
  if (!t) throw Error("Pi Tag is not closed.");
3231
3231
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3232
3232
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -3235,12 +3235,12 @@ var zt = function(e) {
3235
3235
  this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
3236
3236
  }
3237
3237
  if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
3238
- let e = new D(t.tagName);
3238
+ let e = new E(t.tagName);
3239
3239
  e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
3240
3240
  }
3241
3241
  s = t.closeIndex + 1;
3242
3242
  } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
3243
- let t = z(e, "-->", s + 4, "Comment is not closed.");
3243
+ let t = I(e, "-->", s + 4, "Comment is not closed.");
3244
3244
  if (i.commentPropName) {
3245
3245
  let a = e.substring(s + 4, t - 2);
3246
3246
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
@@ -3250,25 +3250,25 @@ var zt = function(e) {
3250
3250
  let t = a.readDocType(e, s);
3251
3251
  this.entityDecoder.addInputEntities(t.entities), s = t.i;
3252
3252
  } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
3253
- let t = z(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3253
+ let t = I(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3254
3254
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3255
3255
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3256
3256
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
3257
3257
  } else {
3258
- let a = Kt(e, s, i.removeNSPrefix);
3258
+ let a = L(e, s, i.removeNSPrefix);
3259
3259
  if (!a) {
3260
3260
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
3261
3261
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
3262
3262
  }
3263
3263
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
3264
- if ({tagName: c, tagExp: u} = Yt(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
3264
+ if ({tagName: c, tagExp: u} = R(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
3265
3265
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
3266
3266
  let p = n;
3267
3267
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
3268
3268
  let m = !1;
3269
3269
  u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
3270
3270
  let h = null, g;
3271
- g = Nt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Mt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3271
+ g = It(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Ft(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3272
3272
  let _ = s;
3273
3273
  if (this.isCurrentNodeStopNode) {
3274
3274
  let t = "";
@@ -3279,19 +3279,19 @@ var zt = function(e) {
3279
3279
  if (!n) throw Error(`Unexpected end of ${l}`);
3280
3280
  s = n.i, t = n.tagContent;
3281
3281
  }
3282
- let r = new D(c);
3282
+ let r = new E(c);
3283
3283
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
3284
3284
  } else {
3285
3285
  if (m) {
3286
- ({tagName: c, tagExp: u} = Yt(i.transformTagName, c, u, i));
3287
- let e = new D(c);
3286
+ ({tagName: c, tagExp: u} = R(i.transformTagName, c, u, i));
3287
+ let e = new E(c);
3288
3288
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3289
3289
  } else if (i.unpairedTagsSet.has(c)) {
3290
- let e = new D(c);
3290
+ let e = new E(c);
3291
3291
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
3292
3292
  continue;
3293
3293
  } else {
3294
- let e = new D(c);
3294
+ let e = new E(c);
3295
3295
  if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
3296
3296
  this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
3297
3297
  }
@@ -3301,12 +3301,12 @@ var zt = function(e) {
3301
3301
  } else r += e[s];
3302
3302
  return t.child;
3303
3303
  };
3304
- function Bt(e, t, n, r) {
3304
+ function Ut(e, t, n, r) {
3305
3305
  this.options.captureMetaData || (r = void 0);
3306
3306
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
3307
3307
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
3308
3308
  }
3309
- function Vt(e, t, n) {
3309
+ function Wt(e, t, n) {
3310
3310
  let r = this.options.processEntities;
3311
3311
  if (!r || !r.enabled) return e;
3312
3312
  if (r.allowedTags) {
@@ -3319,13 +3319,13 @@ function Vt(e, t, n) {
3319
3319
  }
3320
3320
  return this.entityDecoder.decode(e);
3321
3321
  }
3322
- function Ht(e, t, n, r) {
3322
+ function Gt(e, t, n, r) {
3323
3323
  return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
3324
3324
  }
3325
- function Ut() {
3325
+ function Kt() {
3326
3326
  return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
3327
3327
  }
3328
- function Wt(e, t, n = ">") {
3328
+ function qt(e, t, n = ">") {
3329
3329
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
3330
3330
  for (let n = t; n < i; n++) {
3331
3331
  let t = e.charCodeAt(n);
@@ -3343,18 +3343,18 @@ function Wt(e, t, n = ">") {
3343
3343
  else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
3344
3344
  }
3345
3345
  }
3346
- function z(e, t, n, r) {
3346
+ function I(e, t, n, r) {
3347
3347
  let i = e.indexOf(t, n);
3348
3348
  if (i === -1) throw Error(r);
3349
3349
  return i + t.length - 1;
3350
3350
  }
3351
- function Gt(e, t, n, r) {
3351
+ function Jt(e, t, n, r) {
3352
3352
  let i = e.indexOf(t, n);
3353
3353
  if (i === -1) throw Error(r);
3354
3354
  return i;
3355
3355
  }
3356
- function Kt(e, t, n, r = ">") {
3357
- let i = Wt(e, t + 1, r);
3356
+ function L(e, t, n, r = ">") {
3357
+ let i = qt(e, t + 1, r);
3358
3358
  if (!i) return;
3359
3359
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
3360
3360
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -3371,50 +3371,50 @@ function Kt(e, t, n, r = ">") {
3371
3371
  rawTagName: u
3372
3372
  };
3373
3373
  }
3374
- function qt(e, t, n) {
3374
+ function Yt(e, t, n) {
3375
3375
  let r = n, i = 1, a = e.length;
3376
3376
  for (; n < a; n++) if (e[n] === "<") {
3377
3377
  let a = e.charCodeAt(n + 1);
3378
3378
  if (a === 47) {
3379
- let a = Gt(e, ">", n, `${t} is not closed`);
3379
+ let a = Jt(e, ">", n, `${t} is not closed`);
3380
3380
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
3381
3381
  tagContent: e.substring(r, n),
3382
3382
  i: a
3383
3383
  };
3384
3384
  n = a;
3385
- } else if (a === 63) n = z(e, "?>", n + 1, "StopNode is not closed.");
3386
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = z(e, "-->", n + 3, "StopNode is not closed.");
3387
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = z(e, "]]>", n, "StopNode is not closed.") - 2;
3385
+ } else if (a === 63) n = I(e, "?>", n + 1, "StopNode is not closed.");
3386
+ else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = I(e, "-->", n + 3, "StopNode is not closed.");
3387
+ else if (a === 33 && e.charCodeAt(n + 2) === 91) n = I(e, "]]>", n, "StopNode is not closed.") - 2;
3388
3388
  else {
3389
- let r = Kt(e, n, !1);
3389
+ let r = L(e, n, !1);
3390
3390
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
3391
3391
  }
3392
3392
  }
3393
3393
  }
3394
- function Jt(e, t, n) {
3394
+ function Xt(e, t, n) {
3395
3395
  if (t && typeof e == "string") {
3396
3396
  let t = e.trim();
3397
- return t === "true" ? !0 : t === "false" ? !1 : ft(e, n);
3397
+ return t === "true" ? !0 : t === "false" ? !1 : pt(e, n);
3398
3398
  } else if (p(e)) return e;
3399
3399
  else return "";
3400
3400
  }
3401
- function Yt(e, t, n, r) {
3401
+ function R(e, t, n, r) {
3402
3402
  if (e) {
3403
3403
  let r = e(t);
3404
3404
  n === t && (n = r), t = r;
3405
3405
  }
3406
- return t = Xt(t, r), {
3406
+ return t = Zt(t, r), {
3407
3407
  tagName: t,
3408
3408
  tagExp: n
3409
3409
  };
3410
3410
  }
3411
- function Xt(e, t) {
3411
+ function Zt(e, t) {
3412
3412
  if (h.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3413
3413
  return m.includes(e) ? t.onDangerousProperty(e) : e;
3414
3414
  }
3415
3415
  //#endregion
3416
3416
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3417
- var Zt = D.getMetaDataSymbol();
3417
+ var z = E.getMetaDataSymbol();
3418
3418
  function Qt(e, t) {
3419
3419
  if (!e || typeof e != "object") return {};
3420
3420
  if (!t) return e;
@@ -3440,7 +3440,7 @@ function en(e, t, n, r) {
3440
3440
  else if (c === void 0) continue;
3441
3441
  else if (s[c]) {
3442
3442
  let e = en(s[c], t, n, r), i = rn(e, t);
3443
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? nn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[Zt] !== void 0 && typeof e == "object" && e && (e[Zt] = s[Zt]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3443
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? nn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[z] !== void 0 && typeof e == "object" && e && (e[z] = s[z]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3444
3444
  else {
3445
3445
  let n = t.jPath ? r.toString() : r;
3446
3446
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -3474,7 +3474,7 @@ function rn(e, t) {
3474
3474
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3475
3475
  var an = class {
3476
3476
  constructor(e) {
3477
- this.externalEntities = {}, this.options = Le(e);
3477
+ this.externalEntities = {}, this.options = Re(e);
3478
3478
  }
3479
3479
  parse(e, t) {
3480
3480
  if (typeof e != "string" && e.toString) e = e.toString();
@@ -3484,7 +3484,7 @@ var an = class {
3484
3484
  let n = _(e, t);
3485
3485
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3486
3486
  }
3487
- let n = new Pt(this.options, this.externalEntities), r = n.parseXml(e);
3487
+ let n = new Lt(this.options, this.externalEntities), r = n.parseXml(e);
3488
3488
  return this.options.preserveOrder || r === void 0 ? r : $t(r, this.options, n.matcher, n.readonlyMatcher);
3489
3489
  }
3490
3490
  addEntity(e, t) {
@@ -3494,7 +3494,7 @@ var an = class {
3494
3494
  this.externalEntities[e] = t;
3495
3495
  }
3496
3496
  static getMetaDataSymbol() {
3497
- return D.getMetaDataSymbol();
3497
+ return E.getMetaDataSymbol();
3498
3498
  }
3499
3499
  };
3500
3500
  //#endregion
@@ -3535,9 +3535,9 @@ function dn(e, t) {
3535
3535
  let r = [];
3536
3536
  if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
3537
3537
  let n = t.stopNodes[e];
3538
- typeof n == "string" ? r.push(new N(n)) : n instanceof N && r.push(n);
3538
+ typeof n == "string" ? r.push(new j(n)) : n instanceof j && r.push(n);
3539
3539
  }
3540
- let i = Xe("qName", { xmlVersion: ln(e, t) }), a = new P();
3540
+ let i = Ze("qName", { xmlVersion: ln(e, t) }), a = new M();
3541
3541
  return fn(e, t, n, a, r, i);
3542
3542
  }
3543
3543
  function fn(e, t, n, r, i, a) {
@@ -3546,7 +3546,7 @@ function fn(e, t, n, r, i, a) {
3546
3546
  if (!Array.isArray(e)) {
3547
3547
  if (e != null) {
3548
3548
  let n = e.toString();
3549
- return n = yn(n, t), n;
3549
+ return n = V(n, t), n;
3550
3550
  }
3551
3551
  return "";
3552
3552
  }
@@ -3558,7 +3558,7 @@ function fn(e, t, n, r, i, a) {
3558
3558
  let p = vn(r, i);
3559
3559
  if (d === t.textNodeName) {
3560
3560
  let e = l[u];
3561
- p || (e = t.tagValueProcessor(d, e), e = yn(e, t)), s && (o += n), o += e, s = !1, r.pop();
3561
+ p || (e = t.tagValueProcessor(d, e), e = V(e, t)), s && (o += n), o += e, s = !1, r.pop();
3562
3562
  continue;
3563
3563
  } else if (d === t.cdataPropName) {
3564
3564
  s && (o += n);
@@ -3628,7 +3628,7 @@ function _n(e, t, n, r, i) {
3628
3628
  if (e && !t.ignoreAttributes) for (let o in e) {
3629
3629
  if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
3630
3630
  let s = o.substr(t.attributeNamePrefix.length), c = n ? s : un(s, !0, t, r, i), l;
3631
- n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = yn(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${B(l)}"`;
3631
+ n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = V(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${B(l)}"`;
3632
3632
  }
3633
3633
  return a;
3634
3634
  }
@@ -3637,7 +3637,7 @@ function vn(e, t) {
3637
3637
  for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
3638
3638
  return !1;
3639
3639
  }
3640
- function yn(e, t) {
3640
+ function V(e, t) {
3641
3641
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
3642
3642
  let r = t.entities[n];
3643
3643
  e = e.replace(r.regex, r.val);
@@ -3646,14 +3646,14 @@ function yn(e, t) {
3646
3646
  }
3647
3647
  //#endregion
3648
3648
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
3649
- function bn(e) {
3649
+ function yn(e) {
3650
3650
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
3651
3651
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
3652
3652
  } : () => !1;
3653
3653
  }
3654
3654
  //#endregion
3655
3655
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
3656
- var xn = {
3656
+ var bn = {
3657
3657
  attributeNamePrefix: "@_",
3658
3658
  attributesGroupName: !1,
3659
3659
  textNodeName: "#text",
@@ -3702,18 +3702,18 @@ var xn = {
3702
3702
  jPath: !0,
3703
3703
  sanitizeName: !1
3704
3704
  };
3705
- function V(e) {
3706
- if (this.options = Object.assign({}, xn, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
3705
+ function H(e) {
3706
+ if (this.options = Object.assign({}, bn, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
3707
3707
  let t = this.options.stopNodes[e];
3708
- typeof t == "string" ? this.stopNodeExpressions.push(new N(t)) : t instanceof N && this.stopNodeExpressions.push(t);
3708
+ typeof t == "string" ? this.stopNodeExpressions.push(new j(t)) : t instanceof j && this.stopNodeExpressions.push(t);
3709
3709
  }
3710
3710
  this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3711
3711
  return !1;
3712
- } : (this.ignoreAttributesFn = bn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = En), this.processTextOrObjNode = wn, this.options.format ? (this.indentate = Tn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3712
+ } : (this.ignoreAttributesFn = yn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = wn), this.processTextOrObjNode = Sn, this.options.format ? (this.indentate = Cn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3713
3713
  return "";
3714
3714
  }, this.tagEndChar = ">", this.newLine = "");
3715
3715
  }
3716
- function Sn(e, t) {
3716
+ function xn(e, t) {
3717
3717
  let n = e["?xml"];
3718
3718
  if (n && typeof n == "object") {
3719
3719
  if (t.attributesGroupName && n[t.attributesGroupName]) {
@@ -3725,33 +3725,33 @@ function Sn(e, t) {
3725
3725
  }
3726
3726
  return "1.0";
3727
3727
  }
3728
- function Cn(e, t, n, r, i) {
3728
+ function U(e, t, n, r, i) {
3729
3729
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3730
3730
  isAttribute: t,
3731
3731
  matcher: r.readOnly()
3732
3732
  });
3733
3733
  }
3734
- V.prototype.build = function(e) {
3734
+ H.prototype.build = function(e) {
3735
3735
  if (this.options.preserveOrder) return dn(e, this.options);
3736
3736
  {
3737
3737
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
3738
- let t = new P(), n = Xe("qName", { xmlVersion: Sn(e, this.options) });
3738
+ let t = new M(), n = Ze("qName", { xmlVersion: xn(e, this.options) });
3739
3739
  return this.j2x(e, 0, t, n).val;
3740
3740
  }
3741
- }, V.prototype.j2x = function(e, t, n, r) {
3741
+ }, H.prototype.j2x = function(e, t, n, r) {
3742
3742
  let i = "", a = "";
3743
3743
  if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
3744
3744
  let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
3745
3745
  for (let c in e) {
3746
3746
  if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
3747
- let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : Cn(c, !1, this.options, n, r);
3747
+ let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : U(c, !1, this.options, n, r);
3748
3748
  if (e[c] === void 0) this.isAttribute(c) && (a += "");
3749
3749
  else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
3750
3750
  else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
3751
3751
  else if (typeof e[c] != "object") {
3752
3752
  let u = this.isAttribute(c);
3753
3753
  if (u && !this.ignoreAttributesFn(u, o)) {
3754
- let t = Cn(u, !0, this.options, n, r);
3754
+ let t = U(u, !0, this.options, n, r);
3755
3755
  i += this.buildAttrPairStr(t, "" + e[c], s);
3756
3756
  } else if (!u) if (c === this.options.textNodeName) {
3757
3757
  let t = this.options.tagValueProcessor(c, "" + e[c]);
@@ -3790,7 +3790,7 @@ V.prototype.build = function(e) {
3790
3790
  } else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
3791
3791
  let t = Object.keys(e[c]), a = t.length;
3792
3792
  for (let o = 0; o < a; o++) {
3793
- let a = Cn(t[o], !0, this.options, n, r);
3793
+ let a = U(t[o], !0, this.options, n, r);
3794
3794
  i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
3795
3795
  }
3796
3796
  } else a += this.processTextOrObjNode(e[c], l, t, n, r);
@@ -3799,10 +3799,10 @@ V.prototype.build = function(e) {
3799
3799
  attrStr: i,
3800
3800
  val: a
3801
3801
  };
3802
- }, V.prototype.buildAttrPairStr = function(e, t, n) {
3802
+ }, H.prototype.buildAttrPairStr = function(e, t, n) {
3803
3803
  return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + B(t) + "\"";
3804
3804
  };
3805
- function wn(e, t, n, r, i) {
3805
+ function Sn(e, t, n, r, i) {
3806
3806
  let a = this.extractAttributes(e);
3807
3807
  if (r.push(t, a), this.checkStopNode(r)) {
3808
3808
  let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
@@ -3811,7 +3811,7 @@ function wn(e, t, n, r, i) {
3811
3811
  let o = this.j2x(e, n + 1, r, i);
3812
3812
  return r.pop(), t[0] === "?" ? this.buildTextValNode("", t, o.attrStr, n, r) : e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, o.attrStr, n, r) : this.buildObjectNode(o.val, t, o.attrStr, n);
3813
3813
  }
3814
- V.prototype.extractAttributes = function(e) {
3814
+ H.prototype.extractAttributes = function(e) {
3815
3815
  if (!e || typeof e != "object") return null;
3816
3816
  let t = {}, n = !1;
3817
3817
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3827,7 +3827,7 @@ V.prototype.extractAttributes = function(e) {
3827
3827
  i && (t[i] = B(e[r]), n = !0);
3828
3828
  }
3829
3829
  return n ? t : null;
3830
- }, V.prototype.buildRawContent = function(e) {
3830
+ }, H.prototype.buildRawContent = function(e) {
3831
3831
  if (typeof e == "string") return e;
3832
3832
  if (typeof e != "object" || !e) return String(e);
3833
3833
  if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
@@ -3848,7 +3848,7 @@ V.prototype.extractAttributes = function(e) {
3848
3848
  } else t += `<${n}>${r}</${n}>`;
3849
3849
  }
3850
3850
  return t;
3851
- }, V.prototype.buildAttributesForStopNode = function(e) {
3851
+ }, H.prototype.buildAttributesForStopNode = function(e) {
3852
3852
  if (!e || typeof e != "object") return "";
3853
3853
  let t = "";
3854
3854
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3867,21 +3867,21 @@ V.prototype.extractAttributes = function(e) {
3867
3867
  }
3868
3868
  }
3869
3869
  return t;
3870
- }, V.prototype.buildObjectNode = function(e, t, n, r) {
3870
+ }, H.prototype.buildObjectNode = function(e, t, n, r) {
3871
3871
  if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
3872
3872
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3873
3873
  {
3874
3874
  let i = "</" + t + this.tagEndChar, a = "";
3875
3875
  return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${on(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
3876
3876
  }
3877
- }, V.prototype.closeTag = function(e) {
3877
+ }, H.prototype.closeTag = function(e) {
3878
3878
  let t = "";
3879
3879
  return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
3880
- }, V.prototype.checkStopNode = function(e) {
3880
+ }, H.prototype.checkStopNode = function(e) {
3881
3881
  if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
3882
3882
  for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
3883
3883
  return !1;
3884
- }, V.prototype.buildTextValNode = function(e, t, n, r, i) {
3884
+ }, H.prototype.buildTextValNode = function(e, t, n, r, i) {
3885
3885
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
3886
3886
  let t = sn(e);
3887
3887
  return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
@@ -3893,63 +3893,63 @@ V.prototype.extractAttributes = function(e) {
3893
3893
  let i = this.options.tagValueProcessor(t, e);
3894
3894
  return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
3895
3895
  }
3896
- }, V.prototype.replaceEntitiesValue = function(e) {
3896
+ }, H.prototype.replaceEntitiesValue = function(e) {
3897
3897
  if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
3898
3898
  let n = this.options.entities[t];
3899
3899
  e = e.replace(n.regex, n.val);
3900
3900
  }
3901
3901
  return e;
3902
3902
  };
3903
- function Tn(e) {
3903
+ function Cn(e) {
3904
3904
  return this.options.indentBy.repeat(e);
3905
3905
  }
3906
- function En(e) {
3906
+ function wn(e) {
3907
3907
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
3908
3908
  }
3909
3909
  //#endregion
3910
3910
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
3911
- var Dn = V, H = e.object({
3911
+ var Tn = H, W = e.object({
3912
3912
  created_at: e.string(),
3913
3913
  updated_at: e.string()
3914
- }), On = e.enum([
3914
+ }), En = e.enum([
3915
3915
  "local",
3916
3916
  "shared",
3917
3917
  "platform"
3918
- ]), kn = e.enum([
3918
+ ]), Dn = e.enum([
3919
3919
  "none",
3920
3920
  "secrets",
3921
3921
  "fields"
3922
- ]), U = {
3923
- scope: On.optional(),
3924
- override: kn.optional(),
3922
+ ]), G = {
3923
+ scope: En.optional(),
3924
+ override: Dn.optional(),
3925
3925
  enforce: e.boolean().optional()
3926
- }, An = e.object({
3926
+ }, On = e.object({
3927
3927
  id: e.string(),
3928
3928
  version: e.string().optional()
3929
- }), jn = e.object({
3929
+ }), kn = e.object({
3930
3930
  name: e.string(),
3931
3931
  version: e.string()
3932
- }), Mn = e.object({
3932
+ }), An = e.object({
3933
3933
  name: e.string(),
3934
3934
  value: e.string().optional()
3935
- }), Nn = e.object({
3935
+ }), jn = e.object({
3936
3936
  name: e.string().max(255),
3937
3937
  code: e.string().max(1e5),
3938
- supported_triggers: e.array(An).optional(),
3938
+ supported_triggers: e.array(On).optional(),
3939
3939
  runtime: e.string().max(50).optional(),
3940
- dependencies: e.array(jn).optional(),
3941
- secrets: e.array(Mn).optional(),
3940
+ dependencies: e.array(kn).optional(),
3941
+ secrets: e.array(An).optional(),
3942
3942
  is_system: e.boolean().optional(),
3943
- ...U,
3943
+ ...G,
3944
3944
  inherit: e.boolean().optional()
3945
3945
  });
3946
- Nn.partial().extend({
3946
+ jn.partial().extend({
3947
3947
  status: e.enum(["draft", "built"]).optional(),
3948
3948
  deployed_at: e.string().optional()
3949
3949
  });
3950
3950
  //#endregion
3951
3951
  //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3952
- var Pn = Nn.extend({
3952
+ var Mn = jn.extend({
3953
3953
  id: e.string(),
3954
3954
  tenant_id: e.string(),
3955
3955
  status: e.enum(["draft", "built"]).default("built"),
@@ -3958,25 +3958,25 @@ var Pn = Nn.extend({
3958
3958
  name: e.string(),
3959
3959
  value: e.string().optional()
3960
3960
  })).optional()
3961
- }).extend(H.shape), Fn = e.object({ name: e.string() });
3962
- Pn.extend({ secrets: e.array(Fn).optional() });
3963
- var In = e.string(), Ln = e.enum([
3961
+ }).extend(W.shape), Nn = e.object({ name: e.string() });
3962
+ Mn.extend({ secrets: e.array(Nn).optional() });
3963
+ var Pn = e.string(), Fn = e.enum([
3964
3964
  "unspecified",
3965
3965
  "pending",
3966
3966
  "final",
3967
3967
  "partial",
3968
3968
  "canceled",
3969
3969
  "suspended"
3970
- ]), Rn = e.object({
3970
+ ]), In = e.object({
3971
3971
  id: e.string(),
3972
3972
  msg: e.string(),
3973
3973
  url: e.string().optional()
3974
- }), zn = e.object({
3974
+ }), Ln = e.object({
3975
3975
  action_name: e.string(),
3976
- error: Rn.nullable(),
3976
+ error: In.nullable(),
3977
3977
  started_at: e.string(),
3978
3978
  ended_at: e.string()
3979
- }), Bn = e.object({
3979
+ }), Rn = e.object({
3980
3980
  level: e.enum([
3981
3981
  "log",
3982
3982
  "info",
@@ -3985,17 +3985,17 @@ var In = e.string(), Ln = e.enum([
3985
3985
  "debug"
3986
3986
  ]),
3987
3987
  message: e.string()
3988
- }), Vn = e.array(e.object({
3988
+ }), zn = e.array(e.object({
3989
3989
  action_name: e.string(),
3990
- lines: e.array(Bn)
3990
+ lines: e.array(Rn)
3991
3991
  }));
3992
3992
  e.object({
3993
3993
  id: e.string(),
3994
3994
  tenant_id: e.string(),
3995
- trigger_id: In,
3996
- status: Ln,
3997
- results: e.array(zn),
3998
- logs: Vn.optional(),
3995
+ trigger_id: Pn,
3996
+ status: Fn,
3997
+ results: e.array(Ln),
3998
+ logs: zn.optional(),
3999
3999
  created_at: e.string(),
4000
4000
  updated_at: e.string()
4001
4001
  }).omit({
@@ -4006,21 +4006,21 @@ e.object({
4006
4006
  action_id: e.string(),
4007
4007
  code: e.string().max(1e5),
4008
4008
  runtime: e.string().max(50).optional(),
4009
- dependencies: e.array(jn).optional(),
4010
- secrets: e.array(Mn).optional(),
4011
- supported_triggers: e.array(An).optional(),
4009
+ dependencies: e.array(kn).optional(),
4010
+ secrets: e.array(An).optional(),
4011
+ supported_triggers: e.array(On).optional(),
4012
4012
  deployed: e.boolean().default(!0)
4013
4013
  }).extend({
4014
4014
  id: e.string(),
4015
4015
  tenant_id: e.string(),
4016
4016
  number: e.number().int()
4017
- }).extend(H.shape);
4018
- var Hn = e.enum([
4017
+ }).extend(W.shape);
4018
+ var Bn = e.enum([
4019
4019
  "user_action",
4020
4020
  "admin_action",
4021
4021
  "system",
4022
4022
  "api"
4023
- ]), Un = e.object({
4023
+ ]), Vn = e.object({
4024
4024
  type: e.enum([
4025
4025
  "user",
4026
4026
  "admin",
@@ -4034,7 +4034,7 @@ var Hn = e.enum([
4034
4034
  org_name: e.string().optional(),
4035
4035
  scopes: e.array(e.string()).optional(),
4036
4036
  client_id: e.string().optional()
4037
- }), Wn = e.object({
4037
+ }), Hn = e.object({
4038
4038
  type: e.string(),
4039
4039
  id: e.string(),
4040
4040
  before: e.record(e.string(), e.unknown()).optional(),
@@ -4043,7 +4043,7 @@ var Hn = e.enum([
4043
4043
  old: e.unknown(),
4044
4044
  new: e.unknown()
4045
4045
  })).optional()
4046
- }), Gn = e.object({
4046
+ }), Un = e.object({
4047
4047
  user: e.object({
4048
4048
  user_id: e.string(),
4049
4049
  name: e.string().optional(),
@@ -4054,7 +4054,7 @@ var Hn = e.enum([
4054
4054
  jti: e.string().optional(),
4055
4055
  scopes: e.array(e.string()).optional()
4056
4056
  }).optional()
4057
- }), Kn = e.object({
4057
+ }), Wn = e.object({
4058
4058
  method: e.string(),
4059
4059
  path: e.string(),
4060
4060
  query: e.record(e.string(), e.string()).optional(),
@@ -4064,18 +4064,18 @@ var Hn = e.enum([
4064
4064
  correlation_id: e.string().optional(),
4065
4065
  redirect_uri: e.string().optional(),
4066
4066
  authorization_url: e.string().optional(),
4067
- auth: Gn.optional()
4068
- }), qn = e.object({
4067
+ auth: Un.optional()
4068
+ }), Gn = e.object({
4069
4069
  status_code: e.number(),
4070
4070
  body: e.unknown().optional()
4071
- }), Jn = e.object({
4071
+ }), Kn = e.object({
4072
4072
  country_code: e.string(),
4073
4073
  city_name: e.string(),
4074
4074
  latitude: e.string(),
4075
4075
  longitude: e.string(),
4076
4076
  time_zone: e.string(),
4077
4077
  continent_code: e.string()
4078
- }), Yn = e.object({
4078
+ }), qn = e.object({
4079
4079
  name: e.string(),
4080
4080
  version: e.string(),
4081
4081
  env: e.record(e.string(), e.string()).optional()
@@ -4085,11 +4085,11 @@ e.object({
4085
4085
  event_type: e.string(),
4086
4086
  log_type: e.string(),
4087
4087
  description: e.string().optional(),
4088
- category: Hn,
4089
- actor: Un,
4090
- target: Wn,
4091
- request: Kn,
4092
- response: qn.optional(),
4088
+ category: Bn,
4089
+ actor: Vn,
4090
+ target: Hn,
4091
+ request: Wn,
4092
+ response: Gn.optional(),
4093
4093
  connection: e.string().optional(),
4094
4094
  connection_id: e.string().optional(),
4095
4095
  client_name: e.string().optional(),
@@ -4097,8 +4097,8 @@ e.object({
4097
4097
  strategy_type: e.string().optional(),
4098
4098
  audience: e.string().optional(),
4099
4099
  scope: e.string().optional(),
4100
- location: Jn.optional(),
4101
- auth0_client: Yn.optional(),
4100
+ location: Kn.optional(),
4101
+ auth0_client: qn.optional(),
4102
4102
  hostname: e.string(),
4103
4103
  is_mobile: e.boolean().optional(),
4104
4104
  execution_id: e.string().optional(),
@@ -4116,14 +4116,14 @@ e.object({
4116
4116
  "SEND_REQUEST",
4117
4117
  "SEND_EMAIL"
4118
4118
  ]), e.enum(["VERIFY_EMAIL"]);
4119
- var Xn = e.object({
4119
+ var Jn = e.object({
4120
4120
  require_mx_record: e.boolean().optional(),
4121
4121
  block_aliases: e.boolean().optional(),
4122
4122
  block_free_emails: e.boolean().optional(),
4123
4123
  block_disposable_emails: e.boolean().optional(),
4124
4124
  blocklist: e.array(e.string()).optional(),
4125
4125
  allowlist: e.array(e.string()).optional()
4126
- }), Zn = e.object({
4126
+ }), Yn = e.object({
4127
4127
  id: e.string(),
4128
4128
  alias: e.string().max(100).optional(),
4129
4129
  type: e.literal("AUTH0"),
@@ -4135,7 +4135,7 @@ var Xn = e.object({
4135
4135
  user_id: e.string(),
4136
4136
  changes: e.record(e.string(), e.any())
4137
4137
  })
4138
- }), Qn = e.object({
4138
+ }), Xn = e.object({
4139
4139
  id: e.string(),
4140
4140
  alias: e.string().max(100).optional(),
4141
4141
  type: e.literal("EMAIL"),
@@ -4144,13 +4144,13 @@ var Xn = e.object({
4144
4144
  mask_output: e.boolean().optional(),
4145
4145
  params: e.object({
4146
4146
  email: e.string(),
4147
- rules: Xn.optional()
4147
+ rules: Jn.optional()
4148
4148
  })
4149
- }), $n = e.enum([
4149
+ }), Zn = e.enum([
4150
4150
  "change-email",
4151
4151
  "account",
4152
4152
  "custom"
4153
- ]), er = e.object({
4153
+ ]), Qn = e.object({
4154
4154
  id: e.string(),
4155
4155
  alias: e.string().max(100).optional(),
4156
4156
  type: e.literal("REDIRECT"),
@@ -4158,18 +4158,18 @@ var Xn = e.object({
4158
4158
  allow_failure: e.boolean().optional(),
4159
4159
  mask_output: e.boolean().optional(),
4160
4160
  params: e.object({
4161
- target: $n.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4161
+ target: Zn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4162
4162
  custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
4163
4163
  })
4164
- }), tr = e.union([
4165
- Zn,
4166
- Qn,
4167
- er
4164
+ }), $n = e.union([
4165
+ Yn,
4166
+ Xn,
4167
+ Qn
4168
4168
  ]);
4169
4169
  e.object({
4170
4170
  name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
4171
- actions: e.array(tr).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4172
- }).extend(H.shape).extend({ id: e.string().openapi({
4171
+ actions: e.array($n).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4172
+ }).extend(W.shape).extend({ id: e.string().openapi({
4173
4173
  description: "Unique identifier for the flow",
4174
4174
  example: "af_12tMpdJ3iek7svMyZkSh5M"
4175
4175
  }) }), e.object({
@@ -4185,7 +4185,7 @@ e.object({
4185
4185
  total: e.number().optional(),
4186
4186
  next: e.string().optional()
4187
4187
  });
4188
- var nr = e.object({
4188
+ var er = e.object({
4189
4189
  email: e.string().optional(),
4190
4190
  email_verified: e.boolean().optional(),
4191
4191
  name: e.string().optional(),
@@ -4194,7 +4194,7 @@ var nr = e.object({
4194
4194
  phone_number: e.string().optional(),
4195
4195
  phone_verified: e.boolean().optional(),
4196
4196
  family_name: e.string().optional()
4197
- }).catchall(e.any()), rr = e.object({
4197
+ }).catchall(e.any()), tr = e.object({
4198
4198
  connection: e.string(),
4199
4199
  user_id: e.string(),
4200
4200
  provider: e.string(),
@@ -4207,15 +4207,15 @@ var nr = e.object({
4207
4207
  access_token: e.string().optional(),
4208
4208
  access_token_secret: e.string().optional(),
4209
4209
  refresh_token: e.string().optional(),
4210
- profileData: nr.optional()
4211
- }), ir = e.object({
4210
+ profileData: er.optional()
4211
+ }), nr = e.object({
4212
4212
  formatted: e.string().optional(),
4213
4213
  street_address: e.string().optional(),
4214
4214
  locality: e.string().optional(),
4215
4215
  region: e.string().optional(),
4216
4216
  postal_code: e.string().optional(),
4217
4217
  country: e.string().optional()
4218
- }).optional(), ar = e.object({
4218
+ }).optional(), rr = e.object({
4219
4219
  email: e.string().transform((e) => e.toLowerCase()).optional(),
4220
4220
  username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
4221
4221
  phone_number: e.string().optional(),
@@ -4238,9 +4238,9 @@ var nr = e.object({
4238
4238
  gender: e.string().optional(),
4239
4239
  birthdate: e.string().optional(),
4240
4240
  zoneinfo: e.string().optional(),
4241
- address: ir
4241
+ address: nr
4242
4242
  });
4243
- ar.extend({
4243
+ rr.extend({
4244
4244
  email_verified: e.boolean().default(!1),
4245
4245
  verify_email: e.boolean().optional(),
4246
4246
  last_ip: e.string().optional(),
@@ -4255,30 +4255,30 @@ ar.extend({
4255
4255
  hash: e.string(),
4256
4256
  algorithm: e.string()
4257
4257
  }).optional()
4258
- }).omit({ password: !0 }).extend(H.shape).extend({
4258
+ }).omit({ password: !0 }).extend(W.shape).extend({
4259
4259
  user_id: e.string(),
4260
4260
  provider: e.string(),
4261
4261
  is_social: e.boolean(),
4262
4262
  email: e.string().optional(),
4263
4263
  login_count: e.number().default(0),
4264
- identities: e.array(rr).optional()
4265
- }).omit({ registration_completed_at: !0 }), ar.extend({
4264
+ identities: e.array(tr).optional()
4265
+ }).omit({ registration_completed_at: !0 }), rr.extend({
4266
4266
  login_count: e.number(),
4267
4267
  multifactor: e.array(e.string()).optional(),
4268
4268
  last_ip: e.string().optional(),
4269
4269
  last_login: e.string().optional(),
4270
4270
  user_id: e.string()
4271
4271
  }).catchall(e.any());
4272
- var or = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", sr = (e = 21) => {
4272
+ var ir = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ar = (e = 21) => {
4273
4273
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
4274
- for (; e--;) t += or[n[e] & 63];
4274
+ for (; e--;) t += ir[n[e] & 63];
4275
4275
  return t;
4276
- }, cr = e.object({
4276
+ }, or = e.object({
4277
4277
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
4278
4278
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
4279
4279
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
4280
4280
  global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
4281
- client_secret: e.string().default(() => sr()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4281
+ client_secret: e.string().default(() => ar()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4282
4282
  app_type: e.enum([
4283
4283
  "native",
4284
4284
  "spa",
@@ -4396,8 +4396,8 @@ var or = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", sr
4396
4396
  e.object({
4397
4397
  created_at: e.string(),
4398
4398
  updated_at: e.string()
4399
- }).extend(cr.shape).extend({ client_id: e.string() });
4400
- var lr = e.object({
4399
+ }).extend(or.shape).extend({ client_id: e.string() });
4400
+ var sr = e.object({
4401
4401
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
4402
4402
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
4403
4403
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -4410,15 +4410,15 @@ var lr = e.object({
4410
4410
  is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
4411
4411
  subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
4412
4412
  authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
4413
- }), ur = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(lr.shape).extend({
4413
+ }), cr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(sr.shape).extend({
4414
4414
  created_at: e.string().optional(),
4415
4415
  updated_at: e.string().optional()
4416
4416
  });
4417
- e.array(ur);
4418
- var dr = e.enum(["iat", "rat"]), fr = e.object({
4417
+ e.array(cr);
4418
+ var lr = e.enum(["iat", "rat"]), ur = e.object({
4419
4419
  id: e.string(),
4420
4420
  token_hash: e.string(),
4421
- type: dr,
4421
+ type: lr,
4422
4422
  client_id: e.string().optional(),
4423
4423
  sub: e.string().optional(),
4424
4424
  constraints: e.record(e.string(), e.unknown()).optional(),
@@ -4429,23 +4429,23 @@ e.object({
4429
4429
  created_at: e.string(),
4430
4430
  used_at: e.string().optional(),
4431
4431
  revoked_at: e.string().optional()
4432
- }).extend(fr.shape);
4433
- var W = e.object({
4432
+ }).extend(ur.shape);
4433
+ var K = e.object({
4434
4434
  x: e.number(),
4435
4435
  y: e.number()
4436
- }), pr = /* @__PURE__ */ function(e) {
4436
+ }), dr = /* @__PURE__ */ function(e) {
4437
4437
  return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
4438
- }({}), mr = /* @__PURE__ */ function(e) {
4438
+ }({}), fr = /* @__PURE__ */ function(e) {
4439
4439
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
4440
- }({}), G = e.object({
4440
+ }({}), q = e.object({
4441
4441
  id: e.string(),
4442
- category: e.nativeEnum(mr),
4443
- type: e.nativeEnum(pr)
4444
- }), hr = G.extend({
4442
+ category: e.nativeEnum(fr),
4443
+ type: e.nativeEnum(dr)
4444
+ }), pr = q.extend({
4445
4445
  category: e.literal("BLOCK"),
4446
4446
  type: e.literal("RICH_TEXT"),
4447
4447
  config: e.object({ content: e.string() }).passthrough()
4448
- }), gr = G.extend({
4448
+ }), mr = q.extend({
4449
4449
  category: e.literal("BLOCK"),
4450
4450
  type: e.union([
4451
4451
  e.literal("NEXT_BUTTON"),
@@ -4453,13 +4453,13 @@ var W = e.object({
4453
4453
  e.literal("SUBMIT_BUTTON")
4454
4454
  ]),
4455
4455
  config: e.object({ text: e.string() }).passthrough()
4456
- }), _r = G.extend({
4456
+ }), hr = q.extend({
4457
4457
  category: e.literal("FIELD"),
4458
4458
  type: e.literal("LEGAL"),
4459
4459
  required: e.boolean().optional(),
4460
4460
  sensitive: e.boolean().optional(),
4461
4461
  config: e.object({ text: e.string() }).passthrough()
4462
- }), vr = G.extend({
4462
+ }), gr = q.extend({
4463
4463
  category: e.literal("FIELD"),
4464
4464
  type: e.union([
4465
4465
  e.literal("TEXT"),
@@ -4479,38 +4479,38 @@ var W = e.object({
4479
4479
  label: e.string().optional(),
4480
4480
  placeholder: e.string().optional()
4481
4481
  }).passthrough()
4482
- }), yr = e.object({
4482
+ }), _r = e.object({
4483
4483
  id: e.string(),
4484
4484
  category: e.string(),
4485
4485
  type: e.string()
4486
- }).passthrough(), br = e.union([
4486
+ }).passthrough(), vr = e.union([
4487
+ pr,
4488
+ mr,
4487
4489
  hr,
4488
4490
  gr,
4489
- _r,
4490
- vr,
4491
- yr
4492
- ]), xr = e.object({
4491
+ _r
4492
+ ]), yr = e.object({
4493
4493
  id: e.string(),
4494
4494
  type: e.literal("STEP"),
4495
- coordinates: W,
4495
+ coordinates: K,
4496
4496
  alias: e.string().optional(),
4497
4497
  config: e.object({
4498
- components: e.array(br),
4498
+ components: e.array(vr),
4499
4499
  next_node: e.string()
4500
4500
  }).passthrough()
4501
- }), Sr = e.object({
4501
+ }), br = e.object({
4502
4502
  id: e.string(),
4503
4503
  type: e.literal("FLOW"),
4504
- coordinates: W,
4504
+ coordinates: K,
4505
4505
  alias: e.string().optional(),
4506
4506
  config: e.object({
4507
4507
  flow_id: e.string(),
4508
4508
  next_node: e.string()
4509
4509
  })
4510
- }), Cr = e.object({
4510
+ }), xr = e.object({
4511
4511
  id: e.string(),
4512
4512
  type: e.literal("ACTION"),
4513
- coordinates: W,
4513
+ coordinates: K,
4514
4514
  alias: e.string().optional(),
4515
4515
  config: e.object({
4516
4516
  action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
@@ -4522,29 +4522,29 @@ var W = e.object({
4522
4522
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
4523
4523
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
4524
4524
  }).passthrough()
4525
- }), wr = e.object({
4525
+ }), Sr = e.object({
4526
4526
  id: e.string(),
4527
4527
  type: e.string(),
4528
- coordinates: W
4529
- }).passthrough(), Tr = e.union([
4528
+ coordinates: K
4529
+ }).passthrough(), Cr = e.union([
4530
+ yr,
4531
+ br,
4530
4532
  xr,
4531
- Sr,
4532
- Cr,
4533
- wr
4534
- ]), Er = e.object({
4533
+ Sr
4534
+ ]), wr = e.object({
4535
4535
  next_node: e.string(),
4536
- coordinates: W
4537
- }).passthrough(), Dr = e.object({
4536
+ coordinates: K
4537
+ }).passthrough(), Tr = e.object({
4538
4538
  resume_flow: e.boolean().optional(),
4539
- coordinates: W
4539
+ coordinates: K
4540
4540
  }).passthrough();
4541
4541
  e.object({
4542
4542
  id: e.string(),
4543
4543
  name: e.string(),
4544
4544
  languages: e.object({ primary: e.string() }).passthrough(),
4545
- nodes: e.array(Tr),
4546
- start: Er,
4547
- ending: Dr,
4545
+ nodes: e.array(Cr),
4546
+ start: wr,
4547
+ ending: Tr,
4548
4548
  created_at: e.string(),
4549
4549
  updated_at: e.string(),
4550
4550
  links: e.object({
@@ -4556,24 +4556,24 @@ e.object({
4556
4556
  created_at: !0,
4557
4557
  updated_at: !0
4558
4558
  });
4559
- var Or = /* @__PURE__ */ function(e) {
4559
+ var Er = /* @__PURE__ */ function(e) {
4560
4560
  return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
4561
- }({}), kr = /* @__PURE__ */ function(e) {
4561
+ }({}), Dr = /* @__PURE__ */ function(e) {
4562
4562
  return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4563
- }({}), Ar = /* @__PURE__ */ function(e) {
4563
+ }({}), Or = /* @__PURE__ */ function(e) {
4564
4564
  return e.S256 = "S256", e.Plain = "plain", e;
4565
- }({}), jr = e.union([e.null(), e.object({
4565
+ }({}), kr = e.union([e.null(), e.object({
4566
4566
  essential: e.boolean().optional(),
4567
4567
  value: e.unknown().optional(),
4568
4568
  values: e.array(e.unknown()).optional()
4569
- })]).nullable(), Mr = e.object({
4570
- userinfo: e.record(e.string(), jr).optional(),
4571
- id_token: e.record(e.string(), jr).optional()
4572
- }), Nr = e.object({
4569
+ })]).nullable(), Ar = e.object({
4570
+ userinfo: e.record(e.string(), kr).optional(),
4571
+ id_token: e.record(e.string(), kr).optional()
4572
+ }), jr = e.object({
4573
4573
  client_id: e.string(),
4574
4574
  act_as: e.string().optional(),
4575
- response_type: e.nativeEnum(Or).optional(),
4576
- response_mode: e.nativeEnum(kr).optional(),
4575
+ response_type: e.nativeEnum(Er).optional(),
4576
+ response_mode: e.nativeEnum(Dr).optional(),
4577
4577
  redirect_uri: e.string().optional(),
4578
4578
  audience: e.string().optional(),
4579
4579
  organization: e.string().optional(),
@@ -4581,17 +4581,17 @@ var Or = /* @__PURE__ */ function(e) {
4581
4581
  nonce: e.string().optional(),
4582
4582
  scope: e.string().optional(),
4583
4583
  prompt: e.string().optional(),
4584
- code_challenge_method: e.nativeEnum(Ar).optional(),
4584
+ code_challenge_method: e.nativeEnum(Or).optional(),
4585
4585
  code_challenge: e.string().optional(),
4586
4586
  username: e.string().optional(),
4587
4587
  ui_locales: e.string().optional(),
4588
4588
  max_age: e.number().optional(),
4589
4589
  acr_values: e.string().optional(),
4590
- claims: Mr.optional(),
4590
+ claims: Ar.optional(),
4591
4591
  vendor_id: e.string().optional()
4592
4592
  });
4593
4593
  e.object({
4594
- ...U,
4594
+ ...G,
4595
4595
  colors: e.object({
4596
4596
  primary: e.string(),
4597
4597
  page_background: e.union([e.string(), e.object({
@@ -4611,7 +4611,7 @@ e.object({
4611
4611
  "auto"
4612
4612
  ]).optional()
4613
4613
  });
4614
- var Pr = e.enum([
4614
+ var Mr = e.enum([
4615
4615
  "password_reset",
4616
4616
  "email_verification",
4617
4617
  "otp",
@@ -4626,7 +4626,7 @@ e.object({
4626
4626
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
4627
4627
  login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
4628
4628
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
4629
- code_type: Pr,
4629
+ code_type: Mr,
4630
4630
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
4631
4631
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
4632
4632
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -4656,7 +4656,7 @@ e.object({
4656
4656
  interval: e.number().int().positive(),
4657
4657
  version: e.number().int().nonnegative()
4658
4658
  });
4659
- var Fr = e.object({
4659
+ var Nr = e.object({
4660
4660
  kid: e.string().optional(),
4661
4661
  team_id: e.string().optional(),
4662
4662
  realms: e.string().optional(),
@@ -4776,38 +4776,38 @@ var Fr = e.object({
4776
4776
  "never_on_login"
4777
4777
  ]).optional()
4778
4778
  });
4779
- function Ir(e) {
4779
+ function Pr(e) {
4780
4780
  if (e !== null) {
4781
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(Ir);
4781
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(Pr);
4782
4782
  if (e && typeof e == "object") {
4783
4783
  let t = {};
4784
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Ir(r));
4784
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Pr(r));
4785
4785
  return t;
4786
4786
  }
4787
4787
  return e;
4788
4788
  }
4789
4789
  }
4790
- var Lr = e.object({
4790
+ var Fr = e.object({
4791
4791
  id: e.string().optional(),
4792
4792
  name: e.string(),
4793
4793
  display_name: e.string().optional(),
4794
4794
  strategy: e.string(),
4795
- options: e.preprocess((e) => e === null ? {} : Ir(e), Fr).default({}),
4795
+ options: e.preprocess((e) => e === null ? {} : Pr(e), Nr).default({}),
4796
4796
  enabled_clients: e.array(e.string()).default([]).optional(),
4797
- response_type: e.nativeEnum(Or).optional(),
4798
- response_mode: e.nativeEnum(kr).optional(),
4797
+ response_type: e.nativeEnum(Er).optional(),
4798
+ response_mode: e.nativeEnum(Dr).optional(),
4799
4799
  is_domain_connection: e.boolean().optional(),
4800
4800
  show_as_button: e.boolean().optional(),
4801
4801
  metadata: e.record(e.string(), e.any()).optional(),
4802
4802
  is_system: e.boolean().optional(),
4803
- ...U
4803
+ ...G
4804
4804
  });
4805
4805
  e.object({
4806
4806
  id: e.string(),
4807
4807
  created_at: e.string().transform((e) => e === null ? "" : e),
4808
4808
  updated_at: e.string().transform((e) => e === null ? "" : e)
4809
- }).extend(Lr.shape);
4810
- var Rr = e.object({
4809
+ }).extend(Fr.shape);
4810
+ var Ir = e.object({
4811
4811
  domain: e.string(),
4812
4812
  custom_domain_id: e.string().optional(),
4813
4813
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -4821,7 +4821,7 @@ var Rr = e.object({
4821
4821
  "null"
4822
4822
  ]).optional(),
4823
4823
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
4824
- }), zr = e.discriminatedUnion("name", [e.object({
4824
+ }), Lr = e.discriminatedUnion("name", [e.object({
4825
4825
  name: e.literal("txt"),
4826
4826
  record: e.string(),
4827
4827
  domain: e.string()
@@ -4829,7 +4829,7 @@ var Rr = e.object({
4829
4829
  name: e.literal("http"),
4830
4830
  http_body: e.string(),
4831
4831
  http_url: e.string()
4832
- })]), Br = Rr.extend({
4832
+ })]), Rr = Ir.extend({
4833
4833
  custom_domain_id: e.string(),
4834
4834
  primary: e.boolean(),
4835
4835
  status: e.enum([
@@ -4839,28 +4839,28 @@ var Rr = e.object({
4839
4839
  "ready"
4840
4840
  ]),
4841
4841
  origin_domain_name: e.string().optional(),
4842
- verification: e.object({ methods: e.array(zr) }).optional(),
4842
+ verification: e.object({ methods: e.array(Lr) }).optional(),
4843
4843
  tls_policy: e.string().optional()
4844
4844
  });
4845
- Rr.pick({
4845
+ Ir.pick({
4846
4846
  tls_policy: !0,
4847
4847
  custom_client_ip_header: !0,
4848
4848
  domain_metadata: !0
4849
- }).strict(), Br.extend({ tenant_id: e.string() }), e.object({
4849
+ }).strict(), Rr.extend({ tenant_id: e.string() }), e.object({
4850
4850
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
4851
4851
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
4852
4852
  });
4853
- var Vr = e.object({
4853
+ var zr = e.object({
4854
4854
  id: e.string(),
4855
4855
  order: e.number().optional(),
4856
4856
  visible: e.boolean().optional().default(!0)
4857
- }), K = Vr.extend({ category: e.literal("BLOCK").optional() }), Hr = K.extend({
4857
+ }), J = zr.extend({ category: e.literal("BLOCK").optional() }), Br = J.extend({
4858
4858
  type: e.literal("DIVIDER"),
4859
4859
  config: e.object({ text: e.string().optional() }).optional()
4860
- }), Ur = K.extend({
4860
+ }), Vr = J.extend({
4861
4861
  type: e.literal("HTML"),
4862
4862
  config: e.object({ content: e.string().optional() }).optional()
4863
- }), Wr = K.extend({
4863
+ }), Hr = J.extend({
4864
4864
  type: e.literal("IMAGE"),
4865
4865
  config: e.object({
4866
4866
  src: e.string().optional(),
@@ -4868,47 +4868,47 @@ var Vr = e.object({
4868
4868
  width: e.number().optional(),
4869
4869
  height: e.number().optional()
4870
4870
  }).optional()
4871
- }), Gr = K.extend({
4871
+ }), Ur = J.extend({
4872
4872
  type: e.literal("JUMP_BUTTON"),
4873
4873
  config: e.object({
4874
4874
  text: e.string().optional(),
4875
4875
  target_step: e.string().optional()
4876
4876
  })
4877
- }), Kr = K.extend({
4877
+ }), Wr = J.extend({
4878
4878
  type: e.literal("RESEND_BUTTON"),
4879
4879
  config: e.object({
4880
4880
  text: e.string().optional(),
4881
4881
  resend_action: e.string().optional()
4882
4882
  })
4883
- }), qr = K.extend({
4883
+ }), Gr = J.extend({
4884
4884
  type: e.literal("NEXT_BUTTON"),
4885
4885
  config: e.object({
4886
4886
  text: e.string().optional(),
4887
4887
  variant: e.enum(["primary", "secondary"]).optional(),
4888
4888
  skip_validation: e.boolean().optional()
4889
4889
  })
4890
- }), Jr = K.extend({
4890
+ }), Kr = J.extend({
4891
4891
  type: e.literal("PREVIOUS_BUTTON"),
4892
4892
  config: e.object({ text: e.string().optional() })
4893
- }), Yr = K.extend({
4893
+ }), qr = J.extend({
4894
4894
  type: e.literal("RICH_TEXT"),
4895
4895
  config: e.object({ content: e.string().optional() }).optional()
4896
- }), Xr = Vr.extend({
4896
+ }), Jr = zr.extend({
4897
4897
  category: e.literal("WIDGET").optional(),
4898
4898
  label: e.string().min(1).optional(),
4899
4899
  hint: e.string().min(1).max(500).optional(),
4900
4900
  required: e.boolean().optional(),
4901
4901
  sensitive: e.boolean().optional()
4902
- }), Zr = Xr.extend({
4902
+ }), Yr = Jr.extend({
4903
4903
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
4904
4904
  config: e.object({ credential_type: e.string().optional() })
4905
- }), Qr = Xr.extend({
4905
+ }), Xr = Jr.extend({
4906
4906
  type: e.literal("GMAPS_ADDRESS"),
4907
4907
  config: e.object({ api_key: e.string().optional() })
4908
- }), $r = Xr.extend({
4908
+ }), Zr = Jr.extend({
4909
4909
  type: e.literal("RECAPTCHA"),
4910
4910
  config: e.object({ site_key: e.string().optional() })
4911
- }), q = Vr.extend({
4911
+ }), Y = zr.extend({
4912
4912
  category: e.literal("FIELD").optional(),
4913
4913
  label: e.string().min(1).optional(),
4914
4914
  hint: e.string().min(1).max(500).optional(),
@@ -4924,10 +4924,10 @@ var Vr = e.object({
4924
4924
  })).optional(),
4925
4925
  required: e.boolean().optional(),
4926
4926
  sensitive: e.boolean().optional()
4927
- }), ei = q.extend({
4927
+ }), Qr = Y.extend({
4928
4928
  type: e.literal("BOOLEAN"),
4929
4929
  config: e.object({ default_value: e.boolean().optional() }).optional()
4930
- }), ti = q.extend({
4930
+ }), $r = Y.extend({
4931
4931
  type: e.literal("CARDS"),
4932
4932
  config: e.object({
4933
4933
  options: e.array(e.object({
@@ -4938,7 +4938,7 @@ var Vr = e.object({
4938
4938
  })).optional(),
4939
4939
  multi_select: e.boolean().optional()
4940
4940
  }).optional()
4941
- }), ni = q.extend({
4941
+ }), ei = Y.extend({
4942
4942
  type: e.literal("CHOICE"),
4943
4943
  config: e.object({
4944
4944
  options: e.array(e.object({
@@ -4949,7 +4949,7 @@ var Vr = e.object({
4949
4949
  multiple: e.boolean().optional(),
4950
4950
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4951
4951
  }).optional()
4952
- }), ri = q.extend({
4952
+ }), ti = Y.extend({
4953
4953
  type: e.literal("CODE"),
4954
4954
  config: e.object({
4955
4955
  length: e.number().int().positive().max(100).optional(),
@@ -4966,7 +4966,7 @@ var Vr = e.object({
4966
4966
  message: "default_value is longer than the configured length",
4967
4967
  path: ["default_value"]
4968
4968
  }).optional()
4969
- }), ii = q.extend({
4969
+ }), ni = Y.extend({
4970
4970
  type: e.literal("CUSTOM"),
4971
4971
  config: e.object({
4972
4972
  component: e.string().optional(),
@@ -4974,7 +4974,7 @@ var Vr = e.object({
4974
4974
  schema: e.record(e.string(), e.any()).optional(),
4975
4975
  code: e.string().optional()
4976
4976
  })
4977
- }), ai = q.extend({
4977
+ }), ri = Y.extend({
4978
4978
  type: e.literal("DATE"),
4979
4979
  config: e.object({
4980
4980
  format: e.string().optional(),
@@ -4982,7 +4982,7 @@ var Vr = e.object({
4982
4982
  max: e.string().optional(),
4983
4983
  default_value: e.string().optional()
4984
4984
  }).optional()
4985
- }), oi = q.extend({
4985
+ }), ii = Y.extend({
4986
4986
  type: e.literal("DROPDOWN"),
4987
4987
  config: e.object({
4988
4988
  options: e.array(e.object({
@@ -4994,7 +4994,7 @@ var Vr = e.object({
4994
4994
  multiple: e.boolean().optional(),
4995
4995
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4996
4996
  }).optional()
4997
- }), si = q.extend({
4997
+ }), ai = Y.extend({
4998
4998
  type: e.literal("EMAIL"),
4999
4999
  config: e.object({
5000
5000
  placeholder: e.string().optional(),
@@ -5002,20 +5002,20 @@ var Vr = e.object({
5002
5002
  last_used: e.boolean().optional(),
5003
5003
  last_used_label: e.string().optional()
5004
5004
  }).optional()
5005
- }), ci = q.extend({
5005
+ }), oi = Y.extend({
5006
5006
  type: e.literal("FILE"),
5007
5007
  config: e.object({
5008
5008
  accept: e.string().optional(),
5009
5009
  max_size: e.number().optional(),
5010
5010
  multiple: e.boolean().optional()
5011
5011
  }).optional()
5012
- }), li = q.extend({
5012
+ }), si = Y.extend({
5013
5013
  type: e.literal("LEGAL"),
5014
5014
  config: e.object({
5015
5015
  text: e.string(),
5016
5016
  html: e.boolean().optional()
5017
5017
  }).optional()
5018
- }), ui = q.extend({
5018
+ }), ci = Y.extend({
5019
5019
  type: e.literal("NUMBER"),
5020
5020
  config: e.object({
5021
5021
  placeholder: e.string().optional(),
@@ -5024,7 +5024,7 @@ var Vr = e.object({
5024
5024
  step: e.number().optional(),
5025
5025
  default_value: e.string().optional()
5026
5026
  }).optional()
5027
- }), di = q.extend({
5027
+ }), li = Y.extend({
5028
5028
  type: e.literal("PASSWORD"),
5029
5029
  config: e.object({
5030
5030
  placeholder: e.string().optional(),
@@ -5033,13 +5033,13 @@ var Vr = e.object({
5033
5033
  forgot_password_link: e.string().optional(),
5034
5034
  default_value: e.string().optional()
5035
5035
  }).optional()
5036
- }), fi = q.extend({
5036
+ }), ui = Y.extend({
5037
5037
  type: e.literal("PAYMENT"),
5038
5038
  config: e.object({
5039
5039
  provider: e.string().optional(),
5040
5040
  currency: e.string().optional()
5041
5041
  }).optional()
5042
- }), pi = q.extend({
5042
+ }), di = Y.extend({
5043
5043
  type: e.literal("SOCIAL"),
5044
5044
  config: e.object({
5045
5045
  providers: e.array(e.string()).optional(),
@@ -5054,7 +5054,7 @@ var Vr = e.object({
5054
5054
  last_used_label: e.string().optional()
5055
5055
  })).optional()
5056
5056
  }).optional()
5057
- }), mi = q.extend({
5057
+ }), fi = Y.extend({
5058
5058
  type: e.literal("TEL"),
5059
5059
  config: e.object({
5060
5060
  placeholder: e.string().optional(),
@@ -5062,7 +5062,7 @@ var Vr = e.object({
5062
5062
  default_value: e.string().optional(),
5063
5063
  allow_email: e.boolean().optional()
5064
5064
  }).optional()
5065
- }), hi = q.extend({
5065
+ }), pi = Y.extend({
5066
5066
  type: e.literal("TEXT"),
5067
5067
  config: e.object({
5068
5068
  placeholder: e.string().optional(),
@@ -5072,37 +5072,39 @@ var Vr = e.object({
5072
5072
  last_used: e.boolean().optional(),
5073
5073
  last_used_label: e.string().optional()
5074
5074
  }).optional()
5075
- }), gi = q.extend({
5075
+ }), mi = Y.extend({
5076
5076
  type: e.literal("COUNTRY"),
5077
5077
  config: e.object({
5078
5078
  placeholder: e.string().optional(),
5079
5079
  default_value: e.string().optional()
5080
5080
  }).optional()
5081
- }), _i = q.extend({
5081
+ }), hi = Y.extend({
5082
5082
  type: e.literal("URL"),
5083
5083
  config: e.object({
5084
5084
  placeholder: e.string().optional(),
5085
5085
  default_value: e.string().optional()
5086
5086
  }).optional()
5087
- }), vi = e.discriminatedUnion("type", [
5087
+ }), gi = e.discriminatedUnion("type", [
5088
+ Br,
5089
+ Vr,
5088
5090
  Hr,
5089
5091
  Ur,
5090
5092
  Wr,
5091
5093
  Gr,
5092
5094
  Kr,
5093
- qr,
5094
- Jr,
5095
- Yr
5096
- ]), yi = e.discriminatedUnion("type", [
5097
- Zr,
5095
+ qr
5096
+ ]), _i = e.discriminatedUnion("type", [
5097
+ Yr,
5098
+ Xr,
5099
+ Zr
5100
+ ]), vi = e.discriminatedUnion("type", [
5098
5101
  Qr,
5099
- $r
5100
- ]), bi = e.discriminatedUnion("type", [
5102
+ $r,
5101
5103
  ei,
5102
5104
  ti,
5105
+ mi,
5103
5106
  ni,
5104
5107
  ri,
5105
- gi,
5106
5108
  ii,
5107
5109
  ai,
5108
5110
  oi,
@@ -5113,13 +5115,11 @@ var Vr = e.object({
5113
5115
  di,
5114
5116
  fi,
5115
5117
  pi,
5116
- mi,
5117
- hi,
5118
- _i
5119
- ]), xi = e.union([
5120
- vi,
5121
- yi,
5122
- bi
5118
+ hi
5119
+ ]), yi = e.union([
5120
+ gi,
5121
+ _i,
5122
+ vi
5123
5123
  ]);
5124
5124
  new Set([
5125
5125
  "BOOLEAN",
@@ -5146,22 +5146,22 @@ new Set([
5146
5146
  visible: e.boolean().optional().default(!0),
5147
5147
  customizations: e.record(e.string(), e.any()).optional()
5148
5148
  });
5149
- var J = e.object({
5149
+ var X = e.object({
5150
5150
  x: e.number(),
5151
5151
  y: e.number()
5152
- }), Si = e.object({
5152
+ }), bi = e.object({
5153
5153
  id: e.string(),
5154
5154
  type: e.literal("FLOW"),
5155
- coordinates: J,
5155
+ coordinates: X,
5156
5156
  alias: e.string().min(1).max(150).optional(),
5157
5157
  config: e.object({
5158
5158
  flow_id: e.string().max(30),
5159
5159
  next_node: e.string().optional()
5160
5160
  })
5161
- }), Ci = e.object({
5161
+ }), xi = e.object({
5162
5162
  id: e.string(),
5163
5163
  type: e.literal("ROUTER"),
5164
- coordinates: J,
5164
+ coordinates: X,
5165
5165
  alias: e.string().min(1).max(150),
5166
5166
  config: e.object({
5167
5167
  rules: e.array(e.object({
@@ -5172,20 +5172,20 @@ var J = e.object({
5172
5172
  })),
5173
5173
  fallback: e.string()
5174
5174
  })
5175
- }), wi = e.object({
5175
+ }), Si = e.object({
5176
5176
  id: e.string(),
5177
5177
  type: e.literal("STEP"),
5178
- coordinates: J,
5178
+ coordinates: X,
5179
5179
  alias: e.string().min(1).max(150).optional(),
5180
5180
  config: e.object({
5181
- components: e.array(xi),
5181
+ components: e.array(yi),
5182
5182
  next_node: e.string().optional()
5183
5183
  })
5184
- }), Ti = e.discriminatedUnion("type", [
5185
- Si,
5186
- Ci,
5187
- wi
5188
- ]), Ei = e.object({
5184
+ }), Ci = e.discriminatedUnion("type", [
5185
+ bi,
5186
+ xi,
5187
+ Si
5188
+ ]), wi = e.object({
5189
5189
  name: e.string().openapi({ description: "The name of the form" }),
5190
5190
  messages: e.object({
5191
5191
  errors: e.record(e.string(), e.any()).optional(),
@@ -5196,14 +5196,14 @@ var J = e.object({
5196
5196
  default: e.string().optional()
5197
5197
  }).optional(),
5198
5198
  translations: e.record(e.string(), e.any()).optional(),
5199
- nodes: e.array(Ti).optional(),
5199
+ nodes: e.array(Ci).optional(),
5200
5200
  start: e.object({
5201
5201
  hidden_fields: e.array(e.object({
5202
5202
  key: e.string(),
5203
5203
  value: e.string()
5204
5204
  })).optional(),
5205
5205
  next_node: e.string().optional(),
5206
- coordinates: J.optional()
5206
+ coordinates: X.optional()
5207
5207
  }).optional(),
5208
5208
  ending: e.object({
5209
5209
  redirection: e.object({
@@ -5211,7 +5211,7 @@ var J = e.object({
5211
5211
  target: e.string().optional()
5212
5212
  }).optional(),
5213
5213
  after_submit: e.object({ flow_id: e.string().optional() }).optional(),
5214
- coordinates: J.optional(),
5214
+ coordinates: X.optional(),
5215
5215
  resume_flow: e.boolean().optional()
5216
5216
  }).optional(),
5217
5217
  style: e.object({ css: e.string().optional() }).optional(),
@@ -5220,8 +5220,8 @@ var J = e.object({
5220
5220
  sdk_src: e.string().optional()
5221
5221
  }).optional()
5222
5222
  }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
5223
- H.extend(Ei.shape).extend({ id: e.string() });
5224
- var Di = e.object({
5223
+ W.extend(wi.shape).extend({ id: e.string() });
5224
+ var Ti = e.object({
5225
5225
  id: e.number().optional(),
5226
5226
  text: e.string(),
5227
5227
  type: e.enum([
@@ -5230,12 +5230,12 @@ var Di = e.object({
5230
5230
  "success",
5231
5231
  "warning"
5232
5232
  ])
5233
- }), Oi = e.object({
5233
+ }), Ei = e.object({
5234
5234
  id: e.string().optional(),
5235
5235
  text: e.string(),
5236
5236
  href: e.string(),
5237
5237
  linkText: e.string().optional()
5238
- }), ki = e.object({
5238
+ }), Di = e.object({
5239
5239
  "form-content-start": e.string().optional(),
5240
5240
  "form-content-end": e.string().optional(),
5241
5241
  "form-footer-start": e.string().optional(),
@@ -5249,13 +5249,13 @@ e.object({
5249
5249
  method: e.enum(["POST", "GET"]),
5250
5250
  title: e.string().optional(),
5251
5251
  description: e.string().optional(),
5252
- components: e.array(xi),
5253
- messages: e.array(Di).optional(),
5254
- links: e.array(Oi).optional(),
5255
- partials: ki.optional(),
5252
+ components: e.array(yi),
5253
+ messages: e.array(Ti).optional(),
5254
+ links: e.array(Ei).optional(),
5255
+ partials: Di.optional(),
5256
5256
  footer: e.string().optional()
5257
5257
  });
5258
- var Ai = e.enum([
5258
+ var Oi = e.enum([
5259
5259
  "pre-user-registration",
5260
5260
  "post-user-registration",
5261
5261
  "post-user-login",
@@ -5263,12 +5263,12 @@ var Ai = e.enum([
5263
5263
  "validate-registration-username",
5264
5264
  "pre-user-deletion",
5265
5265
  "post-user-deletion"
5266
- ]), ji = e.enum(["post-user-login"]), Mi = e.enum([
5266
+ ]), ki = e.enum(["post-user-login"]), Ai = e.enum([
5267
5267
  "post-user-login",
5268
5268
  "post-user-registration",
5269
5269
  "post-user-update",
5270
5270
  "credentials-exchange"
5271
- ]), Ni = e.enum([
5271
+ ]), ji = e.enum([
5272
5272
  "validate-registration-username",
5273
5273
  "post-user-login",
5274
5274
  "credentials-exchange",
@@ -5278,98 +5278,98 @@ var Ai = e.enum([
5278
5278
  "post-user-update",
5279
5279
  "pre-user-deletion",
5280
5280
  "post-user-deletion"
5281
- ]), Pi = e.enum(["post-user-login"]);
5282
- Ai.options, ji.options, Mi.options, Ni.options, Pi.options;
5283
- var Fi = e.enum(["impersonate"]), Ii = e.enum([
5281
+ ]), Mi = e.enum(["post-user-login"]);
5282
+ Oi.options, ki.options, Ai.options, ji.options, Mi.options;
5283
+ var Ni = e.enum(["impersonate"]), Pi = e.enum([
5284
5284
  "ensure-username",
5285
5285
  "set-preferred-username",
5286
5286
  "account-linking"
5287
- ]), Y = {
5287
+ ]), Z = {
5288
5288
  enabled: e.boolean().default(!1),
5289
5289
  synchronous: e.boolean().default(!1),
5290
5290
  priority: e.number().optional(),
5291
5291
  hook_id: e.string().optional(),
5292
5292
  metadata: e.record(e.string(), e.unknown()).optional(),
5293
- ...U
5294
- }, Li = e.object({
5295
- ...Y,
5296
- trigger_id: Ai,
5293
+ ...G
5294
+ }, Fi = e.object({
5295
+ ...Z,
5296
+ trigger_id: Oi,
5297
5297
  url: e.string()
5298
+ }), Ii = e.object({
5299
+ ...Z,
5300
+ trigger_id: ki,
5301
+ form_id: e.string()
5302
+ }), Li = e.object({
5303
+ ...Z,
5304
+ trigger_id: Ai,
5305
+ template_id: Pi
5298
5306
  }), Ri = e.object({
5299
- ...Y,
5307
+ ...Z,
5300
5308
  trigger_id: ji,
5301
- form_id: e.string()
5309
+ code_id: e.string()
5302
5310
  }), zi = e.object({
5303
- ...Y,
5311
+ ...Z,
5304
5312
  trigger_id: Mi,
5305
- template_id: Ii
5306
- }), Bi = e.object({
5307
- ...Y,
5308
- trigger_id: Ni,
5309
- code_id: e.string()
5310
- }), Vi = e.object({
5311
- ...Y,
5312
- trigger_id: Pi,
5313
- page_id: Fi,
5313
+ page_id: Ni,
5314
5314
  permission_required: e.string().optional()
5315
5315
  });
5316
5316
  e.union([
5317
+ Fi,
5318
+ Ii,
5317
5319
  Li,
5318
5320
  Ri,
5319
- zi,
5320
- Bi,
5321
- Vi
5321
+ zi
5322
5322
  ]);
5323
- var Hi = e.object({
5324
- ...Y,
5325
- trigger_id: Ai
5326
- }).extend(H.shape).extend({
5323
+ var Bi = e.object({
5324
+ ...Z,
5325
+ trigger_id: Oi
5326
+ }).extend(W.shape).extend({
5327
5327
  hook_id: e.string(),
5328
5328
  url: e.string()
5329
- }), Ui = e.object({
5330
- ...Y,
5331
- trigger_id: ji
5332
- }).extend(H.shape).extend({
5329
+ }), Vi = e.object({
5330
+ ...Z,
5331
+ trigger_id: ki
5332
+ }).extend(W.shape).extend({
5333
5333
  hook_id: e.string(),
5334
5334
  form_id: e.string()
5335
- }), Wi = e.object({
5336
- ...Y,
5337
- trigger_id: Mi
5338
- }).extend(H.shape).extend({
5335
+ }), Hi = e.object({
5336
+ ...Z,
5337
+ trigger_id: Ai
5338
+ }).extend(W.shape).extend({
5339
5339
  hook_id: e.string(),
5340
- template_id: Ii
5341
- }), Gi = e.object({
5342
- ...Y,
5343
- trigger_id: Ni
5344
- }).extend(H.shape).extend({
5340
+ template_id: Pi
5341
+ }), Ui = e.object({
5342
+ ...Z,
5343
+ trigger_id: ji
5344
+ }).extend(W.shape).extend({
5345
5345
  hook_id: e.string(),
5346
5346
  code_id: e.string()
5347
- }), Ki = e.object({
5348
- ...Y,
5349
- trigger_id: Pi
5350
- }).extend(H.shape).extend({
5347
+ }), Wi = e.object({
5348
+ ...Z,
5349
+ trigger_id: Mi
5350
+ }).extend(W.shape).extend({
5351
5351
  hook_id: e.string(),
5352
- page_id: Fi,
5352
+ page_id: Ni,
5353
5353
  permission_required: e.string().optional()
5354
5354
  });
5355
5355
  e.union([
5356
+ Bi,
5357
+ Vi,
5356
5358
  Hi,
5357
5359
  Ui,
5358
- Wi,
5359
- Gi,
5360
- Ki
5360
+ Wi
5361
5361
  ]), e.object({
5362
5362
  code: e.string().max(1e5),
5363
5363
  secrets: e.record(e.string(), e.string()).optional()
5364
5364
  }).extend({
5365
5365
  id: e.string(),
5366
5366
  tenant_id: e.string()
5367
- }).extend(H.shape);
5368
- var qi = e.object({ name: e.string().optional() }), Ji = e.object({ email: e.string().optional() }), Yi = e.object({
5367
+ }).extend(W.shape);
5368
+ var Gi = e.object({ name: e.string().optional() }), Ki = e.object({ email: e.string().optional() }), qi = e.object({
5369
5369
  id: e.string().optional(),
5370
5370
  organization_id: e.string().max(50),
5371
- inviter: qi,
5372
- invitee: Ji,
5371
+ inviter: Gi,
5372
+ invitee: Ki,
5373
5373
  invitation_url: e.string().url(),
5374
5374
  client_id: e.string(),
5375
5375
  connection_id: e.string().optional(),
@@ -5385,8 +5385,8 @@ e.object({
5385
5385
  created_at: e.string().datetime(),
5386
5386
  expires_at: e.string().datetime(),
5387
5387
  ticket_id: e.string().optional()
5388
- }).extend(Yi.omit({ id: !0 }).shape);
5389
- var Xi = e.object({
5388
+ }).extend(qi.omit({ id: !0 }).shape);
5389
+ var Ji = e.object({
5390
5390
  alg: e.enum([
5391
5391
  "RS256",
5392
5392
  "RS384",
@@ -5428,7 +5428,7 @@ var Xi = e.object({
5428
5428
  path: [r],
5429
5429
  message: `EC JWK is missing required member '${r}'`
5430
5430
  });
5431
- }), Zi = e.object({ keys: e.array(Xi) });
5431
+ }), Yi = e.object({ keys: e.array(Ji) });
5432
5432
  e.object({
5433
5433
  issuer: e.string(),
5434
5434
  authorization_endpoint: e.string(),
@@ -5457,35 +5457,35 @@ e.object({
5457
5457
  backchannel_logout_supported: e.boolean().optional(),
5458
5458
  backchannel_logout_session_supported: e.boolean().optional()
5459
5459
  });
5460
- var Qi = /* @__PURE__ */ function(e) {
5460
+ var Xi = /* @__PURE__ */ function(e) {
5461
5461
  return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
5462
- }({}), $i = e.nativeEnum(Qi), ea = e.object({
5462
+ }({}), Zi = e.nativeEnum(Xi), Qi = e.object({
5463
5463
  strategy: e.string(),
5464
5464
  strategy_type: e.string()
5465
5465
  });
5466
5466
  e.object({
5467
5467
  csrf_token: e.string(),
5468
5468
  auth0Client: e.string().optional(),
5469
- authParams: Nr,
5469
+ authParams: jr,
5470
5470
  expires_at: e.string(),
5471
5471
  deleted_at: e.string().optional(),
5472
5472
  ip: e.string().optional(),
5473
5473
  useragent: e.string().optional(),
5474
5474
  session_id: e.string().optional(),
5475
5475
  authorization_url: e.string().optional(),
5476
- state: $i.optional().default("pending"),
5476
+ state: Zi.optional().default("pending"),
5477
5477
  state_data: e.string().optional(),
5478
5478
  failure_reason: e.string().optional(),
5479
5479
  user_id: e.string().optional(),
5480
5480
  auth_connection: e.string().optional(),
5481
- auth_strategy: ea.optional(),
5481
+ auth_strategy: Qi.optional(),
5482
5482
  authenticated_at: e.string().optional()
5483
5483
  }).openapi({ description: "This represents a login sesion" }).extend({
5484
5484
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
5485
5485
  created_at: e.string(),
5486
5486
  updated_at: e.string()
5487
5487
  });
5488
- var X = {
5488
+ var Q = {
5489
5489
  ACLS_SUMMARY: "acls_summary",
5490
5490
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
5491
5491
  API_LIMIT: "api_limit",
@@ -5647,17 +5647,17 @@ var X = {
5647
5647
  WARNING_DURING_LOGIN: "w",
5648
5648
  WARNING_SENDING_NOTIFICATION: "wn",
5649
5649
  WARNING_USER_MANAGEMENT: "wum"
5650
- }, ta = e.string().refine((e) => Object.values(X).includes(e), { message: "Invalid log type" });
5651
- X.ACLS_SUMMARY, X.ACTIONS_EXECUTION_FAILED, X.API_LIMIT, X.API_LIMIT_WARNING, X.APPI, X.CIBA_EXCHANGE_FAILED, X.CIBA_EXCHANGE_SUCCEEDED, X.CIBA_START_FAILED, X.CIBA_START_SUCCEEDED, X.CODE_LINK_SENT, X.CODE_SENT, X.DEPRECATION_NOTICE, X.CONFIG_INHERITANCE_DIFF, X.CONFIG_DRIFT, X.FAILED_LOGIN, X.FAILED_BY_CONNECTOR, X.FAILED_CHANGE_EMAIL, X.FAILED_BY_CORS, X.FAILED_CROSS_ORIGIN_AUTHENTICATION, X.FAILED_CHANGE_PASSWORD, X.FAILED_POST_CHANGE_PASSWORD_HOOK, X.FAILED_CHANGE_PHONE_NUMBER, X.FAILED_CHANGE_PASSWORD_REQUEST, X.FAILED_CONNECTOR_PROVISIONING, X.FAILED_CHANGE_USERNAME, X.FAILED_DELEGATION, X.FAILED_DEVICE_ACTIVATION, X.FAILED_DEVICE_AUTHORIZATION_REQUEST, X.USER_CANCELED_DEVICE_CONFIRMATION, X.FAILED_USER_DELETION, X.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, X.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, X.FAILED_EXCHANGE_CUSTOM_TOKEN, X.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, X.FAILED_FEDERATED_LOGOUT, X.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, X.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, X.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, X.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, X.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, X.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, X.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, X.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, X.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, X.FAILED_HOOK, X.FAILED_IMPERSONATION, X.FAILED_INVITE_ACCEPT, X.FAILED_LOGOUT, X.FLOWS_EXECUTION_COMPLETED, X.FLOWS_EXECUTION_FAILED, X.FAILED_SENDING_NOTIFICATION, X.FORMS_SUBMISSION_FAILED, X.FORMS_SUBMISSION_SUCCEEDED, X.FAILED_LOGIN_INCORRECT_PASSWORD, X.FAILED_PUSHED_AUTHORIZATION_REQUEST, X.FAILED_POST_USER_REGISTRATION_HOOK, X.FAILED_SIGNUP, X.FAILED_SILENT_AUTH, X.FAILED_LOGIN_INVALID_EMAIL_USERNAME, X.FAILED_USERS_IMPORT, X.FAILED_VERIFICATION_EMAIL, X.FAILED_VERIFICATION_EMAIL_REQUEST, X.EMAIL_VERIFICATION_CONFIRMED, X.EMAIL_VERIFICATION_FAILED, X.MFA_AUTH_FAILED, X.MFA_AUTH_REJECTED, X.MFA_AUTH_SUCCESS, X.MFA_ENROLLMENT_COMPLETE, X.TOO_MANY_MFA_FAILURES, X.MFA_RECOVERY_FAILED, X.MFA_RECOVERY_RATE_LIMIT_EXCEED, X.MFA_RECOVERY_SUCCESS, X.MFA_EMAIL_SENT, X.EMAIL_VERIFICATION_SENT, X.EMAIL_VERIFICATION_SEND_FAILURE, X.PUSH_NOTIFICATION_SENT, X.ERROR_SENDING_MFA_PUSH_NOTIFICATION, X.MFA_SMS_SENT, X.ERROR_SENDING_MFA_SMS, X.MFA_VOICE_CALL_SUCCESS, X.MFA_VOICE_CALL_FAILED, X.SECOND_FACTOR_STARTED, X.MFA_ENROLL_STARTED, X.MFA_ENROLLMENT_FAILED, X.GUARDIAN_TENANT_UPDATE, X.UNENROLL_DEVICE_ACCOUNT, X.UPDATE_DEVICE_ACCOUNT, X.WEBAUTHN_CHALLENGE_FAILED, X.WEBAUTHN_ENROLLMENT_FAILED, X.FAILED_KMS_API_OPERATION, X.SUCCESS_KMS_API_OPERATION, X.KMS_KEY_STATE_CHANGED, X.TOO_MANY_CALLS_TO_DELEGATION, X.BLOCKED_IP_ADDRESS, X.BLOCKED_ACCOUNT_IP, X.BLOCKED_ACCOUNT_EMAIL, X.INFORMATION, X.MFA_REQUIRED, X.MANAGEMENT_API_READ_OPERATION, X.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, X.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, X.FAILED_OIDC_BACKCHANNEL_LOGOUT, X.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, X.ORGANIZATION_MEMBER_ADDED, X.PASSKEY_CHALLENGE_FAILED, X.PASSKEY_CHALLENGE_STARTED, X.PRE_LOGIN_ASSESSMENT, X.BREACHED_PASSWORD, X.BREACHED_PASSWORD_ON_RESET, X.SUCCESS_RESOURCE_CLEANUP, X.RICH_CONSENTS_ACCESS_ERROR, X.SUCCESS_LOGIN, X.SUCCESS_API_OPERATION, X.FAILED_API_OPERATION, X.SUCCESS_CHANGE_EMAIL, X.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, X.SUCCESS_CHANGE_PASSWORD, X.SUCCESS_CHANGE_PHONE_NUMBER, X.SUCCESS_CHANGE_PASSWORD_REQUEST, X.SUCCESS_CHANGE_USERNAME, X.SUCCESS_CREDENTIAL_VALIDATION, X.SUCCESS_DELEGATION, X.SUCCESS_USER_DELETION, X.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, X.SUCCESS_EXCHANGE_CUSTOM_TOKEN, X.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, X.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, X.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, X.SUCCESS_IMPERSONATION, X.SUCCESSFULLY_ACCEPTED_USER_INVITE, X.BREACHED_PASSWORD_ON_SIGNUP, X.SUCCESS_LOGOUT, X.SUCCESS_HOOK, X.SUCCESS_PASSWORD_MIGRATION, X.SUCCESS_REVOCATION, X.SUCCESS_SIGNUP, X.FAILED_SS_SSO_OPERATION, X.INFORMATION_FROM_SS_SSO_OPERATION, X.SUCCESS_SS_SSO_OPERATION, X.SUCCESS_SILENT_AUTH, X.SUCCESSFUL_SCIM_OPERATION, X.SUCCESSFULLY_IMPORTED_USERS, X.SUCCESS_VERIFICATION_EMAIL, X.SUCCESS_VERIFICATION_EMAIL_REQUEST, X.MAX_AMOUNT_OF_AUTHENTICATORS, X.USER_LOGIN_BLOCK_RELEASED, X.FAILED_UNIVERSAL_LOGOUT, X.SUCCESSFUL_UNIVERSAL_LOGOUT, X.WARNING_DURING_LOGIN, X.WARNING_SENDING_NOTIFICATION, X.WARNING_USER_MANAGEMENT, (() => {
5650
+ }, $i = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5651
+ Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.CONFIG_INHERITANCE_DIFF, Q.CONFIG_DRIFT, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
5652
5652
  let e = {};
5653
- for (let [t, n] of Object.entries(X)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "CONFIG_INHERITANCE_DIFF" || t === "CONFIG_DRIFT" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
5653
+ for (let [t, n] of Object.entries(Q)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "CONFIG_INHERITANCE_DIFF" || t === "CONFIG_DRIFT" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
5654
5654
  return e;
5655
5655
  })();
5656
- var na = e.object({
5656
+ var ea = e.object({
5657
5657
  name: e.string(),
5658
5658
  version: e.string(),
5659
5659
  env: e.object({ node: e.string().optional() }).optional()
5660
- }), ra = e.object({
5660
+ }), ta = e.object({
5661
5661
  country_code: e.string().length(2),
5662
5662
  city_name: e.string(),
5663
5663
  latitude: e.string(),
@@ -5666,7 +5666,7 @@ var na = e.object({
5666
5666
  continent_code: e.string()
5667
5667
  });
5668
5668
  e.object({
5669
- type: ta,
5669
+ type: $i,
5670
5670
  date: e.string(),
5671
5671
  description: e.string().optional(),
5672
5672
  ip: e.string().optional(),
@@ -5684,63 +5684,63 @@ e.object({
5684
5684
  strategy: e.string().optional(),
5685
5685
  strategy_type: e.string().optional(),
5686
5686
  hostname: e.string().optional(),
5687
- auth0_client: na.optional(),
5687
+ auth0_client: ea.optional(),
5688
5688
  log_id: e.string().optional(),
5689
- location_info: ra.optional()
5689
+ location_info: ta.optional()
5690
5690
  }).extend({ log_id: e.string() });
5691
- var ia = e.enum([
5691
+ var na = e.enum([
5692
5692
  "http",
5693
5693
  "eventbridge",
5694
5694
  "eventgrid",
5695
5695
  "splunk",
5696
5696
  "datadog",
5697
5697
  "sumo"
5698
- ]), aa = e.enum([
5698
+ ]), ra = e.enum([
5699
5699
  "active",
5700
5700
  "paused",
5701
5701
  "suspended"
5702
- ]), oa = e.object({
5702
+ ]), ia = e.object({
5703
5703
  type: e.string(),
5704
5704
  name: e.string()
5705
5705
  });
5706
5706
  e.object({
5707
5707
  name: e.string(),
5708
- type: ia,
5709
- status: aa.optional(),
5708
+ type: na,
5709
+ status: ra.optional(),
5710
5710
  sink: e.record(e.string(), e.unknown()),
5711
- filters: e.array(oa).optional(),
5711
+ filters: e.array(ia).optional(),
5712
5712
  isPriority: e.boolean().optional()
5713
5713
  }).extend({
5714
5714
  id: e.string(),
5715
- status: aa,
5715
+ status: ra,
5716
5716
  created_at: e.string().optional(),
5717
5717
  updated_at: e.string().optional()
5718
5718
  });
5719
- var sa = e.enum([
5719
+ var aa = e.enum([
5720
5720
  "auth0",
5721
5721
  "cognito",
5722
5722
  "okta",
5723
5723
  "oidc"
5724
- ]), ca = e.object({
5724
+ ]), oa = e.object({
5725
5725
  domain: e.string(),
5726
5726
  client_id: e.string(),
5727
5727
  client_secret: e.string(),
5728
5728
  audience: e.string().optional(),
5729
5729
  scope: e.string().optional()
5730
- }), la = e.object({
5730
+ }), sa = e.object({
5731
5731
  id: e.string().optional(),
5732
5732
  name: e.string(),
5733
- provider: sa,
5733
+ provider: aa,
5734
5734
  connection: e.string(),
5735
5735
  enabled: e.boolean().default(!0),
5736
- credentials: ca
5736
+ credentials: oa
5737
5737
  });
5738
5738
  e.object({
5739
5739
  id: e.string(),
5740
5740
  created_at: e.string(),
5741
5741
  updated_at: e.string()
5742
- }).extend(la.shape);
5743
- var ua = e.object({
5742
+ }).extend(sa.shape);
5743
+ var ca = e.object({
5744
5744
  enabled: e.boolean().optional(),
5745
5745
  shields: e.array(e.string()).optional(),
5746
5746
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -5749,13 +5749,13 @@ var ua = e.object({
5749
5749
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
5750
5750
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
5751
5751
  }).optional()
5752
- }), da = e.object({
5752
+ }), la = e.object({
5753
5753
  enabled: e.boolean().optional(),
5754
5754
  shields: e.array(e.string()).optional(),
5755
5755
  allowlist: e.array(e.string()).optional(),
5756
5756
  mode: e.string().optional(),
5757
5757
  max_attempts: e.number().optional()
5758
- }), fa = e.object({
5758
+ }), ua = e.object({
5759
5759
  enabled: e.boolean().optional(),
5760
5760
  shields: e.array(e.string()).optional(),
5761
5761
  allowlist: e.array(e.string()).optional(),
@@ -5769,10 +5769,10 @@ var ua = e.object({
5769
5769
  rate: e.number().optional()
5770
5770
  }).optional()
5771
5771
  }).optional()
5772
- }), pa = e.object({
5773
- breached_password_detection: ua.optional(),
5774
- brute_force_protection: da.optional(),
5775
- suspicious_ip_throttling: fa.optional()
5772
+ }), da = e.object({
5773
+ breached_password_detection: ca.optional(),
5774
+ brute_force_protection: la.optional(),
5775
+ suspicious_ip_throttling: ua.optional()
5776
5776
  });
5777
5777
  e.object({
5778
5778
  id: e.string().optional(),
@@ -5785,14 +5785,14 @@ e.object({
5785
5785
  created_at: e.string(),
5786
5786
  updated_at: e.string()
5787
5787
  });
5788
- var ma = e.object({
5788
+ var fa = e.object({
5789
5789
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
5790
5790
  initial_ip: e.string().describe("First IP address associated with this session"),
5791
5791
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
5792
5792
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
5793
5793
  last_ip: e.string().describe("Last IP address from which this user logged in"),
5794
5794
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
5795
- }), ha = e.object({
5795
+ }), pa = e.object({
5796
5796
  id: e.string(),
5797
5797
  revoked_at: e.string().optional(),
5798
5798
  used_at: e.string().optional(),
@@ -5800,7 +5800,7 @@ var ma = e.object({
5800
5800
  expires_at: e.string().optional(),
5801
5801
  login_session_id: e.string(),
5802
5802
  idle_expires_at: e.string().optional(),
5803
- device: ma.describe("Metadata related to the device used in the session"),
5803
+ device: fa.describe("Metadata related to the device used in the session"),
5804
5804
  clients: e.array(e.string()).describe("List of client details for the session")
5805
5805
  });
5806
5806
  e.object({
@@ -5808,7 +5808,7 @@ e.object({
5808
5808
  updated_at: e.string(),
5809
5809
  authenticated_at: e.string(),
5810
5810
  last_interaction_at: e.string()
5811
- }).extend(ha.shape), e.object({
5811
+ }).extend(pa.shape), e.object({
5812
5812
  kid: e.string().openapi({ description: "The key id of the signing key" }),
5813
5813
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
5814
5814
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -5825,7 +5825,7 @@ e.object({
5825
5825
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
5826
5826
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
5827
5827
  });
5828
- var ga = e.object({
5828
+ var ma = e.object({
5829
5829
  id: e.string().optional(),
5830
5830
  parent_tenant_id: e.string().nullish(),
5831
5831
  config_sync: e.enum([
@@ -5951,7 +5951,7 @@ var ga = e.object({
5951
5951
  "shared_planetscale"
5952
5952
  ]).optional(),
5953
5953
  d1_database_id: e.string().max(64).optional(),
5954
- attack_protection: pa.optional(),
5954
+ attack_protection: da.optional(),
5955
5955
  mfa: e.object({
5956
5956
  policy: e.enum(["never", "always"]).default("never").optional(),
5957
5957
  factors: e.object({
@@ -5982,11 +5982,34 @@ var ga = e.object({
5982
5982
  e.object({
5983
5983
  created_at: e.string().nullable().transform((e) => e ?? ""),
5984
5984
  updated_at: e.string().nullable().transform((e) => e ?? "")
5985
- }).extend(ga.shape).extend({
5985
+ }).extend(ma.shape).extend({
5986
5986
  id: e.string(),
5987
5987
  is_control_plane: e.boolean().optional(),
5988
5988
  has_children: e.boolean().optional()
5989
5989
  });
5990
+ var ha = ma.shape.mfa.unwrap().shape, ga = e.object({
5991
+ ...ha,
5992
+ policy: e.enum(["never", "always"]).optional(),
5993
+ factors: e.object({
5994
+ sms: e.boolean().optional(),
5995
+ otp: e.boolean().optional(),
5996
+ email: e.boolean().optional(),
5997
+ push_notification: e.boolean().optional(),
5998
+ webauthn_roaming: e.boolean().optional(),
5999
+ webauthn_platform: e.boolean().optional(),
6000
+ recovery_code: e.boolean().optional(),
6001
+ duo: e.boolean().optional()
6002
+ }).optional()
6003
+ });
6004
+ e.object(ma.shape).extend({
6005
+ deployment_type: e.enum(["shared", "wfp"]),
6006
+ provisioning_state: e.enum([
6007
+ "pending",
6008
+ "ready",
6009
+ "failed"
6010
+ ]),
6011
+ mfa: ga
6012
+ }).partial();
5990
6013
  var _a = e.enum([
5991
6014
  "provision",
5992
6015
  "seed",
@@ -6207,19 +6230,19 @@ var Ea = e.object({
6207
6230
  success: e.string(),
6208
6231
  widget_background: e.string(),
6209
6232
  widget_border: e.string()
6210
- }), Z = e.object({
6233
+ }), $ = e.object({
6211
6234
  bold: e.boolean(),
6212
6235
  size: e.number()
6213
6236
  }), Oa = e.object({
6214
- body_text: Z,
6215
- buttons_text: Z,
6237
+ body_text: $,
6238
+ buttons_text: $,
6216
6239
  font_url: e.string(),
6217
- input_labels: Z,
6218
- links: Z,
6240
+ input_labels: $,
6241
+ links: $,
6219
6242
  links_style: e.enum(["normal", "underlined"]),
6220
6243
  reference_text_size: e.number(),
6221
- subtitle: Z,
6222
- title: Z
6244
+ subtitle: $,
6245
+ title: $
6223
6246
  }), ka = e.object({
6224
6247
  background_color: e.string(),
6225
6248
  background_image_url: e.string(),
@@ -6257,7 +6280,7 @@ e.object({
6257
6280
  page_background: ka,
6258
6281
  widget: Aa
6259
6282
  }).extend({ themeId: e.string() }), e.object({
6260
- ...U,
6283
+ ...G,
6261
6284
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
6262
6285
  identifier_first: e.boolean().default(!0),
6263
6286
  password_first: e.boolean().default(!1),
@@ -6311,7 +6334,7 @@ var Pa = "custom_authentication", Fa = [
6311
6334
  trust_email_verified: e.boolean().default(!1)
6312
6335
  }), e.object({ type: e.literal("user_id") })]), za = e.object({
6313
6336
  issuer: e.string().min(1).max(2048),
6314
- jwks: Zi.optional(),
6337
+ jwks: Yi.optional(),
6315
6338
  jwks_uri: e.string().url().optional(),
6316
6339
  audience: e.array(e.string().min(1)).min(1).optional(),
6317
6340
  algorithms: e.array(La).min(1).optional(),
@@ -6363,7 +6386,7 @@ var Ua = e.object({
6363
6386
  user_id: e.string()
6364
6387
  });
6365
6388
  e.object({ created_at: e.string() }).extend(Ua.shape), e.object({
6366
- ...U,
6389
+ ...G,
6367
6390
  name: e.string(),
6368
6391
  enabled: e.boolean().optional().default(!0),
6369
6392
  default_from_address: e.string().optional(),
@@ -6400,13 +6423,13 @@ e.object({
6400
6423
  session_id: e.string().optional(),
6401
6424
  organization: e.string().optional(),
6402
6425
  auth_connection: e.string().optional(),
6403
- auth_strategy: ea.optional(),
6426
+ auth_strategy: Qi.optional(),
6404
6427
  user_id: e.string(),
6405
6428
  client_id: e.string(),
6406
6429
  expires_at: e.string().optional(),
6407
6430
  idle_expires_at: e.string().optional(),
6408
6431
  last_exchanged_at: e.string().optional(),
6409
- device: ma,
6432
+ device: fa,
6410
6433
  resource_servers: e.array(e.object({
6411
6434
  audience: e.string(),
6412
6435
  scopes: e.string()
@@ -6452,7 +6475,7 @@ var Ga = e.object({
6452
6475
  verificationKey: e.string().optional(),
6453
6476
  options: Ka.optional(),
6454
6477
  is_system: e.boolean().optional(),
6455
- ...U,
6478
+ ...G,
6456
6479
  metadata: e.record(e.string(), e.any()).optional()
6457
6480
  }).extend({
6458
6481
  created_at: e.string().optional(),
@@ -6542,7 +6565,7 @@ e.object({
6542
6565
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
6543
6566
  enabled_connections: e.array(eo).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6544
6567
  token_quota: to
6545
- }).extend(H.shape).extend({
6568
+ }).extend(W.shape).extend({
6546
6569
  id: e.string(),
6547
6570
  name: e.string().min(1).openapi({ description: "The name of the organization" })
6548
6571
  });
@@ -6562,7 +6585,7 @@ var no = e.object({
6562
6585
  e.array(no), e.object({
6563
6586
  user_id: e.string().openapi({ description: "ID of the user" }),
6564
6587
  organization_id: e.string().openapi({ description: "ID of the organization" })
6565
- }).extend(H.shape).extend({ id: e.string() }), e.object({
6588
+ }).extend(W.shape).extend({ id: e.string() }), e.object({
6566
6589
  idle_session_lifetime: e.number().default(72),
6567
6590
  session_lifetime: e.number().default(168),
6568
6591
  session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
@@ -6819,48 +6842,48 @@ function ho(e) {
6819
6842
  }
6820
6843
  //#endregion
6821
6844
  //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
6822
- var go = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Q = (e = 21) => {
6845
+ var go = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", _o = (e = 21) => {
6823
6846
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
6824
6847
  for (; e--;) t += go[n[e] & 63];
6825
6848
  return t;
6826
6849
  };
6827
6850
  //#endregion
6828
6851
  //#region src/helpers.ts
6829
- async function _o(e) {
6852
+ async function vo(e) {
6830
6853
  let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
6831
6854
  return new Uint8Array(await new Response(r).arrayBuffer());
6832
6855
  }
6833
- async function $(e) {
6856
+ async function yo(e) {
6834
6857
  let t = ho(e.replace(/ /g, "+"));
6835
6858
  try {
6836
- let e = await _o(t);
6859
+ let e = await vo(t);
6837
6860
  return new TextDecoder().decode(e);
6838
6861
  } catch (e) {
6839
6862
  return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
6840
6863
  }
6841
6864
  }
6842
- async function vo(e) {
6843
- let t = await $(e), n = new an({
6865
+ async function bo(e) {
6866
+ let t = await yo(e), n = new an({
6844
6867
  attributeNamePrefix: "@_",
6845
6868
  alwaysCreateTextNode: !0,
6846
6869
  ignoreAttributes: !1
6847
6870
  }).parse(t);
6848
6871
  return r.parse(n);
6849
6872
  }
6850
- async function yo(e) {
6851
- let t = await $(e), n = new an({
6873
+ async function xo(e) {
6874
+ let t = await yo(e), n = new an({
6852
6875
  attributeNamePrefix: "@_",
6853
6876
  alwaysCreateTextNode: !0,
6854
6877
  ignoreAttributes: !1
6855
6878
  });
6856
6879
  return i.parse(n.parse(t));
6857
6880
  }
6858
- async function bo(e) {
6859
- let t = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${Q()}" Version="2.0" IssueInstant="${(/* @__PURE__ */ new Date()).toISOString()}" Destination="${t(e.destination)}"${r}><saml:Issuer>${t(e.issuer)}</saml:Issuer><samlp:Status><samlp:StatusCode Value="${n}"/>${i}</samlp:Status></samlp:LogoutResponse>`, o = new Blob([new TextEncoder().encode(a)]).stream().pipeThrough(new CompressionStream("deflate-raw")), s = new Uint8Array(await new Response(o).arrayBuffer()), c = "";
6881
+ async function So(e) {
6882
+ let t = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${_o()}" Version="2.0" IssueInstant="${(/* @__PURE__ */ new Date()).toISOString()}" Destination="${t(e.destination)}"${r}><saml:Issuer>${t(e.issuer)}</saml:Issuer><samlp:Status><samlp:StatusCode Value="${n}"/>${i}</samlp:Status></samlp:LogoutResponse>`, o = new Blob([new TextEncoder().encode(a)]).stream().pipeThrough(new CompressionStream("deflate-raw")), s = new Uint8Array(await new Response(o).arrayBuffer()), c = "";
6860
6883
  for (let e of s) c += String.fromCharCode(e);
6861
6884
  return btoa(c);
6862
6885
  }
6863
- function xo(e) {
6886
+ function Co(e) {
6864
6887
  let t = e.certificates.map((e) => ({
6865
6888
  "@_use": "signing",
6866
6889
  KeyInfo: {
@@ -6926,7 +6949,7 @@ function xo(e) {
6926
6949
  ]
6927
6950
  }
6928
6951
  } };
6929
- return new Dn({
6952
+ return new Tn({
6930
6953
  ignoreAttributes: !1,
6931
6954
  suppressEmptyNode: !0,
6932
6955
  preserveOrder: !1,
@@ -6934,8 +6957,8 @@ function xo(e) {
6934
6957
  attributeNamePrefix: "@_"
6935
6958
  }).build(n);
6936
6959
  }
6937
- async function So(e, t) {
6938
- let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${Q()}`, s = e.assertionId || `_${Q()}`, c = [{
6960
+ async function wo(e, t) {
6961
+ let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${_o()}`, s = e.assertionId || `_${_o()}`, c = [{
6939
6962
  "samlp:Response": [
6940
6963
  { "saml:Issuer": [{ "#text": e.issuer }] },
6941
6964
  { "samlp:Status": [{
@@ -7107,7 +7130,7 @@ async function So(e, t) {
7107
7130
  "@_IssueInstant": i,
7108
7131
  "@_Version": "2.0"
7109
7132
  }
7110
- }], l = new Dn({
7133
+ }], l = new Tn({
7111
7134
  ignoreAttributes: !1,
7112
7135
  suppressEmptyNode: !0,
7113
7136
  preserveOrder: !0
@@ -7116,7 +7139,7 @@ async function So(e, t) {
7116
7139
  }
7117
7140
  //#endregion
7118
7141
  //#region src/signers/local.ts
7119
- var Co = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", wo = "http://www.w3.org/2001/04/xmlenc#sha256", To = "http://www.w3.org/2001/10/xml-exc-c14n#", Eo = class {
7142
+ var To = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", Eo = "http://www.w3.org/2001/04/xmlenc#sha256", Do = "http://www.w3.org/2001/10/xml-exc-c14n#", Oo = class {
7120
7143
  async signSAML(e, t, n) {
7121
7144
  try {
7122
7145
  let r = await import("xml-crypto"), i = r.SignedXml || r.default?.SignedXml;
@@ -7125,11 +7148,11 @@ var Co = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", wo = "http://www.w
7125
7148
  privateKey: t,
7126
7149
  publicCert: n
7127
7150
  });
7128
- a.canonicalizationAlgorithm = To, a.addReference({
7151
+ a.canonicalizationAlgorithm = Do, a.addReference({
7129
7152
  xpath: "(/*[local-name()='Response']/*[local-name()='Assertion'])[1]",
7130
- digestAlgorithm: wo,
7131
- transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", To]
7132
- }), a.signatureAlgorithm = Co;
7153
+ digestAlgorithm: Eo,
7154
+ transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", Do]
7155
+ }), a.signatureAlgorithm = To;
7133
7156
  let o = n.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----/g, "").replace(/\s/g, "");
7134
7157
  return a.keyInfoProvider = { getKeyInfo: () => `<X509Data><X509Certificate>${o}</X509Certificate></X509Data>` }, a.computeSignature(e, { location: {
7135
7158
  reference: "/*[local-name()='Response']/*[local-name()='Assertion']/*[local-name()='Issuer']",
@@ -7139,7 +7162,7 @@ var Co = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", wo = "http://www.w
7139
7162
  throw Error(`Failed to sign SAML locally. Make sure xml-crypto is installed. Error: ${e}`);
7140
7163
  }
7141
7164
  }
7142
- }, Do = class {
7165
+ }, ko = class {
7143
7166
  signUrl;
7144
7167
  constructor(e) {
7145
7168
  this.signUrl = e;
@@ -7159,4 +7182,4 @@ var Co = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", wo = "http://www.w
7159
7182
  }
7160
7183
  };
7161
7184
  //#endregion
7162
- export { Do as HttpSamlSigner, Eo as LocalSamlSigner, bo as createSamlLogoutResponse, xo as createSamlMetadata, So as createSamlResponse, c as dsSignatureSchema, $ as inflateDecompress, _o as inflateRaw, yo as parseSamlLogoutRequestQuery, vo as parseSamlRequestQuery, n as samlIssuerSchema, i as samlLogoutRequestSchema, a as samlMetadataResponseSchema, r as samlRequestSchema, l as samlResponseJsonSchema };
7185
+ export { ko as HttpSamlSigner, Oo as LocalSamlSigner, So as createSamlLogoutResponse, Co as createSamlMetadata, wo as createSamlResponse, c as dsSignatureSchema, yo as inflateDecompress, vo as inflateRaw, xo as parseSamlLogoutRequestQuery, bo as parseSamlRequestQuery, n as samlIssuerSchema, i as samlLogoutRequestSchema, a as samlMetadataResponseSchema, r as samlRequestSchema, l as samlResponseJsonSchema };