"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[572],{55791:function(t,e,n){n.d(e,{F:function(){return l},f:function(){return u}});var r=n(22971);let i=["light","dark"],o="(prefers-color-scheme: dark)",s=(0,r.createContext)(void 0),a={setTheme:t=>{},themes:[]},l=()=>{var t;return null!==(t=(0,r.useContext)(s))&&void 0!==t?t:a},u=t=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,t.children):r.createElement(c,t),h=["light","dark"],c=t=>{let{forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:a=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:c=h,defaultTheme:g=a?"system":"light",attribute:v="data-theme",value:y,children:x,nonce:b}=t,[P,w]=(0,r.useState)(()=>f(u,g)),[S,E]=(0,r.useState)(()=>f(u)),T=y?Object.values(y):c,A=(0,r.useCallback)(t=>{let e=t;if(!e)return;"system"===t&&a&&(e=m());let r=y?y[e]:e,o=n?p():null,s=document.documentElement;if("class"===v?(s.classList.remove(...T),r&&s.classList.add(r)):r?s.setAttribute(v,r):s.removeAttribute(v),l){let t=i.includes(g)?g:null,n=i.includes(e)?e:t;s.style.colorScheme=n}null==o||o()},[]),C=(0,r.useCallback)(t=>{w(t);try{localStorage.setItem(u,t)}catch(t){}},[e]),R=(0,r.useCallback)(t=>{E(m(t)),"system"===P&&a&&!e&&A("system")},[P,e]);(0,r.useEffect)(()=>{let t=window.matchMedia(o);return t.addListener(R),R(t),()=>t.removeListener(R)},[R]),(0,r.useEffect)(()=>{let t=t=>{t.key===u&&C(t.newValue||g)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[C]),(0,r.useEffect)(()=>{A(null!=e?e:P)},[e,P]);let M=(0,r.useMemo)(()=>({theme:P,setTheme:C,forcedTheme:e,resolvedTheme:"system"===P?S:P,themes:a?[...c,"system"]:c,systemTheme:a?S:void 0}),[P,C,e,S,a,c]);return r.createElement(s.Provider,{value:M},r.createElement(d,{forcedTheme:e,disableTransitionOnChange:n,enableSystem:a,enableColorScheme:l,storageKey:u,themes:c,defaultTheme:g,attribute:v,value:y,children:x,attrs:T,nonce:b}),x)},d=(0,r.memo)(t=>{let{forcedTheme:e,storageKey:n,attribute:s,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:h,attrs:c,nonce:d}=t,f="system"===u,p="class"===s?"var d=document.documentElement,c=d.classList;c.remove(".concat(c.map(t=>"'".concat(t,"'")).join(","),");"):"var d=document.documentElement,n='".concat(s,"',s='setAttribute';"),m=l?i.includes(u)&&u?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=h?h[t]:t,o=e?t+"|| ''":"'".concat(r,"'"),a="";return l&&n&&!e&&i.includes(t)&&(a+="d.style.colorScheme = '".concat(t,"';")),"class"===s?a+=e||r?"c.add(".concat(o,")"):"null":r&&(a+="d[s](n,".concat(o,")")),a},v=e?"!function(){".concat(p).concat(g(e),"}()"):a?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(o,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(g("dark"),"}else{").concat(g("light"),"}}else if(e){").concat(h?"var x=".concat(JSON.stringify(h),";"):"").concat(g(h?"x[e]":"e",!0),"}").concat(f?"":"else{"+g(u,!1,!1)+"}").concat(m,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(h?"var x=".concat(JSON.stringify(h),";"):"").concat(g(h?"x[e]":"e",!0),"}else{").concat(g(u,!1,!1),";}").concat(m,"}catch(t){}}();");return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),f=(t,e)=>{let n;try{n=localStorage.getItem(t)||void 0}catch(t){}return n||e},p=()=>{let t=document.createElement("style");return t.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},m=t=>(t||(t=window.matchMedia(o)),t.matches?"dark":"light")},53922:function(t,e,n){n.d(e,{default:function(){return i.a}});var r=n(29914),i=n.n(r)},85889:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}}),n(3781);let r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},42587:function(t,e,n){function r(t,e,n,r){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(3781),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},29914:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return b}});let r=n(3280),i=n(19506),o=r._(n(22971)),s=n(80486),a=n(20071),l=n(59623),u=n(80688),h=n(85889),c=n(84512),d=n(8717),f=n(8572),p=n(42587),m=n(88200),g=n(85608),v=new Set;function y(t,e,n,r,i,o){if(o||(0,a.isLocalURL)(e)){if(!r.bypassPrefetchedCheck){let i=e+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in t?t.locale:void 0);if(v.has(i))return;v.add(i)}Promise.resolve(o?t.prefetch(e,i):t.prefetch(e,n,r)).catch(t=>{})}}function x(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let b=o.default.forwardRef(function(t,e){let n,r;let{href:l,as:v,children:b,prefetch:P=null,passHref:w,replace:S,shallow:E,scroll:T,locale:A,onClick:C,onMouseEnter:R,onTouchStart:M,legacyBehavior:V=!1,...k}=t;n=b,V&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let D=o.default.useContext(c.RouterContext),j=o.default.useContext(d.AppRouterContext),L=null!=D?D:j,O=!D,F=!1!==P,I=null===P?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:B,as:_}=o.default.useMemo(()=>{if(!D){let t=x(l);return{href:t,as:v?x(v):t}}let[t,e]=(0,s.resolveHref)(D,l,!0);return{href:t,as:v?(0,s.resolveHref)(D,v):e||t}},[D,l,v]),N=o.default.useRef(B),U=o.default.useRef(_);V&&(r=o.default.Children.only(n));let W=V?r&&"object"==typeof r&&r.ref:e,[z,Z,H]=(0,f.useIntersection)({rootMargin:"200px"}),Y=o.default.useCallback(t=>{(U.current!==_||N.current!==B)&&(H(),U.current=_,N.current=B),z(t),W&&("function"==typeof W?W(t):"object"==typeof W&&(W.current=t))},[_,W,B,H,z]);o.default.useEffect(()=>{L&&Z&&F&&y(L,B,_,{locale:A},{kind:I},O)},[_,B,Z,A,F,null==D?void 0:D.locale,L,O,I]);let q={ref:Y,onClick(t){V||"function"!=typeof C||C(t),V&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(t),L&&!t.defaultPrevented&&function(t,e,n,r,i,s,l,u,h){let{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&(function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,a.isLocalURL)(n)))return;t.preventDefault();let d=()=>{let t=null==l||l;"beforePopState"in e?e[i?"replace":"push"](n,r,{shallow:s,locale:u,scroll:t}):e[i?"replace":"push"](r||n,{scroll:t})};h?o.default.startTransition(d):d()}(t,L,B,_,S,E,T,A,O)},onMouseEnter(t){V||"function"!=typeof R||R(t),V&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),L&&(F||!O)&&y(L,B,_,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:I},O)},onTouchStart(t){V||"function"!=typeof M||M(t),V&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),L&&(F||!O)&&y(L,B,_,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:I},O)}};if((0,u.isAbsoluteUrl)(_))q.href=_;else if(!V||w||"a"===r.type&&!("href"in r.props)){let t=void 0!==A?A:null==D?void 0:D.locale,e=(null==D?void 0:D.isLocaleDomain)&&(0,p.getDomainLocale)(_,t,null==D?void 0:D.locales,null==D?void 0:D.domainLocales);q.href=e||(0,m.addBasePath)((0,h.addLocale)(_,t,null==D?void 0:D.defaultLocale))}return V?o.default.cloneElement(r,q):(0,i.jsx)("a",{...k,...q,children:n})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},23456:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=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)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},80486:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return c}});let r=n(53769),i=n(59623),o=n(57154),s=n(80688),a=n(3781),l=n(20071),u=n(57453),h=n(8985);function c(t,e,n){let c;let d="string"==typeof e?e:(0,i.formatWithValidation)(e),f=d.match(/^[a-zA-Z]{1,}:\/\//),p=f?d.slice(f[0].length):d;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+t.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let e=(0,s.normalizeRepeatedSlashes)(p);d=(f?f[0]:"")+e}if(!(0,l.isLocalURL)(d))return n?[d]:d;try{c=new URL(d.startsWith("#")?t.asPath:t.pathname,"http://n")}catch(t){c=new URL("/","http://n")}try{let t=new URL(d,c);t.pathname=(0,a.normalizePathTrailingSlash)(t.pathname);let e="";if((0,u.isDynamicRoute)(t.pathname)&&t.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(t.searchParams),{result:s,params:a}=(0,h.interpolateAs)(t.pathname,t.pathname,n);s&&(e=(0,i.formatWithValidation)({pathname:s,hash:t.hash,query:(0,o.omit)(n,a)}))}let s=t.origin===c.origin?t.href.slice(t.origin.length):t.href;return n?[s,e||s]:s}catch(t){return n?[d]:d}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},8572:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(22971),i=n(23456),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l(t){let{rootRef:e,rootMargin:n,disabled:l}=t,u=l||!o,[h,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),f=(0,r.useCallback)(t=>{d.current=t},[]);return(0,r.useEffect)(()=>{if(o){if(u||h)return;let t=d.current;if(t&&t.tagName)return function(t,e,n){let{id:r,observer:i,elements:o}=function(t){let e;let n={root:t.root||null,margin:t.rootMargin||""},r=a.find(t=>t.root===n.root&&t.margin===n.margin);if(r&&(e=s.get(r)))return e;let i=new Map;return e={id:n,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=i.get(t.target),n=t.isIntersecting||t.intersectionRatio>0;e&&n&&e(n)})},t),elements:i},a.push(n),s.set(n,e),e}(n);return o.set(t,e),i.observe(t),function(){if(o.delete(t),i.unobserve(t),0===o.size){i.disconnect(),s.delete(r);let t=a.findIndex(t=>t.root===r.root&&t.margin===r.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&c(t),{root:null==e?void 0:e.current,rootMargin:n})}else if(!h){let t=(0,i.requestIdleCallback)(()=>c(!0));return()=>(0,i.cancelIdleCallback)(t)}},[u,n,e,h,d.current]),[f,h,(0,r.useCallback)(()=>{c(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},90245:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(t){return n.test(t)?t.replace(r,"\\$&"):t}},84512:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(3280)._(n(22971)).default.createContext(null)},59623:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{formatUrl:function(){return o},urlObjectKeys:function(){return s},formatWithValidation:function(){return a}});let r=n(87791)._(n(53769)),i=/https?|ftp|gopher|file/;function o(t){let{auth:e,hostname:n}=t,o=t.protocol||"",s=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:n&&(u=e+(~n.indexOf(":")?"["+n+"]":n),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let h=t.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),t.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),""+o+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(h=h.replace("#","%23"))+a}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(t){return o(t)}},57453:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(93184),i=n(38472)},8985:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(25325),i=n(77981);function o(t,e,n){let o="",s=(0,i.getRouteRegex)(t),a=s.groups,l=(e!==t?(0,r.getRouteMatcher)(s)(e):"")||n;o=t;let u=Object.keys(a);return u.every(t=>{let e=l[t]||"",{repeat:n,optional:r}=a[t],i="["+(n?"...":"")+t+"]";return r&&(i=(e?"":"/")+"["+i+"]"),n&&!Array.isArray(e)&&(e=[e]),(r||t in l)&&(o=o.replace(i,n?e.map(t=>encodeURIComponent(t)).join("/"):encodeURIComponent(e))||"/")})||(o=""),{params:u,result:o}}},38472:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(85753),i=/\/\[[^/]+?\](?=\/|$)/;function o(t){return(0,r.isInterceptionRouteAppPath)(t)&&(t=(0,r.extractInterceptionRouteInformation)(t).interceptedRoute),i.test(t)}},20071:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(80688),i=n(22224);function o(t){if(!(0,r.isAbsoluteUrl)(t))return!0;try{let e=(0,r.getLocationOrigin)(),n=new URL(t,e);return n.origin===e&&(0,i.hasBasePath)(n.pathname)}catch(t){return!1}}},57154:function(t,e){function n(t,e){let n={};return Object.keys(t).forEach(r=>{e.includes(r)||(n[r]=t[r])}),n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return n}})},53769:function(t,e){function n(t){let e={};return t.forEach((t,n)=>{void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]}),e}function r(t){return"string"!=typeof t&&("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function i(t){let e=new URLSearchParams;return Object.entries(t).forEach(t=>{let[n,i]=t;Array.isArray(i)?i.forEach(t=>e.append(n,r(t))):e.set(n,r(i))}),e}function o(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach(e=>{Array.from(e.keys()).forEach(e=>t.delete(e)),e.forEach((e,n)=>t.append(n,e))}),t}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i},assign:function(){return o}})},25325:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(80688);function i(t){let{re:e,groups:n}=t;return t=>{let i=e.exec(t);if(!i)return!1;let o=t=>{try{return decodeURIComponent(t)}catch(t){throw new r.DecodeError("failed to decode param")}},s={};return Object.keys(n).forEach(t=>{let e=n[t],r=i[e.pos];void 0!==r&&(s[t]=~r.indexOf("/")?r.split("/").map(t=>o(t)):e.repeat?[o(r)]:o(r))}),s}}},77981:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return d}});let r=n(85753),i=n(90245),o=n(24807);function s(t){let e=t.startsWith("[")&&t.endsWith("]");e&&(t=t.slice(1,-1));let n=t.startsWith("...");return n&&(t=t.slice(3)),{key:t,repeat:n,optional:e}}function a(t){let e=(0,o.removeTrailingSlash)(t).slice(1).split("/"),n={},a=1;return{parameterizedRoute:e.map(t=>{let e=r.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e)),o=t.match(/\[((?:\[.*\])|.+)\]/);if(e&&o){let{key:t,optional:r,repeat:l}=s(o[1]);return n[t]={pos:a++,repeat:l,optional:r},"/"+(0,i.escapeStringRegexp)(e)+"([^/]+?)"}if(!o)return"/"+(0,i.escapeStringRegexp)(t);{let{key:t,repeat:e,optional:r}=s(o[1]);return n[t]={pos:a++,repeat:e,optional:r},e?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(t){let{parameterizedRoute:e,groups:n}=a(t);return{re:RegExp("^"+e+"(?:/)?$"),groups:n}}function u(t){let{interceptionMarker:e,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:a}=t,{key:l,optional:u,repeat:h}=s(r),c=l.replace(/\W/g,"");a&&(c=""+a+c);let d=!1;(0===c.length||c.length>30)&&(d=!0),isNaN(parseInt(c.slice(0,1)))||(d=!0),d&&(c=n()),a?o[c]=""+a+l:o[c]=l;let f=e?(0,i.escapeStringRegexp)(e):"";return h?u?"(?:/"+f+"(?<"+c+">.+?))?":"/"+f+"(?<"+c+">.+?)":"/"+f+"(?<"+c+">[^/]+?)"}function h(t,e){let n;let s=(0,o.removeTrailingSlash)(t).slice(1).split("/"),a=(n=0,()=>{let t="",e=++n;for(;e>0;)t+=String.fromCharCode(97+(e-1)%26),e=Math.floor((e-1)/26);return t}),l={};return{namedParameterizedRoute:s.map(t=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(e=>t.startsWith(e)),o=t.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){let[n]=t.split(o[0]);return u({getSafeRouteKey:a,interceptionMarker:n,segment:o[1],routeKeys:l,keyPrefix:e?"nxtI":void 0})}return o?u({getSafeRouteKey:a,segment:o[1],routeKeys:l,keyPrefix:e?"nxtP":void 0}):"/"+(0,i.escapeStringRegexp)(t)}).join(""),routeKeys:l}}function c(t,e){let n=h(t,e);return{...l(t),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(t,e){let{parameterizedRoute:n}=a(t),{catchAll:r=!0}=e;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=h(t,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},93184:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(t){this._insert(t.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(t){void 0===t&&(t="/");let e=[...this.children.keys()].sort();null!==this.slugName&&e.splice(e.indexOf("[]"),1),null!==this.restSlugName&&e.splice(e.indexOf("[...]"),1),null!==this.optionalRestSlugName&&e.splice(e.indexOf("[[...]]"),1);let n=e.map(e=>this.children.get(e)._smoosh(""+t+e+"/")).reduce((t,e)=>[...t,...e],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(t+"["+this.slugName+"]/")),!this.placeholder){let e="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+e+'" and "'+e+"[[..."+this.optionalRestSlugName+']]").');n.unshift(e)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(t,e,r){if(0===t.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=t[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),s=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),s=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(t,n){if(null!==t&&t!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+t+"' !== '"+n+"').");e.forEach(t=>{if(t===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(t.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+t+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),e.push(n)}if(r){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+t[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+t[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+t[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(t.slice(1),e,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(t){let e=new n;return t.forEach(t=>e.insert(t)),e.smoosh()}},80688:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return h},loadGetInitialProps:function(){return c},SP:function(){return d},ST:function(){return f},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return y},stringifyError:function(){return x}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(t){let e,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,e=t(...i)),e}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=t=>i.test(t);function s(){let{protocol:t,hostname:e,port:n}=window.location;return t+"//"+e+(n?":"+n:"")}function a(){let{href:t}=window.location,e=s();return t.substring(e.length)}function l(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function u(t){return t.finished||t.headersSent}function h(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function c(t,e){let n=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await c(e.Component,e.ctx)}:{};let r=await t.getInitialProps(e);if(n&&u(n))return r;if(!r)throw Error('"'+l(t)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,f=d&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class p extends Error{}class m extends Error{}class g extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class v extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(t){return JSON.stringify({message:t.message,stack:t.stack})}},16155:function(t,e,n){n.d(e,{$j:function(){return V},Dx:function(){return k},VY:function(){return R},aU:function(){return M},aV:function(){return C},dk:function(){return D},fC:function(){return E},h_:function(){return A},xz:function(){return T}});var r=n(61513),i=n(22971),o=n(90030),s=n(97743),a=n(73079),l=n(14430),u=n(9263);let[h,c]=(0,o.b)("AlertDialog",[a.p8]),d=(0,a.p8)(),f=(0,i.forwardRef)((t,e)=>{let{__scopeAlertDialog:n,...o}=t,s=d(n);return(0,i.createElement)(a.xz,(0,r.Z)({},s,o,{ref:e}))}),p=(0,i.forwardRef)((t,e)=>{let{__scopeAlertDialog:n,...o}=t,s=d(n);return(0,i.createElement)(a.aV,(0,r.Z)({},s,o,{ref:e}))}),m="AlertDialogContent",[g,v]=h(m),y=(0,i.forwardRef)((t,e)=>{let{__scopeAlertDialog:n,children:o,...h}=t,c=d(n),f=(0,i.useRef)(null),p=(0,s.e)(e,f),v=(0,i.useRef)(null);return(0,i.createElement)(a.jm,{contentName:m,titleName:x,docsSlug:"alert-dialog"},(0,i.createElement)(g,{scope:n,cancelRef:v},(0,i.createElement)(a.VY,(0,r.Z)({role:"alertdialog"},c,h,{ref:p,onOpenAutoFocus:(0,l.M)(h.onOpenAutoFocus,t=>{var e;t.preventDefault(),null===(e=v.current)||void 0===e||e.focus({preventScroll:!0})}),onPointerDownOutside:t=>t.preventDefault(),onInteractOutside:t=>t.preventDefault()}),(0,i.createElement)(u.A4,null,o),!1)))}),x="AlertDialogTitle",b=(0,i.forwardRef)((t,e)=>{let{__scopeAlertDialog:n,...o}=t,s=d(n);return(0,i.createElement)(a.Dx,(0,r.Z)({},s,o,{ref:e}))}),P=(0,i.forwardRef)((t,e)=>{let{__scopeAlertDialog:n,...o}=t,s=d(n);return(0,i.createElement)(a.dk,(0,r.Z)({},s,o,{ref:e}))}),w=(0,i.forwardRef)((t,e)=>{let{__scopeAlertDialog:n,...o}=t,s=d(n);return(0,i.createElement)(a.x8,(0,r.Z)({},s,o,{ref:e}))}),S=(0,i.forwardRef)((t,e)=>{let{__scopeAlertDialog:n,...o}=t,{cancelRef:l}=v("AlertDialogCancel",n),u=d(n),h=(0,s.e)(e,l);return(0,i.createElement)(a.x8,(0,r.Z)({},u,o,{ref:h}))}),E=t=>{let{__scopeAlertDialog:e,...n}=t,o=d(e);return(0,i.createElement)(a.fC,(0,r.Z)({},o,n,{modal:!0}))},T=f,A=t=>{let{__scopeAlertDialog:e,...n}=t,o=d(e);return(0,i.createElement)(a.h_,(0,r.Z)({},o,n))},C=p,R=y,M=w,V=S,k=b,D=P},28776:function(t,e,n){n.d(e,{M:function(){return g}});var r=n(22971),i=n(4842);function o(){let t=(0,r.useRef)(!1);return(0,i.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var s=n(24003),a=n(46495),l=n(58945);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:n}=t,i=(0,r.useId)(),o=(0,r.useRef)(null),s=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:r,left:a}=s.current;if(n||!o.current||!t||!e)return;o.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n          [data-motion-pop-id="'.concat(i,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            top: ").concat(r,"px !important;\n            left: ").concat(a,"px !important;\n          }\n        ")),()=>{document.head.removeChild(l)}},[n]),r.createElement(u,{isPresent:n,childRef:o,sizeRef:s},r.cloneElement(e,{ref:o}))}let c=t=>{let{children:e,initial:n,isPresent:i,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:c}=t,f=(0,l.h)(d),p=(0,r.useId)(),m=(0,r.useMemo)(()=>({id:p,initial:n,isPresent:i,custom:s,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;o&&o()},register:t=>(f.set(t,!1),()=>f.delete(t))}),u?void 0:[i]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[i]),r.useEffect(()=>{i||f.size||!o||o()},[i]),"popLayout"===c&&(e=r.createElement(h,{isPresent:i},e)),r.createElement(a.O.Provider,{value:m},e)};function d(){return new Map}var f=n(90916),p=n(39950);let m=t=>t.key||"",g=t=>{var e;let{children:n,custom:a,initial:l=!0,onExitComplete:u,exitBeforeEnter:h,presenceAffectsLayout:d=!0,mode:g="sync"}=t;(0,p.k)(!h,"Replace exitBeforeEnter with mode='wait'");let v=(0,r.useContext)(f.p).forceRender||function(){let t=o(),[e,n]=(0,r.useState)(0),i=(0,r.useCallback)(()=>{t.current&&n(e+1)},[e]);return[(0,r.useCallback)(()=>s.Wi.postRender(i),[i]),e]}()[0],y=o(),x=function(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}(n),b=x,P=(0,r.useRef)(new Map).current,w=(0,r.useRef)(b),S=(0,r.useRef)(new Map).current,E=(0,r.useRef)(!0);if((0,i.L)(()=>{E.current=!1,function(t,e){t.forEach(t=>{let n=m(t);e.set(n,t)})}(x,S),w.current=b}),e=()=>{E.current=!0,S.clear(),P.clear()},(0,r.useEffect)(()=>()=>e(),[]),E.current)return r.createElement(r.Fragment,null,b.map(t=>r.createElement(c,{key:m(t),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:d,mode:g},t)));b=[...b];let T=w.current.map(m),A=x.map(m),C=T.length;for(let t=0;t<C;t++){let e=T[t];-1!==A.indexOf(e)||P.has(e)||P.set(e,void 0)}return"wait"===g&&P.size&&(b=[]),P.forEach((t,e)=>{if(-1!==A.indexOf(e))return;let n=S.get(e);if(!n)return;let i=T.indexOf(e),o=t;o||(o=r.createElement(c,{key:m(n),isPresent:!1,onExitComplete:()=>{P.delete(e);let t=Array.from(S.keys()).filter(t=>!A.includes(t));if(t.forEach(t=>S.delete(t)),w.current=x.filter(n=>{let r=m(n);return r===e||t.includes(r)}),!P.size){if(!1===y.current)return;v(),u&&u()}},custom:a,presenceAffectsLayout:d,mode:g},n),P.set(e,o)),b.splice(i,0,o)}),b=b.map(t=>{let e=t.key;return P.has(e)?t:r.createElement(c,{key:m(t),isPresent:!0,presenceAffectsLayout:d,mode:g},t)}),r.createElement(r.Fragment,null,P.size?b:b.map(t=>(0,r.cloneElement)(t)))}},90916:function(t,e,n){n.d(e,{p:function(){return r}});let r=(0,n(22971).createContext)({})},46495:function(t,e,n){n.d(e,{O:function(){return r}});let r=(0,n(22971).createContext)(null)},24003:function(t,e,n){n.d(e,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return l},S6:function(){return u}});var r=n(3651);class i{add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}constructor(){this.order=[],this.scheduled=new Set}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:l,steps:u}=function(t,e){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((t,e)=>(t[e]=function(t){let e=new i,n=new i,r=0,o=!1,s=!1,a=new WeakSet,l={schedule:function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:i=>{if(o){s=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length)for(let n=0;n<r;n++){let r=e.order[n];r(i),a.has(r)&&(l.schedule(r),t())}o=!1,s&&(s=!1,l.process(i))}};return l}(()=>n=!0),t),{}),l=t=>a[t].process(s),u=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(l),s.isProcessing=!1,n&&e&&(r=!1,t(u))},h=()=>{n=!0,r=!0,s.isProcessing||t(u)};return{schedule:o.reduce((t,e)=>{let r=a[e];return t[e]=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||h(),r.schedule(t,e,i)},t},{}),cancel:t=>o.forEach(e=>a[e].cancel(t)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},11499:function(t,e,n){let r;n.d(e,{E:function(){return iH}});var i,o,s=n(22971);let a=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),l=(0,s.createContext)({});var u=n(46495),h=n(4842);let c=(0,s.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),f="data-"+d("framerAppearId");function p(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function g(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let v=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...v];function x(t){return g(t.animate)||y.some(e=>m(t[e]))}function b(t){return!!(x(t)||t.variants)}function P(t){return Array.isArray(t)?t.join(" "):t}let w={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"]},S={};for(let t in w)S[t]={isEnabled:e=>w[t].some(t=>!!e[t])};var E=n(39830),T=n(90916);let A=(0,s.createContext)({}),C=Symbol.for("motionComponentSymbol"),R=["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 M(t){if("string"!=typeof t||t.includes("-"));else if(R.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let V={},k=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],D=new Set(k);function j(t,e){let{layout:n,layoutId:r}=e;return D.has(t)||t.startsWith("origin")||(n||void 0!==r)&&(!!V[t]||"opacity"===t)}let L=t=>!!(t&&t.getVelocity),O={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F=k.length,I=t=>e=>"string"==typeof e&&e.startsWith(t),B=I("--"),_=I("var(--"),N=(t,e)=>e&&"number"==typeof t?e.transform(t):t,U=(t,e,n)=>Math.min(Math.max(n,t),e),W={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},z={...W,transform:t=>U(0,1,t)},Z={...W,default:1},H=t=>Math.round(1e5*t)/1e5,Y=/(-)?([\d]*\.?[\d])+/g,q=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,K=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function X(t){return"string"==typeof t}let G=t=>({test:e=>X(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),$=G("deg"),J=G("%"),Q=G("px"),tt=G("vh"),te=G("vw"),tn={...J,parse:t=>J.parse(t)/100,transform:t=>J.transform(100*t)},tr={...W,transform:Math.round},ti={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:Z,scaleX:Z,scaleY:Z,scaleZ:Z,skew:$,skewX:$,skewY:$,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:z,originX:tn,originY:tn,originZ:Q,zIndex:tr,fillOpacity:z,strokeOpacity:z,numOctaves:tr};function to(t,e,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let n=e[t];if(B(t)){o[t]=n;continue}let r=ti[t],c=N(n,r);if(D.has(t)){if(l=!0,s[t]=c,!h)continue;n!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):i[t]=c}if(!e.transform&&(l||r?i.transform=function(t,e,n,r){let{enableHardwareAcceleration:i=!0,allowTransformNone:o=!0}=e,s="";for(let e=0;e<F;e++){let n=k[e];if(void 0!==t[n]){let e=O[n]||n;s+="".concat(e,"(").concat(t[n],") ")}}return i&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,n?"":s):o&&n&&(s="none"),s}(t.transform,n,h,r):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin="".concat(t," ").concat(e," ").concat(n)}}let ts=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ta(t,e,n){for(let r in e)L(e[r])||j(r,n)||(t[r]=e[r])}let tl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tu(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tl.has(t)}let th=t=>!tu(t);try{(i=require("@emotion/is-prop-valid").default)&&(th=t=>t.startsWith("on")?!tu(t):i(t))}catch(t){}function tc(t,e,n){return"string"==typeof t?t:Q.transform(e+n*t)}let td={offset:"stroke-dashoffset",array:"stroke-dasharray"},tf={offset:"strokeDashoffset",array:"strokeDasharray"};function tp(t,e,n,r,i){let{attrX:o,attrY:s,attrScale:a,originX:l,originY:u,pathLength:h,pathSpacing:c=1,pathOffset:d=0,...f}=e;if(to(t,f,n,i),r){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m,dimensions:g}=t;p.transform&&(g&&(m.transform=p.transform),delete p.transform),g&&(void 0!==l||void 0!==u||m.transform)&&(m.transformOrigin=function(t,e,n){let r=tc(e,t.x,t.width),i=tc(n,t.y,t.height);return"".concat(r," ").concat(i)}(g,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==o&&(p.x=o),void 0!==s&&(p.y=s),void 0!==a&&(p.scale=a),void 0!==h&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let o=i?td:tf;t[o.offset]=Q.transform(-r);let s=Q.transform(e),a=Q.transform(n);t[o.array]="".concat(s," ").concat(a)}(p,h,c,d,!1)}let tm=()=>({...ts(),attrs:{}}),tg=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tv(t,e,n,r){let{style:i,vars:o}=e;for(let e in Object.assign(t.style,i,r&&r.getProjectionStyles(n)),o)t.style.setProperty(e,o[e])}let ty=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tx(t,e,n,r){for(let n in tv(t,e,void 0,r),e.attrs)t.setAttribute(ty.has(n)?n:d(n),e.attrs[n])}function tb(t,e){let{style:n}=t,r={};for(let i in n)(L(n[i])||e.style&&L(e.style[i])||j(i,t))&&(r[i]=n[i]);return r}function tP(t,e){let n=tb(t,e);for(let r in t)(L(t[r])||L(e[r]))&&(n[-1!==k.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}function tw(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}var tS=n(58945);let tE=t=>Array.isArray(t),tT=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tA=t=>tE(t)?t[t.length-1]||0:t;function tC(t){let e=L(t)?t.get():t;return tT(e)?e.toValue():e}let tR=t=>(e,n)=>{let r=(0,s.useContext)(l),i=(0,s.useContext)(u.O),o=()=>(function(t,e,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:o,onMount:s}=t,a={latestValues:function(t,e,n,r){let i={},o=r(t,{});for(let t in o)i[t]=tC(o[t]);let{initial:s,animate:a}=t,l=x(t),u=b(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial,c=(h=h||!1===s)?a:s;return c&&"boolean"!=typeof c&&!g(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let n=tw(t,e);if(!n)return;let{transitionEnd:r,transition:o,...s}=n;for(let t in s){let e=s[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(e,n,r,i),renderState:o()};return s&&(a.mount=t=>s(e,t,a)),a})(t,e,r,i);return n?o():(0,tS.h)(o)};var tM=n(24003);let tV={useVisualState:tR({scrapeMotionValuesFromProps:tP,createRenderState:tm,onMount:(t,e,n)=>{let{renderState:r,latestValues:i}=n;tM.Wi.read(()=>{try{r.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}}),tM.Wi.render(()=>{tp(r,i,{enableHardwareAcceleration:!1},tg(e.tagName),t.transformTemplate),tx(e,r)})}})},tk={useVisualState:tR({scrapeMotionValuesFromProps:tb,createRenderState:ts})};function tD(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}let tj=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tL(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tO=t=>e=>tj(e)&&t(e,tL(e));function tF(t,e,n,r){return tD(t,e,tO(n),r)}let tI=(t,e)=>n=>e(t(n)),tB=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(tI)};function t_(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tN=t_("dragHorizontal"),tU=t_("dragVertical");function tW(t){let e=!1;if("y"===t)e=tU();else if("x"===t)e=tN();else{let t=tN(),n=tU();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tz(){let t=tW(!0);return!t||(t(),!1)}class tZ{update(){}constructor(t){this.isMounted=!1,this.node=t}}function tH(t,e){let n="onHover"+(e?"Start":"End");return tF(t.current,"pointer"+(e?"enter":"leave"),(r,i)=>{if("touch"===r.pointerType||tz())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[n]&&tM.Wi.update(()=>o[n](r,i))},{passive:!t.getProps()[n]})}class tY extends tZ{mount(){this.unmount=tB(tH(this.node,!0),tH(this.node,!1))}unmount(){}}class tq extends tZ{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=tB(tD(this.node.current,"focus",()=>this.onFocus()),tD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}let tK=(t,e)=>!!e&&(t===e||tK(t,e.parentElement));var tX=n(3651);function tG(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,tL(n))}class t$ extends tZ{startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&tM.Wi.update(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tz()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&tM.Wi.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=tF(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tD(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tB(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=tX.Z,this.removeEndListeners=tX.Z,this.removeAccessibleListeners=tX.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=tF(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();tM.Wi.update(()=>{i||tK(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),i=tF(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tB(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tD(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tD(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tG("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&tM.Wi.update(()=>n(t,e))})}),tG("down",(t,e)=>{this.startPress(t,e)}))}),e=tD(this.node.current,"blur",()=>{this.isPressing&&tG("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tB(t,e)}}}let tJ=new WeakMap,tQ=new WeakMap,t0=t=>{let e=tJ.get(t.target);e&&e(t)},t1=t=>{t.forEach(t0)},t2={some:0,all:1};class t5 extends tZ{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t2[r]};return function(t,e,n){let r=function(t){let{root:e,...n}=t,r=e||document;tQ.has(r)||tQ.set(r,{});let i=tQ.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(t1,{root:e,...n})),i[o]}(e);return tJ.set(t,n),r.observe(t),()=>{tJ.delete(t),r.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}function t3(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function t9(t,e,n){let r=t.getProps();return tw(r,e,void 0!==n?n:r.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}var t8=n(39950);let t4=t=>1e3*t,t6=t=>t/1e3,t7={current:!1},et=t=>Array.isArray(t)&&"number"==typeof t[0],ee=t=>{let[e,n,r,i]=t;return"cubic-bezier(".concat(e,", ").concat(n,", ").concat(r,", ").concat(i,")")},en={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ee([0,.65,.55,1]),circOut:ee([.55,0,1,.45]),backIn:ee([.31,.01,.66,-.59]),backOut:ee([.33,1.53,.69,.99])},er=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ei(t,e,n,r){if(t===e&&n===r)return tX.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=er(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:er(i(t),e,r)}let eo=ei(.42,0,1,1),es=ei(0,0,.58,1),ea=ei(.42,0,.58,1),el=t=>Array.isArray(t)&&"number"!=typeof t[0],eu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eh=t=>e=>1-t(1-e),ec=t=>1-Math.sin(Math.acos(t)),ed=eh(ec),ef=eu(ec),ep=ei(.33,1.53,.69,.99),em=eh(ep),eg=eu(em),ev={linear:tX.Z,easeIn:eo,easeInOut:ea,easeOut:es,circIn:ec,circInOut:ef,circOut:ed,backIn:em,backInOut:eg,backOut:ep,anticipate:t=>(t*=2)<1?.5*em(t):.5*(2-Math.pow(2,-10*(t-1)))},ey=t=>{if(Array.isArray(t)){(0,t8.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return ei(e,n,r,i)}return"string"==typeof t?((0,t8.k)(void 0!==ev[t],"Invalid easing type '".concat(t,"'")),ev[t]):t},ex=(t,e)=>n=>!!(X(n)&&K.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),eb=(t,e,n)=>r=>{if(!X(r))return r;let[i,o,s,a]=r.match(Y);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},eP=t=>U(0,255,t),ew={...W,transform:t=>Math.round(eP(t))},eS={test:ex("rgb","red"),parse:eb("red","green","blue"),transform:t=>{let{red:e,green:n,blue:r,alpha:i=1}=t;return"rgba("+ew.transform(e)+", "+ew.transform(n)+", "+ew.transform(r)+", "+H(z.transform(i))+")"}},eE={test:ex("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eS.transform},eT={test:ex("hsl","hue"),parse:eb("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:r,alpha:i=1}=t;return"hsla("+Math.round(e)+", "+J.transform(H(n))+", "+J.transform(H(r))+", "+H(z.transform(i))+")"}},eA={test:t=>eS.test(t)||eE.test(t)||eT.test(t),parse:t=>eS.test(t)?eS.parse(t):eT.test(t)?eT.parse(t):eE.parse(t),transform:t=>X(t)?t:t.hasOwnProperty("red")?eS.transform(t):eT.transform(t)},eC=(t,e,n)=>-n*t+n*e+t;function eR(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}let eM=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},eV=[eE,eS,eT],ek=t=>eV.find(e=>e.test(t));function eD(t){let e=ek(t);(0,t8.k)(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."));let n=e.parse(t);return e===eT&&(n=function(t){let{hue:e,saturation:n,lightness:r,alpha:i}=t;e/=360,r/=100;let o=0,s=0,a=0;if(n/=100){let t=r<.5?r*(1+n):r+n-r*n,i=2*r-t;o=eR(i,t,e+1/3),s=eR(i,t,e),a=eR(i,t,e-1/3)}else o=s=a=r;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(n)),n}let ej=(t,e)=>{let n=eD(t),r=eD(e),i={...n};return t=>(i.red=eM(n.red,r.red,t),i.green=eM(n.green,r.green,t),i.blue=eM(n.blue,r.blue,t),i.alpha=eC(n.alpha,r.alpha,t),eS.transform(i))},eL={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tX.Z},eO={regex:q,countKey:"Colors",token:"${c}",parse:eA.parse},eF={regex:Y,countKey:"Numbers",token:"${n}",parse:W.parse};function eI(t,e){let{regex:n,countKey:r,token:i,parse:o}=e,s=t.tokenised.match(n);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(n,i),t.values.push(...s.map(o)))}function eB(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&eI(n,eL),eI(n,eO),eI(n,eF),n}function e_(t){return eB(t).values}function eN(t){let{values:e,numColors:n,numVars:r,tokenised:i}=eB(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=i<r?e.replace(eL.token,t[i]):i<r+n?e.replace(eO.token,eA.transform(t[i])):e.replace(eF.token,H(t[i]));return e}}let eU=t=>"number"==typeof t?0:t,eW={test:function(t){var e,n;return isNaN(t)&&X(t)&&((null===(e=t.match(Y))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(q))||void 0===n?void 0:n.length)||0)>0},parse:e_,createTransformer:eN,getAnimatableNone:function(t){let e=e_(t);return eN(t)(e.map(eU))}},ez=(t,e)=>n=>"".concat(n>0?e:t);function eZ(t,e){return"number"==typeof t?n=>eC(t,e,n):eA.test(t)?ej(t,e):t.startsWith("var(")?ez(t,e):eq(t,e)}let eH=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>eZ(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},eY=(t,e)=>{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=eZ(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},eq=(t,e)=>{let n=eW.createTransformer(e),r=eB(t),i=eB(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tB(eH(r.values,i.values),n):((0,t8.K)(!0,"Complex values '".concat(t,"' and '").concat(e,"' 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.")),ez(t,e))},eK=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},eX=(t,e)=>n=>eC(t,e,n);function eG(t,e){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.length;if((0,t8.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,n){let r=[],i=n||function(t){if("number"==typeof t);else if("string"==typeof t)return eA.test(t)?ej:eq;else if(Array.isArray(t))return eH;else if("object"==typeof t)return eY;return eX}(t[0]),o=t.length-1;for(let n=0;n<o;n++){let o=i(t[n],t[n+1]);e&&(o=tB(Array.isArray(e)?e[n]||tX.Z:e,o)),r.push(o)}return r}(e,r,i),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=eK(t[n],t[n+1],e);return s[n](r)};return n?e=>l(U(t[0],t[o-1],e)):l}function e$(t){let{duration:e=300,keyframes:n,times:r,ease:i="easeInOut"}=t,o=el(i)?i.map(ey):ey(i),s={done:!1,value:n[0]},a=eG((r&&r.length===n.length?r:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=eK(0,e,r);t.push(eC(n,1,i))}}(e,t.length-1),e}(n)).map(t=>t*e),n,{ease:Array.isArray(o)?o:n.map(()=>o||ea).splice(0,n.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}function eJ(t,e,n){var r,i;let o=Math.max(e-5,0);return r=n-t(o),(i=e-o)?1e3/i*r:0}function eQ(t,e){return t*Math.sqrt(1-e*e)}let e0=["duration","bounce"],e1=["stiffness","damping","mass"];function e2(t,e){return e.some(e=>void 0!==t[e])}function e5(t){let e,{keyframes:n,restDelta:r,restSpeed:i,...o}=t,s=n[0],a=n[n.length-1],l={done:!1,value:s},{stiffness:u,damping:h,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e2(t,e1)&&e2(t,e0)){let n=function(t){let e,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:s=1}=t;(0,t8.K)(r<=t4(10),"Spring duration must be 10 seconds or less");let a=1-i;a=U(.05,1,a),r=U(.01,10,t6(r)),a<1?(e=t=>{let e=t*a,n=e*r;return .001-(e-o)/eQ(t,a)*Math.exp(-n)},n=t=>{let n=t*a*r,i=Math.pow(a,2)*Math.pow(t,2)*r,s=eQ(Math.pow(t,2),a);return(n*o+o-i)*Math.exp(-n)*(-e(t)+.001>0?-1:1)/s}):(e=t=>-.001+Math.exp(-t*r)*((t-o)*r+1),n=t=>r*r*(o-t)*Math.exp(-t*r));let l=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(e,n,5/r);if(r=t4(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{let t=Math.pow(l,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:r}}}(t);(e={...e,...n,mass:1}).isResolvedFromDuration=!0}return e}({...o,velocity:-t6(o.velocity||0)}),m=f||0,g=h/(2*Math.sqrt(u*c)),v=a-s,y=t6(Math.sqrt(u/c)),x=5>Math.abs(v);if(i||(i=x?.01:2),r||(r=x?.005:.5),g<1){let t=eQ(y,g);e=e=>a-Math.exp(-g*y*e)*((m+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)e=t=>a-Math.exp(-y*t)*(v+(m+y*v)*t);else{let t=y*Math.sqrt(g*g-1);e=e=>{let n=Math.exp(-g*y*e),r=Math.min(t*e,300);return a-n*((m+g*y*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}return{calculatedDuration:p&&d||null,next:t=>{let n=e(t);if(p)l.done=t>=d;else{let o=m;0!==t&&(o=g<1?eJ(e,t,n):0);let s=Math.abs(o)<=i,u=Math.abs(a-n)<=r;l.done=s&&u}return l.value=l.done?a:n,l}}}function e3(t){let e,n,{keyframes:r,velocity:i=0,power:o=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:c,restDelta:d=.5,restSpeed:f}=t,p=r[0],m={done:!1,value:p},g=t=>void 0!==h&&t<h||void 0!==c&&t>c,v=t=>void 0===h?c:void 0===c?h:Math.abs(h-t)<Math.abs(c-t)?h:c,y=o*i,x=p+y,b=void 0===u?x:u(x);b!==x&&(y=b-p);let P=t=>-y*Math.exp(-t/s),w=t=>b+P(t),S=t=>{let e=P(t),n=w(t);m.done=Math.abs(e)<=d,m.value=m.done?b:n},E=t=>{g(m.value)&&(e=t,n=e5({keyframes:[m.value,v(m.value)],velocity:eJ(w,t,m.value),damping:a,stiffness:l,restDelta:d,restSpeed:f}))};return E(0),{calculatedDuration:null,next:t=>{let r=!1;return(n||void 0!==e||(r=!0,S(t),E(t)),void 0!==e&&t>e)?n.next(t-e):(r||S(t),m)}}}let e9=t=>{let e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>tM.Wi.update(e,!0),stop:()=>(0,tM.Pn)(e),now:()=>tM.frameData.isProcessing?tM.frameData.timestamp:performance.now()}};function e8(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}let e4={decay:e3,inertia:e3,tween:e$,keyframes:e$,spring:e5};function e6(t){let e,n,r,i,o,{autoplay:s=!0,delay:a=0,driver:l=e9,keyframes:u,type:h="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",onPlay:p,onStop:m,onComplete:g,onUpdate:v,...y}=t,x=1,b=!1,P=()=>{n=new Promise(t=>{e=t})};P();let w=e4[h]||e$;w!==e$&&"number"!=typeof u[0]&&(i=eG([0,100],u,{clamp:!1}),u=[0,100]);let S=w({...y,keyframes:u});"mirror"===f&&(o=w({...y,keyframes:[...u].reverse(),velocity:-(y.velocity||0)}));let E="idle",T=null,A=null,C=null;null===S.calculatedDuration&&c&&(S.calculatedDuration=e8(S));let{calculatedDuration:R}=S,M=1/0,V=1/0;null!==R&&(V=(M=R+d)*(c+1)-d);let k=0,D=t=>{if(null===A)return;x>0&&(A=Math.min(A,t)),x<0&&(A=Math.min(t-V/x,A));let e=(k=null!==T?T:Math.round(t-A)*x)-a*(x>=0?1:-1),n=x>=0?e<0:e>V;k=Math.max(e,0),"finished"===E&&null===T&&(k=V);let r=k,s=S;if(c){let t=Math.min(k,V)/M,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===f?(n=1-n,d&&(n-=d/M)):"mirror"===f&&(s=o)),r=U(0,1,n)*M}let l=n?{done:!1,value:u[0]}:s.next(r);i&&(l.value=i(l.value));let{done:h}=l;n||null===R||(h=x>=0?k>=V:k<=0);let p=null===T&&("finished"===E||"running"===E&&h);return v&&v(l.value),p&&O(),l},j=()=>{r&&r.stop(),r=void 0},L=()=>{E="idle",j(),e(),P(),A=C=null},O=()=>{E="finished",g&&g(),j(),e()},F=()=>{if(b)return;r||(r=l(D));let t=r.now();p&&p(),null!==T?A=t-T:A&&"finished"!==E||(A=t),"finished"===E&&P(),C=A,T=null,E="running",r.start()};s&&F();let I={then:(t,e)=>n.then(t,e),get time(){return t6(k)},set time(newTime){k=newTime=t4(newTime),null===T&&r&&0!==x?A=r.now()-newTime/x:T=newTime},get duration(){return t6(null===S.calculatedDuration?e8(S):S.calculatedDuration)},get speed(){return x},set speed(newSpeed){if(newSpeed===x||!r)return;x=newSpeed,I.time=t6(k)},get state(){return E},play:F,pause:()=>{E="paused",T=k},stop:()=>{b=!0,"idle"!==E&&(E="idle",m&&m(),L())},cancel:()=>{null!==C&&D(C),L()},complete:()=>{E="finished"},sample:t=>(A=0,D(t))};return I}let e7=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),nt=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ne=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&en[e]||et(e)||Array.isArray(e)&&e.every(t))}(e.ease),nn={type:"spring",stiffness:500,damping:25,restSpeed:10},nr=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ni={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ns=(t,e)=>{let{keyframes:n}=e;return n.length>2?ni:D.has(t)?t.startsWith("scale")?nr(n[1]):nn:no},na=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eW.test(e)||"0"===e)&&!e.startsWith("url(")),nl=new Set(["brightness","contrast","saturate","opacity"]);function nu(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(Y)||[];if(!r)return t;let i=n.replace(r,""),o=nl.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let nh=/([a-z-]*)\(.*?\)/g,nc={...eW,getAnimatableNone:t=>{let e=t.match(nh);return e?e.map(nu).join(" "):t}},nd={...ti,color:eA,backgroundColor:eA,outlineColor:eA,fill:eA,stroke:eA,borderColor:eA,borderTopColor:eA,borderRightColor:eA,borderBottomColor:eA,borderLeftColor:eA,filter:nc,WebkitFilter:nc},nf=t=>nd[t];function np(t,e){let n=nf(t);return n!==nc&&(n=eW),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let nm=t=>/^0[^.\s]+$/.test(t);function ng(t,e){return t[e]||t.default||t}let nv={skipAnimations:!1},ny=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=>{let o=ng(r,t)||{},s=o.delay||r.delay||0,{elapsed:a=0}=r;a-=t4(s);let l=function(t,e,n,r){let i,o;let s=na(e,n);i=Array.isArray(n)?[...n]:[null,n];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<i.length;t++){var u;null===i[t]&&(i[t]=0===t?a:i[t-1]),("number"==typeof(u=i[t])?0===u:null!==u?"none"===u||"0"===u||nm(u):void 0)&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(o=i[t])}if(s&&l.length&&o)for(let t=0;t<l.length;t++)i[l[t]]=np(e,o);return i}(e,t,n,o),u=l[0],h=l[l.length-1],c=na(t,u),d=na(t,h);(0,t8.K)(c===d,"You are trying to animate ".concat(t,' from "').concat(u,'" to "').concat(h,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(h," via the `style` property."));let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function(t){let{when:e,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}=t;return!!Object.keys(c).length}(o)&&(f={...f,...ns(t,f)}),f.duration&&(f.duration=t4(f.duration)),f.repeatDelay&&(f.repeatDelay=t4(f.repeatDelay)),!c||!d||t7.current||!1===o.type||nv.skipAnimations)return function(t){let{keyframes:e,delay:n,onUpdate:r,onComplete:i}=t,o=()=>(r&&r(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:tX.Z,pause:tX.Z,stop:tX.Z,then:t=>(t(),Promise.resolve()),cancel:tX.Z,complete:tX.Z});return n?e6({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(t7.current?{...f,delay:0}:f);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let n=function(t,e,n){let r,i,{onUpdate:o,onComplete:s,...a}=n;if(!(e7()&&nt.has(e)&&!a.repeatDelay&&"mirror"!==a.repeatType&&0!==a.damping&&"inertia"!==a.type))return!1;let l=!1,u=!1,h=()=>{i=new Promise(t=>{r=t})};h();let{keyframes:c,duration:d=300,ease:f,times:p}=a;if(ne(e,a)){let t=e6({...a,repeat:0,delay:0}),e={done:!1,value:c[0]},n=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;p=void 0,c=n,d=r-10,f="linear"}let m=function(t,e,n){let{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[e]:n};l&&(u.offset=l);let h=function t(e){if(e)return et(e)?ee(e):Array.isArray(e)?e.map(t):en[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,c,{...a,duration:d,ease:f,times:p}),g=()=>{u=!1,m.cancel()},v=()=>{u=!0,tM.Wi.update(g),r(),h()};return m.onfinish=()=>{u||(t.set(function(t,e){let{repeat:n,repeatType:r="loop"}=e,i=n&&"loop"!==r&&n%2==1?0:t.length-1;return t[i]}(c,a)),s&&s(),v())},{then:(t,e)=>i.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,tX.Z),get time(){return t6(m.currentTime||0)},set time(newTime){m.currentTime=t4(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return t6(d)},play:()=>{l||(m.play(),(0,tM.Pn)(g))},pause:()=>m.pause(),stop:()=>{if(l=!0,"idle"===m.playState)return;let{currentTime:e}=m;if(e){let n=e6({...a,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}v()},complete:()=>{u||m.finish()},cancel:v}}(e,t,f);if(n)return n}return e6(f)}};function nx(t){return!!(L(t)&&t.add)}let nb=t=>/^\-?\d*\.?\d+$/.test(t);function nP(t,e){-1===t.indexOf(e)&&t.push(e)}function nw(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class nS{add(t){return nP(this.subscriptions,t),()=>nw(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}let nE=t=>!isNaN(parseFloat(t)),nT={current:void 0};class nA{onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new nS);let n=this.events[t].add(e);return"change"===t?()=>{n(),tM.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nT.current&&nT.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?1e3/e*t:0):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){var n=this;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n.prev=n.current,n.current=t;let{delta:r,timestamp:i}=tM.frameData;n.lastUpdated!==i&&(n.timeDelta=r,n.lastUpdated=i,tM.Wi.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.events.change&&n.events.change.notify(n.current),n.events.velocityChange&&n.events.velocityChange.notify(n.getVelocity()),e&&n.events.renderRequest&&n.events.renderRequest.notify(n.current)},this.scheduleVelocityCheck=()=>tM.Wi.postRender(this.velocityCheck),this.velocityCheck=t=>{let{timestamp:e}=t;e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=nE(this.current),this.owner=e.owner}}function nC(t,e){return new nA(t,e)}let nR=t=>e=>e.test(t),nM=[W,Q,J,$,te,tt,{test:t=>"auto"===t,parse:t=>t}],nV=t=>nM.find(nR(t)),nk=[...nM,eA,eW],nD=t=>nk.find(nR(t));function nj(t,e){let{delay:n=0,transitionOverride:r,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(o=r);let u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(let e in a){let r=t.getValue(e),i=a[e];if(!r||void 0===i||h&&function(t,e){let{protectedKeys:n,needsAnimating:r}=t,i=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,i}(h,e))continue;let s={delay:n,elapsed:0,...ng(o||{},e)};if(window.HandoffAppearAnimations){let n=t.getProps()[f];if(n){let t=window.HandoffAppearAnimations(n,e,r,tM.Wi);null!==t&&(s.elapsed=t,s.isHandoff=!0)}}let c=!s.isHandoff&&!function(t,e){let n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}(r,i);if("spring"===s.type&&(r.getVelocity()||s.velocity)&&(c=!1),r.animation&&(c=!1),c)continue;r.start(ny(e,r,i,t.shouldReduceMotion&&D.has(e)?{type:!1}:s));let d=r.animation;nx(l)&&(l.add(e),d.then(()=>l.remove(e))),u.push(d)}return s&&Promise.all(u).then(()=>{s&&function(t,e){let n=t9(t,e),{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let e in o={...o,...r}){let n=tA(o[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nC(n))}}(t,s)}),u}function nL(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t9(t,e,n.custom),{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nj(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0,s=[],a=(t.variantChildren.size-1)*r,l=1===i?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*r}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return a-t*r};return Array.from(t.variantChildren).sort(nO).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(nL(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function nO(t,e){return t.sortNodePosition(e)}let nF=[...v].reverse(),nI=v.length;function nB(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class n_ extends tZ{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),g(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:n,options:r}=e;return function(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nL(t,e,r)));else if("string"==typeof e)n=nL(t,e,r);else{let i="function"==typeof e?t9(t,e,r.custom):e;n=Promise.all(nj(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}(t,n,r)})),n={animate:nB(!0),whileInView:nB(),whileHover:nB(),whileTap:nB(),whileDrag:nB(),whileFocus:nB(),exit:nB()},r=!0,i=(e,n)=>{let r=t9(t,n);if(r){let{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<nI;e++){var f;let p=nF[e],v=n[p],y=void 0!==a[p]?a[p]:l[p],x=m(y),b=p===s?v.isActive:null;!1===b&&(d=e);let P=y===l[p]&&y!==a[p]&&x;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...c},!v.isActive&&null===b||!y&&!v.prevProp||g(y)||"boolean"==typeof y)continue;let w=(f=v.prevProp,("string"==typeof y?y!==f:!!Array.isArray(y)&&!t3(y,f))||p===s&&v.isActive&&!P&&x||e>d&&x),S=!1,E=Array.isArray(y)?y:[y],T=E.reduce(i,{});!1===b&&(T={});let{prevResolvedValues:A={}}=v,C={...A,...T},R=t=>{w=!0,h.has(t)&&(S=!0,h.delete(t)),v.needsAnimating[t]=!0};for(let t in C){let e=T[t],n=A[t];if(!c.hasOwnProperty(t))(tE(e)&&tE(n)?t3(e,n):e===n)?void 0!==e&&h.has(t)?R(t):v.protectedKeys[t]=!0:void 0!==e?R(t):h.add(t)}v.prevProp=y,v.prevResolvedValues=T,v.isActive&&(c={...c,...T}),r&&t.blockInitialAnimation&&(w=!1),w&&(!P||S)&&u.push(...E.map(t=>({animation:t,options:{type:p,...o}})))}if(h.size){let e={};h.forEach(n=>{let r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),u.push({animation:e})}let p=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var s;if(n[e].isActive===r)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let a=o(i,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}}let nN=0;class nU extends tZ{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=nN++}}let nW=(t,e)=>Math.abs(t-e);class nz{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tM.Pn)(this.updatePoint)}constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=nY(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(nW(t.x,e.x)**2+nW(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=tM.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nZ(e,this.transformPagePoint),tM.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nY("pointercancel"===t.type?this.lastMoveEventInfo:nZ(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},!tj(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let o=nZ(tL(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=tM.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,nY(o,this.history)),this.removeListeners=tB(tF(this.contextWindow,"pointermove",this.handlePointerMove),tF(this.contextWindow,"pointerup",this.handlePointerUp),tF(this.contextWindow,"pointercancel",this.handlePointerUp))}}function nZ(t,e){return e?{point:e(t.point)}:t}function nH(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nY(t,e){let{point:n}=t;return{point:n,delta:nH(n,nq(e)),offset:nH(n,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=nq(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>t4(.1)));)n--;if(!r)return{x:0,y:0};let o=t6(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function nq(t){return t[t.length-1]}function nK(t){return t.max-t.min}function nX(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=n}function nG(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=r,t.originPoint=eC(e.min,e.max,t.origin),t.scale=nK(n)/nK(e),(nX(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=eC(n.min,n.max,t.origin)-t.originPoint,(nX(t.translate)||isNaN(t.translate))&&(t.translate=0)}function n$(t,e,n,r){nG(t.x,e.x,n.x,r?r.originX:void 0),nG(t.y,e.y,n.y,r?r.originY:void 0)}function nJ(t,e,n){t.min=n.min+e.min,t.max=t.min+nK(e)}function nQ(t,e,n){t.min=e.min-n.min,t.max=t.min+nK(e)}function n0(t,e,n){nQ(t.x,e.x,n.x),nQ(t.y,e.y,n.y)}function n1(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function n2(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function n5(t,e,n){return{min:n3(t,e),max:n3(t,n)}}function n3(t,e){return"number"==typeof t?t:t[e]||0}let n9=()=>({translate:0,scale:1,origin:0,originPoint:0}),n8=()=>({x:n9(),y:n9()}),n4=()=>({min:0,max:0}),n6=()=>({x:n4(),y:n4()});function n7(t){return[t("x"),t("y")]}function rt(t){let{top:e,left:n,right:r,bottom:i}=t;return{x:{min:n,max:r},y:{min:e,max:i}}}function re(t){return void 0===t||1===t}function rn(t){let{scale:e,scaleX:n,scaleY:r}=t;return!re(e)||!re(n)||!re(r)}function rr(t){return rn(t)||ri(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ri(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function ro(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function rs(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;t.min=ro(t.min,e,n,r,i),t.max=ro(t.max,e,n,r,i)}function ra(t,e){let{x:n,y:r}=e;rs(t.x,n.translate,n.scale,n.originPoint),rs(t.y,r.translate,r.scale,r.originPoint)}function rl(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function ru(t,e){t.min=t.min+e,t.max=t.max+e}function rh(t,e,n){let[r,i,o]=n,s=void 0!==e[o]?e[o]:.5,a=eC(t.min,t.max,s);rs(t,e[r],e[i],a,e.scale)}let rc=["x","scaleX","originX"],rd=["y","scaleY","originY"];function rf(t,e){rh(t.x,e,rc),rh(t.y,e,rd)}function rp(t,e){return rt(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let rm=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},rg=new WeakMap;class rv{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nz(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tL(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tW(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n7(t=>{let e=this.getAxisMotionValue(t).get()||0;if(J.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=nK(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&tM.Wi.update(()=>i(t,e),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>n7(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rm(this.visualElement)})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&tM.Wi.update(()=>i(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!ry(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:r,max:i}=e;return void 0!==r&&t<r?t=n?eC(r,t,n.min):Math.max(t,r):void 0!==i&&t>i&&(t=n?eC(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,e){let{top:n,left:r,bottom:i,right:o}=e;return{x:n1(t.x,r,o),y:n1(t.y,n,i)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:n5(t,"left","right"),y:n5(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&n7(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!p(e))return!1;let r=e.current;(0,t8.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,n){let r=rp(t,n),{scroll:i}=e;return i&&(ru(r.x,i.offset.x),ru(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:n2((t=i.layout.layoutBox).x,o.x),y:n2(t.y,o.y)};if(n){let t=n(function(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=rt(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(n7(s=>{if(!ry(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(ny(t,n,0,e))}stopAnimation(){n7(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){n7(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){n7(e=>{let{drag:n}=this.getProps();if(!ry(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-eC(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!p(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};n7(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,r=nK(t),i=nK(e);return i>r?n=eK(e.min,e.max-r,t.min):r>i&&(n=eK(t.min,t.max-i,e.min)),U(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n7(e=>{if(!ry(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(eC(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;rg.set(this.visualElement,this);let t=tF(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();let i=tD(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(n7(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n6(),this.visualElement=t}}function ry(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class rx extends tZ{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tX.Z}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=tX.Z,this.removeListeners=tX.Z,this.controls=new rv(t)}}let rb=t=>(e,n)=>{t&&tM.Wi.update(()=>t(e,n))};class rP extends tZ{onPointerDown(t){this.session=new nz(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rm(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rb(t),onStart:rb(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&tM.Wi.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tF(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=tX.Z}}let rw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rE={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Q.test(t))return t;t=parseFloat(t)}let n=rS(t,e.target.x),r=rS(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}};class rT extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(V,rC),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||tM.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rA(t){let[e,n]=function(){let t=(0,s.useContext)(u.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,s.useId)();return(0,s.useEffect)(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,s.useContext)(T.p);return s.createElement(rT,{...t,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(A),isPresent:e,safeToRemove:n})}let rC={borderRadius:{...rE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rE,borderTopRightRadius:rE,borderBottomLeftRadius:rE,borderBottomRightRadius:rE,boxShadow:{correct:(t,e)=>{let{treeScale:n,projectionDelta:r}=e,i=eW.parse(t);if(i.length>5)return t;let o=eW.createTransformer(t),s="number"!=typeof i[0]?1:0,a=r.x.scale*n.x,l=r.y.scale*n.y;i[0+s]/=a,i[1+s]/=l;let u=eC(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=u),"number"==typeof i[3+s]&&(i[3+s]/=u),o(i)}}},rR=["TopLeft","TopRight","BottomLeft","BottomRight"],rM=rR.length,rV=t=>"string"==typeof t?parseFloat(t):t,rk=t=>"number"==typeof t||Q.test(t);function rD(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rj=rO(0,.5,ed),rL=rO(.5,.95,tX.Z);function rO(t,e,n){return r=>r<t?0:r>e?1:n(eK(t,e,r))}function rF(t,e){t.min=e.min,t.max=e.max}function rI(t,e){rF(t.x,e.x),rF(t.y,e.y)}function rB(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function r_(t,e,n,r,i){let[o,s,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(J.test(e)&&(e=parseFloat(e),e=eC(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=eC(o.min,o.max,r);t===o&&(a-=e),t.min=rB(t.min,e,n,a,i),t.max=rB(t.max,e,n,a,i)}(t,e[o],e[s],e[a],e.scale,r,i)}let rN=["x","scaleX","originX"],rU=["y","scaleY","originY"];function rW(t,e,n,r){r_(t.x,e,rN,n?n.x:void 0,r?r.x:void 0),r_(t.y,e,rU,n?n.y:void 0,r?r.y:void 0)}function rz(t){return 0===t.translate&&1===t.scale}function rZ(t){return rz(t.x)&&rz(t.y)}function rH(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rY(t){return nK(t.x)/nK(t.y)}class rq{add(t){nP(this.members,t),t.scheduleRender()}remove(t){if(nw(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}function rK(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r="translate3d(".concat(i,"px, ").concat(o,"px, 0) ")),(1!==e.x||1!==e.y)&&(r+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){let{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+="rotate(".concat(t,"deg) ")),e&&(r+="rotateX(".concat(e,"deg) ")),i&&(r+="rotateY(".concat(i,"deg) "))}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(r+="scale(".concat(s,", ").concat(a,")")),r||"none"}let rX=(t,e)=>t.depth-e.depth;class rG{add(t){nP(this.children,t),this.isDirty=!0}remove(t){nw(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rX),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}let r$=["","X","Y","Z"],rJ={visibility:"hidden"},rQ=0,r0={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r1(t){let{attachResizeListener:e,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:o}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nS),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=this.eventHandlers.get(t);i&&i.notify(...n)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),r=i=>{let{timestamp:o}=i,s=o-n;s>=e&&((0,tM.Pn)(r),t(s-e))};return tM.Wi.read(r,!0),()=>(0,tM.Pn)(r)}(r,250),rw.hasAnimatedSinceResize&&(rw.hasAnimatedSinceResize=!1,this.nodes.forEach(it))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:r,layout:i}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||iu,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!rH(this.targetLayout,i)||r,h=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...ng(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tM.Pn)(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(ii),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(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,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r4);return}this.isUpdating||this.nodes.forEach(r6),this.isUpdating=!1,this.nodes.forEach(r7),this.nodes.forEach(r2),this.nodes.forEach(r5),this.clearAllSnapshots();let t=performance.now();tM.frameData.delta=U(0,1e3/60,t-tM.frameData.timestamp),tM.frameData.timestamp=t,tM.frameData.isProcessing=!0,tM.S6.update.process(tM.frameData),tM.S6.preRender.process(tM.frameData),tM.S6.render.process(tM.frameData),tM.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r8),this.sharedNodes.forEach(io)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tM.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tM.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=n6(),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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!rZ(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||rr(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),id((t=r).x),id(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return n6();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(ru(e.x,n.offset.x),ru(e.y,n.offset.y)),e}removeElementScroll(t){let e=n6();rI(e,t);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){rI(e,t);let{scroll:n}=this.root;n&&(ru(e.x,-n.offset.x),ru(e.y,-n.offset.y))}ru(e.x,i.offset.x),ru(e.y,i.offset.y)}}return e}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=n6();rI(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rf(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rr(r.latestValues)&&rf(n,r.latestValues)}return rr(this.latestValues)&&rf(n,this.latestValues),n}removeTransform(t){let e=n6();rI(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!rr(n.latestValues))continue;rn(n.latestValues)&&n.updateSnapshot();let r=n6();rI(r,n.measurePageBox()),rW(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rr(this.latestValues)&&rW(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!==tM.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,n,r;let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(i||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tM.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n6(),this.relativeTargetOrigin=n6(),n0(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=n6(),this.targetWithTransforms=n6()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,n=this.relativeTarget,r=this.relativeParent.target,nJ(e.x,n.x,r.x),nJ(e.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rI(this.target,this.layout.layoutBox),ra(this.target,this.targetDelta)):rI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n6(),this.relativeTargetOrigin=n6(),n0(this.relativeTargetOrigin,this.target,t.target),rI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r0.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rn(this.parent.latestValues)||ri(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),n=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tM.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rI(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n){let r,i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){i=(r=n[a]).projectionDelta;let s=r.instance;(!s||!s.style||"contents"!==s.style.display)&&(o&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rf(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,ra(t,i)),o&&rr(r.latestValues)&&rf(t,r.latestValues))}e.x=rl(e.x),e.y=rl(e.y)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=n8(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n8(),this.projectionDeltaWithTransform=n8());let u=this.projectionTransform;n$(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rK(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r0.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t){let e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=n8();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!n;let a=n6(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(il));this.animationProgress=0,this.mixTargetDelta=n=>{let r=n/1e3;if(is(s.x,t.x,r),is(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;n0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,ia(f.x,p.x,a.x,r),ia(f.y,p.y,a.y,r),e&&(u=this.relativeTarget,d=e,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),e||(e=n6()),rI(e,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=eC(0,void 0!==n.opacity?n.opacity:1,rj(r)),t.opacityExit=eC(void 0!==e.opacity?e.opacity:1,0,rL(r))):o&&(t.opacity=eC(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rM;i++){let o="border".concat(rR[i],"Radius"),s=rD(e,o),a=rD(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rk(s)===rk(a)?(t[o]=Math.max(eC(rV(s),rV(a),r),0),(J.test(a)||J.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=eC(e.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tM.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tM.Wi.update(()=>{rw.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=L(t)?t:nC(t);return r.start(ny("",r,1e3,n)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&ip(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n6();let e=nK(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=nK(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}rI(e,n),rf(e,i),n$(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rq),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<r$.length;e++){let i="rotate"+r$[e];n[i]&&(r[i]=n[i],t.setStaticValue(i,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rJ;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tC(null==t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tC(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rr(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rK(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin="".concat(100*a.origin,"% ").concat(100*l.origin,"% 0"),o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,V){if(void 0===s[t])continue;let{correct:e,applyTo:n}=V[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?tC(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r4),this.root.sharedNodes.clear()}constructor(t={},e=null==n?void 0:n()){this.id=rQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r0.totalNodes=r0.resolvedTargetDeltas=r0.recalculatedProjection=0,this.nodes.forEach(r3),this.nodes.forEach(ie),this.nodes.forEach(ir),this.nodes.forEach(r9),window.MotionDebug&&window.MotionDebug.record(r0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rG)}}}function r2(t){t.updateLayout()}function r5(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?n7(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=nK(r);r.min=e[t].min,r.max=r.min+i}):ip(i,n.layoutBox,e)&&n7(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=nK(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)});let s=n8();n$(s,e,n.layoutBox);let a=n8();o?n$(a,t.applyTransform(r,!0),n.measuredBox):n$(a,e,n.layoutBox);let l=!rZ(s),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=n6();n0(s,n.layoutBox,i.layoutBox);let a=n6();n0(a,e,o.layoutBox),rH(s,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r3(t){r0.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r8(t){t.clearSnapshot()}function r4(t){t.clearMeasurements()}function r6(t){t.isLayoutDirty=!1}function r7(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function it(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ie(t){t.resolveTargetDelta()}function ir(t){t.calcProjection()}function ii(t){t.resetRotation()}function io(t){t.removeLeadSnapshot()}function is(t,e,n){t.translate=eC(e.translate,0,n),t.scale=eC(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ia(t,e,n,r){t.min=eC(e.min,n.min,r),t.max=eC(e.max,n.max,r)}function il(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iu={duration:.45,ease:[.4,0,.1,1]},ih=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ic=ih("applewebkit/")&&!ih("chrome/")?Math.round:tX.Z;function id(t){t.min=ic(t.min),t.max=ic(t.max)}function ip(t,e,n){return"position"===t||"preserve-aspect"===t&&!nX(rY(e),rY(n),.2)}let im=r1({attachResizeListener:(t,e)=>tD(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ig={current:void 0},iv=r1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ig.current){let t=new im({});t.mount(window),t.setOptions({layoutScroll:!0}),ig.current=t}return ig.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),iy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,t8.k)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));let[r,i]=function(t){let e=iy.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let o=window.getComputedStyle(e).getPropertyValue(r);if(o){let t=o.trim();return nb(t)?parseFloat(t):t}return _(i)?ix(i,e,n+1):i}let ib=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iP=t=>ib.has(t),iw=t=>Object.keys(t).some(iP),iS=t=>t===W||t===Q,iE=(t,e)=>parseFloat(t.split(", ")[e]),iT=(t,e)=>(n,r)=>{let{transform:i}=r;if("none"===i||!i)return 0;let o=i.match(/^matrix3d\((.+)\)$/);if(o)return iE(o[1],e);{let e=i.match(/^matrix\((.+)\)$/);return e?iE(e[1],t):0}},iA=new Set(["x","y","z"]),iC=k.filter(t=>!iA.has(t)),iR={width:(t,e)=>{let{x:n}=t,{paddingLeft:r="0",paddingRight:i="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(t,e)=>{let{y:n}=t,{paddingTop:r="0",paddingBottom:i="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:r}=e;return parseFloat(r)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:r}=e;return parseFloat(r)+(n.max-n.min)},x:iT(4,13),y:iT(5,14)};iR.translateX=iR.x,iR.translateY=iR.y;let iM=(t,e,n)=>{let r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{a[t]=iR[t](r,o)}),e.render();let l=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);r&&r.jump(a[n]),t[n]=iR[n](l,o)}),t},iV=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e={...e},r={...r};let i=Object.keys(e).filter(iP),o=[],s=!1,a=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let h=n[i],c=nV(h),d=e[i];if(tE(d)){let t=d.length,e=null===d[0]?1:0;c=nV(h=d[e]);for(let n=e;n<t&&null!==d[n];n++)l?(0,t8.k)(nV(d[n])===l,"All keyframes must be of the same type"):(l=nV(d[n]),(0,t8.k)(l===c||iS(c)&&iS(l),"Keyframes must be of the same dimension as the current value"))}else l=nV(d);if(c!==l){if(iS(c)&&iS(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[i]=parseFloat(d):Array.isArray(d)&&l===Q&&(e[i]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[i]=c.transform(d):(s||(o=function(t){let e=[];return iC.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(d))}}),!a.length)return{target:e,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=iM(e,t,a);return o.length&&o.forEach(e=>{let[n,r]=e;t.getValue(n).set(r)}),t.render(),E.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},ik=(t,e,n,r)=>{var i,o;let s=function(t,e,n){let{...r}=e,i=t.current;if(!(i instanceof Element))return{target:r,transitionEnd:n};for(let e in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!_(e))return;let n=ix(e,i);n&&t.set(n)}),r){let t=r[e];if(!_(t))continue;let o=ix(t,i);o&&(r[e]=o,n||(n={}),void 0===n[e]&&(n[e]=t))}return{target:r,transitionEnd:n}}(t,e,r);return e=s.target,r=s.transitionEnd,i=e,o=r,iw(i)?iV(t,i,n,o):{target:i,transitionEnd:o}},iD={current:null},ij={current:!1},iL=new WeakMap,iO=Object.keys(S),iF=iO.length,iI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iB=y.length;class i_{scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,iL.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)),ij.current||function(){if(ij.current=!0,E.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iD.current=t.matches;t.addListener(e),e()}else iD.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iD.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iL.delete(this.current),this.projection&&this.projection.unmount(),(0,tM.Pn)(this.notifyUpdate),(0,tM.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let n=D.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,r){let i,o,{children:s,...a}=t;for(let t=0;t<iF;t++){let e=iO[t],{isEnabled:n,Feature:r,ProjectionNode:s,MeasureLayout:l}=S[e];s&&(i=s),n(a)&&(!this.features[e]&&r&&(this.features[e]=new r(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:e,drag:n,dragConstraints:o,layoutScroll:s,layoutRoot:l}=a;this.projection.setOptions({layoutId:t,layout:e,alwaysMeasureLayout:!!n||o&&p(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof e?e:"both",initialPromotionConfig:r,layoutScroll:s,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n6()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return this.makeTargetAnimatableFromInstance(t,this.props,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<iI.length;e++){let n=iI[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){let{willChange:r}=e;for(let i in e){let o=e[i],s=n[i];if(L(o))t.addValue(i,o),nx(r)&&r.add(i);else if(L(s))t.addValue(i,nC(o,{owner:t})),nx(r)&&r.remove(i);else if(s!==o){if(t.hasValue(i)){let e=t.getValue(i);e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(i);t.addValue(i,nC(void 0!==e?e:o,{owner:t}))}}}for(let r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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}getVariantContext(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<iB;t++){let n=y[t],r=this.props[n];(m(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=nC(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=tw(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||L(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new nS),this.events[t].add(e)}notify(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.events[t]&&this.events[t].notify(...n)}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tM.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=x(e),this.isVariantNode=b(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==s[t]&&L(e)&&(e.set(s[t],!1),nx(l)&&l.add(t))}}}class iN extends i_{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:n,style:r}=e;delete n[t],delete r[t]}makeTargetAnimatableFromInstance(t,e,n){let{transition:r,transitionEnd:i,...o}=t,{transformValues:s}=e,a=function(t,e,n){let r={};for(let i in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(i,e);if(void 0!==t)r[i]=t;else{let t=n.getValue(i);t&&(r[i]=t.get())}}return r}(o,r||{},this);if(s&&(i&&(i=s(i)),o&&(o=s(o)),a&&(a=s(a))),n){!function(t,e,n){var r,i;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=e[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==i?i:e[s]),null!=u&&("string"==typeof u&&(nb(u)||nm(u))?u=parseFloat(u):!nD(u)&&eW.test(l)&&(u=np(s,l)),t.addValue(s,nC(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,o,a);let t=ik(this,o,a,i);i=t.transitionEnd,o=t.target}return{transition:r,transitionEnd:i,...o}}}class iU extends iN{readValueFromInstance(t,e){if(D.has(e)){let t=nf(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=(B(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return rp(t,n)}build(t,e,n,r){to(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tb(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;L(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}renderInstance(t,e,n,r){tv(t,e,n,r)}constructor(){super(...arguments),this.type="html"}}class iW extends iN{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(D.has(e)){let t=nf(e);return t&&t.default||0}return e=ty.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return n6()}scrapeMotionValuesFromProps(t,e){return tP(t,e)}build(t,e,n,r){tp(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){tx(t,e,n,r)}mount(t){this.isSVGTag=tg(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}}let iz=(t,e)=>M(t)?new iW(e,{enableHardwareAcceleration:!1}):new iU(e,{enableHardwareAcceleration:!0}),iZ={animation:{Feature:n_},exit:{Feature:nU},inView:{Feature:t5},tap:{Feature:t$},focus:{Feature:tq},hover:{Feature:tY},pan:{Feature:rP},drag:{Feature:rx,ProjectionNode:iv,MeasureLayout:rA},layout:{ProjectionNode:iv,MeasureLayout:rA}},iH=function(t){function e(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){let{preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:o}=t;e&&function(t){for(let e in t)S[e]={...S[e],...t[e]}}(e);let d=(0,s.forwardRef)(function(t,d){var g;let v;let y={...(0,s.useContext)(a),...t,layoutId:function(t){let{layoutId:e}=t,n=(0,s.useContext)(T.p).id;return n&&void 0!==e?n+"-"+e:e}(t)},{isStatic:b}=y,w=function(t){let{initial:e,animate:n}=function(t,e){if(x(t)){let{initial:e,animate:n}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(l));return(0,s.useMemo)(()=>({initial:e,animate:n}),[P(e),P(n)])}(t),S=i(t,b);if(!b&&E.j){w.visualElement=function(t,e,n,r){let{visualElement:i}=(0,s.useContext)(l),o=(0,s.useContext)(c),d=(0,s.useContext)(u.O),p=(0,s.useContext)(a).reducedMotion,m=(0,s.useRef)();r=r||o.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:i,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));let g=m.current;(0,s.useInsertionEffect)(()=>{g&&g.update(n,d)});let v=(0,s.useRef)(!!(n[f]&&!window.HandoffComplete));return(0,h.L)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,s.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(o,S,y,n);let t=(0,s.useContext)(A),r=(0,s.useContext)(c).strict;w.visualElement&&(v=w.visualElement.loadFeatures(y,r,e,t))}return s.createElement(l.Provider,{value:w},v&&w.visualElement?s.createElement(v,{visualElement:w.visualElement,...y}):null,r(o,t,(g=w.visualElement,(0,s.useCallback)(t=>{t&&S.mount&&S.mount(t),g&&(t?g.mount(t):g.unmount()),d&&("function"==typeof d?d(t):p(d)&&(d.current=t))},[g])),S,b,w.visualElement))});return d[C]=o,d}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,e,n,r){let{forwardMotionProps:i=!1}=e;return{...M(t)?tV:tk,preloadedFeatures:n,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,r,i,o)=>{let{latestValues:a}=i,l=(M(e)?function(t,e,n,r){let i=(0,s.useMemo)(()=>{let n=tm();return tp(n,e,{enableHardwareAcceleration:!1},tg(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};ta(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return ta(i,r,t),Object.assign(i,function(t,e,n){let{transformTemplate:r}=t;return(0,s.useMemo)(()=>{let t=ts();return to(t,e,{enableHardwareAcceleration:!n},r),Object.assign({},t.vars,t.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,a,o,e),u={...function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(th(i)||!0===n&&tu(i)||!e&&!tu(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),...l,ref:r},{children:h}=n,c=(0,s.useMemo)(()=>L(h)?h.get():h,[h]);return(0,s.createElement)(e,{...u,children:c})}}(i),createVisualElement:r,Component:t}})(t,e,iZ,iz))},39950:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return o}});var r=n(3651);let i=r.Z,o=r.Z},39830:function(t,e,n){n.d(e,{j:function(){return r}});let r="undefined"!=typeof document},3651:function(t,e,n){n.d(e,{Z:function(){return r}});let r=t=>t},58945:function(t,e,n){n.d(e,{h:function(){return i}});var r=n(22971);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},4842:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(22971);let i=n(39830).j?r.useLayoutEffect:r.useEffect}}]);