@oslokommune/punkt-react 12.3.10 → 12.3.12

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.
@@ -37,7 +37,7 @@
37
37
  var zm = (e, t, n) => t in e ? Wm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
38
38
  var nr = (e, t, n) => zm(e, typeof t != "symbol" ? t + "" : t, n);
39
39
  import * as Vm from "react";
40
- import xe, { forwardRef as Ne, createContext as Ym, useState as Ve, useContext as Gm, useEffect as oa, Fragment as mo, isValidElement as ta, useRef as ga, cloneElement as Km } from "react";
40
+ import xe, { forwardRef as Ne, createContext as Gm, useState as Ve, useContext as Ym, useEffect as oa, Fragment as mo, isValidElement as ta, useRef as ga, cloneElement as Km } from "react";
41
41
  import { Link as lu } from "react-router-dom";
42
42
  function Jm(e, t) {
43
43
  for (var n = 0; n < t.length; n++) {
@@ -130,7 +130,7 @@ function Qm() {
130
130
  // with.
131
131
  w.$$typeof === j || w.getModuleId !== void 0));
132
132
  }
133
- function G(w, M, H) {
133
+ function Y(w, M, H) {
134
134
  var Z = w.displayName;
135
135
  if (Z)
136
136
  return Z;
@@ -170,7 +170,7 @@ function Qm() {
170
170
  var H = w;
171
171
  return V(H._context) + ".Provider";
172
172
  case d:
173
- return G(w, w.render, "ForwardRef");
173
+ return Y(w, w.render, "ForwardRef");
174
174
  case v:
175
175
  var Z = w.displayName || null;
176
176
  return Z !== null ? Z : L(w.type) || "Memo";
@@ -374,7 +374,7 @@ function Qm() {
374
374
  return "";
375
375
  }
376
376
  var ke = Object.prototype.hasOwnProperty, je = {}, Ce = T.ReactDebugCurrentFrame;
377
- function Gn(w) {
377
+ function Yn(w) {
378
378
  if (w) {
379
379
  var M = w._owner, H = Pt(w.type, w._source, M ? M.type : null);
380
380
  Ce.setExtraStackFrame(H);
@@ -396,7 +396,7 @@ function Qm() {
396
396
  } catch (Te) {
397
397
  ae = Te;
398
398
  }
399
- ae && !(ae instanceof Error) && (Gn(ve), F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Z || "React class", H, pe, typeof ae), Gn(null)), ae instanceof Error && !(ae.message in je) && (je[ae.message] = !0, Gn(ve), F("Failed %s type: %s", H, ae.message), Gn(null));
399
+ ae && !(ae instanceof Error) && (Yn(ve), F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Z || "React class", H, pe, typeof ae), Yn(null)), ae instanceof Error && !(ae.message in je) && (je[ae.message] = !0, Yn(ve), F("Failed %s type: %s", H, ae.message), Yn(null));
400
400
  }
401
401
  }
402
402
  }
@@ -504,7 +504,7 @@ function Qm() {
504
504
  value: ve
505
505
  }), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
506
506
  };
507
- function Yi(w, M, H, Z, ve) {
507
+ function Gi(w, M, H, Z, ve) {
508
508
  {
509
509
  var me, pe = {}, ae = null, Xe = null;
510
510
  H !== void 0 && (ht(H), ae = "" + H), Ui(M) && (ht(M.key), ae = "" + M.key), kt(M) && (Xe = M.ref, Wi(M, ve));
@@ -547,7 +547,7 @@ Check the render method of \`` + w + "`.";
547
547
  return "";
548
548
  }
549
549
  }
550
- function Gi(w) {
550
+ function Yi(w) {
551
551
  return "";
552
552
  }
553
553
  var Ba = {};
@@ -576,7 +576,7 @@ Check the top-level render call using <` + H + ">.");
576
576
  w && w._owner && w._owner !== Er.current && (Z = " It was passed a child from " + L(w._owner.type) + "."), Tt(w), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, Z), Tt(null);
577
577
  }
578
578
  }
579
- function Yt(w, M) {
579
+ function Gt(w, M) {
580
580
  {
581
581
  if (typeof w != "object")
582
582
  return;
@@ -639,12 +639,12 @@ Check the top-level render call using <` + H + ">.");
639
639
  if (!pe) {
640
640
  var ae = "";
641
641
  (w === void 0 || typeof w == "object" && w !== null && Object.keys(w).length === 0) && (ae += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
642
- var Xe = Gi();
642
+ var Xe = Yi();
643
643
  Xe ? ae += Xe : ae += $r();
644
644
  var Te;
645
645
  w === null ? Te = "null" : Vt(w) ? Te = "array" : w !== void 0 && w.$$typeof === t ? (Te = "<" + (L(w.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof w, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, ae);
646
646
  }
647
- var Fe = Yi(w, M, H, ve, me);
647
+ var Fe = Gi(w, M, H, ve, me);
648
648
  if (Fe == null)
649
649
  return Fe;
650
650
  if (pe) {
@@ -653,12 +653,12 @@ Check the top-level render call using <` + H + ">.");
653
653
  if (Z)
654
654
  if (Vt(ft)) {
655
655
  for (var He = 0; He < ft.length; He++)
656
- Yt(ft[He], w);
656
+ Gt(ft[He], w);
657
657
  Object.freeze && Object.freeze(ft);
658
658
  } else
659
659
  F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
660
660
  else
661
- Yt(ft, w);
661
+ Gt(ft, w);
662
662
  }
663
663
  if (ke.call(M, "key")) {
664
664
  var Qe = L(w), it = Object.keys(M).filter(function(Zi) {
@@ -712,8 +712,8 @@ const xs = {}, tg = async (e, t) => {
712
712
  )) : Promise.resolve(Cs);
713
713
  }, ng = {
714
714
  fetchIcon: async (e, t) => tg(e, t || Zm)
715
- }, rg = Ym(ng), ee = ({ name: e, path: t, className: n = "", ...r }) => {
716
- const [i, o] = Ve(null), u = Gm(rg);
715
+ }, rg = Gm(ng), ee = ({ name: e, path: t, className: n = "", ...r }) => {
716
+ const [i, o] = Ve(null), u = Ym(rg);
717
717
  return oa(() => {
718
718
  e ? u.fetchIcon(e, t).then(o) : o(null);
719
719
  }, [e, t]), i ? /* @__PURE__ */ m.jsx("span", { className: `pkt-icon ${n}`, dangerouslySetInnerHTML: { __html: i }, ...r }) : null;
@@ -1229,11 +1229,11 @@ or.elementStyles = [], or.shadowRootOptions = { mode: "open" }, or[na("elementPr
1229
1229
  const vi = globalThis, Di = vi.trustedTypes, Du = Di ? Di.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, yo = "$lit$", Jt = `lit$${Math.random().toFixed(9).slice(2)}$`, bo = "?" + Jt, vg = `<${bo}>`, In = document, la = () => In.createComment(""), ua = (e) => e === null || typeof e != "object" && typeof e != "function", ko = Array.isArray, zc = (e) => ko(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", _s = `[
1230
1230
  \f\r]`, zr = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, yu = /-->/g, bu = />/g, Fn = RegExp(`>|${_s}(?:([^\\s"'>=/]+)(${_s}*=${_s}*(?:[^
1231
1231
  \f\r"'\`<>=]|("|')|))|$)`, "g"), ku = /'/g, wu = /"/g, Vc = /^(?:script|style|textarea|title)$/i, Dg = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), J = Dg(1), Qt = Symbol.for("lit-noChange"), te = Symbol.for("lit-nothing"), Cu = /* @__PURE__ */ new WeakMap(), Ln = In.createTreeWalker(In, 129);
1232
- function Yc(e, t) {
1232
+ function Gc(e, t) {
1233
1233
  if (!ko(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
1234
1234
  return Du !== void 0 ? Du.createHTML(t) : t;
1235
1235
  }
1236
- const Gc = (e, t) => {
1236
+ const Yc = (e, t) => {
1237
1237
  const n = e.length - 1, r = [];
1238
1238
  let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", u = zr;
1239
1239
  for (let c = 0; c < n; c++) {
@@ -1243,14 +1243,14 @@ const Gc = (e, t) => {
1243
1243
  const b = u === Fn && e[c + 1].startsWith("/>") ? " " : "";
1244
1244
  o += u === zr ? d + vg : v >= 0 ? (r.push(h), d.slice(0, v) + yo + d.slice(v) + Jt + b) : d + Jt + (v === -2 ? c : b);
1245
1245
  }
1246
- return [Yc(e, o + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
1246
+ return [Gc(e, o + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
1247
1247
  };
1248
- let Ys = class Kc {
1248
+ let Gs = class Kc {
1249
1249
  constructor({ strings: t, _$litType$: n }, r) {
1250
1250
  let i;
1251
1251
  this.parts = [];
1252
1252
  let o = 0, u = 0;
1253
- const c = t.length - 1, d = this.parts, [h, g] = Gc(t, n);
1253
+ const c = t.length - 1, d = this.parts, [h, g] = Yc(t, n);
1254
1254
  if (this.el = Kc.createElement(h, r), Ln.currentNode = this.el.content, n === 2 || n === 3) {
1255
1255
  const v = this.el.content.firstChild;
1256
1256
  v.replaceWith(...v.childNodes);
@@ -1349,7 +1349,7 @@ let Jc = class {
1349
1349
  }
1350
1350
  $(t) {
1351
1351
  var n;
1352
- const { values: r, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Ys.createElement(Yc(i.h, i.h[0]), this.options)), i);
1352
+ const { values: r, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Gs.createElement(Gc(i.h, i.h[0]), this.options)), i);
1353
1353
  if (((n = this._$AH) == null ? void 0 : n._$AD) === o) this._$AH.p(r);
1354
1354
  else {
1355
1355
  const u = new Jc(o, this), c = u.u(this.options);
@@ -1358,7 +1358,7 @@ let Jc = class {
1358
1358
  }
1359
1359
  _$AC(t) {
1360
1360
  let n = Cu.get(t.strings);
1361
- return n === void 0 && Cu.set(t.strings, n = new Ys(t)), n;
1361
+ return n === void 0 && Cu.set(t.strings, n = new Gs(t)), n;
1362
1362
  }
1363
1363
  k(t) {
1364
1364
  ko(this._$AH) || (this._$AH = [], this._$AR());
@@ -1440,8 +1440,8 @@ let Jc = class {
1440
1440
  Mn(this, t);
1441
1441
  }
1442
1442
  };
1443
- const yg = { M: yo, P: Jt, A: bo, C: 1, L: Gc, R: Jc, D: zc, V: Mn, I: Si, H: va, N: Zc, U: ep, B: Qc, F: tp }, xu = vi.litHtmlPolyfillSupport;
1444
- xu == null || xu(Ys, Si), (vi.litHtmlVersions ?? (vi.litHtmlVersions = [])).push("3.2.0");
1443
+ const yg = { M: yo, P: Jt, A: bo, C: 1, L: Yc, R: Jc, D: zc, V: Mn, I: Si, H: va, N: Zc, U: ep, B: Qc, F: tp }, xu = vi.litHtmlPolyfillSupport;
1444
+ xu == null || xu(Gs, Si), (vi.litHtmlVersions ?? (vi.litHtmlVersions = [])).push("3.2.0");
1445
1445
  const bg = (e, t, n) => {
1446
1446
  const r = (n == null ? void 0 : n.renderBefore) ?? t;
1447
1447
  let i = r._$litPart$;
@@ -1628,7 +1628,7 @@ const Eg = {
1628
1628
  dates: Ag,
1629
1629
  forms: $g
1630
1630
  };
1631
- var Tg = Object.defineProperty, Ge = (e, t, n, r) => {
1631
+ var Tg = Object.defineProperty, Ye = (e, t, n, r) => {
1632
1632
  for (var i = void 0, o = e.length - 1, u; o >= 0; o--)
1633
1633
  (u = e[o]) && (i = u(t, n, i) || i);
1634
1634
  return i && Tg(t, n, i), i;
@@ -1659,7 +1659,7 @@ let Ht = class extends ra {
1659
1659
  this.requestUpdate();
1660
1660
  }
1661
1661
  };
1662
- Ge([
1662
+ Ye([
1663
1663
  O({ type: Object })
1664
1664
  ], Ht.prototype, "strings");
1665
1665
  class Ke extends Ht {
@@ -1695,7 +1695,7 @@ class Ke extends Ht {
1695
1695
  this.internals.setFormValue(t);
1696
1696
  }
1697
1697
  valueChanged(t, n) {
1698
- typeof t == "string" ? ((this.multiple || this.range) && t.includes(",") && (t = t.split(",")), this.value = t, this._value = Array.isArray(t) ? t : [t]) : Array.isArray(t) ? (this.value = t, this._value = t) : (this.value = "", this._value = []), (!this.value || this.value.length === 0) && n && n.length !== 0 ? this.clearInputValue() : this.value && this.value.toString() !== (n == null ? void 0 : n.toString()) && this.onInput(this.value), this.updateComplete.then(() => this.requestUpdate());
1698
+ typeof t == "string" ? ((this.multiple || this.range) && t.includes(",") && (t = t.split(",")), this.value = t, this._value = Array.isArray(t) ? t : [t]) : Array.isArray(t) ? (this.value = t, this._value = t) : (this.value = "", this._value = []), (!this.value || this.value.length === 0) && n && n.length !== 0 ? this.clearInputValue() : this.value && this.value.toString() !== (n == null ? void 0 : n.toString()) && this.onChange(this.value), this.updateComplete.then(() => this.requestUpdate());
1699
1699
  }
1700
1700
  // When input goes from content to no content
1701
1701
  clearInputValue() {
@@ -1708,13 +1708,25 @@ class Ke extends Ht {
1708
1708
  })
1709
1709
  );
1710
1710
  }
1711
+ // When user enters the input, we need to push that event out to the form
1712
+ onFocus() {
1713
+ this.dispatchEvent(new FocusEvent("focus"));
1714
+ }
1715
+ // And also when the user leaves the input...
1716
+ onBlur() {
1717
+ this.dispatchEvent(new FocusEvent("blur"));
1718
+ }
1719
+ // Trigger this when user types in the input
1720
+ onInput() {
1721
+ this.dispatchEvent(new InputEvent("input"));
1722
+ }
1711
1723
  // Trigger this when you want to set the value of the input out to the form
1712
- onInput(t) {
1724
+ onChange(t) {
1713
1725
  if (!this.touched) {
1714
1726
  this.touched = !0, t && this.setFormValue(t);
1715
1727
  return;
1716
1728
  }
1717
- typeof t != "string" && !Array.isArray(t) || ((this.range || this.multiple) && !Array.isArray(t) && t.includes(",") && (t = t.split(",")), !this.multiple && !this.range && Array.isArray(t) && (t = t[0]), this.setFormValue(t), this.manageValidity(this.inputRef.value), this.inputRef2 && this.manageValidity(this.inputRef2.value), this.dispatchEvent(new Event("input")), this.dispatchEvent(new Event("change")), this.dispatchEvent(
1729
+ typeof t != "string" && !Array.isArray(t) || ((this.range || this.multiple) && !Array.isArray(t) && t.includes(",") && (t = t.split(",")), !this.multiple && !this.range && Array.isArray(t) && (t = t[0]), this.setFormValue(t), this.manageValidity(this.inputRef.value), this.inputRef2 && this.manageValidity(this.inputRef2.value), this.dispatchEvent(new Event("change")), this.dispatchEvent(
1718
1730
  new CustomEvent("value-change", {
1719
1731
  detail: t,
1720
1732
  bubbles: !0,
@@ -1726,55 +1738,55 @@ class Ke extends Ht {
1726
1738
  super.firstUpdated(t), this.required && (this.internals.ariaRequired = !0), this.disabled && (this.internals.disabled = !0, this.internals.ariaDisabled = !0), this.internals.setFormValue(this.value), this.manageValidity(this.inputRef.value);
1727
1739
  }
1728
1740
  }
1729
- Ge([
1741
+ Ye([
1730
1742
  O({ type: String, reflect: !0 })
1731
1743
  ], Ke.prototype, "id");
1732
- Ge([
1744
+ Ye([
1733
1745
  O({ type: String, reflect: !0 })
1734
1746
  ], Ke.prototype, "name");
1735
- Ge([
1747
+ Ye([
1736
1748
  O({ type: Boolean, reflect: !0 })
1737
1749
  ], Ke.prototype, "required");
1738
- Ge([
1750
+ Ye([
1739
1751
  O({ type: Boolean, reflect: !0 })
1740
1752
  ], Ke.prototype, "disabled");
1741
- Ge([
1753
+ Ye([
1742
1754
  O({ type: String, reflect: !0 })
1743
1755
  ], Ke.prototype, "placeholder");
1744
- Ge([
1756
+ Ye([
1745
1757
  O({ type: Number, reflect: !0 })
1746
1758
  ], Ke.prototype, "min");
1747
- Ge([
1759
+ Ye([
1748
1760
  O({ type: Number, reflect: !0 })
1749
1761
  ], Ke.prototype, "max");
1750
- Ge([
1762
+ Ye([
1751
1763
  O({ type: Number, reflect: !0 })
1752
1764
  ], Ke.prototype, "minlength");
1753
- Ge([
1765
+ Ye([
1754
1766
  O({ type: Number, reflect: !0 })
1755
1767
  ], Ke.prototype, "maxlength");
1756
- Ge([
1768
+ Ye([
1757
1769
  O({ type: String, reflect: !0 })
1758
1770
  ], Ke.prototype, "pattern");
1759
- Ge([
1771
+ Ye([
1760
1772
  O({ type: Boolean, reflect: !0 })
1761
1773
  ], Ke.prototype, "optionalTag");
1762
- Ge([
1774
+ Ye([
1763
1775
  O({ type: String, reflect: !0 })
1764
1776
  ], Ke.prototype, "optionalText");
1765
- Ge([
1777
+ Ye([
1766
1778
  O({ type: Boolean, reflect: !0 })
1767
1779
  ], Ke.prototype, "requiredTag");
1768
- Ge([
1780
+ Ye([
1769
1781
  O({ type: String, reflect: !0 })
1770
1782
  ], Ke.prototype, "requiredText");
1771
- Ge([
1783
+ Ye([
1772
1784
  O({ type: Boolean, reflect: !0 })
1773
1785
  ], Ke.prototype, "hasError");
1774
- Ge([
1786
+ Ye([
1775
1787
  O({ type: String, reflect: !0 })
1776
1788
  ], Ke.prototype, "errorMessage");
1777
- Ge([
1789
+ Ye([
1778
1790
  Da()
1779
1791
  ], Ke.prototype, "touched");
1780
1792
  const rp = (e) => {
@@ -1827,7 +1839,7 @@ let Fi = class {
1827
1839
  * Copyright 2018 Google LLC
1828
1840
  * SPDX-License-Identifier: BSD-3-Clause
1829
1841
  */
1830
- const Ye = ya(class extends Fi {
1842
+ const Ge = ya(class extends Fi {
1831
1843
  constructor(e) {
1832
1844
  var t;
1833
1845
  if (super(e), e.type !== Ei.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -1877,10 +1889,10 @@ const ri = ya(yi);
1877
1889
  * Copyright 2017 Google LLC
1878
1890
  * SPDX-License-Identifier: BSD-3-Clause
1879
1891
  */
1880
- let Gs = class extends yi {
1892
+ let Ys = class extends yi {
1881
1893
  };
1882
- Gs.directiveName = "unsafeSVG", Gs.resultType = 2;
1883
- const Fu = ya(Gs);
1894
+ Ys.directiveName = "unsafeSVG", Ys.resultType = 2;
1895
+ const Fu = ya(Ys);
1884
1896
  var jg = Object.defineProperty, Pg = Object.getOwnPropertyDescriptor, ba = (e, t, n, r) => {
1885
1897
  for (var i = r > 1 ? void 0 : r ? Pg(t, n) : t, o = e.length - 1, u; o >= 0; o--)
1886
1898
  (u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
@@ -2247,7 +2259,7 @@ let Ee = class extends Ht {
2247
2259
  "pkt-cal-in-range-last": this.range && this.selected.length === 2 && o === this.selected[1],
2248
2260
  "pkt-cal-range-hover": this.rangeHovered !== null && o === this.formatISODate(this.rangeHovered)
2249
2261
  };
2250
- return J`<td class=${Ye(g)}>
2262
+ return J`<td class=${Ge(g)}>
2251
2263
  <div
2252
2264
  ?aria-selected=${c}
2253
2265
  role="gridcell"
@@ -2538,12 +2550,12 @@ let kr = class {
2538
2550
  * Copyright 2020 Google LLC
2539
2551
  * SPDX-License-Identifier: BSD-3-Clause
2540
2552
  */
2541
- const { I: Yg } = yg, Gg = (e) => e.strings === void 0, Au = () => document.createComment(""), Vr = (e, t, n) => {
2553
+ const { I: Gg } = yg, Yg = (e) => e.strings === void 0, Au = () => document.createComment(""), Vr = (e, t, n) => {
2542
2554
  var r;
2543
2555
  const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
2544
2556
  if (n === void 0) {
2545
2557
  const u = i.insertBefore(Au(), o), c = i.insertBefore(Au(), o);
2546
- n = new Yg(u, c, e, e.options);
2558
+ n = new Gg(u, c, e, e.options);
2547
2559
  } else {
2548
2560
  const u = n._$AB.nextSibling, c = n._$AM, d = c !== e;
2549
2561
  if (d) {
@@ -2618,7 +2630,7 @@ let tv = class extends Fi {
2618
2630
  t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), n && (aa(this, t), bi(this));
2619
2631
  }
2620
2632
  setValue(t) {
2621
- if (Gg(this.t)) this.t._$AI(t, this);
2633
+ if (Yg(this.t)) this.t._$AI(t, this);
2622
2634
  else {
2623
2635
  const n = [...this.t._$AH];
2624
2636
  n[this.i] = t, this.t._$AI(n, this, 0);
@@ -2761,7 +2773,7 @@ let qt = class extends Ht {
2761
2773
  };
2762
2774
  return this.closeTag ? this._isClosed ? te : J`
2763
2775
  <button
2764
- class=${Ye(n)}
2776
+ class=${Ge(n)}
2765
2777
  type=${this.type}
2766
2778
  aria-label=${this.ariaLabel}
2767
2779
  @click=${this.close}
@@ -2771,7 +2783,7 @@ let qt = class extends Ht {
2771
2783
  <pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
2772
2784
  </button>
2773
2785
  ` : J`
2774
- <span class=${Ye(t)}>
2786
+ <span class=${Ge(t)}>
2775
2787
  ${this.iconName && J` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
2776
2788
  <span ${ct(this.defaultSlot)}> </span>
2777
2789
  </span>
@@ -2926,7 +2938,7 @@ let Zt = class extends Ht {
2926
2938
  [`pkt-card--${this.direction}`]: this.direction
2927
2939
  };
2928
2940
  return J`
2929
- <div class=${Ye(t)}>
2941
+ <div class=${Ge(t)}>
2930
2942
  ${this.image.src && J`
2931
2943
  <div class="pkt-card__image">
2932
2944
  <img src=${this.image.src} alt=${this.image.alt || ""} />
@@ -3000,7 +3012,7 @@ let vr = class extends Ht {
3000
3012
  "pkt-darkmode": this.darkmode
3001
3013
  };
3002
3014
  return J`
3003
- <div class="${Ye(e)}">
3015
+ <div class="${Ge(e)}">
3004
3016
  <h1 class="pkt-txt-28">${this.string}</h1>
3005
3017
 
3006
3018
  <h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
@@ -3229,7 +3241,7 @@ let Pe = class extends Ht {
3229
3241
  "pkt-inputwrapper__label": !0,
3230
3242
  "pkt-inputwrapper__fieldset": this.hasFieldset,
3231
3243
  "pkt-inputwrapper__legend": this.hasFieldset
3232
- }, c = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : te, d = () => this.optionalTag || this.requiredTag ? J`<span class=${Ye(n)}
3244
+ }, c = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : te, d = () => this.optionalTag || this.requiredTag ? J`<span class=${Ge(n)}
3233
3245
  >${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText : te}</span
3234
3246
  >` : te, h = () => this.useWrapper ? this.hasFieldset ? J`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
3235
3247
  ${this.label} ${d()}
@@ -3250,7 +3262,7 @@ let Pe = class extends Ht {
3250
3262
  ></pkt-icon>
3251
3263
  <span class="pkt-btn__text">${ri(this.helptextDropdownButton)}</span>
3252
3264
  </button>
3253
- <div class="${Ye(o)}">
3265
+ <div class="${Ge(o)}">
3254
3266
  ${ri(this.helptextDropdown)}
3255
3267
  </div>
3256
3268
  ${this.hasFieldset ? te : J`<label
@@ -3272,18 +3284,18 @@ let Pe = class extends Ht {
3272
3284
  ${h()} ${g()}
3273
3285
  <div class="pkt-contents" ${ct(this.defaultSlot)}></div>
3274
3286
  ${v()} ${D()}
3275
- `, k = () => this.hasFieldset ? J`<fieldset class=${Ye(u)} aria-describedby="${c}">
3287
+ `, k = () => this.hasFieldset ? J`<fieldset class=${Ge(u)} aria-describedby="${c}">
3276
3288
  ${b()}
3277
- </fieldset>` : r ? J`<div class=${Ye(u)} aria-describedby="${c}">
3289
+ </fieldset>` : r ? J`<div class=${Ge(u)} aria-describedby="${c}">
3278
3290
  ${b()}
3279
3291
  </div>` : J`<label
3280
- class=${Ye(u)}
3292
+ class=${Ge(u)}
3281
3293
  for="${this.forId}"
3282
3294
  aria-describedby="${c}"
3283
3295
  >
3284
3296
  ${b()}
3285
3297
  </label>`;
3286
- return J`<div class=${Ye(t)}>${k()}</div> `;
3298
+ return J`<div class=${Ge(t)}>${k()}</div> `;
3287
3299
  }
3288
3300
  };
3289
3301
  Oe([
@@ -3508,7 +3520,7 @@ const Av = {
3508
3520
  nextWeek: "eeee 'at' p",
3509
3521
  other: "P"
3510
3522
  }, jv = (e, t, n, r) => Nv[e];
3511
- function Yr(e) {
3523
+ function Gr(e) {
3512
3524
  return (t, n) => {
3513
3525
  const r = n != null && n.context ? String(n.context) : "standalone";
3514
3526
  let i;
@@ -3650,31 +3662,31 @@ const Pv = {
3650
3662
  return n + "th";
3651
3663
  }, Hv = {
3652
3664
  ordinalNumber: qv,
3653
- era: Yr({
3665
+ era: Gr({
3654
3666
  values: Pv,
3655
3667
  defaultWidth: "wide"
3656
3668
  }),
3657
- quarter: Yr({
3669
+ quarter: Gr({
3658
3670
  values: Lv,
3659
3671
  defaultWidth: "wide",
3660
3672
  argumentCallback: (e) => e - 1
3661
3673
  }),
3662
- month: Yr({
3674
+ month: Gr({
3663
3675
  values: Ov,
3664
3676
  defaultWidth: "wide"
3665
3677
  }),
3666
- day: Yr({
3678
+ day: Gr({
3667
3679
  values: Iv,
3668
3680
  defaultWidth: "wide"
3669
3681
  }),
3670
- dayPeriod: Yr({
3682
+ dayPeriod: Gr({
3671
3683
  values: Mv,
3672
3684
  defaultWidth: "wide",
3673
3685
  formattingValues: Rv,
3674
3686
  defaultFormattingWidth: "wide"
3675
3687
  })
3676
3688
  };
3677
- function Gr(e) {
3689
+ function Yr(e) {
3678
3690
  return (t, n = {}) => {
3679
3691
  const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
3680
3692
  if (!o)
@@ -3714,7 +3726,7 @@ function zv(e) {
3714
3726
  return { value: u, rest: c };
3715
3727
  };
3716
3728
  }
3717
- const Vv = /^(\d+)(th|st|nd|rd)?/i, Yv = /\d+/i, Gv = {
3729
+ const Vv = /^(\d+)(th|st|nd|rd)?/i, Gv = /\d+/i, Yv = {
3718
3730
  narrow: /^(b|a)/i,
3719
3731
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
3720
3732
  wide: /^(before christ|before common era|anno domini|common era)/i
@@ -3784,35 +3796,35 @@ const Vv = /^(\d+)(th|st|nd|rd)?/i, Yv = /\d+/i, Gv = {
3784
3796
  }, a2 = {
3785
3797
  ordinalNumber: zv({
3786
3798
  matchPattern: Vv,
3787
- parsePattern: Yv,
3799
+ parsePattern: Gv,
3788
3800
  valueCallback: (e) => parseInt(e, 10)
3789
3801
  }),
3790
- era: Gr({
3791
- matchPatterns: Gv,
3802
+ era: Yr({
3803
+ matchPatterns: Yv,
3792
3804
  defaultMatchWidth: "wide",
3793
3805
  parsePatterns: Kv,
3794
3806
  defaultParseWidth: "any"
3795
3807
  }),
3796
- quarter: Gr({
3808
+ quarter: Yr({
3797
3809
  matchPatterns: Jv,
3798
3810
  defaultMatchWidth: "wide",
3799
3811
  parsePatterns: Xv,
3800
3812
  defaultParseWidth: "any",
3801
3813
  valueCallback: (e) => e + 1
3802
3814
  }),
3803
- month: Gr({
3815
+ month: Yr({
3804
3816
  matchPatterns: Qv,
3805
3817
  defaultMatchWidth: "wide",
3806
3818
  parsePatterns: Zv,
3807
3819
  defaultParseWidth: "any"
3808
3820
  }),
3809
- day: Gr({
3821
+ day: Yr({
3810
3822
  matchPatterns: e2,
3811
3823
  defaultMatchWidth: "wide",
3812
3824
  parsePatterns: t2,
3813
3825
  defaultParseWidth: "any"
3814
3826
  }),
3815
- dayPeriod: Gr({
3827
+ dayPeriod: Yr({
3816
3828
  matchPatterns: n2,
3817
3829
  defaultMatchWidth: "any",
3818
3830
  parsePatterns: r2,
@@ -4741,7 +4753,7 @@ const Ou = (e, t, n) => {
4741
4753
  type: "CustomEvent",
4742
4754
  description: "Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"
4743
4755
  }
4744
- }, Gt = {
4756
+ }, Yt = {
4745
4757
  name: _2,
4746
4758
  "css-class": "pkt-datepicker",
4747
4759
  isElement: S2,
@@ -4756,7 +4768,7 @@ var A2 = Object.defineProperty, $2 = Object.getOwnPropertyDescriptor, Je = (e, t
4756
4768
  const Ns = (e) => new Promise((t) => setTimeout(t, e));
4757
4769
  let qe = class extends Ke {
4758
4770
  constructor() {
4759
- super(...arguments), this.value = "", this._value = this.value ? Array.isArray(this.value) ? this.value : this.value.split(",") : [], this.label = "Datovelger", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Gt.props.helptextDropdownButton.default, this.dateformat = Gt.props.dateformat.default, this.multiple = Gt.props.multiple.default, this.maxlength = Gt.props.maxlength.default, this.range = Gt.props.range.default, this.weeknumbers = Gt.props.weeknumbers.default, this.withcontrols = Gt.props.withcontrols.default, this.fullwidth = !1, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = this.formatISODate(/* @__PURE__ */ new Date()), this.calendarOpen = !1, this.inputRef = Ft(), this.inputRefTo = Ft(), this.btnRef = Ft(), this.calRef = Ft(), this.popupRef = Ft(), this.inputClasses = {
4771
+ super(...arguments), this.value = "", this._value = this.value ? Array.isArray(this.value) ? this.value : this.value.split(",") : [], this.label = "Datovelger", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Yt.props.helptextDropdownButton.default, this.dateformat = Yt.props.dateformat.default, this.multiple = Yt.props.multiple.default, this.maxlength = Yt.props.maxlength.default, this.range = Yt.props.range.default, this.weeknumbers = Yt.props.weeknumbers.default, this.withcontrols = Yt.props.withcontrols.default, this.fullwidth = !1, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = this.formatISODate(/* @__PURE__ */ new Date()), this.calendarOpen = !1, this.inputRef = Ft(), this.inputRefTo = Ft(), this.btnRef = Ft(), this.calRef = Ft(), this.popupRef = Ft(), this.inputClasses = {
4760
4772
  "pkt-input": !0,
4761
4773
  "pkt-datepicker__input": !0,
4762
4774
  "pkt-input--fullwidth": this.fullwidth
@@ -4787,8 +4799,8 @@ let qe = class extends Ke {
4787
4799
  async connectedCallback() {
4788
4800
  super.connectedCallback(), this.isMobileSafari = /iP(ad|od|hone)/i.test(window.navigator.userAgent) && !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/), this.inputType = this.isMobileSafari ? "text" : "date", document && document.body.addEventListener("click", (e) => {
4789
4801
  var t, n;
4790
- (t = this.inputRef) != null && t.value && (n = this.btnRef) != null && n.value && !this.inputRef.value.contains(e.target) && !(this.inputRefTo.value && this.inputRefTo.value.contains(e.target)) && !this.btnRef.value.contains(e.target) && !e.target.closest(".pkt-calendar-popup") && this.hideCalendar();
4791
- }), this.value.length && this._value.length === 0 && (this._value = Array.isArray(this.value) ? this.value : this.value.split(",")), this.min = this.min || Gt.props.min.default, this.max = this.max || Gt.props.max.default, typeof this.excludedates == "string" && (this.excludedates = this.excludedates.split(",")), typeof this.excludeweekdays == "string" && (this.excludeweekdays = this.excludeweekdays.split(",")), (this.multiple || this.range) && this.name && !this.name.endsWith("[]") && (this.name = this.name + "[]"), this.calendarOpen && (await Ns(20), this.handleCalendarPosition());
4802
+ (t = this.inputRef) != null && t.value && (n = this.btnRef) != null && n.value && !this.inputRef.value.contains(e.target) && !(this.inputRefTo.value && this.inputRefTo.value.contains(e.target)) && !this.btnRef.value.contains(e.target) && !e.target.closest(".pkt-calendar-popup") && this.calendarOpen && (this.onBlur(), this.hideCalendar());
4803
+ }), this.value.length && this._value.length === 0 && (this._value = Array.isArray(this.value) ? this.value : this.value.split(",")), this.min = this.min || Yt.props.min.default, this.max = this.max || Yt.props.max.default, typeof this.excludedates == "string" && (this.excludedates = this.excludedates.split(",")), typeof this.excludeweekdays == "string" && (this.excludeweekdays = this.excludeweekdays.split(",")), (this.multiple || this.range) && this.name && !this.name.endsWith("[]") && (this.name = this.name + "[]"), this.calendarOpen && (await Ns(20), this.handleCalendarPosition());
4792
4804
  }
4793
4805
  disconnectedCallback() {
4794
4806
  super.disconnectedCallback(), document && document.body.removeEventListener("click", (e) => {
@@ -4817,7 +4829,7 @@ let qe = class extends Ke {
4817
4829
  renderInput() {
4818
4830
  return J`
4819
4831
  <input
4820
- class="${Ye(this.inputClasses)}"
4832
+ class="${Ge(this.inputClasses)}"
4821
4833
  .type=${this.inputType}
4822
4834
  id="${this.id}-input"
4823
4835
  .value=${this._value[0] ?? ""}
@@ -4830,12 +4842,16 @@ let qe = class extends Ke {
4830
4842
  @keydown=${(e) => {
4831
4843
  var t;
4832
4844
  (e.key === "," || e.key === "Enter") && ((t = this.inputRef.value) == null || t.blur());
4845
+ }}
4846
+ @input=${(e) => {
4847
+ this.onInput(), e.stopImmediatePropagation();
4833
4848
  }}
4834
4849
  @focus=${() => {
4835
- this.isMobileSafari && this.showCalendar();
4850
+ this.onFocus(), this.isMobileSafari && this.showCalendar();
4836
4851
  }}
4837
4852
  @blur=${(e) => {
4838
- this.manageValidity(e.target), this.value = e.target.value;
4853
+ var t;
4854
+ (t = this.calRef.value) != null && t.contains(e.relatedTarget) || this.onBlur(), this.manageValidity(e.target), this.value = e.target.value;
4839
4855
  }}
4840
4856
  @change=${(e) => {
4841
4857
  e.stopImmediatePropagation();
@@ -4848,7 +4864,7 @@ let qe = class extends Ke {
4848
4864
  return J`
4849
4865
  <div class="pkt-input-prefix">Fra</div>
4850
4866
  <input
4851
- class=${Ye(this.inputClasses)}
4867
+ class=${Ge(this.inputClasses)}
4852
4868
  .type=${this.inputType}
4853
4869
  id="${this.id}-input"
4854
4870
  .value=${this._value[0] ?? ""}
@@ -4861,9 +4877,12 @@ let qe = class extends Ke {
4861
4877
  @keydown=${(e) => {
4862
4878
  var t;
4863
4879
  (e.key === "," || e.key === "Enter") && ((t = this.inputRef.value) == null || t.blur());
4880
+ }}
4881
+ @input=${(e) => {
4882
+ this.onInput(), e.stopImmediatePropagation();
4864
4883
  }}
4865
4884
  @focus=${() => {
4866
- this.isMobileSafari && this.showCalendar();
4885
+ this.onFocus(), this.isMobileSafari && this.showCalendar();
4867
4886
  }}
4868
4887
  @blur=${(e) => {
4869
4888
  var t, n;
@@ -4880,7 +4899,7 @@ let qe = class extends Ke {
4880
4899
  />
4881
4900
  <div class="pkt-input-prefix">Til</div>
4882
4901
  <input
4883
- class=${Ye(this.inputClasses)}
4902
+ class=${Ge(this.inputClasses)}
4884
4903
  .type=${this.inputType}
4885
4904
  id="${this.id}-to"
4886
4905
  .value=${this._value[1] ?? ""}
@@ -4893,26 +4912,29 @@ let qe = class extends Ke {
4893
4912
  @keydown=${(e) => {
4894
4913
  var t;
4895
4914
  (e.key === "," || e.key === "Enter") && ((t = this.inputRefTo.value) == null || t.blur());
4915
+ }}
4916
+ @input=${(e) => {
4917
+ this.onInput(), e.stopImmediatePropagation();
4896
4918
  }}
4897
4919
  @focus=${() => {
4898
- this.isMobileSafari && this.showCalendar();
4920
+ this.onFocus(), this.isMobileSafari && this.showCalendar();
4899
4921
  }}
4900
4922
  @blur=${(e) => {
4901
- var t, n;
4902
- if (e.target.value) {
4923
+ var t, n, r;
4924
+ if ((t = this.calRef.value) != null && t.contains(e.relatedTarget) || this.onBlur(), e.target.value) {
4903
4925
  this.manageValidity(e.target);
4904
- const r = e.target.value;
4905
- this.min && this.min > r ? this.internals.setValidity(
4926
+ const i = e.target.value;
4927
+ this.min && this.min > i ? this.internals.setValidity(
4906
4928
  { rangeUnderflow: !0 },
4907
4929
  this.strings.forms.messages.rangeUnderflow,
4908
4930
  e.target
4909
- ) : this.max && this.max < r && this.internals.setValidity(
4931
+ ) : this.max && this.max < i && this.internals.setValidity(
4910
4932
  { rangeOverflow: !0 },
4911
4933
  this.strings.forms.messages.rangeOverflow,
4912
4934
  e.target
4913
4935
  );
4914
- const i = this.fromISOToDate(e.target.value);
4915
- i && this._value[1] !== this.formatISODate(i) && ((n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(i));
4936
+ const o = this.fromISOToDate(e.target.value);
4937
+ o && this._value[1] !== this.formatISODate(o) && ((r = (n = this.calRef) == null ? void 0 : n.value) == null || r.handleDateSelect(o));
4916
4938
  }
4917
4939
  }}
4918
4940
  @change=${(e) => {
@@ -4925,7 +4947,7 @@ let qe = class extends Ke {
4925
4947
  renderMultipleInput() {
4926
4948
  return J`
4927
4949
  <input
4928
- class=${Ye(this.inputClasses)}
4950
+ class=${Ge(this.inputClasses)}
4929
4951
  .type=${this.inputType}
4930
4952
  id="${this.id}-input"
4931
4953
  min=${this.min}
@@ -4934,10 +4956,14 @@ let qe = class extends Ke {
4934
4956
  e.preventDefault(), this.showCalendar();
4935
4957
  }}
4936
4958
  @blur=${(e) => {
4937
- this.addToSelected(e);
4959
+ var t;
4960
+ (t = this.calRef.value) != null && t.contains(e.relatedTarget) || this.onBlur(), this.addToSelected(e);
4961
+ }}
4962
+ @input=${(e) => {
4963
+ this.onInput(), e.stopImmediatePropagation();
4938
4964
  }}
4939
4965
  @focus=${() => {
4940
- this.isMobileSafari && this.showCalendar();
4966
+ this.onFocus(), this.isMobileSafari && this.showCalendar();
4941
4967
  }}
4942
4968
  @keydown=${(e) => {
4943
4969
  (e.key === "," || e.key === "Enter") && (e.preventDefault(), this.addToSelected(e));
@@ -4974,7 +5000,9 @@ let qe = class extends Ke {
4974
5000
  renderCalendar() {
4975
5001
  return J`<div
4976
5002
  class="pkt-calendar-popup pkt-${this.calendarOpen ? "show" : "hide"}"
4977
- @focusout=${this.handleFocusOut}
5003
+ @focusout=${(e) => {
5004
+ this.calendarOpen && this.handleFocusOut(e);
5005
+ }}
4978
5006
  id="${this.id}-popup"
4979
5007
  ${ct(this.popupRef)}
4980
5008
  >
@@ -4993,7 +5021,9 @@ let qe = class extends Ke {
4993
5021
  @date-selected=${(e) => {
4994
5022
  this.value = !this.multiple && !this.range ? e.detail[0] : e.detail, this._value = e.detail, this.inputRef.value && (this.range && this.inputRefTo.value ? (this.inputRef.value.value = this._value[0] ?? "", this.inputRefTo.value.value = this._value[1] ?? "") : this.multiple || (this.inputRef.value.value = this._value.length ? this._value[0] : ""));
4995
5023
  }}
4996
- @close=${this.hideCalendar}
5024
+ @close=${() => {
5025
+ this.onBlur(), this.hideCalendar();
5026
+ }}
4997
5027
  ${ct(this.calRef)}
4998
5028
  ></pkt-calendar>
4999
5029
  </div>`;
@@ -5025,7 +5055,7 @@ let qe = class extends Ke {
5025
5055
  <div class="pkt-input__container">
5026
5056
  ${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
5027
5057
  <button
5028
- class="${Ye(this.buttonClasses)}"
5058
+ class="${Ge(this.buttonClasses)}"
5029
5059
  @click=${this.toggleCalendar}
5030
5060
  ?disabled=${this.disabled}
5031
5061
  ${ct(this.btnRef)}
@@ -5051,7 +5081,7 @@ let qe = class extends Ke {
5051
5081
  }
5052
5082
  }
5053
5083
  handleFocusOut(e) {
5054
- this.contains(e.target) || this.hideCalendar();
5084
+ this.contains(e.target) || (this.onBlur(), this.hideCalendar());
5055
5085
  }
5056
5086
  async showCalendar() {
5057
5087
  var e;
@@ -5185,7 +5215,7 @@ let vn = class extends Ht {
5185
5215
  "pkt-link--external": this.external
5186
5216
  };
5187
5217
  return J`<a
5188
- class=${Ye(e)}
5218
+ class=${Ge(e)}
5189
5219
  href=${this.href}
5190
5220
  @click=${this.handleClick}
5191
5221
  .target=${this.target}
@@ -5239,7 +5269,7 @@ let Dn = class extends Ht {
5239
5269
  [`pkt-messagebox--${this.skin}`]: this.skin,
5240
5270
  "pkt-messagebox--closable": this.closable
5241
5271
  };
5242
- return this.isDisplayed ? J`<div class=${Ye(e)}>
5272
+ return this.isDisplayed ? J`<div class=${Ge(e)}>
5243
5273
  ${this.closable ? J`<div class="pkt-messagebox__close">
5244
5274
  <button
5245
5275
  @click=${this.handleClose}
@@ -5337,6 +5367,9 @@ const q2 = go({
5337
5367
  displayName: "PktDatepicker",
5338
5368
  events: {
5339
5369
  onChange: "change",
5370
+ onInput: "input",
5371
+ onBlur: "blur",
5372
+ onFocus: "focus",
5340
5373
  onValueChange: "value-change",
5341
5374
  onToggleHelpText: "toggleHelpText"
5342
5375
  }
@@ -5487,7 +5520,7 @@ const q2 = go({
5487
5520
  xe.useEffect(() => (document && (document.addEventListener("mouseup", V), window.addEventListener("scroll", L)), () => {
5488
5521
  document && (document.removeEventListener("mouseup", V), window.removeEventListener("scroll", L));
5489
5522
  }));
5490
- const G = () => {
5523
+ const Y = () => {
5491
5524
  j(!I);
5492
5525
  }, V = (N) => {
5493
5526
  W.current && !W.current.contains(N.target) && j(!1);
@@ -5568,7 +5601,7 @@ const q2 = go({
5568
5601
  role: "button",
5569
5602
  "aria-controls": "pktUserDropdown",
5570
5603
  "aria-expanded": I,
5571
- onClick: G,
5604
+ onClick: Y,
5572
5605
  children: [
5573
5606
  /* @__PURE__ */ m.jsx(ee, { name: "user", className: "pkt-btn__icon" }),
5574
5607
  /* @__PURE__ */ m.jsx("span", { className: "pkt-header__user-fullname", children: (c == null ? void 0 : c.name) || (o == null ? void 0 : o.name) }),
@@ -5678,8 +5711,8 @@ const wa = Ne(
5678
5711
  }, x) => {
5679
5712
  const [$, P] = Ve(!1), I = () => {
5680
5713
  P(!$);
5681
- }, j = () => d ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : g ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = d ? h : g ? v : "", G = k ? "pkt-inputwrapper--disabled" : "", V = _ ? "pkt-inputwrapper--inline" : "", L = D ? "pkt-inputwrapper--error" : "", N = !!r && r !== "", q = i || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', X = A ? "fieldset" : N ? "div" : "label", de = A ? "legend" : N ? "h2" : "span", Q = C || (n ? `${e}-helptext` : void 0);
5682
- return /* @__PURE__ */ m.jsxs("div", { className: ["pkt-inputwrapper", S, G, V, L].join(" "), ref: x, children: [
5714
+ }, j = () => d ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : g ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = d ? h : g ? v : "", Y = k ? "pkt-inputwrapper--disabled" : "", V = _ ? "pkt-inputwrapper--inline" : "", L = D ? "pkt-inputwrapper--error" : "", N = !!r && r !== "", q = i || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', X = A ? "fieldset" : N ? "div" : "label", de = A ? "legend" : N ? "h2" : "span", Q = C || (n ? `${e}-helptext` : void 0);
5715
+ return /* @__PURE__ */ m.jsxs("div", { className: ["pkt-inputwrapper", S, Y, V, L].join(" "), ref: x, children: [
5683
5716
  T ? /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsxs(
5684
5717
  X,
5685
5718
  {
@@ -5815,7 +5848,7 @@ const V2 = Ne(
5815
5848
  }
5816
5849
  );
5817
5850
  V2.displayName = "PktLoader";
5818
- const Y2 = Ne(
5851
+ const G2 = Ne(
5819
5852
  ({
5820
5853
  children: e,
5821
5854
  className: t,
@@ -5851,7 +5884,7 @@ const Y2 = Ne(
5851
5884
  ] }) : null;
5852
5885
  }
5853
5886
  );
5854
- Y2.displayName = "PktMessagebox";
5887
+ G2.displayName = "PktMessagebox";
5855
5888
  /*!
5856
5889
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
5857
5890
  *
@@ -5861,7 +5894,7 @@ Y2.displayName = "PktMessagebox";
5861
5894
  function Iu(e) {
5862
5895
  return Object.prototype.toString.call(e) === "[object Object]";
5863
5896
  }
5864
- function G2(e) {
5897
+ function Y2(e) {
5865
5898
  var t, n;
5866
5899
  return Iu(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(Iu(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
5867
5900
  }
@@ -6086,7 +6119,7 @@ function tD() {
6086
6119
  }
6087
6120
  }
6088
6121
  }
6089
- var $ = v, P = g, I = o, j = b, W = c, G = T, V = C, L = u, N = h, q = d, X = k, de = _, Q = !1, se = !1;
6122
+ var $ = v, P = g, I = o, j = b, W = c, Y = T, V = C, L = u, N = h, q = d, X = k, de = _, Q = !1, se = !1;
6090
6123
  function he(K) {
6091
6124
  return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
6092
6125
  }
@@ -6129,7 +6162,7 @@ function tD() {
6129
6162
  function bt(K) {
6130
6163
  return x(K) === _;
6131
6164
  }
6132
- be.ContextConsumer = $, be.ContextProvider = P, be.Element = I, be.ForwardRef = j, be.Fragment = W, be.Lazy = G, be.Memo = V, be.Portal = L, be.Profiler = N, be.StrictMode = q, be.Suspense = X, be.SuspenseList = de, be.isAsyncMode = he, be.isConcurrentMode = re, be.isContextConsumer = ge, be.isContextProvider = at, be.isElement = Be, be.isForwardRef = _e, be.isFragment = Le, be.isLazy = ce, be.isMemo = dt, be.isPortal = jt, be.isProfiler = Dt, be.isStrictMode = yt, be.isSuspense = cn, be.isSuspenseList = bt, be.isValidElementType = A, be.typeOf = x;
6165
+ be.ContextConsumer = $, be.ContextProvider = P, be.Element = I, be.ForwardRef = j, be.Fragment = W, be.Lazy = Y, be.Memo = V, be.Portal = L, be.Profiler = N, be.StrictMode = q, be.Suspense = X, be.SuspenseList = de, be.isAsyncMode = he, be.isConcurrentMode = re, be.isContextConsumer = ge, be.isContextProvider = at, be.isElement = Be, be.isForwardRef = _e, be.isFragment = Le, be.isLazy = ce, be.isMemo = dt, be.isPortal = jt, be.isProfiler = Dt, be.isStrictMode = yt, be.isSuspense = cn, be.isSuspenseList = bt, be.isValidElementType = A, be.typeOf = x;
6133
6166
  }()), be;
6134
6167
  }
6135
6168
  process.env.NODE_ENV === "production" ? Js.exports = eD() : Js.exports = tD();
@@ -6299,7 +6332,7 @@ var mD = function(t) {
6299
6332
  var o = t.valueOf().toString().replace(/Symbol\((.*)\)/, "$1");
6300
6333
  return o ? "{Symbol('".concat(o, "')}") : "{Symbol()}";
6301
6334
  }
6302
- return typeof t == "function" ? "{".concat(dp(t, i), "}") : /* @__PURE__ */ ta(t) ? "{".concat($i(wo(t, i), !0, r, i), "}") : t instanceof Date ? isNaN(t.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(t.toISOString(), '")}') : G2(t) || Array.isArray(t) ? "{".concat(gD(t, n, r, i), "}") : "{".concat(String(t), "}");
6335
+ return typeof t == "function" ? "{".concat(dp(t, i), "}") : /* @__PURE__ */ ta(t) ? "{".concat($i(wo(t, i), !0, r, i), "}") : t instanceof Date ? isNaN(t.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(t.toISOString(), '")}') : Y2(t) || Array.isArray(t) ? "{".concat(gD(t, n, r, i), "}") : "{".concat(String(t), "}");
6303
6336
  }, yD = function(e, t, n, r, i, o, u, c) {
6304
6337
  if (!t && !r)
6305
6338
  throw new Error('The prop "'.concat(e, '" has no value and no default: could not be formatted'));
@@ -6367,8 +6400,8 @@ var xD = function(t, n, r, i, o) {
6367
6400
  });
6368
6401
  var P = wD(_)(x);
6369
6402
  if (P.forEach(function(j) {
6370
- var W = yD(j, Object.keys(h).includes(j), h[j], Object.keys(v).includes(j), v[j], t, n, r), G = W.attributeFormattedInline, V = W.attributeFormattedMultiline, L = W.isMultilineAttribute;
6371
- L && (A = !0), F += G, S += V;
6403
+ var W = yD(j, Object.keys(h).includes(j), h[j], Object.keys(v).includes(j), v[j], t, n, r), Y = W.attributeFormattedInline, V = W.attributeFormattedMultiline, L = W.isMultilineAttribute;
6404
+ L && (A = !0), F += Y, S += V;
6372
6405
  }), S += `
6373
6406
  `.concat(Xt(n, C)), ED(P, F, A, t, n, C, b) ? T = S : T = F, c && c.length > 0) {
6374
6407
  var I = n + 1;
@@ -6447,12 +6480,12 @@ var xD = function(t, n, r, i, o) {
6447
6480
  }, gp = (e, t, n, r) => {
6448
6481
  if (t && typeof t == "object" || typeof t == "function") for (let i of qD(t)) !UD.call(e, i) && i !== n && Ti(e, i, { get: () => t[i], enumerable: !(r = RD(t, i)) || r.enumerable });
6449
6482
  return e;
6450
- }, Ni = (e, t, n) => (n = e != null ? MD(HD(e)) : {}, gp(Ti(n, "default", { value: e, enumerable: !0 }), e)), zD = (e) => gp(Ti({}, "__esModule", { value: !0 }), e), VD = (e, t, n) => t.has(e) || mp("Cannot " + n), YD = (e, t, n) => t.has(e) ? mp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Jr = (e, t, n) => (VD(e, t, "access private method"), n), xo = Co((e, t) => {
6483
+ }, Ni = (e, t, n) => (n = e != null ? MD(HD(e)) : {}, gp(Ti(n, "default", { value: e, enumerable: !0 }), e)), zD = (e) => gp(Ti({}, "__esModule", { value: !0 }), e), VD = (e, t, n) => t.has(e) || mp("Cannot " + n), GD = (e, t, n) => t.has(e) ? mp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Jr = (e, t, n) => (VD(e, t, "access private method"), n), xo = Co((e, t) => {
6451
6484
  var n = new Proxy(String, { get: () => n });
6452
6485
  t.exports = n;
6453
6486
  }), vp = {};
6454
6487
  Bi(vp, { default: () => yp, shouldHighlight: () => Dp });
6455
- var Dp, yp, GD = WD(() => {
6488
+ var Dp, yp, YD = WD(() => {
6456
6489
  Dp = () => !1, yp = String;
6457
6490
  }), KD = Co((e, t) => {
6458
6491
  var n = String, r = function() {
@@ -6461,7 +6494,7 @@ var Dp, yp, GD = WD(() => {
6461
6494
  t.exports = r(), t.exports.createColors = r;
6462
6495
  }), JD = Co((e) => {
6463
6496
  Object.defineProperty(e, "__esModule", { value: !0 }), e.codeFrameColumns = b, e.default = k;
6464
- var t = (GD(), zD(vp)), n = i(KD(), !0);
6497
+ var t = (YD(), zD(vp)), n = i(KD(), !0);
6465
6498
  function r(_) {
6466
6499
  if (typeof WeakMap != "function") return null;
6467
6500
  var C = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap();
@@ -6490,8 +6523,8 @@ var Dp, yp, GD = WD(() => {
6490
6523
  }
6491
6524
  var v = /\r\n|[\n\r\u2028\u2029]/;
6492
6525
  function D(_, C, T) {
6493
- let F = Object.assign({ column: 0, line: -1 }, _.start), S = Object.assign({}, F, _.end), { linesAbove: A = 2, linesBelow: x = 3 } = T || {}, $ = F.line, P = F.column, I = S.line, j = S.column, W = Math.max($ - (A + 1), 0), G = Math.min(C.length, I + x);
6494
- $ === -1 && (W = 0), I === -1 && (G = C.length);
6526
+ let F = Object.assign({ column: 0, line: -1 }, _.start), S = Object.assign({}, F, _.end), { linesAbove: A = 2, linesBelow: x = 3 } = T || {}, $ = F.line, P = F.column, I = S.line, j = S.column, W = Math.max($ - (A + 1), 0), Y = Math.min(C.length, I + x);
6527
+ $ === -1 && (W = 0), I === -1 && (Y = C.length);
6495
6528
  let V = I - $, L = {};
6496
6529
  if (V) for (let N = 0; N <= V; N++) {
6497
6530
  let q = N + $;
@@ -6506,11 +6539,11 @@ var Dp, yp, GD = WD(() => {
6506
6539
  }
6507
6540
  }
6508
6541
  else P === j ? P ? L[$] = [P, 0] : L[$] = !0 : L[$] = [P, j - P];
6509
- return { start: W, end: G, markerLines: L };
6542
+ return { start: W, end: Y, markerLines: L };
6510
6543
  }
6511
6544
  function b(_, C, T = {}) {
6512
- let F = (T.highlightCode || T.forceColor) && (0, t.shouldHighlight)(T), S = d(T.forceColor), A = g(S), x = (L, N) => F ? L(N) : N, $ = _.split(v), { start: P, end: I, markerLines: j } = D(C, $, T), W = C.start && typeof C.start.column == "number", G = String(I).length, V = (F ? (0, t.default)(_, T) : _).split(v, I).slice(P, I).map((L, N) => {
6513
- let q = P + 1 + N, X = ` ${` ${q}`.slice(-G)} |`, de = j[q], Q = !j[q + 1];
6545
+ let F = (T.highlightCode || T.forceColor) && (0, t.shouldHighlight)(T), S = d(T.forceColor), A = g(S), x = (L, N) => F ? L(N) : N, $ = _.split(v), { start: P, end: I, markerLines: j } = D(C, $, T), W = C.start && typeof C.start.column == "number", Y = String(I).length, V = (F ? (0, t.default)(_, T) : _).split(v, I).slice(P, I).map((L, N) => {
6546
+ let q = P + 1 + N, X = ` ${` ${q}`.slice(-Y)} |`, de = j[q], Q = !j[q + 1];
6514
6547
  if (de) {
6515
6548
  let se = "";
6516
6549
  if (Array.isArray(de)) {
@@ -6522,7 +6555,7 @@ var Dp, yp, GD = WD(() => {
6522
6555
  } else return ` ${x(A.gutter, X)}${L.length > 0 ? ` ${L}` : ""}`;
6523
6556
  }).join(`
6524
6557
  `);
6525
- return T.message && !W && (V = `${" ".repeat(G + 1)}${T.message}
6558
+ return T.message && !W && (V = `${" ".repeat(Y + 1)}${T.message}
6526
6559
  ${V}`), F ? S.reset(V) : V;
6527
6560
  }
6528
6561
  function k(_, C, T, F = {}) {
@@ -6629,9 +6662,9 @@ function ZD(e, t, n, r, i) {
6629
6662
  var k = o[d - 1];
6630
6663
  return d > 1 && typeof k.value == "string" && (k.added || k.removed) && e.equals("", k.value) && (o[d - 2].value += k.value, o.pop()), o;
6631
6664
  }
6632
- var Vu = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Yu = /\S/, bp = new bn();
6665
+ var Vu = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Gu = /\S/, bp = new bn();
6633
6666
  bp.equals = function(e, t) {
6634
- return this.options.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e === t || this.options.ignoreWhitespace && !Yu.test(e) && !Yu.test(t);
6667
+ return this.options.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e === t || this.options.ignoreWhitespace && !Gu.test(e) && !Gu.test(t);
6635
6668
  };
6636
6669
  bp.tokenize = function(e) {
6637
6670
  for (var t = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), n = 0; n < t.length - 1; n++) !t[n + 1] && t[n + 2] && Vu.test(t[n]) && Vu.test(t[n + 2]) && (t[n] += t[n + 2], t.splice(n + 1, 2), n--);
@@ -6772,16 +6805,16 @@ var uy = class extends Error {
6772
6805
  nr(this, "name", "InvalidDocError");
6773
6806
  this.doc = t;
6774
6807
  }
6775
- }, Dr = uy, Gu = {};
6808
+ }, Dr = uy, Yu = {};
6776
6809
  function cy(e, t, n, r) {
6777
6810
  let i = [e];
6778
6811
  for (; i.length > 0; ) {
6779
6812
  let o = i.pop();
6780
- if (o === Gu) {
6813
+ if (o === Yu) {
6781
6814
  n(i.pop());
6782
6815
  continue;
6783
6816
  }
6784
- n && i.push(o, Gu);
6817
+ n && i.push(o, Yu);
6785
6818
  let u = Vn(o);
6786
6819
  if (!u) throw new Dr(o);
6787
6820
  if ((t == null ? void 0 : t(o)) !== !1) switch (u) {
@@ -7386,7 +7419,7 @@ function Uy(e, t, n = 0) {
7386
7419
  }
7387
7420
  var $o = Uy, Nn, ao, hi, Wy = class {
7388
7421
  constructor(e) {
7389
- YD(this, Nn), this.stack = [e];
7422
+ GD(this, Nn), this.stack = [e];
7390
7423
  }
7391
7424
  get key() {
7392
7425
  let { stack: e, siblings: t } = this;
@@ -7515,16 +7548,16 @@ var zy = Wy, jp = new Proxy(() => {
7515
7548
  function Vy(e) {
7516
7549
  return e !== null && typeof e == "object";
7517
7550
  }
7518
- var Yy = Vy;
7551
+ var Gy = Vy;
7519
7552
  function* Pp(e, t) {
7520
- let { getVisitorKeys: n, filter: r = () => !0 } = t, i = (o) => Yy(o) && r(o);
7553
+ let { getVisitorKeys: n, filter: r = () => !0 } = t, i = (o) => Gy(o) && r(o);
7521
7554
  for (let o of n(e)) {
7522
7555
  let u = e[o];
7523
7556
  if (Array.isArray(u)) for (let c of u) i(c) && (yield c);
7524
7557
  else i(u) && (yield u);
7525
7558
  }
7526
7559
  }
7527
- function* Gy(e, t) {
7560
+ function* Yy(e, t) {
7528
7561
  let n = [e];
7529
7562
  for (let r = 0; r < n.length; r++) {
7530
7563
  let i = n[r];
@@ -7840,7 +7873,7 @@ function k0(e, t) {
7840
7873
  for (; v < i; ) for (u = t.charCodeAt(o + v), d = v++, c = v, g = 0; g < r; g++) h = u === ac[g] ? d : d + 1, d = Is[g], c = Is[g] = d > c ? h > c ? c + 1 : h : h > d ? d + 1 : h;
7841
7874
  return c;
7842
7875
  }
7843
- var Yp = (e, t, { descriptor: n, logger: r, schemas: i }) => {
7876
+ var Gp = (e, t, { descriptor: n, logger: r, schemas: i }) => {
7844
7877
  let o = [`Ignored unknown option ${rc.default.yellow(n.pair({ key: e, value: t }))}.`], u = Object.keys(i).sort().find((c) => k0(e, c) < 3);
7845
7878
  u && o.push(`Did you mean ${rc.default.blue(n.key(u))}?`), r.warn(o.join(" "));
7846
7879
  }, w0 = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
@@ -8007,10 +8040,10 @@ function P0(e) {
8007
8040
  function sc(e) {
8008
8041
  return e === void 0 ? {} : e;
8009
8042
  }
8010
- function Gp(e) {
8043
+ function Yp(e) {
8011
8044
  if (typeof e == "string") return { text: e };
8012
8045
  let { text: t, list: n } = e;
8013
- return L0((t || n) !== void 0, "Unexpected `expected` result, there should be at least one field."), n ? { text: t, list: { title: n.title, values: n.values.map(Gp) } } : { text: t };
8046
+ return L0((t || n) !== void 0, "Unexpected `expected` result, there should be at least one field."), n ? { text: t, list: { title: n.title, values: n.values.map(Yp) } } : { text: t };
8014
8047
  }
8015
8048
  function oc(e, t) {
8016
8049
  return e === !0 ? !0 : e === !1 ? { value: t } : e;
@@ -8075,11 +8108,11 @@ var O0 = class extends kn {
8075
8108
  validate(e) {
8076
8109
  return typeof e == "string";
8077
8110
  }
8078
- }, R0 = pr, q0 = Yp, H0 = b0, U0 = y0, W0 = class {
8111
+ }, R0 = pr, q0 = Gp, H0 = b0, U0 = y0, W0 = class {
8079
8112
  constructor(e, t) {
8080
8113
  let { logger: n = console, loggerPrintWidth: r = 80, descriptor: i = R0, unknown: o = q0, invalid: u = H0, deprecated: c = U0, missing: d = () => !1, required: h = () => !1, preprocess: g = (D) => D, postprocess: v = () => fi } = t || {};
8081
8114
  this._utils = { descriptor: i, logger: n || { warn: () => {
8082
- } }, loggerPrintWidth: r, schemas: A0(e, "name"), normalizeDefaultResult: sc, normalizeExpectedResult: Gp, normalizeDeprecatedResult: lc, normalizeForwardResult: so, normalizeRedirectResult: cc, normalizeValidateResult: oc }, this._unknownHandler = o, this._invalidHandler = P0(u), this._deprecatedHandler = c, this._identifyMissing = (D, b) => !(D in b) || d(D, b), this._identifyRequired = h, this._preprocess = g, this._postprocess = v, this.cleanHistory();
8115
+ } }, loggerPrintWidth: r, schemas: A0(e, "name"), normalizeDefaultResult: sc, normalizeExpectedResult: Yp, normalizeDeprecatedResult: lc, normalizeForwardResult: so, normalizeRedirectResult: cc, normalizeValidateResult: oc }, this._unknownHandler = o, this._invalidHandler = P0(u), this._deprecatedHandler = c, this._identifyMissing = (D, b) => !(D in b) || d(D, b), this._identifyRequired = h, this._preprocess = g, this._postprocess = v, this.cleanHistory();
8083
8116
  }
8084
8117
  cleanHistory() {
8085
8118
  this._hasDeprecationWarned = T0();
@@ -8188,7 +8221,7 @@ function z0(e, t, { logger: n = !1, isCLI: r = !1, passThrough: i = !1, FlagSche
8188
8221
  } else u = pr;
8189
8222
  let c = i ? Array.isArray(i) ? (D, b) => i.includes(D) ? { [D]: b } : void 0 : (D, b) => ({ [D]: b }) : (D, b, k) => {
8190
8223
  let { _, ...C } = k.schemas;
8191
- return Yp(D, b, { ...k, schemas: C });
8224
+ return Gp(D, b, { ...k, schemas: C });
8192
8225
  }, d = V0(t, { isCLI: r, FlagSchema: o }), h = new W0(d, { logger: n, unknown: c, descriptor: u }), g = n !== !1;
8193
8226
  g && Ms && (h._hasDeprecationWarned = Ms);
8194
8227
  let v = h.normalize(e);
@@ -8197,10 +8230,10 @@ function z0(e, t, { logger: n = !1, isCLI: r = !1, passThrough: i = !1, FlagSche
8197
8230
  function V0(e, { isCLI: t, FlagSchema: n }) {
8198
8231
  let r = [];
8199
8232
  t && r.push(S0.create({ name: "_" }));
8200
- for (let i of e) r.push(Y0(i, { isCLI: t, optionInfos: e, FlagSchema: n })), i.alias && t && r.push(_0.create({ name: i.alias, sourceName: i.name }));
8233
+ for (let i of e) r.push(G0(i, { isCLI: t, optionInfos: e, FlagSchema: n })), i.alias && t && r.push(_0.create({ name: i.alias, sourceName: i.name }));
8201
8234
  return r;
8202
8235
  }
8203
- function Y0(e, { isCLI: t, optionInfos: n, FlagSchema: r }) {
8236
+ function G0(e, { isCLI: t, optionInfos: n, FlagSchema: r }) {
8204
8237
  let { name: i } = e, o = { name: i }, u, c = {};
8205
8238
  switch (e.type) {
8206
8239
  case "int":
@@ -8230,7 +8263,7 @@ function Y0(e, { isCLI: t, optionInfos: n, FlagSchema: r }) {
8230
8263
  }
8231
8264
  return e.array ? E0.create({ ...t ? { preprocess: (d) => Array.isArray(d) ? d : [d] } : {}, ...c, valueSchema: u.create(o) }) : u.create({ ...o, ...c });
8232
8265
  }
8233
- var G0 = z0, K0 = (e, t, n) => {
8266
+ var Y0 = z0, K0 = (e, t, n) => {
8234
8267
  if (!(e && t == null)) {
8235
8268
  if (t.findLast) return t.findLast(n);
8236
8269
  for (let r = t.length - 1; r >= 0; r--) {
@@ -8278,7 +8311,7 @@ async function Q0(e, t = {}) {
8278
8311
  r.printer = h;
8279
8312
  let g = d.defaultOptions ? Object.fromEntries(Object.entries(d.defaultOptions).filter(([, D]) => D !== void 0)) : {}, v = { ...o, ...g };
8280
8313
  for (let [D, b] of Object.entries(v)) (r[D] === null || r[D] === void 0) && (r[D] = b);
8281
- return r.parser === "json" && (r.trailingComma = "none"), G0(r, i, { passThrough: Object.keys(dc), ...t });
8314
+ return r.parser === "json" && (r.trailingComma = "none"), Y0(r, i, { passThrough: Object.keys(dc), ...t });
8282
8315
  }
8283
8316
  var Cr = Q0, Z0 = Ni(JD());
8284
8317
  async function eb(e, t) {
@@ -8375,7 +8408,7 @@ async function Zp(e, t) {
8375
8408
  }
8376
8409
  function sb(e, t) {
8377
8410
  let { cursorOffset: n, locStart: r, locEnd: i } = t, o = Ii(t.printer.getVisitorKeys), u = (d) => r(d) <= n && i(d) >= n, c = e;
8378
- for (let d of Gy(e, { getVisitorKeys: o, filter: u })) c = d;
8411
+ for (let d of Yy(e, { getVisitorKeys: o, filter: u })) c = d;
8379
8412
  return c;
8380
8413
  }
8381
8414
  var ob = sb;
@@ -8568,7 +8601,7 @@ async function Cb(e, t) {
8568
8601
  var id = {};
8569
8602
  Bi(id, { builders: () => xb, printer: () => _b, utils: () => Sb });
8570
8603
  var xb = { join: Ap, line: Ep, softline: ky, hardline: On, literalline: Fp, group: xp, conditionalGroup: gy, fill: _p, lineSuffix: eo, lineSuffixBoundary: yy, cursor: to, breakParent: Pi, ifBreak: vy, trim: by, indent: xi, indentIfBreak: Dy, align: yr, addAlignmentToDoc: $p, markAsRoot: fy, dedentToRoot: hy, dedent: my, hardlineWithoutBreakParent: Eo, literallineWithoutBreakParent: Sp, label: wy, concat: (e) => e }, _b = { printDocToString: Oi }, Sb = { willBreak: By, traverseDoc: So, findInDoc: Ao, mapDoc: Li, removeLines: Py, stripTrailingHardline: Tp, replaceEndOfLine: Iy, canBreak: Ry }, Eb = "3.3.3", sd = {};
8571
- Bi(sd, { addDanglingComment: () => jn, addLeadingComment: () => ur, addTrailingComment: () => cr, getAlignmentSize: () => $o, getIndentSize: () => Nb, getMaxContinuousCount: () => Lb, getNextNonSpaceNonCommentCharacter: () => Ib, getNextNonSpaceNonCommentCharacterIndex: () => Vb, getStringWidth: () => Fo, hasNewline: () => mn, hasNewlineInRange: () => Rb, hasSpaces: () => Hb, isNextLineEmpty: () => Jb, isNextLineEmptyAfterIndex: () => Oo, isPreviousLineEmpty: () => Gb, makeString: () => Wb, skip: () => Ca, skipEverythingButNewLine: () => Op, skipInlineComment: () => jo, skipNewline: () => qn, skipSpaces: () => yn, skipToLineEnd: () => Lp, skipTrailingComment: () => Po, skipWhitespace: () => Ky });
8604
+ Bi(sd, { addDanglingComment: () => jn, addLeadingComment: () => ur, addTrailingComment: () => cr, getAlignmentSize: () => $o, getIndentSize: () => Nb, getMaxContinuousCount: () => Lb, getNextNonSpaceNonCommentCharacter: () => Ib, getNextNonSpaceNonCommentCharacterIndex: () => Vb, getStringWidth: () => Fo, hasNewline: () => mn, hasNewlineInRange: () => Rb, hasSpaces: () => Hb, isNextLineEmpty: () => Jb, isNextLineEmptyAfterIndex: () => Oo, isPreviousLineEmpty: () => Yb, makeString: () => Wb, skip: () => Ca, skipEverythingButNewLine: () => Op, skipInlineComment: () => jo, skipNewline: () => qn, skipSpaces: () => yn, skipToLineEnd: () => Lp, skipTrailingComment: () => Po, skipWhitespace: () => Ky });
8572
8605
  function Fb(e, t) {
8573
8606
  if (t === !1) return !1;
8574
8607
  if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
@@ -8634,11 +8667,11 @@ function zb(e, t, n) {
8634
8667
  function Vb(e, t) {
8635
8668
  return arguments.length === 2 || typeof t == "number" ? Lo(e, t) : zb(...arguments);
8636
8669
  }
8637
- function Yb(e, t, n) {
8670
+ function Gb(e, t, n) {
8638
8671
  return No(e, n(t));
8639
8672
  }
8640
- function Gb(e, t) {
8641
- return arguments.length === 2 || typeof t == "number" ? No(e, t) : Yb(...arguments);
8673
+ function Yb(e, t) {
8674
+ return arguments.length === 2 || typeof t == "number" ? No(e, t) : Gb(...arguments);
8642
8675
  }
8643
8676
  function Kb(e, t, n) {
8644
8677
  return Oo(e, n(t));
@@ -8680,7 +8713,7 @@ var Qb = Pn(Up, 0), Zb = { parse: Pn(yb), formatAST: Pn(bb), formatDoc: Pn(kb),
8680
8713
  c(k, { languages: () => jf, options: () => Lf, parsers: () => $l, printers: () => Hm });
8681
8714
  var _ = (a, s, l, p) => {
8682
8715
  if (!(a && s == null)) return s.replaceAll ? s.replaceAll(l, p) : l.global ? s.replace(l, p) : s.split(l).join(p);
8683
- }, C = _, T = "string", F = "array", S = "cursor", A = "indent", x = "align", $ = "trim", P = "group", I = "fill", j = "if-break", W = "indent-if-break", G = "line-suffix", V = "line-suffix-boundary", L = "line", N = "label", q = "break-parent", X = /* @__PURE__ */ new Set([S, A, x, $, P, I, j, W, G, V, L, N, q]);
8716
+ }, C = _, T = "string", F = "array", S = "cursor", A = "indent", x = "align", $ = "trim", P = "group", I = "fill", j = "if-break", W = "indent-if-break", Y = "line-suffix", V = "line-suffix-boundary", L = "line", N = "label", q = "break-parent", X = /* @__PURE__ */ new Set([S, A, x, $, P, I, j, W, Y, V, L, N, q]);
8684
8717
  function de(a) {
8685
8718
  if (typeof a == "string") return T;
8686
8719
  if (Array.isArray(a)) return F;
@@ -8732,7 +8765,7 @@ Expected it to be ${p}.`;
8732
8765
  function cn(a, s) {
8733
8766
  return { type: W, contents: a, groupId: s.groupId, negate: s.negate };
8734
8767
  }
8735
- var bt = { type: q }, K = { type: L, hard: !0 }, Pt = { type: L, hard: !0, literal: !0 }, ke = { type: L }, je = { type: L, soft: !0 }, Ce = [K, bt], Gn = [Pt, bt];
8768
+ var bt = { type: q }, K = { type: L, hard: !0 }, Pt = { type: L, hard: !0, literal: !0 }, ke = { type: L }, je = { type: L, soft: !0 }, Ce = [K, bt], Yn = [Pt, bt];
8736
8769
  function pn(a, s) {
8737
8770
  let l = [];
8738
8771
  for (let p = 0; p < s.length; p++) p !== 0 && l.push(a), l.push(s[p]);
@@ -8766,7 +8799,7 @@ Expected it to be ${p}.`;
8766
8799
  case A:
8767
8800
  case W:
8768
8801
  case N:
8769
- case G:
8802
+ case Y:
8770
8803
  return s({ ...y, contents: p(y.contents) });
8771
8804
  case T:
8772
8805
  case S:
@@ -8792,7 +8825,7 @@ Expected it to be ${p}.`;
8792
8825
  case x:
8793
8826
  case A:
8794
8827
  case W:
8795
- case G:
8828
+ case Y:
8796
8829
  if (!a.contents) return "";
8797
8830
  break;
8798
8831
  case j:
@@ -8823,7 +8856,7 @@ Expected it to be ${p}.`;
8823
8856
  function Ea(a) {
8824
8857
  return _r(a, (s) => Hi(s));
8825
8858
  }
8826
- function ht(a, s = Gn) {
8859
+ function ht(a, s = Yn) {
8827
8860
  return _r(a, (l) => typeof l == "string" ? pn(s, l.split(`
8828
8861
  `)) : l);
8829
8862
  }
@@ -8896,13 +8929,13 @@ Expected it to be ${p}.`;
8896
8929
  };
8897
8930
  kt = /* @__PURE__ */ new WeakMap();
8898
8931
  var Wi = Ui, zi = [" ", `
8899
- `, "\f", "\r", " "], Vi = new Wi(zi), xt = Vi, Yi = class extends Error {
8932
+ `, "\f", "\r", " "], Vi = new Wi(zi), xt = Vi, Gi = class extends Error {
8900
8933
  constructor(s, l, p = "type") {
8901
8934
  super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);
8902
8935
  nr(this, "name", "UnexpectedNodeError");
8903
8936
  this.node = s;
8904
8937
  }
8905
- }, Er = Yi;
8938
+ }, Er = Gi;
8906
8939
  function Ta(a) {
8907
8940
  return (a == null ? void 0 : a.type) === "front-matter";
8908
8941
  }
@@ -8914,7 +8947,7 @@ Expected it to be ${p}.`;
8914
8947
  a.type === "angularIcuExpression" && (s.switchValue = a.switchValue.trim()), a.type === "angularLetDeclarationInitializer" && delete s.value;
8915
8948
  }
8916
8949
  $r.ignoredProperties = Fr;
8917
- var Gi = $r;
8950
+ var Yi = $r;
8918
8951
  async function Ba(a, s) {
8919
8952
  if (a.language === "yaml") {
8920
8953
  let l = a.value.trim(), p = l ? await s(l, { parser: "yaml" }) : "";
@@ -8925,7 +8958,7 @@ Expected it to be ${p}.`;
8925
8958
  function Cn(a, s = !0) {
8926
8959
  return [_e([je, a]), s ? je : ""];
8927
8960
  }
8928
- function Yt(a, s) {
8961
+ function Gt(a, s) {
8929
8962
  let l = a.type === "NGRoot" ? a.node.type === "NGMicrosyntax" && a.node.body.length === 1 && a.node.body[0].type === "NGMicrosyntaxExpression" ? a.node.body[0].expression : a.node : a.type === "JsExpressionRoot" ? a.node : a;
8930
8963
  return l && (l.type === "ObjectExpression" || l.type === "ArrayExpression" || (s.parser === "__vue_expression" || s.parser === "__vue_ts_expression") && (l.type === "TemplateLiteral" || l.type === "StringLiteral"));
8931
8964
  }
@@ -8940,7 +8973,7 @@ Expected it to be ${p}.`;
8940
8973
  }
8941
8974
  function Ji(a, s, l, p) {
8942
8975
  let { node: f } = l, y = p.originalText.slice(f.sourceSpan.start.offset, f.sourceSpan.end.offset);
8943
- return /^\s*$/u.test(y) ? "" : wt(y, a, { parser: "__ng_directive", __isInHtmlAttribute: !1 }, Yt);
8976
+ return /^\s*$/u.test(y) ? "" : wt(y, a, { parser: "__ng_directive", __isInHtmlAttribute: !1 }, Gt);
8944
8977
  }
8945
8978
  var Na = Ji, ja = (a) => String(a).split(/[/\\]/u).pop();
8946
8979
  function Pa(a, s) {
@@ -9065,13 +9098,13 @@ Expected it to be ${p}.`;
9065
9098
  if (a.endsWith("json") || a.endsWith("importmap") || a === "speculationrules") return "json";
9066
9099
  }
9067
9100
  }
9068
- function Yd(a, s) {
9101
+ function Gd(a, s) {
9069
9102
  let { name: l, attrMap: p } = a;
9070
9103
  if (l !== "script" || Object.prototype.hasOwnProperty.call(p, "src")) return;
9071
9104
  let { type: f, lang: y } = a.attrMap;
9072
9105
  return !y && !f ? "babel" : Kn(s, { language: y }) ?? ol(f);
9073
9106
  }
9074
- function Gd(a, s) {
9107
+ function Yd(a, s) {
9075
9108
  if (!ns(a, s)) return;
9076
9109
  let { attrMap: l } = a;
9077
9110
  if (Object.prototype.hasOwnProperty.call(l, "src")) return;
@@ -9084,7 +9117,7 @@ Expected it to be ${p}.`;
9084
9117
  return l ? Kn(s, { language: l }) : "css";
9085
9118
  }
9086
9119
  function ll(a, s) {
9087
- return Yd(a, s) ?? Kd(a, s) ?? Gd(a, s);
9120
+ return Gd(a, s) ?? Kd(a, s) ?? Yd(a, s);
9088
9121
  }
9089
9122
  function Br(a) {
9090
9123
  return a === "block" || a === "list-item" || a.startsWith("table");
@@ -9197,7 +9230,7 @@ Expected it to be ${p}.`;
9197
9230
  return l;
9198
9231
  }
9199
9232
  function rs({ parser: a }) {
9200
- return (s, l, p) => wt(dn(p.node), s, { parser: a }, Yt);
9233
+ return (s, l, p) => wt(dn(p.node), s, { parser: a }, Gt);
9201
9234
  }
9202
9235
  var lh = rs({ parser: "__ng_action" }), uh = rs({ parser: "__ng_binding" }), ch = rs({ parser: "__ng_directive" });
9203
9236
  function ph(a, s) {
@@ -9223,20 +9256,20 @@ Expected it to be ${p}.`;
9223
9256
  var mh = /^[ \t\n\r\u000c]+/, gh = /^[, \t\n\r\u000c]+/, vh = /^[^ \t\n\r\u000c]+/, Dh = /[,]+$/, gl = /^\d+$/, yh = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;
9224
9257
  function bh(a) {
9225
9258
  let s = a.length, l, p, f, y, E, B = 0, R;
9226
- function Y(le) {
9259
+ function G(le) {
9227
9260
  let Se, Ue = le.exec(a.substring(B));
9228
9261
  if (Ue) return [Se] = Ue, B += Se.length, Se;
9229
9262
  }
9230
9263
  let U = [];
9231
9264
  for (; ; ) {
9232
- if (Y(gh), B >= s) {
9265
+ if (G(gh), B >= s) {
9233
9266
  if (U.length === 0) throw new Error("Must contain one or more image candidate strings.");
9234
9267
  return U;
9235
9268
  }
9236
- R = B, l = Y(vh), p = [], l.slice(-1) === "," ? (l = l.replace(Dh, ""), fe()) : De();
9269
+ R = B, l = G(vh), p = [], l.slice(-1) === "," ? (l = l.replace(Dh, ""), fe()) : De();
9237
9270
  }
9238
9271
  function De() {
9239
- for (Y(mh), f = "", y = "in descriptor"; ; ) {
9272
+ for (G(mh), f = "", y = "in descriptor"; ; ) {
9240
9273
  if (E = a.charAt(B), y === "in descriptor") if (ml(E)) f && (p.push(f), f = "", y = "after descriptor");
9241
9274
  else if (E === ",") {
9242
9275
  B += 1, f && p.push(f), fe();
@@ -9276,11 +9309,11 @@ Expected it to be ${p}.`;
9276
9309
  let [p] = l, f = vl[p], y = s.map((U) => U.source.value), E = Math.max(...y.map((U) => U.length)), B = s.map((U) => U[p] ? String(U[p].value) : ""), R = B.map((U) => {
9277
9310
  let De = U.indexOf(".");
9278
9311
  return De === -1 ? U.length : De;
9279
- }), Y = Math.max(...R);
9312
+ }), G = Math.max(...R);
9280
9313
  return Cn(pn([",", ke], y.map((U, De) => {
9281
9314
  let fe = [U], le = B[De];
9282
9315
  if (le) {
9283
- let Se = E - U.length + 1, Ue = Y - R[De], Ze = " ".repeat(Se + Ue);
9316
+ let Se = E - U.length + 1, Ue = G - R[De], Ze = " ".repeat(Se + Ue);
9284
9317
  fe.push(yt(Ze, " "), le + f);
9285
9318
  }
9286
9319
  return fe;
@@ -9299,7 +9332,7 @@ Expected it to be ${p}.`;
9299
9332
  var is = Eh;
9300
9333
  function Fh(a, s, l) {
9301
9334
  let { node: p } = l, f = dn(p);
9302
- return wt(`type T<${f}> = any`, a, { parser: "babel-ts", __isEmbeddedTypescriptGenericParameters: !0 }, Yt);
9335
+ return wt(`type T<${f}> = any`, a, { parser: "babel-ts", __isEmbeddedTypescriptGenericParameters: !0 }, Gt);
9303
9336
  }
9304
9337
  function Ah(a, s, { parseWithTs: l }) {
9305
9338
  return wt(`function _(${a}) {}`, s, { parser: l ? "babel-ts" : "babel", __isVueBindings: !0 });
@@ -9320,7 +9353,7 @@ Expected it to be ${p}.`;
9320
9353
  let E = C(!1, f[1].trim(), p, ""), B = E.match(l);
9321
9354
  B ? (y.alias = E.replace(l, ""), y.iterator1 = B[1].trim(), B[2] && (y.iterator2 = B[2].trim())) : y.alias = E;
9322
9355
  let R = [y.alias, y.iterator1, y.iterator2];
9323
- if (!R.some((Y, U) => !Y && (U === 0 || R.slice(U + 1).some(Boolean)))) return { left: R.filter(Boolean).join(","), operator: f[2], right: y.for };
9356
+ if (!R.some((G, U) => !G && (U === 0 || R.slice(U + 1).some(Boolean)))) return { left: R.filter(Boolean).join(","), operator: f[2], right: y.for };
9324
9357
  }
9325
9358
  function Nh(a, s) {
9326
9359
  if (s.parser !== "vue") return;
@@ -9334,13 +9367,13 @@ Expected it to be ${p}.`;
9334
9367
  if (p.startsWith("v-")) return (E) => Dl(f, E, { parseWithTs: y });
9335
9368
  }
9336
9369
  function jh(a, s, { parseWithTs: l }) {
9337
- return $h(a) ? Dl(a, s, { parseWithTs: l }) : wt(a, s, { parser: l ? "__vue_ts_event_binding" : "__vue_event_binding" }, Yt);
9370
+ return $h(a) ? Dl(a, s, { parseWithTs: l }) : wt(a, s, { parser: l ? "__vue_ts_event_binding" : "__vue_event_binding" }, Gt);
9338
9371
  }
9339
9372
  function Ph(a, s, { parseWithTs: l }) {
9340
- return wt(a, s, { parser: l ? "__vue_ts_expression" : "__vue_expression" }, Yt);
9373
+ return wt(a, s, { parser: l ? "__vue_ts_expression" : "__vue_expression" }, Gt);
9341
9374
  }
9342
9375
  function Dl(a, s, { parseWithTs: l }) {
9343
- return wt(a, s, { parser: l ? "__ts_expression" : "__js_expression" }, Yt);
9376
+ return wt(a, s, { parser: l ? "__ts_expression" : "__js_expression" }, Gt);
9344
9377
  }
9345
9378
  var Lh = Nh;
9346
9379
  function Oh(a, s) {
@@ -9442,7 +9475,7 @@ Expected it to be ${p}.`;
9442
9475
  var p;
9443
9476
  let { node: f } = a;
9444
9477
  if (!ss(f.attrs)) return f.isSelfClosing ? " " : "";
9445
- let y = ((p = f.prev) == null ? void 0 : p.type) === "comment" && Uh(f.prev.value), E = typeof y == "boolean" ? () => y : Array.isArray(y) ? (De) => y.includes(De.rawName) : () => !1, B = a.map(({ node: De }) => E(De) ? ht(s.originalText.slice(Ma(De), Ra(De))) : l(), "attrs"), R = f.type === "element" && f.fullName === "script" && f.attrs.length === 1 && f.attrs[0].fullName === "src" && f.children.length === 0, Y = s.singleAttributePerLine && f.attrs.length > 1 && !Xn(f, s) ? Ce : ke, U = [_e([R ? " " : ke, pn(Y, B)])];
9478
+ let y = ((p = f.prev) == null ? void 0 : p.type) === "comment" && Uh(f.prev.value), E = typeof y == "boolean" ? () => y : Array.isArray(y) ? (De) => y.includes(De.rawName) : () => !1, B = a.map(({ node: De }) => E(De) ? ht(s.originalText.slice(Ma(De), Ra(De))) : l(), "attrs"), R = f.type === "element" && f.fullName === "script" && f.attrs.length === 1 && f.attrs[0].fullName === "src" && f.children.length === 0, G = s.singleAttributePerLine && f.attrs.length > 1 && !Xn(f, s) ? Ce : ke, U = [_e([R ? " " : ke, pn(G, B)])];
9446
9479
  return f.firstChild && Ha(f.firstChild) || f.isSelfClosing && Pr(f.parent) || R ? U.push(f.isSelfClosing ? " " : "") : U.push(s.bracketSameLine ? f.isSelfClosing ? " " : "" : f.isSelfClosing ? ke : je), U;
9447
9480
  }
9448
9481
  function zh(a) {
@@ -9494,8 +9527,8 @@ Expected it to be ${p}.`;
9494
9527
  let p = a.endSourceSpan.start.offset;
9495
9528
  return a.lastChild && Lr(a.lastChild) ? p += ls(a, s).length : Pr(a) && (p -= jr(a.lastChild, s).length), s.originalText.slice(l, p);
9496
9529
  }
9497
- var wl = Vh, Yh = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
9498
- function Gh(a, s) {
9530
+ var wl = Vh, Gh = /* @__PURE__ */ new Set(["if", "else if", "for", "switch", "case"]);
9531
+ function Yh(a, s) {
9499
9532
  let { node: l } = a;
9500
9533
  switch (l.type) {
9501
9534
  case "element":
@@ -9529,12 +9562,12 @@ Expected it to be ${p}.`;
9529
9562
  case "front-matter":
9530
9563
  return (p) => Ki(l, p);
9531
9564
  case "angularControlFlowBlockParameters":
9532
- return Yh.has(a.parent.name) ? Na : void 0;
9565
+ return Gh.has(a.parent.name) ? Na : void 0;
9533
9566
  case "angularLetDeclarationInitializer":
9534
9567
  return (p) => wt(l.value, p, { parser: "__ng_binding", __isInHtmlAttribute: !1 });
9535
9568
  }
9536
9569
  }
9537
- var Kh = Gh, Ir = null;
9570
+ var Kh = Yh, Ir = null;
9538
9571
  function Mr(a) {
9539
9572
  if (Ir !== null && typeof Ir.property) {
9540
9573
  let s = Ir;
@@ -9597,8 +9630,8 @@ Expected it to be ${p}.`;
9597
9630
  }
9598
9631
  return Rr(y, s, l);
9599
9632
  }
9600
- let R = [], Y = [], U = [], De = [], fe = B.prev ? Ua(B.prev, B) : "", le = B.next ? Ua(B, B.next) : "";
9601
- return fe && (Oa(B.prev) ? R.push(Ce, Ce) : fe === Ce ? R.push(Ce) : He(B.prev) ? Y.push(fe) : Y.push(yt("", je, { groupId: f[E - 1] }))), le && (Oa(B) ? He(B.next) && De.push(Ce, Ce) : le === Ce ? He(B.next) && De.push(Ce) : U.push(le)), [...R, ce([...Y, ce([Rr(y, s, l), ...U], { id: f[E] })]), ...De];
9633
+ let R = [], G = [], U = [], De = [], fe = B.prev ? Ua(B.prev, B) : "", le = B.next ? Ua(B, B.next) : "";
9634
+ return fe && (Oa(B.prev) ? R.push(Ce, Ce) : fe === Ce ? R.push(Ce) : He(B.prev) ? G.push(fe) : G.push(yt("", je, { groupId: f[E - 1] }))), le && (Oa(B) ? He(B.next) && De.push(Ce, Ce) : le === Ce ? He(B.next) && De.push(Ce) : U.push(le)), [...R, ce([...G, ce([Rr(y, s, l), ...U], { id: f[E] })]), ...De];
9602
9635
  }, "children");
9603
9636
  }
9604
9637
  function lf(a, s, l) {
@@ -9629,8 +9662,8 @@ Expected it to be ${p}.`;
9629
9662
  function hf(a, s, l) {
9630
9663
  let { node: p } = a;
9631
9664
  if (Te(p, s)) return [Sn(p, s), ce(us(a, s, l)), ht(wl(p, s)), ...os(p, s), xn(p, s)];
9632
- let f = p.children.length === 1 && (p.firstChild.type === "interpolation" || p.firstChild.type === "angularIcuExpression") && p.firstChild.isLeadingSpaceSensitive && !p.firstChild.hasLeadingSpaces && p.lastChild.isTrailingSpaceSensitive && !p.lastChild.hasTrailingSpaces, y = Symbol("element-attr-group-id"), E = (U) => ce([ce(us(a, s, l), { id: y }), U, os(p, s)]), B = (U) => f ? cn(U, { groupId: y }) : (Qe(p) || Ia(p, s)) && p.parent.type === "root" && s.parser === "vue" && !s.vueIndentScriptAndStyle ? U : _e(U), R = () => f ? yt(je, "", { groupId: y }) : p.firstChild.hasLeadingSpaces && p.firstChild.isLeadingSpaceSensitive ? ke : p.firstChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive ? dt(je) : je, Y = () => (p.next ? _n(p.next) : Pr(p.parent)) ? p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? " " : "" : f ? yt(je, "", { groupId: y }) : p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? ke : (p.lastChild.type === "comment" || p.lastChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${s.tabWidth * (a.ancestors.length - 1)}}$`, "u").test(p.lastChild.value) ? "" : je;
9633
- return p.children.length === 0 ? E(p.hasDanglingSpaces && p.isDanglingSpaceSensitive ? ke : "") : E([Wd(p) ? bt : "", B([R(), ds(a, s, l)]), Y()]);
9665
+ let f = p.children.length === 1 && (p.firstChild.type === "interpolation" || p.firstChild.type === "angularIcuExpression") && p.firstChild.isLeadingSpaceSensitive && !p.firstChild.hasLeadingSpaces && p.lastChild.isTrailingSpaceSensitive && !p.lastChild.hasTrailingSpaces, y = Symbol("element-attr-group-id"), E = (U) => ce([ce(us(a, s, l), { id: y }), U, os(p, s)]), B = (U) => f ? cn(U, { groupId: y }) : (Qe(p) || Ia(p, s)) && p.parent.type === "root" && s.parser === "vue" && !s.vueIndentScriptAndStyle ? U : _e(U), R = () => f ? yt(je, "", { groupId: y }) : p.firstChild.hasLeadingSpaces && p.firstChild.isLeadingSpaceSensitive ? ke : p.firstChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive ? dt(je) : je, G = () => (p.next ? _n(p.next) : Pr(p.parent)) ? p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? " " : "" : f ? yt(je, "", { groupId: y }) : p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? ke : (p.lastChild.type === "comment" || p.lastChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${s.tabWidth * (a.ancestors.length - 1)}}$`, "u").test(p.lastChild.value) ? "" : je;
9666
+ return p.children.length === 0 ? E(p.hasDanglingSpaces && p.isDanglingSpaceSensitive ? ke : "") : E([Wd(p) ? bt : "", B([R(), ds(a, s, l)]), G()]);
9634
9667
  }
9635
9668
  function Wa(a) {
9636
9669
  return a >= 9 && a <= 32 || a == 160;
@@ -9784,12 +9817,12 @@ Expected it to be ${p}.`;
9784
9817
  if (f.type !== "text") continue;
9785
9818
  let y = f.sourceSpan.start, E = null, B = f.value.split(l);
9786
9819
  for (let R = 0; R < B.length; R++, y = E) {
9787
- let Y = B[R];
9820
+ let G = B[R];
9788
9821
  if (R % 2 === 0) {
9789
- E = y.moveBy(Y.length), Y.length > 0 && p.insertChildBefore(f, { type: "text", value: Y, sourceSpan: new ie(y, E) });
9822
+ E = y.moveBy(G.length), G.length > 0 && p.insertChildBefore(f, { type: "text", value: G, sourceSpan: new ie(y, E) });
9790
9823
  continue;
9791
9824
  }
9792
- E = y.moveBy(Y.length + 4), p.insertChildBefore(f, { type: "interpolation", sourceSpan: new ie(y, E), children: Y.length === 0 ? [] : [{ type: "text", value: Y, sourceSpan: new ie(y.moveBy(2), E.moveBy(-2)) }] });
9825
+ E = y.moveBy(G.length + 4), p.insertChildBefore(f, { type: "interpolation", sourceSpan: new ie(y, E), children: G.length === 0 ? [] : [{ type: "text", value: G, sourceSpan: new ie(y.moveBy(2), E.moveBy(-2)) }] });
9793
9826
  }
9794
9827
  p.removeChild(f);
9795
9828
  }
@@ -9806,8 +9839,8 @@ Expected it to be ${p}.`;
9806
9839
  if (!l) for (let f = 0; f < s.children.length; f++) {
9807
9840
  let y = s.children[f];
9808
9841
  if (y.type !== "text") continue;
9809
- let { leadingWhitespace: E, text: B, trailingWhitespace: R } = Xe(y.value), Y = y.prev, U = y.next;
9810
- B ? (y.value = B, y.sourceSpan = new ie(y.sourceSpan.start.moveBy(E.length), y.sourceSpan.end.moveBy(-R.length)), E && (Y && (Y.hasTrailingSpaces = !0), y.hasLeadingSpaces = !0), R && (y.hasTrailingSpaces = !0, U && (U.hasLeadingSpaces = !0))) : (s.removeChild(y), f--, (E || R) && (Y && (Y.hasTrailingSpaces = !0), U && (U.hasLeadingSpaces = !0)));
9842
+ let { leadingWhitespace: E, text: B, trailingWhitespace: R } = Xe(y.value), G = y.prev, U = y.next;
9843
+ B ? (y.value = B, y.sourceSpan = new ie(y.sourceSpan.start.moveBy(E.length), y.sourceSpan.end.moveBy(-R.length)), E && (G && (G.hasTrailingSpaces = !0), y.hasLeadingSpaces = !0), R && (y.hasTrailingSpaces = !0, U && (U.hasLeadingSpaces = !0))) : (s.removeChild(y), f--, (E || R) && (G && (G.hasTrailingSpaces = !0), U && (U.hasLeadingSpaces = !0)));
9811
9844
  }
9812
9845
  s.isWhitespaceSensitive = l, s.isIndentationSensitive = p;
9813
9846
  });
@@ -9895,7 +9928,7 @@ Expected it to be ${p}.`;
9895
9928
  throw new Er(p, "HTML");
9896
9929
  }
9897
9930
  }
9898
- var Bf = { preprocess: $f, print: Tf, insertPragma: sf, massageAstNode: Gi, embed: Kh, getVisitorKeys: rf }, Nf = Bf, jf = [{ linguistLanguageId: 146, name: "Angular", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [".component.html"], parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [] }, { linguistLanguageId: 146, name: "HTML", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml", ".mjml"], parsers: ["html"], vscodeLanguageIds: ["html"] }, { linguistLanguageId: 146, name: "Lightning Web Components", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [], parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [] }, { linguistLanguageId: 391, name: "Vue", type: "markup", color: "#41b883", extensions: [".vue"], tmScope: "text.html.vue", aceMode: "html", parsers: ["vue"], vscodeLanguageIds: ["vue"] }], Fl = { bracketSpacing: { category: "Common", type: "boolean", default: !0, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, singleQuote: { category: "Common", type: "boolean", default: !1, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: !1, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: !1, description: "Enforce single attribute per line in HTML, Vue and JSX." } }, Al = "HTML", Pf = { bracketSameLine: Fl.bracketSameLine, htmlWhitespaceSensitivity: { category: Al, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: Fl.singleAttributePerLine, vueIndentScriptAndStyle: { category: Al, type: "boolean", default: !1, description: "Indent script and style tags in Vue files." } }, Lf = Pf, $l = {};
9931
+ var Bf = { preprocess: $f, print: Tf, insertPragma: sf, massageAstNode: Yi, embed: Kh, getVisitorKeys: rf }, Nf = Bf, jf = [{ linguistLanguageId: 146, name: "Angular", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [".component.html"], parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [] }, { linguistLanguageId: 146, name: "HTML", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml", ".mjml"], parsers: ["html"], vscodeLanguageIds: ["html"] }, { linguistLanguageId: 146, name: "Lightning Web Components", type: "markup", tmScope: "text.html.basic", aceMode: "html", codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", color: "#e34c26", aliases: ["xhtml"], extensions: [], parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [] }, { linguistLanguageId: 391, name: "Vue", type: "markup", color: "#41b883", extensions: [".vue"], tmScope: "text.html.vue", aceMode: "html", parsers: ["vue"], vscodeLanguageIds: ["vue"] }], Fl = { bracketSpacing: { category: "Common", type: "boolean", default: !0, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, singleQuote: { category: "Common", type: "boolean", default: !1, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: !1, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: !1, description: "Enforce single attribute per line in HTML, Vue and JSX." } }, Al = "HTML", Pf = { bracketSameLine: Fl.bracketSameLine, htmlWhitespaceSensitivity: { category: Al, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: Fl.singleAttributePerLine, vueIndentScriptAndStyle: { category: Al, type: "boolean", default: !1, description: "Indent script and style tags in Vue files." } }, Lf = Pf, $l = {};
9899
9932
  c($l, { angular: () => Mm, html: () => Im, lwc: () => qm, vue: () => Rm });
9900
9933
  var Tl;
9901
9934
  (function(a) {
@@ -9921,7 +9954,7 @@ Expected it to be ${p}.`;
9921
9954
  (function(a) {
9922
9955
  a[a.RAW_TEXT = 0] = "RAW_TEXT", a[a.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", a[a.PARSABLE_DATA = 2] = "PARSABLE_DATA";
9923
9956
  })(Bt || (Bt = {}));
9924
- function Ya(a, s = !0) {
9957
+ function Ga(a, s = !0) {
9925
9958
  if (a[0] != ":") return [null, a];
9926
9959
  let l = a.indexOf(":", 1);
9927
9960
  if (l === -1) {
@@ -9931,13 +9964,13 @@ Expected it to be ${p}.`;
9931
9964
  return [a.slice(1, l), a.slice(l + 1)];
9932
9965
  }
9933
9966
  function Ol(a) {
9934
- return Ya(a)[1] === "ng-container";
9967
+ return Ga(a)[1] === "ng-container";
9935
9968
  }
9936
9969
  function Il(a) {
9937
- return Ya(a)[1] === "ng-content";
9970
+ return Ga(a)[1] === "ng-content";
9938
9971
  }
9939
- function Ga(a) {
9940
- return a === null ? null : Ya(a)[0];
9972
+ function Ya(a) {
9973
+ return a === null ? null : Ga(a)[0];
9941
9974
  }
9942
9975
  function Ka(a, s) {
9943
9976
  return a ? `:${a}:${s}` : s;
@@ -9954,30 +9987,30 @@ Expected it to be ${p}.`;
9954
9987
  constructor() {
9955
9988
  super(), this._schema = /* @__PURE__ */ new Map(), this._eventSchema = /* @__PURE__ */ new Map(), Hf.forEach((a) => {
9956
9989
  let s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), [p, f] = a.split("|"), y = f.split(","), [E, B] = p.split("^");
9957
- E.split(",").forEach((Y) => {
9958
- this._schema.set(Y.toLowerCase(), s), this._eventSchema.set(Y.toLowerCase(), l);
9990
+ E.split(",").forEach((G) => {
9991
+ this._schema.set(G.toLowerCase(), s), this._eventSchema.set(G.toLowerCase(), l);
9959
9992
  });
9960
9993
  let R = B && this._schema.get(B.toLowerCase());
9961
9994
  if (R) {
9962
- for (let [Y, U] of R) s.set(Y, U);
9963
- for (let Y of this._eventSchema.get(B.toLowerCase())) l.add(Y);
9995
+ for (let [G, U] of R) s.set(G, U);
9996
+ for (let G of this._eventSchema.get(B.toLowerCase())) l.add(G);
9964
9997
  }
9965
- y.forEach((Y) => {
9966
- if (Y.length > 0) switch (Y[0]) {
9998
+ y.forEach((G) => {
9999
+ if (G.length > 0) switch (G[0]) {
9967
10000
  case "*":
9968
- l.add(Y.substring(1));
10001
+ l.add(G.substring(1));
9969
10002
  break;
9970
10003
  case "!":
9971
- s.set(Y.substring(1), If);
10004
+ s.set(G.substring(1), If);
9972
10005
  break;
9973
10006
  case "#":
9974
- s.set(Y.substring(1), Mf);
10007
+ s.set(G.substring(1), Mf);
9975
10008
  break;
9976
10009
  case "%":
9977
- s.set(Y.substring(1), qf);
10010
+ s.set(G.substring(1), qf);
9978
10011
  break;
9979
10012
  default:
9980
- s.set(Y, Rf);
10013
+ s.set(G, Rf);
9981
10014
  }
9982
10015
  });
9983
10016
  });
@@ -10082,7 +10115,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10082
10115
  }, ql, qr;
10083
10116
  function vs(a) {
10084
10117
  return qr || (ql = new ne({ canSelfClose: !0 }), qr = Object.assign(/* @__PURE__ */ Object.create(null), { base: new ne({ isVoid: !0 }), meta: new ne({ isVoid: !0 }), area: new ne({ isVoid: !0 }), embed: new ne({ isVoid: !0 }), link: new ne({ isVoid: !0 }), img: new ne({ isVoid: !0 }), input: new ne({ isVoid: !0 }), param: new ne({ isVoid: !0 }), hr: new ne({ isVoid: !0 }), br: new ne({ isVoid: !0 }), source: new ne({ isVoid: !0 }), track: new ne({ isVoid: !0 }), wbr: new ne({ isVoid: !0 }), p: new ne({ closedByChildren: ["address", "article", "aside", "blockquote", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "main", "nav", "ol", "p", "pre", "section", "table", "ul"], closedByParent: !0 }), thead: new ne({ closedByChildren: ["tbody", "tfoot"] }), tbody: new ne({ closedByChildren: ["tbody", "tfoot"], closedByParent: !0 }), tfoot: new ne({ closedByChildren: ["tbody"], closedByParent: !0 }), tr: new ne({ closedByChildren: ["tr"], closedByParent: !0 }), td: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), th: new ne({ closedByChildren: ["td", "th"], closedByParent: !0 }), col: new ne({ isVoid: !0 }), svg: new ne({ implicitNamespacePrefix: "svg" }), foreignObject: new ne({ implicitNamespacePrefix: "svg", preventNamespaceInheritance: !0 }), math: new ne({ implicitNamespacePrefix: "math" }), li: new ne({ closedByChildren: ["li"], closedByParent: !0 }), dt: new ne({ closedByChildren: ["dt", "dd"] }), dd: new ne({ closedByChildren: ["dt", "dd"], closedByParent: !0 }), rb: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rt: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), rtc: new ne({ closedByChildren: ["rb", "rtc", "rp"], closedByParent: !0 }), rp: new ne({ closedByChildren: ["rb", "rt", "rtc", "rp"], closedByParent: !0 }), optgroup: new ne({ closedByChildren: ["optgroup"], closedByParent: !0 }), option: new ne({ closedByChildren: ["option", "optgroup"], closedByParent: !0 }), pre: new ne({ ignoreFirstLf: !0 }), listing: new ne({ ignoreFirstLf: !0 }), style: new ne({ contentType: Bt.RAW_TEXT }), script: new ne({ contentType: Bt.RAW_TEXT }), title: new ne({ contentType: { default: Bt.ESCAPABLE_RAW_TEXT, svg: Bt.PARSABLE_DATA } }), textarea: new ne({ contentType: Bt.ESCAPABLE_RAW_TEXT, ignoreFirstLf: !0 }) }), new Wf().allKnownElementNames().forEach((s) => {
10085
- !qr[s] && Ga(s) === null && (qr[s] = new ne({ canSelfClose: !1 }));
10118
+ !qr[s] && Ya(s) === null && (qr[s] = new ne({ canSelfClose: !1 }));
10086
10119
  })), qr[a] ?? ql;
10087
10120
  }
10088
10121
  var Qn = class {
@@ -10096,14 +10129,14 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10096
10129
  visit(a, s) {
10097
10130
  return a.visitText(this, s);
10098
10131
  }
10099
- }, Yf = class extends Qn {
10132
+ }, Gf = class extends Qn {
10100
10133
  constructor(a, s, l, p) {
10101
10134
  super(s, p), this.value = a, this.tokens = l, this.type = "cdata";
10102
10135
  }
10103
10136
  visit(a, s) {
10104
10137
  return a.visitCdata(this, s);
10105
10138
  }
10106
- }, Gf = class extends Qn {
10139
+ }, Yf = class extends Qn {
10107
10140
  constructor(a, s, l, p, f, y) {
10108
10141
  super(p, y), this.switchValue = a, this.type = s, this.cases = l, this.switchValueSourceSpan = f;
10109
10142
  }
@@ -10490,7 +10523,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10490
10523
  let a = this._cursor.clone(), s = "";
10491
10524
  for (; this._cursor.peek() !== 58 && !um(this._cursor.peek()); ) this._cursor.advance();
10492
10525
  let l;
10493
- this._cursor.peek() === 58 ? (s = this._cursor.getChars(a), this._cursor.advance(), l = this._cursor.clone()) : l = a, this._requireCharCodeUntilFn(Yl, s === "" ? 0 : 1);
10526
+ this._cursor.peek() === 58 ? (s = this._cursor.getChars(a), this._cursor.advance(), l = this._cursor.clone()) : l = a, this._requireCharCodeUntilFn(Gl, s === "" ? 0 : 1);
10494
10527
  let p = this._cursor.getChars(l);
10495
10528
  return [s, p];
10496
10529
  }
@@ -10542,7 +10575,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10542
10575
  let l = () => this._cursor.peek() === s;
10543
10576
  a = this._consumeWithInterpolation(16, 17, l, l), this._consumeQuote(s);
10544
10577
  } else {
10545
- let s = () => Yl(this._cursor.peek());
10578
+ let s = () => Gl(this._cursor.peek());
10546
10579
  a = this._consumeWithInterpolation(16, 17, s, s);
10547
10580
  }
10548
10581
  return a;
@@ -10669,7 +10702,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10669
10702
  function Ie(a) {
10670
10703
  return !Wa(a) || a === 0;
10671
10704
  }
10672
- function Yl(a) {
10705
+ function Gl(a) {
10673
10706
  return Wa(a) || a === 62 || a === 60 || a === 47 || a === 39 || a === 34 || a === 61 || a === 0;
10674
10707
  }
10675
10708
  function um(a) {
@@ -10685,9 +10718,9 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10685
10718
  return a !== 125;
10686
10719
  }
10687
10720
  function hm(a, s) {
10688
- return Gl(a) === Gl(s);
10721
+ return Yl(a) === Yl(s);
10689
10722
  }
10690
- function Gl(a) {
10723
+ function Yl(a) {
10691
10724
  return a >= 97 && a <= 122 ? a - 97 + 65 : a;
10692
10725
  }
10693
10726
  function Kl(a) {
@@ -10827,11 +10860,11 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10827
10860
  this.getTagDefinition = a;
10828
10861
  }
10829
10862
  parse(a, s, l, p = !1, f) {
10830
- let y = (le) => (Se, ...Ue) => le(Se.toLowerCase(), ...Ue), E = p ? this.getTagDefinition : y(this.getTagDefinition), B = (le) => E(le).getContentType(), R = p ? f : y(f), Y = im(a, s, f ? (le, Se, Ue, Ze) => {
10863
+ let y = (le) => (Se, ...Ue) => le(Se.toLowerCase(), ...Ue), E = p ? this.getTagDefinition : y(this.getTagDefinition), B = (le) => E(le).getContentType(), R = p ? f : y(f), G = im(a, s, f ? (le, Se, Ue, Ze) => {
10831
10864
  let st = R(le, Se, Ue, Ze);
10832
10865
  return st !== void 0 ? st : B(le);
10833
- } : B, l), U = l && l.canSelfClose || !1, De = l && l.allowHtmComponentClosingTags || !1, fe = new Dm(Y.tokens, E, U, De, p);
10834
- return fe.build(), new gm(fe.rootNodes, Y.errors.concat(fe.errors));
10866
+ } : B, l), U = l && l.canSelfClose || !1, De = l && l.allowHtmComponentClosingTags || !1, fe = new Dm(G.tokens, E, U, De, p);
10867
+ return fe.build(), new gm(fe.rootNodes, G.errors.concat(fe.errors));
10835
10868
  }
10836
10869
  }, Dm = class dd {
10837
10870
  constructor(s, l, p, f, y) {
@@ -10850,7 +10883,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10850
10883
  }
10851
10884
  _consumeCdata(s) {
10852
10885
  let l = this._advance(), p = this._getText(l), f = this._advanceIf(13);
10853
- this._addToParent(new Yf(p, new ie(s.sourceSpan.start, (f || l).sourceSpan.end), [l]));
10886
+ this._addToParent(new Gf(p, new ie(s.sourceSpan.start, (f || l).sourceSpan.end), [l]));
10854
10887
  }
10855
10888
  _consumeComment(s) {
10856
10889
  let l = this._advanceIf(7), p = this._advanceIf(11), f = l != null ? l.parts[0].trim() : null, y = p == null ? s.sourceSpan : new ie(s.sourceSpan.start, p.sourceSpan.end, s.sourceSpan.fullStart);
@@ -10872,7 +10905,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10872
10905
  return;
10873
10906
  }
10874
10907
  let y = new ie(s.sourceSpan.start, this._peek.sourceSpan.end, s.sourceSpan.fullStart);
10875
- this._addToParent(new Gf(l.parts[0], p.parts[0], f, y, l.sourceSpan)), this._advance();
10908
+ this._addToParent(new Yf(l.parts[0], p.parts[0], f, y, l.sourceSpan)), this._advance();
10876
10909
  }
10877
10910
  _parseExpansionCase() {
10878
10911
  let s = this._advance();
@@ -10931,9 +10964,9 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10931
10964
  if (this._peek.type === 2) {
10932
10965
  this._advance(), E = !0;
10933
10966
  let le = this.getTagDefinition(y);
10934
- this.canSelfClose || le.canSelfClose || Ga(y) !== null || le.isVoid || this.errors.push(ot.create(y, s.sourceSpan, `Only void, custom and foreign elements can be self closed "${s.parts[1]}"`));
10967
+ this.canSelfClose || le.canSelfClose || Ya(y) !== null || le.isVoid || this.errors.push(ot.create(y, s.sourceSpan, `Only void, custom and foreign elements can be self closed "${s.parts[1]}"`));
10935
10968
  } else this._peek.type === 1 && (this._advance(), E = !1);
10936
- let B = this._peek.sourceSpan.fullStart, R = new ie(s.sourceSpan.start, B, s.sourceSpan.fullStart), Y = new ie(s.sourceSpan.start, B, s.sourceSpan.fullStart), U = new ie(s.sourceSpan.start.moveBy(1), s.sourceSpan.end), De = new hn(y, f, [], R, Y, void 0, U), fe = this._getContainer();
10969
+ let B = this._peek.sourceSpan.fullStart, R = new ie(s.sourceSpan.start, B, s.sourceSpan.fullStart), G = new ie(s.sourceSpan.start, B, s.sourceSpan.fullStart), U = new ie(s.sourceSpan.start.moveBy(1), s.sourceSpan.end), De = new hn(y, f, [], R, G, void 0, U), fe = this._getContainer();
10937
10970
  this._pushContainer(De, fe instanceof hn && this.getTagDefinition(fe.name).isClosedByChild(De.name)), E ? this._popContainer(y, hn, R) : s.type === 4 && (this._popContainer(y, hn, null), this.errors.push(ot.create(y, R, `Opening tag "${y}" not terminated.`)));
10938
10971
  }
10939
10972
  _pushContainer(s, l) {
@@ -10951,7 +10984,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10951
10984
  let f = !1;
10952
10985
  for (let y = this._containerStack.length - 1; y >= 0; y--) {
10953
10986
  let E = this._containerStack[y];
10954
- if (Ga(E.name) ? E.name === s : (s == null || E.name.toLowerCase() === s.toLowerCase()) && E instanceof l) return E.endSourceSpan = p, E.sourceSpan.end = p !== null ? p.end : E.sourceSpan.end, this._containerStack.splice(y, this._containerStack.length - y), !f;
10987
+ if (Ya(E.name) ? E.name === s : (s == null || E.name.toLowerCase() === s.toLowerCase()) && E instanceof l) return E.endSourceSpan = p, E.sourceSpan.end = p !== null ? p.end : E.sourceSpan.end, this._containerStack.splice(y, this._containerStack.length - y), !f;
10955
10988
  (E instanceof Zn || E instanceof hn && !this.getTagDefinition(E.name).closedByParent) && (f = !0);
10956
10989
  }
10957
10990
  return !1;
@@ -10965,8 +10998,8 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
10965
10998
  E.push(U), U.type === 17 ? y += U.parts.join("").replace(/&([^;]+);/g, Zl) : U.type === 9 ? y += U.parts[0] : y += U.parts.join(""), R = p = U.sourceSpan.end;
10966
10999
  }
10967
11000
  this._peek.type === 15 && (R = p = this._advance().sourceSpan.end);
10968
- let Y = B && R && new ie((f == null ? void 0 : f.sourceSpan.start) ?? B.start, R, (f == null ? void 0 : f.sourceSpan.fullStart) ?? B.fullStart);
10969
- return new Jf(l, y, new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), s.sourceSpan, Y, E.length > 0 ? E : void 0, void 0);
11001
+ let G = B && R && new ie((f == null ? void 0 : f.sourceSpan.start) ?? B.start, R, (f == null ? void 0 : f.sourceSpan.fullStart) ?? B.fullStart);
11002
+ return new Jf(l, y, new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), s.sourceSpan, G, E.length > 0 ? E : void 0, void 0);
10970
11003
  }
10971
11004
  _consumeBlockOpen(s) {
10972
11005
  let l = [];
@@ -11000,7 +11033,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
11000
11033
  this.errors.push(ot.create(s.parts[0], s.sourceSpan, `Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));
11001
11034
  return;
11002
11035
  } else f = this._advance();
11003
- let y = f.sourceSpan.fullStart, E = new ie(s.sourceSpan.start, y, s.sourceSpan.fullStart), B = s.sourceSpan.toString().lastIndexOf(l), R = s.sourceSpan.start.moveBy(B), Y = new ie(R, s.sourceSpan.end), U = new Ul(l, p.parts[0], E, Y, p.sourceSpan);
11036
+ let y = f.sourceSpan.fullStart, E = new ie(s.sourceSpan.start, y, s.sourceSpan.fullStart), B = s.sourceSpan.toString().lastIndexOf(l), R = s.sourceSpan.start.moveBy(B), G = new ie(R, s.sourceSpan.end), U = new Ul(l, p.parts[0], E, G, p.sourceSpan);
11004
11037
  this._addToParent(U);
11005
11038
  }
11006
11039
  _consumeIncompleteLet(s) {
@@ -11024,8 +11057,8 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
11024
11057
  }
11025
11058
  _getElementFullName(s, l, p) {
11026
11059
  if (s === "" && (s = this.getTagDefinition(l).implicitNamespacePrefix || "", s === "" && p != null)) {
11027
- let f = Ya(p.name)[1];
11028
- this.getTagDefinition(f).preventNamespaceInheritance || (s = Ga(p.name));
11060
+ let f = Ga(p.name)[1];
11061
+ this.getTagDefinition(f).preventNamespaceInheritance || (s = Ya(p.name));
11029
11062
  }
11030
11063
  return Ka(s, l);
11031
11064
  }
@@ -11161,14 +11194,14 @@ ${s}`, l), y = p;
11161
11194
  return null;
11162
11195
  }
11163
11196
  function $m(a, s, l) {
11164
- let [, p, f, y] = l, E = 4 + p.length, B = a.sourceSpan.start.moveBy(E), R = B.moveBy(y.length), [Y, U] = (() => {
11197
+ let [, p, f, y] = l, E = 4 + p.length, B = a.sourceSpan.start.moveBy(E), R = B.moveBy(y.length), [G, U] = (() => {
11165
11198
  try {
11166
11199
  return [!0, s(y, B).children];
11167
11200
  } catch {
11168
11201
  return [!1, [{ type: "text", value: y, sourceSpan: new ie(B, R) }]];
11169
11202
  }
11170
11203
  })();
11171
- return { type: "ieConditionalComment", complete: Y, children: U, condition: C(!1, f.trim(), /\s+/gu, " "), sourceSpan: a.sourceSpan, startSourceSpan: new ie(a.sourceSpan.start, B), endSourceSpan: new ie(R, a.sourceSpan.end) };
11204
+ return { type: "ieConditionalComment", complete: G, children: U, condition: C(!1, f.trim(), /\s+/gu, " "), sourceSpan: a.sourceSpan, startSourceSpan: new ie(a.sourceSpan.start, B), endSourceSpan: new ie(R, a.sourceSpan.end) };
11172
11205
  }
11173
11206
  function Tm(a, s, l) {
11174
11207
  let [, p] = l;
@@ -11195,7 +11228,7 @@ ${s}`, l), y = p;
11195
11228
  (a.type === "plural" || a.type === "select") && (a.clause = a.type, a.type = "angularIcuExpression"), a.type === "expansionCase" && (a.type = "angularIcuCase");
11196
11229
  }
11197
11230
  function nu(a, s, l) {
11198
- let { name: p, canSelfClose: f = !0, normalizeTagName: y = !1, normalizeAttributeName: E = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText: Y } = s, { rootNodes: U, errors: De } = eu(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R, getTagContentType: Y ? (...z) => Y(...z) ? Bt.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: p === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: p === "angular" ? !0 : void 0 });
11231
+ let { name: p, canSelfClose: f = !0, normalizeTagName: y = !1, normalizeAttributeName: E = !1, allowHtmComponentClosingTags: B = !1, isTagNameCaseSensitive: R = !1, shouldParseAsRawText: G } = s, { rootNodes: U, errors: De } = eu(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R, getTagContentType: G ? (...z) => G(...z) ? Bt.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: p === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: p === "angular" ? !0 : void 0 });
11199
11232
  if (p === "vue") {
11200
11233
  if (U.some((Me) => Me.type === "docType" && Me.value === "html" || Me.type === "element" && Me.name.toLowerCase() === "html")) return nu(a, iu, l);
11201
11234
  let z, ue = () => z ?? (z = eu(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R })), We = (Me) => ue().rootNodes.find(({ startSourceSpan: lt }) => lt && lt.start.offset === Me.startSourceSpan.start.offset) ?? Me;
@@ -11260,12 +11293,12 @@ ${s}`, l), y = p;
11260
11293
  throw wm(s, { loc: { start: { line: l.line + 1, column: l.col + 1 }, end: { line: p.line + 1, column: p.col + 1 } }, cause: a });
11261
11294
  }
11262
11295
  function au(a, s, l = {}, p = !0) {
11263
- let { frontMatter: f, content: y } = p ? _m(a) : { frontMatter: null, content: a }, E = new Sl(a, l.filepath), B = new gs(E, 0, 0, 0), R = B.moveBy(a.length), Y = { type: "root", sourceSpan: new ie(B, R), children: nu(y, s, l) };
11296
+ let { frontMatter: f, content: y } = p ? _m(a) : { frontMatter: null, content: a }, E = new Sl(a, l.filepath), B = new gs(E, 0, 0, 0), R = B.moveBy(a.length), G = { type: "root", sourceSpan: new ie(B, R), children: nu(y, s, l) };
11264
11297
  if (f) {
11265
11298
  let fe = new gs(E, 0, 0, 0), le = fe.moveBy(f.raw.length);
11266
- f.sourceSpan = new ie(fe, le), Y.children.unshift(f);
11299
+ f.sourceSpan = new ie(fe, le), G.children.unshift(f);
11267
11300
  }
11268
- let U = new Sm(Y), De = (fe, le) => {
11301
+ let U = new Sm(G), De = (fe, le) => {
11269
11302
  let { offset: Se } = le, Ue = C(!1, a.slice(0, Se), /[^\n\r]/gu, " "), Ze = au(Ue + fe, s, l, !1);
11270
11303
  Ze.sourceSpan = new ie(le, Vt(!1, Ze.children, -1).sourceSpan.end);
11271
11304
  let st = Ze.children[0];
@@ -11613,19 +11646,19 @@ function w1(e, t, n, r, i, o, u, c, d) {
11613
11646
  if (I) {
11614
11647
  var j = P.split(`
11615
11648
  `);
11616
- j.forEach(function(W, G) {
11649
+ j.forEach(function(W, Y) {
11617
11650
  var V = r && v.length + o, L = {
11618
11651
  type: "text",
11619
11652
  value: "".concat(W, `
11620
11653
  `)
11621
11654
  };
11622
- if (G === 0) {
11655
+ if (Y === 0) {
11623
11656
  var N = g.slice(D + 1, b).concat(mi({
11624
11657
  children: [L],
11625
11658
  className: $.properties.className
11626
11659
  })), q = C(N, V);
11627
11660
  v.push(q);
11628
- } else if (G === j.length - 1) {
11661
+ } else if (Y === j.length - 1) {
11629
11662
  var X = g[b + 1] && g[b + 1].children && g[b + 1].children[0], de = {
11630
11663
  type: "text",
11631
11664
  value: "".concat(W)
@@ -11698,7 +11731,7 @@ function _1(e, t) {
11698
11731
  var i = r.language, o = r.children, u = r.style, c = u === void 0 ? t : u, d = r.customStyle, h = d === void 0 ? {} : d, g = r.codeTagProps, v = g === void 0 ? {
11699
11732
  className: i ? "language-".concat(i) : void 0,
11700
11733
  style: Rt(Rt({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(i, '"]')])
11701
- } : g, D = r.useInlineStyles, b = D === void 0 ? !0 : D, k = r.showLineNumbers, _ = k === void 0 ? !1 : k, C = r.showInlineLineNumbers, T = C === void 0 ? !0 : C, F = r.startingLineNumber, S = F === void 0 ? 1 : F, A = r.lineNumberContainerStyle, x = r.lineNumberStyle, $ = x === void 0 ? {} : x, P = r.wrapLines, I = r.wrapLongLines, j = I === void 0 ? !1 : I, W = r.lineProps, G = W === void 0 ? {} : W, V = r.renderer, L = r.PreTag, N = L === void 0 ? "pre" : L, q = r.CodeTag, X = q === void 0 ? "code" : q, de = r.code, Q = de === void 0 ? (Array.isArray(o) ? o[0] : o) || "" : de, se = r.astGenerator, he = r1(r, g1);
11734
+ } : g, D = r.useInlineStyles, b = D === void 0 ? !0 : D, k = r.showLineNumbers, _ = k === void 0 ? !1 : k, C = r.showInlineLineNumbers, T = C === void 0 ? !0 : C, F = r.startingLineNumber, S = F === void 0 ? 1 : F, A = r.lineNumberContainerStyle, x = r.lineNumberStyle, $ = x === void 0 ? {} : x, P = r.wrapLines, I = r.wrapLongLines, j = I === void 0 ? !1 : I, W = r.lineProps, Y = W === void 0 ? {} : W, V = r.renderer, L = r.PreTag, N = L === void 0 ? "pre" : L, q = r.CodeTag, X = q === void 0 ? "code" : q, de = r.code, Q = de === void 0 ? (Array.isArray(o) ? o[0] : o) || "" : de, se = r.astGenerator, he = r1(r, g1);
11702
11735
  se = se || e;
11703
11736
  var re = _ ? /* @__PURE__ */ xe.createElement(b1, {
11704
11737
  containerStyle: A,
@@ -11731,7 +11764,7 @@ function _1(e, t) {
11731
11764
  defaultCodeValue: _e
11732
11765
  });
11733
11766
  Le.language === null && (Le.value = _e);
11734
- var ce = Le.value.length + S, dt = w1(Le, P, G, _, T, S, ce, $, j);
11767
+ var ce = Le.value.length + S, dt = w1(Le, P, Y, _, T, S, ce, $, j);
11735
11768
  return /* @__PURE__ */ xe.createElement(N, Be, /* @__PURE__ */ xe.createElement(X, v, !T && re, V({
11736
11769
  rows: dt,
11737
11770
  stylesheet: c,
@@ -11786,14 +11819,14 @@ function Cd(e, t) {
11786
11819
  this.property = e, this.attribute = t;
11787
11820
  }
11788
11821
  var zt = {}, N1 = 0;
11789
- zt.boolean = Yn();
11790
- zt.booleanish = Yn();
11791
- zt.overloadedBoolean = Yn();
11792
- zt.number = Yn();
11793
- zt.spaceSeparated = Yn();
11794
- zt.commaSeparated = Yn();
11795
- zt.commaOrSpaceSeparated = Yn();
11796
- function Yn() {
11822
+ zt.boolean = Gn();
11823
+ zt.booleanish = Gn();
11824
+ zt.overloadedBoolean = Gn();
11825
+ zt.number = Gn();
11826
+ zt.spaceSeparated = Gn();
11827
+ zt.commaSeparated = Gn();
11828
+ zt.commaOrSpaceSeparated = Gn();
11829
+ function Gn() {
11797
11830
  return Math.pow(2, ++N1);
11798
11831
  }
11799
11832
  var xd = wd, Cc = zt, _d = qo;
@@ -11860,11 +11893,11 @@ var W1 = z1;
11860
11893
  function z1(e, t) {
11861
11894
  return t in e ? e[t] : t;
11862
11895
  }
11863
- var V1 = W1, Ed = Y1;
11864
- function Y1(e, t) {
11896
+ var V1 = W1, Ed = G1;
11897
+ function G1(e, t) {
11865
11898
  return V1(e, t.toLowerCase());
11866
11899
  }
11867
- var G1 = _a, K1 = Ed, J1 = G1({
11900
+ var Y1 = _a, K1 = Ed, J1 = Y1({
11868
11901
  space: "xmlns",
11869
11902
  attributes: {
11870
11903
  xmlnsxlink: "xmlns:xlink"
@@ -12390,12 +12423,12 @@ function Mk(e) {
12390
12423
  var Rk = ck, qk = Bk, $d = qk(Rk, "div");
12391
12424
  $d.displayName = "html";
12392
12425
  var Hk = $d, Uk = Hk;
12393
- const Wk = "Æ", zk = "&", Vk = "Á", Yk = "Â", Gk = "À", Kk = "Å", Jk = "Ã", Xk = "Ä", Qk = "©", Zk = "Ç", ew = "Ð", tw = "É", nw = "Ê", rw = "È", aw = "Ë", iw = ">", sw = "Í", ow = "Î", lw = "Ì", uw = "Ï", cw = "<", pw = "Ñ", dw = "Ó", hw = "Ô", fw = "Ò", mw = "Ø", gw = "Õ", vw = "Ö", Dw = '"', yw = "®", bw = "Þ", kw = "Ú", ww = "Û", Cw = "Ù", xw = "Ü", _w = "Ý", Sw = "á", Ew = "â", Fw = "´", Aw = "æ", $w = "à", Tw = "&", Bw = "å", Nw = "ã", jw = "ä", Pw = "¦", Lw = "ç", Ow = "¸", Iw = "¢", Mw = "©", Rw = "¤", qw = "°", Hw = "÷", Uw = "é", Ww = "ê", zw = "è", Vw = "ð", Yw = "ë", Gw = "½", Kw = "¼", Jw = "¾", Xw = ">", Qw = "í", Zw = "î", eC = "¡", tC = "ì", nC = "¿", rC = "ï", aC = "«", iC = "<", sC = "¯", oC = "µ", lC = "·", uC = " ", cC = "¬", pC = "ñ", dC = "ó", hC = "ô", fC = "ò", mC = "ª", gC = "º", vC = "ø", DC = "õ", yC = "ö", bC = "¶", kC = "±", wC = "£", CC = '"', xC = "»", _C = "®", SC = "§", EC = "­", FC = "¹", AC = "²", $C = "³", TC = "ß", BC = "þ", NC = "×", jC = "ú", PC = "û", LC = "ù", OC = "¨", IC = "ü", MC = "ý", RC = "¥", qC = "ÿ", HC = {
12426
+ const Wk = "Æ", zk = "&", Vk = "Á", Gk = "Â", Yk = "À", Kk = "Å", Jk = "Ã", Xk = "Ä", Qk = "©", Zk = "Ç", ew = "Ð", tw = "É", nw = "Ê", rw = "È", aw = "Ë", iw = ">", sw = "Í", ow = "Î", lw = "Ì", uw = "Ï", cw = "<", pw = "Ñ", dw = "Ó", hw = "Ô", fw = "Ò", mw = "Ø", gw = "Õ", vw = "Ö", Dw = '"', yw = "®", bw = "Þ", kw = "Ú", ww = "Û", Cw = "Ù", xw = "Ü", _w = "Ý", Sw = "á", Ew = "â", Fw = "´", Aw = "æ", $w = "à", Tw = "&", Bw = "å", Nw = "ã", jw = "ä", Pw = "¦", Lw = "ç", Ow = "¸", Iw = "¢", Mw = "©", Rw = "¤", qw = "°", Hw = "÷", Uw = "é", Ww = "ê", zw = "è", Vw = "ð", Gw = "ë", Yw = "½", Kw = "¼", Jw = "¾", Xw = ">", Qw = "í", Zw = "î", eC = "¡", tC = "ì", nC = "¿", rC = "ï", aC = "«", iC = "<", sC = "¯", oC = "µ", lC = "·", uC = " ", cC = "¬", pC = "ñ", dC = "ó", hC = "ô", fC = "ò", mC = "ª", gC = "º", vC = "ø", DC = "õ", yC = "ö", bC = "¶", kC = "±", wC = "£", CC = '"', xC = "»", _C = "®", SC = "§", EC = "­", FC = "¹", AC = "²", $C = "³", TC = "ß", BC = "þ", NC = "×", jC = "ú", PC = "û", LC = "ù", OC = "¨", IC = "ü", MC = "ý", RC = "¥", qC = "ÿ", HC = {
12394
12427
  AElig: Wk,
12395
12428
  AMP: zk,
12396
12429
  Aacute: Vk,
12397
- Acirc: Yk,
12398
- Agrave: Gk,
12430
+ Acirc: Gk,
12431
+ Agrave: Yk,
12399
12432
  Aring: Kk,
12400
12433
  Atilde: Jk,
12401
12434
  Auml: Xk,
@@ -12448,8 +12481,8 @@ const Wk = "Æ", zk = "&", Vk = "Á", Yk = "Â", Gk = "À", Kk = "Å", Jk = "Ã"
12448
12481
  ecirc: Ww,
12449
12482
  egrave: zw,
12450
12483
  eth: Vw,
12451
- euml: Yw,
12452
- frac12: Gw,
12484
+ euml: Gw,
12485
+ frac12: Yw,
12453
12486
  frac14: Kw,
12454
12487
  frac34: Jw,
12455
12488
  gt: Xw,
@@ -12537,12 +12570,12 @@ function VC(e) {
12537
12570
  var t = typeof e == "string" ? e.charCodeAt(0) : e;
12538
12571
  return t >= 97 && t <= 102 || t >= 65 && t <= 70 || t >= 48 && t <= 57;
12539
12572
  }
12540
- var YC = GC;
12541
- function GC(e) {
12573
+ var GC = YC;
12574
+ function YC(e) {
12542
12575
  var t = typeof e == "string" ? e.charCodeAt(0) : e;
12543
12576
  return t >= 97 && t <= 122 || t >= 65 && t <= 90;
12544
12577
  }
12545
- var KC = YC, JC = Td, XC = QC;
12578
+ var KC = GC, JC = Td, XC = QC;
12546
12579
  function QC(e) {
12547
12580
  return KC(e) || JC(e);
12548
12581
  }
@@ -12562,12 +12595,12 @@ var Nc = HC, jc = UC, nx = Td, rx = zC, Bd = XC, ax = ex, ix = Dx, sx = {}.hasOw
12562
12595
  additional: null,
12563
12596
  attribute: !1,
12564
12597
  nonTerminated: !0
12565
- }, lx = 9, Lc = 10, ux = 12, cx = 32, Oc = 38, px = 59, dx = 60, hx = 61, fx = 35, mx = 88, gx = 120, vx = 65533, lr = "named", Vo = "hexadecimal", Yo = "decimal", Go = {};
12566
- Go[Vo] = 16;
12567
- Go[Yo] = 10;
12598
+ }, lx = 9, Lc = 10, ux = 12, cx = 32, Oc = 38, px = 59, dx = 60, hx = 61, fx = 35, mx = 88, gx = 120, vx = 65533, lr = "named", Vo = "hexadecimal", Go = "decimal", Yo = {};
12599
+ Yo[Vo] = 16;
12600
+ Yo[Go] = 10;
12568
12601
  var Ri = {};
12569
12602
  Ri[lr] = Bd;
12570
- Ri[Yo] = nx;
12603
+ Ri[Go] = nx;
12571
12604
  Ri[Vo] = rx;
12572
12605
  var Nd = 1, jd = 2, Pd = 3, Ld = 4, Od = 5, fo = 6, Id = 7, wn = {};
12573
12606
  wn[Nd] = "Named character references must be terminated by a semicolon";
@@ -12585,16 +12618,16 @@ function Dx(e, t) {
12585
12618
  return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), yx(e, n);
12586
12619
  }
12587
12620
  function yx(e, t) {
12588
- var n = t.additional, r = t.nonTerminated, i = t.text, o = t.reference, u = t.warning, c = t.textContext, d = t.referenceContext, h = t.warningContext, g = t.position, v = t.indent || [], D = e.length, b = 0, k = -1, _ = g.column || 1, C = g.line || 1, T = "", F = [], S, A, x, $, P, I, j, W, G, V, L, N, q, X, de, Q, se, he, re;
12621
+ var n = t.additional, r = t.nonTerminated, i = t.text, o = t.reference, u = t.warning, c = t.textContext, d = t.referenceContext, h = t.warningContext, g = t.position, v = t.indent || [], D = e.length, b = 0, k = -1, _ = g.column || 1, C = g.line || 1, T = "", F = [], S, A, x, $, P, I, j, W, Y, V, L, N, q, X, de, Q, se, he, re;
12589
12622
  for (typeof n == "string" && (n = n.charCodeAt(0)), Q = ge(), W = u ? at : ox, b--, D++; ++b < D; )
12590
12623
  if (P === Lc && (_ = v[k] || 1), P = e.charCodeAt(b), P === Oc) {
12591
12624
  if (j = e.charCodeAt(b + 1), j === lx || j === Lc || j === ux || j === cx || j === Oc || j === dx || j !== j || n && j === n) {
12592
12625
  T += ir(P), _++;
12593
12626
  continue;
12594
12627
  }
12595
- for (q = b + 1, N = q, re = q, j === fx ? (re = ++N, j = e.charCodeAt(re), j === mx || j === gx ? (X = Vo, re = ++N) : X = Yo) : X = lr, S = "", L = "", $ = "", de = Ri[X], re--; ++re < D && (j = e.charCodeAt(re), !!de(j)); )
12628
+ for (q = b + 1, N = q, re = q, j === fx ? (re = ++N, j = e.charCodeAt(re), j === mx || j === gx ? (X = Vo, re = ++N) : X = Go) : X = lr, S = "", L = "", $ = "", de = Ri[X], re--; ++re < D && (j = e.charCodeAt(re), !!de(j)); )
12596
12629
  $ += ir(j), X === lr && sx.call(Nc, $) && (S = $, L = Nc[$]);
12597
- x = e.charCodeAt(re) === px, x && (re++, A = X === lr ? ax($) : !1, A && (S = $, L = A)), he = 1 + re - q, !x && !r || ($ ? X === lr ? (x && !L ? W(Od, 1) : (S !== $ && (re = N + S.length, he = 1 + re - N, x = !1), x || (G = S ? Nd : Pd, t.attribute ? (j = e.charCodeAt(re), j === hx ? (W(G, he), L = null) : Bd(j) ? L = null : W(G, he)) : W(G, he))), I = L) : (x || W(jd, he), I = parseInt($, Go[X]), bx(I) ? (W(Id, he), I = ir(vx)) : I in jc ? (W(fo, he), I = jc[I]) : (V = "", kx(I) && W(fo, he), I > 65535 && (I -= 65536, V += ir(I >>> 10 | 55296), I = 56320 | I & 1023), I = V + ir(I))) : X !== lr && W(Ld, he)), I ? (Be(), Q = ge(), b = re - 1, _ += re - q + 1, F.push(I), se = ge(), se.offset++, o && o.call(
12630
+ x = e.charCodeAt(re) === px, x && (re++, A = X === lr ? ax($) : !1, A && (S = $, L = A)), he = 1 + re - q, !x && !r || ($ ? X === lr ? (x && !L ? W(Od, 1) : (S !== $ && (re = N + S.length, he = 1 + re - N, x = !1), x || (Y = S ? Nd : Pd, t.attribute ? (j = e.charCodeAt(re), j === hx ? (W(Y, he), L = null) : Bd(j) ? L = null : W(Y, he)) : W(Y, he))), I = L) : (x || W(jd, he), I = parseInt($, Yo[X]), bx(I) ? (W(Id, he), I = ir(vx)) : I in jc ? (W(fo, he), I = jc[I]) : (V = "", kx(I) && W(fo, he), I > 65535 && (I -= 65536, V += ir(I >>> 10 | 55296), I = 56320 | I & 1023), I = V + ir(I))) : X !== lr && W(Ld, he)), I ? (Be(), Q = ge(), b = re - 1, _ += re - q + 1, F.push(I), se = ge(), se.offset++, o && o.call(
12598
12631
  d,
12599
12632
  I,
12600
12633
  { start: Q, end: se },
@@ -12980,8 +13013,8 @@ var Md = { exports: {} };
12980
13013
  A.hasOwnProperty(I) || (P[I] = $[I]);
12981
13014
  }
12982
13015
  var W = x[F];
12983
- return x[F] = P, c.languages.DFS(c.languages, function(G, V) {
12984
- V === W && G != F && (this[G] = P);
13016
+ return x[F] = P, c.languages.DFS(c.languages, function(Y, V) {
13017
+ V === W && Y != F && (this[Y] = P);
12985
13018
  }), P;
12986
13019
  },
12987
13020
  // Traverse a language definition with Depth First Search
@@ -13088,10 +13121,10 @@ var Md = { exports: {} };
13088
13121
  return;
13089
13122
  }
13090
13123
  if (S && r.Worker) {
13091
- var G = new Worker(c.filename);
13092
- G.onmessage = function(V) {
13124
+ var Y = new Worker(c.filename);
13125
+ Y.onmessage = function(V) {
13093
13126
  W(V.data);
13094
- }, G.postMessage(JSON.stringify({
13127
+ }, Y.postMessage(JSON.stringify({
13095
13128
  language: j.language,
13096
13129
  code: j.code,
13097
13130
  immediateClose: !0
@@ -13248,12 +13281,12 @@ var Md = { exports: {} };
13248
13281
  for (var W = 0; W < j.length; ++W) {
13249
13282
  if (P && P.cause == I + "," + W)
13250
13283
  return;
13251
- var G = j[W], V = G.inside, L = !!G.lookbehind, N = !!G.greedy, q = G.alias;
13252
- if (N && !G.pattern.global) {
13253
- var X = G.pattern.toString().match(/[imsuy]*$/)[0];
13254
- G.pattern = RegExp(G.pattern.source, X + "g");
13284
+ var Y = j[W], V = Y.inside, L = !!Y.lookbehind, N = !!Y.greedy, q = Y.alias;
13285
+ if (N && !Y.pattern.global) {
13286
+ var X = Y.pattern.toString().match(/[imsuy]*$/)[0];
13287
+ Y.pattern = RegExp(Y.pattern.source, X + "g");
13255
13288
  }
13256
- for (var de = G.pattern || G, Q = x.next, se = $; Q !== S.tail && !(P && se >= P.reach); se += Q.value.length, Q = Q.next) {
13289
+ for (var de = Y.pattern || Y, Q = x.next, se = $; Q !== S.tail && !(P && se >= P.reach); se += Q.value.length, Q = Q.next) {
13257
13290
  var he = Q.value;
13258
13291
  if (S.length > F.length)
13259
13292
  return;
@@ -14282,12 +14315,12 @@ const Vx = Ne(
14282
14315
  suffix: I,
14283
14316
  type: j = "text",
14284
14317
  useWrapper: W = !0,
14285
- omitSearchIcon: G = !1,
14318
+ omitSearchIcon: Y = !1,
14286
14319
  value: V,
14287
14320
  onChange: L,
14288
14321
  ...N
14289
14322
  }, q) => {
14290
- const X = [u, "pkt-textinput"].join(" "), de = n || `${e}-label`, Q = j === "search" && !b && !G;
14323
+ const X = [u, "pkt-textinput"].join(" "), de = n || `${e}-label`, Q = j === "search" && !b && !Y;
14291
14324
  ga(null);
14292
14325
  const [se, he] = Ve(0), re = (ge) => {
14293
14326
  var at, Be;
@@ -14348,7 +14381,7 @@ const Vx = Ne(
14348
14381
  }
14349
14382
  );
14350
14383
  }
14351
- ), Yx = [
14384
+ ), Gx = [
14352
14385
  {
14353
14386
  id: "24h",
14354
14387
  fn: "24h.svg",
@@ -15302,7 +15335,7 @@ const Vx = Ne(
15302
15335
  "data-testid": "pkt-table__data-cell",
15303
15336
  children: e
15304
15337
  }
15305
- ), Gx = ({ specs: e }) => {
15338
+ ), Yx = ({ specs: e }) => {
15306
15339
  const t = (r) => Array.isArray(r) ? r.join(`
15307
15340
  `) : r, n = (r) => typeof r == "boolean" ? r ? "true" : "false" : r;
15308
15341
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
@@ -15361,7 +15394,7 @@ const Vx = Ne(
15361
15394
  };
15362
15395
  fa.registerLanguage("jsx", zx);
15363
15396
  const Kx = ({ specs: e, children: t, fullWidth: n }) => {
15364
- var G, V;
15397
+ var Y, V;
15365
15398
  const r = e.props && typeof e.props == "object" && !Array.isArray(e.props) ? Object.entries(e.props).reduce((L, [N, q]) => (typeof q == "object" && !Array.isArray(q) && q.default !== void 0 && q.default !== null && (q.default === "false" && (q.default = !1), q.default === "true" && (q.default = !0), L[N] = q.default), L), {}) : {}, [i, o] = Ve(r), [u, c] = Ve("light"), [d, h] = Ve(""), [g, v] = Ve(""), [D, b] = Ve(""), [k, _] = Ve("Rediger innhold"), [C, T] = Ve([
15366
15399
  {
15367
15400
  text: "Rediger",
@@ -15428,7 +15461,7 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
15428
15461
  ] }), I = ta(t) && Km(
15429
15462
  t,
15430
15463
  { ...i },
15431
- t.props.children ? t.props.children : (G = e.slots) != null && G.default ? k : null
15464
+ t.props.children ? t.props.children : (Y = e.slots) != null && Y.default ? k : null
15432
15465
  ), j = (L, N, q = !1) => {
15433
15466
  if (!q && (!N || N == "false")) {
15434
15467
  const { [L]: X, ...de } = i;
@@ -15474,7 +15507,7 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
15474
15507
  requiredTag: N.required,
15475
15508
  children: [
15476
15509
  /* @__PURE__ */ m.jsx("option", { value: "" }),
15477
- Yx.map((q) => /* @__PURE__ */ m.jsx("option", { value: q.id, children: q.id }, q.id))
15510
+ Gx.map((q) => /* @__PURE__ */ m.jsx("option", { value: q.id, children: q.id }, q.id))
15478
15511
  ]
15479
15512
  }
15480
15513
  );
@@ -15572,7 +15605,7 @@ const Kx = ({ specs: e, children: t, fullWidth: n }) => {
15572
15605
  /* @__PURE__ */ m.jsx(fa, { language: "html", style: Ic, children: d }),
15573
15606
  P("html", d)
15574
15607
  ] }),
15575
- /* @__PURE__ */ m.jsx("div", { className: `pkt-preview__specs ${C[3].active ? "" : "pkt-hide"}`, children: /* @__PURE__ */ m.jsx(Gx, { specs: e }) })
15608
+ /* @__PURE__ */ m.jsx("div", { className: `pkt-preview__specs ${C[3].active ? "" : "pkt-hide"}`, children: /* @__PURE__ */ m.jsx(Yx, { specs: e }) })
15576
15609
  ] });
15577
15610
  };
15578
15611
  Kx.displayName = "PktPreview";
@@ -15626,7 +15659,7 @@ const t_ = Ne(
15626
15659
  F(N.getBoundingClientRect().width);
15627
15660
  }
15628
15661
  });
15629
- const x = n - t, $ = e / x * 100, P = n !== 100 || t !== 0 ? Math.round($) : e, I = `${e} av ${n}`, j = u !== "none", W = nt("pkt-progressbar__bar", { [`pkt-progressbar__bar--${r}`]: r }), G = nt("pkt-progressbar__title", {
15662
+ const x = n - t, $ = e / x * 100, P = n !== 100 || t !== 0 ? Math.round($) : e, I = `${e} av ${n}`, j = u !== "none", W = nt("pkt-progressbar__bar", { [`pkt-progressbar__bar--${r}`]: r }), Y = nt("pkt-progressbar__title", {
15630
15663
  "pkt-progressbar__title-center": o === "center"
15631
15664
  }), V = nt("pkt-progressbar__status", {
15632
15665
  "pkt-progressbar__status--center": c === "center"
@@ -15647,7 +15680,7 @@ const t_ = Ne(
15647
15680
  "--pkt-progress-width": `${P}%`
15648
15681
  },
15649
15682
  children: [
15650
- i && /* @__PURE__ */ m.jsx("p", { id: `${S}-title`, className: G, children: i }),
15683
+ i && /* @__PURE__ */ m.jsx("p", { id: `${S}-title`, className: Y, children: i }),
15651
15684
  /* @__PURE__ */ m.jsx(
15652
15685
  "div",
15653
15686
  {
@@ -15857,7 +15890,7 @@ const L_ = Ne(
15857
15890
  onChange: P,
15858
15891
  ...I
15859
15892
  }, j) => {
15860
- const W = [o, "pkt-textinput", "pkt-textarea"].join(" "), G = n || `${e}-label`, V = ga(null), [L, N] = Ve(0), q = (X) => {
15893
+ const W = [o, "pkt-textinput", "pkt-textarea"].join(" "), Y = n || `${e}-label`, V = ga(null), [L, N] = Ve(0), q = (X) => {
15861
15894
  var de, Q;
15862
15895
  if (r && N(((Q = (de = X.currentTarget) == null ? void 0 : de.value) == null ? void 0 : Q.length) || 0), P)
15863
15896
  return P(X);
@@ -15897,7 +15930,7 @@ const L_ = Ne(
15897
15930
  placeholder: A,
15898
15931
  disabled: u,
15899
15932
  rows: x,
15900
- "aria-labelledby": G,
15933
+ "aria-labelledby": Y,
15901
15934
  "aria-invalid": d,
15902
15935
  "aria-errormessage": `${e}-error`,
15903
15936
  ...I,
@@ -15928,7 +15961,7 @@ export {
15928
15961
  W2 as PktLink,
15929
15962
  z2 as PktLinkCard,
15930
15963
  V2 as PktLoader,
15931
- Y2 as PktMessagebox,
15964
+ G2 as PktMessagebox,
15932
15965
  Kx as PktPreview,
15933
15966
  t_ as PktProgressbar,
15934
15967
  n_ as PktRadioButton,