aptechka 0.5.19 → 0.5.20

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.
@@ -40,6 +40,7 @@ export declare class ScrollElement extends CustomElement {
40
40
  get autoplayCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
41
41
  get autoplayPauseDurationCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
42
42
  get autoplayUserDirectionCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
43
+ get currentIndexOffsetCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
43
44
  get disabledCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
44
45
  get hibernatedCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
45
46
  get currentScrollValue(): number;
@@ -1 +1 @@
1
- "use strict";var ps=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(ps(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(ps(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ct=require("../Store-BQGNOHlY.cjs"),Os=require("../Derived-BZtlW0bB.cjs"),is=require("../browser-CpzFX2xg.cjs"),gt=require("../layout-8ryRAMGJ.cjs"),rs=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const ge=require("../order/index.cjs"),ms=require("../Damped-CbWlWAbx.cjs"),ye=require("../controls/index.cjs"),wt=require("../custom-element/index.cjs"),re=require("../window-resizer/index.cjs"),qt=require("../scroll-entries/index.cjs"),A=require("../tags-CueX-JLX.cjs"),ns=require("../createStylesheet-C8aQQ4hd.cjs"),fs=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),$s=require("../Viewport-DhKPH5nw.cjs"),qe=require("../element-resizer/index.cjs"),Ds=require("../gestures-DHLrn6Q8.cjs"),Ss=require("../theme/index.cjs"),Fs=require("../dom-JBOkFLTh.cjs"),gs=require("../function-MthRj-GJ.cjs");var Rs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Ts=(r,e,i,n)=>{for(var h=n>1?void 0:n?qs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Rs(e,i,h),h},hs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(hs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},b=(r,e,i,n)=>(hs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(hs(r,e,"access private method"),i),d,R,st,X,it,_t,yt,Z,T,Bt,At,It,Ht,oe,ot,Gt,Pt,Ut,Nt,g,Te,u,Pe,Ee,W,_,B,Y,$t,ft,$,P,ae,Et,ne,he,te,ve,Dt,ee,Be,os,Ae,as,ke,Ue,We,Ne,I,He,Ke,ws,le,Me,xe,Ze,me,Ie,Je,bs,w,y,Rt,tt,vt;class Bs{constructor(e,i){V(this,w,void 0);V(this,y,void 0);V(this,Rt,0);V(this,tt,0);V(this,vt,null);F(this,w,e),F(this,y,i),qt.scrollEntries.register(o(this,w))}get size(){return o(this,Rt)}get position(){return o(this,tt)}destroy(){qt.scrollEntries.unregister(o(this,w)),o(this,w).style.transform="",this.mark(null)}setSize(e){e?(o(this,w).style.setProperty("--size",e+"px"),o(this,y).axisCSSProperty.current==="x"?(o(this,w).style.width=e+"px",o(this,w).style.height=""):(o(this,w).style.height=e+"px",o(this,w).style.width="")):(o(this,w).style.width="",o(this,w).style.height="",o(this,w).style.removeProperty("--size"))}resize(){F(this,Rt,o(this,y).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),F(this,tt,o(this,y).vertical?gt.getCumulativeOffsetTop(o(this,w)):gt.getCumulativeOffsetLeft(o(this,w))),F(this,tt,o(this,tt)-o(this,y).contentPosition)}transform(){let e=0;const i=o(this,y).viewportSize*o(this,y).sectionDistanceScaleCSSProperty.current;o(this,y).infiniteCSSProperty.current&&o(this,y).overscroll&&o(this,tt)+o(this,Rt)<o(this,y).currentScrollValue&&(e=o(this,y).distance*-1-o(this,y).gap),qt.scrollEntries.update(o(this,w),o(this,y).axisCSSProperty.current,e);const n=o(this,y).currentScrollValue+e,h=o(this,tt)-o(this,y).viewportSize-i,c=o(this,tt)+o(this,Rt)+i,f=rs.clamp(n,h,c);o(this,y).vertical?o(this,w).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:o(this,w).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}mark(e){o(this,vt)!==e&&(o(this,vt)&&o(this,w).classList.remove(o(this,vt)),e&&o(this,w).classList.add(e),F(this,vt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,vt)}})))}}w=new WeakMap,y=new WeakMap,Rt=new WeakMap,tt=new WeakMap,vt=new WeakMap;const As=ns.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(){super(),l(this,te),l(this,Dt),l(this,Be),l(this,Ae),l(this,ke),l(this,We),l(this,Ke),l(this,xe),l(this,me),l(this,Je),l(this,d,null),l(this,R,new p.CSSProperty(this,"--axis","y")),l(this,st,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,X,new p.CSSProperty(this,"--split",!1)),l(this,it,new p.CSSProperty(this,"--sectional",!1)),l(this,_t,new p.CSSProperty(this,"--auto-size",!1)),l(this,yt,new p.CSSProperty(this,"--wheel-max-delta",!1)),l(this,Z,new p.CSSProperty(this,"--sections-in-view",1)),l(this,T,new p.CSSProperty(this,"--infinite",!1)),l(this,Bt,new p.CSSProperty(this,"--damping",20)),l(this,At,new p.CSSProperty(this,"--mass",0)),l(this,It,new p.CSSProperty(this,"--stiffness",0)),l(this,Ht,new p.CSSProperty(this,"--mouse-drag",!1)),l(this,oe,new p.CSSProperty(this,"--section-distance-scale",.5)),l(this,ot,new p.CSSProperty(this,"--autoplay",0)),l(this,Gt,new p.CSSProperty(this,"--autoplay-pause-duration",0)),l(this,Pt,new p.CSSProperty(this,"--autoplay-user-direction",!1)),l(this,Ut,new p.CSSProperty(this,"--disabled",!1)),l(this,Nt,new p.CSSProperty(this,"--hibernated",!1)),l(this,g,null),l(this,Te,null),l(this,u,[]),l(this,Pe,0),l(this,Ee,0),l(this,W,0),l(this,_,0),l(this,B,0),l(this,Y,null),l(this,$t,null),l(this,ft,null),l(this,$,null),l(this,P,new Ct.Store(0)),l(this,ae,0),l(this,Et,0),l(this,ne,!0),l(this,he,!0),l(this,I,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,_)||0,i=t(this,P).current;if(b(this,Pe,this.vertical?gt.getCumulativeOffsetTop(this):gt.getCumulativeOffsetLeft(this)),b(this,Ee,this.vertical?gt.getCumulativeOffsetTop(t(this,g)):gt.getCumulativeOffsetLeft(t(this,g))),b(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).rowGap)):b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).columnGap)),t(this,_t).current&&t(this,u).length){const n=t(this,Z).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,u).forEach(c=>{c.setSize(h)})}else t(this,u).forEach(n=>{n.setSize()});if(t(this,u).forEach(n=>{n.resize()}),t(this,st).current){b(this,_,t(this,W)*t(this,st).current);const n=t(this,_)+t(this,W);this.vertical?(t(this,g).style.width=n+"px",t(this,g).style.height="100%"):(t(this,g).style.height=n+"px",t(this,g).style.width="100%")}else this.vertical?(t(this,g).style.width="100%",t(this,g).style.height="max-content",b(this,_,t(this,g).offsetHeight-t(this,W))):(t(this,g).style.width="max-content",t(this,g).style.height="100%",b(this,_,t(this,g).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);b(this,_,t(this,_)+h),t(this,d).max=t(this,_)}if(t(this,T).current&&t(this,u).length){const n=t(this,u)[t(this,u).length-1],h=n.position+n.size-t(this,W),c=t(this,_)-h;b(this,Et,n.position+n.size+c)}else b(this,Et,t(this,_));if(t(this,it).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,_),{equalize:!0})}),l(this,He,()=>{const e=this.currentScrollValue;if(b(this,ae,Math.max(0,e-t(this,_))),t(this,u).length){let i=0;for(let n=0;n<t(this,u).length;n++){const h=t(this,u)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,g).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,g).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;qt.scrollEntries.update(this,t(this,R).current,e)}),l(this,le,(e,i)=>{t(this,$).pauseAndContinue(t(this,Gt).current),t(this,Pt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,Me).call(this,e,i)}),l(this,Me,(e,i)=>{if(!(e==="drag"&&!$s.device.isMobile&&!t(this,Ht).current))if(t(this,it).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),is.isBrowser&&(b(this,d,new ms.Damped(0,{damping:.01,min:0,order:ge.TICK_ORDER.SCROLL})),this.openShadow(As),A.element(this,{tabIndex:0,children:[A.div({class:"static",children:[A.slot({name:"static"})]}),A.div({class:"content",children:[A.slot({ref:e=>b(this,Te,e)})],style:{flexDirection:new Os.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>b(this,g,e)})]}),b(this,Y,new ye.WheelControls({element:t(this,g)})),t(this,Y).changeEvent.subscribe(t(this,le)),b(this,$t,new ye.KeyboardControls({element:this})),t(this,$t).changeEvent.subscribe(t(this,le)),b(this,ft,new ye.DragControls({element:t(this,g)})),t(this,ft).changeEvent.subscribe(t(this,le)),b(this,$,new ye.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,Me)),t(this,R).subscribe(({current:e})=>{t(this,g).style.flexDirection=e==="x"?"row":"column",t(this,Y).axis=t(this,yt).current?"max":e,t(this,$t).dimension=e==="x"?"width":"height",t(this,ft).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,I).call(this)}),t(this,yt).subscribe(e=>{t(this,Y).axis=e.current?"max":t(this,R).current}),t(this,st).subscribe(()=>{this.isConnected&&t(this,I).call(this)}),t(this,X).subscribe(({current:e})=>{this.isConnected&&(e?C(this,te,ve).call(this):C(this,Dt,ee).call(this))}),t(this,it).subscribe(e=>{t(this,Y).debounce=e.current,t(this,ft).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,_t).subscribe(e=>{this.isConnected&&(t(this,I).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,Z).subscribe(e=>{this.isConnected&&(t(this,I).call(this),C(this,me,Ie).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,X).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,ae,0),t(this,d).max=t(this,_),t(this,d).min=0)}),t(this,Bt).subscribe(e=>{t(this,d).damping=e.current}),t(this,At).subscribe(e=>{t(this,d).mass=e.current}),t(this,It).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?C(this,Be,os).call(this):!e.current&&e.previous&&C(this,Ae,as).call(this)}),t(this,Nt).subscribe(e=>{e.current&&!e.previous?C(this,ke,Ue).call(this):!e.current&&e.previous&&C(this,We,Ne).call(this)}),t(this,ot).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Pt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,u).length&&C(this,me,Ie).call(this)}))}get damped(){return t(this,d)}get axisCSSProperty(){return t(this,R)}get pagesCSSProperty(){return t(this,st)}get splitCSSProperty(){return t(this,X)}get sectionalCSSProperty(){return t(this,it)}get autoSizeCSSProperty(){return t(this,_t)}get wheelMaxDeltaCSSProperty(){return t(this,yt)}get sectionsInViewCSSProperty(){return t(this,Z)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Bt)}get massCSSProperty(){return t(this,At)}get stiffnessCSSProperty(){return t(this,It)}get mouseDragCSSProperty(){return t(this,Ht)}get sectionDistanceScaleCSSProperty(){return t(this,oe)}get autoplayCSSProperty(){return t(this,ot)}get autoplayPauseDurationCSSProperty(){return t(this,Gt)}get autoplayUserDirectionCSSProperty(){return t(this,Pt)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Nt)}get currentScrollValue(){return C(this,xe,Ze).call(this,"current")}get targetScrollValue(){return C(this,xe,Ze).call(this,"target")}get contentElement(){return t(this,g)}get sections(){return t(this,u)}get position(){return t(this,Pe)}get contentPosition(){return t(this,Ee)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,_)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,u).length-t(this,Z).current}get distance(){return t(this,Et)}get infiniteDistance(){return t(this,T).current?t(this,Et)+t(this,B):t(this,Et)}get overscroll(){return t(this,ae)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,u).length)return;const n=t(this,P).current;C(this,Ke,ws).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,P).current];if(h&&c){let f=0;const _e=C(this,Je,bs).call(this),Vs=_e?this.targetScrollValue-_e.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,u).length-1?f=t(this,_)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,u).length-1&&n===0?f=c.position-(t(this,_)+t(this,W)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-Vs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,R).observe(),t(this,st).observe(),t(this,X).observe(),t(this,it).observe(),t(this,_t).observe(),t(this,yt).observe(),t(this,Z).observe(),t(this,T).observe(),t(this,Bt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,Ht).observe(),t(this,oe).observe(),t(this,ot).observe(),t(this,ot).observe(),t(this,Gt).observe(),t(this,Pt).observe(),t(this,Ut).observe(),t(this,Nt).observe(),C(this,We,Ne).call(this)}disconnectedCallback(){t(this,R).unobserve(),t(this,st).unobserve(),t(this,X).unobserve(),t(this,it).unobserve(),t(this,_t).unobserve(),t(this,yt).unobserve(),t(this,Z).unobserve(),t(this,T).unobserve(),t(this,Bt).unobserve(),t(this,At).unobserve(),t(this,It).unobserve(),t(this,Ht).unobserve(),t(this,oe).unobserve(),t(this,ot).unobserve(),t(this,Gt).unobserve(),t(this,Pt).unobserve(),t(this,Ut).unobserve(),t(this,Nt).unobserve(),C(this,ke,Ue).call(this)}};d=new WeakMap;R=new WeakMap;st=new WeakMap;X=new WeakMap;it=new WeakMap;_t=new WeakMap;yt=new WeakMap;Z=new WeakMap;T=new WeakMap;Bt=new WeakMap;At=new WeakMap;It=new WeakMap;Ht=new WeakMap;oe=new WeakMap;ot=new WeakMap;Gt=new WeakMap;Pt=new WeakMap;Ut=new WeakMap;Nt=new WeakMap;g=new WeakMap;Te=new WeakMap;u=new WeakMap;Pe=new WeakMap;Ee=new WeakMap;W=new WeakMap;_=new WeakMap;B=new WeakMap;Y=new WeakMap;$t=new WeakMap;ft=new WeakMap;$=new WeakMap;P=new WeakMap;ae=new WeakMap;Et=new WeakMap;ne=new WeakMap;he=new WeakMap;te=new WeakSet;ve=function(){C(this,Dt,ee).call(this),t(this,Te).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new Bs(r,this))}),t(this,g).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,I).call(this),C(this,me,Ie).call(this)};Dt=new WeakSet;ee=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Be=new WeakSet;os=function(){t(this,ne)||(b(this,ne,!0),t(this,d).unsubscribe(t(this,He)),t(this,d).unlistenAnimationFrame(),t(this,Y).disconnect(),t(this,$t).disconnect(),t(this,ft).disconnect(),t(this,$).disconnect())};Ae=new WeakSet;as=function(){t(this,ne)&&(b(this,ne,!1),t(this,d).subscribe(t(this,He)),t(this,Y).connect(),t(this,$t).connect(),t(this,ft).connect(),t(this,ot).current&&t(this,$).connect())};ke=new WeakSet;Ue=function(){t(this,he)||(b(this,he,!0),re.windowResizer.unsubscribe(t(this,I)),qe.elementResizer.unsubscribe(t(this,I)),t(this,d).reset(),C(this,Be,os).call(this),t(this,g).style.transform="",t(this,X).current&&C(this,Dt,ee).call(this),qt.scrollEntries.unregister(this))};We=new WeakSet;Ne=function(){t(this,he)&&(b(this,he,!1),t(this,X).current&&C(this,te,ve).call(this),qt.scrollEntries.register(this),re.windowResizer.subscribe(t(this,I),ge.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,I)),C(this,Ae,as).call(this))};I=new WeakMap;He=new WeakMap;Ke=new WeakSet;ws=function(r){t(this,T).current?(t(this,P).current=r%t(this,u).length,t(this,P).current=t(this,P).current<0?t(this,u).length+t(this,P).current:t(this,P).current):t(this,P).current=rs.clamp(r,0,this.limit)};le=new WeakMap;Me=new WeakMap;xe=new WeakSet;Ze=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,_)+t(this,W)+t(this,B));return e<0?t(this,_)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};me=new WeakSet;Ie=function(){if(t(this,u).length){const r=t(this,P).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end"),t(this,u).forEach((e,i)=>{const n=r-this.limit-1,h=r+t(this,Z).current,c=this.sections.length-h;i>=r&&i<h||i<=n?e.mark("current"):i>=h&&i<h+c/2||i<=n+t(this,Z).current?e.mark("next"):e.mark("previous")})}};Je=new WeakSet;bs=function(){let r=null,e=1/0;for(let i=0;i<t(this,u).length;i++){const n=Math.abs(t(this,u)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,u)[r]:null};exports.ScrollElement=Ts([wt.define("e-scroll")],exports.ScrollElement);var we;class Ge extends wt.CustomElement{constructor(){super(...arguments);V(this,we,null)}get scrollElement(){return o(this,we)}connectedCallback(){const i=Fs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,we,i):console.error(this,"e-scroll not found")}}we=new WeakMap;var Is=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Is(e,i,h),h},Cs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(Cs(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},bt=(r,e,i,n)=>(Cs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),ce,q,rt,nt,ue,pe,Kt,Le,ze,Ve;const Us=ns.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ss.aptechkaTheme.colorLight.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ss.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Ge{constructor(){super(),N(this,ce,null),N(this,q,null),N(this,rt,!1),N(this,nt,0),N(this,ue,0),N(this,pe,0),N(this,Kt,()=>{bt(this,rt,this.offsetWidth>this.offsetHeight);const e=S(this,rt)?this.offsetWidth:this.offsetHeight;bt(this,nt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),bt(this,nt,Math.max(S(this,nt),30)),S(this,rt)?(S(this,q).style.width=S(this,nt)+"px",S(this,q).style.height="100%"):(S(this,q).style.width="100%",S(this,q).style.height=S(this,nt)+"px"),bt(this,ue,e-S(this,nt)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Le,()=>{bt(this,pe,this.scrollElement.currentProgress*S(this,ue)),S(this,rt)?S(this,q).style.transform=`translate3d(${S(this,pe)}px, 0px, 0px)`:S(this,q).style.transform=`translate3d(0px, ${S(this,pe)}px, 0px)`}),N(this,ze,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,Ve,e=>{document.documentElement.classList.add("grabbing"),Ds.setupDrag(h=>{const c=S(this,rt)?h.x:h.y,f=this.scrollElement.distance/S(this,ue),_e=(c-n)*f;this.scrollElement.setPosition(i+_e)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,rt)?e.x:e.y}),is.isBrowser&&(this.openShadow(Us),A.element(this,{slot:"static","drag-dead-zone":"",children:[A.slot({ref:e=>bt(this,ce,e),children:A.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,q)}connectedCallback(){super.connectedCallback();const e=S(this,ce).assignedElements()[0]||S(this,ce).firstElementChild;bt(this,q,e),S(this,q).addEventListener("pointerdown",S(this,Ve)),re.windowResizer.subscribe(S(this,Kt),ge.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,S(this,Kt)),this.scrollElement.onScroll(S(this,Le)),this.scrollElement.axisCSSProperty.subscribe(S(this,ze))}disconnectedCallback(){S(this,q).removeEventListener("pointerdown",S(this,Ve)),re.windowResizer.unsubscribe(S(this,Kt)),qe.elementResizer.unsubscribe(S(this,Kt)),this.scrollElement.offScroll(S(this,Le)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,ze))}};ce=new WeakMap;q=new WeakMap;rt=new WeakMap;nt=new WeakMap;ue=new WeakMap;pe=new WeakMap;Kt=new WeakMap;Le=new WeakMap;ze=new WeakMap;Ve=new WeakMap;exports.ScrollbarElement=Gs([wt.define("e-scrollbar")],exports.ScrollbarElement);const Ns=ns.createStylesheet({button:{all:"inherit"}});class _s extends Ge{constructor(){super(),this.openShadow(Ns),is.isBrowser&&A.element(this,{children:[A.button({onClick:()=>{this.handleClick()},children:[A.slot()]})]})}}var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Ks(e,i,h),h};exports.ScrollSetButtonElement=class extends _s{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Js([wt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var Qs=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,Ys=(r,e,i,n)=>{for(var h=n>1?void 0:n?Xs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Qs(e,i,h),h};exports.ScrollStepButtonElement=class extends _s{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=Ys([wt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var js=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(r,e,i,n)=>{for(var h=n>1?void 0:n?ti(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&js(e,i,h),h},ys=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Tt=(r,e,i)=>(ys(r,e,"read from private field"),i?i.call(r):e.get(r)),ds=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},vs=(r,e,i,n)=>(ys(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),kt,fe,et,mt,se,be,Ce,ie;class si{constructor(e,i,n){V(this,et,void 0);V(this,mt,void 0);V(this,se,void 0);V(this,be,void 0);V(this,Ce,()=>{o(this,mt).scrollToSection(o(this,se),o(this,be))});V(this,ie,()=>{o(this,et).classList.toggle("current",o(this,mt).counter.current===o(this,se))});F(this,et,document.createElement("button")),F(this,mt,e),F(this,be,n),F(this,se,i),o(this,et).addEventListener("click",o(this,Ce)),o(this,mt).counter.subscribe(o(this,ie)),o(this,ie).call(this)}get element(){return o(this,et)}destroy(){o(this,et).removeEventListener("click",o(this,Ce)),o(this,mt).counter.unsubscribe(o(this,ie)),o(this,et).remove()}}et=new WeakMap,mt=new WeakMap,se=new WeakMap,be=new WeakMap,Ce=new WeakMap,ie=new WeakMap;exports.ScrollBulletButtonsElement=class extends Ge{constructor(){super(...arguments),ds(this,kt,[]),ds(this,fe,gs.debounce(()=>{Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new si(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Tt(this,kt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Tt(this,fe)),Tt(this,fe).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Tt(this,fe)),Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[])}};kt=new WeakMap;fe=new WeakMap;exports.ScrollBulletButtonsElement=ei([wt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ii=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ni=(r,e,i,n)=>{for(var h=n>1?void 0:n?ri(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&ii(e,i,h),h},ls=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(ls(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},m=(r,e,i,n)=>(ls(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(ls(r,e,"access private method"),i),Zt,Jt,Qt,Xt,Wt,Mt,xt,Lt,D,H,G,U,Ot,x,at,lt,ct,ut,pt,M,Q,J,St,dt,j,Oe,v,Yt,jt,$e,L,zt,O,z,K,Se,Ft,E,Qe,Ps,Xe,Es,Ye,ks,je,Ws,ts,Ms,es,xs,De,de,ht,Vt,cs,Ls,us,zs,Fe,ss,Re;exports.ScrollSegmentElement=class extends Ge{constructor(){super(),a(this,Qe),a(this,Xe),a(this,Ye),a(this,je),a(this,ts),a(this,es),a(this,ht),a(this,cs),a(this,us),a(this,Fe),a(this,Zt,new p.CSSProperty(this,"--damping",20)),a(this,Jt,new p.CSSProperty(this,"--mass",0)),a(this,Qt,new p.CSSProperty(this,"--stiffness",0)),a(this,Xt,new p.CSSProperty(this,"--target","")),a(this,Wt,new p.CSSProperty(this,"--disabled",!1)),a(this,Mt,new p.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),a(this,xt,new p.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),a(this,Lt,new p.CSSProperty(this,"--capture-once",!1)),a(this,D,new p.CSSProperty(this,"--captured","")),a(this,H,new p.CSSProperty(this,"--released","")),a(this,G,new p.CSSProperty(this,"--captured-from-start","")),a(this,U,new p.CSSProperty(this,"--captured-from-finish","")),a(this,Ot,new p.CSSProperty(this,"--released-from-start","")),a(this,x,new p.CSSProperty(this,"--released-from-finish","")),a(this,at,new p.CSSProperty(this,"--passed-var","")),a(this,lt,new p.CSSProperty(this,"--progress-var","")),a(this,ct,new p.CSSProperty(this,"--distance-var","")),a(this,ut,new p.CSSProperty(this,"--start-var","")),a(this,pt,new p.CSSProperty(this,"--finish-var","")),a(this,M,new Ct.Store(!1)),a(this,Q,new Ct.Store(!1)),a(this,J,new Ct.Store(!1)),a(this,St,new Ct.Store(!1)),a(this,dt,new Ct.Store(!1)),a(this,j,new Ct.Store(!1)),a(this,Oe,[]),a(this,v,this),a(this,Yt,0),a(this,jt,0),a(this,$e,0),a(this,L,new ms.Damped(0,{order:ge.TICK_ORDER.SCROLL-1,min:0,max:1})),a(this,zt,0),a(this,O,0),a(this,z,0),a(this,K,0),a(this,Se,!1),a(this,Ft,!1),a(this,E,!0),a(this,De,()=>{s(this,E)||(this.resize(),s(this,de).call(this))}),a(this,de,()=>{!s(this,E)&&s(this,Se)&&this.tick()}),a(this,Re,gs.debounce(()=>{const e=qt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),m(this,Oe,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Mt)}get startOffsetCSSProperty(){return s(this,xt)}get captureOnceCSSProperty(){return s(this,Lt)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,Ot)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,at)}get progressVarCSSProperty(){return s(this,lt)}get distanceVarCSSProperty(){return s(this,ct)}get startVarCSSProperty(){return s(this,ut)}get finishVarCSSProperty(){return s(this,pt)}get disabledCSSProperty(){return s(this,Wt)}get dampingCSSProperty(){return s(this,Zt)}get massCSSProperty(){return s(this,Jt)}get stiffnessCSSProperty(){return s(this,Qt)}get targetCSSProperty(){return s(this,Xt)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,Q)}get isCapturedFromStart(){return s(this,J)}get isReleasedFromStart(){return s(this,St)}get isCapturedFromFinish(){return s(this,dt)}get isReleasedFromFinish(){return s(this,j)}get directionPosition(){return s(this,Yt)}get directionSize(){return s(this,jt)}get passed(){return s(this,L)}get progress(){return s(this,zt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,Ft)}get isDisabled(){return s(this,E)}resize(){m(this,jt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),m(this,Yt,this.scrollElement.vertical?gt.getCumulativeOffsetTop(this,this.scrollElement):gt.getCumulativeOffsetLeft(this,this.scrollElement)),m(this,O,this.getStart()),m(this,z,this.getDistance()),m(this,O,s(this,O)+s(this,xt).current),m(this,z,s(this,z)+s(this,Mt).current),m(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,Q).current&&(s(this,M).current=!0),this.setVar(s(this,ut).current,s(this,O)),this.setVar(s(this,pt).current,s(this,K)),this.setVar(s(this,ct).current,s(this,z)),s(this,L).max=s(this,z),m(this,Se,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Oe).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,J).current||k(this,Ye,ks).call(this):s(this,J).current&&!s(this,St).current&&k(this,ts,Ms).call(this),i<s(this,K)?s(this,j).current&&!s(this,dt).current&&k(this,je,Ws).call(this):s(this,J).current&&!s(this,j).current&&k(this,es,xs).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,Qe,Ps).call(this):s(this,M).current&&(s(this,L).set(rs.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,Xe,Es).call(this)),s(this,Ft)&&s(this,Lt).current&&(s(this,D).current&&s(this,v).classList.add(s(this,D).current),m(this,E,!0))}disable(){this.style.cssText="",m(this,Yt,0),m(this,jt,0),s(this,L).reset(),m(this,zt,0),m(this,O,0),m(this,z,0),m(this,K,0),m(this,Se,!1),s(this,M).current=!1,s(this,Q).current=!1,s(this,J).current=!1,s(this,St).current=!1,s(this,dt).current=!1,s(this,j).current=!1,m(this,Ft,!1),m(this,E,!0),k(this,Fe,ss).call(this)}enable(){m(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,Zt).observe(),s(this,Jt).observe(),s(this,Qt).observe(),s(this,Xt).observe(),s(this,Wt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Ot).observe(),s(this,x).observe(),s(this,at).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,pt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Re)),s(this,Re).call(this),s(this,Wt).current||this.enable(),s(this,Zt).subscribe(i=>{s(this,L).damping=i.current}),s(this,Jt).subscribe(i=>{s(this,L).mass=i.current}),s(this,Qt).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,Xt).subscribe(i=>{i.previous&&k(this,Fe,ss).call(this),i.current?i.current==="parent"?m(this,v,this.parentElement||this):m(this,v,document.querySelector(i.current)||this):m(this,v,this)}),s(this,Wt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,xt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Mt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,G).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,U).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,H).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Ot).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,x).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Lt).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,at).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,lt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,zt)))}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,ct).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{m(this,zt,s(this,L).current/s(this,z)||0),this.setVar(s(this,at).current,s(this,L).current.toFixed(6)),this.setVar(s(this,lt).current,s(this,zt).toFixed(6))}),re.windowResizer.subscribe(s(this,De),ge.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,de)),e=!0}disconnectedCallback(){re.windowResizer.unsubscribe(s(this,De)),this.scrollElement.offScroll(s(this,de)),s(this,Zt).close(),s(this,Jt).close(),s(this,Qt).close(),s(this,Xt).close(),s(this,Wt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Ot).close(),s(this,x).close(),s(this,at).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,pt).close(),s(this,M).close(),s(this,Q).close(),s(this,J).close(),s(this,St).close(),s(this,dt).close(),s(this,j).close(),this.disable()}removeVar(e){e&&s(this,v).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,v).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,jt)+s(this,$e)}getStart(){return s(this,Yt)-s(this,$e)}};Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Ot=new WeakMap;x=new WeakMap;at=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;M=new WeakMap;Q=new WeakMap;J=new WeakMap;St=new WeakMap;dt=new WeakMap;j=new WeakMap;Oe=new WeakMap;v=new WeakMap;Yt=new WeakMap;jt=new WeakMap;$e=new WeakMap;L=new WeakMap;zt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;Se=new WeakMap;Ft=new WeakMap;E=new WeakMap;Qe=new WeakSet;Ps=function(){s(this,M).current=!0,s(this,Q).current=!1,m(this,Ft,!0),s(this,H).current&&s(this,v).classList.remove(s(this,H).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,D).current&&s(this,v).classList.add(s(this,D).current)};Xe=new WeakSet;Es=function(){s(this,Q).current=!0,s(this,M).current=!1,m(this,Ft,!0),s(this,D).current&&s(this,v).classList.remove(s(this,D).current),s(this,G).current&&s(this,v).classList.remove(s(this,G).current),s(this,U).current&&s(this,v).classList.remove(s(this,U).current),s(this,H).current&&s(this,v).classList.add(s(this,H).current)};Ye=new WeakSet;ks=function(){s(this,M).current=!0,s(this,J).current=!0,s(this,St).current=!1,s(this,G).current&&s(this,v).classList.add(s(this,G).current)};je=new WeakSet;Ws=function(){s(this,M).current=!0,s(this,dt).current=!0,s(this,j).current=!1,s(this,U).current&&s(this,v).classList.add(s(this,U).current)};ts=new WeakSet;Ms=function(){s(this,Q).current=!0,s(this,St).current=!0,s(this,J).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};es=new WeakSet;xs=function(){s(this,Q).current=!0,s(this,j).current=!0,s(this,dt).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};De=new WeakMap;de=new WeakMap;ht=new WeakSet;Vt=function(r){if(s(this,E)){r.previous&&s(this,v).classList.remove(r.previous),r.current&&s(this,v).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,v).classList.remove(r.previous),s(this,v).classList.add(r.current)):!r.current&&r.previous&&s(this,v).classList.remove(r.previous)};cs=new WeakSet;Ls=function(...r){r.forEach(e=>{e&&s(this,v).classList.remove(e)})};us=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,v).style.removeProperty(`--${e}`)})};Fe=new WeakSet;ss=function(){k(this,cs,Ls).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Ot).current,s(this,x).current),k(this,us,zs).call(this,s(this,at).current,s(this,lt).current,s(this,ct).current,s(this,ut).current,s(this,pt).current)};Re=new WeakMap;exports.ScrollSegmentElement=ni([wt.define("e-scroll-segment")],exports.ScrollSegmentElement);
1
+ "use strict";var fs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(fs(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(fs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ct=require("../Store-BQGNOHlY.cjs"),$s=require("../Derived-BZtlW0bB.cjs"),rs=require("../browser-CpzFX2xg.cjs"),gt=require("../layout-8ryRAMGJ.cjs"),ns=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const be=require("../order/index.cjs"),gs=require("../Damped-CbWlWAbx.cjs"),Ee=require("../controls/index.cjs"),wt=require("../custom-element/index.cjs"),he=require("../window-resizer/index.cjs"),Tt=require("../scroll-entries/index.cjs"),A=require("../tags-CueX-JLX.cjs"),hs=require("../createStylesheet-C8aQQ4hd.cjs"),Ss=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),Ds=require("../Viewport-DhKPH5nw.cjs"),Be=require("../element-resizer/index.cjs"),Fs=require("../gestures-DHLrn6Q8.cjs"),ds=require("../theme/index.cjs"),Rs=require("../dom-JBOkFLTh.cjs"),ws=require("../function-MthRj-GJ.cjs");var qs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Bs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ts(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&qs(e,i,h),h},os=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(os(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},b=(r,e,i,n)=>(os(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(os(r,e,"access private method"),i),d,R,st,X,it,yt,_t,Z,T,At,It,Ht,Gt,le,ot,Ut,Pt,Ot,Nt,Kt,g,Ae,u,ke,We,W,y,B,Y,Dt,ft,$,P,ce,Et,oe,ae,ee,ge,Ft,ie,Ie,as,He,ls,Me,Ne,xe,Ke,I,Ge,Ze,bs,ue,Le,ze,Je,se,we,Qe,Cs,w,_,qt,tt,vt;class As{constructor(e,i){V(this,w,void 0);V(this,_,void 0);V(this,qt,0);V(this,tt,0);V(this,vt,null);F(this,w,e),F(this,_,i),Tt.scrollEntries.register(o(this,w))}get size(){return o(this,qt)}get position(){return o(this,tt)}destroy(){Tt.scrollEntries.unregister(o(this,w)),o(this,w).style.transform="",this.mark(null)}setSize(e){e?(o(this,w).style.setProperty("--size",e+"px"),o(this,_).axisCSSProperty.current==="x"?(o(this,w).style.width=e+"px",o(this,w).style.height=""):(o(this,w).style.height=e+"px",o(this,w).style.width="")):(o(this,w).style.width="",o(this,w).style.height="",o(this,w).style.removeProperty("--size"))}resize(){F(this,qt,o(this,_).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),F(this,tt,o(this,_).vertical?gt.getCumulativeOffsetTop(o(this,w)):gt.getCumulativeOffsetLeft(o(this,w))),F(this,tt,o(this,tt)-o(this,_).contentPosition)}transform(){let e=0;const i=o(this,_).viewportSize*o(this,_).sectionDistanceScaleCSSProperty.current;o(this,_).infiniteCSSProperty.current&&o(this,_).overscroll&&o(this,tt)+o(this,qt)<o(this,_).currentScrollValue&&(e=o(this,_).distance*-1-o(this,_).gap),Tt.scrollEntries.update(o(this,w),o(this,_).axisCSSProperty.current,e);const n=o(this,_).currentScrollValue+e,h=o(this,tt)-o(this,_).viewportSize-i,c=o(this,tt)+o(this,qt)+i,f=ns.clamp(n,h,c);o(this,_).vertical?o(this,w).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:o(this,w).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}mark(e){o(this,vt)!==e&&(o(this,vt)&&o(this,w).classList.remove(o(this,vt)),e&&o(this,w).classList.add(e),F(this,vt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,vt)}})))}}w=new WeakMap,_=new WeakMap,qt=new WeakMap,tt=new WeakMap,vt=new WeakMap;const Is=hs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(){super(),a(this,ee),a(this,Ft),a(this,Ie),a(this,He),a(this,Me),a(this,xe),a(this,Ze),a(this,ze),a(this,se),a(this,Qe),a(this,d,null),a(this,R,new p.CSSProperty(this,"--axis","y")),a(this,st,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),a(this,X,new p.CSSProperty(this,"--split",!1)),a(this,it,new p.CSSProperty(this,"--sectional",!1)),a(this,yt,new p.CSSProperty(this,"--auto-size",!1)),a(this,_t,new p.CSSProperty(this,"--wheel-max-delta",!1)),a(this,Z,new p.CSSProperty(this,"--sections-in-view",1)),a(this,T,new p.CSSProperty(this,"--infinite",!1)),a(this,At,new p.CSSProperty(this,"--damping",20)),a(this,It,new p.CSSProperty(this,"--mass",0)),a(this,Ht,new p.CSSProperty(this,"--stiffness",0)),a(this,Gt,new p.CSSProperty(this,"--mouse-drag",!1)),a(this,le,new p.CSSProperty(this,"--section-distance-scale",.5)),a(this,ot,new p.CSSProperty(this,"--autoplay",0)),a(this,Ut,new p.CSSProperty(this,"--autoplay-pause-duration",0)),a(this,Pt,new p.CSSProperty(this,"--autoplay-user-direction",!1)),a(this,Ot,new p.CSSProperty(this,"--current-index-offset",0)),a(this,Nt,new p.CSSProperty(this,"--disabled",!1)),a(this,Kt,new p.CSSProperty(this,"--hibernated",!1)),a(this,g,null),a(this,Ae,null),a(this,u,[]),a(this,ke,0),a(this,We,0),a(this,W,0),a(this,y,0),a(this,B,0),a(this,Y,null),a(this,Dt,null),a(this,ft,null),a(this,$,null),a(this,P,new Ct.Store(0)),a(this,ce,0),a(this,Et,0),a(this,oe,!0),a(this,ae,!0),a(this,I,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,y)||0,i=t(this,P).current;if(b(this,ke,this.vertical?gt.getCumulativeOffsetTop(this):gt.getCumulativeOffsetLeft(this)),b(this,We,this.vertical?gt.getCumulativeOffsetTop(t(this,g)):gt.getCumulativeOffsetLeft(t(this,g))),b(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,Ss.cssUnitParser.parse(getComputedStyle(t(this,g)).rowGap)):b(this,B,Ss.cssUnitParser.parse(getComputedStyle(t(this,g)).columnGap)),t(this,yt).current&&t(this,u).length){const n=t(this,Z).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,u).forEach(c=>{c.setSize(h)})}else t(this,u).forEach(n=>{n.setSize()});if(t(this,u).forEach(n=>{n.resize()}),t(this,st).current){b(this,y,t(this,W)*t(this,st).current);const n=t(this,y)+t(this,W);this.vertical?(t(this,g).style.width=n+"px",t(this,g).style.height="100%"):(t(this,g).style.height=n+"px",t(this,g).style.width="100%")}else this.vertical?(t(this,g).style.width="100%",t(this,g).style.height="max-content",b(this,y,t(this,g).offsetHeight-t(this,W))):(t(this,g).style.width="max-content",t(this,g).style.height="100%",b(this,y,t(this,g).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);b(this,y,t(this,y)+h),t(this,d).max=t(this,y)}if(t(this,T).current&&t(this,u).length){const n=t(this,u)[t(this,u).length-1],h=n.position+n.size-t(this,W),c=t(this,y)-h;b(this,Et,n.position+n.size+c)}else b(this,Et,t(this,y));if(t(this,it).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,y),{equalize:!0})}),a(this,Ge,()=>{const e=this.currentScrollValue;if(b(this,ce,Math.max(0,e-t(this,y))),t(this,u).length){let i=0;for(let n=0;n<t(this,u).length;n++){const h=t(this,u)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,g).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,g).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Tt.scrollEntries.update(this,t(this,R).current,e)}),a(this,ue,(e,i)=>{t(this,$).pauseAndContinue(t(this,Ut).current),t(this,Pt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,Le).call(this,e,i)}),a(this,Le,(e,i)=>{if(!(e==="drag"&&!Ds.device.isMobile&&!t(this,Gt).current))if(t(this,it).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),rs.isBrowser&&(b(this,d,new gs.Damped(0,{damping:.01,min:0,order:be.TICK_ORDER.SCROLL})),this.openShadow(Is),A.element(this,{tabIndex:0,children:[A.div({class:"static",children:[A.slot({name:"static"})]}),A.div({class:"content",children:[A.slot({ref:e=>b(this,Ae,e)})],style:{flexDirection:new $s.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>b(this,g,e)})]}),b(this,Y,new Ee.WheelControls({element:t(this,g)})),t(this,Y).changeEvent.subscribe(t(this,ue)),b(this,Dt,new Ee.KeyboardControls({element:this})),t(this,Dt).changeEvent.subscribe(t(this,ue)),b(this,ft,new Ee.DragControls({element:t(this,g)})),t(this,ft).changeEvent.subscribe(t(this,ue)),b(this,$,new Ee.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,Le)),t(this,R).subscribe(({current:e})=>{t(this,g).style.flexDirection=e==="x"?"row":"column",t(this,Y).axis=t(this,_t).current?"max":e,t(this,Dt).dimension=e==="x"?"width":"height",t(this,ft).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,I).call(this)}),t(this,_t).subscribe(e=>{t(this,Y).axis=e.current?"max":t(this,R).current}),t(this,st).subscribe(()=>{this.isConnected&&t(this,I).call(this)}),t(this,X).subscribe(({current:e})=>{this.isConnected&&(e?C(this,ee,ge).call(this):C(this,Ft,ie).call(this))}),t(this,it).subscribe(e=>{t(this,Y).debounce=e.current,t(this,ft).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,ee,ge).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Ft,ie).call(this))}),t(this,yt).subscribe(e=>{this.isConnected&&(t(this,I).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,ee,ge).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Ft,ie).call(this))}),t(this,Z).subscribe(e=>{this.isConnected&&(t(this,I).call(this),C(this,se,we).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,X).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,ce,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,At).subscribe(e=>{t(this,d).damping=e.current}),t(this,It).subscribe(e=>{t(this,d).mass=e.current}),t(this,Ht).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Nt).subscribe(e=>{e.current&&!e.previous?C(this,Ie,as).call(this):!e.current&&e.previous&&C(this,He,ls).call(this)}),t(this,Kt).subscribe(e=>{e.current&&!e.previous?C(this,Me,Ne).call(this):!e.current&&e.previous&&C(this,xe,Ke).call(this)}),t(this,ot).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Pt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,Ot).subscribe(e=>{this.isConnected&&C(this,se,we).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,u).length&&C(this,se,we).call(this)}))}get damped(){return t(this,d)}get axisCSSProperty(){return t(this,R)}get pagesCSSProperty(){return t(this,st)}get splitCSSProperty(){return t(this,X)}get sectionalCSSProperty(){return t(this,it)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,_t)}get sectionsInViewCSSProperty(){return t(this,Z)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,At)}get massCSSProperty(){return t(this,It)}get stiffnessCSSProperty(){return t(this,Ht)}get mouseDragCSSProperty(){return t(this,Gt)}get sectionDistanceScaleCSSProperty(){return t(this,le)}get autoplayCSSProperty(){return t(this,ot)}get autoplayPauseDurationCSSProperty(){return t(this,Ut)}get autoplayUserDirectionCSSProperty(){return t(this,Pt)}get currentIndexOffsetCSSProperty(){return t(this,Ot)}get disabledCSSProperty(){return t(this,Nt)}get hibernatedCSSProperty(){return t(this,Kt)}get currentScrollValue(){return C(this,ze,Je).call(this,"current")}get targetScrollValue(){return C(this,ze,Je).call(this,"target")}get contentElement(){return t(this,g)}get sections(){return t(this,u)}get position(){return t(this,ke)}get contentPosition(){return t(this,We)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,y)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,u).length-t(this,Z).current}get distance(){return t(this,Et)}get infiniteDistance(){return t(this,T).current?t(this,Et)+t(this,B):t(this,Et)}get overscroll(){return t(this,ce)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,u).length)return;const n=t(this,P).current;C(this,Ze,bs).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,P).current];if(h&&c){let f=0;const Pe=C(this,Qe,Cs).call(this),Os=Pe?this.targetScrollValue-Pe.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,u).length-1?f=t(this,y)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,u).length-1&&n===0?f=c.position-(t(this,y)+t(this,W)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-Os,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,R).observe(),t(this,st).observe(),t(this,X).observe(),t(this,it).observe(),t(this,yt).observe(),t(this,_t).observe(),t(this,Z).observe(),t(this,T).observe(),t(this,At).observe(),t(this,It).observe(),t(this,Ht).observe(),t(this,Gt).observe(),t(this,le).observe(),t(this,ot).observe(),t(this,ot).observe(),t(this,Ut).observe(),t(this,Pt).observe(),t(this,Ot).observe(),t(this,Nt).observe(),t(this,Kt).observe(),C(this,xe,Ke).call(this)}disconnectedCallback(){t(this,R).unobserve(),t(this,st).unobserve(),t(this,X).unobserve(),t(this,it).unobserve(),t(this,yt).unobserve(),t(this,_t).unobserve(),t(this,Z).unobserve(),t(this,T).unobserve(),t(this,At).unobserve(),t(this,It).unobserve(),t(this,Ht).unobserve(),t(this,Gt).unobserve(),t(this,le).unobserve(),t(this,ot).unobserve(),t(this,Ut).unobserve(),t(this,Pt).unobserve(),t(this,Ot).unobserve(),t(this,Nt).unobserve(),t(this,Kt).unobserve(),C(this,Me,Ne).call(this)}};d=new WeakMap;R=new WeakMap;st=new WeakMap;X=new WeakMap;it=new WeakMap;yt=new WeakMap;_t=new WeakMap;Z=new WeakMap;T=new WeakMap;At=new WeakMap;It=new WeakMap;Ht=new WeakMap;Gt=new WeakMap;le=new WeakMap;ot=new WeakMap;Ut=new WeakMap;Pt=new WeakMap;Ot=new WeakMap;Nt=new WeakMap;Kt=new WeakMap;g=new WeakMap;Ae=new WeakMap;u=new WeakMap;ke=new WeakMap;We=new WeakMap;W=new WeakMap;y=new WeakMap;B=new WeakMap;Y=new WeakMap;Dt=new WeakMap;ft=new WeakMap;$=new WeakMap;P=new WeakMap;ce=new WeakMap;Et=new WeakMap;oe=new WeakMap;ae=new WeakMap;ee=new WeakSet;ge=function(){C(this,Ft,ie).call(this),t(this,Ae).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new As(r,this))}),t(this,g).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,I).call(this),C(this,se,we).call(this)};Ft=new WeakSet;ie=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Ie=new WeakSet;as=function(){t(this,oe)||(b(this,oe,!0),t(this,d).unsubscribe(t(this,Ge)),t(this,d).unlistenAnimationFrame(),t(this,Y).disconnect(),t(this,Dt).disconnect(),t(this,ft).disconnect(),t(this,$).disconnect())};He=new WeakSet;ls=function(){t(this,oe)&&(b(this,oe,!1),t(this,d).subscribe(t(this,Ge)),t(this,Y).connect(),t(this,Dt).connect(),t(this,ft).connect(),t(this,ot).current&&t(this,$).connect())};Me=new WeakSet;Ne=function(){t(this,ae)||(b(this,ae,!0),he.windowResizer.unsubscribe(t(this,I)),Be.elementResizer.unsubscribe(t(this,I)),t(this,d).reset(),C(this,Ie,as).call(this),t(this,g).style.transform="",t(this,X).current&&C(this,Ft,ie).call(this),Tt.scrollEntries.unregister(this))};xe=new WeakSet;Ke=function(){t(this,ae)&&(b(this,ae,!1),t(this,X).current&&C(this,ee,ge).call(this),Tt.scrollEntries.register(this),he.windowResizer.subscribe(t(this,I),be.RESIZE_ORDER.SCROLL),Be.elementResizer.subscribe(this,t(this,I)),C(this,He,ls).call(this))};I=new WeakMap;Ge=new WeakMap;Ze=new WeakSet;bs=function(r){t(this,T).current?(t(this,P).current=r%t(this,u).length,t(this,P).current=t(this,P).current<0?t(this,u).length+t(this,P).current:t(this,P).current):t(this,P).current=ns.clamp(r,0,this.limit)};ue=new WeakMap;Le=new WeakMap;ze=new WeakSet;Je=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,y)+t(this,W)+t(this,B));return e<0?t(this,y)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};se=new WeakSet;we=function(){if(t(this,u).length){const r=t(this,P).current+t(this,Ot).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end"),t(this,u).forEach((e,i)=>{const n=r-this.limit-1,h=r+t(this,Z).current,c=this.sections.length-h;i>=r&&i<h||i<=n?e.mark("current"):i>=h&&i<h+c/2||i<=n+t(this,Z).current?e.mark("next"):e.mark("previous")})}};Qe=new WeakSet;Cs=function(){let r=null,e=1/0;for(let i=0;i<t(this,u).length;i++){const n=Math.abs(t(this,u)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,u)[r]:null};exports.ScrollElement=Bs([wt.define("e-scroll")],exports.ScrollElement);var Ce;class Ue extends wt.CustomElement{constructor(){super(...arguments);V(this,Ce,null)}get scrollElement(){return o(this,Ce)}connectedCallback(){const i=Rs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,Ce,i):console.error(this,"e-scroll not found")}}Ce=new WeakMap;var Hs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Us=(r,e,i,n)=>{for(var h=n>1?void 0:n?Gs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Hs(e,i,h),h},ys=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(ys(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},bt=(r,e,i,n)=>(ys(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),pe,q,rt,nt,fe,Se,Zt,Ve,Oe,$e;const Ns=hs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:ds.aptechkaTheme.colorLight.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:ds.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Ue{constructor(){super(),N(this,pe,null),N(this,q,null),N(this,rt,!1),N(this,nt,0),N(this,fe,0),N(this,Se,0),N(this,Zt,()=>{bt(this,rt,this.offsetWidth>this.offsetHeight);const e=S(this,rt)?this.offsetWidth:this.offsetHeight;bt(this,nt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),bt(this,nt,Math.max(S(this,nt),30)),S(this,rt)?(S(this,q).style.width=S(this,nt)+"px",S(this,q).style.height="100%"):(S(this,q).style.width="100%",S(this,q).style.height=S(this,nt)+"px"),bt(this,fe,e-S(this,nt)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Ve,()=>{bt(this,Se,this.scrollElement.currentProgress*S(this,fe)),S(this,rt)?S(this,q).style.transform=`translate3d(${S(this,Se)}px, 0px, 0px)`:S(this,q).style.transform=`translate3d(0px, ${S(this,Se)}px, 0px)`}),N(this,Oe,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,$e,e=>{document.documentElement.classList.add("grabbing"),Fs.setupDrag(h=>{const c=S(this,rt)?h.x:h.y,f=this.scrollElement.distance/S(this,fe),Pe=(c-n)*f;this.scrollElement.setPosition(i+Pe)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,rt)?e.x:e.y}),rs.isBrowser&&(this.openShadow(Ns),A.element(this,{slot:"static","drag-dead-zone":"",children:[A.slot({ref:e=>bt(this,pe,e),children:A.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,q)}connectedCallback(){super.connectedCallback();const e=S(this,pe).assignedElements()[0]||S(this,pe).firstElementChild;bt(this,q,e),S(this,q).addEventListener("pointerdown",S(this,$e)),he.windowResizer.subscribe(S(this,Zt),be.RESIZE_ORDER.SCROLL+1),Be.elementResizer.subscribe(this,S(this,Zt)),this.scrollElement.onScroll(S(this,Ve)),this.scrollElement.axisCSSProperty.subscribe(S(this,Oe))}disconnectedCallback(){S(this,q).removeEventListener("pointerdown",S(this,$e)),he.windowResizer.unsubscribe(S(this,Zt)),Be.elementResizer.unsubscribe(S(this,Zt)),this.scrollElement.offScroll(S(this,Ve)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,Oe))}};pe=new WeakMap;q=new WeakMap;rt=new WeakMap;nt=new WeakMap;fe=new WeakMap;Se=new WeakMap;Zt=new WeakMap;Ve=new WeakMap;Oe=new WeakMap;$e=new WeakMap;exports.ScrollbarElement=Us([wt.define("e-scrollbar")],exports.ScrollbarElement);const Ks=hs.createStylesheet({button:{all:"inherit"}});class _s extends Ue{constructor(){super(),this.openShadow(Ks),rs.isBrowser&&A.element(this,{children:[A.button({onClick:()=>{this.handleClick()},children:[A.slot()]})]})}}var Zs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,Qs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Js(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Zs(e,i,h),h};exports.ScrollSetButtonElement=class extends _s{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Qs([wt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var Xs=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ys(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Xs(e,i,h),h};exports.ScrollStepButtonElement=class extends _s{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=js([wt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,si=(r,e,i,n)=>{for(var h=n>1?void 0:n?ei(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&ti(e,i,h),h},Ps=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Bt=(r,e,i)=>(Ps(r,e,"read from private field"),i?i.call(r):e.get(r)),vs=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},ms=(r,e,i,n)=>(Ps(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),kt,de,et,mt,re,ye,_e,ne;class ii{constructor(e,i,n){V(this,et,void 0);V(this,mt,void 0);V(this,re,void 0);V(this,ye,void 0);V(this,_e,()=>{o(this,mt).scrollToSection(o(this,re),o(this,ye))});V(this,ne,()=>{o(this,et).classList.toggle("current",o(this,mt).counter.current===o(this,re))});F(this,et,document.createElement("button")),F(this,mt,e),F(this,ye,n),F(this,re,i),o(this,et).addEventListener("click",o(this,_e)),o(this,mt).counter.subscribe(o(this,ne)),o(this,ne).call(this)}get element(){return o(this,et)}destroy(){o(this,et).removeEventListener("click",o(this,_e)),o(this,mt).counter.unsubscribe(o(this,ne)),o(this,et).remove()}}et=new WeakMap,mt=new WeakMap,re=new WeakMap,ye=new WeakMap,_e=new WeakMap,ne=new WeakMap;exports.ScrollBulletButtonsElement=class extends Ue{constructor(){super(...arguments),vs(this,kt,[]),vs(this,de,ws.debounce(()=>{Bt(this,kt).forEach(e=>e.destroy()),ms(this,kt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new ii(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Bt(this,kt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Bt(this,de)),Bt(this,de).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Bt(this,de)),Bt(this,kt).forEach(e=>e.destroy()),ms(this,kt,[])}};kt=new WeakMap;de=new WeakMap;exports.ScrollBulletButtonsElement=si([wt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ri=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,hi=(r,e,i,n)=>{for(var h=n>1?void 0:n?ni(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&ri(e,i,h),h},cs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(cs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},m=(r,e,i,n)=>(cs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(cs(r,e,"access private method"),i),Jt,Qt,Xt,Yt,Wt,Mt,xt,Lt,D,H,G,U,$t,x,at,lt,ct,ut,pt,M,Q,J,St,dt,j,De,v,jt,te,Fe,L,zt,O,z,K,ve,Rt,E,Xe,Es,Ye,ks,je,Ws,ts,Ms,es,xs,ss,Ls,Re,me,ht,Vt,us,zs,ps,Vs,qe,is,Te;exports.ScrollSegmentElement=class extends Ue{constructor(){super(),l(this,Xe),l(this,Ye),l(this,je),l(this,ts),l(this,es),l(this,ss),l(this,ht),l(this,us),l(this,ps),l(this,qe),l(this,Jt,new p.CSSProperty(this,"--damping",20)),l(this,Qt,new p.CSSProperty(this,"--mass",0)),l(this,Xt,new p.CSSProperty(this,"--stiffness",0)),l(this,Yt,new p.CSSProperty(this,"--target","")),l(this,Wt,new p.CSSProperty(this,"--disabled",!1)),l(this,Mt,new p.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),l(this,xt,new p.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),l(this,Lt,new p.CSSProperty(this,"--capture-once",!1)),l(this,D,new p.CSSProperty(this,"--captured","")),l(this,H,new p.CSSProperty(this,"--released","")),l(this,G,new p.CSSProperty(this,"--captured-from-start","")),l(this,U,new p.CSSProperty(this,"--captured-from-finish","")),l(this,$t,new p.CSSProperty(this,"--released-from-start","")),l(this,x,new p.CSSProperty(this,"--released-from-finish","")),l(this,at,new p.CSSProperty(this,"--passed-var","")),l(this,lt,new p.CSSProperty(this,"--progress-var","")),l(this,ct,new p.CSSProperty(this,"--distance-var","")),l(this,ut,new p.CSSProperty(this,"--start-var","")),l(this,pt,new p.CSSProperty(this,"--finish-var","")),l(this,M,new Ct.Store(!1)),l(this,Q,new Ct.Store(!1)),l(this,J,new Ct.Store(!1)),l(this,St,new Ct.Store(!1)),l(this,dt,new Ct.Store(!1)),l(this,j,new Ct.Store(!1)),l(this,De,[]),l(this,v,this),l(this,jt,0),l(this,te,0),l(this,Fe,0),l(this,L,new gs.Damped(0,{order:be.TICK_ORDER.SCROLL-1,min:0,max:1})),l(this,zt,0),l(this,O,0),l(this,z,0),l(this,K,0),l(this,ve,!1),l(this,Rt,!1),l(this,E,!0),l(this,Re,()=>{s(this,E)||(this.resize(),s(this,me).call(this))}),l(this,me,()=>{!s(this,E)&&s(this,ve)&&this.tick()}),l(this,Te,ws.debounce(()=>{const e=Tt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),m(this,De,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Mt)}get startOffsetCSSProperty(){return s(this,xt)}get captureOnceCSSProperty(){return s(this,Lt)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,$t)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,at)}get progressVarCSSProperty(){return s(this,lt)}get distanceVarCSSProperty(){return s(this,ct)}get startVarCSSProperty(){return s(this,ut)}get finishVarCSSProperty(){return s(this,pt)}get disabledCSSProperty(){return s(this,Wt)}get dampingCSSProperty(){return s(this,Jt)}get massCSSProperty(){return s(this,Qt)}get stiffnessCSSProperty(){return s(this,Xt)}get targetCSSProperty(){return s(this,Yt)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,Q)}get isCapturedFromStart(){return s(this,J)}get isReleasedFromStart(){return s(this,St)}get isCapturedFromFinish(){return s(this,dt)}get isReleasedFromFinish(){return s(this,j)}get directionPosition(){return s(this,jt)}get directionSize(){return s(this,te)}get passed(){return s(this,L)}get progress(){return s(this,zt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,Rt)}get isDisabled(){return s(this,E)}resize(){m(this,te,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),m(this,jt,this.scrollElement.vertical?gt.getCumulativeOffsetTop(this,this.scrollElement):gt.getCumulativeOffsetLeft(this,this.scrollElement)),m(this,O,this.getStart()),m(this,z,this.getDistance()),m(this,O,s(this,O)+s(this,xt).current),m(this,z,s(this,z)+s(this,Mt).current),m(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,Q).current&&(s(this,M).current=!0),this.setVar(s(this,ut).current,s(this,O)),this.setVar(s(this,pt).current,s(this,K)),this.setVar(s(this,ct).current,s(this,z)),s(this,L).max=s(this,z),m(this,ve,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,De).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,J).current||k(this,je,Ws).call(this):s(this,J).current&&!s(this,St).current&&k(this,es,xs).call(this),i<s(this,K)?s(this,j).current&&!s(this,dt).current&&k(this,ts,Ms).call(this):s(this,J).current&&!s(this,j).current&&k(this,ss,Ls).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,Xe,Es).call(this):s(this,M).current&&(s(this,L).set(ns.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,Ye,ks).call(this)),s(this,Rt)&&s(this,Lt).current&&(s(this,D).current&&s(this,v).classList.add(s(this,D).current),m(this,E,!0))}disable(){this.style.cssText="",m(this,jt,0),m(this,te,0),s(this,L).reset(),m(this,zt,0),m(this,O,0),m(this,z,0),m(this,K,0),m(this,ve,!1),s(this,M).current=!1,s(this,Q).current=!1,s(this,J).current=!1,s(this,St).current=!1,s(this,dt).current=!1,s(this,j).current=!1,m(this,Rt,!1),m(this,E,!0),k(this,qe,is).call(this)}enable(){m(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,Jt).observe(),s(this,Qt).observe(),s(this,Xt).observe(),s(this,Yt).observe(),s(this,Wt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,$t).observe(),s(this,x).observe(),s(this,at).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,pt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Te)),s(this,Te).call(this),s(this,Wt).current||this.enable(),s(this,Jt).subscribe(i=>{s(this,L).damping=i.current}),s(this,Qt).subscribe(i=>{s(this,L).mass=i.current}),s(this,Xt).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,Yt).subscribe(i=>{i.previous&&k(this,qe,is).call(this),i.current?i.current==="parent"?m(this,v,this.parentElement||this):m(this,v,document.querySelector(i.current)||this):m(this,v,this)}),s(this,Wt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,xt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Mt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,G).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,U).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,H).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,$t).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,x).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Lt).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,at).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,lt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,zt)))}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,ct).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{m(this,zt,s(this,L).current/s(this,z)||0),this.setVar(s(this,at).current,s(this,L).current.toFixed(6)),this.setVar(s(this,lt).current,s(this,zt).toFixed(6))}),he.windowResizer.subscribe(s(this,Re),be.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,me)),e=!0}disconnectedCallback(){he.windowResizer.unsubscribe(s(this,Re)),this.scrollElement.offScroll(s(this,me)),s(this,Jt).close(),s(this,Qt).close(),s(this,Xt).close(),s(this,Yt).close(),s(this,Wt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,$t).close(),s(this,x).close(),s(this,at).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,pt).close(),s(this,M).close(),s(this,Q).close(),s(this,J).close(),s(this,St).close(),s(this,dt).close(),s(this,j).close(),this.disable()}removeVar(e){e&&s(this,v).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,v).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,te)+s(this,Fe)}getStart(){return s(this,jt)-s(this,Fe)}};Jt=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Yt=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;$t=new WeakMap;x=new WeakMap;at=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;M=new WeakMap;Q=new WeakMap;J=new WeakMap;St=new WeakMap;dt=new WeakMap;j=new WeakMap;De=new WeakMap;v=new WeakMap;jt=new WeakMap;te=new WeakMap;Fe=new WeakMap;L=new WeakMap;zt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;ve=new WeakMap;Rt=new WeakMap;E=new WeakMap;Xe=new WeakSet;Es=function(){s(this,M).current=!0,s(this,Q).current=!1,m(this,Rt,!0),s(this,H).current&&s(this,v).classList.remove(s(this,H).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,D).current&&s(this,v).classList.add(s(this,D).current)};Ye=new WeakSet;ks=function(){s(this,Q).current=!0,s(this,M).current=!1,m(this,Rt,!0),s(this,D).current&&s(this,v).classList.remove(s(this,D).current),s(this,G).current&&s(this,v).classList.remove(s(this,G).current),s(this,U).current&&s(this,v).classList.remove(s(this,U).current),s(this,H).current&&s(this,v).classList.add(s(this,H).current)};je=new WeakSet;Ws=function(){s(this,M).current=!0,s(this,J).current=!0,s(this,St).current=!1,s(this,G).current&&s(this,v).classList.add(s(this,G).current)};ts=new WeakSet;Ms=function(){s(this,M).current=!0,s(this,dt).current=!0,s(this,j).current=!1,s(this,U).current&&s(this,v).classList.add(s(this,U).current)};es=new WeakSet;xs=function(){s(this,Q).current=!0,s(this,St).current=!0,s(this,J).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};ss=new WeakSet;Ls=function(){s(this,Q).current=!0,s(this,j).current=!0,s(this,dt).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};Re=new WeakMap;me=new WeakMap;ht=new WeakSet;Vt=function(r){if(s(this,E)){r.previous&&s(this,v).classList.remove(r.previous),r.current&&s(this,v).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,v).classList.remove(r.previous),s(this,v).classList.add(r.current)):!r.current&&r.previous&&s(this,v).classList.remove(r.previous)};us=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,v).classList.remove(e)})};ps=new WeakSet;Vs=function(...r){r.forEach(e=>{e&&s(this,v).style.removeProperty(`--${e}`)})};qe=new WeakSet;is=function(){k(this,us,zs).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,$t).current,s(this,x).current),k(this,ps,Vs).call(this,s(this,at).current,s(this,lt).current,s(this,ct).current,s(this,ut).current,s(this,pt).current)};Te=new WeakMap;exports.ScrollSegmentElement=hi([wt.define("e-scroll-segment")],exports.ScrollSegmentElement);