1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7868,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function({html:t,height:e=null,width:i=null,children:r,dataNtpc:o=""}){return(0,s.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${o}`}})},[o]),(0,n.jsxs)(n.Fragment,{children:[r,t?(0,n.jsx)("div",{style:{height:null!=e?`${e}px`:"auto",width:null!=i?`${i}px`:"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:t}}):null]})};let n=t.r(72453),s=t.r(3352)},3964,(t,e,i)=>{"use strict";let n;var s=t.e&&t.e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.GoogleAnalytics=function(t){let{gaId:e,debugMode:i,dataLayerName:s="dataLayer",nonce:l}=t;return void 0===n&&(n=s),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 2 window['${s}'] = window['${s}'] || []; 3 function gtag(){window['${s}'].push(arguments);} 4 gtag('js', new Date()); 5 6 gtag('config', '${e}' ${i?",{ 'debug_mode': true }":""});`},nonce:l}),(0,r.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${e}`,nonce:l})]})},i.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let r=t.r(72453),o=t.r(3352),a=s(t.r(83009))},23095,(t,e,i)=>{"use strict";var n=t.e&&t.e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.sendGTMEvent=void 0,i.GoogleTagManager=function(t){let{gtmId:e,gtmScriptUrl:i,dataLayerName:n="dataLayer",auth:l,preview:u,dataLayer:h,nonce:d}=t;a=n;let c=new URL(i||"https://www.googletagmanager.com/gtm.js");return e&&c.searchParams.set("id",e),"dataLayer"!==n&&c.searchParams.set("l",n),l&&c.searchParams.set("gtm_auth",l),u&&(c.searchParams.set("gtm_preview",u),c.searchParams.set("gtm_cookies_win","x")),(0,r.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 7 (function(w,l){ 8 w[l]=w[l]||[]; 9 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 10 ${h?`w[l].push(${JSON.stringify(h)})`:""} 11 })(window,'${n}');`},nonce:d}),(0,s.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:c.href,nonce:d})]})};let s=t.r(72453),r=t.r(3352),o=n(t.r(83009)),a="dataLayer";i.sendGTMEvent=(t,e)=>{let i=e||a;window[i]=window[i]||[],window[i].push(t)}},71938,(t,e,i)=>{"use strict";t.i(20977),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return b}});let n=t.r(36437),s=t.r(56421),r=t.r(72453),o=s._(t.r(3352)),a=n._(t.r(746)),l=n._(t.r(54614)),u=t.r(39677),h=t.r(80709),d=t.r(57752),c=t.r(94994),p=n._(t.r(48976)),m=t.r(96683),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(t,e,i,n,s,r,o){let a=t?.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&s(!0),i?.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,s=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{s=!0,e.stopPropagation()}})}n?.current&&n.current(t)}}))}function y(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v="u"<typeof window?o.useEffect:o.useLayoutEffect,x=(0,o.forwardRef)(({src:t,srcSet:e,sizes:i,height:n,width:s,decoding:a,className:l,style:u,fetchPriority:h,placeholder:d,loading:c,unoptimized:p,fill:f,onLoadRef:x,onLoadingCompleteRef:w,setBlurComplete:b,setShowAltText:P,sizesInput:S,onLoad:T,onError:E,...M},A)=>{let C=(0,o.useRef)(!1),k=(0,o.useRef)(null);v(()=>{let{current:t}=C,{current:e}=k;t||null===e||(E&&(e.src=e.src),e.complete&&g(e,d,x,w,b,p,S),C.current=!0)},[t,d,x,w,E,p,S]);let j=(0,m.useMergedRef)(A,k);
11return(0,r.jsx)("img",{...M,...y(h),loading:c,width:s,height:n,decoding:a,"data-nimg":f?"fill":"1",className:l,style:u,sizes:i,srcSet:e,src:t,ref:j,onLoad:t=>{g(t.currentTarget,d,x,w,b,p,S)},onError:t=>{P(!0),"empty"!==d&&b(!0),E&&E(t)}})});function w({isAppRouter:t,imgAttributes:e}){let i={as:"image",imageSrcSet:e.srcSet,imageSizes:e.sizes,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,...y(e.fetchPriority)};return t&&a.default.preload?(a.default.preload(e.src,i),null):(0,r.jsx)(l.default,{children:(0,r.jsx)("link",{rel:"preload",href:e.srcSet?void 0:e.src,...i},"__nimg-"+e.src+e.srcSet+e.sizes)})}let b=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(c.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),s=(0,o.useMemo)(()=>{let t=f||n||h.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e),s=t.qualities?.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i,qualities:s,localPatterns:"u"<typeof window?n?.localPatterns:t.localPatterns}},[n]),{onLoad:a,onLoadingComplete:l}=t,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,v]=(0,o.useState)(!1),[b,P]=(0,o.useState)(!1),{props:S,meta:T}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:s,blurComplete:y,showAltText:b});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{...S,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:v,setShowAltText:P,sizesInput:t.sizes,ref:e}),T.preload?(0,r.jsx)(w,{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),e.exports=i.default)},60590,(t,e,i)=>{"use strict";t.i(20977),Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return h},getImageProps:function(){return u}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(36437),o=t.r(39677),a=t.r(71938),l=r._(t.r(48976));function u(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let h=a.Image},63978,(t,e,i)=>{e.exports=t.r(60590)},34696,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return r}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("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),e.exports=i.default)},79479,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return h},htmlEscapeJsonString:function(){return u}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function u(t){return t.replace(o,t=>r[t])}function h(t){return t.replace(l,t=>a[t])}},54094,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return w},handleClientScriptLoad:function(){return y},initScriptLoader:function(){return v}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(36437),o=t.r(56421),a=t.r(72453),l=r._(t.r(746)),u=o._(t.r(3352)),h=t.r(52335),d=t.r(53080),c=t.r(34696),p=t.r(79479),m=new Map,f=new Set,g=t=>{let{src:e,id:i,onLoad:n=()=>{},onReady:s=null,dangerouslySetInnerHTML:r,children:o="",strategy:a="afterInteractive",onError:u,stylesheets:h}=t,c=i||e;if(c&&f.has(c))return;if(m.has(e)){f.add(c),m.get(e).then(n,u);return}let p=()=>{s&&s(),f.add(c)},g=document.createElement("script"),y=new Promise((t,e)=>{g.addEventListener("load",function(e){t(),n&&n.call(this,e),p()}),g.addEventListener("error",function(t){e(t)})}).catch(function(t){u&&u(t)});r?(g.innerHTML=r.__html||"",p()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",p()):e&&(g.src=e,m.set(e,y)),(0,d.setAttributesFromProps)(g,t),"worker"===a&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",a),h&&(t=>{if(l.default.preinit)return t.forEach(t=>{l.default.preinit(t,{as:"style"})});if("u">typeof window){let e=document.head;t.forEach(t=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,e.appendChild(i)})}})(h),document.body.appendChild(g)};function y(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(t))}):g(t)}function v(t){t.forEach(y),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEac
11h(t=>{let e=t.id||t.getAttribute("src");f.add(e)})}function x(t){let{id:e,src:i="",onLoad:n=()=>{},onReady:s=null,strategy:r="afterInteractive",onError:o,stylesheets:d,...m}=t,{updateScripts:y,scripts:v,getIsSsr:x,appDir:w,nonce:b}=(0,u.useContext)(h.HeadManagerContext);b=m.nonce||b;let P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let t=e||i;P.current||(s&&t&&f.has(t)&&s(),P.current=!0)},[s,e,i]);let S=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!S.current){if("afterInteractive"===r)g(t);else"lazyOnload"===r&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>g(t)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(t))}));S.current=!0}},[t,r]),("beforeInteractive"===r||"worker"===r)&&(y?(v[r]=(v[r]||[]).concat([{id:e,src:i,onLoad:n,onReady:s,onError:o,...m,nonce:b}]),y(v)):x&&x()?f.add(e||i):x&&!x()&&g({...t,nonce:b})),w){if(d&&d.forEach(t=>{l.default.preinit(t,{as:"style"})}),"beforeInteractive"===r)if(!i)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:e}]))})`}});else return l.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:b,crossOrigin:m.crossOrigin}:{as:"script",nonce:b,crossOrigin:m.crossOrigin}),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([i,{...m,id:e}]))})`}});"afterInteractive"===r&&i&&l.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:b,crossOrigin:m.crossOrigin}:{as:"script",nonce:b,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let w=x;("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),e.exports=i.default)},54614,(t,e,i)=>{"use strict";t.i(20977),Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return f},defaultHead:function(){return d}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(36437),o=t.r(56421),a=t.r(72453),l=o._(t.r(3352)),u=r._(t.r(6271)),h=t.r(52335);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function c(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===l.default.Fragment?t.concat(l.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}let p=["name","httpEquiv","charSet","itemProp"];function m(t){let e,i,n,s;return t.reduce(c,[]).reverse().concat(d().reverse()).filter((e=new Set,i=new Set,n=new Set,s={},t=>{let r=!0,o=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){o=!0;let i=t.key.slice(t.key.indexOf("$")+1);e.has(i)?r=!1:e.add(i)}switch(t.type){case"title":case"base":i.has(t.type)?r=!1:i.add(t.type);break;case"meta":for(let e=0,i=p.length;e<i;e++){let i=p[e];if(t.props.hasOwnProperty(i))if("charSet"===i)n.has(i)?r=!1:n.add(i);else{let e=t.props[i],n=s[i]||new Set;("name"!==i||!o)&&n.has(e)?r=!1:(n.add(e),s[i]=n)}}}return r})).reverse().map((t,e)=>{let i=t.key||e;return l.default.cloneElement(t,{key:i})})}let f=function({children:t}){let e=(0,l.useContext)(h.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:m,headManager:e,children:t})};("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),e.exports=i.default)},57752,(t,e,i)=>{"use strict";t.i(20977),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let n=t.r(36437)._(t.r(3352)),s=t.r(80709),r=n.default.createContext(s.imageConfigDefault)},94994,(t,e,i)=>{"use strict";t.i(20977),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=t.r(36437)._(t.r(3352)).default.createContext(null)},78434,(t,e,i)=>{"use strict";function n(t,e){let i=t||75;return e?.qualities?.length?e.qualities.reduce((t,e)=>Math.abs(e-i)<Math.abs(t-i)?e:t,e.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return n}})},48976,(t,e,i)=>{"use strict";t.i(20977),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let n=t.r(78434),s=t.r(76249);function r({config:t,src:e,width:i,quality:o}){let a=(0,s.getDeploymentId)();if(e.startsWith("/")&&!e.startsWith("//"))if(e.includes("/_next/static/immutable")&&!(0,s.getAssetToken)())a=void 0;else{let t=e.indexOf("?");if(-1!==t){let i=new URLSearchParams(e.slice(t+1)),n=i.get("dpl");if(n){a=n,i.delete("dpl");let s=i.toString();e=e.slice(0,t)+(s?"?"+s:"")}}}if(e.startsWith("/")&&e.includes("?")&&t.localPatterns?.length===1&&"**"===t.localPatterns[0].pathname&&""===t.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${e}" is using a query string which is not configured in images.localPatterns. 12Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,
12configurable:!0});let l=(0,n.findClosestQuality)(o,t);return`${t.path}?url=${encodeURIComponent(e)}&w=${i}&q=${l}${e.startsWith("/")&&a?`&dpl=${a}`:""}`}r.__next_img_default=!0;let o=r},94001,(t,e,i)=>{"use strict";function n({widthInt:t,heightInt:e,blurWidth:i,blurHeight:s,blurDataURL:r,objectFit:o}){let a=i?40*i:t,l=s?40*s:e,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='${r}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},80709,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=["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}},39677,(t,e,i)=>{"use strict";t.i(20977),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return u}});let n=t.r(76249),s=t.r(94001),r=t.r(80709),o=["-moz-initial","fill","none","scale-down",void 0];function a(t){return void 0!==t.default}function l(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function u({src:t,sizes:e,unoptimized:i=!1,priority:h=!1,preload:d=!1,loading:c,className:p,quality:m,width:f,height:g,fill:y=!1,style:v,overrideSrc:x,onLoad:w,onLoadingComplete:b,placeholder:P="empty",blurDataURL:S,fetchPriority:T,decoding:E="async",layout:M,objectFit:A,objectPosition:C,lazyBoundary:k,lazyRoot:j,...V},R){var D;let L,O,_,{imgConf:I,showAltText:B,blurComplete:F,defaultLoader:$}=R,N=I||r.imageConfigDefault;if("allSizes"in N)L=N;else{let t=[...N.deviceSizes,...N.imageSizes].sort((t,e)=>t-e),e=N.deviceSizes.sort((t,e)=>t-e),i=N.qualities?.sort((t,e)=>t-e);L={...N,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===$)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 U=V.loader||$;delete V.loader,delete V.srcSet;let z="__next_img_default"in U;if(z){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${t}" is missing "loader" prop. 13Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=U;U=e=>{let{config:i,...n}=e;return t(n)}}if(M){"fill"===M&&(y=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];t&&(v={...v,...t});let i={responsive:"100vw",fill:"100vw"}[M];i&&!e&&(e=i)}let W="",H=l(f),X=l(g);if((D=t)&&"object"==typeof D&&(a(D)||void 0!==D.src)){let e=a(t)?t.default:t;if(!e.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(e)}
13`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.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(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(O=e.blurWidth,_=e.blurHeight,S=S||e.blurDataURL,W=e.src,!y)if(H||X){if(H&&!X){let t=H/e.width;X=Math.round(e.height*t)}else if(!H&&X){let t=X/e.height;H=Math.round(e.width*t)}}else H=e.width,X=e.height}let Y=!h&&!d&&("lazy"===c||void 0===c);(!(t="string"==typeof t?t:W)||t.startsWith("data:")||t.startsWith("blob:"))&&(i=!0,Y=!1),L.unoptimized&&(i=!0),z&&!L.dangerouslyAllowSVG&&t.split("?",1)[0].endsWith(".svg")&&(i=!0);let G=l(m),q=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:C}:{},B?{}:{color:"transparent"},v),K=F||"empty"===P?null:"blur"===P?`url("data:image/svg+xml;charset=utf-8,${(0,s.getImageBlurSvg)({widthInt:H,heightInt:X,blurWidth:O,blurHeight:_,blurDataURL:S||"",objectFit:q.objectFit})}")`:`url("${P}")`,Z=o.includes(q.objectFit)?"fill"===q.objectFit?"100% 100%":"cover":q.objectFit,J=K?{backgroundSize:Z,backgroundPosition:q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Q=function({config:t,src:e,unoptimized:i,width:s,quality:r,sizes:o,loader:a}){if(i){if(e.startsWith("/")&&!e.startsWith("//")){let t=(0,n.getDeploymentId)();if(e.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())t=void 0;else if(t){let i=e.indexOf("?");if(-1!==i){let n=new URLSearchParams(e.slice(i+1));n.get("dpl")||(n.append("dpl",t),e=e.slice(0,i)+"?"+n.toString())}else e+=`?dpl=${t}`}}return{src:e,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:t,allSizes:e},i,n){if(n){let i=/(^|\s)(1?\d?\d)vw/g,s=[];for(let t;t=i.exec(n);)s.push(parseInt(t[2]));if(s.length){let i=.01*Math.min(...s);return{widths:e.filter(e=>e>=t[0]*i),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof i?{widths:t,kind:"w"}:{widths:[...new Set([i,2*i].map(t=>e.find(e=>e>=t)||e[e.length-1]))],kind:"x"}}(t,s,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((i,n)=>`${a({config:t,src:e,quality:r,width:i})} ${"w"===u?i:n+1}${u}`).join(", "),src:a({config:t,src:e,quality:r,width:l[h]})}}({config:L,src:t,unoptimized:i,width:H,quality:G,sizes:e,loader:U}),tt=Y?"lazy":c;return{props:{...V,loading:tt,fetchPriority:T,width:H,height:X,decoding:E,className:p,style:{...q,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:i,preload:d||h,placeholder:P,fill:y}}}},6271,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=t.r(3352),s="u"<typeof window,r=s?()=>{}:n.useLayoutEffect,o=s?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let t=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(t))}}return s&&(e?.mountedInstances?.add(t.children),a()),r(()=>(e?.mountedInstances?.add(t.children),()=>{e?.mountedInstances?.delete(t.children)})),r(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},40088,(t,e,i)=>{e.exports=t.r(4481)},83009,(t,e,i)=>{e.exports=t.r(54094)},21829,t=>{"use strict";let e,i,n;var s=t.i(72453),r=t.i(20977),o=t.i(3352);let a=(0,o.createContext)({});function l(t){let e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}let u="u">typeof window?o.useLayoutEffect:o.useEffect,h=(0,o.createContext)(null),d=t=>"object"==typeof t&&null!==t;function c(t){return d(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}var p=o;let m=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function f(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class g extends p.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(c(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,
13i=c(t)&&t.offsetWidth||0,n=c(t)&&t.offsetHeight||0,s=getComputedStyle(e),r=this.props.sizeRef.current;r.height=parseFloat(s.height),r.width=parseFloat(s.width),r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top,r.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function y({children:t,isPresent:e,anchorX:i,anchorY:n,root:r,pop:a}){let l=(0,p.useId)(),u=(0,p.useRef)(null),h=(0,p.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,p.useContext)(m),c=function(...t){return o.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=f(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():f(t[e],null)}}}}(...t),t)}(u,!1!==a?t.props?.ref??t?.ref:void 0);return(0,p.useInsertionEffect)(()=>{let{width:t,height:s,top:o,left:c,right:p,bottom:m,direction:f}=h.current;if(e||!1===a||!u.current||!t||!s)return;let g="rtl"===f,y="left"===i?g?`right: ${p}`:`left: ${c}`:g?`left: ${c}`:`right: ${p}`,v="bottom"===n?`bottom: ${m}`:`top: ${o}`;u.current.dataset.motionPopId=l;let x=document.createElement("style");d&&(x.nonce=d);let w=r??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(` 14 [data-motion-pop-id="${l}"] { 15 position: absolute !important; 16 width: ${t}px !important; 17 height: ${s}px !important; 18 ${y}px !important; 19 ${v}px !important; 20 } 21 `),()=>{u.current?.removeAttribute("data-motion-pop-id"),w.contains(x)&&w.removeChild(x)}},[e]),(0,s.jsx)(g,{isPresent:e,childRef:u,sizeRef:h,pop:a,children:!1===a?t:p.cloneElement(t,{ref:c})})}let v=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:r,presenceAffectsLayout:a,mode:d,anchorX:c,anchorY:p,root:m})=>{let f=l(x),g=(0,o.useId)(),v=(0,o.useRef)(i),w=(0,o.useRef)(n);u(()=>{v.current=i,w.current=n});let b=!0,P=(0,o.useMemo)(()=>(b=!1,{id:g,initial:e,isPresent:i,custom:r,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;n&&n()},register:t=>(f.set(t,!1),()=>{f.delete(t),v.current||f.size||w.current?.()})}),[i,f,n]);return a&&b&&(P={...P}),(0,o.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[i]),o.useEffect(()=>{i||f.size||!n||n()},[i]),t=(0,s.jsx)(y,{pop:"popLayout"===d,isPresent:i,anchorX:c,anchorY:p,root:m,children:t}),(0,s.jsx)(h.Provider,{value:P,children:t})};function x(){return new Map}function w(t=!0){let e=(0,o.useContext)(h);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,o.useId)();(0,o.useEffect)(()=>{if(t)return s(r)},[t]);let a=(0,o.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,a]:[!0]}let b=t=>t.key||"";function P(t){let e=[];return o.Children.forEach(t,t=>{(0,o.isValidElement)(t)&&e.push(t)}),e}let S=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:h="sync",propagate:d=!1,anchorX:c="left",anchorY:p="top",root:m})=>{let[f,g]=w(d),y=(0,o.useMemo)(()=>P(t),[t]),x=d&&!f?[]:y.map(b),S=(0,o.useRef)(!0),T=(0,o.useRef)(y),E=l(()=>new Map),M=(0,o.useRef)(new Set),[A,C]=(0,o.useState)(y),[k,j]=(0,o.useState)(y);u(()=>{!d||f||k.length||g?.()},[f,d,k.length,g]),u(()=>{S.current=!1,T.current=y;for(let t=0;t<k.length;t++){let e=b(k[t]);x.includes(e)?(E.delete(e),M.current.delete(e)):!0!==E.get(e)&&E.set(e,!1)}},[k,x.length,x.join("-")]);let V=[];if(y!==A){let t=[...y],e=0;for(let i of k){let n=x.indexOf(b(i));-1===n?(t.splice(e++,0,i),V.push(i)):e=n+V.length+1}return"wait"===h&&V.length&&(t=V),j(P(t)),C(y),null}let{forceRender:R}=(0,o.useContext)(a);return(0,s.jsx)(s.Fragment,{children:k.map(t=>{let o=b(t),a=(!d||!!f)&&(y===k||x.includes(o));return(0,s.jsx)(v,{isPresent:a,initial:(!S.current||!!i)&&void 0,custom:e,presenceAffectsLayout:r,mode:h,root:m,onExitComplete:a?void 0:()=>{if(M.current.has(o)||!E.has(o))return;M.current.add(o),E.set(o,!0);let t=!0;E.forEach(e=>{e||(t=!1)}),t&&(R?.(),j(T.current),d&&g?.(),n&&n())},anchorX:c,anchorY:p,children:t},o)})})},T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],E=new Set([...T,"pathRotation"]),M=(t,e,i)=>i>e?e:i<t?t:i,A={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},C={...A,transform:t=>M(0,1,t)},k={...A,default:1},j=t=>Math.round(1e5*t)/1e5,V=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,R=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,D=(t,e)=>i=>!!("string"==typeof i&&R.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),L=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(V);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},O={...A,transform:t=>Math.round(M(0,255,t))},_={test:D("rgb","red"),parse:L("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+O.transform(t)+", "+O.transform(e)+", "+O.transform(i)+", "+j(C.transform(n))+")"},I={test:D("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
21a:s?parseInt(s,16)/255:1}},transform:_.transform},B=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),F=B("deg"),$=B("%"),N=B("px"),U=B("vh"),z=B("vw"),W={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(100*t)},H={test:D("hsl","hue"),parse:L("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+$.transform(j(e))+", "+$.transform(j(i))+", "+j(C.transform(n))+")"},X={test:t=>_.test(t)||I.test(t)||H.test(t),parse:t=>_.test(t)?_.parse(t):H.test(t)?H.parse(t):I.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?_.transform(t):H.transform(t),getAnimatableNone:t=>{let e=X.parse(t);return e.alpha=0,X.transform(e)}},Y=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,G="number",q="color",K=/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 Z(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(K,t=>(X.test(t)?(n.color.push(r),s.push(q),i.push(X.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(G),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function J({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===G?s+=j(n[r]):t===q?s+=X.transform(n[r]):s+=n[r]}return s}}let Q={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(V)?.length||0)+(t.match(Y)?.length||0)>0},parse:function(t){return Z(t).values},createTransformer:function(t){return J(Z(t))},getAnimatableNone:function(t){let e=Z(t);return J(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:X.test(t)?X.getAnimatableNone(t):t)(t,e.split[i])))}},tt=new Set(["brightness","contrast","saturate","opacity"]);function te(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(V)||[];if(!n)return t;let s=i.replace(n,""),r=+!!tt.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let ti=/\b([a-z-]*)\(.*?\)/gu,tn={...Q,getAnimatableNone:t=>{let e=t.match(ti);return e?e.map(te).join(" "):t}},ts={...Q,getAnimatableNone:t=>{let e=Q.parse(t);return Q.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},tr={...A,transform:Math.round},to={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,inset:N,insetBlock:N,insetBlockStart:N,insetBlockEnd:N,insetInline:N,insetInlineStart:N,insetInlineEnd:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,paddingBlock:N,paddingBlockStart:N,paddingBlockEnd:N,paddingInline:N,paddingInlineStart:N,paddingInlineEnd:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,marginBlock:N,marginBlockStart:N,marginBlockEnd:N,marginInline:N,marginInlineStart:N,marginInlineEnd:N,fontSize:N,backgroundPositionX:N,backgroundPositionY:N,rotate:F,pathRotation:F,rotateX:F,rotateY:F,rotateZ:F,scale:k,scaleX:k,scaleY:k,scaleZ:k,skew:F,skewX:F,skewY:F,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:C,originX:W,originY:W,originZ:N,zIndex:tr,fillOpacity:C,strokeOpacity:C,numOctaves:tr},ta={...to,color:X,backgroundColor:X,outlineColor:X,fill:X,stroke:X,borderColor:X,borderTopColor:X,borderRightColor:X,borderBottomColor:X,borderLeftColor:X,filter:tn,WebkitFilter:tn,mask:ts,WebkitMask:ts},tl=t=>ta[t],tu=()=>({translate:0,scale:1,origin:0,originPoint:0}),th=()=>({x:tu(),y:tu()}),td=()=>({min:0,max:0}),tc=()=>({x:td(),y:td()}),tp=t=>!!(t&&t.getVelocity),tm=new Set(["width","height","top","left","right","bottom",...T]),tf=t=>e=>e.test(t),tg=[A,N,$,F,z,U,{test:t=>"auto"===t,parse:t=>t}],ty=t=>tg.find(tf(t)),tv=()=>{},tx=()=>{};r.default;let tw=t=>e=>"string"==typeof e&&e.startsWith(t),tb=tw("--"),tP=tw("var(--"),tS=t=>!!tP(t)&&tT.test(t.split("/*")[0].trim()),tT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tE(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tA=t=>180*t/Math.PI,tC=t=>tj(tA(Math.atan2(t[1],t[0]))),tk={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tC,rotateZ:tC,skewX:t=>tA(Math.atan(t[1])),skewY:t=>tA(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tj=t=>((t%=360)<0&&(t+=360),t),tV=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tR=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tV,scaleY:tR,scale:t=>(tV(t)+tR(t))/2,rotateX:t=>tj(tA(Math.atan2(t[6],t[5]))),rotateY:t=>tj(tA(Math.atan2(-t[2],t[0]))),rotateZ:tC,rotate:tC,skewX:t=>tA(Math.atan(t[4])),skewY:t=>tA(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tL(t){return+!!t.includes("scale")}function tO(t,e){let i,n;if(!t||"none"===t)return tL(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tD,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tk,n=e}if(!n)return tL(e);let r=i[e],o=n[1].split(",").map(t_);return"function"==typeof r?r(o):o[r]}function t_(t){return parseFloat(t.trim())}let tI=t=>t===A||t===N,tB=new Set(["x","y","z"]),tF=T.filter(t=>!tB.has(t)),t$={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tO(e,"x"),y:(t,{transform:e})=>tO(e,"y")};t$.translateX=t$.x,t$.translateY=t$.y;let tN=t=>t,tU={},tz=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tW(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tz.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&n?e:i;return s&&r.add(t),a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0;let r=e;e=i,i=r,e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let r=tU.useManualTiming,o=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),d.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tz.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<tz.length;e++)o[tz[e]].cancel(t)},state:s,steps:o}}let{schedule:tH,cancel:tX,state:tY,steps:tG}=tW("u">typeof requestAnimationFrame?requestAnimationFrame:tN,!0),tq=new Set,tK=!1,tZ=!1,tJ=!1;function tQ(){if(tZ){let t=Array.from(tq).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tF.forEach(i=>
21{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tZ=!1,tK=!1,tq.forEach(t=>t.complete(tJ)),tq.clear()}function t0(){tq.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tZ=!0)})}class t1{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tq.add(this),tK||(tK=!0,tH.read(t0),tH.resolveKeyframes(tQ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tq.delete(this)}cancel(){"scheduled"===this.state&&(tq.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let t2=new Set([tn,ts]);function t3(t,e){let i=tl(t);return t2.has(i)||(i=Q),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t5=new Set(["auto","none","0"]);class t4 extends t1{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tS(n=n.trim())){let s=function t(e,i,n=1){tx(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,r]=function(t){let e=tM.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tS(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!tm.has(i)||2!==t.length)return;let[n,s]=t,r=ty(n),o=ty(s);if(tE(n)!==tE(s)&&t$[i]){this.needsMeasurement=!0;return}if(r!==o)if(tI(r)&&tI(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else t$[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!t5.has(e)&&Z(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=t3(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t$[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=t$[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
21h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t9=t=>1e3*t;function t6(t,e){-1===t.indexOf(e)&&t.push(e)}function t7(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t8{constructor(){this.subscriptions=[]}add(t){return t6(this.subscriptions,t),()=>t7(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function et(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function ee(t){let e;return()=>(void 0===e&&(e=t()),e)}let ei={};function en(t,e){let i=ee(t);return()=>ei[e]??i()}let es=en(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),er=t=>null!==t;function eo(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(er),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}class ea{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let el=t=>Array.isArray(t)&&"number"==typeof t[0],eu=en(()=>{try{document.createElement("div").animate({opacity:0}
21,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eh=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ed=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,ec={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ed([0,.65,.55,1]),circOut:ed([.55,0,1,.45]),backIn:ed([.31,.01,.66,-.59]),backOut:ed([.33,1.53,.69,.99])};function ep(t){return"function"==typeof t&&"applyToOptions"in t}class em extends ea{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,tx(t.type);const l=function({type:t,...e}){return ep(t)&&eu()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?eu()?eh(e,i):"ease-out":el(e)?ed(e):Array.isArray(e)?e.map(e=>t(e,i)||ec.easeOut):ec[e]}(a,s);Array.isArray(d)&&(h.easing=d);let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return u&&(c.pseudoElement=u),t.animate(h,c)}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=eo(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),et(e,i,t),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(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t9(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&es())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tN):n(this)}}let ef=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:eg}=tW(queueMicrotask,!1);function ey(){e=void 0}let ev={now:()=>(void 0===e&&ev.set(tY.isProcessing||tU.useManualTiming?tY.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(ey)}},ex=(t,e)=>e?1e3/e*t:0,ew;class eb{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ev.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ev.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t8);let i=this.events[t].add(e);return"change"===t?()=>{i(),tH.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ew&&ew.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ev.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ex(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eP(t,e){return new eb(t,e)}let eS=[...tg,X,Q],eT=new WeakMap;function eE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eM(t){return"string"==typeof t||Array.isArray(t)}let eA=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eC=["initial",...eA];function ek(t){return eE(t.animate)||eC.some(e=>eM(t[e]))}function ej(t){return!!(ek(t)||t.variants)}let eV={current:null},eR={current:!1},eD="u">typeof window;function eL(t){let e=[{},{}];
21return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eO(t,e,i,n){if("function"==typeof e){let[s,r]=eL(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=eL(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let e_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eI={};class eB{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,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=t1,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 t=ev.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tH.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ek(e),this.isVariantNode=ej(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&tp(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eT.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eR.current||function(){if(eR.current=!0,eD)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eV.current=t.matches;t.addEventListener("change",e),e()}else eV.current=!1}(),this.shouldReduceMotion=eV.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tX(this.notifyUpdate),tX(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ef.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new em({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:t9(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=E.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tH.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eI){let e=eI[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
21e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tc()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<e_.length;e++){let i=e_[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(tp(s))t.addValue(n,s);else if(tp(r))t.addValue(n,eP(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,eP(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eP(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!eS.find(tf(n))&&Q.test(e)&&(i=t3(t,e))}this.setBaseTarget(t,tp(i)?i.get():i)}return tp(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eO(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||tp(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new t8),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){eg.render(this.render)}}class eF extends eB{constructor(){super(...arguments),this.KeyframeResolver=t4}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tp(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function e$(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eN=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ez=T.length;function eW(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(E.has(t)){o=!0;continue}if(tb(t)){s[t]=i;continue}{let e=eN(i,to[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}
21if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<ez;r++){let o=T[r],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=eN(a,to[o]);if(!l){s=!1;let e=eU[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}let r=t.pathRotation;return r&&(s=!1,n+=`rotate(${eN(r,to.pathRotation)}) `),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let eH={offset:"stroke-dashoffset",array:"stroke-dasharray"},eX={offset:"strokeDashoffset",array:"strokeDasharray"},eY=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eG(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,u,h){if(eW(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of eY)void 0!==d[t]&&(c[t]=d[t],delete d[t]);(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eH:eX;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(d,s,r,o,!1)}let eq=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"]),eK=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eZ(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}let eJ=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eQ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e0={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!N.test(t))return t;else t=parseFloat(t);let i=eQ(t,e.target.x),n=eQ(t,e.target.y);return`${i}% ${n}%`}},e1=(t,e,i)=>t+(e-t)*i,e2={borderRadius:{...e0,applyTo:[...eJ]},borderTopLeftRadius:e0,borderTopRightRadius:e0,borderBottomLeftRadius:e0,borderBottomRightRadius:e0,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=Q.parse(t);if(n.length>5)return t;let s=Q.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=e1(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function e3(t,{layout:e,layoutId:i}){return E.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e2[t]||"opacity"===t)}function e5(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(tp(n[e])||s&&tp(s[e])||e3(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function e4(t,e,i){let n=e5(t,e,i);for(let i in t)(tp(t[i])||tp(e[i]))&&(n[-1!==T.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class e9 extends eF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tc}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(E.has(e)){let t=tl(e);return t&&t.default||0}if(eY.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=eq.has(e)?e:e$(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e4(t,e,i)}build(t,e,i){eG(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eZ(t,e,void 0,n),e.attrs)t.setAttribute(eq.has(i)?i:e$(i),e.attrs[i])}mount(t){this.isSVGTag=eK(t.tagName),super.mount(t)}}function e6({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e7(t){return void 0===t||1===t}function e8({scale:t,scaleX:e,scaleY:i}){return!e7(t)||!e7(e)||!e7(i)}function it(t){return e8(t)||ie(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ie(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}
21function ii(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function is(t,e=0,i=1,n,s){t.min=ii(t.min,e,i,n,s),t.max=ii(t.max,e,i,n,s)}function ir(t,{x:e,y:i}){is(t.x,e.translate,e.scale,e.originPoint),is(t.y,i.translate,i.scale,i.originPoint)}function io(t,e){t.min+=e,t.max+=e}function ia(t,e,i,n,s=.5){let r=e1(t.min,t.max,s);is(t,e,i,r,n)}function il(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function iu(t,e,i){let n=i??t;ia(t.x,il(e.x,n.x),e.scaleX,e.scale,e.originX),ia(t.y,il(e.y,n.y),e.scaleY,e.scale,e.originY)}function ih(t,e){return e6(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class id extends eF{constructor(){super(...arguments),this.type="html",this.renderInstance=eZ}mount(t){tx(t.style),super.mount(t)}readValueFromInstance(t,e){if(E.has(e))return this.projection?.isProjecting?tL(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tO(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(tb(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ih(t,e)}build(t,e,i){eW(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return e5(t,e,i)}}let ic=["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 ip(t){if("string"!=typeof t||t.includes("-"));else if(ic.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let im=(0,o.createContext)({strict:!1}),ig=(0,o.createContext)({});function iy(t){return Array.isArray(t)?t.join(" "):t}let iv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ix(t,e,i){for(let n in e)tp(e[n])||e3(n,i)||(t[n]=e[n])}let iw=()=>({...iv(),attrs:{}}),ib=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 iP(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ib.has(t)}function iS(t){return tp(t)?t.get():t}let iT=t=>(e,i)=>{let n=(0,o.useContext)(ig),s=(0,o.useContext)(h),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=iS(r[t]);let{initial:o,animate:a}=t,l=ek(t),u=ej(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!eE(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=eO(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():l(r)},iE=iT({scrapeMotionValuesFromProps:e5,createRenderState:iv}),iM=iT({scrapeMotionValuesFromProps:e4,createRenderState:iw}),iA={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"]},iC=!1;function ik(){return!function(){if(iC)return;let t={};for(let e in iA)t[e]={isEnabled:t=>iA[e].some(e=>!!t[e])};eI=t,iC=!0}(),eI}let ij=Symbol.for("motionComponentSymbol"),iV="data-"+e$("framerAppearId"),iR=(0,o.createContext)({});function iD(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iL(t,{forwardMotionProps:e=!1,type:i}={},n,r){n&&function(t){let e=ik();for(let i in t)e[i]={...e[i],...t[i]};eI=e}(n);let l=i?"svg"===i:ip(t),d=l?iM:iE;function c(i,n){var c;let p,f,g,y={...(0,o.useContext)(m),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(a).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:v,isValidProp:x}=y,w=function(t){let{initial:e,animate:i}=function(t,e){if(ek(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eM(e)?e:void 0,animate:eM(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(ig));return(0,o.useMemo)(()=>({initial:e,animate:i}),[iy(e),iy(i)])}(i),b=d(i,v);if(!v&&"u">typeof window){(0,o.useContext)(im).strict;let e=function(t){let{drag:e,layout:i}=ik();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
21(y);p=e.MeasureLayout,w.visualElement=function(t,e,i,n,s,r){let{visualElement:a}=(0,o.useContext)(ig),l=(0,o.useContext)(im),d=(0,o.useContext)(h),c=(0,o.useContext)(m),p=c.reducedMotion,f=c.skipAnimations,g=(0,o.useRef)(null),y=(0,o.useRef)(!1);n=n||l.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:a,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,skipAnimations:f,isSVG:r}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,x=(0,o.useContext)(iR);v&&!v.projection&&s&&("html"===v.type||"svg"===v.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&iD(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(g.current,i,s,x);let w=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{v&&w.current&&v.update(i,d)});let b=i[iV],P=(0,o.useRef)(!!b&&"u">typeof window&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return u(()=>{y.current=!0,v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),P.current&&v.animationState&&v.animationState.animateChanges())}),(0,o.useEffect)(()=>{v&&(!P.current&&v.animationState&&v.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),P.current=!1),v.enteringChildren=void 0)}),v}(t,b,y,r,e.ProjectionNode,l)}return(0,s.jsxs)(ig.Provider,{value:w,children:[p&&w.visualElement?(0,s.jsx)(p,{visualElement:w.visualElement,...y}):null,function(t,e,i,{latestValues:n},s,r=!1,a,l){let u=(a??ip(t)?function(t,e,i,n){let s=(0,o.useMemo)(()=>{let i=iw();return eG(i,e,eK(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ix(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},ix(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=iv();return eW(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),h=function(t,e,i,n){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!tp(t[r])&&((r.startsWith("on")?!iP(r):n?.(r)??!iP(r))||!0===i&&iP(r)||!e&&!iP(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(e,"string"==typeof t,r,l),d=t!==o.Fragment?{...h,...u,ref:i}:{},{children:c}=e,p=(0,o.useMemo)(()=>tp(c)?c.get():c,[c]);return(0,o.createElement)(t,{...d,children:p})}(t,i,(c=w.visualElement,f=(0,o.useRef)(n),(0,o.useInsertionEffect)(()=>{f.current=n}),g=(0,o.useRef)(null),(0,o.useCallback)(t=>{t&&b.onMount?.(t),c&&(t?c.mount(t):c.unmount());let e=f.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(g.current=i)}else g.current?(g.current(),g.current=null):e(t);else e&&(e.current=t)},[c])),b,v,e,l,x)]})}c.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let p=(0,o.forwardRef)(c);return p[ij]=t,p}class iO{constructor(t){this.isMounted=!1,this.node=t}update(){}}function i_(t,e,i){let n=t.getProps();return eO(n,e,void 0!==i?i:n.custom,t)}function iI(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iB(t,e){let i=t?.[e]??t?.default??t;return i!==t?iI(i,t):i}let iF=t=>Array.isArray(t);function i$(t,e){let i=t.getValue("willChange");if(tp(i)&&i.add)return i.add(e);if(!i&&tU.WillChange){let i=new tU.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iN=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iU(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iz(t,e){return i=>i>0?e:t}let iW=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iH=[I,_,H];function iX(t){let e=iH.find(e=>e.test(t));if(tv(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===H&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=iU(a,n,t+1/3),r=iU(a,n,t),o=iU(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let iY=(t,e)=>{let i=iX(t),n=iX(e);if(!i||!n)return iz(t,e);let s={...i};return t=>(s.red=iW(i.red,n.red,t),s.green=iW(i.green,n.green,t),s.blue=iW(i.blue,n.blue,t),s.alpha=e1(i.alpha,n.alpha,t),_.transform(s))},iG=new Set(["none","hidden"]);function iq(t,e){return i=>e1(t,e,i)}function iK(t){return"number"==typeof t?iq:"string"==typeof t?tS(t)?iz:X.test(t)?iY:iQ:Array.isArray(t)?iZ:"object"==typeof t?X.test(t)?iY:iJ:iz}function iZ(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iK(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iJ(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=iK(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iQ=(t,e)=>{let i=Q.createTransformer(e),n=Z(t),s=Z(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return tv(`Complex values '${t}' and '${e}
21' 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.`),iz(t,e);if(iG.has(t)&&!s.values.length||iG.has(e)&&!n.values.length)return iG.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iN(iZ(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(n,s),s.values),i)};function i0(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e1(t,e,i):iK(t)(t,e)}let i1=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tH.update(e,t),stop:()=>tX(e),now:()=>tY.isProcessing?tY.timestamp:ev.now()}};function i2(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let i3=.01,i5=2,i4=.005,i9=.5;function i6(t,e){return t*Math.sqrt(1-e*e)}let i7=["duration","bounce"],i8=["stiffness","damping","mass"];function nt(t,e){return e.some(e=>void 0!==t[e])}function ne(t=.3,e=.3){let i,n,s,r,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:h}=l,d=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:f,mass:g,duration:y,velocity:v,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!nt(t,i8)&&nt(t,i7))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*M(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;tv(t9(10));let o=1-e;o=M(.05,1,o),t=M(.01,10,t/1e3),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/i6(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=i6(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=t9(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,b=f/(2*Math.sqrt(m*g)),P=c-d,S=Math.sqrt(m/g)/1e3,T=5>Math.abs(P);if(u||(u=T?i3:i5),h||(h=T?i4:i9),b<1)s=i6(S,b),r=(w+b*S*P)/s,i=t=>c-Math.exp(-b*S*t)*(r*Math.sin(s*t)+P*Math.cos(s*t)),o=b*S*r+P*s,a=b*S*P-r*s,n=t=>Math.exp(-b*S*t)*(o*Math.sin(s*t)+a*Math.cos(s*t));else if(1===b){i=t=>c-Math.exp(-S*t)*(P+(w+S*P)*t);let t=w+S*P;n=e=>Math.exp(-S*e)*(S*t*e-w)}else{let t=S*Math.sqrt(b*b-1);i=e=>{let i=Math.exp(-b*S*e),n=Math.min(t*e,300);return c-i*((w+b*S*P)*Math.sinh(n)+t*P*Math.cosh(n))/t};let e=(w+b*S*P)/t,s=b*S*e-P*t,r=b*S*P-e*t;n=e=>{let i=Math.exp(-b*S*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let E={calculatedDuration:x&&y||null,velocity:t=>t9(n(t)),next:t=>{if(!x&&b<1){let e=Math.exp(-b*S*t),i=Math.sin(s*t),n=Math.cos(s*t),l=c-e*(r*i+P*n);return p.done=Math.abs(t9(e*(o*i+a*n)))<=u&&Math.abs(c-l)<=h,p.value=p.done?c:l,p}let e=i(t);return x?p.done=t>=y:p.done=Math.abs(t9(n(t)))<=u&&Math.abs(c-e)<=h,p.value=p.done?c:e,p},toString:()=>{let t=Math.min(i2(E),2e4),e=eh(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}function ni(t,e,i){let n=Math.max(e-5,0);return ex(i-t(n),e-n)}function nn({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=ne({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ni(x,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}ne.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(i2(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,ne);return t.ease=e.ease,t.duration=t9(e.duration),t.type="keyframes",t};let ns=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function nr(t,e,i,n){return t===e&&i===n?tN:s=>
210===s||1===s?s:ns(function(t,e,i,n,s){let r,o,a=0;do(r=ns(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(s,0,1,t,i),e,n)}let no=nr(.42,0,1,1),na=nr(0,0,.58,1),nl=nr(.42,0,.58,1),nu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nh=t=>e=>1-t(1-e),nd=nr(.33,1.53,.69,.99),nc=nh(nd),np=nu(nc),nm=t=>t>=1?1:(t*=2)<1?.5*nc(t):.5*(2-Math.pow(2,-10*(t-1))),nf=t=>1-Math.sin(Math.acos(t)),ng=nh(nf),ny=nu(nf),nv={linear:tN,easeIn:no,easeInOut:nl,easeOut:na,circIn:nf,circInOut:ny,circOut:ng,backIn:nc,backInOut:np,backOut:nd,anticipate:nm},nx=t=>{if(el(t)){tx(t.length);let[e,i,n,s]=t;return nr(e,i,n,s)}return"string"==typeof t?(tx(nv[t],`Invalid easing type '${t}'`),nv[t]):t},nw=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nb({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nx):nx(n),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(tx(e.length),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||tU.mix||i0,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=iN(Array.isArray(e)?e[i]||tN:e,r)),n.push(r)}return n}(e,n,s),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nw(t[n],t[n+1],i);return a[n](s)};return i?e=>u(M(t[0],t[r-1],e)):u}((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nw(0,e,n);t.push(e1(i,1,s))}}(r=[0],e.length-1),r),s.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||nl).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let nP={decay:nn,inertia:nn,tween:nb,keyframes:nb,spring:ne};function nS(t){"string"==typeof t.type&&(t.type=nP[t.type])}let nT=t=>t/100;class nE extends ea{constructor(t){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:t}=this.options;t&&t.updatedAt!==ev.now()&&this.tick(ev.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nS(t);let{type:e=nb,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||nb;a!==nb&&"number"!=typeof o[0]&&(this.mixKeyframes=iN(nT,i0(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i2(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/a)):"mirror"===c&&(w=o)),x=M(0,1,i)*a}v?(this.delayState.value=h[0],i=this.delayState):i=w.next(x),r&&!v&&(i.value=r(i.value));let{done:b}=i;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return P&&m!==nn&&(i.value=eo(h,this.options,g,this.speed)),f&&f(i.value),P&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t9(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
21if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return ni(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ev.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=i1,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),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=e??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(ev.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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nM={anticipate:nm,backInOut:np,circInOut:ny};class nA extends em{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nM&&(t.ease=nM[t.ease])}(t),nS(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nE({...r,autoplay:!1}),a=Math.max(10,ev.now()-this.startTime),l=M(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;s&&h&&et(s,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let nC=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(Q.test(t)||"0"===t)&&!t.startsWith("url("));function nk(t){t.duration=0,t.type="keyframes"}let nj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nV=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nR=ee(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nD extends ea{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="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=ev.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||t1;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ev.now();let d=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=nC(s,e),a=nC(r,e);return tv(`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ep(i))&&n)}(t,r,o,a)&&(d=!1,(tU.instantAnimations||!l)&&h?.(eo(t,i,e)),t[0]=t[t.length-1],nk(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
21let{onUpdate:u,transformTemplate:h}=e.owner.getProps();return nR()&&i&&(ef.has(i)||nV.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nj.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!u&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{s=new nA({...c,element:m})}catch{s=new nE(c)}else s=new nE(c);s.finished.then(()=>{this.notifyFinished()}).catch(tN),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tJ=!0,t0(),tQ(),tJ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nL={type:"spring",stiffness:500,damping:25,restSpeed:10},nO={type:"keyframes",duration:.8},n_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nI=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nB=(t,e,i,n={},s,r)=>o=>{let a=iB(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=t9(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!nI.has(e))return!0;return!1}(a)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?nO:E.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nL:n_)(t,h)),h.duration&&(h.duration=t9(h.duration)),h.repeatDelay&&(h.repeatDelay=t9(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nk(h),0===h.delay&&(d=!0)),(tU.instantAnimations||tU.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,nk(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=eo(h.keyframes,a);if(void 0!==t)return void tH.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new nE(h):new nD(h)},nF="u">typeof window;function n$(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?iI(r,l):l;let u=r?.reduceMotion,h=r?.skipAnimations;n&&(r=n);let d=[],c=s&&t.animationState&&t.animationState.getState()[s],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,d),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...iB(r||{},e)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){tH.update(()=>n.set(s));continue}let p=!1;if(nF&&window.MotionHandoffAnimation){let i=t.props[iV];if(i){let t=window.MotionHandoffAnimation(i,e,tH);null!==t&&(o.startTime=t,p=!0)}}i$(t,e);let m=u??t.shouldReduceMotion;n.start(nB(e,n,s,m&&tm.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&d.push(f)}if(o){let e=()=>tH.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=i_(t,e)||{};for(let e in s={...s,...i}){var r;let i=iF(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eP(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function nN(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function nU(t,e,i={}){let n=i_(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(n$(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;
21return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nU(l,e,{...o,delay:i+("function"==typeof n?0:n)+nN(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}let nz=eC.length;function nW(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nH=[...eA].reverse(),nX=eA.length;function nY(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nG(){return{animate:nY(!0),whileInView:nY(),whileHover:nY(),whileTap:nY(),whileDrag:nY(),whileFocus:nY(),exit:nY()}}let nq=0;function nK(t){return[t("x"),t("y")]}function nZ(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let nJ={x:!1,y:!1};function nQ(t){return t.max-t.min}function n0(t,e,i,n=.5){t.origin=n,t.originPoint=e1(e.min,e.max,t.origin),t.scale=nQ(i)/nQ(e),t.translate=e1(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function n1(t,e,i,n){n0(t.x,e.x,i.x,n?n.originX:void 0),n0(t.y,e.y,i.y,n?n.originY:void 0)}function n2(t,e,i,n=0){t.min=(n?e1(i.min,i.max,n):i.min)+e.min,t.max=t.min+nQ(e)}function n3(t,e,i,n=0){let s=n?e1(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nQ(e)}function n5(t,e,i,n){n3(t.x,e.x,i.x,n?.x),n3(t.y,e.y,i.y,n?.y)}function n4(t){return d(t)&&"ownerSVGElement"in t}function n9(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let n6=new WeakMap,n7=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:n4(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n8=n7("inline","width","offsetWidth"),st=n7("block","height","offsetHeight");function se({target:t,borderBoxSize:e}){n6.get(t)?.forEach(i=>{i(t,{get width(){return n8(t,e)},get height(){return st(t,e)}})})}function si(t){t.forEach(se)}let sn=new Set;function ss(t,e){let s;return"function"==typeof t?(sn.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};sn.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{sn.delete(t),sn.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(si)),(s=n9(t)).forEach(t=>{let n=n6.get(t);n||(n=new Set,n6.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=n6.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let sr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),so=new Set(["INPUT","SELECT","TEXTAREA"]),sa=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function sl(t){return{point:{x:t.pageX,y:t.pageY}}}function su(t,e,i,n){return nZ(t,e,t=>sa(t)&&i(t,sl(t)),n)}let sh=({current:t})=>t?t.ownerDocument.defaultView:null,sd=(t,e)=>Math.abs(t-e),sc=new Set(["auto","scroll"]);class sp{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=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=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sm(this.lastRawMoveEventInfo,this.transformPagePoint));let i=sg(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(sd(t.x,e.x)**2+sd(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=tY;this.history.push({...r,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=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sm(e,this.transformPagePoint),tH.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sg("pointercancel"===t.type?this.lastMoveEventInfo:sm(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!sa(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const a=sm(sl(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tY;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,sg(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=iN(su(this.contextWindow,"pointermove",this.handlePointerMove,d),su(this.contextWindow,"pointerup",this.handlePointerUp,d),su(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(sc.has(t.overflowX)||sc.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.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(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tH.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tX(this.updatePoint)}}function sm(t,e){return e?{point:e(t.point)}:t}function sf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sg({point:t},e){return{point:t,delta:sf(t,sy(e)),offset:sf(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sy(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>
21t9(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*t9(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function sy(t){return t[t.length-1]}function sv(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sx(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function sw(t,e,i){return{min:sb(t,e),max:sb(t,i)}}function sb(t,e){return"number"==typeof t?t:t[e]||0}let sP=new WeakMap;class sS{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tc(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(sl(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nJ[t])return null;else return nJ[t]=!0,()=>{nJ[t]=!1};return nJ.x||nJ.y?null:(nJ.x=nJ.y=!0,()=>{nJ.x=nJ.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nK(t=>{let e=this.getAxisMotionValue(t).get()||0;if($.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nQ(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tH.update(()=>s(t,e),!1,!0),i$(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&tH.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new sp(t,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:sh(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tH.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sE(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?e1(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?e1(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iD(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sv(t.x,i,s),y:sv(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sw(t,"left","right"),y:sw(t,"top","bottom")}}(e),n!==this.constraints&&!iD(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nK(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iD(e))return!1;let n=e.current;tx();let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());
21let r=function(t,e,i){let n=ih(t,i),{scroll:s}=e;return s&&(io(n.x,s.offset.x),io(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:sx(t.x,r.x),y:sx(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e6(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nK(o=>{if(!sE(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i$(this.visualElement,t),i.start(nB(t,i,0,e,this.visualElement,!1))}stopAnimation(){nK(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nK(e=>{let{drag:i}=this.getProps();if(!sE(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-e1(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iD(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nK(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=nQ(i),(a=nQ(s))>o?r=nw(s.min,s.max-o,i.min):o>a&&(r=nw(i.min,i.max-a,s.min)),M(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nK(e=>{if(!sE(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(e1(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sP.set(this.visualElement,this);let e=this.visualElement.current,i=su(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(so.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps();iD(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,r=ss(i,sT(s=()=>this.scalePositionWithinConstraints())),o=ss(n,sT(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tH.read(n);let o=nZ(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nK(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function sT(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sE(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sM=t=>(e,i)=>{t&&tH.update(()=>t(e,i),!1,!0)},sA={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sC=o;let sk=!1;class sj extends sC.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sk&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sA.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sk=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tH.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),eg.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sk=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sV(t){let[e,i]=w(),n=(0,sC.useContext)(a);return(0,s.jsx)(sj,{...t,layoutGroup:n,switchLayoutGroup:(0,sC.useContext)(iR),isPresent:e,safeToRemove:i})}
21let sR=eJ.length,sD=t=>"string"==typeof t?parseFloat(t):t,sL=t=>"number"==typeof t||N.test(t);function sO(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let s_=sB(0,.5,ng),sI=sB(.5,.95,tN);function sB(t,e,i){return n=>n<t?0:n>e?1:i(nw(t,e,n))}function sF(t,e){t.min=e.min,t.max=e.max}function s$(t,e){sF(t.x,e.x),sF(t.y,e.y)}function sN(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sU(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sz(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if($.test(e)&&(e=parseFloat(e),e=e1(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e1(r.min,r.max,n);t===r&&(a-=e),t.min=sU(t.min,e,i,a,s),t.max=sU(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let sW=["x","scaleX","originX"],sH=["y","scaleY","originY"];function sX(t,e,i,n){sz(t.x,e,sW,i?i.x:void 0,n?n.x:void 0),sz(t.y,e,sH,i?i.y:void 0,n?n.y:void 0)}function sY(t){return 0===t.translate&&1===t.scale}function sG(t){return sY(t.x)&&sY(t.y)}function sq(t,e){return t.min===e.min&&t.max===e.max}function sK(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sZ(t,e){return sK(t.x,e.x)&&sK(t.y,e.y)}function sJ(t){return nQ(t.x)/nQ(t.y)}function sQ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class s0{constructor(){this.members=[]}add(t){t6(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(t7(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(t7(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let s1=(t,e)=>t.depth-e.depth;class s2{constructor(){this.children=[],this.isDirty=!1}add(t){t6(this.children,t),this.isDirty=!0}remove(t){t7(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s1),this.isDirty=!1,this.children.forEach(t)}}let s3=["","X","Y","Z"],s5=0;function s4(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function s9({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=s5++,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(s8),this.nodes.forEach(rl),this.nodes.forEach(ru),this.nodes.forEach(rt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new s2)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t8),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=n4(e)&&!(n4(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tH.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ev.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tX(r),s())},tH.setup(r,!0),i=()=>tX(r),sA.hasAnimatedSinceResize&&(sA.hasAnimatedSinceResize=!1,this.nodes.forEac
21h(ra))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rf,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sZ(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iB(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||ra(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tX(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(rh),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iV];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tH,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(rn),this.nodes.forEach(ri);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rs);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rr),this.nodes.forEach(ro),this.nodes.forEach(s6),this.nodes.forEach(s7)):this.nodes.forEach(rs),this.clearAllSnapshots();let t=ev.now();tY.delta=M(0,1e3/60,t-tY.timestamp),tY.timestamp=t,tY.isProcessing=!0,tG.update.process(tY),tG.preRender.process(tY),tG.render.process(tY),tY.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(re),this.sharedNodes.forEach(rd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tH.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tH.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nQ(this.snapshot.measuredBox.x)||nQ(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=tc()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sG(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||it(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rv((e=n).x),rv(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tc();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rw))){let{scroll:t}=this.root;t&&(io(e.x,t.offset.x),io(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tc();if(s$(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&s$(e,t),io(e.x,s.offset.x),io(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||tc();s$(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(io(n.x,-i.scroll.offset.x),io(n.y,-i.scroll.offset.y)),it(i.latestValues)&&iu(n,i.latestValues,i.layout?.layoutBox)}return it(this.latestValues)&&iu(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=tc();s$(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];it(n.latestValues)&&(n.instance&&(e8(n.latestValues)&&n.updateSnapshot(),s$(i=tc(),n.measurePageBox())),sX(e,n.latestValues,n.snapshot?.layoutBox,i))}return it(this.latestValues)&&sX(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tY.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tc(),this.targetWithTransforms=tc()),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,n2(o.x,a.x,l.x,u?.x),n2(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):s$(this.target,this.layout.layoutBox),ir(this.target,this.targetDelta)):s$(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||e8(this.parent.latestValues)||ie(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(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tc(),this.relativeTargetOrigin=tc(),n5(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),s$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
21if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tY.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=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||s))return;s$(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(io(t.x,-s.scroll.offset.x),io(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ir(t,r)),n&&it(s.latestValues)&&iu(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tc());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sN(this.prevProjectionDelta.x,this.projectionDelta.x),sN(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n1(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&sQ(this.projectionDelta.x,this.prevProjectionDelta.x)&&sQ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=th(),this.projectionDelta=th(),this.projectionDeltaWithTransform=th()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=th();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=tc(),u=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(rm));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=e1(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=e1(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(rc(a.x,t.x,i),rc(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,g,y,v;n5(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,rp(f.x,g.x,y.x,v),rp(f.y,g.y,y.y,v),n&&(h=this.relativeTarget,m=n,sq(h.x,m.x)&&sq(h.y,m.y))&&(this.isProjectionDirty=!1),n||(n=tc()),s$(n,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,i,n,s,r){s?(t.opacity=e1(0,i.opacity??1,s_(n)),t.opacityExit=e1(e.opacity??1,0,sI(n))):r&&(t.opacity=e1(e.opacity??1,i.opacity??1,n));for(let s=0;s<sR;s++){let r=eJ[s],o=sO(e,r),a=sO(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||sL(o)===sL(a)?(t[r]=Math.max(e1(sD(o),sD(a),n),0),($.test(a)||$.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=e1(e.rotate||0,i.rotate||0,n))}(o,r,this.latestValues,i,c,d)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tX(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tH.update(()=>{var e,i,n;let s;sA.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=eP(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=tp(e)?e:eP(e)).start(nB("",s,i,n)),s.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rx(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||tc();let e=nQ(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nQ(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}s$(e,i),iu(e,s),n1(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new s0),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
21return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&s4("z",t,n,this.animationValues);for(let e=0;e<s3.length;e++)s4(`rotate${s3[e]}`,t,n,this.animationValues),s4(`skew${s3[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iS(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iS(e?.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),r&&(n+=`rotateX(${r}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,e2){if(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=e2[e],l="none"===r?s[e]:i(s[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?iS(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ri),this.root.sharedNodes.clear()}}}function s6(t){t.updateLayout()}function s7(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)nK(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nQ(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sF(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rx(s,e.layoutBox,i)&&nK(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=nQ(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=th();n1(o,i,e.layoutBox);let a=th();r?n1(a,t.applyTransform(n,!0),e.measuredBox):n1(a,i,e.layoutBox);let l=!sG(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=tc();n5(a,e.layoutBox,s.layoutBox,o);let l=tc();n5(l,i,r.layoutBox,o),sZ(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function s8(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
21isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rt(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function re(t){t.clearSnapshot()}function ri(t){t.clearMeasurements()}function rn(t){t.isLayoutDirty=!0,t.updateLayout()}function rs(t){t.isLayoutDirty=!1}function rr(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ro(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ra(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rl(t){t.resolveTargetDelta()}function ru(t){t.calcProjection()}function rh(t){t.resetSkewAndRotation()}function rd(t){t.removeLeadSnapshot()}function rc(t,e,i){t.translate=e1(e.translate,0,i),t.scale=e1(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rp(t,e,i,n){t.min=e1(e.min,i.min,n),t.max=e1(e.max,i.max,n)}function rm(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rf={duration:.45,ease:[.4,0,.1,1]},rg=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ry=rg("applewebkit/")&&!rg("chrome/")?Math.round:tN;function rv(t){t.min=ry(t.min),t.max=ry(t.max)}function rx(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sJ(e)-sJ(i)))}function rw(t){return t!==t.root&&t.scroll?.wasRoot}let rb=s9({attachResizeListener:(t,e)=>nZ(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rP={current:void 0},rS=s9({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rP.current){let t=new rb({});t.mount(window),t.setOptions({layoutScroll:!0}),rP.current=t}return rP.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rT(t,e){let i=n9(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rE(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tH.postRender(()=>s(e,sl(e)))}let rM=(t,e)=>!!e&&(t===e||rM(t,e.parentElement)),rA=new WeakSet;function rC(t){return e=>{"Enter"===e.key&&t(e)}}function rk(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rj(t){return sa(t)&&!(nJ.x||nJ.y)}let rV=new WeakSet;function rR(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tH.postRender(()=>s(e,sl(e)))}let rD=new WeakMap,rL=new WeakMap,rO=t=>{let e=rD.get(t.target);e&&e(t)},r_=t=>{t.forEach(rO)},rI={some:0,all:1},rB=function(t,e){if("u"<typeof Proxy)return iL;let i=new Map,n=(i,n)=>iL(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,iL(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iO{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nU(t,e,i)));else if("string"==typeof e)n=nU(t,e,i);else{let s="function"==typeof e?i_(t,e,i.custom):e;n=Promise.all(n$(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nG(),n=!0,s=!1,r=e=>(i,n)=>{let s=i_(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nz;t++){let n=eC[t],s=e.props[n];(eM(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<nX;e++){var p,m;let f=nH[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=eM(y),x=f===o?g.isActive:null;!1===x&&(c=e);let w=y===l[f]&&y!==a[f]&&v;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||eE(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let b=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nW(m,p)),P=b||f===o&&g.isActive&&!w&&v||e>c&&v,S=!1,T=Array.isArray(y)?y:[y],E=T.reduce(r(f),{});!1===x&&(E={});let{prevResolvedValues:M={}}=g,A={...M,...E},C=e=>{P=!0,h.has(e)&&(S=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
21i&&(i.liveStyle=!1)};for(let t in A){let e=E[t],i=M[t];if(!d.hasOwnProperty(t))(iF(e)&&iF(i)?!nW(e,i)||b:e!==i)?null!=e?C(t):h.add(t):void 0!==e&&h.has(t)?C(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(d={...d,...E}),(n||s)&&t.blockInitialAnimation&&(P=!1);let k=w&&b,j=!k||S;P&&j&&u.push(...T.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=i_(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nN(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=i_(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nG(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eE(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iO{constructor(){super(...arguments),this.id=nq++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=i_(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}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",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
21e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iO{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rI[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rL.has(i)||rL.set(i,{});let n=rL.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(r_,{root:t,...e})),n[s]}(a),rD.set(t,l),e.observe(t),()=>{rD.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iO{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rT(t,i),o=t=>{let n=t.currentTarget;if(!rj(t)||rV.has(t))return;rA.add(n),i.stopPropagation&&rV.add(t);let r=e(n,t),o={...s,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),rA.has(n)&&rA.delete(n),rj(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||rM(n,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),c(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rC(()=>{if(rA.has(i))return;rk(i,"down");let t=rC(()=>{rk(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rk(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),sr.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rR(this.node,e,"Start"),(t,{success:e})=>rR(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iO{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iN(nZ(this.node.current,"focus",()=>this.onFocus()),nZ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iO{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rT(t,i);return n.forEach(t=>{let i,n=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nJ.x||nJ.y)return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(rE(this.node,e,"Start"),t=>rE(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iO{constructor(){super(...arguments),this.removePointerDownListener=tN}onPointerDown(t){this.session=new sp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sh(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sM(t),onStart:sM(e),onMove:sM(i),onEnd:(t,e)=>{delete this.session,n&&tH.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=su(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iO{constructor(t){super(t),this.removeGroupControls=tN,this.removeListeners=tN,this.controls=new sS(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tN}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rS,MeasureLayout:sV},layout:{ProjectionNode:rS,MeasureLayout:sV}},(t,e)=>e.isSVG??ip(t)?new e9(e):new id(e,{allowProjection:t!==o.Fragment}));var rF=t.i(10987);let r$=(0,rF.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),rN=(0,rF.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
21],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var rU=t.i(63978),rz=t.i(81847),rW=t.i(40088),rH=t.i(75157);function rX({navItems:t}){let[e,i]=o.default.useState(null);return(0,s.jsx)("ul",{className:"relative flex items-center space-x-0",children:t.map(t=>(0,s.jsx)("li",{className:"relative",children:(0,s.jsxs)(rz.default,{href:t.link,className:"text-base py-1.5 px-4 flex cursor-pointer group items-center justify-center gap-1 relative",onMouseEnter:()=>i(t.id),onMouseLeave:()=>i(null),children:[(0,s.jsx)("span",{children:t.label}),e===t.id&&(0,s.jsx)(rB.div,{layoutId:"hover-bg",className:"absolute inset-0 size-full bg-primary/10",style:{borderRadius:99}})]})},t.label))})}let rY=[{id:1,label:"æç« ",link:"/blog"},{id:2,label:"课ç¨",link:"/courses"},{id:3,label:"模æ¿ð¥",link:"/blog/zh/build-nextjs-template"}],rG=[{label:"GitHub",link:"https://github.com/guangzhengli"},{label:"X",link:"https://x.com/iguangzhengli"},{label:"å°çº¢ä¹¦",link:"https://www.xiaohongshu.com/user/profile/6076c9a2000000000101e862"}];t.s(["Header",0,function(){let t=(0,rW.usePathname)(),[e,i]=o.default.useState(!1),n=/^\/blog\/.+/.test(t),r=/^\/courses\/.+\/.+/.test(t)||/^\/notes\/.+/.test(t),a=r?"max-w-4xl xl:max-w-6xl":n?"max-w-4xl":"max-w-3xl";return(0,s.jsxs)("header",{className:"pt-4",children:[(0,s.jsxs)(rB.div,{initial:{maxWidth:"48rem"},animate:{maxWidth:r?"72rem":n?"56rem":"48rem"},transition:{duration:.5,ease:"easeInOut"},className:(0,rH.cn)("container mx-auto flex h-16 items-center justify-between md:px-4",a),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>i(!e),"aria-label":e?"Close Menu":"Open Menu",className:"relative z-20 -m-2.5 ml-4 block cursor-pointer p-2.5 md:hidden",children:[(0,s.jsx)(r$,{className:(0,rH.cn)("size-6 duration-200",e&&"rotate-180 scale-0 opacity-0")}),(0,s.jsx)(rN,{className:(0,rH.cn)("absolute inset-0 m-auto size-6 duration-200",e?"rotate-0 scale-100 opacity-100":"-rotate-180 scale-0 opacity-0")})]}),(0,s.jsx)(rz.default,{href:"/",title:"Home",className:"flex items-center gap-4 md:order-first",children:(0,s.jsx)(rU.default,{src:"/favicon.png",alt:"guangzhengli",width:40,height:40,className:"rounded-full",unoptimized:!0})}),(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(rX,{navItems:rY})}),(0,s.jsx)("div",{className:"mr-4 flex items-center gap-2 text-sm text-foreground md:mr-0",children:rG.map((t,e)=>(0,s.jsxs)(o.default.Fragment,{children:[e>0&&(0,s.jsx)("span",{"aria-hidden":!0,className:"select-none opacity-50",children:"·"}),(0,s.jsx)(rz.default,{href:t.link,title:t.label,className:"underline-offset-4 transition-colors hover:text-foreground hover:underline",children:t.label})]},t.label))})]}),(0,s.jsx)(S,{children:e&&(0,s.jsx)(rB.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:(0,rH.cn)("container mx-auto overflow-hidden md:hidden",a),children:(0,s.jsx)("div",{className:"mx-4 rounded-xl border bg-background p-4 shadow-lg",children:rY.map(t=>(0,s.jsx)(rz.default,{href:t.link,className:"block py-3 text-lg font-medium transition-colors hover:text-primary",onClick:()=>i(!1),children:t.label},t.id))})})})]})}],21829)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.