@vanelsas/baredom 2.7.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/custom-elements.json +822 -16
  3. package/dist/baredom.d.ts +9 -0
  4. package/dist/base.js +455 -428
  5. package/dist/integrity.json +102 -93
  6. package/dist/x-alert.js +17 -18
  7. package/dist/x-avatar-group.js +9 -10
  8. package/dist/x-avatar.js +15 -15
  9. package/dist/x-badge.js +9 -10
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -14
  13. package/dist/x-button.js +17 -18
  14. package/dist/x-cancel-dialogue.js +13 -17
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +33 -34
  17. package/dist/x-chart.d.ts +26 -0
  18. package/dist/x-chart.js +47 -46
  19. package/dist/x-checkbox.js +11 -10
  20. package/dist/x-chip.js +1 -9
  21. package/dist/x-collapse.js +10 -10
  22. package/dist/x-color-picker.js +45 -44
  23. package/dist/x-combobox.js +26 -26
  24. package/dist/x-command-palette.js +26 -26
  25. package/dist/x-confetti.d.ts +50 -0
  26. package/dist/x-confetti.js +23 -0
  27. package/dist/x-container.js +4 -4
  28. package/dist/x-context-menu.d.ts +31 -2
  29. package/dist/x-context-menu.js +20 -18
  30. package/dist/x-copy.js +20 -23
  31. package/dist/x-currency-field.js +23 -23
  32. package/dist/x-date-picker.d.ts +27 -0
  33. package/dist/x-date-picker.js +42 -41
  34. package/dist/x-divider.js +9 -9
  35. package/dist/x-drawer.js +10 -11
  36. package/dist/x-dropdown.js +11 -10
  37. package/dist/x-fieldset.js +5 -6
  38. package/dist/x-file-download.js +7 -7
  39. package/dist/x-file-upload.js +21 -21
  40. package/dist/x-form-field.js +15 -15
  41. package/dist/x-form.js +9 -8
  42. package/dist/x-gaussian-blur.js +13 -19
  43. package/dist/x-grid.js +6 -6
  44. package/dist/x-i18n-provider.d.ts +43 -0
  45. package/dist/x-i18n-provider.js +8 -0
  46. package/dist/x-i18n.d.ts +14 -0
  47. package/dist/x-i18n.js +5 -0
  48. package/dist/x-icon.js +6 -7
  49. package/dist/x-image.js +18 -19
  50. package/dist/x-kbd.d.ts +17 -0
  51. package/dist/x-kbd.js +17 -0
  52. package/dist/x-kinetic-canvas.d.ts +18 -0
  53. package/dist/x-kinetic-canvas.js +26 -0
  54. package/dist/x-kinetic-font.js +27 -28
  55. package/dist/x-kinetic-typography.js +33 -39
  56. package/dist/x-liquid-dock.js +38 -39
  57. package/dist/x-liquid-fill.js +45 -45
  58. package/dist/x-liquid-glass.js +47 -47
  59. package/dist/x-menu-item.js +8 -9
  60. package/dist/x-menu.js +10 -11
  61. package/dist/x-metaball-cursor.js +26 -27
  62. package/dist/x-modal.js +11 -12
  63. package/dist/x-morph-stack.js +37 -38
  64. package/dist/x-multi-combobox.d.ts +50 -0
  65. package/dist/x-multi-combobox.js +37 -0
  66. package/dist/x-navbar.js +12 -12
  67. package/dist/x-neural-glow.js +33 -33
  68. package/dist/x-notification-center.js +9 -9
  69. package/dist/x-organic-divider.js +17 -18
  70. package/dist/x-organic-progress.js +38 -38
  71. package/dist/x-organic-shape.js +13 -13
  72. package/dist/x-otp-input.d.ts +55 -0
  73. package/dist/x-otp-input.js +23 -0
  74. package/dist/x-pagination.js +15 -16
  75. package/dist/x-particle-button.js +51 -51
  76. package/dist/x-popover.js +26 -24
  77. package/dist/x-progress-circle.js +9 -10
  78. package/dist/x-progress.js +10 -11
  79. package/dist/x-proximity-list.d.ts +43 -0
  80. package/dist/x-proximity-list.js +20 -0
  81. package/dist/x-radio.js +11 -10
  82. package/dist/x-ripple-effect.js +11 -12
  83. package/dist/x-scroll-parallax.js +18 -19
  84. package/dist/x-scroll-stack.js +17 -18
  85. package/dist/x-scroll-story.js +34 -36
  86. package/dist/x-scroll-timeline.js +45 -46
  87. package/dist/x-scroll.js +40 -41
  88. package/dist/x-search-field.js +15 -15
  89. package/dist/x-select.js +10 -9
  90. package/dist/x-sidebar.js +17 -17
  91. package/dist/x-skeleton-group.js +12 -12
  92. package/dist/x-skeleton.js +1 -1
  93. package/dist/x-slider.js +15 -16
  94. package/dist/x-soft-body.js +22 -22
  95. package/dist/x-spacer.js +4 -5
  96. package/dist/x-spinner.js +4 -5
  97. package/dist/x-splash.js +12 -13
  98. package/dist/x-spotlight-card.d.ts +19 -0
  99. package/dist/x-spotlight-card.js +13 -0
  100. package/dist/x-stat.js +10 -12
  101. package/dist/x-stepper.js +14 -15
  102. package/dist/x-switch.js +10 -9
  103. package/dist/x-tab.js +7 -8
  104. package/dist/x-table-cell.js +20 -24
  105. package/dist/x-table-row.js +8 -9
  106. package/dist/x-table.js +12 -15
  107. package/dist/x-tabs.js +11 -11
  108. package/dist/x-text-area.js +18 -18
  109. package/dist/x-theme.js +25 -25
  110. package/dist/x-timeline-item.js +21 -23
  111. package/dist/x-timeline.js +8 -9
  112. package/dist/x-toast.js +22 -24
  113. package/dist/x-toaster.js +8 -8
  114. package/dist/x-tooltip.js +12 -11
  115. package/dist/x-typography.js +9 -11
  116. package/dist/x-welcome-tour.js +60 -64
  117. package/package.json +47 -2
@@ -1,11 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var dZ=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},gZ=function(a){var b=new $APP.Q(null,7,[$APP.pj,a.getAttribute("value"),$APP.nl,a.getAttribute("max"),$APP.lh,a.getAttribute("variant"),$APP.di,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.Fk,a.hasAttribute("show-value"),$APP.Nm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.nl),e=$APP.D(c,$APP.pj),g=$APP.D(c,$APP.lh),h=$APP.D(c,$APP.di);b=$APP.D(c,$APP.T);var l=$APP.D(c,
3
- $APP.Fk);c=$APP.D(c,$APP.Nm);d=dZ(d,100);d=d>0?d:100;e=$APP.Kh.i($APP.Jh.i(dZ(e,0),0),d);g=typeof g==="string"&&$APP.I(eZ,g)?g:"default";h=typeof h==="string"&&$APP.I(fZ,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.Kh.i($APP.Jh.i(e/d*100,0),100);b=$APP.zf([$APP.lh,$APP.Fk,$APP.pj,$APP.di,$APP.Nm,$APP.rn,$APP.nl,$APP.T,$APP.em],[g,l,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.em);l=$APP.D(p,$APP.lh);d=$APP.D(p,
4
- $APP.Fk);h=$APP.D(p,$APP.pj);c=$APP.D(p,$APP.di);e=$APP.D(p,$APP.rn);g=$APP.D(p,$APP.Nm);m=$APP.D(p,$APP.T);p=$APP.D(p,$APP.nl);var r=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.q(g)&&h>=p,C=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.S.g(100));
5
- v.setAttribute("stroke-dashoffset",""+$APP.S.g(C));x.textContent=$APP.n($APP.n(d)?$APP.q(g):d)?""+$APP.S.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.q(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.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.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.q(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.F(A)},hZ=function(a){if(!$APP.n($APP.k(a,"__xProgressCircleInit"))){var b=a.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",
7
- "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;}}";
8
- 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);
9
- d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressCircleBase=d;a.__xProgressCircleFill=h;a.__xProgressCircleValueNode=m;a.__xProgressCircleInit=!0}gZ(a);return null},iZ=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xProgressCircleInit"))&&gZ(a);return null},jZ=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.S.g(b))},enumerable:!0,configurable:!0});
10
- 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.S.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});return Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
11
- set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},lZ=function(){return $APP.Lg("x-progress-circle",new $APP.Q(null,4,[$APP.Cg,kZ,$APP.Dg,hZ,$APP.Fg,iZ,$APP.Jg,jZ],null))};var eZ=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),fZ=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),kZ="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-circle-complete",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.pj,$APP.W,$APP.nl,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress_circle.init",lZ);export const init=lZ;
2
+ var E2=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},F2=function(a){var b=new $APP.P(null,7,[$APP.Fh,a.getAttribute("value"),$APP.qm,a.getAttribute("max"),$APP.hi,a.getAttribute("variant"),$APP.bj,a.getAttribute("size"),$APP.X,a.getAttribute("label"),$APP.Dl,a.hasAttribute("show-value"),$APP.Xn,a.hasAttribute("indeterminate")],null);var c=$APP.H(b),d=$APP.C(c,$APP.qm),e=$APP.C(c,$APP.Fh),f=$APP.C(c,$APP.hi),h=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.X);var l=$APP.C(c,
3
+ $APP.Dl);c=$APP.C(c,$APP.Xn);d=E2(d,100);d=d>0?d:100;e=$APP.Di.j($APP.Ci.j(E2(e,0),0),d);f=typeof f==="string"&&$APP.Vc(iba,f)?f:"default";h=typeof h==="string"&&$APP.Vc(jba,h)?h:"md";c=$APP.E(c);l=$APP.E(l);var m=c?50:$APP.Di.j($APP.Ci.j(e/d*100,0),100);b=$APP.Hf([$APP.hi,$APP.Dl,$APP.Fh,$APP.bj,$APP.Xn,$APP.Eo,$APP.qm,$APP.X,$APP.mn],[f,l,e,h,c,c?"Loading…":""+$APP.R.i(Math.round(m))+"%",d,typeof b==="string"&&$APP.M("",b)?b:null,m]);var q=$APP.H(b);b=$APP.C(q,$APP.mn);l=$APP.C(q,$APP.hi);d=$APP.C(q,
4
+ $APP.Dl);h=$APP.C(q,$APP.Fh);c=$APP.C(q,$APP.bj);e=$APP.C(q,$APP.Eo);f=$APP.C(q,$APP.Xn);m=$APP.C(q,$APP.X);q=$APP.C(q,$APP.qm);var r=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),w=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.p(f)&&h>=q,D=$APP.n(f)?75:100*(1-b/100);r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.R.i(100));
5
+ v.setAttribute("stroke-dashoffset",""+$APP.R.i(D));w.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.R.i(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(f):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(f)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):($APP.Zg(a,"aria-valuenow",""+$APP.R.i(h)),$APP.Zg(a,"aria-valuemax",""+$APP.R.i(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));
6
+ m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(y)&&$APP.ah(a,"x-progress-circle-complete",{value:h,max:q});a.__xProgressCircleCompleted=$APP.E(A)},kba=function(a){if(!$APP.n($APP.k(a,"__xProgressCircleInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),f=document.createElementNS("http://www.w3.org/2000/svg","circle"),h=document.createElementNS("http://www.w3.org/2000/svg",
7
+ "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;}}";
8
+ d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");f.setAttribute("part","track");f.setAttribute("cx","18");f.setAttribute("cy","18");f.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(f);e.appendChild(h);l.appendChild(m);
9
+ d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressCircleBase=d;a.__xProgressCircleFill=h;a.__xProgressCircleValueNode=m;a.__xProgressCircleInit=!0}F2(a);return null},lba=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,"__xProgressCircleInit"))&&F2(a);return null},mba=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.R.i(b))},enumerable:!0,configurable:!0});
10
+ 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.R.i(b))},enumerable:!0,configurable:!0});$APP.ch(a,"indeterminate","indeterminate");return $APP.ch(a,"showValue","show-value")},G2=function(){return $APP.Wg("x-progress-circle",new $APP.P(null,4,[$APP.Mg,nba,$APP.Ng,kba,$APP.Qg,lba,$APP.Ug,mba],null))};var iba=new $APP.Q(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),jba=new $APP.Q(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),nba="value max variant size label show-value indeterminate".split(" ");$APP.Ud(["x-progress-circle-complete",new $APP.P(null,1,[$APP.Z,new $APP.P(null,2,[$APP.Fh,$APP.W,$APP.qm,$APP.W],null)],null)]);$APP.da("baredom.exports.x_progress_circle.init",G2);export const init=G2;
@@ -1,12 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var b$=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},d$=function(a){var b=new $APP.Q(null,7,[$APP.pj,a.getAttribute("value"),$APP.nl,a.getAttribute("max"),$APP.lh,a.getAttribute("variant"),$APP.di,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.Fk,a.hasAttribute("show-value"),$APP.Nm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.nl),e=$APP.D(c,$APP.pj),g=$APP.D(c,$APP.lh),h=$APP.D(c,$APP.di);b=$APP.D(c,$APP.T);var l=$APP.D(c,
3
- $APP.Fk);c=$APP.D(c,$APP.Nm);d=b$(d,100);d=d>0?d:100;e=$APP.Kh.i($APP.Jh.i(b$(e,0),0),d);g=typeof g==="string"&&$APP.I(c$,g)?g:"default";h=typeof h==="string"&&$APP.I(aaa,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.Kh.i($APP.Jh.i(e/d*100,0),100);b=$APP.zf([$APP.lh,$APP.Fk,$APP.pj,$APP.di,$APP.Nm,$APP.rn,$APP.nl,$APP.T,$APP.em],[g,l,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.em);l=$APP.D(p,$APP.lh);d=$APP.D(p,
4
- $APP.Fk);h=$APP.D(p,$APP.pj);c=$APP.D(p,$APP.di);e=$APP.D(p,$APP.rn);g=$APP.D(p,$APP.Nm);m=$APP.D(p,$APP.T);p=$APP.D(p,$APP.nl);var r=$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.q(g)&&h>=p;r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
5
- $APP.n(g)?"40%":""+$APP.S.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.q(g):d)?""+$APP.S.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.S.g(h)),
6
- a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.q(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.F(H)},baa=function(a){if(!$APP.n($APP.k(a,"__xProgressInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),
7
- 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%;}}";
8
- 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);a.__xProgressBase=d;a.__xProgressHeader=e;a.__xProgressFill=m;a.__xProgressLabel=g;a.__xProgressValue=h;a.__xProgressInit=!0}d$(a);return null},caa=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,
9
- "__xProgressInit"))&&d$(a);return null},daa=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.S.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.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},
10
- 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")},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",
11
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},e$=function(){return $APP.Lg("x-progress",
12
- new $APP.Q(null,4,[$APP.Cg,eaa,$APP.Dg,baa,$APP.Fg,caa,$APP.Jg,daa],null))};var c$=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),aaa=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),eaa="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-complete",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.pj,$APP.W,$APP.nl,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress.init",e$);export const init=e$;
2
+ var d$=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},e$=function(a){var b=new $APP.P(null,7,[$APP.Fh,a.getAttribute("value"),$APP.qm,a.getAttribute("max"),$APP.hi,a.getAttribute("variant"),$APP.bj,a.getAttribute("size"),$APP.X,a.getAttribute("label"),$APP.Dl,a.hasAttribute("show-value"),$APP.Xn,a.hasAttribute("indeterminate")],null);var c=$APP.H(b),d=$APP.C(c,$APP.qm),e=$APP.C(c,$APP.Fh),f=$APP.C(c,$APP.hi),h=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.X);var l=$APP.C(c,
3
+ $APP.Dl);c=$APP.C(c,$APP.Xn);d=d$(d,100);d=d>0?d:100;e=$APP.Di.j($APP.Ci.j(d$(e,0),0),d);f=typeof f==="string"&&$APP.Vc(bga,f)?f:"default";h=typeof h==="string"&&$APP.Vc(cga,h)?h:"md";c=$APP.E(c);l=$APP.E(l);var m=c?50:$APP.Di.j($APP.Ci.j(e/d*100,0),100);b=$APP.Hf([$APP.hi,$APP.Dl,$APP.Fh,$APP.bj,$APP.Xn,$APP.Eo,$APP.qm,$APP.X,$APP.mn],[f,l,e,h,c,c?"Loading…":""+$APP.R.i(Math.round(m))+"%",d,typeof b==="string"&&$APP.M("",b)?b:null,m]);var q=$APP.H(b);b=$APP.C(q,$APP.mn);l=$APP.C(q,$APP.hi);d=$APP.C(q,
4
+ $APP.Dl);h=$APP.C(q,$APP.Fh);c=$APP.C(q,$APP.bj);e=$APP.C(q,$APP.Eo);f=$APP.C(q,$APP.Xn);m=$APP.C(q,$APP.X);q=$APP.C(q,$APP.qm);var r=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),w=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var D=(D=m!=null)?D:d;var G=$APP.k(a,"__xProgressCompleted"),I=$APP.p(f)&&h>=q;r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");w.style.width=
5
+ $APP.n(f)?"40%":""+$APP.R.i(b.toFixed(2))+"%";v.style.display=$APP.n(D)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.R.i(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(f)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):($APP.Zg(a,"aria-valuenow",""+$APP.R.i(h)),$APP.Zg(a,
6
+ "aria-valuemax",""+$APP.R.i(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");I&&$APP.p(G)&&$APP.ah(a,"x-progress-complete",{value:h,max:q});a.__xProgressCompleted=$APP.E(I)},dga=function(a){if(!$APP.n($APP.k(a,"__xProgressInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("span"),
7
+ 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%;}}";
8
+ d.setAttribute("part","base");e.setAttribute("part","header");f.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(f);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressBase=d;a.__xProgressHeader=e;a.__xProgressFill=m;a.__xProgressLabel=f;a.__xProgressValue=h;a.__xProgressInit=!0}e$(a);return null},ega=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,
9
+ "__xProgressInit"))&&e$(a);return null},fga=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.R.i(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.R.i(b))},enumerable:!0,configurable:!0});$APP.ch(a,"indeterminate","indeterminate");
10
+ $APP.ch(a,"showValue","show-value");Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.R.i(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},
11
+ set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.R.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},f$=function(){return $APP.Wg("x-progress",new $APP.P(null,4,[$APP.Mg,gga,$APP.Ng,dga,$APP.Qg,ega,$APP.Ug,fga],null))};var bga=new $APP.Q(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),cga=new $APP.Q(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),gga="value max variant size label show-value indeterminate".split(" ");$APP.Ud(["x-progress-complete",new $APP.P(null,1,[$APP.Z,new $APP.P(null,2,[$APP.Fh,$APP.W,$APP.qm,$APP.W],null)],null)]);$APP.da("baredom.exports.x_progress.init",f$);export const init=f$;
@@ -0,0 +1,43 @@
1
+ // x-proximity-list.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XProximityListEventMap {
6
+ "x-proximity-list-select": CustomEvent<{ index: number; item: any; source: string }>;
7
+ }
8
+
9
+ export interface XProximityList extends HTMLElement {
10
+ direction: string;
11
+ radius: number;
12
+ maxScale: number;
13
+ lift: number;
14
+ gap: number;
15
+ disabled: boolean;
16
+
17
+ addEventListener<K extends keyof XProximityListEventMap>(
18
+ type: K,
19
+ listener: (this: XProximityList, ev: XProximityListEventMap[K]) => any,
20
+ options?: boolean | AddEventListenerOptions
21
+ ): void;
22
+ addEventListener(
23
+ type: string,
24
+ listener: EventListenerOrEventListenerObject,
25
+ options?: boolean | AddEventListenerOptions
26
+ ): void;
27
+ removeEventListener<K extends keyof XProximityListEventMap>(
28
+ type: K,
29
+ listener: (this: XProximityList, ev: XProximityListEventMap[K]) => any,
30
+ options?: boolean | EventListenerOptions
31
+ ): void;
32
+ removeEventListener(
33
+ type: string,
34
+ listener: EventListenerOrEventListenerObject,
35
+ options?: boolean | EventListenerOptions
36
+ ): void;
37
+ }
38
+
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ "x-proximity-list": XProximityList;
42
+ }
43
+ }
@@ -0,0 +1,20 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var yr=function(a,b,c,d){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))):b},Hr=function(a,b,c,d,e){a=c-a;b=d-b;return Math.max(0,1-Math.sqrt(a*a+b*b)/e)},Ir=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Kr=function(a){if(!$APP.n($APP.k(a,"__xProximityListRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
3
+ Jr;d.setAttribute("part","track");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xProximityListRefs=new $APP.P(null,3,[$APP.Qh,b,$APP.pk,d,$APP.xk,e],null)}},Lr=function(a){a=$APP.xk.i($APP.k(a,"__xProximityListRefs"));return $APP.n(a)?a.assignedElements():null},Mr=function(a){var b=$APP.pk.i($APP.k(a,"__xProximityListRefs"));var c=Lr(a);c=$APP.n(c)?c:[];var d=c.length,e=[];if($APP.n($APP.n(b)?d>0:b)){var f=b.getBoundingClientRect();b=f.left;f=f.top;for(var h=0;;)if(h<d){var l=c[h].getBoundingClientRect();
4
+ e.push({cx:l.left+l.width/2-b,cy:l.top+l.height/2-f});h+=1}else break}a.__xProximityListRects=e;return null},Nr=function(a,b){var c=$APP.k(a,"__xProximityListDisplayed");c=$APP.n(c)?c:[];var d=c.length;if(d<b)for(;;)if(d<b)c.push({scale:1,lift:0}),d+=1;else break;else if(d>b)for(;;)if(d>b)c.pop(),--d;else break;return a.__xProximityListDisplayed=c},Or=function(a){a=a.style;a.removeProperty("--x-proximity-influence");a.removeProperty("--x-proximity-scale");a.removeProperty("--x-proximity-lift");a.transform=
5
+ ""},Pr=function(a){var b=$APP.k(a,"__xProximityListDisplayed");if($APP.n(b))for(var c=b.length,d=0;;)if(d<c){var e=b[d];e.scale=1;e.lift=0;d+=1}else break;a=Lr(a);if($APP.n(a))for(b=a.length,c=0;;)if(c<b)Or(a[c]),c+=1;else break},Qr=function(a,b){return Math.abs(b-a)<.001?b:a+(b-a)*.2},Rr=function(a,b,c,d){a=a.style;var e=$APP.k(b,"scale");b=$APP.k(b,"lift");d=$APP.n(d)?"translateX("+$APP.R.i(b)+"px) scale("+$APP.R.i(e)+")":"translateY("+$APP.R.i(b)+"px) scale("+$APP.R.i(e)+")";a.setProperty("--x-proximity-influence",
6
+ ""+$APP.R.i(c));a.setProperty("--x-proximity-scale",""+$APP.R.i(e));a.setProperty("--x-proximity-lift",""+$APP.R.i(b)+"px");a.transform=d},Ur=function(a){var b=$APP.k(a,"__xProximityListModel"),c=$APP.k(a,"__xProximityListPointer"),d=$APP.n(c)?$APP.k(c,"active")===!0:c,e=function(){var ba=$APP.k(a,"__xProximityListRects");return $APP.n(ba)?ba:[]}(),f=function(){var ba=Lr(a);return $APP.n(ba)?ba:[]}(),h=$APP.Di.j(e.length,f.length),l=Nr(a,f.length),m=$APP.xo.i(b),q=Sr.i(b),r=$APP.Zn.i(b);b=$APP.ql.i(b);
7
+ for(var v=0,w=!1;;)if(v>=h){w&&(Tr.i?Tr.i(a):Tr.call(null,a));break}else{var y=e[v],A=f[v],D=l[v],G=$APP.k(y,"cx"),I=$APP.k(y,"cy");y=$APP.n(d)?Hr(G,I,$APP.k(c,"x"),$APP.k(c,"y"),m):0;var J=1+y*y*(q-1);G=$APP.p(d)?0:$APP.n(b)?$APP.k(c,"x")-G:$APP.k(c,"y")-I;var K=$APP.n($APP.n(d)?r>0:d)?y*y*r*(G>=30?1:G<=-30?-1:G/30):0;G=Qr($APP.k(D,"scale"),J);I=Qr($APP.k(D,"lift"),K);J=$APP.M(G,J)||$APP.M(I,K);D.scale=G;D.lift=I;$APP.p(d)&&G===1&&I===0?Or(A):Rr(A,D,y,b);w=w||J;v+=1}},Tr=function(a){if(!$APP.n($APP.k(a,
8
+ "__xProximityListRafPending"))){a.__xProximityListRafPending=!0;var b=requestAnimationFrame(function(){a.__xProximityListRafPending=!1;$APP.n(a.isConnected)&&Ur(a);return null});a.__xProximityListRaf=b}return null},Vr=function(a){var b=$APP.k(a,"__xProximityListRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xProximityListRaf=null);a.__xProximityListRafPending=!1},Wr=function(a,b,c,d){$APP.bh(a,"x-proximity-list-select",$APP.Wi(new $APP.P(null,3,["index",b,"item",c,"source",d],null)))},Xr=function(a){a.getAttribute("tabindex")==
9
+ null&&a.setAttribute("tabindex","0")},Yr=function(a){var b=Lr(a);if($APP.n(b))for(var c=b.length,d=0;;)if(d<c)Xr(b[d]),d+=1;else break;requestAnimationFrame(function(){Mr(a);return Tr(a)});return null},Zr=function(a){function b(){return Yr(a)}function c(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Y.i(m)):m)){var q=Lr(a),r=$APP.n(q)?q.length:null,v=l.key,w=$APP.ql.i(m);m=$APP.n(w)?"ArrowUp":"ArrowLeft";w=$APP.n(w)?"ArrowDown":"ArrowRight";var y=$APP.k(a,"__xProximityListFocus");
10
+ y=$APP.n(y)?y:-1;$APP.n($APP.n(r)?r>0:r)&&($APP.B.j(v,m)?(l.preventDefault(),l=y<1?r-1:y-1,a.__xProximityListFocus=l,q[l].focus()):$APP.B.j(v,w)?(l.preventDefault(),l=y>=r-1?0:y+1,a.__xProximityListFocus=l,q[l].focus()):($APP.B.j(v,"Enter")||$APP.B.j(v," "))&&y>=0&&(l.preventDefault(),Wr(a,y,q[y],"keyboard")))}return null}function d(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Y.i(m)):m)&&(m=Lr(a),$APP.n(m))){a:{l=l.target;for(var q=m.length,r=0;;)if(r<q){if($APP.B.j(l,
11
+ m[r])){l=r;break a}r+=1}else{l=null;break a}l=void 0}$APP.n(l)&&(a.__xProximityListFocus=l,Wr(a,l,m[l],"pointer"))}return null}function e(){var l=$APP.k(a,"__xProximityListPointer");$APP.n(l)&&(l.active=!1,Tr(a));return null}function f(l){var m=$APP.k(a,"__xProximityListModel");if($APP.n($APP.n(m)?$APP.p($APP.Y.i(m))&&$APP.B.j("mouse",l.pointerType)&&!Ir():m)){var q=$APP.pk.i($APP.k(a,"__xProximityListRefs"));m=$APP.k(a,"__xProximityListPointer");$APP.n($APP.n(q)?m:q)&&(q=q.getBoundingClientRect(),
12
+ m.x=l.clientX-q.left,m.y=l.clientY-q.top,m.active=!0,Tr(a))}return null}var h=$APP.xk.i($APP.k(a,"__xProximityListRefs"));a.addEventListener("pointermove",f);a.addEventListener("pointerleave",e);a.addEventListener("click",d);a.addEventListener("keydown",c);$APP.n(h)&&h.addEventListener("slotchange",b);$APP.Xg(a,"__xProximityListHandlers",new $APP.P(null,5,[$APP.Sl,f,$APP.dl,e,$APP.am,d,$APP.Bl,c,$APP.xk,b],null))},$r=function(a){var b=$APP.k(a,"__xProximityListHandlers");if($APP.n(b)){a.removeEventListener("pointermove",
13
+ $APP.Sl.i(b));a.removeEventListener("pointerleave",$APP.dl.i(b));a.removeEventListener("click",$APP.am.i(b));a.removeEventListener("keydown",$APP.Bl.i(b));var c=$APP.xk.i($APP.k(a,"__xProximityListRefs"));$APP.n(c)&&c.removeEventListener("slotchange",$APP.xk.i(b));a.__xProximityListHandlers=null}},ds=function(a){var b=new $APP.P(null,6,[$APP.kk,a.getAttribute("direction"),$APP.Vk,a.getAttribute("radius"),as,a.getAttribute("max-scale"),bs,a.getAttribute("lift"),$APP.ik,a.getAttribute("gap"),$APP.qk,
14
+ a.getAttribute("disabled")],null);var c=$APP.H(b),d=$APP.C(c,$APP.kk);b=$APP.C(c,$APP.Vk);var e=$APP.C(c,as),f=$APP.C(c,bs),h=$APP.C(c,$APP.ik);c=$APP.C(c,$APP.qk);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.Vc(cs,d)?d:"horizontal"):d="horizontal";b=new $APP.P(null,7,[$APP.Hk,d,$APP.xo,yr(b,120,20,600),Sr,yr(e,1.5,1,3),$APP.Zn,yr(f,0,0,60),$APP.pl,yr(h,8,0,64),$APP.Y,c!=null,$APP.ql,$APP.B.j(d,"vertical")],null);$APP.M($APP.k(a,"__xProximityListModel"),b)&&(b=$APP.H(b),e=$APP.C(b,$APP.pl),
15
+ f=$APP.C(b,$APP.Y),Kr(a),a.style.setProperty("--x-proximity-list-gap",""+$APP.R.i(e)+"px"),Mr(a),$APP.n($APP.n(f)?f:Ir())?(Vr(a),e=$APP.k(a,"__xProximityListPointer"),$APP.n(e)&&(e.active=!1),Pr(a)):Tr(a),a.__xProximityListModel=b)},fs=function(a){return $APP.ih(a,es)},gs=function(a){$APP.Xg(a,"__xProximityListPointer",{x:0,y:0,active:!1});$APP.Xg(a,"__xProximityListRects",[]);$APP.Xg(a,"__xProximityListDisplayed",[]);a.__xProximityListFocus=-1;a.__xProximityListRafPending=!1;Kr(a);$APP.n(a.hasAttribute("role"))||
16
+ a.setAttribute("role","list");$r(a);Zr(a);var b=$APP.k(a,"__xProximityListRO");$APP.n(b)&&b.disconnect();b=new ResizeObserver(function(){Mr(a);Tr(a);return null});a.__xProximityListRO=b;b.observe(a);ds(a);requestAnimationFrame(function(){var c=Lr(a);if($APP.n(c))for(var d=c.length,e=0;;)if(e<d)Xr(c[e]),e+=1;else break;return Mr(a)});return null},hs=function(a){Vr(a);$r(a);Pr(a);var b=$APP.k(a,"__xProximityListRO");$APP.n(b)&&(b.disconnect(),a.__xProximityListRO=null);return null},is=function(a,b,
17
+ c,d){$APP.M(c,d)&&ds(a);return null},ks=function(){return $APP.Wg("x-proximity-list",new $APP.P(null,5,[$APP.Mg,js,$APP.Ng,gs,$APP.Og,hs,$APP.Qg,is,$APP.Ug,fs],null))},as=new $APP.F(null,"max-scale-raw","max-scale-raw",-238296345),ls=new $APP.F(null,"maxScale","maxScale",1268368480),Sr=new $APP.F(null,"max-scale","max-scale",-1242050464),bs=new $APP.F(null,"lift-raw","lift-raw",494522715);var js="direction radius max-scale lift gap disabled".split(" ");$APP.Ud(["x-proximity-list-select",new $APP.P(null,4,[$APP.Z,new $APP.P(null,3,[$APP.sj,$APP.W,$APP.Kl,$APP.lj,$APP.Rm,$APP.V],null),$APP.jo,!0,$APP.zo,!0,$APP.Un,!0],null)]);
18
+ var es=new $APP.P(null,6,[$APP.Hk,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"direction",$APP.hh,"horizontal"],null),$APP.xo,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"radius",$APP.hh,120],null),ls,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"max-scale",$APP.hh,1.5],null),$APP.Zn,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"lift",$APP.hh,0],null),$APP.pl,new $APP.P(null,3,[$APP.S,$APP.W,$APP.T,"gap",$APP.hh,8],null),$APP.fl,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"disabled"],null)],null),cs=new $APP.Q(null,new $APP.P(null,
19
+ 2,["vertical",null,"horizontal",null],null),null);var Jr=":host{display:inline-block;"+$APP.R.i("--x-proximity-list-gap")+":8px;"+$APP.R.i("--x-proximity-list-item-size")+":48px;}:host([hidden]){display:none;}[part\x3dtrack]{display:flex;align-items:center;gap:var("+$APP.R.i("--x-proximity-list-gap")+',8px);position:relative;}:host([direction\x3d"vertical"]) [part\x3dtrack]{flex-direction:column;}::slotted(*){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var('+$APP.R.i("--x-proximity-list-item-size")+",48px);height:var("+
20
+ $APP.R.i("--x-proximity-list-item-size")+",48px);transform-origin:center center;will-change:transform;}::slotted(:focus-visible){outline:2px solid var(--x-color-primary,#2563eb);outline-offset:2px;}@media(prefers-reduced-motion:reduce){::slotted(*){transform:none!important;}}";$APP.da("baredom.exports.x_proximity_list.init",ks);export const init=ks;
package/dist/x-radio.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Tt=function(a){a=$APP.zf([$APP.Sl,$APP.fm,$APP.ei,$APP.ui,$APP.Kj,$APP.dk,$APP.Wm,$APP.pk,$APP.Uj],[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=$APP.D(b,$APP.pk);var c=$APP.D(b,$APP.Uj),d=$APP.D(b,$APP.Sl),e=$APP.D(b,$APP.fm),g=$APP.D(b,$APP.ei),h=$APP.D(b,$APP.ui),l=$APP.D(b,
3
- $APP.Kj),m=$APP.D(b,$APP.dk);b=$APP.D(b,$APP.Wm);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.Ei,$APP.yi,$APP.wn,$APP.Wj,$APP.oi,$APP.Sj,$APP.pj,$APP.wk,$APP.sn,$APP.hm,$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)])},Ut=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=Tt(a);var d=$APP.X.g(b),e=$APP.Wj.g(b);$APP.Og(c,"aria-checked",$APP.yi.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");$APP.Og(c,"aria-required",
4
- $APP.n($APP.Ei.g(b))?"true":"false");$APP.Og(c,"aria-readonly",$APP.n($APP.wn.g(b))?"true":"false");var g=$APP.hm.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.wk.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.sn.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$APP.Pg(a,"data-checked",e);$APP.Pg(a,"data-disabled",
5
- d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.pj.g(b):null):null}return null},Vt=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]},Wt=function(a){a=Vt(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=
6
- $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})},Xt=function(a){var b=Tt(a),c=$APP.X.g(b),d=$APP.wn.g(b),e=$APP.Wj.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.pj.g(b);return $APP.Rg(a,"x-radio-change-request",{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),Ut(a),Vt(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),
7
- Ut(g)):null}),Wt(a),$APP.Qg(a,"x-radio-change",{value:b,checked:!0})):null},Yt=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?$APP.k(a,"control").focus():null},Zt=function(a){return function(b){var c=b.key,d=Vt(a),e=d.length,g=d.indexOf(a);if($APP.B.i(c," ")||$APP.B.i(c,"Enter"))return b.preventDefault(),Xt(a);if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.ed(g+1,e)],Xt(b),Yt(b)}else if($APP.B.i(c,"ArrowUp")||$APP.B.i(c,"ArrowLeft"))if(b.preventDefault(),
8
- e>0)return b=d[$APP.ed(g-1,e)],Xt(b),Yt(b);return null}},$t=function(a){return function(){return Xt(a)}},au=function(a){var b=$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},bu=function(a,b){$APP.Pg(a,"disabled",$APP.F(b));return Ut(a)},cu=function(a){a.removeAttribute("checked");return Ut(a)},
9
- du=function(a){if(!$APP.n($APP.k(a,"__xRadioRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("button"),e=document.createElement("span");c.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;}}";
10
- d.setAttribute("part","control");d.setAttribute("type","button");d.setAttribute("role","radio");e.setAttribute("part","dot");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xRadioRefs={root:b,control:d,dot:e};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xRadioInternals=b)}au(a);b=$APP.k(a,"__xRadioRefs");$APP.n(b)&&(b=$APP.k(b,"control"),c=$t(a),d=Zt(a),e={click:c,keydown:d},a.addEventListener("click",c),b.addEventListener("keydown",d),a.__xRadioHandlers=e);Ut(a);return Wt(a)},eu=
11
- function(a){return au(a)},fu=function(a){return Ut(a)},gu=function(a){$APP.Sg(a,"checked","checked");$APP.Sg(a,"disabled","disabled");$APP.Sg(a,"readOnly","readonly");$APP.Sg(a,"required","required");$APP.Ug(a,"name","name");return $APP.Ug(a,"value","value")},iu=function(){return $APP.Lg("x-radio",new $APP.Q(null,8,[$APP.Cg,hu,$APP.Dg,du,$APP.Eg,eu,$APP.Fg,fu,$APP.Gg,!0,$APP.Hg,bu,$APP.Ig,cu,$APP.Jg,gu],null))};var hu="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-radio-change-request",new $APP.Q(null,2,[$APP.Km,!0,$APP.V,new $APP.Q(null,3,[$APP.pj,$APP.Y,$APP.Nk,$APP.uk,$APP.mm,$APP.uk],null)],null),"x-radio-change",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,2,[$APP.pj,$APP.Y,$APP.kn,$APP.uk],null)],null)]);$APP.ha("baredom.exports.x_radio.init",iu);export const init=iu;
2
+ var uv=function(a){a=$APP.Hf([$APP.Zm,$APP.Eh,$APP.dj,$APP.qj,$APP.Gk,$APP.al,$APP.Ch,$APP.ll,$APP.Pk],[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.H(a);a=$APP.C(b,$APP.ll);var c=$APP.C(b,$APP.Pk),d=$APP.C(b,$APP.Zm),e=$APP.C(b,$APP.Eh),f=$APP.C(b,$APP.dj),h=$APP.C(b,$APP.qj),l=$APP.C(b,
3
+ $APP.Gk),m=$APP.C(b,$APP.al);b=$APP.C(b,$APP.Ch);l=$APP.E(l);f=$APP.E(f);return $APP.Hf([$APP.zj,$APP.uj,$APP.Ko,$APP.Rk,$APP.jj,$APP.Ok,$APP.Fh,$APP.sl,$APP.Fo,$APP.on,$APP.Y],[f,l?"true":"false",$APP.E(m),l,$APP.n(f)?l:!0,d,b!=null?b:"on",h,c,a,$APP.E(e)])},vv=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=uv(a);var d=$APP.Y.i(b),e=$APP.Rk.i(b);$APP.Zg(c,"aria-checked",$APP.uj.i(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");$APP.Zg(c,"aria-required",
4
+ $APP.n($APP.zj.i(b))?"true":"false");$APP.Zg(c,"aria-readonly",$APP.n($APP.Ko.i(b))?"true":"false");var f=$APP.on.i(b);$APP.n(f)?c.setAttribute("aria-label",f):c.removeAttribute("aria-label");f=$APP.sl.i(b);$APP.n(f)?c.setAttribute("aria-labelledby",f):c.removeAttribute("aria-labelledby");f=$APP.Fo.i(b);$APP.n(f)?c.setAttribute("aria-describedby",f):c.removeAttribute("aria-describedby");$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$APP.$g(a,"data-checked",e);$APP.$g(a,"data-disabled",
5
+ d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Fh.i(b):null):null}return null},wv=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.M(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.B.j(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},xv=function(a){a=wv(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=
6
+ $APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.B.j(d,b)?0:-1:$APP.B.j(d,c)?0:-1,e.tabIndex=d):null})},yv=function(a){var b=uv(a),c=$APP.Y.i(b),d=$APP.Ko.i(b),e=$APP.Rk.i(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Fh.i(b);return $APP.bh(a,"x-radio-change-request",{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),vv(a),wv(a).forEach(function(f){var h=$APP.M(f,a);return $APP.n(h?f.hasAttribute("checked"):h)?(f.removeAttribute("checked"),
7
+ vv(f)):null}),xv(a),$APP.ah(a,"x-radio-change",{value:b,checked:!0})):null},zv=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?$APP.k(a,"control").focus():null},Av=function(a){return function(b){var c=b.key,d=wv(a),e=d.length,f=d.indexOf(a);if($APP.B.j(c," ")||$APP.B.j(c,"Enter"))return b.preventDefault(),yv(a);if($APP.B.j(c,"ArrowDown")||$APP.B.j(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.jd(f+1,e)],yv(b),zv(b)}else if($APP.B.j(c,"ArrowUp")||$APP.B.j(c,"ArrowLeft"))if(b.preventDefault(),
8
+ e>0)return b=d[$APP.jd(f-1,e)],yv(b),zv(b);return null}},Bv=function(a){return function(){return yv(a)}},Cv=function(a){var b=$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},Dv=function(a,b){$APP.$g(a,"disabled",$APP.E(b));return vv(a)},Ev=function(a){a.removeAttribute("checked");return vv(a)},
9
+ Fv=function(a){if(!$APP.n($APP.k(a,"__xRadioRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("button"),e=document.createElement("span");c.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;}}";
10
+ d.setAttribute("part","control");d.setAttribute("type","button");d.setAttribute("role","radio");e.setAttribute("part","dot");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xRadioRefs={root:b,control:d,dot:e};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xRadioInternals=b)}Cv(a);b=$APP.k(a,"__xRadioRefs");$APP.n(b)&&(b=$APP.k(b,"control"),c=Bv(a),d=Av(a),e={click:c,keydown:d},a.addEventListener("click",c),b.addEventListener("keydown",d),a.__xRadioHandlers=e);vv(a);return xv(a)},Gv=
11
+ function(a){return Cv(a)},Hv=function(a){return vv(a)},Jv=function(a){return $APP.ih(a,Iv)},Lv=function(){return $APP.Wg("x-radio",new $APP.P(null,8,[$APP.Mg,Kv,$APP.Ng,Fv,$APP.Og,Gv,$APP.Qg,Hv,$APP.Rg,!0,$APP.Sg,Dv,$APP.Tg,Ev,$APP.Ug,Jv],null))};var Kv="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" "),Iv=new $APP.P(null,6,[$APP.yo,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"checked"],null),$APP.fl,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"disabled"],null),$APP.Wn,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"readonly"],null),$APP.Wl,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"required"],null),$APP.Ok,new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"name"],null),$APP.Fh,new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,
12
+ "value"],null)],null);$APP.Ud(["x-radio-change-request",new $APP.P(null,2,[$APP.Un,!0,$APP.Z,new $APP.P(null,3,[$APP.Fh,$APP.V,$APP.Nl,$APP.U,$APP.un,$APP.U],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.Un,!1,$APP.Z,new $APP.P(null,2,[$APP.Fh,$APP.V,$APP.yo,$APP.U],null)],null)]);$APP.da("baredom.exports.x_radio.init",Lv);export const init=Lv;
@@ -1,13 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var XU=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},YU=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},ZU=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},$U=function(a){var b=$APP.k(a,
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.Zi,b,$APP.Zj,d,$APP.Ek,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},cV=function(a){a=new $APP.Q(null,4,[$APP.Yk,a.getAttribute("intensity"),$APP.mj,a.getAttribute("duration"),aV,a.getAttribute("frequency"),$APP.fm,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Yk);var c=$APP.D(b,$APP.mj),
5
- d=$APP.D(b,aV);b=$APP.D(b,$APP.fm);return new $APP.Q(null,4,[$APP.Pk,XU(a),$APP.xl,YU(c),bV,ZU(d),$APP.X,$APP.F(b)],null)},fV=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.S.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.S.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.Cl,d,dV,e,eV,g],null)},
7
- gV=function(a,b){var c=cV(a);if(!$APP.n($APP.X.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.Pk),e=$APP.D(c,$APP.xl),g=$APP.D(c,bV);c=$U(a);c=$APP.M(c);var h=$APP.D(c,$APP.Zj),l=$APP.D(c,$APP.Ek),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.S.g(m);a.__xRippleCounter=m+1;m=fV(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.Cl),r=$APP.D(m,dV),v=$APP.D(m,eV),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.S.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.S.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 U=g*(1-J*.7);v.setAttribute("scale",
9
- ""+$APP.S.g(d*(1-J)));r.setAttribute("baseFrequency",""+$APP.S.g(U));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)}},hV=function(a){function b(c){c.button===0&&gV(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},iV=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.Ek);for(c=$APP.D(c,$APP.Zj);;)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)},jV=function(a){Object.defineProperty(a,"intensity",{get:function(){return XU(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
- this.setAttribute("intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return YU(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return ZU(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});return 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})},kV=function(a){$U(a);iV(a);hV(a);return null},lV=function(a){iV(a);return null},mV=function(){return null},oV=function(){return $APP.Lg("x-ripple-effect",new $APP.Q(null,5,[$APP.Cg,nV,$APP.Dg,kV,$APP.Eg,lV,$APP.Fg,mV,$APP.Jg,
13
- jV],null))},dV=new $APP.K(null,"turb","turb",-804768361),aV=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),eV=new $APP.K(null,"disp","disp",-2047544334),bV=new $APP.K(null,"frequency","frequency",-1408891382);var nV=["intensity","duration","frequency","disabled"];$APP.Pd(["x-ripple-effect-start",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.cm,$APP.W,$APP.bm,$APP.W],null),$APP.Km,!1],null),"x-ripple-effect-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.cm,$APP.W,$APP.bm,$APP.W],null),$APP.Km,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",oV);export const init=oV;
2
+ var H_=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},I_=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},J_=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},K_=function(a){var b=$APP.k(a,
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"),f=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);f.setAttribute("part","filters");f.style.position="absolute";
4
+ f.style.width="0";f.style.height="0";f.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xRippleRefs=new $APP.P(null,3,[$APP.Qh,b,$APP.Rh,d,$APP.Cl,f],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},N_=function(a){a=new $APP.P(null,4,[$APP.Zl,a.getAttribute("intensity"),$APP.hk,a.getAttribute("duration"),L_,a.getAttribute("frequency"),$APP.Eh,a.hasAttribute("disabled")],null);var b=$APP.H(a);a=$APP.C(b,$APP.Zl);var c=$APP.C(b,$APP.hk),
5
+ d=$APP.C(b,L_);b=$APP.C(b,$APP.Eh);return new $APP.P(null,4,[$APP.Pl,H_(a),$APP.Em,I_(c),M_,J_(d),$APP.Y,$APP.E(b)],null)},Q_=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"),f=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.R.i(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.R.i(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");f.setAttribute("in","SourceGraphic");f.setAttribute("in2","turbulence");f.setAttribute("scale","0");f.setAttribute("xChannelSelector","R");f.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(f);a.appendChild(d);return new $APP.P(null,3,[$APP.Jm,d,O_,e,P_,f],null)},
7
+ R_=function(a,b){var c=N_(a);if(!$APP.n($APP.Y.i(c))){c=$APP.H(c);var d=$APP.C(c,$APP.Pl),e=$APP.C(c,$APP.Em),f=$APP.C(c,M_);c=K_(a);c=$APP.H(c);var h=$APP.C(c,$APP.Rh),l=$APP.C(c,$APP.Cl),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.R.i(m);a.__xRippleCounter=m+1;m=Q_(l,c,f);m=$APP.H(m);var q=$APP.C(m,$APP.Jm),r=$APP.C(m,O_),v=$APP.C(m,P_),w=b.clientX,y=b.clientY,A=performance.now(),D=$APP.k(a,"__xRippleFrames");b=$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.R.i(c)+")";$APP.ah(a,"x-ripple-effect-start",{x:w,y});b?(v.setAttribute("scale",""+$APP.R.i(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(q);h.style.filter="";return $APP.ah(a,"x-ripple-effect-end",{x:w,y})})):b=requestAnimationFrame(function I(){var J=performance.now()-A;J=Math.min(1,J/e);var K=1-J;K=1-K*K*K;var ba=f*(1-K*.7);v.setAttribute("scale",""+$APP.R.i(d*(1-K)));r.setAttribute("baseFrequency",""+$APP.R.i(ba));if(J>=1)return l.removeChild(q),
9
+ l.childNodes.length===0&&(h.style.filter=""),$APP.ah(a,"x-ripple-effect-end",{x:w,y});J=requestAnimationFrame(I);return D.push(J)});D.push(b)}},S_=function(a){function b(c){c.button===0&&R_(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},T_=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,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.H(b);b=$APP.C(c,$APP.Cl);for(c=$APP.C(c,
10
+ $APP.Rh);;)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)},U_=function(a){Object.defineProperty(a,"intensity",{get:function(){return H_(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return I_(this.getAttribute("duration"))},
11
+ set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.R.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return J_(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",""+$APP.R.i(b))},enumerable:!0,configurable:!0});return $APP.ch(a,"disabled","disabled")},V_=function(a){K_(a);T_(a);S_(a);return null},W_=function(a){T_(a);return null},
12
+ X_=function(){return null},Z_=function(){return $APP.Wg("x-ripple-effect",new $APP.P(null,5,[$APP.Mg,Y_,$APP.Ng,V_,$APP.Og,W_,$APP.Qg,X_,$APP.Ug,U_],null))},O_=new $APP.F(null,"turb","turb",-804768361),L_=new $APP.F(null,"frequency-raw","frequency-raw",-1367383022),P_=new $APP.F(null,"disp","disp",-2047544334),M_=new $APP.F(null,"frequency","frequency",-1408891382);var Y_=["intensity","duration","frequency","disabled"];$APP.Ud(["x-ripple-effect-start",new $APP.P(null,2,[$APP.Z,new $APP.P(null,2,[$APP.kn,$APP.W,$APP.jn,$APP.W],null),$APP.Un,!1],null),"x-ripple-effect-end",new $APP.P(null,2,[$APP.Z,new $APP.P(null,2,[$APP.kn,$APP.W,$APP.jn,$APP.W],null),$APP.Un,!1],null)]);$APP.da("baredom.exports.x_ripple_effect.init",Z_);export const init=Z_;
@@ -1,20 +1,19 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var x0=function(a){return new $APP.Q(null,1,[$APP.um,a],null)},y0=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.Zi,b,$APP.Ej,d,$APP.Cj,e,$APP.Xi,g],null);return $APP.k(a,"__xScrollParallaxRefs")},F0=function(a){a=new $APP.Q(null,5,[$APP.qj,a.getAttribute("direction"),z0,a.getAttribute("source"),A0,a.getAttribute("easing"),$APP.wj,
4
- $APP.n(a.hasAttribute("disabled"))?"":null,$APP.Hi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.qj),d=$APP.D(b,z0),e=$APP.D(b,A0);a=$APP.D(b,$APP.wj);b=$APP.D(b,$APP.Hi);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(B0,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(C0,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(D0,e)?e:"none";return new $APP.Q(null,5,[$APP.Lj,c,$APP.Kl,d,E0,e,$APP.X,a!=null,$APP.T,$APP.n(b)?
5
- b:""],null)},G0=function(a){a=y0(a);a=$APP.M(a);return $APP.D(a,$APP.Cj).assignedElements()},H0=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.Yj,b,$APP.Li,c,$APP.Ii,$APP.B.i("fade",a.getAttribute("data-opacity")),$APP.sj,$APP.B.i("grow",a.getAttribute("data-scale"))],null)},I0=function(a){var b=
6
- $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=G0(a);b=$APP.We.m($APP.ee,$APP.$d.g(H0),$APP.uc(b));return a.__xScrollParallaxChildCache=b},J0=function(a){a.__xScrollParallaxChildCache=null},K0=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},L0=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},M0=function(a){var b=function(){var H=$APP.k(a,"__xScrollParallaxModel");return $APP.n(H)?H:F0(a)}();if(!$APP.n($APP.X.g(b))){var c=a.getBoundingClientRect();b=$APP.B.i("vertical",$APP.Lj.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.Jh.i(0,$APP.Kh.i(1,(d-c.top)/(d+c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=G0(a);for(var h=I0(a),l=K0(a),m=L0(a),p=d.length,r=0;;)if(r<p){if(r<
8
- $APP.z(h)){var v=d[r],x=$APP.pc(h,r),y=$APP.M(x),A=$APP.D(y,$APP.Yj),C=$APP.D(y,$APP.Li);x=$APP.D(y,$APP.Ii);y=$APP.D(y,$APP.sj);A=(g-.5)*e*(A-1)+C;var E=b?"translateY("+$APP.S.g(A)+"px)":"translateX("+$APP.S.g(A)+"px)";A=$APP.n(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.S.g(E)+" scale("+$APP.S.g(H)+")"}():E;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+$APP.S.g(g<l?g/l:g>1-l?(1-g)/l:1))}r+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,$APP.Qg(a,
9
- "x-scroll-parallax-progress",$APP.Zh(x0(g)))}a.__xScrollParallaxRAF=null},N0=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 M0(a)})):null},O0=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.q($APP.k(a,
10
- "scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},P0=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)},Q0=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},R0=function(a,b){b=b[0].isIntersecting;var c=$APP.M($APP.k(a,"__xScrollParallaxRefs"));c=$APP.D(c,$APP.Xi);a.__xScrollParallaxVisible=
11
- b;if($APP.n(b))return O0(a),M0(a),Q0(c,"Parallax section entered viewport"),$APP.Qg(a,"x-scroll-parallax-enter",$APP.Zh(x0(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())));P0(a);Q0(c,"Parallax section left viewport");return $APP.Qg(a,"x-scroll-parallax-leave",$APP.Zh(x0(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())))},S0=function(a){function b(){return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?(J0(a),M0(a)):null}function c(){J0(a);
12
- return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?M0(a):null}var d=y0(a);d=$APP.M(d);$APP.D(d,$APP.Cj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollParallaxHandlers",{scroll:function(){return N0(a)},slot:c,resize:b,scrollAttached:!1})},T0=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){P0(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.Cj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=
13
- $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},U0=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return R0(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},V0=function(a){var b=F0(a);if($APP.N($APP.k(a,"__xScrollParallaxModel"),b)){var c=$APP.M(b),d=$APP.D(c,$APP.Lj);
14
- b=$APP.D(c,$APP.X);var e=$APP.D(c,$APP.T),g=y0(a);g=$APP.M(g);g=$APP.D(g,$APP.Ej);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.q(b):c)&&M0(a)}},W0=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)?this.setAttribute("direction",""+$APP.S.g(b)):
15
- 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.S.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)?this.setAttribute("easing",""+$APP.S.g(b)):
16
- 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",""+$APP.S.g(b)):this.removeAttribute("label")},
17
- enumerable:!0,configurable:!0});return Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},X0=function(a){y0(a);T0(a);S0(a);U0(a);V0(a);return null},Y0=function(a){for(var b=G0(a),c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(a,"__xScrollParallaxVisible"))&&(b=$APP.k(a,"__xScrollParallaxLastProg"),$APP.Qg(a,"x-scroll-parallax-leave",$APP.Zh(x0($APP.n(b)?
18
- b:0))));T0(a);b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),a.__xScrollParallaxIO=null);J0(a);a.__xScrollParallaxVisible=!1;return a.__xScrollParallaxLastProg=null},Z0=function(a,b,c,d){$APP.N(c,d)&&V0(a);return null},a1=function(){return $APP.Lg("x-scroll-parallax",new $APP.Q(null,5,[$APP.Cg,$0,$APP.Dg,X0,$APP.Eg,Y0,$APP.Fg,Z0,$APP.Jg,W0],null))},z0=new $APP.K(null,"source-raw","source-raw",396083546),A0=new $APP.K(null,"easing-raw","easing-raw",440485546),E0=new $APP.K(null,"easing",
19
- "easing",735372043);var $0=["direction","source","easing","disabled","label"];$APP.Pd(["x-scroll-parallax-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null),"x-scroll-parallax-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null),"x-scroll-parallax-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null)]);
20
- var B0=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),C0=new $APP.R(null,new $APP.Q(null,1,["document",null],null),null),D0=new $APP.R(null,new $APP.Q(null,2,["none",null,"smooth",null],null),null);$APP.ha("baredom.exports.x_scroll_parallax.init",a1);export const init=a1;
2
+ var e4=function(a){return new $APP.P(null,1,[$APP.Kn,a],null)},f4=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"),f=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);f.setAttribute("part","live");f.setAttribute("aria-live","polite");f.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xScrollParallaxRefs=new $APP.P(null,4,[$APP.Qh,b,$APP.zk,d,$APP.xk,e,$APP.Rj,f],null);return $APP.k(a,"__xScrollParallaxRefs")},i4=function(a){a=new $APP.P(null,5,[$APP.kk,a.getAttribute("direction"),g4,a.getAttribute("source"),h4,a.getAttribute("easing"),$APP.qk,
4
+ $APP.n(a.hasAttribute("disabled"))?"":null,$APP.Bh,a.getAttribute("label")],null);var b=$APP.H(a),c=$APP.C(b,$APP.kk),d=$APP.C(b,g4),e=$APP.C(b,h4);a=$APP.C(b,$APP.qk);b=$APP.C(b,$APP.Bh);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.Vc(yca,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Vc(zca,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.Vc(Aca,e)?e:"none";return new $APP.P(null,5,[$APP.Hk,c,$APP.Rm,d,Bca,e,$APP.Y,a!=null,$APP.X,$APP.n(b)?
5
+ b:""],null)},j4=function(a){a=f4(a);a=$APP.H(a);return $APP.C(a,$APP.xk).assignedElements()},Cca=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.P(null,4,[$APP.Tk,b,$APP.Ej,c,$APP.Bj,$APP.B.j("fade",a.getAttribute("data-opacity")),$APP.mk,$APP.B.j("grow",a.getAttribute("data-scale"))],null)},Dca=function(a){var b=
6
+ $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=j4(a);b=$APP.df.m($APP.me,$APP.ee.i(Cca),$APP.xc(b));return a.__xScrollParallaxChildCache=b},k4=function(a){a.__xScrollParallaxChildCache=null},Eca=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},Fca=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},l4=function(a){var b=function(){var I=$APP.k(a,"__xScrollParallaxModel");return $APP.n(I)?I:i4(a)}();if(!$APP.n($APP.Y.i(b))){var c=a.getBoundingClientRect();b=$APP.B.j("vertical",$APP.Hk.i(b));var d=window.innerHeight,e=b?d:window.innerWidth,f=$APP.Ci.j(0,$APP.Di.j(1,(d-c.top)/(d+c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=j4(a);for(var h=Dca(a),l=Eca(a),m=Fca(a),q=d.length,r=0;;)if(r<q){if(r<
8
+ $APP.z(h)){var v=d[r],w=$APP.sc(h,r),y=$APP.H(w),A=$APP.C(y,$APP.Tk),D=$APP.C(y,$APP.Ej);w=$APP.C(y,$APP.Bj);y=$APP.C(y,$APP.mk);A=(f-.5)*e*(A-1)+D;var G=b?"translateY("+$APP.R.i(A)+"px)":"translateX("+$APP.R.i(A)+"px)";A=$APP.n(y)?function(){var I=m+(1-m)*(1-Math.abs(f-.5)*2);return""+$APP.R.i(G)+" scale("+$APP.R.i(I)+")"}():G;v.style.transform=A;$APP.n(w)&&(v.style.opacity=""+$APP.R.i(f<l?f/l:f>1-l?(1-f)/l:1))}r+=1}else break;if(c==null||Math.abs(f-c)>.001)a.__xScrollParallaxLastProg=f,$APP.ah(a,
9
+ "x-scroll-parallax-progress",$APP.Wi(e4(f)))}a.__xScrollParallaxRAF=null},Gca=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.k(a,"__xScrollParallaxRAF"))?null:$APP.fa(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return l4(a)})):null},Hca=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,
10
+ "scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},m4=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)},n4=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},Ica=function(a,b){b=b[0].isIntersecting;var c=$APP.H($APP.k(a,"__xScrollParallaxRefs"));c=$APP.C(c,$APP.Rj);a.__xScrollParallaxVisible=
11
+ b;if($APP.n(b))return Hca(a),l4(a),n4(c,"Parallax section entered viewport"),$APP.ah(a,"x-scroll-parallax-enter",$APP.Wi(e4(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())));m4(a);n4(c,"Parallax section left viewport");return $APP.ah(a,"x-scroll-parallax-leave",$APP.Wi(e4(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())))},Jca=function(a){function b(){return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?(k4(a),l4(a)):null}function c(){k4(a);
12
+ return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?l4(a):null}var d=f4(a);d=$APP.H(d);$APP.C(d,$APP.xk).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.fa(a,"__xScrollParallaxHandlers",{scroll:function(){return Gca(a)},slot:c,resize:b,scrollAttached:!1})},o4=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){m4(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.xk.i(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=
13
+ $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},Kca=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return Ica(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},p4=function(a){var b=i4(a);if($APP.M($APP.k(a,"__xScrollParallaxModel"),b)){var c=$APP.H(b),d=$APP.C(c,$APP.Hk);
14
+ b=$APP.C(c,$APP.Y);var e=$APP.C(c,$APP.X),f=f4(a);f=$APP.H(f);f=$APP.C(f,$APP.zk);a.setAttribute("data-direction",d);$APP.t(e)?f.setAttribute("aria-label",e):f.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.k(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.p(b):c)&&l4(a)}},Lca=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)?this.setAttribute("direction",""+$APP.R.i(b)):
15
+ 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.R.i(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)?this.setAttribute("easing",""+$APP.R.i(b)):
16
+ this.removeAttribute("easing")},enumerable:!0,configurable:!0});$APP.ch(a,"disabled","disabled");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.M(b,""):b)?this.setAttribute("label",""+$APP.R.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,
17
+ configurable:!0})},Mca=function(a){f4(a);o4(a);Jca(a);Kca(a);p4(a);return null},Nca=function(a){for(var b=j4(a),c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(a,"__xScrollParallaxVisible"))&&(b=$APP.k(a,"__xScrollParallaxLastProg"),$APP.ah(a,"x-scroll-parallax-leave",$APP.Wi(e4($APP.n(b)?b:0))));o4(a);b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),a.__xScrollParallaxIO=null);k4(a);a.__xScrollParallaxVisible=!1;return a.__xScrollParallaxLastProg=
18
+ null},Oca=function(a,b,c,d){$APP.M(c,d)&&p4(a);return null},q4=function(){return $APP.Wg("x-scroll-parallax",new $APP.P(null,5,[$APP.Mg,Pca,$APP.Ng,Mca,$APP.Og,Nca,$APP.Qg,Oca,$APP.Ug,Lca],null))},g4=new $APP.F(null,"source-raw","source-raw",396083546),h4=new $APP.F(null,"easing-raw","easing-raw",440485546),Bca=new $APP.F(null,"easing","easing",735372043);var Pca=["direction","source","easing","disabled","label"];$APP.Ud(["x-scroll-parallax-enter",new $APP.P(null,2,[$APP.Z,new $APP.P(null,1,[$APP.Kn,$APP.W],null),$APP.Un,!1],null),"x-scroll-parallax-leave",new $APP.P(null,2,[$APP.Z,new $APP.P(null,1,[$APP.Kn,$APP.W],null),$APP.Un,!1],null),"x-scroll-parallax-progress",new $APP.P(null,2,[$APP.Z,new $APP.P(null,1,[$APP.Kn,$APP.W],null),$APP.Un,!1],null)]);
19
+ var yca=new $APP.Q(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),zca=new $APP.Q(null,new $APP.P(null,1,["document",null],null),null),Aca=new $APP.Q(null,new $APP.P(null,2,["none",null,"smooth",null],null),null);$APP.da("baredom.exports.x_scroll_parallax.init",q4);export const init=q4;
@@ -1,20 +1,19 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sG=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.q(isNaN(a))&&a>0?a:b):b},uG=function(a){return typeof a==="string"&&$APP.I(tG,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},vG=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},wG=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},xG=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 yJ=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:b):b},AJ=function(a){return typeof a==="string"&&$APP.Vc(zJ,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},BJ=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},CJ=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},DJ=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.Zi,b,$APP.Zj,d,$APP.Cj,e],null);return $APP.k(a,"__xScrollStackRefs")},BG=function(a){a=new $APP.Q(null,5,[$APP.Dm,a.getAttribute("peek"),yG,a.getAttribute("rotation"),zG,a.getAttribute("scroll-distance"),$APP.oj,a.getAttribute("align"),$APP.wj,$APP.n(a.hasAttribute("disabled"))?"":null],null);var b=$APP.M(a);a=$APP.D(b,$APP.Dm);var c=$APP.D(b,
5
- yG),d=$APP.D(b,zG),e=$APP.D(b,$APP.oj);b=$APP.D(b,$APP.wj);return new $APP.Q(null,5,[$APP.tj,sG(a,6),$APP.tm,sG(c,3),AG,sG(d,150),$APP.Nj,uG(e),$APP.X,b!=null],null)},CG=function(a){a=xG(a);a=$APP.M(a);return $APP.D(a,$APP.Cj).assignedElements()},DG=function(a){var b=$APP.k(a,"__xScrollStackModel");b=$APP.n(b)?b:BG(a);var c=CG(a).length;b=window.innerHeight+c*AG.g(b);a.style.height=""+$APP.S.g(b)+"px"},JG=function(a){var b=function(){var ta=$APP.k(a,"__xScrollStackModel");return $APP.n(ta)?ta:BG(a)}(),
6
- c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=CG(a),e=d.length,g=$APP.k(a,"__xScrollStackNaturalOffsets"),h=$APP.k(a,"__xScrollStackChildHeights");if($APP.n(function(){var ta=e>0;return ta?$APP.n(g)?$APP.n(h)?$APP.B.i(g.length,e)&&$APP.B.i(h.length,e):h:g:ta}())){var l=AG.g(b),m=$APP.tj.g(b),p=$APP.tm.g(b),r=$APP.Nj.g(b),v=g[0],x=$APP.n(a.hasAttribute("align"))?function(){var ta=(e-1)*m+h[e-1],Ma=$APP.M($APP.k(a,"__xScrollStackRefs"));Ma=$APP.D(Ma,$APP.Zj).clientHeight;a:switch(r){case "top":ta=
7
- 32;break a;case "bottom":ta=Ma-ta-32;break a;default:ta=(Ma-ta)/2}return ta-v}():0;b=wG(c,e,l);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,l)))),A=function(){var ta=$APP.k(a,"__xScrollStackStackedCount");return $APP.n(ta)?ta:0}(),C=0;;)if(C<e){var E=d[C],H=vG(c,C,l),G=new $APP.Q(null,3,[EG,C*m,FG,p*Math.sin(C*2.3),GG,2*Math.cos(C*3.7)],null),J=g[C];J=v+EG.g(G)-J;J=H*J+H*x;var U=H*FG.g(G);G=H*GG.g(G);var aa=H>0?""+$APP.S.g(C):"";E.style.transform=H===0?"":"translate("+$APP.S.g(G.toFixed(2))+
8
- "px,"+$APP.S.g(J.toFixed(2))+"px) rotate("+$APP.S.g(U.toFixed(3))+"deg)";E.style.zIndex=aa;C+=1}else break;$APP.N(y,A)&&(a.__xScrollStackStackedCount=y,$APP.Qg(a,"x-scroll-stack-change",$APP.Zh(new $APP.Q(null,3,[HG,y,IG,e,$APP.um,b],null))));c=$APP.k(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,$APP.Qg(a,"x-scroll-stack-progress",$APP.Zh(new $APP.Q(null,3,[$APP.um,b,HG,y,IG,e],null)))}a.__xScrollStackRAF=null},KG=function(a){a=$APP.k(a,"__xScrollStackModel");
9
- return $APP.n(a)?$APP.X.g(a):a},LG=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStackVisible"),$APP.n(b)?$APP.q(KG(a)):b):b}())?$APP.n($APP.k(a,"__xScrollStackRAF"))?null:$APP.ja(a,"__xScrollStackRAF",requestAnimationFrame(function(){return JG(a)})):null},MG=function(a){a=$APP.k(a,"__xScrollStackHandlers");$APP.n($APP.n(a)?$APP.q($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},
10
- NG=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},OG=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=null;if($APP.n(a.isConnected)){var c=CG(a),d=c.length;if(d>0){var e=$APP.M($APP.k(a,
11
- "__xScrollStackRefs")),g=$APP.D(e,$APP.Zj);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 JG(a)}return null}))},PG=function(a){var b=$APP.k(a,"__xScrollStackIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){c=
12
- c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.n(c)?$APP.n(KG(a))?c=null:(MG(a),c=OG(a)):c=NG(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},QG=function(a){a=CG(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},RG=function(a){function b(){DG(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?OG(a):null}function c(){DG(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?OG(a):null}var d=xG(a);d=$APP.M(d);$APP.D(d,$APP.Cj).addEventListener("slotchange",
13
- c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStackHandlers",{scroll:function(){return LG(a)},slot:c,resize:b,scrollAttached:!1})},SG=function(a){var b=$APP.k(a,"__xScrollStackHandlers");if($APP.n(b)){NG(a);var c=$APP.k(a,"__xScrollStackRefs");if($APP.n(c)){c=$APP.Cj.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",b)}b=$APP.k(a,"__xScrollStackRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=
14
- null);b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},TG=function(a){var b=BG(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)?(QG(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,NG(a)):$APP.n($APP.k(a,"__xScrollStackVisible"))&&(MG(a),OG(a))}},UG=function(a){Object.defineProperty(a,"peek",{get:function(){return sG(this.getAttribute("peek"),
15
- 6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.S.g(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return sG(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.S.g(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",{get:function(){return sG(this.getAttribute("scroll-distance"),150)},set:function(b){return b!=
16
- null?this.setAttribute("scroll-distance",""+$APP.S.g(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return uG(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.S.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",
17
- ""):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});return Object.defineProperty(a,"refresh",{value:function(){DG(this);return $APP.n($APP.k(this,"__xScrollStackVisible"))?OG(this):
18
- null},enumerable:!0,configurable:!0})},VG=function(a){xG(a);SG(a);RG(a);PG(a);TG(a);DG(a);return null},WG=function(a){QG(a);SG(a);var b=$APP.k(a,"__xScrollStackIO");$APP.n(b)&&(b.disconnect(),a.__xScrollStackIO=null);a.__xScrollStackVisible=!1;a.__xScrollStackStackedCount=0;a.__xScrollStackLastProg=null;a.__xScrollStackNaturalOffsets=null;return a.__xScrollStackChildHeights=null},XG=function(a,b,c,d){$APP.N(c,d)&&(TG(a),DG(a),$APP.n($APP.k(a,"__xScrollStackVisible"))&&OG(a));return null},ZG=function(){return $APP.Lg("x-scroll-stack",
19
- new $APP.Q(null,5,[$APP.Cg,YG,$APP.Dg,VG,$APP.Eg,WG,$APP.Fg,XG,$APP.Jg,UG],null))},FG=new $APP.K(null,"stack-rot","stack-rot",-949440704),IG=new $APP.K(null,"totalCount","totalCount",2101470328),zG=new $APP.K(null,"scroll-distance-raw","scroll-distance-raw",1537519796),GG=new $APP.K(null,"stack-x","stack-x",-1557848736),EG=new $APP.K(null,"stack-y","stack-y",146748620),yG=new $APP.K(null,"rotation-raw","rotation-raw",318004495),HG=new $APP.K(null,"stackedCount","stackedCount",137366007),AG=new $APP.K(null,
20
- "scroll-distance","scroll-distance",-544947824);var YG=["peek","rotation","scroll-distance","align","disabled"];$APP.Pd(["x-scroll-stack-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[HG,$APP.W,IG,$APP.W,$APP.um,$APP.W],null),$APP.Km,!1],null),"x-scroll-stack-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.um,$APP.W,HG,$APP.W,IG,$APP.W],null),$APP.Km,!1],null)]);var tG=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",ZG);export const init=ZG;
4
+ d.setAttribute("part","container");d.setAttribute("role","region");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xScrollStackRefs=new $APP.P(null,3,[$APP.Qh,b,$APP.Rh,d,$APP.xk,e],null);return $APP.k(a,"__xScrollStackRefs")},HJ=function(a){a=new $APP.P(null,5,[$APP.Mn,a.getAttribute("peek"),EJ,a.getAttribute("rotation"),FJ,a.getAttribute("scroll-distance"),$APP.jk,a.getAttribute("align"),$APP.qk,$APP.n(a.hasAttribute("disabled"))?"":null],null);var b=$APP.H(a);a=$APP.C(b,$APP.Mn);var c=$APP.C(b,
5
+ EJ),d=$APP.C(b,FJ),e=$APP.C(b,$APP.jk);b=$APP.C(b,$APP.qk);return new $APP.P(null,5,[$APP.nk,yJ(a,6),$APP.Jn,yJ(c,3),GJ,yJ(d,150),$APP.Jk,AJ(e),$APP.Y,b!=null],null)},IJ=function(a){a=DJ(a);a=$APP.H(a);return $APP.C(a,$APP.xk).assignedElements()},JJ=function(a){var b=$APP.k(a,"__xScrollStackModel");b=$APP.n(b)?b:HJ(a);var c=IJ(a).length;b=window.innerHeight+c*GJ.i(b);a.style.height=""+$APP.R.i(b)+"px"},PJ=function(a){var b=function(){var Ba=$APP.k(a,"__xScrollStackModel");return $APP.n(Ba)?Ba:HJ(a)}(),
6
+ c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=IJ(a),e=d.length,f=$APP.k(a,"__xScrollStackNaturalOffsets"),h=$APP.k(a,"__xScrollStackChildHeights");if($APP.n(function(){var Ba=e>0;return Ba?$APP.n(f)?$APP.n(h)?$APP.B.j(f.length,e)&&$APP.B.j(h.length,e):h:f:Ba}())){var l=GJ.i(b),m=$APP.nk.i(b),q=$APP.Jn.i(b),r=$APP.Jk.i(b),v=f[0],w=$APP.n(a.hasAttribute("align"))?function(){var Ba=(e-1)*m+h[e-1],La=$APP.H($APP.k(a,"__xScrollStackRefs"));La=$APP.C(La,$APP.Rh).clientHeight;a:switch(r){case "top":Ba=
7
+ 32;break a;case "bottom":Ba=La-Ba-32;break a;default:Ba=(La-Ba)/2}return Ba-v}():0;b=CJ(c,e,l);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,l)))),A=function(){var Ba=$APP.k(a,"__xScrollStackStackedCount");return $APP.n(Ba)?Ba:0}(),D=0;;)if(D<e){var G=d[D],I=BJ(c,D,l),J=new $APP.P(null,3,[KJ,D*m,LJ,q*Math.sin(D*2.3),MJ,2*Math.cos(D*3.7)],null),K=f[D];K=v+KJ.i(J)-K;K=I*K+I*w;var ba=I*LJ.i(J);J=I*MJ.i(J);var ia=I>0?""+$APP.R.i(D):"";G.style.transform=I===0?"":"translate("+$APP.R.i(J.toFixed(2))+
8
+ "px,"+$APP.R.i(K.toFixed(2))+"px) rotate("+$APP.R.i(ba.toFixed(3))+"deg)";G.style.zIndex=ia;D+=1}else break;$APP.M(y,A)&&(a.__xScrollStackStackedCount=y,$APP.ah(a,"x-scroll-stack-change",$APP.Wi(new $APP.P(null,3,[NJ,y,OJ,e,$APP.Kn,b],null))));c=$APP.k(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,$APP.ah(a,"x-scroll-stack-progress",$APP.Wi(new $APP.P(null,3,[$APP.Kn,b,NJ,y,OJ,e],null)))}a.__xScrollStackRAF=null},QJ=function(a){a=$APP.k(a,"__xScrollStackModel");
9
+ return $APP.n(a)?$APP.Y.i(a):a},RJ=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStackVisible"),$APP.n(b)?$APP.p(QJ(a)):b):b}())?$APP.n($APP.k(a,"__xScrollStackRAF"))?null:$APP.fa(a,"__xScrollStackRAF",requestAnimationFrame(function(){return PJ(a)})):null},SJ=function(a){a=$APP.k(a,"__xScrollStackHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},
10
+ TJ=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},UJ=function(a){var b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);return $APP.fa(a,"__xScrollStackCacheRAF",requestAnimationFrame(function(){a.__xScrollStackCacheRAF=null;if($APP.n(a.isConnected)){var c=IJ(a),d=c.length;if(d>0){var e=$APP.H($APP.k(a,
11
+ "__xScrollStackRefs")),f=$APP.C(e,$APP.Rh);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;f.offsetHeight;f=f.getBoundingClientRect();for(l=0;;)if(l<d)m=c[l].getBoundingClientRect(),e[l]=m.top-f.top,h[l]=m.height,l+=1;else break;a.__xScrollStackNaturalOffsets=e;a.__xScrollStackChildHeights=h}return PJ(a)}return null}))},VJ=function(a){var b=$APP.k(a,"__xScrollStackIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){c=
12
+ c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.n(c)?$APP.n(QJ(a))?c=null:(SJ(a),c=UJ(a)):c=TJ(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},WJ=function(a){a=IJ(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},XJ=function(a){function b(){JJ(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?UJ(a):null}function c(){JJ(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?UJ(a):null}var d=DJ(a);d=$APP.H(d);$APP.C(d,$APP.xk).addEventListener("slotchange",
13
+ c);window.addEventListener("resize",b);$APP.fa(a,"__xScrollStackHandlers",{scroll:function(){return RJ(a)},slot:c,resize:b,scrollAttached:!1})},YJ=function(a){var b=$APP.k(a,"__xScrollStackHandlers");if($APP.n(b)){TJ(a);var c=$APP.k(a,"__xScrollStackRefs");if($APP.n(c)){c=$APP.xk.i(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",b)}b=$APP.k(a,"__xScrollStackRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=
14
+ null);b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},ZJ=function(a){var b=HJ(a);if($APP.M($APP.k(a,"__xScrollStackModel"),b)){b=$APP.H(b);var c=$APP.C(b,$APP.Y);a.__xScrollStackModel=b;$APP.n(c)?(WJ(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,TJ(a)):$APP.n($APP.k(a,"__xScrollStackVisible"))&&(SJ(a),UJ(a))}},$J=function(a){Object.defineProperty(a,"peek",{get:function(){return yJ(this.getAttribute("peek"),
15
+ 6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.R.i(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return yJ(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.R.i(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",{get:function(){return yJ(this.getAttribute("scroll-distance"),150)},set:function(b){return b!=
16
+ null?this.setAttribute("scroll-distance",""+$APP.R.i(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return AJ(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.R.i(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});$APP.ch(a,"disabled","disabled");Object.defineProperty(a,"stackedCount",{get:function(){var b=$APP.k(this,"__xScrollStackStackedCount");return $APP.n(b)?
17
+ 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});return Object.defineProperty(a,"refresh",{value:function(){JJ(this);return $APP.n($APP.k(this,"__xScrollStackVisible"))?UJ(this):null},enumerable:!0,configurable:!0})},aK=function(a){DJ(a);YJ(a);XJ(a);VJ(a);ZJ(a);JJ(a);return null},bK=function(a){WJ(a);YJ(a);var b=$APP.k(a,"__xScrollStackIO");$APP.n(b)&&(b.disconnect(),
18
+ a.__xScrollStackIO=null);a.__xScrollStackVisible=!1;a.__xScrollStackStackedCount=0;a.__xScrollStackLastProg=null;a.__xScrollStackNaturalOffsets=null;return a.__xScrollStackChildHeights=null},cK=function(a,b,c,d){$APP.M(c,d)&&(ZJ(a),JJ(a),$APP.n($APP.k(a,"__xScrollStackVisible"))&&UJ(a));return null},eK=function(){return $APP.Wg("x-scroll-stack",new $APP.P(null,5,[$APP.Mg,dK,$APP.Ng,aK,$APP.Og,bK,$APP.Qg,cK,$APP.Ug,$J],null))},LJ=new $APP.F(null,"stack-rot","stack-rot",-949440704),OJ=new $APP.F(null,
19
+ "totalCount","totalCount",2101470328),FJ=new $APP.F(null,"scroll-distance-raw","scroll-distance-raw",1537519796),MJ=new $APP.F(null,"stack-x","stack-x",-1557848736),KJ=new $APP.F(null,"stack-y","stack-y",146748620),EJ=new $APP.F(null,"rotation-raw","rotation-raw",318004495),NJ=new $APP.F(null,"stackedCount","stackedCount",137366007),GJ=new $APP.F(null,"scroll-distance","scroll-distance",-544947824);var dK=["peek","rotation","scroll-distance","align","disabled"];$APP.Ud(["x-scroll-stack-change",new $APP.P(null,2,[$APP.Z,new $APP.P(null,3,[NJ,$APP.W,OJ,$APP.W,$APP.Kn,$APP.W],null),$APP.Un,!1],null),"x-scroll-stack-progress",new $APP.P(null,2,[$APP.Z,new $APP.P(null,3,[$APP.Kn,$APP.W,NJ,$APP.W,OJ,$APP.W],null),$APP.Un,!1],null)]);var zJ=new $APP.Q(null,new $APP.P(null,3,["top",null,"center",null,"bottom",null],null),null);$APP.da("baredom.exports.x_scroll_stack.init",eK);export const init=eK;