@vanelsas/baredom 2.3.2 → 2.4.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 (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +265 -264
  4. package/dist/integrity.json +98 -0
  5. package/dist/x-alert.js +17 -17
  6. package/dist/x-avatar-group.js +11 -11
  7. package/dist/x-avatar.js +14 -14
  8. package/dist/x-badge.js +11 -11
  9. package/dist/x-bento-grid.js +5 -5
  10. package/dist/x-bento-item.js +4 -4
  11. package/dist/x-breadcrumbs.js +14 -14
  12. package/dist/x-button.js +15 -15
  13. package/dist/x-cancel-dialogue.js +16 -16
  14. package/dist/x-card.js +7 -7
  15. package/dist/x-carousel.js +32 -32
  16. package/dist/x-chart.js +47 -47
  17. package/dist/x-checkbox.js +11 -11
  18. package/dist/x-chip.js +8 -8
  19. package/dist/x-collapse.js +10 -10
  20. package/dist/x-color-picker.js +42 -42
  21. package/dist/x-combobox.js +24 -24
  22. package/dist/x-command-palette.js +24 -24
  23. package/dist/x-container.js +6 -6
  24. package/dist/x-context-menu.js +18 -18
  25. package/dist/x-copy.js +22 -22
  26. package/dist/x-currency-field.js +22 -22
  27. package/dist/x-date-picker.js +37 -37
  28. package/dist/x-divider.js +8 -8
  29. package/dist/x-drawer.js +11 -11
  30. package/dist/x-dropdown.js +9 -9
  31. package/dist/x-fieldset.js +5 -5
  32. package/dist/x-file-download.js +7 -7
  33. package/dist/x-file-upload.js +26 -0
  34. package/dist/x-form-field.js +15 -15
  35. package/dist/x-form.js +10 -10
  36. package/dist/x-gaussian-blur.js +18 -18
  37. package/dist/x-grid.js +6 -6
  38. package/dist/x-icon.js +7 -7
  39. package/dist/x-image.js +18 -18
  40. package/dist/x-kinetic-font.js +28 -28
  41. package/dist/x-kinetic-typography.js +38 -38
  42. package/dist/x-liquid-dock.js +36 -36
  43. package/dist/x-liquid-fill.js +42 -42
  44. package/dist/x-liquid-glass.js +40 -40
  45. package/dist/x-menu-item.js +10 -10
  46. package/dist/x-menu.js +10 -10
  47. package/dist/x-metaball-cursor.js +27 -27
  48. package/dist/x-modal.js +11 -11
  49. package/dist/x-morph-stack.js +39 -39
  50. package/dist/x-navbar.js +13 -13
  51. package/dist/x-neural-glow.js +30 -30
  52. package/dist/x-notification-center.js +10 -10
  53. package/dist/x-organic-divider.js +16 -16
  54. package/dist/x-organic-progress.js +35 -35
  55. package/dist/x-organic-shape.js +12 -12
  56. package/dist/x-pagination.js +16 -16
  57. package/dist/x-particle-button.js +49 -49
  58. package/dist/x-popover.js +23 -23
  59. package/dist/x-progress-circle.js +8 -8
  60. package/dist/x-progress.js +8 -8
  61. package/dist/x-radio.js +11 -11
  62. package/dist/x-ripple-effect.js +11 -11
  63. package/dist/x-scroll-parallax.js +17 -17
  64. package/dist/x-scroll-stack.js +18 -18
  65. package/dist/x-scroll-story.js +34 -34
  66. package/dist/x-scroll-timeline.js +45 -45
  67. package/dist/x-scroll.js +40 -40
  68. package/dist/x-search-field.js +14 -14
  69. package/dist/x-select.js +9 -9
  70. package/dist/x-sidebar.js +16 -16
  71. package/dist/x-skeleton-group.js +13 -13
  72. package/dist/x-skeleton.js +1 -1
  73. package/dist/x-slider.js +16 -16
  74. package/dist/x-soft-body.js +20 -20
  75. package/dist/x-spacer.js +5 -5
  76. package/dist/x-spinner.js +5 -5
  77. package/dist/x-splash.js +13 -13
  78. package/dist/x-stat.js +11 -11
  79. package/dist/x-stepper.js +15 -15
  80. package/dist/x-switch.js +10 -10
  81. package/dist/x-tab.js +7 -7
  82. package/dist/x-table-cell.js +20 -20
  83. package/dist/x-table-row.js +10 -10
  84. package/dist/x-table.js +14 -14
  85. package/dist/x-tabs.js +11 -11
  86. package/dist/x-text-area.js +17 -17
  87. package/dist/x-theme.js +25 -25
  88. package/dist/x-timeline-item.js +20 -21
  89. package/dist/x-timeline.js +9 -9
  90. package/dist/x-toast.js +22 -22
  91. package/dist/x-toaster.js +8 -8
  92. package/dist/x-tooltip.js +12 -12
  93. package/dist/x-typography.js +8 -8
  94. package/dist/x-welcome-tour.js +66 -0
  95. package/package.json +10 -2
@@ -1,46 +1,46 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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,
2
+ var CA=function(a,b){return $APP.sh.i($APP.oh.i(a,0),b)},DA=function(a){return $APP.fd(a,360)},EA=function(a){return CA(a,100)},FA=function(a){return CA(a,1)},HA=function(a){var b=typeof a==="string";a=b?$APP.eg(GA,a.trim()):b;return $APP.F(a)},LA=function(a){if(typeof a==="string")if(a=$APP.eg(GA,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(""+$APP.T.g($APP.pc(a,1))+$APP.T.g($APP.pc(a,
3
+ 1)),16),d=parseInt(""+$APP.T.g($APP.pc(a,2))+$APP.T.g($APP.pc(a,2)),16);return new $APP.R(null,4,[IA,b,$APP.Pl,c,JA,d,KA,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.R(null,4,[IA,b,$APP.Pl,c,JA,d,KA,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.R(null,4,[IA,b,$APP.Pl,c,JA,d,KA,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},PA=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.oh.C(a,b,$APP.uc([c])),e=$APP.sh.C(a,b,$APP.uc([c])),g=(d+e)/2,h=d-e;return h===0?new $APP.R(null,3,[MA,0,NA,0,OA,g*100],null):new $APP.R(null,3,[MA,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,NA,(g>.5?h/(2-d-e):h/(d+e))*100,OA,g*100],null)},QA=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},RA=function(a,b,c){a=DA(a)/360;b=EA(b)/100;c=EA(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.R(null,3,[IA,a,$APP.Pl,a,JA,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.R(null,3,[IA,Math.round(QA(c,b,a+1/3)*255),$APP.Pl,Math.round(QA(c,b,a)*255),JA,Math.round(QA(c,b,a-1/3)*255)],null)},SA=function(a,b,c){function d(e){e=CA(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))},TA=function(a,b,c,d){function e(g){g=CA(Math.round(g),255).toString(16);return $APP.z(g)<2?"0"+$APP.T.g(g):g}
6
+ return"#"+$APP.T.g(e(a))+$APP.T.g(e(b))+$APP.T.g(e(c))+$APP.T.g(e(FA(d)*255))},VA=function(a,b,c){b=EA(b)/100;c=EA(c)/100;b=c+b*$APP.sh.i(c,1-c);return new $APP.R(null,3,[MA,DA(a),NA,(b===0?0:2*(1-c/b))*100,UA,b*100],null)},WA=function(a,b,c){b=EA(b)/100;c=EA(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.sh.i(b,1-b);return new $APP.R(null,3,[MA,DA(a),NA,c*100,OA,b*100],null)},XA=function(a,b){return new $APP.R(null,2,[$APP.Jl,EA(a),$APP.Il,100-EA(b)],null)},YA=function(a){return typeof a==="string"&&
7
+ HA(a)?(a=LA(a),$APP.n(a)?SA(IA.g(a),$APP.Pl.g(a),JA.g(a)):null):"#000000"},$A=function(a){return typeof a==="string"&&$APP.I(ZA,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},aB=function(a){return typeof a==="string"&&$APP.Lg(a)?$APP.We.m($APP.fe,$APP.th.m($APP.ae.g($APP.Jg),$APP.ce(HA),$APP.ae.g(function(b){b=LA(b);var c=$APP.M(b);b=$APP.D(c,IA);var d=$APP.D(c,$APP.Pl);c=$APP.D(c,JA);return SA(b,d,c)})),$APP.Hg(a,/,/)):$APP.fe},gB=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.gm),d=$APP.D(b,
8
+ $APP.Pj),e=$APP.D(b,$APP.Yi);a=$APP.D(b,$APP.Aj);var g=$APP.D(b,$APP.Bj),h=$APP.D(b,$APP.wj),l=$APP.D(b,bB),m=$APP.D(b,$APP.U),p=$APP.D(b,cB);b=YA(e);var q=function(){var H=LA(e);return $APP.n(H)?H:LA("#000000")}(),v=$APP.M(q);q=$APP.D(v,IA);var x=$APP.D(v,$APP.Pl),y=$APP.D(v,JA);v=$APP.D(v,KA);var A=function(){var H=typeof e==="string";if(H){H=e.trim();var G=$APP.eg(GA,H);$APP.n(G)?(H=$APP.eg(GA,H),H=$APP.u($APP.w(H)),H=8===$APP.z(H)):H=G;return H}return H}();v=$APP.n(A)?v:1;A=PA(q,x,y);var C=$APP.M(A);
9
+ A=$APP.D(C,MA);var E=$APP.D(C,NA);C=$APP.D(C,OA);d=$APP.Kg(d);g=$APP.Kg(g);p=p!=null;c=c!=null;h=$A(h);return $APP.zf([$APP.bn,dB,$APP.Aj,$APP.wj,bB,NA,OA,eB,MA,$APP.U,$APP.Mm,fB,$APP.X,KA],[g,p,$APP.Lg(a)?a:null,h,aB(l),E,C,b,A,$APP.Lg(m)?m:null,$APP.B.i(h,"popover")&&c,p&&v<1?TA(q,x,y,v):b,d,v])},hB=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)+", Opacity "+$APP.T.g(Math.round(d*100))+
10
+ "%":a},iB=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.X);b=$APP.D(b,$APP.bn);return $APP.r(a)&&$APP.r(b)},jB=function(a){return document.createElement(a)},kB=function(a,b,c){return a.setAttribute(b,c)},lB=function(a){return gB($APP.zf([$APP.gm,$APP.Pj,$APP.Aj,$APP.Yi,$APP.Bj,$APP.wj,bB,$APP.U,cB],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},
11
+ mB=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Hh(d),bubbles:!0,composed:!0,cancelable:$APP.F(c)});return a.dispatchEvent(b)},nB=function(a,b){var c=fB.g(b),d=MA.g(b),e=NA.g(b),g=OA.g(b);b=KA.g(b);return mB(a,"x-color-picker-input",!1,new $APP.R(null,5,[$APP.Yi,c,MA,d,NA,e,OA,g,KA,b],null))},oB=function(a,b){var c=fB.g(b),d=MA.g(b),e=NA.g(b),g=OA.g(b);b=KA.g(b);return mB(a,"x-color-picker-change",!0,new $APP.R(null,5,[$APP.Yi,c,MA,d,NA,e,OA,g,KA,b],null))},pB=function(a,b,c,d,e,g){b=RA(b,c,
12
+ d);d=$APP.M(b);b=$APP.D(d,IA);c=$APP.D(d,$APP.Pl);d=$APP.D(d,JA);e=$APP.n($APP.n(g)?e<1:g)?TA(b,c,d,e):SA(b,c,d);a.setAttribute("value",e)},qB=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=jB("button");l.setAttribute("part","swatch");l.setAttribute("type","button");l.setAttribute("role","option");l.setAttribute("aria-label",h);l.setAttribute("data-color",h);l.style.backgroundColor=
13
+ 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=jB("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 kB(m,"aria-selected",$APP.B.i(m.getAttribute("data-color"),d)?"true":
14
+ "false")})},rB=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=lB(a),d=$APP.M(c);c=$APP.D(d,fB);var e=$APP.D(d,$APP.X),g=$APP.D(d,KA),h=$APP.D(d,$APP.bn),l=$APP.D(d,dB),m=$APP.D(d,$APP.wj),p=$APP.D(d,bB),q=$APP.D(d,NA),v=$APP.D(d,OA),x=$APP.D(d,eB),y=$APP.D(d,$APP.U),A=$APP.D(d,MA);d=VA(A,q,v);d=$APP.M(d);var C=$APP.D(d,NA);q=$APP.D(d,UA);d=XA(NA.g(d),q);q=$APP.k(b,"area");var E=$APP.k(b,"hue-strip"),H=$APP.k(b,"alpha-strip"),G=$APP.k(b,"preview-color"),J=$APP.k(b,"hex-input"),
15
+ Q=$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.Jl.g(d).toFixed(2))+"%");q.style.setProperty("--_x-cp-area-y",""+$APP.T.g($APP.Il.g(d).toFixed(2))+"%");kB(q,"aria-valuetext",hB(A,C,v,g));$APP.n(y)&&q.setAttribute("aria-label",y);E.style.setProperty("--_x-cp-hue-pos",""+$APP.T.g((DA(A)/360*100).toFixed(2))+"%");kB(E,"aria-valuenow",""+$APP.T.g(Math.round(A)));
16
+ $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(C))+"%,"+$APP.T.g(Math.round(v))+"%)"),H.style.setProperty("--_x-cp-alpha-pos",""+$APP.T.g((FA(g)*100).toFixed(2))+"%"),kB(H,"aria-valuenow",""+$APP.T.g(Math.round(g*100)))):H.style.display="none";G.style.backgroundColor=$APP.n(l)?function(){var aa=RA(A,C,v),ka=$APP.M(aa);aa=$APP.D(ka,IA);var Ca=$APP.D(ka,$APP.Pl);ka=$APP.D(ka,JA);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Ca)+
17
+ ","+$APP.T.g(ka)+","+$APP.T.g(g.toFixed(2))+")"}():x;a.shadowRoot.activeElement!==J&&(J.value=c);Q.style.backgroundColor=$APP.n(l)?function(){var aa=RA(A,C,v),ka=$APP.M(aa);aa=$APP.D(ka,IA);var Ca=$APP.D(ka,$APP.Pl);ka=$APP.D(ka,JA);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Ca)+","+$APP.T.g(ka)+","+$APP.T.g(g.toFixed(2))+")"}():x;J.disabled=$APP.n(e)?e:h;qB(a,b,p,x);a=$APP.k(a,"__xColorPickerInternals");return $APP.n(a)?a.setFormValue(c):null}return null},tB=function(a,b){var c=a.getBoundingClientRect();
18
+ a=b.clientY-c.top;var d=c.width,e=c.height;b=100*(CA(b.clientX-c.left,d)/d);a=100*(CA(a,e)/e);return new $APP.R(null,2,[sB,EA(b),$APP.Rj,100-EA(a)],null)},uB=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(CA(b.clientX-a.left,c)/c);return EA(b)/100*360},vB=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(CA(b.clientX-a.left,c)/c);return EA(b)/100},xB=function(a,b){var c=lB(a);if(iB(c)&&$APP.I(wB,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=VA(MA.g(c),NA.g(c),
19
+ OA.g(c)),g=function(){switch(b.key){case "ArrowRight":return EA(NA.g(e)+d);case "ArrowLeft":return EA(NA.g(e)-d);default:return NA.g(e)}}(),h=function(){switch(b.key){case "ArrowUp":return EA(UA.g(e)+d);case "ArrowDown":return EA(UA.g(e)-d);default:return UA.g(e)}}();g=WA(MA.g(c),g,h);var l=$APP.M(g);g=$APP.D(l,MA);h=$APP.D(l,NA);l=$APP.D(l,OA);pB(a,g,h,l,KA.g(c),dB.g(c));nB(a,lB(a));return oB(a,lB(a))}return null},zB=function(a,b){var c=lB(a);if(iB(c)&&$APP.I(yB,b.key)){b.preventDefault();var d=
20
+ $APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return DA(MA.g(c)+d);case "ArrowLeft":return DA(MA.g(c)-d);case "Home":return 0;case "End":return 360;default:return MA.g(c)}}();pB(a,e,NA.g(c),OA.g(c),KA.g(c),dB.g(c));nB(a,lB(a));return oB(a,lB(a))}return null},AB=function(a,b){var c=lB(a);if($APP.n(function(){var g=iB(c);return g?(g=dB.g(c),$APP.n(g)?$APP.I(yB,b.key):g):g}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return FA(KA.g(c)+
21
+ d);case "ArrowLeft":return FA(KA.g(c)-d);case "Home":return 0;case "End":return 1;default:return KA.g(c)}}();pB(a,MA.g(c),NA.g(c),OA.g(c),e,!0);nB(a,lB(a));return oB(a,lB(a))}return null},BB=function(a){var b=lB(a);return iB(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){a.setAttribute("value",c.sRGBHex);return oB(a,lB(a))}).catch(function(){return null}):null},CB=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},DB=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},EB=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 ta=lB(a);if(iB(ta)){da.preventDefault();var Qa=$APP.k($APP.k(a,"__xColorPickerRefs"),"area");Qa.setPointerCapture(da.pointerId);a.__xColorPickerDragging="area";da=tB(Qa,da);Qa=$APP.M(da);da=$APP.D(Qa,sB);Qa=$APP.D(Qa,$APP.Rj);da=WA(MA.g(ta),da,Qa);var ac=$APP.M(da);da=$APP.D(ac,MA);Qa=$APP.D(ac,NA);ac=$APP.D(ac,OA);pB(a,da,Qa,ac,KA.g(ta),dB.g(ta));ta=nB(a,lB(a))}else ta=null;return ta},v=function(da){if($APP.B.i("area",$APP.k(a,"__xColorPickerDragging"))){var ta=
24
+ lB(a);da=tB($APP.k($APP.k(a,"__xColorPickerRefs"),"area"),da);var Qa=$APP.M(da);da=$APP.D(Qa,sB);Qa=$APP.D(Qa,$APP.Rj);da=WA(MA.g(ta),da,Qa);var ac=$APP.M(da);da=$APP.D(ac,MA);Qa=$APP.D(ac,NA);ac=$APP.D(ac,OA);pB(a,da,Qa,ac,KA.g(ta),dB.g(ta));ta=nB(a,lB(a))}else ta=null;return ta},x=function(){if($APP.B.i("area",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var da=oB(a,lB(a))}else da=null;return da},y=function(da){return xB(a,da)},A=function(da){var ta=lB(a);if(iB(ta)){da.preventDefault();
25
+ var Qa=$APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip");Qa.setPointerCapture(da.pointerId);a.__xColorPickerDragging="hue";da=uB(Qa,da);pB(a,da,NA.g(ta),OA.g(ta),KA.g(ta),dB.g(ta));ta=nB(a,lB(a))}else ta=null;return ta},C=function(da){if($APP.B.i("hue",$APP.k(a,"__xColorPickerDragging"))){var ta=lB(a);da=uB($APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip"),da);pB(a,da,NA.g(ta),OA.g(ta),KA.g(ta),dB.g(ta));ta=nB(a,lB(a))}else ta=null;return ta},E=function(){if($APP.B.i("hue",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=
26
+ null;var da=oB(a,lB(a))}else da=null;return da},H=function(da){return zB(a,da)},G=function(da){var ta=lB(a);var Qa=(Qa=iB(ta))?dB.g(ta):Qa;$APP.n(Qa)?(da.preventDefault(),Qa=$APP.k($APP.k(a,"__xColorPickerRefs"),"alpha-strip"),Qa.setPointerCapture(da.pointerId),a.__xColorPickerDragging="alpha",da=vB(Qa,da),pB(a,MA.g(ta),NA.g(ta),OA.g(ta),da,!0),ta=nB(a,lB(a))):ta=null;return ta},J=function(da){if($APP.B.i("alpha",$APP.k(a,"__xColorPickerDragging"))){var ta=lB(a);da=vB($APP.k($APP.k(a,"__xColorPickerRefs"),
27
+ "alpha-strip"),da);pB(a,MA.g(ta),NA.g(ta),OA.g(ta),da,!0);ta=nB(a,lB(a))}else ta=null;return ta},Q=function(){if($APP.B.i("alpha",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var da=oB(a,lB(a))}else da=null;return da},aa=function(da){return AB(a,da)},ka=function(da){a:{if($APP.B.i("Enter",da.key)){da.preventDefault();da=$APP.k($APP.k(a,"__xColorPickerRefs"),"hex-input");var ta=da.value,Qa=lB(a);if(iB(Qa)){if(HA(ta)){a.setAttribute("value",ta);da=oB(a,lB(a));break a}da=da.value=
28
+ fB.g(Qa);break a}}da=null}return da},Ca=function(da){a:{var ta=lB(a);if(iB(ta)&&(da=da.target,$APP.n(da.hasAttribute("data-color")))){da=da.getAttribute("data-color");a.setAttribute("value",da);da=oB(a,lB(a));break a}da=null}return da},Pa=function(){return BB(a)},cb=function(){var da=lB(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(fB.g(da)):null},db=function(){var da=lB(a);return $APP.B.i("popover",$APP.wj.g(da))&&$APP.r($APP.X.g(da))?$APP.n($APP.Mm.g(da))?DB(a):CB(a):null},
29
+ ob=function(da){$APP.B.i("Escape",da.key)&&$APP.B.i("popover",$APP.wj.g(lB(a)))?(da.preventDefault(),da.stopPropagation(),da=DB(a)):da=null;return da},Nb=function(da){return da.stopPropagation()},fb=function(da){return $APP.n(a.hasAttribute("open"))?$APP.n(da.composedPath().some(function(ta){return ta===a}))?null:DB(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",C);d.addEventListener("pointerup",E);d.addEventListener("keydown",H);e.addEventListener("pointerdown",G);e.addEventListener("pointermove",J);e.addEventListener("pointerup",Q);e.addEventListener("keydown",aa);g.addEventListener("keydown",ka);h.addEventListener("click",Ca);l.addEventListener("click",Pa);m.addEventListener("click",cb);p.addEventListener("click",db);b.addEventListener("keydown",ob);b.addEventListener("pointerdown",Nb);document.addEventListener("pointerdown",
31
+ fb,!0);$APP.Cg(a,"__xColorPickerHandlers",{"area-move":v,copy:cb,"panel-key":ob,"alpha-up":Q,"hue-up":E,"alpha-key":aa,"alpha-move":J,"hex-key":ka,swatch:Ca,"area-up":x,"alpha-down":G,"area-key":y,"hue-down":A,"hue-key":H,"hue-move":C,eyedrop:Pa,"panel-pd":Nb,trigger:db,"doc-click":fb,"area-down":q})}},FB=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},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;}}";
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},GB=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))}})},HB=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)?kB(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},JB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return IB}});GB(b,"disabled","disabled");GB(b,"readOnly","readonly");GB(b,"alpha","alpha");GB(b,"open","open");HB(b,"value","value");HB(b,"swatches","swatches");HB(b,"name","name");HB(b,"mode","mode");HB(b,"label","label");
36
+ b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xColorPickerRefs"))){var c=this.attachShadow({mode:"open"}),d=jB("style"),e=jB("div"),g=jB("button"),h=jB("span"),l=jB("div"),m=jB("div"),p=jB("div"),q=jB("div"),v=jB("div"),x=jB("div"),y=jB("div"),A=jB("div"),C=jB("div"),E=jB("div"),H=jB("div"),G=jB("span"),J=jB("input"),Q=jB("button"),aa=jB("button"),ka=jB("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");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
- 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);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;
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");C.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");Q.setAttribute("part","eyedropper");Q.setAttribute("type","button");Q.setAttribute("aria-label","Pick color from screen");Q.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
+ 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';ka.setAttribute("part",
41
+ "swatches");ka.setAttribute("role","listbox");ka.setAttribute("aria-label","Preset colors");g.appendChild(h);m.appendChild(p);v.appendChild(x);y.appendChild(A);y.appendChild(C);q.appendChild(v);q.appendChild(y);H.appendChild(G);E.appendChild(H);E.appendChild(J);E.appendChild(Q);E.appendChild(aa);l.appendChild(m);l.appendChild(q);l.appendChild(E);l.appendChild(ka);e.appendChild(g);e.appendChild(l);c.appendChild(d);c.appendChild(e);typeof EyeDropper==="undefined"&&(Q.style.display="none");this.__xColorPickerRefs=
42
+ {"alpha-thumb":C,copy:aa,swatches:ka,"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:Q,"hex-input":J};$APP.n(this.attachInternals)&&(this.__xColorPickerInternals=this.attachInternals())}FB(this);EB(this);return rB(this)};b.disconnectedCallback=function(){return FB(this)};b.attributeChangedCallback=function(){return rB(this)};b.formDisabledCallback=function(c){$APP.Eg(this,
43
+ "disabled",$APP.F(c));return rB(this)};b.formResetCallback=function(){this.setAttribute("value","#000000");return rB(this)};return a},KB=function(){return $APP.n(customElements.get("x-color-picker"))?null:customElements.define("x-color-picker",JB())},cB=new $APP.K(null,"alpha","alpha",-1574982441),fB=new $APP.K(null,"hex-full","hex-full",-1466644518),bB=new $APP.K(null,"swatches","swatches",2033601707),UA=new $APP.K(null,"v","v",21465059),NA=new $APP.K(null,"s","s",1705939918),IA=new $APP.K(null,
44
+ "r","r",-471384190),dB=new $APP.K(null,"alpha?","alpha?",1329751525),OA=new $APP.K(null,"l","l",1395893423),MA=new $APP.K(null,"h","h",1109658740),JA=new $APP.K(null,"b","b",1482224470),sB=new $APP.K(null,"sat","sat",1064662667),KA=new $APP.K(null,"a","a",-2123407586),eB=new $APP.K(null,"hex","hex",41691346);var ZA=new $APP.S(null,new $APP.R(null,2,["inline",null,"popover",null],null),null),IB="value alpha swatches disabled readonly name mode open label".split(" ");
45
+ $APP.zf([$APP.gm,$APP.Pj,$APP.Aj,$APP.Yi,$APP.wj,bB,$APP.lm,$APP.U,cB],[new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"open"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"mode"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"swatches"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,
46
+ $APP.Ik,"label"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"alpha"],null)]);$APP.Pd(["x-color-picker-input",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.Yi,$APP.Y,MA,$APP.W,NA,$APP.W,OA,$APP.W,KA,$APP.W],null),$APP.jm,!1],null),"x-color-picker-change",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.Yi,$APP.Y,MA,$APP.W,NA,$APP.W,OA,$APP.W,KA,$APP.W],null),$APP.jm,!0],null)]);var GA=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var wB=new $APP.S(null,new $APP.R(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),yB=new $APP.S(null,new $APP.R(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null);$APP.ha("baredom.exports.x_color_picker.init",KB);export const init=KB;
@@ -1,28 +1,28 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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");
2
+ var Io=function(a,b){if(b==null||$APP.B.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)},Jo=function(a,b){return b!=null?$APP.Td(function(c){return $APP.B.i($APP.Yi.g(c),b)?c:null},a):null},No=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.R(null,3,[Ko,a.substring(0,c),Lo,a.substring(c,b),Mo,a.substring(b)],null)}return null},
3
+ Oo=function(a){return document.createElement(a)},Po=function(a,b,c){return a.setAttribute(b,c)},Qo=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.th.i($APP.ce(function(c){return $APP.B.i("OPTION",c.tagName)}),$APP.ae.g(function(c){var d=c.getAttribute("value");return new $APP.R(null,2,[$APP.Yi,$APP.n(d)?d:c.textContent,$APP.U,c.textContent],null)})),$APP.uc(b)),a.__xComboboxOptions=b)},Ro=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 C=$APP.k(a,"__xComboboxQuery");return $APP.n(C)?C:""}(),e=Io($APP.k(a,"__xComboboxOptions"),d),g=function(){var C=$APP.k(a,"__xComboboxActiveIdx");return $APP.n(C)?C:0}();g=$APP.Hc(e)?-1:$APP.sh.i(g,$APP.z(e)-1);var h=function(){var C=a.getAttribute("value");return $APP.n(C)?C:""}();c.textContent="";if($APP.Hc(e))return d=Oo("div"),d.setAttribute("part","empty-msg"),d.textContent="No matches",c.appendChild(d),
5
+ b.removeAttribute("aria-activedescendant");e=$APP.t($APP.Xd($APP.xh,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=Oo("div");var y=""+$APP.T.g("x-cb-opt-")+$APP.T.g(v),A=No($APP.U.g(x),d);q.setAttribute("part","option");q.setAttribute("role","option");q.setAttribute("id",y);Po(q,"data-value",$APP.Yi.g(x));$APP.B.i($APP.Yi.g(x),h)&&q.setAttribute("aria-selected","true");$APP.B.i(v,g)&&q.setAttribute("data-active","");$APP.n(A)?(q.appendChild(document.createTextNode(Ko.g(A))),
6
+ v=Oo("b"),v.textContent=Lo.g(A),q.appendChild(v),q.appendChild(document.createTextNode(Mo.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=Oo("div"),q=""+$APP.T.g("x-cb-opt-")+$APP.T.g(l),p=No($APP.U.g(v),d),m.setAttribute("part","option"),m.setAttribute("role","option"),m.setAttribute("id",q),Po(m,"data-value",$APP.Yi.g(v)),$APP.B.i($APP.Yi.g(v),h)&&m.setAttribute("aria-selected",
7
+ "true"),$APP.B.i(l,g)&&m.setAttribute("data-active",""),$APP.n(p)?(m.appendChild(document.createTextNode(Ko.g(p))),l=Oo("b"),l.textContent=Lo.g(p),m.appendChild(l),m.appendChild(document.createTextNode(Mo.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?Po(b,"aria-activedescendant",""+$APP.T.g("x-cb-opt-")+$APP.T.g(g)):b.removeAttribute("aria-activedescendant")}return null},To=function(a){var b=$APP.k(a,"__xComboboxRefs");if($APP.n(b)){var c=new $APP.R(null,
8
+ 7,[$APP.Cm,a.getAttribute("value"),$APP.Pi,a.getAttribute("placeholder"),$APP.yl,a.getAttribute("name"),$APP.Ml,a.hasAttribute("disabled"),$APP.Nh,a.hasAttribute("required"),$APP.Gi,a.hasAttribute("open"),$APP.gn,a.getAttribute("placement")],null),d=$APP.M(c),e=$APP.D(d,$APP.Cm),g=$APP.D(d,$APP.Pi),h=$APP.D(d,$APP.yl),l=$APP.D(d,$APP.Ml),m=$APP.D(d,$APP.Nh);c=$APP.D(d,$APP.Gi);d=$APP.D(d,$APP.gn);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(So,d)?
9
+ d:"bottom-start";g=$APP.M(new $APP.R(null,7,[$APP.Yi,e,$APP.qm,g,$APP.Aj,h,$APP.X,l,$APP.mi,m,$APP.Mm,c,$APP.Qj,d],null));c=$APP.D(g,$APP.Yi);d=$APP.D(g,$APP.qm);e=$APP.D(g,$APP.X);m=$APP.D(g,$APP.Mm);g=$APP.D(g,$APP.Qj);l=$APP.k(b,"input");b=$APP.k(b,"panel");h=Jo($APP.k(a,"__xComboboxOptions"),c);l.placeholder=d;l.disabled=e;Po(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},Uo=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)},Vo=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},Xo=function(a,b){return $APP.r(a.hasAttribute("disabled"))&&$APP.r(a.hasAttribute("open"))&&Uo(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(),Ro(a),Wo.g?Wo.g(a):Wo.call(null,a)):null},Zo=function(a,b){return $APP.n(a.hasAttribute("open"))&&Uo(a,{open:!1,source:b})?(a.removeAttribute("open"),a.__xComboboxQuery="",a.__xComboboxActiveIdx=0,Yo.g?Yo.g(a):Yo.call(null,a),To(a)):null},$o=function(a,b,c){a.setAttribute("value",b);var d=$APP.k(a,"__xComboboxRefs");$APP.n(d)&&($APP.k(d,"input").value=c);Zo(a,"select");return Vo(a,"x-combobox-change",{value:b,label:c})},ap=function(a,
12
+ b){var c=Io($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.B.i(b,$APP.Tj)?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;Ro(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},bp=function(a){var b=
13
+ Io($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)?$o(a,$APP.Yi.g(b),$APP.U.g(b)):null},cp=function(a){return{slotchange:function(){Qo(a);return $APP.n(a.hasAttribute("open"))?Ro(a):null},inputFocus:function(){return Xo(a,"focus")},inputInput:function(b){b=b.target.value;a.__xComboboxQuery=b;a.__xComboboxActiveIdx=0;$APP.n(a.hasAttribute("open"))||
14
+ Xo(a,"input");Ro(a);return Vo(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 $o(a,c,b.textContent)}return null},inputKeydown:function(b){var c=b.key;if($APP.B.i(c,"ArrowDown"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?ap(a,$APP.Tj):Xo(a,"keyboard");if($APP.B.i(c,"ArrowUp"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?ap(a,$APP.Nj):
15
+ Xo(a,"keyboard");if($APP.B.i(c,"Enter"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?bp(a):null;if($APP.B.i(c,"Escape")){if($APP.n(a.hasAttribute("open")))return b.preventDefault(),Zo(a,"escape"),b=$APP.k(a,"__xComboboxRefs"),$APP.n(b)?$APP.k(b,"input").focus():null}else if($APP.B.i(c,"Home")){if($APP.n(a.hasAttribute("open")))return b.preventDefault(),a.__xComboboxActiveIdx=0,Ro(a)}else if($APP.B.i(c,"End")&&$APP.n(a.hasAttribute("open")))return b.preventDefault(),b=$APP.k(a,"__xComboboxQuery"),
16
+ b=$APP.z(Io($APP.k(a,"__xComboboxOptions"),$APP.n(b)?b:"")),b=$APP.oh.i(0,b-1),a.__xComboboxActiveIdx=b,Ro(a);return null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),b=$APP.Td(function(c){return c===a},b),$APP.n(b)?null:Zo(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 Vo(a,"x-combobox-change",{value:"",label:""})},chevronPointerdown:function(b){b.preventDefault();if($APP.n(a.hasAttribute("open")))return Zo(a,"pointer");Xo(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))?Zo(a,"focusout"):null):null}}},dp=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"))}}},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;}}";
19
+ $APP.k(c,"panelClick"));a.removeEventListener("focusout",$APP.k(c,"focusout"));b.removeEventListener("slotchange",$APP.k(c,"slotchange"))}}},Wo=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},Yo=function(a){a=$APP.k(a,"__xComboboxHandlers");return $APP.n(a)?document.removeEventListener("click",$APP.k(a,"docClick")):null},
20
+ ep=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))}})},fp=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)}})},ip=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
21
+ "observedAttributes",{get:function(){return gp}});fp(b,"value","value");fp(b,"placeholder","placeholder");fp(b,"name","name");fp(b,"placement","placement");ep(b,"disabled","disabled");ep(b,"required","required");ep(b,"open","open");b.show=function(){return Xo(this,"programmatic")};b.hide=function(){return Zo(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xComboboxRefs"))){var c=this.attachShadow({mode:"open"}),d=Oo("style"),e=Oo("div"),g=Oo("input"),h=Oo("button"),
22
+ l=Oo("span"),m=Oo("div"),p=Oo("slot");var q=$APP.k(hp,"n")+1;hp.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}}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;
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}}dp(this);Yo(this);this.__xComboboxHandlers=cp(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"))));Qo(this);return To(this)};b.disconnectedCallback=
27
+ function(){dp(this);return Yo(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xComboboxRefs"))?(To(this),c=$APP.B.i(c,"open")?$APP.n(this.hasAttribute("open"))?Wo(this):Yo(this):null):c=null;return c};return a},jp=function(){return $APP.n(customElements.get("x-combobox"))?null:customElements.define("x-combobox",ip())},Lo=new $APP.K(null,"match","match",1220059550),Mo=new $APP.K(null,"after","after",594996914),Ko=new $APP.K(null,"before","before",-1633692388);var So=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),gp="value placeholder name disabled required open placement".split(" ");
28
+ $APP.Pd(["x-combobox-change",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.Y,$APP.U,$APP.Y],null)],null),"x-combobox-input",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,1,[$APP.Ii,$APP.Y],null)],null),"x-combobox-toggle",new $APP.R(null,2,[$APP.jm,!0,$APP.V,new $APP.R(null,2,[$APP.gm,$APP.Zj,$APP.ql,$APP.Y],null)],null)]);var hp={n:0};$APP.ha("baredom.exports.x_combobox.init",jp);export const init=jp;
@@ -1,28 +1,28 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Yu=function(a){return a==null?!0:$APP.N(a,"false")},Zu=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},bv=function(a){if(a==null||$APP.r($APP.ma(a)))return $APP.fe;for(var b=a.length,c=0,d=$APP.rb($APP.fe);;){if($APP.C.i(c,b))return $APP.tb(d);var e=a[c],g=""+$APP.T.g(function(){var A=e.id;return $APP.n(A)?A:c}()),h=""+$APP.T.g(function(){var A=e.label;return $APP.n(A)?A:""}()),l=Zu(e.group),m=e.value,p=e.icon,q=$APP.C.i(!0,e.disabled),v=e.keywords;v=$APP.n($APP.ma(v))?
3
- v.join(" "):typeof v==="string"?v:"";var x=function(){var A=l;return $APP.n(A)?A:""}(),y=typeof m==="string"?m:"";x=(""+$APP.T.g(h)+" "+$APP.T.g(v)+" "+$APP.T.g(x)+" "+$APP.T.g(y)).toLowerCase();v=c+1;d=$APP.Cd(d,new $APP.Q(null,7,[$APP.ll,g,$APP.U,h,$u,l,$APP.Ti,m,$APP.Jk,p,$APP.X,q,av,x],null));c=v}},dv=function(a,b){b=typeof b==="string"?b.trim():"";var c=$APP.N(b,"")?$APP.Yd(Zu,$APP.Hg(b,/\s+/)):null;if($APP.Hc(c))return new $APP.Q(null,2,[$APP.yl,a,cv,$APP.We.i($APP.Tf,$APP.Yd($u,a))],null);
4
- a=$APP.he(function(d){return $APP.Td(function(e){return $APP.N(-1,av.g(d).indexOf(e.toLowerCase()))},c)},a);return new $APP.Q(null,2,[$APP.yl,a,cv,$APP.We.i($APP.Tf,$APP.Yd($u,a))],null)},ev=function(a,b,c){var d=$APP.z(a);if(d>0)for(var e=1;;)if(e<=d){var g=$APP.fd(b+e*c,d),h=$APP.Ac(a,g,null),l=h;h=$APP.n(l)?$APP.r($APP.X.g(h)):l;if($APP.n(h))return g;e+=1}else return null;else return null},rv=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Bi);var c=$APP.D(b,$APP.Ki),d=$APP.D(b,$APP.ni),e=$APP.D(b,
5
- fv),g=$APP.D(b,gv),h=$APP.D(b,hv),l=$APP.D(b,iv),m=$APP.D(b,jv),p=$APP.D(b,kv);b=$APP.D(b,lv);b=Yu(b);p=Yu(p);m=$APP.Ig(m);m=b&&!m;g=g!=null?$APP.Ig(g):m;l=Yu(l);return $APP.zf([$APP.lm,$APP.Ji,mv,nv,ov,pv,$APP.U,$APP.zm,qv,$APP.X],[function(){var q=Zu(c);return $APP.n(q)?q:"Search…"}(),p,function(){var q=Zu(e);return $APP.n(q)?q:"No results"}(),g,l,m,Zu(d),$APP.F(a),b,$APP.Ig(h)])},sv=function(a){return document.createElement(a)},tv=function(a){return rv($APP.zf([$APP.ni,fv,gv,hv,iv,jv,kv,lv,$APP.Bi,
6
- $APP.Ki],[a.getAttribute("label"),a.getAttribute("empty-text"),a.getAttribute("close-on-scrim"),a.getAttribute("disabled"),a.getAttribute("close-on-escape"),a.getAttribute("no-scrim"),a.getAttribute("dismissible"),a.getAttribute("modal"),a.hasAttribute("open"),a.getAttribute("placeholder")]))},uv=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.F(c)});a.dispatchEvent(b);return b},vv=function(a){var b=$APP.k(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=$APP.k(b,
7
- "list"),d=$APP.k(b,"empty");b=$APP.k(b,"input");var e=function(){var q=$APP.k(a,"__xCommandPaletteQuery");return $APP.n(q)?q:""}(),g=bv($APP.k(a,"__xCommandPaletteItems"));e=dv(g,e);e=$APP.M(e);g=$APP.D(e,$APP.yl);e=function(){var q=$APP.k(a,"__xCommandPaletteActiveIdx");return $APP.n(q)?q:0}();c.textContent="";if($APP.Hc(g))return d.removeAttribute("hidden"),$APP.n(b)?b.removeAttribute("aria-activedescendant"):null;d.setAttribute("hidden","");d=$APP.Xd($APP.wh,g);for(var h=null;;)if(g=$APP.u(d),
8
- $APP.n(g)){var l=g;g=$APP.Ac(l,0,null);l=$APP.Ac(l,1,null);var m=$u.g(l);if($APP.n(function(){var q=m;return $APP.n(q)?$APP.N(m,h):q}())){var p=sv("div");p.setAttribute("part","group-header");p.setAttribute("aria-hidden","true");p.textContent=m;c.appendChild(p)}p=sv("div");p.setAttribute("part","item");p.setAttribute("role","option");p.setAttribute("id","x-cp-item-"+$APP.T.g(g));p.setAttribute("data-id",""+$APP.T.g($APP.ll.g(l)));p.setAttribute("data-idx",""+$APP.T.g(g));p.setAttribute("tabindex",
9
- "-1");$APP.n($APP.X.g(l))&&p.setAttribute("aria-disabled","true");p.textContent=$APP.U.g(l);$APP.C.i(g,e)&&p.setAttribute("aria-selected","true");c.appendChild(p);d=$APP.Zb(d);h=g=function(){var q=m;return $APP.n(q)?q:h}()}else break;return $APP.n(b)?b.setAttribute("aria-activedescendant","x-cp-item-"+$APP.T.g(e)):null}return null},wv=function(a){var b=$APP.k(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=tv(a),d=$APP.k(b,"panel"),e=$APP.k(b,"input"),g=$APP.k(b,"overlay");b=$APP.k(b,"empty");var h=
10
- $APP.U.g(c),l=$APP.lm.g(c),m=mv.g(c);$APP.n(h)?d.setAttribute("aria-label",h):d.setAttribute("aria-label","Command palette");$APP.n(pv.g(c))?g.removeAttribute("hidden"):g.setAttribute("hidden","");e.setAttribute("placeholder",l);e.setAttribute("aria-expanded",$APP.n($APP.zm.g(c))?"true":"false");$APP.n($APP.X.g(c))&&(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true"));$APP.n($APP.X.g(c))||(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"));b.textContent=m;return vv(a)}return null},
11
- xv=function(a){if($APP.n(a.hasAttribute("open")))return null;var b=uv(a,"x-command-palette-open-request",!0,{});$APP.n(b.defaultPrevented)?a=null:(a.setAttribute("open",""),b=$APP.k(a,"__xCommandPaletteRefs"),b=$APP.n(b)?$APP.k(b,"input"):null,$APP.n(b)&&b.focus(),wv(a),a=uv(a,"x-command-palette-open",!1,{}));return a},yv=function(a){if($APP.n(a.hasAttribute("open"))){var b=uv(a,"x-command-palette-close-request",!0,{});$APP.n(b.defaultPrevented)?a=null:(a.removeAttribute("open"),b=$APP.k(a,"__xCommandPaletteRefs"),
12
- b=$APP.n(b)?$APP.k(b,"input"):null,$APP.n(b)&&b.removeAttribute("aria-activedescendant"),wv(a),a=uv(a,"x-command-palette-close",!1,{}));return a}return null},zv=function(a){var b=$APP.k(a,"__xCommandPaletteQuery");b=$APP.n(b)?b:"";a=bv($APP.k(a,"__xCommandPaletteItems"));a=dv(a,b);a=$APP.M(a);return $APP.D(a,$APP.yl)},Bv=function(a,b){var c=zv(a);var d=$APP.k(a,"__xCommandPaletteActiveIdx");d=$APP.n(d)?d:0;$APP.C.i(b,Av)?(c=ev(c,$APP.n(d)?d:-1,1),c=$APP.n(c)?c:0):(b=$APP.z(c),c=ev(c,$APP.n(d)?d:b,
13
- -1),c=$APP.n(c)?c:0);a.__xCommandPaletteActiveIdx=c;vv(a);a=$APP.k(a,"__xCommandPaletteRefs");a=$APP.n(a)?$APP.k(a,"list"):null;a=$APP.n(a)?a.querySelector("[data-idx\x3d'"+$APP.T.g(c)+"']"):null;return $APP.n(a)?a.scrollIntoView({block:"nearest"}):null},Dv=function(a,b){var c=b.key;return $APP.C.i(c,"ArrowDown")?(b.preventDefault(),Bv(a,Av)):$APP.C.i(c,"ArrowUp")?(b.preventDefault(),Bv(a,Cv)):$APP.C.i(c,"Enter")?(b.preventDefault(),b=zv(a),c=$APP.k(a,"__xCommandPaletteActiveIdx"),b=$APP.Ac(b,$APP.n(c)?
14
- c:0,null),$APP.n($APP.n(b)?$APP.r($APP.X.g(b)):b)?(c=uv(a,"x-command-palette-select-request",!0,{item:$APP.Gh(b)}),$APP.n(c.defaultPrevented)?a=null:(uv(a,"x-command-palette-select",!1,{item:$APP.Gh(b)}),a=yv(a))):a=null,a):$APP.C.i(c,"Escape")?(b=tv(a),$APP.n(ov.g(b))?yv(a):null):null},Ev=function(a){function b(){var q=$APP.k(a,"__xCommandPaletteRefs"),v=$APP.n(q)?$APP.k(q,"input"):null;q=$APP.n(q)?$APP.k(q,"clear-btn"):null;$APP.n(v)&&(v.value="");$APP.n(q)&&q.setAttribute("hidden","");a.__xCommandPaletteQuery=
15
- "";a.__xCommandPaletteActiveIdx=0;uv(a,"x-command-palette-query-change",!1,{query:""});vv(a);return $APP.n(v)?v.focus():null}function c(q){a:{q=q.target.closest("[part\x3ditem]");if($APP.n(q)){q=parseInt(q.getAttribute("data-idx"),10);var v=zv(a);q=$APP.Ac(v,q,null);if($APP.n($APP.n(q)?$APP.r($APP.X.g(q)):q)){v=uv(a,"x-command-palette-select-request",!0,{item:$APP.Gh(q)});if($APP.n(v.defaultPrevented)){q=null;break a}uv(a,"x-command-palette-select",!1,{item:$APP.Gh(q)});q=yv(a);break a}}q=null}return q}
16
- function d(){var q=tv(a);return $APP.n(nv.g(q))?yv(a):null}function e(q){return Dv(a,q)}function g(){var q=$APP.k(a,"__xCommandPaletteRefs"),v=$APP.n(q)?$APP.k(q,"input"):null;q=$APP.n(q)?$APP.k(q,"clear-btn"):null;v=$APP.n(v)?v.value:null;a.__xCommandPaletteQuery=$APP.n(v)?v:"";a.__xCommandPaletteActiveIdx=0;$APP.n(q)&&($APP.n($APP.n(v)?$APP.N(v,""):v)?q.removeAttribute("hidden"):q.setAttribute("hidden",""));uv(a,"x-command-palette-query-change",!1,{query:$APP.n(v)?v:""});return vv(a)}var h=$APP.k(a,
17
- "__xCommandPaletteRefs"),l=$APP.k(h,"input"),m=$APP.k(h,"overlay"),p=$APP.k(h,"list");h=$APP.k(h,"clear-btn");l.addEventListener("input",g);l.addEventListener("keydown",e);m.addEventListener("click",d);p.addEventListener("click",c);h.addEventListener("click",b);$APP.ja(a,"__xCommandPaletteHandlers",{input:g,keydown:e,scrim:d,list:c,clear:b})},Fv=function(a){var b=$APP.k(a,"__xCommandPaletteRefs");a=$APP.k(a,"__xCommandPaletteHandlers");if($APP.n($APP.n(b)?a:b)){var c=$APP.k(b,"input"),d=$APP.k(b,
18
- "overlay"),e=$APP.k(b,"list");b=$APP.k(b,"clear-btn");c.removeEventListener("input",$APP.k(a,"input"));c.removeEventListener("keydown",$APP.k(a,"keydown"));d.removeEventListener("click",$APP.k(a,"scrim"));e.removeEventListener("click",$APP.k(a,"list"));return b.removeEventListener("click",$APP.k(a,"clear"))}return null},Gv=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},
19
- Hv=function(a){Object.defineProperty(a,"items",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xCommandPaletteItems");return $APP.n(b)?b:[]},set:function(b){this.__xCommandPaletteItems=b;this.__xCommandPaletteActiveIdx=0;return vv(this)}})},Iv=function(a){Object.defineProperty(a,"open",{configurable:!0,writable:!0,value:function(){return xv(this)}});Object.defineProperty(a,"close",{configurable:!0,writable:!0,value:function(){return yv(this)}});Object.defineProperty(a,"toggle",
20
- {configurable:!0,writable:!0,value:function(){return $APP.n(this.hasAttribute("open"))?yv(this):xv(this)}})},Kv=function(){var a=class extends HTMLElement{};a.observedAttributes=Jv;var b=a.prototype;Gv(b,"open","open");Gv(b,"disabled","disabled");Hv(b);Iv(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCommandPaletteRefs"))){var c=this.attachShadow({mode:"open"}),d=sv("style"),e=sv("div"),g=sv("div"),h=sv("div"),l=sv("span"),m=sv("input"),p=sv("button"),q=sv("div"),v=sv("div"),x=sv("div");
2
+ var Su=function(a){return a==null?!0:$APP.N(a,"false")},Tu=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},Wu=function(a){if(a==null||$APP.r($APP.na(a)))return $APP.fe;for(var b=a.length,c=0,d=$APP.rb($APP.fe);;){if($APP.B.i(c,b))return $APP.tb(d);var e=a[c],g=""+$APP.T.g(function(){var A=e.id;return $APP.n(A)?A:c}()),h=""+$APP.T.g(function(){var A=e.label;return $APP.n(A)?A:""}()),l=Tu(e.group),m=e.value,p=e.icon,q=$APP.B.i(!0,e.disabled),v=e.keywords;v=$APP.n($APP.na(v))?
3
+ v.join(" "):typeof v==="string"?v:"";var x=function(){var A=l;return $APP.n(A)?A:""}(),y=typeof m==="string"?m:"";x=(""+$APP.T.g(h)+" "+$APP.T.g(v)+" "+$APP.T.g(x)+" "+$APP.T.g(y)).toLowerCase();v=c+1;d=$APP.Cd(d,new $APP.R(null,7,[$APP.xl,g,$APP.U,h,Uu,l,$APP.Yi,m,$APP.Qk,p,$APP.X,q,Vu,x],null));c=v}},Yu=function(a,b){b=typeof b==="string"?b.trim():"";var c=$APP.N(b,"")?$APP.Yd(Tu,$APP.Hg(b,/\s+/)):null;if($APP.Hc(c))return new $APP.R(null,2,[$APP.Kl,a,Xu,$APP.We.i($APP.Tf,$APP.Yd(Uu,a))],null);
4
+ a=$APP.he(function(d){return $APP.Sd(function(e){return $APP.N(-1,Vu.g(d).indexOf(e.toLowerCase()))},c)},a);return new $APP.R(null,2,[$APP.Kl,a,Xu,$APP.We.i($APP.Tf,$APP.Yd(Uu,a))],null)},Zu=function(a,b,c){var d=$APP.z(a);if(d>0)for(var e=1;;)if(e<=d){var g=$APP.fd(b+e*c,d),h=$APP.Ac(a,g,null),l=h;h=$APP.n(l)?$APP.r($APP.X.g(h)):l;if($APP.n(h))return g;e+=1}else return null;else return null},lv=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Gi);var c=$APP.D(b,$APP.Pi),d=$APP.D(b,$APP.pi),e=$APP.D(b,
5
+ $u),g=$APP.D(b,av),h=$APP.D(b,bv),l=$APP.D(b,cv),m=$APP.D(b,dv),p=$APP.D(b,ev);b=$APP.D(b,fv);b=Su(b);p=Su(p);m=$APP.Kg(m);m=b&&!m;g=g!=null?$APP.Kg(g):m;l=Su(l);return $APP.zf([$APP.qm,$APP.Oi,gv,hv,iv,jv,$APP.U,$APP.Mm,kv,$APP.X],[function(){var q=Tu(c);return $APP.n(q)?q:"Search…"}(),p,function(){var q=Tu(e);return $APP.n(q)?q:"No results"}(),g,l,m,Tu(d),$APP.F(a),b,$APP.Kg(h)])},mv=function(a){return document.createElement(a)},nv=function(a){return lv($APP.zf([$APP.pi,$u,av,bv,cv,dv,ev,fv,$APP.Gi,
6
+ $APP.Pi],[a.getAttribute("label"),a.getAttribute("empty-text"),a.getAttribute("close-on-scrim"),a.getAttribute("disabled"),a.getAttribute("close-on-escape"),a.getAttribute("no-scrim"),a.getAttribute("dismissible"),a.getAttribute("modal"),a.hasAttribute("open"),a.getAttribute("placeholder")]))},ov=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.F(c)});a.dispatchEvent(b);return b},pv=function(a){var b=$APP.k(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=$APP.k(b,
7
+ "list"),d=$APP.k(b,"empty");b=$APP.k(b,"input");var e=function(){var q=$APP.k(a,"__xCommandPaletteQuery");return $APP.n(q)?q:""}(),g=Wu($APP.k(a,"__xCommandPaletteItems"));e=Yu(g,e);e=$APP.M(e);g=$APP.D(e,$APP.Kl);e=function(){var q=$APP.k(a,"__xCommandPaletteActiveIdx");return $APP.n(q)?q:0}();c.textContent="";if($APP.Hc(g))return d.removeAttribute("hidden"),$APP.n(b)?b.removeAttribute("aria-activedescendant"):null;d.setAttribute("hidden","");d=$APP.Xd($APP.xh,g);for(var h=null;;)if(g=$APP.u(d),
8
+ $APP.n(g)){var l=g;g=$APP.Ac(l,0,null);l=$APP.Ac(l,1,null);var m=Uu.g(l);if($APP.n(function(){var q=m;return $APP.n(q)?$APP.N(m,h):q}())){var p=mv("div");p.setAttribute("part","group-header");p.setAttribute("aria-hidden","true");p.textContent=m;c.appendChild(p)}p=mv("div");p.setAttribute("part","item");p.setAttribute("role","option");p.setAttribute("id","x-cp-item-"+$APP.T.g(g));p.setAttribute("data-id",""+$APP.T.g($APP.xl.g(l)));p.setAttribute("data-idx",""+$APP.T.g(g));p.setAttribute("tabindex",
9
+ "-1");$APP.n($APP.X.g(l))&&p.setAttribute("aria-disabled","true");p.textContent=$APP.U.g(l);$APP.B.i(g,e)&&p.setAttribute("aria-selected","true");c.appendChild(p);d=$APP.Yb(d);h=g=function(){var q=m;return $APP.n(q)?q:h}()}else break;return $APP.n(b)?b.setAttribute("aria-activedescendant","x-cp-item-"+$APP.T.g(e)):null}return null},qv=function(a){var b=$APP.k(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=nv(a),d=$APP.k(b,"panel"),e=$APP.k(b,"input"),g=$APP.k(b,"overlay");b=$APP.k(b,"empty");var h=
10
+ $APP.U.g(c),l=$APP.qm.g(c),m=gv.g(c);$APP.n(h)?d.setAttribute("aria-label",h):d.setAttribute("aria-label","Command palette");$APP.n(jv.g(c))?g.removeAttribute("hidden"):g.setAttribute("hidden","");e.setAttribute("placeholder",l);e.setAttribute("aria-expanded",$APP.n($APP.Mm.g(c))?"true":"false");$APP.n($APP.X.g(c))&&(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true"));$APP.n($APP.X.g(c))||(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"));b.textContent=m;return pv(a)}return null},
11
+ rv=function(a){if($APP.n(a.hasAttribute("open")))return null;var b=ov(a,"x-command-palette-open-request",!0,{});$APP.n(b.defaultPrevented)?a=null:(a.setAttribute("open",""),b=$APP.k(a,"__xCommandPaletteRefs"),b=$APP.n(b)?$APP.k(b,"input"):null,$APP.n(b)&&b.focus(),qv(a),a=ov(a,"x-command-palette-open",!1,{}));return a},sv=function(a){if($APP.n(a.hasAttribute("open"))){var b=ov(a,"x-command-palette-close-request",!0,{});$APP.n(b.defaultPrevented)?a=null:(a.removeAttribute("open"),b=$APP.k(a,"__xCommandPaletteRefs"),
12
+ b=$APP.n(b)?$APP.k(b,"input"):null,$APP.n(b)&&b.removeAttribute("aria-activedescendant"),qv(a),a=ov(a,"x-command-palette-close",!1,{}));return a}return null},tv=function(a){var b=$APP.k(a,"__xCommandPaletteQuery");b=$APP.n(b)?b:"";a=Wu($APP.k(a,"__xCommandPaletteItems"));a=Yu(a,b);a=$APP.M(a);return $APP.D(a,$APP.Kl)},vv=function(a,b){var c=tv(a);var d=$APP.k(a,"__xCommandPaletteActiveIdx");d=$APP.n(d)?d:0;$APP.B.i(b,uv)?(c=Zu(c,$APP.n(d)?d:-1,1),c=$APP.n(c)?c:0):(b=$APP.z(c),c=Zu(c,$APP.n(d)?d:b,
13
+ -1),c=$APP.n(c)?c:0);a.__xCommandPaletteActiveIdx=c;pv(a);a=$APP.k(a,"__xCommandPaletteRefs");a=$APP.n(a)?$APP.k(a,"list"):null;a=$APP.n(a)?a.querySelector("[data-idx\x3d'"+$APP.T.g(c)+"']"):null;return $APP.n(a)?a.scrollIntoView({block:"nearest"}):null},xv=function(a,b){var c=b.key;return $APP.B.i(c,"ArrowDown")?(b.preventDefault(),vv(a,uv)):$APP.B.i(c,"ArrowUp")?(b.preventDefault(),vv(a,wv)):$APP.B.i(c,"Enter")?(b.preventDefault(),b=tv(a),c=$APP.k(a,"__xCommandPaletteActiveIdx"),b=$APP.Ac(b,$APP.n(c)?
14
+ c:0,null),$APP.n($APP.n(b)?$APP.r($APP.X.g(b)):b)?(c=ov(a,"x-command-palette-select-request",!0,{item:$APP.Hh(b)}),$APP.n(c.defaultPrevented)?a=null:(ov(a,"x-command-palette-select",!1,{item:$APP.Hh(b)}),a=sv(a))):a=null,a):$APP.B.i(c,"Escape")?(b=nv(a),$APP.n(iv.g(b))?sv(a):null):null},yv=function(a){function b(){var q=$APP.k(a,"__xCommandPaletteRefs"),v=$APP.n(q)?$APP.k(q,"input"):null;q=$APP.n(q)?$APP.k(q,"clear-btn"):null;$APP.n(v)&&(v.value="");$APP.n(q)&&q.setAttribute("hidden","");a.__xCommandPaletteQuery=
15
+ "";a.__xCommandPaletteActiveIdx=0;ov(a,"x-command-palette-query-change",!1,{query:""});pv(a);return $APP.n(v)?v.focus():null}function c(q){a:{q=q.target.closest("[part\x3ditem]");if($APP.n(q)){q=parseInt(q.getAttribute("data-idx"),10);var v=tv(a);q=$APP.Ac(v,q,null);if($APP.n($APP.n(q)?$APP.r($APP.X.g(q)):q)){v=ov(a,"x-command-palette-select-request",!0,{item:$APP.Hh(q)});if($APP.n(v.defaultPrevented)){q=null;break a}ov(a,"x-command-palette-select",!1,{item:$APP.Hh(q)});q=sv(a);break a}}q=null}return q}
16
+ function d(){var q=nv(a);return $APP.n(hv.g(q))?sv(a):null}function e(q){return xv(a,q)}function g(){var q=$APP.k(a,"__xCommandPaletteRefs"),v=$APP.n(q)?$APP.k(q,"input"):null;q=$APP.n(q)?$APP.k(q,"clear-btn"):null;v=$APP.n(v)?v.value:null;a.__xCommandPaletteQuery=$APP.n(v)?v:"";a.__xCommandPaletteActiveIdx=0;$APP.n(q)&&($APP.n($APP.n(v)?$APP.N(v,""):v)?q.removeAttribute("hidden"):q.setAttribute("hidden",""));ov(a,"x-command-palette-query-change",!1,{query:$APP.n(v)?v:""});return pv(a)}var h=$APP.k(a,
17
+ "__xCommandPaletteRefs"),l=$APP.k(h,"input"),m=$APP.k(h,"overlay"),p=$APP.k(h,"list");h=$APP.k(h,"clear-btn");l.addEventListener("input",g);l.addEventListener("keydown",e);m.addEventListener("click",d);p.addEventListener("click",c);h.addEventListener("click",b);$APP.ja(a,"__xCommandPaletteHandlers",{input:g,keydown:e,scrim:d,list:c,clear:b})},zv=function(a){var b=$APP.k(a,"__xCommandPaletteRefs");a=$APP.k(a,"__xCommandPaletteHandlers");if($APP.n($APP.n(b)?a:b)){var c=$APP.k(b,"input"),d=$APP.k(b,
18
+ "overlay"),e=$APP.k(b,"list");b=$APP.k(b,"clear-btn");c.removeEventListener("input",$APP.k(a,"input"));c.removeEventListener("keydown",$APP.k(a,"keydown"));d.removeEventListener("click",$APP.k(a,"scrim"));e.removeEventListener("click",$APP.k(a,"list"));return b.removeEventListener("click",$APP.k(a,"clear"))}return null},Av=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},
19
+ Bv=function(a){Object.defineProperty(a,"items",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xCommandPaletteItems");return $APP.n(b)?b:[]},set:function(b){this.__xCommandPaletteItems=b;this.__xCommandPaletteActiveIdx=0;return pv(this)}})},Cv=function(a){Object.defineProperty(a,"open",{configurable:!0,writable:!0,value:function(){return rv(this)}});Object.defineProperty(a,"close",{configurable:!0,writable:!0,value:function(){return sv(this)}});Object.defineProperty(a,"toggle",
20
+ {configurable:!0,writable:!0,value:function(){return $APP.n(this.hasAttribute("open"))?sv(this):rv(this)}})},Ev=function(){var a=class extends HTMLElement{};a.observedAttributes=Dv;var b=a.prototype;Av(b,"open","open");Av(b,"disabled","disabled");Bv(b);Cv(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCommandPaletteRefs"))){var c=this.attachShadow({mode:"open"}),d=mv("style"),e=mv("div"),g=mv("div"),h=mv("div"),l=mv("span"),m=mv("input"),p=mv("button"),q=mv("div"),v=mv("div"),x=mv("div");
21
21
  d.textContent=":host{display:contents;}[part\x3doverlay]{display:none;position:fixed;inset:0;background:var(--x-command-palette-backdrop,rgba(0,0,0,0.45));z-index:var(--x-command-palette-z,800);}[part\x3dpanel]{display:none;position:fixed;top:20vh;left:50%;transform:translateX(-50%);width:var(--x-command-palette-width,560px);max-width:calc(100vw - 2rem);max-height:60dvh;z-index:calc(var(--x-command-palette-z,800) + 1);flex-direction:column;border-radius:var(--x-command-palette-radius,var(--x-radius-lg,12px));background:var(--x-command-palette-bg,var(--x-color-bg,#fff));box-shadow:var(--x-command-palette-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.25),0 4px 16px rgba(0,0,0,0.12)));overflow:hidden;}:host([open]) [part\x3doverlay]{display:block;}:host([open]) [part\x3dpanel]{display:flex;}[part\x3dsearch-wrap]{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--x-command-palette-divider,rgba(0,0,0,0.08));}[part\x3dsearch-icon]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--x-command-palette-icon-color,var(--x-color-text-muted,#64748b));}[part\x3dinput]{flex:1;border:none;outline:none;background:transparent;font-size:1rem;line-height:1.5;color:var(--x-command-palette-text,inherit);}[part\x3dinput]::placeholder{color:var(--x-command-palette-placeholder,var(--x-color-text-muted,#94a3b8));}[part\x3dclear-btn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;color:var(--x-command-palette-icon-color,var(--x-color-text-muted,#64748b));}[part\x3dclear-btn]:focus-visible{outline:2px solid var(--x-command-palette-focus-ring,var(--x-color-focus-ring,#60a5fa));}[part\x3dclear-btn][hidden]{display:none;}[part\x3dlist-wrap]{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;}[part\x3dlist]{display:flex;flex-direction:column;}[part\x3ditem]{padding:10px 16px;cursor:default;font-size:var(--x-font-size-sm,0.9375rem);line-height:1.4;color:var(--x-command-palette-item-text,inherit);border-radius:0;outline:none;}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,var(--x-color-surface-active,#f1f5f9));}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#e0e7ff);color:var(--x-command-palette-item-active-text,#3730a3);}[part\x3ditem][aria-disabled\x3dtrue]{opacity:0.45;cursor:default;pointer-events:none;}[part\x3dgroup-header]{padding:8px 16px 4px;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--x-command-palette-group-text,var(--x-color-text-muted,#94a3b8));}[part\x3dempty]{padding:32px 16px;text-align:center;color:var(--x-command-palette-empty-text,var(--x-color-text-muted,#94a3b8));font-size:0.9375rem;}[part\x3dempty][hidden]{display:none;}@media (prefers-color-scheme:dark){[part\x3dpanel]{background:var(--x-command-palette-bg,var(--x-color-bg,#1e293b));box-shadow:var(--x-command-palette-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.6),0 4px 16px rgba(0,0,0,0.4)));}[part\x3dsearch-wrap]{border-bottom-color:var(--x-command-palette-divider,rgba(255,255,255,0.08));}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,var(--x-color-text-muted,#334155));}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#312e81);color:var(--x-command-palette-item-active-text,#c7d2fe);}}@media (prefers-reduced-motion:reduce){[part\x3dpanel],[part\x3doverlay]{transition:none;}}";
22
22
  e.setAttribute("part","overlay");g.setAttribute("part","panel");g.setAttribute("role","dialog");g.setAttribute("aria-modal","true");h.setAttribute("part","search-wrap");l.setAttribute("part","search-icon");l.setAttribute("aria-hidden","true");l.textContent="\ud83d\udd0d";m.setAttribute("part","input");m.setAttribute("type","search");m.setAttribute("role","combobox");m.setAttribute("autocomplete","off");m.setAttribute("autocorrect","off");m.setAttribute("spellcheck","false");m.setAttribute("aria-autocomplete",
23
23
  "list");m.setAttribute("aria-expanded","false");m.setAttribute("aria-controls","x-cp-list");p.setAttribute("part","clear-btn");p.setAttribute("type","button");p.setAttribute("aria-label","Clear");p.setAttribute("hidden","");q.setAttribute("part","list-wrap");v.setAttribute("part","list");v.setAttribute("id","x-cp-list");v.setAttribute("role","listbox");v.setAttribute("aria-label","Results");x.setAttribute("part","empty");x.setAttribute("hidden","");h.appendChild(l);h.appendChild(m);h.appendChild(p);
24
- q.appendChild(v);q.appendChild(x);g.appendChild(h);g.appendChild(q);c.appendChild(d);c.appendChild(e);c.appendChild(g);this.__xCommandPaletteRefs={overlay:e,panel:g,input:m,"clear-btn":p,list:v,empty:x}}Fv(this);Ev(this);return wv(this)};b.disconnectedCallback=function(){return Fv(this)};b.attributeChangedCallback=function(){return wv(this)};return a},Lv=function(){return $APP.n(customElements.get("x-command-palette"))?null:customElements.define("x-command-palette",Kv())},mv=new $APP.K(null,"empty-text",
25
- "empty-text",1554384594),gv=new $APP.K(null,"close-on-scrim-raw","close-on-scrim-raw",159828234),fv=new $APP.K(null,"empty-text-raw","empty-text-raw",1477406757),kv=new $APP.K(null,"dismissible-raw","dismissible-raw",947680658),lv=new $APP.K(null,"modal-raw","modal-raw",-263722282),ov=new $APP.K(null,"close-on-escape?","close-on-escape?",-1559868909),cv=new $APP.K(null,"groups","groups",-136896102),iv=new $APP.K(null,"close-on-escape-raw","close-on-escape-raw",-1942646255),pv=new $APP.K(null,"scrim?",
26
- "scrim?",744210580),jv=new $APP.K(null,"no-scrim-raw","no-scrim-raw",-1344365743),nv=new $APP.K(null,"close-on-scrim?","close-on-scrim?",-367113965),Mv=new $APP.Sb(null,"object","object",-1179821820,null),$u=new $APP.K(null,"group","group",582596132),Av=new $APP.K(null,"down","down",1565245570),av=new $APP.K(null,"search-str","search-str",-821246171),Cv=new $APP.K(null,"up","up",-269712113),qv=new $APP.K(null,"modal?","modal?",2146094679),hv=new $APP.K(null,"disabled-raw","disabled-raw",498098381);var Jv="open modal dismissible disabled no-scrim close-on-scrim close-on-escape label placeholder empty-text".split(" ");
27
- $APP.Qd(["x-command-palette-open-request",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,$APP.Rd],null),"x-command-palette-open",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,$APP.Rd],null),"x-command-palette-close-request",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,$APP.Rd],null),"x-command-palette-close",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,$APP.Rd],null),"x-command-palette-select-request",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,new $APP.Q(null,1,[$APP.nk,Mv],null)],null),"x-command-palette-select",new $APP.Q(null,2,[$APP.Yl,
28
- !1,$APP.V,new $APP.Q(null,1,[$APP.nk,Mv],null)],null),"x-command-palette-query-change",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Di,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_command_palette.init",Lv);export const init=Lv;
24
+ q.appendChild(v);q.appendChild(x);g.appendChild(h);g.appendChild(q);c.appendChild(d);c.appendChild(e);c.appendChild(g);this.__xCommandPaletteRefs={overlay:e,panel:g,input:m,"clear-btn":p,list:v,empty:x}}zv(this);yv(this);return qv(this)};b.disconnectedCallback=function(){return zv(this)};b.attributeChangedCallback=function(){return qv(this)};return a},Fv=function(){return $APP.n(customElements.get("x-command-palette"))?null:customElements.define("x-command-palette",Ev())},gv=new $APP.K(null,"empty-text",
25
+ "empty-text",1554384594),av=new $APP.K(null,"close-on-scrim-raw","close-on-scrim-raw",159828234),$u=new $APP.K(null,"empty-text-raw","empty-text-raw",1477406757),ev=new $APP.K(null,"dismissible-raw","dismissible-raw",947680658),fv=new $APP.K(null,"modal-raw","modal-raw",-263722282),iv=new $APP.K(null,"close-on-escape?","close-on-escape?",-1559868909),Xu=new $APP.K(null,"groups","groups",-136896102),cv=new $APP.K(null,"close-on-escape-raw","close-on-escape-raw",-1942646255),jv=new $APP.K(null,"scrim?",
26
+ "scrim?",744210580),dv=new $APP.K(null,"no-scrim-raw","no-scrim-raw",-1344365743),hv=new $APP.K(null,"close-on-scrim?","close-on-scrim?",-367113965),Uu=new $APP.K(null,"group","group",582596132),uv=new $APP.K(null,"down","down",1565245570),Vu=new $APP.K(null,"search-str","search-str",-821246171),wv=new $APP.K(null,"up","up",-269712113),kv=new $APP.K(null,"modal?","modal?",2146094679),bv=new $APP.K(null,"disabled-raw","disabled-raw",498098381);var Dv="open modal dismissible disabled no-scrim close-on-scrim close-on-escape label placeholder empty-text".split(" ");
27
+ $APP.Pd(["x-command-palette-open-request",new $APP.R(null,2,[$APP.jm,!0,$APP.V,$APP.Qd],null),"x-command-palette-open",new $APP.R(null,2,[$APP.jm,!1,$APP.V,$APP.Qd],null),"x-command-palette-close-request",new $APP.R(null,2,[$APP.jm,!0,$APP.V,$APP.Qd],null),"x-command-palette-close",new $APP.R(null,2,[$APP.jm,!1,$APP.V,$APP.Qd],null),"x-command-palette-select-request",new $APP.R(null,2,[$APP.jm,!0,$APP.V,new $APP.R(null,1,[$APP.tk,$APP.hl],null)],null),"x-command-palette-select",new $APP.R(null,2,
28
+ [$APP.jm,!1,$APP.V,new $APP.R(null,1,[$APP.tk,$APP.hl],null)],null),"x-command-palette-query-change",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,1,[$APP.Ii,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_command_palette.init",Fv);export const init=Fv;