1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3908],{2500:(t,e,i)=>{"use strict";var s=i(21462),n="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=s.useState,r=s.useEffect,l=s.useLayoutEffect,a=s.useDebugValue;function h(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!n(t,i)}catch(t){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var i=e(),s=o({inst:{value:i,getSnapshot:e}}),n=s[0].inst,c=s[1];return l(function(){n.value=i,n.getSnapshot=e,h(n)&&c({inst:n})},[t,i,e]),r(function(){return h(n)&&c({inst:n}),t(function(){h(n)&&c({inst:n})})},[t]),a(i),i};e.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},14787:(t,e,i)=>{"use strict";var s=i(21462),n=i(94351),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=n.useSyncExternalStore,l=s.useRef,a=s.useEffect,h=s.useMemo,c=s.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,i,s,n){var u=l(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;var p=r(t,(u=h(function(){function t(t){if(!a){if(a=!0,r=t,t=s(t),void 0!==n&&d.hasValue){var e=d.value;if(n(e,t))return l=e}return l=t}if(e=l,o(r,t))return e;var i=s(t);return void 0!==n&&n(e,i)?e:(r=t,l=i)}var r,l,a=!1,h=void 0===i?null:i;return[function(){return t(e())},null===h?void 0:function(){return t(h())}]},[e,i,s,n]))[0],u[1]);return a(function(){d.hasValue=!0,d.value=p},[p]),c(p),p}},33152:(t,e,i)=>{"use strict";var s=i(58619);function n(){}function o(){}
1o.resetWarningCache=n,t.exports=function(){function t(t,e,i,n,o,r){if(r!==s){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var i={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:n};return i.PropTypes=i,i}},50084:(t,e,i)=>{t.exports=i(33152)()},53524:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});let s=function(){for(var t,e,i=0,s="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(s=t(e[i]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}(t))&&(s&&(s+=" "),s+=e);return s}},53908:(t,e,i)=>{"use strict";i.r(e),i.d(e,{Lenis:()=>y,LenisContext:()=>g,ReactLenis:()=>y,useLenis:()=>w});var s=i(21462),n="undefined"!=typeof window&&new class{constructor(){this.raf=t=>{requestAnimationFrame(this.raf);let e=t-this.now;this.now=t;for(let i=0;i<this.callbacks.length;i++)this.callbacks[i].callback(t,e)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}add(t,e=0){return this.callbacks.push({callback:t,priority:e}),this.callbacks.sort((t,e)=>t.priority-e.priority),()=>this.remove(t)}remove(t){this.callbacks=this.callbacks.filter(({callback:e})=>t!==e)}};function o(t,e,i){return Math.max(t,Math.min(e,i))}class r{advance(t){var e,i,s,n;if(!this.isRunning)return;let r=!1;if(this.lerp)this.value=(e=this.value,i=this.to,s=60*this.lerp,(1-(n=1-Math.exp(-s*t)))*e+n*i),Math.round(this.value)===this.to&&(this.value=this.to,r=!0);else{this.currentTime+=t;let e=o(0,this.currentTime/this.duration,1),i=(r=e>=1)?1:this.easing(e);this.value=this.from+(this.to-this.from)*i}this.onUpdate?.(this.value,r),r&&this.stop()}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i=.1,duration:s=1,easing:n=t=>t,onStart:o,onUpdate:r}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=n,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=r}}class l{constructor({wrapper:t,content:e,autoResize:i=!0,debounce:s=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(){let s=arguments,n=this;clearTimeout(i),i=setTimeout(function(){t.apply(n,s)},e)}}(this.resize,s),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper===window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}class a{constructor(){this.events={}}emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t<s;t++)i[t](...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}}let h=100/6;class c{constructor(t,{wheelMultiplier:e=1,touchMultiplier:i=1}){this.element=t,this.wheelMultiplier=e,this.touchMultiplier=i,this.touchStart={x:null,y:null},this.emitter=new a,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1})}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1})}onTouchStart=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.touchMultiplier,n=-(i-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:n},this.emitter.emit("scroll",{deltaX:s,deltaY:n,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:s}=t;e*=1===s?h:2===s?this.windowWidth:1,i*=1===s?h:2===s?this.windowHeight:1,e*=this.wheelMultiplier,i*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight}}class u{constructor({wrapper:t=window,content:e=document.documentElement,wheelEventsTarget:i=t,eventsTarget:s=i,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:h=.075,touchInertiaMultiplier:u=35,duration:d,easing:p=t=>Math.min(1,1.001-Math.pow(2,-10*t)),lerp:m=!d&&.1,infinite:f=!1,orientation:v="vertical",gestureOrientation:g="vertical",touchMultiplier:S=1,wheelMultiplier:w=1,autoResize:y=!0,__experimental__naiveDimensions:b=!1}={}){this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=({deltaX:t,deltaY:e,event:i})=>{if(i.ctrlKey)return;let s=i.type.includes("touch"),n=i.type.includes("wheel");if(this.options.syncTouch&&s&&"touchstart"===i.type&&!this.isStopped&&!this.isLocked)return void this.reset();let o="vertical"===this.options.gestureOrientation&&0===e||"horizontal"===this.options.gestureOrientation&&0===t;if(0===t&&0===e||o)return;let r=i.composedPath();if((r=r.slice(0,r.indexOf(this.rootElement))).find(t=>{var e,i,o,r,l;return(null==(e=t.hasAttribute)?void 0:e.call(t,"data-lenis-prevent"))||s&&(null==(i=t.hasAttribute)?void 0:i.call(t,"data-lenis-prevent-touch"))||n&&(null==(o=t.hasAttribute)?void 0:o.call(t,"data-lenis-prevent-wheel"))||(null==(r=t.classList)?void 0:r.contains("lenis"))&&!(null==(l=t.classList)?void 0:l.contains("lenis-stopped"))}))return;if(this.isStopped||this.isLocked)return void i.preventDefault();if(this.isSmooth=this.options.syncTouch&&s||this.options.smoothWheel&&n,!this.isSmooth)return this.isScrolling=!1,void this.animate.stop();i.preventDefault();let l=e;"both"===this.options.gestureOrientation?l=Math.abs(e)>Math.abs(t)?e:t:"horizontal"===this.options.gestureOrientation&&(l=t);let a=s&&this.options.syncTouch,h=s&&"touchend"===i.type&&Math.abs(l)>5;
vendor: 5,240 bytes, line 1
1h&&(l=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+l,Object.assign({programmatic:!1},a?{lerp:h?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(!this.__preventNextScrollEvent&&!this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.direction=Math.sign(this.animatedScroll-t),this.emit()}},window.lenisVersion="1.0.42",t!==document.documentElement&&t!==document.body||(t=window),this.options={wrapper:t,content:e,wheelEventsTarget:i,eventsTarget:s,smoothWheel:n,syncTouch:o,syncTouchLerp:h,touchInertiaMultiplier:u,duration:d,easing:p,lerp:m,infinite:f,gestureOrientation:g,orientation:v,touchMultiplier:S,wheelMultiplier:w,autoResize:y,__experimental__naiveDimensions:b},this.animate=new r,this.emitter=new a,this.dimensions=new l({wrapper:t,content:e,autoResize:y}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=o||n,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new c(s,{touchMultiplier:S,wheelMultiplier:w}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}setScroll(t){this.isHorizontal?this.rootElement.scrollLeft=t:this.rootElement.scrollTop=t}resize(){this.dimensions.resize()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(t){let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e)}scrollTo(t,{offset:e=0,immediate:i=!1,lock:s=!1,duration:n=this.options.duration,easing:r=this.options.easing,lerp:l=!n&&this.options.lerp,onComplete:a,force:h=!1,programmatic:c=!0}={}){if(!this.isStopped&&!this.isLocked||h){if(["top","left","start"].includes(t))t=0;else if(["bottom","right","end"].includes(t))t=this.limit;else{let i;if("string"==typeof t?i=document.querySelector(t):(null==t?void 0:t.nodeType)&&(i=t),i){if(this.options.wrapper!==window){let t=this.options.wrapper.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}let s=i.getBoundingClientRect();t=(this.isHorizontal?s.left:s.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite?c&&(this.targetScroll=this.animatedScroll=this.scroll):t=o(0,t,this.limit),i)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),void(null==a||a(this));if(!c){if(t===this.targetScroll)return;this.targetScroll=t}this.animate.fromTo(this.animatedScroll,t,{duration:n,easing:r,lerp:l,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling=!0},onUpdate:(t,e)=>{this.isScrolling=!0,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),c&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),null==a||a(this),this.__preventNextScrollEvent=!0,requestAnimationFrame(()=>{delete this.__preventNextScrollEvent}))}})}}}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isSmooth(){return this.__isSmooth}set isSmooth(t){this.__isSmooth!==t&&(this.__isSmooth=t,this.toggleClassName("lenis-smooth",t))}get isScrolling(){return this.__isScrolling}set isScrolling(t){this.__isScrolling!==t&&(this.__isScrolling=t,this.toggleClassName("lenis-scrolling",t))}get isStopped(){return this.__isStopped}set isStopped(t){this.__isStopped!==t&&(this.__isStopped=t,this.toggleClassName("lenis-stopped",t))}get isLocked(){return this.__isLocked}set isLocked(t){this.__isLocked!==t&&(this.__isLocked=t,this.toggleClassName("lenis-locked",t))}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isSmooth&&(t+=" lenis-smooth"),t}toggleClassName(t,e){this.rootElement.classList.toggle(t,e),this.emitter.emit("className change",this)}}
1var d=i(50084),p=i(97338),m=i(53524);function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t}).apply(this,arguments)}let v=["children","root","options","autoRaf","rafPriority","className"],g=(0,s.createContext)(),S=(0,p.vt)(()=>({}));function w(t,e=[],i=0){let{lenis:n,addCallback:o,removeCallback:r}=function(){let t=(0,s.useContext)(g),e=S();return null!=t?t:e}();return(0,s.useEffect)(()=>{if(t&&o&&r&&n)return o(t,i),t(n),()=>{r(t)}},[n,o,r,i,...e]),n}let y=(0,s.forwardRef)((t,e)=>{let{children:i,root:o=!1,options:r={},autoRaf:l=!0,rafPriority:a=0,className:h}=t,c=function(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s<o.length;s++)e.indexOf(i=o[s])>=0||(n[i]=t[i]);return n}(t,v),d=(0,s.useRef)(),p=(0,s.useRef)(),[w,y]=(0,s.useState)(),b=(0,s.useRef)([]),E=(0,s.useCallback)((t,e)=>{b.current.push({callback:t,priority:e}),b.current.sort((t,e)=>t.priority-e.priority)},[]),_=(0,s.useCallback)(t=>{b.current=b.current.filter(e=>e.callback!==t)},[]);(0,s.useImperativeHandle)(e,()=>w,[w]),(0,s.useEffect)(()=>{let t=new u(f({},r,!o&&{wrapper:d.current,content:p.current}));return y(t),()=>{t.destroy(),y(void 0)}},[o,JSON.stringify(r)]),function(t,e=0){(0,s.useEffect)(()=>{if(t)return n.add(t,e),()=>n.remove(t)},[t,e])}(t=>{l&&(null==w||w.raf(t))},a),(0,s.useEffect)(()=>{o&&w&&S.setState({lenis:w,addCallback:E,removeCallback:_})},[o,w,E,_]);let T=(0,s.useCallback)(t=>{for(let e=0;e<b.current.length;e++)b.current[e].callback(t)},[]);(0,s.useEffect)(()=>(null==w||w.on("scroll",T),()=>{null==w||w.off("scroll",T)}),[w,T]);let k=(0,s.useCallback)(()=>{d.current&&(d.current.className=(0,m.A)(null==w?void 0:w.className,h))},[w,h]);return(0,s.useEffect)(()=>(k(),null==w||w.on("className change",k),()=>{null==w||w.off("className change",k)}),[w,k]),s.createElement(g.Provider,{value:{lenis:w,addCallback:E,removeCallback:_}},o?i:s.createElement("div",f({ref:d,className:(0,m.A)(null==w?void 0:w.className,h)},c),s.createElement("div",{ref:p},i)))});y.displayName="ReactLenis",y.propTypes={children:d.node,root:d.bool,options:d.object,autoRaf:d.bool,rafPriority:d.number}},58619:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},75069:(t,e,i)=>{"use strict";t.exports=i(14787)},94351:(t,e,i)=>{"use strict";t.exports=i(2500)},97338:(t,e,i)=>{"use strict";i.d(e,{vt:()=>a});let s=t=>{let e,i=new Set,s=(t,s)=>{let n="function"==typeof t?t(e):t;if(!Object.is(n,e)){let t=e;e=(null!=s?s:"object"!=typeof n)?n:Object.assign({},e,n),i.forEach(i=>i(e,t))}},n=()=>e,o={setState:s,getState:n,subscribe:t=>(i.add(t),()=>i.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}};return e=t(s,n,o),o};var n=i(21462);
1let{useSyncExternalStoreWithSelector:o}=i(75069),r=!1,l=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?(t=>t?s(t):s)(t):t,i=(t,i)=>(function(t,e=t.getState,i){i&&!r&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),r=!0);let s=o(t.subscribe,t.getState,t.getServerState||t.getState,e,i);return(0,n.useDebugValue)(s),s})(e,t,i);return Object.assign(i,e),i},a=t=>t?l(t):l}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.