vevet 5.7.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cdn/vevet.iife.min.js +5 -5
- package/lib/cjs/base/Module/index.js +4 -2
- package/lib/cjs/base/Module/index.js.map +1 -1
- package/lib/cjs/base/Responsive/index.js +1 -1
- package/lib/cjs/base/Responsive/index.js.map +1 -1
- package/lib/cjs/components/Canvas/index.js.map +1 -1
- package/lib/cjs/components/CanvasMedia/index.js.map +1 -1
- package/lib/cjs/components/Cursor/index.js.map +1 -1
- package/lib/cjs/components/InView/index.js.map +1 -1
- package/lib/cjs/components/Marquee/index.js.map +1 -1
- package/lib/cjs/components/Pointers/index.js.map +1 -1
- package/lib/cjs/components/Preloader/index.js.map +1 -1
- package/lib/cjs/components/ProgressPreloader/index.js.map +1 -1
- package/lib/cjs/components/Raf/index.js.map +1 -1
- package/lib/cjs/components/ScrollProgress/index.js.map +1 -1
- package/lib/cjs/components/Scrollbar/index.js.map +1 -1
- package/lib/cjs/components/Snap/index.js +20 -1
- package/lib/cjs/components/Snap/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Interval/index.js +80 -0
- package/lib/cjs/components/Snap/logic/Interval/index.js.map +1 -0
- package/lib/cjs/components/Snap/logic/Swipe/index.js +9 -1
- package/lib/cjs/components/Snap/logic/Swipe/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Track/index.js +1 -1
- package/lib/cjs/components/Snap/logic/Track/index.js.map +1 -1
- package/lib/cjs/components/Snap/props.js +2 -0
- package/lib/cjs/components/Snap/props.js.map +1 -1
- package/lib/cjs/components/SplitText/index.js +5 -2
- package/lib/cjs/components/SplitText/index.js.map +1 -1
- package/lib/cjs/components/SplitText/props.js +1 -0
- package/lib/cjs/components/SplitText/props.js.map +1 -1
- package/lib/cjs/components/Swipe/index.js.map +1 -1
- package/lib/cjs/components/Timeline/index.js.map +1 -1
- package/lib/cjs/core/handlers/createViewport/index.js +9 -5
- package/lib/cjs/core/handlers/createViewport/index.js.map +1 -1
- package/lib/cjs/manifest.json +1 -1
- package/lib/esm/base/Module/index.js +4 -2
- package/lib/esm/base/Module/index.js.map +1 -1
- package/lib/esm/base/Responsive/index.js +1 -1
- package/lib/esm/base/Responsive/index.js.map +1 -1
- package/lib/esm/components/Canvas/index.js.map +1 -1
- package/lib/esm/components/CanvasMedia/index.js.map +1 -1
- package/lib/esm/components/Cursor/index.js.map +1 -1
- package/lib/esm/components/InView/index.js.map +1 -1
- package/lib/esm/components/Marquee/index.js.map +1 -1
- package/lib/esm/components/Pointers/index.js.map +1 -1
- package/lib/esm/components/Preloader/index.js.map +1 -1
- package/lib/esm/components/ProgressPreloader/index.js.map +1 -1
- package/lib/esm/components/Raf/index.js.map +1 -1
- package/lib/esm/components/ScrollProgress/index.js.map +1 -1
- package/lib/esm/components/Scrollbar/index.js.map +1 -1
- package/lib/esm/components/Snap/index.js +12 -1
- package/lib/esm/components/Snap/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Interval/index.js +53 -0
- package/lib/esm/components/Snap/logic/Interval/index.js.map +1 -0
- package/lib/esm/components/Snap/logic/Swipe/index.js +5 -1
- package/lib/esm/components/Snap/logic/Swipe/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Track/index.js +1 -1
- package/lib/esm/components/Snap/logic/Track/index.js.map +1 -1
- package/lib/esm/components/Snap/props.js +2 -0
- package/lib/esm/components/Snap/props.js.map +1 -1
- package/lib/esm/components/SplitText/index.js +5 -2
- package/lib/esm/components/SplitText/index.js.map +1 -1
- package/lib/esm/components/SplitText/props.js +1 -0
- package/lib/esm/components/SplitText/props.js.map +1 -1
- package/lib/esm/components/Swipe/index.js.map +1 -1
- package/lib/esm/components/Timeline/index.js.map +1 -1
- package/lib/esm/core/handlers/createViewport/index.js +9 -5
- package/lib/esm/core/handlers/createViewport/index.js.map +1 -1
- package/lib/esm/manifest.json +1 -1
- package/lib/types/base/Module/index.d.ts +1 -1
- package/lib/types/base/Module/index.d.ts.map +1 -1
- package/lib/types/base/Responsive/types.d.ts +1 -1
- package/lib/types/base/Responsive/types.d.ts.map +1 -1
- package/lib/types/components/Canvas/index.d.ts +1 -1
- package/lib/types/components/Canvas/index.d.ts.map +1 -1
- package/lib/types/components/CanvasMedia/index.d.ts +1 -1
- package/lib/types/components/CanvasMedia/index.d.ts.map +1 -1
- package/lib/types/components/Cursor/index.d.ts +1 -1
- package/lib/types/components/Cursor/index.d.ts.map +1 -1
- package/lib/types/components/InView/index.d.ts +1 -1
- package/lib/types/components/InView/index.d.ts.map +1 -1
- package/lib/types/components/Marquee/index.d.ts +1 -1
- package/lib/types/components/Marquee/index.d.ts.map +1 -1
- package/lib/types/components/Pointers/index.d.ts +1 -1
- package/lib/types/components/Pointers/index.d.ts.map +1 -1
- package/lib/types/components/Preloader/index.d.ts +1 -1
- package/lib/types/components/Preloader/index.d.ts.map +1 -1
- package/lib/types/components/ProgressPreloader/index.d.ts +1 -1
- package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -1
- package/lib/types/components/Raf/index.d.ts +1 -1
- package/lib/types/components/Raf/index.d.ts.map +1 -1
- package/lib/types/components/ScrollProgress/index.d.ts +1 -1
- package/lib/types/components/ScrollProgress/index.d.ts.map +1 -1
- package/lib/types/components/Scrollbar/index.d.ts +1 -1
- package/lib/types/components/Scrollbar/index.d.ts.map +1 -1
- package/lib/types/components/Snap/index.d.ts +5 -1
- package/lib/types/components/Snap/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Interval/index.d.ts +15 -0
- package/lib/types/components/Snap/logic/Interval/index.d.ts.map +1 -0
- package/lib/types/components/Snap/logic/Swipe/index.d.ts +2 -0
- package/lib/types/components/Snap/logic/Swipe/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Swipe/types.d.ts +1 -1
- package/lib/types/components/Snap/logic/Track/index.d.ts.map +1 -1
- package/lib/types/components/Snap/props.d.ts.map +1 -1
- package/lib/types/components/Snap/types.d.ts +10 -0
- package/lib/types/components/Snap/types.d.ts.map +1 -1
- package/lib/types/components/SplitText/index.d.ts +1 -1
- package/lib/types/components/SplitText/index.d.ts.map +1 -1
- package/lib/types/components/SplitText/props.d.ts.map +1 -1
- package/lib/types/components/SplitText/types.d.ts +5 -0
- package/lib/types/components/SplitText/types.d.ts.map +1 -1
- package/lib/types/components/Swipe/index.d.ts +1 -1
- package/lib/types/components/Swipe/index.d.ts.map +1 -1
- package/lib/types/components/Timeline/index.d.ts +1 -1
- package/lib/types/components/Timeline/index.d.ts.map +1 -1
- package/lib/types/core/handlers/createViewport/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/base/Module/index.ts +10 -3
- package/src/base/Responsive/index.ts +1 -1
- package/src/base/Responsive/types.ts +0 -3
- package/src/components/Canvas/index.ts +1 -1
- package/src/components/CanvasMedia/index.ts +2 -2
- package/src/components/Cursor/index.ts +1 -1
- package/src/components/InView/index.ts +1 -1
- package/src/components/Marquee/index.ts +1 -1
- package/src/components/Pointers/index.ts +1 -1
- package/src/components/Preloader/index.ts +1 -1
- package/src/components/ProgressPreloader/index.ts +2 -2
- package/src/components/Raf/index.ts +4 -1
- package/src/components/ScrollProgress/index.ts +1 -1
- package/src/components/Scrollbar/index.ts +1 -1
- package/src/components/Snap/index.ts +19 -2
- package/src/components/Snap/logic/Interval/index.ts +71 -0
- package/src/components/Snap/logic/Swipe/index.ts +6 -1
- package/src/components/Snap/logic/Swipe/types.ts +1 -1
- package/src/components/Snap/logic/Track/index.ts +1 -2
- package/src/components/Snap/props.ts +2 -0
- package/src/components/Snap/types.ts +12 -0
- package/src/components/SplitText/index.ts +10 -3
- package/src/components/SplitText/props.ts +1 -0
- package/src/components/SplitText/types.ts +6 -0
- package/src/components/Swipe/index.ts +1 -1
- package/src/components/Timeline/index.ts +1 -1
- package/src/core/handlers/createViewport/index.ts +12 -5
- package/src/manifest.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var Vevet=(()=>{var Wr=Object.create;var Ot=Object.defineProperty;var Fr=Object.getOwnPropertyDescriptor;var Vr=Object.getOwnPropertyNames;var Hr=Object.getPrototypeOf,Ur=Object.prototype.hasOwnProperty;var at=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports),Xr=(s,t)=>{for(var e in t)Ot(s,e,{get:t[e],enumerable:!0})},vi=(s,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Vr(t))!Ur.call(s,r)&&r!==e&&Ot(s,r,{get:()=>t[r],enumerable:!(i=Fr(t,r))||i.enumerable});return s};var bi=(s,t,e)=>(e=s!=null?Wr(Hr(s)):{},vi(t||!s||!s.__esModule?Ot(e,"default",{value:s,enumerable:!0}):e,s)),Yr=s=>vi(Ot({},"__esModule",{value:!0}),s);var qi=at((oa,Yi)=>{var Fi=!1,st,ge,ve,kt,Dt,Vi,jt,be,we,ye,Hi,xe,Se,Ui,Xi;function N(){if(!Fi){Fi=!0;var s=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(s),e=/(Mac OS X)|(Windows)|(Linux)/.exec(s);if(xe=/\b(iPhone|iP[ao]d)/.exec(s),Se=/\b(iP[ao]d)/.exec(s),ye=/Android/i.exec(s),Ui=/FBAN\/\w+;/i.exec(s),Xi=/Mobile/i.exec(s),Hi=!!/Win64/.exec(s),t){st=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,st&&document&&document.documentMode&&(st=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);Vi=i?parseFloat(i[1])+4:st,ge=t[2]?parseFloat(t[2]):NaN,ve=t[3]?parseFloat(t[3]):NaN,kt=t[4]?parseFloat(t[4]):NaN,kt?(t=/(?:Chrome\/(\d+\.\d+))/.exec(s),Dt=t&&t[1]?parseFloat(t[1]):NaN):Dt=NaN}else st=ge=ve=Dt=kt=NaN;if(e){if(e[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);jt=r?parseFloat(r[1].replace("_",".")):!0}else jt=!1;be=!!e[2],we=!!e[3]}else jt=be=we=!1}}var Ee={ie:function(){return N()||st},ieCompatibilityMode:function(){return N()||Vi>st},ie64:function(){return Ee.ie()&&Hi},firefox:function(){return N()||ge},opera:function(){return N()||ve},webkit:function(){return N()||kt},safari:function(){return Ee.webkit()},chrome:function(){return N()||Dt},windows:function(){return N()||be},osx:function(){return N()||jt},linux:function(){return N()||we},iphone:function(){return N()||xe},mobile:function(){return N()||xe||Se||ye||Xi},nativeApp:function(){return N()||Ui},android:function(){return N()||ye},ipad:function(){return N()||Se}};Yi.exports=Ee});var Ki=at((aa,Qi)=>{"use strict";var zt=!!(typeof window!="undefined"&&window.document&&window.document.createElement),On={canUseDOM:zt,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:zt&&!!(window.addEventListener||window.attachEvent),canUseViewport:zt&&!!window.screen,isInWorker:!zt};Qi.exports=On});var ts=at((la,Zi)=>{"use strict";var Gi=Ki(),Ji;Gi.canUseDOM&&(Ji=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Tn(s,t){if(!Gi.canUseDOM||t&&!("addEventListener"in document))return!1;var e="on"+s,i=e in document;if(!i){var r=document.createElement("div");r.setAttribute(e,"return;"),i=typeof r[e]=="function"}return!i&&Ji&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}Zi.exports=Tn});var os=at((ca,ns)=>{"use strict";var Mn=qi(),In=ts(),es=10,is=40,ss=800;function rs(s){var t=0,e=0,i=0,r=0;return"detail"in s&&(e=s.detail),"wheelDelta"in s&&(e=-s.wheelDelta/120),"wheelDeltaY"in s&&(e=-s.wheelDeltaY/120),"wheelDeltaX"in s&&(t=-s.wheelDeltaX/120),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(t=e,e=0),i=t*es,r=e*es,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=is,r*=is):(i*=ss,r*=ss)),i&&!t&&(t=i<1?-1:1),r&&!e&&(e=r<1?-1:1),{spinX:t,spinY:e,pixelX:i,pixelY:r}}rs.getEventType=function(){return Mn.firefox()?"DOMMouseScroll":In("wheel")?"wheel":"mousewheel"};ns.exports=rs});var ls=at((ha,as)=>{as.exports=os()});var Ar=at((Pt,_t)=>{var Xn=1/0,_r=9007199254740991,Yn=4294967295,qn="[object Function]",Qn="[object GeneratorFunction]",Kn="[object RegExp]",Gn="[object Symbol]",Jn=/^(?:0|[1-9]\d*)$/,mi="\\ud800-\\udfff",gr="\\u0300-\\u036f\\ufe20-\\ufe23",vr="\\u20d0-\\u20f0",br="\\ufe0e\\ufe0f",Zn="["+mi+"]",ui="["+gr+vr+"]",fi="\\ud83c[\\udffb-\\udfff]",to="(?:"+ui+"|"+fi+")",wr="[^"+mi+"]",yr="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",Sr="\\u200d",Er=to+"?",Pr="["+br+"]?",eo="(?:"+Sr+"(?:"+[wr,yr,xr].join("|")+")"+Pr+Er+")*",io=Pr+Er+eo,so="(?:"+[wr+ui+"?",ui,yr,xr,Zn].join("|")+")",ro=RegExp(fi+"(?="+fi+")|"+so+io,"g"),no=RegExp("["+Sr+mi+gr+vr+br+"]"),Or=typeof global=="object"&&global&&global.Object===Object&&global,oo=typeof self=="object"&&self&&self.Object===Object&&self,ao=Or||oo||Function("return this")(),Tr=typeof Pt=="object"&&Pt&&!Pt.nodeType&&Pt,cr=Tr&&typeof _t=="object"&&_t&&!_t.nodeType&&_t,lo=cr&&cr.exports===Tr,hr=lo&&Or.process,pr=function(){try{return hr&&hr.binding("util")}catch(s){}}(),dr=pr&&pr.isRegExp;function co(s){return s.split("")}function ho(s){return function(t){return s(t)}}function Mr(s){return no.test(s)}function po(s){return Mr(s)?uo(s):co(s)}function uo(s){return s.match(ro)||[]}var fo=Object.prototype,_i=fo.toString,ur=ao.Symbol,fr=ur?ur.prototype:void 0,mr=fr?fr.toString:void 0;function mo(s){return gi(s)&&_i.call(s)==Kn}function _o(s,t,e){var i=-1,r=s.length;t<0&&(t=-t>r?0:r+t),e=e>r?r:e,e<0&&(e+=r),r=t>e?0:e-t>>>0,t>>>=0;for(var n=Array(r);++i<r;)n[i]=s[i+t];return n}function Ir(s){if(typeof s=="string")return s;if(Oo(s))return mr?mr.call(s):"";var t=s+"";return t=="0"&&1/s==-Xn?"-0":t}function go(s,t,e){var i=s.length;return e=e===void 0?i:e,!t&&e>=i?s:_o(s,t,e)}function vo(s,t){return t=t==null?_r:t,!!t&&(typeof s=="number"||Jn.test(s))&&s>-1&&s%1==0&&s<t}function bo(s,t,e){if(!gi(e))return!1;var i=typeof t;return(i=="number"?yo(e)&&vo(t,e.length):i=="string"&&t in e)?wo(e[t],s):!1}function wo(s,t){return s===t||s!==s&&t!==t}function yo(s){return s!=null&&So(s.length)&&!xo(s)}function xo(s){var t=gi(s)?_i.call(s):"";return t==qn||t==Qn}function So(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=_r}function gi(s){var t=typeof s;return!!s&&(t=="object"||t=="function")}function Eo(s){return!!s&&typeof s=="object"}var Po=dr?ho(dr):mo;function Oo(s){return typeof s=="symbol"||Eo(s)&&_i.call(s)==Gn}function To(s){return s==null?"":Ir(s)}function Mo(s,t,e){return e&&typeof e!="number"&&bo(s,t,e)&&(t=e=void 0),e=e===void 0?Yn:e>>>0,e?(s=To(s),s&&(typeof t=="string"||t!=null&&!Po(t))&&(t=Ir(t),!t&&Mr(s))?go(po(s),0,e):s.split(t,e)):[]}_t.exports=Mo});var Ro={};Xr(Ro,{Callbacks:()=>L,Canvas:()=>et,CanvasMedia:()=>vt,Cursor:()=>pt,EaseInBack:()=>Te,EaseInBounce:()=>Me,EaseInCirc:()=>Ie,EaseInCubic:()=>Ae,EaseInElastic:()=>Ce,EaseInExpo:()=>Re,EaseInOutBack:()=>ke,EaseInOutBounce:()=>De,EaseInOutCirc:()=>je,EaseInOutCubic:()=>ze,EaseInOutElastic:()=>Be,EaseInOutExpo:()=>Le,EaseInOutQuad:()=>Ne,EaseInOutQuart:()=>$e,EaseInOutQuint:()=>We,EaseInOutSine:()=>Fe,EaseInQuad:()=>Ve,EaseInQuart:()=>He,EaseInQuint:()=>Ue,EaseInSine:()=>Xe,EaseOutBack:()=>Ye,EaseOutBounce:()=>tt,EaseOutCirc:()=>qe,EaseOutCubic:()=>rt,EaseOutElastic:()=>Qe,EaseOutExpo:()=>Ke,EaseOutQuad:()=>Ge,EaseOutQuart:()=>Je,EaseOutQuint:()=>Ze,EaseOutSine:()=>ti,InView:()=>wt,Marquee:()=>yt,Module:()=>x,Pointers:()=>xt,Preloader:()=>St,ProgressPreloader:()=>Et,Raf:()=>H,Responsive:()=>Nt,ScrollProgress:()=>ee,Scrollbar:()=>te,Snap:()=>mt,SnapSlide:()=>ft,SplitText:()=>pe,Swipe:()=>ot,Timeline:()=>B,addEventListener:()=>y,app:()=>Co,clamp:()=>w,clampScope:()=>Bt,closest:()=>Rt,damp:()=>Oe,easing:()=>ei,inRange:()=>ii,initVevet:()=>b,lerp:()=>A,loop:()=>$,normalizeWheel:()=>Pe,onResize:()=>V,presetCssVars:()=>us,scoped:()=>J,toPixels:()=>T,uid:()=>_e,vevet:()=>Nr});var wi=function(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))},qr=function(){function s(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"}return s}();var Qr=function(){function s(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return s}();var Kr=function(){function s(t,e,i,r){this.name=t,this.version=e,this.os=i,this.bot=r,this.type="bot-device"}return s}();var Gr=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var Jr=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var Zr=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,tn=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,yi=3,en=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Zr]],xi=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Ei(s){return s?Si(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new Jr:typeof navigator!="undefined"?Si(navigator.userAgent):nn()}function sn(s){return s!==""&&en.reduce(function(t,e){var i=e[0],r=e[1];if(t)return t;var n=r.exec(s);return!!n&&[i,n]},!1)}function Si(s){var t=sn(s);if(!t)return null;var e=t[0],i=t[1];if(e==="searchbot")return new Gr;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<yi&&(r=wi(wi([],r,!0),on(yi-r.length),!0)):r=[];var n=r.join("."),o=rn(s),a=tn.exec(s);return a&&a[1]?new Kr(e,n,o,a[1]):new qr(e,n,o)}function rn(s){for(var t=0,e=xi.length;t<e;t++){var i=xi[t],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function nn(){var s=typeof process!="undefined"&&process.version;return s?new Qr(process.version.slice(1)):null}function on(s){for(var t=[],e=0;e<s;e++)t.push("0");return t}var an=Object.defineProperty,ln=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Pi=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Oi=(s,t,e)=>t in s?an(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,Tt=(s,t)=>{for(var e in t||(t={}))hn.call(t,e)&&Oi(s,e,t[e]);if(Pi)for(var e of Pi(t))pn.call(t,e)&&Oi(s,e,t[e]);return s},Mt=(s,t)=>ln(s,cn(t));var dn="Window is not available and no user agent was provided.",un=()=>{var s,t;if(typeof window!="undefined"){let e=((s=window==null?void 0:window.navigator)==null?void 0:s.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.vendor)||(window==null?void 0:window.opera);if(e)return e}return console.error(dn),""},It={isInApp:!1,appKey:void 0,appName:void 0,skipped:!1},fn=s=>s.match(/(iPhone|iPad|iPod|Macintosh)/)!==null,mn=({skip:s,appKey:t,ua:e})=>{if(!s||s.length===0)return!1;let i=fn(e);return s.some(({appKey:r,platform:n})=>t===r&&(!n||i&&n==="apple"||!i&&n==="android"))},jo=new RegExp(/Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[^\s]+ \(KHTML, like Gecko\) Version\/[^\s]+ (Mobile\/[^\s]+ )?Safari\/[^\s]+$/);var _n=()=>"TelegramWebview"in window||"TelegramWebviewProxy"in window||"TelegramWebviewProxyProto"in window,Ti={telegram:{name:"Telegram"}},gn=()=>{if(typeof window!="undefined"&&_n())return"telegram"},zo=Object.keys(Ti),de={messenger:{regex:/(\bFB[\w_]+\/(Messenger))|(^(?!.*\buseragents)(?!.*\bIABMV).*(FB_IAB|FBAN).*)/i,name:"Facebook Messenger"},instagram:{regex:/\bInstagram/i,name:"Instagram"},facebook:{regex:/\bFB[\w_]+\/|\bFacebook/i,name:"Facebook"},twitter:{regex:/\bTwitter/i,name:"Twitter"},line:{regex:/\bLine\//i,name:"Line"},wechat:{regex:/\bMicroMessenger\//i,name:"WeChat"},threads:{regex:/\bBarcelona/i,name:"Threads"},tiktok:{regex:/musical_ly|Bytedance/i,name:"TikTok"},snapchat:{regex:/Snapchat/i,name:"Snapchat"},linkedin:{regex:/LinkedInApp/i,name:"LinkedIn"},gsa:{regex:/GSA/i,name:"Google Search App"},whatsapp:{regex:/\b(WAiOS|WA4A)\//i,name:"WhatsApp"}},vn=Object.keys(de),bn=s=>vn.find(t=>de[t].regex.test(s)),wn=["WebView","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv\\)"],yn=new RegExp(`${wn.map(s=>`(${s})`).join("|")}`,"i");var xn=(s={})=>{var t,e;let{skip:i,ua:r=""}=s,n=r||un();if(!n)return Mt(Tt({},It),{ua:n});let o=l=>mn({skip:i,appKey:l,ua:n}),a=bn(n);if(a||n.match(yn)!==null)return o(a)?Mt(Tt({},It),{ua:n,skipped:!0}):{isInApp:!0,appKey:a,appName:a?de[a].name:void 0,ua:n,skipped:!1};let c=gn();return c?o(c)?Mt(Tt({},It),{ua:n,skipped:!0}):{isInApp:!0,appKey:c,appName:(e=(t=Ti)==null?void 0:t[c])==null?void 0:e.name,ua:n,skipped:!1}:Mt(Tt({},It),{ua:n})};var Mi=xn;var ue=/iPhone/i,Ii=/iPod/i,Ai=/iPad/i,Ci=/\biOS-universal(?:.+)Mac\b/i,fe=/\bAndroid(?:.+)Mobile\b/i,Ri=/Android/i,lt=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,At=/Silk/i,G=/Windows Phone/i,ki=/\bWindows(?:.+)ARM\b/i,Di=/BlackBerry/i,ji=/BB10/i,zi=/Opera Mini/i,Bi=/\b(CriOS|Chrome)(?:.+)Mobile/i,Li=/Mobile(?:.+)Firefox\b/i,Ni=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function Sn(s){return function(t){return t.test(s)}}function Ct(s){var t={userAgent:"",platform:"",maxTouchPoints:0};!s&&typeof navigator!="undefined"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof s=="string"?t.userAgent=s:s&&s.userAgent&&(t={userAgent:s.userAgent,platform:s.platform,maxTouchPoints:s.maxTouchPoints||0});var e=t.userAgent,i=e.split("[FBAN");typeof i[1]!="undefined"&&(e=i[0]),i=e.split("Twitter"),typeof i[1]!="undefined"&&(e=i[0]);var r=Sn(e),n={apple:{phone:r(ue)&&!r(G),ipod:r(Ii),tablet:!r(ue)&&(r(Ai)||Ni(t))&&!r(G),universal:r(Ci),device:(r(ue)||r(Ii)||r(Ai)||r(Ci)||Ni(t))&&!r(G)},amazon:{phone:r(lt),tablet:!r(lt)&&r(At),device:r(lt)||r(At)},android:{phone:!r(G)&&r(lt)||!r(G)&&r(fe),tablet:!r(G)&&!r(lt)&&!r(fe)&&(r(At)||r(Ri)),device:!r(G)&&(r(lt)||r(At)||r(fe)||r(Ri))||r(/\bokhttp\b/i)},windows:{phone:r(G),tablet:r(ki),device:r(G)||r(ki)},other:{blackberry:r(Di),blackberry10:r(ji),opera:r(zi),firefox:r(Li),chrome:r(Bi),device:r(Di)||r(ji)||r(zi)||r(Li)||r(Bi)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}function S(s,t){s.classList.add(t)}function X(s,t){t&&s.classList.remove(t)}function k(s,t,e){t&&s.classList.toggle(t,e)}function Z(s,t){return s.classList.contains(t)}var C=typeof window!="undefined",g=C?document:void 0,I=C?g.documentElement:void 0,R=C?g.body:void 0;var $i={version:"5.7.0"};function _(s,t,e){let i=e.value;e.value=function(...n){if(!this._isDestroyed)return i.apply(this,n)}}function me(s){try{s()}catch(t){console.error(t)}}function Rt(s,t){return!Array.isArray(t)||t.length===0?s:t.reduce((e,i)=>Math.abs(i-s)<Math.abs(e-s)?i:e)}function D(s){return typeof s=="number"}function T(s){if(!C)return 0;let t=b();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,t.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(s))return window.vevet5_toPixelsCache.get(s);let e=0,i=parseFloat(`${s}`);return D(s)?e=s:Number.isNaN(i)?e=0:s.includes("rem")?e=i*t.rem:s.includes("vw")?e=i*t.vw:s.includes("vh")?e=i*t.vh:s.includes("svh")?e=i*t.svh:s.includes("px")&&(e=i),window.vevet5_toPixelsCache.set(s,e),e}var Wi=0;function _e(s="id"){return Wi+=1,`${s}_${Wi}`}var gt=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Pn=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(e[i[r]]=s[i[r]]);return e},L=class{constructor(t={}){this._props=t,this._isDestroyed=!1,this._list=[]}get list(){return this._list}add(t,e,i={}){let r=_e("callback");return this._list.push(Object.assign(Object.assign({},i),{id:r,target:t,action:e})),{id:r,remove:()=>this.remove(r)}}on(t,e,i={}){let r=this.add(t,e,i);return()=>{r.remove()}}remove(t){return this._remove(t)}_remove(t,e=!1){return this._list=this._list.filter(r=>!!(r.id!==t||r.protected&&!e)),!this._list.some(({id:r})=>r===t)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(t,e){var{id:i,timeout:r,action:n}=t,o=Pn(t,["id","timeout","action"]);let{ctx:a}=this._props;r?setTimeout(()=>me(()=>n(e,a)),r):me(()=>n(e,a)),o.once&&this._remove(i,!0)}emit(t,e){this._list.forEach(i=>{i.target===t&&this._callAction(i,e)})}destroy(){this._removeAll(),this._isDestroyed=!0}};gt([_],L.prototype,"add",null);gt([_],L.prototype,"on",null);gt([_],L.prototype,"remove",null);gt([_],L.prototype,"emit",null);gt([_],L.prototype,"destroy",null);function y(s,t,e,i){return s.addEventListener(t,e,i),()=>{s.removeEventListener(t,e,i)}}var cs=bi(ls());function Pe(s){return(0,cs.default)(s)}function V({callback:s,element:t,viewportTarget:e="width",resizeDebounce:i=0,name:r}){let n=b(),o,a,c,l=h=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>s(),h!=null?h:i)};return t&&(a=new ResizeObserver(()=>{l(n.props.resizeDebounce+i)}),(Array.isArray(t)?t:[t]).forEach(h=>{a==null||a.observe(h)})),e&&(c=n.onResize(e,()=>l(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),c==null||c()},resize:()=>s(),debounceResize:()=>l()}}function hs({prefix:s,applyClassNames:t}){let e=new L,i=!1;g.readyState==="complete"?setTimeout(()=>r(),0):y(window,"load",()=>r());function r(){let{body:o}=document;i=!0,t&&(X(I,`${s}loading`),X(o,`${s}loading`),S(I,`${s}loaded`)),e.emit("loaded",void 0)}function n(o){return i?(o(),()=>{}):e.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>i}}function ps({prefix:s,props:t,isMobile:e,isInApp:i,browserName:r}){let n=g.getElementById("vevet_css_preset");n||(n=g.createElement("style"),n.id="vevet_css_preset",R.appendChild(n));let o=g.createElement("div"),{style:a}=o;o.id="vevet_svh_helper",a.position="fixed",a.top="-100svh",a.left="-100px",a.width="1px",a.height="100svh",R.appendChild(o);let c=new L,l={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio};u(),d(),m();let h;function p(){h&&(clearTimeout(h),h=void 0),t.resizeDebounce?h=setTimeout(()=>v(),t.resizeDebounce):v()}y(window,"resize",()=>p());let f=new ResizeObserver(()=>p());f.observe(I),f.observe(R);function v(){let{width:E,height:P}=l;u(),d(),m();let{width:O,height:M}=l;c.emit("trigger",void 0),(O!==E||M!==P)&&c.emit("any",void 0),O!==E&&M===P&&c.emit("onlyWidth",void 0),M!==P&&O===E&&c.emit("onlyHeight",void 0),O!==E&&M!==P&&c.emit("both",void 0),O!==E&&c.emit("width",void 0),M!==P&&c.emit("height",void 0)}function u(){let{width:E}=l,P=getComputedStyle(I);if(l.width=window.innerWidth,l.height=window.innerHeight,l.scrollbarWidth=window.innerWidth-I.clientWidth,l.vw=l.width/100,l.vh=l.height/100,l.rem=parseFloat(P.fontSize),l.landscape=l.width>l.height,l.portrait=l.width<l.height,l.dpr=window.devicePixelRatio,l.lowerDpr=e?Math.min(l.dpr,2):1,e&&(i||r.includes("fxios"))){let O=I.clientHeight;(E!==l.width||!l.sHeight||E===l.width&&O<l.sHeight)&&(l.sHeight=O,l.svh=l.sHeight/100)}else l.svh=o.clientHeight/100||I.clientHeight/100,l.sHeight=l.svh*100}function d(){t.applyClassNames&&(k(I,`${s}landscape`,l.landscape),k(I,`${s}portrait`,l.portrait))}function m(){n.innerHTML=`
|
|
1
|
+
"use strict";var Vevet=(()=>{var Fr=Object.create;var Ot=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var Hr=Object.getOwnPropertyNames;var Ur=Object.getPrototypeOf,Xr=Object.prototype.hasOwnProperty;var at=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports),Yr=(s,t)=>{for(var e in t)Ot(s,e,{get:t[e],enumerable:!0})},bi=(s,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Hr(t))!Xr.call(s,r)&&r!==e&&Ot(s,r,{get:()=>t[r],enumerable:!(i=Vr(t,r))||i.enumerable});return s};var wi=(s,t,e)=>(e=s!=null?Fr(Ur(s)):{},bi(t||!s||!s.__esModule?Ot(e,"default",{value:s,enumerable:!0}):e,s)),qr=s=>bi(Ot({},"__esModule",{value:!0}),s);var Qi=at((aa,qi)=>{var Vi=!1,st,ve,be,kt,Dt,Hi,jt,we,ye,xe,Ui,Se,Ee,Xi,Yi;function N(){if(!Vi){Vi=!0;var s=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(s),e=/(Mac OS X)|(Windows)|(Linux)/.exec(s);if(Se=/\b(iPhone|iP[ao]d)/.exec(s),Ee=/\b(iP[ao]d)/.exec(s),xe=/Android/i.exec(s),Xi=/FBAN\/\w+;/i.exec(s),Yi=/Mobile/i.exec(s),Ui=!!/Win64/.exec(s),t){st=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,st&&document&&document.documentMode&&(st=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);Hi=i?parseFloat(i[1])+4:st,ve=t[2]?parseFloat(t[2]):NaN,be=t[3]?parseFloat(t[3]):NaN,kt=t[4]?parseFloat(t[4]):NaN,kt?(t=/(?:Chrome\/(\d+\.\d+))/.exec(s),Dt=t&&t[1]?parseFloat(t[1]):NaN):Dt=NaN}else st=ve=be=Dt=kt=NaN;if(e){if(e[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);jt=r?parseFloat(r[1].replace("_",".")):!0}else jt=!1;we=!!e[2],ye=!!e[3]}else jt=we=ye=!1}}var Pe={ie:function(){return N()||st},ieCompatibilityMode:function(){return N()||Hi>st},ie64:function(){return Pe.ie()&&Ui},firefox:function(){return N()||ve},opera:function(){return N()||be},webkit:function(){return N()||kt},safari:function(){return Pe.webkit()},chrome:function(){return N()||Dt},windows:function(){return N()||we},osx:function(){return N()||jt},linux:function(){return N()||ye},iphone:function(){return N()||Se},mobile:function(){return N()||Se||Ee||xe||Yi},nativeApp:function(){return N()||Xi},android:function(){return N()||xe},ipad:function(){return N()||Ee}};qi.exports=Pe});var Gi=at((la,Ki)=>{"use strict";var zt=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Tn={canUseDOM:zt,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:zt&&!!(window.addEventListener||window.attachEvent),canUseViewport:zt&&!!window.screen,isInWorker:!zt};Ki.exports=Tn});var es=at((ca,ts)=>{"use strict";var Ji=Gi(),Zi;Ji.canUseDOM&&(Zi=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Mn(s,t){if(!Ji.canUseDOM||t&&!("addEventListener"in document))return!1;var e="on"+s,i=e in document;if(!i){var r=document.createElement("div");r.setAttribute(e,"return;"),i=typeof r[e]=="function"}return!i&&Zi&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}ts.exports=Mn});var as=at((ha,os)=>{"use strict";var In=Qi(),An=es(),is=10,ss=40,rs=800;function ns(s){var t=0,e=0,i=0,r=0;return"detail"in s&&(e=s.detail),"wheelDelta"in s&&(e=-s.wheelDelta/120),"wheelDeltaY"in s&&(e=-s.wheelDeltaY/120),"wheelDeltaX"in s&&(t=-s.wheelDeltaX/120),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(t=e,e=0),i=t*is,r=e*is,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=ss,r*=ss):(i*=rs,r*=rs)),i&&!t&&(t=i<1?-1:1),r&&!e&&(e=r<1?-1:1),{spinX:t,spinY:e,pixelX:i,pixelY:r}}ns.getEventType=function(){return In.firefox()?"DOMMouseScroll":An("wheel")?"wheel":"mousewheel"};os.exports=ns});var cs=at((pa,ls)=>{ls.exports=as()});var Cr=at((Pt,_t)=>{var Yn=1/0,gr=9007199254740991,qn=4294967295,Qn="[object Function]",Kn="[object GeneratorFunction]",Gn="[object RegExp]",Jn="[object Symbol]",Zn=/^(?:0|[1-9]\d*)$/,_i="\\ud800-\\udfff",vr="\\u0300-\\u036f\\ufe20-\\ufe23",br="\\u20d0-\\u20f0",wr="\\ufe0e\\ufe0f",to="["+_i+"]",fi="["+vr+br+"]",mi="\\ud83c[\\udffb-\\udfff]",eo="(?:"+fi+"|"+mi+")",yr="[^"+_i+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Er="\\u200d",Pr=eo+"?",Or="["+wr+"]?",io="(?:"+Er+"(?:"+[yr,xr,Sr].join("|")+")"+Or+Pr+")*",so=Or+Pr+io,ro="(?:"+[yr+fi+"?",fi,xr,Sr,to].join("|")+")",no=RegExp(mi+"(?="+mi+")|"+ro+so,"g"),oo=RegExp("["+Er+_i+vr+br+wr+"]"),Tr=typeof global=="object"&&global&&global.Object===Object&&global,ao=typeof self=="object"&&self&&self.Object===Object&&self,lo=Tr||ao||Function("return this")(),Mr=typeof Pt=="object"&&Pt&&!Pt.nodeType&&Pt,hr=Mr&&typeof _t=="object"&&_t&&!_t.nodeType&&_t,co=hr&&hr.exports===Mr,pr=co&&Tr.process,dr=function(){try{return pr&&pr.binding("util")}catch(s){}}(),ur=dr&&dr.isRegExp;function ho(s){return s.split("")}function po(s){return function(t){return s(t)}}function Ir(s){return oo.test(s)}function uo(s){return Ir(s)?fo(s):ho(s)}function fo(s){return s.match(no)||[]}var mo=Object.prototype,gi=mo.toString,fr=lo.Symbol,mr=fr?fr.prototype:void 0,_r=mr?mr.toString:void 0;function _o(s){return vi(s)&&gi.call(s)==Gn}function go(s,t,e){var i=-1,r=s.length;t<0&&(t=-t>r?0:r+t),e=e>r?r:e,e<0&&(e+=r),r=t>e?0:e-t>>>0,t>>>=0;for(var n=Array(r);++i<r;)n[i]=s[i+t];return n}function Ar(s){if(typeof s=="string")return s;if(To(s))return _r?_r.call(s):"";var t=s+"";return t=="0"&&1/s==-Yn?"-0":t}function vo(s,t,e){var i=s.length;return e=e===void 0?i:e,!t&&e>=i?s:go(s,t,e)}function bo(s,t){return t=t==null?gr:t,!!t&&(typeof s=="number"||Zn.test(s))&&s>-1&&s%1==0&&s<t}function wo(s,t,e){if(!vi(e))return!1;var i=typeof t;return(i=="number"?xo(e)&&bo(t,e.length):i=="string"&&t in e)?yo(e[t],s):!1}function yo(s,t){return s===t||s!==s&&t!==t}function xo(s){return s!=null&&Eo(s.length)&&!So(s)}function So(s){var t=vi(s)?gi.call(s):"";return t==Qn||t==Kn}function Eo(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=gr}function vi(s){var t=typeof s;return!!s&&(t=="object"||t=="function")}function Po(s){return!!s&&typeof s=="object"}var Oo=ur?po(ur):_o;function To(s){return typeof s=="symbol"||Po(s)&&gi.call(s)==Jn}function Mo(s){return s==null?"":Ar(s)}function Io(s,t,e){return e&&typeof e!="number"&&wo(s,t,e)&&(t=e=void 0),e=e===void 0?qn:e>>>0,e?(s=Mo(s),s&&(typeof t=="string"||t!=null&&!Oo(t))&&(t=Ar(t),!t&&Ir(s))?vo(uo(s),0,e):s.split(t,e)):[]}_t.exports=Io});var ko={};Yr(ko,{Callbacks:()=>L,Canvas:()=>et,CanvasMedia:()=>vt,Cursor:()=>pt,EaseInBack:()=>Me,EaseInBounce:()=>Ie,EaseInCirc:()=>Ae,EaseInCubic:()=>Ce,EaseInElastic:()=>Re,EaseInExpo:()=>ke,EaseInOutBack:()=>De,EaseInOutBounce:()=>je,EaseInOutCirc:()=>ze,EaseInOutCubic:()=>Be,EaseInOutElastic:()=>Le,EaseInOutExpo:()=>Ne,EaseInOutQuad:()=>$e,EaseInOutQuart:()=>We,EaseInOutQuint:()=>Fe,EaseInOutSine:()=>Ve,EaseInQuad:()=>He,EaseInQuart:()=>Ue,EaseInQuint:()=>Xe,EaseInSine:()=>Ye,EaseOutBack:()=>qe,EaseOutBounce:()=>tt,EaseOutCirc:()=>Qe,EaseOutCubic:()=>rt,EaseOutElastic:()=>Ke,EaseOutExpo:()=>Ge,EaseOutQuad:()=>Je,EaseOutQuart:()=>Ze,EaseOutQuint:()=>ti,EaseOutSine:()=>ei,InView:()=>wt,Marquee:()=>yt,Module:()=>x,Pointers:()=>xt,Preloader:()=>St,ProgressPreloader:()=>Et,Raf:()=>U,Responsive:()=>Nt,ScrollProgress:()=>ee,Scrollbar:()=>te,Snap:()=>mt,SnapSlide:()=>ft,SplitText:()=>de,Swipe:()=>ot,Timeline:()=>B,addEventListener:()=>y,app:()=>Ro,clamp:()=>w,clampScope:()=>Bt,closest:()=>Rt,damp:()=>Te,easing:()=>ii,inRange:()=>si,initVevet:()=>b,lerp:()=>C,loop:()=>$,normalizeWheel:()=>Oe,onResize:()=>H,presetCssVars:()=>fs,scoped:()=>J,toPixels:()=>M,uid:()=>ge,vevet:()=>$r});var yi=function(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))},Qr=function(){function s(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"}return s}();var Kr=function(){function s(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return s}();var Gr=function(){function s(t,e,i,r){this.name=t,this.version=e,this.os=i,this.bot=r,this.type="bot-device"}return s}();var Jr=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var Zr=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var tn=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,en=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,xi=3,sn=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",tn]],Si=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Pi(s){return s?Ei(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new Zr:typeof navigator!="undefined"?Ei(navigator.userAgent):on()}function rn(s){return s!==""&&sn.reduce(function(t,e){var i=e[0],r=e[1];if(t)return t;var n=r.exec(s);return!!n&&[i,n]},!1)}function Ei(s){var t=rn(s);if(!t)return null;var e=t[0],i=t[1];if(e==="searchbot")return new Jr;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<xi&&(r=yi(yi([],r,!0),an(xi-r.length),!0)):r=[];var n=r.join("."),o=nn(s),a=en.exec(s);return a&&a[1]?new Gr(e,n,o,a[1]):new Qr(e,n,o)}function nn(s){for(var t=0,e=Si.length;t<e;t++){var i=Si[t],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function on(){var s=typeof process!="undefined"&&process.version;return s?new Kr(process.version.slice(1)):null}function an(s){for(var t=[],e=0;e<s;e++)t.push("0");return t}var ln=Object.defineProperty,cn=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,Ti=(s,t,e)=>t in s?ln(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,Tt=(s,t)=>{for(var e in t||(t={}))pn.call(t,e)&&Ti(s,e,t[e]);if(Oi)for(var e of Oi(t))dn.call(t,e)&&Ti(s,e,t[e]);return s},Mt=(s,t)=>cn(s,hn(t));var un="Window is not available and no user agent was provided.",fn=()=>{var s,t;if(typeof window!="undefined"){let e=((s=window==null?void 0:window.navigator)==null?void 0:s.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.vendor)||(window==null?void 0:window.opera);if(e)return e}return console.error(un),""},It={isInApp:!1,appKey:void 0,appName:void 0,skipped:!1},mn=s=>s.match(/(iPhone|iPad|iPod|Macintosh)/)!==null,_n=({skip:s,appKey:t,ua:e})=>{if(!s||s.length===0)return!1;let i=mn(e);return s.some(({appKey:r,platform:n})=>t===r&&(!n||i&&n==="apple"||!i&&n==="android"))},zo=new RegExp(/Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[^\s]+ \(KHTML, like Gecko\) Version\/[^\s]+ (Mobile\/[^\s]+ )?Safari\/[^\s]+$/);var gn=()=>"TelegramWebview"in window||"TelegramWebviewProxy"in window||"TelegramWebviewProxyProto"in window,Mi={telegram:{name:"Telegram"}},vn=()=>{if(typeof window!="undefined"&&gn())return"telegram"},Bo=Object.keys(Mi),ue={messenger:{regex:/(\bFB[\w_]+\/(Messenger))|(^(?!.*\buseragents)(?!.*\bIABMV).*(FB_IAB|FBAN).*)/i,name:"Facebook Messenger"},instagram:{regex:/\bInstagram/i,name:"Instagram"},facebook:{regex:/\bFB[\w_]+\/|\bFacebook/i,name:"Facebook"},twitter:{regex:/\bTwitter/i,name:"Twitter"},line:{regex:/\bLine\//i,name:"Line"},wechat:{regex:/\bMicroMessenger\//i,name:"WeChat"},threads:{regex:/\bBarcelona/i,name:"Threads"},tiktok:{regex:/musical_ly|Bytedance/i,name:"TikTok"},snapchat:{regex:/Snapchat/i,name:"Snapchat"},linkedin:{regex:/LinkedInApp/i,name:"LinkedIn"},gsa:{regex:/GSA/i,name:"Google Search App"},whatsapp:{regex:/\b(WAiOS|WA4A)\//i,name:"WhatsApp"}},bn=Object.keys(ue),wn=s=>bn.find(t=>ue[t].regex.test(s)),yn=["WebView","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv\\)"],xn=new RegExp(`${yn.map(s=>`(${s})`).join("|")}`,"i");var Sn=(s={})=>{var t,e;let{skip:i,ua:r=""}=s,n=r||fn();if(!n)return Mt(Tt({},It),{ua:n});let o=l=>_n({skip:i,appKey:l,ua:n}),a=wn(n);if(a||n.match(xn)!==null)return o(a)?Mt(Tt({},It),{ua:n,skipped:!0}):{isInApp:!0,appKey:a,appName:a?ue[a].name:void 0,ua:n,skipped:!1};let c=vn();return c?o(c)?Mt(Tt({},It),{ua:n,skipped:!0}):{isInApp:!0,appKey:c,appName:(e=(t=Mi)==null?void 0:t[c])==null?void 0:e.name,ua:n,skipped:!1}:Mt(Tt({},It),{ua:n})};var Ii=Sn;var fe=/iPhone/i,Ai=/iPod/i,Ci=/iPad/i,Ri=/\biOS-universal(?:.+)Mac\b/i,me=/\bAndroid(?:.+)Mobile\b/i,ki=/Android/i,lt=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,At=/Silk/i,G=/Windows Phone/i,Di=/\bWindows(?:.+)ARM\b/i,ji=/BlackBerry/i,zi=/BB10/i,Bi=/Opera Mini/i,Li=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ni=/Mobile(?:.+)Firefox\b/i,$i=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function En(s){return function(t){return t.test(s)}}function Ct(s){var t={userAgent:"",platform:"",maxTouchPoints:0};!s&&typeof navigator!="undefined"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof s=="string"?t.userAgent=s:s&&s.userAgent&&(t={userAgent:s.userAgent,platform:s.platform,maxTouchPoints:s.maxTouchPoints||0});var e=t.userAgent,i=e.split("[FBAN");typeof i[1]!="undefined"&&(e=i[0]),i=e.split("Twitter"),typeof i[1]!="undefined"&&(e=i[0]);var r=En(e),n={apple:{phone:r(fe)&&!r(G),ipod:r(Ai),tablet:!r(fe)&&(r(Ci)||$i(t))&&!r(G),universal:r(Ri),device:(r(fe)||r(Ai)||r(Ci)||r(Ri)||$i(t))&&!r(G)},amazon:{phone:r(lt),tablet:!r(lt)&&r(At),device:r(lt)||r(At)},android:{phone:!r(G)&&r(lt)||!r(G)&&r(me),tablet:!r(G)&&!r(lt)&&!r(me)&&(r(At)||r(ki)),device:!r(G)&&(r(lt)||r(At)||r(me)||r(ki))||r(/\bokhttp\b/i)},windows:{phone:r(G),tablet:r(Di),device:r(G)||r(Di)},other:{blackberry:r(ji),blackberry10:r(zi),opera:r(Bi),firefox:r(Ni),chrome:r(Li),device:r(ji)||r(zi)||r(Bi)||r(Ni)||r(Li)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}function S(s,t){s.classList.add(t)}function Q(s,t){t&&s.classList.remove(t)}function D(s,t,e){t&&s.classList.toggle(t,e)}function Z(s,t){return s.classList.contains(t)}var R=typeof window!="undefined",g=R?document:void 0,I=R?g.documentElement:void 0,k=R?g.body:void 0;var Wi={version:"5.8.0"};function _(s,t,e){let i=e.value;e.value=function(...n){if(!this._isDestroyed)return i.apply(this,n)}}function _e(s){try{s()}catch(t){console.error(t)}}function Rt(s,t){return!Array.isArray(t)||t.length===0?s:t.reduce((e,i)=>Math.abs(i-s)<Math.abs(e-s)?i:e)}function j(s){return typeof s=="number"}function M(s){if(!R)return 0;let t=b();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,t.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(s))return window.vevet5_toPixelsCache.get(s);let e=0,i=parseFloat(`${s}`);return j(s)?e=s:Number.isNaN(i)?e=0:s.includes("rem")?e=i*t.rem:s.includes("vw")?e=i*t.vw:s.includes("vh")?e=i*t.vh:s.includes("svh")?e=i*t.svh:s.includes("px")&&(e=i),window.vevet5_toPixelsCache.set(s,e),e}var Fi=0;function ge(s="id"){return Fi+=1,`${s}_${Fi}`}var gt=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},On=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(e[i[r]]=s[i[r]]);return e},L=class{constructor(t={}){this._props=t,this._isDestroyed=!1,this._list=[]}get list(){return this._list}add(t,e,i={}){let r=ge("callback");return this._list.push(Object.assign(Object.assign({},i),{id:r,target:t,action:e})),{id:r,remove:()=>this.remove(r)}}on(t,e,i={}){let r=this.add(t,e,i);return()=>{r.remove()}}remove(t){return this._remove(t)}_remove(t,e=!1){return this._list=this._list.filter(r=>!!(r.id!==t||r.protected&&!e)),!this._list.some(({id:r})=>r===t)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(t,e){var{id:i,timeout:r,action:n}=t,o=On(t,["id","timeout","action"]);let{ctx:a}=this._props;r?setTimeout(()=>_e(()=>n(e,a)),r):_e(()=>n(e,a)),o.once&&this._remove(i,!0)}emit(t,e){this._list.forEach(i=>{i.target===t&&this._callAction(i,e)})}destroy(){this._removeAll(),this._isDestroyed=!0}};gt([_],L.prototype,"add",null);gt([_],L.prototype,"on",null);gt([_],L.prototype,"remove",null);gt([_],L.prototype,"emit",null);gt([_],L.prototype,"destroy",null);function y(s,t,e,i){return s.addEventListener(t,e,i),()=>{s.removeEventListener(t,e,i)}}var hs=wi(cs());function Oe(s){return(0,hs.default)(s)}function H({callback:s,element:t,viewportTarget:e="width",resizeDebounce:i=0,name:r}){let n=b(),o,a,c,l=h=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>s(),h!=null?h:i)};return t&&(a=new ResizeObserver(()=>{l(n.props.resizeDebounce+i)}),(Array.isArray(t)?t:[t]).forEach(h=>{a==null||a.observe(h)})),e&&(c=n.onResize(e,()=>l(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),c==null||c()},resize:()=>s(),debounceResize:()=>l()}}function ps({prefix:s,applyClassNames:t}){let e=new L,i=!1;g.readyState==="complete"?setTimeout(()=>r(),0):y(window,"load",()=>r());function r(){let{body:o}=document;i=!0,t&&(Q(I,`${s}loading`),Q(o,`${s}loading`),S(I,`${s}loaded`)),e.emit("loaded",void 0)}function n(o){return i?(o(),()=>{}):e.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>i}}function A(s){return j(s)&&!Number.isNaN(s)&&Number.isFinite(s)}function ds({prefix:s,props:t,isMobile:e,isInApp:i,browserName:r}){let n=g.getElementById("vevet_css_preset");n||(n=g.createElement("style"),n.id="vevet_css_preset",k.appendChild(n));let o=g.createElement("div"),{style:a}=o;o.id="vevet_svh_helper",a.position="fixed",a.top="-100svh",a.left="-100px",a.width="1px",a.height="100svh",k.appendChild(o);let c=new L,l={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio};u(),d(),m();let h;function p(){h&&(clearTimeout(h),h=void 0),t.resizeDebounce?h=setTimeout(()=>v(),t.resizeDebounce):v()}y(window,"resize",()=>p());let f=new ResizeObserver(()=>p());f.observe(I),f.observe(k);function v(){let{width:E,height:P}=l;u(),d(),m();let{width:T,height:O}=l;c.emit("trigger",void 0),(T!==E||O!==P)&&c.emit("any",void 0),T!==E&&O===P&&c.emit("onlyWidth",void 0),O!==P&&T===E&&c.emit("onlyHeight",void 0),T!==E&&O!==P&&c.emit("both",void 0),T!==E&&c.emit("width",void 0),O!==P&&c.emit("height",void 0)}function u(){let{width:E}=l,P=window.innerWidth,T=window.innerHeight;l.width=P,l.height=T,l.scrollbarWidth=P-I.clientWidth,l.vw=l.width/100,l.vh=l.height/100;let O=getComputedStyle(I),X=parseFloat(O.fontSize);if(l.rem=A(X)?X:16,l.landscape=l.width>l.height,l.portrait=l.width<l.height,l.dpr=window.devicePixelRatio,l.lowerDpr=e?Math.min(l.dpr,2):1,e&&(i||r.includes("fxios"))){let F=I.clientHeight;(E!==l.width||!l.sHeight||E===l.width&&F<l.sHeight)&&(l.sHeight=F,l.svh=l.sHeight/100)}else l.svh=o.clientHeight/100||I.clientHeight/100,l.sHeight=l.svh*100}function d(){t.applyClassNames&&(D(I,`${s}landscape`,l.landscape),D(I,`${s}portrait`,l.portrait))}function m(){n.innerHTML=`
|
|
2
2
|
html {
|
|
3
3
|
--vw: ${l.vw}px;
|
|
4
4
|
--vh: ${l.vh}px;
|
|
5
5
|
--svh: ${l.svh}px;
|
|
6
6
|
--scrollbar-width: ${l.scrollbarWidth}px;
|
|
7
7
|
}
|
|
8
|
-
`}return{data:l,callbacks:c}}function
|
|
8
|
+
`}return{data:l,callbacks:c}}function us(s){var t;let i=Object.assign(Object.assign({},{resizeDebounce:0,easing:[.25,.1,.25,1],applyClassNames:!1}),s),r="v-",n=Pi(),o=Ct(),a=(t=(n==null?void 0:n.os)||"")===null||t===void 0?void 0:t.split(" ")[0].toLowerCase(),c=((n==null?void 0:n.name)||"").toLowerCase(),l=o.phone||o.tablet,{isInApp:h,appName:p}=Ii(),f=h?(p||"unknown").toLowerCase():!1,v=ps({prefix:r,applyClassNames:i.applyClassNames}),u=ds({prefix:r,props:i,isMobile:l,isInApp:h,browserName:c}),d=Object.assign(Object.assign({},u.data),{viewportCallbacks:u.callbacks,version:Wi.version,props:i,prefix:r,phone:o.phone,tablet:o.tablet,mobile:l,osName:a,browserName:c,inAppBrowser:f,doc:g,html:I,body:k,loaded:!1,onLoad:v.onLoad,onResize:(...m)=>u.callbacks.on(...m)});return v.onLoad(()=>{d.loaded=!0}),u.callbacks.add("trigger",()=>{Object.keys(u.data).forEach(E=>{d[E]=u.data[E]})},{protected:!0,name:"vevet core"}),function(){i.applyClassNames&&(S(I,`${r}os-${a}`),S(I,`${r}browser-${c}`),D(I,`${r}phone`,d.phone),D(I,`${r}tablet`,d.tablet),D(I,`${r}mobile`,d.mobile))}(),d}function b(){var s;if(!R)return;if(window.vevet5)return window.vevet5;let t=(s=window.VEVET_PROPS)!==null&&s!==void 0?s:{},e=us(t);return window.vevet5=e,window.vevet5}R&&(window.vevet5=b());var fs=`var presetVevetCss = function update() {
|
|
9
9
|
if (window.vevet5) {
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
@@ -33,7 +33,7 @@ var presetVevetCssObserver = new ResizeObserver(presetVevetCss);
|
|
|
33
33
|
presetVevetCssObserver.observe(document.documentElement);
|
|
34
34
|
presetVevetCssObserver.observe(document.body);
|
|
35
35
|
|
|
36
|
-
presetVevetCss();`;function w(s,t=0,e=1){let i=Math.min(t,e),r=Math.max(t,e);return Math.max(i,Math.min(s,r))}function J(s,t=0,e=1){return(s-t)/(e-t)}function Bt(s,t=[0,1],e=[0,1]){let i=J(s,t[0],t[1]);return w(i,e[0],e[1])}function A(s,t,e,i=0){let r=s+(t-s)*e;return Math.abs(t-r)<=i?t:r}function Oe(s,t,e,i,r=0){return A(s,t,1-Math.exp(-e*60*(i/1e3)),r)}var Te=s=>2.70158*s*s*s-1.70158*s*s;var tt=s=>s<.36363636363636365?7.5625*s*s:s<.7272727272727273?7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?7.5625*(s-=.8181818181818182)*s+.9375:7.5625*(s-=.9545454545454546)*s+.984375;var Me=s=>1-tt(1-s);var Ie=s=>1-Math.sqrt(1-Math.pow(s,2));var Ae=s=>Math.pow(s,3);var Ce=s=>{let t=2*Math.PI/3;return s===0?0:s===1?1:-Math.pow(2,10*s-10)*Math.sin((s*10-10.75)*t)};var Re=s=>s===0?0:Math.pow(2,10*s-10);var ke=s=>{let e=2.5949095;return s<.5?Math.pow(2*s,2)*((e+1)*2*s-e)/2:(Math.pow(2*s-2,2)*((e+1)*(s*2-2)+e)+2)/2};var De=s=>s<.5?(1-tt(1-2*s))/2:(1+tt(2*s-1))/2;var je=s=>s<.5?(1-Math.sqrt(1-Math.pow(2*s,2)))/2:(Math.sqrt(1-Math.pow(-2*s+2,2))+1)/2;var ze=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2;var Be=s=>{let t=2*Math.PI/4.5;return s===0?0:s===1?1:s<.5?-(Math.pow(2,20*s-10)*Math.sin((20*s-11.125)*t))/2:Math.pow(2,-20*s+10)*Math.sin((20*s-11.125)*t)/2+1};var Le=s=>s===0?0:s===1?1:s<.5?Math.pow(2,20*s-10)/2:(2-Math.pow(2,-20*s+10))/2;var Ne=s=>s<.5?2*s*s:1-Math.pow(-2*s+2,2)/2;var $e=s=>s<.5?8*s*s*s*s:1-Math.pow(-2*s+2,4)/2;var We=s=>s<.5?16*s*s*s*s*s:1-Math.pow(-2*s+2,5)/2;var Fe=s=>-(Math.cos(Math.PI*s)-1)/2;var Ve=s=>Math.pow(s,2);var He=s=>Math.pow(s,4);var Ue=s=>Math.pow(s,5);var Xe=s=>1-Math.cos(s*Math.PI/2);var Ye=s=>1+2.70158*Math.pow(s-1,3)+1.70158*Math.pow(s-1,2);var qe=s=>Math.sqrt(1-Math.pow(s-1,2));var rt=s=>1-Math.pow(1-s,3);var Qe=s=>{let t=2*Math.PI/3;return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s*10-.75)*t)+1};var Ke=s=>s===1?1:1-Math.pow(2,-10*s);var Ge=s=>1-Math.pow(1-s,2);var Je=s=>1-Math.pow(1-s,4);var Ze=s=>1-Math.pow(1-s,5);var ti=s=>Math.sin(s*Math.PI/2);function fs(s,t){let[e,i,r,n]=t;if(e===i&&r===n)return s;let o=[];for(let a=0;a<11;++a)o[a]=Lt(a*.1,e,r);return s===0?0:s===1?1:Lt(An(t,s,o),i,n)}function Lt(s,t,e){return((ms(t,e)*s+_s(t,e))*s+gs(t))*s}function ms(s,t){return 1-3*t+3*s}function _s(s,t){return 3*t-6*s}function gs(s){return 3*s}function An(s,t,e){let i=s[0],r=s[2],n=0,o=1;for(;o!==10&&e[o]<=t;++o)n+=.1;--o;let a=(t-e[o])/(e[o+1]-e[o]),c=n+a*.1,l=vs(c,i,r);return l>=.001?Cn(t,c,i,r):l===0?c:Rn(t,n,n+.1,i,r)}function vs(s,t,e){return 3*ms(t,e)*s*s+2*_s(t,e)*s+gs(t)}function Cn(s,t,e,i){for(let r=0;r<4;++r){let n=vs(t,e,i);if(n===0)return t;let o=Lt(t,e,i)-s;t-=o/n}return t}function Rn(s,t,e,i,r){let n,o,a=0;do o=t+(e-t)/2,n=Lt(o,i,r)-s,n>0?e=o:t=o;while(Math.abs(n)>1e-7&&++a<10);return o}function bs(s,t=!1){return Array.isArray(t)?fs(s,t):typeof t=="function"?t(s):s}var ei=(s,t)=>{var e;return t===void 0&&(t=(e=b().props.easing)!==null&&e!==void 0?e:!1),bs(s,t)};function ii(s,t=0,e=1){let i=Math.min(t,e),r=Math.max(t,e);return s>=i&&s<=r}function $(s,t,e){let i=e-t;return((s-t)%i+i)%i+t}function ws(s,t){let r=Object.keys(t).filter(n=>t[n]!==void 0).reduce((n,o)=>(n[o]=t[o],n),{});return Object.assign(Object.assign({},s),r)}var si=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},x=class{_getStatic(){return{__staticProp:!0}}_getMutable(){return{__mutableProp:!0}}get props(){return this._props}get prefix(){return b().prefix}get name(){return this.constructor.name}get isDestroyed(){return this._isDestroyed}get callbacks(){return this._callbacks}constructor(t,e){this._isDestroyed=!1,this._destroyable=[],this._callbacks=new L({ctx:this}),this._props=ws(Object.assign(Object.assign({},this._getStatic()),this._getMutable()),Object.assign({},t)),e&&Object.keys(e).filter(r=>r.startsWith("on")).forEach(r=>{let n=r.slice(2);n=n.charAt(0).toLowerCase()+n.slice(1),this._callbacks.on(n,e[r])})}_handleProps(){this.callbacks.emit("props",void 0)}updateProps(t){this._props=Object.assign(Object.assign({},this._props),t),this._handleProps()}onDestroy(t){if(this.isDestroyed){t();return}this._destroyable.push(t)}on(t,e,i={}){return this.callbacks.on(t,e,i)}_cn(...t){return t.map(e=>`${this.prefix}${e}`).join(" ")}_addTempClassName(t,e){Z(t,e)||(S(t,e),this.onDestroy(()=>X(t,e)))}destroy(){this._destroy()}_destroy(){this._callbacks.emit("destroy",void 0),this._callbacks.destroy(),this._destroyable.forEach(t=>t()),this._isDestroyed=!0}};si([_],x.prototype,"updateProps",null);si([_],x.prototype,"on",null);si([_],x.prototype,"destroy",null);var kn=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Nt=class{get props(){return this._props}constructor(t,e,i){this._source=t,this._rules=e,this._onChange=i,this._isDestroyed=!1,this._destructors=[],this._prevBreakpoints="[]";let r=t,n=b(),o=r instanceof x?r.name:"Object";if(this._fetchInitProps(),this._props=Object.assign({},this._initProps),r instanceof x){r.on("destroy",()=>this.destroy(),{name:this.constructor.name,protected:!0});let a=r.updateProps.bind(r);r.updateProps=c=>{a(c),this._initProps=Object.assign(Object.assign({},this._initProps),c)},Object.defineProperty(r,"_$_responseProps",{value:c=>{a(c)}})}this._handleUpdate(),this._destructors.push(n.onResize("any",()=>this._handleUpdate(),{name:`${this.constructor.name} / ${o}`}))}_fetchInitProps(){let t=this._source;if(t instanceof x){this._initProps={},Object.keys(t._getMutable()).forEach(i=>{this._initProps[i]=t.props[i]});return}this._initProps=this._source}_getActiveRules(){let t=b();return this._rules.filter(({at:i})=>i==="tablet "&&t.tablet||i==="phone"&&t.phone||i==="mobile"&&t.mobile||i==="non_mobile"&&!t.mobile||i==="portrait"&&t.portrait||i==="landscape"&&t.landscape?!0:i.startsWith("@media")?window.matchMedia(i.replace("@media","")).matches:!1)}_getResponsiveProps(){let t=this._getActiveRules(),e={};return t.forEach(({props:i})=>{e=Object.assign(Object.assign({},e),i)}),e}_handleUpdate(){var t;let i=this._getActiveRules().map(({at:n})=>n),r=JSON.stringify(i);this._prevBreakpoints!==r&&(this._prevBreakpoints=r,this._props=Object.assign(Object.assign({},this._initProps),this._getResponsiveProps()),this._source instanceof x&&this._source._$_responseProps(this._props),(t=this._onChange)===null||t===void 0||t.call(this,this.props))}destroy(){this._isDestroyed=!0,this._destructors.forEach(t=>t())}};kn([_],Nt.prototype,"destroy",null);var $t={__staticProp:!0,container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0},Wt={__mutableProp:!0,width:"auto",height:"auto",dpr:"auto"};var ys=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},et=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),$t)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Wt)}constructor(t,e){super(t,e),this._width=0,this._height=0,this._dpr=1;let{container:i}=this.props;this._canvas=g.createElement("canvas");let{style:r}=this._canvas;r.position="absolute",r.top="0",r.left="0",r.width="100%",r.height="100%",this.props.append&&i instanceof HTMLElement&&i.append(this._canvas),this._ctx=this._canvas.getContext("2d"),this._setEvents()}get canvas(){return this._canvas}get ctx(){return this._ctx}get width(){return this._width}get offsetWidth(){return this.width/this.dpr}get height(){return this._height}get offsetHeight(){return this.height/this.dpr}get dpr(){return this._dpr}get canRender(){return this.width>0&&this.height>0}_handleProps(){super._handleProps(),this.resize()}_setEvents(){let{props:t}=this,{viewportTarget:e,resizeDebounce:i}=t;if(t.resizeOnInit&&this.resize(),!t.resizeOnRuntime)return;let r=V({callback:()=>this.resize(),element:this.props.container,viewportTarget:e,resizeDebounce:i,name:this.name});this.onDestroy(()=>r.remove())}resize(){let t=b(),{props:e,canvas:i}=this,{container:r}=this.props;this._dpr=D(e.dpr)?e.dpr:t.dpr;let n=0,o=0;e.width==="auto"?n=(r==null?void 0:r.offsetWidth)||t.width:n=e.width,e.height==="auto"?o=(r==null?void 0:r.offsetHeight)||t.height:o=e.height,n*=this._dpr,o*=this._dpr,this._width=n,this._height=o,i.width=n,i.height=o,this.callbacks.emit("resize",void 0)}render(t){this.canRender&&t({ctx:this.ctx,width:this.width,height:this.height,dpr:this.dpr,offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,canvas:this.canvas})}_destroy(){super._destroy(),this.canvas.remove()}};ys([_],et.prototype,"resize",null);ys([_],et.prototype,"render",null);function Ft(s){let t=jn(s),e=Dn(s),i;return s.rule==="cover"?i=zn(s,t,e):s.rule==="contain"?i=Bn(s,t,e):s.rule==="top-left"?i=Ln(s,e):s.rule==="top-right"?i=Nn(s,t,e):s.rule==="bottom-left"?i=$n(s,t,e):s.rule==="bottom-right"?i=Wn(s,t,e):s.rule==="center"&&(i=Fn(s,t,e)),Object.assign(i,{sourceWidth:e.width,sourceHeight:e.height})}function j(s){return typeof s.scale!="undefined"?s.scale:1}function Dn(s){let{source:t}=s;return s.sourceWidth&&s.sourceHeight?{width:s.sourceWidth,height:s.sourceHeight}:t instanceof HTMLVideoElement?{width:t.videoWidth,height:t.videoHeight}:t instanceof HTMLImageElement?{width:t.naturalWidth,height:t.naturalHeight}:{width:t.width,height:t.height}}function jn(s){return"container"in s?{width:s.container.clientWidth,height:s.container.clientHeight}:{width:s.width,height:s.height}}function zn(s,t,e){let i=t.width*j(s),r=e.height*i/e.width;r/j(s)<t.height&&(r=t.height*j(s),i=e.width*r/e.height);let n=(t.width-i)/2,o=(t.height-r)/2;return{width:i,height:r,x:n,y:o}}function Bn(s,t,e){let i=0,r=0,n=e.width/e.height;t.width>t.height?(r=t.height,i=r*n,i>t.width&&(i=t.width,r=i/n)):t.height>=t.width&&(i=t.width,r=i/n,r>t.height&&(r=t.height,i=r*n)),i*=j(s),r*=j(s);let o=(t.width-i)/2,a=(t.height-r)/2;return{width:i,height:r,x:o,y:a}}function Ln(s,t){let e=t.width*j(s),i=t.height*j(s);return{width:e,height:i,x:0,y:0}}function Nn(s,t,e){let i=e.width*j(s),r=e.height*j(s),n=t.width-e.width;return{width:i,height:r,x:n,y:0}}function $n(s,t,e){let i=e.width*j(s),r=e.height*j(s),n=t.height-e.height;return{width:i,height:r,x:0,y:n}}function Wn(s,t,e){let i=e.width*j(s),r=e.height*j(s),n=t.width-e.width,o=t.height-e.height;return{width:i,height:r,x:n,y:o}}function Fn(s,t,e){let i=e.width*j(s),r=e.height*j(s),n=(t.width-e.width)/2,o=(t.height-e.height)/2;return{width:i,height:r,x:n,y:o}}var xs=Object.assign(Object.assign({},$t),{media:null,autoRenderVideo:!0}),Ss=Object.assign(Object.assign({},Wt),{rule:"cover"});var Es=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vt=class extends et{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),xs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Ss)}constructor(t,e){super(t,e),this._setMediaEvents()}get hasRequestVideoFrameCallback(){return"requestVideoFrameCallback"in this.props.media}_setMediaEvents(){let{autoRenderVideo:t,media:e}=this.props;if(!t||!(e instanceof HTMLVideoElement))return;if(this.hasRequestVideoFrameCallback){this._requestVideoFrame();return}let i=y(e,"timeupdate",()=>{this.render()});this.onDestroy(()=>i())}resize(){super.resize(),this.render()}_requestVideoFrame(){if(this.isDestroyed)return;this.render();let{media:t}=this.props;t instanceof HTMLVideoElement&&t.requestVideoFrameCallback(()=>this._requestVideoFrame())}render(){super.render(t=>this._prerender(t))}_prerender({width:t,height:e,ctx:i}){let{media:r,rule:n}=this.props,o,a,c;r instanceof et?(o=r.canvas,a=r.width,c=r.height):o=r;let l=Ft({source:o,sourceWidth:a,sourceHeight:c,rule:n,scale:1,width:t,height:e});i.clearRect(0,0,t,e),i.drawImage(o,l.x,l.y,l.width,l.height),this.callbacks.emit("render",void 0)}};Es([_],vt.prototype,"resize",null);Es([_],vt.prototype,"render",null);function z(s){return D(s)&&!Number.isNaN(s)&&Number.isFinite(s)}function it(s){return window.getComputedStyle(s).direction}var Ps={__staticProp:!0},Os={__mutableProp:!0,fps:"auto",enabled:!1,fpsRecalcFrames:10};var Ts=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},H=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ps)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Os)}constructor(t,e){super(t,e),this._isPlaying=!1,this._raf=null,this._lastTimestamp=null,this._timestamp=null,this._index=0,this._fps=60,this._duration=0,this._fps=this.props.fps==="auto"?this._fps:this.props.fps,this.props.enabled&&this._play()}get isPlaying(){return this._isPlaying}get timestamp(){var t;return(t=this._timestamp)!==null&&t!==void 0?t:0}get index(){return this._index}get fps(){return this._fps}get duration(){return this._duration}get fpsFactor(){return 60/this.fps}_handleProps(){super._handleProps(),this._lastTimestamp=null,this.props.enabled?this._play():this._pause()}play(){this.props.enabled||this.updateProps({enabled:!0})}_play(){this.isPlaying||(this._isPlaying=!0,this.callbacks.emit("play",void 0),this.callbacks.emit("toggle",void 0),this._raf=window.requestAnimationFrame(this._animate.bind(this)))}pause(){this.props.enabled&&this.updateProps({enabled:!1})}_pause(){this.isPlaying&&(this._raf&&(window.cancelAnimationFrame(this._raf),this._raf=null),this._isPlaying=!1,this.callbacks.emit("pause",void 0),this.callbacks.emit("toggle",void 0))}_animate(){var t,e;if(!this._isPlaying)return;this._raf=window.requestAnimationFrame(this._animate.bind(this));let i=this.props.fps==="auto"?1:1e3/this.props.fps;this._timestamp=performance.now(),(t=this._lastTimestamp)!==null&&t!==void 0||(this._lastTimestamp=this._timestamp);let r=this._timestamp-((e=this._lastTimestamp)!==null&&e!==void 0?e:this._timestamp);r<i||(this._duration=r,this._lastTimestamp=this._timestamp,this._index+=1,this._computeFPS(),this.callbacks.emit("frame",{fps:this.fps,fpsFactor:this.fpsFactor,duration:this.duration,lerpFactor:this.lerpFactor.bind(this)}))}lerpFactor(t){return 1-Math.exp(-t*60*(this.duration/1e3))}_computeFPS(){let{duration:t,index:e,props:i}=this;if(e>10&&e%i.fpsRecalcFrames!==0||t<=0||t>250)return;let o=1e3/60/t;this._fps=Math.round(60*o)||1}_destroy(){this.pause(),super._destroy()}};Ts([_],H.prototype,"play",null);Ts([_],H.prototype,"pause",null);function ct(s){return typeof s=="string"}var Vt=class{constructor(t,e,i){this._data=t,this._onEnter=e,this._onLeave=i,this._debounce=null,this._isHovered=!1,this._parallaxX={current:0,target:0,prevTarget:null},this._parallaxY={current:0,target:0,prevTarget:null};let{emitter:r}=this;r.matches(":hover")&&this._handleElementEnter(),this._mouseEnter=y(r,"mouseenter",()=>{var n;this._debounce=setTimeout(()=>this._handleElementEnter(),(n=t.hoverDebounce)!==null&&n!==void 0?n:16)}),this._mouseLeave=y(r,"mouseleave",()=>{this._debounce&&clearTimeout(this._debounce),this._handleElementLeave()}),this._mouseMove=y(r,"mousemove",n=>{this._handleElementMove(n)})}get element(){return this._data.element}get emitter(){var t;return(t=this._data.emitter)!==null&&t!==void 0?t:this._data.element}get type(){return this._data.type}get snap(){var t;return(t=this._data.snap)!==null&&t!==void 0?t:!1}get width(){return this._data.width==="auto"?"auto":this._data.width?T(this._data.width):null}get height(){return this._data.height==="auto"?"auto":this._data.height?T(this._data.height):null}get padding(){return this._data.padding?T(this._data.padding):0}get sticky(){var t;return(t=this._data.sticky)!==null&&t!==void 0?t:!1}get stickyLerp(){var t;return(t=this._data.stickyLerp)!==null&&t!==void 0?t:void 0}get stickyFriction(){var t;return(t=this._data.stickyFriction)!==null&&t!==void 0?t:0}get hasStickyFriction(){return z(this.stickyFriction)&&this.stickyFriction>0}getDimensions(){let t,e,i,r,n=0,o=this.element.getBoundingClientRect();return this.snap&&(t=o.left+o.width/2,e=o.top+o.height/2),this.width==="auto"?i=o.width:D(this.width)&&(i=this.width),this.height==="auto"?r=o.height:D(this.height)&&(r=this.height),n=this.padding,{x:t,y:e,width:i,height:r,padding:n}}destroy(){this._mouseEnter(),this._mouseMove(),this._mouseLeave(),this._debounce&&clearTimeout(this._debounce)}_handleElementEnter(){this._isHovered=!0,this._onEnter(this)}_handleElementLeave(){this._isHovered=!1,this._parallaxX.target=0,this._parallaxX.prevTarget=null,this._parallaxY.target=0,this._parallaxY.prevTarget=null,this._onLeave(this)}_handleElementMove(t){if(!this.sticky||!this._isHovered)return;let{element:e,_parallaxX:i,_parallaxY:r}=this,{clientX:n,clientY:o}=t,a=e.getBoundingClientRect(),c=getComputedStyle(e).transform,l=c==="none"?new DOMMatrix:new DOMMatrix(c),{width:h,height:p}=a,f=l.e,v=l.f,u=a.left-f,d=a.top-v,m=u+h/2,E=d+p/2,P=n-m,O=o-E,M=this._getStickyAmplitude(),q=M.x==="auto"?h:Math.abs(M.x),Q=M.y==="auto"?p:Math.abs(M.y),K=w(P,-q,q),F=w(O,-Q,Q);if(i.prevTarget===null&&(i.prevTarget=K),r.prevTarget===null&&(r.prevTarget=F),this.hasStickyFriction){let U=K-i.prevTarget,$r=F-r.prevTarget;i.target+=U,r.target+=$r}else i.target=K,r.target=F;i.prevTarget=K,r.prevTarget=F}_getStickyAmplitude(){let{stickyAmplitude:t}=this._data,e="auto",i="auto";return t?(D(t)||ct(t)?(e=this._getStickyAmplitudeAxis(t),i=this._getStickyAmplitudeAxis(t)):("x"in t&&(e=this._getStickyAmplitudeAxis(t.x)),"y"in t&&(i=this._getStickyAmplitudeAxis(t.y))),{x:e,y:i}):{x:e,y:i}}_getStickyAmplitudeAxis(t){return D(t)?t:!t||t==="auto"?"auto":T(t)}get isInterpolated(){return this._parallaxX.current===this._parallaxX.target&&this._parallaxY.current===this._parallaxY.target}render(t){let{_parallaxX:e,_parallaxY:i}=this,r=this.element;if(!this.sticky||this.isInterpolated)return;if(this.hasStickyFriction){let o=t(this.stickyFriction);e.target=A(e.target,0,o,1e-4),i.target=A(i.target,0,o,1e-4)}let n=t(this.stickyLerp);e.current=A(e.current,e.target,n,1e-4),i.current=A(i.current,i.target,n,1e-4),r.style.transform=`translate3d(${e.current}px, ${i.current}px, 0)`}};var ri=s=>{let t=`M${s[0].x},${s[0].y}`;for(let e=0;e<s.length-1;e+=1){let i=(s[e].x+s[e+1].x)/2,r=(s[e].y+s[e+1].y)/2;t+=`Q ${s[e].x}, ${s[e].y}, ${i}, ${r}`}return t+=`L ${s[s.length-1].x}, ${s[s.length-1].y}`,t};var Ht=class{get path(){return this._path}constructor(t){this._isEnabled=t,this._points=[],this._line={current:0,target:0},this._path=document.createElementNS("http://www.w3.org/2000/svg","path");let e=this._path;e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("fill","transparent"),e.setAttribute("stroke","#f00")}addPoint(t,e=!1){if(!this._isEnabled)return;let i=this._points,r=this._path,n=this._line,o={x:t.x,y:t.y,length:0};i.push(o),r.setAttribute("d",ri(i));let a=r.getTotalLength();o.length=a,n.target=a,e&&(n.current=n.target)}minimize(){if(!this._isEnabled)return;let t=this._points,e=this._line;if(t.length<3)return;let i=0,r=0;for(let n=1;n<t.length;n+=1){let o=t[n].x-t[n-1].x,a=t[n].y-t[n-1].y,c=Math.hypot(o,a);if(i+c<e.current)i+=c,r+=1;else break}if(z(r)&&r>0){let n=0;for(let o=1;o<=r;o+=1){let a=t[o].x-t[o-1].x,c=t[o].y-t[o-1].y;n+=Math.hypot(a,c)}t.splice(0,r),e.current=Math.max(0,e.current-n),e.target=Math.max(0,e.target-n),this._path.setAttribute("d",ri(t))}}get isInterpolated(){return this._line.current===this._line.target}lerp(t){let e=this._line;e.current=A(e.current,e.target,t,1e-4)}get coord(){return this._path.getPointAtLength(this._line.current)}};var Ms={__staticProp:!0,container:C?window:null,hideNative:!1,behavior:"default",transformModifier:({x:s,y:t})=>`translate(${s}px, ${t}px)`},Is={__mutableProp:!0,enabled:!0,width:50,height:50,lerp:.2,autoStop:!0};function Ut(s){var t;let e=document.querySelector('link[rel="stylesheet"], style');e?(t=e.parentNode)===null||t===void 0||t.insertBefore(s,e):document.head.appendChild(s)}var ht=null;function As(s){return ht||(ht=g.createElement("style"),Ut(ht),ht.innerHTML=`
|
|
36
|
+
presetVevetCss();`;function w(s,t=0,e=1){let i=Math.min(t,e),r=Math.max(t,e);return Math.max(i,Math.min(s,r))}function J(s,t=0,e=1){return(s-t)/(e-t)}function Bt(s,t=[0,1],e=[0,1]){let i=J(s,t[0],t[1]);return w(i,e[0],e[1])}function C(s,t,e,i=0){let r=s+(t-s)*e;return Math.abs(t-r)<=i?t:r}function Te(s,t,e,i,r=0){return C(s,t,1-Math.exp(-e*60*(i/1e3)),r)}var Me=s=>2.70158*s*s*s-1.70158*s*s;var tt=s=>s<.36363636363636365?7.5625*s*s:s<.7272727272727273?7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?7.5625*(s-=.8181818181818182)*s+.9375:7.5625*(s-=.9545454545454546)*s+.984375;var Ie=s=>1-tt(1-s);var Ae=s=>1-Math.sqrt(1-Math.pow(s,2));var Ce=s=>Math.pow(s,3);var Re=s=>{let t=2*Math.PI/3;return s===0?0:s===1?1:-Math.pow(2,10*s-10)*Math.sin((s*10-10.75)*t)};var ke=s=>s===0?0:Math.pow(2,10*s-10);var De=s=>{let e=2.5949095;return s<.5?Math.pow(2*s,2)*((e+1)*2*s-e)/2:(Math.pow(2*s-2,2)*((e+1)*(s*2-2)+e)+2)/2};var je=s=>s<.5?(1-tt(1-2*s))/2:(1+tt(2*s-1))/2;var ze=s=>s<.5?(1-Math.sqrt(1-Math.pow(2*s,2)))/2:(Math.sqrt(1-Math.pow(-2*s+2,2))+1)/2;var Be=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2;var Le=s=>{let t=2*Math.PI/4.5;return s===0?0:s===1?1:s<.5?-(Math.pow(2,20*s-10)*Math.sin((20*s-11.125)*t))/2:Math.pow(2,-20*s+10)*Math.sin((20*s-11.125)*t)/2+1};var Ne=s=>s===0?0:s===1?1:s<.5?Math.pow(2,20*s-10)/2:(2-Math.pow(2,-20*s+10))/2;var $e=s=>s<.5?2*s*s:1-Math.pow(-2*s+2,2)/2;var We=s=>s<.5?8*s*s*s*s:1-Math.pow(-2*s+2,4)/2;var Fe=s=>s<.5?16*s*s*s*s*s:1-Math.pow(-2*s+2,5)/2;var Ve=s=>-(Math.cos(Math.PI*s)-1)/2;var He=s=>Math.pow(s,2);var Ue=s=>Math.pow(s,4);var Xe=s=>Math.pow(s,5);var Ye=s=>1-Math.cos(s*Math.PI/2);var qe=s=>1+2.70158*Math.pow(s-1,3)+1.70158*Math.pow(s-1,2);var Qe=s=>Math.sqrt(1-Math.pow(s-1,2));var rt=s=>1-Math.pow(1-s,3);var Ke=s=>{let t=2*Math.PI/3;return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s*10-.75)*t)+1};var Ge=s=>s===1?1:1-Math.pow(2,-10*s);var Je=s=>1-Math.pow(1-s,2);var Ze=s=>1-Math.pow(1-s,4);var ti=s=>1-Math.pow(1-s,5);var ei=s=>Math.sin(s*Math.PI/2);function ms(s,t){let[e,i,r,n]=t;if(e===i&&r===n)return s;let o=[];for(let a=0;a<11;++a)o[a]=Lt(a*.1,e,r);return s===0?0:s===1?1:Lt(Cn(t,s,o),i,n)}function Lt(s,t,e){return((_s(t,e)*s+gs(t,e))*s+vs(t))*s}function _s(s,t){return 1-3*t+3*s}function gs(s,t){return 3*t-6*s}function vs(s){return 3*s}function Cn(s,t,e){let i=s[0],r=s[2],n=0,o=1;for(;o!==10&&e[o]<=t;++o)n+=.1;--o;let a=(t-e[o])/(e[o+1]-e[o]),c=n+a*.1,l=bs(c,i,r);return l>=.001?Rn(t,c,i,r):l===0?c:kn(t,n,n+.1,i,r)}function bs(s,t,e){return 3*_s(t,e)*s*s+2*gs(t,e)*s+vs(t)}function Rn(s,t,e,i){for(let r=0;r<4;++r){let n=bs(t,e,i);if(n===0)return t;let o=Lt(t,e,i)-s;t-=o/n}return t}function kn(s,t,e,i,r){let n,o,a=0;do o=t+(e-t)/2,n=Lt(o,i,r)-s,n>0?e=o:t=o;while(Math.abs(n)>1e-7&&++a<10);return o}function ws(s,t=!1){return Array.isArray(t)?ms(s,t):typeof t=="function"?t(s):s}var ii=(s,t)=>{var e;return t===void 0&&(t=(e=b().props.easing)!==null&&e!==void 0?e:!1),ws(s,t)};function si(s,t=0,e=1){let i=Math.min(t,e),r=Math.max(t,e);return s>=i&&s<=r}function $(s,t,e){let i=e-t;return((s-t)%i+i)%i+t}function ys(s,t){let r=Object.keys(t).filter(n=>t[n]!==void 0).reduce((n,o)=>(n[o]=t[o],n),{});return Object.assign(Object.assign({},s),r)}var ri=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},x=class{_getStatic(){return{__staticProp:!0}}_getMutable(){return{__mutableProp:!0}}get props(){return this._props}get prefix(){return b().prefix}get name(){return this.constructor.name}get isDestroyed(){return this._isDestroyed}get callbacks(){return this._callbacks}constructor(t,e){this._isDestroyed=!1,this._destroyable=[],this._callbacks=new L({ctx:this}),this._props=ys(Object.assign(Object.assign({},this._getStatic()),this._getMutable()),Object.assign({},t));let i=Object.assign(Object.assign({},t),e);i&&Object.keys(i).filter(n=>n.startsWith("on")&&typeof i[n]=="function").forEach(n=>{let o=n.slice(2);o=o.charAt(0).toLowerCase()+o.slice(1),this._callbacks.on(o,i[n])})}_handleProps(){this.callbacks.emit("props",void 0)}updateProps(t){this._props=Object.assign(Object.assign({},this._props),t),this._handleProps()}onDestroy(t){if(this.isDestroyed){t();return}this._destroyable.push(t)}on(t,e,i={}){return this.callbacks.on(t,e,i)}_cn(...t){return t.map(e=>`${this.prefix}${e}`).join(" ")}_addTempClassName(t,e){Z(t,e)||(S(t,e),this.onDestroy(()=>Q(t,e)))}destroy(){this._destroy()}_destroy(){this._callbacks.emit("destroy",void 0),this._callbacks.destroy(),this._destroyable.forEach(t=>t()),this._isDestroyed=!0}};ri([_],x.prototype,"updateProps",null);ri([_],x.prototype,"on",null);ri([_],x.prototype,"destroy",null);var Dn=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Nt=class{get props(){return this._props}constructor(t,e,i){this._source=t,this._rules=e,this._onChange=i,this._isDestroyed=!1,this._destructors=[],this._prevBreakpoints="[]";let r=t,n=b(),o=r instanceof x?r.name:"Object";if(this._fetchInitProps(),this._props=Object.assign({},this._initProps),r instanceof x){r.on("destroy",()=>this.destroy(),{name:this.constructor.name,protected:!0});let a=r.updateProps.bind(r);r.updateProps=c=>{a(c),this._initProps=Object.assign(Object.assign({},this._initProps),c)},Object.defineProperty(r,"_$_responseProps",{value:c=>{a(c)}})}this._handleUpdate(),this._destructors.push(n.onResize("any",()=>this._handleUpdate(),{name:`${this.constructor.name} / ${o}`}))}_fetchInitProps(){let t=this._source;if(t instanceof x){this._initProps={},Object.keys(t._getMutable()).forEach(i=>{this._initProps[i]=t.props[i]});return}this._initProps=this._source}_getActiveRules(){let t=b();return this._rules.filter(({at:i})=>i==="tablet"&&t.tablet||i==="phone"&&t.phone||i==="mobile"&&t.mobile||i==="non_mobile"&&!t.mobile||i==="portrait"&&t.portrait||i==="landscape"&&t.landscape?!0:i.startsWith("@media")?window.matchMedia(i.replace("@media","")).matches:!1)}_getResponsiveProps(){let t=this._getActiveRules(),e={};return t.forEach(({props:i})=>{e=Object.assign(Object.assign({},e),i)}),e}_handleUpdate(){var t;let i=this._getActiveRules().map(({at:n})=>n),r=JSON.stringify(i);this._prevBreakpoints!==r&&(this._prevBreakpoints=r,this._props=Object.assign(Object.assign({},this._initProps),this._getResponsiveProps()),this._source instanceof x&&this._source._$_responseProps(this._props),(t=this._onChange)===null||t===void 0||t.call(this,this.props))}destroy(){this._isDestroyed=!0,this._destructors.forEach(t=>t())}};Dn([_],Nt.prototype,"destroy",null);var $t={__staticProp:!0,container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0},Wt={__mutableProp:!0,width:"auto",height:"auto",dpr:"auto"};var xs=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},et=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),$t)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Wt)}constructor(t,e){super(t,e),this._width=0,this._height=0,this._dpr=1;let{container:i}=this.props;this._canvas=g.createElement("canvas");let{style:r}=this._canvas;r.position="absolute",r.top="0",r.left="0",r.width="100%",r.height="100%",this.props.append&&i instanceof HTMLElement&&i.append(this._canvas),this._ctx=this._canvas.getContext("2d"),this._setEvents()}get canvas(){return this._canvas}get ctx(){return this._ctx}get width(){return this._width}get offsetWidth(){return this.width/this.dpr}get height(){return this._height}get offsetHeight(){return this.height/this.dpr}get dpr(){return this._dpr}get canRender(){return this.width>0&&this.height>0}_handleProps(){super._handleProps(),this.resize()}_setEvents(){let{props:t}=this,{viewportTarget:e,resizeDebounce:i}=t;if(t.resizeOnInit&&this.resize(),!t.resizeOnRuntime)return;let r=H({callback:()=>this.resize(),element:this.props.container,viewportTarget:e,resizeDebounce:i,name:this.name});this.onDestroy(()=>r.remove())}resize(){let t=b(),{props:e,canvas:i}=this,{container:r}=this.props;this._dpr=j(e.dpr)?e.dpr:t.dpr;let n=0,o=0;e.width==="auto"?n=(r==null?void 0:r.offsetWidth)||t.width:n=e.width,e.height==="auto"?o=(r==null?void 0:r.offsetHeight)||t.height:o=e.height,n*=this._dpr,o*=this._dpr,this._width=n,this._height=o,i.width=n,i.height=o,this.callbacks.emit("resize",void 0)}render(t){this.canRender&&t({ctx:this.ctx,width:this.width,height:this.height,dpr:this.dpr,offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,canvas:this.canvas})}_destroy(){super._destroy(),this.canvas.remove()}};xs([_],et.prototype,"resize",null);xs([_],et.prototype,"render",null);function Ft(s){let t=zn(s),e=jn(s),i;return s.rule==="cover"?i=Bn(s,t,e):s.rule==="contain"?i=Ln(s,t,e):s.rule==="top-left"?i=Nn(s,e):s.rule==="top-right"?i=$n(s,t,e):s.rule==="bottom-left"?i=Wn(s,t,e):s.rule==="bottom-right"?i=Fn(s,t,e):s.rule==="center"&&(i=Vn(s,t,e)),Object.assign(i,{sourceWidth:e.width,sourceHeight:e.height})}function z(s){return typeof s.scale!="undefined"?s.scale:1}function jn(s){let{source:t}=s;return s.sourceWidth&&s.sourceHeight?{width:s.sourceWidth,height:s.sourceHeight}:t instanceof HTMLVideoElement?{width:t.videoWidth,height:t.videoHeight}:t instanceof HTMLImageElement?{width:t.naturalWidth,height:t.naturalHeight}:{width:t.width,height:t.height}}function zn(s){return"container"in s?{width:s.container.clientWidth,height:s.container.clientHeight}:{width:s.width,height:s.height}}function Bn(s,t,e){let i=t.width*z(s),r=e.height*i/e.width;r/z(s)<t.height&&(r=t.height*z(s),i=e.width*r/e.height);let n=(t.width-i)/2,o=(t.height-r)/2;return{width:i,height:r,x:n,y:o}}function Ln(s,t,e){let i=0,r=0,n=e.width/e.height;t.width>t.height?(r=t.height,i=r*n,i>t.width&&(i=t.width,r=i/n)):t.height>=t.width&&(i=t.width,r=i/n,r>t.height&&(r=t.height,i=r*n)),i*=z(s),r*=z(s);let o=(t.width-i)/2,a=(t.height-r)/2;return{width:i,height:r,x:o,y:a}}function Nn(s,t){let e=t.width*z(s),i=t.height*z(s);return{width:e,height:i,x:0,y:0}}function $n(s,t,e){let i=e.width*z(s),r=e.height*z(s),n=t.width-e.width;return{width:i,height:r,x:n,y:0}}function Wn(s,t,e){let i=e.width*z(s),r=e.height*z(s),n=t.height-e.height;return{width:i,height:r,x:0,y:n}}function Fn(s,t,e){let i=e.width*z(s),r=e.height*z(s),n=t.width-e.width,o=t.height-e.height;return{width:i,height:r,x:n,y:o}}function Vn(s,t,e){let i=e.width*z(s),r=e.height*z(s),n=(t.width-e.width)/2,o=(t.height-e.height)/2;return{width:i,height:r,x:n,y:o}}var Ss=Object.assign(Object.assign({},$t),{media:null,autoRenderVideo:!0}),Es=Object.assign(Object.assign({},Wt),{rule:"cover"});var Ps=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vt=class extends et{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ss)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Es)}constructor(t,e){super(t,e),this._setMediaEvents()}get hasRequestVideoFrameCallback(){return"requestVideoFrameCallback"in this.props.media}_setMediaEvents(){let{autoRenderVideo:t,media:e}=this.props;if(!t||!(e instanceof HTMLVideoElement))return;if(this.hasRequestVideoFrameCallback){this._requestVideoFrame();return}let i=y(e,"timeupdate",()=>{this.render()});this.onDestroy(()=>i())}resize(){super.resize(),this.render()}_requestVideoFrame(){if(this.isDestroyed)return;this.render();let{media:t}=this.props;t instanceof HTMLVideoElement&&t.requestVideoFrameCallback(()=>this._requestVideoFrame())}render(){super.render(t=>this._prerender(t))}_prerender({width:t,height:e,ctx:i}){let{media:r,rule:n}=this.props,o,a,c;r instanceof et?(o=r.canvas,a=r.width,c=r.height):o=r;let l=Ft({source:o,sourceWidth:a,sourceHeight:c,rule:n,scale:1,width:t,height:e});i.clearRect(0,0,t,e),i.drawImage(o,l.x,l.y,l.width,l.height),this.callbacks.emit("render",void 0)}};Ps([_],vt.prototype,"resize",null);Ps([_],vt.prototype,"render",null);function it(s){return window.getComputedStyle(s).direction}var Os={__staticProp:!0},Ts={__mutableProp:!0,fps:"auto",enabled:!1,fpsRecalcFrames:10};var Ms=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},U=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Os)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Ts)}constructor(t,e){super(t,e),this._isPlaying=!1,this._raf=null,this._lastTimestamp=null,this._timestamp=null,this._index=0,this._fps=60,this._duration=0,this._fps=this.props.fps==="auto"?this._fps:this.props.fps,this.props.enabled&&this._play()}get isPlaying(){return this._isPlaying}get timestamp(){var t;return(t=this._timestamp)!==null&&t!==void 0?t:0}get index(){return this._index}get fps(){return this._fps}get duration(){return this._duration}get fpsFactor(){return 60/this.fps}_handleProps(){super._handleProps(),this._lastTimestamp=null,this.props.enabled?this._play():this._pause()}play(){this.props.enabled||this.updateProps({enabled:!0})}_play(){this.isPlaying||(this._isPlaying=!0,this.callbacks.emit("play",void 0),this.callbacks.emit("toggle",void 0),this._raf=window.requestAnimationFrame(this._animate.bind(this)))}pause(){this.props.enabled&&this.updateProps({enabled:!1})}_pause(){this.isPlaying&&(this._raf&&(window.cancelAnimationFrame(this._raf),this._raf=null),this._isPlaying=!1,this.callbacks.emit("pause",void 0),this.callbacks.emit("toggle",void 0))}_animate(){var t,e;if(!this._isPlaying)return;this._raf=window.requestAnimationFrame(this._animate.bind(this));let i=this.props.fps==="auto"?1:1e3/this.props.fps;this._timestamp=performance.now(),(t=this._lastTimestamp)!==null&&t!==void 0||(this._lastTimestamp=this._timestamp);let r=this._timestamp-((e=this._lastTimestamp)!==null&&e!==void 0?e:this._timestamp);r<i||(this._duration=r,this._lastTimestamp=this._timestamp,this._index+=1,this._computeFPS(),this.callbacks.emit("frame",{fps:this.fps,fpsFactor:this.fpsFactor,duration:this.duration,lerpFactor:this.lerpFactor.bind(this)}))}lerpFactor(t){return 1-Math.exp(-t*60*(this.duration/1e3))}_computeFPS(){let{duration:t,index:e,props:i}=this;if(e>10&&e%i.fpsRecalcFrames!==0||t<=0||t>250)return;let o=1e3/60/t;this._fps=Math.round(60*o)||1}_destroy(){this.pause(),super._destroy()}};Ms([_],U.prototype,"play",null);Ms([_],U.prototype,"pause",null);function ct(s){return typeof s=="string"}var Vt=class{constructor(t,e,i){this._data=t,this._onEnter=e,this._onLeave=i,this._debounce=null,this._isHovered=!1,this._parallaxX={current:0,target:0,prevTarget:null},this._parallaxY={current:0,target:0,prevTarget:null};let{emitter:r}=this;r.matches(":hover")&&this._handleElementEnter(),this._mouseEnter=y(r,"mouseenter",()=>{var n;this._debounce=setTimeout(()=>this._handleElementEnter(),(n=t.hoverDebounce)!==null&&n!==void 0?n:16)}),this._mouseLeave=y(r,"mouseleave",()=>{this._debounce&&clearTimeout(this._debounce),this._handleElementLeave()}),this._mouseMove=y(r,"mousemove",n=>{this._handleElementMove(n)})}get element(){return this._data.element}get emitter(){var t;return(t=this._data.emitter)!==null&&t!==void 0?t:this._data.element}get type(){return this._data.type}get snap(){var t;return(t=this._data.snap)!==null&&t!==void 0?t:!1}get width(){return this._data.width==="auto"?"auto":this._data.width?M(this._data.width):null}get height(){return this._data.height==="auto"?"auto":this._data.height?M(this._data.height):null}get padding(){return this._data.padding?M(this._data.padding):0}get sticky(){var t;return(t=this._data.sticky)!==null&&t!==void 0?t:!1}get stickyLerp(){var t;return(t=this._data.stickyLerp)!==null&&t!==void 0?t:void 0}get stickyFriction(){var t;return(t=this._data.stickyFriction)!==null&&t!==void 0?t:0}get hasStickyFriction(){return A(this.stickyFriction)&&this.stickyFriction>0}getDimensions(){let t,e,i,r,n=0,o=this.element.getBoundingClientRect();return this.snap&&(t=o.left+o.width/2,e=o.top+o.height/2),this.width==="auto"?i=o.width:j(this.width)&&(i=this.width),this.height==="auto"?r=o.height:j(this.height)&&(r=this.height),n=this.padding,{x:t,y:e,width:i,height:r,padding:n}}destroy(){this._mouseEnter(),this._mouseMove(),this._mouseLeave(),this._debounce&&clearTimeout(this._debounce)}_handleElementEnter(){this._isHovered=!0,this._onEnter(this)}_handleElementLeave(){this._isHovered=!1,this._parallaxX.target=0,this._parallaxX.prevTarget=null,this._parallaxY.target=0,this._parallaxY.prevTarget=null,this._onLeave(this)}_handleElementMove(t){if(!this.sticky||!this._isHovered)return;let{element:e,_parallaxX:i,_parallaxY:r}=this,{clientX:n,clientY:o}=t,a=e.getBoundingClientRect(),c=getComputedStyle(e).transform,l=c==="none"?new DOMMatrix:new DOMMatrix(c),{width:h,height:p}=a,f=l.e,v=l.f,u=a.left-f,d=a.top-v,m=u+h/2,E=d+p/2,P=n-m,T=o-E,O=this._getStickyAmplitude(),X=O.x==="auto"?h:Math.abs(O.x),F=O.y==="auto"?p:Math.abs(O.y),K=w(P,-X,X),V=w(T,-F,F);if(i.prevTarget===null&&(i.prevTarget=K),r.prevTarget===null&&(r.prevTarget=V),this.hasStickyFriction){let Y=K-i.prevTarget,Wr=V-r.prevTarget;i.target+=Y,r.target+=Wr}else i.target=K,r.target=V;i.prevTarget=K,r.prevTarget=V}_getStickyAmplitude(){let{stickyAmplitude:t}=this._data,e="auto",i="auto";return t?(j(t)||ct(t)?(e=this._getStickyAmplitudeAxis(t),i=this._getStickyAmplitudeAxis(t)):("x"in t&&(e=this._getStickyAmplitudeAxis(t.x)),"y"in t&&(i=this._getStickyAmplitudeAxis(t.y))),{x:e,y:i}):{x:e,y:i}}_getStickyAmplitudeAxis(t){return j(t)?t:!t||t==="auto"?"auto":M(t)}get isInterpolated(){return this._parallaxX.current===this._parallaxX.target&&this._parallaxY.current===this._parallaxY.target}render(t){let{_parallaxX:e,_parallaxY:i}=this,r=this.element;if(!this.sticky||this.isInterpolated)return;if(this.hasStickyFriction){let o=t(this.stickyFriction);e.target=C(e.target,0,o,1e-4),i.target=C(i.target,0,o,1e-4)}let n=t(this.stickyLerp);e.current=C(e.current,e.target,n,1e-4),i.current=C(i.current,i.target,n,1e-4),r.style.transform=`translate3d(${e.current}px, ${i.current}px, 0)`}};var ni=s=>{let t=`M${s[0].x},${s[0].y}`;for(let e=0;e<s.length-1;e+=1){let i=(s[e].x+s[e+1].x)/2,r=(s[e].y+s[e+1].y)/2;t+=`Q ${s[e].x}, ${s[e].y}, ${i}, ${r}`}return t+=`L ${s[s.length-1].x}, ${s[s.length-1].y}`,t};var Ht=class{get path(){return this._path}constructor(t){this._isEnabled=t,this._points=[],this._line={current:0,target:0},this._path=document.createElementNS("http://www.w3.org/2000/svg","path");let e=this._path;e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("fill","transparent"),e.setAttribute("stroke","#f00")}addPoint(t,e=!1){if(!this._isEnabled)return;let i=this._points,r=this._path,n=this._line,o={x:t.x,y:t.y,length:0};i.push(o),r.setAttribute("d",ni(i));let a=r.getTotalLength();o.length=a,n.target=a,e&&(n.current=n.target)}minimize(){if(!this._isEnabled)return;let t=this._points,e=this._line;if(t.length<3)return;let i=0,r=0;for(let n=1;n<t.length;n+=1){let o=t[n].x-t[n-1].x,a=t[n].y-t[n-1].y,c=Math.hypot(o,a);if(i+c<e.current)i+=c,r+=1;else break}if(A(r)&&r>0){let n=0;for(let o=1;o<=r;o+=1){let a=t[o].x-t[o-1].x,c=t[o].y-t[o-1].y;n+=Math.hypot(a,c)}t.splice(0,r),e.current=Math.max(0,e.current-n),e.target=Math.max(0,e.target-n),this._path.setAttribute("d",ni(t))}}get isInterpolated(){return this._line.current===this._line.target}lerp(t){let e=this._line;e.current=C(e.current,e.target,t,1e-4)}get coord(){return this._path.getPointAtLength(this._line.current)}};var Is={__staticProp:!0,container:R?window:null,hideNative:!1,behavior:"default",transformModifier:({x:s,y:t})=>`translate(${s}px, ${t}px)`},As={__mutableProp:!0,enabled:!0,width:50,height:50,lerp:.2,autoStop:!0};function Ut(s){var t;let e=document.querySelector('link[rel="stylesheet"], style');e?(t=e.parentNode)===null||t===void 0||t.insertBefore(s,e):document.head.appendChild(s)}var ht=null;function Cs(s){return ht||(ht=g.createElement("style"),Ut(ht),ht.innerHTML=`
|
|
37
37
|
.${s}-container.${s}-hide-default,
|
|
38
38
|
.${s}-container.${s}-hide-default * {
|
|
39
39
|
cursor: none;
|
|
@@ -93,7 +93,7 @@ presetVevetCss();`;function w(s,t=0,e=1){let i=Math.min(t,e),r=Math.max(t,e);ret
|
|
|
93
93
|
.${s}__inner > *.active {
|
|
94
94
|
opacity: 1;
|
|
95
95
|
}
|
|
96
|
-
`,ht)}var ni=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ms)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Is)}constructor(t,e){super(t,e),this._elements=[],this._activeElements=[],this._isFirstMove=!0;let{enabled:i}=this.props,{initialWidth:r,initialHeight:n}=this;this._coords={x:0,y:0,width:r,height:n,angle:0,velocity:0},this._rawTarget=Object.assign({},this._coords),this._types=[],this._activeTypes=[],this._path=new Ht(this.hasPath),As(this.prefix),this._setClassNames(),this._createElements(),this._setEvents(),this._toggle(i)}get prefix(){return`${b().prefix}cursor`}get container(){return this.props.container}get domContainer(){return this.container instanceof Window?R:this.container}get outer(){return this._outer}get inner(){return this._inner}get initialWidth(){return T(this.props.width)}get initialHeight(){return T(this.props.height)}get coords(){return this._coords}get hoveredElement(){let t=this._activeElements;return t[t.length-1]}get targetCoords(){var t,e,i,r;let{hoveredElement:n,initialWidth:o,initialHeight:a}=this,{x:c,y:l}=this._rawTarget,{angle:h,velocity:p}=this._rawTarget,f=o,v=a,u=0;if(n){let d=n.getDimensions();f=(t=d.width)!==null&&t!==void 0?t:o,v=(e=d.height)!==null&&e!==void 0?e:a,c=(i=d.x)!==null&&i!==void 0?i:c,l=(r=d.y)!==null&&r!==void 0?r:l,u=d.padding}return f+=u*2,v+=u*2,{x:c,y:l,width:f,height:v,angle:h,velocity:p}}get path(){return this._path.path}get hasPath(){return this.props.behavior==="path"}_handleProps(){super._handleProps(),this._toggle(this.props.enabled)}_setClassNames(){let{domContainer:t}=this;this.props.hideNative&&(t.style.cursor="none",this._addTempClassName(t,this._cn("-hide-default"))),this._addTempClassName(t,this._cn("-container")),t!==R&&(t.style.position="relative"),this.onDestroy(()=>{t.style.cursor=""})}_createElements(){let{container:t,domContainer:e}=this,i=t instanceof Window,r=this._cn.bind(this),n=g.createElement("div");e.append(n),S(n,r("")),S(n,r(i?"-in-window":"-in-element")),S(n,r("-disabled"));let o=it(n);S(n,r(`_${o}`));let a=g.createElement("div");n.append(a),S(a,r("__inner")),S(a,r("-disabled")),n.append(a),this._outer=n,this._inner=a,this.onDestroy(()=>{a.remove(),n.remove()})}_setEvents(){let{domContainer:t}=this;this._raf=new H({enabled:!1}),this._raf.on("frame",()=>this.render());let e=y(t,"mouseenter",this._handleMouseEnter.bind(this)),i=y(t,"mouseleave",this._handleMouseLeave.bind(this)),r=y(t,"mousemove",this._handleMouseMove.bind(this)),n=y(t,"mousedown",this._handleMouseDown.bind(this)),o=y(t,"mouseup",this._handleMouseUp.bind(this)),a=y(window,"blur",this._handleWindowBlur.bind(this));this.onDestroy(()=>{var c;(c=this._raf)===null||c===void 0||c.destroy(),e(),i(),r(),n(),o(),a()})}_toggle(t){var e;let i=this._cn("-disabled");k(this.outer,i,!t),k(this.inner,i,!t),(e=this._raf)===null||e===void 0||e.updateProps({enabled:t})}_handleMouseEnter(t){if(!this.props.enabled)return;let{clientX:e,clientY:i}=t,r=this._rawTarget;this._coords.x=e,this._coords.y=i,r.x=e,r.y=i,this._path.addPoint(r,!0),S(this.outer,this._cn("-visible"))}_handleMouseLeave(){X(this.outer,this._cn("-visible"))}_handleMouseMove(t){var e;if(!this.props.enabled)return;let{clientX:i,clientY:r}=t,n=this._rawTarget,{x:o,y:a}=n,c=o-this._coords.x,l=a-this._coords.y,h=n.angle,p=Math.atan2(l,c)*180/Math.PI,f=h+((p-h)%360+540)%360-180,v=Math.min(Math.sqrt(Math.pow(c,2)+Math.pow(l,2))*2,150)/150;n.x=i,n.y=r,n.angle=f,n.velocity=v,this._isFirstMove&&(this._coords.x=n.x,this._coords.y=n.y,this._coords.angle=n.angle,this._coords.velocity=n.velocity,this._isFirstMove=!1),this._path.addPoint(n),S(this.outer,this._cn("-visible")),(e=this._raf)===null||e===void 0||e.play()}_handleMouseDown(t){let e=this._cn("-click");t.which===1&&(S(this.outer,e),S(this.inner,e))}_handleMouseUp(){let t=this._cn("-click");X(this.outer,t),X(this.inner,t)}_handleWindowBlur(){this._handleMouseUp()}attachHover(t){let e=new Vt(t,r=>this._handleElementEnter(r),r=>this._handleElementLeave(r));this._elements.push(e);let i=()=>{this._elements=this._elements.filter(r=>r!==e),e.destroy()};return this.onDestroy(()=>i()),()=>i()}_handleElementEnter(t){var e;this.props.enabled&&(this._activeElements.push(t),t.type&&this._toggleType(t.type,!0),this.callbacks.emit("hoverEnter",t),(e=this._raf)===null||e===void 0||e.play())}_handleElementLeave(t){var e;this._activeElements=this._activeElements.filter(i=>i!==t),t.type&&this._toggleType(t.type,!1),this.callbacks.emit("hoverLeave",t),this.props.enabled&&((e=this._raf)===null||e===void 0||e.play())}attachCursor({element:t,type:e}){var i;this._types.push({element:t,type:e}),(i=this._inner)===null||i===void 0||i.append(t)}_toggleType(t,e){let i=this._types.find(o=>o.type===t);e?this._activeTypes.push(t):this._activeTypes=this._activeTypes.filter(o=>t!==o);let r=this._activeTypes,n=r.length>0?r[r.length-1]:null;this._types.forEach(o=>{k(o.element,"active",o.type===n)}),i&&this.callbacks.emit(e?"typeShow":"typeHide",i),n||this.callbacks.emit("noType",void 0)}get isInterpolated(){let{coords:t,targetCoords:e,props:i}=this,r=t.width===e.width,n=t.height===e.height,o=t.angle===e.angle,a=t.velocity===e.velocity,c=!this._elements.find(p=>!p.isInterpolated),l=this._path.isInterpolated,h=t.x===e.x&&t.y===e.y;return r&&n&&o&&a&&c&&(i.behavior==="path"?l:h)}render(){var t;this._calculate(),this._renderElements(),this.props.autoStop&&this.isInterpolated&&((t=this._raf)===null||t===void 0||t.pause()),this.callbacks.emit("render",void 0)}_calculate(){let{targetCoords:t,_coords:e}=this,i=this._getLerpFactor();this._path.lerp(i),this._path.minimize();try{if(this.hasPath){let r=this._path.coord;e.x=r.x,e.y=r.y}else throw new Error("No path")}catch(r){e.x=this._lerp(e.x,t.x),e.y=this._lerp(e.y,t.y)}e.width=this._lerp(e.width,t.width),e.height=this._lerp(e.height,t.height),e.angle=this._lerp(e.angle,t.angle),this._rawTarget.velocity=this._lerp(this._rawTarget.velocity,0),e.velocity=this._lerp(e.velocity,this._rawTarget.velocity)}_getLerpFactor(t=this.props.lerp){if(!z(t))return 1;let e=w(t,0,1);return this._raf.lerpFactor(e)}_lerp(t,e){let i=this._getLerpFactor();return A(t,e,i,1e-4)}_renderElements(){let{container:t,domContainer:e,outer:i,props:r,coords:n}=this,{width:o,height:a}=n,{x:c,y:l}=n;if(!(t instanceof Window)){let p=e.getBoundingClientRect();c-=p.left,l-=p.top}let{style:h}=i;h.setProperty("--cursor-w",`${o}px`),h.setProperty("--cursor-h",`${a}px`),h.transform=r.transformModifier(Object.assign(Object.assign({},n),{x:c,y:l})),this._elements.forEach(p=>p.render(this._getLerpFactor.bind(this)))}};ni([_],pt.prototype,"attachHover",null);ni([_],pt.prototype,"attachCursor",null);ni([_],pt.prototype,"render",null);var Cs={__staticProp:!0,hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"},Rs={__mutableProp:!0,enabled:!0,rootMargin:"0% 0% -5% 0%"};var ks=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},wt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Cs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Rs)}constructor(t,e){super(t,e),this._isInitialStart=!0,this._elements=[],this._isRtl=!1,this._isRtl=it(R)==="rtl",this._setup()}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}_handleProps(){super._handleProps(),this._setup()}_setup(){this._removeViewEvents(),this.props.enabled&&this._setViewEvents()}_removeViewEvents(){var t,e;(t=this._in)===null||t===void 0||t.disconnect(),this._in=void 0,(e=this._out)===null||e===void 0||e.disconnect(),this._out=void 0}_setViewEvents(){let{isInitialStart:t,props:e}=this,i=t?"0% 0% 0% 0%":e.rootMargin;this._in=new IntersectionObserver(r=>this._handleIn(r,t),{root:null,threshold:0,rootMargin:i}),this.elements.forEach(r=>{var n;return(n=this._in)===null||n===void 0?void 0:n.observe(r)}),e.hasOut&&(this._out=new IntersectionObserver(r=>this._handleOut(r),{root:null,threshold:0,rootMargin:"0px 0px 0px 0px"}),this.elements.forEach(r=>{var n;return(n=this._out)===null||n===void 0?void 0:n.observe(r)}))}_handleIn(t,e){t.forEach(i=>{let r=i.target;!i.isIntersecting||r.$vevetInViewBool||(r.$vevetInViewBool=!0,r.$vevetInViewTimeout&&(clearTimeout(r.$vevetInViewTimeout),r.$vevetInViewTimeout=void 0),r.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(i,!0,e),this._getDelay(r)),this.props.hasOut||this.removeElement(r))}),this._isInitialStart&&(this._isInitialStart=!1,this._setup())}_handleOut(t){t.forEach(e=>{let i=e.target;e.isIntersecting||!i.$vevetInViewBool||(i.$vevetInViewBool=!1,i.$vevetInViewTimeout&&(clearTimeout(i.$vevetInViewTimeout),i.$vevetInViewTimeout=void 0),i.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(e,!1),0))})}_handleInOut(t,e,i=!1){let r=t.target,n=this._getDirection(t,e,i);this._toggleClassname(r,e,n),this.callbacks.emit(e?"in":"out",{element:r,direction:n})}_toggleClassname(t,e,i){var r;let n=t.getAttribute("data-in-view-class");if(!n)return;let o=n.split("|"),a=o[0].trim(),c=((r=o[1])===null||r===void 0?void 0:r.trim())||a;if(a){if(e){let h=i==="fromRight"||i==="fromTop"?c.trim():a.trim();k(t,h,e);return}k(t,a,e),k(t,c,e)}}_getDirection(t,e,i){let r=b(),n=t.boundingClientRect;if(this.props.scrollDirection==="horizontal"){let a="fromRight";return(e&&!i||!e)&&(n.left>r.width/2?a="fromRight":n.right<r.width/2&&(a="fromLeft")),a}let o="fromBottom";return(e&&!i||!e)&&(n.top>r.height/2?o="fromBottom":n.bottom<r.height/2&&(o="fromTop")),o}_getDelay(t){let{scrollDirection:e,maxInitialDelay:i}=this.props,r=b();if(!this.isInitialStart||i<=0)return 0;let n=t.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:r.height},a=w(e==="horizontal"?(n.left-o.left)/o.width:(n.top-o.top)/o.height);return this._isRtl&&e==="horizontal"&&(a=1-a),a*i}addElement(t){var e,i;let r=t;return r.$vevetInViewBool=void 0,this._elements.push(r),(e=this._in)===null||e===void 0||e.observe(r),(i=this._out)===null||i===void 0||i.observe(r),()=>this.removeElement(r)}removeElement(t){var e,i;let r=t;(e=this._in)===null||e===void 0||e.unobserve(r),(i=this._out)===null||i===void 0||i.unobserve(r),this._elements=this._elements.filter(n=>n!==t),r.$vevetInViewBool=void 0}_destroy(){super._destroy(),this._removeViewEvents()}};ks([_],wt.prototype,"addElement",null);ks([_],wt.prototype,"removeElement",null);var Xt=class{constructor(t){this._ctx=t,this._initial=[],this._elements=[]}get elements(){return this._elements}save(){let{container:t}=this._ctx.props;this._initial=[...Array.from(t.childNodes)]}wrap(){let{container:t}=this._ctx.props;this._initial.forEach(i=>{var r,n;if(i.nodeType===3){if(((n=(r=i.textContent)===null||r===void 0?void 0:r.trim())===null||n===void 0?void 0:n.length)===0)return;let o=g.createElement("span"),{style:a}=o;a.position="relative",a.display="block",a.width="max-content",a.whiteSpace="nowrap",t.insertBefore(o,i),o.appendChild(i)}}),this._elements=Array.from(t.children)}applyStyles(){this._elements.forEach((t,e)=>this._applyElementStyles(t,e!==0))}_applyElementStyles(t,e){let{isVertical:i,props:r}=this._ctx,n=t,{style:o}=n;o.position=e?"absolute":"relative",o.top=e&&!i?"50%":"0",o.left=e&&i?"50%":"0",o.willChange=r.hasWillChange?"transform":"",o.flexShrink="0",i?o.height=o.height||"max-content":o.width=o.width||"max-content"}cloneAll(t){if(!z(t)||t<=0)return;let e=[...this.elements],{container:i}=this._ctx.props;for(let r=0;r<t;r+=1)e.forEach(n=>{let o=n.cloneNode(!0);this._applyElementStyles(o,!0),i.appendChild(o)});this._elements=Array.from(i.children)}destroy(){let{container:t}=this._ctx.props;this._initial.forEach(e=>t.appendChild(e)),this._elements.forEach(e=>{let{style:i}=e;i.position="",i.top="",i.left="",i.flexShrink="",i.width="",i.transform="",i.willChange=""})}};var Ds={__staticProp:!0,container:null,resizeDebounce:0,hasWillChange:!0,cloneNodes:!0,direction:"horizontal"},js={__mutableProp:!0,speed:1,gap:0,enabled:!0,pauseOnHover:!1,centered:!1,adjustSpeed:!0,pauseOnOut:!0};function zs({container:s,isVertical:t,isRtl:e}){let{style:i}=s;i.position="relative",i.display="flex",i.flexDirection=t?"column":"row",i.alignItems="center",i.justifyContent=e?"flex-end":"flex-start",i.overflow="hidden",t?i.height="100%":i.width="100%"}function Bs(s){let{style:t}=s;t.position="",t.display="",t.flexDirection="",t.alignItems="",t.justifyContent="",t.overflow="",t.height="",t.width=""}var Ls=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},yt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ds)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),js)}constructor(t,e){super(t,e),this._containerSize=0,this._sizes=[],this._totalSize=0,this._coord=0,this._isRtl=!1;let{container:i,direction:r}=this.props,{isVertical:n}=this;if(!i)throw new Error("Marquee container is not defined");let o=it(i)==="rtl"&&r==="horizontal";this._isRtl=o,zs({container:i,isVertical:n,isRtl:o}),this._nodes=new Xt(this),this._setup(),this._raf=new H({enabled:this.props.enabled,fpsRecalcFrames:1}),this._setEvents()}get totalSize(){return this._totalSize}get totalWidth(){return this.totalSize}get coord(){return this._coord}set coord(t){this._coord=t,this.render(0)}get x(){return this.coord}set x(t){this.coord=t}get isVertical(){return this.props.direction==="vertical"}get gap(){return Math.max(T(this.props.gap),0)}_handleProps(){super._handleProps(),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setEvents(){let{props:t}=this,{container:e}=t;this._raf.on("frame",()=>{let o=t.adjustSpeed?this._raf.fpsFactor:1,a=T(t.speed);this._render(a*o)});let i=y(e,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()}),r=y(e,"mouseleave",()=>{this.props.enabled&&this._raf.play()}),n=new IntersectionObserver(this._handleIntersection.bind(this),{root:null});n.observe(e),this.onDestroy(()=>{i(),r(),n.disconnect()})}_setup(){var t;if((t=this._lastSetup)===null||t===void 0||t.call(this),this.isDestroyed)return;let{container:e,resizeDebounce:i}=this.props;this._nodes.save(),this._nodes.wrap(),this._nodes.applyStyles(),this.resize();let r=b().onLoad(()=>this.resize()),n=V({callback:()=>this.resize(),element:[e,...this._nodes.elements],viewportTarget:"width",resizeDebounce:i,name:this.name});this._lastSetup=()=>{r(),n.remove()}}resize(){let{props:t,isVertical:e,gap:i}=this,{container:r}=t,n=e?r.offsetHeight:r.offsetWidth;this._containerSize=n,this._sizes=this._nodes.elements.map(c=>(e?c.offsetHeight:c.offsetWidth)+i),this._totalSize=this._sizes.reduce((c,l)=>c+l,0);let o=Math.max(...this._sizes),a=Math.ceil((n+o)/this._totalSize);this._totalSize=Math.max(this._totalSize,n+o),t.cloneNodes&&z(a)&&a>1&&(this._nodes.cloneAll(a-1),this.resize()),this.callbacks.emit("resize",void 0),setTimeout(()=>this.render(0),0)}render(t){this._render(t)}_render(t=this.props.speed){if(this.isDestroyed)return;let{isVertical:e,props:i,gap:r}=this,{elements:n}=this._nodes,o=this._isRtl?-t:t,a=T(o);if(!z(a))return;this._coord-=a;let c=this._containerSize*.5+this._sizes[0]/2-r,l=this._coord+(i.centered?c:0),h=0;for(let p=0;p<n.length;p+=1){let f=n[p],v=this._sizes[p],{style:u}=f,d=$(l+h,-v,this._totalSize-v);if(e){let m=u.position==="relative"?"0":"-50%";u.transform=`translate(${m}, ${d}px)`}else{let m=u.position==="relative"?"0":"-50%";u.transform=`translate(${d}px, ${m})`}h+=v}this.callbacks.emit("render",void 0)}_handleIntersection(t){this.props.pauseOnOut&&t.forEach(e=>{e.isIntersecting&&this.props.enabled?this._raf.play():this._raf.pause()})}_destroy(){var t;let{container:e}=this.props;for(super._destroy(),this._raf.destroy(),(t=this._lastSetup)===null||t===void 0||t.call(this);e.firstChild;)e.removeChild(e.firstChild);this._nodes.destroy(),Bs(e)}};Ls([_],yt.prototype,"resize",null);Ls([_],yt.prototype,"render",null);var Ns={__staticProp:!0,container:null,buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0},$s={__mutableProp:!0,enabled:!0};var nt=C?g.createElement("style"):null;nt&&(nt.innerHTML="* { user-select: none !important; }");var xt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ns)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),$s)}constructor(t,e){super(t,e),this._listeners=[],this._isStarted=!1,this._pointersMap=new Map,this._setBaseEvents()}get isStarted(){return this._isStarted}get pointersMap(){return this._pointersMap}get container(){return this.props.container}get minPointers(){return w(this.props.minPointers,1,1/0)}get maxPointers(){return w(this.props.maxPointers,this.props.minPointers,1/0)}_setBaseEvents(){let{container:t}=this,e=y(t,"pointerdown",o=>this._handlePointerDown(o)),i=y(t,"dragstart",o=>o.preventDefault(),{passive:!1}),r=y(t,"mousedown",o=>{this.props.buttons.includes(1)&&o.preventDefault()},{passive:!1}),n=y(t,"contextmenu",o=>{this.props.buttons.includes(2)&&o.preventDefault()},{passive:!1});this.onDestroy(()=>{e(),i(),r(),n()})}_setRuntimeEvents(){if(this._listeners.length>0)return;let e=y(window,"pointermove",o=>this._handlePointerMove(o),{passive:!1}),i=y(window,"pointerup",o=>this._handlePointerUp(o),{passive:!1}),r=y(window,"pointercancel",()=>this._handleCancel(),{passive:!1}),n=y(window,"blur",()=>this._handleCancel());this._listeners=[e,i,r,n]}_handlePointerDown(t){let{props:e}=this,{x:i,y:r}=this._decodeCoords(t);if(!e.enabled||!e.buttons.includes(t.button)||this.pointersMap.get(t.pointerId)||this.pointersMap.size>=this.maxPointers)return;let o={id:t.pointerId,index:this.pointersMap.size,start:{x:i,y:r},prev:{x:i,y:r},current:{x:i,y:r},diff:{x:0,y:0},step:{x:0,y:0},accum:{x:0,y:0}};this.pointersMap.set(t.pointerId,o);let a=0;this.pointersMap.forEach(c=>{c.index=a,a+=1}),this.pointersMap.size===this.minPointers&&(this._isStarted=!0,this.callbacks.emit("start",void 0)),this._setRuntimeEvents(),e.disableUserSelect&&R.append(nt),this.callbacks.emit("pointerdown",{event:t,pointer:o})}_handlePointerMove(t){let e=this.pointersMap.get(t.pointerId);if(!e)return;let{x:i,y:r}=this._decodeCoords(t);e.prev=Object.assign({},e.current),e.current={x:i,y:r},e.diff.x=e.current.x-e.start.x,e.diff.y=e.current.y-e.start.y,e.step.x=e.current.x-e.prev.x,e.step.y=e.current.y-e.prev.y,e.accum.x+=Math.abs(e.step.x),e.accum.y+=Math.abs(e.step.y),this.callbacks.emit("pointermove",{event:t,pointer:e})}_handlePointerUp(t){let e=this.pointersMap.get(t.pointerId);e&&(this.callbacks.emit("pointerup",{pointer:e}),this.pointersMap.delete(t.pointerId),this.pointersMap.size<this.minPointers&&this._isStarted&&(this._isStarted=!1,this.callbacks.emit("end",void 0)),this.pointersMap.size===0&&this._cleanup())}_handleCancel(){this.callbacks.emit("end",void 0),this.pointersMap.forEach(t=>{this.callbacks.emit("pointerup",{pointer:t})}),this._cleanup()}_resetSelection(){var t,e;(t=window.getSelection())===null||t===void 0||t.empty(),(e=window.getSelection())===null||e===void 0||e.removeAllRanges()}_decodeCoords(t){let{container:e,props:i}=this;if(!i.relative)return{x:t.clientX,y:t.clientY};let r=e.getBoundingClientRect(),n=t.clientX-r.left,o=t.clientY-r.top;return{x:n,y:o}}_cleanup(){this._listeners.forEach(t=>t()),this._listeners=[],this._isStarted=!1,this.pointersMap.clear(),this.props.disableUserSelect&&(this._resetSelection(),nt===null||nt===void 0||nt.remove())}_destroy(){this._cleanup(),super._destroy()}};function Yt(s){return typeof s=="undefined"}var oi,ai,Ws={__staticProp:!0},Fs={__mutableProp:!0,easing:(ai=(oi=b())===null||oi===void 0?void 0:oi.props)===null||ai===void 0?void 0:ai.easing,duration:1e3};var qt=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},B=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ws)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Fs)}constructor(t,e){super(t,e),this._progress=0,this._eased=0,this._raf=void 0,this._time=0,this._isReversed=!1,this._isPaused=!1}get progress(){return this._progress}set progress(t){this._progress=w(t),this._onUpdate()}get eased(){return this._eased}get isPlaying(){return!Yt(this._raf)}get isReversed(){return this._isReversed}get isPaused(){return this._isPaused}get duration(){let t=this.props.duration;return!z(t)||t<0?0:this.props.duration}play(){this.progress!==1&&(this._isReversed=!1,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}reverse(){this.progress!==0&&(this._isReversed=!0,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}pause(){this._isPaused=!0,this._raf&&window.cancelAnimationFrame(this._raf),this._raf=void 0}reset(){this.pause(),this.progress=0}_animate(){if(this.isPaused)return;let{isReversed:t,duration:e}=this;if(e<=0){this.progress=t?1:0,this.progress=t?0:1;return}let i=Date.now(),r=Math.abs(this._time-i);this._time=i;let n=r/e/(t?-1:1),o=this.progress+n;if(this.progress=o,this.progress===1&&!t||this.progress===0&&t){this._isReversed=!1,this._isPaused=!1,this._raf=void 0;return}this._raf=window.requestAnimationFrame(()=>this._animate())}_onUpdate(){if(this._eased=ei(this._progress,this.props.easing),this.callbacks.emit("update",{progress:this._progress,eased:this._eased}),this.progress===0){this.callbacks.emit("start",void 0);return}this.progress===1&&this.callbacks.emit("end",void 0)}_destroy(){this.pause(),super._destroy()}};qt([_],B.prototype,"play",null);qt([_],B.prototype,"reverse",null);qt([_],B.prototype,"pause",null);qt([_],B.prototype,"reset",null);var Qt={__staticProp:!0,container:null,hide:250},Kt={__mutableProp:!0};var St=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Qt)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Kt)}constructor(t,e){super(t,e),this._shouldHide=!1,this._isHidden=!1,this._isLoaded=!1;let i=setTimeout(()=>{this._onLoaded(()=>this._handleLoaded())},0);this.onDestroy(()=>clearTimeout(i))}get isHidden(){return this._isHidden}_onLoaded(t){b().onLoad(t)}_handleLoaded(){this.isDestroyed||(this._isLoaded=!0,this.callbacks.emit("loaded",void 0),D(this.props.hide)&&this.hide(this.props.hide))}hide(t,e){if(this.isDestroyed||!this._isLoaded||this._shouldHide)return;let i=!1;return this._shouldHide=!0,this.callbacks.emit("hide",void 0),this._hideContainer(()=>{this._onHidden(),i||e==null||e()},t),()=>{i=!0}}_hideContainer(t,e){let{container:i}=this.props;if(!i){t();return}let r=new B({duration:e});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let{style:o}=i;o.opacity=String(1-n),o.display=n===1?"none":"flex"}),r.on("end",()=>t()),r.play()}_onHidden(){this._isHidden=!0,this.callbacks.emit("hidden",void 0)}onHide(t){return this.isDestroyed?()=>{}:this._shouldHide?(t(),()=>{}):this.on("hide",()=>t())}onHidden(t){return this.isDestroyed?()=>{}:this._isHidden?(t(),()=>{}):this.on("hidden",()=>t())}};var Vs=Object.assign(Object.assign({},Qt),{resourceContainer:null,preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500}),Hs=Object.assign({},Kt);function Us(s){let t=parseFloat(s.getAttribute("data-loaded")||"0");return t=Number.isNaN(t)?0:w(t,0,1/0),t}function Xs({id:s,weight:t},e){if(!(s instanceof Element))return;if(Us(s)>=t){e(t);return}let i=new MutationObserver(()=>{let r=Us(s);e(r),r>=t&&i.disconnect()});i.observe(s,{attributes:!0,attributeFilter:["data-loaded"]})}function Ys(s,t){if(s.complete){t();return}let e=new Image;e.addEventListener("load",()=>t()),e.addEventListener("error",()=>t()),e.crossOrigin="anonymous",e.src=s.currentSrc||s.src}function qs(s,t){if(s.readyState>0){t();return}if(s.preload==="none"){t();return}s.addEventListener("error",()=>t()),s.addEventListener("loadedmetadata",()=>t())}var Ks=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Qs=`vevet-page-${Math.random()}`,Et=class extends St{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Vs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Hs)}constructor(t,e){super(t,e),this._resources=[{id:Qs,weight:1,loaded:0}],this._progress=0,this._raf=new H({enabled:!0}),this._raf.on("frame",()=>this._handleUpdate()),this._fetchImages(),this._fetchVideos(),this._fetchResources(),b().onLoad(()=>this.resolveResource(Qs))}get resourceContainer(){var t;return(t=this.props.resourceContainer)!==null&&t!==void 0?t:g}get resources(){return this._resources}get totalWeight(){return this.resources.reduce((t,{weight:e})=>t+e,0)}get loadedWeight(){return this.resources.reduce((t,{loaded:e})=>t+e,0)}get loadProgress(){return this.loadedWeight/this.totalWeight}get progress(){return this._progress}get lerpEase(){return w(Math.abs(this.props.lerp))}_fetchImages(){if(!this.props.preloadImages)return;let t=Array.from(this.resourceContainer.querySelectorAll("img"));t=t.filter(e=>!Z(e,this.props.ignoreClassName)&&e.loading!=="lazy"),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{Ys(e,()=>this.resolveResource(e))})}_fetchVideos(){if(!this.props.preloadVideos)return;let t=Array.from(this.resourceContainer.querySelectorAll("video"));t=t.filter(e=>!Z(e,this.props.ignoreClassName)),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{qs(e,()=>this.resolveResource(e))})}_fetchResources(){let t=Array.from(this.resourceContainer.querySelectorAll(this.props.customSelector));t=t.filter(e=>!Z(e,this.props.ignoreClassName)),t.forEach(e=>{let i=parseInt(e.getAttribute("data-weight")||"1",10);i=Number.isNaN(i)?1:w(i,1,1/0);let r={id:e,weight:i,loaded:0};this._resources.push(r),Xs(r,n=>this.resolveResource(e,n))})}addResource(t,e=1){if(this.resources.some(r=>r.id===t))throw new Error("Resource already exists");this._resources.push({id:t,weight:e,loaded:0})}resolveResource(t,e){let i=this.resources.find(n=>n.id===t);if(!i)return;let r=e!=null?e:i.weight;i.loaded=w(r,0,i.weight),this.callbacks.emit("resource",i)}_handleUpdate(){var t;let e=this._raf.lerpFactor(this.lerpEase),i=A(this._progress,this.loadProgress,e);if(this._progress=i,this.callbacks.emit("progress",void 0),this.loadProgress<1)return;(t=this._raf)===null||t===void 0||t.destroy();let r=this.progress;if(r>=1)return;let n=new B({duration:this.props.endDuration});this.onDestroy(()=>n.destroy()),n.on("update",({progress:o})=>{let a=1-r;this._progress=r+a*o,this.callbacks.emit("progress",void 0)}),n.play()}_onLoaded(t){let e=!1;this.callbacks.on("progress",()=>{this.progress>=1&&!e&&(e=!0,t())},{protected:!0,name:this.name})}_destroy(){super._destroy(),this._raf.destroy()}};Ks([_],Et.prototype,"addResource",null);Ks([_],Et.prototype,"resolveResource",null);var Gt=class{constructor(t){this._ctx=t,this._timestamp=0,this._start={x:0,y:0,angle:0},this._prev={x:0,y:0,angle:0},this._current={x:0,y:0,angle:0},this._diff={x:0,y:0,angle:0},this._step={x:0,y:0,angle:0},this._accum={x:0,y:0}}get timestamp(){return this._timestamp}get start(){return this._start}get prev(){return this._prev}get current(){return this._current}get diff(){return this._diff}get step(){return this._step}get accum(){return this._accum}get coords(){let{timestamp:t,start:e,prev:i,current:r,diff:n,step:o,accum:a}=this;return{timestamp:t,start:e,prev:i,current:r,diff:n,step:o,accum:a}}decode(t){let e=b(),{props:i,container:r}=this._ctx,{ratio:n}=i,o="touches"in t?t.touches[0].clientX:t.clientX,a="touches"in t?t.touches[0].clientY:t.clientY,c=o,l=a,h=e.width/2,p=e.height/2;if(i.relative){let u=r.getBoundingClientRect();c=o-u.left,l=a-u.top,h=u.left+u.width/2,p=u.top+u.height/2}let v=Math.atan2(a-p,o-h)*180/Math.PI;return{x:c*n,y:l*n,angle:v*n}}setStart(t){this._timestamp=performance.now(),this._start=Object.assign({},t),this._prev=Object.assign({},t),this._current=Object.assign({},t),this._diff={x:0,y:0,angle:0},this._step={x:0,y:0,angle:0},this._accum={x:0,y:0}}update({x:t,y:e,angle:i}){let r=Object.assign({},this.start),n=Object.assign({},this.current),o={x:t,y:e,angle:i};this._timestamp=performance.now(),this._prev=n,this._current=o;let a=this._current.angle-this._prev.angle;a>180?a-=360:a<-180&&(a+=360),this._step={x:o.x-n.x,y:o.y-n.y,angle:a},this._diff={x:o.x-r.x,y:o.y-r.y,angle:this._diff.angle+this._step.angle},this._accum={x:this._accum.x+Math.abs(this._step.x),y:this._accum.y+Math.abs(this._step.y)}}};var Vn=4,Jt=class{constructor(t){this._ctx=t,this._velocities=[]}addVelocity(t){this.has||(this._velocities.push(t),this._velocities.length>Vn&&this._velocities.shift())}updateLastTimestamp(){let t=this._velocities,{length:e}=t;e>0&&(t[e-1].timestamp=performance.now())}get velocity(){let t=this._velocities;if(t.length<2)return{x:0,y:0,angle:0};let e=0,i=0,r=0,n=0;for(let o=1;o<t.length;o+=1){let a=t[o],c=t[o-1],l=a.x-c.x,h=a.y-c.y,p=a.angle-c.angle;p>180&&(p-=360),p<-180&&(p+=360);let f=Math.max(a.timestamp-c.timestamp,1),v=l/f*1e3,u=h/f*1e3,d=p/f*1e3,m=1/Math.exp(-f*.1);i+=v*m,r+=u*m,n+=d*m,e+=m}return e>0?{x:i/e,y:r/e,angle:n/e}:{x:0,y:0,angle:0}}get has(){return!!this._timeline}release(t){let e=this._ctx,{props:i,callbacks:r}=e,{inertiaRatio:n,velocityModifier:o}=i,a=this.velocity,c={x:a.x*n,y:a.y*n,angle:a.angle*n},l=o?o(c):c,{x:h,y:p,angle:f}=l,v=Math.sqrt(Math.pow(h,2)+Math.pow(p,2));if(v<i.inertiaDistanceThreshold){r.emit("inertiaFail",void 0);return}let u=i.inertiaDuration(v);if(!z(u)||u<=0){r.emit("inertiaFail",void 0);return}let d={x:0,y:0,angle:0};this._timeline=new B({duration:u,easing:i.inertiaEasing}),this._timeline.on("start",()=>r.emit("inertiaStart",void 0)),this._timeline.on("update",({eased:m})=>{d.x=h*m,d.y=p*m,d.angle=f*m,t(d),r.emit("inertia",void 0)}),this._timeline.on("end",()=>{this.cancel(),r.emit("inertiaEnd",void 0)}),setTimeout(()=>{var m;return(m=this._timeline)===null||m===void 0?void 0:m.play()},0)}cancel(){var t;this._timeline&&(this._timeline.progress<1&&this._ctx.callbacks.emit("inertiaCancel",void 0),(t=this._timeline)===null||t===void 0||t.destroy(),this._timeline=void 0)}destroy(){var t;(t=this._timeline)===null||t===void 0||t.destroy()}};var Gs={__staticProp:!0,container:null,thumb:null,buttons:[0],pointers:1,disableUserSelect:!0},Js={__mutableProp:!0,enabled:!0,relative:!1,axis:null,ratio:1,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:s=>w(s,500,2e3),inertiaEasing:rt,velocityModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50};var dt=C?g.createElement("style"):null;dt&&(dt.innerHTML="* { cursor: grabbing !important; }");var Zt=class{constructor(t){this._ctx=t,this._styles=dt===null||dt===void 0?void 0:dt.cloneNode(!0),this.setInline()}setInline(){let{props:t}=this._ctx,{container:e,axis:i,grabCursor:r}=t,{style:n}=e,o=r?"grab":"",a="none";i==="x"?a="pan-y":i==="y"&&(a="pan-x"),n.cursor=o,n.touchAction=a}append(){this._ctx.props.grabCursor&&this._styles&&R.append(this._styles)}remove(){var t;(t=this._styles)===null||t===void 0||t.remove()}};var ot=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Gs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Js)}constructor(t,e){super(t,e),this._isSwiping=!1,this._isAborted=!1;let{container:i,thumb:r,buttons:n,pointers:o}=this.props;this._coords=new Gt(this),this._inertia=new Jt(this),this._styles=new Zt(this),this._pointers=new xt({container:r||i,buttons:n,minPointers:o,maxPointers:o,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._setEvents()}get coords(){return this._coords.coords}get container(){return this.props.container}get hasInertia(){return this._inertia.has}get isSwiping(){return this._isSwiping}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._styles.setInline()}_setEvents(){let{callbacks:t}=this,{container:e}=this.props;this._pointers.on("start",()=>this._handlePointersStart()),this._pointers.on("pointerdown",r=>t.emit("pointerdown",r)),this._pointers.on("pointermove",r=>t.emit("pointermove",r)),this._pointers.on("pointerup",r=>t.emit("pointerup",r));let i=y(e,"touchstart",r=>this._handleTouchStart(r),{passive:!1});this.onDestroy(()=>i())}_handleTouchStart(t){this.props.enabled&&(this.callbacks.emit("touchstart",t),this._preventEdgeSwipe(t))}_preventEdgeSwipe(t){let{props:e}=this;if(!e.preventEdgeSwipe)return;let i=e.edgeSwipeThreshold,r=t.targetTouches[0].pageX,n=r<=i||r>=b().width-i;t.cancelable&&n&&(t.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let t=y(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),e=y(window,"mousemove",this._handleMouseMove.bind(this)),i=this._pointers.on("end",()=>{this._handleEnd(),i(),t(),e()});this.onDestroy(()=>{i(),t(),e()})}_handleTouchMove(t){this.callbacks.emit("touchmove",t),this._isSwiping&&this.props.preventTouchMove&&t.cancelable&&t.preventDefault(),this._handleMove(t,"touch")}_handleMouseMove(t){this.props.requireCtrlKey&&!t.ctrlKey||(this.callbacks.emit("mousemove",t),this._handleMove(t,"mouse"))}_handleMove(t,e){let i=this._coords,r=i.decode(t);this._isAborted||(this._startCoord||(this._startCoord=Object.assign({},r)),this._startTime||(this._startTime=+Date.now()),!(!this._isSwiping&&!this._canStart(r,e))&&(this._isSwiping||(this._inertia.cancel(),this._isSwiping=!0,this._startCoord=Object.assign({},r),i.setStart(r),this.callbacks.emit("start",this.coords),this._styles.append()),this._move(r)))}_canStart(t,e){let i=this._startCoord,r=this._startTime;if(!i||!r)return!1;let{threshold:n,ratio:o,minTime:a,axis:c,willAbort:l}=this.props,h=Math.abs(o),p={x:t.x-i.x,y:t.y-i.y},f=p.x/h,v=p.y/h;if(Math.sqrt(Math.pow(f,2)+Math.pow(v,2))<n||+new Date-r<a)return!1;if(c){let m=Math.atan2(Math.abs(p.y),Math.abs(p.x))*180/Math.PI;if((c==="x"?m:90-m)>45)return this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0),!1}return l({type:e,matrix:t,start:i,diff:p})?(this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0),!1):!0}_move(t){let e=this._coords;e.update(t),this._inertia.addVelocity(Object.assign(Object.assign({},e.current),{timestamp:e.timestamp})),this.callbacks.emit("move",this.coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._styles.remove();let{x:t,y:e}=this._coords.diff,i=Math.abs(t),r=Math.abs(e),{directionThreshold:n}=this.props,o=i>r?"x":"y";o==="x"&&i>n&&(t>0?this.callbacks.emit("toRight",void 0):t<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(e>0?this.callbacks.emit("toBottom",void 0):e<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this.coords),this._inertia.updateLastTimestamp(),this.props.inertia&&this._releaseInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}_releaseInertia(){let t=Object.assign({},this.coords.current);this._inertia.release(e=>{this._move({x:t.x+e.x,y:t.y+e.y,angle:t.angle+e.angle})})}cancelInertia(){this._inertia.cancel()}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){super._destroy(),this._pointers.destroy(),this._inertia.destroy(),this._styles.remove()}};var Zs={__staticProp:!0,container:C?window:null,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:50},tr={__mutableProp:!0,minSize:50,autoSize:!0};var ut=null;function er(s){return ut||(ut=g.createElement("style"),Ut(ut),ut.innerHTML=`
|
|
96
|
+
`,ht)}var oi=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Is)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),As)}constructor(t,e){super(t,e),this._elements=[],this._activeElements=[],this._isFirstMove=!0;let{enabled:i}=this.props,{initialWidth:r,initialHeight:n}=this;this._coords={x:0,y:0,width:r,height:n,angle:0,velocity:0},this._rawTarget=Object.assign({},this._coords),this._types=[],this._activeTypes=[],this._path=new Ht(this.hasPath),Cs(this.prefix),this._setClassNames(),this._createElements(),this._setEvents(),this._toggle(i)}get prefix(){return`${b().prefix}cursor`}get container(){return this.props.container}get domContainer(){return this.container instanceof Window?k:this.container}get outer(){return this._outer}get inner(){return this._inner}get initialWidth(){return M(this.props.width)}get initialHeight(){return M(this.props.height)}get coords(){return this._coords}get hoveredElement(){let t=this._activeElements;return t[t.length-1]}get targetCoords(){var t,e,i,r;let{hoveredElement:n,initialWidth:o,initialHeight:a}=this,{x:c,y:l}=this._rawTarget,{angle:h,velocity:p}=this._rawTarget,f=o,v=a,u=0;if(n){let d=n.getDimensions();f=(t=d.width)!==null&&t!==void 0?t:o,v=(e=d.height)!==null&&e!==void 0?e:a,c=(i=d.x)!==null&&i!==void 0?i:c,l=(r=d.y)!==null&&r!==void 0?r:l,u=d.padding}return f+=u*2,v+=u*2,{x:c,y:l,width:f,height:v,angle:h,velocity:p}}get path(){return this._path.path}get hasPath(){return this.props.behavior==="path"}_handleProps(){super._handleProps(),this._toggle(this.props.enabled)}_setClassNames(){let{domContainer:t}=this;this.props.hideNative&&(t.style.cursor="none",this._addTempClassName(t,this._cn("-hide-default"))),this._addTempClassName(t,this._cn("-container")),t!==k&&(t.style.position="relative"),this.onDestroy(()=>{t.style.cursor=""})}_createElements(){let{container:t,domContainer:e}=this,i=t instanceof Window,r=this._cn.bind(this),n=g.createElement("div");e.append(n),S(n,r("")),S(n,r(i?"-in-window":"-in-element")),S(n,r("-disabled"));let o=it(n);S(n,r(`_${o}`));let a=g.createElement("div");n.append(a),S(a,r("__inner")),S(a,r("-disabled")),n.append(a),this._outer=n,this._inner=a,this.onDestroy(()=>{a.remove(),n.remove()})}_setEvents(){let{domContainer:t}=this;this._raf=new U({enabled:!1}),this._raf.on("frame",()=>this.render());let e=y(t,"mouseenter",this._handleMouseEnter.bind(this)),i=y(t,"mouseleave",this._handleMouseLeave.bind(this)),r=y(t,"mousemove",this._handleMouseMove.bind(this)),n=y(t,"mousedown",this._handleMouseDown.bind(this)),o=y(t,"mouseup",this._handleMouseUp.bind(this)),a=y(window,"blur",this._handleWindowBlur.bind(this));this.onDestroy(()=>{var c;(c=this._raf)===null||c===void 0||c.destroy(),e(),i(),r(),n(),o(),a()})}_toggle(t){var e;let i=this._cn("-disabled");D(this.outer,i,!t),D(this.inner,i,!t),(e=this._raf)===null||e===void 0||e.updateProps({enabled:t})}_handleMouseEnter(t){if(!this.props.enabled)return;let{clientX:e,clientY:i}=t,r=this._rawTarget;this._coords.x=e,this._coords.y=i,r.x=e,r.y=i,this._path.addPoint(r,!0),S(this.outer,this._cn("-visible"))}_handleMouseLeave(){Q(this.outer,this._cn("-visible"))}_handleMouseMove(t){var e;if(!this.props.enabled)return;let{clientX:i,clientY:r}=t,n=this._rawTarget,{x:o,y:a}=n,c=o-this._coords.x,l=a-this._coords.y,h=n.angle,p=Math.atan2(l,c)*180/Math.PI,f=h+((p-h)%360+540)%360-180,v=Math.min(Math.sqrt(Math.pow(c,2)+Math.pow(l,2))*2,150)/150;n.x=i,n.y=r,n.angle=f,n.velocity=v,this._isFirstMove&&(this._coords.x=n.x,this._coords.y=n.y,this._coords.angle=n.angle,this._coords.velocity=n.velocity,this._isFirstMove=!1),this._path.addPoint(n),S(this.outer,this._cn("-visible")),(e=this._raf)===null||e===void 0||e.play()}_handleMouseDown(t){let e=this._cn("-click");t.which===1&&(S(this.outer,e),S(this.inner,e))}_handleMouseUp(){let t=this._cn("-click");Q(this.outer,t),Q(this.inner,t)}_handleWindowBlur(){this._handleMouseUp()}attachHover(t){let e=new Vt(t,r=>this._handleElementEnter(r),r=>this._handleElementLeave(r));this._elements.push(e);let i=()=>{this._elements=this._elements.filter(r=>r!==e),e.destroy()};return this.onDestroy(()=>i()),()=>i()}_handleElementEnter(t){var e;this.props.enabled&&(this._activeElements.push(t),t.type&&this._toggleType(t.type,!0),this.callbacks.emit("hoverEnter",t),(e=this._raf)===null||e===void 0||e.play())}_handleElementLeave(t){var e;this._activeElements=this._activeElements.filter(i=>i!==t),t.type&&this._toggleType(t.type,!1),this.callbacks.emit("hoverLeave",t),this.props.enabled&&((e=this._raf)===null||e===void 0||e.play())}attachCursor({element:t,type:e}){var i;this._types.push({element:t,type:e}),(i=this._inner)===null||i===void 0||i.append(t)}_toggleType(t,e){let i=this._types.find(o=>o.type===t);e?this._activeTypes.push(t):this._activeTypes=this._activeTypes.filter(o=>t!==o);let r=this._activeTypes,n=r.length>0?r[r.length-1]:null;this._types.forEach(o=>{D(o.element,"active",o.type===n)}),i&&this.callbacks.emit(e?"typeShow":"typeHide",i),n||this.callbacks.emit("noType",void 0)}get isInterpolated(){let{coords:t,targetCoords:e,props:i}=this,r=t.width===e.width,n=t.height===e.height,o=t.angle===e.angle,a=t.velocity===e.velocity,c=!this._elements.find(p=>!p.isInterpolated),l=this._path.isInterpolated,h=t.x===e.x&&t.y===e.y;return r&&n&&o&&a&&c&&(i.behavior==="path"?l:h)}render(){var t;this._calculate(),this._renderElements(),this.props.autoStop&&this.isInterpolated&&((t=this._raf)===null||t===void 0||t.pause()),this.callbacks.emit("render",void 0)}_calculate(){let{targetCoords:t,_coords:e}=this,i=this._getLerpFactor();this._path.lerp(i),this._path.minimize();try{if(this.hasPath){let r=this._path.coord;e.x=r.x,e.y=r.y}else throw new Error("No path")}catch(r){e.x=this._lerp(e.x,t.x),e.y=this._lerp(e.y,t.y)}e.width=this._lerp(e.width,t.width),e.height=this._lerp(e.height,t.height),e.angle=this._lerp(e.angle,t.angle),this._rawTarget.velocity=this._lerp(this._rawTarget.velocity,0),e.velocity=this._lerp(e.velocity,this._rawTarget.velocity)}_getLerpFactor(t=this.props.lerp){if(!A(t))return 1;let e=w(t,0,1);return this._raf.lerpFactor(e)}_lerp(t,e){let i=this._getLerpFactor();return C(t,e,i,1e-4)}_renderElements(){let{container:t,domContainer:e,outer:i,props:r,coords:n}=this,{width:o,height:a}=n,{x:c,y:l}=n;if(!(t instanceof Window)){let p=e.getBoundingClientRect();c-=p.left,l-=p.top}let{style:h}=i;h.setProperty("--cursor-w",`${o}px`),h.setProperty("--cursor-h",`${a}px`),h.transform=r.transformModifier(Object.assign(Object.assign({},n),{x:c,y:l})),this._elements.forEach(p=>p.render(this._getLerpFactor.bind(this)))}};oi([_],pt.prototype,"attachHover",null);oi([_],pt.prototype,"attachCursor",null);oi([_],pt.prototype,"render",null);var Rs={__staticProp:!0,hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"},ks={__mutableProp:!0,enabled:!0,rootMargin:"0% 0% -5% 0%"};var Ds=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},wt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Rs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),ks)}constructor(t,e){super(t,e),this._isInitialStart=!0,this._elements=[],this._isRtl=!1,this._isRtl=it(k)==="rtl",this._setup()}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}_handleProps(){super._handleProps(),this._setup()}_setup(){this._removeViewEvents(),this.props.enabled&&this._setViewEvents()}_removeViewEvents(){var t,e;(t=this._in)===null||t===void 0||t.disconnect(),this._in=void 0,(e=this._out)===null||e===void 0||e.disconnect(),this._out=void 0}_setViewEvents(){let{isInitialStart:t,props:e}=this,i=t?"0% 0% 0% 0%":e.rootMargin;this._in=new IntersectionObserver(r=>this._handleIn(r,t),{root:null,threshold:0,rootMargin:i}),this.elements.forEach(r=>{var n;return(n=this._in)===null||n===void 0?void 0:n.observe(r)}),e.hasOut&&(this._out=new IntersectionObserver(r=>this._handleOut(r),{root:null,threshold:0,rootMargin:"0px 0px 0px 0px"}),this.elements.forEach(r=>{var n;return(n=this._out)===null||n===void 0?void 0:n.observe(r)}))}_handleIn(t,e){t.forEach(i=>{let r=i.target;!i.isIntersecting||r.$vevetInViewBool||(r.$vevetInViewBool=!0,r.$vevetInViewTimeout&&(clearTimeout(r.$vevetInViewTimeout),r.$vevetInViewTimeout=void 0),r.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(i,!0,e),this._getDelay(r)),this.props.hasOut||this.removeElement(r))}),this._isInitialStart&&(this._isInitialStart=!1,this._setup())}_handleOut(t){t.forEach(e=>{let i=e.target;e.isIntersecting||!i.$vevetInViewBool||(i.$vevetInViewBool=!1,i.$vevetInViewTimeout&&(clearTimeout(i.$vevetInViewTimeout),i.$vevetInViewTimeout=void 0),i.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(e,!1),0))})}_handleInOut(t,e,i=!1){let r=t.target,n=this._getDirection(t,e,i);this._toggleClassname(r,e,n),this.callbacks.emit(e?"in":"out",{element:r,direction:n})}_toggleClassname(t,e,i){var r;let n=t.getAttribute("data-in-view-class");if(!n)return;let o=n.split("|"),a=o[0].trim(),c=((r=o[1])===null||r===void 0?void 0:r.trim())||a;if(a){if(e){let h=i==="fromRight"||i==="fromTop"?c.trim():a.trim();D(t,h,e);return}D(t,a,e),D(t,c,e)}}_getDirection(t,e,i){let r=b(),n=t.boundingClientRect;if(this.props.scrollDirection==="horizontal"){let a="fromRight";return(e&&!i||!e)&&(n.left>r.width/2?a="fromRight":n.right<r.width/2&&(a="fromLeft")),a}let o="fromBottom";return(e&&!i||!e)&&(n.top>r.height/2?o="fromBottom":n.bottom<r.height/2&&(o="fromTop")),o}_getDelay(t){let{scrollDirection:e,maxInitialDelay:i}=this.props,r=b();if(!this.isInitialStart||i<=0)return 0;let n=t.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:r.height},a=w(e==="horizontal"?(n.left-o.left)/o.width:(n.top-o.top)/o.height);return this._isRtl&&e==="horizontal"&&(a=1-a),a*i}addElement(t){var e,i;let r=t;return r.$vevetInViewBool=void 0,this._elements.push(r),(e=this._in)===null||e===void 0||e.observe(r),(i=this._out)===null||i===void 0||i.observe(r),()=>this.removeElement(r)}removeElement(t){var e,i;let r=t;(e=this._in)===null||e===void 0||e.unobserve(r),(i=this._out)===null||i===void 0||i.unobserve(r),this._elements=this._elements.filter(n=>n!==t),r.$vevetInViewBool=void 0}_destroy(){super._destroy(),this._removeViewEvents()}};Ds([_],wt.prototype,"addElement",null);Ds([_],wt.prototype,"removeElement",null);var Xt=class{constructor(t){this._ctx=t,this._initial=[],this._elements=[]}get elements(){return this._elements}save(){let{container:t}=this._ctx.props;this._initial=[...Array.from(t.childNodes)]}wrap(){let{container:t}=this._ctx.props;this._initial.forEach(i=>{var r,n;if(i.nodeType===3){if(((n=(r=i.textContent)===null||r===void 0?void 0:r.trim())===null||n===void 0?void 0:n.length)===0)return;let o=g.createElement("span"),{style:a}=o;a.position="relative",a.display="block",a.width="max-content",a.whiteSpace="nowrap",t.insertBefore(o,i),o.appendChild(i)}}),this._elements=Array.from(t.children)}applyStyles(){this._elements.forEach((t,e)=>this._applyElementStyles(t,e!==0))}_applyElementStyles(t,e){let{isVertical:i,props:r}=this._ctx,n=t,{style:o}=n;o.position=e?"absolute":"relative",o.top=e&&!i?"50%":"0",o.left=e&&i?"50%":"0",o.willChange=r.hasWillChange?"transform":"",o.flexShrink="0",i?o.height=o.height||"max-content":o.width=o.width||"max-content"}cloneAll(t){if(!A(t)||t<=0)return;let e=[...this.elements],{container:i}=this._ctx.props;for(let r=0;r<t;r+=1)e.forEach(n=>{let o=n.cloneNode(!0);this._applyElementStyles(o,!0),i.appendChild(o)});this._elements=Array.from(i.children)}destroy(){let{container:t}=this._ctx.props;this._initial.forEach(e=>t.appendChild(e)),this._elements.forEach(e=>{let{style:i}=e;i.position="",i.top="",i.left="",i.flexShrink="",i.width="",i.transform="",i.willChange=""})}};var js={__staticProp:!0,container:null,resizeDebounce:0,hasWillChange:!0,cloneNodes:!0,direction:"horizontal"},zs={__mutableProp:!0,speed:1,gap:0,enabled:!0,pauseOnHover:!1,centered:!1,adjustSpeed:!0,pauseOnOut:!0};function Bs({container:s,isVertical:t,isRtl:e}){let{style:i}=s;i.position="relative",i.display="flex",i.flexDirection=t?"column":"row",i.alignItems="center",i.justifyContent=e?"flex-end":"flex-start",i.overflow="hidden",t?i.height="100%":i.width="100%"}function Ls(s){let{style:t}=s;t.position="",t.display="",t.flexDirection="",t.alignItems="",t.justifyContent="",t.overflow="",t.height="",t.width=""}var Ns=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},yt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),js)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),zs)}constructor(t,e){super(t,e),this._containerSize=0,this._sizes=[],this._totalSize=0,this._coord=0,this._isRtl=!1;let{container:i,direction:r}=this.props,{isVertical:n}=this;if(!i)throw new Error("Marquee container is not defined");let o=it(i)==="rtl"&&r==="horizontal";this._isRtl=o,Bs({container:i,isVertical:n,isRtl:o}),this._nodes=new Xt(this),this._setup(),this._raf=new U({enabled:this.props.enabled,fpsRecalcFrames:1}),this._setEvents()}get totalSize(){return this._totalSize}get totalWidth(){return this.totalSize}get coord(){return this._coord}set coord(t){this._coord=t,this.render(0)}get x(){return this.coord}set x(t){this.coord=t}get isVertical(){return this.props.direction==="vertical"}get gap(){return Math.max(M(this.props.gap),0)}_handleProps(){super._handleProps(),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setEvents(){let{props:t}=this,{container:e}=t;this._raf.on("frame",()=>{let o=t.adjustSpeed?this._raf.fpsFactor:1,a=M(t.speed);this._render(a*o)});let i=y(e,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()}),r=y(e,"mouseleave",()=>{this.props.enabled&&this._raf.play()}),n=new IntersectionObserver(this._handleIntersection.bind(this),{root:null});n.observe(e),this.onDestroy(()=>{i(),r(),n.disconnect()})}_setup(){var t;if((t=this._lastSetup)===null||t===void 0||t.call(this),this.isDestroyed)return;let{container:e,resizeDebounce:i}=this.props;this._nodes.save(),this._nodes.wrap(),this._nodes.applyStyles(),this.resize();let r=b().onLoad(()=>this.resize()),n=H({callback:()=>this.resize(),element:[e,...this._nodes.elements],viewportTarget:"width",resizeDebounce:i,name:this.name});this._lastSetup=()=>{r(),n.remove()}}resize(){let{props:t,isVertical:e,gap:i}=this,{container:r}=t,n=e?r.offsetHeight:r.offsetWidth;this._containerSize=n,this._sizes=this._nodes.elements.map(c=>(e?c.offsetHeight:c.offsetWidth)+i),this._totalSize=this._sizes.reduce((c,l)=>c+l,0);let o=Math.max(...this._sizes),a=Math.ceil((n+o)/this._totalSize);this._totalSize=Math.max(this._totalSize,n+o),t.cloneNodes&&A(a)&&a>1&&(this._nodes.cloneAll(a-1),this.resize()),this.callbacks.emit("resize",void 0),setTimeout(()=>this.render(0),0)}render(t){this._render(t)}_render(t=this.props.speed){if(this.isDestroyed)return;let{isVertical:e,props:i,gap:r}=this,{elements:n}=this._nodes,o=this._isRtl?-t:t,a=M(o);if(!A(a))return;this._coord-=a;let c=this._containerSize*.5+this._sizes[0]/2-r,l=this._coord+(i.centered?c:0),h=0;for(let p=0;p<n.length;p+=1){let f=n[p],v=this._sizes[p],{style:u}=f,d=$(l+h,-v,this._totalSize-v);if(e){let m=u.position==="relative"?"0":"-50%";u.transform=`translate(${m}, ${d}px)`}else{let m=u.position==="relative"?"0":"-50%";u.transform=`translate(${d}px, ${m})`}h+=v}this.callbacks.emit("render",void 0)}_handleIntersection(t){this.props.pauseOnOut&&t.forEach(e=>{e.isIntersecting&&this.props.enabled?this._raf.play():this._raf.pause()})}_destroy(){var t;let{container:e}=this.props;for(super._destroy(),this._raf.destroy(),(t=this._lastSetup)===null||t===void 0||t.call(this);e.firstChild;)e.removeChild(e.firstChild);this._nodes.destroy(),Ls(e)}};Ns([_],yt.prototype,"resize",null);Ns([_],yt.prototype,"render",null);var $s={__staticProp:!0,container:null,buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0},Ws={__mutableProp:!0,enabled:!0};var nt=R?g.createElement("style"):null;nt&&(nt.innerHTML="* { user-select: none !important; }");var xt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),$s)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Ws)}constructor(t,e){super(t,e),this._listeners=[],this._isStarted=!1,this._pointersMap=new Map,this._setBaseEvents()}get isStarted(){return this._isStarted}get pointersMap(){return this._pointersMap}get container(){return this.props.container}get minPointers(){return w(this.props.minPointers,1,1/0)}get maxPointers(){return w(this.props.maxPointers,this.props.minPointers,1/0)}_setBaseEvents(){let{container:t}=this,e=y(t,"pointerdown",o=>this._handlePointerDown(o)),i=y(t,"dragstart",o=>o.preventDefault(),{passive:!1}),r=y(t,"mousedown",o=>{this.props.buttons.includes(1)&&o.preventDefault()},{passive:!1}),n=y(t,"contextmenu",o=>{this.props.buttons.includes(2)&&o.preventDefault()},{passive:!1});this.onDestroy(()=>{e(),i(),r(),n()})}_setRuntimeEvents(){if(this._listeners.length>0)return;let e=y(window,"pointermove",o=>this._handlePointerMove(o),{passive:!1}),i=y(window,"pointerup",o=>this._handlePointerUp(o),{passive:!1}),r=y(window,"pointercancel",()=>this._handleCancel(),{passive:!1}),n=y(window,"blur",()=>this._handleCancel());this._listeners=[e,i,r,n]}_handlePointerDown(t){let{props:e}=this,{x:i,y:r}=this._decodeCoords(t);if(!e.enabled||!e.buttons.includes(t.button)||this.pointersMap.get(t.pointerId)||this.pointersMap.size>=this.maxPointers)return;let o={id:t.pointerId,index:this.pointersMap.size,start:{x:i,y:r},prev:{x:i,y:r},current:{x:i,y:r},diff:{x:0,y:0},step:{x:0,y:0},accum:{x:0,y:0}};this.pointersMap.set(t.pointerId,o);let a=0;this.pointersMap.forEach(c=>{c.index=a,a+=1}),this.pointersMap.size===this.minPointers&&(this._isStarted=!0,this.callbacks.emit("start",void 0)),this._setRuntimeEvents(),e.disableUserSelect&&k.append(nt),this.callbacks.emit("pointerdown",{event:t,pointer:o})}_handlePointerMove(t){let e=this.pointersMap.get(t.pointerId);if(!e)return;let{x:i,y:r}=this._decodeCoords(t);e.prev=Object.assign({},e.current),e.current={x:i,y:r},e.diff.x=e.current.x-e.start.x,e.diff.y=e.current.y-e.start.y,e.step.x=e.current.x-e.prev.x,e.step.y=e.current.y-e.prev.y,e.accum.x+=Math.abs(e.step.x),e.accum.y+=Math.abs(e.step.y),this.callbacks.emit("pointermove",{event:t,pointer:e})}_handlePointerUp(t){let e=this.pointersMap.get(t.pointerId);e&&(this.callbacks.emit("pointerup",{pointer:e}),this.pointersMap.delete(t.pointerId),this.pointersMap.size<this.minPointers&&this._isStarted&&(this._isStarted=!1,this.callbacks.emit("end",void 0)),this.pointersMap.size===0&&this._cleanup())}_handleCancel(){this.callbacks.emit("end",void 0),this.pointersMap.forEach(t=>{this.callbacks.emit("pointerup",{pointer:t})}),this._cleanup()}_resetSelection(){var t,e;(t=window.getSelection())===null||t===void 0||t.empty(),(e=window.getSelection())===null||e===void 0||e.removeAllRanges()}_decodeCoords(t){let{container:e,props:i}=this;if(!i.relative)return{x:t.clientX,y:t.clientY};let r=e.getBoundingClientRect(),n=t.clientX-r.left,o=t.clientY-r.top;return{x:n,y:o}}_cleanup(){this._listeners.forEach(t=>t()),this._listeners=[],this._isStarted=!1,this.pointersMap.clear(),this.props.disableUserSelect&&(this._resetSelection(),nt===null||nt===void 0||nt.remove())}_destroy(){this._cleanup(),super._destroy()}};function Yt(s){return typeof s=="undefined"}var ai,li,Fs={__staticProp:!0},Vs={__mutableProp:!0,easing:(li=(ai=b())===null||ai===void 0?void 0:ai.props)===null||li===void 0?void 0:li.easing,duration:1e3};var qt=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},B=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Fs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Vs)}constructor(t,e){super(t,e),this._progress=0,this._eased=0,this._raf=void 0,this._time=0,this._isReversed=!1,this._isPaused=!1}get progress(){return this._progress}set progress(t){this._progress=w(t),this._onUpdate()}get eased(){return this._eased}get isPlaying(){return!Yt(this._raf)}get isReversed(){return this._isReversed}get isPaused(){return this._isPaused}get duration(){let t=this.props.duration;return!A(t)||t<0?0:this.props.duration}play(){this.progress!==1&&(this._isReversed=!1,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}reverse(){this.progress!==0&&(this._isReversed=!0,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}pause(){this._isPaused=!0,this._raf&&window.cancelAnimationFrame(this._raf),this._raf=void 0}reset(){this.pause(),this.progress=0}_animate(){if(this.isPaused)return;let{isReversed:t,duration:e}=this;if(e<=0){this.progress=t?1:0,this.progress=t?0:1;return}let i=Date.now(),r=Math.abs(this._time-i);this._time=i;let n=r/e/(t?-1:1),o=this.progress+n;if(this.progress=o,this.progress===1&&!t||this.progress===0&&t){this._isReversed=!1,this._isPaused=!1,this._raf=void 0;return}this._raf=window.requestAnimationFrame(()=>this._animate())}_onUpdate(){if(this._eased=ii(this._progress,this.props.easing),this.callbacks.emit("update",{progress:this._progress,eased:this._eased}),this.progress===0){this.callbacks.emit("start",void 0);return}this.progress===1&&this.callbacks.emit("end",void 0)}_destroy(){this.pause(),super._destroy()}};qt([_],B.prototype,"play",null);qt([_],B.prototype,"reverse",null);qt([_],B.prototype,"pause",null);qt([_],B.prototype,"reset",null);var Qt={__staticProp:!0,container:null,hide:250},Kt={__mutableProp:!0};var St=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Qt)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Kt)}constructor(t,e){super(t,e),this._shouldHide=!1,this._isHidden=!1,this._isLoaded=!1;let i=setTimeout(()=>{this._onLoaded(()=>this._handleLoaded())},0);this.onDestroy(()=>clearTimeout(i))}get isHidden(){return this._isHidden}_onLoaded(t){b().onLoad(t)}_handleLoaded(){this.isDestroyed||(this._isLoaded=!0,this.callbacks.emit("loaded",void 0),j(this.props.hide)&&this.hide(this.props.hide))}hide(t,e){if(this.isDestroyed||!this._isLoaded||this._shouldHide)return;let i=!1;return this._shouldHide=!0,this.callbacks.emit("hide",void 0),this._hideContainer(()=>{this._onHidden(),i||e==null||e()},t),()=>{i=!0}}_hideContainer(t,e){let{container:i}=this.props;if(!i){t();return}let r=new B({duration:e});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let{style:o}=i;o.opacity=String(1-n),o.display=n===1?"none":"flex"}),r.on("end",()=>t()),r.play()}_onHidden(){this._isHidden=!0,this.callbacks.emit("hidden",void 0)}onHide(t){return this.isDestroyed?()=>{}:this._shouldHide?(t(),()=>{}):this.on("hide",()=>t())}onHidden(t){return this.isDestroyed?()=>{}:this._isHidden?(t(),()=>{}):this.on("hidden",()=>t())}};var Hs=Object.assign(Object.assign({},Qt),{resourceContainer:null,preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500}),Us=Object.assign({},Kt);function Xs(s){let t=parseFloat(s.getAttribute("data-loaded")||"0");return t=Number.isNaN(t)?0:w(t,0,1/0),t}function Ys({id:s,weight:t},e){if(!(s instanceof Element))return;if(Xs(s)>=t){e(t);return}let i=new MutationObserver(()=>{let r=Xs(s);e(r),r>=t&&i.disconnect()});i.observe(s,{attributes:!0,attributeFilter:["data-loaded"]})}function qs(s,t){if(s.complete){t();return}let e=new Image;e.addEventListener("load",()=>t()),e.addEventListener("error",()=>t()),e.crossOrigin="anonymous",e.src=s.currentSrc||s.src}function Qs(s,t){if(s.readyState>0){t();return}if(s.preload==="none"){t();return}s.addEventListener("error",()=>t()),s.addEventListener("loadedmetadata",()=>t())}var Gs=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ks=`vevet-page-${Math.random()}`,Et=class extends St{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Hs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Us)}constructor(t,e){super(t,e),this._resources=[{id:Ks,weight:1,loaded:0}],this._progress=0,this._raf=new U({enabled:!0}),this._raf.on("frame",()=>this._handleUpdate()),this._fetchImages(),this._fetchVideos(),this._fetchResources(),b().onLoad(()=>this.resolveResource(Ks))}get resourceContainer(){var t;return(t=this.props.resourceContainer)!==null&&t!==void 0?t:g}get resources(){return this._resources}get totalWeight(){return this.resources.reduce((t,{weight:e})=>t+e,0)}get loadedWeight(){return this.resources.reduce((t,{loaded:e})=>t+e,0)}get loadProgress(){return this.loadedWeight/this.totalWeight}get progress(){return this._progress}get lerpEase(){return w(Math.abs(this.props.lerp))}_fetchImages(){if(!this.props.preloadImages)return;let t=Array.from(this.resourceContainer.querySelectorAll("img"));t=t.filter(e=>!Z(e,this.props.ignoreClassName)&&e.loading!=="lazy"),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{qs(e,()=>this.resolveResource(e))})}_fetchVideos(){if(!this.props.preloadVideos)return;let t=Array.from(this.resourceContainer.querySelectorAll("video"));t=t.filter(e=>!Z(e,this.props.ignoreClassName)),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{Qs(e,()=>this.resolveResource(e))})}_fetchResources(){let t=Array.from(this.resourceContainer.querySelectorAll(this.props.customSelector));t=t.filter(e=>!Z(e,this.props.ignoreClassName)),t.forEach(e=>{let i=parseInt(e.getAttribute("data-weight")||"1",10);i=Number.isNaN(i)?1:w(i,1,1/0);let r={id:e,weight:i,loaded:0};this._resources.push(r),Ys(r,n=>this.resolveResource(e,n))})}addResource(t,e=1){if(this.resources.some(r=>r.id===t))throw new Error("Resource already exists");this._resources.push({id:t,weight:e,loaded:0})}resolveResource(t,e){let i=this.resources.find(n=>n.id===t);if(!i)return;let r=e!=null?e:i.weight;i.loaded=w(r,0,i.weight),this.callbacks.emit("resource",i)}_handleUpdate(){var t;let e=this._raf.lerpFactor(this.lerpEase),i=C(this._progress,this.loadProgress,e);if(this._progress=i,this.callbacks.emit("progress",void 0),this.loadProgress<1)return;(t=this._raf)===null||t===void 0||t.destroy();let r=this.progress;if(r>=1)return;let n=new B({duration:this.props.endDuration});this.onDestroy(()=>n.destroy()),n.on("update",({progress:o})=>{let a=1-r;this._progress=r+a*o,this.callbacks.emit("progress",void 0)}),n.play()}_onLoaded(t){let e=!1;this.callbacks.on("progress",()=>{this.progress>=1&&!e&&(e=!0,t())},{protected:!0,name:this.name})}_destroy(){super._destroy(),this._raf.destroy()}};Gs([_],Et.prototype,"addResource",null);Gs([_],Et.prototype,"resolveResource",null);var Gt=class{constructor(t){this._ctx=t,this._timestamp=0,this._start={x:0,y:0,angle:0},this._prev={x:0,y:0,angle:0},this._current={x:0,y:0,angle:0},this._diff={x:0,y:0,angle:0},this._step={x:0,y:0,angle:0},this._accum={x:0,y:0}}get timestamp(){return this._timestamp}get start(){return this._start}get prev(){return this._prev}get current(){return this._current}get diff(){return this._diff}get step(){return this._step}get accum(){return this._accum}get coords(){let{timestamp:t,start:e,prev:i,current:r,diff:n,step:o,accum:a}=this;return{timestamp:t,start:e,prev:i,current:r,diff:n,step:o,accum:a}}decode(t){let e=b(),{props:i,container:r}=this._ctx,{ratio:n}=i,o="touches"in t?t.touches[0].clientX:t.clientX,a="touches"in t?t.touches[0].clientY:t.clientY,c=o,l=a,h=e.width/2,p=e.height/2;if(i.relative){let u=r.getBoundingClientRect();c=o-u.left,l=a-u.top,h=u.left+u.width/2,p=u.top+u.height/2}let v=Math.atan2(a-p,o-h)*180/Math.PI;return{x:c*n,y:l*n,angle:v*n}}setStart(t){this._timestamp=performance.now(),this._start=Object.assign({},t),this._prev=Object.assign({},t),this._current=Object.assign({},t),this._diff={x:0,y:0,angle:0},this._step={x:0,y:0,angle:0},this._accum={x:0,y:0}}update({x:t,y:e,angle:i}){let r=Object.assign({},this.start),n=Object.assign({},this.current),o={x:t,y:e,angle:i};this._timestamp=performance.now(),this._prev=n,this._current=o;let a=this._current.angle-this._prev.angle;a>180?a-=360:a<-180&&(a+=360),this._step={x:o.x-n.x,y:o.y-n.y,angle:a},this._diff={x:o.x-r.x,y:o.y-r.y,angle:this._diff.angle+this._step.angle},this._accum={x:this._accum.x+Math.abs(this._step.x),y:this._accum.y+Math.abs(this._step.y)}}};var Hn=4,Jt=class{constructor(t){this._ctx=t,this._velocities=[]}addVelocity(t){this.has||(this._velocities.push(t),this._velocities.length>Hn&&this._velocities.shift())}updateLastTimestamp(){let t=this._velocities,{length:e}=t;e>0&&(t[e-1].timestamp=performance.now())}get velocity(){let t=this._velocities;if(t.length<2)return{x:0,y:0,angle:0};let e=0,i=0,r=0,n=0;for(let o=1;o<t.length;o+=1){let a=t[o],c=t[o-1],l=a.x-c.x,h=a.y-c.y,p=a.angle-c.angle;p>180&&(p-=360),p<-180&&(p+=360);let f=Math.max(a.timestamp-c.timestamp,1),v=l/f*1e3,u=h/f*1e3,d=p/f*1e3,m=1/Math.exp(-f*.1);i+=v*m,r+=u*m,n+=d*m,e+=m}return e>0?{x:i/e,y:r/e,angle:n/e}:{x:0,y:0,angle:0}}get has(){return!!this._timeline}release(t){let e=this._ctx,{props:i,callbacks:r}=e,{inertiaRatio:n,velocityModifier:o}=i,a=this.velocity,c={x:a.x*n,y:a.y*n,angle:a.angle*n},l=o?o(c):c,{x:h,y:p,angle:f}=l,v=Math.sqrt(Math.pow(h,2)+Math.pow(p,2));if(v<i.inertiaDistanceThreshold){r.emit("inertiaFail",void 0);return}let u=i.inertiaDuration(v);if(!A(u)||u<=0){r.emit("inertiaFail",void 0);return}let d={x:0,y:0,angle:0};this._timeline=new B({duration:u,easing:i.inertiaEasing}),this._timeline.on("start",()=>r.emit("inertiaStart",void 0)),this._timeline.on("update",({eased:m})=>{d.x=h*m,d.y=p*m,d.angle=f*m,t(d),r.emit("inertia",void 0)}),this._timeline.on("end",()=>{this.cancel(),r.emit("inertiaEnd",void 0)}),setTimeout(()=>{var m;return(m=this._timeline)===null||m===void 0?void 0:m.play()},0)}cancel(){var t;this._timeline&&(this._timeline.progress<1&&this._ctx.callbacks.emit("inertiaCancel",void 0),(t=this._timeline)===null||t===void 0||t.destroy(),this._timeline=void 0)}destroy(){var t;(t=this._timeline)===null||t===void 0||t.destroy()}};var Js={__staticProp:!0,container:null,thumb:null,buttons:[0],pointers:1,disableUserSelect:!0},Zs={__mutableProp:!0,enabled:!0,relative:!1,axis:null,ratio:1,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:s=>w(s,500,2e3),inertiaEasing:rt,velocityModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50};var dt=R?g.createElement("style"):null;dt&&(dt.innerHTML="* { cursor: grabbing !important; }");var Zt=class{constructor(t){this._ctx=t,this._styles=dt===null||dt===void 0?void 0:dt.cloneNode(!0),this.setInline()}setInline(){let{props:t}=this._ctx,{container:e,axis:i,grabCursor:r}=t,{style:n}=e,o=r?"grab":"",a="none";i==="x"?a="pan-y":i==="y"&&(a="pan-x"),n.cursor=o,n.touchAction=a}append(){this._ctx.props.grabCursor&&this._styles&&k.append(this._styles)}remove(){var t;(t=this._styles)===null||t===void 0||t.remove()}};var ot=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Js)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Zs)}constructor(t,e){super(t,e),this._isSwiping=!1,this._isAborted=!1;let{container:i,thumb:r,buttons:n,pointers:o}=this.props;this._coords=new Gt(this),this._inertia=new Jt(this),this._styles=new Zt(this),this._pointers=new xt({container:r||i,buttons:n,minPointers:o,maxPointers:o,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._setEvents()}get coords(){return this._coords.coords}get container(){return this.props.container}get hasInertia(){return this._inertia.has}get isSwiping(){return this._isSwiping}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._styles.setInline()}_setEvents(){let{callbacks:t}=this,{container:e}=this.props;this._pointers.on("start",()=>this._handlePointersStart()),this._pointers.on("pointerdown",r=>t.emit("pointerdown",r)),this._pointers.on("pointermove",r=>t.emit("pointermove",r)),this._pointers.on("pointerup",r=>t.emit("pointerup",r));let i=y(e,"touchstart",r=>this._handleTouchStart(r),{passive:!1});this.onDestroy(()=>i())}_handleTouchStart(t){this.props.enabled&&(this.callbacks.emit("touchstart",t),this._preventEdgeSwipe(t))}_preventEdgeSwipe(t){let{props:e}=this;if(!e.preventEdgeSwipe)return;let i=e.edgeSwipeThreshold,r=t.targetTouches[0].pageX,n=r<=i||r>=b().width-i;t.cancelable&&n&&(t.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let t=y(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),e=y(window,"mousemove",this._handleMouseMove.bind(this)),i=this._pointers.on("end",()=>{this._handleEnd(),i(),t(),e()});this.onDestroy(()=>{i(),t(),e()})}_handleTouchMove(t){this.callbacks.emit("touchmove",t),this._isSwiping&&this.props.preventTouchMove&&t.cancelable&&t.preventDefault(),this._handleMove(t,"touch")}_handleMouseMove(t){this.props.requireCtrlKey&&!t.ctrlKey||(this.callbacks.emit("mousemove",t),this._handleMove(t,"mouse"))}_handleMove(t,e){let i=this._coords,r=i.decode(t);this._isAborted||(this._startCoord||(this._startCoord=Object.assign({},r)),this._startTime||(this._startTime=+Date.now()),!(!this._isSwiping&&!this._canStart(r,e))&&(this._isSwiping||(this._inertia.cancel(),this._isSwiping=!0,this._startCoord=Object.assign({},r),i.setStart(r),this.callbacks.emit("start",this.coords),this._styles.append()),this._move(r)))}_canStart(t,e){let i=this._startCoord,r=this._startTime;if(!i||!r)return!1;let{threshold:n,ratio:o,minTime:a,axis:c,willAbort:l}=this.props,h=Math.abs(o),p={x:t.x-i.x,y:t.y-i.y},f=p.x/h,v=p.y/h;if(Math.sqrt(Math.pow(f,2)+Math.pow(v,2))<n||+new Date-r<a)return!1;if(c){let m=Math.atan2(Math.abs(p.y),Math.abs(p.x))*180/Math.PI;if((c==="x"?m:90-m)>45)return this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0),!1}return l({type:e,matrix:t,start:i,diff:p})?(this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0),!1):!0}_move(t){let e=this._coords;e.update(t),this._inertia.addVelocity(Object.assign(Object.assign({},e.current),{timestamp:e.timestamp})),this.callbacks.emit("move",this.coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._styles.remove();let{x:t,y:e}=this._coords.diff,i=Math.abs(t),r=Math.abs(e),{directionThreshold:n}=this.props,o=i>r?"x":"y";o==="x"&&i>n&&(t>0?this.callbacks.emit("toRight",void 0):t<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(e>0?this.callbacks.emit("toBottom",void 0):e<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this.coords),this._inertia.updateLastTimestamp(),this.props.inertia&&this._releaseInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}_releaseInertia(){let t=Object.assign({},this.coords.current);this._inertia.release(e=>{this._move({x:t.x+e.x,y:t.y+e.y,angle:t.angle+e.angle})})}cancelInertia(){this._inertia.cancel()}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){super._destroy(),this._pointers.destroy(),this._inertia.destroy(),this._styles.remove()}};var tr={__staticProp:!0,container:R?window:null,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:50},er={__mutableProp:!0,minSize:50,autoSize:!0};var ut=null;function ir(s){return ut||(ut=g.createElement("style"),Ut(ut),ut.innerHTML=`
|
|
97
97
|
.${s}-scrollable {
|
|
98
98
|
-ms-overflow-style: none;
|
|
99
99
|
scrollbar-width: none;
|
|
@@ -174,7 +174,7 @@ presetVevetCss();`;function w(s,t=0,e=1){let i=Math.min(t,e),r=Math.max(t,e);ret
|
|
|
174
174
|
height: 100%;
|
|
175
175
|
background: #333;
|
|
176
176
|
}
|
|
177
|
-
`,ut)}var Hn=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},te=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Zs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),tr)}constructor(t,e){super(t,e),this._valueOnSwipeStart=0,this._prevScrollValue=0,this._isRtl=!1,this._isRtl=it(this.parent)==="rtl",er(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),S(this.outer,this._cn("_inited"))}get prefix(){return`${b().prefix}scrollbar`}get outer(){return this._outer}get container(){return this.props.container}get track(){return this._track}get thumb(){return this._thumb}get axis(){return this.props.axis}get parent(){let{parent:t,container:e}=this.props;return t||(e instanceof Window?R:e)}get scrollElement(){return this.container instanceof Window?I:this.container}get scrollSize(){let{scrollElement:t}=this;return this.axis==="x"?t.scrollWidth:t.scrollHeight}get scrollableSize(){let{scrollElement:t}=this;return this.axis==="x"?this.scrollSize-t.clientWidth:this.scrollSize-t.clientHeight}get scrollValue(){let{axis:t}=this;return this.container instanceof Window?t==="x"?window.scrollX:window.scrollY:t==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_handleProps(){super._handleProps(),this.resize()}_create(){let t=this.container instanceof Window;this._outer=this._createOuter(),this.parent.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),t?(this._addTempClassName(I,this._cn("-scrollable")),this._addTempClassName(R,this._cn("-scrollable"))):this._addTempClassName(this.scrollElement,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let t=this._cn.bind(this),{props:e,axis:i}=this,r=g.createElement("div");return S(r,t("")),S(r,t(`_${i}`)),e.class&&S(r,e.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),e.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let t=this._cn.bind(this),{axis:e}=this,i=g.createElement("div");return S(i,t("__track")),S(i,t(`__track_${e}`)),i}_createThumb(){let t=this._cn.bind(this),e=g.createElement("div");return S(e,t("__thumb")),S(e,t(`__thumb_${this.axis}`)),e}_setResize(){let t=()=>{let r=Array.from(this.scrollElement.children);return V({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},e=t();e.resize();let i=new MutationObserver(()=>{e.remove(),e=t(),e.debounceResize()});i.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{e.remove(),i.disconnect()})}_setOnscroll(){let t=y(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>t())}_setSwipe(){if(!this.props.draggable)return;let t=new ot({container:this.thumb,grabCursor:!0});t.on("start",e=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",e)}),t.on("move",e=>{this._onSwipeMove(e),this.callbacks.emit("swipe",e)}),t.on("end",e=>{this.callbacks.emit("swipeEnd",e)}),t.on("touchmove",e=>{e.stopPropagation(),e.stopImmediatePropagation()}),t.on("mousemove",e=>{e.stopPropagation(),e.stopImmediatePropagation()}),this.onDestroy(()=>t.destroy())}resize(){let{scrollableSize:t,scrollSize:e,outer:i,track:r,thumb:n,props:o,axis:a}=this,{autoSize:c}=o,l=a==="x";k(i,this._cn("_empty"),t===0);let h=l?r.offsetWidth:r.offsetHeight,p=T(o.minSize),f=p;c&&(f=w(h/(e/h),p,1/0));let{style:v}=n;l?v.width=`${f}px`:v.height=`${f}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:t,scrollableSize:e,axis:i,thumbSize:r,trackSize:n}=this,o=w(Math.abs(t)/e);this._isRtl&&i==="x"&&(o=1-o);let a=(n-r)*o,c=i==="x"?a:0,l=i==="y"?a:0;this._thumb.style.transform=`translate(${c}px, ${l}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:t,outer:e}=this,i=this._cn("_in-action");t!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{Z(e,i)||(S(e,i),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=t,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{X(e,i),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:t}){let{scrollElement:e,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,c=(i==="x"?t.x:t.y)/(r-n)*o,l=this._valueOnSwipeStart+c;e.scrollTo({top:i==="y"?l:void 0,left:i==="x"?l:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};Hn([_],te.prototype,"resize",null);var ir={__staticProp:!0,section:null,root:null,optimized:!0,useSvh:!1},sr={__mutableProp:!0};var Un=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ee=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),ir)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),sr)}constructor(t,e){super(t,e),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized){this.update(!0);return}let{section:t}=this.props,e=t.getBoundingClientRect();this._isVisible=e.top<window.innerHeight||e.bottom>0,this.update(!0);let i=new IntersectionObserver(r=>{r.forEach(n=>{if(n.target===t){if(n.isIntersecting===this._isVisible)return;this._isVisible=n.isIntersecting,this.update()}})});i.observe(t),this.onDestroy(()=>i.disconnect())}_setupScroll(){let t=this.props.root||window,e=y(t,"scroll",()=>this.update(),{passive:!1});this.onDestroy(e)}update(t=!1){if(!this.isVisible&&!t)return;let{section:e,props:i}=this,r=i.root,n=b(),o=e.getBoundingClientRect(),a={top:0,left:0,width:n.width,height:i.useSvh?n.sHeight:n.height};this._rootBounds=r?r.getBoundingClientRect():a,this._sectionBounds={top:o.top-this._rootBounds.top,left:o.left-this._rootBounds.left,width:o.width,height:o.height},this.callbacks.emit("update",void 0)}getProgress(t,e,i,r){let n=Bt(this._sectionBounds.top,[t,i]),o=Bt(this._sectionBounds.left,[r,e]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:t,sectionBounds:e}=this,i=this.rootBounds.height,r=e.width>t.width?0:t.width-e.width,n=e.height>t.height?0:t.height-e.height,o=this.rootBounds.width;return this.getProgress(i,r,n,o)}get outProgress(){let{rootBounds:t,sectionBounds:e}=this,i=Math.min(t.height-e.height,0),r=-e.width,n=-e.height,o=Math.min(t.width-e.width,0);return this.getProgress(i,r,n,o)}get moveProgress(){let{rootBounds:t,sectionBounds:e}=this,i=e.height>t.height?0:t.height-e.height,r=e.width>t.width?-(e.width-t.width):0,n=e.height>t.height?-(e.height-t.height):0,o=e.width>t.width?0:t.width-e.width;return this.getProgress(i,r,n,o)}get progress(){let{sectionBounds:t,rootBounds:e}=this,i=e.height,r=-t.width,n=-t.height,o=e.width;return this.getProgress(i,r,n,o)}};Un([_],ee.prototype,"update",null);var Y=class{constructor(t){this._snap=t,this._destructors=[],t.on("destroy",()=>this._destroy(),{protected:!0})}get snap(){return this._snap}addDestructor(t){this._destructors.push(t)}_destroy(){this._destructors.forEach(t=>t())}};var ie=class extends Y{constructor(t){super(t),this.addDestructor(y(t.container,"scroll",()=>this._handleScroll()))}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}};var se="data-snap-parallax-";function W(s){return`${se}${s}`}var re=[{name:"transform",types:[{n:W("x"),p:"translateX",u:"px"},{n:W("y"),p:"translateY",u:"px"},{n:W("z"),p:"translateZ",u:"px"},{n:W("scale"),p:"scale",u:"",modifier:s=>s+1},{n:W("scale-x"),p:"scaleX",u:"",modifier:s=>s+1},{n:W("scale-y"),p:"scaleY",u:"",modifier:s=>s+1},{n:W("skew"),p:"skew",u:"deg"},{n:W("skew-x"),p:"skewX",u:"deg"},{n:W("skew-y"),p:"skewY",u:"deg"},{n:W("rotate"),p:"rotate",u:"deg"},{n:W("rotate-x"),p:"rotateX",u:"deg"},{n:W("rotate-y"),p:"rotateY",u:"deg"},{n:W("rotate-z"),p:"rotateZ",u:"deg"}]},{name:"opacity",types:[{n:W("opacity"),p:"opacity",u:"",isAbs:!0,modifier:s=>w(s+1,0,1)}]}],li=Object.values(re).map(({types:s})=>s).flat(),ne=li.map(({n:s})=>s);var oe=class{constructor(t,e,i){this._snap=t,this._slide=e,this._element=i,this._types=[],this._items=[],this._debounceInit=null,this._initDebounce(),this._observer=new MutationObserver(r=>{r.forEach(({attributeName:n})=>{n&&ne.includes(n)&&this._initDebounce()})}),this._observer.observe(this._element,{attributes:!0})}_initDebounce(){this._debounceInit&&clearTimeout(this._debounceInit),this._debounceInit=setTimeout(()=>this._init(),16)}_init(){this._updateItems(),this.render()}_updateItems(){let t=this._element,e=this._getScope(this._element,`${se}scope`,[-1,1]);this._types=li.filter(({n:i})=>t.hasAttribute(i)),this._items=this._types.map(({n:i,p:r,u:n,isAbs:o,modifier:a})=>{var c;let l=re.find(({types:F})=>F.find(U=>U.n===i)),h=`${i}-scope`,p=t.hasAttribute(h)?this._getScope(t,h,[-1,1]):e,v=this._getAttr(t,i).replace(/[-\d.]+/g,"")||n,u=this._getFloatAttr(t,i,0),d=this._getFloatAttr(t,`${i}-offset`,0),m=this._getFloatAttr(t,`${i}-min`,-1/0),E=this._getFloatAttr(t,`${i}-max`,1/0),P=`${i}-influence`,O=t.hasAttribute(P)?this._getFloatAttr(t,`${i}-influence`,1):0,M=`${i}-directional`,q=t.hasAttribute(M),Q=`${i}-abs`,K=o||t.hasAttribute(Q);return{n:i,p:r,u:v,group:(c=l==null?void 0:l.name)!==null&&c!==void 0?c:"",modifier:a,scope:p,progress:0,target:u,value:0,offset:d,min:m,max:E,influence:O,isDirectional:q,isAbs:K}})}_getAttr(t,e){var i;return(i=t.getAttribute(e))!==null&&i!==void 0?i:""}_getFloatAttr(t,e,i){let r=parseFloat(this._getAttr(t,e));return Number.isNaN(r)?i:r}_getScope(t,e,i){let r=this._getAttr(t,e),n=r.trim().toLowerCase();if(n==="none")return[-1/0,1/0];if(n==="const")return[1,1];let a=r.replace(/[\s\\[\]]+/g,"").split(","),c=parseFloat(a[0]),l=parseFloat(a[1]),h=Number.isNaN(c)?i[0]:c,p=Number.isNaN(l)?i[1]:l;return[h,p]}render(){let{_snap:t,_element:e,_items:i,_slide:r}=this,n=r.progress;i.forEach(o=>{let a=w(n,...o.scope);Math.abs(o.influence)>0&&(a*=Math.abs(t.influence)*o.influence),o.isDirectional&&(a=Math.abs(a)*Math.sign(t.influence)),o.isAbs&&(a=Math.abs(a)),o.progress=a,o.value=o.offset+a*o.target,o.modifier&&(o.value=o.modifier(o.value)),o.value=w(o.value,o.min,o.max)}),re.forEach(({name:o})=>{let l=i.filter(h=>h.group===o).map(({value:h,p,u:f})=>o==="opacity"?`${h}`:`${p}(${h}${f})`).join(" ");e.style[o]=l})}destroy(){this._observer.disconnect(),this._debounceInit&&clearTimeout(this._debounceInit)}};var ft=class{constructor(t,e={}){this._element=t,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._index=0,this._parallax=[];let i={virtual:!1};if(this._props=Object.assign(Object.assign({},i),e),this.props.virtual&&(!e.size||e.size==="auto"))throw new Error("Virtual slide must have a defined size")}get snap(){return this._snap}get props(){return this._props}get element(){return this._element}get index(){return this._index}get coord(){return this._coord}get staticCoord(){return this._staticCoord}get progress(){return this._progress}get sizeProp(){var t,e,i;return(i=(t=this.props.size)!==null&&t!==void 0?t:(e=this.snap)===null||e===void 0?void 0:e.props.slideSize)!==null&&i!==void 0?i:"auto"}get size(){var t;let{snap:e,sizeProp:i}=this;return e?i==="stretch"?e.containerSize:i==="auto"?(t=this._domSize)!==null&&t!==void 0?t:e.containerSize:T(i):0}get isVisible(){return this._isVisible}resize(t=!0){let{element:e,snap:i}=this;i&&(e&&(this._domSize=i.axis==="x"?e.offsetWidth:e.offsetHeight),i.resize(t))}$_attach(t,e){this.$_detach(),this._snap=t,this._index=e,this._parallax=this._getParallaxNodes().map(i=>new oe(t,this,i)),this.element&&this.sizeProp==="auto"&&(this._resizer=V({element:this.element,viewportTarget:"width",callback:()=>this.resize(!1),name:"Snap Slide"}))}$_detach(){var t,e;this._snap=void 0,(t=this._resizer)===null||t===void 0||t.remove(),(e=this._parallax)===null||e===void 0||e.forEach(i=>i.destroy())}$_setStaticCoord(t){this._staticCoord=t}$_render(){var t;this._toggleAppend(),(t=this._parallax)===null||t===void 0||t.forEach(e=>e.render())}_getParallaxNodes(){let{element:t}=this;if(!t)return[];let e=ne.map(r=>`[${r}]`).join(","),i=t.querySelectorAll(e);return Array.from(i)}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:t}=this,{container:e}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,e.appendChild(t)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,e.removeChild(t))}get magnets(){if(!this.snap)return[];let{snap:t,staticCoord:e,size:i,index:r}=this,{containerSize:n}=t,o=[];if(r===0&&t.props.loop&&o.push(t.max),t.props.centered){let a=e+i/2-t.firstSlideSize/2;i>n?(o.push(a),o.push(a+(n-i)/2),o.push(a-(n-i)/2)):o.push(a)}else o.push(e),i>n&&o.push(e+(i-n));return!t.canLoop&&!t.props.centered&&(o=o.map(a=>w(a,0,t.max))),o}$_updateProgress(){let{snap:t}=this;if(!t)return;let{coord:e,size:i}=this,{props:r,containerSize:n}=t;if(r.centered){let o=n/2-i/2;this._progress=J(e,o,o-i);return}this._progress=J(e,0,-i)}$_updateCoords(t){let{snap:e}=this;if(!e)return;let{staticCoord:i,size:r}=this,{centered:n}=e.props;if(!e.canLoop){this._setCoord(i+t-e.current);return}if(n){this._setCoord($(i+t-e.current,-e.max/2+t,e.max/2+t));return}this._setCoord($(i-e.current,-r,e.max-r))}_setCoord(t){var e,i;this._coord=t,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((i=(e=this.snap)===null||e===void 0?void 0:e.containerSize)!==null&&i!==void 0?i:0)}};var ae=class extends Y{constructor(t){super(t),this._startIndex=t.activeIndex,this._startTime=0;let e=new ot(Object.assign({container:t.eventsEmitter,inertia:!1,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5},this.swipeProps));this.swipe=e,this.addDestructor(()=>e.destroy()),e.on("start",i=>this._handleSwipeStart(i)),e.on("move",i=>this._handleSwipeMove(i)),e.on("end",i=>this._handleSwipeEnd(i)),e.on("inertiaStart",()=>this._handleSwipeInertiaStart()),e.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),e.on("inertiaFail",()=>this._handleSwipeInertiaFail()),e.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),t.on("props",()=>e.updateProps(this.swipeProps),{protected:!0})}get isSwiping(){return this.swipe.isSwiping}get track(){return this.snap._track}get axis(){let{props:t,axis:e}=this.snap;return t.swipeAxis==="auto"?e:t.swipeAxis}get isShort(){let{props:t}=this.snap;return t.shortSwipes?+new Date-this._startTime<=t.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){let{diff:t}=this.swipe;return t[this.axis]/Math.abs(this.snap.props.swipeSpeed)}get swipeProps(){let{props:t}=this.snap;return{enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis==="angle"?null:this.axis,relative:this.axis==="angle",ratio:t.swipeSpeed,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio}}_handleVelocityModifier(t){let{snap:e,track:i}=this,{coord:r,size:n}=e.activeSlide;if(e.props.freemode===!0)return t;if(i.target=i.current,e.props.freemode==="sticky"&&!e.isSlideScrolling){let c=i.loopedCurrent-t[this.axis],l=e.getNearestMagnet(c);if(!l)return t;let h=i.loopedCurrent-c-l.diff;return Object.assign(Object.assign({},t),{[this.axis]:h})}let o=w(t[this.axis],-r,e.containerSize-n-r);return Object.assign(Object.assign({},t),{[this.axis]:o})}_handleSwipeStart(t){let{snap:e}=this;this._startIndex=e.activeIndex,this._startTime=+new Date,e.eventsEmitter.style.pointerEvents="none",e.props.followSwipe&&e.cancelTransition(),e.callbacks.emit("swipeStart",t)}_handleSwipeMove(t){let{snap:e,track:i,swipe:r,axis:n}=this,{props:o,callbacks:a}=e,{followSwipe:c}=o;if(!c&&!e.isSlideScrolling)return;let l=t.step[n];n==="angle"&&(l=l/360*e.containerSize);let h=l*-1;i.iterateTarget(h),r.hasInertia&&i.clampTarget(),a.emit("swipe",t)}_handleSwipeEnd(t){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",t)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:t}=this;t.props.freemode==="sticky"&&!t.isSlideScrolling&&(this.isShort?this._endShort():t.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:t,swipe:e,track:i}=this,{props:r}=t;if(r.freemode){e.updateProps({inertia:!0}),!i.canLoop&&(i.target<i.min||i.target>i.max)&&(e.cancelInertia(),t.stick()),this.isShort&&r.freemode==="sticky"&&(e.updateProps({inertia:!1}),e.cancelInertia(),this._endShort());return}if(t.isSlideScrolling){e.updateProps({inertia:!0});return}if(e.updateProps({inertia:!1}),!r.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}t.stick()}_endShort(){let{diff:t,snap:e}=this,{props:i,activeSlide:r}=e;if(Math.abs(t)<i.shortSwipesThreshold){e.stick();return}let n=Math.sign(t);if(this._startIndex!==e.activeIndex){n<0&&r.progress>0?e.next():n>0&&r.progress<0?e.prev():e.stick();return}n<0?e.next():e.prev()}_endNoFollow(){let{diff:t,snap:e}=this;if(Math.abs(t)<20){e.stick();return}t<0?e.next():e.prev()}};var le=class extends Y{constructor(t){super(t),this._influence={current:0,target:0},this._current=0,this._target=0,this._raf=new H,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>t.callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>t.callbacks.emit("rafPause",void 0)),this.addDestructor(()=>this._raf.destroy()),this.addDestructor(()=>this.cancelTransition())}get isInterpolated(){return this.current===this.target&&this._influence.current===0}get influence(){return this._influence.current}set influence(t){this._influence.current=t,this._influence.target=t}get current(){return this._current}set current(t){this._current=t}get target(){return this._target}set target(t){let{containerSize:e}=this.snap,i=t-this._target;this._target=t,this._influence.target+=e?i/e:0,this._influence.target=w(this._influence.target,-1,1)}get canLoop(){let{snap:t}=this;return t.props.loop&&t.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:t}=this;return t.props.centered?t.containerSize/2-t.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}get isTransitioning(){return!!this._timeline}set(t){this.current=t,this.target=t,this._influence.current=0,this._influence.target=0}loopCoord(t){return this.canLoop?$(t,this.min,this.max):t}get min(){let{snap:t}=this;if(this.canLoop||t.isEmpty)return 0;if(t.props.centered){let e=t.slides[0];if(e.size>t.containerSize)return t.containerSize/2-e.size/2}return 0}get max(){let{containerSize:t,slides:e,isEmpty:i,props:r}=this.snap,{canLoop:n}=this;if(i)return 0;let o=e[0],a=e[e.length-1],c=a.staticCoord+a.size,l=n?c+T(r.gap):c-t;return n||(r.centered&&(l+=t/2-o.size/2,a.size<t&&(l+=t/2-a.size/2)),r.centered||(l=Math.max(l,0))),l}get progress(){return this.current/this.max}awake(){this._raf.play()}iterateTarget(t){this.target+=t,this.awake()}clampTarget(){this.canLoop||(this.target=w(this.target,this.min,this.max)),this.awake()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}_handleRaf(){let{snap:t}=this;if(t.isTransitioning)return;let e=this._raf.lerpFactor(t.props.lerp);this.lerp(e),this.isInterpolated&&this._raf.pause(),t.render(this._raf.duration)}lerp(t){let{snap:e,min:i,max:r}=this,{target:n}=this,o=t,a=this._influence;if(!e.props.loop){let{containerSize:h}=e,p=(1-e.props.edgeFriction)*h;if(n<i){let f=1-J(n,-h,i);n=i-f*p}else if(n>r){let f=J(n,r,r+h);n=r+f*p}n=w(n,i-p,r+p)}let c=Math.abs(this.current-n),l=3;if(c<l){let h=1-c/l,p=(1-o)/15;o+=p*h}this.current=A(this.current,n,o,1e-6),a.target=A(a.target,0,o,1e-6),a.current=A(a.current,a.target,o,1e-6)}cancelTransition(){var t;(t=this._timeline)===null||t===void 0||t.destroy(),this._timeline=void 0}toCoord(t,e){var i,r;let{snap:n}=this,{props:o,callbacks:a}=n;if(n.isEmpty||n.isDestroyed)return!1;this.cancelTransition();let c=this.current,l=t,h=Math.abs(l-c),p=(i=e==null?void 0:e.duration)!==null&&i!==void 0?i:n.props.duration,f=D(p)?p:p(h);h===0&&(f=0);let v=(r=e==null?void 0:e.easing)!==null&&r!==void 0?r:o.easing,u=new B({duration:f,easing:v});return this._timeline=u,u.on("start",()=>{var d;a.emit("timelineStart",void 0),(d=e==null?void 0:e.onStart)===null||d===void 0||d.call(e)}),u.on("update",d=>{var m;this.current=A(c,l,d.eased),this.target=this.current,this.influence*=1-d.progress,d.progress===1&&(n.$_targetIndex=void 0),n.render(),a.emit("timelineUpdate",d),(m=e==null?void 0:e.onUpdate)===null||m===void 0||m.call(e,d)}),u.on("end",()=>{var d;u.destroy(),a.emit("timelineEnd",void 0),(d=e==null?void 0:e.onEnd)===null||d===void 0||d.call(e),this._timeline=void 0}),u.on("destroy",()=>{n.$_targetIndex=void 0}),u.play(),!0}};var ci=6,ce=class extends Y{constructor(t){super(t),this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0;let e=y(t.eventsEmitter,"wheel",i=>this._handleWheel(i));this.addDestructor(()=>{e(),this._debounceEnd&&clearTimeout(this._debounceEnd)})}get track(){return this.snap._track}get absDeltas(){return this._deltas.map(t=>Math.abs(t))}_handleWheel(t){let{props:e,axis:i}=this.snap;if(!e.wheel)return;t.preventDefault();let r=Pe(t),o=(e.wheelAxis==="auto"?i:e.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,t),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(t){this._hasStarted||Math.abs(t)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(t,e){if(!this._hasStarted)return;let{props:i,callbacks:r}=this.snap;this._addDelta(t),r.emit("wheel",e),i.followWheel?this._handleFollow(t):this._handleNoFollow(t)}_handleFollow(t){let{snap:e,track:i}=this;i.cancelTransition(),i.iterateTarget(t*e.props.wheelSpeed),i.clampTarget()}_handleNoFollow(t){let{snap:e,track:i,isTouchPad:r,isGainingDelta:n}=this,{props:o,activeSlide:a}=e,c=t*o.wheelSpeed;if(this._detectNoFollowThrottle())return;let l=!1,h=!0;if(l||e.isSlideScrolling&&(a.coord===0?c>0&&(l=!0):a.coord===e.containerSize-a.size?c<0&&(l=!0):(l=!0,h=!1)),h){if(!r||r&&(n||this.absDeltas.length===1)){let p=Math.sign(c);if(l)e.cancelTransition(),i.iterateTarget(p),i.clampTarget(),r||(i.current=i.target);else if(p===1){if(!o.loop&&e.activeIndex===e.slides.length-1&&!o.rewind)return;this._lastWheelTime=+new Date,e.next()}else{if(!o.loop&&e.activeIndex===0&&!o.rewind)return;this._lastWheelTime=+new Date,e.prev()}}return}if(l){e.cancelTransition();let p=c,f=Math.min(...a.magnets),v=Math.max(...a.magnets),u=i.loopCoord(i.target),d=w(u+p,f,v);i.target=i.target+d-u,i.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:t,snap:e}=this,{wheelThrottle:i}=e.props,r=+new Date-this._lastWheelTime;return D(i)?r<i:t?e.isTransitioning:!!(e.scrollableSlides.filter(o=>o.isVisible).length&&e.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:t}=this,{props:e,activeSlide:i}=t,r=this._deltas.slice(-3).reduce((n,o)=>n+o,0);if(this._deltas=[],this._hasStarted=!1,!e.freemode||e.freemode==="sticky")if(e.followWheel&&e.stickOnWheelEnd){let n=Math.abs(e.stickOnWheelEndThreshold)/i.size;i.progress>n&&!t.isSlideScrolling&&r>0?t.next():i.progress<-n&&!t.isSlideScrolling&&r<0?t.prev():t.stick()}else!e.followWheel&&!t.isTransitioning&&t.stick();t.callbacks.emit("wheelEnd",void 0)}_addDelta(t){this._deltas.length>=ci&&this._deltas.shift(),this._deltas.push(t)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let t=this.absDeltas,e=.8,i=t.map((n,o)=>{let a=t[o-1];return t[o-1]?n-a:0});return i.filter(n=>n===0).length>i.length*e}get isSmallDelta(){let t=this.absDeltas;return t.length===0?!0:t[t.length-1]<50}get isGainingDelta(){let t=b(),e=this.absDeltas,i=t.osName.includes("window")?1.5:1.2;if(e.length<ci)return!1;let r=e.slice(-ci),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*i}_getAverage(t){return t.length?t.reduce((e,i)=>e+i,0)/t.length:0}};var hi,rr={__staticProp:!0,container:null,eventsEmitter:null,activeIndex:0},nr={__mutableProp:!0,slides:!1,containerSize:"auto",slidesToScroll:1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:!((hi=b())===null||hi===void 0)&&hi.mobile?1:.2,freemode:!1,rewind:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:rt,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:s=>w(s,500,2e3),swipeInertiaRatio:.5,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto"};var di=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pi=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(e[i[r]]=s[i[r]]);return e},mt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),rr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),nr)}constructor(t,e){super(t,e),this._containerSize=0,this._slides=[],this._scrollableSlides=[];let{container:i,activeIndex:r}=this.props;this._activeIndex=r,this._resizer=V({element:i,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizer.debounceResize(),this._fetchSlides(),new ce(this),this._swipe=new ae(this),this._track=new le(this),new ie(this)}_handleProps(){this._fetchSlides(),this._resizer.resize(),super._handleProps()}get container(){return this.props.container}get eventsEmitter(){var t;return(t=this.props.eventsEmitter)!==null&&t!==void 0?t:this.container}get containerSize(){let{containerSize:t}=this.props;return t==="auto"?this._containerSize:T(t)}get domSize(){return this.containerSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get isTransitioning(){return this._track.isTransitioning}get isSwiping(){return!!this._swipe.isSwiping}get influence(){return this._track.influence}get current(){return this._track.current}get target(){return this._track.target}get canLoop(){return this._track.canLoop}get loopedCurrent(){return this._track.loopedCurrent}get loopCount(){return this._track.loopCount}set(t){this._track.set(t)}loopCoord(t){return this._track.loopCoord(t)}get min(){return this._track.min}get max(){return this._track.max}get progress(){return this.current/this.max}get isStart(){return this._track.isStart}get isEnd(){return this._track.isEnd}clampTarget(){this._track.clampTarget()}iterateTarget(t){this._track.iterateTarget(t)}cancelTransition(){this._track.cancelTransition()}get isSlideScrolling(){let{containerSize:t}=this;return this.scrollableSlides.some(({size:e,coord:i})=>ii(i,t-e,0))}get firstSlideSize(){return this.slides[0].size}_fetchSlides(){let{props:t}=this;this._slides.forEach(i=>i.$_detach());let e=t.slides?t.slides:Array.from(t.container.children);this._slides=e.map(i=>i instanceof ft?i:new ft(i)),this._slides.forEach((i,r)=>i.$_attach(this,r))}resize(t=!0){t?this._resizer.resize():this._resizer.debounceResize()}_handleResize(){let{container:t}=this.props;this._track.cancelTransition(),this._containerSize=this.axis==="x"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}_reflow(){let{slides:t,props:e}=this;if(this.isEmpty)return;this._scrollableSlides=[],t.reduce((r,n)=>(n.$_setStaticCoord(r),n.size>this.containerSize&&this._scrollableSlides.push(n),r+n.size+T(e.gap)),0);let i=t.find(({index:r})=>r===this.activeIndex);e.stickOnResize&&i&&(this._track.clampTarget(),this._track.set(i.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}render(t=0){if(this.isEmpty)return;let{_swipe:e,_track:i,props:r}=this;this._updateSlidesCoords(),this._updateSlideProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(Yt(this.$_targetIndex)||n.slide.index===this.$_targetIndex)&&(this._activeIndex=n.slide.index,this.$_targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=e.isSwiping&&e.allowFriction||!e.isSwiping;n&&o&&t>0&&r.friction>=0&&!this.isSlideScrolling&&!r.freemode&&(i.target=Oe(i.target,i.current+n.diff,r.friction*r.lerp,t,1e-6)),this.slides.forEach(a=>a.$_render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:t,props:e,containerSize:i,firstSlideSize:r}=this,n=e.centered?i/2-r/2:0;t.forEach(o=>o.$_updateCoords(n))}_updateSlideProgress(){this.slides.forEach(t=>t.$_updateProgress())}get magnet(){let t=this._track.loopedCurrent;return this.getNearestMagnet(t)}getNearestMagnet(t){let e=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(e.length===0)return;let i=e.reduce((r,n)=>Math.abs(n.magnet-t)<Math.abs(r.magnet-t)?n:r);return Object.assign(Object.assign({},i),{diff:i.magnet-t})}stick(){let{magnet:t,isSlideScrolling:e}=this;e||!t||this.toCoord(this._track.current+t.diff)}toCoord(t,e){return this._track.toCoord(t,e)}toSlide(t,e={}){var i,r,{direction:n=null}=e,o=pi(e,["direction"]);let{isEmpty:a,activeIndex:c,slides:l,_track:h,props:p}=this,{current:f,max:v,loopCount:u}=h;if(a||this.isDestroyed)return!1;let d=$(t,0,this.slides.length);if(d===c)return this.stick(),!1;this.$_targetIndex=d;let m=l[d].magnets,E=m[0];if(p.centered?n==="prev"?E=(i=m[2])!==null&&i!==void 0?i:m[0]:n==="next"&&(E=(r=m[1])!==null&&r!==void 0?r:m[0]):E=n==="prev"?m[m.length-1]:E,!p.loop)return this.toCoord(E,o);let P=E+u*v,O=P-v,M=P+v,q=[O,P,M];if(ct(n)){let K=q.filter(U=>n==="next"?U>=f:U<=f),F=Rt(f,K);return this.toCoord(F,o)}let Q=Rt(f,q);return this.toCoord(Q,o)}next(t={}){var{skip:e=this.props.slidesToScroll}=t,i=pi(t,["skip"]);let{props:r,slides:n,activeIndex:o}=this,{length:a}=n,c=$(o+e,0,a);return r.loop||(c=r.rewind?$(o+e,0,a):Math.min(o+e,a-1)),this.toSlide(c,Object.assign(Object.assign({},i),{direction:"next"}))}prev(t={}){var{skip:e=this.props.slidesToScroll}=t,i=pi(t,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=$(o-e,0,n.length);return r.loop||(a=r.rewind?$(o-e,0,n.length):Math.max(o-e,0)),this.toSlide(a,Object.assign(Object.assign({},i),{direction:"prev"}))}_destroy(){super._destroy(),this._resizer.remove(),this._slides.forEach(t=>t.$_detach())}};di([_],mt.prototype,"resize",null);di([_],mt.prototype,"render",null);di([_],mt.prototype,"toCoord",null);var or=s=>({__staticProp:!0,container:null,letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:`${s}__letter`,wordClass:`${s}__word`,lineClass:`${s}__line`,lineWrapperClass:`${s}__line-wrapper`,resizeDebounce:0,ignore:null,prepareText:t=>t,wordDelimiter:" ",wordDelimiterOutput:null}),ar={__mutableProp:!0};function lr(s){let t=[];function e(i){t.push({node:i,cssText:i instanceof HTMLElement?i.style.cssText:null,parent:i.parentNode}),i.childNodes.forEach(r=>e(r))}return s.childNodes.forEach(i=>e(i)),{restore:()=>{let i=g.createDocumentFragment();for(t.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===s?i:r.parent).appendChild(r.node)});s.childNodes[0];)s.childNodes[0].remove();s.appendChild(i)}}}var Cr=bi(Ar());function he(s,t){return t?ct(t)?s.matches(t):typeof t=="function"?t(s):t.includes(s):!1}function Rr({wordsMeta:s,classname:t,tagName:e,ignore:i}){let r=[],n=g.createElement(e);return n.style.display="inline-block",S(n,t),s.forEach(o=>{if(he(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let c=a.textContent;if(!c)return;(0,Cr.default)(c,"").forEach(h=>{let p=n.cloneNode(!1);p.appendChild(g.createTextNode(h)),o.element.insertBefore(p,a);let f={element:p};o.letters.push(f),r.push(f)}),a.remove()}),{lettersMeta:r}}function kr({container:s,classname:t,tagName:e,ignore:i,prepareText:r,wordDelimiter:n=" ",wordDelimiterOutput:o}){let a=o||n,c=g.createElement(e);c.style.display="inline-block",c.setAttribute("aria-hidden","true"),S(c,t);let l=[],h=null;function p(f){var v,u;if(f instanceof HTMLElement||f instanceof DocumentFragment){if("tagName"in f&&f.tagName!=="BR"){if(he(f,i)){h?h.append(f):l.push({element:f,letters:[]});return}f.style.display="inline-block"}h=null,[...Array.from(f.childNodes)].forEach(m=>p(m));return}if(f.nodeType===3){let d=(v=f.parentElement)!==null&&v!==void 0?v:s,m=(u=f.nodeValue)!==null&&u!==void 0?u:"";if(m===n){h=null,d==null||d.insertBefore(g.createTextNode(a),f),f.remove();return}m=r?r(m):m;let E=m.split(n);E.forEach((P,O)=>{if(P){let M=c.cloneNode(!1);M.appendChild(g.createTextNode(P)),h=M,l.push({element:M,letters:[]}),d==null||d.insertBefore(M,f)}O<E.length-1&&(d==null||d.insertBefore(g.createTextNode(a),f))}),f.remove()}}return p(s),l}var Io=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(e[i[r]]=s[i[r]]);return e};function Dr(s){var{container:t,letterClassName:e,wordClassName:i,hasLetters:r,letterTag:n,wordTag:o,ignore:a}=s,c=Io(s,["container","letterClassName","wordClassName","hasLetters","letterTag","wordTag","ignore"]);let l=g.createDocumentFragment();for(;t.childNodes[0];)l.appendChild(t.childNodes[0]);let h=kr(Object.assign(Object.assign({},c),{container:l,classname:i,tagName:o,ignore:a})),p=[];if(r){let f=Rr({wordsMeta:h,classname:e,tagName:n,ignore:a});p.push(...f.lettersMeta)}return t.appendChild(l),{wordsMeta:h,lettersMeta:p}}function jr(s){let{direction:t,textAlign:e}=getComputedStyle(s);return e==="center"?e:e==="justify"?t==="rtl"?"right":"left":e==="left"||e==="right"?e:e==="start"?t==="rtl"?"right":"left":e==="end"?t==="rtl"?"left":"right":t==="rtl"?"right":"left"}function zr(s,t){var e;return s!=null&&s.parentElement?s.parentElement===t?s:zr((e=s==null?void 0:s.parentElement)!==null&&e!==void 0?e:null,t):null}function Br(s,t){return s===t?!0:s!==null?Br(s.parentNode,t):!1}function Lr({container:s,hasLinesWrapper:t,wordsMeta:e,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=jr(s),a=[],c=-1,l=null,h=g.createElement(n);h.style.display="block",h.setAttribute("aria-hidden","true"),S(h,i);let p=e.map(u=>u.element.getBoundingClientRect());e.forEach((u,d)=>{var m;let E=p[d],P=zr(u.element,s);if(!P)return;let O=l&&E.top>l.top,M=l&&E.left>=l.left,q=l&&E.left<=l.left;if(!l||O&&q&&o==="left"||O&&M&&o==="right"||O&&o==="center"){c+=1;let F=h.cloneNode(!1),U;t&&(U=g.createElement(n),U.style.display="block",S(U,r),U.appendChild(F)),a[c]={element:F,wrapper:U,nodes:[],words:[]}}l=E;let Q=a[c];!!a.find(({nodes:F})=>F.includes(P))||(Q.nodes.push(P),((m=P.nextSibling)===null||m===void 0?void 0:m.nodeType)===3&&Q.nodes.push(P.nextSibling))}),a.forEach(u=>{var d;s.insertBefore((d=u.wrapper)!==null&&d!==void 0?d:u.element,u.nodes[0]);let m=g.createDocumentFragment();m.append(...u.nodes),u.element.append(m)});let f=[];return a.forEach(u=>{var d;let m=((d=u.wrapper)!==null&&d!==void 0?d:u.element).nextElementSibling;m instanceof HTMLBRElement&&(m.style.display="none",f.push(m))}),a.forEach(u=>{u.words.push(...e.filter(d=>Br(d.element,u.element)))}),{linesMeta:a,destroy:()=>{let u=!0;return f.forEach(d=>{d.style.display=""}),a.forEach(d=>{var m;d.nodes.forEach(E=>{var P;let O=(P=d.wrapper)!==null&&P!==void 0?P:d.element;O.parentElement?s.insertBefore(E,O):u=!1}),d.element.remove(),(m=d.wrapper)===null||m===void 0||m.remove()}),u}}}var Ao=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pe=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),or(this.prefix))}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),ar)}constructor(t,e){super(t,e),this._hasSplitBase=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:i}=this.props,{style:r}=i;r.fontKerning="none",r.display="block",i.setAttribute("aria-label",i.textContent||""),i.translate=!1,this._addTempClassName(i,this._cn("")),this._initials=lr(i),this._setEvents()}get prefix(){return`${b().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(t=>t.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(t=>t.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(t=>t.element)}_setEvents(){let{container:t,resizeDebounce:e}=this.props;if(!this.props.lines){this.split();return}let i=V({callback:()=>this.split(),element:t,viewportTarget:"width",resizeDebounce:e,name:this.name});i.resize(),this.onDestroy(()=>i.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._hasSplitBase)return;let{container:t,letterTag:e,wordTag:i,wordClass:r,letterClass:n,ignore:o,prepareText:a,wordDelimiter:c,wordDelimiterOutput:l}=this.props;this._hasSplitBase=!0;let{wordsMeta:h,lettersMeta:p}=Dr({container:t,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:e,wordTag:i,ignore:o,prepareText:a,wordDelimiter:c,wordDelimiterOutput:l});this._wordsMeta=h,this._lettersMeta=p}_splitLines(){var t;let{wordsMeta:e}=this,{container:i,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;i.offsetParent!==null&&((t=this._lineSplitWrapper)===null||t===void 0||t.destroy(),this._lineSplitWrapper=Lr({container:i,hasLinesWrapper:this.props.linesWrapper,wordsMeta:e,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._initials.restore();else{let t=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,t&&this._initials.restore()}}};Ao([_],pe.prototype,"split",null);var Nr=C?b():void 0,Co=Nr;return Yr(Ro);})();
|
|
177
|
+
`,ut)}var Un=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},te=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),tr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),er)}constructor(t,e){super(t,e),this._valueOnSwipeStart=0,this._prevScrollValue=0,this._isRtl=!1,this._isRtl=it(this.parent)==="rtl",ir(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),S(this.outer,this._cn("_inited"))}get prefix(){return`${b().prefix}scrollbar`}get outer(){return this._outer}get container(){return this.props.container}get track(){return this._track}get thumb(){return this._thumb}get axis(){return this.props.axis}get parent(){let{parent:t,container:e}=this.props;return t||(e instanceof Window?k:e)}get scrollElement(){return this.container instanceof Window?I:this.container}get scrollSize(){let{scrollElement:t}=this;return this.axis==="x"?t.scrollWidth:t.scrollHeight}get scrollableSize(){let{scrollElement:t}=this;return this.axis==="x"?this.scrollSize-t.clientWidth:this.scrollSize-t.clientHeight}get scrollValue(){let{axis:t}=this;return this.container instanceof Window?t==="x"?window.scrollX:window.scrollY:t==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_handleProps(){super._handleProps(),this.resize()}_create(){let t=this.container instanceof Window;this._outer=this._createOuter(),this.parent.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),t?(this._addTempClassName(I,this._cn("-scrollable")),this._addTempClassName(k,this._cn("-scrollable"))):this._addTempClassName(this.scrollElement,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let t=this._cn.bind(this),{props:e,axis:i}=this,r=g.createElement("div");return S(r,t("")),S(r,t(`_${i}`)),e.class&&S(r,e.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),e.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let t=this._cn.bind(this),{axis:e}=this,i=g.createElement("div");return S(i,t("__track")),S(i,t(`__track_${e}`)),i}_createThumb(){let t=this._cn.bind(this),e=g.createElement("div");return S(e,t("__thumb")),S(e,t(`__thumb_${this.axis}`)),e}_setResize(){let t=()=>{let r=Array.from(this.scrollElement.children);return H({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},e=t();e.resize();let i=new MutationObserver(()=>{e.remove(),e=t(),e.debounceResize()});i.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{e.remove(),i.disconnect()})}_setOnscroll(){let t=y(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>t())}_setSwipe(){if(!this.props.draggable)return;let t=new ot({container:this.thumb,grabCursor:!0});t.on("start",e=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",e)}),t.on("move",e=>{this._onSwipeMove(e),this.callbacks.emit("swipe",e)}),t.on("end",e=>{this.callbacks.emit("swipeEnd",e)}),t.on("touchmove",e=>{e.stopPropagation(),e.stopImmediatePropagation()}),t.on("mousemove",e=>{e.stopPropagation(),e.stopImmediatePropagation()}),this.onDestroy(()=>t.destroy())}resize(){let{scrollableSize:t,scrollSize:e,outer:i,track:r,thumb:n,props:o,axis:a}=this,{autoSize:c}=o,l=a==="x";D(i,this._cn("_empty"),t===0);let h=l?r.offsetWidth:r.offsetHeight,p=M(o.minSize),f=p;c&&(f=w(h/(e/h),p,1/0));let{style:v}=n;l?v.width=`${f}px`:v.height=`${f}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:t,scrollableSize:e,axis:i,thumbSize:r,trackSize:n}=this,o=w(Math.abs(t)/e);this._isRtl&&i==="x"&&(o=1-o);let a=(n-r)*o,c=i==="x"?a:0,l=i==="y"?a:0;this._thumb.style.transform=`translate(${c}px, ${l}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:t,outer:e}=this,i=this._cn("_in-action");t!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{Z(e,i)||(S(e,i),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=t,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{Q(e,i),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:t}){let{scrollElement:e,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,c=(i==="x"?t.x:t.y)/(r-n)*o,l=this._valueOnSwipeStart+c;e.scrollTo({top:i==="y"?l:void 0,left:i==="x"?l:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};Un([_],te.prototype,"resize",null);var sr={__staticProp:!0,section:null,root:null,optimized:!0,useSvh:!1},rr={__mutableProp:!0};var Xn=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ee=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),sr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),rr)}constructor(t,e){super(t,e),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized){this.update(!0);return}let{section:t}=this.props,e=t.getBoundingClientRect();this._isVisible=e.top<window.innerHeight||e.bottom>0,this.update(!0);let i=new IntersectionObserver(r=>{r.forEach(n=>{if(n.target===t){if(n.isIntersecting===this._isVisible)return;this._isVisible=n.isIntersecting,this.update()}})});i.observe(t),this.onDestroy(()=>i.disconnect())}_setupScroll(){let t=this.props.root||window,e=y(t,"scroll",()=>this.update(),{passive:!1});this.onDestroy(e)}update(t=!1){if(!this.isVisible&&!t)return;let{section:e,props:i}=this,r=i.root,n=b(),o=e.getBoundingClientRect(),a={top:0,left:0,width:n.width,height:i.useSvh?n.sHeight:n.height};this._rootBounds=r?r.getBoundingClientRect():a,this._sectionBounds={top:o.top-this._rootBounds.top,left:o.left-this._rootBounds.left,width:o.width,height:o.height},this.callbacks.emit("update",void 0)}getProgress(t,e,i,r){let n=Bt(this._sectionBounds.top,[t,i]),o=Bt(this._sectionBounds.left,[r,e]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:t,sectionBounds:e}=this,i=this.rootBounds.height,r=e.width>t.width?0:t.width-e.width,n=e.height>t.height?0:t.height-e.height,o=this.rootBounds.width;return this.getProgress(i,r,n,o)}get outProgress(){let{rootBounds:t,sectionBounds:e}=this,i=Math.min(t.height-e.height,0),r=-e.width,n=-e.height,o=Math.min(t.width-e.width,0);return this.getProgress(i,r,n,o)}get moveProgress(){let{rootBounds:t,sectionBounds:e}=this,i=e.height>t.height?0:t.height-e.height,r=e.width>t.width?-(e.width-t.width):0,n=e.height>t.height?-(e.height-t.height):0,o=e.width>t.width?0:t.width-e.width;return this.getProgress(i,r,n,o)}get progress(){let{sectionBounds:t,rootBounds:e}=this,i=e.height,r=-t.width,n=-t.height,o=e.width;return this.getProgress(i,r,n,o)}};Xn([_],ee.prototype,"update",null);var q=class{constructor(t){this._snap=t,this._destructors=[],t.on("destroy",()=>this._destroy(),{protected:!0})}get snap(){return this._snap}addDestructor(t){this._destructors.push(t)}_destroy(){this._destructors.forEach(t=>t())}};var ie=class extends q{constructor(t){super(t),t.on("update",()=>this._handleUpdate(),{protected:!0}),this.addDestructor(()=>{this._clearInterval()})}get allowInterval(){let{snap:t}=this;return!(t.isSwiping||t.hasInteria||t.isTransitioning||t.isInterpolating||!A(t.props.interval))}_handleUpdate(){let{snap:t}=this;if(!this.allowInterval){this._clearInterval();return}this._interval||(this._interval=setInterval(()=>{this._handleInterval()},t.props.interval))}_handleInterval(){let{snap:t}=this;t.props.intervalDirection==="prev"?t.prev():t.next()}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=void 0)}};var se=class extends q{constructor(t){super(t),this.addDestructor(y(t.container,"scroll",()=>this._handleScroll()))}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}};var re="data-snap-parallax-";function W(s){return`${re}${s}`}var ne=[{name:"transform",types:[{n:W("x"),p:"translateX",u:"px"},{n:W("y"),p:"translateY",u:"px"},{n:W("z"),p:"translateZ",u:"px"},{n:W("scale"),p:"scale",u:"",modifier:s=>s+1},{n:W("scale-x"),p:"scaleX",u:"",modifier:s=>s+1},{n:W("scale-y"),p:"scaleY",u:"",modifier:s=>s+1},{n:W("skew"),p:"skew",u:"deg"},{n:W("skew-x"),p:"skewX",u:"deg"},{n:W("skew-y"),p:"skewY",u:"deg"},{n:W("rotate"),p:"rotate",u:"deg"},{n:W("rotate-x"),p:"rotateX",u:"deg"},{n:W("rotate-y"),p:"rotateY",u:"deg"},{n:W("rotate-z"),p:"rotateZ",u:"deg"}]},{name:"opacity",types:[{n:W("opacity"),p:"opacity",u:"",isAbs:!0,modifier:s=>w(s+1,0,1)}]}],ci=Object.values(ne).map(({types:s})=>s).flat(),oe=ci.map(({n:s})=>s);var ae=class{constructor(t,e,i){this._snap=t,this._slide=e,this._element=i,this._types=[],this._items=[],this._debounceInit=null,this._initDebounce(),this._observer=new MutationObserver(r=>{r.forEach(({attributeName:n})=>{n&&oe.includes(n)&&this._initDebounce()})}),this._observer.observe(this._element,{attributes:!0})}_initDebounce(){this._debounceInit&&clearTimeout(this._debounceInit),this._debounceInit=setTimeout(()=>this._init(),16)}_init(){this._updateItems(),this.render()}_updateItems(){let t=this._element,e=this._getScope(this._element,`${re}scope`,[-1,1]);this._types=ci.filter(({n:i})=>t.hasAttribute(i)),this._items=this._types.map(({n:i,p:r,u:n,isAbs:o,modifier:a})=>{var c;let l=ne.find(({types:V})=>V.find(Y=>Y.n===i)),h=`${i}-scope`,p=t.hasAttribute(h)?this._getScope(t,h,[-1,1]):e,v=this._getAttr(t,i).replace(/[-\d.]+/g,"")||n,u=this._getFloatAttr(t,i,0),d=this._getFloatAttr(t,`${i}-offset`,0),m=this._getFloatAttr(t,`${i}-min`,-1/0),E=this._getFloatAttr(t,`${i}-max`,1/0),P=`${i}-influence`,T=t.hasAttribute(P)?this._getFloatAttr(t,`${i}-influence`,1):0,O=`${i}-directional`,X=t.hasAttribute(O),F=`${i}-abs`,K=o||t.hasAttribute(F);return{n:i,p:r,u:v,group:(c=l==null?void 0:l.name)!==null&&c!==void 0?c:"",modifier:a,scope:p,progress:0,target:u,value:0,offset:d,min:m,max:E,influence:T,isDirectional:X,isAbs:K}})}_getAttr(t,e){var i;return(i=t.getAttribute(e))!==null&&i!==void 0?i:""}_getFloatAttr(t,e,i){let r=parseFloat(this._getAttr(t,e));return Number.isNaN(r)?i:r}_getScope(t,e,i){let r=this._getAttr(t,e),n=r.trim().toLowerCase();if(n==="none")return[-1/0,1/0];if(n==="const")return[1,1];let a=r.replace(/[\s\\[\]]+/g,"").split(","),c=parseFloat(a[0]),l=parseFloat(a[1]),h=Number.isNaN(c)?i[0]:c,p=Number.isNaN(l)?i[1]:l;return[h,p]}render(){let{_snap:t,_element:e,_items:i,_slide:r}=this,n=r.progress;i.forEach(o=>{let a=w(n,...o.scope);Math.abs(o.influence)>0&&(a*=Math.abs(t.influence)*o.influence),o.isDirectional&&(a=Math.abs(a)*Math.sign(t.influence)),o.isAbs&&(a=Math.abs(a)),o.progress=a,o.value=o.offset+a*o.target,o.modifier&&(o.value=o.modifier(o.value)),o.value=w(o.value,o.min,o.max)}),ne.forEach(({name:o})=>{let l=i.filter(h=>h.group===o).map(({value:h,p,u:f})=>o==="opacity"?`${h}`:`${p}(${h}${f})`).join(" ");e.style[o]=l})}destroy(){this._observer.disconnect(),this._debounceInit&&clearTimeout(this._debounceInit)}};var ft=class{constructor(t,e={}){this._element=t,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._index=0,this._parallax=[];let i={virtual:!1};if(this._props=Object.assign(Object.assign({},i),e),this.props.virtual&&(!e.size||e.size==="auto"))throw new Error("Virtual slide must have a defined size")}get snap(){return this._snap}get props(){return this._props}get element(){return this._element}get index(){return this._index}get coord(){return this._coord}get staticCoord(){return this._staticCoord}get progress(){return this._progress}get sizeProp(){var t,e,i;return(i=(t=this.props.size)!==null&&t!==void 0?t:(e=this.snap)===null||e===void 0?void 0:e.props.slideSize)!==null&&i!==void 0?i:"auto"}get size(){var t;let{snap:e,sizeProp:i}=this;return e?i==="stretch"?e.containerSize:i==="auto"?(t=this._domSize)!==null&&t!==void 0?t:e.containerSize:M(i):0}get isVisible(){return this._isVisible}resize(t=!0){let{element:e,snap:i}=this;i&&(e&&(this._domSize=i.axis==="x"?e.offsetWidth:e.offsetHeight),i.resize(t))}$_attach(t,e){this.$_detach(),this._snap=t,this._index=e,this._parallax=this._getParallaxNodes().map(i=>new ae(t,this,i)),this.element&&this.sizeProp==="auto"&&(this._resizer=H({element:this.element,viewportTarget:"width",callback:()=>this.resize(!1),name:"Snap Slide"}))}$_detach(){var t,e;this._snap=void 0,(t=this._resizer)===null||t===void 0||t.remove(),(e=this._parallax)===null||e===void 0||e.forEach(i=>i.destroy())}$_setStaticCoord(t){this._staticCoord=t}$_render(){var t;this._toggleAppend(),(t=this._parallax)===null||t===void 0||t.forEach(e=>e.render())}_getParallaxNodes(){let{element:t}=this;if(!t)return[];let e=oe.map(r=>`[${r}]`).join(","),i=t.querySelectorAll(e);return Array.from(i)}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:t}=this,{container:e}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,e.appendChild(t)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,e.removeChild(t))}get magnets(){if(!this.snap)return[];let{snap:t,staticCoord:e,size:i,index:r}=this,{containerSize:n}=t,o=[];if(r===0&&t.props.loop&&o.push(t.max),t.props.centered){let a=e+i/2-t.firstSlideSize/2;i>n?(o.push(a),o.push(a+(n-i)/2),o.push(a-(n-i)/2)):o.push(a)}else o.push(e),i>n&&o.push(e+(i-n));return!t.canLoop&&!t.props.centered&&(o=o.map(a=>w(a,0,t.max))),o}$_updateProgress(){let{snap:t}=this;if(!t)return;let{coord:e,size:i}=this,{props:r,containerSize:n}=t;if(r.centered){let o=n/2-i/2;this._progress=J(e,o,o-i);return}this._progress=J(e,0,-i)}$_updateCoords(t){let{snap:e}=this;if(!e)return;let{staticCoord:i,size:r}=this,{centered:n}=e.props;if(!e.canLoop){this._setCoord(i+t-e.current);return}if(n){this._setCoord($(i+t-e.current,-e.max/2+t,e.max/2+t));return}this._setCoord($(i-e.current,-r,e.max-r))}_setCoord(t){var e,i;this._coord=t,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((i=(e=this.snap)===null||e===void 0?void 0:e.containerSize)!==null&&i!==void 0?i:0)}};var le=class extends q{constructor(t){super(t),this._startIndex=t.activeIndex,this._startTime=0;let e=new ot(Object.assign({container:t.eventsEmitter,inertia:!1,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5},this.swipeProps));this.swipe=e,this.addDestructor(()=>e.destroy()),e.on("start",i=>this._handleSwipeStart(i)),e.on("move",i=>this._handleSwipeMove(i)),e.on("end",i=>this._handleSwipeEnd(i)),e.on("inertiaStart",()=>this._handleSwipeInertiaStart()),e.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),e.on("inertiaFail",()=>this._handleSwipeInertiaFail()),e.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),t.on("props",()=>e.updateProps(this.swipeProps),{protected:!0})}get isSwiping(){return this.swipe.isSwiping}get hasIntertia(){return this.swipe.hasInertia}get track(){return this.snap._track}get axis(){let{props:t,axis:e}=this.snap;return t.swipeAxis==="auto"?e:t.swipeAxis}get isShort(){let{props:t}=this.snap;return t.shortSwipes?+new Date-this._startTime<=t.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){let{diff:t}=this.swipe;return t[this.axis]/Math.abs(this.snap.props.swipeSpeed)}get swipeProps(){let{props:t}=this.snap;return{enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis==="angle"?null:this.axis,relative:this.axis==="angle",ratio:this.axis==="angle"?1:t.swipeSpeed,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio}}_handleVelocityModifier(t){let{snap:e,track:i}=this,{coord:r,size:n}=e.activeSlide;if(e.props.freemode===!0)return t;if(i.target=i.current,e.props.freemode==="sticky"&&!e.isSlideScrolling){let c=i.loopedCurrent-t[this.axis],l=e.getNearestMagnet(c);if(!l)return t;let h=i.loopedCurrent-c-l.diff;return Object.assign(Object.assign({},t),{[this.axis]:h})}let o=w(t[this.axis],-r,e.containerSize-n-r);return Object.assign(Object.assign({},t),{[this.axis]:o})}_handleSwipeStart(t){let{snap:e}=this;this._startIndex=e.activeIndex,this._startTime=+new Date,e.eventsEmitter.style.pointerEvents="none",e.props.followSwipe&&e.cancelTransition(),e.callbacks.emit("swipeStart",t)}_handleSwipeMove(t){let{snap:e,track:i,swipe:r,axis:n}=this,{props:o,callbacks:a}=e,{followSwipe:c}=o;if(!c&&!e.isSlideScrolling)return;let l=t.step[n];n==="angle"&&(l=l/360*e.containerSize);let h=l*-1;i.iterateTarget(h),r.hasInertia&&i.clampTarget(),a.emit("swipe",t)}_handleSwipeEnd(t){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",t)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:t}=this;t.props.freemode==="sticky"&&!t.isSlideScrolling&&(this.isShort?this._endShort():t.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:t,swipe:e,track:i}=this,{props:r}=t;if(r.freemode){e.updateProps({inertia:!0}),!i.canLoop&&(i.target<i.min||i.target>i.max)&&(e.cancelInertia(),t.stick()),this.isShort&&r.freemode==="sticky"&&(e.updateProps({inertia:!1}),e.cancelInertia(),this._endShort());return}if(t.isSlideScrolling){e.updateProps({inertia:!0});return}if(e.updateProps({inertia:!1}),!r.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}t.stick()}_endShort(){let{diff:t,snap:e}=this,{props:i,activeSlide:r}=e;if(Math.abs(t)<i.shortSwipesThreshold){e.stick();return}let n=Math.sign(t);if(this._startIndex!==e.activeIndex){n<0&&r.progress>0?e.next():n>0&&r.progress<0?e.prev():e.stick();return}n<0?e.next():e.prev()}_endNoFollow(){let{diff:t,snap:e}=this;if(Math.abs(t)<20){e.stick();return}t<0?e.next():e.prev()}};var ce=class extends q{constructor(t){super(t),this._influence={current:0,target:0},this._current=0,this._target=0,this._raf=new U,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>t.callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>t.callbacks.emit("rafPause",void 0)),this.addDestructor(()=>this._raf.destroy()),this.addDestructor(()=>this.cancelTransition())}get isInterpolated(){return this.current===this.target&&this._influence.current===0}get influence(){return this._influence.current}set influence(t){this._influence.current=t,this._influence.target=t}get current(){return this._current}set current(t){this._current=t}get target(){return this._target}set target(t){let{containerSize:e}=this.snap,i=t-this._target;this._target=t,this._influence.target+=e?i/e:0,this._influence.target=w(this._influence.target,-1,1)}get canLoop(){let{snap:t}=this;return t.props.loop&&t.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:t}=this;return t.props.centered?t.containerSize/2-t.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}get isTransitioning(){return!!this._timeline}set(t){this.current=t,this.target=t,this._influence.current=0,this._influence.target=0}loopCoord(t){return this.canLoop?$(t,this.min,this.max):t}get min(){let{snap:t}=this;if(this.canLoop||t.isEmpty)return 0;if(t.props.centered){let e=t.slides[0];if(e.size>t.containerSize)return t.containerSize/2-e.size/2}return 0}get max(){let{containerSize:t,slides:e,isEmpty:i,props:r}=this.snap,{canLoop:n}=this;if(i)return 0;let o=e[0],a=e[e.length-1],c=a.staticCoord+a.size,l=n?c+M(r.gap):c-t;return n||(r.centered&&(l+=t/2-o.size/2,a.size<t&&(l+=t/2-a.size/2)),r.centered||(l=Math.max(l,0))),l}get progress(){return this.current/this.max}awake(){this._raf.play()}iterateTarget(t){this.target+=t,this.awake()}clampTarget(){this.canLoop||(this.target=w(this.target,this.min,this.max)),this.awake()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}_handleRaf(){let{snap:t}=this;if(t.isTransitioning)return;let e=this._raf.lerpFactor(t.props.lerp);this.lerp(e),this.isInterpolated&&this._raf.pause(),t.render(this._raf.duration)}lerp(t){let{snap:e,min:i,max:r}=this,{target:n}=this,o=t,a=this._influence;if(!e.props.loop){let{containerSize:h}=e,p=(1-e.props.edgeFriction)*h;if(n<i){let f=1-J(n,-h,i);n=i-f*p}else if(n>r){let f=J(n,r,r+h);n=r+f*p}n=w(n,i-p,r+p)}let c=Math.abs(this.current-n),l=3;if(c<l){let h=1-c/l,p=(1-o)/15;o+=p*h}this.current=C(this.current,n,o,1e-6),a.target=C(a.target,0,o,1e-6),a.current=C(a.current,a.target,o,1e-6)}cancelTransition(){var t;(t=this._timeline)===null||t===void 0||t.destroy(),this._timeline=void 0}toCoord(t,e){var i,r;let{snap:n}=this,{props:o,callbacks:a}=n;if(n.isEmpty||n.isDestroyed)return!1;this.cancelTransition();let c=this.current,l=t,h=Math.abs(l-c),p=(i=e==null?void 0:e.duration)!==null&&i!==void 0?i:n.props.duration,f=j(p)?p:p(h);h===0&&(f=0);let v=(r=e==null?void 0:e.easing)!==null&&r!==void 0?r:o.easing,u=new B({duration:f,easing:v});return this._timeline=u,u.on("start",()=>{var d;a.emit("timelineStart",void 0),(d=e==null?void 0:e.onStart)===null||d===void 0||d.call(e)}),u.on("update",d=>{var m;this.current=C(c,l,d.eased),this.target=this.current,this.influence*=1-d.progress,d.progress===1&&(n.$_targetIndex=void 0,this._timeline=void 0),n.render(),a.emit("timelineUpdate",d),(m=e==null?void 0:e.onUpdate)===null||m===void 0||m.call(e,d)}),u.on("end",()=>{var d;u.destroy(),a.emit("timelineEnd",void 0),(d=e==null?void 0:e.onEnd)===null||d===void 0||d.call(e)}),u.on("destroy",()=>{n.$_targetIndex=void 0}),u.play(),!0}};var hi=6,he=class extends q{constructor(t){super(t),this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0;let e=y(t.eventsEmitter,"wheel",i=>this._handleWheel(i));this.addDestructor(()=>{e(),this._debounceEnd&&clearTimeout(this._debounceEnd)})}get track(){return this.snap._track}get absDeltas(){return this._deltas.map(t=>Math.abs(t))}_handleWheel(t){let{props:e,axis:i}=this.snap;if(!e.wheel)return;t.preventDefault();let r=Oe(t),o=(e.wheelAxis==="auto"?i:e.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,t),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(t){this._hasStarted||Math.abs(t)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(t,e){if(!this._hasStarted)return;let{props:i,callbacks:r}=this.snap;this._addDelta(t),r.emit("wheel",e),i.followWheel?this._handleFollow(t):this._handleNoFollow(t)}_handleFollow(t){let{snap:e,track:i}=this;i.cancelTransition(),i.iterateTarget(t*e.props.wheelSpeed),i.clampTarget()}_handleNoFollow(t){let{snap:e,track:i,isTouchPad:r,isGainingDelta:n}=this,{props:o,activeSlide:a}=e,c=t*o.wheelSpeed;if(this._detectNoFollowThrottle())return;let l=!1,h=!0;if(l||e.isSlideScrolling&&(a.coord===0?c>0&&(l=!0):a.coord===e.containerSize-a.size?c<0&&(l=!0):(l=!0,h=!1)),h){if(!r||r&&(n||this.absDeltas.length===1)){let p=Math.sign(c);if(l)e.cancelTransition(),i.iterateTarget(p),i.clampTarget(),r||(i.current=i.target);else if(p===1){if(!o.loop&&e.activeIndex===e.slides.length-1&&!o.rewind)return;this._lastWheelTime=+new Date,e.next()}else{if(!o.loop&&e.activeIndex===0&&!o.rewind)return;this._lastWheelTime=+new Date,e.prev()}}return}if(l){e.cancelTransition();let p=c,f=Math.min(...a.magnets),v=Math.max(...a.magnets),u=i.loopCoord(i.target),d=w(u+p,f,v);i.target=i.target+d-u,i.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:t,snap:e}=this,{wheelThrottle:i}=e.props,r=+new Date-this._lastWheelTime;return j(i)?r<i:t?e.isTransitioning:!!(e.scrollableSlides.filter(o=>o.isVisible).length&&e.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:t}=this,{props:e,activeSlide:i}=t,r=this._deltas.slice(-3).reduce((n,o)=>n+o,0);if(this._deltas=[],this._hasStarted=!1,!e.freemode||e.freemode==="sticky")if(e.followWheel&&e.stickOnWheelEnd){let n=Math.abs(e.stickOnWheelEndThreshold)/i.size;i.progress>n&&!t.isSlideScrolling&&r>0?t.next():i.progress<-n&&!t.isSlideScrolling&&r<0?t.prev():t.stick()}else!e.followWheel&&!t.isTransitioning&&t.stick();t.callbacks.emit("wheelEnd",void 0)}_addDelta(t){this._deltas.length>=hi&&this._deltas.shift(),this._deltas.push(t)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let t=this.absDeltas,e=.8,i=t.map((n,o)=>{let a=t[o-1];return t[o-1]?n-a:0});return i.filter(n=>n===0).length>i.length*e}get isSmallDelta(){let t=this.absDeltas;return t.length===0?!0:t[t.length-1]<50}get isGainingDelta(){let t=b(),e=this.absDeltas,i=t.osName.includes("window")?1.5:1.2;if(e.length<hi)return!1;let r=e.slice(-hi),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*i}_getAverage(t){return t.length?t.reduce((e,i)=>e+i,0)/t.length:0}};var pi,nr={__staticProp:!0,container:null,eventsEmitter:null,activeIndex:0},or={__mutableProp:!0,slides:!1,containerSize:"auto",slidesToScroll:1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:!((pi=b())===null||pi===void 0)&&pi.mobile?1:.2,freemode:!1,rewind:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:rt,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:s=>w(s,500,2e3),swipeInertiaRatio:.5,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto",interval:null,intervalDirection:"next"};var ui=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},di=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(e[i[r]]=s[i[r]]);return e},mt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),nr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),or)}constructor(t,e){super(t,e),this._containerSize=0,this._slides=[],this._scrollableSlides=[];let{container:i,activeIndex:r}=this.props;this._activeIndex=r,this._resizer=H({element:i,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizer.debounceResize(),this._fetchSlides(),new he(this),this._swipe=new le(this),this._track=new ce(this),new se(this),new ie(this)}_handleProps(){this._fetchSlides(),this._resizer.resize(),super._handleProps()}get container(){return this.props.container}get eventsEmitter(){var t;return(t=this.props.eventsEmitter)!==null&&t!==void 0?t:this.container}get containerSize(){let{containerSize:t}=this.props;return t==="auto"?this._containerSize:M(t)}get domSize(){return this.containerSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get isTransitioning(){return this._track.isTransitioning}get isSwiping(){return this._swipe.isSwiping}get hasInteria(){return this._swipe.hasIntertia}get isInterpolating(){return Math.abs(this._track.target-this._track.current)>1e-4}get influence(){return this._track.influence}get current(){return this._track.current}get target(){return this._track.target}get canLoop(){return this._track.canLoop}get loopedCurrent(){return this._track.loopedCurrent}get loopCount(){return this._track.loopCount}set(t){this._track.set(t)}loopCoord(t){return this._track.loopCoord(t)}get min(){return this._track.min}get max(){return this._track.max}get progress(){return this.current/this.max}get isStart(){return this._track.isStart}get isEnd(){return this._track.isEnd}clampTarget(){this._track.clampTarget()}iterateTarget(t){this._track.iterateTarget(t)}cancelTransition(){this._track.cancelTransition()}get isSlideScrolling(){let{containerSize:t}=this;return this.scrollableSlides.some(({size:e,coord:i})=>si(i,t-e,0))}get firstSlideSize(){return this.slides[0].size}_fetchSlides(){let{props:t}=this;this._slides.forEach(i=>i.$_detach());let e=t.slides?t.slides:Array.from(t.container.children);this._slides=e.map(i=>i instanceof ft?i:new ft(i)),this._slides.forEach((i,r)=>i.$_attach(this,r))}resize(t=!0){t?this._resizer.resize():this._resizer.debounceResize()}_handleResize(){let{container:t}=this.props;this._track.cancelTransition(),this._containerSize=this.axis==="x"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}_reflow(){let{slides:t,props:e}=this;if(this.isEmpty)return;this._scrollableSlides=[],t.reduce((r,n)=>(n.$_setStaticCoord(r),n.size>this.containerSize&&this._scrollableSlides.push(n),r+n.size+M(e.gap)),0);let i=t.find(({index:r})=>r===this.activeIndex);e.stickOnResize&&i&&(this._track.clampTarget(),this._track.set(i.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}render(t=0){if(this.isEmpty)return;let{_swipe:e,_track:i,props:r}=this;this._updateSlidesCoords(),this._updateSlideProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(Yt(this.$_targetIndex)||n.slide.index===this.$_targetIndex)&&(this._activeIndex=n.slide.index,this.$_targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=e.isSwiping&&e.allowFriction||!e.isSwiping;n&&o&&t>0&&r.friction>=0&&!this.isSlideScrolling&&!r.freemode&&(i.target=Te(i.target,i.current+n.diff,r.friction*r.lerp,t,1e-6)),this.slides.forEach(a=>a.$_render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:t,props:e,containerSize:i,firstSlideSize:r}=this,n=e.centered?i/2-r/2:0;t.forEach(o=>o.$_updateCoords(n))}_updateSlideProgress(){this.slides.forEach(t=>t.$_updateProgress())}get magnet(){let t=this._track.loopedCurrent;return this.getNearestMagnet(t)}getNearestMagnet(t){let e=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(e.length===0)return;let i=e.reduce((r,n)=>Math.abs(n.magnet-t)<Math.abs(r.magnet-t)?n:r);return Object.assign(Object.assign({},i),{diff:i.magnet-t})}stick(){let{magnet:t,isSlideScrolling:e}=this;e||!t||this.toCoord(this._track.current+t.diff)}toCoord(t,e){return this._track.toCoord(t,e)}toSlide(t,e={}){var i,r,{direction:n=null}=e,o=di(e,["direction"]);let{isEmpty:a,activeIndex:c,slides:l,_track:h,props:p}=this,{current:f,max:v,loopCount:u}=h;if(a||this.isDestroyed)return!1;let d=$(t,0,this.slides.length);if(d===c)return this.stick(),!1;this.$_targetIndex=d;let m=l[d].magnets,E=m[0];if(p.centered?n==="prev"?E=(i=m[2])!==null&&i!==void 0?i:m[0]:n==="next"&&(E=(r=m[1])!==null&&r!==void 0?r:m[0]):E=n==="prev"?m[m.length-1]:E,!p.loop)return this.toCoord(E,o);let P=E+u*v,T=P-v,O=P+v,X=[T,P,O];if(ct(n)){let K=X.filter(Y=>n==="next"?Y>=f:Y<=f),V=Rt(f,K);return this.toCoord(V,o)}let F=Rt(f,X);return this.toCoord(F,o)}next(t={}){var{skip:e=this.props.slidesToScroll}=t,i=di(t,["skip"]);let{props:r,slides:n,activeIndex:o}=this,{length:a}=n,c=$(o+e,0,a);return r.loop||(c=r.rewind?$(o+e,0,a):Math.min(o+e,a-1)),this.toSlide(c,Object.assign(Object.assign({},i),{direction:"next"}))}prev(t={}){var{skip:e=this.props.slidesToScroll}=t,i=di(t,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=$(o-e,0,n.length);return r.loop||(a=r.rewind?$(o-e,0,n.length):Math.max(o-e,0)),this.toSlide(a,Object.assign(Object.assign({},i),{direction:"prev"}))}_destroy(){super._destroy(),this._resizer.remove(),this._slides.forEach(t=>t.$_detach())}};ui([_],mt.prototype,"resize",null);ui([_],mt.prototype,"render",null);ui([_],mt.prototype,"toCoord",null);var ar=s=>({__staticProp:!0,container:null,ariaLabel:!0,letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:`${s}__letter`,wordClass:`${s}__word`,lineClass:`${s}__line`,lineWrapperClass:`${s}__line-wrapper`,resizeDebounce:0,ignore:null,prepareText:t=>t,wordDelimiter:" ",wordDelimiterOutput:null}),lr={__mutableProp:!0};function cr(s){let t=[];function e(i){t.push({node:i,cssText:i instanceof HTMLElement?i.style.cssText:null,parent:i.parentNode}),i.childNodes.forEach(r=>e(r))}return s.childNodes.forEach(i=>e(i)),{restore:()=>{let i=g.createDocumentFragment();for(t.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===s?i:r.parent).appendChild(r.node)});s.childNodes[0];)s.childNodes[0].remove();s.appendChild(i)}}}var Rr=wi(Cr());function pe(s,t){return t?ct(t)?s.matches(t):typeof t=="function"?t(s):t.includes(s):!1}function kr({wordsMeta:s,classname:t,tagName:e,ignore:i}){let r=[],n=g.createElement(e);return n.style.display="inline-block",S(n,t),s.forEach(o=>{if(pe(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let c=a.textContent;if(!c)return;(0,Rr.default)(c,"").forEach(h=>{let p=n.cloneNode(!1);p.appendChild(g.createTextNode(h)),o.element.insertBefore(p,a);let f={element:p};o.letters.push(f),r.push(f)}),a.remove()}),{lettersMeta:r}}function Dr({container:s,classname:t,tagName:e,ignore:i,prepareText:r,wordDelimiter:n=" ",wordDelimiterOutput:o}){let a=o||n,c=g.createElement(e);c.style.display="inline-block",c.setAttribute("aria-hidden","true"),S(c,t);let l=[],h=null;function p(f){var v,u;if(f instanceof HTMLElement||f instanceof DocumentFragment){if("tagName"in f&&f.tagName!=="BR"){if(pe(f,i)){h?h.append(f):l.push({element:f,letters:[]});return}f.style.display="inline-block"}h=null,[...Array.from(f.childNodes)].forEach(m=>p(m));return}if(f.nodeType===3){let d=(v=f.parentElement)!==null&&v!==void 0?v:s,m=(u=f.nodeValue)!==null&&u!==void 0?u:"";if(m===n){h=null,d==null||d.insertBefore(g.createTextNode(a),f),f.remove();return}m=r?r(m):m;let E=m.split(n);E.forEach((P,T)=>{if(P){let O=c.cloneNode(!1);O.appendChild(g.createTextNode(P)),h=O,l.push({element:O,letters:[]}),d==null||d.insertBefore(O,f)}T<E.length-1&&(d==null||d.insertBefore(g.createTextNode(a),f))}),f.remove()}}return p(s),l}var Ao=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(e[i[r]]=s[i[r]]);return e};function jr(s){var{container:t,letterClassName:e,wordClassName:i,hasLetters:r,letterTag:n,wordTag:o,ignore:a}=s,c=Ao(s,["container","letterClassName","wordClassName","hasLetters","letterTag","wordTag","ignore"]);let l=g.createDocumentFragment();for(;t.childNodes[0];)l.appendChild(t.childNodes[0]);let h=Dr(Object.assign(Object.assign({},c),{container:l,classname:i,tagName:o,ignore:a})),p=[];if(r){let f=kr({wordsMeta:h,classname:e,tagName:n,ignore:a});p.push(...f.lettersMeta)}return t.appendChild(l),{wordsMeta:h,lettersMeta:p}}function zr(s){let{direction:t,textAlign:e}=getComputedStyle(s);return e==="center"?e:e==="justify"?t==="rtl"?"right":"left":e==="left"||e==="right"?e:e==="start"?t==="rtl"?"right":"left":e==="end"?t==="rtl"?"left":"right":t==="rtl"?"right":"left"}function Br(s,t){var e;return s!=null&&s.parentElement?s.parentElement===t?s:Br((e=s==null?void 0:s.parentElement)!==null&&e!==void 0?e:null,t):null}function Lr(s,t){return s===t?!0:s!==null?Lr(s.parentNode,t):!1}function Nr({container:s,hasLinesWrapper:t,wordsMeta:e,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=zr(s),a=[],c=-1,l=null,h=g.createElement(n);h.style.display="block",h.setAttribute("aria-hidden","true"),S(h,i);let p=e.map(u=>u.element.getBoundingClientRect());e.forEach((u,d)=>{var m;let E=p[d],P=Br(u.element,s);if(!P)return;let T=l&&E.top>l.top,O=l&&E.left>=l.left,X=l&&E.left<=l.left;if(!l||T&&X&&o==="left"||T&&O&&o==="right"||T&&o==="center"){c+=1;let V=h.cloneNode(!1),Y;t&&(Y=g.createElement(n),Y.style.display="block",S(Y,r),Y.appendChild(V)),a[c]={element:V,wrapper:Y,nodes:[],words:[]}}l=E;let F=a[c];!!a.find(({nodes:V})=>V.includes(P))||(F.nodes.push(P),((m=P.nextSibling)===null||m===void 0?void 0:m.nodeType)===3&&F.nodes.push(P.nextSibling))}),a.forEach(u=>{var d;s.insertBefore((d=u.wrapper)!==null&&d!==void 0?d:u.element,u.nodes[0]);let m=g.createDocumentFragment();m.append(...u.nodes),u.element.append(m)});let f=[];return a.forEach(u=>{var d;let m=((d=u.wrapper)!==null&&d!==void 0?d:u.element).nextElementSibling;m instanceof HTMLBRElement&&(m.style.display="none",f.push(m))}),a.forEach(u=>{u.words.push(...e.filter(d=>Lr(d.element,u.element)))}),{linesMeta:a,destroy:()=>{let u=!0;return f.forEach(d=>{d.style.display=""}),a.forEach(d=>{var m;d.nodes.forEach(E=>{var P;let T=(P=d.wrapper)!==null&&P!==void 0?P:d.element;T.parentElement?s.insertBefore(E,T):u=!1}),d.element.remove(),(m=d.wrapper)===null||m===void 0||m.remove()}),u}}}var Co=function(s,t,e,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,e,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(t,e,n):o(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},de=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),ar(this.prefix))}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),lr)}constructor(t,e){super(t,e),this._hasSplitBase=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:i,ariaLabel:r}=this.props,{style:n}=i;n.fontKerning="none",n.display="block",r&&i.setAttribute("aria-label",typeof r=="string"?r:i.textContent||""),i.translate=!1,this._addTempClassName(i,this._cn("")),this._initials=cr(i),this._setEvents()}get prefix(){return`${b().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(t=>t.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(t=>t.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(t=>t.element)}_setEvents(){let{container:t,resizeDebounce:e}=this.props;if(!this.props.lines){this.split();return}let i=H({callback:()=>this.split(),element:t,viewportTarget:"width",resizeDebounce:e,name:this.name});i.resize(),this.onDestroy(()=>i.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._hasSplitBase)return;let{container:t,letterTag:e,wordTag:i,wordClass:r,letterClass:n,ignore:o,prepareText:a,wordDelimiter:c,wordDelimiterOutput:l}=this.props;this._hasSplitBase=!0;let{wordsMeta:h,lettersMeta:p}=jr({container:t,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:e,wordTag:i,ignore:o,prepareText:a,wordDelimiter:c,wordDelimiterOutput:l});this._wordsMeta=h,this._lettersMeta=p}_splitLines(){var t;let{wordsMeta:e}=this,{container:i,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;i.offsetParent!==null&&((t=this._lineSplitWrapper)===null||t===void 0||t.destroy(),this._lineSplitWrapper=Nr({container:i,hasLinesWrapper:this.props.linesWrapper,wordsMeta:e,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._initials.restore();else{let t=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,t&&this._initials.restore()}}};Co([_],de.prototype,"split",null);var $r=R?b():void 0,Ro=$r;return qr(ko);})();
|
|
178
178
|
/*! Bundled license information:
|
|
179
179
|
|
|
180
180
|
normalize-wheel/src/isEventSupported.js:
|