"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3205],{29583:function(t,e,n){function r(t,e){var n=e&&e.cache?e.cache:l,r=e&&e.serializer?e.serializer:s;return(e&&e.strategy?e.strategy:function(t,e){var n,r,s=1===t.length?i:o;return n=e.cache.create(),r=e.serializer,s.bind(this,t,n,r)})(t,{cache:n,serializer:r})}function i(t,e,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=e.get(i);return void 0===o&&(o=t.call(this,r),e.set(i,o)),o}function o(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}n.r(e),n.d(e,{memoize:function(){return r},strategies:function(){return u}});var s=function(){return JSON.stringify(arguments)};function a(){this.cache=Object.create(null)}a.prototype.get=function(t){return this.cache[t]},a.prototype.set=function(t,e){this.cache[t]=e};var l={create:function(){return new a}},u={variadic:function(t,e){var n,r;return n=e.cache.create(),r=e.serializer,o.bind(this,t,n,r)},monadic:function(t,e){var n,r;return n=e.cache.create(),r=e.serializer,i.bind(this,t,n,r)}}},30925:function(t,e){function n(){return(n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.extends=n},5758:function(t,e,n){var r=n(45332),i=n(76693);r.default,e.QZ=i.default},88379:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(30925),i=n(2265),o=n(20294),s=n(98830),a=n(21165),l=i&&i.__esModule?i:{default:i};let u=i.forwardRef(function(t,e){let{locale:n,localePrefix:i,...u}=t,c=o.default(),h=n||c,d=s.getLocalePrefix(h,i);return l.default.createElement(a.default,r.extends({ref:e,locale:h,localePrefixMode:i.mode,prefix:d},u))});u.displayName="ClientLink",e.default=u},76693:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(30925),i=n(2265),o=n(20294),s=n(45421),a=n(76569),l=n(88379),u=n(4525),c=n(26148),h=n(11337),d=i&&i.__esModule?i:{default:i};e.default=function(t){let e=s.receiveRoutingConfig(t);function n(){let t=o.default();if(!e.locales.includes(t))throw Error(void 0);return t}let f=i.forwardRef(function(t,i){let{href:o,locale:s,...u}=t,c=n(),h=s||c;return d.default.createElement(l.default,r.extends({ref:i,href:a.compileLocalizedPathname({locale:h,pathname:o,params:"object"==typeof o?o.params:void 0,pathnames:e.pathnames}),locale:s,localePrefix:e.localePrefix},u))});function p(t){let{href:n,locale:r}=t;return a.compileLocalizedPathname({...a.normalizeNameOrNameWithParams(n),locale:r,pathnames:e.pathnames})}return f.displayName="Link",{Link:f,redirect:function(t){let r=p({href:t,locale:n()});for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return u.clientRedirect({pathname:r,localePrefix:e.localePrefix},...o)},permanentRedirect:function(t){let r=p({href:t,locale:n()});for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return u.clientPermanentRedirect({pathname:r,localePrefix:e.localePrefix},...o)},usePathname:function(){let t=c.default(e.localePrefix),r=n();return i.useMemo(()=>t?a.getRoute(r,t,e.pathnames):t,[r,t])},useRouter:function(){let t=h.default(e.localePrefix),r=n();return i.useMemo(()=>({...t,push(e){for(var n,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];let a=p({href:e,locale:(null===(n=o[0])||void 0===n?void 0:n.locale)||r});return t.push(a,...o)},replace(e){for(var n,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];let a=p({href:e,locale:(null===(n=o[0])||void 0===n?void 0:n.locale)||r});return t.replace(a,...o)},prefetch(e){for(var n,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];let a=p({href:e,locale:(null===(n=o[0])||void 0===n?void 0:n.locale)||r});return t.prefetch(a,...o)}}),[t,r])},getPathname:p}}},45332:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(30925),i=n(2265),o=n(45421),s=n(88379),a=n(4525),l=n(26148),u=n(11337),c=i&&i.__esModule?i:{default:i};e.default=function(t){let e=o.receiveLocalePrefixConfig(null==t?void 0:t.localePrefix),n=i.forwardRef(function(t,n){return c.default.createElement(s.default,r.extends({ref:n,localePrefix:e},t))});return n.displayName="Link",{Link:n,redirect:function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return a.clientRedirect({pathname:t,localePrefix:e},...r)},permanentRedirect:function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return a.clientPermanentRedirect({pathname:t,localePrefix:e},...r)},usePathname:function(){return l.default(e)},useRouter:function(){return u.default(e)}}}},4525:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(20294),i=n(55016);function o(t){return function(e){let n;try{n=r.default()}catch(t){throw t}for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return t({...e,locale:n},...o)}}let s=o(i.baseRedirect),a=o(i.basePermanentRedirect);e.clientPermanentRedirect=a,e.clientRedirect=s},26148:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16463),i=n(2265),o=n(20294),s=n(98830);e.default=function(t){let e=r.usePathname(),n=o.default();return i.useMemo(()=>{if(!e)return e;let r=s.getLocalePrefix(n,t);return s.hasPathnamePrefixed(r,e)?s.unprefixPathname(e,r):e},[n,t,e])}},11337:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16463),i=n(2265),o=n(20294),s=n(98830),a=n(9233),l=n(76569);e.default=function(t){let e=r.useRouter(),n=o.default(),u=r.usePathname();return i.useMemo(()=>{function r(e){return function(r,i){let{locale:o,...c}=i||{};a.default(u,n,o);let h=[function(e,r){let i=window.location.pathname,o=l.getBasePath(u);o&&(i=i.replace(o,""));let a=r||n,c=s.getLocalePrefix(a,t);return s.localizeHref(e,a,n,i,c)}(r,o)];return Object.keys(c).length>0&&h.push(c),e(...h)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[n,t,u,e])}},21165:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(30925),i=n(87138),o=n(16463),s=n(2265),a=n(20294),l=n(98830),u=n(9233);function c(t){return t&&t.__esModule?t:{default:t}}var h=c(i),d=c(s);let f=s.forwardRef(function(t,e){let{href:n,locale:i,localePrefixMode:c,onClick:f,prefetch:p,prefix:m,...v}=t,g=o.usePathname(),y=a.default(),x=i!==y,[P,b]=s.useState(()=>l.isLocalizableHref(n)&&("never"!==c||x)?l.prefixHref(n,m):n);return s.useEffect(()=>{g&&b(l.localizeHref(n,i,y,g,m))},[y,n,i,g,m]),x&&(p=!1),d.default.createElement(h.default,r.extends({ref:e,href:P,hrefLang:x?i:void 0,onClick:function(t){u.default(g,y,i),f&&f(t)},prefetch:p},v))});f.displayName="ClientLink",e.default=f},55016:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16463),i=n(98830);function o(t){return function(e){let n=i.getLocalePrefix(e.locale,e.localePrefix),r="never"!==e.localePrefix.mode&&i.isLocalizableHref(e.pathname)?i.prefixPathname(n,e.pathname):e.pathname;for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return t(r,...s)}}let s=o(r.redirect),a=o(r.permanentRedirect);e.basePermanentRedirect=a,e.baseRedirect=s},9233:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(74142),i=n(76569);e.default=function(t,e,n){if(!(n!==e&&null!=n)||!t)return;let o=i.getBasePath(t);document.cookie="".concat(r.COOKIE_LOCALE_NAME,"=").concat(n,"; path=").concat(""!==o?o:"/","; max-age=").concat(r.COOKIE_MAX_AGE,"; sameSite=").concat(r.COOKIE_SAME_SITE)}},76569:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(98830);function i(t){let e=new URLSearchParams;for(let[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(t=>{e.append(n,String(t))}):e.set(n,String(r));return"?"+e.toString()}e.compileLocalizedPathname=function(t){let{pathname:e,locale:n,params:o,pathnames:s,query:a}=t;function l(t){let e=s[t];return e||(e=t),e}function u(t){let e="string"==typeof t?t:t[n];return o&&Object.entries(o).forEach(t=>{let n,r,[i,o]=t;Array.isArray(o)?(n="(\\[)?\\[...".concat(i,"\\](\\])?"),r=o.map(t=>String(t)).join("/")):(n="\\[".concat(i,"\\]"),r=String(o)),e=e.replace(RegExp(n,"g"),r)}),e=e.replace(/\[\[\.\.\..+\]\]/g,""),e=r.normalizeTrailingSlash(e),a&&(e+=i(a)),e}if("string"==typeof e)return u(l(e));{let{pathname:t,...n}=e;return{...n,pathname:u(l(t))}}},e.getBasePath=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===t?e:e.replace(t,"")},e.getRoute=function(t,e,n){let i=r.getSortedPathnames(Object.keys(n)),o=decodeURI(e);for(let e of i){let i=n[e];if("string"==typeof i){if(r.matchesPathname(i,o))return e}else if(r.matchesPathname(i[t],o))return e}return e},e.normalizeNameOrNameWithParams=function(t){return"string"==typeof t?{pathname:t}:t},e.serializeSearchParams=i},20294:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16463),i=n(34581),o=n(74142);e.default=function(){let t;let e=r.useParams();try{t=i.useLocale()}catch(n){if("string"!=typeof(null==e?void 0:e[o.LOCALE_SEGMENT_NAME]))throw n;t=e[o.LOCALE_SEGMENT_NAME]}return t}},63019:function(t,e,n){var r=n(72221);e.R=r.default},45421:function(t,e){function n(t){return"object"==typeof t?t:{mode:t||"always"}}Object.defineProperty(e,"__esModule",{value:!0}),e.receiveLocalePrefixConfig=n,e.receiveRoutingConfig=function(t){return{...t,localePrefix:n(t.localePrefix)}}},72221:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},74142:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.COOKIE_LOCALE_NAME="NEXT_LOCALE",e.COOKIE_MAX_AGE=31536e3,e.COOKIE_SAME_SITE="lax",e.HEADER_LOCALE_NAME="X-NEXT-INTL-LOCALE",e.LOCALE_SEGMENT_NAME="locale"},98830:function(t,e,n){var r=n(20357);function i(t){return("object"==typeof t?null==t.host&&null==t.hostname:!/^[a-z]+:/i.test(t))&&!function(t){let e="object"==typeof t?t.pathname:t;return null!=e&&!e.startsWith("/")}(t)}function o(t,e){let n;return"string"==typeof t?n=s(e,t):(n={...t},t.pathname&&(n.pathname=s(e,t.pathname))),n}function s(t,e){let n=t;return/^\/(\?.*)?$/.test(e)&&(e=e.slice(1)),n+=e}function a(t,e){return e===t||e.startsWith("".concat(t,"/"))}function l(t){let e=function(){try{return"true"===r.env._next_intl_trailing_slash}catch(t){return!1}}();if("/"!==t){let n=t.endsWith("/");e&&!n?t+="/":!e&&n&&(t=t.slice(0,-1))}return t}function u(t){let e=t.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return new RegExp("^".concat(e,"$"))}function c(t){return t.includes("[[...")}function h(t){return t.includes("[...")}function d(t){return t.includes("[")}function f(t,e){let n=t.split("/"),r=e.split("/"),i=Math.max(n.length,r.length);for(let t=0;t<i;t++){let e=n[t],i=r[t];if(!e&&i)return -1;if(e&&!i)return 1;if(e||i){if(!d(e)&&d(i))return -1;if(d(e)&&!d(i))return 1;if(!h(e)&&h(i))return -1;if(h(e)&&!h(i))return 1;if(!c(e)&&c(i))return -1;if(c(e)&&!c(i))return 1}}return 0}Object.defineProperty(e,"__esModule",{value:!0}),e.getLocalePrefix=function(t,e){var n;return"never"!==e.mode&&(null===(n=e.prefixes)||void 0===n?void 0:n[t])||"/"+t},e.getSortedPathnames=function(t){return t.sort(f)},e.hasPathnamePrefixed=a,e.isLocalizableHref=i,e.localizeHref=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(!i(t))return t;let l=a(s,r);return(e!==n||l)&&null!=s?o(t,s):t},e.matchesPathname=function(t,e){let n=l(t),r=l(e);return u(n).test(r)},e.normalizeTrailingSlash=l,e.prefixHref=o,e.prefixPathname=s,e.templateToRegex=u,e.unprefixPathname=function(t,e){return t.replace(new RegExp("^".concat(e)),"")||"/"}},34581:function(t,e,n){t.exports=n(69773)},54480:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(2265),i=n(27927),o=n(58945);n(29583);var s=r&&r.__esModule?r:{default:r};e.IntlProvider=function(t){let{children:e,defaultTranslationValues:n,formats:a,getMessageFallback:l,locale:u,messages:c,now:h,onError:d,timeZone:f}=t,p=r.useMemo(()=>i.createCache(),[u]),m=r.useMemo(()=>i.createIntlFormatters(p),[p]),v=r.useMemo(()=>({...i.initializeConfig({locale:u,defaultTranslationValues:n,formats:a,getMessageFallback:l,messages:c,now:h,onError:d,timeZone:f}),formatters:m,cache:p}),[p,n,a,m,l,u,c,h,d,f]);return s.default.createElement(o.IntlContext.Provider,{value:v},e)}},27927:function(t,e,n){var r=n(29583);function i(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(".")}function o(t){return i(t.namespace,t.key)}function s(t){console.error(t)}function a(t,e){return r.memoize(t,{cache:{create:()=>({get:t=>e[t],set(t,n){e[t]=n}})},strategy:r.strategies.variadic})}function l(t,e){return a(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return new t(...n)},e)}e.createCache=function(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.createIntlFormatters=function(t){return{getDateTimeFormat:l(Intl.DateTimeFormat,t.dateTime),getNumberFormat:l(Intl.NumberFormat,t.number),getPluralRules:l(Intl.PluralRules,t.pluralRules),getRelativeTimeFormat:l(Intl.RelativeTimeFormat,t.relativeTime),getListFormat:l(Intl.ListFormat,t.list),getDisplayNames:l(Intl.DisplayNames,t.displayNames)}},e.defaultGetMessageFallback=o,e.defaultOnError=s,e.initializeConfig=function(t){let{getMessageFallback:e,messages:n,onError:r,...i}=t;return{...i,messages:n,onError:r||s,getMessageFallback:e||o}},e.joinPath=i,e.memoFn=a},77412:function(t,e,n){var r=n(2265);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}e.Z=function(t,e){void 0===e&&(e={});var o,s=e,a=s.volume,l=void 0===a?1:a,u=s.playbackRate,c=void 0===u?1:u,h=s.soundEnabled,d=void 0===h||h,f=s.interrupt,p=void 0!==f&&f,m=s.onload,v=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(s,["id","volume","playbackRate","soundEnabled","interrupt","onload"]),g=r.useRef(null),y=r.useRef(!1),x=r.useState(null),P=x[0],b=x[1],w=r.useState(null),A=w[0],E=w[1],T=function(){"function"==typeof m&&m.call(this),y.current&&b(1e3*this.duration()),E(this)};o=function(){return n.e(8798).then(n.t.bind(n,28798,23)).then(function(e){if(!y.current){var n;g.current=null!==(n=e.Howl)&&void 0!==n?n:e.default.Howl,y.current=!0,new g.current(i({src:Array.isArray(t)?t:[t],volume:l,rate:c,onload:T},v))}}),function(){y.current=!1}},(0,r.useEffect)(o,[]),r.useEffect(function(){g.current&&A&&E(new g.current(i({src:Array.isArray(t)?t:[t],volume:l,onload:T},v)))},[JSON.stringify(t)]),r.useEffect(function(){A&&(A.volume(l),A.rate(c))},[l,c]);var C=r.useCallback(function(t){void 0===t&&(t={}),A&&(d||t.forceSoundEnabled)&&(p&&A.stop(),t.playbackRate&&A.rate(t.playbackRate),A.play(t.id))},[A,d,p]),S=r.useCallback(function(t){A&&A.stop(t)},[A]),M=r.useCallback(function(t){A&&A.pause(t)},[A]);return[C,{sound:A,stop:S,pause:M,duration:P}]}},50627:function(t,e,n){let r;n.d(e,{v:function(){return tb}});var i,o=n(19047),s=n(80557);let a={current:!1},l=t=>Array.isArray(t)&&"number"==typeof t[0],u=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,c={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:u([0,.65,.55,1]),circOut:u([.55,0,1,.45]),backIn:u([.31,.01,.66,-.59]),backOut:u([.33,1.53,.69,.99])};var h=n(69276);let d=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function f(t,e,n,r){if(t===e&&n===r)return h.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=d(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:d(i(t),e,r)}let p=f(.42,0,1,1),m=f(0,0,.58,1),v=f(.42,0,.58,1),g=t=>Array.isArray(t)&&"number"!=typeof t[0];var y=n(68536),x=n(73108),P=n(62718);let b=f(.33,1.53,.69,.99),w=(0,P.M)(b),A=(0,x.o)(w),E={linear:h.Z,easeIn:p,easeInOut:v,easeOut:m,circIn:y.Z7,circInOut:y.X7,circOut:y.Bn,backIn:w,backInOut:A,backOut:b,anticipate:t=>(t*=2)<1?.5*w(t):.5*(2-Math.pow(2,-10*(t-1)))},T=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return f(e,n,r,i)}return"string"==typeof t?((0,o.k)(void 0!==E[t],`Invalid easing type '${t}'`),E[t]):t};var C=n(50146),S=n(51506),M=n(85303);function V(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}var D=n(45778),R=n(91583),L=n(598);let k=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},j=[D.$,R.m,L.J],O=t=>j.find(e=>e.test(t));function F(t){let e=O(t);(0,o.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===L.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=V(a,r,t+1/3),o=V(a,r,t),s=V(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let B=(t,e)=>{let n=F(t),r=F(e),i={...n};return t=>(i.red=k(n.red,r.red,t),i.green=k(n.green,r.green,t),i.blue=k(n.blue,r.blue,t),i.alpha=(0,M.C)(n.alpha,r.alpha,t),R.m.transform(i))};var I=n(89654),N=n(83646);let W=(t,e)=>n=>`${n>0?e:t}`;function $(t,e){return"number"==typeof t?n=>(0,M.C)(t,e,n):C.$.test(t)?B(t,e):t.startsWith("var(")?W(t,e):z(t,e)}let _=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>$(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},U=(t,e)=>{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=$(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},z=(t,e)=>{let n=N.P.createTransformer(e),r=(0,N.V)(t),i=(0,N.V)(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?(0,I.z)(_(r.values,i.values),n):((0,o.K)(!0,`Complex values '${t}' and '${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.`),W(t,e))};var H=n(33217);let X=(t,e)=>n=>(0,M.C)(t,e,n);function Z(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let s=t.length;if((0,o.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,n){let r=[],i=n||function(t){if("number"==typeof t);else if("string"==typeof t)return C.$.test(t)?B:z;else if(Array.isArray(t))return _;else if("object"==typeof t)return U;return X}(t[0]),o=t.length-1;for(let n=0;n<o;n++){let o=i(t[n],t[n+1]);if(e){let t=Array.isArray(e)?e[n]||h.Z:e;o=(0,I.z)(t,o)}r.push(o)}return r}(e,r,i),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=(0,H.Y)(t[n],t[n+1],e);return a[n](r)};return n?e=>u((0,S.u)(t[0],t[s-1],e)):u}function G({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){let i=g(r)?r.map(T):T(r),o={done:!1,value:e[0]},s=Z((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=(0,H.Y)(0,e,r);t.push((0,M.C)(n,1,i))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(i)?i:e.map(()=>i||v).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}var Y=n(83476);function q(t,e,n){let r=Math.max(e-5,0);return(0,Y.R)(n-t(r),e-r)}function K(t,e){return t*Math.sqrt(1-e*e)}let J=["duration","bounce"],Q=["stiffness","damping","mass"];function tt(t,e){return e.some(e=>void 0!==t[e])}function te({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let a=t[0],l=t[t.length-1],u={done:!1,value:a},{stiffness:c,damping:h,mass:d,velocity:f,duration:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tt(t,Q)&&tt(t,J)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,a;(0,o.K)(t<=(0,s.w)(10),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,S.u)(.05,1,l),t=(0,S.u)(.01,10,(0,s.X)(t)),l<1?(i=e=>{let r=e*l,i=r*t;return .001-(r-n)/K(e,l)*Math.exp(-i)},a=e=>{let r=e*l*t,o=Math.pow(l,2)*Math.pow(e,2)*t,s=K(Math.pow(e,2),l);return(r*n+n-o)*Math.exp(-r)*(-i(e)+.001>0?-1:1)/s}):(i=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),a=e=>t*t*(n-e)*Math.exp(-e*t));let u=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,a,5/t);if(t=(0,s.w)(t),isNaN(u))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(u,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(r),v=f?-(0,s.X)(f):0,g=h/(2*Math.sqrt(c*d)),y=l-a,x=(0,s.X)(Math.sqrt(c/d)),P=5>Math.abs(y);if(n||(n=P?.01:2),e||(e=P?.005:.5),g<1){let t=K(x,g);i=e=>l-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>l-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let n=Math.exp(-g*x*e),r=Math.min(t*e,300);return l-n*((v+g*x*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}return{calculatedDuration:m&&p||null,next:t=>{let r=i(t);if(m)u.done=t>=p;else{let o=v;0!==t&&(o=g<1?q(i,t,r):0);let s=Math.abs(o)<=n,a=Math.abs(l-r)<=e;u.done=s&&a}return u.value=u.done?l:r,u}}}function tn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=n*e,y=f+g,x=void 0===s?y:s(y);x!==y&&(g=x-f);let P=t=>-g*Math.exp(-t/r),b=t=>x+P(t),w=t=>{let e=P(t),n=b(t);p.done=Math.abs(e)<=u,p.value=p.done?x:n},A=t=>{m(p.value)&&(h=t,d=te({keyframes:[p.value,v(p.value)],velocity:q(b,t,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,w(t),A(t)),void 0!==h&&t>h)?d.next(t-h):(e||w(t),p)}}}var tr=n(39630);let ti=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tr.Wi.update(e,!0),stop:()=>(0,tr.Pn)(e),now:()=>tr.frameData.isProcessing?tr.frameData.timestamp:performance.now()}};function to(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 ts={decay:tn,inertia:tn,tween:G,keyframes:G,spring:te};function ta({autoplay:t=!0,delay:e=0,driver:n=ti,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",onPlay:u,onStop:c,onComplete:h,onUpdate:d,...f}){let p,m,v,g,y,x=1,P=!1,b=()=>{m=new Promise(t=>{p=t})};b();let w=ts[i]||G;w!==G&&"number"!=typeof r[0]&&(g=Z([0,100],r,{clamp:!1}),r=[0,100]);let A=w({...f,keyframes:r});"mirror"===l&&(y=w({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let E="idle",T=null,C=null,M=null;null===A.calculatedDuration&&o&&(A.calculatedDuration=to(A));let{calculatedDuration:V}=A,D=1/0,R=1/0;null!==V&&(R=(D=V+a)*(o+1)-a);let L=0,k=t=>{if(null===C)return;x>0&&(C=Math.min(C,t)),x<0&&(C=Math.min(t-R/x,C));let n=(L=null!==T?T:Math.round(t-C)*x)-e*(x>=0?1:-1),i=x>=0?n<0:n>R;L=Math.max(n,0),"finished"===E&&null===T&&(L=R);let s=L,u=A;if(o){let t=L/D,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--;let r=!!((e=Math.min(e,o+1))%2);r&&("reverse"===l?(n=1-n,a&&(n-=a/D)):"mirror"===l&&(u=y));let i=(0,S.u)(0,1,n);L>R&&(i="reverse"===l&&r?1:0),s=i*D}let c=i?{done:!1,value:r[0]}:u.next(s);g&&(c.value=g(c.value));let{done:h}=c;i||null===V||(h=x>=0?L>=R:L<=0);let f=null===T&&("finished"===E||"running"===E&&h);return d&&d(c.value),f&&F(),c},j=()=>{v&&v.stop(),v=void 0},O=()=>{E="idle",j(),p(),b(),C=M=null},F=()=>{E="finished",h&&h(),j(),p()},B=()=>{if(P)return;v||(v=n(k));let t=v.now();u&&u(),null!==T?C=t-T:C&&"finished"!==E||(C=t),"finished"===E&&b(),M=C,T=null,E="running",v.start()};t&&B();let I={then:(t,e)=>m.then(t,e),get time(){return(0,s.X)(L)},set time(newTime){L=newTime=(0,s.w)(newTime),null===T&&v&&0!==x?C=v.now()-newTime/x:T=newTime},get duration(){let t=null===A.calculatedDuration?to(A):A.calculatedDuration;return(0,s.X)(t)},get speed(){return x},set speed(newSpeed){if(newSpeed===x||!v)return;x=newSpeed,I.time=(0,s.X)(L)},get state(){return E},play:B,pause:()=>{E="paused",T=L},stop:()=>{P=!0,"idle"!==E&&(E="idle",c&&c(),O())},cancel:()=>{null!==M&&k(M),O()},complete:()=>{E="finished"},sample:t=>(C=0,k(t))};return I}let tl=(i=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=i()),r)),tu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),tc=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&c[e]||l(e)||Array.isArray(e)&&e.every(t))}(e.ease);var th=n(26019);let td={type:"spring",stiffness:500,damping:25,restSpeed:10},tf=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tp={type:"keyframes",duration:.8},tm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tv=(t,{keyframes:e})=>e.length>2?tp:th.G.has(t)?t.startsWith("scale")?tf(e[1]):td:tm,tg=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(N.P.test(e)||"0"===e)&&!e.startsWith("url("));var ty=n(66450),tx=n(99102),tP=n(69792);let tb=(t,e,n,r={})=>i=>{let d=(0,tP.e)(r,t)||{},f=d.delay||r.delay||0,{elapsed:p=0}=r;p-=(0,s.w)(f);let m=function(t,e,n,r){let i,o;let s=tg(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||(0,tx.W)(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]]=(0,ty.T)(e,o);return i}(e,t,n,d),v=m[0],g=m[m.length-1],y=tg(t,v),x=tg(t,g);(0,o.K)(y===x,`You are trying to animate ${t} from "${v}" to "${g}". ${v} is not an animatable value - to enable this animation set ${v} to a value animatable to ${g} via the \`style\` property.`);let P={keyframes:m,velocity:e.getVelocity(),ease:"easeOut",...d,delay:-p,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{i(),d.onComplete&&d.onComplete()}};if((0,tP.r)(d)||(P={...P,...tv(t,P)}),P.duration&&(P.duration=(0,s.w)(P.duration)),P.repeatDelay&&(P.repeatDelay=(0,s.w)(P.repeatDelay)),!y||!x||a.current||!1===d.type)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){let i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:h.Z,pause:h.Z,stop:h.Z,then:t=>(t(),Promise.resolve()),cancel:h.Z,complete:h.Z});return e?ta({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}(a.current?{...P,delay:0}:P);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let n=function(t,e,{onUpdate:n,onComplete:r,...i}){let o,a;if(!(tl()&&tu.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let d=!1,f=()=>{a=new Promise(t=>{o=t})};f();let{keyframes:p,duration:m=300,ease:v,times:g}=i;if(tc(e,i)){let t=ta({...i,repeat:0,delay:0}),e={done:!1,value:p[0]},n=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;g=void 0,p=n,m=r-10,v="linear"}let y=function(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:h}={}){let d={[e]:n};h&&(d.offset=h);let f=function t(e){if(e)return l(e)?u(e):Array.isArray(e)?e.map(t):c[e]}(a);return Array.isArray(f)&&(d.easing=f),t.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,p,{...i,duration:m,ease:v,times:g});i.syncStart&&(y.startTime=tr.frameData.isProcessing?tr.frameData.timestamp:document.timeline?document.timeline.currentTime:performance.now());let x=()=>y.cancel(),P=()=>{tr.Wi.update(x),o(),f()};return y.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){let r=e&&"loop"!==n&&e%2==1?0:t.length-1;return t[r]}(p,i)),r&&r(),P()},{then:(t,e)=>a.then(t,e),attachTimeline:t=>(y.timeline=t,y.onfinish=null,h.Z),get time(){return(0,s.X)(y.currentTime||0)},set time(newTime){y.currentTime=(0,s.w)(newTime)},get speed(){return y.playbackRate},set speed(newSpeed){y.playbackRate=newSpeed},get duration(){return(0,s.X)(m)},play:()=>{d||(y.play(),(0,tr.Pn)(x))},pause:()=>y.pause(),stop:()=>{if(d=!0,"idle"===y.playState)return;let{currentTime:e}=y;if(e){let n=ta({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}P()},complete:()=>y.finish(),cancel:P}}(e,t,P);if(n)return n}return ta(P)}},73153:function(t,e,n){n.d(e,{d:function(){return p}});var r=n(70352),i=n(26019),o=n(65908),s=n(50627),a=n(14894),l=n(80408),u=n(69792),c=n(39630);function h(t,e,{delay:n=0,transitionOverride:r,type:h}={}){let{transition:d=t.getDefaultTransition(),transitionEnd:f,...p}=t.makeTargetAnimatable(e),m=t.getValue("willChange");r&&(d=r);let v=[],g=h&&t.animationState&&t.animationState.getState()[h];for(let e in p){let r=t.getValue(e),l=p[e];if(!r||void 0===l||g&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(g,e))continue;let h={delay:n,elapsed:0,...(0,u.e)(d||{},e)},f=!0;if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=t.getProps()[o.M];if(n){let t=window.HandoffAppearAnimations(n,e,r,c.Wi);t&&(f=!1,h.elapsed=t,h.syncStart=!0)}}let y=f&&!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,l);if("spring"===h.type&&(r.getVelocity()||h.velocity)&&(y=!1),r.animation&&(y=!1),y)continue;r.start((0,s.v)(e,r,l,t.shouldReduceMotion&&i.G.has(e)?{type:!1}:h));let x=r.animation;(0,a.L)(m)&&(m.add(e),x.then(()=>m.remove(e))),v.push(x)}return f&&Promise.all(v).then(()=>{f&&(0,l.CD)(t,f)}),v}function d(t,e,n={}){let i=(0,r.x)(t,e,n.custom),{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let s=i?()=>Promise.all(h(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,r=0,i=1,o){let s=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(f).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(d(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,i+r,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(()=>e())}}function f(t,e){return t.sortNodePosition(e)}function p(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>d(t,e,n)));else if("string"==typeof e)i=d(t,e,n);else{let o="function"==typeof e?(0,r.x)(t,e,n.custom):e;i=Promise.all(h(t,o,n))}return i.then(()=>t.notify("AnimationComplete",e))}},65908:function(t,e,n){n.d(e,{M:function(){return r}});let r="data-"+(0,n(51580).D)("framerAppearId")},64572:function(t,e,n){n.d(e,{H:function(){return r}});function r(t){return"object"==typeof t&&"function"==typeof t.start}},66925:function(t,e,n){n.d(e,{C:function(){return r}});let r=t=>Array.isArray(t)},69792:function(t,e,n){function r({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function i(t,e){return t[e]||t.default||t}n.d(e,{e:function(){return i},r:function(){return r}})},5050:function(t,e,n){n.d(e,{p:function(){return r}});let r=(0,n(2265).createContext)({})},36539:function(t,e,n){n.d(e,{u:function(){return r}});let r=(0,n(2265).createContext)({strict:!1})},37628:function(t,e,n){n.d(e,{v:function(){return r}});let r=(0,n(2265).createContext)({})},67797:function(t,e,n){n.d(e,{O:function(){return r}});let r=(0,n(2265).createContext)(null)},86094:function(t,e,n){n.d(e,{g:function(){return r}});let r=(0,n(2265).createContext)({})},68536:function(t,e,n){n.d(e,{Bn:function(){return s},X7:function(){return a},Z7:function(){return o}});var r=n(73108),i=n(62718);let o=t=>1-Math.sin(Math.acos(t)),s=(0,i.M)(o),a=(0,r.o)(s)},73108:function(t,e,n){n.d(e,{o:function(){return r}});let r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},62718:function(t,e,n){n.d(e,{M:function(){return r}});let r=t=>e=>1-t(1-e)},23731:function(t,e,n){n.d(e,{E:function(){return r}});function r(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}},33787:function(t,e,n){n.d(e,{a:function(){return o}});var r=n(23731),i=n(63280);function o(t,e,n,o){return(0,r.E)(t,e,(0,i.s)(n),o)}},63280:function(t,e,n){n.d(e,{Q:function(){return i},s:function(){return o}});var r=n(83414);function i(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let o=t=>e=>(0,r.D)(e)&&t(e,i(e))},83414:function(t,e,n){n.d(e,{D:function(){return r}});let r=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},39630: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(69276);class i{constructor(){this.order=[],this.scheduled=new Set}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()}}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:(t,i=!1,s=!1)=>{let 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))},c=()=>{n=!0,r=!0,s.isProcessing||t(u)};return{schedule:o.reduce((t,e)=>{let r=a[e];return t[e]=(t,e=!1,i=!1)=>(n||c(),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)},75153:function(t,e,n){function r(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}n.d(e,{fJ:function(){return s},gD:function(){return a}});let i=r("dragHorizontal"),o=r("dragVertical");function s(t){let e=!1;if("y"===t)e=o();else if("x"===t)e=i();else{let t=i(),n=o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){let t=s(!0);return!t||(t(),!1)}},20847:function(t,e,n){n.d(e,{L:function(){return r}});class r{constructor(t){this.isMounted=!1,this.node=t}update(){}}},73734:function(t,e,n){n.d(e,{s:function(){return g}});var r=n(64572),i=n(66925);function o(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}var s=n(56859),a=n(70352),l=n(53552),u=n(73153);let c=[...l.e].reverse(),h=l.e.length;function d(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var f=n(20847);class p extends f.L{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(0,u.d)(t,e,n))),n={animate:d(!0),whileInView:d(),whileHover:d(),whileTap:d(),whileDrag:d(),whileFocus:d(),exit:d()},l=!0,f=(e,n)=>{let r=(0,a.x)(t,n);if(r){let{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function p(a,u){let d=t.getProps(),p=t.getVariantContext(!0)||{},m=[],v=new Set,g={},y=1/0;for(let e=0;e<h;e++){var x;let h=c[e],P=n[h],b=void 0!==d[h]?d[h]:p[h],w=(0,s.$)(b),A=h===u?P.isActive:null;!1===A&&(y=e);let E=b===p[h]&&b!==d[h]&&w;if(E&&l&&t.manuallyAnimateOnMount&&(E=!1),P.protectedKeys={...g},!P.isActive&&null===A||!b&&!P.prevProp||(0,r.H)(b)||"boolean"==typeof b)continue;let T=(x=P.prevProp,"string"==typeof b?b!==x:!!Array.isArray(b)&&!o(b,x)),C=T||h===u&&P.isActive&&!E&&w||e>y&&w,S=Array.isArray(b)?b:[b],M=S.reduce(f,{});!1===A&&(M={});let{prevResolvedValues:V={}}=P,D={...V,...M},R=t=>{C=!0,v.delete(t),P.needsAnimating[t]=!0};for(let t in D){let e=M[t],n=V[t];g.hasOwnProperty(t)||(e!==n?(0,i.C)(e)&&(0,i.C)(n)?!o(e,n)||T?R(t):P.protectedKeys[t]=!0:void 0!==e?R(t):v.add(t):void 0!==e&&v.has(t)?R(t):P.protectedKeys[t]=!0)}P.prevProp=b,P.prevResolvedValues=M,P.isActive&&(g={...g,...M}),l&&t.blockInitialAnimation&&(C=!1),C&&!E&&m.push(...S.map(t=>({animation:t,options:{type:h,...a}})))}if(v.size){let e={};v.forEach(n=>{let r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),m.push({animation:e})}let P=!!m.length;return l&&(!1===d.initial||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(P=!1),l=!1,P?e(m):Promise.resolve()}return{animateChanges:p,setActive:function(e,r,i){var o;if(n[e].isActive===r)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let s=p(i,e);for(let t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),(0,r.H)(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(){}}let m=0;class v extends f.L{constructor(){super(...arguments),this.id=m++}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(){}}let g={animation:{Feature:p},exit:{Feature:v}}},96317:function(t,e,n){n.d(e,{A:function(){return i}});let r={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"]},i={};for(let t in r)i[t]={isEnabled:e=>r[t].some(t=>!!e[t])}},45859:function(t,e,n){n.d(e,{E:function(){return A}});var r=n(33787),i=n(89654),o=n(75153),s=n(20847),a=n(39630);function l(t,e){let n="onHover"+(e?"Start":"End");return(0,r.a)(t.current,"pointer"+(e?"enter":"leave"),(r,i)=>{if("touch"===r.type||(0,o.gD)())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[n]&&a.Wi.update(()=>s[n](r,i))},{passive:!t.getProps()[n]})}class u extends s.L{mount(){this.unmount=(0,i.z)(l(this.node,!0),l(this.node,!1))}unmount(){}}var c=n(23731);class h extends s.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,i.z)((0,c.E)(this.node.current,"focus",()=>this.onFocus()),(0,c.E)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var d=n(63280);let f=(t,e)=>!!e&&(t===e||f(t,e.parentElement));var p=n(69276);function m(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,(0,d.Q)(n))}class v extends s.L{constructor(){super(...arguments),this.removeStartListeners=p.Z,this.removeEndListeners=p.Z,this.removeAccessibleListeners=p.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),o=(0,r.a)(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();a.Wi.update(()=>{f(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),s=(0,r.a)(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,i.z)(o,s),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=(0,c.E)(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=(0,c.E)(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&m("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&a.Wi.update(()=>n(t,e))})}),m("down",(t,e)=>{this.startPress(t,e)}))}),e=(0,c.E)(this.node.current,"blur",()=>{this.isPressing&&m("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,i.z)(t,e)}}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&&a.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),!(0,o.gD)()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&a.Wi.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=(0,r.a)(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=(0,c.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,i.z)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let g=new WeakMap,y=new WeakMap,x=t=>{let e=g.get(t.target);e&&e(t)},P=t=>{t.forEach(x)},b={some:0,all:1};class w extends s.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}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:b[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;y.has(n)||y.set(n,{});let r=y.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(P,{root:t,...e})),r[i]}(e);return g.set(t,n),r.observe(t),()=>{g.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({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let A={inView:{Feature:w},tap:{Feature:v},focus:{Feature:h},hover:{Feature:u}}},344:function(t,e,n){n.d(e,{K:function(){return i}});var r=n(96317);function i(t){for(let e in t)r.A[e]={...r.A[e],...t[e]}}},42020:function(t,e,n){n.d(e,{j:function(){return o}});var r=n(57290),i=n(26019);function o(t,{layout:e,layoutId:n}){return i.G.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!r.P[t]||"opacity"===t)}},33005:function(t,e,n){function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function i({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function o(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}}n.d(e,{d7:function(){return o},i8:function(){return r},z2:function(){return i}})},46711:function(t,e,n){n.d(e,{D2:function(){return m},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return o}});var r=n(85303),i=n(98107);function o(t,e,n){return n+e*(t-n)}function s(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function a(t,e=0,n=1,r,i){t.min=s(t.min,e,n,r,i),t.max=s(t.max,e,n,r,i)}function l(t,{x:e,y:n}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,r=!1){let o,s;let a=n.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){s=(o=n[u]).projectionDelta;let a=o.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&m(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,l(t,s)),r&&(0,i.ud)(o.latestValues)&&m(t,o.latestValues))}e.x=c(e.x),e.y=c(e.y)}}function c(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,i,o]){let s=void 0!==e[o]?e[o]:.5,l=(0,r.C)(t.min,t.max,s);a(t,e[n],e[i],l,e.scale)}let f=["x","scaleX","originX"],p=["y","scaleY","originY"];function m(t,e){d(t.x,e,f),d(t.y,e,p)}},58250:function(t,e,n){n.d(e,{dO:function(){return s},wc:function(){return i}});let r=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:r(),y:r()}),o=()=>({min:0,max:0}),s=()=>({x:o(),y:o()})},57290:function(t,e,n){n.d(e,{B:function(){return i},P:function(){return r}});let r={};function i(t){Object.assign(r,t)}},98107:function(t,e,n){function r(t){return void 0===t||1===t}function i({scale:t,scaleX:e,scaleY:n}){return!r(t)||!r(e)||!r(n)}function o(t){return i(t)||s(t)||t.z||t.rotate||t.rotateX||t.rotateY}function s(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}n.d(e,{D_:function(){return s},Lj:function(){return i},ud:function(){return o}})},77684:function(t,e,n){n.d(e,{J:function(){return o},z:function(){return s}});var r=n(33005),i=n(46711);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}function s(t,e,n){let r=o(t,n),{scroll:s}=e;return s&&((0,i.am)(r.x,s.offset.x),(0,i.am)(r.y,s.offset.y)),r}},59045:function(t,e,n){n.d(e,{b:function(){return tl}});var r=n(14651),i=n(61534),o=n(26019),s=n(11315),a=n(39979),l=n(40781),u=n(77684),c=n(80408),h=n(19047),d=n(84386);let f=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function p(t,e,n=1){(0,h.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,o]=function(t){let e=f.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let t=s.trim();return(0,d.P)(t)?parseFloat(t):t}return(0,i.tm)(o)?p(o,e,n+1):o}var m=n(66925),v=n(23769),g=n(77282),y=n(40783),x=n(75480);let P=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),b=t=>P.has(t),w=t=>Object.keys(t).some(b),A=t=>t===y.Rx||t===x.px,E=(t,e)=>parseFloat(t.split(", ")[e]),T=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return E(i[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?E(e[1],t):0}},C=new Set(["x","y","z"]),S=o._.filter(t=>!C.has(t)),M={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:T(4,13),y:T(5,14)};M.translateX=M.x,M.translateY=M.y;let V=(t,e,n)=>{let r=e.measureViewportBox(),i=getComputedStyle(e.current),{display:o}=i,s={};"none"===o&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{s[t]=M[t](r,i)}),e.render();let a=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);r&&r.jump(s[n]),t[n]=M[n](a,i)}),t},D=(t,e,n={},r={})=>{e={...e},r={...r};let i=Object.keys(e).filter(b),o=[],s=!1,a=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],d=(0,v.C)(c),f=e[i];if((0,m.C)(f)){let t=f.length,e=null===f[0]?1:0;c=f[e],d=(0,v.C)(c);for(let n=e;n<t&&null!==f[n];n++)l?(0,h.k)((0,v.C)(f[n])===l,"All keyframes must be of the same type"):(l=(0,v.C)(f[n]),(0,h.k)(l===d||A(d)&&A(l),"Keyframes must be of the same dimension as the current value"))}else l=(0,v.C)(f);if(d!==l){if(A(d)&&A(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof f?e[i]=parseFloat(f):Array.isArray(f)&&l===x.px&&(e[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===f)?0===c?u.set(l.transform(c)):e[i]=d.transform(f):(s||(o=function(t){let e=[];return S.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(f))}}),!a.length)return{target:e,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=V(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),g.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},R=(t,e,n,r)=>{var o,s;let a=function(t,{...e},n){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};for(let o in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!(0,i.tm)(e))return;let n=p(e,r);n&&t.set(n)}),e){let t=e[o];if(!(0,i.tm)(t))continue;let s=p(t,r);s&&(e[o]=s,n||(n={}),void 0===n[o]&&(n[o]=t))}return{target:e,transitionEnd:n}}(t,e,r);return e=a.target,r=a.transitionEnd,o=e,s=r,w(o)?D(t,o,n,s):{target:o,transitionEnd:s}};var L=n(58250),k=n(17576),j=n(53629),O=n(31016),F=n(72428),B=n(20804),I=n(14894),N=n(77599),W=n(83795),$=n(56859),_=n(28595),U=n(96317),z=n(53552);let H=new WeakMap;var X=n(39630);let Z=Object.keys(U.A),G=Z.length,Y=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],q=z.V.length;class K{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=()=>X.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=(0,W.G)(e),this.isVariantNode=(0,W.M)(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]&&(0,N.i)(e)&&(e.set(s[t],!1),(0,I.L)(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,H.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)),O.O.current||(0,j.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||O.n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in H.delete(this.current),this.projection&&this.projection.unmount(),(0,X.Pn)(this.notifyUpdate),(0,X.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=o.G.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&X.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({children:t,...e},n,r,i){let o,s;for(let t=0;t<G;t++){let n=Z[t],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=U.A[n];a&&(o=a),r(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!r||s&&(0,k.I)(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}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):(0,L.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){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<Y.length;e++){let n=Y[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((0,N.i)(o))t.addValue(i,o),(0,I.L)(r)&&r.add(i);else if((0,N.i)(s))t.addValue(i,(0,B.BX)(o,{owner:t})),(0,I.L)(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,(0,B.BX)(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(t=!1){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<q;t++){let n=z.V[t],r=this.props[n];((0,$.$)(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=(0,B.BX)(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=(0,_.o)(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||(0,N.i)(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 F.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class J extends K{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let o=(0,c.P$)(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),i){(0,c.GJ)(this,n,o);let t=R(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Q extends J{readValueFromInstance(t,e){if(o.G.has(e)){let t=(0,l.A)(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=((0,i.f9)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,u.J)(t,e)}build(t,e,n,i){(0,r.r)(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return(0,s.U)(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,N.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,r){(0,a.N)(t,e,n,r)}}var tt=n(875),te=n(92622),tn=n(51580),tr=n(82394),ti=n(70545),to=n(75969);class ts extends J{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.G.has(e)){let t=(0,l.A)(e);return t&&t.default||0}return e=tr.s.has(e)?e:(0,tn.D)(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,L.dO)()}scrapeMotionValuesFromProps(t,e){return(0,tt.U)(t,e)}build(t,e,n,r){(0,te.i)(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){(0,ti.K)(t,e,n,r)}mount(t){this.isSVGTag=(0,to.a)(t.tagName),super.mount(t)}}var ta=n(42860);let tl=(t,e)=>(0,ta.q)(t)?new ts(e,{enableHardwareAcceleration:!1}):new Q(e,{enableHardwareAcceleration:!0})},29743:function(t,e,n){n.d(e,{D:function(){return x}});var r=n(2265);let i=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var o=n(37628),s=n(67797),a=n(9033),l=n(36539),u=n(65908),c=n(17576),h=n(56859),d=n(83795);function f(t){return Array.isArray(t)?t.join(" "):t}var p=n(344),m=n(77282),v=n(5050),g=n(86094);let y=Symbol.for("motionComponentSymbol");function x(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:x,Component:P}){t&&(0,p.K)(t);let b=(0,r.forwardRef)(function(p,y){var b;let w;let A={...(0,r.useContext)(i),...p,layoutId:function({layoutId:t}){let e=(0,r.useContext)(v.p).id;return e&&void 0!==t?e+"-"+t:t}(p)},{isStatic:E}=A,T=function(t){let{initial:e,animate:n}=function(t,e){if((0,d.G)(t)){let{initial:e,animate:n}=t;return{initial:!1===e||(0,h.$)(e)?e:void 0,animate:(0,h.$)(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(o.v));return(0,r.useMemo)(()=>({initial:e,animate:n}),[f(e),f(n)])}(p),C=x(p,E);if(!E&&m.j){T.visualElement=function(t,e,n,c){let{visualElement:h}=(0,r.useContext)(o.v),d=(0,r.useContext)(l.u),f=(0,r.useContext)(s.O),p=(0,r.useContext)(i).reducedMotion,m=(0,r.useRef)();c=c||d.renderer,!m.current&&c&&(m.current=c(t,{visualState:e,parent:h,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:p}));let v=m.current;(0,r.useInsertionEffect)(()=>{v&&v.update(n,f)});let g=(0,r.useRef)(!!(n[u.M]&&!window.HandoffComplete));return(0,a.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,r.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(P,C,A,e);let n=(0,r.useContext)(g.g),c=(0,r.useContext)(l.u).strict;T.visualElement&&(w=T.visualElement.loadFeatures(A,c,t,n))}return r.createElement(o.v.Provider,{value:T},w&&T.visualElement?r.createElement(w,{visualElement:T.visualElement,...A}):null,n(P,p,(b=T.visualElement,(0,r.useCallback)(t=>{t&&C.mount&&C.mount(t),b&&(t?b.mount(t):b.unmount()),y&&("function"==typeof y?y(t):(0,c.I)(y)&&(y.current=t))},[b])),C,E,T.visualElement))});return b[y]=P,b}(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))})}},58219:function(t,e,n){n.d(e,{E:function(){return eu}});var r=n(29743),i=n(53516),o=n(45859),s=n(73734),a=n(20847),l=n(69276),u=n(19047),c=n(63280),h=n(80557),d=n(33787),f=n(89654);let p=(t,e)=>Math.abs(t-e);var m=n(83414),v=n(39630);class g{constructor(t,e,{transformPagePoint:n,contextWindow:r}={}){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=P(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(p(t.x,e.x)**2+p(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=v.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=y(e,this.transformPagePoint),v.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:r}=this.handlers,i=P("pointercancel"===t.type?this.lastMoveEventInfo:y(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!(0,m.D)(t))return;this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let i=y((0,c.Q)(t),this.transformPagePoint),{point:o}=i,{timestamp:s}=v.frameData;this.history=[{...o,timestamp:s}];let{onSessionStart:a}=e;a&&a(t,P(i,this.history)),this.removeListeners=(0,f.z)((0,d.a)(this.contextWindow,"pointermove",this.handlePointerMove),(0,d.a)(this.contextWindow,"pointerup",this.handlePointerUp),(0,d.a)(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,v.Pn)(this.updatePoint)}}function y(t,e){return e?{point:e(t.point)}:t}function x(t,e){return{x:t.x-e.x,y:t.y-e.y}}function P({point:t},e){return{point:t,delta:x(t,b(e)),offset:x(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=b(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>(0,h.w)(.1)));)n--;if(!r)return{x:0,y:0};let o=(0,h.X)(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 b(t){return t[t.length-1]}var w=n(75153),A=n(17576),E=n(33217),T=n(85303);function C(t){return t.max-t.min}function S(t,e=0,n=.01){return Math.abs(t-e)<=n}function M(t,e,n,r=.5){t.origin=r,t.originPoint=(0,T.C)(e.min,e.max,t.origin),t.scale=C(n)/C(e),(S(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,T.C)(n.min,n.max,t.origin)-t.originPoint,(S(t.translate)||isNaN(t.translate))&&(t.translate=0)}function V(t,e,n,r){M(t.x,e.x,n.x,r?r.originX:void 0),M(t.y,e.y,n.y,r?r.originY:void 0)}function D(t,e,n){t.min=n.min+e.min,t.max=t.min+C(e)}function R(t,e,n){t.min=e.min-n.min,t.max=t.min+C(e)}function L(t,e,n){R(t.x,e.x,n.x),R(t.y,e.y,n.y)}var k=n(51506);function j(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 O(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 F(t,e,n){return{min:B(t,e),max:B(t,n)}}function B(t,e){return"number"==typeof t?t:t[e]||0}var I=n(58250);function N(t){return[t("x"),t("y")]}var W=n(77684),$=n(33005),_=n(23731),U=n(75480),z=n(50627);let H=({current:t})=>t?t.ownerDocument.defaultView:null,X=new WeakMap;class Z{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=(0,I.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new g(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,c.Q)(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,w.fJ)(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),N(t=>{let e=this.getAxisMotionValue(t).get()||0;if(U.aQ.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=C(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&v.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,e=10){let 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)},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:H(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&&v.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||!G(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?(0,T.C)(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?(0,T.C)(n,t,r.max):Math.min(t,n)),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&&(0,A.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:j(t.x,n,i),y:j(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:F(t,"left","right"),y:F(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&N(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||!(0,A.I)(e))return!1;let r=e.current;(0,u.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=(0,W.z)(r,i.root,this.visualElement.getTransformPagePoint()),s={x:O((t=i.layout.layoutBox).x,o.x),y:O(t.y,o.y)};if(n){let t=n((0,$.z2)(s));this.hasMutatedConstraints=!!t,t&&(s=(0,$.i8)(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(N(s=>{if(!G(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((0,z.v)(t,n,0,e))}stopAnimation(){N(t=>this.getAxisMotionValue(t).stop())}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){N(e=>{let{drag:n}=this.getProps();if(!G(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]-(0,T.C)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!(0,A.I)(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};N(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,r=C(t),i=C(e);return i>r?n=(0,E.Y)(e.min,e.max-r,t.min):r>i&&(n=(0,E.Y)(t.min,t.max-i,e.min)),(0,k.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(),N(e=>{if(!G(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set((0,T.C)(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;X.set(this.visualElement,this);let t=this.visualElement.current,e=(0,d.a)(t,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),n=()=>{let{dragConstraints:t}=this.getProps();(0,A.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n();let o=(0,_.E)(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(N(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),e(),i(),s&&s()}}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}}}function G(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class Y extends a.L{constructor(t){super(t),this.removeGroupControls=l.Z,this.removeListeners=l.Z,this.controls=new Z(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||l.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let q=t=>(e,n)=>{t&&v.Wi.update(()=>t(e,n))};class K extends a.L{constructor(){super(...arguments),this.removePointerDownListener=l.Z}onPointerDown(t){this.session=new g(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:H(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:q(t),onStart:q(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&v.Wi.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=(0,d.a)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var J=n(2265),Q=n(67797),tt=n(5050),te=n(86094);let tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ti={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!U.px.test(t))return t;t=parseFloat(t)}let n=tr(t,e.target.x),r=tr(t,e.target.y);return`${n}% ${r}%`}};var to=n(83646),ts=n(57290);class ta extends J.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;(0,ts.B)(tu),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()})),tn.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()||v.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 tl(t){let[e,n]=function(){let t=(0,J.useContext)(Q.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,J.useId)();return(0,J.useEffect)(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,J.useContext)(tt.p);return J.createElement(ta,{...t,layoutGroup:r,switchLayoutGroup:(0,J.useContext)(te.g),isPresent:e,safeToRemove:n})}let tu={borderRadius:{...ti,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ti,borderTopRightRadius:ti,borderBottomLeftRadius:ti,borderBottomRightRadius:ti,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=to.P.parse(t);if(r.length>5)return t;let i=to.P.createTransformer(t),o="number"!=typeof r[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;r[0+o]/=s,r[1+o]/=a;let l=(0,T.C)(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var tc=n(72428),th=n(68536);let td=["TopLeft","TopRight","BottomLeft","BottomRight"],tf=td.length,tp=t=>"string"==typeof t?parseFloat(t):t,tm=t=>"number"==typeof t||U.px.test(t);function tv(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tg=tx(0,.5,th.Bn),ty=tx(.5,.95,l.Z);function tx(t,e,n){return r=>r<t?0:r>e?1:n((0,E.Y)(t,e,r))}function tP(t,e){t.min=e.min,t.max=e.max}function tb(t,e){tP(t.x,e.x),tP(t.y,e.y)}var tw=n(46711);function tA(t,e,n,r,i){return t-=e,t=(0,tw.q2)(t,1/n,r),void 0!==i&&(t=(0,tw.q2)(t,1/i,r)),t}function tE(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){if(U.aQ.test(e)&&(e=parseFloat(e),e=(0,T.C)(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=(0,T.C)(o.min,o.max,r);t===o&&(a-=e),t.min=tA(t.min,e,n,a,i),t.max=tA(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}let tT=["x","scaleX","originX"],tC=["y","scaleY","originY"];function tS(t,e,n,r){tE(t.x,e,tT,n?n.x:void 0,r?r.x:void 0),tE(t.y,e,tC,n?n.y:void 0,r?r.y:void 0)}var tM=n(69792);function tV(t){return 0===t.translate&&1===t.scale}function tD(t){return tV(t.x)&&tV(t.y)}function tR(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 tL(t){return C(t.x)/C(t.y)}var tk=n(28746);class tj{constructor(){this.members=[]}add(t){(0,tk.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tk.cl)(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)}}function tO(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),i&&(r+=`rotateY(${i}deg) `)}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(r+=`scale(${s}, ${a})`),r||"none"}var tF=n(98107);let tB=(t,e)=>t.depth-e.depth;class tI{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tk.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tk.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tB),this.isDirty=!1,this.children.forEach(t)}}var tN=n(32404),tW=n(20804),t$=n(77599);let t_=["","X","Y","Z"],tU={visibility:"hidden"},tz=0,tH={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tX({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=tz++,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,tH.totalNodes=tH.resolvedTargetDeltas=tH.recalculatedProjection=0,this.nodes.forEach(tY),this.nodes.forEach(t5),this.nodes.forEach(t2),this.nodes.forEach(tq),window.MotionDebug&&window.MotionDebug.record(tH)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tI)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tc.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),r=({timestamp:e})=>{let i=e-n;i>=250&&((0,v.Pn)(r),t(i-250))};return v.Wi.read(r,!0),()=>(0,v.Pn)(r)}(r,0),tn.hasAnimatedSinceResize&&(tn.hasAnimatedSinceResize=!1,this.nodes.forEach(t1))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||t8,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!tR(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,tM.e)(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||t1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,v.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(t3),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(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(tJ);return}this.isUpdating||this.nodes.forEach(tQ),this.isUpdating=!1,this.nodes.forEach(t0),this.nodes.forEach(tZ),this.nodes.forEach(tG),this.clearAllSnapshots();let t=performance.now();v.frameData.delta=(0,k.u)(0,1e3/60,t-v.frameData.timestamp),v.frameData.timestamp=t,v.frameData.isProcessing=!0,v.S6.update.process(v.frameData),v.S6.preRender.process(v.frameData),v.S6.render.process(v.frameData),v.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(tK),this.sharedNodes.forEach(t6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,v.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){v.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=(0,I.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!tD(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||(0,tF.ud)(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),r=this.removeElementScroll(n);return t&&(r=this.removeTransform(r)),en((e=r).x),en(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,I.dO)();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,tw.am)(e.x,n.offset.x),(0,tw.am)(e.y,n.offset.y)),e}removeElementScroll(t){let e=(0,I.dO)();tb(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){tb(e,t);let{scroll:n}=this.root;n&&((0,tw.am)(e.x,-n.offset.x),(0,tw.am)(e.y,-n.offset.y))}(0,tw.am)(e.x,i.offset.x),(0,tw.am)(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){let n=(0,I.dO)();tb(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&&(0,tw.D2)(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),(0,tF.ud)(r.latestValues)&&(0,tw.D2)(n,r.latestValues)}return(0,tF.ud)(this.latestValues)&&(0,tw.D2)(n,this.latestValues),n}removeTransform(t){let e=(0,I.dO)();tb(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!(0,tF.ud)(n.latestValues))continue;(0,tF.Lj)(n.latestValues)&&n.updateSnapshot();let r=(0,I.dO)();tb(r,n.measurePageBox()),tS(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return(0,tF.ud)(this.latestValues)&&tS(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!==v.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,n,r,i;let 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(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=v.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),L(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,I.dO)(),this.targetWithTransforms=(0,I.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,D(n.x,r.x,i.x),D(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tb(this.target,this.layout.layoutBox),(0,tw.o2)(this.target,this.targetDelta)):tb(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=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),L(this.relativeTargetOrigin,this.target,t.target),tb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tH.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,tF.Lj)(this.parent.latestValues)||(0,tF.D_)(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===v.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;tb(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;(0,tw.YY)(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=(0,I.wc)(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=(0,I.wc)(),this.projectionDeltaWithTransform=(0,I.wc)());let u=this.projectionTransform;V(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=tO(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tH.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!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,e=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=(0,I.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,I.dO)(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(t4));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(t7(s.x,t.x,r),t7(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;L(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,t9(f.x,p.x,a.x,r),t9(f.y,p.y,a.y,r),n&&(u=this.relativeTarget,d=n,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),n||(n=(0,I.dO)()),tb(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=(0,T.C)(0,void 0!==n.opacity?n.opacity:1,tg(r)),t.opacityExit=(0,T.C)(void 0!==e.opacity?e.opacity:1,0,ty(r))):o&&(t.opacity=(0,T.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<tf;i++){let o=`border${td[i]}Radius`,s=tv(e,o),a=tv(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||tm(s)===tm(a)?(t[o]=Math.max((0,T.C)(tp(s),tp(a),r),0),(U.aQ.test(a)||U.aQ.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,T.C)(e.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,h,c)),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,v.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=v.Wi.update(()=>{tn.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=(0,t$.i)(0)?0:(0,tW.BX)(0);return r.start((0,z.v)("",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&&er(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||(0,I.dO)();let e=C(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=C(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}tb(e,n),(0,tw.D2)(e,i),V(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tj),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({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let 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<t_.length;e++){let i="rotate"+t_[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 tU;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=(0,tN.b)(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=(0,tN.b)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tF.ud)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=tO(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=`${100*a.origin}% ${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,ts.P){if(void 0===s[t])continue;let{correct:e,applyTo:n}=ts.P[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?(0,tN.b)(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(tJ),this.root.sharedNodes.clear()}}}function tZ(t){t.updateLayout()}function tG(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?N(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=C(r);r.min=e[t].min,r.max=r.min+i}):er(i,n.layoutBox,e)&&N(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=C(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=(0,I.wc)();V(s,e,n.layoutBox);let a=(0,I.wc)();o?V(a,t.applyTransform(r,!0),n.measuredBox):V(a,e,n.layoutBox);let l=!tD(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=(0,I.dO)();L(s,n.layoutBox,i.layoutBox);let a=(0,I.dO)();L(a,e,o.layoutBox),tR(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 tY(t){tH.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 tq(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tK(t){t.clearSnapshot()}function tJ(t){t.clearMeasurements()}function tQ(t){t.isLayoutDirty=!1}function t0(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function t5(t){t.resolveTargetDelta()}function t2(t){t.calcProjection()}function t3(t){t.resetRotation()}function t6(t){t.removeLeadSnapshot()}function t7(t,e,n){t.translate=(0,T.C)(e.translate,0,n),t.scale=(0,T.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function t9(t,e,n,r){t.min=(0,T.C)(e.min,n.min,r),t.max=(0,T.C)(e.max,n.max,r)}function t4(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let t8={duration:.45,ease:[.4,0,.1,1]},et=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ee=et("applewebkit/")&&!et("chrome/")?Math.round:l.Z;function en(t){t.min=ee(t.min),t.max=ee(t.max)}function er(t,e,n){return"position"===t||"preserve-aspect"===t&&!S(tL(e),tL(n),.2)}let ei=tX({attachResizeListener:(t,e)=>(0,_.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eo={current:void 0},es=tX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eo.current){let t=new ei({});t.mount(window),t.setOptions({layoutScroll:!0}),eo.current=t}return eo.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var ea=n(59045);let el={...s.s,...o.E,pan:{Feature:K},drag:{Feature:Y,ProjectionNode:es,MeasureLayout:tl},layout:{ProjectionNode:es,MeasureLayout:tl}},eu=(0,r.D)((t,e)=>(0,i.w)(t,e,el,ea.b))},51580:function(t,e,n){n.d(e,{D:function(){return r}});let r=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},53516:function(t,e,n){n.d(e,{w:function(){return D}});var r,i=n(42860),o=n(2265),s=n(42020),a=n(77599),l=n(14651);let u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c(t,e,n){for(let r in e)(0,a.i)(e[r])||(0,s.j)(r,n)||(t[r]=e[r])}let h=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function d(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||h.has(t)}let f=t=>!d(t);try{(r=require("@emotion/is-prop-valid").default)&&(f=t=>t.startsWith("on")?!d(t):r(t))}catch(t){}var p=n(92622);let m=()=>({...u(),attrs:{}});var v=n(75969),g=n(70545),y=n(875),x=n(64572),P=n(67797),b=n(28595),w=n(30458),A=n(32404),E=n(37628),T=n(83795);let C=t=>(e,n)=>{let r=(0,o.useContext)(E.v),i=(0,o.useContext)(P.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){let s={latestValues:function(t,e,n,r){let i={},o=r(t,{});for(let t in o)i[t]=(0,A.b)(o[t]);let{initial:s,animate:a}=t,l=(0,T.G)(t),u=(0,T.M)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;return h&&"boolean"!=typeof h&&!(0,x.H)(h)&&(Array.isArray(h)?h:[h]).forEach(e=>{let n=(0,b.o)(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=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s})(t,e,r,i);return n?s():(0,w.h)(s)};var S=n(39630);let M={useVisualState:C({scrapeMotionValuesFromProps:y.U,createRenderState:m,onMount:(t,e,{renderState:n,latestValues:r})=>{S.Wi.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),S.Wi.render(()=>{(0,p.i)(n,r,{enableHardwareAcceleration:!1},(0,v.a)(e.tagName),t.transformTemplate),(0,g.K)(e,n)})}})},V={useVisualState:C({scrapeMotionValuesFromProps:n(11315).U,createRenderState:u})};function D(t,{forwardMotionProps:e=!1},n,r){return{...(0,i.q)(t)?M:V,preloadedFeatures:n,useRender:function(t=!1){return(e,n,r,{latestValues:s},h)=>{let g=((0,i.q)(e)?function(t,e,n,r){let i=(0,o.useMemo)(()=>{let n=m();return(0,p.i)(n,e,{enableHardwareAcceleration:!1},(0,v.a)(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};c(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 c(i,r,t),Object.assign(i,function({transformTemplate:t},e,n){return(0,o.useMemo)(()=>{let r=u();return(0,l.r)(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.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-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,s,h,e),y={...function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(f(i)||!0===n&&d(i)||!e&&!d(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),...g,ref:r},{children:x}=n,P=(0,o.useMemo)(()=>(0,a.i)(x)?x.get():x,[x]);return(0,o.createElement)(e,{...y,children:P})}}(e),createVisualElement:r,Component:t}}},61534:function(t,e,n){n.d(e,{Xp:function(){return s},f9:function(){return i},tm:function(){return o}});let r=t=>e=>"string"==typeof e&&e.startsWith(t),i=r("--"),o=r("var(--"),s=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},42860:function(t,e,n){n.d(e,{q:function(){return i}});let 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 i(t){if("string"!=typeof t||t.includes("-"));else if(r.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}},66450:function(t,e,n){n.d(e,{T:function(){return s}});var r=n(83646),i=n(24913),o=n(40781);function s(t,e){let n=(0,o.A)(t);return n!==i.h&&(n=r.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},40781:function(t,e,n){n.d(e,{A:function(){return s}});var r=n(50146),i=n(24913);let o={...n(37755).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:i.h,WebkitFilter:i.h},s=t=>o[t]},23769:function(t,e,n){n.d(e,{$:function(){return s},C:function(){return a}});var r=n(40783),i=n(75480),o=n(12649);let s=[r.Rx,i.px,i.aQ,i.RW,i.vw,i.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>s.find((0,o.l)(t))},37755:function(t,e,n){n.d(e,{j:function(){return s}});var r=n(40783),i=n(75480);let o={...r.Rx,transform:Math.round},s={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:r.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:o,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:o}},12649:function(t,e,n){n.d(e,{l:function(){return r}});let r=t=>e=>e.test(t)},14651:function(t,e,n){n.d(e,{r:function(){return u}});var r=n(26019);let i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=r._.length;var s=n(61534);let a=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var l=n(37755);function u(t,e,n,u){let{style:c,vars:h,transform:d,transformOrigin:f}=t,p=!1,m=!1,v=!0;for(let t in e){let n=e[t];if((0,s.f9)(t)){h[t]=n;continue}let i=l.j[t],o=a(n,i);if(r.G.has(t)){if(p=!0,d[t]=o,!v)continue;n!==(i.default||0)&&(v=!1)}else t.startsWith("origin")?(m=!0,f[t]=o):c[t]=o}if(!e.transform&&(p||u?c.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,a){let l="";for(let e=0;e<o;e++){let n=r._[e];if(void 0!==t[n]){let e=i[n]||n;l+=`${e}(${t[n]}) `}}return e&&!t.z&&(l+="translateZ(0)"),l=l.trim(),a?l=a(t,s?"":l):n&&s&&(l="none"),l}(t.transform,n,v,u):c.transform&&(c.transform="none")),m){let{originX:t="50%",originY:e="50%",originZ:n=0}=f;c.transformOrigin=`${t} ${e} ${n}`}}},39979:function(t,e,n){n.d(e,{N:function(){return r}});function r(t,{style:e,vars:n},r,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(o,n[o])}},11315:function(t,e,n){n.d(e,{U:function(){return o}});var r=n(42020),i=n(77599);function o(t,e){let{style:n}=t,o={};for(let s in n)((0,i.i)(n[s])||e.style&&(0,i.i)(e.style[s])||(0,r.j)(s,t))&&(o[s]=n[s]);return o}},26019:function(t,e,n){n.d(e,{G:function(){return i},_:function(){return r}});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(r)},92622:function(t,e,n){n.d(e,{i:function(){return l}});var r=n(14651),i=n(75480);function o(t,e,n){return"string"==typeof t?t:i.px.transform(e+n*t)}let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(t,{attrX:e,attrY:n,attrScale:l,originX:u,originY:c,pathLength:h,pathSpacing:d=1,pathOffset:f=0,...p},m,v,g){if((0,r.r)(t,p,m,g),v){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:y,style:x,dimensions:P}=t;y.transform&&(P&&(x.transform=y.transform),delete y.transform),P&&(void 0!==u||void 0!==c||x.transform)&&(x.transformOrigin=function(t,e,n){let r=o(e,t.x,t.width),i=o(n,t.y,t.height);return`${r} ${i}`}(P,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==e&&(y.x=e),void 0!==n&&(y.y=n),void 0!==l&&(y.scale=l),void 0!==h&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;let l=o?s:a;t[l.offset]=i.px.transform(-r);let u=i.px.transform(e),c=i.px.transform(n);t[l.array]=`${u} ${c}`}(y,h,d,f,!1)}},82394:function(t,e,n){n.d(e,{s:function(){return r}});let r=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"])},75969:function(t,e,n){n.d(e,{a:function(){return r}});let r=t=>"string"==typeof t&&"svg"===t.toLowerCase()},70545:function(t,e,n){n.d(e,{K:function(){return s}});var r=n(51580),i=n(39979),o=n(82394);function s(t,e,n,s){for(let n in(0,i.N)(t,e,void 0,s),e.attrs)t.setAttribute(o.s.has(n)?n:(0,r.D)(n),e.attrs[n])}},875:function(t,e,n){n.d(e,{U:function(){return s}});var r=n(77599),i=n(11315),o=n(26019);function s(t,e){let n=(0,i.U)(t,e);for(let i in t)((0,r.i)(t[i])||(0,r.i)(e[i]))&&(n[-1!==o._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}},83795:function(t,e,n){n.d(e,{G:function(){return s},M:function(){return a}});var r=n(64572),i=n(56859),o=n(53552);function s(t){return(0,r.H)(t.animate)||o.V.some(e=>(0,i.$)(t[e]))}function a(t){return!!(s(t)||t.variants)}},56859:function(t,e,n){n.d(e,{$:function(){return r}});function r(t){return"string"==typeof t||Array.isArray(t)}},70352:function(t,e,n){n.d(e,{x:function(){return i}});var r=n(28595);function i(t,e,n){let i=t.getProps();return(0,r.o)(i,e,void 0!==n?n:i.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))}},28595:function(t,e,n){n.d(e,{o:function(){return r}});function r(t,e,n,r={},i={}){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}},80408:function(t,e,n){n.d(e,{GJ:function(){return y},P$:function(){return x},CD:function(){return m},gg:function(){return g}});var r=n(84386),i=n(99102),o=n(99155),s=n(20804),a=n(83646),l=n(66450),u=n(50146),c=n(23769),h=n(12649);let d=[...c.$,u.$,a.P],f=t=>d.find((0,h.l)(t));var p=n(70352);function m(t,e){let n=(0,p.x)(t,e),{transitionEnd:r={},transition:i={},...a}=n?t.makeTargetAnimatable(n,!1):{};for(let e in a={...a,...r}){let n=(0,o.Y)(a[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,s.BX)(n))}}function v(t,e){[...e].reverse().forEach(n=>{let r=t.getVariant(n);r&&m(t,r),t.variantChildren&&t.variantChildren.forEach(t=>{v(t,e)})})}function g(t,e){return Array.isArray(e)?v(t,e):"string"==typeof e?v(t,[e]):void m(t,e)}function y(t,e,n){var o,u;let c=Object.keys(e).filter(e=>!t.hasValue(e)),h=c.length;if(h)for(let d=0;d<h;d++){let h=c[d],p=e[h],m=null;Array.isArray(p)&&(m=p[0]),null===m&&(m=null!==(u=null!==(o=n[h])&&void 0!==o?o:t.readValue(h))&&void 0!==u?u:e[h]),null!=m&&("string"==typeof m&&((0,r.P)(m)||(0,i.W)(m))?m=parseFloat(m):!f(m)&&a.P.test(p)&&(m=(0,l.T)(h,p)),t.addValue(h,(0,s.BX)(m,{owner:t})),void 0===n[h]&&(n[h]=m),null!==m&&t.setBaseTarget(h,m))}}function x(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}},53552:function(t,e,n){n.d(e,{V:function(){return i},e:function(){return r}});let r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...r]},28746:function(t,e,n){function r(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return i},y4:function(){return r}})},51506:function(t,e,n){n.d(e,{u:function(){return r}});let r=(t,e,n)=>Math.min(Math.max(n,t),e)},19047:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return o}});var r=n(69276);let i=r.Z,o=r.Z},77282:function(t,e,n){n.d(e,{j:function(){return r}});let r="undefined"!=typeof document},84386:function(t,e,n){n.d(e,{P:function(){return r}});let r=t=>/^\-?\d*\.?\d+$/.test(t)},17576:function(t,e,n){n.d(e,{I:function(){return r}});function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}},99102:function(t,e,n){n.d(e,{W:function(){return r}});let r=t=>/^0[^.\s]+$/.test(t)},85303:function(t,e,n){n.d(e,{C:function(){return r}});let r=(t,e,n)=>-n*t+n*e+t},69276:function(t,e,n){n.d(e,{Z:function(){return r}});let r=t=>t},89654:function(t,e,n){n.d(e,{z:function(){return i}});let r=(t,e)=>n=>e(t(n)),i=(...t)=>t.reduce(r)},33217:function(t,e,n){n.d(e,{Y:function(){return r}});let r=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r}},53629:function(t,e,n){n.d(e,{A:function(){return o}});var r=n(77282),i=n(31016);function o(){if(i.O.current=!0,r.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i.n.current=t.matches;t.addListener(e),e()}else i.n.current=!1}}},31016:function(t,e,n){n.d(e,{O:function(){return i},n:function(){return r}});let r={current:null},i={current:!1}},99155:function(t,e,n){n.d(e,{Y:function(){return o},p:function(){return i}});var r=n(66925);let i=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),o=t=>(0,r.C)(t)?t[t.length-1]||0:t},72428:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(28746);class i{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(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}}},80557:function(t,e,n){n.d(e,{X:function(){return i},w:function(){return r}});let r=t=>1e3*t,i=t=>t/1e3},30458:function(t,e,n){n.d(e,{h:function(){return i}});var r=n(2265);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},9033:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(2265);let i=n(77282).j?r.useLayoutEffect:r.useEffect},83476:function(t,e,n){n.d(e,{R:function(){return r}});function r(t,e){return e?1e3/e*t:0}},20804:function(t,e,n){n.d(e,{BX:function(){return u}});var r=n(72428),i=n(83476),o=n(39630);let s=t=>!isNaN(parseFloat(t)),a={current:void 0};class l{constructor(t,e={}){this.version="10.16.15",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:r}=o.frameData;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,o.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==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=s(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new r.L);let n=this.events[t].add(e);return"change"===t?()=>{n(),o.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,e=!0){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 a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):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()}}function u(t,e){return new l(t,e)}},45778:function(t,e,n){n.d(e,{$:function(){return i}});var r=n(91583);let i={test:(0,n(93338).i)("#"),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:r.m.transform}},598:function(t,e,n){n.d(e,{J:function(){return a}});var r=n(40783),i=n(75480),o=n(47292),s=n(93338);let a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+i.aQ.transform((0,o.Nw)(e))+", "+i.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(r.Fq.transform(s))+")"}},50146:function(t,e,n){n.d(e,{$:function(){return a}});var r=n(47292),i=n(45778),o=n(598),s=n(91583);let a={test:t=>s.m.test(t)||i.$.test(t)||o.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):o.J.test(t)?o.J.parse(t):i.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?s.m.transform(t):o.J.transform(t)}},91583:function(t,e,n){n.d(e,{m:function(){return u}});var r=n(51506),i=n(40783),o=n(47292),s=n(93338);let a=t=>(0,r.u)(0,255,t),l={...i.Rx,transform:t=>Math.round(a(t))},u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(n)+", "+(0,o.Nw)(i.Fq.transform(r))+")"}},93338:function(t,e,n){n.d(e,{d:function(){return o},i:function(){return i}});var r=n(47292);let i=(t,e)=>n=>!!((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>i=>{if(!(0,r.HD)(i))return i;let[o,s,a,l]=i.match(r.KP);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},24913:function(t,e,n){n.d(e,{h:function(){return l}});var r=n(83646),i=n(47292);let o=new Set(["brightness","contrast","saturate","opacity"]);function s(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(i.KP)||[];if(!r)return t;let s=n.replace(r,""),a=o.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+s+")"}let a=/([a-z-]*)\(.*?\)/g,l={...r.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(s).join(" "):t}}},83646:function(t,e,n){n.d(e,{P:function(){return v},V:function(){return d}});var r=n(61534),i=n(69276),o=n(50146),s=n(40783),a=n(47292);let l={regex:r.Xp,countKey:"Vars",token:"${v}",parse:i.Z},u={regex:a.dA,countKey:"Colors",token:"${c}",parse:o.$.parse},c={regex:a.KP,countKey:"Numbers",token:"${n}",parse:s.Rx.parse};function h(t,{regex:e,countKey:n,token:r,parse:i}){let o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function d(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&h(n,l),h(n,u),h(n,c),n}function f(t){return d(t).values}function p(t){let{values:e,numColors:n,numVars:r,tokenised:i}=d(t),s=e.length;return t=>{let e=i;for(let i=0;i<s;i++)e=i<r?e.replace(l.token,t[i]):i<r+n?e.replace(u.token,o.$.transform(t[i])):e.replace(c.token,(0,a.Nw)(t[i]));return e}}let m=t=>"number"==typeof t?0:t,v={test:function(t){var e,n;return isNaN(t)&&(0,a.HD)(t)&&((null===(e=t.match(a.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(a.dA))||void 0===n?void 0:n.length)||0)>0},parse:f,createTransformer:p,getAnimatableNone:function(t){let e=f(t);return p(t)(e.map(m))}}},40783:function(t,e,n){n.d(e,{Fq:function(){return o},Rx:function(){return i},bA:function(){return s}});var r=n(51506);let i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...i,transform:t=>(0,r.u)(0,1,t)},s={...i,default:1}},75480:function(t,e,n){n.d(e,{$C:function(){return c},RW:function(){return o},aQ:function(){return s},px:function(){return a},vh:function(){return l},vw:function(){return u}});var r=n(47292);let i=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=i("deg"),s=i("%"),a=i("px"),l=i("vh"),u=i("vw"),c={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},47292:function(t,e,n){n.d(e,{HD:function(){return a},KP:function(){return i},Nw:function(){return r},dA:function(){return o},mj:function(){return s}});let r=t=>Math.round(1e5*t)/1e5,i=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,s=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},14894:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(77599);function i(t){return!!((0,r.i)(t)&&t.add)}},77599:function(t,e,n){n.d(e,{i:function(){return r}});let r=t=>!!(t&&t.getVelocity)},32404:function(t,e,n){n.d(e,{b:function(){return o}});var r=n(99155),i=n(77599);function o(t){let e=(0,i.i)(t)?t.get():t;return(0,r.p)(e)?e.toValue():e}}}]);