@pontive/pontkit-core 1.36.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,23 @@
1
- import { noChange as qa, LitElement as _a, ReactiveElement as Mo, svg as g, html as d, nothing as u } from "lit";
1
+ import { noChange as Oa, LitElement as _a, ReactiveElement as Mo, svg as g, html as d, nothing as u } from "lit";
2
2
  import { directive as Io, Directive as Po, PartType as Bo } from "lit/directive.js";
3
- import { createContext as to, ContextConsumer as eo, ContextProvider as Oa } from "@lit/context";
4
- import { live as Qn } from "lit/directives/live.js";
5
- import { styleMap as Te } from "lit/directives/style-map.js";
3
+ import { createContext as to, ContextConsumer as eo, ContextProvider as La } from "@lit/context";
4
+ import { live as Zn } from "lit/directives/live.js";
5
+ import { styleMap as Ve } from "lit/directives/style-map.js";
6
6
  import { repeat as Gn } from "lit/directives/repeat.js";
7
- import Wo from "qrcode";
8
- class jo extends Po {
7
+ import Ko from "qrcode";
8
+ class Wo extends Po {
9
9
  constructor(t) {
10
10
  if (super(t), this.prev = /* @__PURE__ */ new Set(), t.type !== Bo.ELEMENT) throw new Error("attrs() must be used in element position");
11
11
  }
12
12
  render(t) {
13
- return qa;
13
+ return Oa;
14
14
  }
15
15
  update(t, [e]) {
16
- return Ko(t.element, e, this.prev), this.prev = new Set(Object.keys(e)), qa;
16
+ return jo(t.element, e, this.prev), this.prev = new Set(Object.keys(e)), Oa;
17
17
  }
18
18
  }
19
- const C = Io(jo);
20
- function Ko(i, t, e) {
19
+ const C = Io(Wo);
20
+ function jo(i, t, e) {
21
21
  if (e)
22
22
  for (const s of e) s in t || i.removeAttribute(s);
23
23
  for (const [s, r] of Object.entries(t))
@@ -44,11 +44,11 @@ const we = "pont2", Ho = "prim", io = (i) => `${we}-${i}`, so = (i) => `${we}-${
44
44
  function a(i, t) {
45
45
  customElements.get(i) || customElements.define(i, t);
46
46
  }
47
- const La = /* @__PURE__ */ new Map();
47
+ const qa = /* @__PURE__ */ new Map();
48
48
  function E(i, t) {
49
- let e = La.get(t);
49
+ let e = qa.get(t);
50
50
  return e || (e = class extends t {
51
- }, Object.defineProperty(e, "name", { value: `${t.name}Alias` }), La.set(t, e)), a(i, e), customElements.get(i);
51
+ }, Object.defineProperty(e, "name", { value: `${t.name}Alias` }), qa.set(t, e)), a(i, e), customElements.get(i);
52
52
  }
53
53
  const xi = class xi extends _a {
54
54
  constructor() {
@@ -178,7 +178,7 @@ const aa = class aa extends Mt {
178
178
  }
179
179
  };
180
180
  aa.nativeSelector = "*";
181
- let L = aa;
181
+ let q = aa;
182
182
  const $i = class $i extends l {
183
183
  constructor() {
184
184
  super(), this._customMessage = "", this.name = "", this.disabled = !1, this.required = !1, this.readOnly = !1, this.formDisabled = !1;
@@ -260,9 +260,9 @@ $i.formAssociated = !0, $i.properties = {
260
260
  readOnly: { type: Boolean, reflect: !0, attribute: "readonly" },
261
261
  formDisabled: { state: !0 }
262
262
  };
263
- let W = $i;
263
+ let K = $i;
264
264
  const no = to("pont2:design-mode");
265
- class Le {
265
+ class qe {
266
266
  constructor(t) {
267
267
  this.host = t, this.consumer = new eo(t, { context: no, subscribe: !0 });
268
268
  }
@@ -278,7 +278,7 @@ function Ms(i = "id") {
278
278
  function $(i, t = "id") {
279
279
  return i.id || (i.id = Ms(t)), i.id;
280
280
  }
281
- function qc(i, t, e, s) {
281
+ function Oc(i, t, e, s) {
282
282
  const r = new Set((i.getAttribute(t) ?? "").split(/\s+/).filter(Boolean));
283
283
  s ? r.add(e) : r.delete(e), r.size ? i.setAttribute(t, [...r].join(" ")) : i.removeAttribute(t);
284
284
  }
@@ -357,7 +357,7 @@ const w = (i, t, e = {}) => d`<svg
357
357
  g`<path d="M19 11v6" /><path d="M19 13h2" /><path d="M2 21a8 8 0 0 1 12.868-6.349" /><circle cx="10" cy="8" r="5" /><circle cx="19" cy="19" r="2" />`,
358
358
  i
359
359
  )
360
- }, N = {
360
+ }, D = {
361
361
  connection_failed: "We couldn't reach the server. Check your connection and try again.",
362
362
  too_many_attempts: "Too many attempts. Try again later.",
363
363
  server_error: "Something went wrong on our side. Please try again.",
@@ -378,17 +378,17 @@ const Ie = /* @__PURE__ */ new Set();
378
378
  function ao(i, t) {
379
379
  !i || Object.keys(i).length === 0 || (Me = { ...Me, ...i }, t && (ta = t), Ie.forEach((e) => e()));
380
380
  }
381
- function j(i, t) {
381
+ function W(i, t) {
382
382
  var s;
383
- return ((s = Me[i]) == null ? void 0 : s.trim()) || t || N[i] || i;
383
+ return ((s = Me[i]) == null ? void 0 : s.trim()) || t || D[i] || i;
384
384
  }
385
- function Oc() {
385
+ function Lc() {
386
386
  return ta;
387
387
  }
388
388
  function Fo(i) {
389
389
  return Ie.add(i), () => Ie.delete(i);
390
390
  }
391
- function Lc() {
391
+ function qc() {
392
392
  Me = {}, ta = void 0, Ie.forEach((i) => i());
393
393
  }
394
394
  class ea {
@@ -412,7 +412,7 @@ function oo(i, t = ((e) => (e = globalThis.location) == null ? void 0 : e.href)(
412
412
  return null;
413
413
  }
414
414
  }
415
- function Va(i) {
415
+ function Ra(i) {
416
416
  if (typeof i != "string") return null;
417
417
  const t = i.trim();
418
418
  if (!t) return null;
@@ -428,7 +428,7 @@ function It(i) {
428
428
  const t = i.closest("[dir]");
429
429
  return ((t == null ? void 0 : t.getAttribute("dir")) ?? document.documentElement.dir ?? "").toLowerCase() === "rtl" ? "rtl" : "ltr";
430
430
  }
431
- const Xo = (i) => i.hasAttribute("data-disabled") || i.getAttribute("aria-disabled") === "true" || i.disabled === !0;
431
+ const Yo = (i) => i.hasAttribute("data-disabled") || i.getAttribute("aria-disabled") === "true" || i.disabled === !0;
432
432
  class lo {
433
433
  constructor(t, e) {
434
434
  this.host = t, this.onFocusIn = (s) => {
@@ -437,7 +437,7 @@ class lo {
437
437
  }, this.onKeyDown = (s) => {
438
438
  var y, k;
439
439
  if (s.defaultPrevented || s.altKey || s.ctrlKey || s.metaKey) return;
440
- const r = this.opts.items(), n = r.findIndex((D) => D === s.target || D.contains(s.target));
440
+ const r = this.opts.items(), n = r.findIndex((N) => N === s.target || N.contains(s.target));
441
441
  if (n < 0) return;
442
442
  const o = this.opts.orientation(), c = It(this.host) === "rtl", h = o !== "vertical", f = o !== "horizontal";
443
443
  let p = 0;
@@ -467,7 +467,7 @@ class lo {
467
467
  }, this.opts = {
468
468
  orientation: () => "both",
469
469
  loop: () => !0,
470
- isDisabled: Xo,
470
+ isDisabled: Yo,
471
471
  ...e
472
472
  }, t.addController(this);
473
473
  }
@@ -499,7 +499,7 @@ class lo {
499
499
  }
500
500
  }
501
501
  }
502
- class Wt {
502
+ class Kt {
503
503
  constructor(t) {
504
504
  this.host = t, this.busy = !1, t.addController(this);
505
505
  }
@@ -560,7 +560,7 @@ class co {
560
560
  }, this.duration), S(this.host, "pont2-copied", { kind: this.kind }), !0;
561
561
  }
562
562
  }
563
- const Uc = ["default", "secondary", "destructive", "outline", "ghost", "link"], Xt = class Xt extends l {
563
+ const Uc = ["default", "secondary", "destructive", "outline", "ghost", "link"], Yt = class Yt extends l {
564
564
  constructor() {
565
565
  super(), this.variant = "default";
566
566
  }
@@ -568,21 +568,21 @@ const Uc = ["default", "secondary", "destructive", "outline", "ghost", "link"],
568
568
  this.setData("variant", this.variant || "default");
569
569
  }
570
570
  };
571
- Xt.identity = "badge", Xt.slotName = "badge", Xt.properties = {
571
+ Yt.identity = "badge", Yt.slotName = "badge", Yt.properties = {
572
572
  variant: { type: String, reflect: !0 }
573
573
  };
574
- let Pe = Xt;
574
+ let Pe = Yt;
575
575
  a("pont2-prim-badge", Pe);
576
- const zc = ["default", "outline", "secondary", "ghost", "destructive", "link"], Vc = ["default", "xs", "sm", "lg", "icon", "icon-xs", "icon-sm", "icon-lg"];
576
+ const zc = ["default", "outline", "secondary", "ghost", "destructive", "link"], Rc = ["default", "xs", "sm", "lg", "icon", "icon-xs", "icon-sm", "icon-lg"];
577
577
  function ho(i, t) {
578
578
  i.hasAttribute("data-pont2-button") || i.setAttribute("data-pont2-button", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", "button"), i.setAttribute("data-variant", t.variant ?? "default"), i.setAttribute("data-size", t.size ?? "default");
579
579
  const e = !!t.disabled, s = i instanceof HTMLButtonElement;
580
580
  i.toggleAttribute("data-disabled", e), s && !t.focusableWhenDisabled ? (i.disabled = e, i.removeAttribute("aria-disabled")) : (s && (i.disabled = !1), e ? i.setAttribute("aria-disabled", "true") : i.removeAttribute("aria-disabled"), s || (e && !t.focusableWhenDisabled ? i.tabIndex = -1 : i.removeAttribute("tabindex")));
581
581
  }
582
- function Yo(i) {
582
+ function Xo(i) {
583
583
  return i.getAttribute("aria-disabled") === "true" || i.hasAttribute("data-disabled");
584
584
  }
585
- function R(i, t) {
585
+ function T(i, t) {
586
586
  const e = i.variant ?? "default", s = i.size ?? "default", r = i.slot ?? "button", n = !!i.disabled, o = n && (i.focusableWhenDisabled || i.href !== void 0), c = (h) => {
587
587
  var f;
588
588
  if (o) {
@@ -625,11 +625,11 @@ const uo = {
625
625
  size: { type: String, reflect: !0 },
626
626
  disabled: { type: Boolean, reflect: !0 },
627
627
  focusableWhenDisabled: { type: Boolean, attribute: "focusable-when-disabled" }
628
- }, Si = class Si extends L {
628
+ }, Si = class Si extends q {
629
629
  constructor() {
630
630
  super(), this.guard = (t) => {
631
631
  const e = this.control;
632
- e && this.disabled && (e === t.target || e.contains(t.target)) && Yo(e) && (t.preventDefault(), t.stopImmediatePropagation());
632
+ e && this.disabled && (e === t.target || e.contains(t.target)) && Xo(e) && (t.preventDefault(), t.stopImmediatePropagation());
633
633
  }, this.variant = "default", this.size = "default", this.disabled = !1, this.focusableWhenDisabled = !1, this.addEventListener("click", this.guard, { capture: !0 });
634
634
  }
635
635
  apply(t) {
@@ -651,7 +651,7 @@ const oa = class oa extends Mt {
651
651
  return { variant: t, size: e, type: s, name: r, value: n, disabled: o, focusableWhenDisabled: c, href: h, target: f, rel: p };
652
652
  }
653
653
  render() {
654
- return R(this.buttonOptions(), this.renderContent());
654
+ return T(this.buttonOptions(), this.renderContent());
655
655
  }
656
656
  };
657
657
  oa.properties = {
@@ -665,7 +665,7 @@ oa.properties = {
665
665
  };
666
666
  let Js = oa;
667
667
  a("pont2-prim-button", xe);
668
- const it = class it extends W {
668
+ const it = class it extends K {
669
669
  constructor() {
670
670
  super(), this.onClick = (t) => {
671
671
  if (this.isDisabled || this.readOnly) {
@@ -711,7 +711,7 @@ const it = class it extends W {
711
711
  }
712
712
  };
713
713
  it.identity = "checkbox", it.slotName = "checkbox", it.role = "checkbox", it.properties = {
714
- ...W.properties,
714
+ ...K.properties,
715
715
  checked: { type: Boolean },
716
716
  indeterminate: { type: Boolean, reflect: !0 },
717
717
  value: { type: String },
@@ -729,7 +729,7 @@ function fo(i = {}) {
729
729
  id=${i.id ?? u}
730
730
  name=${i.name ?? u}
731
731
  type=${i.type ?? "text"}
732
- .value=${Qn(i.value ?? "")}
732
+ .value=${Zn(i.value ?? "")}
733
733
  placeholder=${i.placeholder ?? u}
734
734
  autocomplete=${i.autocomplete ?? u}
735
735
  inputmode=${i.inputmode ?? u}
@@ -743,28 +743,28 @@ function fo(i = {}) {
743
743
  @change=${i.onChange ?? u}
744
744
  />`;
745
745
  }
746
- const la = class la extends L {
746
+ const la = class la extends q {
747
747
  apply(t) {
748
748
  po(t);
749
749
  }
750
750
  };
751
751
  la.nativeSelector = "input";
752
- let We = la;
753
- a("pont2-prim-input", We);
752
+ let Ke = la;
753
+ a("pont2-prim-input", Ke);
754
754
  const Ei = class Ei extends l {
755
755
  };
756
756
  Ei.identity = "kbd", Ei.slotName = "kbd";
757
- let je = Ei;
757
+ let We = Ei;
758
758
  const Ai = class Ai extends l {
759
759
  };
760
760
  Ai.identity = "kbd-group", Ai.slotName = "kbd-group";
761
- let Ke = Ai;
762
- a("pont2-prim-kbd", je);
763
- a("pont2-prim-kbd-group", Ke);
761
+ let je = Ai;
762
+ a("pont2-prim-kbd", We);
763
+ a("pont2-prim-kbd-group", je);
764
764
  function mo(i, t = "label") {
765
765
  i.hasAttribute("data-pont2-label") || i.setAttribute("data-pont2-label", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", t);
766
766
  }
767
- function Rc(i, t) {
767
+ function Tc(i, t) {
768
768
  const e = {};
769
769
  for (const s of i.identities ?? []) e[`data-pont2-${s}`] = !0;
770
770
  return d`<label
@@ -776,7 +776,7 @@ function Rc(i, t) {
776
776
  >${t}</label
777
777
  >`;
778
778
  }
779
- const ca = class ca extends L {
779
+ const ca = class ca extends q {
780
780
  apply(t) {
781
781
  mo(t);
782
782
  }
@@ -798,18 +798,18 @@ st.identity = "separator", st.slotName = "separator", st.role = "separator", st.
798
798
  };
799
799
  let I = st;
800
800
  a("pont2-prim-separator", I);
801
- const Di = class Di extends l {
801
+ const Ni = class Ni extends l {
802
802
  };
803
- Di.identity = "skeleton", Di.slotName = "skeleton";
804
- let Fe = Di;
803
+ Ni.identity = "skeleton", Ni.slotName = "skeleton";
804
+ let Fe = Ni;
805
805
  a("pont2-prim-skeleton", Fe);
806
- const Yt = class Yt extends l {
806
+ const Xt = class Xt extends l {
807
807
  connectedCallback() {
808
808
  super.connectedCallback(), this.internals.ariaLabel || (this.internals.ariaLabel = "Loading");
809
809
  }
810
810
  };
811
- Yt.identity = "spinner", Yt.slotName = "spinner", Yt.role = "status";
812
- let G = Yt;
811
+ Xt.identity = "spinner", Xt.slotName = "spinner", Xt.role = "status";
812
+ let G = Xt;
813
813
  a("pont2-prim-spinner", G);
814
814
  function go(i, t = "textarea") {
815
815
  i.hasAttribute("data-pont2-textarea") || i.setAttribute("data-pont2-textarea", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", t);
@@ -827,20 +827,20 @@ function Jo(i = {}) {
827
827
  ?readonly=${i.readonly}
828
828
  aria-invalid=${i.invalid ? "true" : u}
829
829
  aria-describedby=${i.describedBy ?? u}
830
- .value=${Qn(i.value ?? "")}
830
+ .value=${Zn(i.value ?? "")}
831
831
  ${C(i.attrs ?? {})}
832
832
  @input=${i.onInput ?? u}
833
833
  ></textarea>`;
834
834
  }
835
- const ha = class ha extends L {
835
+ const ha = class ha extends q {
836
836
  apply(t) {
837
837
  go(t);
838
838
  }
839
839
  };
840
840
  ha.nativeSelector = "textarea";
841
- let Xe = ha;
842
- a("pont2-prim-textarea", Xe);
843
- const Tc = ["default", "destructive"], rt = class rt extends l {
841
+ let Ye = ha;
842
+ a("pont2-prim-textarea", Ye);
843
+ const Vc = ["default", "destructive"], rt = class rt extends l {
844
844
  constructor() {
845
845
  super(), this.variant = "default";
846
846
  }
@@ -851,23 +851,23 @@ const Tc = ["default", "destructive"], rt = class rt extends l {
851
851
  rt.identity = "alert", rt.slotName = "alert", rt.role = "alert", rt.properties = {
852
852
  variant: { type: String, reflect: !0 }
853
853
  };
854
- let Ye = rt;
855
- const Ni = class Ni extends l {
854
+ let Xe = rt;
855
+ const Di = class Di extends l {
856
856
  };
857
- Ni.identity = "alert-title", Ni.slotName = "alert-title";
858
- let Je = Ni;
857
+ Di.identity = "alert-title", Di.slotName = "alert-title";
858
+ let Je = Di;
859
859
  const Ci = class Ci extends l {
860
860
  };
861
861
  Ci.identity = "alert-description", Ci.slotName = "alert-description";
862
- let Ze = Ci;
863
- const qi = class qi extends l {
862
+ let Qe = Ci;
863
+ const Oi = class Oi extends l {
864
864
  };
865
- qi.identity = "alert-action", qi.slotName = "alert-action";
866
- let Zs = qi;
867
- a("pont2-prim-alert", Ye);
865
+ Oi.identity = "alert-action", Oi.slotName = "alert-action";
866
+ let Qs = Oi;
867
+ a("pont2-prim-alert", Xe);
868
868
  a("pont2-prim-alert-title", Je);
869
- a("pont2-prim-alert-description", Ze);
870
- a("pont2-prim-alert-action", Zs);
869
+ a("pont2-prim-alert-description", Qe);
870
+ a("pont2-prim-alert-action", Qs);
871
871
  const Jt = class Jt extends l {
872
872
  constructor() {
873
873
  super(), this.img = null, this.onLoad = () => this.setStatus("loaded"), this.onError = () => this.setStatus("error"), this.size = "default", this.imageLoadingStatus = "idle";
@@ -905,27 +905,27 @@ Jt.identity = "avatar", Jt.slotName = "avatar", Jt.properties = {
905
905
  size: { type: String, reflect: !0 },
906
906
  imageLoadingStatus: { state: !0 }
907
907
  };
908
- let Qe = Jt;
909
- const Oi = class Oi extends l {
910
- };
911
- Oi.identity = "avatar-fallback", Oi.slotName = "avatar-fallback";
912
- let Ge = Oi;
908
+ let Ze = Jt;
913
909
  const Li = class Li extends l {
914
910
  };
915
- Li.identity = "avatar-badge", Li.slotName = "avatar-badge";
916
- let _e = Li;
911
+ Li.identity = "avatar-fallback", Li.slotName = "avatar-fallback";
912
+ let Ge = Li;
913
+ const qi = class qi extends l {
914
+ };
915
+ qi.identity = "avatar-badge", qi.slotName = "avatar-badge";
916
+ let _e = qi;
917
917
  const Ui = class Ui extends l {
918
918
  };
919
919
  Ui.identity = "avatar-group", Ui.slotName = "avatar-group";
920
- let Qs = Ui;
920
+ let Zs = Ui;
921
921
  const zi = class zi extends l {
922
922
  };
923
923
  zi.identity = "avatar-group-count", zi.slotName = "avatar-group-count";
924
924
  let Gs = zi;
925
- a("pont2-prim-avatar", Qe);
925
+ a("pont2-prim-avatar", Ze);
926
926
  a("pont2-prim-avatar-fallback", Ge);
927
927
  a("pont2-prim-avatar-badge", _e);
928
- a("pont2-prim-avatar-group", Qs);
928
+ a("pont2-prim-avatar-group", Zs);
929
929
  a("pont2-prim-avatar-group-count", Gs);
930
930
  const nt = class nt extends l {
931
931
  constructor() {
@@ -939,21 +939,21 @@ nt.identity = "button-group", nt.slotName = "button-group", nt.role = "group", n
939
939
  orientation: { type: String, reflect: !0 }
940
940
  };
941
941
  let _s = nt;
942
- const Vi = class Vi extends l {
942
+ const Ri = class Ri extends l {
943
943
  };
944
- Vi.identity = "button-group-text", Vi.slotName = "button-group-text";
945
- let tr = Vi;
946
- const Ri = class Ri extends I {
944
+ Ri.identity = "button-group-text", Ri.slotName = "button-group-text";
945
+ let tr = Ri;
946
+ const Ti = class Ti extends I {
947
947
  constructor() {
948
948
  super(), this.orientation = "vertical";
949
949
  }
950
950
  };
951
- Ri.identity = "button-group-separator", Ri.slotName = "button-group-separator";
952
- let er = Ri;
951
+ Ti.identity = "button-group-separator", Ti.slotName = "button-group-separator";
952
+ let er = Ti;
953
953
  a("pont2-prim-button-group", _s);
954
954
  a("pont2-prim-button-group-text", tr);
955
955
  a("pont2-prim-button-group-separator", er);
956
- const Zt = class Zt extends l {
956
+ const Qt = class Qt extends l {
957
957
  constructor() {
958
958
  super(), this.size = "default";
959
959
  }
@@ -961,14 +961,14 @@ const Zt = class Zt extends l {
961
961
  this.setData("size", this.size || "default");
962
962
  }
963
963
  };
964
- Zt.identity = "card", Zt.slotName = "card", Zt.properties = {
964
+ Qt.identity = "card", Qt.slotName = "card", Qt.properties = {
965
965
  size: { type: String, reflect: !0 }
966
966
  };
967
- let ti = Zt;
968
- const Ti = class Ti extends l {
967
+ let ti = Qt;
968
+ const Vi = class Vi extends l {
969
969
  };
970
- Ti.identity = "card-header", Ti.slotName = "card-header";
971
- let ir = Ti;
970
+ Vi.identity = "card-header", Vi.slotName = "card-header";
971
+ let ir = Vi;
972
972
  const Mi = class Mi extends l {
973
973
  };
974
974
  Mi.identity = "card-title", Mi.slotName = "card-title";
@@ -985,10 +985,10 @@ const Bi = class Bi extends l {
985
985
  };
986
986
  Bi.identity = "card-content", Bi.slotName = "card-content";
987
987
  let ar = Bi;
988
- const Wi = class Wi extends l {
988
+ const Ki = class Ki extends l {
989
989
  };
990
- Wi.identity = "card-footer", Wi.slotName = "card-footer";
991
- let ei = Wi;
990
+ Ki.identity = "card-footer", Ki.slotName = "card-footer";
991
+ let ei = Ki;
992
992
  a("pont2-prim-card", ti);
993
993
  a("pont2-prim-card-header", ir);
994
994
  a("pont2-prim-card-title", sr);
@@ -996,15 +996,15 @@ a("pont2-prim-card-description", rr);
996
996
  a("pont2-prim-card-action", nr);
997
997
  a("pont2-prim-card-content", ar);
998
998
  a("pont2-prim-card-footer", ei);
999
- const ji = class ji extends l {
999
+ const Wi = class Wi extends l {
1000
1000
  };
1001
- ji.identity = "empty", ji.slotName = "empty";
1002
- let or = ji;
1003
- const Ki = class Ki extends l {
1001
+ Wi.identity = "empty", Wi.slotName = "empty";
1002
+ let or = Wi;
1003
+ const ji = class ji extends l {
1004
1004
  };
1005
- Ki.identity = "empty-header", Ki.slotName = "empty-header";
1006
- let lr = Ki;
1007
- const Qt = class Qt extends l {
1005
+ ji.identity = "empty-header", ji.slotName = "empty-header";
1006
+ let lr = ji;
1007
+ const Zt = class Zt extends l {
1008
1008
  constructor() {
1009
1009
  super(), this.variant = "default";
1010
1010
  }
@@ -1012,10 +1012,10 @@ const Qt = class Qt extends l {
1012
1012
  this.setData("variant", this.variant || "default");
1013
1013
  }
1014
1014
  };
1015
- Qt.identity = "empty-media", Qt.slotName = "empty-icon", Qt.properties = {
1015
+ Zt.identity = "empty-media", Zt.slotName = "empty-icon", Zt.properties = {
1016
1016
  variant: { type: String, reflect: !0 }
1017
1017
  };
1018
- let cr = Qt;
1018
+ let cr = Zt;
1019
1019
  const Hi = class Hi extends l {
1020
1020
  };
1021
1021
  Hi.identity = "empty-title", Hi.slotName = "empty-title";
@@ -1024,17 +1024,17 @@ const Fi = class Fi extends l {
1024
1024
  };
1025
1025
  Fi.identity = "empty-description", Fi.slotName = "empty-description";
1026
1026
  let dr = Fi;
1027
- const Xi = class Xi extends l {
1027
+ const Yi = class Yi extends l {
1028
1028
  };
1029
- Xi.identity = "empty-content", Xi.slotName = "empty-content";
1030
- let ur = Xi;
1029
+ Yi.identity = "empty-content", Yi.slotName = "empty-content";
1030
+ let ur = Yi;
1031
1031
  a("pont2-prim-empty", or);
1032
1032
  a("pont2-prim-empty-header", lr);
1033
1033
  a("pont2-prim-empty-media", cr);
1034
1034
  a("pont2-prim-empty-title", hr);
1035
1035
  a("pont2-prim-empty-description", dr);
1036
1036
  a("pont2-prim-empty-content", ur);
1037
- function Zo(i) {
1037
+ function Qo(i) {
1038
1038
  i.hasAttribute("data-pont2-field-set") || i.setAttribute("data-pont2-field-set", ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", "field-set");
1039
1039
  }
1040
1040
  function Mc(i, t) {
@@ -1051,17 +1051,17 @@ function Ic(i, t) {
1051
1051
  >${t}</legend
1052
1052
  >`;
1053
1053
  }
1054
- const da = class da extends L {
1054
+ const da = class da extends q {
1055
1055
  apply(t) {
1056
- Zo(t);
1056
+ Qo(t);
1057
1057
  }
1058
1058
  };
1059
1059
  da.nativeSelector = "fieldset";
1060
1060
  let pr = da;
1061
- const Yi = class Yi extends l {
1061
+ const Xi = class Xi extends l {
1062
1062
  };
1063
- Yi.identity = "field-group", Yi.slotName = "field-group";
1064
- let fr = Yi;
1063
+ Xi.identity = "field-group", Xi.slotName = "field-group";
1064
+ let fr = Xi;
1065
1065
  const at = class at extends l {
1066
1066
  constructor() {
1067
1067
  super(), this.orientation = "vertical", this.invalid = !1, this.disabled = !1;
@@ -1080,7 +1080,7 @@ const Ji = class Ji extends l {
1080
1080
  };
1081
1081
  Ji.identity = "field-content", Ji.slotName = "field-content";
1082
1082
  let mr = Ji;
1083
- function Qo(i) {
1083
+ function Zo(i) {
1084
1084
  mo(i, "field-label"), i.hasAttribute("data-pont2-field-label") || i.setAttribute("data-pont2-field-label", "");
1085
1085
  }
1086
1086
  function Go(i, t) {
@@ -1094,21 +1094,21 @@ function Go(i, t) {
1094
1094
  >${t}</label
1095
1095
  >`;
1096
1096
  }
1097
- const ua = class ua extends L {
1097
+ const ua = class ua extends q {
1098
1098
  apply(t) {
1099
- Qo(t);
1099
+ Zo(t);
1100
1100
  }
1101
1101
  };
1102
1102
  ua.nativeSelector = "label";
1103
1103
  let gr = ua;
1104
- const Zi = class Zi extends l {
1105
- };
1106
- Zi.identity = "field-title", Zi.slotName = "field-label";
1107
- let br = Zi;
1108
1104
  const Qi = class Qi extends l {
1109
1105
  };
1110
- Qi.identity = "field-description", Qi.slotName = "field-description";
1111
- let ii = Qi;
1106
+ Qi.identity = "field-title", Qi.slotName = "field-label";
1107
+ let br = Qi;
1108
+ const Zi = class Zi extends l {
1109
+ };
1110
+ Zi.identity = "field-description", Zi.slotName = "field-description";
1111
+ let ii = Zi;
1112
1112
  const Gi = class Gi extends l {
1113
1113
  connectedCallback() {
1114
1114
  super.connectedCallback(), this.observer ?? (this.observer = new MutationObserver(() => this.sync())), this.observer.observe(this, { childList: !0, characterData: !0, subtree: !0 }), this.sync();
@@ -1189,7 +1189,7 @@ function Pc(i = {}) {
1189
1189
  return Jo({ ...i, slot: _, attrs: { "data-pont2-input-group-textarea": !0, ...i.attrs ?? {} } });
1190
1190
  }
1191
1191
  function vo(i, t) {
1192
- return R(
1192
+ return T(
1193
1193
  {
1194
1194
  variant: "ghost",
1195
1195
  ...i,
@@ -1199,14 +1199,14 @@ function vo(i, t) {
1199
1199
  t
1200
1200
  );
1201
1201
  }
1202
- const fa = class fa extends L {
1202
+ const fa = class fa extends q {
1203
1203
  apply(t) {
1204
1204
  t.hasAttribute("data-slot") || t.setAttribute("data-slot", _), po(t, _), bo(t, "input-group-input");
1205
1205
  }
1206
1206
  };
1207
1207
  fa.nativeSelector = "input";
1208
1208
  let vr = fa;
1209
- const ma = class ma extends L {
1209
+ const ma = class ma extends q {
1210
1210
  apply(t) {
1211
1211
  t.hasAttribute("data-slot") || t.setAttribute("data-slot", _), go(t, _), bo(t, "input-group-textarea");
1212
1212
  }
@@ -1271,11 +1271,11 @@ let Ar = es;
1271
1271
  const is = class is extends l {
1272
1272
  };
1273
1273
  is.identity = "item-description", is.slotName = "item-description";
1274
- let Dr = is;
1274
+ let Nr = is;
1275
1275
  const ss = class ss extends l {
1276
1276
  };
1277
1277
  ss.identity = "item-actions", ss.slotName = "item-actions";
1278
- let Nr = ss;
1278
+ let Dr = ss;
1279
1279
  const rs = class rs extends l {
1280
1280
  };
1281
1281
  rs.identity = "item-header", rs.slotName = "item-header";
@@ -1283,17 +1283,17 @@ let Cr = rs;
1283
1283
  const ns = class ns extends l {
1284
1284
  };
1285
1285
  ns.identity = "item-footer", ns.slotName = "item-footer";
1286
- let qr = ns;
1286
+ let Or = ns;
1287
1287
  a("pont2-prim-item-group", kr);
1288
1288
  a("pont2-prim-item-separator", xr);
1289
1289
  a("pont2-prim-item", $r);
1290
1290
  a("pont2-prim-item-media", Sr);
1291
1291
  a("pont2-prim-item-content", Er);
1292
1292
  a("pont2-prim-item-title", Ar);
1293
- a("pont2-prim-item-description", Dr);
1294
- a("pont2-prim-item-actions", Nr);
1293
+ a("pont2-prim-item-description", Nr);
1294
+ a("pont2-prim-item-actions", Dr);
1295
1295
  a("pont2-prim-item-header", Cr);
1296
- a("pont2-prim-item-footer", qr);
1296
+ a("pont2-prim-item-footer", Or);
1297
1297
  const ee = class ee extends l {
1298
1298
  constructor() {
1299
1299
  super(), this.size = "default";
@@ -1375,20 +1375,20 @@ const ze = {
1375
1375
  TH: "table-head",
1376
1376
  TD: "table-cell"
1377
1377
  };
1378
- function Kt(i, t) {
1378
+ function jt(i, t) {
1379
1379
  i.hasAttribute(`data-pont2-${t}`) || i.setAttribute(`data-pont2-${t}`, ""), i.hasAttribute("data-slot") || i.setAttribute("data-slot", t);
1380
1380
  }
1381
1381
  function el(i) {
1382
- Kt(i, "table"), i.caption && Kt(i.caption, ze.CAPTION);
1382
+ jt(i, "table"), i.caption && jt(i.caption, ze.CAPTION);
1383
1383
  for (const t of [i.tHead, ...Array.from(i.tBodies), i.tFoot])
1384
- t && Kt(t, ze[t.tagName]);
1384
+ t && jt(t, ze[t.tagName]);
1385
1385
  for (const t of Array.from(i.rows)) {
1386
- Kt(t, ze.TR);
1387
- for (const e of Array.from(t.cells)) Kt(e, ze[e.tagName]);
1386
+ jt(t, ze.TR);
1387
+ for (const e of Array.from(t.cells)) jt(e, ze[e.tagName]);
1388
1388
  }
1389
1389
  }
1390
1390
  a("pont2-prim-table", ai);
1391
- const oi = "^\\d+$", Wc = "^[a-zA-Z]+$", jc = "^[a-zA-Z0-9]+$";
1391
+ const oi = "^\\d+$", Kc = "^[a-zA-Z]+$", Wc = "^[a-zA-Z0-9]+$";
1392
1392
  function Ps(i, t, e = oi) {
1393
1393
  let s = null;
1394
1394
  if (e)
@@ -1414,7 +1414,7 @@ function il(i, t, e, s, r) {
1414
1414
  return { char: b, isActive: y, hasFakeCaret: y && h && b === null };
1415
1415
  });
1416
1416
  }
1417
- const wo = m("input-otp"), sl = m("input-otp-slot"), Ra = ["aria-label", "aria-labelledby", "aria-describedby", "aria-invalid"], os = class os extends l {
1417
+ const wo = m("input-otp"), sl = m("input-otp-slot"), Ta = ["aria-label", "aria-labelledby", "aria-describedby", "aria-invalid"], os = class os extends l {
1418
1418
  constructor() {
1419
1419
  super(), this.dirty = !1, this.focused = !1, this.onInput = (t) => {
1420
1420
  this.setFromInput(t.target.value, t.target);
@@ -1455,7 +1455,7 @@ const wo = m("input-otp"), sl = m("input-otp-slot"), Ra = ["aria-label", "aria-l
1455
1455
  connectedCallback() {
1456
1456
  super.connectedCallback(), this.readForwarded(), this.observer ?? (this.observer = new MutationObserver((t) => {
1457
1457
  t.some((e) => e.type === "attributes" && e.target === this) ? this.readForwarded() : this.syncSlots();
1458
- })), this.observer.observe(this, { attributes: !0, attributeFilter: [...Ra], childList: !0, subtree: !0 }), document.addEventListener("selectionchange", this.onSelectionChange);
1458
+ })), this.observer.observe(this, { attributes: !0, attributeFilter: [...Ta], childList: !0, subtree: !0 }), document.addEventListener("selectionchange", this.onSelectionChange);
1459
1459
  }
1460
1460
  disconnectedCallback() {
1461
1461
  var t;
@@ -1463,7 +1463,7 @@ const wo = m("input-otp"), sl = m("input-otp-slot"), Ra = ["aria-label", "aria-l
1463
1463
  }
1464
1464
  readForwarded() {
1465
1465
  const t = {};
1466
- for (const e of Ra) t[e] = this.getAttribute(e);
1466
+ for (const e of Ta) t[e] = this.getAttribute(e);
1467
1467
  this.forwarded = t;
1468
1468
  }
1469
1469
  get slots() {
@@ -1503,7 +1503,7 @@ const wo = m("input-otp"), sl = m("input-otp-slot"), Ra = ["aria-label", "aria-l
1503
1503
  data-slot="input-otp"
1504
1504
  id=${this.inputId ?? u}
1505
1505
  name=${this.name ?? u}
1506
- .value=${Qn(this.current)}
1506
+ .value=${Zn(this.current)}
1507
1507
  maxlength=${this.maxLength}
1508
1508
  pattern=${this.pattern || u}
1509
1509
  inputmode=${this.keyboardMode ?? (t ? "numeric" : "text")}
@@ -1563,7 +1563,7 @@ const ie = class ie extends l {
1563
1563
  ie.identity = "input-otp-slot", ie.slotName = "input-otp-slot", ie.properties = {
1564
1564
  state: { state: !0 }
1565
1565
  };
1566
- let Or = ie;
1566
+ let Lr = ie;
1567
1567
  const se = class se extends l {
1568
1568
  render() {
1569
1569
  return v.minus();
@@ -1573,7 +1573,7 @@ se.identity = "input-otp-separator", se.slotName = "input-otp-separator", se.rol
1573
1573
  let hi = se;
1574
1574
  a("pont2-prim-input-otp", li);
1575
1575
  a("pont2-prim-input-otp-group", ci);
1576
- a("pont2-prim-input-otp-slot", Or);
1576
+ a("pont2-prim-input-otp-slot", Lr);
1577
1577
  a("pont2-prim-input-otp-separator", hi);
1578
1578
  const ko = m("progress"), ht = class ht extends l {
1579
1579
  constructor() {
@@ -1623,7 +1623,7 @@ const ko = m("progress"), ht = class ht extends l {
1623
1623
  ?data-progressing=${t === "progressing"}
1624
1624
  ?data-complete=${t === "complete"}
1625
1625
  ?data-indeterminate=${t === "indeterminate"}
1626
- style=${e == null ? u : Te({ insetInlineStart: "0", width: `${e * 100}%` })}
1626
+ style=${e == null ? u : Ve({ insetInlineStart: "0", width: `${e * 100}%` })}
1627
1627
  ></div>
1628
1628
  </div>`;
1629
1629
  }
@@ -1633,7 +1633,7 @@ ht.identity = "progress", ht.slotName = "progress", ht.role = "progressbar", ht.
1633
1633
  min: { type: Number },
1634
1634
  max: { type: Number }
1635
1635
  };
1636
- let Lr = ht;
1636
+ let qr = ht;
1637
1637
  class xo extends l {
1638
1638
  connectedCallback() {
1639
1639
  var t;
@@ -1666,10 +1666,10 @@ re.identity = "progress-value", re.slotName = "progress-value", re.properties =
1666
1666
  formatted: { state: !0 }
1667
1667
  };
1668
1668
  let zr = re;
1669
- a("pont2-prim-progress", Lr);
1669
+ a("pont2-prim-progress", qr);
1670
1670
  a("pont2-prim-progress-label", Ur);
1671
1671
  a("pont2-prim-progress-value", zr);
1672
- const dt = class dt extends W {
1672
+ const dt = class dt extends K {
1673
1673
  constructor() {
1674
1674
  super(), this.roving = new lo(this, {
1675
1675
  items: () => this.items,
@@ -1732,7 +1732,7 @@ dt.identity = "radio-group", dt.slotName = "radio-group", dt.role = "radiogroup"
1732
1732
  value: { type: String },
1733
1733
  orientation: { type: String }
1734
1734
  };
1735
- let Vr = dt;
1735
+ let Rr = dt;
1736
1736
  const F = class F extends l {
1737
1737
  constructor() {
1738
1738
  super(), this.onClick = (t) => {
@@ -1782,11 +1782,11 @@ F.formAssociated = !0, F.identity = "radio-group-item", F.slotName = "radio-grou
1782
1782
  groupRequired: { state: !0 },
1783
1783
  formDisabled: { state: !0 }
1784
1784
  };
1785
- let Rr = F;
1786
- a("pont2-prim-radio-group", Vr);
1787
- a("pont2-prim-radio-group-item", Rr);
1785
+ let Tr = F;
1786
+ a("pont2-prim-radio-group", Rr);
1787
+ a("pont2-prim-radio-group-item", Tr);
1788
1788
  const Ae = (i, t, e) => Math.min(e, Math.max(t, i));
1789
- function Ta(i) {
1789
+ function Va(i) {
1790
1790
  if (!Number.isFinite(i)) return 0;
1791
1791
  const t = String(i);
1792
1792
  if (t.includes("e-")) return Number(t.split("e-")[1]);
@@ -1795,7 +1795,7 @@ function Ta(i) {
1795
1795
  }
1796
1796
  function rl(i, { min: t, max: e, step: s }) {
1797
1797
  if (!(s > 0)) return Ae(i, t, e);
1798
- const r = Math.round((i - t) / s) * s + t, n = Math.max(Ta(s), Ta(t));
1798
+ const r = Math.round((i - t) / s) * s + t, n = Math.max(Va(s), Va(t));
1799
1799
  return Ae(Number(r.toFixed(n)), t, e);
1800
1800
  }
1801
1801
  function nl(i, { min: t, max: e }) {
@@ -1843,7 +1843,7 @@ function ll(i, t) {
1843
1843
  const e = i.split(",").map((s) => Number(s.trim())).filter((s) => Number.isFinite(s));
1844
1844
  return e.length ? e.sort((s, r) => s - r) : [t];
1845
1845
  }
1846
- const ne = class ne extends W {
1846
+ const ne = class ne extends K {
1847
1847
  constructor() {
1848
1848
  super(), this.dirty = !1, this.dragging = -1, this.onKeyDown = (t, e) => {
1849
1849
  if (this.isDisabled || this.readOnly) return;
@@ -1951,7 +1951,7 @@ const ne = class ne extends W {
1951
1951
  @pointercancel=${this.onPointerUp}
1952
1952
  >
1953
1953
  <div data-pont2-slider-track data-slot="slider-track" data-orientation=${e} ?data-disabled=${s}>
1954
- <div data-pont2-slider-range data-slot="slider-range" data-orientation=${e} ?data-disabled=${s} style=${Te(h)}></div>
1954
+ <div data-pont2-slider-range data-slot="slider-range" data-orientation=${e} ?data-disabled=${s} style=${Ve(h)}></div>
1955
1955
  </div>
1956
1956
  ${Gn(
1957
1957
  this.values,
@@ -1971,7 +1971,7 @@ const ne = class ne extends W {
1971
1971
  aria-orientation=${e}
1972
1972
  aria-disabled=${s ? "true" : "false"}
1973
1973
  aria-label=${f ? p[y] ? `${f} ${p[y].toLowerCase()}` : f : p[y] ?? u}
1974
- style=${Te(t ? { bottom: n(r[y]) } : { insetInlineStart: n(r[y]) })}
1974
+ style=${Ve(t ? { bottom: n(r[y]) } : { insetInlineStart: n(r[y]) })}
1975
1975
  @keydown=${(k) => this.onKeyDown(k, y)}
1976
1976
  ></div>`
1977
1977
  )}
@@ -1991,7 +1991,7 @@ ne.identity = "slider", ne.slotName = "slider", ne.properties = {
1991
1991
  };
1992
1992
  let di = ne;
1993
1993
  a("pont2-prim-slider", di);
1994
- const ut = class ut extends W {
1994
+ const ut = class ut extends K {
1995
1995
  constructor() {
1996
1996
  super(), this.onClick = (t) => {
1997
1997
  if (this.isDisabled || this.readOnly) {
@@ -2109,7 +2109,7 @@ ae.identity = "tabs", ae.slotName = "tabs", ae.properties = {
2109
2109
  orientation: { type: String, reflect: !0 },
2110
2110
  current: { state: !0 }
2111
2111
  };
2112
- let Tr = ae;
2112
+ let Vr = ae;
2113
2113
  const pt = class pt extends l {
2114
2114
  constructor() {
2115
2115
  super(), this.orientation = "horizontal", this.roving = new lo(this, {
@@ -2196,7 +2196,7 @@ mt.identity = "tabs-content", mt.slotName = "tabs-content", mt.role = "tabpanel"
2196
2196
  value: { type: String }
2197
2197
  };
2198
2198
  let Pr = mt;
2199
- a("pont2-prim-tabs", Tr);
2199
+ a("pont2-prim-tabs", Vr);
2200
2200
  a("pont2-prim-tabs-list", Mr);
2201
2201
  a("pont2-prim-tabs-trigger", Ir);
2202
2202
  a("pont2-prim-tabs-content", Pr);
@@ -2208,7 +2208,7 @@ function ul(i, t, e) {
2208
2208
  return t !== "inline-start" && t !== "inline-end" ? i : i === (e === "rtl" ? "right" : "left") ? "inline-start" : "inline-end";
2209
2209
  }
2210
2210
  const Ht = (i) => i === "top" || i === "bottom";
2211
- function Ws(i, t, e, s, r) {
2211
+ function Ks(i, t, e, s, r) {
2212
2212
  switch (i) {
2213
2213
  case "bottom":
2214
2214
  return e.y + e.height - r - (t.y + t.height + s);
@@ -2236,47 +2236,47 @@ function pl(i) {
2236
2236
  } = i, y = h;
2237
2237
  let k = dl(r, b);
2238
2238
  if (f) {
2239
- const q = Ht(k) ? e.height : e.width, U = Ws(k, t, s, o, y), jt = Ws(Ia[k], t, s, o, y);
2240
- U < q && jt > U && (k = Ia[k]);
2239
+ const O = Ht(k) ? e.height : e.width, U = Ks(k, t, s, o, y), Wt = Ks(Ia[k], t, s, o, y);
2240
+ U < O && Wt > U && (k = Ia[k]);
2241
2241
  }
2242
- let D = 0, T = 0;
2242
+ let N = 0, V = 0;
2243
2243
  switch (k) {
2244
2244
  case "bottom":
2245
- T = t.y + t.height + o;
2245
+ V = t.y + t.height + o;
2246
2246
  break;
2247
2247
  case "top":
2248
- T = t.y - e.height - o;
2248
+ V = t.y - e.height - o;
2249
2249
  break;
2250
2250
  case "right":
2251
- D = t.x + t.width + o;
2251
+ N = t.x + t.width + o;
2252
2252
  break;
2253
2253
  case "left":
2254
- D = t.x - e.width - o;
2254
+ N = t.x - e.width - o;
2255
2255
  break;
2256
2256
  }
2257
2257
  if (Ht(k)) {
2258
- const q = b === "rtl" ? t.x + t.width - e.width : t.x, U = b === "rtl" ? t.x : t.x + t.width - e.width, jt = b === "rtl" ? -1 : 1;
2259
- n === "start" ? D = q + jt * c : n === "end" ? D = U - jt * c : D = t.x + (t.width - e.width) / 2 + jt * c;
2258
+ const O = b === "rtl" ? t.x + t.width - e.width : t.x, U = b === "rtl" ? t.x : t.x + t.width - e.width, Wt = b === "rtl" ? -1 : 1;
2259
+ n === "start" ? N = O + Wt * c : n === "end" ? N = U - Wt * c : N = t.x + (t.width - e.width) / 2 + Wt * c;
2260
2260
  } else
2261
- n === "start" ? T = t.y + c : n === "end" ? T = t.y + t.height - e.height - c : T = t.y + (t.height - e.height) / 2 + c;
2261
+ n === "start" ? V = t.y + c : n === "end" ? V = t.y + t.height - e.height - c : V = t.y + (t.height - e.height) / 2 + c;
2262
2262
  if (p)
2263
2263
  if (Ht(k)) {
2264
- const q = s.x + y, U = s.x + s.width - y - e.width;
2265
- D = U < q ? q : Math.min(Math.max(D, q), U);
2264
+ const O = s.x + y, U = s.x + s.width - y - e.width;
2265
+ N = U < O ? O : Math.min(Math.max(N, O), U);
2266
2266
  } else {
2267
- const q = s.y + y, U = s.y + s.height - y - e.height;
2268
- T = U < q ? q : Math.min(Math.max(T, q), U);
2267
+ const O = s.y + y, U = s.y + s.height - y - e.height;
2268
+ V = U < O ? O : Math.min(Math.max(V, O), U);
2269
2269
  }
2270
- const Da = Math.max(0, Ws(k, t, s, o, y)), Vo = Ht(k) ? Da : Math.max(0, s.height - 2 * y), Ro = Ht(k) ? Math.max(0, s.width - 2 * y) : Da, Na = t.x + t.width / 2 - D, Ca = t.y + t.height / 2 - T, To = k === "bottom" ? `${z(Na)}px ${-o}px` : k === "top" ? `${z(Na)}px ${e.height + o}px` : k === "right" ? `${-o}px ${z(Ca)}px` : `${e.width + o}px ${z(Ca)}px`;
2270
+ const Na = Math.max(0, Ks(k, t, s, o, y)), Ro = Ht(k) ? Na : Math.max(0, s.height - 2 * y), To = Ht(k) ? Math.max(0, s.width - 2 * y) : Na, Da = t.x + t.width / 2 - N, Ca = t.y + t.height / 2 - V, Vo = k === "bottom" ? `${z(Da)}px ${-o}px` : k === "top" ? `${z(Da)}px ${e.height + o}px` : k === "right" ? `${-o}px ${z(Ca)}px` : `${e.width + o}px ${z(Ca)}px`;
2271
2271
  return {
2272
- x: z(D),
2273
- y: z(T),
2272
+ x: z(N),
2273
+ y: z(V),
2274
2274
  side: ul(k, r, b),
2275
2275
  physicalSide: k,
2276
2276
  align: n,
2277
- availableWidth: z(Ro),
2278
- availableHeight: z(Vo),
2279
- transformOrigin: To
2277
+ availableWidth: z(To),
2278
+ availableHeight: z(Ro),
2279
+ transformOrigin: Vo
2280
2280
  };
2281
2281
  }
2282
2282
  function fl(i) {
@@ -2348,7 +2348,7 @@ class ml {
2348
2348
  }
2349
2349
  }
2350
2350
  const Ue = (i) => i.hasAttribute("data-disabled") || i.getAttribute("aria-disabled") === "true", Ft = (i) => !i.hidden && !i.closest("[hidden]");
2351
- function De(i, t, e, { loop: s = !0, isDisabled: r = Ue } = {}) {
2351
+ function Ne(i, t, e, { loop: s = !0, isDisabled: r = Ue } = {}) {
2352
2352
  const n = i.length;
2353
2353
  if (!n) return -1;
2354
2354
  const o = (h) => !r(i[h]);
@@ -2361,7 +2361,7 @@ function De(i, t, e, { loop: s = !0, isDisabled: r = Ue } = {}) {
2361
2361
  return -1;
2362
2362
  }
2363
2363
  const c = e === "next" ? 1 : -1;
2364
- if (t < 0) return De(i, -1, c === 1 ? "first" : "last", { loop: s, isDisabled: r });
2364
+ if (t < 0) return Ne(i, -1, c === 1 ? "first" : "last", { loop: s, isDisabled: r });
2365
2365
  for (let h = 1; h <= n; h++) {
2366
2366
  let f = t + c * h;
2367
2367
  if (s) f = (f + n) % n;
@@ -2511,7 +2511,7 @@ hs.identity = "popup", hs.properties = {
2511
2511
  collisionPadding: { type: Number, attribute: "collision-padding" }
2512
2512
  };
2513
2513
  let tt = hs;
2514
- const Kc = () => M;
2514
+ const jc = () => M;
2515
2515
  function A(i, t, e) {
2516
2516
  var s;
2517
2517
  for (const r of Array.from(i.querySelectorAll(t)))
@@ -2581,8 +2581,8 @@ ds.identity = "popup-root", ds.properties = {
2581
2581
  open: { type: Boolean, reflect: !0 },
2582
2582
  disabled: { type: Boolean, reflect: !0 }
2583
2583
  };
2584
- let K = ds;
2585
- const oe = class oe extends L {
2584
+ let j = ds;
2585
+ const oe = class oe extends q {
2586
2586
  get root() {
2587
2587
  return this.closest(this.constructor.rootTag);
2588
2588
  }
@@ -2603,8 +2603,8 @@ const oe = class oe extends L {
2603
2603
  }
2604
2604
  };
2605
2605
  oe.nativeSelector = "button", oe.rootTag = "", oe.controlSlot = "trigger";
2606
- let Ne = oe;
2607
- const Br = m("popover"), bl = 'button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', ga = class ga extends K {
2606
+ let De = oe;
2607
+ const Br = m("popover"), bl = 'button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', ga = class ga extends j {
2608
2608
  get triggerElement() {
2609
2609
  var t;
2610
2610
  return ((t = A(this, ke("popover-trigger"), Br)) == null ? void 0 : t.control) ?? null;
@@ -2622,11 +2622,11 @@ const Br = m("popover"), bl = 'button:not([disabled]), [href], input:not([disabl
2622
2622
  }
2623
2623
  };
2624
2624
  ga.identity = "popover";
2625
- let Wr = ga;
2626
- const us = class us extends Ne {
2625
+ let Kr = ga;
2626
+ const us = class us extends De {
2627
2627
  };
2628
2628
  us.rootTag = Br, us.controlSlot = "popover-trigger";
2629
- let jr = us;
2629
+ let Wr = us;
2630
2630
  const le = class le extends tt {
2631
2631
  constructor() {
2632
2632
  super(), this.onFocusOut = (t) => {
@@ -2641,7 +2641,7 @@ const le = class le extends tt {
2641
2641
  }
2642
2642
  };
2643
2643
  le.identity = "popover-content", le.slotName = "popover-content", le.role = "dialog";
2644
- let Kr = le;
2644
+ let jr = le;
2645
2645
  const ps = class ps extends l {
2646
2646
  };
2647
2647
  ps.identity = "popover-header", ps.slotName = "popover-header";
@@ -2656,14 +2656,14 @@ let Fr = ce;
2656
2656
  const fs = class fs extends l {
2657
2657
  };
2658
2658
  fs.identity = "popover-description", fs.slotName = "popover-description";
2659
- let Xr = fs;
2660
- a("pont2-prim-popover", Wr);
2661
- a("pont2-prim-popover-trigger", jr);
2662
- a("pont2-prim-popover-content", Kr);
2659
+ let Yr = fs;
2660
+ a("pont2-prim-popover", Kr);
2661
+ a("pont2-prim-popover-trigger", Wr);
2662
+ a("pont2-prim-popover-content", jr);
2663
2663
  a("pont2-prim-popover-header", Hr);
2664
2664
  a("pont2-prim-popover-title", Fr);
2665
- a("pont2-prim-popover-description", Xr);
2666
- const pi = `${m("dropdown-menu")}, ${m("dropdown-menu-sub")}`, et = "[data-pont2-dropdown-menu-content]", yl = "[data-pont2-menu-item]", vl = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, ba = class ba extends K {
2665
+ a("pont2-prim-popover-description", Yr);
2666
+ const pi = `${m("dropdown-menu")}, ${m("dropdown-menu-sub")}`, et = "[data-pont2-dropdown-menu-content]", yl = "[data-pont2-menu-item]", vl = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, ba = class ba extends j {
2667
2667
  constructor() {
2668
2668
  super(...arguments), this.focusOnOpen = "popup";
2669
2669
  }
@@ -2690,8 +2690,8 @@ const pi = `${m("dropdown-menu")}, ${m("dropdown-menu-sub")}`, et = "[data-pont2
2690
2690
  }
2691
2691
  };
2692
2692
  ba.identity = "dropdown-menu";
2693
- let Yr = ba;
2694
- const ya = class ya extends K {
2693
+ let Xr = ba;
2694
+ const ya = class ya extends j {
2695
2695
  constructor() {
2696
2696
  super(...arguments), this.focusOnOpen = "popup";
2697
2697
  }
@@ -2715,14 +2715,14 @@ const ya = class ya extends K {
2715
2715
  };
2716
2716
  ya.identity = "dropdown-menu-sub";
2717
2717
  let Jr = ya;
2718
- const ms = class ms extends Ne {
2718
+ const ms = class ms extends De {
2719
2719
  onKeyDown(t) {
2720
2720
  const e = this.root;
2721
2721
  !e || !this.control || t.target !== this.control || (t.key === "ArrowDown" || t.key === "ArrowUp") && (t.preventDefault(), e.openWith(t.key === "ArrowDown" ? "first" : "last", "list-navigation"));
2722
2722
  }
2723
2723
  };
2724
2724
  ms.rootTag = m("dropdown-menu"), ms.controlSlot = "dropdown-menu-trigger";
2725
- let Zr = ms;
2725
+ let Qr = ms;
2726
2726
  const he = class he extends tt {
2727
2727
  constructor() {
2728
2728
  super(), this.typeahead = new Pt(), this.subCloseTimer = 0, this.onPointerLeave = () => {
@@ -2749,7 +2749,7 @@ const he = class he extends tt {
2749
2749
  const c = ia(t.key);
2750
2750
  if (c) {
2751
2751
  t.preventDefault();
2752
- const p = De(s, r, c);
2752
+ const p = Ne(s, r, c);
2753
2753
  p >= 0 && s[p].focus();
2754
2754
  return;
2755
2755
  }
@@ -2780,7 +2780,7 @@ const he = class he extends tt {
2780
2780
  return this.closeSubs(), super.hide();
2781
2781
  }
2782
2782
  focusTarget(t) {
2783
- const e = this.items, s = t === "popup" ? -1 : De(e, -1, t);
2783
+ const e = this.items, s = t === "popup" ? -1 : Ne(e, -1, t);
2784
2784
  (s >= 0 ? e[s] : this).focus({ preventScroll: s < 0 });
2785
2785
  }
2786
2786
  /** Close open submenus of this menu, optionally keeping one. */
@@ -2860,7 +2860,7 @@ const ue = class ue extends Bt {
2860
2860
  ue.identity = "dropdown-menu-item", ue.slotName = "dropdown-menu-item", ue.properties = {
2861
2861
  variant: { type: String, reflect: !0 }
2862
2862
  };
2863
- let Qr = ue;
2863
+ let Zr = ue;
2864
2864
  const So = (i, t) => d`<span data-pont2-dropdown-menu-item-indicator data-slot=${i}>${t ? v.check() : u}</span>`, gt = class gt extends Bt {
2865
2865
  constructor() {
2866
2866
  super(), this.checked = !1, this.closeOnClick = !1;
@@ -2979,12 +2979,12 @@ const vs = class vs extends l {
2979
2979
  };
2980
2980
  vs.identity = "dropdown-menu-shortcut", vs.slotName = "dropdown-menu-shortcut";
2981
2981
  let nn = vs;
2982
- a("pont2-prim-dropdown-menu", Yr);
2982
+ a("pont2-prim-dropdown-menu", Xr);
2983
2983
  a("pont2-prim-dropdown-menu-sub", Jr);
2984
- a("pont2-prim-dropdown-menu-trigger", Zr);
2984
+ a("pont2-prim-dropdown-menu-trigger", Qr);
2985
2985
  a("pont2-prim-dropdown-menu-content", fi);
2986
2986
  a("pont2-prim-dropdown-menu-sub-content", mi);
2987
- a("pont2-prim-dropdown-menu-item", Qr);
2987
+ a("pont2-prim-dropdown-menu-item", Zr);
2988
2988
  a("pont2-prim-dropdown-menu-checkbox-item", Gr);
2989
2989
  a("pont2-prim-dropdown-menu-radio-group", _r);
2990
2990
  a("pont2-prim-dropdown-menu-radio-item", tn);
@@ -2993,7 +2993,7 @@ a("pont2-prim-dropdown-menu-group", en);
2993
2993
  a("pont2-prim-dropdown-menu-label", sn);
2994
2994
  a("pont2-prim-dropdown-menu-separator", rn);
2995
2995
  a("pont2-prim-dropdown-menu-shortcut", nn);
2996
- const J = m("select"), wl = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, me = class me extends K {
2996
+ const J = m("select"), wl = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, me = class me extends j {
2997
2997
  constructor() {
2998
2998
  super(), this.typeahead = new Pt(), this.focusSelectedOnOpen = !0, this.value = "", this.name = "", this.required = !1, this.formDisabled = !1, this.addEventListener("click", (t) => {
2999
2999
  var e;
@@ -3165,7 +3165,7 @@ const vt = class vt extends tt {
3165
3165
  const n = ia(t.key);
3166
3166
  if (n) {
3167
3167
  t.preventDefault();
3168
- const c = De(s, r, n, { loop: !1 });
3168
+ const c = Ne(s, r, n, { loop: !1 });
3169
3169
  c >= 0 && s[c].focus();
3170
3170
  return;
3171
3171
  }
@@ -3284,7 +3284,7 @@ a("pont2-prim-select-item", cn);
3284
3284
  a("pont2-prim-select-group", hn);
3285
3285
  a("pont2-prim-select-label", dn);
3286
3286
  a("pont2-prim-select-separator", un);
3287
- const H = m("combobox"), kl = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, kt = class kt extends K {
3287
+ const H = m("combobox"), kl = { fromAttribute: (i) => i !== "false", toAttribute: (i) => String(i) }, kt = class kt extends j {
3288
3288
  constructor() {
3289
3289
  super(), this.highlighted = null, this.value = "", this.name = "", this.required = !1, this.query = "", this.formDisabled = !1, this.addEventListener("click", (t) => {
3290
3290
  var e;
@@ -3389,7 +3389,7 @@ const H = m("combobox"), kl = { fromAttribute: (i) => i !== "false", toAttribute
3389
3389
  const e = t.key === "ArrowDown" || t.key === "ArrowUp" ? ia(t.key) : null;
3390
3390
  if (e) {
3391
3391
  t.preventDefault(), this.open || (this.setOpen(!0, "list-navigation", { keyboard: !0 }), this.applyFilter());
3392
- const s = this.items, r = this.highlighted ? s.indexOf(this.highlighted) : -1, n = De(s, r, e);
3392
+ const s = this.items, r = this.highlighted ? s.indexOf(this.highlighted) : -1, n = Ne(s, r, e);
3393
3393
  this.highlight(n >= 0 ? s[n] : null);
3394
3394
  return;
3395
3395
  }
@@ -3629,7 +3629,7 @@ a("pont2-prim-combobox-empty", yn);
3629
3629
  a("pont2-prim-combobox-group", vn);
3630
3630
  a("pont2-prim-combobox-label", wn);
3631
3631
  a("pont2-prim-combobox-separator", kn);
3632
- const xn = m("tooltip"), As = class As extends K {
3632
+ const xn = m("tooltip"), As = class As extends j {
3633
3633
  constructor() {
3634
3634
  super(), this.timer = 0, this.delay = 0, this.closeDelay = 0;
3635
3635
  }
@@ -3665,7 +3665,7 @@ As.identity = "tooltip", As.properties = {
3665
3665
  closeDelay: { type: Number, attribute: "close-delay" }
3666
3666
  };
3667
3667
  let $n = As;
3668
- const Ds = class Ds extends Ne {
3668
+ const Ns = class Ns extends De {
3669
3669
  constructor() {
3670
3670
  super(), this.addEventListener("pointerenter", (t) => {
3671
3671
  var e;
@@ -3687,8 +3687,8 @@ const Ds = class Ds extends Ne {
3687
3687
  t != null && t.open && t.setOpen(!1, "trigger-press");
3688
3688
  }
3689
3689
  };
3690
- Ds.rootTag = xn, Ds.controlSlot = "tooltip-trigger";
3691
- let Sn = Ds;
3690
+ Ns.rootTag = xn, Ns.controlSlot = "tooltip-trigger";
3691
+ let Sn = Ns;
3692
3692
  const ve = class ve extends tt {
3693
3693
  constructor() {
3694
3694
  super(), this.side = "top", this.align = "center", this.sideOffset = 4;
@@ -3702,9 +3702,9 @@ a("pont2-prim-tooltip-content", En);
3702
3702
  E("pont2-badge", Pe);
3703
3703
  E("pont2-button", xe);
3704
3704
  E("pont2-checkbox", Be);
3705
- E("pont2-input", We);
3706
- E("pont2-kbd", je);
3707
- E("pont2-kbd-group", Ke);
3705
+ E("pont2-input", Ke);
3706
+ E("pont2-kbd", We);
3707
+ E("pont2-kbd-group", je);
3708
3708
  E("pont2-label", He);
3709
3709
  E("pont2-native-select", ni);
3710
3710
  E("pont2-separator", I);
@@ -3713,14 +3713,14 @@ E("pont2-slider", di);
3713
3713
  E("pont2-spinner", G);
3714
3714
  E("pont2-switch", ui);
3715
3715
  E("pont2-table", ai);
3716
- E("pont2-textarea", Xe);
3716
+ E("pont2-textarea", Ye);
3717
3717
  const Ba = ["default", "error", "warning", "success", "info"], xl = {
3718
3718
  default: v.circleAlert,
3719
3719
  error: v.circleX,
3720
3720
  warning: v.triangleAlert,
3721
3721
  success: v.circleCheck,
3722
3722
  info: v.info
3723
- }, Ns = class Ns extends Ye {
3723
+ }, Ds = class Ds extends Xe {
3724
3724
  constructor() {
3725
3725
  super(), this.status = "default", this.heading = "", this.description = "", this.icon = !1;
3726
3726
  }
@@ -3730,22 +3730,22 @@ const Ba = ["default", "error", "warning", "success", "info"], xl = {
3730
3730
  }
3731
3731
  render() {
3732
3732
  const t = Ba.includes(this.status) ? this.status : "default";
3733
- return d`${this.icon ? xl[t]() : u}${this.heading ? d`<div ${Je.part()}>${this.heading}</div>` : u}${this.description ? d`<div ${Ze.part()}>${this.description}</div>` : u}`;
3733
+ return d`${this.icon ? xl[t]() : u}${this.heading ? d`<div ${Je.part()}>${this.heading}</div>` : u}${this.description ? d`<div ${Qe.part()}>${this.description}</div>` : u}`;
3734
3734
  }
3735
3735
  };
3736
- Ns.composite = !0, Ns.properties = {
3736
+ Ds.composite = !0, Ds.properties = {
3737
3737
  status: { type: String, reflect: !0 },
3738
3738
  heading: { type: String },
3739
3739
  description: { type: String },
3740
3740
  icon: { type: Boolean, reflect: !0 }
3741
3741
  };
3742
- let An = Ns;
3742
+ let An = Ds;
3743
3743
  a("pont2-alert", An);
3744
3744
  function $l(i) {
3745
3745
  const t = i.trim().split(/\s+/).filter(Boolean);
3746
3746
  return (t.length > 1 ? [t[0], t[t.length - 1]] : t).map((s) => Array.from(s)[0] ?? "").join("").toLocaleUpperCase();
3747
3747
  }
3748
- const Cs = class Cs extends Qe {
3748
+ const Cs = class Cs extends Ze {
3749
3749
  constructor() {
3750
3750
  super(), this.src = "", this.alt = "", this.fallback = "", this.badge = !1;
3751
3751
  }
@@ -3763,8 +3763,8 @@ Cs.composite = !0, Cs.properties = {
3763
3763
  fallback: { type: String },
3764
3764
  badge: { type: Boolean, reflect: !0 }
3765
3765
  };
3766
- let Dn = Cs;
3767
- a("pont2-avatar", Dn);
3766
+ let Nn = Cs;
3767
+ a("pont2-avatar", Nn);
3768
3768
  function Sl(i, t) {
3769
3769
  const e = Math.max(0, Math.floor(i)), s = Math.floor(t);
3770
3770
  if (!(s > 0) || s >= e) return e ? [e] : [];
@@ -3782,7 +3782,7 @@ function Eo(i, t, e) {
3782
3782
  return d`${c}<div ${ci.part()}>${o}</div>`;
3783
3783
  });
3784
3784
  }
3785
- const qs = class qs extends li {
3785
+ const Os = class Os extends li {
3786
3786
  constructor() {
3787
3787
  super(), this.groupSize = 0, this.separator = !1;
3788
3788
  }
@@ -3790,12 +3790,12 @@ const qs = class qs extends li {
3790
3790
  return d`${Eo(this.maxLength, this.groupSize, this.separator)}${super.render()}`;
3791
3791
  }
3792
3792
  };
3793
- qs.composite = !0, qs.properties = {
3793
+ Os.composite = !0, Os.properties = {
3794
3794
  groupSize: { type: Number, attribute: "group-size" },
3795
3795
  separator: { type: Boolean }
3796
3796
  };
3797
- let Nn = qs;
3798
- a("pont2-input-otp", Nn);
3797
+ let Dn = Os;
3798
+ a("pont2-input-otp", Dn);
3799
3799
  const sa = ["apple", "discord", "facebook", "github", "google", "linkedin", "meta", "microsoft", "x"], El = {
3800
3800
  apple: "Apple",
3801
3801
  discord: "Discord",
@@ -3816,8 +3816,8 @@ const sa = ["apple", "discord", "facebook", "github", "google", "linkedin", "met
3816
3816
  meta: g`<path d="M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z" />`,
3817
3817
  microsoft: g`<path d="M11.4 24H0V12.6h11.4V24zM24 24H12.6V12.6H24V24zM11.4 11.4H0V0h11.4v11.4zM24 11.4H12.6V0H24v11.4z" />`,
3818
3818
  x: g`<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.763l7.726-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z" />`
3819
- }, Wa = (i) => sa.includes(i);
3820
- function Dl(i, t = {}) {
3819
+ }, Ka = (i) => sa.includes(i);
3820
+ function Nl(i, t = {}) {
3821
3821
  return d`<svg
3822
3822
  xmlns="http://www.w3.org/2000/svg"
3823
3823
  viewBox="0 0 24 24"
@@ -3827,9 +3827,9 @@ function Dl(i, t = {}) {
3827
3827
  ${C(t)}
3828
3828
  >${Al[i]}</svg>`;
3829
3829
  }
3830
- const Fc = ["label", "icon-label", "icon"], Os = class Os extends Js {
3830
+ const Fc = ["label", "icon-label", "icon"], Yc = ["start", "end"], Ls = class Ls extends Js {
3831
3831
  constructor() {
3832
- super(), this.action = new Wt(this), this.content = "label", this.iconAlign = "start", this.label = "", this.event = void 0, this.loading = !1;
3832
+ super(), this.action = new Kt(this), this.content = "label", this.iconAlign = "start", this.label = "", this.event = void 0, this.loading = !1;
3833
3833
  }
3834
3834
  /** True while a request is pending or `loading` is set. */
3835
3835
  get busy() {
@@ -3872,29 +3872,29 @@ const Fc = ["label", "icon-label", "icon"], Os = class Os extends Js {
3872
3872
  return this.iconAlign === "end" ? d`${e ? this.text : u}${n}` : d`${n}${e ? this.text : u}`;
3873
3873
  }
3874
3874
  };
3875
- Os.composite = !0, Os.properties = {
3875
+ Ls.composite = !0, Ls.properties = {
3876
3876
  content: { type: String },
3877
3877
  iconAlign: { type: String, attribute: "icon-align" },
3878
3878
  label: { type: String },
3879
3879
  event: { type: String },
3880
3880
  loading: { type: Boolean, reflect: !0 }
3881
3881
  };
3882
- let qe = Os;
3883
- const wa = class wa extends qe {
3882
+ let Oe = Ls;
3883
+ const wa = class wa extends Oe {
3884
3884
  constructor() {
3885
- super(), this.design = new Le(this), this.variant = "outline", this.content = "icon-label", this.prompt = "Continue with";
3885
+ super(), this.design = new qe(this), this.variant = "outline", this.content = "icon-label", this.prompt = "Continue with";
3886
3886
  }
3887
3887
  /** The provider shown: `provider`, or "google" in design mode when none is set (the legacy sample). */
3888
3888
  get shownProvider() {
3889
3889
  return !this.provider && this.design.active ? "google" : this.provider;
3890
3890
  }
3891
3891
  defaultLabel() {
3892
- const t = this.shownProvider, e = Wa(t) ? El[t] : t ?? "";
3892
+ const t = this.shownProvider, e = Ka(t) ? El[t] : t ?? "";
3893
3893
  return `${this.prompt || "Continue with"} ${e}`.trim();
3894
3894
  }
3895
3895
  renderIcon(t) {
3896
3896
  const e = this.shownProvider;
3897
- return Wa(e) ? Dl(e, t) : u;
3897
+ return Ka(e) ? Nl(e, t) : u;
3898
3898
  }
3899
3899
  actionData() {
3900
3900
  return { provider: this.provider };
@@ -3908,7 +3908,7 @@ wa.properties = {
3908
3908
  prompt: { type: String }
3909
3909
  };
3910
3910
  let Cn = wa;
3911
- class Nl extends qe {
3911
+ class Dl extends Oe {
3912
3912
  constructor() {
3913
3913
  super(), this.variant = "secondary";
3914
3914
  }
@@ -3919,7 +3919,7 @@ class Nl extends qe {
3919
3919
  return v.userRoundKey(t);
3920
3920
  }
3921
3921
  }
3922
- class Cl extends qe {
3922
+ class Cl extends Oe {
3923
3923
  constructor() {
3924
3924
  super(), this.onSubmit = (t) => {
3925
3925
  const e = this.control, s = e instanceof HTMLButtonElement ? e.form : null;
@@ -3952,15 +3952,15 @@ class Cl extends qe {
3952
3952
  }
3953
3953
  }
3954
3954
  a("pont2-provider-button", Cn);
3955
- a("pont2-passkey-button", Nl);
3955
+ a("pont2-passkey-button", Dl);
3956
3956
  a("pont2-submit-button", Cl);
3957
- const js = (i) => i.charAt(0).toUpperCase() + i.slice(1).toLowerCase(), Z = {
3958
- required: (i) => `${js(i)} is a required field.`,
3957
+ const Ws = (i) => i.charAt(0).toUpperCase() + i.slice(1).toLowerCase(), Q = {
3958
+ required: (i) => `${Ws(i)} is a required field.`,
3959
3959
  format: (i) => `Please enter a valid ${i.toLowerCase()}.`,
3960
- minlength: (i, t) => t ? `${js(i)} must be at least ${t} characters.` : `Please enter a longer ${i.toLowerCase()}.`,
3961
- maxlength: (i, t) => t ? `${js(i)} can have at most ${t} characters.` : `Please enter a shorter ${i.toLowerCase()}.`
3962
- };
3963
- function ql(i) {
3960
+ minlength: (i, t) => t ? `${Ws(i)} must be at least ${t} characters.` : `Please enter a longer ${i.toLowerCase()}.`,
3961
+ maxlength: (i, t) => t ? `${Ws(i)} can have at most ${t} characters.` : `Please enter a shorter ${i.toLowerCase()}.`
3962
+ }, Xc = ["default", "simple"];
3963
+ function Ol(i) {
3964
3964
  if (!i) return null;
3965
3965
  try {
3966
3966
  return new RegExp(i, "u");
@@ -3972,15 +3972,15 @@ function ql(i) {
3972
3972
  }
3973
3973
  }
3974
3974
  }
3975
- const ja = { fromAttribute: (i) => i != null && Number(i) > 0 ? Number(i) : void 0 };
3976
- let Ks = !1;
3977
- const Ls = class Ls extends $e {
3975
+ const Wa = { fromAttribute: (i) => i != null && Number(i) > 0 ? Number(i) : void 0 };
3976
+ let js = !1;
3977
+ const qs = class qs extends $e {
3978
3978
  constructor() {
3979
3979
  super(), this.dirty = !1, this.generatedId = Ms("auth-field"), this.boundForm = null, this.onInput = (t) => {
3980
3980
  this.dirty = !0, this.setCurrent(t.target.value);
3981
3981
  }, this.onChange = () => this.show(), this.onInvalid = (t) => {
3982
3982
  var e;
3983
- t.preventDefault(), this.show(), Ks || (Ks = !0, (e = this.control) == null || e.focus(), setTimeout(() => Ks = !1));
3983
+ t.preventDefault(), this.show(), js || (js = !0, (e = this.control) == null || e.focus(), setTimeout(() => js = !1));
3984
3984
  }, this.onFormData = (t) => {
3985
3985
  const e = this.control;
3986
3986
  !e || e.disabled || !e.name || t.formData.set(e.name, this.value);
@@ -4015,12 +4015,12 @@ const Ls = class Ls extends $e {
4015
4015
  valueIssues(t) {
4016
4016
  const e = this.text;
4017
4017
  if (this.minlength && t.length < this.minlength)
4018
- return [{ type: "minlength", message: this.minlengthError || Z.minlength(e, this.minlength) }];
4018
+ return [{ type: "minlength", message: this.minlengthError || Q.minlength(e, this.minlength) }];
4019
4019
  const s = this.maxlength ? Math.max(this.maxlength, this.minlength ?? 0) : void 0;
4020
4020
  if (s && t.length > s)
4021
- return [{ type: "maxlength", message: this.maxlengthError || Z.maxlength(e, s) }];
4022
- const r = ql(this.pattern || this.defaultPattern());
4023
- return r && !r.test(t) ? [{ type: "format", message: this.formatError || Z.format(e) }] : [];
4021
+ return [{ type: "maxlength", message: this.maxlengthError || Q.maxlength(e, s) }];
4022
+ const r = Ol(this.pattern || this.defaultPattern());
4023
+ return r && !r.test(t) ? [{ type: "format", message: this.formatError || Q.format(e) }] : [];
4024
4024
  }
4025
4025
  /* ---------------------------------------------------------------- */
4026
4026
  /* Public API */
@@ -4068,7 +4068,7 @@ const Ls = class Ls extends $e {
4068
4068
  computeIssues() {
4069
4069
  if (this.disabled) return [];
4070
4070
  const t = this.normalizeValue(this.current);
4071
- return t ? this.validation === "simple" ? [] : this.valueIssues(t) : this.required ? [{ type: "required", message: this.requiredError || Z.required(this.text) }] : [];
4071
+ return t ? this.validation === "simple" ? [] : this.valueIssues(t) : this.required ? [{ type: "required", message: this.requiredError || Q.required(this.text) }] : [];
4072
4072
  }
4073
4073
  show() {
4074
4074
  this.shown = !0;
@@ -4150,7 +4150,7 @@ const Ls = class Ls extends $e {
4150
4150
  super.connectedCallback(), this.addEventListener("invalid", this.onInvalid, !0);
4151
4151
  }
4152
4152
  };
4153
- Ls.composite = !0, Ls.properties = {
4153
+ qs.composite = !0, qs.properties = {
4154
4154
  inputId: { type: String, attribute: "input-id" },
4155
4155
  name: { type: String },
4156
4156
  defaultValue: { type: String, attribute: "value" },
@@ -4163,8 +4163,8 @@ Ls.composite = !0, Ls.properties = {
4163
4163
  required: { type: Boolean, reflect: !0 },
4164
4164
  validation: { type: String },
4165
4165
  pattern: { type: String },
4166
- minlength: { attribute: "minlength", converter: ja },
4167
- maxlength: { attribute: "maxlength", converter: ja },
4166
+ minlength: { attribute: "minlength", converter: Wa },
4167
+ maxlength: { attribute: "maxlength", converter: Wa },
4168
4168
  requiredError: { type: String, attribute: "required-error" },
4169
4169
  formatError: { type: String, attribute: "format-error" },
4170
4170
  minlengthError: { type: String, attribute: "minlength-error" },
@@ -4172,8 +4172,8 @@ Ls.composite = !0, Ls.properties = {
4172
4172
  current: { state: !0 },
4173
4173
  shown: { state: !0 }
4174
4174
  };
4175
- let P = Ls;
4176
- class Ol extends P {
4175
+ let P = qs;
4176
+ class Ll extends P {
4177
4177
  defaultName() {
4178
4178
  return "email";
4179
4179
  }
@@ -4193,7 +4193,7 @@ class Ol extends P {
4193
4193
  return t.trim().toLowerCase();
4194
4194
  }
4195
4195
  }
4196
- class Ll extends P {
4196
+ class ql extends P {
4197
4197
  defaultName() {
4198
4198
  return "phone";
4199
4199
  }
@@ -4250,15 +4250,15 @@ class zl extends P {
4250
4250
  return t.trim().replace(/\s+/g, " ");
4251
4251
  }
4252
4252
  }
4253
- const Vl = ["email", "phone", "username"];
4254
- function Rl(i) {
4253
+ const Rl = ["email", "phone", "username"];
4254
+ function Tl(i) {
4255
4255
  if (!i.length) return "Identifier";
4256
4256
  const t = i.length === 1 ? i[0] : i.length === 2 ? `${i[0]} or ${i[1]}` : `${i.slice(0, -1).join(", ")}, or ${i[i.length - 1]}`;
4257
4257
  return t.charAt(0).toUpperCase() + t.slice(1);
4258
4258
  }
4259
4259
  const ka = class ka extends P {
4260
4260
  constructor() {
4261
- super(), this.design = new Le(this), this.identifiers = [];
4261
+ super(), this.design = new qe(this), this.identifiers = [];
4262
4262
  }
4263
4263
  /**
4264
4264
  * The identifiers shown: `identifiers`, or email, username and phone in design mode when none are
@@ -4273,7 +4273,7 @@ const ka = class ka extends P {
4273
4273
  return "login_id";
4274
4274
  }
4275
4275
  defaultLabel() {
4276
- return Rl(this.shownIdentifiers);
4276
+ return Tl(this.shownIdentifiers);
4277
4277
  }
4278
4278
  inputType() {
4279
4279
  const t = this.shownIdentifiers;
@@ -4295,28 +4295,28 @@ const ka = class ka extends P {
4295
4295
  ka.properties = {
4296
4296
  identifiers: {
4297
4297
  converter: {
4298
- fromAttribute: (t) => _n(t).filter((e) => Vl.includes(e))
4298
+ fromAttribute: (t) => _n(t).filter((e) => Rl.includes(e))
4299
4299
  }
4300
4300
  }
4301
4301
  };
4302
- let qn = ka;
4303
- a("pont2-email-field", Ol);
4304
- a("pont2-phone-field", Ll);
4302
+ let On = ka;
4303
+ a("pont2-email-field", Ll);
4304
+ a("pont2-phone-field", ql);
4305
4305
  a("pont2-username-field", Ul);
4306
4306
  a("pont2-name-field", zl);
4307
- a("pont2-identifier-field", qn);
4308
- const Tl = {
4307
+ a("pont2-identifier-field", On);
4308
+ const Vl = {
4309
4309
  uppercase: /[A-Z]/,
4310
4310
  lowercase: /[a-z]/,
4311
4311
  number: /[0-9]/,
4312
4312
  special: /[!@#$%^&*()_=+{}[\]|\\;:"<>,./?-]/
4313
- }, Re = [
4313
+ }, Te = [
4314
4314
  { name: "uppercase", error: "Must contain an uppercase letter." },
4315
4315
  { name: "lowercase", error: "Must contain a lowercase letter." },
4316
4316
  { name: "number", error: "Must contain a number." },
4317
4317
  { name: "special", error: "Must contain a special character." }
4318
4318
  ], Ml = (i) => {
4319
- if ("name" in i) return Tl[i.name] ?? null;
4319
+ if ("name" in i) return Vl[i.name] ?? null;
4320
4320
  try {
4321
4321
  return new RegExp(i.pattern, "u");
4322
4322
  } catch {
@@ -4324,15 +4324,15 @@ const Tl = {
4324
4324
  }
4325
4325
  }, Il = {
4326
4326
  fromAttribute: (i) => {
4327
- if (i == null) return Re;
4327
+ if (i == null) return Te;
4328
4328
  try {
4329
4329
  const t = JSON.parse(i);
4330
- return Array.isArray(t) ? t : Re;
4330
+ return Array.isArray(t) ? t : Te;
4331
4331
  } catch {
4332
- return Re;
4332
+ return Te;
4333
4333
  }
4334
4334
  }
4335
- }, xa = class xa extends P {
4335
+ }, Jc = ["toggle", "simple"], xa = class xa extends P {
4336
4336
  constructor() {
4337
4337
  super(), this.messagesController = new ea(this), this.toggle = () => {
4338
4338
  this.revealed = !this.revealed, this.updateComplete.then(() => {
@@ -4356,7 +4356,7 @@ const Tl = {
4356
4356
  size: "icon-xs",
4357
4357
  disabled: this.disabled,
4358
4358
  attrs: {
4359
- "aria-label": this.showLabel || j("show_password"),
4359
+ "aria-label": this.showLabel || W("show_password"),
4360
4360
  "aria-pressed": String(this.revealed),
4361
4361
  "aria-controls": this.controlId
4362
4362
  },
@@ -4376,7 +4376,7 @@ xa.properties = {
4376
4376
  let gi = xa;
4377
4377
  const $a = class $a extends gi {
4378
4378
  constructor() {
4379
- super(), this.forgotAction = new Wt(this), this.rules = Re, this.forgot = !1, this.forgotLabel = "", this.forgotEvent = void 0;
4379
+ super(), this.forgotAction = new Kt(this), this.rules = Te, this.forgot = !1, this.forgotLabel = "", this.forgotEvent = void 0;
4380
4380
  }
4381
4381
  defaultName() {
4382
4382
  return "password";
@@ -4390,24 +4390,24 @@ const $a = class $a extends gi {
4390
4390
  valueIssues(t) {
4391
4391
  const e = this.text;
4392
4392
  if (this.minlength && t.length < this.minlength)
4393
- return [{ type: "minlength", message: this.minlengthError || Z.minlength(e, this.minlength) }];
4393
+ return [{ type: "minlength", message: this.minlengthError || Q.minlength(e, this.minlength) }];
4394
4394
  const s = this.maxlength ? Math.max(this.maxlength, this.minlength ?? 0) : void 0;
4395
4395
  if (s && t.length > s)
4396
- return [{ type: "maxlength", message: this.maxlengthError || Z.maxlength(e, s) }];
4396
+ return [{ type: "maxlength", message: this.maxlengthError || Q.maxlength(e, s) }];
4397
4397
  const r = (this.rules ?? []).filter((o) => {
4398
4398
  const c = Ml(o);
4399
4399
  return c ? !c.test(t) : !1;
4400
4400
  });
4401
4401
  if (!r.length) return [];
4402
4402
  const n = r.map((o) => o.error).filter((o) => !!o);
4403
- return n.length ? n.map((o) => ({ type: "rule", message: o })) : [{ type: "rule", message: this.formatError || Z.format(e) }];
4403
+ return n.length ? n.map((o) => ({ type: "rule", message: o })) : [{ type: "rule", message: this.formatError || Q.format(e) }];
4404
4404
  }
4405
4405
  renderLabel() {
4406
4406
  if (!this.forgot) return super.renderLabel();
4407
4407
  const t = this.forgotAction.busy;
4408
4408
  return d`<div data-pont2-auth-field-label-row>
4409
4409
  ${super.renderLabel()}
4410
- ${R(
4410
+ ${T(
4411
4411
  {
4412
4412
  variant: "link",
4413
4413
  size: "sm",
@@ -4428,7 +4428,7 @@ $a.properties = {
4428
4428
  forgotLabel: { type: String, attribute: "forgot-label" },
4429
4429
  forgotEvent: { type: String, attribute: "forgot-event" }
4430
4430
  };
4431
- let On = $a;
4431
+ let Ln = $a;
4432
4432
  const Sa = class Sa extends gi {
4433
4433
  constructor() {
4434
4434
  super(), this.scope = null, this.onScopeInput = (t) => {
@@ -4467,12 +4467,12 @@ Sa.properties = {
4467
4467
  pair: { type: String },
4468
4468
  matchError: { type: String, attribute: "match-error" }
4469
4469
  };
4470
- let Ln = Sa;
4471
- a("pont2-password-field", On);
4472
- a("pont2-confirm-field", Ln);
4473
- const Ea = class Ea extends P {
4470
+ let qn = Sa;
4471
+ a("pont2-password-field", Ln);
4472
+ a("pont2-confirm-field", qn);
4473
+ const Qc = ["digits_only", "simple", "with_separator", "with_spacing"], Ea = class Ea extends P {
4474
4474
  constructor() {
4475
- super(), this.action = new Wt(this), this.onReset = () => {
4475
+ super(), this.action = new Kt(this), this.onReset = () => {
4476
4476
  setTimeout(() => {
4477
4477
  const t = this.otp;
4478
4478
  t && (t.value = this.defaultValue), this.shown = !1, this.current = this.defaultValue;
@@ -4563,7 +4563,7 @@ let Un = Ea;
4563
4563
  a("pont2-otp-field", Un);
4564
4564
  const St = class St extends l {
4565
4565
  constructor() {
4566
- super(), this.action = new Wt(this), this.press = () => {
4566
+ super(), this.action = new Kt(this), this.press = () => {
4567
4567
  this.action.request(this.event, { resend: !0 }), this.restart();
4568
4568
  }, this.duration = 60, this.event = void 0, this.label = "", this.countdownText = "", this.remaining = 0;
4569
4569
  }
@@ -4591,7 +4591,7 @@ const St = class St extends l {
4591
4591
  >${this.countdownText || "Resend code in "}${this.remaining}s</span
4592
4592
  >`;
4593
4593
  const t = this.action.busy;
4594
- return R(
4594
+ return T(
4595
4595
  {
4596
4596
  variant: "link",
4597
4597
  slot: "otp-resend-button",
@@ -4613,9 +4613,9 @@ St.identity = "otp-resend", St.slotName = "otp-resend", St.composite = !0, St.pr
4613
4613
  };
4614
4614
  let zn = St;
4615
4615
  a("pont2-otp-resend", zn);
4616
- const Et = class Et extends l {
4616
+ const Zc = ["start", "center", "end"], Gc = ["auth", "other"], Et = class Et extends l {
4617
4617
  constructor() {
4618
- super(), this.action = new Wt(this), this.label = "", this.prompt = "", this.event = void 0, this.service = "auth", this.href = void 0, this.target = void 0, this.rel = void 0, this.align = "center", this.disabled = !1, this.loading = !1;
4618
+ super(), this.action = new Kt(this), this.label = "", this.prompt = "", this.event = void 0, this.service = "auth", this.href = void 0, this.target = void 0, this.rel = void 0, this.align = "center", this.disabled = !1, this.loading = !1;
4619
4619
  }
4620
4620
  get busy() {
4621
4621
  return this.loading || this.action.busy;
@@ -4634,7 +4634,7 @@ const Et = class Et extends l {
4634
4634
  render() {
4635
4635
  if (this.invalidHref) return u;
4636
4636
  const t = this.busy;
4637
- return d`${this.prompt ? d`<span data-slot="link-prompt">${this.prompt}</span>` : u}${R(
4637
+ return d`${this.prompt ? d`<span data-slot="link-prompt">${this.prompt}</span>` : u}${T(
4638
4638
  {
4639
4639
  variant: "link",
4640
4640
  slot: "link-button",
@@ -4666,12 +4666,12 @@ let bi = Et;
4666
4666
  a("pont2-link", bi);
4667
4667
  class Pl extends bi {
4668
4668
  get invalidHref() {
4669
- return Va(this.href) === null;
4669
+ return Ra(this.href) === null;
4670
4670
  }
4671
4671
  render() {
4672
4672
  var e;
4673
- const t = Va(this.href);
4674
- return t ? d`${this.prompt ? d`<span data-slot="link-prompt">${this.prompt}</span>` : u}${R(
4673
+ const t = Ra(this.href);
4674
+ return t ? d`${this.prompt ? d`<span data-slot="link-prompt">${this.prompt}</span>` : u}${T(
4675
4675
  { variant: "link", slot: "link-button", href: t, target: "_blank", rel: "noopener noreferrer" },
4676
4676
  ((e = this.label) == null ? void 0 : e.trim()) || t
4677
4677
  )}` : u;
@@ -4689,8 +4689,8 @@ const Us = class Us extends si {
4689
4689
  Us.composite = !0, Us.properties = {
4690
4690
  label: { type: String }
4691
4691
  };
4692
- let Vn = Us;
4693
- a("pont2-divider", Vn);
4692
+ let Rn = Us;
4693
+ a("pont2-divider", Rn);
4694
4694
  const zs = class zs extends Mt {
4695
4695
  constructor() {
4696
4696
  super(), this.content = "", this.align = "auto";
@@ -4725,18 +4725,18 @@ const Aa = class Aa extends yi {
4725
4725
  Aa.properties = {
4726
4726
  level: { type: String }
4727
4727
  };
4728
- let Rn = Aa;
4728
+ let Tn = Aa;
4729
4729
  class Bl extends yi {
4730
4730
  render() {
4731
4731
  return d`<p data-pont2-subtitle data-align=${this.align || "auto"}>${this.content}</p>`;
4732
4732
  }
4733
4733
  }
4734
- a("pont2-title", Rn);
4734
+ a("pont2-title", Tn);
4735
4735
  a("pont2-subtitle", Bl);
4736
- function Wl(i) {
4736
+ function Kl(i) {
4737
4737
  return i < 3 ? "one" : i % 3 === 0 ? "three" : i === 5 ? "two-three" : i === 7 ? "three-four" : "four";
4738
4738
  }
4739
- const jl = (i) => `signin_with_oauth(${i})`, Kl = {
4739
+ const Wl = (i) => `signin_with_oauth(${i})`, jl = {
4740
4740
  fromAttribute: (i) => _n(i).filter((t) => sa.includes(t))
4741
4741
  }, Hl = {
4742
4742
  fromAttribute: (i) => {
@@ -4747,9 +4747,9 @@ const jl = (i) => `signin_with_oauth(${i})`, Kl = {
4747
4747
  return [];
4748
4748
  }
4749
4749
  }
4750
- }, Vs = class Vs extends $e {
4750
+ }, Rs = class Rs extends $e {
4751
4751
  constructor() {
4752
- super(), this.design = new Le(this), this.providers = [], this.overrides = [], this.event = void 0, this.variant = void 0, this.size = void 0, this.content = void 0, this.iconAlign = void 0, this.prompt = void 0, this.label = void 0, this.loading = !1;
4752
+ super(), this.design = new qe(this), this.providers = [], this.overrides = [], this.event = void 0, this.variant = void 0, this.size = void 0, this.content = void 0, this.iconAlign = void 0, this.prompt = void 0, this.label = void 0, this.loading = !1;
4753
4753
  }
4754
4754
  /**
4755
4755
  * The providers actually rendered: known names, first occurrence only. In design mode with none
@@ -4766,7 +4766,7 @@ const jl = (i) => `signin_with_oauth(${i})`, Kl = {
4766
4766
  return Array.from(this.querySelectorAll(":scope > pont2-provider-button"));
4767
4767
  }
4768
4768
  willUpdate(t) {
4769
- super.willUpdate(t), this.setData("columns", Wl(this.list.length));
4769
+ super.willUpdate(t), this.setData("columns", Kl(this.list.length));
4770
4770
  }
4771
4771
  render() {
4772
4772
  const t = this.list, e = /* @__PURE__ */ new Map();
@@ -4779,7 +4779,7 @@ const jl = (i) => `signin_with_oauth(${i})`, Kl = {
4779
4779
  const n = e.get(r) ?? {}, o = (c) => c == null || c === "" ? u : c;
4780
4780
  return d`<pont2-provider-button
4781
4781
  provider=${r}
4782
- event=${n.event ?? this.event ?? jl(r)}
4782
+ event=${n.event ?? this.event ?? Wl(r)}
4783
4783
  variant=${o(n.variant ?? this.variant)}
4784
4784
  size=${o(n.size ?? this.size)}
4785
4785
  content=${o(n.content ?? this.content ?? s)}
@@ -4793,8 +4793,8 @@ const jl = (i) => `signin_with_oauth(${i})`, Kl = {
4793
4793
  );
4794
4794
  }
4795
4795
  };
4796
- Vs.composite = !0, Vs.properties = {
4797
- providers: { converter: Kl },
4796
+ Rs.composite = !0, Rs.properties = {
4797
+ providers: { converter: jl },
4798
4798
  overrides: { converter: Hl },
4799
4799
  event: { type: String },
4800
4800
  variant: { type: String },
@@ -4805,18 +4805,18 @@ Vs.composite = !0, Vs.properties = {
4805
4805
  label: { type: String },
4806
4806
  loading: { type: Boolean }
4807
4807
  };
4808
- let Tn = Vs;
4809
- a("pont2-provider-field", Tn);
4810
- const Fl = g`<polygon points="113.15,120.26 72.47,190.69 72.46,190.71 61.31,210.02 34.66,256.16 0,196.08 78.48,60.19" /><polygon points="256.23,117.67 179.4,250.76 107.12,250.76 72.46,190.71 72.47,190.69 144.73,190.69 186.89,117.67 153.68,60.07 78.48,60.07 34.65,0 188.35,0" />`, Xl = g`<path d="M305.95,36.62h76.01c37.22,0,63.16,24.13,63.16,58.64c0,35.19-25.94,59.77-63.16,59.77h-40.83v62.03h-35.19V36.62z M381.51,123.46c16.24,0,27.52-11.28,27.52-27.74c0-16.24-11.28-27.52-27.52-27.52h-40.37v55.26H381.51z" /><path d="M454.59,143.76c0-45.11,31.58-75.79,76.91-75.79c45.34,0,76.91,30.68,76.91,75.79c0,45.34-31.58,75.79-76.91,75.79C486.17,219.54,454.59,189.09,454.59,143.76z M531.51,187.74c24.13,0,41.05-17.59,41.05-43.98c0-26.16-16.92-43.98-41.05-43.98c-23.91,0-40.83,17.82-40.83,43.98C490.68,170.15,507.6,187.74,531.51,187.74z" /><path d="M635.48,70.45h34.96v18.72c3.61-8.8,17.14-21.2,40.37-21.2c33.38,0,59.1,25.71,59.1,63.83v85.26h-35.19v-84.58c0-19.85-12.86-33.16-32.03-33.16c-19.17,0-32.03,13.31-32.03,33.16v84.58h-35.19V70.45z" /><path d="M815.02,102.03h-27.07V70.45h27.07V36.62h35.19v33.83h26.84v31.58h-26.84v115.03h-35.19V102.03z" /><path d="M899.6,36.62h35.19V68.2H899.6V36.62z M899.6,89.85h35.19v127.21H899.6V89.85z" /><path d="M955.09,70.45h36.31l39.7,103.76l39.47-103.76h36.31l-58.19,146.61h-35.19L955.09,70.45z" /><path d="M1117.49,144.21c0-45.56,32.03-76.24,76.46-76.24c49.85,0,81.65,39.25,76.24,87.29h-116.16c2.48,20.53,20.3,33.16,39.47,33.16c15.56,0,30.68-8.12,37.22-22.33h36.99c-9.92,32.48-36.99,53.46-74.66,53.46C1148.39,219.54,1117.49,188.87,1117.49,144.21z M1232.75,127.97c-5.64-17.59-20.07-28.87-38.34-28.87c-18.5,0-33.38,11.05-38.8,29.1L1232.75,127.97z" />`, Ka = () => d`<svg
4808
+ let Vn = Rs;
4809
+ a("pont2-provider-field", Vn);
4810
+ const Fl = g`<polygon points="113.15,120.26 72.47,190.69 72.46,190.71 61.31,210.02 34.66,256.16 0,196.08 78.48,60.19" /><polygon points="256.23,117.67 179.4,250.76 107.12,250.76 72.46,190.71 72.47,190.69 144.73,190.69 186.89,117.67 153.68,60.07 78.48,60.07 34.65,0 188.35,0" />`, Yl = g`<path d="M305.95,36.62h76.01c37.22,0,63.16,24.13,63.16,58.64c0,35.19-25.94,59.77-63.16,59.77h-40.83v62.03h-35.19V36.62z M381.51,123.46c16.24,0,27.52-11.28,27.52-27.74c0-16.24-11.28-27.52-27.52-27.52h-40.37v55.26H381.51z" /><path d="M454.59,143.76c0-45.11,31.58-75.79,76.91-75.79c45.34,0,76.91,30.68,76.91,75.79c0,45.34-31.58,75.79-76.91,75.79C486.17,219.54,454.59,189.09,454.59,143.76z M531.51,187.74c24.13,0,41.05-17.59,41.05-43.98c0-26.16-16.92-43.98-41.05-43.98c-23.91,0-40.83,17.82-40.83,43.98C490.68,170.15,507.6,187.74,531.51,187.74z" /><path d="M635.48,70.45h34.96v18.72c3.61-8.8,17.14-21.2,40.37-21.2c33.38,0,59.1,25.71,59.1,63.83v85.26h-35.19v-84.58c0-19.85-12.86-33.16-32.03-33.16c-19.17,0-32.03,13.31-32.03,33.16v84.58h-35.19V70.45z" /><path d="M815.02,102.03h-27.07V70.45h27.07V36.62h35.19v33.83h26.84v31.58h-26.84v115.03h-35.19V102.03z" /><path d="M899.6,36.62h35.19V68.2H899.6V36.62z M899.6,89.85h35.19v127.21H899.6V89.85z" /><path d="M955.09,70.45h36.31l39.7,103.76l39.47-103.76h36.31l-58.19,146.61h-35.19L955.09,70.45z" /><path d="M1117.49,144.21c0-45.56,32.03-76.24,76.46-76.24c49.85,0,81.65,39.25,76.24,87.29h-116.16c2.48,20.53,20.3,33.16,39.47,33.16c15.56,0,30.68-8.12,37.22-22.33h36.99c-9.92,32.48-36.99,53.46-74.66,53.46C1148.39,219.54,1117.49,188.87,1117.49,144.21z M1232.75,127.97c-5.64-17.59-20.07-28.87-38.34-28.87c-18.5,0-33.38,11.05-38.8,29.1L1232.75,127.97z" />`, ja = () => d`<svg
4811
4811
  data-slot="watermark-logo"
4812
4812
  xmlns="http://www.w3.org/2000/svg"
4813
4813
  viewBox="0 0 1270.79 256.16"
4814
4814
  role="img"
4815
4815
  aria-label="Pontive"
4816
- ><g data-logo-mark>${Fl}</g><g data-logo-wordmark>${Xl}</g></svg>`;
4816
+ ><g data-logo-mark>${Fl}</g><g data-logo-wordmark>${Yl}</g></svg>`, _c = ["brand", "theme", "muted"], th = ["start", "end"];
4817
4817
  function Ao(i, t) {
4818
4818
  const e = d`<span data-slot="watermark-label">${i || "Powered by"}</span>`;
4819
- return t === "start" ? d`${Ka()}${e}` : d`${e}${Ka()}`;
4819
+ return t === "start" ? d`${ja()}${e}` : d`${e}${ja()}`;
4820
4820
  }
4821
4821
  const At = class At extends l {
4822
4822
  constructor() {
@@ -4836,19 +4836,19 @@ At.identity = "watermark", At.slotName = "watermark", At.composite = !0, At.prop
4836
4836
  };
4837
4837
  let vi = At;
4838
4838
  a("pont2-watermark", vi);
4839
- const Tt = { showWatermark: !0 }, Do = to("pont2:branding");
4840
- class Yl {
4839
+ const Vt = { showWatermark: !0 }, No = to("pont2:branding");
4840
+ class Xl {
4841
4841
  constructor(t) {
4842
- this.consumer = new eo(t, { context: Do, subscribe: !0 });
4842
+ this.consumer = new eo(t, { context: No, subscribe: !0 });
4843
4843
  }
4844
4844
  get showWatermark() {
4845
4845
  var t;
4846
- return ((t = this.consumer.value) == null ? void 0 : t.showWatermark) ?? Tt.showWatermark;
4846
+ return ((t = this.consumer.value) == null ? void 0 : t.showWatermark) ?? Vt.showWatermark;
4847
4847
  }
4848
4848
  }
4849
- const Rs = class Rs extends ti {
4849
+ const Ts = class Ts extends ti {
4850
4850
  constructor() {
4851
- super(), this.branding = new Yl(this), this.align = "stretch", this.justify = "start";
4851
+ super(), this.branding = new Xl(this), this.align = "stretch", this.justify = "start";
4852
4852
  }
4853
4853
  willUpdate() {
4854
4854
  super.willUpdate(), this.setData("align", this.align || "stretch"), this.setData("justify", this.justify || "start");
@@ -4859,15 +4859,15 @@ const Rs = class Rs extends ti {
4859
4859
  </div>` : u;
4860
4860
  }
4861
4861
  };
4862
- Rs.composite = !1, Rs.properties = {
4862
+ Ts.composite = !1, Ts.properties = {
4863
4863
  align: { type: String },
4864
4864
  justify: { type: String }
4865
4865
  };
4866
- let Mn = Rs;
4866
+ let Mn = Ts;
4867
4867
  a("pont2-block", Mn);
4868
- const Dt = class Dt extends l {
4868
+ const eh = ["flex_column", "flex_row"], Nt = class Nt extends l {
4869
4869
  constructor() {
4870
- super(), this.design = new Le(this), this.type = "flex_column", this.align = "stretch", this.justify = "start";
4870
+ super(), this.design = new qe(this), this.type = "flex_column", this.align = "stretch", this.justify = "start";
4871
4871
  }
4872
4872
  willUpdate() {
4873
4873
  this.setData("type", this.type === "flex_row" ? "flex_row" : "flex_column"), this.setData("align", this.align || "stretch"), this.setData("justify", this.justify || "start");
@@ -4875,14 +4875,14 @@ const Dt = class Dt extends l {
4875
4875
  this.setData("design", t), this.setData("design-empty", t && this.childElementCount === 0);
4876
4876
  }
4877
4877
  };
4878
- Dt.identity = "container", Dt.slotName = "container", Dt.composite = !1, Dt.properties = {
4878
+ Nt.identity = "container", Nt.slotName = "container", Nt.composite = !1, Nt.properties = {
4879
4879
  type: { type: String },
4880
4880
  align: { type: String },
4881
4881
  justify: { type: String }
4882
4882
  };
4883
- let In = Dt;
4883
+ let In = Nt;
4884
4884
  a("pont2-container", In);
4885
- const Nt = class Nt extends l {
4885
+ const ih = ["start", "center", "end"], Dt = class Dt extends l {
4886
4886
  constructor() {
4887
4887
  super(), this.align = "center";
4888
4888
  }
@@ -4890,12 +4890,12 @@ const Nt = class Nt extends l {
4890
4890
  this.setData("align", this.align || "center");
4891
4891
  }
4892
4892
  };
4893
- Nt.identity = "header", Nt.slotName = "header", Nt.composite = !1, Nt.properties = {
4893
+ Dt.identity = "header", Dt.slotName = "header", Dt.composite = !1, Dt.properties = {
4894
4894
  align: { type: String }
4895
4895
  };
4896
- let Pn = Nt;
4896
+ let Pn = Dt;
4897
4897
  a("pont2-header", Pn);
4898
- const Ct = class Ct extends l {
4898
+ const sh = ["vertical", "horizontal"], Ct = class Ct extends l {
4899
4899
  constructor() {
4900
4900
  super(), this.size = "8px", this.type = "vertical";
4901
4901
  }
@@ -4912,14 +4912,15 @@ Ct.identity = "gap", Ct.slotName = "gap", Ct.composite = !0, Ct.properties = {
4912
4912
  };
4913
4913
  let Bn = Ct;
4914
4914
  a("pont2-gap", Bn);
4915
+ const rh = ["start", "center", "end"];
4915
4916
  function Ha(i, t) {
4916
4917
  if (!i) return "";
4917
4918
  const e = i.replace("{{theme}}", t);
4918
4919
  return /^(https?:|data:|blob:|\/|\.{1,2}\/)/.test(e) ? e : `data:image/svg+xml;base64,${e}`;
4919
4920
  }
4920
- const qt = class qt extends l {
4921
+ const Ot = class Ot extends l {
4921
4922
  constructor() {
4922
- super(), this.design = new Le(this), this.imageUrl = "", this.imageUrlDark = "", this.alt = "", this.align = "center", this.width = "", this.height = "";
4923
+ super(), this.design = new qe(this), this.imageUrl = "", this.imageUrlDark = "", this.alt = "", this.align = "center", this.width = "", this.height = "";
4923
4924
  }
4924
4925
  willUpdate() {
4925
4926
  this.setData("align", this.align || "center");
@@ -4927,11 +4928,11 @@ const qt = class qt extends l {
4927
4928
  render() {
4928
4929
  const t = Ha(this.imageUrl, "light");
4929
4930
  if (!t) return this.design.active ? Jl : u;
4930
- const e = Ha(this.imageUrlDark || this.imageUrl, "dark"), s = Te({ width: this.width || void 0, height: this.height || void 0 }), r = this.alt || "Logo";
4931
+ const e = Ha(this.imageUrlDark || this.imageUrl, "dark"), s = Ve({ width: this.width || void 0, height: this.height || void 0 }), r = this.alt || "Logo";
4931
4932
  return d`<img data-logo-theme="light" src=${t} alt=${r} style=${s} />${e !== t ? d`<img data-logo-theme="dark" src=${e} alt=${r} style=${s} />` : u}`;
4932
4933
  }
4933
4934
  };
4934
- qt.identity = "logo", qt.slotName = "logo", qt.composite = !0, qt.properties = {
4935
+ Ot.identity = "logo", Ot.slotName = "logo", Ot.composite = !0, Ot.properties = {
4935
4936
  imageUrl: { type: String, attribute: "image-url" },
4936
4937
  imageUrlDark: { type: String, attribute: "image-url-dark" },
4937
4938
  alt: { type: String },
@@ -4939,7 +4940,7 @@ qt.identity = "logo", qt.slotName = "logo", qt.composite = !0, qt.properties = {
4939
4940
  width: { type: String },
4940
4941
  height: { type: String }
4941
4942
  };
4942
- let Wn = qt;
4943
+ let Kn = Ot;
4943
4944
  const Jl = d`<span data-slot="logo-placeholder" role="img" aria-label="Logo placeholder">${g`<svg
4944
4945
  viewBox="0 0 120 32" width="120" height="32" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
4945
4946
  <rect x="0.75" y="0.75" width="118.5" height="30.5" rx="6" fill="none" stroke="currentColor"
@@ -4948,8 +4949,8 @@ const Jl = d`<span data-slot="logo-placeholder" role="img" aria-label="Logo plac
4948
4949
  <rect x="32" y="11" width="52" height="4" rx="2" fill="currentColor" fill-opacity="0.3"/>
4949
4950
  <rect x="32" y="19" width="34" height="4" rx="2" fill="currentColor" fill-opacity="0.18"/>
4950
4951
  </svg>`}</span>`;
4951
- a("pont2-logo", Wn);
4952
- const Zl = (i, t) => oo(i, t), X = class X extends l {
4952
+ a("pont2-logo", Kn);
4953
+ const Ql = (i, t) => oo(i, t), Y = class Y extends l {
4953
4954
  constructor() {
4954
4955
  super(), this.duration = 5, this.content = "", this.redirectUrl = "", this.remaining = 0;
4955
4956
  }
@@ -4967,7 +4968,7 @@ const Zl = (i, t) => oo(i, t), X = class X extends l {
4967
4968
  this.timer !== void 0 && clearInterval(this.timer), this.timer = void 0;
4968
4969
  }
4969
4970
  end() {
4970
- const t = Zl(this.redirectUrl);
4971
+ const t = Ql(this.redirectUrl);
4971
4972
  S(this, "pont2-countdown-end", { url: t }, !0) && t && location.assign(t);
4972
4973
  }
4973
4974
  connectedCallback() {
@@ -4983,24 +4984,24 @@ const Zl = (i, t) => oo(i, t), X = class X extends l {
4983
4984
  return d`${this.content ? `${this.content} ` : ""}${this.remaining}s…`;
4984
4985
  }
4985
4986
  };
4986
- X.identity = "countdown", X.slotName = "countdown", X.role = "timer", X.composite = !0, X.properties = {
4987
+ Y.identity = "countdown", Y.slotName = "countdown", Y.role = "timer", Y.composite = !0, Y.properties = {
4987
4988
  duration: { type: Number },
4988
4989
  content: { type: String },
4989
4990
  redirectUrl: { type: String, attribute: "redirect-url" },
4990
4991
  remaining: { state: !0 }
4991
4992
  };
4992
- let jn = X;
4993
- a("pont2-countdown", jn);
4994
- const Ot = class Ot extends l {
4993
+ let Wn = Y;
4994
+ a("pont2-countdown", Wn);
4995
+ const Lt = class Lt extends l {
4995
4996
  constructor() {
4996
- super(), this.action = new Wt(this), this.identifier = "", this.event = void 0, this.label = "";
4997
+ super(), this.action = new Kt(this), this.identifier = "", this.event = void 0, this.label = "";
4997
4998
  }
4998
4999
  get control() {
4999
5000
  return this.querySelector("[data-pont2-button]");
5000
5001
  }
5001
5002
  render() {
5002
5003
  const t = this.action.busy;
5003
- return d`<span data-slot="edit-identifier-value">${this.identifier}</span>${R(
5004
+ return d`<span data-slot="edit-identifier-value">${this.identifier}</span>${T(
5004
5005
  {
5005
5006
  variant: "ghost",
5006
5007
  size: "icon-xs",
@@ -5018,14 +5019,14 @@ const Ot = class Ot extends l {
5018
5019
  )}`;
5019
5020
  }
5020
5021
  };
5021
- Ot.identity = "edit-identifier", Ot.slotName = "edit-identifier", Ot.composite = !0, Ot.properties = {
5022
+ Lt.identity = "edit-identifier", Lt.slotName = "edit-identifier", Lt.composite = !0, Lt.properties = {
5022
5023
  identifier: { type: String },
5023
5024
  event: { type: String },
5024
5025
  label: { type: String }
5025
5026
  };
5026
- let Kn = Ot;
5027
- a("pont2-edit-identifier", Kn);
5028
- const Lt = class Lt extends l {
5027
+ let jn = Lt;
5028
+ a("pont2-edit-identifier", jn);
5029
+ const qt = class qt extends l {
5029
5030
  constructor() {
5030
5031
  super(), this.clipboard = new co(this, "secret"), this.inputId = Ms("secret"), this.secret = "", this.issuer = "", this.account = "", this.titleText = "", this.secretLabel = "", this.issuerLabel = "", this.accountLabel = "", this.copyLabel = "", this.copiedText = "", this.disabled = !1;
5031
5032
  }
@@ -5061,7 +5062,7 @@ const Lt = class Lt extends l {
5061
5062
  </dl>` : u}`;
5062
5063
  }
5063
5064
  };
5064
- Lt.identity = "secret", Lt.slotName = "secret", Lt.composite = !0, Lt.properties = {
5065
+ qt.identity = "secret", qt.slotName = "secret", qt.composite = !0, qt.properties = {
5065
5066
  secret: { type: String },
5066
5067
  issuer: { type: String },
5067
5068
  account: { type: String },
@@ -5073,13 +5074,13 @@ Lt.identity = "secret", Lt.slotName = "secret", Lt.composite = !0, Lt.properties
5073
5074
  copiedText: { type: String, attribute: "copied-text" },
5074
5075
  disabled: { type: Boolean, reflect: !0 }
5075
5076
  };
5076
- let Hn = Lt;
5077
+ let Hn = qt;
5077
5078
  a("pont2-secret", Hn);
5078
- const Hs = 4;
5079
- function Ql(i, t) {
5079
+ const nh = ["L", "M", "Q", "H"], Hs = 4;
5080
+ function Zl(i, t) {
5080
5081
  if (!i) return null;
5081
5082
  try {
5082
- const { modules: e } = Wo.create(i, { errorCorrectionLevel: t }), s = e.size;
5083
+ const { modules: e } = Ko.create(i, { errorCorrectionLevel: t }), s = e.size;
5083
5084
  let r = "";
5084
5085
  for (let n = 0; n < s; n++)
5085
5086
  for (let o = 0; o < s; o++)
@@ -5111,7 +5112,7 @@ const Ut = class Ut extends l {
5111
5112
  super.disconnectedCallback(), this.timer !== void 0 && clearTimeout(this.timer);
5112
5113
  }
5113
5114
  willUpdate(t) {
5114
- t.has("url") || t.has("errorCorrection") ? (this.path = Ql(this.url, this.errorCorrection || "M"), this.url && !this.path && S(this, "pont2-qr-error", { url: this.url }), this.hasUpdated && this.reveal()) : (t.has("timeout") || t.has("disabled")) && this.hasUpdated && this.reveal(), this.setData("obscured", this.obscured && !this.disabled);
5115
+ t.has("url") || t.has("errorCorrection") ? (this.path = Zl(this.url, this.errorCorrection || "M"), this.url && !this.path && S(this, "pont2-qr-error", { url: this.url }), this.hasUpdated && this.reveal()) : (t.has("timeout") || t.has("disabled")) && this.hasUpdated && this.reveal(), this.setData("obscured", this.obscured && !this.disabled);
5115
5116
  }
5116
5117
  render() {
5117
5118
  const t = this.path;
@@ -5127,7 +5128,7 @@ const Ut = class Ut extends l {
5127
5128
  aria-hidden=${e ? "true" : u}
5128
5129
  >${g`<rect width="${t.size}" height="${t.size}" fill="#fff" /><path d="${t.d}" fill="#000" />`}</svg
5129
5130
  >${e ? d`<div data-slot="qr-code-overlay">
5130
- ${R(
5131
+ ${T(
5131
5132
  { variant: "default", slot: "qr-code-reveal", onClick: this.onReveal },
5132
5133
  this.revealLabel || "Show QR code"
5133
5134
  )}
@@ -5173,11 +5174,11 @@ const Gl = {
5173
5174
  </p>
5174
5175
  ${t.length ? d`<ul data-slot="recovery-codes-list">${t.map((s) => d`<li>${s}</li>`)}</ul>` : d`<p data-slot="recovery-codes-empty">${this.emptyText || "No recovery codes available."}</p>`}
5175
5176
  <div data-slot="recovery-codes-actions">
5176
- ${R(
5177
+ ${T(
5177
5178
  { variant: "outline", disabled: e, onClick: () => void this.copy() },
5178
5179
  d`${this.clipboard.copied ? v.check({ "data-icon": "inline-start" }) : v.copy({ "data-icon": "inline-start" })}${this.copyLabel || "Copy codes"}`
5179
5180
  )}
5180
- ${R(
5181
+ ${T(
5181
5182
  { variant: "outline", disabled: e, onClick: () => this.download() },
5182
5183
  d`${v.download({ "data-icon": "inline-start" })}${this.downloadLabel || "Download codes"}`
5183
5184
  )}
@@ -5198,9 +5199,9 @@ zt.identity = "recovery-codes", zt.slotName = "recovery-codes", zt.composite = !
5198
5199
  filename: { type: String },
5199
5200
  disabled: { type: Boolean, reflect: !0 }
5200
5201
  };
5201
- let Xn = zt;
5202
- a("pont2-recovery-codes", Xn);
5203
- function No(i) {
5202
+ let Yn = zt;
5203
+ a("pont2-recovery-codes", Yn);
5204
+ function Do(i) {
5204
5205
  if (!Array.isArray(i)) return [];
5205
5206
  const t = /* @__PURE__ */ new Set();
5206
5207
  return i.flatMap((e) => {
@@ -5220,18 +5221,18 @@ function _l(i, t) {
5220
5221
  const tc = {
5221
5222
  fromAttribute: (i) => {
5222
5223
  try {
5223
- return No(JSON.parse(i ?? "[]"));
5224
+ return Do(JSON.parse(i ?? "[]"));
5224
5225
  } catch {
5225
5226
  return [];
5226
5227
  }
5227
5228
  }
5228
- }, Y = class Y extends W {
5229
+ }, X = class X extends K {
5229
5230
  constructor() {
5230
5231
  super(), this.name = "scope", this.scopes = [], this.unticked = /* @__PURE__ */ new Set();
5231
5232
  }
5232
5233
  /** The normalised scope list. */
5233
5234
  get list() {
5234
- return No(this.scopes);
5235
+ return Do(this.scopes);
5235
5236
  }
5236
5237
  /** The submitted value: ticked scopes, space-separated. */
5237
5238
  get value() {
@@ -5281,40 +5282,40 @@ const tc = {
5281
5282
  );
5282
5283
  }
5283
5284
  };
5284
- Y.identity = "scope-list", Y.slotName = "scope-list", Y.role = "list", Y.composite = !0, Y.properties = {
5285
+ X.identity = "scope-list", X.slotName = "scope-list", X.role = "list", X.composite = !0, X.properties = {
5285
5286
  scopes: { converter: tc },
5286
5287
  unticked: { state: !0 }
5287
5288
  };
5288
- let Yn = Y;
5289
- a("pont2-scope-list", Yn);
5290
- const Xc = {
5291
- connection_failed: N.connection_failed,
5292
- too_many_attempts: N.too_many_attempts,
5293
- server_error: N.server_error,
5294
- instance_unavailable: N.instance_unavailable,
5295
- generic_error: N.generic_error,
5296
- flow_ended: N.flow_ended,
5297
- passkey_cancelled: N.passkey_cancelled,
5298
- start_again: N.start_again,
5299
- continued_elsewhere_title: N.continued_elsewhere_title,
5300
- continued_elsewhere_subtitle: N.continued_elsewhere_subtitle,
5301
- continue_here: N.continue_here
5289
+ let Xn = X;
5290
+ a("pont2-scope-list", Xn);
5291
+ const ah = {
5292
+ connection_failed: D.connection_failed,
5293
+ too_many_attempts: D.too_many_attempts,
5294
+ server_error: D.server_error,
5295
+ instance_unavailable: D.instance_unavailable,
5296
+ generic_error: D.generic_error,
5297
+ flow_ended: D.flow_ended,
5298
+ passkey_cancelled: D.passkey_cancelled,
5299
+ start_again: D.start_again,
5300
+ continued_elsewhere_title: D.continued_elsewhere_title,
5301
+ continued_elsewhere_subtitle: D.continued_elsewhere_subtitle,
5302
+ continue_here: D.continue_here
5302
5303
  }, ec = 409, wi = "instance_unavailable";
5303
- function Yc(i) {
5304
- return qo(i).code === wi;
5304
+ function oh(i) {
5305
+ return Oo(i).code === wi;
5305
5306
  }
5306
5307
  function ic(i) {
5307
5308
  const t = i == null ? void 0 : i.trim();
5308
5309
  t && ao({ [wi]: t });
5309
5310
  }
5310
5311
  function ra(i, t = {}) {
5311
- const e = (o) => t[o] || j(o);
5312
+ const e = (o) => t[o] || W(o);
5312
5313
  if (typeof DOMException < "u" && i instanceof DOMException && (i.name === "NotAllowedError" || i.name === "AbortError"))
5313
5314
  return { message: e("passkey_cancelled"), restartable: !1 };
5314
- const { status: s, code: r, message: n } = qo(i);
5315
- return r === wi ? (ic(n), { message: j(wi), restartable: !1, unavailable: !0 }) : s === ec ? { message: Fa(n) ?? e("flow_ended"), restartable: !0 } : s === void 0 && (r === "NETWORK_ERROR" || r === "TIMEOUT") ? { message: e("connection_failed"), restartable: !1 } : s === 429 ? { message: e("too_many_attempts"), restartable: !1 } : s !== void 0 && s >= 500 ? { message: e("server_error"), restartable: !1 } : { message: Fa(n) ?? e("generic_error"), restartable: !1 };
5315
+ const { status: s, code: r, message: n } = Oo(i);
5316
+ return r === wi ? (ic(n), { message: W(wi), restartable: !1, unavailable: !0 }) : s === ec ? { message: Fa(n) ?? e("flow_ended"), restartable: !0 } : s === void 0 && (r === "NETWORK_ERROR" || r === "TIMEOUT") ? { message: e("connection_failed"), restartable: !1 } : s === 429 ? { message: e("too_many_attempts"), restartable: !1 } : s !== void 0 && s >= 500 ? { message: e("server_error"), restartable: !1 } : { message: Fa(n) ?? e("generic_error"), restartable: !1 };
5316
5317
  }
5317
- function qo(i) {
5318
+ function Oo(i) {
5318
5319
  var s;
5319
5320
  if (typeof i == "string") return { message: i };
5320
5321
  if (!i || typeof i != "object") return {};
@@ -5337,15 +5338,15 @@ function sc(i) {
5337
5338
  for (const [e, s] of i.entries()) typeof s == "string" && (t[e] = s);
5338
5339
  return Object.keys(t).length ? t : void 0;
5339
5340
  }
5340
- const Fs = "data-flow-error", Xa = /* @__PURE__ */ new Set();
5341
- let Ya = !1;
5342
- const Vt = class Vt extends l {
5341
+ const Fs = "data-flow-error", Ya = /* @__PURE__ */ new Set();
5342
+ let Xa = !1;
5343
+ const Rt = class Rt extends l {
5343
5344
  constructor() {
5344
- super(), this.provider = new Oa(this, { context: Do, initialValue: Tt }), this.designProvider = new Oa(this, { context: no, initialValue: !1 }), this.pending = null, this.locked = [], this.onFormSubmit = (t) => {
5345
- t.defaultPrevented || (t.preventDefault(), Ya || (Ya = !0, console.warn(
5345
+ super(), this.provider = new La(this, { context: No, initialValue: Vt }), this.designProvider = new La(this, { context: no, initialValue: !1 }), this.pending = null, this.locked = [], this.onFormSubmit = (t) => {
5346
+ t.defaultPrevented || (t.preventDefault(), Xa || (Xa = !0, console.warn(
5346
5347
  "[pont2] a submission in <pont2-layout> was not answered (no client, or the submit button has no `event`). Native submission is blocked."
5347
5348
  )));
5348
- }, this.client = void 0, this.renderSpec = "", this.branding = Tt, this.designMode = !1, this.messages = {}, this.busy = !1, this.addEventListener("pont2-action", (t) => this.onAction(t)), this.addEventListener("pont2-action-error", (t) => this.onError(t));
5349
+ }, this.client = void 0, this.renderSpec = "", this.branding = Vt, this.designMode = !1, this.messages = {}, this.busy = !1, this.addEventListener("pont2-action", (t) => this.onAction(t)), this.addEventListener("pont2-action-error", (t) => this.onError(t));
5349
5350
  }
5350
5351
  /** The layout's form (holds the screen). */
5351
5352
  get form() {
@@ -5408,7 +5409,7 @@ const Vt = class Vt extends l {
5408
5409
  const f = document.createElement("pont2-button");
5409
5410
  f.setAttribute("variant", "outline"), f.setAttribute(Fs, "");
5410
5411
  const p = document.createElement("button");
5411
- p.type = "button", p.textContent = this.messages.start_again || j("start_again"), p.addEventListener("click", () => S(this, "pont2-layout-restart", {})), f.append(p), n.push(f);
5412
+ p.type = "button", p.textContent = this.messages.start_again || W("start_again"), p.addEventListener("click", () => S(this, "pont2-layout-restart", {})), f.append(p), n.push(f);
5412
5413
  }
5413
5414
  const c = s.querySelector(":scope > pont2-block") ?? s;
5414
5415
  let h = c.firstElementChild;
@@ -5420,7 +5421,7 @@ const Vt = class Vt extends l {
5420
5421
  (t = this.form) == null || t.querySelectorAll(`[${Fs}]`).forEach((e) => e.remove());
5421
5422
  }
5422
5423
  willUpdate(t) {
5423
- t.has("branding") && this.provider.setValue(this.branding ?? Tt), t.has("designMode") && this.designProvider.setValue(!!this.designMode), this.setData("busy", this.busy);
5424
+ t.has("branding") && this.provider.setValue(this.branding ?? Vt), t.has("designMode") && this.designProvider.setValue(!!this.designMode), this.setData("busy", this.busy);
5424
5425
  }
5425
5426
  updated(t) {
5426
5427
  const e = this.form;
@@ -5429,7 +5430,7 @@ const Vt = class Vt extends l {
5429
5430
  renderScreen(t) {
5430
5431
  t.innerHTML = this.renderSpec || "";
5431
5432
  for (const e of Array.from(t.querySelectorAll("*")))
5432
- e.localName.includes("-") && (customElements.get(e.localName) ? customElements.upgrade(e) : Xa.has(e.localName) || (Xa.add(e.localName), console.warn(`[pont2] <${e.localName}> is in the render spec but is not defined in this bundle.`), document.dispatchEvent(
5433
+ e.localName.includes("-") && (customElements.get(e.localName) ? customElements.upgrade(e) : Ya.has(e.localName) || (Ya.add(e.localName), console.warn(`[pont2] <${e.localName}> is in the render spec but is not defined in this bundle.`), document.dispatchEvent(
5433
5434
  new CustomEvent("pont2-unregistered-element", { detail: { tag: e.localName } })
5434
5435
  )));
5435
5436
  }
@@ -5437,7 +5438,7 @@ const Vt = class Vt extends l {
5437
5438
  return d`<form data-slot="layout-form" @submit=${this.onFormSubmit}></form>`;
5438
5439
  }
5439
5440
  };
5440
- Vt.identity = "layout", Vt.slotName = "layout", Vt.composite = !0, Vt.properties = {
5441
+ Rt.identity = "layout", Rt.slotName = "layout", Rt.composite = !0, Rt.properties = {
5441
5442
  client: { attribute: !1 },
5442
5443
  renderSpec: { attribute: !1 },
5443
5444
  branding: { attribute: !1 },
@@ -5445,28 +5446,28 @@ Vt.identity = "layout", Vt.slotName = "layout", Vt.composite = !0, Vt.properties
5445
5446
  designMode: { type: Boolean, attribute: "design-mode", reflect: !0 },
5446
5447
  busy: { state: !0 }
5447
5448
  };
5448
- let Jn = Vt;
5449
+ let Jn = Rt;
5449
5450
  a("pont2-layout", Jn);
5450
5451
  class B extends Error {
5451
5452
  constructor(t, e, s) {
5452
5453
  super(t), this.code = e, this.status = s, this.name = "ConsentError";
5453
5454
  }
5454
5455
  }
5455
- const rc = "This request has expired. Go back to the app and try again.", Oo = () => j("consent_expired", rc);
5456
- function Lo(i, t) {
5456
+ const rc = "This request has expired. Go back to the app and try again.", Lo = () => W("consent_expired", rc);
5457
+ function qo(i, t) {
5457
5458
  return `${i.replace(/\/+$/, "")}/auth/v1/consent/${encodeURIComponent(t)}`;
5458
5459
  }
5459
5460
  async function nc(i, t, e = {}) {
5460
- const s = e.locales ? `?${new URLSearchParams({ locales: e.locales })}` : "", r = await Uo(`${Lo(i, t)}${s}`, { method: "GET" });
5461
+ const s = e.locales ? `?${new URLSearchParams({ locales: e.locales })}` : "", r = await Uo(`${qo(i, t)}${s}`, { method: "GET" });
5461
5462
  if (zo(r)) return r;
5462
5463
  throw new B("Unexpected consent response.", "UNEXPECTED_RESPONSE");
5463
5464
  }
5464
5465
  async function ac(i, t, e, s = {}) {
5465
5466
  let r;
5466
5467
  try {
5467
- r = await Uo(Lo(i, t), { method: "POST", body: JSON.stringify({ event: e, data: s }) });
5468
+ r = await Uo(qo(i, t), { method: "POST", body: JSON.stringify({ event: e, data: s }) });
5468
5469
  } catch (n) {
5469
- throw n instanceof B && n.status === 404 ? new B(Oo(), n.code, n.status) : n;
5470
+ throw n instanceof B && n.status === 404 ? new B(Lo(), n.code, n.status) : n;
5470
5471
  }
5471
5472
  if (ki(r) && typeof r.redirect_to == "string" && r.redirect_to) return { redirect_to: r.redirect_to };
5472
5473
  if (zo(r)) return r;
@@ -5494,7 +5495,7 @@ async function Uo(i, t) {
5494
5495
  const s = await e.json().catch(() => {
5495
5496
  });
5496
5497
  if (!e.ok) {
5497
- const r = ki(s) ? s : {}, n = ki(r.error) ? r.error : {}, o = Ve(n.code) ?? Ve(r.code) ?? "API_ERROR", c = Ve(n.message) ?? Ve(r.message) ?? `HTTP ${e.status}: ${e.statusText}`;
5498
+ const r = ki(s) ? s : {}, n = ki(r.error) ? r.error : {}, o = Re(n.code) ?? Re(r.code) ?? "API_ERROR", c = Re(n.message) ?? Re(r.message) ?? `HTTP ${e.status}: ${e.statusText}`;
5498
5499
  throw new B(c, o, e.status);
5499
5500
  }
5500
5501
  return s;
@@ -5505,14 +5506,14 @@ function zo(i) {
5505
5506
  function ki(i) {
5506
5507
  return typeof i == "object" && i !== null && !Array.isArray(i);
5507
5508
  }
5508
- function Ve(i) {
5509
+ function Re(i) {
5509
5510
  return typeof i == "string" && i !== "" ? i : void 0;
5510
5511
  }
5511
- const Ts = class Ts extends l {
5512
+ const Vs = class Vs extends l {
5512
5513
  constructor() {
5513
5514
  super(), this.messagesController = new ea(this), this.loadSeq = 0, this.loadedKey = null, this.client = {
5514
5515
  processLoginflowEvent: (t) => this.answer(t)
5515
- }, this.consentRequest = "", this.baseUrl = "", this.locales = "", this.branding = Tt, this.renderSpec = "", this.loadError = null, this.addEventListener("pont2-layout-restart", () => void this.load());
5516
+ }, this.consentRequest = "", this.baseUrl = "", this.locales = "", this.branding = Vt, this.renderSpec = "", this.loadError = null, this.addEventListener("pont2-layout-restart", () => void this.load());
5516
5517
  }
5517
5518
  /** The element's layout. */
5518
5519
  get layout() {
@@ -5530,7 +5531,7 @@ const Ts = class Ts extends l {
5530
5531
  if (t !== this.loadSeq) return;
5531
5532
  console.error(`[pont2] <${this.localName}>: loading the consent request failed:`, e);
5532
5533
  const s = (e == null ? void 0 : e.status) === 404, { message: r, unavailable: n } = ra(e);
5533
- this.renderSpec = "<pont2-block></pont2-block>", this.loadError = s ? { message: Oo(), retryable: !1 } : { message: r, retryable: !n };
5534
+ this.renderSpec = "<pont2-block></pont2-block>", this.loadError = s ? { message: Lo(), retryable: !1 } : { message: r, retryable: !n };
5534
5535
  }
5535
5536
  }
5536
5537
  show(t) {
@@ -5559,11 +5560,11 @@ const Ts = class Ts extends l {
5559
5560
  }
5560
5561
  render() {
5561
5562
  return this.renderSpec ? d`<pont2-layout .client=${this.client} .branding=${this.branding} .renderSpec=${this.renderSpec}></pont2-layout>` : this.querySelector(':scope > [part="fallback"]') ? u : d`<div data-slot="flow-widget-loading">
5562
- <span ${G.part({ "aria-label": j("loading") })}></span>
5563
+ <span ${G.part({ "aria-label": W("loading") })}></span>
5563
5564
  </div>`;
5564
5565
  }
5565
5566
  };
5566
- Ts.identity = "consent", Ts.properties = {
5567
+ Vs.identity = "consent", Vs.properties = {
5567
5568
  consentRequest: { type: String, attribute: "consent-request" },
5568
5569
  baseUrl: { type: String, attribute: "base-url" },
5569
5570
  locales: { type: String },
@@ -5571,17 +5572,17 @@ Ts.identity = "consent", Ts.properties = {
5571
5572
  renderSpec: { state: !0 },
5572
5573
  loadError: { state: !0 }
5573
5574
  };
5574
- let Zn = Ts;
5575
- a("pont2-consent", Zn);
5576
- function Jc(i) {
5575
+ let Qn = Vs;
5576
+ a("pont2-consent", Qn);
5577
+ function lh(i) {
5577
5578
  document.dispatchEvent(new CustomEvent("pont2-flow-state", { detail: i }));
5578
5579
  }
5579
- function Xs(i) {
5580
+ function Ys(i) {
5580
5581
  return i.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5581
5582
  }
5582
- const Ja = 5e3, Rt = class Rt extends l {
5583
+ const Ja = 5e3, Tt = class Tt extends l {
5583
5584
  constructor() {
5584
- super(), this.messagesController = new ea(this), this.started = !1, this.onFlowState = (t) => this.applyFlowState(t.detail), this.client = void 0, this.branding = Tt, this.flowId = "", this.renderSpec = "", this.messages = {}, this.starting = !1, this.startError = null, this.addEventListener("pont2-layout-restart", () => void this.restart());
5585
+ super(), this.messagesController = new ea(this), this.started = !1, this.onFlowState = (t) => this.applyFlowState(t.detail), this.client = void 0, this.branding = Vt, this.flowId = "", this.renderSpec = "", this.messages = {}, this.starting = !1, this.startError = null, this.addEventListener("pont2-layout-restart", () => void this.restart());
5585
5586
  }
5586
5587
  /** The widget's layout. */
5587
5588
  get layout() {
@@ -5606,15 +5607,15 @@ const Ja = 5e3, Rt = class Rt extends l {
5606
5607
  this.messages = { ...t }, ao(t);
5607
5608
  }
5608
5609
  msg(t) {
5609
- return this.messages[t] || j(t);
5610
+ return this.messages[t] || W(t);
5610
5611
  }
5611
5612
  continuedElsewhereSpec() {
5612
5613
  return `<pont2-block>
5613
5614
  <pont2-header>
5614
- <pont2-title content="${Xs(this.msg("continued_elsewhere_title"))}"></pont2-title>
5615
- <pont2-subtitle content="${Xs(this.msg("continued_elsewhere_subtitle"))}"></pont2-subtitle>
5615
+ <pont2-title content="${Ys(this.msg("continued_elsewhere_title"))}"></pont2-title>
5616
+ <pont2-subtitle content="${Ys(this.msg("continued_elsewhere_subtitle"))}"></pont2-subtitle>
5616
5617
  </pont2-header>
5617
- <pont2-link label="${Xs(this.msg("continue_here"))}" event="continue_here"></pont2-link>
5618
+ <pont2-link label="${Ys(this.msg("continue_here"))}" event="continue_here"></pont2-link>
5618
5619
  </pont2-block>`;
5619
5620
  }
5620
5621
  connectedCallback() {
@@ -5660,11 +5661,11 @@ const Ja = 5e3, Rt = class Rt extends l {
5660
5661
  .messages=${this.messages}
5661
5662
  .renderSpec=${this.renderSpec}
5662
5663
  ></pont2-layout>` : this.querySelector(':scope > [part="fallback"]') ? u : d`<div data-slot="flow-widget-loading">
5663
- <span ${G.part({ "aria-label": j("loading") })}></span>
5664
+ <span ${G.part({ "aria-label": W("loading") })}></span>
5664
5665
  </div>`;
5665
5666
  }
5666
5667
  };
5667
- Rt.identity = "flow-widget", Rt.slotName = "flow-widget", Rt.composite = !0, Rt.properties = {
5668
+ Tt.identity = "flow-widget", Tt.slotName = "flow-widget", Tt.composite = !0, Tt.properties = {
5668
5669
  client: { attribute: !1 },
5669
5670
  branding: { attribute: !1 },
5670
5671
  flowId: { type: String, attribute: "flow-id" },
@@ -5673,8 +5674,8 @@ Rt.identity = "flow-widget", Rt.slotName = "flow-widget", Rt.composite = !0, Rt.
5673
5674
  starting: { state: !0 },
5674
5675
  startError: { state: !0 }
5675
5676
  };
5676
- let Oe = Rt;
5677
- class lc extends Oe {
5677
+ let Le = Tt;
5678
+ class lc extends Le {
5678
5679
  constructor() {
5679
5680
  super(...arguments), this.flowType = "signin";
5680
5681
  }
@@ -5682,7 +5683,7 @@ class lc extends Oe {
5682
5683
  return "sys_signin-flow-passkey";
5683
5684
  }
5684
5685
  }
5685
- class cc extends Oe {
5686
+ class cc extends Le {
5686
5687
  constructor() {
5687
5688
  super(...arguments), this.flowType = "signup";
5688
5689
  }
@@ -5690,7 +5691,7 @@ class cc extends Oe {
5690
5691
  return "sys_signup-flow";
5691
5692
  }
5692
5693
  }
5693
- class hc extends Oe {
5694
+ class hc extends Le {
5694
5695
  constructor() {
5695
5696
  super(...arguments), this.flowType = "invitation";
5696
5697
  }
@@ -5740,13 +5741,13 @@ const dc = `<pont2-block>
5740
5741
  <pont2-confirm-field required></pont2-confirm-field>
5741
5742
  <pont2-submit-button event="submit_signup" label="Create account"></pont2-submit-button>
5742
5743
  <pont2-link prompt="Already have an account?" label="Sign in" event="goto_signin"></pont2-link>
5743
- </pont2-block>`, Zc = {
5744
+ </pont2-block>`, ch = {
5744
5745
  signin: { label: "Sign in", flow: "signin", spec: dc },
5745
5746
  password: { label: "Password", flow: "signin", spec: uc },
5746
5747
  verify: { label: "Verification code", flow: "signin", spec: pc },
5747
5748
  signup: { label: "Sign up", flow: "signup", spec: fc }
5748
5749
  };
5749
- function Qc(i, t = {}) {
5750
+ function hh(i, t = {}) {
5750
5751
  const e = t.delay ?? 600, s = { ...t.messages };
5751
5752
  return {
5752
5753
  async whenConfigured() {
@@ -5759,48 +5760,48 @@ function Qc(i, t = {}) {
5759
5760
  }
5760
5761
  };
5761
5762
  }
5762
- const V = (i) => `<div style="display:flex;flex-wrap:wrap;gap:.75rem;align-items:center">${i}</div>`, O = (i, t = "24rem") => `<div style="display:grid;gap:1.5rem;max-width:${t}">${i}</div>`, mc = (i) => `<p style="margin:0 0 .5rem;font-size:.75rem;opacity:.6">${i}</p>`, Q = (i, t) => `<section>${mc(i)}${t}</section>`, gc = ["default", "secondary", "outline", "ghost", "destructive", "link"], bc = ["xs", "sm", "default", "lg"], yc = O(
5763
+ const R = (i) => `<div style="display:flex;flex-wrap:wrap;gap:.75rem;align-items:center">${i}</div>`, L = (i, t = "24rem") => `<div style="display:grid;gap:1.5rem;max-width:${t}">${i}</div>`, mc = (i) => `<p style="margin:0 0 .5rem;font-size:.75rem;opacity:.6">${i}</p>`, Z = (i, t) => `<section>${mc(i)}${t}</section>`, gc = ["default", "secondary", "outline", "ghost", "destructive", "link"], bc = ["xs", "sm", "default", "lg"], yc = L(
5763
5764
  [
5764
- Q(
5765
+ Z(
5765
5766
  "Variants",
5766
- V(gc.map((i) => `<button type="button" data-pont2-button data-variant="${i}">${i[0].toUpperCase()}${i.slice(1)}</button>`).join(""))
5767
+ R(gc.map((i) => `<button type="button" data-pont2-button data-variant="${i}">${i[0].toUpperCase()}${i.slice(1)}</button>`).join(""))
5767
5768
  ),
5768
- Q(
5769
+ Z(
5769
5770
  "Sizes",
5770
- V(bc.map((i) => `<button type="button" data-pont2-button data-size="${i}">Size ${i}</button>`).join(""))
5771
+ R(bc.map((i) => `<button type="button" data-pont2-button data-size="${i}">Size ${i}</button>`).join(""))
5771
5772
  ),
5772
- Q(
5773
+ Z(
5773
5774
  "Disabled",
5774
- V('<button type="button" data-pont2-button disabled>Default</button><button type="button" data-pont2-button data-variant="outline" disabled>Outline</button>')
5775
+ R('<button type="button" data-pont2-button disabled>Default</button><button type="button" data-pont2-button data-variant="outline" disabled>Outline</button>')
5775
5776
  )
5776
5777
  ].join(""),
5777
5778
  "40rem"
5778
- ), Za = (i, t, e, s = "") => `<pont2-prim-field>
5779
+ ), Qa = (i, t, e, s = "") => `<pont2-prim-field>
5779
5780
  <label data-pont2-label data-pont2-field-label data-slot="field-label" for="${i}">${t}</label>
5780
5781
  ${e}
5781
5782
  ${s ? `<pont2-prim-field-description>${s}</pont2-prim-field-description>` : ""}
5782
- </pont2-prim-field>`, vc = O(
5783
+ </pont2-prim-field>`, vc = L(
5783
5784
  [
5784
- Q("Default", '<input data-pont2-input id="s-input" placeholder="you@example.com">'),
5785
- Q("Filled", '<input data-pont2-input value="ada@example.com">'),
5786
- Q("Invalid", '<input data-pont2-input aria-invalid="true" value="not-an-email">'),
5787
- Q("Disabled", '<input data-pont2-input disabled value="Disabled">')
5785
+ Z("Default", '<input data-pont2-input id="s-input" placeholder="you@example.com">'),
5786
+ Z("Filled", '<input data-pont2-input value="ada@example.com">'),
5787
+ Z("Invalid", '<input data-pont2-input aria-invalid="true" value="not-an-email">'),
5788
+ Z("Disabled", '<input data-pont2-input disabled value="Disabled">')
5788
5789
  ].join("")
5789
- ), Qa = O(
5790
+ ), Za = L(
5790
5791
  [
5791
- Za("s-email", "Email", '<input data-pont2-input id="s-email" type="email" placeholder="you@example.com">', "We'll never share it."),
5792
- Za("s-name", "Name", '<input data-pont2-input id="s-name" aria-invalid="true">', "This field is required."),
5792
+ Qa("s-email", "Email", '<input data-pont2-input id="s-email" type="email" placeholder="you@example.com">', "We'll never share it."),
5793
+ Qa("s-name", "Name", '<input data-pont2-input id="s-name" aria-invalid="true">', "This field is required."),
5793
5794
  "<pont2-email-field required></pont2-email-field>",
5794
5795
  '<pont2-password-field required rules="[]" forgot></pont2-password-field>'
5795
5796
  ].join("")
5796
- ), wc = O(
5797
+ ), wc = L(
5797
5798
  [
5798
- V('<pont2-checkbox id="s-c1" checked></pont2-checkbox><label data-pont2-label for="s-c1">Remember me</label>'),
5799
- V('<pont2-checkbox id="s-c2"></pont2-checkbox><label data-pont2-label for="s-c2">Unchecked</label>'),
5800
- V('<pont2-checkbox id="s-c3" aria-invalid="true"></pont2-checkbox><label data-pont2-label for="s-c3">Invalid</label>'),
5801
- V('<pont2-checkbox id="s-c4" checked disabled></pont2-checkbox><label data-pont2-label for="s-c4">Disabled</label>')
5799
+ R('<pont2-checkbox id="s-c1" checked></pont2-checkbox><label data-pont2-label for="s-c1">Remember me</label>'),
5800
+ R('<pont2-checkbox id="s-c2"></pont2-checkbox><label data-pont2-label for="s-c2">Unchecked</label>'),
5801
+ R('<pont2-checkbox id="s-c3" aria-invalid="true"></pont2-checkbox><label data-pont2-label for="s-c3">Invalid</label>'),
5802
+ R('<pont2-checkbox id="s-c4" checked disabled></pont2-checkbox><label data-pont2-label for="s-c4">Disabled</label>')
5802
5803
  ].join("")
5803
- ), kc = O(
5804
+ ), kc = L(
5804
5805
  [
5805
5806
  '<pont2-alert icon heading="Default" description="A neutral message."></pont2-alert>',
5806
5807
  '<pont2-alert icon status="info" heading="New sign-in" description="We noticed a sign-in from a new device."></pont2-alert>',
@@ -5809,40 +5810,40 @@ const V = (i) => `<div style="display:flex;flex-wrap:wrap;gap:.75rem;align-items
5809
5810
  '<pont2-alert icon status="error" heading="Sign-in failed" description="Check your email and password."></pont2-alert>'
5810
5811
  ].join(""),
5811
5812
  "28rem"
5812
- ), xc = V(
5813
+ ), xc = R(
5813
5814
  ["default", "secondary", "outline", "destructive", "ghost", "link"].map((i) => `<pont2-badge variant="${i}">${i}</pont2-badge>`).join("")
5814
- ), Ys = `<pont2-block>
5815
+ ), Xs = `<pont2-block>
5815
5816
  <pont2-header>
5816
5817
  <pont2-title content="Welcome back"></pont2-title>
5817
5818
  <pont2-subtitle content="Sign in to your account"></pont2-subtitle>
5818
5819
  </pont2-header>
5819
5820
  <pont2-email-field required></pont2-email-field>
5820
5821
  <pont2-submit-button event="submit" label="Continue"></pont2-submit-button>
5821
- </pont2-block>`, Ga = O(
5822
+ </pont2-block>`, Ga = L(
5822
5823
  [
5823
5824
  '<pont2-title content="Welcome back"></pont2-title>',
5824
5825
  '<pont2-subtitle content="Sign in to your account"></pont2-subtitle>'
5825
5826
  ].join("")
5826
- ), Gc = {
5827
+ ), dh = {
5827
5828
  button: { label: "Button", html: yc },
5828
5829
  "provider-button": {
5829
5830
  label: "Provider buttons",
5830
- html: O(
5831
+ html: L(
5831
5832
  [
5832
5833
  '<pont2-provider-button provider="google"></pont2-provider-button>',
5833
5834
  '<pont2-provider-button provider="apple"></pont2-provider-button>',
5834
- V('<pont2-provider-button provider="google" content="icon"></pont2-provider-button><pont2-provider-button provider="github" content="icon"></pont2-provider-button>'),
5835
+ R('<pont2-provider-button provider="google" content="icon"></pont2-provider-button><pont2-provider-button provider="github" content="icon"></pont2-provider-button>'),
5835
5836
  '<pont2-passkey-button content="icon-label"></pont2-passkey-button>'
5836
5837
  ].join("")
5837
5838
  )
5838
5839
  },
5839
5840
  input: { label: "Input", html: vc },
5840
- field: { label: "Field", html: Qa },
5841
- label: { label: "Label", html: Qa },
5841
+ field: { label: "Field", html: Za },
5842
+ label: { label: "Label", html: Za },
5842
5843
  checkbox: { label: "Checkbox", html: wc },
5843
5844
  "input-otp": {
5844
5845
  label: "One-time code",
5845
- html: O(
5846
+ html: L(
5846
5847
  [
5847
5848
  '<pont2-input-otp aria-label="Verification code"></pont2-input-otp>',
5848
5849
  '<pont2-input-otp group-size="3" separator aria-label="Code"></pont2-input-otp>'
@@ -5852,7 +5853,7 @@ const V = (i) => `<div style="display:flex;flex-wrap:wrap;gap:.75rem;align-items
5852
5853
  "otp-resend": { label: "Resend code", html: '<pont2-otp-resend duration="5" event="resend_code"></pont2-otp-resend>' },
5853
5854
  link: {
5854
5855
  label: "Link",
5855
- html: O(
5856
+ html: L(
5856
5857
  [
5857
5858
  `<pont2-link prompt="Don't have an account?" label="Sign up" event="goto_signup"></pont2-link>`,
5858
5859
  '<pont2-link label="Forgot password?" event="forgot"></pont2-link>'
@@ -5862,17 +5863,17 @@ const V = (i) => `<div style="display:flex;flex-wrap:wrap;gap:.75rem;align-items
5862
5863
  alert: { label: "Alert", html: kc },
5863
5864
  separator: {
5864
5865
  label: "Separator",
5865
- html: O('<pont2-separator></pont2-separator><pont2-divider label="Or continue with"></pont2-divider>')
5866
+ html: L('<pont2-separator></pont2-separator><pont2-divider label="Or continue with"></pont2-divider>')
5866
5867
  },
5867
5868
  badge: { label: "Badge", html: xc },
5868
- block: { label: "Block", html: Ys },
5869
- header: { label: "Header", html: Ys },
5870
- container: { label: "Container", html: Ys },
5869
+ block: { label: "Block", html: Xs },
5870
+ header: { label: "Header", html: Xs },
5871
+ container: { label: "Container", html: Xs },
5871
5872
  title: { label: "Title", html: Ga },
5872
5873
  subtitle: { label: "Subtitle", html: Ga },
5873
5874
  avatar: {
5874
5875
  label: "Avatar",
5875
- html: V(
5876
+ html: R(
5876
5877
  '<pont2-avatar alt="Ada Lovelace" size="sm"></pont2-avatar><pont2-avatar alt="Grace Hopper"></pont2-avatar><pont2-avatar alt="Katherine Johnson" size="lg"></pont2-avatar>'
5877
5878
  )
5878
5879
  },
@@ -5886,38 +5887,40 @@ const V = (i) => `<div style="display:flex;flex-wrap:wrap;gap:.75rem;align-items
5886
5887
  },
5887
5888
  watermark: {
5888
5889
  label: "Watermark",
5889
- html: O('<pont2-watermark></pont2-watermark><pont2-watermark variant="muted" label="Secured by"></pont2-watermark>')
5890
+ html: L('<pont2-watermark></pont2-watermark><pont2-watermark variant="muted" label="Secured by"></pont2-watermark>')
5890
5891
  }
5891
5892
  };
5892
5893
  export {
5893
5894
  Ba as ALERT_STATUSES,
5894
- Tc as ALERT_VARIANTS,
5895
+ Vc as ALERT_VARIANTS,
5895
5896
  Fc as AUTH_BUTTON_CONTENTS,
5897
+ Yc as AUTH_BUTTON_ICON_ALIGNS,
5896
5898
  sa as AUTH_PROVIDERS,
5897
- Wt as ActionController,
5898
- Ye as Alert,
5899
- Zs as AlertAction,
5900
- Ze as AlertDescription,
5899
+ Kt as ActionController,
5900
+ Xe as Alert,
5901
+ Qs as AlertAction,
5902
+ Qe as AlertDescription,
5901
5903
  Je as AlertTitle,
5902
5904
  ml as AnchoredPositioner,
5903
- qe as AuthButton,
5905
+ Oe as AuthButton,
5904
5906
  P as AuthField,
5905
- Qe as Avatar,
5907
+ Ze as Avatar,
5906
5908
  _e as AvatarBadge,
5907
5909
  Ge as AvatarFallback,
5908
- Qs as AvatarGroup,
5910
+ Zs as AvatarGroup,
5909
5911
  Gs as AvatarGroupCount,
5910
5912
  Uc as BADGE_VARIANTS,
5911
- Vc as BUTTON_SIZES,
5913
+ Rc as BUTTON_SIZES,
5912
5914
  zc as BUTTON_VARIANTS,
5913
5915
  Pe as Badge,
5914
5916
  Mn as Block,
5915
- Yl as BrandingController,
5917
+ Xl as BrandingController,
5916
5918
  Js as ButtonBase,
5917
5919
  _s as ButtonGroup,
5918
5920
  er as ButtonGroupSeparator,
5919
5921
  tr as ButtonGroupText,
5920
5922
  rc as CONSENT_EXPIRED_EN,
5923
+ eh as CONTAINER_TYPES,
5921
5924
  ti as Card,
5922
5925
  nr as CardAction,
5923
5926
  ar as CardContent,
@@ -5935,21 +5938,21 @@ export {
5935
5938
  wn as ComboboxLabel,
5936
5939
  gn as ComboboxList,
5937
5940
  kn as ComboboxSeparator,
5938
- Ln as ConfirmField,
5939
- Zn as Consent,
5941
+ qn as ConfirmField,
5942
+ Qn as Consent,
5940
5943
  B as ConsentError,
5941
5944
  In as Container,
5942
5945
  co as CopyController,
5943
- jn as Countdown,
5944
- Tt as DEFAULT_BRANDING,
5945
- Re as DEFAULT_PASSWORD_RULES,
5946
- Le as DesignModeController,
5947
- Vn as Divider,
5948
- Yr as DropdownMenu,
5946
+ Wn as Countdown,
5947
+ Vt as DEFAULT_BRANDING,
5948
+ Te as DEFAULT_PASSWORD_RULES,
5949
+ qe as DesignModeController,
5950
+ Rn as Divider,
5951
+ Xr as DropdownMenu,
5949
5952
  Gr as DropdownMenuCheckboxItem,
5950
5953
  fi as DropdownMenuContent,
5951
5954
  en as DropdownMenuGroup,
5952
- Qr as DropdownMenuItem,
5955
+ Zr as DropdownMenuItem,
5953
5956
  sn as DropdownMenuLabel,
5954
5957
  _r as DropdownMenuRadioGroup,
5955
5958
  tn as DropdownMenuRadioItem,
@@ -5958,9 +5961,9 @@ export {
5958
5961
  Jr as DropdownMenuSub,
5959
5962
  mi as DropdownMenuSubContent,
5960
5963
  Ce as DropdownMenuSubTrigger,
5961
- Zr as DropdownMenuTrigger,
5962
- Kn as EditIdentifier,
5963
- Ol as EmailField,
5964
+ Qr as DropdownMenuTrigger,
5965
+ jn as EditIdentifier,
5966
+ Ll as EmailField,
5964
5967
  or as Empty,
5965
5968
  ur as EmptyContent,
5966
5969
  dr as EmptyDescription,
@@ -5968,7 +5971,8 @@ export {
5968
5971
  cr as EmptyMedia,
5969
5972
  hr as EmptyTitle,
5970
5973
  Pl as ExternalLink,
5971
- Xc as FLOW_MESSAGES_EN,
5974
+ Xc as FIELD_VALIDATION_MODES,
5975
+ ah as FLOW_MESSAGES_EN,
5972
5976
  $e as Field,
5973
5977
  mr as FieldContent,
5974
5978
  ii as FieldDescription,
@@ -5978,14 +5982,16 @@ export {
5978
5982
  si as FieldSeparator,
5979
5983
  pr as FieldSetElement,
5980
5984
  br as FieldTitle,
5981
- Oe as FlowWidget,
5982
- W as FormControlElement,
5985
+ Le as FlowWidget,
5986
+ K as FormControlElement,
5987
+ sh as GAP_TYPES,
5983
5988
  Bn as Gap,
5989
+ ih as HEADER_ALIGNS,
5984
5990
  Pn as Header,
5985
5991
  l as HostElement,
5986
- Vl as IDENTIFIER_KINDS,
5992
+ Rl as IDENTIFIER_KINDS,
5987
5993
  wi as INSTANCE_UNAVAILABLE,
5988
- qn as IdentifierField,
5994
+ On as IdentifierField,
5989
5995
  Se as InputGroup,
5990
5996
  Ee as InputGroupAddon,
5991
5997
  _o as InputGroupButton,
@@ -5995,70 +6001,76 @@ export {
5995
6001
  li as InputOTP,
5996
6002
  ci as InputOTPGroup,
5997
6003
  hi as InputOTPSeparator,
5998
- Or as InputOTPSlot,
6004
+ Lr as InputOTPSlot,
5999
6005
  hc as Invitation,
6000
6006
  $r as Item,
6001
- Nr as ItemActions,
6007
+ Dr as ItemActions,
6002
6008
  Er as ItemContent,
6003
- Dr as ItemDescription,
6004
- qr as ItemFooter,
6009
+ Nr as ItemDescription,
6010
+ Or as ItemFooter,
6005
6011
  kr as ItemGroup,
6006
6012
  Cr as ItemHeader,
6007
6013
  Sr as ItemMedia,
6008
6014
  xr as ItemSeparator,
6009
6015
  Ar as ItemTitle,
6010
- N as KIT_MESSAGES_EN,
6011
- je as Kbd,
6012
- Ke as KbdGroup,
6016
+ D as KIT_MESSAGES_EN,
6017
+ We as Kbd,
6018
+ je as KbdGroup,
6013
6019
  An as KitAlert,
6014
- Dn as KitAvatar,
6015
- Nn as KitInputOTP,
6020
+ Nn as KitAvatar,
6021
+ Dn as KitInputOTP,
6022
+ Zc as LINK_ALIGNS,
6023
+ Gc as LINK_SERVICES,
6024
+ rh as LOGO_ALIGNS,
6016
6025
  Jn as Layout,
6017
6026
  bi as Link,
6018
- Wn as Logo,
6027
+ Kn as Logo,
6019
6028
  Bt as MenuItemBase,
6020
6029
  ea as MessagesController,
6021
6030
  zl as NameField,
6022
- L as NativeEnhancer,
6031
+ q as NativeEnhancer,
6023
6032
  ni as NativeSelect,
6033
+ Qc as OTP_LAYOUTS,
6024
6034
  Un as OtpField,
6025
6035
  zn as OtpResend,
6026
- Tl as PASSWORD_RULE_PATTERNS,
6036
+ Vl as PASSWORD_RULE_PATTERNS,
6027
6037
  we as PREFIX,
6028
- Zc as PREVIEW_SCREENS,
6029
- Gc as PREVIEW_SPECIMENS,
6038
+ ch as PREVIEW_SCREENS,
6039
+ dh as PREVIEW_SPECIMENS,
6030
6040
  Ho as PRIM,
6031
6041
  El as PROVIDER_NAMES,
6032
- Nl as PasskeyButton,
6033
- On as PasswordField,
6034
- Ll as PhoneField,
6042
+ Dl as PasskeyButton,
6043
+ Ln as PasswordField,
6044
+ ql as PhoneField,
6035
6045
  xe as Pont2Button,
6036
- We as Pont2Input,
6046
+ Ke as Pont2Input,
6037
6047
  He as Pont2Label,
6038
- Xe as Pont2Textarea,
6039
- Wr as Popover,
6040
- Kr as PopoverContent,
6041
- Xr as PopoverDescription,
6048
+ Ye as Pont2Textarea,
6049
+ Kr as Popover,
6050
+ jr as PopoverContent,
6051
+ Yr as PopoverDescription,
6042
6052
  Hr as PopoverHeader,
6043
6053
  Fr as PopoverTitle,
6044
- jr as PopoverTrigger,
6054
+ Wr as PopoverTrigger,
6045
6055
  tt as PopupContent,
6046
- K as PopupRoot,
6047
- Ne as PopupTrigger,
6048
- Lr as Progress,
6056
+ j as PopupRoot,
6057
+ De as PopupTrigger,
6058
+ qr as Progress,
6049
6059
  Ur as ProgressLabel,
6050
6060
  zr as ProgressValue,
6051
6061
  Cn as ProviderButton,
6052
- Tn as ProviderField,
6062
+ Vn as ProviderField,
6063
+ nh as QR_ERROR_CORRECTIONS,
6053
6064
  Fn as QrCode,
6054
- Wc as REGEXP_ONLY_CHARS,
6065
+ Kc as REGEXP_ONLY_CHARS,
6055
6066
  oi as REGEXP_ONLY_DIGITS,
6056
- jc as REGEXP_ONLY_DIGITS_AND_CHARS,
6057
- Vr as RadioGroup,
6058
- Rr as RadioGroupItem,
6059
- Xn as RecoveryCodes,
6067
+ Wc as REGEXP_ONLY_DIGITS_AND_CHARS,
6068
+ Rr as RadioGroup,
6069
+ Tr as RadioGroupItem,
6070
+ Yn as RecoveryCodes,
6060
6071
  lo as RovingFocusController,
6061
- Yn as ScopeList,
6072
+ Jc as SECRET_FIELD_VARIANTS,
6073
+ Xn as ScopeList,
6062
6074
  Hn as Secret,
6063
6075
  gi as SecretField,
6064
6076
  an as Select,
@@ -6079,54 +6091,56 @@ export {
6079
6091
  Bl as Subtitle,
6080
6092
  ui as Switch,
6081
6093
  ai as Table,
6082
- Tr as Tabs,
6094
+ Vr as Tabs,
6083
6095
  Pr as TabsContent,
6084
6096
  Mr as TabsList,
6085
6097
  Ir as TabsTrigger,
6086
- Rn as Title,
6098
+ Tn as Title,
6087
6099
  $n as Tooltip,
6088
6100
  En as TooltipContent,
6089
6101
  Sn as TooltipTrigger,
6090
6102
  Pt as Typeahead,
6091
6103
  Ul as UsernameField,
6104
+ th as WATERMARK_LOGO_ALIGNS,
6105
+ _c as WATERMARK_VARIANTS,
6092
6106
  vi as Watermark,
6093
6107
  fl as alignItemWithAnchor,
6094
- Ko as applyAttrs,
6108
+ jo as applyAttrs,
6095
6109
  ho as applyButton,
6096
- Qo as applyFieldLabel,
6097
- Zo as applyFieldSet,
6110
+ Zo as applyFieldLabel,
6111
+ Qo as applyFieldSet,
6098
6112
  po as applyInput,
6099
6113
  mo as applyLabel,
6100
6114
  tl as applyNativeSelect,
6101
6115
  el as applyTable,
6102
6116
  go as applyTextarea,
6103
6117
  C as attrs,
6104
- Do as brandingContext,
6105
- R as button,
6106
- ql as compilePattern,
6118
+ No as brandingContext,
6119
+ T as button,
6120
+ Ol as compilePattern,
6107
6121
  pl as computePosition,
6108
- Lo as consentEndpoint,
6109
- Oo as consentExpired,
6110
- Oc as currentLocale,
6122
+ qo as consentEndpoint,
6123
+ Lo as consentExpired,
6124
+ Lc as currentLocale,
6111
6125
  a as define,
6112
6126
  E as defineAlias,
6113
6127
  ra as describeFlowError,
6114
6128
  no as designModeContext,
6115
6129
  It as directionOf,
6116
- Jc as dispatchFlowState,
6130
+ lh as dispatchFlowState,
6117
6131
  $ as ensureId,
6118
- Xs as escapeAttr,
6132
+ Ys as escapeAttr,
6119
6133
  nc as fetchConsent,
6120
6134
  Go as fieldLabel,
6121
6135
  Ic as fieldLegend,
6122
- Z as fieldMessages,
6136
+ Q as fieldMessages,
6123
6137
  Mc as fieldSet,
6124
6138
  S as fire,
6125
6139
  x as fireNative,
6126
6140
  sc as formDataToObject,
6127
6141
  Sl as groupSizes,
6128
6142
  v as icons,
6129
- Rl as identifierLabel,
6143
+ Tl as identifierLabel,
6130
6144
  Ua as identitiesOf,
6131
6145
  ro as identityAttr,
6132
6146
  $l as initials,
@@ -6134,46 +6148,46 @@ export {
6134
6148
  vo as inputGroupButton,
6135
6149
  yo as inputGroupInput,
6136
6150
  Pc as inputGroupTextarea,
6137
- Yc as isInstanceUnavailable,
6151
+ oh as isInstanceUnavailable,
6138
6152
  Ue as isItemDisabled,
6139
6153
  Ft as isItemVisible,
6140
6154
  oc as isNavigableRedirect,
6141
6155
  Co as isScopeChecked,
6142
- Yo as isSoftDisabled,
6156
+ Xo as isSoftDisabled,
6143
6157
  ia as keyToMove,
6144
- Rc as label,
6158
+ Tc as label,
6145
6159
  Ha as logoSource,
6146
- De as moveIndex,
6147
- j as msg,
6160
+ Ne as moveIndex,
6161
+ W as msg,
6148
6162
  Bc as nativeSelect,
6149
- No as normalizeScopes,
6163
+ Do as normalizeScopes,
6150
6164
  Fo as onMessagesChanged,
6151
- Kc as openPopups,
6165
+ jc as openPopups,
6152
6166
  Eo as otpGroups,
6153
6167
  A as ownQuery,
6154
6168
  Hc as ownQueryAll,
6155
6169
  _n as parseList,
6156
- Qc as previewClient,
6170
+ hh as previewClient,
6157
6171
  so as primTag,
6158
- Wl as providerColumns,
6159
- jl as providerEvent,
6160
- Dl as providerIcon,
6161
- Ql as qrPath,
6172
+ Kl as providerColumns,
6173
+ Wl as providerEvent,
6174
+ Nl as providerIcon,
6175
+ Zl as qrPath,
6162
6176
  ic as rememberUnavailable,
6163
- Lc as resetMessages,
6164
- Va as safeExternalUrl,
6165
- Zl as safeRedirect,
6177
+ qc as resetMessages,
6178
+ Ra as safeExternalUrl,
6179
+ Ql as safeRedirect,
6166
6180
  oo as safeUrl,
6167
6181
  _l as scopeListValue,
6168
6182
  m as sel,
6169
6183
  ao as setMessages,
6170
- Ws as spaceOn,
6184
+ Ks as spaceOn,
6171
6185
  ac as submitConsent,
6172
6186
  io as tag,
6173
6187
  ke as tags,
6174
6188
  Jo as textarea,
6175
6189
  dl as toPhysical,
6176
- qc as toggleIdRef,
6190
+ Oc as toggleIdRef,
6177
6191
  Ms as uid,
6178
6192
  Ao as watermarkContent
6179
6193
  };