vevet 5.9.1 → 5.10.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 +0 -1
- package/lib/cjs/base/Module/index.js.map +1 -1
- package/lib/cjs/components/Pointers/index.js +152 -17
- package/lib/cjs/components/Pointers/index.js.map +1 -1
- package/lib/cjs/components/Snap/{logic/Track → Track}/index.js +157 -158
- package/lib/cjs/components/Snap/Track/index.js.map +1 -0
- package/lib/cjs/components/Snap/Track/types.js.map +1 -0
- package/lib/cjs/components/Snap/index.js +118 -53
- package/lib/cjs/components/Snap/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Idle/index.js +16 -17
- package/lib/cjs/components/Snap/logic/Idle/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Interval/index.js +18 -24
- package/lib/cjs/components/Snap/logic/Interval/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Interval/types.js.map +1 -0
- package/lib/cjs/components/Snap/logic/Keyboard/index.js +6 -6
- package/lib/cjs/components/Snap/logic/Keyboard/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Slide/Parallax/constants.js +101 -0
- package/lib/cjs/components/Snap/logic/Slide/Parallax/constants.js.map +1 -0
- package/lib/cjs/components/Snap/logic/{SlideParallax → Slide/Parallax}/index.js +53 -60
- package/lib/cjs/components/Snap/logic/Slide/Parallax/index.js.map +1 -0
- package/lib/cjs/components/Snap/logic/Slide/Parallax/types.js +3 -0
- package/lib/cjs/components/Snap/logic/Slide/Parallax/types.js.map +1 -0
- package/lib/cjs/components/Snap/logic/Slide/Parallax/utils.js +26 -0
- package/lib/cjs/components/Snap/logic/Slide/Parallax/utils.js.map +1 -0
- package/lib/cjs/components/Snap/logic/Slide/index.js +75 -60
- package/lib/cjs/components/Snap/logic/Slide/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Swipe/index.js +154 -173
- package/lib/cjs/components/Snap/logic/Swipe/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Wheel/index.js +41 -47
- package/lib/cjs/components/Snap/logic/Wheel/index.js.map +1 -1
- package/lib/cjs/components/Snap/logic/index.js +163 -0
- package/lib/cjs/components/Snap/logic/index.js.map +1 -0
- package/lib/cjs/components/Snap/props.js +7 -5
- package/lib/cjs/components/Snap/props.js.map +1 -1
- package/lib/cjs/components/Swipe/Coords/index.js +327 -42
- package/lib/cjs/components/Swipe/Coords/index.js.map +1 -1
- package/lib/cjs/components/Swipe/Inertia/index.js +223 -121
- package/lib/cjs/components/Swipe/Inertia/index.js.map +1 -1
- package/lib/cjs/components/Swipe/Styles/index.js +3 -2
- package/lib/cjs/components/Swipe/Styles/index.js.map +1 -1
- package/lib/cjs/components/Swipe/index.js +165 -50
- package/lib/cjs/components/Swipe/index.js.map +1 -1
- package/lib/cjs/components/Swipe/props.js +16 -6
- package/lib/cjs/components/Swipe/props.js.map +1 -1
- package/lib/cjs/internal/onlyFinite.js +12 -0
- package/lib/cjs/internal/onlyFinite.js.map +1 -0
- package/lib/cjs/internal/unwrapAngle.js +15 -0
- package/lib/cjs/internal/unwrapAngle.js.map +1 -0
- package/lib/cjs/manifest.json +1 -1
- package/lib/cjs/utils/common/toPixels.js +2 -0
- package/lib/cjs/utils/common/toPixels.js.map +1 -1
- package/lib/esm/base/Module/index.js +0 -1
- package/lib/esm/base/Module/index.js.map +1 -1
- package/lib/esm/components/Pointers/index.js +147 -12
- package/lib/esm/components/Pointers/index.js.map +1 -1
- package/lib/esm/components/Snap/{logic/Track → Track}/index.js +143 -136
- package/lib/esm/components/Snap/Track/index.js.map +1 -0
- package/lib/esm/components/Snap/Track/types.js.map +1 -0
- package/lib/esm/components/Snap/index.js +94 -54
- package/lib/esm/components/Snap/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Idle/index.js +15 -16
- package/lib/esm/components/Snap/logic/Idle/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Interval/index.js +17 -23
- package/lib/esm/components/Snap/logic/Interval/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Interval/types.js.map +1 -0
- package/lib/esm/components/Snap/logic/Keyboard/index.js +5 -5
- package/lib/esm/components/Snap/logic/Keyboard/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Slide/Parallax/constants.js +92 -0
- package/lib/esm/components/Snap/logic/Slide/Parallax/constants.js.map +1 -0
- package/lib/esm/components/Snap/logic/{SlideParallax → Slide/Parallax}/index.js +49 -56
- package/lib/esm/components/Snap/logic/Slide/Parallax/index.js.map +1 -0
- package/lib/esm/components/Snap/logic/Slide/Parallax/types.js +2 -0
- package/lib/esm/components/Snap/logic/Slide/Parallax/types.js.map +1 -0
- package/lib/esm/components/Snap/logic/Slide/Parallax/utils.js +20 -0
- package/lib/esm/components/Snap/logic/Slide/Parallax/utils.js.map +1 -0
- package/lib/esm/components/Snap/logic/Slide/index.js +71 -56
- package/lib/esm/components/Snap/logic/Slide/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Swipe/index.js +146 -166
- package/lib/esm/components/Snap/logic/Swipe/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/Wheel/index.js +40 -46
- package/lib/esm/components/Snap/logic/Wheel/index.js.map +1 -1
- package/lib/esm/components/Snap/logic/index.js +85 -0
- package/lib/esm/components/Snap/logic/index.js.map +1 -0
- package/lib/esm/components/Snap/props.js +6 -4
- package/lib/esm/components/Snap/props.js.map +1 -1
- package/lib/esm/components/Swipe/Coords/index.js +285 -42
- package/lib/esm/components/Swipe/Coords/index.js.map +1 -1
- package/lib/esm/components/Swipe/Inertia/index.js +211 -115
- package/lib/esm/components/Swipe/Inertia/index.js.map +1 -1
- package/lib/esm/components/Swipe/Styles/index.js +3 -2
- package/lib/esm/components/Swipe/Styles/index.js.map +1 -1
- package/lib/esm/components/Swipe/index.js +150 -51
- package/lib/esm/components/Swipe/index.js.map +1 -1
- package/lib/esm/components/Swipe/props.js +16 -6
- package/lib/esm/components/Swipe/props.js.map +1 -1
- package/lib/esm/internal/onlyFinite.js +8 -0
- package/lib/esm/internal/onlyFinite.js.map +1 -0
- package/lib/esm/internal/unwrapAngle.js +12 -0
- package/lib/esm/internal/unwrapAngle.js.map +1 -0
- package/lib/esm/manifest.json +1 -1
- package/lib/esm/utils/common/toPixels.js +2 -0
- package/lib/esm/utils/common/toPixels.js.map +1 -1
- package/lib/types/base/Module/index.d.ts.map +1 -1
- package/lib/types/components/Pointers/index.d.ts +29 -5
- package/lib/types/components/Pointers/index.d.ts.map +1 -1
- package/lib/types/components/Pointers/types.d.ts +30 -3
- package/lib/types/components/Pointers/types.d.ts.map +1 -1
- package/lib/types/components/Snap/{logic/Track → Track}/index.d.ts +39 -28
- package/lib/types/components/Snap/Track/index.d.ts.map +1 -0
- package/lib/types/components/Snap/Track/types.d.ts +13 -0
- package/lib/types/components/Snap/Track/types.d.ts.map +1 -0
- package/lib/types/components/Snap/index.d.ts +22 -10
- package/lib/types/components/Snap/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Idle/index.d.ts +2 -2
- package/lib/types/components/Snap/logic/Idle/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Interval/index.d.ts +4 -2
- package/lib/types/components/Snap/logic/Interval/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Interval/types.d.ts +13 -0
- package/lib/types/components/Snap/logic/Interval/types.d.ts.map +1 -0
- package/lib/types/components/Snap/logic/Keyboard/index.d.ts +2 -2
- package/lib/types/components/Snap/logic/Keyboard/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Slide/Parallax/constants.d.ts +5 -0
- package/lib/types/components/Snap/logic/Slide/Parallax/constants.d.ts.map +1 -0
- package/lib/types/components/Snap/logic/{SlideParallax → Slide/Parallax}/index.d.ts +5 -10
- package/lib/types/components/Snap/logic/Slide/Parallax/index.d.ts.map +1 -0
- package/lib/types/components/Snap/logic/{SlideParallax → Slide/Parallax}/types.d.ts +7 -6
- package/lib/types/components/Snap/logic/Slide/Parallax/types.d.ts.map +1 -0
- package/lib/types/components/Snap/logic/Slide/Parallax/utils.d.ts +5 -0
- package/lib/types/components/Snap/logic/Slide/Parallax/utils.d.ts.map +1 -0
- package/lib/types/components/Snap/logic/Slide/index.d.ts +8 -8
- package/lib/types/components/Snap/logic/Slide/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Swipe/index.d.ts +25 -23
- package/lib/types/components/Snap/logic/Swipe/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Swipe/types.d.ts +3 -4
- package/lib/types/components/Snap/logic/Swipe/types.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/Wheel/index.d.ts +3 -4
- package/lib/types/components/Snap/logic/Wheel/index.d.ts.map +1 -1
- package/lib/types/components/Snap/logic/index.d.ts +97 -0
- package/lib/types/components/Snap/logic/index.d.ts.map +1 -0
- package/lib/types/components/Snap/props.d.ts +2 -0
- package/lib/types/components/Snap/props.d.ts.map +1 -1
- package/lib/types/components/Snap/types.d.ts +9 -14
- package/lib/types/components/Snap/types.d.ts.map +1 -1
- package/lib/types/components/Swipe/Coords/index.d.ts +80 -14
- package/lib/types/components/Swipe/Coords/index.d.ts.map +1 -1
- package/lib/types/components/Swipe/Inertia/index.d.ts +36 -18
- package/lib/types/components/Swipe/Inertia/index.d.ts.map +1 -1
- package/lib/types/components/Swipe/Styles/index.d.ts.map +1 -1
- package/lib/types/components/Swipe/global.d.ts +45 -16
- package/lib/types/components/Swipe/global.d.ts.map +1 -1
- package/lib/types/components/Swipe/index.d.ts +46 -20
- package/lib/types/components/Swipe/index.d.ts.map +1 -1
- package/lib/types/components/Swipe/props.d.ts.map +1 -1
- package/lib/types/components/Swipe/types.d.ts +84 -22
- package/lib/types/components/Swipe/types.d.ts.map +1 -1
- package/lib/types/internal/onlyFinite.d.ts +2 -0
- package/lib/types/internal/onlyFinite.d.ts.map +1 -0
- package/lib/types/internal/unwrapAngle.d.ts +2 -0
- package/lib/types/internal/unwrapAngle.d.ts.map +1 -0
- package/lib/types/utils/common/toPixels.d.ts.map +1 -1
- package/package.json +11 -4
- package/src/base/Module/index.ts +0 -1
- package/src/components/Pointers/index.ts +213 -12
- package/src/components/Pointers/types.ts +33 -3
- package/src/components/Snap/{logic/Track → Track}/index.ts +164 -155
- package/src/components/Snap/Track/types.ts +13 -0
- package/src/components/Snap/index.ts +116 -71
- package/src/components/Snap/logic/Idle/index.ts +19 -20
- package/src/components/Snap/logic/Interval/index.ts +25 -30
- package/src/components/Snap/logic/Interval/types.ts +13 -0
- package/src/components/Snap/logic/Keyboard/index.ts +5 -5
- package/src/components/Snap/logic/Slide/Parallax/constants.ts +97 -0
- package/src/components/Snap/logic/{SlideParallax → Slide/Parallax}/index.ts +56 -75
- package/src/components/Snap/logic/{SlideParallax → Slide/Parallax}/types.ts +8 -6
- package/src/components/Snap/logic/Slide/Parallax/utils.ts +28 -0
- package/src/components/Snap/logic/Slide/index.ts +82 -59
- package/src/components/Snap/logic/Swipe/index.ts +162 -184
- package/src/components/Snap/logic/Swipe/types.ts +3 -4
- package/src/components/Snap/logic/Wheel/index.ts +44 -49
- package/src/components/Snap/logic/index.ts +110 -0
- package/src/components/Snap/props.ts +8 -4
- package/src/components/Snap/types.ts +14 -16
- package/src/components/Swipe/Coords/index.ts +373 -45
- package/src/components/Swipe/Inertia/index.ts +288 -115
- package/src/components/Swipe/Styles/index.ts +4 -2
- package/src/components/Swipe/global.ts +46 -16
- package/src/components/Swipe/index.ts +189 -59
- package/src/components/Swipe/props.ts +16 -7
- package/src/components/Swipe/types.ts +105 -22
- package/src/internal/onlyFinite.ts +9 -0
- package/src/internal/unwrapAngle.ts +12 -0
- package/src/manifest.json +1 -1
- package/src/utils/common/toPixels.ts +3 -0
- package/lib/cjs/components/Snap/logic/SlideParallax/constants.js +0 -106
- package/lib/cjs/components/Snap/logic/SlideParallax/constants.js.map +0 -1
- package/lib/cjs/components/Snap/logic/SlideParallax/globals.js +0 -5
- package/lib/cjs/components/Snap/logic/SlideParallax/globals.js.map +0 -1
- package/lib/cjs/components/Snap/logic/SlideParallax/index.js.map +0 -1
- package/lib/cjs/components/Snap/logic/SlideParallax/types.js.map +0 -1
- package/lib/cjs/components/Snap/logic/SnapLogic/index.js +0 -31
- package/lib/cjs/components/Snap/logic/SnapLogic/index.js.map +0 -1
- package/lib/cjs/components/Snap/logic/Track/index.js.map +0 -1
- package/lib/cjs/components/Snap/logic/Track/types.js.map +0 -1
- package/lib/esm/components/Snap/logic/SlideParallax/constants.js +0 -97
- package/lib/esm/components/Snap/logic/SlideParallax/constants.js.map +0 -1
- package/lib/esm/components/Snap/logic/SlideParallax/globals.js +0 -2
- package/lib/esm/components/Snap/logic/SlideParallax/globals.js.map +0 -1
- package/lib/esm/components/Snap/logic/SlideParallax/index.js.map +0 -1
- package/lib/esm/components/Snap/logic/SlideParallax/types.js.map +0 -1
- package/lib/esm/components/Snap/logic/SnapLogic/index.js +0 -21
- package/lib/esm/components/Snap/logic/SnapLogic/index.js.map +0 -1
- package/lib/esm/components/Snap/logic/Track/index.js.map +0 -1
- package/lib/esm/components/Snap/logic/Track/types.js.map +0 -1
- package/lib/types/components/Snap/logic/SlideParallax/constants.d.ts +0 -5
- package/lib/types/components/Snap/logic/SlideParallax/constants.d.ts.map +0 -1
- package/lib/types/components/Snap/logic/SlideParallax/globals.d.ts +0 -2
- package/lib/types/components/Snap/logic/SlideParallax/globals.d.ts.map +0 -1
- package/lib/types/components/Snap/logic/SlideParallax/index.d.ts.map +0 -1
- package/lib/types/components/Snap/logic/SlideParallax/types.d.ts.map +0 -1
- package/lib/types/components/Snap/logic/SnapLogic/index.d.ts +0 -14
- package/lib/types/components/Snap/logic/SnapLogic/index.d.ts.map +0 -1
- package/lib/types/components/Snap/logic/Track/index.d.ts.map +0 -1
- package/lib/types/components/Snap/logic/Track/types.d.ts +0 -18
- package/lib/types/components/Snap/logic/Track/types.d.ts.map +0 -1
- package/src/components/Snap/logic/SlideParallax/constants.ts +0 -103
- package/src/components/Snap/logic/SlideParallax/globals.ts +0 -1
- package/src/components/Snap/logic/SnapLogic/index.ts +0 -25
- package/src/components/Snap/logic/Track/types.ts +0 -19
- /package/lib/cjs/components/Snap/{logic/SlideParallax → Track}/types.js +0 -0
- /package/lib/cjs/components/Snap/logic/{Track → Interval}/types.js +0 -0
- /package/lib/esm/components/Snap/{logic/SlideParallax → Track}/types.js +0 -0
- /package/lib/esm/components/Snap/logic/{Track → Interval}/types.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var Vevet=(()=>{var Ur=Object.create;var Mt=Object.defineProperty;var Xr=Object.getOwnPropertyDescriptor;var Yr=Object.getOwnPropertyNames;var qr=Object.getPrototypeOf,Qr=Object.prototype.hasOwnProperty;var lt=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports),Kr=(s,t)=>{for(var e in t)Mt(s,e,{get:t[e],enumerable:!0})},xi=(s,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Yr(t))!Qr.call(s,r)&&r!==e&&Mt(s,r,{get:()=>t[r],enumerable:!(i=Xr(t,r))||i.enumerable});return s};var Si=(s,t,e)=>(e=s!=null?Ur(qr(s)):{},xi(t||!s||!s.__esModule?Mt(e,"default",{value:s,enumerable:!0}):e,s)),Gr=s=>xi(Mt({},"__esModule",{value:!0}),s);var Ji=lt((ha,Gi)=>{var Xi=!1,rt,ye,xe,jt,zt,Yi,Lt,Se,Ee,Pe,qi,Oe,Te,Qi,Ki;function N(){if(!Xi){Xi=!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(Oe=/\b(iPhone|iP[ao]d)/.exec(s),Te=/\b(iP[ao]d)/.exec(s),Pe=/Android/i.exec(s),Qi=/FBAN\/\w+;/i.exec(s),Ki=/Mobile/i.exec(s),qi=!!/Win64/.exec(s),t){rt=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,rt&&document&&document.documentMode&&(rt=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);Yi=i?parseFloat(i[1])+4:rt,ye=t[2]?parseFloat(t[2]):NaN,xe=t[3]?parseFloat(t[3]):NaN,jt=t[4]?parseFloat(t[4]):NaN,jt?(t=/(?:Chrome\/(\d+\.\d+))/.exec(s),zt=t&&t[1]?parseFloat(t[1]):NaN):zt=NaN}else rt=ye=xe=zt=jt=NaN;if(e){if(e[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);Lt=r?parseFloat(r[1].replace("_",".")):!0}else Lt=!1;Se=!!e[2],Ee=!!e[3]}else Lt=Se=Ee=!1}}var Me={ie:function(){return N()||rt},ieCompatibilityMode:function(){return N()||Yi>rt},ie64:function(){return Me.ie()&&qi},firefox:function(){return N()||ye},opera:function(){return N()||xe},webkit:function(){return N()||jt},safari:function(){return Me.webkit()},chrome:function(){return N()||zt},windows:function(){return N()||Se},osx:function(){return N()||Lt},linux:function(){return N()||Ee},iphone:function(){return N()||Oe},mobile:function(){return N()||Oe||Te||Pe||Ki},nativeApp:function(){return N()||Qi},android:function(){return N()||Pe},ipad:function(){return N()||Te}};Gi.exports=Me});var ts=lt((pa,Zi)=>{"use strict";var Bt=!!(typeof window!="undefined"&&window.document&&window.document.createElement),An={canUseDOM:Bt,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:Bt&&!!(window.addEventListener||window.attachEvent),canUseViewport:Bt&&!!window.screen,isInWorker:!Bt};Zi.exports=An});var rs=lt((da,ss)=>{"use strict";var es=ts(),is;es.canUseDOM&&(is=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Cn(s,t){if(!es.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&&is&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}ss.exports=Cn});var hs=lt((ua,cs)=>{"use strict";var Rn=Ji(),kn=rs(),ns=10,os=40,as=800;function ls(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*ns,r=e*ns,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=os,r*=os):(i*=as,r*=as)),i&&!t&&(t=i<1?-1:1),r&&!e&&(e=r<1?-1:1),{spinX:t,spinY:e,pixelX:i,pixelY:r}}ls.getEventType=function(){return Rn.firefox()?"DOMMouseScroll":kn("wheel")?"wheel":"mousewheel"};cs.exports=ls});var ds=lt((fa,ps)=>{ps.exports=hs()});var Dr=lt((Tt,vt)=>{var Kn=1/0,wr=9007199254740991,Gn=4294967295,Jn="[object Function]",Zn="[object GeneratorFunction]",to="[object RegExp]",eo="[object Symbol]",io=/^(?:0|[1-9]\d*)$/,bi="\\ud800-\\udfff",yr="\\u0300-\\u036f\\ufe20-\\ufe23",xr="\\u20d0-\\u20f0",Sr="\\ufe0e\\ufe0f",so="["+bi+"]",gi="["+yr+xr+"]",vi="\\ud83c[\\udffb-\\udfff]",ro="(?:"+gi+"|"+vi+")",Er="[^"+bi+"]",Pr="(?:\\ud83c[\\udde6-\\uddff]){2}",Or="[\\ud800-\\udbff][\\udc00-\\udfff]",Tr="\\u200d",Mr=ro+"?",Ir="["+Sr+"]?",no="(?:"+Tr+"(?:"+[Er,Pr,Or].join("|")+")"+Ir+Mr+")*",oo=Ir+Mr+no,ao="(?:"+[Er+gi+"?",gi,Pr,Or,so].join("|")+")",lo=RegExp(vi+"(?="+vi+")|"+ao+oo,"g"),co=RegExp("["+Tr+bi+yr+xr+Sr+"]"),Ar=typeof global=="object"&&global&&global.Object===Object&&global,ho=typeof self=="object"&&self&&self.Object===Object&&self,po=Ar||ho||Function("return this")(),Cr=typeof Tt=="object"&&Tt&&!Tt.nodeType&&Tt,ur=Cr&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,uo=ur&&ur.exports===Cr,fr=uo&&Ar.process,mr=function(){try{return fr&&fr.binding("util")}catch(s){}}(),_r=mr&&mr.isRegExp;function fo(s){return s.split("")}function mo(s){return function(t){return s(t)}}function Rr(s){return co.test(s)}function _o(s){return Rr(s)?go(s):fo(s)}function go(s){return s.match(lo)||[]}var vo=Object.prototype,wi=vo.toString,gr=po.Symbol,vr=gr?gr.prototype:void 0,br=vr?vr.toString:void 0;function bo(s){return yi(s)&&wi.call(s)==to}function wo(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 kr(s){if(typeof s=="string")return s;if(Ao(s))return br?br.call(s):"";var t=s+"";return t=="0"&&1/s==-Kn?"-0":t}function yo(s,t,e){var i=s.length;return e=e===void 0?i:e,!t&&e>=i?s:wo(s,t,e)}function xo(s,t){return t=t==null?wr:t,!!t&&(typeof s=="number"||io.test(s))&&s>-1&&s%1==0&&s<t}function So(s,t,e){if(!yi(e))return!1;var i=typeof t;return(i=="number"?Po(e)&&xo(t,e.length):i=="string"&&t in e)?Eo(e[t],s):!1}function Eo(s,t){return s===t||s!==s&&t!==t}function Po(s){return s!=null&&To(s.length)&&!Oo(s)}function Oo(s){var t=yi(s)?wi.call(s):"";return t==Jn||t==Zn}function To(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=wr}function yi(s){var t=typeof s;return!!s&&(t=="object"||t=="function")}function Mo(s){return!!s&&typeof s=="object"}var Io=_r?mo(_r):bo;function Ao(s){return typeof s=="symbol"||Mo(s)&&wi.call(s)==eo}function Co(s){return s==null?"":kr(s)}function Ro(s,t,e){return e&&typeof e!="number"&&So(s,t,e)&&(t=e=void 0),e=e===void 0?Gn:e>>>0,e?(s=Co(s),s&&(typeof t=="string"||t!=null&&!Io(t))&&(t=kr(t),!t&&Rr(s))?yo(_o(s),0,e):s.split(t,e)):[]}vt.exports=Ro});var zo={};Kr(zo,{Callbacks:()=>B,Canvas:()=>it,CanvasMedia:()=>wt,Cursor:()=>dt,EaseInBack:()=>Ce,EaseInBounce:()=>Re,EaseInCirc:()=>ke,EaseInCubic:()=>De,EaseInElastic:()=>je,EaseInExpo:()=>ze,EaseInOutBack:()=>Le,EaseInOutBounce:()=>Be,EaseInOutCirc:()=>Ne,EaseInOutCubic:()=>$e,EaseInOutElastic:()=>We,EaseInOutExpo:()=>Fe,EaseInOutQuad:()=>Ve,EaseInOutQuart:()=>He,EaseInOutQuint:()=>Ue,EaseInOutSine:()=>Xe,EaseInQuad:()=>Ye,EaseInQuart:()=>qe,EaseInQuint:()=>Qe,EaseInSine:()=>Ke,EaseOutBack:()=>Ge,EaseOutBounce:()=>et,EaseOutCirc:()=>Je,EaseOutCubic:()=>nt,EaseOutElastic:()=>Ze,EaseOutExpo:()=>ti,EaseOutQuad:()=>ei,EaseOutQuart:()=>ii,EaseOutQuint:()=>si,EaseOutSine:()=>ri,InView:()=>xt,Marquee:()=>St,Module:()=>x,Pointers:()=>Et,Preloader:()=>Pt,ProgressPreloader:()=>Ot,Raf:()=>X,Responsive:()=>Wt,ScrollProgress:()=>se,Scrollbar:()=>ie,Snap:()=>gt,SnapSlide:()=>mt,SplitText:()=>me,Swipe:()=>at,Timeline:()=>L,addEventListener:()=>y,app:()=>jo,clamp:()=>w,clampScope:()=>Nt,closest:()=>Dt,damp:()=>Ae,easing:()=>ni,inRange:()=>oi,initVevet:()=>b,lerp:()=>C,loop:()=>$,normalizeWheel:()=>Ie,onResize:()=>U,presetCssVars:()=>gs,scoped:()=>J,toPixels:()=>M,uid:()=>we,vevet:()=>Vr});var Ei=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))},Jr=function(){function s(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"}return s}();var Zr=function(){function s(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return s}();var tn=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 en=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var sn=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var rn=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,nn=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Pi=3,on=[["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",rn]],Oi=[["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 Mi(s){return s?Ti(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new sn:typeof navigator!="undefined"?Ti(navigator.userAgent):cn()}function an(s){return s!==""&&on.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 Ti(s){var t=an(s);if(!t)return null;var e=t[0],i=t[1];if(e==="searchbot")return new en;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<Pi&&(r=Ei(Ei([],r,!0),hn(Pi-r.length),!0)):r=[];var n=r.join("."),o=ln(s),a=nn.exec(s);return a&&a[1]?new tn(e,n,o,a[1]):new Jr(e,n,o)}function ln(s){for(var t=0,e=Oi.length;t<e;t++){var i=Oi[t],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function cn(){var s=typeof process!="undefined"&&process.version;return s?new Zr(process.version.slice(1)):null}function hn(s){for(var t=[],e=0;e<s;e++)t.push("0");return t}var pn=Object.defineProperty,dn=Object.defineProperties,un=Object.getOwnPropertyDescriptors,Ii=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,Ai=(s,t,e)=>t in s?pn(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,It=(s,t)=>{for(var e in t||(t={}))fn.call(t,e)&&Ai(s,e,t[e]);if(Ii)for(var e of Ii(t))mn.call(t,e)&&Ai(s,e,t[e]);return s},At=(s,t)=>dn(s,un(t));var _n="Window is not available and no user agent was provided.",gn=()=>{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(_n),""},Ct={isInApp:!1,appKey:void 0,appName:void 0,skipped:!1},vn=s=>s.match(/(iPhone|iPad|iPod|Macintosh)/)!==null,bn=({skip:s,appKey:t,ua:e})=>{if(!s||s.length===0)return!1;let i=vn(e);return s.some(({appKey:r,platform:n})=>t===r&&(!n||i&&n==="apple"||!i&&n==="android"))},No=new RegExp(/Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[^\s]+ \(KHTML, like Gecko\) Version\/[^\s]+ (Mobile\/[^\s]+ )?Safari\/[^\s]+$/);var wn=()=>"TelegramWebview"in window||"TelegramWebviewProxy"in window||"TelegramWebviewProxyProto"in window,Ci={telegram:{name:"Telegram"}},yn=()=>{if(typeof window!="undefined"&&wn())return"telegram"},$o=Object.keys(Ci),_e={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"}},xn=Object.keys(_e),Sn=s=>xn.find(t=>_e[t].regex.test(s)),En=["WebView","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv\\)"],Pn=new RegExp(`${En.map(s=>`(${s})`).join("|")}`,"i");var On=(s={})=>{var t,e;let{skip:i,ua:r=""}=s,n=r||gn();if(!n)return At(It({},Ct),{ua:n});let o=l=>bn({skip:i,appKey:l,ua:n}),a=Sn(n);if(a||n.match(Pn)!==null)return o(a)?At(It({},Ct),{ua:n,skipped:!0}):{isInApp:!0,appKey:a,appName:a?_e[a].name:void 0,ua:n,skipped:!1};let c=yn();return c?o(c)?At(It({},Ct),{ua:n,skipped:!0}):{isInApp:!0,appKey:c,appName:(e=(t=Ci)==null?void 0:t[c])==null?void 0:e.name,ua:n,skipped:!1}:At(It({},Ct),{ua:n})};var Ri=On;var ge=/iPhone/i,ki=/iPod/i,Di=/iPad/i,ji=/\biOS-universal(?:.+)Mac\b/i,ve=/\bAndroid(?:.+)Mobile\b/i,zi=/Android/i,ct=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Rt=/Silk/i,G=/Windows Phone/i,Li=/\bWindows(?:.+)ARM\b/i,Bi=/BlackBerry/i,Ni=/BB10/i,$i=/Opera Mini/i,Wi=/\b(CriOS|Chrome)(?:.+)Mobile/i,Fi=/Mobile(?:.+)Firefox\b/i,Vi=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function Tn(s){return function(t){return t.test(s)}}function kt(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=Tn(e),n={apple:{phone:r(ge)&&!r(G),ipod:r(ki),tablet:!r(ge)&&(r(Di)||Vi(t))&&!r(G),universal:r(ji),device:(r(ge)||r(ki)||r(Di)||r(ji)||Vi(t))&&!r(G)},amazon:{phone:r(ct),tablet:!r(ct)&&r(Rt),device:r(ct)||r(Rt)},android:{phone:!r(G)&&r(ct)||!r(G)&&r(ve),tablet:!r(G)&&!r(ct)&&!r(ve)&&(r(Rt)||r(zi)),device:!r(G)&&(r(ct)||r(Rt)||r(ve)||r(zi))||r(/\bokhttp\b/i)},windows:{phone:r(G),tablet:r(Li),device:r(G)||r(Li)},other:{blackberry:r(Bi),blackberry10:r(Ni),opera:r($i),firefox:r(Fi),chrome:r(Wi),device:r(Bi)||r(Ni)||r($i)||r(Fi)||r(Wi)},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 tt(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 Hi={version:"5.9.1"};function _(s,t,e){let i=e.value;e.value=function(...n){if(!this._isDestroyed)return i.apply(this,n)}}function be(s){try{s()}catch(t){console.error(t)}}function Dt(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 Ui=0;function we(s="id"){return Ui+=1,`${s}_${Ui}`}var bt=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},In=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},B=class{constructor(t={}){this._props=t,this._isDestroyed=!1,this._list=[]}get list(){return this._list}add(t,e,i={}){let r=we("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=In(t,["id","timeout","action"]);let{ctx:a}=this._props;r?setTimeout(()=>be(()=>n(e,a)),r):be(()=>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}};bt([_],B.prototype,"add",null);bt([_],B.prototype,"on",null);bt([_],B.prototype,"remove",null);bt([_],B.prototype,"emit",null);bt([_],B.prototype,"destroy",null);function y(s,t,e,i){return s.addEventListener(t,e,i),()=>{s.removeEventListener(t,e,i)}}var us=Si(ds());function Ie(s){return(0,us.default)(s)}function U({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 fs({prefix:s,applyClassNames:t}){let e=new B,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 ms({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 B,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};f(),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 u=new ResizeObserver(()=>p());u.observe(I),u.observe(k);function v(){let{width:E,height:P}=l;f(),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 f(){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),Y=parseFloat(O.fontSize);if(l.rem=A(Y)?Y: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 V=I.clientHeight;(E!==l.width||!l.sHeight||E===l.width&&V<l.sHeight)&&(l.sHeight=V,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=`
|
|
1
|
+
"use strict";var Vevet=(()=>{var pn=Object.create;var zt=Object.defineProperty;var un=Object.getOwnPropertyDescriptor;var dn=Object.getOwnPropertyNames;var fn=Object.getPrototypeOf,mn=Object.prototype.hasOwnProperty;var ut=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports),_n=(s,t)=>{for(var e in t)zt(s,e,{get:t[e],enumerable:!0})},Bi=(s,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of dn(t))!mn.call(s,r)&&r!==e&&zt(s,r,{get:()=>t[r],enumerable:!(i=un(t,r))||i.enumerable});return s};var zi=(s,t,e)=>(e=s!=null?pn(fn(s)):{},Bi(t||!s||!s.__esModule?zt(e,"default",{value:s,enumerable:!0}):e,s)),gn=s=>Bi(zt({},"__esModule",{value:!0}),s);var us=ut((ka,ps)=>{var os=!1,ot,Ce,Re,Vt,Ht,as,Ut,De,ke,je,ls,Be,ze,cs,hs;function X(){if(!os){os=!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(Be=/\b(iPhone|iP[ao]d)/.exec(s),ze=/\b(iP[ao]d)/.exec(s),je=/Android/i.exec(s),cs=/FBAN\/\w+;/i.exec(s),hs=/Mobile/i.exec(s),ls=!!/Win64/.exec(s),t){ot=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ot&&document&&document.documentMode&&(ot=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);as=i?parseFloat(i[1])+4:ot,Ce=t[2]?parseFloat(t[2]):NaN,Re=t[3]?parseFloat(t[3]):NaN,Vt=t[4]?parseFloat(t[4]):NaN,Vt?(t=/(?:Chrome\/(\d+\.\d+))/.exec(s),Ht=t&&t[1]?parseFloat(t[1]):NaN):Ht=NaN}else ot=Ce=Re=Ht=Vt=NaN;if(e){if(e[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);Ut=r?parseFloat(r[1].replace("_",".")):!0}else Ut=!1;De=!!e[2],ke=!!e[3]}else Ut=De=ke=!1}}var Le={ie:function(){return X()||ot},ieCompatibilityMode:function(){return X()||as>ot},ie64:function(){return Le.ie()&&ls},firefox:function(){return X()||Ce},opera:function(){return X()||Re},webkit:function(){return X()||Vt},safari:function(){return Le.webkit()},chrome:function(){return X()||Ht},windows:function(){return X()||De},osx:function(){return X()||Ut},linux:function(){return X()||ke},iphone:function(){return X()||Be},mobile:function(){return X()||Be||ze||je||hs},nativeApp:function(){return X()||cs},android:function(){return X()||je},ipad:function(){return X()||ze}};ps.exports=Le});var fs=ut((ja,ds)=>{"use strict";var Xt=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Qn={canUseDOM:Xt,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:Xt&&!!(window.addEventListener||window.attachEvent),canUseViewport:Xt&&!!window.screen,isInWorker:!Xt};ds.exports=Qn});var vs=ut((Ba,gs)=>{"use strict";var ms=fs(),_s;ms.canUseDOM&&(_s=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Kn(s,t){if(!ms.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&&_s&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}gs.exports=Kn});var Es=ut((za,Ss)=>{"use strict";var Gn=us(),Jn=vs(),bs=10,ws=40,ys=800;function xs(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*bs,r=e*bs,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=ws,r*=ws):(i*=ys,r*=ys)),i&&!t&&(t=i<1?-1:1),r&&!e&&(e=r<1?-1:1),{spinX:t,spinY:e,pixelX:i,pixelY:r}}xs.getEventType=function(){return Gn.firefox()?"DOMMouseScroll":Jn("wheel")?"wheel":"mousewheel"};Ss.exports=xs});var Os=ut((La,Ps)=>{Ps.exports=Es()});var Jr=ut((Bt,Et)=>{var _o=1/0,Lr=9007199254740991,go=4294967295,vo="[object Function]",bo="[object GeneratorFunction]",wo="[object RegExp]",yo="[object Symbol]",xo=/^(?:0|[1-9]\d*)$/,Ri="\\ud800-\\udfff",Nr="\\u0300-\\u036f\\ufe20-\\ufe23",Fr="\\u20d0-\\u20f0",Wr="\\ufe0e\\ufe0f",So="["+Ri+"]",Ai="["+Nr+Fr+"]",Ci="\\ud83c[\\udffb-\\udfff]",Eo="(?:"+Ai+"|"+Ci+")",$r="[^"+Ri+"]",Vr="(?:\\ud83c[\\udde6-\\uddff]){2}",Hr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ur="\\u200d",Xr=Eo+"?",Yr="["+Wr+"]?",Po="(?:"+Ur+"(?:"+[$r,Vr,Hr].join("|")+")"+Yr+Xr+")*",Oo=Yr+Xr+Po,Mo="(?:"+[$r+Ai+"?",Ai,Vr,Hr,So].join("|")+")",To=RegExp(Ci+"(?="+Ci+")|"+Mo+Oo,"g"),Io=RegExp("["+Ur+Ri+Nr+Fr+Wr+"]"),qr=typeof global=="object"&&global&&global.Object===Object&&global,Ao=typeof self=="object"&&self&&self.Object===Object&&self,Co=qr||Ao||Function("return this")(),Qr=typeof Bt=="object"&&Bt&&!Bt.nodeType&&Bt,Cr=Qr&&typeof Et=="object"&&Et&&!Et.nodeType&&Et,Ro=Cr&&Cr.exports===Qr,Rr=Ro&&qr.process,Dr=function(){try{return Rr&&Rr.binding("util")}catch(s){}}(),kr=Dr&&Dr.isRegExp;function Do(s){return s.split("")}function ko(s){return function(t){return s(t)}}function Kr(s){return Io.test(s)}function jo(s){return Kr(s)?Bo(s):Do(s)}function Bo(s){return s.match(To)||[]}var zo=Object.prototype,Di=zo.toString,jr=Co.Symbol,Br=jr?jr.prototype:void 0,zr=Br?Br.toString:void 0;function Lo(s){return ki(s)&&Di.call(s)==wo}function No(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 Gr(s){if(typeof s=="string")return s;if(Qo(s))return zr?zr.call(s):"";var t=s+"";return t=="0"&&1/s==-_o?"-0":t}function Fo(s,t,e){var i=s.length;return e=e===void 0?i:e,!t&&e>=i?s:No(s,t,e)}function Wo(s,t){return t=t==null?Lr:t,!!t&&(typeof s=="number"||xo.test(s))&&s>-1&&s%1==0&&s<t}function $o(s,t,e){if(!ki(e))return!1;var i=typeof t;return(i=="number"?Ho(e)&&Wo(t,e.length):i=="string"&&t in e)?Vo(e[t],s):!1}function Vo(s,t){return s===t||s!==s&&t!==t}function Ho(s){return s!=null&&Xo(s.length)&&!Uo(s)}function Uo(s){var t=ki(s)?Di.call(s):"";return t==vo||t==bo}function Xo(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Lr}function ki(s){var t=typeof s;return!!s&&(t=="object"||t=="function")}function Yo(s){return!!s&&typeof s=="object"}var qo=kr?ko(kr):Lo;function Qo(s){return typeof s=="symbol"||Yo(s)&&Di.call(s)==yo}function Ko(s){return s==null?"":Gr(s)}function Go(s,t,e){return e&&typeof e!="number"&&$o(s,t,e)&&(t=e=void 0),e=e===void 0?go:e>>>0,e?(s=Ko(s),s&&(typeof t=="string"||t!=null&&!qo(t))&&(t=Gr(t),!t&&Kr(s))?Fo(jo(s),0,e):s.split(t,e)):[]}Et.exports=Go});var ea={};_n(ea,{Callbacks:()=>U,Canvas:()=>st,CanvasMedia:()=>Mt,Cursor:()=>gt,EaseInBack:()=>We,EaseInBounce:()=>$e,EaseInCirc:()=>Ve,EaseInCubic:()=>He,EaseInElastic:()=>Ue,EaseInExpo:()=>Xe,EaseInOutBack:()=>Ye,EaseInOutBounce:()=>qe,EaseInOutCirc:()=>Qe,EaseInOutCubic:()=>Ke,EaseInOutElastic:()=>Ge,EaseInOutExpo:()=>Je,EaseInOutQuad:()=>Ze,EaseInOutQuart:()=>ti,EaseInOutQuint:()=>ei,EaseInOutSine:()=>ii,EaseInQuad:()=>si,EaseInQuart:()=>ri,EaseInQuint:()=>ni,EaseInSine:()=>oi,EaseOutBack:()=>ai,EaseOutBounce:()=>it,EaseOutCirc:()=>li,EaseOutCubic:()=>lt,EaseOutElastic:()=>ci,EaseOutExpo:()=>hi,EaseOutQuad:()=>pi,EaseOutQuart:()=>ui,EaseOutQuint:()=>di,EaseOutSine:()=>fi,InView:()=>It,Marquee:()=>At,Module:()=>P,Pointers:()=>Ct,Preloader:()=>Rt,ProgressPreloader:()=>Dt,Raf:()=>$,Responsive:()=>Qt,ScrollProgress:()=>ue,Scrollbar:()=>pe,Snap:()=>St,SnapSlide:()=>xt,SplitText:()=>Se,Swipe:()=>ht,Timeline:()=>V,addEventListener:()=>y,app:()=>ta,clamp:()=>x,clampScope:()=>Yt,closest:()=>ft,damp:()=>Fe,easing:()=>mi,inRange:()=>_i,initVevet:()=>w,lerp:()=>I,loop:()=>F,normalizeWheel:()=>Ne,onResize:()=>q,presetCssVars:()=>Cs,scoped:()=>at,toPixels:()=>A,uid:()=>Ae,vevet:()=>ln});var Li=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))},vn=function(){function s(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"}return s}();var bn=function(){function s(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return s}();var wn=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 yn=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var xn=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var Sn=/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)/,Ni=3,Pn=[["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",Sn]],Fi=[["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 $i(s){return s?Wi(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new xn:typeof navigator!="undefined"?Wi(navigator.userAgent):Tn()}function On(s){return s!==""&&Pn.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 Wi(s){var t=On(s);if(!t)return null;var e=t[0],i=t[1];if(e==="searchbot")return new yn;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<Ni&&(r=Li(Li([],r,!0),In(Ni-r.length),!0)):r=[];var n=r.join("."),o=Mn(s),a=En.exec(s);return a&&a[1]?new wn(e,n,o,a[1]):new vn(e,n,o)}function Mn(s){for(var t=0,e=Fi.length;t<e;t++){var i=Fi[t],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function Tn(){var s=typeof process!="undefined"&&process.version;return s?new bn(process.version.slice(1)):null}function In(s){for(var t=[],e=0;e<s;e++)t.push("0");return t}var An=Object.defineProperty,Cn=Object.defineProperties,Rn=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,Hi=(s,t,e)=>t in s?An(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,Lt=(s,t)=>{for(var e in t||(t={}))Dn.call(t,e)&&Hi(s,e,t[e]);if(Vi)for(var e of Vi(t))kn.call(t,e)&&Hi(s,e,t[e]);return s},Nt=(s,t)=>Cn(s,Rn(t));var jn="Window is not available and no user agent was provided.",Bn=()=>{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(jn),""},Ft={isInApp:!1,appKey:void 0,appName:void 0,skipped:!1},zn=s=>s.match(/(iPhone|iPad|iPod|Macintosh)/)!==null,Ln=({skip:s,appKey:t,ua:e})=>{if(!s||s.length===0)return!1;let i=zn(e);return s.some(({appKey:r,platform:n})=>t===r&&(!n||i&&n==="apple"||!i&&n==="android"))},ra=new RegExp(/Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[^\s]+ \(KHTML, like Gecko\) Version\/[^\s]+ (Mobile\/[^\s]+ )?Safari\/[^\s]+$/);var Nn=()=>"TelegramWebview"in window||"TelegramWebviewProxy"in window||"TelegramWebviewProxyProto"in window,Ui={telegram:{name:"Telegram"}},Fn=()=>{if(typeof window!="undefined"&&Nn())return"telegram"},na=Object.keys(Ui),Oe={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"}},Wn=Object.keys(Oe),$n=s=>Wn.find(t=>Oe[t].regex.test(s)),Vn=["WebView","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv\\)"],Hn=new RegExp(`${Vn.map(s=>`(${s})`).join("|")}`,"i");var Un=(s={})=>{var t,e;let{skip:i,ua:r=""}=s,n=r||Bn();if(!n)return Nt(Lt({},Ft),{ua:n});let o=l=>Ln({skip:i,appKey:l,ua:n}),a=$n(n);if(a||n.match(Hn)!==null)return o(a)?Nt(Lt({},Ft),{ua:n,skipped:!0}):{isInApp:!0,appKey:a,appName:a?Oe[a].name:void 0,ua:n,skipped:!1};let c=Fn();return c?o(c)?Nt(Lt({},Ft),{ua:n,skipped:!0}):{isInApp:!0,appKey:c,appName:(e=(t=Ui)==null?void 0:t[c])==null?void 0:e.name,ua:n,skipped:!1}:Nt(Lt({},Ft),{ua:n})};var Xi=Un;var Me=/iPhone/i,Yi=/iPod/i,qi=/iPad/i,Qi=/\biOS-universal(?:.+)Mac\b/i,Te=/\bAndroid(?:.+)Mobile\b/i,Ki=/Android/i,dt=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Wt=/Silk/i,J=/Windows Phone/i,Gi=/\bWindows(?:.+)ARM\b/i,Ji=/BlackBerry/i,Zi=/BB10/i,ts=/Opera Mini/i,es=/\b(CriOS|Chrome)(?:.+)Mobile/i,is=/Mobile(?:.+)Firefox\b/i,ss=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function Xn(s){return function(t){return t.test(s)}}function $t(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=Xn(e),n={apple:{phone:r(Me)&&!r(J),ipod:r(Yi),tablet:!r(Me)&&(r(qi)||ss(t))&&!r(J),universal:r(Qi),device:(r(Me)||r(Yi)||r(qi)||r(Qi)||ss(t))&&!r(J)},amazon:{phone:r(dt),tablet:!r(dt)&&r(Wt),device:r(dt)||r(Wt)},android:{phone:!r(J)&&r(dt)||!r(J)&&r(Te),tablet:!r(J)&&!r(dt)&&!r(Te)&&(r(Wt)||r(Ki)),device:!r(J)&&(r(dt)||r(Wt)||r(Te)||r(Ki))||r(/\bokhttp\b/i)},windows:{phone:r(J),tablet:r(Gi),device:r(J)||r(Gi)},other:{blackberry:r(Ji),blackberry10:r(Zi),opera:r(ts),firefox:r(is),chrome:r(es),device:r(Ji)||r(Zi)||r(ts)||r(is)||r(es)},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 O(s,t){s.classList.add(t)}function G(s,t){t&&s.classList.remove(t)}function B(s,t,e){t&&s.classList.toggle(t,e)}function tt(s,t){return s.classList.contains(t)}var k=typeof window!="undefined",v=k?document:void 0,C=k?v.documentElement:void 0,j=k?v.body:void 0;var rs={version:"5.10.0"};function g(s,t,e){let i=e.value;e.value=function(...n){if(!this._isDestroyed)return i.apply(this,n)}}function Ie(s){try{s()}catch(t){console.error(t)}}function ft(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 R(s){return typeof s=="number"}function T(s){return R(s)&&!Number.isNaN(s)&&Number.isFinite(s)}function et(s,t=0){return T(s)?s:t}function A(s){if(!k)return 0;let t=w();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 R(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),e=et(e),window.vevet5_toPixelsCache.set(s,e),e}var ns=0;function Ae(s="id"){return ns+=1,`${s}_${ns}`}var Ot=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},qn=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},U=class{constructor(t={}){this._props=t,this._isDestroyed=!1,this._list=[]}get list(){return this._list}add(t,e,i={}){let r=Ae("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=qn(t,["id","timeout","action"]);let{ctx:a}=this._props;r?setTimeout(()=>Ie(()=>n(e,a)),r):Ie(()=>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}};Ot([g],U.prototype,"add",null);Ot([g],U.prototype,"on",null);Ot([g],U.prototype,"remove",null);Ot([g],U.prototype,"emit",null);Ot([g],U.prototype,"destroy",null);function y(s,t,e,i){return s.addEventListener(t,e,i),()=>{s.removeEventListener(t,e,i)}}var Ms=zi(Os());function Ne(s){return(0,Ms.default)(s)}function q({callback:s,element:t,viewportTarget:e="width",resizeDebounce:i=0,name:r}){let n=w(),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 Ts({prefix:s,applyClassNames:t}){let e=new U,i=!1;v.readyState==="complete"?setTimeout(()=>r(),0):y(window,"load",()=>r());function r(){let{body:o}=document;i=!0,t&&(G(C,`${s}loading`),G(o,`${s}loading`),O(C,`${s}loaded`)),e.emit("loaded",void 0)}function n(o){return i?(o(),()=>{}):e.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>i}}function Is({prefix:s,props:t,isMobile:e,isInApp:i,browserName:r}){let n=v.getElementById("vevet_css_preset");n||(n=v.createElement("style"),n.id="vevet_css_preset",j.appendChild(n));let o=v.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",j.appendChild(o);let c=new U,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};d(),f(),m();let h;function p(){h&&(clearTimeout(h),h=void 0),t.resizeDebounce?h=setTimeout(()=>_(),t.resizeDebounce):_()}y(window,"resize",()=>p());let u=new ResizeObserver(()=>p());u.observe(C),u.observe(j);function _(){let{width:b,height:S}=l;d(),f(),m();let{width:M,height:E}=l;c.emit("trigger",void 0),(M!==b||E!==S)&&c.emit("any",void 0),M!==b&&E===S&&c.emit("onlyWidth",void 0),E!==S&&M===b&&c.emit("onlyHeight",void 0),M!==b&&E!==S&&c.emit("both",void 0),M!==b&&c.emit("width",void 0),E!==S&&c.emit("height",void 0)}function d(){let{width:b}=l,S=window.innerWidth,M=window.innerHeight;l.width=S,l.height=M,l.scrollbarWidth=S-C.clientWidth,l.vw=l.width/100,l.vh=l.height/100;let E=getComputedStyle(C),D=parseFloat(E.fontSize);if(l.rem=T(D)?D: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 z=C.clientHeight;(b!==l.width||!l.sHeight||b===l.width&&z<l.sHeight)&&(l.sHeight=z,l.svh=l.sHeight/100)}else l.svh=o.clientHeight/100||C.clientHeight/100,l.sHeight=l.svh*100}function f(){t.applyClassNames&&(B(C,`${s}landscape`,l.landscape),B(C,`${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 As(s){var t;let i=Object.assign(Object.assign({},{resizeDebounce:0,easing:[.25,.1,.25,1],applyClassNames:!1}),s),r="v-",n=$i(),o=$t(),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(),h=o.phone||o.tablet;h||window.matchMedia("(pointer: fine)").matches||(h=!0);let{isInApp:p,appName:u}=Xi(),_=p?(u||"unknown").toLowerCase():!1,d=Ts({prefix:r,applyClassNames:i.applyClassNames}),f=Is({prefix:r,props:i,isMobile:h,isInApp:p,browserName:c}),m=Object.assign(Object.assign({},f.data),{viewportCallbacks:f.callbacks,version:rs.version,props:i,prefix:r,phone:o.phone,tablet:o.tablet,mobile:h,osName:a,browserName:c,inAppBrowser:_,doc:v,html:C,body:j,loaded:!1,onLoad:d.onLoad,onResize:(...b)=>f.callbacks.on(...b)});return d.onLoad(()=>{m.loaded=!0}),f.callbacks.add("trigger",()=>{Object.keys(f.data).forEach(S=>{m[S]=f.data[S]})},{protected:!0,name:"vevet core"}),function(){i.applyClassNames&&(O(C,`${r}os-${a}`),O(C,`${r}browser-${c}`),B(C,`${r}phone`,m.phone),B(C,`${r}tablet`,m.tablet),B(C,`${r}mobile`,m.mobile))}(),m}function w(){var s;if(!k)return;if(window.vevet5)return window.vevet5;let t=(s=window.VEVET_PROPS)!==null&&s!==void 0?s:{},e=As(t);return window.vevet5=e,window.vevet5}k&&(window.vevet5=w());var Cs=`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 Nt(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 Ae(s,t,e,i,r=0){return C(s,t,1-Math.exp(-e*60*(i/1e3)),r)}var Ce=s=>2.70158*s*s*s-1.70158*s*s;var et=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 Re=s=>1-et(1-s);var ke=s=>1-Math.sqrt(1-Math.pow(s,2));var De=s=>Math.pow(s,3);var je=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 ze=s=>s===0?0:Math.pow(2,10*s-10);var Le=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 Be=s=>s<.5?(1-et(1-2*s))/2:(1+et(2*s-1))/2;var Ne=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 $e=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2;var We=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 Fe=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 Ve=s=>s<.5?2*s*s:1-Math.pow(-2*s+2,2)/2;var He=s=>s<.5?8*s*s*s*s:1-Math.pow(-2*s+2,4)/2;var Ue=s=>s<.5?16*s*s*s*s*s:1-Math.pow(-2*s+2,5)/2;var Xe=s=>-(Math.cos(Math.PI*s)-1)/2;var Ye=s=>Math.pow(s,2);var qe=s=>Math.pow(s,4);var Qe=s=>Math.pow(s,5);var Ke=s=>1-Math.cos(s*Math.PI/2);var Ge=s=>1+2.70158*Math.pow(s-1,3)+1.70158*Math.pow(s-1,2);var Je=s=>Math.sqrt(1-Math.pow(s-1,2));var nt=s=>1-Math.pow(1-s,3);var Ze=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 ti=s=>s===1?1:1-Math.pow(2,-10*s);var ei=s=>1-Math.pow(1-s,2);var ii=s=>1-Math.pow(1-s,4);var si=s=>1-Math.pow(1-s,5);var ri=s=>Math.sin(s*Math.PI/2);function vs(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]=$t(a*.1,e,r);return s===0?0:s===1?1:$t(Dn(t,s,o),i,n)}function $t(s,t,e){return((bs(t,e)*s+ws(t,e))*s+ys(t))*s}function bs(s,t){return 1-3*t+3*s}function ws(s,t){return 3*t-6*s}function ys(s){return 3*s}function Dn(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=xs(c,i,r);return l>=.001?jn(t,c,i,r):l===0?c:zn(t,n,n+.1,i,r)}function xs(s,t,e){return 3*bs(t,e)*s*s+2*ws(t,e)*s+ys(t)}function jn(s,t,e,i){for(let r=0;r<4;++r){let n=xs(t,e,i);if(n===0)return t;let o=$t(t,e,i)-s;t-=o/n}return t}function zn(s,t,e,i,r){let n,o,a=0;do o=t+(e-t)/2,n=$t(o,i,r)-s,n>0?e=o:t=o;while(Math.abs(n)>1e-7&&++a<10);return o}function Ss(s,t=!1){return Array.isArray(t)?vs(s,t):typeof t=="function"?t(s):s}var ni=(s,t)=>{var e;return t===void 0&&(t=(e=b().props.easing)!==null&&e!==void 0?e:!1),Ss(s,t)};function oi(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 Es(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 ai=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 B({ctx:this}),this._props=Es(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(t){this.callbacks.emit("props",t)}updateProps(t){let e=Object.assign({},this._props),i=Object.keys(this.props);this._props=Object.assign(Object.assign({},this._props),t);let r={};i.forEach(n=>{let o=e[n],a=this._props[n];o!==a&&(r[n]=a)}),this._handleProps(r)}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){tt(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}};ai([_],x.prototype,"updateProps",null);ai([_],x.prototype,"on",null);ai([_],x.prototype,"destroy",null);var Ln=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{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())}};Ln([_],Wt.prototype,"destroy",null);var Ft={__staticProp:!0,container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0},Vt={__mutableProp:!0,width:"auto",height:"auto",dpr:"auto"};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},it=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ft)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Vt)}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(t){super._handleProps(t),this.resize()}_setEvents(){let{props:t}=this,{viewportTarget:e,resizeDebounce:i}=t;if(t.resizeOnInit&&this.resize(),!t.resizeOnRuntime)return;let r=U({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()}};Ps([_],it.prototype,"resize",null);Ps([_],it.prototype,"render",null);function Ht(s){let t=Nn(s),e=Bn(s),i;return s.rule==="cover"?i=$n(s,t,e):s.rule==="contain"?i=Wn(s,t,e):s.rule==="top-left"?i=Fn(s,e):s.rule==="top-right"?i=Vn(s,t,e):s.rule==="bottom-left"?i=Hn(s,t,e):s.rule==="bottom-right"?i=Un(s,t,e):s.rule==="center"&&(i=Xn(s,t,e)),Object.assign(i,{sourceWidth:e.width,sourceHeight:e.height})}function z(s){return typeof s.scale!="undefined"?s.scale:1}function Bn(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 Nn(s){return"container"in s?{width:s.container.clientWidth,height:s.container.clientHeight}:{width:s.width,height:s.height}}function $n(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 Wn(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 Fn(s,t){let e=t.width*z(s),i=t.height*z(s);return{width:e,height:i,x:0,y:0}}function Vn(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 Hn(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 Un(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 Xn(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 Os=Object.assign(Object.assign({},Ft),{media:null,autoRenderVideo:!0}),Ts=Object.assign(Object.assign({},Vt),{rule:"cover"});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},wt=class extends it{_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._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 it?(o=r.canvas,a=r.width,c=r.height):o=r;let l=Ht({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)}};Ms([_],wt.prototype,"resize",null);Ms([_],wt.prototype,"render",null);function st(s){return window.getComputedStyle(s).direction}var Is={__staticProp:!0},As={__mutableProp:!0,fps:"auto",enabled:!1,fpsRecalcFrames:10};var Cs=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 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._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(t){super._handleProps(t),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()}};Cs([_],X.prototype,"play",null);Cs([_],X.prototype,"pause",null);function ht(s){return typeof s=="string"}var Ut=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,u=l.e,v=l.f,f=a.left-u,d=a.top-v,m=f+h/2,E=d+p/2,P=n-m,T=o-E,O=this._getStickyAmplitude(),Y=O.x==="auto"?h:Math.abs(O.x),V=O.y==="auto"?p:Math.abs(O.y),K=w(P,-Y,Y),H=w(T,-V,V);if(i.prevTarget===null&&(i.prevTarget=K),r.prevTarget===null&&(r.prevTarget=H),this.hasStickyFriction){let q=K-i.prevTarget,Hr=H-r.prevTarget;i.target+=q,r.target+=Hr}else i.target=K,r.target=H;i.prevTarget=K,r.prevTarget=H}_getStickyAmplitude(){let{stickyAmplitude:t}=this._data,e="auto",i="auto";return t?(j(t)||ht(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 li=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 Xt=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",li(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",li(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 Rs={__staticProp:!0,container:R?window:null,hideNative:!1,append:!0,behavior:"default",transformModifier:({x:s,y:t})=>`translate(${s}px, ${t}px)`},ks={__mutableProp:!0,enabled:!0,width:50,height:50,lerp:.2,autoStop:!0};function Yt(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 pt=null;function Ds(s){return pt||(pt=g.createElement("style"),Yt(pt),pt.innerHTML=`
|
|
36
|
+
presetVevetCss();`;function x(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 at(s,t=0,e=1){return(s-t)/(e-t)}function Yt(s,t=[0,1],e=[0,1]){let i=at(s,t[0],t[1]);return x(i,e[0],e[1])}function I(s,t,e,i=0){let r=s+(t-s)*e;return Math.abs(t-r)<=i?t:r}function Fe(s,t,e,i,r=0){return I(s,t,1-Math.exp(-e*60*(i/1e3)),r)}var We=s=>2.70158*s*s*s-1.70158*s*s;var it=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 $e=s=>1-it(1-s);var Ve=s=>1-Math.sqrt(1-Math.pow(s,2));var He=s=>Math.pow(s,3);var Ue=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 Xe=s=>s===0?0:Math.pow(2,10*s-10);var Ye=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 qe=s=>s<.5?(1-it(1-2*s))/2:(1+it(2*s-1))/2;var Qe=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 Ke=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2;var Ge=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 Je=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 Ze=s=>s<.5?2*s*s:1-Math.pow(-2*s+2,2)/2;var ti=s=>s<.5?8*s*s*s*s:1-Math.pow(-2*s+2,4)/2;var ei=s=>s<.5?16*s*s*s*s*s:1-Math.pow(-2*s+2,5)/2;var ii=s=>-(Math.cos(Math.PI*s)-1)/2;var si=s=>Math.pow(s,2);var ri=s=>Math.pow(s,4);var ni=s=>Math.pow(s,5);var oi=s=>1-Math.cos(s*Math.PI/2);var ai=s=>1+2.70158*Math.pow(s-1,3)+1.70158*Math.pow(s-1,2);var li=s=>Math.sqrt(1-Math.pow(s-1,2));var lt=s=>1-Math.pow(1-s,3);var ci=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 hi=s=>s===1?1:1-Math.pow(2,-10*s);var pi=s=>1-Math.pow(1-s,2);var ui=s=>1-Math.pow(1-s,4);var di=s=>1-Math.pow(1-s,5);var fi=s=>Math.sin(s*Math.PI/2);function Rs(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]=qt(a*.1,e,r);return s===0?0:s===1?1:qt(Zn(t,s,o),i,n)}function qt(s,t,e){return((Ds(t,e)*s+ks(t,e))*s+js(t))*s}function Ds(s,t){return 1-3*t+3*s}function ks(s,t){return 3*t-6*s}function js(s){return 3*s}function Zn(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?to(t,c,i,r):l===0?c:eo(t,n,n+.1,i,r)}function Bs(s,t,e){return 3*Ds(t,e)*s*s+2*ks(t,e)*s+js(t)}function to(s,t,e,i){for(let r=0;r<4;++r){let n=Bs(t,e,i);if(n===0)return t;let o=qt(t,e,i)-s;t-=o/n}return t}function eo(s,t,e,i,r){let n,o,a=0;do o=t+(e-t)/2,n=qt(o,i,r)-s,n>0?e=o:t=o;while(Math.abs(n)>1e-7&&++a<10);return o}function zs(s,t=!1){return Array.isArray(t)?Rs(s,t):typeof t=="function"?t(s):s}var mi=(s,t)=>{var e;return t===void 0&&(t=(e=w().props.easing)!==null&&e!==void 0?e:!1),zs(s,t)};function _i(s,t=0,e=1){let i=Math.min(t,e),r=Math.max(t,e);return s>=i&&s<=r}function F(s,t,e){let i=e-t;return((s-t)%i+i)%i+t}function Ls(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 gi=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},P=class{_getStatic(){return{__staticProp:!0}}_getMutable(){return{__mutableProp:!0}}get props(){return this._props}get prefix(){return w().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 U({ctx:this}),this._props=Ls(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(t){this.callbacks.emit("props",t)}updateProps(t){let e=Object.assign({},this._props),i=Object.keys(this.props);this._props=Object.assign(Object.assign({},this._props),t);let r={};i.forEach(n=>{let o=e[n],a=this._props[n];o!==a&&(r[n]=a)}),this._handleProps(r)}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){tt(t,e)||(O(t,e),this.onDestroy(()=>G(t,e)))}destroy(){this._destroy()}_destroy(){this._callbacks.emit("destroy",void 0),this._callbacks.destroy(),this._destroyable.forEach(t=>t()),this._isDestroyed=!0}};gi([g],P.prototype,"updateProps",null);gi([g],P.prototype,"on",null);gi([g],P.prototype,"destroy",null);var io=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},Qt=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=w(),o=r instanceof P?r.name:"Object";if(this._fetchInitProps(),this._props=Object.assign({},this._initProps),r instanceof P){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 P){this._initProps={},Object.keys(t._getMutable()).forEach(i=>{this._initProps[i]=t.props[i]});return}this._initProps=this._source}_getActiveRules(){let t=w();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 P&&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())}};io([g],Qt.prototype,"destroy",null);var Kt={__staticProp:!0,container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0},Gt={__mutableProp:!0,width:"auto",height:"auto",dpr:"auto"};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},st=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Kt)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Gt)}constructor(t,e){super(t,e),this._width=0,this._height=0,this._dpr=1;let{container:i}=this.props;this._canvas=v.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(t){super._handleProps(t),this.resize()}_setEvents(){let{props:t}=this,{viewportTarget:e,resizeDebounce:i}=t;if(t.resizeOnInit&&this.resize(),!t.resizeOnRuntime)return;let r=q({callback:()=>this.resize(),element:this.props.container,viewportTarget:e,resizeDebounce:i,name:this.name});this.onDestroy(()=>r.remove())}resize(){let t=w(),{props:e,canvas:i}=this,{container:r}=this.props;this._dpr=R(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()}};Ns([g],st.prototype,"resize",null);Ns([g],st.prototype,"render",null);function Jt(s){let t=ro(s),e=so(s),i;return s.rule==="cover"?i=no(s,t,e):s.rule==="contain"?i=oo(s,t,e):s.rule==="top-left"?i=ao(s,e):s.rule==="top-right"?i=lo(s,t,e):s.rule==="bottom-left"?i=co(s,t,e):s.rule==="bottom-right"?i=ho(s,t,e):s.rule==="center"&&(i=po(s,t,e)),Object.assign(i,{sourceWidth:e.width,sourceHeight:e.height})}function W(s){return typeof s.scale!="undefined"?s.scale:1}function so(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 ro(s){return"container"in s?{width:s.container.clientWidth,height:s.container.clientHeight}:{width:s.width,height:s.height}}function no(s,t,e){let i=t.width*W(s),r=e.height*i/e.width;r/W(s)<t.height&&(r=t.height*W(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 oo(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*=W(s),r*=W(s);let o=(t.width-i)/2,a=(t.height-r)/2;return{width:i,height:r,x:o,y:a}}function ao(s,t){let e=t.width*W(s),i=t.height*W(s);return{width:e,height:i,x:0,y:0}}function lo(s,t,e){let i=e.width*W(s),r=e.height*W(s),n=t.width-e.width;return{width:i,height:r,x:n,y:0}}function co(s,t,e){let i=e.width*W(s),r=e.height*W(s),n=t.height-e.height;return{width:i,height:r,x:0,y:n}}function ho(s,t,e){let i=e.width*W(s),r=e.height*W(s),n=t.width-e.width,o=t.height-e.height;return{width:i,height:r,x:n,y:o}}function po(s,t,e){let i=e.width*W(s),r=e.height*W(s),n=(t.width-e.width)/2,o=(t.height-e.height)/2;return{width:i,height:r,x:n,y:o}}var Fs=Object.assign(Object.assign({},Kt),{media:null,autoRenderVideo:!0}),Ws=Object.assign(Object.assign({},Gt),{rule:"cover"});var $s=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},Mt=class extends st{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Fs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Ws)}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 st?(o=r.canvas,a=r.width,c=r.height):o=r;let l=Jt({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)}};$s([g],Mt.prototype,"resize",null);$s([g],Mt.prototype,"render",null);function rt(s){return window.getComputedStyle(s).direction}var Vs={__staticProp:!0},Hs={__mutableProp:!0,fps:"auto",enabled:!1,fpsRecalcFrames:10};var Us=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},$=class extends P{_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._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(t){super._handleProps(t),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()}};Us([g],$.prototype,"play",null);Us([g],$.prototype,"pause",null);function mt(s){return typeof s=="string"}var Zt=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?A(this._data.width):null}get height(){return this._data.height==="auto"?"auto":this._data.height?A(this._data.height):null}get padding(){return this._data.padding?A(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 T(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:R(this.width)&&(i=this.width),this.height==="auto"?r=o.height:R(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,u=l.e,_=l.f,d=a.left-u,f=a.top-_,m=d+h/2,b=f+p/2,S=n-m,M=o-b,E=this._getStickyAmplitude(),D=E.x==="auto"?h:Math.abs(E.x),z=E.y==="auto"?p:Math.abs(E.y),Q=x(S,-D,D),N=x(M,-z,z);if(i.prevTarget===null&&(i.prevTarget=Q),r.prevTarget===null&&(r.prevTarget=N),this.hasStickyFriction){let H=Q-i.prevTarget,Pt=N-r.prevTarget;i.target+=H,r.target+=Pt}else i.target=Q,r.target=N;i.prevTarget=Q,r.prevTarget=N}_getStickyAmplitude(){let{stickyAmplitude:t}=this._data,e="auto",i="auto";return t?(R(t)||mt(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 R(t)?t:!t||t==="auto"?"auto":A(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=I(e.target,0,o,1e-4),i.target=I(i.target,0,o,1e-4)}let n=t(this.stickyLerp);e.current=I(e.current,e.target,n,1e-4),i.current=I(i.current,i.target,n,1e-4),r.style.transform=`translate3d(${e.current}px, ${i.current}px, 0)`}};var vi=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 te=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",vi(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(T(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",vi(t))}}get isInterpolated(){return this._line.current===this._line.target}lerp(t){let e=this._line;e.current=I(e.current,e.target,t,1e-4)}get coord(){return this._path.getPointAtLength(this._line.current)}};var Xs={__staticProp:!0,container:k?window:null,hideNative:!1,append:!0,behavior:"default",transformModifier:({x:s,y:t})=>`translate(${s}px, ${t}px)`},Ys={__mutableProp:!0,enabled:!0,width:50,height:50,lerp:.2,autoStop:!0};function ee(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 _t=null;function qs(s){return _t||(_t=v.createElement("style"),ee(_t),_t.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
|
-
`,pt)}var ci=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},dt=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._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 Xt(this.hasPath),Ds(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,u=o,v=a,f=0;if(n){let d=n.getDimensions();u=(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,f=d.padding}return u+=f*2,v+=f*2,{x:c,y:l,width:u,height:v,angle:h,velocity:p}}get path(){return this._path.path}get hasPath(){return this.props.behavior==="path"}_handleProps(t){super._handleProps(t),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,props:i}=this,r=t instanceof Window,n=this._cn.bind(this),o=g.createElement("div");S(o,n("")),S(o,n(r?"-in-window":"-in-element")),S(o,n("-disabled")),i.append&&e.append(o);let a=st(o);S(o,n(`_${a}`));let c=g.createElement("div");o.append(c),S(c,n("__inner")),S(c,n("-disabled")),o.append(c),this._outer=o,this._inner=c,this.onDestroy(()=>{c.remove(),o.remove()})}_setEvents(){let{domContainer:t}=this;this._raf=new X({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,u=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=u,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 Ut(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)))}};ci([_],dt.prototype,"attachHover",null);ci([_],dt.prototype,"attachCursor",null);ci([_],dt.prototype,"render",null);var js={__staticProp:!0,hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"},zs={__mutableProp:!0,enabled:!0,rootMargin:"0% 0% -5% 0%"};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},xt=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._isInitialStart=!0,this._elements=[],this._isRtl=!1,this._isRtl=st(k)==="rtl",this._setup()}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}_handleProps(t){super._handleProps(t),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()}};Ls([_],xt.prototype,"addElement",null);Ls([_],xt.prototype,"removeElement",null);var qt=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 Bs={__staticProp:!0,container:null,resizeDebounce:0,hasWillChange:!0,cloneNodes:!0,direction:"horizontal"},Ns={__mutableProp:!0,speed:1,gap:0,enabled:!0,pauseOnHover:!1,centered:!1,adjustSpeed:!0,pauseOnOut:!0};function $s({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 Ws(s){let{style:t}=s;t.position="",t.display="",t.flexDirection="",t.alignItems="",t.justifyContent="",t.overflow="",t.height="",t.width=""}var Fs=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},St=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Bs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Ns)}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=st(i)==="rtl"&&r==="horizontal";this._isRtl=o,$s({container:i,isVertical:n,isRtl:o}),this._nodes=new qt(this),this._setup(),this._raf=new X({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(t){super._handleProps(t),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setEvents(){let{container:t}=this.props;this._raf.on("frame",()=>{let{props:n}=this,o=n.adjustSpeed?this._raf.fpsFactor:1,a=M(n.speed);this._render(a*o)});let e=y(t,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()}),i=y(t,"mouseleave",()=>{this.props.enabled&&this._raf.play()}),r=new IntersectionObserver(this._handleIntersection.bind(this),{root:null});r.observe(t),this.onDestroy(()=>{e(),i(),r.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=U({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 u=n[p],v=this._sizes[p],{style:f}=u,d=$(l+h,-v,this._totalSize-v);if(e){let m=f.position==="relative"?"0":"-50%";f.transform=`translate(${m}, ${d}px)`}else{let m=f.position==="relative"?"0":"-50%";f.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(),Ws(e)}};Fs([_],St.prototype,"resize",null);Fs([_],St.prototype,"render",null);var Vs={__staticProp:!0,container:null,buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0},Hs={__mutableProp:!0,enabled:!0};var ot=R?g.createElement("style"):null;ot&&(ot.innerHTML="* { user-select: none !important; }");var Et=class extends x{_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._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(ot),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(),ot===null||ot===void 0||ot.remove())}_destroy(){this._cleanup(),super._destroy()}};function Qt(s){return typeof s=="undefined"}var hi,pi,Us={__staticProp:!0},Xs={__mutableProp:!0,easing:(pi=(hi=b())===null||hi===void 0?void 0:hi.props)===null||pi===void 0?void 0:pi.easing,duration:1e3};var Kt=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},L=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Us)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Xs)}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!Qt(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=ni(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()}};Kt([_],L.prototype,"play",null);Kt([_],L.prototype,"reverse",null);Kt([_],L.prototype,"pause",null);Kt([_],L.prototype,"reset",null);var Gt={__staticProp:!0,container:null,hide:250},Jt={__mutableProp:!0};var Pt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Gt)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Jt)}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 L({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 Ys=Object.assign(Object.assign({},Gt),{resourceContainer:null,preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500}),qs=Object.assign({},Jt);function Qs(s){let t=parseFloat(s.getAttribute("data-loaded")||"0");return t=Number.isNaN(t)?0:w(t,0,1/0),t}function Ks({id:s,weight:t},e){if(!(s instanceof Element))return;if(Qs(s)>=t){e(t);return}let i=new MutationObserver(()=>{let r=Qs(s);e(r),r>=t&&i.disconnect()});i.observe(s,{attributes:!0,attributeFilter:["data-loaded"]})}function Gs(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 Js(s,t){if(s.readyState>0){t();return}if(s.preload==="none"){t();return}s.addEventListener("error",()=>t()),s.addEventListener("loadedmetadata",()=>t())}var tr=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},Zs=`vevet-page-${Math.random()}`,Ot=class extends Pt{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Ys)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),qs)}constructor(t,e){super(t,e),this._resources=[{id:Zs,weight:1,loaded:0}],this._progress=0,this._raf=new X({enabled:!0}),this._raf.on("frame",()=>this._handleUpdate()),this._fetchImages(),this._fetchVideos(),this._fetchResources(),b().onLoad(()=>this.resolveResource(Zs))}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=>!tt(e,this.props.ignoreClassName)&&e.loading!=="lazy"),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{Gs(e,()=>this.resolveResource(e))})}_fetchVideos(){if(!this.props.preloadVideos)return;let t=Array.from(this.resourceContainer.querySelectorAll("video"));t=t.filter(e=>!tt(e,this.props.ignoreClassName)),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{Js(e,()=>this.resolveResource(e))})}_fetchResources(){let t=Array.from(this.resourceContainer.querySelectorAll(this.props.customSelector));t=t.filter(e=>!tt(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),Ks(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 L({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()}};tr([_],Ot.prototype,"addResource",null);tr([_],Ot.prototype,"resolveResource",null);var Zt=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 f=r.getBoundingClientRect();c=o-f.left,l=a-f.top,h=f.left+f.width/2,p=f.top+f.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 Yn=4,te=class{constructor(t){this._ctx=t,this._velocities=[]}addVelocity(t){this.has||(this._velocities.push(t),this._velocities.length>Yn&&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 u=Math.max(a.timestamp-c.timestamp,1),v=l/u*1e3,f=h/u*1e3,d=p/u*1e3,m=1/Math.exp(-u*.1);i+=v*m,r+=f*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:u}=l,v=Math.sqrt(Math.pow(h,2)+Math.pow(p,2));if(v<i.inertiaDistanceThreshold){r.emit("inertiaFail",void 0);return}let f=i.inertiaDuration(v);if(!A(f)||f<=0){r.emit("inertiaFail",void 0);return}let d={x:0,y:0,angle:0};this._timeline=new L({duration:f,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=u*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 er={__staticProp:!0,container:null,thumb:null,buttons:[0],pointers:1,disableUserSelect:!0},ir={__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:nt,velocityModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50};var ut=R?g.createElement("style"):null;ut&&(ut.innerHTML="* { cursor: grabbing !important; }");var ee=class{constructor(t){this._ctx=t,this._styles=ut===null||ut===void 0?void 0:ut.cloneNode(!0),this.setInline()}setInline(){let{props:t}=this._ctx,{container:e,axis:i,enabled:r,grabCursor:n}=t,{style:o}=e,a=r&&n?"grab":"",c="none";i==="x"?c="pan-y":i==="y"&&(c="pan-x"),o.cursor=a,o.touchAction=c}append(){this._ctx.props.grabCursor&&this._styles&&k.append(this._styles)}remove(){var t;(t=this._styles)===null||t===void 0||t.remove()}};var at=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),er)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),ir)}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 Zt(this),this._inertia=new te(this),this._styles=new ee(this),this._pointers=new Et({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(t){super._handleProps(t),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},u=p.x/h,v=p.y/h;if(Math.sqrt(Math.pow(u,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 sr={__staticProp:!0,container:R?window:null,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:50},rr={__mutableProp:!0,minSize:50,autoSize:!0};var ft=null;function nr(s){return ft||(ft=g.createElement("style"),Yt(ft),ft.innerHTML=`
|
|
96
|
+
`,_t)}var bi=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},gt=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Xs)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Ys)}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 te(this.hasPath),qs(this.prefix),this._setClassNames(),this._createElements(),this._setEvents(),this._toggle(i)}get prefix(){return`${w().prefix}cursor`}get container(){return this.props.container}get domContainer(){return this.container instanceof Window?j:this.container}get outer(){return this._outer}get inner(){return this._inner}get initialWidth(){return A(this.props.width)}get initialHeight(){return A(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,u=o,_=a,d=0;if(n){let f=n.getDimensions();u=(t=f.width)!==null&&t!==void 0?t:o,_=(e=f.height)!==null&&e!==void 0?e:a,c=(i=f.x)!==null&&i!==void 0?i:c,l=(r=f.y)!==null&&r!==void 0?r:l,d=f.padding}return u+=d*2,_+=d*2,{x:c,y:l,width:u,height:_,angle:h,velocity:p}}get path(){return this._path.path}get hasPath(){return this.props.behavior==="path"}_handleProps(t){super._handleProps(t),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!==j&&(t.style.position="relative"),this.onDestroy(()=>{t.style.cursor=""})}_createElements(){let{container:t,domContainer:e,props:i}=this,r=t instanceof Window,n=this._cn.bind(this),o=v.createElement("div");O(o,n("")),O(o,n(r?"-in-window":"-in-element")),O(o,n("-disabled")),i.append&&e.append(o);let a=rt(o);O(o,n(`_${a}`));let c=v.createElement("div");o.append(c),O(c,n("__inner")),O(c,n("-disabled")),o.append(c),this._outer=o,this._inner=c,this.onDestroy(()=>{c.remove(),o.remove()})}_setEvents(){let{domContainer:t}=this;this._raf=new $({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");B(this.outer,i,!t),B(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),O(this.outer,this._cn("-visible"))}_handleMouseLeave(){G(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,u=h+((p-h)%360+540)%360-180,_=Math.min(Math.sqrt(Math.pow(c,2)+Math.pow(l,2))*2,150)/150;n.x=i,n.y=r,n.angle=u,n.velocity=_,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),O(this.outer,this._cn("-visible")),(e=this._raf)===null||e===void 0||e.play()}_handleMouseDown(t){let e=this._cn("-click");t.which===1&&(O(this.outer,e),O(this.inner,e))}_handleMouseUp(){let t=this._cn("-click");G(this.outer,t),G(this.inner,t)}_handleWindowBlur(){this._handleMouseUp()}attachHover(t){let e=new Zt(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=>{B(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(!T(t))return 1;let e=x(t,0,1);return this._raf.lerpFactor(e)}_lerp(t,e){let i=this._getLerpFactor();return I(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)))}};bi([g],gt.prototype,"attachHover",null);bi([g],gt.prototype,"attachCursor",null);bi([g],gt.prototype,"render",null);var Qs={__staticProp:!0,hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"},Ks={__mutableProp:!0,enabled:!0,rootMargin:"0% 0% -5% 0%"};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},It=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Qs)}_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=rt(j)==="rtl",this._setup()}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}_handleProps(t){super._handleProps(t),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();B(t,h,e);return}B(t,a,e),B(t,c,e)}}_getDirection(t,e,i){let r=w(),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=w();if(!this.isInitialStart||i<=0)return 0;let n=t.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:r.height},a=x(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()}};Gs([g],It.prototype,"addElement",null);Gs([g],It.prototype,"removeElement",null);var ie=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=v.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(!T(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 tr({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 er(s){let{style:t}=s;t.position="",t.display="",t.flexDirection="",t.alignItems="",t.justifyContent="",t.overflow="",t.height="",t.width=""}var ir=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},At=class extends P{_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=rt(i)==="rtl"&&r==="horizontal";this._isRtl=o,tr({container:i,isVertical:n,isRtl:o}),this._nodes=new ie(this),this._setup(),this._raf=new $({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(A(this.props.gap),0)}_handleProps(t){super._handleProps(t),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setEvents(){let{container:t}=this.props;this._raf.on("frame",()=>{let{props:n}=this,o=n.adjustSpeed?this._raf.fpsFactor:1,a=A(n.speed);this._render(a*o)});let e=y(t,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()}),i=y(t,"mouseleave",()=>{this.props.enabled&&this._raf.play()}),r=new IntersectionObserver(this._handleIntersection.bind(this),{root:null});r.observe(t),this.onDestroy(()=>{e(),i(),r.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=w().onLoad(()=>this.resize()),n=q({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&&T(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=A(o);if(!T(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 u=n[p],_=this._sizes[p],{style:d}=u,f=F(l+h,-_,this._totalSize-_);if(e){let m=d.position==="relative"?"0":"-50%";d.transform=`translate(${m}, ${f}px)`}else{let m=d.position==="relative"?"0":"-50%";d.transform=`translate(${f}px, ${m})`}h+=_}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(),er(e)}};ir([g],At.prototype,"resize",null);ir([g],At.prototype,"render",null);function se(s,t){let i=s-t;return i>180?i-=180*2:i<-180&&(i+=180*2),i}var sr={__staticProp:!0,container:null,buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0},rr={__mutableProp:!0,enabled:!0};var ct=k?v.createElement("style"):null;ct&&(ct.innerHTML="* { user-select: none !important; }");var Ct=class extends P{_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._listeners=[],this._isStarted=!1,this._saveMinPointers=1,this._moveData=null,this._moveScheduled=!1,this._angle={raw:0,unwrapped:0,unwrappedStart:0},this._pointersMap=new Map,this._setBaseEvents()}get isStarted(){return this._isStarted}get pointersMap(){return this._pointersMap}get container(){return this.props.container}get move(){return this._moveData}_getButtons(t){let{buttons:e}=this.props;return Array.isArray(e)?e:e(t)}_getMinPointers(t){let{minPointers:e}=this.props;return x(R(e)?e:e(t),1,1/0)}_getMaxPointers(t){let{maxPointers:e}=this.props;return x(R(e)?e:e(t),this._getMinPointers(t),1/0)}_getPointerType(t){return["mouse","touch"].includes(t.pointerType)?t.pointerType:"mouse"}_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._getButtons("mouse").includes(1)&&o.preventDefault()},{passive:!1}),n=y(t,"contextmenu",o=>{this._getButtons("mouse").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),n=this._getPointerType(t),o=this._getButtons(n),a=this._getMinPointers(n);this._saveMinPointers=a;let c=this._getMaxPointers(n);if(!e.enabled||!o.includes(t.button)||this.pointersMap.get(t.pointerId)||this.pointersMap.size>=c)return;let h={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,h);let p=0;this.pointersMap.forEach(u=>{u.index=p,p+=1}),this.pointersMap.size===a&&(this._isStarted=!0,this.callbacks.emit("start",void 0)),this._setRuntimeEvents(),e.disableUserSelect&&j.append(ct),this.callbacks.emit("pointerdown",{event:t,pointer:h})}_handlePointerMove(t){let e=this.pointersMap.get(t.pointerId);if(!e||!this.props.enabled)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}),this._isStarted&&(this._updateMove(),this._scheduleMove())}_handlePointerUp(t){let e=this.pointersMap.get(t.pointerId),i=this._getMinPointers(this._getPointerType(t));e&&(this.callbacks.emit("pointerup",{pointer:e}),this.pointersMap.delete(t.pointerId),this.pointersMap.size<i&&this._isStarted&&(this._isStarted=!1,this._moveData=null,this._angle={raw:0,unwrapped:0,unwrappedStart:0},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}}_updateMove(){let t=Array.from(this.pointersMap.values()).sort((o,a)=>o.index-a.index),e=t.map(({current:o})=>o),i=this._getAverageCenter(e),r=Math.max(this._getAverageDistance(e),.001),n=this._getAngle(e);if(!this._moveData){this._angle={raw:n,unwrapped:n,unwrappedStart:n},this._moveData={center:i,prevCenter:Object.assign({},i),startCenter:Object.assign({},i),distance:r,prevDistance:r,startDistance:r,scale:1,prevScale:1,angle:0,prevAngle:0};return}this._moveData.prevCenter=Object.assign({},this._moveData.center),this._moveData.center=Object.assign({},i),this._moveData.prevDistance=this._moveData.distance,this._moveData.distance=r,t.length>=2&&(this._moveData.prevScale=this._moveData.scale,this._moveData.scale=r/this._moveData.startDistance,this._angle.unwrapped+=se(n,this._angle.raw),this._angle.raw=n,this._moveData.prevAngle=this._moveData.angle,this._moveData.angle=this._angle.unwrapped-this._angle.unwrappedStart)}_getAngle(t){if(t.length<2)return 0;let[e,i]=t;return Math.atan2(i.y-e.y,i.x-e.x)*180/Math.PI}_getAverageCenter(t){if(t.length===1)return t[0];let e=t.reduce((i,r)=>({x:i.x+r.x,y:i.y+r.y}),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}}_getAverageDistance(t){if(t.length<=1)return 0;let e=this._getAverageCenter(t);return t.reduce((r,n)=>r+Math.hypot(n.x-e.x,n.y-e.y),0)/t.length}_scheduleMove(){this._moveScheduled||(this._moveScheduled=!0,queueMicrotask(()=>{this._moveScheduled=!1,!(!this._isStarted||this.pointersMap.size<this._saveMinPointers||!this._moveData)&&this.callbacks.emit("move",this._moveData)}))}_cleanup(){this._listeners.forEach(t=>t()),this._listeners=[],this._isStarted=!1,this._moveScheduled=!1,this._moveData=null,this._angle={raw:0,unwrapped:0,unwrappedStart:0},this.pointersMap.clear(),this.props.disableUserSelect&&(this._resetSelection(),ct===null||ct===void 0||ct.remove())}_destroy(){this._cleanup(),super._destroy()}};function re(s){return typeof s=="undefined"}var wi,yi,nr={__staticProp:!0},or={__mutableProp:!0,easing:(yi=(wi=w())===null||wi===void 0?void 0:wi.props)===null||yi===void 0?void 0:yi.easing,duration:1e3};var ne=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},V=class extends P{_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._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=x(t),this._onUpdate()}get eased(){return this._eased}get isPlaying(){return!re(this._raf)}get isReversed(){return this._isReversed}get isPaused(){return this._isPaused}get duration(){let t=this.props.duration;return!T(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=mi(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()}};ne([g],V.prototype,"play",null);ne([g],V.prototype,"reverse",null);ne([g],V.prototype,"pause",null);ne([g],V.prototype,"reset",null);var oe={__staticProp:!0,container:null,hide:250},ae={__mutableProp:!0};var Rt=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),oe)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),ae)}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){w().onLoad(t)}_handleLoaded(){this.isDestroyed||(this._isLoaded=!0,this.callbacks.emit("loaded",void 0),R(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 V({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 ar=Object.assign(Object.assign({},oe),{resourceContainer:null,preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500}),lr=Object.assign({},ae);function cr(s){let t=parseFloat(s.getAttribute("data-loaded")||"0");return t=Number.isNaN(t)?0:x(t,0,1/0),t}function hr({id:s,weight:t},e){if(!(s instanceof Element))return;if(cr(s)>=t){e(t);return}let i=new MutationObserver(()=>{let r=cr(s);e(r),r>=t&&i.disconnect()});i.observe(s,{attributes:!0,attributeFilter:["data-loaded"]})}function pr(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 ur(s,t){if(s.readyState>0){t();return}if(s.preload==="none"){t();return}s.addEventListener("error",()=>t()),s.addEventListener("loadedmetadata",()=>t())}var fr=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},dr=`vevet-page-${Math.random()}`,Dt=class extends Rt{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),ar)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),lr)}constructor(t,e){super(t,e),this._resources=[{id:dr,weight:1,loaded:0}],this._progress=0,this._raf=new $({enabled:!0}),this._raf.on("frame",()=>this._handleUpdate()),this._fetchImages(),this._fetchVideos(),this._fetchResources(),w().onLoad(()=>this.resolveResource(dr))}get resourceContainer(){var t;return(t=this.props.resourceContainer)!==null&&t!==void 0?t:v}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 x(Math.abs(this.props.lerp))}_fetchImages(){if(!this.props.preloadImages)return;let t=Array.from(this.resourceContainer.querySelectorAll("img"));t=t.filter(e=>!tt(e,this.props.ignoreClassName)&&e.loading!=="lazy"),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{pr(e,()=>this.resolveResource(e))})}_fetchVideos(){if(!this.props.preloadVideos)return;let t=Array.from(this.resourceContainer.querySelectorAll("video"));t=t.filter(e=>!tt(e,this.props.ignoreClassName)),this._resources.push(...t.map(e=>({id:e,weight:1,loaded:0}))),t.forEach(e=>{ur(e,()=>this.resolveResource(e))})}_fetchResources(){let t=Array.from(this.resourceContainer.querySelectorAll(this.props.customSelector));t=t.filter(e=>!tt(e,this.props.ignoreClassName)),t.forEach(e=>{let i=parseInt(e.getAttribute("data-weight")||"1",10);i=Number.isNaN(i)?1:x(i,1,1/0);let r={id:e,weight:i,loaded:0};this._resources.push(r),hr(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=x(r,0,i.weight),this.callbacks.emit("resource",i)}_handleUpdate(){var t;let e=this._raf.lerpFactor(this.lerpEase),i=I(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 V({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()}};fr([g],Dt.prototype,"addResource",null);fr([g],Dt.prototype,"resolveResource",null);var nt={x:0,y:0,angle:0},kt=Object.assign(Object.assign({},nt),{time:0}),le=class{constructor(t){this.ctx=t,this._timestamp=0,this._start=Object.assign({},kt),this._prev=Object.assign({},kt),this._current=Object.assign({},kt),this._diff=Object.assign({},kt),this._step=Object.assign({},kt),this._accum=Object.assign({},nt),this._movement=Object.assign({},nt),this._prevMovement=Object.assign({},nt),this._rawMovement=Object.assign({},nt),this._tempAngle={raw:0,unwrapped:0},this._snap={},this._bounds=null,this._scale=1}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 movement(){return this._movement}set movement(t){let e=Object.assign(Object.assign({},this.movement),t);this._movement.x=e.x,this._movement.y=e.y,this._movement.angle=e.angle,this._rawMovement.x=e.x,this._rawMovement.y=e.y,this._rawMovement.angle=e.angle}get prevMovement(){return this._prevMovement}get rawMovement(){return this._rawMovement}get bounds(){return this._bounds?this._bounds:this.calculateBounds()}get overflow(){return this.ctx.props.overflow?Math.abs(this.ctx.props.overflow()):0}get scale(){return this._scale}get coords(){let{timestamp:t,start:e,prev:i,current:r,diff:n,step:o,accum:a,movement:c,prevMovement:l,scale:h}=this;return{timestamp:t,start:e,prev:i,current:r,diff:n,step:o,accum:a,movement:c,prevMovement:l,scale:h}}get snap(){return this._snap}get exceeds(){let{_rawMovement:t,bounds:e}=this;if(!e)return null;let i=0,r=0,n=0;return e.x&&(t.x<e.x[0]?i=t.x-e.x[0]:t.x>e.x[1]&&(i=t.x-e.x[1])),e.y&&(t.y<e.y[0]?r=t.y-e.y[0]:t.y>e.y[1]&&(r=t.y-e.y[1])),e.angle&&(t.angle<e.angle[0]?n=t.angle-e.angle[0]:t.angle>e.angle[1]&&(n=t.angle-e.angle[1])),{x:i,y:r,angle:n}}decode(t){let e=w(),{props:i,container:r}=this.ctx,n=0,o=0;"touches"in t?(n=t.touches[0].clientX,o=t.touches[0].clientY):"type"in t?(n=t.clientX,o=t.clientY):(n=t.x,o=t.y);let a=n,c=o,l=e.width/2,h=e.height/2;if(i.relative){let _=r.getBoundingClientRect();a=n-_.left,c=o-_.top,l=_.left+_.width/2,h=_.top+_.height/2}let u=Math.atan2(o-h,n-l)*180/Math.PI;return{x:a,y:c,angle:u,time:performance.now()}}applyScale(t,e){if(this._scale!==t){if(e){let i=this.decode(e),r=t/this._scale;this.movement={x:i.x-(i.x-this._movement.x)*r,y:i.y-(i.y-this._movement.y)*r}}this._scale=t}}setStart(t){this._tempAngle={raw:t.angle,unwrapped:t.angle},this._timestamp=performance.now(),this._start=Object.assign({},t),this._prev=Object.assign({},t),this._current=Object.assign({},t),this._diff=Object.assign(Object.assign({},nt),{time:0}),this._step=Object.assign(Object.assign({},nt),{time:0}),this._accum=Object.assign({},nt)}syncTempAngle(){this._tempAngle.raw=this._current.angle,this._tempAngle.unwrapped=this._current.angle}update({x:t,y:e,angle:i,time:r},n=!0){let{start:o,ctx:a}=this,c=n?a.props.ratio:1;(a.hasInertia()&&a.recalculateBoundsOnInertia()||!a.hasInertia())&&this.calculateBounds(),this._timestamp=performance.now(),this._prev=Object.assign({},this.current),this._current={x:t,y:e,angle:i,time:r};let{_current:l,_prev:h,overflow:p}=this;this._updateTempAngle(i),l.angle=this._tempAngle.unwrapped,this._step={x:l.x-h.x,y:l.y-h.y,angle:l.angle-h.angle,time:l.time-h.time},this._diff={x:l.x-o.x,y:l.y-o.y,angle:this._diff.angle+this._step.angle,time:l.time-o.time},this._accum={x:this._accum.x+Math.abs(this._step.x),y:this._accum.y+Math.abs(this._step.y),angle:this._accum.angle+Math.abs(this._step.angle)},this._rawMovement={x:this._rawMovement.x+this._step.x*c,y:this._rawMovement.y+this._step.y*c,angle:this._rawMovement.angle+this._step.angle*c},this._prevMovement.x=this._movement.x,this._prevMovement.y=this._movement.y,this._prevMovement.angle=this._movement.angle,this._movement.x=this._applyRubber("x",p),this._movement.y=this._applyRubber("y",p),this._movement.angle=this._applyRubber("angle",p),this._snapMovementAxis("x"),this._snapMovementAxis("y"),this._snapMovementAxis("angle")}_snapMovementAxis(t){var e;let{props:i,hasInertia:r}=this.ctx,n=(e=i.snap)===null||e===void 0?void 0:e.call(i);if(!n){this._snap[t]=void 0;return}let o=n[t];if(!(o!=null&&o.length)){this._snap[t]=void 0;return}let a=this._movement[t],c=ft(a,o),l=i.snapRadius;if(T(l)&&Math.abs(c-a)>Math.abs(l)){this._snap[t]=void 0;return}this._snap[t]=c,r()||(this._movement[t]=c)}calculateBounds(){let{props:t}=this.ctx;if(!t.bounds){this._bounds=null;return}let e=t.bounds(this.coords),i=[-1/0,1/0],r=e!=null&&e.x?[Math.min(...e.x),Math.max(...e.x)]:[...i],n=e!=null&&e.y?[Math.min(...e.y),Math.max(...e.y)]:[...i],o=e!=null&&e.angle?[Math.min(...e.angle),Math.max(...e.angle)]:[...i];return this._bounds={x:r,y:n,angle:o},this._bounds}_updateTempAngle(t){this._tempAngle.unwrapped+=se(t,this._tempAngle.raw),this._tempAngle.raw=t}_applyRubber(t,e){var i;let r=this._rawMovement[t],n=(i=this.bounds)===null||i===void 0?void 0:i[t];if(!n)return r;let[o,a]=n;return r>=o&&r<=a?r:r<o?o-this._rubberDistance(o-r,e):a+this._rubberDistance(r-a,e)}_rubberDistance(t,e){return t<=0||e<=0?0:e*t/(e+t)}};var uo=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},Si={x:0,y:0,angle:0},jt=Object.assign(Object.assign({},Si),{time:0}),vt=.01,xi=.1,ce=class{constructor(t){this.ctx=t,this._velocity=Object.assign({},jt),this._initialVelocity=Object.assign({},jt),this._saveRawMovement=Object.assign({},Si),this._rawMovement=Object.assign({},Si),this._saveStep=Object.assign({},jt),this._saveCurrent=Object.assign({},jt)}get has(){return!!this._raf}release(t){let{ctx:e}=this,{props:i}=e;this._modifiedDistance=void 0,this._saveCurrent=Object.assign({},e.coords.current),this._saveStep=Object.assign({},e.coords.step),this._saveRawMovement=Object.assign({},e.coords.rawMovement),this._rawMovement=Object.assign({},e.coords.rawMovement);let r=this._calcVelocity();if(!r||!T(r.dt)||r.dt<=0)return e.onFail(),!1;let{linearSpeed:n,angularSpeed:o,vx:a,vy:c,va:l,threshold:h}=r;return!T(n)||!T(o)||n<h&&o<h?(e.onFail(),!1):(this._onUpdate=t,this._velocity={x:a,y:c,angle:l,time:performance.now()},this._initialVelocity=Object.assign({},this._velocity),i.inertiaDistanceModifier&&(this._modifiedDistance=i.inertiaDistanceModifier({x:this._predictDistance(a,i.inertiaDecay),y:this._predictDistance(c,i.inertiaDecay),angle:this._predictDistance(l,i.inertiaDecay)})),this._raf=new $({enabled:!0,onFrame:this._handleRaf.bind(this)}),this.ctx.onStart(),!0)}_calcVelocity(){let{_saveCurrent:t,_saveStep:e}=this,i=this.ctx.props,{inertiaRatio:r,ratio:n,maxVelocity:o}=i,a=uo(i,["inertiaRatio","ratio","maxVelocity"]);if(!t||!e)return null;let c=performance.now()-t.time,l=Math.max(e.time,c,1),h=T(r)?r:1,u=(T(n)?n:1)*h,_=o.x?Math.abs(o.x):0,d=e.x/l*u;d=x(d,-_,_);let f=o.y?Math.abs(o.y):0,m=e.y/l*u;m=x(m,-f,f);let b=o.angle?Math.abs(o.angle):0,S=e.angle/l*u;S=x(S,-b,b);let M=Math.hypot(d,m)*1e3,E=Math.abs(S)*1e3,D=a.inertiaThreshold;return{dt:l,vx:d,vy:m,va:S,linearSpeed:M,angularSpeed:E,threshold:D}}_handleRaf(){var t;if(!this._raf)return;let{_raf:e}=this,i=this._raf.duration,{coords:r,props:n}=this.ctx,{_velocity:o,_saveCurrent:a,_saveRawMovement:c,_rawMovement:l,_modifiedDistance:h,_initialVelocity:p}=this,u=i,_=o.x*u,d=o.y*u,f=o.angle*u,m=e.lerpFactor(n.inertiaDecay);if(o.x=I(o.x,0,m),o.y=I(o.y,0,m),o.angle=I(o.angle,0,m),h){let Y=this._getVelocityProgress(o.x,p.x),cn=this._getVelocityProgress(o.y,p.y),hn=this._getVelocityProgress(o.angle,p.angle);l.x=c.x+h.x*Y,l.y=c.y+h.y*cn,l.angle=c.angle+h.angle*hn}else l.x+=_,l.y+=d,l.angle+=f;let b=!1,S=n.inertiaBounceEase,M=S>=1?1:e.lerpFactor(S),{bounds:E}=r;if(E!=null&&E.x){let Y=this._applyAxisBounce("x",l.x,o.x,E.x,M);l.x=Y.value,o.x=Y.velocity,b="bounceFinished"in Y?!0:b}if(E!=null&&E.y){let Y=this._applyAxisBounce("y",l.y,o.y,E.y,M);l.y=Y.value,o.y=Y.velocity,b="bounceFinished"in Y?!0:b}if(E!=null&&E.angle){let Y=this._applyAxisBounce("angle",l.angle,o.angle,E.angle,M);l.angle=Y.value,o.angle=Y.velocity,b="bounceFinished"in Y?!0:b}let D=l.x-c.x,z=l.y-c.y,Q=l.angle-c.angle,N=a.x+D,H=a.y+z,Pt=a.angle+Q;(t=this._onUpdate)===null||t===void 0||t.call(this,{x:N,y:H,angle:Pt});let Ee=Math.hypot(_,d),Pe=Math.abs(f),ji=Ee<xi&&Pe<xi;h&&(ji=Math.abs(D-h.x)<vt&&Math.abs(z-h.y)<vt&&Math.abs(Q-h.angle)<vt),!b&&ji&&(this.ctx.onEnd(),this._clear())}_getVelocityProgress(t,e){if(Math.abs(e)<xi)return 1;let i=1-Math.abs(t/e);return Math.abs(1-i)<vt/10?1:i}_predictDistance(t,e,i=1e3/60){let r=e*60/1e3,n=Math.exp(-r*i);return t*i/(1-n)}_applyAxisBounce(t,e,i,r,n){if(!r.length)return{value:e,velocity:i};let o=this.ctx.coords.snap[t],a=typeof o=="number"?o:Math.min(...r),c=typeof o=="number"?o:Math.max(...r);if(e<a||e>c){let l=x(e,a,c),h=I(e,l,n,vt),p=I(i,0,n,vt);return{value:h,velocity:p,bounceFinished:h===l&&p===0}}return{value:e,velocity:i}}_clear(){var t;(t=this._raf)===null||t===void 0||t.destroy(),this._raf=void 0,this._velocity=Object.assign({},jt)}cancel(){this._raf&&this.ctx.onCancel(),this._clear()}destroy(){this._clear()}};var mr={__staticProp:!0,container:null,thumb:null,buttons:[0],pointers:1,disableUserSelect:!0},_r={__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,bounceDuration:250,overflow:()=>50,inertia:!1,inertiaDecay:.05,inertiaBounceEase:.3,inertiaRatio:1,inertiaThreshold:1,maxVelocity:{x:7,y:7,angle:3},bounds:null,recalculateBoundsOnInertia:!0,snap:null,canBounce:()=>!0,snapRadius:null,inertiaDuration:null,inertiaEasing:null,velocityModifier:null,inertiaDistanceThreshold:null,inertiaDistanceModifier:null};var bt=k?v.createElement("style"):null;bt&&(bt.innerHTML="* { cursor: grabbing !important; }");var he=class{constructor(t){this._ctx=t,this._styles=bt===null||bt===void 0?void 0:bt.cloneNode(!0),this.setInline()}setInline(){let{props:t}=this._ctx,e=t.thumb||t.container,{axis:i,enabled:r,grabCursor:n}=t,{style:o}=e,a=r&&n?"grab":"",c="none";i==="x"?c="pan-y":i==="y"&&(c="pan-x"),o.cursor=a,o.touchAction=c}append(){this._ctx.props.grabCursor&&this._styles&&j.append(this._styles)}remove(){var t;(t=this._styles)===null||t===void 0||t.remove()}};var ht=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),mr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),_r)}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 le({container:i,props:this.props,hasInertia:()=>this.hasInertia,recalculateBoundsOnInertia:()=>this.props.recalculateBoundsOnInertia}),this._styles=new he(this),this._inertia=new ce({props:this.props,coords:this._coords,onStart:()=>{this._coords.syncTempAngle(),this.callbacks.emit("inertiaStart",void 0)},onFail:()=>this.callbacks.emit("inertiaFail",void 0),onCancel:()=>this.callbacks.emit("inertiaCancel",void 0),onEnd:()=>this.callbacks.emit("inertiaEnd",void 0)}),this._pointers=new Ct({container:r||i,buttons:n,minPointers:o,maxPointers:o,relative:!1,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 hasBounce(){return!!this._bounceTm}get isSwiping(){return this._isSwiping}_handleProps(t){super._handleProps(t),this._pointers.updateProps({enabled:this.props.enabled}),this._styles.setInline(),(!this.props.inertia||!this.props.enabled)&&this.cancelInertia(),this.props.enabled||this.cancelBounce()}_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)),this._pointers.on("end",()=>this._handlePointersEnd());let i=y(e,"touchstart",r=>this._handleTouchStart(r),{passive:!1});this.onDestroy(()=>i())}_handleTouchStart(t){this.props.enabled&&(this._preventEdgeSwipe(t),this.callbacks.emit("touchstart",t))}_preventEdgeSwipe(t){let{props:e}=this;if(!e.preventEdgeSwipe)return;let i=e.edgeSwipeThreshold,r=t.targetTouches[0].pageX,n=r<=i||r>=w().width-i;t.cancelable&&n&&(t.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){this.cancelBounce(),this.cancelInertia();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()})}_handlePointersEnd(){this._isSwiping||this.releaseBounce()}_handleTouchMove(t){this.callbacks.emit("touchmove",t),this._isSwiping&&this.props.preventTouchMove&&t.cancelable&&t.preventDefault(),this._handleMove("touch")}_handleMouseMove(t){this.props.requireCtrlKey&&!t.ctrlKey||(this.callbacks.emit("mousemove",t),this._handleMove("mouse"))}_handleMove(t){if(!this._pointers.move||!this.props.enabled)return;let e=this._coords,i=e.decode(this._pointers.move.center);this._isAborted||(this._startCoord||(this._startCoord=Object.assign({},i)),this._startTime||(this._startTime=+Date.now()),!(!this._isSwiping&&!this._canStart(i,t))&&(this._isSwiping||(this.cancelInertia(),this.cancelBounce(),this._isSwiping=!0,this._startCoord=Object.assign({},i),e.setStart(i),this.callbacks.emit("start",this.coords),this._styles.append()),this._move(i)))}_canStart(t,e){let{_startCoord:i,_startTime:r}=this;if(!i||!r)return!1;let{threshold:n,minTime:o,axis:a,willAbort:c}=this.props,l={x:t.x-i.x,y:t.y-i.y},h=l.x,p=l.y;if(Math.sqrt(Math.pow(h,2)+Math.pow(p,2))<n||+new Date-r<o)return!1;if(a){let d=Math.atan2(Math.abs(l.y),Math.abs(l.x))*180/Math.PI;if((a==="x"?d:90-d)>45)return this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0),!1}return c({type:e,state:t,start:i,diff:l})?(this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0),!1):!0}_move(t,e=!0){this._coords.update(t,e),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);let a=!1;this.props.inertia&&(a=this._releaseInertia()),a||this.releaseBounce()}_reset(){this._startCoord=void 0,this._isSwiping=!1}_releaseInertia(){return this._inertia.release(({x:t,y:e,angle:i})=>{this.callbacks.emit("inertia",void 0),this._move({x:t,y:e,angle:i,time:performance.now()},!1)})}releaseBounce(t){this.cancelBounce();let{exceeds:e}=this._coords,i=this.props.canBounce();if(!e||!e.x&&!e.y&&!e.angle||!i)return;let r=Object.assign({},this.current),n=t!=null?t:this.props.bounceDuration,o=new V({duration:n,easing:lt});this._bounceTm=o,this._coords.syncTempAngle(),o.on("update",({eased:a})=>{this._move({x:r.x-e.x*a,y:r.y-e.y*a,angle:r.angle-e.angle*a,time:performance.now()},!1)}),o.on("end",this.cancelBounce.bind(this)),o.play()}cancelInertia(){this._inertia.cancel()}cancelBounce(){var t;(t=this._bounceTm)===null||t===void 0||t.destroy(),this._bounceTm=void 0}calculateBounds(){return this._coords.calculateBounds()}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}get movement(){return this._coords.movement}get scale(){return this._coords.scale}setScale(t,e){this._coords.applyScale(t,e),this._move(Object.assign(Object.assign({},this.current),{time:performance.now()})),this._inertia.has||this.releaseBounce(0)}setMovement(t){this._coords.movement=t,this._move(Object.assign(Object.assign({},this.current),{time:performance.now()})),this.releaseBounce(0)}_destroy(){super._destroy(),this.cancelBounce(),this._pointers.destroy(),this._inertia.destroy(),this._styles.remove()}};var gr={__staticProp:!0,container:k?window:null,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:50},vr={__mutableProp:!0,minSize:50,autoSize:!0};var wt=null;function br(s){return wt||(wt=v.createElement("style"),ee(wt),wt.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
|
-
`,ft)}function Z(s){return typeof s=="object"&&s!==null&&"slides"in s&&"toCoord"in s}var qn=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},ie=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._valueOnSwipeStart=0,this._prevScrollValue=0,this._isRtl=!1,this._isRtl=st(this.parent)==="rtl"&&this.axis==="x",nr(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:Z(e)?e.container:e)}get scrollElement(){return this.container instanceof Window?I:this.container}get scrollSize(){let{scrollElement:t}=this;return Z(t)?t.max-t.min:this.axis==="x"?t.scrollWidth:t.scrollHeight}get scrollableSize(){let{scrollElement:t}=this;return Z(t)?t.max-t.min:this.axis==="x"?this.scrollSize-t.clientWidth:this.scrollSize-t.clientHeight}get scrollValue(){let{axis:t}=this;return Z(this.container)?this.container.loopedCurrent: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(t){super._handleProps(t),this.resize()}_create(){let t=this.container instanceof Window,{scrollElement:e}=this;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"))):e instanceof HTMLElement&&this._addTempClassName(e,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 r.setAttribute("data-scrollbar","true"),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{scrollElement:t}=this;if(Z(t)){let n=t.on("resize",()=>this.resize());this.onDestroy(()=>n());return}let e=()=>{let n=Array.from(t.children);return U({element:[this.track,this.parent,t,...n],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},i=e();i.resize();let r=new MutationObserver(()=>{i.remove(),i=e(),i.debounceResize()});r.observe(t,{childList:!0}),this.onDestroy(()=>{i.remove(),r.disconnect()})}_setOnscroll(){let{container:t}=this;if(Z(t)){let i=t.on("update",()=>this._onScroll());this.onDestroy(()=>i());return}let e=y(t,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let t=new at({container:this.thumb,grabCursor:!0});t.on("start",e=>this._handleSwipeStart(e)),t.on("move",e=>this._handleSwipeMove(e)),t.on("end",e=>this._handleSwipeEnd(e)),t.on("touchmove",e=>this._handleSwipeTouchMove(e)),t.on("mousemove",e=>this._handleSwipeMouseMove(e)),this.onDestroy(()=>t.destroy())}_handleSwipeStart(t){let{container:e}=this;Z(e)?this._valueOnSwipeStart=e.target:this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}_handleSwipeMove(t){this._onSwipeMove(t),this.callbacks.emit("swipe",t)}_handleSwipeEnd(t){this.callbacks.emit("swipeEnd",t)}_handleSwipeTouchMove(t){t.stopPropagation(),t.stopImmediatePropagation()}_handleSwipeMouseMove(t){t.stopPropagation(),t.stopImmediatePropagation()}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),u=p;c&&(u=w(h/(e/h),p,1/0));let{style:v}=n;l?v.width=`${u}px`:v.height=`${u}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=this._isRtl,a=o?Math.abs(t):t,c=w(a/e);o&&(c=1-c);let l=(n-r)*c,h=i==="x"?l:0,p=i==="y"?l:0;this._thumb.style.transform=`translate(${h}px, ${p}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(()=>{tt(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(t){let{scrollElement:e,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,a=this._valueOnSwipeStart,l=(i==="x"?t.diff.x:t.diff.y)/(r-n)*o;if(Z(e)){l=this._isRtl?-l:l;let{min:h,max:p}=e,u=e.max-e.min,v=e.props.loop?e.loopCount:0,f=w(a+l,h+u*v,p+u*v);e.setTarget(f)}else{let h=a+l;e.scrollTo({top:i==="y"?h:void 0,left:i==="x"?h:void 0,behavior:"instant"})}}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};qn([_],ie.prototype,"resize",null);var or={__staticProp:!0,section:null,root:null,optimized:!0,useSvh:!1},ar={__mutableProp:!0};var Qn=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},se=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),or)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),ar)}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=Nt(this._sectionBounds.top,[t,i]),o=Nt(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)}};Qn([_],se.prototype,"update",null);var W=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 re=class extends W{constructor(t){super(t),t.on("update",()=>this._handleUpdate(),{protected:!0}),this.addDestructor(()=>{this._clear()})}get isIdle(){let{snap:t}=this;return!(t.isSwiping||t.isInterpolating||t.isTransitioning)}_handleUpdate(){this._clear(),this._timeout=setTimeout(()=>{this._handleTimeout()},10)}_handleTimeout(){let{snap:t}=this;this.isIdle&&t.callbacks.emit("idle",void 0)}_clear(){this._timeout&&(clearTimeout(this._timeout),this._timeout=void 0)}};var ne=class extends W{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 oe=class extends W{constructor(t){super(t),this.addDestructor(y(t.container,"scroll",()=>this._handleScroll()))}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}};var ae="data-snap-parallax-";function F(s){return`${ae}${s}`}var le=[{name:"transform",types:[{n:F("x"),p:"translateX",u:"px"},{n:F("y"),p:"translateY",u:"px"},{n:F("z"),p:"translateZ",u:"px"},{n:F("scale"),p:"scale",u:"",modifier:s=>s+1},{n:F("scale-x"),p:"scaleX",u:"",modifier:s=>s+1},{n:F("scale-y"),p:"scaleY",u:"",modifier:s=>s+1},{n:F("skew"),p:"skew",u:"deg"},{n:F("skew-x"),p:"skewX",u:"deg"},{n:F("skew-y"),p:"skewY",u:"deg"},{n:F("rotate"),p:"rotate",u:"deg"},{n:F("rotate-x"),p:"rotateX",u:"deg"},{n:F("rotate-y"),p:"rotateY",u:"deg"},{n:F("rotate-z"),p:"rotateZ",u:"deg"}]},{name:"opacity",types:[{n:F("opacity"),p:"opacity",u:"",isAbs:!0,modifier:s=>w(s+1,0,1)}]}],di=Object.values(le).map(({types:s})=>s).flat(),ce=di.map(({n:s})=>s);var he=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&&ce.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,`${ae}scope`,[-1,1]);this._types=di.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=le.find(({types:H})=>H.find(q=>q.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,f=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`,Y=t.hasAttribute(O),V=`${i}-abs`,K=o||t.hasAttribute(V);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:f,value:0,offset:d,min:m,max:E,influence:T,isDirectional:Y,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)}),le.forEach(({name:o})=>{let l=i.filter(h=>h.group===o).map(({value:h,p,u})=>o==="opacity"?`${h}`:`${p}(${h}${u})`).join(" ");e.style[o]=l})}destroy(){this._observer.disconnect(),this._debounceInit&&clearTimeout(this._debounceInit)}};var mt=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 he(t,this,i)),this.element&&this.sizeProp==="auto"&&(this._resizer=U({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=ce.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 pe=class extends W{constructor(t){super(t),this._startIndex=t.activeIndex,this._startTime=0;let e=new at(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=(e.max-e.min)*(l/360));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.render(),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 ui,lr={__staticProp:!0,container:null,eventsEmitter:null,activeIndex:0},cr={__mutableProp:!0,slides:!1,containerSize:"auto",slidesToScroll:1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:!((ui=b())===null||ui===void 0)&&ui.mobile?1:.3,freemode:!1,rewind:!1,stickOnResize:!0,friction:0,edgeFriction:.7,duration:500,easing:nt,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"},_t=1e-6;var de=class extends W{constructor(t){super(t),this._influence={current:0,target:0},this._current=0,this._target=0,this._raf=new X,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()}setTarget(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 u=1-J(n,-h,i);n=i-u*p}else if(n>r){let u=J(n,r,r+h);n=r+u*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,_t),a.target=C(a.target,0,o,_t),a.current=C(a.current,a.target,o,_t)}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,u=j(p)?p:p(h);h===0&&(u=0);let v=(r=e==null?void 0:e.easing)!==null&&r!==void 0?r:o.easing,f=new L({duration:u,easing:v});return this._timeline=f,f.on("start",()=>{var d;a.emit("timelineStart",void 0),(d=e==null?void 0:e.onStart)===null||d===void 0||d.call(e)}),f.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)}),f.on("end",()=>{var d;f.destroy(),a.emit("timelineEnd",void 0),(d=e==null?void 0:e.onEnd)===null||d===void 0||d.call(e)}),f.on("destroy",()=>{n.$_targetIndex=void 0}),f.play(),!0}};var fi=6,ue=class extends W{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=Ie(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,u=Math.min(...a.magnets),v=Math.max(...a.magnets),f=i.loopCoord(i.target),d=w(f+p,u,v);i.target=i.target+d-f,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>=fi&&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<fi)return!1;let r=e.slice(-fi),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 _i=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},mi=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},gt=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),lr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),cr)}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=U({element:i,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizer.debounceResize(),this._fetchSlides(),new ue(this),this._swipe=new pe(this),this._track=new de(this),new oe(this),new ne(this),this._idle=new re(this)}_handleProps(t){"slides"in t&&this._fetchSlides(),this._resizer.resize(),super._handleProps(t)}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(){let t=this._track;return Math.abs(t.target-t.current)>_t}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)}setTarget(t){this._track.setTarget(t)}cancelTransition(){this._track.cancelTransition()}get isSlideScrolling(){let{containerSize:t}=this;return this.scrollableSlides.some(({size:e,coord:i})=>oi(i,t-e,0))}get firstSlideSize(){return this.slides[0].size}get isIdle(){return this._idle.isIdle}_fetchSlides(){let{props:t}=this;this._slides.forEach(r=>r.$_detach());let i=(t.slides?t.slides:Array.from(t.container.children)).filter(r=>!(r instanceof HTMLElement&&r.hasAttribute("data-scrollbar")));this._slides=i.map(r=>r instanceof mt?r:new mt(r)),this._slides.forEach((r,n)=>r.$_attach(this,n))}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&&(Qt(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=Ae(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=mi(e,["direction"]);let{isEmpty:a,activeIndex:c,slides:l,_track:h,props:p}=this,{current:u,max:v,loopCount:f}=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+f*v,T=P-v,O=P+v,Y=[T,P,O];if(ht(n)){let K=Y.filter(q=>n==="next"?q>=u:q<=u),H=Dt(u,K);return this.toCoord(H,o)}let V=Dt(u,Y);return this.toCoord(V,o)}next(t={}){var{skip:e=this.props.slidesToScroll}=t,i=mi(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=mi(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())}};_i([_],gt.prototype,"resize",null);_i([_],gt.prototype,"render",null);_i([_],gt.prototype,"toCoord",null);var hr=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}),pr={__mutableProp:!0};function dr(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 jr=Si(Dr());function fe(s,t){return t?ht(t)?s.matches(t):typeof t=="function"?t(s):t.includes(s):!1}function zr({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(fe(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let c=a.textContent;if(!c)return;(0,jr.default)(c,"").forEach(h=>{let p=n.cloneNode(!1);p.appendChild(g.createTextNode(h)),o.element.insertBefore(p,a);let u={element:p};o.letters.push(u),r.push(u)}),a.remove()}),{lettersMeta:r}}function Lr({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(u){var v,f;if(u instanceof HTMLElement||u instanceof DocumentFragment){if("tagName"in u&&u.tagName!=="BR"){if(fe(u,i)){h?h.append(u):l.push({element:u,letters:[]});return}u.style.display="inline-block"}h=null,[...Array.from(u.childNodes)].forEach(m=>p(m));return}if(u.nodeType===3){let d=(v=u.parentElement)!==null&&v!==void 0?v:s,m=(f=u.nodeValue)!==null&&f!==void 0?f:"";if(m===n){h=null,d==null||d.insertBefore(g.createTextNode(a),u),u.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,u)}T<E.length-1&&(d==null||d.insertBefore(g.createTextNode(a),u))}),u.remove()}}return p(s),l}var ko=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 Br(s){var{container:t,letterClassName:e,wordClassName:i,hasLetters:r,letterTag:n,wordTag:o,ignore:a}=s,c=ko(s,["container","letterClassName","wordClassName","hasLetters","letterTag","wordTag","ignore"]);let l=g.createDocumentFragment();for(;t.childNodes[0];)l.appendChild(t.childNodes[0]);let h=Lr(Object.assign(Object.assign({},c),{container:l,classname:i,tagName:o,ignore:a})),p=[];if(r){let u=zr({wordsMeta:h,classname:e,tagName:n,ignore:a});p.push(...u.lettersMeta)}return t.appendChild(l),{wordsMeta:h,lettersMeta:p}}function Nr(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 $r(s,t){var e;return s!=null&&s.parentElement?s.parentElement===t?s:$r((e=s==null?void 0:s.parentElement)!==null&&e!==void 0?e:null,t):null}function Wr(s,t){return s===t?!0:s!==null?Wr(s.parentNode,t):!1}function Fr({container:s,hasLinesWrapper:t,wordsMeta:e,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=Nr(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(f=>f.element.getBoundingClientRect());e.forEach((f,d)=>{var m;let E=p[d],P=$r(f.element,s);if(!P)return;let T=l&&E.top>l.top,O=l&&E.left>=l.left,Y=l&&E.left<=l.left;if(!l||T&&Y&&o==="left"||T&&O&&o==="right"||T&&o==="center"){c+=1;let H=h.cloneNode(!1),q;t&&(q=g.createElement(n),q.style.display="block",S(q,r),q.appendChild(H)),a[c]={element:H,wrapper:q,nodes:[],words:[]}}l=E;let V=a[c];!!a.find(({nodes:H})=>H.includes(P))||(V.nodes.push(P),((m=P.nextSibling)===null||m===void 0?void 0:m.nodeType)===3&&V.nodes.push(P.nextSibling))}),a.forEach(f=>{var d;s.insertBefore((d=f.wrapper)!==null&&d!==void 0?d:f.element,f.nodes[0]);let m=g.createDocumentFragment();m.append(...f.nodes),f.element.append(m)});let u=[];return a.forEach(f=>{var d;let m=((d=f.wrapper)!==null&&d!==void 0?d:f.element).nextElementSibling;m instanceof HTMLBRElement&&(m.style.display="none",u.push(m))}),a.forEach(f=>{f.words.push(...e.filter(d=>Wr(d.element,f.element)))}),{linesMeta:a,destroy:()=>{let f=!0;return u.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):f=!1}),d.element.remove(),(m=d.wrapper)===null||m===void 0||m.remove()}),f}}}var Do=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},me=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),hr(this.prefix))}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),pr)}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=dr(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=U({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}=Br({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=Fr({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()}}};Do([_],me.prototype,"split",null);var Vr=R?b():void 0,jo=Vr;return Gr(zo);})();
|
|
177
|
+
`,wt)}function Z(s){return typeof s=="object"&&s!==null&&"slides"in s&&"toCoord"in s}var fo=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 P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),gr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),vr)}constructor(t,e){super(t,e),this._valueOnSwipeStart=0,this._prevScrollValue=0,this._isRtl=!1,this._isRtl=rt(this.parent)==="rtl"&&this.axis==="x",br(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),O(this.outer,this._cn("_inited"))}get prefix(){return`${w().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?j:Z(e)?e.container:e)}get scrollElement(){return this.container instanceof Window?C:this.container}get scrollSize(){let{scrollElement:t}=this;return Z(t)?t.max-t.min:this.axis==="x"?t.scrollWidth:t.scrollHeight}get scrollableSize(){let{scrollElement:t}=this;return Z(t)?t.max-t.min:this.axis==="x"?this.scrollSize-t.clientWidth:this.scrollSize-t.clientHeight}get scrollValue(){let{axis:t}=this;return Z(this.container)?this.container.loopedCurrent: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(t){super._handleProps(t),this.resize()}_create(){let t=this.container instanceof Window,{scrollElement:e}=this;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(C,this._cn("-scrollable")),this._addTempClassName(j,this._cn("-scrollable"))):e instanceof HTMLElement&&this._addTempClassName(e,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let t=this._cn.bind(this),{props:e,axis:i}=this,r=v.createElement("div");return r.setAttribute("data-scrollbar","true"),O(r,t("")),O(r,t(`_${i}`)),e.class&&O(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=v.createElement("div");return O(i,t("__track")),O(i,t(`__track_${e}`)),i}_createThumb(){let t=this._cn.bind(this),e=v.createElement("div");return O(e,t("__thumb")),O(e,t(`__thumb_${this.axis}`)),e}_setResize(){let{scrollElement:t}=this;if(Z(t)){let n=t.on("resize",()=>this.resize());this.onDestroy(()=>n());return}let e=()=>{let n=Array.from(t.children);return q({element:[this.track,this.parent,t,...n],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},i=e();i.resize();let r=new MutationObserver(()=>{i.remove(),i=e(),i.debounceResize()});r.observe(t,{childList:!0}),this.onDestroy(()=>{i.remove(),r.disconnect()})}_setOnscroll(){let{container:t}=this;if(Z(t)){let i=t.on("update",()=>this._onScroll());this.onDestroy(()=>i());return}let e=y(t,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let t=new ht({container:this.thumb,grabCursor:!0});t.on("start",e=>this._handleSwipeStart(e)),t.on("move",e=>this._handleSwipeMove(e)),t.on("end",e=>this._handleSwipeEnd(e)),t.on("touchmove",e=>this._handleSwipeTouchMove(e)),t.on("mousemove",e=>this._handleSwipeMouseMove(e)),this.onDestroy(()=>t.destroy())}_handleSwipeStart(t){let{container:e}=this;Z(e)?this._valueOnSwipeStart=e.target:this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}_handleSwipeMove(t){this._onSwipeMove(t),this.callbacks.emit("swipe",t)}_handleSwipeEnd(t){this.callbacks.emit("swipeEnd",t)}_handleSwipeTouchMove(t){t.stopPropagation(),t.stopImmediatePropagation()}_handleSwipeMouseMove(t){t.stopPropagation(),t.stopImmediatePropagation()}resize(){let{scrollableSize:t,scrollSize:e,outer:i,track:r,thumb:n,props:o,axis:a}=this,{autoSize:c}=o,l=a==="x";B(i,this._cn("_empty"),t===0);let h=l?r.offsetWidth:r.offsetHeight,p=A(o.minSize),u=p;c&&(u=x(h/(e/h),p,1/0));let{style:_}=n;l?_.width=`${u}px`:_.height=`${u}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=this._isRtl,a=o?Math.abs(t):t,c=x(a/e);o&&(c=1-c);let l=(n-r)*c,h=i==="x"?l:0,p=i==="y"?l:0;this._thumb.style.transform=`translate(${h}px, ${p}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(()=>{tt(e,i)||(O(e,i),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=t,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{G(e,i),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove(t){let{scrollElement:e,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,a=this._valueOnSwipeStart,l=(i==="x"?t.diff.x:t.diff.y)/(r-n)*o;if(Z(e)){l=this._isRtl?-l:l;let{min:h,max:p}=e,u=e.max-e.min,_=e.props.loop?e.loopCount:0,d=x(a+l,h+u*_,p+u*_);e.setTarget(d)}else{let h=a+l;e.scrollTo({top:i==="y"?h:void 0,left:i==="x"?h:void 0,behavior:"instant"})}}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};fo([g],pe.prototype,"resize",null);var wr={__staticProp:!0,section:null,root:null,optimized:!0,useSvh:!1},yr={__mutableProp:!0};var mo=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},ue=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),wr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),yr)}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=w(),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=Yt(this._sectionBounds.top,[t,i]),o=Yt(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)}};mo([g],ue.prototype,"update",null);var K=class{constructor(t){this._snap=t,this._destructors=[],t.on("destroy",()=>this._destroy(),{protected:!0})}get props(){return this._snap.props}get container(){return this._snap.container}get callbacks(){return this._snap.callbacks}get isSwiping(){return this._snap.isSwiping}get isWheeling(){return this._snap.isWheeling}get hasInertia(){return this._snap.hasInertia}get isInterpolating(){return this._snap.isInterpolating}get isTransitioning(){return this._snap.isTransitioning}get eventsEmitter(){return this._snap.eventsEmitter}get snapAxis(){return this._snap.axis}get track(){return this._snap.$track}get isSlideScrolling(){return this._snap.isSlideScrolling}get containerSize(){return this._snap.containerSize}get activeSlide(){return this._snap.activeSlide}get activeIndex(){return this._snap.activeIndex}get slides(){return this._snap.slides}get isDestroyed(){return this._snap.isDestroyed}get scrollableSlides(){return this._snap.scrollableSlides}addDestructor(t){this._destructors.push(t)}_destroy(){this._destructors.forEach(t=>t())}next(){return this._snap.next()}prev(){return this._snap.prev()}stick(){return this._snap.stick()}getNearestMagnet(t){return this._snap.getNearestMagnet(t)}};var Ei,xr={__staticProp:!0,container:null,eventsEmitter:null,activeIndex:0},Sr={__mutableProp:!0,slides:!1,containerSize:"auto",slidesToScroll:1,direction:"horizontal",centered:!1,origin:"start",loop:!1,gap:0,lerp:!((Ei=w())===null||Ei===void 0)&&Ei.mobile?1:.3,freemode:!1,rewind:!1,stickOnResize:!0,friction:0,edgeFriction:.7,duration:600,easing:lt,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:null,swipeInertiaRatio:1,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto",interval:null,intervalDirection:"next"},yt=1e-6,Er=200,Pr=200;var de=class extends K{constructor(t){super(t),this.callbacks.on("update",()=>this._handleUpdate(),{protected:!0}),this.addDestructor(()=>this._clear())}get isIdle(){return!this.isSwiping&&!this.hasInertia&&!this.isInterpolating&&!this.isTransitioning&&!this.isWheeling}_handleUpdate(){this._clear();let t=Math.max(Pr,Er)+10;this._timeout=setTimeout(()=>this._handleTimeout(),t)}_handleTimeout(){this.isIdle&&this.callbacks.emit("idle",void 0)}_clear(){this._timeout&&(clearTimeout(this._timeout),this._timeout=void 0)}};var fe=class extends K{constructor(t,e,i){super(t),this._onPrev=e,this._onNext=i,this.callbacks.on("update",()=>this._handleUpdate(),{protected:!0}),this.addDestructor(()=>this._clearInterval())}get allowInterval(){return!this.isSwiping&&!this.hasInertia&&!this.isTransitioning&&!this.isInterpolating&&T(this.props.interval)}_handleUpdate(){if(!this.allowInterval){this._clearInterval();return}this._interval||(this._interval=setInterval(()=>this._handleInterval(),this.props.interval))}_handleInterval(){this.props.intervalDirection==="prev"?this._onPrev():this._onNext()}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=void 0)}};var me=class extends K{constructor(t){super(t),this.addDestructor(y(t.container,"scroll",()=>this._handleScroll()))}_handleScroll(){this.container.scrollTo({top:0,left:0,behavior:"instant"})}};var Pi="data-snap-parallax-";function L(s){return s.startsWith(Pi)?s:`${Pi}${s}`}function Or(s){return s.startsWith(Pi)}function _e(s,t){var e;return((e=s.getAttribute(L(t)))!==null&&e!==void 0?e:"").trim()}function pt(s,t,e){let i=_e(s,t),r=parseFloat(i);return Number.isNaN(r)?e:r}var ge=[{prop:"transform",types:[{attr:L("x"),prop:"translateX",unit:"px"},{attr:L("y"),prop:"translateY",unit:"px"},{attr:L("z"),prop:"translateZ",unit:"px"},{attr:L("scale"),prop:"scale",unit:"",modifier:s=>s+1},{attr:L("scale-x"),prop:"scaleX",unit:"",modifier:s=>s+1},{attr:L("scale-y"),prop:"scaleY",unit:"",modifier:s=>s+1},{attr:L("skew"),prop:"skew",unit:"deg"},{attr:L("skew-x"),prop:"skewX",unit:"deg"},{attr:L("skew-y"),prop:"skewY",unit:"deg"},{attr:L("rotate"),prop:"rotate",unit:"deg"},{attr:L("rotate-x"),prop:"rotateX",unit:"deg"},{attr:L("rotate-y"),prop:"rotateY",unit:"deg"},{attr:L("rotate-z"),prop:"rotateZ",unit:"deg"}]},{prop:"opacity",types:[{attr:L("opacity"),prop:"opacity",unit:"",isAbs:!0,modifier:s=>x(s+1,0,1)}]}],Oi=ge.map(({types:s})=>s).flat(),Mr=Oi.map(({attr:s})=>s);var ve=class{constructor(t,e,i){this._slide=t,this._element=e,this._getImpulse=i,this._items=[],this._debounceInit=null,this._initDebounce(),this._observer=new MutationObserver(r=>{r.forEach(({attributeName:n})=>{n&&Or(n)&&this._initDebounce()})}),this._observer.observe(this._element,{attributes:!0})}_initDebounce(){this._debounceInit&&clearTimeout(this._debounceInit),this._debounceInit=setTimeout(()=>this._init(),16)}_init(){this._fetchItems(),this.render()}_fetchItems(){let t=this._element,e=this._getScope(this._element,"scope",[-1,1]),i=Oi.filter(({attr:r})=>t.hasAttribute(r));this._items=i.map(({attr:r,prop:n,unit:o,isAbs:a,modifier:c})=>{var l;let h=ge.find(({types:Ee})=>Ee.find(Pe=>Pe.attr===r)),p=`${r}-scope`,u=t.hasAttribute(p)?this._getScope(t,p,[-1,1]):e,d=_e(t,r).replace(/[-\d.]+/g,"")||o,f=pt(t,r,0),m=pt(t,`${r}-offset`,0),b=pt(t,`${r}-min`,-1/0),S=pt(t,`${r}-max`,1/0),M=`${r}-impulse`,E=t.hasAttribute(M)?pt(t,M,1):0,D=`${r}-influence`,z=t.hasAttribute(D)?pt(t,D,1):0,Q=`${r}-directional`,N=t.hasAttribute(Q),H=`${r}-abs`,Pt=a||t.hasAttribute(H);return{attr:r,prop:n,unit:d,group:(l=h==null?void 0:h.prop)!==null&&l!==void 0?l:"",modifier:c,scope:u,progress:0,target:f,value:0,offset:m,min:b,max:S,impulse:E||z,isDirectional:N,isAbs:Pt}})}_getScope(t,e,i){let r=_e(t,e),n=r.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{_element:t,_items:e,_slide:i}=this,r=this._getImpulse(),n=i.progress;e.forEach(o=>{let a=x(n,...o.scope);Math.abs(o.impulse)>0&&(a*=Math.abs(r)*o.impulse),o.isDirectional&&(a=Math.abs(a)*Math.sign(r)),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=x(o.value,o.min,o.max)}),ge.forEach(({prop:o})=>{let l=e.filter(h=>h.group===o).map(({value:h,prop:p,unit:u})=>o==="opacity"?`${h}`:`${p}(${h}${u})`).join(" ");t.style[o]=l})}destroy(){this._observer.disconnect(),this._debounceInit&&clearTimeout(this._debounceInit)}};var xt=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,size:null};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 ctx(){return this._ctx}get props(){return this._props}get sizeProp(){var t,e,i;return(i=(t=this.props.size)!==null&&t!==void 0?t:(e=this.ctx)===null||e===void 0?void 0:e.props.slideSize)!==null&&i!==void 0?i:"auto"}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 size(){var t;let{ctx:e,sizeProp:i}=this;return e?i==="stretch"?e.containerSize:i==="auto"?(t=this._domSize)!==null&&t!==void 0?t:e.containerSize:A(i):0}get isVisible(){return this._isVisible}resize(t=!0){let{element:e,ctx:i}=this;i&&(e&&(this._domSize=i.axis==="x"?e.offsetWidth:e.offsetHeight),i.resize(t))}$_attach(t,e){this.$_detach(),this._ctx=t,this._index=e,this._parallax=this._getParallaxNodes().map(i=>new ve(this,i,()=>t.impulse)),this.element&&this.sizeProp==="auto"&&(this._resizer=q({element:this.element,viewportTarget:"width",callback:()=>this.resize(!1),name:"Snap Slide"}))}$_detach(){var t,e;this._ctx=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=Mr.map(r=>`[${r}]`).join(","),i=t.querySelectorAll(e);return Array.from(i)}_toggleAppend(){if(!this.props.virtual||!this.element||!this.ctx)return;let{element:t,ctx:e}=this;this.isVisible&&!this._isAppended?(this._isAppended=!0,e.container.appendChild(t)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,e.container.removeChild(t))}get magnets(){if(!this.ctx)return[];let{ctx:t,staticCoord:e,size:i,index:r}=this,{containerSize:n,origin:o}=t,a=[];if(r===0&&t.props.loop&&a.push(t.max),o==="center"){let c=e+i/2-t.firstSlideSize/2;i>n?(a.push(c),a.push(c+(n-i)/2),a.push(c-(n-i)/2)):a.push(c)}else if(o==="end"){let c=e+i-t.firstSlideSize;a.push(c),i>n&&a.push(c+(n-i))}else a.push(e),i>n&&a.push(e+(i-n)),t.canLoop||(a=a.map(c=>x(c,0,t.max)));return a}$_updateProgress(){let{ctx:t}=this;if(!t)return;let{coord:e,size:i}=this,{containerSize:r,origin:n}=t;if(n==="center"){let o=r/2-i/2;this._progress=at(e,o,o-i);return}if(n==="end"){let o=r-i;this._progress=at(e,o,o-i);return}this._progress=at(e,0,-i)}$_updateCoords(t){let{ctx:e}=this;if(!e)return;let{staticCoord:i,size:r}=this,{origin:n}=e;if(!e.canLoop){this._setCoord(i+t-e.current);return}if(n==="center"){this._setCoord(F(i+t-e.current,-e.max/2+t,e.max/2+t));return}if(n==="end"){this._setCoord(F(i+t-e.current,-r,e.max-r));return}this._setCoord(F(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.ctx)===null||e===void 0?void 0:e.containerSize)!==null&&i!==void 0?i:0)}};var be=class extends K{constructor(t){super(t),this._startIndex=t.activeIndex,this._startTime=0;let e=new ht(Object.assign({container:this.eventsEmitter,inertia:!1,inertiaThreshold:3,recalculateBoundsOnInertia:!1,overflow:()=>t.containerSize*(1-t.props.edgeFriction),canBounce:()=>!this.isTransitioning,bounds:this._getBounds.bind(this),inertiaDistanceModifier:this._modifyInertiaDistance.bind(this)},this.swipeProps));this.swipe=e,this.addDestructor(()=>e.destroy()),e.on("start",i=>this._handleStart(i)),e.on("move",i=>this._handleMove(i)),e.on("end",i=>this._handleEnd(i)),e.on("inertiaStart",()=>this._handleInertiaStart()),e.on("inertiaEnd",()=>this._handleInertiaEnd()),e.on("inertiaFail",()=>this._handleInertiaFail()),e.on("inertiaCancel",()=>this._handleInertiaCancel()),this.callbacks.on("props",()=>e.updateProps(this.swipeProps),{protected:!0})}get swipeProps(){let{props:t}=this;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,inertiaRatio:t.swipeInertiaRatio}}get axis(){let{props:t,snapAxis:e}=this;return t.swipeAxis==="auto"?e:t.swipeAxis}get isShort(){let{props:t}=this;return t.shortSwipes?+new Date-this._startTime<=t.shortSwipesDuration:!1}get diff(){return this.swipe.diff[this.axis]*Math.sign(this.props.swipeSpeed)}get isStickyFreemode(){return this.props.freemode==="sticky"&&this.axis!=="angle"}get isSwiping(){return this.swipe.isSwiping}get hasInertia(){return this.swipe.hasInertia}get allowFriction(){return!this.isShort&&this.props.swipeFriction}_getBounds(){let{freemode:t,loop:e}=this.props,{isSlideScrolling:i,track:r}=this;if(!t&&i){let{activeSlide:n,containerSize:o,track:a}=this,{staticCoord:c,size:l}=n,h=Math.abs(a.max-a.min)*a.loopCount;return{[this.axis]:[-c-a.offset-h,-c-(l-o)-h-a.offset]}}return e?null:{[this.axis]:[-r.min,-r.max]}}_modifyInertiaDistance(t){let{track:e}=this,i=e.loopCoord(e.target),r=i-t[this.axis],n=this.getNearestMagnet(r);if(!this.isStickyFreemode||!e.canLoop&&(e.target<e.min||e.target>e.max)||!n)return null;let o=i-r-n.diff;return Object.assign(Object.assign({},t),{[this.axis]:o,angle:0})}_handleStart(t){let{eventsEmitter:e,props:i,activeIndex:r,callbacks:n}=this;this._startIndex=r,this._startTime=+new Date,e.style.pointerEvents="none",i.followSwipe&&this.track.cancelTransition(),this.swipe.setMovement({x:-this.track.target,y:-this.track.target}),n.emit("swipeStart",t)}_handleMove(t){let{track:e,axis:i,props:r,callbacks:n}=this;if(!r.followSwipe)return;let o=t.prevMovement[i]-t.movement[i];i==="angle"&&(o=(e.max-e.min)*(o/360)),e.updateTarget(e.target+o),n.emit("swipe",t)}_handleEnd(t){this._end(),this.eventsEmitter.style.pointerEvents="",this.callbacks.emit("swipeEnd",t)}_handleInertiaStart(){this.callbacks.emit("swipeInertiaStart",void 0)}_handleInertiaEnd(){this.callbacks.emit("swipeInertiaEnd",void 0)}_handleInertiaFail(){this.callbacks.emit("swipeInertiaFail",void 0),this.isStickyFreemode&&this.stick()}_handleInertiaCancel(){this.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{swipe:t,props:e}=this;if(t.updateProps({inertia:!1}),!e.followSwipe){this._endNoFollow();return}if(e.freemode){if(this.isStickyFreemode&&this.isShort&&!this.isSlideScrolling){this._endShort();return}t.updateProps({inertia:!0});return}if(this.isSlideScrolling){t.updateProps({inertia:!0});return}if(t.updateProps({inertia:!1}),this.isShort){this._endShort();return}this.stick()}_endNoFollow(){let{diff:t}=this;if(Math.abs(t)<20){this.stick();return}t<0?this.next():this.prev()}_endShort(){let{diff:t,activeIndex:e,props:i,activeSlide:r}=this;if(Math.abs(t)<i.shortSwipesThreshold){this.stick();return}let n=Math.sign(t);if(this._startIndex!==e){n<0&&r.progress>0?this.next():n>0&&r.progress<0?this.prev():this.stick();return}n<0?this.next():this.prev()}};var Mi=6,we=class extends K{constructor(t){super(t),this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0;let e=y(this.eventsEmitter,"wheel",i=>this._handleWheel(i));this.addDestructor(()=>{e(),this._debounceEnd&&clearTimeout(this._debounceEnd)})}get isWheeling(){return this._hasStarted}get absDeltas(){return this._deltas.map(t=>Math.abs(t))}_handleWheel(t){let{props:e,snapAxis:i}=this;if(!e.wheel)return;t.preventDefault();let r=Ne(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.callbacks.emit("wheelStart",void 0))}_handleMove(t,e){this._hasStarted&&(this._addDelta(t),this.props.followWheel?this._handleFollow(t):this._handleNoFollow(t),this.callbacks.emit("wheel",e))}_handleFollow(t){let{track:e,props:i}=this;e.cancelTransition(),e.updateTarget(e.target+t*i.wheelSpeed),e.clampTarget()}_handleNoFollow(t){let{track:e,isTouchPad:i,isGainingDelta:r,props:n,activeSlide:o}=this,a=t*n.wheelSpeed;if(this._detectNoFollowThrottle())return;let c=!1,l=!0;if(c||this.isSlideScrolling&&(o.coord===0?a>0&&(c=!0):o.coord===this.containerSize-o.size?a<0&&(c=!0):(c=!0,l=!1)),l){if(!i||i&&(r||this.absDeltas.length===1)){let h=Math.sign(a);if(c)e.cancelTransition(),e.updateTarget(e.target+h),e.clampTarget(),i||(e.current=e.target);else if(h===1){if(!n.loop&&this.activeIndex===this.slides.length-1&&!n.rewind)return;this._lastWheelTime=+new Date,this.next()}else{if(!n.loop&&this.activeIndex===0&&!n.rewind)return;this._lastWheelTime=+new Date,this.prev()}}return}if(c){e.cancelTransition();let h=a,p=Math.min(...o.magnets),u=Math.max(...o.magnets),_=e.loopCoord(e.target),d=x(_+h,p,u);e.target=e.target+d-_,e.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:t,scrollableSlides:e,isTransitioning:i}=this,{wheelThrottle:r}=this.props,n=+new Date-this._lastWheelTime;return R(r)?n<r:t?i:!!(e.filter(a=>a.isVisible).length&&i||n<500)}_handleEnd(){if(!this._hasStarted)return;let{props:t,activeSlide:e,isSlideScrolling:i,isTransitioning:r}=this,n=this._deltas.slice(-3).reduce((o,a)=>o+a,0);if(this._deltas=[],this._hasStarted=!1,!t.freemode||t.freemode==="sticky")if(t.followWheel&&t.stickOnWheelEnd){let o=et(Math.abs(t.stickOnWheelEndThreshold)/e.size);e.progress>o&&!i&&n>0?this.next():e.progress<-o&&!i&&n<0?this.prev():this.stick()}else!t.followWheel&&!r&&this.stick();this.callbacks.emit("wheelEnd",void 0)}_addDelta(t){this._deltas.length>=Mi&&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=w(),e=this.absDeltas,i=t.osName.includes("window")?1.5:1.2;if(e.length<Mi)return!1;let r=e.slice(-Mi),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 ye=class{constructor(t,e,i){this.props=t,this._slides=e,this.ctx=i,this._impulse={current:0,target:0},this._current=0,this._target=0,this._isDestroyed=!1,this._raf=new $,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>{var r;return(r=i.onRafPlay)===null||r===void 0?void 0:r.call(i)}),this._raf.on("pause",()=>{var r;return(r=i.onRafPause)===null||r===void 0?void 0:r.call(i)})}get slides(){return this._slides()}get targetIndex(){return this._targetIndex}get impulse(){return this._impulse.current}get current(){return this._current}set current(t){this._current=t}get target(){return this._target}set target(t){let e=this.ctx.containerSize(),i=t-this._target;this._target=t,this._impulse.target+=e?et(i/e):0,this._impulse.target=x(this._impulse.target,-1,1)}get canLoop(){let{props:t,slides:e}=this;return t.loop&&e.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{ctx:t}=this,e=t.origin(),i=t.containerSize(),r=t.firstSlideSize();return e==="center"?i/2-r/2:e==="end"?i-r:0}get loopCount(){return this.canLoop?Math.floor(et(this.current/this.max)):0}get isTransitioning(){return!!this._tm}get min(){let t=this.ctx.containerSize(),e=this.ctx.origin(),i=this.slides[0];return this.canLoop?0:e==="center"&&i.size>t?t/2-i.size/2:e==="end"&&i.size>t?t-i.size:0}get max(){let t=this.ctx.containerSize(),e=this.ctx.origin(),{slides:i,canLoop:r,props:n}=this,o=i[0],a=i[i.length-1],c=a.staticCoord+a.size,l=r?c+A(n.gap):c-t;return r||(e==="center"&&(l+=t/2-o.size/2,a.size<t&&(l+=t/2-a.size/2)),e==="end"&&(l+=t-o.size),e==="start"&&(l=Math.max(l,0))),l}get progress(){return et(this.current/this.max)}get isStart(){return this.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}get isInterpolated(){return this.current===this.target&&this._impulse.current===0}_handleRaf(){let{isTransitioning:t,props:e,_raf:i}=this;if(t)return;let r=i.lerpFactor(e.lerp);this._lerp(r),this.isInterpolated&&i.pause(),this.ctx.onRender(i.duration)}awake(){this._raf.play()}updateTarget(t){this.target=t,this.awake()}clampTarget(){this.canLoop||(this.target=x(this.target,this.min,this.max)),this.awake()}set(t){this.current=t,this.target=t,this._impulse.current=0,this._impulse.target=0}loopCoord(t){return this.canLoop?F(t,this.min,this.max):t}_lerp(t){let{target:e,_impulse:i}=this,r=t,n=Math.abs(this.current-e),o=3;if(n<o){let a=1-n/o,c=(1-r)/15;r+=c*a}this.current=I(this.current,e,r,yt),i.target=I(i.target,0,r,yt),i.current=I(i.current,i.target,r,yt)}toCoord(t,e){var i,r;if(this._isDestroyed)return!1;let{props:n,ctx:o}=this;this.cancelTransition();let a=this.current,c=t,l=Math.abs(c-a),h=(i=e==null?void 0:e.duration)!==null&&i!==void 0?i:n.duration,p=R(h)?h:h(l);l===0&&(p=0);let u=(r=e==null?void 0:e.easing)!==null&&r!==void 0?r:n.easing,_=new V({duration:p,easing:u});return this._tm=_,_.on("start",()=>{var d;o.onTimelineStart(),(d=e==null?void 0:e.onStart)===null||d===void 0||d.call(e)}),_.on("update",d=>{var f;this.current=I(a,c,d.eased),this.target=this.current,this._impulse.current=this._impulse.current*(1-d.progress),this._impulse.target=this._impulse.current,d.progress===1&&(this.setTargetIndex(void 0),this._tm=void 0),o.onTimelineUpdate(d),o.onRender(),(f=e==null?void 0:e.onUpdate)===null||f===void 0||f.call(e,d)}),_.on("end",()=>{var d;_.destroy(),o.onTimelineEnd(),(d=e==null?void 0:e.onEnd)===null||d===void 0||d.call(e)}),_.on("destroy",()=>{this.setTargetIndex(void 0)}),_.play(),!0}setTargetIndex(t){this._targetIndex=t}cancelTransition(){var t;(t=this._tm)===null||t===void 0||t.destroy(),this._tm=void 0}destroy(){this._isDestroyed=!0,this._raf.destroy(),this.cancelTransition()}};var Ii=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},Ti=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},St=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),xr)}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Sr)}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=q({element:i,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizer.debounceResize(),this._fetchSlides(),this._track=new ye(this.props,()=>this.slides,{onRafPlay:()=>this.callbacks.emit("rafPlay",void 0),onRafPause:()=>this.callbacks.emit("rafPause",void 0),onRender:this.render.bind(this),containerSize:()=>this.containerSize,firstSlideSize:()=>this.firstSlideSize,origin:()=>this.origin,onTimelineStart:()=>this.callbacks.emit("timelineStart",void 0),onTimelineUpdate:n=>this.callbacks.emit("timelineUpdate",n),onTimelineEnd:()=>this.callbacks.emit("timelineEnd",void 0)}),this._wheel=new we(this),this._swipe=new be(this),new me(this),new fe(this,()=>this.prev(),()=>this.next()),this._idle=new de(this)}_handleProps(t){"slides"in t&&this._fetchSlides(),this._resizer.resize(),super._handleProps(t)}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:A(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 $track(){return this._track}get track(){return this._track}get isTransitioning(){return this.track.isTransitioning}get isSwiping(){return this._swipe.isSwiping}get isWheeling(){return this._wheel.isWheeling}get hasInteria(){return this._swipe.hasInertia}get hasInertia(){return this._swipe.hasInertia}get isInterpolating(){let{track:t}=this;return Math.abs(t.target-t.current)>yt}get influence(){return this.track.impulse}get impulse(){return this.track.impulse}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.track.progress}get isStart(){return this.track.isStart}get isEnd(){return this.track.isEnd}get origin(){return this.props.centered?"center":this.props.origin}clampTarget(){this.track.clampTarget()}iterateTarget(t){this.track.updateTarget(this.track.target+t)}setTarget(t){this.track.updateTarget(t)}cancelTransition(){this.track.cancelTransition()}get isSlideScrolling(){let{containerSize:t}=this;return this.scrollableSlides.some(({size:e,coord:i})=>_i(i,t-e,0))}get firstSlideSize(){return this.slides[0].size}get isIdle(){return this._idle.isIdle}_fetchSlides(){let{props:t}=this;this._slides.forEach(r=>r.$_detach());let i=(t.slides?t.slides:Array.from(t.container.children)).filter(r=>!(r instanceof HTMLElement&&r.hasAttribute("data-scrollbar")));if(!i.length)throw new Error("No slides found");this._slides=i.map(r=>r instanceof xt?r:new xt(r)),this._slides.forEach((r,n)=>r.$_attach(this,n))}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,track:i}=this;this._scrollableSlides=[],t.reduce((n,o)=>(o.$_setStaticCoord(n),o.size>this.containerSize&&this._scrollableSlides.push(o),n+o.size+A(e.gap)),0);let r=t.find(({index:n})=>n===this.activeIndex);e.stickOnResize&&r&&(i.clampTarget(),i.set(r.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}render(t=0){let{_swipe:e,track:i,props:r}=this;this._updateSlidesCoords(),this._updateSlideProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(re(i.targetIndex)||n.slide.index===i.targetIndex)&&(this._activeIndex=n.slide.index,i.setTargetIndex(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=Fe(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(){this.slides.forEach(t=>t.$_updateCoords(this.track.offset))}_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,track:i}=this;return e||!t?!1:this.toCoord(i.current+t.diff)}toCoord(t,e){return this.track.toCoord(t,e)}toSlide(t,e={}){var i,r,{direction:n=null}=e,o=Ti(e,["direction"]);let{activeIndex:a,slides:c,track:l,props:h,origin:p}=this,{current:u,max:_,loopCount:d}=l;if(this.isDestroyed)return!1;let f=F(t,0,this.slides.length);if(f===a)return!1;l.setTargetIndex(f);let m=c[f].magnets,b=m[0];if(p==="center"?n==="prev"?b=(i=m[2])!==null&&i!==void 0?i:m[0]:n==="next"&&(b=(r=m[1])!==null&&r!==void 0?r:m[0]):p==="end"?b=n==="next"?m[m.length-1]:b:b=n==="prev"?m[m.length-1]:b,!h.loop)return this.toCoord(b,o);let S=b+d*_,M=S-_,E=S+_,D=[M,S,E];if(mt(n)){let Q=D.filter(H=>n==="next"?H>=u:H<=u),N=ft(u,Q);return this.toCoord(N,o)}let z=ft(u,D);return this.toCoord(z,o)}next(t={}){var{skip:e=this.props.slidesToScroll}=t,i=Ti(t,["skip"]);let{props:r,slides:n,activeIndex:o}=this,{length:a}=n,c=F(o+e,0,a);return r.loop||(c=r.rewind?F(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=Ti(t,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=F(o-e,0,n.length);return r.loop||(a=r.rewind?F(o-e,0,n.length):Math.max(o-e,0)),this.toSlide(a,Object.assign(Object.assign({},i),{direction:"prev"}))}_destroy(){super._destroy(),this._track.destroy(),this._resizer.remove(),this._slides.forEach(t=>t.$_detach())}};Ii([g],St.prototype,"resize",null);Ii([g],St.prototype,"render",null);Ii([g],St.prototype,"toCoord",null);var Tr=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}),Ir={__mutableProp:!0};function Ar(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=v.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 Zr=zi(Jr());function xe(s,t){return t?mt(t)?s.matches(t):typeof t=="function"?t(s):t.includes(s):!1}function tn({wordsMeta:s,classname:t,tagName:e,ignore:i}){let r=[],n=v.createElement(e);return n.style.display="inline-block",O(n,t),s.forEach(o=>{if(xe(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let c=a.textContent;if(!c)return;(0,Zr.default)(c,"").forEach(h=>{let p=n.cloneNode(!1);p.appendChild(v.createTextNode(h)),o.element.insertBefore(p,a);let u={element:p};o.letters.push(u),r.push(u)}),a.remove()}),{lettersMeta:r}}function en({container:s,classname:t,tagName:e,ignore:i,prepareText:r,wordDelimiter:n=" ",wordDelimiterOutput:o}){let a=o||n,c=v.createElement(e);c.style.display="inline-block",c.setAttribute("aria-hidden","true"),O(c,t);let l=[],h=null;function p(u){var _,d;if(u instanceof HTMLElement||u instanceof DocumentFragment){if("tagName"in u&&u.tagName!=="BR"){if(xe(u,i)){h?h.append(u):l.push({element:u,letters:[]});return}u.style.display="inline-block"}h=null,[...Array.from(u.childNodes)].forEach(m=>p(m));return}if(u.nodeType===3){let f=(_=u.parentElement)!==null&&_!==void 0?_:s,m=(d=u.nodeValue)!==null&&d!==void 0?d:"";if(m===n){h=null,f==null||f.insertBefore(v.createTextNode(a),u),u.remove();return}m=r?r(m):m;let b=m.split(n);b.forEach((S,M)=>{if(S){let E=c.cloneNode(!1);E.appendChild(v.createTextNode(S)),h=E,l.push({element:E,letters:[]}),f==null||f.insertBefore(E,u)}M<b.length-1&&(f==null||f.insertBefore(v.createTextNode(a),u))}),u.remove()}}return p(s),l}var Jo=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 sn(s){var{container:t,letterClassName:e,wordClassName:i,hasLetters:r,letterTag:n,wordTag:o,ignore:a}=s,c=Jo(s,["container","letterClassName","wordClassName","hasLetters","letterTag","wordTag","ignore"]);let l=v.createDocumentFragment();for(;t.childNodes[0];)l.appendChild(t.childNodes[0]);let h=en(Object.assign(Object.assign({},c),{container:l,classname:i,tagName:o,ignore:a})),p=[];if(r){let u=tn({wordsMeta:h,classname:e,tagName:n,ignore:a});p.push(...u.lettersMeta)}return t.appendChild(l),{wordsMeta:h,lettersMeta:p}}function rn(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 nn(s,t){var e;return s!=null&&s.parentElement?s.parentElement===t?s:nn((e=s==null?void 0:s.parentElement)!==null&&e!==void 0?e:null,t):null}function on(s,t){return s===t?!0:s!==null?on(s.parentNode,t):!1}function an({container:s,hasLinesWrapper:t,wordsMeta:e,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=rn(s),a=[],c=-1,l=null,h=v.createElement(n);h.style.display="block",h.setAttribute("aria-hidden","true"),O(h,i);let p=e.map(d=>d.element.getBoundingClientRect());e.forEach((d,f)=>{var m;let b=p[f],S=nn(d.element,s);if(!S)return;let M=l&&b.top>l.top,E=l&&b.left>=l.left,D=l&&b.left<=l.left;if(!l||M&&D&&o==="left"||M&&E&&o==="right"||M&&o==="center"){c+=1;let N=h.cloneNode(!1),H;t&&(H=v.createElement(n),H.style.display="block",O(H,r),H.appendChild(N)),a[c]={element:N,wrapper:H,nodes:[],words:[]}}l=b;let z=a[c];!!a.find(({nodes:N})=>N.includes(S))||(z.nodes.push(S),((m=S.nextSibling)===null||m===void 0?void 0:m.nodeType)===3&&z.nodes.push(S.nextSibling))}),a.forEach(d=>{var f;s.insertBefore((f=d.wrapper)!==null&&f!==void 0?f:d.element,d.nodes[0]);let m=v.createDocumentFragment();m.append(...d.nodes),d.element.append(m)});let u=[];return a.forEach(d=>{var f;let m=((f=d.wrapper)!==null&&f!==void 0?f:d.element).nextElementSibling;m instanceof HTMLBRElement&&(m.style.display="none",u.push(m))}),a.forEach(d=>{d.words.push(...e.filter(f=>on(f.element,d.element)))}),{linesMeta:a,destroy:()=>{let d=!0;return u.forEach(f=>{f.style.display=""}),a.forEach(f=>{var m;f.nodes.forEach(b=>{var S;let M=(S=f.wrapper)!==null&&S!==void 0?S:f.element;M.parentElement?s.insertBefore(b,M):d=!1}),f.element.remove(),(m=f.wrapper)===null||m===void 0||m.remove()}),d}}}var Zo=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},Se=class extends P{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),Tr(this.prefix))}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),Ir)}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=Ar(i),this._setEvents()}get prefix(){return`${w().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=q({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}=sn({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=an({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()}}};Zo([g],Se.prototype,"split",null);var ln=k?w():void 0,ta=ln;return gn(ea);})();
|
|
178
178
|
/*! Bundled license information:
|
|
179
179
|
|
|
180
180
|
normalize-wheel/src/isEventSupported.js:
|