@vanelsas/baredom 0.1.2-alpha

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 (61) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE +21 -0
  3. package/README.md +444 -0
  4. package/dist/base.js +352 -0
  5. package/dist/x-alert.js +20 -0
  6. package/dist/x-avatar-group.js +12 -0
  7. package/dist/x-avatar.js +18 -0
  8. package/dist/x-badge.js +12 -0
  9. package/dist/x-breadcrumbs.js +15 -0
  10. package/dist/x-button.js +17 -0
  11. package/dist/x-cancel-dialogue.js +20 -0
  12. package/dist/x-card.js +8 -0
  13. package/dist/x-chart.js +45 -0
  14. package/dist/x-checkbox.js +12 -0
  15. package/dist/x-chip.js +10 -0
  16. package/dist/x-collapse.js +13 -0
  17. package/dist/x-command-palette.js +33 -0
  18. package/dist/x-container.js +7 -0
  19. package/dist/x-context-menu.js +20 -0
  20. package/dist/x-copy.js +26 -0
  21. package/dist/x-currency-field.js +22 -0
  22. package/dist/x-date-picker.js +37 -0
  23. package/dist/x-divider.js +11 -0
  24. package/dist/x-drawer.js +13 -0
  25. package/dist/x-dropdown.js +12 -0
  26. package/dist/x-fieldset.js +7 -0
  27. package/dist/x-file-download.js +9 -0
  28. package/dist/x-form-field.js +16 -0
  29. package/dist/x-form.js +11 -0
  30. package/dist/x-grid.js +8 -0
  31. package/dist/x-menu-item.js +11 -0
  32. package/dist/x-menu.js +13 -0
  33. package/dist/x-modal.js +14 -0
  34. package/dist/x-navbar.js +13 -0
  35. package/dist/x-notification-center.js +10 -0
  36. package/dist/x-pagination.js +17 -0
  37. package/dist/x-popover.js +13 -0
  38. package/dist/x-progress-circle.js +12 -0
  39. package/dist/x-progress.js +11 -0
  40. package/dist/x-radio.js +13 -0
  41. package/dist/x-search-field.js +17 -0
  42. package/dist/x-select.js +12 -0
  43. package/dist/x-sidebar.js +27 -0
  44. package/dist/x-skeleton.js +8 -0
  45. package/dist/x-slider.js +17 -0
  46. package/dist/x-spacer.js +6 -0
  47. package/dist/x-spinner.js +7 -0
  48. package/dist/x-stat.js +10 -0
  49. package/dist/x-stepper.js +17 -0
  50. package/dist/x-switch.js +12 -0
  51. package/dist/x-tab.js +9 -0
  52. package/dist/x-table-cell.js +26 -0
  53. package/dist/x-table-row.js +11 -0
  54. package/dist/x-table.js +16 -0
  55. package/dist/x-tabs.js +12 -0
  56. package/dist/x-text-area.js +20 -0
  57. package/dist/x-timeline-item.js +25 -0
  58. package/dist/x-timeline.js +10 -0
  59. package/dist/x-toast.js +26 -0
  60. package/dist/x-toaster.js +9 -0
  61. package/package.json +275 -0
@@ -0,0 +1,11 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var YC=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.T);var c=$APP.I(b,$APP.yi),d=$APP.I(b,$APP.Wg);b=$APP.I(b,$APP.Z);a=$APP.n(a)?a:"";c=$APP.J(c);d=$APP.n(d)?d:"";d=$APP.Cc(WC,d)?d:"";b=$APP.n(b)?b:"";b=$APP.Cc(XC,b)?b:"";return new $APP.P(null,4,[$APP.T,a,$APP.yi,c,$APP.Wg,d,$APP.Z,b],null)},ZC=function(a){return $APP.l(a,"__xMenuItemInit")===!0},$C=function(a){return new $APP.P(null,4,[$APP.T,a.getAttribute("value"),$APP.yi,a.hasAttribute("disabled"),$APP.Wg,a.getAttribute("variant"),$APP.Z,a.getAttribute("type")],
3
+ null)},aD=function(a){var b=a.getAttribute("value");return a.dispatchEvent(new CustomEvent("x-menu-item-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))},bD=function(a){var b=$APP.l(a,"__xMenuItemRefs");b=$APP.n(b)?$APP.l(b,"base"):null;var c=YC($C(a));if($APP.n(b)){if($APP.D.h($APP.Z.g(c),"divider"))return a.setAttribute("role","separator"),a.removeAttribute("tabindex"),a.removeAttribute("aria-disabled"),b.setAttribute("data-type","divider"),b.setAttribute("data-variant",""),b.setAttribute("data-disabled",
4
+ "false");a.setAttribute("role","menuitem");a.setAttribute("tabindex","-1");b.setAttribute("data-type","");b.setAttribute("data-variant",$APP.Wg.g(c));b.setAttribute("data-disabled",$APP.n($APP.yi.g(c))?"true":"false");return $APP.n($APP.yi.g(c))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")}return null},cD=function(a){function b(){return e.assignedNodes().length>0?a.setAttribute("has-icon",""):a.removeAttribute("has-icon")}function c(h){var k=h.key,m=YC($C(a));($APP.D.h(k,
5
+ "Enter")||$APP.D.h(k," "))&&$APP.p($APP.yi.g(m))&&$APP.N($APP.Z.g(m),"divider")?(h.preventDefault(),h=aD(a)):h=null;return h}function d(h){var k=YC($C(a));var m=$APP.yi.g(k);m=$APP.n(m)?m:$APP.D.h($APP.Z.g(k),"divider");$APP.n(m)&&h.preventDefault();return $APP.p($APP.yi.g(k))&&$APP.N($APP.Z.g(k),"divider")?aD(a):null}var e=$APP.l($APP.l(a,"__xMenuItemRefs"),"icon-slot"),f={};a.addEventListener("click",d);a.addEventListener("keydown",c);e.addEventListener("slotchange",b);f.click=d;f.keydown=c;f["icon-slotchange"]=
6
+ b;a.__xMenuItemHandlers=f},dD=function(a){Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,
7
+ "variant",{get:function(){return this.getAttribute("variant")},set:function(b){return $APP.n(b)?this.setAttribute("variant",b):this.removeAttribute("variant")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"type",{get:function(){return this.getAttribute("type")},set:function(b){return $APP.n(b)?this.setAttribute("type",b):this.removeAttribute("type")},configurable:!0,enumerable:!0})},fD=function(){var a=class extends HTMLElement{};a.observedAttributes=eD;a.prototype.connectedCallback=
8
+ function(){if(ZC(this)){cD(this);var b=bD(this)}else{if(!ZC(this)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style");b=document.createElement("div");var e=document.createElement("span"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("hr");d.textContent=":host{display:block;outline:none;color-scheme:light dark;--x-menu-item-color:#111827;--x-menu-item-hover-bg:#f3f4f6;--x-menu-item-focus-bg:#eff6ff;--x-menu-item-focus-color:#1d4ed8;--x-menu-item-disabled-opacity:0.45;--x-menu-item-danger-color:#dc2626;--x-menu-item-danger-hover-bg:#fef2f2;--x-menu-item-padding:8px 12px;--x-menu-item-border-radius:4px;--x-menu-item-font-size:0.9375rem;--x-menu-item-icon-gap:8px;--x-menu-item-divider-color:#e5e7eb;}@media (prefers-color-scheme:dark){:host{--x-menu-item-color:#f9fafb;--x-menu-item-hover-bg:#1f2937;--x-menu-item-focus-bg:#1e3a5f;--x-menu-item-focus-color:#60a5fa;--x-menu-item-danger-color:#f87171;--x-menu-item-danger-hover-bg:#2d1515;--x-menu-item-divider-color:#374151;}}.base{display:flex;align-items:center;gap:var(--x-menu-item-icon-gap);padding:var(--x-menu-item-padding);border-radius:var(--x-menu-item-border-radius);font-size:var(--x-menu-item-font-size);color:var(--x-menu-item-color);cursor:pointer;user-select:none;transition:background 100ms ease,color 100ms ease;}.base:hover{background:var(--x-menu-item-hover-bg);}:host(:focus) .base{background:var(--x-menu-item-focus-bg);color:var(--x-menu-item-focus-color);}.base[data-variant\x3d'danger']{color:var(--x-menu-item-danger-color);}.base[data-variant\x3d'danger']:hover{background:var(--x-menu-item-danger-hover-bg);}:host(:focus) .base[data-variant\x3d'danger']{background:var(--x-menu-item-danger-hover-bg);}.base[data-disabled\x3d'true']{opacity:var(--x-menu-item-disabled-opacity);cursor:default;pointer-events:none;}.base[data-type\x3d'divider']{padding:0;cursor:default;pointer-events:none;}.icon-span{display:none;flex-shrink:0;align-items:center;}:host([has-icon]) .icon-span{display:flex;}.divider-hr{display:none;}.base[data-type\x3d'divider'] .icon-span,.base[data-type\x3d'divider'] .label-span{display:none;}.base[data-type\x3d'divider'] .divider-hr{display:block;width:100%;border:none;border-top:1px solid var(--x-menu-item-divider-color);margin:4px 0;}@media (prefers-reduced-motion:reduce){.base{transition:none;}}";
9
+ b.setAttribute("part","base");b.className="base";e.setAttribute("part","icon");e.className="icon-span";f.setAttribute("name","icon");e.appendChild(f);h.className="label-span";h.appendChild(k);m.className="divider-hr";b.appendChild(e);b.appendChild(h);b.appendChild(m);c.appendChild(d);c.appendChild(b);c={};c.base=b;c["icon-span"]=e;c["icon-slot"]=f;this.__xMenuItemRefs=c;cD(this);this.__xMenuItemInit=!0}bD(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xMenuItemHandlers");
10
+ var c=$APP.l(this,"__xMenuItemRefs");if($APP.n(b)){var d=$APP.l(b,"keydown"),e=$APP.l(b,"icon-slotchange");c=$APP.n(c)?$APP.l(c,"icon-slot"):null;this.removeEventListener("click",$APP.l(b,"click"));this.removeEventListener("keydown",d);b=$APP.n(c)?c.removeEventListener("slotchange",e):null}else b=null;return b};a.prototype.attributeChangedCallback=function(){return ZC(this)?bD(this):null};dD(a);return a},gD=function(){return $APP.n(customElements.get("x-menu-item"))?null:customElements.define("x-menu-item",
11
+ fD())};var eD=["value","disabled","variant","type"],WC=new $APP.R(null,new $APP.P(null,2,["",null,"danger",null],null),null),XC=new $APP.R(null,new $APP.P(null,2,["",null,"divider",null],null),null);$APP.wd(["x-menu-item-select",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("app.exports.x_menu_item.init",gD);export const init=gD;
package/dist/x-menu.js ADDED
@@ -0,0 +1,13 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var hv=function(a){return $APP.l(a,"__xMenuInit")===!0},iv=function(a){a=a.querySelectorAll("x-menu-item");for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d];$APP.p(e.hasAttribute("disabled"))&&$APP.N(e.getAttribute("type"),"divider")&&b.push(e);d+=1}else break;return b},jv=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0}))},mv=function(a){$APP.n(a.hasAttribute("open"))||(a.setAttribute("open",""),jv(a,"x-menu-open",{}));if($APP.n(null)){a=iv(a);var b=a.length;
3
+ return b>0?$APP.D.h(null,kv)?a[0].focus():$APP.D.h(null,lv)?a[b-1].focus():null:null}return null},nv=function(a,b){$APP.n(a.hasAttribute("open"))&&(a.removeAttribute("open"),jv(a,"x-menu-close",{}));return $APP.n(b)?(a=$APP.l(a,"__xMenuRefs"),a=$APP.n(a)?$APP.l(a,"trigger-slot"):null,a=$APP.n(a)?a.assignedElements():null,a=$APP.n($APP.n(a)?a.length>0:a)?a[0]:null,$APP.n(a)?a.focus():null):null},ov=function(a,b){var c=b.composedPath();a=$APP.hc(a.assignedElements());return $APP.J($APP.Ad(function(d){return c.indexOf(d)>
4
+ -1},a))},pv=function(a,b){var c=b.key,d=a.hasAttribute("open");if($APP.D.h(c,"Escape"))return $APP.n(d)?(b.preventDefault(),nv(a,!0)):null;if($APP.D.h(c,"Tab"))return $APP.n(d)?nv(a,!1):null;if($APP.D.h(c,"ArrowDown")||$APP.D.h(c,"ArrowUp")){var e=iv(a),f=e.length;if(f>0){b.preventDefault();if($APP.n(d))return a=e.indexOf(document.activeElement),c=$APP.D.h(c,"ArrowDown")?a>=f-1?0:a<0?0:a+1:a<=0?f-1:a-1,e[c].focus();mv(a);return e[$APP.D.h(c,"ArrowDown")?0:f-1].focus()}}else if($APP.D.h(c,"Home")){if($APP.n(d)&&
5
+ (e=iv(a),e.length>0))return b.preventDefault(),e[0].focus()}else if($APP.D.h(c,"End")&&$APP.n(d)&&(e=iv(a),e.length>0))return b.preventDefault(),e[e.length-1].focus();return null},rv=function(a){var b=$APP.l(a,"__xMenuRefs");b=$APP.n(b)?$APP.l(b,"popup"):null;a=new $APP.P(null,3,[$APP.si,a.hasAttribute("open"),$APP.Ai,a.getAttribute("placement"),$APP.W,a.getAttribute("label")],null);a=$APP.M(a);var c=$APP.I(a,$APP.si),d=$APP.I(a,$APP.Ai);a=$APP.I(a,$APP.W);c=$APP.J(c);d=$APP.n(d)?d:"";d=$APP.Cc(qv,
6
+ d)?d:"bottom-start";a=new $APP.P(null,3,[$APP.si,c,$APP.Ai,d,$APP.W,$APP.n(a)?a:""],null);return $APP.n(b)?(b.setAttribute("data-placement",$APP.Ai.g(a)),a=$APP.W.g(a),$APP.n($APP.n(a)?$APP.N(a,""):a)?b.setAttribute("aria-label",a):b.removeAttribute("aria-label")):null},sv=function(a){function b(h){h.stopPropagation();h=h.detail.value;nv(a,!1);return jv(a,"x-menu-select",{value:$APP.n(h)?h:""})}function c(h){return pv(a,h)}function d(h){$APP.n(a.hasAttribute("open"))?(h=h.composedPath(),h=$APP.D.h(-1,
7
+ h.indexOf(a))?nv(a,!1):null):h=null;return h}function e(h){var k=$APP.l(a,"__xMenuRefs");k=$APP.n(k)?$APP.l(k,"trigger-slot"):null;return $APP.n($APP.n(k)?ov(k,h):k)?$APP.n(a.hasAttribute("open"))?nv(a,!0):mv(a):null}var f={};a.addEventListener("click",e);document.addEventListener("click",d,!0);a.addEventListener("keydown",c);a.addEventListener("x-menu-item-select",b);f.click=e;f["doc-click"]=d;f.keydown=c;f["item-select"]=b;a.__xMenuHandlers=f},tv=function(a){Object.defineProperty(a.prototype,"open",
8
+ {get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?this.setAttribute("open",""):this.removeAttribute("open")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"placement",{get:function(){return this.getAttribute("placement")},set:function(b){return $APP.n(b)?this.setAttribute("placement",b):this.removeAttribute("placement")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"label",{get:function(){return this.getAttribute("label")},
9
+ set:function(b){return $APP.n(b)?this.setAttribute("label",b):this.removeAttribute("label")},configurable:!0,enumerable:!0})},vv=function(){var a=class extends HTMLElement{};a.observedAttributes=uv;a.prototype.connectedCallback=function(){if(hv(this)){sv(this);var b=rv(this)}else{if(!hv(this)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style");b=document.createElement("div");var e=document.createElement("slot"),f=document.createElement("div"),h=document.createElement("slot");
10
+ d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-menu-bg:#ffffff;--x-menu-border:1px solid #e5e7eb;--x-menu-border-radius:8px;--x-menu-shadow:0 4px 16px rgba(0,0,0,0.12);--x-menu-min-width:160px;--x-menu-padding:4px;--x-menu-z-index:1000;}@media (prefers-color-scheme:dark){:host{--x-menu-bg:#1f2937;--x-menu-border:1px solid #374151;--x-menu-shadow:0 4px 16px rgba(0,0,0,0.4);}}.base{position:relative;display:inline-block;}.popup{display:none;position:absolute;background:var(--x-menu-bg);border:var(--x-menu-border);border-radius:var(--x-menu-border-radius);box-shadow:var(--x-menu-shadow);min-width:var(--x-menu-min-width);padding:var(--x-menu-padding);z-index:var(--x-menu-z-index);box-sizing:border-box;}:host([open]) .popup{display:block;}.popup[data-placement\x3d'bottom-start']{top:100%;left:0;margin-top:4px;}.popup[data-placement\x3d'bottom-end']{top:100%;right:0;margin-top:4px;}.popup[data-placement\x3d'top-start']{bottom:100%;left:0;margin-bottom:4px;}.popup[data-placement\x3d'top-end']{bottom:100%;right:0;margin-bottom:4px;}";
11
+ b.setAttribute("part","base");b.className="base";e.setAttribute("name","trigger");f.setAttribute("part","popup");f.className="popup";f.setAttribute("role","menu");f.appendChild(h);b.appendChild(e);b.appendChild(f);c.appendChild(d);c.appendChild(b);c={};c.base=b;c.popup=f;c["trigger-slot"]=e;c["item-slot"]=h;this.__xMenuRefs=c;sv(this);this.__xMenuInit=!0}rv(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xMenuHandlers");if($APP.n(b)){var c=$APP.l(b,"doc-click"),
12
+ d=$APP.l(b,"keydown"),e=$APP.l(b,"item-select");this.removeEventListener("click",$APP.l(b,"click"));document.removeEventListener("click",c,!0);this.removeEventListener("keydown",d);b=this.removeEventListener("x-menu-item-select",e)}else b=null;return b};a.prototype.attributeChangedCallback=function(){return hv(this)?rv(this):null};tv(a);return a},wv=function(){return $APP.n(customElements.get("x-menu"))?null:customElements.define("x-menu",vv())},kv=new $APP.K(null,"first","first",-644103046),lv=new $APP.K(null,
13
+ "last","last",1105735132);var uv=["open","placement","label"],qv=new $APP.R(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null);$APP.wd(["x-menu-open",new $APP.P(null,1,[$APP.Y,$APP.xd],null),"x-menu-close",new $APP.P(null,1,[$APP.Y,$APP.xd],null),"x-menu-select",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("app.exports.x_menu.init",wv);export const init=wv;
@@ -0,0 +1,14 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var JD=function(a){var b=$APP.l(a,"__xModalRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("slot"),k=document.createElement("div"),m=document.createElement("slot"),q=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-modal-bg:Canvas;--x-modal-fg:CanvasText;--x-modal-backdrop:rgb(0 0 0/0.45);--x-modal-shadow:0 20px 60px rgb(0 0 0/0.25);--x-modal-radius:0.75rem;--x-modal-width-sm:22rem;--x-modal-width-md:32rem;--x-modal-width-lg:44rem;--x-modal-width-xl:60rem;--x-modal-max-height:90vh;--x-modal-header-padding:1rem 1.25rem;--x-modal-body-padding:1rem 1.25rem;--x-modal-footer-padding:0.75rem 1.25rem;--x-modal-border:color-mix(in srgb,currentColor 12%,transparent);--x-modal-duration:180ms;--x-modal-easing:ease;--x-modal-z:1000;}[part\x3dbackdrop]{position:fixed;inset:0;background:var(--x-modal-backdrop);z-index:var(--x-modal-z);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{opacity:1;visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}[part\x3ddialog]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.96);opacity:0;visibility:hidden;pointer-events:none;background:var(--x-modal-bg);color:var(--x-modal-fg);box-shadow:var(--x-modal-shadow);border-radius:var(--x-modal-radius);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-modal-z) + 1);max-height:var(--x-modal-max-height);transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-size\x3dsm]) [part\x3ddialog]{width:var(--x-modal-width-sm);}:host([data-size\x3dmd]) [part\x3ddialog]{width:var(--x-modal-width-md);}:host([data-size\x3dlg]) [part\x3ddialog]{width:var(--x-modal-width-lg);}:host([data-size\x3dxl]) [part\x3ddialog]{width:var(--x-modal-width-xl);}:host([data-size\x3dfull]) [part\x3ddialog]{inset:0;top:0;left:0;width:100vw;height:100dvh;border-radius:0;max-width:100vw;max-height:100dvh;transform:scale(0.98);}:host([data-open\x3dtrue]) [part\x3ddialog]{opacity:1;transform:translate(-50%,-50%) scale(1);visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}:host([data-open\x3dtrue][data-size\x3dfull]) [part\x3ddialog]{transform:scale(1);}[part\x3ddialog]:focus{outline:none;}[part\x3dheader]{padding:var(--x-modal-header-padding);border-bottom:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-modal-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-modal-footer-padding);border-top:1px solid var(--x-modal-border);flex-shrink:0;}@media (prefers-reduced-motion:reduce){[part\x3ddialog],[part\x3dbackdrop]{transition:none;}}";
3
+ d.setAttribute("part","backdrop");e.setAttribute("part","dialog");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");f.setAttribute("part","header");h.setAttribute("name","header");k.setAttribute("part","body");q.setAttribute("part","footer");r.setAttribute("name","footer");f.appendChild(h);k.appendChild(m);q.appendChild(r);e.appendChild(f);e.appendChild(k);e.appendChild(q);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xModalRefs={root:b,backdrop:d,dialog:e,header:f,body:k,
4
+ footer:q};return $APP.l(a,"__xModalRefs")},LD=function(a){a=new $APP.P(null,3,[$APP.rh,a.hasAttribute("open"),$APP.hi,a.getAttribute("size"),$APP.dh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.I(b,$APP.rh);a=$APP.I(b,$APP.hi);b=$APP.I(b,$APP.dh);c=$APP.J(c);a=typeof a==="string"&&$APP.Cc(KD,a)?a:"md";b=typeof b==="string"&&$APP.N(b,"")?b:"Modal";return new $APP.P(null,3,[$APP.Pi,c,$APP.Ag,a,$APP.W,b],null)},MD=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,
5
+ cancelable:!1}))},ND=function(a){function b(d){var e=window.getComputedStyle(d);return $APP.N("none",e.display)&&$APP.N("hidden",e.visibility)&&d.offsetWidth>0&&d.offsetHeight>0}var c=$APP.Kd(b,$APP.gc($APP.l(a,"dialog").querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])")));a=$APP.Jd(function(d){return $APP.Kd(b,$APP.Jd(function(e){var f=$APP.gc(e.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"));
6
+ return $APP.n(e.matches("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))?$APP.Xc(e,f):f},$APP.gc([$APP.hc(d.assignedElements({flatten:!0}))])))},$APP.gc([$APP.gc($APP.l(a,"root").querySelectorAll("slot"))]));return $APP.be($APP.Hd.h(c,a))},OD=function(a){var b=$APP.l(a,"__xModalRefs");b=$APP.n(b)?$APP.l(b,"dialog"):null;var c=$APP.l(a,"__xModalRestore"),d=$APP.l(a,"__xModalDialogTab")===!0;a.__xModalTabbables=
7
+ null;a.__xModalRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xModalDialogTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},PD=function(a,b){MD(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},QD=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},RD=function(a){a.removeAttribute("open");return null},SD=function(a){var b=JD(a);b=$APP.l(b,"dialog");var c=LD(a),d=$APP.Pi.g(c),e=$APP.l(a,"__xModalPrevOpen");a.setAttribute("data-open",
8
+ $APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.Ag.g(c));b.setAttribute("aria-label",$APP.W.g(c));$APP.N(e,d)&&(a.__xModalPrevOpen=d,MD(a,"x-modal-toggle",{open:d}),$APP.n(d)?setTimeout(function(){var f=$APP.l(a,"__xModalRefs"),h=$APP.n(f)?$APP.l(f,"dialog"):null;f=$APP.n(f)?ND(f):null;a.__xModalRestore=document.activeElement;var k=$APP.n(f)?$APP.xg(f):null;a.__xModalTabbables=k;$APP.v(f)?$APP.x(f).focus():$APP.n(h)&&($APP.n(h.hasAttribute("tabindex"))||(h.setAttribute("tabindex","-1"),
9
+ a.__xModalDialogTab=!0),h.focus());return null},0):OD(a))},TD=function(a){function b(f){var h=f.key;if($APP.D.h(h,"Escape"))f.preventDefault(),PD(a,"escape");else if($APP.D.h(h,"Tab")){h=$APP.l(a,"__xModalTabbables");h=$APP.n(h)?$APP.be($APP.gc(h)):$APP.Ld;var k=$APP.l(a,"__xModalRefs");k=$APP.n(k)?$APP.l(k,"dialog"):null;if($APP.rc(h))f.preventDefault(),$APP.n(k)&&k.focus();else{k=document.activeElement;var m=$APP.x(h);h=$APP.ic(h);var q=f.shiftKey;$APP.n($APP.n(q)?$APP.D.h(k,m):q)?(f.preventDefault(),
10
+ h.focus()):$APP.p(q)&&$APP.D.h(k,h)&&(f.preventDefault(),m.focus())}}return null}function c(){return PD(a,"backdrop")}var d=JD(a),e=$APP.l(d,"dialog");$APP.l(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ma(a,"__xModalHandlers",{backdrop:c,keydown:b})},UD=function(a){var b=$APP.l(a,"__xModalHandlers"),c=$APP.l(a,"__xModalRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.l(c,"backdrop");c=$APP.l(c,"dialog");var e=$APP.l(b,"backdrop");b=$APP.l(b,"keydown");$APP.n(e)&&d.removeEventListener("click",
11
+ e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xModalHandlers=null},VD=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?QD(this):RD(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return b==null?this.removeAttribute("size"):this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
12
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Modal"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return QD(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return RD(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?
13
+ RD(this):QD(this);return null},enumerable:!0,configurable:!0,writable:!0})},XD=function(){if(!$APP.n(customElements.get("x-modal"))){var a=class extends HTMLElement{};a.observedAttributes=WD;a.prototype.connectedCallback=function(){JD(this);UD(this);TD(this);SD(this);return null};a.prototype.disconnectedCallback=function(){UD(this);OD(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&SD(this);return null};VD(a.prototype);customElements.define("x-modal",a)}return null},
14
+ YD=function(){return XD()};var KD=new $APP.R(null,new $APP.P(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),WD=["open","size","label"];$APP.wd(["x-modal-toggle",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null),"x-modal-dismiss",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,1,[$APP.xh,$APP.X],null)],null)]);$APP.ka("app.exports.x_modal.init",YD);export const init=YD;
@@ -0,0 +1,13 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var pD=function(a,b,c){return typeof a==="string"&&$APP.Cc(b,a)?a:c},qD=function(a){return a.__xNavbarState},rD=function(a,b){return a.__xNavbarFocusVisible=$APP.J(b)},sD=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},tD=function(a){return a.assignedNodes({flatten:!0})},uD=function(a){return document.createElement(a)},BD=function(a,b){var c=b.base,d=b.bar,e=b.brand,f=b.start,h=b.actions,k=b.toggle,m=b.end,q=b["brand-slot"],r=b["start-slot"],
3
+ u=b["actions-slot"],w=b["toggle-slot"];b=b["end-slot"];a=new $APP.P(null,7,[$APP.W,a.getAttribute("label"),$APP.Ah,a.getAttribute("orientation"),$APP.Wg,a.getAttribute("variant"),$APP.Rh,a.hasAttribute("sticky"),vD,a.hasAttribute("elevated"),$APP.Ph,a.getAttribute("breakpoint"),wD,a.getAttribute("alignment")],null);var z=$APP.M(a);a=$APP.I(z,$APP.W);var A=$APP.I(z,$APP.Ah),C=$APP.I(z,$APP.Wg),F=$APP.I(z,$APP.Rh),E=$APP.I(z,vD),Q=$APP.I(z,$APP.Ph);z=$APP.I(z,wD);a=new $APP.P(null,7,[$APP.W,typeof a===
4
+ "string"?a:null,$APP.Ah,pD(A,xD,"horizontal"),$APP.Wg,pD(C,yD,"default"),$APP.Rh,$APP.J(F),vD,$APP.J(E),$APP.Ph,pD(Q,zD,"md"),wD,pD(z,AD,"space-between")],null);q=tD(q).length>0;r=tD(r).length>0;u=tD(u).length>0;w=tD(w).length>0;b=tD(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.Wg.g(a));c.setAttribute("data-orientation",$APP.Ah.g(a));c.setAttribute("data-breakpoint",
5
+ $APP.Ph.g(a));d.setAttribute("data-alignment",wD.g(a));e.setAttribute("data-has-brand",q?"true":"false");f.setAttribute("data-has-start",r?"true":"false");h.setAttribute("data-has-actions",u?"true":"false");k.setAttribute("data-has-toggle",w?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},CD=function(a,b){b.addEventListener("click",function(c){var d=qD(a),e=c.target,f=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?"pointer":c instanceof
6
+ KeyboardEvent?"keyboard":"programmatic";$APP.n(f)&&(f=f.getAttribute("href"),sD(a,"navigate",{href:$APP.n(f)?f:"",source:c}));a:{d=tD(d["brand-slot"]);for(f=0;;)if(f<d.length){var h=d[f];var k=$APP.D.h(h,e);h=k?k:(k=$APP.D.h(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):k;if($APP.n(h)){e=!0;break a}f+=1}else{e=!1;break a}e=void 0}return e?sD(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.D.h(!0,a.__xNavbarFocusVisible))return null;
7
+ rD(a,!0);a.setAttribute("data-focus-visible-within","true");return sD(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;rD(a,!1);return a.removeAttribute("data-focus-visible-within")})},DD=function(a,b){function c(){return BD(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)},ED=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)}})},FD=function(){function a(){return Reflect.construct(HTMLElement,[],$APP.Ra(b))}var b=new $APP.Dd;$APP.Ed(b,a);return a},HD=function(){if($APP.n(customElements.get("x-navbar")))return null;
9
+ var a=Object.create(HTMLElement.prototype),b=FD();Object.setPrototypeOf(b,HTMLElement);a.constructor=b;ED(a,"sticky","sticky");ED(a,"elevated","elevated");a.connectedCallback=function(){if(!$APP.n(qD(this))){var c=this.attachShadow({mode:"open"});var d=uD("style"),e=uD("nav"),f=uD("div"),h=uD("div"),k=uD("div"),m=uD("div"),q=uD("div"),r=uD("div"),u=uD("div"),w=uD("slot"),z=uD("slot"),A=uD("slot"),C=uD("slot"),F=uD("slot"),E=uD("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");f.setAttribute("part","bar");h.setAttribute("part","brand");k.setAttribute("part","start");m.setAttribute("part","nav");q.setAttribute("part","actions");r.setAttribute("part","toggle");u.setAttribute("part","end");w.setAttribute("name","brand");z.setAttribute("name","start");C.setAttribute("name","actions");F.setAttribute("name","toggle");E.setAttribute("name","end");h.appendChild(w);k.appendChild(z);m.appendChild(A);q.appendChild(C);r.appendChild(F);u.appendChild(E);
11
+ f.appendChild(h);f.appendChild(k);f.appendChild(m);f.appendChild(q);f.appendChild(r);f.appendChild(u);e.appendChild(f);c.appendChild(d);c.appendChild(e);c={"end-slot":E,bar:f,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:u,base:e,nav:m};d=c.base;rD(this,!1);CD(this,d);DD(this,c);this.__xNavbarState=c}return BD(this,qD(this))};a.disconnectedCallback=function(){return rD(this,!1)};a.attributeChangedCallback=function(){var c=
12
+ qD(this);return $APP.n(c)?BD(this,c):null};b.observedAttributes=GD;b.prototype=a;return customElements.define("x-navbar",b)},ID=function(){return HD()},vD=new $APP.K(null,"elevated","elevated",-7323953),wD=new $APP.K(null,"alignment","alignment",1040093386);var xD=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),yD=new $APP.R(null,new $APP.P(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),zD=new $APP.R(null,new $APP.P(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),AD=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"space-between",null],null),null),GD="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.Yi,$APP.X,$APP.Ch,$APP.X],null)],null),"brand-activate",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.Ch,$APP.X],null)],null)]);$APP.ka("app.exports.x_navbar.init",ID);export const init=ID;
@@ -0,0 +1,10 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Ck=function(a){return typeof a==="string"&&$APP.Cc(Bk,a.toLowerCase())?a.toLowerCase():"top-right"},Dk=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},Ek=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")},Fk=function(a){var b=a.getAttribute("position");b=Ck(b);a.setAttribute("data-position",b)},Gk=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!1}))},Hk=function(a){function b(d){var e=Ek(a),f=$APP.l(e,"container"),h=d.composedPath()[0];e=h.getAttribute("data-notification-id");f=f.querySelectorAll("x-alert").length-
4
+ 1;h=h.getAttribute("type");var k=d.detail.reason;d=d.detail.text;Gk(a,"x-notification-center-dismiss",new $APP.P(null,5,[$APP.Ih,e,$APP.Z,$APP.n(h)?h:"info",$APP.xh,$APP.n(k)?k:"",$APP.Mh,$APP.n(d)?d:"",$APP.Hg,f],null));f===0&&Gk(a,"x-notification-center-empty",$APP.xd);return null}var c=Ek(a);$APP.l(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ma(a,"__xNcHandlers",{dismiss:b})},Ik=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},Kk=function(a,b){var c=Ek(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=Jk.v,Jk.v=r+1,r="xnc-"+$APP.S.g(r));return r}(),f=$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(f)&&d.setAttribute("type",f);$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);Gk(a,"x-notification-center-push",new $APP.P(null,2,[$APP.Ih,e,$APP.Hg,c.querySelectorAll("x-alert").length],null))}return null},Lk=function(a){Object.defineProperty(a,"position",{get:function(){return Ck(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 Dk(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})},Nk=function(){var a=class extends HTMLElement{};a.observedAttributes=Mk;a.prototype.connectedCallback=function(){Ek(this);Ik(this);Hk(this);Fk(this);return null};a.prototype.disconnectedCallback=function(){Ik(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.D.h(b,"position")?Fk(this):$APP.D.h(b,"max")&&(this.__xNcMax=Dk(this.getAttribute("max")));return null};Lk(a.prototype);a.prototype.push=function(b){return Kk(this,b)};a.prototype.clear=
9
+ function(){var b=Ek(this);b=$APP.v($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.v(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},Ok=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Nk());return null};var Mk=["position","max"],Bk=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.Ih,$APP.X,$APP.Hg,$APP.Gh],null),$APP.wi,!1],null),"x-notification-center-dismiss",new $APP.P(null,2,[$APP.Y,new $APP.P(null,5,[$APP.Ih,$APP.X,$APP.Z,$APP.X,$APP.xh,$APP.X,$APP.Mh,$APP.X,$APP.Hg,$APP.Gh],null),$APP.wi,!1],null),"x-notification-center-empty",new $APP.P(null,2,[$APP.Y,$APP.xd,$APP.wi,!1],null)]);var Jk={v:0};$APP.ka("app.exports.x_notification_center.init",Ok);export const init=Ok;
@@ -0,0 +1,17 @@
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 f=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");f.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);f.appendChild(h);f=new $APP.P(null,2,[aw,f,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(f));e.appendChild(aw.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.P(null,6,[$APP.nh,d,$APP.mh,e,cw,aw.g(f),dw,bw.g(f),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},kw=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,[lw,a.getAttribute("page"),mw,a.getAttribute("total-pages"),nw,a.getAttribute("sibling-count"),ow,a.getAttribute("boundary-count"),$APP.hi,a.getAttribute("size"),$APP.$h,a.hasAttribute("disabled"),$APP.dh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.I(b,lw),d=$APP.I(b,mw),e=$APP.I(b,nw),f=$APP.I(b,ow),h=$APP.I(b,$APP.hi);a=$APP.I(b,$APP.$h);b=$APP.I(b,$APP.dh);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 f==="string"?(f=parseInt(f,10),k=isFinite(f),k=$APP.n($APP.n(k)?f>=0:k)?f:1):k=1;f=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,f,tw,e,$APP.Ag,h,$APP.yi,$APP.J(a),$APP.W,$APP.n(b)?b:"Pagination"],null)},xw=function(a){var b=gw(a),c=$APP.mh.g(b),d=$APP.nh.g(b),e=dw.g(b),f=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),u=$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-u);u=$APP.lg.h(r,q+u);r=$APP.Ae.h($APP.Ae.h($APP.Ae.h(Zv(),$APP.Bf(1,A+1)),$APP.Bf(w,r+1)),$APP.Bf(C,u+1));r=$APP.be(r);C=$APP.Ld;for(u=0;;){if(u>=$APP.B(r)){r=C;break a}A=$APP.cc(r,u);var F=w=u>0?$APP.cc(r,u-1):null;w=$APP.n($APP.n(F)?A>w+1:F)?$APP.ef.h(C,new $APP.P(null,1,[$APP.Z,vw],null)):C;A=$APP.ef.h(w,new $APP.P(null,2,[$APP.Z,qw,
10
+ ww,A],null));u+=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.yi);$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.yi);$APP.n($APP.n(d)?d:e>=a)?f.setAttribute("disabled",""):f.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);f=$APP.v(r);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.D.h(vw,$APP.Z.g(d))?c.appendChild(kw()):c.appendChild(hw(ww.g(d),
11
+ $APP.D.h(ww.g(d),q),$APP.yi.g(k))),a+=1;else if(f=$APP.v(f))h=f,$APP.yc(h)?(f=$APP.ob(h),a=$APP.pb(h),h=f,e=$APP.B(f),f=a):(f=$APP.x(h),$APP.D.h(vw,$APP.Z.g(f))?c.appendChild(kw()):c.appendChild(hw(ww.g(f),$APP.D.h(ww.g(f),q),$APP.yi.g(k))),f=$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.D.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.mh.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.mh.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},mw=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),lw=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),nw=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("app.exports.x_pagination.init",Hw);export const init=Hw;
@@ -0,0 +1,13 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Lm=function(a){return $APP.Cc(Km,a)?a:"bottom-start"},Mm=function(a){return document.createElement(a)},Nm=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)){var c=$APP.l(b,"panel"),d=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");var e=a.hasAttribute("open"),f=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=Lm(a.getAttribute("placement"));c.setAttribute("data-placement",m);Nm(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 Nm(b,"hidden",f)}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",
4
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Rm=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&$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");
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},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,
6
+ "pointer")},closeBtnClick:function(){return Sm(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(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.hc(b.composedPath()),b=$APP.Ad(function(c){return c===a},b),$APP.n(b)?null:Sm(a,"outside-click")):null},docKeydown:function(b){b=$APP.D.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Sm(a,"escape"):null}}},Xm=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"))}}},Ym=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Nm(this,c,$APP.J(d))}})},Zm=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}})},an=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return $m}});Ym(b,"open","open");Ym(b,"disabled","disabled");Ym(b,"noClose","no-close");Zm(b,"placement","placement");Zm(b,"heading","heading");Zm(b,"closeLabel",
9
+ "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=Mm("style"),e=Mm("span"),f=Mm("slot"),h=Mm("div"),k=Mm("div"),m=Mm("div"),q=Mm("span"),r=Mm("button"),u=Mm("div"),w=Mm("slot"),z=Mm("div"),A=Mm("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;}}";
10
+ e.setAttribute("part","trigger");f.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
+ u.setAttribute("part","body");z.setAttribute("part","footer");A.setAttribute("name","footer");e.appendChild(f);m.appendChild(q);m.appendChild(r);u.appendChild(w);z.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(u);h.appendChild(z);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,heading:q,closeBtn:r,body:u,footer:z}}Xm(this);Vm(this);this.__xPopoverHandlers=Wm(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"))&&Um(this);return Om(this)};b.disconnectedCallback=function(){Xm(this);return Vm(this)};b.attributeChangedCallback=function(c){$APP.n($APP.l(this,"__xPopoverRefs"))?(Om(this),c=$APP.D.h(c,"open")?$APP.n(this.hasAttribute("open"))?Um(this):Vm(this):
13
+ null):c=null;return c};return a},bn=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",an())};var Km=new $APP.R(null,new $APP.P(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.wd(["x-popover-toggle",new $APP.P(null,2,[$APP.wi,!0,$APP.Y,new $APP.P(null,2,[$APP.si,$APP.Li,$APP.Ch,$APP.X],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null)]);$APP.ka("app.exports.x_popover.init",bn);export const init=bn;
@@ -0,0 +1,12 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var hD=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},kD=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.fh,a.getAttribute("max"),$APP.Wg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.$i,a.hasAttribute("show-value"),$APP.Ci,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.fh),e=$APP.I(c,$APP.T),f=$APP.I(c,$APP.Wg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.$i);
3
+ c=$APP.I(c,$APP.Ci);d=hD(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(hD(e,0),0),d);f=typeof f==="string"&&$APP.Cc(iD,f)?f:"default";h=typeof h==="string"&&$APP.Cc(jD,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.bf([$APP.Wg,$APP.$i,$APP.T,$APP.Ag,$APP.Ci,$APP.Wi,$APP.fh,$APP.W,$APP.Yh],[f,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.Yh);k=$APP.I(q,$APP.Wg);d=$APP.I(q,$APP.$i);
4
+ h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);f=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressCircleBase"),u=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(f)&&h>=q,C=$APP.n(f)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");u.setAttribute("stroke-dasharray",""+$APP.S.g(100));u.setAttribute("stroke-dashoffset",
5
+ ""+$APP.S.g(C));w.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.S.g(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(f):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(f)?(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)},lD=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})},nD=function(){var a=class extends HTMLElement{};a.observedAttributes=mD;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"),f=document.createElementNS("http://www.w3.org/2000/svg","circle"),
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
+ d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");f.setAttribute("part","track");f.setAttribute("cx","18");f.setAttribute("cy","18");f.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(f);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}kD(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"))&&kD(this);return null};lD(a.prototype);return a},oD=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ nD());return null};var iD=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),jD=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),mD="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.Gh,$APP.fh,$APP.Gh],null)],null)]);$APP.ka("app.exports.x_progress_circle.init",oD);export const init=oD;
@@ -0,0 +1,11 @@
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.fh,a.getAttribute("max"),$APP.Wg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.$i,a.hasAttribute("show-value"),$APP.Ci,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.fh),e=$APP.I(c,$APP.T),f=$APP.I(c,$APP.Wg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.$i);
3
+ c=$APP.I(c,$APP.Ci);d=JH(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(JH(e,0),0),d);f=typeof f==="string"&&$APP.Cc(KH,f)?f:"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.bf([$APP.Wg,$APP.$i,$APP.T,$APP.Ag,$APP.Ci,$APP.Wi,$APP.fh,$APP.W,$APP.Yh],[f,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.Yh);k=$APP.I(q,$APP.Wg);d=$APP.I(q,$APP.$i);
4
+ h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);f=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressBase"),u=$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"),E=$APP.p(f)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");w.style.width=$APP.n(f)?
5
+ "40%":""+$APP.S.g(b.toFixed(2))+"%";u.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(f):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(f)?(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");E&&$APP.p(F)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCompleted=$APP.J(E)},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"),f=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");f.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(f);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=f;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.Gh,$APP.fh,$APP.Gh],null)],null)]);$APP.ka("app.exports.x_progress.init",QH);export const init=QH;
@@ -0,0 +1,13 @@
1
+ import { $APP, shadow$provide } from "./base.js";
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.bf([$APP.Kh,$APP.$h,$APP.Cg,$APP.Rg,$APP.ai,$APP.vi,$APP.Gi,$APP.Ei,$APP.ki],[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.Ei);var c=$APP.I(b,$APP.ki),d=$APP.I(b,$APP.Kh),e=$APP.I(b,$APP.$h),f=$APP.I(b,$APP.Cg),h=$APP.I(b,$APP.Rg),k=$APP.I(b,$APP.ai),m=$APP.I(b,$APP.vi);b=$APP.I(b,$APP.Gi);k=$APP.J(k);f=$APP.J(f);return $APP.bf([$APP.bh,$APP.Xg,$APP.cj,$APP.pi,$APP.Ig,$APP.ii,$APP.T,$APP.Oi,$APP.Xi,$APP.bi,$APP.U],[f,k?"true":"false",$APP.J(m),k,$APP.n(f)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(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.U.g(b),
4
+ e=$APP.pi.g(b);tn(c,"aria-checked",$APP.Xg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");tn(c,"aria-required",$APP.n($APP.bh.g(b))?"true":"false");tn(c,"aria-readonly",$APP.n($APP.cj.g(b))?"true":"false");var f=$APP.bi.g(b);$APP.n(f)?c.setAttribute("aria-label",f):c.removeAttribute("aria-label");f=$APP.Oi.g(b);$APP.n(f)?c.setAttribute("aria-labelledby",f):c.removeAttribute("aria-labelledby");f=$APP.Xi.g(b);$APP.n(f)?c.setAttribute("aria-describedby",f):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.T.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.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.D.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.D.h(d,b)?0:-1:$APP.D.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.U.g(b),d=$APP.cj.g(b),e=$APP.pi.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.T.g(b);return zn(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),wn(a),xn(a).forEach(function(f){var h=$APP.N(f,a);return $APP.n(h?f.hasAttribute("checked"):h)?(f.removeAttribute("checked"),wn(f)):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,f=d.indexOf(a);if($APP.D.h(c," ")||$APP.D.h(c,"Enter"))return b.preventDefault(),Bn(a);if($APP.D.h(c,"ArrowDown")||$APP.D.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Qc(f+1,e)],Bn(b),Cn(b)}else if($APP.D.h(c,"ArrowUp")||$APP.D.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Qc(f-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.J(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.N(d)?tn(this,c,""+$APP.S.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
+ "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),f=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");f.setAttribute("part","dot");e.appendChild(f);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:f};$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),f={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ f);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.J(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.wd(["x-radio-change-request",new $APP.P(null,2,[$APP.wi,!0,$APP.Y,new $APP.P(null,3,[$APP.T,$APP.X,$APP.Bg,$APP.Li,$APP.gi,$APP.Li],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.Si,$APP.Li],null)],null)]);$APP.ka("app.exports.x_radio.init",Kn);export const init=Kn;
@@ -0,0 +1,17 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var ul=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},vl=function(a,b,c){a=$APP.D.h("",a.value);c=c.hasAttribute("disabled");$APP.n(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},wl=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.n($APP.n(a)?$APP.D.h(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},yl=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,
3
+ "input");b=$APP.l(b,"clear");var d=new $APP.P(null,7,[$APP.Kh,a.getAttribute("name"),$APP.Gi,a.getAttribute("value"),$APP.wh,a.getAttribute("placeholder"),$APP.dh,a.getAttribute("label"),$APP.$h,a.hasAttribute("disabled"),$APP.Cg,a.hasAttribute("required"),$APP.ch,a.getAttribute("autocomplete")],null);var e=$APP.M(d),f=$APP.I(e,$APP.Kh),h=$APP.I(e,$APP.Gi),k=$APP.I(e,$APP.wh),m=$APP.I(e,$APP.dh),q=$APP.I(e,$APP.$h);d=$APP.I(e,$APP.Cg);e=$APP.I(e,$APP.ch);f=$APP.n(f)?f:"";h=$APP.n(h)?h:"";k=$APP.n(k)?
4
+ k:"";m=$APP.n(m)?m:"";q=$APP.J(q);d=$APP.J(d);e=typeof e==="string"&&$APP.Cc(xl,e)?e:"off";d=new $APP.P(null,7,[$APP.ii,f,$APP.T,h,$APP.Di,k,$APP.W,m,$APP.U,q,$APP.bh,d,$APP.oi,e],null);c.name=$APP.ii.g(d);c.placeholder=$APP.Di.g(d);c.disabled=$APP.U.g(d);c.required=$APP.bh.g(d);c.autocomplete=$APP.oi.g(d);e=$APP.W.g(d);$APP.n($APP.n(e)?$APP.N(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.n($APP.bh.g(d))?"true":"false";c.setAttribute("aria-required",d);vl(c,b,a);b=
5
+ $APP.l(a,"__xSearchFieldInternals");return $APP.n(b)?wl(a,b,c):null}return null},zl=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.J(d)}))},Al=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.n(e)?e:"";var f=$APP.l(a,"__xSearchFieldInternals");$APP.n(f)&&(f.setFormValue(d),wl(a,f,c));vl(c,b,a);return zl(a,"x-search-field-input",
6
+ {name:e,value:d},!1)}return null}},Bl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(c),wl(a,e,b));return zl(a,"x-search-field-change",{name:d,value:c},!1)}return null}},Cl=function(a){return function(b){if($APP.D.h("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.n(b))){var c=$APP.l(b,"input").value;
7
+ b=function(){var d=a.getAttribute("name");return $APP.n(d)?d:""}();return $APP.n(function(){var d=a.hasAttribute("required");return $APP.n(d)?$APP.D.h(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.n(b)?b.reportValidity():null):zl(a,"x-search-field-search",{name:b,value:c},!0)}return null}},Dl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.n(d)?d:"";c.value="";var e=$APP.l(a,
8
+ "__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(""),wl(a,e,c));vl(c,b,a);zl(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},El=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.n(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
+ "click"));a.__xSearchFieldHandlers=null;return}}return null},Fl=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.N(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Gl=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ul(this,c,$APP.J(d))}})},Hl=function(a){Object.defineProperty(a,
10
+ "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},Jl=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Il}});
11
+ Hl(b);Fl(b,"name","name");Fl(b,"placeholder","placeholder");Fl(b,"label","label");Fl(b,"autocomplete","autocomplete");Gl(b,"disabled","disabled");Gl(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.n(this.shadowRoot)){var c=
12
+ this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:#ffffff;--x-search-field-color:#111827;--x-search-field-border:1px solid #d1d5db;--x-search-field-border-radius:6px;--x-search-field-focus-ring-color:#2563eb;--x-search-field-icon-color:#9ca3af;--x-search-field-clear-color:#9ca3af;--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:#1f2937;--x-search-field-color:#f9fafb;--x-search-field-border:1px solid #4b5563;--x-search-field-focus-ring-color:#3b82f6;--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
13
+ e.setAttribute("part","wrapper");f.setAttribute("part","icon");f.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 24 24" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3ccircle cx\x3d"11" cy\x3d"11" r\x3d"8"/\x3e\x3cline x1\x3d"21" y1\x3d"21" x2\x3d"16.65" y2\x3d"16.65"/\x3e\x3c/svg\x3e';h.setAttribute("part","input");h.setAttribute("type","search");h.setAttribute("spellcheck",
14
+ "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(f);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:f,input:h,clear:k}}$APP.n(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}El(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&
15
+ (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.n(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=Al(this),f=Bl(this),h=Cl(this),k=Dl(this),c.addEventListener("input",e),c.addEventListener("change",f),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:f,keydown:h,click:k});return yl(this)};b.disconnectedCallback=function(){return El(this)};
16
+ b.attributeChangedCallback=function(c,d,e){$APP.D.h(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return yl(this)};b.formDisabledCallback=function(c){ul(this,"disabled",$APP.J(c));return yl(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&c.setFormValue("");return yl(this)};
17
+ return a},Kl=function(){return $APP.n(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Jl())};var Il="name value placeholder label disabled required autocomplete".split(" "),xl=new $APP.R(null,new $APP.P(null,2,["off",null,"on",null],null),null);$APP.ka("app.exports.x_search_field.init",Kl);export const init=Kl;
@@ -0,0 +1,12 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var bz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"wrapper"),d=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");a=new $APP.P(null,6,[$APP.$h,a.hasAttribute("disabled"),$APP.Cg,a.hasAttribute("required"),$APP.hi,a.getAttribute("size"),$APP.wh,a.getAttribute("placeholder"),$APP.Gi,a.getAttribute("value"),$APP.Kh,a.getAttribute("name")],null);var e=$APP.M(a);var f=$APP.I(e,$APP.$h);var h=$APP.I(e,$APP.Cg),k=$APP.I(e,$APP.hi);a=$APP.I(e,$APP.wh);var m=$APP.I(e,$APP.Gi);e=
3
+ $APP.I(e,$APP.Kh);f=$APP.J(f);h=$APP.J(h);k=typeof k==="string"&&$APP.Cc(az,k)?k:"md";f=new $APP.P(null,6,[$APP.U,f,$APP.bh,h,$APP.Ag,k,$APP.Di,a,$APP.T,m,$APP.ii,e],null);a=$APP.U.g(f);m=$APP.bh.g(f);k=$APP.Ag.g(f);e=$APP.Di.g(f);h=$APP.T.g(f);f=$APP.ii.g(f);d.disabled=a;$APP.n(m)?d.setAttribute("required",""):d.removeAttribute("required");typeof f==="string"&&$APP.N(f,"")?d.setAttribute("name",f):d.removeAttribute("name");typeof e==="string"&&$APP.N(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=
4
+ !0;d.value=$APP.n(h)?h:"";c.setAttribute("data-size",k);$APP.n(a)?c.setAttribute("data-disabled",""):c.removeAttribute("data-disabled");return f==null||$APP.D.h(f,"")?d.setAttribute("aria-label",$APP.n(e)?e:"select"):d.removeAttribute("aria-label")}return null},cz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,f=e;if($APP.n($APP.n(f)?e!==d:f))c.removeChild(e);
5
+ else break}d=$APP.v($APP.gc(b));b=null;for(f=e=0;;)if(f<e){var h=b.F(null,f),k=h.tagName.toLowerCase();($APP.D.h(k,"option")||$APP.D.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));f+=1}else if(d=$APP.v(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),b=e,e=$APP.B(e)):(b=$APP.x(d),e=b.tagName.toLowerCase(),($APP.D.h(e,"option")||$APP.D.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.y(d),b=null,e=0),f=0;else break;return bz(a)}return null},dz=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");
6
+ return $APP.n(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},ez=function(a){return function(){return cz(a)}},fz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("slotchange",
7
+ $APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},gz=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)}})},hz=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",
8
+ b)):b=this.removeAttribute("value");return b}})},jz=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return iz}});gz(b,"disabled","disabled");gz(b,"required","required");hz(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),f=document.createElement("select"),h=document.createElement("option"),k=document.createElement("span"),
9
+ m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:0.5rem;--x-select-font-size-sm:0.75rem;--x-select-font-size-md:0.875rem;--x-select-font-size-lg:1rem;--x-select-padding-inline:0.75rem;--x-select-bg:#ffffff;--x-select-bg-disabled:#f8fafc;--x-select-fg:#0f172a;--x-select-fg-disabled:#94a3b8;--x-select-placeholder-fg:#94a3b8;--x-select-border:#cbd5e1;--x-select-border-hover:#94a3b8;--x-select-border-focus:#3b82f6;--x-select-chevron:#64748b;--x-select-focus-ring:#93c5fd;--x-select-shadow:0 1px 2px rgba(15,23,42,0.06);--x-select-transition-duration:140ms;}@media (prefers-color-scheme:dark){:host{--x-select-bg:#1f2937;--x-select-bg-disabled:#111827;--x-select-fg:#f1f5f9;--x-select-border:#374151;--x-select-border-hover:#4b5563;--x-select-border-focus:#60a5fa;--x-select-chevron:#94a3b8;}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
10
+ e.setAttribute("part","wrapper");f.setAttribute("part","select");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");h.setAttribute("data-placeholder","");h.setAttribute("value","");h.hidden=!0;h.disabled=!0;h.selected=!0;k.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3cpolyline points\x3d"4 6 8 10 12 6"/\x3e\x3c/svg\x3e';
11
+ f.appendChild(h);e.appendChild(f);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:f,"placeholder-opt":h,slot:m,chevron:k}}fz(this);c=$APP.l(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.l(c,"slot"),e=dz(this),f=ez(this),h={change:e,slotchange:f},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",f),this.__xSelectHandlers=h);cz(this);return bz(this)};b.disconnectedCallback=function(){return fz(this)};b.attributeChangedCallback=
12
+ function(){return bz(this)};return a},kz=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",jz())};var az=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),iz="disabled required size placeholder value name".split(" ");$APP.wd(["select-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.W,$APP.X],null)],null)]);$APP.ka("app.exports.x_select.init",kz);export const init=kz;
@@ -0,0 +1,27 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var fG=function(a){if(a!=null&&a.C!=null)a=a.C(a);else{var b=fG[$APP.da(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=fG._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.sa("IEmptyableCollection.-empty",a);}return a},gG=function(){},hG=function(){},iG=function(a){return a==null?null:a!=null&&(a.l&4||$APP.t===a.Zb)?a.C(null):(a!=null?a.l&4||$APP.t===a.Zb||(a.l?0:$APP.qa(gG,a)):$APP.qa(gG,a))?fG(a):null},jG=function(a){return a==null?!1:a!=null?a.l&64||$APP.t===a.mb?!0:a.l?
3
+ !1:$APP.qa(hG,a):$APP.qa(hG,a)},kG=function(a){function b(d,e){d.push(e);return d}var c=[];return $APP.Fc?$APP.Fc(b,c,a):$APP.Gc.call(null,b,c,a)},lG=function(){},mG=function(a,b){if(a!=null&&a.$b!=null)a=a.$b(a,b);else{var c=mG[$APP.da(a==null?null:a)];if(c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else if(c=mG._,c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else throw $APP.sa("IEncodeClojure.-js-\x3eclj",a);}return a},oG=function(a){var b=$APP.gc([$APP.qi,!0]),c=$APP.M(b);c=$APP.I(c,$APP.qi);var d=$APP.n(c)?
4
+ $APP.Of:$APP.ta;return function h(f){return(f!=null?$APP.t===f.rc||(f.Ub?0:$APP.qa(lG,f)):$APP.qa(lG,f))?mG(f,$APP.rd(nG,b)):jG(f)?$APP.Cf($APP.Id.h(h,f)):$APP.Zd(f)?new $APP.te(h($APP.Ma(f)),h($APP.Na(f))):$APP.sc(f)?$APP.Ae.m(iG(f),$APP.Id.g(h),f):$APP.n($APP.pa(f))?$APP.jd($APP.Fc(function(k,m){return $APP.kd(k,h(m))},$APP.hb($APP.Ld),f)):$APP.ra(f)===Object?$APP.jd($APP.Fc(function(k,m){var q=d.g?d.g(m):d.call(null,m);m=h($APP.l(f,m));return $APP.kb(k,q,m)},$APP.hb($APP.xd),$APP.la(f))):f}(a)},
5
+ pG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},qG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.xg(new $APP.P(null,3,[$APP.Y,c,$APP.Hi,!0,$APP.Ti,!0],null))))},sG=function(a,b){$APP.Cc(rG,b)&&qG(a,"dismiss",new $APP.P(null,1,[$APP.xh,b],null))},tG=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},uG=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
6
+ (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},vG=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var f=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;f=$APP.n($APP.n(e)?$APP.n(f)?f.contains(e):f:e)?e:$APP.n($APP.n(h)?$APP.n(f)?f.contains(h):f:h)?h:null;$APP.n(f)&&f.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
7
+ a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},wG=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.be($APP.gc(c)):$APP.Ld;var d=$APP.l(a,"_panel");if($APP.rc(c))return b.preventDefault(),$APP.n(d)?uG(a):null;a=document.activeElement;d=$APP.x(c);c=$APP.ic(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.D.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.D.h(a,c)?(b.preventDefault(),d.focus()):null},xG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
8
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),f=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-border: color-mix(in srgb, currentColor 12%, transparent); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-border: color-mix(in srgb, currentColor 20%, transparent); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
9
+ d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");f.className="panel";f.setAttribute("part","panel");f.appendChild(h);e.appendChild(f);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=f;a._slot=h}},TG=function(a){xG(a);var b=$APP.l(a,"_prevState");b=b==null?null:oG(b);b=$APP.n(b)?b:$APP.xd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),
10
+ f=a.getAttribute("variant"),h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,q=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.P(null,8,[yG,c,zG,d,AG,e,BG,f,CG,h,DG,k,EG,m,FG,$APP.J(q.matches)],null));k=$APP.I(c,yG);h=$APP.I(c,zG);d=$APP.I(c,AG);e=$APP.I(c,BG);m=$APP.I(c,CG);q=$APP.I(c,DG);f=$APP.I(c,EG);c=$APP.I(c,FG);d=$APP.Cc(GG,d)?d:$APP.Ai.g(HG);e=$APP.Cc(IG,e)?e:$APP.Wg.g(HG);var r=$APP.Ph.g(HG);m=m==null?null:""+$APP.S.g(m);m=m==null?null:
11
+ (0,$APP.dg)(m);$APP.v(m)?(m=Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.dg)(q):null;q=$APP.v(q)?q:null;q=$APP.n(q)?q:$APP.W.g(HG);k=$APP.M(new $APP.P(null,1,[yG,k],null));k=$APP.I(k,yG);k=$APP.J(k);h=$APP.J(h);f=f<m?"modal":e;r=$APP.D.h(f,"modal");var u=$APP.D.h(f,"overlay"),w=$APP.D.h(f,"docked");c=$APP.bf([$APP.si,JG,KG,LG,$APP.Ph,MG,NG,OG,PG,$APP.W,$APP.Ai,QG,RG,SG],[k,f,!k,w&&h,m,w,h,e,k&&(r||u),q,d,$APP.J(c),r,u]);k=$APP.M(c);d=$APP.I(k,JG);e=$APP.I(k,$APP.Ai);f=$APP.I(k,
12
+ $APP.si);h=$APP.I(k,LG);k=$APP.I(k,QG);a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(f)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=RG.g(c);$APP.n(d)&&(d=$APP.si.g(c),$APP.n(d)&&(d=RG.g(b),d=$APP.n(d)?$APP.si.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.be($APP.Kd(tG,$APP.gc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
13
+ a._restoreFocusTarget=document.activeElement,e=$APP.xg(d),a._tabbables=e,$APP.v(d)?$APP.x(d).focus():uG(a)):(d=RG.g(b),$APP.n(d)&&(d=$APP.si.g(b),$APP.n(d)&&(d=RG.g(c),d=$APP.n(d)?$APP.si.g(c):d,d=$APP.p(d))),$APP.n(d)&&vG(a));e=$APP.M(c);d=$APP.I(e,$APP.W);e=$APP.I(e,KG);f=$APP.l(a,"_sidebar");$APP.n(f)&&(f.setAttribute("role","navigation"),f.setAttribute("aria-label",d),f.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.I(d,PG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
14
+ $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.M(c);d=$APP.I(h,$APP.si);e=$APP.I(h,$APP.Ai);f=$APP.I(h,JG);h=$APP.I(h,LG);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",f),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.si.g(b),$APP.si.g(c))&&(b=$APP.si.g(c),qG(a,"toggle",new $APP.P(null,1,[$APP.si,$APP.J(b)],null)));b=$APP.xg(c);a._prevState=
15
+ b},UG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:oG(e)}(),d=$APP.l(a,"_backdrop");return $APP.n(function(){var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);return $APP.n(e)?(e=$APP.si.g(c),$APP.n(e)?$APP.D.h(b.target,d):e):e}())?(sG(a,"backdrop"),pG(a,"open",!1)):null},VG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:oG(e)}(),d=b.key;return $APP.n(function(){var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);return $APP.n(e)?$APP.si.g(c):e}())?$APP.D.h(d,
16
+ "Escape")?(b.preventDefault(),sG(a,"escape"),pG(a,"open",!1)):$APP.n(function(){var e=RG.g(c);return $APP.n(e)?$APP.D.h(d,"Tab"):e}())?wG(a,b):null:null},WG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){return UG(a,b)},onKeydown:function(b){return VG(a,b)},onResize:function(){return TG(a)}})},XG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return pG(this,"open",$APP.J(b))},enumerable:!0,
17
+ configurable:!0})},YG=function(a){Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return pG(this,"collapsed",$APP.J(b))},enumerable:!0,configurable:!0})},ZG=function(){var a=Object.create(HTMLElement.prototype);$APP.ma(a,"connectedCallback",function(){xG(this);WG(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,
18
+ "onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",$APP.l(b,"onResize"));this._listening=!0}return TG(this)});$APP.ma(a,"disconnectedCallback",function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,
19
+ "onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return vG(this)});$APP.ma(a,"attributeChangedCallback",function(b,c,d){return $APP.N(c,d)?TG(this):null});XG(a);YG(a);return a},aH=function(){function a(){return Reflect.construct(HTMLElement,[],this.constructor)}if($APP.n(customElements.get("x-sidebar")))return null;var b=ZG();a.prototype=b;Object.defineProperty(b,"constructor",{value:a});Object.setPrototypeOf(a,HTMLElement);a.observedAttributes=
20
+ $G;return customElements.define("x-sidebar",a)},bH=function(){return aH()};$APP.Ib.prototype.C=$APP.ca(24,function(){return $APP.Lb});$APP.Uc.prototype.C=$APP.ca(23,function(){return $APP.Ua($APP.Lb,this.s)});$APP.Vc.prototype.C=$APP.ca(22,function(){return this});$APP.Wc.prototype.C=$APP.ca(21,function(){return $APP.Lb});$APP.$c.prototype.C=$APP.ca(20,function(){return $APP.Ua($APP.Lb,this.s)});$APP.ed.prototype.C=$APP.ca(19,function(){return $APP.Lb});$APP.Fd.prototype.C=$APP.ca(18,function(){return $APP.Lb});
21
+ $APP.O.prototype.C=$APP.ca(17,function(){return $APP.Ua($APP.Ld,this.s)});$APP.ce.prototype.C=$APP.ca(16,function(){return $APP.Lb});$APP.te.prototype.C=$APP.ca(15,function(){return null});$APP.ue.prototype.C=$APP.ca(14,function(){return $APP.Lb});$APP.P.prototype.C=$APP.ca(13,function(){return $APP.Ua($APP.xd,this.s)});$APP.Se.prototype.C=$APP.ca(12,function(){return $APP.Lb});$APP.We.prototype.C=$APP.ca(11,function(){return $APP.Lb});
22
+ $APP.af.prototype.C=$APP.ca(10,function(){return $APP.Ua($APP.Ce,this.s)});$APP.gf.prototype.C=$APP.ca(9,function(){return $APP.Lb});$APP.hf.prototype.C=$APP.ca(8,function(){return null});$APP.jf.prototype.C=$APP.ca(7,function(){return null});$APP.kf.prototype.C=$APP.ca(6,function(){return new $APP.kf(this.Ca,null,0,this.s,0)});$APP.mf.prototype.C=$APP.ca(5,function(){return $APP.Lb});$APP.of.prototype.C=$APP.ca(4,function(){return $APP.Lb});
23
+ $APP.R.prototype.C=$APP.ca(3,function(){return $APP.Ua($APP.rf,this.s)});$APP.uf.prototype.C=$APP.ca(2,function(){return new $APP.uf(this.s,fG(this.Ka),0)});$APP.yf.prototype.C=$APP.ca(1,function(){return $APP.Lb});$APP.zf.prototype.C=$APP.ca(0,function(){return $APP.Lb});var nG=function nG(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return nG.G(0<c.length?new $APP.Ib(c.slice(0),0,null):null)};
24
+ nG.G=function(a){a=a instanceof $APP.Ib&&a.u===0?a.i:kG(a);var b=a.length;if(!$APP.Ac(b))throw Error(["Argument must be an integer: ",$APP.ta(b)].join(""));if((b&1)!==0)throw Error(["No value supplied for key: ",$APP.ta($APP.ic(a))].join(""));return $APP.wd(a)};nG.Y=0;nG.X=function(a){return this.G($APP.v(a))};
25
+ var OG=new $APP.K(null,"declared-variant","declared-variant",-2054964950),cH=new $APP.K(null,"collapsed","collapsed",-628494523),EG=new $APP.K(null,"viewport-width","viewport-width",-1146235948),KG=new $APP.K(null,"aria-hidden","aria-hidden",399337029),FG=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),NG=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),CG=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),BG=new $APP.K(null,"variant-attr",
26
+ "variant-attr",-1143729279),JG=new $APP.K(null,"effective-variant","effective-variant",-829495195),QG=new $APP.K(null,"reduced-motion","reduced-motion",79621277),PG=new $APP.K(null,"show-backdrop","show-backdrop",-532209910),MG=new $APP.K(null,"is-docked","is-docked",875310728),zG=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),RG=new $APP.K(null,"is-modal","is-modal",1610761086),AG=new $APP.K(null,"placement-attr","placement-attr",-1321967286),SG=new $APP.K(null,"is-overlay","is-overlay",
27
+ 1953921119),DG=new $APP.K(null,"label-attr","label-attr",-571749887),yG=new $APP.K(null,"open-attr","open-attr",-1772289801),LG=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var $G="open collapsed placement variant breakpoint label".split(" "),GG=$APP.sf(["right","left"]),IG=$APP.sf(["overlay","docked","modal"]),rG=$APP.sf(["backdrop","escape"]),HG=new $APP.P(null,6,[$APP.Ai,"left",$APP.Wg,"docked",$APP.Ph,768,$APP.W,"Sidebar",$APP.si,!1,cH,!1],null);$APP.wd(["toggle",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null),"dismiss",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.xh,$APP.X],null)],null)]);$APP.ka("app.exports.x_sidebar.init",bH);export const init=bH;
@@ -0,0 +1,8 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var lz=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},pz=function(a){var b=new $APP.P(null,4,[$APP.Wg,a.getAttribute("variant"),mz,a.getAttribute("animation"),$APP.Og,a.getAttribute("width"),$APP.Ki,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Wg),e=$APP.I(c,mz);b=$APP.I(c,$APP.Og);c=$APP.I(c,$APP.Ki);d=typeof d==="string"&&$APP.Cc(nz,d)?d:"rect";e=typeof e==="string"&&$APP.Cc(oz,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Wg,d,mz,e,$APP.Og,lz(b),$APP.Ki,lz(c)],null);d=
3
+ $APP.M(b);b=$APP.I(d,$APP.Wg);e=$APP.I(d,mz);c=$APP.I(d,$APP.Og);d=$APP.I(d,$APP.Ki);var f=$APP.l(a,"__xSkeletonBase");f.setAttribute("data-variant",b);f.setAttribute("data-animation",e);$APP.n(c)?f.style.setProperty("width",c):f.style.removeProperty("width");$APP.n(d)?f.style.setProperty("height",d):f.style.removeProperty("height");a.setAttribute("aria-hidden","true")},qz=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"rect"},set:function(b){return typeof b===
4
+ "string"&&$APP.N("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b===
5
+ "string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},sz=function(){var a=class extends HTMLElement{};a.observedAttributes=rz;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,
6
+ "__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}pz(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,"__xSkeletonInit"))&&pz(this);return null};qz(a.prototype);return a},tz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",sz());return null},
8
+ mz=new $APP.K(null,"animation","animation",-1248293244);var nz=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),oz=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),rz=["variant","animation","width","height"];$APP.ka("app.exports.x_skeleton.init",tz);export const init=tz;
@@ -0,0 +1,17 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var mu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},nu=function(a,b,c){return a.setAttribute(b,c)},ou=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},tu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),f=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.bf([$APP.Vi,$APP.yi,$APP.$i,$APP.ii,$APP.T,$APP.ji,$APP.Oi,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,pu],[a.getAttribute("min"),
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.M(h);h=$APP.I(k,$APP.bi);var m=$APP.I(k,pu),q=$APP.I(k,$APP.Vi),r=$APP.I(k,$APP.yi),u=$APP.I(k,$APP.$i),w=$APP.I(k,$APP.T),z=$APP.I(k,$APP.ii),A=$APP.I(k,$APP.ji),C=$APP.I(k,
4
+ $APP.Oi),F=$APP.I(k,$APP.Ag),E=$APP.I(k,$APP.W),Q=$APP.I(k,$APP.fh);k=$APP.I(k,$APP.Xi);q=mu(q,0);Q=mu(Q,100);w=$APP.lg.h($APP.kg.h(mu(w,0),q),Q);$APP.D.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.S.g(m):"1");F=typeof F==="string"&&$APP.Cc(qu,F)?F:"md";r=$APP.J(r);A=$APP.J(A);u=$APP.J(u);var V=Q>q?$APP.lg.h($APP.kg.h((w-q)/(Q-q)*100,0),100):0;h=$APP.bf([$APP.Vi,$APP.cj,$APP.ii,$APP.T,$APP.Oi,ru,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,$APP.U,pu,su],[q,
5
+ A,typeof z==="string"&&$APP.N("",z)?z:null,w,typeof C==="string"&&$APP.N("",C)?C:null,u,F,Q,typeof E==="string"&&$APP.N("",E)?E:null,typeof k==="string"&&$APP.N("",k)?k:null,typeof h==="string"&&$APP.N("",h)?h:null,r,m,V]);m=$APP.M(h);z=$APP.I(m,$APP.bi);C=$APP.I(m,$APP.U);E=$APP.I(m,pu);k=$APP.I(m,su);u=$APP.I(m,$APP.Vi);q=$APP.I(m,$APP.cj);h=$APP.I(m,$APP.T);A=$APP.I(m,$APP.Oi);Q=$APP.I(m,ru);r=$APP.I(m,$APP.Ag);w=$APP.I(m,$APP.W);F=$APP.I(m,$APP.fh);m=$APP.I(m,$APP.Xi);V=(V=w!=null)?V:Q;c.setAttribute("data-size",
6
+ r);ou(a,"data-disabled",C);ou(a,"data-readonly",q);d.style.display=$APP.n(V)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";f.textContent=$APP.n(Q)?""+$APP.S.g(h):"";f.style.display=$APP.n(Q)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");nu(b,"min",""+$APP.S.g(u));nu(b,"max",""+$APP.S.g(F));b.setAttribute("step",E);$APP.N(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));nu(b,"aria-valuemin",""+$APP.S.g(u));nu(b,"aria-valuemax",""+$APP.S.g(F));
7
+ nu(b,"aria-valuenow",""+$APP.S.g(h));b.setAttribute("aria-readonly",$APP.n(q)?"true":"false");$APP.n(z)?b.setAttribute("aria-label",z):w!=null?b.setAttribute("aria-label",w):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(C)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
+ $APP.S.g(h)):null}return null},uu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},vu=function(a){return function(){var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var f=a.getAttribute("min");return $APP.n(f)?f:"0"}()),e=parseFloat(function(){var f=a.getAttribute("max");return $APP.n(f)?f:"100"}());a.setAttribute("value",b);return uu(a,"x-slider-input",{value:c,min:d,max:e})}},wu=function(a){return function(){var b=
9
+ parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return uu(a,"x-slider-change",{value:b,min:c,max:d})}},xu=function(a){return function(b){var c=a.hasAttribute("disabled");return $APP.n($APP.n(c)?c:a.hasAttribute("readonly"))?(b.preventDefault(),b.stopPropagation()):null}},yu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=
10
+ $APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},zu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ou(this,c,$APP.J(d))}})},Au=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
11
+ get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?nu(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Cu=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Bu}});zu(b,"disabled","disabled");zu(b,"readOnly","readonly");zu(b,"showValue","show-value");Au(b,"value","value");Au(b,"min","min");Au(b,"max","max");Au(b,"step","step");Au(b,"name","name");
12
+ Au(b,"label","label");Au(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:#60a5fa;--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-focus-ring:#93c5fd;--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}";
13
+ e.setAttribute("part","base");f.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");f.appendChild(h);f.appendChild(k);e.appendChild(f);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:f,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}yu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
+ "input"),d=vu(this),e=wu(this),f=xu(this),h={input:d,change:e,keydown:f},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",f),this.__xSliderHandlers=h);return tu(this)};b.disconnectedCallback=function(){return yu(this)};b.attributeChangedCallback=function(){return tu(this)};b.formDisabledCallback=function(c){ou(this,"disabled",$APP.J(c));return tu(this)};b.formResetCallback=function(){nu(this,"value",""+$APP.S.g(0));return tu(this)};return a},Du=function(){return $APP.n(customElements.get("x-slider"))?
15
+ null:customElements.define("x-slider",Cu())},ru=new $APP.K(null,"show-value?","show-value?",-1960833108),su=new $APP.K(null,"fill-percent","fill-percent",-1813848228),pu=new $APP.K(null,"step","step",1288888124);var qu=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),Bu="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
+ $APP.bf([$APP.Vi,$APP.yi,$APP.Eg,$APP.ii,$APP.T,$APP.Ag,$APP.Bi,$APP.fh,$APP.W,pu],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"min"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"show-value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"size"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"readonly"],null),new $APP.P(null,
17
+ 2,[$APP.Z,$APP.X,$APP.Qg,"max"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"label"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"step"],null)]);$APP.wd(["x-slider-input",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Gh,$APP.Vi,$APP.Gh,$APP.fh,$APP.Gh],null)],null),"x-slider-change",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Gh,$APP.Vi,$APP.Gh,$APP.fh,$APP.Gh],null)],null)]);$APP.ka("app.exports.x_slider.init",Du);export const init=Du;
@@ -0,0 +1,6 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var xv=function(a){return a!=null&&$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},Dv=function(a){var b=new $APP.P(null,3,[$APP.hi,a.getAttribute("size"),yv,a.getAttribute("axis"),zv,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.I(b,$APP.hi),d=$APP.I(b,yv);b=$APP.I(b,zv);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Cc(Av,d)?d:"vertical";b=new $APP.P(null,3,[$APP.Ag,c,Bv,d,Cv,xv(b)],null);c=$APP.M(b);b=$APP.I(c,$APP.Ag);
3
+ d=$APP.I(c,Bv);c=$APP.I(c,Cv);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},Ev=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.S.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Fv=function(a){Object.defineProperty(a,
4
+ "grow",{get:function(){return xv(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},Gv=function(a){Ev(a,"size","1rem");Ev(a,"axis","vertical");Fv(a)},Iv=function(){var a=class extends HTMLElement{};a.observedAttributes=Hv;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
+ b.appendChild(c);this.__xSpacerRefs={root:b}}Dv(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&Dv(this);return null};Gv(a.prototype);return a},Jv=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",Iv());return null},Bv=new $APP.K(null,"axis","axis",-1215390822),Cv=new $APP.K(null,"grow?","grow?",2124334580),zv=new $APP.K(null,"grow-raw",
6
+ "grow-raw",441172903),yv=new $APP.K(null,"axis-raw","axis-raw",291213231);var Hv=["size","axis","grow"],Av=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null);$APP.ka("app.exports.x_spacer.init",Jv);export const init=Jv;
@@ -0,0 +1,7 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var aG=function(a){var b=new $APP.P(null,3,[$APP.Ag,a.getAttribute("size"),$APP.Wg,a.getAttribute("variant"),$APP.W,a.getAttribute("label")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.Wg);c=$APP.I(c,$APP.W);d=typeof d==="string"&&$APP.Cc(ZF,d)?d:"md";b=typeof b==="string"&&$APP.Cc($F,b)?b:"default";c=typeof c==="string"&&$APP.N("",c.trim())?c.trim():"Loading";d=$APP.M(new $APP.P(null,3,[$APP.Ag,d,$APP.Wg,b,$APP.W,c],null));b=$APP.I(d,$APP.Ag);c=$APP.I(d,$APP.Wg);d=$APP.I(d,$APP.W);
3
+ a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},bG=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.S.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",
4
+ ""+$APP.S.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},dG=function(){var a=class extends HTMLElement{};a.observedAttributes=cG;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
5
+ c=document.createElement("style"),d=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;justify-content:center;color-scheme:light dark;--x-spinner-size:24px;--x-spinner-color:currentColor;--x-spinner-track-color:rgba(0,0,0,0.12);--x-spinner-thickness:2px;--x-spinner-duration:0.75s;}@media (prefers-color-scheme:dark){:host{--x-spinner-track-color:rgba(255,255,255,0.15);}}:host([data-size\x3d'xs']){--x-spinner-size:16px;}:host([data-size\x3d'sm']){--x-spinner-size:20px;}:host([data-size\x3d'md']){--x-spinner-size:24px;}:host([data-size\x3d'lg']){--x-spinner-size:32px;}:host([data-size\x3d'xl']){--x-spinner-size:48px;}:host([data-variant\x3d'primary']){--x-spinner-color:#3b82f6;}:host([data-variant\x3d'success']){--x-spinner-color:#22c55e;}:host([data-variant\x3d'warning']){--x-spinner-color:#f59e0b;}:host([data-variant\x3d'danger']){--x-spinner-color:#ef4444;}[part\x3dring]{display:block;width:var(--x-spinner-size);height:var(--x-spinner-size);border-radius:50%;border:var(--x-spinner-thickness) solid var(--x-spinner-track-color);border-top-color:var(--x-spinner-color);box-sizing:border-box;animation:x-spinner-spin var(--x-spinner-duration) linear infinite;}@keyframes x-spinner-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){[part\x3dring]{animation-play-state:paused;}}";
6
+ d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}aG(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.l(this,"__xSpinnerInit"):b)&&aG(this);return null};bG(a.prototype);return a},eG=function(){$APP.n(customElements.get("x-spinner"))||
7
+ customElements.define("x-spinner",dG());return null};var cG=["size","variant","label"],ZF=new $APP.R(null,new $APP.P(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),$F=new $APP.R(null,new $APP.P(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ka("app.exports.x_spinner.init",eG);export const init=eG;