aptechka 0.4.28 → 0.4.29

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.
@@ -1 +1 @@
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)),z=(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)},D=(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 Ds=require("../Damped-B0G_t-pw.cjs"),rs=require("../browser-CpzFX2xg.cjs"),wt=require("../layout-8ryRAMGJ.cjs"),Xt=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const _t=require("../Store-BQGNOHlY.cjs"),Fs=require("../Derived-BZtlW0bB.cjs");require("../ticker/index.cjs");const _e=require("../controls/index.cjs"),bt=require("../custom-element/index.cjs"),Ie=require("../order/index.cjs"),se=require("../window-resizer/index.cjs"),Rt=require("../scroll-entries/index.cjs"),I=require("../tags-CueX-JLX.cjs"),ns=require("../createStylesheet-C8aQQ4hd.cjs"),Ss=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),Rs=require("../Viewport-_WllZTJ0.cjs"),Ts=require("../gestures-DHLrn6Q8.cjs"),ds=require("../theme/index.cjs"),vs=require("../element-resizer/index.cjs"),qs=require("../dom-JBOkFLTh.cjs"),ws=require("../function-MthRj-GJ.cjs");var Bs=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Is=(r,e,i,n)=>{for(var h=n>1?void 0:n?As(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&&Bs(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,F,it,Q,rt,yt,Pt,Z,T,qt,Bt,At,It,ne,at,Ht,he,Gt,Ut,m,Te,u,ye,Pe,M,_,B,X,Ot,pt,O,E,oe,Et,ie,re,Yt,ve,$t,jt,qe,os,Be,as,Ee,Ue,ke,Ne,st,He,Ze,bs,ae,We,Me,Ke,ge,Ae,Je,Cs,w,P,Ft,tt,gt;class Hs{constructor(e,i){z(this,w,void 0);z(this,P,void 0);z(this,Ft,0);z(this,tt,0);z(this,gt,null);D(this,w,e),D(this,P,i),Rt.scrollEntries.register(o(this,w))}get size(){return o(this,Ft)}get position(){return o(this,tt)}destroy(){Rt.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,P).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(){D(this,Ft,o(this,P).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),D(this,tt,o(this,P).vertical?wt.getCumulativeOffsetTop(o(this,w)):wt.getCumulativeOffsetLeft(o(this,w))),D(this,tt,o(this,tt)-o(this,P).contentPosition)}transform(){let e=0;const i=o(this,P).viewportSize*o(this,P).sectionDistanceScaleCSSProperty.current;o(this,P).infiniteCSSProperty.current&&o(this,P).overscroll&&o(this,tt)+o(this,Ft)<o(this,P).currentScrollValue&&(e=o(this,P).distance*-1-o(this,P).gap),Rt.scrollEntries.update(o(this,w),o(this,P).axisCSSProperty.current,e);const n=o(this,P).currentScrollValue+e,h=o(this,tt)-o(this,P).viewportSize-i,c=o(this,tt)+o(this,Ft)+i,f=Xt.clamp(n,h,c);o(this,P).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,gt)!==e&&(o(this,gt)&&o(this,w).classList.remove(o(this,gt)),e&&o(this,w).classList.add(e),D(this,gt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,gt)}})))}}w=new WeakMap,P=new WeakMap,Ft=new WeakMap,tt=new WeakMap,gt=new WeakMap;const Gs=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)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends bt.CustomElement{constructor(){super(),l(this,Yt),l(this,$t),l(this,qe),l(this,Be),l(this,Ee),l(this,ke),l(this,Ze),l(this,Me),l(this,ge),l(this,Je),l(this,d,null),l(this,F,new p.CSSProperty(this,"--axis","y")),l(this,it,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,Q,new p.CSSProperty(this,"--split",!1)),l(this,rt,new p.CSSProperty(this,"--sectional",!1)),l(this,yt,new p.CSSProperty(this,"--auto-size",!1)),l(this,Pt,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,qt,new p.CSSProperty(this,"--damping",20)),l(this,Bt,new p.CSSProperty(this,"--mass",0)),l(this,At,new p.CSSProperty(this,"--stiffness",0)),l(this,It,new p.CSSProperty(this,"--mouse-drag",!1)),l(this,ne,new p.CSSProperty(this,"--section-distance-scale",.5)),l(this,at,new p.CSSProperty(this,"--autoplay",0)),l(this,Ht,new p.CSSProperty(this,"--autoplay-pause-duration",0)),l(this,he,new p.CSSProperty(this,"--autoplay-user-direction",!1)),l(this,Gt,new p.CSSProperty(this,"--disabled",!1)),l(this,Ut,new p.CSSProperty(this,"--hibernated",!1)),l(this,m,null),l(this,Te,null),l(this,u,[]),l(this,ye,0),l(this,Pe,0),l(this,M,0),l(this,_,0),l(this,B,0),l(this,X,null),l(this,Ot,null),l(this,pt,null),l(this,O,null),l(this,E,new _t.Store(0)),l(this,oe,0),l(this,Et,0),l(this,ie,!0),l(this,re,!0),l(this,st,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,_)||0,i=t(this,E).current;if(b(this,ye,this.vertical?wt.getCumulativeOffsetTop(this):wt.getCumulativeOffsetLeft(this)),b(this,Pe,this.vertical?wt.getCumulativeOffsetTop(t(this,m)):wt.getCumulativeOffsetLeft(t(this,m))),b(this,M,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,Ss.cssUnitParser.parse(getComputedStyle(t(this,m)).rowGap)):b(this,B,Ss.cssUnitParser.parse(getComputedStyle(t(this,m)).columnGap)),t(this,yt).current&&t(this,u).length){const n=t(this,Z).current,h=(t(this,M)-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,it).current){b(this,_,t(this,M)*t(this,it).current);const n=t(this,_)+t(this,M);this.vertical?(t(this,m).style.width=n+"px",t(this,m).style.height="100%"):(t(this,m).style.height=n+"px",t(this,m).style.width="100%")}else this.vertical?(t(this,m).style.width="100%",t(this,m).style.height="max-content",b(this,_,t(this,m).offsetHeight-t(this,M))):(t(this,m).style.width="max-content",t(this,m).style.height="100%",b(this,_,t(this,m).offsetWidth-t(this,M)));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,M),c=t(this,_)-h;b(this,Et,n.position+n.size+c)}else b(this,Et,t(this,_));if(t(this,rt).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,!0)}else t(this,d).set(e*t(this,_),!0)}),l(this,He,()=>{const e=this.currentScrollValue;if(b(this,oe,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,E).current=i}else this.vertical?t(this,m).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,m).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Rt.scrollEntries.update(this,t(this,F).current,e)}),l(this,ae,(e,i)=>{t(this,O).pauseAndContinue(t(this,Ht).current),t(this,he).current&&(t(this,O).direction=Math.sign(i)||1),t(this,We).call(this,e,i)}),l(this,We,(e,i)=>{if(!(e==="drag"&&!Rs.device.isMobile&&!t(this,It).current))if(t(this,rt).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,M))}else t(this,d).shift(i)}),rs.isBrowser&&(b(this,d,new Ds.Damped(0,{damping:.01,min:0,order:Ie.TICK_ORDER.SCROLL})),this.openShadow(Gs),I.element(this,{tabIndex:0,children:[I.div({class:"static",children:[I.slot({name:"static"})]}),I.div({class:"content",children:[I.slot({ref:e=>b(this,Te,e)})],style:{flexDirection:new Fs.Derived(t(this,F),e=>e==="x"?"row":"column")},ref:e=>b(this,m,e)})]}),b(this,X,new _e.WheelControls({element:t(this,m)})),t(this,X).changeEvent.subscribe(t(this,ae)),b(this,Ot,new _e.KeyboardControls({element:t(this,m)})),t(this,Ot).changeEvent.subscribe(t(this,ae)),b(this,pt,new _e.DragControls({element:t(this,m)})),t(this,pt).changeEvent.subscribe(t(this,ae)),b(this,O,new _e.AutoplayControls),t(this,O).changeEvent.subscribe(t(this,We)),t(this,F).subscribe(({current:e})=>{t(this,m).style.flexDirection=e==="x"?"row":"column",t(this,X).axis=t(this,Pt).current?"max":e,t(this,Ot).dimension=e==="x"?"width":"height",t(this,pt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,st).call(this)}),t(this,Pt).subscribe(e=>{t(this,X).axis=e.current?"max":t(this,F).current}),t(this,it).subscribe(()=>{this.isConnected&&t(this,st).call(this)}),t(this,Q).subscribe(({current:e})=>{this.isConnected&&(e?C(this,Yt,ve).call(this):C(this,$t,jt).call(this))}),t(this,rt).subscribe(e=>{t(this,X).debounce=e.current,t(this,pt).swipe=e.current,t(this,O).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,Yt,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,$t,jt).call(this))}),t(this,yt).subscribe(e=>{this.isConnected&&(t(this,st).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,Yt,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,$t,jt).call(this))}),t(this,Z).subscribe(e=>{this.isConnected&&(t(this,st).call(this),C(this,ge,Ae).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,Q).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,oe,0),t(this,d).max=t(this,_),t(this,d).min=0)}),t(this,qt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Bt).subscribe(e=>{t(this,d).mass=e.current}),t(this,At).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Gt).subscribe(e=>{e.current&&!e.previous?C(this,qe,os).call(this):!e.current&&e.previous&&C(this,Be,as).call(this)}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?C(this,Ee,Ue).call(this):!e.current&&e.previous&&C(this,ke,Ne).call(this)}),t(this,at).subscribe(e=>{t(this,O).speed=e.current,e.current&&!e.previous?t(this,O).connect():!e.current&&e.previous&&t(this,O).disconnect()}),t(this,he).subscribe(e=>{e.current||(t(this,O).direction=1)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,E).subscribe(e=>{t(this,u).length&&C(this,ge,Ae).call(this)}))}get axisCSSProperty(){return t(this,F)}get pagesCSSProperty(){return t(this,it)}get splitCSSProperty(){return t(this,Q)}get sectionalCSSProperty(){return t(this,rt)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,Pt)}get sectionsInViewCSSProperty(){return t(this,Z)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,qt)}get massCSSProperty(){return t(this,Bt)}get stiffnessCSSProperty(){return t(this,At)}get mouseDragCSSProperty(){return t(this,It)}get sectionDistanceScaleCSSProperty(){return t(this,ne)}get autoplayCSSProperty(){return t(this,at)}get autoplayPauseDurationCSSProperty(){return t(this,Ht)}get autoplayUserDirectionCSSProperty(){return t(this,he)}get disabledCSSProperty(){return t(this,Gt)}get hibernatedCSSProperty(){return t(this,Ut)}get currentScrollValue(){return C(this,Me,Ke).call(this,"current")}get targetScrollValue(){return C(this,Me,Ke).call(this,"target")}get contentElement(){return t(this,m)}get sections(){return t(this,u)}get position(){return t(this,ye)}get contentPosition(){return t(this,Pe)}get viewportSize(){return t(this,M)}get scrollSize(){return t(this,_)}get gap(){return t(this,B)}get counter(){return t(this,E)}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,oe)}get vertical(){return t(this,F).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get speed(){return t(this,d).speed}get direction(){return t(this,d).direction}get isRunning(){return t(this,d).isRunning}get scrollWidth(){return t(this,F).current==="y"?0:t(this,d).length}get scrollHeight(){return t(this,F).current==="x"?0:t(this,d).length}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,E).current;C(this,Ze,bs).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,E).current];if(h&&c){let f=0;const Ce=C(this,Je,Cs).call(this),$s=Ce?this.targetScrollValue-Ce.position:0;t(this,T).current?t(this,E).current===0&&n===t(this,u).length-1?f=t(this,_)+t(this,M)-h.position+t(this,B):t(this,E).current===t(this,u).length-1&&n===0?f=c.position-(t(this,_)+t(this,M)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-$s,i==="instant")}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,E).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,i==="instant")}connectedCallback(){t(this,F).observe(),t(this,it).observe(),t(this,Q).observe(),t(this,rt).observe(),t(this,yt).observe(),t(this,Pt).observe(),t(this,Z).observe(),t(this,T).observe(),t(this,qt).observe(),t(this,Bt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,ne).observe(),t(this,at).observe(),t(this,at).observe(),t(this,Ht).observe(),t(this,Gt).observe(),t(this,Ut).observe(),C(this,ke,Ne).call(this)}disconnectedCallback(){t(this,F).unobserve(),t(this,it).unobserve(),t(this,Q).unobserve(),t(this,rt).unobserve(),t(this,yt).unobserve(),t(this,Pt).unobserve(),t(this,Z).unobserve(),t(this,T).unobserve(),t(this,qt).unobserve(),t(this,Bt).unobserve(),t(this,At).unobserve(),t(this,It).unobserve(),t(this,ne).unobserve(),t(this,at).unobserve(),t(this,Ht).unobserve(),t(this,Gt).unobserve(),t(this,Ut).unobserve(),C(this,Ee,Ue).call(this)}};d=new WeakMap;F=new WeakMap;it=new WeakMap;Q=new WeakMap;rt=new WeakMap;yt=new WeakMap;Pt=new WeakMap;Z=new WeakMap;T=new WeakMap;qt=new WeakMap;Bt=new WeakMap;At=new WeakMap;It=new WeakMap;ne=new WeakMap;at=new WeakMap;Ht=new WeakMap;he=new WeakMap;Gt=new WeakMap;Ut=new WeakMap;m=new WeakMap;Te=new WeakMap;u=new WeakMap;ye=new WeakMap;Pe=new WeakMap;M=new WeakMap;_=new WeakMap;B=new WeakMap;X=new WeakMap;Ot=new WeakMap;pt=new WeakMap;O=new WeakMap;E=new WeakMap;oe=new WeakMap;Et=new WeakMap;ie=new WeakMap;re=new WeakMap;Yt=new WeakSet;ve=function(){C(this,$t,jt).call(this),t(this,Te).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new Hs(r,this))}),t(this,m).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,st).call(this),C(this,ge,Ae).call(this)};$t=new WeakSet;jt=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,E).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};qe=new WeakSet;os=function(){t(this,ie)||(b(this,ie,!0),t(this,d).unsubscribe(t(this,He)),t(this,d).unlistenAnimationFrame(),t(this,X).disconnect(),t(this,Ot).disconnect(),t(this,pt).disconnect(),t(this,O).disconnect())};Be=new WeakSet;as=function(){t(this,ie)&&(b(this,ie,!1),t(this,d).subscribe(t(this,He)),t(this,X).connect(),t(this,Ot).connect(),t(this,pt).connect(),t(this,at).current&&t(this,O).connect())};Ee=new WeakSet;Ue=function(){t(this,re)||(b(this,re,!0),se.windowResizer.unsubscribe(t(this,st)),t(this,d).reset(),C(this,qe,os).call(this),t(this,m).style.transform="",t(this,Q).current&&C(this,$t,jt).call(this),Rt.scrollEntries.unregister(this))};ke=new WeakSet;Ne=function(){t(this,re)&&(b(this,re,!1),t(this,Q).current&&C(this,Yt,ve).call(this),Rt.scrollEntries.register(this),se.windowResizer.subscribe(t(this,st),Ie.RESIZE_ORDER.SCROLL),C(this,Be,as).call(this))};st=new WeakMap;He=new WeakMap;Ze=new WeakSet;bs=function(r){t(this,T).current?(t(this,E).current=r%t(this,u).length,t(this,E).current=t(this,E).current<0?t(this,u).length+t(this,E).current:t(this,E).current):t(this,E).current=Xt.clamp(r,0,this.limit)};ae=new WeakMap;We=new WeakMap;Me=new WeakSet;Ke=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,_)+t(this,M)+t(this,B));return e<0?t(this,_)+e+t(this,M)+t(this,B):e}else return t(this,d)[r]};ge=new WeakSet;Ae=function(){if(t(this,u).length){const r=t(this,E).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;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=Is([bt.define("e-scroll")],exports.ScrollElement);var me;class Ge extends bt.CustomElement{constructor(){super(...arguments);z(this,me,null)}get scrollElement(){return o(this,me)}connectedCallback(){const i=qs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?D(this,me,i):console.error(this,"e-scroll not found")}}me=new WeakMap;var Us=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,Zs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ns(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&&Us(e,i,h),h},_s=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(_s(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)},Ct=(r,e,i,n)=>(_s(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),le,R,nt,ht,ce,ue,Nt,xe,Le,Ve;const Ks=ns.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 Ge{constructor(){super(),N(this,le,null),N(this,R,null),N(this,nt,!1),N(this,ht,0),N(this,ce,0),N(this,ue,0),N(this,Nt,()=>{Ct(this,nt,this.offsetWidth>this.offsetHeight);const e=S(this,nt)?this.offsetWidth:this.offsetHeight;Ct(this,ht,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),Ct(this,ht,Math.max(S(this,ht),30)),S(this,nt)?(S(this,R).style.width=S(this,ht)+"px",S(this,R).style.height="100%"):(S(this,R).style.width="100%",S(this,R).style.height=S(this,ht)+"px"),Ct(this,ce,e-S(this,ht)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,xe,()=>{Ct(this,ue,this.scrollElement.currentProgress*S(this,ce)),S(this,nt)?S(this,R).style.transform=`translate3d(${S(this,ue)}px, 0px, 0px)`:S(this,R).style.transform=`translate3d(0px, ${S(this,ue)}px, 0px)`}),N(this,Le,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,Ve,e=>{document.documentElement.classList.add("grabbing"),Ts.setupDrag(h=>{const c=S(this,nt)?h.x:h.y,f=this.scrollElement.distance/S(this,ce),Ce=(c-n)*f;this.scrollElement.setPosition(i+Ce)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,nt)?e.x:e.y}),rs.isBrowser&&(this.openShadow(Ks),I.element(this,{slot:"static","drag-dead-zone":"",children:[I.slot({ref:e=>Ct(this,le,e),children:I.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,R)}connectedCallback(){super.connectedCallback();const e=S(this,le).assignedElements()[0]||S(this,le).firstElementChild;Ct(this,R,e),S(this,R).addEventListener("pointerdown",S(this,Ve)),se.windowResizer.subscribe(S(this,Nt),Ie.RESIZE_ORDER.SCROLL+1),vs.elementResizer.subscribe(this,S(this,Nt)),this.scrollElement.onScroll(S(this,xe)),this.scrollElement.axisCSSProperty.subscribe(S(this,Le))}disconnectedCallback(){S(this,R).removeEventListener("pointerdown",S(this,Ve)),se.windowResizer.unsubscribe(S(this,Nt)),vs.elementResizer.unsubscribe(S(this,Nt)),this.scrollElement.offScroll(S(this,xe)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,Le))}};le=new WeakMap;R=new WeakMap;nt=new WeakMap;ht=new WeakMap;ce=new WeakMap;ue=new WeakMap;Nt=new WeakMap;xe=new WeakMap;Le=new WeakMap;Ve=new WeakMap;exports.ScrollbarElement=Zs([bt.define("e-scrollbar")],exports.ScrollbarElement);const Js=ns.createStylesheet({button:{all:"inherit"}});class ys extends Ge{constructor(){super(),this.openShadow(Js),rs.isBrowser&&I.element(this,{children:[I.button({onClick:()=>{this.handleClick()},children:[I.slot()]})]})}}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.ScrollSetButtonElement=class extends ys{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Ys([bt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);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};exports.ScrollStepButtonElement=class extends ys{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=ei([bt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var si=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ri=(r,e,i,n)=>{for(var h=n>1?void 0:n?ii(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&&si(e,i,h),h},Ps=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Tt=(r,e,i)=>(Ps(r,e,"read from private field"),i?i.call(r):e.get(r)),gs=(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,pe,et,mt,te,we,be,ee;class ni{constructor(e,i,n){z(this,et,void 0);z(this,mt,void 0);z(this,te,void 0);z(this,we,void 0);z(this,be,()=>{o(this,mt).scrollToSection(o(this,te),o(this,we))});z(this,ee,()=>{o(this,et).classList.toggle("current",o(this,mt).counter.current===o(this,te))});D(this,et,document.createElement("button")),D(this,mt,e),D(this,we,n),D(this,te,i),o(this,et).addEventListener("click",o(this,be)),o(this,mt).counter.subscribe(o(this,ee)),o(this,ee).call(this)}get element(){return o(this,et)}destroy(){o(this,et).removeEventListener("click",o(this,be)),o(this,mt).counter.unsubscribe(o(this,ee)),o(this,et).remove()}}et=new WeakMap,mt=new WeakMap,te=new WeakMap,we=new WeakMap,be=new WeakMap,ee=new WeakMap;exports.ScrollBulletButtonsElement=class extends Ge{constructor(){super(...arguments),gs(this,kt,[]),gs(this,pe,ws.debounce(()=>{Tt(this,kt).forEach(e=>e.destroy()),ms(this,kt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new ni(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,pe)),Tt(this,pe).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Tt(this,pe)),Tt(this,kt).forEach(e=>e.destroy()),ms(this,kt,[])}};kt=new WeakMap;pe=new WeakMap;exports.ScrollBulletButtonsElement=ri([bt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var hi=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,ai=(r,e,i,n)=>{for(var h=n>1?void 0:n?oi(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&&hi(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)},v=(r,e,i,n)=>(ls(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),y=(r,e,i)=>(ls(r,e,"access private method"),i),Zt,Wt,Mt,xt,Lt,$,H,G,U,zt,L,ft,St,lt,ct,ut,Kt,fe,x,J,K,dt,vt,Y,ze,g,Jt,Qt,Oe,A,j,V,W,q,Se,Dt,k,$e,Qe,cs,Es,Xe,ks,Ye,Ws,je,Ms,ts,xs,es,Ls,ss,Vs,De,de,ot,Vt,us,zs,ps,Os,Fe,is,Re;exports.ScrollSegmentElement=class extends Ge{constructor(){super(...arguments),a(this,$e),a(this,cs),a(this,Xe),a(this,Ye),a(this,je),a(this,ts),a(this,es),a(this,ss),a(this,ot),a(this,us),a(this,ps),a(this,Fe),a(this,Zt,new p.CSSProperty(this,"--target","")),a(this,Wt,new p.CSSProperty(this,"--disabled",!1)),a(this,Mt,new p.CSSProperty(this,"--distance-offset",0)),a(this,xt,new p.CSSProperty(this,"--start-offset",0)),a(this,Lt,new p.CSSProperty(this,"--capture-once",!1)),a(this,$,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,zt,new p.CSSProperty(this,"--released-from-start","")),a(this,L,new p.CSSProperty(this,"--released-from-finish","")),a(this,ft,new p.CSSProperty(this,"--passed-var","")),a(this,St,new p.CSSProperty(this,"--progress-var","")),a(this,lt,new p.CSSProperty(this,"--distance-var","")),a(this,ct,new p.CSSProperty(this,"--start-var","")),a(this,ut,new p.CSSProperty(this,"--finish-var","")),a(this,Kt,new p.CSSProperty(this,"--smoothstep",!1)),a(this,fe,new p.CSSProperty(this,"--smootherstep",!1)),a(this,x,new _t.Store(!1)),a(this,J,new _t.Store(!1)),a(this,K,new _t.Store(!1)),a(this,dt,new _t.Store(!1)),a(this,vt,new _t.Store(!1)),a(this,Y,new _t.Store(!1)),a(this,ze,[]),a(this,g,this),a(this,Jt,0),a(this,Qt,0),a(this,Oe,0),a(this,A,0),a(this,j,0),a(this,V,0),a(this,W,0),a(this,q,0),a(this,Se,!1),a(this,Dt,!1),a(this,k,!0),a(this,De,()=>{s(this,k)||(this.resize(),s(this,de).call(this))}),a(this,de,()=>{!s(this,k)&&s(this,Se)&&this.tick()}),a(this,Re,ws.debounce(()=>{const e=Rt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),v(this,ze,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,$)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,zt)}get releasedFromFinishCSSProperty(){return s(this,L)}get passedVarCSSProperty(){return s(this,ft)}get progressVarCSSProperty(){return s(this,St)}get distanceVarCSSProperty(){return s(this,lt)}get startVarCSSProperty(){return s(this,ct)}get finishVarCSSProperty(){return s(this,ut)}get smoothstepCSSProperty(){return s(this,Kt)}get smootherstepCSSProperty(){return s(this,fe)}get disabledCSSProperty(){return s(this,Wt)}get targetCSSProperty(){return s(this,Zt)}get isCaptured(){return s(this,x)}get isReleased(){return s(this,J)}get isCapturedFromStart(){return s(this,K)}get isReleasedFromStart(){return s(this,dt)}get isCapturedFromFinish(){return s(this,vt)}get isReleasedFromFinish(){return s(this,Y)}get directionPosition(){return s(this,Jt)}get directionSize(){return s(this,Qt)}get passed(){return s(this,A)}get progress(){return s(this,j)}get start(){return s(this,V)}get finish(){return s(this,q)}get distance(){return s(this,W)}get isCapturedOnce(){return s(this,Dt)}get isDisabled(){return s(this,k)}resize(){v(this,Qt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),v(this,Jt,this.scrollElement.vertical?wt.getCumulativeOffsetTop(this,this.scrollElement):wt.getCumulativeOffsetLeft(this,this.scrollElement)),v(this,V,this.getStart()),v(this,W,this.getDistance()),v(this,V,s(this,V)+s(this,xt).current),v(this,W,s(this,W)+s(this,Mt).current),v(this,q,s(this,V)+s(this,W)),this.scrollElement.currentScrollValue>s(this,q)&&!s(this,x).current&&!s(this,J).current&&(s(this,x).current=!0),this.setVar(s(this,ct).current,s(this,V)),this.setVar(s(this,ut).current,s(this,q)),this.setVar(s(this,lt).current,s(this,W)),v(this,Se,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,ze).forEach(n=>{e+=n.value}),v(this,A,this.updateValue(e-s(this,V),0,s(this,W))||0),v(this,j,s(this,A)/s(this,W)||0);const i=Math.round(e);s(this,x).current&&(i>s(this,V)?s(this,K).current||y(this,je,Ms).call(this):s(this,K).current&&!s(this,dt).current&&y(this,es,Ls).call(this),i<s(this,q)?s(this,Y).current&&!s(this,vt).current&&y(this,ts,xs).call(this):s(this,K).current&&!s(this,Y).current&&y(this,ss,Vs).call(this)),i>s(this,V)&&i<s(this,q)?(y(this,$e,Qe).call(this),s(this,x).current||y(this,Xe,ks).call(this)):s(this,x).current&&(v(this,A,Xt.step(s(this,W)/2,s(this,A),0,s(this,W))),v(this,j,s(this,A)/s(this,W)),y(this,$e,Qe).call(this),y(this,Ye,Ws).call(this)),s(this,Dt)&&s(this,Lt).current&&(s(this,$).current&&s(this,g).classList.add(s(this,$).current),v(this,k,!0))}disable(){this.style.cssText="",v(this,Jt,0),v(this,Qt,0),v(this,A,0),v(this,j,0),v(this,V,0),v(this,W,0),v(this,q,0),v(this,Se,!1),s(this,x).current=!1,s(this,J).current=!1,s(this,K).current=!1,s(this,dt).current=!1,s(this,vt).current=!1,s(this,Y).current=!1,v(this,Dt,!1),v(this,k,!0),y(this,Fe,is).call(this)}enable(){v(this,k,!1)}connectedCallback(){super.connectedCallback(),s(this,Zt).observe(),s(this,Wt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,$).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,zt).observe(),s(this,L).observe(),s(this,ft).observe(),s(this,St).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,Kt).observe(),s(this,fe).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=>{i.previous&&y(this,Fe,is).call(this),i.current?i.current==="parent"?v(this,g,this.parentElement||this):v(this,g,document.querySelector(i.current)||this):v(this,g,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,k)&&this.resize()}),s(this,Mt).subscribe(()=>{e&&!s(this,k)&&this.resize()}),s(this,$).subscribe(i=>{y(this,ot,Vt).call(this,i)}),s(this,G).subscribe(i=>{y(this,ot,Vt).call(this,i)}),s(this,U).subscribe(i=>{y(this,ot,Vt).call(this,i)}),s(this,H).subscribe(i=>{y(this,ot,Vt).call(this,i)}),s(this,zt).subscribe(i=>{y(this,ot,Vt).call(this,i)}),s(this,L).subscribe(i=>{y(this,ot,Vt).call(this,i)}),s(this,Lt).subscribe(i=>{s(this,k)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,ft).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,this.passed))}),s(this,St).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,j)))}),s(this,ct).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,V)))}),s(this,ut).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,q)))}),s(this,lt).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,W)))}),se.windowResizer.subscribe(s(this,De),Ie.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,de)),e=!0}disconnectedCallback(){se.windowResizer.unsubscribe(s(this,De)),this.scrollElement.offScroll(s(this,de)),s(this,Zt).close(),s(this,Wt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,$).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,zt).close(),s(this,L).close(),s(this,ft).close(),s(this,St).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,Kt).close(),s(this,fe).close(),s(this,x).close(),s(this,J).close(),s(this,K).close(),s(this,dt).close(),s(this,vt).close(),s(this,Y).close(),this.disable()}removeVar(e){e&&s(this,g).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,g).style.setProperty(`--${e}`,i.toString())}updateValue(e,i=0,n=1){return this.smootherstepCSSProperty.current?Xt.smootherstep(e,i,n)*n:s(this,Kt).current?Xt.smoothstep(e,i,n)*n:Xt.clamp(e,i,n)}getDistance(){return s(this,Qt)+s(this,Oe)}getStart(){return s(this,Jt)-s(this,Oe)}};Zt=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;$=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;zt=new WeakMap;L=new WeakMap;ft=new WeakMap;St=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;Kt=new WeakMap;fe=new WeakMap;x=new WeakMap;J=new WeakMap;K=new WeakMap;dt=new WeakMap;vt=new WeakMap;Y=new WeakMap;ze=new WeakMap;g=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;Oe=new WeakMap;A=new WeakMap;j=new WeakMap;V=new WeakMap;W=new WeakMap;q=new WeakMap;Se=new WeakMap;Dt=new WeakMap;k=new WeakMap;$e=new WeakSet;Qe=function(){y(this,cs,Es).call(this),this.setVar(s(this,ft).current,s(this,A)),this.setVar(s(this,St).current,s(this,j))};cs=new WeakSet;Es=function(){this.dispatchEvent(new CustomEvent("segmentPass",{detail:{distance:s(this,W),start:s(this,V),finish:s(this,q),passed:s(this,A),progress:s(this,j)}}))};Xe=new WeakSet;ks=function(){s(this,x).current=!0,s(this,J).current=!1,v(this,Dt,!0),s(this,H).current&&s(this,g).classList.remove(s(this,H).current),s(this,L).current&&s(this,g).classList.remove(s(this,L).current),s(this,L).current&&s(this,g).classList.remove(s(this,L).current),s(this,$).current&&s(this,g).classList.add(s(this,$).current)};Ye=new WeakSet;Ws=function(){s(this,J).current=!0,s(this,x).current=!1,v(this,Dt,!0),s(this,$).current&&s(this,g).classList.remove(s(this,$).current),s(this,G).current&&s(this,g).classList.remove(s(this,G).current),s(this,U).current&&s(this,g).classList.remove(s(this,U).current),s(this,H).current&&s(this,g).classList.add(s(this,H).current)};je=new WeakSet;Ms=function(){s(this,x).current=!0,s(this,K).current=!0,s(this,dt).current=!1,s(this,G).current&&s(this,g).classList.add(s(this,G).current)};ts=new WeakSet;xs=function(){s(this,x).current=!0,s(this,vt).current=!0,s(this,Y).current=!1,s(this,U).current&&s(this,g).classList.add(s(this,U).current)};es=new WeakSet;Ls=function(){s(this,J).current=!0,s(this,dt).current=!0,s(this,K).current=!1,s(this,L).current&&s(this,g).classList.add(s(this,L).current)};ss=new WeakSet;Vs=function(){s(this,J).current=!0,s(this,Y).current=!0,s(this,vt).current=!1,s(this,L).current&&s(this,g).classList.add(s(this,L).current)};De=new WeakMap;de=new WeakMap;ot=new WeakSet;Vt=function(r){if(s(this,k)){r.previous&&s(this,g).classList.remove(r.previous),r.current&&s(this,g).classList.remove(r.current);return}r.current&&s(this,x).current?(r.previous&&s(this,g).classList.remove(r.previous),s(this,g).classList.add(r.current)):!r.current&&r.previous&&s(this,g).classList.remove(r.previous)};us=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,g).classList.remove(e)})};ps=new WeakSet;Os=function(...r){r.forEach(e=>{e&&s(this,g).style.removeProperty(`--${e}`)})};Fe=new WeakSet;is=function(){y(this,us,zs).call(this,s(this,$).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,zt).current,s(this,L).current),y(this,ps,Os).call(this,s(this,ft).current,s(this,St).current,s(this,lt).current,s(this,ct).current,s(this,ut).current)};Re=new WeakMap;exports.ScrollSegmentElement=ai([bt.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)),z=(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)},D=(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 Ds=require("../Damped-B0G_t-pw.cjs"),rs=require("../browser-CpzFX2xg.cjs"),wt=require("../layout-8ryRAMGJ.cjs"),Yt=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const _t=require("../Store-BQGNOHlY.cjs"),Fs=require("../Derived-BZtlW0bB.cjs");require("../ticker/index.cjs");const _e=require("../controls/index.cjs"),bt=require("../custom-element/index.cjs"),Ie=require("../order/index.cjs"),ie=require("../window-resizer/index.cjs"),Tt=require("../scroll-entries/index.cjs"),I=require("../tags-CueX-JLX.cjs"),ns=require("../createStylesheet-C8aQQ4hd.cjs"),Ss=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),Rs=require("../Viewport-_WllZTJ0.cjs"),Ts=require("../gestures-DHLrn6Q8.cjs"),ds=require("../theme/index.cjs"),vs=require("../element-resizer/index.cjs"),qs=require("../dom-JBOkFLTh.cjs"),ws=require("../function-MthRj-GJ.cjs");var Bs=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Is=(r,e,i,n)=>{for(var h=n>1?void 0:n?As(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&&Bs(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,F,it,Q,rt,yt,Pt,Z,T,Bt,At,It,Ht,he,at,Gt,Et,Ut,Nt,m,Te,u,ye,Pe,M,_,B,X,$t,pt,O,E,oe,kt,re,ne,jt,ve,Dt,te,qe,os,Be,as,Ee,Ue,ke,Ne,st,He,Ze,bs,ae,We,Me,Ke,ge,Ae,Je,Cs,w,P,Rt,tt,gt;class Hs{constructor(e,i){z(this,w,void 0);z(this,P,void 0);z(this,Rt,0);z(this,tt,0);z(this,gt,null);D(this,w,e),D(this,P,i),Tt.scrollEntries.register(o(this,w))}get size(){return o(this,Rt)}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,P).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(){D(this,Rt,o(this,P).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),D(this,tt,o(this,P).vertical?wt.getCumulativeOffsetTop(o(this,w)):wt.getCumulativeOffsetLeft(o(this,w))),D(this,tt,o(this,tt)-o(this,P).contentPosition)}transform(){let e=0;const i=o(this,P).viewportSize*o(this,P).sectionDistanceScaleCSSProperty.current;o(this,P).infiniteCSSProperty.current&&o(this,P).overscroll&&o(this,tt)+o(this,Rt)<o(this,P).currentScrollValue&&(e=o(this,P).distance*-1-o(this,P).gap),Tt.scrollEntries.update(o(this,w),o(this,P).axisCSSProperty.current,e);const n=o(this,P).currentScrollValue+e,h=o(this,tt)-o(this,P).viewportSize-i,c=o(this,tt)+o(this,Rt)+i,f=Yt.clamp(n,h,c);o(this,P).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,gt)!==e&&(o(this,gt)&&o(this,w).classList.remove(o(this,gt)),e&&o(this,w).classList.add(e),D(this,gt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,gt)}})))}}w=new WeakMap,P=new WeakMap,Rt=new WeakMap,tt=new WeakMap,gt=new WeakMap;const Gs=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)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends bt.CustomElement{constructor(){super(),l(this,jt),l(this,Dt),l(this,qe),l(this,Be),l(this,Ee),l(this,ke),l(this,Ze),l(this,Me),l(this,ge),l(this,Je),l(this,d,null),l(this,F,new p.CSSProperty(this,"--axis","y")),l(this,it,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,Q,new p.CSSProperty(this,"--split",!1)),l(this,rt,new p.CSSProperty(this,"--sectional",!1)),l(this,yt,new p.CSSProperty(this,"--auto-size",!1)),l(this,Pt,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,he,new p.CSSProperty(this,"--section-distance-scale",.5)),l(this,at,new p.CSSProperty(this,"--autoplay",0)),l(this,Gt,new p.CSSProperty(this,"--autoplay-pause-duration",0)),l(this,Et,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,m,null),l(this,Te,null),l(this,u,[]),l(this,ye,0),l(this,Pe,0),l(this,M,0),l(this,_,0),l(this,B,0),l(this,X,null),l(this,$t,null),l(this,pt,null),l(this,O,null),l(this,E,new _t.Store(0)),l(this,oe,0),l(this,kt,0),l(this,re,!0),l(this,ne,!0),l(this,st,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,_)||0,i=t(this,E).current;if(b(this,ye,this.vertical?wt.getCumulativeOffsetTop(this):wt.getCumulativeOffsetLeft(this)),b(this,Pe,this.vertical?wt.getCumulativeOffsetTop(t(this,m)):wt.getCumulativeOffsetLeft(t(this,m))),b(this,M,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,Ss.cssUnitParser.parse(getComputedStyle(t(this,m)).rowGap)):b(this,B,Ss.cssUnitParser.parse(getComputedStyle(t(this,m)).columnGap)),t(this,yt).current&&t(this,u).length){const n=t(this,Z).current,h=(t(this,M)-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,it).current){b(this,_,t(this,M)*t(this,it).current);const n=t(this,_)+t(this,M);this.vertical?(t(this,m).style.width=n+"px",t(this,m).style.height="100%"):(t(this,m).style.height=n+"px",t(this,m).style.width="100%")}else this.vertical?(t(this,m).style.width="100%",t(this,m).style.height="max-content",b(this,_,t(this,m).offsetHeight-t(this,M))):(t(this,m).style.width="max-content",t(this,m).style.height="100%",b(this,_,t(this,m).offsetWidth-t(this,M)));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,M),c=t(this,_)-h;b(this,kt,n.position+n.size+c)}else b(this,kt,t(this,_));if(t(this,rt).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,!0)}else t(this,d).set(e*t(this,_),!0)}),l(this,He,()=>{const e=this.currentScrollValue;if(b(this,oe,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,E).current=i}else this.vertical?t(this,m).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,m).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Tt.scrollEntries.update(this,t(this,F).current,e)}),l(this,ae,(e,i)=>{t(this,O).pauseAndContinue(t(this,Gt).current),t(this,Et).current&&(t(this,O).direction=Math.sign(i)||1),t(this,We).call(this,e,i)}),l(this,We,(e,i)=>{if(!(e==="drag"&&!Rs.device.isMobile&&!t(this,Ht).current))if(t(this,rt).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,M))}else t(this,d).shift(i)}),rs.isBrowser&&(b(this,d,new Ds.Damped(0,{damping:.01,min:0,order:Ie.TICK_ORDER.SCROLL})),this.openShadow(Gs),I.element(this,{tabIndex:0,children:[I.div({class:"static",children:[I.slot({name:"static"})]}),I.div({class:"content",children:[I.slot({ref:e=>b(this,Te,e)})],style:{flexDirection:new Fs.Derived(t(this,F),e=>e==="x"?"row":"column")},ref:e=>b(this,m,e)})]}),b(this,X,new _e.WheelControls({element:t(this,m)})),t(this,X).changeEvent.subscribe(t(this,ae)),b(this,$t,new _e.KeyboardControls({element:t(this,m)})),t(this,$t).changeEvent.subscribe(t(this,ae)),b(this,pt,new _e.DragControls({element:t(this,m)})),t(this,pt).changeEvent.subscribe(t(this,ae)),b(this,O,new _e.AutoplayControls),t(this,O).changeEvent.subscribe(t(this,We)),t(this,F).subscribe(({current:e})=>{t(this,m).style.flexDirection=e==="x"?"row":"column",t(this,X).axis=t(this,Pt).current?"max":e,t(this,$t).dimension=e==="x"?"width":"height",t(this,pt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,st).call(this)}),t(this,Pt).subscribe(e=>{t(this,X).axis=e.current?"max":t(this,F).current}),t(this,it).subscribe(()=>{this.isConnected&&t(this,st).call(this)}),t(this,Q).subscribe(({current:e})=>{this.isConnected&&(e?C(this,jt,ve).call(this):C(this,Dt,te).call(this))}),t(this,rt).subscribe(e=>{t(this,X).debounce=e.current,t(this,pt).swipe=e.current,t(this,O).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,jt,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,te).call(this))}),t(this,yt).subscribe(e=>{this.isConnected&&(t(this,st).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,jt,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,te).call(this))}),t(this,Z).subscribe(e=>{this.isConnected&&(t(this,st).call(this),C(this,ge,Ae).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,Q).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,oe,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,qe,os).call(this):!e.current&&e.previous&&C(this,Be,as).call(this)}),t(this,Nt).subscribe(e=>{e.current&&!e.previous?C(this,Ee,Ue).call(this):!e.current&&e.previous&&C(this,ke,Ne).call(this)}),t(this,at).subscribe(e=>{t(this,O).speed=e.current,e.current&&!e.previous?t(this,O).connect():!e.current&&e.previous&&t(this,O).disconnect()}),t(this,Et).subscribe(e=>{e.current||(t(this,O).direction=1)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,E).subscribe(e=>{t(this,u).length&&C(this,ge,Ae).call(this)}))}get axisCSSProperty(){return t(this,F)}get pagesCSSProperty(){return t(this,it)}get splitCSSProperty(){return t(this,Q)}get sectionalCSSProperty(){return t(this,rt)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,Pt)}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,he)}get autoplayCSSProperty(){return t(this,at)}get autoplayPauseDurationCSSProperty(){return t(this,Gt)}get autoplayUserDirectionCSSProperty(){return t(this,Et)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Nt)}get currentScrollValue(){return C(this,Me,Ke).call(this,"current")}get targetScrollValue(){return C(this,Me,Ke).call(this,"target")}get contentElement(){return t(this,m)}get sections(){return t(this,u)}get position(){return t(this,ye)}get contentPosition(){return t(this,Pe)}get viewportSize(){return t(this,M)}get scrollSize(){return t(this,_)}get gap(){return t(this,B)}get counter(){return t(this,E)}get limit(){return t(this,u).length-t(this,Z).current}get distance(){return t(this,kt)}get infiniteDistance(){return t(this,T).current?t(this,kt)+t(this,B):t(this,kt)}get overscroll(){return t(this,oe)}get vertical(){return t(this,F).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get speed(){return t(this,d).speed}get direction(){return t(this,d).direction}get isRunning(){return t(this,d).isRunning}get scrollWidth(){return t(this,F).current==="y"?0:t(this,d).length}get scrollHeight(){return t(this,F).current==="x"?0:t(this,d).length}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,E).current;C(this,Ze,bs).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,E).current];if(h&&c){let f=0;const Ce=C(this,Je,Cs).call(this),$s=Ce?this.targetScrollValue-Ce.position:0;t(this,T).current?t(this,E).current===0&&n===t(this,u).length-1?f=t(this,_)+t(this,M)-h.position+t(this,B):t(this,E).current===t(this,u).length-1&&n===0?f=c.position-(t(this,_)+t(this,M)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-$s,i==="instant")}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,E).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,i==="instant")}connectedCallback(){t(this,F).observe(),t(this,it).observe(),t(this,Q).observe(),t(this,rt).observe(),t(this,yt).observe(),t(this,Pt).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,he).observe(),t(this,at).observe(),t(this,at).observe(),t(this,Gt).observe(),t(this,Et).observe(),t(this,Ut).observe(),t(this,Nt).observe(),C(this,ke,Ne).call(this)}disconnectedCallback(){t(this,F).unobserve(),t(this,it).unobserve(),t(this,Q).unobserve(),t(this,rt).unobserve(),t(this,yt).unobserve(),t(this,Pt).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,he).unobserve(),t(this,at).unobserve(),t(this,Gt).unobserve(),t(this,Et).unobserve(),t(this,Ut).unobserve(),t(this,Nt).unobserve(),C(this,Ee,Ue).call(this)}};d=new WeakMap;F=new WeakMap;it=new WeakMap;Q=new WeakMap;rt=new WeakMap;yt=new WeakMap;Pt=new WeakMap;Z=new WeakMap;T=new WeakMap;Bt=new WeakMap;At=new WeakMap;It=new WeakMap;Ht=new WeakMap;he=new WeakMap;at=new WeakMap;Gt=new WeakMap;Et=new WeakMap;Ut=new WeakMap;Nt=new WeakMap;m=new WeakMap;Te=new WeakMap;u=new WeakMap;ye=new WeakMap;Pe=new WeakMap;M=new WeakMap;_=new WeakMap;B=new WeakMap;X=new WeakMap;$t=new WeakMap;pt=new WeakMap;O=new WeakMap;E=new WeakMap;oe=new WeakMap;kt=new WeakMap;re=new WeakMap;ne=new WeakMap;jt=new WeakSet;ve=function(){C(this,Dt,te).call(this),t(this,Te).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new Hs(r,this))}),t(this,m).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,st).call(this),C(this,ge,Ae).call(this)};Dt=new WeakSet;te=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,E).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};qe=new WeakSet;os=function(){t(this,re)||(b(this,re,!0),t(this,d).unsubscribe(t(this,He)),t(this,d).unlistenAnimationFrame(),t(this,X).disconnect(),t(this,$t).disconnect(),t(this,pt).disconnect(),t(this,O).disconnect())};Be=new WeakSet;as=function(){t(this,re)&&(b(this,re,!1),t(this,d).subscribe(t(this,He)),t(this,X).connect(),t(this,$t).connect(),t(this,pt).connect(),t(this,at).current&&t(this,O).connect())};Ee=new WeakSet;Ue=function(){t(this,ne)||(b(this,ne,!0),ie.windowResizer.unsubscribe(t(this,st)),t(this,d).reset(),C(this,qe,os).call(this),t(this,m).style.transform="",t(this,Q).current&&C(this,Dt,te).call(this),Tt.scrollEntries.unregister(this))};ke=new WeakSet;Ne=function(){t(this,ne)&&(b(this,ne,!1),t(this,Q).current&&C(this,jt,ve).call(this),Tt.scrollEntries.register(this),ie.windowResizer.subscribe(t(this,st),Ie.RESIZE_ORDER.SCROLL),C(this,Be,as).call(this))};st=new WeakMap;He=new WeakMap;Ze=new WeakSet;bs=function(r){t(this,T).current?(t(this,E).current=r%t(this,u).length,t(this,E).current=t(this,E).current<0?t(this,u).length+t(this,E).current:t(this,E).current):t(this,E).current=Yt.clamp(r,0,this.limit)};ae=new WeakMap;We=new WeakMap;Me=new WeakSet;Ke=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,_)+t(this,M)+t(this,B));return e<0?t(this,_)+e+t(this,M)+t(this,B):e}else return t(this,d)[r]};ge=new WeakSet;Ae=function(){if(t(this,u).length){const r=t(this,E).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;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=Is([bt.define("e-scroll")],exports.ScrollElement);var me;class Ge extends bt.CustomElement{constructor(){super(...arguments);z(this,me,null)}get scrollElement(){return o(this,me)}connectedCallback(){const i=qs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?D(this,me,i):console.error(this,"e-scroll not found")}}me=new WeakMap;var Us=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,Zs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ns(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&&Us(e,i,h),h},_s=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(_s(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)},Ct=(r,e,i,n)=>(_s(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),le,R,nt,ht,ce,ue,Zt,xe,Le,Ve;const Ks=ns.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 Ge{constructor(){super(),N(this,le,null),N(this,R,null),N(this,nt,!1),N(this,ht,0),N(this,ce,0),N(this,ue,0),N(this,Zt,()=>{Ct(this,nt,this.offsetWidth>this.offsetHeight);const e=S(this,nt)?this.offsetWidth:this.offsetHeight;Ct(this,ht,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),Ct(this,ht,Math.max(S(this,ht),30)),S(this,nt)?(S(this,R).style.width=S(this,ht)+"px",S(this,R).style.height="100%"):(S(this,R).style.width="100%",S(this,R).style.height=S(this,ht)+"px"),Ct(this,ce,e-S(this,ht)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,xe,()=>{Ct(this,ue,this.scrollElement.currentProgress*S(this,ce)),S(this,nt)?S(this,R).style.transform=`translate3d(${S(this,ue)}px, 0px, 0px)`:S(this,R).style.transform=`translate3d(0px, ${S(this,ue)}px, 0px)`}),N(this,Le,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,Ve,e=>{document.documentElement.classList.add("grabbing"),Ts.setupDrag(h=>{const c=S(this,nt)?h.x:h.y,f=this.scrollElement.distance/S(this,ce),Ce=(c-n)*f;this.scrollElement.setPosition(i+Ce)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,nt)?e.x:e.y}),rs.isBrowser&&(this.openShadow(Ks),I.element(this,{slot:"static","drag-dead-zone":"",children:[I.slot({ref:e=>Ct(this,le,e),children:I.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,R)}connectedCallback(){super.connectedCallback();const e=S(this,le).assignedElements()[0]||S(this,le).firstElementChild;Ct(this,R,e),S(this,R).addEventListener("pointerdown",S(this,Ve)),ie.windowResizer.subscribe(S(this,Zt),Ie.RESIZE_ORDER.SCROLL+1),vs.elementResizer.subscribe(this,S(this,Zt)),this.scrollElement.onScroll(S(this,xe)),this.scrollElement.axisCSSProperty.subscribe(S(this,Le))}disconnectedCallback(){S(this,R).removeEventListener("pointerdown",S(this,Ve)),ie.windowResizer.unsubscribe(S(this,Zt)),vs.elementResizer.unsubscribe(S(this,Zt)),this.scrollElement.offScroll(S(this,xe)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,Le))}};le=new WeakMap;R=new WeakMap;nt=new WeakMap;ht=new WeakMap;ce=new WeakMap;ue=new WeakMap;Zt=new WeakMap;xe=new WeakMap;Le=new WeakMap;Ve=new WeakMap;exports.ScrollbarElement=Zs([bt.define("e-scrollbar")],exports.ScrollbarElement);const Js=ns.createStylesheet({button:{all:"inherit"}});class ys extends Ge{constructor(){super(),this.openShadow(Js),rs.isBrowser&&I.element(this,{children:[I.button({onClick:()=>{this.handleClick()},children:[I.slot()]})]})}}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.ScrollSetButtonElement=class extends ys{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Ys([bt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);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};exports.ScrollStepButtonElement=class extends ys{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=ei([bt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var si=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ri=(r,e,i,n)=>{for(var h=n>1?void 0:n?ii(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&&si(e,i,h),h},Ps=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},qt=(r,e,i)=>(Ps(r,e,"read from private field"),i?i.call(r):e.get(r)),gs=(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),Wt,pe,et,mt,ee,we,be,se;class ni{constructor(e,i,n){z(this,et,void 0);z(this,mt,void 0);z(this,ee,void 0);z(this,we,void 0);z(this,be,()=>{o(this,mt).scrollToSection(o(this,ee),o(this,we))});z(this,se,()=>{o(this,et).classList.toggle("current",o(this,mt).counter.current===o(this,ee))});D(this,et,document.createElement("button")),D(this,mt,e),D(this,we,n),D(this,ee,i),o(this,et).addEventListener("click",o(this,be)),o(this,mt).counter.subscribe(o(this,se)),o(this,se).call(this)}get element(){return o(this,et)}destroy(){o(this,et).removeEventListener("click",o(this,be)),o(this,mt).counter.unsubscribe(o(this,se)),o(this,et).remove()}}et=new WeakMap,mt=new WeakMap,ee=new WeakMap,we=new WeakMap,be=new WeakMap,se=new WeakMap;exports.ScrollBulletButtonsElement=class extends Ge{constructor(){super(...arguments),gs(this,Wt,[]),gs(this,pe,ws.debounce(()=>{qt(this,Wt).forEach(e=>e.destroy()),ms(this,Wt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new ni(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),qt(this,Wt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",qt(this,pe)),qt(this,pe).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",qt(this,pe)),qt(this,Wt).forEach(e=>e.destroy()),ms(this,Wt,[])}};Wt=new WeakMap;pe=new WeakMap;exports.ScrollBulletButtonsElement=ri([bt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var hi=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,ai=(r,e,i,n)=>{for(var h=n>1?void 0:n?oi(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&&hi(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)},v=(r,e,i,n)=>(ls(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),y=(r,e,i)=>(ls(r,e,"access private method"),i),Kt,Mt,xt,Lt,Vt,$,H,G,U,Ot,L,ft,St,lt,ct,ut,Jt,fe,x,J,K,dt,vt,Y,ze,g,Qt,Xt,Oe,A,j,V,W,q,Se,Ft,k,$e,Qe,cs,Es,Xe,ks,Ye,Ws,je,Ms,ts,xs,es,Ls,ss,Vs,De,de,ot,zt,us,zs,ps,Os,Fe,is,Re;exports.ScrollSegmentElement=class extends Ge{constructor(){super(...arguments),a(this,$e),a(this,cs),a(this,Xe),a(this,Ye),a(this,je),a(this,ts),a(this,es),a(this,ss),a(this,ot),a(this,us),a(this,ps),a(this,Fe),a(this,Kt,new p.CSSProperty(this,"--target","")),a(this,Mt,new p.CSSProperty(this,"--disabled",!1)),a(this,xt,new p.CSSProperty(this,"--distance-offset",0)),a(this,Lt,new p.CSSProperty(this,"--start-offset",0)),a(this,Vt,new p.CSSProperty(this,"--capture-once",!1)),a(this,$,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,L,new p.CSSProperty(this,"--released-from-finish","")),a(this,ft,new p.CSSProperty(this,"--passed-var","")),a(this,St,new p.CSSProperty(this,"--progress-var","")),a(this,lt,new p.CSSProperty(this,"--distance-var","")),a(this,ct,new p.CSSProperty(this,"--start-var","")),a(this,ut,new p.CSSProperty(this,"--finish-var","")),a(this,Jt,new p.CSSProperty(this,"--smoothstep",!1)),a(this,fe,new p.CSSProperty(this,"--smootherstep",!1)),a(this,x,new _t.Store(!1)),a(this,J,new _t.Store(!1)),a(this,K,new _t.Store(!1)),a(this,dt,new _t.Store(!1)),a(this,vt,new _t.Store(!1)),a(this,Y,new _t.Store(!1)),a(this,ze,[]),a(this,g,this),a(this,Qt,0),a(this,Xt,0),a(this,Oe,0),a(this,A,0),a(this,j,0),a(this,V,0),a(this,W,0),a(this,q,0),a(this,Se,!1),a(this,Ft,!1),a(this,k,!0),a(this,De,()=>{s(this,k)||(this.resize(),s(this,de).call(this))}),a(this,de,()=>{!s(this,k)&&s(this,Se)&&this.tick()}),a(this,Re,ws.debounce(()=>{const e=Tt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),v(this,ze,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,xt)}get startOffsetCSSProperty(){return s(this,Lt)}get captureOnceCSSProperty(){return s(this,Vt)}get capturedCSSProperty(){return s(this,$)}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,L)}get passedVarCSSProperty(){return s(this,ft)}get progressVarCSSProperty(){return s(this,St)}get distanceVarCSSProperty(){return s(this,lt)}get startVarCSSProperty(){return s(this,ct)}get finishVarCSSProperty(){return s(this,ut)}get smoothstepCSSProperty(){return s(this,Jt)}get smootherstepCSSProperty(){return s(this,fe)}get disabledCSSProperty(){return s(this,Mt)}get targetCSSProperty(){return s(this,Kt)}get isCaptured(){return s(this,x)}get isReleased(){return s(this,J)}get isCapturedFromStart(){return s(this,K)}get isReleasedFromStart(){return s(this,dt)}get isCapturedFromFinish(){return s(this,vt)}get isReleasedFromFinish(){return s(this,Y)}get directionPosition(){return s(this,Qt)}get directionSize(){return s(this,Xt)}get passed(){return s(this,A)}get progress(){return s(this,j)}get start(){return s(this,V)}get finish(){return s(this,q)}get distance(){return s(this,W)}get isCapturedOnce(){return s(this,Ft)}get isDisabled(){return s(this,k)}resize(){v(this,Xt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),v(this,Qt,this.scrollElement.vertical?wt.getCumulativeOffsetTop(this,this.scrollElement):wt.getCumulativeOffsetLeft(this,this.scrollElement)),v(this,V,this.getStart()),v(this,W,this.getDistance()),v(this,V,s(this,V)+s(this,Lt).current),v(this,W,s(this,W)+s(this,xt).current),v(this,q,s(this,V)+s(this,W)),this.scrollElement.currentScrollValue>s(this,q)&&!s(this,x).current&&!s(this,J).current&&(s(this,x).current=!0),this.setVar(s(this,ct).current,s(this,V)),this.setVar(s(this,ut).current,s(this,q)),this.setVar(s(this,lt).current,s(this,W)),v(this,Se,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,ze).forEach(n=>{e+=n.value}),v(this,A,this.updateValue(e-s(this,V),0,s(this,W))||0),v(this,j,s(this,A)/s(this,W)||0);const i=Math.round(e);s(this,x).current&&(i>s(this,V)?s(this,K).current||y(this,je,Ms).call(this):s(this,K).current&&!s(this,dt).current&&y(this,es,Ls).call(this),i<s(this,q)?s(this,Y).current&&!s(this,vt).current&&y(this,ts,xs).call(this):s(this,K).current&&!s(this,Y).current&&y(this,ss,Vs).call(this)),i>s(this,V)&&i<s(this,q)?(y(this,$e,Qe).call(this),s(this,x).current||y(this,Xe,ks).call(this)):s(this,x).current&&(v(this,A,Yt.step(s(this,W)/2,s(this,A),0,s(this,W))),v(this,j,s(this,A)/s(this,W)),y(this,$e,Qe).call(this),y(this,Ye,Ws).call(this)),s(this,Ft)&&s(this,Vt).current&&(s(this,$).current&&s(this,g).classList.add(s(this,$).current),v(this,k,!0))}disable(){this.style.cssText="",v(this,Qt,0),v(this,Xt,0),v(this,A,0),v(this,j,0),v(this,V,0),v(this,W,0),v(this,q,0),v(this,Se,!1),s(this,x).current=!1,s(this,J).current=!1,s(this,K).current=!1,s(this,dt).current=!1,s(this,vt).current=!1,s(this,Y).current=!1,v(this,Ft,!1),v(this,k,!0),y(this,Fe,is).call(this)}enable(){v(this,k,!1)}connectedCallback(){super.connectedCallback(),s(this,Kt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,Vt).observe(),s(this,$).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Ot).observe(),s(this,L).observe(),s(this,ft).observe(),s(this,St).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,Jt).observe(),s(this,fe).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Re)),s(this,Re).call(this),s(this,Mt).current||this.enable(),s(this,Kt).subscribe(i=>{i.previous&&y(this,Fe,is).call(this),i.current?i.current==="parent"?v(this,g,this.parentElement||this):v(this,g,document.querySelector(i.current)||this):v(this,g,this)}),s(this,Mt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,Lt).subscribe(()=>{e&&!s(this,k)&&this.resize()}),s(this,xt).subscribe(()=>{e&&!s(this,k)&&this.resize()}),s(this,$).subscribe(i=>{y(this,ot,zt).call(this,i)}),s(this,G).subscribe(i=>{y(this,ot,zt).call(this,i)}),s(this,U).subscribe(i=>{y(this,ot,zt).call(this,i)}),s(this,H).subscribe(i=>{y(this,ot,zt).call(this,i)}),s(this,Ot).subscribe(i=>{y(this,ot,zt).call(this,i)}),s(this,L).subscribe(i=>{y(this,ot,zt).call(this,i)}),s(this,Vt).subscribe(i=>{s(this,k)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,ft).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,this.passed))}),s(this,St).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,j)))}),s(this,ct).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,V)))}),s(this,ut).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,q)))}),s(this,lt).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,W)))}),ie.windowResizer.subscribe(s(this,De),Ie.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,de)),e=!0}disconnectedCallback(){ie.windowResizer.unsubscribe(s(this,De)),this.scrollElement.offScroll(s(this,de)),s(this,Kt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,Vt).close(),s(this,$).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Ot).close(),s(this,L).close(),s(this,ft).close(),s(this,St).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,Jt).close(),s(this,fe).close(),s(this,x).close(),s(this,J).close(),s(this,K).close(),s(this,dt).close(),s(this,vt).close(),s(this,Y).close(),this.disable()}removeVar(e){e&&s(this,g).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,g).style.setProperty(`--${e}`,i.toString())}updateValue(e,i=0,n=1){return this.smootherstepCSSProperty.current?Yt.smootherstep(e,i,n)*n:s(this,Jt).current?Yt.smoothstep(e,i,n)*n:Yt.clamp(e,i,n)}getDistance(){return s(this,Xt)+s(this,Oe)}getStart(){return s(this,Qt)-s(this,Oe)}};Kt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;Vt=new WeakMap;$=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Ot=new WeakMap;L=new WeakMap;ft=new WeakMap;St=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;Jt=new WeakMap;fe=new WeakMap;x=new WeakMap;J=new WeakMap;K=new WeakMap;dt=new WeakMap;vt=new WeakMap;Y=new WeakMap;ze=new WeakMap;g=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Oe=new WeakMap;A=new WeakMap;j=new WeakMap;V=new WeakMap;W=new WeakMap;q=new WeakMap;Se=new WeakMap;Ft=new WeakMap;k=new WeakMap;$e=new WeakSet;Qe=function(){y(this,cs,Es).call(this),this.setVar(s(this,ft).current,s(this,A)),this.setVar(s(this,St).current,s(this,j))};cs=new WeakSet;Es=function(){this.dispatchEvent(new CustomEvent("segmentPass",{detail:{distance:s(this,W),start:s(this,V),finish:s(this,q),passed:s(this,A),progress:s(this,j)}}))};Xe=new WeakSet;ks=function(){s(this,x).current=!0,s(this,J).current=!1,v(this,Ft,!0),s(this,H).current&&s(this,g).classList.remove(s(this,H).current),s(this,L).current&&s(this,g).classList.remove(s(this,L).current),s(this,L).current&&s(this,g).classList.remove(s(this,L).current),s(this,$).current&&s(this,g).classList.add(s(this,$).current)};Ye=new WeakSet;Ws=function(){s(this,J).current=!0,s(this,x).current=!1,v(this,Ft,!0),s(this,$).current&&s(this,g).classList.remove(s(this,$).current),s(this,G).current&&s(this,g).classList.remove(s(this,G).current),s(this,U).current&&s(this,g).classList.remove(s(this,U).current),s(this,H).current&&s(this,g).classList.add(s(this,H).current)};je=new WeakSet;Ms=function(){s(this,x).current=!0,s(this,K).current=!0,s(this,dt).current=!1,s(this,G).current&&s(this,g).classList.add(s(this,G).current)};ts=new WeakSet;xs=function(){s(this,x).current=!0,s(this,vt).current=!0,s(this,Y).current=!1,s(this,U).current&&s(this,g).classList.add(s(this,U).current)};es=new WeakSet;Ls=function(){s(this,J).current=!0,s(this,dt).current=!0,s(this,K).current=!1,s(this,L).current&&s(this,g).classList.add(s(this,L).current)};ss=new WeakSet;Vs=function(){s(this,J).current=!0,s(this,Y).current=!0,s(this,vt).current=!1,s(this,L).current&&s(this,g).classList.add(s(this,L).current)};De=new WeakMap;de=new WeakMap;ot=new WeakSet;zt=function(r){if(s(this,k)){r.previous&&s(this,g).classList.remove(r.previous),r.current&&s(this,g).classList.remove(r.current);return}r.current&&s(this,x).current?(r.previous&&s(this,g).classList.remove(r.previous),s(this,g).classList.add(r.current)):!r.current&&r.previous&&s(this,g).classList.remove(r.previous)};us=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,g).classList.remove(e)})};ps=new WeakSet;Os=function(...r){r.forEach(e=>{e&&s(this,g).style.removeProperty(`--${e}`)})};Fe=new WeakSet;is=function(){y(this,us,zs).call(this,s(this,$).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Ot).current,s(this,L).current),y(this,ps,Os).call(this,s(this,ft).current,s(this,St).current,s(this,lt).current,s(this,ct).current,s(this,ut).current)};Re=new WeakMap;exports.ScrollSegmentElement=ai([bt.define("e-scroll-segment")],exports.ScrollSegmentElement);
@@ -16,10 +16,10 @@ import { S as wt } from "../Store-Cd-E5W1z.js";
16
16
  import { D as qs } from "../Derived-DH-ouLBq.js";
17
17
  import "../ticker/index.js";
18
18
  import { WheelControls as Zs, KeyboardControls as Js, DragControls as Qs, AutoplayControls as Xs } from "../controls/index.js";
19
- import { CustomElement as Ws, define as ee } from "../custom-element/index.js";
19
+ import { CustomElement as Ws, define as se } from "../custom-element/index.js";
20
20
  import { TICK_ORDER as Ys, RESIZE_ORDER as hs } from "../order/index.js";
21
- import { windowResizer as Yt } from "../window-resizer/index.js";
22
- import { scrollEntries as Dt } from "../scroll-entries/index.js";
21
+ import { windowResizer as jt } from "../window-resizer/index.js";
22
+ import { scrollEntries as Ft } from "../scroll-entries/index.js";
23
23
  import { e as ns, D as Ge, ay as Fe, p as js } from "../tags-BoPv9fDr.js";
24
24
  import { c as as } from "../createStylesheet-KMRQhSa-.js";
25
25
  import { cssUnitParser as vs } from "../css-unit-parser/index.js";
@@ -41,40 +41,40 @@ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, hi = (e, i
41
41
  if (i.has(e))
42
42
  throw TypeError("Cannot add the same private member more than once");
43
43
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
44
- }, b = (e, i, r, h) => (os(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (os(e, i, "access private method"), r), d, O, st, J, it, bt, _t, K, R, Ot, At, Rt, Tt, se, at, It, ie, Bt, Ht, g, Oe, c, ge, we, E, C, I, Q, Lt, ut, $, P, re, Ct, jt, te, Zt, fe, Vt, Jt, Ae, ls, Re, cs, be, Ne, _e, Ue, et, Be, Ke, Es, he, Ce, ye, qe, de, Te, Ze, xs, w, k, $t, j, vt;
44
+ }, b = (e, i, r, h) => (os(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (os(e, i, "access private method"), r), d, O, st, J, it, bt, _t, K, R, At, Rt, Tt, It, ie, at, Bt, Ct, Ht, Gt, g, Oe, c, ge, we, E, C, I, Q, Vt, ut, $, P, re, yt, te, ee, Jt, fe, zt, Qt, Ae, ls, Re, cs, be, Ne, _e, Ue, et, Be, Ke, Es, he, Ce, ye, qe, de, Te, Ze, xs, w, k, Dt, j, vt;
45
45
  class ni {
46
46
  constructor(i, r) {
47
47
  z(this, w, void 0);
48
48
  z(this, k, void 0);
49
- z(this, $t, 0);
49
+ z(this, Dt, 0);
50
50
  z(this, j, 0);
51
51
  z(this, vt, null);
52
- F(this, w, i), F(this, k, r), Dt.register(a(this, w));
52
+ F(this, w, i), F(this, k, r), Ft.register(a(this, w));
53
53
  }
54
54
  get size() {
55
- return a(this, $t);
55
+ return a(this, Dt);
56
56
  }
57
57
  get position() {
58
58
  return a(this, j);
59
59
  }
60
60
  destroy() {
61
- Dt.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
61
+ Ft.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
62
62
  }
63
63
  setSize(i) {
64
64
  i ? (a(this, w).style.setProperty("--size", i + "px"), a(this, k).axisCSSProperty.current === "x" ? (a(this, w).style.width = i + "px", a(this, w).style.height = "") : (a(this, w).style.height = i + "px", a(this, w).style.width = "")) : (a(this, w).style.width = "", a(this, w).style.height = "", a(this, w).style.removeProperty("--size"));
65
65
  }
66
66
  resize() {
67
- F(this, $t, a(this, k).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), F(this, j, a(this, k).vertical ? $e(a(this, w)) : De(a(this, w))), F(this, j, a(this, j) - a(this, k).contentPosition);
67
+ F(this, Dt, a(this, k).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), F(this, j, a(this, k).vertical ? $e(a(this, w)) : De(a(this, w))), F(this, j, a(this, j) - a(this, k).contentPosition);
68
68
  }
69
69
  transform() {
70
70
  let i = 0;
71
71
  const r = a(this, k).viewportSize * a(this, k).sectionDistanceScaleCSSProperty.current;
72
- a(this, k).infiniteCSSProperty.current && a(this, k).overscroll && a(this, j) + a(this, $t) < a(this, k).currentScrollValue && (i = a(this, k).distance * -1 - a(this, k).gap), Dt.update(
72
+ a(this, k).infiniteCSSProperty.current && a(this, k).overscroll && a(this, j) + a(this, Dt) < a(this, k).currentScrollValue && (i = a(this, k).distance * -1 - a(this, k).gap), Ft.update(
73
73
  a(this, w),
74
74
  a(this, k).axisCSSProperty.current,
75
75
  i
76
76
  );
77
- const h = a(this, k).currentScrollValue + i, n = a(this, j) - a(this, k).viewportSize - r, p = a(this, j) + a(this, $t) + r, S = rs(h, n, p);
77
+ const h = a(this, k).currentScrollValue + i, n = a(this, j) - a(this, k).viewportSize - r, p = a(this, j) + a(this, Dt) + r, S = rs(h, n, p);
78
78
  a(this, k).vertical ? a(this, w).style.transform = `translate3d(0px, ${S * -1}px, 0px)` : a(this, w).style.transform = `translate3d(${S * -1}px, 0px, 0px)`;
79
79
  }
80
80
  mark(i) {
@@ -88,7 +88,7 @@ class ni {
88
88
  ));
89
89
  }
90
90
  }
91
- w = new WeakMap(), k = new WeakMap(), $t = new WeakMap(), j = new WeakMap(), vt = new WeakMap();
91
+ w = new WeakMap(), k = new WeakMap(), Dt = new WeakMap(), j = new WeakMap(), vt = new WeakMap();
92
92
  const ai = as({
93
93
  ":host": {
94
94
  position: "relative",
@@ -123,7 +123,7 @@ const ai = as({
123
123
  });
124
124
  let Ie = class extends Ws {
125
125
  constructor() {
126
- super(), l(this, Zt), l(this, Vt), l(this, Ae), l(this, Re), l(this, be), l(this, _e), l(this, Ke), l(this, ye), l(this, de), l(this, Ze), l(this, d, null), l(this, O, new u(this, "--axis", "y")), l(this, st, new u(this, "--pages", 0, {
126
+ super(), l(this, Jt), l(this, zt), l(this, Ae), l(this, Re), l(this, be), l(this, _e), l(this, Ke), l(this, ye), l(this, de), l(this, Ze), l(this, d, null), l(this, O, new u(this, "--axis", "y")), l(this, st, new u(this, "--pages", 0, {
127
127
  validate: (e) => Math.max(0, e - 1)
128
128
  })), l(this, J, new u(this, "--split", !1)), l(this, it, new u(this, "--sectional", !1)), l(this, bt, new u(this, "--auto-size", !1)), l(this, _t, new u(
129
129
  this,
@@ -133,19 +133,19 @@ let Ie = class extends Ws {
133
133
  this,
134
134
  "--sections-in-view",
135
135
  1
136
- )), l(this, R, new u(this, "--infinite", !1)), l(this, Ot, new u(this, "--damping", 20)), l(this, At, new u(this, "--mass", 0)), l(this, Rt, new u(this, "--stiffness", 0)), l(this, Tt, new u(this, "--mouse-drag", !1)), l(this, se, new u(
136
+ )), l(this, R, new u(this, "--infinite", !1)), l(this, At, new u(this, "--damping", 20)), l(this, Rt, new u(this, "--mass", 0)), l(this, Tt, new u(this, "--stiffness", 0)), l(this, It, new u(this, "--mouse-drag", !1)), l(this, ie, new u(
137
137
  this,
138
138
  "--section-distance-scale",
139
139
  0.5
140
- )), l(this, at, new u(this, "--autoplay", 0)), l(this, It, new u(
140
+ )), l(this, at, new u(this, "--autoplay", 0)), l(this, Bt, new u(
141
141
  this,
142
142
  "--autoplay-pause-duration",
143
143
  0
144
- )), l(this, ie, new u(
144
+ )), l(this, Ct, new u(
145
145
  this,
146
146
  "--autoplay-user-direction",
147
147
  !1
148
- )), l(this, Bt, new u(this, "--disabled", !1)), l(this, Ht, new u(this, "--hibernated", !1)), l(this, g, null), l(this, Oe, null), l(this, c, []), l(this, ge, 0), l(this, we, 0), l(this, E, 0), l(this, C, 0), l(this, I, 0), l(this, Q, null), l(this, Lt, null), l(this, ut, null), l(this, $, null), l(this, P, new wt(0)), l(this, re, 0), l(this, Ct, 0), l(this, jt, !0), l(this, te, !0), l(this, et, () => {
148
+ )), l(this, Ht, new u(this, "--disabled", !1)), l(this, Gt, new u(this, "--hibernated", !1)), l(this, g, null), l(this, Oe, null), l(this, c, []), l(this, ge, 0), l(this, we, 0), l(this, E, 0), l(this, C, 0), l(this, I, 0), l(this, Q, null), l(this, Vt, null), l(this, ut, null), l(this, $, null), l(this, P, new wt(0)), l(this, re, 0), l(this, yt, 0), l(this, te, !0), l(this, ee, !0), l(this, et, () => {
149
149
  t(this, d).unlistenAnimationFrame();
150
150
  const e = this.currentScrollValue / t(this, C) || 0, i = t(this, P).current;
151
151
  if (b(this, ge, this.vertical ? $e(this) : De(this)), b(this, we, this.vertical ? $e(t(this, g)) : De(t(this, g))), b(this, E, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? b(this, I, vs.parse(
@@ -175,9 +175,9 @@ let Ie = class extends Ws {
175
175
  }
176
176
  if (t(this, R).current && t(this, c).length) {
177
177
  const r = t(this, c)[t(this, c).length - 1], h = r.position + r.size - t(this, E), n = t(this, C) - h;
178
- b(this, Ct, r.position + r.size + n);
178
+ b(this, yt, r.position + r.size + n);
179
179
  } else
180
- b(this, Ct, t(this, C));
180
+ b(this, yt, t(this, C));
181
181
  if (t(this, it).current && t(this, c).length) {
182
182
  const r = t(this, c)[i];
183
183
  t(this, d).set(r.position, !0);
@@ -194,17 +194,17 @@ let Ie = class extends Ws {
194
194
  t(this, P).current = i;
195
195
  } else
196
196
  this.vertical ? t(this, g).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, g).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
197
- Dt.update(
197
+ Ft.update(
198
198
  this,
199
199
  t(this, O).current,
200
200
  e
201
201
  );
202
202
  }), l(this, he, (e, i) => {
203
203
  t(this, $).pauseAndContinue(
204
- t(this, It).current
205
- ), t(this, ie).current && (t(this, $).direction = Math.sign(i) || 1), t(this, Ce).call(this, e, i);
204
+ t(this, Bt).current
205
+ ), t(this, Ct).current && (t(this, $).direction = Math.sign(i) || 1), t(this, Ce).call(this, e, i);
206
206
  }), l(this, Ce, (e, i) => {
207
- if (!(e === "drag" && !ti.isMobile && !t(this, Tt).current))
207
+ if (!(e === "drag" && !ti.isMobile && !t(this, It).current))
208
208
  if (t(this, it).current) {
209
209
  const r = Math.sign(i);
210
210
  t(this, c).length ? this.shiftSections(r) : t(this, d).shift(r * t(this, E));
@@ -235,39 +235,39 @@ let Ie = class extends Ws {
235
235
  ]
236
236
  }), b(this, Q, new Zs({ element: t(this, g) })), t(this, Q).changeEvent.subscribe(
237
237
  t(this, he)
238
- ), b(this, Lt, new Js({
238
+ ), b(this, Vt, new Js({
239
239
  element: t(this, g)
240
- })), t(this, Lt).changeEvent.subscribe(
240
+ })), t(this, Vt).changeEvent.subscribe(
241
241
  t(this, he)
242
242
  ), b(this, ut, new Qs({ element: t(this, g) })), t(this, ut).changeEvent.subscribe(t(this, he)), b(this, $, new Xs()), t(this, $).changeEvent.subscribe(t(this, Ce)), t(this, O).subscribe(({ current: e }) => {
243
- t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, Q).axis = t(this, _t).current ? "max" : e, t(this, Lt).dimension = e === "x" ? "width" : "height", t(this, ut).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, et).call(this);
243
+ t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, Q).axis = t(this, _t).current ? "max" : e, t(this, Vt).dimension = e === "x" ? "width" : "height", t(this, ut).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, et).call(this);
244
244
  }), t(this, _t).subscribe((e) => {
245
245
  t(this, Q).axis = e.current ? "max" : t(this, O).current;
246
246
  }), t(this, st).subscribe(() => {
247
247
  this.isConnected && t(this, et).call(this);
248
248
  }), t(this, J).subscribe(({ current: e }) => {
249
- this.isConnected && (e ? _(this, Zt, fe).call(this) : _(this, Vt, Jt).call(this));
249
+ this.isConnected && (e ? _(this, Jt, fe).call(this) : _(this, zt, Qt).call(this));
250
250
  }), t(this, it).subscribe((e) => {
251
- t(this, Q).debounce = e.current, t(this, ut).swipe = e.current, t(this, $).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? _(this, Zt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, Vt, Jt).call(this));
251
+ t(this, Q).debounce = e.current, t(this, ut).swipe = e.current, t(this, $).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? _(this, Jt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Qt).call(this));
252
252
  }), t(this, bt).subscribe((e) => {
253
- this.isConnected && (t(this, et).call(this), e.current && !e.previous && !t(this, c).length ? _(this, Zt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, Vt, Jt).call(this));
253
+ this.isConnected && (t(this, et).call(this), e.current && !e.previous && !t(this, c).length ? _(this, Jt, fe).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Qt).call(this));
254
254
  }), t(this, K).subscribe((e) => {
255
255
  this.isConnected && (t(this, et).call(this), _(this, de, Te).call(this));
256
256
  }), t(this, R).subscribe((e) => {
257
257
  e.current ? (this.isConnected && (t(this, c).length || (t(this, J).current = !0)), t(this, c).length && (t(this, d).max = 1 / 0, t(this, d).min = -1 / 0)) : (b(this, re, 0), t(this, d).max = t(this, C), t(this, d).min = 0);
258
- }), t(this, Ot).subscribe((e) => {
259
- t(this, d).damping = e.current;
260
258
  }), t(this, At).subscribe((e) => {
261
- t(this, d).mass = e.current;
259
+ t(this, d).damping = e.current;
262
260
  }), t(this, Rt).subscribe((e) => {
261
+ t(this, d).mass = e.current;
262
+ }), t(this, Tt).subscribe((e) => {
263
263
  t(this, d).stiffness = e.current;
264
- }), t(this, Bt).subscribe((e) => {
265
- e.current && !e.previous ? _(this, Ae, ls).call(this) : !e.current && e.previous && _(this, Re, cs).call(this);
266
264
  }), t(this, Ht).subscribe((e) => {
265
+ e.current && !e.previous ? _(this, Ae, ls).call(this) : !e.current && e.previous && _(this, Re, cs).call(this);
266
+ }), t(this, Gt).subscribe((e) => {
267
267
  e.current && !e.previous ? _(this, be, Ne).call(this) : !e.current && e.previous && _(this, _e, Ue).call(this);
268
268
  }), t(this, at).subscribe((e) => {
269
269
  t(this, $).speed = e.current, e.current && !e.previous ? t(this, $).connect() : !e.current && e.previous && t(this, $).disconnect();
270
- }), t(this, ie).subscribe((e) => {
270
+ }), t(this, Ct).subscribe((e) => {
271
271
  e.current || (t(this, $).direction = 1);
272
272
  }), t(this, d).isRunning.subscribe((e) => {
273
273
  this.classList.toggle("active", e.current);
@@ -300,34 +300,34 @@ let Ie = class extends Ws {
300
300
  return t(this, R);
301
301
  }
302
302
  get dampingCSSProperty() {
303
- return t(this, Ot);
303
+ return t(this, At);
304
304
  }
305
305
  get massCSSProperty() {
306
- return t(this, At);
306
+ return t(this, Rt);
307
307
  }
308
308
  get stiffnessCSSProperty() {
309
- return t(this, Rt);
309
+ return t(this, Tt);
310
310
  }
311
311
  get mouseDragCSSProperty() {
312
- return t(this, Tt);
312
+ return t(this, It);
313
313
  }
314
314
  get sectionDistanceScaleCSSProperty() {
315
- return t(this, se);
315
+ return t(this, ie);
316
316
  }
317
317
  get autoplayCSSProperty() {
318
318
  return t(this, at);
319
319
  }
320
320
  get autoplayPauseDurationCSSProperty() {
321
- return t(this, It);
321
+ return t(this, Bt);
322
322
  }
323
323
  get autoplayUserDirectionCSSProperty() {
324
- return t(this, ie);
324
+ return t(this, Ct);
325
325
  }
326
326
  get disabledCSSProperty() {
327
- return t(this, Bt);
327
+ return t(this, Ht);
328
328
  }
329
329
  get hibernatedCSSProperty() {
330
- return t(this, Ht);
330
+ return t(this, Gt);
331
331
  }
332
332
  get currentScrollValue() {
333
333
  return _(this, ye, qe).call(this, "current");
@@ -363,10 +363,10 @@ let Ie = class extends Ws {
363
363
  return t(this, c).length - t(this, K).current;
364
364
  }
365
365
  get distance() {
366
- return t(this, Ct);
366
+ return t(this, yt);
367
367
  }
368
368
  get infiniteDistance() {
369
- return t(this, R).current ? t(this, Ct) + t(this, I) : t(this, Ct);
369
+ return t(this, R).current ? t(this, yt) + t(this, I) : t(this, yt);
370
370
  }
371
371
  get overscroll() {
372
372
  return t(this, re);
@@ -435,10 +435,10 @@ let Ie = class extends Ws {
435
435
  t(this, d).set(e, i === "instant");
436
436
  }
437
437
  connectedCallback() {
438
- t(this, O).observe(), t(this, st).observe(), t(this, J).observe(), t(this, it).observe(), t(this, bt).observe(), t(this, _t).observe(), t(this, K).observe(), t(this, R).observe(), t(this, Ot).observe(), t(this, At).observe(), t(this, Rt).observe(), t(this, Tt).observe(), t(this, se).observe(), t(this, at).observe(), t(this, at).observe(), t(this, It).observe(), t(this, Bt).observe(), t(this, Ht).observe(), _(this, _e, Ue).call(this);
438
+ t(this, O).observe(), t(this, st).observe(), t(this, J).observe(), t(this, it).observe(), t(this, bt).observe(), t(this, _t).observe(), t(this, K).observe(), t(this, R).observe(), t(this, At).observe(), t(this, Rt).observe(), t(this, Tt).observe(), t(this, It).observe(), t(this, ie).observe(), t(this, at).observe(), t(this, at).observe(), t(this, Bt).observe(), t(this, Ct).observe(), t(this, Ht).observe(), t(this, Gt).observe(), _(this, _e, Ue).call(this);
439
439
  }
440
440
  disconnectedCallback() {
441
- t(this, O).unobserve(), t(this, st).unobserve(), t(this, J).unobserve(), t(this, it).unobserve(), t(this, bt).unobserve(), t(this, _t).unobserve(), t(this, K).unobserve(), t(this, R).unobserve(), t(this, Ot).unobserve(), t(this, At).unobserve(), t(this, Rt).unobserve(), t(this, Tt).unobserve(), t(this, se).unobserve(), t(this, at).unobserve(), t(this, It).unobserve(), t(this, Bt).unobserve(), t(this, Ht).unobserve(), _(this, be, Ne).call(this);
441
+ t(this, O).unobserve(), t(this, st).unobserve(), t(this, J).unobserve(), t(this, it).unobserve(), t(this, bt).unobserve(), t(this, _t).unobserve(), t(this, K).unobserve(), t(this, R).unobserve(), t(this, At).unobserve(), t(this, Rt).unobserve(), t(this, Tt).unobserve(), t(this, It).unobserve(), t(this, ie).unobserve(), t(this, at).unobserve(), t(this, Bt).unobserve(), t(this, Ct).unobserve(), t(this, Ht).unobserve(), t(this, Gt).unobserve(), _(this, be, Ne).call(this);
442
442
  }
443
443
  };
444
444
  d = /* @__PURE__ */ new WeakMap();
@@ -450,16 +450,16 @@ bt = /* @__PURE__ */ new WeakMap();
450
450
  _t = /* @__PURE__ */ new WeakMap();
451
451
  K = /* @__PURE__ */ new WeakMap();
452
452
  R = /* @__PURE__ */ new WeakMap();
453
- Ot = /* @__PURE__ */ new WeakMap();
454
453
  At = /* @__PURE__ */ new WeakMap();
455
454
  Rt = /* @__PURE__ */ new WeakMap();
456
455
  Tt = /* @__PURE__ */ new WeakMap();
457
- se = /* @__PURE__ */ new WeakMap();
458
- at = /* @__PURE__ */ new WeakMap();
459
456
  It = /* @__PURE__ */ new WeakMap();
460
457
  ie = /* @__PURE__ */ new WeakMap();
458
+ at = /* @__PURE__ */ new WeakMap();
461
459
  Bt = /* @__PURE__ */ new WeakMap();
460
+ Ct = /* @__PURE__ */ new WeakMap();
462
461
  Ht = /* @__PURE__ */ new WeakMap();
462
+ Gt = /* @__PURE__ */ new WeakMap();
463
463
  g = /* @__PURE__ */ new WeakMap();
464
464
  Oe = /* @__PURE__ */ new WeakMap();
465
465
  c = /* @__PURE__ */ new WeakMap();
@@ -469,17 +469,17 @@ E = /* @__PURE__ */ new WeakMap();
469
469
  C = /* @__PURE__ */ new WeakMap();
470
470
  I = /* @__PURE__ */ new WeakMap();
471
471
  Q = /* @__PURE__ */ new WeakMap();
472
- Lt = /* @__PURE__ */ new WeakMap();
472
+ Vt = /* @__PURE__ */ new WeakMap();
473
473
  ut = /* @__PURE__ */ new WeakMap();
474
474
  $ = /* @__PURE__ */ new WeakMap();
475
475
  P = /* @__PURE__ */ new WeakMap();
476
476
  re = /* @__PURE__ */ new WeakMap();
477
- Ct = /* @__PURE__ */ new WeakMap();
478
- jt = /* @__PURE__ */ new WeakMap();
477
+ yt = /* @__PURE__ */ new WeakMap();
479
478
  te = /* @__PURE__ */ new WeakMap();
480
- Zt = /* @__PURE__ */ new WeakSet();
479
+ ee = /* @__PURE__ */ new WeakMap();
480
+ Jt = /* @__PURE__ */ new WeakSet();
481
481
  fe = function() {
482
- _(this, Vt, Jt).call(this), t(this, Oe).assignedElements().forEach((e) => {
482
+ _(this, zt, Qt).call(this), t(this, Oe).assignedElements().forEach((e) => {
483
483
  e instanceof HTMLElement && t(this, c).push(new ni(e, this));
484
484
  }), t(this, g).style.transform = "", this.dispatchEvent(
485
485
  new CustomEvent("sectionsChange", {
@@ -487,8 +487,8 @@ fe = function() {
487
487
  })
488
488
  ), t(this, et).call(this), _(this, de, Te).call(this);
489
489
  };
490
- Vt = /* @__PURE__ */ new WeakSet();
491
- Jt = function() {
490
+ zt = /* @__PURE__ */ new WeakSet();
491
+ Qt = function() {
492
492
  t(this, c).forEach((e) => {
493
493
  e.destroy();
494
494
  }), b(this, c, []), t(this, P).current = 0, t(this, d).reset(), this.dispatchEvent(
@@ -499,19 +499,19 @@ Jt = function() {
499
499
  };
500
500
  Ae = /* @__PURE__ */ new WeakSet();
501
501
  ls = function() {
502
- t(this, jt) || (b(this, jt, !0), t(this, d).unsubscribe(t(this, Be)), t(this, d).unlistenAnimationFrame(), t(this, Q).disconnect(), t(this, Lt).disconnect(), t(this, ut).disconnect(), t(this, $).disconnect());
502
+ t(this, te) || (b(this, te, !0), t(this, d).unsubscribe(t(this, Be)), t(this, d).unlistenAnimationFrame(), t(this, Q).disconnect(), t(this, Vt).disconnect(), t(this, ut).disconnect(), t(this, $).disconnect());
503
503
  };
504
504
  Re = /* @__PURE__ */ new WeakSet();
505
505
  cs = function() {
506
- t(this, jt) && (b(this, jt, !1), t(this, d).subscribe(t(this, Be)), t(this, Q).connect(), t(this, Lt).connect(), t(this, ut).connect(), t(this, at).current && t(this, $).connect());
506
+ t(this, te) && (b(this, te, !1), t(this, d).subscribe(t(this, Be)), t(this, Q).connect(), t(this, Vt).connect(), t(this, ut).connect(), t(this, at).current && t(this, $).connect());
507
507
  };
508
508
  be = /* @__PURE__ */ new WeakSet();
509
509
  Ne = function() {
510
- t(this, te) || (b(this, te, !0), Yt.unsubscribe(t(this, et)), t(this, d).reset(), _(this, Ae, ls).call(this), t(this, g).style.transform = "", t(this, J).current && _(this, Vt, Jt).call(this), Dt.unregister(this));
510
+ t(this, ee) || (b(this, ee, !0), jt.unsubscribe(t(this, et)), t(this, d).reset(), _(this, Ae, ls).call(this), t(this, g).style.transform = "", t(this, J).current && _(this, zt, Qt).call(this), Ft.unregister(this));
511
511
  };
512
512
  _e = /* @__PURE__ */ new WeakSet();
513
513
  Ue = function() {
514
- t(this, te) && (b(this, te, !1), t(this, J).current && _(this, Zt, fe).call(this), Dt.register(this), Yt.subscribe(t(this, et), hs.SCROLL), _(this, Re, cs).call(this));
514
+ t(this, ee) && (b(this, ee, !1), t(this, J).current && _(this, Jt, fe).call(this), Ft.register(this), jt.subscribe(t(this, et), hs.SCROLL), _(this, Re, cs).call(this));
515
515
  };
516
516
  et = /* @__PURE__ */ new WeakMap();
517
517
  Be = /* @__PURE__ */ new WeakMap();
@@ -549,7 +549,7 @@ xs = function() {
549
549
  return e !== null ? t(this, c)[e] : null;
550
550
  };
551
551
  Ie = hi([
552
- ee("e-scroll")
552
+ se("e-scroll")
553
553
  ], Ie);
554
554
  var Se;
555
555
  class He extends Ws {
@@ -577,7 +577,7 @@ var oi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ci = (e, i
577
577
  if (i.has(e))
578
578
  throw TypeError("Cannot add the same private member more than once");
579
579
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
580
- }, gt = (e, i, r, h) => (Ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), ne, A, rt, ht, ae, oe, Gt, ke, Pe, We;
580
+ }, gt = (e, i, r, h) => (Ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), ne, A, rt, ht, ae, oe, Nt, ke, Pe, We;
581
581
  const ui = as({
582
582
  ":host": {
583
583
  display: "inline-block",
@@ -609,7 +609,7 @@ const ui = as({
609
609
  });
610
610
  let ws = class extends He {
611
611
  constructor() {
612
- super(), U(this, ne, null), U(this, A, null), U(this, rt, !1), U(this, ht, 0), U(this, ae, 0), U(this, oe, 0), U(this, Gt, () => {
612
+ super(), U(this, ne, null), U(this, A, null), U(this, rt, !1), U(this, ht, 0), U(this, ae, 0), U(this, oe, 0), U(this, Nt, () => {
613
613
  gt(this, rt, this.offsetWidth > this.offsetHeight);
614
614
  const e = f(this, rt) ? this.offsetWidth : this.offsetHeight;
615
615
  gt(this, ht, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), gt(this, ht, Math.max(f(this, ht), 30)), f(this, rt) ? (f(this, A).style.width = f(this, ht) + "px", f(this, A).style.height = "100%") : (f(this, A).style.width = "100%", f(this, A).style.height = f(this, ht) + "px"), gt(this, ae, e - f(this, ht)), this.scrollElement.scrollSize || (this.style.display = "none");
@@ -645,10 +645,10 @@ let ws = class extends He {
645
645
  connectedCallback() {
646
646
  super.connectedCallback();
647
647
  const e = f(this, ne).assignedElements()[0] || f(this, ne).firstElementChild;
648
- gt(this, A, e), f(this, A).addEventListener("pointerdown", f(this, We)), Yt.subscribe(f(this, Gt), hs.SCROLL + 1), gs.subscribe(this, f(this, Gt)), this.scrollElement.onScroll(f(this, ke)), this.scrollElement.axisCSSProperty.subscribe(f(this, Pe));
648
+ gt(this, A, e), f(this, A).addEventListener("pointerdown", f(this, We)), jt.subscribe(f(this, Nt), hs.SCROLL + 1), gs.subscribe(this, f(this, Nt)), this.scrollElement.onScroll(f(this, ke)), this.scrollElement.axisCSSProperty.subscribe(f(this, Pe));
649
649
  }
650
650
  disconnectedCallback() {
651
- f(this, A).removeEventListener("pointerdown", f(this, We)), Yt.unsubscribe(f(this, Gt)), gs.unsubscribe(f(this, Gt)), this.scrollElement.offScroll(f(this, ke)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Pe));
651
+ f(this, A).removeEventListener("pointerdown", f(this, We)), jt.unsubscribe(f(this, Nt)), gs.unsubscribe(f(this, Nt)), this.scrollElement.offScroll(f(this, ke)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Pe));
652
652
  }
653
653
  };
654
654
  ne = /* @__PURE__ */ new WeakMap();
@@ -657,12 +657,12 @@ rt = /* @__PURE__ */ new WeakMap();
657
657
  ht = /* @__PURE__ */ new WeakMap();
658
658
  ae = /* @__PURE__ */ new WeakMap();
659
659
  oe = /* @__PURE__ */ new WeakMap();
660
- Gt = /* @__PURE__ */ new WeakMap();
660
+ Nt = /* @__PURE__ */ new WeakMap();
661
661
  ke = /* @__PURE__ */ new WeakMap();
662
662
  Pe = /* @__PURE__ */ new WeakMap();
663
663
  We = /* @__PURE__ */ new WeakMap();
664
664
  ws = ci([
665
- ee("e-scrollbar")
665
+ se("e-scrollbar")
666
666
  ], ws);
667
667
  const pi = as({
668
668
  button: {
@@ -695,7 +695,7 @@ let bs = class extends Vs {
695
695
  }
696
696
  };
697
697
  bs = Si([
698
- ee("e-scroll-set-button")
698
+ se("e-scroll-set-button")
699
699
  ], bs);
700
700
  var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, gi = (e, i, r, h) => {
701
701
  for (var n = h > 1 ? void 0 : h ? mi(i, r) : i, p = e.length - 1, S; p >= 0; p--)
@@ -709,7 +709,7 @@ let _s = class extends Vs {
709
709
  }
710
710
  };
711
711
  _s = gi([
712
- ee("e-scroll-step-button")
712
+ se("e-scroll-step-button")
713
713
  ], _s);
714
714
  var wi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, _i = (e, i, r, h) => {
715
715
  for (var n = h > 1 ? void 0 : h ? bi(i, r) : i, p = e.length - 1, S; p >= 0; p--)
@@ -718,67 +718,67 @@ var wi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, _i = (e, i
718
718
  }, zs = (e, i, r) => {
719
719
  if (!i.has(e))
720
720
  throw TypeError("Cannot " + r);
721
- }, Ft = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), Cs = (e, i, r) => {
721
+ }, Ot = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), Cs = (e, i, r) => {
722
722
  if (i.has(e))
723
723
  throw TypeError("Cannot add the same private member more than once");
724
724
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
725
- }, ys = (e, i, r, h) => (zs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), yt, le, tt, mt, Qt, ve, me, Xt;
725
+ }, ys = (e, i, r, h) => (zs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), kt, le, tt, mt, Xt, ve, me, Yt;
726
726
  class Ci {
727
727
  constructor(i, r, h) {
728
728
  z(this, tt, void 0);
729
729
  z(this, mt, void 0);
730
- z(this, Qt, void 0);
730
+ z(this, Xt, void 0);
731
731
  z(this, ve, void 0);
732
732
  z(this, me, () => {
733
- a(this, mt).scrollToSection(a(this, Qt), a(this, ve));
733
+ a(this, mt).scrollToSection(a(this, Xt), a(this, ve));
734
734
  });
735
- z(this, Xt, () => {
735
+ z(this, Yt, () => {
736
736
  a(this, tt).classList.toggle(
737
737
  "current",
738
- a(this, mt).counter.current === a(this, Qt)
738
+ a(this, mt).counter.current === a(this, Xt)
739
739
  );
740
740
  });
741
- F(this, tt, document.createElement("button")), F(this, mt, i), F(this, ve, h), F(this, Qt, r), a(this, tt).addEventListener("click", a(this, me)), a(this, mt).counter.subscribe(a(this, Xt)), a(this, Xt).call(this);
741
+ F(this, tt, document.createElement("button")), F(this, mt, i), F(this, ve, h), F(this, Xt, r), a(this, tt).addEventListener("click", a(this, me)), a(this, mt).counter.subscribe(a(this, Yt)), a(this, Yt).call(this);
742
742
  }
743
743
  get element() {
744
744
  return a(this, tt);
745
745
  }
746
746
  destroy() {
747
- a(this, tt).removeEventListener("click", a(this, me)), a(this, mt).counter.unsubscribe(a(this, Xt)), a(this, tt).remove();
747
+ a(this, tt).removeEventListener("click", a(this, me)), a(this, mt).counter.unsubscribe(a(this, Yt)), a(this, tt).remove();
748
748
  }
749
749
  }
750
- tt = new WeakMap(), mt = new WeakMap(), Qt = new WeakMap(), ve = new WeakMap(), me = new WeakMap(), Xt = new WeakMap();
750
+ tt = new WeakMap(), mt = new WeakMap(), Xt = new WeakMap(), ve = new WeakMap(), me = new WeakMap(), Yt = new WeakMap();
751
751
  let ks = class extends He {
752
752
  constructor() {
753
- super(...arguments), Cs(this, yt, []), Cs(this, le, Ms(() => {
754
- Ft(this, yt).forEach((e) => e.destroy()), ys(this, yt, []);
753
+ super(...arguments), Cs(this, kt, []), Cs(this, le, Ms(() => {
754
+ Ot(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
755
755
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
756
756
  const i = new Ci(
757
757
  this.scrollElement,
758
758
  e,
759
759
  this.getAttribute("behaviour") || "smooth"
760
760
  );
761
- this.appendChild(i.element), Ft(this, yt).push(i);
761
+ this.appendChild(i.element), Ot(this, kt).push(i);
762
762
  }
763
763
  }, 0));
764
764
  }
765
765
  connectedCallback() {
766
766
  super.connectedCallback(), this.scrollElement.addEventListener(
767
767
  "sectionsChange",
768
- Ft(this, le)
769
- ), Ft(this, le).call(this);
768
+ Ot(this, le)
769
+ ), Ot(this, le).call(this);
770
770
  }
771
771
  disconnectedCallback() {
772
772
  this.scrollElement.removeEventListener(
773
773
  "sectionsChange",
774
- Ft(this, le)
775
- ), Ft(this, yt).forEach((e) => e.destroy()), ys(this, yt, []);
774
+ Ot(this, le)
775
+ ), Ot(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
776
776
  }
777
777
  };
778
- yt = /* @__PURE__ */ new WeakMap();
778
+ kt = /* @__PURE__ */ new WeakMap();
779
779
  le = /* @__PURE__ */ new WeakMap();
780
780
  ks = _i([
781
- ee("e-scroll-bullet-buttons")
781
+ se("e-scroll-bullet-buttons")
782
782
  ], ks);
783
783
  var yi = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Pi = (e, i, r, h) => {
784
784
  for (var n = h > 1 ? void 0 : h ? ki(i, r) : i, p = e.length - 1, S; p >= 0; p--)
@@ -791,14 +791,14 @@ var yi = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Pi = (e, i
791
791
  if (i.has(e))
792
792
  throw TypeError("Cannot add the same private member more than once");
793
793
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
794
- }, v = (e, i, r, h) => (us(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), y = (e, i, r) => (us(e, i, "access private method"), r), Nt, kt, Pt, Wt, Mt, D, H, G, N, xt, L, pt, ft, ot, lt, ct, Ut, ce, x, Z, q, dt, St, X, Me, m, Kt, qt, Ee, B, Y, V, M, T, ue, zt, W, xe, Je, ps, $s, Qe, Ds, Xe, Fs, Ye, Os, je, As, ts, Rs, es, Ts, Le, pe, nt, Et, fs, Is, ds, Bs, Ve, ss, ze;
794
+ }, v = (e, i, r, h) => (us(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), y = (e, i, r) => (us(e, i, "access private method"), r), Ut, Pt, Wt, Mt, Et, D, H, G, N, Lt, L, pt, ft, ot, lt, ct, Kt, ce, x, Z, q, dt, St, X, Me, m, qt, Zt, Ee, B, Y, V, M, T, ue, $t, W, xe, Je, ps, $s, Qe, Ds, Xe, Fs, Ye, Os, je, As, ts, Rs, es, Ts, Le, pe, nt, xt, fs, Is, ds, Bs, Ve, ss, ze;
795
795
  let Ps = class extends He {
796
796
  constructor() {
797
- super(...arguments), o(this, xe), o(this, ps), o(this, Qe), o(this, Xe), o(this, Ye), o(this, je), o(this, ts), o(this, es), o(this, nt), o(this, fs), o(this, ds), o(this, Ve), o(this, Nt, new u(this, "--target", "")), o(this, kt, new u(this, "--disabled", !1)), o(this, Pt, new u(
797
+ super(...arguments), o(this, xe), o(this, ps), o(this, Qe), o(this, Xe), o(this, Ye), o(this, je), o(this, ts), o(this, es), o(this, nt), o(this, fs), o(this, ds), o(this, Ve), o(this, Ut, new u(this, "--target", "")), o(this, Pt, new u(this, "--disabled", !1)), o(this, Wt, new u(
798
798
  this,
799
799
  "--distance-offset",
800
800
  0
801
- )), o(this, Wt, new u(this, "--start-offset", 0)), o(this, Mt, new u(
801
+ )), o(this, Mt, new u(this, "--start-offset", 0)), o(this, Et, new u(
802
802
  this,
803
803
  "--capture-once",
804
804
  !1
@@ -810,7 +810,7 @@ let Ps = class extends He {
810
810
  this,
811
811
  "--captured-from-finish",
812
812
  ""
813
- )), o(this, xt, new u(
813
+ )), o(this, Lt, new u(
814
814
  this,
815
815
  "--released-from-start",
816
816
  ""
@@ -818,16 +818,16 @@ let Ps = class extends He {
818
818
  this,
819
819
  "--released-from-finish",
820
820
  ""
821
- )), o(this, pt, new u(this, "--passed-var", "")), o(this, ft, new u(this, "--progress-var", "")), o(this, ot, new u(this, "--distance-var", "")), o(this, lt, new u(this, "--start-var", "")), o(this, ct, new u(this, "--finish-var", "")), o(this, Ut, new u(this, "--smoothstep", !1)), o(this, ce, new u(
821
+ )), o(this, pt, new u(this, "--passed-var", "")), o(this, ft, new u(this, "--progress-var", "")), o(this, ot, new u(this, "--distance-var", "")), o(this, lt, new u(this, "--start-var", "")), o(this, ct, new u(this, "--finish-var", "")), o(this, Kt, new u(this, "--smoothstep", !1)), o(this, ce, new u(
822
822
  this,
823
823
  "--smootherstep",
824
824
  !1
825
- )), o(this, x, new wt(!1)), o(this, Z, new wt(!1)), o(this, q, new wt(!1)), o(this, dt, new wt(!1)), o(this, St, new wt(!1)), o(this, X, new wt(!1)), o(this, Me, []), o(this, m, this), o(this, Kt, 0), o(this, qt, 0), o(this, Ee, 0), o(this, B, 0), o(this, Y, 0), o(this, V, 0), o(this, M, 0), o(this, T, 0), o(this, ue, !1), o(this, zt, !1), o(this, W, !0), o(this, Le, () => {
825
+ )), o(this, x, new wt(!1)), o(this, Z, new wt(!1)), o(this, q, new wt(!1)), o(this, dt, new wt(!1)), o(this, St, new wt(!1)), o(this, X, new wt(!1)), o(this, Me, []), o(this, m, this), o(this, qt, 0), o(this, Zt, 0), o(this, Ee, 0), o(this, B, 0), o(this, Y, 0), o(this, V, 0), o(this, M, 0), o(this, T, 0), o(this, ue, !1), o(this, $t, !1), o(this, W, !0), o(this, Le, () => {
826
826
  s(this, W) || (this.resize(), s(this, pe).call(this));
827
827
  }), o(this, pe, () => {
828
828
  !s(this, W) && s(this, ue) && this.tick();
829
829
  }), o(this, ze, Ms(() => {
830
- const e = Dt.getAll(this).reverse();
830
+ const e = Ft.getAll(this).reverse();
831
831
  let i = 0;
832
832
  e.forEach((r, h) => {
833
833
  r.element === this.scrollElement && (i = h);
@@ -835,13 +835,13 @@ let Ps = class extends He {
835
835
  }, 0));
836
836
  }
837
837
  get distanceOffsetCSSProperty() {
838
- return s(this, Pt);
838
+ return s(this, Wt);
839
839
  }
840
840
  get startOffsetCSSProperty() {
841
- return s(this, Wt);
841
+ return s(this, Mt);
842
842
  }
843
843
  get captureOnceCSSProperty() {
844
- return s(this, Mt);
844
+ return s(this, Et);
845
845
  }
846
846
  get capturedCSSProperty() {
847
847
  return s(this, D);
@@ -856,7 +856,7 @@ let Ps = class extends He {
856
856
  return s(this, N);
857
857
  }
858
858
  get releasedFromStartCSSProperty() {
859
- return s(this, xt);
859
+ return s(this, Lt);
860
860
  }
861
861
  get releasedFromFinishCSSProperty() {
862
862
  return s(this, L);
@@ -877,16 +877,16 @@ let Ps = class extends He {
877
877
  return s(this, ct);
878
878
  }
879
879
  get smoothstepCSSProperty() {
880
- return s(this, Ut);
880
+ return s(this, Kt);
881
881
  }
882
882
  get smootherstepCSSProperty() {
883
883
  return s(this, ce);
884
884
  }
885
885
  get disabledCSSProperty() {
886
- return s(this, kt);
886
+ return s(this, Pt);
887
887
  }
888
888
  get targetCSSProperty() {
889
- return s(this, Nt);
889
+ return s(this, Ut);
890
890
  }
891
891
  get isCaptured() {
892
892
  return s(this, x);
@@ -907,10 +907,10 @@ let Ps = class extends He {
907
907
  return s(this, X);
908
908
  }
909
909
  get directionPosition() {
910
- return s(this, Kt);
910
+ return s(this, qt);
911
911
  }
912
912
  get directionSize() {
913
- return s(this, qt);
913
+ return s(this, Zt);
914
914
  }
915
915
  get passed() {
916
916
  return s(this, B);
@@ -928,13 +928,13 @@ let Ps = class extends He {
928
928
  return s(this, M);
929
929
  }
930
930
  get isCapturedOnce() {
931
- return s(this, zt);
931
+ return s(this, $t);
932
932
  }
933
933
  get isDisabled() {
934
934
  return s(this, W);
935
935
  }
936
936
  resize() {
937
- v(this, qt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), v(this, Kt, this.scrollElement.vertical ? $e(this, this.scrollElement) : De(this, this.scrollElement)), v(this, V, this.getStart()), v(this, M, this.getDistance()), v(this, V, s(this, V) + s(this, Wt).current), v(this, M, s(this, M) + s(this, Pt).current), v(this, T, s(this, V) + s(this, M)), this.scrollElement.currentScrollValue > s(this, T) && !s(this, x).current && !s(this, Z).current && (s(this, x).current = !0), this.setVar(s(this, lt).current, s(this, V)), this.setVar(s(this, ct).current, s(this, T)), this.setVar(s(this, ot).current, s(this, M)), v(this, ue, !0);
937
+ v(this, Zt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), v(this, qt, this.scrollElement.vertical ? $e(this, this.scrollElement) : De(this, this.scrollElement)), v(this, V, this.getStart()), v(this, M, this.getDistance()), v(this, V, s(this, V) + s(this, Mt).current), v(this, M, s(this, M) + s(this, Wt).current), v(this, T, s(this, V) + s(this, M)), this.scrollElement.currentScrollValue > s(this, T) && !s(this, x).current && !s(this, Z).current && (s(this, x).current = !0), this.setVar(s(this, lt).current, s(this, V)), this.setVar(s(this, ct).current, s(this, T)), this.setVar(s(this, ot).current, s(this, M)), v(this, ue, !0);
938
938
  }
939
939
  tick() {
940
940
  let e = this.scrollElement.currentScrollValue;
@@ -942,41 +942,41 @@ let Ps = class extends He {
942
942
  e += r.value;
943
943
  }), v(this, B, this.updateValue(e - s(this, V), 0, s(this, M)) || 0), v(this, Y, s(this, B) / s(this, M) || 0);
944
944
  const i = Math.round(e);
945
- s(this, x).current && (i > s(this, V) ? s(this, q).current || y(this, Ye, Os).call(this) : s(this, q).current && !s(this, dt).current && y(this, ts, Rs).call(this), i < s(this, T) ? s(this, X).current && !s(this, St).current && y(this, je, As).call(this) : s(this, q).current && !s(this, X).current && y(this, es, Ts).call(this)), i > s(this, V) && i < s(this, T) ? (y(this, xe, Je).call(this), s(this, x).current || y(this, Qe, Ds).call(this)) : s(this, x).current && (v(this, B, Ns(s(this, M) / 2, s(this, B), 0, s(this, M))), v(this, Y, s(this, B) / s(this, M)), y(this, xe, Je).call(this), y(this, Xe, Fs).call(this)), s(this, zt) && s(this, Mt).current && (s(this, D).current && s(this, m).classList.add(s(this, D).current), v(this, W, !0));
945
+ s(this, x).current && (i > s(this, V) ? s(this, q).current || y(this, Ye, Os).call(this) : s(this, q).current && !s(this, dt).current && y(this, ts, Rs).call(this), i < s(this, T) ? s(this, X).current && !s(this, St).current && y(this, je, As).call(this) : s(this, q).current && !s(this, X).current && y(this, es, Ts).call(this)), i > s(this, V) && i < s(this, T) ? (y(this, xe, Je).call(this), s(this, x).current || y(this, Qe, Ds).call(this)) : s(this, x).current && (v(this, B, Ns(s(this, M) / 2, s(this, B), 0, s(this, M))), v(this, Y, s(this, B) / s(this, M)), y(this, xe, Je).call(this), y(this, Xe, Fs).call(this)), s(this, $t) && s(this, Et).current && (s(this, D).current && s(this, m).classList.add(s(this, D).current), v(this, W, !0));
946
946
  }
947
947
  disable() {
948
- this.style.cssText = "", v(this, Kt, 0), v(this, qt, 0), v(this, B, 0), v(this, Y, 0), v(this, V, 0), v(this, M, 0), v(this, T, 0), v(this, ue, !1), s(this, x).current = !1, s(this, Z).current = !1, s(this, q).current = !1, s(this, dt).current = !1, s(this, St).current = !1, s(this, X).current = !1, v(this, zt, !1), v(this, W, !0), y(this, Ve, ss).call(this);
948
+ this.style.cssText = "", v(this, qt, 0), v(this, Zt, 0), v(this, B, 0), v(this, Y, 0), v(this, V, 0), v(this, M, 0), v(this, T, 0), v(this, ue, !1), s(this, x).current = !1, s(this, Z).current = !1, s(this, q).current = !1, s(this, dt).current = !1, s(this, St).current = !1, s(this, X).current = !1, v(this, $t, !1), v(this, W, !0), y(this, Ve, ss).call(this);
949
949
  }
950
950
  enable() {
951
951
  v(this, W, !1);
952
952
  }
953
953
  connectedCallback() {
954
- super.connectedCallback(), s(this, Nt).observe(), s(this, kt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, N).observe(), s(this, xt).observe(), s(this, L).observe(), s(this, pt).observe(), s(this, ft).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, Ut).observe(), s(this, ce).observe();
954
+ super.connectedCallback(), s(this, Ut).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, Et).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, N).observe(), s(this, Lt).observe(), s(this, L).observe(), s(this, pt).observe(), s(this, ft).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, Kt).observe(), s(this, ce).observe();
955
955
  let e = !1;
956
956
  this.scrollElement.addEventListener(
957
957
  "sectionsChange",
958
958
  s(this, ze)
959
- ), s(this, ze).call(this), s(this, kt).current || this.enable(), s(this, Nt).subscribe((i) => {
959
+ ), s(this, ze).call(this), s(this, Pt).current || this.enable(), s(this, Ut).subscribe((i) => {
960
960
  i.previous && y(this, Ve, ss).call(this), i.current ? i.current === "parent" ? v(this, m, this.parentElement || this) : v(this, m, document.querySelector(i.current) || this) : v(this, m, this);
961
- }), s(this, kt).subscribe((i) => {
961
+ }), s(this, Pt).subscribe((i) => {
962
962
  i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
963
- }), s(this, Wt).subscribe(() => {
963
+ }), s(this, Mt).subscribe(() => {
964
964
  e && !s(this, W) && this.resize();
965
- }), s(this, Pt).subscribe(() => {
965
+ }), s(this, Wt).subscribe(() => {
966
966
  e && !s(this, W) && this.resize();
967
967
  }), s(this, D).subscribe((i) => {
968
- y(this, nt, Et).call(this, i);
968
+ y(this, nt, xt).call(this, i);
969
969
  }), s(this, G).subscribe((i) => {
970
- y(this, nt, Et).call(this, i);
970
+ y(this, nt, xt).call(this, i);
971
971
  }), s(this, N).subscribe((i) => {
972
- y(this, nt, Et).call(this, i);
972
+ y(this, nt, xt).call(this, i);
973
973
  }), s(this, H).subscribe((i) => {
974
- y(this, nt, Et).call(this, i);
975
- }), s(this, xt).subscribe((i) => {
976
- y(this, nt, Et).call(this, i);
974
+ y(this, nt, xt).call(this, i);
975
+ }), s(this, Lt).subscribe((i) => {
976
+ y(this, nt, xt).call(this, i);
977
977
  }), s(this, L).subscribe((i) => {
978
- y(this, nt, Et).call(this, i);
979
- }), s(this, Mt).subscribe((i) => {
978
+ y(this, nt, xt).call(this, i);
979
+ }), s(this, Et).subscribe((i) => {
980
980
  s(this, W) || !i.current && i.previous && (this.resize(), this.enable());
981
981
  }), s(this, pt).subscribe((i) => {
982
982
  s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, this.passed));
@@ -988,10 +988,10 @@ let Ps = class extends He {
988
988
  s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, T)));
989
989
  }), s(this, ot).subscribe((i) => {
990
990
  s(this, W) || (this.removeVar(i.previous), this.setVar(i.current, s(this, M)));
991
- }), Yt.subscribe(s(this, Le), hs.SEGMENT), this.scrollElement.onScroll(s(this, pe)), e = !0;
991
+ }), jt.subscribe(s(this, Le), hs.SEGMENT), this.scrollElement.onScroll(s(this, pe)), e = !0;
992
992
  }
993
993
  disconnectedCallback() {
994
- Yt.unsubscribe(s(this, Le)), this.scrollElement.offScroll(s(this, pe)), s(this, Nt).close(), s(this, kt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, N).close(), s(this, xt).close(), s(this, L).close(), s(this, pt).close(), s(this, ft).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, Ut).close(), s(this, ce).close(), s(this, x).close(), s(this, Z).close(), s(this, q).close(), s(this, dt).close(), s(this, St).close(), s(this, X).close(), this.disable();
994
+ jt.unsubscribe(s(this, Le)), this.scrollElement.offScroll(s(this, pe)), s(this, Ut).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, Et).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, N).close(), s(this, Lt).close(), s(this, L).close(), s(this, pt).close(), s(this, ft).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, Kt).close(), s(this, ce).close(), s(this, x).close(), s(this, Z).close(), s(this, q).close(), s(this, dt).close(), s(this, St).close(), s(this, X).close(), this.disable();
995
995
  }
996
996
  removeVar(e) {
997
997
  e && s(this, m).style.removeProperty(`--${e}`);
@@ -1000,32 +1000,32 @@ let Ps = class extends He {
1000
1000
  e && s(this, m).style.setProperty(`--${e}`, i.toString());
1001
1001
  }
1002
1002
  updateValue(e, i = 0, r = 1) {
1003
- return this.smootherstepCSSProperty.current ? Us(e, i, r) * r : s(this, Ut).current ? Ks(e, i, r) * r : rs(e, i, r);
1003
+ return this.smootherstepCSSProperty.current ? Us(e, i, r) * r : s(this, Kt).current ? Ks(e, i, r) * r : rs(e, i, r);
1004
1004
  }
1005
1005
  getDistance() {
1006
- return s(this, qt) + s(this, Ee);
1006
+ return s(this, Zt) + s(this, Ee);
1007
1007
  }
1008
1008
  getStart() {
1009
- return s(this, Kt) - s(this, Ee);
1009
+ return s(this, qt) - s(this, Ee);
1010
1010
  }
1011
1011
  };
1012
- Nt = /* @__PURE__ */ new WeakMap();
1013
- kt = /* @__PURE__ */ new WeakMap();
1012
+ Ut = /* @__PURE__ */ new WeakMap();
1014
1013
  Pt = /* @__PURE__ */ new WeakMap();
1015
1014
  Wt = /* @__PURE__ */ new WeakMap();
1016
1015
  Mt = /* @__PURE__ */ new WeakMap();
1016
+ Et = /* @__PURE__ */ new WeakMap();
1017
1017
  D = /* @__PURE__ */ new WeakMap();
1018
1018
  H = /* @__PURE__ */ new WeakMap();
1019
1019
  G = /* @__PURE__ */ new WeakMap();
1020
1020
  N = /* @__PURE__ */ new WeakMap();
1021
- xt = /* @__PURE__ */ new WeakMap();
1021
+ Lt = /* @__PURE__ */ new WeakMap();
1022
1022
  L = /* @__PURE__ */ new WeakMap();
1023
1023
  pt = /* @__PURE__ */ new WeakMap();
1024
1024
  ft = /* @__PURE__ */ new WeakMap();
1025
1025
  ot = /* @__PURE__ */ new WeakMap();
1026
1026
  lt = /* @__PURE__ */ new WeakMap();
1027
1027
  ct = /* @__PURE__ */ new WeakMap();
1028
- Ut = /* @__PURE__ */ new WeakMap();
1028
+ Kt = /* @__PURE__ */ new WeakMap();
1029
1029
  ce = /* @__PURE__ */ new WeakMap();
1030
1030
  x = /* @__PURE__ */ new WeakMap();
1031
1031
  Z = /* @__PURE__ */ new WeakMap();
@@ -1035,8 +1035,8 @@ St = /* @__PURE__ */ new WeakMap();
1035
1035
  X = /* @__PURE__ */ new WeakMap();
1036
1036
  Me = /* @__PURE__ */ new WeakMap();
1037
1037
  m = /* @__PURE__ */ new WeakMap();
1038
- Kt = /* @__PURE__ */ new WeakMap();
1039
1038
  qt = /* @__PURE__ */ new WeakMap();
1039
+ Zt = /* @__PURE__ */ new WeakMap();
1040
1040
  Ee = /* @__PURE__ */ new WeakMap();
1041
1041
  B = /* @__PURE__ */ new WeakMap();
1042
1042
  Y = /* @__PURE__ */ new WeakMap();
@@ -1044,7 +1044,7 @@ V = /* @__PURE__ */ new WeakMap();
1044
1044
  M = /* @__PURE__ */ new WeakMap();
1045
1045
  T = /* @__PURE__ */ new WeakMap();
1046
1046
  ue = /* @__PURE__ */ new WeakMap();
1047
- zt = /* @__PURE__ */ new WeakMap();
1047
+ $t = /* @__PURE__ */ new WeakMap();
1048
1048
  W = /* @__PURE__ */ new WeakMap();
1049
1049
  xe = /* @__PURE__ */ new WeakSet();
1050
1050
  Je = function() {
@@ -1066,7 +1066,7 @@ $s = function() {
1066
1066
  };
1067
1067
  Qe = /* @__PURE__ */ new WeakSet();
1068
1068
  Ds = function() {
1069
- s(this, x).current = !0, s(this, Z).current = !1, v(this, zt, !0), s(this, H).current && s(this, m).classList.remove(s(this, H).current), s(this, L).current && s(this, m).classList.remove(
1069
+ s(this, x).current = !0, s(this, Z).current = !1, v(this, $t, !0), s(this, H).current && s(this, m).classList.remove(s(this, H).current), s(this, L).current && s(this, m).classList.remove(
1070
1070
  s(this, L).current
1071
1071
  ), s(this, L).current && s(this, m).classList.remove(
1072
1072
  s(this, L).current
@@ -1074,7 +1074,7 @@ Ds = function() {
1074
1074
  };
1075
1075
  Xe = /* @__PURE__ */ new WeakSet();
1076
1076
  Fs = function() {
1077
- s(this, Z).current = !0, s(this, x).current = !1, v(this, zt, !0), s(this, D).current && s(this, m).classList.remove(s(this, D).current), s(this, G).current && s(this, m).classList.remove(
1077
+ s(this, Z).current = !0, s(this, x).current = !1, v(this, $t, !0), s(this, D).current && s(this, m).classList.remove(s(this, D).current), s(this, G).current && s(this, m).classList.remove(
1078
1078
  s(this, G).current
1079
1079
  ), s(this, N).current && s(this, m).classList.remove(
1080
1080
  s(this, N).current
@@ -1107,7 +1107,7 @@ Ts = function() {
1107
1107
  Le = /* @__PURE__ */ new WeakMap();
1108
1108
  pe = /* @__PURE__ */ new WeakMap();
1109
1109
  nt = /* @__PURE__ */ new WeakSet();
1110
- Et = function(e) {
1110
+ xt = function(e) {
1111
1111
  if (s(this, W)) {
1112
1112
  e.previous && s(this, m).classList.remove(e.previous), e.current && s(this, m).classList.remove(e.current);
1113
1113
  return;
@@ -1128,11 +1128,11 @@ Bs = function(...e) {
1128
1128
  };
1129
1129
  Ve = /* @__PURE__ */ new WeakSet();
1130
1130
  ss = function() {
1131
- y(this, fs, Is).call(this, s(this, D).current, s(this, G).current, s(this, N).current, s(this, H).current, s(this, xt).current, s(this, L).current), y(this, ds, Bs).call(this, s(this, pt).current, s(this, ft).current, s(this, ot).current, s(this, lt).current, s(this, ct).current);
1131
+ y(this, fs, Is).call(this, s(this, D).current, s(this, G).current, s(this, N).current, s(this, H).current, s(this, Lt).current, s(this, L).current), y(this, ds, Bs).call(this, s(this, pt).current, s(this, ft).current, s(this, ot).current, s(this, lt).current, s(this, ct).current);
1132
1132
  };
1133
1133
  ze = /* @__PURE__ */ new WeakMap();
1134
1134
  Ps = Pi([
1135
- ee("e-scroll-segment")
1135
+ se("e-scroll-segment")
1136
1136
  ], Ps);
1137
1137
  export {
1138
1138
  ks as ScrollBulletButtonsElement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.4.28",
3
+ "version": "0.4.29",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"