@vanelsas/baredom 1.0.0 → 1.2.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 (71) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +14 -4
  3. package/dist/base.js +368 -349
  4. package/dist/x-alert.js +19 -19
  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 +46 -46
  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 +10 -10
  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-stack.js +20 -0
  47. package/dist/x-scroll-story.js +38 -0
  48. package/dist/x-scroll-timeline.js +51 -0
  49. package/dist/x-scroll.js +43 -0
  50. package/dist/x-search-field.js +14 -14
  51. package/dist/x-select.js +9 -9
  52. package/dist/x-sidebar.js +16 -16
  53. package/dist/x-skeleton.js +6 -7
  54. package/dist/x-slider.js +16 -16
  55. package/dist/x-spacer.js +5 -5
  56. package/dist/x-spinner.js +5 -5
  57. package/dist/x-stat.js +11 -11
  58. package/dist/x-stepper.js +16 -16
  59. package/dist/x-switch.js +10 -10
  60. package/dist/x-tab.js +7 -7
  61. package/dist/x-table-cell.js +23 -23
  62. package/dist/x-table-row.js +10 -10
  63. package/dist/x-table.js +15 -15
  64. package/dist/x-tabs.js +11 -12
  65. package/dist/x-text-area.js +19 -19
  66. package/dist/x-timeline-item.js +24 -24
  67. package/dist/x-timeline.js +9 -9
  68. package/dist/x-toast.js +24 -24
  69. package/dist/x-toaster.js +8 -8
  70. package/dist/x-typography.js +11 -0
  71. package/package.json +47 -2
@@ -0,0 +1,38 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var TO=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Ag.h(0,$APP.Bg.h(1,a))):.5},UO=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Ag.h(.1,$APP.Bg.h(.9,a))):.5},VO=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Ag.h(1,$APP.Bg.h(1E3,a))):50},WO=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?e:g;var h=$APP.dc(a,d),k=$APP.N(h);h=$APP.H(k,
3
+ $APP.Gh);k=$APP.H(k,$APP.ih);e=h<=b&&k>b?d:e;g=h<=b?d:g;d+=1}},YO=function(a){var b=$APP.l(a,"__xScrollStoryRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),k=document.createElement("slot"),m=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:300ms;--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100vh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-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;}[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;}}";
4
+ d.setAttribute("part","container");d.setAttribute("role","region");e.setAttribute("part","media");h.setAttribute("name","media");var p=document.createElement("div");p.setAttribute("part","indicator");e.appendChild(p);e.appendChild(h);g.setAttribute("part","steps");g.appendChild(k);d.appendChild(e);d.appendChild(g);m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);a.__xScrollStoryRefs=new $APP.Q(null,
5
+ 6,[$APP.Yh,b,$APP.xj,d,XO,e,$APP.Sj,g,$APP.Si,k,$APP.Wh,m],null);return $APP.l(a,"__xScrollStoryRefs")},bP=function(a){a=$APP.gf([$APP.Dh,$APP.Oj,$APP.yj,$APP.eh,$APP.Zh,$APP.ii,$APP.Bi,$APP.wj,ZO],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);
6
+ var b=$APP.N(a);a=$APP.H(b,$APP.Bi);var c=$APP.H(b,$APP.wj),d=$APP.H(b,ZO),e=$APP.H(b,$APP.Dh),g=$APP.H(b,$APP.Oj),h=$APP.H(b,$APP.yj),k=$APP.H(b,$APP.eh),m=$APP.H(b,$APP.Zh);b=$APP.H(b,$APP.ii);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.K($O,m)?m:"left";return $APP.gf([$APP.wk,$APP.Rh,$APP.jj,aP,$APP.W,$APP.bi,$APP.V,$APP.Qj,$APP.ei],[m,c!=null,TO(k),UO(d),$APP.n(e)?e:"",b!=null,a!=null,VO(g),h!=null])},cP=function(a){a=YO(a);a=$APP.N(a);return $APP.H(a,$APP.Si).assignedElements()},
7
+ dP=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},eP=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.O(a,"")?a:null},fP=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Mg(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},gP=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},hP=function(a,b,c){var d=$APP.l(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.O(d,c)){d>=0&&d<b.length&&
8
+ b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?a.setAttribute("data-active-index",""+$APP.S.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?eP(b[d]):null;b=c>=0&&c<b.length?eP(b[c]):null;fP(a,"x-scroll-story-step-change",new $APP.Q(null,4,[$APP.sh,c,$APP.xi,b,$APP.ck,d,$APP.xk,e],null));a=$APP.N($APP.l(a,"__xScrollStoryRefs"));a=$APP.H(a,$APP.Wh);gP(a,"Step "+$APP.S.g(c+1)+" active")}},iP=function(a,
9
+ b,c,d){var e=b.length;var g=$APP.l(a,"__xScrollStoryStepStates");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.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.B(c)){k=$APP.dc(c,h);k=$APP.N(k);var m=$APP.H(k,$APP.Gh),p=$APP.H(k,$APP.ih),r=g[h];k=m<=d&&p>d;var v=eP(b[h]),x=m;m=p-m;m=m<=0?0:$APP.Ag.h(0,$APP.Bg.h(1,(d-x)/m));$APP.q(r)&&k?(g[h]=!0,fP(a,"x-scroll-story-step-enter",new $APP.Q(null,3,[$APP.sh,
10
+ h,$APP.xi,v,$APP.vj,m],null))):$APP.n($APP.n(r)?!k:r)&&(g[h]=!1,fP(a,"x-scroll-story-step-leave",new $APP.Q(null,3,[$APP.sh,h,$APP.xi,v,$APP.vj,m],null)))}h+=1}else break},jP=function(a){var b=function(){var m=$APP.l(a,"__xScrollStoryModel");return $APP.n(m)?m:bP(a)}();if(!$APP.n($APP.V.g(b))){var c=cP(a),d=c.length,e=window.innerHeight,g=e*$APP.jj.g(b),h=function(){for(var m=0,p=$APP.Nd;;){if(m>=d)return p;var r=c[m].getBoundingClientRect();m+=1;p=$APP.kf.h(p,new $APP.Q(null,2,[$APP.Gh,r.top,$APP.ih,
11
+ r.top+r.height],null))}}();b=WO(h,g);var k=$APP.N($APP.l(a,"__xScrollStoryRefs"));k=$APP.H(k,$APP.Sj).getBoundingClientRect();e=$APP.Ag.h(0,$APP.Bg.h(1,(e-k.top)/(e+k.height)));k=$APP.l(a,"__xScrollStoryLastProg");hP(a,c,b);iP(a,c,h,g);if(k==null||Math.abs(e-k)>.001)a.__xScrollStoryLastProg=e,g=b>=0&&b<d?eP(c[b]):null,fP(a,"x-scroll-story-progress",new $APP.Q(null,3,[$APP.vj,e,$APP.zk,b,$APP.Qi,g],null))}a.__xScrollStoryRAF=null},kP=function(a){return function d(c){if($APP.n(function(){var k=a.isConnected;
12
+ return $APP.n(k)?(k=$APP.l(a,"__xScrollStoryVisible"),$APP.n(k)?$APP.q($APP.l(a,"__xScrollStoryAutoplayPaused")):k):k}())){var e=$APP.l(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var k=$APP.ei.g(e);return $APP.n(k)?$APP.q($APP.V.g(e)):k}return e}())){var g=$APP.l(a,"__xScrollStoryAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Qj.g(e)*g);$APP.n(function(){var k=$APP.Rh.g(e);return $APP.n(k)?window.scrollY-h<
13
+ .5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.ma(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},lP=function(a){if($APP.n($APP.l(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");
14
+ return $APP.n(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?eP(d[c]):null;return fP(a,"x-scroll-story-autoplay-pause",new $APP.Q(null,3,[$APP.vj,b,$APP.zk,c,$APP.Qi,d],null))},mP=function(a){if($APP.n($APP.l(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.ma(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(kP(a)));
15
+ var b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.l(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?eP(d[c]):null;return fP(a,"x-scroll-story-autoplay-resume",new $APP.Q(null,3,[$APP.vj,b,$APP.zk,c,$APP.Qi,d],null))}return null},nP=function(a){var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.l(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&
16
+ (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.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=
17
+ !1;a.__xScrollStoryAutoplayLast=null},oP=function(a){if($APP.l(a,"__xScrollStoryAutoplayRAF")==null){var b=$APP.l(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var p=$APP.ei.g(b);return $APP.n(p)?(p=$APP.q($APP.V.g(b)))?(p=$APP.l(a,"__xScrollStoryVisible"),$APP.n(p)?!dP():p):p:p}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return lP(a)},d=function(){return mP(a)},e=function(){return $APP.n($APP.l(a,
18
+ "__xScrollStoryAutoplayPaused"))?mP(a):null},g=function(){return lP(a)},h=function(){return mP(a)},k=function(p){return $APP.C.h(p.code,"Space")?(p.preventDefault(),lP(a)):null},m=function(p){return $APP.C.h(p.code,"Space")?mP(a):null};a.addEventListener("mousedown",c);a.addEventListener("mouseup",d);a.addEventListener("mouseleave",e);a.addEventListener("touchstart",g,{passive:!0});a.addEventListener("touchend",h,{passive:!0});a.addEventListener("keydown",k);a.addEventListener("keyup",m);$APP.ma(a,
19
+ "__xScrollStoryAutoplayHandlers",{mousedown:c,mouseup:d,mouseleave:e,touchstart:g,touchend:h,keydown:k,keyup:m});$APP.ma(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(kP(a)))}}return null},pP=function(a){a=$APP.l(a,"__xScrollStoryModel");return $APP.n(a)?$APP.V.g(a):a},qP=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.q(pP(a))&&!dP():b):b}())?$APP.n($APP.l(a,"__xScrollStoryRAF"))?null:$APP.ma(a,"__xScrollStoryRAF",
20
+ requestAnimationFrame(function(){return jP(a)})):null},rP=function(a){a=$APP.l(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.q($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},sP=function(a){a=$APP.l(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},tP=function(a,b){b=b[0].isIntersecting;var c=$APP.N($APP.l(a,"__xScrollStoryRefs"));
21
+ c=$APP.H(c,$APP.Wh);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(pP(a)))return null;rP(a);jP(a);gP(c,"Story section entered viewport");fP(a,"x-scroll-story-enter",new $APP.Q(null,1,[$APP.vj,function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null));b=$APP.l(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.ei.g(b):b)?oP(a):null}sP(a);nP(a);if($APP.n(pP(a)))return null;gP(c,"Story section left viewport");return fP(a,"x-scroll-story-leave",new $APP.Q(null,1,[$APP.vj,
22
+ function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null))},uP=function(a){function b(){return $APP.n($APP.l(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,jP(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.l(a,"__xScrollStoryVisible"))?jP(a):null}var d=YO(a);d=$APP.N(d);$APP.H(d,$APP.Si).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ma(a,"__xScrollStoryHandlers",{scroll:function(){return qP(a)},slot:c,resize:b,
23
+ scrollAttached:!1})},vP=function(a){var b=$APP.l(a,"__xScrollStoryHandlers");if($APP.n(b)){sP(a);var c=$APP.l(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.Si.g(c);var d=$APP.l(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},wP=function(a){var b=$APP.l(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();
24
+ b=new IntersectionObserver(function(c){return tP(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},xP=function(a){a=cP(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},yP=function(a){var b=bP(a);if($APP.O($APP.l(a,"__xScrollStoryModel"),b)){var c=$APP.N(b),d=$APP.H(c,$APP.wk),e=$APP.H(c,aP);b=$APP.H(c,$APP.V);var g=$APP.H(c,$APP.W),h=YO(a);h=$APP.N(h);var k=$APP.H(h,$APP.xj),m=$APP.H(h,XO);$APP.H(h,$APP.Wh);a.setAttribute("data-layout",d);$APP.C.h(d,
25
+ "top")?m.style.width="":m.style.width="var(--x-scroll-story-media-width,"+$APP.S.g(e*100)+"%)";$APP.u(g)?k.setAttribute("aria-label",g):k.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(xP(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,sP(a),nP(a)):$APP.n($APP.l(a,"__xScrollStoryVisible"))&&(rP(a),jP(a));c=$APP.ei.g(c);b=$APP.n(c)?(b=$APP.q(b))?$APP.l(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?oP(a):nP(a)}},zP=function(a){Object.defineProperty(a,"layout",{get:function(){var b=
26
+ this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.S.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return TO(this.getAttribute("threshold"))},set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.S.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return UO(this.getAttribute("split"))},
27
+ set:function(b){return b!=null?this.setAttribute("split",""+$APP.S.g(b)):this.removeAttribute("split")},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=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
28
+ $APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.l(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplay",{get:function(){return this.hasAttribute("autoplay")},
29
+ set:function(b){return $APP.n(b)?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplaySpeed",{get:function(){return VO(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.S.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)?
30
+ this.setAttribute("autoplay-loop",""):this.removeAttribute("autoplay-loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"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.J($APP.l(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},
31
+ BP=function(){var a=class extends HTMLElement{};a.observedAttributes=AP;a.prototype.connectedCallback=function(){YO(this);vP(this);uP(this);wP(this);yP(this);return null};a.prototype.disconnectedCallback=function(){nP(this);xP(this);if($APP.n($APP.l(this,"__xScrollStoryVisible"))){var b=$APP.l(this,"__xScrollStoryLastProg");fP(this,"x-scroll-story-leave",new $APP.Q(null,1,[$APP.vj,$APP.n(b)?b:0],null))}vP(this);b=$APP.l(this,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStoryIO=null);
32
+ this.__xScrollStoryVisible=!1;this.__xScrollStoryActiveIndex=-1;return this.__xScrollStoryStepStates=this.__xScrollStoryLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&yP(this);return null};zP(a.prototype);return a},CP=function(){$APP.n(customElements.get("x-scroll-story"))||customElements.define("x-scroll-story",BP());return null},ZO=new $APP.M(null,"split-raw","split-raw",-455766786),aP=new $APP.M(null,"split","split",-599435118),XO=new $APP.M(null,"media","media",
33
+ -1066138403);var AP="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
34
+ $APP.gf([$APP.pi,$APP.Og,$APP.rh,$APP.Fj,$APP.wk,$APP.zk,$APP.jj,$APP.bk,aP,$APP.W,$APP.hh,$APP.vj],[new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.U],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.U,$APP.Sg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.Sg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null),new $APP.Q(null,
35
+ 1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,2,[$APP.Z,$APP.U,$APP.Sg,!0],null)]);
36
+ $APP.zd(["x-scroll-story-step-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.sh,$APP.U,$APP.xi,$APP.X,$APP.ck,$APP.U,$APP.xk,$APP.X],null),$APP.Dj,!1],null),"x-scroll-story-step-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.sh,$APP.U,$APP.xi,$APP.X,$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-story-step-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.sh,$APP.U,$APP.xi,$APP.X,$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-story-progress",new $APP.Q(null,2,[$APP.Y,
37
+ new $APP.Q(null,3,[$APP.vj,$APP.U,$APP.zk,$APP.U,$APP.Qi,$APP.X],null),$APP.Dj,!1],null),"x-scroll-story-enter",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-story-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-story-autoplay-pause",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.U,$APP.zk,$APP.U,$APP.Qi,$APP.X],null),$APP.Dj,!1],null),"x-scroll-story-autoplay-resume",new $APP.Q(null,
38
+ 2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.U,$APP.zk,$APP.U,$APP.Qi,$APP.X],null),$APP.Dj,!1],null)]);var $O=new $APP.R(null,new $APP.Q(null,3,["right",null,"top",null,"left",null],null),null);$APP.ja("baredom.exports.x_scroll_story.init",CP);export const init=CP;
@@ -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.Ag.h(0,$APP.Bg.h(1,a))):.5},vr=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Ag.h(1,$APP.Bg.h(1E3,a))):50},wr=function(a,b){switch(a){case "alternating":return $APP.Sc(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.dc(a,d),k=$APP.N(h);h=$APP.H(k,$APP.Gh);k=$APP.H(k,$APP.ih);e=h<=b&&k>b?d:e;g=h<=b?d:g;d+=1}},yr=function(a,b,c){return b<=0?0:$APP.Ag.h(0,$APP.Bg.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.N(a),a=$APP.H(a,$APP.Ui),"M "+$APP.S.g(c)+" "+$APP.S.g(a);var e=$APP.w(a),g=$APP.Ui.g(e);e=0;for(g=new $APP.$d(null,1,5,$APP.ae,["M "+$APP.S.g(c)+" "+$APP.S.g(g)],null);;){if(e>=d-1)return $APP.sg(g);var h=$APP.dc(a,e),k=$APP.dc(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.kf.h(g,"C "+$APP.S.g(c+k)+" "+$APP.S.g(h)+" "+$APP.S.g(r)+" "+$APP.S.g(m)+" "+$APP.S.g(v)+" "+$APP.S.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.gf([$APP.Si,Br,Cr,Dr,Er,Fr,$APP.Yh,$APP.xj,Gr,$APP.Wh,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.gf([$APP.Dh,Jr,$APP.Oj,$APP.yj,$APP.eh,$APP.Zh,$APP.ii,
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.N(a);a=$APP.H(b,$APP.Bi);var c=$APP.H(b,$APP.wj),d=$APP.H(b,Lr),e=$APP.H(b,
9
+ $APP.Dh),g=$APP.H(b,Jr),h=$APP.H(b,$APP.Oj),k=$APP.H(b,$APP.yj),m=$APP.H(b,$APP.eh),p=$APP.H(b,$APP.Zh),r=$APP.H(b,$APP.ii);b=$APP.H(b,Kr);p=typeof p==="string"?p.trim().toLowerCase():null;p=$APP.K(Mr,p)?p:"alternating";g=typeof g==="string"?g.trim().toLowerCase():null;g=$APP.K(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.K(Or,b)?b:"straight";return $APP.gf([$APP.wk,$APP.Ah,$APP.Rh,Pr,$APP.jj,$APP.W,$APP.bi,$APP.V,$APP.Qj,$APP.zi,$APP.ei],
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.N(a);return $APP.H(a,$APP.Si).assignedElements()},Sr=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Tr=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.O(a,"")?a:null},Ur=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Mg(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},Vr=function(a,b){a=$APP.N($APP.l(a,"__xScrollTimelineRefs"));var c=
11
+ $APP.H(a,$APP.Wh);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.S.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.N($APP.l(a,"__xScrollTimelineRefs"));c=$APP.H(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.N($APP.l(a,"__xScrollTimelineRefs"));c=$APP.H(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.O(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.N($APP.l(a,"__xScrollTimelineRefs"));a=$APP.H(a,Hr);$APP.n(c)?a.style.height="0%":a.style.height=""+$APP.S.g(b*100)+"%"},as=function(a,b){var c=$APP.N($APP.l(a,"__xScrollTimelineRefs")),
14
+ d=$APP.H(c,$APP.xj),e=$APP.H(c,Br),g=$APP.H(c,Er);c=$APP.H(c,Cr);var h=function(){var G=$APP.l(a,"__xScrollTimelineModel");return $APP.n(G)?G: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 G=parseFloat(r);return $APP.n(isNaN(G))?60:G}();var v=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),x=function(){var G=parseFloat(v);return $APP.n(isNaN(G))?
15
+ 7:G/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 G=0,I=$APP.Nd;;){if(G>=A)return I;var F=b[G].getBoundingClientRect(),P=G+1;I=$APP.kf.h(I,new $APP.Q(null,2,[$APP.Ui,F.top+F.height/2-m,zr,wr(k,G)],null));G=P}}();h=Ar(D,h,y);e.setAttribute("viewBox","0 0 "+$APP.S.g(p)+" "+$APP.S.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.N($APP.l(a,"__xScrollTimelineRefs"));a=$APP.H(a,Cr);$APP.n(c)?a.setAttribute("stroke-dashoffset","1"):a.setAttribute("stroke-dashoffset",""+$APP.S.g(1-b))},cs=function(a,b,c){var d=$APP.l(a,"__xScrollTimelineActiveIndex");d=$APP.n(d)?d:-1;if($APP.O(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.S.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.sh,
18
+ c,$APP.xi,b,$APP.ck,d,$APP.xk,g],null));Vr(a,"Entry "+$APP.S.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.dc(c,h);k=$APP.N(k);var m=$APP.H(k,$APP.Gh),p=$APP.H(k,$APP.ih),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.sh,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.sh,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.Nd;;){if(r>=d)return v;var x=c[r].getBoundingClientRect();
20
+ r+=1;v=$APP.kf.h(v,new $APP.Q(null,2,[$APP.Gh,x.top,$APP.ih,x.top+x.height],null))}}(),k=xr(h,g),m=$APP.N($APP.l(a,"__xScrollTimelineRefs"));m=$APP.H(m,$APP.xj).getBoundingClientRect();e=$APP.Ag.h(0,$APP.Bg.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.dc(h,0);return($APP.Gh.g(D)+$APP.ih.g(D))/2}(),v=function(){var D=$APP.dc(h,d-1);return($APP.Gh.g(D)+$APP.ih.g(D))/2}()-r,x=$APP.dc(h,k),y=($APP.Gh.g(x)+$APP.ih.g(x))/2;
21
+ x=yr($APP.Gh.g(x),$APP.ih.g(x)-$APP.Gh.g(x),g);var A=k<d-1?function(){var D=$APP.dc(h,k+1);return($APP.Gh.g(D)+$APP.ih.g(D))/2}():y;return v<=0?1:$APP.Ag.h(0,$APP.Bg.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.ei.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.Rh.g(e);return $APP.n(k)?
23
+ window.scrollY-h<.5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,$APP.Ag.h(0,c-window.innerHeight)),a.__xScrollTimelineAutoplayLast=null)}return $APP.ma(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.ma(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.ei.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.ma(a,"__xScrollTimelineAutoplayHandlers",{mousedown:c,mouseup:d,mouseleave:e,touchstart:g,touchend:h,keydown:k,keyup:m});$APP.ma(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.ma(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.ei.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.N($APP.l(a,"__xScrollTimelineRefs"));h=$APP.H(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.S.g(r)+"px");x=$APP.n(g)?g[p]:g;$APP.n(x)&&(x.style.top=""+$APP.S.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.N(d);$APP.H(d,$APP.Si).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ma(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.O($APP.l(a,"__xScrollTimelineModel"),b)){b=$APP.N(b);var c=$APP.H(b,$APP.wk),
36
+ d=$APP.H(b,$APP.zi),e=$APP.H(b,$APP.V),g=$APP.H(b,$APP.W),h=$APP.H(b,$APP.Ah),k=Ir(a);k=$APP.N(k);k=$APP.H(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.O($APP.wk.g(m),c)||$APP.O($APP.zi.g(m),
37
+ d)||$APP.O($APP.Ah.g(m),h)||$APP.O($APP.V.g(m),e)?ps(a):($APP.O($APP.jj.g(m),$APP.jj.g(b))||$APP.O(Pr.g(m),Pr.g(b)))&&$APP.n($APP.l(a,"__xScrollTimelineVisible"))&&es(a));$APP.n(e)||(b=$APP.ei.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.S.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.S.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.S.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.O(b,""):b)?this.setAttribute("label",""+$APP.S.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.S.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.S.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.J($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.O(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.M(null,"track-svg","track-svg",-556455964),Hr=new $APP.M(null,"track-fill","track-fill",1852369499),Dr=new $APP.M(null,"entries","entries",-86943161),zr=new $APP.M(null,"side","side",389652279),Jr=new $APP.M(null,"marker-raw",
46
+ "marker-raw",2140891555),Gr=new $APP.M(null,"indicator","indicator",1928219637),Pr=new $APP.M(null,"no-progress?","no-progress?",-1599319890),Kr=new $APP.M(null,"track-raw","track-raw",751958776),Er=new $APP.M(null,"track-path","track-path",-1838135442),Fr=new $APP.M(null,"track-line","track-line",1370628624),Cr=new $APP.M(null,"fill-path","fill-path",-792439899),Lr=new $APP.M(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.gf([$APP.pi,$APP.Og,$APP.rh,$APP.Fj,$APP.wk,$APP.zk,$APP.Ah,$APP.jj,$APP.bk,$APP.W,$APP.hh,$APP.vj,new $APP.M(null,"noProgress","noProgress",-2114530658),$APP.zi],[new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.U],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.U,$APP.Sg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null),
48
+ new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.Sg,!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.U,$APP.Sg,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null)]);
49
+ $APP.zd(["x-scroll-timeline-entry-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.sh,$APP.U,$APP.xi,$APP.X,$APP.ck,$APP.U,$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.sh,$APP.U,$APP.xi,$APP.X,$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-timeline-entry-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.sh,$APP.U,$APP.xi,$APP.X,$APP.vj,$APP.U],null),$APP.Dj,!1],null),"x-scroll-timeline-progress",new $APP.Q(null,
50
+ 2,[$APP.Y,new $APP.Q(null,3,[$APP.vj,$APP.U,$APP.zk,$APP.U,$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.U],null),$APP.Dj,!1],null),"x-scroll-timeline-leave",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.vj,$APP.U],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.U,$APP.zk,$APP.U,$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.U,$APP.zk,$APP.U,$APP.Qi,$APP.X],null),$APP.Dj,!1],null)]);var Mr=new $APP.R(null,new $APP.Q(null,3,["right",null,"left",null,"alternating",null],null),null),Or=new $APP.R(null,new $APP.Q(null,2,["curved",null,"straight",null],null),null),Nr=new $APP.R(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 gQ=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},hQ=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},iQ=function(a,b){return $APP.n(a)?b>=3:a},jQ=function(a,b,c,d){a+=b;return $APP.n(iQ(d,c))?c<=0?0:$APP.Sc($APP.Sc(a,c)+c,c):c<=0?0:$APP.Ag.h(0,$APP.Bg.h(a,c-1))},mQ=function(a,b){var c=$APP.N(a);a=$APP.H(c,kQ);c=$APP.H(c,lQ);return $APP.n(iQ(c,b))?b>0:a>0},nQ=function(a,b){var c=$APP.N(a);
3
+ a=$APP.H(c,kQ);c=$APP.H(c,lQ);return $APP.n(iQ(c,b))?b>0:a<b-1},pQ=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.Yh,b,$APP.Vi,d,$APP.zi,e,$APP.Si,g,$APP.Ei,h,$APP.Zg,k,oQ,m,$APP.Wh,p],null);return $APP.l(a,"__xScrollRefs")},FQ=function(a){a=$APP.gf([qQ,$APP.Dh,rQ,$APP.vi,sQ,tQ,uQ,vQ,$APP.Bi,wQ,xQ],[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.N(a),c=$APP.H(b,wQ);a=$APP.H(b,vQ);var d=$APP.H(b,$APP.Bi),e=$APP.H(b,xQ),g=$APP.H(b,qQ),h=$APP.H(b,$APP.Dh),k=$APP.H(b,rQ),m=$APP.H(b,$APP.vi),p=$APP.H(b,sQ),r=$APP.H(b,tQ);b=$APP.H(b,uQ);
7
+ e=hQ(e,0);g=gQ(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.K(yQ,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.K(zQ,m)?m:"horizontal";return $APP.gf([kQ,AQ,BQ,$APP.ij,CQ,DQ,$APP.W,$APP.Vj,lQ,EQ,$APP.V],[e,g,c,m,b!=null,k!=null,$APP.n(h)?h:"",hQ(r,0),p!=null,$APP.Ag.h(500,hQ(a,5E3)),d!=null])},GQ=function(a){a=pQ(a);a=$APP.N(a);return $APP.H(a,$APP.Si).assignedElements()},HQ=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
+ IQ=function(a){return $APP.C.h("horizontal",$APP.ij.g(a))},JQ=function(a,b){a=GQ(a);return a.length>0?(a=a[0].getBoundingClientRect(),IQ(b)?a.width:a.height):0},KQ=function(a,b){return a.style.transform=b},LQ=function(a,b){a=a.getBoundingClientRect();return $APP.C.h("horizontal",$APP.ij.g(b))?a.width:a.height},MQ=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},NQ=function(a,b,c,d,e){a=$APP.Tc(a)*(b+c)-d;return $APP.n(e)?"translateX("+$APP.S.g(-a)+"px)":
9
+ "translateY("+$APP.S.g(-a)+"px)"},OQ=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.Tc(b);a[d].style.order=""+$APP.S.g($APP.Sc(d-c+e+b,b)-e);d+=1}else break},PQ=function(a,b){var c=pQ(a);c=$APP.N(c);var d=$APP.H(c,$APP.Vi);c=$APP.H(c,$APP.zi);var e=GQ(a),g=e.length,h=JQ(a,b),k=$APP.Vj.g(b),m=kQ.g(b),p=iQ(lQ.g(b),g);d=LQ(d,b);d=MQ(BQ.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.S.g(k)+"px";if($APP.n(p))return OQ(e,g,m),KQ(c,NQ(g,h,k,d,IQ(b)));for(a=0;;)if(a<g)e[a].style.order="",
10
+ a+=1;else break;a=m*(h+k)-d;return KQ(c,IQ(b)?"translateX("+$APP.S.g(-a)+"px)":"translateY("+$APP.S.g(-a)+"px)")}return null},QQ=function(a,b,c){var d=pQ(a);d=$APP.N(d);var e=$APP.H(d,$APP.Vi),g=$APP.H(d,$APP.zi),h=GQ(a),k=h.length,m=JQ(a,b),p=$APP.Vj.g(b),r=IQ(b);a=LQ(e,b);var v=MQ(BQ.g(b),a,m);c=-($APP.Tc(k)*(m+p)-v+c*(m+p));KQ(g,r?"translateX("+$APP.S.g(c)+"px)":"translateY("+$APP.S.g(c)+"px)");HQ()?(OQ(h,k,kQ.g(b)),KQ(g,NQ(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",OQ(h,k,kQ.g(b)),KQ(g,NQ(k,m,p,v,r)),g.offsetHeight,g.style.transition=""):null})},RQ=function(a,b,c,d){a=pQ(a);var e=$APP.N(a),g=$APP.H(e,oQ);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.S.g(h+1));k.setAttribute("aria-selected",""+$APP.S.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},SQ=function(a,b){a=pQ(a);a=$APP.N(a);a=$APP.H(a,oQ).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.S.g($APP.C.h(d,b))),d+=1;else break},TQ=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Mg(c),bubbles:!0,composed:!0,cancelable:$APP.J(d)});return a.dispatchEvent(b)},UQ=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");$APP.n(b)&&(clearInterval(b),
13
+ a.__xScrollAutoplayTid=null);return null},XQ=function(a){UQ(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.n(c)?c:FQ(a)}();$APP.n(function(){var c=DQ.g(b);return $APP.n(c)?$APP.q($APP.V.g(b)):c}())&&$APP.ma(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.n(a.isConnected)){var c=GQ(a).length;if(c>0){var d=kQ.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:FQ(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:FQ(a)}();c=jQ(d,1,c,lQ.g(e));
14
+ return $APP.O(d,c)?VQ?VQ(a,c,1):WQ.call(null,a,c,1):null}}return null},EQ.g(b)));return null},YQ=function(a){UQ(a);return XQ(a)},WQ=function(a){switch(arguments.length){case 2:return VQ(arguments[0],arguments[1],null);case 3:return VQ(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},VQ=function(a,b,c){var d=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:FQ(a)}(),e=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?
15
+ v:GQ(a).length}(),g=kQ.g(d);if(e>0&&$APP.q($APP.V.g(d))){var h=iQ(lQ.g(d),e),k=$APP.n(h)?e<=0?0:$APP.Sc($APP.Sc(b,e)+e,e):e<=0?0:$APP.Ag.h(0,$APP.Bg.h(b,e-1));b=k-g;if($APP.O(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:TQ(a,"x-scroll-loop",new $APP.Q(null,1,[$APP.dj,p],null),!0)}())){TQ(a,"x-scroll-start",new $APP.Q(null,2,[$APP.dj,p,$APP.zk,g],null),!1);d=$APP.zg.m(d,kQ,k);a.__xScrollModel=d;a.setAttribute("active-index",
16
+ ""+$APP.S.g(k));$APP.n(h)?QQ(a,d,c):PQ(a,d);SQ(a,k);h=pQ(a);b=$APP.N(h);h=$APP.H(b,$APP.Ei);c=$APP.H(b,$APP.Zg);b=$APP.H(b,$APP.Wh);h.disabled=!mQ(d,e);c.disabled=!nQ(d,e);b.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(e);TQ(a,"x-scroll-change",new $APP.Q(null,2,[$APP.zk,k,$APP.ck,g],null),!1);if(HQ())TQ(a,"x-scroll-end",new $APP.Q(null,1,[$APP.zk,k],null),!1);else{e=pQ(a);e=$APP.N(e);var r=$APP.H(e,$APP.zi);r.addEventListener("transitionend",function y(x){return $APP.C.h(x.target,r)?(r.removeEventListener("transitionend",
17
+ y),TQ(a,"x-scroll-end",new $APP.Q(null,1,[$APP.zk,k],null),!1)):null})}return YQ(a)}}}return null},ZQ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:FQ(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:GQ(a).length}();b=jQ(kQ.g(b),1,c,lQ.g(b));return VQ(a,b,1)},$Q=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:FQ(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:GQ(a).length}();
18
+ b=jQ(kQ.g(b),-1,c,lQ.g(b));return VQ(a,b,-1)},cR=function(a,b){function c(k){return aR.h?aR.h(a,k):aR.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.n(k)?k:FQ(a)}();if($APP.n($APP.V.g(d)))return null;var e=pQ(a);e=$APP.N(e);e=$APP.H(e,$APP.zi);var g=IQ(d);e.style.transition="none";UQ(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",p);return bR.h?bR.h(a,m):bR.call(null,a,m)};window.addEventListener("pointermove",
19
+ c);window.addEventListener("pointerup",h);return $APP.ma(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}())},aR=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.ma(c,"lastTime",Date.now());b=pQ(a);b=$APP.N(b);var g=$APP.H(b,$APP.Vi);b=$APP.H(b,$APP.zi);var h=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:FQ(a)}(),k=JQ(a,h),m=$APP.Vj.g(h);c=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?v:GQ(a).length}();var p=kQ.g(h),r=iQ(lQ.g(h),c);g=LQ(g,h);g=MQ(BQ.g(h),g,k);k=($APP.n(r)?$APP.Tc(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 KQ(b,$APP.n(d)?"translateX("+$APP.S.g(e)+"px)":"translateY("+$APP.S.g(e)+"px)")}}return null},bR=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.n(c)){a.__xScrollDragState=null;var d=pQ(a);d=$APP.N(d);$APP.H(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:FQ(a)}();var e=pQ(a);e=$APP.N(e);$APP.H(e,$APP.Vi);var g=JQ(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.n(k)?k:GQ(a).length}();e=kQ.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:jQ(e,d,h,lQ.g(c));$APP.C.h(d,e)?PQ(a,c):VQ(a,d,b<0?1:-1);return YQ(a)}}return null},dR=function(a,b){var c=function(){var e=$APP.l(a,"__xScrollModel");return $APP.n(e)?e:FQ(a)}();if($APP.n($APP.V.g(c)))return null;var d=
23
+ b.key;(c=IQ(c))&&$APP.C.h(d,"ArrowLeft")?($Q(a),d=!0):c&&$APP.C.h(d,"ArrowRight")?(ZQ(a),d=!0):!c&&$APP.C.h(d,"ArrowUp")?($Q(a),d=!0):!c&&$APP.C.h(d,"ArrowDown")?(ZQ(a),d=!0):$APP.C.h(d,"Home")?(VQ(a,0,null),d=!0):d=$APP.C.h(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.n(e)?e:GQ(a).length;VQ(a,e-1,null);return!0}();return d?b.preventDefault():null},eR=function(a){var b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:FQ(a)}(),c=GQ(a).length;a.__xScrollChildCount=
24
+ c;if(c>0&&kQ.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.S.g(d));$APP.ma(a,"__xScrollModel",$APP.zg.m(b,kQ,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:FQ(a)}();d=pQ(a);var e=$APP.N(d);d=$APP.H(e,$APP.Ei);var g=$APP.H(e,$APP.Zg);e=$APP.H(e,$APP.Wh);$APP.n(CQ.g(b))&&RQ(a,c,kQ.g(b),function(h){return VQ(a,h,null)});d.disabled=!mQ(b,c);g.disabled=!nQ(b,c);c>0&&(e.textContent="Slide "+$APP.S.g(kQ.g(b)+1)+" of "+$APP.S.g(c));return PQ(a,b)},fR=function(a){function b(){return YQ(a)}
25
+ function c(){return UQ(a)}function d(){return YQ(a)}function e(){return UQ(a)}function g(){return $APP.n(document.hidden)?UQ(a):YQ(a)}function h(){return eR(a)}function k(D){return cR(a,D)}function m(D){return dR(a,D)}function p(){return ZQ(a)}function r(){return $Q(a)}var v=pQ(a),x=$APP.N(v);v=$APP.H(x,$APP.Ei);var y=$APP.H(x,$APP.Zg),A=$APP.H(x,$APP.Si);x=$APP.H(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.ma(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:r,pdown:k,focusout:b})},gR=function(a){UQ(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,"__xScrollRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.Ei.g(c),e=$APP.Zg.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},hR=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.n(b)&&b.disconnect();
29
+ b=pQ(a);b=$APP.N(b);b=$APP.H(b,$APP.Vi);var c=new ResizeObserver(function(){if($APP.n(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.n(d)?d:FQ(a);return PQ(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},iR=function(a,b){b=$APP.N(b);var c=$APP.H(b,$APP.ij),d=$APP.H(b,AQ),e=$APP.H(b,CQ),g=$APP.H(b,$APP.V),h=$APP.H(b,$APP.W),k=$APP.H(b,kQ),m=pQ(a);m=$APP.N(m);var p=$APP.H(m,$APP.Vi),r=$APP.H(m,$APP.Ei),v=$APP.H(m,$APP.Zg);m=$APP.H(m,$APP.Wh);var x=function(){var y=$APP.l(a,"__xScrollChildCount");
30
+ return $APP.n(y)?y:GQ(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=!mQ(b,x);v.disabled=!nQ(b,x);a.tabIndex=$APP.n(g)?-1:0;$APP.n(e)&&RQ(a,x,k,function(y){return VQ(a,y,null)});$APP.n(e)||(c=pQ(a),c=$APP.N(c),$APP.H(c,oQ).innerHTML="");x>0&&(m.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(x));PQ(a,b);a.__xScrollModel=b},jR=
31
+ function(a){var b=FQ(a);$APP.O($APP.l(a,"__xScrollModel"),b)&&iR(a,b)},kR=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.S.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.S.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.Ag.h(500,hQ(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return gQ(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 hQ(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});
35
+ Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return hQ(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.S.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.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},mR=function(){var a=class extends HTMLElement{};a.observedAttributes=lR;a.prototype.connectedCallback=function(){pQ(this);gR(this);fR(this);hR(this);jR(this);XQ(this);return null};a.prototype.disconnectedCallback=function(){gR(this);var c=$APP.l(this,"__xScrollResizeObs");$APP.n(c)&&(c.disconnect(),
37
+ this.__xScrollResizeObs=null);c=GQ(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.O(d,e)&&(jR(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)&&YQ(this));return null};var b=a.prototype;kR(b);b.goTo=function(c){return VQ(this,c,null)};b.next=function(){return ZQ(this)};b.prev=function(){return $Q(this)};return a},nR=function(){$APP.n(customElements.get("x-scroll"))||
38
+ customElements.define("x-scroll",mR());return null},sQ=new $APP.M(null,"loop-attr","loop-attr",-132212822),BQ=new $APP.M(null,"snap","snap",-51714904),vQ=new $APP.M(null,"interval-raw","interval-raw",443967609),wQ=new $APP.M(null,"snap-raw","snap-raw",828444409),EQ=new $APP.M(null,"interval","interval",1708495417),xQ=new $APP.M(null,"active-index-raw","active-index-raw",1461571359),tQ=new $APP.M(null,"gap-raw","gap-raw",1566843410),lQ=new $APP.M(null,"loop?","loop?",457687798),DQ=new $APP.M(null,
39
+ "auto-play?","auto-play?",385278451),AQ=new $APP.M(null,"show-controls?","show-controls?",1318868354),uQ=new $APP.M(null,"show-indicators-attr","show-indicators-attr",1148535895),qQ=new $APP.M(null,"show-controls-attr","show-controls-attr",-894641087),rQ=new $APP.M(null,"auto-play-attr","auto-play-attr",329299716),kQ=new $APP.M(null,"active-index","active-index",864399296),CQ=new $APP.M(null,"show-indicators?","show-indicators?",-370587412),oQ=new $APP.M(null,"indicators","indicators",1312373003);var lR="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
+ $APP.gf([$APP.Fj,new $APP.M(null,"showIndicators","showIndicators",1780978055),BQ,$APP.zk,$APP.ij,new $APP.M(null,"showControls","showControls",1591218925),$APP.Zj,$APP.W,$APP.Vj,new $APP.M(null,"autoPlay","autoPlay",-561263241),EQ],[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.U],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.U],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null)]);
42
+ $APP.zd(["x-scroll-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.zk,$APP.U,$APP.ck,$APP.U],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.U],null),$APP.Dj,!1],null),"x-scroll-end",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,1,[$APP.zk,$APP.U],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 zQ=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),yQ=new $APP.R(null,new $APP.Q(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_scroll.init",nR);export const init=nR;
@@ -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.gi,a.getAttribute("placeholder"),$APP.Dh,a.getAttribute("label"),$APP.aj,a.hasAttribute("disabled"),$APP.Tg,a.hasAttribute("required"),$APP.Ch,a.getAttribute("autocomplete")],null);var e=$APP.N(d),g=$APP.H(e,$APP.Ai),h=$APP.H(e,$APP.Rj),k=$APP.H(e,$APP.gi),m=$APP.H(e,$APP.Dh),p=$APP.H(e,$APP.aj);d=$APP.H(e,$APP.Tg);e=$APP.H(e,$APP.Ch);g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";k=$APP.n(k)?
4
+ k:"";m=$APP.n(m)?m:"";p=$APP.J(p);d=$APP.J(d);e=typeof e==="string"&&$APP.K(Xm,e)?e:"off";d=new $APP.Q(null,7,[$APP.mj,g,$APP.si,h,$APP.Mj,k,$APP.W,m,$APP.V,p,$APP.zh,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.zh.g(d);c.autocomplete=$APP.sj.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.zh.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.J(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.O(d)?(d=""+$APP.S.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.J(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.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},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.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return Ym(this)};b.formDisabledCallback=function(c){Um(this,"disabled",$APP.J(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.R(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 IE=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.Tg,a.hasAttribute("required"),$APP.lj,a.getAttribute("size"),$APP.gi,a.getAttribute("placeholder"),$APP.Rj,a.getAttribute("value"),$APP.Ai,a.getAttribute("name")],null);var d=$APP.N(c),e=$APP.H(d,$APP.aj),g=$APP.H(d,$APP.Tg),h=$APP.H(d,$APP.lj);c=$APP.H(d,$APP.gi);var k=$APP.H(d,$APP.Rj);d=$APP.H(d,$APP.Ai);e=$APP.J(e);g=$APP.J(g);h=typeof h==="string"&&$APP.K(HE,h)?h:
3
+ "md";c=new $APP.Q(null,6,[$APP.V,e,$APP.zh,g,$APP.Qg,h,$APP.Mj,c,$APP.si,k,$APP.mj,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.zh.g(c);g=$APP.Qg.g(c);e=$APP.Mj.g(c);var m=$APP.si.g(c);c=$APP.mj.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},JE=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.ic(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.Ac(d)?(e=$APP.ob(d),d=$APP.pb(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 IE(a)}return null},
6
+ KE=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}},LE=function(a){return function(){return JE(a)}},ME=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},NE=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},OE=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.S.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},QE=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return PE}});NE(b,"disabled","disabled");NE(b,"required","required");OE(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}}ME(this);c=$APP.l(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.l(c,"slot"),e=KE(this),g=LE(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);JE(this);return IE(this)};b.disconnectedCallback=function(){return ME(this)};b.attributeChangedCallback=
12
+ function(c,d,e){return $APP.O(d,e)?IE(this):null};return a},RE=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",QE())};var HE=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),PE="disabled required size placeholder value name".split(" ");$APP.zd(["select-change",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,2,[$APP.si,$APP.X,$APP.W,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_select.init",RE);export const init=RE;
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 hO=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},iO=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.Mg(new $APP.Q(null,3,[$APP.Y,c,$APP.Tj,!0,$APP.jk,!0],null))))},kO=function(a,b){$APP.K(jO,b)&&iO(a,"dismiss",new $APP.Q(null,1,[$APP.hi,b],null))},lO=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},mO=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
3
+ (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},nO=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},oO=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.fe($APP.ic(c)):$APP.Nd;var d=$APP.l(a,"_panel");if($APP.uc(c))return b.preventDefault(),$APP.n(d)?mO(a):null;a=document.activeElement;d=$APP.w(c);c=$APP.lc(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},pO=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}},LO=function(a){pO(a);var b=$APP.l(a,"_prevState");b=$APP.n(b)?b:$APP.Ad;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.N(new $APP.Q(null,8,[qO,c,rO,d,sO,e,tO,g,uO,h,vO,k,wO,m,xO,$APP.J(p.matches)],null));k=$APP.H(c,qO);h=$APP.H(c,rO);d=$APP.H(c,sO);e=$APP.H(c,tO);m=$APP.H(c,uO);p=$APP.H(c,vO);g=$APP.H(c,wO);c=$APP.H(c,xO);d=$APP.K(yO,d)?d:$APP.Hj.g(zO);e=$APP.K(AO,e)?e:$APP.th.g(zO);var r=$APP.Oi.g(zO);m=m==null?null:""+$APP.S.g(m);m=m==null?null:(0,$APP.tg)(m);$APP.u(m)?(m=Number(m),
8
+ m=$APP.n(Number.isFinite(m))?m:r):m=r;p=p!=null?(0,$APP.tg)(p):null;p=$APP.u(p)?p:null;p=$APP.n(p)?p:$APP.W.g(zO);k=$APP.N(new $APP.Q(null,1,[qO,k],null));k=$APP.H(k,qO);k=$APP.J(k);h=$APP.J(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.gf([$APP.zj,BO,CO,DO,$APP.Oi,EO,FO,GO,HO,$APP.W,$APP.Hj,IO,JO,KO],[k,g,!k,x&&h,m,x,h,e,k&&(r||v),p,d,$APP.J(c),r,v]);k=$APP.N(c);d=$APP.H(k,BO);e=$APP.H(k,$APP.Hj);g=$APP.H(k,$APP.zj);h=$APP.H(k,DO);k=$APP.H(k,IO);
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=JO.g(c);$APP.n(d)&&(d=$APP.zj.g(c),$APP.n(d)&&(d=JO.g(b),d=$APP.n(d)?$APP.zj.g(b):d,d=$APP.q(d)));$APP.n(d)?(d=$APP.fe($APP.Ld(lO,$APP.ic($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.Mg(d),a._tabbables=e,$APP.u(d)?$APP.w(d).focus():mO(a)):(d=JO.g(b),$APP.n(d)&&(d=$APP.zj.g(b),$APP.n(d)&&(d=JO.g(c),d=$APP.n(d)?$APP.zj.g(c):d,d=$APP.q(d))),$APP.n(d)&&nO(a));e=$APP.N(c);d=$APP.H(e,$APP.W);e=$APP.H(e,CO);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.H(d,HO);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.N(c);d=$APP.H(h,$APP.zj);e=$APP.H(h,$APP.Hj);g=$APP.H(h,BO);h=$APP.H(h,DO);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.zj.g(b),$APP.zj.g(c))&&(b=$APP.zj.g(c),iO(a,"toggle",new $APP.Q(null,1,[$APP.zj,$APP.J(b)],null)));a._prevState=c},
12
+ MO=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.n(function(){var e=JO.g(c);e=$APP.n(e)?e:KO.g(c);return $APP.n(e)?$APP.zj.g(c):e}())?$APP.C.h(d,"Escape")?(b.preventDefault(),kO(a,"escape"),hO(a,"open",!1)):$APP.n(function(){var e=JO.g(c);return $APP.n(e)?$APP.C.h(d,"Tab"):e}())?oO(a,b):null:null},NO=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=JO.g(c);e=$APP.n(e)?e:KO.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)?(kO(a,"backdrop"),b=hO(a,"open",!1)):b=null;return b},onKeydown:function(b){return MO(a,b)},onResize:function(){return LO(a)}})},OO=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return hO(this,"open",$APP.J(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return hO(this,
14
+ "collapsed",$APP.J(b))},enumerable:!0,configurable:!0})},QO=function(){var a=class extends HTMLElement{};a.observedAttributes=PO;a.prototype.connectedCallback=function(){pO(this);NO(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 LO(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 nO(this)};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){return $APP.O(c,d)?LO(this):null};OO(a.prototype);return a},RO=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",QO())},GO=new $APP.M(null,"declared-variant","declared-variant",-2054964950),SO=new $APP.M(null,"collapsed","collapsed",-628494523),wO=new $APP.M(null,"viewport-width","viewport-width",-1146235948),CO=new $APP.M(null,"aria-hidden","aria-hidden",399337029),xO=new $APP.M(null,"prefers-reduced-motion","prefers-reduced-motion",
17
+ -2023150975),FO=new $APP.M(null,"collapsed-requested","collapsed-requested",1573505800),uO=new $APP.M(null,"breakpoint-attr","breakpoint-attr",-250275627),tO=new $APP.M(null,"variant-attr","variant-attr",-1143729279),BO=new $APP.M(null,"effective-variant","effective-variant",-829495195),IO=new $APP.M(null,"reduced-motion","reduced-motion",79621277),HO=new $APP.M(null,"show-backdrop","show-backdrop",-532209910),EO=new $APP.M(null,"is-docked","is-docked",875310728),rO=new $APP.M(null,"collapsed-attr",
18
+ "collapsed-attr",-1535396832),JO=new $APP.M(null,"is-modal","is-modal",1610761086),sO=new $APP.M(null,"placement-attr","placement-attr",-1321967286),KO=new $APP.M(null,"is-overlay","is-overlay",1953921119),vO=new $APP.M(null,"label-attr","label-attr",-571749887),qO=new $APP.M(null,"open-attr","open-attr",-1772289801),DO=new $APP.M(null,"collapsed-applied","collapsed-applied",-1696231706);var PO="open collapsed placement variant breakpoint label".split(" "),yO=$APP.Ff(["right","left"]),AO=$APP.Ff(["overlay","docked","modal"]),jO=$APP.Ff(["backdrop","escape"]),zO=new $APP.Q(null,6,[$APP.Hj,"left",$APP.th,"docked",$APP.Oi,768,$APP.W,"Sidebar",$APP.zj,!1,SO,!1],null);$APP.zd(["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.hi,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_sidebar.init",RO);export const init=RO;
@@ -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 SE=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},VE=function(a){var b=new $APP.Q(null,4,[$APP.th,a.getAttribute("variant"),$APP.ej,a.getAttribute("animation"),$APP.fh,a.getAttribute("width"),$APP.Xj,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.H(c,$APP.th),e=$APP.H(c,$APP.ej);b=$APP.H(c,$APP.fh);c=$APP.H(c,$APP.Xj);d=typeof d==="string"&&$APP.K(TE,d)?d:"rect";e=typeof e==="string"&&$APP.K(UE,e)?e:"pulse";b=new $APP.Q(null,4,[$APP.th,d,$APP.ej,e,$APP.fh,SE(b),$APP.Xj,SE(c)],
3
+ null);d=$APP.N(b);b=$APP.H(d,$APP.th);e=$APP.H(d,$APP.ej);c=$APP.H(d,$APP.fh);d=$APP.H(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")},WE=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.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");
5
+ return $APP.n(b)?b:""},set:function(b){return typeof b==="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})},YE=function(){var a=class extends HTMLElement{};a.observedAttributes=XE;
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}VE(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"))&&VE(this);return null};WE(a.prototype);return a},ZE=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",YE());return null};var TE=new $APP.R(null,new $APP.Q(null,3,["text",null,"rect",null,"circle",null],null),null),UE=new $APP.R(null,new $APP.Q(null,3,["none",null,"pulse",null,"wave",null],null),null),XE=["variant","animation","width","height"];$APP.ja("baredom.exports.x_skeleton.init",ZE);export const init=ZE;