"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[934],{178:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},181:(t,e,i)=>{i.d(e,{G:()=>h});var n=i(4119),s=i(8041),r=i(1225),o=i(4369),a=i(509),l=i(5850);function h(t,e,{clamp:i=!0,ease:u,mixer:c}={}){let d=t.length;if((0,s.V)(d===e.length,"Both input and output ranges must be the same length"),1===d)return()=>e[0];if(2===d&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let m=function(t,e,i){let s=[],r=i||a.j,o=t.length-1;for(let i=0;i{if(p&&i1)for(;nv((0,o.q)(t[0],t[d-1],e)):v}},296:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(2115).createContext)({})},509:(t,e,i)=>{i.d(e,{j:()=>T});var n=i(1064),s=i(8041);function r(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(6125),a=i(5446),l=i(6554);function h(t,e){return i=>i>0?e:t}let u=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},c=[o.u,a.B,l.V];function d(t){let e=c.find(e=>e.test(t));if((0,s.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;s=r(l,n,t+1/3),o=r(l,n,t),a=r(l,n,t-1/3)}else s=o=a=i;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let p=(t,e)=>{let i=d(t),s=d(e);if(!i||!s)return h(t,e);let r={...i};return t=>(r.red=u(i.red,s.red,t),r.green=u(i.green,s.green,t),r.blue=u(i.blue,s.blue,t),r.alpha=(0,n.k)(i.alpha,s.alpha,t),a.B.transform(r))};var m=i(5850),f=i(7154),v=i(4017),g=i(641);let y=new Set(["none","hidden"]);function x(t,e){return i=>(0,n.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?h:f.y.test(t)?p:P:Array.isArray(t)?S:"object"==typeof t?f.y.test(t)?p:b:h}function S(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let P=(t,e)=>{let i=v.f.createTransformer(e),n=(0,v.V)(t),r=(0,v.V)(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?y.has(t)&&!r.values.length||y.has(e)&&!n.values.length?function(t,e){return y.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,m.F)(S(function(t,e){var i;let n=[],s={color:0,var:0,number:0};for(let r=0;r{i.d(e,{j:()=>s,p:()=>o});let n=t=>e=>"string"==typeof e&&e.startsWith(t),s=n("--"),r=n("var(--"),o=t=>!!r(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},737:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=i(8140)._(i(2115)).default.createContext({})},807:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>s,Kq:()=>n})},821:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{VALID_LOADERS:function(){return i},imageConfigDefault:function(){return n}});let i=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},861:(t,e)=>{function i(t){let{ampFirst:e=!1,hybrid:i=!1,hasQuery:n=!1}=void 0===t?{}:t;return e||i&&n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return i}})},1037:(t,e,i)=>{i.d(e,{P6:()=>o,vG:()=>c,tu:()=>h,KZ:()=>v,rU:()=>a,PT:()=>T,DW:()=>d,WH:()=>u,Mc:()=>A,yL:()=>g,TU:()=>function t(e,i){if(e)return"function"==typeof e&&m()?v(e,i):d(e)?y(e):Array.isArray(e)?e.map(e=>t(e,i)||x.easeOut):x[e]},YE:()=>l,c$:()=>D,KJ:()=>S,Wp:()=>L,nL:()=>m,Jb:()=>s});var n=i(178);let s=(0,n.p)(()=>void 0!==window.ScrollTimeline);class r{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;is()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class o extends r{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}let l=2e4;function h(t){let e=0,i=t.next(e);for(;!i.done&&e=l?1/0:e}function u(t){return"function"==typeof t}function c(t,e){t.timeline=e,t.onfinish=null}let d=t=>Array.isArray(t)&&"number"==typeof t[0],p={linearEasing:void 0},m=function(t,e){let i=(0,n.p)(t);return()=>{var t;return null!=(t=p[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var f=i(1225);let v=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e`cubic-bezier(${t}, ${e}, ${i}, ${n})`,x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])},w={x:!1,y:!1};function S(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let r=null!=(n=null==i?void 0:i[t])?n:s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function b(t,e){let i=S(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function P(t){return e=>{"touch"===e.pointerType||w.x||w.y||t(e)}}function T(t,e,i={}){let[n,s,r]=b(t,i),o=P(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let r=P(t=>{n(t),i.removeEventListener("pointerleave",r)});i.addEventListener("pointerleave",r,s)});return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}let E=(t,e)=>!!e&&(t===e||E(t,e.parentElement)),A=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,M=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),C=new WeakSet;function R(t){return e=>{"Enter"===e.key&&t(e)}}function k(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function V(t){return A(t)&&!(w.x||w.y)}function D(t,e,i={}){let[n,s,r]=b(t,i),o=t=>{let n=t.currentTarget;if(!V(t)||C.has(n))return;C.add(n);let r=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),V(t)&&C.has(n)&&(C.delete(n),"function"==typeof r&&r(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||E(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{M.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=R(()=>{if(C.has(i))return;k(i,"down");let t=R(()=>{k(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>k(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s),s)}),r}function L(t){if("x"===t||"y"===t)if(w[t])return null;else return w[t]=!0,()=>{w[t]=!1};return w.x||w.y?null:(w.x=w.y=!0,()=>{w.x=w.y=!1})}i(7290),i(4119)},1064:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},1124:(t,e)=>{function i(t){var e;let{config:i,src:n,width:s,quality:r}=t,o=r||(null==(e=i.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75){i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},1262:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});let n=i(2115),s=n.useLayoutEffect,r=n.useEffect;function o(t){let{headManager:e,reduceComponentsToState:i}=t;function o(){if(e&&e.mountedInstances){let s=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(s,t))}}return s(()=>{var i;return null==e||null==(i=e.mountedInstances)||i.add(t.children),()=>{var i;null==e||null==(i=e.mountedInstances)||i.delete(t.children)}}),s(()=>(e&&(e._pendingUpdate=o),()=>{e&&(e._pendingUpdate=o)})),r(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},1356:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return w}});let n=i(8140),s=i(9417),r=i(5155),o=s._(i(2115)),a=n._(i(7650)),l=n._(i(4841)),h=i(5040),u=i(821),c=i(3455);i(4781);let d=i(9862),p=n._(i(1124)),m=i(3011),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(t,e,i,n,s,r,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&s(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,s=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{s=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function g(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}let y=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:n,sizes:s,height:a,width:l,decoding:h,className:u,style:c,fetchPriority:d,placeholder:p,loading:f,unoptimized:y,fill:x,onLoadRef:w,onLoadingCompleteRef:S,setBlurComplete:b,setShowAltText:P,sizesInput:T,onLoad:E,onError:A,...M}=t,C=(0,o.useCallback)(t=>{t&&(A&&(t.src=t.src),t.complete&&v(t,p,w,S,b,y,T))},[i,p,w,S,b,A,y,T]),R=(0,m.useMergedRef)(e,C);return(0,r.jsx)("img",{...M,...g(d),loading:f,width:l,height:a,decoding:h,"data-nimg":x?"fill":"1",className:u,style:c,sizes:s,srcSet:n,src:i,ref:R,onLoad:t=>{v(t.currentTarget,p,w,S,b,y,T)},onError:t=>{P(!0),"empty"!==p&&b(!0),A&&A(t)}})});function x(t){let{isAppRouter:e,imgAttributes:i}=t,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...g(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,n),null):(0,r.jsx)(l.default,{children:(0,r.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...n},"__nimg-"+i.src+i.srcSet+i.sizes)})}let w=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),s=(0,o.useMemo)(()=>{var t;let e=f||n||u.imageConfigDefault,i=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),s=e.deviceSizes.sort((t,e)=>t-e),r=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:i,deviceSizes:s,qualities:r}},[n]),{onLoad:a,onLoadingComplete:l}=t,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let v=(0,o.useRef)(l);(0,o.useEffect)(()=>{v.current=l},[l]);let[g,w]=(0,o.useState)(!1),[S,b]=(0,o.useState)(!1),{props:P,meta:T}=(0,h.getImgProps)(t,{defaultLoader:p.default,imgConf:s,blurComplete:g,showAltText:S});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{...P,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:b,sizesInput:t.sizes,ref:e}),T.priority?(0,r.jsx)(x,{isAppRouter:!i,imgAttributes:P}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},1407:(t,e,i)=>{i.d(e,{I:()=>o});var n=i(2115),s=i(8662),r=i(4741);function o(){r.r.current||(0,s.U)();let[t]=(0,n.useState)(r.O.current);return t}},1408:(t,e,i)=>{i.d(e,{N:()=>g});var n=i(5155),s=i(2115),r=i(296),o=i(4416),a=i(9686),l=i(3127);class h extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(t){let{children:e,isPresent:i}=t,r=(0,s.useId)(),o=(0,s.useRef)(null),a=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,s.useContext)(l.Q);return(0,s.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:s}=a.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=r;let l=document.createElement("style");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(r,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n top: ").concat(n,"px !important;\n left: ").concat(s,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[i]),(0,n.jsx)(h,{isPresent:i,childRef:o,sizeRef:a,children:s.cloneElement(e,{ref:o})})}let c=t=>{let{children:e,initial:i,isPresent:r,onExitComplete:l,custom:h,presenceAffectsLayout:c,mode:p}=t,m=(0,o.M)(d),f=(0,s.useId)(),v=(0,s.useCallback)(t=>{for(let e of(m.set(t,!0),m.values()))if(!e)return;l&&l()},[m,l]),g=(0,s.useMemo)(()=>({id:f,initial:i,isPresent:r,custom:h,onExitComplete:v,register:t=>(m.set(t,!1),()=>m.delete(t))}),c?[Math.random(),v]:[r,v]);return(0,s.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[r]),s.useEffect(()=>{r||m.size||!l||l()},[r]),"popLayout"===p&&(e=(0,n.jsx)(u,{isPresent:r,children:e})),(0,n.jsx)(a.t.Provider,{value:g,children:e})};function d(){return new Map}var p=i(5601);let m=t=>t.key||"";function f(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}var v=i(6553);let g=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:l,presenceAffectsLayout:h=!0,mode:u="sync",propagate:d=!1}=t,[g,y]=(0,p.xQ)(d),x=(0,s.useMemo)(()=>f(e),[e]),w=d&&!g?[]:x.map(m),S=(0,s.useRef)(!0),b=(0,s.useRef)(x),P=(0,o.M)(()=>new Map),[T,E]=(0,s.useState)(x),[A,M]=(0,s.useState)(x);(0,v.E)(()=>{S.current=!1,b.current=x;for(let t=0;t{let e=m(t),s=(!d||!!g)&&(x===A||w.includes(e));return(0,n.jsx)(c,{isPresent:s,initial:(!S.current||!!a)&&void 0,custom:s?void 0:i,presenceAffectsLayout:h,mode:u,onExitComplete:s?void 0:()=>{if(!P.has(e))return;P.set(e,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(null==R||R(),M(b.current),d&&(null==y||y()),l&&l())},children:t},e)})})}},2182:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(1225),s=i(1064);function r(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let o=(0,n.q)(0,e,r);t.push((0,s.k)(i,1,o))}}(e,t.length-1),e}},2512:(t,e,i)=>{function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{P:()=>n9});let s=t=>Array.isArray(t);function r(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function l(t,e,i,n){if("function"==typeof e){let[s,r]=a(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=a(n);e=e(void 0!==i?i:t.custom,s,r)}return e}function h(t,e,i){let n=t.getProps();return l(n,e,void 0!==i?i:n.custom,t)}let u=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...u];var d,p,m=i(1037);let f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],v=new Set(f),g=new Set(["width","height","top","left","right","bottom",...f]),y=t=>s(t)?t[t.length-1]||0:t;var x=i(9568);let w=t=>!!(t&&t.getVelocity);function S(t,e){let i=t.getValue("willChange");if(w(i)&&i.add)return i.add(e)}let b=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),P="data-"+b("framerAppearId");var T=i(7290),E=i(7929),A=i(5221);let M={current:!1};var C=i(4119);let R=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function k(t,e,i,n){return t===e&&i===n?C.l:s=>0===s||1===s?s:R(function(t,e,i,n,s){let r,o,a=0;do(r=R(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o}(s,0,1,t,i),e,n)}let V=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,D=t=>e=>1-t(1-e),L=k(.33,1.53,.69,.99),j=D(L),O=V(j),F=t=>(t*=2)<1?.5*j(t):.5*(2-Math.pow(2,-10*(t-1))),B=t=>1-Math.sin(Math.acos(t)),z=D(B),N=V(B),_=t=>/^0[^.\s]+$/u.test(t);var W=i(4017),I=i(8640);let U=new Set(["brightness","contrast","saturate","opacity"]);function $(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(I.S)||[];if(!n)return t;let s=i.replace(n,""),r=+!!U.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let G=/\b([a-z-]*)\(.*?\)/gu,H={...W.f,getAnimatableNone:t=>{let e=t.match(G);return e?e.map($).join(" "):t}};var X=i(7154),q=i(7137),Y=i(5220);let K={borderWidth:Y.px,borderTopWidth:Y.px,borderRightWidth:Y.px,borderBottomWidth:Y.px,borderLeftWidth:Y.px,borderRadius:Y.px,radius:Y.px,borderTopLeftRadius:Y.px,borderTopRightRadius:Y.px,borderBottomRightRadius:Y.px,borderBottomLeftRadius:Y.px,width:Y.px,maxWidth:Y.px,height:Y.px,maxHeight:Y.px,top:Y.px,right:Y.px,bottom:Y.px,left:Y.px,padding:Y.px,paddingTop:Y.px,paddingRight:Y.px,paddingBottom:Y.px,paddingLeft:Y.px,margin:Y.px,marginTop:Y.px,marginRight:Y.px,marginBottom:Y.px,marginLeft:Y.px,backgroundPositionX:Y.px,backgroundPositionY:Y.px},Q={rotate:Y.uj,rotateX:Y.uj,rotateY:Y.uj,rotateZ:Y.uj,scale:q.hs,scaleX:q.hs,scaleY:q.hs,scaleZ:q.hs,skew:Y.uj,skewX:Y.uj,skewY:Y.uj,distance:Y.px,translateX:Y.px,translateY:Y.px,translateZ:Y.px,x:Y.px,y:Y.px,z:Y.px,perspective:Y.px,transformPerspective:Y.px,opacity:q.X4,originX:Y.gQ,originY:Y.gQ,originZ:Y.px},Z={...q.ai,transform:Math.round},J={...K,...Q,zIndex:Z,size:Y.px,fillOpacity:q.X4,strokeOpacity:q.X4,numOctaves:Z},tt={...J,color:X.y,backgroundColor:X.y,outlineColor:X.y,fill:X.y,stroke:X.y,borderColor:X.y,borderTopColor:X.y,borderRightColor:X.y,borderBottomColor:X.y,borderLeftColor:X.y,filter:H,WebkitFilter:H},te=t=>tt[t];function ti(t,e){let i=te(t);return i!==H&&(i=W.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tn=new Set(["auto","none","0"]),ts=t=>t===q.ai||t===Y.px,tr=(t,e)=>parseFloat(t.split(", ")[e]),to=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let s=n.match(/^matrix3d\((.+)\)$/u);if(s)return tr(s[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tr(e[1],t):0}},ta=new Set(["x","y","z"]),tl=f.filter(t=>!ta.has(t)),th={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:to(4,13),y:to(5,14)};th.translateX=th.x,th.translateY=th.y;let tu=new Set,tc=!1,td=!1;function tp(){if(td){let t=Array.from(tu).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tl.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}td=!1,tc=!1,tu.forEach(t=>t.complete()),tu.clear()}function tm(){tu.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(td=!0)})}class tf{constructor(t,e,i,n,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tu.add(this),tc||(tc=!0,E.Gt.read(tm),E.Gt.resolveKeyframes(tp))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let s=0;s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var ty=i(641);let tx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tw=t=>e=>e.test(t),tS=[q.ai,Y.px,Y.KN,Y.uj,Y.vw,Y.vh,{test:t=>"auto"===t,parse:t=>t}],tb=t=>tS.find(tw(t));class tP extends tf{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}var tT=i(8871);let tE=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(W.f.test(t)||"0"===t)&&!t.startsWith("url(")),tA=t=>null!==t;function tM(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(tA),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return r&&void 0!==n?n:s[r]}class tC{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tT.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tm(),tp()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=tT.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=tE(s,e),a=tE(r,e);return(0,tv.$)(o===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}var tR=i(4369),tk=i(509),tV=i(5850),tD=i(6280);function tL(t,e,i){let n=Math.max(e-5,0);return(0,tD.f)(i-t(n),e-n)}let tj={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tO(t,e){return t*Math.sqrt(1-e*e)}let tF=["duration","bounce"],tB=["stiffness","damping","mass"];function tz(t,e){return e.some(e=>void 0!==t[e])}function tN(t=tj.visualDuration,e=tj.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:tj.velocity,stiffness:tj.stiffness,damping:tj.damping,mass:tj.mass,isResolvedFromDuration:!1,...t};if(!tz(t,tB)&&tz(t,tF))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*(0,tR.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tj.mass,stiffness:n,damping:s}}else{let i=function({duration:t=tj.duration,bounce:e=tj.bounce,velocity:i=tj.velocity,mass:n=tj.mass}){let s,r;(0,tv.$)(t<=(0,T.f)(tj.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,tR.q)(tj.minDamping,tj.maxDamping,o),t=(0,tR.q)(tj.minDuration,tj.maxDuration,(0,T.X)(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/tO(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=tO(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=(0,T.f)(t),isNaN(a))return{stiffness:tj.stiffness,damping:tj.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tj.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-(0,T.X)(n.velocity||0)}),v=p||0,g=u/(2*Math.sqrt(h*c)),y=a-o,x=(0,T.X)(Math.sqrt(h/c)),w=5>Math.abs(y);if(s||(s=w?tj.restSpeed.granular:tj.restSpeed.default),r||(r=w?tj.restDelta.granular:tj.restDelta.default),g<1){let t=tO(x,g);i=e=>a-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),n=Math.min(t*e,300);return a-i*((v+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let S={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let n=0;g<1&&(n=0===t?(0,T.f)(v):tL(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(n)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min((0,m.tu)(S),m.YE),e=(0,m.KZ)(e=>S.next(t*e).value,t,30);return t+"ms "+e}};return S}function t_({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,g=void 0===o?v:o(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/n),x=t=>g+y(t),w=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},S=t=>{let e;if(e=m.value,void 0!==a&&el){var i;c=t,d=tN({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i){let e=!1;return(d||void 0!==c||(e=!0,w(t),S(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}let tW=k(.42,0,1,1),tI=k(0,0,.58,1),tU=k(.42,0,.58,1),t$={linear:C.l,easeIn:tW,easeInOut:tU,easeOut:tI,circIn:B,circInOut:N,circOut:z,backIn:j,backInOut:O,backOut:L,anticipate:F},tG=t=>{if((0,m.DW)(t)){(0,tv.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return k(e,i,n,s)}return"string"==typeof t?((0,tv.V)(void 0!==t$[t],`Invalid easing type '${t}'`),t$[t]):t};var tH=i(181),tX=i(2182);function tq({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(tG):tG(n),o={done:!1,value:e[0]},a=(s=i&&i.length===e.length?i:(0,tX.Z)(e),s.map(e=>e*t)),l=(0,tH.G)(a,e,{ease:Array.isArray(r)?r:e.map(()=>r||tU).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let tY=t=>{let e=({timestamp:e})=>t(e);return{start:()=>E.Gt.update(e,!0),stop:()=>(0,E.WG)(e),now:()=>E.uv.isProcessing?E.uv.timestamp:tT.k.now()}},tK={decay:t_,inertia:t_,tween:tq,keyframes:tq,spring:tN},tQ=t=>t/100;class tZ extends tC{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:s}=this.options,r=(null==n?void 0:n.KeyframeResolver)||tf,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new r(s,o,e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=(0,m.WH)(n)?n:tK[n]||tq;l!==tq&&"number"!=typeof t[0]&&(e=(0,tV.F)(tQ,(0,tk.j)(t[0],t[1])),t=[0,100]);let h=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===h.calculatedDuration&&(h.calculatedDuration=(0,m.tu)(h));let{calculatedDuration:u}=h,c=u+r;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:u,resolvedDuration:c,totalDuration:c*(s+1)-r}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:h,resolvedDuration:u}=i;if(null===this.startTime)return s.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let y=this.currentTime,x=s;if(d){let t=Math.min(this.currentTime,h)/u,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/u)):"mirror"===p&&(x=r)),y=(0,tR.q)(0,1,i)*u}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:S}=w;g||null===l||(S=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&void 0!==n&&(w.value=tM(a,this.options,n)),f&&f(w.value),b&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,T.X)(t.calculatedDuration):0}get time(){return(0,T.X)(this.currentTime)}set time(t){t=(0,T.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,T.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tY,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let tJ=new Set(["opacity","clipPath","filter","transform"]),t0=(0,i(178).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),t1={anticipate:F,backInOut:O,circInOut:N};class t2 extends tC{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:s}=this.options;this.resolver=new tP(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:h}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof r&&(0,m.nL)()&&r in t1&&(r=t1[r]),i=this.options,(0,m.WH)(i.type)||"spring"===i.type||!(0,m.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...h}=this.options,u=function(t,e){let i=new tZ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},s=[],r=0;for(;!n.done&&r<2e4;)s.push((n=i.sample(r)).value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(t,h);1===(t=u.keyframes).length&&(t[1]=t[0]),n=u.duration,s=u.times,r=u.ease,o="keyframes"}let u=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let h={[e]:i};l&&(h.offset=l);let u=(0,m.TU)(a,s);return Array.isArray(u)&&(h.easing=u),t.animate(h,{delay:n,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:n,times:s,ease:r});return u.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,m.vG)(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:i}=this.options;a.set(tM(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:s,type:o,ease:r,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,T.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,T.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,T.f)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return C.l;let{animation:i}=e;(0,m.vG)(i,t)}else this.pendingTimeline=t;return C.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:r,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...h}=this.options,u=new tZ({...h,keyframes:i,duration:n,type:s,ease:r,times:o,isGenerator:!0}),c=(0,T.f)(this.time);t.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return t0()&&i&&tJ.has(i)&&!a&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}}let t5={type:"spring",stiffness:500,damping:25,restSpeed:10},t4={type:"keyframes",duration:.8},t3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t6=(t,e,i,n={},s,r)=>o=>{let a=(0,m.rU)(n,t)||{},l=a.delay||n.delay||0,{elapsed:h=0}=n;h-=(0,T.f)(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(a)&&(u={...u,...((t,{keyframes:e})=>e.length>2?t4:v.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:t5:t3)(t,u)}),u.duration&&(u.duration=(0,T.f)(u.duration)),u.repeatDelay&&(u.repeatDelay=(0,T.f)(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(u.duration=0,0===u.delay&&(c=!0)),(M.current||A.W.skipAnimations)&&(c=!0,u.duration=0,u.delay=0),c&&!r&&void 0!==e.get()){let t=tM(u.keyframes,a);if(void 0!==t)return E.Gt.update(()=>{u.onUpdate(t),u.onComplete()}),new m.P6([])}return!r&&t2.supports(u)?new t2(u):new tZ(u)};function t8(t,e,{delay:i=0,transitionOverride:n,type:s}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in l){let n=t.getValue(e,null!=(r=t.latestValues[e])?r:null),s=l[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...(0,m.rU)(o||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=t.props[P];if(i){let t=window.MotionHandoffAnimation(i,e,E.Gt);null!==t&&(a.startTime=t,h=!0)}}S(t,e),n.start(t6(e,n,s,t.shouldReduceMotion&&g.has(e)?{type:!1}:a,t,h));let d=n.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{E.Gt.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=h(t,e)||{};for(let e in s={...s,...i}){let i=y(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,x.OQ)(i))}}(t,a)})}),u}function t9(t,e,i={}){var n;let s=h(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let o=s?()=>Promise.all(t8(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,s=1,r){let o=[],a=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(t7).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(t9(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function t7(t,e){return t.sortNodePosition(e)}let et=c.length,ee=[...u].reverse(),ei=u.length;function en(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function es(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class er{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eo extends er{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>t9(t,e,i)));else if("string"==typeof e)n=t9(t,e,i);else{let s="function"==typeof e?h(t,e,i.custom):e;n=Promise.all(t8(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=es(),a=!0,l=e=>(i,n)=>{var s;let r=h(t,n,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function u(h){let{props:u}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tv&&S,A=!1,M=Array.isArray(w)?w:[w],C=M.reduce(l(c),{});!1===b&&(C={});let{prevResolvedValues:R={}}=x,k={...R,...C},V=e=>{E=!0,m.has(e)&&(A=!0,m.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in k){let e=C[t],i=R[t];if(!f.hasOwnProperty(t))(s(e)&&s(i)?r(e,i):e===i)?void 0!==e&&m.has(t)?V(t):x.protectedKeys[t]=!0:null!=e?V(t):m.add(t)}x.prevProp=w,x.prevResolvedValues=C,x.isActive&&(f={...f,...C}),a&&t.blockInitialAnimation&&(E=!1);let D=!(P&&T)||A;E&&D&&p.push(...M.map(t=>({animation:t,options:{type:c}})))}if(m.size){let e={};m.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let x=!!p.length;return a&&(!1===u.initial||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(x=!1),a=!1,x?e(p):Promise.resolve()}return{animateChanges:u,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let r=u(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=es(),a=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let ea=0;class el extends er{constructor(){super(...arguments),this.id=ea++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}function eh(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function eu(t){return{point:{x:t.pageX,y:t.pageY}}}function ec(t,e,i,n){return eh(t,e,t=>(0,m.Mc)(t)&&i(t,eu(t)),n)}let ed=(t,e)=>Math.abs(t-e);class ep{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=ev(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(ed(t.x,e.x)**2+ed(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=E.uv;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=em(e,this.transformPagePoint),E.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ev("pointercancel"===t.type?this.lastMoveEventInfo:em(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!(0,m.Mc)(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=em(eu(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=E.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,ev(r,this.history)),this.removeListeners=(0,tV.F)(ec(this.contextWindow,"pointermove",this.handlePointerMove),ec(this.contextWindow,"pointerup",this.handlePointerUp),ec(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,E.WG)(this.updatePoint)}}function em(t,e){return e?{point:e(t.point)}:t}function ef(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ev({point:t},e){return{point:t,delta:ef(t,eg(e)),offset:ef(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=eg(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,T.f)(.1)));)i--;if(!n)return{x:0,y:0};let r=(0,T.X)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function eg(t){return t[t.length-1]}function ey(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var ex=i(1225),ew=i(1064);function eS(t){return t.max-t.min}function eb(t,e,i,n=.5){t.origin=n,t.originPoint=(0,ew.k)(e.min,e.max,t.origin),t.scale=eS(i)/eS(e),t.translate=(0,ew.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function eP(t,e,i,n){eb(t.x,e.x,i.x,n?n.originX:void 0),eb(t.y,e.y,i.y,n?n.originY:void 0)}function eT(t,e,i){t.min=i.min+e.min,t.max=t.min+eS(e)}function eE(t,e,i){t.min=e.min-i.min,t.max=t.min+eS(e)}function eA(t,e,i){eE(t.x,e.x,i.x),eE(t.y,e.y,i.y)}function eM(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function eC(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min({translate:0,scale:1,origin:0,originPoint:0}),eD=()=>({x:eV(),y:eV()}),eL=()=>({min:0,max:0}),ej=()=>({x:eL(),y:eL()});function eO(t){return[t("x"),t("y")]}function eF({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eB(t){return void 0===t||1===t}function ez({scale:t,scaleX:e,scaleY:i}){return!eB(t)||!eB(e)||!eB(i)}function eN(t){return ez(t)||e_(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e_(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eW(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eI(t,e=0,i=1,n,s){t.min=eW(t.min,e,i,n,s),t.max=eW(t.max,e,i,n,s)}function eU(t,{x:e,y:i}){eI(t.x,e.translate,e.scale,e.originPoint),eI(t.y,i.translate,i.scale,i.originPoint)}function e$(t,e){t.min=t.min+e,t.max=t.max+e}function eG(t,e,i,n,s=.5){let r=(0,ew.k)(t.min,t.max,s);eI(t,e,i,r,n)}function eH(t,e){eG(t.x,e.x,e.scaleX,e.scale,e.originX),eG(t.y,e.y,e.scaleY,e.scale,e.originY)}function eX(t,e){return eF(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let eq=({current:t})=>t?t.ownerDocument.defaultView:null,eY=new WeakMap;class eK{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ej(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(eu(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,m.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Y.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=eS(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&E.Gt.postRender(()=>s(t,e)),S(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},r=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>this.stop(t,e),a=()=>eO(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ep(t,{onSessionStart:n,onStart:s,onMove:r,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:eq(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&E.Gt.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!eQ(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,ew.k)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&ey(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:eM(t.x,i,s),y:eM(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:eR(t,"left","right"),y:eR(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eO(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ey(e))return!1;let n=e.current;(0,tv.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=eX(t,i),{scroll:s}=e;return s&&(e$(n.x,s.offset.x),e$(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:eC(t.x,r.x),y:eC(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eF(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(eO(o=>{if(!eQ(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return S(this.visualElement,t),i.start(t6(t,i,0,e,this.visualElement,!1))}stopAnimation(){eO(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eO(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eO(e=>{let{drag:i}=this.getProps();if(!eQ(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,ew.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ey(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=eS(t),s=eS(e);return s>n?i=(0,ex.q)(e.min,e.max-n,t.min):n>s&&(i=(0,ex.q)(t.min,t.max-s,e.min)),(0,tR.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eO(e=>{if(!eQ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,ew.k)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;eY.set(this.visualElement,this);let t=ec(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();ey(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),E.Gt.read(e);let s=eh(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eO(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function eQ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eZ extends er{constructor(t){super(t),this.removeGroupControls=C.l,this.removeListeners=C.l,this.controls=new eK(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||C.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let eJ=t=>(e,i)=>{t&&E.Gt.postRender(()=>t(e,i))};class e0 extends er{constructor(){super(...arguments),this.removePointerDownListener=C.l}onPointerDown(t){this.session=new ep(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eq(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:eJ(t),onStart:eJ(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&E.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ec(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var e1=i(5155),e2=i(2115),e5=i(5601),e4=i(296);let e3=(0,e2.createContext)({}),e6={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function e8(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e9={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!Y.px.test(t))return t;else t=parseFloat(t);let i=e8(t,e.target.x),n=e8(t,e.target.y);return`${i}% ${n}%`}},e7={},{schedule:it,cancel:ie}=(0,i(9267).I)(queueMicrotask,!1);class ii extends e2.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;Object.assign(e7,ir),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),e6.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||E.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),it.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function is(t){let[e,i]=(0,e5.xQ)(),n=(0,e2.useContext)(e4.L);return(0,e1.jsx)(ii,{...t,layoutGroup:n,switchLayoutGroup:(0,e2.useContext)(e3),isPresent:e,safeToRemove:i})}let ir={borderRadius:{...e9,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e9,borderTopRightRadius:e9,borderBottomLeftRadius:e9,borderBottomRightRadius:e9,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=W.f.parse(t);if(n.length>5)return t;let s=W.f.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=(0,ew.k)(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var io=i(807);let ia=(t,e)=>t.depth-e.depth;class il{constructor(){this.children=[],this.isDirty=!1}add(t){(0,io.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,io.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ia),this.isDirty=!1,this.children.forEach(t)}}var ih=i(2863);function iu(t){let e=w(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let ic=["TopLeft","TopRight","BottomLeft","BottomRight"],id=ic.length,ip=t=>"string"==typeof t?parseFloat(t):t,im=t=>"number"==typeof t||Y.px.test(t);function iv(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ig=ix(0,.5,z),iy=ix(.5,.95,C.l);function ix(t,e,i){return n=>ne?1:i((0,ex.q)(t,e,n))}function iw(t,e){t.min=e.min,t.max=e.max}function iS(t,e){iw(t.x,e.x),iw(t.y,e.y)}function ib(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iP(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function iT(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(Y.KN.test(e)&&(e=parseFloat(e),e=(0,ew.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,ew.k)(r.min,r.max,n);t===r&&(a-=e),t.min=iP(t.min,e,i,a,s),t.max=iP(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let iE=["x","scaleX","originX"],iA=["y","scaleY","originY"];function iM(t,e,i,n){iT(t.x,e,iE,i?i.x:void 0,n?n.x:void 0),iT(t.y,e,iA,i?i.y:void 0,n?n.y:void 0)}function iC(t){return 0===t.translate&&1===t.scale}function iR(t){return iC(t.x)&&iC(t.y)}function ik(t,e){return t.min===e.min&&t.max===e.max}function iV(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iD(t,e){return iV(t.x,e.x)&&iV(t.y,e.y)}function iL(t){return eS(t.x)/eS(t.y)}function ij(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iO{constructor(){this.members=[]}add(t){(0,io.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,io.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iF={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},iB="undefined"!=typeof window&&void 0!==window.MotionDebug,iz=["","X","Y","Z"],iN={visibility:"hidden"},i_=0;function iW(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function iI({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=i_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,iB&&(iF.totalNodes=iF.resolvedTargetDeltas=iF.recalculatedProjection=0),this.nodes.forEach(iG),this.nodes.forEach(iZ),this.nodes.forEach(iJ),this.nodes.forEach(iH),iB&&window.MotionDebug.record(iF)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tT.k.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,E.WG)(n),t(s-250))};return E.Gt.read(n,!0),()=>(0,E.WG)(n)}(n,250),e6.hasAnimatedSinceResize&&(e6.hasAnimatedSinceResize=!1,this.nodes.forEach(iQ))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||i3,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!iD(this.targetLayout,n)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,m.rU)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||iQ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,E.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(i0),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[P];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",E.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ej());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ib(this.prevProjectionDelta.x,this.projectionDelta.x),ib(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),eP(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&ij(this.projectionDelta.x,this.prevProjectionDelta.x)&&ij(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),iB&&iF.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=eD(),this.projectionDelta=eD(),this.projectionDeltaWithTransform=eD()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=eD();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=ej(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(i4));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(i2(o.x,t.x,n),i2(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,m,f,v;eA(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,i5(p.x,m.x,f.x,v),i5(p.y,m.y,f.y,v),i&&(h=this.relativeTarget,d=i,ik(h.x,d.x)&&ik(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=ej()),iS(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,ew.k)(0,void 0!==i.opacity?i.opacity:1,ig(n)),t.opacityExit=(0,ew.k)(void 0!==e.opacity?e.opacity:1,0,iy(n))):r&&(t.opacity=(0,ew.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let s=0;s{e6.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=w(0)?0:(0,x.OQ)(t);return n.start(t6("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&i7(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ej();let e=eS(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=eS(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}iS(e,i),eH(e,s),eP(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iO),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&iW("z",t,n,this.animationValues);for(let e=0;e{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(iq),this.root.sharedNodes.clear()}}}function iU(t){t.updateLayout()}function i$(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;"size"===s?eO(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=eS(n);n.min=e[t].min,n.max=n.min+s}):i7(s,i.layoutBox,e)&&eO(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],o=eS(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=eD();eP(o,e,i.layoutBox);let a=eD();r?eP(a,t.applyTransform(n,!0),i.measuredBox):eP(a,e,i.layoutBox);let l=!iR(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=ej();eA(o,i.layoutBox,s.layoutBox);let a=ej();eA(a,e,r.layoutBox),iD(o,a)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function iG(t){iB&&iF.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iH(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iX(t){t.clearSnapshot()}function iq(t){t.clearMeasurements()}function iY(t){t.isLayoutDirty=!1}function iK(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iQ(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iZ(t){t.resolveTargetDelta()}function iJ(t){t.calcProjection()}function i0(t){t.resetSkewAndRotation()}function i1(t){t.removeLeadSnapshot()}function i2(t,e,i){t.translate=(0,ew.k)(e.translate,0,i),t.scale=(0,ew.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function i5(t,e,i,n){t.min=(0,ew.k)(e.min,i.min,n),t.max=(0,ew.k)(e.max,i.max,n)}function i4(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let i3={duration:.45,ease:[.4,0,.1,1]},i6=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),i8=i6("applewebkit/")&&!i6("chrome/")?Math.round:C.l;function i9(t){t.min=i8(t.min),t.max=i8(t.max)}function i7(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iL(e)-iL(i)))}function nt(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let ne=iI({attachResizeListener:(t,e)=>eh(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ni={current:void 0},nn=iI({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ni.current){let t=new ne({});t.mount(window),t.setOptions({layoutScroll:!0}),ni.current=t}return ni.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ns(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&E.Gt.postRender(()=>s(e,eu(e)))}class nr extends er{mount(){let{current:t}=this.node;t&&(this.unmount=(0,m.PT)(t,t=>(ns(this.node,t,"Start"),t=>ns(this.node,t,"End"))))}unmount(){}}class no extends er{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tV.F)(eh(this.node.current,"focus",()=>this.onFocus()),eh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function na(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&E.Gt.postRender(()=>s(e,eu(e)))}class nl extends er{mount(){let{current:t}=this.node;t&&(this.unmount=(0,m.c$)(t,t=>(na(this.node,t,"Start"),(t,{success:e})=>na(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let nh=new WeakMap,nu=new WeakMap,nc=t=>{let e=nh.get(t.target);e&&e(t)},nd=t=>{t.forEach(nc)},np={some:0,all:1};class nm extends er{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:np[n]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;nu.has(i)||nu.set(i,{});let n=nu.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(nd,{root:t,...e})),n[s]}(r);return nh.set(a,o),l.observe(a),()=>{nh.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let nf=(0,e2.createContext)({strict:!1});var nv=i(3127);let ng=(0,e2.createContext)({});function ny(t){return n(t.animate)||c.some(e=>o(t[e]))}function nx(t){return!!(ny(t)||t.variants)}function nw(t){return Array.isArray(t)?t.join(" "):t}var nS=i(3577);let nb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nP={};for(let t in nb)nP[t]={isEnabled:e=>nb[t].some(t=>!!e[t])};let nT=Symbol.for("motionComponentSymbol");var nE=i(9686),nA=i(6553);let nM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nC(t){if("string"!=typeof t||t.includes("-"));else if(nM.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var nR=i(4416);let nk=t=>(e,i)=>{let s=(0,e2.useContext)(ng),r=(0,e2.useContext)(nE.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},s,r,o){let a={latestValues:function(t,e,i,s){let r={},o=s(t,{});for(let t in o)r[t]=iu(o[t]);let{initial:a,animate:h}=t,u=ny(t),c=nx(t);e&&c&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===h&&(h=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===a)?h:a;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;ii({props:s,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,s,r);return i?o():(0,nR.M)(o)},nV=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nL=f.length;function nj(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(v.has(t)){o=!0;continue}if((0,ty.j)(t)){s[t]=i;continue}{let e=nV(i,J[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r({style:{},transform:{},transformOrigin:{},vars:{}}),n_=()=>({...nN(),attrs:{}}),nW=t=>"string"==typeof t&&"svg"===t.toLowerCase();function nI(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}let nU=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function n$(t,e,i,n){for(let i in nI(t,e,void 0,n),e.attrs)t.setAttribute(nU.has(i)?i:b(i),e.attrs[i])}function nG(t,{layout:e,layoutId:i}){return v.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e7[t]||"opacity"===t)}function nH(t,e,i){var n;let{style:s}=t,r={};for(let o in s)(w(s[o])||e.style&&w(e.style[o])||nG(o,t)||(null==(n=null==i?void 0:i.getValue(o))?void 0:n.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function nX(t,e,i){let n=nH(t,e,i);for(let i in t)(w(t[i])||w(e[i]))&&(n[-1!==f.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let nq=["x","y","width","height","cx","cy","r"],nY={useVisualState:nk({scrapeMotionValuesFromProps:nX,createRenderState:n_,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:s})=>{if(!i)return;let r=!!t.drag;if(!r){for(let t in s)if(v.has(t)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let i=0;i{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,n),E.Gt.render(()=>{nz(n,s,nW(i.tagName),t.transformTemplate),n$(i,n)})})}})},nK={useVisualState:nk({scrapeMotionValuesFromProps:nH,createRenderState:nN})};function nQ(t,e,i){for(let n in e)w(e[n])||nG(n,i)||(t[n]=e[n])}var nZ=i(9132),nJ=i(8662),n0=i(4741);let n1=[...tS,X.y,W.f],n2=new WeakMap,n5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class n4{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tT.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),n0.r.current||(0,nJ.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n0.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in n2.delete(this.current),this.projection&&this.projection.unmount(),(0,E.WG)(this.notifyUpdate),(0,E.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=v.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&E.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in nP){let e=nP[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ej()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,x.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&(tg(n)||_(n)))n=parseFloat(n);else{let i;i=n,!n1.find(tw(i))&&W.f.test(e)&&(n=ti(t,e))}this.setBaseTarget(t,w(n)?n.get():n)}return w(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let s=l(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||w(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new ih.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class n3 extends n4{constructor(){super(...arguments),this.KeyframeResolver=tP}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;w(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class n6 extends n3{constructor(){super(...arguments),this.type="html",this.renderInstance=nI}readValueFromInstance(t,e){if(v.has(e)){let t=te(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,ty.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eX(t,e)}build(t,e,i){nj(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return nH(t,e,i)}}class n8 extends n3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ej}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(v.has(e)){let t=te(e);return t&&t.default||0}return e=nU.has(e)?e:b(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return nX(t,e,i)}build(t,e,i){nz(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){n$(t,e,i,n)}mount(t){this.isSVGTag=nW(t.tagName),super.mount(t)}}let n9=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((d={animation:{Feature:eo},exit:{Feature:el},inView:{Feature:nm},tap:{Feature:nl},focus:{Feature:no},hover:{Feature:nr},pan:{Feature:e0},drag:{Feature:eZ,ProjectionNode:nn,MeasureLayout:is},layout:{ProjectionNode:nn,MeasureLayout:is}},p=(t,e)=>nC(t)?new n8(e):new n6(e,{allowProjection:t!==e2.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:a,Component:l}=t;function h(t,e){var i;let n,h={...(0,e2.useContext)(nv.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,e2.useContext)(e4.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:u}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(ny(t)){let{initial:e,animate:i}=t;return{initial:!1===e||o(e)?e:void 0,animate:o(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e2.useContext)(ng));return(0,e2.useMemo)(()=>({initial:e,animate:i}),[nw(e),nw(i)])}(t),d=a(t,u);if(!u&&nS.B){(0,e2.useContext)(nf).strict;let t=function(t){let{drag:e,layout:i}=nP;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);n=t.MeasureLayout,c.visualElement=function(t,e,i,n,s){var r,o;let{visualElement:a}=(0,e2.useContext)(ng),l=(0,e2.useContext)(nf),h=(0,e2.useContext)(nE.t),u=(0,e2.useContext)(nv.Q).reducedMotion,c=(0,e2.useRef)(null);n=n||l.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:u}));let d=c.current,p=(0,e2.useContext)(e3);d&&!d.projection&&s&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&ey(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:h})}(c.current,i,s,p);let m=(0,e2.useRef)(!1);(0,e2.useInsertionEffect)(()=>{d&&m.current&&d.update(i,h)});let f=i[P],v=(0,e2.useRef)(!!f&&!(null==(r=window.MotionHandoffIsComplete)?void 0:r.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return(0,nA.E)(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),it.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,e2.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),v.current=!1))}),d}(l,d,h,s,t.ProjectionNode)}return(0,e1.jsxs)(ng.Provider,{value:c,children:[n&&c.visualElement?(0,e1.jsx)(n,{visualElement:c.visualElement,...h}):null,r(l,t,(i=c.visualElement,(0,e2.useCallback)(t=>{t&&d.onMount&&d.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):ey(e)&&(e.current=t))},[i])),d,u,c.visualElement)]})}n&&function(t){for(let e in t)nP[e]={...nP[e],...t[e]}}(n),h.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(i=null!=(e=l.displayName)?e:l.name)?i:"",")"));let u=(0,e2.forwardRef)(h);return u[nT]=l,u}({...nC(t)?nY:nK,preloadedFeatures:d,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(nC(e)?function(t,e,i,n){let s=(0,e2.useMemo)(()=>{let i=n_();return nz(i,e,nW(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nQ(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return nQ(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e2.useMemo)(()=>{let i=nN();return nj(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,e),a=(0,nZ.J)(i,"string"==typeof e,t),l=e!==e2.Fragment?{...a,...o,ref:n}:{},{children:h}=i,u=(0,e2.useMemo)(()=>w(h)?h.get():h,[h]);return(0,e2.createElement)(e,{...l,children:u})}}(e),createVisualElement:p,Component:t})}))},2691:(t,e,i)=>{i.d(e,{A:()=>p});var n="1.3.23";function s(t,e,i){return Math.max(t,Math.min(e,i))}var r=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let i=s(0,this.currentTime/this.duration,1),n=(e=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*n}else if(this.lerp){var i,n,r,o;this.value=(i=this.value,n=this.to,r=60*this.lerp,(1-(o=1-Math.exp(-r*t)))*i+o*n),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:n,easing:s,onStart:r,onUpdate:o}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=n,this.easing=s,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=o}},o=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(t,e,{autoResize:i=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...n){clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(this,n)},e)}}(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(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(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof 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}}},a=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,n=i.length;t{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 l=100/6,h={passive:!1};function u(t,e){return 1===t?l:2===t?e:1}var c=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new a;constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,h),this.element.addEventListener("touchstart",this.onTouchStart,h),this.element.addEventListener("touchmove",this.onTouchMove,h),this.element.addEventListener("touchend",this.onTouchEnd,h)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,h),this.element.removeEventListener("touchstart",this.onTouchStart,h),this.element.removeEventListener("touchmove",this.onTouchMove,h),this.element.removeEventListener("touchend",this.onTouchEnd,h)}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,n=-(e-this.touchStart.x)*this.options.touchMultiplier,s=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:n,y:s},this.emitter.emit("scroll",{deltaX:n,deltaY:s,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:n}=t,s=u(n,this.window.width),r=u(n,this.window.height);e*=s,i*=r,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};let d=t=>Math.min(1,1.001-2**(-10*t));var p=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new r;emitter=new a;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:s=!0,syncTouch:r=!1,syncTouchLerp:a=.075,touchInertiaExponent:l=1.7,duration:h,easing:u,lerp:p=.1,infinite:m=!1,orientation:f="vertical",gestureOrientation:v="horizontal"===f?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:y=1,autoResize:x=!0,prevent:w,virtualScroll:S,overscroll:b=!0,autoRaf:P=!1,anchors:T=!1,autoToggle:E=!1,allowNestedScroll:A=!1,__experimental__naiveDimensions:M=!1,naiveDimensions:C=M,stopInertiaOnNavigate:R=!1}={}){window.lenisVersion=n,window.lenis||(window.lenis={}),window.lenis.version=n,"horizontal"===f&&(window.lenis.horizontal=!0),!0===r&&(window.lenis.touch=!0),t&&t!==document.documentElement||(t=window),"number"==typeof h&&"function"!=typeof u?u=d:"function"==typeof u&&"number"!=typeof h&&(h=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:s,syncTouch:r,syncTouchLerp:a,touchInertiaExponent:l,duration:h,easing:u,lerp:p,infinite:m,gestureOrientation:v,orientation:f,touchMultiplier:g,wheelMultiplier:y,autoResize:x,prevent:w,virtualScroll:S,overscroll:b,autoRaf:P,anchors:T,autoToggle:E,allowNestedScroll:A,naiveDimensions:C,stopInertiaOnNavigate:R},this.dimensions=new o(t,e,{autoResize:x}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new c(i,{touchMultiplier:g,wheelMultiplier:y}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=t=>{t.propertyName?.includes("overflow")&&t.target===this.rootElement&&this.checkOverflow()};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){let t=e.find(t=>i.host===t.host&&i.pathname===t.pathname&&t.hash);if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=`#${t.hash.split("#")[1]}`;this.scrollTo(i,e);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname))return void this.reset()};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let s=n.type.includes("touch"),r=n.type.includes("wheel");this.isTouching="touchstart"===n.type||"touchmove"===n.type;let o=0===e&&0===i;if(this.options.syncTouch&&s&&"touchstart"===n.type&&o&&!this.isStopped&&!this.isLocked)return void this.reset();let a="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(o||a)return;let l=n.composedPath();l=l.slice(0,l.indexOf(this.rootElement));let h=this.options.prevent,u=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(l.find(t=>t instanceof HTMLElement&&("function"==typeof h&&h?.(t)||t.hasAttribute?.("data-lenis-prevent")||"vertical"===u&&t.hasAttribute?.("data-lenis-prevent-vertical")||"horizontal"===u&&t.hasAttribute?.("data-lenis-prevent-horizontal")||s&&t.hasAttribute?.("data-lenis-prevent-touch")||r&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(t,{deltaX:e,deltaY:i}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&s||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let c=i;"both"===this.options.gestureOrientation?c=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(c=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&i<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let d=s&&this.options.syncTouch,p=s&&"touchend"===n.type;p&&(c=Math.sign(c)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+c,{programmatic:!1,...d?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.removeProperty("overflow");this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.setProperty("overflow","clip");this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:n=!1,programmatic:r=!0,lerp:o=r?this.options.lerp:void 0,duration:a=r?this.options.duration:void 0,easing:l=r?this.options.easing:void 0,onStart:h,onComplete:u,force:c=!1,userData:p}={}){if((this.isStopped||this.isLocked)&&!c)return;let m=t,f=e;if("string"==typeof m&&["top","left","start","#"].includes(m))m=0;else if("string"==typeof m&&["bottom","right","end"].includes(m))m=this.limit;else{let t=null;if("string"==typeof m?(t=document.querySelector(m))||("#top"===m?m=0:console.warn("Lenis: Target not found",m)):m instanceof HTMLElement&&m?.nodeType&&(t=m),t){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();f-=this.isHorizontal?t.left:t.top}let e=t.getBoundingClientRect(),i=getComputedStyle(t),n=this.isHorizontal?Number.parseFloat(i.scrollMarginLeft):Number.parseFloat(i.scrollMarginTop),s=getComputedStyle(this.rootElement),r=this.isHorizontal?Number.parseFloat(s.scrollPaddingLeft):Number.parseFloat(s.scrollPaddingTop);m=(this.isHorizontal?e.left:e.top)+this.animatedScroll-(Number.isNaN(n)?0:n)-(Number.isNaN(r)?0:r)}}if("number"==typeof m){if(m+=f,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;let t=m-this.animatedScroll;t>this.limit/2?m-=this.limit:t<-this.limit/2&&(m+=this.limit)}}else m=s(0,m,this.limit);if(m===this.targetScroll){h?.(this),u?.(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=m,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=m),"number"==typeof a&&"function"!=typeof l?l=d:"function"==typeof l&&"number"!=typeof a&&(a=1),this.animate.fromTo(this.animatedScroll,m,{duration:a,easing:l,lerp:o,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",h?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),r&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(t,{deltaX:e,deltaY:i}){let n,s,r,o,a,l,h,u,c,d,p,m,f,v,g,y,x=Date.now();t._lenis||(t._lenis={});let w=t._lenis;if(x-(w.time??0)>2e3){w.time=Date.now();let e=window.getComputedStyle(t);if(w.computedStyle=e,n=["auto","overlay","scroll"].includes(e.overflowX),s=["auto","overlay","scroll"].includes(e.overflowY),a=["auto"].includes(e.overscrollBehaviorX),l=["auto"].includes(e.overscrollBehaviorY),w.hasOverflowX=n,w.hasOverflowY=s,!(n||s))return!1;h=t.scrollWidth,u=t.scrollHeight,c=t.clientWidth,d=t.clientHeight,r=h>c,o=u>d,w.isScrollableX=r,w.isScrollableY=o,w.scrollWidth=h,w.scrollHeight=u,w.clientWidth=c,w.clientHeight=d,w.hasOverscrollBehaviorX=a,w.hasOverscrollBehaviorY=l}else r=w.isScrollableX,o=w.isScrollableY,n=w.hasOverflowX,s=w.hasOverflowY,h=w.scrollWidth,u=w.scrollHeight,c=w.clientWidth,d=w.clientHeight,a=w.hasOverscrollBehaviorX,l=w.hasOverscrollBehaviorY;if(!(n&&r||s&&o))return!1;let S=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if("horizontal"===S)p=Math.round(t.scrollLeft),m=h-c,f=e,v=n,g=r,y=a;else{if("vertical"!==S)return!1;p=Math.round(t.scrollTop),m=u-d,f=i,v=s,g=o,y=l}return!y&&(p>=m||p<=0)||(f>0?p0)&&v&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.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(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.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 isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(t=>{this.rootElement.classList.add(t)})}cleanUpClassName(){for(let t of Array.from(this.rootElement.classList))("lenis"===t||t.startsWith("lenis-"))&&this.rootElement.classList.remove(t)}}},2863:(t,e,i)=>{i.d(e,{v:()=>s});var n=i(807);class s{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=i(2115);function s(t,e){let i=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=s.current;e&&(s.current=null,e())}else t&&(i.current=r(t,n)),e&&(s.current=r(e,n))},[t,e])}function r(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},3127:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(2115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},3455:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let n=i(8140)._(i(2115)),s=i(821),r=n.default.createContext(s.imageConfigDefault)},3577:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},4017:(t,e,i)=>{i.d(e,{V:()=>u,f:()=>m});var n=i(7154);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(8640),o=i(5295);let a="number",l="color",h=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function u(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],o=0,u=e.replace(h,t=>(n.y.test(t)?(s.color.push(o),r.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(s.var.push(o),r.push("var"),i.push(t)):(s.number.push(o),r.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:u,indexes:s,types:r}}function c(t){return u(t).values}function d(t){let{split:e,types:i}=u(t),s=e.length;return t=>{let r="";for(let h=0;h"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(r.S))?void 0:e.length)||0)+((null==(i=t.match(s))?void 0:i.length)||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(p))}}},4105:(t,e)=>{function i(t){let{widthInt:e,heightInt:i,blurWidth:n,blurHeight:s,blurDataURL:r,objectFit:o}=t,a=n?40*n:e,l=s?40*s:i,h=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+h+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(h?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+r+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},4119:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},4369:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i{let n,s;i.d(e,{L:()=>W});var r=i(9568),o=i(4416),a=i(2115),l=i(8041),h=i(1037),u=i(4119),c=i(7929);function d(t,e){let i,n=()=>{let{currentTime:n}=e,s=(null===n?0:n.value)/100;i!==s&&t(s),i=s};return c.Gt.update(n,!0),()=>(0,c.WG)(n)}let p=new WeakMap;function m({target:t,contentRect:e,borderBoxSize:i}){var n;null==(n=p.get(t))||n.forEach(n=>{n({target:t,contentSize:e,get size(){if(i){let{inlineSize:t,blockSize:e}=i[0];return{width:t,height:e}}if(t instanceof SVGElement&&"getBBox"in t)return t.getBBox();return{width:t.offsetWidth,height:t.offsetHeight}}})})}function f(t){t.forEach(m)}let v=new Set;var g=i(1225),y=i(6280);let x=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),w={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function S(t,e,i,n){let s=i[e],{length:r,position:o}=w[e],a=s.current,l=i.time;s.current=t[`scroll${o}`],s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=(0,g.q)(0,s.scrollLength,s.current);let h=n-l;s.velocity=h>50?0:(0,y.f)(s.current-a,h)}var b=i(4369),P=i(181),T=i(2182);let E={start:0,center:.5,end:1};function A(t,e,i=0){let n=0;if(t in E&&(t=E[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let M=[0,0],C={All:[[0,0],[1,1]]},R={x:0,y:0},k=new WeakMap,V=new WeakMap,D=new WeakMap,L=t=>t===document.documentElement?window:t;function j(t,{container:e=document.documentElement,...i}={}){let r=D.get(e);r||(r=new Set,D.set(e,r));let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{S(t,"x",i,e),S(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=C.All}=i,{target:s=t,axis:r="y"}=i,o="y"===r?"height":"width",a=s!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let s=null,r=n.parentNode;for(;!s;)"svg"===r.tagName&&(s=r),r=n.parentNode;n=s}else break;return i}(s,t):R,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in s&&"svg"!==s.tagName?s.getBBox():{width:s.clientWidth,height:s.clientHeight},h={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let u=!e[r].interpolate,c=n.length;for(let t=0;te(i)}}(e,t,{time:0,x:x(),y:x()},i);if(r.add(o),!k.has(e)){let t=()=>{for(let t of r)t.measure()},i=()=>{for(let t of r)t.update(c.uv.timestamp)},o=()=>{for(let t of r)t.notify()},a=()=>{c.Gt.read(t,!1,!0),c.Gt.read(i,!1,!0),c.Gt.update(o,!1,!0)};k.set(e,a);let l=L(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&V.set(e,"function"==typeof e?(v.add(e),s||(s=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};v.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{v.delete(e),!v.size&&s&&(s=void 0)}):function(t,e){n||"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(f));let i=(0,h.KJ)(t);return i.forEach(t=>{let i=p.get(t);i||(i=new Set,p.set(t,i)),i.add(e),null==n||n.observe(t)}),()=>{i.forEach(t=>{let i=p.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==n||n.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=k.get(e);return c.Gt.read(a,!1,!0),()=>{var t;(0,c.WG)(a);let i=D.get(e);if(!i||(i.delete(o),i.size))return;let n=k.get(e);k.delete(e),n&&(L(e).removeEventListener("scroll",n),null==(t=V.get(e))||t(),window.removeEventListener("resize",n))}}let O=new Map;function F({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),O.has(e)||O.set(e,{});let n=O.get(e);return n[i]||(n[i]=(0,h.Jb)()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let n={value:0},s=j(t=>{n.value=100*t[i].progress},{container:e,axis:i});return{currentTime:n,cancel:s}}({source:e,axis:i})),n[i]}function B(t){return t&&(t.target||t.offset)}var z=i(6553);function N(t,e){(0,l.$)(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let _=()=>({scrollX:(0,r.OQ)(0),scrollY:(0,r.OQ)(0),scrollXProgress:(0,r.OQ)(0),scrollYProgress:(0,r.OQ)(0)});function W({container:t,target:e,layoutEffect:i=!0,...n}={}){let s=(0,o.M)(_);return(i?z.E:a.useEffect)(()=>(N("target",e),N("container",t),function(t,{axis:e="y",...i}={}){var n,s;let r={axis:e,...i};return"function"==typeof t?(n=t,s=r,2===n.length||B(s)?j(t=>{n(t[s.axis].progress,t)},s):d(n,F(s))):function(t,e){if(t.flatten(),B(e))return t.pause(),j(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=F(e);return t.attachTimeline?t.attachTimeline(i,t=>(t.pause(),d(e=>{t.time=t.duration*e},i))):u.l}}(t,r)}((t,{x:e,y:i})=>{s.scrollX.set(e.current),s.scrollXProgress.set(e.progress),s.scrollY.set(i.current),s.scrollYProgress.set(i.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),s}},4416:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(2115);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},4652:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(8140),s=i(5040),r=i(1356),o=n._(i(1124));function a(t){let{props:e}=(0,s.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=r.Image},4741:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>s});let n={current:null},s={current:!1}},4841:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return f},defaultHead:function(){return c}});let n=i(8140),s=i(9417),r=i(5155),o=s._(i(2115)),a=n._(i(1262)),l=i(737),h=i(2073),u=i(861);function c(t){void 0===t&&(t=!1);let e=[(0,r.jsx)("meta",{charSet:"utf-8"},"charset")];return t||e.push((0,r.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),e}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===o.default.Fragment?t.concat(o.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}i(4781);let p=["name","httpEquiv","charSet","itemProp"];function m(t,e){let{inAmpMode:i}=e;return t.reduce(d,[]).reverse().concat(c(i).reverse()).filter(function(){let t=new Set,e=new Set,i=new Set,n={};return s=>{let r=!0,o=!1;if(s.key&&"number"!=typeof s.key&&s.key.indexOf("$")>0){o=!0;let e=s.key.slice(s.key.indexOf("$")+1);t.has(e)?r=!1:t.add(e)}switch(s.type){case"title":case"base":e.has(s.type)?r=!1:e.add(s.type);break;case"meta":for(let t=0,e=p.length;t{let i=t.key||e;return o.default.cloneElement(t,{key:i})})}let f=function(t){let{children:e}=t,i=(0,o.useContext)(l.AmpStateContext),n=(0,o.useContext)(h.HeadManagerContext);return(0,r.jsx)(a.default,{reduceComponentsToState:m,headManager:n,inAmpMode:(0,u.isInAmpMode)(i),children:e})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5040:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return l}}),i(4781);let n=i(4105),s=i(821),r=["-moz-initial","fill","none","scale-down",void 0];function o(t){return void 0!==t.default}function a(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function l(t,e){var i,l;let h,u,c,{src:d,sizes:p,unoptimized:m=!1,priority:f=!1,loading:v,className:g,quality:y,width:x,height:w,fill:S=!1,style:b,overrideSrc:P,onLoad:T,onLoadingComplete:E,placeholder:A="empty",blurDataURL:M,fetchPriority:C,decoding:R="async",layout:k,objectFit:V,objectPosition:D,lazyBoundary:L,lazyRoot:j,...O}=t,{imgConf:F,showAltText:B,blurComplete:z,defaultLoader:N}=e,_=F||s.imageConfigDefault;if("allSizes"in _)h=_;else{let t=[..._.deviceSizes,..._.imageSizes].sort((t,e)=>t-e),e=_.deviceSizes.sort((t,e)=>t-e),n=null==(i=_.qualities)?void 0:i.sort((t,e)=>t-e);h={..._,allSizes:t,deviceSizes:e,qualities:n}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let W=O.loader||N;delete O.loader,delete O.srcSet;let I="__next_img_default"in W;if(I){if("custom"===h.loader)throw Object.defineProperty(Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=W;W=e=>{let{config:i,...n}=e;return t(n)}}if(k){"fill"===k&&(S=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];t&&(b={...b,...t});let e={responsive:"100vw",fill:"100vw"}[k];e&&!p&&(p=e)}let U="",$=a(x),G=a(w);if((l=d)&&"object"==typeof l&&(o(l)||void 0!==l.src)){let t=o(d)?d.default:d;if(!t.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(u=t.blurWidth,c=t.blurHeight,M=M||t.blurDataURL,U=t.src,!S)if($||G){if($&&!G){let e=$/t.width;G=Math.round(t.height*e)}else if(!$&&G){let e=G/t.height;$=Math.round(t.width*e)}}else $=t.width,G=t.height}let H=!f&&("lazy"===v||void 0===v);(!(d="string"==typeof d?d:U)||d.startsWith("data:")||d.startsWith("blob:"))&&(m=!0,H=!1),h.unoptimized&&(m=!0),I&&!h.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(m=!0);let X=a(y),q=Object.assign(S?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:V,objectPosition:D}:{},B?{}:{color:"transparent"},b),Y=z||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:$,heightInt:G,blurWidth:u,blurHeight:c,blurDataURL:M||"",objectFit:q.objectFit})+'")':'url("'+A+'")',K=r.includes(q.objectFit)?"fill"===q.objectFit?"100% 100%":"cover":q.objectFit,Q=Y?{backgroundSize:K,backgroundPosition:q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Z=function(t){let{config:e,src:i,unoptimized:n,width:s,quality:r,sizes:o,loader:a}=t;if(n)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:h}=function(t,e,i){let{deviceSizes:n,allSizes:s}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(i);)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:s.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:s,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>s.find(e=>e>=t)||s[s.length-1]))],kind:"x"}}(e,s,o),u=l.length-1;return{sizes:o||"w"!==h?o:"100vw",srcSet:l.map((t,n)=>a({config:e,src:i,quality:r,width:t})+" "+("w"===h?t:n+1)+h).join(", "),src:a({config:e,src:i,quality:r,width:l[u]})}}({config:h,src:d,unoptimized:m,width:$,quality:X,sizes:p,loader:W});return{props:{...O,loading:H?"lazy":v,fetchPriority:C,width:$,height:G,decoding:R,className:g,style:{...q,...Q},sizes:Z.sizes,srcSet:Z.srcSet,src:P||Z.src},meta:{unoptimized:m,priority:f,placeholder:A,fill:S}}}},5220:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>h,px:()=>o,uj:()=>s,vh:()=>a,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=n("deg"),r=n("%"),o=n("px"),a=n("vh"),l=n("vw"),h={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},5221:(t,e,i)=>{i.d(e,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}},5239:(t,e,i)=>{i.d(e,{default:()=>s.a});var n=i(4652),s=i.n(n)},5295:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},5446:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(4369),s=i(7137),r=i(5295),o=i(8798);let a={...s.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,r.a)(s.X4.transform(n))+")"}},5601:(t,e,i)=>{i.d(e,{xQ:()=>r});var n=i(2115),s=i(9686);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{t&&a(l)},[t]);let h=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,h]:[!0]}},5850:(t,e,i)=>{i.d(e,{F:()=>s});let n=(t,e)=>i=>e(t(i)),s=(...t)=>t.reduce(n)},6125:(t,e,i)=>{i.d(e,{u:()=>s});var n=i(5446);let s={test:(0,i(8798).$)("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:n.B.transform}},6280:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},6553:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(2115);let s=i(3577).B?n.useLayoutEffect:n.useEffect},6554:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(7137),s=i(5220),r=i(5295),o=i(8798);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+s.KN.transform((0,r.a)(e))+", "+s.KN.transform((0,r.a)(i))+", "+(0,r.a)(n.X4.transform(o))+")"}},7137:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>s,hs:()=>o});var n=i(4369);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...s,transform:t=>(0,n.q)(0,1,t)},o={...s,default:1}},7154:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(6125),s=i(6554),r=i(5446);let o={test:t=>r.B.test(t)||n.u.test(t)||s.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):s.V.test(t)?s.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):s.V.transform(t)}},7290:(t,e,i)=>{i.d(e,{X:()=>s,f:()=>n});let n=t=>1e3*t,s=t=>t/1e3},7929:(t,e,i)=>{i.d(e,{Gt:()=>s,PP:()=>a,WG:()=>r,uv:()=>o});var n=i(4119);let{schedule:s,cancel:r,state:o,steps:a}=(0,i(9267).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},8041:(t,e,i)=>{i.d(e,{$:()=>s,V:()=>r});var n=i(4119);let s=n.l,r=n.l},8640:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},8662:(t,e,i)=>{i.d(e,{U:()=>r});var n=i(3577),s=i(4741);function r(){if(s.r.current=!0,n.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.O.current=t.matches;t.addListener(e),e()}else s.O.current=!1}},8798:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>o});var n=i(8640);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,o,a,l]=s.match(n.S);return{[t]:parseFloat(r),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8871:(t,e,i)=>{let n;i.d(e,{k:()=>a});var s=i(5221),r=i(7929);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},9132:(t,e,i)=>{i.d(e,{J:()=>a,D:()=>o});let n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function s(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||n.has(t)}let r=t=>!s(t);function o(t){t&&(r=e=>e.startsWith("on")?!s(e):t(e))}try{o(require("@emotion/is-prop-valid").default)}catch(t){}function a(t,e,i){let n={};for(let o in t)("values"!==o||"object"!=typeof t.values)&&(r(o)||!0===i&&s(o)||!e&&!s(o)||t.draggable&&o.startsWith("onDrag"))&&(n[o]=t[o]);return n}},9267:(t,e,i)=>{i.d(e,{I:()=>r});var n=i(5221);let s=["read","resolveKeyframes","update","preRender","render","postRender"];function r(t,e){let i=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=s.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&n?e:i;return s&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(a),t),{}),{read:h,resolveKeyframes:u,update:c,preRender:d,render:p,postRender:m}=l,f=()=>{let s=n.W.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=r?1e3/60:Math.max(Math.min(s-o.timestamp,40),1),o.timestamp=s,o.isProcessing=!0,h.process(o),u.process(o),c.process(o),d.process(o),p.process(o),m.process(o),o.isProcessing=!1,i&&e&&(r=!1,t(f))};return{schedule:s.reduce((e,n)=>{let s=l[n];return e[n]=(e,n=!1,a=!1)=>(!i&&(i=!0,r=!0,o.isProcessing||t(f)),s.schedule(e,n,a)),e},{}),cancel:t=>{for(let e=0;e{i.d(e,{G:()=>c});var n=i(181),s=i(2115),r=i(9568),o=i(3127),a=i(4416),l=i(6553),h=i(7929);function u(t,e){let i=function(t){let e=(0,a.M)(()=>(0,r.OQ)(t)),{isStatic:i}=(0,s.useContext)(o.Q);if(i){let[,i]=(0,s.useState)(t);(0,s.useEffect)(()=>e.on("change",i),[])}return e}(e()),n=()=>i.set(e());return n(),(0,l.E)(()=>{let e=()=>h.Gt.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,h.WG)(n)}}),i}function c(t,e,i,s){if("function"==typeof t){r.bt.current=[],t();let e=u(r.bt.current,t);return r.bt.current=void 0,e}let o="function"==typeof e?e:function(...t){let e,i,s=!Array.isArray(t[0]),r=s?0:-1,o=t[0+r],a=t[1+r],l=t[2+r],h=t[3+r],u=(0,n.G)(a,l,{mixer:(i=e=l[0])&&"object"==typeof i&&i.mix?e.mix:void 0,...h});return s?u(o):u}(e,i,s);return Array.isArray(t)?d(t,o):d([t],([t])=>o(t))}function d(t,e){let i=(0,a.M)(()=>[]);return u(t,()=>{i.length=0;let n=t.length;for(let e=0;e{i.d(e,{OQ:()=>h,bt:()=>a});var n=i(8871),s=i(2863),r=i(6280),o=i(7929);let a={current:void 0};class l{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=n.k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=n.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new l(t,e)}},9686:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(2115).createContext)(null)},9862:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});let n=i(8140)._(i(2115)).default.createContext(null)}}]);