(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57181,(e,t,i)=>{"use strict";var n=e.r(82090).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;i.c=function(e){return n.H.useMemoCache(e)}},33558,(e,t,i)=>{"use strict";t.exports=e.r(57181)},37167,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(44219)._(e.r(72671)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:i}=e,n=e.protocol||"",r=e.pathname||"",a=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:i&&(u=t+(~i.indexOf(":")?`[${i}]`:i),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),r&&"/"!==r[0]&&(r="/"+r)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),r=r.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${n}${u}${r}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},61478,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=e.r(82090);function r(e,t){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=i.current;e&&(i.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(i.current=s(e,n)),t&&(r.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let i=e(t);return"function"==typeof i?i:()=>e(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},10937,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(33672),r=e.r(28891);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),i=new URL(e,t);return i.origin===t&&(0,r.hasBasePath)(i.pathname)}catch(e){return!1}}},44129,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},44346,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return A}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(44219),o=e.r(71831),a=s._(e.r(82090)),l=e.r(37167),u=e.r(47937),h=e.r(61478),c=e.r(33672),d=e.r(52224);e.r(19927);let p=e.r(89780),m=e.r(45726),f=e.r(10937),g=e.r(28167);function y(t){var i,n;let r,s,y,[A,b]=(0,a.useOptimistic)(m.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:w,as:S,children:P,prefetch:T=null,passHref:E,replace:_,shallow:C,scroll:k,onClick:M,onMouseEnter:V,onTouchStart:R,legacyBehavior:j=!1,onNavigate:O,transitionTypes:L,ref:D,unstable_dynamicOnHover:B,...I}=t;r=P,j&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let N=a.default.useContext(u.AppRouterContext),F=!1!==T,U=!1!==T?null===(n=T)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,W="string"==typeof(i=S||w)?i:(0,l.formatUrl)(i);if(j){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(r)}let $=j?s&&"object"==typeof s&&s.ref:D,z=a.default.useCallback(e=>(null!==N&&(x.current=(0,m.mountLinkInstance)(e,W,N,U,F,b)),()=>{x.current&&((0,m.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,m.unmountPrefetchableInstance)(e)}),[F,W,N,U,b]),H={ref:(0,h.useMergedRef)(z,$),onClick(t){j||"function"!=typeof M||M(t),j&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!N||t.defaultPrevented||function(t,i,n,r,s,o,l){if("u">typeof window){let u,{nodeName:h}=t.currentTarget;if("A"===h.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(i)){r&&(t.preventDefault(),location.replace(i));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(19325);a.default.startTransition(()=>{c(i,r?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l)})}}(t,W,x,_,k,O,L)},onMouseEnter(e){j||"function"!=typeof V||V(e),j&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),N&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===B)},onTouchStart:function(e){j||"function"!=typeof R||R(e),j&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),N&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===B)}};return(0,c.isAbsoluteUrl)(W)?H.href=W:j&&!E&&("a"!==s.type||"href"in s.props)||(H.href=(0,d.addBasePath)(W)),y=j?a.default.cloneElement(s,H):(0,o.jsx)("a",{...I,...H,children:r}),(0,o.jsx)(v.Provider,{value:A,children:y})}e.r(44129);let v=(0,a.createContext)(m.IDLE_LINK_STATUS),A=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},20501,(e,t,i)=>{t.exports=e.r(2573)},59645,(e,t,i)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:i,blurHeight:r,blurDataURL:s,objectFit:o}){let a=i?40*i:e,l=r?40*r:t,u=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%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='${u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},72289,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return o}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},32509,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return u}}),e.r(19927);let n=e.r(81349),r=e.r(59645),s=e.r(72289),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:i=!1,priority:h=!1,preload:c=!1,loading:d,className:p,quality:m,width:f,height:g,fill:y=!1,style:v,overrideSrc:A,onLoad:b,onLoadingComplete:x,placeholder:w="empty",blurDataURL:S,fetchPriority:P,decoding:T="async",layout:E,objectFit:_,objectPosition:C,lazyBoundary:k,lazyRoot:M,...V},R){var j;let O,L,D,{imgConf:B,showAltText:I,blurComplete:N,defaultLoader:F}=R,U=B||s.imageConfigDefault;if("allSizes"in U)O=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),i=U.qualities?.sort((e,t)=>e-t);O={...U,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===F)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=V.loader||F;delete V.loader,delete V.srcSet;let $="__next_img_default"in W;if($){if("custom"===O.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=W;W=t=>{let{config:i,...n}=t;return e(n)}}if(E){"fill"===E&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];e&&(v={...v,...e});let i={responsive:"100vw",fill:"100vw"}[E];i&&!t&&(t=i)}let z="",H=l(f),Y=l(g);if((j=e)&&"object"==typeof j&&(a(j)||void 0!==j.src)){let t=a(e)?e.default:e;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(L=t.blurWidth,D=t.blurHeight,S=S||t.blurDataURL,z=t.src,!y)if(H||Y){if(H&&!Y){let e=H/t.width;Y=Math.round(t.height*e)}else if(!H&&Y){let e=Y/t.height;H=Math.round(t.width*e)}}else H=t.width,Y=t.height}let X=!h&&!c&&("lazy"===d||void 0===d);(!(e="string"==typeof e?e:z)||e.startsWith("data:")||e.startsWith("blob:"))&&(i=!0,X=!1),O.unoptimized&&(i=!0),$&&!O.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(i=!0);let G=l(m),K=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:C}:{},I?{}:{color:"transparent"},v),q=N||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,r.getImageBlurSvg)({widthInt:H,heightInt:Y,blurWidth:L,blurHeight:D,blurDataURL:S||"",objectFit:K.objectFit})}")`:`url("${w}")`,Q=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Z=q?{backgroundSize:Q,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},J=function({config:e,src:t,unoptimized:i,width:r,quality:s,sizes:o,loader:a}){if(i){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let i=t.indexOf("?");if(-1!==i){let n=new URLSearchParams(t.slice(i+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,i)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:e,allSizes:t},i,n){if(n){let i=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=i.exec(n);)r.push(parseInt(e[2]));if(r.length){let i=.01*Math.min(...r);return{widths:t.filter(t=>t>=e[0]*i),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof i?{widths:e,kind:"w"}:{widths:[...new Set([i,2*i].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((i,n)=>`${a({config:e,src:t,quality:s,width:i})} ${"w"===u?i:n+1}${u}`).join(", "),src:a({config:e,src:t,quality:s,width:l[h]})}}({config:O,src:e,unoptimized:i,width:H,quality:G,sizes:t,loader:W}),ee=X?"lazy":d;return{props:{...V,loading:ee,fetchPriority:P,width:H,height:Y,decoding:T,className:p,style:{...K,...Z},sizes:J.sizes,srcSet:J.srcSet,src:A||J.src},meta:{unoptimized:i,preload:c||h,placeholder:w,fill:y}}}},88161,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=e.r(82090),r="u"<typeof window,s=r?()=>{}:n.useLayoutEffect,o=r?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:i}=e;function a(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(i(e))}}return r&&(t?.mountedInstances?.add(e.children),a()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},64968,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return f},defaultHead:function(){return c}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(2197),o=e.r(44219),a=e.r(71831),l=o._(e.r(82090)),u=s._(e.r(88161)),h=e.r(94166);function c(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(19927);let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,i,n,r;return e.reduce(d,[]).reverse().concat(c().reverse()).filter((t=new Set,i=new Set,n=new Set,r={},e=>{let s=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let i=e.key.slice(e.key.indexOf("$")+1);t.has(i)?s=!1:t.add(i)}switch(e.type){case"title":case"base":i.has(e.type)?s=!1:i.add(e.type);break;case"meta":for(let t=0,i=p.length;t<i;t++){let i=p[t];if(e.props.hasOwnProperty(i))if("charSet"===i)n.has(i)?s=!1:n.add(i);else{let t=e.props[i],n=r[i]||new Set;("name"!==i||!o)&&n.has(t)?s=!1:(n.add(t),r[i]=n)}}}return s})).reverse().map((e,t)=>{let i=e.key||t;return l.default.cloneElement(e,{key:i})})}let f=function({children:e}){let t=(0,l.useContext)(h.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},98074,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(2197)._(e.r(82090)),r=e.r(72289),s=n.default.createContext(r.imageConfigDefault)},60891,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(2197)._(e.r(82090)).default.createContext(null)},53966,(e,t,i)=>{"use strict";function n(e,t){let i=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e,t.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return n}})},76246,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let n=e.r(53966),r=e.r(81349);function s({config:e,src:t,width:i,quality:o}){let a=(0,r.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let i=new URLSearchParams(t.slice(e+1)),n=i.get("dpl");if(n){a=n,i.delete("dpl");let r=i.toString();t=t.slice(0,e)+(r?"?"+r:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${i}&q=${l}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},28138,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return b}});let n=e.r(2197),r=e.r(44219),s=e.r(71831),o=r._(e.r(82090)),a=n._(e.r(2028)),l=n._(e.r(64968)),u=e.r(32509),h=e.r(72289),c=e.r(98074);e.r(19927);let d=e.r(60891),p=n._(e.r(76246)),m=e.r(61478),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75,90],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,i,n,r,s,o){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),i?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,r=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,o.forwardRef)(({src:e,srcSet:t,sizes:i,height:n,width:r,decoding:a,className:l,style:u,fetchPriority:h,placeholder:c,loading:d,unoptimized:p,fill:f,onLoadRef:v,onLoadingCompleteRef:A,setBlurComplete:b,setShowAltText:x,sizesInput:w,onLoad:S,onError:P,...T},E)=>{let _=(0,o.useCallback)(e=>{e&&(P&&(e.src=e.src),e.complete&&g(e,c,v,A,b,p,w))},[e,c,v,A,b,P,p,w]),C=(0,m.useMergedRef)(E,_);return(0,s.jsx)("img",{...T,...y(h),loading:d,width:r,height:n,decoding:a,"data-nimg":f?"fill":"1",className:l,style:u,sizes:i,srcSet:t,src:e,ref:C,onLoad:e=>{g(e.currentTarget,c,v,A,b,p,w)},onError:e=>{x(!0),"empty"!==c&&b(!0),P&&P(e)}})});function A({isAppRouter:e,imgAttributes:t}){let i={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...i},"__nimg-"+t.src+t.srcSet+t.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),r=(0,o.useMemo)(()=>{let e=f||n||h.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),i=e.deviceSizes.sort((e,t)=>e-t),r=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i,qualities:r,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:a,onLoadingComplete:l}=e,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:S,meta:P}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:r,blurComplete:y,showAltText:x});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...S,unoptimized:P.unoptimized,placeholder:P.placeholder,fill:P.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,sizesInput:e.sizes,ref:t}),P.preload?(0,s.jsx)(A,{isAppRouter:!i,imgAttributes:S}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},29712,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return h},getImageProps:function(){return u}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(2197),o=e.r(32509),a=e.r(28138),l=s._(e.r(76246));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75,90],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let h=a.Image},37318,(e,t,i)=>{t.exports=e.r(29712)},90863,e=>{e.v({active:"Navbar-module__nO_aVW__active",activeUnderline:"Navbar-module__nO_aVW__activeUnderline",chevron:"Navbar-module__nO_aVW__chevron",desktopMenu:"Navbar-module__nO_aVW__desktopMenu",dropdownLink:"Navbar-module__nO_aVW__dropdownLink",dropdownPanel:"Navbar-module__nO_aVW__dropdownPanel",dropdownTrigger:"Navbar-module__nO_aVW__dropdownTrigger",dropdownWrapper:"Navbar-module__nO_aVW__dropdownWrapper",hamburger:"Navbar-module__nO_aVW__hamburger",hamburgerOpen:"Navbar-module__nO_aVW__hamburgerOpen",header:"Navbar-module__nO_aVW__header",iconContainer:"Navbar-module__nO_aVW__iconContainer",itemIcon:"Navbar-module__nO_aVW__itemIcon",langChevron:"Navbar-module__nO_aVW__langChevron",langCode:"Navbar-module__nO_aVW__langCode",langDropdown:"Navbar-module__nO_aVW__langDropdown",langFlag:"Navbar-module__nO_aVW__langFlag",langFlagImage:"Navbar-module__nO_aVW__langFlagImage",langOption:"Navbar-module__nO_aVW__langOption",langOptionActive:"Navbar-module__nO_aVW__langOptionActive",langPanel:"Navbar-module__nO_aVW__langPanel",langToggle:"Navbar-module__nO_aVW__langToggle",leftSection:"Navbar-module__nO_aVW__leftSection",linkText:"Navbar-module__nO_aVW__linkText",logoImage:"Navbar-module__nO_aVW__logoImage",menuItem:"Navbar-module__nO_aVW__menuItem",mobileChevronIcon:"Navbar-module__nO_aVW__mobileChevronIcon",mobileContent:"Navbar-module__nO_aVW__mobileContent",mobileDropdownBtn:"Navbar-module__nO_aVW__mobileDropdownBtn",mobileLangActive:"Navbar-module__nO_aVW__mobileLangActive",mobileLangBtn:"Navbar-module__nO_aVW__mobileLangBtn",mobileLangFlag:"Navbar-module__nO_aVW__mobileLangFlag",mobileLangRow:"Navbar-module__nO_aVW__mobileLangRow",mobileLink:"Navbar-module__nO_aVW__mobileLink",mobileOverlay:"Navbar-module__nO_aVW__mobileOverlay",mobileSubLink:"Navbar-module__nO_aVW__mobileSubLink",mobileSubmenu:"Navbar-module__nO_aVW__mobileSubmenu",navLink:"Navbar-module__nO_aVW__navLink",navbar:"Navbar-module__nO_aVW__navbar",rightSection:"Navbar-module__nO_aVW__rightSection",triggerActive:"Navbar-module__nO_aVW__triggerActive"})},14625,e=>{e.v({bottom:"Footer-module__kCscxa__bottom",brand:"Footer-module__kCscxa__brand",column:"Footer-module__kCscxa__column",columnTitle:"Footer-module__kCscxa__columnTitle",copy:"Footer-module__kCscxa__copy",description:"Footer-module__kCscxa__description",footer:"Footer-module__kCscxa__footer",footerLink:"Footer-module__kCscxa__footerLink",links:"Footer-module__kCscxa__links",linksGrid:"Footer-module__kCscxa__linksGrid",logo:"Footer-module__kCscxa__logo",socialBtn:"Footer-module__kCscxa__socialBtn",socialIcon:"Footer-module__kCscxa__socialIcon",socials:"Footer-module__kCscxa__socials",top:"Footer-module__kCscxa__top"})},11808,74466,41302,93537,47581,9698,e=>{"use strict";let t,i,n;var r,s=e.i(71831),o=e.i(33558),a=e.i(82090),l=e.i(44346),u=e.i(20501);let h=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],c=new Set(h),d=(e,t,i)=>i>t?t:i<e?e:i,p={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},m={...p,transform:e=>d(0,1,e)},f={...p,default:1},g=e=>Math.round(1e5*e)/1e5,y=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,v=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,A=(e,t)=>i=>!!("string"==typeof i&&v.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),b=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(y);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},x={...p,transform:e=>Math.round(d(0,255,e))},w={test:A("rgb","red"),parse:b("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+x.transform(e)+", "+x.transform(t)+", "+x.transform(i)+", "+g(m.transform(n))+")"},S={test:A("#"),parse:function(e){let t="",i="",n="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:w.transform},P=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),T=P("deg"),E=P("%"),_=P("px"),C=P("vh"),k=P("vw"),M={...E,parse:e=>E.parse(e)/100,transform:e=>E.transform(100*e)},V={test:A("hsl","hue"),parse:b("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+E.transform(g(t))+", "+E.transform(g(i))+", "+g(m.transform(n))+")"},R={test:e=>w.test(e)||S.test(e)||V.test(e),parse:e=>w.test(e)?w.parse(e):V.test(e)?V.parse(e):S.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?w.transform(e):V.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},j=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,O="number",L="color",D=/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 B(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=t.replace(D,e=>(R.test(e)?(n.color.push(s),r.push(L),i.push(R.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(O),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function I({split:e,types:t}){let i=e.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=e[s],void 0!==n[s]){let e=t[s];e===O?r+=g(n[s]):e===L?r+=R.transform(n[s]):r+=n[s]}return r}}let N={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(y)?.length||0)+(e.match(j)?.length||0)>0},parse:function(e){return B(e).values},createTransformer:function(e){return I(B(e))},getAnimatableNone:function(e){let t=B(e);return I(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:R.test(e)?R.getAnimatableNone(e):e)(e,t.split[i])))}},F=new Set(["brightness","contrast","saturate","opacity"]);function U(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(y)||[];if(!n)return e;let r=i.replace(n,""),s=+!!F.has(t);return n!==i&&(s*=100),t+"("+s+r+")"}let W=/\b([a-z-]*)\(.*?\)/gu,$={...N,getAnimatableNone:e=>{let t=e.match(W);return t?t.map(U).join(" "):e}},z={...N,getAnimatableNone:e=>{let t=N.parse(e);return N.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},H={...p,transform:Math.round},Y={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,fontSize:_,backgroundPositionX:_,backgroundPositionY:_,rotate:T,rotateX:T,rotateY:T,rotateZ:T,scale:f,scaleX:f,scaleY:f,scaleZ:f,skew:T,skewX:T,skewY:T,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:m,originX:M,originY:M,originZ:_,zIndex:H,fillOpacity:m,strokeOpacity:m,numOctaves:H},X={...Y,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:$,WebkitFilter:$,mask:z,WebkitMask:z},G=e=>X[e],K=()=>({translate:0,scale:1,origin:0,originPoint:0}),q=()=>({x:K(),y:K()}),Q=()=>({min:0,max:0}),Z=()=>({x:Q(),y:Q()}),J=e=>!!(e&&e.getVelocity),ee=new Set(["width","height","top","left","right","bottom",...h]),et=e=>t=>t.test(e),ei=[p,_,E,T,k,C,{test:e=>"auto"===e,parse:e=>e}],en=e=>ei.find(et(e));var er=e.i(53388);let es=()=>{},eo=()=>{};er.default;let ea=e=>t=>"string"==typeof t&&t.startsWith(e),el=ea("--"),eu=ea("var(--"),eh=e=>!!eu(e)&&ec.test(e.split("/*")[0].trim()),ec=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ed(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ep=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,em=e=>180*e/Math.PI,ef=e=>ey(em(Math.atan2(e[1],e[0]))),eg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ef,rotateZ:ef,skewX:e=>em(Math.atan(e[1])),skewY:e=>em(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ey=e=>((e%=360)<0&&(e+=360),e),ev=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ev,scaleY:eA,scale:e=>(ev(e)+eA(e))/2,rotateX:e=>ey(em(Math.atan2(e[6],e[5]))),rotateY:e=>ey(em(Math.atan2(-e[2],e[0]))),rotateZ:ef,rotate:ef,skewX:e=>em(Math.atan(e[4])),skewY:e=>em(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ex(e){return+!!e.includes("scale")}function ew(e,t){let i,n;if(!e||"none"===e)return ex(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=eb,n=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eg,n=t}if(!n)return ex(t);let s=i[t],o=n[1].split(",").map(eS);return"function"==typeof s?s(o):o[s]}function eS(e){return parseFloat(e.trim())}let eP=e=>e===p||e===_,eT=new Set(["x","y","z"]),eE=h.filter(e=>!eT.has(e)),e_={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ew(t,"x"),y:(e,{transform:t})=>ew(t,"y")};e_.translateX=e_.x,e_.translateY=e_.y;let eC=e=>e,ek={},eM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eV(e,t){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=eM.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){o.has(t)&&(h.schedule(t),e()),l++,t(a)}let h={schedule:(e,t=!1,s=!1)=>{let a=s&&r?i:n;return t&&o.add(e),a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(a=e,r){s=!0;return}r=!0;let o=i;i=n,n=o,i.forEach(u),t,l=0,i.clear(),r=!1,s&&(s=!1,h.process(e))}};return h}(s,t?i:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let s=ek.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&t&&(n=!1,e(f))};return{schedule:eM.reduce((t,s)=>{let a=o[s];return t[s]=(t,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||e(f)),a.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<eM.length;t++)o[eM[t]].cancel(e)},state:r,steps:o}}let{schedule:eR,cancel:ej,state:eO,steps:eL}=eV("u">typeof requestAnimationFrame?requestAnimationFrame:eC,!0),eD=new Set,eB=!1,eI=!1,eN=!1;function eF(){if(eI){let e=Array.from(eD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,n=(t=[],eE.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t);n.length&&(i.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eI=!1,eB=!1,eD.forEach(e=>e.complete(eN)),eD.clear()}function eU(){eD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eI=!0)})}class eW{constructor(e,t,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eD.add(this),eB||(eB=!0,eR.read(eU),eR.resolveKeyframes(eF))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let r=n?.get(),s=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let n=i.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===r&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eD.delete(this)}cancel(){"scheduled"===this.state&&(eD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let e$=new Set([$,z]);function ez(e,t){let i=G(e);return e$.has(i)||(i=N),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eH=new Set(["auto","none","0"]);class eY extends eW{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&eh(n=n.trim())){let r=function e(t,i,n=1){eo(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(e){let t=ep.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(t);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eh(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ee.has(i)||2!==e.length)return;let[n,r]=e,s=en(n),o=en(r);if(ed(n)!==ed(r)&&e_[i]){this.needsMeasurement=!0;return}if(s!==o)if(eP(s)&&eP(o))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else e_[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!eH.has(t)&&B(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=ez(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=e_[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=e_[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eX=e=>1e3*e;function eG(e,t){-1===e.indexOf(t)&&e.push(t)}function eK(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class eq{constructor(){this.subscriptions=[]}add(e){return eG(this.subscriptions,e),()=>eK(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eQ(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function eZ(e){let t;return()=>(void 0===t&&(t=e()),t)}let eJ={};function e0(e,t){let i=eZ(e);return()=>eJ[t]??i()}let e1=e0(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e2=e0(()=>void 0!==window.ViewTimeline,"viewTimeline"),e3=e=>null!==e;function e5(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(e3),o=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class e4{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e9={layout:0,mainThread:0,waapi:0},e6=e=>Array.isArray(e)&&"number"==typeof e[0],e8=e0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e7=(e,t,i=10)=>{let n="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)n+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},te=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,tt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:te([0,.65,.55,1]),circOut:te([.55,0,1,.45]),backIn:te([.31,.01,.66,-.59]),backOut:te([.33,1.53,.69,.99])};function ti(e){return"function"==typeof e&&"applyToOptions"in e}class tn extends e4{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=e,eo("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return ti(e)&&e8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[t]:i};l&&(h.offset=l);let c=function e(t,i){if(t)return"function"==typeof t?e8()?e7(t,i):"ease-out":e6(t)?te(t):Array.isArray(t)?t.map(t=>e(t,i)||tt.easeOut):tt[t]}(a,r);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=e.animate(h,d);return p}(t,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=e5(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eQ(t,i,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eX(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e1())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),eC):n(this)}}let tr=new Set(["opacity","clipPath","filter","transform"]),{schedule:ts}=eV(queueMicrotask,!1);function to(){t=void 0}let ta={now:()=>(void 0===t&&ta.set(eO.isProcessing||ek.useManualTiming?eO.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(to)}};function tl(e,t){return t?1e3/t*e:0}let tu={current:void 0};class th{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ta.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ta.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eq);let i=this.events[e].add(t);return"change"===e?()=>{i(),eR.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tu.current&&tu.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=ta.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tc(e,t){return new th(e,t)}let td=[...ei,R,N],tp=new WeakMap;function tm(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tf(e){return"string"==typeof e||Array.isArray(e)}let tg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ty=["initial",...tg];function tv(e){return tm(e.animate)||ty.some(t=>tf(e[t]))}function tA(e){return!!(tv(e)||e.variants)}let tb={current:null},tx={current:!1},tw="u">typeof window;function tS(e){let t=[{},{}];return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tP(e,t,i,n){if("function"==typeof t){let[r,s]=tS(n);t=t(void 0!==i?i:e.custom,r,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,s]=tS(n);t=t(void 0!==i?i:e.custom,r,s)}return t}let tT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tE={};class t_{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eW,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 e=ta.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eR.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=tv(t),this.isVariantNode=tA(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&J(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tp.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tx.current||function(){if(tx.current=!0,tw)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tb.current=e.matches;e.addEventListener("change",t),t()}else tb.current=!1}(),this.shouldReduceMotion=tb.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),ej(this.notifyUpdate),ej(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tr.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=t.accelerate,a=new tn({element:this.current,name:e,keyframes:n,times:r,ease:s,duration:eX(o)}),l=i(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let n=c.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eR.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tE){let t=tE[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tT.length;t++){let i=tT[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let r=t[n],s=i[n];if(J(r))e.addValue(n,r);else if(J(s))e.addValue(n,tc(r,{owner:e}));else if(s!==r)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(n);e.addValue(n,tc(void 0!==t?t:r,{owner:e}))}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=tc(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let n,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!td.find(et(n))&&N.test(t)&&(i=ez(e,t))}this.setBaseTarget(e,J(i)?i.get():i)}return J(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tP(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||J(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new eq),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ts.render(this.render)}}class tC extends t_{constructor(){super(...arguments),this.KeyframeResolver=eY}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;J(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tk(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tM=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tR=h.length;function tj(e,t,i){let{style:n,vars:r,transformOrigin:s}=e,o=!1,a=!1;for(let e in t){let i=t[e];if(c.has(e)){o=!0;continue}if(el(e)){r[e]=i;continue}{let t=tM(i,Y[e]);e.startsWith("origin")?(a=!0,s[e]=t):n[e]=t}}if(!t.transform&&(o||i?n.transform=function(e,t,i){let n="",r=!0;for(let s=0;s<tR;s++){let o=h[s],a=e[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let e=parseFloat(a);l=o.startsWith("scale")?1===e:0===e}if(!l||i){let e=tM(a,Y[o]);if(!l){r=!1;let t=tV[o]||o;n+=`${t}(${e}) `}i&&(t[o]=e)}}return n=n.trim(),i?n=i(t,r?"":n):r&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;n.transformOrigin=`${e} ${t} ${i}`}}let tO={offset:"stroke-dashoffset",array:"stroke-dasharray"},tL={offset:"strokeDashoffset",array:"strokeDasharray"},tD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tB(e,{attrX:t,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(tj(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:d}=e;for(let e of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),tD))void 0!==c[e]&&(d[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(e,t,i=1,n=0,r=!0){e.pathLength=1;let s=r?tO:tL;e[s.offset]=`${-n}`,e[s.array]=`${t} ${i}`}(c,r,s,o,!1)}let tI=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"]),tN=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tF(e,{style:t,vars:i},n,r){let s,o=e.style;for(s in t)o[s]=t[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function tU(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!_.test(e))return e;else e=parseFloat(e);let i=tU(e,t.target.x),n=tU(e,t.target.y);return`${i}% ${n}%`}},t$=(e,t,i)=>e+(t-e)*i,tz={borderRadius:{...tW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tW,borderTopRightRadius:tW,borderBottomLeftRadius:tW,borderBottomRightRadius:tW,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=N.parse(e);if(n.length>5)return e;let r=N.createTransformer(e),s=+("number"!=typeof n[0]),o=i.x.scale*t.x,a=i.y.scale*t.y;n[0+s]/=o,n[1+s]/=a;let l=t$(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function tH(e,{layout:t,layoutId:i}){return c.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tz[e]||"opacity"===e)}function tY(e,t,i){let n=e.style,r=t?.style,s={};if(!n)return s;for(let t in n)(J(n[t])||r&&J(r[t])||tH(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=n[t]);return s}function tX(e,t,i){let n=tY(e,t,i);for(let i in e)(J(e[i])||J(t[i]))&&(n[-1!==h.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}class tG extends tC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(c.has(t)){let e=G(t);return e&&e.default||0}return t=tI.has(t)?t:tk(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tX(e,t,i)}build(e,t,i){tB(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in tF(e,t,void 0,n),t.attrs)e.setAttribute(tI.has(i)?i:tk(i),t.attrs[i])}mount(e){this.isSVGTag=tN(e.tagName),super.mount(e)}}function tK({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function tq(e){return void 0===e||1===e}function tQ({scale:e,scaleX:t,scaleY:i}){return!tq(e)||!tq(t)||!tq(i)}function tZ(e){return tQ(e)||tJ(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tJ(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function t0(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function t1(e,t=0,i=1,n,r){e.min=t0(e.min,t,i,n,r),e.max=t0(e.max,t,i,n,r)}function t2(e,{x:t,y:i}){t1(e.x,t.translate,t.scale,t.originPoint),t1(e.y,i.translate,i.scale,i.originPoint)}function t3(e,t){e.min+=t,e.max+=t}function t5(e,t,i,n,r=.5){let s=t$(e.min,e.max,r);t1(e,t,i,s,n)}function t4(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t9(e,t,i){let n=i??e;t5(e.x,t4(t.x,n.x),t.scaleX,t.scale,t.originX),t5(e.y,t4(t.y,n.y),t.scaleY,t.scale,t.originY)}function t6(e,t){return tK(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class t8 extends tC{constructor(){super(...arguments),this.type="html",this.renderInstance=tF}readValueFromInstance(e,t){if(c.has(t))return this.projection?.isProjecting?ex(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return ew(i,t)})(e,t);{let i=window.getComputedStyle(e),n=(el(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t6(e,t)}build(e,t,i){tj(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tY(e,t,i)}}let t7=["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 ie(e){if("string"!=typeof e||e.includes("-"));else if(t7.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let it=(0,a.createContext)({}),ii=(0,a.createContext)({strict:!1}),ir=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),is=(0,a.createContext)({});function io(e){return Array.isArray(e)?e.join(" "):e}let ia=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function il(e,t,i){for(let n in t)J(t[n])||tH(n,i)||(e[n]=t[n])}let iu=()=>({...ia(),attrs:{}}),ih=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","propagate","ignoreStrict","viewport"]);function ic(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ih.has(e)}let id=e=>!ic(e);try{r=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof r&&(id=e=>e.startsWith("on")?!ic(e):r(e))}catch{}function ip(e){return J(e)?e.get():e}let im=(0,a.createContext)(null);function ig(e){let t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}let iy=e=>(t,i)=>{let n=(0,a.useContext)(is),r=(0,a.useContext)(im),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,r){return{latestValues:function(e,t,i,n){let r={},s=n(e,{});for(let e in s)r[e]=ip(s[e]);let{initial:o,animate:a}=e,l=tv(e),u=tA(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!tm(c)){let t=Array.isArray(c)?c:[c];for(let i=0;i<t.length;i++){let n=tP(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(i,n,r,e),renderState:t()}})(e,t,n,r);return i?s():ig(s)},iv=iy({scrapeMotionValuesFromProps:tY,createRenderState:ia}),iA=iy({scrapeMotionValuesFromProps:tX,createRenderState:iu}),ib={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"]},ix=!1;function iw(){return!function(){if(ix)return;let e={};for(let t in ib)e[t]={isEnabled:e=>ib[t].some(t=>!!e[t])};tE=e,ix=!0}(),tE}let iS=Symbol.for("motionComponentSymbol"),iP="data-"+tk("framerAppearId"),iT=(0,a.createContext)({});function iE(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let i_="u">typeof window?a.useLayoutEffect:a.useEffect;function iC(e,{forwardMotionProps:t=!1,type:i}={},n,r){n&&function(e){let t=iw();for(let i in e)t[i]={...t[i],...e[i]};tE=t}(n);let o=i?"svg"===i:ie(e),l=o?iA:iv;function u(i,n){var u;let h,c,d,p={...(0,a.useContext)(ir),...i,layoutId:function({layoutId:e}){let t=(0,a.useContext)(it).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:m}=p,f=function(e){let{initial:t,animate:i}=function(e,t){if(tv(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tf(t)?t:void 0,animate:tf(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(is));return(0,a.useMemo)(()=>({initial:t,animate:i}),[io(t),io(i)])}(i),g=l(i,m);if(!m&&"u">typeof window){(0,a.useContext)(ii).strict;let t=function(e){let{drag:t,layout:i}=iw();if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(p);h=t.MeasureLayout,f.visualElement=function(e,t,i,n,r,s){let{visualElement:o}=(0,a.useContext)(is),l=(0,a.useContext)(ii),u=(0,a.useContext)(im),h=(0,a.useContext)(ir),c=h.reducedMotion,d=h.skipAnimations,p=(0,a.useRef)(null),m=(0,a.useRef)(!1);n=n||l.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:o,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:s}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,g=(0,a.useContext)(iT);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iE(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(p.current,i,r,g);let y=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{f&&y.current&&f.update(i,u)});let v=i[iP],A=(0,a.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return i_(()=>{m.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),A.current&&f.animationState&&f.animationState.animateChanges())}),(0,a.useEffect)(()=>{f&&(!A.current&&f.animationState&&f.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),A.current=!1),f.enteringChildren=void 0)}),f}(e,g,p,r,t.ProjectionNode,o)}return(0,s.jsxs)(is.Provider,{value:f,children:[h&&f.visualElement?(0,s.jsx)(h,{visualElement:f.visualElement,...p}):null,function(e,t,i,{latestValues:n},r,s=!1,o){let l=(o??ie(e)?function(e,t,i,n){let r=(0,a.useMemo)(()=>{let i=iu();return tB(i,t,tN(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};il(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i,n,r={},s=(i=e.style||{},il(n={},i,e),Object.assign(n,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let i=ia();return tj(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r})(t,n,r,e),u=function(e,t,i){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!J(e[r])&&(id(r)||!0===i&&ic(r)||!t&&!ic(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,s),h=e!==a.Fragment?{...u,...l,ref:i}:{},{children:c}=t,d=(0,a.useMemo)(()=>J(c)?c.get():c,[c]);return(0,a.createElement)(e,{...h,children:d})}(e,i,(u=f.visualElement,c=(0,a.useRef)(n),(0,a.useInsertionEffect)(()=>{c.current=n}),d=(0,a.useRef)(null),(0,a.useCallback)(e=>{e&&g.onMount?.(e);let t=c.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):t(e);else t&&(t.current=e);u&&(e?u.mount(e):u.unmount())},[u])),g,m,t,o)]})}u.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let h=(0,a.forwardRef)(u);return h[iS]=e,h}class ik{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iM(e,t,i){let n=e.getProps();return tP(n,t,void 0!==i?i:n.custom,e)}function iV(e,t){if(e?.inherit&&t){let{inherit:i,...n}=e;return{...t,...n}}return e}function iR(e,t){let i=e?.[t]??e?.default??e;return i!==e?iV(i,e):i}let ij=e=>Array.isArray(e);function iO(e,t){let i=e.getValue("willChange");if(J(i)&&i.add)return i.add(t);if(!i&&ek.WillChange){let i=new ek.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iL=(e,t)=>i=>t(e(i)),iD=(...e)=>e.reduce(iL);function iB(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iI(e,t){return i=>i>0?t:e}let iN=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},iF=[S,w,V];function iU(e){let t=iF.find(t=>t.test(e));if(es(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===V&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,o=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,a=2*i-n;r=iB(a,n,e+1/3),s=iB(a,n,e),o=iB(a,n,e-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iW=(e,t)=>{let i=iU(e),n=iU(t);if(!i||!n)return iI(e,t);let r={...i};return e=>(r.red=iN(i.red,n.red,e),r.green=iN(i.green,n.green,e),r.blue=iN(i.blue,n.blue,e),r.alpha=t$(i.alpha,n.alpha,e),w.transform(r))},i$=new Set(["none","hidden"]);function iz(e,t){return i=>t$(e,t,i)}function iH(e){return"number"==typeof e?iz:"string"==typeof e?eh(e)?iI:R.test(e)?iW:iG:Array.isArray(e)?iY:"object"==typeof e?R.test(e)?iW:iX:iI}function iY(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>iH(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function iX(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=iH(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let iG=(e,t)=>{let i=N.createTransformer(t),n=B(e),r=B(t);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return es(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iI(e,t);if(i$.has(e)&&!r.values.length||i$.has(t)&&!n.values.length)return i$.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iD(iY(function(e,t){let i=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let s=t.types[r],o=e.indexes[s][n[s]],a=e.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function iK(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?t$(e,t,i):iH(e)(e,t)}let iq=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eR.update(t,e),stop:()=>ej(t),now:()=>eO.isProcessing?eO.timestamp:ta.now()}};function iQ(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let iZ=.01,iJ=2,i0=.005,i1=.5;function i2(e,t){return e*Math.sqrt(1-t*t)}let i3=["duration","bounce"],i5=["stiffness","damping","mass"];function i4(e,t){return t.some(t=>void 0!==e[t])}function i9(e=.3,t=.3){let i,n,r,s,o,a,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:h}=l,c=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:g,mass:y,duration:v,velocity:A,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!i4(e,i5)&&i4(e,i3))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*d(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:r}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:n=1}){let r,s;es(e<=eX(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=d(.05,1,o),e=d(.01,10,e/1e3),o<1?(r=t=>{let n=t*o,r=n*e;return .001-(n-i)/i2(t,o)*Math.exp(-r)},s=t=>{let n=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=i2(Math.pow(t,2),o);return(n*i+i-s)*a*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let a=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(r,s,5/e);if(e=eX(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),x=A||0,w=g/(2*Math.sqrt(f*y)),S=p-c,P=Math.sqrt(f/y)/1e3,T=5>Math.abs(S);if(u||(u=T?iZ:iJ),h||(h=T?i0:i1),w<1)r=i2(P,w),s=(x+w*P*S)/r,i=e=>p-Math.exp(-w*P*e)*(s*Math.sin(r*e)+S*Math.cos(r*e)),o=w*P*s+S*r,a=w*P*S-s*r,n=e=>Math.exp(-w*P*e)*(o*Math.sin(r*e)+a*Math.cos(r*e));else if(1===w){i=e=>p-Math.exp(-P*e)*(S+(x+P*S)*e);let e=x+P*S;n=t=>Math.exp(-P*t)*(P*e*t-x)}else{let e=P*Math.sqrt(w*w-1);i=t=>{let i=Math.exp(-w*P*t),n=Math.min(e*t,300);return p-i*((x+w*P*S)*Math.sinh(n)+e*S*Math.cosh(n))/e};let t=(x+w*P*S)/e,r=w*P*t-S*e,s=w*P*S-t*e;n=t=>{let i=Math.exp(-w*P*t),n=Math.min(e*t,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let E={calculatedDuration:b&&v||null,velocity:e=>eX(n(e)),next:e=>{if(!b&&w<1){let t=Math.exp(-w*P*e),i=Math.sin(r*e),n=Math.cos(r*e),l=p-t*(s*i+S*n);return m.done=Math.abs(eX(t*(o*i+a*n)))<=u&&Math.abs(p-l)<=h,m.value=m.done?p:l,m}let t=i(e);return b?m.done=e>=v:m.done=Math.abs(eX(n(e)))<=u&&Math.abs(p-t)<=h,m.value=m.done?p:t,m},toString:()=>{let e=Math.min(iQ(E),2e4),t=e7(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function i6(e,t,i){let n=Math.max(t-5,0);return tl(i-e(n),t-n)}function i8({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=e[0],m={done:!1,value:p},f=i*t,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=e=>-f*Math.exp(-e/n),A=e=>y+v(e),b=e=>{let t=v(e),i=A(e);m.done=Math.abs(t)<=u,m.value=m.done?y:i},x=e=>{let t;if(t=m.value,void 0!==a&&t<a||void 0!==l&&t>l){var i;c=e,d=i9({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:i6(A,e,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==c||(t=!0,b(e),x(e)),void 0!==c&&e>=c)?d.next(e-c):(t||b(e),m)}}}i9.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(iQ(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:r/1e3}}(e,100,i9);return e.ease=t.ease,e.duration=eX(t.duration),e.type="keyframes",e};let i7=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function ne(e,t,i,n){return e===t&&i===n?eC:r=>0===r||1===r?r:i7(function(e,t,i,n,r){let s,o,a=0;do(s=i7(o=t+(i-t)/2,n,r)-e)>0?i=o:t=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,e,i),t,n)}let nt=ne(.42,0,1,1),ni=ne(0,0,.58,1),nn=ne(.42,0,.58,1),nr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ns=e=>t=>1-e(1-t),no=ne(.33,1.53,.69,.99),na=ns(no),nl=nr(na),nu=e=>e>=1?1:(e*=2)<1?.5*na(e):.5*(2-Math.pow(2,-10*(e-1))),nh=e=>1-Math.sin(Math.acos(e)),nc=ns(nh),nd=nr(nh),np={linear:eC,easeIn:nt,easeInOut:nn,easeOut:ni,circIn:nh,circInOut:nd,circOut:nc,backIn:na,backInOut:nl,backOut:no,anticipate:nu},nm=e=>{if(e6(e)){eo(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return ne(t,i,n,r)}return"string"==typeof e?(eo(void 0!==np[e],`Invalid easing type '${e}'`,"invalid-easing-type"),np[e]):e},nf=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n};function ng(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if(eo(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let n=[],r=i||ek.mix||iK,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=iD(Array.isArray(t)?t[i]||eC:t,s)),n.push(s)}return n}(t,n,r),l=a.length,u=i=>{if(o&&i<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=nf(e[n],e[n+1],i);return a[n](r)};return i?t=>u(d(e[0],e[s-1],t)):u}function ny(e){let t=[0];return!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=nf(0,t,n);e.push(t$(i,1,r))}}(t,e.length-1),t}function nv({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nm):nm(n),o={done:!1,value:t[0]},a=ng((r=i&&i.length===t.length?i:ny(t),r.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||nn).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let nA={decay:i8,inertia:i8,tween:nv,keyframes:nv,spring:i9};function nb(e){"string"==typeof e.type&&(e.type=nA[e.type])}let nx=e=>e/100;class nw extends e4{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ta.now()&&this.tick(ta.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e9.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;nb(e);let{type:t=nv,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:o}=e,a=t||nv;a!==nv&&"number"!=typeof o[0]&&(this.mixKeyframes=iD(nx,iK(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iQ(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=n;if(c){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(x=o)),b=d(0,1,i)*a}A?(this.delayState.value=h[0],i=this.delayState):i=x.next(b),s&&!A&&(i.value=s(i.value));let{done:w}=i;A||null===l||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&f!==i8&&(i.value=e5(h,this.options,y,this.speed)),g&&g(i.value),S&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eX(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return i6(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ta.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iq,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ta.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,e9.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let nS={anticipate:nu,backInOut:nl,circInOut:nd};class nP extends tn{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in nS&&(e.ease=nS[e.ease])}(e),nb(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new nw({...s,autoplay:!1}),a=Math.max(10,ta.now()-this.startTime),l=d(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;r&&h&&eQ(r,h,u),t.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let nT=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(N.test(e)||"0"===e)&&!e.startsWith("url("));function nE(e){e.duration=0,e.type="keyframes"}let n_=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nC=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nk=eZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nM extends e4{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ta.now();const c={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||eW;this.keyframeResolver=new d(o,(e,t,i)=>this.onKeyframesResolved(e,t,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ta.now();let c=!0;!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=nT(r,t),a=nT(s,t);return es(o===a,`You are trying to animate ${t} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||ti(i))&&n)}(e,s,o,a)&&(c=!1,(ek.instantAnimations||!l)&&h?.(e5(e,i,t)),e[0]=e[e.length-1],nE(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},p=c&&!u&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return nk()&&i&&(tr.has(i)||nC.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&n_.test(e[t]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(d),m=d.motionValue?.owner?.current;if(p)try{r=new nP({...d,element:m})}catch{r=new nw(d)}else r=new nw(d);r.finished.then(()=>{this.notifyFinished()}).catch(eC),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eN=!0,eU(),eF(),eN=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nV={type:"spring",stiffness:500,damping:25,restSpeed:10},nR={type:"keyframes",duration:.8},nj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nO=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nL=(e,t,i,n={},r,s)=>o=>{let a=iR(n,e)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=eX(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:r};!function(e){for(let t in e)if(!nO.has(t))return!0;return!1}(a)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?nR:c.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:nV:nj)(e,h)),h.duration&&(h.duration=eX(h.duration)),h.repeatDelay&&(h.repeatDelay=eX(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nE(h),0===h.delay&&(d=!0)),(ek.instantAnimations||ek.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,nE(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!s&&void 0!==t.get()){let e=e5(h.keyframes,a);if(void 0!==e)return void eR.update(()=>{h.onUpdate(e),h.onComplete()})}return a.isSync?new nw(h):new nM(h)};function nD(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?iV(s,l):l;let u=s?.reduceMotion;n&&(s=n);let h=[],c=r&&e.animationState&&e.animationState.getState()[r];for(let t in a){let n=e.getValue(t,e.latestValues[t]??null),r=a[t];if(void 0===r||c&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(c,t))continue;let o={delay:i,...iR(s||{},t)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){eR.update(()=>n.set(r));continue}let d=!1;if(window.MotionHandoffAnimation){let i=e.props[iP];if(i){let e=window.MotionHandoffAnimation(i,t,eR);null!==e&&(o.startTime=e,d=!0)}}iO(e,t);let p=u??e.shouldReduceMotion;n.start(nL(t,n,r,p&&ee.has(t)?{type:!1}:o,e,d));let m=n.animation;m&&h.push(m)}if(o){let t=()=>eR.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:n={},...r}=iM(e,t)||{};for(let t in r={...r,...i}){var s;let i=ij(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tc(i))}}(e,o)});h.length?Promise.all(h).then(t):t()}return h}function nB(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nI(e,t,i={}){let n=iM(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nD(e,n,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(e,t,i=0,n=0,r=0,s=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(nI(l,t,{...o,delay:i+("function"==typeof n?0:n)+nB(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[e,t]="beforeChildren"===a?[s,o]:[o,s];return e().then(()=>t())}}let nN=ty.length;function nF(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let nU=[...tg].reverse(),nW=tg.length;function n$(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nz(){return{animate:n$(!0),whileInView:n$(),whileHover:n$(),whileTap:n$(),whileDrag:n$(),whileFocus:n$(),exit:n$()}}let nH=0;function nY(e){return[e("x"),e("y")]}function nX(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}let nG={x:!1,y:!1};function nK(e){return e.max-e.min}function nq(e,t,i,n=.5){e.origin=n,e.originPoint=t$(t.min,t.max,e.origin),e.scale=nK(i)/nK(t),e.translate=t$(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nQ(e,t,i,n){nq(e.x,t.x,i.x,n?n.originX:void 0),nq(e.y,t.y,i.y,n?n.originY:void 0)}function nZ(e,t,i,n=0){e.min=(n?t$(i.min,i.max,n):i.min)+t.min,e.max=e.min+nK(t)}function nJ(e,t,i,n=0){let r=n?t$(i.min,i.max,n):i.min;e.min=t.min-r,e.max=e.min+nK(t)}function n0(e,t,i,n){nJ(e.x,t.x,i.x,n?.x),nJ(e.y,t.y,i.y,n?.y)}function n1(e){return"object"==typeof e&&null!==e}function n2(e){return n1(e)&&"ownerSVGElement"in e}function n3(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let r=i?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}e.s(["resolveElements",0,n3],74466);let n5=new WeakMap,n4=(e,t,i)=>(n,r)=>r&&r[0]?r[0][e+"Size"]:n2(n)&&"getBBox"in n?n.getBBox()[t]:n[i],n9=n4("inline","width","offsetWidth"),n6=n4("block","height","offsetHeight");function n8({target:e,borderBoxSize:t}){n5.get(e)?.forEach(i=>{i(e,{get width(){return n9(e,t)},get height(){return n6(e,t)}})})}function n7(e){e.forEach(n8)}let re=new Set;function rt(e,t){let r;return"function"==typeof e?(re.add(e),n||(n=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};re.forEach(t=>t(e))},window.addEventListener("resize",n)),()=>{re.delete(e),re.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n7)),(r=n3(e)).forEach(e=>{let n=n5.get(e);n||(n=new Set,n5.set(e,n)),n.add(t),i?.observe(e)}),()=>{r.forEach(e=>{let n=n5.get(e);n?.delete(t),n?.size||i?.unobserve(e)})})}let ri=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rn=new Set(["INPUT","SELECT","TEXTAREA"]),rr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rs(e){return{point:{x:e.pageX,y:e.pageY}}}function ro(e,t,i,n){return nX(e,t,e=>rr(e)&&i(e,rs(e)),n)}let ra=({current:e})=>e?e.ownerDocument.defaultView:null,rl=(e,t)=>Math.abs(e-t),ru=new Set(["auto","scroll"]);class rh{constructor(e,t,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rc(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rp(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(rl(e.x,t.x)**2+rl(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=eO;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rc(t,this.transformPagePoint),eR.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rp("pointercancel"===e.type?this.lastMoveEventInfo:rc(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!rr(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const a=rc(rs(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eO;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=t;h&&h(e,rp(a,this.history)),this.removeListeners=iD(ro(this.contextWindow,"pointermove",this.handlePointerMove),ro(this.contextWindow,"pointerup",this.handlePointerUp),ro(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ru.has(e.overflowX)||ru.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:n.x-t.x,y:n.y-t.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,n),eR.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ej(this.updatePoint)}}function rc(e,t){return t?{point:t(e.point)}:e}function rd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rp({point:e},t){return{point:e,delta:rd(e,rm(t)),offset:rd(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,n=rm(e);for(;t>=0&&(i=e[t],!(n.timestamp-i.timestamp>eX(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&n.timestamp-i.timestamp>2*eX(.1)&&(i=e[1]);let r=(n.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};let s={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function rm(e){return e[e.length-1]}function rf(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function rg(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function ry(e,t,i){return{min:rv(e,t),max:rv(e,i)}}function rv(e,t){return"number"==typeof e?e:e[t]||0}let rA=new WeakMap;class rb{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{t&&this.snapToCursor(rs(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(nG[e])return null;else return nG[e]=!0,()=>{nG[e]=!1};return nG.x||nG.y?null:(nG.x=nG.y=!0,()=>{nG.x=nG.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nY(e=>{let t=this.getAxisMotionValue(e).get()||0;if(E.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=nK(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&eR.update(()=>r(e,t),!1,!0),iO(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&eR.update(()=>s(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new rh(e,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:ra(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,n=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&eR.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!rw(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?t$(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?t$(i,e,n.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&iE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:rf(e.x,i,r),y:rf(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ry(e,"left","right"),y:ry(e,"top","bottom")}}(t),n!==this.constraints&&!iE(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&nY(e=>{var t,n;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],n=this.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iE(t))return!1;let n=t.current;eo(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(e,t,i){let n=t6(e,i),{scroll:r}=t;return r&&(t3(n.x,r.offset.x),t3(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(e=r.layout.layoutBox,{x:rg(e.x,s.x),y:rg(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=tK(e))}return o}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nY(o=>{if(!rw(o,t,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iO(this.visualElement,e),i.start(nL(e,i,0,t,this.visualElement,!1))}stopAnimation(){nY(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){nY(t=>{let{drag:i}=this.getProps();if(!rw(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[t],o=r.get()||0;r.set(e[t]-t$(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iE(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nY(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,r;let s,o,a,l=t.get();n[e]=(i={min:l,max:l},r=this.constraints[e],s=.5,o=nK(i),(a=nK(r))>o?s=nf(r.min,r.max-o,i.min):o>a&&(s=nf(i.min,i.max-a,r.min)),d(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nY(t=>{if(!rw(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set(t$(r,s,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;rA.set(this.visualElement,this);let t=this.visualElement.current,i=ro(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=e.target,s=r!==t&&(rn.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(e)}),n=()=>{var i,n,r;let s,o,{dragConstraints:a}=this.getProps();iE(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,n=a.current,s=rt(i,rx(r=()=>this.scalePositionWithinConstraints())),o=rt(n,rx(r)),e=()=>{s(),o()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),eR.read(n);let o=nX(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nY(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rx(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rw(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rS=e=>(t,i)=>{e&&eR.update(()=>e(t,i),!1,!0)},rP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rT=a;function rE(e=!0){let t=(0,a.useContext)(im);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=t,s=(0,a.useId)();(0,a.useEffect)(()=>{if(e)return r(s)},[e]);let o=(0,a.useCallback)(()=>e&&n&&n(s),[s,n,e]);return!i&&n?[!1,o]:[!0]}let r_=!1;class rC extends rT.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&n&&i.register(r),r_&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),r_=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||eR.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),ts.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;r_=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rk(e){let[t,i]=rE(),n=(0,rT.useContext)(it);return(0,s.jsx)(rC,{...e,layoutGroup:n,switchLayoutGroup:(0,rT.useContext)(iT),isPresent:t,safeToRemove:i})}let rM=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rV=rM.length,rR=e=>"string"==typeof e?parseFloat(e):e,rj=e=>"number"==typeof e||_.test(e);function rO(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rL=rB(0,.5,nc),rD=rB(.5,.95,eC);function rB(e,t,i){return n=>n<e?0:n>t?1:i(nf(e,t,n))}function rI(e,t){e.min=t.min,e.max=t.max}function rN(e,t){rI(e.x,t.x),rI(e.y,t.y)}function rF(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rU(e,t,i,n,r){return e-=t,e=n+1/i*(e-n),void 0!==r&&(e=n+1/r*(e-n)),e}function rW(e,t,[i,n,r],s,o){!function(e,t=0,i=1,n=.5,r,s=e,o=e){if(E.test(t)&&(t=parseFloat(t),t=t$(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=t$(s.min,s.max,n);e===s&&(a-=t),e.min=rU(e.min,t,i,a,r),e.max=rU(e.max,t,i,a,r)}(e,t[i],t[n],t[r],t.scale,s,o)}let r$=["x","scaleX","originX"],rz=["y","scaleY","originY"];function rH(e,t,i,n){rW(e.x,t,r$,i?i.x:void 0,n?n.x:void 0),rW(e.y,t,rz,i?i.y:void 0,n?n.y:void 0)}function rY(e){return 0===e.translate&&1===e.scale}function rX(e){return rY(e.x)&&rY(e.y)}function rG(e,t){return e.min===t.min&&e.max===t.max}function rK(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rq(e,t){return rK(e.x,t.x)&&rK(e.y,t.y)}function rQ(e){return nK(e.x)/nK(e.y)}function rZ(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rJ{constructor(){this.members=[]}add(e){eG(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(eK(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(eK(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=e.options;(void 0===n||n!==r)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let r0=(e,t)=>e.depth-t.depth;class r1{constructor(){this.children=[],this.isDirty=!1}add(e){eG(this.children,e),this.isDirty=!0}remove(e){eK(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(r0),this.isDirty=!1,this.children.forEach(e)}}let r2=["","X","Y","Z"],r3=0;function r5(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function r4({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=r3++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(r8),this.nodes.forEach(sa),this.nodes.forEach(sl),this.nodes.forEach(r7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new r1)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eq),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=n2(t)&&!(n2(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;eR.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,s;n=e,this.root.updateBlockedByResize=!0,i&&i(),t=ta.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(ej(s),r(i-250))},eR.setup(s,!0),i=()=>ej(s),rP.hasAnimatedSinceResize&&(rP.hasAnimatedSinceResize=!1,this.nodes.forEach(so))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sm,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rq(this.targetLayout,n),u=!t&&i;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iR(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||so(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ej(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(su),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[iP];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",eR,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(si),this.nodes.forEach(st);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sn);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sr),this.nodes.forEach(ss),this.nodes.forEach(r9),this.nodes.forEach(r6)):this.nodes.forEach(sn),this.clearAllSnapshots();let e=ta.now();eO.delta=d(0,1e3/60,e-eO.timestamp),eO.timestamp=e,eO.isProcessing=!0,eL.update.process(eO),eL.preRender.process(eO),eL.render.process(eO),eO.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ts.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(se),this.sharedNodes.forEach(sh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eR.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eR.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nK(this.snapshot.measuredBox.x)||nK(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Z()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rX(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||tZ(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),sy((t=n).x),sy(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Z();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sA))){let{scroll:e}=this.root;e&&(t3(t.x,e.offset.x),t3(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Z();if(rN(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rN(t,e),t3(t.x,r.offset.x),t3(t.y,r.offset.y))}return t}applyTransform(e,t=!1,i){let n=i||Z();rN(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(t3(n.x,-i.scroll.offset.x),t3(n.y,-i.scroll.offset.y)),tZ(i.latestValues)&&t9(n,i.latestValues,i.layout?.layoutBox)}return tZ(this.latestValues)&&t9(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=Z();rN(t,e);for(let e=0;e<this.path.length;e++){let i,n=this.path[e];tZ(n.latestValues)&&(n.instance&&(tQ(n.latestValues)&&n.updateSnapshot(),rN(i=Z(),n.measurePageBox())),rH(t,n.latestValues,n.snapshot?.layoutBox,i))}return tZ(this.latestValues)&&rH(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eO.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=eO.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nZ(o.x,a.x,l.x,u?.x),nZ(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rN(this.target,this.layout.layoutBox),t2(this.target,this.targetDelta)):rN(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tQ(this.parent.latestValues)||tJ(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),n0(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),rN(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eO.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rN(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,n=!1){let r,s,o=i.length;if(o){t.x=t.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(t3(e.x,-r.scroll.offset.x),t3(e.y,-r.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,t2(e,s)),n&&tZ(r.latestValues)&&t9(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Z());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rF(this.prevProjectionDelta.x,this.projectionDelta.x),rF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nQ(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rZ(this.projectionDelta.x,this.prevProjectionDelta.x)&&rZ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=q(),this.projectionDelta=q(),this.projectionDeltaWithTransform=q()}setAnimationOrigin(e,t=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=q();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=Z(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sp));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(sc(o.x,e.x,n),sc(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;n0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,sd(p.x,m.x,f.x,g),sd(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,rG(u.x,d.x)&&rG(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=Z()),rN(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,n,r,s){r?(e.opacity=t$(0,i.opacity??1,rL(n)),e.opacityExit=t$(t.opacity??1,0,rD(n))):s&&(e.opacity=t$(t.opacity??1,i.opacity??1,n));for(let r=0;r<rV;r++){let s=rM[r],o=rO(t,s),a=rO(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rj(o)===rj(a)?(e[s]=Math.max(t$(rR(o),rR(a),n),0),(E.test(a)||E.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||i.rotate)&&(e.rotate=t$(t.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ej(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eR.update(()=>{var t,i,n;let r;rP.hasAnimatedSinceResize=!0,e9.layout++,this.motionValue||(this.motionValue=tc(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e9.layout--},onComplete:()=>{e9.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=J(t)?t:tc(t)).start(nL("",r,i,n)),r.animation),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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:r}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&sv(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Z();let t=nK(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=nK(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}rN(t,i),t9(t,r),nQ(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rJ),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&r5("z",e,n,this.animationValues);for(let t=0;t<r2.length;t++)r5(`rotate${r2[t]}`,e,n,this.animationValues),r5(`skew${r2[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ip(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ip(t?.pointerEvents)||""),this.hasProjected&&!tZ(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let n="",r=e.x.translate/t.x,s=e.y.translate/t.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),e.transform=s;let{x:o,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tz){if(void 0===r[t])continue;let{correct:i,applyTo:o,isCSSVariable:a}=tz[t],l="none"===s?r[t]:i(r[t],n);if(o){let t=o.length;for(let i=0;i<t;i++)e[o[i]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?ip(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(st),this.root.sharedNodes.clear()}}}function r9(e){e.updateLayout()}function r6(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;if("size"===r)nY(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=nK(n);n.min=i[e].min,n.max=n.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";rI(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else sv(r,t.layoutBox,i)&&nY(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],o=nK(i[n]);r.max=r.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=q();nQ(o,i,t.layoutBox);let a=q();s?nQ(a,e.applyTransform(n,!0),t.measuredBox):nQ(a,i,t.layoutBox);let l=!rX(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=e.options.layoutAnchor||void 0,a=Z();n0(a,t.layoutBox,r.layoutBox,o);let l=Z();n0(l,i,s.layoutBox,o),rq(a,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r8(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function se(e){e.clearSnapshot()}function st(e){e.clearMeasurements()}function si(e){e.isLayoutDirty=!0,e.updateLayout()}function sn(e){e.isLayoutDirty=!1}function sr(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ss(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function so(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sa(e){e.resolveTargetDelta()}function sl(e){e.calcProjection()}function su(e){e.resetSkewAndRotation()}function sh(e){e.removeLeadSnapshot()}function sc(e,t,i){e.translate=t$(t.translate,0,i),e.scale=t$(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sd(e,t,i,n){e.min=t$(t.min,i.min,n),e.max=t$(t.max,i.max,n)}function sp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sm={duration:.45,ease:[.4,0,.1,1]},sf=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sg=sf("applewebkit/")&&!sf("chrome/")?Math.round:eC;function sy(e){e.min=sg(e.min),e.max=sg(e.max)}function sv(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rQ(t)-rQ(i)))}function sA(e){return e!==e.root&&e.scroll?.wasRoot}let sb=r4({attachResizeListener:(e,t)=>nX(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sx={current:void 0},sw=r4({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sx.current){let e=new sb({});e.mount(window),e.setOptions({layoutScroll:!0}),sx.current=e}return sx.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sS(e,t){let i=n3(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function sP(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&eR.postRender(()=>r(t,rs(t)))}function sT(e){return n1(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let sE=(e,t)=>!!t&&(e===t||sE(e,t.parentElement)),s_=new WeakSet;function sC(e){return t=>{"Enter"===t.key&&e(t)}}function sk(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sM(e){return rr(e)&&!(nG.x||nG.y)}let sV=new WeakSet;function sR(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&eR.postRender(()=>r(t,rs(t)))}let sj=new WeakMap,sO=new WeakMap,sL=e=>{let t=sj.get(e.target);t&&t(e)},sD=e=>{e.forEach(sL)},sB={some:0,all:1},sI=function(e,t){if("u"<typeof Proxy)return iC;let i=new Map,n=(i,n)=>iC(i,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iC(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends ik{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>nI(e,t,i)));else if("string"==typeof t)n=nI(e,t,i);else{let r="function"==typeof t?iM(e,t,i.custom):t;n=Promise.all(nD(e,r,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=nz(),n=!0,r=!1,s=t=>(i,n)=>{let r=iM(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function o(o){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<nN;e++){let n=ty[e],r=t.props[n];(tf(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},u=[],h=new Set,c={},d=1/0;for(let t=0;t<nW;t++){var p,m;let f=nU[t],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=tf(y),A=f===o?g.isActive:null;!1===A&&(d=t);let b=y===l[f]&&y!==a[f]&&v;if(b&&(n||r)&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...c},!g.isActive&&null===A||!y&&!g.prevProp||tm(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==A){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let x=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nF(m,p)),w=x||f===o&&g.isActive&&!b&&v||t>d&&v,S=!1,P=Array.isArray(y)?y:[y],T=P.reduce(s(f),{});!1===A&&(T={});let{prevResolvedValues:E={}}=g,_={...E,...T},C=t=>{w=!0,h.has(t)&&(S=!0,h.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in _){let t=T[e],i=E[e];if(!c.hasOwnProperty(e))(ij(t)&&ij(i)?nF(t,i):t===i)?void 0!==t&&h.has(e)?C(e):g.protectedKeys[e]=!0:null!=t?C(e):h.add(e)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(c={...c,...T}),(n||r)&&e.blockInitialAnimation&&(w=!1);let k=b&&x,M=!k||S;w&&M&&u.push(...P.map(t=>{let i={type:f};if("string"==typeof t&&(n||r)&&!k&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,r=iM(n,t);if(n.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=nB(n.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(h.size){let t={};if("boolean"!=typeof a.initial){let i=iM(e,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),u.push({animation:t})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){if(i[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),i[t].isActive=n;let r=o(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=nz(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tm(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ik{constructor(){super(...arguments),this.id=nH++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){let i=iM(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...n}=i;for(let e in n)this.node.getValue(e)?.jump(n[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends ik{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:sB[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=t?i:n;r&&r(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;sO.has(i)||sO.set(i,{});let n=sO.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(sD,{root:e,...t})),n[r]}(a),sj.set(e,l),t.observe(e),()=>{sj.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends ik{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[n,r,s]=sS(e,i),o=e=>{let n=e.currentTarget;if(!sM(e)||sV.has(e))return;s_.add(n),i.stopPropagation&&sV.add(e);let s=t(n,e),o=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),s_.has(n)&&s_.delete(n),sM(e)&&"function"==typeof s&&s(e,{success:t})},a=e=>{o(e,n===window||n===document||i.useGlobalTarget||sE(n,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",o,r),sT(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=sC(()=>{if(s_.has(i))return;sk(i,"down");let e=sC(()=>{sk(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sk(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,r)),ri.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sR(this.node,t,"Start"),(e,{success:t})=>sR(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends ik{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=iD(nX(this.node.current,"focus",()=>this.onFocus()),nX(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ik{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=sS(e,i);return n.forEach(e=>{let i,n=!1,s=!1,o=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},a=e=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(n){s=!0;return}o(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nG.x||nG.y)return;s=!1;let o=t(e,n);"function"==typeof o&&(i=o,e.addEventListener("pointerleave",l,r))},r),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(e,(e,t)=>(sP(this.node,t,"Start"),e=>sP(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends ik{constructor(){super(...arguments),this.removePointerDownListener=eC}onPointerDown(e){this.session=new rh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ra(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rS(e),onStart:rS(t),onMove:rS(i),onEnd:(e,t)=>{delete this.session,n&&eR.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=ro(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ik{constructor(e){super(e),this.removeGroupControls=eC,this.removeListeners=eC,this.controls=new rb(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eC}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sw,MeasureLayout:rk},layout:{ProjectionNode:sw,MeasureLayout:rk}},(e,t)=>t.isSVG??ie(e)?new tG(t):new t8(t,{allowProjection:e!==a.Fragment}));e.s(["motion",0,sI],41302);var sN=a;function sF(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class sU extends sN.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(sT(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=sT(e)&&e.offsetWidth||0,n=sT(e)&&e.offsetHeight||0,r=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function sW({children:e,isPresent:t,anchorX:i,anchorY:n,root:r,pop:o}){let l=(0,sN.useId)(),u=(0,sN.useRef)(null),h=(0,sN.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=(0,sN.useContext)(ir),d=function(...e){return a.useCallback(function(...e){return t=>{let i=!1,n=e.map(e=>{let n=sF(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():sF(e[t],null)}}}}(...e),e)}(u,e.props?.ref??e?.ref);return(0,sN.useInsertionEffect)(()=>{let{width:e,height:s,top:a,left:d,right:p,bottom:m}=h.current;if(t||!1===o||!u.current||!e||!s)return;let f="left"===i?`left: ${d}`:`right: ${p}`,g="bottom"===n?`bottom: ${m}`:`top: ${a}`;u.current.dataset.motionPopId=l;let y=document.createElement("style");c&&(y.nonce=c);let v=r??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(`
          [data-motion-pop-id="${l}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${s}px !important;
            ${f}px !important;
            ${g}px !important;
          }
        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),v.contains(y)&&v.removeChild(y)}},[t]),(0,s.jsx)(sU,{isPresent:t,childRef:u,sizeRef:h,pop:o,children:!1===o?e:sN.cloneElement(e,{ref:d})})}let s$=({children:e,initial:t,isPresent:i,onExitComplete:n,custom:r,presenceAffectsLayout:o,mode:l,anchorX:u,anchorY:h,root:c})=>{let d=ig(sz),p=(0,a.useId)(),m=!0,f=(0,a.useMemo)(()=>(m=!1,{id:p,initial:t,isPresent:i,custom:r,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;n&&n()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[i,d,n]);return o&&m&&(f={...f}),(0,a.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[i]),a.useEffect(()=>{i||d.size||!n||n()},[i]),e=(0,s.jsx)(sW,{pop:"popLayout"===l,isPresent:i,anchorX:u,anchorY:h,root:c,children:e}),(0,s.jsx)(im.Provider,{value:f,children:e})};function sz(){return new Map}let sH=e=>e.key||"";function sY(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let sX=({children:e,custom:t,initial:i=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:o="sync",propagate:l=!1,anchorX:u="left",anchorY:h="top",root:c})=>{let[d,p]=rE(l),m=(0,a.useMemo)(()=>sY(e),[e]),f=l&&!d?[]:m.map(sH),g=(0,a.useRef)(!0),y=(0,a.useRef)(m),v=ig(()=>new Map),A=(0,a.useRef)(new Set),[b,x]=(0,a.useState)(m),[w,S]=(0,a.useState)(m);i_(()=>{g.current=!1,y.current=m;for(let e=0;e<w.length;e++){let t=sH(w[e]);f.includes(t)?(v.delete(t),A.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[w,f.length,f.join("-")]);let P=[];if(m!==b){let e=[...m];for(let t=0;t<w.length;t++){let i=w[t],n=sH(i);f.includes(n)||(e.splice(t,0,i),P.push(i))}return"wait"===o&&P.length&&(e=P),S(sY(e)),x(m),null}let{forceRender:T}=(0,a.useContext)(it);return(0,s.jsx)(s.Fragment,{children:w.map(e=>{let a=sH(e),b=(!l||!!d)&&(m===w||f.includes(a));return(0,s.jsx)(s$,{isPresent:b,initial:(!g.current||!!i)&&void 0,custom:t,presenceAffectsLayout:r,mode:o,root:c,onExitComplete:b?void 0:()=>{if(A.current.has(a)||!v.has(a))return;A.current.add(a),v.set(a,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(T?.(),S(y.current),l&&p?.(),n&&n())},anchorX:u,anchorY:h,children:e},a)})})};function sG(e,t){let i,n=()=>{let{currentTime:n}=t,r=(null===n?0:n.value)/100;i!==r&&e(r),i=r};return eR.preUpdate(n,!0),()=>ej(n)}function sK(e){return!("u"<typeof window)&&(e?e2():e1())}e.s(["AnimatePresence",0,sX],93537);let sq=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),sQ={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function sZ(e,t,i,n){let r=i[t],{length:s,position:o}=sQ[t],a=r.current,l=i.time;r.current=Math.abs(e[`scroll${o}`]),r.scrollLength=e[`scroll${s}`]-e[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=nf(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:tl(r.current-a,u)}let sJ={start:0,center:.5,end:1};function s0(e,t,i=0){let n=0;if(e in sJ&&(e=sJ[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?n=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?n=t/100*document.documentElement.clientWidth:e.endsWith("vh")?n=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(n=t*e),i+n}let s1=[0,0],s2=[[0,0],[1,1]],s3={x:0,y:0},s5=new WeakMap,s4=new WeakMap,s9=new WeakMap,s6=new WeakMap,s8=new WeakMap,s7=e=>e===document.scrollingElement?window:e;function oe(e,{container:t=document.scrollingElement,trackContentSize:i=!1,...n}={}){if(!t)return eC;let r=s9.get(t);r||(r=new Set,s9.set(t,r));let s=function(e,t,i,n={}){return{measure:t=>{!function(e,t=e,i){if(i.x.targetOffset=0,i.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=t===e?t.scrollWidth:t.clientWidth,i.y.targetLength=t===e?t.scrollHeight:t.clientHeight,i.x.containerLength=e.clientWidth,i.y.containerLength=e.clientHeight}(e,n.target,i),sZ(e,"x",i,t),sZ(e,"y",i,t),i.time=t,(n.offset||n.target)&&function(e,t,i){let{offset:n=s2}=i,{target:r=e,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==e?function(e,t){let i={x:0,y:0},n=e;for(;n&&n!==t;)if(sT(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let e=n.getBoundingClientRect(),t=(n=n.parentElement).getBoundingClientRect();i.x+=e.left-t.left,i.y+=e.top-t.top}else if(n instanceof SVGGraphicsElement){let{x:e,y:t}=n.getBBox();i.x+=e,i.y+=t;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,e):s3,l=r===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let h=!t[s].interpolate,c=n.length;for(let e=0;e<c;e++){let i=function(e,t,i,n){let r=Array.isArray(e)?e:s1,s=0;return"number"==typeof e?r=[e,e]:"string"==typeof e&&(r=(e=e.trim()).includes(" ")?e.split(" "):[e,sJ[e]?e:"0"]),(s=s0(r[0],i,n))-s0(r[1],t)}(n[e],u[o],l[o],a[s]);h||i===t[s].interpolatorOffsets[e]||(h=!0),t[s].offset[e]=i}h&&(t[s].interpolate=ng(t[s].offset,ny(n),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=d(0,1,t[s].interpolate(t[s].current))}(e,i,n)},notify:()=>t(i)}}(t,e,{time:0,x:sq(),y:sq()},n);if(r.add(s),!s5.has(t)){let e=()=>{for(let e of r)e.measure(eO.timestamp);eR.preUpdate(i)},i=()=>{for(let e of r)e.notify()},n=()=>eR.read(e);s5.set(t,n);let s=s7(t);window.addEventListener("resize",n),t!==document.documentElement&&s4.set(t,rt(t,n)),s.addEventListener("scroll",n),n()}if(i&&!s8.has(t)){let e=s5.get(t),i={width:t.scrollWidth,height:t.scrollHeight};s6.set(t,i);let n=eR.read(()=>{let n=t.scrollWidth,r=t.scrollHeight;(i.width!==n||i.height!==r)&&(e(),i.width=n,i.height=r)},!0);s8.set(t,n)}let o=s5.get(t);return eR.read(o,!1,!0),()=>{ej(o);let e=s9.get(t);if(!e||(e.delete(s),e.size))return;let i=s5.get(t);s5.delete(t),i&&(s7(t).removeEventListener("scroll",i),s4.get(t)?.(),window.removeEventListener("resize",i));let n=s8.get(t);n&&(ej(n),s8.delete(t)),s6.delete(t)}}let ot=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[s2,"contain"]],oi={start:0,end:1};function on(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,i]of ot)if(function(e,t){let i=function(e){if(2!==e.length)return;let t=[];for(let i of e)if(Array.isArray(i))t.push(i);else{if("string"!=typeof i)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let i=oi[t[0]],n=oi[t[1]];if(void 0!==i&&void 0!==n)return[i,n]}(i);if(!e)return;t.push(e)}return t}(e);if(!i)return!1;for(let e=0;e<2;e++){let n=i[e],r=t[e];if(n[0]!==r[0]||n[1]!==r[1])return!1}return!0}(e,t))return{rangeStart:`${i} 0%`,rangeEnd:`${i} 100%`}}let or=new Map;function os(e){let t={value:0},i=oe(i=>{t.value=100*i[e.axis].progress},e);return{currentTime:t,cancel:i}}function oo({source:e,container:t,...i}){let{axis:n}=i;e&&(t=e);let r=or.get(t);r||(r=new Map,or.set(t,r));let s=i.target??"self",o=r.get(s);o||(o={},r.set(s,o));let a=n+(i.offset??[]).join(",");return o[a]||(i.target&&sK(i.target)?on(i.offset)?o[a]=new ViewTimeline({subject:i.target,axis:n}):o[a]=os({container:t,...i}):sK()?o[a]=new ScrollTimeline({source:t,axis:n}):o[a]=os({container:t,...i})),o[a]}function oa(e,{axis:t="y",container:i=document.scrollingElement,...n}={}){var r,s;let o,a,l;if(!i)return eC;let u={axis:t,container:i,...n};return"function"==typeof e?(r=e,s=u,2===r.length?oe(e=>{r(e[s.axis].progress,e)},s):sG(r,oo(s))):(o=oo(u),a=u.target?on(u.offset):void 0,l=u.target?sK(u.target)&&!!a:sK(),e.attachTimeline({timeline:l?o:void 0,...a&&l&&{rangeStart:a.rangeStart,rangeEnd:a.rangeEnd},observe:e=>(e.pause(),sG(t=>{e.time=e.iterationDuration*t},o))}))}let ol=()=>({scrollX:tc(0),scrollY:tc(0),scrollXProgress:tc(0),scrollYProgress:tc(0)}),ou=e=>!!e&&!e.current;function oh(e,t,i,n){return{factory:r=>oa(r,{...t,axis:e,container:i?.current||void 0,target:n?.current||void 0}),times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function oc({container:e,target:t,...i}={}){var n;let r=ig(ol);n=i.offset,!("u"<typeof window)&&(t?e2()&&!!on(n):e1())&&(r.scrollXProgress.accelerate=oh("x",i,e,t),r.scrollYProgress.accelerate=oh("y",i,e,t));let s=(0,a.useRef)(null),o=(0,a.useRef)(!1),l=(0,a.useCallback)(()=>(s.current=oa((e,{x:t,y:i})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...i,container:e?.current||void 0,target:t?.current||void 0}),()=>{s.current?.()}),[e,t,JSON.stringify(i.offset)]);return i_(()=>{if(o.current=!1,!(ou(e)||ou(t)))return l();o.current=!0},[l]),(0,a.useEffect)(()=>o.current?(eo(!ou(e),"Container ref is defined but not hydrated","use-scroll-ref"),eo(!ou(t),"Target ref is defined but not hydrated","use-scroll-ref"),l()):void 0,[l]),r}function od(e,t){let i=function(e){let t=ig(()=>tc(e)),{isStatic:i}=(0,a.useContext)(ir);if(i){let[,i]=(0,a.useState)(e);(0,a.useEffect)(()=>t.on("change",i),[])}return t}(t()),n=()=>i.set(t());return n(),i_(()=>{let t=()=>eR.preRender(n,!1,!0),i=e.map(e=>e.on("change",t));return()=>{i.forEach(e=>e()),ej(n)}}),i}function op(e,t,i,n){if("function"==typeof e){let t;return tu.current=[],e(),t=od(tu.current,e),tu.current=void 0,t}if(void 0!==i&&!Array.isArray(i)&&"function"!=typeof t){var r=e,s=t,o=i,a=n;let l=ig(()=>Object.keys(o)),u=ig(()=>({}));for(let e of l)u[e]=op(r,s,o[e],a);return u}let l="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),i=t?0:-1,n=e[0+i],r=ng(e[1+i],e[2+i],e[3+i]);return t?r(n):r}(t,i,n),u=Array.isArray(e)?om(e,l):om([e],([e])=>l(e)),h=Array.isArray(e)?void 0:e.accelerate;return h&&!h.isTransformed&&"function"!=typeof t&&Array.isArray(i)&&n?.clamp!==!1&&(u.accelerate={...h,times:t,keyframes:i,isTransformed:!0,...n?.ease?{ease:n.ease}:{}}),u}function om(e,t){let i=ig(()=>[]);return od(e,()=>{i.length=0;let n=e.length;for(let t=0;t<n;t++)i[t]=e[t].get();return t(i)})}e.s(["useScroll",0,oc],47581),e.s(["useTransform",0,op],9698);var of=e.i(37318),og=e.i(90863);let oy={src:e.i(65679).default,width:512,height:512,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAjklEQVR42o3PIQ+CQBjG8ec5ot3qZqFaTe4oVmch0vwKfAaj2c1kdLOYLPcFTCZGg3SkI0F8ORqFG/n9bc/7B6girnc6zR/G2qZrrO1e6cXsuUoUEMEfEx7vZXb7iXOttM5JleXy5bb0SIOHq8H5I1NQe1Aglic3Bjy9+znwZ9wvAKEJNU74guCTgUw9Zg6Py47UtLdWRAAAAABJRU5ErkJggg=="},ov={src:e.i(62426).default,width:512,height:512,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAoUlEQVR42oWPMQrCQBBFJylsFY+gAUGCnaCi4GK7R4hFwMoEzAW09xS7YOcdtLH1AinSpBcsku2ym/x0IYEUA5/3BmY+WZZtD8Zztjxc34njqcQ5KmQwONpNXRZGMub+U6czH2OQweBIXO6v/00W38dH/xanepDBZOUoXZ1Vvgm0Wgc6G3KTjbhBBoPrX+g9sZ24+zASHU+KuHKM2jW9Rs0S7OyFyZzPdToAAAAASUVORK5CYII="},oA={src:e.i(51015).default,width:498,height:501,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAuklEQVR42qVNTQvBYAB+95phtlfGmo990A4otmymFAeUsBqZQko5LFJKcd3Vr1BOLs5+oLcVJzfP6Xl6vgD4gCCInzzQJEmhetWGEYomEcMjrTLAIfgN0KpiKcftkymrnWTLXMiHzYPiU4XAhOFwhB91Txl37GeXzlXcre+it7ql7d6FgDAEWDwnzIZ+wtQcCTe5fnsfk/OacvZe0ZxQAnRRMlBTn7NGbYIs3Y1ik2TiHGpoU3yjgL/xBo7UGsexkmv1AAAAAElFTkSuQmCC"},ob={src:e.i(79659).default,width:512,height:512,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAYklEQVR42q2KMQ5AQBBF/55AIVFQ0Ril1a7oxbVI9hgqEk4i2+xtlMwURJS85CWTNx/4hyCMUNYtdNOJfHO7SDJCPzmM2y4OsztbcQ+UUiBtYBcPu3pQZaQ94BCnufh6fuEAeNAS5pIiAf4AAAAASUVORK5CYII="},ox={src:e.i(66071).default,width:512,height:512,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAQElEQVR42pWOuw0AIAhErwHdxgXs3cIxHMOZFSqLI5GXvISEzwGk0FIh15DWh0s3rTHXdq3W95KQARoVRnw/STgHBQu9fN/z+AAAAABJRU5ErkJggg=="},ow={src:e.i(42011).default,width:96,height:96,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAPUlEQVR42q2NMQ4AEBRD6xIs3IvNDawSF3BsrY1EDLz8Lq8/KfAJw9siN3HBI5aGXPsSOcvu+JDo1N0nXhnqTRFdBaLrNQAAAABJRU5ErkJggg=="},oS={src:e.i(13614).default,width:4639,height:904,blurWidth:8,blurHeight:2,blurDataURL:"data:image/webp;base64,UklGRq4AAABXRUJQVlA4TKIAAAAvB0AAAM1VICICHgggAQAAAADBAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAIANsmANAADwQAAJAAAAAM4fgQEAAACAAQAAAAAAAAAAAAAAAACAAQAAAAAANoBBEAPzeCCABAAAAADnrzDCBgyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAADAoMiKS3fYAvHBDyC31PySU82WVJ3zpAA="},oP={hidden:{opacity:0,scale:.96,y:10},visible:{opacity:1,scale:1,y:0,transition:{duration:.25,ease:[.22,1,.36,1]}}},oT={initial:{opacity:0,x:-8,scale:.8,rotate:-5},hover:{opacity:1,x:0,scale:1.1,rotate:0,transition:{duration:.25,ease:"easeOut"}}},oE={initial:{x:0},hover:{x:4,transition:{duration:.2,ease:"easeOut"}}},o_={fr:[{name:"Accueil",href:"#accueil",type:"link"},{name:"Produits",type:"dropdown",items:[{name:"Instrumentation",href:"#instrumentation"},{name:"Endoscopie",href:"#endoscopie"},{name:"Consommable",href:"#consommable"},{name:"Fabrication Tunisienne",href:"/fabrication-tunisienne"},{name:"Transport pneumatique",href:"/pneumatique"},{name:"Caisson hyperbare",href:"#caisson-hyperbare"}]},{name:"Partenaires",href:"#partenaires",type:"link"},{name:"SAV",href:"#sav",type:"link"},{name:"Liens utiles",href:"#liens-utiles",type:"link"},{name:"Évènement",href:"#evenement",type:"link"},{name:"Téléchargement",type:"dropdown",items:[{name:"Medico",href:"#telechargement-medico"},{name:"Nos catalogues",href:"#nos-catalogues"},{name:"Catalogue COLOPLAST PORGES",href:"#catalogue-coloplast"}]}],en:[{name:"Home",href:"#accueil",type:"link"},{name:"Products",type:"dropdown",items:[{name:"Instrumentation",href:"#instrumentation"},{name:"Endoscopy",href:"#endoscopie"},{name:"Consumables",href:"#consommable"},{name:"Tunisian Manufacturing",href:"#fabrication-tunisienne"},{name:"Pneumatic Tube Systems",href:"#transport-pneumatique"},{name:"Hyperbaric Chamber",href:"#caisson-hyperbare"}]},{name:"Partners",href:"#partenaires",type:"link"},{name:"After-Sales",href:"#sav",type:"link"},{name:"Useful Links",href:"#liens-utiles",type:"link"},{name:"Events",href:"#evenement",type:"link"},{name:"Downloads",type:"dropdown",items:[{name:"Medico",href:"#telechargement-medico"},{name:"Our Catalogs",href:"#nos-catalogues"},{name:"COLOPLAST PORGES Catalog",href:"#catalogue-coloplast"}]}],ar:[{name:"الرئيسية",href:"#accueil",type:"link"},{name:"المنتجات",type:"dropdown",items:[{name:"الأدوات الجراحية",href:"#instrumentation"},{name:"تنظير داخلي",href:"#endoscopie"},{name:"المواد الاستهلاكية",href:"#consommable"},{name:"صناعة تونسية",href:"#fabrication-tunisienne"},{name:"النقل النيوماتيكي",href:"#transport-pneumatique"},{name:"غرفة الضغط العالي",href:"#caisson-hyperbare"}]},{name:"شركاؤنا",href:"#partenaires",type:"link"},{name:"خدمة ما بعد البيع",href:"#sav",type:"link"},{name:"روابط مفيدة",href:"#liens-utiles",type:"link"},{name:"الأحداث",href:"#evenement",type:"link"},{name:"التحميلات",type:"dropdown",items:[{name:"مديكو",href:"#telechargement-medico"},{name:"كتالوجاتنا",href:"#nos-catalogues"},{name:"كتالوج كولوبلاست بورجيز",href:"#catalogue-coloplast"}]}]},oC=[{code:"fr",label:"Français",flag:oy},{code:"en",label:"English",flag:ov}],ok=e=>{let t,i,n,r,h,c,d,p,m,f,g,y,v,A,b,x,w,S,P,T,E,_,C,k,M,V,R,j,O,L,D,B,I,N,F,U,W=(0,o.c)(65),{currentLang:$,onLangChange:z}=e,H=void 0===$?"fr":$,Y=(0,u.usePathname)(),[X,G]=(0,a.useState)(!1),[K,q]=(0,a.useState)(null),[Q,Z]=(0,a.useState)(null),[J,ee]=(0,a.useState)(!1),[et,ei]=(0,a.useState)(!1),en=oC.find(e=>e.code===H)||oC[0],er=o_[H]||o_.fr,es=(0,a.useRef)(0),eo=(0,a.useRef)(null),ea=(0,a.useRef)(null),{scrollY:el}=oc();W[0]===Symbol.for("react.memo_cache_sentinel")?(t=[0,80],i=[.04,.18],W[0]=t,W[1]=i):(t=W[0],i=W[1]);let eu=op(el,t,i);W[2]!==z?(n=e=>{z&&z(e.code),ee(!1)},W[2]=z,W[3]=n):n=W[3];let eh=n;W[4]!==el?(r=()=>{let e=el.on("change",e=>{e>es.current&&e>80?ei(!0):ei(!1),es.current=e});return()=>e()},h=[el],W[4]=el,W[5]=r,W[6]=h):(r=W[5],h=W[6]),(0,a.useEffect)(r,h),W[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{let e=e=>{ea.current&&!ea.current.contains(e.target)&&ee(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},d=[],W[7]=c,W[8]=d):(c=W[7],d=W[8]),(0,a.useEffect)(c,d),W[9]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{let e=()=>{window.innerWidth>=1200&&(G(!1),Z(null))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},p=[],W[9]=p,W[10]=m):(p=W[9],m=W[10]),(0,a.useEffect)(m,p),W[11]!==X?(f=()=>(document.body.style.overflow=X?"hidden":"",oM),g=[X],W[11]=X,W[12]=f,W[13]=g):(f=W[12],g=W[13]),(0,a.useEffect)(f,g),W[14]!==Y?(y=e=>"#accueil"===e&&"/"===Y,W[14]=Y,W[15]=y):y=W[15];let ec=y;W[16]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{eo.current=setTimeout(()=>q(null),130)},W[16]=v):v=W[16];let ed=v;W[17]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{G(!1),Z(null)},W[17]=A):A=W[17];let ep=A;W[18]===Symbol.for("react.memo_cache_sentinel")?(b=sI(l.default),W[18]=b):b=W[18];let em=b;W[19]===Symbol.for("react.memo_cache_sentinel")?(x={y:-90,opacity:0},W[19]=x):x=W[19];let ef=et?-100:0,eg=+!et;W[20]!==ef||W[21]!==eg?(w={y:ef,opacity:eg},W[20]=ef,W[21]=eg,W[22]=w):w=W[22],W[23]===Symbol.for("react.memo_cache_sentinel")?(S={duration:.38,ease:"easeInOut"},W[23]=S):S=W[23];let ey=op(eu,oV);W[24]!==ey?(P={boxShadow:ey},W[24]=ey,W[25]=P):P=W[25],W[26]===Symbol.for("react.memo_cache_sentinel")?(T=(0,s.jsx)(of.default,{src:oS,alt:"Medico Chirurgical",width:180,height:56,priority:!0,className:og.default.logoImage}),W[26]=T):T=W[26],W[27]!==ep?(E=(0,s.jsx)("div",{className:og.default.leftSection,children:(0,s.jsx)(l.default,{href:"/",onClick:ep,children:T})}),W[27]=ep,W[28]=E):E=W[28];let ev=og.default,eA=er.map(e=>(0,s.jsx)("li",{className:og.default.menuItem,onMouseEnter:()=>{var t;return"dropdown"===e.type&&(t=e.name,void(eo.current&&clearTimeout(eo.current),q(t)))},onMouseLeave:()=>"dropdown"===e.type&&ed(),children:"link"===e.type?(0,s.jsxs)(l.default,{href:e.href,className:`${og.default.navLink} ${ec(e.href)?og.default.active:""}`,children:[e.name,ec(e.href)&&(0,s.jsx)(sI.span,{layoutId:"activeUnderline",className:og.default.activeUnderline})]}):(0,s.jsxs)("div",{className:og.default.dropdownWrapper,children:[(0,s.jsxs)("button",{className:`${og.default.dropdownTrigger} ${K===e.name?og.default.triggerActive:""}`,children:[e.name,(0,s.jsx)(sI.span,{animate:{rotate:180*(K===e.name)},transition:{duration:.2},className:og.default.chevron,children:(0,s.jsx)(of.default,{src:ob,alt:"",width:11,height:11})})]}),(0,s.jsx)(sX,{children:K===e.name&&(0,s.jsx)(sI.ul,{className:og.default.dropdownPanel,variants:oP,initial:"hidden",animate:"visible",exit:"hidden",children:e.items.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)(em,{href:e.href,className:og.default.dropdownLink,initial:"initial",whileHover:"hover",children:[(0,s.jsx)(sI.div,{className:og.default.iconContainer,variants:oT,children:(0,s.jsx)(of.default,{src:oA,alt:"",width:18,height:18,className:og.default.itemIcon})}),(0,s.jsx)(sI.span,{className:og.default.linkText,variants:oE,children:e.name})]})},e.name))})})]})},e.name));W[29]!==ev.desktopMenu||W[30]!==eA?(_=(0,s.jsx)("ul",{className:ev.desktopMenu,children:eA}),W[29]=ev.desktopMenu,W[30]=eA,W[31]=_):_=W[31],W[32]!==J?(C=()=>ee(!J),W[32]=J,W[33]=C):C=W[33];let eb=og.default,ex=en.code.toUpperCase();W[34]!==eb.langCode||W[35]!==ex?(k=(0,s.jsx)("span",{className:eb.langCode,children:ex}),W[34]=eb.langCode,W[35]=ex,W[36]=k):k=W[36];let ew=180*!!J;W[37]!==ew?(M={rotate:ew},W[37]=ew,W[38]=M):M=W[38],W[39]===Symbol.for("react.memo_cache_sentinel")?(V={duration:.2},W[39]=V):V=W[39],W[40]!==M?(R=(0,s.jsx)(sI.span,{animate:M,transition:V,className:og.default.langChevron,children:"▾"}),W[40]=M,W[41]=R):R=W[41],W[42]!==en||W[43]!==J||W[44]!==eh?(j=J&&(0,s.jsx)(sI.ul,{className:og.default.langPanel,initial:{opacity:0,y:10,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.96},transition:{duration:.2},children:oC.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("button",{className:`${og.default.langOption} ${en.code===e.code?og.default.langOptionActive:""}`,onClick:()=>eh(e),children:[(0,s.jsx)(of.default,{src:e.flag,alt:e.label,width:22,height:22,className:og.default.langFlagImage}),(0,s.jsx)("span",{children:e.label})]})},e.code))}),W[42]=en,W[43]=J,W[44]=eh,W[45]=j):j=W[45],W[46]!==j?(O=(0,s.jsx)(sX,{children:j}),W[46]=j,W[47]=O):O=W[47];let eS=`${og.default.hamburger} ${X?og.default.hamburgerOpen:""}`;return W[48]!==X?(L=()=>G(!X),W[48]=X,W[49]=L):L=W[49],W[50]===Symbol.for("react.memo_cache_sentinel")?(D=(0,s.jsx)("span",{}),B=(0,s.jsx)("span",{}),I=(0,s.jsx)("span",{}),W[50]=D,W[51]=B,W[52]=I):(D=W[50],B=W[51],I=W[52]),W[53]!==eS||W[54]!==L?(N=(0,s.jsxs)("button",{className:eS,onClick:L,"aria-label":"Menu",children:[D,B,I]}),W[53]=eS,W[54]=L,W[55]=N):N=W[55],W[56]!==en||W[57]!==ep||W[58]!==X||W[59]!==er||W[60]!==Q||W[61]!==eh?(F=X&&(0,s.jsx)(sI.div,{className:og.default.mobileOverlay,initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:210},children:(0,s.jsxs)("div",{className:og.default.mobileContent,children:[(0,s.jsx)("div",{className:og.default.mobileLangRow,children:oC.map(e=>(0,s.jsxs)("button",{className:`${og.default.mobileLangBtn} ${en.code===e.code?og.default.mobileLangActive:""}`,onClick:()=>eh(e),children:[(0,s.jsx)(of.default,{src:e.flag,alt:e.label,width:22,height:22,className:og.default.mobileLangFlag}),(0,s.jsx)("span",{children:e.code.toUpperCase()})]},e.code))}),er.map(e=>(0,s.jsx)("div",{children:"link"===e.type?(0,s.jsx)(l.default,{href:e.href,className:og.default.mobileLink,onClick:ep,children:e.name}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{className:og.default.mobileDropdownBtn,onClick:()=>Z(Q===e.name?null:e.name),children:[e.name,(0,s.jsx)(of.default,{src:Q===e.name?ow:ox,alt:Q===e.name?"Fermer":"Ouvrir",width:18,height:18,className:og.default.mobileChevronIcon})]}),(0,s.jsx)(sX,{children:Q===e.name&&(0,s.jsx)(sI.div,{className:og.default.mobileSubmenu,initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},children:e.items.map(e=>(0,s.jsx)(l.default,{href:e.href,onClick:ep,className:og.default.mobileSubLink,children:e.name},e.name))})})]})},e.name))]})}),W[56]=en,W[57]=ep,W[58]=X,W[59]=er,W[60]=Q,W[61]=eh,W[62]=F):F=W[62],W[63]!==F?(U=(0,s.jsx)(sX,{children:F}),W[63]=F,W[64]=U):U=W[64],(0,s.jsxs)(sI.header,{className:`${og.default.header} ${"ar"===H?og.default.rtl:""}`,initial:x,animate:w,transition:S,style:P,children:[(0,s.jsxs)("nav",{className:og.default.navbar,children:[E,_,(0,s.jsxs)("div",{className:og.default.rightSection,children:[(0,s.jsxs)("div",{className:og.default.langDropdown,ref:ea,children:[(0,s.jsxs)("button",{className:og.default.langToggle,onClick:C,title:"Changer la langue",children:[(0,s.jsx)(of.default,{src:en.flag,alt:en.label,width:22,height:22,className:og.default.langFlagImage}),k,R]}),O]}),N]})]}),U]})};function oM(){document.body.style.overflow=""}function oV(e){return`0 10px 35px rgba(0,78,100,${e})`}var oR=e.i(14625);let oj={src:e.i(28992).default,width:512,height:512,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAyUlEQVR42lWPTwvBcBjHf+GAjEi02ppy2cV9JwdegMt4AeYypDg5+FMukyJ/DlLadvIOtikH3BalvIapHThxtvFT02+H5/B8P5+nni8YXDcX0TpZkn22nYH7d96QARQuHrt7adQY5mvFakeXdMgAelkWu+tAJBROMxmmpc01mP2FsaEYWa7ARYkEwUk9cXJTDJdQkfuyHwtiHp/XFyOTZPuw2ruEqbk1czzLxymcaqozdfk6Pn8C+iQr1AWcTtFQdtoAtCYqwAyyDwMtp7/avOndAAAAAElFTkSuQmCC"},oO={src:e.i(70436).default,width:512,height:512,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAzklEQVR42oWPzwvBABzF9+9IbiRKmRBHTMndjxUljnIRLRYxJQeMEGnsgjk4iPJrR1aK/4ADcVttbNOKi8Or1/f76fUegBwJBudoDudp/kvvm/ADBJNm+vswiQ6q7Ib9hQDBhIcoAQZdvtJ1dqk8F4/yfX6rczsxVQRiU4wywZBPkMZtdqrsemti21jLQLCX7qpsOosCVBu8hVhe7TI5PLlIVgbgD6A0a43RSXEEwlAAQkIpCZBKHgKdVNvfSjYzZ/IUpbBxfFVbiiX/zXwBSn2se4VA+8EAAAAASUVORK5CYII="},oL={fr:{description:"Solutions médico-chirurgicales innovantes, équipements médicaux et accompagnement professionnel pour les établissements de santé.",navigation:"Navigation",products:"Produits",contact:"Contact",links:{home:"Accueil",partners:"Partenaires",sav:"SAV & Maintenance",events:"Événements",instrumentation:"Instrumentation",endoscopy:"Endoscopie",consumable:"Consommables",tunisian:"Fabrication Tunisienne"},copyright:"© 2026 Medico-Chirurgical. Tous droits réservés."},en:{description:"Innovative medical-surgical solutions, medical equipment, and professional support for healthcare institutions.",navigation:"Navigation",products:"Products",contact:"Contact",links:{home:"Home",partners:"Partners",sav:"After-Sales Support",events:"Events",instrumentation:"Instrumentation",endoscopy:"Endoscopy",consumable:"Consumables",tunisian:"Tunisian Manufacturing"},copyright:"© 2026 Medico-Chirurgical. All rights reserved."}},oD={hidden:{opacity:0,y:15},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.215,.61,.355,1]}}},oB=e=>{let t,i,n,r,a,u,h,c,d,p,m,f,g,y=(0,o.c)(42),{lang:v}=e,A=oL[void 0===v?"fr":v]||oL.fr;if(y[0]!==A.contact||y[1]!==A.description||y[2]!==A.links.consumable||y[3]!==A.links.endoscopy||y[4]!==A.links.events||y[5]!==A.links.home||y[6]!==A.links.instrumentation||y[7]!==A.links.partners||y[8]!==A.links.sav||y[9]!==A.links.tunisian||y[10]!==A.navigation||y[11]!==A.products){let e,o,u,h,c,d=[{title:A.navigation,links:[{name:A.links.home,href:"/"},{name:A.links.partners,href:"/partenaires"},{name:A.links.sav,href:"/sav"},{name:A.links.events,href:"/evenement"}]},{title:A.products,links:[{name:A.links.instrumentation,href:"/produits/instrumentation"},{name:A.links.endoscopy,href:"/produits/endoscopie"},{name:A.links.consumable,href:"/produits/consommable"},{name:A.links.tunisian,href:"/produits/fabrication-tunisienne"}]},{title:A.contact,links:[{name:"31 Boulevard Hédi Saidi, Tunis",href:"https://maps.google.com",isExternal:!0},{name:"71 899 750",href:"tel:+21671899750"},{name:"medico.chirurgi@gnet.tn",href:"mailto:medico.chirurgi@gnet.tn"}]}];a=oR.default.footer,n=oR.default.top,y[17]===Symbol.for("react.memo_cache_sentinel")?(e={once:!0,margin:"-60px"},y[17]=e):e=y[17],y[18]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(l.default,{href:"/",className:oR.default.logoContainer,children:(0,s.jsx)(of.default,{src:"/images/medico3.png",alt:"Medico Chirurgical Logo",width:200,height:55,className:oR.default.logo,priority:!0})}),y[18]=o):o=y[18],y[19]!==A.description?(u=(0,s.jsx)("p",{className:oR.default.description,children:A.description}),y[19]=A.description,y[20]=u):u=y[20],y[21]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsx)(sI.a,{href:"https://www.facebook.com/medico.chirurgical",target:"_blank",rel:"noopener noreferrer",className:oR.default.socialBtn,whileHover:{scale:1.05,y:-3},whileTap:{scale:.95},children:(0,s.jsx)(of.default,{src:oj,alt:"Facebook",width:20,height:20,className:oR.default.socialIcon})}),y[21]=h):h=y[21],y[22]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsxs)("div",{className:oR.default.socials,children:[h,(0,s.jsx)(sI.a,{href:"https://www.linkedin.com/in/medico-chirurgical-08902947/",target:"_blank",rel:"noopener noreferrer",className:oR.default.socialBtn,whileHover:{scale:1.05,y:-3},whileTap:{scale:.95},children:(0,s.jsx)(of.default,{src:oO,alt:"LinkedIn",width:20,height:20,className:oR.default.socialIcon})})]}),y[22]=c):c=y[22],y[23]!==u?(r=(0,s.jsxs)(sI.div,{className:oR.default.brand,initial:"hidden",whileInView:"visible",viewport:e,variants:oD,children:[o,u,c]}),y[23]=u,y[24]=r):r=y[24],t=oR.default.linksGrid,i=d.map(oN),y[0]=A.contact,y[1]=A.description,y[2]=A.links.consumable,y[3]=A.links.endoscopy,y[4]=A.links.events,y[5]=A.links.home,y[6]=A.links.instrumentation,y[7]=A.links.partners,y[8]=A.links.sav,y[9]=A.links.tunisian,y[10]=A.navigation,y[11]=A.products,y[12]=t,y[13]=i,y[14]=n,y[15]=r,y[16]=a}else t=y[12],i=y[13],n=y[14],r=y[15],a=y[16];return y[25]!==t||y[26]!==i?(u=(0,s.jsx)("div",{className:t,children:i}),y[25]=t,y[26]=i,y[27]=u):u=y[27],y[28]!==n||y[29]!==r||y[30]!==u?(h=(0,s.jsxs)("div",{className:n,children:[r,u]}),y[28]=n,y[29]=r,y[30]=u,y[31]=h):h=y[31],y[32]===Symbol.for("react.memo_cache_sentinel")?(m={opacity:0},c={opacity:1},d={once:!0},p={duration:.6,delay:.2},y[32]=c,y[33]=d,y[34]=p,y[35]=m):(c=y[32],d=y[33],p=y[34],m=y[35]),y[36]!==A.copyright?(f=(0,s.jsx)(sI.div,{className:oR.default.bottom,initial:m,whileInView:c,viewport:d,transition:p,children:(0,s.jsx)("p",{className:oR.default.copy,children:A.copyright})}),y[36]=A.copyright,y[37]=f):f=y[37],y[38]!==f||y[39]!==a||y[40]!==h?(g=(0,s.jsxs)("footer",{className:a,children:[h,f]}),y[38]=f,y[39]=a,y[40]=h,y[41]=g):g=y[41],g};function oI(e){return e.isExternal||e.href.startsWith("tel:")||e.href.startsWith("mailto:")?(0,s.jsx)("a",{href:e.href,className:oR.default.footerLink,children:e.name},e.name):(0,s.jsx)(l.default,{href:e.href,className:oR.default.footerLink,children:e.name},e.name)}function oN(e,t){return(0,s.jsxs)(sI.div,{className:oR.default.column,initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:oD,transition:{delay:.05*t},children:[(0,s.jsx)("h3",{className:oR.default.columnTitle,children:e.title}),(0,s.jsx)("div",{className:oR.default.links,children:e.links.map(oI)})]},e.title)}let oF=(0,a.createContext)();e.s(["LangContext",0,oF,"default",0,function(e){let t,i,n,r,l,u,h,c=(0,o.c)(17),{children:d}=e,[p,m]=(0,a.useState)("fr");c[0]!==p?(t={lang:p,setLang:m},c[0]=p,c[1]=t):t=c[1];let f="ar"===p?"rtl":"ltr";return c[2]!==p?(i=(0,s.jsx)(ok,{currentLang:p,onLangChange:m}),c[2]=p,c[3]=i):i=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(n={minHeight:"100vh"},c[4]=n):n=c[4],c[5]!==d?(r=(0,s.jsx)("main",{style:n,children:d}),c[5]=d,c[6]=r):r=c[6],c[7]!==p?(l=(0,s.jsx)(oB,{lang:p}),c[7]=p,c[8]=l):l=c[8],c[9]!==f||c[10]!==i||c[11]!==r||c[12]!==l?(u=(0,s.jsxs)("div",{dir:f,children:[i,r,l]}),c[9]=f,c[10]=i,c[11]=r,c[12]=l,c[13]=u):u=c[13],c[14]!==t||c[15]!==u?(h=(0,s.jsx)(oF.Provider,{value:t,children:u}),c[14]=t,c[15]=u,c[16]=h):h=c[16],h}],11808)}]);