aptechka 0.33.4 → 0.33.6

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 w=s=>{throw TypeError(s)};var f=(s,r,e)=>r.has(s)||w("Cannot "+e);var t=(s,r,e)=>(f(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>r.has(s)?w("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),i=(s,r,e,h)=>(f(s,r,"write to private field"),h?h.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),g=require("../Store-CDb6RMce.cjs"),p=require("../dom-JBOkFLTh.cjs"),R=require("../window-resizer/vanilla/index.cjs");var a,l,u,b,n,o;class y extends g.Store{constructor(e,h,d,S){super(d,S);c(this,a);c(this,l);c(this,u);c(this,b);c(this,n,!1);c(this,o,()=>{this.check()});i(this,a,p.getElement(e)),i(this,l,h),i(this,u,d.toString()),i(this,b,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,u)}observe(){t(this,n)||(i(this,n,!0),R.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,n)&&(i(this,n,!1),R.windowResizer.unsubscribe(t(this,o)))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,a)).getPropertyValue(t(this,l));if(!(t(this,b)&&t(this,u)===e))if(i(this,u,e),e){const h=v.cssValueParser.parse(t(this,u));this.current=h}else this.current=this.initial}}a=new WeakMap,l=new WeakMap,u=new WeakMap,b=new WeakMap,n=new WeakMap,o=new WeakMap;exports.CSSProperty=y;
1
+ "use strict";var w=s=>{throw TypeError(s)};var f=(s,r,e)=>r.has(s)||w("Cannot "+e);var t=(s,r,e)=>(f(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>r.has(s)?w("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),i=(s,r,e,h)=>(f(s,r,"write to private field"),h?h.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),g=require("../Store-CDb6RMce.cjs"),p=require("../dom-JBOkFLTh.cjs"),R=require("../window-resizer/vanilla/index.cjs");var a,l,u,b,n,o;class y extends g.Store{constructor(e,h,d,S){super(d,S);c(this,a);c(this,l);c(this,u);c(this,b);c(this,n,!1);c(this,o,()=>{this.check()});i(this,a,p.getElement(e)),i(this,l,h),i(this,u,d.toString()),i(this,b,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,u)}observe(){t(this,n)||(i(this,n,!0),R.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,n)&&(i(this,n,!1),R.windowResizer.unsubscribe(t(this,o)))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,a)).getPropertyValue(t(this,l)).trim();if(!(t(this,b)&&t(this,u)===e))if(i(this,u,e),e){const h=v.cssValueParser.parse(t(this,u));this.current=h}else this.current=this.initial}}a=new WeakMap,l=new WeakMap,u=new WeakMap,b=new WeakMap,n=new WeakMap,o=new WeakMap;exports.CSSProperty=y;
@@ -41,9 +41,7 @@ class d extends g {
41
41
  this.unobserve(), super.close();
42
42
  }
43
43
  check() {
44
- const e = getComputedStyle(t(this, b)).getPropertyValue(
45
- t(this, o)
46
- );
44
+ const e = getComputedStyle(t(this, b)).getPropertyValue(t(this, o)).trim();
47
45
  if (!(t(this, l) && t(this, u) === e))
48
46
  if (i(this, u, e), e) {
49
47
  const a = R.parse(t(this, u));
@@ -1 +1 @@
1
- "use strict";var xe=Object.defineProperty;var ce=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var ae=u=>{throw TypeError(u)};var ue=(u,r,e)=>r in u?xe(u,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[r]=e,de=(u,r)=>{for(var e in r||(r={}))ze.call(r,e)&&ue(u,e,r[e]);if(ce)for(var e of ce(r))Le.call(r,e)&&ue(u,e,r[e]);return u};var te=(u,r,e)=>r.has(u)||ae("Cannot "+e);var t=(u,r,e)=>(te(u,r,"read from private field"),e?e.call(u):r.get(u)),s=(u,r,e)=>r.has(u)?ae("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(u):r.set(u,e),h=(u,r,e,i)=>(te(u,r,"write to private field"),i?i.call(u,e):r.set(u,e),e),d=(u,r,e)=>(te(u,r,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("../../Store-CDb6RMce.cjs"),Yt=require("../../browser-CpzFX2xg.cjs"),Ie=require("../../easings-GegIwET5.cjs"),ee=require("../../events-KVanG9sR.cjs"),pe=require("../../jss-GJLvaNfT.cjs"),Et=require("../../layout-8ryRAMGJ.cjs"),fe=require("../../math-GDWEqu7y.cjs");require("../../ticker/vanilla/index.cjs");const se=require("../../order/index.cjs"),Te=require("../../Damped-CTsV8tl_.cjs"),qe=require("../../Tweened-C0-UzxN-.cjs"),Zt=require("../../controls/index.cjs"),Xt=require("../../window-resizer/vanilla/index.cjs"),ct=require("../../scroll-entries/index.cjs"),Se=require("../../css-unit-parser/index.cjs"),p=require("../../css-property/index.cjs"),De=require("../../device/index.cjs"),Vt=require("../../element-resizer/vanilla/index.cjs"),Re=require("../../gestures-DHLrn6Q8.cjs"),me=require("../../dom-JBOkFLTh.cjs"),Ae=require("../../function-MthRj-GJ.cjs"),Me=require("../../scroll-segment/index.cjs");var f,Bt,y,ut,A,N;class Oe{constructor(r,e,i){s(this,f);s(this,Bt);s(this,y);s(this,ut,0);s(this,A,0);s(this,N,null);h(this,f,r),h(this,Bt,e),h(this,y,i),ct.scrollEntries.register(t(this,f))}get index(){return t(this,Bt)}get size(){return t(this,ut)}get position(){return t(this,A)}destroy(){ct.scrollEntries.unregister(t(this,f)),this.unsetTransform()}unsetTransform(){t(this,f).style.transform="",this.mark(null)}setSize(r){r?(t(this,f).style.setProperty("--size",r+"px"),t(this,y).axisCSSProperty.current==="x"?(t(this,f).style.width=r+"px",t(this,f).style.height=""):(t(this,f).style.height=r+"px",t(this,f).style.width="")):(t(this,f).style.width="",t(this,f).style.height="",t(this,f).style.removeProperty("--size"))}resize(){h(this,ut,t(this,y).vertical?t(this,f).offsetHeight:t(this,f).offsetWidth),h(this,A,t(this,y).vertical?Et.getCumulativeOffsetTop(t(this,f)):Et.getCumulativeOffsetLeft(t(this,f))),h(this,A,t(this,A)-t(this,y).contentPosition)}transform(){let r=0;const e=t(this,y).viewportSize*t(this,y).sectionDistanceScaleCSSProperty.current;t(this,y).loopCSSProperty.current&&t(this,y).overscroll&&t(this,A)+t(this,ut)<t(this,y).currentScrollValue&&(r=t(this,y).distance*-1-t(this,y).gap),ct.scrollEntries.update(t(this,f),t(this,y).axisCSSProperty.current,r);const i=t(this,y).currentScrollValue+r,n=t(this,A)-t(this,y).viewportSize-e,c=t(this,A)+t(this,ut)+e,m=fe.clamp(i,n,c);t(this,y).vertical?t(this,f).style.transform=`translate3d(0px, ${m*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${m*-1}px, 0px, 0px)`}mark(r){t(this,N)!==r&&(t(this,N)&&t(this,f).classList.remove(t(this,N)),r&&t(this,f).classList.add(r),h(this,N,r),ee.dispatchEvent(t(this,f),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,N)},custom:!0}))}}f=new WeakMap,Bt=new WeakMap,y=new WeakMap,ut=new WeakMap,A=new WeakMap,N=new WeakMap;const Ve=pe.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-wrapper":{width:"100%",height:"100%",overflow:"var(--overflow, initial)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var a,at,x,M,O,V,I,G,j,B,K,dt,T,C,St,pt,ft,mt,wt,k,bt,Z,q,J,_,Q,gt,yt,X,Y,S,xt,l,_t,Ht,v,g,z,D,tt,R,P,b,zt,et,H,st,vt,Lt,it,F,Ft,o,Ot,Pt,Jt,Qt,ie,re,L,kt,be,It,Wt,ne,he,lt,oe;class Mt extends HTMLElement{constructor(){super();s(this,o);s(this,a,null);s(this,at,new p.CSSProperty(this,"--controls",!0));s(this,x,new p.CSSProperty(this,"--axis","y"));s(this,M,new p.CSSProperty(this,"--direction",0));s(this,O,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));s(this,V,new p.CSSProperty(this,"--split",!1));s(this,I,new p.CSSProperty(this,"--sectional",!1));s(this,G,new p.CSSProperty(this,"--easing",!1));s(this,j,new p.CSSProperty(this,"--duration",!1));s(this,B,new p.CSSProperty(this,"--auto-size",!1));s(this,K,new p.CSSProperty(this,"--wheel-max-delta",!1));s(this,dt,new p.CSSProperty(this,"--drag-inertion",1));s(this,T,new p.CSSProperty(this,"--sections-in-view",1));s(this,C,new p.CSSProperty(this,"--loop",!1));s(this,St,new p.CSSProperty(this,"--damping",20));s(this,pt,new p.CSSProperty(this,"--mass",0));s(this,ft,new p.CSSProperty(this,"--stiffness",0));s(this,mt,new p.CSSProperty(this,"--mouse-drag",!1));s(this,wt,new p.CSSProperty(this,"--section-distance-scale",.5));s(this,k,new p.CSSProperty(this,"--autoplay",0));s(this,bt,new p.CSSProperty(this,"--autoplay-pause-duration",0));s(this,Z,new p.CSSProperty(this,"--autoplay-user-direction",!1));s(this,q,new p.CSSProperty(this,"--classes",!1));s(this,J,new p.CSSProperty(this,"--current-index-start-offset",0));s(this,_,new p.CSSProperty(this,"--current-index-end-offset",0));s(this,Q,new p.CSSProperty(this,"--focus-delay",0));s(this,gt,new p.CSSProperty(this,"--focus-duration",3e3));s(this,yt,new p.CSSProperty(this,"--disabled",!1));s(this,X,new p.CSSProperty(this,"--hibernated",!1));s(this,Y,null);s(this,S,null);s(this,xt,null);s(this,l,[]);s(this,_t,0);s(this,Ht,0);s(this,v,0);s(this,g,0);s(this,z,0);s(this,D,null);s(this,tt,null);s(this,R,null);s(this,P,null);s(this,b,new ke.Store(0));s(this,zt,0);s(this,et,0);s(this,H,!1);s(this,st,!0);s(this,vt,!0);s(this,Lt);s(this,it);s(this,F,new qe.Tweened);s(this,Ft,!1);s(this,L,()=>{t(this,a).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,g)||0,i=t(this,b).current;if(h(this,_t,this.vertical?Et.getCumulativeOffsetTop(this):Et.getCumulativeOffsetLeft(this)),h(this,Ht,this.vertical?Et.getCumulativeOffsetTop(t(this,S)):Et.getCumulativeOffsetLeft(t(this,S))),h(this,v,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?h(this,z,Se.cssUnitParser.parse(getComputedStyle(t(this,S)).rowGap)):h(this,z,Se.cssUnitParser.parse(getComputedStyle(t(this,S)).columnGap)),t(this,B).current&&t(this,l).length){const n=t(this,T).current,c=(t(this,v)-t(this,z)*(n-1))/n;t(this,l).forEach(m=>{m.setSize(c)})}else t(this,l).forEach(n=>{n.setSize()});if(t(this,l).forEach(n=>{n.resize()}),t(this,O).current){h(this,g,t(this,v)*t(this,O).current);const n=t(this,g)+t(this,v);this.vertical?(t(this,S).style.width=n+"px",t(this,S).style.height="100%"):(t(this,S).style.height=n+"px",t(this,S).style.width="100%")}else this.vertical?(t(this,S).style.width="100%",t(this,S).style.height="max-content",h(this,g,t(this,S).offsetHeight-t(this,v))):(t(this,S).style.width="max-content",t(this,S).style.height="100%",h(this,g,t(this,S).offsetWidth-t(this,v)));if(!t(this,C).current){const n=getComputedStyle(this),c=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);h(this,g,t(this,g)+c),t(this,a).max=t(this,g)}if(t(this,C).current&&t(this,l).length){const n=t(this,l)[t(this,l).length-1],c=n.position+n.size-t(this,v),m=t(this,g)-c;h(this,et,n.position+n.size+m)}else h(this,et,t(this,g));if(t(this,I).current&&t(this,l).length){const n=t(this,l)[i];t(this,a).set(n.position,{equalize:!0})}else t(this,a).set(e*t(this,g),{equalize:!0});h(this,H,(this.vertical?t(this,S).offsetHeight:t(this,S).offsetWidth)>t(this,v)),this.classList.toggle("has-overflow",t(this,H)),t(this,H)?d(this,o,Qt).call(this):d(this,o,Jt).call(this),t(this,kt).call(this)});s(this,kt,()=>{if(!t(this,H))return;const e=this.currentScrollValue;if(h(this,zt,Math.max(0,e-t(this,g))),t(this,l).length){let i=0;for(let n=0;n<t(this,l).length;n++){const c=t(this,l)[n];c.transform(),this.targetScrollValue+c.size/2>=c.position&&(i=n)}t(this,b).current=i}else this.vertical?t(this,S).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,S).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;ct.scrollEntries.update(this,t(this,x).current,e)});s(this,It,(e,i)=>{t(this,at).current&&(d(this,o,ne).call(this,Math.sign(i)||1),t(this,Wt).call(this,e,i))});s(this,Wt,(e,i)=>{if(t(this,M).current){if(t(this,M).current<0&&i>0)return;if(t(this,M).current>0&&i<0)return}if(t(this,it)||t(this,F).unlistenAnimationFrame(),!t(this,k).current&&t(this,Q).current&&(clearInterval(t(this,Lt)),h(this,Lt,setTimeout(()=>{const n=d(this,o,oe).call(this);n&&this.scrollToSection(n.index,{tween:{duration:t(this,gt).current,easing:Ie.easeInOutExpo}})},t(this,Q).current))),!(e.includes("drag")&&!De.device.isMobile&&!t(this,mt).current)){if(t(this,I).current&&e!=="drag"){const n=Math.sign(i);if(t(this,l).length){const c={tween:t(this,G).current||t(this,j).current?{easing:t(this,G).current||"easeInOutCubic",duration:t(this,j).current||500}:void 0};t(this,Ft)?this.scrollToSection(t(this,b).current,c):this.shiftSections(n,c)}else t(this,a).shift(n*t(this,v))}else t(this,a).shift(i);h(this,Ft,e==="drag")}});if(Yt.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets.push(Ve);const i=document.createElement("div");i.className="static",i.innerHTML='<slot name="static"></slot>',e.appendChild(i),h(this,Y,document.createElement("div")),t(this,Y).className="content-wrapper",h(this,S,document.createElement("div")),t(this,S).className="content",h(this,xt,document.createElement("slot")),t(this,S).appendChild(t(this,xt)),t(this,Y).appendChild(t(this,S)),e.appendChild(t(this,Y))}}get damped(){return t(this,a)}get controlsCSSProperty(){return t(this,at)}get axisCSSProperty(){return t(this,x)}get directionCSSProperty(){return t(this,M)}get pagesCSSProperty(){return t(this,O)}get splitCSSProperty(){return t(this,V)}get sectionalCSSProperty(){return t(this,I)}get easingCSSProperty(){return t(this,G)}get durationCSSProperty(){return t(this,j)}get autoSizeCSSProperty(){return t(this,B)}get wheelMaxDeltaCSSProperty(){return t(this,K)}get dragInertionCSSProperty(){return t(this,dt)}get sectionsInViewCSSProperty(){return t(this,T)}get loopCSSProperty(){return t(this,C)}get dampingCSSProperty(){return t(this,St)}get massCSSProperty(){return t(this,pt)}get stiffnessCSSProperty(){return t(this,ft)}get mouseDragCSSProperty(){return t(this,mt)}get sectionDistanceScaleCSSProperty(){return t(this,wt)}get autoplayCSSProperty(){return t(this,k)}get autoplayPauseDurationCSSProperty(){return t(this,bt)}get autoplayUserDirectionCSSProperty(){return t(this,Z)}get classesCSSProperty(){return t(this,q)}get currentIndexStartOffsetCSSProperty(){return t(this,J)}get currentIndexEndOffsetCSSProperty(){return t(this,_)}get focusDelayCSSProperty(){return t(this,Q)}get focusDurationCSSProperty(){return t(this,gt)}get disabledCSSProperty(){return t(this,yt)}get hibernatedCSSProperty(){return t(this,X)}get currentScrollValue(){return d(this,o,he).call(this,"current")}get targetScrollValue(){return d(this,o,he).call(this,"target")}get contentWrapperElement(){return t(this,Y)}get contentElement(){return t(this,S)}get sections(){return t(this,l)}get position(){return t(this,_t)}get contentPosition(){return t(this,Ht)}get viewportSize(){return t(this,v)}get scrollSize(){return t(this,g)}get gap(){return t(this,z)}get counter(){return t(this,b)}get limit(){return Math.ceil(t(this,l).length-t(this,T).current)}get distance(){return t(this,et)}get loopDistance(){return t(this,C).current?t(this,et)+t(this,z):t(this,et)}get hasOverflow(){return t(this,H)}get overscroll(){return t(this,zt)}get vertical(){return t(this,x).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,x).current==="y"?0:t(this,a).distance}get scrollHeight(){return t(this,x).current==="x"?0:t(this,a).distance}onScroll(...e){return t(this,a).subscribe(...e)}offScroll(...e){t(this,a).unsubscribe(...e)}range(e,i,n=0){const c=e-n,m=c+i+n*2;return this.currentProgress<c?0:this.currentProgress>m?1:(this.currentProgress-c)/(m-c)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const c=e-n,m=c+i+n*2;return this.currentProgress>=c&&this.currentProgress<=m}scrollToSection(e,i){if(!t(this,l).length)return;const n=t(this,b).current;d(this,o,be).call(this,e);const c=t(this,l)[n],m=t(this,l)[t(this,b).current];if(c&&m){let w=0;const Ct=d(this,o,oe).call(this),we=Ct?this.targetScrollValue-Ct.position:0;t(this,C).current?t(this,b).current===0&&n===t(this,l).length-1?w=t(this,g)+t(this,v)-c.position+t(this,z):t(this,b).current===t(this,l).length-1&&n===0?w=m.position-(t(this,g)+t(this,v)+t(this,z)):w=m.position-c.position:w=m.position-c.position,this.shiftPosition(w-we,i)}}shiftSections(e,i){t(this,l).length&&this.scrollToSection(t(this,b).current+e,i)}setPosition(e,i){d(this,o,ne).call(this,Math.sign(e)||1),i!=null&&i.tween?t(this,it)||(t(this,F).set(t(this,a).current,{equalize:!0}),t(this,F).set(e,de({},i.tween)),h(this,it,setTimeout(()=>{h(this,it,void 0)},i.tween.duration))):t(this,a).set(e,{equalize:(i==null?void 0:i.behaviour)==="instant"})}shiftPosition(e,i){this.setPosition(t(this,a).target+e,i)}connectedCallback(){ct.scrollEntries.register(this),h(this,a,new Te.Damped(0,{damping:.01,min:0,order:se.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),h(this,D,new Zt.WheelControls({element:t(this,S)})),t(this,D).changeEvent.subscribe(t(this,It)),h(this,tt,new Zt.KeyboardControls({element:this})),t(this,tt).changeEvent.subscribe(t(this,It)),h(this,R,new Zt.DragControls({element:t(this,S)})),t(this,R).changeEvent.subscribe(t(this,It)),h(this,P,new Zt.AutoplayControls({culling:this})),t(this,P).changeEvent.subscribe(t(this,Wt)),t(this,x).subscribe(({current:e})=>{t(this,S).style.flexDirection=e==="x"?"row":"column",t(this,D).axis=t(this,K).current?"max":e,t(this,tt).dimension=e==="x"?"width":"height",t(this,R).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,L).call(this)}),t(this,K).subscribe(e=>{t(this,D).axis=e.current?"max":t(this,x).current}),t(this,dt).subscribe(e=>{t(this,R).inertion=typeof e.current=="number"?e.current:1}),t(this,O).subscribe(()=>{this.isConnected&&t(this,L).call(this)}),t(this,V).subscribe(({current:e})=>{this.isConnected&&(e?d(this,o,Ot).call(this):d(this,o,Pt).call(this))}),t(this,I).subscribe(e=>{t(this,D).debounce=e.current,t(this,R).swipe=e.current,t(this,P).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?d(this,o,Ot).call(this):!e.current&&e.previous&&t(this,l).length&&d(this,o,Pt).call(this))}),t(this,B).subscribe(e=>{this.isConnected&&(t(this,L).call(this),e.current&&!e.previous&&!t(this,l).length?d(this,o,Ot).call(this):!e.current&&e.previous&&t(this,l).length&&d(this,o,Pt).call(this))}),t(this,T).subscribe(e=>{this.isConnected&&(t(this,L).call(this),d(this,o,lt).call(this))}),t(this,C).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,V).current=!0)),t(this,l).length&&(t(this,a).max=1/0,t(this,a).min=-1/0)):(h(this,zt,0),t(this,a).max=t(this,g),t(this,a).min=0)}),t(this,St).subscribe(e=>{t(this,a).damping=e.current}),t(this,pt).subscribe(e=>{t(this,a).mass=e.current}),t(this,ft).subscribe(e=>{t(this,a).stiffness=e.current}),t(this,k).subscribe(e=>{t(this,P).speed=e.current,!t(this,st)&&e.current&&!e.previous?t(this,P).connect():!e.current&&e.previous&&t(this,P).disconnect()}),t(this,Z).subscribe(e=>{e.current||(t(this,P).direction=1)}),t(this,q).subscribe(e=>{this.isConnected&&d(this,o,lt).call(this)}),t(this,J).subscribe(e=>{this.isConnected&&t(this,q).current&&d(this,o,lt).call(this)}),t(this,_).subscribe(e=>{this.isConnected&&t(this,q).current&&d(this,o,lt).call(this)}),t(this,a).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,b).subscribe(e=>{t(this,l).length&&d(this,o,lt).call(this)}),t(this,F).subscribe(e=>{t(this,F).isRunning.current&&t(this,a).set(e.current,{equalize:!0})}),t(this,yt).subscribe(e=>{e.current&&!e.previous?d(this,o,Jt).call(this):!e.current&&e.previous&&d(this,o,Qt).call(this)}),t(this,X).subscribe(e=>{e.current&&!e.previous?d(this,o,ie).call(this):!e.current&&e.previous&&d(this,o,re).call(this)}),t(this,at).observe(),t(this,x).observe(),t(this,M).observe(),t(this,O).observe(),t(this,V).observe(),t(this,I).observe(),t(this,G).observe(),t(this,j).observe(),t(this,B).observe(),t(this,K).observe(),t(this,dt).observe(),t(this,T).observe(),t(this,C).observe(),t(this,St).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,mt).observe(),t(this,wt).observe(),t(this,k).observe(),t(this,k).observe(),t(this,bt).observe(),t(this,Z).observe(),t(this,q).observe(),t(this,J).observe(),t(this,_).observe(),t(this,Q).observe(),t(this,gt).observe(),t(this,yt).observe(),t(this,X).observe(),t(this,X).current||d(this,o,re).call(this)}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("has-overflow"),t(this,at).unobserve(),t(this,x).unobserve(),t(this,M).unobserve(),t(this,O).unobserve(),t(this,V).unobserve(),t(this,I).unobserve(),t(this,G).unobserve(),t(this,j).unobserve(),t(this,B).unobserve(),t(this,K).unobserve(),t(this,dt).unobserve(),t(this,T).unobserve(),t(this,C).unobserve(),t(this,St).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,mt).unobserve(),t(this,wt).unobserve(),t(this,k).unobserve(),t(this,bt).unobserve(),t(this,Z).unobserve(),t(this,q).unobserve(),t(this,J).unobserve(),t(this,_).unobserve(),t(this,Q).unobserve(),t(this,gt).unobserve(),t(this,yt).unobserve(),t(this,X).unobserve(),d(this,o,ie).call(this)}}a=new WeakMap,at=new WeakMap,x=new WeakMap,M=new WeakMap,O=new WeakMap,V=new WeakMap,I=new WeakMap,G=new WeakMap,j=new WeakMap,B=new WeakMap,K=new WeakMap,dt=new WeakMap,T=new WeakMap,C=new WeakMap,St=new WeakMap,pt=new WeakMap,ft=new WeakMap,mt=new WeakMap,wt=new WeakMap,k=new WeakMap,bt=new WeakMap,Z=new WeakMap,q=new WeakMap,J=new WeakMap,_=new WeakMap,Q=new WeakMap,gt=new WeakMap,yt=new WeakMap,X=new WeakMap,Y=new WeakMap,S=new WeakMap,xt=new WeakMap,l=new WeakMap,_t=new WeakMap,Ht=new WeakMap,v=new WeakMap,g=new WeakMap,z=new WeakMap,D=new WeakMap,tt=new WeakMap,R=new WeakMap,P=new WeakMap,b=new WeakMap,zt=new WeakMap,et=new WeakMap,H=new WeakMap,st=new WeakMap,vt=new WeakMap,Lt=new WeakMap,it=new WeakMap,F=new WeakMap,Ft=new WeakMap,o=new WeakSet,Ot=function(){d(this,o,Pt).call(this),t(this,xt).assignedElements().forEach((e,i)=>{e instanceof HTMLElement&&t(this,l).push(new Oe(e,i,this))}),t(this,S).style.transform="",ee.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,L).call(this),d(this,o,lt).call(this)},Pt=function(){t(this,l).forEach(e=>{e.destroy()}),h(this,l,[]),t(this,b).reset(),t(this,a).reset(),ee.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},Jt=function(){t(this,st)||(h(this,st,!0),t(this,a).unsubscribe(t(this,kt)),t(this,a).unlistenAnimationFrame(),clearInterval(t(this,Lt)),clearInterval(t(this,it)),t(this,F).unlistenAnimationFrame(),t(this,D).disconnect(),t(this,tt).disconnect(),t(this,R).disconnect(),t(this,P).disconnect(),t(this,H)||this.sections.forEach(e=>{e.unsetTransform()}))},Qt=function(){t(this,st)&&(h(this,st,!1),t(this,a).subscribe(t(this,kt)),t(this,D).connect(),t(this,tt).connect(),t(this,R).connect(),t(this,k).current&&t(this,P).connect())},ie=function(){t(this,vt)||(h(this,vt,!0),Xt.windowResizer.unsubscribe(t(this,L)),Vt.elementResizer.unsubscribe(t(this,L)),d(this,o,Jt).call(this),t(this,S).style.transform="",t(this,l).length?d(this,o,Pt).call(this):(t(this,b).reset(),t(this,a).reset()),ct.scrollEntries.unregister(this))},re=function(){t(this,vt)&&(h(this,vt,!1),ct.scrollEntries.register(this),(t(this,C).current||t(this,V).current||t(this,C).current||t(this,B).current||t(this,I).current)&&d(this,o,Ot).call(this),d(this,o,Qt).call(this),Xt.windowResizer.subscribe(t(this,L),se.RESIZE_ORDER.SCROLL),Vt.elementResizer.subscribe(this,t(this,L)))},L=new WeakMap,kt=new WeakMap,be=function(e){t(this,C).current?(t(this,b).current=e%t(this,l).length,t(this,b).current=t(this,b).current<0?t(this,l).length+t(this,b).current:t(this,b).current):t(this,b).current=fe.clamp(e,0,this.limit)},It=new WeakMap,Wt=new WeakMap,ne=function(e=1){t(this,Z).current&&(t(this,P).direction=e),t(this,k).current&&t(this,P).pauseAndContinue(t(this,bt).current,this.sectionalCSSProperty.current)},he=function(e="current"){if(t(this,C).current&&t(this,l).length){const i=t(this,a)[e]%(t(this,g)+t(this,v)+t(this,z));return i<0?t(this,g)+i+t(this,v)+t(this,z):i}else return t(this,a)[e]},lt=function(){if(t(this,q).current&&t(this,l).length){const e=t(this,b).current+t(this,J).current;e===0?this.classList.add("start"):this.classList.remove("start"),e===this.limit?this.classList.add("end"):this.classList.remove("end");const i=t(this,T).current+t(this,_).current;t(this,l).forEach((n,c)=>{const m=e-this.limit-1+t(this,_).current,w=e+i,Ct=this.sections.length-w;c>=e&&c<w||c<=m?n.mark("current"):c>=w&&c<w+Ct/2||c<=m+i?n.mark("next"):n.mark("previous")})}},oe=function(e=this.targetScrollValue){let i=null,n=1/0;for(let c=0;c<t(this,l).length;c++){const m=Math.abs(t(this,l)[c].position-e);m<n&&(n=m,i=c)}return i!==null?t(this,l)[i]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Mt);var Ut;class le extends HTMLElement{constructor(){super(...arguments);s(this,Ut,null)}get scrollElement(){return t(this,Ut)}connectedCallback(){const e=me.findParentElement(this,Mt);e instanceof Mt?h(this,Ut,e):console.error(this,"e-scroll not found")}}Ut=new WeakMap;var rt,E,W,U,Tt,qt,nt,$t,Nt,Gt;class ge extends le{constructor(){super();s(this,rt,null);s(this,E,null);s(this,W,!1);s(this,U,0);s(this,Tt,0);s(this,qt,0);s(this,nt,()=>{h(this,W,this.offsetWidth>this.offsetHeight);const e=t(this,W)?this.offsetWidth:this.offsetHeight;h(this,U,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),h(this,U,Math.max(t(this,U),30)),t(this,W)?(t(this,E).style.width=t(this,U)+"px",t(this,E).style.height="100%"):(t(this,E).style.width="100%",t(this,E).style.height=t(this,U)+"px"),h(this,Tt,e-t(this,U)),this.scrollElement.scrollSize?this.style.display="":this.style.display="none"});s(this,$t,()=>{h(this,qt,this.scrollElement.currentProgress*t(this,Tt)),t(this,W)?t(this,E).style.transform=`translate3d(${t(this,qt)}px, 0px, 0px)`:t(this,E).style.transform=`translate3d(0px, ${t(this,qt)}px, 0px)`});s(this,Nt,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});s(this,Gt,e=>{document.documentElement.classList.add("grabbing"),Re.setupDrag(c=>{const m=t(this,W)?c.x:c.y,w=this.scrollElement.distance/t(this,Tt),Ct=(m-n)*w;this.scrollElement.setPosition(i+Ct)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.damped.target,n=t(this,W)?e.x:e.y});if(Yt.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets.push(pe.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':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:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})),h(this,rt,document.createElement("slot")),t(this,rt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,rt))}}get thumbElement(){return t(this,E)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,rt).assignedElements()[0]||t(this,rt).firstElementChild;h(this,E,e),t(this,E).addEventListener("pointerdown",t(this,Gt)),Xt.windowResizer.subscribe(t(this,nt),se.RESIZE_ORDER.SCROLL),Vt.elementResizer.subscribe(this,t(this,nt)),Vt.elementResizer.subscribe(this.scrollElement,t(this,nt)),this.scrollElement.onScroll(t(this,$t)),this.scrollElement.axisCSSProperty.subscribe(t(this,Nt))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,E).removeEventListener("pointerdown",t(this,Gt)),Xt.windowResizer.unsubscribe(t(this,nt)),Vt.elementResizer.unsubscribe(t(this,nt)),this.scrollElement.offScroll(t(this,$t)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,Nt))}}rt=new WeakMap,E=new WeakMap,W=new WeakMap,U=new WeakMap,Tt=new WeakMap,qt=new WeakMap,nt=new WeakMap,$t=new WeakMap,Nt=new WeakMap,Gt=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",ge);class ye extends le{constructor(){super(),Yt.isBrowser&&this.addEventListener("click",()=>{const r=this.getAttribute("behaviour"),e=this.getAttribute("easing")||void 0,i=e?parseFloat(this.getAttribute("duration")||"0"):void 0;this.handleClick({behaviour:r,tween:e?{easing:e,duration:i}:void 0})})}}class ve extends ye{handleClick(r){const e=this.getAttribute("index");this.scrollElement.scrollToSection(parseInt(e||"0"),r)}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",ve);class Ce extends ye{handleClick(r){const e=this.getAttribute("step");this.scrollElement.shiftSections(parseInt(e||"1"),r)}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",Ce);var $,ht,Dt,jt,Kt,Rt;class Be{constructor(r,e,i){s(this,$,null);s(this,ht,null);s(this,Dt,null);s(this,jt,null);s(this,Kt,()=>{t(this,ht).scrollToSection(t(this,Dt),{behaviour:t(this,jt)})});s(this,Rt,()=>{t(this,$).classList.toggle("current",t(this,ht).counter.current===t(this,Dt))});Yt.isBrowser&&(h(this,$,document.createElement("button")),h(this,ht,r),h(this,jt,i),h(this,Dt,e),t(this,$).addEventListener("click",t(this,Kt)),t(this,ht).counter.subscribe(t(this,Rt)),t(this,Rt).call(this))}get element(){return t(this,$)}destroy(){t(this,$).removeEventListener("click",t(this,Kt)),t(this,ht).counter.unsubscribe(t(this,Rt)),t(this,$).remove()}}$=new WeakMap,ht=new WeakMap,Dt=new WeakMap,jt=new WeakMap,Kt=new WeakMap,Rt=new WeakMap;var ot,At;class Pe extends le{constructor(){super(...arguments);s(this,ot,[]);s(this,At,Ae.debounce(()=>{t(this,ot).forEach(e=>e.destroy()),h(this,ot,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new Be(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),t(this,ot).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,At)),t(this,At).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,At)),t(this,ot).forEach(e=>e.destroy()),h(this,ot,[])}}ot=new WeakMap,At=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",Pe);class Ee extends Me.ScrollSegmentElement{connectedCallback(){const r=me.findParentElement(this,Mt);r instanceof Mt?(this.scrollContainer=r,this.scrollContainer.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries)):console.error(this,"e-scroll not found")}}customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",Ee);exports.ScrollBulletButtonsElement=Pe;exports.ScrollElement=Mt;exports.ScrollSegmentElement=Ee;exports.ScrollSetButtonElement=ve;exports.ScrollStepButtonElement=Ce;exports.ScrollbarElement=ge;
1
+ "use strict";var xe=Object.defineProperty;var ce=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var ae=u=>{throw TypeError(u)};var ue=(u,r,e)=>r in u?xe(u,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[r]=e,de=(u,r)=>{for(var e in r||(r={}))ze.call(r,e)&&ue(u,e,r[e]);if(ce)for(var e of ce(r))Le.call(r,e)&&ue(u,e,r[e]);return u};var te=(u,r,e)=>r.has(u)||ae("Cannot "+e);var t=(u,r,e)=>(te(u,r,"read from private field"),e?e.call(u):r.get(u)),s=(u,r,e)=>r.has(u)?ae("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(u):r.set(u,e),h=(u,r,e,i)=>(te(u,r,"write to private field"),i?i.call(u,e):r.set(u,e),e),d=(u,r,e)=>(te(u,r,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("../../Store-CDb6RMce.cjs"),Yt=require("../../browser-CpzFX2xg.cjs"),Ie=require("../../easings-GegIwET5.cjs"),ee=require("../../events-KVanG9sR.cjs"),pe=require("../../jss-GJLvaNfT.cjs"),Et=require("../../layout-8ryRAMGJ.cjs"),fe=require("../../math-GDWEqu7y.cjs");require("../../ticker/vanilla/index.cjs");const se=require("../../order/index.cjs"),Te=require("../../Damped-CTsV8tl_.cjs"),qe=require("../../Tweened-C0-UzxN-.cjs"),Zt=require("../../controls/index.cjs"),Xt=require("../../window-resizer/vanilla/index.cjs"),ct=require("../../scroll-entries/index.cjs"),Se=require("../../css-unit-parser/index.cjs"),p=require("../../css-property/index.cjs"),De=require("../../device/index.cjs"),Bt=require("../../element-resizer/vanilla/index.cjs"),Re=require("../../gestures-DHLrn6Q8.cjs"),me=require("../../dom-JBOkFLTh.cjs"),Ae=require("../../function-MthRj-GJ.cjs"),Me=require("../../scroll-segment/index.cjs");var f,_t,y,ut,A,N;class Oe{constructor(r,e,i){s(this,f);s(this,_t);s(this,y);s(this,ut,0);s(this,A,0);s(this,N,null);h(this,f,r),h(this,_t,e),h(this,y,i),ct.scrollEntries.register(t(this,f))}get index(){return t(this,_t)}get size(){return t(this,ut)}get position(){return t(this,A)}destroy(){ct.scrollEntries.unregister(t(this,f)),this.unsetTransform()}unsetTransform(){t(this,f).style.transform="",this.mark(null)}setSize(r){r?(t(this,f).style.setProperty("--size",r+"px"),t(this,y).axisCSSProperty.current==="x"?(t(this,f).style.width=r+"px",t(this,f).style.height=""):(t(this,f).style.height=r+"px",t(this,f).style.width="")):(t(this,f).style.width="",t(this,f).style.height="",t(this,f).style.removeProperty("--size"))}resize(){h(this,ut,t(this,y).vertical?t(this,f).offsetHeight:t(this,f).offsetWidth),h(this,A,t(this,y).vertical?Et.getCumulativeOffsetTop(t(this,f)):Et.getCumulativeOffsetLeft(t(this,f))),h(this,A,t(this,A)-t(this,y).contentPosition)}transform(){let r=0;const e=t(this,y).viewportSize*t(this,y).sectionDistanceScaleCSSProperty.current;t(this,y).loopCSSProperty.current&&t(this,y).overscroll&&t(this,A)+t(this,ut)<t(this,y).currentScrollValue&&(r=t(this,y).distance*-1-t(this,y).gap),ct.scrollEntries.update(t(this,f),t(this,y).axisCSSProperty.current,r);const i=t(this,y).currentScrollValue+r,n=t(this,A)-t(this,y).viewportSize-e,c=t(this,A)+t(this,ut)+e,m=fe.clamp(i,n,c);t(this,y).vertical?t(this,f).style.transform=`translate3d(0px, ${m*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${m*-1}px, 0px, 0px)`}mark(r){t(this,N)!==r&&(t(this,N)&&t(this,f).classList.remove(t(this,N)),r&&t(this,f).classList.add(r),h(this,N,r),ee.dispatchEvent(t(this,f),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,N)},custom:!0}))}}f=new WeakMap,_t=new WeakMap,y=new WeakMap,ut=new WeakMap,A=new WeakMap,N=new WeakMap;const Ve=pe.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-wrapper":{width:"100%",height:"100%",overflow:"var(--overflow, initial)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var a,at,x,M,O,V,I,G,j,B,K,dt,T,C,St,pt,ft,mt,wt,k,bt,Z,q,J,_,Q,gt,yt,X,Y,S,xt,l,Ht,Ft,v,g,z,D,tt,R,P,b,zt,et,H,st,vt,Lt,it,F,Wt,o,Vt,Pt,Jt,Qt,ie,re,L,kt,be,It,Ut,ne,he,lt,oe;class Ot extends HTMLElement{constructor(){super();s(this,o);s(this,a,null);s(this,at,new p.CSSProperty(this,"--controls",!0));s(this,x,new p.CSSProperty(this,"--axis","y"));s(this,M,new p.CSSProperty(this,"--direction",0));s(this,O,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));s(this,V,new p.CSSProperty(this,"--split",!1));s(this,I,new p.CSSProperty(this,"--sectional",!1));s(this,G,new p.CSSProperty(this,"--easing",!1));s(this,j,new p.CSSProperty(this,"--duration",!1));s(this,B,new p.CSSProperty(this,"--auto-size",!1));s(this,K,new p.CSSProperty(this,"--wheel-max-delta",!1));s(this,dt,new p.CSSProperty(this,"--drag-inertion",1));s(this,T,new p.CSSProperty(this,"--sections-in-view",1));s(this,C,new p.CSSProperty(this,"--loop",!1));s(this,St,new p.CSSProperty(this,"--damping",20));s(this,pt,new p.CSSProperty(this,"--mass",0));s(this,ft,new p.CSSProperty(this,"--stiffness",0));s(this,mt,new p.CSSProperty(this,"--mouse-drag",!1));s(this,wt,new p.CSSProperty(this,"--section-distance-scale",.5));s(this,k,new p.CSSProperty(this,"--autoplay",0));s(this,bt,new p.CSSProperty(this,"--autoplay-pause-duration",0));s(this,Z,new p.CSSProperty(this,"--autoplay-user-direction",!1));s(this,q,new p.CSSProperty(this,"--classes",!1));s(this,J,new p.CSSProperty(this,"--current-index-start-offset",0));s(this,_,new p.CSSProperty(this,"--current-index-end-offset",0));s(this,Q,new p.CSSProperty(this,"--focus-delay",0));s(this,gt,new p.CSSProperty(this,"--focus-duration",3e3));s(this,yt,new p.CSSProperty(this,"--disabled",!1));s(this,X,new p.CSSProperty(this,"--hibernated",!1));s(this,Y,null);s(this,S,null);s(this,xt,null);s(this,l,[]);s(this,Ht,0);s(this,Ft,0);s(this,v,0);s(this,g,0);s(this,z,0);s(this,D,null);s(this,tt,null);s(this,R,null);s(this,P,null);s(this,b,new ke.Store(0));s(this,zt,0);s(this,et,0);s(this,H,!1);s(this,st,!0);s(this,vt,!0);s(this,Lt);s(this,it);s(this,F,new qe.Tweened);s(this,Wt,!1);s(this,L,()=>{t(this,a).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,g)||0,i=t(this,b).current;if(h(this,Ht,this.vertical?Et.getCumulativeOffsetTop(this):Et.getCumulativeOffsetLeft(this)),h(this,Ft,this.vertical?Et.getCumulativeOffsetTop(t(this,S)):Et.getCumulativeOffsetLeft(t(this,S))),h(this,v,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?h(this,z,Se.cssUnitParser.parse(getComputedStyle(t(this,S)).rowGap)):h(this,z,Se.cssUnitParser.parse(getComputedStyle(t(this,S)).columnGap)),t(this,B).current&&t(this,l).length){const n=t(this,T).current,c=(t(this,v)-t(this,z)*(n-1))/n;t(this,l).forEach(m=>{m.setSize(c)})}else t(this,l).forEach(n=>{n.setSize()});if(t(this,l).forEach(n=>{n.resize()}),t(this,O).current){h(this,g,t(this,v)*t(this,O).current);const n=t(this,g)+t(this,v);this.vertical?(t(this,S).style.width=n+"px",t(this,S).style.height="100%"):(t(this,S).style.height=n+"px",t(this,S).style.width="100%")}else this.vertical?(t(this,S).style.width="100%",t(this,S).style.height="max-content",h(this,g,t(this,S).offsetHeight-t(this,v))):(t(this,S).style.width="max-content",t(this,S).style.height="100%",h(this,g,t(this,S).offsetWidth-t(this,v)));if(!t(this,C).current){const n=getComputedStyle(this),c=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);h(this,g,t(this,g)+c),t(this,a).max=t(this,g)}if(t(this,C).current&&t(this,l).length){const n=t(this,l)[t(this,l).length-1],c=n.position+n.size-t(this,v),m=t(this,g)-c;h(this,et,n.position+n.size+m)}else h(this,et,t(this,g));if(t(this,I).current&&t(this,l).length){const n=t(this,l)[i];t(this,a).set(n.position,{equalize:!0})}else t(this,a).set(e*t(this,g),{equalize:!0});h(this,H,(this.vertical?t(this,S).offsetHeight:t(this,S).offsetWidth)>t(this,v)),this.classList.toggle("has-overflow",t(this,H)),t(this,H)?d(this,o,Qt).call(this):d(this,o,Jt).call(this),t(this,kt).call(this)});s(this,kt,()=>{if(!t(this,H))return;const e=this.currentScrollValue;if(h(this,zt,Math.max(0,e-t(this,g))),t(this,l).length){let i=0;for(let n=0;n<t(this,l).length;n++){const c=t(this,l)[n];c.transform(),this.targetScrollValue+c.size/2>=c.position&&(i=n)}t(this,b).current=i}else this.vertical?t(this,S).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,S).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;ct.scrollEntries.update(this,t(this,x).current,e)});s(this,It,(e,i)=>{t(this,at).current&&(d(this,o,ne).call(this,Math.sign(i)||1),t(this,Ut).call(this,e,i))});s(this,Ut,(e,i)=>{if(t(this,M).current){if(t(this,M).current<0&&i>0)return;if(t(this,M).current>0&&i<0)return}if(t(this,it)||t(this,F).unlistenAnimationFrame(),!t(this,k).current&&t(this,Q).current&&(clearInterval(t(this,Lt)),h(this,Lt,setTimeout(()=>{const n=d(this,o,oe).call(this);n&&this.scrollToSection(n.index,{tween:{duration:t(this,gt).current,easing:Ie.easeInOutExpo}})},t(this,Q).current))),!(e.includes("drag")&&!De.device.isMobile&&!t(this,mt).current)){if(t(this,I).current&&e!=="drag"){const n=Math.sign(i);if(t(this,l).length){const c={tween:t(this,G).current||t(this,j).current?{easing:t(this,G).current||"easeInOutCubic",duration:t(this,j).current||500}:void 0};t(this,Wt)?this.scrollToSection(t(this,b).current,c):this.shiftSections(n,c)}else t(this,a).shift(n*t(this,v))}else t(this,a).shift(i);h(this,Wt,e==="drag")}});if(Yt.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets.push(Ve);const i=document.createElement("div");i.className="static",i.innerHTML='<slot name="static"></slot>',e.appendChild(i),h(this,Y,document.createElement("div")),t(this,Y).className="content-wrapper",h(this,S,document.createElement("div")),t(this,S).className="content",h(this,xt,document.createElement("slot")),t(this,S).appendChild(t(this,xt)),t(this,Y).appendChild(t(this,S)),e.appendChild(t(this,Y))}}get damped(){return t(this,a)}get controlsCSSProperty(){return t(this,at)}get axisCSSProperty(){return t(this,x)}get directionCSSProperty(){return t(this,M)}get pagesCSSProperty(){return t(this,O)}get splitCSSProperty(){return t(this,V)}get sectionalCSSProperty(){return t(this,I)}get easingCSSProperty(){return t(this,G)}get durationCSSProperty(){return t(this,j)}get autoSizeCSSProperty(){return t(this,B)}get wheelMaxDeltaCSSProperty(){return t(this,K)}get dragInertionCSSProperty(){return t(this,dt)}get sectionsInViewCSSProperty(){return t(this,T)}get loopCSSProperty(){return t(this,C)}get dampingCSSProperty(){return t(this,St)}get massCSSProperty(){return t(this,pt)}get stiffnessCSSProperty(){return t(this,ft)}get mouseDragCSSProperty(){return t(this,mt)}get sectionDistanceScaleCSSProperty(){return t(this,wt)}get autoplayCSSProperty(){return t(this,k)}get autoplayPauseDurationCSSProperty(){return t(this,bt)}get autoplayUserDirectionCSSProperty(){return t(this,Z)}get classesCSSProperty(){return t(this,q)}get currentIndexStartOffsetCSSProperty(){return t(this,J)}get currentIndexEndOffsetCSSProperty(){return t(this,_)}get focusDelayCSSProperty(){return t(this,Q)}get focusDurationCSSProperty(){return t(this,gt)}get disabledCSSProperty(){return t(this,yt)}get hibernatedCSSProperty(){return t(this,X)}get currentScrollValue(){return d(this,o,he).call(this,"current")}get targetScrollValue(){return d(this,o,he).call(this,"target")}get contentWrapperElement(){return t(this,Y)}get contentElement(){return t(this,S)}get sections(){return t(this,l)}get position(){return t(this,Ht)}get contentPosition(){return t(this,Ft)}get viewportSize(){return t(this,v)}get scrollSize(){return t(this,g)}get gap(){return t(this,z)}get counter(){return t(this,b)}get limit(){return Math.ceil(t(this,l).length-t(this,T).current)}get distance(){return t(this,et)}get loopDistance(){return t(this,C).current?t(this,et)+t(this,z):t(this,et)}get hasOverflow(){return t(this,H)}get overscroll(){return t(this,zt)}get vertical(){return t(this,x).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,x).current==="y"?0:t(this,a).distance}get scrollHeight(){return t(this,x).current==="x"?0:t(this,a).distance}onScroll(...e){return t(this,a).subscribe(...e)}offScroll(...e){t(this,a).unsubscribe(...e)}range(e,i,n=0){const c=e-n,m=c+i+n*2;return this.currentProgress<c?0:this.currentProgress>m?1:(this.currentProgress-c)/(m-c)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const c=e-n,m=c+i+n*2;return this.currentProgress>=c&&this.currentProgress<=m}scrollToSection(e,i){if(!t(this,l).length)return;const n=t(this,b).current;d(this,o,be).call(this,e);const c=t(this,l)[n],m=t(this,l)[t(this,b).current];if(c&&m){let w=0;const Ct=d(this,o,oe).call(this),we=Ct?this.targetScrollValue-Ct.position:0;t(this,C).current?t(this,b).current===0&&n===t(this,l).length-1?w=t(this,g)+t(this,v)-c.position+t(this,z):t(this,b).current===t(this,l).length-1&&n===0?w=m.position-(t(this,g)+t(this,v)+t(this,z)):w=m.position-c.position:w=m.position-c.position,this.shiftPosition(w-we,i)}}shiftSections(e,i){t(this,l).length&&this.scrollToSection(t(this,b).current+e,i)}setPosition(e,i){d(this,o,ne).call(this,Math.sign(e)||1),i!=null&&i.tween?t(this,it)||(t(this,F).set(t(this,a).current,{equalize:!0}),t(this,F).set(e,de({},i.tween)),h(this,it,setTimeout(()=>{h(this,it,void 0)},i.tween.duration))):t(this,a).set(e,{equalize:(i==null?void 0:i.behaviour)==="instant"})}shiftPosition(e,i){this.setPosition(t(this,a).target+e,i)}connectedCallback(){ct.scrollEntries.register(this),h(this,a,new Te.Damped(0,{damping:.01,min:0,order:se.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),h(this,D,new Zt.WheelControls({element:t(this,S)})),t(this,D).changeEvent.subscribe(t(this,It)),h(this,tt,new Zt.KeyboardControls({element:this})),t(this,tt).changeEvent.subscribe(t(this,It)),h(this,R,new Zt.DragControls({element:t(this,S)})),t(this,R).changeEvent.subscribe(t(this,It)),h(this,P,new Zt.AutoplayControls({culling:this})),t(this,P).changeEvent.subscribe(t(this,Ut)),t(this,x).subscribe(({current:e})=>{t(this,S).style.flexDirection=e==="x"?"row":"column",t(this,D).axis=t(this,K).current?"max":e,t(this,tt).dimension=e==="x"?"width":"height",t(this,R).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,L).call(this)}),t(this,K).subscribe(e=>{t(this,D).axis=e.current?"max":t(this,x).current}),t(this,dt).subscribe(e=>{t(this,R).inertion=typeof e.current=="number"?e.current:1}),t(this,O).subscribe(()=>{this.isConnected&&t(this,L).call(this)}),t(this,V).subscribe(({current:e})=>{this.isConnected&&(e?d(this,o,Vt).call(this):d(this,o,Pt).call(this))}),t(this,I).subscribe(e=>{t(this,D).debounce=e.current,t(this,R).swipe=e.current,t(this,P).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?d(this,o,Vt).call(this):!e.current&&e.previous&&t(this,l).length&&d(this,o,Pt).call(this))}),t(this,B).subscribe(e=>{this.isConnected&&(t(this,L).call(this),e.current&&!e.previous&&!t(this,l).length?d(this,o,Vt).call(this):!e.current&&e.previous&&t(this,l).length&&d(this,o,Pt).call(this))}),t(this,T).subscribe(e=>{this.isConnected&&(t(this,L).call(this),d(this,o,lt).call(this))}),t(this,C).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,V).current=!0)),t(this,l).length&&(t(this,a).max=1/0,t(this,a).min=-1/0)):(h(this,zt,0),t(this,a).max=t(this,g),t(this,a).min=0)}),t(this,St).subscribe(e=>{t(this,a).damping=e.current}),t(this,pt).subscribe(e=>{t(this,a).mass=e.current}),t(this,ft).subscribe(e=>{t(this,a).stiffness=e.current}),t(this,k).subscribe(e=>{t(this,P).speed=e.current,!t(this,st)&&e.current&&!e.previous?t(this,P).connect():!e.current&&e.previous&&t(this,P).disconnect()}),t(this,Z).subscribe(e=>{e.current||(t(this,P).direction=1)}),t(this,q).subscribe(e=>{this.isConnected&&d(this,o,lt).call(this)}),t(this,J).subscribe(e=>{this.isConnected&&t(this,q).current&&d(this,o,lt).call(this)}),t(this,_).subscribe(e=>{this.isConnected&&t(this,q).current&&d(this,o,lt).call(this)}),t(this,a).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,b).subscribe(e=>{t(this,l).length&&d(this,o,lt).call(this)}),t(this,F).subscribe(e=>{t(this,F).isRunning.current&&t(this,a).set(e.current,{equalize:!0})}),t(this,yt).subscribe(e=>{e.current&&!e.previous?d(this,o,Jt).call(this):!e.current&&e.previous&&d(this,o,Qt).call(this)}),t(this,X).subscribe(e=>{e.current&&!e.previous?d(this,o,ie).call(this):!e.current&&e.previous&&d(this,o,re).call(this)}),t(this,at).observe(),t(this,x).observe(),t(this,M).observe(),t(this,O).observe(),t(this,V).observe(),t(this,I).observe(),t(this,G).observe(),t(this,j).observe(),t(this,B).observe(),t(this,K).observe(),t(this,dt).observe(),t(this,T).observe(),t(this,C).observe(),t(this,St).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,mt).observe(),t(this,wt).observe(),t(this,k).observe(),t(this,k).observe(),t(this,bt).observe(),t(this,Z).observe(),t(this,q).observe(),t(this,J).observe(),t(this,_).observe(),t(this,Q).observe(),t(this,gt).observe(),t(this,yt).observe(),t(this,X).observe(),t(this,X).current||d(this,o,re).call(this)}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("has-overflow"),t(this,at).unobserve(),t(this,x).unobserve(),t(this,M).unobserve(),t(this,O).unobserve(),t(this,V).unobserve(),t(this,I).unobserve(),t(this,G).unobserve(),t(this,j).unobserve(),t(this,B).unobserve(),t(this,K).unobserve(),t(this,dt).unobserve(),t(this,T).unobserve(),t(this,C).unobserve(),t(this,St).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,mt).unobserve(),t(this,wt).unobserve(),t(this,k).unobserve(),t(this,bt).unobserve(),t(this,Z).unobserve(),t(this,q).unobserve(),t(this,J).unobserve(),t(this,_).unobserve(),t(this,Q).unobserve(),t(this,gt).unobserve(),t(this,yt).unobserve(),t(this,X).unobserve(),d(this,o,ie).call(this)}}a=new WeakMap,at=new WeakMap,x=new WeakMap,M=new WeakMap,O=new WeakMap,V=new WeakMap,I=new WeakMap,G=new WeakMap,j=new WeakMap,B=new WeakMap,K=new WeakMap,dt=new WeakMap,T=new WeakMap,C=new WeakMap,St=new WeakMap,pt=new WeakMap,ft=new WeakMap,mt=new WeakMap,wt=new WeakMap,k=new WeakMap,bt=new WeakMap,Z=new WeakMap,q=new WeakMap,J=new WeakMap,_=new WeakMap,Q=new WeakMap,gt=new WeakMap,yt=new WeakMap,X=new WeakMap,Y=new WeakMap,S=new WeakMap,xt=new WeakMap,l=new WeakMap,Ht=new WeakMap,Ft=new WeakMap,v=new WeakMap,g=new WeakMap,z=new WeakMap,D=new WeakMap,tt=new WeakMap,R=new WeakMap,P=new WeakMap,b=new WeakMap,zt=new WeakMap,et=new WeakMap,H=new WeakMap,st=new WeakMap,vt=new WeakMap,Lt=new WeakMap,it=new WeakMap,F=new WeakMap,Wt=new WeakMap,o=new WeakSet,Vt=function(){d(this,o,Pt).call(this),t(this,xt).assignedElements().forEach((e,i)=>{e instanceof HTMLElement&&t(this,l).push(new Oe(e,i,this))}),t(this,S).style.transform="",ee.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,L).call(this),d(this,o,lt).call(this)},Pt=function(){t(this,l).forEach(e=>{e.destroy()}),h(this,l,[]),t(this,b).reset(),t(this,a).reset(),ee.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},Jt=function(){t(this,st)||(h(this,st,!0),t(this,a).unsubscribe(t(this,kt)),t(this,a).unlistenAnimationFrame(),clearInterval(t(this,Lt)),clearInterval(t(this,it)),t(this,F).unlistenAnimationFrame(),t(this,D).disconnect(),t(this,tt).disconnect(),t(this,R).disconnect(),t(this,P).disconnect(),t(this,H)||this.sections.forEach(e=>{e.unsetTransform()}))},Qt=function(){t(this,st)&&(h(this,st,!1),t(this,a).subscribe(t(this,kt)),t(this,D).connect(),t(this,tt).connect(),t(this,R).connect(),t(this,k).current&&t(this,P).connect())},ie=function(){t(this,vt)||(h(this,vt,!0),Xt.windowResizer.unsubscribe(t(this,L)),Bt.elementResizer.unsubscribe(t(this,L)),d(this,o,Jt).call(this),t(this,S).style.transform="",t(this,l).length?d(this,o,Pt).call(this):(t(this,b).reset(),t(this,a).reset()),ct.scrollEntries.unregister(this))},re=function(){t(this,vt)&&(h(this,vt,!1),ct.scrollEntries.register(this),(t(this,C).current||t(this,V).current||t(this,C).current||t(this,B).current||t(this,I).current)&&d(this,o,Vt).call(this),d(this,o,Qt).call(this),Xt.windowResizer.subscribe(t(this,L),se.RESIZE_ORDER.SCROLL),Bt.elementResizer.subscribe(this,t(this,L)))},L=new WeakMap,kt=new WeakMap,be=function(e){t(this,C).current?(t(this,b).current=e%t(this,l).length,t(this,b).current=t(this,b).current<0?t(this,l).length+t(this,b).current:t(this,b).current):t(this,b).current=fe.clamp(e,0,this.limit)},It=new WeakMap,Ut=new WeakMap,ne=function(e=1){t(this,Z).current&&(t(this,P).direction=e),t(this,k).current&&t(this,P).pauseAndContinue(t(this,bt).current,this.sectionalCSSProperty.current)},he=function(e="current"){if(t(this,C).current&&t(this,l).length){const i=t(this,a)[e]%(t(this,g)+t(this,v)+t(this,z));return i<0?t(this,g)+i+t(this,v)+t(this,z):i}else return t(this,a)[e]},lt=function(){if(t(this,q).current&&t(this,l).length){const e=t(this,b).current+t(this,J).current;e===0?this.classList.add("start"):this.classList.remove("start"),e===this.limit?this.classList.add("end"):this.classList.remove("end");const i=t(this,T).current+t(this,_).current;t(this,l).forEach((n,c)=>{const m=e-this.limit-1+t(this,_).current,w=e+i,Ct=this.sections.length-w;c>=e&&c<w||c<=m?n.mark("current"):c>=w&&c<w+Ct/2||c<=m+i?n.mark("next"):n.mark("previous")})}},oe=function(e=this.targetScrollValue){let i=null,n=1/0;for(let c=0;c<t(this,l).length;c++){const m=Math.abs(t(this,l)[c].position-e);m<n&&(n=m,i=c)}return i!==null?t(this,l)[i]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Ot);var $t;class le extends HTMLElement{constructor(){super(...arguments);s(this,$t,null)}get scrollElement(){return t(this,$t)}connectedCallback(){const e=me.findParentElement(this,Ot);e instanceof Ot?h(this,$t,e):console.error(this,"e-scroll not found")}}$t=new WeakMap;var rt,E,W,U,Tt,qt,nt,Dt,Nt,Gt;class ge extends le{constructor(){super();s(this,rt,null);s(this,E,null);s(this,W,!1);s(this,U,0);s(this,Tt,0);s(this,qt,0);s(this,nt,()=>{h(this,W,this.offsetWidth>this.offsetHeight);const e=t(this,W)?this.offsetWidth:this.offsetHeight;h(this,U,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),h(this,U,Math.max(t(this,U),30)),t(this,W)?(t(this,E).style.width=t(this,U)+"px",t(this,E).style.height="100%"):(t(this,E).style.width="100%",t(this,E).style.height=t(this,U)+"px"),h(this,Tt,e-t(this,U)),this.scrollElement.scrollSize?this.style.display="":this.style.display="none",t(this,Dt).call(this)});s(this,Dt,()=>{h(this,qt,this.scrollElement.currentProgress*t(this,Tt)),t(this,W)?t(this,E).style.transform=`translate3d(${t(this,qt)}px, 0px, 0px)`:t(this,E).style.transform=`translate3d(0px, ${t(this,qt)}px, 0px)`});s(this,Nt,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});s(this,Gt,e=>{document.documentElement.classList.add("grabbing"),Re.setupDrag(c=>{const m=t(this,W)?c.x:c.y,w=this.scrollElement.distance/t(this,Tt),Ct=(m-n)*w;this.scrollElement.setPosition(i+Ct)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.damped.target,n=t(this,W)?e.x:e.y});if(Yt.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets.push(pe.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':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:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})),h(this,rt,document.createElement("slot")),t(this,rt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,rt))}}get thumbElement(){return t(this,E)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,rt).assignedElements()[0]||t(this,rt).firstElementChild;h(this,E,e),t(this,E).addEventListener("pointerdown",t(this,Gt)),Xt.windowResizer.subscribe(t(this,nt),se.RESIZE_ORDER.SCROLL),Bt.elementResizer.subscribe(this,t(this,nt)),Bt.elementResizer.subscribe(this.scrollElement,t(this,nt)),this.scrollElement.onScroll(t(this,Dt)),this.scrollElement.axisCSSProperty.subscribe(t(this,Nt))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,E).removeEventListener("pointerdown",t(this,Gt)),Xt.windowResizer.unsubscribe(t(this,nt)),Bt.elementResizer.unsubscribe(t(this,nt)),this.scrollElement.offScroll(t(this,Dt)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,Nt))}}rt=new WeakMap,E=new WeakMap,W=new WeakMap,U=new WeakMap,Tt=new WeakMap,qt=new WeakMap,nt=new WeakMap,Dt=new WeakMap,Nt=new WeakMap,Gt=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",ge);class ye extends le{constructor(){super(),Yt.isBrowser&&this.addEventListener("click",()=>{const r=this.getAttribute("behaviour"),e=this.getAttribute("easing")||void 0,i=e?parseFloat(this.getAttribute("duration")||"0"):void 0;this.handleClick({behaviour:r,tween:e?{easing:e,duration:i}:void 0})})}}class ve extends ye{handleClick(r){const e=this.getAttribute("index");this.scrollElement.scrollToSection(parseInt(e||"0"),r)}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",ve);class Ce extends ye{handleClick(r){const e=this.getAttribute("step");this.scrollElement.shiftSections(parseInt(e||"1"),r)}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",Ce);var $,ht,Rt,jt,Kt,At;class Be{constructor(r,e,i){s(this,$,null);s(this,ht,null);s(this,Rt,null);s(this,jt,null);s(this,Kt,()=>{t(this,ht).scrollToSection(t(this,Rt),{behaviour:t(this,jt)})});s(this,At,()=>{t(this,$).classList.toggle("current",t(this,ht).counter.current===t(this,Rt))});Yt.isBrowser&&(h(this,$,document.createElement("button")),h(this,ht,r),h(this,jt,i),h(this,Rt,e),t(this,$).addEventListener("click",t(this,Kt)),t(this,ht).counter.subscribe(t(this,At)),t(this,At).call(this))}get element(){return t(this,$)}destroy(){t(this,$).removeEventListener("click",t(this,Kt)),t(this,ht).counter.unsubscribe(t(this,At)),t(this,$).remove()}}$=new WeakMap,ht=new WeakMap,Rt=new WeakMap,jt=new WeakMap,Kt=new WeakMap,At=new WeakMap;var ot,Mt;class Pe extends le{constructor(){super(...arguments);s(this,ot,[]);s(this,Mt,Ae.debounce(()=>{t(this,ot).forEach(e=>e.destroy()),h(this,ot,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new Be(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),t(this,ot).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,Mt)),t(this,Mt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,Mt)),t(this,ot).forEach(e=>e.destroy()),h(this,ot,[])}}ot=new WeakMap,Mt=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",Pe);class Ee extends Me.ScrollSegmentElement{connectedCallback(){const r=me.findParentElement(this,Ot);r instanceof Ot?(this.scrollContainer=r,this.scrollContainer.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries)):console.error(this,"e-scroll not found")}}customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",Ee);exports.ScrollBulletButtonsElement=Pe;exports.ScrollElement=Ot;exports.ScrollSegmentElement=Ee;exports.ScrollSetButtonElement=ve;exports.ScrollStepButtonElement=Ce;exports.ScrollbarElement=ge;
@@ -31,24 +31,24 @@ import { scrollEntries as ct } from "../../scroll-entries/index.js";
31
31
  import { cssUnitParser as de } from "../../css-unit-parser/index.js";
32
32
  import { CSSProperty as f } from "../../css-property/index.js";
33
33
  import { device as Te } from "../../device/index.js";
34
- import { elementResizer as Ot } from "../../element-resizer/vanilla/index.js";
34
+ import { elementResizer as Rt } from "../../element-resizer/vanilla/index.js";
35
35
  import { s as Me } from "../../gestures-D2Fdra_G.js";
36
36
  import { f as be } from "../../dom-0S_WDL4g.js";
37
37
  import { d as Ve } from "../../function-C10DGppn.js";
38
38
  import { ScrollSegmentElement as Oe } from "../../scroll-segment/index.js";
39
- var m, Ht, v, at, V, G;
39
+ var m, Bt, v, at, V, G;
40
40
  class Re {
41
41
  constructor(r, e, i) {
42
42
  s(this, m);
43
- s(this, Ht);
43
+ s(this, Bt);
44
44
  s(this, v);
45
45
  s(this, at, 0);
46
46
  s(this, V, 0);
47
47
  s(this, G, null);
48
- h(this, m, r), h(this, Ht, e), h(this, v, i), ct.register(t(this, m));
48
+ h(this, m, r), h(this, Bt, e), h(this, v, i), ct.register(t(this, m));
49
49
  }
50
50
  get index() {
51
- return t(this, Ht);
51
+ return t(this, Bt);
52
52
  }
53
53
  get size() {
54
54
  return t(this, at);
@@ -89,7 +89,7 @@ class Re {
89
89
  }));
90
90
  }
91
91
  }
92
- m = new WeakMap(), Ht = new WeakMap(), v = new WeakMap(), at = new WeakMap(), V = new WeakMap(), G = new WeakMap();
92
+ m = new WeakMap(), Bt = new WeakMap(), v = new WeakMap(), at = new WeakMap(), V = new WeakMap(), G = new WeakMap();
93
93
  const He = pe({
94
94
  ":host": {
95
95
  position: "relative",
@@ -128,8 +128,8 @@ const He = pe({
128
128
  flexShrink: "0"
129
129
  }
130
130
  });
131
- var u, ut, P, O, R, H, I, K, _, B, Z, dt, D, C, pt, ft, mt, bt, wt, k, gt, j, A, J, F, Q, St, vt, X, Y, p, xt, l, Bt, Ft, y, S, L, T, tt, M, E, g, Pt, et, W, st, yt, Lt, it, $, Wt, o, Vt, Et, Zt, jt, se, ie, z, zt, ge, kt, $t, re, ne, lt, he;
132
- class Rt extends HTMLElement {
131
+ var u, ut, P, O, R, H, I, K, _, B, Z, dt, D, C, pt, ft, mt, bt, wt, k, gt, j, A, J, F, Q, St, vt, X, Y, p, xt, l, Ft, Wt, y, S, L, T, tt, M, E, g, Pt, et, W, st, yt, Lt, it, $, $t, o, Ot, Et, Zt, jt, se, ie, z, zt, ge, kt, qt, re, ne, lt, he;
132
+ class Ht extends HTMLElement {
133
133
  constructor() {
134
134
  super();
135
135
  s(this, o);
@@ -208,8 +208,8 @@ class Rt extends HTMLElement {
208
208
  s(this, p, null);
209
209
  s(this, xt, null);
210
210
  s(this, l, []);
211
- s(this, Bt, 0);
212
211
  s(this, Ft, 0);
212
+ s(this, Wt, 0);
213
213
  s(this, y, 0);
214
214
  s(this, S, 0);
215
215
  s(this, L, 0);
@@ -226,11 +226,11 @@ class Rt extends HTMLElement {
226
226
  s(this, Lt);
227
227
  s(this, it);
228
228
  s(this, $, new ze());
229
- s(this, Wt, !1);
229
+ s(this, $t, !1);
230
230
  s(this, z, () => {
231
231
  t(this, u).unlistenAnimationFrame();
232
232
  const e = this.currentScrollValue / t(this, S) || 0, i = t(this, g).current;
233
- if (h(this, Bt, this.vertical ? te(this) : ee(this)), h(this, Ft, this.vertical ? te(t(this, p)) : ee(t(this, p))), h(this, y, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? h(this, L, de.parse(
233
+ if (h(this, Ft, this.vertical ? te(this) : ee(this)), h(this, Wt, this.vertical ? te(t(this, p)) : ee(t(this, p))), h(this, y, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? h(this, L, de.parse(
234
234
  getComputedStyle(t(this, p)).rowGap
235
235
  )) : h(this, L, de.parse(
236
236
  getComputedStyle(t(this, p)).columnGap
@@ -291,9 +291,9 @@ class Rt extends HTMLElement {
291
291
  );
292
292
  });
293
293
  s(this, kt, (e, i) => {
294
- t(this, ut).current && (d(this, o, re).call(this, Math.sign(i) || 1), t(this, $t).call(this, e, i));
294
+ t(this, ut).current && (d(this, o, re).call(this, Math.sign(i) || 1), t(this, qt).call(this, e, i));
295
295
  });
296
- s(this, $t, (e, i) => {
296
+ s(this, qt, (e, i) => {
297
297
  if (t(this, O).current) {
298
298
  if (t(this, O).current < 0 && i > 0)
299
299
  return;
@@ -318,12 +318,12 @@ class Rt extends HTMLElement {
318
318
  duration: t(this, _).current || 500
319
319
  } : void 0
320
320
  };
321
- t(this, Wt) ? this.scrollToSection(t(this, g).current, c) : this.shiftSections(n, c);
321
+ t(this, $t) ? this.scrollToSection(t(this, g).current, c) : this.shiftSections(n, c);
322
322
  } else
323
323
  t(this, u).shift(n * t(this, y));
324
324
  } else
325
325
  t(this, u).shift(i);
326
- h(this, Wt, e === "drag");
326
+ h(this, $t, e === "drag");
327
327
  }
328
328
  });
329
329
  if (Qt) {
@@ -436,10 +436,10 @@ class Rt extends HTMLElement {
436
436
  return t(this, l);
437
437
  }
438
438
  get position() {
439
- return t(this, Bt);
439
+ return t(this, Ft);
440
440
  }
441
441
  get contentPosition() {
442
- return t(this, Ft);
442
+ return t(this, Wt);
443
443
  }
444
444
  get viewportSize() {
445
445
  return t(this, y);
@@ -539,7 +539,7 @@ class Rt extends HTMLElement {
539
539
  t(this, kt)
540
540
  ), h(this, M, new De({ element: t(this, p) })), t(this, M).changeEvent.subscribe(t(this, kt)), h(this, E, new Ae({
541
541
  culling: this
542
- })), t(this, E).changeEvent.subscribe(t(this, $t)), t(this, P).subscribe(({ current: e }) => {
542
+ })), t(this, E).changeEvent.subscribe(t(this, qt)), t(this, P).subscribe(({ current: e }) => {
543
543
  t(this, p).style.flexDirection = e === "x" ? "row" : "column", t(this, T).axis = t(this, Z).current ? "max" : e, t(this, tt).dimension = e === "x" ? "width" : "height", t(this, M).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, z).call(this);
544
544
  }), t(this, Z).subscribe((e) => {
545
545
  t(this, T).axis = e.current ? "max" : t(this, P).current;
@@ -548,11 +548,11 @@ class Rt extends HTMLElement {
548
548
  }), t(this, R).subscribe(() => {
549
549
  this.isConnected && t(this, z).call(this);
550
550
  }), t(this, H).subscribe(({ current: e }) => {
551
- this.isConnected && (e ? d(this, o, Vt).call(this) : d(this, o, Et).call(this));
551
+ this.isConnected && (e ? d(this, o, Ot).call(this) : d(this, o, Et).call(this));
552
552
  }), t(this, I).subscribe((e) => {
553
- t(this, T).debounce = e.current, t(this, M).swipe = e.current, t(this, E).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, l).length ? d(this, o, Vt).call(this) : !e.current && e.previous && t(this, l).length && d(this, o, Et).call(this));
553
+ t(this, T).debounce = e.current, t(this, M).swipe = e.current, t(this, E).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, l).length ? d(this, o, Ot).call(this) : !e.current && e.previous && t(this, l).length && d(this, o, Et).call(this));
554
554
  }), t(this, B).subscribe((e) => {
555
- this.isConnected && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? d(this, o, Vt).call(this) : !e.current && e.previous && t(this, l).length && d(this, o, Et).call(this));
555
+ this.isConnected && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? d(this, o, Ot).call(this) : !e.current && e.previous && t(this, l).length && d(this, o, Et).call(this));
556
556
  }), t(this, D).subscribe((e) => {
557
557
  this.isConnected && (t(this, z).call(this), d(this, o, lt).call(this));
558
558
  }), t(this, C).subscribe((e) => {
@@ -589,7 +589,7 @@ class Rt extends HTMLElement {
589
589
  this.removeAttribute("tabindex"), this.classList.remove("has-overflow"), t(this, ut).unobserve(), t(this, P).unobserve(), t(this, O).unobserve(), t(this, R).unobserve(), t(this, H).unobserve(), t(this, I).unobserve(), t(this, K).unobserve(), t(this, _).unobserve(), t(this, B).unobserve(), t(this, Z).unobserve(), t(this, dt).unobserve(), t(this, D).unobserve(), t(this, C).unobserve(), t(this, pt).unobserve(), t(this, ft).unobserve(), t(this, mt).unobserve(), t(this, bt).unobserve(), t(this, wt).unobserve(), t(this, k).unobserve(), t(this, gt).unobserve(), t(this, j).unobserve(), t(this, A).unobserve(), t(this, J).unobserve(), t(this, F).unobserve(), t(this, Q).unobserve(), t(this, St).unobserve(), t(this, vt).unobserve(), t(this, X).unobserve(), d(this, o, se).call(this);
590
590
  }
591
591
  }
592
- u = new WeakMap(), ut = new WeakMap(), P = new WeakMap(), O = new WeakMap(), R = new WeakMap(), H = new WeakMap(), I = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), B = new WeakMap(), Z = new WeakMap(), dt = new WeakMap(), D = new WeakMap(), C = new WeakMap(), pt = new WeakMap(), ft = new WeakMap(), mt = new WeakMap(), bt = new WeakMap(), wt = new WeakMap(), k = new WeakMap(), gt = new WeakMap(), j = new WeakMap(), A = new WeakMap(), J = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), St = new WeakMap(), vt = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), p = new WeakMap(), xt = new WeakMap(), l = new WeakMap(), Bt = new WeakMap(), Ft = new WeakMap(), y = new WeakMap(), S = new WeakMap(), L = new WeakMap(), T = new WeakMap(), tt = new WeakMap(), M = new WeakMap(), E = new WeakMap(), g = new WeakMap(), Pt = new WeakMap(), et = new WeakMap(), W = new WeakMap(), st = new WeakMap(), yt = new WeakMap(), Lt = new WeakMap(), it = new WeakMap(), $ = new WeakMap(), Wt = new WeakMap(), o = new WeakSet(), Vt = function() {
592
+ u = new WeakMap(), ut = new WeakMap(), P = new WeakMap(), O = new WeakMap(), R = new WeakMap(), H = new WeakMap(), I = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), B = new WeakMap(), Z = new WeakMap(), dt = new WeakMap(), D = new WeakMap(), C = new WeakMap(), pt = new WeakMap(), ft = new WeakMap(), mt = new WeakMap(), bt = new WeakMap(), wt = new WeakMap(), k = new WeakMap(), gt = new WeakMap(), j = new WeakMap(), A = new WeakMap(), J = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), St = new WeakMap(), vt = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), p = new WeakMap(), xt = new WeakMap(), l = new WeakMap(), Ft = new WeakMap(), Wt = new WeakMap(), y = new WeakMap(), S = new WeakMap(), L = new WeakMap(), T = new WeakMap(), tt = new WeakMap(), M = new WeakMap(), E = new WeakMap(), g = new WeakMap(), Pt = new WeakMap(), et = new WeakMap(), W = new WeakMap(), st = new WeakMap(), yt = new WeakMap(), Lt = new WeakMap(), it = new WeakMap(), $ = new WeakMap(), $t = new WeakMap(), o = new WeakSet(), Ot = function() {
593
593
  d(this, o, Et).call(this), t(this, xt).assignedElements().forEach((e, i) => {
594
594
  e instanceof HTMLElement && t(this, l).push(new Re(e, i, this));
595
595
  }), t(this, p).style.transform = "", Yt(this, "scrollSectionsChange", {
@@ -610,12 +610,12 @@ u = new WeakMap(), ut = new WeakMap(), P = new WeakMap(), O = new WeakMap(), R =
610
610
  }, jt = function() {
611
611
  t(this, st) && (h(this, st, !1), t(this, u).subscribe(t(this, zt)), t(this, T).connect(), t(this, tt).connect(), t(this, M).connect(), t(this, k).current && t(this, E).connect());
612
612
  }, se = function() {
613
- t(this, yt) || (h(this, yt, !0), Jt.unsubscribe(t(this, z)), Ot.unsubscribe(t(this, z)), d(this, o, Zt).call(this), t(this, p).style.transform = "", t(this, l).length ? d(this, o, Et).call(this) : (t(this, g).reset(), t(this, u).reset()), ct.unregister(this));
613
+ t(this, yt) || (h(this, yt, !0), Jt.unsubscribe(t(this, z)), Rt.unsubscribe(t(this, z)), d(this, o, Zt).call(this), t(this, p).style.transform = "", t(this, l).length ? d(this, o, Et).call(this) : (t(this, g).reset(), t(this, u).reset()), ct.unregister(this));
614
614
  }, ie = function() {
615
- t(this, yt) && (h(this, yt, !1), ct.register(this), (t(this, C).current || t(this, H).current || t(this, C).current || t(this, B).current || t(this, I).current) && d(this, o, Vt).call(this), d(this, o, jt).call(this), Jt.subscribe(t(this, z), me.SCROLL), Ot.subscribe(this, t(this, z)));
615
+ t(this, yt) && (h(this, yt, !1), ct.register(this), (t(this, C).current || t(this, H).current || t(this, C).current || t(this, B).current || t(this, I).current) && d(this, o, Ot).call(this), d(this, o, jt).call(this), Jt.subscribe(t(this, z), me.SCROLL), Rt.subscribe(this, t(this, z)));
616
616
  }, z = new WeakMap(), zt = new WeakMap(), ge = function(e) {
617
617
  t(this, C).current ? (t(this, g).current = e % t(this, l).length, t(this, g).current = t(this, g).current < 0 ? t(this, l).length + t(this, g).current : t(this, g).current) : t(this, g).current = fe(e, 0, this.limit);
618
- }, kt = new WeakMap(), $t = new WeakMap(), re = function(e = 1) {
618
+ }, kt = new WeakMap(), qt = new WeakMap(), re = function(e = 1) {
619
619
  t(this, j).current && (t(this, E).direction = e), t(this, k).current && t(this, E).pauseAndContinue(
620
620
  t(this, gt).current,
621
621
  this.sectionalCSSProperty.current
@@ -644,23 +644,23 @@ u = new WeakMap(), ut = new WeakMap(), P = new WeakMap(), O = new WeakMap(), R =
644
644
  }
645
645
  return i !== null ? t(this, l)[i] : null;
646
646
  };
647
- customElements.get("e-scroll") || customElements.define("e-scroll", Rt);
648
- var qt;
647
+ customElements.get("e-scroll") || customElements.define("e-scroll", Ht);
648
+ var Nt;
649
649
  class oe extends HTMLElement {
650
650
  constructor() {
651
651
  super(...arguments);
652
- s(this, qt, null);
652
+ s(this, Nt, null);
653
653
  }
654
654
  get scrollElement() {
655
- return t(this, qt);
655
+ return t(this, Nt);
656
656
  }
657
657
  connectedCallback() {
658
- const e = be(this, Rt);
659
- e instanceof Rt ? h(this, qt, e) : console.error(this, "e-scroll not found");
658
+ const e = be(this, Ht);
659
+ e instanceof Ht ? h(this, Nt, e) : console.error(this, "e-scroll not found");
660
660
  }
661
661
  }
662
- qt = new WeakMap();
663
- var rt, w, q, N, It, Dt, nt, Nt, Ut, Gt;
662
+ Nt = new WeakMap();
663
+ var rt, w, q, N, It, Dt, nt, At, Ut, Gt;
664
664
  class Be extends oe {
665
665
  constructor() {
666
666
  super();
@@ -673,9 +673,9 @@ class Be extends oe {
673
673
  s(this, nt, () => {
674
674
  h(this, q, this.offsetWidth > this.offsetHeight);
675
675
  const e = t(this, q) ? this.offsetWidth : this.offsetHeight;
676
- h(this, N, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), h(this, N, Math.max(t(this, N), 30)), t(this, q) ? (t(this, w).style.width = t(this, N) + "px", t(this, w).style.height = "100%") : (t(this, w).style.width = "100%", t(this, w).style.height = t(this, N) + "px"), h(this, It, e - t(this, N)), this.scrollElement.scrollSize ? this.style.display = "" : this.style.display = "none";
676
+ h(this, N, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), h(this, N, Math.max(t(this, N), 30)), t(this, q) ? (t(this, w).style.width = t(this, N) + "px", t(this, w).style.height = "100%") : (t(this, w).style.width = "100%", t(this, w).style.height = t(this, N) + "px"), h(this, It, e - t(this, N)), this.scrollElement.scrollSize ? this.style.display = "" : this.style.display = "none", t(this, At).call(this);
677
677
  });
678
- s(this, Nt, () => {
678
+ s(this, At, () => {
679
679
  h(this, Dt, this.scrollElement.currentProgress * t(this, It)), t(this, q) ? t(this, w).style.transform = `translate3d(${t(this, Dt)}px, 0px, 0px)` : t(this, w).style.transform = `translate3d(0px, ${t(this, Dt)}px, 0px)`;
680
680
  });
681
681
  s(this, Ut, () => {
@@ -734,13 +734,13 @@ class Be extends oe {
734
734
  connectedCallback() {
735
735
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
736
736
  const e = t(this, rt).assignedElements()[0] || t(this, rt).firstElementChild;
737
- h(this, w, e), t(this, w).addEventListener("pointerdown", t(this, Gt)), Jt.subscribe(t(this, nt), me.SCROLL), Ot.subscribe(this, t(this, nt)), Ot.subscribe(this.scrollElement, t(this, nt)), this.scrollElement.onScroll(t(this, Nt)), this.scrollElement.axisCSSProperty.subscribe(t(this, Ut));
737
+ h(this, w, e), t(this, w).addEventListener("pointerdown", t(this, Gt)), Jt.subscribe(t(this, nt), me.SCROLL), Rt.subscribe(this, t(this, nt)), Rt.subscribe(this.scrollElement, t(this, nt)), this.scrollElement.onScroll(t(this, At)), this.scrollElement.axisCSSProperty.subscribe(t(this, Ut));
738
738
  }
739
739
  disconnectedCallback() {
740
- this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, w).removeEventListener("pointerdown", t(this, Gt)), Jt.unsubscribe(t(this, nt)), Ot.unsubscribe(t(this, nt)), this.scrollElement.offScroll(t(this, Nt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, Ut));
740
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, w).removeEventListener("pointerdown", t(this, Gt)), Jt.unsubscribe(t(this, nt)), Rt.unsubscribe(t(this, nt)), this.scrollElement.offScroll(t(this, At)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, Ut));
741
741
  }
742
742
  }
743
- rt = new WeakMap(), w = new WeakMap(), q = new WeakMap(), N = new WeakMap(), It = new WeakMap(), Dt = new WeakMap(), nt = new WeakMap(), Nt = new WeakMap(), Ut = new WeakMap(), Gt = new WeakMap();
743
+ rt = new WeakMap(), w = new WeakMap(), q = new WeakMap(), N = new WeakMap(), It = new WeakMap(), Dt = new WeakMap(), nt = new WeakMap(), At = new WeakMap(), Ut = new WeakMap(), Gt = new WeakMap();
744
744
  customElements.get("e-scrollbar") || customElements.define("e-scrollbar", Be);
745
745
  class Se extends oe {
746
746
  constructor() {
@@ -767,40 +767,40 @@ class We extends Se {
767
767
  }
768
768
  }
769
769
  customElements.get("e-scroll-step-button") || customElements.define("e-scroll-step-button", We);
770
- var U, ht, At, Kt, _t, Tt;
770
+ var U, ht, Tt, Kt, _t, Mt;
771
771
  class $e {
772
772
  constructor(r, e, i) {
773
773
  s(this, U, null);
774
774
  s(this, ht, null);
775
- s(this, At, null);
775
+ s(this, Tt, null);
776
776
  s(this, Kt, null);
777
777
  s(this, _t, () => {
778
- t(this, ht).scrollToSection(t(this, At), {
778
+ t(this, ht).scrollToSection(t(this, Tt), {
779
779
  behaviour: t(this, Kt)
780
780
  });
781
781
  });
782
- s(this, Tt, () => {
782
+ s(this, Mt, () => {
783
783
  t(this, U).classList.toggle(
784
784
  "current",
785
- t(this, ht).counter.current === t(this, At)
785
+ t(this, ht).counter.current === t(this, Tt)
786
786
  );
787
787
  });
788
- Qt && (h(this, U, document.createElement("button")), h(this, ht, r), h(this, Kt, i), h(this, At, e), t(this, U).addEventListener("click", t(this, _t)), t(this, ht).counter.subscribe(t(this, Tt)), t(this, Tt).call(this));
788
+ Qt && (h(this, U, document.createElement("button")), h(this, ht, r), h(this, Kt, i), h(this, Tt, e), t(this, U).addEventListener("click", t(this, _t)), t(this, ht).counter.subscribe(t(this, Mt)), t(this, Mt).call(this));
789
789
  }
790
790
  get element() {
791
791
  return t(this, U);
792
792
  }
793
793
  destroy() {
794
- t(this, U).removeEventListener("click", t(this, _t)), t(this, ht).counter.unsubscribe(t(this, Tt)), t(this, U).remove();
794
+ t(this, U).removeEventListener("click", t(this, _t)), t(this, ht).counter.unsubscribe(t(this, Mt)), t(this, U).remove();
795
795
  }
796
796
  }
797
- U = new WeakMap(), ht = new WeakMap(), At = new WeakMap(), Kt = new WeakMap(), _t = new WeakMap(), Tt = new WeakMap();
798
- var ot, Mt;
797
+ U = new WeakMap(), ht = new WeakMap(), Tt = new WeakMap(), Kt = new WeakMap(), _t = new WeakMap(), Mt = new WeakMap();
798
+ var ot, Vt;
799
799
  class qe extends oe {
800
800
  constructor() {
801
801
  super(...arguments);
802
802
  s(this, ot, []);
803
- s(this, Mt, Ve(() => {
803
+ s(this, Vt, Ve(() => {
804
804
  t(this, ot).forEach((e) => e.destroy()), h(this, ot, []);
805
805
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
806
806
  const i = new $e(
@@ -815,22 +815,22 @@ class qe extends oe {
815
815
  connectedCallback() {
816
816
  super.connectedCallback(), this.scrollElement.addEventListener(
817
817
  "sectionsChange",
818
- t(this, Mt)
819
- ), t(this, Mt).call(this);
818
+ t(this, Vt)
819
+ ), t(this, Vt).call(this);
820
820
  }
821
821
  disconnectedCallback() {
822
822
  this.scrollElement.removeEventListener(
823
823
  "sectionsChange",
824
- t(this, Mt)
824
+ t(this, Vt)
825
825
  ), t(this, ot).forEach((e) => e.destroy()), h(this, ot, []);
826
826
  }
827
827
  }
828
- ot = new WeakMap(), Mt = new WeakMap();
828
+ ot = new WeakMap(), Vt = new WeakMap();
829
829
  customElements.get("e-scroll-bullet-buttons") || customElements.define("e-scroll-bullet-buttons", qe);
830
830
  class Ne extends Oe {
831
831
  connectedCallback() {
832
- const r = be(this, Rt);
833
- r instanceof Rt ? (this.scrollContainer = r, this.scrollContainer.addEventListener(
832
+ const r = be(this, Ht);
833
+ r instanceof Ht ? (this.scrollContainer = r, this.scrollContainer.addEventListener(
834
834
  "scrollSectionsChange",
835
835
  this.findAnotherScrollEntries
836
836
  )) : console.error(this, "e-scroll not found");
@@ -839,7 +839,7 @@ class Ne extends Oe {
839
839
  customElements.get("e-scroll-segment") || customElements.define("e-scroll-segment", Ne);
840
840
  export {
841
841
  qe as ScrollBulletButtonsElement,
842
- Rt as ScrollElement,
842
+ Ht as ScrollElement,
843
843
  Ne as ScrollSegmentElement,
844
844
  Fe as ScrollSetButtonElement,
845
845
  We as ScrollStepButtonElement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.33.4",
3
+ "version": "0.33.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"