@vanelsas/baredom 1.0.0-rc.4 → 1.1.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 (70) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +11 -3
  3. package/dist/base.js +368 -349
  4. package/dist/x-alert.js +18 -18
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +14 -14
  9. package/dist/x-button.js +16 -16
  10. package/dist/x-cancel-dialogue.js +17 -17
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +47 -47
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +8 -8
  15. package/dist/x-collapse.js +11 -11
  16. package/dist/x-command-palette.js +31 -31
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -20
  19. package/dist/x-copy.js +23 -23
  20. package/dist/x-currency-field.js +23 -23
  21. package/dist/x-date-picker.js +39 -39
  22. package/dist/x-divider.js +12 -12
  23. package/dist/x-drawer.js +12 -12
  24. package/dist/x-dropdown.js +10 -10
  25. package/dist/x-fieldset.js +6 -6
  26. package/dist/x-file-download.js +7 -7
  27. package/dist/x-form-field.js +17 -17
  28. package/dist/x-form.js +9 -9
  29. package/dist/x-gaussian-blur.js +33 -0
  30. package/dist/x-grid.js +7 -7
  31. package/dist/x-kinetic-typography.js +62 -0
  32. package/dist/x-menu-item.js +10 -10
  33. package/dist/x-menu.js +10 -10
  34. package/dist/x-modal.js +13 -13
  35. package/dist/x-navbar.js +13 -13
  36. package/dist/x-notification-center.js +10 -10
  37. package/dist/x-organic-divider.js +20 -0
  38. package/dist/x-organic-shape.js +15 -0
  39. package/dist/x-pagination.js +16 -16
  40. package/dist/x-popover.js +15 -15
  41. package/dist/x-progress-circle.js +10 -10
  42. package/dist/x-progress.js +11 -11
  43. package/dist/x-radio.js +11 -11
  44. package/dist/x-ripple-effect.js +14 -0
  45. package/dist/x-scroll-parallax.js +20 -0
  46. package/dist/x-scroll-story.js +38 -0
  47. package/dist/x-scroll-timeline.js +51 -0
  48. package/dist/x-scroll.js +43 -0
  49. package/dist/x-search-field.js +14 -14
  50. package/dist/x-select.js +9 -9
  51. package/dist/x-sidebar.js +16 -16
  52. package/dist/x-skeleton.js +6 -7
  53. package/dist/x-slider.js +16 -16
  54. package/dist/x-spacer.js +5 -5
  55. package/dist/x-spinner.js +5 -5
  56. package/dist/x-stat.js +11 -11
  57. package/dist/x-stepper.js +16 -16
  58. package/dist/x-switch.js +10 -10
  59. package/dist/x-tab.js +7 -7
  60. package/dist/x-table-cell.js +21 -21
  61. package/dist/x-table-row.js +10 -10
  62. package/dist/x-table.js +14 -14
  63. package/dist/x-tabs.js +11 -12
  64. package/dist/x-text-area.js +19 -19
  65. package/dist/x-timeline-item.js +23 -23
  66. package/dist/x-timeline.js +9 -9
  67. package/dist/x-toast.js +23 -23
  68. package/dist/x-toaster.js +8 -8
  69. package/dist/x-typography.js +11 -0
  70. package/package.json +43 -2
@@ -0,0 +1,51 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var ur=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.zg.h(0,$APP.Ag.h(1,a))):.5},vr=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.zg.h(1,$APP.Ag.h(1E3,a))):50},wr=function(a,b){switch(a){case "alternating":return $APP.Qc(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},xr=function(a,b){var c=$APP.B(a);if(c===0)return-1;for(var d=0,e=-1,g=-1;;){if(d>=c)return e>=0?
3
+ e:g;var h=$APP.bc(a,d),k=$APP.O(h);h=$APP.I(k,$APP.Fh);k=$APP.I(k,$APP.hh);e=h<=b&&k>b?d:e;g=h<=b?d:g;d+=1}},yr=function(a,b,c){return b<=0?0:$APP.zg.h(0,$APP.Ag.h(1,(c-a)/b))},Ar=function(a,b,c){var d=$APP.B(a);if(d===0)return"";if($APP.C.h(d,1))return a=$APP.w(a),a=$APP.O(a),a=$APP.I(a,$APP.Ui),"M "+$APP.T.g(c)+" "+$APP.T.g(a);var e=$APP.w(a),g=$APP.Ui.g(e);e=0;for(g=new $APP.Zd(null,1,5,$APP.$d,["M "+$APP.T.g(c)+" "+$APP.T.g(g)],null);;){if(e>=d-1)return $APP.rg(g);var h=$APP.bc(a,e),k=$APP.bc(a,
4
+ e+1),m=$APP.Ui.g(h),p=$APP.Ui.g(k);h=zr.g(h);var r=zr.g(k);k=$APP.C.h(h,"left")?-b:b;r=$APP.C.h(r,"left")?-b:b;h=m+(p-m)*.33;r=c+r;m+=(p-m)*.66;var v=c;e+=1;g=$APP.jf.h(g,"C "+$APP.T.g(c+k)+" "+$APP.T.g(h)+" "+$APP.T.g(r)+" "+$APP.T.g(m)+" "+$APP.T.g(v)+" "+$APP.T.g(p))}},Ir=function(a){var b=$APP.l(a,"__xScrollTimelineRefs");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"),
5
+ h=document.createElement("div"),k=document.createElementNS("http://www.w3.org/2000/svg","svg"),m=document.createElementNS("http://www.w3.org/2000/svg","path"),p=document.createElementNS("http://www.w3.org/2000/svg","path"),r=document.createElement("div"),v=document.createElement("slot"),x=document.createElement("div"),y=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-timeline-track-color:rgba(0,0,0,0.12);--x-scroll-timeline-track-fill-color:#3b82f6;--x-scroll-timeline-track-width:3px;--x-scroll-timeline-marker-size:14px;--x-scroll-timeline-marker-color:rgba(0,0,0,0.15);--x-scroll-timeline-marker-active-color:#3b82f6;--x-scroll-timeline-marker-border-color:#3b82f6;--x-scroll-timeline-entry-gap:2rem;--x-scroll-timeline-date-color:rgba(0,0,0,0.5);--x-scroll-timeline-date-font-size:0.8125rem;--x-scroll-timeline-transition-duration:300ms;--x-scroll-timeline-curve-amplitude:60;--x-scroll-timeline-disabled-opacity:0.55;}@media (prefers-color-scheme:dark){:host{--x-scroll-timeline-track-color:rgba(255,255,255,0.12);--x-scroll-timeline-marker-color:rgba(255,255,255,0.18);--x-scroll-timeline-date-color:rgba(255,255,255,0.5);}}[part\x3dcontainer]{position:relative;padding:0;}[part\x3dtrack]{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:var(--x-scroll-timeline-track-width);pointer-events:none;z-index:1;}:host([data-layout\x3dleft]) [part\x3dtrack]{left:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}:host([data-layout\x3dright]) [part\x3dtrack]{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}[part\x3dtrack-line]{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--x-scroll-timeline-track-color);border-radius:999px;}[part\x3dtrack-fill]{position:absolute;top:0;left:0;right:0;height:0%;background:var(--x-scroll-timeline-track-fill-color);border-radius:999px;transition:height 60ms linear;}[part\x3dtrack-svg]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}:host([data-track\x3dcurved]) [part\x3dtrack-line],:host([data-track\x3dcurved]) [part\x3dtrack-fill]{display:none;}:host([data-track\x3dcurved]) [part\x3dtrack-svg]{display:block;}[part\x3dtrack-path]{fill:none;stroke:var(--x-scroll-timeline-track-color);stroke-width:3px;stroke-linecap:round;}[part\x3dtrack-fill-path]{fill:none;stroke:var(--x-scroll-timeline-track-fill-color);stroke-width:3px;stroke-linecap:round;transition:stroke-dashoffset 60ms linear;}[part\x3dentries]{position:relative;z-index:2;}::slotted(*){display:block;margin-bottom:var(--x-scroll-timeline-entry-gap);opacity:0.4;transition:opacity var(--x-scroll-timeline-transition-duration) ease;}::slotted(:last-child){margin-bottom:0;}::slotted([data-active]){opacity:1;}:host([data-layout\x3dalternating]) ::slotted(*){width:calc(50% - var(--x-scroll-timeline-marker-size));}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dleft]){margin-left:0;margin-right:auto;text-align:right;padding-right:1.5rem;}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dright]){margin-left:auto;margin-right:0;text-align:left;padding-left:1.5rem;}:host([data-layout\x3dleft]) ::slotted(*){margin-left:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;}:host([data-layout\x3dright]) ::slotted(*){margin-right:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;text-align:right;}.tl-marker{position:absolute;z-index:3;width:var(--x-scroll-timeline-marker-size);height:var(--x-scroll-timeline-marker-size);border-radius:50%;background:var(--x-scroll-timeline-marker-color);border:2px solid transparent;transform:translate(-50%,-50%);transition:background var(--x-scroll-timeline-transition-duration) ease,border-color var(--x-scroll-timeline-transition-duration) ease,box-shadow var(--x-scroll-timeline-transition-duration) ease;}.tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);box-shadow:0 0 0 3px rgba(59,130,246,0.25);}:host([data-marker\x3dring]) .tl-marker{background:transparent;border:2px solid var(--x-scroll-timeline-marker-color);}:host([data-marker\x3dring]) .tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);}:host([data-marker\x3dnone]) .tl-marker{display:none;}.tl-marker{left:50%;}:host([data-layout\x3dleft]) .tl-marker{left:calc(var(--x-scroll-timeline-marker-size) / 2);}:host([data-layout\x3dright]) .tl-marker{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:translate(50%,-50%);}.tl-date{position:absolute;z-index:3;font-size:var(--x-scroll-timeline-date-font-size);color:var(--x-scroll-timeline-date-color);white-space:nowrap;transform:translateY(-50%);transition:color var(--x-scroll-timeline-transition-duration) ease;}.tl-date[data-active]{color:var(--x-scroll-timeline-marker-active-color);font-weight:600;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dleft]{left:calc(50% + var(--x-scroll-timeline-marker-size));padding-left:0.5rem;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dright]{right:calc(50% + var(--x-scroll-timeline-marker-size));padding-right:0.5rem;text-align:right;}:host([data-layout\x3dleft]) .tl-date{left:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);}:host([data-layout\x3dright]) .tl-date{right:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);text-align:right;}:host([disabled]){opacity:var(--x-scroll-timeline-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;z-index:4;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}.tl-marker{transition:none !important;}.tl-date{transition:none !important;}[part\x3dtrack-fill]{transition:none !important;}[part\x3dtrack-fill-path]{transition:none !important;}}";
6
+ d.setAttribute("part","container");d.setAttribute("role","feed");e.setAttribute("part","track");g.setAttribute("part","track-line");h.setAttribute("part","track-fill");k.setAttribute("part","track-svg");k.setAttribute("aria-hidden","true");k.setAttribute("focusable","false");m.setAttribute("part","track-path");p.setAttribute("part","track-fill-path");p.setAttribute("pathLength","1");k.appendChild(m);k.appendChild(p);e.appendChild(g);e.appendChild(h);r.setAttribute("part","entries");r.appendChild(v);
7
+ x.setAttribute("part","indicator");d.appendChild(e);d.appendChild(r);d.appendChild(k);d.appendChild(x);y.setAttribute("part","live");y.setAttribute("aria-live","polite");y.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(y);b=$APP.ff([$APP.Si,Br,Cr,Dr,Er,Fr,$APP.Xh,$APP.xj,Gr,$APP.Vh,Hr,$APP.zi],[v,k,p,r,m,g,b,d,x,y,h,e]);a.__xScrollTimelineRefs=b;return $APP.l(a,"__xScrollTimelineRefs")},Qr=function(a){a=$APP.ff([$APP.Ch,Jr,$APP.Oj,$APP.yj,$APP.dh,$APP.Yh,$APP.hi,
8
+ Kr,$APP.Bi,$APP.wj,Lr],[a.getAttribute("label"),a.getAttribute("marker"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,a.getAttribute("track"),$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,$APP.n(a.hasAttribute("no-progress"))?"":null]);var b=$APP.O(a);a=$APP.I(b,$APP.Bi);var c=$APP.I(b,$APP.wj),d=$APP.I(b,Lr),e=$APP.I(b,
9
+ $APP.Ch),g=$APP.I(b,Jr),h=$APP.I(b,$APP.Oj),k=$APP.I(b,$APP.yj),m=$APP.I(b,$APP.dh),p=$APP.I(b,$APP.Yh),r=$APP.I(b,$APP.hi);b=$APP.I(b,Kr);p=typeof p==="string"?p.trim().toLowerCase():null;p=$APP.M(Mr,p)?p:"alternating";g=typeof g==="string"?g.trim().toLowerCase():null;g=$APP.M(Nr,g)?g:"dot";m=ur(m);e=$APP.n(e)?e:"";h=vr(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.M(Or,b)?b:"straight";return $APP.ff([$APP.wk,$APP.zh,$APP.Qh,Pr,$APP.jj,$APP.W,$APP.ai,$APP.V,$APP.Qj,$APP.zi,$APP.di],
10
+ [p,g,c!=null,d!=null,m,e,r!=null,a!=null,h,b,k!=null])},Rr=function(a){a=Ir(a);a=$APP.O(a);return $APP.I(a,$APP.Si).assignedElements()},Sr=function(){return $APP.K(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Tr=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.P(a,"")?a:null},Ur=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Lg(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},Vr=function(a,b){a=$APP.O($APP.l(a,"__xScrollTimelineRefs"));var c=
11
+ $APP.I(a,$APP.Vh);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},Wr=function(a,b){for(var c=a.length,d=0;;)if(d<c){var e=a[d];e.setAttribute("data-side",wr(b,d));e.setAttribute("data-index",""+$APP.T.g(d));d+=1}else break},Xr=function(a){a=Rr(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.removeAttribute("data-active");d.removeAttribute("data-side");d.removeAttribute("data-index");c+=1}else break},Yr=function(a,b){var c=$APP.O($APP.l(a,"__xScrollTimelineRefs"));c=$APP.I(c,
12
+ $APP.xj);var d=$APP.l(a,"__xScrollTimelineMarkerEls");d=$APP.n(d)?d:[];b=b.length;for(var e=d.length,g=0;;)if(g<e)d[g].remove(),g+=1;else break;d=Array(b);for(e=0;;)if(e<b)g=document.createElement("div"),g.classList.add("tl-marker"),c.appendChild(g),d[e]=g,e+=1;else break;a.__xScrollTimelineMarkerEls=d},Zr=function(a,b){var c=$APP.O($APP.l(a,"__xScrollTimelineRefs"));c=$APP.I(c,$APP.xj);var d=$APP.l(a,"__xScrollTimelineDateEls");var e=$APP.n(d)?d:[];d=b.length;for(var g=e.length,h=0;;)if(h<g){var k=
13
+ e[h];$APP.n(k)&&k.remove();h+=1}else break;e=Array(d);for(g=0;;)if(g<d)h=b[g].getAttribute("data-date"),typeof h==="string"&&$APP.P(h,"")?(k=document.createElement("span"),k.classList.add("tl-date"),k.textContent=h,c.appendChild(k),e[g]=k):e[g]=null,g+=1;else break;a.__xScrollTimelineDateEls=e},$r=function(a,b,c){a=$APP.O($APP.l(a,"__xScrollTimelineRefs"));a=$APP.I(a,Hr);$APP.n(c)?a.style.height="0%":a.style.height=""+$APP.T.g(b*100)+"%"},as=function(a,b){var c=$APP.O($APP.l(a,"__xScrollTimelineRefs")),
14
+ d=$APP.I(c,$APP.xj),e=$APP.I(c,Br),g=$APP.I(c,Er);c=$APP.I(c,Cr);var h=function(){var F=$APP.l(a,"__xScrollTimelineModel");return $APP.n(F)?F:Qr(a)}(),k=$APP.wk.g(h);h=d.getBoundingClientRect();var m=h.top;d=h.height;var p=h.width,r=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-curve-amplitude");h=function(){var F=parseFloat(r);return $APP.n(isNaN(F))?60:F}();var v=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),x=function(){var F=parseFloat(v);return $APP.n(isNaN(F))?
15
+ 7:F/2}(),y=function(){switch(k){case "left":return x;case "right":return p-x;default:return p*.5}}(),A=b.length;if(A>0){var D=function(){for(var F=0,J=$APP.Md;;){if(F>=A)return J;var G=b[F].getBoundingClientRect(),R=F+1;J=$APP.jf.h(J,new $APP.Q(null,2,[$APP.Ui,G.top+G.height/2-m,zr,wr(k,F)],null));F=R}}();h=Ar(D,h,y);e.setAttribute("viewBox","0 0 "+$APP.T.g(p)+" "+$APP.T.g(d));g.setAttribute("d",h);c.setAttribute("d",h);c.setAttribute("stroke-dasharray","1");c.setAttribute("stroke-dashoffset","1")}},
16
+ bs=function(a,b,c){a=$APP.O($APP.l(a,"__xScrollTimelineRefs"));a=$APP.I(a,Cr);$APP.n(c)?a.setAttribute("stroke-dashoffset","1"):a.setAttribute("stroke-dashoffset",""+$APP.T.g(1-b))},cs=function(a,b,c){var d=$APP.l(a,"__xScrollTimelineActiveIndex");d=$APP.n(d)?d:-1;if($APP.P(d,c)){d>=0&&d<b.length&&b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");var e=$APP.l(a,"__xScrollTimelineMarkerEls"),g=$APP.l(a,"__xScrollTimelineDateEls");$APP.n(e)&&(d>=0&&d<e.length&&
17
+ e[d].removeAttribute("data-active"),c>=0&&c<e.length&&e[c].setAttribute("data-active",""));$APP.n(g)&&(d>=0&&d<g.length&&(e=g[d],$APP.n(e)&&e.removeAttribute("data-active")),c>=0&&c<g.length&&(g=g[c],$APP.n(g)&&g.setAttribute("data-active","")));c>=0?a.setAttribute("data-active-index",""+$APP.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollTimelineActiveIndex=c;g=d>=0&&d<b.length?Tr(b[d]):null;b=c>=0&&c<b.length?Tr(b[c]):null;Ur(a,"x-scroll-timeline-entry-change",new $APP.Q(null,4,[$APP.rh,
18
+ c,$APP.xi,b,$APP.ck,d,$APP.xk,g],null));Vr(a,"Entry "+$APP.T.g(c+1)+" active")}},ds=function(a,b,c,d){var e=b.length;var g=$APP.l(a,"__xScrollTimelineEntryStates");if(!$APP.n($APP.n(g)?$APP.C.h(g.length,e):g)){for(var h=Array(e),k=0;;)if(k<e)h[k]=$APP.n($APP.n(g)?k<g.length:g)?g[k]:!1,k+=1;else break;g=a.__xScrollTimelineEntryStates=h}for(h=0;;)if(h<e){if(h<$APP.B(c)){k=$APP.bc(c,h);k=$APP.O(k);var m=$APP.I(k,$APP.Fh),p=$APP.I(k,$APP.hh),r=g[h];k=m<=d&&p>d;var v=Tr(b[h]);m=yr(m,p-m,d);$APP.q(r)&&
19
+ k?(g[h]=!0,Ur(a,"x-scroll-timeline-entry-enter",new $APP.Q(null,3,[$APP.rh,h,$APP.xi,v,$APP.vj,m],null))):$APP.n($APP.n(r)?!k:r)&&(g[h]=!1,Ur(a,"x-scroll-timeline-entry-leave",new $APP.Q(null,3,[$APP.rh,h,$APP.xi,v,$APP.vj,m],null)))}h+=1}else break},es=function(a){var b=function(){var r=$APP.l(a,"__xScrollTimelineModel");return $APP.n(r)?r:Qr(a)}();if(!$APP.n($APP.V.g(b))){var c=Rr(a),d=c.length,e=window.innerHeight,g=e*$APP.jj.g(b),h=function(){for(var r=0,v=$APP.Md;;){if(r>=d)return v;var x=c[r].getBoundingClientRect();
20
+ r+=1;v=$APP.jf.h(v,new $APP.Q(null,2,[$APP.Fh,x.top,$APP.hh,x.top+x.height],null))}}(),k=xr(h,g),m=$APP.O($APP.l(a,"__xScrollTimelineRefs"));m=$APP.I(m,$APP.xj).getBoundingClientRect();e=$APP.zg.h(0,$APP.Ag.h(1,(e-m.top)/(e+m.height)));m=$APP.l(a,"__xScrollTimelineLastProg");var p=d<2||k<0?0:function(){var r=function(){var D=$APP.bc(h,0);return($APP.Fh.g(D)+$APP.hh.g(D))/2}(),v=function(){var D=$APP.bc(h,d-1);return($APP.Fh.g(D)+$APP.hh.g(D))/2}()-r,x=$APP.bc(h,k),y=($APP.Fh.g(x)+$APP.hh.g(x))/2;
21
+ x=yr($APP.Fh.g(x),$APP.hh.g(x)-$APP.Fh.g(x),g);var A=k<d-1?function(){var D=$APP.bc(h,k+1);return($APP.Fh.g(D)+$APP.hh.g(D))/2}():y;return v<=0?1:$APP.zg.h(0,$APP.Ag.h(1,(y+x*(A-y)-r)/v))}();cs(a,c,k);ds(a,c,h,g);$APP.C.h($APP.zi.g(b),"curved")?bs(a,p,Pr.g(b)):$r(a,p,Pr.g(b));if(m==null||Math.abs(e-m)>.001)a.__xScrollTimelineLastProg=e,b=k>=0&&k<d?Tr(c[k]):null,Ur(a,"x-scroll-timeline-progress",new $APP.Q(null,3,[$APP.vj,e,$APP.zk,k,$APP.Qi,b],null))}a.__xScrollTimelineRAF=null},fs=function(a){return function d(c){if($APP.n(function(){var k=
22
+ a.isConnected;return $APP.n(k)?(k=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(k)?$APP.q($APP.l(a,"__xScrollTimelineAutoplayPaused")):k):k}())){var e=$APP.l(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(e)){var k=$APP.di.g(e);return $APP.n(k)?$APP.q($APP.V.g(e)):k}return e}())){var g=$APP.l(a,"__xScrollTimelineAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollTimelineAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Qj.g(e)*g);$APP.n(function(){var k=$APP.Qh.g(e);return $APP.n(k)?
23
+ window.scrollY-h<.5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,$APP.zg.h(0,c-window.innerHeight)),a.__xScrollTimelineAutoplayLast=null)}return $APP.la(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},gs=function(a){if($APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused")))return null;a.__xScrollTimelineAutoplayPaused=!0;var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);a.setAttribute("data-autoplay-paused",
24
+ "");b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?Tr(d[c]):null;return Ur(a,"x-scroll-timeline-autoplay-pause",new $APP.Q(null,3,[$APP.vj,b,$APP.zk,c,$APP.Qi,d],null))},hs=function(a){if($APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused"))){a.__xScrollTimelineAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollTimelineAutoplayLast=
25
+ null;$APP.la(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(fs(a)));var b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?Tr(d[c]):null;return Ur(a,"x-scroll-timeline-autoplay-resume",new $APP.Q(null,3,[$APP.vj,b,$APP.zk,c,$APP.Qi,d],null))}return null},is=function(a){var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),
26
+ a.__xScrollTimelineAutoplayRAF=null);b=$APP.l(a,"__xScrollTimelineAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("mousedown",$APP.l(b,"mousedown")),a.removeEventListener("mouseup",$APP.l(b,"mouseup")),a.removeEventListener("mouseleave",$APP.l(b,"mouseleave")),a.removeEventListener("touchstart",$APP.l(b,"touchstart")),a.removeEventListener("touchend",$APP.l(b,"touchend")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),a.__xScrollTimelineAutoplayHandlers=
27
+ null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null},js=function(a){if($APP.l(a,"__xScrollTimelineAutoplayRAF")==null){var b=$APP.l(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(b)){var p=$APP.di.g(b);return $APP.n(p)?(p=$APP.q($APP.V.g(b)))?(p=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(p)?!Sr():p):p:p}return b}())){a.setAttribute("tabindex","0");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=
28
+ null;var c=function(){return gs(a)},d=function(){return hs(a)},e=function(){return $APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused"))?hs(a):null},g=function(){return gs(a)},h=function(){return hs(a)},k=function(p){return $APP.C.h(p.code,"Space")?(p.preventDefault(),gs(a)):null},m=function(p){return $APP.C.h(p.code,"Space")?hs(a):null};a.addEventListener("mousedown",c);a.addEventListener("mouseup",d);a.addEventListener("mouseleave",e);a.addEventListener("touchstart",g,{passive:!0});a.addEventListener("touchend",
29
+ h,{passive:!0});a.addEventListener("keydown",k);a.addEventListener("keyup",m);$APP.la(a,"__xScrollTimelineAutoplayHandlers",{mousedown:c,mouseup:d,mouseleave:e,touchstart:g,touchend:h,keydown:k,keyup:m});$APP.la(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(fs(a)))}}return null},ks=function(a){a=$APP.l(a,"__xScrollTimelineModel");return $APP.n(a)?$APP.V.g(a):a},ls=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(b)?$APP.q(ks(a))&&
30
+ !Sr():b):b}())?$APP.n($APP.l(a,"__xScrollTimelineRAF"))?null:$APP.la(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return es(a)})):null},ms=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.q($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},ns=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),
31
+ a.scrollAttached=!1)},os=function(a,b){b=b[0].isIntersecting;a.__xScrollTimelineVisible=b;if($APP.n(b)){if($APP.n(ks(a)))return null;ms(a);es(a);Vr(a,"Timeline entered viewport");Ur(a,"x-scroll-timeline-enter",new $APP.Q(null,1,[$APP.vj,function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()],null));b=$APP.l(a,"__xScrollTimelineModel");return $APP.n($APP.n(b)?$APP.di.g(b):b)?js(a):null}ns(a);is(a);if($APP.n(ks(a)))return null;Vr(a,"Timeline left viewport");return Ur(a,"x-scroll-timeline-leave",
32
+ new $APP.Q(null,1,[$APP.vj,function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()],null))},ps=function(a){var b=function(){var d=$APP.l(a,"__xScrollTimelineModel");return $APP.n(d)?d:Qr(a)}(),c=Rr(a);Wr(c,$APP.wk.g(b));Yr(a,c);Zr(a,c);return requestAnimationFrame(function(){var d=Rr(a),e=$APP.l(a,"__xScrollTimelineMarkerEls"),g=$APP.l(a,"__xScrollTimelineDateEls"),h=$APP.O($APP.l(a,"__xScrollTimelineRefs"));h=$APP.I(h,$APP.xj).getBoundingClientRect().top;var k=$APP.l(a,"__xScrollTimelineModel");
33
+ k=$APP.n(k)?k:Qr(a);k=$APP.wk.g(k);for(var m=d.length,p=0;;)if(p<m){var r=d[p].getBoundingClientRect();r=r.top+r.height/2-h;var v=wr(k,p),x=$APP.n(e)?e[p]:e;$APP.n(x)&&(x.style.top=""+$APP.T.g(r)+"px");x=$APP.n(g)?g[p]:g;$APP.n(x)&&(x.style.top=""+$APP.T.g(r)+"px",x.setAttribute("data-side",v));p+=1}else break;$APP.C.h($APP.zi.g(b),"curved")&&as(a,d);return $APP.n($APP.l(a,"__xScrollTimelineVisible"))?es(a):null})},qs=function(a){function b(){return $APP.n($APP.l(a,"__xScrollTimelineVisible"))?(a.__xScrollTimelineEntryStates=
34
+ null,ps(a)):null}function c(){a.__xScrollTimelineEntryStates=null;return ps(a)}var d=Ir(a);d=$APP.O(d);$APP.I(d,$APP.Si).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.la(a,"__xScrollTimelineHandlers",{scroll:function(){return ls(a)},slot:c,resize:b,scrollAttached:!1})},rs=function(a){var b=$APP.l(a,"__xScrollTimelineHandlers");if($APP.n(b)){ns(a);var c=$APP.l(a,"__xScrollTimelineRefs");if($APP.n(c)){c=$APP.Si.g(c);var d=$APP.l(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",
35
+ d)}b=$APP.l(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollTimelineRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineRAF=null);a.__xScrollTimelineHandlers=null},ss=function(a){var b=$APP.l(a,"__xScrollTimelineIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return os(a,c)},{threshold:[0]});b.observe(a);a.__xScrollTimelineIO=b},ts=function(a){var b=Qr(a);if($APP.P($APP.l(a,"__xScrollTimelineModel"),b)){b=$APP.O(b);var c=$APP.I(b,$APP.wk),
36
+ d=$APP.I(b,$APP.zi),e=$APP.I(b,$APP.V),g=$APP.I(b,$APP.W),h=$APP.I(b,$APP.zh),k=Ir(a);k=$APP.O(k);k=$APP.I(k,$APP.xj);var m=$APP.l(a,"__xScrollTimelineModel");a.setAttribute("data-layout",c);a.setAttribute("data-track",d);a.setAttribute("data-marker",h);$APP.u(g)?k.setAttribute("aria-label",g):k.removeAttribute("aria-label");a.__xScrollTimelineModel=b;$APP.n(e)?(Xr(a),a.__xScrollTimelineActiveIndex=-1,a.__xScrollTimelineEntryStates=null,ns(a),is(a)):$APP.n(m)&&($APP.P($APP.wk.g(m),c)||$APP.P($APP.zi.g(m),
37
+ d)||$APP.P($APP.zh.g(m),h)||$APP.P($APP.V.g(m),e)?ps(a):($APP.P($APP.jj.g(m),$APP.jj.g(b))||$APP.P(Pr.g(m),Pr.g(b)))&&$APP.n($APP.l(a,"__xScrollTimelineVisible"))&&es(a));$APP.n(e)||(b=$APP.di.g(b),$APP.n($APP.n(b)?$APP.l(a,"__xScrollTimelineVisible"):b)?js(a):is(a))}},us=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"alternating"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.T.g(b)):this.removeAttribute("layout")},
38
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"track",{get:function(){var b=this.getAttribute("track");return $APP.n(b)?b:"straight"},set:function(b){return $APP.n(b)?this.setAttribute("track",""+$APP.T.g(b)):this.removeAttribute("track")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return ur(this.getAttribute("threshold"))},set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,
39
+ configurable:!0});Object.defineProperty(a,"noProgress",{get:function(){return this.hasAttribute("no-progress")},set:function(b){return $APP.n(b)?this.setAttribute("no-progress",""):this.removeAttribute("no-progress")},enumerable:!0,configurable:!0});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});Object.defineProperty(a,"label",
40
+ {get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.P(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"marker",{get:function(){var b=this.getAttribute("marker");return $APP.n(b)?b:"dot"},set:function(b){return $APP.n(b)?this.setAttribute("marker",""+$APP.T.g(b)):this.removeAttribute("marker")},enumerable:!0,configurable:!0});Object.defineProperty(a,
41
+ "activeIndex",{get:function(){var b=$APP.l(this,"__xScrollTimelineActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollTimelineLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplay",{get:function(){return this.hasAttribute("autoplay")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")},enumerable:!0,configurable:!0});
42
+ Object.defineProperty(a,"autoplaySpeed",{get:function(){return vr(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayLoop",{get:function(){return this.hasAttribute("autoplay-loop")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay-loop",""):this.removeAttribute("autoplay-loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,
43
+ "autoplayIndicator",{get:function(){return this.hasAttribute("autoplay-indicator")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay-indicator",""):this.removeAttribute("autoplay-indicator")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.K($APP.l(this,"__xScrollTimelineAutoplayPaused"))},enumerable:!0,configurable:!0})},ws=function(){var a=class extends HTMLElement{};a.observedAttributes=vs;a.prototype.connectedCallback=function(){Ir(this);
44
+ rs(this);qs(this);ss(this);ts(this);return null};a.prototype.disconnectedCallback=function(){is(this);Xr(this);if($APP.n($APP.l(this,"__xScrollTimelineVisible"))){var b=$APP.l(this,"__xScrollTimelineLastProg");Ur(this,"x-scroll-timeline-leave",new $APP.Q(null,1,[$APP.vj,$APP.n(b)?b:0],null))}rs(this);b=$APP.l(this,"__xScrollTimelineIO");$APP.n(b)&&(b.disconnect(),this.__xScrollTimelineIO=null);this.__xScrollTimelineVisible=!1;this.__xScrollTimelineActiveIndex=-1;return this.__xScrollTimelineEntryStates=
45
+ this.__xScrollTimelineLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&ts(this);return null};us(a.prototype);return a},xs=function(){$APP.n(customElements.get("x-scroll-timeline"))||customElements.define("x-scroll-timeline",ws());return null},Br=new $APP.N(null,"track-svg","track-svg",-556455964),Hr=new $APP.N(null,"track-fill","track-fill",1852369499),Dr=new $APP.N(null,"entries","entries",-86943161),zr=new $APP.N(null,"side","side",389652279),Jr=new $APP.N(null,"marker-raw",
46
+ "marker-raw",2140891555),Gr=new $APP.N(null,"indicator","indicator",1928219637),Pr=new $APP.N(null,"no-progress?","no-progress?",-1599319890),Kr=new $APP.N(null,"track-raw","track-raw",751958776),Er=new $APP.N(null,"track-path","track-path",-1838135442),Fr=new $APP.N(null,"track-line","track-line",1370628624),Cr=new $APP.N(null,"fill-path","fill-path",-792439899),Lr=new $APP.N(null,"no-progress-attr","no-progress-attr",115951679);var vs="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
47
+ $APP.ff([$APP.oi,$APP.Ng,$APP.qh,$APP.Fj,$APP.wk,$APP.zk,$APP.zh,$APP.jj,$APP.bk,$APP.W,$APP.gh,$APP.vj,new $APP.N(null,"noProgress","noProgress",-2114530658),$APP.zi],[new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,2,[$APP.Z,$APP.ui,$APP.Rg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null),
48
+ new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.Rg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,2,[$APP.Z,$APP.ui,$APP.Rg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null)]);
49
+ $APP.yd(["x-scroll-timeline-entry-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.rh,$APP.ui,$APP.xi,$APP.X,$APP.ck,$APP.ui,$APP.xk,$APP.X],null),$APP.Dj,!1],null),"x-scroll-timeline-entry-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.rh,$APP.ui,$APP.xi,$APP.X,$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-timeline-entry-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.rh,$APP.ui,$APP.xi,$APP.X,$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-timeline-progress",
50
+ new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.ui,$APP.zk,$APP.ui,$APP.Qi,$APP.X],null),$APP.Dj,!1],null),"x-scroll-timeline-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-timeline-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.ui,$APP.zk,$APP.ui,$APP.Qi,$APP.X],null),$APP.Dj,!1],null),"x-scroll-timeline-autoplay-resume",
51
+ new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.ui,$APP.zk,$APP.ui,$APP.Qi,$APP.X],null),$APP.Dj,!1],null)]);var Mr=new $APP.S(null,new $APP.Q(null,3,["right",null,"left",null,"alternating",null],null),null),Or=new $APP.S(null,new $APP.Q(null,2,["curved",null,"straight",null],null),null),Nr=new $APP.S(null,new $APP.Q(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.ja("baredom.exports.x_scroll_timeline.init",xs);export const init=xs;
@@ -0,0 +1,43 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var xP=function(a){return a==null?!0:$APP.P((""+$APP.T.g(a)).trim().toLowerCase(),"false")},yP=function(a,b){if(typeof a==="string"){a=parseInt(a.trim(),10);var c=isNaN(a);return $APP.n($APP.n(c)?c:a<0)?b:a}return b},zP=function(a,b){return $APP.n(a)?b>=3:a},AP=function(a,b,c,d){a+=b;return $APP.n(zP(d,c))?c<=0?0:$APP.Qc($APP.Qc(a,c)+c,c):c<=0?0:$APP.zg.h(0,$APP.Ag.h(a,c-1))},DP=function(a,b){var c=$APP.O(a);a=$APP.I(c,BP);c=$APP.I(c,CP);return $APP.n(zP(c,b))?b>0:a>0},EP=function(a,b){var c=$APP.O(a);
3
+ a=$APP.I(c,BP);c=$APP.I(c,CP);return $APP.n(zP(c,b))?b>0:a<b-1},GP=function(a){var b=$APP.l(a,"__xScrollRefs");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("slot"),h=document.createElement("button"),k=document.createElement("button"),m=document.createElement("div"),p=document.createElement("div");c.textContent=":host{display:block;position:relative;overflow:hidden;color-scheme:light dark;--x-scroll-gap:0px;--x-scroll-padding:0px;--x-scroll-border-radius:0px;--x-scroll-bg:transparent;--x-scroll-control-size:36px;--x-scroll-control-bg:rgba(255,255,255,0.9);--x-scroll-control-color:rgba(0,0,0,0.7);--x-scroll-control-hover-bg:rgba(255,255,255,1);--x-scroll-control-border-radius:50%;--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.15);--x-scroll-indicator-size:8px;--x-scroll-indicator-gap:6px;--x-scroll-indicator-color:rgba(0,0,0,0.25);--x-scroll-indicator-active-color:rgba(0,0,0,0.7);--x-scroll-transition-duration:300ms;--x-scroll-slide-size:100%;--x-scroll-disabled-opacity:0.55;--x-scroll-focus-ring:rgba(0,102,204,0.6);}@media (prefers-color-scheme:dark){:host{--x-scroll-control-bg:rgba(40,40,40,0.9);--x-scroll-control-color:rgba(255,255,255,0.8);--x-scroll-control-hover-bg:rgba(50,50,50,1);--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.4);--x-scroll-indicator-color:rgba(255,255,255,0.3);--x-scroll-indicator-active-color:rgba(255,255,255,0.8);--x-scroll-focus-ring:rgba(100,180,255,0.7);}}[part\x3dviewport]{position:relative;overflow:hidden;width:100%;height:100%;border-radius:var(--x-scroll-border-radius);background:var(--x-scroll-bg);padding:var(--x-scroll-padding);}[part\x3dtrack]{display:flex;position:relative;will-change:transform;transition:transform var(--x-scroll-transition-duration) cubic-bezier(0.25,0.1,0.25,1);touch-action:none;user-select:none;}:host([data-mode\x3dhorizontal]) [part\x3dtrack]{flex-direction:row;}:host([data-mode\x3dvertical]) [part\x3dtrack]{flex-direction:column;}::slotted(*){flex:0 0 var(--x-scroll-slide-size);min-width:0;min-height:0;box-sizing:border-box;}[part\x3dprev],[part\x3dnext]{position:absolute;top:50%;z-index:2;appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-control-size);height:var(--x-scroll-control-size);border-radius:var(--x-scroll-control-border-radius);background:var(--x-scroll-control-bg);color:var(--x-scroll-control-color);box-shadow:var(--x-scroll-control-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:calc(var(--x-scroll-control-size) * 0.5);line-height:1;transform:translateY(-50%);transition:background 120ms ease,opacity 120ms ease;}[part\x3dprev]{left:8px;}[part\x3dnext]{right:8px;}:host([data-mode\x3dvertical]) [part\x3dprev],:host([data-mode\x3dvertical]) [part\x3dnext]{top:auto;left:50%;transform:translateX(-50%);}:host([data-mode\x3dvertical]) [part\x3dprev]{top:8px;}:host([data-mode\x3dvertical]) [part\x3dnext]{bottom:8px;top:auto;}[part\x3dprev]:hover,[part\x3dnext]:hover{background:var(--x-scroll-control-hover-bg);}[part\x3dprev]:focus,[part\x3dnext]:focus{outline:none;}[part\x3dprev]:focus-visible,[part\x3dnext]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dprev]:disabled,[part\x3dnext]:disabled{opacity:0.3;cursor:default;pointer-events:none;}[data-hide-controls] [part\x3dprev],[data-hide-controls] [part\x3dnext]{display:none;}[part\x3dindicators]{display:flex;justify-content:center;gap:var(--x-scroll-indicator-gap);position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;}:host([data-mode\x3dvertical]) [part\x3dindicators]{flex-direction:column;bottom:auto;left:auto;right:12px;top:50%;transform:translateY(-50%);}[part\x3dindicator]{appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-indicator-size);height:var(--x-scroll-indicator-size);border-radius:50%;background:var(--x-scroll-indicator-color);cursor:pointer;transition:background 120ms ease;}[part\x3dindicator]:focus{outline:none;}[part\x3dindicator]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dindicator][aria-selected\x3dtrue]{background:var(--x-scroll-indicator-active-color);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}:host([disabled]){opacity:var(--x-scroll-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none !important;}}";
4
+ d.setAttribute("part","viewport");d.setAttribute("role","region");d.setAttribute("aria-roledescription","carousel");e.setAttribute("part","track");e.appendChild(g);d.appendChild(e);h.setAttribute("part","prev");h.setAttribute("type","button");h.setAttribute("aria-label","Previous slide");h.textContent="‹";k.setAttribute("part","next");k.setAttribute("type","button");k.setAttribute("aria-label","Next slide");k.textContent="›";m.setAttribute("part","indicators");m.setAttribute("role","tablist");m.setAttribute("aria-label",
5
+ "Slide indicators");p.setAttribute("part","live");p.setAttribute("aria-live","polite");p.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(h);b.appendChild(k);b.appendChild(m);b.appendChild(p);a.__xScrollRefs=new $APP.Q(null,8,[$APP.Xh,b,$APP.Vi,d,$APP.zi,e,$APP.Si,g,$APP.Li,h,$APP.Yg,k,FP,m,$APP.Vh,p],null);return $APP.l(a,"__xScrollRefs")},WP=function(a){a=$APP.ff([HP,$APP.Ch,IP,$APP.vi,JP,KP,LP,MP,$APP.Bi,NP,OP],[a.getAttribute("show-controls"),a.getAttribute("label"),
6
+ $APP.n(a.hasAttribute("auto-play"))?"":null,a.getAttribute("mode"),$APP.n(a.hasAttribute("loop"))?"":null,a.getAttribute("gap"),$APP.n(a.hasAttribute("show-indicators"))?"":null,a.getAttribute("interval"),$APP.n(a.hasAttribute("disabled"))?"":null,a.getAttribute("snap"),a.getAttribute("active-index")]);var b=$APP.O(a),c=$APP.I(b,NP);a=$APP.I(b,MP);var d=$APP.I(b,$APP.Bi),e=$APP.I(b,OP),g=$APP.I(b,HP),h=$APP.I(b,$APP.Ch),k=$APP.I(b,IP),m=$APP.I(b,$APP.vi),p=$APP.I(b,JP),r=$APP.I(b,KP);b=$APP.I(b,LP);
7
+ e=yP(e,0);g=xP(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.M(PP,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.M(QP,m)?m:"horizontal";return $APP.ff([BP,RP,SP,$APP.ij,TP,UP,$APP.W,$APP.Vj,CP,VP,$APP.V],[e,g,c,m,b!=null,k!=null,$APP.n(h)?h:"",yP(r,0),p!=null,$APP.zg.h(500,yP(a,5E3)),d!=null])},XP=function(a){a=GP(a);a=$APP.O(a);return $APP.I(a,$APP.Si).assignedElements()},YP=function(){return $APP.K(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
+ ZP=function(a){return $APP.C.h("horizontal",$APP.ij.g(a))},$P=function(a,b){a=XP(a);return a.length>0?(a=a[0].getBoundingClientRect(),ZP(b)?a.width:a.height):0},aQ=function(a,b){return a.style.transform=b},bQ=function(a,b){a=a.getBoundingClientRect();return $APP.C.h("horizontal",$APP.ij.g(b))?a.width:a.height},cQ=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},dQ=function(a,b,c,d,e){a=$APP.Rc(a)*(b+c)-d;return $APP.n(e)?"translateX("+$APP.T.g(-a)+"px)":
9
+ "translateY("+$APP.T.g(-a)+"px)"},eQ=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.Rc(b);a[d].style.order=""+$APP.T.g($APP.Qc(d-c+e+b,b)-e);d+=1}else break},fQ=function(a,b){var c=GP(a);c=$APP.O(c);var d=$APP.I(c,$APP.Vi);c=$APP.I(c,$APP.zi);var e=XP(a),g=e.length,h=$P(a,b),k=$APP.Vj.g(b),m=BP.g(b),p=zP(CP.g(b),g);d=bQ(d,b);d=cQ(SP.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.T.g(k)+"px";if($APP.n(p))return eQ(e,g,m),aQ(c,dQ(g,h,k,d,ZP(b)));for(a=0;;)if(a<g)e[a].style.order="",
10
+ a+=1;else break;a=m*(h+k)-d;return aQ(c,ZP(b)?"translateX("+$APP.T.g(-a)+"px)":"translateY("+$APP.T.g(-a)+"px)")}return null},gQ=function(a,b,c){var d=GP(a);d=$APP.O(d);var e=$APP.I(d,$APP.Vi),g=$APP.I(d,$APP.zi),h=XP(a),k=h.length,m=$P(a,b),p=$APP.Vj.g(b),r=ZP(b);a=bQ(e,b);var v=cQ(SP.g(b),a,m);c=-($APP.Rc(k)*(m+p)-v+c*(m+p));aQ(g,r?"translateX("+$APP.T.g(c)+"px)":"translateY("+$APP.T.g(c)+"px)");YP()?(eQ(h,k,BP.g(b)),aQ(g,dQ(k,m,p,v,r))):g.addEventListener("transitionend",function A(y){return $APP.C.h(y.target,
11
+ g)?(g.removeEventListener("transitionend",A),g.style.transition="none",eQ(h,k,BP.g(b)),aQ(g,dQ(k,m,p,v,r)),g.offsetHeight,g.style.transition=""):null})},hQ=function(a,b,c,d){a=GP(a);var e=$APP.O(a),g=$APP.I(e,FP);g.innerHTML="";for(var h=0;;)if(h<b){var k=document.createElement("button");k.setAttribute("part","indicator");k.setAttribute("type","button");k.setAttribute("role","tab");k.setAttribute("aria-label","Slide "+$APP.T.g(h+1));k.setAttribute("aria-selected",""+$APP.T.g($APP.C.h(h,c)));k.addEventListener("click",
12
+ function(m){return function(){return d.g?d.g(m):d.call(null,m)}}(h,k,b,a,e,g,g));g.appendChild(k);h+=1}else break},iQ=function(a,b){a=GP(a);a=$APP.O(a);a=$APP.I(a,FP).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.T.g($APP.C.h(d,b))),d+=1;else break},jQ=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Lg(c),bubbles:!0,composed:!0,cancelable:$APP.K(d)});return a.dispatchEvent(b)},kQ=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");$APP.n(b)&&(clearInterval(b),
13
+ a.__xScrollAutoplayTid=null);return null},nQ=function(a){kQ(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.n(c)?c:WP(a)}();$APP.n(function(){var c=UP.g(b);return $APP.n(c)?$APP.q($APP.V.g(b)):c}())&&$APP.la(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.n(a.isConnected)){var c=XP(a).length;if(c>0){var d=BP.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:WP(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:WP(a)}();c=AP(d,1,c,CP.g(e));
14
+ return $APP.P(d,c)?lQ?lQ(a,c,1):mQ.call(null,a,c,1):null}}return null},VP.g(b)));return null},oQ=function(a){kQ(a);return nQ(a)},mQ=function(a){switch(arguments.length){case 2:return lQ(arguments[0],arguments[1],null);case 3:return lQ(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},lQ=function(a,b,c){var d=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:WP(a)}(),e=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?
15
+ v:XP(a).length}(),g=BP.g(d);if(e>0&&$APP.q($APP.V.g(d))){var h=zP(CP.g(d),e),k=$APP.n(h)?e<=0?0:$APP.Qc($APP.Qc(b,e)+e,e):e<=0?0:$APP.zg.h(0,$APP.Ag.h(b,e-1));b=k-g;if($APP.P(k,g)){c=$APP.n(c)?c:b>0?1:-1;var m=e>0&&(c>0&&k<g||c<0&&k>g),p=c>0?"forward":"backward";if($APP.n(function(){var v=!m;return v?v:jQ(a,"x-scroll-loop",new $APP.Q(null,1,[$APP.dj,p],null),!0)}())){jQ(a,"x-scroll-start",new $APP.Q(null,2,[$APP.dj,p,$APP.zk,g],null),!1);d=$APP.yg.m(d,BP,k);a.__xScrollModel=d;a.setAttribute("active-index",
16
+ ""+$APP.T.g(k));$APP.n(h)?gQ(a,d,c):fQ(a,d);iQ(a,k);h=GP(a);b=$APP.O(h);h=$APP.I(b,$APP.Li);c=$APP.I(b,$APP.Yg);b=$APP.I(b,$APP.Vh);h.disabled=!DP(d,e);c.disabled=!EP(d,e);b.textContent="Slide "+$APP.T.g(k+1)+" of "+$APP.T.g(e);jQ(a,"x-scroll-change",new $APP.Q(null,2,[$APP.zk,k,$APP.ck,g],null),!1);if(YP())jQ(a,"x-scroll-end",new $APP.Q(null,1,[$APP.zk,k],null),!1);else{e=GP(a);e=$APP.O(e);var r=$APP.I(e,$APP.zi);r.addEventListener("transitionend",function y(x){return $APP.C.h(x.target,r)?(r.removeEventListener("transitionend",
17
+ y),jQ(a,"x-scroll-end",new $APP.Q(null,1,[$APP.zk,k],null),!1)):null})}return oQ(a)}}}return null},pQ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:WP(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:XP(a).length}();b=AP(BP.g(b),1,c,CP.g(b));return lQ(a,b,1)},qQ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:WP(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:XP(a).length}();
18
+ b=AP(BP.g(b),-1,c,CP.g(b));return lQ(a,b,-1)},tQ=function(a,b){function c(k){return rQ.h?rQ.h(a,k):rQ.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.n(k)?k:WP(a)}();if($APP.n($APP.V.g(d)))return null;var e=GP(a);e=$APP.O(e);e=$APP.I(e,$APP.zi);var g=ZP(d);e.style.transition="none";kQ(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",p);return sQ.h?sQ.h(a,m):sQ.call(null,a,m)};window.addEventListener("pointermove",
19
+ c);window.addEventListener("pointerup",h);return $APP.la(a,"__xScrollDragState",function(){var m={};m.startX=b.clientX;m.startTime=Date.now();m.startY=b.clientY;m.upH=h;m.moveH=c;m.isDragging=!1;m.lastY=b.clientY;m.lastTime=Date.now();m.horiz=g;m.lastX=b.clientX;return m}())},rQ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.n(c)){b.preventDefault();var d=$APP.l(c,"horiz"),e=($APP.n(d)?b.clientX:b.clientY)-($APP.n(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));$APP.q($APP.l(c,"isDragging"))&&
20
+ Math.abs(e)>3&&(c.isDragging=!0);if($APP.n($APP.l(c,"isDragging"))){c.lastX=b.clientX;c.lastY=b.clientY;$APP.la(c,"lastTime",Date.now());b=GP(a);b=$APP.O(b);var g=$APP.I(b,$APP.Vi);b=$APP.I(b,$APP.zi);var h=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:WP(a)}(),k=$P(a,h),m=$APP.Vj.g(h);c=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?v:XP(a).length}();var p=BP.g(h),r=zP(CP.g(h),c);g=bQ(g,h);g=cQ(SP.g(h),g,k);k=($APP.n(r)?$APP.Rc(c)*(k+m):p*(k+m))-g;e=($APP.q(r)&&
21
+ (e<0&&$APP.C.h(p,c-1)||e>0&&$APP.C.h(p,0))?e*.3:e)-k;return aQ(b,$APP.n(d)?"translateX("+$APP.T.g(e)+"px)":"translateY("+$APP.T.g(e)+"px)")}}return null},sQ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.n(c)){a.__xScrollDragState=null;var d=GP(a);d=$APP.O(d);$APP.I(d,$APP.zi).style.transition="";if($APP.n($APP.l(c,"isDragging"))){d=$APP.l(c,"horiz");b=($APP.n(d)?b.clientX:b.clientY)-($APP.n(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));c=Date.now()-$APP.l(c,"lastTime");d=c>0?Math.abs(b)/
22
+ c:0;c=function(){var k=$APP.l(a,"__xScrollModel");return $APP.n(k)?k:WP(a)}();var e=GP(a);e=$APP.O(e);$APP.I(e,$APP.Vi);var g=$P(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.n(k)?k:XP(a).length}();e=BP.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:AP(e,d,h,CP.g(c));$APP.C.h(d,e)?fQ(a,c):lQ(a,d,b<0?1:-1);return oQ(a)}}return null},uQ=function(a,b){var c=function(){var e=$APP.l(a,"__xScrollModel");return $APP.n(e)?e:WP(a)}();if($APP.n($APP.V.g(c)))return null;var d=
23
+ b.key;(c=ZP(c))&&$APP.C.h(d,"ArrowLeft")?(qQ(a),d=!0):c&&$APP.C.h(d,"ArrowRight")?(pQ(a),d=!0):!c&&$APP.C.h(d,"ArrowUp")?(qQ(a),d=!0):!c&&$APP.C.h(d,"ArrowDown")?(pQ(a),d=!0):$APP.C.h(d,"Home")?(lQ(a,0,null),d=!0):d=$APP.C.h(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.n(e)?e:XP(a).length;lQ(a,e-1,null);return!0}();return d?b.preventDefault():null},vQ=function(a){var b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:WP(a)}(),c=XP(a).length;a.__xScrollChildCount=
24
+ c;if(c>0&&BP.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.T.g(d));$APP.la(a,"__xScrollModel",$APP.yg.m(b,BP,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:WP(a)}();d=GP(a);var e=$APP.O(d);d=$APP.I(e,$APP.Li);var g=$APP.I(e,$APP.Yg);e=$APP.I(e,$APP.Vh);$APP.n(TP.g(b))&&hQ(a,c,BP.g(b),function(h){return lQ(a,h,null)});d.disabled=!DP(b,c);g.disabled=!EP(b,c);c>0&&(e.textContent="Slide "+$APP.T.g(BP.g(b)+1)+" of "+$APP.T.g(c));return fQ(a,b)},wQ=function(a){function b(){return oQ(a)}
25
+ function c(){return kQ(a)}function d(){return oQ(a)}function e(){return kQ(a)}function g(){return $APP.n(document.hidden)?kQ(a):oQ(a)}function h(){return vQ(a)}function k(D){return tQ(a,D)}function m(D){return uQ(a,D)}function p(){return pQ(a)}function r(){return qQ(a)}var v=GP(a),x=$APP.O(v);v=$APP.I(x,$APP.Li);var y=$APP.I(x,$APP.Yg),A=$APP.I(x,$APP.Si);x=$APP.I(x,$APP.Vi);v.addEventListener("click",r);y.addEventListener("click",p);a.addEventListener("keydown",m);x.addEventListener("pointerdown",
26
+ k);A.addEventListener("slotchange",h);document.addEventListener("visibilitychange",g);a.addEventListener("mouseenter",e);a.addEventListener("mouseleave",d);a.addEventListener("focusin",c);a.addEventListener("focusout",b);$APP.la(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:r,pdown:k,focusout:b})},xQ=function(a){kQ(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,"__xScrollRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.Li.g(c),e=$APP.Yg.g(c),g=$APP.Si.g(c);c=$APP.Vi.g(c);
27
+ var h=$APP.l(b,"prev");$APP.n(h)&&d.removeEventListener("click",h);d=$APP.l(b,"next");$APP.n(d)&&e.removeEventListener("click",d);e=$APP.l(b,"keydown");$APP.n(e)&&a.removeEventListener("keydown",e);e=$APP.l(b,"pdown");$APP.n(e)&&c.removeEventListener("pointerdown",e);c=$APP.l(a,"__xScrollDragState");$APP.n(c)&&(e=$APP.l(c,"moveH"),$APP.n(e)&&window.removeEventListener("pointermove",e),c=$APP.l(c,"upH"),$APP.n(c)&&window.removeEventListener("pointerup",c),a.__xScrollDragState=null);c=$APP.l(b,"slot");
28
+ $APP.n(c)&&g.removeEventListener("slotchange",c);g=$APP.l(b,"vis");$APP.n(g)&&document.removeEventListener("visibilitychange",g);g=$APP.l(b,"enter");$APP.n(g)&&a.removeEventListener("mouseenter",g);g=$APP.l(b,"leave");$APP.n(g)&&a.removeEventListener("mouseleave",g);g=$APP.l(b,"focusin");$APP.n(g)&&a.removeEventListener("focusin",g);b=$APP.l(b,"focusout");$APP.n(b)&&a.removeEventListener("focusout",b)}a.__xScrollHandlers=null},yQ=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.n(b)&&b.disconnect();
29
+ b=GP(a);b=$APP.O(b);b=$APP.I(b,$APP.Vi);var c=new ResizeObserver(function(){if($APP.n(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.n(d)?d:WP(a);return fQ(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},zQ=function(a,b){b=$APP.O(b);var c=$APP.I(b,$APP.ij),d=$APP.I(b,RP),e=$APP.I(b,TP),g=$APP.I(b,$APP.V),h=$APP.I(b,$APP.W),k=$APP.I(b,BP),m=GP(a);m=$APP.O(m);var p=$APP.I(m,$APP.Vi),r=$APP.I(m,$APP.Li),v=$APP.I(m,$APP.Yg);m=$APP.I(m,$APP.Vh);var x=function(){var y=$APP.l(a,"__xScrollChildCount");
30
+ return $APP.n(y)?y:XP(a).length}();a.setAttribute("data-mode",c);$APP.n(d)?a.removeAttribute("data-hide-controls"):a.setAttribute("data-hide-controls","");$APP.u(h)?p.setAttribute("aria-label",h):p.removeAttribute("aria-label");r.disabled=!DP(b,x);v.disabled=!EP(b,x);a.tabIndex=$APP.n(g)?-1:0;$APP.n(e)&&hQ(a,x,k,function(y){return lQ(a,y,null)});$APP.n(e)||(c=GP(a),c=$APP.O(c),$APP.I(c,FP).innerHTML="");x>0&&(m.textContent="Slide "+$APP.T.g(k+1)+" of "+$APP.T.g(x));fQ(a,b);a.__xScrollModel=b},AQ=
31
+ function(a){var b=WP(a);$APP.P($APP.l(a,"__xScrollModel"),b)&&zQ(a,b)},BQ=function(a){Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?b:"horizontal"},set:function(b){return $APP.n(b)?this.setAttribute("mode",""+$APP.T.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"snap",{get:function(){var b=this.getAttribute("snap");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("snap",""+
32
+ $APP.T.g(b)):this.removeAttribute("snap")},enumerable:!0,configurable:!0});Object.defineProperty(a,"loop",{get:function(){return this.hasAttribute("loop")},set:function(b){return $APP.n(b)?this.setAttribute("loop",""):this.removeAttribute("loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoPlay",{get:function(){return this.hasAttribute("auto-play")},set:function(b){return $APP.n(b)?this.setAttribute("auto-play",""):this.removeAttribute("auto-play")},enumerable:!0,configurable:!0});
33
+ Object.defineProperty(a,"interval",{get:function(){var b=this.getAttribute("interval");return $APP.zg.h(500,yP(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return xP(this.getAttribute("show-controls"))},set:function(b){return $APP.n(b)?this.removeAttribute("show-controls"):this.setAttribute("show-controls","false")},enumerable:!0,configurable:!0});
34
+ Object.defineProperty(a,"showIndicators",{get:function(){return this.hasAttribute("show-indicators")},set:function(b){return $APP.n(b)?this.setAttribute("show-indicators",""):this.removeAttribute("show-indicators")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return yP(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});
35
+ Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return yP(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});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});Object.defineProperty(a,"label",{get:function(){var b=
36
+ this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.P(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},DQ=function(){var a=class extends HTMLElement{};a.observedAttributes=CQ;a.prototype.connectedCallback=function(){GP(this);xQ(this);wQ(this);yQ(this);AQ(this);nQ(this);return null};a.prototype.disconnectedCallback=function(){xQ(this);var c=$APP.l(this,"__xScrollResizeObs");$APP.n(c)&&(c.disconnect(),
37
+ this.__xScrollResizeObs=null);c=XP(this);for(var d=c.length,e=0;;)if(e<d)c[e].style.order="",e+=1;else break;return null};a.prototype.attributeChangedCallback=function(c,d,e){$APP.P(d,e)&&(AQ(this),d=this.isConnected,c=$APP.n(d)?$APP.C.h(c,"auto-play")||$APP.C.h(c,"interval")||$APP.C.h(c,"disabled"):d,$APP.n(c)&&oQ(this));return null};var b=a.prototype;BQ(b);b.goTo=function(c){return lQ(this,c,null)};b.next=function(){return pQ(this)};b.prev=function(){return qQ(this)};return a},EQ=function(){$APP.n(customElements.get("x-scroll"))||
38
+ customElements.define("x-scroll",DQ());return null},JP=new $APP.N(null,"loop-attr","loop-attr",-132212822),SP=new $APP.N(null,"snap","snap",-51714904),MP=new $APP.N(null,"interval-raw","interval-raw",443967609),NP=new $APP.N(null,"snap-raw","snap-raw",828444409),VP=new $APP.N(null,"interval","interval",1708495417),OP=new $APP.N(null,"active-index-raw","active-index-raw",1461571359),KP=new $APP.N(null,"gap-raw","gap-raw",1566843410),CP=new $APP.N(null,"loop?","loop?",457687798),UP=new $APP.N(null,
39
+ "auto-play?","auto-play?",385278451),RP=new $APP.N(null,"show-controls?","show-controls?",1318868354),LP=new $APP.N(null,"show-indicators-attr","show-indicators-attr",1148535895),HP=new $APP.N(null,"show-controls-attr","show-controls-attr",-894641087),IP=new $APP.N(null,"auto-play-attr","auto-play-attr",329299716),BP=new $APP.N(null,"active-index","active-index",864399296),TP=new $APP.N(null,"show-indicators?","show-indicators?",-370587412),FP=new $APP.N(null,"indicators","indicators",1312373003);var CQ="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
+ $APP.ff([$APP.Fj,new $APP.N(null,"showIndicators","showIndicators",1780978055),SP,$APP.zk,$APP.ij,new $APP.N(null,"showControls","showControls",1591218925),$APP.Zj,$APP.W,$APP.Vj,new $APP.N(null,"autoPlay","autoPlay",-561263241),VP],[new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,
41
+ $APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.ui],null)]);
42
+ $APP.yd(["x-scroll-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.zk,$APP.ui,$APP.ck,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-start",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.dj,$APP.X,$APP.zk,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-end",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.zk,$APP.ui],null),$APP.Dj,!1],null),"x-scroll-loop",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.dj,$APP.X],null),$APP.Dj,!0],null)]);
43
+ var QP=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),PP=new $APP.S(null,new $APP.Q(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_scroll.init",EQ);export const init=EQ;
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ol=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},pl=function(a,b,c){a=$APP.C.h("",a.value);c=c.hasAttribute("disabled");$APP.n(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},ql=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.n($APP.n(a)?$APP.C.h(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},sl=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,
3
- "input");b=$APP.l(b,"clear");var d=new $APP.Q(null,7,[$APP.Dh,a.getAttribute("name"),$APP.yi,a.getAttribute("value"),$APP.ph,a.getAttribute("placeholder"),$APP.Wg,a.getAttribute("label"),$APP.Sh,a.hasAttribute("disabled"),$APP.ug,a.hasAttribute("required"),$APP.Vg,a.getAttribute("autocomplete")],null);var e=$APP.N(d),g=$APP.I(e,$APP.Dh),h=$APP.I(e,$APP.yi),k=$APP.I(e,$APP.ph),m=$APP.I(e,$APP.Wg),q=$APP.I(e,$APP.Sh);d=$APP.I(e,$APP.ug);e=$APP.I(e,$APP.Vg);g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";k=$APP.n(k)?
4
- k:"";m=$APP.n(m)?m:"";q=$APP.K(q);d=$APP.K(d);e=typeof e==="string"&&$APP.yc(rl,e)?e:"off";d=new $APP.Q(null,7,[$APP.ai,g,$APP.U,h,$APP.vi,k,$APP.W,m,$APP.V,q,$APP.Tg,d,$APP.gi,e],null);c.name=$APP.ai.g(d);c.placeholder=$APP.vi.g(d);c.disabled=$APP.V.g(d);c.required=$APP.Tg.g(d);c.autocomplete=$APP.gi.g(d);e=$APP.W.g(d);$APP.n($APP.n(e)?$APP.O(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.n($APP.Tg.g(d))?"true":"false";c.setAttribute("aria-required",d);pl(c,b,a);b=
5
- $APP.l(a,"__xSearchFieldInternals");return $APP.n(b)?ql(a,b,c):null}return null},tl=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.K(d)}))},ul=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.n(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.n(g)&&(g.setFormValue(d),ql(a,g,c));pl(c,b,a);return tl(a,"x-search-field-input",
6
- {name:e,value:d},!1)}return null}},vl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(c),ql(a,e,b));return tl(a,"x-search-field-change",{name:d,value:c},!1)}return null}},wl=function(a){return function(b){if($APP.C.h("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.n(b))){var c=$APP.l(b,"input").value;
7
- b=function(){var d=a.getAttribute("name");return $APP.n(d)?d:""}();return $APP.n(function(){var d=a.hasAttribute("required");return $APP.n(d)?$APP.C.h(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.n(b)?b.reportValidity():null):tl(a,"x-search-field-search",{name:b,value:c},!0)}return null}},xl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.n(d)?d:"";c.value="";var e=$APP.l(a,
8
- "__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(""),ql(a,e,c));pl(c,b,a);tl(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},yl=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.n(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
- "click"));a.__xSearchFieldHandlers=null;return}}return null},zl=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Al=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ol(this,c,$APP.K(d))}})},Bl=function(a){Object.defineProperty(a,
10
- "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},Dl=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Cl}});
11
- Bl(b);zl(b,"name","name");zl(b,"placeholder","placeholder");zl(b,"label","label");zl(b,"autocomplete","autocomplete");Al(b,"disabled","disabled");Al(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.n(this.shadowRoot)){var c=
2
+ var Um=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Vm=function(a,b,c){a=$APP.C.h("",a.value);c=c.hasAttribute("disabled");$APP.n(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},Wm=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.n($APP.n(a)?$APP.C.h(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},Ym=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,
3
+ "input");b=$APP.l(b,"clear");var d=new $APP.Q(null,7,[$APP.Ai,a.getAttribute("name"),$APP.Rj,a.getAttribute("value"),$APP.fi,a.getAttribute("placeholder"),$APP.Ch,a.getAttribute("label"),$APP.aj,a.hasAttribute("disabled"),$APP.Sg,a.hasAttribute("required"),$APP.Bh,a.getAttribute("autocomplete")],null);var e=$APP.O(d),g=$APP.I(e,$APP.Ai),h=$APP.I(e,$APP.Rj),k=$APP.I(e,$APP.fi),m=$APP.I(e,$APP.Ch),p=$APP.I(e,$APP.aj);d=$APP.I(e,$APP.Sg);e=$APP.I(e,$APP.Bh);g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";k=$APP.n(k)?
4
+ k:"";m=$APP.n(m)?m:"";p=$APP.K(p);d=$APP.K(d);e=typeof e==="string"&&$APP.M(Xm,e)?e:"off";d=new $APP.Q(null,7,[$APP.mj,g,$APP.ri,h,$APP.Mj,k,$APP.W,m,$APP.V,p,$APP.yh,d,$APP.sj,e],null);c.name=$APP.mj.g(d);c.placeholder=$APP.Mj.g(d);c.disabled=$APP.V.g(d);c.required=$APP.yh.g(d);c.autocomplete=$APP.sj.g(d);e=$APP.W.g(d);$APP.n($APP.n(e)?$APP.P(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.n($APP.yh.g(d))?"true":"false";c.setAttribute("aria-required",d);Vm(c,b,a);b=
5
+ $APP.l(a,"__xSearchFieldInternals");return $APP.n(b)?Wm(a,b,c):null}return null},Zm=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.K(d)}))},$m=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.n(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.n(g)&&(g.setFormValue(d),Wm(a,g,c));Vm(c,b,a);return Zm(a,"x-search-field-input",
6
+ {name:e,value:d},!1)}return null}},an=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(c),Wm(a,e,b));return Zm(a,"x-search-field-change",{name:d,value:c},!1)}return null}},bn=function(a){return function(b){if($APP.C.h("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.n(b))){var c=$APP.l(b,"input").value;
7
+ b=function(){var d=a.getAttribute("name");return $APP.n(d)?d:""}();return $APP.n(function(){var d=a.hasAttribute("required");return $APP.n(d)?$APP.C.h(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.n(b)?b.reportValidity():null):Zm(a,"x-search-field-search",{name:b,value:c},!0)}return null}},cn=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.n(d)?d:"";c.value="";var e=$APP.l(a,
8
+ "__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(""),Wm(a,e,c));Vm(c,b,a);Zm(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},dn=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.n(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
+ "click"));a.__xSearchFieldHandlers=null;return}}return null},en=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.P(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},fn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Um(this,c,$APP.K(d))}})},gn=function(a){Object.defineProperty(a,
10
+ "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.P(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},jn=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return hn}});
11
+ gn(b);en(b,"name","name");en(b,"placeholder","placeholder");en(b,"label","label");en(b,"autocomplete","autocomplete");fn(b,"disabled","disabled");fn(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.n(this.shadowRoot)){var c=
12
12
  this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:#ffffff;--x-search-field-color:#111827;--x-search-field-border:1px solid #d1d5db;--x-search-field-border-radius:6px;--x-search-field-focus-ring-color:#2563eb;--x-search-field-icon-color:#9ca3af;--x-search-field-clear-color:#9ca3af;--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:#1f2937;--x-search-field-color:#f9fafb;--x-search-field-border:1px solid #4b5563;--x-search-field-focus-ring-color:#3b82f6;--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
13
13
  e.setAttribute("part","wrapper");g.setAttribute("part","icon");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 24 24" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3ccircle cx\x3d"11" cy\x3d"11" r\x3d"8"/\x3e\x3cline x1\x3d"21" y1\x3d"21" x2\x3d"16.65" y2\x3d"16.65"/\x3e\x3c/svg\x3e';h.setAttribute("part","input");h.setAttribute("type","search");h.setAttribute("spellcheck",
14
- "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.n(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}yl(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&
15
- (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.n(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=ul(this),g=vl(this),h=wl(this),k=xl(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return sl(this)};b.disconnectedCallback=function(){return yl(this)};
16
- b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return sl(this)};b.formDisabledCallback=function(c){ol(this,"disabled",$APP.K(c));return sl(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&c.setFormValue("");return sl(this)};
17
- return a},El=function(){return $APP.n(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Dl())};var Cl="name value placeholder label disabled required autocomplete".split(" "),rl=new $APP.S(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ja("baredom.exports.x_search_field.init",El);export const init=El;
14
+ "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.n(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}dn(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&
15
+ (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.n(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=$m(this),g=an(this),h=bn(this),k=cn(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return Ym(this)};b.disconnectedCallback=function(){return dn(this)};
16
+ b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.P(c.value,e)&&(c.value=$APP.n(e)?e:"")));return Ym(this)};b.formDisabledCallback=function(c){Um(this,"disabled",$APP.K(c));return Ym(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&c.setFormValue("");return Ym(this)};
17
+ return a},kn=function(){return $APP.n(customElements.get("x-search-field"))?null:customElements.define("x-search-field",jn())};var hn="name value placeholder label disabled required autocomplete".split(" "),Xm=new $APP.S(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ja("baredom.exports.x_search_field.init",kn);export const init=kn;
package/dist/x-select.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var cz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=new $APP.Q(null,6,[$APP.Sh,a.hasAttribute("disabled"),$APP.ug,a.hasAttribute("required"),$APP.$h,a.getAttribute("size"),$APP.ph,a.getAttribute("placeholder"),$APP.yi,a.getAttribute("value"),$APP.Dh,a.getAttribute("name")],null);var d=$APP.N(c),e=$APP.I(d,$APP.Sh),g=$APP.I(d,$APP.ug),h=$APP.I(d,$APP.$h);c=$APP.I(d,$APP.ph);var k=$APP.I(d,$APP.yi);d=$APP.I(d,$APP.Dh);e=$APP.K(e);g=$APP.K(g);h=typeof h==="string"&&$APP.yc(bz,h)?h:
3
- "md";c=new $APP.Q(null,6,[$APP.V,e,$APP.Tg,g,$APP.sg,h,$APP.vi,c,$APP.U,k,$APP.ai,d],null);if($APP.O(c,$APP.l(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.l(b,"wrapper");k=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");h=$APP.V.g(c);d=$APP.Tg.g(c);g=$APP.sg.g(c);e=$APP.vi.g(c);var m=$APP.U.g(c);c=$APP.ai.g(c);k.disabled=h;$APP.n(d)?k.setAttribute("required",""):k.removeAttribute("required");typeof c==="string"&&$APP.O(c,"")?k.setAttribute("name",c):k.removeAttribute("name");typeof e==="string"&&
4
- $APP.O(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;k.value=$APP.n(m)?m:"";a.setAttribute("data-size",g);$APP.n(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.C.h(c,"")?k.setAttribute("aria-label",$APP.n(e)?e:"select"):k.removeAttribute("aria-label")}}return null},dz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
- g=e;if($APP.n($APP.n(g)?e!==d:g))c.removeChild(e);else break}d=$APP.u($APP.dc(b));b=null;for(g=e=0;;)if(g<e){var h=b.D(null,g),k=h.tagName.toLowerCase();($APP.C.h(k,"option")||$APP.C.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.uc(d)?(e=$APP.mb(d),d=$APP.nb(d),b=e,e=$APP.B(e)):(b=$APP.x(d),e=b.tagName.toLowerCase(),($APP.C.h(e,"option")||$APP.C.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.y(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return cz(a)}return null},
6
- ez=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");return $APP.n(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},fz=function(a){return function(){return dz(a)}},gz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",
7
- $APP.l(c,"change"));d.removeEventListener("slotchange",$APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},hz=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.K(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},iz=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=
8
- null&&$APP.O(b)?(b=""+$APP.T.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},kz=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return jz}});hz(b,"disabled","disabled");hz(b,"required","required");iz(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
2
+ var ZD=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=new $APP.Q(null,6,[$APP.aj,a.hasAttribute("disabled"),$APP.Sg,a.hasAttribute("required"),$APP.lj,a.getAttribute("size"),$APP.fi,a.getAttribute("placeholder"),$APP.Rj,a.getAttribute("value"),$APP.Ai,a.getAttribute("name")],null);var d=$APP.O(c),e=$APP.I(d,$APP.aj),g=$APP.I(d,$APP.Sg),h=$APP.I(d,$APP.lj);c=$APP.I(d,$APP.fi);var k=$APP.I(d,$APP.Rj);d=$APP.I(d,$APP.Ai);e=$APP.K(e);g=$APP.K(g);h=typeof h==="string"&&$APP.M(YD,h)?h:
3
+ "md";c=new $APP.Q(null,6,[$APP.V,e,$APP.yh,g,$APP.Pg,h,$APP.Mj,c,$APP.ri,k,$APP.mj,d],null);if($APP.P(c,$APP.l(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.l(b,"wrapper");k=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");h=$APP.V.g(c);d=$APP.yh.g(c);g=$APP.Pg.g(c);e=$APP.Mj.g(c);var m=$APP.ri.g(c);c=$APP.mj.g(c);k.disabled=h;$APP.n(d)?k.setAttribute("required",""):k.removeAttribute("required");typeof c==="string"&&$APP.P(c,"")?k.setAttribute("name",c):k.removeAttribute("name");typeof e==="string"&&
4
+ $APP.P(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;k.value=$APP.n(m)?m:"";a.setAttribute("data-size",g);$APP.n(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.C.h(c,"")?k.setAttribute("aria-label",$APP.n(e)?e:"select"):k.removeAttribute("aria-label")}}return null},$D=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
+ g=e;if($APP.n($APP.n(g)?e!==d:g))c.removeChild(e);else break}d=$APP.u($APP.fc(b));b=null;for(g=e=0;;)if(g<e){var h=b.H(null,g),k=h.tagName.toLowerCase();($APP.C.h(k,"option")||$APP.C.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.nb(d),d=$APP.ob(d),b=e,e=$APP.B(e)):(b=$APP.w(d),e=b.tagName.toLowerCase(),($APP.C.h(e,"option")||$APP.C.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.z(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return ZD(a)}return null},
6
+ aE=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");return $APP.n(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},bE=function(a){return function(){return $D(a)}},cE=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",
7
+ $APP.l(c,"change"));d.removeEventListener("slotchange",$APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},dE=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.K(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},eE=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=
8
+ null&&$APP.P(b)?(b=""+$APP.T.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},gE=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return fE}});dE(b,"disabled","disabled");dE(b,"required","required");eE(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
9
9
  h=document.createElement("option"),k=document.createElement("span"),m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:0.5rem;--x-select-font-size-sm:0.75rem;--x-select-font-size-md:0.875rem;--x-select-font-size-lg:1rem;--x-select-padding-inline:0.75rem;--x-select-bg:#ffffff;--x-select-bg-disabled:#f8fafc;--x-select-fg:#0f172a;--x-select-fg-disabled:#94a3b8;--x-select-placeholder-fg:#94a3b8;--x-select-border:#cbd5e1;--x-select-border-hover:#94a3b8;--x-select-border-focus:#3b82f6;--x-select-chevron:#64748b;--x-select-focus-ring:#93c5fd;--x-select-shadow:0 1px 2px rgba(15,23,42,0.06);--x-select-transition-duration:140ms;}@media (prefers-color-scheme:dark){:host{--x-select-bg:#1f2937;--x-select-bg-disabled:#111827;--x-select-fg:#f1f5f9;--x-select-border:#374151;--x-select-border-hover:#4b5563;--x-select-border-focus:#60a5fa;--x-select-chevron:#94a3b8;}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
10
10
  e.setAttribute("part","wrapper");g.setAttribute("part","select");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");h.setAttribute("data-placeholder","");h.setAttribute("value","");h.hidden=!0;h.disabled=!0;h.selected=!0;k.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3cpolyline points\x3d"4 6 8 10 12 6"/\x3e\x3c/svg\x3e';
11
- g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}gz(this);c=$APP.l(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.l(c,"slot"),e=ez(this),g=fz(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);dz(this);return cz(this)};b.disconnectedCallback=function(){return gz(this)};b.attributeChangedCallback=
12
- function(c,d,e){return $APP.O(d,e)?cz(this):null};return a},lz=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",kz())};var bz=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),jz="disabled required size placeholder value name".split(" ");$APP.sd(["select-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.W,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_select.init",lz);export const init=lz;
11
+ g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}cE(this);c=$APP.l(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.l(c,"slot"),e=aE(this),g=bE(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);$D(this);return ZD(this)};b.disconnectedCallback=function(){return cE(this)};b.attributeChangedCallback=
12
+ function(c,d,e){return $APP.P(d,e)?ZD(this):null};return a},hE=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",gE())};var YD=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),fE="disabled required size placeholder value name".split(" ");$APP.yd(["select-change",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,2,[$APP.ri,$APP.X,$APP.W,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_select.init",hE);export const init=hE;
package/dist/x-sidebar.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var pG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},qG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.pg(new $APP.Q(null,3,[$APP.Y,c,$APP.zi,!0,$APP.Li,!0],null))))},sG=function(a,b){$APP.yc(rG,b)&&qG(a,"dismiss",new $APP.Q(null,1,[$APP.qh,b],null))},tG=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},uG=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
3
- (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},vG=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
4
- a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},wG=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.Wd($APP.dc(c)):$APP.Fd;var d=$APP.l(a,"_panel");if($APP.oc(c))return b.preventDefault(),$APP.n(d)?uG(a):null;a=document.activeElement;d=$APP.x(c);c=$APP.fc(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.C.h(a,c)?(b.preventDefault(),d.focus()):null},xG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
2
+ var yN=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},zN=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.Lg(new $APP.Q(null,3,[$APP.Y,c,$APP.Tj,!0,$APP.jk,!0],null))))},BN=function(a,b){$APP.M(AN,b)&&zN(a,"dismiss",new $APP.Q(null,1,[$APP.gi,b],null))},CN=function(a){var b=window.getComputedStyle(a);return $APP.P("none",b.display)&&$APP.P("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},DN=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
3
+ (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},EN=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
4
+ a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},FN=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.ee($APP.fc(c)):$APP.Md;var d=$APP.l(a,"_panel");if($APP.sc(c))return b.preventDefault(),$APP.n(d)?DN(a):null;a=document.activeElement;d=$APP.w(c);c=$APP.ic(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.q(e)&&$APP.C.h(a,c)?(b.preventDefault(),d.focus()):null},GN=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
5
5
  a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
6
- d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},TG=function(a){xG(a);var b=$APP.l(a,"_prevState");b=$APP.n(b)?b:$APP.td;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
- h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,q=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.N(new $APP.Q(null,8,[yG,c,zG,d,AG,e,BG,g,CG,h,DG,k,EG,m,FG,$APP.K(q.matches)],null));k=$APP.I(c,yG);h=$APP.I(c,zG);d=$APP.I(c,AG);e=$APP.I(c,BG);m=$APP.I(c,CG);q=$APP.I(c,DG);g=$APP.I(c,EG);c=$APP.I(c,FG);d=$APP.yc(GG,d)?d:$APP.ri.g(HG);e=$APP.yc(IG,e)?e:$APP.Ng.g(HG);var r=$APP.Ih.g(HG);m=m==null?null:""+$APP.T.g(m);m=m==null?null:(0,$APP.Vf)(m);$APP.u(m)?(m=
8
- Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.Vf)(q):null;q=$APP.u(q)?q:null;q=$APP.n(q)?q:$APP.W.g(HG);k=$APP.N(new $APP.Q(null,1,[yG,k],null));k=$APP.I(k,yG);k=$APP.K(k);h=$APP.K(h);g=g<m?"modal":e;r=$APP.C.h(g,"modal");var v=$APP.C.h(g,"overlay"),w=$APP.C.h(g,"docked");c=$APP.Xe([$APP.ji,JG,KG,LG,$APP.Ih,MG,NG,OG,PG,$APP.W,$APP.ri,QG,RG,SG],[k,g,!k,w&&h,m,w,h,e,k&&(r||v),q,d,$APP.K(c),r,v]);k=$APP.N(c);d=$APP.I(k,JG);e=$APP.I(k,$APP.ri);g=$APP.I(k,$APP.ji);h=$APP.I(k,LG);k=
9
- $APP.I(k,QG);a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=RG.g(c);$APP.n(d)&&(d=$APP.ji.g(c),$APP.n(d)&&(d=RG.g(b),d=$APP.n(d)?$APP.ji.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.Wd($APP.Ed(tG,$APP.dc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
- a._restoreFocusTarget=document.activeElement,e=$APP.pg(d),a._tabbables=e,$APP.u(d)?$APP.x(d).focus():uG(a)):(d=RG.g(b),$APP.n(d)&&(d=$APP.ji.g(b),$APP.n(d)&&(d=RG.g(c),d=$APP.n(d)?$APP.ji.g(c):d,d=$APP.p(d))),$APP.n(d)&&vG(a));e=$APP.N(c);d=$APP.I(e,$APP.W);e=$APP.I(e,KG);g=$APP.l(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.N(c);d=$APP.I(d,PG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
11
- $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.N(c);d=$APP.I(h,$APP.ji);e=$APP.I(h,$APP.ri);g=$APP.I(h,JG);h=$APP.I(h,LG);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.O($APP.ji.g(b),$APP.ji.g(c))&&(b=$APP.ji.g(c),qG(a,"toggle",new $APP.Q(null,1,[$APP.ji,$APP.K(b)],null)));a._prevState=c},
12
- UG=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.n(function(){var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);return $APP.n(e)?$APP.ji.g(c):e}())?$APP.C.h(d,"Escape")?(b.preventDefault(),sG(a,"escape"),pG(a,"open",!1)):$APP.n(function(){var e=RG.g(c);return $APP.n(e)?$APP.C.h(d,"Tab"):e}())?wG(a,b):null:null},VG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.la(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);
13
- $APP.n(e)?(c=$APP.ji.g(c),b=$APP.n(c)?$APP.C.h(b.target,d):c):b=e;$APP.n(b)?(sG(a,"backdrop"),b=pG(a,"open",!1)):b=null;return b},onKeydown:function(b){return UG(a,b)},onResize:function(){return TG(a)}})},WG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return pG(this,"open",$APP.K(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return pG(this,
14
- "collapsed",$APP.K(b))},enumerable:!0,configurable:!0})},YG=function(){var a=class extends HTMLElement{};a.observedAttributes=XG;a.prototype.connectedCallback=function(){xG(this);VG(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",
15
- $APP.l(b,"onResize"));this._listening=!0}return TG(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return vG(this)};a.prototype.attributeChangedCallback=
16
- function(b,c,d){return $APP.O(c,d)?TG(this):null};WG(a.prototype);return a},ZG=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",YG())},OG=new $APP.M(null,"declared-variant","declared-variant",-2054964950),$G=new $APP.M(null,"collapsed","collapsed",-628494523),EG=new $APP.M(null,"viewport-width","viewport-width",-1146235948),KG=new $APP.M(null,"aria-hidden","aria-hidden",399337029),FG=new $APP.M(null,"prefers-reduced-motion","prefers-reduced-motion",
17
- -2023150975),NG=new $APP.M(null,"collapsed-requested","collapsed-requested",1573505800),CG=new $APP.M(null,"breakpoint-attr","breakpoint-attr",-250275627),BG=new $APP.M(null,"variant-attr","variant-attr",-1143729279),JG=new $APP.M(null,"effective-variant","effective-variant",-829495195),QG=new $APP.M(null,"reduced-motion","reduced-motion",79621277),PG=new $APP.M(null,"show-backdrop","show-backdrop",-532209910),MG=new $APP.M(null,"is-docked","is-docked",875310728),zG=new $APP.M(null,"collapsed-attr",
18
- "collapsed-attr",-1535396832),RG=new $APP.M(null,"is-modal","is-modal",1610761086),AG=new $APP.M(null,"placement-attr","placement-attr",-1321967286),SG=new $APP.M(null,"is-overlay","is-overlay",1953921119),DG=new $APP.M(null,"label-attr","label-attr",-571749887),yG=new $APP.M(null,"open-attr","open-attr",-1772289801),LG=new $APP.M(null,"collapsed-applied","collapsed-applied",-1696231706);var XG="open collapsed placement variant breakpoint label".split(" "),GG=$APP.nf(["right","left"]),IG=$APP.nf(["overlay","docked","modal"]),rG=$APP.nf(["backdrop","escape"]),HG=new $APP.Q(null,6,[$APP.ri,"left",$APP.Ng,"docked",$APP.Ih,768,$APP.W,"Sidebar",$APP.ji,!1,$G,!1],null);$APP.sd(["toggle",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.ji,$APP.Di],null)],null),"dismiss",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.qh,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_sidebar.init",ZG);export const init=ZG;
6
+ d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},bO=function(a){GN(a);var b=$APP.l(a,"_prevState");b=$APP.n(b)?b:$APP.zd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
+ h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.O(new $APP.Q(null,8,[HN,c,IN,d,JN,e,KN,g,LN,h,MN,k,NN,m,ON,$APP.K(p.matches)],null));k=$APP.I(c,HN);h=$APP.I(c,IN);d=$APP.I(c,JN);e=$APP.I(c,KN);m=$APP.I(c,LN);p=$APP.I(c,MN);g=$APP.I(c,NN);c=$APP.I(c,ON);d=$APP.M(PN,d)?d:$APP.Hj.g(QN);e=$APP.M(RN,e)?e:$APP.sh.g(QN);var r=$APP.Oi.g(QN);m=m==null?null:""+$APP.T.g(m);m=m==null?null:(0,$APP.sg)(m);$APP.u(m)?(m=Number(m),
8
+ m=$APP.n(Number.isFinite(m))?m:r):m=r;p=p!=null?(0,$APP.sg)(p):null;p=$APP.u(p)?p:null;p=$APP.n(p)?p:$APP.W.g(QN);k=$APP.O(new $APP.Q(null,1,[HN,k],null));k=$APP.I(k,HN);k=$APP.K(k);h=$APP.K(h);g=g<m?"modal":e;r=$APP.C.h(g,"modal");var v=$APP.C.h(g,"overlay"),x=$APP.C.h(g,"docked");c=$APP.ff([$APP.zj,SN,TN,UN,$APP.Oi,VN,WN,XN,YN,$APP.W,$APP.Hj,ZN,$N,aO],[k,g,!k,x&&h,m,x,h,e,k&&(r||v),p,d,$APP.K(c),r,v]);k=$APP.O(c);d=$APP.I(k,SN);e=$APP.I(k,$APP.Hj);g=$APP.I(k,$APP.zj);h=$APP.I(k,UN);k=$APP.I(k,ZN);
9
+ a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=$N.g(c);$APP.n(d)&&(d=$APP.zj.g(c),$APP.n(d)&&(d=$N.g(b),d=$APP.n(d)?$APP.zj.g(b):d,d=$APP.q(d)));$APP.n(d)?(d=$APP.ee($APP.Kd(CN,$APP.fc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
+ a._restoreFocusTarget=document.activeElement,e=$APP.Lg(d),a._tabbables=e,$APP.u(d)?$APP.w(d).focus():DN(a)):(d=$N.g(b),$APP.n(d)&&(d=$APP.zj.g(b),$APP.n(d)&&(d=$N.g(c),d=$APP.n(d)?$APP.zj.g(c):d,d=$APP.q(d))),$APP.n(d)&&EN(a));e=$APP.O(c);d=$APP.I(e,$APP.W);e=$APP.I(e,TN);g=$APP.l(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.O(c);d=$APP.I(d,YN);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
11
+ $APP.n(d)?"true":"false"),e.hidden=$APP.q(d),e.inert!=null&&(e.inert=$APP.q(d)));h=$APP.O(c);d=$APP.I(h,$APP.zj);e=$APP.I(h,$APP.Hj);g=$APP.I(h,SN);h=$APP.I(h,UN);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.P($APP.zj.g(b),$APP.zj.g(c))&&(b=$APP.zj.g(c),zN(a,"toggle",new $APP.Q(null,1,[$APP.zj,$APP.K(b)],null)));a._prevState=c},
12
+ cO=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.n(function(){var e=$N.g(c);e=$APP.n(e)?e:aO.g(c);return $APP.n(e)?$APP.zj.g(c):e}())?$APP.C.h(d,"Escape")?(b.preventDefault(),BN(a,"escape"),yN(a,"open",!1)):$APP.n(function(){var e=$N.g(c);return $APP.n(e)?$APP.C.h(d,"Tab"):e}())?FN(a,b):null:null},dO=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.la(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=$N.g(c);e=$APP.n(e)?e:aO.g(c);
13
+ $APP.n(e)?(c=$APP.zj.g(c),b=$APP.n(c)?$APP.C.h(b.target,d):c):b=e;$APP.n(b)?(BN(a,"backdrop"),b=yN(a,"open",!1)):b=null;return b},onKeydown:function(b){return cO(a,b)},onResize:function(){return bO(a)}})},eO=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return yN(this,"open",$APP.K(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return yN(this,
14
+ "collapsed",$APP.K(b))},enumerable:!0,configurable:!0})},gO=function(){var a=class extends HTMLElement{};a.observedAttributes=fO;a.prototype.connectedCallback=function(){GN(this);dO(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",
15
+ $APP.l(b,"onResize"));this._listening=!0}return bO(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return EN(this)};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){return $APP.P(c,d)?bO(this):null};eO(a.prototype);return a},hO=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",gO())},XN=new $APP.N(null,"declared-variant","declared-variant",-2054964950),iO=new $APP.N(null,"collapsed","collapsed",-628494523),NN=new $APP.N(null,"viewport-width","viewport-width",-1146235948),TN=new $APP.N(null,"aria-hidden","aria-hidden",399337029),ON=new $APP.N(null,"prefers-reduced-motion","prefers-reduced-motion",
17
+ -2023150975),WN=new $APP.N(null,"collapsed-requested","collapsed-requested",1573505800),LN=new $APP.N(null,"breakpoint-attr","breakpoint-attr",-250275627),KN=new $APP.N(null,"variant-attr","variant-attr",-1143729279),SN=new $APP.N(null,"effective-variant","effective-variant",-829495195),ZN=new $APP.N(null,"reduced-motion","reduced-motion",79621277),YN=new $APP.N(null,"show-backdrop","show-backdrop",-532209910),VN=new $APP.N(null,"is-docked","is-docked",875310728),IN=new $APP.N(null,"collapsed-attr",
18
+ "collapsed-attr",-1535396832),$N=new $APP.N(null,"is-modal","is-modal",1610761086),JN=new $APP.N(null,"placement-attr","placement-attr",-1321967286),aO=new $APP.N(null,"is-overlay","is-overlay",1953921119),MN=new $APP.N(null,"label-attr","label-attr",-571749887),HN=new $APP.N(null,"open-attr","open-attr",-1772289801),UN=new $APP.N(null,"collapsed-applied","collapsed-applied",-1696231706);var fO="open collapsed placement variant breakpoint label".split(" "),PN=$APP.Ef(["right","left"]),RN=$APP.Ef(["overlay","docked","modal"]),AN=$APP.Ef(["backdrop","escape"]),QN=new $APP.Q(null,6,[$APP.Hj,"left",$APP.sh,"docked",$APP.Oi,768,$APP.W,"Sidebar",$APP.zj,!1,iO,!1],null);$APP.yd(["toggle",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.zj,$APP.Yj],null)],null),"dismiss",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.gi,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_sidebar.init",hO);export const init=hO;
@@ -1,8 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mz=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},qz=function(a){var b=new $APP.Q(null,4,[$APP.Ng,a.getAttribute("variant"),nz,a.getAttribute("animation"),$APP.Fg,a.getAttribute("width"),$APP.Ci,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.I(c,$APP.Ng),e=$APP.I(c,nz);b=$APP.I(c,$APP.Fg);c=$APP.I(c,$APP.Ci);d=typeof d==="string"&&$APP.yc(oz,d)?d:"rect";e=typeof e==="string"&&$APP.yc(pz,e)?e:"pulse";b=new $APP.Q(null,4,[$APP.Ng,d,nz,e,$APP.Fg,mz(b),$APP.Ci,mz(c)],null);d=
3
- $APP.N(b);b=$APP.I(d,$APP.Ng);e=$APP.I(d,nz);c=$APP.I(d,$APP.Fg);d=$APP.I(d,$APP.Ci);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},rz=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"rect"},set:function(b){return typeof b===
4
- "string"&&$APP.O("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b===
5
- "string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},tz=function(){var a=class extends HTMLElement{};a.observedAttributes=sz;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,
6
- "__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}qz(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&qz(this);return null};rz(a.prototype);return a},uz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",tz());return null},
8
- nz=new $APP.M(null,"animation","animation",-1248293244);var oz=new $APP.S(null,new $APP.Q(null,3,["text",null,"rect",null,"circle",null],null),null),pz=new $APP.S(null,new $APP.Q(null,3,["none",null,"pulse",null,"wave",null],null),null),sz=["variant","animation","width","height"];$APP.ja("baredom.exports.x_skeleton.init",uz);export const init=uz;
2
+ var iE=function(a){return typeof a==="string"&&$APP.P("",a)?a:null},lE=function(a){var b=new $APP.Q(null,4,[$APP.sh,a.getAttribute("variant"),$APP.ej,a.getAttribute("animation"),$APP.eh,a.getAttribute("width"),$APP.Xj,a.getAttribute("height")],null);var c=$APP.O(b),d=$APP.I(c,$APP.sh),e=$APP.I(c,$APP.ej);b=$APP.I(c,$APP.eh);c=$APP.I(c,$APP.Xj);d=typeof d==="string"&&$APP.M(jE,d)?d:"rect";e=typeof e==="string"&&$APP.M(kE,e)?e:"pulse";b=new $APP.Q(null,4,[$APP.sh,d,$APP.ej,e,$APP.eh,iE(b),$APP.Xj,iE(c)],
3
+ null);d=$APP.O(b);b=$APP.I(d,$APP.sh);e=$APP.I(d,$APP.ej);c=$APP.I(d,$APP.eh);d=$APP.I(d,$APP.Xj);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},mE=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?
4
+ b:"rect"},set:function(b){return typeof b==="string"&&$APP.P("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.P("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");
5
+ return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.P("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.P("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},oE=function(){var a=class extends HTMLElement{};a.observedAttributes=nE;
6
+ a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}lE(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&lE(this);return null};mE(a.prototype);return a},pE=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",oE());return null};var jE=new $APP.S(null,new $APP.Q(null,3,["text",null,"rect",null,"circle",null],null),null),kE=new $APP.S(null,new $APP.Q(null,3,["none",null,"pulse",null,"wave",null],null),null),nE=["variant","animation","width","height"];$APP.ja("baredom.exports.x_skeleton.init",pE);export const init=pE;
package/dist/x-slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},mu=function(a,b,c){return a.setAttribute(b,c)},nu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},su=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),g=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.Xe([$APP.Ni,$APP.pi,$APP.Si,$APP.ai,$APP.U,$APP.bi,$APP.Gi,$APP.sg,$APP.Yg,$APP.W,$APP.Pi,$APP.Uh,ou],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.N(h);h=$APP.I(k,$APP.Uh);var m=$APP.I(k,ou),q=$APP.I(k,$APP.Ni),r=$APP.I(k,$APP.pi),v=$APP.I(k,$APP.Si),w=$APP.I(k,$APP.U),z=$APP.I(k,$APP.ai),A=$APP.I(k,$APP.bi),D=$APP.I(k,
4
- $APP.Gi),G=$APP.I(k,$APP.sg),J=$APP.I(k,$APP.W),E=$APP.I(k,$APP.Yg);k=$APP.I(k,$APP.Pi);q=lu(q,0);E=lu(E,100);w=$APP.eg.h($APP.dg.h(lu(w,0),q),E);$APP.C.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.T.g(m):"1");G=typeof G==="string"&&$APP.yc(pu,G)?G:"md";r=$APP.K(r);A=$APP.K(A);v=$APP.K(v);var R=E>q?$APP.eg.h($APP.dg.h((w-q)/(E-q)*100,0),100):0;h=$APP.Xe([$APP.Ni,$APP.Vi,$APP.ai,$APP.U,$APP.Gi,qu,$APP.sg,$APP.Yg,$APP.W,$APP.Pi,$APP.Uh,$APP.V,ou,ru],[q,
5
- A,typeof z==="string"&&$APP.O("",z)?z:null,w,typeof D==="string"&&$APP.O("",D)?D:null,v,G,E,typeof J==="string"&&$APP.O("",J)?J:null,typeof k==="string"&&$APP.O("",k)?k:null,typeof h==="string"&&$APP.O("",h)?h:null,r,m,R]);m=$APP.N(h);z=$APP.I(m,$APP.Uh);D=$APP.I(m,$APP.V);J=$APP.I(m,ou);k=$APP.I(m,ru);v=$APP.I(m,$APP.Ni);q=$APP.I(m,$APP.Vi);h=$APP.I(m,$APP.U);A=$APP.I(m,$APP.Gi);E=$APP.I(m,qu);r=$APP.I(m,$APP.sg);w=$APP.I(m,$APP.W);G=$APP.I(m,$APP.Yg);m=$APP.I(m,$APP.Pi);R=(R=w!=null)?R:E;c.setAttribute("data-size",
6
- r);nu(a,"data-disabled",D);nu(a,"data-readonly",q);d.style.display=$APP.n(R)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(E)?""+$APP.T.g(h):"";g.style.display=$APP.n(E)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(k.toFixed(2))+"%");mu(b,"min",""+$APP.T.g(v));mu(b,"max",""+$APP.T.g(G));b.setAttribute("step",J);$APP.O(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));mu(b,"aria-valuemin",""+$APP.T.g(v));mu(b,"aria-valuemax",""+$APP.T.g(G));
7
- mu(b,"aria-valuenow",""+$APP.T.g(h));b.setAttribute("aria-readonly",$APP.n(q)?"true":"false");$APP.n(z)?b.setAttribute("aria-label",z):w!=null?b.setAttribute("aria-label",w):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(D)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
- $APP.T.g(h)):null}return null},tu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},uu=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return tu(a,"x-slider-input",
9
- {value:c,min:d,max:e})}},vu=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return tu(a,"x-slider-change",{value:b,min:c,max:d})}},xu=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.yc(wu,b.key):c;return $APP.n(c)?
10
- b.preventDefault():null}},yu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},zu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return nu(this,
11
- c,$APP.K(d))}})},Au=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?mu(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Cu=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Bu}});zu(b,"disabled","disabled");zu(b,"readOnly","readonly");zu(b,"showValue","show-value");Au(b,
12
- "value","value");Au(b,"min","min");Au(b,"max","max");Au(b,"step","step");Au(b,"name","name");Au(b,"label","label");Au(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:#60a5fa;--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-focus-ring:#93c5fd;--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}";
13
- e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(k);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}yu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
- "input"),d=uu(this),e=vu(this),g=xu(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return su(this)};b.disconnectedCallback=function(){return yu(this)};b.attributeChangedCallback=function(){return su(this)};b.formDisabledCallback=function(c){nu(this,"disabled",$APP.K(c));return su(this)};b.formResetCallback=function(){mu(this,"value",""+$APP.T.g(0));return su(this)};return a},Du=function(){return $APP.n(customElements.get("x-slider"))?
15
- null:customElements.define("x-slider",Cu())},qu=new $APP.M(null,"show-value?","show-value?",-1960833108),ru=new $APP.M(null,"fill-percent","fill-percent",-1813848228),ou=new $APP.M(null,"step","step",1288888124);var pu=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Bu="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
- $APP.Xe([$APP.Ni,$APP.pi,$APP.wg,$APP.ai,$APP.U,$APP.sg,$APP.si,$APP.Yg,$APP.W,ou],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"show-value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"readonly"],null),new $APP.Q(null,
17
- 2,[$APP.Z,$APP.X,$APP.Hg,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"step"],null)]);$APP.sd(["x-slider-input",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.zh,$APP.Ni,$APP.zh,$APP.Yg,$APP.zh],null)],null),"x-slider-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.zh,$APP.Ni,$APP.zh,$APP.Yg,$APP.zh],null)],null)]);var wu=new $APP.S(null,new $APP.Q(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ja("baredom.exports.x_slider.init",Du);export const init=Du;
2
+ var rx=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},sx=function(a,b,c){return a.setAttribute(b,c)},tx=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},yx=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),g=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.ff([$APP.lk,$APP.Fj,$APP.rk,$APP.mj,$APP.ri,$APP.nj,$APP.ek,$APP.Pg,$APP.Hh,$APP.W,$APP.ok,$APP.cj,ux],[a.getAttribute("min"),
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.O(h);h=$APP.I(k,$APP.cj);var m=$APP.I(k,ux),p=$APP.I(k,$APP.lk),r=$APP.I(k,$APP.Fj),v=$APP.I(k,$APP.rk),x=$APP.I(k,$APP.ri),y=$APP.I(k,$APP.mj),A=$APP.I(k,$APP.nj),D=$APP.I(k,
4
+ $APP.ek),F=$APP.I(k,$APP.Pg),J=$APP.I(k,$APP.W),G=$APP.I(k,$APP.Hh);k=$APP.I(k,$APP.ok);p=rx(p,0);G=rx(G,100);x=$APP.Ag.h($APP.zg.h(rx(x,0),p),G);$APP.C.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.q(isNaN(m))&&m>0?""+$APP.T.g(m):"1");F=typeof F==="string"&&$APP.M(vx,F)?F:"md";r=$APP.K(r);A=$APP.K(A);v=$APP.K(v);var R=G>p?$APP.Ag.h($APP.zg.h((x-p)/(G-p)*100,0),100):0;h=$APP.ff([$APP.lk,$APP.uk,$APP.mj,$APP.ri,$APP.ek,wx,$APP.Pg,$APP.Hh,$APP.W,$APP.ok,$APP.cj,$APP.V,ux,xx],[p,
5
+ A,typeof y==="string"&&$APP.P("",y)?y:null,x,typeof D==="string"&&$APP.P("",D)?D:null,v,F,G,typeof J==="string"&&$APP.P("",J)?J:null,typeof k==="string"&&$APP.P("",k)?k:null,typeof h==="string"&&$APP.P("",h)?h:null,r,m,R]);m=$APP.O(h);y=$APP.I(m,$APP.cj);D=$APP.I(m,$APP.V);J=$APP.I(m,ux);k=$APP.I(m,xx);v=$APP.I(m,$APP.lk);p=$APP.I(m,$APP.uk);h=$APP.I(m,$APP.ri);A=$APP.I(m,$APP.ek);G=$APP.I(m,wx);r=$APP.I(m,$APP.Pg);x=$APP.I(m,$APP.W);F=$APP.I(m,$APP.Hh);m=$APP.I(m,$APP.ok);R=(R=x!=null)?R:G;c.setAttribute("data-size",
6
+ r);tx(a,"data-disabled",D);tx(a,"data-readonly",p);d.style.display=$APP.n(R)?"flex":"none";e.textContent=$APP.n(x)?x:"";e.style.display=x!=null?"":"none";g.textContent=$APP.n(G)?""+$APP.T.g(h):"";g.style.display=$APP.n(G)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(k.toFixed(2))+"%");sx(b,"min",""+$APP.T.g(v));sx(b,"max",""+$APP.T.g(F));b.setAttribute("step",J);$APP.P(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));sx(b,"aria-valuemin",""+$APP.T.g(v));sx(b,"aria-valuemax",""+$APP.T.g(F));
7
+ sx(b,"aria-valuenow",""+$APP.T.g(h));b.setAttribute("aria-readonly",$APP.n(p)?"true":"false");$APP.n(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(D)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
+ $APP.T.g(h)):null}return null},zx=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},Ax=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return zx(a,"x-slider-input",
9
+ {value:c,min:d,max:e})}},Bx=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return zx(a,"x-slider-change",{value:b,min:c,max:d})}},Dx=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.M(Cx,b.key):c;return $APP.n(c)?
10
+ b.preventDefault():null}},Ex=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},Fx=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return tx(this,
11
+ c,$APP.K(d))}})},Gx=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.P(d)?sx(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Ix=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Hx}});Fx(b,"disabled","disabled");Fx(b,"readOnly","readonly");Fx(b,"showValue","show-value");Gx(b,
12
+ "value","value");Gx(b,"min","min");Gx(b,"max","max");Gx(b,"step","step");Gx(b,"name","name");Gx(b,"label","label");Gx(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:#60a5fa;--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-focus-ring:#93c5fd;--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}";
13
+ e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(k);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}Ex(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
+ "input"),d=Ax(this),e=Bx(this),g=Dx(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return yx(this)};b.disconnectedCallback=function(){return Ex(this)};b.attributeChangedCallback=function(){return yx(this)};b.formDisabledCallback=function(c){tx(this,"disabled",$APP.K(c));return yx(this)};b.formResetCallback=function(){sx(this,"value",""+$APP.T.g(0));return yx(this)};return a},Jx=function(){return $APP.n(customElements.get("x-slider"))?
15
+ null:customElements.define("x-slider",Ix())},wx=new $APP.N(null,"show-value?","show-value?",-1960833108),xx=new $APP.N(null,"fill-percent","fill-percent",-1813848228),ux=new $APP.N(null,"step","step",1288888124);var vx=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Hx="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
+ $APP.ff([$APP.lk,$APP.Fj,$APP.Ug,$APP.mj,$APP.ri,$APP.Pg,$APP.Ij,$APP.Hh,$APP.W,ux],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"show-value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"readonly"],null),new $APP.Q(null,2,[$APP.Z,
17
+ $APP.X,$APP.U,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"step"],null)]);$APP.yd(["x-slider-input",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.ui,$APP.lk,$APP.ui,$APP.Hh,$APP.ui],null)],null),"x-slider-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.ui,$APP.lk,$APP.ui,$APP.Hh,$APP.ui],null)],null)]);var Cx=new $APP.S(null,new $APP.Q(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ja("baredom.exports.x_slider.init",Jx);export const init=Jx;