@vanelsas/baredom 0.2.3-alpha → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/README.md +4 -4
  3. package/dist/base.js +349 -346
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +17 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +14 -14
  9. package/dist/x-button.js +15 -15
  10. package/dist/x-cancel-dialogue.js +16 -16
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +47 -47
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +8 -8
  15. package/dist/x-collapse.js +12 -12
  16. package/dist/x-command-palette.js +31 -31
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +20 -20
  19. package/dist/x-copy.js +22 -23
  20. package/dist/x-currency-field.js +22 -20
  21. package/dist/x-date-picker.js +42 -36
  22. package/dist/x-divider.js +13 -10
  23. package/dist/x-drawer.js +11 -11
  24. package/dist/x-dropdown.js +9 -9
  25. package/dist/x-fieldset.js +6 -6
  26. package/dist/x-file-download.js +7 -7
  27. package/dist/x-form-field.js +15 -15
  28. package/dist/x-form.js +10 -10
  29. package/dist/x-grid.js +7 -7
  30. package/dist/x-menu-item.js +10 -10
  31. package/dist/x-menu.js +10 -10
  32. package/dist/x-modal.js +12 -12
  33. package/dist/x-navbar.js +13 -12
  34. package/dist/x-notification-center.js +10 -9
  35. package/dist/x-pagination.js +16 -16
  36. package/dist/x-popover.js +14 -11
  37. package/dist/x-progress-circle.js +9 -9
  38. package/dist/x-progress.js +11 -10
  39. package/dist/x-radio.js +11 -11
  40. package/dist/x-search-field.js +14 -14
  41. package/dist/x-select.js +10 -10
  42. package/dist/x-sidebar.js +17 -26
  43. package/dist/x-skeleton.js +6 -6
  44. package/dist/x-slider.js +16 -16
  45. package/dist/x-spacer.js +5 -5
  46. package/dist/x-spinner.js +5 -5
  47. package/dist/x-stat.js +12 -9
  48. package/dist/x-stepper.js +16 -16
  49. package/dist/x-switch.js +10 -10
  50. package/dist/x-tab.js +8 -8
  51. package/dist/x-table-cell.js +23 -23
  52. package/dist/x-table-row.js +10 -10
  53. package/dist/x-table.js +16 -15
  54. package/dist/x-tabs.js +12 -11
  55. package/dist/x-text-area.js +17 -17
  56. package/dist/x-timeline-item.js +23 -23
  57. package/dist/x-timeline.js +9 -9
  58. package/dist/x-toast.js +23 -23
  59. package/dist/x-toaster.js +8 -8
  60. package/package.json +1 -1
package/dist/x-navbar.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var qD=function(a,b,c){return typeof a==="string"&&$APP.Cc(b,a)?a:c},rD=function(a){return a.__xNavbarState},sD=function(a,b){return a.__xNavbarFocusVisible=$APP.J(b)},tD=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},uD=function(a){return a.assignedNodes({flatten:!0})},vD=function(a){return document.createElement(a)},CD=function(a,b){var c=b.base,d=b.bar,e=b.brand,g=b.start,h=b.actions,k=b.toggle,m=b.end,q=b["brand-slot"],r=b["start-slot"],
3
- v=b["actions-slot"],w=b["toggle-slot"];b=b["end-slot"];a=new $APP.P(null,7,[$APP.W,a.getAttribute("label"),$APP.zh,a.getAttribute("orientation"),$APP.Vg,a.getAttribute("variant"),$APP.Qh,a.hasAttribute("sticky"),wD,a.hasAttribute("elevated"),$APP.Oh,a.getAttribute("breakpoint"),xD,a.getAttribute("alignment")],null);var z=$APP.M(a);a=$APP.I(z,$APP.W);var A=$APP.I(z,$APP.zh),C=$APP.I(z,$APP.Vg),F=$APP.I(z,$APP.Qh),D=$APP.I(z,wD),Q=$APP.I(z,$APP.Oh);z=$APP.I(z,xD);a=new $APP.P(null,7,[$APP.W,typeof a===
4
- "string"?a:null,$APP.zh,qD(A,yD,"horizontal"),$APP.Vg,qD(C,zD,"default"),$APP.Qh,$APP.J(F),wD,$APP.J(D),$APP.Oh,qD(Q,AD,"md"),xD,qD(z,BD,"space-between")],null);q=uD(q).length>0;r=uD(r).length>0;v=uD(v).length>0;w=uD(w).length>0;b=uD(b).length>0;A=$APP.M(a);A=$APP.I(A,$APP.W);A=typeof A==="string"&&$APP.N("",A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Vg.g(a));c.setAttribute("data-orientation",$APP.zh.g(a));c.setAttribute("data-breakpoint",
5
- $APP.Oh.g(a));d.setAttribute("data-alignment",xD.g(a));e.setAttribute("data-has-brand",q?"true":"false");g.setAttribute("data-has-start",r?"true":"false");h.setAttribute("data-has-actions",v?"true":"false");k.setAttribute("data-has-toggle",w?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},DD=function(a,b){b.addEventListener("click",function(c){var d=rD(a),e=c.target,g=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?"pointer":c instanceof
6
- KeyboardEvent?"keyboard":"programmatic";$APP.n(g)&&(g=g.getAttribute("href"),tD(a,"navigate",{href:$APP.n(g)?g:"",source:c}));a:{d=uD(d["brand-slot"]);for(g=0;;)if(g<d.length){var h=d[g];var k=$APP.E.h(h,e);h=k?k:(k=$APP.E.h(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):k;if($APP.n(h)){e=!0;break a}g+=1}else{e=!1;break a}e=void 0}return e?tD(a,"brand-activate",{source:c}):null});b.addEventListener("focusin",function(c){c=c.target;if($APP.n($APP.n(c)?c.matches(":focus-visible"):c)){if($APP.E.h(!0,a.__xNavbarFocusVisible))return null;
7
- sD(a,!0);a.setAttribute("data-focus-visible-within","true");return tD(a,"focus-visible",{})}return null});b.addEventListener("focusout",function(c){c=c.relatedTarget;if($APP.n($APP.n(c)?a.contains(c):c))return null;sD(a,!1);return a.removeAttribute("data-focus-visible-within")})},ED=function(a,b){function c(){return CD(a,b)}b["brand-slot"].addEventListener("slotchange",c);b["start-slot"].addEventListener("slotchange",c);b["default-slot"].addEventListener("slotchange",c);b["actions-slot"].addEventListener("slotchange",
8
- c);b["toggle-slot"].addEventListener("slotchange",c);b["end-slot"].addEventListener("slotchange",c)},FD=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},GD=function(){function a(){return Reflect.construct(HTMLElement,[],$APP.Ra(b))}var b=new $APP.Dd;$APP.Ed(b,a);return a},ID=function(){if($APP.n(customElements.get("x-navbar")))return null;
9
- var a=Object.create(HTMLElement.prototype),b=GD();Object.setPrototypeOf(b,HTMLElement);a.constructor=b;FD(a,"sticky","sticky");FD(a,"elevated","elevated");a.connectedCallback=function(){if(!$APP.n(rD(this))){var c=this.attachShadow({mode:"open"});var d=vD("style"),e=vD("nav"),g=vD("div"),h=vD("div"),k=vD("div"),m=vD("div"),q=vD("div"),r=vD("div"),v=vD("div"),w=vD("slot"),z=vD("slot"),A=vD("slot"),C=vD("slot"),F=vD("slot"),D=vD("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-navbar-height:4rem;--x-navbar-padding-inline:1rem;--x-navbar-gap:0.75rem;--x-navbar-bg:rgba(255,255,255,0.88);--x-navbar-color:#0f172a;--x-navbar-border:rgba(148,163,184,0.22);--x-navbar-divider:rgba(148,163,184,0.18);--x-navbar-shadow:0 8px 24px rgba(15,23,42,0.08);--x-navbar-focus-ring:#60a5fa;--x-navbar-z-index:40;--x-navbar-radius:1rem;--x-navbar-transition-duration:180ms;--x-navbar-transition-easing:cubic-bezier(0.2,0,0,1);--x-navbar-align-items:center;}@media (prefers-color-scheme: dark){:host{--x-navbar-bg:rgba(15,23,42,0.84);--x-navbar-color:#e5e7eb;--x-navbar-border:rgba(51,65,85,0.9);--x-navbar-divider:rgba(51,65,85,0.8);--x-navbar-shadow:0 14px 36px rgba(0,0,0,0.35);--x-navbar-focus-ring:#93c5fd;}}:host([hidden]){display:none;}[part\x3d'base']{display:block;color:var(--x-navbar-color);background:var(--x-navbar-bg);border:1px solid var(--x-navbar-border);border-radius:var(--x-navbar-radius);box-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:background var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),border-color var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),box-shadow var(--x-navbar-transition-duration) var(--x-navbar-transition-easing);}:host([sticky]) [part\x3d'base']{position:sticky;top:0;z-index:var(--x-navbar-z-index);}:host([elevated]) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}[part\x3d'base'][data-variant\x3d'subtle']{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}[part\x3d'base'][data-variant\x3d'inverted']{background:#0f172a;color:#f8fafc;border-color:#1e293b;}@media (prefers-color-scheme: dark){[part\x3d'base'][data-variant\x3d'inverted']{background:#020617;color:#f8fafc;border-color:#172033;}}[part\x3d'base'][data-variant\x3d'transparent']{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}[part\x3d'bar']{display:grid;grid-template-columns:auto auto 1fr auto auto auto;align-items:var(--x-navbar-align-items, center);gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}[part\x3d'bar'][data-alignment\x3d'start']{justify-items:start;}[part\x3d'bar'][data-alignment\x3d'center']{justify-items:center;}[part\x3d'bar'][data-alignment\x3d'space-between']{justify-items:stretch;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'bar']{grid-template-columns:1fr;grid-auto-rows:auto;align-items:var(--x-navbar-align-items, center);padding-block:0.75rem;}[part\x3d'brand'],[part\x3d'start'],[part\x3d'nav'],[part\x3d'actions'],[part\x3d'toggle'],[part\x3d'end']{display:flex;align-items:inherit;min-inline-size:0;}[part\x3d'nav']{gap:var(--x-navbar-gap);}[part\x3d'actions'],[part\x3d'end'],[part\x3d'toggle']{justify-self:end;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'actions'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'end'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'toggle']{justify-self:start;}[part\x3d'brand'][data-has-brand\x3d'false'],[part\x3d'start'][data-has-start\x3d'false'],[part\x3d'actions'][data-has-actions\x3d'false'],[part\x3d'toggle'][data-has-toggle\x3d'false'],[part\x3d'end'][data-has-end\x3d'false']{display:none;}slot[name\x3d'brand'],slot[name\x3d'start'],slot[name\x3d'actions'],slot[name\x3d'toggle'],slot[name\x3d'end']{display:contents;}slot{display:contents;}:host(:focus-within) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}:host([data-focus-visible-within\x3d'true']) [part\x3d'base']{box-shadow:0 0 0 2px var(--x-navbar-focus-ring), var(--x-navbar-shadow);}@media (prefers-reduced-motion: reduce){[part\x3d'base']{transition:none;}}";
10
- e.setAttribute("part","base");g.setAttribute("part","bar");h.setAttribute("part","brand");k.setAttribute("part","start");m.setAttribute("part","nav");q.setAttribute("part","actions");r.setAttribute("part","toggle");v.setAttribute("part","end");w.setAttribute("name","brand");z.setAttribute("name","start");C.setAttribute("name","actions");F.setAttribute("name","toggle");D.setAttribute("name","end");h.appendChild(w);k.appendChild(z);m.appendChild(A);q.appendChild(C);r.appendChild(F);v.appendChild(D);
11
- g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(q);g.appendChild(r);g.appendChild(v);e.appendChild(g);c.appendChild(d);c.appendChild(e);c={"end-slot":D,bar:g,start:k,toggle:r,actions:q,brand:h,"default-slot":A,root:c,"brand-slot":w,"start-slot":z,"actions-slot":C,"toggle-slot":F,end:v,base:e,nav:m};d=c.base;sD(this,!1);DD(this,d);ED(this,c);this.__xNavbarState=c}return CD(this,rD(this))};a.disconnectedCallback=function(){return sD(this,!1)};a.attributeChangedCallback=function(){var c=
12
- rD(this);return $APP.n(c)?CD(this,c):null};b.observedAttributes=HD;b.prototype=a;return customElements.define("x-navbar",b)},JD=function(){return ID()},wD=new $APP.K(null,"elevated","elevated",-7323953),xD=new $APP.K(null,"alignment","alignment",1040093386);var yD=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),zD=new $APP.R(null,new $APP.P(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),AD=new $APP.R(null,new $APP.P(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),BD=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"space-between",null],null),null),HD="label orientation variant sticky elevated breakpoint alignment".split(" ");
13
- $APP.wd(["focus-visible",new $APP.P(null,1,[$APP.Y,$APP.xd],null),"navigate",new $APP.P(null,1,[$APP.Y,new $APP.P(null,2,[$APP.Wi,$APP.X,$APP.Bh,$APP.X],null)],null),"brand-activate",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.Bh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_navbar.init",JD);export const init=JD;
2
+ var AD=function(a,b,c){return typeof a==="string"&&$APP.yc(b,a)?a:c},BD=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},CD=function(a){return a.assignedNodes({flatten:!0})},DD=function(a){return document.createElement(a)},KD=function(a,b){var c=$APP.l(b,"base"),d=$APP.l(b,"bar"),e=$APP.l(b,"brand"),g=$APP.l(b,"start"),h=$APP.l(b,"actions"),k=$APP.l(b,"toggle"),m=$APP.l(b,"end"),q=$APP.l(b,"brand-slot"),r=$APP.l(b,"start-slot"),v=$APP.l(b,
3
+ "actions-slot"),w=$APP.l(b,"toggle-slot");b=$APP.l(b,"end-slot");a=new $APP.Q(null,7,[$APP.W,a.getAttribute("label"),$APP.th,a.getAttribute("orientation"),$APP.Ng,a.getAttribute("variant"),$APP.Kh,a.hasAttribute("sticky"),ED,a.hasAttribute("elevated"),$APP.Ih,a.getAttribute("breakpoint"),FD,a.getAttribute("alignment")],null);var z=$APP.N(a);a=$APP.I(z,$APP.W);var A=$APP.I(z,$APP.th),D=$APP.I(z,$APP.Ng),G=$APP.I(z,$APP.Kh),J=$APP.I(z,ED),E=$APP.I(z,$APP.Ih);z=$APP.I(z,FD);a=new $APP.Q(null,7,[$APP.W,
4
+ typeof a==="string"?a:null,$APP.th,AD(A,GD,"horizontal"),$APP.Ng,AD(D,HD,"default"),$APP.Kh,$APP.K(G),ED,$APP.K(J),$APP.Ih,AD(E,ID,"md"),FD,AD(z,JD,"space-between")],null);q=CD(q).length>0;r=CD(r).length>0;v=CD(v).length>0;w=CD(w).length>0;b=CD(b).length>0;A=$APP.N(a);A=$APP.I(A,$APP.W);A=typeof A==="string"&&$APP.O("",A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Ng.g(a));c.setAttribute("data-orientation",$APP.th.g(a));c.setAttribute("data-breakpoint",
5
+ $APP.Ih.g(a));d.setAttribute("data-alignment",FD.g(a));e.setAttribute("data-has-brand",q?"true":"false");g.setAttribute("data-has-start",r?"true":"false");h.setAttribute("data-has-actions",v?"true":"false");k.setAttribute("data-has-toggle",w?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},LD=function(a,b){b.addEventListener("click",function(c){var d=$APP.l(a,"__xNavbarRefs"),e=c.target,g=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?
6
+ "pointer":c instanceof KeyboardEvent?"keyboard":"programmatic";$APP.n(g)&&(g=g.getAttribute("href"),BD(a,"navigate",{href:$APP.n(g)?g:"",source:c}));a:{d=CD($APP.l(d,"brand-slot"));for(g=0;;)if(g<d.length){var h=d[g];var k=$APP.C.h(h,e);h=k?k:(k=$APP.C.h(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):k;if($APP.n(h)){e=!0;break a}g+=1}else{e=!1;break a}e=void 0}return e?BD(a,"brand-activate",{source:c}):null});b.addEventListener("focusin",function(c){c=c.target;if($APP.n($APP.n(c)?c.matches(":focus-visible"):
7
+ c)){if($APP.n($APP.l(a,"__xNavbarFocusVisible")))return null;a.__xNavbarFocusVisible=!0;a.setAttribute("data-focus-visible-within","true");return BD(a,"focus-visible",{})}return null});b.addEventListener("focusout",function(c){c=c.relatedTarget;if($APP.n($APP.n(c)?a.contains(c):c))return null;a.__xNavbarFocusVisible=!1;return a.removeAttribute("data-focus-visible-within")})},MD=function(a,b){function c(){return KD(a,b)}$APP.l(b,"brand-slot").addEventListener("slotchange",c);$APP.l(b,"start-slot").addEventListener("slotchange",
8
+ c);$APP.l(b,"default-slot").addEventListener("slotchange",c);$APP.l(b,"actions-slot").addEventListener("slotchange",c);$APP.l(b,"toggle-slot").addEventListener("slotchange",c);$APP.l(b,"end-slot").addEventListener("slotchange",c)},ND=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.K(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},OD=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,
9
+ enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return $APP.n(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},PD=function(a){ND(a,"sticky","sticky");ND(a,"elevated","elevated");OD(a,"label","label");OD(a,"variant","variant");OD(a,"orientation","orientation");OD(a,"alignment","alignment");OD(a,"breakpoint","breakpoint")},RD=function(){var a=class extends HTMLElement{};a.observedAttributes=QD;a.prototype.connectedCallback=function(){var b=
10
+ $APP.l(this,"__xNavbarRefs")==null;var c=$APP.l(this,"__xNavbarRefs");if(!$APP.n(c)){c=this.attachShadow({mode:"open"});var d=DD("style"),e=DD("nav"),g=DD("div"),h=DD("div"),k=DD("div"),m=DD("div"),q=DD("div"),r=DD("div"),v=DD("div"),w=DD("slot"),z=DD("slot"),A=DD("slot"),D=DD("slot"),G=DD("slot"),J=DD("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-navbar-height:4rem;--x-navbar-padding-inline:1rem;--x-navbar-gap:0.75rem;--x-navbar-bg:rgba(255,255,255,0.88);--x-navbar-color:#0f172a;--x-navbar-border:rgba(148,163,184,0.22);--x-navbar-shadow:0 8px 24px rgba(15,23,42,0.08);--x-navbar-focus-ring:#60a5fa;--x-navbar-z-index:40;--x-navbar-radius:1rem;--x-navbar-transition-duration:180ms;--x-navbar-transition-easing:cubic-bezier(0.2,0,0,1);--x-navbar-align-items:center;}@media (prefers-color-scheme: dark){:host{--x-navbar-bg:rgba(15,23,42,0.84);--x-navbar-color:#e5e7eb;--x-navbar-border:rgba(51,65,85,0.9);--x-navbar-shadow:0 14px 36px rgba(0,0,0,0.35);--x-navbar-focus-ring:#93c5fd;}}:host([hidden]){display:none;}[part\x3d'base']{display:block;color:var(--x-navbar-color);background:var(--x-navbar-bg);border:1px solid var(--x-navbar-border);border-radius:var(--x-navbar-radius);box-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:background var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),border-color var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),box-shadow var(--x-navbar-transition-duration) var(--x-navbar-transition-easing);}:host([sticky]) [part\x3d'base']{position:sticky;top:0;z-index:var(--x-navbar-z-index);}:host([elevated]) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}[part\x3d'base'][data-variant\x3d'subtle']{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}[part\x3d'base'][data-variant\x3d'inverted']{background:#0f172a;color:#f8fafc;border-color:#1e293b;}@media (prefers-color-scheme: dark){[part\x3d'base'][data-variant\x3d'inverted']{background:#020617;color:#f8fafc;border-color:#172033;}}[part\x3d'base'][data-variant\x3d'transparent']{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}[part\x3d'bar']{display:grid;grid-template-columns:auto auto 1fr auto auto auto;align-items:var(--x-navbar-align-items, center);gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}[part\x3d'bar'][data-alignment\x3d'start']{justify-items:start;}[part\x3d'bar'][data-alignment\x3d'center']{justify-items:center;}[part\x3d'bar'][data-alignment\x3d'space-between']{justify-items:stretch;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'bar']{grid-template-columns:1fr;grid-auto-rows:auto;align-items:var(--x-navbar-align-items, center);padding-block:0.75rem;}[part\x3d'brand'],[part\x3d'start'],[part\x3d'nav'],[part\x3d'actions'],[part\x3d'toggle'],[part\x3d'end']{display:flex;align-items:inherit;min-inline-size:0;}[part\x3d'nav']{gap:var(--x-navbar-gap);}[part\x3d'actions'],[part\x3d'end'],[part\x3d'toggle']{justify-self:end;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'actions'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'end'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'toggle']{justify-self:start;}[part\x3d'brand'][data-has-brand\x3d'false'],[part\x3d'start'][data-has-start\x3d'false'],[part\x3d'actions'][data-has-actions\x3d'false'],[part\x3d'toggle'][data-has-toggle\x3d'false'],[part\x3d'end'][data-has-end\x3d'false']{display:none;}slot[name\x3d'brand'],slot[name\x3d'start'],slot[name\x3d'actions'],slot[name\x3d'toggle'],slot[name\x3d'end']{display:contents;}slot{display:contents;}:host(:focus-within) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}:host([data-focus-visible-within\x3d'true']) [part\x3d'base']{box-shadow:0 0 0 2px var(--x-navbar-focus-ring), var(--x-navbar-shadow);}@media (prefers-reduced-motion: reduce){[part\x3d'base']{transition:none;}}";
11
+ e.setAttribute("part","base");g.setAttribute("part","bar");h.setAttribute("part","brand");k.setAttribute("part","start");m.setAttribute("part","nav");q.setAttribute("part","actions");r.setAttribute("part","toggle");v.setAttribute("part","end");w.setAttribute("name","brand");z.setAttribute("name","start");D.setAttribute("name","actions");G.setAttribute("name","toggle");J.setAttribute("name","end");h.appendChild(w);k.appendChild(z);m.appendChild(A);q.appendChild(D);r.appendChild(G);v.appendChild(J);
12
+ g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(q);g.appendChild(r);g.appendChild(v);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xNavbarRefs=c={"end-slot":J,bar:g,start:k,toggle:r,actions:q,brand:h,"default-slot":A,root:c,"brand-slot":w,"start-slot":z,"actions-slot":D,"toggle-slot":G,end:v,base:e,nav:m}}b&&(this.__xNavbarFocusVisible=!1,LD(this,$APP.l(c,"base")),MD(this,c));return KD(this,c)};a.prototype.disconnectedCallback=function(){this.__xNavbarFocusVisible=!1};
13
+ a.prototype.attributeChangedCallback=function(){var b=$APP.l(this,"__xNavbarRefs");return $APP.n(b)?KD(this,b):null};PD(a.prototype);return a},SD=function(){$APP.n(customElements.get("x-navbar"))||customElements.define("x-navbar",RD());return null},ED=new $APP.M(null,"elevated","elevated",-7323953),FD=new $APP.M(null,"alignment","alignment",1040093386);var GD=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),HD=new $APP.S(null,new $APP.Q(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),ID=new $APP.S(null,new $APP.Q(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),JD=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"space-between",null],null),null),QD="label orientation variant sticky elevated breakpoint alignment".split(" ");
14
+ $APP.sd(["focus-visible",new $APP.Q(null,1,[$APP.Y,$APP.td],null),"navigate",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.Qi,$APP.X,$APP.vh,$APP.X],null)],null),"brand-activate",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.vh,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_navbar.init",SD);export const init=SD;
@@ -1,10 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Bk=function(a){return typeof a==="string"&&$APP.Cc(Ak,a.toLowerCase())?a.toLowerCase():"top-right"},Ck=function(a){if(a==null)return 5;a=parseInt(""+$APP.S.g(a),10);return typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:5},Dk=function(a){var b=$APP.l(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
3
- d.setAttribute("part","container");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.l(a,"__xNcRefs")},Ek=function(a){var b=a.getAttribute("position");b=Bk(b);a.setAttribute("data-position",b)},Fk=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!1}))},Gk=function(a){function b(d){var e=Dk(a),g=$APP.l(e,"container"),h=d.composedPath()[0];e=h.getAttribute("data-notification-id");g=g.querySelectorAll("x-alert").length-
4
- 1;h=h.getAttribute("type");var k=d.detail.reason;d=d.detail.text;Fk(a,"x-notification-center-dismiss",new $APP.P(null,5,[$APP.Hh,e,$APP.Z,$APP.n(h)?h:"info",$APP.wh,$APP.n(k)?k:"",$APP.Lh,$APP.n(d)?d:"",$APP.Hg,g],null));g===0&&Fk(a,"x-notification-center-empty",$APP.xd);return null}var c=Dk(a);$APP.l(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ma(a,"__xNcHandlers",{dismiss:b})},Hk=function(a){var b=$APP.l(a,"__xNcHandlers"),c=$APP.l(a,"__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=
5
- $APP.l(c,"root"),b=$APP.l(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));a.__xNcHandlers=null},Jk=function(a,b){var c=Dk(a);c=$APP.l(c,"container");if(c.querySelectorAll("x-alert").length<function(){var r=$APP.l(a,"__xNcMax");return $APP.n(r)?r:5}()){var d=document.createElement("x-alert"),e=function(){var r=$APP.l(b,"id");$APP.n(r)||(r=Ik.v,Ik.v=r+1,r="xnc-"+$APP.S.g(r));return r}(),g=$APP.l(b,"type"),h=$APP.l(b,"text"),k=$APP.l(b,"icon"),m=$APP.l(b,"timeoutMs"),
6
- q=$APP.l(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(k)&&d.setAttribute("icon",k);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.S.g(m|0));q===!1&&d.setAttribute("dismissible","false");c.appendChild(d);Fk(a,"x-notification-center-push",new $APP.P(null,2,[$APP.Hh,e,$APP.Hg,c.querySelectorAll("x-alert").length],null))}return null},Kk=function(a){Object.defineProperty(a,"position",{get:function(){return Bk(this.getAttribute("position"))},
7
- set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return Ck(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.S.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.l(this,"__xNcRefs");return $APP.n(b)?$APP.l(b,"container").querySelectorAll("x-alert").length:
8
- 0},enumerable:!0,configurable:!0})},Mk=function(){var a=class extends HTMLElement{};a.observedAttributes=Lk;a.prototype.connectedCallback=function(){Dk(this);Hk(this);Gk(this);Ek(this);return null};a.prototype.disconnectedCallback=function(){Hk(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.E.h(b,"position")?Ek(this):$APP.E.h(b,"max")&&(this.__xNcMax=Ck(this.getAttribute("max")));return null};Kk(a.prototype);a.prototype.push=function(b){return Jk(this,b)};a.prototype.clear=
9
- function(){var b=Dk(this);b=$APP.u($APP.gc($APP.l(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.u(b))c=b,$APP.yc(c)?(b=$APP.ob(c),e=$APP.pb(c),c=b,d=$APP.B(b),b=e):($APP.x(c).remove(),b=$APP.y(c),c=null,d=0),e=0;else break;return null};return a},Nk=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Mk());return null};var Lk=["position","max"],Ak=new $APP.R(null,new $APP.P(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
10
- $APP.wd(["x-notification-center-push",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.Hh,$APP.X,$APP.Hg,$APP.Fh],null),$APP.ui,!1],null),"x-notification-center-dismiss",new $APP.P(null,2,[$APP.Y,new $APP.P(null,5,[$APP.Hh,$APP.X,$APP.Z,$APP.X,$APP.wh,$APP.X,$APP.Lh,$APP.X,$APP.Hg,$APP.Fh],null),$APP.ui,!1],null),"x-notification-center-empty",new $APP.P(null,2,[$APP.Y,$APP.xd,$APP.ui,!1],null)]);var Ik={v:0};$APP.ka("baredom.exports.x_notification_center.init",Nk);export const init=Nk;
2
+ var vk=function(a){return typeof a==="string"&&$APP.yc(uk,a.toLowerCase())?a.toLowerCase():"top-right"},wk=function(a){if(a==null)return 5;a=parseInt(""+$APP.T.g(a),10);return typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:5},xk=function(a){var b=$APP.l(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
3
+ d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.l(a,"__xNcRefs")},yk=function(a){var b=a.getAttribute("position");b=vk(b);a.setAttribute("data-position",b)},zk=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:$APP.pg(c),bubbles:!0,composed:!0,cancelable:!1}))},Ak=function(a){function b(d){var e=xk(a),g=$APP.l(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");
4
+ g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var k=d.detail.reason;d=d.detail.text;zk(a,"x-notification-center-dismiss",new $APP.Q(null,5,[$APP.Bh,e,$APP.Z,$APP.n(h)?h:"info",$APP.qh,$APP.n(k)?k:"",$APP.Fh,$APP.n(d)?d:"",$APP.zg,g],null));g===0&&zk(a,"x-notification-center-empty",$APP.td);return null}var c=xk(a);$APP.l(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.la(a,"__xNcHandlers",{dismiss:b})},Bk=function(a){var b=$APP.l(a,"__xNcHandlers"),c=$APP.l(a,
5
+ "__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.l(c,"root"),b=$APP.l(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));a.__xNcHandlers=null},Dk=function(a,b){var c=xk(a);c=$APP.l(c,"container");if(c.querySelectorAll("x-alert").length<function(){var r=$APP.l(a,"__xNcMax");return $APP.n(r)?r:5}()){var d=document.createElement("x-alert"),e=function(){var r=$APP.l(b,"id");$APP.n(r)||(r=Ck.v,Ck.v=r+1,r="xnc-"+$APP.T.g(r));return r}(),g=$APP.l(b,"type"),h=$APP.l(b,"text"),k=$APP.l(b,
6
+ "icon"),m=$APP.l(b,"timeoutMs"),q=$APP.l(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(k)&&d.setAttribute("icon",k);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.T.g(m|0));q===!1&&d.setAttribute("dismissible","false");c.appendChild(d);zk(a,"x-notification-center-push",new $APP.Q(null,2,[$APP.Bh,e,$APP.zg,c.querySelectorAll("x-alert").length],null));return e}return null},Ek=function(a){Object.defineProperty(a,
7
+ "position",{get:function(){return vk(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return wk(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.T.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.l(this,"__xNcRefs");
8
+ return $APP.n(b)?$APP.l(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},Gk=function(){var a=class extends HTMLElement{};a.observedAttributes=Fk;a.prototype.connectedCallback=function(){xk(this);Bk(this);Ak(this);yk(this);return null};a.prototype.disconnectedCallback=function(){Bk(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.C.h(b,"position")?yk(this):$APP.C.h(b,"max")&&(this.__xNcMax=wk(this.getAttribute("max")));return null};Ek(a.prototype);
9
+ a.prototype.push=function(b){return Dk(this,b)};a.prototype.clear=function(){var b=xk(this);b=$APP.u($APP.dc($APP.l(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.D(null,e).remove(),e+=1;else if(b=$APP.u(b))c=b,$APP.uc(c)?(b=$APP.mb(c),e=$APP.nb(c),c=b,d=$APP.B(b),b=e):($APP.x(c).remove(),b=$APP.y(c),c=null,d=0),e=0;else break;return null};return a},Hk=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Gk());
10
+ return null};var Fk=["position","max"],uk=new $APP.S(null,new $APP.Q(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
11
+ $APP.sd(["x-notification-center-push",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Bh,$APP.X,$APP.zg,$APP.zh],null),$APP.ni,!1],null),"x-notification-center-dismiss",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,5,[$APP.Bh,$APP.X,$APP.Z,$APP.X,$APP.qh,$APP.X,$APP.Fh,$APP.X,$APP.zg,$APP.zh],null),$APP.ni,!1],null),"x-notification-center-empty",new $APP.Q(null,2,[$APP.Y,$APP.td,$APP.ni,!1],null)]);var Ck={v:0};$APP.ja("baredom.exports.x_notification_center.init",Hk);export const init=Hk;
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Zv=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Fc($APP.Ba,$APP.vg,0<b.length?new $APP.Ib(b.slice(0),0,null):null)},$v=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},gw=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
- var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.P(null,2,[aw,g,bw,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
- k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.P(null,2,[aw,h,bw,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
- d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(aw.g(g));e.appendChild(aw.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.P(null,6,[$APP.mh,d,$APP.lh,e,cw,aw.g(g),dw,bw.g(g),ew,aw.g(h),fw,bw.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},hw=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.S.g(a));e.setAttribute("part",
6
- "button button-page");e.setAttribute("aria-label","Page "+$APP.S.g(a));e.setAttribute("data-page",""+$APP.S.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.S.g(a);d.appendChild(e);return d},iw=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
- "…";a.appendChild(b);return a},uw=function(a){a=new $APP.P(null,7,[jw,a.getAttribute("page"),kw,a.getAttribute("total-pages"),lw,a.getAttribute("sibling-count"),ow,a.getAttribute("boundary-count"),$APP.fi,a.getAttribute("size"),$APP.Yh,a.hasAttribute("disabled"),$APP.ch,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.I(b,jw),d=$APP.I(b,kw),e=$APP.I(b,lw),g=$APP.I(b,ow),h=$APP.I(b,$APP.fi);a=$APP.I(b,$APP.Yh);b=$APP.I(b,$APP.ch);d=$v(d);c=$APP.kg.h(1,$APP.lg.h($v(c),d));if(typeof e==="string"){e=
8
- parseInt(e,10);var k=isFinite(e);e=$APP.n($APP.n(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.n($APP.n(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.Cc(pw,h)?h:"md";return new $APP.P(null,7,[qw,c,rw,d,sw,g,tw,e,$APP.Ag,h,$APP.wi,$APP.J(a),$APP.W,$APP.n(b)?b:"Pagination"],null)},xw=function(a){var b=gw(a),c=$APP.lh.g(b),d=$APP.mh.g(b),e=dw.g(b),g=fw.g(b),h=cw.g(b);b=ew.g(b);var k=uw(a),m=$APP.M(k),q=$APP.I(m,qw),r=$APP.I(m,
9
- rw),v=$APP.I(m,sw),w=$APP.I(m,tw),z=$APP.I(m,$APP.Ag);m=$APP.I(m,$APP.W);a:if(r<=0)r=$APP.Ld;else{var A=$APP.lg.h(w,r);w=$APP.kg.h(r-w- -1,1);var C=$APP.kg.h(1,q-v);v=$APP.lg.h(r,q+v);r=$APP.Be.h($APP.Be.h($APP.Be.h(Zv(),$APP.Cf(1,A+1)),$APP.Cf(w,r+1)),$APP.Cf(C,v+1));r=$APP.be(r);C=$APP.Ld;for(v=0;;){if(v>=$APP.B(r)){r=C;break a}A=$APP.cc(r,v);var F=w=v>0?$APP.cc(r,v-1):null;w=$APP.n($APP.n(F)?A>w+1:F)?$APP.ff.h(C,new $APP.P(null,1,[$APP.Z,vw],null)):C;A=$APP.ff.h(w,new $APP.P(null,2,[$APP.Z,qw,
10
- ww,A],null));v+=1;C=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",z);d=$APP.M(k);a=$APP.I(d,qw);d=$APP.I(d,$APP.wi);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(k);e=$APP.I(d,qw);a=$APP.I(d,rw);d=$APP.I(d,$APP.wi);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(r);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.E.h(vw,$APP.Z.g(d))?c.appendChild(iw()):c.appendChild(hw(ww.g(d),
11
- $APP.E.h(ww.g(d),q),$APP.wi.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.yc(h)?(g=$APP.ob(h),a=$APP.pb(h),h=g,e=$APP.B(g),g=a):(g=$APP.x(h),$APP.E.h(vw,$APP.Z.g(g))?c.appendChild(iw()):c.appendChild(hw(ww.g(g),$APP.E.h(ww.g(g),q),$APP.wi.g(k))),g=$APP.y(h),h=null,e=0),a=0;else break;c.appendChild(b)},yw=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},zw=function(a,b){a:{b=b.composedPath();for(var c=b.length,d=0;;)if(d<c){var e=
12
- b[d];if($APP.E.h("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.p(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=dw.g(d);d=fw.g(d);e=b.getAttribute("data-page");if(b===c)return c=uw(a),b=qw.g(c),b>1?yw(a,b-1):null;if(b===d)return c=uw(a),b=qw.g(c),c=rw.g(c),b<c?yw(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?yw(a,b):null}return null},Aw=function(a){function b(d){return zw(a,d)}var c=gw(a);$APP.lh.g(c).addEventListener("click",
13
- b);$APP.ma(a,"__xPaginationHandlers",{click:b})},Bw=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.lh.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},Cw=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,
14
- configurable:!0})},Dw=function(a,b,c){Object.defineProperty(a,b,{get:function(){return $v(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},Ew=function(a){Dw(a,"page","page");Dw(a,"total-pages","total-pages");Dw(a,"sibling-count","sibling-count");Dw(a,"boundary-count","boundary-count");Cw(a)},Gw=function(){var a=class extends HTMLElement{};a.observedAttributes=Fw;a.prototype.connectedCallback=function(){gw(this);
15
- Bw(this);Aw(this);xw(this);return null};a.prototype.disconnectedCallback=function(){Bw(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&xw(this);return null};Ew(a.prototype);return a},Hw=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",Gw());return null},kw=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),fw=new $APP.K(null,"next-btn","next-btn",-286265938),cw=new $APP.K(null,"prev-li","prev-li",940258334),
16
- tw=new $APP.K(null,"boundary-count","boundary-count",1637925987),jw=new $APP.K(null,"page-raw","page-raw",-1198808870),aw=new $APP.K(null,"li","li",723558921),dw=new $APP.K(null,"prev-btn","prev-btn",-352689882),vw=new $APP.K(null,"ellipsis","ellipsis",998505738),ww=new $APP.K(null,"n","n",562130025),ow=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),rw=new $APP.K(null,"total-pages","total-pages",685894112),qw=new $APP.K(null,"page","page",849072397),ew=new $APP.K(null,"next-li",
17
- "next-li",648524823),lw=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),bw=new $APP.K(null,"btn","btn",1978294651),sw=new $APP.K(null,"sibling-count","sibling-count",1756034573);var Fw="page total-pages sibling-count boundary-count size disabled label".split(" "),pw=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ka("baredom.exports.x_pagination.init",Hw);export const init=Hw;
2
+ var Xv=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Bc($APP.za,$APP.og,0<b.length?new $APP.Fb(b.slice(0),0,null):null)},Yv=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},ew=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
+ var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.Q(null,2,[Zv,g,$v,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
+ k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.Q(null,2,[Zv,h,$v,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
+ d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(Zv.g(g));e.appendChild(Zv.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.Q(null,6,[$APP.fh,d,$APP.eh,e,aw,Zv.g(g),bw,$v.g(g),cw,Zv.g(h),dw,$v.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},fw=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.T.g(a));e.setAttribute("part",
6
+ "button button-page");e.setAttribute("aria-label","Page "+$APP.T.g(a));e.setAttribute("data-page",""+$APP.T.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.T.g(a);d.appendChild(e);return d},gw=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
+ "…";a.appendChild(b);return a},sw=function(a){a=new $APP.Q(null,7,[hw,a.getAttribute("page"),iw,a.getAttribute("total-pages"),jw,a.getAttribute("sibling-count"),kw,a.getAttribute("boundary-count"),$APP.$h,a.getAttribute("size"),$APP.Sh,a.hasAttribute("disabled"),$APP.Wg,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.I(b,hw),d=$APP.I(b,iw),e=$APP.I(b,jw),g=$APP.I(b,kw),h=$APP.I(b,$APP.$h);a=$APP.I(b,$APP.Sh);b=$APP.I(b,$APP.Wg);d=Yv(d);c=$APP.dg.h(1,$APP.eg.h(Yv(c),d));if(typeof e==="string"){e=
8
+ parseInt(e,10);var k=isFinite(e);e=$APP.n($APP.n(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.n($APP.n(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.yc(lw,h)?h:"md";return new $APP.Q(null,7,[mw,c,nw,d,qw,g,rw,e,$APP.sg,h,$APP.pi,$APP.K(a),$APP.W,$APP.n(b)?b:"Pagination"],null)},vw=function(a){var b=ew(a),c=$APP.eh.g(b),d=$APP.fh.g(b),e=bw.g(b),g=dw.g(b),h=aw.g(b);b=cw.g(b);var k=sw(a),m=$APP.N(k),q=$APP.I(m,mw),r=$APP.I(m,
9
+ nw),v=$APP.I(m,qw),w=$APP.I(m,rw),z=$APP.I(m,$APP.sg);m=$APP.I(m,$APP.W);a:if(r<=0)r=$APP.Fd;else{var A=$APP.eg.h(w,r);w=$APP.dg.h(r-w- -1,1);var D=$APP.dg.h(1,q-v);v=$APP.eg.h(r,q+v);r=$APP.ve.h($APP.ve.h($APP.ve.h(Xv(),$APP.wf(1,A+1)),$APP.wf(w,r+1)),$APP.wf(D,v+1));r=$APP.Wd(r);D=$APP.Fd;for(v=0;;){if(v>=$APP.B(r)){r=D;break a}A=$APP.$b(r,v);var G=w=v>0?$APP.$b(r,v-1):null;w=$APP.n($APP.n(G)?A>w+1:G)?$APP.$e.h(D,new $APP.Q(null,1,[$APP.Z,tw],null)):D;A=$APP.$e.h(w,new $APP.Q(null,2,[$APP.Z,mw,
10
+ uw,A],null));v+=1;D=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",z);d=$APP.N(k);a=$APP.I(d,mw);d=$APP.I(d,$APP.pi);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.N(k);e=$APP.I(d,mw);a=$APP.I(d,nw);d=$APP.I(d,$APP.pi);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(r);h=null;for(a=e=0;;)if(a<e)d=h.D(null,a),$APP.C.h(tw,$APP.Z.g(d))?c.appendChild(gw()):c.appendChild(fw(uw.g(d),
11
+ $APP.C.h(uw.g(d),q),$APP.pi.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.uc(h)?(g=$APP.mb(h),a=$APP.nb(h),h=g,e=$APP.B(g),g=a):(g=$APP.x(h),$APP.C.h(tw,$APP.Z.g(g))?c.appendChild(gw()):c.appendChild(fw(uw.g(g),$APP.C.h(uw.g(g),q),$APP.pi.g(k))),g=$APP.y(h),h=null,e=0),a=0;else break;c.appendChild(b)},ww=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},xw=function(a,b){a:{b=b.composedPath();for(var c=b.length,d=0;;)if(d<c){var e=
12
+ b[d];if($APP.C.h("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.p(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=bw.g(d);d=dw.g(d);e=b.getAttribute("data-page");if(b===c)return c=sw(a),b=mw.g(c),b>1?ww(a,b-1):null;if(b===d)return c=sw(a),b=mw.g(c),c=nw.g(c),b<c?ww(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?ww(a,b):null}return null},yw=function(a){function b(d){return xw(a,d)}var c=ew(a);$APP.eh.g(c).addEventListener("click",
13
+ b);$APP.la(a,"__xPaginationHandlers",{click:b})},zw=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.eh.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},Aw=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,
14
+ configurable:!0})},Bw=function(a,b,c){Object.defineProperty(a,b,{get:function(){return Yv(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},Cw=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.n(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.T.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},Dw=function(a){Bw(a,"page",
15
+ "page");Bw(a,"total-pages","total-pages");Bw(a,"sibling-count","sibling-count");Bw(a,"boundary-count","boundary-count");Cw(a,"size","size","md");Aw(a);Cw(a,"label","label","Pagination")},Fw=function(){var a=class extends HTMLElement{};a.observedAttributes=Ew;a.prototype.connectedCallback=function(){ew(this);zw(this);yw(this);vw(this);return null};a.prototype.disconnectedCallback=function(){zw(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&vw(this);return null};
16
+ Dw(a.prototype);return a},Gw=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",Fw());return null},iw=new $APP.M(null,"total-pages-raw","total-pages-raw",430880208),dw=new $APP.M(null,"next-btn","next-btn",-286265938),aw=new $APP.M(null,"prev-li","prev-li",940258334),rw=new $APP.M(null,"boundary-count","boundary-count",1637925987),hw=new $APP.M(null,"page-raw","page-raw",-1198808870),Zv=new $APP.M(null,"li","li",723558921),bw=new $APP.M(null,"prev-btn","prev-btn",
17
+ -352689882),tw=new $APP.M(null,"ellipsis","ellipsis",998505738),uw=new $APP.M(null,"n","n",562130025),kw=new $APP.M(null,"boundary-count-raw","boundary-count-raw",410083250),nw=new $APP.M(null,"total-pages","total-pages",685894112),mw=new $APP.M(null,"page","page",849072397),cw=new $APP.M(null,"next-li","next-li",648524823),jw=new $APP.M(null,"sibling-count-raw","sibling-count-raw",-620117200),$v=new $APP.M(null,"btn","btn",1978294651),qw=new $APP.M(null,"sibling-count","sibling-count",1756034573);var Ew="page total-pages sibling-count boundary-count size disabled label".split(" "),lw=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ja("baredom.exports.x_pagination.init",Gw);export const init=Gw;
package/dist/x-popover.js CHANGED
@@ -1,13 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Km=function(a){return $APP.Cc(Jm,a)?a:"bottom-start"},Lm=function(a){return document.createElement(a)},Mm=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Nm=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.l(b,"panel"),d=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");var e=a.hasAttribute("open"),g=a.hasAttribute("no-close"),h=function(){var q=a.getAttribute("heading");return $APP.n(q)?q:""}(),k=function(){var q=a.getAttribute("close-label");return $APP.n(q)?
3
- q:"Close"}(),m=Km(a.getAttribute("placement"));c.setAttribute("data-placement",m);Mm(c,"inert",$APP.p(e));$APP.N(h,"")?c.setAttribute("aria-labelledby","popover-heading"):c.removeAttribute("aria-labelledby");d.textContent=h;b.setAttribute("aria-label",k);return Mm(b,"hidden",g)}return null},Om=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},Pm=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",
4
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Qm=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&$APP.p(a.hasAttribute("open"))&&Om(a,{open:!0,source:b})?(a.setAttribute("open",""),Pm(a,{open:!0})):null},Rm=function(a,b){var c=$APP.p(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&Om(a,{open:!1,source:b})?(a.removeAttribute("open"),Pm(a,{open:!1})):null},Sm=function(a,b){return $APP.n(a.hasAttribute("open"))?Rm(a,b):Qm(a,b)},Tm=function(a){var b=$APP.l(a,"__xPopoverHandlers");
5
- if($APP.n(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){return $APP.n(a.hasAttribute("open"))?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Um=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Vm=function(a){return{triggerClick:function(){return Sm(a,
6
- "pointer")},closeBtnClick:function(){return Rm(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?Rm(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.hc(b.composedPath()),b=$APP.Ad(function(c){return c===a},b),$APP.n(b)?null:Rm(a,"outside-click")):null},docKeydown:function(b){b=$APP.E.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Rm(a,"escape"):null}}},Wm=function(a){var b=
7
- $APP.l(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.l(b,"closeBtn");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"))}}},Xm=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Mm(this,c,$APP.J(d))}})},Ym=function(a,b,c){Object.defineProperty(a,
8
- b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},$m=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Zm}});Xm(b,"open","open");Xm(b,"disabled","disabled");Xm(b,"noClose","no-close");Ym(b,"placement","placement");Ym(b,"heading","heading");Ym(b,"closeLabel",
9
- "close-label");b.show=function(){return Qm(this,"programmatic")};b.hide=function(){return Rm(this,"programmatic")};b.toggle=function(){return Sm(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Lm("style"),e=Lm("span"),g=Lm("slot"),h=Lm("div"),k=Lm("div"),m=Lm("div"),q=Lm("span"),r=Lm("button"),v=Lm("div"),w=Lm("slot"),z=Lm("div"),A=Lm("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter]:not(:has(slot[name\x3dfooter] \x3e *)){display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
2
+ var Gm=function(a){return document.createElement(a)},Hm=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Om=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){a=new $APP.Q(null,6,[$APP.jh,a.hasAttribute("open"),$APP.Sh,a.hasAttribute("disabled"),Im,a.hasAttribute("no-close"),Jm,a.getAttribute("heading"),$APP.Yi,a.getAttribute("placement"),Km,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.I(c,$APP.jh),e=$APP.I(c,$APP.Sh),g=$APP.I(c,Im),h=$APP.I(c,Jm);
3
+ a=$APP.I(c,$APP.Yi);c=$APP.I(c,Km);d=$APP.K(d);e=$APP.K(e);g=$APP.K(g);h=$APP.n(h)?h:"";c=$APP.n(c)?c:"Close";a=$APP.yc(Lm,a)?a:"bottom-start";e=$APP.N(new $APP.Q(null,6,[$APP.Hi,d,$APP.V,e,Mm,g,$APP.Eh,h,Nm,c,$APP.ri,a],null));d=$APP.I(e,$APP.Hi);a=$APP.I(e,Mm);h=$APP.I(e,$APP.Eh);c=$APP.I(e,Nm);g=$APP.I(e,$APP.ri);var k=$APP.l(b,"panel");e=$APP.l(b,"header");var m=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");k.setAttribute("data-placement",g);Hm(k,"inert",$APP.p(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
+ "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);Hm(b,"hidden",a);b=$APP.C.h(h,"");return Hm(e,"hidden",b?a:b)}return null},Pm=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},Qm=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Rm=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&
5
+ $APP.p(a.hasAttribute("open"))&&Pm(a,{open:!0,source:b})?(a.setAttribute("open",""),Qm(a,{open:!0})):null},Sm=function(a,b){var c=$APP.p(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&Pm(a,{open:!1,source:b})?(a.removeAttribute("open"),Qm(a,{open:!1})):null},Tm=function(a,b){return $APP.n(a.hasAttribute("open"))?Sm(a,b):Rm(a,b)},Um=function(a){var b=$APP.l(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){var e=
6
+ a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Vm=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Wm=function(a){return{triggerClick:function(){return Tm(a,"pointer")},closeBtnClick:function(){return Sm(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?
7
+ (b=b.relatedTarget,b==null||$APP.p(a.contains(b))?Sm(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.ec(b.composedPath()),b=$APP.xd(function(c){return c===a},b),$APP.n(b)?null:Sm(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Sm(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.n(b)?Hm($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
+ 0)):null}}},Xm=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.l(b,"closeBtn"),e=$APP.l(b,"footerSlot");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.l(c,"footerSlotchange"))}}},Ym=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
+ get:function(){return this.hasAttribute(c)},set:function(d){return Hm(this,c,$APP.K(d))}})},Zm=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},an=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return $m}});Ym(b,"open","open");
10
+ Ym(b,"disabled","disabled");Ym(b,"noClose","no-close");Zm(b,"placement","placement");Zm(b,"heading","heading");Zm(b,"closeLabel","close-label");b.show=function(){return Rm(this,"programmatic")};b.hide=function(){return Sm(this,"programmatic")};b.toggle=function(){return Tm(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Gm("style"),e=Gm("span"),g=Gm("slot"),h=Gm("div"),k=Gm("div"),m=Gm("div"),q=Gm("span"),r=Gm("button"),
11
+ v=Gm("div"),w=Gm("slot"),z=Gm("div"),A=Gm("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
10
12
  e.setAttribute("part","trigger");g.setAttribute("name","trigger");h.setAttribute("part","panel");h.setAttribute("role","dialog");h.setAttribute("inert","");h.setAttribute("data-placement","bottom-start");k.setAttribute("part","arrow");k.setAttribute("aria-hidden","true");m.setAttribute("part","header");q.setAttribute("part","heading");q.setAttribute("id","popover-heading");r.setAttribute("part","close-button");r.setAttribute("type","button");r.setAttribute("aria-label","Close");r.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
11
- v.setAttribute("part","body");z.setAttribute("part","footer");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(q);m.appendChild(r);v.appendChild(w);z.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(v);h.appendChild(z);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,heading:q,closeBtn:r,body:v,footer:z}}Wm(this);Um(this);this.__xPopoverHandlers=Vm(this);c=$APP.l(this,"__xPopoverRefs");$APP.n(c)&&(d=$APP.l(this,"__xPopoverHandlers"),
12
- $APP.n(d)&&(e=$APP.l(c,"closeBtn"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout"))));$APP.n(this.hasAttribute("open"))&&Tm(this);return Nm(this)};b.disconnectedCallback=function(){Wm(this);return Um(this)};b.attributeChangedCallback=function(c){$APP.n($APP.l(this,"__xPopoverRefs"))?(Nm(this),c=$APP.E.h(c,"open")?$APP.n(this.hasAttribute("open"))?Tm(this):Um(this):
13
- null):c=null;return c};return a},an=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",$m())};var Jm=new $APP.R(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Zm="open placement heading close-label no-close disabled".split(" ");$APP.wd(["x-popover-toggle",new $APP.P(null,2,[$APP.ui,!0,$APP.Y,new $APP.P(null,2,[$APP.qi,$APP.Ji,$APP.Bh,$APP.X],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.ui,!1,$APP.Y,new $APP.P(null,1,[$APP.qi,$APP.Ji],null)],null)]);$APP.ka("baredom.exports.x_popover.init",an);export const init=an;
13
+ v.setAttribute("part","body");z.setAttribute("part","footer");z.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(q);m.appendChild(r);v.appendChild(w);z.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(v);h.appendChild(z);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:q,closeBtn:r,body:v,footer:z,footerSlot:A}}Xm(this);Vm(this);this.__xPopoverHandlers=Wm(this);c=$APP.l(this,"__xPopoverRefs");
14
+ $APP.n(c)&&(d=$APP.l(this,"__xPopoverHandlers"),$APP.n(d)&&(e=$APP.l(c,"closeBtn"),g=$APP.l(c,"footerSlot"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout")),g.addEventListener("slotchange",$APP.l(d,"footerSlotchange"))));$APP.n(this.hasAttribute("open"))&&Um(this);return Om(this)};b.disconnectedCallback=function(){Xm(this);return Vm(this)};b.attributeChangedCallback=
15
+ function(c){$APP.n($APP.l(this,"__xPopoverRefs"))?(Om(this),c=$APP.C.h(c,"open")?$APP.n(this.hasAttribute("open"))?Um(this):Vm(this):null):c=null;return c};return a},bn=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",an())},Nm=new $APP.M(null,"close-label","close-label",-1088385889),Mm=new $APP.M(null,"no-close?","no-close?",1842227643),Km=new $APP.M(null,"close-label-raw","close-label-raw",798572883),Im=new $APP.M(null,"no-close-present?","no-close-present?",
16
+ -154717274),Jm=new $APP.M(null,"heading-raw","heading-raw",116296555);var Lm=new $APP.S(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),$m="open placement heading close-label no-close disabled".split(" ");$APP.sd(["x-popover-toggle",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,2,[$APP.ji,$APP.Di,$APP.vh,$APP.X],null)],null),"x-popover-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,1,[$APP.ji,$APP.Di],null)],null)]);$APP.ja("baredom.exports.x_popover.init",bn);export const init=bn;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var iD=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},lD=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.eh,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Yi,a.hasAttribute("show-value"),$APP.Ai,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.eh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Vg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Yi);
3
- c=$APP.I(c,$APP.Ai);d=iD(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(iD(e,0),0),d);g=typeof g==="string"&&$APP.Cc(jD,g)?g:"default";h=typeof h==="string"&&$APP.Cc(kD,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.cf([$APP.Vg,$APP.Yi,$APP.T,$APP.Ag,$APP.Ai,$APP.Ui,$APP.eh,$APP.W,$APP.Wh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Wh);k=$APP.I(q,$APP.Vg);d=$APP.I(q,$APP.Yi);
4
- h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Ui);g=$APP.I(q,$APP.Ai);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.eh);var r=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(g)&&h>=q,C=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.S.g(100));v.setAttribute("stroke-dashoffset",
5
- ""+$APP.S.g(C));w.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.S.g(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));
6
- m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(z)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCircleCompleted=$APP.J(A)},mD=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=
7
- this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?
8
- this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},oD=function(){var a=class extends HTMLElement{};a.observedAttributes=nD;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg","circle"),
2
+ var sD=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},vD=function(a){var b=new $APP.Q(null,7,[$APP.U,a.getAttribute("value"),$APP.Yg,a.getAttribute("max"),$APP.Ng,a.getAttribute("variant"),$APP.sg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Si,a.hasAttribute("show-value"),$APP.ti,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.I(c,$APP.Yg),e=$APP.I(c,$APP.U),g=$APP.I(c,$APP.Ng),h=$APP.I(c,$APP.sg);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Si);
3
+ c=$APP.I(c,$APP.ti);d=sD(d,100);d=d>0?d:100;e=$APP.eg.h($APP.dg.h(sD(e,0),0),d);g=typeof g==="string"&&$APP.yc(tD,g)?g:"default";h=typeof h==="string"&&$APP.yc(uD,h)?h:"md";c=$APP.K(c);k=$APP.K(k);var m=c?50:$APP.eg.h($APP.dg.h(e/d*100,0),100);b=$APP.Xe([$APP.Ng,$APP.Si,$APP.U,$APP.sg,$APP.ti,$APP.Oi,$APP.Yg,$APP.W,$APP.Qh],[g,k,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var q=$APP.N(b);b=$APP.I(q,$APP.Qh);k=$APP.I(q,$APP.Ng);d=$APP.I(q,$APP.Si);
4
+ h=$APP.I(q,$APP.U);c=$APP.I(q,$APP.sg);e=$APP.I(q,$APP.Oi);g=$APP.I(q,$APP.ti);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.Yg);var r=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(g)&&h>=q,D=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.T.g(100));v.setAttribute("stroke-dashoffset",
5
+ ""+$APP.T.g(D));w.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.T.g(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));
6
+ m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(z)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCircleCompleted=$APP.K(A)},wD=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=
7
+ this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?
8
+ this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},yD=function(){var a=class extends HTMLElement{};a.observedAttributes=xD;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg","circle"),
9
9
  h=document.createElementNS("http://www.w3.org/2000/svg","circle"),k=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:#3b82f6;--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:0.3s;}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:#ef4444;}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
10
10
  d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");g.setAttribute("part","track");g.setAttribute("cx","18");g.setAttribute("cy","18");g.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");k.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);k.appendChild(m);
11
- d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}lD(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xProgressCircleInit"))&&lD(this);return null};mD(a.prototype);return a},pD=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
- oD());return null};var jD=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),kD=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),nD="value max variant size label show-value indeterminate".split(" ");$APP.wd(["x-progress-circle-complete",new $APP.P(null,1,[$APP.Y,new $APP.P(null,2,[$APP.T,$APP.Fh,$APP.eh,$APP.Fh],null)],null)]);$APP.ka("baredom.exports.x_progress_circle.init",pD);export const init=pD;
11
+ d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}vD(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xProgressCircleInit"))&&vD(this);return null};wD(a.prototype);return a},zD=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ yD());return null};var tD=new $APP.S(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),uD=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),xD="value max variant size label show-value indeterminate".split(" ");$APP.sd(["x-progress-circle-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.zh,$APP.Yg,$APP.zh],null)],null)]);$APP.ja("baredom.exports.x_progress_circle.init",zD);export const init=zD;
@@ -1,11 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var JH=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},MH=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.eh,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Yi,a.hasAttribute("show-value"),$APP.Ai,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.eh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Vg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Yi);
3
- c=$APP.I(c,$APP.Ai);d=JH(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(JH(e,0),0),d);g=typeof g==="string"&&$APP.Cc(KH,g)?g:"default";h=typeof h==="string"&&$APP.Cc(LH,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.cf([$APP.Vg,$APP.Yi,$APP.T,$APP.Ag,$APP.Ai,$APP.Ui,$APP.eh,$APP.W,$APP.Wh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Wh);k=$APP.I(q,$APP.Vg);d=$APP.I(q,$APP.Yi);
4
- h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Ui);g=$APP.I(q,$APP.Ai);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.eh);var r=$APP.l(a,"__xProgressBase"),v=$APP.l(a,"__xProgressHeader"),w=$APP.l(a,"__xProgressFill"),z=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var C=(C=m!=null)?C:d;var F=$APP.l(a,"__xProgressCompleted"),D=$APP.p(g)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");w.style.width=$APP.n(g)?
5
- "40%":""+$APP.S.g(b.toFixed(2))+"%";v.style.display=$APP.n(C)?"flex":"none";z.textContent=$APP.n(m)?m:"";z.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",
6
- ""+$APP.S.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");D&&$APP.p(F)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCompleted=$APP.J(D)},NH=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,
7
- configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},PH=function(){var a=class extends HTMLElement{};a.observedAttributes=OH;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),
9
- m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:9999px;--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:#3b82f6;--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:#ef4444;}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
10
- d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}MH(this);return null};a.prototype.disconnectedCallback=
11
- function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xProgressInit"))&&MH(this);return null};NH(a.prototype);return a},QH=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",PH());return null};var KH=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),LH=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),OH="value max variant size label show-value indeterminate".split(" ");$APP.wd(["x-progress-complete",new $APP.P(null,1,[$APP.Y,new $APP.P(null,2,[$APP.T,$APP.Fh,$APP.eh,$APP.Fh],null)],null)]);$APP.ka("baredom.exports.x_progress.init",QH);export const init=QH;
2
+ var FH=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},IH=function(a){var b=new $APP.Q(null,7,[$APP.U,a.getAttribute("value"),$APP.Yg,a.getAttribute("max"),$APP.Ng,a.getAttribute("variant"),$APP.sg,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Si,a.hasAttribute("show-value"),$APP.ti,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.I(c,$APP.Yg),e=$APP.I(c,$APP.U),g=$APP.I(c,$APP.Ng),h=$APP.I(c,$APP.sg);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Si);
3
+ c=$APP.I(c,$APP.ti);d=FH(d,100);d=d>0?d:100;e=$APP.eg.h($APP.dg.h(FH(e,0),0),d);g=typeof g==="string"&&$APP.yc(GH,g)?g:"default";h=typeof h==="string"&&$APP.yc(HH,h)?h:"md";c=$APP.K(c);k=$APP.K(k);var m=c?50:$APP.eg.h($APP.dg.h(e/d*100,0),100);b=$APP.Xe([$APP.Ng,$APP.Si,$APP.U,$APP.sg,$APP.ti,$APP.Oi,$APP.Yg,$APP.W,$APP.Qh],[g,k,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var q=$APP.N(b);b=$APP.I(q,$APP.Qh);k=$APP.I(q,$APP.Ng);d=$APP.I(q,$APP.Si);
4
+ h=$APP.I(q,$APP.U);c=$APP.I(q,$APP.sg);e=$APP.I(q,$APP.Oi);g=$APP.I(q,$APP.ti);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.Yg);var r=$APP.l(a,"__xProgressBase"),v=$APP.l(a,"__xProgressHeader"),w=$APP.l(a,"__xProgressFill"),z=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var D=(D=m!=null)?D:d;var G=$APP.l(a,"__xProgressCompleted"),J=$APP.p(g)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");w.style.width=$APP.n(g)?
5
+ "40%":""+$APP.T.g(b.toFixed(2))+"%";v.style.display=$APP.n(D)?"flex":"none";z.textContent=$APP.n(m)?m:"";z.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.T.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),a.setAttribute("aria-valuemax",
6
+ ""+$APP.T.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");J&&$APP.p(G)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCompleted=$APP.K(J)},JH=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.T.g(b))},enumerable:!0,
7
+ configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.T.g(b))},
9
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},LH=function(){var a=class extends HTMLElement{};a.observedAttributes=KH;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),
10
+ e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:9999px;--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:#3b82f6;--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:#ef4444;}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
11
+ d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}IH(this);return null};a.prototype.disconnectedCallback=
12
+ function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xProgressInit"))&&IH(this);return null};JH(a.prototype);return a},MH=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",LH());return null};var GH=new $APP.S(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),HH=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),KH="value max variant size label show-value indeterminate".split(" ");$APP.sd(["x-progress-complete",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.zh,$APP.Yg,$APP.zh],null)],null)]);$APP.ja("baredom.exports.x_progress.init",MH);export const init=MH;
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sn=function(a,b,c){return a.setAttribute(b,c)},tn=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},un=function(a){a=$APP.cf([$APP.Jh,$APP.Yh,$APP.Cg,$APP.Qg,$APP.Zh,$APP.ti,$APP.Ei,$APP.Ci,$APP.ii],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
- $APP.I(b,$APP.Ci);var c=$APP.I(b,$APP.ii),d=$APP.I(b,$APP.Jh),e=$APP.I(b,$APP.Yh),g=$APP.I(b,$APP.Cg),h=$APP.I(b,$APP.Qg),k=$APP.I(b,$APP.Zh),m=$APP.I(b,$APP.ti);b=$APP.I(b,$APP.Ei);k=$APP.J(k);g=$APP.J(g);return $APP.cf([$APP.ah,$APP.Wg,$APP.aj,$APP.ni,$APP.Ig,$APP.gi,$APP.T,$APP.Mi,$APP.Vi,$APP.$h,$APP.U],[g,k?"true":"false",$APP.J(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},vn=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=un(a);var d=$APP.U.g(b),
4
- e=$APP.ni.g(b);sn(c,"aria-checked",$APP.Wg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");sn(c,"aria-required",$APP.n($APP.ah.g(b))?"true":"false");sn(c,"aria-readonly",$APP.n($APP.aj.g(b))?"true":"false");var g=$APP.$h.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Mi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Vi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");tn(a,"data-checked",e);tn(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.T.g(b):null):null}return null},wn=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.E.h(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},xn=
6
- function(a){a=wn(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.l(e,"control"),d=$APP.n(b)?$APP.E.h(d,b)?0:-1:$APP.E.h(d,c)?0:-1,e.tabIndex=d):null})},yn=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},zn=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},An=function(a){var b=un(a),c=$APP.U.g(b),d=$APP.aj.g(b),e=$APP.ni.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.T.g(b);return yn(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),vn(a),wn(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),vn(g)):null}),xn(a),zn(a,{value:b,checked:!0})):null},Bn=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.n(a)?
8
- $APP.l(a,"control").focus():null},Cn=function(a){return function(b){var c=b.key,d=wn(a),e=d.length,g=d.indexOf(a);if($APP.E.h(c," ")||$APP.E.h(c,"Enter"))return b.preventDefault(),An(a);if($APP.E.h(c,"ArrowDown")||$APP.E.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Qc(g+1,e)],An(b),Bn(b)}else if($APP.E.h(c,"ArrowUp")||$APP.E.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Qc(g-1,e)],An(b),Bn(b);return null}},Dn=function(a){return function(){return An(a)}},En=function(a){var b=
9
- $APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Fn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return tn(this,c,$APP.J(d))}})},Gn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
- get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?sn(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},In=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Hn}});Fn(b,"checked","checked");Fn(b,"disabled","disabled");Fn(b,"readOnly","readonly");Fn(b,"required","required");Gn(b,"name","name");Gn(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,
2
+ var tn=function(a,b,c){return a.setAttribute(b,c)},un=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},vn=function(a){a=$APP.Xe([$APP.Dh,$APP.Sh,$APP.ug,$APP.Ig,$APP.Th,$APP.mi,$APP.yi,$APP.wi,$APP.ci],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
+ $APP.I(b,$APP.wi);var c=$APP.I(b,$APP.ci),d=$APP.I(b,$APP.Dh),e=$APP.I(b,$APP.Sh),g=$APP.I(b,$APP.ug),h=$APP.I(b,$APP.Ig),k=$APP.I(b,$APP.Th),m=$APP.I(b,$APP.mi);b=$APP.I(b,$APP.yi);k=$APP.K(k);g=$APP.K(g);return $APP.Xe([$APP.Tg,$APP.Og,$APP.Vi,$APP.hi,$APP.Ag,$APP.ai,$APP.U,$APP.Gi,$APP.Pi,$APP.Uh,$APP.V],[g,k?"true":"false",$APP.K(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.K(e)])},wn=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=vn(a);var d=$APP.V.g(b),
4
+ e=$APP.hi.g(b);tn(c,"aria-checked",$APP.Og.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");tn(c,"aria-required",$APP.n($APP.Tg.g(b))?"true":"false");tn(c,"aria-readonly",$APP.n($APP.Vi.g(b))?"true":"false");var g=$APP.Uh.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Gi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Pi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");un(a,"data-checked",e);un(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.U.g(b):null):null}return null},xn=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.O(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.C.h(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},yn=
6
+ function(a){a=xn(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.l(e,"control"),d=$APP.n(b)?$APP.C.h(d,b)?0:-1:$APP.C.h(d,c)?0:-1,e.tabIndex=d):null})},zn=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},An=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Bn=function(a){var b=vn(a),c=$APP.V.g(b),d=$APP.Vi.g(b),e=$APP.hi.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.U.g(b);return zn(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),wn(a),xn(a).forEach(function(g){var h=$APP.O(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),wn(g)):null}),yn(a),An(a,{value:b,checked:!0})):null},Cn=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.n(a)?
8
+ $APP.l(a,"control").focus():null},Dn=function(a){return function(b){var c=b.key,d=xn(a),e=d.length,g=d.indexOf(a);if($APP.C.h(c," ")||$APP.C.h(c,"Enter"))return b.preventDefault(),Bn(a);if($APP.C.h(c,"ArrowDown")||$APP.C.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Lc(g+1,e)],Bn(b),Cn(b)}else if($APP.C.h(c,"ArrowUp")||$APP.C.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Lc(g-1,e)],Bn(b),Cn(b);return null}},En=function(a){return function(){return Bn(a)}},Fn=function(a){var b=
9
+ $APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Gn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return un(this,c,$APP.K(d))}})},Hn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
+ get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?tn(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Jn=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return In}});Gn(b,"checked","checked");Gn(b,"disabled","disabled");Gn(b,"readOnly","readonly");Gn(b,"required","required");Hn(b,"name","name");Hn(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,
11
11
  "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:#6b7280;--x-radio-bg:#ffffff;--x-radio-checked-color:#2563eb;--x-radio-dot-size:6px;--x-radio-focus-ring:#60a5fa;--x-radio-disabled-opacity:0.45;--x-radio-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:#9ca3af;--x-radio-bg:#1f2937;--x-radio-checked-color:#3b82f6;--x-radio-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
12
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}En(this);c=$APP.l(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=Dn(this),e=Cn(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
- g);vn(this);return xn(this)};b.disconnectedCallback=function(){return En(this)};b.attributeChangedCallback=function(){return vn(this)};b.formDisabledCallback=function(c){tn(this,"disabled",$APP.J(c));return vn(this)};b.formResetCallback=function(){this.removeAttribute("checked");return vn(this)};return a},Jn=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",In())};var Hn="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-radio-change-request",new $APP.P(null,2,[$APP.ui,!0,$APP.Y,new $APP.P(null,3,[$APP.T,$APP.X,$APP.Bg,$APP.Ji,$APP.ei,$APP.Ji],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.ui,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.Qi,$APP.Ji],null)],null)]);$APP.ka("baredom.exports.x_radio.init",Jn);export const init=Jn;
12
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}Fn(this);c=$APP.l(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=En(this),e=Dn(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);wn(this);return yn(this)};b.disconnectedCallback=function(){return Fn(this)};b.attributeChangedCallback=function(){return wn(this)};b.formDisabledCallback=function(c){un(this,"disabled",$APP.K(c));return wn(this)};b.formResetCallback=function(){this.removeAttribute("checked");return wn(this)};return a},Kn=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",Jn())};var In="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.sd(["x-radio-change-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.tg,$APP.Di,$APP.Zh,$APP.Di],null)],null),"x-radio-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Ki,$APP.Di],null)],null)]);$APP.ja("baredom.exports.x_radio.init",Kn);export const init=Kn;