@vanelsas/baredom 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +163 -158
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +14 -14
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +15 -15
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +28 -28
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +41 -41
  20. package/dist/x-combobox.js +24 -24
  21. package/dist/x-command-palette.js +24 -24
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -20
  24. package/dist/x-copy.js +21 -21
  25. package/dist/x-currency-field.js +21 -21
  26. package/dist/x-date-picker.js +37 -37
  27. package/dist/x-divider.js +8 -8
  28. package/dist/x-drawer.js +11 -11
  29. package/dist/x-dropdown.js +9 -9
  30. package/dist/x-fieldset.js +5 -5
  31. package/dist/x-file-download.js +7 -7
  32. package/dist/x-form-field.js +15 -15
  33. package/dist/x-form.js +9 -9
  34. package/dist/x-gaussian-blur.js +18 -18
  35. package/dist/x-grid.js +6 -6
  36. package/dist/x-icon.js +7 -7
  37. package/dist/x-image.js +18 -18
  38. package/dist/x-kinetic-font.js +28 -28
  39. package/dist/x-kinetic-typography.js +37 -37
  40. package/dist/x-liquid-dock.js +35 -35
  41. package/dist/x-liquid-fill.js +39 -39
  42. package/dist/x-liquid-glass.js +39 -39
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +27 -27
  46. package/dist/x-modal.js +11 -11
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +13 -13
  49. package/dist/x-neural-glow.js +30 -30
  50. package/dist/x-notification-center.js +10 -10
  51. package/dist/x-organic-divider.js +15 -15
  52. package/dist/x-organic-progress.js +35 -35
  53. package/dist/x-organic-shape.js +12 -12
  54. package/dist/x-pagination.js +16 -16
  55. package/dist/x-particle-button.js +47 -47
  56. package/dist/x-popover.js +24 -14
  57. package/dist/x-progress-circle.js +7 -7
  58. package/dist/x-progress.js +7 -7
  59. package/dist/x-radio.js +11 -11
  60. package/dist/x-ripple-effect.js +11 -11
  61. package/dist/x-scroll-parallax.js +17 -17
  62. package/dist/x-scroll-stack.js +18 -18
  63. package/dist/x-scroll-story.js +33 -33
  64. package/dist/x-scroll-timeline.js +45 -45
  65. package/dist/x-scroll.js +40 -40
  66. package/dist/x-search-field.js +14 -14
  67. package/dist/x-select.js +9 -9
  68. package/dist/x-sidebar.js +16 -16
  69. package/dist/x-skeleton-group.js +13 -13
  70. package/dist/x-skeleton.js +1 -1
  71. package/dist/x-slider.js +16 -16
  72. package/dist/x-soft-body.js +20 -20
  73. package/dist/x-spacer.js +5 -5
  74. package/dist/x-spinner.js +5 -5
  75. package/dist/x-splash.js +13 -13
  76. package/dist/x-stat.js +9 -9
  77. package/dist/x-stepper.js +15 -15
  78. package/dist/x-switch.js +10 -10
  79. package/dist/x-tab.js +7 -7
  80. package/dist/x-table-cell.js +19 -19
  81. package/dist/x-table-row.js +10 -10
  82. package/dist/x-table.js +13 -13
  83. package/dist/x-tabs.js +11 -11
  84. package/dist/x-text-area.js +17 -17
  85. package/dist/x-theme.js +24 -24
  86. package/dist/x-timeline-item.js +21 -21
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +22 -22
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +12 -12
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var AB=function(a,b,c){return a.setAttribute(b,c)},BB=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},DB=function(a){a=$APP.zf([$APP.gl,$APP.ul,$APP.Ih,$APP.Yh,$APP.ij,CB,$APP.Bj,$APP.jm,$APP.Nj,$APP.sj],[a.getAttribute("name"),$APP.Ig(a.getAttribute("disabled")),$APP.Ig(a.getAttribute("required")),a.getAttribute("aria-labelledby"),$APP.Ig(a.getAttribute("checked")),$APP.Ig(a.getAttribute("indeterminate")),$APP.Ig(a.getAttribute("readonly")),a.getAttribute("value"),a.getAttribute("aria-label"),
3
- a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=$APP.D(b,$APP.Nj);var c=$APP.D(b,$APP.sj),d=$APP.D(b,$APP.gl),e=$APP.D(b,$APP.ul),g=$APP.D(b,$APP.Ih),h=$APP.D(b,$APP.Yh),l=$APP.D(b,$APP.ij),m=$APP.D(b,CB),p=$APP.D(b,$APP.Bj);b=$APP.D(b,$APP.jm);l=$APP.F(l);m=$APP.F(m);g=$APP.F(g);return $APP.zf([$APP.Fl,$APP.hi,$APP.bi,$APP.Im,$APP.uj,$APP.Oh,$APP.qj,$APP.Pi,$APP.Uj,$APP.Em,$APP.wl,$APP.X],[m,g,m?"mixed":l?"true":"false",$APP.F(p),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},EB=function(a){var b=
4
- $APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=DB(a);var d=$APP.X.g(b),e=$APP.uj.g(b),g=$APP.Fl.g(b);AB(c,"aria-checked",$APP.bi.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");AB(c,"aria-required",$APP.n($APP.hi.g(b))?"true":"false");AB(c,"aria-readonly",$APP.n($APP.Im.g(b))?"true":"false");var h=$APP.wl.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Uj.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",h):c.removeAttribute("aria-labelledby");
5
- h=$APP.Em.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");BB(a,"data-checked",e);BB(a,"data-indeterminate",g);BB(a,"data-disabled",d);a=$APP.k(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.Pi.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},FB=function(a){var b=DB(a),c=$APP.X.g(b),d=$APP.Im.g(b);if($APP.n($APP.n(c)?c:d))return null;c=$APP.uj.g(b);
6
- d=$APP.Fl.g(b);d=$APP.n(d)?new $APP.Q(null,2,[$APP.uj,!0,$APP.Fl,!1],null):new $APP.Q(null,2,[$APP.uj,$APP.r(c),$APP.Fl,!1],null);var e=$APP.uj.g(d);b=$APP.Pi.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.r(c.defaultPrevented)?(BB(a,"checked",e),BB(a,"indeterminate",$APP.Fl.g(d)),EB(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,checked:e},bubbles:!0,
7
- composed:!0,cancelable:!1}))):null},GB=function(a){return function(){return FB(a)}},HB=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),FB(a)):null}},IB=function(a){var b=$APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.k(b,"control");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},JB=function(a,
8
- b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return BB(this,c,$APP.F(d))}})},KB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?AB(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},MB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=LB;JB(b,
9
- "checked","checked");JB(b,"indeterminate","indeterminate");JB(b,"disabled","disabled");JB(b,"readOnly","readonly");JB(b,"required","required");KB(b,"name","name");KB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:var(--x-color-border,#6b7280);--x-checkbox-border-radius:4px;--x-checkbox-bg:var(--x-color-surface,#ffffff);--x-checkbox-bg-checked:var(--x-color-primary,#2563eb);--x-checkbox-bg-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-border-checked:var(--x-color-primary,#2563eb);--x-checkbox-border-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-check-color:var(--x-color-surface,#ffffff);--x-checkbox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:var(--x-color-border,#9ca3af);--x-checkbox-bg:var(--x-color-surface,#1f2937);--x-checkbox-bg-checked:var(--x-color-primary,#3b82f6);--x-checkbox-bg-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-border-checked:var(--x-color-primary,#3b82f6);--x-checkbox-border-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}IB(this);c=$APP.k(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=GB(this),e=HB(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.k(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.k(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return EB(this)};b.disconnectedCallback=function(){return IB(this)};b.attributeChangedCallback=
12
- function(){return EB(this)};b.formDisabledCallback=function(c){BB(this,"disabled",$APP.F(c));return EB(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return EB(this)};return a},NB=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",MB())},CB=new $APP.K(null,"indeterminate-present?","indeterminate-present?",-1714683438);var LB="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Qd(["x-checkbox-change-request",new $APP.Q(null,2,[$APP.Rl,!0,$APP.V,new $APP.Q(null,3,[$APP.Pi,$APP.Y,$APP.jk,$APP.Sj,$APP.Bl,$APP.Sj],null)],null),"x-checkbox-change",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,2,[$APP.Pi,$APP.Y,$APP.wm,$APP.Sj],null)],null)]);$APP.ha("baredom.exports.x_checkbox.init",NB);export const init=NB;
2
+ var XB=function(a,b,c){return a.setAttribute(b,c)},YB=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},$B=function(a){a=$APP.zf([$APP.ml,$APP.Al,$APP.Lh,$APP.ai,$APP.nj,ZB,$APP.Gj,$APP.qm,$APP.Sj,$APP.xj],[a.getAttribute("name"),$APP.Ig(a.getAttribute("disabled")),$APP.Ig(a.getAttribute("required")),a.getAttribute("aria-labelledby"),$APP.Ig(a.getAttribute("checked")),$APP.Ig(a.getAttribute("indeterminate")),$APP.Ig(a.getAttribute("readonly")),a.getAttribute("value"),a.getAttribute("aria-label"),
3
+ a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=$APP.D(b,$APP.Sj);var c=$APP.D(b,$APP.xj),d=$APP.D(b,$APP.ml),e=$APP.D(b,$APP.Al),g=$APP.D(b,$APP.Lh),h=$APP.D(b,$APP.ai),l=$APP.D(b,$APP.nj),m=$APP.D(b,ZB),p=$APP.D(b,$APP.Gj);b=$APP.D(b,$APP.qm);l=$APP.F(l);m=$APP.F(m);g=$APP.F(g);return $APP.zf([$APP.Ml,$APP.ki,$APP.ei,$APP.Pm,$APP.zj,$APP.Rh,$APP.vj,$APP.Ti,$APP.Zj,$APP.Lm,$APP.Cl,$APP.X],[m,g,m?"mixed":l?"true":"false",$APP.F(p),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},aC=function(a){var b=
4
+ $APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=$B(a);var d=$APP.X.g(b),e=$APP.zj.g(b),g=$APP.Ml.g(b);XB(c,"aria-checked",$APP.ei.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");XB(c,"aria-required",$APP.n($APP.ki.g(b))?"true":"false");XB(c,"aria-readonly",$APP.n($APP.Pm.g(b))?"true":"false");var h=$APP.Cl.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Zj.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",h):c.removeAttribute("aria-labelledby");
5
+ h=$APP.Lm.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");YB(a,"data-checked",e);YB(a,"data-indeterminate",g);YB(a,"data-disabled",d);a=$APP.k(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.Ti.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},bC=function(a){var b=$B(a),c=$APP.X.g(b),d=$APP.Pm.g(b);if($APP.n($APP.n(c)?c:d))return null;c=$APP.zj.g(b);
6
+ d=$APP.Ml.g(b);d=$APP.n(d)?new $APP.Q(null,2,[$APP.zj,!0,$APP.Ml,!1],null):new $APP.Q(null,2,[$APP.zj,$APP.r(c),$APP.Ml,!1],null);var e=$APP.zj.g(d);b=$APP.Ti.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.r(c.defaultPrevented)?(YB(a,"checked",e),YB(a,"indeterminate",$APP.Ml.g(d)),aC(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,checked:e},bubbles:!0,
7
+ composed:!0,cancelable:!1}))):null},cC=function(a){return function(){return bC(a)}},dC=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),bC(a)):null}},eC=function(a){var b=$APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.k(b,"control");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},fC=function(a,
8
+ b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return YB(this,c,$APP.F(d))}})},gC=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?XB(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},iC=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=hC;fC(b,
9
+ "checked","checked");fC(b,"indeterminate","indeterminate");fC(b,"disabled","disabled");fC(b,"readOnly","readonly");fC(b,"required","required");gC(b,"name","name");gC(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:var(--x-color-border,#6b7280);--x-checkbox-border-radius:4px;--x-checkbox-bg:var(--x-color-surface,#ffffff);--x-checkbox-bg-checked:var(--x-color-primary,#2563eb);--x-checkbox-bg-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-border-checked:var(--x-color-primary,#2563eb);--x-checkbox-border-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-check-color:var(--x-color-surface,#ffffff);--x-checkbox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:var(--x-color-border,#9ca3af);--x-checkbox-bg:var(--x-color-surface,#1f2937);--x-checkbox-bg-checked:var(--x-color-primary,#3b82f6);--x-checkbox-bg-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-border-checked:var(--x-color-primary,#3b82f6);--x-checkbox-border-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}eC(this);c=$APP.k(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=cC(this),e=dC(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.k(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.k(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return aC(this)};b.disconnectedCallback=function(){return eC(this)};b.attributeChangedCallback=
12
+ function(){return aC(this)};b.formDisabledCallback=function(c){YB(this,"disabled",$APP.F(c));return aC(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return aC(this)};return a},jC=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",iC())},ZB=new $APP.K(null,"indeterminate-present?","indeterminate-present?",-1714683438);var hC="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Qd(["x-checkbox-change-request",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,new $APP.Q(null,3,[$APP.Ti,$APP.Y,$APP.ok,$APP.Xj,$APP.Hl,$APP.Xj],null)],null),"x-checkbox-change",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,2,[$APP.Ti,$APP.Y,$APP.Dm,$APP.Xj],null)],null)]);$APP.ha("baredom.exports.x_checkbox.init",jC);export const init=jC;
package/dist/x-chip.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vs=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.ki);a=$APP.D(b,$APP.jm);var d=$APP.D(b,ts);b=$APP.D(b,$APP.ul);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.i(d,"false")||$APP.C.i(d,"0"));return new $APP.Q(null,4,[$APP.U,c,$APP.Pi,typeof a==="string"&&a.length>0?a:c,us,d,$APP.X,$APP.F(b)],null)},ws=function(a){var b=$APP.M(a);a=$APP.D(b,us);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},xs=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
- a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},ys=function(a){var b=vs(new $APP.Q(null,4,[$APP.ki,a.getAttribute("label"),$APP.jm,a.getAttribute("value"),ts,a.getAttribute("removable"),$APP.ul,a.hasAttribute("disabled")],null));if($APP.n(ws(b))){var c=$APP.M(b);b=$APP.D(c,$APP.Pi);c=$APP.D(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
4
- xs(a):null}else a=null;return a},As=function(a){var b=vs(new $APP.Q(null,4,[$APP.ki,a.getAttribute("label"),$APP.jm,a.getAttribute("value"),ts,a.getAttribute("removable"),$APP.ul,a.hasAttribute("disabled")],null)),c=$APP.M(b),d=$APP.D(c,$APP.U),e=$APP.D(c,us);c=$APP.D(c,$APP.X);var g=$APP.k(a,"__xChipRefs"),h=$APP.vm.g(g);g=zs.g(g);b=ws(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
- "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},Bs=function(a){function b(e){var g=e.key;return $APP.C.i(g,"Backspace")||$APP.C.i(g,"Delete")?(e.preventDefault(),ys(a)):null}function c(){return ys(a)}var d=zs.g($APP.k(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
- b);$APP.ja(a,"__xChipHandlers",{click:c,keydown:b})},Cs=function(a){var b=$APP.k(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.k(a,"__xChipRefs"),d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=zs.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},Ds=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
- enumerable:!0,configurable:!0})},Es=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Fs=function(a){Ds(a,"label");Ds(a,"value");Es(a,"removable");Es(a,"disabled")},Hs=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Gs}});b.connectedCallback=function(){if(!$APP.n($APP.k(this,
2
+ var Ss=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.ni);a=$APP.D(b,$APP.qm);var d=$APP.D(b,Qs);b=$APP.D(b,$APP.Al);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.i(d,"false")||$APP.C.i(d,"0"));return new $APP.Q(null,4,[$APP.U,c,$APP.Ti,typeof a==="string"&&a.length>0?a:c,Rs,d,$APP.X,$APP.F(b)],null)},Ts=function(a){var b=$APP.M(a);a=$APP.D(b,Rs);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},Us=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
+ a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},Vs=function(a){var b=Ss(new $APP.Q(null,4,[$APP.ni,a.getAttribute("label"),$APP.qm,a.getAttribute("value"),Qs,a.getAttribute("removable"),$APP.Al,a.hasAttribute("disabled")],null));if($APP.n(Ts(b))){var c=$APP.M(b);b=$APP.D(c,$APP.Ti);c=$APP.D(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
4
+ Us(a):null}else a=null;return a},Xs=function(a){var b=Ss(new $APP.Q(null,4,[$APP.ni,a.getAttribute("label"),$APP.qm,a.getAttribute("value"),Qs,a.getAttribute("removable"),$APP.Al,a.hasAttribute("disabled")],null)),c=$APP.M(b),d=$APP.D(c,$APP.U),e=$APP.D(c,Rs);c=$APP.D(c,$APP.X);var g=$APP.k(a,"__xChipRefs"),h=$APP.Cm.g(g);g=Ws.g(g);b=Ts(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
+ "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},Ys=function(a){function b(e){var g=e.key;return $APP.C.i(g,"Backspace")||$APP.C.i(g,"Delete")?(e.preventDefault(),Vs(a)):null}function c(){return Vs(a)}var d=Ws.g($APP.k(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
+ b);$APP.ja(a,"__xChipHandlers",{click:c,keydown:b})},Zs=function(a){var b=$APP.k(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.k(a,"__xChipRefs"),d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=Ws.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},$s=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
+ enumerable:!0,configurable:!0})},at=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},bt=function(a){$s(a,"label");$s(a,"value");at(a,"removable");at(a,"disabled")},dt=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return ct}});b.connectedCallback=function(){if(!$APP.n($APP.k(this,
8
8
  "__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),l=document.createElement("span");d.textContent=":host{--x-chip-bg:var(--x-color-surface,rgba(0,0,0,0.08));--x-chip-color:var(--x-color-text,rgba(0,0,0,0.80));--x-chip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chip-radius:var(--x-radius-full, 9999px);--x-chip-font-size:var(--x-font-size-sm, 0.875rem);--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:var(--x-color-surface,rgba(255,255,255,0.10));--x-chip-border:var(--x-color-border,rgba(255,255,255,0.16));--x-chip-color:var(--x-color-text,rgba(255,255,255,0.88));}}:host(:focus-visible){outline:2px solid var(--x-color-focus-ring,currentColor);outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
9
- e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");l.setAttribute("aria-hidden","true");l.textContent="×";h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.Q(null,4,[$APP.yi,c,$APP.xj,e,$APP.vm,g,zs,h],null)}Cs(this);Bs(this);return As(this)};b.disconnectedCallback=function(){return Cs(this)};b.attributeChangedCallback=function(c,
10
- d,e){return $APP.N(d,e)?$APP.n($APP.k(this,"__xChipRefs"))?As(this):null:null};Fs(b);return a},Is=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",Hs());return null},ts=new $APP.K(null,"removable-raw","removable-raw",1718453796),zs=new $APP.K(null,"remove-btn","remove-btn",843430290),us=new $APP.K(null,"removable?","removable?",1886800649);var Gs=["label","value","removable","disabled"];$APP.Qd(["x-chip-remove",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Pi,$APP.Y,$APP.U,$APP.Y],null),$APP.Rl,!0],null)]);$APP.ha("baredom.exports.x_chip.init",Is);export const init=Is;
9
+ e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");l.setAttribute("aria-hidden","true");l.textContent="×";h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.Q(null,4,[$APP.Ci,c,$APP.Cj,e,$APP.Cm,g,Ws,h],null)}Zs(this);Ys(this);return Xs(this)};b.disconnectedCallback=function(){return Zs(this)};b.attributeChangedCallback=function(c,
10
+ d,e){return $APP.N(d,e)?$APP.n($APP.k(this,"__xChipRefs"))?Xs(this):null:null};bt(b);return a},et=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",dt());return null},Qs=new $APP.K(null,"removable-raw","removable-raw",1718453796),Ws=new $APP.K(null,"remove-btn","remove-btn",843430290),Rs=new $APP.K(null,"removable?","removable?",1886800649);var ct=["label","value","removable","disabled"];$APP.Qd(["x-chip-remove",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Ti,$APP.Y,$APP.U,$APP.Y],null),$APP.Yl,!0],null)]);$APP.ha("baredom.exports.x_chip.init",et);export const init=et;
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var $4=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},a5=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.nh.i(0,$APP.oh.i(2E3,a))):300},b5=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n($4()))return b.style.height="",b.style.transition="";a=a5(a);b.style.height="0px";
3
- b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},c5=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n($4()))return b.style.height="0px",b.style.transition="";var d=""+$APP.T.g(b.offsetHeight)+
4
- "px";a=a5(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},d5=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(b,"trigger");b=$APP.k(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
5
- $APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},e5=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
6
- a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},f5=function(a){return function(){return e5(a,"pointer")}},g5=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),e5(a,"keyboard")):null}},h5=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.k(b,"trigger");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",
7
- $APP.k(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},i5=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.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},j5=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.n(b)?b:""},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("header",
8
- b)):b=this.removeAttribute("header");return b}})},k5=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.n(b)?(b=parseInt(b,10),$APP.n(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.r(isNaN(b))?(b=""+$APP.T.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},m5=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
9
- "observedAttributes",{get:function(){return l5}});i5(b,"open","open");i5(b,"disabled","disabled");j5(b);k5(b);b.toggle=function(){return e5(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
2
+ var r5=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},s5=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.qh.i(0,$APP.rh.i(2E3,a))):300},t5=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(r5()))return b.style.height="",b.style.transition="";a=s5(a);b.style.height="0px";
3
+ b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},u5=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(r5()))return b.style.height="0px",b.style.transition="";var d=""+$APP.T.g(b.offsetHeight)+
4
+ "px";a=s5(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},v5=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(b,"trigger");b=$APP.k(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
5
+ $APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},w5=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
6
+ a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},x5=function(a){return function(){return w5(a,"pointer")}},y5=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),w5(a,"keyboard")):null}},z5=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.k(b,"trigger");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",
7
+ $APP.k(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},A5=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.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},B5=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.n(b)?b:""},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("header",
8
+ b)):b=this.removeAttribute("header");return b}})},C5=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.n(b)?(b=parseInt(b,10),$APP.n(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.r(isNaN(b))?(b=""+$APP.T.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},E5=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
9
+ "observedAttributes",{get:function(){return D5}});A5(b,"open","open");A5(b,"disabled","disabled");B5(b);C5(b);b.toggle=function(){return w5(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
10
10
  q=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
11
11
  e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("id","trigger");g.setAttribute("aria-controls","panel");h.setAttribute("part","header-text");l.setAttribute("part","chevron");l.setAttribute("aria-hidden","true");m.setAttribute("part","content");m.setAttribute("id","panel");m.setAttribute("role","region");m.setAttribute("aria-labelledby","trigger");p.setAttribute("part","content-inner");q.setAttribute("name","content");l.textContent=
12
- "▼";g.appendChild(h);g.appendChild(l);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}h5(this);c=$APP.k(this,"__xCollapseRefs");$APP.n(c)&&(c=$APP.k(c,"trigger"),d=f5(this),e=g5(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return d5(this)};b.disconnectedCallback=function(){return h5(this)};b.attributeChangedCallback=
13
- function(c){a:{if($APP.n($APP.k(this,"__xCollapseRefs"))&&(d5(this),$APP.C.i(c,"open"))){c=$APP.k(this,"__xCollapseRefs");c=$APP.n(c)?$APP.k(c,"content"):null;var d=this.hasAttribute("open");c=$APP.n(c)?$APP.n(d)?b5(this,c):c5(this,c):null;break a}c=null}return c};return a},n5=function(){return $APP.n(customElements.get("x-collapse"))?null:customElements.define("x-collapse",m5())};var l5=["open","disabled","header","duration-ms"];$APP.Qd(["x-collapse-toggle",new $APP.Q(null,2,[$APP.Rl,!0,$APP.V,new $APP.Q(null,2,[$APP.Ol,$APP.Sj,$APP.$k,$APP.Y],null)],null),"x-collapse-change",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,1,[$APP.Ol,$APP.Sj],null)],null)]);$APP.ha("baredom.exports.x_collapse.init",n5);export const init=n5;
12
+ "▼";g.appendChild(h);g.appendChild(l);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}z5(this);c=$APP.k(this,"__xCollapseRefs");$APP.n(c)&&(c=$APP.k(c,"trigger"),d=x5(this),e=y5(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return v5(this)};b.disconnectedCallback=function(){return z5(this)};b.attributeChangedCallback=
13
+ function(c){a:{if($APP.n($APP.k(this,"__xCollapseRefs"))&&(v5(this),$APP.C.i(c,"open"))){c=$APP.k(this,"__xCollapseRefs");c=$APP.n(c)?$APP.k(c,"content"):null;var d=this.hasAttribute("open");c=$APP.n(c)?$APP.n(d)?t5(this,c):u5(this,c):null;break a}c=null}return c};return a},F5=function(){return $APP.n(customElements.get("x-collapse"))?null:customElements.define("x-collapse",E5())};var D5=["open","disabled","header","duration-ms"];$APP.Qd(["x-collapse-toggle",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,new $APP.Q(null,2,[$APP.Vl,$APP.Xj,$APP.fl,$APP.Y],null)],null),"x-collapse-change",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Vl,$APP.Xj],null)],null)]);$APP.ha("baredom.exports.x_collapse.init",F5);export const init=F5;
@@ -1,46 +1,46 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var uz=function(a){return(0,$APP.fh)(a)},vz=function(a,b){return $APP.oh.i($APP.nh.i(a,0),b)},wz=function(a){return $APP.fd(a,360)},xz=function(a){return vz(a,100)},yz=function(a){return vz(a,1)},Az=function(a){var b=typeof a==="string";a=b?$APP.eg(zz,a.trim()):b;return $APP.F(a)},Ez=function(a){if(typeof a==="string")if(a=$APP.eg(zz,a.trim()),$APP.n(a))switch($APP.Ac(a,0,null),a=$APP.Ac(a,1,null),$APP.z(a)){case 3:var b=parseInt(""+$APP.T.g($APP.pc(a,0))+$APP.T.g($APP.pc(a,0)),16),c=parseInt(""+
3
- $APP.T.g($APP.pc(a,1))+$APP.T.g($APP.pc(a,1)),16),d=parseInt(""+$APP.T.g($APP.pc(a,2))+$APP.T.g($APP.pc(a,2)),16);return new $APP.Q(null,4,[Bz,b,$APP.xl,c,Cz,d,Dz,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.Q(null,4,[Bz,b,$APP.xl,c,Cz,d,Dz,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.Q(null,4,[Bz,b,$APP.xl,c,Cz,d,Dz,parseInt(a.substring(6,
4
- 8),16)/255],null);default:return null}else return null;else return null},Iz=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.nh.C(a,b,$APP.uc([c])),e=$APP.oh.C(a,b,$APP.uc([c])),g=(d+e)/2,h=d-e;return h===0?new $APP.Q(null,3,[Fz,0,Gz,0,Hz,g*100],null):new $APP.Q(null,3,[Fz,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,Gz,(g>.5?h/(2-d-e):h/(d+e))*100,Hz,g*100],null)},Jz=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},Kz=function(a,
5
- b,c){a=wz(a)/360;b=xz(b)/100;c=xz(c)/100;if(b===0)return a=Math.round(c*255),new $APP.Q(null,3,[Bz,a,$APP.xl,a,Cz,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.Q(null,3,[Bz,Math.round(Jz(c,b,a+1/3)*255),$APP.xl,Math.round(Jz(c,b,a)*255),Cz,Math.round(Jz(c,b,a-1/3)*255)],null)},Lz=function(a,b,c){function d(e){e=vz(Math.round(e),255).toString(16);return $APP.z(e)<2?"0"+$APP.T.g(e):e}return"#"+$APP.T.g(d(a))+$APP.T.g(d(b))+$APP.T.g(d(c))},Mz=function(a,b,c,d){function e(g){g=vz(Math.round(g),
6
- 255).toString(16);return $APP.z(g)<2?"0"+$APP.T.g(g):g}return"#"+$APP.T.g(e(a))+$APP.T.g(e(b))+$APP.T.g(e(c))+$APP.T.g(e(yz(d)*255))},Oz=function(a,b,c){b=xz(b)/100;c=xz(c)/100;b=c+b*$APP.oh.i(c,1-c);return new $APP.Q(null,3,[Fz,wz(a),Gz,(b===0?0:2*(1-c/b))*100,Nz,b*100],null)},Pz=function(a,b,c){b=xz(b)/100;c=xz(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.oh.i(b,1-b);return new $APP.Q(null,3,[Fz,wz(a),Gz,c*100,Hz,b*100],null)},Qz=function(a,b){return new $APP.Q(null,2,[$APP.rl,xz(a),$APP.ql,100-
7
- xz(b)],null)},Rz=function(a){return typeof a==="string"&&Az(a)?(a=Ez(a),$APP.n(a)?Lz(Bz.g(a),$APP.xl.g(a),Cz.g(a)):null):"#000000"},Tz=function(a){return typeof a==="string"&&$APP.I(Sz,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Uz=function(a){return typeof a==="string"&&$APP.Jg(a)?$APP.We.m($APP.fe,$APP.ph.m($APP.ae.g(uz),$APP.ce(Az),$APP.ae.g(function(b){b=Ez(b);var c=$APP.M(b);b=$APP.D(c,Bz);var d=$APP.D(c,$APP.xl);c=$APP.D(c,Cz);return Lz(b,d,c)})),$APP.Hg(a,/,/)):$APP.fe},$z=function(a){var b=
8
- $APP.M(a),c=$APP.D(b,$APP.Ol),d=$APP.D(b,$APP.Fj),e=$APP.D(b,$APP.Pi);a=$APP.D(b,$APP.qj);var g=$APP.D(b,$APP.rj),h=$APP.D(b,$APP.mj),l=$APP.D(b,Vz),m=$APP.D(b,$APP.U),p=$APP.D(b,Wz);b=Rz(e);var q=function(){var H=Ez(e);return $APP.n(H)?H:Ez("#000000")}(),v=$APP.M(q);q=$APP.D(v,Bz);var x=$APP.D(v,$APP.xl),y=$APP.D(v,Cz);v=$APP.D(v,Dz);var A=function(){var H=typeof e==="string";if(H){H=e.trim();var G=$APP.eg(zz,H);$APP.n(G)?(H=$APP.eg(zz,H),H=$APP.u($APP.w(H)),H=8===$APP.z(H)):H=G;return H}return H}();
9
- v=$APP.n(A)?v:1;A=Iz(q,x,y);var B=$APP.M(A);A=$APP.D(B,Fz);var E=$APP.D(B,Gz);B=$APP.D(B,Hz);d=$APP.Ig(d);g=$APP.Ig(g);p=p!=null;c=c!=null;h=Tz(h);return $APP.zf([$APP.Im,Xz,$APP.qj,$APP.mj,Vz,Gz,Hz,Yz,Fz,$APP.U,$APP.sm,Zz,$APP.X,Dz],[g,p,$APP.Jg(a)?a:null,h,Uz(l),E,B,b,A,$APP.Jg(m)?m:null,$APP.C.i(h,"popover")&&c,p&&v<1?Mz(q,x,y,v):b,d,v])},aA=function(a,b,c,d){a="Hue "+$APP.T.g(Math.round(a))+", Saturation "+$APP.T.g(Math.round(b))+"%, Lightness "+$APP.T.g(Math.round(c))+"%";return d<1?""+$APP.T.g(a)+
10
- ", Opacity "+$APP.T.g(Math.round(d*100))+"%":a},bA=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.X);b=$APP.D(b,$APP.Im);return $APP.r(a)&&$APP.r(b)},cA=function(a){return document.createElement(a)},dA=function(a,b,c){return a.setAttribute(b,c)},eA=function(a){return $z($APP.zf([$APP.Ol,$APP.Fj,$APP.qj,$APP.Pi,$APP.rj,$APP.mj,Vz,$APP.U,Wz],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),
11
- a.getAttribute("label"),a.getAttribute("alpha")]))},fA=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Dh(d),bubbles:!0,composed:!0,cancelable:$APP.F(c)});return a.dispatchEvent(b)},gA=function(a,b){var c=Zz.g(b),d=Fz.g(b),e=Gz.g(b),g=Hz.g(b);b=Dz.g(b);return fA(a,"x-color-picker-input",!1,new $APP.Q(null,5,[$APP.Pi,c,Fz,d,Gz,e,Hz,g,Dz,b],null))},hA=function(a,b){var c=Zz.g(b),d=Fz.g(b),e=Gz.g(b),g=Hz.g(b);b=Dz.g(b);return fA(a,"x-color-picker-change",!0,new $APP.Q(null,5,[$APP.Pi,c,Fz,d,Gz,e,
12
- Hz,g,Dz,b],null))},iA=function(a,b,c,d,e,g){b=Kz(b,c,d);d=$APP.M(b);b=$APP.D(d,Bz);c=$APP.D(d,$APP.xl);d=$APP.D(d,Cz);e=$APP.n($APP.n(g)?e<1:g)?Mz(b,c,d,e):Lz(b,c,d);a.setAttribute("value",e)},jA=function(a,b,c,d){if($APP.N($APP.k(a,"__xColorPickerSwatchesCache"),c)){a.__xColorPickerSwatchesCache=c;b.innerHTML="";a=$APP.t(c);c=null;for(var e=0,g=0;;)if(g<e){var h=c.F(null,g),l=cA("button");l.setAttribute("part","swatch");l.setAttribute("type","button");l.setAttribute("role","option");l.setAttribute("aria-label",
13
- h);l.setAttribute("data-color",h);l.style.backgroundColor=h;b.appendChild(l);g+=1}else if(a=$APP.t(a))$APP.Nc(a)?(e=$APP.yb(a),a=$APP.zb(a),c=e,e=$APP.z(e)):(c=$APP.u(a),e=cA("button"),e.setAttribute("part","swatch"),e.setAttribute("type","button"),e.setAttribute("role","option"),e.setAttribute("aria-label",c),e.setAttribute("data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.w(a),c=null,e=0),g=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return dA(m,"aria-selected",
14
- $APP.C.i(m.getAttribute("data-color"),d)?"true":"false")})},kA=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=eA(a),d=$APP.M(c);c=$APP.D(d,Zz);var e=$APP.D(d,$APP.X),g=$APP.D(d,Dz),h=$APP.D(d,$APP.Im),l=$APP.D(d,Xz),m=$APP.D(d,$APP.mj),p=$APP.D(d,Vz),q=$APP.D(d,Gz),v=$APP.D(d,Hz),x=$APP.D(d,Yz),y=$APP.D(d,$APP.U),A=$APP.D(d,Fz);d=Oz(A,q,v);d=$APP.M(d);var B=$APP.D(d,Gz);q=$APP.D(d,Nz);d=Qz(Gz.g(d),q);q=$APP.k(b,"area");var E=$APP.k(b,"hue-strip"),H=$APP.k(b,"alpha-strip"),G=
15
- $APP.k(b,"preview-color"),J=$APP.k(b,"hex-input"),R=$APP.k(b,"trigger-swatch");b=$APP.k(b,"swatches");a.setAttribute("data-mode",m);a.style.setProperty("--_x-cp-hue",""+$APP.T.g(Math.round(A)));q.style.setProperty("--_x-cp-area-x",""+$APP.T.g($APP.rl.g(d).toFixed(2))+"%");q.style.setProperty("--_x-cp-area-y",""+$APP.T.g($APP.ql.g(d).toFixed(2))+"%");dA(q,"aria-valuetext",aA(A,B,v,g));$APP.n(y)&&q.setAttribute("aria-label",y);E.style.setProperty("--_x-cp-hue-pos",""+$APP.T.g((wz(A)/360*100).toFixed(2))+
16
- "%");dA(E,"aria-valuenow",""+$APP.T.g(Math.round(A)));$APP.n(l)?(H.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.T.g(Math.round(A))+","+$APP.T.g(Math.round(B))+"%,"+$APP.T.g(Math.round(v))+"%)"),H.style.setProperty("--_x-cp-alpha-pos",""+$APP.T.g((yz(g)*100).toFixed(2))+"%"),dA(H,"aria-valuenow",""+$APP.T.g(Math.round(g*100)))):H.style.display="none";G.style.backgroundColor=$APP.n(l)?function(){var aa=Kz(A,B,v),oa=$APP.M(aa);aa=$APP.D(oa,Bz);var Aa=$APP.D(oa,$APP.xl);oa=$APP.D(oa,
17
- Cz);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Aa)+","+$APP.T.g(oa)+","+$APP.T.g(g.toFixed(2))+")"}():x;a.shadowRoot.activeElement!==J&&(J.value=c);R.style.backgroundColor=$APP.n(l)?function(){var aa=Kz(A,B,v),oa=$APP.M(aa);aa=$APP.D(oa,Bz);var Aa=$APP.D(oa,$APP.xl);oa=$APP.D(oa,Cz);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Aa)+","+$APP.T.g(oa)+","+$APP.T.g(g.toFixed(2))+")"}():x;J.disabled=$APP.n(e)?e:h;jA(a,b,p,x);a=$APP.k(a,"__xColorPickerInternals");return $APP.n(a)?a.setFormValue(c):null}return null},
18
- mA=function(a,b){var c=a.getBoundingClientRect();a=b.clientY-c.top;var d=c.width,e=c.height;b=100*(vz(b.clientX-c.left,d)/d);a=100*(vz(a,e)/e);return new $APP.Q(null,2,[lA,xz(b),$APP.Hj,100-xz(a)],null)},nA=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(vz(b.clientX-a.left,c)/c);return xz(b)/100*360},oA=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(vz(b.clientX-a.left,c)/c);return xz(b)/100},qA=function(a,b){var c=eA(a);if(bA(c)&&$APP.I(pA,b.key)){b.preventDefault();
19
- var d=$APP.n(b.shiftKey)?10:1,e=Oz(Fz.g(c),Gz.g(c),Hz.g(c)),g=function(){switch(b.key){case "ArrowRight":return xz(Gz.g(e)+d);case "ArrowLeft":return xz(Gz.g(e)-d);default:return Gz.g(e)}}(),h=function(){switch(b.key){case "ArrowUp":return xz(Nz.g(e)+d);case "ArrowDown":return xz(Nz.g(e)-d);default:return Nz.g(e)}}();g=Pz(Fz.g(c),g,h);var l=$APP.M(g);g=$APP.D(l,Fz);h=$APP.D(l,Gz);l=$APP.D(l,Hz);iA(a,g,h,l,Dz.g(c),Xz.g(c));gA(a,eA(a));return hA(a,eA(a))}return null},sA=function(a,b){var c=eA(a);if(bA(c)&&
20
- $APP.I(rA,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return wz(Fz.g(c)+d);case "ArrowLeft":return wz(Fz.g(c)-d);case "Home":return 0;case "End":return 360;default:return Fz.g(c)}}();iA(a,e,Gz.g(c),Hz.g(c),Dz.g(c),Xz.g(c));gA(a,eA(a));return hA(a,eA(a))}return null},tA=function(a,b){var c=eA(a);if($APP.n(function(){var g=bA(c);return g?(g=Xz.g(c),$APP.n(g)?$APP.I(rA,b.key):g):g}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return yz(Dz.g(c)+
21
- d);case "ArrowLeft":return yz(Dz.g(c)-d);case "Home":return 0;case "End":return 1;default:return Dz.g(c)}}();iA(a,Fz.g(c),Gz.g(c),Hz.g(c),e,!0);gA(a,eA(a));return hA(a,eA(a))}return null},uA=function(a){var b=eA(a);return bA(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){a.setAttribute("value",c.sRGBHex);return hA(a,eA(a))}).catch(function(){return null}):null},vA=function(a){if($APP.n(a.hasAttribute("open")))return null;a.setAttribute("open","");a=$APP.k(a,"__xColorPickerRefs");
22
- if($APP.n(a)){var b=$APP.k(a,"area");return setTimeout(function(){return b.focus()},0)}return null},wA=function(a){return $APP.n(a.hasAttribute("open"))?(a.removeAttribute("open"),a=$APP.k(a,"__xColorPickerRefs"),$APP.n(a)?$APP.k(a,"trigger").focus():null):null},xA=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=$APP.k(b,"area"),d=$APP.k(b,"hue-strip"),e=$APP.k(b,"alpha-strip"),g=$APP.k(b,"hex-input"),h=$APP.k(b,"swatches"),l=$APP.k(b,"eyedropper"),m=$APP.k(b,"copy"),p=$APP.k(b,
23
- "trigger");b=$APP.k(b,"panel");var q=function(da){var qa=eA(a);if(bA(qa)){da.preventDefault();var Ma=$APP.k($APP.k(a,"__xColorPickerRefs"),"area");Ma.setPointerCapture(da.pointerId);a.__xColorPickerDragging="area";da=mA(Ma,da);Ma=$APP.M(da);da=$APP.D(Ma,lA);Ma=$APP.D(Ma,$APP.Hj);da=Pz(Fz.g(qa),da,Ma);var Wb=$APP.M(da);da=$APP.D(Wb,Fz);Ma=$APP.D(Wb,Gz);Wb=$APP.D(Wb,Hz);iA(a,da,Ma,Wb,Dz.g(qa),Xz.g(qa));qa=gA(a,eA(a))}else qa=null;return qa},v=function(da){if($APP.C.i("area",$APP.k(a,"__xColorPickerDragging"))){var qa=
24
- eA(a);da=mA($APP.k($APP.k(a,"__xColorPickerRefs"),"area"),da);var Ma=$APP.M(da);da=$APP.D(Ma,lA);Ma=$APP.D(Ma,$APP.Hj);da=Pz(Fz.g(qa),da,Ma);var Wb=$APP.M(da);da=$APP.D(Wb,Fz);Ma=$APP.D(Wb,Gz);Wb=$APP.D(Wb,Hz);iA(a,da,Ma,Wb,Dz.g(qa),Xz.g(qa));qa=gA(a,eA(a))}else qa=null;return qa},x=function(){if($APP.C.i("area",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var da=hA(a,eA(a))}else da=null;return da},y=function(da){return qA(a,da)},A=function(da){var qa=eA(a);if(bA(qa)){da.preventDefault();
25
- var Ma=$APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip");Ma.setPointerCapture(da.pointerId);a.__xColorPickerDragging="hue";da=nA(Ma,da);iA(a,da,Gz.g(qa),Hz.g(qa),Dz.g(qa),Xz.g(qa));qa=gA(a,eA(a))}else qa=null;return qa},B=function(da){if($APP.C.i("hue",$APP.k(a,"__xColorPickerDragging"))){var qa=eA(a);da=nA($APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip"),da);iA(a,da,Gz.g(qa),Hz.g(qa),Dz.g(qa),Xz.g(qa));qa=gA(a,eA(a))}else qa=null;return qa},E=function(){if($APP.C.i("hue",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=
26
- null;var da=hA(a,eA(a))}else da=null;return da},H=function(da){return sA(a,da)},G=function(da){var qa=eA(a);var Ma=(Ma=bA(qa))?Xz.g(qa):Ma;$APP.n(Ma)?(da.preventDefault(),Ma=$APP.k($APP.k(a,"__xColorPickerRefs"),"alpha-strip"),Ma.setPointerCapture(da.pointerId),a.__xColorPickerDragging="alpha",da=oA(Ma,da),iA(a,Fz.g(qa),Gz.g(qa),Hz.g(qa),da,!0),qa=gA(a,eA(a))):qa=null;return qa},J=function(da){if($APP.C.i("alpha",$APP.k(a,"__xColorPickerDragging"))){var qa=eA(a);da=oA($APP.k($APP.k(a,"__xColorPickerRefs"),
27
- "alpha-strip"),da);iA(a,Fz.g(qa),Gz.g(qa),Hz.g(qa),da,!0);qa=gA(a,eA(a))}else qa=null;return qa},R=function(){if($APP.C.i("alpha",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var da=hA(a,eA(a))}else da=null;return da},aa=function(da){return tA(a,da)},oa=function(da){a:{if($APP.C.i("Enter",da.key)){da.preventDefault();da=$APP.k($APP.k(a,"__xColorPickerRefs"),"hex-input");var qa=da.value,Ma=eA(a);if(bA(Ma)){if(Az(qa)){a.setAttribute("value",qa);da=hA(a,eA(a));break a}da=da.value=
28
- Zz.g(Ma);break a}}da=null}return da},Aa=function(da){a:{var qa=eA(a);if(bA(qa)&&(da=da.target,$APP.n(da.hasAttribute("data-color")))){da=da.getAttribute("data-color");a.setAttribute("value",da);da=hA(a,eA(a));break a}da=null}return da},La=function(){return uA(a)},bb=function(){var da=eA(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(Zz.g(da)):null},cb=function(){var da=eA(a);return $APP.C.i("popover",$APP.mj.g(da))&&$APP.r($APP.X.g(da))?$APP.n($APP.sm.g(da))?wA(a):vA(a):null},
29
- mb=function(da){$APP.C.i("Escape",da.key)&&$APP.C.i("popover",$APP.mj.g(eA(a)))?(da.preventDefault(),da.stopPropagation(),da=wA(a)):da=null;return da},Lb=function(da){return da.stopPropagation()},db=function(da){return $APP.n(a.hasAttribute("open"))?$APP.n(da.composedPath().some(function(qa){return qa===a}))?null:wA(a):null};c.addEventListener("pointerdown",q);c.addEventListener("pointermove",v);c.addEventListener("pointerup",x);c.addEventListener("keydown",y);d.addEventListener("pointerdown",A);
30
- d.addEventListener("pointermove",B);d.addEventListener("pointerup",E);d.addEventListener("keydown",H);e.addEventListener("pointerdown",G);e.addEventListener("pointermove",J);e.addEventListener("pointerup",R);e.addEventListener("keydown",aa);g.addEventListener("keydown",oa);h.addEventListener("click",Aa);l.addEventListener("click",La);m.addEventListener("click",bb);p.addEventListener("click",cb);b.addEventListener("keydown",mb);b.addEventListener("pointerdown",Lb);document.addEventListener("pointerdown",
31
- db,!0);$APP.Cg(a,"__xColorPickerHandlers",{"area-move":v,copy:bb,"panel-key":mb,"alpha-up":R,"hue-up":E,"alpha-key":aa,"alpha-move":J,"hex-key":oa,swatch:Aa,"area-up":x,"alpha-down":G,"area-key":y,"hue-down":A,"hue-key":H,"hue-move":B,eyedrop:La,"panel-pd":Lb,trigger:cb,"doc-click":db,"area-down":q})}},yA=function(a){var b=$APP.k(a,"__xColorPickerRefs"),c=$APP.k(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(b,"area"),e=$APP.k(b,"hue-strip"),g=$APP.k(b,"alpha-strip"),h=$APP.k(b,
2
+ var Rz=function(a){return(0,$APP.ih)(a)},Sz=function(a,b){return $APP.rh.i($APP.qh.i(a,0),b)},Tz=function(a){return $APP.fd(a,360)},Uz=function(a){return Sz(a,100)},Vz=function(a){return Sz(a,1)},Xz=function(a){var b=typeof a==="string";a=b?$APP.eg(Wz,a.trim()):b;return $APP.F(a)},aA=function(a){if(typeof a==="string")if(a=$APP.eg(Wz,a.trim()),$APP.n(a))switch($APP.Ac(a,0,null),a=$APP.Ac(a,1,null),$APP.z(a)){case 3:var b=parseInt(""+$APP.T.g($APP.pc(a,0))+$APP.T.g($APP.pc(a,0)),16),c=parseInt(""+
3
+ $APP.T.g($APP.pc(a,1))+$APP.T.g($APP.pc(a,1)),16),d=parseInt(""+$APP.T.g($APP.pc(a,2))+$APP.T.g($APP.pc(a,2)),16);return new $APP.Q(null,4,[Yz,b,$APP.Dl,c,Zz,d,$z,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.Q(null,4,[Yz,b,$APP.Dl,c,Zz,d,$z,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.Q(null,4,[Yz,b,$APP.Dl,c,Zz,d,$z,parseInt(a.substring(6,
4
+ 8),16)/255],null);default:return null}else return null;else return null},eA=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.qh.C(a,b,$APP.uc([c])),e=$APP.rh.C(a,b,$APP.uc([c])),g=(d+e)/2,h=d-e;return h===0?new $APP.Q(null,3,[bA,0,cA,0,dA,g*100],null):new $APP.Q(null,3,[bA,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,cA,(g>.5?h/(2-d-e):h/(d+e))*100,dA,g*100],null)},fA=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},gA=function(a,
5
+ b,c){a=Tz(a)/360;b=Uz(b)/100;c=Uz(c)/100;if(b===0)return a=Math.round(c*255),new $APP.Q(null,3,[Yz,a,$APP.Dl,a,Zz,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.Q(null,3,[Yz,Math.round(fA(c,b,a+1/3)*255),$APP.Dl,Math.round(fA(c,b,a)*255),Zz,Math.round(fA(c,b,a-1/3)*255)],null)},hA=function(a,b,c){function d(e){e=Sz(Math.round(e),255).toString(16);return $APP.z(e)<2?"0"+$APP.T.g(e):e}return"#"+$APP.T.g(d(a))+$APP.T.g(d(b))+$APP.T.g(d(c))},iA=function(a,b,c,d){function e(g){g=Sz(Math.round(g),
6
+ 255).toString(16);return $APP.z(g)<2?"0"+$APP.T.g(g):g}return"#"+$APP.T.g(e(a))+$APP.T.g(e(b))+$APP.T.g(e(c))+$APP.T.g(e(Vz(d)*255))},kA=function(a,b,c){b=Uz(b)/100;c=Uz(c)/100;b=c+b*$APP.rh.i(c,1-c);return new $APP.Q(null,3,[bA,Tz(a),cA,(b===0?0:2*(1-c/b))*100,jA,b*100],null)},lA=function(a,b,c){b=Uz(b)/100;c=Uz(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.rh.i(b,1-b);return new $APP.Q(null,3,[bA,Tz(a),cA,c*100,dA,b*100],null)},mA=function(a,b){return new $APP.Q(null,2,[$APP.xl,Uz(a),$APP.wl,100-
7
+ Uz(b)],null)},nA=function(a){return typeof a==="string"&&Xz(a)?(a=aA(a),$APP.n(a)?hA(Yz.g(a),$APP.Dl.g(a),Zz.g(a)):null):"#000000"},pA=function(a){return typeof a==="string"&&$APP.I(oA,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},qA=function(a){return typeof a==="string"&&$APP.Jg(a)?$APP.We.m($APP.fe,$APP.sh.m($APP.ae.g(Rz),$APP.ce(Xz),$APP.ae.g(function(b){b=aA(b);var c=$APP.M(b);b=$APP.D(c,Yz);var d=$APP.D(c,$APP.Dl);c=$APP.D(c,Zz);return hA(b,d,c)})),$APP.Hg(a,/,/)):$APP.fe},wA=function(a){var b=
8
+ $APP.M(a),c=$APP.D(b,$APP.Vl),d=$APP.D(b,$APP.Nj),e=$APP.D(b,$APP.Ti);a=$APP.D(b,$APP.vj);var g=$APP.D(b,$APP.wj),h=$APP.D(b,$APP.rj),l=$APP.D(b,rA),m=$APP.D(b,$APP.U),p=$APP.D(b,sA);b=nA(e);var q=function(){var G=aA(e);return $APP.n(G)?G:aA("#000000")}(),v=$APP.M(q);q=$APP.D(v,Yz);var x=$APP.D(v,$APP.Dl),y=$APP.D(v,Zz);v=$APP.D(v,$z);var A=function(){var G=typeof e==="string";if(G){G=e.trim();var H=$APP.eg(Wz,G);$APP.n(H)?(G=$APP.eg(Wz,G),G=$APP.u($APP.w(G)),G=8===$APP.z(G)):G=H;return G}return G}();
9
+ v=$APP.n(A)?v:1;A=eA(q,x,y);var B=$APP.M(A);A=$APP.D(B,bA);var E=$APP.D(B,cA);B=$APP.D(B,dA);d=$APP.Ig(d);g=$APP.Ig(g);p=p!=null;c=c!=null;h=pA(h);return $APP.zf([$APP.Pm,tA,$APP.vj,$APP.rj,rA,cA,dA,uA,bA,$APP.U,$APP.zm,vA,$APP.X,$z],[g,p,$APP.Jg(a)?a:null,h,qA(l),E,B,b,A,$APP.Jg(m)?m:null,$APP.C.i(h,"popover")&&c,p&&v<1?iA(q,x,y,v):b,d,v])},xA=function(a,b,c,d){a="Hue "+$APP.T.g(Math.round(a))+", Saturation "+$APP.T.g(Math.round(b))+"%, Lightness "+$APP.T.g(Math.round(c))+"%";return d<1?""+$APP.T.g(a)+
10
+ ", Opacity "+$APP.T.g(Math.round(d*100))+"%":a},yA=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.X);b=$APP.D(b,$APP.Pm);return $APP.r(a)&&$APP.r(b)},zA=function(a){return document.createElement(a)},AA=function(a,b,c){return a.setAttribute(b,c)},BA=function(a){return wA($APP.zf([$APP.Vl,$APP.Nj,$APP.vj,$APP.Ti,$APP.wj,$APP.rj,rA,$APP.U,sA],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),
11
+ a.getAttribute("label"),a.getAttribute("alpha")]))},CA=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Gh(d),bubbles:!0,composed:!0,cancelable:$APP.F(c)});return a.dispatchEvent(b)},DA=function(a,b){var c=vA.g(b),d=bA.g(b),e=cA.g(b),g=dA.g(b);b=$z.g(b);return CA(a,"x-color-picker-input",!1,new $APP.Q(null,5,[$APP.Ti,c,bA,d,cA,e,dA,g,$z,b],null))},EA=function(a,b){var c=vA.g(b),d=bA.g(b),e=cA.g(b),g=dA.g(b);b=$z.g(b);return CA(a,"x-color-picker-change",!0,new $APP.Q(null,5,[$APP.Ti,c,bA,d,cA,e,
12
+ dA,g,$z,b],null))},FA=function(a,b,c,d,e,g){b=gA(b,c,d);d=$APP.M(b);b=$APP.D(d,Yz);c=$APP.D(d,$APP.Dl);d=$APP.D(d,Zz);e=$APP.n($APP.n(g)?e<1:g)?iA(b,c,d,e):hA(b,c,d);a.setAttribute("value",e)},GA=function(a,b,c,d){if($APP.N($APP.k(a,"__xColorPickerSwatchesCache"),c)){a.__xColorPickerSwatchesCache=c;b.innerHTML="";a=$APP.t(c);c=null;for(var e=0,g=0;;)if(g<e){var h=c.F(null,g),l=zA("button");l.setAttribute("part","swatch");l.setAttribute("type","button");l.setAttribute("role","option");l.setAttribute("aria-label",
13
+ h);l.setAttribute("data-color",h);l.style.backgroundColor=h;b.appendChild(l);g+=1}else if(a=$APP.t(a))$APP.Nc(a)?(e=$APP.yb(a),a=$APP.zb(a),c=e,e=$APP.z(e)):(c=$APP.u(a),e=zA("button"),e.setAttribute("part","swatch"),e.setAttribute("type","button"),e.setAttribute("role","option"),e.setAttribute("aria-label",c),e.setAttribute("data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.w(a),c=null,e=0),g=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return AA(m,"aria-selected",
14
+ $APP.C.i(m.getAttribute("data-color"),d)?"true":"false")})},HA=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=BA(a),d=$APP.M(c);c=$APP.D(d,vA);var e=$APP.D(d,$APP.X),g=$APP.D(d,$z),h=$APP.D(d,$APP.Pm),l=$APP.D(d,tA),m=$APP.D(d,$APP.rj),p=$APP.D(d,rA),q=$APP.D(d,cA),v=$APP.D(d,dA),x=$APP.D(d,uA),y=$APP.D(d,$APP.U),A=$APP.D(d,bA);d=kA(A,q,v);d=$APP.M(d);var B=$APP.D(d,cA);q=$APP.D(d,jA);d=mA(cA.g(d),q);q=$APP.k(b,"area");var E=$APP.k(b,"hue-strip"),G=$APP.k(b,"alpha-strip"),H=
15
+ $APP.k(b,"preview-color"),J=$APP.k(b,"hex-input"),S=$APP.k(b,"trigger-swatch");b=$APP.k(b,"swatches");a.setAttribute("data-mode",m);a.style.setProperty("--_x-cp-hue",""+$APP.T.g(Math.round(A)));q.style.setProperty("--_x-cp-area-x",""+$APP.T.g($APP.xl.g(d).toFixed(2))+"%");q.style.setProperty("--_x-cp-area-y",""+$APP.T.g($APP.wl.g(d).toFixed(2))+"%");AA(q,"aria-valuetext",xA(A,B,v,g));$APP.n(y)&&q.setAttribute("aria-label",y);E.style.setProperty("--_x-cp-hue-pos",""+$APP.T.g((Tz(A)/360*100).toFixed(2))+
16
+ "%");AA(E,"aria-valuenow",""+$APP.T.g(Math.round(A)));$APP.n(l)?(G.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.T.g(Math.round(A))+","+$APP.T.g(Math.round(B))+"%,"+$APP.T.g(Math.round(v))+"%)"),G.style.setProperty("--_x-cp-alpha-pos",""+$APP.T.g((Vz(g)*100).toFixed(2))+"%"),AA(G,"aria-valuenow",""+$APP.T.g(Math.round(g*100)))):G.style.display="none";H.style.backgroundColor=$APP.n(l)?function(){var aa=gA(A,B,v),oa=$APP.M(aa);aa=$APP.D(oa,Yz);var Aa=$APP.D(oa,$APP.Dl);oa=$APP.D(oa,
17
+ Zz);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Aa)+","+$APP.T.g(oa)+","+$APP.T.g(g.toFixed(2))+")"}():x;a.shadowRoot.activeElement!==J&&(J.value=c);S.style.backgroundColor=$APP.n(l)?function(){var aa=gA(A,B,v),oa=$APP.M(aa);aa=$APP.D(oa,Yz);var Aa=$APP.D(oa,$APP.Dl);oa=$APP.D(oa,Zz);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Aa)+","+$APP.T.g(oa)+","+$APP.T.g(g.toFixed(2))+")"}():x;J.disabled=$APP.n(e)?e:h;GA(a,b,p,x);a=$APP.k(a,"__xColorPickerInternals");return $APP.n(a)?a.setFormValue(c):null}return null},
18
+ JA=function(a,b){var c=a.getBoundingClientRect();a=b.clientY-c.top;var d=c.width,e=c.height;b=100*(Sz(b.clientX-c.left,d)/d);a=100*(Sz(a,e)/e);return new $APP.Q(null,2,[IA,Uz(b),$APP.Pj,100-Uz(a)],null)},KA=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(Sz(b.clientX-a.left,c)/c);return Uz(b)/100*360},LA=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(Sz(b.clientX-a.left,c)/c);return Uz(b)/100},NA=function(a,b){var c=BA(a);if(yA(c)&&$APP.I(MA,b.key)){b.preventDefault();
19
+ var d=$APP.n(b.shiftKey)?10:1,e=kA(bA.g(c),cA.g(c),dA.g(c)),g=function(){switch(b.key){case "ArrowRight":return Uz(cA.g(e)+d);case "ArrowLeft":return Uz(cA.g(e)-d);default:return cA.g(e)}}(),h=function(){switch(b.key){case "ArrowUp":return Uz(jA.g(e)+d);case "ArrowDown":return Uz(jA.g(e)-d);default:return jA.g(e)}}();g=lA(bA.g(c),g,h);var l=$APP.M(g);g=$APP.D(l,bA);h=$APP.D(l,cA);l=$APP.D(l,dA);FA(a,g,h,l,$z.g(c),tA.g(c));DA(a,BA(a));return EA(a,BA(a))}return null},PA=function(a,b){var c=BA(a);if(yA(c)&&
20
+ $APP.I(OA,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return Tz(bA.g(c)+d);case "ArrowLeft":return Tz(bA.g(c)-d);case "Home":return 0;case "End":return 360;default:return bA.g(c)}}();FA(a,e,cA.g(c),dA.g(c),$z.g(c),tA.g(c));DA(a,BA(a));return EA(a,BA(a))}return null},QA=function(a,b){var c=BA(a);if($APP.n(function(){var g=yA(c);return g?(g=tA.g(c),$APP.n(g)?$APP.I(OA,b.key):g):g}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return Vz($z.g(c)+
21
+ d);case "ArrowLeft":return Vz($z.g(c)-d);case "Home":return 0;case "End":return 1;default:return $z.g(c)}}();FA(a,bA.g(c),cA.g(c),dA.g(c),e,!0);DA(a,BA(a));return EA(a,BA(a))}return null},RA=function(a){var b=BA(a);return yA(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){a.setAttribute("value",c.sRGBHex);return EA(a,BA(a))}).catch(function(){return null}):null},SA=function(a){if($APP.n(a.hasAttribute("open")))return null;a.setAttribute("open","");a=$APP.k(a,"__xColorPickerRefs");
22
+ if($APP.n(a)){var b=$APP.k(a,"area");return setTimeout(function(){return b.focus()},0)}return null},TA=function(a){return $APP.n(a.hasAttribute("open"))?(a.removeAttribute("open"),a=$APP.k(a,"__xColorPickerRefs"),$APP.n(a)?$APP.k(a,"trigger").focus():null):null},UA=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=$APP.k(b,"area"),d=$APP.k(b,"hue-strip"),e=$APP.k(b,"alpha-strip"),g=$APP.k(b,"hex-input"),h=$APP.k(b,"swatches"),l=$APP.k(b,"eyedropper"),m=$APP.k(b,"copy"),p=$APP.k(b,
23
+ "trigger");b=$APP.k(b,"panel");var q=function(da){var ra=BA(a);if(yA(ra)){da.preventDefault();var Pa=$APP.k($APP.k(a,"__xColorPickerRefs"),"area");Pa.setPointerCapture(da.pointerId);a.__xColorPickerDragging="area";da=JA(Pa,da);Pa=$APP.M(da);da=$APP.D(Pa,IA);Pa=$APP.D(Pa,$APP.Pj);da=lA(bA.g(ra),da,Pa);var Xb=$APP.M(da);da=$APP.D(Xb,bA);Pa=$APP.D(Xb,cA);Xb=$APP.D(Xb,dA);FA(a,da,Pa,Xb,$z.g(ra),tA.g(ra));ra=DA(a,BA(a))}else ra=null;return ra},v=function(da){if($APP.C.i("area",$APP.k(a,"__xColorPickerDragging"))){var ra=
24
+ BA(a);da=JA($APP.k($APP.k(a,"__xColorPickerRefs"),"area"),da);var Pa=$APP.M(da);da=$APP.D(Pa,IA);Pa=$APP.D(Pa,$APP.Pj);da=lA(bA.g(ra),da,Pa);var Xb=$APP.M(da);da=$APP.D(Xb,bA);Pa=$APP.D(Xb,cA);Xb=$APP.D(Xb,dA);FA(a,da,Pa,Xb,$z.g(ra),tA.g(ra));ra=DA(a,BA(a))}else ra=null;return ra},x=function(){if($APP.C.i("area",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var da=EA(a,BA(a))}else da=null;return da},y=function(da){return NA(a,da)},A=function(da){var ra=BA(a);if(yA(ra)){da.preventDefault();
25
+ var Pa=$APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip");Pa.setPointerCapture(da.pointerId);a.__xColorPickerDragging="hue";da=KA(Pa,da);FA(a,da,cA.g(ra),dA.g(ra),$z.g(ra),tA.g(ra));ra=DA(a,BA(a))}else ra=null;return ra},B=function(da){if($APP.C.i("hue",$APP.k(a,"__xColorPickerDragging"))){var ra=BA(a);da=KA($APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip"),da);FA(a,da,cA.g(ra),dA.g(ra),$z.g(ra),tA.g(ra));ra=DA(a,BA(a))}else ra=null;return ra},E=function(){if($APP.C.i("hue",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=
26
+ null;var da=EA(a,BA(a))}else da=null;return da},G=function(da){return PA(a,da)},H=function(da){var ra=BA(a);var Pa=(Pa=yA(ra))?tA.g(ra):Pa;$APP.n(Pa)?(da.preventDefault(),Pa=$APP.k($APP.k(a,"__xColorPickerRefs"),"alpha-strip"),Pa.setPointerCapture(da.pointerId),a.__xColorPickerDragging="alpha",da=LA(Pa,da),FA(a,bA.g(ra),cA.g(ra),dA.g(ra),da,!0),ra=DA(a,BA(a))):ra=null;return ra},J=function(da){if($APP.C.i("alpha",$APP.k(a,"__xColorPickerDragging"))){var ra=BA(a);da=LA($APP.k($APP.k(a,"__xColorPickerRefs"),
27
+ "alpha-strip"),da);FA(a,bA.g(ra),cA.g(ra),dA.g(ra),da,!0);ra=DA(a,BA(a))}else ra=null;return ra},S=function(){if($APP.C.i("alpha",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var da=EA(a,BA(a))}else da=null;return da},aa=function(da){return QA(a,da)},oa=function(da){a:{if($APP.C.i("Enter",da.key)){da.preventDefault();da=$APP.k($APP.k(a,"__xColorPickerRefs"),"hex-input");var ra=da.value,Pa=BA(a);if(yA(Pa)){if(Xz(ra)){a.setAttribute("value",ra);da=EA(a,BA(a));break a}da=da.value=
28
+ vA.g(Pa);break a}}da=null}return da},Aa=function(da){a:{var ra=BA(a);if(yA(ra)&&(da=da.target,$APP.n(da.hasAttribute("data-color")))){da=da.getAttribute("data-color");a.setAttribute("value",da);da=EA(a,BA(a));break a}da=null}return da},Na=function(){return RA(a)},cb=function(){var da=BA(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(vA.g(da)):null},db=function(){var da=BA(a);return $APP.C.i("popover",$APP.rj.g(da))&&$APP.r($APP.X.g(da))?$APP.n($APP.zm.g(da))?TA(a):SA(a):null},
29
+ mb=function(da){$APP.C.i("Escape",da.key)&&$APP.C.i("popover",$APP.rj.g(BA(a)))?(da.preventDefault(),da.stopPropagation(),da=TA(a)):da=null;return da},Lb=function(da){return da.stopPropagation()},eb=function(da){return $APP.n(a.hasAttribute("open"))?$APP.n(da.composedPath().some(function(ra){return ra===a}))?null:TA(a):null};c.addEventListener("pointerdown",q);c.addEventListener("pointermove",v);c.addEventListener("pointerup",x);c.addEventListener("keydown",y);d.addEventListener("pointerdown",A);
30
+ d.addEventListener("pointermove",B);d.addEventListener("pointerup",E);d.addEventListener("keydown",G);e.addEventListener("pointerdown",H);e.addEventListener("pointermove",J);e.addEventListener("pointerup",S);e.addEventListener("keydown",aa);g.addEventListener("keydown",oa);h.addEventListener("click",Aa);l.addEventListener("click",Na);m.addEventListener("click",cb);p.addEventListener("click",db);b.addEventListener("keydown",mb);b.addEventListener("pointerdown",Lb);document.addEventListener("pointerdown",
31
+ eb,!0);$APP.Cg(a,"__xColorPickerHandlers",{"area-move":v,copy:cb,"panel-key":mb,"alpha-up":S,"hue-up":E,"alpha-key":aa,"alpha-move":J,"hex-key":oa,swatch:Aa,"area-up":x,"alpha-down":H,"area-key":y,"hue-down":A,"hue-key":G,"hue-move":B,eyedrop:Na,"panel-pd":Lb,trigger:db,"doc-click":eb,"area-down":q})}},VA=function(a){var b=$APP.k(a,"__xColorPickerRefs"),c=$APP.k(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(b,"area"),e=$APP.k(b,"hue-strip"),g=$APP.k(b,"alpha-strip"),h=$APP.k(b,
32
32
  "hex-input"),l=$APP.k(b,"swatches"),m=$APP.k(b,"eyedropper"),p=$APP.k(b,"copy"),q=$APP.k(b,"trigger");b=$APP.k(b,"panel");d.removeEventListener("pointerdown",$APP.k(c,"area-down"));d.removeEventListener("pointermove",$APP.k(c,"area-move"));d.removeEventListener("pointerup",$APP.k(c,"area-up"));d.removeEventListener("keydown",$APP.k(c,"area-key"));e.removeEventListener("pointerdown",$APP.k(c,"hue-down"));e.removeEventListener("pointermove",$APP.k(c,"hue-move"));e.removeEventListener("pointerup",$APP.k(c,
33
33
  "hue-up"));e.removeEventListener("keydown",$APP.k(c,"hue-key"));g.removeEventListener("pointerdown",$APP.k(c,"alpha-down"));g.removeEventListener("pointermove",$APP.k(c,"alpha-move"));g.removeEventListener("pointerup",$APP.k(c,"alpha-up"));g.removeEventListener("keydown",$APP.k(c,"alpha-key"));h.removeEventListener("keydown",$APP.k(c,"hex-key"));l.removeEventListener("click",$APP.k(c,"swatch"));m.removeEventListener("click",$APP.k(c,"eyedrop"));p.removeEventListener("click",$APP.k(c,"copy"));q.removeEventListener("click",
34
- $APP.k(c,"trigger"));b.removeEventListener("keydown",$APP.k(c,"panel-key"));b.removeEventListener("pointerdown",$APP.k(c,"panel-pd"));document.removeEventListener("pointerdown",$APP.k(c,"doc-click"),!0);a.__xColorPickerHandlers=null}else return null},zA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,c,$APP.F(d))}})},AA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=
35
- this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?dA(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},CA=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return BA}});zA(b,"disabled","disabled");zA(b,"readOnly","readonly");zA(b,"alpha","alpha");zA(b,"open","open");AA(b,"value","value");AA(b,"swatches","swatches");AA(b,"name","name");AA(b,"mode","mode");AA(b,"label","label");
36
- b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xColorPickerRefs"))){var c=this.attachShadow({mode:"open"}),d=cA("style"),e=cA("div"),g=cA("button"),h=cA("span"),l=cA("div"),m=cA("div"),p=cA("div"),q=cA("div"),v=cA("div"),x=cA("div"),y=cA("div"),A=cA("div"),B=cA("div"),E=cA("div"),H=cA("div"),G=cA("span"),J=cA("input"),R=cA("button"),aa=cA("button"),oa=cA("div");d.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
34
+ $APP.k(c,"trigger"));b.removeEventListener("keydown",$APP.k(c,"panel-key"));b.removeEventListener("pointerdown",$APP.k(c,"panel-pd"));document.removeEventListener("pointerdown",$APP.k(c,"doc-click"),!0);a.__xColorPickerHandlers=null}else return null},WA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,c,$APP.F(d))}})},XA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=
35
+ this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?AA(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},ZA=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return YA}});WA(b,"disabled","disabled");WA(b,"readOnly","readonly");WA(b,"alpha","alpha");WA(b,"open","open");XA(b,"value","value");XA(b,"swatches","swatches");XA(b,"name","name");XA(b,"mode","mode");XA(b,"label","label");
36
+ b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xColorPickerRefs"))){var c=this.attachShadow({mode:"open"}),d=zA("style"),e=zA("div"),g=zA("button"),h=zA("span"),l=zA("div"),m=zA("div"),p=zA("div"),q=zA("div"),v=zA("div"),x=zA("div"),y=zA("div"),A=zA("div"),B=zA("div"),E=zA("div"),G=zA("div"),H=zA("span"),J=zA("input"),S=zA("button"),aa=zA("button"),oa=zA("div");d.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
37
  e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("aria-label","Pick color");h.setAttribute("part","trigger-swatch");l.setAttribute("part","panel");m.setAttribute("part","area");m.setAttribute("role","slider");m.setAttribute("tabindex","0");m.setAttribute("aria-label","Color");p.setAttribute("part","area-thumb");q.setAttribute("part","strips");v.setAttribute("part","hue-strip");v.setAttribute("role","slider");v.setAttribute("tabindex",
38
- "0");v.setAttribute("aria-label","Hue");v.setAttribute("aria-valuemin","0");v.setAttribute("aria-valuemax","360");x.setAttribute("part","hue-thumb");y.setAttribute("part","alpha-strip");y.setAttribute("role","slider");y.setAttribute("tabindex","0");y.setAttribute("aria-label","Opacity");y.setAttribute("aria-valuemin","0");y.setAttribute("aria-valuemax","100");A.setAttribute("part","alpha-gradient");B.setAttribute("part","alpha-thumb");E.setAttribute("part","controls");H.setAttribute("part","preview");
39
- G.setAttribute("part","preview-color");J.setAttribute("part","hex-input");J.setAttribute("type","text");J.setAttribute("spellcheck","false");J.setAttribute("autocomplete","off");J.setAttribute("aria-label","Hex color value");R.setAttribute("part","eyedropper");R.setAttribute("type","button");R.setAttribute("aria-label","Pick color from screen");R.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e';
38
+ "0");v.setAttribute("aria-label","Hue");v.setAttribute("aria-valuemin","0");v.setAttribute("aria-valuemax","360");x.setAttribute("part","hue-thumb");y.setAttribute("part","alpha-strip");y.setAttribute("role","slider");y.setAttribute("tabindex","0");y.setAttribute("aria-label","Opacity");y.setAttribute("aria-valuemin","0");y.setAttribute("aria-valuemax","100");A.setAttribute("part","alpha-gradient");B.setAttribute("part","alpha-thumb");E.setAttribute("part","controls");G.setAttribute("part","preview");
39
+ H.setAttribute("part","preview-color");J.setAttribute("part","hex-input");J.setAttribute("type","text");J.setAttribute("spellcheck","false");J.setAttribute("autocomplete","off");J.setAttribute("aria-label","Hex color value");S.setAttribute("part","eyedropper");S.setAttribute("type","button");S.setAttribute("aria-label","Pick color from screen");S.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e';
40
40
  aa.setAttribute("part","copy");aa.setAttribute("type","button");aa.setAttribute("aria-label","Copy color value");aa.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e';oa.setAttribute("part",
41
- "swatches");oa.setAttribute("role","listbox");oa.setAttribute("aria-label","Preset colors");g.appendChild(h);m.appendChild(p);v.appendChild(x);y.appendChild(A);y.appendChild(B);q.appendChild(v);q.appendChild(y);H.appendChild(G);E.appendChild(H);E.appendChild(J);E.appendChild(R);E.appendChild(aa);l.appendChild(m);l.appendChild(q);l.appendChild(E);l.appendChild(oa);e.appendChild(g);e.appendChild(l);c.appendChild(d);c.appendChild(e);typeof EyeDropper==="undefined"&&(R.style.display="none");this.__xColorPickerRefs=
42
- {"alpha-thumb":B,copy:aa,swatches:oa,"hue-strip":v,controls:E,"alpha-gradient":A,panel:l,preview:H,"area-thumb":p,"preview-color":G,container:e,area:m,"hue-thumb":x,"trigger-swatch":h,trigger:g,"alpha-strip":y,eyedropper:R,"hex-input":J};$APP.n(this.attachInternals)&&(this.__xColorPickerInternals=this.attachInternals())}yA(this);xA(this);return kA(this)};b.disconnectedCallback=function(){return yA(this)};b.attributeChangedCallback=function(){return kA(this)};b.formDisabledCallback=function(c){$APP.Eg(this,
43
- "disabled",$APP.F(c));return kA(this)};b.formResetCallback=function(){this.setAttribute("value","#000000");return kA(this)};return a},DA=function(){return $APP.n(customElements.get("x-color-picker"))?null:customElements.define("x-color-picker",CA())},Wz=new $APP.K(null,"alpha","alpha",-1574982441),Zz=new $APP.K(null,"hex-full","hex-full",-1466644518),Vz=new $APP.K(null,"swatches","swatches",2033601707),Nz=new $APP.K(null,"v","v",21465059),Gz=new $APP.K(null,"s","s",1705939918),Bz=new $APP.K(null,
44
- "r","r",-471384190),Xz=new $APP.K(null,"alpha?","alpha?",1329751525),Hz=new $APP.K(null,"l","l",1395893423),Fz=new $APP.K(null,"h","h",1109658740),Cz=new $APP.K(null,"b","b",1482224470),lA=new $APP.K(null,"sat","sat",1064662667),Dz=new $APP.K(null,"a","a",-2123407586),Yz=new $APP.K(null,"hex","hex",41691346);var Sz=new $APP.S(null,new $APP.Q(null,2,["inline",null,"popover",null],null),null),BA="value alpha swatches disabled readonly name mode open label".split(" ");
45
- $APP.zf([$APP.Ol,$APP.Fj,$APP.qj,$APP.Pi,$APP.mj,Vz,$APP.Tl,$APP.U,Wz],[new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"open"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"mode"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"swatches"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
46
- $APP.vk,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"alpha"],null)]);$APP.Qd(["x-color-picker-input",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.Pi,$APP.Y,Fz,$APP.W,Gz,$APP.W,Hz,$APP.W,Dz,$APP.W],null),$APP.Rl,!1],null),"x-color-picker-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.Pi,$APP.Y,Fz,$APP.W,Gz,$APP.W,Hz,$APP.W,Dz,$APP.W],null),$APP.Rl,!0],null)]);var zz=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var pA=new $APP.S(null,new $APP.Q(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),rA=new $APP.S(null,new $APP.Q(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null);$APP.ha("baredom.exports.x_color_picker.init",DA);export const init=DA;
41
+ "swatches");oa.setAttribute("role","listbox");oa.setAttribute("aria-label","Preset colors");g.appendChild(h);m.appendChild(p);v.appendChild(x);y.appendChild(A);y.appendChild(B);q.appendChild(v);q.appendChild(y);G.appendChild(H);E.appendChild(G);E.appendChild(J);E.appendChild(S);E.appendChild(aa);l.appendChild(m);l.appendChild(q);l.appendChild(E);l.appendChild(oa);e.appendChild(g);e.appendChild(l);c.appendChild(d);c.appendChild(e);typeof EyeDropper==="undefined"&&(S.style.display="none");this.__xColorPickerRefs=
42
+ {"alpha-thumb":B,copy:aa,swatches:oa,"hue-strip":v,controls:E,"alpha-gradient":A,panel:l,preview:G,"area-thumb":p,"preview-color":H,container:e,area:m,"hue-thumb":x,"trigger-swatch":h,trigger:g,"alpha-strip":y,eyedropper:S,"hex-input":J};$APP.n(this.attachInternals)&&(this.__xColorPickerInternals=this.attachInternals())}VA(this);UA(this);return HA(this)};b.disconnectedCallback=function(){return VA(this)};b.attributeChangedCallback=function(){return HA(this)};b.formDisabledCallback=function(c){$APP.Eg(this,
43
+ "disabled",$APP.F(c));return HA(this)};b.formResetCallback=function(){this.setAttribute("value","#000000");return HA(this)};return a},$A=function(){return $APP.n(customElements.get("x-color-picker"))?null:customElements.define("x-color-picker",ZA())},sA=new $APP.K(null,"alpha","alpha",-1574982441),vA=new $APP.K(null,"hex-full","hex-full",-1466644518),rA=new $APP.K(null,"swatches","swatches",2033601707),jA=new $APP.K(null,"v","v",21465059),cA=new $APP.K(null,"s","s",1705939918),Yz=new $APP.K(null,
44
+ "r","r",-471384190),tA=new $APP.K(null,"alpha?","alpha?",1329751525),dA=new $APP.K(null,"l","l",1395893423),bA=new $APP.K(null,"h","h",1109658740),Zz=new $APP.K(null,"b","b",1482224470),IA=new $APP.K(null,"sat","sat",1064662667),$z=new $APP.K(null,"a","a",-2123407586),uA=new $APP.K(null,"hex","hex",41691346);var oA=new $APP.R(null,new $APP.Q(null,2,["inline",null,"popover",null],null),null),YA="value alpha swatches disabled readonly name mode open label".split(" ");
45
+ $APP.zf([$APP.Vl,$APP.Nj,$APP.vj,$APP.Ti,$APP.rj,rA,$APP.$l,$APP.U,sA],[new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"open"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"mode"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"swatches"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
46
+ $APP.Bk,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"alpha"],null)]);$APP.Qd(["x-color-picker-input",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.Ti,$APP.Y,bA,$APP.W,cA,$APP.W,dA,$APP.W,$z,$APP.W],null),$APP.Yl,!1],null),"x-color-picker-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.Ti,$APP.Y,bA,$APP.W,cA,$APP.W,dA,$APP.W,$z,$APP.W],null),$APP.Yl,!0],null)]);var Wz=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var MA=new $APP.R(null,new $APP.Q(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),OA=new $APP.R(null,new $APP.Q(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null);$APP.ha("baredom.exports.x_color_picker.init",$A);export const init=$A;
@@ -1,28 +1,28 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var so=function(a,b){if(b==null||$APP.C.i(b,""))return a;var c=b.toLowerCase();return $APP.he(function(d){d=$APP.M(d);d=$APP.D(d,$APP.U);return $APP.N(-1,d.toLowerCase().indexOf(c))},a)},to=function(a,b){return b!=null?$APP.Ud(function(c){return $APP.C.i($APP.Pi.g(c),b)?c:null},a):null},xo=function(a,b){if(b!=null&&$APP.N(b,"")){var c=a.toLowerCase().indexOf(b.toLowerCase());if($APP.N(c,-1))return b=c+$APP.z(b),new $APP.Q(null,3,[uo,a.substring(0,c),vo,a.substring(c,b),wo,a.substring(b)],null)}return null},
3
- yo=function(a){return document.createElement(a)},zo=function(a,b,c){return a.setAttribute(b,c)},Ao=function(a){var b=$APP.k(a,"__xComboboxRefs");$APP.n(b)&&(b=$APP.k(b,"slot").assignedElements({flatten:!0}),b=$APP.We.m($APP.fe,$APP.ph.i($APP.ce(function(c){return $APP.C.i("OPTION",c.tagName)}),$APP.ae.g(function(c){var d=c.getAttribute("value");return new $APP.Q(null,2,[$APP.Pi,$APP.n(d)?d:c.textContent,$APP.U,c.textContent],null)})),$APP.uc(b)),a.__xComboboxOptions=b)},Bo=function(a){var b=$APP.k(a,
4
- "__xComboboxRefs");if($APP.n(b)){var c=$APP.k(b,"panel");b=$APP.k(b,"input");var d=function(){var B=$APP.k(a,"__xComboboxQuery");return $APP.n(B)?B:""}(),e=so($APP.k(a,"__xComboboxOptions"),d),g=function(){var B=$APP.k(a,"__xComboboxActiveIdx");return $APP.n(B)?B:0}();g=$APP.Hc(e)?-1:$APP.oh.i(g,$APP.z(e)-1);var h=function(){var B=a.getAttribute("value");return $APP.n(B)?B:""}();c.textContent="";if($APP.Hc(e))return d=yo("div"),d.setAttribute("part","empty-msg"),d.textContent="No matches",c.appendChild(d),
5
- b.removeAttribute("aria-activedescendant");e=$APP.t($APP.Xd($APP.th,e));for(var l=null,m=0,p=0;;)if(p<m){var q=l.F(null,p),v=$APP.Ac(q,0,null),x=$APP.Ac(q,1,null);q=yo("div");var y=""+$APP.T.g("x-cb-opt-")+$APP.T.g(v),A=xo($APP.U.g(x),d);q.setAttribute("part","option");q.setAttribute("role","option");q.setAttribute("id",y);zo(q,"data-value",$APP.Pi.g(x));$APP.C.i($APP.Pi.g(x),h)&&q.setAttribute("aria-selected","true");$APP.C.i(v,g)&&q.setAttribute("data-active","");$APP.n(A)?(q.appendChild(document.createTextNode(uo.g(A))),
6
- v=yo("b"),v.textContent=vo.g(A),q.appendChild(v),q.appendChild(document.createTextNode(wo.g(A)))):q.textContent=$APP.U.g(x);c.appendChild(q);p+=1}else if(e=$APP.t(e))$APP.Nc(e)?(m=$APP.yb(e),e=$APP.zb(e),l=m,m=$APP.z(m)):(m=$APP.u(e),l=$APP.Ac(m,0,null),v=$APP.Ac(m,1,null),m=yo("div"),q=""+$APP.T.g("x-cb-opt-")+$APP.T.g(l),p=xo($APP.U.g(v),d),m.setAttribute("part","option"),m.setAttribute("role","option"),m.setAttribute("id",q),zo(m,"data-value",$APP.Pi.g(v)),$APP.C.i($APP.Pi.g(v),h)&&m.setAttribute("aria-selected",
7
- "true"),$APP.C.i(l,g)&&m.setAttribute("data-active",""),$APP.n(p)?(m.appendChild(document.createTextNode(uo.g(p))),l=yo("b"),l.textContent=vo.g(p),m.appendChild(l),m.appendChild(document.createTextNode(wo.g(p)))):m.textContent=$APP.U.g(v),c.appendChild(m),e=$APP.w(e),l=null,m=0),p=0;else break;return g>=0?zo(b,"aria-activedescendant",""+$APP.T.g("x-cb-opt-")+$APP.T.g(g)):b.removeAttribute("aria-activedescendant")}return null},Do=function(a){var b=$APP.k(a,"__xComboboxRefs");if($APP.n(b)){var c=new $APP.Q(null,
8
- 7,[$APP.jm,a.getAttribute("value"),$APP.Gi,a.getAttribute("placeholder"),$APP.gl,a.getAttribute("name"),$APP.ul,a.hasAttribute("disabled"),$APP.Ih,a.hasAttribute("required"),$APP.xi,a.hasAttribute("open"),$APP.Mm,a.getAttribute("placement")],null),d=$APP.M(c),e=$APP.D(d,$APP.jm),g=$APP.D(d,$APP.Gi),h=$APP.D(d,$APP.gl),l=$APP.D(d,$APP.ul),m=$APP.D(d,$APP.Ih);c=$APP.D(d,$APP.xi);d=$APP.D(d,$APP.Mm);e=$APP.n(e)?e:"";g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";l=$APP.F(l);m=$APP.F(m);c=$APP.F(c);d=$APP.I(Co,d)?
9
- d:"bottom-start";g=$APP.M(new $APP.Q(null,7,[$APP.Pi,e,$APP.Yl,g,$APP.qj,h,$APP.X,l,$APP.hi,m,$APP.sm,c,$APP.Gj,d],null));c=$APP.D(g,$APP.Pi);d=$APP.D(g,$APP.Yl);e=$APP.D(g,$APP.X);m=$APP.D(g,$APP.sm);g=$APP.D(g,$APP.Gj);l=$APP.k(b,"input");b=$APP.k(b,"panel");h=to($APP.k(a,"__xComboboxOptions"),c);l.placeholder=d;l.disabled=e;zo(l,"aria-expanded",""+$APP.T.g(m));b.setAttribute("data-placement",g);$APP.n(m)||(l.value=$APP.n(h)?$APP.U.g(h):"");return $APP.N(c,"")?a.setAttribute("data-has-value",""):
10
- a.removeAttribute("data-has-value")}return null},Eo=function(a,b){b=new CustomEvent("x-combobox-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},Fo=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},Ho=function(a,b){return $APP.r(a.hasAttribute("disabled"))&&$APP.r(a.hasAttribute("open"))&&Eo(a,{open:!0,source:b})?(a.setAttribute("open",""),a.__xComboboxQuery="",a.__xComboboxActiveIdx=
11
- 0,b=$APP.k(a,"__xComboboxRefs"),$APP.n(b)&&$APP.k(b,"input").select(),Bo(a),Go.g?Go.g(a):Go.call(null,a)):null},Jo=function(a,b){return $APP.n(a.hasAttribute("open"))&&Eo(a,{open:!1,source:b})?(a.removeAttribute("open"),a.__xComboboxQuery="",a.__xComboboxActiveIdx=0,Io.g?Io.g(a):Io.call(null,a),Do(a)):null},Ko=function(a,b,c){a.setAttribute("value",b);var d=$APP.k(a,"__xComboboxRefs");$APP.n(d)&&($APP.k(d,"input").value=c);Jo(a,"select");return Fo(a,"x-combobox-change",{value:b,label:c})},Lo=function(a,
12
- b){var c=so($APP.k(a,"__xComboboxOptions"),function(){var e=$APP.k(a,"__xComboboxQuery");return $APP.n(e)?e:""}());c=$APP.z(c);var d=function(){var e=$APP.k(a,"__xComboboxActiveIdx");return $APP.n(e)?e:0}();b=$APP.C.i(b,$APP.Mj)?c===0?-1:$APP.fd(($APP.n(d)?d:-1)+1,c):c===0?-1:$APP.fd(($APP.n(d)?d:c)-1,c);a.__xComboboxActiveIdx=b;Bo(a);b=$APP.k(a,"__xComboboxRefs");return $APP.n(b)?(b=$APP.k(b,"panel").querySelector("[data-active]"),$APP.n(b)?b.scrollIntoView({block:"nearest"}):null):null},Mo=function(a){var b=
13
- so($APP.k(a,"__xComboboxOptions"),function(){var c=$APP.k(a,"__xComboboxQuery");return $APP.n(c)?c:""}());b=$APP.Ac(b,function(){var c=$APP.k(a,"__xComboboxActiveIdx");return $APP.n(c)?c:0}(),null);return $APP.n(b)?Ko(a,$APP.Pi.g(b),$APP.U.g(b)):null},No=function(a){return{slotchange:function(){Ao(a);return $APP.n(a.hasAttribute("open"))?Bo(a):null},inputFocus:function(){return Ho(a,"focus")},inputInput:function(b){b=b.target.value;a.__xComboboxQuery=b;a.__xComboboxActiveIdx=0;$APP.n(a.hasAttribute("open"))||
14
- Ho(a,"input");Bo(a);return Fo(a,"x-combobox-input",{query:b})},panelClick:function(b){b=b.target;b=$APP.n(b.hasAttribute("data-value"))?b:b.closest("[data-value]");if($APP.n(b)){var c=b.getAttribute("data-value");return Ko(a,c,b.textContent)}return null},inputKeydown:function(b){var c=b.key;if($APP.C.i(c,"ArrowDown"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?Lo(a,$APP.Mj):Ho(a,"keyboard");if($APP.C.i(c,"ArrowUp"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?Lo(a,$APP.Dj):
15
- Ho(a,"keyboard");if($APP.C.i(c,"Enter"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?Mo(a):null;if($APP.C.i(c,"Escape")){if($APP.n(a.hasAttribute("open")))return b.preventDefault(),Jo(a,"escape"),b=$APP.k(a,"__xComboboxRefs"),$APP.n(b)?$APP.k(b,"input").focus():null}else if($APP.C.i(c,"Home")){if($APP.n(a.hasAttribute("open")))return b.preventDefault(),a.__xComboboxActiveIdx=0,Bo(a)}else if($APP.C.i(c,"End")&&$APP.n(a.hasAttribute("open")))return b.preventDefault(),b=$APP.k(a,"__xComboboxQuery"),
16
- b=$APP.z(so($APP.k(a,"__xComboboxOptions"),$APP.n(b)?b:"")),b=$APP.nh.i(0,b-1),a.__xComboboxActiveIdx=b,Bo(a);return null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),b=$APP.Ud(function(c){return c===a},b),$APP.n(b)?null:Jo(a,"outside-click")):null},panelPointerdown:function(b){return b.preventDefault()},clearClick:function(){a.removeAttribute("value");a.removeAttribute("data-has-value");var b=$APP.k(a,"__xComboboxRefs");$APP.n(b)&&(b=$APP.k(b,"input"),
17
- b.value="",b.focus());return Fo(a,"x-combobox-change",{value:"",label:""})},chevronPointerdown:function(b){b.preventDefault();if($APP.n(a.hasAttribute("open")))return Jo(a,"pointer");Ho(a,"pointer");b=$APP.k(a,"__xComboboxRefs");return $APP.n(b)?$APP.k(b,"input").focus():null},focusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?Jo(a,"focusout"):null):null}}},Oo=function(a){var b=$APP.k(a,"__xComboboxRefs");if($APP.n(b)){var c=$APP.k(a,"__xComboboxHandlers");
2
+ var zo=function(a,b){if(b==null||$APP.C.i(b,""))return a;var c=b.toLowerCase();return $APP.he(function(d){d=$APP.M(d);d=$APP.D(d,$APP.U);return $APP.N(-1,d.toLowerCase().indexOf(c))},a)},Ao=function(a,b){return b!=null?$APP.Ud(function(c){return $APP.C.i($APP.Ti.g(c),b)?c:null},a):null},Eo=function(a,b){if(b!=null&&$APP.N(b,"")){var c=a.toLowerCase().indexOf(b.toLowerCase());if($APP.N(c,-1))return b=c+$APP.z(b),new $APP.Q(null,3,[Bo,a.substring(0,c),Co,a.substring(c,b),Do,a.substring(b)],null)}return null},
3
+ Fo=function(a){return document.createElement(a)},Go=function(a,b,c){return a.setAttribute(b,c)},Ho=function(a){var b=$APP.k(a,"__xComboboxRefs");$APP.n(b)&&(b=$APP.k(b,"slot").assignedElements({flatten:!0}),b=$APP.We.m($APP.fe,$APP.sh.i($APP.ce(function(c){return $APP.C.i("OPTION",c.tagName)}),$APP.ae.g(function(c){var d=c.getAttribute("value");return new $APP.Q(null,2,[$APP.Ti,$APP.n(d)?d:c.textContent,$APP.U,c.textContent],null)})),$APP.uc(b)),a.__xComboboxOptions=b)},Io=function(a){var b=$APP.k(a,
4
+ "__xComboboxRefs");if($APP.n(b)){var c=$APP.k(b,"panel");b=$APP.k(b,"input");var d=function(){var B=$APP.k(a,"__xComboboxQuery");return $APP.n(B)?B:""}(),e=zo($APP.k(a,"__xComboboxOptions"),d),g=function(){var B=$APP.k(a,"__xComboboxActiveIdx");return $APP.n(B)?B:0}();g=$APP.Hc(e)?-1:$APP.rh.i(g,$APP.z(e)-1);var h=function(){var B=a.getAttribute("value");return $APP.n(B)?B:""}();c.textContent="";if($APP.Hc(e))return d=Fo("div"),d.setAttribute("part","empty-msg"),d.textContent="No matches",c.appendChild(d),
5
+ b.removeAttribute("aria-activedescendant");e=$APP.t($APP.Xd($APP.wh,e));for(var l=null,m=0,p=0;;)if(p<m){var q=l.F(null,p),v=$APP.Ac(q,0,null),x=$APP.Ac(q,1,null);q=Fo("div");var y=""+$APP.T.g("x-cb-opt-")+$APP.T.g(v),A=Eo($APP.U.g(x),d);q.setAttribute("part","option");q.setAttribute("role","option");q.setAttribute("id",y);Go(q,"data-value",$APP.Ti.g(x));$APP.C.i($APP.Ti.g(x),h)&&q.setAttribute("aria-selected","true");$APP.C.i(v,g)&&q.setAttribute("data-active","");$APP.n(A)?(q.appendChild(document.createTextNode(Bo.g(A))),
6
+ v=Fo("b"),v.textContent=Co.g(A),q.appendChild(v),q.appendChild(document.createTextNode(Do.g(A)))):q.textContent=$APP.U.g(x);c.appendChild(q);p+=1}else if(e=$APP.t(e))$APP.Nc(e)?(m=$APP.yb(e),e=$APP.zb(e),l=m,m=$APP.z(m)):(m=$APP.u(e),l=$APP.Ac(m,0,null),v=$APP.Ac(m,1,null),m=Fo("div"),q=""+$APP.T.g("x-cb-opt-")+$APP.T.g(l),p=Eo($APP.U.g(v),d),m.setAttribute("part","option"),m.setAttribute("role","option"),m.setAttribute("id",q),Go(m,"data-value",$APP.Ti.g(v)),$APP.C.i($APP.Ti.g(v),h)&&m.setAttribute("aria-selected",
7
+ "true"),$APP.C.i(l,g)&&m.setAttribute("data-active",""),$APP.n(p)?(m.appendChild(document.createTextNode(Bo.g(p))),l=Fo("b"),l.textContent=Co.g(p),m.appendChild(l),m.appendChild(document.createTextNode(Do.g(p)))):m.textContent=$APP.U.g(v),c.appendChild(m),e=$APP.w(e),l=null,m=0),p=0;else break;return g>=0?Go(b,"aria-activedescendant",""+$APP.T.g("x-cb-opt-")+$APP.T.g(g)):b.removeAttribute("aria-activedescendant")}return null},Ko=function(a){var b=$APP.k(a,"__xComboboxRefs");if($APP.n(b)){var c=new $APP.Q(null,
8
+ 7,[$APP.qm,a.getAttribute("value"),$APP.Ki,a.getAttribute("placeholder"),$APP.ml,a.getAttribute("name"),$APP.Al,a.hasAttribute("disabled"),$APP.Lh,a.hasAttribute("required"),$APP.Bi,a.hasAttribute("open"),$APP.Tm,a.getAttribute("placement")],null),d=$APP.M(c),e=$APP.D(d,$APP.qm),g=$APP.D(d,$APP.Ki),h=$APP.D(d,$APP.ml),l=$APP.D(d,$APP.Al),m=$APP.D(d,$APP.Lh);c=$APP.D(d,$APP.Bi);d=$APP.D(d,$APP.Tm);e=$APP.n(e)?e:"";g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";l=$APP.F(l);m=$APP.F(m);c=$APP.F(c);d=$APP.I(Jo,d)?
9
+ d:"bottom-start";g=$APP.M(new $APP.Q(null,7,[$APP.Ti,e,$APP.lm,g,$APP.vj,h,$APP.X,l,$APP.ki,m,$APP.zm,c,$APP.Oj,d],null));c=$APP.D(g,$APP.Ti);d=$APP.D(g,$APP.lm);e=$APP.D(g,$APP.X);m=$APP.D(g,$APP.zm);g=$APP.D(g,$APP.Oj);l=$APP.k(b,"input");b=$APP.k(b,"panel");h=Ao($APP.k(a,"__xComboboxOptions"),c);l.placeholder=d;l.disabled=e;Go(l,"aria-expanded",""+$APP.T.g(m));b.setAttribute("data-placement",g);$APP.n(m)||(l.value=$APP.n(h)?$APP.U.g(h):"");return $APP.N(c,"")?a.setAttribute("data-has-value",""):
10
+ a.removeAttribute("data-has-value")}return null},Lo=function(a,b){b=new CustomEvent("x-combobox-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},Mo=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},Oo=function(a,b){return $APP.r(a.hasAttribute("disabled"))&&$APP.r(a.hasAttribute("open"))&&Lo(a,{open:!0,source:b})?(a.setAttribute("open",""),a.__xComboboxQuery="",a.__xComboboxActiveIdx=
11
+ 0,b=$APP.k(a,"__xComboboxRefs"),$APP.n(b)&&$APP.k(b,"input").select(),Io(a),No.g?No.g(a):No.call(null,a)):null},Qo=function(a,b){return $APP.n(a.hasAttribute("open"))&&Lo(a,{open:!1,source:b})?(a.removeAttribute("open"),a.__xComboboxQuery="",a.__xComboboxActiveIdx=0,Po.g?Po.g(a):Po.call(null,a),Ko(a)):null},Ro=function(a,b,c){a.setAttribute("value",b);var d=$APP.k(a,"__xComboboxRefs");$APP.n(d)&&($APP.k(d,"input").value=c);Qo(a,"select");return Mo(a,"x-combobox-change",{value:b,label:c})},So=function(a,
12
+ b){var c=zo($APP.k(a,"__xComboboxOptions"),function(){var e=$APP.k(a,"__xComboboxQuery");return $APP.n(e)?e:""}());c=$APP.z(c);var d=function(){var e=$APP.k(a,"__xComboboxActiveIdx");return $APP.n(e)?e:0}();b=$APP.C.i(b,$APP.Rj)?c===0?-1:$APP.fd(($APP.n(d)?d:-1)+1,c):c===0?-1:$APP.fd(($APP.n(d)?d:c)-1,c);a.__xComboboxActiveIdx=b;Io(a);b=$APP.k(a,"__xComboboxRefs");return $APP.n(b)?(b=$APP.k(b,"panel").querySelector("[data-active]"),$APP.n(b)?b.scrollIntoView({block:"nearest"}):null):null},To=function(a){var b=
13
+ zo($APP.k(a,"__xComboboxOptions"),function(){var c=$APP.k(a,"__xComboboxQuery");return $APP.n(c)?c:""}());b=$APP.Ac(b,function(){var c=$APP.k(a,"__xComboboxActiveIdx");return $APP.n(c)?c:0}(),null);return $APP.n(b)?Ro(a,$APP.Ti.g(b),$APP.U.g(b)):null},Uo=function(a){return{slotchange:function(){Ho(a);return $APP.n(a.hasAttribute("open"))?Io(a):null},inputFocus:function(){return Oo(a,"focus")},inputInput:function(b){b=b.target.value;a.__xComboboxQuery=b;a.__xComboboxActiveIdx=0;$APP.n(a.hasAttribute("open"))||
14
+ Oo(a,"input");Io(a);return Mo(a,"x-combobox-input",{query:b})},panelClick:function(b){b=b.target;b=$APP.n(b.hasAttribute("data-value"))?b:b.closest("[data-value]");if($APP.n(b)){var c=b.getAttribute("data-value");return Ro(a,c,b.textContent)}return null},inputKeydown:function(b){var c=b.key;if($APP.C.i(c,"ArrowDown"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?So(a,$APP.Rj):Oo(a,"keyboard");if($APP.C.i(c,"ArrowUp"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?So(a,$APP.Ij):
15
+ Oo(a,"keyboard");if($APP.C.i(c,"Enter"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?To(a):null;if($APP.C.i(c,"Escape")){if($APP.n(a.hasAttribute("open")))return b.preventDefault(),Qo(a,"escape"),b=$APP.k(a,"__xComboboxRefs"),$APP.n(b)?$APP.k(b,"input").focus():null}else if($APP.C.i(c,"Home")){if($APP.n(a.hasAttribute("open")))return b.preventDefault(),a.__xComboboxActiveIdx=0,Io(a)}else if($APP.C.i(c,"End")&&$APP.n(a.hasAttribute("open")))return b.preventDefault(),b=$APP.k(a,"__xComboboxQuery"),
16
+ b=$APP.z(zo($APP.k(a,"__xComboboxOptions"),$APP.n(b)?b:"")),b=$APP.qh.i(0,b-1),a.__xComboboxActiveIdx=b,Io(a);return null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),b=$APP.Ud(function(c){return c===a},b),$APP.n(b)?null:Qo(a,"outside-click")):null},panelPointerdown:function(b){return b.preventDefault()},clearClick:function(){a.removeAttribute("value");a.removeAttribute("data-has-value");var b=$APP.k(a,"__xComboboxRefs");$APP.n(b)&&(b=$APP.k(b,"input"),
17
+ b.value="",b.focus());return Mo(a,"x-combobox-change",{value:"",label:""})},chevronPointerdown:function(b){b.preventDefault();if($APP.n(a.hasAttribute("open")))return Qo(a,"pointer");Oo(a,"pointer");b=$APP.k(a,"__xComboboxRefs");return $APP.n(b)?$APP.k(b,"input").focus():null},focusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?Qo(a,"focusout"):null):null}}},Vo=function(a){var b=$APP.k(a,"__xComboboxRefs");if($APP.n(b)){var c=$APP.k(a,"__xComboboxHandlers");
18
18
  if($APP.n(c)){var d=$APP.k(b,"input"),e=$APP.k(b,"clear"),g=$APP.k(b,"chevron"),h=$APP.k(b,"panel");b=$APP.k(b,"slot");d.removeEventListener("focus",$APP.k(c,"inputFocus"));d.removeEventListener("input",$APP.k(c,"inputInput"));d.removeEventListener("keydown",$APP.k(c,"inputKeydown"));e.removeEventListener("click",$APP.k(c,"clearClick"));g.removeEventListener("pointerdown",$APP.k(c,"chevronPointerdown"));h.removeEventListener("pointerdown",$APP.k(c,"panelPointerdown"));h.removeEventListener("click",
19
- $APP.k(c,"panelClick"));a.removeEventListener("focusout",$APP.k(c,"focusout"));b.removeEventListener("slotchange",$APP.k(c,"slotchange"))}}},Go=function(a){var b=$APP.k(a,"__xComboboxHandlers");return $APP.n(b)?setTimeout(function(){var c=a.isConnected;return $APP.n($APP.n(c)?a.hasAttribute("open"):c)?document.addEventListener("click",$APP.k(b,"docClick")):null},0):null},Io=function(a){a=$APP.k(a,"__xComboboxHandlers");return $APP.n(a)?document.removeEventListener("click",$APP.k(a,"docClick")):null},
20
- Po=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,c,$APP.F(d))}})},Qo=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){return d!=null&&$APP.N(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},To=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
21
- "observedAttributes",{get:function(){return Ro}});Qo(b,"value","value");Qo(b,"placeholder","placeholder");Qo(b,"name","name");Qo(b,"placement","placement");Po(b,"disabled","disabled");Po(b,"required","required");Po(b,"open","open");b.show=function(){return Ho(this,"programmatic")};b.hide=function(){return Jo(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xComboboxRefs"))){var c=this.attachShadow({mode:"open"}),d=yo("style"),e=yo("div"),g=yo("input"),h=yo("button"),
22
- l=yo("span"),m=yo("div"),p=yo("slot");var q=$APP.k(So,"n")+1;So.n=q;q="x-cb-lb-"+$APP.T.g(q);d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-combobox-bg:var(--x-color-surface,#ffffff);--x-combobox-fg:var(--x-color-text,#0f172a);--x-combobox-placeholder:var(--x-color-text-muted,#94a3b8);--x-combobox-border:1px solid var(--x-color-border,#e2e8f0);--x-combobox-border-hover:1px solid var(--x-color-border,#cbd5e1);--x-combobox-border-focus:1px solid var(--x-color-focus-ring,#60a5fa);--x-combobox-radius:var(--x-radius-md,6px);--x-combobox-height:2.25rem;--x-combobox-font-size:var(--x-font-size-sm,0.9375rem);--x-combobox-padding:0 0.625rem;--x-combobox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.05));--x-combobox-disabled-opacity:var(--x-opacity-disabled,0.55);--x-combobox-chevron-color:var(--x-color-text-muted,#64748b);--x-combobox-panel-bg:var(--x-color-bg,#ffffff);--x-combobox-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-combobox-panel-radius:var(--x-radius-md,8px);--x-combobox-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-combobox-panel-max-height:16rem;--x-combobox-panel-offset:4px;--x-combobox-option-padding:0.5rem 0.625rem;--x-combobox-option-hover-bg:var(--x-color-surface-hover,#f1f5f9);--x-combobox-option-active-bg:var(--x-color-primary,#3b82f6);--x-combobox-option-active-fg:#ffffff;--x-combobox-transition-duration:var(--x-transition-duration,150ms);--x-combobox-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-combobox-bg:var(--x-color-surface,#1e293b);--x-combobox-fg:var(--x-color-text,#e2e8f0);--x-combobox-placeholder:var(--x-color-text-muted,#64748b);--x-combobox-border:1px solid var(--x-color-border,#334155);--x-combobox-border-hover:1px solid var(--x-color-border,#475569);--x-combobox-border-focus:1px solid var(--x-color-focus-ring,#93c5fd);--x-combobox-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.2));--x-combobox-chevron-color:var(--x-color-text-muted,#94a3b8);--x-combobox-panel-bg:var(--x-color-bg,#1e293b);--x-combobox-panel-border:1px solid var(--x-color-border,#334155);--x-combobox-panel-shadow:var(--x-shadow-md,0 4px 24px rgba(0,0,0,0.4));--x-combobox-option-hover-bg:var(--x-color-surface-hover,#334155);--x-combobox-option-active-bg:var(--x-color-primary,#3b82f6);}}[part\x3dwrapper]{display:flex;align-items:center;height:var(--x-combobox-height);background:var(--x-combobox-bg);border:var(--x-combobox-border);border-radius:var(--x-combobox-radius);box-shadow:var(--x-combobox-shadow);padding:var(--x-combobox-padding);cursor:text;transition:border var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),box-shadow var(--x-combobox-transition-duration) var(--x-combobox-transition-easing);}[part\x3dwrapper]:hover{border:var(--x-combobox-border-hover);}:host(:focus-within) [part\x3dwrapper]{border:var(--x-combobox-border-focus);box-shadow:0 0 0 2px var(--x-combobox-focus-ring);}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-combobox-disabled-opacity);cursor:default;pointer-events:none;}[part\x3dinput]{all:unset;flex:1;min-width:0;height:100%;font-size:var(--x-combobox-font-size);font-family:inherit;color:var(--x-combobox-fg);}[part\x3dinput]::placeholder{color:var(--x-combobox-placeholder);}[part\x3dclear]{all:unset;display:none;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;font-size:0.875rem;color:var(--x-combobox-chevron-color);cursor:pointer;flex-shrink:0;border-radius:2px;}[part\x3dclear]:hover{color:var(--x-combobox-fg);}[part\x3dclear]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-combobox-focus-ring);}:host([data-has-value]) [part\x3dclear]{display:inline-flex;}:host([disabled]) [part\x3dclear]{display:none;}[part\x3dchevron]{display:inline-flex;align-items:center;color:var(--x-combobox-chevron-color);flex-shrink:0;margin-left:0.25rem;transition:transform 200ms ease;pointer-events:none;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dpanel]{position:absolute;z-index:var(--x-z-dropdown,1000);box-sizing:border-box;width:100%;background:var(--x-combobox-panel-bg);border:var(--x-combobox-panel-border);border-radius:var(--x-combobox-panel-radius);box-shadow:var(--x-combobox-panel-shadow);padding:0.25rem 0;max-height:var(--x-combobox-panel-max-height);max-width:calc(100% - 0rem);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scaleY(0.95);transition:opacity var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),transform var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),visibility 0s var(--x-combobox-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scaleY(1);transition:opacity var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),transform var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-combobox-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-combobox-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-combobox-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-combobox-panel-offset));right:0;transform-origin:bottom right;}[part\x3doption]{padding:var(--x-combobox-option-padding);font-size:var(--x-combobox-font-size);font-family:inherit;color:var(--x-combobox-fg);cursor:default;border-radius:4px;margin:0 0.25rem;}[part\x3doption]:hover{background:var(--x-combobox-option-hover-bg);}[part\x3doption][data-active]{background:var(--x-combobox-option-active-bg);color:var(--x-combobox-option-active-fg);}[part\x3doption][data-active] b{color:inherit;}[part\x3doption] b{font-weight:700;}[part\x3dempty-msg]{padding:var(--x-combobox-option-padding);font-size:var(--x-combobox-font-size);color:var(--x-combobox-placeholder);font-style:italic;margin:0 0.25rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dwrapper]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}@media (pointer:coarse){:host{--x-combobox-height:2.75rem;}[part\x3dclear]{width:2.75rem;height:2.75rem;}[part\x3doption]{min-height:2.75rem;display:flex;align-items:center;}}";
19
+ $APP.k(c,"panelClick"));a.removeEventListener("focusout",$APP.k(c,"focusout"));b.removeEventListener("slotchange",$APP.k(c,"slotchange"))}}},No=function(a){var b=$APP.k(a,"__xComboboxHandlers");return $APP.n(b)?setTimeout(function(){var c=a.isConnected;return $APP.n($APP.n(c)?a.hasAttribute("open"):c)?document.addEventListener("click",$APP.k(b,"docClick")):null},0):null},Po=function(a){a=$APP.k(a,"__xComboboxHandlers");return $APP.n(a)?document.removeEventListener("click",$APP.k(a,"docClick")):null},
20
+ Wo=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,c,$APP.F(d))}})},Xo=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){return d!=null&&$APP.N(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},$o=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
21
+ "observedAttributes",{get:function(){return Yo}});Xo(b,"value","value");Xo(b,"placeholder","placeholder");Xo(b,"name","name");Xo(b,"placement","placement");Wo(b,"disabled","disabled");Wo(b,"required","required");Wo(b,"open","open");b.show=function(){return Oo(this,"programmatic")};b.hide=function(){return Qo(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xComboboxRefs"))){var c=this.attachShadow({mode:"open"}),d=Fo("style"),e=Fo("div"),g=Fo("input"),h=Fo("button"),
22
+ l=Fo("span"),m=Fo("div"),p=Fo("slot");var q=$APP.k(Zo,"n")+1;Zo.n=q;q="x-cb-lb-"+$APP.T.g(q);d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-combobox-bg:var(--x-color-surface,#ffffff);--x-combobox-fg:var(--x-color-text,#0f172a);--x-combobox-placeholder:var(--x-color-text-muted,#94a3b8);--x-combobox-border:1px solid var(--x-color-border,#e2e8f0);--x-combobox-border-hover:1px solid var(--x-color-border,#cbd5e1);--x-combobox-border-focus:1px solid var(--x-color-focus-ring,#60a5fa);--x-combobox-radius:var(--x-radius-md,6px);--x-combobox-height:2.25rem;--x-combobox-font-size:var(--x-font-size-sm,0.9375rem);--x-combobox-padding:0 0.625rem;--x-combobox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.05));--x-combobox-disabled-opacity:var(--x-opacity-disabled,0.55);--x-combobox-chevron-color:var(--x-color-text-muted,#64748b);--x-combobox-panel-bg:var(--x-color-bg,#ffffff);--x-combobox-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-combobox-panel-radius:var(--x-radius-md,8px);--x-combobox-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-combobox-panel-max-height:16rem;--x-combobox-panel-offset:4px;--x-combobox-option-padding:0.5rem 0.625rem;--x-combobox-option-hover-bg:var(--x-color-surface-hover,#f1f5f9);--x-combobox-option-active-bg:var(--x-color-primary,#3b82f6);--x-combobox-option-active-fg:#ffffff;--x-combobox-transition-duration:var(--x-transition-duration,150ms);--x-combobox-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-combobox-bg:var(--x-color-surface,#1e293b);--x-combobox-fg:var(--x-color-text,#e2e8f0);--x-combobox-placeholder:var(--x-color-text-muted,#64748b);--x-combobox-border:1px solid var(--x-color-border,#334155);--x-combobox-border-hover:1px solid var(--x-color-border,#475569);--x-combobox-border-focus:1px solid var(--x-color-focus-ring,#93c5fd);--x-combobox-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.2));--x-combobox-chevron-color:var(--x-color-text-muted,#94a3b8);--x-combobox-panel-bg:var(--x-color-bg,#1e293b);--x-combobox-panel-border:1px solid var(--x-color-border,#334155);--x-combobox-panel-shadow:var(--x-shadow-md,0 4px 24px rgba(0,0,0,0.4));--x-combobox-option-hover-bg:var(--x-color-surface-hover,#334155);--x-combobox-option-active-bg:var(--x-color-primary,#3b82f6);}}[part\x3dwrapper]{display:flex;align-items:center;height:var(--x-combobox-height);background:var(--x-combobox-bg);border:var(--x-combobox-border);border-radius:var(--x-combobox-radius);box-shadow:var(--x-combobox-shadow);padding:var(--x-combobox-padding);cursor:text;transition:border var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),box-shadow var(--x-combobox-transition-duration) var(--x-combobox-transition-easing);}[part\x3dwrapper]:hover{border:var(--x-combobox-border-hover);}:host(:focus-within) [part\x3dwrapper]{border:var(--x-combobox-border-focus);box-shadow:0 0 0 2px var(--x-combobox-focus-ring);}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-combobox-disabled-opacity);cursor:default;pointer-events:none;}[part\x3dinput]{all:unset;flex:1;min-width:0;height:100%;font-size:var(--x-combobox-font-size);font-family:inherit;color:var(--x-combobox-fg);}[part\x3dinput]::placeholder{color:var(--x-combobox-placeholder);}[part\x3dclear]{all:unset;display:none;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;font-size:0.875rem;color:var(--x-combobox-chevron-color);cursor:pointer;flex-shrink:0;border-radius:2px;}[part\x3dclear]:hover{color:var(--x-combobox-fg);}[part\x3dclear]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-combobox-focus-ring);}:host([data-has-value]) [part\x3dclear]{display:inline-flex;}:host([disabled]) [part\x3dclear]{display:none;}[part\x3dchevron]{display:inline-flex;align-items:center;color:var(--x-combobox-chevron-color);flex-shrink:0;margin-left:0.25rem;transition:transform 200ms ease;pointer-events:none;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dpanel]{position:absolute;z-index:var(--x-z-dropdown,1000);box-sizing:border-box;width:100%;background:var(--x-combobox-panel-bg);border:var(--x-combobox-panel-border);border-radius:var(--x-combobox-panel-radius);box-shadow:var(--x-combobox-panel-shadow);padding:0.25rem 0;max-height:var(--x-combobox-panel-max-height);max-width:calc(100% - 0rem);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scaleY(0.95);transition:opacity var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),transform var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),visibility 0s var(--x-combobox-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scaleY(1);transition:opacity var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),transform var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-combobox-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-combobox-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-combobox-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-combobox-panel-offset));right:0;transform-origin:bottom right;}[part\x3doption]{padding:var(--x-combobox-option-padding);font-size:var(--x-combobox-font-size);font-family:inherit;color:var(--x-combobox-fg);cursor:default;border-radius:4px;margin:0 0.25rem;}[part\x3doption]:hover{background:var(--x-combobox-option-hover-bg);}[part\x3doption][data-active]{background:var(--x-combobox-option-active-bg);color:var(--x-combobox-option-active-fg);}[part\x3doption][data-active] b{color:inherit;}[part\x3doption] b{font-weight:700;}[part\x3dempty-msg]{padding:var(--x-combobox-option-padding);font-size:var(--x-combobox-font-size);color:var(--x-combobox-placeholder);font-style:italic;margin:0 0.25rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dwrapper]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}@media (pointer:coarse){:host{--x-combobox-height:2.75rem;}[part\x3dclear]{width:2.75rem;height:2.75rem;}[part\x3doption]{min-height:2.75rem;display:flex;align-items:center;}}";
23
23
  e.setAttribute("part","wrapper");g.setAttribute("part","input");g.setAttribute("type","text");g.setAttribute("role","combobox");g.setAttribute("aria-expanded","false");g.setAttribute("aria-autocomplete","list");g.setAttribute("aria-controls",q);g.setAttribute("autocomplete","off");h.setAttribute("part","clear");h.setAttribute("type","button");h.setAttribute("aria-label","Clear");h.setAttribute("tabindex","-1");h.textContent="×";l.setAttribute("part","chevron");l.setAttribute("aria-hidden","true");
24
24
  l.innerHTML='\x3csvg width\x3d"12" height\x3d"12" viewBox\x3d"0 0 12 12" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M2.5 4.5L6 8L9.5 4.5" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"/\x3e\x3c/svg\x3e';m.setAttribute("part","panel");m.setAttribute("role","listbox");m.setAttribute("id",q);m.setAttribute("data-placement","bottom-start");e.appendChild(g);e.appendChild(h);e.appendChild(l);c.appendChild(d);
25
- c.appendChild(e);c.appendChild(m);c.appendChild(p);this.__xComboboxListboxId=q;this.__xComboboxOptions=$APP.fe;this.__xComboboxQuery="";this.__xComboboxActiveIdx=0;this.__xComboboxRefs={wrapper:e,input:g,clear:h,chevron:l,panel:m,slot:p}}Oo(this);Io(this);this.__xComboboxHandlers=No(this);l=$APP.k(this,"__xComboboxRefs");$APP.n(l)&&(c=$APP.k(this,"__xComboboxHandlers"),$APP.n(c)&&(d=$APP.k(l,"input"),e=$APP.k(l,"clear"),g=$APP.k(l,"chevron"),h=$APP.k(l,"panel"),l=$APP.k(l,"slot"),d.addEventListener("focus",
26
- $APP.k(c,"inputFocus")),d.addEventListener("input",$APP.k(c,"inputInput")),d.addEventListener("keydown",$APP.k(c,"inputKeydown")),e.addEventListener("click",$APP.k(c,"clearClick")),g.addEventListener("pointerdown",$APP.k(c,"chevronPointerdown")),h.addEventListener("pointerdown",$APP.k(c,"panelPointerdown")),h.addEventListener("click",$APP.k(c,"panelClick")),this.addEventListener("focusout",$APP.k(c,"focusout")),l.addEventListener("slotchange",$APP.k(c,"slotchange"))));Ao(this);return Do(this)};b.disconnectedCallback=
27
- function(){Oo(this);return Io(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xComboboxRefs"))?(Do(this),c=$APP.C.i(c,"open")?$APP.n(this.hasAttribute("open"))?Go(this):Io(this):null):c=null;return c};return a},Uo=function(){return $APP.n(customElements.get("x-combobox"))?null:customElements.define("x-combobox",To())},vo=new $APP.K(null,"match","match",1220059550),wo=new $APP.K(null,"after","after",594996914),uo=new $APP.K(null,"before","before",-1633692388);var Co=new $APP.S(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Ro="value placeholder name disabled required open placement".split(" ");
28
- $APP.Qd(["x-combobox-change",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,2,[$APP.Pi,$APP.Y,$APP.U,$APP.Y],null)],null),"x-combobox-input",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,1,[$APP.zi,$APP.Y],null)],null),"x-combobox-toggle",new $APP.Q(null,2,[$APP.Rl,!0,$APP.V,new $APP.Q(null,2,[$APP.Ol,$APP.Sj,$APP.$k,$APP.Y],null)],null)]);var So={n:0};$APP.ha("baredom.exports.x_combobox.init",Uo);export const init=Uo;
25
+ c.appendChild(e);c.appendChild(m);c.appendChild(p);this.__xComboboxListboxId=q;this.__xComboboxOptions=$APP.fe;this.__xComboboxQuery="";this.__xComboboxActiveIdx=0;this.__xComboboxRefs={wrapper:e,input:g,clear:h,chevron:l,panel:m,slot:p}}Vo(this);Po(this);this.__xComboboxHandlers=Uo(this);l=$APP.k(this,"__xComboboxRefs");$APP.n(l)&&(c=$APP.k(this,"__xComboboxHandlers"),$APP.n(c)&&(d=$APP.k(l,"input"),e=$APP.k(l,"clear"),g=$APP.k(l,"chevron"),h=$APP.k(l,"panel"),l=$APP.k(l,"slot"),d.addEventListener("focus",
26
+ $APP.k(c,"inputFocus")),d.addEventListener("input",$APP.k(c,"inputInput")),d.addEventListener("keydown",$APP.k(c,"inputKeydown")),e.addEventListener("click",$APP.k(c,"clearClick")),g.addEventListener("pointerdown",$APP.k(c,"chevronPointerdown")),h.addEventListener("pointerdown",$APP.k(c,"panelPointerdown")),h.addEventListener("click",$APP.k(c,"panelClick")),this.addEventListener("focusout",$APP.k(c,"focusout")),l.addEventListener("slotchange",$APP.k(c,"slotchange"))));Ho(this);return Ko(this)};b.disconnectedCallback=
27
+ function(){Vo(this);return Po(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xComboboxRefs"))?(Ko(this),c=$APP.C.i(c,"open")?$APP.n(this.hasAttribute("open"))?No(this):Po(this):null):c=null;return c};return a},ap=function(){return $APP.n(customElements.get("x-combobox"))?null:customElements.define("x-combobox",$o())},Co=new $APP.K(null,"match","match",1220059550),Do=new $APP.K(null,"after","after",594996914),Bo=new $APP.K(null,"before","before",-1633692388);var Jo=new $APP.R(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Yo="value placeholder name disabled required open placement".split(" ");
28
+ $APP.Qd(["x-combobox-change",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,2,[$APP.Ti,$APP.Y,$APP.U,$APP.Y],null)],null),"x-combobox-input",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Di,$APP.Y],null)],null),"x-combobox-toggle",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,new $APP.Q(null,2,[$APP.Vl,$APP.Xj,$APP.fl,$APP.Y],null)],null)]);var Zo={n:0};$APP.ha("baredom.exports.x_combobox.init",ap);export const init=ap;