@supersoniks/concorde 5.1.2 → 5.1.3

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.
Files changed (130) hide show
  1. package/.agents/skills/concorde-docs/SKILL.md +1 -1
  2. package/README.md +1 -1
  3. package/ai/README.md +29 -41
  4. package/ai/skills/concorde/SKILL.md +54 -324
  5. package/ai/skills/concorde/rules/composition.md +32 -0
  6. package/ai/skills/concorde/rules/data.md +47 -0
  7. package/ai/skills/concorde/rules/http.md +25 -0
  8. package/ai/skills/concorde/rules/lists-forms.md +35 -0
  9. package/ai/skills/concorde/rules/styling.md +46 -0
  10. package/ai/skills/concorde/rules/troubleshooting.md +45 -0
  11. package/build-infos.json +1 -1
  12. package/concorde-core.bundle.js +21 -21
  13. package/concorde-core.es.js +977 -980
  14. package/custom-elements-manifest.public.config.mjs +8 -0
  15. package/{.tmp-cem/custom-elements.json → custom-elements.json} +11722 -8868
  16. package/dist/concorde-core.bundle.js +21 -21
  17. package/dist/concorde-core.es.js +977 -980
  18. package/dist/docs-mock-api-sw.js +58 -223
  19. package/dist/docs-mock-api-sw.js.map +4 -4
  20. package/dist/img/concorde/plane_01.jpg +0 -0
  21. package/dist/img/concorde/plane_02.jpg +0 -0
  22. package/dist/img/concorde/plane_03.jpg +0 -0
  23. package/dist/img/concorde/plane_04.jpg +0 -0
  24. package/dist/img/concorde/plane_05.jpg +0 -0
  25. package/dist/img/concorde/plane_06.jpg +0 -0
  26. package/dist/img/concorde/plane_07.jpg +0 -0
  27. package/dist/img/concorde/plane_08.jpg +0 -0
  28. package/dist/img/concorde/plane_09.jpg +0 -0
  29. package/dist/img/concorde/plane_10.jpg +0 -0
  30. package/dist/img/concorde/plane_11.jpg +0 -0
  31. package/dist/img/concorde/plane_12.jpg +0 -0
  32. package/dist/img/concorde/plane_13.jpg +0 -0
  33. package/dist/img/og-concorde.jpg +0 -0
  34. package/dist/robots.txt +11 -10
  35. package/docs/.htaccess +7 -0
  36. package/docs/about.html +111 -0
  37. package/docs/about.md +22 -0
  38. package/docs/assets/{index-BgG6FFPt.js → index-6sS76xWj.js} +482 -500
  39. package/docs/assets/{index-x89XINSG.css → index-DkdPbH0F.css} +1 -1
  40. package/docs/core/components/functional/date/date.md +1 -1
  41. package/docs/core/components/functional/list/list.html +7 -5
  42. package/docs/core/components/functional/list/list.md +6 -2
  43. package/docs/core/components/ui/card/card.html +1 -1
  44. package/docs/core/components/ui/card/card.md +1 -1
  45. package/docs/core/components/ui/image/image.html +17 -17
  46. package/docs/core/components/ui/image/image.md +17 -17
  47. package/docs/core/components/ui/modal/modal.html +2 -2
  48. package/docs/core/components/ui/modal/modal.md +2 -2
  49. package/docs/custom-elements.json +16559 -0
  50. package/docs/docs/decorators/bind.html +22 -21
  51. package/docs/docs/decorators/bind.md +23 -24
  52. package/docs/docs/getting-started/ai-agents.html +50 -94
  53. package/docs/docs/getting-started/ai-agents.md +29 -55
  54. package/docs/docs/getting-started/dataFlow.html +1 -1
  55. package/docs/docs/getting-started/dataFlow.md +1 -1
  56. package/docs/docs/index.html +1 -1
  57. package/docs/hubs/decorators.html +11 -16
  58. package/docs/hubs/remote-data.html +5 -9
  59. package/docs/img/og-concorde.jpg +0 -0
  60. package/docs/index.html +91 -2
  61. package/docs/index.md +2 -2
  62. package/docs/llms-full.txt +58 -74
  63. package/docs/llms.txt +6 -4
  64. package/docs/privacy.html +122 -0
  65. package/docs/privacy.md +32 -0
  66. package/docs/sitemap.xml +6 -0
  67. package/docs/src/core/components/functional/date/date.md +1 -1
  68. package/docs/src/core/components/functional/list/list.md +6 -2
  69. package/docs/src/core/components/functional/sdui/component-catalog.gaps.json +1 -1
  70. package/docs/src/core/components/functional/sdui/component-catalog.json +1 -1
  71. package/docs/src/core/components/ui/card/card.md +1 -1
  72. package/docs/src/core/components/ui/image/image.md +17 -17
  73. package/docs/src/core/components/ui/modal/modal.md +2 -2
  74. package/docs/src/docs/decorators/bind.md +23 -24
  75. package/docs/src/docs/getting-started/ai-agents.md +29 -55
  76. package/docs/src/docs/getting-started/dataFlow.md +1 -1
  77. package/docs/src/docs/search/docs-search.json +100 -55
  78. package/docs/src/tsconfig.json +11 -5
  79. package/index.html +89 -0
  80. package/package.json +8 -4
  81. package/public/img/og-concorde.jpg +0 -0
  82. package/scripts/ai-init.mjs +104 -379
  83. package/scripts/ai-init.test.mjs +81 -239
  84. package/scripts/docs-markdown-vite-plugin.ts +11 -5
  85. package/scripts/docs-public-url.mjs +6 -0
  86. package/scripts/docs.htaccess +7 -0
  87. package/scripts/generate-cem.mjs +244 -0
  88. package/scripts/generate-cem.test.mjs +122 -0
  89. package/scripts/generate-crawl-docs.mjs +29 -5
  90. package/scripts/generate-sdui-catalog.mjs +11 -10
  91. package/scripts/post-build-docs.js +3 -0
  92. package/scripts/pre-publish.mjs +2 -1
  93. package/scripts/site-pages.mjs +212 -0
  94. package/scripts/site-pages.test.mjs +116 -0
  95. package/site-pages/about.md +22 -0
  96. package/site-pages/privacy.md +32 -0
  97. package/src/core/components/functional/date/date.md +1 -1
  98. package/src/core/components/functional/list/list.md +6 -2
  99. package/src/core/components/functional/sdui/component-catalog.gaps.json +1 -1
  100. package/src/core/components/functional/sdui/component-catalog.json +1 -1
  101. package/src/core/components/ui/card/card.md +1 -1
  102. package/src/core/components/ui/image/image.md +17 -17
  103. package/src/core/components/ui/modal/modal.md +2 -2
  104. package/src/core/decorators/subscriber/bind.ts +9 -14
  105. package/src/docs/components/docs-demo-sources.ts +3 -3
  106. package/src/docs/decorators/bind.md +23 -24
  107. package/src/docs/docs-location.spec.ts +10 -0
  108. package/src/docs/docs-location.ts +10 -0
  109. package/src/docs/example/decorators-demo-bind-demos.ts +11 -28
  110. package/src/docs/example/docs-toggle-demos.ts +1 -1
  111. package/src/docs/getting-started/ai-agents.md +29 -55
  112. package/src/docs/getting-started/dataFlow.md +1 -1
  113. package/src/docs/home/home.ts +3 -1
  114. package/src/docs/navigation/navigation.ts +1 -1
  115. package/src/docs/search/docs-search.json +100 -55
  116. package/src/docs/search/markdown-renderer.ts +6 -1
  117. package/src/docs/tailwind/css/docs/content.css +4 -5
  118. package/src/tsconfig.json +11 -5
  119. package/src/tsconfig.tsbuildinfo +1 -1
  120. package/ai/AGENTS.md +0 -56
  121. package/ai/cursor/rules/concorde-menu.mdc +0 -15
  122. package/ai/cursor/rules/concorde-scope.mdc +0 -14
  123. package/ai/cursor/rules/concorde-theme.mdc +0 -13
  124. package/ai/cursor/rules/concorde.mdc +0 -66
  125. package/ai/jetbrains/rules/concorde.md +0 -53
  126. package/ai/skills/concorde-get-set-dp/SKILL.md +0 -194
  127. package/ai/skills/concorde-imports/SKILL.md +0 -78
  128. package/ai/skills/concorde-menu/SKILL.md +0 -74
  129. package/ai/skills/concorde-scope/SKILL.md +0 -70
  130. package/ai/skills/concorde-theme/SKILL.md +0 -57
@@ -100,7 +100,7 @@ let Ye = class St {
100
100
  let n = null, o = null;
101
101
  const c = St.getAncestorAttributeValue(e, "tokenProvider"), d = St.getAncestorAttributeValue(e, "eventsApiToken");
102
102
  s || (n = St.getAncestorAttributeValue(e, "userName"), o = St.getAncestorAttributeValue(e, "password"));
103
- const g = St.getAncestorAttributeValue(
103
+ const b = St.getAncestorAttributeValue(
104
104
  e,
105
105
  "credentials"
106
106
  ) || void 0, A = e.getAttribute("cache"), m = e.hasAttribute("blockUntilDone"), f = e.hasAttribute("keepAlive");
@@ -112,7 +112,7 @@ let Ye = class St {
112
112
  authToken: d,
113
113
  tokenProvider: c,
114
114
  addHTTPResponse: i,
115
- credentials: g,
115
+ credentials: b,
116
116
  cache: A,
117
117
  blockUntilDone: m,
118
118
  keepAlive: f
@@ -214,9 +214,9 @@ let Yr = class {
214
214
  }
215
215
  static minutesDuration(e, s = "", i = "long") {
216
216
  s || (s = Ye.getLanguage());
217
- const r = (g, A) => [Math.floor(g / A), g % A];
218
- function n(g, A, m) {
219
- return new Intl.NumberFormat(g, { style: "unit", unit: A, unitDisplay: m }).format;
217
+ const r = (b, A) => [Math.floor(b / A), b % A];
218
+ function n(b, A, m) {
219
+ return new Intl.NumberFormat(b, { style: "unit", unit: A, unitDisplay: m }).format;
220
220
  }
221
221
  const [o, c] = r(e, 60), d = [];
222
222
  return o && d.push(n(s, "hour", i)(o)), c && d.push(n(s, "minute", i)(c)), new Intl.ListFormat(s, {
@@ -299,8 +299,8 @@ let ut = class bs {
299
299
  if (r.length !== n.length && i)
300
300
  return !1;
301
301
  for (const o of r) {
302
- const c = e[o], d = s[o], g = bs.isObject(c) && bs.isObject(d), A = i ? c !== d : c != d;
303
- if (g && !bs.deepEqual(c, d) || !g && A)
302
+ const c = e[o], d = s[o], b = bs.isObject(c) && bs.isObject(d), A = i ? c !== d : c != d;
303
+ if (b && !bs.deepEqual(c, d) || !b && A)
304
304
  return !1;
305
305
  }
306
306
  return !0;
@@ -755,10 +755,10 @@ const Ie = class Ie {
755
755
  const i = new TextEncoder().encode(e), r = window, n = new r.CompressionStream(s), o = n.writable.getWriter();
756
756
  o.write(i), o.close();
757
757
  const c = await new Response(n.readable).arrayBuffer(), d = new Uint8Array(c);
758
- let g = "";
758
+ let b = "";
759
759
  for (let A = 0; A < d.length; A++)
760
- g += String.fromCharCode(d[A]);
761
- return btoa(g);
760
+ b += String.fromCharCode(d[A]);
761
+ return btoa(b);
762
762
  }
763
763
  async decompress(e, s) {
764
764
  const i = atob(e), n = Uint8Array.from(
@@ -766,11 +766,11 @@ const Ie = class Ie {
766
766
  (A) => A.charCodeAt(0)
767
767
  ).buffer, o = window, c = new o.DecompressionStream(s), d = c.writable.getWriter();
768
768
  d.write(n), d.close();
769
- const g = await new Response(c.readable).arrayBuffer();
770
- return new TextDecoder().decode(g);
769
+ const b = await new Response(c.readable).arrayBuffer();
770
+ return new TextDecoder().decode(b);
771
771
  }
772
772
  };
773
- Ie.buildDate = "Mon Oct 26 2026 09:58:41 GMT+0100 (Central European Standard Time)", Ie.changed = !1, Ie.saving = !1, Ie.saveId = 0, Ie.instance = null, Ie.instances = /* @__PURE__ */ new Map(), Ie.pageShowHandlerInitialized = !1;
773
+ Ie.buildDate = "Tue Oct 27 2026 10:09:17 GMT+0100 (Central European Standard Time)", Ie.changed = !1, Ie.saving = !1, Ie.saveId = 0, Ie.instance = null, Ie.instances = /* @__PURE__ */ new Map(), Ie.pageShowHandlerInitialized = !1;
774
774
  let we = Ie;
775
775
  if (typeof window < "u") {
776
776
  const t = window;
@@ -1072,36 +1072,36 @@ let Xi = (Oe = class {
1072
1072
  const i = we.getInstance().get(s), r = Oe.getDataBindItems(e), n = [];
1073
1073
  r.forEach((o) => {
1074
1074
  const c = o.bindedVariablesDescriptor, d = o.propertyToUpdate;
1075
- for (const g of c.variables) {
1076
- const A = g;
1075
+ for (const b of c.variables) {
1076
+ const A = b;
1077
1077
  let m = i;
1078
1078
  m = Oe.getSubPublisher(i, A);
1079
1079
  const f = e, C = {
1080
1080
  publisher: m,
1081
1081
  onAssign: () => {
1082
1082
  const E = c.variables.map((B) => Oe.getSubPublisher(i, B)?.get());
1083
- let O = c.expression, U = !1;
1084
- if (E.length == 1 && c.variables[0].join(".") == O.substring(1)) {
1083
+ let T = c.expression, U = !1;
1084
+ if (E.length == 1 && c.variables[0].join(".") == T.substring(1)) {
1085
1085
  let B = E[0];
1086
1086
  B === null && (B = ""), f[d] = B;
1087
1087
  return;
1088
1088
  }
1089
1089
  for (let B = 0; B < E.length; B++) {
1090
- let S = E[B];
1090
+ let x = E[B];
1091
1091
  const y = c.variables[B];
1092
- S === null && (U = !0, S = void 0), O = O.replace("$" + y.join("."), S);
1092
+ x === null && (U = !0, x = void 0), T = T.replace("$" + y.join("."), x);
1093
1093
  }
1094
- if (O.indexOf("|") != -1) {
1095
- const B = O.indexOf("|");
1094
+ if (T.indexOf("|") != -1) {
1095
+ const B = T.indexOf("|");
1096
1096
  if (B == 0)
1097
- O = Yr.js(O.substring(1));
1097
+ T = Yr.js(T.substring(1));
1098
1098
  else {
1099
- const S = O.substring(0, B), y = O.substring(B + 1), M = Yr[S];
1100
- O = U ? "" : M ? M(y) : O;
1099
+ const x = T.substring(0, B), y = T.substring(B + 1), M = Yr[x];
1100
+ T = U ? "" : M ? M(y) : T;
1101
1101
  }
1102
1102
  } else
1103
- O = U ? "" : O;
1104
- f[d] = O;
1103
+ T = U ? "" : T;
1104
+ f[d] = T;
1105
1105
  }
1106
1106
  };
1107
1107
  m?.onAssign(C.onAssign), n.push(C);
@@ -1483,10 +1483,10 @@ const Ac = (t, e) => {
1483
1483
  let r, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = zr;
1484
1484
  for (let c = 0; c < s; c++) {
1485
1485
  const d = t[c];
1486
- let g, A, m = -1, f = 0;
1487
- for (; f < d.length && (o.lastIndex = f, A = o.exec(d), A !== null); ) f = o.lastIndex, o === zr ? A[1] === "!--" ? o = Uo : A[1] !== void 0 ? o = zo : A[2] !== void 0 ? (za.test(A[2]) && (r = RegExp("</" + A[2], "g")), o = Ks) : A[3] !== void 0 && (o = Ks) : o === Ks ? A[0] === ">" ? (o = r ?? zr, m = -1) : A[1] === void 0 ? m = -2 : (m = o.lastIndex - A[2].length, g = A[1], o = A[3] === void 0 ? Ks : A[3] === '"' ? Bo : qo) : o === Bo || o === qo ? o = Ks : o === Uo || o === zo ? o = zr : (o = Ks, r = void 0);
1486
+ let b, A, m = -1, f = 0;
1487
+ for (; f < d.length && (o.lastIndex = f, A = o.exec(d), A !== null); ) f = o.lastIndex, o === zr ? A[1] === "!--" ? o = Uo : A[1] !== void 0 ? o = zo : A[2] !== void 0 ? (za.test(A[2]) && (r = RegExp("</" + A[2], "g")), o = Ks) : A[3] !== void 0 && (o = Ks) : o === Ks ? A[0] === ">" ? (o = r ?? zr, m = -1) : A[1] === void 0 ? m = -2 : (m = o.lastIndex - A[2].length, b = A[1], o = A[3] === void 0 ? Ks : A[3] === '"' ? Bo : qo) : o === Bo || o === qo ? o = Ks : o === Uo || o === zo ? o = zr : (o = Ks, r = void 0);
1488
1488
  const C = o === Ks && t[c + 1].startsWith("/>") ? " " : "";
1489
- n += o === zr ? d + Sc : m >= 0 ? (i.push(g), d.slice(0, m) + ja + d.slice(m) + Es + C) : d + Es + (m === -2 ? c : C);
1489
+ n += o === zr ? d + Sc : m >= 0 ? (i.push(b), d.slice(0, m) + ja + d.slice(m) + Es + C) : d + Es + (m === -2 ? c : C);
1490
1490
  }
1491
1491
  return [qa(t, n + (t[s] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
1492
1492
  };
@@ -1495,8 +1495,8 @@ let Dn = class Ba {
1495
1495
  let r;
1496
1496
  this.parts = [];
1497
1497
  let n = 0, o = 0;
1498
- const c = e.length - 1, d = this.parts, [g, A] = Ac(e, s);
1499
- if (this.el = Ba.createElement(g, i), Js.currentNode = this.el.content, s === 2 || s === 3) {
1498
+ const c = e.length - 1, d = this.parts, [b, A] = Ac(e, s);
1499
+ if (this.el = Ba.createElement(b, i), Js.currentNode = this.el.content, s === 2 || s === 3) {
1500
1500
  const m = this.el.content.firstChild;
1501
1501
  m.replaceWith(...m.childNodes);
1502
1502
  }
@@ -1549,8 +1549,8 @@ let Cc = class {
1549
1549
  let n = Js.nextNode(), o = 0, c = 0, d = i[0];
1550
1550
  for (; d !== void 0; ) {
1551
1551
  if (o === d.index) {
1552
- let g;
1553
- d.type === 2 ? g = new kr(n, n.nextSibling, this, e) : d.type === 1 ? g = new d.ctor(n, d.name, d.strings, this, e) : d.type === 6 && (g = new Ec(n, this, e)), this._$AV.push(g), d = i[++c];
1552
+ let b;
1553
+ d.type === 2 ? b = new kr(n, n.nextSibling, this, e) : d.type === 1 ? b = new d.ctor(n, d.name, d.strings, this, e) : d.type === 6 && (b = new Ec(n, this, e)), this._$AV.push(b), d = i[++c];
1554
1554
  }
1555
1555
  o !== d?.index && (n = Js.nextNode(), o++);
1556
1556
  }
@@ -1636,8 +1636,8 @@ class tn {
1636
1636
  if (n === void 0) e = Sr(this, e, s, 0), o = !Qr(e) || e !== this._$AH && e !== qt, o && (this._$AH = e);
1637
1637
  else {
1638
1638
  const c = e;
1639
- let d, g;
1640
- for (e = n[0], d = 0; d < n.length - 1; d++) g = Sr(this, c[i + d], s, d), g === qt && (g = this._$AH[d]), o ||= !Qr(g) || g !== this._$AH[d], g === te ? e = te : e !== te && (e += (g ?? "") + n[d + 1]), this._$AH[d] = g;
1639
+ let d, b;
1640
+ for (e = n[0], d = 0; d < n.length - 1; d++) b = Sr(this, c[i + d], s, d), b === qt && (b = this._$AH[d]), o ||= !Qr(b) || b !== this._$AH[d], b === te ? e = te : e !== te && (e += (b ?? "") + n[d + 1]), this._$AH[d] = b;
1641
1641
  }
1642
1642
  o && !r && this.j(e);
1643
1643
  }
@@ -1715,8 +1715,8 @@ const { I: Ic } = Oc, Mc = (t) => t.strings === void 0, Vo = () => document.crea
1715
1715
  if (n !== r || c) {
1716
1716
  let d = s._$AA;
1717
1717
  for (; d !== n; ) {
1718
- const g = d.nextSibling;
1719
- i.insertBefore(d, r), d = g;
1718
+ const b = d.nextSibling;
1719
+ i.insertBefore(d, r), d = b;
1720
1720
  }
1721
1721
  }
1722
1722
  }
@@ -1940,22 +1940,22 @@ const Fe = class Fe {
1940
1940
  let o = [];
1941
1941
  Array.isArray(n) ? o = n : o = [n];
1942
1942
  const c = [];
1943
- let d = Number.POSITIVE_INFINITY, g = 0, A = 0;
1944
- if (r.has("limit") && (d = parseInt(r.get("limit") || "0"), A++), r.has("offset") && (g = parseInt(r.get("offset") || "0"), A++), A > 0 && (r.delete("limit"), r.delete("offset")), r.size === 0)
1945
- return o.slice(g, g + d);
1943
+ let d = Number.POSITIVE_INFINITY, b = 0, A = 0;
1944
+ if (r.has("limit") && (d = parseInt(r.get("limit") || "0"), A++), r.has("offset") && (b = parseInt(r.get("offset") || "0"), A++), A > 0 && (r.delete("limit"), r.delete("offset")), r.size === 0)
1945
+ return o.slice(b, b + d);
1946
1946
  for (const [m, f] of r.entries()) {
1947
1947
  const C = f.split(",").map((E) => E.trim());
1948
1948
  for (const E of C)
1949
- for (const O of o)
1950
- if (typeof O != "object")
1951
- isNaN(+O) ? O.toString().toLowerCase().includes(f.toLowerCase()) && c.push(O) : O === f && c.push(O);
1949
+ for (const T of o)
1950
+ if (typeof T != "object")
1951
+ isNaN(+T) ? T.toString().toLowerCase().includes(f.toLowerCase()) && c.push(T) : T === f && c.push(T);
1952
1952
  else {
1953
- const U = O;
1953
+ const U = T;
1954
1954
  if (!U[m]) continue;
1955
- isNaN(+U[m]) ? U[m]?.toString().toLowerCase().includes(E.toLowerCase()) && c.push(O) : U[m] === E && c.push(O);
1955
+ isNaN(+U[m]) ? U[m]?.toString().toLowerCase().includes(E.toLowerCase()) && c.push(T) : U[m] === E && c.push(T);
1956
1956
  }
1957
1957
  }
1958
- return c.slice(g, g + d);
1958
+ return c.slice(b, b + d);
1959
1959
  }
1960
1960
  /**
1961
1961
  * firstCallDone is a function that returns a promise that is resolved when the first call to the API is done for each serviceURL whatever api instance is used
@@ -1978,9 +1978,9 @@ const Fe = class Fe {
1978
1978
  const i = /dataProvider\((.*?)\)(.*?)$/;
1979
1979
  if (i.test(e)) {
1980
1980
  this.blockUntilDone && (await this.firstCallDone(), Fe.firstCallDoneFlags.set(this.serviceURL, "loading"));
1981
- const g = e.match(i);
1982
- if (!g) throw new Error("dataProvider path is not valid");
1983
- return await this.localGet(g[1], g[2]);
1981
+ const b = e.match(i);
1982
+ if (!b) throw new Error("dataProvider path is not valid");
1983
+ return await this.localGet(b[1], b[2]);
1984
1984
  }
1985
1985
  const r = {
1986
1986
  apiMethod: "get",
@@ -1994,7 +1994,7 @@ const Fe = class Fe {
1994
1994
  keepAlive: this.keepAlive
1995
1995
  });
1996
1996
  if (this.blockUntilDone && (await this.firstCallDone(), Fe.firstCallDoneFlags.set(this.serviceURL, "loading")), !Fe.loadingGetPromises.has(c)) {
1997
- const g = new Promise(async (A) => {
1997
+ const b = new Promise(async (A) => {
1998
1998
  try {
1999
1999
  const m = await fetch(o, {
2000
2000
  headers: n,
@@ -2010,7 +2010,7 @@ const Fe = class Fe {
2010
2010
  Fe.firstCallDoneFlags.set(this.serviceURL, "error"), A(null);
2011
2011
  }
2012
2012
  });
2013
- Fe.loadingGetPromises.set(c, g);
2013
+ Fe.loadingGetPromises.set(c, b);
2014
2014
  }
2015
2015
  const d = await Fe.loadingGetPromises.get(c);
2016
2016
  return Fe.loadingGetPromises.delete(c), d ? (this.lastResult = d.response, d.processed) : null;
@@ -2138,14 +2138,14 @@ const Fe = class Fe {
2138
2138
  o.Accept = "application/json";
2139
2139
  const c = new FormData(), d = s;
2140
2140
  for (const A in d) c.set(A, d[A]);
2141
- const g = await fetch(this.computeURL(e), {
2141
+ const b = await fetch(this.computeURL(e), {
2142
2142
  headers: o,
2143
2143
  credentials: this.credentials,
2144
2144
  method: i,
2145
2145
  body: c,
2146
2146
  keepalive: this.keepAlive
2147
2147
  });
2148
- return await this.handleResult(g, n);
2148
+ return await this.handleResult(b, n);
2149
2149
  }
2150
2150
  /**
2151
2151
  * Appel send en utilisant le méthode PUT
@@ -2273,7 +2273,7 @@ const We = qs(En), On = /* @__PURE__ */ new Map(), Ko = (t) => {
2273
2273
  }, 1e3);
2274
2274
  return;
2275
2275
  }
2276
- const g = o.api;
2276
+ const b = o.api;
2277
2277
  window.queueMicrotask(async () => {
2278
2278
  if (n = Ve.publisher["wording_" + s].get() != null, !n && s !== "" && (o.keysToTranslate.add(s), Ve.publisher["wording_" + s].set(Go)), c !== o.callIndex) return;
2279
2279
  const A = Array.from(o.keysToTranslate);
@@ -2283,9 +2283,9 @@ const We = qs(En), On = /* @__PURE__ */ new Map(), Ko = (t) => {
2283
2283
  ...o.translatedKeys,
2284
2284
  ...o.keysToTranslate
2285
2285
  ]), o.keysToTranslate.clear();
2286
- const O = await g.get(E);
2287
- for (const U in O)
2288
- Ve.publisher["wording_" + U].set(O[U]);
2286
+ const T = await b.get(E);
2287
+ for (const U in T)
2288
+ Ve.publisher["wording_" + U].set(T[U]);
2289
2289
  });
2290
2290
  }
2291
2291
  static reloadWordings() {
@@ -2304,7 +2304,7 @@ const We = qs(En), On = /* @__PURE__ */ new Map(), Ko = (t) => {
2304
2304
  const c = Ve.publisher.get().__wording_versions__ ?? [];
2305
2305
  if (n == null) return;
2306
2306
  const d = c.find(
2307
- (g) => g.serviceURL === s.api.serviceURL
2307
+ (b) => b.serviceURL === s.api.serviceURL
2308
2308
  ) || {
2309
2309
  serviceURL: s.api.serviceURL,
2310
2310
  version: 0
@@ -2377,8 +2377,8 @@ const Mt = (t, e) => {
2377
2377
  super.updated(o);
2378
2378
  const d = [...(this.shadowRoot || this).children].filter(
2379
2379
  (A) => A.tagName != "STYLE"
2380
- ), g = this.displayContents ? "contents" : d.length == 0 ? "none" : null;
2381
- g ? this.style.display = g : this.style.removeProperty("display");
2380
+ ), b = this.displayContents ? "contents" : d.length == 0 ? "none" : null;
2381
+ b ? this.style.display = b : this.style.removeProperty("display");
2382
2382
  }
2383
2383
  connectedCallback() {
2384
2384
  if (r.instanceCounter++, this.hasAttribute("lazyRendering")) {
@@ -2388,8 +2388,8 @@ const Mt = (t, e) => {
2388
2388
  threshold: 0.9
2389
2389
  };
2390
2390
  let c = !0;
2391
- const d = new IntersectionObserver((g) => {
2392
- for (const A of g)
2391
+ const d = new IntersectionObserver((b) => {
2392
+ for (const A of b)
2393
2393
  if (c && A.isIntersecting) {
2394
2394
  c = !1, d.disconnect(), this.initWording(), this.shouldRenderLazy = !1, this.startPublisher();
2395
2395
  break;
@@ -2479,10 +2479,10 @@ const Mt = (t, e) => {
2479
2479
  invalidateOnPageShow: this.hasAttribute("invalidateOnPageShow")
2480
2480
  });
2481
2481
  if (this.dataProvider = c, this.hasAttribute("subDataProvider")) {
2482
- const g = this.getAttribute(
2482
+ const b = this.getAttribute(
2483
2483
  "subDataProvider"
2484
2484
  );
2485
- this.dataProvider = c + "/" + g, d = ut.traverse(d, g.split(".")), o.set(this.dataProvider, d), this.publisher = d;
2485
+ this.dataProvider = c + "/" + b, d = ut.traverse(d, b.split(".")), o.set(this.dataProvider, d), this.publisher = d;
2486
2486
  }
2487
2487
  this.publisher = d;
2488
2488
  }
@@ -2581,7 +2581,7 @@ let ze = class extends Mt(li(Q)) {
2581
2581
  s
2582
2582
  ).formatRangeToParts(i, n), !o) {
2583
2583
  const d = r.find(
2584
- (g) => g.type == "literal" && g.source == "shared" && g.value.trim().length > 0
2584
+ (b) => b.type == "literal" && b.source == "shared" && b.value.trim().length > 0
2585
2585
  );
2586
2586
  d && (d.value = " " + this.duAu[1] + " ", d.type = "to"), this.designMode || r.unshift({
2587
2587
  type: "from",
@@ -2737,10 +2737,10 @@ let dt = (Xe = class {
2737
2737
  static changeFromComponent(e) {
2738
2738
  const s = e.goBack, i = document.referrer;
2739
2739
  if (s != null) {
2740
- const g = document.location.origin, A = (s || g).toString(), f = i.indexOf("http") == 0 ? new URL(i).origin != g : !1, C = i == "", E = history.length < 3, O = C && E, U = A != document.location.href;
2741
- if (f && U || O) {
2742
- const S = history.state || {};
2743
- S.concorde = S.concorde || {}, S.concorde.hasDoneHistoryBack = !0, history.pushState(S, document.title), history.back(), document.location.replace(A);
2740
+ const c = document.location.origin, d = (s || c).toString(), A = i.indexOf("http") == 0 ? new URL(i).origin != c : !1, m = i == "", f = history.length < 3, C = m && f, E = d != document.location.href;
2741
+ if (A && E || C) {
2742
+ const U = history.state || {};
2743
+ U.concorde = U.concorde || {}, U.concorde.hasDoneHistoryBack = !0, history.pushState(U, document.title), history.back(), document.location.replace(d);
2744
2744
  } else
2745
2745
  history.back();
2746
2746
  return;
@@ -2751,11 +2751,8 @@ let dt = (Xe = class {
2751
2751
  document.location.hash = r.substring(1);
2752
2752
  return;
2753
2753
  }
2754
- const n = new URL(r, document.location.href), o = n.pathname.split("/"), c = [];
2755
- let d = "";
2756
- for (const g of o)
2757
- g != d && c.push(g), d = g;
2758
- r = "/" + c.join("/") + n.search + (n.hash ? n.hash : ""), e.hasAttribute("pushState") ? history.pushState(null, "", r) : e.hasAttribute("replaceState") ? history.replaceState(null, "", r) : document.location.href = r;
2754
+ const n = new URL(r, document.location.href);
2755
+ r = `/${n.pathname.split("/").filter(Boolean).join("/")}${n.search}${n.hash || ""}`, e.hasAttribute("pushState") ? history.pushState(null, "", r) : e.hasAttribute("replaceState") ? history.replaceState(null, "", r) : document.location.href = r;
2759
2756
  }
2760
2757
  /**
2761
2758
  *
@@ -2901,11 +2898,11 @@ const xi = /* @__PURE__ */ new Map(), Dr = (t) => {
2901
2898
  this.addEventListener("keydown", (c) => {
2902
2899
  const d = c;
2903
2900
  if (!["ArrowDown", "ArrowUp"].includes(d.key)) return;
2904
- const g = "input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])", A = o?.filter((C) => {
2905
- const E = C.shadowRoot?.querySelector(g);
2901
+ const b = "input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])", A = o?.filter((C) => {
2902
+ const E = C.shadowRoot?.querySelector(b);
2906
2903
  if (!E) return !1;
2907
- const O = window.getComputedStyle(E);
2908
- return O.display !== "none" && O.display !== "" && O.pointerEvents != "none" && O.visibility !== "hidden" && E.getBoundingClientRect().width > 0;
2904
+ const T = window.getComputedStyle(E);
2905
+ return T.display !== "none" && T.display !== "" && T.pointerEvents != "none" && T.visibility !== "hidden" && E.getBoundingClientRect().width > 0;
2909
2906
  });
2910
2907
  let m = null;
2911
2908
  if (d.key == "ArrowDown" && A) {
@@ -2916,7 +2913,7 @@ const xi = /* @__PURE__ */ new Map(), Dr = (t) => {
2916
2913
  C == 0 ? m = A[A.length - 1] : m = A[C - 1];
2917
2914
  }
2918
2915
  const f = m?.shadowRoot?.querySelector(
2919
- g
2916
+ b
2920
2917
  );
2921
2918
  f && f.focus && (f.focus(), c.preventDefault(), c.stopPropagation());
2922
2919
  });
@@ -3085,102 +3082,102 @@ function ih() {
3085
3082
  (function(i, r) {
3086
3083
  return e !== null ? t.exports = r() : i.UrlPattern = r();
3087
3084
  })(rh, function() {
3088
- var i, r, n, o, c, d, g, A, m, f, C, E, O, U, B;
3089
- return m = function(S) {
3090
- return S.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
3091
- }, g = function(S, y) {
3085
+ var i, r, n, o, c, d, b, A, m, f, C, E, T, U, B;
3086
+ return m = function(x) {
3087
+ return x.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
3088
+ }, b = function(x, y) {
3092
3089
  var M, k, D;
3093
- for (D = [], M = -1, k = S.length; ++M < k; )
3094
- D = D.concat(y(S[M]));
3090
+ for (D = [], M = -1, k = x.length; ++M < k; )
3091
+ D = D.concat(y(x[M]));
3095
3092
  return D;
3096
- }, U = function(S, y) {
3093
+ }, U = function(x, y) {
3097
3094
  var M, k, D;
3098
- for (D = "", M = -1, k = S.length; ++M < k; )
3099
- D += y(S[M]);
3095
+ for (D = "", M = -1, k = x.length; ++M < k; )
3096
+ D += y(x[M]);
3100
3097
  return D;
3101
- }, O = function(S) {
3102
- return new RegExp(S.toString() + "|").exec("").length - 1;
3103
- }, C = function(S, y) {
3098
+ }, T = function(x) {
3099
+ return new RegExp(x.toString() + "|").exec("").length - 1;
3100
+ }, C = function(x, y) {
3104
3101
  var M, k, D, Y, j;
3105
- for (Y = {}, M = -1, D = S.length; ++M < D; )
3106
- k = S[M], j = y[M], j != null && (Y[k] != null ? (Array.isArray(Y[k]) || (Y[k] = [Y[k]]), Y[k].push(j)) : Y[k] = j);
3102
+ for (Y = {}, M = -1, D = x.length; ++M < D; )
3103
+ k = x[M], j = y[M], j != null && (Y[k] != null ? (Array.isArray(Y[k]) || (Y[k] = [Y[k]]), Y[k].push(j)) : Y[k] = j);
3107
3104
  return Y;
3108
- }, i = {}, i.Result = function(S, y) {
3109
- this.value = S, this.rest = y;
3110
- }, i.Tagged = function(S, y) {
3111
- this.tag = S, this.value = y;
3112
- }, i.tag = function(S, y) {
3105
+ }, i = {}, i.Result = function(x, y) {
3106
+ this.value = x, this.rest = y;
3107
+ }, i.Tagged = function(x, y) {
3108
+ this.tag = x, this.value = y;
3109
+ }, i.tag = function(x, y) {
3113
3110
  return function(M) {
3114
3111
  var k, D;
3115
3112
  if (k = y(M), k != null)
3116
- return D = new i.Tagged(S, k.value), new i.Result(D, k.rest);
3113
+ return D = new i.Tagged(x, k.value), new i.Result(D, k.rest);
3117
3114
  };
3118
- }, i.regex = function(S) {
3115
+ }, i.regex = function(x) {
3119
3116
  return function(y) {
3120
3117
  var M, k;
3121
- if (M = S.exec(y), M != null)
3118
+ if (M = x.exec(y), M != null)
3122
3119
  return k = M[0], new i.Result(k, y.slice(k.length));
3123
3120
  };
3124
3121
  }, i.sequence = function() {
3125
- var S;
3126
- return S = 1 <= arguments.length ? s.call(arguments, 0) : [], function(y) {
3122
+ var x;
3123
+ return x = 1 <= arguments.length ? s.call(arguments, 0) : [], function(y) {
3127
3124
  var M, k, D, Y, j, ne;
3128
- for (M = -1, k = S.length, ne = [], Y = y; ++M < k; ) {
3129
- if (D = S[M], j = D(Y), j == null)
3125
+ for (M = -1, k = x.length, ne = [], Y = y; ++M < k; ) {
3126
+ if (D = x[M], j = D(Y), j == null)
3130
3127
  return;
3131
3128
  ne.push(j.value), Y = j.rest;
3132
3129
  }
3133
3130
  return new i.Result(ne, Y);
3134
3131
  };
3135
3132
  }, i.pick = function() {
3136
- var S, y;
3137
- return S = arguments[0], y = 2 <= arguments.length ? s.call(arguments, 1) : [], function(M) {
3133
+ var x, y;
3134
+ return x = arguments[0], y = 2 <= arguments.length ? s.call(arguments, 1) : [], function(M) {
3138
3135
  var k, D;
3139
3136
  if (D = i.sequence.apply(i, y)(M), D != null)
3140
- return k = D.value, D.value = k[S], D;
3137
+ return k = D.value, D.value = k[x], D;
3141
3138
  };
3142
- }, i.string = function(S) {
3139
+ }, i.string = function(x) {
3143
3140
  var y;
3144
- return y = S.length, function(M) {
3145
- if (M.slice(0, y) === S)
3146
- return new i.Result(S, M.slice(y));
3141
+ return y = x.length, function(M) {
3142
+ if (M.slice(0, y) === x)
3143
+ return new i.Result(x, M.slice(y));
3147
3144
  };
3148
- }, i.lazy = function(S) {
3145
+ }, i.lazy = function(x) {
3149
3146
  var y;
3150
3147
  return y = null, function(M) {
3151
- return y == null && (y = S()), y(M);
3148
+ return y == null && (y = x()), y(M);
3152
3149
  };
3153
- }, i.baseMany = function(S, y, M, k, D) {
3150
+ }, i.baseMany = function(x, y, M, k, D) {
3154
3151
  var Y, j, ne, re;
3155
- for (ne = D, re = M ? "" : []; !(y != null && (Y = y(ne), Y != null) || (j = S(ne), j == null)); )
3152
+ for (ne = D, re = M ? "" : []; !(y != null && (Y = y(ne), Y != null) || (j = x(ne), j == null)); )
3156
3153
  M ? re += j.value : re.push(j.value), ne = j.rest;
3157
3154
  if (!(k && re.length === 0))
3158
3155
  return new i.Result(re, ne);
3159
- }, i.many1 = function(S) {
3156
+ }, i.many1 = function(x) {
3160
3157
  return function(y) {
3161
- return i.baseMany(S, null, !1, !0, y);
3158
+ return i.baseMany(x, null, !1, !0, y);
3162
3159
  };
3163
- }, i.concatMany1Till = function(S, y) {
3160
+ }, i.concatMany1Till = function(x, y) {
3164
3161
  return function(M) {
3165
- return i.baseMany(S, y, !0, !0, M);
3162
+ return i.baseMany(x, y, !0, !0, M);
3166
3163
  };
3167
3164
  }, i.firstChoice = function() {
3168
- var S;
3169
- return S = 1 <= arguments.length ? s.call(arguments, 0) : [], function(y) {
3165
+ var x;
3166
+ return x = 1 <= arguments.length ? s.call(arguments, 0) : [], function(y) {
3170
3167
  var M, k, D, Y;
3171
- for (M = -1, k = S.length; ++M < k; )
3172
- if (D = S[M], Y = D(y), Y != null)
3168
+ for (M = -1, k = x.length; ++M < k; )
3169
+ if (D = x[M], Y = D(y), Y != null)
3173
3170
  return Y;
3174
3171
  };
3175
- }, E = function(S) {
3172
+ }, E = function(x) {
3176
3173
  var y;
3177
- return y = {}, y.wildcard = i.tag("wildcard", i.string(S.wildcardChar)), y.optional = i.tag("optional", i.pick(1, i.string(S.optionalSegmentStartChar), i.lazy(function() {
3174
+ return y = {}, y.wildcard = i.tag("wildcard", i.string(x.wildcardChar)), y.optional = i.tag("optional", i.pick(1, i.string(x.optionalSegmentStartChar), i.lazy(function() {
3178
3175
  return y.pattern;
3179
- }), i.string(S.optionalSegmentEndChar))), y.name = i.regex(new RegExp("^[" + S.segmentNameCharset + "]+")), y.named = i.tag("named", i.pick(1, i.string(S.segmentNameStartChar), i.lazy(function() {
3176
+ }), i.string(x.optionalSegmentEndChar))), y.name = i.regex(new RegExp("^[" + x.segmentNameCharset + "]+")), y.named = i.tag("named", i.pick(1, i.string(x.segmentNameStartChar), i.lazy(function() {
3180
3177
  return y.name;
3181
- }))), y.escapedChar = i.pick(1, i.string(S.escapeChar), i.regex(/^./)), y.static = i.tag("static", i.concatMany1Till(i.firstChoice(i.lazy(function() {
3178
+ }))), y.escapedChar = i.pick(1, i.string(x.escapeChar), i.regex(/^./)), y.static = i.tag("static", i.concatMany1Till(i.firstChoice(i.lazy(function() {
3182
3179
  return y.escapedChar;
3183
- }), i.regex(/^./)), i.firstChoice(i.string(S.segmentNameStartChar), i.string(S.optionalSegmentStartChar), i.string(S.optionalSegmentEndChar), y.wildcard))), y.token = i.lazy(function() {
3180
+ }), i.regex(/^./)), i.firstChoice(i.string(x.segmentNameStartChar), i.string(x.optionalSegmentStartChar), i.string(x.optionalSegmentEndChar), y.wildcard))), y.token = i.lazy(function() {
3184
3181
  return i.firstChoice(y.wildcard, y.optional, y.named, y.static);
3185
3182
  }), y.pattern = i.many1(i.lazy(function() {
3186
3183
  return y.token;
@@ -3193,39 +3190,39 @@ function ih() {
3193
3190
  optionalSegmentStartChar: "(",
3194
3191
  optionalSegmentEndChar: ")",
3195
3192
  wildcardChar: "*"
3196
- }, d = function(S, y) {
3197
- if (Array.isArray(S))
3198
- return U(S, function(M) {
3193
+ }, d = function(x, y) {
3194
+ if (Array.isArray(x))
3195
+ return U(x, function(M) {
3199
3196
  return d(M, y);
3200
3197
  });
3201
- switch (S.tag) {
3198
+ switch (x.tag) {
3202
3199
  case "wildcard":
3203
3200
  return "(.*?)";
3204
3201
  case "named":
3205
3202
  return "([" + y + "]+)";
3206
3203
  case "static":
3207
- return m(S.value);
3204
+ return m(x.value);
3208
3205
  case "optional":
3209
- return "(?:" + d(S.value, y) + ")?";
3206
+ return "(?:" + d(x.value, y) + ")?";
3210
3207
  }
3211
- }, c = function(S, y) {
3212
- return y == null && (y = A.segmentValueCharset), "^" + d(S, y) + "$";
3213
- }, o = function(S) {
3214
- if (Array.isArray(S))
3215
- return g(S, o);
3216
- switch (S.tag) {
3208
+ }, c = function(x, y) {
3209
+ return y == null && (y = A.segmentValueCharset), "^" + d(x, y) + "$";
3210
+ }, o = function(x) {
3211
+ if (Array.isArray(x))
3212
+ return b(x, o);
3213
+ switch (x.tag) {
3217
3214
  case "wildcard":
3218
3215
  return ["_"];
3219
3216
  case "named":
3220
- return [S.value];
3217
+ return [x.value];
3221
3218
  case "static":
3222
3219
  return [];
3223
3220
  case "optional":
3224
- return o(S.value);
3221
+ return o(x.value);
3225
3222
  }
3226
- }, f = function(S, y, M, k) {
3223
+ }, f = function(x, y, M, k) {
3227
3224
  var D, Y, j, ne;
3228
- if (k == null && (k = !1), ne = S[y], ne == null) {
3225
+ if (k == null && (k = !1), ne = x[y], ne == null) {
3229
3226
  if (k)
3230
3227
  throw new Error("no values provided for key `" + y + "`");
3231
3228
  return;
@@ -3236,60 +3233,60 @@ function ih() {
3236
3233
  return;
3237
3234
  }
3238
3235
  return j = Array.isArray(ne) ? ne[D] : ne, k && (M[y] = D + 1), j;
3239
- }, n = function(S, y, M) {
3236
+ }, n = function(x, y, M) {
3240
3237
  var k, D;
3241
- if (Array.isArray(S)) {
3242
- for (k = -1, D = S.length; ++k < D; )
3243
- if (n(S[k], y, M))
3238
+ if (Array.isArray(x)) {
3239
+ for (k = -1, D = x.length; ++k < D; )
3240
+ if (n(x[k], y, M))
3244
3241
  return !0;
3245
3242
  return !1;
3246
3243
  }
3247
- switch (S.tag) {
3244
+ switch (x.tag) {
3248
3245
  case "wildcard":
3249
3246
  return f(y, "_", M, !1) != null;
3250
3247
  case "named":
3251
- return f(y, S.value, M, !1) != null;
3248
+ return f(y, x.value, M, !1) != null;
3252
3249
  case "static":
3253
3250
  return !1;
3254
3251
  case "optional":
3255
- return n(S.value, y, M);
3252
+ return n(x.value, y, M);
3256
3253
  }
3257
- }, B = function(S, y, M) {
3258
- if (Array.isArray(S))
3259
- return U(S, function(k) {
3254
+ }, B = function(x, y, M) {
3255
+ if (Array.isArray(x))
3256
+ return U(x, function(k) {
3260
3257
  return B(k, y, M);
3261
3258
  });
3262
- switch (S.tag) {
3259
+ switch (x.tag) {
3263
3260
  case "wildcard":
3264
3261
  return f(y, "_", M, !0);
3265
3262
  case "named":
3266
- return f(y, S.value, M, !0);
3263
+ return f(y, x.value, M, !0);
3267
3264
  case "static":
3268
- return S.value;
3265
+ return x.value;
3269
3266
  case "optional":
3270
- return n(S.value, y, M) ? B(S.value, y, M) : "";
3267
+ return n(x.value, y, M) ? B(x.value, y, M) : "";
3271
3268
  }
3272
- }, r = function(S, y) {
3269
+ }, r = function(x, y) {
3273
3270
  var M, k, D, Y, j;
3274
- if (S instanceof r) {
3275
- this.isRegex = S.isRegex, this.regex = S.regex, this.ast = S.ast, this.names = S.names;
3271
+ if (x instanceof r) {
3272
+ this.isRegex = x.isRegex, this.regex = x.regex, this.ast = x.ast, this.names = x.names;
3276
3273
  return;
3277
3274
  }
3278
- if (this.isRegex = S instanceof RegExp, !(typeof S == "string" || this.isRegex))
3275
+ if (this.isRegex = x instanceof RegExp, !(typeof x == "string" || this.isRegex))
3279
3276
  throw new TypeError("argument must be a regex or a string");
3280
3277
  if (this.isRegex) {
3281
- if (this.regex = S, y != null) {
3278
+ if (this.regex = x, y != null) {
3282
3279
  if (!Array.isArray(y))
3283
3280
  throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");
3284
- if (M = O(this.regex), y.length !== M)
3281
+ if (M = T(this.regex), y.length !== M)
3285
3282
  throw new Error("regex contains " + M + " groups but array of group names contains " + y.length);
3286
3283
  this.names = y;
3287
3284
  }
3288
3285
  return;
3289
3286
  }
3290
- if (S === "")
3287
+ if (x === "")
3291
3288
  throw new Error("argument must not be the empty string");
3292
- if (j = S.replace(/\s+/g, ""), j !== S)
3289
+ if (j = x.replace(/\s+/g, ""), j !== x)
3293
3290
  throw new Error("argument must not contain whitespace");
3294
3291
  if (k = {
3295
3292
  escapeChar: y?.escapeChar || A.escapeChar,
@@ -3299,21 +3296,21 @@ function ih() {
3299
3296
  optionalSegmentStartChar: y?.optionalSegmentStartChar || A.optionalSegmentStartChar,
3300
3297
  optionalSegmentEndChar: y?.optionalSegmentEndChar || A.optionalSegmentEndChar,
3301
3298
  wildcardChar: y?.wildcardChar || A.wildcardChar
3302
- }, Y = E(k), D = Y.pattern(S), D == null)
3299
+ }, Y = E(k), D = Y.pattern(x), D == null)
3303
3300
  throw new Error("couldn't parse pattern");
3304
3301
  if (D.rest !== "")
3305
3302
  throw new Error("could only partially parse pattern");
3306
3303
  this.ast = D.value, this.regex = new RegExp(c(this.ast, k.segmentValueCharset)), this.names = o(this.ast);
3307
- }, r.prototype.match = function(S) {
3304
+ }, r.prototype.match = function(x) {
3308
3305
  var y, M;
3309
- return M = this.regex.exec(S), M == null ? null : (y = M.slice(1), this.names ? C(this.names, y) : y);
3310
- }, r.prototype.stringify = function(S) {
3311
- if (S == null && (S = {}), this.isRegex)
3306
+ return M = this.regex.exec(x), M == null ? null : (y = M.slice(1), this.names ? C(this.names, y) : y);
3307
+ }, r.prototype.stringify = function(x) {
3308
+ if (x == null && (x = {}), this.isRegex)
3312
3309
  throw new Error("can't stringify patterns generated from a regex");
3313
- if (S !== Object(S))
3310
+ if (x !== Object(x))
3314
3311
  throw new Error("argument must be an object or undefined");
3315
- return B(this.ast, S, {});
3316
- }, r.escapeForRegex = m, r.concatMap = g, r.stringConcatMap = U, r.regexGroupCount = O, r.keysAndValuesToObject = C, r.P = i, r.newParser = E, r.defaultOptions = A, r.astNodeToRegexString = c, r.astNodeToNames = o, r.getParam = f, r.astNodeContainsSegmentsForProvidedParams = n, r.stringify = B, r;
3312
+ return B(this.ast, x, {});
3313
+ }, r.escapeForRegex = m, r.concatMap = b, r.stringConcatMap = U, r.regexGroupCount = T, r.keysAndValuesToObject = C, r.P = i, r.newParser = E, r.defaultOptions = A, r.astNodeToRegexString = c, r.astNodeToNames = o, r.getParam = f, r.astNodeContainsSegmentsForProvidedParams = n, r.stringify = B, r;
3317
3314
  });
3318
3315
  })(Vr, Vr.exports)), Vr.exports;
3319
3316
  }
@@ -3430,13 +3427,13 @@ function mh(t, e, s, i) {
3430
3427
  compute: e,
3431
3428
  output: s,
3432
3429
  variables: i
3433
- }, n = r.debounceMs ?? oh, o = r.maxInputItems ?? ah, c = r.isEmpty ?? ch, d = Oi(r.output), g = Object.entries(r.inputs).map(([ie, z]) => ({
3430
+ }, n = r.debounceMs ?? oh, o = r.maxInputItems ?? ah, c = r.isEmpty ?? ch, d = Oi(r.output), b = Object.entries(r.inputs).map(([ie, z]) => ({
3434
3431
  alias: ie,
3435
3432
  path: Oi(z)
3436
- })), A = g.map((ie) => ie.path), m = r.variables ? Oi(r.variables) : null;
3433
+ })), A = b.map((ie) => ie.path), m = r.variables ? Oi(r.variables) : null;
3437
3434
  uh(d, A), dh(d, A);
3438
3435
  const f = Ai(d);
3439
- let C, E = !1, O = 0, U = null, B = !1, S = "";
3436
+ let C, E = !1, T = 0, U = null, B = !1, x = "";
3440
3437
  const y = (ie) => {
3441
3438
  E = !0, C = ie, f.set(ie), E = !1;
3442
3439
  }, M = () => {
@@ -3447,7 +3444,7 @@ function mh(t, e, s, i) {
3447
3444
  f.onAssign(M, !1);
3448
3445
  const k = () => {
3449
3446
  const ie = {};
3450
- for (const { alias: z, path: le } of g) {
3447
+ for (const { alias: z, path: le } of b) {
3451
3448
  const pe = Ai(le).get(), Ue = hh(pe);
3452
3449
  Ue > o && typeof console < "u" && console.warn && console.warn(
3453
3450
  `[derive] Entrée "${le}" : ${Ue} éléments (> ${o}). Agrégation lourde — envisager un plafond côté fetch.`
@@ -3456,10 +3453,10 @@ function mh(t, e, s, i) {
3456
3453
  return ie;
3457
3454
  }, D = () => m ? Ai(m).get() ?? {} : {}, Y = async () => {
3458
3455
  if (B) return;
3459
- const ie = ++O;
3456
+ const ie = ++T;
3460
3457
  Ci(d, { status: "loading", error: null });
3461
3458
  const z = k(), le = D(), pe = JSON.stringify({ inputs: z, vars: le });
3462
- if (pe === S && C !== void 0) {
3459
+ if (pe === x && C !== void 0) {
3463
3460
  Ci(d, {
3464
3461
  status: c(C) ? "empty" : "ready",
3465
3462
  error: null
@@ -3469,16 +3466,16 @@ function mh(t, e, s, i) {
3469
3466
  const Ue = typeof performance < "u" ? performance.now() : Date.now();
3470
3467
  try {
3471
3468
  const he = await Promise.resolve(r.compute(z, le));
3472
- if (B || ie !== O) return;
3469
+ if (B || ie !== T) return;
3473
3470
  const ge = (typeof performance < "u" ? performance.now() : Date.now()) - Ue;
3474
3471
  ge > lh && typeof console < "u" && console.warn && console.warn(
3475
3472
  `[derive] Évaluation longue (${Math.round(ge)} ms) → "${d}".`
3476
- ), S = pe, y(he), Ci(d, {
3473
+ ), x = pe, y(he), Ci(d, {
3477
3474
  status: c(he) ? "empty" : "ready",
3478
3475
  error: null
3479
3476
  });
3480
3477
  } catch (he) {
3481
- if (B || ie !== O) return;
3478
+ if (B || ie !== T) return;
3482
3479
  const ge = he instanceof Error ? he.message : String(he);
3483
3480
  typeof console < "u" && console.error && console.error(`[derive] Erreur sur "${d}" :`, ge), Ci(d, { status: "error", error: ge });
3484
3481
  }
@@ -3490,7 +3487,7 @@ function mh(t, e, s, i) {
3490
3487
  const z = Ai(ie), le = () => j();
3491
3488
  z.onInternalMutation(le), ne.push({ pub: z, handler: le });
3492
3489
  };
3493
- for (const { path: ie } of g) re(ie);
3490
+ for (const { path: ie } of b) re(ie);
3494
3491
  return m && re(m), j(), {
3495
3492
  stop() {
3496
3493
  if (!B) {
@@ -3501,7 +3498,7 @@ function mh(t, e, s, i) {
3501
3498
  }
3502
3499
  },
3503
3500
  recompute() {
3504
- S = "", Y();
3501
+ x = "", Y();
3505
3502
  }
3506
3503
  };
3507
3504
  }
@@ -3516,22 +3513,22 @@ function gh() {
3516
3513
  })(function() {
3517
3514
  return (/* @__PURE__ */ (function() {
3518
3515
  function s(i, r, n) {
3519
- function o(g, A) {
3520
- if (!r[g]) {
3521
- if (!i[g]) {
3516
+ function o(b, A) {
3517
+ if (!r[b]) {
3518
+ if (!i[b]) {
3522
3519
  var m = typeof ki == "function" && ki;
3523
- if (!A && m) return m(g, !0);
3524
- if (c) return c(g, !0);
3525
- var f = new Error("Cannot find module '" + g + "'");
3520
+ if (!A && m) return m(b, !0);
3521
+ if (c) return c(b, !0);
3522
+ var f = new Error("Cannot find module '" + b + "'");
3526
3523
  throw f.code = "MODULE_NOT_FOUND", f;
3527
3524
  }
3528
- var C = r[g] = { exports: {} };
3529
- i[g][0].call(C.exports, function(E) {
3530
- var O = i[g][1][E];
3531
- return o(O || E);
3525
+ var C = r[b] = { exports: {} };
3526
+ i[b][0].call(C.exports, function(E) {
3527
+ var T = i[b][1][E];
3528
+ return o(T || E);
3532
3529
  }, C, C.exports, s, i, r, n);
3533
3530
  }
3534
- return r[g].exports;
3531
+ return r[b].exports;
3535
3532
  }
3536
3533
  for (var c = typeof ki == "function" && ki, d = 0; d < n.length; d++) o(n[d]);
3537
3534
  return o;
@@ -3560,7 +3557,7 @@ function gh() {
3560
3557
  "Seventeen",
3561
3558
  "Eighteen",
3562
3559
  "Nineteen"
3563
- ], g = [
3560
+ ], b = [
3564
3561
  "Zeroth",
3565
3562
  "First",
3566
3563
  "Second",
@@ -3582,11 +3579,11 @@ function gh() {
3582
3579
  "Eighteenth",
3583
3580
  "Nineteenth"
3584
3581
  ], A = ["Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety", "Hundred"], m = ["Thousand", "Million", "Billion", "Trillion"];
3585
- function f(T, I) {
3582
+ function f(O, I) {
3586
3583
  var $ = function(q, V, N) {
3587
3584
  var G = "";
3588
3585
  if (q <= 19)
3589
- G = (V ? " and " : "") + (N ? g[q] : d[q]);
3586
+ G = (V ? " and " : "") + (N ? b[q] : d[q]);
3590
3587
  else if (q < 100) {
3591
3588
  const Ce = Math.floor(q / 10), me = q % 10;
3592
3589
  G = (V ? " and " : "") + A[Ce - 2], me > 0 ? G += "-" + $(me, !1, N) : N && (G = G.substring(0, G.length - 1) + "ieth");
@@ -3600,23 +3597,23 @@ function gh() {
3600
3597
  G = (V ? ", " : "") + $(me, !1, !1) + " " + m[ae - 1], fe > 0 ? G += $(fe, !0, N) : N && (G += "th");
3601
3598
  }
3602
3599
  return G;
3603
- }, F = $(T, !1, I);
3600
+ }, F = $(O, !1, I);
3604
3601
  return F;
3605
3602
  }
3606
3603
  const C = /* @__PURE__ */ Object.create(null);
3607
- d.forEach(function(T, I) {
3608
- C[T.toLowerCase()] = I;
3609
- }), g.forEach(function(T, I) {
3610
- C[T.toLowerCase()] = I;
3611
- }), A.forEach(function(T, I) {
3612
- const $ = T.toLowerCase();
3613
- C[$] = (I + 2) * 10, C[$.substring(0, T.length - 1) + "ieth"] = C[$];
3614
- }), C.hundredth = 100, m.forEach(function(T, I) {
3615
- const $ = T.toLowerCase(), F = Math.pow(10, (I + 1) * 3);
3604
+ d.forEach(function(O, I) {
3605
+ C[O.toLowerCase()] = I;
3606
+ }), b.forEach(function(O, I) {
3607
+ C[O.toLowerCase()] = I;
3608
+ }), A.forEach(function(O, I) {
3609
+ const $ = O.toLowerCase();
3610
+ C[$] = (I + 2) * 10, C[$.substring(0, O.length - 1) + "ieth"] = C[$];
3611
+ }), C.hundredth = 100, m.forEach(function(O, I) {
3612
+ const $ = O.toLowerCase(), F = Math.pow(10, (I + 1) * 3);
3616
3613
  C[$] = F, C[$ + "th"] = F;
3617
3614
  });
3618
- function E(T) {
3619
- const $ = T.split(/,\s|\sand\s|[\s\\-]/).map((V) => C[V]);
3615
+ function E(O) {
3616
+ const $ = O.split(/,\s|\sand\s|[\s\\-]/).map((V) => C[V]);
3620
3617
  let F = [0];
3621
3618
  return $.forEach((V) => {
3622
3619
  if (V < 100) {
@@ -3626,7 +3623,7 @@ function gh() {
3626
3623
  F.push(F.pop() * V);
3627
3624
  }), F.reduce((V, N) => V + N, 0);
3628
3625
  }
3629
- const O = [
3626
+ const T = [
3630
3627
  [1e3, "m"],
3631
3628
  [900, "cm"],
3632
3629
  [500, "d"],
@@ -3641,37 +3638,37 @@ function gh() {
3641
3638
  [4, "iv"],
3642
3639
  [1, "i"]
3643
3640
  ], U = { M: 1e3, D: 500, C: 100, L: 50, X: 10, V: 5, I: 1 };
3644
- function B(T) {
3645
- for (var I = 0; I < O.length; I++) {
3646
- const $ = O[I];
3647
- if (T >= $[0])
3648
- return $[1] + B(T - $[0]);
3641
+ function B(O) {
3642
+ for (var I = 0; I < T.length; I++) {
3643
+ const $ = T[I];
3644
+ if (O >= $[0])
3645
+ return $[1] + B(O - $[0]);
3649
3646
  }
3650
3647
  return "";
3651
3648
  }
3652
- function S(T) {
3653
- for (var I = 0, $ = 1, F = T.length - 1; F >= 0; F--) {
3654
- const q = T[F], V = U[q];
3649
+ function x(O) {
3650
+ for (var I = 0, $ = 1, F = O.length - 1; F >= 0; F--) {
3651
+ const q = O[F], V = U[q];
3655
3652
  V < $ ? I -= V : ($ = V, I += V);
3656
3653
  }
3657
3654
  return I;
3658
3655
  }
3659
- function y(T, I) {
3660
- for (var $ = [], F = I.charCodeAt(0); T > 0; )
3661
- $.unshift(String.fromCharCode((T - 1) % 26 + F)), T = Math.floor((T - 1) / 26);
3656
+ function y(O, I) {
3657
+ for (var $ = [], F = I.charCodeAt(0); O > 0; )
3658
+ $.unshift(String.fromCharCode((O - 1) % 26 + F)), O = Math.floor((O - 1) / 26);
3662
3659
  return $.join("");
3663
3660
  }
3664
- function M(T, I) {
3665
- for (var $ = I.charCodeAt(0), F = 0, q = 0; q < T.length; q++)
3666
- F += (T.charCodeAt(T.length - q - 1) - $ + 1) * Math.pow(26, q);
3661
+ function M(O, I) {
3662
+ for (var $ = I.charCodeAt(0), F = 0, q = 0; q < O.length; q++)
3663
+ F += (O.charCodeAt(O.length - q - 1) - $ + 1) * Math.pow(26, q);
3667
3664
  return F;
3668
3665
  }
3669
- function k(T, I) {
3670
- if (typeof T > "u")
3666
+ function k(O, I) {
3667
+ if (typeof O > "u")
3671
3668
  return;
3672
- T = Math.floor(T);
3669
+ O = Math.floor(O);
3673
3670
  const $ = re(I);
3674
- return j(T, $);
3671
+ return j(O, $);
3675
3672
  }
3676
3673
  const D = {
3677
3674
  DECIMAL: "decimal",
@@ -3684,21 +3681,21 @@ function gh() {
3684
3681
  LOWER: "lower",
3685
3682
  TITLE: "title"
3686
3683
  };
3687
- function j(T, I) {
3684
+ function j(O, I) {
3688
3685
  let $;
3689
- const F = T < 0;
3690
- switch (T = Math.abs(T), I.primary) {
3686
+ const F = O < 0;
3687
+ switch (O = Math.abs(O), I.primary) {
3691
3688
  case D.LETTERS:
3692
- $ = y(T, I.case === Y.UPPER ? "A" : "a");
3689
+ $ = y(O, I.case === Y.UPPER ? "A" : "a");
3693
3690
  break;
3694
3691
  case D.ROMAN:
3695
- $ = B(T), I.case === Y.UPPER && ($ = $.toUpperCase());
3692
+ $ = B(O), I.case === Y.UPPER && ($ = $.toUpperCase());
3696
3693
  break;
3697
3694
  case D.WORDS:
3698
- $ = f(T, I.ordinal), I.case === Y.UPPER ? $ = $.toUpperCase() : I.case === Y.LOWER && ($ = $.toLowerCase());
3695
+ $ = f(O, I.ordinal), I.case === Y.UPPER ? $ = $.toUpperCase() : I.case === Y.LOWER && ($ = $.toLowerCase());
3699
3696
  break;
3700
3697
  case D.DECIMAL:
3701
- $ = "" + T;
3698
+ $ = "" + O;
3702
3699
  var q = I.mandatoryDigits - $.length;
3703
3700
  if (q > 0) {
3704
3701
  var V = new Array(q + 1).join("0");
@@ -3729,7 +3726,7 @@ function gh() {
3729
3726
  return F && ($ = "-" + $), $;
3730
3727
  }
3731
3728
  const ne = [48, 1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3558, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43504, 43600, 44016, 65296];
3732
- function re(T) {
3729
+ function re(O) {
3733
3730
  const I = {
3734
3731
  type: "integer",
3735
3732
  primary: D.DECIMAL,
@@ -3737,8 +3734,8 @@ function gh() {
3737
3734
  ordinal: !1
3738
3735
  };
3739
3736
  let $, F;
3740
- const q = T.lastIndexOf(";");
3741
- switch (q === -1 ? $ = T : ($ = T.substring(0, q), F = T.substring(q + 1), F[0] === "o" && (I.ordinal = !0)), $) {
3737
+ const q = O.lastIndexOf(";");
3738
+ switch (q === -1 ? $ = O : ($ = O.substring(0, q), F = O.substring(q + 1), F[0] === "o" && (I.ordinal = !0)), $) {
3742
3739
  case "A":
3743
3740
  I.case = Y.UPPER;
3744
3741
  /* eslnt-disable-next-line no-fallthrough */
@@ -3828,28 +3825,28 @@ function gh() {
3828
3825
  C: "n",
3829
3826
  E: "n"
3830
3827
  };
3831
- function z(T) {
3828
+ function z(O) {
3832
3829
  var I = [];
3833
3830
  const $ = {
3834
3831
  type: "datetime",
3835
3832
  parts: I
3836
3833
  }, F = function(ue, De) {
3837
3834
  if (De > ue) {
3838
- let de = T.substring(ue, De);
3835
+ let de = O.substring(ue, De);
3839
3836
  de = de.split("]]").join("]"), I.push({ type: "literal", value: de });
3840
3837
  }
3841
3838
  };
3842
- for (var q = 0, V = 0; V < T.length; ) {
3843
- if (T.charAt(V) === "[") {
3844
- if (T.charAt(V + 1) === "[") {
3839
+ for (var q = 0, V = 0; V < O.length; ) {
3840
+ if (O.charAt(V) === "[") {
3841
+ if (O.charAt(V + 1) === "[") {
3845
3842
  F(q, V), I.push({ type: "literal", value: "[" }), V += 2, q = V;
3846
3843
  continue;
3847
3844
  }
3848
- if (F(q, V), q = V, V = T.indexOf("]", q), V === -1)
3845
+ if (F(q, V), q = V, V = O.indexOf("]", q), V === -1)
3849
3846
  throw {
3850
3847
  code: "D3135"
3851
3848
  };
3852
- let ue = T.substring(q + 1, V);
3849
+ let ue = O.substring(q + 1, V);
3853
3850
  ue = ue.split(/\s+/).join("");
3854
3851
  var N = {
3855
3852
  type: "marker",
@@ -3905,51 +3902,51 @@ function gh() {
3905
3902
  }
3906
3903
  return F(q, V), $;
3907
3904
  }
3908
- const le = ["", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], pe = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Ue = 1e3 * 60 * 60 * 24, he = function(T) {
3909
- const I = Date.UTC(T.year, T.month);
3905
+ const le = ["", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], pe = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Ue = 1e3 * 60 * 60 * 24, he = function(O) {
3906
+ const I = Date.UTC(O.year, O.month);
3910
3907
  var $ = new Date(I).getUTCDay();
3911
3908
  return $ === 0 && ($ = 7), $ > 4 ? I + (8 - $) * Ue : I - ($ - 1) * Ue;
3912
- }, ge = function(T, I) {
3909
+ }, ge = function(O, I) {
3913
3910
  return {
3914
- year: T,
3911
+ year: O,
3915
3912
  month: I,
3916
3913
  nextMonth: function() {
3917
- return I === 11 ? ge(T + 1, 0) : ge(T, I + 1);
3914
+ return I === 11 ? ge(O + 1, 0) : ge(O, I + 1);
3918
3915
  },
3919
3916
  previousMonth: function() {
3920
- return I === 0 ? ge(T - 1, 11) : ge(T, I - 1);
3917
+ return I === 0 ? ge(O - 1, 11) : ge(O, I - 1);
3921
3918
  },
3922
3919
  nextYear: function() {
3923
- return ge(T + 1, I);
3920
+ return ge(O + 1, I);
3924
3921
  },
3925
3922
  previousYear: function() {
3926
- return ge(T - 1, I);
3923
+ return ge(O - 1, I);
3927
3924
  }
3928
3925
  };
3929
- }, $e = function(T, I) {
3930
- return (I - T) / (Ue * 7) + 1;
3931
- }, ce = (T, I) => {
3926
+ }, $e = function(O, I) {
3927
+ return (I - O) / (Ue * 7) + 1;
3928
+ }, ce = (O, I) => {
3932
3929
  let $;
3933
3930
  switch (I) {
3934
3931
  case "Y":
3935
- $ = T.getUTCFullYear();
3932
+ $ = O.getUTCFullYear();
3936
3933
  break;
3937
3934
  case "M":
3938
- $ = T.getUTCMonth() + 1;
3935
+ $ = O.getUTCMonth() + 1;
3939
3936
  break;
3940
3937
  case "D":
3941
- $ = T.getUTCDate();
3938
+ $ = O.getUTCDate();
3942
3939
  break;
3943
3940
  case "d": {
3944
- const F = Date.UTC(T.getUTCFullYear(), T.getUTCMonth(), T.getUTCDate()), q = Date.UTC(T.getUTCFullYear(), 0);
3941
+ const F = Date.UTC(O.getUTCFullYear(), O.getUTCMonth(), O.getUTCDate()), q = Date.UTC(O.getUTCFullYear(), 0);
3945
3942
  $ = (F - q) / Ue + 1;
3946
3943
  break;
3947
3944
  }
3948
3945
  case "F":
3949
- $ = T.getUTCDay(), $ === 0 && ($ = 7);
3946
+ $ = O.getUTCDay(), $ === 0 && ($ = 7);
3950
3947
  break;
3951
3948
  case "W": {
3952
- const F = ge(T.getUTCFullYear(), 0), q = he(F), V = Date.UTC(F.year, T.getUTCMonth(), T.getUTCDate());
3949
+ const F = ge(O.getUTCFullYear(), 0), q = he(F), V = Date.UTC(F.year, O.getUTCMonth(), O.getUTCDate());
3953
3950
  let N = $e(q, V);
3954
3951
  if (N > 52) {
3955
3952
  const G = he(F.nextYear());
@@ -3962,7 +3959,7 @@ function gh() {
3962
3959
  break;
3963
3960
  }
3964
3961
  case "w": {
3965
- const F = ge(T.getUTCFullYear(), T.getUTCMonth()), q = he(F), V = Date.UTC(F.year, F.month, T.getUTCDate());
3962
+ const F = ge(O.getUTCFullYear(), O.getUTCMonth()), q = he(F), V = Date.UTC(F.year, F.month, O.getUTCDate());
3966
3963
  let N = $e(q, V);
3967
3964
  if (N > 4) {
3968
3965
  const G = he(F.nextMonth());
@@ -3975,32 +3972,32 @@ function gh() {
3975
3972
  break;
3976
3973
  }
3977
3974
  case "X": {
3978
- const F = ge(T.getUTCFullYear(), 0), q = he(F), V = he(F.nextYear()), N = T.getTime();
3975
+ const F = ge(O.getUTCFullYear(), 0), q = he(F), V = he(F.nextYear()), N = O.getTime();
3979
3976
  N < q ? $ = F.year - 1 : N >= V ? $ = F.year + 1 : $ = F.year;
3980
3977
  break;
3981
3978
  }
3982
3979
  case "x": {
3983
- const F = ge(T.getUTCFullYear(), T.getUTCMonth()), q = he(F), V = F.nextMonth(), N = he(V), G = T.getTime();
3980
+ const F = ge(O.getUTCFullYear(), O.getUTCMonth()), q = he(F), V = F.nextMonth(), N = he(V), G = O.getTime();
3984
3981
  G < q ? $ = F.previousMonth().month + 1 : G >= N ? $ = V.month + 1 : $ = F.month + 1;
3985
3982
  break;
3986
3983
  }
3987
3984
  case "H":
3988
- $ = T.getUTCHours();
3985
+ $ = O.getUTCHours();
3989
3986
  break;
3990
3987
  case "h":
3991
- $ = T.getUTCHours(), $ = $ % 12, $ === 0 && ($ = 12);
3988
+ $ = O.getUTCHours(), $ = $ % 12, $ === 0 && ($ = 12);
3992
3989
  break;
3993
3990
  case "P":
3994
- $ = T.getUTCHours() >= 12 ? "pm" : "am";
3991
+ $ = O.getUTCHours() >= 12 ? "pm" : "am";
3995
3992
  break;
3996
3993
  case "m":
3997
- $ = T.getUTCMinutes();
3994
+ $ = O.getUTCMinutes();
3998
3995
  break;
3999
3996
  case "s":
4000
- $ = T.getUTCSeconds();
3997
+ $ = O.getUTCSeconds();
4001
3998
  break;
4002
3999
  case "f":
4003
- $ = T.getUTCMilliseconds();
4000
+ $ = O.getUTCMilliseconds();
4004
4001
  break;
4005
4002
  case "Z":
4006
4003
  // timezone
@@ -4016,7 +4013,7 @@ function gh() {
4016
4013
  return $;
4017
4014
  };
4018
4015
  let W = null;
4019
- function Ae(T, I, $) {
4016
+ function Ae(O, I, $) {
4020
4017
  var F = 0, q = 0;
4021
4018
  if (typeof $ < "u") {
4022
4019
  const me = parseInt($);
@@ -4062,16 +4059,16 @@ function gh() {
4062
4059
  };
4063
4060
  let N;
4064
4061
  typeof I > "u" ? (W === null && (W = z("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")), N = W) : N = z(I);
4065
- const G = (60 * F + q) * 60 * 1e3, ae = new Date(T + G);
4062
+ const G = (60 * F + q) * 60 * 1e3, ae = new Date(O + G);
4066
4063
  let Ce = "";
4067
4064
  return N.parts.forEach(function(me) {
4068
4065
  me.type === "literal" ? Ce += me.value : Ce += V(ae, me);
4069
4066
  }), Ce;
4070
4067
  }
4071
- function b(T) {
4068
+ function g(O) {
4072
4069
  var I = /* @__PURE__ */ Object.create(null);
4073
- if (T.type === "datetime")
4074
- I.type = "datetime", I.parts = T.parts.map(function($) {
4070
+ if (O.type === "datetime")
4071
+ I.type = "datetime", I.parts = O.parts.map(function($) {
4075
4072
  var F = /* @__PURE__ */ Object.create(null);
4076
4073
  if ($.type === "literal")
4077
4074
  F.regex = $.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -4087,7 +4084,7 @@ function gh() {
4087
4084
  return parseFloat("0." + V.substring(0, 3)) * 1e3;
4088
4085
  };
4089
4086
  else if ($.integerFormat)
4090
- F = b($.integerFormat);
4087
+ F = g($.integerFormat);
4091
4088
  else {
4092
4089
  F.regex = "[a-zA-Z]+";
4093
4090
  var q = /* @__PURE__ */ Object.create(null);
@@ -4114,8 +4111,8 @@ function gh() {
4114
4111
  });
4115
4112
  else {
4116
4113
  I.type = "integer";
4117
- const $ = T.case === Y.UPPER;
4118
- switch (T.primary) {
4114
+ const $ = O.case === Y.UPPER;
4115
+ switch (O.primary) {
4119
4116
  case D.LETTERS:
4120
4117
  I.regex = $ ? "[A-Z]+" : "[a-z]+", I.parse = function(F) {
4121
4118
  return M(F, $ ? "A" : "a");
@@ -4123,7 +4120,7 @@ function gh() {
4123
4120
  break;
4124
4121
  case D.ROMAN:
4125
4122
  I.regex = $ ? "[MDCLXVI]+" : "[mdclxvi]+", I.parse = function(F) {
4126
- return S($ ? F : F.toUpperCase());
4123
+ return x($ ? F : F.toUpperCase());
4127
4124
  };
4128
4125
  break;
4129
4126
  case D.WORDS:
@@ -4132,31 +4129,31 @@ function gh() {
4132
4129
  };
4133
4130
  break;
4134
4131
  case D.DECIMAL:
4135
- I.regex = "[0-9]", T.parseWidth ? I.regex += `{${T.parseWidth}}` : I.regex += "+", T.ordinal && (I.regex += "(?:th|st|nd|rd)"), I.parse = function(F) {
4132
+ I.regex = "[0-9]", O.parseWidth ? I.regex += `{${O.parseWidth}}` : I.regex += "+", O.ordinal && (I.regex += "(?:th|st|nd|rd)"), I.parse = function(F) {
4136
4133
  let q = F;
4137
- return T.ordinal && (q = F.substring(0, F.length - 2)), T.regular ? q = q.split(",").join("") : T.groupingSeparators.forEach((V) => {
4134
+ return O.ordinal && (q = F.substring(0, F.length - 2)), O.regular ? q = q.split(",").join("") : O.groupingSeparators.forEach((V) => {
4138
4135
  q = q.split(V.character).join("");
4139
- }), T.zeroCode !== 48 && (q = q.split("").map((V) => String.fromCodePoint(V.codePointAt(0) - T.zeroCode + 48)).join("")), parseInt(q);
4136
+ }), O.zeroCode !== 48 && (q = q.split("").map((V) => String.fromCodePoint(V.codePointAt(0) - O.zeroCode + 48)).join("")), parseInt(q);
4140
4137
  };
4141
4138
  break;
4142
4139
  case D.SEQUENCE:
4143
4140
  throw {
4144
4141
  code: "D3130",
4145
- value: T.token
4142
+ value: O.token
4146
4143
  };
4147
4144
  }
4148
4145
  }
4149
4146
  return I;
4150
4147
  }
4151
- function _(T, I) {
4152
- if (typeof T > "u")
4148
+ function _(O, I) {
4149
+ if (typeof O > "u")
4153
4150
  return;
4154
4151
  const $ = re(I);
4155
- return b($).parse(T);
4152
+ return g($).parse(O);
4156
4153
  }
4157
- function ee(T, I) {
4158
- const $ = z(I), F = b($), q = "^" + F.parts.map((ae) => "(" + ae.regex + ")").join("") + "$";
4159
- var N = new RegExp(q, "i").exec(T);
4154
+ function ee(O, I) {
4155
+ const $ = z(I), F = g($), q = "^" + F.parts.map((ae) => "(" + ae.regex + ")").join("") + "$";
4156
+ var N = new RegExp(q, "i").exec(O);
4160
4157
  if (N !== null) {
4161
4158
  const de = /* @__PURE__ */ Object.create(null);
4162
4159
  for (let u = 1; u < N.length; u++) {
@@ -4199,22 +4196,22 @@ function gh() {
4199
4196
  }
4200
4197
  }
4201
4198
  var ve = new RegExp("^\\d{4}(-[01]\\d)?(-[0-3]\\d)?(T[0-2]\\d:[0-5]\\d:[0-5]\\d)?(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");
4202
- function Se(T, I) {
4203
- if (!(typeof T > "u"))
4199
+ function Se(O, I) {
4200
+ if (!(typeof O > "u"))
4204
4201
  if (typeof I > "u") {
4205
- if (!ve.test(T))
4202
+ if (!ve.test(O))
4206
4203
  throw {
4207
4204
  stack: new Error().stack,
4208
4205
  code: "D3110",
4209
- value: T
4206
+ value: O
4210
4207
  };
4211
- return Date.parse(T);
4208
+ return Date.parse(O);
4212
4209
  } else
4213
- return ee.call(this, T, I);
4210
+ return ee.call(this, O, I);
4214
4211
  }
4215
- function Ee(T, I, $) {
4216
- if (!(typeof T > "u"))
4217
- return Ae.call(this, T, I, $);
4212
+ function Ee(O, I, $) {
4213
+ if (!(typeof O > "u"))
4214
+ return Ae.call(this, O, I, $);
4218
4215
  }
4219
4216
  return {
4220
4217
  formatInteger: k,
@@ -4229,8 +4226,8 @@ function gh() {
4229
4226
  (function() {
4230
4227
  var o = s("./utils");
4231
4228
  const c = (() => {
4232
- var d = o.isNumeric, g = o.isArrayOfStrings, A = o.isArrayOfNumbers, m = o.isSequence, f = o.isFunction, C = o.isLambda, E = o.isPromise, O = o.getFunctionArity, U = o.isDeepEqual, B = o.stringToArray;
4233
- function S(a) {
4229
+ var d = o.isNumeric, b = o.isArrayOfStrings, A = o.isArrayOfNumbers, m = o.isSequence, f = o.isFunction, C = o.isLambda, E = o.isPromise, T = o.getFunctionArity, U = o.isDeepEqual, B = o.stringToArray;
4230
+ function x(a) {
4234
4231
  if (!(typeof a > "u")) {
4235
4232
  var l = 0;
4236
4233
  return a.forEach(function(p) {
@@ -4271,24 +4268,24 @@ function gh() {
4271
4268
  value: a,
4272
4269
  stack: new Error().stack
4273
4270
  };
4274
- var x = l ? 2 : 0;
4275
- Array.isArray(a) && a.outerWrapper && (a = a[0]), p = JSON.stringify(a, function(P, L) {
4271
+ var P = l ? 2 : 0;
4272
+ Array.isArray(a) && a.outerWrapper && (a = a[0]), p = JSON.stringify(a, function(S, L) {
4276
4273
  return typeof L < "u" && L !== null && d(L) ? L.toPrecision && !Number.isInteger(L) ? Number(L.toPrecision(15)) : L : L && f(L) ? "" : L;
4277
- }, x);
4274
+ }, P);
4278
4275
  }
4279
4276
  return p;
4280
4277
  }
4281
4278
  }
4282
4279
  function j(a, l, p) {
4283
4280
  if (!(typeof a > "u")) {
4284
- var x = B(a), P = x.length;
4285
- if (P + l < 0 && (l = 0), typeof p < "u") {
4281
+ var P = B(a), S = P.length;
4282
+ if (S + l < 0 && (l = 0), typeof p < "u") {
4286
4283
  if (p <= 0)
4287
4284
  return "";
4288
- var L = l >= 0 ? l + p : P + l + p;
4289
- return x.slice(l, L).join("");
4285
+ var L = l >= 0 ? l + p : S + l + p;
4286
+ return P.slice(l, L).join("");
4290
4287
  }
4291
- return x.slice(l).join("");
4288
+ return P.slice(l).join("");
4292
4289
  }
4293
4290
  }
4294
4291
  function ne(a, l) {
@@ -4324,15 +4321,15 @@ function gh() {
4324
4321
  function Ue(a, l, p) {
4325
4322
  if (!(typeof a > "u")) {
4326
4323
  (typeof p > "u" || p.length === 0) && (p = " ");
4327
- var x;
4324
+ var P;
4328
4325
  l = Math.trunc(l);
4329
- var P = Math.abs(l) - le(a);
4330
- if (P > 0) {
4331
- var L = new Array(P + 1).join(p);
4332
- p.length > 1 && (L = j(L, 0, P)), l > 0 ? x = a + L : x = L + a;
4326
+ var S = Math.abs(l) - le(a);
4327
+ if (S > 0) {
4328
+ var L = new Array(S + 1).join(p);
4329
+ p.length > 1 && (L = j(L, 0, S)), l > 0 ? P = a + L : P = L + a;
4333
4330
  } else
4334
- x = a;
4335
- return x;
4331
+ P = a;
4332
+ return P;
4336
4333
  }
4337
4334
  }
4338
4335
  async function he(a, l) {
@@ -4350,8 +4347,8 @@ function gh() {
4350
4347
  if (typeof l == "string")
4351
4348
  p = a.indexOf(l) !== -1;
4352
4349
  else {
4353
- var x = await he(l, a);
4354
- p = typeof x < "u";
4350
+ var P = await he(l, a);
4351
+ p = typeof P < "u";
4355
4352
  }
4356
4353
  return p;
4357
4354
  }
@@ -4365,23 +4362,23 @@ function gh() {
4365
4362
  code: "D3040",
4366
4363
  index: 3
4367
4364
  };
4368
- var x = this.createSequence();
4365
+ var P = this.createSequence();
4369
4366
  if (typeof p > "u" || p > 0) {
4370
- var P = 0, L = await he(l, a);
4367
+ var S = 0, L = await he(l, a);
4371
4368
  if (typeof L < "u")
4372
- for (; typeof L < "u" && (typeof p > "u" || P < p); )
4373
- x.push({
4369
+ for (; typeof L < "u" && (typeof p > "u" || S < p); )
4370
+ P.push({
4374
4371
  match: L.match,
4375
4372
  index: L.start,
4376
4373
  groups: L.groups
4377
- }), L = await he(L.next), P++;
4374
+ }), L = await he(L.next), S++;
4378
4375
  }
4379
- return x;
4376
+ return P;
4380
4377
  }
4381
4378
  }
4382
- async function ce(a, l, p, x) {
4379
+ async function ce(a, l, p, P) {
4383
4380
  if (!(typeof a > "u")) {
4384
- var P = this;
4381
+ var S = this;
4385
4382
  if (l === "")
4386
4383
  throw {
4387
4384
  code: "D3010",
@@ -4389,11 +4386,11 @@ function gh() {
4389
4386
  value: l,
4390
4387
  index: 2
4391
4388
  };
4392
- if (x < 0)
4389
+ if (P < 0)
4393
4390
  throw {
4394
4391
  code: "D3011",
4395
4392
  stack: new Error().stack,
4396
- value: x,
4393
+ value: P,
4397
4394
  index: 4
4398
4395
  };
4399
4396
  var L;
@@ -4422,18 +4419,18 @@ function gh() {
4422
4419
  return it += p.substring(Le), it;
4423
4420
  } : L = p;
4424
4421
  var H = "", K = 0;
4425
- if (typeof x > "u" || x > 0) {
4422
+ if (typeof P > "u" || P > 0) {
4426
4423
  var _e = 0;
4427
4424
  if (typeof l == "string") {
4428
- for (var oe = a.indexOf(l, K); oe !== -1 && (typeof x > "u" || _e < x); )
4425
+ for (var oe = a.indexOf(l, K); oe !== -1 && (typeof P > "u" || _e < P); )
4429
4426
  H += a.substring(K, oe), H += p, K = oe + l.length, _e++, oe = a.indexOf(l, K);
4430
4427
  H += a.substring(K);
4431
4428
  } else {
4432
4429
  var Ne = await he(l, a);
4433
4430
  if (typeof Ne < "u") {
4434
- for (; typeof Ne < "u" && (typeof x > "u" || _e < x); ) {
4431
+ for (; typeof Ne < "u" && (typeof P > "u" || _e < P); ) {
4435
4432
  H += a.substring(K, Ne.start);
4436
- var Be = L.apply(P, [Ne]);
4433
+ var Be = L.apply(S, [Ne]);
4437
4434
  if (E(Be) && (Be = await Be), typeof Be == "string")
4438
4435
  H += Be;
4439
4436
  else
@@ -4475,7 +4472,7 @@ function gh() {
4475
4472
  return l(a);
4476
4473
  }
4477
4474
  }
4478
- function b(a) {
4475
+ function g(a) {
4479
4476
  if (!(typeof a > "u")) {
4480
4477
  var l;
4481
4478
  try {
@@ -4548,29 +4545,29 @@ function gh() {
4548
4545
  value: p,
4549
4546
  index: 3
4550
4547
  };
4551
- var x = [];
4548
+ var P = [];
4552
4549
  if (typeof p > "u" || p > 0)
4553
4550
  if (typeof l == "string")
4554
- x = a.split(l, p);
4551
+ P = a.split(l, p);
4555
4552
  else {
4556
- var P = 0, L = await he(l, a);
4553
+ var S = 0, L = await he(l, a);
4557
4554
  if (typeof L < "u") {
4558
- for (var H = 0; typeof L < "u" && (typeof p > "u" || P < p); )
4559
- x.push(a.substring(H, L.start)), H = L.end, L = await he(L.next), P++;
4560
- (typeof p > "u" || P < p) && x.push(a.substring(H));
4555
+ for (var H = 0; typeof L < "u" && (typeof p > "u" || S < p); )
4556
+ P.push(a.substring(H, L.start)), H = L.end, L = await he(L.next), S++;
4557
+ (typeof p > "u" || S < p) && P.push(a.substring(H));
4561
4558
  } else
4562
- x.push(a);
4559
+ P.push(a);
4563
4560
  }
4564
- return x;
4561
+ return P;
4565
4562
  }
4566
4563
  }
4567
4564
  function Ee(a, l) {
4568
4565
  if (!(typeof a > "u"))
4569
4566
  return typeof l > "u" && (l = ""), a.join(l);
4570
4567
  }
4571
- function T(a, l, p) {
4568
+ function O(a, l, p) {
4572
4569
  if (!(typeof a > "u")) {
4573
- var x = {
4570
+ var P = {
4574
4571
  "decimal-separator": ".",
4575
4572
  "grouping-separator": ",",
4576
4573
  "exponent-separator": "e",
@@ -4582,13 +4579,13 @@ function gh() {
4582
4579
  "zero-digit": "0",
4583
4580
  digit: "#",
4584
4581
  "pattern-separator": ";"
4585
- }, P = x;
4582
+ }, S = P;
4586
4583
  typeof p < "u" && o.keys(p).forEach(function(be) {
4587
- P[be] = p[be];
4584
+ S[be] = p[be];
4588
4585
  });
4589
- for (var L = [], H = P["zero-digit"].charCodeAt(0), K = H; K < H + 10; K++)
4586
+ for (var L = [], H = S["zero-digit"].charCodeAt(0), K = H; K < H + 10; K++)
4590
4587
  L.push(String.fromCharCode(K));
4591
- var _e = L.concat([P["decimal-separator"], P["exponent-separator"], P["grouping-separator"], P.digit, P["pattern-separator"]]), oe = l.split(P["pattern-separator"]);
4588
+ var _e = L.concat([S["decimal-separator"], S["exponent-separator"], S["grouping-separator"], S.digit, S["pattern-separator"]]), oe = l.split(S["pattern-separator"]);
4592
4589
  if (oe.length > 2)
4593
4590
  throw {
4594
4591
  code: "D3080",
@@ -4597,17 +4594,17 @@ function gh() {
4597
4594
  var Ne = function(be) {
4598
4595
  var Ze = (function() {
4599
4596
  for (var ht, Ut = 0; Ut < be.length; Ut++)
4600
- if (ht = be.charAt(Ut), _e.indexOf(ht) !== -1 && ht !== P["exponent-separator"])
4597
+ if (ht = be.charAt(Ut), _e.indexOf(ht) !== -1 && ht !== S["exponent-separator"])
4601
4598
  return be.substring(0, Ut);
4602
4599
  return "";
4603
4600
  })(), _t = (function() {
4604
4601
  for (var ht, Ut = be.length - 1; Ut >= 0; Ut--)
4605
- if (ht = be.charAt(Ut), _e.indexOf(ht) !== -1 && ht !== P["exponent-separator"])
4602
+ if (ht = be.charAt(Ut), _e.indexOf(ht) !== -1 && ht !== S["exponent-separator"])
4606
4603
  return be.substring(Ut + 1);
4607
4604
  return "";
4608
- })(), Ge = be.substring(Ze.length, be.length - _t.length), Ot, ks, Tt, Ws, jt = be.indexOf(P["exponent-separator"], Ze.length);
4605
+ })(), Ge = be.substring(Ze.length, be.length - _t.length), Ot, ks, Tt, Ws, jt = be.indexOf(S["exponent-separator"], Ze.length);
4609
4606
  jt === -1 || jt > be.length - _t.length ? (Ot = Ge, ks = void 0) : (Ot = Ge.substring(0, jt), ks = Ge.substring(jt + 1));
4610
- var Qt = Ot.indexOf(P["decimal-separator"]);
4607
+ var Qt = Ot.indexOf(S["decimal-separator"]);
4611
4608
  return Qt === -1 ? (Tt = Ot, Ws = _t) : (Tt = Ot.substring(0, Qt), Ws = Ot.substring(Qt + 1)), {
4612
4609
  prefix: Ze,
4613
4610
  suffix: _t,
@@ -4619,12 +4616,12 @@ function gh() {
4619
4616
  subpicture: be
4620
4617
  };
4621
4618
  }, Be = function(be) {
4622
- var Ze, _t, Ge = be.subpicture, Ot = Ge.indexOf(P["decimal-separator"]);
4623
- Ot !== Ge.lastIndexOf(P["decimal-separator"]) && (Ze = "D3081"), Ge.indexOf(P.percent) !== Ge.lastIndexOf(P.percent) && (Ze = "D3082"), Ge.indexOf(P["per-mille"]) !== Ge.lastIndexOf(P["per-mille"]) && (Ze = "D3083"), Ge.indexOf(P.percent) !== -1 && Ge.indexOf(P["per-mille"]) !== -1 && (Ze = "D3084");
4619
+ var Ze, _t, Ge = be.subpicture, Ot = Ge.indexOf(S["decimal-separator"]);
4620
+ Ot !== Ge.lastIndexOf(S["decimal-separator"]) && (Ze = "D3081"), Ge.indexOf(S.percent) !== Ge.lastIndexOf(S.percent) && (Ze = "D3082"), Ge.indexOf(S["per-mille"]) !== Ge.lastIndexOf(S["per-mille"]) && (Ze = "D3083"), Ge.indexOf(S.percent) !== -1 && Ge.indexOf(S["per-mille"]) !== -1 && (Ze = "D3084");
4624
4621
  var ks = !1;
4625
4622
  for (_t = 0; _t < be.mantissaPart.length; _t++) {
4626
4623
  var Tt = be.mantissaPart.charAt(_t);
4627
- if (L.indexOf(Tt) !== -1 || Tt === P.digit) {
4624
+ if (L.indexOf(Tt) !== -1 || Tt === S.digit) {
4628
4625
  ks = !0;
4629
4626
  break;
4630
4627
  }
@@ -4633,15 +4630,15 @@ function gh() {
4633
4630
  var Ws = be.activePart.split("").map(function(ht) {
4634
4631
  return _e.indexOf(ht) === -1 ? "p" : "a";
4635
4632
  }).join("");
4636
- Ws.indexOf("p") !== -1 && (Ze = "D3086"), Ot !== -1 ? (Ge.charAt(Ot - 1) === P["grouping-separator"] || Ge.charAt(Ot + 1) === P["grouping-separator"]) && (Ze = "D3087") : be.integerPart.charAt(be.integerPart.length - 1) === P["grouping-separator"] && (Ze = "D3088"), Ge.indexOf(P["grouping-separator"] + P["grouping-separator"]) !== -1 && (Ze = "D3089");
4637
- var jt = be.integerPart.indexOf(P.digit);
4633
+ Ws.indexOf("p") !== -1 && (Ze = "D3086"), Ot !== -1 ? (Ge.charAt(Ot - 1) === S["grouping-separator"] || Ge.charAt(Ot + 1) === S["grouping-separator"]) && (Ze = "D3087") : be.integerPart.charAt(be.integerPart.length - 1) === S["grouping-separator"] && (Ze = "D3088"), Ge.indexOf(S["grouping-separator"] + S["grouping-separator"]) !== -1 && (Ze = "D3089");
4634
+ var jt = be.integerPart.indexOf(S.digit);
4638
4635
  jt !== -1 && be.integerPart.substring(0, jt).split("").filter(function(ht) {
4639
4636
  return L.indexOf(ht) > -1;
4640
- }).length > 0 && (Ze = "D3090"), jt = be.fractionalPart.lastIndexOf(P.digit), jt !== -1 && be.fractionalPart.substring(jt).split("").filter(function(ht) {
4637
+ }).length > 0 && (Ze = "D3090"), jt = be.fractionalPart.lastIndexOf(S.digit), jt !== -1 && be.fractionalPart.substring(jt).split("").filter(function(ht) {
4641
4638
  return L.indexOf(ht) > -1;
4642
4639
  }).length > 0 && (Ze = "D3091");
4643
4640
  var Qt = typeof be.exponentPart == "string";
4644
- if (Qt && be.exponentPart.length > 0 && (Ge.indexOf(P.percent) !== -1 || Ge.indexOf(P["per-mille"]) !== -1) && (Ze = "D3092"), Qt && (be.exponentPart.length === 0 || be.exponentPart.split("").filter(function(ht) {
4641
+ if (Qt && be.exponentPart.length > 0 && (Ge.indexOf(S.percent) !== -1 || Ge.indexOf(S["per-mille"]) !== -1) && (Ze = "D3092"), Qt && (be.exponentPart.length === 0 || be.exponentPart.split("").filter(function(ht) {
4645
4642
  return L.indexOf(ht) === -1;
4646
4643
  }).length > 0) && (Ze = "D3093"), Ze)
4647
4644
  throw {
@@ -4650,11 +4647,11 @@ function gh() {
4650
4647
  };
4651
4648
  }, He = function(be) {
4652
4649
  var Ze = function(gt, wi) {
4653
- for (var Ur = [], ms = gt.indexOf(P["grouping-separator"]); ms !== -1; ) {
4650
+ for (var Ur = [], ms = gt.indexOf(S["grouping-separator"]); ms !== -1; ) {
4654
4651
  var _i = (wi ? gt.substring(0, ms) : gt.substring(ms)).split("").filter(function(mr) {
4655
- return L.indexOf(mr) !== -1 || mr === P.digit;
4652
+ return L.indexOf(mr) !== -1 || mr === S.digit;
4656
4653
  }).length;
4657
- Ur.push(_i), ms = be.integerPart.indexOf(P["grouping-separator"], ms + 1);
4654
+ Ur.push(_i), ms = be.integerPart.indexOf(S["grouping-separator"], ms + 1);
4658
4655
  }
4659
4656
  return Ur;
4660
4657
  }, _t = Ze(be.integerPart), Ge = function(gt) {
@@ -4671,9 +4668,9 @@ function gh() {
4671
4668
  }).length, Ws = Tt, jt = be.fractionalPart.split(""), Qt = jt.filter(function(gt) {
4672
4669
  return L.indexOf(gt) !== -1;
4673
4670
  }).length, ht = jt.filter(function(gt) {
4674
- return L.indexOf(gt) !== -1 || gt === P.digit;
4671
+ return L.indexOf(gt) !== -1 || gt === S.digit;
4675
4672
  }).length, Ut = typeof be.exponentPart == "string";
4676
- Tt === 0 && ht === 0 && (Ut ? (Qt = 1, ht = 1) : Tt = 1), Ut && Tt === 0 && be.integerPart.indexOf(P.digit) !== -1 && (Tt = 1), Tt === 0 && Qt === 0 && (Qt = 1);
4673
+ Tt === 0 && ht === 0 && (Ut ? (Qt = 1, ht = 1) : Tt = 1), Ut && Tt === 0 && be.integerPart.indexOf(S.digit) !== -1 && (Tt = 1), Tt === 0 && Qt === 0 && (Qt = 1);
4677
4674
  var Lo = 0;
4678
4675
  return Ut && (Lo = be.exponentPart.split("").filter(function(gt) {
4679
4676
  return L.indexOf(gt) !== -1;
@@ -4692,12 +4689,12 @@ function gh() {
4692
4689
  };
4693
4690
  }, it = oe.map(Ne);
4694
4691
  it.forEach(Be);
4695
- var Le = it.map(He), Je = P["minus-sign"], Ht = P["zero-digit"], yt = P["decimal-separator"], is = P["grouping-separator"];
4692
+ var Le = it.map(He), Je = S["minus-sign"], Ht = S["zero-digit"], yt = S["decimal-separator"], is = S["grouping-separator"];
4696
4693
  Le.length === 1 && (Le.push(JSON.parse(JSON.stringify(Le[0]))), Le[1].prefix = Je + Le[1].prefix);
4697
4694
  var nt;
4698
4695
  a >= 0 ? nt = Le[0] : nt = Le[1];
4699
4696
  var Rr;
4700
- nt.picture.indexOf(P.percent) !== -1 ? Rr = a * 100 : nt.picture.indexOf(P["per-mille"]) !== -1 ? Rr = a * 1e3 : Rr = a;
4697
+ nt.picture.indexOf(S.percent) !== -1 ? Rr = a * 100 : nt.picture.indexOf(S["per-mille"]) !== -1 ? Rr = a * 1e3 : Rr = a;
4701
4698
  var Cs, fr;
4702
4699
  if (nt.minimumExponentSize === 0)
4703
4700
  Cs = Rr;
@@ -4733,7 +4730,7 @@ function gh() {
4733
4730
  ke = [ke.slice(0, be + wt + 1), is, ke.slice(be + wt + 1)].join("");
4734
4731
  }), wt = ke.indexOf(yt), (nt.picture.indexOf(yt) === -1 || wt === ke.length - 1) && (ke = ke.substring(0, ke.length - 1)), typeof fr < "u") {
4735
4732
  var yi = Oo(fr, 0);
4736
- jr = nt.minimumExponentSize - yi.length, jr > 0 && (yi = new Array(jr + 1).join(Ht) + yi), ke = ke + P["exponent-separator"] + (fr < 0 ? Je : "") + yi;
4733
+ jr = nt.minimumExponentSize - yi.length, jr > 0 && (yi = new Array(jr + 1).join(Ht) + yi), ke = ke + S["exponent-separator"] + (fr < 0 ? Je : "") + yi;
4737
4734
  }
4738
4735
  return ke = nt.prefix + ke + nt.suffix, ke;
4739
4736
  }
@@ -4792,12 +4789,12 @@ function gh() {
4792
4789
  var p;
4793
4790
  if (!(typeof a > "u")) {
4794
4791
  if (l) {
4795
- var x = a.toString().split("e");
4796
- a = +(x[0] + "e" + (x[1] ? +x[1] + l : l));
4792
+ var P = a.toString().split("e");
4793
+ a = +(P[0] + "e" + (P[1] ? +P[1] + l : l));
4797
4794
  }
4798
4795
  p = Math.round(a);
4799
- var P = p - a;
4800
- return Math.abs(P) === 0.5 && Math.abs(p % 2) === 1 && (p = p - 1), l && (x = p.toString().split("e"), p = +(x[0] + "e" + (x[1] ? +x[1] - l : -l))), Object.is(p, -0) && (p = 0), p;
4796
+ var S = p - a;
4797
+ return Math.abs(S) === 0.5 && Math.abs(p % 2) === 1 && (p = p - 1), l && (P = p.toString().split("e"), p = +(P[0] + "e" + (P[1] ? +P[1] - l : -l))), Object.is(p, -0) && (p = 0), p;
4801
4798
  }
4802
4799
  }
4803
4800
  function G(a) {
@@ -4837,8 +4834,8 @@ function gh() {
4837
4834
  if (a.length === 1)
4838
4835
  l = me(a[0]);
4839
4836
  else if (a.length > 1) {
4840
- var p = a.filter(function(x) {
4841
- return me(x);
4837
+ var p = a.filter(function(P) {
4838
+ return me(P);
4842
4839
  });
4843
4840
  l = p.length > 0;
4844
4841
  }
@@ -4850,14 +4847,14 @@ function gh() {
4850
4847
  if (!(typeof a > "u"))
4851
4848
  return !me(a);
4852
4849
  }
4853
- function ue(a, l, p, x) {
4854
- var P = [l], L = O(a);
4855
- return L >= 2 && P.push(p), L >= 3 && P.push(x), P;
4850
+ function ue(a, l, p, P) {
4851
+ var S = [l], L = T(a);
4852
+ return L >= 2 && S.push(p), L >= 3 && S.push(P), S;
4856
4853
  }
4857
4854
  async function De(a, l) {
4858
4855
  if (!(typeof a > "u")) {
4859
- for (var p = this.createSequence(), x = 0; x < a.length; x++) {
4860
- var P = ue(l, a[x], x, a), L = await l.apply(this, P);
4856
+ for (var p = this.createSequence(), P = 0; P < a.length; P++) {
4857
+ var S = ue(l, a[P], P, a), L = await l.apply(this, S);
4861
4858
  typeof L < "u" && p.push(L);
4862
4859
  }
4863
4860
  return p;
@@ -4865,29 +4862,29 @@ function gh() {
4865
4862
  }
4866
4863
  async function de(a, l) {
4867
4864
  if (!(typeof a > "u")) {
4868
- for (var p = this.createSequence(), x = 0; x < a.length; x++) {
4869
- var P = a[x], L = ue(l, P, x, a), H = await l.apply(this, L);
4870
- me(H) && p.push(P);
4865
+ for (var p = this.createSequence(), P = 0; P < a.length; P++) {
4866
+ var S = a[P], L = ue(l, S, P, a), H = await l.apply(this, L);
4867
+ me(H) && p.push(S);
4871
4868
  }
4872
4869
  return p;
4873
4870
  }
4874
4871
  }
4875
4872
  async function mt(a, l) {
4876
4873
  if (!(typeof a > "u")) {
4877
- for (var p = !1, x, P = 0; P < a.length; P++) {
4878
- var L = a[P], H = !0;
4874
+ for (var p = !1, P, S = 0; S < a.length; S++) {
4875
+ var L = a[S], H = !0;
4879
4876
  if (typeof l < "u") {
4880
- var K = ue(l, L, P, a), _e = await l.apply(this, K);
4877
+ var K = ue(l, L, S, a), _e = await l.apply(this, K);
4881
4878
  H = me(_e);
4882
4879
  }
4883
4880
  if (H)
4884
4881
  if (!p)
4885
- x = L, p = !0;
4882
+ P = L, p = !0;
4886
4883
  else
4887
4884
  throw {
4888
4885
  stack: new Error().stack,
4889
4886
  code: "D3138",
4890
- index: P
4887
+ index: S
4891
4888
  };
4892
4889
  }
4893
4890
  if (!p)
@@ -4895,41 +4892,41 @@ function gh() {
4895
4892
  stack: new Error().stack,
4896
4893
  code: "D3139"
4897
4894
  };
4898
- return x;
4895
+ return P;
4899
4896
  }
4900
4897
  }
4901
4898
  function Bt() {
4902
4899
  for (var a = [], l = Array.prototype.slice.call(arguments), p = Math.min.apply(Math, l.map(function(L) {
4903
4900
  return Array.isArray(L) ? L.length : 0;
4904
- })), x = 0; x < p; x++) {
4905
- var P = l.map((L) => L[x]);
4906
- a.push(P);
4901
+ })), P = 0; P < p; P++) {
4902
+ var S = l.map((L) => L[P]);
4903
+ a.push(S);
4907
4904
  }
4908
4905
  return a;
4909
4906
  }
4910
4907
  async function bt(a, l, p) {
4911
4908
  if (!(typeof a > "u")) {
4912
- var x, P = O(l);
4913
- if (P < 2)
4909
+ var P, S = T(l);
4910
+ if (S < 2)
4914
4911
  throw {
4915
4912
  stack: new Error().stack,
4916
4913
  code: "D3050",
4917
4914
  index: 1
4918
4915
  };
4919
4916
  var L;
4920
- for (typeof p > "u" && a.length > 0 ? (x = a[0], L = 1) : (x = p, L = 0); L < a.length; ) {
4921
- var H = [x, a[L]];
4922
- P >= 3 && H.push(L), P >= 4 && H.push(a), x = await l.apply(this, H), L++;
4917
+ for (typeof p > "u" && a.length > 0 ? (P = a[0], L = 1) : (P = p, L = 0); L < a.length; ) {
4918
+ var H = [P, a[L]];
4919
+ S >= 3 && H.push(L), S >= 4 && H.push(a), P = await l.apply(this, H), L++;
4923
4920
  }
4924
- return x;
4921
+ return P;
4925
4922
  }
4926
4923
  }
4927
4924
  function rt(a) {
4928
4925
  var l = this.createSequence();
4929
4926
  if (Array.isArray(a)) {
4930
- for (var p = /* @__PURE__ */ Object.create(null), x = 0; x < a.length; x++) {
4931
- var P = rt.call(this, a[x]);
4932
- P.forEach(function(L) {
4927
+ for (var p = /* @__PURE__ */ Object.create(null), P = 0; P < a.length; P++) {
4928
+ var S = rt.call(this, a[P]);
4929
+ S.forEach(function(L) {
4933
4930
  p[L] = !0;
4934
4931
  });
4935
4932
  }
@@ -4941,9 +4938,9 @@ function gh() {
4941
4938
  var p;
4942
4939
  if (Array.isArray(a)) {
4943
4940
  p = this.createSequence();
4944
- for (var x = 0; x < a.length; x++) {
4945
- var P = vt.call(this, a[x], l);
4946
- typeof P < "u" && (Array.isArray(P) ? P.forEach((L) => p.push(L)) : p.push(P));
4941
+ for (var P = 0; P < a.length; P++) {
4942
+ var S = vt.call(this, a[P], l);
4943
+ typeof S < "u" && (Array.isArray(S) ? S.forEach((L) => p.push(L)) : p.push(S));
4947
4944
  }
4948
4945
  } else a !== null && typeof a == "object" && Object.prototype.hasOwnProperty.call(a, l) && !f(a) && (p = a[l]);
4949
4946
  return p;
@@ -4972,9 +4969,9 @@ function gh() {
4972
4969
  for (var p = 0; p < a.length; p++)
4973
4970
  l = fs.call(this, l, pr.call(this, a[p]));
4974
4971
  else if (a !== null && typeof a == "object" && !C(a))
4975
- for (const P of o.keys(a)) {
4976
- var x = /* @__PURE__ */ Object.create(null);
4977
- x[P] = a[P], l.push(x);
4972
+ for (const S of o.keys(a)) {
4973
+ var P = /* @__PURE__ */ Object.create(null);
4974
+ P[S] = a[S], l.push(P);
4978
4975
  }
4979
4976
  else
4980
4977
  l = a;
@@ -4984,8 +4981,8 @@ function gh() {
4984
4981
  if (!(typeof a > "u")) {
4985
4982
  var l = /* @__PURE__ */ Object.create(null);
4986
4983
  return a.forEach(function(p) {
4987
- for (const x of o.keys(p))
4988
- l[x] = p[x];
4984
+ for (const P of o.keys(p))
4985
+ l[P] = p[P];
4989
4986
  }), l;
4990
4987
  }
4991
4988
  }
@@ -4993,16 +4990,16 @@ function gh() {
4993
4990
  if (!(typeof a > "u")) {
4994
4991
  if (a.length <= 1)
4995
4992
  return a;
4996
- for (var l = a.length, p = new Array(l), x = 0; x < l; x++)
4997
- p[l - x - 1] = a[x];
4993
+ for (var l = a.length, p = new Array(l), P = 0; P < l; P++)
4994
+ p[l - P - 1] = a[P];
4998
4995
  return p;
4999
4996
  }
5000
4997
  }
5001
4998
  async function bi(a, l) {
5002
4999
  var p = this.createSequence();
5003
5000
  for (const L of o.keys(a)) {
5004
- var x = ue(l, a[L], L, a), P = await l.apply(this, x);
5005
- typeof P < "u" && p.push(P);
5001
+ var P = ue(l, a[L], L, a), S = await l.apply(this, P);
5002
+ typeof S < "u" && p.push(S);
5006
5003
  }
5007
5004
  return p;
5008
5005
  }
@@ -5031,7 +5028,7 @@ function gh() {
5031
5028
  return a;
5032
5029
  var p;
5033
5030
  if (typeof l > "u") {
5034
- if (!A(a) && !g(a))
5031
+ if (!A(a) && !b(a))
5035
5032
  throw {
5036
5033
  stack: new Error().stack,
5037
5034
  code: "D3070",
@@ -5042,17 +5039,17 @@ function gh() {
5042
5039
  };
5043
5040
  } else
5044
5041
  p = l;
5045
- var x = async function(H, K) {
5042
+ var P = async function(H, K) {
5046
5043
  var _e = async function(Ne, Be, He) {
5047
5044
  Be.length === 0 ? Array.prototype.push.apply(Ne, He) : He.length === 0 ? Array.prototype.push.apply(Ne, Be) : await p(Be[0], He[0]) ? (Ne.push(He[0]), await _e(Ne, Be, He.slice(1))) : (Ne.push(Be[0]), await _e(Ne, Be.slice(1), He));
5048
5045
  }, oe = [];
5049
5046
  return await _e(oe, H, K), oe;
5050
- }, P = async function(H) {
5047
+ }, S = async function(H) {
5051
5048
  if (!Array.isArray(H) || H.length <= 1)
5052
5049
  return H;
5053
5050
  var K = Math.floor(H.length / 2), _e = H.slice(0, K), oe = H.slice(K);
5054
- return _e = await P(_e), oe = await P(oe), await x(_e, oe);
5055
- }, L = await P(a);
5051
+ return _e = await S(_e), oe = await S(oe), await P(_e, oe);
5052
+ }, L = await S(a);
5056
5053
  return L;
5057
5054
  }
5058
5055
  }
@@ -5061,8 +5058,8 @@ function gh() {
5061
5058
  if (a.length <= 1)
5062
5059
  return a;
5063
5060
  for (var l = new Array(a.length), p = 0; p < a.length; p++) {
5064
- var x = Math.floor(Math.random() * (p + 1));
5065
- p !== x && (l[p] = l[x]), l[x] = a[p];
5061
+ var P = Math.floor(Math.random() * (p + 1));
5062
+ p !== P && (l[p] = l[P]), l[P] = a[p];
5066
5063
  }
5067
5064
  return l;
5068
5065
  }
@@ -5072,12 +5069,12 @@ function gh() {
5072
5069
  if (!Array.isArray(a) || a.length <= 1)
5073
5070
  return a;
5074
5071
  for (var l = m(a) ? this.createSequence() : [], p = 0; p < a.length; p++) {
5075
- for (var x = a[p], P = !1, L = 0; L < l.length; L++)
5076
- if (U(x, l[L])) {
5077
- P = !0;
5072
+ for (var P = a[p], S = !1, L = 0; L < l.length; L++)
5073
+ if (U(P, l[L])) {
5074
+ S = !0;
5078
5075
  break;
5079
5076
  }
5080
- P || l.push(x);
5077
+ S || l.push(P);
5081
5078
  }
5082
5079
  return l;
5083
5080
  }
@@ -5085,13 +5082,13 @@ function gh() {
5085
5082
  async function w(a, l) {
5086
5083
  var p = /* @__PURE__ */ Object.create(null);
5087
5084
  for (const H of o.keys(a)) {
5088
- var x = a[H], P = ue(l, x, H, a), L = await l.apply(this, P);
5089
- me(L) && (p[H] = x);
5085
+ var P = a[H], S = ue(l, P, H, a), L = await l.apply(this, S);
5086
+ me(L) && (p[H] = P);
5090
5087
  }
5091
5088
  return o.keys(p).length === 0 && (p = void 0), p;
5092
5089
  }
5093
5090
  return {
5094
- sum: S,
5091
+ sum: x,
5095
5092
  count: y,
5096
5093
  max: M,
5097
5094
  min: k,
@@ -5110,7 +5107,7 @@ function gh() {
5110
5107
  replace: ce,
5111
5108
  split: Se,
5112
5109
  join: Ee,
5113
- formatNumber: T,
5110
+ formatNumber: O,
5114
5111
  formatBase: I,
5115
5112
  number: $,
5116
5113
  floor: q,
@@ -5144,7 +5141,7 @@ function gh() {
5144
5141
  distinct: v,
5145
5142
  base64encode: W,
5146
5143
  base64decode: Ae,
5147
- encodeUrlComponent: b,
5144
+ encodeUrlComponent: g,
5148
5145
  encodeUrl: _,
5149
5146
  decodeUrlComponent: ee,
5150
5147
  decodeUrl: ve
@@ -5154,8 +5151,8 @@ function gh() {
5154
5151
  }).call(this);
5155
5152
  }).call(this, typeof Yo < "u" ? Yo : typeof self < "u" ? self : typeof window < "u" ? window : {});
5156
5153
  }, { "./utils": 6 }], 3: [function(s, i, r) {
5157
- var n = s("./datetime"), o = s("./functions"), c = s("./utils"), d = s("./parser"), g = s("./signature"), A = (function() {
5158
- var m = c.isNumeric, f = c.isArrayOfStrings, C = c.isArrayOfNumbers, E = c.isSequence, O = c.isFunction, U = c.isLambda, B = c.isIterable, S = c.isPromise, y = c.getFunctionArity, M = c.isDeepEqual, k = Jt(null);
5154
+ var n = s("./datetime"), o = s("./functions"), c = s("./utils"), d = s("./parser"), b = s("./signature"), A = (function() {
5155
+ var m = c.isNumeric, f = c.isArrayOfStrings, C = c.isArrayOfNumbers, E = c.isSequence, T = c.isFunction, U = c.isLambda, B = c.isIterable, x = c.isPromise, y = c.getFunctionArity, M = c.isDeepEqual, k = Jt(null);
5159
5156
  async function D(u, v, w) {
5160
5157
  var a;
5161
5158
  w.base.depth++, w.base.guardrails();
@@ -5221,26 +5218,26 @@ function gh() {
5221
5218
  if (Object.prototype.hasOwnProperty.call(u, "predicate"))
5222
5219
  for (var p = 0; p < u.predicate.length; p++)
5223
5220
  a = await z(u.predicate[p].expr, a, w);
5224
- u.type !== "path" && Object.prototype.hasOwnProperty.call(u, "group") && (a = await T(u.group, a, w));
5225
- var x = w.lookup(Symbol.for("jsonata.__evaluate_exit"));
5226
- return x && await x(u, v, w, a), a && E(a) && !a.tupleStream && (u.keepArray && (a.keepSingleton = !0), a.length === 0 ? a = void 0 : a.length === 1 && (a = a.keepSingleton ? a : a[0])), w.base.depth--, a;
5221
+ u.type !== "path" && Object.prototype.hasOwnProperty.call(u, "group") && (a = await O(u.group, a, w));
5222
+ var P = w.lookup(Symbol.for("jsonata.__evaluate_exit"));
5223
+ return P && await P(u, v, w, a), a && E(a) && !a.tupleStream && (u.keepArray && (a.keepSingleton = !0), a.length === 0 ? a = void 0 : a.length === 1 && (a = a.keepSingleton ? a : a[0])), w.base.depth--, a;
5227
5224
  }
5228
5225
  async function Y(u, v, w) {
5229
5226
  var a;
5230
5227
  Array.isArray(v) && u.steps[0].type !== "variable" ? a = v : a = w.base.createSequence(v);
5231
- for (var l, p = !1, x = void 0, P = 0; P < u.steps.length; P++) {
5232
- var L = u.steps[P];
5233
- if (L.tuple && (p = !0), P === 0 && L.consarray ? l = await D(L, a, w) : p ? x = await ie(L, a, x, w) : l = await ne(L, a, w, P === u.steps.length - 1), !p && (typeof l > "u" || l.length === 0))
5228
+ for (var l, p = !1, P = void 0, S = 0; S < u.steps.length; S++) {
5229
+ var L = u.steps[S];
5230
+ if (L.tuple && (p = !0), S === 0 && L.consarray ? l = await D(L, a, w) : p ? P = await ie(L, a, P, w) : l = await ne(L, a, w, S === u.steps.length - 1), !p && (typeof l > "u" || l.length === 0))
5234
5231
  break;
5235
5232
  typeof L.focus > "u" && (a = l);
5236
5233
  }
5237
5234
  if (p)
5238
5235
  if (u.tuple)
5239
- l = x;
5236
+ l = P;
5240
5237
  else
5241
- for (l = w.base.createSequence(), P = 0; P < x.length; P++)
5242
- l.push(x[P]["@"]);
5243
- return u.keepSingletonArray && (Array.isArray(l) && l.cons && !l.sequence && (l = w.base.createSequence(l)), l.keepSingleton = !0), Object.prototype.hasOwnProperty.call(u, "group") && (l = await T(u.group, p ? x : l, w)), l;
5238
+ for (l = w.base.createSequence(), S = 0; S < P.length; S++)
5239
+ l.push(P[S]["@"]);
5240
+ return u.keepSingletonArray && (Array.isArray(l) && l.cons && !l.sequence && (l = w.base.createSequence(l)), l.keepSingleton = !0), Object.prototype.hasOwnProperty.call(u, "group") && (l = await O(u.group, p ? P : l, w)), l;
5244
5241
  }
5245
5242
  function j(u, v) {
5246
5243
  var w = Jt(u);
@@ -5254,11 +5251,11 @@ function gh() {
5254
5251
  return l = await ae(u, v, w), u.stages && (l = await re(u.stages, l, w)), l;
5255
5252
  l = w.base.createSequence();
5256
5253
  for (var p = 0; p < v.length; p++) {
5257
- var x = await D(u, v[p], w);
5254
+ var P = await D(u, v[p], w);
5258
5255
  if (u.stages)
5259
- for (var P = 0; P < u.stages.length; P++)
5260
- x = await z(u.stages[P].expr, x, w);
5261
- typeof x < "u" && l.push(x);
5256
+ for (var S = 0; S < u.stages.length; S++)
5257
+ P = await z(u.stages[S].expr, P, w);
5258
+ typeof P < "u" && l.push(P);
5262
5259
  }
5263
5260
  var L = w.base.createSequence();
5264
5261
  return a && l.length === 1 && Array.isArray(l[0]) && !E(l[0]) ? L = l[0] : Array.prototype.forEach.call(l, function(H) {
@@ -5273,9 +5270,9 @@ function gh() {
5273
5270
  a = await z(p.expr, a, w);
5274
5271
  break;
5275
5272
  case "index":
5276
- for (var x = 0; x < a.length; x++) {
5277
- var P = a[x];
5278
- P[p.value] = x;
5273
+ for (var P = 0; P < a.length; P++) {
5274
+ var S = a[P];
5275
+ S[p.value] = P;
5279
5276
  }
5280
5277
  break;
5281
5278
  }
@@ -5290,9 +5287,9 @@ function gh() {
5290
5287
  else {
5291
5288
  var p = await ae(u, v, a);
5292
5289
  l = a.base.createSequence(), l.tupleStream = !0;
5293
- for (var x = 0; x < p.length; x++) {
5294
- var P = { "@": p[x] };
5295
- P[u.index] = x, l.push(P);
5290
+ for (var P = 0; P < p.length; P++) {
5291
+ var S = { "@": p[P] };
5292
+ S[u.index] = P, l.push(S);
5296
5293
  }
5297
5294
  }
5298
5295
  return u.stages && (l = await re(u.stages, l, a)), l;
@@ -5306,7 +5303,7 @@ function gh() {
5306
5303
  if (typeof K < "u") {
5307
5304
  Array.isArray(K) || (K = [K]);
5308
5305
  for (var _e = 0; _e < K.length; _e++)
5309
- P = /* @__PURE__ */ Object.create(null), Object.assign(P, w[H]), K.tupleStream ? Object.assign(P, K[_e]) : (u.focus ? (P[u.focus] = K[_e], P["@"] = w[H]["@"]) : P["@"] = K[_e], u.index && (P[u.index] = _e), u.ancestor && (P[u.ancestor.label] = w[H]["@"])), l.push(P);
5306
+ S = /* @__PURE__ */ Object.create(null), Object.assign(S, w[H]), K.tupleStream ? Object.assign(S, K[_e]) : (u.focus ? (S[u.focus] = K[_e], S["@"] = w[H]["@"]) : S["@"] = K[_e], u.index && (S[u.index] = _e), u.ancestor && (S[u.ancestor.label] = w[H]["@"])), l.push(S);
5310
5307
  }
5311
5308
  }
5312
5309
  return u.stages && (l = await re(u.stages, l, a)), l;
@@ -5320,9 +5317,9 @@ function gh() {
5320
5317
  typeof p < "u" && (Array.isArray(p) ? a = p : a.push(p));
5321
5318
  } else
5322
5319
  for (l = 0; l < v.length; l++) {
5323
- var p = v[l], x = p, P = w;
5324
- v.tupleStream && (x = p["@"], P = j(w, p));
5325
- var L = await D(u, x, P);
5320
+ var p = v[l], P = p, S = w;
5321
+ v.tupleStream && (P = p["@"], S = j(w, p));
5322
+ var L = await D(u, P, S);
5326
5323
  m(L) && (L = [L]), C(L) ? Array.prototype.forEach.call(L, function(K) {
5327
5324
  var _e = Math.floor(K);
5328
5325
  _e < 0 && (_e = v.length + _e), _e === l && a.push(p);
@@ -5331,14 +5328,14 @@ function gh() {
5331
5328
  return a;
5332
5329
  }
5333
5330
  async function le(u, v, w) {
5334
- var a, l = await D(u.lhs, v, w), p = u.value, x = async () => await D(u.rhs, v, w);
5331
+ var a, l = await D(u.lhs, v, w), p = u.value, P = async () => await D(u.rhs, v, w);
5335
5332
  if (p === "and" || p === "or")
5336
5333
  try {
5337
- return await ve(l, x, p);
5334
+ return await ve(l, P, p);
5338
5335
  } catch (L) {
5339
5336
  throw L.position = u.position, L.token = p, L;
5340
5337
  }
5341
- var P = await x();
5338
+ var S = await P();
5342
5339
  try {
5343
5340
  switch (p) {
5344
5341
  case "+":
@@ -5346,26 +5343,26 @@ function gh() {
5346
5343
  case "*":
5347
5344
  case "/":
5348
5345
  case "%":
5349
- a = Ae(l, P, p);
5346
+ a = Ae(l, S, p);
5350
5347
  break;
5351
5348
  case "=":
5352
5349
  case "!=":
5353
- a = b(l, P, p);
5350
+ a = g(l, S, p);
5354
5351
  break;
5355
5352
  case "<":
5356
5353
  case "<=":
5357
5354
  case ">":
5358
5355
  case ">=":
5359
- a = _(l, P, p);
5356
+ a = _(l, S, p);
5360
5357
  break;
5361
5358
  case "&":
5362
- a = Ee(l, P);
5359
+ a = Ee(l, S);
5363
5360
  break;
5364
5361
  case "..":
5365
- a = $(l, P, w);
5362
+ a = $(l, S, w);
5366
5363
  break;
5367
5364
  case "in":
5368
- a = ee(l, P);
5365
+ a = ee(l, S);
5369
5366
  break;
5370
5367
  }
5371
5368
  } catch (L) {
@@ -5395,10 +5392,10 @@ function gh() {
5395
5392
  break;
5396
5393
  case "[":
5397
5394
  a = [];
5398
- let P = await Promise.all(u.expressions.map(async (L, H) => (w.isParallelCall = H > 0, [L, await D(L, v, w)])));
5399
- for (let L of P) {
5400
- var [p, x] = L;
5401
- typeof x < "u" && (p.value === "[" ? a.push(x) : a = o.append.call(l, a, x));
5395
+ let S = await Promise.all(u.expressions.map(async (L, H) => (w.isParallelCall = H > 0, [L, await D(L, v, w)])));
5396
+ for (let L of S) {
5397
+ var [p, P] = L;
5398
+ typeof P < "u" && (p.value === "[" ? a.push(P) : a = o.append.call(l, a, P));
5402
5399
  }
5403
5400
  u.consarray && Object.defineProperty(a, "cons", {
5404
5401
  enumerable: !1,
@@ -5407,7 +5404,7 @@ function gh() {
5407
5404
  });
5408
5405
  break;
5409
5406
  case "{":
5410
- a = await T(u, v, w);
5407
+ a = await O(u, v, w);
5411
5408
  break;
5412
5409
  }
5413
5410
  return a;
@@ -5426,9 +5423,9 @@ function gh() {
5426
5423
  options: w.base.options,
5427
5424
  createSequence: w.base.createSequence
5428
5425
  }, l = a.createSequence();
5429
- return Array.isArray(v) && v.outerWrapper && v.length > 0 && (v = v[0]), v !== null && typeof v == "object" && !O(v) && c.keys(v).forEach(function(p) {
5430
- var x = v[p];
5431
- Array.isArray(x) ? (x = $e(x), l = o.append.call(a, l, x)) : l.push(x);
5426
+ return Array.isArray(v) && v.outerWrapper && v.length > 0 && (v = v[0]), v !== null && typeof v == "object" && !T(v) && c.keys(v).forEach(function(p) {
5427
+ var P = v[p];
5428
+ Array.isArray(P) ? (P = $e(P), l = o.append.call(a, l, P)) : l.push(P);
5432
5429
  }), l;
5433
5430
  }
5434
5431
  function $e(u, v) {
@@ -5443,7 +5440,7 @@ function gh() {
5443
5440
  function W(u, v) {
5444
5441
  Array.isArray(u) || v.push(u), Array.isArray(u) ? Array.prototype.forEach.call(u, function(w) {
5445
5442
  W(w, v);
5446
- }) : u !== null && typeof u == "object" && !O(u) && c.keys(u).forEach(function(w) {
5443
+ }) : u !== null && typeof u == "object" && !T(u) && c.keys(u).forEach(function(w) {
5447
5444
  W(u[w], v);
5448
5445
  });
5449
5446
  }
@@ -5482,7 +5479,7 @@ function gh() {
5482
5479
  }
5483
5480
  return a;
5484
5481
  }
5485
- function b(u, v, w) {
5482
+ function g(u, v, w) {
5486
5483
  var a, l = typeof u, p = typeof v;
5487
5484
  if (l === "undefined" || p === "undefined")
5488
5485
  return !1;
@@ -5497,8 +5494,8 @@ function gh() {
5497
5494
  return a;
5498
5495
  }
5499
5496
  function _(u, v, w) {
5500
- var a, l = typeof u, p = typeof v, x = l === "undefined" || l === "string" || l === "number", P = p === "undefined" || p === "string" || p === "number";
5501
- if (!x || !P)
5497
+ var a, l = typeof u, p = typeof v, P = l === "undefined" || l === "string" || l === "number", S = p === "undefined" || p === "string" || p === "number";
5498
+ if (!P || !S)
5502
5499
  throw {
5503
5500
  code: "T2010",
5504
5501
  stack: new Error().stack,
@@ -5561,14 +5558,14 @@ function gh() {
5561
5558
  var w, a = "", l = "";
5562
5559
  return typeof u < "u" && (a = o.string(u)), typeof v < "u" && (l = o.string(v)), w = a.concat(l), w;
5563
5560
  }
5564
- async function T(u, v, w) {
5565
- var a = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ Object.create(null), p = !!(v && v.tupleStream), x = {
5561
+ async function O(u, v, w) {
5562
+ var a = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ Object.create(null), p = !!(v && v.tupleStream), P = {
5566
5563
  options: w.base.options,
5567
5564
  createSequence: w.base.createSequence
5568
5565
  };
5569
- Array.isArray(v) || (w.base.options, v = x.createSequence(v)), v.length === 0 && !p && v.push(void 0);
5570
- for (var P = 0; P < v.length; P++)
5571
- for (var L = v[P], H = p ? j(w, L) : w, K = 0; K < u.lhs.length; K++) {
5566
+ Array.isArray(v) || (w.base.options, v = P.createSequence(v)), v.length === 0 && !p && v.push(void 0);
5567
+ for (var S = 0; S < v.length; S++)
5568
+ for (var L = v[S], H = p ? j(w, L) : w, K = 0; K < u.lhs.length; K++) {
5572
5569
  var _e = u.lhs[K], oe = await D(_e[0], p ? L["@"] : L, H);
5573
5570
  if (typeof oe != "string" && oe !== void 0)
5574
5571
  throw {
@@ -5594,7 +5591,7 @@ function gh() {
5594
5591
  position: u.position,
5595
5592
  value: oe
5596
5593
  };
5597
- l[oe].data = o.append.call(x, l[oe].data, L);
5594
+ l[oe].data = o.append.call(P, l[oe].data, L);
5598
5595
  } else
5599
5596
  l[oe] = Ne;
5600
5597
  }
@@ -5657,8 +5654,8 @@ function gh() {
5657
5654
  value: l
5658
5655
  };
5659
5656
  a = new Array(l);
5660
- for (var p = u, x = 0; p <= v; p++, x++)
5661
- a[x] = p;
5657
+ for (var p = u, P = 0; p <= v; p++, P++)
5658
+ a[P] = p;
5662
5659
  return a.sequence = !0, a;
5663
5660
  }
5664
5661
  async function F(u, v, w) {
@@ -5675,20 +5672,20 @@ function gh() {
5675
5672
  return a;
5676
5673
  }
5677
5674
  function N(u, v, w) {
5678
- var a = new w.base.RegexEngine(u.value), l = function(p, x) {
5679
- var P;
5680
- a.lastIndex = x || 0;
5675
+ var a = new w.base.RegexEngine(u.value), l = function(p, P) {
5676
+ var S;
5677
+ a.lastIndex = P || 0;
5681
5678
  var L = a.exec(p);
5682
5679
  if (L !== null) {
5683
- if (P = {
5680
+ if (S = {
5684
5681
  match: L[0],
5685
5682
  start: L.index,
5686
5683
  end: L.index + L[0].length,
5687
5684
  groups: []
5688
5685
  }, L.length > 1)
5689
5686
  for (var H = 1; H < L.length; H++)
5690
- P.groups.push(L[H]);
5691
- P.next = function() {
5687
+ S.groups.push(L[H]);
5688
+ S.next = function() {
5692
5689
  if (!(a.lastIndex >= p.length)) {
5693
5690
  var K = l(p, a.lastIndex);
5694
5691
  if (K && K.match === "")
@@ -5702,7 +5699,7 @@ function gh() {
5702
5699
  }
5703
5700
  };
5704
5701
  }
5705
- return P;
5702
+ return S;
5706
5703
  };
5707
5704
  return l;
5708
5705
  }
@@ -5711,7 +5708,7 @@ function gh() {
5711
5708
  return u.value === "" ? a = v && v.outerWrapper ? v[0] : v : a = w.lookup(u.value), a;
5712
5709
  }
5713
5710
  async function ae(u, v, w) {
5714
- var a, l = v, p = !!v.tupleStream, x = async function(L, H) {
5711
+ var a, l = v, p = !!v.tupleStream, P = async function(L, H) {
5715
5712
  for (var K = 0, _e = 0; K === 0 && _e < u.terms.length; _e++) {
5716
5713
  var oe = u.terms[_e], Ne = L, Be = w;
5717
5714
  p && (Ne = L["@"], Be = j(w, L));
@@ -5744,27 +5741,27 @@ function gh() {
5744
5741
  He !== it && (He < it ? K = -1 : K = 1, oe.descending === !0 && (K = -K));
5745
5742
  }
5746
5743
  return K === 1;
5747
- }, P = {
5744
+ }, S = {
5748
5745
  environment: w,
5749
5746
  input: v
5750
5747
  };
5751
- return a = await o.sort.apply(P, [l, x]), a;
5748
+ return a = await o.sort.apply(S, [l, P]), a;
5752
5749
  }
5753
5750
  function Ce(u, v, w) {
5754
5751
  var a = async function(l) {
5755
5752
  if (!(typeof l > "u")) {
5756
5753
  var p = w.lookup("clone");
5757
- if (!O(p))
5754
+ if (!T(p))
5758
5755
  throw {
5759
5756
  code: "T2013",
5760
5757
  stack: new Error().stack,
5761
5758
  position: u.position
5762
5759
  };
5763
- var x = await De(p, [l], null, w), P = await D(u.pattern, x, w);
5764
- if (typeof P < "u") {
5765
- Array.isArray(P) || (P = [P]);
5766
- for (var L = 0; L < P.length; L++) {
5767
- var H = P[L], K = await D(u.update, H, w), _e = typeof K;
5760
+ var P = await De(p, [l], null, w), S = await D(u.pattern, P, w);
5761
+ if (typeof S < "u") {
5762
+ Array.isArray(S) || (S = [S]);
5763
+ for (var L = 0; L < S.length; L++) {
5764
+ var H = S[L], K = await D(u.update, H, w), _e = typeof K;
5768
5765
  if (_e !== "undefined") {
5769
5766
  if (_e !== "object" || K === null || Array.isArray(K))
5770
5767
  throw {
@@ -5793,7 +5790,7 @@ function gh() {
5793
5790
  }
5794
5791
  }
5795
5792
  }
5796
- return x;
5793
+ return P;
5797
5794
  }
5798
5795
  };
5799
5796
  return J(a, "<(oa):o>");
@@ -5805,16 +5802,16 @@ function gh() {
5805
5802
  a = await ue(u.rhs, v, w, { context: l });
5806
5803
  else {
5807
5804
  var p = await D(u.rhs, v, w);
5808
- if (!O(p))
5805
+ if (!T(p))
5809
5806
  throw {
5810
5807
  code: "T2006",
5811
5808
  stack: new Error().stack,
5812
5809
  position: u.position,
5813
5810
  value: p
5814
5811
  };
5815
- if (O(l)) {
5816
- var x = await D(me, null, w);
5817
- a = await De(x, [l, p], null, w);
5812
+ if (T(l)) {
5813
+ var P = await D(me, null, w);
5814
+ a = await De(P, [l, p], null, w);
5818
5815
  } else
5819
5816
  a = await De(p, [l], null, w);
5820
5817
  }
@@ -5829,21 +5826,21 @@ function gh() {
5829
5826
  position: u.position,
5830
5827
  token: u.procedure.steps[0].value
5831
5828
  };
5832
- var x = [];
5833
- typeof a < "u" && x.push(a.context);
5834
- for (var P = 0; P < u.arguments.length; P++) {
5835
- const H = await D(u.arguments[P], v, w);
5836
- if (O(H)) {
5829
+ var P = [];
5830
+ typeof a < "u" && P.push(a.context);
5831
+ for (var S = 0; S < u.arguments.length; S++) {
5832
+ const H = await D(u.arguments[S], v, w);
5833
+ if (T(H)) {
5837
5834
  const K = async function(..._e) {
5838
5835
  return await De(H, _e, null, w);
5839
5836
  };
5840
- K.arity = y(H), x.push(K);
5837
+ K.arity = y(H), P.push(K);
5841
5838
  } else
5842
- x.push(H);
5839
+ P.push(H);
5843
5840
  }
5844
5841
  var L = u.procedure.type === "path" ? u.procedure.steps[0].value : u.procedure.value;
5845
5842
  try {
5846
- typeof p == "object" && (p.token = L, p.position = u.position), l = await De(p, x, v, w);
5843
+ typeof p == "object" && (p.token = L, p.position = u.position), l = await De(p, P, v, w);
5847
5844
  } catch (H) {
5848
5845
  throw H.position || (H.position = u.position), H.token || (H.token = L), H;
5849
5846
  }
@@ -5854,9 +5851,9 @@ function gh() {
5854
5851
  for (l = await de(u, v, w, a); U(l) && l.thunk === !0; ) {
5855
5852
  var p = await D(l.body.procedure, l.input, l.environment);
5856
5853
  l.body.procedure.type === "variable" && (p.token = l.body.procedure.value), p.position = l.body.procedure.position;
5857
- for (var x = [], P = 0; P < l.body.arguments.length; P++)
5858
- x.push(await D(l.body.arguments[P], l.input, l.environment));
5859
- l = await de(p, x, w, a);
5854
+ for (var P = [], S = 0; S < l.body.arguments.length; S++)
5855
+ P.push(await D(l.body.arguments[S], l.input, l.environment));
5856
+ l = await de(p, P, w, a);
5860
5857
  }
5861
5858
  return l;
5862
5859
  }
@@ -5867,22 +5864,22 @@ function gh() {
5867
5864
  if (u && (p = bt(u.signature, v, w)), U(u))
5868
5865
  l = await rt(u, p);
5869
5866
  else if (u && u._jsonata_function === !0) {
5870
- var x = {
5867
+ var P = {
5871
5868
  environment: a,
5872
5869
  input: w,
5873
5870
  options: a.base.options,
5874
5871
  createSequence: a.base.createSequence
5875
5872
  };
5876
- l = u.implementation.apply(x, p), B(l) && (l = l.next().value), S(l) && (l = await l);
5873
+ l = u.implementation.apply(P, p), B(l) && (l = l.next().value), x(l) && (l = await l);
5877
5874
  } else if (typeof u == "function")
5878
- l = u.apply(w, p), S(l) && (l = await l);
5875
+ l = u.apply(w, p), x(l) && (l = await l);
5879
5876
  else
5880
5877
  throw {
5881
5878
  code: "T1006",
5882
5879
  stack: new Error().stack
5883
5880
  };
5884
- } catch (P) {
5885
- throw u && (typeof P.token > "u" && typeof u.token < "u" && (P.token = u.token), P.position = u.position || P.position), P;
5881
+ } catch (S) {
5882
+ throw u && (typeof S.token > "u" && typeof u.token < "u" && (S.token = u.token), S.position = u.position || S.position), S;
5886
5883
  }
5887
5884
  return l;
5888
5885
  }
@@ -5901,23 +5898,23 @@ function gh() {
5901
5898
  }
5902
5899
  async function Bt(u, v, w) {
5903
5900
  for (var a, l = [], p = 0; p < u.arguments.length; p++) {
5904
- var x = u.arguments[p];
5905
- x.type === "operator" && x.value === "?" ? l.push(x) : l.push(await D(x, v, w));
5901
+ var P = u.arguments[p];
5902
+ P.type === "operator" && P.value === "?" ? l.push(P) : l.push(await D(P, v, w));
5906
5903
  }
5907
- var P = await D(u.procedure, v, w);
5908
- if (typeof P > "u" && u.procedure.type === "path" && w.lookup(u.procedure.steps[0].value))
5904
+ var S = await D(u.procedure, v, w);
5905
+ if (typeof S > "u" && u.procedure.type === "path" && w.lookup(u.procedure.steps[0].value))
5909
5906
  throw {
5910
5907
  code: "T1007",
5911
5908
  stack: new Error().stack,
5912
5909
  position: u.position,
5913
5910
  token: u.procedure.steps[0].value
5914
5911
  };
5915
- if (U(P))
5916
- a = vt(P, l, w);
5917
- else if (P && P._jsonata_function === !0)
5918
- a = fs(P.implementation, l, w);
5919
- else if (typeof P == "function")
5920
- a = fs(P, l, w);
5912
+ if (U(S))
5913
+ a = vt(S, l, w);
5914
+ else if (S && S._jsonata_function === !0)
5915
+ a = fs(S.implementation, l, w);
5916
+ else if (typeof S == "function")
5917
+ a = fs(S, l, w);
5921
5918
  else
5922
5919
  throw {
5923
5920
  code: "T1008",
@@ -5941,9 +5938,9 @@ function gh() {
5941
5938
  }
5942
5939
  function vt(u, v, w) {
5943
5940
  var a = Jt(u.environment || w), l = [];
5944
- Array.prototype.forEach.call(u.arguments, function(x, P) {
5945
- var L = v[P];
5946
- L && L.type === "operator" && L.value === "?" ? l.push(x) : a.bind(x.value, L);
5941
+ Array.prototype.forEach.call(u.arguments, function(P, S) {
5942
+ var L = v[S];
5943
+ L && L.type === "operator" && L.value === "?" ? l.push(P) : a.bind(P.value, L);
5947
5944
  });
5948
5945
  var p = {
5949
5946
  _jsonata_lambda: !0,
@@ -5956,22 +5953,22 @@ function gh() {
5956
5953
  }
5957
5954
  function fs(u, v, w) {
5958
5955
  var a = pr(u);
5959
- a = a.map(function(P) {
5960
- return "$" + P.trim();
5956
+ a = a.map(function(S) {
5957
+ return "$" + S.trim();
5961
5958
  });
5962
5959
  var l = "function(" + a.join(", ") + "){ _ }", p = d(l);
5963
5960
  p.body = u;
5964
- var x = vt(p, v, w);
5965
- return x;
5961
+ var P = vt(p, v, w);
5962
+ return P;
5966
5963
  }
5967
5964
  async function dr(u, v) {
5968
- var w = pr(u), a = w.map(function(x) {
5969
- return v.lookup(x.trim());
5965
+ var w = pr(u), a = w.map(function(P) {
5966
+ return v.lookup(P.trim());
5970
5967
  }), l = {
5971
5968
  environment: v,
5972
5969
  createSequence: v.base.createSequence
5973
5970
  }, p = u.apply(l, a);
5974
- return S(p) && (p = await p), p;
5971
+ return x(p) && (p = await p), p;
5975
5972
  }
5976
5973
  function pr(u) {
5977
5974
  var v = u.toString(), w = /\(([^)]*)\)/.exec(v)[1], a = w.split(",");
@@ -5982,7 +5979,7 @@ function gh() {
5982
5979
  _jsonata_function: !0,
5983
5980
  implementation: u
5984
5981
  };
5985
- return typeof v < "u" && (w.signature = g(v)), w;
5982
+ return typeof v < "u" && (w.signature = b(v)), w;
5986
5983
  }
5987
5984
  async function gi(u, v) {
5988
5985
  if (!(typeof u > "u")) {
@@ -6157,16 +6154,16 @@ function gh() {
6157
6154
  var w, a;
6158
6155
  try {
6159
6156
  w = d(u, v && v.recover), a = w.errors, delete w.errors;
6160
- } catch (x) {
6161
- throw rs(x), x;
6157
+ } catch (P) {
6158
+ throw rs(P), P;
6162
6159
  }
6163
6160
  var l = Jt(k), p = /* @__PURE__ */ new Date();
6164
- return l.bind("now", J(function(x, P) {
6165
- return n.fromMillis(p.getTime(), x, P);
6161
+ return l.bind("now", J(function(P, S) {
6162
+ return n.fromMillis(p.getTime(), P, S);
6166
6163
  }, "<s?s?:s>")), l.bind("millis", J(function() {
6167
6164
  return p.getTime();
6168
6165
  }, "<:n>")), {
6169
- evaluate: async function(x, P, L) {
6166
+ evaluate: async function(P, S, L) {
6170
6167
  if (typeof a < "u") {
6171
6168
  var H = {
6172
6169
  code: "S0500",
@@ -6175,9 +6172,9 @@ function gh() {
6175
6172
  throw rs(H), H;
6176
6173
  }
6177
6174
  const K = Jt(l);
6178
- for (const oe of c.keys(P))
6179
- K.bind(oe, P[oe]);
6180
- if (K.bind("$", x), p = /* @__PURE__ */ new Date(), K.timestamp = p, K.options = v, K.createSequence = function() {
6175
+ for (const oe of c.keys(S))
6176
+ K.bind(oe, S[oe]);
6177
+ if (K.bind("$", P), p = /* @__PURE__ */ new Date(), K.timestamp = p, K.options = v, K.createSequence = function() {
6181
6178
  var oe = [];
6182
6179
  return v && v.sequence && (oe.push = function(...Ne) {
6183
6180
  if (oe.length + Ne.length > v.sequence)
@@ -6188,7 +6185,7 @@ function gh() {
6188
6185
  };
6189
6186
  return Array.prototype.push.apply(oe, Ne);
6190
6187
  }), oe.sequence = !0, arguments.length === 1 && oe.push(arguments[0]), oe;
6191
- }, Array.isArray(x) && !E(x) && (x = K.createSequence(x), x.outerWrapper = !0), v && (v.timeout || v.stack)) {
6188
+ }, Array.isArray(P) && !E(P) && (P = K.createSequence(P), P.outerWrapper = !0), v && (v.timeout || v.stack)) {
6192
6189
  const oe = Date.now();
6193
6190
  K.guardrails = function() {
6194
6191
  if (v.stack > 0 && K.depth > v.stack)
@@ -6210,17 +6207,17 @@ function gh() {
6210
6207
  K.base = K, K.depth = 0, v && v.RegexEngine ? K.RegexEngine = v.RegexEngine : K.RegexEngine = RegExp;
6211
6208
  var _e;
6212
6209
  try {
6213
- return _e = await D(w, x, K), typeof L == "function" && L(null, _e), _e;
6210
+ return _e = await D(w, P, K), typeof L == "function" && L(null, _e), _e;
6214
6211
  } catch (oe) {
6215
6212
  throw rs(oe), oe;
6216
6213
  }
6217
6214
  },
6218
- assign: function(x, P) {
6219
- l.bind(x, P);
6215
+ assign: function(P, S) {
6216
+ l.bind(P, S);
6220
6217
  },
6221
- registerFunction: function(x, P, L) {
6222
- var H = J(P, L);
6223
- l.bind(x, H);
6218
+ registerFunction: function(P, S, L) {
6219
+ var H = J(S, L);
6220
+ l.bind(P, H);
6224
6221
  },
6225
6222
  ast: function() {
6226
6223
  return w;
@@ -6288,13 +6285,13 @@ function gh() {
6288
6285
  `,
6289
6286
  r: "\r",
6290
6287
  t: " "
6291
- }, g = function(m) {
6292
- var f = 0, C = m.length, E = function(B, S) {
6293
- var y = { type: B, value: S, position: f };
6288
+ }, b = function(m) {
6289
+ var f = 0, C = m.length, E = function(B, x) {
6290
+ var y = { type: B, value: x, position: f };
6294
6291
  return y;
6295
- }, O = function() {
6296
- for (var B = f, S = 0, y, M, k = function(Y) {
6297
- if (m.charAt(Y) === "/" && S === 0) {
6292
+ }, T = function() {
6293
+ for (var B = f, x = 0, y, M, k = function(Y) {
6294
+ if (m.charAt(Y) === "/" && x === 0) {
6298
6295
  for (var j = 0; m.charAt(Y - (j + 1)) === "\\"; )
6299
6296
  j++;
6300
6297
  if (j % 2 === 0)
@@ -6314,7 +6311,7 @@ function gh() {
6314
6311
  f++, D = m.charAt(f);
6315
6312
  return M = m.substring(B, f) + "g", new RegExp(y, M);
6316
6313
  }
6317
- (D === "(" || D === "[" || D === "{") && m.charAt(f - 1) !== "\\" && S++, (D === ")" || D === "]" || D === "}") && m.charAt(f - 1) !== "\\" && S--, f++;
6314
+ (D === "(" || D === "[" || D === "{") && m.charAt(f - 1) !== "\\" && x++, (D === ")" || D === "]" || D === "}") && m.charAt(f - 1) !== "\\" && x--, f++;
6318
6315
  }
6319
6316
  throw {
6320
6317
  code: "S0302",
@@ -6323,50 +6320,50 @@ function gh() {
6323
6320
  };
6324
6321
  }, U = function(B) {
6325
6322
  if (f >= C) return null;
6326
- for (var S = m.charAt(f); f < C && `
6327
- \r\v`.indexOf(S) > -1; )
6328
- f++, S = m.charAt(f);
6329
- if (S === "/" && m.charAt(f + 1) === "*") {
6323
+ for (var x = m.charAt(f); f < C && `
6324
+ \r\v`.indexOf(x) > -1; )
6325
+ f++, x = m.charAt(f);
6326
+ if (x === "/" && m.charAt(f + 1) === "*") {
6330
6327
  var y = f;
6331
- for (f += 2, S = m.charAt(f); !(S === "*" && m.charAt(f + 1) === "/"); )
6332
- if (S = m.charAt(++f), f >= C)
6328
+ for (f += 2, x = m.charAt(f); !(x === "*" && m.charAt(f + 1) === "/"); )
6329
+ if (x = m.charAt(++f), f >= C)
6333
6330
  throw {
6334
6331
  code: "S0106",
6335
6332
  stack: new Error().stack,
6336
6333
  position: y
6337
6334
  };
6338
- return f += 2, S = m.charAt(f), U(B);
6335
+ return f += 2, x = m.charAt(f), U(B);
6339
6336
  }
6340
- if (B !== !0 && S === "/")
6341
- return f++, E("regex", O());
6342
- if (S === "." && m.charAt(f + 1) === ".")
6337
+ if (B !== !0 && x === "/")
6338
+ return f++, E("regex", T());
6339
+ if (x === "." && m.charAt(f + 1) === ".")
6343
6340
  return f += 2, E("operator", "..");
6344
- if (S === ":" && m.charAt(f + 1) === "=")
6341
+ if (x === ":" && m.charAt(f + 1) === "=")
6345
6342
  return f += 2, E("operator", ":=");
6346
- if (S === "!" && m.charAt(f + 1) === "=")
6343
+ if (x === "!" && m.charAt(f + 1) === "=")
6347
6344
  return f += 2, E("operator", "!=");
6348
- if (S === ">" && m.charAt(f + 1) === "=")
6345
+ if (x === ">" && m.charAt(f + 1) === "=")
6349
6346
  return f += 2, E("operator", ">=");
6350
- if (S === "<" && m.charAt(f + 1) === "=")
6347
+ if (x === "<" && m.charAt(f + 1) === "=")
6351
6348
  return f += 2, E("operator", "<=");
6352
- if (S === "*" && m.charAt(f + 1) === "*")
6349
+ if (x === "*" && m.charAt(f + 1) === "*")
6353
6350
  return f += 2, E("operator", "**");
6354
- if (S === "~" && m.charAt(f + 1) === ">")
6351
+ if (x === "~" && m.charAt(f + 1) === ">")
6355
6352
  return f += 2, E("operator", "~>");
6356
- if (S === "?" && m.charAt(f + 1) === ":")
6353
+ if (x === "?" && m.charAt(f + 1) === ":")
6357
6354
  return f += 2, E("operator", "?:");
6358
- if (S === "?" && m.charAt(f + 1) === "?")
6355
+ if (x === "?" && m.charAt(f + 1) === "?")
6359
6356
  return f += 2, E("operator", "??");
6360
- if (Object.prototype.hasOwnProperty.call(c, S))
6361
- return f++, E("operator", S);
6362
- if (S === '"' || S === "'") {
6363
- var M = S;
6357
+ if (Object.prototype.hasOwnProperty.call(c, x))
6358
+ return f++, E("operator", x);
6359
+ if (x === '"' || x === "'") {
6360
+ var M = x;
6364
6361
  f++;
6365
6362
  for (var k = ""; f < C; ) {
6366
- if (S = m.charAt(f), S === "\\")
6367
- if (f++, S = m.charAt(f), Object.prototype.hasOwnProperty.call(d, S))
6368
- k += d[S];
6369
- else if (S === "u") {
6363
+ if (x = m.charAt(f), x === "\\")
6364
+ if (f++, x = m.charAt(f), Object.prototype.hasOwnProperty.call(d, x))
6365
+ k += d[x];
6366
+ else if (x === "u") {
6370
6367
  var D = m.substr(f + 1, 4);
6371
6368
  if (/^[0-9a-fA-F]+$/.test(D)) {
6372
6369
  var Y = parseInt(D, 16);
@@ -6382,12 +6379,12 @@ function gh() {
6382
6379
  code: "S0103",
6383
6380
  stack: new Error().stack,
6384
6381
  position: f,
6385
- token: S
6382
+ token: x
6386
6383
  };
6387
6384
  else {
6388
- if (S === M)
6385
+ if (x === M)
6389
6386
  return f++, E("string", k);
6390
- k += S;
6387
+ k += x;
6391
6388
  }
6392
6389
  f++;
6393
6390
  }
@@ -6410,7 +6407,7 @@ function gh() {
6410
6407
  };
6411
6408
  }
6412
6409
  var ie;
6413
- if (S === "`") {
6410
+ if (x === "`") {
6414
6411
  f++;
6415
6412
  var z = m.indexOf("`", f);
6416
6413
  if (z !== -1)
@@ -6445,56 +6442,56 @@ function gh() {
6445
6442
  };
6446
6443
  return U;
6447
6444
  }, A = function(m, f) {
6448
- var C, E, O = /* @__PURE__ */ Object.create(null), U = [], B = function() {
6449
- var b = [];
6450
- C.id !== "(end)" && b.push({ type: C.type, value: C.value, position: C.position });
6445
+ var C, E, T = /* @__PURE__ */ Object.create(null), U = [], B = function() {
6446
+ var g = [];
6447
+ C.id !== "(end)" && g.push({ type: C.type, value: C.value, position: C.position });
6451
6448
  for (var _ = E(); _ !== null; )
6452
- b.push(_), _ = E();
6453
- return b;
6454
- }, S = {
6449
+ g.push(_), _ = E();
6450
+ return g;
6451
+ }, x = {
6455
6452
  nud: function() {
6456
- var b = {
6453
+ var g = {
6457
6454
  code: "S0211",
6458
6455
  token: this.value,
6459
6456
  position: this.position
6460
6457
  };
6461
6458
  if (f)
6462
- return b.remaining = B(), b.type = "error", U.push(b), b;
6463
- throw b.stack = new Error().stack, b;
6459
+ return g.remaining = B(), g.type = "error", U.push(g), g;
6460
+ throw g.stack = new Error().stack, g;
6464
6461
  }
6465
- }, y = function(b, _) {
6466
- var ee = O[b];
6467
- return _ = _ || 0, ee ? _ >= ee.lbp && (ee.lbp = _) : (ee = Object.create(S), ee.id = ee.value = b, ee.lbp = _, O[b] = ee), ee;
6468
- }, M = function(b) {
6462
+ }, y = function(g, _) {
6463
+ var ee = T[g];
6464
+ return _ = _ || 0, ee ? _ >= ee.lbp && (ee.lbp = _) : (ee = Object.create(x), ee.id = ee.value = g, ee.lbp = _, T[g] = ee), ee;
6465
+ }, M = function(g) {
6469
6466
  if (f) {
6470
- b.remaining = B(), U.push(b);
6471
- var _ = O["(error)"];
6472
- return C = Object.create(_), C.error = b, C.type = "(error)", C;
6467
+ g.remaining = B(), U.push(g);
6468
+ var _ = T["(error)"];
6469
+ return C = Object.create(_), C.error = g, C.type = "(error)", C;
6473
6470
  } else
6474
- throw b.stack = new Error().stack, b;
6475
- }, k = function(b, _) {
6476
- if (b && C.id !== b) {
6471
+ throw g.stack = new Error().stack, g;
6472
+ }, k = function(g, _) {
6473
+ if (g && C.id !== g) {
6477
6474
  var ee;
6478
6475
  C.id === "(end)" ? ee = "S0203" : ee = "S0202";
6479
6476
  var ve = {
6480
6477
  code: ee,
6481
6478
  position: C.position,
6482
6479
  token: C.value,
6483
- value: b
6480
+ value: g
6484
6481
  };
6485
6482
  return M(ve);
6486
6483
  }
6487
6484
  var Se = E(_);
6488
6485
  if (Se === null)
6489
- return C = O["(end)"], C.position = m.length, C;
6490
- var Ee = Se.value, T = Se.type, I;
6491
- switch (T) {
6486
+ return C = T["(end)"], C.position = m.length, C;
6487
+ var Ee = Se.value, O = Se.type, I;
6488
+ switch (O) {
6492
6489
  case "name":
6493
6490
  case "variable":
6494
- I = O["(name)"];
6491
+ I = T["(name)"];
6495
6492
  break;
6496
6493
  case "operator":
6497
- if (I = O[Ee], !I)
6494
+ if (I = T[Ee], !I)
6498
6495
  return M({
6499
6496
  code: "S0204",
6500
6497
  stack: new Error().stack,
@@ -6505,10 +6502,10 @@ function gh() {
6505
6502
  case "string":
6506
6503
  case "number":
6507
6504
  case "value":
6508
- I = O["(literal)"];
6505
+ I = T["(literal)"];
6509
6506
  break;
6510
6507
  case "regex":
6511
- T = "regex", I = O["(regex)"];
6508
+ O = "regex", I = T["(regex)"];
6512
6509
  break;
6513
6510
  /* istanbul ignore next */
6514
6511
  default:
@@ -6519,59 +6516,59 @@ function gh() {
6519
6516
  token: Ee
6520
6517
  });
6521
6518
  }
6522
- return C = Object.create(I), C.value = Ee, C.type = T, C.position = Se.position, C;
6523
- }, D = function(b) {
6519
+ return C = Object.create(I), C.value = Ee, C.type = O, C.position = Se.position, C;
6520
+ }, D = function(g) {
6524
6521
  var _, ee = C;
6525
- for (k(null, !0), _ = ee.nud(); b < C.lbp; )
6522
+ for (k(null, !0), _ = ee.nud(); g < C.lbp; )
6526
6523
  ee = C, k(), _ = ee.led(_);
6527
6524
  return _;
6528
- }, Y = function(b) {
6529
- var _ = y(b, 0);
6525
+ }, Y = function(g) {
6526
+ var _ = y(g, 0);
6530
6527
  _.nud = function() {
6531
6528
  return this;
6532
6529
  };
6533
- }, j = function(b, _, ee) {
6534
- var ve = _ || c[b], Se = y(b, ve);
6530
+ }, j = function(g, _, ee) {
6531
+ var ve = _ || c[g], Se = y(g, ve);
6535
6532
  return Se.led = ee || function(Ee) {
6536
6533
  return this.lhs = Ee, this.rhs = D(ve), this.type = "binary", this;
6537
6534
  }, Se;
6538
- }, ne = function(b, _, ee) {
6539
- var ve = y(b, _);
6535
+ }, ne = function(g, _, ee) {
6536
+ var ve = y(g, _);
6540
6537
  return ve.led = ee, ve;
6541
- }, re = function(b, _) {
6542
- var ee = y(b);
6538
+ }, re = function(g, _) {
6539
+ var ee = y(g);
6543
6540
  return ee.nud = _ || function() {
6544
6541
  return this.expression = D(70), this.type = "unary", this;
6545
6542
  }, ee;
6546
6543
  };
6547
- Y("(end)"), Y("(name)"), Y("(literal)"), Y("(regex)"), y(":"), y(";"), y(","), y(")"), y("]"), y("}"), y(".."), j("."), j("+"), j("-"), j("*"), j("/"), j("%"), j("="), j("<"), j(">"), j("!="), j("<="), j(">="), j("&"), j("and"), j("or"), j("in"), Y("and"), Y("or"), Y("in"), re("-"), j("~>"), j("??", c["??"], function(b) {
6544
+ Y("(end)"), Y("(name)"), Y("(literal)"), Y("(regex)"), y(":"), y(";"), y(","), y(")"), y("]"), y("}"), y(".."), j("."), j("+"), j("-"), j("*"), j("/"), j("%"), j("="), j("<"), j(">"), j("!="), j("<="), j(">="), j("&"), j("and"), j("or"), j("in"), Y("and"), Y("or"), Y("in"), re("-"), j("~>"), j("??", c["??"], function(g) {
6548
6545
  return this.type = "condition", this.condition = {
6549
6546
  type: "function",
6550
6547
  value: "(",
6551
6548
  procedure: { type: "variable", value: "exists" },
6552
- arguments: [JSON.parse(JSON.stringify(b))]
6553
- }, this.then = b, this.else = D(0), this;
6554
- }), ne("(error)", 10, function(b) {
6555
- return this.lhs = b, this.error = C.error, this.remaining = B(), this.type = "error", this;
6549
+ arguments: [JSON.parse(JSON.stringify(g))]
6550
+ }, this.then = g, this.else = D(0), this;
6551
+ }), ne("(error)", 10, function(g) {
6552
+ return this.lhs = g, this.error = C.error, this.remaining = B(), this.type = "error", this;
6556
6553
  }), re("*", function() {
6557
6554
  return this.type = "wildcard", this;
6558
6555
  }), re("**", function() {
6559
6556
  return this.type = "descendant", this;
6560
6557
  }), re("%", function() {
6561
6558
  return this.type = "parent", this;
6562
- }), j("(", c["("], function(b) {
6563
- if (this.procedure = b, this.type = "function", this.arguments = [], C.id !== ")")
6559
+ }), j("(", c["("], function(g) {
6560
+ if (this.procedure = g, this.type = "function", this.arguments = [], C.id !== ")")
6564
6561
  for (; C.type === "operator" && C.id === "?" ? (this.type = "partial", this.arguments.push(C), k("?")) : this.arguments.push(D(0)), C.id === ","; )
6565
6562
  k(",");
6566
- if (k(")", !0), b.type === "name" && (b.value === "function" || b.value === "λ")) {
6567
- if (this.arguments.forEach(function(Ee, T) {
6563
+ if (k(")", !0), g.type === "name" && (g.value === "function" || g.value === "λ")) {
6564
+ if (this.arguments.forEach(function(Ee, O) {
6568
6565
  if (Ee.type !== "variable")
6569
6566
  return M({
6570
6567
  code: "S0208",
6571
6568
  stack: new Error().stack,
6572
6569
  position: Ee.position,
6573
6570
  token: Ee.value,
6574
- value: T + 1
6571
+ value: O + 1
6575
6572
  });
6576
6573
  }), this.type = "lambda", C.id === "<") {
6577
6574
  for (var _ = C.position, ee = 1, ve = "<"; ee > 0 && C.id !== "{" && C.id !== "(end)"; ) {
@@ -6589,11 +6586,11 @@ function gh() {
6589
6586
  }
6590
6587
  return this;
6591
6588
  }), re("(", function() {
6592
- for (var b = []; C.id !== ")" && (b.push(D(0)), C.id === ";"); )
6589
+ for (var g = []; C.id !== ")" && (g.push(D(0)), C.id === ";"); )
6593
6590
  k(";");
6594
- return k(")", !0), this.type = "block", this.expressions = b, this;
6591
+ return k(")", !0), this.type = "block", this.expressions = g, this;
6595
6592
  }), re("[", function() {
6596
- var b = [];
6593
+ var g = [];
6597
6594
  if (C.id !== "]")
6598
6595
  for (; ; ) {
6599
6596
  var _ = D(0);
@@ -6601,19 +6598,19 @@ function gh() {
6601
6598
  var ee = { type: "binary", value: "..", position: C.position, lhs: _ };
6602
6599
  k(".."), ee.rhs = D(0), _ = ee;
6603
6600
  }
6604
- if (b.push(_), C.id !== ",")
6601
+ if (g.push(_), C.id !== ",")
6605
6602
  break;
6606
6603
  k(",");
6607
6604
  }
6608
- return k("]", !0), this.expressions = b, this.type = "unary", this;
6609
- }), j("[", c["["], function(b) {
6605
+ return k("]", !0), this.expressions = g, this.type = "unary", this;
6606
+ }), j("[", c["["], function(g) {
6610
6607
  if (C.id === "]") {
6611
- for (var _ = b; _ && _.type === "binary" && _.value === "["; )
6608
+ for (var _ = g; _ && _.type === "binary" && _.value === "["; )
6612
6609
  _ = _.lhs;
6613
- return _.keepArray = !0, k("]"), b;
6610
+ return _.keepArray = !0, k("]"), g;
6614
6611
  } else
6615
- return this.lhs = b, this.rhs = D(c["]"]), this.type = "binary", k("]", !0), this;
6616
- }), j("^", c["^"], function(b) {
6612
+ return this.lhs = g, this.rhs = D(c["]"]), this.type = "binary", k("]", !0), this;
6613
+ }), j("^", c["^"], function(g) {
6617
6614
  k("(");
6618
6615
  for (var _ = []; ; ) {
6619
6616
  var ee = {
@@ -6623,9 +6620,9 @@ function gh() {
6623
6620
  break;
6624
6621
  k(",");
6625
6622
  }
6626
- return k(")"), this.lhs = b, this.rhs = _, this.type = "binary", this;
6623
+ return k(")"), this.lhs = g, this.rhs = _, this.type = "binary", this;
6627
6624
  });
6628
- var ie = function(b) {
6625
+ var ie = function(g) {
6629
6626
  var _ = [];
6630
6627
  if (C.id !== "}")
6631
6628
  for (; ; ) {
@@ -6636,104 +6633,104 @@ function gh() {
6636
6633
  break;
6637
6634
  k(",");
6638
6635
  }
6639
- return k("}", !0), typeof b > "u" ? (this.lhs = _, this.type = "unary") : (this.lhs = b, this.rhs = _, this.type = "binary"), this;
6636
+ return k("}", !0), typeof g > "u" ? (this.lhs = _, this.type = "unary") : (this.lhs = g, this.rhs = _, this.type = "binary"), this;
6640
6637
  };
6641
- re("{", ie), j("{", c["{"], ie), ne(":=", c[":="], function(b) {
6642
- return b.type !== "variable" ? M({
6638
+ re("{", ie), j("{", c["{"], ie), ne(":=", c[":="], function(g) {
6639
+ return g.type !== "variable" ? M({
6643
6640
  code: "S0212",
6644
6641
  stack: new Error().stack,
6645
- position: b.position,
6646
- token: b.value
6647
- }) : (this.lhs = b, this.rhs = D(c[":="] - 1), this.type = "binary", this);
6648
- }), j("@", c["@"], function(b) {
6649
- return this.lhs = b, this.rhs = D(c["@"]), this.rhs.type !== "variable" ? M({
6642
+ position: g.position,
6643
+ token: g.value
6644
+ }) : (this.lhs = g, this.rhs = D(c[":="] - 1), this.type = "binary", this);
6645
+ }), j("@", c["@"], function(g) {
6646
+ return this.lhs = g, this.rhs = D(c["@"]), this.rhs.type !== "variable" ? M({
6650
6647
  code: "S0214",
6651
6648
  stack: new Error().stack,
6652
6649
  position: this.rhs.position,
6653
6650
  token: "@"
6654
6651
  }) : (this.type = "binary", this);
6655
- }), j("#", c["#"], function(b) {
6656
- return this.lhs = b, this.rhs = D(c["#"]), this.rhs.type !== "variable" ? M({
6652
+ }), j("#", c["#"], function(g) {
6653
+ return this.lhs = g, this.rhs = D(c["#"]), this.rhs.type !== "variable" ? M({
6657
6654
  code: "S0214",
6658
6655
  stack: new Error().stack,
6659
6656
  position: this.rhs.position,
6660
6657
  token: "#"
6661
6658
  }) : (this.type = "binary", this);
6662
- }), j("?", c["?"], function(b) {
6663
- return this.type = "condition", this.condition = b, this.then = D(0), C.id === ":" && (k(":"), this.else = D(0)), this;
6664
- }), j("?:", c["?:"], function(b) {
6665
- return this.type = "condition", this.condition = JSON.parse(JSON.stringify(b)), this.then = b, this.else = D(0), this;
6659
+ }), j("?", c["?"], function(g) {
6660
+ return this.type = "condition", this.condition = g, this.then = D(0), C.id === ":" && (k(":"), this.else = D(0)), this;
6661
+ }), j("?:", c["?:"], function(g) {
6662
+ return this.type = "condition", this.condition = JSON.parse(JSON.stringify(g)), this.then = g, this.else = D(0), this;
6666
6663
  }), re("|", function() {
6667
6664
  return this.type = "transform", this.pattern = D(0), k("|"), this.update = D(0), C.id === "," && (k(","), this.delete = D(0)), k("|"), this;
6668
6665
  });
6669
- var z = function(b) {
6666
+ var z = function(g) {
6670
6667
  var _;
6671
- if (b.type === "function" && !b.predicate) {
6672
- var ee = { type: "lambda", thunk: !0, arguments: [], position: b.position };
6673
- ee.body = b, _ = ee;
6674
- } else if (b.type === "condition")
6675
- b.then = z(b.then), typeof b.else < "u" && (b.else = z(b.else)), _ = b;
6676
- else if (b.type === "block") {
6677
- var ve = b.expressions.length;
6678
- ve > 0 && (b.expressions[ve - 1] = z(b.expressions[ve - 1])), _ = b;
6668
+ if (g.type === "function" && !g.predicate) {
6669
+ var ee = { type: "lambda", thunk: !0, arguments: [], position: g.position };
6670
+ ee.body = g, _ = ee;
6671
+ } else if (g.type === "condition")
6672
+ g.then = z(g.then), typeof g.else < "u" && (g.else = z(g.else)), _ = g;
6673
+ else if (g.type === "block") {
6674
+ var ve = g.expressions.length;
6675
+ ve > 0 && (g.expressions[ve - 1] = z(g.expressions[ve - 1])), _ = g;
6679
6676
  } else
6680
- _ = b;
6677
+ _ = g;
6681
6678
  return _;
6682
- }, le = 0, pe = 0, Ue = [], he = function(b, _) {
6683
- switch (b.type) {
6679
+ }, le = 0, pe = 0, Ue = [], he = function(g, _) {
6680
+ switch (g.type) {
6684
6681
  case "name":
6685
6682
  case "wildcard":
6686
- _.level--, _.level === 0 && (typeof b.ancestor > "u" || (Ue[_.index].slot.label = b.ancestor.label), b.ancestor = _, b.tuple = !0);
6683
+ _.level--, _.level === 0 && (typeof g.ancestor > "u" || (Ue[_.index].slot.label = g.ancestor.label), g.ancestor = _, g.tuple = !0);
6687
6684
  break;
6688
6685
  case "parent":
6689
6686
  _.level++;
6690
6687
  break;
6691
6688
  case "block":
6692
- b.expressions.length > 0 && (b.tuple = !0, _ = he(b.expressions[b.expressions.length - 1], _));
6689
+ g.expressions.length > 0 && (g.tuple = !0, _ = he(g.expressions[g.expressions.length - 1], _));
6693
6690
  break;
6694
6691
  case "path":
6695
- b.tuple = !0;
6696
- var ee = b.steps.length - 1;
6697
- for (_ = he(b.steps[ee--], _); _.level > 0 && ee >= 0; )
6698
- _ = he(b.steps[ee--], _);
6692
+ g.tuple = !0;
6693
+ var ee = g.steps.length - 1;
6694
+ for (_ = he(g.steps[ee--], _); _.level > 0 && ee >= 0; )
6695
+ _ = he(g.steps[ee--], _);
6699
6696
  break;
6700
6697
  default:
6701
6698
  throw {
6702
6699
  code: "S0217",
6703
- token: b.type,
6704
- position: b.position
6700
+ token: g.type,
6701
+ position: g.position
6705
6702
  };
6706
6703
  }
6707
6704
  return _;
6708
- }, ge = function(b, _) {
6705
+ }, ge = function(g, _) {
6709
6706
  if (typeof _.seekingParent < "u" || _.type === "parent") {
6710
6707
  var ee = typeof _.seekingParent < "u" ? _.seekingParent : [];
6711
- _.type === "parent" && ee.push(_.slot), typeof b.seekingParent > "u" ? b.seekingParent = ee : Array.prototype.push.apply(b.seekingParent, ee);
6708
+ _.type === "parent" && ee.push(_.slot), typeof g.seekingParent > "u" ? g.seekingParent = ee : Array.prototype.push.apply(g.seekingParent, ee);
6712
6709
  }
6713
- }, $e = function(b) {
6714
- var _ = b.steps.length - 1, ee = b.steps[_], ve = typeof ee.seekingParent < "u" ? ee.seekingParent : [];
6710
+ }, $e = function(g) {
6711
+ var _ = g.steps.length - 1, ee = g.steps[_], ve = typeof ee.seekingParent < "u" ? ee.seekingParent : [];
6715
6712
  ee.type === "parent" && ve.push(ee.slot);
6716
6713
  for (var Se = 0; Se < ve.length; Se++) {
6717
6714
  var Ee = ve[Se];
6718
- for (_ = b.steps.length - 2; Ee.level > 0; ) {
6715
+ for (_ = g.steps.length - 2; Ee.level > 0; ) {
6719
6716
  if (_ < 0) {
6720
- typeof b.seekingParent > "u" ? b.seekingParent = [Ee] : b.seekingParent.push(Ee);
6717
+ typeof g.seekingParent > "u" ? g.seekingParent = [Ee] : g.seekingParent.push(Ee);
6721
6718
  break;
6722
6719
  }
6723
- for (var T = b.steps[_--]; _ >= 0 && T.focus && b.steps[_].focus; )
6724
- T = b.steps[_--];
6725
- Ee = he(T, Ee);
6720
+ for (var O = g.steps[_--]; _ >= 0 && O.focus && g.steps[_].focus; )
6721
+ O = g.steps[_--];
6722
+ Ee = he(O, Ee);
6726
6723
  }
6727
6724
  }
6728
- }, ce = function(b) {
6725
+ }, ce = function(g) {
6729
6726
  var _;
6730
- switch (b.type) {
6727
+ switch (g.type) {
6731
6728
  case "binary":
6732
- switch (b.value) {
6729
+ switch (g.value) {
6733
6730
  case ".":
6734
- var ee = ce(b.lhs);
6731
+ var ee = ce(g.lhs);
6735
6732
  ee.type === "path" ? _ = ee : _ = { type: "path", steps: [ee] }, ee.type === "parent" && (_.seekingParent = [ee.slot]);
6736
- var ve = ce(b.rhs);
6733
+ var ve = ce(g.rhs);
6737
6734
  ve.type === "path" ? Array.prototype.push.apply(_.steps, ve.steps) : (typeof ve.predicate < "u" && (ve.stages = ve.predicate, delete ve.predicate), _.steps.push(ve)), _.steps.filter(function(G) {
6738
6735
  if (G.type === "number" || G.type === "value")
6739
6736
  throw {
@@ -6754,38 +6751,38 @@ function gh() {
6754
6751
  Ee.type === "unary" && Ee.value === "[" && (Ee.consarray = !0), $e(_);
6755
6752
  break;
6756
6753
  case "[":
6757
- _ = ce(b.lhs);
6758
- var T = _, I = "predicate";
6759
- if (_.type === "path" && (T = _.steps[_.steps.length - 1], I = "stages"), typeof T.group < "u")
6754
+ _ = ce(g.lhs);
6755
+ var O = _, I = "predicate";
6756
+ if (_.type === "path" && (O = _.steps[_.steps.length - 1], I = "stages"), typeof O.group < "u")
6760
6757
  throw {
6761
6758
  code: "S0209",
6762
6759
  stack: new Error().stack,
6763
- position: b.position
6760
+ position: g.position
6764
6761
  };
6765
- typeof T[I] > "u" && (T[I] = []);
6766
- var $ = ce(b.rhs);
6762
+ typeof O[I] > "u" && (O[I] = []);
6763
+ var $ = ce(g.rhs);
6767
6764
  typeof $.seekingParent < "u" && ($.seekingParent.forEach((G) => {
6768
- G.level === 1 ? he(T, G) : G.level--;
6769
- }), ge(T, $)), T[I].push({ type: "filter", expr: $, position: b.position });
6765
+ G.level === 1 ? he(O, G) : G.level--;
6766
+ }), ge(O, $)), O[I].push({ type: "filter", expr: $, position: g.position });
6770
6767
  break;
6771
6768
  case "{":
6772
- if (_ = ce(b.lhs), typeof _.group < "u")
6769
+ if (_ = ce(g.lhs), typeof _.group < "u")
6773
6770
  throw {
6774
6771
  code: "S0210",
6775
6772
  stack: new Error().stack,
6776
- position: b.position
6773
+ position: g.position
6777
6774
  };
6778
6775
  _.group = {
6779
- lhs: b.rhs.map(function(G) {
6776
+ lhs: g.rhs.map(function(G) {
6780
6777
  return [ce(G[0]), ce(G[1])];
6781
6778
  }),
6782
- position: b.position
6779
+ position: g.position
6783
6780
  };
6784
6781
  break;
6785
6782
  case "^":
6786
- _ = ce(b.lhs), _.type !== "path" && (_ = { type: "path", steps: [_] });
6787
- var F = { type: "sort", position: b.position };
6788
- F.terms = b.rhs.map(function(G) {
6783
+ _ = ce(g.lhs), _.type !== "path" && (_ = { type: "path", steps: [_] });
6784
+ var F = { type: "sort", position: g.position };
6785
+ F.terms = g.rhs.map(function(G) {
6789
6786
  var ae = ce(G.expression);
6790
6787
  return ge(F, ae), {
6791
6788
  descending: G.descending,
@@ -6794,75 +6791,75 @@ function gh() {
6794
6791
  }), _.steps.push(F), $e(_);
6795
6792
  break;
6796
6793
  case ":=":
6797
- _ = { type: "bind", value: b.value, position: b.position }, _.lhs = ce(b.lhs), _.rhs = ce(b.rhs), ge(_, _.rhs);
6794
+ _ = { type: "bind", value: g.value, position: g.position }, _.lhs = ce(g.lhs), _.rhs = ce(g.rhs), ge(_, _.rhs);
6798
6795
  break;
6799
6796
  case "@":
6800
- if (_ = ce(b.lhs), T = _, _.type === "path" && (T = _.steps[_.steps.length - 1]), typeof T.stages < "u" || typeof T.predicate < "u")
6797
+ if (_ = ce(g.lhs), O = _, _.type === "path" && (O = _.steps[_.steps.length - 1]), typeof O.stages < "u" || typeof O.predicate < "u")
6801
6798
  throw {
6802
6799
  code: "S0215",
6803
6800
  stack: new Error().stack,
6804
- position: b.position
6801
+ position: g.position
6805
6802
  };
6806
- if (T.type === "sort")
6803
+ if (O.type === "sort")
6807
6804
  throw {
6808
6805
  code: "S0216",
6809
6806
  stack: new Error().stack,
6810
- position: b.position
6807
+ position: g.position
6811
6808
  };
6812
- b.keepArray && (T.keepArray = !0), T.focus = b.rhs.value, T.tuple = !0;
6809
+ g.keepArray && (O.keepArray = !0), O.focus = g.rhs.value, O.tuple = !0;
6813
6810
  break;
6814
6811
  case "#":
6815
- _ = ce(b.lhs), T = _, _.type === "path" ? T = _.steps[_.steps.length - 1] : (_ = { type: "path", steps: [_] }, typeof T.predicate < "u" && (T.stages = T.predicate, delete T.predicate)), typeof T.stages > "u" ? T.index = b.rhs.value : T.stages.push({ type: "index", value: b.rhs.value, position: b.position }), T.tuple = !0;
6812
+ _ = ce(g.lhs), O = _, _.type === "path" ? O = _.steps[_.steps.length - 1] : (_ = { type: "path", steps: [_] }, typeof O.predicate < "u" && (O.stages = O.predicate, delete O.predicate)), typeof O.stages > "u" ? O.index = g.rhs.value : O.stages.push({ type: "index", value: g.rhs.value, position: g.position }), O.tuple = !0;
6816
6813
  break;
6817
6814
  case "~>":
6818
- _ = { type: "apply", value: b.value, position: b.position }, _.lhs = ce(b.lhs), _.rhs = ce(b.rhs), _.keepArray = _.lhs.keepArray || _.rhs.keepArray;
6815
+ _ = { type: "apply", value: g.value, position: g.position }, _.lhs = ce(g.lhs), _.rhs = ce(g.rhs), _.keepArray = _.lhs.keepArray || _.rhs.keepArray;
6819
6816
  break;
6820
6817
  default:
6821
- _ = { type: b.type, value: b.value, position: b.position }, _.lhs = ce(b.lhs), _.rhs = ce(b.rhs), ge(_, _.lhs), ge(_, _.rhs);
6818
+ _ = { type: g.type, value: g.value, position: g.position }, _.lhs = ce(g.lhs), _.rhs = ce(g.rhs), ge(_, _.lhs), ge(_, _.rhs);
6822
6819
  }
6823
6820
  break;
6824
6821
  case "unary":
6825
- _ = { type: b.type, value: b.value, position: b.position }, b.value === "[" ? _.expressions = b.expressions.map(function(G) {
6822
+ _ = { type: g.type, value: g.value, position: g.position }, g.value === "[" ? _.expressions = g.expressions.map(function(G) {
6826
6823
  var ae = ce(G);
6827
6824
  return ge(_, ae), ae;
6828
- }) : b.value === "{" ? _.lhs = b.lhs.map(function(G) {
6825
+ }) : g.value === "{" ? _.lhs = g.lhs.map(function(G) {
6829
6826
  var ae = ce(G[0]);
6830
6827
  ge(_, ae);
6831
6828
  var Ce = ce(G[1]);
6832
6829
  return ge(_, Ce), [ae, Ce];
6833
- }) : (_.expression = ce(b.expression), b.value === "-" && _.expression.type === "number" ? (_ = _.expression, _.value = -_.value) : ge(_, _.expression));
6830
+ }) : (_.expression = ce(g.expression), g.value === "-" && _.expression.type === "number" ? (_ = _.expression, _.value = -_.value) : ge(_, _.expression));
6834
6831
  break;
6835
6832
  case "function":
6836
6833
  case "partial":
6837
- _ = { type: b.type, name: b.name, value: b.value, position: b.position }, _.arguments = b.arguments.map(function(G) {
6834
+ _ = { type: g.type, name: g.name, value: g.value, position: g.position }, _.arguments = g.arguments.map(function(G) {
6838
6835
  var ae = ce(G);
6839
6836
  return ge(_, ae), ae;
6840
- }), _.procedure = ce(b.procedure);
6837
+ }), _.procedure = ce(g.procedure);
6841
6838
  break;
6842
6839
  case "lambda":
6843
6840
  _ = {
6844
- type: b.type,
6845
- arguments: b.arguments,
6846
- signature: b.signature,
6847
- position: b.position
6841
+ type: g.type,
6842
+ arguments: g.arguments,
6843
+ signature: g.signature,
6844
+ position: g.position
6848
6845
  };
6849
- var q = ce(b.body);
6846
+ var q = ce(g.body);
6850
6847
  _.body = z(q);
6851
6848
  break;
6852
6849
  case "condition":
6853
- _ = { type: b.type, position: b.position }, _.condition = ce(b.condition), ge(_, _.condition), _.then = ce(b.then), ge(_, _.then), typeof b.else < "u" && (_.else = ce(b.else), ge(_, _.else));
6850
+ _ = { type: g.type, position: g.position }, _.condition = ce(g.condition), ge(_, _.condition), _.then = ce(g.then), ge(_, _.then), typeof g.else < "u" && (_.else = ce(g.else), ge(_, _.else));
6854
6851
  break;
6855
6852
  case "transform":
6856
- _ = { type: b.type, position: b.position }, _.pattern = ce(b.pattern), _.update = ce(b.update), typeof b.delete < "u" && (_.delete = ce(b.delete));
6853
+ _ = { type: g.type, position: g.position }, _.pattern = ce(g.pattern), _.update = ce(g.update), typeof g.delete < "u" && (_.delete = ce(g.delete));
6857
6854
  break;
6858
6855
  case "block":
6859
- _ = { type: b.type, position: b.position }, _.expressions = b.expressions.map(function(G) {
6856
+ _ = { type: g.type, position: g.position }, _.expressions = g.expressions.map(function(G) {
6860
6857
  var ae = ce(G);
6861
6858
  return ge(_, ae), (ae.consarray || ae.type === "path" && ae.steps[0].consarray) && (_.consarray = !0), ae;
6862
6859
  });
6863
6860
  break;
6864
6861
  case "name":
6865
- _ = { type: "path", steps: [b] }, b.keepArray && (_.keepSingletonArray = !0);
6862
+ _ = { type: "path", steps: [g] }, g.keepArray && (_.keepSingletonArray = !0);
6866
6863
  break;
6867
6864
  case "parent":
6868
6865
  _ = { type: "parent", slot: { label: "!" + le++, level: 1, index: pe++ } }, Ue.push(_);
@@ -6874,39 +6871,39 @@ function gh() {
6874
6871
  case "descendant":
6875
6872
  case "variable":
6876
6873
  case "regex":
6877
- _ = b;
6874
+ _ = g;
6878
6875
  break;
6879
6876
  case "operator":
6880
- if (b.value === "and" || b.value === "or" || b.value === "in")
6881
- b.type = "name", _ = ce(b);
6882
- else if (b.value === "?")
6883
- _ = b;
6877
+ if (g.value === "and" || g.value === "or" || g.value === "in")
6878
+ g.type = "name", _ = ce(g);
6879
+ else if (g.value === "?")
6880
+ _ = g;
6884
6881
  else
6885
6882
  throw {
6886
6883
  code: "S0201",
6887
6884
  stack: new Error().stack,
6888
- position: b.position,
6889
- token: b.value
6885
+ position: g.position,
6886
+ token: g.value
6890
6887
  };
6891
6888
  break;
6892
6889
  case "error":
6893
- _ = b, b.lhs && (_ = ce(b.lhs));
6890
+ _ = g, g.lhs && (_ = ce(g.lhs));
6894
6891
  break;
6895
6892
  default:
6896
6893
  var V = "S0206";
6897
- b.id === "(end)" && (V = "S0207");
6894
+ g.id === "(end)" && (V = "S0207");
6898
6895
  var N = {
6899
6896
  code: V,
6900
- position: b.position,
6901
- token: b.value
6897
+ position: g.position,
6898
+ token: g.value
6902
6899
  };
6903
6900
  if (f)
6904
6901
  return U.push(N), { type: "error", error: N };
6905
6902
  throw N.stack = new Error().stack, N;
6906
6903
  }
6907
- return b.keepArray && (_.keepArray = !0), _;
6904
+ return g.keepArray && (_.keepArray = !0), _;
6908
6905
  };
6909
- E = g(m), k();
6906
+ E = b(m), k();
6910
6907
  var W = D(0);
6911
6908
  if (C.id !== "(end)") {
6912
6909
  var Ae = {
@@ -6938,12 +6935,12 @@ function gh() {
6938
6935
  o: "objects",
6939
6936
  s: "strings"
6940
6937
  };
6941
- function d(g) {
6942
- for (var A = 1, m = [], f = /* @__PURE__ */ Object.create(null), C = f; A < g.length; ) {
6943
- var E = g.charAt(A);
6938
+ function d(b) {
6939
+ for (var A = 1, m = [], f = /* @__PURE__ */ Object.create(null), C = f; A < b.length; ) {
6940
+ var E = b.charAt(A);
6944
6941
  if (E === ":")
6945
6942
  break;
6946
- var O = function() {
6943
+ var T = function() {
6947
6944
  m.push(f), C = f, f = /* @__PURE__ */ Object.create(null);
6948
6945
  }, U = function(j, ne, re, ie) {
6949
6946
  for (var z = 1, le = ne; le < j.length; )
@@ -6963,19 +6960,19 @@ function gh() {
6963
6960
  case "l":
6964
6961
  // not so sure about expecting null?
6965
6962
  case "o":
6966
- f.regex = "[" + E + "m]", f.type = E, O();
6963
+ f.regex = "[" + E + "m]", f.type = E, T();
6967
6964
  break;
6968
6965
  case "a":
6969
- f.regex = "[asnblfom]", f.type = E, f.array = !0, O();
6966
+ f.regex = "[asnblfom]", f.type = E, f.array = !0, T();
6970
6967
  break;
6971
6968
  case "f":
6972
- f.regex = "f", f.type = E, O();
6969
+ f.regex = "f", f.type = E, T();
6973
6970
  break;
6974
6971
  case "j":
6975
- f.regex = "[asnblom]", f.type = E, O();
6972
+ f.regex = "[asnblom]", f.type = E, T();
6976
6973
  break;
6977
6974
  case "x":
6978
- f.regex = "[asnblfom]", f.type = E, O();
6975
+ f.regex = "[asnblfom]", f.type = E, T();
6979
6976
  break;
6980
6977
  case "-":
6981
6978
  C.context = !0, C.contextRegex = new RegExp(C.regex), C.regex += "?";
@@ -6986,22 +6983,22 @@ function gh() {
6986
6983
  C.regex += E;
6987
6984
  break;
6988
6985
  case "(":
6989
- var B = U(g, A, "(", ")"), S = g.substring(A + 1, B);
6990
- if (S.indexOf("<") === -1)
6991
- f.regex = "[" + S + "m]";
6986
+ var B = U(b, A, "(", ")"), x = b.substring(A + 1, B);
6987
+ if (x.indexOf("<") === -1)
6988
+ f.regex = "[" + x + "m]";
6992
6989
  else
6993
6990
  throw {
6994
6991
  code: "S0402",
6995
6992
  stack: new Error().stack,
6996
- value: S,
6993
+ value: x,
6997
6994
  offset: A
6998
6995
  };
6999
- f.type = "(" + S + ")", A = B, O();
6996
+ f.type = "(" + x + ")", A = B, T();
7000
6997
  break;
7001
6998
  case "<":
7002
6999
  if (C.type === "a" || C.type === "f") {
7003
- var y = U(g, A, "<", ">");
7004
- C.subtype = g.substring(A + 1, y), A = y;
7000
+ var y = U(b, A, "<", ">");
7001
+ C.subtype = b.substring(A + 1, y), A = y;
7005
7002
  } else
7006
7003
  throw {
7007
7004
  code: "S0401",
@@ -7061,7 +7058,7 @@ function gh() {
7061
7058
  };
7062
7059
  };
7063
7060
  return {
7064
- definition: g,
7061
+ definition: b,
7065
7062
  validate: function(j, ne) {
7066
7063
  var re = "";
7067
7064
  j.forEach(function(pe) {
@@ -7101,10 +7098,10 @@ function gh() {
7101
7098
  if (Ae !== pe.subtype.charAt(0))
7102
7099
  W = !1;
7103
7100
  else {
7104
- var b = he.filter(function(_) {
7101
+ var g = he.filter(function(_) {
7105
7102
  return D(_) !== Ae;
7106
7103
  });
7107
- W = b.length === 0;
7104
+ W = g.length === 0;
7108
7105
  }
7109
7106
  }
7110
7107
  }
@@ -7155,7 +7152,7 @@ function gh() {
7155
7152
  return !o(k);
7156
7153
  }).length === 0), M;
7157
7154
  }
7158
- function g(y) {
7155
+ function b(y) {
7159
7156
  return y.sequence === !0 && Array.isArray(y);
7160
7157
  }
7161
7158
  function A(y) {
@@ -7172,7 +7169,7 @@ function gh() {
7172
7169
  function E(y) {
7173
7170
  return typeof y == "object" && y !== null && C in y && "next" in y && typeof y.next == "function";
7174
7171
  }
7175
- function O(y, M) {
7172
+ function T(y, M) {
7176
7173
  if (y === M)
7177
7174
  return !0;
7178
7175
  if (typeof y == "object" && typeof M == "object" && y !== null && M !== null) {
@@ -7180,7 +7177,7 @@ function gh() {
7180
7177
  if (y.length !== M.length)
7181
7178
  return !1;
7182
7179
  for (var k = 0; k < y.length; k++)
7183
- if (!O(y[k], M[k]))
7180
+ if (!T(y[k], M[k]))
7184
7181
  return !1;
7185
7182
  return !0;
7186
7183
  }
@@ -7192,7 +7189,7 @@ function gh() {
7192
7189
  return !1;
7193
7190
  for (k = 0; k < D.length; k++) {
7194
7191
  var j = D[k];
7195
- if (!O(y[j], M[j]))
7192
+ if (!T(y[j], M[j]))
7196
7193
  return !1;
7197
7194
  }
7198
7195
  return !0;
@@ -7208,22 +7205,22 @@ function gh() {
7208
7205
  M.push(k);
7209
7206
  return M;
7210
7207
  }
7211
- function S(y) {
7208
+ function x(y) {
7212
7209
  return typeof y == "object" && y !== null ? Object.keys(y) : [];
7213
7210
  }
7214
7211
  return {
7215
7212
  isNumeric: o,
7216
7213
  isArrayOfStrings: c,
7217
7214
  isArrayOfNumbers: d,
7218
- isSequence: g,
7215
+ isSequence: b,
7219
7216
  isFunction: A,
7220
7217
  isLambda: f,
7221
7218
  isIterable: E,
7222
7219
  getFunctionArity: m,
7223
- isDeepEqual: O,
7220
+ isDeepEqual: T,
7224
7221
  stringToArray: B,
7225
7222
  isPromise: U,
7226
- keys: S
7223
+ keys: x
7227
7224
  };
7228
7225
  })();
7229
7226
  i.exports = n;
@@ -7278,8 +7275,8 @@ function yh(t) {
7278
7275
  const n = Array.isArray(e) ? e : [], o = [], c = [];
7279
7276
  for (const d of n) {
7280
7277
  if (!d || typeof d != "object") continue;
7281
- const g = d;
7282
- o.push(String(g[String(s)] ?? "")), c.push(Number(g[String(i)] ?? 0));
7278
+ const b = d;
7279
+ o.push(String(b[String(s)] ?? "")), c.push(Number(b[String(i)] ?? 0));
7283
7280
  }
7284
7281
  return {
7285
7282
  labels: o,
@@ -7462,20 +7459,20 @@ function Xs(t) {
7462
7459
  E.observe(document.documentElement), e.resizeObserver = E;
7463
7460
  return;
7464
7461
  }
7465
- const g = t, A = new ResizeObserver(() => Sn(g));
7466
- A.observe(g);
7467
- for (const E of Array.from(g.children))
7462
+ const b = t, A = new ResizeObserver(() => Sn(b));
7463
+ A.observe(b);
7464
+ for (const E of Array.from(b.children))
7468
7465
  A.observe(E);
7469
7466
  e.resizeObserver = A;
7470
- const m = () => Sn(g), f = new MutationObserver((E) => {
7471
- for (const O of E)
7472
- if (O.type === "childList")
7473
- for (const U of Array.from(O.addedNodes))
7467
+ const m = () => Sn(b), f = new MutationObserver((E) => {
7468
+ for (const T of E)
7469
+ if (T.type === "childList")
7470
+ for (const U of Array.from(T.addedNodes))
7474
7471
  U instanceof Element && A.observe(U);
7475
7472
  m();
7476
7473
  });
7477
- f.observe(g, { childList: !0, subtree: !0, characterData: !0 });
7478
- const C = g.getRootNode();
7474
+ f.observe(b, { childList: !0, subtree: !0, characterData: !0 });
7475
+ const C = b.getRootNode();
7479
7476
  C instanceof ShadowRoot && C.host && f.observe(C.host, {
7480
7477
  childList: !0,
7481
7478
  subtree: !0,
@@ -7577,8 +7574,8 @@ const po = (t) => {
7577
7574
  const o = this.getFormPublisherValue(), c = r.values.get();
7578
7575
  if (c && c.length) {
7579
7576
  let d = c.length;
7580
- for (const g of c)
7581
- o.indexOf(g) == -1 && (d -= 1);
7577
+ for (const b of c)
7578
+ o.indexOf(b) == -1 && (d -= 1);
7582
7579
  d == c.length && r.checkMode.set("allChecked"), d == 0 && r.checkMode.set("noneChecked");
7583
7580
  }
7584
7581
  c.indexOf(this.value) == -1 && this.unsetOnDisconnect() && (this.checked = null);
@@ -8318,29 +8315,29 @@ const ra = (t, e, s) => {
8318
8315
  const r = Rc(t), { values: n, keys: o } = this.dt(e, s, i);
8319
8316
  if (!Array.isArray(r)) return this.ut = o, n;
8320
8317
  const c = this.ut ??= [], d = [];
8321
- let g, A, m = 0, f = r.length - 1, C = 0, E = n.length - 1;
8318
+ let b, A, m = 0, f = r.length - 1, C = 0, E = n.length - 1;
8322
8319
  for (; m <= f && C <= E; ) if (r[m] === null) m++;
8323
8320
  else if (r[f] === null) f--;
8324
8321
  else if (c[m] === o[C]) d[C] = Gs(r[m], n[C]), m++, C++;
8325
8322
  else if (c[f] === o[E]) d[E] = Gs(r[f], n[E]), f--, E--;
8326
8323
  else if (c[m] === o[E]) d[E] = Gs(r[m], n[E]), qr(t, d[E + 1], r[m]), m++, E--;
8327
8324
  else if (c[f] === o[C]) d[C] = Gs(r[f], n[C]), qr(t, r[m], r[f]), f--, C++;
8328
- else if (g === void 0 && (g = ra(o, C, E), A = ra(c, m, f)), g.has(c[m])) if (g.has(c[f])) {
8329
- const O = A.get(o[C]), U = O !== void 0 ? r[O] : null;
8325
+ else if (b === void 0 && (b = ra(o, C, E), A = ra(c, m, f)), b.has(c[m])) if (b.has(c[f])) {
8326
+ const T = A.get(o[C]), U = T !== void 0 ? r[T] : null;
8330
8327
  if (U === null) {
8331
8328
  const B = qr(t, r[m]);
8332
8329
  Gs(B, n[C]), d[C] = B;
8333
- } else d[C] = Gs(U, n[C]), qr(t, r[m], U), r[O] = null;
8330
+ } else d[C] = Gs(U, n[C]), qr(t, r[m], U), r[T] = null;
8334
8331
  C++;
8335
8332
  } else yn(r[f]), f--;
8336
8333
  else yn(r[m]), m++;
8337
8334
  for (; C <= E; ) {
8338
- const O = qr(t, d[E + 1]);
8339
- Gs(O, n[C]), d[C++] = O;
8335
+ const T = qr(t, d[E + 1]);
8336
+ Gs(T, n[C]), d[C++] = T;
8340
8337
  }
8341
8338
  for (; m <= f; ) {
8342
- const O = r[m++];
8343
- O !== null && yn(O);
8339
+ const T = r[m++];
8340
+ T !== null && yn(T);
8344
8341
  }
8345
8342
  return this.ut = o, Fc(t, d), qt;
8346
8343
  }
@@ -8499,13 +8496,13 @@ class Vh extends ao {
8499
8496
  let o = !1;
8500
8497
  const c = {};
8501
8498
  for (const d in s) {
8502
- const g = e[d], A = s[d];
8499
+ const b = e[d], A = s[d];
8503
8500
  if (d in An) {
8504
8501
  const m = An[d];
8505
- if (g === void 0 || A === void 0) continue;
8506
- const f = m(g, A);
8502
+ if (b === void 0 || A === void 0) continue;
8503
+ const f = m(b, A);
8507
8504
  f.transform !== void 0 && (c[d] = f.value, o = !0, r.transform = `${r.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(r, f.overrideFrom));
8508
- } else g !== A && g !== void 0 && A !== void 0 && (o = !0, r[d] = g, n[d] = A);
8505
+ } else b !== A && b !== void 0 && A !== void 0 && (o = !0, r[d] = b, n[d] = A);
8509
8506
  }
8510
8507
  return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = c, o ? [r, n] : void 0;
8511
8508
  }
@@ -8624,17 +8621,17 @@ Eo.default = {
8624
8621
  r[s] = c;
8625
8622
  const d = s === "custom" ? `${n.url}|${o}-${i}` : `${o}-${i}`;
8626
8623
  if (c[d]) return We(c[d]);
8627
- const g = (n.url || "").replace("$prefix", o).replace("$name", i);
8628
- if (gs.icons[g]) {
8629
- const m = gs.icons[g];
8624
+ const b = (n.url || "").replace("$prefix", o).replace("$name", i);
8625
+ if (gs.icons[b]) {
8626
+ const m = gs.icons[b];
8630
8627
  if (/^\s*<svg[\s>]/i.test(m || ""))
8631
8628
  return c[d] = m, We(m);
8632
- delete gs.icons[g];
8629
+ delete gs.icons[b];
8633
8630
  }
8634
- if (!$i.has(g)) {
8631
+ if (!$i.has(b)) {
8635
8632
  const m = new Promise(async (f) => {
8636
8633
  try {
8637
- const C = await fetch(g);
8634
+ const C = await fetch(b);
8638
8635
  if (!C.ok) {
8639
8636
  f("");
8640
8637
  return;
@@ -8645,8 +8642,8 @@ Eo.default = {
8645
8642
  f("");
8646
8643
  return;
8647
8644
  }
8648
- const O = await C.text(), U = /^\s*<svg[\s>]/i.test(O);
8649
- f(U ? O : "");
8645
+ const T = await C.text(), U = /^\s*<svg[\s>]/i.test(T);
8646
+ f(U ? T : "");
8650
8647
  } catch {
8651
8648
  f("");
8652
8649
  }
@@ -8654,10 +8651,10 @@ Eo.default = {
8654
8651
  Bc(), f("");
8655
8652
  }
8656
8653
  });
8657
- $i.set(g, m);
8654
+ $i.set(b, m);
8658
8655
  }
8659
- const A = await $i.get(g);
8660
- if ($i.delete(g), c[d] = A || "", A && /^\s*<svg[\s>]/i.test(A) && (gs.icons[g] = A, gs.names.push(g)), gs.names.length > Jh) {
8656
+ const A = await $i.get(b);
8657
+ if ($i.delete(b), c[d] = A || "", A && /^\s*<svg[\s>]/i.test(A) && (gs.icons[b] = A, gs.names.push(b)), gs.names.length > Jh) {
8661
8658
  const m = gs.names.shift();
8662
8659
  delete gs.icons[m];
8663
8660
  }
@@ -8715,7 +8712,7 @@ function su(t, e) {
8715
8712
  function Lt(t, e, s) {
8716
8713
  let i = !1;
8717
8714
  const r = (c, d) => {
8718
- const g = tu(d), A = fo(t, g);
8715
+ const b = tu(d), A = fo(t, b);
8719
8716
  return su(A, s) ? (i = !0, "") : `${A}`;
8720
8717
  }, n = e.replace(/\$\{([^}]+)\}/g, r).replace(/\{\$([^}]+)\}/g, r).trim();
8721
8718
  if (i || !n.length)
@@ -8788,8 +8785,8 @@ function Is(t, e, s, i, r) {
8788
8785
  }, o.set(n, c)), c.onChangeHandlers.add(r), ei.add(s), Qa(), () => {
8789
8786
  const d = Xr.get(s);
8790
8787
  if (!d) return;
8791
- const g = d.get(n);
8792
- g && (g.onChangeHandlers.delete(r), g.onChangeHandlers.size === 0 && d.delete(n), d.size === 0 && (Xr.delete(s), ei.delete(s), au()));
8788
+ const b = d.get(n);
8789
+ b && (b.onChangeHandlers.delete(r), b.onChangeHandlers.size === 0 && d.delete(n), d.size === 0 && (Xr.delete(s), ei.delete(s), au()));
8793
8790
  };
8794
8791
  }
8795
8792
  const zi = {
@@ -8820,7 +8817,7 @@ function lu(t, e) {
8820
8817
  return function(o, c) {
8821
8818
  if (!o) return;
8822
8819
  or(o);
8823
- const d = `__bind_state_${c}`, g = `__bind_${c}_publisher__`, A = s ? `__bind_${c}_updating_from_publisher__` : null;
8820
+ const d = `__bind_state_${c}`, b = `__bind_${c}_publisher__`, A = s ? `__bind_${c}_updating_from_publisher__` : null;
8824
8821
  if (s) {
8825
8822
  const m = Object.getOwnPropertyDescriptor(
8826
8823
  o,
@@ -8830,8 +8827,8 @@ function lu(t, e) {
8830
8827
  get() {
8831
8828
  return m?.get ? m.get.call(this) : (!Object.prototype.hasOwnProperty.call(this, f) && E !== void 0 && (this[f] = E), this[f]);
8832
8829
  },
8833
- set(O) {
8834
- m?.set ? m.set.call(this, O) : this[f] = O, !this[C] && this[g] && this[g].set(O);
8830
+ set(T) {
8831
+ m?.set ? m.set.call(this, T) : this[f] = T, !this[C] && this[b] && this[b].set(T);
8835
8832
  },
8836
8833
  enumerable: m?.enumerable ?? !0,
8837
8834
  configurable: m?.configurable ?? !0
@@ -8843,45 +8840,45 @@ function lu(t, e) {
8843
8840
  unsubscribePublisher: null,
8844
8841
  currentPath: null
8845
8842
  });
8846
- f.unsubscribePublisher && (f.unsubscribePublisher(), f.unsubscribePublisher = null), f.cleanupWatchers.forEach((O) => O()), f.cleanupWatchers = [], f.currentPath = null;
8847
- const C = (O) => {
8848
- if (!O) {
8849
- f.unsubscribePublisher && (f.unsubscribePublisher(), f.unsubscribePublisher = null), f.currentPath = null, m[g] = null;
8843
+ f.unsubscribePublisher && (f.unsubscribePublisher(), f.unsubscribePublisher = null), f.cleanupWatchers.forEach((T) => T()), f.cleanupWatchers = [], f.currentPath = null;
8844
+ const C = (T) => {
8845
+ if (!T) {
8846
+ f.unsubscribePublisher && (f.unsubscribePublisher(), f.unsubscribePublisher = null), f.currentPath = null, m[b] = null;
8850
8847
  return;
8851
8848
  }
8852
- if (O === f.currentPath)
8849
+ if (T === f.currentPath)
8853
8850
  return;
8854
8851
  f.unsubscribePublisher && (f.unsubscribePublisher(), f.unsubscribePublisher = null);
8855
- const U = It(O);
8852
+ const U = It(T);
8856
8853
  if (!U) {
8857
- f.currentPath = null, m[g] = null;
8854
+ f.currentPath = null, m[b] = null;
8858
8855
  return;
8859
8856
  }
8860
- const B = (S) => {
8861
- s && A && (m[A] = !0), m[c] = S, s && A && (m[A] = !1);
8857
+ const B = (x) => {
8858
+ s && A && (m[A] = !0), m[c] = x, s && A && (m[A] = !1);
8862
8859
  };
8863
8860
  U.onAssign(B), f.unsubscribePublisher = () => {
8864
- U.offAssign(B), m[g] === U && (m[g] = null);
8865
- }, f.currentPath = O, m[g] = U;
8861
+ U.offAssign(B), m[b] === U && (m[b] = null);
8862
+ }, f.currentPath = T, m[b] = U;
8866
8863
  }, E = () => {
8867
8864
  if (n) {
8868
- const O = Lt(m, t, i);
8869
- if (!O.ready) {
8865
+ const T = Lt(m, t, i);
8866
+ if (!T.ready) {
8870
8867
  C(null);
8871
8868
  return;
8872
8869
  }
8873
- C(O.path);
8870
+ C(T.path);
8874
8871
  return;
8875
8872
  }
8876
8873
  C(t);
8877
8874
  };
8878
8875
  if (n)
8879
- for (const O of r) {
8876
+ for (const T of r) {
8880
8877
  const U = Is(
8881
8878
  zi.watcherStore,
8882
8879
  zi.hooked,
8883
8880
  m,
8884
- O,
8881
+ T,
8885
8882
  () => E()
8886
8883
  );
8887
8884
  f.cleanupWatchers.push(U);
@@ -8889,7 +8886,7 @@ function lu(t, e) {
8889
8886
  E();
8890
8887
  }), o.__onDisconnected__((m) => {
8891
8888
  const f = m[d];
8892
- f && (f.unsubscribePublisher && (f.unsubscribePublisher(), f.unsubscribePublisher = null), f.cleanupWatchers.forEach((C) => C()), f.cleanupWatchers = [], f.currentPath = null, m[g] = null);
8889
+ f && (f.unsubscribePublisher && (f.unsubscribePublisher(), f.unsubscribePublisher = null), f.cleanupWatchers.forEach((C) => C()), f.cleanupWatchers = [], f.currentPath = null, m[b] = null);
8893
8890
  });
8894
8891
  };
8895
8892
  }
@@ -8903,35 +8900,35 @@ function el(t, e) {
8903
8900
  }, r = Wt(s);
8904
8901
  return function(n, o) {
8905
8902
  or(n);
8906
- const c = `__publish_${o}_publisher__`, d = `__publish_${o}_value__`, g = Object.getOwnPropertyDescriptor(
8903
+ const c = `__publish_${o}_publisher__`, d = `__publish_${o}_value__`, b = Object.getOwnPropertyDescriptor(
8907
8904
  n,
8908
8905
  o
8909
- ), A = g && !g.get && !g.set ? g.value : void 0;
8906
+ ), A = b && !b.get && !b.set ? b.value : void 0;
8910
8907
  Object.defineProperty(n, o, {
8911
8908
  get() {
8912
- return g?.get ? g.get.call(this) : (!Object.prototype.hasOwnProperty.call(this, d) && A !== void 0 && (this[d] = A), this[d]);
8909
+ return b?.get ? b.get.call(this) : (!Object.prototype.hasOwnProperty.call(this, d) && A !== void 0 && (this[d] = A), this[d]);
8913
8910
  },
8914
8911
  set(m) {
8915
- g?.set ? g.set.call(this, m) : this[d] = m;
8912
+ b?.set ? b.set.call(this, m) : this[d] = m;
8916
8913
  const f = this[c];
8917
8914
  f && f.set(m);
8918
8915
  },
8919
- enumerable: g?.enumerable ?? !0,
8920
- configurable: g?.configurable ?? !0
8916
+ enumerable: b?.enumerable ?? !0,
8917
+ configurable: b?.configurable ?? !0
8921
8918
  }), n.__onConnected__((m) => {
8922
8919
  const f = m, C = `__publish_state_${o}`, E = f[C] || (f[C] = {
8923
8920
  cleanupWatchers: []
8924
- }), O = () => {
8921
+ }), T = () => {
8925
8922
  let U;
8926
8923
  if (r.length) {
8927
- const S = Lt(m, s, i);
8928
- U = S.ready ? S.path : null;
8924
+ const x = Lt(m, s, i);
8925
+ U = x.ready ? x.path : null;
8929
8926
  } else
8930
8927
  U = s;
8931
8928
  const B = U ? It(U) : void 0;
8932
8929
  if (f[c] = B ?? null, B && o in m) {
8933
- const S = f[o];
8934
- S !== void 0 && B.set(S);
8930
+ const x = f[o];
8931
+ x !== void 0 && B.set(x);
8935
8932
  }
8936
8933
  };
8937
8934
  if (E.cleanupWatchers.forEach((U) => U()), E.cleanupWatchers = [], r.length)
@@ -8942,13 +8939,13 @@ function el(t, e) {
8942
8939
  da.hooked,
8943
8940
  f,
8944
8941
  U,
8945
- O
8942
+ T
8946
8943
  )
8947
8944
  );
8948
- O();
8945
+ T();
8949
8946
  }), n.__onDisconnected__((m) => {
8950
8947
  const f = m, C = `__publish_state_${o}`, E = f[C];
8951
- E?.cleanupWatchers && E.cleanupWatchers.forEach((O) => O()), f[c] = void 0;
8948
+ E?.cleanupWatchers && E.cleanupWatchers.forEach((T) => T()), f[c] = void 0;
8952
8949
  });
8953
8950
  };
8954
8951
  }
@@ -8991,69 +8988,69 @@ function sl(t, e) {
8991
8988
  or(r);
8992
8989
  const c = `__onAssign_state_${n}__`;
8993
8990
  let d;
8994
- r.__onConnected__((g) => {
8995
- const A = g[c] || (g[c] = {
8991
+ r.__onConnected__((b) => {
8992
+ const A = b[c] || (b[c] = {
8996
8993
  cleanupWatchers: [],
8997
8994
  configurations: []
8998
8995
  });
8999
- A.cleanupWatchers.forEach((O) => O()), A.cleanupWatchers = [], A.configurations.forEach((O) => {
9000
- O.unsubscribePublisher && O.unsubscribePublisher();
8996
+ A.cleanupWatchers.forEach((T) => T()), A.cleanupWatchers = [], A.configurations.forEach((T) => {
8997
+ T.unsubscribePublisher && T.unsubscribePublisher();
9001
8998
  }), A.configurations = [];
9002
8999
  const m = [], f = [];
9003
- for (let O = 0; O < e.length; O++) {
9004
- const U = s[O], B = /* @__PURE__ */ new Set(), S = (y) => {
9005
- m[O] = y, uu(m, e.length, t) && B.forEach((M) => M(...m));
9000
+ for (let T = 0; T < e.length; T++) {
9001
+ const U = s[T], B = /* @__PURE__ */ new Set(), x = (y) => {
9002
+ m[T] = y, uu(m, e.length, t) && B.forEach((M) => M(...m));
9006
9003
  };
9007
9004
  f.push({
9008
9005
  publisher: null,
9009
- onAssign: S,
9006
+ onAssign: x,
9010
9007
  callbacks: B,
9011
9008
  unsubscribePublisher: null,
9012
9009
  pathConfig: U,
9013
- index: O
9010
+ index: T
9014
9011
  });
9015
9012
  }
9016
- const C = (O, U) => {
9017
- if (O.unsubscribePublisher && (O.unsubscribePublisher(), O.unsubscribePublisher = null), m[O.index] = null, O.publisher = null, !U)
9013
+ const C = (T, U) => {
9014
+ if (T.unsubscribePublisher && (T.unsubscribePublisher(), T.unsubscribePublisher = null), m[T.index] = null, T.publisher = null, !U)
9018
9015
  return;
9019
9016
  const B = It(U);
9020
- B && (B.onAssign(O.onAssign), O.unsubscribePublisher = () => {
9021
- B.offAssign(O.onAssign), O.publisher === B && (O.publisher = null);
9022
- }, O.publisher = B);
9017
+ B && (B.onAssign(T.onAssign), T.unsubscribePublisher = () => {
9018
+ B.offAssign(T.onAssign), T.publisher === B && (T.publisher = null);
9019
+ }, T.publisher = B);
9023
9020
  }, E = () => {
9024
- for (const O of f)
9025
- if (O.pathConfig.isDynamic) {
9021
+ for (const T of f)
9022
+ if (T.pathConfig.isDynamic) {
9026
9023
  const U = Lt(
9027
- g,
9028
- O.pathConfig.originalPath,
9024
+ b,
9025
+ T.pathConfig.originalPath,
9029
9026
  i
9030
9027
  );
9031
9028
  if (!U.ready) {
9032
- C(O, null);
9029
+ C(T, null);
9033
9030
  continue;
9034
9031
  }
9035
- C(O, U.path);
9032
+ C(T, U.path);
9036
9033
  } else
9037
- C(O, O.pathConfig.originalPath);
9034
+ C(T, T.pathConfig.originalPath);
9038
9035
  };
9039
- for (const O of f)
9040
- if (O.pathConfig.isDynamic)
9041
- for (const U of O.pathConfig.dynamicDependencies) {
9036
+ for (const T of f)
9037
+ if (T.pathConfig.isDynamic)
9038
+ for (const U of T.pathConfig.dynamicDependencies) {
9042
9039
  const B = Is(
9043
9040
  pa.watcherStore,
9044
9041
  pa.hooked,
9045
- g,
9042
+ b,
9046
9043
  U,
9047
9044
  () => E()
9048
9045
  );
9049
9046
  A.cleanupWatchers.push(B);
9050
9047
  }
9051
- d = o.value.bind(g);
9052
- for (const O of f)
9053
- O.callbacks.add(d);
9048
+ d = o.value.bind(b);
9049
+ for (const T of f)
9050
+ T.callbacks.add(d);
9054
9051
  E(), A.configurations = f;
9055
- }), r.__onDisconnected__((g) => {
9056
- const A = g[c];
9052
+ }), r.__onDisconnected__((b) => {
9053
+ const A = b[c];
9057
9054
  A && (A.cleanupWatchers.forEach((m) => m()), A.cleanupWatchers = [], A.configurations.forEach((m) => {
9058
9055
  m.unsubscribePublisher && m.unsubscribePublisher(), m.callbacks.delete(d);
9059
9056
  }), A.configurations = []);
@@ -9086,7 +9083,7 @@ function mu() {
9086
9083
  o?.call(this), this[e]();
9087
9084
  }, s.value = function(...c) {
9088
9085
  let d = /* @__PURE__ */ new Set();
9089
- const g = () => {
9086
+ const b = () => {
9090
9087
  i++;
9091
9088
  const m = i;
9092
9089
  window.queueMicrotask(() => {
@@ -9094,14 +9091,14 @@ function mu() {
9094
9091
  });
9095
9092
  };
9096
9093
  d.forEach((m) => {
9097
- m.offAssign(g);
9094
+ m.offAssign(b);
9098
9095
  }), Fa();
9099
9096
  const A = r.apply(this, c);
9100
9097
  return d = Ra() || /* @__PURE__ */ new Set(), d.forEach((m) => {
9101
- m.onAssign(g, !1);
9098
+ m.onAssign(b, !1);
9102
9099
  }), this.__removeAutoSubscribe__ = () => {
9103
9100
  d.forEach((m) => {
9104
- m.offAssign(g);
9101
+ m.offAssign(b);
9105
9102
  });
9106
9103
  }, A;
9107
9104
  };
@@ -9190,8 +9187,8 @@ const ye = class ye {
9190
9187
  let n = r.get(s);
9191
9188
  if (!n) {
9192
9189
  const o = Ye.scopeAttributeNames(s), c = /* @__PURE__ */ new Set(), d = new MutationObserver(() => {
9193
- for (const g of c)
9194
- ye.subscriptions.has(g) && ye.pendingRefresh.add(g);
9190
+ for (const b of c)
9191
+ ye.subscriptions.has(b) && ye.pendingRefresh.add(b);
9195
9192
  ye.scheduleRefresh();
9196
9193
  });
9197
9194
  d.observe(e, {
@@ -9212,14 +9209,14 @@ const ye = class ye {
9212
9209
  if (!i) {
9213
9210
  const n = /* @__PURE__ */ new Map(), o = new MutationObserver((c) => {
9214
9211
  const d = /* @__PURE__ */ new Set();
9215
- for (const g of c)
9216
- g.removedNodes.forEach((A) => {
9212
+ for (const b of c)
9213
+ b.removedNodes.forEach((A) => {
9217
9214
  A instanceof Element && d.add(A);
9218
- }), g.addedNodes.forEach((A) => {
9215
+ }), b.addedNodes.forEach((A) => {
9219
9216
  A instanceof Element && d.add(A);
9220
9217
  });
9221
- for (const g of d) {
9222
- const A = n.get(g);
9218
+ for (const b of d) {
9219
+ const A = n.get(b);
9223
9220
  if (A)
9224
9221
  for (const m of [...A])
9225
9222
  ye.subscriptions.has(m) && ye.bindSubscription(m);
@@ -10465,9 +10462,9 @@ let Pe = class extends Q {
10465
10462
  if (s?.toasts.length) {
10466
10463
  const c = { ...o };
10467
10464
  for (const d of s.toasts) {
10468
- const g = { ...d };
10469
- if (c.id = g.id = 0, /*!currentToast.preserve && */
10470
- ut.shallowEqual(c, g))
10465
+ const b = { ...d };
10466
+ if (c.id = b.id = 0, /*!currentToast.preserve && */
10467
+ ut.shallowEqual(c, b))
10471
10468
  return null;
10472
10469
  }
10473
10470
  }
@@ -11170,9 +11167,9 @@ let Kt = class extends vo(Mt(li(Q))) {
11170
11167
  }
11171
11168
  const r = this.templateList.length;
11172
11169
  let n = -1;
11173
- const o = this.hasAttribute("extractValues"), c = this.renderSeparator(), d = i?.length || 0, g = i?.slice(this.offset, this.offset + this.limit);
11170
+ const o = this.hasAttribute("extractValues"), c = this.renderSeparator(), d = i?.length || 0, b = i?.slice(this.offset, this.offset + this.limit);
11174
11171
  return R`
11175
- ${g?.map((A, m) => {
11172
+ ${b?.map((A, m) => {
11176
11173
  if (A == null) return te;
11177
11174
  let f = m, C = null;
11178
11175
  if (typeof A == "object" && !Array.isArray(A)) {
@@ -11181,10 +11178,10 @@ let Kt = class extends vo(Mt(li(Q))) {
11181
11178
  y && typeof y == "string" && (C = this.templateParts[y]);
11182
11179
  }
11183
11180
  if (f == "_sonic_http_response_" || typeof f != "string" && typeof f != "number") return te;
11184
- const E = m >= d - 1, O = m % 2, U = this.publisher[f], B = {
11181
+ const E = m >= d - 1, T = m % 2, U = this.publisher[f], B = {
11185
11182
  key: f,
11186
- even: O == 0,
11187
- odd: O == 1,
11183
+ even: T == 0,
11184
+ odd: T == 1,
11188
11185
  onlyChild: d == 1,
11189
11186
  firstChild: m == 0,
11190
11187
  lastChild: E
@@ -11193,12 +11190,12 @@ let Kt = class extends vo(Mt(li(Q))) {
11193
11190
  ...U._metadata_.get(),
11194
11191
  ...B
11195
11192
  };
11196
- const S = this.handleProgrammaticTemplates(
11193
+ const x = this.handleProgrammaticTemplates(
11197
11194
  A,
11198
11195
  B,
11199
11196
  f
11200
11197
  );
11201
- return S ? R`${S}${E ? te : c}` : (n++, C && (n = -1), R`
11198
+ return x ? R`${x}${E ? te : c}` : (n++, C && (n = -1), R`
11202
11199
  <sonic-subscriber
11203
11200
  ?debug=${this.defferedDebug === !0}
11204
11201
  .bindPublisher=${function() {
@@ -11387,9 +11384,9 @@ let ot = class extends Mt(Q) {
11387
11384
  let r = this.dataProviderExpression.replace("$offset", e + "").replace("$limit", this.limit + "");
11388
11385
  const n = r.split("?");
11389
11386
  let o = n.shift();
11390
- const c = new URLSearchParams(n.join("?")), d = this.filterPublisher?.get(), g = this.filteredFields.split(" ");
11387
+ const c = new URLSearchParams(n.join("?")), d = this.filterPublisher?.get(), b = this.filteredFields.split(" ");
11391
11388
  for (const m in d)
11392
- this.filteredFields && g.includes(m) || d[m] == null || d[m] == "" || c.set(m, d[m]);
11389
+ this.filteredFields && b.includes(m) || d[m] == null || d[m] == "" || c.set(m, d[m]);
11393
11390
  this.searchHash || (this.searchHash = c.toString()), o = o + "?" + c.toString(), r = r + "_item_from_queue_" + this.instanceId, this.listDataProviders.push(r);
11394
11391
  const A = [
11395
11392
  ...this.props,
@@ -11523,11 +11520,11 @@ let Ms = class extends Mt(Q) {
11523
11520
  ), c = o ? we.getInstance().get(o) : null;
11524
11521
  let d = {};
11525
11522
  c && (d = c.get());
11526
- let g = null;
11523
+ let b = null;
11527
11524
  const A = this.getAncestorAttributeValue("dataProvider"), m = this.endPoint || A, f = async () => {
11528
11525
  const E = { ...n };
11529
11526
  if (delete E.needsCaptchaValidation, delete d.needsCaptchaValidation, r)
11530
- g = await this.api?.submitFormData(
11527
+ b = await this.api?.submitFormData(
11531
11528
  m,
11532
11529
  E,
11533
11530
  i,
@@ -11536,13 +11533,13 @@ let Ms = class extends Mt(Q) {
11536
11533
  else
11537
11534
  switch (i) {
11538
11535
  case "put":
11539
- g = await this.api?.put(m, E, d);
11536
+ b = await this.api?.put(m, E, d);
11540
11537
  break;
11541
11538
  case "patch":
11542
- g = await this.api?.patch(m, E, d);
11539
+ b = await this.api?.patch(m, E, d);
11543
11540
  break;
11544
11541
  case "delete":
11545
- g = await this.api?.delete(m, E, d);
11542
+ b = await this.api?.delete(m, E, d);
11546
11543
  break;
11547
11544
  case "get":
11548
11545
  const y = new URLSearchParams();
@@ -11550,36 +11547,36 @@ let Ms = class extends Mt(Q) {
11550
11547
  for (const k in E)
11551
11548
  y.append(k, E[k]);
11552
11549
  const M = "?" + y.toString();
11553
- g = await this.api?.get(m + M, d);
11550
+ b = await this.api?.get(m + M, d);
11554
11551
  break;
11555
11552
  default:
11556
- g = await this.api?.post(m, E, d);
11553
+ b = await this.api?.post(m, E, d);
11557
11554
  break;
11558
11555
  }
11559
- lt.hide(), g ? g._sonic_http_response_ && !g._sonic_http_response_.ok && Object.keys(g).length === 1 && (g.messages = [{ content: "Network Error", status: "error" }]) : g = {
11556
+ lt.hide(), b ? b._sonic_http_response_ && !b._sonic_http_response_.ok && Object.keys(b).length === 1 && (b.messages = [{ content: "Network Error", status: "error" }]) : b = {
11560
11557
  messages: [{ content: "Network Error", status: "error" }]
11561
11558
  };
11562
- const O = this.getAncestorAttributeValue(
11559
+ const T = this.getAncestorAttributeValue(
11563
11560
  "clearedDataOnSuccess"
11564
11561
  );
11565
- O && O.split(" ").forEach(
11562
+ T && T.split(" ").forEach(
11566
11563
  (y) => we.get(y).set({})
11567
11564
  );
11568
11565
  const U = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username", B = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
11569
11566
  this.api?.lastResult?.ok && E[U] && E[B] && this.saveCredentials(
11570
11567
  E[U],
11571
11568
  E[B]
11572
- ), this.submitResultKey && (g = ut.traverse(
11573
- g,
11569
+ ), this.submitResultKey && (b = ut.traverse(
11570
+ b,
11574
11571
  this.submitResultKey.split("."),
11575
11572
  !0
11576
11573
  ));
11577
- const S = this.getAncestorAttributeValue(
11574
+ const x = this.getAncestorAttributeValue(
11578
11575
  "submitResultDataProvider"
11579
11576
  );
11580
- S && we.get(S).set(g), this.disabled = !1, this.dispatchEvent(
11577
+ x && we.get(x).set(b), this.disabled = !1, this.dispatchEvent(
11581
11578
  new CustomEvent("submit", {
11582
- detail: g,
11579
+ detail: b,
11583
11580
  bubbles: !0,
11584
11581
  composed: !0
11585
11582
  })
@@ -11590,8 +11587,8 @@ let Ms = class extends Mt(Q) {
11590
11587
  );
11591
11588
  if (C) {
11592
11589
  C.captchaToken.set("request_token");
11593
- const E = (O) => {
11594
- O != "request_token" ? (f(), C.captchaToken.offAssign(E)) : (lt.hide(), this.disabled = !1);
11590
+ const E = (T) => {
11591
+ T != "request_token" ? (f(), C.captchaToken.offAssign(E)) : (lt.hide(), this.disabled = !1);
11595
11592
  };
11596
11593
  C.captchaToken.onAssign(E);
11597
11594
  } else
@@ -11867,7 +11864,7 @@ let ti = class extends Mt(li(Q)) {
11867
11864
  }
11868
11865
  render() {
11869
11866
  let t = this.state;
11870
- (!Array.isArray(t) && ut.isObject(t) || t === void 0) && (t = "");
11867
+ (!Array.isArray(t) && ut.isObject(t) || t == null) && (t = "");
11871
11868
  const e = this.handleStates(t);
11872
11869
  if (e.length > 0)
11873
11870
  return R`${e}`;
@@ -11896,8 +11893,8 @@ let ti = class extends Mt(li(Q)) {
11896
11893
  const d = new vs(c);
11897
11894
  n = new vs(r).stringify(d.match(o));
11898
11895
  } else {
11899
- const d = new RegExp(c), g = (o + "").match(d);
11900
- g && (n = g.shift()?.replace(d, r));
11896
+ const d = new RegExp(c), b = (o + "").match(d);
11897
+ b && (n = b.shift()?.replace(d, r));
11901
11898
  }
11902
11899
  return R`<div
11903
11900
  style="display:contents"
@@ -12019,7 +12016,7 @@ function Dl(t, e) {
12019
12016
  attributeFilter: [...Dd]
12020
12017
  }), d = d.parentNode || d.host;
12021
12018
  return n.push(() => c.disconnect()), () => {
12022
- i = !0, n.forEach((g) => g());
12019
+ i = !0, n.forEach((b) => b());
12023
12020
  };
12024
12021
  }
12025
12022
  class El {
@@ -12054,8 +12051,8 @@ function Tl(t, e) {
12054
12051
  const c = function(...d) {
12055
12052
  if (s === "before")
12056
12053
  return t(this).then(() => o.apply(this, d));
12057
- const g = o.apply(this, d);
12058
- return Od(g) ? g.then((A) => t(this).then(() => A)) : t(this).then(() => g);
12054
+ const b = o.apply(this, d);
12055
+ return Od(b) ? b.then((A) => t(this).then(() => A)) : t(this).then(() => b);
12059
12056
  };
12060
12057
  n.value = c;
12061
12058
  };
@@ -12078,13 +12075,13 @@ function Vi(t) {
12078
12075
  function Ll(t, e, s) {
12079
12076
  const i = t.path, r = _a(e) ? void 0 : e, n = _a(e) ? e : s, o = {
12080
12077
  skipEmptyPlaceholder: n?.skipEmptyPlaceholder
12081
- }, c = r?.path, d = n?.triggerKey?.path, g = Wt(i), A = c ? Wt(c) : [], m = d ? Wt(d) : [], f = [
12078
+ }, c = r?.path, d = n?.triggerKey?.path, b = Wt(i), A = c ? Wt(c) : [], m = d ? Wt(d) : [], f = [
12082
12079
  .../* @__PURE__ */ new Set([
12083
- ...g,
12080
+ ...b,
12084
12081
  ...A,
12085
12082
  ...m
12086
12083
  ])
12087
- ], C = g.length > 0, E = !!c, O = n?.refetchEveryMs ?? 0, U = new El(), B = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakSet(), y = /* @__PURE__ */ new WeakMap();
12084
+ ], C = b.length > 0, E = !!c, T = n?.refetchEveryMs ?? 0, U = new El(), B = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakSet(), y = /* @__PURE__ */ new WeakMap();
12088
12085
  let M;
12089
12086
  const k = function(D, Y, j) {
12090
12087
  if (j) {
@@ -12097,11 +12094,11 @@ function Ll(t, e, s) {
12097
12094
  return;
12098
12095
  }
12099
12096
  if (!D) return;
12100
- if (S.has(D)) {
12097
+ if (x.has(D)) {
12101
12098
  y.get(D)?.add(Y);
12102
12099
  return;
12103
12100
  }
12104
- S.add(D), y.set(D, /* @__PURE__ */ new Set([Y])), or(D);
12101
+ x.add(D), y.set(D, /* @__PURE__ */ new Set([Y])), or(D);
12105
12102
  const ne = `__get_state_${Y}`;
12106
12103
  D.__onConnected__((re) => {
12107
12104
  const ie = re;
@@ -12116,16 +12113,16 @@ function Ll(t, e, s) {
12116
12113
  triggerPublisher: null,
12117
12114
  triggerInvalidateHandler: null,
12118
12115
  refetchTimeoutId: null,
12119
- refetchEveryMs: O
12120
- }, ie[ne] = z), z.cleanupOperation?.(), z.cleanupOperation = null, z.cleanupWatchers.forEach((Ae) => Ae()), z.cleanupWatchers = [], z.requestGeneration++, z.refetchEveryMs = O, wr(z);
12116
+ refetchEveryMs: T
12117
+ }, ie[ne] = z), z.cleanupOperation?.(), z.cleanupOperation = null, z.cleanupWatchers.forEach((Ae) => Ae()), z.cleanupWatchers = [], z.requestGeneration++, z.refetchEveryMs = T, wr(z);
12121
12118
  const le = () => {
12122
12119
  wr(z), !(!z.refetchEveryMs || z.refetchEveryMs <= 0) && (z.refetchTimeoutId = setTimeout(() => {
12123
12120
  z.refetchTimeoutId = null, Ue().catch(() => {
12124
12121
  });
12125
12122
  }, z.refetchEveryMs));
12126
12123
  }, pe = (Ae) => {
12127
- y.get(D)?.forEach((b) => {
12128
- ie[b] = Ae;
12124
+ y.get(D)?.forEach((g) => {
12125
+ ie[g] = Ae;
12129
12126
  });
12130
12127
  }, Ue = async () => {
12131
12128
  const Ae = C ? Lt(re, i, o) : { ready: !0, path: i };
@@ -12133,7 +12130,7 @@ function Ll(t, e, s) {
12133
12130
  pe(void 0), le();
12134
12131
  return;
12135
12132
  }
12136
- let b = null;
12133
+ let g = null;
12137
12134
  if (E && c) {
12138
12135
  const Se = Lt(
12139
12136
  re,
@@ -12145,10 +12142,10 @@ function Ll(t, e, s) {
12145
12142
  return;
12146
12143
  }
12147
12144
  const Ee = It(Se.path);
12148
- b = Cl(Ee);
12145
+ g = Cl(Ee);
12149
12146
  } else
12150
- b = wo(re);
12151
- if (!_o(b)) {
12147
+ g = wo(re);
12148
+ if (!_o(g)) {
12152
12149
  if (!E && !z.scopeWatchCleanup) {
12153
12150
  const Se = Dl(
12154
12151
  re,
@@ -12161,7 +12158,7 @@ function Ll(t, e, s) {
12161
12158
  le();
12162
12159
  return;
12163
12160
  }
12164
- const _ = ++z.requestGeneration, ve = await new Ls(b).getDetailed(Ae.path);
12161
+ const _ = ++z.requestGeneration, ve = await new Ls(g).getDetailed(Ae.path);
12165
12162
  return _ !== z.requestGeneration || (y.get(D)?.forEach((Se) => {
12166
12163
  ie[Se] = ve;
12167
12164
  }), le(), B.get(D)?.forEach((Se) => Se(re, ve))), ve;
@@ -12182,10 +12179,10 @@ function Ll(t, e, s) {
12182
12179
  );
12183
12180
  if (!Ae.ready || !Ae.path)
12184
12181
  return;
12185
- const b = It(Ae.path);
12186
- if (!b) return;
12182
+ const g = It(Ae.path);
12183
+ if (!g) return;
12187
12184
  const _ = ge;
12188
- b.onInvalidate(_), z.triggerPublisher = b, z.triggerInvalidateHandler = _;
12185
+ g.onInvalidate(_), z.triggerPublisher = g, z.triggerInvalidateHandler = _;
12189
12186
  }, ce = () => {
12190
12187
  if (!E || !c) return;
12191
12188
  Vi(z);
@@ -12198,37 +12195,37 @@ function Ll(t, e, s) {
12198
12195
  pe(void 0);
12199
12196
  return;
12200
12197
  }
12201
- const b = It(Ae.path);
12202
- if (!b) {
12198
+ const g = It(Ae.path);
12199
+ if (!g) {
12203
12200
  pe(void 0);
12204
12201
  return;
12205
12202
  }
12206
12203
  const _ = ge;
12207
- b.onInternalMutation(_), z.configPublisher = b, z.configMutationHandler = _;
12204
+ g.onInternalMutation(_), z.configPublisher = g, z.configMutationHandler = _;
12208
12205
  }, W = () => {
12209
12206
  $e(), ce(), E || ge();
12210
12207
  };
12211
12208
  if (E || m.length) {
12212
12209
  for (const Ae of f) {
12213
- const b = Is(
12210
+ const g = Is(
12214
12211
  Os.watcherStore,
12215
12212
  Os.hooked,
12216
12213
  re,
12217
12214
  Ae,
12218
12215
  () => W()
12219
12216
  );
12220
- z.cleanupWatchers.push(b);
12217
+ z.cleanupWatchers.push(g);
12221
12218
  }
12222
12219
  W();
12223
12220
  } else {
12224
12221
  const Ae = () => {
12225
12222
  if (C)
12226
- for (const b of g) {
12223
+ for (const g of b) {
12227
12224
  const _ = Is(
12228
12225
  Os.watcherStore,
12229
12226
  Os.hooked,
12230
12227
  re,
12231
- b,
12228
+ g,
12232
12229
  ge
12233
12230
  );
12234
12231
  z.cleanupWatchers.push(_);
@@ -12249,7 +12246,7 @@ function Ll(t, e, s) {
12249
12246
  };
12250
12247
  return k.refetch = (D) => U.run(D), k.registerResultHandler = (D, Y) => {
12251
12248
  let j = B.get(D);
12252
- j || (j = /* @__PURE__ */ new Set(), B.set(D, j)), j.add(Y), S.has(D) || (M ??= `__get_handler_${Ol++}`, k(D, M));
12249
+ j || (j = /* @__PURE__ */ new Set(), B.set(D, j)), j.add(Y), x.has(D) || (M ??= `__get_handler_${Ol++}`, k(D, M));
12253
12250
  }, k;
12254
12251
  }
12255
12252
  function _a(t) {
@@ -12273,15 +12270,15 @@ function Id(t) {
12273
12270
  }
12274
12271
  function So(t, e) {
12275
12272
  return function(s, i, r, n) {
12276
- const o = s.path, c = i.path, d = Sa(r) ? void 0 : r, g = Sa(r) ? r : n, A = d?.path, m = g?.triggerKey?.path, f = Wt(o), C = Wt(c), E = A ? Wt(A) : [], O = m ? Wt(m) : [], U = [
12273
+ const o = s.path, c = i.path, d = Sa(r) ? void 0 : r, b = Sa(r) ? r : n, A = d?.path, m = b?.triggerKey?.path, f = Wt(o), C = Wt(c), E = A ? Wt(A) : [], T = m ? Wt(m) : [], U = [
12277
12274
  .../* @__PURE__ */ new Set([
12278
12275
  ...f,
12279
12276
  ...C,
12280
12277
  ...E,
12281
- ...O
12278
+ ...T
12282
12279
  ])
12283
- ], B = f.length > 0, S = !!A, y = g?.refetchEveryMs ?? 0, M = g?.skipIfBodyMissing ?? !0, k = g?.autoPostOnBodyMutation ?? !0, D = {
12284
- skipEmptyPlaceholder: g?.skipEmptyPlaceholder
12280
+ ], B = f.length > 0, x = !!A, y = b?.refetchEveryMs ?? 0, M = b?.skipIfBodyMissing ?? !0, k = b?.autoPostOnBodyMutation ?? !0, D = {
12281
+ skipEmptyPlaceholder: b?.skipEmptyPlaceholder
12285
12282
  }, Y = `__${t.toLowerCase()}_state_`, j = new El(), ne = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), ie = /* @__PURE__ */ new WeakMap();
12286
12283
  let z;
12287
12284
  const le = function(pe, Ue, he) {
@@ -12325,14 +12322,14 @@ function So(t, e) {
12325
12322
  W.refetchTimeoutId = null, _().catch(() => {
12326
12323
  });
12327
12324
  }, W.refetchEveryMs));
12328
- }, b = ($) => {
12325
+ }, g = ($) => {
12329
12326
  ie.get(pe)?.forEach((F) => {
12330
12327
  ce[F] = $;
12331
12328
  });
12332
12329
  }, _ = async () => {
12333
12330
  const $ = B ? Lt($e, o, D) : { ready: !0, path: o };
12334
12331
  if (!$.ready || !$.path) {
12335
- b(void 0), Ae();
12332
+ g(void 0), Ae();
12336
12333
  return;
12337
12334
  }
12338
12335
  const F = Lt(
@@ -12341,7 +12338,7 @@ function So(t, e) {
12341
12338
  D
12342
12339
  );
12343
12340
  if (!F.ready || !F.path) {
12344
- b(void 0), Ae();
12341
+ g(void 0), Ae();
12345
12342
  return;
12346
12343
  }
12347
12344
  const q = It(F.path), V = Id(q);
@@ -12350,14 +12347,14 @@ function So(t, e) {
12350
12347
  return;
12351
12348
  }
12352
12349
  let N = null;
12353
- if (S && A) {
12350
+ if (x && A) {
12354
12351
  const me = Lt(
12355
12352
  $e,
12356
12353
  A,
12357
12354
  D
12358
12355
  );
12359
12356
  if (!me.ready || !me.path) {
12360
- b(void 0), Ae();
12357
+ g(void 0), Ae();
12361
12358
  return;
12362
12359
  }
12363
12360
  const fe = It(me.path);
@@ -12365,7 +12362,7 @@ function So(t, e) {
12365
12362
  } else
12366
12363
  N = wo($e);
12367
12364
  if (!_o(N)) {
12368
- if (!S && !W.scopeWatchCleanup) {
12365
+ if (!x && !W.scopeWatchCleanup) {
12369
12366
  const me = Dl(
12370
12367
  $e,
12371
12368
  ve
@@ -12384,7 +12381,7 @@ function So(t, e) {
12384
12381
  } catch (me) {
12385
12382
  throw G === W.requestGeneration && ne.get(pe)?.forEach((fe) => fe($e, void 0)), me;
12386
12383
  }
12387
- return G !== W.requestGeneration || (b(Ce), Ae(), ne.get(pe)?.forEach((me) => me($e, Ce))), Ce;
12384
+ return G !== W.requestGeneration || (g(Ce), Ae(), ne.get(pe)?.forEach((me) => me($e, Ce))), Ce;
12388
12385
  }, ee = kl(_), ve = () => {
12389
12386
  ee().catch(() => {
12390
12387
  });
@@ -12420,8 +12417,8 @@ function So(t, e) {
12420
12417
  if (!F) return;
12421
12418
  const q = ve;
12422
12419
  F.onInvalidate(q), W.triggerPublisher = F, W.triggerInvalidateHandler = q;
12423
- }, T = () => {
12424
- if (!S || !A) return;
12420
+ }, O = () => {
12421
+ if (!x || !A) return;
12425
12422
  Vi(W);
12426
12423
  const $ = Lt(
12427
12424
  $e,
@@ -12429,20 +12426,20 @@ function So(t, e) {
12429
12426
  D
12430
12427
  );
12431
12428
  if (!$.ready || !$.path) {
12432
- b(void 0);
12429
+ g(void 0);
12433
12430
  return;
12434
12431
  }
12435
12432
  const F = It($.path);
12436
12433
  if (!F) {
12437
- b(void 0);
12434
+ g(void 0);
12438
12435
  return;
12439
12436
  }
12440
12437
  const q = ve;
12441
12438
  F.onInternalMutation(q), W.configPublisher = F, W.configMutationHandler = q;
12442
12439
  }, I = () => {
12443
- Se(), Ee(), T(), W.autoPostOnBodyMutation && ve();
12440
+ Se(), Ee(), O(), W.autoPostOnBodyMutation && ve();
12444
12441
  };
12445
- if (S || C.length || O.length) {
12442
+ if (x || C.length || T.length) {
12446
12443
  for (const $ of U) {
12447
12444
  const F = Is(
12448
12445
  Os.watcherStore,
@@ -12695,9 +12692,9 @@ class hp {
12695
12692
  for (const m of o)
12696
12693
  !Object.prototype.hasOwnProperty.call(r, m) && c[m] && (d[m] = c[m]);
12697
12694
  r.nodes || (r.nodes = []);
12698
- const g = i.child.nodes;
12699
- if (g)
12700
- for (const m of g)
12695
+ const b = i.child.nodes;
12696
+ if (b)
12697
+ for (const m of b)
12701
12698
  r.nodes.push(m);
12702
12699
  const A = i.parent.nodes?.indexOf(i.child) ?? -1;
12703
12700
  A != -1 && (i.parent.nodes?.splice(A, 1), i.parent.nodes?.splice(A, 0, r));
@@ -17260,20 +17257,20 @@ let Te = class extends Mt(Q) {
17260
17257
  return new Promise((e) => {
17261
17258
  const { quartOut: s, linear: i, translateY: r, durationIn: n, durationOut: o, quadOut: c } = this._animationConfig, d = this._modalElement;
17262
17259
  if (!d) return e();
17263
- const g = t === "in", A = g ? n : o, m = !this.fullScreen && g ? 100 : 0;
17264
- this.fullScreen || (g ? this.style.setProperty("--sc-_backdrop-opacity", "0.8") : setTimeout(() => {
17260
+ const b = t === "in", A = b ? n : o, m = !this.fullScreen && b ? 100 : 0;
17261
+ this.fullScreen || (b ? this.style.setProperty("--sc-_backdrop-opacity", "0.8") : setTimeout(() => {
17265
17262
  this.style.setProperty("--sc-_backdrop-opacity", "0");
17266
17263
  }, 150));
17267
17264
  const f = [];
17268
17265
  this.effect === "slide" && f.push(
17269
17266
  d.animate(
17270
17267
  [
17271
- { transform: g ? r : "translateY(0)" },
17272
- { transform: g ? "translateY(0)" : r }
17268
+ { transform: b ? r : "translateY(0)" },
17269
+ { transform: b ? "translateY(0)" : r }
17273
17270
  ],
17274
17271
  {
17275
17272
  duration: A,
17276
- easing: g ? s : c,
17273
+ easing: b ? s : c,
17277
17274
  fill: "both",
17278
17275
  delay: m
17279
17276
  }
@@ -17282,7 +17279,7 @@ let Te = class extends Mt(Q) {
17282
17279
  const C = this.effect === "none";
17283
17280
  f.push(
17284
17281
  d.animate(
17285
- [{ opacity: g ? 0 : 1 }, { opacity: g ? 1 : 0 }],
17282
+ [{ opacity: b ? 0 : 1 }, { opacity: b ? 1 : 0 }],
17286
17283
  {
17287
17284
  duration: C ? 0 : A,
17288
17285
  easing: i,