@vanelsas/baredom 2.3.2 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +265 -264
  4. package/dist/integrity.json +98 -0
  5. package/dist/x-alert.js +17 -17
  6. package/dist/x-avatar-group.js +11 -11
  7. package/dist/x-avatar.js +14 -14
  8. package/dist/x-badge.js +11 -11
  9. package/dist/x-bento-grid.js +5 -5
  10. package/dist/x-bento-item.js +4 -4
  11. package/dist/x-breadcrumbs.js +14 -14
  12. package/dist/x-button.js +15 -15
  13. package/dist/x-cancel-dialogue.js +16 -16
  14. package/dist/x-card.js +7 -7
  15. package/dist/x-carousel.js +32 -32
  16. package/dist/x-chart.js +47 -47
  17. package/dist/x-checkbox.js +11 -11
  18. package/dist/x-chip.js +8 -8
  19. package/dist/x-collapse.js +10 -10
  20. package/dist/x-color-picker.js +42 -42
  21. package/dist/x-combobox.js +24 -24
  22. package/dist/x-command-palette.js +24 -24
  23. package/dist/x-container.js +6 -6
  24. package/dist/x-context-menu.js +18 -18
  25. package/dist/x-copy.js +22 -22
  26. package/dist/x-currency-field.js +22 -22
  27. package/dist/x-date-picker.js +37 -37
  28. package/dist/x-divider.js +8 -8
  29. package/dist/x-drawer.js +11 -11
  30. package/dist/x-dropdown.js +9 -9
  31. package/dist/x-fieldset.js +5 -5
  32. package/dist/x-file-download.js +7 -7
  33. package/dist/x-file-upload.js +26 -0
  34. package/dist/x-form-field.js +15 -15
  35. package/dist/x-form.js +10 -10
  36. package/dist/x-gaussian-blur.js +18 -18
  37. package/dist/x-grid.js +6 -6
  38. package/dist/x-icon.js +7 -7
  39. package/dist/x-image.js +18 -18
  40. package/dist/x-kinetic-font.js +28 -28
  41. package/dist/x-kinetic-typography.js +38 -38
  42. package/dist/x-liquid-dock.js +36 -36
  43. package/dist/x-liquid-fill.js +42 -42
  44. package/dist/x-liquid-glass.js +40 -40
  45. package/dist/x-menu-item.js +10 -10
  46. package/dist/x-menu.js +10 -10
  47. package/dist/x-metaball-cursor.js +27 -27
  48. package/dist/x-modal.js +11 -11
  49. package/dist/x-morph-stack.js +39 -39
  50. package/dist/x-navbar.js +13 -13
  51. package/dist/x-neural-glow.js +30 -30
  52. package/dist/x-notification-center.js +10 -10
  53. package/dist/x-organic-divider.js +16 -16
  54. package/dist/x-organic-progress.js +35 -35
  55. package/dist/x-organic-shape.js +12 -12
  56. package/dist/x-pagination.js +16 -16
  57. package/dist/x-particle-button.js +49 -49
  58. package/dist/x-popover.js +23 -23
  59. package/dist/x-progress-circle.js +8 -8
  60. package/dist/x-progress.js +8 -8
  61. package/dist/x-radio.js +11 -11
  62. package/dist/x-ripple-effect.js +11 -11
  63. package/dist/x-scroll-parallax.js +17 -17
  64. package/dist/x-scroll-stack.js +18 -18
  65. package/dist/x-scroll-story.js +34 -34
  66. package/dist/x-scroll-timeline.js +45 -45
  67. package/dist/x-scroll.js +40 -40
  68. package/dist/x-search-field.js +14 -14
  69. package/dist/x-select.js +9 -9
  70. package/dist/x-sidebar.js +16 -16
  71. package/dist/x-skeleton-group.js +13 -13
  72. package/dist/x-skeleton.js +1 -1
  73. package/dist/x-slider.js +16 -16
  74. package/dist/x-soft-body.js +20 -20
  75. package/dist/x-spacer.js +5 -5
  76. package/dist/x-spinner.js +5 -5
  77. package/dist/x-splash.js +13 -13
  78. package/dist/x-stat.js +11 -11
  79. package/dist/x-stepper.js +15 -15
  80. package/dist/x-switch.js +10 -10
  81. package/dist/x-tab.js +7 -7
  82. package/dist/x-table-cell.js +20 -20
  83. package/dist/x-table-row.js +10 -10
  84. package/dist/x-table.js +14 -14
  85. package/dist/x-tabs.js +11 -11
  86. package/dist/x-text-area.js +17 -17
  87. package/dist/x-theme.js +25 -25
  88. package/dist/x-timeline-item.js +20 -21
  89. package/dist/x-timeline.js +9 -9
  90. package/dist/x-toast.js +22 -22
  91. package/dist/x-toaster.js +8 -8
  92. package/dist/x-tooltip.js +12 -12
  93. package/dist/x-typography.js +8 -8
  94. package/dist/x-welcome-tour.js +66 -0
  95. package/package.json +10 -2
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var JU=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},MU=function(a){var b=new $APP.Q(null,7,[$APP.Ti,a.getAttribute("value"),$APP.Mk,a.getAttribute("max"),$APP.Tg,a.getAttribute("variant"),$APP.Kh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.hk,a.hasAttribute("show-value"),$APP.hm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Mk),e=$APP.D(c,$APP.Ti),g=$APP.D(c,$APP.Tg),h=$APP.D(c,$APP.Kh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
- $APP.hk);c=$APP.D(c,$APP.hm);d=JU(d,100);d=d>0?d:100;e=$APP.rh.i($APP.qh.i(JU(e,0),0),d);g=typeof g==="string"&&$APP.I(KU,g)?g:"default";h=typeof h==="string"&&$APP.I(LU,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.rh.i($APP.qh.i(e/d*100,0),100);b=$APP.zf([$APP.Tg,$APP.hk,$APP.Ti,$APP.Kh,$APP.hm,$APP.Km,$APP.Mk,$APP.U,$APP.zl],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.zl);l=$APP.D(p,$APP.Tg);d=$APP.D(p,
4
- $APP.hk);h=$APP.D(p,$APP.Ti);c=$APP.D(p,$APP.Kh);e=$APP.D(p,$APP.Km);g=$APP.D(p,$APP.hm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Mk);var q=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.r(g)&&h>=p,B=$APP.n(g)?75:100*(1-b/100);q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.T.g(100));
5
- v.setAttribute("stroke-dashoffset",""+$APP.T.g(B));x.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.r(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",
6
- e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.r(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.F(A)},NU=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
2
+ var iX=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},lX=function(a){var b=new $APP.R(null,7,[$APP.Yi,a.getAttribute("value"),$APP.Vk,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Mh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.nk,a.hasAttribute("show-value"),$APP.mm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Vk),e=$APP.D(c,$APP.Yi),g=$APP.D(c,$APP.Vg),h=$APP.D(c,$APP.Mh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
+ $APP.nk);c=$APP.D(c,$APP.mm);d=iX(d,100);d=d>0?d:100;e=$APP.sh.i($APP.oh.i(iX(e,0),0),d);g=typeof g==="string"&&$APP.I(jX,g)?g:"default";h=typeof h==="string"&&$APP.I(kX,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.sh.i($APP.oh.i(e/d*100,0),100);b=$APP.zf([$APP.Vg,$APP.nk,$APP.Yi,$APP.Mh,$APP.mm,$APP.Xm,$APP.Vk,$APP.U,$APP.Ll],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.Ll);l=$APP.D(p,$APP.Vg);d=$APP.D(p,
4
+ $APP.nk);h=$APP.D(p,$APP.Yi);c=$APP.D(p,$APP.Mh);e=$APP.D(p,$APP.Xm);g=$APP.D(p,$APP.mm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Vk);var q=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.r(g)&&h>=p,C=$APP.n(g)?75:100*(1-b/100);q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.T.g(100));
5
+ v.setAttribute("stroke-dashoffset",""+$APP.T.g(C));x.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.r(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",
6
+ e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.r(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.F(A)},mX=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
7
  "max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},PU=function(){var a=class extends HTMLElement{};a.observedAttributes=OU;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
8
+ set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},oX=function(){var a=class extends HTMLElement{};a.observedAttributes=nX;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
9
9
  "circle"),h=document.createElementNS("http://www.w3.org/2000/svg","circle"),l=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:var(--x-color-primary,#3b82f6);--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:var(--x-transition-duration,0.3s);}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
10
10
  d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");g.setAttribute("part","track");g.setAttribute("cx","18");g.setAttribute("cy","18");g.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");l.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);l.appendChild(m);
11
- d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}MU(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xProgressCircleInit"))&&MU(this);return null};NU(a.prototype);return a},QU=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
- PU());return null};var KU=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),LU=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),OU="value max variant size label show-value indeterminate".split(" ");$APP.Qd(["x-progress-circle-complete",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.Ti,$APP.W,$APP.Mk,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress_circle.init",QU);export const init=QU;
11
+ d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}lX(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xProgressCircleInit"))&&lX(this);return null};mX(a.prototype);return a},pX=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ oX());return null};var jX=new $APP.S(null,new $APP.R(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),kX=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),nX="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-circle-complete",new $APP.R(null,1,[$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.W,$APP.Vk,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress_circle.init",pX);export const init=pX;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var j5=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},m5=function(a){var b=new $APP.Q(null,7,[$APP.Ti,a.getAttribute("value"),$APP.Mk,a.getAttribute("max"),$APP.Tg,a.getAttribute("variant"),$APP.Kh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.hk,a.hasAttribute("show-value"),$APP.hm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Mk),e=$APP.D(c,$APP.Ti),g=$APP.D(c,$APP.Tg),h=$APP.D(c,$APP.Kh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
- $APP.hk);c=$APP.D(c,$APP.hm);d=j5(d,100);d=d>0?d:100;e=$APP.rh.i($APP.qh.i(j5(e,0),0),d);g=typeof g==="string"&&$APP.I(k5,g)?g:"default";h=typeof h==="string"&&$APP.I(l5,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.rh.i($APP.qh.i(e/d*100,0),100);b=$APP.zf([$APP.Tg,$APP.hk,$APP.Ti,$APP.Kh,$APP.hm,$APP.Km,$APP.Mk,$APP.U,$APP.zl],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.zl);l=$APP.D(p,$APP.Tg);d=$APP.D(p,
4
- $APP.hk);h=$APP.D(p,$APP.Ti);c=$APP.D(p,$APP.Kh);e=$APP.D(p,$APP.Km);g=$APP.D(p,$APP.hm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Mk);var q=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var B=(B=m!=null)?B:d;var E=$APP.k(a,"__xProgressCompleted"),G=$APP.r(g)&&h>=p;q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
5
- $APP.n(g)?"40%":""+$APP.T.g(b.toFixed(2))+"%";v.style.display=$APP.n(B)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),
6
- a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");G&&$APP.r(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.F(G)},n5=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",
2
+ var J7=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},M7=function(a){var b=new $APP.R(null,7,[$APP.Yi,a.getAttribute("value"),$APP.Vk,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Mh,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.nk,a.hasAttribute("show-value"),$APP.mm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Vk),e=$APP.D(c,$APP.Yi),g=$APP.D(c,$APP.Vg),h=$APP.D(c,$APP.Mh);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
+ $APP.nk);c=$APP.D(c,$APP.mm);d=J7(d,100);d=d>0?d:100;e=$APP.sh.i($APP.oh.i(J7(e,0),0),d);g=typeof g==="string"&&$APP.I(K7,g)?g:"default";h=typeof h==="string"&&$APP.I(L7,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.sh.i($APP.oh.i(e/d*100,0),100);b=$APP.zf([$APP.Vg,$APP.nk,$APP.Yi,$APP.Mh,$APP.mm,$APP.Xm,$APP.Vk,$APP.U,$APP.Ll],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.Ll);l=$APP.D(p,$APP.Vg);d=$APP.D(p,
4
+ $APP.nk);h=$APP.D(p,$APP.Yi);c=$APP.D(p,$APP.Mh);e=$APP.D(p,$APP.Xm);g=$APP.D(p,$APP.mm);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.Vk);var q=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var C=(C=m!=null)?C:d;var E=$APP.k(a,"__xProgressCompleted"),H=$APP.r(g)&&h>=p;q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
5
+ $APP.n(g)?"40%":""+$APP.T.g(b.toFixed(2))+"%";v.style.display=$APP.n(C)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),
6
+ a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.r(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.F(H)},N7=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",
7
7
  ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,
8
8
  "showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?
9
- b:""},set:function(b){return this.setAttribute("size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},p5=function(){var a=class extends HTMLElement{};a.observedAttributes=o5;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),
9
+ b:""},set:function(b){return this.setAttribute("size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},P7=function(){var a=class extends HTMLElement{};a.observedAttributes=O7;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),
10
10
  c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:var(--x-radius-full,9999px);--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:var(--x-color-primary,#3b82f6);--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:var(--x-font-size-sm,0.875rem);color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
11
- d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}m5(this);return null};a.prototype.disconnectedCallback=
12
- function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xProgressInit"))&&m5(this);return null};n5(a.prototype);return a},q5=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",p5());return null};var k5=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),l5=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),o5="value max variant size label show-value indeterminate".split(" ");$APP.Qd(["x-progress-complete",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.Ti,$APP.W,$APP.Mk,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress.init",q5);export const init=q5;
11
+ d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}M7(this);return null};a.prototype.disconnectedCallback=
12
+ function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xProgressInit"))&&M7(this);return null};N7(a.prototype);return a},Q7=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",P7());return null};var K7=new $APP.S(null,new $APP.R(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),L7=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),O7="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-complete",new $APP.R(null,1,[$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.W,$APP.Vk,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress.init",Q7);export const init=Q7;
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ft=function(a,b,c){return a.setAttribute(b,c)},gt=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},ht=function(a){a=$APP.zf([$APP.ml,$APP.Al,$APP.Lh,$APP.ai,$APP.nj,$APP.Gj,$APP.qm,$APP.Sj,$APP.xj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
- $APP.D(b,$APP.Sj);var c=$APP.D(b,$APP.xj),d=$APP.D(b,$APP.ml),e=$APP.D(b,$APP.Al),g=$APP.D(b,$APP.Lh),h=$APP.D(b,$APP.ai),l=$APP.D(b,$APP.nj),m=$APP.D(b,$APP.Gj);b=$APP.D(b,$APP.qm);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.ki,$APP.ei,$APP.Pm,$APP.zj,$APP.Rh,$APP.vj,$APP.Ti,$APP.Zj,$APP.Lm,$APP.Cl,$APP.X],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},it=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=ht(a);var d=$APP.X.g(b),
4
- e=$APP.zj.g(b);ft(c,"aria-checked",$APP.ei.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");ft(c,"aria-required",$APP.n($APP.ki.g(b))?"true":"false");ft(c,"aria-readonly",$APP.n($APP.Pm.g(b))?"true":"false");var g=$APP.Cl.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Zj.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Lm.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");gt(a,"data-checked",e);gt(a,"data-disabled",d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Ti.g(b):null):null}return null},jt=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.C.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},kt=
6
- function(a){a=jt(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.C.i(d,b)?0:-1:$APP.C.i(d,c)?0:-1,e.tabIndex=d):null})},lt=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},mt=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},nt=function(a){var b=ht(a),c=$APP.X.g(b),d=$APP.Pm.g(b),e=$APP.zj.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Ti.g(b);return lt(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),it(a),jt(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),it(g)):null}),kt(a),mt(a,{value:b,checked:!0})):null},ot=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?
8
- $APP.k(a,"control").focus():null},pt=function(a){return function(b){var c=b.key,d=jt(a),e=d.length,g=d.indexOf(a);if($APP.C.i(c," ")||$APP.C.i(c,"Enter"))return b.preventDefault(),nt(a);if($APP.C.i(c,"ArrowDown")||$APP.C.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.fd(g+1,e)],nt(b),ot(b)}else if($APP.C.i(c,"ArrowUp")||$APP.C.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.fd(g-1,e)],nt(b),ot(b);return null}},qt=function(a){return function(){return nt(a)}},rt=function(a){var b=
9
- $APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},st=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return gt(this,c,$APP.F(d))}})},tt=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
- get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?ft(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},vt=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return ut}});st(b,"checked","checked");st(b,"disabled","disabled");st(b,"readOnly","readonly");st(b,"required","required");tt(b,"name","name");tt(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,
2
+ var nt=function(a,b,c){return a.setAttribute(b,c)},ot=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},pt=function(a){a=$APP.zf([$APP.yl,$APP.Ml,$APP.Nh,$APP.Zh,$APP.sj,$APP.Lj,$APP.Cm,$APP.Uj,$APP.Cj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
+ $APP.D(b,$APP.Uj);var c=$APP.D(b,$APP.Cj),d=$APP.D(b,$APP.yl),e=$APP.D(b,$APP.Ml),g=$APP.D(b,$APP.Nh),h=$APP.D(b,$APP.Zh),l=$APP.D(b,$APP.sj),m=$APP.D(b,$APP.Lj);b=$APP.D(b,$APP.Cm);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.mi,$APP.ci,$APP.bn,$APP.Ej,$APP.Th,$APP.Aj,$APP.Yi,$APP.ek,$APP.Ym,$APP.Ol,$APP.X],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},qt=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=pt(a);var d=$APP.X.g(b),
4
+ e=$APP.Ej.g(b);nt(c,"aria-checked",$APP.ci.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");nt(c,"aria-required",$APP.n($APP.mi.g(b))?"true":"false");nt(c,"aria-readonly",$APP.n($APP.bn.g(b))?"true":"false");var g=$APP.Ol.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.ek.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Ym.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");ot(a,"data-checked",e);ot(a,"data-disabled",d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Yi.g(b):null):null}return null},rt=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.B.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},st=
6
+ function(a){a=rt(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.B.i(d,b)?0:-1:$APP.B.i(d,c)?0:-1,e.tabIndex=d):null})},tt=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},ut=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},vt=function(a){var b=pt(a),c=$APP.X.g(b),d=$APP.bn.g(b),e=$APP.Ej.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Yi.g(b);return tt(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),qt(a),rt(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),qt(g)):null}),st(a),ut(a,{value:b,checked:!0})):null},wt=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?
8
+ $APP.k(a,"control").focus():null},xt=function(a){return function(b){var c=b.key,d=rt(a),e=d.length,g=d.indexOf(a);if($APP.B.i(c," ")||$APP.B.i(c,"Enter"))return b.preventDefault(),vt(a);if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.fd(g+1,e)],vt(b),wt(b)}else if($APP.B.i(c,"ArrowUp")||$APP.B.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.fd(g-1,e)],vt(b),wt(b);return null}},yt=function(a){return function(){return vt(a)}},zt=function(a){var b=
9
+ $APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},At=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ot(this,c,$APP.F(d))}})},Bt=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
+ get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?nt(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Dt=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Ct}});At(b,"checked","checked");At(b,"disabled","disabled");At(b,"readOnly","readonly");At(b,"required","required");Bt(b,"name","name");Bt(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,
11
11
  "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:var(--x-color-border,#6b7280);--x-radio-bg:var(--x-color-surface,#ffffff);--x-radio-checked-color:var(--x-color-primary,#2563eb);--x-radio-dot-size:6px;--x-radio-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-radio-disabled-opacity:0.45;--x-radio-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:var(--x-color-border,#9ca3af);--x-radio-bg:var(--x-color-surface,#1f2937);--x-radio-checked-color:var(--x-color-primary,#3b82f6);--x-radio-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
12
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}rt(this);c=$APP.k(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=qt(this),e=pt(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
- g);it(this);return kt(this)};b.disconnectedCallback=function(){return rt(this)};b.attributeChangedCallback=function(){return it(this)};b.formDisabledCallback=function(c){gt(this,"disabled",$APP.F(c));return it(this)};b.formResetCallback=function(){this.removeAttribute("checked");return it(this)};return a},wt=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",vt())};var ut="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Qd(["x-radio-change-request",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,new $APP.Q(null,3,[$APP.Ti,$APP.Y,$APP.ok,$APP.Xj,$APP.Hl,$APP.Xj],null)],null),"x-radio-change",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,2,[$APP.Ti,$APP.Y,$APP.Dm,$APP.Xj],null)],null)]);$APP.ha("baredom.exports.x_radio.init",wt);export const init=wt;
12
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}zt(this);c=$APP.k(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=yt(this),e=xt(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);qt(this);return st(this)};b.disconnectedCallback=function(){return zt(this)};b.attributeChangedCallback=function(){return qt(this)};b.formDisabledCallback=function(c){ot(this,"disabled",$APP.F(c));return qt(this)};b.formResetCallback=function(){this.removeAttribute("checked");return qt(this)};return a},Et=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",Dt())};var Ct="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-radio-change-request",new $APP.R(null,2,[$APP.jm,!0,$APP.V,new $APP.R(null,3,[$APP.Yi,$APP.Y,$APP.vk,$APP.Zj,$APP.Tl,$APP.Zj],null)],null),"x-radio-change",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.Y,$APP.Qm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_radio.init",Et);export const init=Et;
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var IQ=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},JQ=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},KQ=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},LQ=function(a){var b=$APP.k(a,
2
+ var jT=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},kT=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},lT=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},mT=function(a){var b=$APP.k(a,
3
3
  "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
- g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.Q(null,3,[$APP.Ci,b,$APP.Cj,d,$APP.gk,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},OQ=function(a){a=new $APP.Q(null,4,[$APP.zk,a.getAttribute("intensity"),$APP.Qi,a.getAttribute("duration"),MQ,a.getAttribute("frequency"),$APP.Al,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.zk);var c=$APP.D(b,$APP.Qi),
5
- d=$APP.D(b,MQ);b=$APP.D(b,$APP.Al);return new $APP.Q(null,4,[$APP.qk,IQ(a),$APP.Uk,JQ(c),NQ,KQ(d),$APP.X,$APP.F(b)],null)},RQ=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
- e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.Q(null,3,[$APP.Yk,d,PQ,e,QQ,g],null)},
7
- SQ=function(a,b){var c=OQ(a);if(!$APP.n($APP.X.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.qk),e=$APP.D(c,$APP.Uk),g=$APP.D(c,NQ);c=LQ(a);c=$APP.M(c);var h=$APP.D(c,$APP.Cj),l=$APP.D(c,$APP.gk),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=RQ(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.Yk),q=$APP.D(m,PQ),v=$APP.D(m,QQ),x=b.clientX,y=b.clientY,A=performance.now(),B=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
- "url(#"+$APP.T.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.T.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function G(){var H=performance.now()-A;H=Math.min(1,H/e);var J=1-H;J=1-J*J*J;var S=g*(1-J*.7);v.setAttribute("scale",
9
- ""+$APP.T.g(d*(1-J)));q.setAttribute("baseFrequency",""+$APP.T.g(S));if(H>=1)return l.removeChild(p),l.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));H=requestAnimationFrame(G);return B.push(H)});B.push(b)}},TQ=function(a){function b(c){c.button===0&&SQ(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},UQ=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,
10
- d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.M(b);b=$APP.D(c,$APP.gk);for(c=$APP.D(c,$APP.Cj);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},VQ=function(a){Object.defineProperty(a,"intensity",{get:function(){return IQ(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
- this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return JQ(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return KQ(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
- ""+$APP.T.g(b))},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})},XQ=function(){var a=class extends HTMLElement{};a.observedAttributes=WQ;a.prototype.connectedCallback=function(){LQ(this);UQ(this);TQ(this);return null};a.prototype.disconnectedCallback=function(){UQ(this);return null};a.prototype.attributeChangedCallback=
13
- function(){return null};VQ(a.prototype);return a},YQ=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",XQ());return null},PQ=new $APP.K(null,"turb","turb",-804768361),MQ=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),QQ=new $APP.K(null,"disp","disp",-2047544334),NQ=new $APP.K(null,"frequency","frequency",-1408891382);var WQ=["intensity","duration","frequency","disabled"];$APP.Qd(["x-ripple-effect-start",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.xl,$APP.W,$APP.wl,$APP.W],null),$APP.Yl,!1],null),"x-ripple-effect-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.xl,$APP.W,$APP.wl,$APP.W],null),$APP.Yl,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",YQ);export const init=YQ;
4
+ g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.R(null,3,[$APP.Hi,b,$APP.Hj,d,$APP.mk,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},pT=function(a){a=new $APP.R(null,4,[$APP.Gk,a.getAttribute("intensity"),$APP.Vi,a.getAttribute("duration"),nT,a.getAttribute("frequency"),$APP.Ml,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Gk);var c=$APP.D(b,$APP.Vi),
5
+ d=$APP.D(b,nT);b=$APP.D(b,$APP.Ml);return new $APP.R(null,4,[$APP.xk,jT(a),$APP.dl,kT(c),oT,lT(d),$APP.X,$APP.F(b)],null)},sT=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
+ e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.R(null,3,[$APP.il,d,qT,e,rT,g],null)},
7
+ tT=function(a,b){var c=pT(a);if(!$APP.n($APP.X.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.xk),e=$APP.D(c,$APP.dl),g=$APP.D(c,oT);c=mT(a);c=$APP.M(c);var h=$APP.D(c,$APP.Hj),l=$APP.D(c,$APP.mk),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=sT(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.il),q=$APP.D(m,qT),v=$APP.D(m,rT),x=b.clientX,y=b.clientY,A=performance.now(),C=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.T.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.T.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var G=performance.now()-A;G=Math.min(1,G/e);var J=1-G;J=1-J*J*J;var Q=g*(1-J*.7);v.setAttribute("scale",
9
+ ""+$APP.T.g(d*(1-J)));q.setAttribute("baseFrequency",""+$APP.T.g(Q));if(G>=1)return l.removeChild(p),l.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));G=requestAnimationFrame(H);return C.push(G)});C.push(b)}},uT=function(a){function b(c){c.button===0&&tT(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},vT=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,
10
+ d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.M(b);b=$APP.D(c,$APP.mk);for(c=$APP.D(c,$APP.Hj);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},wT=function(a){Object.defineProperty(a,"intensity",{get:function(){return jT(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
+ this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return kT(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return lT(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
+ ""+$APP.T.g(b))},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})},yT=function(){var a=class extends HTMLElement{};a.observedAttributes=xT;a.prototype.connectedCallback=function(){mT(this);vT(this);uT(this);return null};a.prototype.disconnectedCallback=function(){vT(this);return null};a.prototype.attributeChangedCallback=
13
+ function(){return null};wT(a.prototype);return a},zT=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",yT());return null},qT=new $APP.K(null,"turb","turb",-804768361),nT=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),rT=new $APP.K(null,"disp","disp",-2047544334),oT=new $APP.K(null,"frequency","frequency",-1408891382);var xT=["intensity","duration","frequency","disabled"];$APP.Pd(["x-ripple-effect-start",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Jl,$APP.W,$APP.Il,$APP.W],null),$APP.jm,!1],null),"x-ripple-effect-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Jl,$APP.W,$APP.Il,$APP.W],null),$APP.jm,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",zT);export const init=zT;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var XW=function(a){return new $APP.Q(null,1,[$APP.Pl,a],null)},YW=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
- d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.Q(null,4,[$APP.Ci,b,$APP.hj,d,$APP.fj,e,$APP.Ai,g],null);return $APP.k(a,"__xScrollParallaxRefs")},eX=function(a){a=new $APP.Q(null,5,[$APP.Ui,a.getAttribute("direction"),ZW,a.getAttribute("source"),$W,a.getAttribute("easing"),$APP.$i,
4
- $APP.n(a.hasAttribute("disabled"))?"":null,$APP.ni,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Ui),d=$APP.D(b,ZW),e=$APP.D(b,$W);a=$APP.D(b,$APP.$i);b=$APP.D(b,$APP.ni);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(aX,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(bX,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(cX,e)?e:"none";return new $APP.Q(null,5,[$APP.oj,c,$APP.fl,d,dX,e,$APP.X,a!=null,$APP.U,$APP.n(b)?
5
- b:""],null)},fX=function(a){a=YW(a);a=$APP.M(a);return $APP.D(a,$APP.fj).assignedElements()},gX=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.Q(null,4,[$APP.Bj,b,$APP.qi,c,$APP.oi,$APP.C.i("fade",a.getAttribute("data-opacity")),$APP.Wi,$APP.C.i("grow",a.getAttribute("data-scale"))],null)},hX=function(a){var b=
6
- $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=fX(a);b=$APP.We.m($APP.fe,$APP.ae.g(gX),$APP.uc(b));return a.__xScrollParallaxChildCache=b},iX=function(a){a.__xScrollParallaxChildCache=null},jX=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},kX=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
- a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},lX=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Gh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},mX=function(a){var b=function(){var G=$APP.k(a,"__xScrollParallaxModel");return $APP.n(G)?G:eX(a)}();if(!$APP.n($APP.X.g(b))){var c=a.getBoundingClientRect();b=$APP.C.i("vertical",$APP.oj.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.qh.i(0,$APP.rh.i(1,(d-c.top)/(d+
8
- c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=fX(a);for(var h=hX(a),l=jX(a),m=kX(a),p=d.length,q=0;;)if(q<p){if(q<$APP.z(h)){var v=d[q],x=$APP.pc(h,q),y=$APP.M(x),A=$APP.D(y,$APP.Bj),B=$APP.D(y,$APP.qi);x=$APP.D(y,$APP.oi);y=$APP.D(y,$APP.Wi);A=(g-.5)*e*(A-1)+B;var E=b?"translateY("+$APP.T.g(A)+"px)":"translateX("+$APP.T.g(A)+"px)";A=$APP.n(y)?function(){var G=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.T.g(E)+" scale("+$APP.T.g(G)+")"}():E;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+
9
- $APP.T.g(g<l?g/l:g>1-l?(1-g)/l:1))}q+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,lX(a,"x-scroll-parallax-progress",XW(g))}a.__xScrollParallaxRAF=null},nX=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.k(a,"__xScrollParallaxRAF"))?null:$APP.ja(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return mX(a)})):
10
- null},oX=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},pX=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},qX=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},rX=function(a,b){b=b[0].isIntersecting;
11
- var c=$APP.M($APP.k(a,"__xScrollParallaxRefs"));c=$APP.D(c,$APP.Ai);a.__xScrollParallaxVisible=b;if($APP.n(b))return oX(a),mX(a),qX(c,"Parallax section entered viewport"),lX(a,"x-scroll-parallax-enter",XW(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()));pX(a);qX(c,"Parallax section left viewport");return lX(a,"x-scroll-parallax-leave",XW(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()))},sX=function(a){function b(){return $APP.n($APP.k(a,
12
- "__xScrollParallaxVisible"))?(iX(a),mX(a)):null}function c(){iX(a);return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?mX(a):null}var d=YW(a);d=$APP.M(d);$APP.D(d,$APP.fj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollParallaxHandlers",{scroll:function(){return nX(a)},slot:c,resize:b,scrollAttached:!1})},tX=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){pX(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.fj.g(c);var d=
13
- $APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollParallaxRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},uX=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return rX(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},vX=function(a){var b=eX(a);if($APP.N($APP.k(a,
14
- "__xScrollParallaxModel"),b)){var c=$APP.M(b),d=$APP.D(c,$APP.oj);b=$APP.D(c,$APP.X);var e=$APP.D(c,$APP.U),g=YW(a);g=$APP.M(g);g=$APP.D(g,$APP.hj);a.setAttribute("data-direction",d);$APP.t(e)?g.setAttribute("aria-label",e):g.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.k(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.r(b):c)&&mX(a)}},wX=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.n(b)?b:"vertical"},set:function(b){return $APP.n(b)?
2
+ var wZ=function(a){return new $APP.R(null,1,[$APP.am,a],null)},xZ=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
+ d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.R(null,4,[$APP.Hi,b,$APP.mj,d,$APP.kj,e,$APP.Fi,g],null);return $APP.k(a,"__xScrollParallaxRefs")},EZ=function(a){a=new $APP.R(null,5,[$APP.Zi,a.getAttribute("direction"),yZ,a.getAttribute("source"),zZ,a.getAttribute("easing"),$APP.ej,
4
+ $APP.n(a.hasAttribute("disabled"))?"":null,$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Zi),d=$APP.D(b,yZ),e=$APP.D(b,zZ);a=$APP.D(b,$APP.ej);b=$APP.D(b,$APP.pi);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(AZ,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(BZ,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(CZ,e)?e:"none";return new $APP.R(null,5,[$APP.tj,c,$APP.ql,d,DZ,e,$APP.X,a!=null,$APP.U,$APP.n(b)?
5
+ b:""],null)},FZ=function(a){a=xZ(a);a=$APP.M(a);return $APP.D(a,$APP.kj).assignedElements()},GZ=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.R(null,4,[$APP.Gj,b,$APP.ti,c,$APP.qi,$APP.B.i("fade",a.getAttribute("data-opacity")),$APP.aj,$APP.B.i("grow",a.getAttribute("data-scale"))],null)},HZ=function(a){var b=
6
+ $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=FZ(a);b=$APP.We.m($APP.fe,$APP.ae.g(GZ),$APP.uc(b));return a.__xScrollParallaxChildCache=b},IZ=function(a){a.__xScrollParallaxChildCache=null},JZ=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},KZ=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
+ a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},LZ=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},MZ=function(a){var b=function(){var H=$APP.k(a,"__xScrollParallaxModel");return $APP.n(H)?H:EZ(a)}();if(!$APP.n($APP.X.g(b))){var c=a.getBoundingClientRect();b=$APP.B.i("vertical",$APP.tj.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.oh.i(0,$APP.sh.i(1,(d-c.top)/(d+
8
+ c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=FZ(a);for(var h=HZ(a),l=JZ(a),m=KZ(a),p=d.length,q=0;;)if(q<p){if(q<$APP.z(h)){var v=d[q],x=$APP.pc(h,q),y=$APP.M(x),A=$APP.D(y,$APP.Gj),C=$APP.D(y,$APP.ti);x=$APP.D(y,$APP.qi);y=$APP.D(y,$APP.aj);A=(g-.5)*e*(A-1)+C;var E=b?"translateY("+$APP.T.g(A)+"px)":"translateX("+$APP.T.g(A)+"px)";A=$APP.n(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.T.g(E)+" scale("+$APP.T.g(H)+")"}():E;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+
9
+ $APP.T.g(g<l?g/l:g>1-l?(1-g)/l:1))}q+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,LZ(a,"x-scroll-parallax-progress",wZ(g))}a.__xScrollParallaxRAF=null},NZ=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.k(a,"__xScrollParallaxRAF"))?null:$APP.ja(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return MZ(a)})):
10
+ null},OZ=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},PZ=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},QZ=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},RZ=function(a,b){b=b[0].isIntersecting;
11
+ var c=$APP.M($APP.k(a,"__xScrollParallaxRefs"));c=$APP.D(c,$APP.Fi);a.__xScrollParallaxVisible=b;if($APP.n(b))return OZ(a),MZ(a),QZ(c,"Parallax section entered viewport"),LZ(a,"x-scroll-parallax-enter",wZ(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()));PZ(a);QZ(c,"Parallax section left viewport");return LZ(a,"x-scroll-parallax-leave",wZ(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()))},SZ=function(a){function b(){return $APP.n($APP.k(a,
12
+ "__xScrollParallaxVisible"))?(IZ(a),MZ(a)):null}function c(){IZ(a);return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?MZ(a):null}var d=xZ(a);d=$APP.M(d);$APP.D(d,$APP.kj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollParallaxHandlers",{scroll:function(){return NZ(a)},slot:c,resize:b,scrollAttached:!1})},TZ=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){PZ(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.kj.g(c);var d=
13
+ $APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollParallaxRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},UZ=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return RZ(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},VZ=function(a){var b=EZ(a);if($APP.N($APP.k(a,
14
+ "__xScrollParallaxModel"),b)){var c=$APP.M(b),d=$APP.D(c,$APP.tj);b=$APP.D(c,$APP.X);var e=$APP.D(c,$APP.U),g=xZ(a);g=$APP.M(g);g=$APP.D(g,$APP.mj);a.setAttribute("data-direction",d);$APP.t(e)?g.setAttribute("aria-label",e):g.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.k(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.r(b):c)&&MZ(a)}},WZ=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.n(b)?b:"vertical"},set:function(b){return $APP.n(b)?
15
15
  this.setAttribute("direction",""+$APP.T.g(b)):this.removeAttribute("direction")},enumerable:!0,configurable:!0});Object.defineProperty(a,"source",{get:function(){var b=this.getAttribute("source");return $APP.n(b)?b:"document"},set:function(b){return $APP.n(b)?this.setAttribute("source",""+$APP.T.g(b)):this.removeAttribute("source")},enumerable:!0,configurable:!0});Object.defineProperty(a,"easing",{get:function(){var b=this.getAttribute("easing");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?
16
16
  this.setAttribute("easing",""+$APP.T.g(b)):this.removeAttribute("easing")},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)?$APP.N(b,""):b)?this.setAttribute("label",
17
- ""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},yX=function(){var a=class extends HTMLElement{};a.observedAttributes=xX;a.prototype.connectedCallback=function(){YW(this);tX(this);sX(this);uX(this);vX(this);return null};a.prototype.disconnectedCallback=function(){for(var b=fX(this),c=b.length,d=0;;)if(d<c){var e=b[d];
18
- e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(this,"__xScrollParallaxVisible"))&&(b=$APP.k(this,"__xScrollParallaxLastProg"),lX(this,"x-scroll-parallax-leave",XW($APP.n(b)?b:0)));tX(this);b=$APP.k(this,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);iX(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&vX(this);return null};wX(a.prototype);return a},
19
- zX=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",yX());return null},ZW=new $APP.K(null,"source-raw","source-raw",396083546),$W=new $APP.K(null,"easing-raw","easing-raw",440485546),dX=new $APP.K(null,"easing","easing",735372043);var xX=["direction","source","easing","disabled","label"];$APP.Qd(["x-scroll-parallax-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Pl,$APP.W],null),$APP.Yl,!1],null),"x-scroll-parallax-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Pl,$APP.W],null),$APP.Yl,!1],null),"x-scroll-parallax-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Pl,$APP.W],null),$APP.Yl,!1],null)]);
20
- var aX=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),bX=new $APP.R(null,new $APP.Q(null,1,["document",null],null),null),cX=new $APP.R(null,new $APP.Q(null,2,["none",null,"smooth",null],null),null);$APP.ha("baredom.exports.x_scroll_parallax.init",zX);export const init=zX;
17
+ ""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},YZ=function(){var a=class extends HTMLElement{};a.observedAttributes=XZ;a.prototype.connectedCallback=function(){xZ(this);TZ(this);SZ(this);UZ(this);VZ(this);return null};a.prototype.disconnectedCallback=function(){for(var b=FZ(this),c=b.length,d=0;;)if(d<c){var e=b[d];
18
+ e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(this,"__xScrollParallaxVisible"))&&(b=$APP.k(this,"__xScrollParallaxLastProg"),LZ(this,"x-scroll-parallax-leave",wZ($APP.n(b)?b:0)));TZ(this);b=$APP.k(this,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);IZ(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&VZ(this);return null};WZ(a.prototype);return a},
19
+ ZZ=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",YZ());return null},yZ=new $APP.K(null,"source-raw","source-raw",396083546),zZ=new $APP.K(null,"easing-raw","easing-raw",440485546),DZ=new $APP.K(null,"easing","easing",735372043);var XZ=["direction","source","easing","disabled","label"];$APP.Pd(["x-scroll-parallax-enter",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-parallax-leave",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-parallax-progress",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null)]);
20
+ var AZ=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),BZ=new $APP.S(null,new $APP.R(null,1,["document",null],null),null),CZ=new $APP.S(null,new $APP.R(null,2,["none",null,"smooth",null],null),null);$APP.ha("baredom.exports.x_scroll_parallax.init",ZZ);export const init=ZZ;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var SC=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:b):b},UC=function(a){return typeof a==="string"&&$APP.I(TC,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},VC=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},WC=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},XC=function(a){var b=$APP.k(a,"__xScrollStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),
2
+ var tF=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:b):b},vF=function(a){return typeof a==="string"&&$APP.I(uF,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},wF=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},xF=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},yF=function(a){var b=$APP.k(a,"__xScrollStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),
3
3
  d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-stack-peek:6px;--x-scroll-stack-rotation:3deg;--x-scroll-stack-gap:1rem;}[part\x3dcontainer]{position:sticky;top:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:var(--x-scroll-stack-padding-top,2rem);gap:var(--x-scroll-stack-gap);}::slotted(*){flex-shrink:0;will-change:transform;transition:transform 60ms linear;}:host([disabled]){opacity:0.55;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
- d.setAttribute("part","container");d.setAttribute("role","region");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xScrollStackRefs=new $APP.Q(null,3,[$APP.Ci,b,$APP.Cj,d,$APP.fj,e],null);return $APP.k(a,"__xScrollStackRefs")},aD=function(a){a=new $APP.Q(null,5,[$APP.Rl,a.getAttribute("peek"),YC,a.getAttribute("rotation"),ZC,a.getAttribute("scroll-distance"),$APP.Si,a.getAttribute("align"),$APP.$i,$APP.n(a.hasAttribute("disabled"))?"":null],null);var b=$APP.M(a);a=$APP.D(b,$APP.Rl);var c=$APP.D(b,
5
- YC),d=$APP.D(b,ZC),e=$APP.D(b,$APP.Si);b=$APP.D(b,$APP.$i);return new $APP.Q(null,5,[$APP.Xi,SC(a,6),$APP.Ol,SC(c,3),$C,SC(d,150),$APP.qj,UC(e),$APP.X,b!=null],null)},bD=function(a){a=XC(a);a=$APP.M(a);return $APP.D(a,$APP.fj).assignedElements()},cD=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Gh(c),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},dD=function(a){var b=$APP.k(a,"__xScrollStackModel");b=$APP.n(b)?b:aD(a);var c=bD(a).length;b=window.innerHeight+c*$C.g(b);a.style.height=
6
- ""+$APP.T.g(b)+"px"},jD=function(a){var b=function(){var oa=$APP.k(a,"__xScrollStackModel");return $APP.n(oa)?oa:aD(a)}(),c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=bD(a),e=d.length,g=$APP.k(a,"__xScrollStackNaturalOffsets"),h=$APP.k(a,"__xScrollStackChildHeights");if($APP.n(function(){var oa=e>0;return oa?$APP.n(g)?$APP.n(h)?$APP.C.i(g.length,e)&&$APP.C.i(h.length,e):h:g:oa}())){var l=$C.g(b),m=$APP.Xi.g(b),p=$APP.Ol.g(b),q=$APP.qj.g(b),v=g[0],x=$APP.n(a.hasAttribute("align"))?function(){var oa=
7
- (e-1)*m+h[e-1],Aa=$APP.M($APP.k(a,"__xScrollStackRefs"));Aa=$APP.D(Aa,$APP.Cj).clientHeight;a:switch(q){case "top":oa=32;break a;case "bottom":oa=Aa-oa-32;break a;default:oa=(Aa-oa)/2}return oa-v}():0;b=WC(c,e,l);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,l)))),A=function(){var oa=$APP.k(a,"__xScrollStackStackedCount");return $APP.n(oa)?oa:0}(),B=0;;)if(B<e){var E=d[B],G=VC(c,B,l),H=new $APP.Q(null,3,[eD,B*m,fD,p*Math.sin(B*2.3),gD,2*Math.cos(B*3.7)],null),J=g[B];J=v+eD.g(H)-J;J=G*J+
8
- G*x;var S=G*fD.g(H);H=G*gD.g(H);var aa=G>0?""+$APP.T.g(B):"";E.style.transform=G===0?"":"translate("+$APP.T.g(H.toFixed(2))+"px,"+$APP.T.g(J.toFixed(2))+"px) rotate("+$APP.T.g(S.toFixed(3))+"deg)";E.style.zIndex=aa;B+=1}else break;$APP.N(y,A)&&(a.__xScrollStackStackedCount=y,cD(a,"x-scroll-stack-change",new $APP.Q(null,3,[hD,y,iD,e,$APP.Pl,b],null)));c=$APP.k(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,cD(a,"x-scroll-stack-progress",new $APP.Q(null,3,[$APP.Pl,
9
- b,hD,y,iD,e],null))}a.__xScrollStackRAF=null},kD=function(a){a=$APP.k(a,"__xScrollStackModel");return $APP.n(a)?$APP.X.g(a):a},lD=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStackVisible"),$APP.n(b)?$APP.r(kD(a)):b):b}())?$APP.n($APP.k(a,"__xScrollStackRAF"))?null:$APP.ja(a,"__xScrollStackRAF",requestAnimationFrame(function(){return jD(a)})):null},mD=function(a){a=$APP.k(a,"__xScrollStackHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):
10
- a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},nD=function(a){a=$APP.k(a,"__xScrollStackHandlers");if($APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a))window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1;else return null},oD=function(a){var b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);return $APP.ja(a,"__xScrollStackCacheRAF",requestAnimationFrame(function(){a.__xScrollStackCacheRAF=
11
- null;if($APP.n(a.isConnected)){var c=bD(a),d=c.length;if(d>0){var e=$APP.M($APP.k(a,"__xScrollStackRefs")),g=$APP.D(e,$APP.Cj);e=Array(d);for(var h=Array(d),l=0;;)if(l<d){var m=c[l];m.style.transform="";m.style.zIndex="";l+=1}else break;g.offsetHeight;g=g.getBoundingClientRect();for(l=0;;)if(l<d)m=c[l].getBoundingClientRect(),e[l]=m.top-g.top,h[l]=m.height,l+=1;else break;a.__xScrollStackNaturalOffsets=e;a.__xScrollStackChildHeights=h}return jD(a)}return null}))},pD=function(a){var b=$APP.k(a,"__xScrollStackIO");
12
- $APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.n(c)?$APP.n(kD(a))?c=null:(mD(a),c=oD(a)):c=nD(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},qD=function(a){a=bD(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.style.transform="";d.style.zIndex="";c+=1}else break},rD=function(a){function b(){dD(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?oD(a):null}function c(){dD(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?
13
- oD(a):null}var d=XC(a);d=$APP.M(d);$APP.D(d,$APP.fj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStackHandlers",{scroll:function(){return lD(a)},slot:c,resize:b,scrollAttached:!1})},sD=function(a){var b=$APP.k(a,"__xScrollStackHandlers");if($APP.n(b)){nD(a);var c=$APP.k(a,"__xScrollStackRefs");if($APP.n(c)){c=$APP.fj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
14
- b)}b=$APP.k(a,"__xScrollStackRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=null);b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},tD=function(a){var b=aD(a);if($APP.N($APP.k(a,"__xScrollStackModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.X);a.__xScrollStackModel=b;$APP.n(c)?(qD(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,nD(a)):$APP.n($APP.k(a,"__xScrollStackVisible"))&&(mD(a),oD(a))}},
15
- uD=function(a){Object.defineProperty(a,"peek",{get:function(){return SC(this.getAttribute("peek"),6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.T.g(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return SC(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.T.g(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",
16
- {get:function(){return SC(this.getAttribute("scroll-distance"),150)},set:function(b){return b!=null?this.setAttribute("scroll-distance",""+$APP.T.g(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return UC(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
17
- set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"stackedCount",{get:function(){var b=$APP.k(this,"__xScrollStackStackedCount");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollStackLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"refresh",{value:function(){dD(this);return $APP.n($APP.k(this,
18
- "__xScrollStackVisible"))?oD(this):null},enumerable:!0,configurable:!0})},wD=function(){var a=class extends HTMLElement{};a.observedAttributes=vD;a.prototype.connectedCallback=function(){XC(this);sD(this);rD(this);pD(this);tD(this);dD(this);return null};a.prototype.disconnectedCallback=function(){qD(this);sD(this);var b=$APP.k(this,"__xScrollStackIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStackIO=null);this.__xScrollStackVisible=!1;this.__xScrollStackStackedCount=0;return this.__xScrollStackChildHeights=
19
- this.__xScrollStackNaturalOffsets=this.__xScrollStackLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(tD(this),dD(this),$APP.n($APP.k(this,"__xScrollStackVisible"))&&oD(this));return null};uD(a.prototype);return a},xD=function(){$APP.n(customElements.get("x-scroll-stack"))||customElements.define("x-scroll-stack",wD());return null},fD=new $APP.K(null,"stack-rot","stack-rot",-949440704),iD=new $APP.K(null,"totalCount","totalCount",2101470328),ZC=new $APP.K(null,"scroll-distance-raw",
20
- "scroll-distance-raw",1537519796),gD=new $APP.K(null,"stack-x","stack-x",-1557848736),eD=new $APP.K(null,"stack-y","stack-y",146748620),YC=new $APP.K(null,"rotation-raw","rotation-raw",318004495),hD=new $APP.K(null,"stackedCount","stackedCount",137366007),$C=new $APP.K(null,"scroll-distance","scroll-distance",-544947824);var vD=["peek","rotation","scroll-distance","align","disabled"];$APP.Qd(["x-scroll-stack-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[hD,$APP.W,iD,$APP.W,$APP.Pl,$APP.W],null),$APP.Yl,!1],null),"x-scroll-stack-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Pl,$APP.W,hD,$APP.W,iD,$APP.W],null),$APP.Yl,!1],null)]);var TC=new $APP.R(null,new $APP.Q(null,3,["top",null,"center",null,"bottom",null],null),null);$APP.ha("baredom.exports.x_scroll_stack.init",xD);export const init=xD;
4
+ d.setAttribute("part","container");d.setAttribute("role","region");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xScrollStackRefs=new $APP.R(null,3,[$APP.Hi,b,$APP.Hj,d,$APP.kj,e],null);return $APP.k(a,"__xScrollStackRefs")},CF=function(a){a=new $APP.R(null,5,[$APP.cm,a.getAttribute("peek"),zF,a.getAttribute("rotation"),AF,a.getAttribute("scroll-distance"),$APP.Xi,a.getAttribute("align"),$APP.ej,$APP.n(a.hasAttribute("disabled"))?"":null],null);var b=$APP.M(a);a=$APP.D(b,$APP.cm);var c=$APP.D(b,
5
+ zF),d=$APP.D(b,AF),e=$APP.D(b,$APP.Xi);b=$APP.D(b,$APP.ej);return new $APP.R(null,5,[$APP.bj,tF(a,6),$APP.$l,tF(c,3),BF,tF(d,150),$APP.vj,vF(e),$APP.X,b!=null],null)},DF=function(a){a=yF(a);a=$APP.M(a);return $APP.D(a,$APP.kj).assignedElements()},EF=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},FF=function(a){var b=$APP.k(a,"__xScrollStackModel");b=$APP.n(b)?b:CF(a);var c=DF(a).length;b=window.innerHeight+c*BF.g(b);a.style.height=
6
+ ""+$APP.T.g(b)+"px"},LF=function(a){var b=function(){var ka=$APP.k(a,"__xScrollStackModel");return $APP.n(ka)?ka:CF(a)}(),c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=DF(a),e=d.length,g=$APP.k(a,"__xScrollStackNaturalOffsets"),h=$APP.k(a,"__xScrollStackChildHeights");if($APP.n(function(){var ka=e>0;return ka?$APP.n(g)?$APP.n(h)?$APP.B.i(g.length,e)&&$APP.B.i(h.length,e):h:g:ka}())){var l=BF.g(b),m=$APP.bj.g(b),p=$APP.$l.g(b),q=$APP.vj.g(b),v=g[0],x=$APP.n(a.hasAttribute("align"))?function(){var ka=
7
+ (e-1)*m+h[e-1],Ca=$APP.M($APP.k(a,"__xScrollStackRefs"));Ca=$APP.D(Ca,$APP.Hj).clientHeight;a:switch(q){case "top":ka=32;break a;case "bottom":ka=Ca-ka-32;break a;default:ka=(Ca-ka)/2}return ka-v}():0;b=xF(c,e,l);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,l)))),A=function(){var ka=$APP.k(a,"__xScrollStackStackedCount");return $APP.n(ka)?ka:0}(),C=0;;)if(C<e){var E=d[C],H=wF(c,C,l),G=new $APP.R(null,3,[GF,C*m,HF,p*Math.sin(C*2.3),IF,2*Math.cos(C*3.7)],null),J=g[C];J=v+GF.g(G)-J;J=H*J+
8
+ H*x;var Q=H*HF.g(G);G=H*IF.g(G);var aa=H>0?""+$APP.T.g(C):"";E.style.transform=H===0?"":"translate("+$APP.T.g(G.toFixed(2))+"px,"+$APP.T.g(J.toFixed(2))+"px) rotate("+$APP.T.g(Q.toFixed(3))+"deg)";E.style.zIndex=aa;C+=1}else break;$APP.N(y,A)&&(a.__xScrollStackStackedCount=y,EF(a,"x-scroll-stack-change",new $APP.R(null,3,[JF,y,KF,e,$APP.am,b],null)));c=$APP.k(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,EF(a,"x-scroll-stack-progress",new $APP.R(null,3,[$APP.am,
9
+ b,JF,y,KF,e],null))}a.__xScrollStackRAF=null},MF=function(a){a=$APP.k(a,"__xScrollStackModel");return $APP.n(a)?$APP.X.g(a):a},NF=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStackVisible"),$APP.n(b)?$APP.r(MF(a)):b):b}())?$APP.n($APP.k(a,"__xScrollStackRAF"))?null:$APP.ja(a,"__xScrollStackRAF",requestAnimationFrame(function(){return LF(a)})):null},OF=function(a){a=$APP.k(a,"__xScrollStackHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):
10
+ a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},PF=function(a){a=$APP.k(a,"__xScrollStackHandlers");if($APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a))window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1;else return null},QF=function(a){var b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);return $APP.ja(a,"__xScrollStackCacheRAF",requestAnimationFrame(function(){a.__xScrollStackCacheRAF=
11
+ null;if($APP.n(a.isConnected)){var c=DF(a),d=c.length;if(d>0){var e=$APP.M($APP.k(a,"__xScrollStackRefs")),g=$APP.D(e,$APP.Hj);e=Array(d);for(var h=Array(d),l=0;;)if(l<d){var m=c[l];m.style.transform="";m.style.zIndex="";l+=1}else break;g.offsetHeight;g=g.getBoundingClientRect();for(l=0;;)if(l<d)m=c[l].getBoundingClientRect(),e[l]=m.top-g.top,h[l]=m.height,l+=1;else break;a.__xScrollStackNaturalOffsets=e;a.__xScrollStackChildHeights=h}return LF(a)}return null}))},RF=function(a){var b=$APP.k(a,"__xScrollStackIO");
12
+ $APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.n(c)?$APP.n(MF(a))?c=null:(OF(a),c=QF(a)):c=PF(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},SF=function(a){a=DF(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.style.transform="";d.style.zIndex="";c+=1}else break},TF=function(a){function b(){FF(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?QF(a):null}function c(){FF(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?
13
+ QF(a):null}var d=yF(a);d=$APP.M(d);$APP.D(d,$APP.kj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStackHandlers",{scroll:function(){return NF(a)},slot:c,resize:b,scrollAttached:!1})},UF=function(a){var b=$APP.k(a,"__xScrollStackHandlers");if($APP.n(b)){PF(a);var c=$APP.k(a,"__xScrollStackRefs");if($APP.n(c)){c=$APP.kj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
14
+ b)}b=$APP.k(a,"__xScrollStackRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=null);b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},VF=function(a){var b=CF(a);if($APP.N($APP.k(a,"__xScrollStackModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.X);a.__xScrollStackModel=b;$APP.n(c)?(SF(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,PF(a)):$APP.n($APP.k(a,"__xScrollStackVisible"))&&(OF(a),QF(a))}},
15
+ WF=function(a){Object.defineProperty(a,"peek",{get:function(){return tF(this.getAttribute("peek"),6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.T.g(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return tF(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.T.g(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",
16
+ {get:function(){return tF(this.getAttribute("scroll-distance"),150)},set:function(b){return b!=null?this.setAttribute("scroll-distance",""+$APP.T.g(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return vF(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
17
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"stackedCount",{get:function(){var b=$APP.k(this,"__xScrollStackStackedCount");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollStackLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"refresh",{value:function(){FF(this);return $APP.n($APP.k(this,
18
+ "__xScrollStackVisible"))?QF(this):null},enumerable:!0,configurable:!0})},YF=function(){var a=class extends HTMLElement{};a.observedAttributes=XF;a.prototype.connectedCallback=function(){yF(this);UF(this);TF(this);RF(this);VF(this);FF(this);return null};a.prototype.disconnectedCallback=function(){SF(this);UF(this);var b=$APP.k(this,"__xScrollStackIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStackIO=null);this.__xScrollStackVisible=!1;this.__xScrollStackStackedCount=0;return this.__xScrollStackChildHeights=
19
+ this.__xScrollStackNaturalOffsets=this.__xScrollStackLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(VF(this),FF(this),$APP.n($APP.k(this,"__xScrollStackVisible"))&&QF(this));return null};WF(a.prototype);return a},ZF=function(){$APP.n(customElements.get("x-scroll-stack"))||customElements.define("x-scroll-stack",YF());return null},HF=new $APP.K(null,"stack-rot","stack-rot",-949440704),KF=new $APP.K(null,"totalCount","totalCount",2101470328),AF=new $APP.K(null,"scroll-distance-raw",
20
+ "scroll-distance-raw",1537519796),IF=new $APP.K(null,"stack-x","stack-x",-1557848736),GF=new $APP.K(null,"stack-y","stack-y",146748620),zF=new $APP.K(null,"rotation-raw","rotation-raw",318004495),JF=new $APP.K(null,"stackedCount","stackedCount",137366007),BF=new $APP.K(null,"scroll-distance","scroll-distance",-544947824);var XF=["peek","rotation","scroll-distance","align","disabled"];$APP.Pd(["x-scroll-stack-change",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[JF,$APP.W,KF,$APP.W,$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-stack-progress",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.am,$APP.W,JF,$APP.W,KF,$APP.W],null),$APP.jm,!1],null)]);var uF=new $APP.S(null,new $APP.R(null,3,["top",null,"center",null,"bottom",null],null),null);$APP.ha("baredom.exports.x_scroll_stack.init",ZF);export const init=ZF;
@@ -1,37 +1,37 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Z2=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.qh.i(0,$APP.rh.i(1,a))):.5},$2=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.qh.i(.1,$APP.rh.i(.9,a))):.5},a3=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.qh.i(1,$APP.rh.i(1E3,a))):50},b3=function(a,b){var c=$APP.z(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.pc(a,d),l=$APP.M(h);h=$APP.D(l,
3
- $APP.pi);l=$APP.D(l,$APP.Dk);e=h<=b&&l>b?d:e;g=h<=b?d:g;d+=1}},d3=function(a){var b=$APP.k(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"),l=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:100dvh;}::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(l);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.Ci,b,$APP.Cj,d,c3,e,$APP.rm,g,$APP.fj,l,$APP.Ai,m],null);return $APP.k(a,"__xScrollStoryRefs")},h3=function(a){a=$APP.zf([$APP.ni,$APP.Tj,$APP.Ul,$APP.Yh,$APP.$k,$APP.Mi,$APP.$i,$APP.Sl,e3],[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.M(a);a=$APP.D(b,$APP.$i);var c=$APP.D(b,$APP.Sl),d=$APP.D(b,e3),e=$APP.D(b,$APP.ni),g=$APP.D(b,$APP.Tj),h=$APP.D(b,$APP.Ul),l=$APP.D(b,$APP.Yh),m=$APP.D(b,$APP.$k);b=$APP.D(b,$APP.Mi);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.I(f3,m)?m:"left";return $APP.zf([$APP.kk,$APP.wi,$APP.Gl,g3,$APP.U,$APP.Fi,$APP.X,$APP.Uj,$APP.Ii],[m,c!=null,Z2(l),$2(d),$APP.n(e)?e:"",b!=null,a!=null,a3(g),h!=null])},i3=function(a){a=d3(a);a=$APP.M(a);return $APP.D(a,$APP.fj).assignedElements()},
7
- j3=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},k3=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.N(a,"")?a:null},l3=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Gh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},m3=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},n3=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.N(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.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?k3(b[d]):null;b=c>=0&&c<b.length?k3(b[c]):null;l3(a,"x-scroll-story-step-change",new $APP.Q(null,4,[$APP.ci,c,$APP.ll,b,$APP.Yj,d,$APP.Rm,e],null));a=$APP.M($APP.k(a,"__xScrollStoryRefs"));a=$APP.D(a,$APP.Ai);m3(a,"Step "+$APP.T.g(c+1)+" active")}},o3=function(a,
9
- b,c,d){var e=b.length;var g=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(g)?$APP.C.i(g.length,e):g)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(g)?l<g.length:g)?g[l]:!1,l+=1;else break;g=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.pc(c,h);l=$APP.M(l);var m=$APP.D(l,$APP.pi),p=$APP.D(l,$APP.Dk),q=g[h];l=m<=d&&p>d;var v=k3(b[h]),x=m;m=p-m;m=m<=0?0:$APP.qh.i(0,$APP.rh.i(1,(d-x)/m));$APP.r(q)&&l?(g[h]=!0,l3(a,"x-scroll-story-step-enter",new $APP.Q(null,3,[$APP.ci,
10
- h,$APP.ll,v,$APP.Pl,m],null))):$APP.n($APP.n(q)?!l:q)&&(g[h]=!1,l3(a,"x-scroll-story-step-leave",new $APP.Q(null,3,[$APP.ci,h,$APP.ll,v,$APP.Pl,m],null)))}h+=1}else break},p3=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:h3(a)}();if(!$APP.n($APP.X.g(b))){var c=i3(a),d=c.length,e=window.innerHeight,g=e*$APP.Gl.g(b),h=function(){for(var m=0,p=$APP.fe;;){if(m>=d)return p;var q=c[m].getBoundingClientRect();m+=1;p=$APP.ld.i(p,new $APP.Q(null,2,[$APP.pi,q.top,$APP.Dk,
11
- q.top+q.height],null))}}();b=b3(h,g);var l=$APP.M($APP.k(a,"__xScrollStoryRefs"));l=$APP.D(l,$APP.rm).getBoundingClientRect();e=$APP.qh.i(0,$APP.rh.i(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");n3(a,c,b);o3(a,c,h,g);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,g=b>=0&&b<d?k3(c[b]):null,l3(a,"x-scroll-story-progress",new $APP.Q(null,3,[$APP.Pl,e,$APP.mk,b,$APP.sl,g],null))}a.__xScrollStoryRAF=null},q3=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;
12
- return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?$APP.r($APP.k(a,"__xScrollStoryAutoplayPaused")):l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.Ii.g(e);return $APP.n(l)?$APP.r($APP.X.g(e)):l}return e}())){var g=$APP.k(a,"__xScrollStoryAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Uj.g(e)*g);$APP.n(function(){var l=$APP.wi.g(e);return $APP.n(l)?window.scrollY-h<
13
- .5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},r3=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");
14
- return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?k3(d[c]):null;return l3(a,"x-scroll-story-autoplay-pause",new $APP.Q(null,3,[$APP.Pl,b,$APP.mk,c,$APP.sl,d],null))},s3=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(q3(a)));
15
- var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?k3(d[c]):null;return l3(a,"x-scroll-story-autoplay-resume",new $APP.Q(null,3,[$APP.Pl,b,$APP.mk,c,$APP.sl,d],null))}return null},t3=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&
16
- (a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},u3=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==
17
- null){var b=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Ii.g(b);return $APP.n(l)?(l=$APP.r($APP.X.g(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!j3():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return r3(a)},d=function(){return s3(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?s3(a):null},g=function(l){return $APP.C.i(l.code,"Space")?(l.preventDefault(),
18
- r3(a)):null},h=function(l){return $APP.C.i(l.code,"Space")?s3(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",g);a.addEventListener("keyup",h);$APP.ja(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:g,keyup:h});$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(q3(a)))}}return null},v3=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.X.g(a):
19
- a},w3=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.r(v3(a))&&!j3():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.ja(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return p3(a)})):null},x3=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},y3=function(a){a=$APP.k(a,
20
- "__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},z3=function(a,b){b=b[0].isIntersecting;var c=$APP.M($APP.k(a,"__xScrollStoryRefs"));c=$APP.D(c,$APP.Ai);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(v3(a)))return null;x3(a);p3(a);m3(c,"Story section entered viewport");l3(a,"x-scroll-story-enter",new $APP.Q(null,1,[$APP.Pl,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?
21
- d:0}()],null));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Ii.g(b):b)?u3(a):null}y3(a);t3(a);if($APP.n(v3(a)))return null;m3(c,"Story section left viewport");return l3(a,"x-scroll-story-leave",new $APP.Q(null,1,[$APP.Pl,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null))},A3=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,p3(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.k(a,
22
- "__xScrollStoryVisible"))?p3(a):null}var d=d3(a);d=$APP.M(d);$APP.D(d,$APP.fj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStoryHandlers",{scroll:function(){return w3(a)},slot:c,resize:b,scrollAttached:!1})},B3=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){y3(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.fj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
23
- b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},C3=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return z3(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},D3=function(a){a=i3(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},E3=function(a){var b=h3(a);if($APP.N($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.M(b),
24
- d=$APP.D(c,$APP.kk),e=$APP.D(c,g3);b=$APP.D(c,$APP.X);var g=$APP.D(c,$APP.U),h=d3(a),l=$APP.M(h);h=$APP.D(l,$APP.Cj);l=$APP.D(l,c3);a.setAttribute("data-layout",d);$APP.C.i(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.T.g(e*100)+"%)";$APP.t(g)?h.setAttribute("aria-label",g):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(D3(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,y3(a),t3(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&
25
- (x3(a),p3(a));c=$APP.Ii.g(c);b=$APP.n(c)?(b=$APP.r(b))?$APP.k(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?u3(a):t3(a)}},F3=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.T.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return Z2(this.getAttribute("threshold"))},set:function(b){return b!=
26
- null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return $2(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.T.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")},
2
+ var y5=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.oh.i(0,$APP.sh.i(1,a))):.5},z5=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.oh.i(.1,$APP.sh.i(.9,a))):.5},A5=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.oh.i(1,$APP.sh.i(1E3,a))):50},B5=function(a,b){var c=$APP.z(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.pc(a,d),l=$APP.M(h);h=$APP.D(l,
3
+ $APP.si);l=$APP.D(l,$APP.Kk);e=h<=b&&l>b?d:e;g=h<=b?d:g;d+=1}},D5=function(a){var b=$APP.k(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"),l=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:100dvh;}::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(l);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.R(null,
5
+ 6,[$APP.Hi,b,$APP.Hj,d,C5,e,$APP.Dm,g,$APP.kj,l,$APP.Fi,m],null);return $APP.k(a,"__xScrollStoryRefs")},H5=function(a){a=$APP.zf([$APP.pi,$APP.Vj,$APP.fm,$APP.Wh,$APP.kl,$APP.Ri,$APP.ej,$APP.dm,E5],[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.M(a);a=$APP.D(b,$APP.ej);var c=$APP.D(b,$APP.dm),d=$APP.D(b,E5),e=$APP.D(b,$APP.pi),g=$APP.D(b,$APP.Vj),h=$APP.D(b,$APP.fm),l=$APP.D(b,$APP.Wh),m=$APP.D(b,$APP.kl);b=$APP.D(b,$APP.Ri);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.I(F5,m)?m:"left";return $APP.zf([$APP.qk,$APP.Ai,$APP.Sl,G5,$APP.U,$APP.Ki,$APP.X,$APP.Wj,$APP.Ni],[m,c!=null,y5(l),z5(d),$APP.n(e)?e:"",b!=null,a!=null,A5(g),h!=null])},I5=function(a){a=D5(a);a=$APP.M(a);return $APP.D(a,$APP.kj).assignedElements()},
7
+ J5=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},K5=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.N(a,"")?a:null},L5=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},M5=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},N5=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.N(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.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?K5(b[d]):null;b=c>=0&&c<b.length?K5(b[c]):null;L5(a,"x-scroll-story-step-change",new $APP.R(null,4,[$APP.ai,c,$APP.xl,b,$APP.ak,d,$APP.dn,e],null));a=$APP.M($APP.k(a,"__xScrollStoryRefs"));a=$APP.D(a,$APP.Fi);M5(a,"Step "+$APP.T.g(c+1)+" active")}},O5=function(a,
9
+ b,c,d){var e=b.length;var g=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(g)?$APP.B.i(g.length,e):g)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(g)?l<g.length:g)?g[l]:!1,l+=1;else break;g=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.pc(c,h);l=$APP.M(l);var m=$APP.D(l,$APP.si),p=$APP.D(l,$APP.Kk),q=g[h];l=m<=d&&p>d;var v=K5(b[h]),x=m;m=p-m;m=m<=0?0:$APP.oh.i(0,$APP.sh.i(1,(d-x)/m));$APP.r(q)&&l?(g[h]=!0,L5(a,"x-scroll-story-step-enter",new $APP.R(null,3,[$APP.ai,
10
+ h,$APP.xl,v,$APP.am,m],null))):$APP.n($APP.n(q)?!l:q)&&(g[h]=!1,L5(a,"x-scroll-story-step-leave",new $APP.R(null,3,[$APP.ai,h,$APP.xl,v,$APP.am,m],null)))}h+=1}else break},P5=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:H5(a)}();if(!$APP.n($APP.X.g(b))){var c=I5(a),d=c.length,e=window.innerHeight,g=e*$APP.Sl.g(b),h=function(){for(var m=0,p=$APP.fe;;){if(m>=d)return p;var q=c[m].getBoundingClientRect();m+=1;p=$APP.ld.i(p,new $APP.R(null,2,[$APP.si,q.top,$APP.Kk,
11
+ q.top+q.height],null))}}();b=B5(h,g);var l=$APP.M($APP.k(a,"__xScrollStoryRefs"));l=$APP.D(l,$APP.Dm).getBoundingClientRect();e=$APP.oh.i(0,$APP.sh.i(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");N5(a,c,b);O5(a,c,h,g);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,g=b>=0&&b<d?K5(c[b]):null,L5(a,"x-scroll-story-progress",new $APP.R(null,3,[$APP.am,e,$APP.sk,b,$APP.El,g],null))}a.__xScrollStoryRAF=null},Q5=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;
12
+ return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?$APP.r($APP.k(a,"__xScrollStoryAutoplayPaused")):l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.Ni.g(e);return $APP.n(l)?$APP.r($APP.X.g(e)):l}return e}())){var g=$APP.k(a,"__xScrollStoryAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Wj.g(e)*g);$APP.n(function(){var l=$APP.Ai.g(e);return $APP.n(l)?window.scrollY-h<
13
+ .5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},R5=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");
14
+ return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?K5(d[c]):null;return L5(a,"x-scroll-story-autoplay-pause",new $APP.R(null,3,[$APP.am,b,$APP.sk,c,$APP.El,d],null))},S5=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(Q5(a)));
15
+ var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?K5(d[c]):null;return L5(a,"x-scroll-story-autoplay-resume",new $APP.R(null,3,[$APP.am,b,$APP.sk,c,$APP.El,d],null))}return null},T5=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&
16
+ (a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},U5=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==
17
+ null){var b=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Ni.g(b);return $APP.n(l)?(l=$APP.r($APP.X.g(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!J5():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return R5(a)},d=function(){return S5(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?S5(a):null},g=function(l){return $APP.B.i(l.code,"Space")?(l.preventDefault(),
18
+ R5(a)):null},h=function(l){return $APP.B.i(l.code,"Space")?S5(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",g);a.addEventListener("keyup",h);$APP.ja(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:g,keyup:h});$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(Q5(a)))}}return null},V5=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.X.g(a):
19
+ a},W5=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.r(V5(a))&&!J5():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.ja(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return P5(a)})):null},X5=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},Y5=function(a){a=$APP.k(a,
20
+ "__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},Z5=function(a,b){b=b[0].isIntersecting;var c=$APP.M($APP.k(a,"__xScrollStoryRefs"));c=$APP.D(c,$APP.Fi);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(V5(a)))return null;X5(a);P5(a);M5(c,"Story section entered viewport");L5(a,"x-scroll-story-enter",new $APP.R(null,1,[$APP.am,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?
21
+ d:0}()],null));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Ni.g(b):b)?U5(a):null}Y5(a);T5(a);if($APP.n(V5(a)))return null;M5(c,"Story section left viewport");return L5(a,"x-scroll-story-leave",new $APP.R(null,1,[$APP.am,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null))},$5=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,P5(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.k(a,
22
+ "__xScrollStoryVisible"))?P5(a):null}var d=D5(a);d=$APP.M(d);$APP.D(d,$APP.kj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStoryHandlers",{scroll:function(){return W5(a)},slot:c,resize:b,scrollAttached:!1})},a6=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){Y5(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.kj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
23
+ b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},b6=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return Z5(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},c6=function(a){a=I5(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},d6=function(a){var b=H5(a);if($APP.N($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.M(b),
24
+ d=$APP.D(c,$APP.qk),e=$APP.D(c,G5);b=$APP.D(c,$APP.X);var g=$APP.D(c,$APP.U),h=D5(a),l=$APP.M(h);h=$APP.D(l,$APP.Hj);l=$APP.D(l,C5);a.setAttribute("data-layout",d);$APP.B.i(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.T.g(e*100)+"%)";$APP.t(g)?h.setAttribute("aria-label",g):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(c6(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,Y5(a),T5(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&
25
+ (X5(a),P5(a));c=$APP.Ni.g(c);b=$APP.n(c)?(b=$APP.r(b))?$APP.k(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?U5(a):T5(a)}},e6=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.T.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return y5(this.getAttribute("threshold"))},set:function(b){return b!=
26
+ null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return z5(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.T.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")},
27
27
  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)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.k(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=
28
- $APP.k(this,"__xScrollStoryLastProg");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});Object.defineProperty(a,"autoplaySpeed",{get:function(){return a3(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},
28
+ $APP.k(this,"__xScrollStoryLastProg");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});Object.defineProperty(a,"autoplaySpeed",{get:function(){return A5(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},
29
29
  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,"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,
30
- configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.F($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},H3=function(){var a=class extends HTMLElement{};a.observedAttributes=G3;a.prototype.connectedCallback=function(){d3(this);B3(this);A3(this);C3(this);E3(this);return null};a.prototype.disconnectedCallback=function(){t3(this);D3(this);if($APP.n($APP.k(this,"__xScrollStoryVisible"))){var b=$APP.k(this,"__xScrollStoryLastProg");l3(this,
31
- "x-scroll-story-leave",new $APP.Q(null,1,[$APP.Pl,$APP.n(b)?b:0],null))}B3(this);b=$APP.k(this,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStoryIO=null);this.__xScrollStoryVisible=!1;this.__xScrollStoryActiveIndex=-1;return this.__xScrollStoryStepStates=this.__xScrollStoryLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&E3(this);return null};F3(a.prototype);return a},I3=function(){$APP.n(customElements.get("x-scroll-story"))||customElements.define("x-scroll-story",
32
- H3());return null},c3=new $APP.K(null,"media","media",-1066138403),e3=new $APP.K(null,"split-raw","split-raw",-455766786),g3=new $APP.K(null,"split","split",-599435118);var G3="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
33
- $APP.zf([$APP.gl,$APP.Ih,$APP.Hk,$APP.Nj,$APP.kk,$APP.mk,$APP.Gl,$APP.xm,g3,$APP.U,$APP.Ak,$APP.Pl],[new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.pk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.pk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
34
- 1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.pk,!0],null)]);
35
- $APP.Qd(["x-scroll-story-step-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.ci,$APP.W,$APP.ll,$APP.Y,$APP.Yj,$APP.W,$APP.Rm,$APP.Y],null),$APP.Yl,!1],null),"x-scroll-story-step-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ci,$APP.W,$APP.ll,$APP.Y,$APP.Pl,$APP.W],null),$APP.Yl,!1],null),"x-scroll-story-step-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ci,$APP.W,$APP.ll,$APP.Y,$APP.Pl,$APP.W],null),$APP.Yl,!1],null),"x-scroll-story-progress",new $APP.Q(null,2,[$APP.V,
36
- new $APP.Q(null,3,[$APP.Pl,$APP.W,$APP.mk,$APP.W,$APP.sl,$APP.Y],null),$APP.Yl,!1],null),"x-scroll-story-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Pl,$APP.W],null),$APP.Yl,!1],null),"x-scroll-story-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Pl,$APP.W],null),$APP.Yl,!1],null),"x-scroll-story-autoplay-pause",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Pl,$APP.W,$APP.mk,$APP.W,$APP.sl,$APP.Y],null),$APP.Yl,!1],null),"x-scroll-story-autoplay-resume",new $APP.Q(null,
37
- 2,[$APP.V,new $APP.Q(null,3,[$APP.Pl,$APP.W,$APP.mk,$APP.W,$APP.sl,$APP.Y],null),$APP.Yl,!1],null)]);var f3=new $APP.R(null,new $APP.Q(null,3,["right",null,"top",null,"left",null],null),null);$APP.ha("baredom.exports.x_scroll_story.init",I3);export const init=I3;
30
+ configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.F($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},g6=function(){var a=class extends HTMLElement{};a.observedAttributes=f6;a.prototype.connectedCallback=function(){D5(this);a6(this);$5(this);b6(this);d6(this);return null};a.prototype.disconnectedCallback=function(){T5(this);c6(this);if($APP.n($APP.k(this,"__xScrollStoryVisible"))){var b=$APP.k(this,"__xScrollStoryLastProg");L5(this,
31
+ "x-scroll-story-leave",new $APP.R(null,1,[$APP.am,$APP.n(b)?b:0],null))}a6(this);b=$APP.k(this,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStoryIO=null);this.__xScrollStoryVisible=!1;this.__xScrollStoryActiveIndex=-1;return this.__xScrollStoryStepStates=this.__xScrollStoryLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&d6(this);return null};e6(a.prototype);return a},h6=function(){$APP.n(customElements.get("x-scroll-story"))||customElements.define("x-scroll-story",
32
+ g6());return null},C5=new $APP.K(null,"media","media",-1066138403),E5=new $APP.K(null,"split-raw","split-raw",-455766786),G5=new $APP.K(null,"split","split",-599435118);var f6="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
33
+ $APP.zf([$APP.rl,$APP.Jh,$APP.Ok,$APP.Pj,$APP.qk,$APP.sk,$APP.Sl,$APP.Km,G5,$APP.U,$APP.Hk,$APP.am],[new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.wk,!0],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.wk,!0],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,
34
+ 1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.wk,!0],null)]);
35
+ $APP.Pd(["x-scroll-story-step-change",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.ai,$APP.W,$APP.xl,$APP.Y,$APP.ak,$APP.W,$APP.dn,$APP.Y],null),$APP.jm,!1],null),"x-scroll-story-step-enter",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.ai,$APP.W,$APP.xl,$APP.Y,$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-story-step-leave",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.ai,$APP.W,$APP.xl,$APP.Y,$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-story-progress",new $APP.R(null,2,[$APP.V,
36
+ new $APP.R(null,3,[$APP.am,$APP.W,$APP.sk,$APP.W,$APP.El,$APP.Y],null),$APP.jm,!1],null),"x-scroll-story-enter",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-story-leave",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null),"x-scroll-story-autoplay-pause",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.am,$APP.W,$APP.sk,$APP.W,$APP.El,$APP.Y],null),$APP.jm,!1],null),"x-scroll-story-autoplay-resume",new $APP.R(null,
37
+ 2,[$APP.V,new $APP.R(null,3,[$APP.am,$APP.W,$APP.sk,$APP.W,$APP.El,$APP.Y],null),$APP.jm,!1],null)]);var F5=new $APP.S(null,new $APP.R(null,3,["right",null,"top",null,"left",null],null),null);$APP.ha("baredom.exports.x_scroll_story.init",h6);export const init=h6;