@vanelsas/baredom 2.6.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +12 -41
  3. package/custom-elements.json +344 -5
  4. package/dist/baredom.d.ts +4 -0
  5. package/dist/base.js +451 -421
  6. package/dist/integrity.json +97 -93
  7. package/dist/x-alert.js +17 -19
  8. package/dist/x-avatar-group.js +9 -11
  9. package/dist/x-avatar.js +15 -15
  10. package/dist/x-badge.js +9 -11
  11. package/dist/x-bento-grid.js +5 -5
  12. package/dist/x-bento-item.js +4 -4
  13. package/dist/x-breadcrumbs.js +13 -14
  14. package/dist/x-button.js +16 -16
  15. package/dist/x-cancel-dialogue.js +13 -17
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +33 -34
  18. package/dist/x-chart.d.ts +26 -0
  19. package/dist/x-chart.js +47 -48
  20. package/dist/x-checkbox.js +11 -11
  21. package/dist/x-chip.js +1 -9
  22. package/dist/x-collapse.js +10 -12
  23. package/dist/x-color-picker.js +44 -45
  24. package/dist/x-combobox.js +26 -27
  25. package/dist/x-command-palette.js +26 -27
  26. package/dist/x-container.js +5 -6
  27. package/dist/x-context-menu.d.ts +31 -2
  28. package/dist/x-context-menu.js +20 -18
  29. package/dist/x-copy.js +20 -23
  30. package/dist/x-currency-field.js +23 -25
  31. package/dist/x-date-picker.d.ts +27 -0
  32. package/dist/x-date-picker.js +42 -42
  33. package/dist/x-divider.js +9 -10
  34. package/dist/x-drawer.js +10 -12
  35. package/dist/x-dropdown.js +11 -11
  36. package/dist/x-fieldset.js +5 -6
  37. package/dist/x-file-download.js +7 -8
  38. package/dist/x-file-upload.js +22 -25
  39. package/dist/x-form-field.js +15 -17
  40. package/dist/x-form.js +9 -10
  41. package/dist/x-gaussian-blur.js +13 -19
  42. package/dist/x-grid.js +6 -6
  43. package/dist/x-i18n-provider.d.ts +43 -0
  44. package/dist/x-i18n-provider.js +8 -0
  45. package/dist/x-i18n.d.ts +14 -0
  46. package/dist/x-i18n.js +5 -0
  47. package/dist/x-icon.js +6 -7
  48. package/dist/x-image.js +18 -19
  49. package/dist/x-kinetic-canvas.d.ts +18 -0
  50. package/dist/x-kinetic-canvas.js +26 -0
  51. package/dist/x-kinetic-font.js +27 -29
  52. package/dist/x-kinetic-typography.js +33 -39
  53. package/dist/x-liquid-dock.js +39 -39
  54. package/dist/x-liquid-fill.js +45 -45
  55. package/dist/x-liquid-glass.js +47 -47
  56. package/dist/x-menu-item.js +8 -10
  57. package/dist/x-menu.js +10 -11
  58. package/dist/x-metaball-cursor.js +27 -27
  59. package/dist/x-modal.js +11 -13
  60. package/dist/x-morph-stack.js +37 -39
  61. package/dist/x-multi-combobox.d.ts +50 -0
  62. package/dist/x-multi-combobox.js +37 -0
  63. package/dist/x-navbar.js +12 -13
  64. package/dist/x-neural-glow.js +33 -34
  65. package/dist/x-notification-center.js +9 -10
  66. package/dist/x-organic-divider.js +17 -19
  67. package/dist/x-organic-progress.js +38 -39
  68. package/dist/x-organic-shape.js +13 -14
  69. package/dist/x-pagination.js +15 -17
  70. package/dist/x-particle-button.js +51 -52
  71. package/dist/x-popover.js +26 -25
  72. package/dist/x-progress-circle.js +9 -11
  73. package/dist/x-progress.js +10 -11
  74. package/dist/x-radio.js +11 -12
  75. package/dist/x-ripple-effect.js +11 -12
  76. package/dist/x-scroll-parallax.js +18 -19
  77. package/dist/x-scroll-stack.js +17 -18
  78. package/dist/x-scroll-story.js +34 -36
  79. package/dist/x-scroll-timeline.js +45 -47
  80. package/dist/x-scroll.js +40 -42
  81. package/dist/x-search-field.js +15 -17
  82. package/dist/x-select.js +11 -11
  83. package/dist/x-sidebar.js +17 -17
  84. package/dist/x-skeleton-group.js +12 -14
  85. package/dist/x-skeleton.js +1 -1
  86. package/dist/x-slider.js +15 -18
  87. package/dist/x-soft-body.js +22 -22
  88. package/dist/x-spacer.js +4 -5
  89. package/dist/x-spinner.js +4 -6
  90. package/dist/x-splash.js +12 -13
  91. package/dist/x-stat.js +10 -12
  92. package/dist/x-stepper.js +14 -15
  93. package/dist/x-switch.js +10 -11
  94. package/dist/x-tab.js +7 -8
  95. package/dist/x-table-cell.js +20 -24
  96. package/dist/x-table-row.js +8 -10
  97. package/dist/x-table.js +12 -16
  98. package/dist/x-tabs.js +11 -11
  99. package/dist/x-text-area.js +19 -21
  100. package/dist/x-theme.d.ts +1 -1
  101. package/dist/x-theme.js +25 -25
  102. package/dist/x-timeline-item.js +21 -23
  103. package/dist/x-timeline.js +8 -9
  104. package/dist/x-toast.js +22 -24
  105. package/dist/x-toaster.js +8 -8
  106. package/dist/x-tooltip.js +12 -13
  107. package/dist/x-typography.js +9 -11
  108. package/dist/x-welcome-tour.js +60 -65
  109. package/package.json +201 -181
package/dist/x-modal.js CHANGED
@@ -1,14 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var jZ=function(a){var b=$APP.k(a,"__xModalRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),p=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-modal-bg:var(--x-color-bg,Canvas);--x-modal-fg:var(--x-color-text,CanvasText);--x-modal-backdrop:rgb(0 0 0/0.45);--x-modal-shadow:var(--x-shadow-lg,0 20px 60px rgb(0 0 0/0.25));--x-modal-radius:var(--x-radius-md,0.75rem);--x-modal-width-sm:22rem;--x-modal-width-md:32rem;--x-modal-width-lg:44rem;--x-modal-width-xl:60rem;--x-modal-max-height:90dvh;--x-modal-header-padding:1rem 1.25rem;--x-modal-body-padding:1rem 1.25rem;--x-modal-footer-padding:0.75rem 1.25rem;--x-modal-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));--x-modal-duration:var(--x-transition-duration,180ms);--x-modal-easing:ease;--x-modal-z:1000;}[part\x3dbackdrop]{position:fixed;inset:0;background:var(--x-modal-backdrop);z-index:var(--x-modal-z);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{opacity:1;visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}[part\x3ddialog]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.96);opacity:0;visibility:hidden;pointer-events:none;background:var(--x-modal-bg);color:var(--x-modal-fg);box-shadow:var(--x-modal-shadow);border-radius:var(--x-modal-radius);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-modal-z) + 1);max-height:var(--x-modal-max-height);transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-size\x3dsm]) [part\x3ddialog]{width:var(--x-modal-width-sm);}:host([data-size\x3dmd]) [part\x3ddialog]{width:var(--x-modal-width-md);}:host([data-size\x3dlg]) [part\x3ddialog]{width:var(--x-modal-width-lg);}:host([data-size\x3dxl]) [part\x3ddialog]{width:var(--x-modal-width-xl);}:host([data-size\x3dfull]) [part\x3ddialog]{inset:0;top:0;left:0;width:100%;height:100dvh;border-radius:0;max-width:100%;max-height:100dvh;transform:scale(0.98);}:host([data-open\x3dtrue]) [part\x3ddialog]{opacity:1;transform:translate(-50%,-50%) scale(1);visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}:host([data-open\x3dtrue][data-size\x3dfull]) [part\x3ddialog]{transform:scale(1);}[part\x3ddialog]:focus{outline:none;}[part\x3dheader]{padding:var(--x-modal-header-padding);border-bottom:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-modal-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-modal-footer-padding);border-top:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3ddialog]{max-width:calc(100vw - 2rem);}:host([data-size\x3dfull]) [part\x3ddialog]{max-width:100%;}@media (prefers-reduced-motion:reduce){[part\x3ddialog],[part\x3dbackdrop]{transition:none;}}";
3
- d.setAttribute("part","backdrop");e.setAttribute("part","dialog");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");l.setAttribute("part","body");p.setAttribute("part","footer");q.setAttribute("name","footer");g.appendChild(h);l.appendChild(m);p.appendChild(q);e.appendChild(g);e.appendChild(l);e.appendChild(p);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xModalRefs={root:b,backdrop:d,dialog:e,header:g,body:l,
4
- footer:p};return $APP.k(a,"__xModalRefs")},kZ=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},lZ=function(a){function b(d){var e=window.getComputedStyle(d);return $APP.N("none",e.display)&&$APP.N("hidden",e.visibility)&&d.offsetWidth>0&&d.offsetHeight>0}var c=$APP.de(b,$APP.uc($APP.k(a,"dialog").querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])")));
5
- a=$APP.be(function(d){return $APP.de(b,$APP.be(function(e){var g=$APP.uc(e.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"));return $APP.n(e.matches("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))?$APP.od(e,g):g},$APP.uc([$APP.vc(d.assignedElements({flatten:!0}))])))},$APP.uc([$APP.uc($APP.k(a,"root").querySelectorAll("slot"))]));
6
- return $APP.xe($APP.$d.i(c,a))},mZ=function(a){var b=$APP.k(a,"__xModalRefs");b=$APP.n(b)?$APP.k(b,"dialog"):null;var c=$APP.k(a,"__xModalRestore"),d=$APP.k(a,"__xModalDialogTab")===!0;a.__xModalTabbables=null;a.__xModalRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xModalDialogTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},nZ=function(a,b){kZ(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},oZ=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open",
7
- "");return null},pZ=function(a){a.removeAttribute("open");return null},qZ=function(a,b){$APP.N($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,kZ(a,"x-modal-toggle",{open:b}),$APP.n(b)?setTimeout(function(){var c=$APP.k(a,"__xModalRefs"),d=$APP.n(c)?$APP.k(c,"dialog"):null;c=$APP.n(c)?lZ(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.Hh(c):null;a.__xModalTabbables=e;$APP.t(c)?$APP.u(c).focus():$APP.n(d)&&($APP.n(d.hasAttribute("tabindex"))||(d.setAttribute("tabindex",
8
- "-1"),a.__xModalDialogTab=!0),d.focus());return null},0):mZ(a))},sZ=function(a){var b=jZ(a);b=$APP.k(b,"dialog");var c=new $APP.Q(null,3,[$APP.Gi,a.hasAttribute("open"),$APP.Wl,a.getAttribute("size"),$APP.pi,a.getAttribute("label")],null);var d=$APP.M(c),e=$APP.D(d,$APP.Gi);c=$APP.D(d,$APP.Wl);d=$APP.D(d,$APP.pi);e=$APP.F(e);c=typeof c==="string"&&$APP.I(rZ,c)?c:"md";d=typeof d==="string"&&$APP.N(d,"")?d:"Modal";c=new $APP.Q(null,3,[$APP.Om,e,$APP.Mh,c,$APP.U,d],null);d=$APP.Om.g(c);a.setAttribute("data-open",
9
- $APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.Mh.g(c));b.setAttribute("aria-label",$APP.U.g(c));qZ(a,d)},tZ=function(a){function b(g){var h=g.key;if($APP.B.i(h,"Escape"))g.preventDefault(),nZ(a,"escape");else if($APP.B.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.xe($APP.uc(h)):$APP.fe;var l=$APP.k(a,"__xModalRefs");l=$APP.n(l)?$APP.k(l,"dialog"):null;if($APP.Hc(h))g.preventDefault(),$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.xc(h);var p=
10
- g.shiftKey;$APP.n($APP.n(p)?$APP.B.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.B.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return nZ(a,"backdrop")}var d=jZ(a),e=$APP.k(d,"dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ja(a,"__xModalHandlers",{backdrop:c,keydown:b})},uZ=function(a){var b=$APP.k(a,"__xModalHandlers"),c=$APP.k(a,"__xModalRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"dialog");
11
- var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xModalHandlers=null},vZ=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?oZ(this):pZ(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return b==null?this.removeAttribute("size"):
12
- this.setAttribute("size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Modal"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return oZ(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return pZ(this)},enumerable:!0,
13
- configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?pZ(this):oZ(this);return null},enumerable:!0,configurable:!0,writable:!0})},xZ=function(){if(!$APP.n(customElements.get("x-modal"))){var a=class extends HTMLElement{};a.observedAttributes=wZ;a.prototype.connectedCallback=function(){jZ(this);uZ(this);tZ(this);sZ(this);return null};a.prototype.disconnectedCallback=function(){uZ(this);mZ(this);return null};a.prototype.attributeChangedCallback=
14
- function(b,c,d){$APP.N(c,d)&&sZ(this);return null};vZ(a.prototype);customElements.define("x-modal",a)}return null},yZ=function(){return xZ()};var rZ=new $APP.S(null,new $APP.Q(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),wZ=["open","size","label"];$APP.Pd(["x-modal-toggle",new $APP.Q(null,2,[$APP.lm,!1,$APP.V,new $APP.Q(null,1,[$APP.im,$APP.Zj],null)],null),"x-modal-dismiss",new $APP.Q(null,2,[$APP.lm,!1,$APP.V,new $APP.Q(null,1,[$APP.Qi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_modal.init",yZ);export const init=yZ;
2
+ var w2=function(a){var b=$APP.k(a,"__xModalRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),q=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-modal-bg:var(--x-color-bg,Canvas);--x-modal-fg:var(--x-color-text,CanvasText);--x-modal-backdrop:rgb(0 0 0/0.45);--x-modal-shadow:var(--x-shadow-lg,0 20px 60px rgb(0 0 0/0.25));--x-modal-radius:var(--x-radius-md,0.75rem);--x-modal-width-sm:22rem;--x-modal-width-md:32rem;--x-modal-width-lg:44rem;--x-modal-width-xl:60rem;--x-modal-max-height:90dvh;--x-modal-header-padding:1rem 1.25rem;--x-modal-body-padding:1rem 1.25rem;--x-modal-footer-padding:0.75rem 1.25rem;--x-modal-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));--x-modal-duration:var(--x-transition-duration,180ms);--x-modal-easing:ease;--x-modal-z:1000;}[part\x3dbackdrop]{position:fixed;inset:0;background:var(--x-modal-backdrop);z-index:var(--x-modal-z);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{opacity:1;visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}[part\x3ddialog]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.96);opacity:0;visibility:hidden;pointer-events:none;background:var(--x-modal-bg);color:var(--x-modal-fg);box-shadow:var(--x-modal-shadow);border-radius:var(--x-modal-radius);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-modal-z) + 1);max-height:var(--x-modal-max-height);transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-size\x3dsm]) [part\x3ddialog]{width:var(--x-modal-width-sm);}:host([data-size\x3dmd]) [part\x3ddialog]{width:var(--x-modal-width-md);}:host([data-size\x3dlg]) [part\x3ddialog]{width:var(--x-modal-width-lg);}:host([data-size\x3dxl]) [part\x3ddialog]{width:var(--x-modal-width-xl);}:host([data-size\x3dfull]) [part\x3ddialog]{inset:0;top:0;left:0;width:100%;height:100dvh;border-radius:0;max-width:100%;max-height:100dvh;transform:scale(0.98);}:host([data-open\x3dtrue]) [part\x3ddialog]{opacity:1;transform:translate(-50%,-50%) scale(1);visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}:host([data-open\x3dtrue][data-size\x3dfull]) [part\x3ddialog]{transform:scale(1);}[part\x3ddialog]:focus{outline:none;}[part\x3dheader]{padding:var(--x-modal-header-padding);border-bottom:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-modal-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-modal-footer-padding);border-top:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3ddialog]{max-width:calc(100vw - 2rem);}:host([data-size\x3dfull]) [part\x3ddialog]{max-width:100%;}@media (prefers-reduced-motion:reduce){[part\x3ddialog],[part\x3dbackdrop]{transition:none;}}";
3
+ d.setAttribute("part","backdrop");e.setAttribute("part","dialog");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");f.setAttribute("part","header");h.setAttribute("name","header");l.setAttribute("part","body");q.setAttribute("part","footer");r.setAttribute("name","footer");f.appendChild(h);l.appendChild(m);q.appendChild(r);e.appendChild(f);e.appendChild(l);e.appendChild(q);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xModalRefs={root:b,backdrop:d,dialog:e,header:f,body:l,
4
+ footer:q};return $APP.k(a,"__xModalRefs")},x2=function(a){function b(d){var e=window.getComputedStyle(d);return $APP.M("none",e.display)&&$APP.M("hidden",e.visibility)&&d.offsetWidth>0&&d.offsetHeight>0}var c=$APP.ne(b,$APP.Bc($APP.k(a,"dialog").querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])")));a=$APP.le(function(d){return $APP.ne(b,$APP.le(function(e){var f=$APP.Bc(e.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"));
5
+ return $APP.n(e.matches("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))?$APP.xd(e,f):f},$APP.Bc([$APP.Cc(d.assignedElements({flatten:!0}))])))},$APP.Bc([$APP.Bc($APP.k(a,"root").querySelectorAll("slot"))]));return $APP.Je($APP.ke.i(c,a))},y2=function(a){var b=$APP.k(a,"__xModalRefs");b=$APP.n(b)?$APP.k(b,"dialog"):null;var c=$APP.k(a,"__xModalRestore"),d=$APP.k(a,"__xModalDialogTab")===!0;a.__xModalTabbables=
6
+ null;a.__xModalRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xModalDialogTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},z2=function(a,b){$APP.P(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},A2=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},B2=function(a){a.removeAttribute("open");return null},C2=function(a,b){$APP.M($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,$APP.P(a,"x-modal-toggle",{open:b}),
7
+ $APP.n(b)?setTimeout(function(){var c=$APP.k(a,"__xModalRefs"),d=$APP.n(c)?$APP.k(c,"dialog"):null;c=$APP.n(c)?x2(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.Xi(c):null;a.__xModalTabbables=e;$APP.t(c)?$APP.u(c).focus():$APP.n(d)&&($APP.n(d.hasAttribute("tabindex"))||(d.setAttribute("tabindex","-1"),a.__xModalDialogTab=!0),d.focus());return null},0):y2(a))},E2=function(a){var b=w2(a);b=$APP.k(b,"dialog");var c=new $APP.N(null,3,[$APP.Pj,a.hasAttribute("open"),$APP.on,a.getAttribute("size"),
8
+ $APP.Ch,a.getAttribute("label")],null);var d=$APP.J(c),e=$APP.C(d,$APP.Pj);c=$APP.C(d,$APP.on);d=$APP.C(d,$APP.Ch);e=$APP.E(e);c=typeof c==="string"&&$APP.Zc(D2,c)?c:"md";d=typeof d==="string"&&$APP.M(d,"")?d:"Modal";c=new $APP.N(null,3,[$APP.ao,e,$APP.bj,c,$APP.X,d],null);d=$APP.ao.g(c);a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.bj.g(c));b.setAttribute("aria-label",$APP.X.g(c));C2(a,d)},F2=function(a){function b(f){var h=f.key;if($APP.B.i(h,"Escape"))f.preventDefault(),
9
+ z2(a,"escape");else if($APP.B.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.Je($APP.Bc(h)):$APP.pe;var l=$APP.k(a,"__xModalRefs");l=$APP.n(l)?$APP.k(l,"dialog"):null;if($APP.Oc(h))f.preventDefault(),$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.Ec(h);var q=f.shiftKey;$APP.n($APP.n(q)?$APP.B.i(l,m):q)?(f.preventDefault(),h.focus()):$APP.p(q)&&$APP.B.i(l,h)&&(f.preventDefault(),m.focus())}}return null}function c(){return z2(a,"backdrop")}var d=w2(a),e=$APP.k(d,
10
+ "dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.fa(a,"__xModalHandlers",{backdrop:c,keydown:b})},G2=function(a){var b=$APP.k(a,"__xModalHandlers"),c=$APP.k(a,"__xModalRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"dialog");var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xModalHandlers=null},H2=function(a){w2(a);G2(a);F2(a);E2(a);return null},
11
+ I2=function(a){G2(a);y2(a);return null},J2=function(a,b,c,d){$APP.M(c,d)&&E2(a);return null},K2=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?A2(this):B2(this)},enumerable:!0,configurable:!0});$APP.eh(a,"size","size","md");$APP.eh(a,"label","label","Modal");Object.defineProperty(a,"show",{value:function(){return A2(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return B2(this)},
12
+ enumerable:!0,configurable:!0,writable:!0});return Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?B2(this):A2(this);return null},enumerable:!0,configurable:!0,writable:!0})},M2=function(){return $APP.Yg("x-modal",new $APP.N(null,5,[$APP.Pg,L2,$APP.Qg,H2,$APP.Rg,I2,$APP.Sg,J2,$APP.Wg,K2],null))};var D2=new $APP.O(null,new $APP.N(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),L2=["open","size","label"];$APP.Yd(["x-modal-toggle",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,1,[$APP.Bn,$APP.T],null)],null),"x-modal-dismiss",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,1,[$APP.Yj,$APP.U],null)],null)]);$APP.ca("baredom.exports.x_modal.init",M2);export const init=M2;
@@ -1,41 +1,39 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lx=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.I(kx,a)?a:"clean"):"clean"},mx=function(a){return $APP.B.i(a,"organic")||$APP.B.i(a,"liquid")},nx=function(a){var b=(a-1)/17*-7;return"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+$APP.T.g(a)+" "+$APP.T.g(b)},ox=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},px=function(a,b,c,d){if($APP.n($APP.n(a)?a>0:a)){b=$APP.oh.i(1E-4,
3
- $APP.n(b)?b:0);c=$APP.oh.i(1E-4,$APP.n(c)?c:0);d=$APP.oh.i(1E-4,$APP.n(d)?d:0);var e=Math.sqrt(b/d);a=1E3*(4/($APP.oh.i(.2,$APP.ph.i(5,c/(2*Math.sqrt(b*d))))*e)+Math.PI/e)/a}else a=1;return a},qx=function(a,b,c,d,e,g){b+=(e*(1-a)-g*b)/d*c;return[a+b*c,b]},sx=function(a,b){b=$APP.M(b);var c=$APP.D(b,rx);b=$APP.D(b,$APP.gk);var d=$APP.xe(a);a=$APP.z(d);if(a>0){var e=$APP.n(function(){return $APP.n(c)?$APP.Td(function(g){return $APP.B.i(g,c)},d):c}())?c:null;if($APP.n(e))return e;a=$APP.oh.i(0,$APP.ph.i(a-
4
- 1,$APP.n(b)?b:0));return $APP.pc(d,a)}return null},tx=function(a,b,c){return a+(b-a)*c},ux=function(a){if(typeof a==="string"){a=a.match(/rgba?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)(?:\s*,\s*(\d*(?:\.\d+)?))?\s*\)/);if($APP.n(a)){var b=parseFloat(a[1]),c=parseFloat(a[2]),d=parseFloat(a[3]);var e=a[4];e=$APP.n(e)?$APP.N("",a[4]):e;a=[b,c,d,$APP.n(e)?parseFloat(a[4]):1]}else a=null;return a}return null},vx=function(a,b,c){var d=ux(a),e=ux(b);return $APP.n($APP.n(d)?e:d)?"rgba("+
5
- $APP.T.g(Math.round(tx(d[0],e[0],c)))+","+$APP.T.g(Math.round(tx(d[1],e[1],c)))+","+$APP.T.g(Math.round(tx(d[2],e[2],c)))+","+$APP.T.g(tx(d[3],e[3],c))+")":c<.5?a:b},wx=function(a){if(typeof a==="string")if(a=a.trim(),$APP.N(a,"")){a=a.split(/\s+/);for(var b=a.length,c=[],d=0;;){if(d>=b)return c.length>0?c:null;var e=a[d];if($APP.n(e.endsWith("px"))){e=parseFloat(e.slice(0,e.length-2));if($APP.n(isNaN(e)))return null;c.push(e);d+=1}else return null}}else return null;else return null},xx=function(a,
6
- b){return new $APP.Q(null,2,[$APP.Vh,$APP.n(a)?a:"",$APP.dm,$APP.n(b)?b:""],null)},zx=function(a){var b=$APP.k(a,"__xMorphStackRefs"),c=$APP.n(b)?yx.g(b):null;if($APP.n($APP.n(c)?c.isConnected:c))return b;c=document.createElement("div");var d=document.createElementNS("http://www.w3.org/2000/svg","svg");c.style.position="fixed";c.style.top="0";c.style.left="0";c.style.width="100%";c.style.height="100dvh";c.style.pointerEvents="none";c.style.overflow="visible";c.style.zIndex="2147483646";c.setAttribute("aria-hidden",
7
- "true");c.setAttribute("data-x-morph-stack-ghost-layer","");d.style.position="absolute";d.style.width="0";d.style.height="0";d.style.overflow="hidden";d.setAttribute("aria-hidden","true");c.appendChild(d);document.body.appendChild(c);b=$APP.mh.C(b,yx,c,$APP.uc([$APP.mk,d]));return a.__xMorphStackRefs=b},Ax=function(a){var b=$APP.k(a,"__xMorphStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");
2
+ var Xz=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.Zc(Wz,a)?a:"clean"):"clean"},Yz=function(a){return $APP.B.i(a,"organic")||$APP.B.i(a,"liquid")},Zz=function(a){var b=(a-1)/17*-7;return"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+$APP.Q.g(a)+" "+$APP.Q.g(b)},$z=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},aA=function(a,b,c,d){if($APP.n($APP.n(a)?a>0:a)){b=$APP.Hi.i(1E-4,
3
+ $APP.n(b)?b:0);c=$APP.Hi.i(1E-4,$APP.n(c)?c:0);d=$APP.Hi.i(1E-4,$APP.n(d)?d:0);var e=Math.sqrt(b/d);a=1E3*(4/($APP.Hi.i(.2,$APP.Ii.i(5,c/(2*Math.sqrt(b*d))))*e)+Math.PI/e)/a}else a=1;return a},bA=function(a,b,c,d,e,f){b+=(e*(1-a)-f*b)/d*c;return[a+b*c,b]},dA=function(a,b){b=$APP.J(b);var c=$APP.C(b,cA);b=$APP.C(b,$APP.nl);var d=$APP.Je(a);a=$APP.z(d);if(a>0){var e=$APP.n(function(){return $APP.n(c)?$APP.be(function(f){return $APP.B.i(f,c)},d):c}())?c:null;if($APP.n(e))return e;a=$APP.Hi.i(0,$APP.Ii.i(a-
4
+ 1,$APP.n(b)?b:0));return $APP.wc(d,a)}return null},eA=function(a,b,c){return a+(b-a)*c},fA=function(a){if(typeof a==="string"){a=a.match(/rgba?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)(?:\s*,\s*(\d*(?:\.\d+)?))?\s*\)/);if($APP.n(a)){var b=parseFloat(a[1]),c=parseFloat(a[2]),d=parseFloat(a[3]);var e=a[4];e=$APP.n(e)?$APP.M("",a[4]):e;a=[b,c,d,$APP.n(e)?parseFloat(a[4]):1]}else a=null;return a}return null},gA=function(a,b,c){var d=fA(a),e=fA(b);return $APP.n($APP.n(d)?e:d)?"rgba("+
5
+ $APP.Q.g(Math.round(eA(d[0],e[0],c)))+","+$APP.Q.g(Math.round(eA(d[1],e[1],c)))+","+$APP.Q.g(Math.round(eA(d[2],e[2],c)))+","+$APP.Q.g(eA(d[3],e[3],c))+")":c<.5?a:b},hA=function(a){if(typeof a==="string")if(a=a.trim(),$APP.M(a,"")){a=a.split(/\s+/);for(var b=a.length,c=[],d=0;;){if(d>=b)return c.length>0?c:null;var e=a[d];if($APP.n(e.endsWith("px"))){e=parseFloat(e.slice(0,e.length-2));if($APP.n(isNaN(e)))return null;c.push(e);d+=1}else return null}}else return null;else return null},iA=function(a,
6
+ b){return new $APP.N(null,2,[$APP.kj,$APP.n(a)?a:"",$APP.wn,$APP.n(b)?b:""],null)},kA=function(a){var b=$APP.k(a,"__xMorphStackRefs"),c=$APP.n(b)?jA.g(b):null;if($APP.n($APP.n(c)?c.isConnected:c))return b;c=document.createElement("div");var d=document.createElementNS("http://www.w3.org/2000/svg","svg");c.style.position="fixed";c.style.top="0";c.style.left="0";c.style.width="100%";c.style.height="100dvh";c.style.pointerEvents="none";c.style.overflow="visible";c.style.zIndex="2147483646";c.setAttribute("aria-hidden",
7
+ "true");c.setAttribute("data-x-morph-stack-ghost-layer","");d.style.position="absolute";d.style.width="0";d.style.height="0";d.style.overflow="hidden";d.setAttribute("aria-hidden","true");c.appendChild(d);document.body.appendChild(c);b=$APP.Fi.B(b,jA,c,$APP.Bc([$APP.tl,d]));return a.__xMorphStackRefs=b},lA=function(a){var b=$APP.k(a,"__xMorphStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");
8
8
  c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-morph-stack-spring-stiffness:170;--x-morph-stack-spring-damping:26;--x-morph-stack-spring-mass:1;--x-morph-stack-fade-ms:160ms;--x-morph-stack-goo-blur:10;--x-morph-stack-goo-threshold:18;--x-morph-stack-bg:transparent;}:host([data-variant\x3d'clean']){--x-morph-stack-spring-stiffness:280;--x-morph-stack-spring-damping:30;--x-morph-stack-spring-mass:0.7;}:host([data-variant\x3d'organic']){--x-morph-stack-spring-stiffness:180;--x-morph-stack-spring-damping:5;--x-morph-stack-spring-mass:1.0;--x-morph-stack-goo-blur:6;--x-morph-stack-goo-threshold:14;}:host([data-variant\x3d'liquid']){--x-morph-stack-spring-stiffness:50;--x-morph-stack-spring-damping:14;--x-morph-stack-spring-mass:2.0;--x-morph-stack-goo-blur:26;--x-morph-stack-goo-threshold:26;}[part\x3dviewport]{position:relative;display:block;background:var(--x-morph-stack-bg);}:host([disabled]){opacity:0.7;}";
9
- d.setAttribute("part","viewport");e.setAttribute("name","state");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xMorphStackRefs=new $APP.Q(null,3,[$APP.Hi,b,$APP.mj,d,$APP.kj,e],null);return $APP.k(a,"__xMorphStackRefs")},Cx=function(a){a=new $APP.Q(null,8,[Bx,a.getAttribute("active-state"),$APP.ol,a.getAttribute("active-index"),$APP.km,a.getAttribute("stiffness"),$APP.Ym,a.getAttribute("damping"),$APP.Fj,a.getAttribute("mass"),$APP.ul,a.getAttribute("variant"),$APP.Vi,a.getAttribute("duration"),
10
- $APP.Ol,a.hasAttribute("disabled")],null);a=$APP.M(a);var b=$APP.D(a,Bx),c=$APP.D(a,$APP.ol),d=$APP.D(a,$APP.km),e=$APP.D(a,$APP.Ym),g=$APP.D(a,$APP.Fj),h=$APP.D(a,$APP.ul),l=$APP.D(a,$APP.Vi);a=$APP.D(a,$APP.Ol);b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():null;a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){c=parseInt(c,10);c=typeof c==="number"&&$APP.r(isNaN(c))&&c>=0?c:null;break a}c=null}d=ox(d,170,10,500);e=ox(e,26,1,100);g=ox(g,1,.1,10);h=lx(h);a:{if(typeof l==="string"&&(l=l.trim(),
11
- $APP.N(l,""))){l=parseFloat(l);l=typeof l==="number"&&$APP.r(isNaN(l))&&l>0?l:null;break a}l=null}return new $APP.Q(null,8,[rx,b,$APP.gk,c,$APP.Tl,d,$APP.Pk,e,$APP.tm,g,$APP.Vg,h,$APP.fl,l,$APP.X,$APP.F(a)],null)},Dx=function(a,b,c){a=window.getComputedStyle(a).getPropertyValue(b);return typeof a==="string"&&$APP.N("",a.trim())?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?c:a):c},Ex=function(a){a=Ax(a);a=$APP.M(a);a=$APP.D(a,$APP.kj).assignedElements();for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d],
12
- g=$APP.B.i(1,e.nodeType);$APP.n(g?e.hasAttribute("data-state"):g)&&b.push(e);d+=1}else break;return b},Fx=function(a){a=Ex(a);for(var b=[],c=a.length,d=0;;)if(d<c)b.push(a[d].getAttribute("data-state")),d+=1;else break;return b},Gx=function(a,b){a=Ex(a);for(var c=a.length,d=0;;)if(d<c){var e=a[d];if($APP.B.i(b,e.getAttribute("data-state")))return e;d+=1}else return null},Hx=function(a,b){for(var c=Ex(a),d=c.length,e=0;;)if(e<d){var g=c[e],h=g.getAttribute("data-state");$APP.B.i(h,b)?g.style.display=
13
- "":g.style.display="none";e+=1}else break;$APP.n(b)?a.setAttribute("data-active-state",b):a.removeAttribute("data-active-state");a.__xMorphStackCurrent=b},Ix=function(a){var b={};if($APP.n(a)){a=a.querySelectorAll("["+$APP.T.g("data-morph-id")+"]");for(var c=a.length,d=0;;)if(d<c){var e=a[d],g=e.getAttribute("data-morph-id"),h=e.getBoundingClientRect(),l=window.getComputedStyle(e);b[g]={rect:{x:h.left,y:h.top,w:h.width,h:h.height},br:l.borderRadius,bg:l.backgroundColor,color:l.color,clip:l.clipPath,
14
- text:e.textContent,node:e};d+=1}else break}return b},Jx=function(a,b,c){var d=$APP.k(a,"__xMorphStackFilterBlur");a=$APP.k(a,"__xMorphStackFilterMatrix");$APP.n(d)&&d.setAttribute("stdDeviation",""+$APP.T.g(b));$APP.n(a)&&a.setAttribute("values",nx(c))},Kx=function(a,b){var c=$APP.k(a,"__xMorphStackGooBaseBlur"),d=$APP.k(a,"__xMorphStackGooBaseThreshold");c!=null&&d!=null&&(b=b<=0?1:b<.18?1-b/.18:b<.7?0:b<1?(b-.7)/(1-.7):1,Jx(a,c*(1-b),tx(d,1,b)))},Mx=function(a){var b=zx(a);b=$APP.M(b);b=$APP.D(b,
15
- $APP.mk);var c=$APP.k(a,"__xMorphStackFilterId");if($APP.n(c))b=c;else{c=Lx[0];Lx[0]=c+1;c="x-morph-stack-goo-"+$APP.T.g(c);var d=document.createElementNS("http://www.w3.org/2000/svg","defs"),e=document.createElementNS("http://www.w3.org/2000/svg","filter"),g=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),h=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");e.setAttribute("id",c);e.setAttribute("x","-20%");e.setAttribute("y","-20%");e.setAttribute("width",
16
- "140%");e.setAttribute("height","140%");g.setAttribute("in","SourceGraphic");g.setAttribute("stdDeviation",""+$APP.T.g(10));g.setAttribute("result","blur");h.setAttribute("in","blur");h.setAttribute("type","matrix");h.setAttribute("values",nx(18));e.appendChild(g);e.appendChild(h);d.appendChild(e);b.appendChild(d);a.__xMorphStackFilterId=c;a.__xMorphStackFilterBlur=g;a.__xMorphStackFilterMatrix=h;b=c}c=zx(a);c=$APP.M(c);c=$APP.D(c,yx);d=Dx(a,"--x-morph-stack-goo-blur",10);e=Dx(a,"--x-morph-stack-goo-threshold",
17
- 18);a.__xMorphStackGooBaseBlur=d;a.__xMorphStackGooBaseThreshold=e;Jx(a,d,e);c.style.filter="url(#"+$APP.T.g(b)+")";c.style.webkitFilter="url(#"+$APP.T.g(b)+")"},Nx=function(a){a=$APP.k(a,"__xMorphStackRefs");a=$APP.n(a)?yx.g(a):null;$APP.n(a)&&(a.style.filter="",a.style.webkitFilter="")},Ox=function(a){a.style.position="absolute";a.style.margin="0";a.style.boxSizing="border-box";a.style.transformOrigin="top left";a.style.pointerEvents="none"},Px=function(a,b,c){var d=b.y-c.top;a.style.left=""+$APP.T.g(b.x-
18
- c.left)+"px";a.style.top=""+$APP.T.g(d)+"px";a.style.width=""+$APP.T.g(b.w)+"px";a.style.height=""+$APP.T.g(b.h)+"px"},Qx=function(a,b,c,d){function e(la){la=$APP.oh.i(0,$APP.ph.i(1,la));var Ca=tx(aa,0,la),Pa=tx(G,1,la),db=tx(J,1,la);C.style.transform="translate("+$APP.T.g(tx(R,0,la))+"px,"+$APP.T.g(Ca)+"px) scale("+$APP.T.g(Pa)+","+$APP.T.g(db)+")";Ca=C.style;Pa=wx(m);db=wx(p);if($APP.n($APP.n(Pa)?$APP.n(db)?$APP.B.i(Pa.length,db.length):db:Pa)){for(var eb=[],pb=Pa.length,Nb=0;;)if(Nb<pb)eb.push(""+
19
- $APP.T.g(tx(Pa[Nb],db[Nb],la))+"px"),Nb+=1;else break;Pa=eb.join(" ")}else Pa=la<.5?m:p;Ca.borderRadius=Pa;$APP.n($APP.n(q)?v:q)&&(C.style.backgroundColor=vx(q,v,la));$APP.n($APP.n(x)?y:x)&&(C.style.color=vx(x,y,la));A&&(C.style.opacity=""+$APP.T.g($APP.oh.i(0,$APP.ph.i(1,la))));return null}var g=$APP.k(d,"node"),h=$APP.k(d,"rect"),l=$APP.k(c,"rect"),m=$APP.k(c,"br"),p=$APP.k(d,"br"),q=$APP.k(c,"bg"),v=$APP.k(d,"bg"),x=$APP.k(c,"color"),y=$APP.k(d,"color"),A=$APP.N($APP.k(c,"text"),$APP.k(d,"text")),
20
- C=g.cloneNode(!0);c=h.w;d=h.h;var E=l.w,H=l.h,G=c>0?E/c:1,J=d>0?H/d:1,R=l.x-h.x,aa=l.y-h.y;Ox(C);Px(C,h,b);a.appendChild(C);g.style.visibility="hidden";e(0);return{t:0,v:0,update:e,finalize:function(){g.style.visibility="";return $APP.n(C.parentNode)?C.parentNode.removeChild(C):null}}},Rx=function(a,b,c,d){function e(C){C=$APP.oh.i(0,$APP.ph.i(1,C));var E=tx(0,v,C),H=tx(1,x,C),G=tx(1,y,C);A.style.transform="translate("+$APP.T.g(tx(0,q,C))+"px,"+$APP.T.g(E)+"px) scale("+$APP.T.g(H)+","+$APP.T.g(G)+
21
- ")";A.style.opacity=""+$APP.T.g($APP.oh.i(0,1-C));return null}var g=$APP.k(c,"rect");d=$APP.k(d,"rect");var h=g.w,l=g.h,m=d.w,p=d.h,q=d.x-g.x,v=d.y-g.y,x=h>0?m/h:1,y=l>0?p/l:1,A=$APP.k(c,"node").cloneNode(!0);Ox(A);Px(A,g,b);a.appendChild(A);e(0);return{t:0,v:0,update:e,finalize:function(){return $APP.n(A.parentNode)?A.parentNode.removeChild(A):null}}},Sx=function(a,b,c){var d=$APP.k(c,"rect"),e=$APP.k(c,"node").cloneNode(!0);Ox(e);Px(e,d,b);a.appendChild(e);return{t:0,v:0,update:function(g){e.style.opacity=
22
- ""+$APP.T.g($APP.oh.i(0,1-g));return null},finalize:function(){return $APP.n(e.parentNode)?e.parentNode.removeChild(e):null}}},Tx=function(a){var b=$APP.k(a,"node");b.style.opacity="0";return{t:0,v:0,update:function(c){b.style.opacity=""+$APP.T.g($APP.oh.i(0,$APP.ph.i(1,c)));return null},finalize:function(){return b.style.opacity=""}}},Yx=function(a,b,c){a=zx(a);a=$APP.M(a);var d=$APP.D(a,yx),e=d.getBoundingClientRect(),g=Object.keys(b);a=Object.keys(c);g=$APP.xe(g);a=$APP.xe(a);g=$APP.Xf(g);a=$APP.Xf(a);
23
- a=new $APP.Q(null,3,[Ux,$APP.nn.i(g,a),Vx,Wx.i(g,a),Xx,Wx.i(a,g)],null);var h=Ux.g(a),l=Vx.g(a);g=Xx.g(a);a=[];h=$APP.t(h);for(var m=null,p=0,q=0;;)if(q<p){var v=m.F(null,q),x=$APP.k(b,v);v=$APP.k(c,v);var y=$APP.k(x,"text"),A=$APP.k(v,"text");a.push(Qx(d,e,x,v));$APP.N(y,A)&&a.push(Rx(d,e,x,v));q+=1}else if(h=$APP.t(h))$APP.Nc(h)?(p=$APP.yb(h),h=$APP.zb(h),m=p,p=$APP.z(p)):(p=$APP.u(h),m=$APP.k(b,p),p=$APP.k(c,p),q=$APP.k(m,"text"),x=$APP.k(p,"text"),a.push(Qx(d,e,m,p)),$APP.N(q,x)&&a.push(Rx(d,
24
- e,m,p)),h=$APP.w(h),m=null,p=0),q=0;else break;l=$APP.t(l);h=null;for(p=m=0;;)if(p<m)q=h.F(null,p),a.push(Sx(d,e,$APP.k(b,q))),p+=1;else if(l=$APP.t(l))h=l,$APP.Nc(h)?(l=$APP.yb(h),p=$APP.zb(h),h=l,m=$APP.z(l),l=p):(l=$APP.u(h),a.push(Sx(d,e,$APP.k(b,l))),l=$APP.w(h),h=null,m=0),p=0;else break;b=$APP.t(g);d=null;for(g=e=0;;)if(g<e)l=d.F(null,g),a.push(Tx($APP.k(c,l))),g+=1;else if(b=$APP.t(b))d=b,$APP.Nc(d)?(b=$APP.yb(d),g=$APP.zb(d),d=b,e=$APP.z(b),b=g):(b=$APP.u(d),a.push(Tx($APP.k(c,b))),b=$APP.w(d),
25
- d=null,e=0),g=0;else break;return a},Zx=function(a){if($APP.n(a))for(var b=a.length,c=0;;)if(c<b){var d=a[c].finalize;$APP.n(d)&&(d.H?d.H():d.call(null));c+=1}else break},$x=function(a,b,c){if($APP.B.i(b,$APP.k(a,"__xMorphStackToken"))){b=$APP.k(a,"__xMorphStackEntries");var d=$APP.k(a,"__xMorphStackRaf");$APP.n(d)&&(window.cancelAnimationFrame(d),a.__xMorphStackRaf=null);Zx(b);a.__xMorphStackEntries=null;a.__xMorphStackLast=null;Nx(a);$APP.n(c)&&(c=$APP.Hh(xx($APP.k(a,"__xMorphStackFrom"),$APP.k(a,
26
- "__xMorphStackTo"))),c=new CustomEvent("x-morph-stack-changed",{detail:c,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(c),a.__xMorphStackFrom=null,a.__xMorphStackTo=null)}return null},ay=function(a){var b=$APP.k(a,"__xMorphStackRaf");$APP.n(b)&&(window.cancelAnimationFrame(b),a.__xMorphStackRaf=null);Zx($APP.k(a,"__xMorphStackEntries"));a.__xMorphStackEntries=null;a.__xMorphStackLast=null;Nx(a)},cy=function(a,b,c){var d=$APP.k(a,"__xMorphStackCurrent"),e=function(){var m=$APP.k(a,"__xMorphStackModel");
27
- return $APP.n(m)?m:Cx(a)}(),g=Fx(a);if(g.length===0||b==null||$APP.r($APP.Td(function(m){return $APP.B.i(m,b)},g)))return!1;if($APP.B.i(d,b))return!0;var h=$APP.n(d)?Gx(a,d):null;g=Gx(a,b);c=$APP.Hh(new $APP.Q(null,3,[$APP.Vh,$APP.n(d)?d:"",$APP.dm,$APP.n(b)?b:"",$APP.Qi,$APP.n(c)?c:"method"],null));c=new CustomEvent("x-morph-stack-change",{detail:c,bubbles:!0,composed:!0,cancelable:!0});c=a.dispatchEvent(c);if($APP.r(c))return!1;ay(a);c=function(){var m=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);
28
- return m?m:$APP.X.g(e)}();if($APP.n(c))Hx(a,b),queueMicrotask(function(){var m=$APP.Hh(xx(d,b));m=new CustomEvent("x-morph-stack-changed",{detail:m,bubbles:!0,composed:!0});return a.dispatchEvent(m)});else{h=Ix(h);Hx(a,b);$APP.mj.g(Ax(a));g=Ix(g);g=Yx(a,h,g);var l=function(){var m=$APP.k(a,"__xMorphStackToken");return $APP.n(m)?m:0}()+1;a.__xMorphStackToken=l;a.__xMorphStackEntries=g;a.__xMorphStackLast=null;a.__xMorphStackFrom=d;a.__xMorphStackTo=b;$APP.ja(a,"__xMorphStackTimeScale",px($APP.fl.g(e),
29
- $APP.Tl.g(e),$APP.Pk.g(e),$APP.tm.g(e)));mx($APP.Vg.g(e))&&(Mx(a),Kx(a,0));g.length===0?$x(a,l,!0):(g=window.requestAnimationFrame(function(m){return $APP.B.i(l,$APP.k(a,"__xMorphStackToken"))?by(a,m):null}),a.__xMorphStackRaf=g)}return!0},dy=function(a){Ax(a);var b=Cx(a);a.__xMorphStackModel=b;a.setAttribute("data-variant",$APP.Vg.g(b));var c=Fx(a);c=sx($APP.xe($APP.uc(c)),b);b=$APP.k(a,"__xMorphStackCurrent");b==null?$APP.n(c)&&Hx(a,c):$APP.n($APP.n(c)?$APP.N(c,b):c)?cy(a,c,"attribute"):(c=c==null,
30
- $APP.n(c?b:c)&&(ay(a),Hx(a,null)))},ey=function(a){var b=Fx(a);var c=$APP.k(a,"__xMorphStackModel");c=$APP.n(c)?c:Cx(a);b=sx($APP.xe($APP.uc(b)),c);c=$APP.k(a,"__xMorphStackCurrent");b==null?(ay(a),Hx(a,null)):$APP.n($APP.n(c)?Gx(a,c)==null:c)?(ay(a),Hx(a,b)):c==null?Hx(a,b):Hx(a,c);return null},fy=function(a){function b(){return ey(a)}var c=Ax(a);c=$APP.M(c);$APP.D(c,$APP.kj).addEventListener("slotchange",b);$APP.ja(a,"__xMorphStackHandlers",{slot:b})},gy=function(a){var b=$APP.k(a,"__xMorphStackHandlers"),
31
- c=$APP.k(a,"__xMorphStackRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.kj.g(c),b=$APP.k(b,"slot"),$APP.n(b)&&c.removeEventListener("slotchange",b));a.__xMorphStackHandlers=null},hy=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},iy=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return d==
32
- null?null:parseFloat(d)},set:function(d){return d==null?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},jy=function(a){Object.defineProperty(a,"activeState",{get:function(){return this.getAttribute("active-state")},set:function(b){return b==null?this.removeAttribute("active-state"):this.setAttribute("active-state",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");
33
- return b==null?null:parseInt(b,10)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});iy(a,"stiffness","stiffness");iy(a,"damping","damping");iy(a,"mass","mass");iy(a,"duration","duration");Object.defineProperty(a,"variant",{get:function(){return lx(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,
34
- configurable:!0});hy(a);a.goTo=function(b){b=b!=null?""+$APP.T.g(b):null;return cy(this,b,"method")};a.next=function(){var b=Fx(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=-1;break b}if($APP.B.i(b[e],d)){d=e;break b}e+=1}d=void 0}b=cy(this,b[$APP.fd(d+1,c)],"method")}else b=null;return b};a.prev=function(){var b=Fx(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=0;break b}if($APP.B.i(b[e],d)){d=e;break b}e+=
35
- 1}d=void 0}b=cy(this,b[$APP.fd(d-1+c,c)],"method")}else b=null;return b};a.states=function(){return Fx(this)}},my=function(){var a=class extends HTMLElement{};a.observedAttributes=ky;a.prototype.connectedCallback=function(){Ax(this);gy(this);fy(this);dy(this);$APP.k(this,"__xMorphStackCurrent")==null&&ey(this);return null};a.prototype.disconnectedCallback=function(){ay(this);var b=$APP.k(this,"__xMorphStackRefs"),c=$APP.n(b)?yx.g(b):null;$APP.n($APP.n(c)?c.parentNode:c)&&c.parentNode.removeChild(c);
36
- $APP.n(b)&&(this.__xMorphStackRefs=ly.i(ly.i(b,yx),$APP.mk));this.__xMorphStackGooBaseThreshold=this.__xMorphStackGooBaseBlur=this.__xMorphStackFilterMatrix=this.__xMorphStackFilterBlur=this.__xMorphStackFilterId=null;gy(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&dy(this);return null};jy(a.prototype);return a},ny=function(){$APP.n(customElements.get("x-morph-stack"))||customElements.define("x-morph-stack",my());return null},ly=function ly(a){switch(arguments.length){case 1:return ly.g(arguments[0]);
37
- case 2:return ly.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ly.C(arguments[0],arguments[1],2<c.length?new $APP.Ub(c.slice(2),0,null):null)}};ly.g=function(a){return a};ly.i=function(a,b){return a==null?null:$APP.La(a,b)};ly.C=function(a,b,c){for(;;){if(a==null)return null;a=ly.i(a,b);if($APP.n(c))b=$APP.u(c),c=$APP.w(c);else return a}};
38
- ly.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};ly.N=2;var Wx=function Wx(a){switch(arguments.length){case 1:return Wx.g(arguments[0]);case 2:return Wx.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return Wx.C(arguments[0],arguments[1],2<c.length?new $APP.Ub(c.slice(2),0,null):null)}};Wx.g=function(a){return a};
39
- Wx.i=function(a,b){return $APP.z(a)<$APP.z(b)?$APP.Xc(function(c,d){return $APP.I(b,d)?$APP.nh.i(c,d):c},a,a):$APP.Xc($APP.nh,a,b)};Wx.C=function(a,b,c){return $APP.Xc(Wx,a,$APP.ld.i(c,b))};Wx.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};Wx.N=2;
40
- var Xx=new $APP.K(null,"entering","entering",-413471949),Vx=new $APP.K(null,"leaving","leaving",608616060),Ux=new $APP.K(null,"matched","matched",-975207164),Bx=new $APP.K(null,"active-state-raw","active-state-raw",-60607051),rx=new $APP.K(null,"active-state","active-state",-1185168001),yx=new $APP.K(null,"ghost-layer","ghost-layer",1707493707);var ky="active-state active-index stiffness damping mass variant duration disabled".split(" "),kx=$APP.Uf(["liquid","clean","organic"]);$APP.Pd(["x-morph-stack-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Vh,$APP.Y,$APP.dm,$APP.Y,$APP.Qi,$APP.Y],null),$APP.lm,!0],null),"x-morph-stack-changed",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Vh,$APP.Y,$APP.dm,$APP.Y],null),$APP.lm,!1],null)]);var Lx=[0],by=function by(a,b){var d=$APP.k(a,"__xMorphStackToken"),e=$APP.k(a,"__xMorphStackEntries"),g=$APP.k(a,"__xMorphStackLast"),h=function(){var C=$APP.k(a,"__xMorphStackModel");return $APP.n(C)?C:Cx(a)}(),l=$APP.tm.g(h),m=$APP.Tl.g(h);h=$APP.Pk.g(h);g=$APP.oh.i(0,$APP.ph.i(1/30,function(){var C=$APP.k(a,"__xMorphStackTimeScale");return $APP.n(C)?C:1}()*($APP.n(g)?(b-g)/1E3:1/60)));a.__xMorphStackLast=b;if($APP.n($APP.n(e)?e.length:e)){b=[!0];for(var p=[1],q=e.length,v=0;;)if(v<q){var x=e[v],
41
- y=qx(x.t,x.v,g,l,m,h),A=y[0];y=y[1];x.t=A;x.v=y;x=x.update;x.g?x.g(A):x.call(null,A);A<p[0]&&(p[0]=A);Math.abs(A-1)<.001&&Math.abs(y)<.01||(b[0]=!1);v+=1}else break;Kx(a,p[0]);$APP.n(b[0])?$x.m?$x.m(a,d,!0):$x.call(null,a,d,!0):(e=window.requestAnimationFrame(function(C){return $APP.B.i(d,$APP.k(a,"__xMorphStackToken"))?by.i?by.i(a,C):by.call(null,a,C):null}),a.__xMorphStackRaf=e)}return null};$APP.ha("baredom.exports.x_morph_stack.init",ny);export const init=ny;
9
+ d.setAttribute("part","viewport");e.setAttribute("name","state");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xMorphStackRefs=new $APP.N(null,3,[$APP.Uh,b,$APP.vk,d,$APP.tk,e],null);return $APP.k(a,"__xMorphStackRefs")},nA=function(a){a=new $APP.N(null,8,[mA,a.getAttribute("active-state"),$APP.zm,a.getAttribute("active-index"),$APP.En,a.getAttribute("stiffness"),$APP.ko,a.getAttribute("damping"),$APP.Rk,a.getAttribute("mass"),$APP.Gm,a.getAttribute("variant"),$APP.dk,a.getAttribute("duration"),
10
+ $APP.Fh,a.hasAttribute("disabled")],null);a=$APP.J(a);var b=$APP.C(a,mA),c=$APP.C(a,$APP.zm),d=$APP.C(a,$APP.En),e=$APP.C(a,$APP.ko),f=$APP.C(a,$APP.Rk),h=$APP.C(a,$APP.Gm),l=$APP.C(a,$APP.dk);a=$APP.C(a,$APP.Fh);b=typeof b==="string"&&$APP.M("",b.trim())?b.trim():null;a:{if(typeof c==="string"&&(c=c.trim(),$APP.M(c,""))){c=parseInt(c,10);c=typeof c==="number"&&$APP.p(isNaN(c))&&c>=0?c:null;break a}c=null}d=$z(d,170,10,500);e=$z(e,26,1,100);f=$z(f,1,.1,10);h=Xz(h);a:{if(typeof l==="string"&&(l=l.trim(),
11
+ $APP.M(l,""))){l=parseFloat(l);l=typeof l==="number"&&$APP.p(isNaN(l))&&l>0?l:null;break a}l=null}return new $APP.N(null,8,[cA,b,$APP.nl,c,$APP.kn,d,$APP.Wl,e,$APP.Nn,f,$APP.ii,h,$APP.rm,l,$APP.Y,$APP.E(a)],null)},oA=function(a,b,c){a=window.getComputedStyle(a).getPropertyValue(b);return typeof a==="string"&&$APP.M("",a.trim())?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?c:a):c},pA=function(a){a=lA(a);a=$APP.J(a);a=$APP.C(a,$APP.tk).assignedElements();for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d],
12
+ f=$APP.B.i(1,e.nodeType);$APP.n(f?e.hasAttribute("data-state"):f)&&b.push(e);d+=1}else break;return b},qA=function(a){a=pA(a);for(var b=[],c=a.length,d=0;;)if(d<c)b.push(a[d].getAttribute("data-state")),d+=1;else break;return b},rA=function(a,b){a=pA(a);for(var c=a.length,d=0;;)if(d<c){var e=a[d];if($APP.B.i(b,e.getAttribute("data-state")))return e;d+=1}else return null},sA=function(a,b){for(var c=pA(a),d=c.length,e=0;;)if(e<d){var f=c[e],h=f.getAttribute("data-state");$APP.B.i(h,b)?f.style.display=
13
+ "":f.style.display="none";e+=1}else break;$APP.n(b)?a.setAttribute("data-active-state",b):a.removeAttribute("data-active-state");a.__xMorphStackCurrent=b},tA=function(a){var b={};if($APP.n(a)){a=a.querySelectorAll("["+$APP.Q.g("data-morph-id")+"]");for(var c=a.length,d=0;;)if(d<c){var e=a[d],f=e.getAttribute("data-morph-id"),h=e.getBoundingClientRect(),l=window.getComputedStyle(e);b[f]={rect:{x:h.left,y:h.top,w:h.width,h:h.height},br:l.borderRadius,bg:l.backgroundColor,color:l.color,clip:l.clipPath,
14
+ text:e.textContent,node:e};d+=1}else break}return b},uA=function(a,b,c){var d=$APP.k(a,"__xMorphStackFilterBlur");a=$APP.k(a,"__xMorphStackFilterMatrix");$APP.n(d)&&d.setAttribute("stdDeviation",""+$APP.Q.g(b));$APP.n(a)&&a.setAttribute("values",Zz(c))},vA=function(a,b){var c=$APP.k(a,"__xMorphStackGooBaseBlur"),d=$APP.k(a,"__xMorphStackGooBaseThreshold");c!=null&&d!=null&&(b=b<=0?1:b<.18?1-b/.18:b<.7?0:b<1?(b-.7)/(1-.7):1,uA(a,c*(1-b),eA(d,1,b)))},xA=function(a){var b=kA(a);b=$APP.J(b);b=$APP.C(b,
15
+ $APP.tl);var c=$APP.k(a,"__xMorphStackFilterId");if($APP.n(c))b=c;else{c=wA[0];wA[0]=c+1;c="x-morph-stack-goo-"+$APP.Q.g(c);var d=document.createElementNS("http://www.w3.org/2000/svg","defs"),e=document.createElementNS("http://www.w3.org/2000/svg","filter"),f=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),h=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");e.setAttribute("id",c);e.setAttribute("x","-20%");e.setAttribute("y","-20%");e.setAttribute("width",
16
+ "140%");e.setAttribute("height","140%");f.setAttribute("in","SourceGraphic");f.setAttribute("stdDeviation",""+$APP.Q.g(10));f.setAttribute("result","blur");h.setAttribute("in","blur");h.setAttribute("type","matrix");h.setAttribute("values",Zz(18));e.appendChild(f);e.appendChild(h);d.appendChild(e);b.appendChild(d);a.__xMorphStackFilterId=c;a.__xMorphStackFilterBlur=f;a.__xMorphStackFilterMatrix=h;b=c}c=kA(a);c=$APP.J(c);c=$APP.C(c,jA);d=oA(a,"--x-morph-stack-goo-blur",10);e=oA(a,"--x-morph-stack-goo-threshold",
17
+ 18);a.__xMorphStackGooBaseBlur=d;a.__xMorphStackGooBaseThreshold=e;uA(a,d,e);c.style.filter="url(#"+$APP.Q.g(b)+")";c.style.webkitFilter="url(#"+$APP.Q.g(b)+")"},yA=function(a){a=$APP.k(a,"__xMorphStackRefs");a=$APP.n(a)?jA.g(a):null;$APP.n(a)&&(a.style.filter="",a.style.webkitFilter="")},zA=function(a){a.style.position="absolute";a.style.margin="0";a.style.boxSizing="border-box";a.style.transformOrigin="top left";a.style.pointerEvents="none"},AA=function(a,b,c){var d=b.y-c.top;a.style.left=""+$APP.Q.g(b.x-
18
+ c.left)+"px";a.style.top=""+$APP.Q.g(d)+"px";a.style.width=""+$APP.Q.g(b.w)+"px";a.style.height=""+$APP.Q.g(b.h)+"px"},BA=function(a,b,c,d){function e(va){va=$APP.Hi.i(0,$APP.Ii.i(1,va));var Pa=eA(ea,0,va),eb=eA(H,1,va),sb=eA(K,1,va);D.style.transform="translate("+$APP.Q.g(eA(W,0,va))+"px,"+$APP.Q.g(Pa)+"px) scale("+$APP.Q.g(eb)+","+$APP.Q.g(sb)+")";Pa=D.style;eb=hA(m);sb=hA(q);if($APP.n($APP.n(eb)?$APP.n(sb)?$APP.B.i(eb.length,sb.length):sb:eb)){for(var tb=[],Ib=eb.length,fc=0;;)if(fc<Ib)tb.push(""+
19
+ $APP.Q.g(eA(eb[fc],sb[fc],va))+"px"),fc+=1;else break;eb=tb.join(" ")}else eb=va<.5?m:q;Pa.borderRadius=eb;$APP.n($APP.n(r)?v:r)&&(D.style.backgroundColor=gA(r,v,va));$APP.n($APP.n(x)?y:x)&&(D.style.color=gA(x,y,va));A&&(D.style.opacity=""+$APP.Q.g($APP.Hi.i(0,$APP.Ii.i(1,va))));return null}var f=$APP.k(d,"node"),h=$APP.k(d,"rect"),l=$APP.k(c,"rect"),m=$APP.k(c,"br"),q=$APP.k(d,"br"),r=$APP.k(c,"bg"),v=$APP.k(d,"bg"),x=$APP.k(c,"color"),y=$APP.k(d,"color"),A=$APP.M($APP.k(c,"text"),$APP.k(d,"text")),
20
+ D=f.cloneNode(!0);c=h.w;d=h.h;var G=l.w,I=l.h,H=c>0?G/c:1,K=d>0?I/d:1,W=l.x-h.x,ea=l.y-h.y;zA(D);AA(D,h,b);a.appendChild(D);f.style.visibility="hidden";e(0);return{t:0,v:0,update:e,finalize:function(){f.style.visibility="";return $APP.n(D.parentNode)?D.parentNode.removeChild(D):null}}},CA=function(a,b,c,d){function e(D){D=$APP.Hi.i(0,$APP.Ii.i(1,D));var G=eA(0,v,D),I=eA(1,x,D),H=eA(1,y,D);A.style.transform="translate("+$APP.Q.g(eA(0,r,D))+"px,"+$APP.Q.g(G)+"px) scale("+$APP.Q.g(I)+","+$APP.Q.g(H)+
21
+ ")";A.style.opacity=""+$APP.Q.g($APP.Hi.i(0,1-D));return null}var f=$APP.k(c,"rect");d=$APP.k(d,"rect");var h=f.w,l=f.h,m=d.w,q=d.h,r=d.x-f.x,v=d.y-f.y,x=h>0?m/h:1,y=l>0?q/l:1,A=$APP.k(c,"node").cloneNode(!0);zA(A);AA(A,f,b);a.appendChild(A);e(0);return{t:0,v:0,update:e,finalize:function(){return $APP.n(A.parentNode)?A.parentNode.removeChild(A):null}}},DA=function(a,b,c){var d=$APP.k(c,"rect"),e=$APP.k(c,"node").cloneNode(!0);zA(e);AA(e,d,b);a.appendChild(e);return{t:0,v:0,update:function(f){e.style.opacity=
22
+ ""+$APP.Q.g($APP.Hi.i(0,1-f));return null},finalize:function(){return $APP.n(e.parentNode)?e.parentNode.removeChild(e):null}}},EA=function(a){var b=$APP.k(a,"node");b.style.opacity="0";return{t:0,v:0,update:function(c){b.style.opacity=""+$APP.Q.g($APP.Hi.i(0,$APP.Ii.i(1,c)));return null},finalize:function(){return b.style.opacity=""}}},JA=function(a,b,c){a=kA(a);a=$APP.J(a);var d=$APP.C(a,jA),e=d.getBoundingClientRect(),f=Object.keys(b);a=Object.keys(c);f=$APP.Je(f);a=$APP.Je(a);f=$APP.ig(f);a=$APP.ig(a);
23
+ a=new $APP.N(null,3,[FA,$APP.zo.i(f,a),GA,HA.i(f,a),IA,HA.i(a,f)],null);var h=FA.g(a),l=GA.g(a);f=IA.g(a);a=[];h=$APP.t(h);for(var m=null,q=0,r=0;;)if(r<q){var v=m.F(null,r),x=$APP.k(b,v);v=$APP.k(c,v);var y=$APP.k(x,"text"),A=$APP.k(v,"text");a.push(BA(d,e,x,v));$APP.M(y,A)&&a.push(CA(d,e,x,v));r+=1}else if(h=$APP.t(h))$APP.Vc(h)?(q=$APP.Db(h),h=$APP.Eb(h),m=q,q=$APP.z(q)):(q=$APP.u(h),m=$APP.k(b,q),q=$APP.k(c,q),r=$APP.k(m,"text"),x=$APP.k(q,"text"),a.push(BA(d,e,m,q)),$APP.M(r,x)&&a.push(CA(d,
24
+ e,m,q)),h=$APP.w(h),m=null,q=0),r=0;else break;l=$APP.t(l);h=null;for(q=m=0;;)if(q<m)r=h.F(null,q),a.push(DA(d,e,$APP.k(b,r))),q+=1;else if(l=$APP.t(l))h=l,$APP.Vc(h)?(l=$APP.Db(h),q=$APP.Eb(h),h=l,m=$APP.z(l),l=q):(l=$APP.u(h),a.push(DA(d,e,$APP.k(b,l))),l=$APP.w(h),h=null,m=0),q=0;else break;b=$APP.t(f);d=null;for(f=e=0;;)if(f<e)l=d.F(null,f),a.push(EA($APP.k(c,l))),f+=1;else if(b=$APP.t(b))d=b,$APP.Vc(d)?(b=$APP.Db(d),f=$APP.Eb(d),d=b,e=$APP.z(b),b=f):(b=$APP.u(d),a.push(EA($APP.k(c,b))),b=$APP.w(d),
25
+ d=null,e=0),f=0;else break;return a},KA=function(a){if($APP.n(a))for(var b=a.length,c=0;;)if(c<b){var d=a[c].finalize;$APP.n(d)&&(d.H?d.H():d.call(null));c+=1}else break},LA=function(a,b,c){if($APP.B.i(b,$APP.k(a,"__xMorphStackToken"))){b=$APP.k(a,"__xMorphStackEntries");var d=$APP.k(a,"__xMorphStackRaf");$APP.n(d)&&(window.cancelAnimationFrame(d),a.__xMorphStackRaf=null);KA(b);a.__xMorphStackEntries=null;a.__xMorphStackLast=null;yA(a);$APP.n(c)&&(c=$APP.Xi(iA($APP.k(a,"__xMorphStackFrom"),$APP.k(a,
26
+ "__xMorphStackTo"))),$APP.P(a,"x-morph-stack-changed",c),a.__xMorphStackFrom=null,a.__xMorphStackTo=null)}return null},MA=function(a){var b=$APP.k(a,"__xMorphStackRaf");$APP.n(b)&&(window.cancelAnimationFrame(b),a.__xMorphStackRaf=null);KA($APP.k(a,"__xMorphStackEntries"));a.__xMorphStackEntries=null;a.__xMorphStackLast=null;yA(a)},OA=function(a,b,c){var d=$APP.k(a,"__xMorphStackCurrent"),e=function(){var m=$APP.k(a,"__xMorphStackModel");return $APP.n(m)?m:nA(a)}(),f=qA(a);if(f.length===0||b==null||
27
+ $APP.p($APP.be(function(m){return $APP.B.i(m,b)},f)))return!1;if($APP.B.i(d,b))return!0;var h=$APP.n(d)?rA(a,d):null;f=rA(a,b);c=$APP.Xi(new $APP.N(null,3,[$APP.kj,$APP.n(d)?d:"",$APP.wn,$APP.n(b)?b:"",$APP.Yj,$APP.n(c)?c:"method"],null));if($APP.ch(a,"x-morph-stack-change",c)){MA(a);c=function(){var m=$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches);return m?m:$APP.Y.g(e)}();if($APP.n(c))sA(a,b),queueMicrotask(function(){return $APP.P(a,"x-morph-stack-changed",$APP.Xi(iA(d,b)))});
28
+ else{h=tA(h);sA(a,b);$APP.vk.g(lA(a));f=tA(f);f=JA(a,h,f);var l=function(){var m=$APP.k(a,"__xMorphStackToken");return $APP.n(m)?m:0}()+1;a.__xMorphStackToken=l;a.__xMorphStackEntries=f;a.__xMorphStackLast=null;a.__xMorphStackFrom=d;a.__xMorphStackTo=b;$APP.fa(a,"__xMorphStackTimeScale",aA($APP.rm.g(e),$APP.kn.g(e),$APP.Wl.g(e),$APP.Nn.g(e)));Yz($APP.ii.g(e))&&(xA(a),vA(a,0));f.length===0?LA(a,l,!0):(f=window.requestAnimationFrame(function(m){return $APP.B.i(l,$APP.k(a,"__xMorphStackToken"))?NA(a,
29
+ m):null}),a.__xMorphStackRaf=f)}return!0}return!1},PA=function(a){lA(a);var b=nA(a);a.__xMorphStackModel=b;a.setAttribute("data-variant",$APP.ii.g(b));var c=qA(a);c=dA($APP.Je($APP.Bc(c)),b);b=$APP.k(a,"__xMorphStackCurrent");b==null?$APP.n(c)&&sA(a,c):$APP.n($APP.n(c)?$APP.M(c,b):c)?OA(a,c,"attribute"):(c=c==null,$APP.n(c?b:c)&&(MA(a),sA(a,null)))},QA=function(a){var b=qA(a);var c=$APP.k(a,"__xMorphStackModel");c=$APP.n(c)?c:nA(a);b=dA($APP.Je($APP.Bc(b)),c);c=$APP.k(a,"__xMorphStackCurrent");b==
30
+ null?(MA(a),sA(a,null)):$APP.n($APP.n(c)?rA(a,c)==null:c)?(MA(a),sA(a,b)):c==null?sA(a,b):sA(a,c);return null},RA=function(a){function b(){return QA(a)}var c=lA(a);c=$APP.J(c);$APP.C(c,$APP.tk).addEventListener("slotchange",b);$APP.fa(a,"__xMorphStackHandlers",{slot:b})},SA=function(a){var b=$APP.k(a,"__xMorphStackHandlers"),c=$APP.k(a,"__xMorphStackRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.tk.g(c),b=$APP.k(b,"slot"),$APP.n(b)&&c.removeEventListener("slotchange",b));a.__xMorphStackHandlers=null},TA=function(a,
31
+ b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return d==null?null:parseFloat(d)},set:function(d){return d==null?this.removeAttribute(c):this.setAttribute(c,""+$APP.Q.g(d))},enumerable:!0,configurable:!0})},UA=function(a){$APP.fh(a,"activeState","active-state");Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return b==null?null:parseInt(b,10)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",
32
+ ""+$APP.Q.g(b|0))},enumerable:!0,configurable:!0});TA(a,"stiffness","stiffness");TA(a,"damping","damping");TA(a,"mass","mass");TA(a,"duration","duration");Object.defineProperty(a,"variant",{get:function(){return Xz(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});$APP.dh(a,"disabled","disabled");a.goTo=function(b){b=b!=null?""+$APP.Q.g(b):null;return OA(this,b,"method")};a.next=
33
+ function(){var b=qA(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=-1;break b}if($APP.B.i(b[e],d)){d=e;break b}e+=1}d=void 0}b=OA(this,b[$APP.od(d+1,c)],"method")}else b=null;return b};a.prev=function(){var b=qA(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=0;break b}if($APP.B.i(b[e],d)){d=e;break b}e+=1}d=void 0}b=OA(this,b[$APP.od(d-1+c,c)],"method")}else b=null;return b};return a.states=function(){return qA(this)}},
34
+ VA=function(a){lA(a);SA(a);RA(a);PA(a);$APP.k(a,"__xMorphStackCurrent")==null&&QA(a);return null},XA=function(a){MA(a);var b=$APP.k(a,"__xMorphStackRefs"),c=$APP.n(b)?jA.g(b):null;$APP.n($APP.n(c)?c.parentNode:c)&&c.parentNode.removeChild(c);$APP.n(b)&&(b=WA.i(WA.i(b,jA),$APP.tl),a.__xMorphStackRefs=b);a.__xMorphStackFilterId=null;a.__xMorphStackFilterBlur=null;a.__xMorphStackFilterMatrix=null;a.__xMorphStackGooBaseBlur=null;a.__xMorphStackGooBaseThreshold=null;SA(a);return null},YA=function(a,b,
35
+ c,d){$APP.M(c,d)&&PA(a);return null},$A=function(){return $APP.Yg("x-morph-stack",new $APP.N(null,5,[$APP.Pg,ZA,$APP.Qg,VA,$APP.Rg,XA,$APP.Sg,YA,$APP.Wg,UA],null))},WA=function WA(a){switch(arguments.length){case 1:return WA.g(arguments[0]);case 2:return WA.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return WA.B(arguments[0],arguments[1],2<c.length?new $APP.$b(c.slice(2),0,null):null)}};WA.g=function(a){return a};
36
+ WA.i=function(a,b){return a==null?null:$APP.Ra(a,b)};WA.B=function(a,b,c){for(;;){if(a==null)return null;a=WA.i(a,b);if($APP.n(c))b=$APP.u(c),c=$APP.w(c);else return a}};WA.I=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.B(b,a,c)};WA.J=2;
37
+ var HA=function HA(a){switch(arguments.length){case 1:return HA.g(arguments[0]);case 2:return HA.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return HA.B(arguments[0],arguments[1],2<c.length?new $APP.$b(c.slice(2),0,null):null)}};HA.g=function(a){return a};HA.i=function(a,b){return $APP.z(a)<$APP.z(b)?$APP.wa(function(c,d){return $APP.Zc(b,d)?$APP.Gi.i(c,d):c},a,a):$APP.wa($APP.Gi,a,b)};
38
+ HA.B=function(a,b,c){return $APP.wa(HA,a,$APP.ud.i(c,b))};HA.I=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.B(b,a,c)};HA.J=2;var IA=new $APP.F(null,"entering","entering",-413471949),GA=new $APP.F(null,"leaving","leaving",608616060),FA=new $APP.F(null,"matched","matched",-975207164),mA=new $APP.F(null,"active-state-raw","active-state-raw",-60607051),cA=new $APP.F(null,"active-state","active-state",-1185168001),jA=new $APP.F(null,"ghost-layer","ghost-layer",1707493707);var ZA="active-state active-index stiffness damping mass variant duration disabled".split(" "),Wz=$APP.fg(["liquid","clean","organic"]);$APP.Yd(["x-morph-stack-change",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.kj,$APP.U,$APP.wn,$APP.U,$APP.Yj,$APP.U],null),$APP.Fn,!0],null),"x-morph-stack-changed",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.kj,$APP.U,$APP.wn,$APP.U],null),$APP.Fn,!1],null)]);var wA=[0],NA=function NA(a,b){var d=$APP.k(a,"__xMorphStackToken"),e=$APP.k(a,"__xMorphStackEntries"),f=$APP.k(a,"__xMorphStackLast"),h=function(){var D=$APP.k(a,"__xMorphStackModel");return $APP.n(D)?D:nA(a)}(),l=$APP.Nn.g(h),m=$APP.kn.g(h);h=$APP.Wl.g(h);f=$APP.Hi.i(0,$APP.Ii.i(1/30,function(){var D=$APP.k(a,"__xMorphStackTimeScale");return $APP.n(D)?D:1}()*($APP.n(f)?(b-f)/1E3:1/60)));a.__xMorphStackLast=b;if($APP.n($APP.n(e)?e.length:e)){b=[!0];for(var q=[1],r=e.length,v=0;;)if(v<r){var x=e[v],
39
+ y=bA(x.t,x.v,f,l,m,h),A=y[0];y=y[1];x.t=A;x.v=y;x=x.update;x.g?x.g(A):x.call(null,A);A<q[0]&&(q[0]=A);Math.abs(A-1)<.001&&Math.abs(y)<.01||(b[0]=!1);v+=1}else break;vA(a,q[0]);$APP.n(b[0])?LA.l?LA.l(a,d,!0):LA.call(null,a,d,!0):(e=window.requestAnimationFrame(function(D){return $APP.B.i(d,$APP.k(a,"__xMorphStackToken"))?NA.i?NA.i(a,D):NA.call(null,a,D):null}),a.__xMorphStackRaf=e)}return null};$APP.ca("baredom.exports.x_morph_stack.init",$A);export const init=$A;
@@ -0,0 +1,50 @@
1
+ // x-multi-combobox.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XMultiComboboxEventMap {
6
+ "x-multi-combobox-change-request": CustomEvent<{ value: any; action: string; item: string }>;
7
+ "x-multi-combobox-change": CustomEvent<{ value: any }>;
8
+ "x-multi-combobox-input": CustomEvent<{ query: string }>;
9
+ "x-multi-combobox-toggle": CustomEvent<{ open: boolean; source: string }>;
10
+ }
11
+
12
+ export interface XMultiCombobox extends HTMLElement {
13
+ value: string;
14
+ placeholder: string;
15
+ name: string;
16
+ disabled: boolean;
17
+ required: boolean;
18
+ open: boolean;
19
+ placement: string;
20
+ max: number;
21
+ show(): void;
22
+ hide(): void;
23
+
24
+ addEventListener<K extends keyof XMultiComboboxEventMap>(
25
+ type: K,
26
+ listener: (this: XMultiCombobox, ev: XMultiComboboxEventMap[K]) => any,
27
+ options?: boolean | AddEventListenerOptions
28
+ ): void;
29
+ addEventListener(
30
+ type: string,
31
+ listener: EventListenerOrEventListenerObject,
32
+ options?: boolean | AddEventListenerOptions
33
+ ): void;
34
+ removeEventListener<K extends keyof XMultiComboboxEventMap>(
35
+ type: K,
36
+ listener: (this: XMultiCombobox, ev: XMultiComboboxEventMap[K]) => any,
37
+ options?: boolean | EventListenerOptions
38
+ ): void;
39
+ removeEventListener(
40
+ type: string,
41
+ listener: EventListenerOrEventListenerObject,
42
+ options?: boolean | EventListenerOptions
43
+ ): void;
44
+ }
45
+
46
+ declare global {
47
+ interface HTMLElementTagNameMap {
48
+ "x-multi-combobox": XMultiCombobox;
49
+ }
50
+ }
@@ -0,0 +1,37 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Qx=function(){},Rx=function(){},Sx=function(a){return a==null?null:a!=null&&(a.s&4||$APP.Tb===a.hc)?a.Y(null):(a!=null?a.s&4||$APP.Tb===a.hc||(a.s?0:$APP.pa(Qx,a)):$APP.pa(Qx,a))?$APP.Ca(a):null},Tx=function(a){return a==null?!1:a!=null?a.s&64||$APP.Tb===a.rb?!0:a.s?!1:$APP.pa(Rx,a):$APP.pa(Rx,a)},Ux=function(){return function(){function a(b){if(arguments.length>0)for(var c=0,d=Array(arguments.length-0);c<d.length;)d[c]=arguments[c+0],++c;return!0}a.J=0;a.I=function(b){$APP.t(b);return!0};a.B=
3
+ function(){return!0};return a}()},Vx=function(){this.state=200;this.s=32768;this.G=0},Wx=function(){return function(a){var b=new Vx;return function(){function c(h,l){var m=$APP.Za(b);var q=b.state=b.Jb(null)-1;h=m>0?a.i?a.i(h,l):a.call(null,h,l):h;return q>0?h:$APP.lc(h)?h:new $APP.kc(h)}function d(h){return a.g?a.g(h):a.call(null,h)}function e(){return a.H?a.H():a.call(null)}var f=null;f=function(h,l){switch(arguments.length){case 0:return e.call(this);case 1:return d.call(this,h);case 2:return c.call(this,
4
+ h,l)}throw Error("Invalid arity: "+arguments.length);};f.H=e;f.g=d;f.i=c;return f}()}},Xx=function(){},Yx=function(a,b){if(a!=null&&a.ic!=null)a=a.ic(a,b);else{var c=Yx[$APP.aa(a==null?null:a)];if(c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else if(c=Yx._,c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else throw $APP.ra("IEncodeClojure.-js-\x3eclj",a);}return a},$x=function(a){var b=$APP.Bc([$APP.Tk,!1]),c=$APP.J(b);c=$APP.C(c,$APP.Tk);var d=$APP.n(c)?$APP.Cg:$APP.sa;return function h(f){return(f!=null?$APP.Tb===
5
+ f.yc||(f.cc?0:$APP.pa(Xx,f)):$APP.pa(Xx,f))?Yx(f,$APP.Rd(Zx,b)):Tx(f)?$APP.qg($APP.he.i(h,f)):$APP.Ge(f)?new $APP.af(h($APP.Sa(f)),h($APP.Ta(f))):$APP.Pc(f)?$APP.hf.l(Sx(f),$APP.he.g(h),f):$APP.n($APP.na(f))?$APP.Jd($APP.wa(function(l,m){return $APP.Kd(l,h(m))},$APP.wb($APP.pe),f)):$APP.qa(f)===Object?$APP.Jd($APP.wa(function(l,m){var q=d.g?d.g(m):d.call(null,m);m=h($APP.k(f,m));return $APP.zb(l,q,m)},$APP.wb($APP.Zd),$APP.da(f))):f}(a)},ay=function(a){return/^[\s\xa0]*$/.test(a==null?"":String(a))},
6
+ by=function(a){return a==null||$APP.B.i(a,"")?$APP.eg:$APP.hf.l($APP.eg,$APP.Ji.i($APP.he.g($APP.rh),$APP.me($APP.de(ay))),$APP.oh(a,","))},cy=function(a){return $APP.Oc(a)?"":$APP.nh(",",$APP.cd(a))},dy=function(a,b){return b!=null&&$APP.z(a)>=b},ey=function(a,b,c){var d=b!=null&&$APP.M(b,"")?b.toLowerCase():null;return $APP.hf.l($APP.pe,$APP.Ji.l($APP.me($APP.de(function(e){e=$APP.J(e);e=$APP.C(e,$APP.Gh);return $APP.Zc(c,e)})),$APP.me($APP.n(d)?function(e){e=$APP.J(e);e=$APP.C(e,$APP.X);return $APP.M(-1,
7
+ e.toLowerCase().indexOf(d))}:Ux()),Wx()),a)},fy=function(a,b){return b!=null?$APP.be(function(c){return $APP.B.i($APP.Gh.g(c),b)?c:null},a):null},gy=function(a,b){if(b!=null&&$APP.M(b,"")){var c=a.toLowerCase().indexOf(b.toLowerCase());if($APP.M(c,-1))return b=c+$APP.z(b),new $APP.N(null,3,[$APP.Wn,a.substring(0,c),$APP.qk,a.substring(c,b),$APP.nm,a.substring(b)],null)}return null},hy=function(a){return document.createElement(a)},iy=function(a){var b=$APP.k(a,"__xMultiComboboxRefs");$APP.n(b)&&(b=
8
+ $APP.k(b,"slot").assignedElements({flatten:!0}),b=$APP.hf.l($APP.pe,$APP.Ji.i($APP.me(function(c){return $APP.B.i("OPTION",c.tagName)}),$APP.he.g(function(c){var d=c.getAttribute("value");return new $APP.N(null,2,[$APP.Gh,$APP.n(d)?d:c.textContent,$APP.X,c.textContent],null)})),$APP.Bc(b)),a.__xMultiComboboxOptions=b)},ky=function(a){a=new $APP.N(null,8,[$APP.Dh,a.getAttribute("value"),$APP.Xj,a.getAttribute("placeholder"),$APP.Mm,a.getAttribute("name"),$APP.Fh,a.hasAttribute("disabled"),$APP.cj,
9
+ a.hasAttribute("required"),$APP.Pj,a.hasAttribute("open"),$APP.vo,a.getAttribute("placement"),$APP.im,a.getAttribute("max")],null);var b=$APP.J(a);a=$APP.C(b,$APP.Dh);var c=$APP.C(b,$APP.Xj),d=$APP.C(b,$APP.Mm),e=$APP.C(b,$APP.Fh),f=$APP.C(b,$APP.cj),h=$APP.C(b,$APP.Pj),l=$APP.C(b,$APP.vo);b=$APP.C(b,$APP.im);a=by(a);c=$APP.n(c)?c:"";d=$APP.n(d)?d:"";e=$APP.E(e);f=$APP.E(f);h=$APP.E(h);l=$APP.Zc(jy,l)?l:"bottom-start";typeof b==="string"?(b=parseInt(b,10),b=$APP.p(isNaN(b))&&b>0?b:null):b=null;return new $APP.N(null,
10
+ 8,[$APP.Gh,a,$APP.Mn,c,$APP.Nk,d,$APP.Y,e,$APP.xj,f,$APP.ao,h,$APP.bl,l,$APP.em,b],null)},ly=function(a){var b=$APP.k(a,"__xMultiComboboxRefs");if($APP.n(b)){var c=$APP.k(b,"panel");b=$APP.k(b,"input");var d=$APP.k(a,"__xMultiComboboxOptions"),e=function(){var D=$APP.k(a,"__xMultiComboboxQuery");return $APP.n(D)?D:""}(),f=ky(a),h=$APP.Gh.g(f);f=$APP.em.g(f);f=dy(h,f);h=ey(d,e,h);d=function(){var D=$APP.k(a,"__xMultiComboboxActiveIdx");return $APP.n(D)?D:0}();d=$APP.Oc(h)?-1:$APP.Ii.i(d,$APP.z(h)-
11
+ 1);c.textContent="";if($APP.Oc(h))return e=hy("div"),e.setAttribute("part","empty-msg"),e.textContent="No matches",c.appendChild(e),b.removeAttribute("aria-activedescendant");h=$APP.t($APP.ee($APP.Ni,h));for(var l=null,m=0,q=0;;)if(q<m){var r=l.F(null,q),v=$APP.Hc(r,0,null),x=$APP.Hc(r,1,null);r=hy("div");var y=""+$APP.Q.g("x-mcb-opt-")+$APP.Q.g(v),A=gy($APP.X.g(x),e);r.setAttribute("part","option");r.setAttribute("role","option");r.setAttribute("id",y);$APP.ah(r,"data-value",$APP.Gh.g(x));f&&(r.setAttribute("data-disabled",
12
+ ""),r.setAttribute("aria-disabled","true"));$APP.B.i(v,d)&&r.setAttribute("data-active","");$APP.n(A)?(r.appendChild(document.createTextNode($APP.Wn.g(A))),v=hy("b"),v.textContent=$APP.qk.g(A),r.appendChild(v),r.appendChild(document.createTextNode($APP.nm.g(A)))):r.textContent=$APP.X.g(x);c.appendChild(r);q+=1}else if(h=$APP.t(h))$APP.Vc(h)?(m=$APP.Db(h),h=$APP.Eb(h),l=m,m=$APP.z(m)):(m=$APP.u(h),l=$APP.Hc(m,0,null),v=$APP.Hc(m,1,null),m=hy("div"),r=""+$APP.Q.g("x-mcb-opt-")+$APP.Q.g(l),q=gy($APP.X.g(v),
13
+ e),m.setAttribute("part","option"),m.setAttribute("role","option"),m.setAttribute("id",r),$APP.ah(m,"data-value",$APP.Gh.g(v)),f&&(m.setAttribute("data-disabled",""),m.setAttribute("aria-disabled","true")),$APP.B.i(l,d)&&m.setAttribute("data-active",""),$APP.n(q)?(m.appendChild(document.createTextNode($APP.Wn.g(q))),l=hy("b"),l.textContent=$APP.qk.g(q),m.appendChild(l),m.appendChild(document.createTextNode($APP.nm.g(q)))):m.textContent=$APP.X.g(v),c.appendChild(m),h=$APP.w(h),l=null,m=0),q=0;else break;
14
+ return d>=0?$APP.ah(b,"aria-activedescendant",""+$APP.Q.g("x-mcb-opt-")+$APP.Q.g(d)):b.removeAttribute("aria-activedescendant")}return null},my=function(a){var b=ky(a);if($APP.M($APP.k(a,"__xMultiComboboxModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.Gh),d=$APP.C(b,$APP.Mn),e=$APP.C(b,$APP.Y),f=$APP.C(b,$APP.ao),h=$APP.C(b,$APP.bl),l=$APP.k(a,"__xMultiComboboxRefs");if($APP.n(l)){var m=$APP.k(l,"input");l=$APP.k(l,"panel");m.placeholder=$APP.Oc(c)?d:"";m.disabled=e;$APP.ah(m,"aria-expanded",""+$APP.Q.g(f));
15
+ l.setAttribute("data-placement",h);$APP.n(f)||(m.value="");h=$APP.k(a,"__xMultiComboboxRefs");if($APP.n(h)){d=$APP.k(h,"chipArea");h=$APP.k(h,"input");for(m=$APP.k(a,"__xMultiComboboxOptions");;){var q=l=d.firstChild;if($APP.n($APP.n(q)?l!==h:q))d.removeChild(l);else break}l=$APP.t($APP.cd(c));q=null;for(var r=0,v=0;;)if(v<r){c=q.F(null,v);var x=fy(m,c);x=$APP.n(x)?$APP.X.g(x):c;var y=hy("x-chip");y.setAttribute("label",x);y.setAttribute("value",c);y.setAttribute("removable","");$APP.n(e)&&y.setAttribute("disabled",
16
+ "");d.insertBefore(y,h);v+=1}else if(c=$APP.t(l))l=c,$APP.Vc(l)?(q=$APP.Db(l),l=$APP.Eb(l),c=q,r=$APP.z(q),q=c):(c=$APP.u(l),q=fy(m,c),q=$APP.n(q)?$APP.X.g(q):c,r=hy("x-chip"),r.setAttribute("label",q),r.setAttribute("value",c),r.setAttribute("removable",""),$APP.n(e)&&r.setAttribute("disabled",""),d.insertBefore(r,h),l=$APP.w(l),q=null,r=0),v=0;else break}$APP.n(f)&&ly(a);a.__xMultiComboboxModel=b;a=void 0}else a=null}else a=null;return a},ny=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&
17
+ $APP.p(a.hasAttribute("open"))&&$APP.ch(a,"x-multi-combobox-toggle",{open:!0,source:b})?(a.__xMultiComboboxQuery="",a.__xMultiComboboxActiveIdx=0,a.setAttribute("open","")):null},oy=function(a,b){return $APP.n(a.hasAttribute("open"))&&$APP.ch(a,"x-multi-combobox-toggle",{open:!1,source:b})?(a.__xMultiComboboxQuery="",a.__xMultiComboboxActiveIdx=0,a.removeAttribute("open")):null},py=function(a,b){var c=ky(a),d=$APP.Gh.g(c);c=$APP.em.g(c);if($APP.Zc(d,b)||dy(d,c))return null;d=$APP.ud.i(d,b);c=$APP.bd($APP.cd(d));
18
+ return $APP.ch(a,"x-multi-combobox-change-request",{value:c,action:"add",item:b})?(a.__xMultiComboboxQuery="",a.__xMultiComboboxActiveIdx=0,b=$APP.k(a,"__xMultiComboboxRefs"),$APP.n(b)&&($APP.k(b,"input").value=""),a.setAttribute("value",cy(d)),$APP.P(a,"x-multi-combobox-change",{value:$APP.bd($APP.cd(d))})):null},qy=function(a,b){var c=$APP.Gh.g(ky(a));if($APP.Zc(c,b)){c=$APP.Gi.i(c,b);var d=$APP.bd($APP.cd(c));if($APP.ch(a,"x-multi-combobox-change-request",{value:d,action:"remove",item:b}))return $APP.Oc(c)?
19
+ a.removeAttribute("value"):a.setAttribute("value",cy(c)),$APP.P(a,"x-multi-combobox-change",{value:$APP.bd($APP.cd(c))})}return null},ry=function(a,b){var c=$APP.k(a,"__xMultiComboboxOptions"),d=function(){var f=$APP.k(a,"__xMultiComboboxQuery");return $APP.n(f)?f:""}(),e=$APP.Gh.g(ky(a));c=ey(c,d,e);c=$APP.z(c);d=function(){var f=$APP.k(a,"__xMultiComboboxActiveIdx");return $APP.n(f)?f:0}();b=$APP.B.i(b,$APP.el)?c===0?-1:$APP.od(($APP.n(d)?d:-1)+1,c):c===0?-1:$APP.od(($APP.n(d)?d:c)-1,c);a.__xMultiComboboxActiveIdx=
20
+ b;ly(a);b=$APP.k(a,"__xMultiComboboxRefs");return $APP.n(b)?(b=$APP.k(b,"panel").querySelector("[data-active]"),$APP.n(b)?b.scrollIntoView({block:"nearest"}):null):null},sy=function(a){var b=$APP.k(a,"__xMultiComboboxOptions"),c=function(){var e=$APP.k(a,"__xMultiComboboxQuery");return $APP.n(e)?e:""}(),d=$APP.Gh.g(ky(a));b=ey(b,c,d);b=$APP.Hc(b,function(){var e=$APP.k(a,"__xMultiComboboxActiveIdx");return $APP.n(e)?e:0}(),null);return $APP.n(b)?$APP.n(a.hasAttribute("disabled"))?null:py(a,$APP.Gh.g(b)):
21
+ null},ty=function(a){return{slotchange:function(){iy(a);a.__xMultiComboboxModel=null;return my(a)},inputFocus:function(){return ny(a,"focus")},inputInput:function(b){b=b.target.value;a.__xMultiComboboxQuery=b;a.__xMultiComboboxActiveIdx=0;$APP.n(a.hasAttribute("open"))||ny(a,"input");ly(a);return $APP.P(a,"x-multi-combobox-input",{query:b})},panelClick:function(b){b=b.target;b=$APP.n(b.hasAttribute("data-value"))?b:b.closest("[data-value]");return $APP.n($APP.n(b)?$APP.p(b.hasAttribute("data-disabled")):
22
+ b)?(b=b.getAttribute("data-value"),py(a,b)):null},inputKeydown:function(b){var c=b.key;if($APP.B.i(c,"ArrowDown"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?ry(a,$APP.el):ny(a,"keyboard");if($APP.B.i(c,"ArrowUp"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?ry(a,$APP.Zk):ny(a,"keyboard");if($APP.B.i(c,"Enter"))return b.preventDefault(),$APP.n(a.hasAttribute("open"))?sy(a):null;if($APP.B.i(c,"Escape")){if($APP.n(a.hasAttribute("open"))&&(b.preventDefault(),oy(a,"escape"),
23
+ b=$APP.k(a,"__xMultiComboboxRefs"),$APP.n(b)))return $APP.k(b,"input").focus()}else if($APP.B.i(c,"Backspace")){if(b=$APP.k(a,"__xMultiComboboxRefs"),$APP.n(b)&&$APP.B.i("",$APP.k(b,"input").value)&&(c=$APP.Gh.g(ky(a)),$APP.t(c)))return b=$APP.Ec($APP.cd(c)),qy(a,b)}else if($APP.B.i(c,"Home")){if($APP.n(a.hasAttribute("open")))return b.preventDefault(),a.__xMultiComboboxActiveIdx=0,ly(a)}else if($APP.B.i(c,"End")&&$APP.n(a.hasAttribute("open"))){b.preventDefault();b=$APP.k(a,"__xMultiComboboxOptions");
24
+ c=$APP.k(a,"__xMultiComboboxQuery");var d=$APP.n(c)?c:"";c=$APP.Gh.g(ky(a));b=$APP.z(ey(b,d,c));b=$APP.Hi.i(0,b-1);a.__xMultiComboboxActiveIdx=b;return ly(a)}return null},chipRemove:function(b){b=$APP.k(b.detail,"value");return $APP.n(b)?qy(a,b):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.Cc(b.composedPath()),b=$APP.be(function(c){return c===a},b),$APP.n(b)?null:oy(a,"outside-click")):null},panelPointerdown:function(b){return b.preventDefault()},chevronPointerdown:function(b){b.preventDefault();
25
+ if($APP.n(a.hasAttribute("open")))return oy(a,"pointer");ny(a,"pointer");b=$APP.k(a,"__xMultiComboboxRefs");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.p(a.contains(b))?oy(a,"focusout"):null):null}}},uy=function(a){var b=$APP.k(a,"__xMultiComboboxRefs");if($APP.n(b)){var c=$APP.k(a,"__xMultiComboboxHandlers");if($APP.n(c)){var d=$APP.k(b,"input"),e=$APP.k(b,"chipArea"),f=$APP.k(b,"chevron"),h=$APP.k(b,
26
+ "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("x-chip-remove",$APP.k(c,"chipRemove"));f.removeEventListener("pointerdown",$APP.k(c,"chevronPointerdown"));h.removeEventListener("pointerdown",$APP.k(c,"panelPointerdown"));h.removeEventListener("click",$APP.k(c,"panelClick"));a.removeEventListener("focusout",$APP.k(c,"focusout"));b.removeEventListener("slotchange",
27
+ $APP.k(c,"slotchange"))}}},vy=function(a){var b=$APP.k(a,"__xMultiComboboxHandlers");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},wy=function(a){a=$APP.k(a,"__xMultiComboboxHandlers");return $APP.n(a)?document.removeEventListener("click",$APP.k(a,"docClick")):null},yy=function(a){if(!$APP.n($APP.k(a,"__xMultiComboboxRefs"))){var b=a.attachShadow({mode:"open"}),c=hy("style"),
28
+ d=hy("div"),e=hy("div"),f=hy("input"),h=hy("span"),l=hy("div"),m=hy("slot");var q=$APP.k(xy,"n")+1;xy.n=q;q="x-mcb-lb-"+$APP.Q.g(q);c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-multi-combobox-bg:var(--x-color-surface,#ffffff);--x-multi-combobox-fg:var(--x-color-text,#0f172a);--x-multi-combobox-placeholder:var(--x-color-text-muted,#94a3b8);--x-multi-combobox-border:1px solid var(--x-color-border,#e2e8f0);--x-multi-combobox-border-hover:1px solid var(--x-color-border,#cbd5e1);--x-multi-combobox-border-focus:1px solid var(--x-color-focus-ring,#60a5fa);--x-multi-combobox-radius:var(--x-radius-md,6px);--x-multi-combobox-min-height:2.25rem;--x-multi-combobox-font-size:var(--x-font-size-sm,0.9375rem);--x-multi-combobox-padding:0.25rem 0.5rem;--x-multi-combobox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-multi-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.05));--x-multi-combobox-disabled-opacity:var(--x-opacity-disabled,0.55);--x-multi-combobox-chevron-color:var(--x-color-text-muted,#64748b);--x-multi-combobox-panel-bg:var(--x-color-bg,#ffffff);--x-multi-combobox-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-multi-combobox-panel-radius:var(--x-radius-md,8px);--x-multi-combobox-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-multi-combobox-panel-max-height:16rem;--x-multi-combobox-panel-offset:4px;--x-multi-combobox-option-padding:0.5rem 0.625rem;--x-multi-combobox-option-hover-bg:var(--x-color-surface-hover,#f1f5f9);--x-multi-combobox-option-active-bg:var(--x-color-primary,#3b82f6);--x-multi-combobox-option-active-fg:#ffffff;--x-multi-combobox-transition-duration:var(--x-transition-duration,150ms);--x-multi-combobox-transition-easing:var(--x-transition-easing,ease);--x-multi-combobox-chip-gap:0.25rem;}@media (prefers-color-scheme:dark){:host{--x-multi-combobox-bg:var(--x-color-surface,#1e293b);--x-multi-combobox-fg:var(--x-color-text,#e2e8f0);--x-multi-combobox-placeholder:var(--x-color-text-muted,#64748b);--x-multi-combobox-border:1px solid var(--x-color-border,#334155);--x-multi-combobox-border-hover:1px solid var(--x-color-border,#475569);--x-multi-combobox-border-focus:1px solid var(--x-color-focus-ring,#93c5fd);--x-multi-combobox-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-multi-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.2));--x-multi-combobox-chevron-color:var(--x-color-text-muted,#94a3b8);--x-multi-combobox-panel-bg:var(--x-color-bg,#1e293b);--x-multi-combobox-panel-border:1px solid var(--x-color-border,#334155);--x-multi-combobox-panel-shadow:var(--x-shadow-md,0 4px 24px rgba(0,0,0,0.4));--x-multi-combobox-option-hover-bg:var(--x-color-surface-hover,#334155);--x-multi-combobox-option-active-bg:var(--x-color-primary,#3b82f6);}}[part\x3dwrapper]{display:flex;align-items:center;min-height:var(--x-multi-combobox-min-height);background:var(--x-multi-combobox-bg);border:var(--x-multi-combobox-border);border-radius:var(--x-multi-combobox-radius);box-shadow:var(--x-multi-combobox-shadow);padding:var(--x-multi-combobox-padding);cursor:text;transition:border var(--x-multi-combobox-transition-duration) var(--x-multi-combobox-transition-easing),box-shadow var(--x-multi-combobox-transition-duration) var(--x-multi-combobox-transition-easing);}[part\x3dwrapper]:hover{border:var(--x-multi-combobox-border-hover);}:host(:focus-within) [part\x3dwrapper]{border:var(--x-multi-combobox-border-focus);box-shadow:0 0 0 2px var(--x-multi-combobox-focus-ring);}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-multi-combobox-disabled-opacity);cursor:default;pointer-events:none;}[part\x3dchip-area]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--x-multi-combobox-chip-gap);flex:1;min-width:0;}[part\x3dinput]{all:unset;flex:1;min-width:4rem;height:1.5rem;font-size:var(--x-multi-combobox-font-size);font-family:inherit;color:var(--x-multi-combobox-fg);}[part\x3dinput]::placeholder{color:var(--x-multi-combobox-placeholder);}[part\x3dchevron]{display:inline-flex;align-items:center;color:var(--x-multi-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-multi-combobox-panel-bg);border:var(--x-multi-combobox-panel-border);border-radius:var(--x-multi-combobox-panel-radius);box-shadow:var(--x-multi-combobox-panel-shadow);padding:0.25rem 0;max-height:var(--x-multi-combobox-panel-max-height);max-width:calc(100vw - 1rem);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scaleY(0.95);transition:opacity var(--x-multi-combobox-transition-duration) var(--x-multi-combobox-transition-easing),transform var(--x-multi-combobox-transition-duration) var(--x-multi-combobox-transition-easing),visibility 0s var(--x-multi-combobox-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scaleY(1);transition:opacity var(--x-multi-combobox-transition-duration) var(--x-multi-combobox-transition-easing),transform var(--x-multi-combobox-transition-duration) var(--x-multi-combobox-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-multi-combobox-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-multi-combobox-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-multi-combobox-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-multi-combobox-panel-offset));right:0;transform-origin:bottom right;}[part\x3doption]{padding:var(--x-multi-combobox-option-padding);font-size:var(--x-multi-combobox-font-size);font-family:inherit;color:var(--x-multi-combobox-fg);cursor:default;border-radius:4px;margin:0 0.25rem;}[part\x3doption]:hover{background:var(--x-multi-combobox-option-hover-bg);}[part\x3doption][data-active]{background:var(--x-multi-combobox-option-active-bg);color:var(--x-multi-combobox-option-active-fg);}[part\x3doption][data-active] b{color:inherit;}[part\x3doption][data-disabled]{opacity:0.4;pointer-events:none;}[part\x3doption] b{font-weight:700;}[part\x3dempty-msg]{padding:var(--x-multi-combobox-option-padding);font-size:var(--x-multi-combobox-font-size);color:var(--x-multi-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-multi-combobox-min-height:2.75rem;}[part\x3doption]{min-height:2.75rem;display:flex;align-items:center;}[part\x3dchevron]{width:2.75rem;height:2.75rem;justify-content:center;}}";
29
+ d.setAttribute("part","wrapper");e.setAttribute("part","chip-area");e.setAttribute("role","group");e.setAttribute("aria-label","Selected values");f.setAttribute("part","input");f.setAttribute("type","text");f.setAttribute("role","combobox");f.setAttribute("aria-expanded","false");f.setAttribute("aria-autocomplete","list");f.setAttribute("aria-controls",q);f.setAttribute("autocomplete","off");h.setAttribute("part","chevron");h.setAttribute("aria-hidden","true");h.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';
30
+ l.setAttribute("part","panel");l.setAttribute("role","listbox");l.setAttribute("id",q);l.setAttribute("aria-multiselectable","true");l.setAttribute("data-placement","bottom-start");e.appendChild(f);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(l);b.appendChild(m);a.__xMultiComboboxListboxId=q;a.__xMultiComboboxOptions=$APP.pe;a.__xMultiComboboxQuery="";a.__xMultiComboboxActiveIdx=0;a.__xMultiComboboxRefs={wrapper:d,chipArea:e,input:f,chevron:h,panel:l,slot:m}}uy(a);
31
+ wy(a);a.__xMultiComboboxHandlers=ty(a);h=$APP.k(a,"__xMultiComboboxRefs");$APP.n(h)&&(b=$APP.k(a,"__xMultiComboboxHandlers"),$APP.n(b)&&(c=$APP.k(h,"input"),d=$APP.k(h,"chipArea"),e=$APP.k(h,"chevron"),f=$APP.k(h,"panel"),h=$APP.k(h,"slot"),c.addEventListener("focus",$APP.k(b,"inputFocus")),c.addEventListener("input",$APP.k(b,"inputInput")),c.addEventListener("keydown",$APP.k(b,"inputKeydown")),d.addEventListener("x-chip-remove",$APP.k(b,"chipRemove")),e.addEventListener("pointerdown",$APP.k(b,"chevronPointerdown")),
32
+ f.addEventListener("pointerdown",$APP.k(b,"panelPointerdown")),f.addEventListener("click",$APP.k(b,"panelClick")),a.addEventListener("focusout",$APP.k(b,"focusout")),h.addEventListener("slotchange",$APP.k(b,"slotchange"))));iy(a);return my(a)},zy=function(a){uy(a);wy(a);a.__xMultiComboboxModel=null},Ay=function(a,b){return $APP.n($APP.k(a,"__xMultiComboboxRefs"))?(my(a),$APP.B.i(b,"open")?$APP.n(a.hasAttribute("open"))?vy(a):wy(a):null):null},By=function(a){Object.defineProperty(a,"value",{configurable:!0,
33
+ enumerable:!0,get:function(){var b=by(this.getAttribute("value"));b=$APP.cd(b);return $APP.bd(b)},set:function(b){b=typeof b==="string"?b:$APP.n($APP.na(b))?$APP.nh(",",$x(b)):"";return $APP.B.i(b,"")?this.removeAttribute("value"):this.setAttribute("value",b)}});$APP.fh(a,"placeholder","placeholder");$APP.fh(a,"name","name");$APP.fh(a,"placement","placement");$APP.dh(a,"disabled","disabled");$APP.dh(a,"required","required");$APP.dh(a,"open","open");$APP.gh(a,"max","max",null);a.show=function(){return ny(this,
34
+ "programmatic")};return a.hide=function(){return oy(this,"programmatic")}},Dy=function(){$APP.bi();return $APP.Yg("x-multi-combobox",new $APP.N(null,5,[$APP.Pg,Cy,$APP.Qg,yy,$APP.Rg,zy,$APP.Sg,Ay,$APP.Wg,By],null))},Zx=function Zx(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return Zx.B(0<c.length?new $APP.$b(c.slice(0),0,null):null)};
35
+ Zx.B=function(a){a=a instanceof $APP.$b&&a.u===0?a.j:$APP.ya(a);if(!$APP.ce(a.length))throw Error(["No value supplied for key: ",$APP.sa($APP.Ec(a))].join(""));return $APP.Yd(a)};Zx.J=0;Zx.I=function(a){return this.B($APP.t(a))};Vx.prototype.Jb=function(){return this.state};Vx.prototype.$=$APP.Tb;Vx.prototype.R=function(a,b,c){$APP.qb(b,"#object[cljs.core.Volatile ");$APP.Bg(new $APP.N(null,1,[$APP.cl,this.state],null),b,c);return $APP.qb(b,"]")};var jy=new $APP.O(null,new $APP.N(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Cy="value placeholder name disabled required open placement max".split(" ");
36
+ $APP.Yd(["x-multi-combobox-change-request",new $APP.N(null,2,[$APP.Fn,!0,$APP.Z,new $APP.N(null,3,[$APP.Gh,$APP.ak,new $APP.F(null,"action","action",-811238024),$APP.U,$APP.Bl,$APP.U],null)],null),"x-multi-combobox-change",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,1,[$APP.Gh,$APP.ak],null)],null),"x-multi-combobox-input",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,1,[$APP.Qj,$APP.U],null)],null),"x-multi-combobox-toggle",new $APP.N(null,2,[$APP.Fn,!0,$APP.Z,new $APP.N(null,2,[$APP.Bn,
37
+ $APP.T,$APP.Em,$APP.U],null)],null)]);var xy={n:0};$APP.ca("baredom.exports.x_multi_combobox.init",Dy);export const init=Dy;
package/dist/x-navbar.js CHANGED
@@ -1,14 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var RY=function(a,b,c){return typeof a==="string"&&$APP.I(b,a)?a:c},SY=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},TY=function(a){return a.assignedNodes({flatten:!0})},UY=function(a){return document.createElement(a)},aZ=function(a,b){var c=$APP.k(b,"base"),d=$APP.k(b,"bar"),e=$APP.k(b,"brand"),g=$APP.k(b,"start"),h=$APP.k(b,"actions"),l=$APP.k(b,"toggle"),m=$APP.k(b,"end"),p=$APP.k(b,"brand-slot"),q=$APP.k(b,"start-slot"),v=$APP.k(b,
3
- "actions-slot"),x=$APP.k(b,"toggle-slot");b=$APP.k(b,"end-slot");a=new $APP.Q(null,7,[$APP.U,a.getAttribute("label"),$APP.rl,a.getAttribute("orientation"),$APP.Vg,a.getAttribute("variant"),$APP.Hl,a.hasAttribute("sticky"),VY,a.hasAttribute("elevated"),$APP.ij,a.getAttribute("breakpoint"),WY,a.getAttribute("alignment")],null);var y=$APP.M(a);a=$APP.D(y,$APP.U);var A=$APP.D(y,$APP.rl),C=$APP.D(y,$APP.Vg),E=$APP.D(y,$APP.Hl),H=$APP.D(y,VY),G=$APP.D(y,$APP.ij);y=$APP.D(y,WY);a=new $APP.Q(null,7,[$APP.U,
4
- typeof a==="string"?a:null,$APP.rl,RY(A,XY,"horizontal"),$APP.Vg,RY(C,YY,"default"),$APP.Hl,$APP.F(E),VY,$APP.F(H),$APP.ij,RY(G,ZY,"md"),WY,RY(y,$Y,"space-between")],null);p=TY(p).length>0;q=TY(q).length>0;v=TY(v).length>0;x=TY(x).length>0;b=TY(b).length>0;A=$APP.M(a);A=$APP.D(A,$APP.U);A=$APP.Lg(A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Vg.g(a));c.setAttribute("data-orientation",$APP.rl.g(a));c.setAttribute("data-breakpoint",
5
- $APP.ij.g(a));d.setAttribute("data-alignment",WY.g(a));e.setAttribute("data-has-brand",p?"true":"false");g.setAttribute("data-has-start",q?"true":"false");h.setAttribute("data-has-actions",v?"true":"false");l.setAttribute("data-has-toggle",x?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},bZ=function(a,b){b.addEventListener("click",function(c){var d=$APP.k(a,"__xNavbarRefs"),e=c.target,g=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?
6
- "pointer":c instanceof KeyboardEvent?"keyboard":"programmatic";$APP.n(g)&&(g=g.getAttribute("href"),SY(a,"navigate",{href:$APP.n(g)?g:"",source:c}));a:{d=TY($APP.k(d,"brand-slot"));for(g=0;;)if(g<d.length){var h=d[g];var l=$APP.B.i(h,e);h=l?l:(l=$APP.B.i(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):l;if($APP.n(h)){e=!0;break a}g+=1}else{e=!1;break a}e=void 0}return e?SY(a,"brand-activate",{source:c}):null});b.addEventListener("focusin",function(c){c=c.target;if($APP.n($APP.n(c)?c.matches(":focus-visible"):
7
- c)){if($APP.n($APP.k(a,"__xNavbarFocusVisible")))return null;a.__xNavbarFocusVisible=!0;a.setAttribute("data-focus-visible-within","true");return SY(a,"focus-visible",{})}return null});b.addEventListener("focusout",function(c){c=c.relatedTarget;if($APP.n($APP.n(c)?a.contains(c):c))return null;a.__xNavbarFocusVisible=!1;return a.removeAttribute("data-focus-visible-within")})},cZ=function(a,b){function c(){return aZ(a,b)}$APP.k(b,"brand-slot").addEventListener("slotchange",c);$APP.k(b,"start-slot").addEventListener("slotchange",
8
- c);$APP.k(b,"default-slot").addEventListener("slotchange",c);$APP.k(b,"actions-slot").addEventListener("slotchange",c);$APP.k(b,"toggle-slot").addEventListener("slotchange",c);$APP.k(b,"end-slot").addEventListener("slotchange",c)},dZ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},eZ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,
9
- enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return $APP.n(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},fZ=function(a){dZ(a,"sticky","sticky");dZ(a,"elevated","elevated");eZ(a,"label","label");eZ(a,"variant","variant");eZ(a,"orientation","orientation");eZ(a,"alignment","alignment");eZ(a,"breakpoint","breakpoint")},hZ=function(){var a=class extends HTMLElement{};a.observedAttributes=gZ;a.prototype.connectedCallback=function(){var b=
10
- $APP.k(this,"__xNavbarRefs")==null;var c=$APP.k(this,"__xNavbarRefs");if(!$APP.n(c)){c=this.attachShadow({mode:"open"});var d=UY("style"),e=UY("nav"),g=UY("div"),h=UY("div"),l=UY("div"),m=UY("div"),p=UY("div"),q=UY("div"),v=UY("div"),x=UY("slot"),y=UY("slot"),A=UY("slot"),C=UY("slot"),E=UY("slot"),H=UY("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-navbar-height:4rem;--x-navbar-padding-inline:1rem;--x-navbar-gap:0.75rem;--x-navbar-bg:var(--x-color-surface,rgba(255,255,255,0.88));--x-navbar-color:var(--x-color-text,#0f172a);--x-navbar-border:var(--x-color-border,rgba(148,163,184,0.22));--x-navbar-shadow:var(--x-shadow-md,0 8px 24px rgba(15,23,42,0.08));--x-navbar-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-navbar-z-index:40;--x-navbar-radius:0;--x-navbar-transition-duration:var(--x-transition-duration,180ms);--x-navbar-transition-easing:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-navbar-align-items:center;}@media (prefers-color-scheme: dark){:host{--x-navbar-bg:var(--x-color-surface,rgba(15,23,42,0.84));--x-navbar-color:var(--x-color-text,#e5e7eb);--x-navbar-border:var(--x-color-border,rgba(51,65,85,0.9));--x-navbar-shadow:var(--x-shadow-md,0 14px 36px rgba(0,0,0,0.35));--x-navbar-focus-ring:var(--x-color-focus-ring,#93c5fd);}}:host([hidden]){display:none;}[part\x3d'base']{display:block;color:var(--x-navbar-color);background:var(--x-navbar-bg);border:0;border-bottom:1px solid var(--x-navbar-border);border-radius:var(--x-navbar-radius);box-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:background var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),border-color var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),box-shadow var(--x-navbar-transition-duration) var(--x-navbar-transition-easing);}:host([sticky]) [part\x3d'base']{position:sticky;top:0;z-index:var(--x-navbar-z-index);}:host([elevated]) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}[part\x3d'base'][data-variant\x3d'subtle']{background:transparent;border-bottom-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}[part\x3d'base'][data-variant\x3d'inverted']{background:#0f172a;color:#f8fafc;border-bottom-color:#1e293b;}@media (prefers-color-scheme: dark){[part\x3d'base'][data-variant\x3d'inverted']{background:#020617;color:#f8fafc;border-bottom-color:#172033;}}[part\x3d'base'][data-variant\x3d'transparent']{background:transparent;border-bottom-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}[part\x3d'bar']{display:grid;grid-template-columns:auto auto 1fr auto auto auto;align-items:var(--x-navbar-align-items, center);gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}[part\x3d'bar'][data-alignment\x3d'start']{justify-items:start;}[part\x3d'bar'][data-alignment\x3d'center']{justify-items:center;}[part\x3d'bar'][data-alignment\x3d'space-between']{justify-items:stretch;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'bar']{grid-template-columns:1fr;grid-auto-rows:auto;align-items:var(--x-navbar-align-items, center);padding-block:0.75rem;}[part\x3d'brand'],[part\x3d'start'],[part\x3d'nav'],[part\x3d'actions'],[part\x3d'toggle'],[part\x3d'end']{display:flex;align-items:inherit;min-inline-size:0;}[part\x3d'nav']{gap:var(--x-navbar-gap);}[part\x3d'actions'],[part\x3d'end'],[part\x3d'toggle']{justify-self:end;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'actions'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'end'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'toggle']{justify-self:start;}[part\x3d'brand'][data-has-brand\x3d'false'],[part\x3d'start'][data-has-start\x3d'false'],[part\x3d'actions'][data-has-actions\x3d'false'],[part\x3d'toggle'][data-has-toggle\x3d'false'],[part\x3d'end'][data-has-end\x3d'false']{display:none;}slot[name\x3d'brand'],slot[name\x3d'start'],slot[name\x3d'actions'],slot[name\x3d'toggle'],slot[name\x3d'end']{display:contents;}slot{display:contents;}:host(:focus-within) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}:host([data-focus-visible-within\x3d'true']) [part\x3d'base']{box-shadow:0 0 0 2px var(--x-navbar-focus-ring), var(--x-navbar-shadow);}@media (max-width:640px){:host(:not([orientation\x3dvertical])) [part\x3d'bar']{display:flex;align-items:center;gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}:host(:not([orientation\x3dvertical])) [part\x3d'brand']{flex:1;}:host(:not([orientation\x3dvertical])) [part\x3d'start'],:host(:not([orientation\x3dvertical])) [part\x3d'nav'],:host(:not([orientation\x3dvertical])) [part\x3d'actions'],:host(:not([orientation\x3dvertical])) [part\x3d'end']{display:none;}}@media (prefers-reduced-motion: reduce){[part\x3d'base']{transition:none;}}";
11
- e.setAttribute("part","base");g.setAttribute("part","bar");h.setAttribute("part","brand");l.setAttribute("part","start");m.setAttribute("part","nav");p.setAttribute("part","actions");q.setAttribute("part","toggle");v.setAttribute("part","end");x.setAttribute("name","brand");y.setAttribute("name","start");C.setAttribute("name","actions");E.setAttribute("name","toggle");H.setAttribute("name","end");h.appendChild(x);l.appendChild(y);m.appendChild(A);p.appendChild(C);q.appendChild(E);v.appendChild(H);
12
- g.appendChild(h);g.appendChild(l);g.appendChild(m);g.appendChild(p);g.appendChild(q);g.appendChild(v);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xNavbarRefs=c={"end-slot":H,bar:g,start:l,toggle:q,actions:p,brand:h,"default-slot":A,root:c,"brand-slot":x,"start-slot":y,"actions-slot":C,"toggle-slot":E,end:v,base:e,nav:m}}b&&(this.__xNavbarFocusVisible=!1,bZ(this,$APP.k(c,"base")),cZ(this,c));return aZ(this,c)};a.prototype.disconnectedCallback=function(){this.__xNavbarFocusVisible=!1};
13
- a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xNavbarRefs");return $APP.n(b)?aZ(this,b):null};fZ(a.prototype);return a},iZ=function(){$APP.n(customElements.get("x-navbar"))||customElements.define("x-navbar",hZ());return null},VY=new $APP.K(null,"elevated","elevated",-7323953),WY=new $APP.K(null,"alignment","alignment",1040093386);var XY=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),YY=new $APP.S(null,new $APP.Q(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),ZY=new $APP.S(null,new $APP.Q(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),$Y=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"space-between",null],null),null),gZ="label orientation variant sticky elevated breakpoint alignment".split(" ");
14
- $APP.Pd(["focus-visible",new $APP.Q(null,1,[$APP.V,$APP.Qd],null),"navigate",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.an,$APP.Y,$APP.sl,$APP.Y],null)],null),"brand-activate",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[$APP.sl,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_navbar.init",iZ);export const init=iZ;
2
+ var d2=function(a,b,c){return typeof a==="string"&&$APP.Zc(b,a)?a:c},e2=function(a){return a.assignedNodes({flatten:!0})},f2=function(a){return document.createElement(a)},m2=function(a,b){var c=$APP.k(b,"base"),d=$APP.k(b,"bar"),e=$APP.k(b,"brand"),f=$APP.k(b,"start"),h=$APP.k(b,"actions"),l=$APP.k(b,"toggle"),m=$APP.k(b,"end"),q=$APP.k(b,"brand-slot"),r=$APP.k(b,"start-slot"),v=$APP.k(b,"actions-slot"),x=$APP.k(b,"toggle-slot");b=$APP.k(b,"end-slot");a=new $APP.N(null,7,[$APP.X,a.getAttribute("label"),
3
+ $APP.Cm,a.getAttribute("orientation"),$APP.ii,a.getAttribute("variant"),$APP.Zm,a.hasAttribute("sticky"),g2,a.hasAttribute("elevated"),$APP.rk,a.getAttribute("breakpoint"),h2,a.getAttribute("alignment")],null);var y=$APP.J(a);a=$APP.C(y,$APP.X);var A=$APP.C(y,$APP.Cm),D=$APP.C(y,$APP.ii),G=$APP.C(y,$APP.Zm),I=$APP.C(y,g2),H=$APP.C(y,$APP.rk);y=$APP.C(y,h2);a=new $APP.N(null,7,[$APP.X,typeof a==="string"?a:null,$APP.Cm,d2(A,i2,"horizontal"),$APP.ii,d2(D,j2,"default"),$APP.Zm,$APP.E(G),g2,$APP.E(I),
4
+ $APP.rk,d2(H,k2,"md"),h2,d2(y,l2,"space-between")],null);q=e2(q).length>0;r=e2(r).length>0;v=e2(v).length>0;x=e2(x).length>0;b=e2(b).length>0;A=$APP.J(a);A=$APP.C(A,$APP.X);A=$APP.th(A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.ii.g(a));c.setAttribute("data-orientation",$APP.Cm.g(a));c.setAttribute("data-breakpoint",$APP.rk.g(a));d.setAttribute("data-alignment",h2.g(a));e.setAttribute("data-has-brand",q?"true":"false");f.setAttribute("data-has-start",
5
+ r?"true":"false");h.setAttribute("data-has-actions",v?"true":"false");l.setAttribute("data-has-toggle",x?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},n2=function(a,b){b.addEventListener("click",function(c){var d=$APP.k(a,"__xNavbarRefs"),e=c.target,f=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?"pointer":c instanceof KeyboardEvent?"keyboard":"programmatic";$APP.n(f)&&(f=f.getAttribute("href"),$APP.P(a,"navigate",{href:$APP.n(f)?
6
+ f:"",source:c}));a:{d=e2($APP.k(d,"brand-slot"));for(f=0;;)if(f<d.length){var h=d[f];var l=$APP.B.i(h,e);h=l?l:(l=$APP.B.i(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):l;if($APP.n(h)){e=!0;break a}f+=1}else{e=!1;break a}e=void 0}return e?$APP.P(a,"brand-activate",{source:c}):null});b.addEventListener("focusin",function(c){c=c.target;if($APP.n($APP.n(c)?c.matches(":focus-visible"):c)){if($APP.n($APP.k(a,"__xNavbarFocusVisible")))return null;a.__xNavbarFocusVisible=!0;a.setAttribute("data-focus-visible-within",
7
+ "true");return $APP.P(a,"focus-visible",{})}return null});b.addEventListener("focusout",function(c){c=c.relatedTarget;if($APP.n($APP.n(c)?a.contains(c):c))return null;a.__xNavbarFocusVisible=!1;return a.removeAttribute("data-focus-visible-within")})},o2=function(a,b){function c(){return m2(a,b)}$APP.k(b,"brand-slot").addEventListener("slotchange",c);$APP.k(b,"start-slot").addEventListener("slotchange",c);$APP.k(b,"default-slot").addEventListener("slotchange",c);$APP.k(b,"actions-slot").addEventListener("slotchange",
8
+ c);$APP.k(b,"toggle-slot").addEventListener("slotchange",c);$APP.k(b,"end-slot").addEventListener("slotchange",c)},p2=function(a){var b=$APP.k(a,"__xNavbarRefs")==null;var c=$APP.k(a,"__xNavbarRefs");if(!$APP.n(c)){c=a.attachShadow({mode:"open"});var d=f2("style"),e=f2("nav"),f=f2("div"),h=f2("div"),l=f2("div"),m=f2("div"),q=f2("div"),r=f2("div"),v=f2("div"),x=f2("slot"),y=f2("slot"),A=f2("slot"),D=f2("slot"),G=f2("slot"),I=f2("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-navbar-height:4rem;--x-navbar-padding-inline:1rem;--x-navbar-gap:0.75rem;--x-navbar-bg:var(--x-color-surface,rgba(255,255,255,0.88));--x-navbar-color:var(--x-color-text,#0f172a);--x-navbar-border:var(--x-color-border,rgba(148,163,184,0.22));--x-navbar-shadow:var(--x-shadow-md,0 8px 24px rgba(15,23,42,0.08));--x-navbar-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-navbar-z-index:40;--x-navbar-radius:0;--x-navbar-transition-duration:var(--x-transition-duration,180ms);--x-navbar-transition-easing:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-navbar-align-items:center;}@media (prefers-color-scheme: dark){:host{--x-navbar-bg:var(--x-color-surface,rgba(15,23,42,0.84));--x-navbar-color:var(--x-color-text,#e5e7eb);--x-navbar-border:var(--x-color-border,rgba(51,65,85,0.9));--x-navbar-shadow:var(--x-shadow-md,0 14px 36px rgba(0,0,0,0.35));--x-navbar-focus-ring:var(--x-color-focus-ring,#93c5fd);}}:host([hidden]){display:none;}[part\x3d'base']{display:block;color:var(--x-navbar-color);background:var(--x-navbar-bg);border:0;border-bottom:1px solid var(--x-navbar-border);border-radius:var(--x-navbar-radius);box-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:background var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),border-color var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),box-shadow var(--x-navbar-transition-duration) var(--x-navbar-transition-easing);}:host([sticky]) [part\x3d'base']{position:sticky;top:0;z-index:var(--x-navbar-z-index);}:host([elevated]) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}[part\x3d'base'][data-variant\x3d'subtle']{background:transparent;border-bottom-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}[part\x3d'base'][data-variant\x3d'inverted']{background:#0f172a;color:#f8fafc;border-bottom-color:#1e293b;}@media (prefers-color-scheme: dark){[part\x3d'base'][data-variant\x3d'inverted']{background:#020617;color:#f8fafc;border-bottom-color:#172033;}}[part\x3d'base'][data-variant\x3d'transparent']{background:transparent;border-bottom-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}[part\x3d'bar']{display:grid;grid-template-columns:auto auto 1fr auto auto auto;align-items:var(--x-navbar-align-items, center);gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}[part\x3d'bar'][data-alignment\x3d'start']{justify-items:start;}[part\x3d'bar'][data-alignment\x3d'center']{justify-items:center;}[part\x3d'bar'][data-alignment\x3d'space-between']{justify-items:stretch;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'bar']{grid-template-columns:1fr;grid-auto-rows:auto;align-items:var(--x-navbar-align-items, center);padding-block:0.75rem;}[part\x3d'brand'],[part\x3d'start'],[part\x3d'nav'],[part\x3d'actions'],[part\x3d'toggle'],[part\x3d'end']{display:flex;align-items:inherit;min-inline-size:0;}[part\x3d'nav']{gap:var(--x-navbar-gap);}[part\x3d'actions'],[part\x3d'end'],[part\x3d'toggle']{justify-self:end;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'actions'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'end'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'toggle']{justify-self:start;}[part\x3d'brand'][data-has-brand\x3d'false'],[part\x3d'start'][data-has-start\x3d'false'],[part\x3d'actions'][data-has-actions\x3d'false'],[part\x3d'toggle'][data-has-toggle\x3d'false'],[part\x3d'end'][data-has-end\x3d'false']{display:none;}slot[name\x3d'brand'],slot[name\x3d'start'],slot[name\x3d'actions'],slot[name\x3d'toggle'],slot[name\x3d'end']{display:contents;}slot{display:contents;}:host(:focus-within) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}:host([data-focus-visible-within\x3d'true']) [part\x3d'base']{box-shadow:0 0 0 2px var(--x-navbar-focus-ring), var(--x-navbar-shadow);}@media (max-width:640px){:host(:not([orientation\x3dvertical])) [part\x3d'bar']{display:flex;align-items:center;gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}:host(:not([orientation\x3dvertical])) [part\x3d'brand']{flex:1;}:host(:not([orientation\x3dvertical])) [part\x3d'start'],:host(:not([orientation\x3dvertical])) [part\x3d'nav'],:host(:not([orientation\x3dvertical])) [part\x3d'actions'],:host(:not([orientation\x3dvertical])) [part\x3d'end']{display:none;}}@media (prefers-reduced-motion: reduce){[part\x3d'base']{transition:none;}}";
9
+ e.setAttribute("part","base");f.setAttribute("part","bar");h.setAttribute("part","brand");l.setAttribute("part","start");m.setAttribute("part","nav");q.setAttribute("part","actions");r.setAttribute("part","toggle");v.setAttribute("part","end");x.setAttribute("name","brand");y.setAttribute("name","start");D.setAttribute("name","actions");G.setAttribute("name","toggle");I.setAttribute("name","end");h.appendChild(x);l.appendChild(y);m.appendChild(A);q.appendChild(D);r.appendChild(G);v.appendChild(I);
10
+ f.appendChild(h);f.appendChild(l);f.appendChild(m);f.appendChild(q);f.appendChild(r);f.appendChild(v);e.appendChild(f);c.appendChild(d);c.appendChild(e);c={"end-slot":I,bar:f,start:l,toggle:r,actions:q,brand:h,"default-slot":A,root:c,"brand-slot":x,"start-slot":y,"actions-slot":D,"toggle-slot":G,end:v,base:e,nav:m};a.__xNavbarRefs=c}b&&(a.__xNavbarFocusVisible=!1,n2(a,$APP.k(c,"base")),o2(a,c));return m2(a,c)},q2=function(a){a.__xNavbarFocusVisible=!1},r2=function(a){var b=$APP.k(a,"__xNavbarRefs");
11
+ return $APP.n(b)?m2(a,b):null},t2=function(a){return $APP.jh(a,s2)},v2=function(){return $APP.Yg("x-navbar",new $APP.N(null,5,[$APP.Pg,u2,$APP.Qg,p2,$APP.Rg,q2,$APP.Sg,r2,$APP.Wg,t2],null))},g2=new $APP.F(null,"elevated","elevated",-7323953),h2=new $APP.F(null,"alignment","alignment",1040093386);var i2=new $APP.O(null,new $APP.N(null,2,["vertical",null,"horizontal",null],null),null),j2=new $APP.O(null,new $APP.N(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),k2=new $APP.O(null,new $APP.N(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),l2=new $APP.O(null,new $APP.N(null,3,["center",null,"start",null,"space-between",null],null),null),u2="label orientation variant sticky elevated breakpoint alignment".split(" "),s2=new $APP.N(null,7,[$APP.Zm,
12
+ new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"sticky"],null),g2,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"elevated"],null),$APP.X,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"label",$APP.ih,""],null),$APP.ii,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"variant",$APP.ih,""],null),$APP.Cm,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"orientation",$APP.ih,""],null),h2,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"alignment",$APP.ih,""],null),$APP.rk,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"breakpoint",$APP.ih,""],null)],null);
13
+ $APP.Yd(["focus-visible",new $APP.N(null,1,[$APP.Z,$APP.Zd],null),"navigate",new $APP.N(null,1,[$APP.Z,new $APP.N(null,2,[$APP.no,$APP.U,$APP.Em,$APP.U],null)],null),"brand-activate",new $APP.N(null,1,[$APP.Z,new $APP.N(null,1,[$APP.Em,$APP.U],null)],null)]);$APP.ca("baredom.exports.x_navbar.init",v2);export const init=v2;